@ckeditor/ckeditor5-revision-history 47.1.0 → 47.2.0-alpha.1
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 +12 -12
- 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
|
-
_0x911840(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x47a635){super(),this['id']=_0x47a635['id']||_0x221375(),this['creator']=_0x47a635['creator']||null,this['authors']=_0x47a635['authors']||[],this['diffData']=_0x47a635['diffData']||null,this['toVersion']=_0x47a635['toVersion']||0x0,this['fromVersion']=_0x47a635['fromVersion']||0x0,this['set']('name',_0x47a635['name']||''),this['set']('createdAt',_0x47a635['createdAt']||new Date()),this['set']('attributes',_0x47a635['attributes']||{});}['setName'](_0x3e793e){this['_update']({'name':_0x3e793e});}['setAttribute'](_0x2dccff,_0x3e5297){const _0x46ceed=_0x459df9(this['attributes']);_0x517bac(_0x46ceed,_0x2dccff,_0x3e5297),this['_update']({'attributes':_0x46ceed});}['removeAttribute'](_0x540d72){const _0x311f7c=_0x459df9(this['attributes']);_0x2bed35(_0x311f7c,_0x540d72),this['_update']({'attributes':_0x311f7c});}['_update'](_0x5e5f13,_0x210284=!0x1){let _0x15b8ee=!0x1;const _0x3fb151={'id':this['id']},_0x4e6959=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x597b0c of _0x4e6959){const _0x2ddb53=_0x5e5f13[_0x597b0c];void 0x0!==_0x2ddb53&&_0x2ddb53!==this[_0x597b0c]&&(this[_0x597b0c]=_0x2ddb53,_0x3fb151[_0x597b0c]=_0x2ddb53,_0x15b8ee=!0x0);}_0x15b8ee&&(_0x3fb151['authors']&&(_0x3fb151['authorsIds']=_0x3fb151['authors']['map'](_0x57784b=>_0x57784b['id']),delete _0x3fb151['authors']),this['fire']('_update',_0x3fb151,_0x210284));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0xfe8545=>_0xfe8545['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x59afc0{['_revisions'];static get['requires'](){return[_0x4e6a9f];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x376e45){super(_0x376e45),this['_revisions']=new _0x51dee5();}['afterInit'](){!async function(_0x8a128){const _0x57b8d0=_0x6eccb6([0x73,0x47,0x36,0x35,0x43,0x72,0x6b,0x31,0x63,0x64,0x32,0x69,0x67,0x4c,0x4e,0x37,0x7a,0x49,0x45,0x41,0x59,0x6a,0x75,0x39,0x4a,0x33,0x68,0x62,0x50,0x42,0x74,0x6e,0x46,0x4d,0x78,0x51,0x66,0x34,0x48,0x77,0x5a,0x61,0x6c,0x30,0x71,0x54,0x53,0x56,0x4b,0x79,0x44,0x6d,0x6f,0x52,0x76,0x55,0x58,0x65,0x70,0x57,0x4f,0x38]),_0x2199c4=0xeb829,_0x157dce=0x7374585f,_0x325e1d=0x73732e07^_0x157dce,_0x2cf824=window[_0x6eccb6([0x44,0x61,0x74,0x65])][_0x6eccb6([0x6e,0x6f,0x77])](),_0x2080a2=_0x8a128[_0x6eccb6([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1a5b70=new window[(_0x6eccb6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3626d9=>{_0x2080a2[_0x6eccb6([0x6f,0x6e,0x63,0x65])](_0x6eccb6([0x72,0x65,0x61,0x64,0x79]),_0x3626d9);}),_0x582a3f={[_0x6eccb6([0x6b,0x74,0x79])]:_0x6eccb6([0x45,0x43]),[_0x6eccb6([0x75,0x73,0x65])]:_0x6eccb6([0x73,0x69,0x67]),[_0x6eccb6([0x63,0x72,0x76])]:_0x6eccb6([0x50,0x2d,0x32,0x35,0x36]),[_0x6eccb6([0x78])]:_0x6eccb6([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]),[_0x6eccb6([0x79])]:_0x6eccb6([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]),[_0x6eccb6([0x61,0x6c,0x67])]:_0x6eccb6([0x45,0x53,0x32,0x35,0x36])},_0x158529=_0x2080a2[_0x6eccb6([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x6eccb6([0x67,0x65,0x74])](_0x6eccb6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x56a98a(){let _0x152652,_0x18579a=null,_0x5ec059=null;try{if(_0x158529==_0x6eccb6([0x47,0x50,0x4c]))return _0x6eccb6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x152652=_0xbef164(),!_0x152652)return _0x6eccb6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x152652[_0x6eccb6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5ec059=_0x47255a(_0x152652[_0x6eccb6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x152652[_0x6eccb6([0x6a,0x74,0x69])])),await _0x5a5ef2()?_0x4aa15e()?_0xac7e3b()?_0x6eccb6([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x377cbb()?(_0x152652[_0x6eccb6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x6eccb6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x18579a=_0x2e1de5(_0x6eccb6([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x152652[_0x6eccb6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x6eccb6([0x74,0x72,0x69,0x61,0x6c])&&(_0x18579a=_0x2e1de5(_0x6eccb6([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x58fa05()):_0x6eccb6([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x6eccb6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x6eccb6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x6eccb6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xac7e3b(){const _0x5c0f0f=[_0x6eccb6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x6eccb6([0x74,0x72,0x69,0x61,0x6c])][_0x6eccb6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x152652[_0x6eccb6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2cf824/0x3e8:0xe10*_0x325e1d;return _0x152652[_0x6eccb6([0x65,0x78,0x70])]<_0x5c0f0f;}function _0x4aa15e(){const _0xf41e91=_0x152652[_0x6eccb6([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0xf41e91)return!0x1;if(_0xf41e91[_0x6eccb6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x6eccb6([0x2a])))return!0x0;if(_0xf41e91[_0x6eccb6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x6eccb6([0x52,0x48])))return!0x0;if(_0xf41e91[_0x6eccb6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x6eccb6([0x52,0x52,0x48]))){if(_0x19ac3e())return!0x0;if(_0x3c5c70()||_0x24f768())return!0x0;}return!0x1;}function _0x377cbb(){const _0x4ec1f2=_0x152652[_0x6eccb6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4ec1f2||0x0==_0x4ec1f2[_0x6eccb6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4a74ca}=new URL(window[_0x6eccb6([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4ec1f2[_0x6eccb6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4a74ca))return!0x0;const _0x47e530=_0x4a74ca[_0x6eccb6([0x73,0x70,0x6c,0x69,0x74])](_0x6eccb6([0x2e]));return _0x4ec1f2[_0x6eccb6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xb74911=>_0xb74911[_0x6eccb6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x6eccb6([0x2a])))[_0x6eccb6([0x6d,0x61,0x70])](_0x154d79=>_0x154d79[_0x6eccb6([0x73,0x70,0x6c,0x69,0x74])](_0x6eccb6([0x2e])))[_0x6eccb6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xf8b64c=>_0xf8b64c[_0x6eccb6([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x47e530[_0x6eccb6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x6eccb6([0x6d,0x61,0x70])](_0x39164b=>Array(_0x47e530[_0x6eccb6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x39164b[_0x6eccb6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x6eccb6([0x66,0x69,0x6c,0x6c])](_0x39164b[0x0]===_0x6eccb6([0x2a])?_0x6eccb6([0x2a]):'')[_0x6eccb6([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x39164b))[_0x6eccb6([0x73,0x6f,0x6d,0x65])](_0x2d969d=>_0x47e530[_0x6eccb6([0x65,0x76,0x65,0x72,0x79])]((_0x108003,_0x3b3413)=>_0x2d969d[_0x3b3413]===_0x108003||_0x2d969d[_0x3b3413]===_0x6eccb6([0x2a])));}function _0x58fa05(){return _0x18579a&&_0x5ec059?new window[(_0x6eccb6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x14fb42,_0x546a34)=>{_0x18579a[_0x6eccb6([0x74,0x68,0x65,0x6e])](_0x14fb42,_0x546a34),_0x5ec059[_0x6eccb6([0x74,0x68,0x65,0x6e])](_0x2f5b9e=>{_0x2f5b9e!=_0x6eccb6([0x56,0x61,0x6c,0x69,0x64])&&_0x14fb42(_0x2f5b9e);},_0x546a34);}):_0x18579a||_0x5ec059||_0x6eccb6([0x56,0x61,0x6c,0x69,0x64]);}}function _0x47255a(_0x5f4f19,_0x2ed86a){return new window[(_0x6eccb6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x37a4b1=>{if(_0x54b28b())return _0x37a4b1(_0x6eccb6([0x56,0x61,0x6c,0x69,0x64]));_0x1b0b67(),_0x2080a2[_0x6eccb6([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x6eccb6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x39a880=!0x1;const _0x3ef50a=_0x221375();function _0x5d88b5(_0x53d9b2){return!!_0x53d9b2&&(typeof _0x53d9b2===_0x6eccb6([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x53d9b2===_0x6eccb6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x53d9b2[_0x6eccb6([0x74,0x68,0x65,0x6e])]===_0x6eccb6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x53d9b2[_0x6eccb6([0x63,0x61,0x74,0x63,0x68])]===_0x6eccb6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5bda69(_0x393c72){_0x1c6a5a(_0x393c72)[_0x6eccb6([0x74,0x68,0x65,0x6e])](_0x38d752=>{if(!_0x38d752||_0x38d752[_0x6eccb6([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x6eccb6([0x6f,0x6b]))return _0x6eccb6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x49b43b(_0x22c5c6(_0x3ef50a+_0x2ed86a))!=_0x38d752[_0x6eccb6([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x6eccb6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x6eccb6([0x56,0x61,0x6c,0x69,0x64]);})[_0x6eccb6([0x74,0x68,0x65,0x6e])](_0x598d3b=>(_0x38e387(),_0x598d3b),()=>{const _0x2be546=_0x1e302c();return null==_0x2be546?(_0x38e387(),_0x6eccb6([0x56,0x61,0x6c,0x69,0x64])):_0x6eccb6(_0x2cf824-_0x2be546>(0x5778dc5f^_0x157dce)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x6eccb6([0x74,0x68,0x65,0x6e])](_0x37a4b1)[_0x6eccb6([0x63,0x61,0x74,0x63,0x68])](()=>{_0x37a4b1(_0x6eccb6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x267f92=0x7342b6df^_0x157dce;function _0x38e387(){const _0x2d720a=_0x6eccb6([0x6c,0x6c,0x63,0x74,0x2d])+_0x49b43b(_0x22c5c6(_0x5f4f19)),_0x1497eb=_0x38668b(_0x49b43b(window[_0x6eccb6([0x4d,0x61,0x74,0x68])][_0x6eccb6([0x63,0x65,0x69,0x6c])](_0x2cf824/_0x267f92)));window[_0x6eccb6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x6eccb6([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2d720a,_0x1497eb);}function _0x1e302c(){const _0x262952=_0x6eccb6([0x6c,0x6c,0x63,0x74,0x2d])+_0x49b43b(_0x22c5c6(_0x5f4f19)),_0x9c3650=window[_0x6eccb6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x6eccb6([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x262952);return _0x9c3650?window[_0x6eccb6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x38668b(_0x9c3650),0x10)*_0x267f92:null;}function _0x1c6a5a(_0xc8be70){return new window[(_0x6eccb6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x555712,_0x12415d)=>{_0xc8be70[_0x6eccb6([0x74,0x68,0x65,0x6e])](_0x555712,_0x12415d),window[_0x6eccb6([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x12415d,0x73758c9f^_0x157dce);});}}_0x2080a2[_0x6eccb6([0x6f,0x6e])](_0x6eccb6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x381916,_0x4a0115)=>{if(_0x4a0115[0x0]!=_0x5f4f19)return _0x37a4b1(_0x6eccb6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4a0115[0x1]={..._0x4a0115[0x1],[_0x6eccb6([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3ef50a};},{[_0x6eccb6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x6eccb6([0x68,0x69,0x67,0x68])}),_0x2080a2[_0x6eccb6([0x6f,0x6e])](_0x6eccb6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x38069f=>{_0x5d88b5(_0x38069f[_0x6eccb6([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x39a880=!0x0,_0x5bda69(_0x38069f[_0x6eccb6([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x6eccb6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x6eccb6([0x6c,0x6f,0x77])}),_0x1a5b70[_0x6eccb6([0x74,0x68,0x65,0x6e])](()=>{_0x39a880||_0x37a4b1(_0x6eccb6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x54b28b(){return _0x2080a2[_0x6eccb6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x6eccb6([0x76,0x69,0x65,0x77])][_0x6eccb6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x6eccb6([0x61,0x75,0x74,0x6f]);}function _0x1b0b67(){_0x2080a2[_0x6eccb6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x6eccb6([0x76,0x69,0x65,0x77])][_0x6eccb6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x6eccb6([0x61,0x75,0x74,0x6f]);}}function _0x2e1de5(_0x4fefd6){const _0x5e9a31=[new window[(_0x6eccb6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x40d11a=>setTimeout(_0x40d11a,0x737d6693^_0x157dce)),_0x1a5b70[_0x6eccb6([0x74,0x68,0x65,0x6e])](()=>new window[(_0x6eccb6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xe296c3=>{const _0x5a1fea=0x73745858^_0x157dce,_0x11f657=_0x8a128[_0x6eccb6([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x2be1fa(){_0x11f657[_0x6eccb6([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x5a1fea&&_0xe296c3();}_0x2be1fa(),_0x11f657[_0x6eccb6([0x6f,0x6e])](_0x6eccb6([0x61,0x64,0x64]),_0x2be1fa);})),new window[(_0x6eccb6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2da679=>{function _0x2566fc(){for(const _0x4e49da in window)if(window[_0x6eccb6([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x6eccb6([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x4e49da))&&window[_0x4e49da]==_0x2199c4)return _0x2da679();_0x2080a2[_0x6eccb6([0x73,0x74,0x61,0x74,0x65])]!=_0x6eccb6([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x6eccb6([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2566fc,0x73744bd7^_0x157dce);}_0x499da2(_0x6eccb6([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x2566fc();})];return window[_0x6eccb6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x6eccb6([0x72,0x61,0x63,0x65])](_0x5e9a31)[_0x6eccb6([0x74,0x68,0x65,0x6e])](()=>_0x4fefd6);}async function _0x84516(){if(await _0x1a5b70,_0x499da2(_0x6eccb6([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x386393=_0x8a128[_0x6eccb6([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x4bd075=_0x8a128[_0x6eccb6([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])](_0x386393[_0x6eccb6([0x69,0x64])]),_0x13a319=_0x3c2121(_0x6eccb6([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x13a319[_0x6eccb6([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x386393['id'],_0x4bd075?_0x4bd075['id']:null,!0x0),_0x13a319[_0x6eccb6([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x6eccb6([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x13a319[_0x6eccb6([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x13a319[_0x6eccb6([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x47d213,void(_0x13a319[_0x6eccb6([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x47d213);}if(_0x499da2(_0x6eccb6([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x4a3ec2=_0x3c2121(_0x6eccb6([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x4a3ec2[_0x6eccb6([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x6eccb6([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x4a3ec2[_0x6eccb6([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x4a3ec2[_0x6eccb6([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x47d213,_0x4a3ec2[_0x6eccb6([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x47d213;}_0x2080a2[_0x6eccb6([0x6d,0x6f,0x64,0x65,0x6c])][_0x6eccb6([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x47d213,_0x2080a2[_0x6eccb6([0x6d,0x6f,0x64,0x65,0x6c])][_0x6eccb6([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x47d213,_0x2080a2[_0x6eccb6([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x6eccb6([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x19ac3e(){return _0x499da2(_0x6eccb6([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x3c2121(_0x6eccb6([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x6eccb6([0x73,0x74,0x61,0x74,0x65])]==_0x6eccb6([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x3c5c70(){return _0x499da2(_0x6eccb6([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 _0x24f768(){return _0x499da2(_0x6eccb6([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x863bc1(_0x38e2f5){const _0x56bd00=_0x4b146f();_0x2080a2[_0x56bd00]=_0x6eccb6([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])+_0x38e2f5,_0x38e2f5[_0x6eccb6([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x6eccb6([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x4b146f()]=_0x2199c4),_0x38e2f5!=_0x6eccb6([0x56,0x61,0x6c,0x69,0x64])&&_0x84516();}function _0x4b146f(){const _0x196595=window[_0x6eccb6([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x6eccb6([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x6eccb6([0x6e,0x6f,0x77])]())[_0x6eccb6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x6eccb6([0x2e]),'');let _0x41725d=_0x6eccb6([0x73]);for(let _0x5093e4=0x0;_0x5093e4<_0x196595[_0x6eccb6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5093e4+=0x2){let _0x30a175=window[_0x6eccb6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x196595[_0x6eccb6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5093e4,_0x5093e4+0x2));_0x30a175>=_0x57b8d0[_0x6eccb6([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x30a175-=_0x57b8d0[_0x6eccb6([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x41725d+=_0x57b8d0[_0x30a175];}return _0x41725d;}function _0xbef164(){const _0x2c255b=_0x158529[_0x6eccb6([0x73,0x70,0x6c,0x69,0x74])](_0x6eccb6([0x2e]));if(0x3!=_0x2c255b[_0x6eccb6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x545bae(_0x2c255b[0x1]);function _0x545bae(_0x36d987){const _0x3f9ac8=_0x20ee25(_0x36d987);return _0x3f9ac8&&_0x4f3ce1()?_0x3f9ac8:null;function _0x4f3ce1(){const _0x280a0f=_0x3f9ac8[_0x6eccb6([0x6a,0x74,0x69])],_0x65f1b=window[_0x6eccb6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x280a0f[_0x6eccb6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x280a0f[_0x6eccb6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x180ab3={..._0x3f9ac8,[_0x6eccb6([0x6a,0x74,0x69])]:_0x280a0f[_0x6eccb6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x280a0f[_0x6eccb6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x180ab3[_0x6eccb6([0x76,0x63])],_0x22c5c6(_0x180ab3)==_0x65f1b;}}}async function _0x5a5ef2(){let _0xf2130=!0x0;try{const _0x2034ab=_0x158529[_0x6eccb6([0x73,0x70,0x6c,0x69,0x74])](_0x6eccb6([0x2e])),[_0x4b2398,_0xf28692,_0x5383c5]=_0x2034ab;return _0x1f2c79(_0x4b2398),await _0x305003(_0x4b2398,_0xf28692,_0x5383c5),_0xf2130;}catch{return!0x1;}function _0x1f2c79(_0x16b997){const _0x4676e2=_0x20ee25(_0x16b997);_0x4676e2&&_0x4676e2[_0x6eccb6([0x61,0x6c,0x67])]==_0x6eccb6([0x45,0x53,0x32,0x35,0x36])||(_0xf2130=!0x1);}async function _0x305003(_0x598b52,_0x209a1b,_0x5d4e41){const _0x30117c=window[_0x6eccb6([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x6eccb6([0x66,0x72,0x6f,0x6d])](_0x2bbcd1(_0x5d4e41),_0x2addc4=>_0x2addc4[_0x6eccb6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x52e32a=new window[(_0x6eccb6([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x6eccb6([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x598b52+_0x6eccb6([0x2e])+_0x209a1b),_0x30aaaf=window[_0x6eccb6([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x6eccb6([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x30aaaf)return;const _0xb7ad6c=await _0x30aaaf[_0x6eccb6([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x6eccb6([0x6a,0x77,0x6b]),_0x582a3f,{[_0x6eccb6([0x6e,0x61,0x6d,0x65])]:_0x6eccb6([0x45,0x43,0x44,0x53,0x41]),[_0x6eccb6([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x6eccb6([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x6eccb6([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x30aaaf[_0x6eccb6([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x6eccb6([0x6e,0x61,0x6d,0x65])]:_0x6eccb6([0x45,0x43,0x44,0x53,0x41]),[_0x6eccb6([0x68,0x61,0x73,0x68])]:{[_0x6eccb6([0x6e,0x61,0x6d,0x65])]:_0x6eccb6([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xb7ad6c,_0x30117c,_0x52e32a)||(_0xf2130=!0x1);}}function _0x20ee25(_0x1db66d){return _0x1db66d[_0x6eccb6([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x6eccb6([0x65,0x79]))?JSON[_0x6eccb6([0x70,0x61,0x72,0x73,0x65])](_0x2bbcd1(_0x1db66d)):null;}function _0x2bbcd1(_0x44909e){return window[_0x6eccb6([0x61,0x74,0x6f,0x62])](_0x44909e[_0x6eccb6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x6eccb6([0x2b]))[_0x6eccb6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x6eccb6([0x2f])));}function _0x22c5c6(_0x3f5c0f){let _0x417ee3=0x1505;function _0x2f11ab(_0x4e5508){for(let _0x5eead2=0x0;_0x5eead2<_0x4e5508[_0x6eccb6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5eead2++){const _0xdf8421=_0x4e5508[_0x6eccb6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5eead2);_0x417ee3=(_0x417ee3<<0x5)+_0x417ee3+_0xdf8421,_0x417ee3&=_0x417ee3;}}function _0x5875c6(_0x3dcdef){Array[_0x6eccb6([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3dcdef)?_0x3dcdef[_0x6eccb6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5875c6):_0x3dcdef&&typeof _0x3dcdef==_0x6eccb6([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x6eccb6([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3dcdef)[_0x6eccb6([0x73,0x6f,0x72,0x74])]()[_0x6eccb6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3f5599,_0x3bbdce])=>{_0x2f11ab(_0x3f5599),_0x5875c6(_0x3bbdce);}):_0x2f11ab(window[_0x6eccb6([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3dcdef));}return _0x5875c6(_0x3f5c0f),_0x417ee3>>>0x0;}function _0x49b43b(_0x12a498){return _0x12a498[_0x6eccb6([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x6eccb6([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x6eccb6([0x30]));}function _0x38668b(_0x4715a5){return _0x4715a5[_0x6eccb6([0x73,0x70,0x6c,0x69,0x74])]('')[_0x6eccb6([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x6eccb6([0x6a,0x6f,0x69,0x6e])]('');}function _0x499da2(_0x3bd32c){return _0x2080a2[_0x6eccb6([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x6eccb6([0x68,0x61,0x73])](_0x3bd32c);}function _0x3c2121(_0x248a9f){return _0x2080a2[_0x6eccb6([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x6eccb6([0x67,0x65,0x74])](_0x248a9f);}function _0x47d213(){}function _0x6eccb6(_0x23c6f9){return _0x23c6f9['map'](_0x5b8ba3=>String['fromCharCode'](_0x5b8ba3))['join']('');}_0x863bc1(await _0x56a98a());}(this);}['createRevision'](_0x394918){const _0x40132d=this['editor']['plugins']['get']('Users');return new I({'id':_0x394918['id'],'name':_0x394918['name'],'creator':_0x394918['creatorId']?_0x40132d['getUser'](_0x394918['creatorId']):null,'diffData':_0x394918['diffData']||_0x394918['data'],'authors':_0x394918['authorsIds']['map'](_0x25fbe8=>_0x40132d['getUser'](_0x25fbe8)),'createdAt':new Date(_0x394918['createdAt']),'attributes':_0x394918['attributes'],'fromVersion':_0x394918['fromVersion'],'toVersion':_0x394918['toVersion']});}['addRevision'](_0x211815,_0xee7155=0x0){this['_revisions']['add'](_0x211815,_0xee7155);}['getRevision'](_0x1f235d){return this['_revisions']['get'](_0x1f235d);}['getRevisions'](_0x26f382={'toJSON':!0x1}){const _0x2af81c=Array['from'](this['_revisions']);return _0x2af81c['reverse'](),_0x26f382['toJSON']?_0x2af81c['map'](_0x2a5d04=>_0x2a5d04['toJSON']()):_0x2af81c;}['getIndex'](_0x4c38c4){return this['_revisions']['getIndex'](_0x4c38c4);}['getEarlierVisibleRevision'](_0x4d9f04){const [,_0x51b374]=this['getRevisionsIterator'](_0x4d9f04,{'direction':'earlier'});return _0x51b374;}['getLaterVisibleRevision'](_0x4c1df4){const [,_0x2d6de8]=this['getRevisionsIterator'](_0x4c1df4,{'direction':'later'});return _0x2d6de8;}['getRevisionsInDiff'](_0xe22075){const _0x7654e3=[];for(const _0x5e014c of this['getRevisionsIterator'](_0xe22075['newRevisionId']))if(_0x7654e3['push'](_0x5e014c),_0x5e014c['id']===_0xe22075['oldRevisionId'])break;return _0x7654e3;}*['getRevisionsIterator'](_0x5327f9,{direction:_0x536a66='earlier',filter:_0x816cd4=()=>!0x0}={}){const _0x498e38='earlier'===_0x536a66?0x1:-0x1;let _0x7cc88d=this['_revisions']['get'](_0x5327f9),_0x5394e7=this['getIndex'](_0x7cc88d);for(yield _0x7cc88d;_0x7cc88d;){if(_0x5394e7+=_0x498e38,_0x7cc88d=this['getRevision'](_0x5394e7),!_0x7cc88d)return;_0x816cd4(_0x7cc88d)&&(yield _0x7cc88d);}}}class $ extends _0x59afc0{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x2e87e7,'c'],[_0x35f1af,'a'],[_0x4ec289,'e'],[_0x192b7e,'r'],[_0x308c37,'u']]);['_typeCharToViewClass']=new Map([['c',_0x2e87e7],['a',_0x35f1af],['e',_0x4ec289],['r',_0x192b7e],['u',_0x308c37]]);async['loadRevisionData'](_0x59c4bf,_0x1eefaa){if(_0x59c4bf['diffData']||!_0x1eefaa)return;const _0x3ffec9=this['editor']['config']['get']('collaboration.channelId'),_0x1765a0=await _0x1eefaa['getRevision']({'channelId':_0x3ffec9,'revisionId':_0x59c4bf['id']});_0x59c4bf['diffData']=_0x1765a0['diffData'];}['getRevisionDocumentData'](_0x56a5c7){const _0x37dd87={};for(const _0x4d65aa in _0x56a5c7['diffData']){if(_0x56a5c7['diffData'][_0x4d65aa]['attachChange']&&!_0x56a5c7['diffData'][_0x4d65aa]['attachChange']['isAttached'])continue;const _0x34b447=this['_removeRevisionMarkers'](JSON['parse'](_0x56a5c7['diffData'][_0x4d65aa]['insertions'])),_0x27d4c3=this['editor']['editing']['view']['document'],_0x326d01=new _0x3f74b0(_0x27d4c3,_0x34b447['map'](_0x49ad2a=>this['_getViewFromDiffObj'](_0x49ad2a,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x37dd87[_0x4d65aa]=this['editor']['data']['processor']['toData'](_0x326d01),this['editor']['data']['processor']['useFillerType']('default');}return _0x37dd87;}['getRevisionRootsAttributes'](_0x21cde8){const _0xa1b346={};for(const _0x4767f6 in _0x21cde8['diffData'])_0x21cde8['diffData'][_0x4767f6]['attachChange']&&!_0x21cde8['diffData'][_0x4767f6]['attachChange']['isAttached']||(_0xa1b346[_0x4767f6]=_0x21cde8['diffData'][_0x4767f6]['attributesAfter']||{});return _0xa1b346;}['_getTypeCharForViewElement'](_0x39a804){return this['_viewClassToTypeChar']['get'](_0x39a804['constructor']);}['_getViewFromDiffObj'](_0x390a95,_0x71abca){const _0x14f506=this['editor']['editing']['view']['document'];if('string'==typeof _0x390a95)return new _0x231269(_0x14f506,_0x390a95);{let _0x5095da,_0x46e552;_0x46e552='u'==_0x390a95['type']||'r'==_0x390a95['type']?[]:_0x390a95['children']['map'](_0x49deaf=>this['_getViewFromDiffObj'](_0x49deaf,_0x71abca));const _0x227948=this['_typeCharToViewClass']['get'](_0x390a95['type'])||_0x22793f,_0x22897c=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x5095da=new _0x227948(_0x14f506,_0x390a95['name'],_0x390a95['attributes'],_0x46e552),'u'==_0x390a95['type']&&_0x390a95['children'][0x0]){const _0x4fa440=_0x390a95['children'][0x0];if(_0x5095da['render']=function(_0x5de939){const _0x1725a2=_0x5de939['createElement']('div');return _0x1725a2['innerHTML']=_0x4fa440,_0x1725a2['childNodes'][0x0];},_0x71abca){const _0x150554=new _0x3f74b0(_0x14f506);_0x150554['_appendChild'](_0x5095da);const _0x3bdc6b=Array['from'](_0x22897c['viewChildrenToDom'](_0x150554,{'bind':!0x1})),_0x5cf1cb=_0x22897c['domDocument']['createElement']('div');_0x5cf1cb['append'](..._0x3bdc6b),_0x5095da=Array['from'](_0x22897c['domChildrenToView'](_0x5cf1cb))[0x0];}}else{if('r'==_0x390a95['type']&&_0x390a95['children'][0x0]){const _0x3b5079=_0x390a95['children'][0x0];if(_0x5095da['render']=function(_0x46bcd9){_0x46bcd9['innerHTML']=_0x3b5079;},_0x71abca){const _0x10e1a7=new _0x3f74b0(_0x14f506);_0x10e1a7['_appendChild'](_0x5095da);const _0x4ab9e7=Array['from'](_0x22897c['viewChildrenToDom'](_0x10e1a7,{'bind':!0x1})),_0x1dd7ca=_0x22897c['domDocument']['createElement']('div');_0x1dd7ca['append'](..._0x4ab9e7);const _0x16de10=Array['from'](_0x22897c['domChildrenToView'](_0x1dd7ca));_0x16de10['length']>0x1?_0x5095da['_appendChild'](_0x16de10):_0x5095da=_0x16de10[0x0];}}}if(_0x390a95['customProperties']){for(const [_0x4e9142,_0x524148]of _0x390a95['customProperties'])_0x5095da['_setCustomProperty'](_0x4e9142,_0x524148);}const _0x68f350=void 0x0===_0x390a95['fillerOffset']?null:_0x390a95['fillerOffset'];return null!==_0x68f350&&(_0x5095da['getFillerOffset']=()=>_0x68f350),_0x5095da;}}['_makeModelFromViewString'](_0x42dcd7){const _0x3daecb=JSON['parse'](_0x42dcd7),_0x10ae26=this['editor']['editing']['view']['document'],_0x1530dd=new _0x3f74b0(_0x10ae26,_0x3daecb['map'](_0x18a56c=>this['_getViewFromDiffObj'](_0x18a56c,!0x0)));return this['editor']['data']['toModel'](_0x1530dd);}['_removeRevisionMarkers'](_0x27adfe){return(_0x27adfe=_0x27adfe['filter'](_0x22ef3f=>!_0x22ef3f['name']||'revision-start'!==_0x22ef3f['name']&&'revision-end'!==_0x22ef3f['name']))['forEach'](_0x1339cc=>{'string'!=typeof _0x1339cc&&(_0x1339cc['children']=this['_removeRevisionMarkers'](_0x1339cc['children']),_0x1339cc['attributes']=_0x1339cc['attributes']['filter'](_0x1f1899=>!_0x1f1899[0x0]['startsWith']('data-revision-')));}),_0x27adfe;}}function m(_0x5ad172,_0x5ba2ac,_0x3deb67){const t=_0x5ad172['t'];switch(_0x5ba2ac){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'},_0x3deb67);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x3deb67);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 _0x59afc0{['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[_0x4e6a9f,S,$,_0x5b0cac];}constructor(_0x3d5687){super(_0x3d5687),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 _0x39b72f=_0x221375();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x39b72f},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 _0xd2f66b=this['repository']['getRevision'](0x0),_0x2017bc=_0xd2f66b&&null===_0xd2f66b['creator']?_0xd2f66b:null;if(this['_continueCurrentRevision']=!!_0x2017bc&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x367efb=this['_source']['getCurrentRevisionId'](),_0x128a55=this['repository']['getRevision'](_0x367efb);if(_0x128a55)this['_startingVersion']=_0x128a55['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x3cdc26=this['_source']['history']['_operations']['find'](_0x540c0f=>!_0x540c0f['_isInit']),_0x3c061a=_0x3cdc26?_0x3cdc26['baseVersion']:this['_source']['history']['version'];_0xd2f66b?(_0xd2f66b['toVersion']<_0x3c061a&&_0xd2f66b['_update']({'toVersion':_0x3c061a}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x2017bc['id'],this['_startingVersion']=_0x2017bc['fromVersion']):(this['_startingVersion']=_0xd2f66b['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x3c061a,this['_continueCurrentRevision']=!0x1);}}else _0x2017bc&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x2017bc['toVersion'],this['editor']['model']['document']['history']['version']),_0x2017bc['fromVersion']===_0x2017bc['toVersion']?(0x0!==_0x2017bc['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x2017bc['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x2017bc['id'],this['_startingVersion']=_0x2017bc['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',_0x5f3b3d=>!_0x5f3b3d),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x28370b=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x555f57;for(const _0xe0f499 in _0x28370b){const _0x4ea40f=_0xe0f499,_0x325e05=_0x28370b[_0x4ea40f];if('revisionHistoryLicenseKeyValid'==_0x325e05||'revisionHistoryLicenseKeyInvalid'==_0x325e05||'revisionHistoryLicenseKeyExpired'==_0x325e05||'revisionHistoryLicenseKeyDomainLimit'==_0x325e05||'revisionHistoryLicenseKeyNotAllowed'==_0x325e05||'revisionHistoryLicenseKeyEvaluationLimit'==_0x325e05||'revisionHistoryLicenseKeyTrialLimit'==_0x325e05||'revisionHistoryLicenseKeyUsageLimit'==_0x325e05){delete _0x28370b[_0x4ea40f],_0x555f57=_0x325e05,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x555f57&&_0x28370b['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x555f57&&_0x28370b['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x555f57&&_0x28370b['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x555f57&&_0x28370b['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x555f57&&_0x28370b['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x555f57&&_0x28370b['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x555f57&&_0x28370b['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x59a469=this['repository']['getRevision'](0x0),_0x241f03=await this['getRevisionDocumentData'](_0x59a469),_0x465fda=await this['getRevisionRootsAttributes'](_0x59a469);this['_replaceEditorDataWithRevisionData'](_0x241f03,_0x465fda);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x5f5af3){this['_source']=_0x5f5af3;}async['update'](){const _0x32899d=await this['_source']['getLatestVersion']();if(_0x32899d>this['currentRevision']['toVersion']){await this['_loadState']();const _0x193500=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x32899d});_0x193500['authors']=_0x193500['authorsIds']['map'](_0x200399=>this['editor']['plugins']['get']('Users')['getUser'](_0x200399)),this['currentRevision']['_update'](_0x193500);}}async['saveRevision'](_0x5ccab4={},_0x37954f=null){const _0x155ad3=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x37954f>this['currentRevision']['toVersion']&&(_0x37954f=null),null===_0x37954f&&(_0x37954f=await this['_source']['getLatestVersion']());const _0x211fac=this['_getFromVersion'](_0x37954f),_0x4c26ab=this['buildRevisionData']({'from':_0x211fac,'to':_0x37954f});if(this['currentRevision']['toVersion']<_0x37954f){const _0x2c2e8b=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x37954f,'to':_0x37954f});_0x2c2e8b['authors']=[],_0x2c2e8b['authorsIds']=[],_0x2c2e8b['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x2c2e8b,!0x0),delete _0x2c2e8b['authors'],_0x155ad3['push'](_0x2c2e8b);}_0x5ccab4['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x5ccab4['name']=_0x5ccab4['name']||null,_0x5ccab4['id']=_0x5ccab4['id']||_0x221375(),_0x5ccab4={..._0x5ccab4,..._0x4c26ab};const _0x3a3882=this['addRevisionData'](_0x5ccab4);_0x155ad3['push'](_0x5ccab4);const _0x298571=this['repository']['getIndex'](_0x3a3882);if(0x0!==_0x298571){const _0x39b968=this['repository']['getRevision'](_0x298571-0x1);if(_0x39b968['fromVersion']!==_0x37954f){const _0x27662f=this['_revisionDataBuilder']['getData'](_0x37954f,_0x39b968['toVersion']),_0x1ad510={'id':_0x39b968['id'],'diffData':_0x27662f['diffData'],'authorsIds':_0x27662f['authorsIds'],'authors':_0x27662f['authorsIds']['map'](_0x530c02=>this['editor']['plugins']['get']('Users')['getUser'](_0x530c02)),'fromVersion':_0x37954f};_0x39b968===this['currentRevision']&&(_0x1ad510['createdAt']=new Date(_0x5ccab4['createdAt']['getTime']()+0xa)),_0x39b968['_update'](_0x1ad510,!0x0),delete _0x1ad510['authors'],_0x155ad3['push'](_0x1ad510);}}if(this['adapter']){for(const _0x4eb546 of _0x155ad3)this['_bufferUpdate'](_0x4eb546['id'],_0x4eb546,!0x0);this['sendBufferedUpdates']();}return _0x3a3882;}['addRevisionData'](_0x2dcf72){const _0x510feb=this['repository']['createRevision'](_0x2dcf72);return this['adapter']&&_0x510feb['on']('_update',(_0x325625,_0x548bc7,_0x2d71ce)=>{_0x2d71ce||(this['_bufferUpdate'](_0x548bc7['id'],_0x548bc7,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x510feb,this['_findInsertionIndex'](_0x510feb)),_0x510feb;}async['getRevisionDocumentData'](_0x752a7c){return await this['_utils']['loadRevisionData'](_0x752a7c,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x752a7c);}async['getRevisionRootsAttributes'](_0x57df1c){return await this['_utils']['loadRevisionData'](_0x57df1c,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x57df1c);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x50e26c=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x3986da=0x0;_0x3986da<_0x50e26c['length'];_0x3986da++){const _0x4e015a=_0x50e26c[_0x3986da];let _0x179fd6=!0x1;for(const _0x4d42b2 of Object['keys'](_0x4e015a))void 0x0===_0x4e015a[_0x4d42b2]?delete _0x4e015a[_0x4d42b2]:'id'!==_0x4d42b2&&(_0x179fd6=!0x0);_0x179fd6||(_0x50e26c[_0x3986da]=null);}if(_0x50e26c=_0x50e26c['filter'](_0x1aa6af=>null!==_0x1aa6af),!_0x50e26c['length'])return;for(let _0x5ae9a1=0x0;_0x5ae9a1<_0x50e26c['length'];_0x5ae9a1++){const _0x110016=_0x50e26c[_0x5ae9a1];void 0x0!==_0x110016['fromVersion']&&void 0x0===_0x110016['toVersion']&&(_0x110016['toVersion']=this['repository']['getRevision'](_0x110016['id'])['toVersion']),void 0x0!==_0x110016['toVersion']&&void 0x0===_0x110016['fromVersion']&&(_0x110016['fromVersion']=this['repository']['getRevision'](_0x110016['id'])['fromVersion']);}const _0x2078d9=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x50e26c,_0x2078d9)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x555250=>{if(_0x555250){for(const _0x55e8ca of _0x555250)this['setRevisionData']({'id':_0x55e8ca['id'],'createdAt':_0x55e8ca['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x2565a4=null,from:_0x4b8dd9=null,to:_0x1ab34c=null}){_0x4b8dd9=null!==_0x4b8dd9?_0x4b8dd9:_0x2565a4['fromVersion'],_0x1ab34c=null!==_0x1ab34c?_0x1ab34c:_0x2565a4['toVersion'];const _0x1d185c=this['_revisionDataBuilder']['getData'](_0x4b8dd9,_0x1ab34c),_0x52268c={'diffData':_0x1d185c['diffData'],'authorsIds':_0x1d185c['authorsIds'],'fromVersion':_0x4b8dd9,'toVersion':_0x1ab34c};if(!_0x2565a4||_0x1ab34c!==_0x2565a4['toVersion']){const _0x52a1f8=_0x1ab34c-0x1,_0x360257=this['_source']['history']['getOperation'](_0x52a1f8);_0x52268c['createdAt']=_0x360257&&_0x360257['createdAt']||new Date();}if(this['_loadedStateData']&&_0x4b8dd9===this['_loadedStateData']['fromVersion']){for(const _0x5695a2 of this['_loadedStateData']['authors'])_0x52268c['authorsIds']['includes'](_0x5695a2['id'])||_0x52268c['authorsIds']['push'](_0x5695a2['id']);}return _0x52268c;}['_bufferUpdate'](_0x4bdb2d,_0x56b3d7,_0x50f90f){if(this['_bufferedUpdates']['has'](_0x4bdb2d)){const _0x21b614=this['_bufferedUpdates']['get'](_0x4bdb2d);_0x56b3d7=_0x50f90f?{..._0x21b614,..._0x56b3d7}:{..._0x56b3d7,..._0x21b614};}this['_bufferedUpdates']['set'](_0x4bdb2d,_0x56b3d7);}['setRevisionData'](_0x45d2a4){const _0x421d98=this['repository']['getRevision'](_0x45d2a4['id']);if(_0x45d2a4['createdAt']&&(_0x45d2a4['createdAt']=new Date(_0x45d2a4['createdAt'])),_0x45d2a4['authorsIds']){const _0x489f3e=this['editor']['plugins']['get']('Users');_0x45d2a4['authors']=_0x45d2a4['authorsIds']['map'](_0x4b50cf=>_0x489f3e['getUser'](_0x4b50cf));}_0x421d98['_update'](_0x45d2a4,!0x0);}['_createInitialRevision'](_0x463dc1){const _0x5b3de1=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x5b3de1)this['_initialRevisionId']=_0x5b3de1['id'];else{const _0x4b2dc4=!this['editor']['model']['document']['roots']['find'](_0x569a3f=>this['editor']['model']['hasContent'](_0x569a3f)),_0x51d96f=this['editor']['plugins']['get']('Users')['me']['id'],_0x279bdf=m(this['editor']['locale'],_0x4b2dc4?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x463dc1,'to':_0x463dc1,'id':this['_initialRevisionId'],'name':_0x279bdf,'creatorId':_0x51d96f});}}['_createCurrentRevision'](_0x470142){const _0x209c42=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x209c42),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x470142,'to':_0x470142,'id':_0x209c42,'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'](_0x390caf,_0x480eb5){let _0x595411=this['editor']['config']['get']('initialData'),_0x220c92=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x595411){_0x595411={};for(const _0x4f9378 of this['editor']['model']['document']['getRootNames']())_0x595411[_0x4f9378]='';}if('string'==typeof _0x595411&&(_0x595411={'main':_0x595411}),void 0x0===_0x220c92){_0x220c92={};for(const _0x18af17 of this['editor']['model']['document']['getRootNames']())_0x220c92[_0x18af17]={};}let _0x17c1db=!0x1;const _0x5da878=Object['keys'](_0x595411),_0x2e707e=Object['keys'](_0x390caf);for(const _0x158b90 of _0x5da878){if(_0x595411[_0x158b90]!==_0x390caf[_0x158b90]&&''!==_0x595411[_0x158b90]['trim']()){_0x17c1db=!0x0;break;}if(!_0x4544c2(_0x220c92[_0x158b90],_0x480eb5[_0x158b90])&&Object['keys'](_0x220c92[_0x158b90])['length']>0x0){_0x17c1db=!0x0;break;}}_0x17c1db||(_0x17c1db=_0x2e707e['some'](_0x71098f=>!this['editor']['model']['document']['getRoot'](_0x71098f))),_0x17c1db&&_0x2a22d8('editor-initial-data-replaced-with-revision-data',{'editorData':_0x595411,'editorRootsAttributes':_0x220c92,'revisionData':_0x390caf,'revisionRootsAttributes':_0x480eb5}),this['editor']['config']['set']('initialData',_0x390caf),this['editor']['config']['set']('rootsAttributes',_0x480eb5);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x686680=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x686680['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x48a44d){const _0x4ab347=this['repository']['getRevisions']();_0x4ab347['reverse']();let _0x47c160=0x0;for(;_0x47c160<_0x4ab347['length'];){const _0x1e6724=_0x4ab347[_0x47c160];if(_0x1e6724===this['currentRevision']){_0x47c160++;continue;}if(_0x1e6724['id']===this['_initialRevisionId'])break;const _0xa6e406=_0x48a44d['toVersion']-_0x1e6724['toVersion']||_0x48a44d['fromVersion']-_0x1e6724['fromVersion'];if(_0xa6e406>0x0)break;if(_0xa6e406<0x0)_0x47c160++;else{if(!_0x48a44d['creator']&&_0x1e6724['creator'])break;if(_0x1e6724['creator']||!_0x48a44d['creator']){if(_0x48a44d['createdAt']>_0x1e6724['createdAt'])break;_0x47c160++;}else _0x47c160++;}}return _0x47c160;}['_getFromVersion'](_0x783622){const _0x5f1eea=this['repository']['getRevisions']();_0x5f1eea['reverse'](),_0x5f1eea['shift']();const _0x2104b9=_0x5f1eea['find'](_0x10be7a=>_0x10be7a['toVersion']<=_0x783622)['toVersion'];return _0x2104b9<this['_startingVersion']?this['_startingVersion']:_0x2104b9;}['_makeRevision']({name:_0xef77e0,from:_0x3093bc,to:_0x3a85b6,creatorId:_0x252632,id:_0x1648c2}){const _0x37915b=this['buildRevisionData']({'from':_0x3093bc,'to':_0x3a85b6});_0x37915b['name']=_0xef77e0,_0x37915b['creatorId']=_0x252632,_0x37915b['id']=_0x1648c2;const _0x1edb37=this['addRevisionData'](_0x37915b);return this['adapter']&&this['_bufferUpdate'](_0x37915b['id'],_0x37915b,!0x0),_0x1edb37;}['_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(_0x3e58bd){this['editor']=_0x3e58bd,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'](_0x49cdce){this['source']=_0x49cdce;const _0x29a1d7=new Map(),_0x1bce2e=new Map(),_0x36e1c0=this['editor']['model']['document']['roots']['map'](_0x31f493=>_0x31f493['rootName']);for(const _0x35334f of _0x36e1c0){const _0x2f3afc=this['editor']['model']['document']['getRoot'](_0x35334f),_0x262079=x(_0x2f3afc);_0x29a1d7['set'](_0x35334f,_0x262079),_0x1bce2e['set'](_0x35334f,Object['fromEntries'](_0x2f3afc['getAttributes']()));}const _0x1eb64c=Array['from'](this['editor']['model']['markers'])['map'](_0x40ce1b=>[_0x40ce1b['name'],_0x40ce1b['getRange']()]),_0x48aa39=this['source']['version'];this['_saveMetaData'](_0x48aa39,_0x29a1d7,_0x1eb64c,_0x1bce2e),this['_startingRevisionId']=this['_revisionId'];const _0x42eaab=new Map(),_0x352b27=new Map();for(const _0x1fe8b0 of _0x36e1c0){const _0x17a7ed=N(_0x1fe8b0);_0x42eaab['set'](_0x1fe8b0,_0x17a7ed),_0x352b27['set'](_0x1fe8b0,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x42eaab,[],_0x352b27);}['getData'](_0x26bafc,_0x4706d8){if(this['_lastFrom']===_0x26bafc&&this['_lastTo']<=_0x4706d8)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x4706d8,!0x0);else{if(!this['_savedMetaData']['has'](_0x26bafc)){const _0x36ab3c=this['_getPreviousFrom'](_0x26bafc);this['_calculateMetaData'](_0x36ab3c,_0x26bafc,!0x1);}this['_calculateMetaData'](_0x26bafc,_0x4706d8,!0x0);}return this['_lastFrom']=_0x26bafc,this['_lastTo']=_0x4706d8,this['_getState']();}['loadState'](_0x487e70){if(!this['_savedMetaData']['has'](_0x487e70['fromVersion'])){const _0xa70197=this['_getPreviousFrom'](_0x487e70['fromVersion']);this['_calculateMetaData'](_0xa70197,_0x487e70['fromVersion'],!0x1);}this['_calculateMetaData'](_0x487e70['fromVersion'],_0x487e70['toVersion'],!0x1);const _0x3ae3e1=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x487e70['fromVersion'],this['_lastTo']=_0x487e70['toVersion'];for(const _0x18649e in _0x487e70['diffData']){const _0x49ec21=_0x487e70['diffData'][_0x18649e]['attachChange'],_0x232676=_0x459df9(_0x487e70['diffData'][_0x18649e]['attributesBefore'])||{},_0x5b739c=_0x3ae3e1['_makeModelFromViewString'](_0x487e70['diffData'][_0x18649e]['deletions']);_0x5b739c['rootName']=_0x18649e,_0x5b739c['_isAttached']=!_0x49ec21||!_0x49ec21['isAttached'],_0x5b739c['isAttached']=()=>_0x5b739c['_isAttached'],this['_baseRoots']['set'](_0x18649e,_0x5b739c),this['_baseRootsAttributes']['set'](_0x18649e,_0x232676),_0x49ec21&&this['_touchedRoots']['set'](_0x18649e,_0x49ec21);const _0x1ea424=this['_makeIdsRoot'](_0x5b739c);this['_baseIdsRoots']['set'](_0x18649e,_0x1ea424);for(const [_0x1a11f3,_0x1226c0]of _0x5b739c['markers']){if(!_0x1a11f3['startsWith']('revision:'))continue;const _0x183c03=_0x1a11f3['split'](':')[0x2];for(const _0x1c8345 of _0x1226c0['getWalker']({'singleCharacters':!0x0})){const _0x186dcb=this['_getVidAttributeName'](_0x1c8345),_0xf803a='elementEnd'==_0x1c8345['type']?_0x1c8345['previousPosition']['path']['slice'](0x0,-0x1):_0x1c8345['previousPosition']['path'],_0x1fba59=_0x1ea424['getNodeByPath'](_0xf803a)['getAttribute'](_0x186dcb);this['_touched']['set'](_0x1fba59,{'userId':_0x183c03});}_0x5b739c['markers']['delete'](_0x1a11f3);}}this['_startingRevisionId']=this['_revisionId'];const _0x14afa8=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x340be5=>!this['_touched']['has'](_0x340be5));let _0x2f0062=0x0;const _0x1abb2b=new Map();for(const _0xe1b23 in _0x487e70['diffData']){const _0xd37b8a=_0x487e70['diffData'][_0xe1b23]['attachChange'],_0x1ad6aa=_0x459df9(_0x487e70['diffData'][_0xe1b23]['attributesAfter'])||{},_0x3c2326=_0x3ae3e1['_makeModelFromViewString'](_0x487e70['diffData'][_0xe1b23]['insertions']);_0x3c2326['rootName']=_0xe1b23,_0x3c2326['_isAttached']=!_0xd37b8a||_0xd37b8a['isAttached'],_0x3c2326['isAttached']=()=>_0x3c2326['_isAttached'],this['_diffRoots']['set'](_0xe1b23,_0x3c2326),this['_diffRootsAttributes']['set'](_0xe1b23,_0x1ad6aa);const _0x511784=this['_makeIdsRoot'](_0x3c2326,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0xe1b23,_0x511784),_0x1abb2b['set'](_0xe1b23,_0x3c2326['isAttached']()?_0x1ad6aa:{});for(const [_0x2b8fdd,_0x142b9f]of _0x3c2326['markers']){if(!_0x2b8fdd['startsWith']('revision:'))continue;const _0xa35ee6=_0x2b8fdd['split'](':')[0x2];for(const _0x471a18 of _0x142b9f['getWalker']({'singleCharacters':!0x0})){const _0x4a372f=this['_getVidAttributeName'](_0x471a18),_0xdcbd7d=this['_revisionId']++,_0x125da0='elementEnd'==_0x471a18['type']?_0x471a18['previousPosition']['path']['slice'](0x0,-0x1):_0x471a18['previousPosition']['path'];_0x511784['getNodeByPath'](_0x125da0)['_setAttribute'](_0x4a372f,_0xdcbd7d),this['_touched']['set'](_0xdcbd7d,{'userId':_0xa35ee6});}_0x3c2326['markers']['delete'](_0x2b8fdd);}for(const _0x220937 of this['editor']['model']['createRangeIn'](_0x3c2326)['getWalker']({'singleCharacters':!0x0})){const _0x5336f9=this['_getVidAttributeName'](_0x220937),_0x7d9e13='elementEnd'==_0x220937['type']?_0x220937['previousPosition']['path']['slice'](0x0,-0x1):_0x220937['previousPosition']['path'],_0x4afb92=_0x511784['getNodeByPath'](_0x7d9e13);_0x4afb92['getAttribute'](_0x5336f9)>0x0||_0x4afb92['_setAttribute'](_0x5336f9,_0x14afa8[_0x2f0062++]);}for(const [_0x71227a,_0x56bd7a]of _0x3c2326['markers'])_0x71227a['startsWith']('revision:')||this['_markers']['set'](_0x71227a,_0x56bd7a);}const {roots:_0x1d6d16}=this['_savedMetaData']['get'](_0x487e70['fromVersion']),{roots:_0x3eb829}=this['_savedMetaData']['get'](_0x487e70['toVersion']),_0x3c1e87=x(_0x1d6d16['get']('$graveyard'));this['_baseRoots']['set']('$graveyard',_0x3c1e87),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x3c1e87,Number['NEGATIVE_INFINITY']));const _0xdd2baf=x(_0x3eb829['get']('$graveyard'));this['_diffRoots']['set']('$graveyard',_0xdd2baf),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0xdd2baf));const _0x5a41b7=Array['from'](this['_diffRoots'])['map'](([_0x5bfe25,_0x497684])=>[_0x5bfe25,x(_0x497684)]);this['_saveMetaData'](this['_lastTo'],_0x5a41b7,this['_markers'],_0x1abb2b);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x24fe8b,_0xd9e9ec,_0x226ef0,_0x48c749){const _0x46f165=new Map(_0xd9e9ec),_0x38ef44=new Map(_0x459df9(_0x48c749)),_0x4b5a97=new Map();for(const [_0x4e9021,_0x533025]of _0x226ef0)_0x4b5a97['set'](_0x4e9021,{'start':_0x533025['start']['clone'](),'end':_0x533025['end']['clone'](),'rootName':_0x533025['root']['rootName']});this['_savedMetaData']['set'](_0x24fe8b,{'roots':_0x46f165,'markers':_0x4b5a97,'rootsAttributes':_0x38ef44});}['_removeMetaData'](_0x378329){this['_savedMetaData']['delete'](_0x378329);}['_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'](_0x1ebc26,_0xa6893d=null){let _0x3437eb=null;_0x1ebc26['is']('documentFragment')||(_0x3437eb=new _0x16738f(_0x1ebc26['name'],{'vid_start':null===_0xa6893d?this['_revisionId']++:_0xa6893d++}));const _0x984d82=[];for(const _0x27b73f of _0x1ebc26['getChildren']())if(_0x27b73f['is']('element')){_0x984d82['push'](this['_makeIdsRoot'](_0x27b73f,_0xa6893d));const _0x1c38c5=_0x984d82[_0x984d82['length']-0x1];null!==_0xa6893d&&(_0xa6893d=_0x1c38c5['is']('element','$text')?_0x1c38c5['getAttribute']('vid')+0x1:_0x1c38c5['getAttribute']('vid_end')+0x1);}else{for(let _0x1f4579=0x0;_0x1f4579<_0x27b73f['offsetSize'];_0x1f4579++)_0x984d82['push'](new _0x16738f('$text',{'vid':null===_0xa6893d?this['_revisionId']++:_0xa6893d++}));}if(_0x1ebc26['is']('documentFragment')){const _0x46b47a=N(_0x1ebc26['rootName']);return _0x46b47a['_insertChild'](0x0,_0x984d82),_0x46b47a;}return _0x3437eb['_setAttribute']('vid_end',null===_0xa6893d?this['_revisionId']++:_0xa6893d++),_0x3437eb['_insertChild'](0x0,_0x984d82),_0x3437eb;}['_calculateMetaData'](_0x31f189,_0x1ae6f5,_0x21578a){this['_reset']();const {roots:_0x502855,markers:_0x2ae3cd,rootsAttributes:_0x543364}=this['_savedMetaData']['get'](_0x31f189);this['_baseRoots']=new Map(_0x502855),this['_baseRootsAttributes']=new Map(_0x459df9(_0x543364));for(const [_0x56e564,_0xd27f5b]of this['_baseRoots'])if('$graveyard'!==_0x56e564&&(this['_diffRoots']['set'](_0x56e564,x(_0xd27f5b)),this['_diffRootsAttributes']=new Map(_0x459df9(_0x543364)),_0x21578a)){const _0x457bf1=this['_revisionId'];this['_idsRoots']['set'](_0x56e564,this['_makeIdsRoot'](_0xd27f5b)),this['_baseIdsRoots']['set'](_0x56e564,this['_makeIdsRoot'](_0xd27f5b,_0x457bf1));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x21578a&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x176ee3,_0x463d43]of _0x2ae3cd){const _0x51cb95=this['_baseRoots']['get'](_0x463d43['rootName']),_0x3227da=this['_diffRoots']['get'](_0x463d43['rootName']),_0x4f4cfa=new _0xb076e3(this['_fixPosition'](_0x463d43['start'],_0x51cb95),this['_fixPosition'](_0x463d43['end'],_0x51cb95)),_0x12dff5=this['_fixRange'](_0x4f4cfa,_0x3227da);_0x51cb95['markers']['set'](_0x176ee3,_0x4f4cfa),this['_markers']['set'](_0x176ee3,_0x12dff5);}this['_applyOperations'](_0x31f189,_0x1ae6f5,_0x21578a);}['_applyOperations'](_0x4b1a96,_0x57f49e,_0x4c5b21){for(const _0x421dc7 of this['source']['getOperations'](_0x4b1a96,_0x57f49e))this['_handleOperation'](_0x421dc7,_0x4c5b21);for(const _0x3a2086 of this['_diffRoots']['values']())_0x3a2086['markers']['clear']();for(const [_0xff2972,_0x1246d0]of this['_markers']){this['_diffRoots']['get'](_0x1246d0['root']['rootName'])['markers']['set'](_0xff2972,_0x1246d0['clone']());}const _0x59a765=new Map(),_0x425faa=new Map();for(const [_0x2e8388,_0x4e2056]of this['_diffRoots'])_0x59a765['set'](_0x2e8388,x(_0x4e2056)),_0x425faa['set'](_0x2e8388,this['_diffRootsAttributes']['get'](_0x2e8388));this['_saveMetaData'](_0x57f49e,_0x59a765,this['_markers'],_0x425faa);}['_getPreviousFrom'](_0x2669ab){const _0x18b04c=Array['from'](this['_savedMetaData']['keys']());_0x18b04c['sort']((_0x727f0a,_0x8d485e)=>_0x727f0a-_0x8d485e),_0x18b04c['reverse']();for(const _0x56a6a5 of _0x18b04c)if(_0x56a6a5<_0x2669ab)return _0x56a6a5;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x4cc75d,_0x237d5d){const _0x4d5716=Array['from'](_0x237d5d['markers'])['map'](([_0x473c0a,_0x1e3c90])=>[_0x473c0a,this['_fixRange'](_0x1e3c90,_0x4cc75d)]);_0x4cc75d['markers']=new Map(_0x4d5716);}['_transformMarkers'](_0x1a964c){for(const _0x52f9a0 of this['_markers']['values']()){const _0x17c403=_0x52f9a0['getTransformedByOperation'](_0x1a964c),_0x522e50=_0xb076e3['_createFromRanges'](_0x17c403);_0x52f9a0['start']=_0x522e50['start'],_0x52f9a0['end']=_0x522e50['end'];}}['_handleOperation'](_0x5606c0,_0xcae450){if('addRoot'!=_0x5606c0['type']&&'detachRoot'!=_0x5606c0['type']){if('insert'==_0x5606c0['type']){const _0x395f17=_0x5606c0['position']['root']['rootName'];this['_diffRoots']['has'](_0x395f17)||(this['_diffRoots']['set'](_0x395f17,N(_0x395f17,!0x0)),this['_diffRootsAttributes']['set'](_0x395f17,{}),_0xcae450&&this['_idsRoots']['set'](_0x395f17,N(_0x395f17,!0x0)));}else{if('addRootAttribute'==_0x5606c0['type']||'removeRootAttribute'==_0x5606c0['type']||'changeRootAttribute'==_0x5606c0['type'])return void this['_handleRootAttributeOperation'](_0x5606c0);'marker'==_0x5606c0['type']&&this['_handleMarkerOperation'](_0x5606c0);}if('marker'!==_0x5606c0['type']){const _0x349cbb=this['_cloneOperation'](_0x5606c0,this['_diffRoots']);_0x349cbb['_execute'](),this['_transformMarkers'](_0x349cbb);}if(_0xcae450)switch(_0x5606c0['type']){case'insert':this['_handleInsertOperation'](_0x5606c0);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x5606c0);break;case'merge':this['_handleMergeOperation'](_0x5606c0);break;case'split':this['_handleSplitOperation'](_0x5606c0);}}else this['_handleRootOperation'](_0x5606c0,_0xcae450);}['_cloneOperation'](_0xe697ea,_0x5da46c){const _0x13b379=_0xe697ea['clone']();return _0x13b379['_authorId']=_0xe697ea['_authorId'],this['_fixOperation'](_0x13b379,_0x5da46c),_0x13b379;}['_getBaseVids'](_0x133d05){return _0x133d05['map'](_0x1759d4=>{const _0x5d6561=this['_getVidAttributeName'](_0x1759d4);return Number(_0x1759d4['item']['getAttribute'](_0x5d6561));});}['_generateTape'](_0x2e9be3,_0x3c37f2){if(_0x2e9be3['is']('element','$text'))_0x3c37f2['push']({'item':_0x2e9be3,'type':'text'});else{_0x2e9be3['is']('element')&&_0x3c37f2['push']({'item':_0x2e9be3,'type':'elementStart'});for(const _0x30b285 of _0x2e9be3['getChildren']())this['_generateTape'](_0x30b285,_0x3c37f2);_0x2e9be3['is']('element')&&_0x3c37f2['push']({'item':_0x2e9be3,'type':'elementEnd'});}return _0x3c37f2;}['_getState'](){const _0x2cab37=new Map(this['_touched']),_0x5c1df6=new Map(_0x2cab37),_0x23c77f=new Map(),_0x12a692={'insertions':{},'deletions':{}},_0x37aca8={'insertions':{},'deletions':{}},_0x2feca0=new Map(),_0x270e6f=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x270e6f['delete']('$graveyard');for(const _0x1872fe of _0x270e6f){const _0x151855=this['_diffRoots']['get'](_0x1872fe)||N(_0x1872fe,!0x1),_0x5761ad=this['_baseRoots']['get'](_0x1872fe)||N(_0x1872fe,!0x1);_0x151855['isAttached']()||_0x5761ad['isAttached']()?(_0x12a692['insertions'][_0x1872fe]=x(_0x151855),_0x12a692['deletions'][_0x1872fe]=x(_0x5761ad),this['_copyMarkers'](_0x12a692['deletions'][_0x1872fe],_0x5761ad),this['_copyMarkers'](_0x12a692['insertions'][_0x1872fe],_0x151855),_0x37aca8['insertions'][_0x1872fe]=this['_generateTape'](this['_idsRoots']['get'](_0x1872fe),[]),_0x37aca8['deletions'][_0x1872fe]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x1872fe)||N(_0x1872fe,!0x1),[])):_0x270e6f['delete'](_0x1872fe);}for(const _0x5bd111 of _0x270e6f){const _0x31407f=_0x37aca8['insertions'][_0x5bd111];for(const _0xe6ab82 of _0x31407f){const _0x4a0a15=this['_getVidAttributeName'](_0xe6ab82),_0x44ecc9=_0xe6ab82['item']['getAttribute'](_0x4a0a15);_0x5c1df6['delete'](_0x44ecc9),_0x44ecc9>=this['_startingRevisionId']&&_0x23c77f['set'](_0x44ecc9,_0x2cab37['get'](_0x44ecc9));}}for(const _0x5507ec of _0x270e6f){const _0x521e8d=_0x37aca8['insertions'][_0x5507ec],_0x17b7a4=this['_getBaseVids'](_0x37aca8['deletions'][_0x5507ec]);let _0x94261c=0x0;for(const _0x5238de of _0x521e8d){const _0x2c3da9=this['_getVidAttributeName'](_0x5238de),_0x133fb2=_0x5238de['item']['getAttribute'](_0x2c3da9);if(!_0x23c77f['has'](_0x133fb2)&&!_0x2feca0['has'](_0x133fb2)){if(_0x5c1df6['has'](_0x133fb2))_0x94261c++;else{if(_0x133fb2!=_0x17b7a4[_0x94261c]){const _0x352385=_0x2cab37['get'](_0x133fb2)||_0x2cab37['get'](_0x17b7a4[_0x94261c]);for(;_0x133fb2!=_0x17b7a4[_0x94261c];)_0x5c1df6['has'](_0x17b7a4[_0x94261c])||(_0x2feca0['set'](_0x17b7a4[_0x94261c],_0x352385),_0x2cab37['set'](_0x17b7a4[_0x94261c],_0x352385)),_0x94261c++;}_0x94261c++;}}}}for(const _0x9f6a73 of _0x270e6f){const _0x4887d8=_0x37aca8['insertions'][_0x9f6a73];for(const _0xd3c91c of _0x4887d8){const _0x20516e=this['_getVidAttributeName'](_0xd3c91c),_0x338f9e=_0xd3c91c['item']['getAttribute'](_0x20516e);if(_0x2feca0['has'](_0x338f9e)){const _0x3da11a=_0x2feca0['get'](_0x338f9e);_0x5c1df6['has'](_0x338f9e)||_0x5c1df6['set'](_0x338f9e,{..._0x3da11a}),_0x23c77f['set'](_0x338f9e,{..._0x3da11a});}}}for(const _0xbf1183 of _0x5c1df6['keys']())_0xbf1183>=this['_startingRevisionId']&&_0x5c1df6['delete'](_0xbf1183);const _0x33b2be=new Map();for(const _0x399d9c of _0x270e6f){let _0x2b81ca=_0x37aca8['insertions'][_0x399d9c];for(const _0x44a371 of _0x2b81ca)if(_0x44a371['item']['is']('element','tableCell')){const _0x58364e=this['_getVidAttributeName'](_0x44a371),_0x3c8c6a=_0x44a371['item']['getAttribute'](_0x58364e);if(_0x23c77f['has'](_0x3c8c6a)){const _0x4d6a35=_0x44a371['item']['parent']['parent']['getAttribute']('vid_start'),_0x7dbc78=_0x33b2be['get'](_0x4d6a35)||new Set();_0x7dbc78['add'](_0x23c77f['get'](_0x3c8c6a)['userId']),_0x33b2be['set'](_0x4d6a35,_0x7dbc78);}}_0x2b81ca=_0x37aca8['deletions'][_0x399d9c];for(const _0x519ad7 of _0x2b81ca)if(_0x519ad7['item']['is']('element','tableCell')){const _0x553c09=this['_getVidAttributeName'](_0x519ad7),_0x25f948=_0x519ad7['item']['getAttribute'](_0x553c09);if(_0x5c1df6['has'](_0x25f948)){const _0x5655f8=_0x519ad7['item']['parent']['parent']['getAttribute']('vid_start'),_0x195728=_0x33b2be['get'](_0x5655f8)||new Set();_0x195728['add'](_0x5c1df6['get'](_0x25f948)['userId']),_0x33b2be['set'](_0x5655f8,_0x195728);}}for(const _0x48725b of _0x33b2be['keys']())(_0x23c77f['has'](_0x48725b)||_0x5c1df6['has'](_0x48725b))&&_0x33b2be['delete'](_0x48725b);}for(const _0x1b68b8 of _0x270e6f){const _0x1a4a85=_0x37aca8['insertions'][_0x1b68b8];let _0x1c0189=null,_0x5e9d51=null;for(const _0x29103e of _0x1a4a85){const _0x289895=this['_getVidAttributeName'](_0x29103e),_0x3e17b1=_0x29103e['item']['getAttribute'](_0x289895),_0x48e9ed=_0x33b2be['get'](_0x3e17b1);_0x48e9ed&&'elementStart'==_0x29103e['type']&&(_0x1c0189=Array['from'](_0x48e9ed)[0x0],_0x5e9d51=_0x29103e['item']['getAttribute']('vid_end')),_0x1c0189&&(_0x5c1df6['set'](_0x3e17b1,{'userId':_0x1c0189}),_0x23c77f['set'](_0x3e17b1,{'userId':_0x1c0189})),_0x3e17b1==_0x5e9d51&&(_0x1c0189=null,_0x5e9d51=null);}}const _0x193f29={},_0xfa6cea=new Set();for(const _0x670097 of _0x270e6f){const _0x4fe73a=_0x12a692['deletions'][_0x670097],_0x9b040=_0x12a692['insertions'][_0x670097];for(const {userId:_0xe9464}of this['_touchedMarkers']['values']())null!==_0xe9464&&_0xfa6cea['add'](_0xe9464);for(const {userId:_0x35c2da}of this['_touchedRoots']['values']())null!==_0x35c2da&&_0xfa6cea['add'](_0x35c2da);this['_markChanges'](_0x9b040,_0x37aca8['insertions'][_0x670097],_0x23c77f,'insertion',_0xfa6cea),this['_markChanges'](_0x4fe73a,_0x37aca8['deletions'][_0x670097],_0x5c1df6,'deletion',_0xfa6cea),_0x193f29[_0x670097]={'insertions':this['_prepareViewToSave'](_0x9b040),'deletions':this['_prepareViewToSave'](_0x4fe73a),'attachChange':this['_touchedRoots']['get'](_0x670097)||null,'attributesBefore':_0x459df9(this['_baseRootsAttributes']['get'](_0x670097))||{},'attributesAfter':_0x459df9(this['_diffRootsAttributes']['get'](_0x670097))};}return{'diffData':_0x193f29,'authorsIds':Array['from'](_0xfa6cea)};}['_processRootBeforeSave'](_0x2edfbf){for(const [,_0x348ba5]of _0x2edfbf['markers']){const _0x144bb0=_0x348ba5['start']['getAncestors']()['filter'](_0x54f62c=>'tableCell'==_0x54f62c['name']);for(const _0x585c09 of _0x144bb0)0x1==_0x585c09['childCount']&&_0x585c09['getChild'](0x0)['is']('element','paragraph')&&_0x585c09['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0xe58741){this['_processRootBeforeSave'](_0xe58741);const _0x5d45b6=this['editor']['data']['toView'](_0xe58741,{}),_0x28807d=Array['from'](_0x5d45b6['getChildren']())['map'](_0xc5c452=>this['_getViewJson'](_0xc5c452));return JSON['stringify'](_0x28807d);}['_getViewJson'](_0x4092bb){if(_0x4092bb['is']('$text'))return _0x4092bb['data'];{const _0x17e128=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x98e86e=_0x4092bb,_0xe4f0ff=this['editor']['data']['htmlProcessor']['domConverter'],_0x2ed3ed={'type':_0x17e128['_getTypeCharForViewElement'](_0x98e86e),'name':_0x98e86e['name'],'attributes':Array['from'](_0x98e86e['getAttributes']()),'children':Array['from'](_0x98e86e['getChildren']())['map'](_0x500013=>this['_getViewJson'](_0x500013))};if(_0x4092bb['is']('uiElement')&&'$comment'!=_0x4092bb['name']){const _0x535995=_0x4092bb['render'](_0xe4f0ff['domDocument'],_0xe4f0ff);_0x2ed3ed['children']['push'](_0x535995['outerHTML']);}else{if(_0x4092bb['is']('rawElement')){const _0x56a49c=_0xe4f0ff['domDocument']['createElement'](_0x98e86e['name']);_0x4092bb['render'](_0x56a49c,_0xe4f0ff),_0x2ed3ed['children']['push'](_0x56a49c['innerHTML']);}}const _0x3dee63=Array['from'](_0x98e86e['getCustomProperties']());_0x3dee63['length']>0x0&&(_0x2ed3ed['customProperties']=_0x3dee63);const _0x5b57c3=_0x98e86e['getFillerOffset']();return null!==_0x5b57c3&&(_0x2ed3ed['fillerOffset']=_0x5b57c3),_0x2ed3ed;}}['_markChanges'](_0x409e64,_0x412ec4,_0x2db651,_0x2f945e,_0x54858e){let _0x35a26f=null,_0x12a5f4=null,_0x4ea7b4=0x0;const _0x23c2e0=this['editor']['model'];for(let _0x57b458=0x0;_0x57b458<_0x412ec4['length'];_0x57b458++){const _0x45d45a=this['_getVidAttributeName'](_0x412ec4[_0x57b458]),_0x572da0=_0x412ec4[_0x57b458]['item']['getAttribute'](_0x45d45a),_0x2e7ddf=_0x2db651['get'](_0x572da0),_0x2a7a48=_0x57b458==_0x412ec4['length']-0x1;(!_0x35a26f&&_0x2e7ddf&&(_0x35a26f=_0x2e7ddf,_0x12a5f4=_0x412ec4[_0x57b458]),_0x35a26f&&(!_0x2e7ddf||_0x2e7ddf['userId']!=_0x35a26f['userId']))&&(_0x4ae7ca(_0x2e7ddf,P(_0x12a5f4,_0x409e64,_0x23c2e0),P(_0x412ec4[_0x57b458],_0x409e64,_0x23c2e0)),_0x35a26f=_0x2e7ddf||null,_0x12a5f4=_0x2e7ddf?_0x412ec4[_0x57b458]:null),_0x35a26f&&_0x2a7a48&&_0x4ae7ca(_0x2e7ddf,P(_0x12a5f4,_0x409e64,_0x23c2e0),V(_0x412ec4[_0x57b458],_0x409e64,_0x23c2e0));}function _0x4ae7ca(_0x4ca5a0,_0x49633d,_0x6cbb16){const _0x3ea36e=_0x35a26f['userId'],_0x1637f7='revision:'+_0x2f945e+':'+_0x3ea36e+':'+_0x4ea7b4++,_0x45f053=_0x23c2e0['createRange'](_0x49633d,_0x6cbb16);_0x409e64['markers']['set'](_0x1637f7,_0x45f053),null!==_0x3ea36e&&_0x54858e['add'](_0x3ea36e);}}['_getVidAttributeName'](_0x2a4ffc){switch(_0x2a4ffc['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x13ccd0,_0x258b24){_0x13ccd0['baseVersion']=null;for(const _0x55f6e8 in _0x13ccd0){const _0x40dee5=_0x13ccd0[_0x55f6e8];if(_0x40dee5 instanceof _0x3cb0ec){const _0x195de6=_0x258b24['get'](_0x40dee5['root']['rootName']);_0x13ccd0[_0x55f6e8]=this['_fixPosition'](_0x40dee5,_0x195de6);}if(_0x40dee5 instanceof _0xb076e3){const _0x1789d9=_0x258b24['get'](_0x40dee5['root']['rootName']);_0x13ccd0[_0x55f6e8]=this['_fixRange'](_0x40dee5,_0x1789d9);}'root'===_0x55f6e8&&(_0x13ccd0['root']=_0x258b24['get'](_0x13ccd0['root']['rootName']));}}['_fixRange'](_0x9b0a1d,_0x2ebe3e){return this['editor']['model']['createRange'](this['_fixPosition'](_0x9b0a1d['start'],_0x2ebe3e),this['_fixPosition'](_0x9b0a1d['end'],_0x2ebe3e));}['_fixPosition'](_0x331f2a,_0x5adc74){return this['editor']['model']['createPositionFromPath'](_0x5adc74,_0x331f2a['path'],_0x331f2a['stickiness']);}['_handleInsertOperation'](_0x37cb17){const _0x15d133=this['_idsRoots']['get'](_0x37cb17['position']['root']['rootName']),_0x112c68=this['_fixPosition'](_0x37cb17['position'],_0x15d133),_0x316a0c=null===_0x37cb17['_authorId']?null:_0x37cb17['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x53d7af=_0x112c68['parent'],_0x1fe468=this['_revisionId'],_0x5105cb=[];for(const _0x4fe734 of _0x37cb17['nodes'])if(_0x4fe734['is']('element'))_0x5105cb['push'](this['_makeIdsRoot'](_0x4fe734));else{for(let _0x514f12=0x0;_0x514f12<_0x4fe734['offsetSize'];_0x514f12++)_0x5105cb['push'](new _0x16738f('$text',{'vid':this['_revisionId']++}));}const _0x556759=this['_revisionId'];for(let _0x2a449f=_0x1fe468;_0x2a449f<_0x556759;_0x2a449f++)this['_touched']['set'](_0x2a449f,{'userId':_0x316a0c});_0x53d7af['_insertChild'](_0x112c68['offset'],_0x5105cb);}['_handleMoveOperation'](_0x3a122a){(_0x3a122a=this['_cloneOperation'](_0x3a122a,this['_idsRoots']))['_execute']();const _0x3abbcf=null===_0x3a122a['_authorId']?null:_0x3a122a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1d0ba0=_0x3a122a['getMovedRangeStart'](),_0x58a299=_0x1d0ba0['parent'],_0xcae527=_0x1d0ba0['offset'];!function _0x33eb0e(_0x217efd,_0x4e98c5,_0x1a8005,_0x1ad437){for(let _0x232284=_0x1a8005;_0x232284<_0x1ad437;_0x232284++){const _0x176b40=_0x4e98c5['getChild'](_0x232284);_0x176b40['is']('element','$text')?_0x217efd['set'](_0x176b40['getAttribute']('vid'),{'userId':_0x3abbcf}):(_0x217efd['set'](_0x176b40['getAttribute']('vid_start'),{'userId':_0x3abbcf}),_0x33eb0e(_0x217efd,_0x176b40,0x0,_0x176b40['childCount']),_0x217efd['set'](_0x176b40['getAttribute']('vid_end'),{'userId':_0x3abbcf}));}}(this['_touched'],_0x58a299,_0xcae527,_0xcae527+_0x3a122a['howMany']);}['_handleMergeOperation'](_0x12187){const _0x46519d=null===(_0x12187=this['_cloneOperation'](_0x12187,this['_idsRoots']))['_authorId']?null:_0x12187['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x16eee0=_0x12187['targetPosition']['parent'],_0x450192=_0x12187['sourcePosition']['parent'],_0x2928dd=_0x16eee0['getAttribute']('vid_end'),_0x22f90a=_0x450192['getAttribute']('vid_start');_0x16eee0['_setAttribute']('vid_end',_0x450192['getAttribute']('vid_end')),_0x450192['_setAttribute']('vid_end',_0x2928dd),this['_touched']['set'](_0x22f90a,{'userId':_0x46519d}),this['_touched']['set'](_0x2928dd,{'userId':_0x46519d}),_0x12187['_execute']();}['_handleSplitOperation'](_0x9c2957){const _0x40c561=null===(_0x9c2957=this['_cloneOperation'](_0x9c2957,this['_idsRoots']))['_authorId']?null:_0x9c2957['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x54dcd0=_0x9c2957['graveyardPosition'],_0x5b095b=_0x9c2957['splitPosition']['parent'];_0x9c2957['_execute']();const _0x2881c5=_0x5b095b['getAttribute']('vid_end'),_0x4ff0f0=_0x9c2957['insertionPosition']['nodeAfter'];if(_0x54dcd0){const _0x291676=_0x4ff0f0['getAttribute']('vid_end'),_0x4bdc3e=_0x5b095b['getAttribute']('vid_end');_0x5b095b['_setAttribute']('vid_end',_0x291676),_0x4ff0f0['_setAttribute']('vid_end',_0x4bdc3e),this['_touched']['set'](_0x5b095b['getAttribute']('vid_end'),{'userId':_0x40c561}),this['_touched']['set'](_0x4ff0f0['getAttribute']('vid_start'),{'userId':_0x40c561});}else{const _0xd6ffdd=this['_revisionId']++,_0x3fad4e=this['_revisionId']++;_0x5b095b['_setAttribute']('vid_end',_0xd6ffdd),_0x4ff0f0['_setAttribute']('vid_start',_0x3fad4e),_0x4ff0f0['_setAttribute']('vid_end',_0x2881c5),this['_touched']['set'](_0xd6ffdd,{'userId':_0x40c561}),this['_touched']['set'](_0x3fad4e,{'userId':_0x40c561});}}['_handleMarkerOperation'](_0x587d08){if(!_0x587d08['affectsData'])return;const _0x221699=(_0x587d08=this['_cloneOperation'](_0x587d08,this['_diffRoots']))['oldRange']?_0x587d08['oldRange']['root']:null,_0x158037=_0x587d08['newRange']?_0x587d08['newRange']['root']:null;_0x221699&&this['_markers']['delete'](_0x587d08['name']),_0x158037&&this['_markers']['set'](_0x587d08['name'],_0x587d08['newRange']['clone']());const _0x11072e=null===_0x587d08['_authorId']?null:_0x587d08['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x44a5e9=_0x587d08['name'];if(!this['_touchedMarkers']['has'](_0x44a5e9))return void this['_touchedMarkers']['set'](_0x44a5e9,{'range':_0x587d08['oldRange'],'userId':_0x11072e});const _0x591cec=this['_touchedMarkers']['get'](_0x44a5e9),_0x2f2eae=_0x591cec['range'],_0x5c78a1=_0x587d08['newRange'];null==_0x2f2eae&&null==_0x5c78a1||_0x2f2eae&&_0x5c78a1&&_0x2f2eae['isEqual'](_0x5c78a1)?this['_touchedMarkers']['delete'](_0x587d08['name']):_0x591cec['userId']=_0x11072e;}['_handleRootOperation'](_0x2e60a3,_0x3e4a22){this['_diffRoots']['has'](_0x2e60a3['rootName'])?this['_diffRoots']['get'](_0x2e60a3['rootName'])['_isAttached']=_0x2e60a3['isAdd']:(this['_diffRoots']['set'](_0x2e60a3['rootName'],N(_0x2e60a3['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x2e60a3['rootName'],{}),_0x3e4a22&&this['_idsRoots']['set'](_0x2e60a3['rootName'],N(_0x2e60a3['rootName'],!0x0)));const _0x28b460=null===_0x2e60a3['_authorId']?null:_0x2e60a3['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5f40ff=this['_touchedRoots']['get'](_0x2e60a3['rootName']);_0x5f40ff&&_0x5f40ff['userId']===_0x28b460?this['_touchedRoots']['delete'](_0x2e60a3['rootName']):this['_touchedRoots']['set'](_0x2e60a3['rootName'],{'userId':_0x28b460,'isAttached':_0x2e60a3['isAdd']});}['_handleRootAttributeOperation'](_0x324e48){const _0x1a0651=this['_diffRootsAttributes']['get'](_0x324e48['root']['rootName']);null===_0x324e48['newValue']?delete _0x1a0651[_0x324e48['key']]:_0x1a0651[_0x324e48['key']]=_0x324e48['newValue'];}}function x(_0x243a9b){const _0x4bb270=N(_0x243a9b['rootName'],_0x243a9b['isAttached']());for(const _0x52b13a of _0x243a9b['getChildren']()){const _0x59842b=_0x52b13a['_clone'](!0x0);_0x4bb270['_appendChild'](_0x59842b);}return _0x4bb270;}function N(_0x28f6d4,_0x3a5a5f=!0x0){const _0x26480d=new _0x54d9b6();return _0x26480d['rootName']=_0x28f6d4,_0x26480d['_isAttached']=_0x3a5a5f,_0x26480d['isAttached']=()=>_0x26480d['_isAttached'],_0x26480d;}function P(_0x43d577,_0x59f6e8,_0x1b6928){const _0x101433='elementEnd'==_0x43d577['type']?_0x1b6928['createPositionAt'](_0x43d577['item'],'end'):_0x1b6928['createPositionBefore'](_0x43d577['item']);return _0x1b6928['createPositionFromPath'](_0x59f6e8,_0x101433['path'],_0x101433['stickiness']);}function V(_0x326d59,_0x229f6f,_0x74783d){const _0x484e91='elementStart'==_0x326d59['type']?_0x74783d['createPositionAt'](_0x326d59['item'],0x0):_0x74783d['createPositionAfter'](_0x326d59['item']);return _0x74783d['createPositionFromPath'](_0x229f6f,_0x484e91['path'],_0x484e91['stickiness']);}class me extends/* #__PURE__ -- @preserve */
|
|
25
|
-
|
|
26
|
-
_0x911840(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x4cbae6){super(),this['id']=_0x4cbae6['id']||_0x221375(),this['author']=_0x4cbae6['author'],this['type']=_0x4cbae6['type'],this['data']=_0x4cbae6['data']||{},this['rootName']=_0x4cbae6['rootName'],this['set']('createdAt',_0x4cbae6['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(_0x51da46,_0x44442f){this['newRevisionId']=_0x51da46,this['oldRevisionId']=_0x44442f,this['changes']=new _0x51dee5();}['_setChanges'](_0x1aeb79){for(const _0xc8660a of _0x1aeb79)this['changes']['add'](_0xc8660a);}}class u extends _0x59afc0{['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[_0x4e6a9f,_0x43390d,S,$];}constructor(_0x26318f){super(_0x26318f),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',(_0x13256f,_0x288b74,_0x559108)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0xe97598=>{for(const _0x21b666 of this['editor']['editing']['view']['document']['roots'])_0x559108?_0xe97598['removeClass']('ck-editor__editable__overlay',_0x21b666):_0xe97598['addClass']('ck-editor__editable__overlay',_0x21b666);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x1a2892=>null!==_0x1a2892),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x44c7f9,_0x31a180,_0x5b654a)=>_0x44c7f9&&_0x5b654a?_0x31a180['changes']['getIndex'](_0x5b654a):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x348638,_0x56d010)=>_0x348638?_0x56d010['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x43390d);}['init'](){const _0x590110=this['editor'],_0x3e81f9=new rt(_0x590110,{'direction':'backward'}),_0x4edb62=new rt(_0x590110,{'direction':'forward'});(_0x590110['commands']['add']('showPreviousChange',_0x3e81f9),_0x590110['commands']['add']('showNextChange',_0x4edb62),_0x590110['commands']['add']('restoreRevision',new nt(_0x590110)),this['on']('change:numberOfChanges',()=>{_0x3e81f9['refresh'](),_0x4edb62['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x590110['enableReadOnlyMode']('revision-viewer'),_0x590110['plugins']['has']('WidgetToolbarRepository'))&&_0x590110['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x210feb){return await this['_utils']['loadRevisionData'](_0x210feb,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x210feb);}async['getRevisionRootsAttributes'](_0x3dabcf){return await this['_utils']['loadRevisionData'](_0x3dabcf,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x3dabcf);}async['compare'](_0x184c6b,_0x2403e4,_0x2ebceb=!0x1){if(!this['isEnabled'])return;const _0x4b7c8f=this['diff'],_0x565f3e=this['repository'],_0x1e43ea='string'==typeof _0x184c6b?_0x565f3e['getRevision'](_0x184c6b):_0x184c6b,_0x311099='string'==typeof _0x2403e4?_0x565f3e['getRevision'](_0x2403e4):_0x2403e4,_0x362ff2=_0x1e43ea['id'],_0x46a04c=_0x311099?_0x311099['id']:null;if(!_0x2ebceb&&this['diff']&&this['diff']['newRevisionId']===_0x362ff2&&this['diff']['oldRevisionId']===_0x46a04c)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x362ff2,_0x46a04c);const _0x3f08fa=this['_getRevisionsRange'](_0x1e43ea,_0x311099,!0x0)['map'](_0x1dfeac=>this['_utils']['loadRevisionData'](_0x1dfeac,this['adapter']));return _0x3f08fa['push'](new Promise(_0x454f6d=>{setTimeout(_0x454f6d,0x14);})),Promise['all'](_0x3f08fa)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x45242f=this['_getDiff'](_0x362ff2,_0x46a04c);for(const _0x46709f of _0x45242f['changes'])this['_changeIdToChange']['set'](_0x46709f['id'],_0x46709f);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x29fbab=>{for(const _0x286f7a of this['editor']['model']['document']['getRootNames']())_0x29fbab['detachRoot'](_0x286f7a);for(const _0x1c687e of Object['keys'](_0x45242f['model'])){const _0x28b4df=_0x29fbab['addRoot'](_0x1c687e);for(const _0x2e07a3 of Object['keys'](_0x45242f['attributes'][_0x1c687e]))_0x29fbab['setAttribute'](_0x2e07a3,_0x45242f['attributes'][_0x1c687e][_0x2e07a3],_0x28b4df);_0x29fbab['insert'](_0x45242f['model'][_0x1c687e],_0x28b4df,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x45242f['changes'])),this['isReady']=!0x0;})['catch'](_0x5d1388=>{console['error'](_0x5d1388),this['_cleanUp'](),_0x4b7c8f&&(this['diff']=_0x4b7c8f),this['isReady']=!0x0;});}['addRevisionData'](_0x324143,_0xb24126){const _0x2a4c92=this['repository']['createRevision'](_0x324143);return _0x2a4c92['on']('_update',(_0x370a41,_0x559c6a,_0x46df98)=>_0xb24126(_0x559c6a,_0x46df98,_0x2a4c92)),this['repository']['addRevision'](_0x2a4c92),_0x2a4c92;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x33ac67=>{for(const _0x307ae2 of this['editor']['model']['document']['getRootNames']())_0x33ac67['detachRoot'](_0x307ae2);});}['_sortAndFilterDiffChanges'](_0x583eaa){const _0x57bffc=[],_0x53a419=new Map();for(const _0x321dc4 of this['editor']['model']['document']['getRootNames']()){const _0x117c64=this['editor']['editing']['view']['getDomRoot'](_0x321dc4);if(!_0x117c64)continue;const _0x3aaab3=_0x117c64['getClientRects']()['item'](0x0);_0x3aaab3&&(_0x57bffc['push'](_0x321dc4),_0x53a419['set'](_0x321dc4,_0x3aaab3));}return _0x57bffc['sort']((_0xa3bcc2,_0x5ee4fe)=>{const _0x4b2d38=_0x53a419['get'](_0xa3bcc2),_0x179af1=_0x53a419['get'](_0x5ee4fe);return _0x4b2d38['y']-_0x179af1['y']||_0x4b2d38['x']-_0x179af1['x'];}),(_0x583eaa=_0x583eaa['filter'](_0x229255=>_0x57bffc['includes'](_0x229255['rootName'])))['sort']((_0x46bf88,_0x54b472)=>_0x57bffc['indexOf'](_0x46bf88['rootName'])-_0x57bffc['indexOf'](_0x54b472['rootName'])),_0x583eaa;}['_makeTape'](_0x19857b){const _0x5dde87=Array['from'](_0x19857b['markers'])['filter'](([_0xa13c65,_0x45fec8])=>_0xa13c65['startsWith']('revision:')&&!_0x45fec8['isCollapsed']),_0x454c29=Array['from'](this['editor']['model']['createRangeIn'](_0x19857b)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x5dde87['length'])for(const _0x27f8a0 of _0x454c29){const [_0x1edb6c,_0x9a7124]=_0x5dde87[0x0],[,_0xf73c3f,_0x395350]=_0x1edb6c['split'](':');if(_0x9a7124['end']['isEqual'](_0x27f8a0['nextPosition'])&&_0x5dde87['shift'](),(_0x27f8a0['previousPosition']['isEqual'](_0x9a7124['start'])||_0x27f8a0['previousPosition']['isAfter'](_0x9a7124['start']))&&('insertion'==_0xf73c3f?_0x27f8a0['isAdded']={'userId':_0x395350}:'deletion'==_0xf73c3f&&(_0x27f8a0['isRemoved']={'userId':_0x395350})),0x0==_0x5dde87['length'])break;}return _0x454c29;}['_refreshStartEndIndex'](_0x10bf2b){const _0xe4e34d=new Map();for(let _0xc4690b=0x0;_0xc4690b<_0x10bf2b['length'];_0xc4690b++)'text'===_0x10bf2b[_0xc4690b]['type']?(_0x10bf2b[_0xc4690b]['item']['startIndex']=_0xc4690b,_0x10bf2b[_0xc4690b]['item']['endIndex']=_0xc4690b):('elementStart'===_0x10bf2b[_0xc4690b]['type']?_0x10bf2b[_0xc4690b]['item']['startIndex']=_0xc4690b:'elementEnd'===_0x10bf2b[_0xc4690b]['type']&&(_0x10bf2b[_0xc4690b]['item']['endIndex']=_0xc4690b),_0xe4e34d['set'](_0x10bf2b[_0xc4690b]['id'],_0xc4690b));for(const _0x480dbc of _0xe4e34d['values']())'elementStart'===_0x10bf2b[_0x480dbc]['type']?_0x10bf2b[_0x480dbc]['item']['endIndex']=_0xe4e34d['get'](_0x10bf2b[_0x480dbc]['pairId']):'elementEnd'===_0x10bf2b[_0x480dbc]['type']&&(_0x10bf2b[_0x480dbc]['item']['startIndex']=_0xe4e34d['get'](_0x10bf2b[_0x480dbc]['pairId']));}['_processTape'](_0x197396){for(let _0x4c850b=0x0;_0x4c850b<_0x197396['length'];_0x4c850b++){if('elementStart'===_0x197396[_0x4c850b]['type'])_0x197396[_0x4c850b]['item']['startIndex']=_0x4c850b;else{if('elementEnd'===_0x197396[_0x4c850b]['type']){_0x197396[_0x4c850b]['item']['endIndex']=_0x4c850b;const _0x211966=_0x197396[_0x4c850b]['item']['startIndex'];_0x197396[_0x211966]['pairId']=_0x197396[_0x4c850b]['id'],_0x197396[_0x4c850b]['pairId']=_0x197396[_0x211966]['id'];}else _0x197396[_0x4c850b]['item']['startIndex']=_0x4c850b,_0x197396[_0x4c850b]['item']['endIndex']=_0x4c850b,_0x197396[_0x4c850b]['pairId']=null;}_0x197396[_0x4c850b]['markersStart']||(_0x197396[_0x4c850b]['markersStart']=[],_0x197396[_0x4c850b]['markersEnd']=[]);}}['_markInsertions'](_0x32e1eb,_0x39f9fa){const _0x545462=_0x32e1eb['filter'](_0x32098d=>!_0x32098d['isAdded']);for(let _0x422573=0x0;_0x422573<_0x39f9fa['length'];_0x422573++)_0x39f9fa[_0x422573]['isAdded']&&(_0x545462[_0x422573]['isAdded']=_0x39f9fa[_0x422573]['isAdded']);}['_getDiff'](_0x3a1b92,_0x3147be=null){const _0x2e6cf8=this['repository']['getRevision'](_0x3a1b92),_0x4c36c9=_0x3147be?this['repository']['getRevision'](_0x3147be):null,_0x123f15=this['_getRevisionsRange'](_0x2e6cf8,_0x4c36c9),_0x1c4bf0=_0x123f15[_0x123f15['length']-0x1],_0x5f335a=new Map(),_0x396b49={'model':{},'attributes':{},'changes':[]},_0x350999=new Set(),_0x257fef=new Map();for(let _0x361d3d=_0x123f15['length']-0x1;_0x361d3d>=0x0;_0x361d3d--){const _0x253e56=_0x123f15[_0x361d3d];for(const _0x31b196 of Object['keys'](_0x253e56['diffData']))if(_0x253e56['diffData'][_0x31b196]['attachChange']){const _0x27f2a7=_0x253e56['diffData'][_0x31b196]['attachChange'];_0x27f2a7['isAttached']?(_0x350999['add'](_0x31b196),_0x257fef['has'](_0x31b196)&&_0x257fef['get'](_0x31b196)['userId']==_0x27f2a7['userId']?_0x257fef['delete'](_0x31b196):_0x257fef['set'](_0x31b196,_0x27f2a7)):_0x257fef['has'](_0x31b196)?(_0x350999['delete'](_0x31b196),_0x257fef['delete'](_0x31b196)):(_0x350999['add'](_0x31b196),_0x257fef['set'](_0x31b196,_0x27f2a7));}else _0x350999['add'](_0x31b196);}for(const _0x51e847 of _0x350999){const _0x4b397f=_0x257fef['has'](_0x51e847)&&!_0x257fef['get'](_0x51e847)['isAttached'];let _0x1dcc6f=_0x4b397f?_0x123f15['length']-0x1:0x0;const _0x1d630a=_0x4b397f?-0x1:0x1;for(;_0x123f15[_0x1dcc6f];){const _0x1c36b0=_0x123f15[_0x1dcc6f];if(_0x1c36b0['diffData'][_0x51e847]){const _0x1f8931=_0x4b397f?_0x1c36b0['diffData'][_0x51e847]['attributesBefore']:_0x1c36b0['diffData'][_0x51e847]['attributesAfter'];_0x396b49['attributes'][_0x51e847]=_0x1f8931?_0x459df9(_0x1f8931):{};break;}_0x1dcc6f+=_0x1d630a;}}for(const _0x24913e of _0x123f15){_0x24913e['model']={};for(const _0x1d56b4 of _0x24913e['authors'])_0x5f335a['set'](_0x1d56b4['id'],_0x1d56b4);for(const _0x3e914a of _0x350999){const _0x542aef=_0x24913e['diffData'][_0x3e914a]?_0x24913e['diffData'][_0x3e914a]['insertions']:'[]',_0x556203=_0x24913e['diffData'][_0x3e914a]?_0x24913e['diffData'][_0x3e914a]['deletions']:'[]';_0x24913e['model'][_0x3e914a]={'insertions':this['_utils']['_makeModelFromViewString'](_0x542aef),'deletions':this['_utils']['_makeModelFromViewString'](_0x556203)};}}for(const _0x208f66 of _0x350999){let _0x1d1209=null,_0x30acc8=0x0;const _0x631860=new Map(Array['from'](_0x2e6cf8['model'][_0x208f66]['insertions']['markers'])['filter'](([_0x292a67])=>!_0x292a67['startsWith']('revision:')));let _0x35cfeb=0x0;for(const _0x3813b1 of _0x123f15){const _0x463d8a=this['_makeTape'](_0x3813b1['model'][_0x208f66]['insertions']);_0x3813b1==_0x2e6cf8?(_0x1d1209=_0x463d8a,_0x30acc8=_0x1d1209['length'],_0x1d1209['forEach'](_0x253c57=>{_0x253c57['id']=_0x35cfeb++;}),this['_processTape'](_0x1d1209)):this['_markInsertions'](_0x1d1209,_0x463d8a);const _0xca6924=_0x1d1209['filter'](_0x12039f=>!_0x12039f['isAdded'])['map'](_0x34e1b6=>_0x34e1b6['id']);let _0x4b81dd=0x0;const _0x183b7e=this['_makeTape'](_0x3813b1['model'][_0x208f66]['deletions']);_0x183b7e['forEach'](_0xabc3e5=>{_0xabc3e5['isRemoved']?_0xabc3e5['id']=_0x30acc8++:_0xabc3e5['id']=_0xca6924[_0x4b81dd++];}),this['_processTape'](_0x183b7e),this['_setDistance'](_0x1d1209,'isAdded'),this['_setDistance'](_0x183b7e,'isRemoved'),_0x3813b1==_0x2e6cf8&&this['_markMarkers'](_0x1d1209,_0x631860),_0x1d1209=this['_joinTapes'](_0x1d1209,_0x183b7e),this['_refreshStartEndIndex'](_0x1d1209),this['_setDistance'](_0x1d1209,'isRemoved');}_0x1d1209=_0x1d1209['filter'](_0x2e4ddc=>!(_0x2e4ddc['isAdded']&&_0x2e4ddc['isRemoved']));const _0x53078e=new Map(_0x1c4bf0['model'][_0x208f66]['deletions']['markers']),_0x5a20c5=new Set(_0x631860['keys']());for(const _0x6b90a of _0x53078e['keys']())_0x5a20c5['delete'](_0x6b90a);this['_markSuggestions'](_0x1d1209,_0x5a20c5),this['_fixObsoleteTags'](_0x1d1209),_0x1d1209=this['_removeMissingPairs'](_0x1d1209),_0x1d1209=this['_markMismatchedRemovedTags'](_0x1d1209),_0x1d1209=this['_removeUnsupportedChanges'](_0x1d1209);const {root:_0x250822,changes:_0x4d75b4}=this['_makeModelFromTape'](_0x1d1209,_0x5f335a,_0x208f66);_0x396b49['model'][_0x208f66]=_0x250822;const _0x525b1c=_0x257fef['get'](_0x208f66);if(_0x525b1c){const _0x3df6b3=_0x5f335a['get'](_0x525b1c['userId']),_0x5f1859=new G({'author':_0x3df6b3,'type':_0x525b1c['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x208f66});_0x4d75b4['unshift'](_0x5f1859),_0x396b49['attributes'][_0x208f66]['revisionHistoryAttachChange']=_0x5f1859['id'];}_0x396b49['changes']=_0x396b49['changes']['concat'](_0x4d75b4);}return _0x396b49;}['_markMarkers'](_0x153d46,_0x471a83){for(let _0x5368e3=0x0;_0x5368e3<_0x153d46['length'];_0x5368e3++)for(const [_0xcf0012,_0x4e7d53]of _0x471a83)!_0x4e7d53['isCollapsed']&&_0x4e7d53['start']['isEqual'](_0x153d46[_0x5368e3]['previousPosition'])&&_0x153d46[_0x5368e3]['markersStart']['push'](_0xcf0012),_0x4e7d53['end']['isEqual'](_0x153d46[_0x5368e3]['nextPosition'])&&_0x153d46[_0x5368e3]['markersEnd']['push'](_0xcf0012);}['_joinTapes'](_0x1818ca,_0x287b95){let _0x313ce8=[],_0x5d907f=0x0,_0x57ab85=0x0;for(;_0x5d907f<_0x1818ca['length']||_0x57ab85<_0x287b95['length'];){const _0xd34f1e=_0x1818ca[_0x5d907f]||{},_0x408a32=_0x287b95[_0x57ab85]||{};if(_0xd34f1e['id']==_0x408a32['id'])_0x5d907f++,_0x57ab85++,_0x313ce8['push'](_0xd34f1e);else{if(_0x408a32['isRemoved']&&_0xd34f1e['isAdded']){const {commonTape:_0x2c8f24,iEnd:_0x4fe390,jEnd:_0x24871c}=this['_threeWayMerge'](_0x1818ca,_0x5d907f,_0x287b95,_0x57ab85);_0x313ce8=_0x313ce8['concat'](_0x2c8f24),_0x5d907f=_0x4fe390,_0x57ab85=_0x24871c;}else _0x408a32['isRemoved']?(_0x57ab85++,_0x313ce8['push'](_0x408a32)):(_0x5d907f++,_0x313ce8['push'](_0xd34f1e));}}return _0x313ce8;}['_markSuggestions'](_0x2db8d8,_0xff18ab){const _0x1511fe=[];for(let _0x383a38=0x0;_0x383a38<_0x2db8d8['length'];_0x383a38++){for(let _0xe821cd=0x0;_0xe821cd<_0x2db8d8[_0x383a38]['markersStart']['length'];_0xe821cd++){const _0x325986=_0x2db8d8[_0x383a38]['markersStart'][_0xe821cd];if(!_0xff18ab['has'](_0x325986))continue;const {group:_0xfeafd2,type:_0x1b3ffa,authorId:_0x139e0c}=_0x25a012(_0x325986);'revision-suggestion'!=_0xfeafd2||'insertion'!=_0x1b3ffa&&'deletion'!=_0x1b3ffa||(_0x1511fe['unshift']({'type':_0x1b3ffa,'name':_0x325986,'userId':_0x139e0c}),_0x2db8d8[_0x383a38]['markersStart']['splice'](_0xe821cd,0x1),_0xe821cd--);}_0x554e51(_0x2db8d8[_0x383a38]);for(let _0x33ffc0=0x0;_0x33ffc0<_0x2db8d8[_0x383a38]['markersEnd']['length'];_0x33ffc0++){const _0x341d04=_0x2db8d8[_0x383a38]['markersEnd'][_0x33ffc0];if(!_0xff18ab['has'](_0x341d04))continue;const {group:_0x555464,type:_0x1e015b}=_0x25a012(_0x341d04);if('revision-suggestion'!=_0x555464||'insertion'!=_0x1e015b&&'deletion'!=_0x1e015b)continue;_0x2db8d8[_0x383a38]['markersEnd']['splice'](_0x33ffc0,0x1),_0x33ffc0--;const _0x1cafd3=_0x1511fe['findIndex'](_0x2ebdbb=>_0x2ebdbb['name']==_0x341d04);_0x1cafd3>-0x1&&_0x1511fe['splice'](_0x1cafd3,0x1);}}function _0x25a012(_0x1cceb2){const _0xeb93e9=_0x1cceb2['split'](':');return{'group':_0xeb93e9[0x0],'type':_0xeb93e9[0x1],'subType':_0xeb93e9['length']>=0x5?_0xeb93e9[0x2]:null,'id':_0xeb93e9['length']<0x5?_0xeb93e9[0x2]:_0xeb93e9[0x3],'authorId':_0xeb93e9['length']<0x5?_0xeb93e9[0x3]:_0xeb93e9[0x4],'markerCount':0x6==_0xeb93e9['length']?_0xeb93e9[0x5]:null};}function _0x554e51(_0xbad66c){for(let _0x5316db=0x0;_0x5316db<_0x1511fe['length'];_0x5316db++){if(_0xbad66c['isAdded']&&'insertion'==_0x1511fe[_0x5316db]['type']&&_0xbad66c['isAdded']['userId']==_0x1511fe[_0x5316db]['userId'])return _0xbad66c['isAddSuggestion']=_0x1511fe[_0x5316db],void delete _0xbad66c['isAdded'];if(!_0xbad66c['isAdded']&&!_0xbad66c['isRemoved']&&'deletion'==_0x1511fe[_0x5316db]['type'])return void(_0xbad66c['isRemoveSuggestion']=_0x1511fe[_0x5316db]);}}}['_setDistance'](_0x22a5f8,_0x3e3ff0){let _0x52966a=0x0,_0x506849=!0x1;const _0x383453=new Map();for(const _0x4b0b90 of _0x22a5f8)_0x4b0b90[_0x3e3ff0]?_0x506849&&(_0x52966a++,_0x506849=!0x1):(_0x52966a++,_0x506849=!0x0),_0x383453['set'](_0x4b0b90['id'],_0x52966a);for(let _0x283d9f=0x0;_0x283d9f<_0x22a5f8['length'];_0x283d9f++){if('isRemoved'==_0x3e3ff0&&_0x22a5f8[_0x283d9f]['isAdded']||'isAdded'==_0x3e3ff0&&_0x22a5f8[_0x283d9f]['isRemoved'])continue;if('text'==_0x22a5f8[_0x283d9f]['type']){_0x22a5f8[_0x283d9f]['distance']=0x0;continue;}const _0x1e61af=_0x383453['get'](_0x22a5f8[_0x283d9f]['pairId']),_0x3a4f75=_0x383453['get'](_0x22a5f8[_0x283d9f]['id']);_0x22a5f8[_0x283d9f]['distance']=_0x1e61af-_0x3a4f75;}}['_getRevisionsRange'](_0x4e856b,_0x3cf679,_0x588567=!0x1){const _0x5e6116=[];let _0x118503=this['repository']['getIndex'](_0x4e856b),_0xe3443c=this['repository']['getIndex'](_0x3cf679);for(-0x1==_0xe3443c&&(_0xe3443c=this['repository']['_revisions']['length'],_0x588567=!0x1);_0x118503<_0xe3443c;)_0x5e6116['push'](this['repository']['getRevision'](_0x118503)),_0x118503++;return _0x588567&&_0x5e6116['push'](this['repository']['getRevision'](_0x118503)),_0x5e6116;}['_threeWayMerge'](_0x267261,_0x18f0fc,_0x22b537,_0x3d74ba){const _0x4d1e5e=this['editor']['model']['schema'];let _0x3c6eee=_0x18f0fc;for(;_0x267261[_0x3c6eee]&&_0x267261[_0x3c6eee]['isAdded'];)_0x3c6eee++;let _0x26a619=_0x3d74ba;for(;_0x22b537[_0x26a619]&&_0x22b537[_0x26a619]['isRemoved'];)_0x26a619++;_0x2ede18(_0x267261,_0x18f0fc,_0x3c6eee),_0x2ede18(_0x22b537,_0x3d74ba,_0x26a619);const _0x1508cc=_0x22b537['slice'](_0x3d74ba,_0x26a619)['concat'](_0x267261['slice'](_0x18f0fc,_0x3c6eee));return _0x1508cc['sort']((_0x2f7b08,_0x1bc8a1)=>_0x2f7b08['side']!=_0x1bc8a1['side']?_0x2f7b08['side']-_0x1bc8a1['side']:_0x2f7b08['level']!=_0x1bc8a1['level']?_0x2f7b08['level']-_0x1bc8a1['level']:_0x2f7b08['distance']!=_0x1bc8a1['distance']?_0x1bc8a1['distance']-_0x2f7b08['distance']:!!_0x2f7b08['isAdded']!=!!_0x1bc8a1['isAdded']?-0x1==_0x2f7b08['side']||0x0==_0x2f7b08['side']?_0x2f7b08['isAdded']?-0x1:0x1:_0x2f7b08['isAdded']?0x1:-0x1:_0x2f7b08['index']-_0x1bc8a1['index']),{'commonTape':_0x1508cc,'iEnd':_0x3c6eee,'jEnd':_0x26a619};function _0x2ede18(_0x1fdad5,_0x19e083,_0x1ba875){let _0x474ef4=-0x1,_0x43a0ee=Number['POSITIVE_INFINITY'],_0x3c008a=!0x0;for(let _0x5211ef=_0x19e083;_0x5211ef<_0x1ba875;_0x5211ef++)if(_0x4d1e5e['isInline'](_0x1fdad5[_0x5211ef]['item'])||(_0x3c008a=!0x1),_0x1fdad5[_0x5211ef]['item']['startIndex']<_0x19e083&&(_0x474ef4=_0x5211ef),_0x1fdad5[_0x5211ef]['item']['endIndex']>=_0x1ba875){_0x43a0ee=_0x5211ef;break;}_0x3c008a&&(_0x474ef4=_0x1ba875-0x1);for(let _0x226e0e=_0x19e083;_0x226e0e<_0x1ba875;_0x226e0e++)_0x1fdad5[_0x226e0e]['side']=_0x226e0e<=_0x474ef4?-0x1:_0x226e0e<_0x43a0ee?0x0:0x1,_0x1fdad5[_0x226e0e]['index']=_0x226e0e;let _0x25acb8=0x0;for(let _0x527a74=_0x19e083;_0x527a74<=_0x474ef4;_0x527a74++)0x0==_0x1fdad5[_0x527a74]['distance']?_0x1fdad5[_0x527a74]['level']=_0x25acb8:(_0x25acb8++,_0x1fdad5[_0x527a74]['level']=_0x25acb8,_0x25acb8++);for(let _0x281e6f=_0x19e083;_0x281e6f<_0x1ba875;_0x281e6f++)0x0==_0x1fdad5[_0x281e6f]['side']&&(_0x1fdad5[_0x281e6f]['level']=_0x25acb8);_0x25acb8=0x0;for(let _0x4ceb8f=_0x1ba875-0x1;_0x4ceb8f>=_0x43a0ee;_0x4ceb8f--)0x0==_0x1fdad5[_0x4ceb8f]['distance']?_0x1fdad5[_0x4ceb8f]['level']=_0x25acb8:(_0x25acb8--,_0x1fdad5[_0x4ceb8f]['level']=_0x25acb8,_0x25acb8--);}}['_fixObsoleteTags'](_0x5efcca){const _0x43e1b9=new Map(),_0x2074b1=this['editor']['model']['schema'];for(let _0xb84c3d=0x1;_0xb84c3d<_0x5efcca['length'];_0xb84c3d++){let _0x4b7d64,_0x5868a3,_0x110e33;const _0x261177=_0x5efcca[_0xb84c3d],_0x44a8ed=_0x5efcca[_0xb84c3d-0x1];if('text'==_0x261177['type'])continue;if(_0x261177['type']!=_0x44a8ed['type'])continue;if(!_0x2074b1['isBlock'](_0x44a8ed['item'])||_0x2074b1['isLimit'](_0x44a8ed['item']))continue;if(!_0x2074b1['isBlock'](_0x261177['item'])||_0x2074b1['isLimit'](_0x261177['item']))continue;if((_0x5efcca[_0xb84c3d]['isAdded']||_0x5efcca[_0xb84c3d]['isAddSuggestion'])&&_0x5efcca[_0xb84c3d-0x1]['isRemoved'])_0x4b7d64=_0x5efcca[_0xb84c3d],_0x5868a3=_0x5efcca[_0xb84c3d-0x1],_0x110e33=_0xb84c3d-0x1;else{if(!_0x5efcca[_0xb84c3d]['isRemoved']||!_0x5efcca[_0xb84c3d-0x1]['isAdded']&&!_0x5efcca[_0xb84c3d-0x1]['isAddSuggestion'])continue;_0x4b7d64=_0x5efcca[_0xb84c3d-0x1],_0x5868a3=_0x5efcca[_0xb84c3d],_0x110e33=_0xb84c3d;}const _0x1b07c4=_0x4b7d64['level']==_0x5868a3['level'],_0x2e9901=Math['abs'](_0x4b7d64['level'])<Math['abs'](_0x5868a3['level'])&&0x0==_0x5868a3['distance'];(_0x1b07c4||_0x2e9901)&&(_0x43e1b9['set'](_0x5868a3['id'],_0x4b7d64['id']),_0x5efcca['splice'](_0x110e33,0x1),_0xb84c3d--,_0x4b7d64['isAdded']=!0x1);}for(let _0x54a69c=0x0;_0x54a69c<_0x5efcca['length'];_0x54a69c++)_0x43e1b9['has'](_0x5efcca[_0x54a69c]['pairId'])&&(_0x5efcca[_0x54a69c]['pairId']=_0x43e1b9['get'](_0x5efcca[_0x54a69c]['pairId']));}['_removeMissingPairs'](_0x3fbcb3){const _0x39a1be=new Set(_0x3fbcb3['map'](_0x33f5e5=>_0x33f5e5['id']));for(let _0x883de1=0x0;_0x883de1<_0x3fbcb3['length'];_0x883de1++)_0x39a1be['has'](_0x3fbcb3[_0x883de1]['pairId'])||0x0==_0x3fbcb3[_0x883de1]['distance']||(_0x3fbcb3[_0x883de1]['isIncorrect']=!0x0);return _0x3fbcb3['filter'](_0xd70fa7=>!_0xd70fa7['isIncorrect']);}['_markMismatchedRemovedTags'](_0x26bc68){const _0x463936=new Set();for(let _0x36f680=0x0;_0x36f680<_0x26bc68['length'];_0x36f680++){if(_0x463936['has'](_0x26bc68[_0x36f680]['id'])&&_0x26bc68[_0x36f680]['isRemoved']&&(_0x26bc68[_0x36f680]['isIncorrect']=!0x0),_0x26bc68[_0x36f680]['isIncorrect'])continue;if(0x0==_0x26bc68[_0x36f680]['distance'])continue;if('elementStart'!=_0x26bc68[_0x36f680]['type'])continue;if(null==_0x26bc68[_0x36f680]['pairId'])continue;let _0x34a50a=_0x36f680+0x1,_0x28dea5=0x0;for(;_0x26bc68[_0x34a50a]['id']!=_0x26bc68[_0x36f680]['pairId'];)'elementStart'==_0x26bc68[_0x34a50a]['type']?_0x28dea5++:'elementEnd'==_0x26bc68[_0x34a50a]['type']&&_0x28dea5--,_0x34a50a++;if(0x0!=_0x28dea5){if(_0x26bc68[_0x36f680]['isRemoved'])_0x26bc68[_0x36f680]['isIncorrect']=!0x0;else{for(;_0x34a50a!=_0x36f680;)_0x26bc68[_0x34a50a]['isRemoved']&&0x0!=_0x26bc68[_0x34a50a]['distance']&&(_0x26bc68[_0x34a50a]['isIncorrect']=!0x0,_0x463936['add'](_0x26bc68[_0x34a50a]['pairId'])),_0x34a50a--;}}}return _0x26bc68['filter'](_0x41f678=>!_0x41f678['isIncorrect']);}['_removeUnsupportedChanges'](_0x4ccd6a){const _0x57c67b=this['editor']['model']['schema'];for(let _0x2238ee=0x0;_0x2238ee<_0x4ccd6a['length'];_0x2238ee++){if(!(_0x4ccd6a[_0x2238ee]['isAdded']||_0x4ccd6a[_0x2238ee]['isAddSuggestion']||_0x4ccd6a[_0x2238ee]['isRemoved']||_0x4ccd6a[_0x2238ee]['isRemoveSuggestion']))continue;if(0x0==_0x4ccd6a[_0x2238ee]['distance'])continue;const _0x16a028=_0x4ccd6a[_0x2238ee]['item'];_0x57c67b['isBlock'](_0x16a028)||_0x57c67b['isLimit'](_0x16a028)||(_0x4ccd6a[_0x2238ee]['isAdded']&&delete _0x4ccd6a[_0x2238ee]['isAdded'],_0x4ccd6a[_0x2238ee]['isAddSuggestion']&&delete _0x4ccd6a[_0x2238ee]['isAddSuggestion'],_0x4ccd6a[_0x2238ee]['isRemoveSuggestion']&&delete _0x4ccd6a[_0x2238ee]['isRemoveSuggestion'],_0x4ccd6a[_0x2238ee]['isRemoved']&&(_0x4ccd6a[_0x2238ee]['isIncorrect']=!0x0));}return _0x4ccd6a['filter'](_0x44bc51=>!_0x44bc51['isIncorrect']);}['_makeModelFromTape'](_0x57f7f1,_0x2845b6,_0x11935c){const _0x21ca2b=new _0x54d9b6(),_0x48c545=[],_0x436938=new Map(),_0xd20d0b=this['editor']['model'],_0x3b7bab=_0xd20d0b['schema'],_0x5393cd=[_0x21ca2b],_0x8a2479={},_0x59ef06={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x5935b4=null;const _0x542348=[0x0];for(let _0x309b6b=0x0;_0x309b6b<_0x57f7f1['length'];_0x309b6b++)if('elementStart'===_0x57f7f1[_0x309b6b]['type']){_0x57f7f1[_0x309b6b]['previousPosition']=_0xd20d0b['createPositionFromPath'](_0x21ca2b,_0x542348);const _0x6b4d3e=new _0x16738f(_0x57f7f1[_0x309b6b]['item']['name'],_0x57f7f1[_0x309b6b]['item']['getAttributes']());_0x5393cd[0x0]['_appendChild'](_0x6b4d3e),_0x542348['push'](0x0),_0x5393cd['unshift'](_0x6b4d3e),_0x57f7f1[_0x309b6b]['nextPosition']=_0xd20d0b['createPositionFromPath'](_0x21ca2b,_0x542348);}else'elementEnd'===_0x57f7f1[_0x309b6b]['type']?(_0x5393cd['shift'](),_0x57f7f1[_0x309b6b]['previousPosition']=_0xd20d0b['createPositionFromPath'](_0x21ca2b,_0x542348),_0x542348['pop'](),_0x542348[_0x542348['length']-0x1]++,_0x57f7f1[_0x309b6b]['nextPosition']=_0xd20d0b['createPositionFromPath'](_0x21ca2b,_0x542348)):(_0x57f7f1[_0x309b6b]['previousPosition']=_0xd20d0b['createPositionFromPath'](_0x21ca2b,_0x542348),_0x5935b4?_0x5935b4['_data']+=_0x57f7f1[_0x309b6b]['item']['data']:_0x5935b4=new _0x512a07(_0x57f7f1[_0x309b6b]['item']['data'],_0x57f7f1[_0x309b6b]['item']['getAttributes']()),_0x57f7f1[_0x309b6b+0x1]&&'text'===_0x57f7f1[_0x309b6b+0x1]['type']&&_0x171d49(_0x5935b4,_0x57f7f1[_0x309b6b+0x1]['item'])||(_0x5393cd[0x0]['_appendChild'](_0x5935b4),_0x5935b4=null),_0x542348[_0x542348['length']-0x1]+=_0x57f7f1[_0x309b6b]['item']['offsetSize'],_0x57f7f1[_0x309b6b]['nextPosition']=_0xd20d0b['createPositionFromPath'](_0x21ca2b,_0x542348));for(let _0x579517=0x0;_0x579517<_0x57f7f1['length'];_0x579517++){const _0x38360c=_0x57f7f1[_0x579517]['previousPosition'],_0x4a7151=_0x57f7f1[_0x579517]['nextPosition'];for(const _0x334e31 of _0x57f7f1[_0x579517]['markersStart'])_0x436938['set'](_0x334e31,{'start':_0x38360c,'end':null});_0x597433('isRemoveSuggestion',_0x579517,_0x38360c,_0x4a7151),_0x597433('isAddSuggestion',_0x579517,_0x38360c,_0x4a7151),_0x597433('isRemoved',_0x579517,_0x38360c,_0x4a7151),_0x597433('isAdded',_0x579517,_0x38360c,_0x4a7151);for(const _0x203273 of _0x57f7f1[_0x579517]['markersEnd']){const _0x41f014=_0x436938['get'](_0x203273);_0x41f014?_0x41f014['end']=_0x4a7151:_0x436938['set'](_0x203273,{'start':_0x4a7151,'end':_0x4a7151});}}for(const [_0x332e8b,_0xc231c5]of _0x436938){const _0x4e08fb=this['editor']['model']['createRange'](_0xc231c5['start'],_0xc231c5['end']);_0x21ca2b['markers']['set'](_0x332e8b,_0x4e08fb);}return _0x48c545['sort']((_0x4db0c8,_0x395b27)=>{const _0x102f8c=_0x21ca2b['markers']['get']('revision:'+_0x4db0c8['id']),_0x5be2cd=_0x21ca2b['markers']['get']('revision:'+_0x395b27['id']);return _0x102f8c['start']['isBefore'](_0x5be2cd['start'])?-0x1:_0x102f8c['start']['isAfter'](_0x5be2cd['start'])?0x1:_0x102f8c['end']['isBefore'](_0x5be2cd['end'])?-0x1:_0x102f8c['end']['isAfter'](_0x5be2cd['end'])?0x1:'add'===_0x4db0c8['type']?-0x1:0x1;}),{'root':_0x21ca2b,'changes':_0x48c545};function _0x597433(_0x5c4b99,_0x49093c,_0x44b319,_0x4a5fb3){const _0x924b3e=!!_0x57f7f1[_0x49093c][_0x5c4b99],_0x1c264a=_0x924b3e?_0x57f7f1[_0x49093c][_0x5c4b99]['userId']:null,_0x2b1327=_0x49093c===_0x57f7f1['length']-0x1,_0x1fff0c=_0x59ef06[_0x5c4b99][0x0],_0x4562be=_0x3b7bab['isObject'](_0x57f7f1[_0x49093c]['item']);!_0x8a2479[_0x5c4b99]&&_0x924b3e?_0x8a2479[_0x5c4b99]={'start':_0x44b319,'tapeItem':_0x57f7f1[_0x49093c],'userId':_0x1c264a,'type':_0x5c4b99}:_0x8a2479[_0x5c4b99]&&!_0x924b3e?(_0x8a2479[_0x5c4b99]['end']=_0x44b319,_0x9e8b75(_0x8a2479[_0x5c4b99]),_0x8a2479[_0x5c4b99]=null):_0x8a2479[_0x5c4b99]&&_0x924b3e&&_0x8a2479[_0x5c4b99]['userId']!==_0x1c264a&&(_0x8a2479[_0x5c4b99]['end']=_0x44b319,_0x1fff0c&&_0x1fff0c['userId']===_0x8a2479[_0x5c4b99]['userId']||_0x9e8b75(_0x8a2479[_0x5c4b99]),_0x8a2479[_0x5c4b99]={'start':_0x44b319,'tapeItem':_0x57f7f1[_0x49093c],'userId':_0x1c264a,'type':_0x5c4b99}),_0x8a2479[_0x5c4b99]&&_0x4562be&&('elementStart'!==_0x57f7f1[_0x49093c]['type']||_0x1fff0c&&_0x1fff0c['userId']===_0x1c264a||_0x59ef06[_0x5c4b99]['unshift']({'userId':_0x1c264a,'object':_0x57f7f1[_0x49093c]['item'],'change':_0x8a2479[_0x5c4b99]}),'elementEnd'===_0x57f7f1[_0x49093c]['type']&&_0x1fff0c&&_0x1fff0c['object']===_0x57f7f1[_0x49093c]['item']&&(_0x59ef06[_0x5c4b99]['shift'](),_0x8a2479[_0x5c4b99]=_0x1fff0c['change'])),_0x8a2479[_0x5c4b99]&&_0x2b1327&&(_0x8a2479[_0x5c4b99]['end']=_0x4a5fb3,_0x9e8b75(_0x8a2479[_0x5c4b99]),_0x8a2479[_0x5c4b99]=null);}function _0x9e8b75({start:_0x3ed919,end:_0x264e31,tapeItem:_0x17ab19,userId:_0x3ecb83,type:_0x113b09}){const _0x43b8b4=_0x17ab19['item'],_0x71df5c=_0xd20d0b['schema']['isBlock'](_0x43b8b4)&&!_0xd20d0b['schema']['isLimit'](_0x43b8b4),_0x42120b=_0x3ed919['nodeAfter']==_0x264e31['parent']&&_0x264e31['isAtStart'];if(_0x71df5c&&_0x42120b)return;const _0x2e122d=_0xd20d0b['createRange'](_0x3ed919,_0x264e31),_0x323162=_0x2845b6['get'](_0x3ecb83),_0x4bee4a=new G({'author':_0x323162,'type':'isAdded'==_0x113b09||'isAddSuggestion'==_0x113b09?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x113b09||'isRemoveSuggestion'==_0x113b09},'createdAt':new Date(),'rootName':_0x11935c});_0x48c545['push'](_0x4bee4a),_0x21ca2b['markers']['set']('revision:'+_0x4bee4a['id'],_0x2e122d);}function _0x171d49(_0x3b9577,_0x4748a1){const _0x5cb1a6=_0x3b9577['getAttributes'](),_0x273a1d=_0x4748a1['getAttributes']();for(const _0x5731ef of _0x5cb1a6){if(_0x5731ef[0x1]!==_0x4748a1['getAttribute'](_0x5731ef[0x0]))return!0x1;_0x273a1d['next']();}return _0x273a1d['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x2af933=>{const _0x42b875=_0x2af933['markerName']['split'](':')[0x1],_0x54ad7f=this['_getChangeFromId'](_0x42b875);if(!_0x54ad7f)return null;const _0x540c56='add'==_0x54ad7f['type']?'insertion':'deletion',_0x46e3af=['ck-suggestion-marker','ck-suggestion-marker-'+_0x540c56];return _0x54ad7f['data']['isSuggestion']&&_0x46e3af['push']('ck-suggestion-marker-'+_0x540c56+'-new'),this['activeChange']==_0x54ad7f&&_0x46e3af['push']('ck-suggestion-marker--active'),{'classes':_0x46e3af,'attributes':{'data-change-id':_0x42b875}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x46ac10=>{_0x46ac10['on']('element:pre',(_0x4fbc73,_0x1b6f33,_0x4a7b36)=>{const _0x4e44e0=_0x1b6f33['viewItem']['getChild'](0x0);if(!_0x4e44e0||!_0x4e44e0['is']('element','code'))return;if(!_0x4a7b36['consumable']['consume'](_0x4e44e0,{'attributes':['vid_start','vid_end']}))return;const _0x50678a=_0x1b6f33['modelRange']['start']['nodeAfter'];_0x4a7b36['writer']['setAttribute']('vid_start',_0x4e44e0['getAttribute']('vid_start'),_0x50678a),_0x4a7b36['writer']['setAttribute']('vid_end',_0x4e44e0['getAttribute']('vid_end'),_0x50678a);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x41ff5b=>{_0x41ff5b['on']('element',(_0x1e40a9,_0x47d0e4,_0x119392)=>{if(!_0x119392['consumable']['consume'](_0x47d0e4['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x47d0e4['modelRange']['isCollapsed'])return;const _0x38f62b=_0x47d0e4['modelRange']['start']['nodeAfter'];_0x38f62b['hasAttribute']('vid_start')||_0x38f62b['hasAttribute']('vid')||(_0x119392['writer']['setAttribute']('vid_start',_0x47d0e4['viewItem']['getAttribute']('vid_start'),_0x38f62b),_0x119392['writer']['setAttribute']('vid_end',_0x47d0e4['viewItem']['getAttribute']('vid_end'),_0x38f62b));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x126de4=>_0x126de4['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x2a56cb,[,_0x100797])=>{['vid_start','vid_end','vid']['includes'](_0x100797)&&(_0x2a56cb['return']=!0x0,_0x2a56cb['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x10ce8e=>{_0x10ce8e['on']('attribute:vid',(_0x2fd259,_0x1de4e4,_0x5eba76)=>{if('\x20'!=_0x1de4e4['item']['data']||_0x1de4e4['item']['parent']['maxOffset']>0x1)return;if(!_0x5eba76['consumable']['consume'](_0x1de4e4['item'],_0x2fd259['name']))return;const _0x55ea14=_0x5eba76['writer'],_0x488c2f=_0x5eba76['mapper']['toViewRange'](_0x1de4e4['range']);_0x55ea14['wrap'](_0x488c2f,_0x55ea14['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x35391e){const _0xc4dc79=_0x35391e['plugins']['get']('RevisionViewer');return(_0x25d742,_0x59f98c,_0x3c718b)=>{const _0x5afe0c=_0x59f98c['markerName']['split'](':')[0x1],_0x48e670=_0xc4dc79['_getChangeFromId'](_0x5afe0c);if(!_0x48e670)return null;const _0x3df566='add'==_0x48e670['type']?'split':'merge';if(!_0x3c718b['consumable']['test'](_0x59f98c['markerRange'],_0x25d742['name']))return;const _0x3b6ded=_0x59f98c['markerRange']['getWalker'](),_0x200874=_0x59f98c['markerRange']['start'],_0x302a57=_0x35391e['model']['schema'];let _0x1dd623=null,_0x3a497a=null,_0x5026db=!0x1,_0x5dfeff=!0x1;for(const _0x17c6a9 of _0x3b6ded){const _0x509af9=_0x17c6a9['item'];_0x5026db=_0x5026db||_0x302a57['isContent'](_0x509af9);const _0x5ac0ca=_0x3c718b['mapper']['toViewElement'](_0x509af9);if(_0x5ac0ca&&_0x5ac0ca['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x17c6a9['type']&&(_0x302a57['isBlock'](_0x509af9)&&!_0x302a57['isLimit'](_0x509af9)&&(_0x509af9['nextSibling']||_0x200874['isAtEnd']?_0x1dd623&&_0x1dd623['parent']==_0x509af9||(_0x1dd623=_0x509af9,_0x3016ac(_0x17c6a9['previousPosition']),_0x5dfeff=!0x0):_0x3a497a=_0x3a497a||_0x17c6a9['previousPosition']));}function _0x3016ac(_0x53adf5){const _0x13a203=_0x3c718b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3df566}),_0x146d1d=_0x3c718b['mapper']['toViewPosition'](_0x53adf5);_0x48e670['data']['isSuggestion']&&_0x3c718b['writer']['addClass']('ck-suggestion-marker-'+_0x3df566+'-new',_0x13a203),_0xc4dc79['activeChange']==_0x48e670&&_0x3c718b['writer']['addClass']('ck-suggestion-marker--active',_0x13a203),_0x3c718b['writer']['insert'](_0x146d1d,_0x13a203),_0x3c718b['mapper']['bindElementToMarker'](_0x13a203,_0x59f98c['markerName']);}_0x5026db||_0x5dfeff||!_0x3a497a||_0x3016ac(_0x3a497a);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x3ab62f,_0x2aaf64,_0x5c2a0)=>{const _0x3fa350=_0x5c2a0['mapper']['markerNameToElements'](_0x2aaf64['markerName']);if(_0x3fa350){for(const _0x59d318 of _0x3fa350)(_0x59d318['hasClass']('ck-suggestion-marker-split')||_0x59d318['hasClass']('ck-suggestion-marker-merge'))&&(_0x5c2a0['mapper']['unbindElementFromMarkerName'](_0x59d318,_0x2aaf64['markerName']),_0x5c2a0['writer']['remove'](_0x59d318));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x23ce47,_0x3755c6,_0x5c078b)=>{const _0x19629d=_0x3755c6['markerName']['split'](':')[0x1],_0x21344c=this['_getChangeFromId'](_0x19629d);if(!_0x21344c)return null;const _0x5cb4ab='add'==_0x21344c['type']?'split':'merge';if(_0x5c078b['consumable']['test'](_0x3755c6['markerRange'],_0x23ce47['name']))for(const _0x2e54b7 of _0x3755c6['markerRange']['getItems']()){if(!_0x2e54b7['is']('element','softBreak'))continue;const _0x34825c=_0x5c078b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5cb4ab}),_0x5c9b69=_0x5c078b['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x2e54b7));_0x21344c['data']['isSuggestion']&&_0x5c078b['writer']['addClass']('ck-suggestion-marker-'+_0x5cb4ab+'-new',_0x34825c),this['activeChange']==_0x21344c&&_0x5c078b['writer']['addClass']('ck-suggestion-marker--active',_0x34825c),_0x5c078b['writer']['insert'](_0x5c9b69,_0x34825c),_0x5c078b['mapper']['bindElementToMarker'](_0x34825c,_0x3755c6['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x8447bd=>{for(const _0x6c09a0 of this['editor']['model']['document']['getRootNames']()){const _0x3d3a33=this['editor']['model']['document']['getRoot'](_0x6c09a0),_0x46def6=this['editor']['editing']['view']['document']['getRoot'](_0x6c09a0);if(_0x46def6){const _0x3428f8=_0x3d3a33['getAttribute']('revisionHistoryAttachChange');if(_0x8447bd['removeAttribute']('data-change-id',_0x46def6),_0x8447bd['removeClass']('ck-revision-history-root-add',_0x46def6),_0x8447bd['removeClass']('ck-revision-history-root-remove',_0x46def6),_0x8447bd['removeClass']('ck-revision-history-root--active',_0x46def6),_0x3428f8){const _0x55d0ea=this['_getChangeFromId'](_0x3428f8);if(!_0x55d0ea)return null;_0x8447bd['setAttribute']('data-change-id',_0x3428f8,_0x46def6),_0x8447bd['addClass']('ck-revision-history-root-'+_0x55d0ea['type'],_0x46def6),this['activeChange']==_0x55d0ea&&_0x8447bd['addClass']('ck-revision-history-root--active',_0x46def6);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x79c20f=>'revision-comment:'+_0x79c20f,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x1afec6=>'revision-suggestion:'+_0x1afec6,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x4ae412=>({'name':'suggestion:'+_0x4ae412,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x58adba=>{const _0x18fd41=_0x58adba['markerName']['split'](':')[0x1];return'insertion'!=_0x18fd41&&'deletion'!=_0x18fd41?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x18fd41]};}}),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',(_0xf9d56f,_0x31b8f9,_0x803614)=>{const _0x168c02=_0x803614['mapper']['markerNameToElements'](_0x31b8f9['markerName']);if(_0x168c02){for(const _0x3b2db6 of _0x168c02)_0x3b2db6['is']('uiElement')&&(_0x803614['mapper']['unbindElementFromMarkerName'](_0x3b2db6,_0x31b8f9['markerName']),_0x803614['writer']['remove'](_0x3b2db6));}},{'priority':'high'});}['_getChangeFromId'](_0x2918d8){return this['_changeIdToChange']['get'](_0x2918d8);}['_getViewForChange'](_0x3c5d7e){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x3c5d7e),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x39e512,_0xfb19f8,_0x43dfa8,_0x48aae7)=>{_0x48aae7&&this['_balloon']['remove'](_0x48aae7),_0x43dfa8&&(this['_balloon']['add']({'view':_0x43dfa8,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x45088d=this['editor']['editing'],_0x20400c=this['_getChangeFromId'](_0x43dfa8['changeId']);let _0x1c3612;if(_0x20400c['data']['isOnRoot']){const _0x37d0b9=_0x45088d['view']['getDomRoot'](_0x20400c['rootName']);_0x1c3612=Array['from'](_0x37d0b9['getClientRects']());}else{const _0x56dc4a=this['editor']['model']['markers']['get']('revision:'+_0x43dfa8['changeId']);_0x1c3612=Array['from'](_0x45088d['mapper']['markerNameToElements'](_0x56dc4a['name']))['map'](_0x19263e=>_0x45088d['view']['domConverter']['mapViewToDom'](_0x19263e))['map'](_0x3d25f6=>Array['from'](_0x3d25f6['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x1c3612[0x0];return _0x1c3612['find'](_0x3d8eb5=>_0x3d8eb5['top']-0x3<=this['_activeViewTarget']['y']&&_0x3d8eb5['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x3d8eb5['left']-0x3<=this['_activeViewTarget']['x']&&_0x3d8eb5['right']+0x3>=this['_activeViewTarget']['x'])||_0x1c3612[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x4d9f35,_0x45ca22,_0x17ba6c,_0x48ba57)=>{this['activeView']=_0x17ba6c?this['_getViewForChange'](_0x17ba6c):null,this['editor']['model']['change'](()=>{const _0x4916ef=this['editor']['editing'];_0x48ba57&&(_0x48ba57['data']['isOnRoot']?_0x4916ef['view']['change'](_0x1e215f=>{_0x1e215f['removeClass']('ck-revision-history-root--active',_0x4916ef['view']['document']['getRoot'](_0x48ba57['rootName']));}):_0x4916ef['reconvertMarker']('revision:'+_0x48ba57['id'])),_0x17ba6c&&(_0x17ba6c['data']['isOnRoot']?_0x4916ef['view']['change'](_0x5b8b2e=>{_0x5b8b2e['addClass']('ck-revision-history-root--active',_0x4916ef['view']['document']['getRoot'](_0x17ba6c['rootName']));}):_0x4916ef['reconvertMarker']('revision:'+_0x17ba6c['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x426ed1,_0x144724)=>{if(this['activeChange'])return;const _0x2b3c9a=this['_findChangeIdFromDomTarget'](_0x144724['target']),_0x3cfce6=this['_changeIdToChange']['get'](_0x2b3c9a);_0x3cfce6?(this['_activeViewTarget']={'x':_0x144724['domEvent']['x'],'y':_0x144724['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x3cfce6)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x291795,_0xfe2176)=>{const _0x1ffb45=this['_findChangeIdFromDomTarget'](_0xfe2176['target']),_0x25c8f5=this['_changeIdToChange']['get'](_0x1ffb45);_0x25c8f5?(this['_activeViewTarget']={'x':_0xfe2176['domEvent']['x'],'y':_0xfe2176['domEvent']['y']},_0x25c8f5===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x25c8f5):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x10744f){do{const _0x125567=_0x10744f['getAttribute']('data-change-id');if(_0x125567)return _0x125567;_0x10744f=_0x10744f['parent'];}while(_0x10744f);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0xd2a6ee=>{for(const _0x6e3095 of this['editor']['model']['markers'])_0xd2a6ee['removeMarker'](_0x6e3095);});}}function Q(_0x2ec7a2,_0x24d765){return(_0x4d542b,_0x4b68d0,_0x241450)=>{if(!_0x241450['consumable']['test'](_0x4b68d0['markerRange'],_0x4d542b['name']))return;const _0x55cd8d=_0x4b68d0['markerRange']['getWalker'](),_0x1d834c=_0x4b68d0['markerRange']['start'],_0x4f8c3d=_0x2ec7a2['model']['schema'];let _0x38a66b=null,_0x171073=null,_0x5ad4c0=!0x1,_0x33d661=!0x1;for(const _0x793771 of _0x55cd8d){const _0x1c3da8=_0x793771['item'];_0x5ad4c0=_0x5ad4c0||_0x4f8c3d['isContent'](_0x1c3da8);const _0x5c5906=_0x241450['mapper']['toViewElement'](_0x1c3da8);if(_0x5c5906&&_0x5c5906['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x793771['type']&&(_0x4f8c3d['isBlock'](_0x1c3da8)&&!_0x4f8c3d['isLimit'](_0x1c3da8)&&(_0x1c3da8['nextSibling']||_0x1d834c['isAtEnd']?_0x38a66b&&_0x38a66b['parent']==_0x1c3da8||(_0x38a66b=_0x1c3da8,_0x98a991(_0x793771['previousPosition']),_0x33d661=!0x0):_0x171073=_0x171073||_0x793771['previousPosition']));}function _0x98a991(_0x1a864d){const _0x3c0100=_0x241450['mapper']['toViewPosition'](_0x1a864d),_0x5e730d=_0x241450['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x24d765});_0x241450['writer']['insert'](_0x3c0100,_0x5e730d),_0x241450['mapper']['bindElementToMarker'](_0x5e730d,_0x4b68d0['markerName']);}_0x5ad4c0||_0x33d661||!_0x171073||_0x98a991(_0x171073);};}class nt extends _0x5998c4{constructor(_0x3f7260){super(_0x3f7260);const _0xbdb0de=_0x3f7260['plugins']['get'](u);this['affectsData']=!0x1,this['listenTo'](_0xbdb0de,'change:isReady',()=>this['refresh']()),this['listenTo'](_0xbdb0de,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x276c46=this['editor'],_0xb85b2c=_0x276c46['plugins']['get'](u),_0x585799=_0xb85b2c['isReady']?_0xb85b2c['diff']['newRevisionId']:null;_0x276c46['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x585799);}['refresh'](){const {isReady:_0x3c7079,isEnabled:_0x1b7853,repository:_0xd10d40,diff:_0x2a77ff}=this['editor']['plugins']['get'](u),_0x49b4ca=_0x2a77ff&&_0xd10d40['getLaterVisibleRevision'](_0x2a77ff['newRevisionId']);this['isEnabled']=_0x3c7079&&_0x1b7853&&Boolean(_0x49b4ca);}}class rt extends _0x5998c4{['_step'];constructor(_0x25ceda,{direction:_0x5f07ea}){super(_0x25ceda);const _0x4438f6=_0x25ceda['plugins']['get'](u);this['affectsData']=!0x1,this['_step']='forward'===_0x5f07ea?0x1:-0x1,this['listenTo'](_0x4438f6,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x4438f6,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x4438f6,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x5add53=this['editor'],_0x58368e=_0x5add53['plugins']['get'](u),{isNavigationMode:_0xe0d132,currentChangeNumber:_0x392263}=_0x58368e;let _0xd566a0;if(_0x58368e['activeChange']=_0xe0d132?_0x58368e['diff']['changes']['get'](_0x392263+this['_step']):_0x58368e['diff']['changes']['first'],_0x58368e['activeChange']['data']['isOnRoot'])_0xd566a0=_0x5add53['editing']['view']['getDomRoot'](_0x58368e['activeChange']['rootName']);else{const _0xdfafe2=_0x5add53['model']['markers']['get']('revision:'+_0x58368e['activeChange']['id']);_0xd566a0=_0x637378(_0x5add53['editing'],_0xdfafe2);}_0x18268f({'target':_0xd566a0,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x2cf036,currentChangeNumber:_0x21379f,numberOfChanges:_0x23d3d7,isReady:_0x545713,isEnabled:_0x498d0e}=this['editor']['plugins']['get'](u);this['isEnabled']=!!(_0x498d0e&&_0x545713&&_0x23d3d7)&&(!_0x2cf036||(0x1===this['_step']?_0x21379f<_0x23d3d7-0x1:_0x21379f>0x0));}}class fi extends _0x484abd{constructor(_0x5bec56){super(_0x5bec56);const _0x596aa8=this['bindTemplate'],_0x38f9e4=new _0x14152c(_0x5bec56),_0x1288e9=new _0x14152c(_0x5bec56);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',(_0x9abb41,_0x5cd7d4)=>_0x9abb41&&_0x5cd7d4>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x3a0138,_0x22d03a,_0x3faa32,_0x47f98c)=>{if(!_0x3a0138)return m(_0x5bec56,'Loading...');if(!_0x3faa32)return m(_0x5bec56,'No\x20changes');const _0x3f3757=m(_0x5bec56,'NUMBER_OF_CHANGES',_0x3faa32);return _0x47f98c?m(_0x5bec56,'X_OF_Y_CHANGES',[_0x22d03a+0x1,_0x3faa32]):_0x3f3757;}),_0x38f9e4['set']({'label':m(_0x5bec56,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x5308cd}),_0x1288e9['set']({'label':m(_0x5bec56,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x5f0511}),_0x38f9e4['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x1288e9['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x38f9e4['on']('execute',()=>this['fire']('execute','backward')),_0x1288e9['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',_0x596aa8['if']('_isStatusLabelVisible','ck-hidden',_0x429cea=>!_0x429cea)]},'children':[{'text':_0x596aa8['to']('isNavigationMode',_0x58b715=>_0x58b715?m(_0x5bec56,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x5bec56,'Total')+':\x20')}]},{'text':_0x596aa8['to']('_statusText')}]},new _0x3f7943(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x38f9e4,_0x1288e9]}]});}}const ge='ck-editor__editable__loading-overlay';class bi extends _0x59afc0{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x390dd0=this['editor']['editing']['view'];_0x390dd0['change'](_0x4f0da6=>{for(const _0x266efd of _0x390dd0['document']['roots'])_0x4f0da6['addClass'](ge,_0x266efd);});}['hide'](){const _0x5317e1=this['editor']['editing']['view'];_0x5317e1['change'](_0x22319b=>{for(const _0x73319b of _0x5317e1['document']['roots'])_0x22319b['removeClass'](ge,_0x73319b);});}}class v extends _0x59afc0{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,bi];}['init'](){const _0x559f02=this['editor'],_0xffc4b6=_0x559f02['plugins']['get'](u),_0x2030cb=_0x559f02['plugins']['get'](bi);_0x559f02['ui']['componentFactory']['add']('exitToEditing',_0xeb26c1=>{const _0x12782e=new _0x14152c(_0xeb26c1);return _0x12782e['set']({'label':m(_0xeb26c1,'Back\x20to\x20editing'),'icon':_0x4ed6d9,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x12782e,'execute',()=>{_0x559f02['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x12782e;}),_0x559f02['ui']['componentFactory']['add']('restoreRevision',_0x4b27a8=>{const _0x8e341e=new _0x14152c(_0x4b27a8);return _0x8e341e['set']({'label':m(_0x4b27a8,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x8e341e['bind']('isEnabled')['to'](_0x559f02['commands']['get']('restoreRevision')),this['listenTo'](_0x8e341e,'execute',()=>_0x559f02['execute']('restoreRevision')),_0x8e341e;}),_0x559f02['ui']['componentFactory']['add']('changesNavigation',_0x824b93=>{const _0x4cfe81=new fi(_0x824b93),_0x18add0=_0x559f02['commands']['get']('showPreviousChange'),_0x49efaa=_0x559f02['commands']['get']('showNextChange');return _0x4cfe81['bind']('isBackwardNavigationEnabled')['to'](_0x18add0,'isEnabled'),_0x4cfe81['bind']('isForwardNavigationEnabled')['to'](_0x49efaa,'isEnabled'),_0x4cfe81['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0xffc4b6),this['listenTo'](_0x4cfe81,'execute',(_0x4c4ced,_0x4382aa)=>{_0x559f02['execute']('forward'===_0x4382aa?'showNextChange':'showPreviousChange');}),_0x4cfe81;}),_0x2030cb['show'](),_0xffc4b6['on']('change:isReady',(_0x2f5dc8,_0x102b1a,_0x3330e5)=>{_0x3330e5?_0x2030cb['hide']():_0x2030cb['show']();});}}class hi extends et{['_resizeObserver']=null;constructor(_0x496108,_0x507927){super(_0x496108,_0x507927);const _0x554489=this['bindTemplate'];this['set']({'label':m(_0x496108,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x496108,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x554489['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 _0x8f87dc=this['fieldView']['element'];this['_tooltipString']=_0x8f87dc['scrollWidth']>_0x8f87dc['clientWidth']&&_0x8f87dc['value']||'';}}class ni extends _0x484abd{constructor(_0x2d0302,_0x1d18de,_0x152559){super(_0x2d0302);const _0x5325ec=new _0x1ed09d();_0x5325ec['set']({'content':_0x2f44bd,'viewBox':'0\x200\x2011\x2010'});const _0x3cb405=['ck','ck-revision-history-sidebar__revision-author'];_0x152559&&_0x3cb405['push']('ck-revision-history-sidebar__revision-author_creator');const _0x420e16=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x2d0302,_0x152559?'Revision\x20creator':'Revision\x20author')},'children':[_0x5325ec,_0x1d18de['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x3cb405},'children':_0x420e16});}}function ai(_0x24ca1d,_0x55c6a1){const _0x19657c=_0x24ca1d['bindTemplate'],_0x1ff376=_0x24ca1d['locale'],_0x216ee6=_0x1cb51d(_0x1ff376);_0x216ee6['panelPosition']='sw';const _0x4a1cbc=function(_0x1562dc,_0x58b497){const _0x5b317c=function(_0x36f4e3,_0x9b7bb5){const _0x3f871c=_0x36f4e3['locale'],_0x4ddcd5={'Compare\x20against\x20selected':m(_0x3f871c,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x3f871c,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x3f871c,'Restore\x20this\x20revision')};return _0x9b7bb5['map'](_0x1c32e4=>{const _0x7d1d9f=_0x4ddcd5[_0x1c32e4['name']];return _0x7d1d9f&&_0x7d1d9f!==_0x1c32e4['name']&&(_0x1c32e4['name']=_0x7d1d9f),_0x1c32e4;});}(_0x1562dc,_0x58b497),_0x54ea14=new _0x51dee5();for(const _0x532855 of _0x5b317c){const _0xf0e0={'type':'button','model':new to({'label':_0x532855['name'],'class':_0x532855['class'],'withText':!0x0,'role':'menuitem','_action':_0x532855['action']})};_0xf0e0['model']['bind']('isEnabled')['to'](_0x1562dc,'isActionsDropdownOpen',_0x231e8e=>'function'!=typeof _0x532855['isEnabled']||(!_0x231e8e||_0x532855['isEnabled'](_0x1562dc))),_0x54ea14['add'](_0xf0e0);}return _0x54ea14;}(_0x24ca1d,_0x55c6a1);return _0x24ca1d['bind']('isActionsDropdownOpen')['to'](_0x216ee6,'isOpen'),_0x216ee6['buttonView']['set']({'label':m(_0x1ff376,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x516c19}),_0x216ee6['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x19657c['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x19657c['to'](_0xddf6d2=>_0xddf6d2['stopPropagation']())}}),_0x216ee6['on']('execute',_0x4cc6b3=>{_0x24ca1d['isReady']&&'function'==typeof _0x4cc6b3['source']['_action']&&_0x4cc6b3['source']['_action'](_0x24ca1d);}),_0x189f45(_0x216ee6,_0x4a1cbc,{'role':'menu'}),_0x216ee6['listenTo'](_0x24ca1d,'change:isActionsDropdownOpen',(_0x4b3d05,_0x35966f,_0x4fc83d)=>{if(_0x4fc83d)for(const _0x1a1571 of _0x216ee6['listView']['items']){const _0x2eaa7c=_0x1a1571['children']['first'],_0x3b82d0=_0x55c6a1['find'](_0x400fa0=>_0x400fa0['action']===_0x2eaa7c['_action'])['isVisible'];_0x1a1571['isVisible']=void 0x0===_0x3b82d0||_0x3b82d0(_0x24ca1d);}}),_0x216ee6;}class _i extends/* #__PURE__ -- @preserve */
|
|
27
|
-
|
|
23
|
+
import{ObservableMixin as _0x3095a9,uid as _0x4c4fba,Collection as _0x26acd1,logWarning as _0x38fcfe,FocusTracker as _0x2086fd,KeystrokeHandler as _0x2782fb,scrollViewportToShowTarget as _0x410781,ResizeObserver as et,ElementReplacer as it,CKEditorError as _0x193114}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x1e1e73,set as _0x2502f6,unset as _0x53ab93,isEqual as _0x41e6ee}from'es-toolkit/compat';import{Plugin as _0x57da8b,PendingActions as _0x32db9,Command as _0x31f7bf,ElementApiMixin as _0x1a9dcf,Editor as _0x2534f1}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x33ad79,getMarkerDomElement as _0x111b7f,ConfirmMixin as _0x53ae13,sanitizeEditorConfig as _0x36746a}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x532c98,ViewAttributeElement as _0x24ca0b,ViewEmptyElement as _0x29a322,ViewRawElement as _0x39804b,ViewUIElement as _0x3d1e14,ViewDocumentFragment as _0x2a694e,ViewText as _0x1f6d7b,ViewElement as _0x1535e1,ModelElement as _0x439a4c,ModelRange as _0x2cbf1e,ModelPosition as _0xa279e5,ModelDocumentFragment as _0x19df77,ModelText as _0x338a17}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x1c16d7,IconChevronUp as _0x209596,IconChevronDown as _0x1a2255,IconUndo as _0x590962,IconUser as _0x4dc3ab,IconThreeVerticalDots as _0x507256}from'@ckeditor/ckeditor5-icons/dist/index.js';import{CssTransitionDisablerMixin as _0x10c92b,View as _0x419e54,submitHandler as _0x54a2c3,LabeledFieldView as ti,createLabeledInputText as _0xca40ce,createDropdown as _0x40d317,ListView as _0x4df325,ListItemView as _0x30a8cf,ButtonView as _0x398d9f,MenuBarMenuView as _0x2d3bbc,MenuBarMenuListView as _0x40eff2,MenuBarMenuListItemView as _0x20a0e0,MenuBarMenuListItemButtonView as _0x58b9e9,ContextualBalloon as _0xa8381f,ToolbarSeparatorView as _0x188889,IconView as _0x3fa78e,addListToDropdown as _0x32278e,UIModel as to,EditorUI as tt,normalizeToolbarConfig as st,BoxedEditorUIView as _0x4345dd,StickyPanelView as _0x1adcc9,ToolbarView as _0xcbf7a9,InlineEditableUIView as te}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0xe5502b}from'luxon';class I extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x3095a9(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x5a9491){super(),this['id']=_0x5a9491['id']||_0x4c4fba(),this['creator']=_0x5a9491['creator']||null,this['authors']=_0x5a9491['authors']||[],this['diffData']=_0x5a9491['diffData']||null,this['toVersion']=_0x5a9491['toVersion']||0x0,this['fromVersion']=_0x5a9491['fromVersion']||0x0,this['set']('name',_0x5a9491['name']||''),this['set']('createdAt',_0x5a9491['createdAt']||new Date()),this['set']('attributes',_0x5a9491['attributes']||{});}['setName'](_0x3f10dd){this['_update']({'name':_0x3f10dd});}['setAttribute'](_0x8d216e,_0x3f9a02){const _0x202c0e=_0x1e1e73(this['attributes']);_0x2502f6(_0x202c0e,_0x8d216e,_0x3f9a02),this['_update']({'attributes':_0x202c0e});}['removeAttribute'](_0x1038c7){const _0x261568=_0x1e1e73(this['attributes']);_0x53ab93(_0x261568,_0x1038c7),this['_update']({'attributes':_0x261568});}['_update'](_0x3af761,_0x25a7b5=!0x1){let _0x3a675f=!0x1;const _0x596435={'id':this['id']},_0x21cfaa=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x14d60b of _0x21cfaa){const _0x337a4c=_0x3af761[_0x14d60b];void 0x0!==_0x337a4c&&_0x337a4c!==this[_0x14d60b]&&(this[_0x14d60b]=_0x337a4c,_0x596435[_0x14d60b]=_0x337a4c,_0x3a675f=!0x0);}_0x3a675f&&(_0x596435['authors']&&(_0x596435['authorsIds']=_0x596435['authors']['map'](_0x599628=>_0x599628['id']),delete _0x596435['authors']),this['fire']('_update',_0x596435,_0x25a7b5));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x5946c7=>_0x5946c7['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x57da8b{['_revisions'];static get['requires'](){return[_0x33ad79];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x327ae0){super(_0x327ae0),this['_revisions']=new _0x26acd1();}['afterInit'](){!async function(_0x582791){const _0x5a4411=_0xea3df6([0x76,0x73,0x6d,0x4c,0x34,0x54,0x50,0x70,0x75,0x52,0x35,0x33,0x4d,0x6c,0x71,0x53,0x6a,0x32,0x56,0x58,0x77,0x48,0x39,0x6f,0x45,0x41,0x4e,0x38,0x46,0x78,0x4a,0x74,0x47,0x55,0x4f,0x64,0x62,0x44,0x43,0x5a,0x30,0x31,0x69,0x68,0x79,0x66,0x6b,0x42,0x51,0x59,0x36,0x61,0x63,0x67,0x7a,0x37,0x72,0x49,0x65,0x57,0x4b,0x6e]),_0x1fef9f=0xeb829,_0x3e6760=0x359e09b0,_0x41c7db=0x35997e18^_0x3e6760,_0x3a2e81=window[_0xea3df6([0x44,0x61,0x74,0x65])][_0xea3df6([0x6e,0x6f,0x77])](),_0x2e3aa3=_0x582791[_0xea3df6([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4fbb30=new window[(_0xea3df6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x56eae1=>{_0x2e3aa3[_0xea3df6([0x6f,0x6e,0x63,0x65])](_0xea3df6([0x72,0x65,0x61,0x64,0x79]),_0x56eae1);}),_0x5bb0e0={[_0xea3df6([0x6b,0x74,0x79])]:_0xea3df6([0x45,0x43]),[_0xea3df6([0x75,0x73,0x65])]:_0xea3df6([0x73,0x69,0x67]),[_0xea3df6([0x63,0x72,0x76])]:_0xea3df6([0x50,0x2d,0x32,0x35,0x36]),[_0xea3df6([0x78])]:_0xea3df6([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]),[_0xea3df6([0x79])]:_0xea3df6([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]),[_0xea3df6([0x61,0x6c,0x67])]:_0xea3df6([0x45,0x53,0x32,0x35,0x36])},_0x1cbf00=_0x2e3aa3[_0xea3df6([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xea3df6([0x67,0x65,0x74])](_0xea3df6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x43b051(){let _0xee4b59,_0x514fb5=null,_0x465811=null;try{if(_0x1cbf00==_0xea3df6([0x47,0x50,0x4c]))return _0xea3df6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xee4b59=_0xe6209(),!_0xee4b59)return _0xea3df6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xee4b59[_0xea3df6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x465811=_0x411b96(_0xee4b59[_0xea3df6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xee4b59[_0xea3df6([0x6a,0x74,0x69])])),await _0x19c5df()?_0xf62617()?_0x180c91()?_0xea3df6([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x56fb0b()?(_0xee4b59[_0xea3df6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xea3df6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x514fb5=_0x1e26e8(_0xea3df6([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xee4b59[_0xea3df6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xea3df6([0x74,0x72,0x69,0x61,0x6c])&&(_0x514fb5=_0x1e26e8(_0xea3df6([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1997a4()):_0xea3df6([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xea3df6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xea3df6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xea3df6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x180c91(){const _0x1f5104=[_0xea3df6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xea3df6([0x74,0x72,0x69,0x61,0x6c])][_0xea3df6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xee4b59[_0xea3df6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3a2e81/0x3e8:0xe10*_0x41c7db;return _0xee4b59[_0xea3df6([0x65,0x78,0x70])]<_0x1f5104;}function _0xf62617(){const _0x553e1b=_0xee4b59[_0xea3df6([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x553e1b)return!0x1;if(_0x553e1b[_0xea3df6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xea3df6([0x2a])))return!0x0;if(_0x553e1b[_0xea3df6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xea3df6([0x52,0x48])))return!0x0;if(_0x553e1b[_0xea3df6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xea3df6([0x52,0x52,0x48]))){if(_0x1fc186())return!0x0;if(_0x1413e5()||_0x5484ed())return!0x0;}return!0x1;}function _0x56fb0b(){const _0x1c98a9=_0xee4b59[_0xea3df6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1c98a9||0x0==_0x1c98a9[_0xea3df6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3f7317}=new URL(window[_0xea3df6([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1c98a9[_0xea3df6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3f7317))return!0x0;const _0x491f75=_0x3f7317[_0xea3df6([0x73,0x70,0x6c,0x69,0x74])](_0xea3df6([0x2e]));return _0x1c98a9[_0xea3df6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xc78f7d=>_0xc78f7d[_0xea3df6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xea3df6([0x2a])))[_0xea3df6([0x6d,0x61,0x70])](_0x328807=>_0x328807[_0xea3df6([0x73,0x70,0x6c,0x69,0x74])](_0xea3df6([0x2e])))[_0xea3df6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x404265=>_0x404265[_0xea3df6([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x491f75[_0xea3df6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xea3df6([0x6d,0x61,0x70])](_0x2e2788=>Array(_0x491f75[_0xea3df6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2e2788[_0xea3df6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xea3df6([0x66,0x69,0x6c,0x6c])](_0x2e2788[0x0]===_0xea3df6([0x2a])?_0xea3df6([0x2a]):'')[_0xea3df6([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2e2788))[_0xea3df6([0x73,0x6f,0x6d,0x65])](_0x96c6db=>_0x491f75[_0xea3df6([0x65,0x76,0x65,0x72,0x79])]((_0x236de2,_0x2b74e8)=>_0x96c6db[_0x2b74e8]===_0x236de2||_0x96c6db[_0x2b74e8]===_0xea3df6([0x2a])));}function _0x1997a4(){return _0x514fb5&&_0x465811?new window[(_0xea3df6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3ae6e7,_0x1cb936)=>{_0x514fb5[_0xea3df6([0x74,0x68,0x65,0x6e])](_0x3ae6e7,_0x1cb936),_0x465811[_0xea3df6([0x74,0x68,0x65,0x6e])](_0x2cc723=>{_0x2cc723!=_0xea3df6([0x56,0x61,0x6c,0x69,0x64])&&_0x3ae6e7(_0x2cc723);},_0x1cb936);}):_0x514fb5||_0x465811||_0xea3df6([0x56,0x61,0x6c,0x69,0x64]);}}function _0x411b96(_0x5d76de,_0xda8ef){return new window[(_0xea3df6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x21baaa=>{if(_0x2dabc4())return _0x21baaa(_0xea3df6([0x56,0x61,0x6c,0x69,0x64]));_0x536d1e(),_0x2e3aa3[_0xea3df6([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xea3df6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3003be=!0x1;const _0x4af80b=_0x4c4fba();function _0x31cf88(_0x53a7f8){return!!_0x53a7f8&&(typeof _0x53a7f8===_0xea3df6([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x53a7f8===_0xea3df6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x53a7f8[_0xea3df6([0x74,0x68,0x65,0x6e])]===_0xea3df6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x53a7f8[_0xea3df6([0x63,0x61,0x74,0x63,0x68])]===_0xea3df6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2e05a8(_0x5a0ff6){_0x3eec41(_0x5a0ff6)[_0xea3df6([0x74,0x68,0x65,0x6e])](_0x1ef157=>{if(!_0x1ef157||_0x1ef157[_0xea3df6([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xea3df6([0x6f,0x6b]))return _0xea3df6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4fc0cf(_0x37ca07(_0x4af80b+_0xda8ef))!=_0x1ef157[_0xea3df6([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xea3df6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xea3df6([0x56,0x61,0x6c,0x69,0x64]);})[_0xea3df6([0x74,0x68,0x65,0x6e])](_0x11655b=>(_0x932b17(),_0x11655b),()=>{const _0x170457=_0x45a0ca();return null==_0x170457?(_0x932b17(),_0xea3df6([0x56,0x61,0x6c,0x69,0x64])):_0xea3df6(_0x3a2e81-_0x170457>(0x11928db0^_0x3e6760)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xea3df6([0x74,0x68,0x65,0x6e])](_0x21baaa)[_0xea3df6([0x63,0x61,0x74,0x63,0x68])](()=>{_0x21baaa(_0xea3df6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2a609a=0x35a8e730^_0x3e6760;function _0x932b17(){const _0x24a4dd=_0xea3df6([0x6c,0x6c,0x63,0x74,0x2d])+_0x4fc0cf(_0x37ca07(_0x5d76de)),_0x256e09=_0x3ab15c(_0x4fc0cf(window[_0xea3df6([0x4d,0x61,0x74,0x68])][_0xea3df6([0x63,0x65,0x69,0x6c])](_0x3a2e81/_0x2a609a)));window[_0xea3df6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xea3df6([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x24a4dd,_0x256e09);}function _0x45a0ca(){const _0x1979bf=_0xea3df6([0x6c,0x6c,0x63,0x74,0x2d])+_0x4fc0cf(_0x37ca07(_0x5d76de)),_0x4f10ce=window[_0xea3df6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xea3df6([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1979bf);return _0x4f10ce?window[_0xea3df6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3ab15c(_0x4f10ce),0x10)*_0x2a609a:null;}function _0x3eec41(_0x4b494a){return new window[(_0xea3df6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5a094a,_0x5f00f3)=>{_0x4b494a[_0xea3df6([0x74,0x68,0x65,0x6e])](_0x5a094a,_0x5f00f3),window[_0xea3df6([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5f00f3,0x359fdd70^_0x3e6760);});}}_0x2e3aa3[_0xea3df6([0x6f,0x6e])](_0xea3df6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x17e85e,_0xba60c9)=>{if(_0xba60c9[0x0]!=_0x5d76de)return _0x21baaa(_0xea3df6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xba60c9[0x1]={..._0xba60c9[0x1],[_0xea3df6([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4af80b};},{[_0xea3df6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xea3df6([0x68,0x69,0x67,0x68])}),_0x2e3aa3[_0xea3df6([0x6f,0x6e])](_0xea3df6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3de73c=>{_0x31cf88(_0x3de73c[_0xea3df6([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3003be=!0x0,_0x2e05a8(_0x3de73c[_0xea3df6([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xea3df6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xea3df6([0x6c,0x6f,0x77])}),_0x4fbb30[_0xea3df6([0x74,0x68,0x65,0x6e])](()=>{_0x3003be||_0x21baaa(_0xea3df6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2dabc4(){return _0x2e3aa3[_0xea3df6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xea3df6([0x76,0x69,0x65,0x77])][_0xea3df6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xea3df6([0x61,0x75,0x74,0x6f]);}function _0x536d1e(){_0x2e3aa3[_0xea3df6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xea3df6([0x76,0x69,0x65,0x77])][_0xea3df6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xea3df6([0x61,0x75,0x74,0x6f]);}}function _0x1e26e8(_0x29a12e){const _0x56a5d2=[new window[(_0xea3df6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x328b25=>setTimeout(_0x328b25,0x3597377c^_0x3e6760)),_0x4fbb30[_0xea3df6([0x74,0x68,0x65,0x6e])](()=>new window[(_0xea3df6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x32e0fd=>{const _0xe22a97=0x359e09b7^_0x3e6760,_0x527a93=_0x582791[_0xea3df6([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x4a9095(){_0x527a93[_0xea3df6([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0xe22a97&&_0x32e0fd();}_0x4a9095(),_0x527a93[_0xea3df6([0x6f,0x6e])](_0xea3df6([0x61,0x64,0x64]),_0x4a9095);})),new window[(_0xea3df6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x461507=>{function _0x3904f2(){for(const _0x1f1be8 in window)if(window[_0xea3df6([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0xea3df6([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x1f1be8))&&window[_0x1f1be8]==_0x1fef9f)return _0x461507();_0x2e3aa3[_0xea3df6([0x73,0x74,0x61,0x74,0x65])]!=_0xea3df6([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0xea3df6([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3904f2,0x359e1a38^_0x3e6760);}_0x14f0de(_0xea3df6([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x3904f2();})];return window[_0xea3df6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xea3df6([0x72,0x61,0x63,0x65])](_0x56a5d2)[_0xea3df6([0x74,0x68,0x65,0x6e])](()=>_0x29a12e);}async function _0x2d51e7(){if(await _0x4fbb30,_0x14f0de(_0xea3df6([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x4817b2=_0x582791[_0xea3df6([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x514bda=_0x582791[_0xea3df6([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])](_0x4817b2[_0xea3df6([0x69,0x64])]),_0xa9085c=_0x2f3421(_0xea3df6([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0xa9085c[_0xea3df6([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x4817b2['id'],_0x514bda?_0x514bda['id']:null,!0x0),_0xa9085c[_0xea3df6([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0xea3df6([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0xa9085c[_0xea3df6([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0xa9085c[_0xea3df6([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x535f5d,void(_0xa9085c[_0xea3df6([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x535f5d);}if(_0x14f0de(_0xea3df6([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x2dca4e=_0x2f3421(_0xea3df6([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x2dca4e[_0xea3df6([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0xea3df6([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x2dca4e[_0xea3df6([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x2dca4e[_0xea3df6([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x535f5d,_0x2dca4e[_0xea3df6([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x535f5d;}_0x2e3aa3[_0xea3df6([0x6d,0x6f,0x64,0x65,0x6c])][_0xea3df6([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x535f5d,_0x2e3aa3[_0xea3df6([0x6d,0x6f,0x64,0x65,0x6c])][_0xea3df6([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x535f5d,_0x2e3aa3[_0xea3df6([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xea3df6([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1fc186(){return _0x14f0de(_0xea3df6([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2f3421(_0xea3df6([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0xea3df6([0x73,0x74,0x61,0x74,0x65])]==_0xea3df6([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1413e5(){return _0x14f0de(_0xea3df6([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 _0x5484ed(){return _0x14f0de(_0xea3df6([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x42cdf4(_0x121832){const _0x38d136=_0x1864e5();_0x2e3aa3[_0x38d136]=_0xea3df6([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])+_0x121832,_0x121832[_0xea3df6([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0xea3df6([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x1864e5()]=_0x1fef9f),_0x121832!=_0xea3df6([0x56,0x61,0x6c,0x69,0x64])&&_0x2d51e7();}function _0x1864e5(){const _0x3f6d1c=window[_0xea3df6([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xea3df6([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xea3df6([0x6e,0x6f,0x77])]())[_0xea3df6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xea3df6([0x2e]),'');let _0x582867=_0xea3df6([0x76]);for(let _0x360fe1=0x0;_0x360fe1<_0x3f6d1c[_0xea3df6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x360fe1+=0x2){let _0x428166=window[_0xea3df6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3f6d1c[_0xea3df6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x360fe1,_0x360fe1+0x2));_0x428166>=_0x5a4411[_0xea3df6([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x428166-=_0x5a4411[_0xea3df6([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x582867+=_0x5a4411[_0x428166];}return _0x582867;}function _0xe6209(){const _0x50e0ea=_0x1cbf00[_0xea3df6([0x73,0x70,0x6c,0x69,0x74])](_0xea3df6([0x2e]));if(0x3!=_0x50e0ea[_0xea3df6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1fe9bd(_0x50e0ea[0x1]);function _0x1fe9bd(_0x20f4f0){const _0x20154d=_0x2fa01a(_0x20f4f0);return _0x20154d&&_0x2c3256()?_0x20154d:null;function _0x2c3256(){const _0x26838d=_0x20154d[_0xea3df6([0x6a,0x74,0x69])],_0x40d534=window[_0xea3df6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x26838d[_0xea3df6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x26838d[_0xea3df6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2e8e3c={..._0x20154d,[_0xea3df6([0x6a,0x74,0x69])]:_0x26838d[_0xea3df6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x26838d[_0xea3df6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2e8e3c[_0xea3df6([0x76,0x63])],_0x37ca07(_0x2e8e3c)==_0x40d534;}}}async function _0x19c5df(){let _0x5745b4=!0x0;try{const _0x3d7e79=_0x1cbf00[_0xea3df6([0x73,0x70,0x6c,0x69,0x74])](_0xea3df6([0x2e])),[_0x24c015,_0x672307,_0x3630b1]=_0x3d7e79;return _0x38e8a9(_0x24c015),await _0x5e52dc(_0x24c015,_0x672307,_0x3630b1),_0x5745b4;}catch{return!0x1;}function _0x38e8a9(_0x5c88a2){const _0x283fd3=_0x2fa01a(_0x5c88a2);_0x283fd3&&_0x283fd3[_0xea3df6([0x61,0x6c,0x67])]==_0xea3df6([0x45,0x53,0x32,0x35,0x36])||(_0x5745b4=!0x1);}async function _0x5e52dc(_0x15c9bc,_0x404e99,_0x10c1af){const _0x486f30=window[_0xea3df6([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xea3df6([0x66,0x72,0x6f,0x6d])](_0x7f54d2(_0x10c1af),_0x51053c=>_0x51053c[_0xea3df6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4cd5d8=new window[(_0xea3df6([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xea3df6([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x15c9bc+_0xea3df6([0x2e])+_0x404e99),_0x4b9b49=window[_0xea3df6([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xea3df6([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4b9b49)return;const _0x451448=await _0x4b9b49[_0xea3df6([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xea3df6([0x6a,0x77,0x6b]),_0x5bb0e0,{[_0xea3df6([0x6e,0x61,0x6d,0x65])]:_0xea3df6([0x45,0x43,0x44,0x53,0x41]),[_0xea3df6([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xea3df6([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xea3df6([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4b9b49[_0xea3df6([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xea3df6([0x6e,0x61,0x6d,0x65])]:_0xea3df6([0x45,0x43,0x44,0x53,0x41]),[_0xea3df6([0x68,0x61,0x73,0x68])]:{[_0xea3df6([0x6e,0x61,0x6d,0x65])]:_0xea3df6([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x451448,_0x486f30,_0x4cd5d8)||(_0x5745b4=!0x1);}}function _0x2fa01a(_0x215b4a){return _0x215b4a[_0xea3df6([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xea3df6([0x65,0x79]))?JSON[_0xea3df6([0x70,0x61,0x72,0x73,0x65])](_0x7f54d2(_0x215b4a)):null;}function _0x7f54d2(_0x420f8b){return window[_0xea3df6([0x61,0x74,0x6f,0x62])](_0x420f8b[_0xea3df6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xea3df6([0x2b]))[_0xea3df6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xea3df6([0x2f])));}function _0x37ca07(_0x1970c4){let _0x302719=0x1505;function _0x3f79cc(_0x23702c){for(let _0x8a8409=0x0;_0x8a8409<_0x23702c[_0xea3df6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x8a8409++){const _0x19be29=_0x23702c[_0xea3df6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x8a8409);_0x302719=(_0x302719<<0x5)+_0x302719+_0x19be29,_0x302719&=_0x302719;}}function _0x2cbb6c(_0x1077ed){Array[_0xea3df6([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1077ed)?_0x1077ed[_0xea3df6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2cbb6c):_0x1077ed&&typeof _0x1077ed==_0xea3df6([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xea3df6([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1077ed)[_0xea3df6([0x73,0x6f,0x72,0x74])]()[_0xea3df6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x56f1af,_0x1614c7])=>{_0x3f79cc(_0x56f1af),_0x2cbb6c(_0x1614c7);}):_0x3f79cc(window[_0xea3df6([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1077ed));}return _0x2cbb6c(_0x1970c4),_0x302719>>>0x0;}function _0x4fc0cf(_0x4614fb){return _0x4614fb[_0xea3df6([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xea3df6([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xea3df6([0x30]));}function _0x3ab15c(_0x3485c5){return _0x3485c5[_0xea3df6([0x73,0x70,0x6c,0x69,0x74])]('')[_0xea3df6([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xea3df6([0x6a,0x6f,0x69,0x6e])]('');}function _0x14f0de(_0x2160d6){return _0x2e3aa3[_0xea3df6([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xea3df6([0x68,0x61,0x73])](_0x2160d6);}function _0x2f3421(_0x2e6ca7){return _0x2e3aa3[_0xea3df6([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xea3df6([0x67,0x65,0x74])](_0x2e6ca7);}function _0x535f5d(){}function _0xea3df6(_0x3c90d6){return _0x3c90d6['map'](_0x5ee13f=>String['fromCharCode'](_0x5ee13f))['join']('');}_0x42cdf4(await _0x43b051());}(this);}['createRevision'](_0x115710){const _0x4fc151=this['editor']['plugins']['get']('Users');return new I({'id':_0x115710['id'],'name':_0x115710['name'],'creator':_0x115710['creatorId']?_0x4fc151['getUser'](_0x115710['creatorId']):null,'diffData':_0x115710['diffData']||_0x115710['data'],'authors':_0x115710['authorsIds']['map'](_0xf7234b=>_0x4fc151['getUser'](_0xf7234b)),'createdAt':new Date(_0x115710['createdAt']),'attributes':_0x115710['attributes'],'fromVersion':_0x115710['fromVersion'],'toVersion':_0x115710['toVersion']});}['addRevision'](_0x13e1b9,_0x1a2d71=0x0){this['_revisions']['add'](_0x13e1b9,_0x1a2d71);}['getRevision'](_0x5afe9a){return this['_revisions']['get'](_0x5afe9a);}['getRevisions'](_0x281b9e={'toJSON':!0x1}){const _0x4a4246=Array['from'](this['_revisions']);return _0x4a4246['reverse'](),_0x281b9e['toJSON']?_0x4a4246['map'](_0x23203a=>_0x23203a['toJSON']()):_0x4a4246;}['getIndex'](_0x2a5d39){return this['_revisions']['getIndex'](_0x2a5d39);}['getEarlierVisibleRevision'](_0x40c2bb){const [,_0x36c1b4]=this['getRevisionsIterator'](_0x40c2bb,{'direction':'earlier'});return _0x36c1b4;}['getLaterVisibleRevision'](_0xf95515){const [,_0x1ff812]=this['getRevisionsIterator'](_0xf95515,{'direction':'later'});return _0x1ff812;}['getRevisionsInDiff'](_0x12600e){const _0x252204=[];for(const _0x5bc02a of this['getRevisionsIterator'](_0x12600e['newRevisionId']))if(_0x252204['push'](_0x5bc02a),_0x5bc02a['id']===_0x12600e['oldRevisionId'])break;return _0x252204;}*['getRevisionsIterator'](_0x3f479a,{direction:_0x21dba5='earlier',filter:_0x2ea5ec=()=>!0x0}={}){const _0x4abe8d='earlier'===_0x21dba5?0x1:-0x1;let _0x2d898f=this['_revisions']['get'](_0x3f479a),_0x1dc5f7=this['getIndex'](_0x2d898f);for(yield _0x2d898f;_0x2d898f;){if(_0x1dc5f7+=_0x4abe8d,_0x2d898f=this['getRevision'](_0x1dc5f7),!_0x2d898f)return;_0x2ea5ec(_0x2d898f)&&(yield _0x2d898f);}}}class $ extends _0x57da8b{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x532c98,'c'],[_0x24ca0b,'a'],[_0x29a322,'e'],[_0x39804b,'r'],[_0x3d1e14,'u']]);['_typeCharToViewClass']=new Map([['c',_0x532c98],['a',_0x24ca0b],['e',_0x29a322],['r',_0x39804b],['u',_0x3d1e14]]);async['loadRevisionData'](_0x4642b1,_0x58ce02){if(_0x4642b1['diffData']||!_0x58ce02)return;const _0x357bc8=this['editor']['config']['get']('collaboration.channelId'),_0x521f35=await _0x58ce02['getRevision']({'channelId':_0x357bc8,'revisionId':_0x4642b1['id']});_0x4642b1['diffData']=_0x521f35['diffData'];}['getRevisionDocumentData'](_0x433666){const _0x16c7e8={};for(const _0x5744a6 in _0x433666['diffData']){if(_0x433666['diffData'][_0x5744a6]['attachChange']&&!_0x433666['diffData'][_0x5744a6]['attachChange']['isAttached'])continue;const _0x50a614=this['_removeRevisionMarkers'](JSON['parse'](_0x433666['diffData'][_0x5744a6]['insertions'])),_0x157584=this['editor']['editing']['view']['document'],_0x1c1b5e=new _0x2a694e(_0x157584,_0x50a614['map'](_0xe52c20=>this['_getViewFromDiffObj'](_0xe52c20,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x16c7e8[_0x5744a6]=this['editor']['data']['processor']['toData'](_0x1c1b5e),this['editor']['data']['processor']['useFillerType']('default');}return _0x16c7e8;}['getRevisionRootsAttributes'](_0x38a309){const _0x507384={};for(const _0xb66de7 in _0x38a309['diffData'])_0x38a309['diffData'][_0xb66de7]['attachChange']&&!_0x38a309['diffData'][_0xb66de7]['attachChange']['isAttached']||(_0x507384[_0xb66de7]=_0x38a309['diffData'][_0xb66de7]['attributesAfter']||{});return _0x507384;}['_getTypeCharForViewElement'](_0x580b91){return this['_viewClassToTypeChar']['get'](_0x580b91['constructor']);}['_getViewFromDiffObj'](_0x44aa8d,_0x3979b1){const _0x533b15=this['editor']['editing']['view']['document'];if('string'==typeof _0x44aa8d)return new _0x1f6d7b(_0x533b15,_0x44aa8d);{let _0x59c817,_0x4ff975;_0x4ff975='u'==_0x44aa8d['type']||'r'==_0x44aa8d['type']?[]:_0x44aa8d['children']['map'](_0x4aeaf2=>this['_getViewFromDiffObj'](_0x4aeaf2,_0x3979b1));const _0x421606=this['_typeCharToViewClass']['get'](_0x44aa8d['type'])||_0x1535e1,_0x13497e=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x59c817=new _0x421606(_0x533b15,_0x44aa8d['name'],_0x44aa8d['attributes'],_0x4ff975),'u'==_0x44aa8d['type']&&_0x44aa8d['children'][0x0]){const _0x21eb1a=_0x44aa8d['children'][0x0];if(_0x59c817['render']=function(_0x368f57){const _0x446064=_0x368f57['createElement']('div');return _0x446064['innerHTML']=_0x21eb1a,_0x446064['childNodes'][0x0];},_0x3979b1){const _0x1e6ef2=new _0x2a694e(_0x533b15);_0x1e6ef2['_appendChild'](_0x59c817);const _0x4d8e35=Array['from'](_0x13497e['viewChildrenToDom'](_0x1e6ef2,{'bind':!0x1})),_0x24d62a=_0x13497e['domDocument']['createElement']('div');_0x24d62a['append'](..._0x4d8e35),_0x59c817=Array['from'](_0x13497e['domChildrenToView'](_0x24d62a))[0x0];}}else{if('r'==_0x44aa8d['type']&&_0x44aa8d['children'][0x0]){const _0x2910d8=_0x44aa8d['children'][0x0];if(_0x59c817['render']=function(_0x3ef5bf){_0x3ef5bf['innerHTML']=_0x2910d8;},_0x3979b1){const _0x308f16=new _0x2a694e(_0x533b15);_0x308f16['_appendChild'](_0x59c817);const _0x240053=Array['from'](_0x13497e['viewChildrenToDom'](_0x308f16,{'bind':!0x1})),_0xe27e87=_0x13497e['domDocument']['createElement']('div');_0xe27e87['append'](..._0x240053);const _0x2d8859=Array['from'](_0x13497e['domChildrenToView'](_0xe27e87));_0x2d8859['length']>0x1?_0x59c817['_appendChild'](_0x2d8859):_0x59c817=_0x2d8859[0x0];}}}if(_0x44aa8d['customProperties']){for(const [_0x21c403,_0x1b062a]of _0x44aa8d['customProperties'])_0x59c817['_setCustomProperty'](_0x21c403,_0x1b062a);}const _0x3567ae=void 0x0===_0x44aa8d['fillerOffset']?null:_0x44aa8d['fillerOffset'];return null!==_0x3567ae&&(_0x59c817['getFillerOffset']=()=>_0x3567ae),_0x59c817;}}['_makeModelFromViewString'](_0xf40257){const _0x2a7b62=JSON['parse'](_0xf40257),_0xbf04d6=this['editor']['editing']['view']['document'],_0x23ad96=new _0x2a694e(_0xbf04d6,_0x2a7b62['map'](_0x2a0ae1=>this['_getViewFromDiffObj'](_0x2a0ae1,!0x0)));return this['editor']['data']['toModel'](_0x23ad96);}['_removeRevisionMarkers'](_0xb4ec78){return(_0xb4ec78=_0xb4ec78['filter'](_0x5ece7d=>!_0x5ece7d['name']||'revision-start'!==_0x5ece7d['name']&&'revision-end'!==_0x5ece7d['name']))['forEach'](_0x2a0865=>{'string'!=typeof _0x2a0865&&(_0x2a0865['children']=this['_removeRevisionMarkers'](_0x2a0865['children']),_0x2a0865['attributes']=_0x2a0865['attributes']['filter'](_0xe02869=>!_0xe02869[0x0]['startsWith']('data-revision-')));}),_0xb4ec78;}}function m(_0x42734f,_0x4e3ae0,_0x15deb9){const t=_0x42734f['t'];switch(_0x4e3ae0){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'},_0x15deb9);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x15deb9);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 _0x57da8b{['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[_0x33ad79,S,$,_0x32db9];}constructor(_0x158b42){super(_0x158b42),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 _0x5d6ec1=_0x4c4fba();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x5d6ec1},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 _0x2fb147=this['repository']['getRevision'](0x0),_0x40d3a9=_0x2fb147&&null===_0x2fb147['creator']?_0x2fb147:null;if(this['_continueCurrentRevision']=!!_0x40d3a9&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x1264c2=this['_source']['getCurrentRevisionId'](),_0x47603b=this['repository']['getRevision'](_0x1264c2);if(_0x47603b)this['_startingVersion']=_0x47603b['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x12d6e5=this['_source']['history']['_operations']['find'](_0x312d63=>!_0x312d63['_isInit']),_0x596b10=_0x12d6e5?_0x12d6e5['baseVersion']:this['_source']['history']['version'];_0x2fb147?(_0x2fb147['toVersion']<_0x596b10&&_0x2fb147['_update']({'toVersion':_0x596b10}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x40d3a9['id'],this['_startingVersion']=_0x40d3a9['fromVersion']):(this['_startingVersion']=_0x2fb147['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x596b10,this['_continueCurrentRevision']=!0x1);}}else _0x40d3a9&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x40d3a9['toVersion'],this['editor']['model']['document']['history']['version']),_0x40d3a9['fromVersion']===_0x40d3a9['toVersion']?(0x0!==_0x40d3a9['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x40d3a9['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x40d3a9['id'],this['_startingVersion']=_0x40d3a9['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',_0x32054b=>!_0x32054b),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x35ecc2=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x138ca0;for(const _0x3f2220 in _0x35ecc2){const _0x4c075a=_0x3f2220,_0x45d3dd=_0x35ecc2[_0x4c075a];if('revisionHistoryLicenseKeyValid'==_0x45d3dd||'revisionHistoryLicenseKeyInvalid'==_0x45d3dd||'revisionHistoryLicenseKeyExpired'==_0x45d3dd||'revisionHistoryLicenseKeyDomainLimit'==_0x45d3dd||'revisionHistoryLicenseKeyNotAllowed'==_0x45d3dd||'revisionHistoryLicenseKeyEvaluationLimit'==_0x45d3dd||'revisionHistoryLicenseKeyTrialLimit'==_0x45d3dd||'revisionHistoryLicenseKeyUsageLimit'==_0x45d3dd){delete _0x35ecc2[_0x4c075a],_0x138ca0=_0x45d3dd,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x138ca0&&_0x35ecc2['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x138ca0&&_0x35ecc2['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x138ca0&&_0x35ecc2['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x138ca0&&_0x35ecc2['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x138ca0&&_0x35ecc2['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x138ca0&&_0x35ecc2['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x138ca0&&_0x35ecc2['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x2afd83=this['repository']['getRevision'](0x0),_0x51a9a6=await this['getRevisionDocumentData'](_0x2afd83),_0x2d5a8c=await this['getRevisionRootsAttributes'](_0x2afd83);this['_replaceEditorDataWithRevisionData'](_0x51a9a6,_0x2d5a8c);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x305482){this['_source']=_0x305482;}async['update'](){const _0x58c140=await this['_source']['getLatestVersion']();if(_0x58c140>this['currentRevision']['toVersion']){await this['_loadState']();const _0x834a8d=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x58c140});_0x834a8d['authors']=_0x834a8d['authorsIds']['map'](_0x2a484d=>this['editor']['plugins']['get']('Users')['getUser'](_0x2a484d)),this['currentRevision']['_update'](_0x834a8d);}}async['saveRevision'](_0x34b486={},_0x5e36a4=null){const _0x3c3e0a=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x5e36a4>this['currentRevision']['toVersion']&&(_0x5e36a4=null),null===_0x5e36a4&&(_0x5e36a4=await this['_source']['getLatestVersion']());const _0x35b5b5=this['_getFromVersion'](_0x5e36a4),_0x29186a=this['buildRevisionData']({'from':_0x35b5b5,'to':_0x5e36a4});if(this['currentRevision']['toVersion']<_0x5e36a4){const _0x422712=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x5e36a4,'to':_0x5e36a4});_0x422712['authors']=[],_0x422712['authorsIds']=[],_0x422712['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x422712,!0x0),delete _0x422712['authors'],_0x3c3e0a['push'](_0x422712);}_0x34b486['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x34b486['name']=_0x34b486['name']||null,_0x34b486['id']=_0x34b486['id']||_0x4c4fba(),_0x34b486={..._0x34b486,..._0x29186a};const _0x318924=this['addRevisionData'](_0x34b486);_0x3c3e0a['push'](_0x34b486);const _0x595e91=this['repository']['getIndex'](_0x318924);if(0x0!==_0x595e91){const _0x21ccd6=this['repository']['getRevision'](_0x595e91-0x1);if(_0x21ccd6['fromVersion']!==_0x5e36a4){const _0x29d6c9=this['_revisionDataBuilder']['getData'](_0x5e36a4,_0x21ccd6['toVersion']),_0x51971d={'id':_0x21ccd6['id'],'diffData':_0x29d6c9['diffData'],'authorsIds':_0x29d6c9['authorsIds'],'authors':_0x29d6c9['authorsIds']['map'](_0x8c3c8b=>this['editor']['plugins']['get']('Users')['getUser'](_0x8c3c8b)),'fromVersion':_0x5e36a4};_0x21ccd6===this['currentRevision']&&(_0x51971d['createdAt']=new Date(_0x34b486['createdAt']['getTime']()+0xa)),_0x21ccd6['_update'](_0x51971d,!0x0),delete _0x51971d['authors'],_0x3c3e0a['push'](_0x51971d);}}if(this['adapter']){for(const _0x26d97b of _0x3c3e0a)this['_bufferUpdate'](_0x26d97b['id'],_0x26d97b,!0x0);this['sendBufferedUpdates']();}return _0x318924;}['addRevisionData'](_0x5a3010){const _0x5d6629=this['repository']['createRevision'](_0x5a3010);return this['adapter']&&_0x5d6629['on']('_update',(_0x3d614f,_0x547410,_0x4d5b3b)=>{_0x4d5b3b||(this['_bufferUpdate'](_0x547410['id'],_0x547410,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x5d6629,this['_findInsertionIndex'](_0x5d6629)),_0x5d6629;}async['getRevisionDocumentData'](_0x3394e5){return await this['_utils']['loadRevisionData'](_0x3394e5,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x3394e5);}async['getRevisionRootsAttributes'](_0xd1e963){return await this['_utils']['loadRevisionData'](_0xd1e963,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0xd1e963);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x7e6060=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x2286dd=0x0;_0x2286dd<_0x7e6060['length'];_0x2286dd++){const _0x2bdfca=_0x7e6060[_0x2286dd];let _0x190158=!0x1;for(const _0x35ba68 of Object['keys'](_0x2bdfca))void 0x0===_0x2bdfca[_0x35ba68]?delete _0x2bdfca[_0x35ba68]:'id'!==_0x35ba68&&(_0x190158=!0x0);_0x190158||(_0x7e6060[_0x2286dd]=null);}if(_0x7e6060=_0x7e6060['filter'](_0x3d6a0a=>null!==_0x3d6a0a),!_0x7e6060['length'])return;for(let _0x407c93=0x0;_0x407c93<_0x7e6060['length'];_0x407c93++){const _0xd8d799=_0x7e6060[_0x407c93];void 0x0!==_0xd8d799['fromVersion']&&void 0x0===_0xd8d799['toVersion']&&(_0xd8d799['toVersion']=this['repository']['getRevision'](_0xd8d799['id'])['toVersion']),void 0x0!==_0xd8d799['toVersion']&&void 0x0===_0xd8d799['fromVersion']&&(_0xd8d799['fromVersion']=this['repository']['getRevision'](_0xd8d799['id'])['fromVersion']);}const _0x315a69=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x7e6060,_0x315a69)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x2abd9c=>{if(_0x2abd9c){for(const _0xc52001 of _0x2abd9c)this['setRevisionData']({'id':_0xc52001['id'],'createdAt':_0xc52001['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x55925b=null,from:_0x17c2f5=null,to:_0xbaff9=null}){_0x17c2f5=null!==_0x17c2f5?_0x17c2f5:_0x55925b['fromVersion'],_0xbaff9=null!==_0xbaff9?_0xbaff9:_0x55925b['toVersion'];const _0xf307bf=this['_revisionDataBuilder']['getData'](_0x17c2f5,_0xbaff9),_0xcc0478={'diffData':_0xf307bf['diffData'],'authorsIds':_0xf307bf['authorsIds'],'fromVersion':_0x17c2f5,'toVersion':_0xbaff9};if(!_0x55925b||_0xbaff9!==_0x55925b['toVersion']){const _0x196d74=_0xbaff9-0x1,_0xe5f18b=this['_source']['history']['getOperation'](_0x196d74);_0xcc0478['createdAt']=_0xe5f18b&&_0xe5f18b['createdAt']||new Date();}if(this['_loadedStateData']&&_0x17c2f5===this['_loadedStateData']['fromVersion']){for(const _0x5b60e8 of this['_loadedStateData']['authors'])_0xcc0478['authorsIds']['includes'](_0x5b60e8['id'])||_0xcc0478['authorsIds']['push'](_0x5b60e8['id']);}return _0xcc0478;}['_bufferUpdate'](_0x268677,_0x168490,_0x1668d8){if(this['_bufferedUpdates']['has'](_0x268677)){const _0x42f7ec=this['_bufferedUpdates']['get'](_0x268677);_0x168490=_0x1668d8?{..._0x42f7ec,..._0x168490}:{..._0x168490,..._0x42f7ec};}this['_bufferedUpdates']['set'](_0x268677,_0x168490);}['setRevisionData'](_0x85cd5f){const _0x38e763=this['repository']['getRevision'](_0x85cd5f['id']);if(_0x85cd5f['createdAt']&&(_0x85cd5f['createdAt']=new Date(_0x85cd5f['createdAt'])),_0x85cd5f['authorsIds']){const _0x3c99e3=this['editor']['plugins']['get']('Users');_0x85cd5f['authors']=_0x85cd5f['authorsIds']['map'](_0x2b6826=>_0x3c99e3['getUser'](_0x2b6826));}_0x38e763['_update'](_0x85cd5f,!0x0);}['_createInitialRevision'](_0x49c771){const _0xe473a1=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0xe473a1)this['_initialRevisionId']=_0xe473a1['id'];else{const _0x46eb83=!this['editor']['model']['document']['roots']['find'](_0x348ab1=>this['editor']['model']['hasContent'](_0x348ab1)),_0x337125=this['editor']['plugins']['get']('Users')['me']['id'],_0x453986=m(this['editor']['locale'],_0x46eb83?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x49c771,'to':_0x49c771,'id':this['_initialRevisionId'],'name':_0x453986,'creatorId':_0x337125});}}['_createCurrentRevision'](_0x2949a6){const _0x215db4=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x215db4),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x2949a6,'to':_0x2949a6,'id':_0x215db4,'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'](_0x147412,_0x3d6538){let _0x16532e=this['editor']['config']['get']('initialData'),_0x82b3cc=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x16532e){_0x16532e={};for(const _0x41f49e of this['editor']['model']['document']['getRootNames']())_0x16532e[_0x41f49e]='';}if('string'==typeof _0x16532e&&(_0x16532e={'main':_0x16532e}),void 0x0===_0x82b3cc){_0x82b3cc={};for(const _0x2f5622 of this['editor']['model']['document']['getRootNames']())_0x82b3cc[_0x2f5622]={};}let _0x165207=!0x1;const _0x1e4cd7=Object['keys'](_0x16532e),_0x405cbf=Object['keys'](_0x147412);for(const _0x34e90f of _0x1e4cd7){if(_0x16532e[_0x34e90f]!==_0x147412[_0x34e90f]&&''!==_0x16532e[_0x34e90f]['trim']()){_0x165207=!0x0;break;}if(!_0x41e6ee(_0x82b3cc[_0x34e90f],_0x3d6538[_0x34e90f])&&Object['keys'](_0x82b3cc[_0x34e90f])['length']>0x0){_0x165207=!0x0;break;}}_0x165207||(_0x165207=_0x405cbf['some'](_0x1113c7=>!this['editor']['model']['document']['getRoot'](_0x1113c7))),_0x165207&&_0x38fcfe('editor-initial-data-replaced-with-revision-data',{'editorData':_0x16532e,'editorRootsAttributes':_0x82b3cc,'revisionData':_0x147412,'revisionRootsAttributes':_0x3d6538}),this['editor']['config']['set']('initialData',_0x147412),this['editor']['config']['set']('rootsAttributes',_0x3d6538);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x17f971=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x17f971['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x3fe668){const _0x34d1aa=this['repository']['getRevisions']();_0x34d1aa['reverse']();let _0x53bb9f=0x0;for(;_0x53bb9f<_0x34d1aa['length'];){const _0x4cdf4d=_0x34d1aa[_0x53bb9f];if(_0x4cdf4d===this['currentRevision']){_0x53bb9f++;continue;}if(_0x4cdf4d['id']===this['_initialRevisionId'])break;const _0x2bbce3=_0x3fe668['toVersion']-_0x4cdf4d['toVersion']||_0x3fe668['fromVersion']-_0x4cdf4d['fromVersion'];if(_0x2bbce3>0x0)break;if(_0x2bbce3<0x0)_0x53bb9f++;else{if(!_0x3fe668['creator']&&_0x4cdf4d['creator'])break;if(_0x4cdf4d['creator']||!_0x3fe668['creator']){if(_0x3fe668['createdAt']>_0x4cdf4d['createdAt'])break;_0x53bb9f++;}else _0x53bb9f++;}}return _0x53bb9f;}['_getFromVersion'](_0x161d33){const _0x3729a1=this['repository']['getRevisions']();_0x3729a1['reverse'](),_0x3729a1['shift']();const _0xfe1c41=_0x3729a1['find'](_0x562461=>_0x562461['toVersion']<=_0x161d33)['toVersion'];return _0xfe1c41<this['_startingVersion']?this['_startingVersion']:_0xfe1c41;}['_makeRevision']({name:_0x4d5b4f,from:_0x5a2c13,to:_0xfb4cae,creatorId:_0x751fe0,id:_0x52248c}){const _0x15f0d4=this['buildRevisionData']({'from':_0x5a2c13,'to':_0xfb4cae});_0x15f0d4['name']=_0x4d5b4f,_0x15f0d4['creatorId']=_0x751fe0,_0x15f0d4['id']=_0x52248c;const _0x2a8c35=this['addRevisionData'](_0x15f0d4);return this['adapter']&&this['_bufferUpdate'](_0x15f0d4['id'],_0x15f0d4,!0x0),_0x2a8c35;}['_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(_0x5c2f39){this['editor']=_0x5c2f39,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'](_0x208b18){this['source']=_0x208b18;const _0x2898bf=new Map(),_0xa137f4=new Map(),_0x3b6587=this['editor']['model']['document']['roots']['map'](_0x4ef0f2=>_0x4ef0f2['rootName']);for(const _0x319c6d of _0x3b6587){const _0x5353c2=this['editor']['model']['document']['getRoot'](_0x319c6d),_0x3cd920=x(_0x5353c2);_0x2898bf['set'](_0x319c6d,_0x3cd920),_0xa137f4['set'](_0x319c6d,Object['fromEntries'](_0x5353c2['getAttributes']()));}const _0x567332=Array['from'](this['editor']['model']['markers'])['map'](_0x4e07a7=>[_0x4e07a7['name'],_0x4e07a7['getRange']()]),_0x1c9146=this['source']['version'];this['_saveMetaData'](_0x1c9146,_0x2898bf,_0x567332,_0xa137f4),this['_startingRevisionId']=this['_revisionId'];const _0x65d0e8=new Map(),_0x5e0ac7=new Map();for(const _0x37dce6 of _0x3b6587){const _0x1e7b81=N(_0x37dce6);_0x65d0e8['set'](_0x37dce6,_0x1e7b81),_0x5e0ac7['set'](_0x37dce6,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x65d0e8,[],_0x5e0ac7);}['getData'](_0x39d6c5,_0x2b9e1a){if(this['_lastFrom']===_0x39d6c5&&this['_lastTo']<=_0x2b9e1a)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x2b9e1a,!0x0);else{if(!this['_savedMetaData']['has'](_0x39d6c5)){const _0x3822c8=this['_getPreviousFrom'](_0x39d6c5);this['_calculateMetaData'](_0x3822c8,_0x39d6c5,!0x1);}this['_calculateMetaData'](_0x39d6c5,_0x2b9e1a,!0x0);}return this['_lastFrom']=_0x39d6c5,this['_lastTo']=_0x2b9e1a,this['_getState']();}['loadState'](_0x51401d){if(!this['_savedMetaData']['has'](_0x51401d['fromVersion'])){const _0x9618b4=this['_getPreviousFrom'](_0x51401d['fromVersion']);this['_calculateMetaData'](_0x9618b4,_0x51401d['fromVersion'],!0x1);}this['_calculateMetaData'](_0x51401d['fromVersion'],_0x51401d['toVersion'],!0x1);const _0x241b8c=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x51401d['fromVersion'],this['_lastTo']=_0x51401d['toVersion'];for(const _0x5f460e in _0x51401d['diffData']){const _0x369ecd=_0x51401d['diffData'][_0x5f460e]['attachChange'],_0x362d75=_0x1e1e73(_0x51401d['diffData'][_0x5f460e]['attributesBefore'])||{},_0x51902c=_0x241b8c['_makeModelFromViewString'](_0x51401d['diffData'][_0x5f460e]['deletions']);_0x51902c['rootName']=_0x5f460e,_0x51902c['_isAttached']=!_0x369ecd||!_0x369ecd['isAttached'],_0x51902c['isAttached']=()=>_0x51902c['_isAttached'],this['_baseRoots']['set'](_0x5f460e,_0x51902c),this['_baseRootsAttributes']['set'](_0x5f460e,_0x362d75),_0x369ecd&&this['_touchedRoots']['set'](_0x5f460e,_0x369ecd);const _0x1e72d3=this['_makeIdsRoot'](_0x51902c);this['_baseIdsRoots']['set'](_0x5f460e,_0x1e72d3);for(const [_0xc1737,_0x38e5ad]of _0x51902c['markers']){if(!_0xc1737['startsWith']('revision:'))continue;const _0x141f28=_0xc1737['split'](':')[0x2];for(const _0x13d4c5 of _0x38e5ad['getWalker']({'singleCharacters':!0x0})){const _0x2befcd=this['_getVidAttributeName'](_0x13d4c5),_0x1725d9='elementEnd'==_0x13d4c5['type']?_0x13d4c5['previousPosition']['path']['slice'](0x0,-0x1):_0x13d4c5['previousPosition']['path'],_0x26ce69=_0x1e72d3['getNodeByPath'](_0x1725d9)['getAttribute'](_0x2befcd);this['_touched']['set'](_0x26ce69,{'userId':_0x141f28});}_0x51902c['markers']['delete'](_0xc1737);}}this['_startingRevisionId']=this['_revisionId'];const _0x3679fa=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x429f5e=>!this['_touched']['has'](_0x429f5e));let _0x14b8f3=0x0;const _0x435e6a=new Map();for(const _0x500f1d in _0x51401d['diffData']){const _0x785aeb=_0x51401d['diffData'][_0x500f1d]['attachChange'],_0x1425eb=_0x1e1e73(_0x51401d['diffData'][_0x500f1d]['attributesAfter'])||{},_0x4966eb=_0x241b8c['_makeModelFromViewString'](_0x51401d['diffData'][_0x500f1d]['insertions']);_0x4966eb['rootName']=_0x500f1d,_0x4966eb['_isAttached']=!_0x785aeb||_0x785aeb['isAttached'],_0x4966eb['isAttached']=()=>_0x4966eb['_isAttached'],this['_diffRoots']['set'](_0x500f1d,_0x4966eb),this['_diffRootsAttributes']['set'](_0x500f1d,_0x1425eb);const _0x30b39f=this['_makeIdsRoot'](_0x4966eb,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x500f1d,_0x30b39f),_0x435e6a['set'](_0x500f1d,_0x4966eb['isAttached']()?_0x1425eb:{});for(const [_0x1650d1,_0x3c4729]of _0x4966eb['markers']){if(!_0x1650d1['startsWith']('revision:'))continue;const _0xd85a5=_0x1650d1['split'](':')[0x2];for(const _0x37d1a0 of _0x3c4729['getWalker']({'singleCharacters':!0x0})){const _0x40bf7a=this['_getVidAttributeName'](_0x37d1a0),_0xbef73e=this['_revisionId']++,_0x33958e='elementEnd'==_0x37d1a0['type']?_0x37d1a0['previousPosition']['path']['slice'](0x0,-0x1):_0x37d1a0['previousPosition']['path'];_0x30b39f['getNodeByPath'](_0x33958e)['_setAttribute'](_0x40bf7a,_0xbef73e),this['_touched']['set'](_0xbef73e,{'userId':_0xd85a5});}_0x4966eb['markers']['delete'](_0x1650d1);}for(const _0x1bc76a of this['editor']['model']['createRangeIn'](_0x4966eb)['getWalker']({'singleCharacters':!0x0})){const _0x3c062d=this['_getVidAttributeName'](_0x1bc76a),_0x8541fc='elementEnd'==_0x1bc76a['type']?_0x1bc76a['previousPosition']['path']['slice'](0x0,-0x1):_0x1bc76a['previousPosition']['path'],_0x3187cd=_0x30b39f['getNodeByPath'](_0x8541fc);_0x3187cd['getAttribute'](_0x3c062d)>0x0||_0x3187cd['_setAttribute'](_0x3c062d,_0x3679fa[_0x14b8f3++]);}for(const [_0x36b510,_0xf5c17d]of _0x4966eb['markers'])_0x36b510['startsWith']('revision:')||this['_markers']['set'](_0x36b510,_0xf5c17d);}const {roots:_0x53c43c}=this['_savedMetaData']['get'](_0x51401d['fromVersion']),{roots:_0x2e4c77}=this['_savedMetaData']['get'](_0x51401d['toVersion']),_0x2d935a=x(_0x53c43c['get']('$graveyard'));this['_baseRoots']['set']('$graveyard',_0x2d935a),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x2d935a,Number['NEGATIVE_INFINITY']));const _0x25da23=x(_0x2e4c77['get']('$graveyard'));this['_diffRoots']['set']('$graveyard',_0x25da23),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x25da23));const _0x1404a1=Array['from'](this['_diffRoots'])['map'](([_0x2d0929,_0x1e9b2a])=>[_0x2d0929,x(_0x1e9b2a)]);this['_saveMetaData'](this['_lastTo'],_0x1404a1,this['_markers'],_0x435e6a);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x33bc4f,_0x3a570f,_0x473ca9,_0x190bd9){const _0x47ecd9=new Map(_0x3a570f),_0x26014c=new Map(_0x1e1e73(_0x190bd9)),_0x1fb8b9=new Map();for(const [_0x46c5d5,_0x1be0b7]of _0x473ca9)_0x1fb8b9['set'](_0x46c5d5,{'start':_0x1be0b7['start']['clone'](),'end':_0x1be0b7['end']['clone'](),'rootName':_0x1be0b7['root']['rootName']});this['_savedMetaData']['set'](_0x33bc4f,{'roots':_0x47ecd9,'markers':_0x1fb8b9,'rootsAttributes':_0x26014c});}['_removeMetaData'](_0x445e89){this['_savedMetaData']['delete'](_0x445e89);}['_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'](_0x313325,_0x946bbd=null){let _0x1edcf4=null;_0x313325['is']('documentFragment')||(_0x1edcf4=new _0x439a4c(_0x313325['name'],{'vid_start':null===_0x946bbd?this['_revisionId']++:_0x946bbd++}));const _0x2fbced=[];for(const _0x6a0374 of _0x313325['getChildren']())if(_0x6a0374['is']('element')){_0x2fbced['push'](this['_makeIdsRoot'](_0x6a0374,_0x946bbd));const _0x4fac25=_0x2fbced[_0x2fbced['length']-0x1];null!==_0x946bbd&&(_0x946bbd=_0x4fac25['is']('element','$text')?_0x4fac25['getAttribute']('vid')+0x1:_0x4fac25['getAttribute']('vid_end')+0x1);}else{for(let _0x50bf87=0x0;_0x50bf87<_0x6a0374['offsetSize'];_0x50bf87++)_0x2fbced['push'](new _0x439a4c('$text',{'vid':null===_0x946bbd?this['_revisionId']++:_0x946bbd++}));}if(_0x313325['is']('documentFragment')){const _0x261845=N(_0x313325['rootName']);return _0x261845['_insertChild'](0x0,_0x2fbced),_0x261845;}return _0x1edcf4['_setAttribute']('vid_end',null===_0x946bbd?this['_revisionId']++:_0x946bbd++),_0x1edcf4['_insertChild'](0x0,_0x2fbced),_0x1edcf4;}['_calculateMetaData'](_0x210012,_0x313d29,_0x1236ca){this['_reset']();const {roots:_0x1b6815,markers:_0x423573,rootsAttributes:_0x51364f}=this['_savedMetaData']['get'](_0x210012);this['_baseRoots']=new Map(_0x1b6815),this['_baseRootsAttributes']=new Map(_0x1e1e73(_0x51364f));for(const [_0x11c5ff,_0x13670b]of this['_baseRoots'])if('$graveyard'!==_0x11c5ff&&(this['_diffRoots']['set'](_0x11c5ff,x(_0x13670b)),this['_diffRootsAttributes']=new Map(_0x1e1e73(_0x51364f)),_0x1236ca)){const _0x52bbb3=this['_revisionId'];this['_idsRoots']['set'](_0x11c5ff,this['_makeIdsRoot'](_0x13670b)),this['_baseIdsRoots']['set'](_0x11c5ff,this['_makeIdsRoot'](_0x13670b,_0x52bbb3));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x1236ca&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0xecf749,_0x1e9d20]of _0x423573){const _0x11839f=this['_baseRoots']['get'](_0x1e9d20['rootName']),_0x5a8044=this['_diffRoots']['get'](_0x1e9d20['rootName']),_0x43a089=new _0x2cbf1e(this['_fixPosition'](_0x1e9d20['start'],_0x11839f),this['_fixPosition'](_0x1e9d20['end'],_0x11839f)),_0x12708f=this['_fixRange'](_0x43a089,_0x5a8044);_0x11839f['markers']['set'](_0xecf749,_0x43a089),this['_markers']['set'](_0xecf749,_0x12708f);}this['_applyOperations'](_0x210012,_0x313d29,_0x1236ca);}['_applyOperations'](_0x290ed3,_0x479e77,_0xa86141){for(const _0x442e85 of this['source']['getOperations'](_0x290ed3,_0x479e77))this['_handleOperation'](_0x442e85,_0xa86141);for(const _0x3444e7 of this['_diffRoots']['values']())_0x3444e7['markers']['clear']();for(const [_0x2e322d,_0x54c8be]of this['_markers']){this['_diffRoots']['get'](_0x54c8be['root']['rootName'])['markers']['set'](_0x2e322d,_0x54c8be['clone']());}const _0x186c77=new Map(),_0x30bae1=new Map();for(const [_0x1db3c9,_0x556dcf]of this['_diffRoots'])_0x186c77['set'](_0x1db3c9,x(_0x556dcf)),_0x30bae1['set'](_0x1db3c9,this['_diffRootsAttributes']['get'](_0x1db3c9));this['_saveMetaData'](_0x479e77,_0x186c77,this['_markers'],_0x30bae1);}['_getPreviousFrom'](_0x1e2ba5){const _0x448494=Array['from'](this['_savedMetaData']['keys']());_0x448494['sort']((_0x1b0b9a,_0x352470)=>_0x1b0b9a-_0x352470),_0x448494['reverse']();for(const _0x5c6b61 of _0x448494)if(_0x5c6b61<_0x1e2ba5)return _0x5c6b61;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x42793b,_0x4503ee){const _0x2d5d83=Array['from'](_0x4503ee['markers'])['map'](([_0x4c4138,_0x3d0475])=>[_0x4c4138,this['_fixRange'](_0x3d0475,_0x42793b)]);_0x42793b['markers']=new Map(_0x2d5d83);}['_transformMarkers'](_0x987eb8){for(const _0x1a3490 of this['_markers']['values']()){const _0x116e2a=_0x1a3490['getTransformedByOperation'](_0x987eb8),_0x50001b=_0x2cbf1e['_createFromRanges'](_0x116e2a);_0x1a3490['start']=_0x50001b['start'],_0x1a3490['end']=_0x50001b['end'];}}['_handleOperation'](_0x5b2268,_0x4b70a7){if('addRoot'!=_0x5b2268['type']&&'detachRoot'!=_0x5b2268['type']){if('insert'==_0x5b2268['type']){const _0x223163=_0x5b2268['position']['root']['rootName'];this['_diffRoots']['has'](_0x223163)||(this['_diffRoots']['set'](_0x223163,N(_0x223163,!0x0)),this['_diffRootsAttributes']['set'](_0x223163,{}),_0x4b70a7&&this['_idsRoots']['set'](_0x223163,N(_0x223163,!0x0)));}else{if('addRootAttribute'==_0x5b2268['type']||'removeRootAttribute'==_0x5b2268['type']||'changeRootAttribute'==_0x5b2268['type'])return void this['_handleRootAttributeOperation'](_0x5b2268);'marker'==_0x5b2268['type']&&this['_handleMarkerOperation'](_0x5b2268);}if('marker'!==_0x5b2268['type']){const _0x2b42a4=this['_cloneOperation'](_0x5b2268,this['_diffRoots']);_0x2b42a4['_execute'](),this['_transformMarkers'](_0x2b42a4);}if(_0x4b70a7)switch(_0x5b2268['type']){case'insert':this['_handleInsertOperation'](_0x5b2268);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x5b2268);break;case'merge':this['_handleMergeOperation'](_0x5b2268);break;case'split':this['_handleSplitOperation'](_0x5b2268);}}else this['_handleRootOperation'](_0x5b2268,_0x4b70a7);}['_cloneOperation'](_0x136eee,_0x1f5770){const _0x2bb457=_0x136eee['clone']();return _0x2bb457['_authorId']=_0x136eee['_authorId'],this['_fixOperation'](_0x2bb457,_0x1f5770),_0x2bb457;}['_getBaseVids'](_0x3e7f00){return _0x3e7f00['map'](_0x2e3671=>{const _0x4e2e4c=this['_getVidAttributeName'](_0x2e3671);return Number(_0x2e3671['item']['getAttribute'](_0x4e2e4c));});}['_generateTape'](_0x643037,_0x1a1f15){if(_0x643037['is']('element','$text'))_0x1a1f15['push']({'item':_0x643037,'type':'text'});else{_0x643037['is']('element')&&_0x1a1f15['push']({'item':_0x643037,'type':'elementStart'});for(const _0x12041b of _0x643037['getChildren']())this['_generateTape'](_0x12041b,_0x1a1f15);_0x643037['is']('element')&&_0x1a1f15['push']({'item':_0x643037,'type':'elementEnd'});}return _0x1a1f15;}['_getState'](){const _0x7a8fd0=new Map(this['_touched']),_0x52c9e7=new Map(_0x7a8fd0),_0x2f106c=new Map(),_0x6b4a98={'insertions':{},'deletions':{}},_0xbdeb79={'insertions':{},'deletions':{}},_0x55fab1=new Map(),_0x54c081=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x54c081['delete']('$graveyard');for(const _0x4e1817 of _0x54c081){const _0x5961d8=this['_diffRoots']['get'](_0x4e1817)||N(_0x4e1817,!0x1),_0x46b375=this['_baseRoots']['get'](_0x4e1817)||N(_0x4e1817,!0x1);_0x5961d8['isAttached']()||_0x46b375['isAttached']()?(_0x6b4a98['insertions'][_0x4e1817]=x(_0x5961d8),_0x6b4a98['deletions'][_0x4e1817]=x(_0x46b375),this['_copyMarkers'](_0x6b4a98['deletions'][_0x4e1817],_0x46b375),this['_copyMarkers'](_0x6b4a98['insertions'][_0x4e1817],_0x5961d8),_0xbdeb79['insertions'][_0x4e1817]=this['_generateTape'](this['_idsRoots']['get'](_0x4e1817),[]),_0xbdeb79['deletions'][_0x4e1817]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x4e1817)||N(_0x4e1817,!0x1),[])):_0x54c081['delete'](_0x4e1817);}for(const _0x5d095d of _0x54c081){const _0x39eab7=_0xbdeb79['insertions'][_0x5d095d];for(const _0x505ad5 of _0x39eab7){const _0x46d24b=this['_getVidAttributeName'](_0x505ad5),_0x1c85ae=_0x505ad5['item']['getAttribute'](_0x46d24b);_0x52c9e7['delete'](_0x1c85ae),_0x1c85ae>=this['_startingRevisionId']&&_0x2f106c['set'](_0x1c85ae,_0x7a8fd0['get'](_0x1c85ae));}}for(const _0x1804dc of _0x54c081){const _0x318f07=_0xbdeb79['insertions'][_0x1804dc],_0x4f13b7=this['_getBaseVids'](_0xbdeb79['deletions'][_0x1804dc]);let _0x171b92=0x0;for(const _0x1e6449 of _0x318f07){const _0x3f3ef5=this['_getVidAttributeName'](_0x1e6449),_0x53a476=_0x1e6449['item']['getAttribute'](_0x3f3ef5);if(!_0x2f106c['has'](_0x53a476)&&!_0x55fab1['has'](_0x53a476)){if(_0x52c9e7['has'](_0x53a476))_0x171b92++;else{if(_0x53a476!=_0x4f13b7[_0x171b92]){const _0x2cda25=_0x7a8fd0['get'](_0x53a476)||_0x7a8fd0['get'](_0x4f13b7[_0x171b92]);for(;_0x53a476!=_0x4f13b7[_0x171b92];)_0x52c9e7['has'](_0x4f13b7[_0x171b92])||(_0x55fab1['set'](_0x4f13b7[_0x171b92],_0x2cda25),_0x7a8fd0['set'](_0x4f13b7[_0x171b92],_0x2cda25)),_0x171b92++;}_0x171b92++;}}}}for(const _0x487df3 of _0x54c081){const _0x200398=_0xbdeb79['insertions'][_0x487df3];for(const _0x423927 of _0x200398){const _0x2d169f=this['_getVidAttributeName'](_0x423927),_0x2fcdf9=_0x423927['item']['getAttribute'](_0x2d169f);if(_0x55fab1['has'](_0x2fcdf9)){const _0x2b2720=_0x55fab1['get'](_0x2fcdf9);_0x52c9e7['has'](_0x2fcdf9)||_0x52c9e7['set'](_0x2fcdf9,{..._0x2b2720}),_0x2f106c['set'](_0x2fcdf9,{..._0x2b2720});}}}for(const _0x37fc5a of _0x52c9e7['keys']())_0x37fc5a>=this['_startingRevisionId']&&_0x52c9e7['delete'](_0x37fc5a);const _0x5c8fd1=new Map();for(const _0x2acdbc of _0x54c081){let _0x27a407=_0xbdeb79['insertions'][_0x2acdbc];for(const _0x23075c of _0x27a407)if(_0x23075c['item']['is']('element','tableCell')){const _0x23f431=this['_getVidAttributeName'](_0x23075c),_0x28da22=_0x23075c['item']['getAttribute'](_0x23f431);if(_0x2f106c['has'](_0x28da22)){const _0x135701=_0x23075c['item']['parent']['parent']['getAttribute']('vid_start'),_0x2df016=_0x5c8fd1['get'](_0x135701)||new Set();_0x2df016['add'](_0x2f106c['get'](_0x28da22)['userId']),_0x5c8fd1['set'](_0x135701,_0x2df016);}}_0x27a407=_0xbdeb79['deletions'][_0x2acdbc];for(const _0x42497c of _0x27a407)if(_0x42497c['item']['is']('element','tableCell')){const _0x4dad6f=this['_getVidAttributeName'](_0x42497c),_0x28a53e=_0x42497c['item']['getAttribute'](_0x4dad6f);if(_0x52c9e7['has'](_0x28a53e)){const _0x3aad6a=_0x42497c['item']['parent']['parent']['getAttribute']('vid_start'),_0x2e0b63=_0x5c8fd1['get'](_0x3aad6a)||new Set();_0x2e0b63['add'](_0x52c9e7['get'](_0x28a53e)['userId']),_0x5c8fd1['set'](_0x3aad6a,_0x2e0b63);}}for(const _0x2cc50f of _0x5c8fd1['keys']())(_0x2f106c['has'](_0x2cc50f)||_0x52c9e7['has'](_0x2cc50f))&&_0x5c8fd1['delete'](_0x2cc50f);}for(const _0x4b449b of _0x54c081){const _0x39e22e=_0xbdeb79['insertions'][_0x4b449b];let _0x24ea2a=null,_0x278c32=null;for(const _0x5399b2 of _0x39e22e){const _0x244603=this['_getVidAttributeName'](_0x5399b2),_0x391aa5=_0x5399b2['item']['getAttribute'](_0x244603),_0x253ff9=_0x5c8fd1['get'](_0x391aa5);_0x253ff9&&'elementStart'==_0x5399b2['type']&&(_0x24ea2a=Array['from'](_0x253ff9)[0x0],_0x278c32=_0x5399b2['item']['getAttribute']('vid_end')),_0x24ea2a&&(_0x52c9e7['set'](_0x391aa5,{'userId':_0x24ea2a}),_0x2f106c['set'](_0x391aa5,{'userId':_0x24ea2a})),_0x391aa5==_0x278c32&&(_0x24ea2a=null,_0x278c32=null);}}const _0x23aef5={},_0x436189=new Set();for(const _0x2a6d32 of _0x54c081){const _0x10e35d=_0x6b4a98['deletions'][_0x2a6d32],_0x46e17a=_0x6b4a98['insertions'][_0x2a6d32];for(const {userId:_0x33ace}of this['_touchedMarkers']['values']())null!==_0x33ace&&_0x436189['add'](_0x33ace);for(const {userId:_0x1b95dd}of this['_touchedRoots']['values']())null!==_0x1b95dd&&_0x436189['add'](_0x1b95dd);this['_markChanges'](_0x46e17a,_0xbdeb79['insertions'][_0x2a6d32],_0x2f106c,'insertion',_0x436189),this['_markChanges'](_0x10e35d,_0xbdeb79['deletions'][_0x2a6d32],_0x52c9e7,'deletion',_0x436189),_0x23aef5[_0x2a6d32]={'insertions':this['_prepareViewToSave'](_0x46e17a),'deletions':this['_prepareViewToSave'](_0x10e35d),'attachChange':this['_touchedRoots']['get'](_0x2a6d32)||null,'attributesBefore':_0x1e1e73(this['_baseRootsAttributes']['get'](_0x2a6d32))||{},'attributesAfter':_0x1e1e73(this['_diffRootsAttributes']['get'](_0x2a6d32))};}return{'diffData':_0x23aef5,'authorsIds':Array['from'](_0x436189)};}['_processRootBeforeSave'](_0x5b3234){for(const [,_0x5c2ac5]of _0x5b3234['markers']){const _0x16d7f3=_0x5c2ac5['start']['getAncestors']()['filter'](_0x17e8c6=>'tableCell'==_0x17e8c6['name']);for(const _0x7151b2 of _0x16d7f3)0x1==_0x7151b2['childCount']&&_0x7151b2['getChild'](0x0)['is']('element','paragraph')&&_0x7151b2['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x18fa63){this['_processRootBeforeSave'](_0x18fa63);const _0xfb11d3=this['editor']['data']['toView'](_0x18fa63,{}),_0x2ed58f=Array['from'](_0xfb11d3['getChildren']())['map'](_0x4a1ee0=>this['_getViewJson'](_0x4a1ee0));return JSON['stringify'](_0x2ed58f);}['_getViewJson'](_0x4b9e58){if(_0x4b9e58['is']('$text'))return _0x4b9e58['data'];{const _0x18267d=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x118334=_0x4b9e58,_0x5ebfc2=this['editor']['data']['htmlProcessor']['domConverter'],_0x2274bc={'type':_0x18267d['_getTypeCharForViewElement'](_0x118334),'name':_0x118334['name'],'attributes':Array['from'](_0x118334['getAttributes']()),'children':Array['from'](_0x118334['getChildren']())['map'](_0x58a893=>this['_getViewJson'](_0x58a893))};if(_0x4b9e58['is']('uiElement')&&'$comment'!=_0x4b9e58['name']){const _0x4a9c62=_0x4b9e58['render'](_0x5ebfc2['domDocument'],_0x5ebfc2);_0x2274bc['children']['push'](_0x4a9c62['outerHTML']);}else{if(_0x4b9e58['is']('rawElement')){const _0x4bd5f1=_0x5ebfc2['domDocument']['createElement'](_0x118334['name']);_0x4b9e58['render'](_0x4bd5f1,_0x5ebfc2),_0x2274bc['children']['push'](_0x4bd5f1['innerHTML']);}}const _0x3dca31=Array['from'](_0x118334['getCustomProperties']());_0x3dca31['length']>0x0&&(_0x2274bc['customProperties']=_0x3dca31);const _0x558b06=_0x118334['getFillerOffset']();return null!==_0x558b06&&(_0x2274bc['fillerOffset']=_0x558b06),_0x2274bc;}}['_markChanges'](_0x5554ec,_0x1c0cd7,_0x2a5e5a,_0x4db002,_0x4c365f){let _0x19b699=null,_0x3b60ec=null,_0x40d8c3=0x0;const _0x12a410=this['editor']['model'];for(let _0x4a34f1=0x0;_0x4a34f1<_0x1c0cd7['length'];_0x4a34f1++){const _0x269aa7=this['_getVidAttributeName'](_0x1c0cd7[_0x4a34f1]),_0x38e873=_0x1c0cd7[_0x4a34f1]['item']['getAttribute'](_0x269aa7),_0x55429e=_0x2a5e5a['get'](_0x38e873),_0x41eadd=_0x4a34f1==_0x1c0cd7['length']-0x1;(!_0x19b699&&_0x55429e&&(_0x19b699=_0x55429e,_0x3b60ec=_0x1c0cd7[_0x4a34f1]),_0x19b699&&(!_0x55429e||_0x55429e['userId']!=_0x19b699['userId']))&&(_0x39e9b3(_0x55429e,P(_0x3b60ec,_0x5554ec,_0x12a410),P(_0x1c0cd7[_0x4a34f1],_0x5554ec,_0x12a410)),_0x19b699=_0x55429e||null,_0x3b60ec=_0x55429e?_0x1c0cd7[_0x4a34f1]:null),_0x19b699&&_0x41eadd&&_0x39e9b3(_0x55429e,P(_0x3b60ec,_0x5554ec,_0x12a410),V(_0x1c0cd7[_0x4a34f1],_0x5554ec,_0x12a410));}function _0x39e9b3(_0x8bc5d9,_0x52bb2b,_0xfe3a05){const _0x36c448=_0x19b699['userId'],_0xfe3ef3='revision:'+_0x4db002+':'+_0x36c448+':'+_0x40d8c3++,_0x880c99=_0x12a410['createRange'](_0x52bb2b,_0xfe3a05);_0x5554ec['markers']['set'](_0xfe3ef3,_0x880c99),null!==_0x36c448&&_0x4c365f['add'](_0x36c448);}}['_getVidAttributeName'](_0x3d3ee1){switch(_0x3d3ee1['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x3ff640,_0x35f682){_0x3ff640['baseVersion']=null;for(const _0x59a896 in _0x3ff640){const _0x49e865=_0x3ff640[_0x59a896];if(_0x49e865 instanceof _0xa279e5){const _0x34d8fd=_0x35f682['get'](_0x49e865['root']['rootName']);_0x3ff640[_0x59a896]=this['_fixPosition'](_0x49e865,_0x34d8fd);}if(_0x49e865 instanceof _0x2cbf1e){const _0x47050f=_0x35f682['get'](_0x49e865['root']['rootName']);_0x3ff640[_0x59a896]=this['_fixRange'](_0x49e865,_0x47050f);}'root'===_0x59a896&&(_0x3ff640['root']=_0x35f682['get'](_0x3ff640['root']['rootName']));}}['_fixRange'](_0xfb4322,_0x593fa9){return this['editor']['model']['createRange'](this['_fixPosition'](_0xfb4322['start'],_0x593fa9),this['_fixPosition'](_0xfb4322['end'],_0x593fa9));}['_fixPosition'](_0x148f53,_0x4e67ef){return this['editor']['model']['createPositionFromPath'](_0x4e67ef,_0x148f53['path'],_0x148f53['stickiness']);}['_handleInsertOperation'](_0x16e40f){const _0x316f05=this['_idsRoots']['get'](_0x16e40f['position']['root']['rootName']),_0x280ffc=this['_fixPosition'](_0x16e40f['position'],_0x316f05),_0x1c2e34=null===_0x16e40f['_authorId']?null:_0x16e40f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x44ad73=_0x280ffc['parent'],_0x17c9f3=this['_revisionId'],_0x5e2ce6=[];for(const _0x45509a of _0x16e40f['nodes'])if(_0x45509a['is']('element'))_0x5e2ce6['push'](this['_makeIdsRoot'](_0x45509a));else{for(let _0x20a4ca=0x0;_0x20a4ca<_0x45509a['offsetSize'];_0x20a4ca++)_0x5e2ce6['push'](new _0x439a4c('$text',{'vid':this['_revisionId']++}));}const _0x332ad4=this['_revisionId'];for(let _0x298d1e=_0x17c9f3;_0x298d1e<_0x332ad4;_0x298d1e++)this['_touched']['set'](_0x298d1e,{'userId':_0x1c2e34});_0x44ad73['_insertChild'](_0x280ffc['offset'],_0x5e2ce6);}['_handleMoveOperation'](_0xe62910){(_0xe62910=this['_cloneOperation'](_0xe62910,this['_idsRoots']))['_execute']();const _0x3291dc=null===_0xe62910['_authorId']?null:_0xe62910['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x7d3db6=_0xe62910['getMovedRangeStart'](),_0x53dbe0=_0x7d3db6['parent'],_0x148639=_0x7d3db6['offset'];!function _0x32fdd3(_0x386507,_0x2cb99f,_0x1d4b13,_0x3c9f5c){for(let _0x2eef3b=_0x1d4b13;_0x2eef3b<_0x3c9f5c;_0x2eef3b++){const _0x51c1c6=_0x2cb99f['getChild'](_0x2eef3b);_0x51c1c6['is']('element','$text')?_0x386507['set'](_0x51c1c6['getAttribute']('vid'),{'userId':_0x3291dc}):(_0x386507['set'](_0x51c1c6['getAttribute']('vid_start'),{'userId':_0x3291dc}),_0x32fdd3(_0x386507,_0x51c1c6,0x0,_0x51c1c6['childCount']),_0x386507['set'](_0x51c1c6['getAttribute']('vid_end'),{'userId':_0x3291dc}));}}(this['_touched'],_0x53dbe0,_0x148639,_0x148639+_0xe62910['howMany']);}['_handleMergeOperation'](_0x52add6){const _0x17e3f0=null===(_0x52add6=this['_cloneOperation'](_0x52add6,this['_idsRoots']))['_authorId']?null:_0x52add6['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1891f9=_0x52add6['targetPosition']['parent'],_0x3e7fa1=_0x52add6['sourcePosition']['parent'],_0x2b626d=_0x1891f9['getAttribute']('vid_end'),_0x4264b7=_0x3e7fa1['getAttribute']('vid_start');_0x1891f9['_setAttribute']('vid_end',_0x3e7fa1['getAttribute']('vid_end')),_0x3e7fa1['_setAttribute']('vid_end',_0x2b626d),this['_touched']['set'](_0x4264b7,{'userId':_0x17e3f0}),this['_touched']['set'](_0x2b626d,{'userId':_0x17e3f0}),_0x52add6['_execute']();}['_handleSplitOperation'](_0x137d0b){const _0x12bed8=null===(_0x137d0b=this['_cloneOperation'](_0x137d0b,this['_idsRoots']))['_authorId']?null:_0x137d0b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3b17a6=_0x137d0b['graveyardPosition'],_0x52a335=_0x137d0b['splitPosition']['parent'];_0x137d0b['_execute']();const _0x5773a3=_0x52a335['getAttribute']('vid_end'),_0x5296d1=_0x137d0b['insertionPosition']['nodeAfter'];if(_0x3b17a6){const _0x28bf79=_0x5296d1['getAttribute']('vid_end'),_0x370455=_0x52a335['getAttribute']('vid_end');_0x52a335['_setAttribute']('vid_end',_0x28bf79),_0x5296d1['_setAttribute']('vid_end',_0x370455),this['_touched']['set'](_0x52a335['getAttribute']('vid_end'),{'userId':_0x12bed8}),this['_touched']['set'](_0x5296d1['getAttribute']('vid_start'),{'userId':_0x12bed8});}else{const _0x5deabb=this['_revisionId']++,_0x4b6ff8=this['_revisionId']++;_0x52a335['_setAttribute']('vid_end',_0x5deabb),_0x5296d1['_setAttribute']('vid_start',_0x4b6ff8),_0x5296d1['_setAttribute']('vid_end',_0x5773a3),this['_touched']['set'](_0x5deabb,{'userId':_0x12bed8}),this['_touched']['set'](_0x4b6ff8,{'userId':_0x12bed8});}}['_handleMarkerOperation'](_0x26a9d5){if(!_0x26a9d5['affectsData'])return;const _0x59bb4f=(_0x26a9d5=this['_cloneOperation'](_0x26a9d5,this['_diffRoots']))['oldRange']?_0x26a9d5['oldRange']['root']:null,_0x3a04ed=_0x26a9d5['newRange']?_0x26a9d5['newRange']['root']:null;_0x59bb4f&&this['_markers']['delete'](_0x26a9d5['name']),_0x3a04ed&&this['_markers']['set'](_0x26a9d5['name'],_0x26a9d5['newRange']['clone']());const _0x43066d=null===_0x26a9d5['_authorId']?null:_0x26a9d5['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x30fb63=_0x26a9d5['name'];if(!this['_touchedMarkers']['has'](_0x30fb63))return void this['_touchedMarkers']['set'](_0x30fb63,{'range':_0x26a9d5['oldRange'],'userId':_0x43066d});const _0x43159b=this['_touchedMarkers']['get'](_0x30fb63),_0x1225a4=_0x43159b['range'],_0x2eed46=_0x26a9d5['newRange'];null==_0x1225a4&&null==_0x2eed46||_0x1225a4&&_0x2eed46&&_0x1225a4['isEqual'](_0x2eed46)?this['_touchedMarkers']['delete'](_0x26a9d5['name']):_0x43159b['userId']=_0x43066d;}['_handleRootOperation'](_0x2e84bd,_0x11ad90){this['_diffRoots']['has'](_0x2e84bd['rootName'])?this['_diffRoots']['get'](_0x2e84bd['rootName'])['_isAttached']=_0x2e84bd['isAdd']:(this['_diffRoots']['set'](_0x2e84bd['rootName'],N(_0x2e84bd['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x2e84bd['rootName'],{}),_0x11ad90&&this['_idsRoots']['set'](_0x2e84bd['rootName'],N(_0x2e84bd['rootName'],!0x0)));const _0x21c113=null===_0x2e84bd['_authorId']?null:_0x2e84bd['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xade960=this['_touchedRoots']['get'](_0x2e84bd['rootName']);_0xade960&&_0xade960['userId']===_0x21c113?this['_touchedRoots']['delete'](_0x2e84bd['rootName']):this['_touchedRoots']['set'](_0x2e84bd['rootName'],{'userId':_0x21c113,'isAttached':_0x2e84bd['isAdd']});}['_handleRootAttributeOperation'](_0x5066cf){const _0x2617aa=this['_diffRootsAttributes']['get'](_0x5066cf['root']['rootName']);null===_0x5066cf['newValue']?delete _0x2617aa[_0x5066cf['key']]:_0x2617aa[_0x5066cf['key']]=_0x5066cf['newValue'];}}function x(_0xeaedd3){const _0x415b96=N(_0xeaedd3['rootName'],_0xeaedd3['isAttached']());for(const _0x303402 of _0xeaedd3['getChildren']()){const _0x2fc193=_0x303402['_clone'](!0x0);_0x415b96['_appendChild'](_0x2fc193);}return _0x415b96;}function N(_0x186009,_0x5189e9=!0x0){const _0x57372b=new _0x19df77();return _0x57372b['rootName']=_0x186009,_0x57372b['_isAttached']=_0x5189e9,_0x57372b['isAttached']=()=>_0x57372b['_isAttached'],_0x57372b;}function P(_0x354bf4,_0x2d662e,_0x38f13c){const _0x1d288c='elementEnd'==_0x354bf4['type']?_0x38f13c['createPositionAt'](_0x354bf4['item'],'end'):_0x38f13c['createPositionBefore'](_0x354bf4['item']);return _0x38f13c['createPositionFromPath'](_0x2d662e,_0x1d288c['path'],_0x1d288c['stickiness']);}function V(_0x26a572,_0x2db93c,_0x5d9729){const _0x547622='elementStart'==_0x26a572['type']?_0x5d9729['createPositionAt'](_0x26a572['item'],0x0):_0x5d9729['createPositionAfter'](_0x26a572['item']);return _0x5d9729['createPositionFromPath'](_0x2db93c,_0x547622['path'],_0x547622['stickiness']);}class he extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x10c92b(_0x419e54){['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0xf2f807,_0xf47b9f){super(_0xf2f807),this['focusTracker']=new _0x2086fd(),this['keystrokes']=new _0x2782fb(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0xf47b9f),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'](),_0x54a2c3({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x475c8e=_0x17ce85=>_0x17ce85['stopPropagation']();this['keystrokes']['set']('arrowright',_0x475c8e),this['keystrokes']['set']('arrowleft',_0x475c8e),this['keystrokes']['set']('arrowup',_0x475c8e),this['keystrokes']['set']('arrowdown',_0x475c8e);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x4aa642){this['revisionNameInputView']['fieldView']['element']['value']=_0x4aa642['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x1e532e){const _0x3e0433=new ti(this['locale'],_0xca40ce),_0x1da74a=_0x3e0433['fieldView'];_0x1da74a['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x10793c=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x1e532e&&(_0x10793c+='\x20('+m(this['locale'],'optional')+')'),(_0x3e0433['label']=_0x10793c,_0x1da74a['on']('input',()=>{this['revisionNameInputValue']=_0x1da74a['element']['value']['trim']();}),_0x3e0433);}}class l extends _0x57da8b{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h];}['_saveRevisionFormView'];['init'](){const _0x2db390=this['editor'],_0x69a37d=_0x2db390['plugins']['get']('RevisionTracker');_0x2db390['ui']['componentFactory']['add']('revisionHistory',_0x372970=>{const _0x398110=_0x40d317(_0x372970),_0x33e5e9=_0x398110['panelView']['children'],_0xcfb863=new _0x4df325(_0x372970),_0x1824b0=new _0x30a8cf(_0x372970),_0x24b3a8=new _0x398d9f(_0x372970),_0x25be29=new _0x30a8cf(_0x372970),_0x16e887=new _0x398d9f(_0x372970);return _0x398110['bind']('isEnabled')['to'](_0x69a37d,'isReady',_0x69a37d,'isEnabled',_0x2db390,'isReadOnly',(_0x451245,_0x34c63d,_0xd44fa3)=>_0x451245&&_0x34c63d&&!_0xd44fa3),_0x398110['buttonView']['set']({'icon':_0x1c16d7,'label':m(_0x372970,'Revision\x20history'),'tooltip':!0x0}),_0x24b3a8['set']({'label':m(_0x372970,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x24b3a8['bind']('isEnabled')['to'](_0x69a37d,'isReady',_0x69a37d,'isEnabled',_0x2db390,'isReadOnly',(_0x44d6f4,_0x5c396a,_0x275967)=>_0x44d6f4&&_0x5c396a&&!_0x275967),_0x24b3a8['on']('execute',()=>this['_showDialog']()),_0x16e887['set']({'label':m(_0x372970,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x16e887['bind']('isEnabled')['to'](_0x69a37d,'isReady',_0x2db390,'isReadOnly',(_0x26ca7b,_0x564b14)=>_0x26ca7b&&!_0x564b14),_0x16e887['on']('execute',()=>{_0x2db390['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x398110['isOpen']=!0x1,_0x2db390['editing']['view']['focus']();}),_0x1824b0['children']['add'](_0x24b3a8),_0x25be29['children']['add'](_0x16e887),_0xcfb863['role']='menu',_0xcfb863['items']['addMany']([_0x1824b0,_0x25be29]),_0x33e5e9['add'](_0xcfb863),_0x398110;}),_0x2db390['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x164aa8=this['editor'],_0x2a6e80=_0x164aa8['locale'],_0x540de6=new _0x2d3bbc(_0x2a6e80),_0x4aaecc=new _0x40eff2(_0x2a6e80);_0x540de6['buttonView']['set']({'icon':_0x1c16d7,'label':m(_0x2a6e80,'Revision\x20history')});const _0x190f2d=new _0x20a0e0(_0x2a6e80,_0x540de6),_0x202d94=new _0x58b9e9(_0x2a6e80);_0x202d94['set']({'label':m(_0x2a6e80,'Save\x20current\x20revision')}),_0x202d94['delegate']('execute')['to'](_0x540de6),_0x202d94['on']('execute',()=>{this['_showDialog']();}),_0x190f2d['children']['add'](_0x202d94),_0x4aaecc['items']['add'](_0x190f2d);const _0x5112ed=new _0x20a0e0(_0x2a6e80,_0x540de6),_0xc41b6e=new _0x58b9e9(_0x2a6e80);return _0xc41b6e['set']({'label':m(_0x2a6e80,'Open\x20revision\x20history')}),_0xc41b6e['delegate']('execute')['to'](_0x540de6),_0xc41b6e['on']('execute',()=>{_0x164aa8['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x5112ed['children']['add'](_0xc41b6e),_0x4aaecc['items']['add'](_0x5112ed),_0x540de6['panelView']['children']['add'](_0x4aaecc),_0x540de6;}['_showDialog'](){const _0x13e79b=this['editor'],_0x346dc4=_0x13e79b['locale'],_0x2379f5=_0x13e79b['plugins']['get']('Dialog'),_0x4304a2=_0x13e79b['plugins']['get']('RevisionTracker');function _0x25ed87(_0x554ad1){_0x13e79b['config']['get']('revisionHistory.requireRevisionName')&&''===_0x554ad1['revisionName']?_0x554ad1['revisionNameInputView']['errorText']=m(_0x346dc4,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x13e79b['plugins']['get'](h)['saveRevision']({'name':_0x554ad1['revisionName']}),_0x2379f5['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x25ed87(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x2379f5['show']({'id':'revisionSave','title':m(_0x346dc4,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x13e79b['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x2379f5['hide']()},{'label':m(_0x13e79b['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x4e7485){_0x4e7485['bind']('isEnabled')['to'](_0x4304a2,'isReady',_0x4304a2,'isEnabled',_0x13e79b,'isReadOnly',(_0x44087b,_0x49fed4,_0x3343ae)=>_0x44087b&&_0x49fed4&&!_0x3343ae);},'onExecute':()=>_0x25ed87(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x2a2982=this['editor'],_0x17cc73=_0x2a2982['locale'];this['_saveRevisionFormView']=new he(_0x17cc73,_0x2a2982['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class z extends _0x419e54{['changeId'];['_model'];constructor(_0x42191b,_0x373da0){super(_0x42191b),this['_model']=_0x373da0,this['changeId']=_0x373da0['id'];const _0x4bda6e=this['bindTemplate'],_0x456e85=m(_0x42191b,_0x373da0['data']['isSuggestion']?'Suggested\x20by':'add'==_0x373da0['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x373da0['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x4bda6e['to']('type',_0x36d6a1=>'ck-revision-change__'+_0x36d6a1)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x456e85}]},{'text':'\x20'+_0x373da0['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class G extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x3095a9(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x4aa141){super(),this['id']=_0x4aa141['id']||_0x4c4fba(),this['author']=_0x4aa141['author'],this['type']=_0x4aa141['type'],this['data']=_0x4aa141['data']||{},this['rootName']=_0x4aa141['rootName'],this['set']('createdAt',_0x4aa141['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(_0x2b654d,_0x3774cb){this['newRevisionId']=_0x2b654d,this['oldRevisionId']=_0x3774cb,this['changes']=new _0x26acd1();}['_setChanges'](_0x46982e){for(const _0x305346 of _0x46982e)this['changes']['add'](_0x305346);}}class u extends _0x57da8b{['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[_0x33ad79,_0xa8381f,S,$];}constructor(_0x3f43b6){super(_0x3f43b6),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',(_0x552625,_0x55e4ee,_0x5a3df5)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x3c4ee8=>{for(const _0x29282c of this['editor']['editing']['view']['document']['roots'])_0x5a3df5?_0x3c4ee8['removeClass']('ck-editor__editable__overlay',_0x29282c):_0x3c4ee8['addClass']('ck-editor__editable__overlay',_0x29282c);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x2d7fdc=>null!==_0x2d7fdc),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x301433,_0x415ae1,_0x543228)=>_0x301433&&_0x543228?_0x415ae1['changes']['getIndex'](_0x543228):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0xb5b07d,_0x326867)=>_0xb5b07d?_0x326867['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0xa8381f);}['init'](){const _0x372ab0=this['editor'],_0x3aaadc=new ot(_0x372ab0,{'direction':'backward'}),_0x13c9bc=new ot(_0x372ab0,{'direction':'forward'});(_0x372ab0['commands']['add']('showPreviousChange',_0x3aaadc),_0x372ab0['commands']['add']('showNextChange',_0x13c9bc),_0x372ab0['commands']['add']('restoreRevision',new nt(_0x372ab0)),this['on']('change:numberOfChanges',()=>{_0x3aaadc['refresh'](),_0x13c9bc['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x372ab0['enableReadOnlyMode']('revision-viewer'),_0x372ab0['plugins']['has']('WidgetToolbarRepository'))&&_0x372ab0['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x1febb0){return await this['_utils']['loadRevisionData'](_0x1febb0,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x1febb0);}async['getRevisionRootsAttributes'](_0x43f282){return await this['_utils']['loadRevisionData'](_0x43f282,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x43f282);}async['compare'](_0x69a100,_0x414994,_0x4aec5d=!0x1){if(!this['isEnabled'])return;const _0xefc39c=this['diff'],_0xada157=this['repository'],_0x44df5c='string'==typeof _0x69a100?_0xada157['getRevision'](_0x69a100):_0x69a100,_0x543def='string'==typeof _0x414994?_0xada157['getRevision'](_0x414994):_0x414994,_0x2e11d0=_0x44df5c['id'],_0x433d5d=_0x543def?_0x543def['id']:null;if(!_0x4aec5d&&this['diff']&&this['diff']['newRevisionId']===_0x2e11d0&&this['diff']['oldRevisionId']===_0x433d5d)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x2e11d0,_0x433d5d);const _0x484269=this['_getRevisionsRange'](_0x44df5c,_0x543def,!0x0)['map'](_0x3b1398=>this['_utils']['loadRevisionData'](_0x3b1398,this['adapter']));return _0x484269['push'](new Promise(_0xfe150b=>{setTimeout(_0xfe150b,0x14);})),Promise['all'](_0x484269)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x11f371=this['_getDiff'](_0x2e11d0,_0x433d5d);for(const _0xd2d459 of _0x11f371['changes'])this['_changeIdToChange']['set'](_0xd2d459['id'],_0xd2d459);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x1737dc=>{for(const _0x9841aa of this['editor']['model']['document']['getRootNames']())_0x1737dc['detachRoot'](_0x9841aa);for(const _0x370ae8 of Object['keys'](_0x11f371['model'])){const _0x39f61d=_0x1737dc['addRoot'](_0x370ae8);for(const _0x51fa19 of Object['keys'](_0x11f371['attributes'][_0x370ae8]))_0x1737dc['setAttribute'](_0x51fa19,_0x11f371['attributes'][_0x370ae8][_0x51fa19],_0x39f61d);_0x1737dc['insert'](_0x11f371['model'][_0x370ae8],_0x39f61d,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x11f371['changes'])),this['isReady']=!0x0;})['catch'](_0x16b887=>{console['error'](_0x16b887),this['_cleanUp'](),_0xefc39c&&(this['diff']=_0xefc39c),this['isReady']=!0x0;});}['addRevisionData'](_0x3d2d64,_0x408de0){const _0x9ec842=this['repository']['createRevision'](_0x3d2d64);return _0x9ec842['on']('_update',(_0x9762b8,_0x5bbeb7,_0xe03b12)=>_0x408de0(_0x5bbeb7,_0xe03b12,_0x9ec842)),this['repository']['addRevision'](_0x9ec842),_0x9ec842;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x5f3302=>{for(const _0x5eba8d of this['editor']['model']['document']['getRootNames']())_0x5f3302['detachRoot'](_0x5eba8d);});}['_sortAndFilterDiffChanges'](_0x31272f){const _0x738bb=[],_0x599937=new Map();for(const _0x46107d of this['editor']['model']['document']['getRootNames']()){const _0x1e63d3=this['editor']['editing']['view']['getDomRoot'](_0x46107d);if(!_0x1e63d3)continue;const _0x569c04=_0x1e63d3['getClientRects']()['item'](0x0);_0x569c04&&(_0x738bb['push'](_0x46107d),_0x599937['set'](_0x46107d,_0x569c04));}return _0x738bb['sort']((_0x4ec470,_0x16e9fc)=>{const _0x499ba0=_0x599937['get'](_0x4ec470),_0x2432a3=_0x599937['get'](_0x16e9fc);return _0x499ba0['y']-_0x2432a3['y']||_0x499ba0['x']-_0x2432a3['x'];}),(_0x31272f=_0x31272f['filter'](_0x53cee7=>_0x738bb['includes'](_0x53cee7['rootName'])))['sort']((_0x205ac7,_0x514dfb)=>_0x738bb['indexOf'](_0x205ac7['rootName'])-_0x738bb['indexOf'](_0x514dfb['rootName'])),_0x31272f;}['_makeTape'](_0x4ed85f){const _0x498646=Array['from'](_0x4ed85f['markers'])['filter'](([_0xeba27c,_0x33971b])=>_0xeba27c['startsWith']('revision:')&&!_0x33971b['isCollapsed']),_0x2f85ec=Array['from'](this['editor']['model']['createRangeIn'](_0x4ed85f)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x498646['length'])for(const _0x4f8ec1 of _0x2f85ec){const [_0xeebd07,_0x3129c0]=_0x498646[0x0],[,_0x2525a1,_0x18abae]=_0xeebd07['split'](':');if(_0x3129c0['end']['isEqual'](_0x4f8ec1['nextPosition'])&&_0x498646['shift'](),(_0x4f8ec1['previousPosition']['isEqual'](_0x3129c0['start'])||_0x4f8ec1['previousPosition']['isAfter'](_0x3129c0['start']))&&('insertion'==_0x2525a1?_0x4f8ec1['isAdded']={'userId':_0x18abae}:'deletion'==_0x2525a1&&(_0x4f8ec1['isRemoved']={'userId':_0x18abae})),0x0==_0x498646['length'])break;}return _0x2f85ec;}['_refreshStartEndIndex'](_0x565966){const _0xc6006f=new Map();for(let _0x1ed58b=0x0;_0x1ed58b<_0x565966['length'];_0x1ed58b++)'text'===_0x565966[_0x1ed58b]['type']?(_0x565966[_0x1ed58b]['item']['startIndex']=_0x1ed58b,_0x565966[_0x1ed58b]['item']['endIndex']=_0x1ed58b):('elementStart'===_0x565966[_0x1ed58b]['type']?_0x565966[_0x1ed58b]['item']['startIndex']=_0x1ed58b:'elementEnd'===_0x565966[_0x1ed58b]['type']&&(_0x565966[_0x1ed58b]['item']['endIndex']=_0x1ed58b),_0xc6006f['set'](_0x565966[_0x1ed58b]['id'],_0x1ed58b));for(const _0xc0d6a9 of _0xc6006f['values']())'elementStart'===_0x565966[_0xc0d6a9]['type']?_0x565966[_0xc0d6a9]['item']['endIndex']=_0xc6006f['get'](_0x565966[_0xc0d6a9]['pairId']):'elementEnd'===_0x565966[_0xc0d6a9]['type']&&(_0x565966[_0xc0d6a9]['item']['startIndex']=_0xc6006f['get'](_0x565966[_0xc0d6a9]['pairId']));}['_processTape'](_0x368953){for(let _0x1d7e7d=0x0;_0x1d7e7d<_0x368953['length'];_0x1d7e7d++){if('elementStart'===_0x368953[_0x1d7e7d]['type'])_0x368953[_0x1d7e7d]['item']['startIndex']=_0x1d7e7d;else{if('elementEnd'===_0x368953[_0x1d7e7d]['type']){_0x368953[_0x1d7e7d]['item']['endIndex']=_0x1d7e7d;const _0x15b812=_0x368953[_0x1d7e7d]['item']['startIndex'];_0x368953[_0x15b812]['pairId']=_0x368953[_0x1d7e7d]['id'],_0x368953[_0x1d7e7d]['pairId']=_0x368953[_0x15b812]['id'];}else _0x368953[_0x1d7e7d]['item']['startIndex']=_0x1d7e7d,_0x368953[_0x1d7e7d]['item']['endIndex']=_0x1d7e7d,_0x368953[_0x1d7e7d]['pairId']=null;}_0x368953[_0x1d7e7d]['markersStart']||(_0x368953[_0x1d7e7d]['markersStart']=[],_0x368953[_0x1d7e7d]['markersEnd']=[]);}}['_markInsertions'](_0x15f4b0,_0x44246b){const _0x45e7ef=_0x15f4b0['filter'](_0x4f9cef=>!_0x4f9cef['isAdded']);for(let _0x4caf3b=0x0;_0x4caf3b<_0x44246b['length'];_0x4caf3b++)_0x44246b[_0x4caf3b]['isAdded']&&(_0x45e7ef[_0x4caf3b]['isAdded']=_0x44246b[_0x4caf3b]['isAdded']);}['_getDiff'](_0x3e7659,_0x275ce9=null){const _0x2ff0e4=this['repository']['getRevision'](_0x3e7659),_0x4da5c8=_0x275ce9?this['repository']['getRevision'](_0x275ce9):null,_0xae4c5a=this['_getRevisionsRange'](_0x2ff0e4,_0x4da5c8),_0x1fd45b=_0xae4c5a[_0xae4c5a['length']-0x1],_0x5ef64a=new Map(),_0x24cb3c={'model':{},'attributes':{},'changes':[]},_0x553e8f=new Set(),_0x924cf1=new Map();for(let _0x5ee626=_0xae4c5a['length']-0x1;_0x5ee626>=0x0;_0x5ee626--){const _0x393437=_0xae4c5a[_0x5ee626];for(const _0x5a0821 of Object['keys'](_0x393437['diffData']))if(_0x393437['diffData'][_0x5a0821]['attachChange']){const _0x1f7eac=_0x393437['diffData'][_0x5a0821]['attachChange'];_0x1f7eac['isAttached']?(_0x553e8f['add'](_0x5a0821),_0x924cf1['has'](_0x5a0821)&&_0x924cf1['get'](_0x5a0821)['userId']==_0x1f7eac['userId']?_0x924cf1['delete'](_0x5a0821):_0x924cf1['set'](_0x5a0821,_0x1f7eac)):_0x924cf1['has'](_0x5a0821)?(_0x553e8f['delete'](_0x5a0821),_0x924cf1['delete'](_0x5a0821)):(_0x553e8f['add'](_0x5a0821),_0x924cf1['set'](_0x5a0821,_0x1f7eac));}else _0x553e8f['add'](_0x5a0821);}for(const _0x1f3d10 of _0x553e8f){const _0x2fd5d1=_0x924cf1['has'](_0x1f3d10)&&!_0x924cf1['get'](_0x1f3d10)['isAttached'];let _0x19078c=_0x2fd5d1?_0xae4c5a['length']-0x1:0x0;const _0x347867=_0x2fd5d1?-0x1:0x1;for(;_0xae4c5a[_0x19078c];){const _0x41770b=_0xae4c5a[_0x19078c];if(_0x41770b['diffData'][_0x1f3d10]){const _0x2a2f80=_0x2fd5d1?_0x41770b['diffData'][_0x1f3d10]['attributesBefore']:_0x41770b['diffData'][_0x1f3d10]['attributesAfter'];_0x24cb3c['attributes'][_0x1f3d10]=_0x2a2f80?_0x1e1e73(_0x2a2f80):{};break;}_0x19078c+=_0x347867;}}for(const _0x1256b4 of _0xae4c5a){_0x1256b4['model']={};for(const _0x1710d3 of _0x1256b4['authors'])_0x5ef64a['set'](_0x1710d3['id'],_0x1710d3);for(const _0x55ac8c of _0x553e8f){const _0x1a599f=_0x1256b4['diffData'][_0x55ac8c]?_0x1256b4['diffData'][_0x55ac8c]['insertions']:'[]',_0x520df1=_0x1256b4['diffData'][_0x55ac8c]?_0x1256b4['diffData'][_0x55ac8c]['deletions']:'[]';_0x1256b4['model'][_0x55ac8c]={'insertions':this['_utils']['_makeModelFromViewString'](_0x1a599f),'deletions':this['_utils']['_makeModelFromViewString'](_0x520df1)};}}for(const _0x118156 of _0x553e8f){let _0x36b0ee=null,_0xebeebe=0x0;const _0x34cfc6=new Map(Array['from'](_0x2ff0e4['model'][_0x118156]['insertions']['markers'])['filter'](([_0x3306f3])=>!_0x3306f3['startsWith']('revision:')));let _0x35864c=0x0;for(const _0x4aa08d of _0xae4c5a){const _0x9ed949=this['_makeTape'](_0x4aa08d['model'][_0x118156]['insertions']);_0x4aa08d==_0x2ff0e4?(_0x36b0ee=_0x9ed949,_0xebeebe=_0x36b0ee['length'],_0x36b0ee['forEach'](_0x2222f9=>{_0x2222f9['id']=_0x35864c++;}),this['_processTape'](_0x36b0ee)):this['_markInsertions'](_0x36b0ee,_0x9ed949);const _0x4f0498=_0x36b0ee['filter'](_0x2ecd0f=>!_0x2ecd0f['isAdded'])['map'](_0xda1054=>_0xda1054['id']);let _0x242bf3=0x0;const _0x14c415=this['_makeTape'](_0x4aa08d['model'][_0x118156]['deletions']);_0x14c415['forEach'](_0x1200f2=>{_0x1200f2['isRemoved']?_0x1200f2['id']=_0xebeebe++:_0x1200f2['id']=_0x4f0498[_0x242bf3++];}),this['_processTape'](_0x14c415),this['_setDistance'](_0x36b0ee,'isAdded'),this['_setDistance'](_0x14c415,'isRemoved'),_0x4aa08d==_0x2ff0e4&&this['_markMarkers'](_0x36b0ee,_0x34cfc6),_0x36b0ee=this['_joinTapes'](_0x36b0ee,_0x14c415),this['_refreshStartEndIndex'](_0x36b0ee),this['_setDistance'](_0x36b0ee,'isRemoved');}_0x36b0ee=_0x36b0ee['filter'](_0x1f8564=>!(_0x1f8564['isAdded']&&_0x1f8564['isRemoved']));const _0x3c8655=new Map(_0x1fd45b['model'][_0x118156]['deletions']['markers']),_0x341a3f=new Set(_0x34cfc6['keys']());for(const _0x9c2004 of _0x3c8655['keys']())_0x341a3f['delete'](_0x9c2004);this['_markSuggestions'](_0x36b0ee,_0x341a3f),this['_fixObsoleteTags'](_0x36b0ee),_0x36b0ee=this['_removeMissingPairs'](_0x36b0ee),_0x36b0ee=this['_markMismatchedRemovedTags'](_0x36b0ee),_0x36b0ee=this['_removeUnsupportedChanges'](_0x36b0ee);const {root:_0x28a1d2,changes:_0x5f83e}=this['_makeModelFromTape'](_0x36b0ee,_0x5ef64a,_0x118156);_0x24cb3c['model'][_0x118156]=_0x28a1d2;const _0x2e5f5d=_0x924cf1['get'](_0x118156);if(_0x2e5f5d){const _0x52de30=_0x5ef64a['get'](_0x2e5f5d['userId']),_0x9c6a32=new G({'author':_0x52de30,'type':_0x2e5f5d['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x118156});_0x5f83e['unshift'](_0x9c6a32),_0x24cb3c['attributes'][_0x118156]['revisionHistoryAttachChange']=_0x9c6a32['id'];}_0x24cb3c['changes']=_0x24cb3c['changes']['concat'](_0x5f83e);}return _0x24cb3c;}['_markMarkers'](_0x4753de,_0x175a9d){for(let _0x43fe63=0x0;_0x43fe63<_0x4753de['length'];_0x43fe63++)for(const [_0x39c837,_0x52a5d6]of _0x175a9d)!_0x52a5d6['isCollapsed']&&_0x52a5d6['start']['isEqual'](_0x4753de[_0x43fe63]['previousPosition'])&&_0x4753de[_0x43fe63]['markersStart']['push'](_0x39c837),_0x52a5d6['end']['isEqual'](_0x4753de[_0x43fe63]['nextPosition'])&&_0x4753de[_0x43fe63]['markersEnd']['push'](_0x39c837);}['_joinTapes'](_0x9f75ac,_0x58a56a){let _0x592120=[],_0x495336=0x0,_0x39f19c=0x0;for(;_0x495336<_0x9f75ac['length']||_0x39f19c<_0x58a56a['length'];){const _0xab3931=_0x9f75ac[_0x495336]||{},_0x2d11da=_0x58a56a[_0x39f19c]||{};if(_0xab3931['id']==_0x2d11da['id'])_0x495336++,_0x39f19c++,_0x592120['push'](_0xab3931);else{if(_0x2d11da['isRemoved']&&_0xab3931['isAdded']){const {commonTape:_0x56502d,iEnd:_0x47e5b6,jEnd:_0x1af196}=this['_threeWayMerge'](_0x9f75ac,_0x495336,_0x58a56a,_0x39f19c);_0x592120=_0x592120['concat'](_0x56502d),_0x495336=_0x47e5b6,_0x39f19c=_0x1af196;}else _0x2d11da['isRemoved']?(_0x39f19c++,_0x592120['push'](_0x2d11da)):(_0x495336++,_0x592120['push'](_0xab3931));}}return _0x592120;}['_markSuggestions'](_0x5a9973,_0x40a85d){const _0x16e3c4=[];for(let _0xbbd6bf=0x0;_0xbbd6bf<_0x5a9973['length'];_0xbbd6bf++){for(let _0x37aac9=0x0;_0x37aac9<_0x5a9973[_0xbbd6bf]['markersStart']['length'];_0x37aac9++){const _0x4d94da=_0x5a9973[_0xbbd6bf]['markersStart'][_0x37aac9];if(!_0x40a85d['has'](_0x4d94da))continue;const {group:_0x280965,type:_0x4f184a,authorId:_0x3ae6f9}=_0x5fdf4f(_0x4d94da);'revision-suggestion'!=_0x280965||'insertion'!=_0x4f184a&&'deletion'!=_0x4f184a||(_0x16e3c4['unshift']({'type':_0x4f184a,'name':_0x4d94da,'userId':_0x3ae6f9}),_0x5a9973[_0xbbd6bf]['markersStart']['splice'](_0x37aac9,0x1),_0x37aac9--);}_0x58e2f2(_0x5a9973[_0xbbd6bf]);for(let _0x4a75fd=0x0;_0x4a75fd<_0x5a9973[_0xbbd6bf]['markersEnd']['length'];_0x4a75fd++){const _0x5f262f=_0x5a9973[_0xbbd6bf]['markersEnd'][_0x4a75fd];if(!_0x40a85d['has'](_0x5f262f))continue;const {group:_0x45ac8f,type:_0x1ae4fb}=_0x5fdf4f(_0x5f262f);if('revision-suggestion'!=_0x45ac8f||'insertion'!=_0x1ae4fb&&'deletion'!=_0x1ae4fb)continue;_0x5a9973[_0xbbd6bf]['markersEnd']['splice'](_0x4a75fd,0x1),_0x4a75fd--;const _0xaa0bee=_0x16e3c4['findIndex'](_0x5af9bf=>_0x5af9bf['name']==_0x5f262f);_0xaa0bee>-0x1&&_0x16e3c4['splice'](_0xaa0bee,0x1);}}function _0x5fdf4f(_0xdd17a9){const _0x5a14fb=_0xdd17a9['split'](':');return{'group':_0x5a14fb[0x0],'type':_0x5a14fb[0x1],'subType':_0x5a14fb['length']>=0x5?_0x5a14fb[0x2]:null,'id':_0x5a14fb['length']<0x5?_0x5a14fb[0x2]:_0x5a14fb[0x3],'authorId':_0x5a14fb['length']<0x5?_0x5a14fb[0x3]:_0x5a14fb[0x4],'markerCount':0x6==_0x5a14fb['length']?_0x5a14fb[0x5]:null};}function _0x58e2f2(_0xc3d63c){for(let _0x3455d3=0x0;_0x3455d3<_0x16e3c4['length'];_0x3455d3++){if(_0xc3d63c['isAdded']&&'insertion'==_0x16e3c4[_0x3455d3]['type']&&_0xc3d63c['isAdded']['userId']==_0x16e3c4[_0x3455d3]['userId'])return _0xc3d63c['isAddSuggestion']=_0x16e3c4[_0x3455d3],void delete _0xc3d63c['isAdded'];if(!_0xc3d63c['isAdded']&&!_0xc3d63c['isRemoved']&&'deletion'==_0x16e3c4[_0x3455d3]['type'])return void(_0xc3d63c['isRemoveSuggestion']=_0x16e3c4[_0x3455d3]);}}}['_setDistance'](_0x14f8ed,_0x201c3c){let _0x2f4d1a=0x0,_0x589762=!0x1;const _0x3d1f9b=new Map();for(const _0x537123 of _0x14f8ed)_0x537123[_0x201c3c]?_0x589762&&(_0x2f4d1a++,_0x589762=!0x1):(_0x2f4d1a++,_0x589762=!0x0),_0x3d1f9b['set'](_0x537123['id'],_0x2f4d1a);for(let _0x3c5a1c=0x0;_0x3c5a1c<_0x14f8ed['length'];_0x3c5a1c++){if('isRemoved'==_0x201c3c&&_0x14f8ed[_0x3c5a1c]['isAdded']||'isAdded'==_0x201c3c&&_0x14f8ed[_0x3c5a1c]['isRemoved'])continue;if('text'==_0x14f8ed[_0x3c5a1c]['type']){_0x14f8ed[_0x3c5a1c]['distance']=0x0;continue;}const _0x139478=_0x3d1f9b['get'](_0x14f8ed[_0x3c5a1c]['pairId']),_0xabe1c3=_0x3d1f9b['get'](_0x14f8ed[_0x3c5a1c]['id']);_0x14f8ed[_0x3c5a1c]['distance']=_0x139478-_0xabe1c3;}}['_getRevisionsRange'](_0x52dc71,_0x2dd8ab,_0x172d35=!0x1){const _0x5f0681=[];let _0x2ee0bc=this['repository']['getIndex'](_0x52dc71),_0x2feac4=this['repository']['getIndex'](_0x2dd8ab);for(-0x1==_0x2feac4&&(_0x2feac4=this['repository']['_revisions']['length'],_0x172d35=!0x1);_0x2ee0bc<_0x2feac4;)_0x5f0681['push'](this['repository']['getRevision'](_0x2ee0bc)),_0x2ee0bc++;return _0x172d35&&_0x5f0681['push'](this['repository']['getRevision'](_0x2ee0bc)),_0x5f0681;}['_threeWayMerge'](_0x57f801,_0x5cd9e2,_0x15e702,_0x1e071e){const _0xffe893=this['editor']['model']['schema'];let _0x35c040=_0x5cd9e2;for(;_0x57f801[_0x35c040]&&_0x57f801[_0x35c040]['isAdded'];)_0x35c040++;let _0x208169=_0x1e071e;for(;_0x15e702[_0x208169]&&_0x15e702[_0x208169]['isRemoved'];)_0x208169++;_0x5b3875(_0x57f801,_0x5cd9e2,_0x35c040),_0x5b3875(_0x15e702,_0x1e071e,_0x208169);const _0x17a58e=_0x15e702['slice'](_0x1e071e,_0x208169)['concat'](_0x57f801['slice'](_0x5cd9e2,_0x35c040));return _0x17a58e['sort']((_0x945afa,_0x240508)=>_0x945afa['side']!=_0x240508['side']?_0x945afa['side']-_0x240508['side']:_0x945afa['level']!=_0x240508['level']?_0x945afa['level']-_0x240508['level']:_0x945afa['distance']!=_0x240508['distance']?_0x240508['distance']-_0x945afa['distance']:!!_0x945afa['isAdded']!=!!_0x240508['isAdded']?-0x1==_0x945afa['side']||0x0==_0x945afa['side']?_0x945afa['isAdded']?-0x1:0x1:_0x945afa['isAdded']?0x1:-0x1:_0x945afa['index']-_0x240508['index']),{'commonTape':_0x17a58e,'iEnd':_0x35c040,'jEnd':_0x208169};function _0x5b3875(_0x537faf,_0x324333,_0x32aa8a){let _0xc3fb79=-0x1,_0x5ae3c1=Number['POSITIVE_INFINITY'],_0x4278e2=!0x0;for(let _0xfffabb=_0x324333;_0xfffabb<_0x32aa8a;_0xfffabb++)if(_0xffe893['isInline'](_0x537faf[_0xfffabb]['item'])||(_0x4278e2=!0x1),_0x537faf[_0xfffabb]['item']['startIndex']<_0x324333&&(_0xc3fb79=_0xfffabb),_0x537faf[_0xfffabb]['item']['endIndex']>=_0x32aa8a){_0x5ae3c1=_0xfffabb;break;}_0x4278e2&&(_0xc3fb79=_0x32aa8a-0x1);for(let _0x173b77=_0x324333;_0x173b77<_0x32aa8a;_0x173b77++)_0x537faf[_0x173b77]['side']=_0x173b77<=_0xc3fb79?-0x1:_0x173b77<_0x5ae3c1?0x0:0x1,_0x537faf[_0x173b77]['index']=_0x173b77;let _0x262cba=0x0;for(let _0x468e74=_0x324333;_0x468e74<=_0xc3fb79;_0x468e74++)0x0==_0x537faf[_0x468e74]['distance']?_0x537faf[_0x468e74]['level']=_0x262cba:(_0x262cba++,_0x537faf[_0x468e74]['level']=_0x262cba,_0x262cba++);for(let _0x19012b=_0x324333;_0x19012b<_0x32aa8a;_0x19012b++)0x0==_0x537faf[_0x19012b]['side']&&(_0x537faf[_0x19012b]['level']=_0x262cba);_0x262cba=0x0;for(let _0x379fe1=_0x32aa8a-0x1;_0x379fe1>=_0x5ae3c1;_0x379fe1--)0x0==_0x537faf[_0x379fe1]['distance']?_0x537faf[_0x379fe1]['level']=_0x262cba:(_0x262cba--,_0x537faf[_0x379fe1]['level']=_0x262cba,_0x262cba--);}}['_fixObsoleteTags'](_0x47aa1e){const _0x13de43=new Map(),_0x225dc3=this['editor']['model']['schema'];for(let _0x4f9c9b=0x1;_0x4f9c9b<_0x47aa1e['length'];_0x4f9c9b++){let _0x34eebb,_0xf8d1b4,_0x1a8370;const _0x33c8a9=_0x47aa1e[_0x4f9c9b],_0xcbaf4f=_0x47aa1e[_0x4f9c9b-0x1];if('text'==_0x33c8a9['type'])continue;if(_0x33c8a9['type']!=_0xcbaf4f['type'])continue;if(!_0x225dc3['isBlock'](_0xcbaf4f['item'])||_0x225dc3['isLimit'](_0xcbaf4f['item']))continue;if(!_0x225dc3['isBlock'](_0x33c8a9['item'])||_0x225dc3['isLimit'](_0x33c8a9['item']))continue;if((_0x47aa1e[_0x4f9c9b]['isAdded']||_0x47aa1e[_0x4f9c9b]['isAddSuggestion'])&&_0x47aa1e[_0x4f9c9b-0x1]['isRemoved'])_0x34eebb=_0x47aa1e[_0x4f9c9b],_0xf8d1b4=_0x47aa1e[_0x4f9c9b-0x1],_0x1a8370=_0x4f9c9b-0x1;else{if(!_0x47aa1e[_0x4f9c9b]['isRemoved']||!_0x47aa1e[_0x4f9c9b-0x1]['isAdded']&&!_0x47aa1e[_0x4f9c9b-0x1]['isAddSuggestion'])continue;_0x34eebb=_0x47aa1e[_0x4f9c9b-0x1],_0xf8d1b4=_0x47aa1e[_0x4f9c9b],_0x1a8370=_0x4f9c9b;}const _0x4ab03e=_0x34eebb['level']==_0xf8d1b4['level'],_0x12a850=Math['abs'](_0x34eebb['level'])<Math['abs'](_0xf8d1b4['level'])&&0x0==_0xf8d1b4['distance'];(_0x4ab03e||_0x12a850)&&(_0x13de43['set'](_0xf8d1b4['id'],_0x34eebb['id']),_0x47aa1e['splice'](_0x1a8370,0x1),_0x4f9c9b--,_0x34eebb['isAdded']=!0x1);}for(let _0x3025b9=0x0;_0x3025b9<_0x47aa1e['length'];_0x3025b9++)_0x13de43['has'](_0x47aa1e[_0x3025b9]['pairId'])&&(_0x47aa1e[_0x3025b9]['pairId']=_0x13de43['get'](_0x47aa1e[_0x3025b9]['pairId']));}['_removeMissingPairs'](_0x46477c){const _0x30428a=new Set(_0x46477c['map'](_0x33722f=>_0x33722f['id']));for(let _0x2d4abb=0x0;_0x2d4abb<_0x46477c['length'];_0x2d4abb++)_0x30428a['has'](_0x46477c[_0x2d4abb]['pairId'])||0x0==_0x46477c[_0x2d4abb]['distance']||(_0x46477c[_0x2d4abb]['isIncorrect']=!0x0);return _0x46477c['filter'](_0x4e16ca=>!_0x4e16ca['isIncorrect']);}['_markMismatchedRemovedTags'](_0x39d814){const _0x5df56a=new Set();for(let _0x5bc8d7=0x0;_0x5bc8d7<_0x39d814['length'];_0x5bc8d7++){if(_0x5df56a['has'](_0x39d814[_0x5bc8d7]['id'])&&_0x39d814[_0x5bc8d7]['isRemoved']&&(_0x39d814[_0x5bc8d7]['isIncorrect']=!0x0),_0x39d814[_0x5bc8d7]['isIncorrect'])continue;if(0x0==_0x39d814[_0x5bc8d7]['distance'])continue;if('elementStart'!=_0x39d814[_0x5bc8d7]['type'])continue;if(null==_0x39d814[_0x5bc8d7]['pairId'])continue;let _0x1197b6=_0x5bc8d7+0x1,_0x3b406b=0x0;for(;_0x39d814[_0x1197b6]['id']!=_0x39d814[_0x5bc8d7]['pairId'];)'elementStart'==_0x39d814[_0x1197b6]['type']?_0x3b406b++:'elementEnd'==_0x39d814[_0x1197b6]['type']&&_0x3b406b--,_0x1197b6++;if(0x0!=_0x3b406b){if(_0x39d814[_0x5bc8d7]['isRemoved'])_0x39d814[_0x5bc8d7]['isIncorrect']=!0x0;else{for(;_0x1197b6!=_0x5bc8d7;)_0x39d814[_0x1197b6]['isRemoved']&&0x0!=_0x39d814[_0x1197b6]['distance']&&(_0x39d814[_0x1197b6]['isIncorrect']=!0x0,_0x5df56a['add'](_0x39d814[_0x1197b6]['pairId'])),_0x1197b6--;}}}return _0x39d814['filter'](_0x3fd4f8=>!_0x3fd4f8['isIncorrect']);}['_removeUnsupportedChanges'](_0x1d3e14){const _0x1c1baf=this['editor']['model']['schema'];for(let _0x365555=0x0;_0x365555<_0x1d3e14['length'];_0x365555++){if(!(_0x1d3e14[_0x365555]['isAdded']||_0x1d3e14[_0x365555]['isAddSuggestion']||_0x1d3e14[_0x365555]['isRemoved']||_0x1d3e14[_0x365555]['isRemoveSuggestion']))continue;if(0x0==_0x1d3e14[_0x365555]['distance'])continue;const _0x4d3e78=_0x1d3e14[_0x365555]['item'];_0x1c1baf['isBlock'](_0x4d3e78)||_0x1c1baf['isLimit'](_0x4d3e78)||(_0x1d3e14[_0x365555]['isAdded']&&delete _0x1d3e14[_0x365555]['isAdded'],_0x1d3e14[_0x365555]['isAddSuggestion']&&delete _0x1d3e14[_0x365555]['isAddSuggestion'],_0x1d3e14[_0x365555]['isRemoveSuggestion']&&delete _0x1d3e14[_0x365555]['isRemoveSuggestion'],_0x1d3e14[_0x365555]['isRemoved']&&(_0x1d3e14[_0x365555]['isIncorrect']=!0x0));}return _0x1d3e14['filter'](_0x4f192c=>!_0x4f192c['isIncorrect']);}['_makeModelFromTape'](_0x312bed,_0x3de134,_0x540112){const _0x2498de=new _0x19df77(),_0x13a7a0=[],_0x2ccd3f=new Map(),_0x15c09e=this['editor']['model'],_0x2c361f=_0x15c09e['schema'],_0x53137f=[_0x2498de],_0x4a7744={},_0x10fe11={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x4e7fad=null;const _0x3ff235=[0x0];for(let _0x32c591=0x0;_0x32c591<_0x312bed['length'];_0x32c591++)if('elementStart'===_0x312bed[_0x32c591]['type']){_0x312bed[_0x32c591]['previousPosition']=_0x15c09e['createPositionFromPath'](_0x2498de,_0x3ff235);const _0x59a84a=new _0x439a4c(_0x312bed[_0x32c591]['item']['name'],_0x312bed[_0x32c591]['item']['getAttributes']());_0x53137f[0x0]['_appendChild'](_0x59a84a),_0x3ff235['push'](0x0),_0x53137f['unshift'](_0x59a84a),_0x312bed[_0x32c591]['nextPosition']=_0x15c09e['createPositionFromPath'](_0x2498de,_0x3ff235);}else'elementEnd'===_0x312bed[_0x32c591]['type']?(_0x53137f['shift'](),_0x312bed[_0x32c591]['previousPosition']=_0x15c09e['createPositionFromPath'](_0x2498de,_0x3ff235),_0x3ff235['pop'](),_0x3ff235[_0x3ff235['length']-0x1]++,_0x312bed[_0x32c591]['nextPosition']=_0x15c09e['createPositionFromPath'](_0x2498de,_0x3ff235)):(_0x312bed[_0x32c591]['previousPosition']=_0x15c09e['createPositionFromPath'](_0x2498de,_0x3ff235),_0x4e7fad?_0x4e7fad['_data']+=_0x312bed[_0x32c591]['item']['data']:_0x4e7fad=new _0x338a17(_0x312bed[_0x32c591]['item']['data'],_0x312bed[_0x32c591]['item']['getAttributes']()),_0x312bed[_0x32c591+0x1]&&'text'===_0x312bed[_0x32c591+0x1]['type']&&_0x4edb81(_0x4e7fad,_0x312bed[_0x32c591+0x1]['item'])||(_0x53137f[0x0]['_appendChild'](_0x4e7fad),_0x4e7fad=null),_0x3ff235[_0x3ff235['length']-0x1]+=_0x312bed[_0x32c591]['item']['offsetSize'],_0x312bed[_0x32c591]['nextPosition']=_0x15c09e['createPositionFromPath'](_0x2498de,_0x3ff235));for(let _0x3fb4ed=0x0;_0x3fb4ed<_0x312bed['length'];_0x3fb4ed++){const _0x5ca62e=_0x312bed[_0x3fb4ed]['previousPosition'],_0x4b6173=_0x312bed[_0x3fb4ed]['nextPosition'];for(const _0x4f4261 of _0x312bed[_0x3fb4ed]['markersStart'])_0x2ccd3f['set'](_0x4f4261,{'start':_0x5ca62e,'end':null});_0x580a46('isRemoveSuggestion',_0x3fb4ed,_0x5ca62e,_0x4b6173),_0x580a46('isAddSuggestion',_0x3fb4ed,_0x5ca62e,_0x4b6173),_0x580a46('isRemoved',_0x3fb4ed,_0x5ca62e,_0x4b6173),_0x580a46('isAdded',_0x3fb4ed,_0x5ca62e,_0x4b6173);for(const _0x4ed57f of _0x312bed[_0x3fb4ed]['markersEnd']){const _0x4d6d00=_0x2ccd3f['get'](_0x4ed57f);_0x4d6d00?_0x4d6d00['end']=_0x4b6173:_0x2ccd3f['set'](_0x4ed57f,{'start':_0x4b6173,'end':_0x4b6173});}}for(const [_0x3eedf6,_0x5d3049]of _0x2ccd3f){const _0x3e6170=this['editor']['model']['createRange'](_0x5d3049['start'],_0x5d3049['end']);_0x2498de['markers']['set'](_0x3eedf6,_0x3e6170);}return _0x13a7a0['sort']((_0x5db6c2,_0x5ddca0)=>{const _0x3b6a2d=_0x2498de['markers']['get']('revision:'+_0x5db6c2['id']),_0x51649a=_0x2498de['markers']['get']('revision:'+_0x5ddca0['id']);return _0x3b6a2d['start']['isBefore'](_0x51649a['start'])?-0x1:_0x3b6a2d['start']['isAfter'](_0x51649a['start'])?0x1:_0x3b6a2d['end']['isBefore'](_0x51649a['end'])?-0x1:_0x3b6a2d['end']['isAfter'](_0x51649a['end'])?0x1:'add'===_0x5db6c2['type']?-0x1:0x1;}),{'root':_0x2498de,'changes':_0x13a7a0};function _0x580a46(_0x21f4a5,_0x236144,_0x351c0d,_0x220339){const _0xcb0997=!!_0x312bed[_0x236144][_0x21f4a5],_0x2b12d4=_0xcb0997?_0x312bed[_0x236144][_0x21f4a5]['userId']:null,_0x24dd56=_0x236144===_0x312bed['length']-0x1,_0x25c64a=_0x10fe11[_0x21f4a5][0x0],_0x1b451e=_0x2c361f['isObject'](_0x312bed[_0x236144]['item']);!_0x4a7744[_0x21f4a5]&&_0xcb0997?_0x4a7744[_0x21f4a5]={'start':_0x351c0d,'tapeItem':_0x312bed[_0x236144],'userId':_0x2b12d4,'type':_0x21f4a5}:_0x4a7744[_0x21f4a5]&&!_0xcb0997?(_0x4a7744[_0x21f4a5]['end']=_0x351c0d,_0x561a7b(_0x4a7744[_0x21f4a5]),_0x4a7744[_0x21f4a5]=null):_0x4a7744[_0x21f4a5]&&_0xcb0997&&_0x4a7744[_0x21f4a5]['userId']!==_0x2b12d4&&(_0x4a7744[_0x21f4a5]['end']=_0x351c0d,_0x25c64a&&_0x25c64a['userId']===_0x4a7744[_0x21f4a5]['userId']||_0x561a7b(_0x4a7744[_0x21f4a5]),_0x4a7744[_0x21f4a5]={'start':_0x351c0d,'tapeItem':_0x312bed[_0x236144],'userId':_0x2b12d4,'type':_0x21f4a5}),_0x4a7744[_0x21f4a5]&&_0x1b451e&&('elementStart'!==_0x312bed[_0x236144]['type']||_0x25c64a&&_0x25c64a['userId']===_0x2b12d4||_0x10fe11[_0x21f4a5]['unshift']({'userId':_0x2b12d4,'object':_0x312bed[_0x236144]['item'],'change':_0x4a7744[_0x21f4a5]}),'elementEnd'===_0x312bed[_0x236144]['type']&&_0x25c64a&&_0x25c64a['object']===_0x312bed[_0x236144]['item']&&(_0x10fe11[_0x21f4a5]['shift'](),_0x4a7744[_0x21f4a5]=_0x25c64a['change'])),_0x4a7744[_0x21f4a5]&&_0x24dd56&&(_0x4a7744[_0x21f4a5]['end']=_0x220339,_0x561a7b(_0x4a7744[_0x21f4a5]),_0x4a7744[_0x21f4a5]=null);}function _0x561a7b({start:_0x21d5fa,end:_0x198187,tapeItem:_0x3fc0aa,userId:_0x2f6ca5,type:_0x5dbd40}){const _0x4ddfb2=_0x3fc0aa['item'],_0x4ffeff=_0x15c09e['schema']['isBlock'](_0x4ddfb2)&&!_0x15c09e['schema']['isLimit'](_0x4ddfb2),_0x580582=_0x21d5fa['nodeAfter']==_0x198187['parent']&&_0x198187['isAtStart'];if(_0x4ffeff&&_0x580582)return;const _0x5cbd51=_0x15c09e['createRange'](_0x21d5fa,_0x198187),_0x25527f=_0x3de134['get'](_0x2f6ca5),_0x52e8b0=new G({'author':_0x25527f,'type':'isAdded'==_0x5dbd40||'isAddSuggestion'==_0x5dbd40?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x5dbd40||'isRemoveSuggestion'==_0x5dbd40},'createdAt':new Date(),'rootName':_0x540112});_0x13a7a0['push'](_0x52e8b0),_0x2498de['markers']['set']('revision:'+_0x52e8b0['id'],_0x5cbd51);}function _0x4edb81(_0x2f58ad,_0x382fc7){const _0x15d29d=_0x2f58ad['getAttributes'](),_0x310090=_0x382fc7['getAttributes']();for(const _0x58d804 of _0x15d29d){if(_0x58d804[0x1]!==_0x382fc7['getAttribute'](_0x58d804[0x0]))return!0x1;_0x310090['next']();}return _0x310090['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x45e567=>{const _0x4ae1f7=_0x45e567['markerName']['split'](':')[0x1],_0x1d5fd2=this['_getChangeFromId'](_0x4ae1f7);if(!_0x1d5fd2)return null;const _0x170c5f='add'==_0x1d5fd2['type']?'insertion':'deletion',_0xdc4f2e=['ck-suggestion-marker','ck-suggestion-marker-'+_0x170c5f];return _0x1d5fd2['data']['isSuggestion']&&_0xdc4f2e['push']('ck-suggestion-marker-'+_0x170c5f+'-new'),this['activeChange']==_0x1d5fd2&&_0xdc4f2e['push']('ck-suggestion-marker--active'),{'classes':_0xdc4f2e,'attributes':{'data-change-id':_0x4ae1f7}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x428c65=>{_0x428c65['on']('element:pre',(_0x343f3a,_0x20dfb8,_0x2d4e7d)=>{const _0x7330fb=_0x20dfb8['viewItem']['getChild'](0x0);if(!_0x7330fb||!_0x7330fb['is']('element','code'))return;if(!_0x2d4e7d['consumable']['consume'](_0x7330fb,{'attributes':['vid_start','vid_end']}))return;const _0x36cef3=_0x20dfb8['modelRange']['start']['nodeAfter'];_0x2d4e7d['writer']['setAttribute']('vid_start',_0x7330fb['getAttribute']('vid_start'),_0x36cef3),_0x2d4e7d['writer']['setAttribute']('vid_end',_0x7330fb['getAttribute']('vid_end'),_0x36cef3);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x374361=>{_0x374361['on']('element',(_0x22121b,_0x2e2c0a,_0x163093)=>{if(!_0x163093['consumable']['consume'](_0x2e2c0a['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x2e2c0a['modelRange']['isCollapsed'])return;const _0x2fd355=_0x2e2c0a['modelRange']['start']['nodeAfter'];_0x2fd355['hasAttribute']('vid_start')||_0x2fd355['hasAttribute']('vid')||(_0x163093['writer']['setAttribute']('vid_start',_0x2e2c0a['viewItem']['getAttribute']('vid_start'),_0x2fd355),_0x163093['writer']['setAttribute']('vid_end',_0x2e2c0a['viewItem']['getAttribute']('vid_end'),_0x2fd355));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x2952d6=>_0x2952d6['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x1356fd,[,_0x4c037b])=>{['vid_start','vid_end','vid']['includes'](_0x4c037b)&&(_0x1356fd['return']=!0x0,_0x1356fd['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x3e1c06=>{_0x3e1c06['on']('attribute:vid',(_0x3ea40e,_0x26f8e7,_0x21f675)=>{if('\x20'!=_0x26f8e7['item']['data']||_0x26f8e7['item']['parent']['maxOffset']>0x1)return;if(!_0x21f675['consumable']['consume'](_0x26f8e7['item'],_0x3ea40e['name']))return;const _0x8412=_0x21f675['writer'],_0x2e3056=_0x21f675['mapper']['toViewRange'](_0x26f8e7['range']);_0x8412['wrap'](_0x2e3056,_0x8412['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0xea825f){const _0x17f3b3=_0xea825f['plugins']['get']('RevisionViewer');return(_0x4455a9,_0x1c7516,_0x2fc45e)=>{const _0x1513f3=_0x1c7516['markerName']['split'](':')[0x1],_0x18ceb6=_0x17f3b3['_getChangeFromId'](_0x1513f3);if(!_0x18ceb6)return null;const _0x18243a='add'==_0x18ceb6['type']?'split':'merge';if(!_0x2fc45e['consumable']['test'](_0x1c7516['markerRange'],_0x4455a9['name']))return;const _0x27f979=_0x1c7516['markerRange']['getWalker'](),_0x21eed5=_0x1c7516['markerRange']['start'],_0x164714=_0xea825f['model']['schema'];let _0x116571=null,_0x3d8683=null,_0x25cfe=!0x1,_0x7c4dad=!0x1;for(const _0x369919 of _0x27f979){const _0x43d6c9=_0x369919['item'];_0x25cfe=_0x25cfe||_0x164714['isContent'](_0x43d6c9);const _0x313f26=_0x2fc45e['mapper']['toViewElement'](_0x43d6c9);if(_0x313f26&&_0x313f26['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x369919['type']&&(_0x164714['isBlock'](_0x43d6c9)&&!_0x164714['isLimit'](_0x43d6c9)&&(_0x43d6c9['nextSibling']||_0x21eed5['isAtEnd']?_0x116571&&_0x116571['parent']==_0x43d6c9||(_0x116571=_0x43d6c9,_0xde635(_0x369919['previousPosition']),_0x7c4dad=!0x0):_0x3d8683=_0x3d8683||_0x369919['previousPosition']));}function _0xde635(_0x591bcf){const _0x50a73d=_0x2fc45e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x18243a}),_0xaf3374=_0x2fc45e['mapper']['toViewPosition'](_0x591bcf);_0x18ceb6['data']['isSuggestion']&&_0x2fc45e['writer']['addClass']('ck-suggestion-marker-'+_0x18243a+'-new',_0x50a73d),_0x17f3b3['activeChange']==_0x18ceb6&&_0x2fc45e['writer']['addClass']('ck-suggestion-marker--active',_0x50a73d),_0x2fc45e['writer']['insert'](_0xaf3374,_0x50a73d),_0x2fc45e['mapper']['bindElementToMarker'](_0x50a73d,_0x1c7516['markerName']);}_0x25cfe||_0x7c4dad||!_0x3d8683||_0xde635(_0x3d8683);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x284586,_0x205c1d,_0x4192e3)=>{const _0x258500=_0x4192e3['mapper']['markerNameToElements'](_0x205c1d['markerName']);if(_0x258500){for(const _0x41cb52 of _0x258500)(_0x41cb52['hasClass']('ck-suggestion-marker-split')||_0x41cb52['hasClass']('ck-suggestion-marker-merge'))&&(_0x4192e3['mapper']['unbindElementFromMarkerName'](_0x41cb52,_0x205c1d['markerName']),_0x4192e3['writer']['remove'](_0x41cb52));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x43329d,_0x581dfe,_0x408729)=>{const _0x55d65f=_0x581dfe['markerName']['split'](':')[0x1],_0x47ea8c=this['_getChangeFromId'](_0x55d65f);if(!_0x47ea8c)return null;const _0x5f8c15='add'==_0x47ea8c['type']?'split':'merge';if(_0x408729['consumable']['test'](_0x581dfe['markerRange'],_0x43329d['name']))for(const _0x36abcb of _0x581dfe['markerRange']['getItems']()){if(!_0x36abcb['is']('element','softBreak'))continue;const _0x4447eb=_0x408729['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5f8c15}),_0x55b073=_0x408729['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x36abcb));_0x47ea8c['data']['isSuggestion']&&_0x408729['writer']['addClass']('ck-suggestion-marker-'+_0x5f8c15+'-new',_0x4447eb),this['activeChange']==_0x47ea8c&&_0x408729['writer']['addClass']('ck-suggestion-marker--active',_0x4447eb),_0x408729['writer']['insert'](_0x55b073,_0x4447eb),_0x408729['mapper']['bindElementToMarker'](_0x4447eb,_0x581dfe['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0xbcfafc=>{for(const _0x2e4076 of this['editor']['model']['document']['getRootNames']()){const _0x1e82a3=this['editor']['model']['document']['getRoot'](_0x2e4076),_0x548cb0=this['editor']['editing']['view']['document']['getRoot'](_0x2e4076);if(_0x548cb0){const _0x44e103=_0x1e82a3['getAttribute']('revisionHistoryAttachChange');if(_0xbcfafc['removeAttribute']('data-change-id',_0x548cb0),_0xbcfafc['removeClass']('ck-revision-history-root-add',_0x548cb0),_0xbcfafc['removeClass']('ck-revision-history-root-remove',_0x548cb0),_0xbcfafc['removeClass']('ck-revision-history-root--active',_0x548cb0),_0x44e103){const _0x25e645=this['_getChangeFromId'](_0x44e103);if(!_0x25e645)return null;_0xbcfafc['setAttribute']('data-change-id',_0x44e103,_0x548cb0),_0xbcfafc['addClass']('ck-revision-history-root-'+_0x25e645['type'],_0x548cb0),this['activeChange']==_0x25e645&&_0xbcfafc['addClass']('ck-revision-history-root--active',_0x548cb0);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x3f1ebf=>'revision-comment:'+_0x3f1ebf,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x35aec6=>'revision-suggestion:'+_0x35aec6,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x463bef=>({'name':'suggestion:'+_0x463bef,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x15b512=>{const _0x5ad4b9=_0x15b512['markerName']['split'](':')[0x1];return'insertion'!=_0x5ad4b9&&'deletion'!=_0x5ad4b9?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x5ad4b9]};}}),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',(_0xea674b,_0x3a3cc4,_0x375d72)=>{const _0x548653=_0x375d72['mapper']['markerNameToElements'](_0x3a3cc4['markerName']);if(_0x548653){for(const _0x1a3bbb of _0x548653)_0x1a3bbb['is']('uiElement')&&(_0x375d72['mapper']['unbindElementFromMarkerName'](_0x1a3bbb,_0x3a3cc4['markerName']),_0x375d72['writer']['remove'](_0x1a3bbb));}},{'priority':'high'});}['_getChangeFromId'](_0x47316e){return this['_changeIdToChange']['get'](_0x47316e);}['_getViewForChange'](_0x31178d){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x31178d),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x1d725f,_0x30d4e3,_0x1e5961,_0x466a4a)=>{_0x466a4a&&this['_balloon']['remove'](_0x466a4a),_0x1e5961&&(this['_balloon']['add']({'view':_0x1e5961,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x2dece1=this['editor']['editing'],_0x44f6c1=this['_getChangeFromId'](_0x1e5961['changeId']);let _0x453645;if(_0x44f6c1['data']['isOnRoot']){const _0x13c077=_0x2dece1['view']['getDomRoot'](_0x44f6c1['rootName']);_0x453645=Array['from'](_0x13c077['getClientRects']());}else{const _0x443e3d=this['editor']['model']['markers']['get']('revision:'+_0x1e5961['changeId']);_0x453645=Array['from'](_0x2dece1['mapper']['markerNameToElements'](_0x443e3d['name']))['map'](_0x1a0461=>_0x2dece1['view']['domConverter']['mapViewToDom'](_0x1a0461))['map'](_0x3f8c15=>Array['from'](_0x3f8c15['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x453645[0x0];return _0x453645['find'](_0x597183=>_0x597183['top']-0x3<=this['_activeViewTarget']['y']&&_0x597183['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x597183['left']-0x3<=this['_activeViewTarget']['x']&&_0x597183['right']+0x3>=this['_activeViewTarget']['x'])||_0x453645[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0xe5379d,_0x7d9c65,_0x37525d,_0x46152d)=>{this['activeView']=_0x37525d?this['_getViewForChange'](_0x37525d):null,this['editor']['model']['change'](()=>{const _0x287912=this['editor']['editing'];_0x46152d&&(_0x46152d['data']['isOnRoot']?_0x287912['view']['change'](_0x396e8a=>{_0x396e8a['removeClass']('ck-revision-history-root--active',_0x287912['view']['document']['getRoot'](_0x46152d['rootName']));}):_0x287912['reconvertMarker']('revision:'+_0x46152d['id'])),_0x37525d&&(_0x37525d['data']['isOnRoot']?_0x287912['view']['change'](_0x1bc946=>{_0x1bc946['addClass']('ck-revision-history-root--active',_0x287912['view']['document']['getRoot'](_0x37525d['rootName']));}):_0x287912['reconvertMarker']('revision:'+_0x37525d['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x360f28,_0x425670)=>{if(this['activeChange'])return;const _0x1e5da8=this['_findChangeIdFromDomTarget'](_0x425670['target']),_0x28fcd8=this['_changeIdToChange']['get'](_0x1e5da8);_0x28fcd8?(this['_activeViewTarget']={'x':_0x425670['domEvent']['x'],'y':_0x425670['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x28fcd8)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x2384af,_0x314293)=>{const _0x335214=this['_findChangeIdFromDomTarget'](_0x314293['target']),_0x46ecaa=this['_changeIdToChange']['get'](_0x335214);_0x46ecaa?(this['_activeViewTarget']={'x':_0x314293['domEvent']['x'],'y':_0x314293['domEvent']['y']},_0x46ecaa===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x46ecaa):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x5a4be3){do{const _0x5a0565=_0x5a4be3['getAttribute']('data-change-id');if(_0x5a0565)return _0x5a0565;_0x5a4be3=_0x5a4be3['parent'];}while(_0x5a4be3);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0xb14163=>{for(const _0x179ef4 of this['editor']['model']['markers'])_0xb14163['removeMarker'](_0x179ef4);});}}function Q(_0x3b8610,_0x30ec9e){return(_0x26191d,_0x3aa2e2,_0x305d87)=>{if(!_0x305d87['consumable']['test'](_0x3aa2e2['markerRange'],_0x26191d['name']))return;const _0x2bd3b3=_0x3aa2e2['markerRange']['getWalker'](),_0x855d67=_0x3aa2e2['markerRange']['start'],_0x1db532=_0x3b8610['model']['schema'];let _0x41a8a0=null,_0xcf50af=null,_0x13a632=!0x1,_0x4d9033=!0x1;for(const _0x648f19 of _0x2bd3b3){const _0x2ce630=_0x648f19['item'];_0x13a632=_0x13a632||_0x1db532['isContent'](_0x2ce630);const _0x411205=_0x305d87['mapper']['toViewElement'](_0x2ce630);if(_0x411205&&_0x411205['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x648f19['type']&&(_0x1db532['isBlock'](_0x2ce630)&&!_0x1db532['isLimit'](_0x2ce630)&&(_0x2ce630['nextSibling']||_0x855d67['isAtEnd']?_0x41a8a0&&_0x41a8a0['parent']==_0x2ce630||(_0x41a8a0=_0x2ce630,_0x337d48(_0x648f19['previousPosition']),_0x4d9033=!0x0):_0xcf50af=_0xcf50af||_0x648f19['previousPosition']));}function _0x337d48(_0x1ee7ab){const _0x556a66=_0x305d87['mapper']['toViewPosition'](_0x1ee7ab),_0x339fdb=_0x305d87['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x30ec9e});_0x305d87['writer']['insert'](_0x556a66,_0x339fdb),_0x305d87['mapper']['bindElementToMarker'](_0x339fdb,_0x3aa2e2['markerName']);}_0x13a632||_0x4d9033||!_0xcf50af||_0x337d48(_0xcf50af);};}class nt extends _0x31f7bf{constructor(_0x9c130c){super(_0x9c130c);const _0x34a245=_0x9c130c['plugins']['get'](u);this['affectsData']=!0x1,this['listenTo'](_0x34a245,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x34a245,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x3214f0=this['editor'],_0x1dee9d=_0x3214f0['plugins']['get'](u),_0x19e14d=_0x1dee9d['isReady']?_0x1dee9d['diff']['newRevisionId']:null;_0x3214f0['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x19e14d);}['refresh'](){const {isReady:_0x529a4f,isEnabled:_0x4f7f2e,repository:_0x24f257,diff:_0x3142cc}=this['editor']['plugins']['get'](u),_0x4e4014=_0x3142cc&&_0x24f257['getLaterVisibleRevision'](_0x3142cc['newRevisionId']);this['isEnabled']=_0x529a4f&&_0x4f7f2e&&Boolean(_0x4e4014);}}class ot extends _0x31f7bf{['_step'];constructor(_0x1260d8,{direction:_0x9c13a4}){super(_0x1260d8);const _0x279355=_0x1260d8['plugins']['get'](u);this['affectsData']=!0x1,this['_step']='forward'===_0x9c13a4?0x1:-0x1,this['listenTo'](_0x279355,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x279355,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x279355,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x3c1830=this['editor'],_0x4e7376=_0x3c1830['plugins']['get'](u),{isNavigationMode:_0x4d766c,currentChangeNumber:_0x2d4a81}=_0x4e7376;let _0x2b7aa6;if(_0x4e7376['activeChange']=_0x4d766c?_0x4e7376['diff']['changes']['get'](_0x2d4a81+this['_step']):_0x4e7376['diff']['changes']['first'],_0x4e7376['activeChange']['data']['isOnRoot'])_0x2b7aa6=_0x3c1830['editing']['view']['getDomRoot'](_0x4e7376['activeChange']['rootName']);else{const _0x2d5e2c=_0x3c1830['model']['markers']['get']('revision:'+_0x4e7376['activeChange']['id']);_0x2b7aa6=_0x111b7f(_0x3c1830['editing'],_0x2d5e2c);}_0x410781({'target':_0x2b7aa6,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x5c475c,currentChangeNumber:_0x335a91,numberOfChanges:_0x18cd17,isReady:_0x3540c8,isEnabled:_0x54cfec}=this['editor']['plugins']['get'](u);this['isEnabled']=!!(_0x54cfec&&_0x3540c8&&_0x18cd17)&&(!_0x5c475c||(0x1===this['_step']?_0x335a91<_0x18cd17-0x1:_0x335a91>0x0));}}class Ri extends _0x419e54{constructor(_0x28ad05){super(_0x28ad05);const _0x29fe26=this['bindTemplate'],_0x153c1b=new _0x398d9f(_0x28ad05),_0x50d551=new _0x398d9f(_0x28ad05);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',(_0x943cb0,_0x58a280)=>_0x943cb0&&_0x58a280>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x20a631,_0x220fa4,_0x20e708,_0x568757)=>{if(!_0x20a631)return m(_0x28ad05,'Loading...');if(!_0x20e708)return m(_0x28ad05,'No\x20changes');const _0x17f52e=m(_0x28ad05,'NUMBER_OF_CHANGES',_0x20e708);return _0x568757?m(_0x28ad05,'X_OF_Y_CHANGES',[_0x220fa4+0x1,_0x20e708]):_0x17f52e;}),_0x153c1b['set']({'label':m(_0x28ad05,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x209596}),_0x50d551['set']({'label':m(_0x28ad05,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x1a2255}),_0x153c1b['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x50d551['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x153c1b['on']('execute',()=>this['fire']('execute','backward')),_0x50d551['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',_0x29fe26['if']('_isStatusLabelVisible','ck-hidden',_0x19a574=>!_0x19a574)]},'children':[{'text':_0x29fe26['to']('isNavigationMode',_0x295533=>_0x295533?m(_0x28ad05,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x28ad05,'Total')+':\x20')}]},{'text':_0x29fe26['to']('_statusText')}]},new _0x188889(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x153c1b,_0x50d551]}]});}}const ge='ck-editor__editable__loading-overlay';class ji extends _0x57da8b{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x56eaad=this['editor']['editing']['view'];_0x56eaad['change'](_0x130cce=>{for(const _0x3867d0 of _0x56eaad['document']['roots'])_0x130cce['addClass'](ge,_0x3867d0);});}['hide'](){const _0x374704=this['editor']['editing']['view'];_0x374704['change'](_0x18ff76=>{for(const _0xaeeea6 of _0x374704['document']['roots'])_0x18ff76['removeClass'](ge,_0xaeeea6);});}}class v extends _0x57da8b{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,ji];}['init'](){const _0x20de70=this['editor'],_0x22f8cd=_0x20de70['plugins']['get'](u),_0xe5358d=_0x20de70['plugins']['get'](ji);_0x20de70['ui']['componentFactory']['add']('exitToEditing',_0x198e9e=>{const _0x29d93d=new _0x398d9f(_0x198e9e);return _0x29d93d['set']({'label':m(_0x198e9e,'Back\x20to\x20editing'),'icon':_0x590962,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x29d93d,'execute',()=>{_0x20de70['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x29d93d;}),_0x20de70['ui']['componentFactory']['add']('restoreRevision',_0x49482d=>{const _0x14982f=new _0x398d9f(_0x49482d);return _0x14982f['set']({'label':m(_0x49482d,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x14982f['bind']('isEnabled')['to'](_0x20de70['commands']['get']('restoreRevision')),this['listenTo'](_0x14982f,'execute',()=>_0x20de70['execute']('restoreRevision')),_0x14982f;}),_0x20de70['ui']['componentFactory']['add']('changesNavigation',_0x334a36=>{const _0x11c39a=new Ri(_0x334a36),_0x3b60ce=_0x20de70['commands']['get']('showPreviousChange'),_0x38c82b=_0x20de70['commands']['get']('showNextChange');return _0x11c39a['bind']('isBackwardNavigationEnabled')['to'](_0x3b60ce,'isEnabled'),_0x11c39a['bind']('isForwardNavigationEnabled')['to'](_0x38c82b,'isEnabled'),_0x11c39a['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x22f8cd),this['listenTo'](_0x11c39a,'execute',(_0x3d3c0c,_0x3f7e0c)=>{_0x20de70['execute']('forward'===_0x3f7e0c?'showNextChange':'showPreviousChange');}),_0x11c39a;}),_0xe5358d['show'](),_0x22f8cd['on']('change:isReady',(_0x90e009,_0x1f216f,_0x4f87aa)=>{_0x4f87aa?_0xe5358d['hide']():_0xe5358d['show']();});}}class li extends ti{['_resizeObserver']=null;constructor(_0x272c2c,_0x59431d){super(_0x272c2c,_0x59431d);const _0x1311a5=this['bindTemplate'];this['set']({'label':m(_0x272c2c,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x272c2c,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x1311a5['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 _0x59cf79=this['fieldView']['element'];this['_tooltipString']=_0x59cf79['scrollWidth']>_0x59cf79['clientWidth']&&_0x59cf79['value']||'';}}class vi extends _0x419e54{constructor(_0x17e2c7,_0x95cace,_0x4335cf){super(_0x17e2c7);const _0x51c134=new _0x3fa78e();_0x51c134['set']({'content':_0x4dc3ab,'viewBox':'0\x200\x2011\x2010'});const _0x1762c5=['ck','ck-revision-history-sidebar__revision-author'];_0x4335cf&&_0x1762c5['push']('ck-revision-history-sidebar__revision-author_creator');const _0x2ffd21=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x17e2c7,_0x4335cf?'Revision\x20creator':'Revision\x20author')},'children':[_0x51c134,_0x95cace['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x1762c5},'children':_0x2ffd21});}}function mi(_0x13a6bd,_0x578f63){const _0x449f40=_0x13a6bd['bindTemplate'],_0x5b5c9a=_0x13a6bd['locale'],_0x354658=_0x40d317(_0x5b5c9a);_0x354658['panelPosition']='sw';const _0x493b8c=function(_0x284c86,_0x854d76){const _0x1c4598=function(_0x18000b,_0x2a1f8f){const _0x188e00=_0x18000b['locale'],_0x49fe1a={'Compare\x20against\x20selected':m(_0x188e00,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x188e00,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x188e00,'Restore\x20this\x20revision')};return _0x2a1f8f['map'](_0x3f3ade=>{const _0x542f00=_0x49fe1a[_0x3f3ade['name']];return _0x542f00&&_0x542f00!==_0x3f3ade['name']&&(_0x3f3ade['name']=_0x542f00),_0x3f3ade;});}(_0x284c86,_0x854d76),_0x2ec999=new _0x26acd1();for(const _0x5b963c of _0x1c4598){const _0x428424={'type':'button','model':new to({'label':_0x5b963c['name'],'class':_0x5b963c['class'],'withText':!0x0,'role':'menuitem','_action':_0x5b963c['action']})};_0x428424['model']['bind']('isEnabled')['to'](_0x284c86,'isActionsDropdownOpen',_0x26a8f9=>'function'!=typeof _0x5b963c['isEnabled']||(!_0x26a8f9||_0x5b963c['isEnabled'](_0x284c86))),_0x2ec999['add'](_0x428424);}return _0x2ec999;}(_0x13a6bd,_0x578f63);return _0x13a6bd['bind']('isActionsDropdownOpen')['to'](_0x354658,'isOpen'),_0x354658['buttonView']['set']({'label':m(_0x5b5c9a,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x507256}),_0x354658['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x449f40['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x449f40['to'](_0x524246=>_0x524246['stopPropagation']())}}),_0x354658['on']('execute',_0x1b17ea=>{_0x13a6bd['isReady']&&'function'==typeof _0x1b17ea['source']['_action']&&_0x1b17ea['source']['_action'](_0x13a6bd);}),_0x32278e(_0x354658,_0x493b8c,{'role':'menu'}),_0x354658['listenTo'](_0x13a6bd,'change:isActionsDropdownOpen',(_0xc38546,_0x4c5bb8,_0x90ce34)=>{if(_0x90ce34)for(const _0x54d364 of _0x354658['listView']['items']){const _0x17b5d7=_0x54d364['children']['first'],_0x5e17ae=_0x578f63['find'](_0x123861=>_0x123861['action']===_0x17b5d7['_action'])['isVisible'];_0x54d364['isVisible']=void 0x0===_0x5e17ae||_0x5e17ae(_0x13a6bd);}}),_0x354658;}class pi extends/* #__PURE__ -- @preserve */
|
|
27
|
+
_0x53ae13(_0x419e54){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x199dd6,_0x190b8f,_0x2595aa,_0x29e92e){super(_0x199dd6);const _0x2f963a=this['bindTemplate'],_0x3fc6c1=function(_0x1594dc,_0x45d874){const _0x545ae5=Array['from'](_0x45d874['authors'])['filter'](_0x4f00df=>_0x4f00df!=_0x45d874['creator']);return _0x45d874['creator']&&_0x545ae5['unshift'](_0x45d874['creator']),_0x545ae5['map'](_0x633913=>new vi(_0x1594dc,_0x633913,_0x633913==_0x45d874['creator']));}(_0x199dd6,_0x190b8f);this['id']=_0x190b8f['id'],this['_revision']=_0x190b8f,this['_requireRevisionName']=_0x29e92e,this['bind']('name','createdAt')['to'](_0x190b8f),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x1aeb15=>{return _0x153dfa=_0x199dd6['uiLanguage'],(_0xab94e8=_0x1aeb15)['toLocaleDateString'](_0x153dfa,{'month':'long','day':'numeric'})+',\x20'+_0xab94e8['toLocaleTimeString'](_0x153dfa,{'hour':'numeric','minute':'numeric'});var _0x153dfa,_0xab94e8;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new li(_0x199dd6,_0xca40ce),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x3bd02c=>_0x3bd02c||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x381803,_0x1780fe)=>_0x381803&&_0x1780fe),this['revisionActionsView']=_0x2595aa&&_0x2595aa['length']?mi(this,_0x2595aa):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x2f963a['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x2f963a['if']('isEnabled','ck-disabled',_0x1c9697=>!_0x1c9697),_0x2f963a['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x2f963a['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x2f963a['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':_0x2f963a['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':_0x3fc6c1}]},this['revisionActionsView']],'on':{'click':_0x2f963a['to'](_0x50e7ed=>{_0x50e7ed['srcElement']['closest']('.ck-confirm-view')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x1715f9=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x1715f9,'change',()=>{this['_requireRevisionName']&&!_0x1715f9['value']||this['fire']('setName',{'id':this['id'],'name':_0x1715f9['value']}),_0x1715f9['value']||(_0x1715f9['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(_0x1a4f40,_0x43e13b){const _0x56daad=_0xe5502b['fromJSDate'](_0x1a4f40)['setLocale'](_0x43e13b),_0x22e010=_0xe5502b['local'](),_0x33d584=_0x22e010['minus']({'days':0x1})['startOf']('day');let _0x2c2324,_0x431683;return _0x56daad['hasSame'](_0x22e010,'day')?(_0x2c2324=_0x56daad['startOf']('day')['toJSDate'](),_0x431683=_0x56daad['toRelativeCalendar']()):_0x56daad['hasSame'](_0x33d584,'day')?(_0x2c2324=_0x33d584['toJSDate'](),_0x431683=_0x56daad['toRelativeCalendar']()):_0x56daad['hasSame'](_0x22e010,'week')?(_0x2c2324=_0x56daad['startOf']('week')['toJSDate'](),_0x431683=_0x56daad['weekdayLong']||''):_0x56daad['hasSame'](_0x22e010,'year')?(_0x2c2324=_0x56daad['startOf']('month')['toJSDate'](),_0x431683=_0x56daad['monthLong']||''):(_0x2c2324=_0x56daad['startOf']('year')['toJSDate'](),_0x431683=String(_0x56daad['year'])),{'startDate':_0x2c2324,'localizedPeriodName':_0x431683};}class fi extends _0x419e54{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x3efe55,_0x300c47,_0x1a332b,_0x557ef6){super(_0x3efe55);const _0x38914b=bi(_0x300c47,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x300c47,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x1a332b,this['_requireRevisionName']=_0x557ef6,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':_0x38914b}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x33e27a){const _0x3dd1b7=new pi(this['locale'],_0x33e27a,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x3dd1b7);}['removeRevision'](_0x3d5ee9){const _0x4a6fef=this['revisionViews']['find'](_0x96acb5=>_0x96acb5['id']===_0x3d5ee9['id']);this['revisionViews']['remove'](_0x4a6fef);}}class ki extends _0x419e54{constructor(_0x9e91a1){super(_0x9e91a1);const _0x268233=new _0x3fa78e();_0x268233['content']=_0x1c16d7,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x268233,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x9e91a1,'Revision\x20history')]}]});}}class ui extends _0x419e54{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x486a68,_0x1a1292,_0x5d3928,_0x5134a9){super(_0x486a68);const _0x5d6258=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x1a1292,this['_revisionActions']=_0x5d3928,this['_requireRevisionName']=_0x5134a9,this['on']('select',(_0x340609,_0x125596)=>{this['fire']('revisionSelected',_0x125596);}),this['on']('setName',(_0x16d152,_0x13f84a)=>{this['fire']('revisionSetName',_0x13f84a);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new ki(_0x486a68),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x5d6258['if']('isEnabled','ck-disabled',_0x40380b=>!_0x40380b)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x321e91 of this['_revisions'])this['_addRevision'](_0x321e91);this['_revisions']['on']('add',(_0x27a514,_0x16c7ee)=>{this['_addRevision'](_0x16c7ee);}),this['_revisions']['on']('remove',(_0x433b97,_0xf590d9)=>{this['_removeRevision'](_0xf590d9);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x220c87=>_0x220c87['revisionViews']['map'](_0x4fe9c0=>_0x4fe9c0))['flat']();}['selectRevision'](_0x4c24c3){for(const _0x452345 of this['revisionViews'])_0x4c24c3&&_0x4c24c3['id']===_0x452345['id']?_0x452345['select']():_0x452345['deselect']();}['highlightRevisions'](_0x5ce071){for(const _0x16ebe3 of this['revisionViews'])_0x5ce071['some'](({id:_0x1ad4f2})=>_0x1ad4f2===_0x16ebe3['id'])?_0x16ebe3['highlight']():_0x16ebe3['unhighlight']();}['_addRevision'](_0x12afa8){const _0x10a565=bi(_0x12afa8['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x16f815=this['timePeriodViews']['get'](0x0);_0x16f815&&_0x16f815['startDate']['getTime']()===_0x10a565['getTime']()||(_0x16f815=new fi(this['locale'],_0x10a565,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x16f815)),_0x16f815['addRevision'](_0x12afa8);}['_removeRevision'](_0xa4718f){const _0x44b2fc=bi(_0xa4718f['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x44b2fc)['removeRevision'](_0xa4718f);}['_getTimePeriodViewByStartDate'](_0x494b82){return this['timePeriodViews']['find'](_0x4c33cc=>_0x4c33cc['startDate']['getTime']()===_0x494b82['getTime']());}}class d extends _0x57da8b{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
28
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
29
|
-
|
|
30
|
-
_0x22e1de(_0x54238d){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x5849c4,_0x23e29f){super(_0x23e29f),this['sourceElement']=_0x5849c4,this['model']['document']['createRoot']();const _0x5ab809=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x5ab809);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x5518b8,_0x2678c0){const _0x339bc0=new this(_0x5518b8,_0x2678c0);return await _0x339bc0['initPlugins'](),await _0x339bc0['ui']['init'](_0x5518b8),await _0x339bc0['data']['init'](_0x339bc0['config']['get']('initialData')||''),_0x339bc0['fire']('ready'),_0x339bc0;}}const p=['RevisionHistoryUI','RestrictedEditingMode','AIChat','AIReviewMode','AIBalloon','AIQuickActions','AIActions'];class ht extends _0x59afc0{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xdad6d3){function _0x42e5af(_0x2a8cd4){return _0x2a8cd4['map'](_0x5c815d=>String['fromCharCode'](_0x5c815d))['join']('');}super(_0xdad6d3),this['result']='end',_0xdad6d3[_0x42e5af([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x42e5af([0x76,0x69,0x65,0x77])][_0x42e5af([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x42e5af([0x61,0x75,0x74,0x6f]),_0xdad6d3[_0x42e5af([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x42e5af([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x42e5af([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x42e5af([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x42e5af([0x6f,0x6b])});}}class ct extends _0x59afc0{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,l];}constructor(_0x595296){if(super(_0x595296),!this['editor']['config']['get']('revisionHistory'))throw new _0x5bf644('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x14f852=>this['_showRevisionViewer']({..._0x14f852,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x100125=>this['_closeRevisionViewer'](_0x100125)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x1ef81e=>this['_restoreRevision'](_0x1ef81e)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x4acbba){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x4acbba;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x25d18a){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x25d18a);}['getRevision'](_0x28454f){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x28454f);}['getRevisions'](_0x10d14c){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x10d14c||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0xc4e78=this['editor'],_0x346732=_0x8e5f46(_0xc4e78,p),_0x39f831=_0xc4e78['plugins']['get']('RevisionTracker'),_0x30c077=_0xc4e78['plugins']['get']('Users')['users'];return _0x346732['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x346732['lazyRoots'],(_0x346732['plugins']['push'](ht,u,v,class extends _0x59afc0{static get['requires'](){return[u,'Users'];}['init'](){const _0x2b5e28=this['editor']['plugins']['get']('Users');for(const _0x2746da of _0x30c077)_0x2746da['isAnonymous']||_0x2b5e28['getUser'](_0x2746da['id'])||_0x2b5e28['addUser'](_0x2746da);const _0x545143=_0x39f831['repository']['getRevisions']();let _0x5d4dac=null;const _0x302222=this['editor']['plugins']['get']('RevisionViewer');_0x302222['adapter']=_0x39f831['adapter'],_0x302222['bind']('isEnabled')['to'](_0x39f831),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0xc4e78,'isReadOnly',_0x4878d3=>!_0x4878d3);for(const _0x5eb6e0 of _0x545143){const _0x1cfa33=null===_0x5eb6e0['creator'];if(_0x1cfa33&&_0x5eb6e0['toVersion']===_0x5eb6e0['fromVersion'])continue;const _0x3992ef=_0x5eb6e0['toJSON']();_0x302222['addRevisionData'](_0x3992ef,(_0x119edc,_0x21de56,_0xf69f4c)=>{if(_0x1cfa33){if(_0x5d4dac)_0x5d4dac['_update'](_0x119edc,_0x21de56);else{if(!_0x21de56){const _0x335c4b=_0xf69f4c['toJSON']();_0x335c4b['id']=_0x221375(),_0x39f831['saveRevision'](_0x335c4b,_0xf69f4c['toVersion'])['then'](_0x410e9=>{_0x5d4dac=_0x410e9;});}}}else _0x5eb6e0['_update'](_0x119edc,_0x21de56);});}}},d),_0x346732);}['_enhanceShowRevisionViewerCallback'](){const _0x567834=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x15914a=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x4a4fb8=this['editor']['plugins']['get']('Autosave');await _0x4a4fb8['save']();}else await _0x15914a['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x500966=this['editor']['plugins']['get']('Dialog');_0x500966['isOpen']&&_0x500966['hide']();}if(this['editor']['plugins']['has']('AITabs')){const _0x288734=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x5aa7f6 of _0x288734)_0x5aa7f6['class']=_0x5aa7f6['class']?_0x5aa7f6['class']+'\x20ck-tab-panel_disabled':'ck-tab-panel_disabled';if(this['editor']['plugins']['has']('AIChat')){const _0x4a5b35=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x4a5b35&&_0x4a5b35['setAttribute']('tabindex','-1');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x39e9a8=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x39e9a8&&_0x39e9a8['setAttribute']('tabindex','-1');}}const _0x487861=this['_getRevisionViewerEditorConfig']();return _0x567834(_0x487861)['then'](_0x30dc2c=>{return(this['_viewerEditor']=_0x30dc2c,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'),_0x30dc2c);})['catch'](_0x4724f2=>(console['error'](_0x4724f2),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x531cfa=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>{if(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['editor']['plugins']['has']('AITabs')){const _0x101198=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x420960 of _0x101198)_0x420960['class']='ck-tab-panel_disabled'===_0x420960['class']?'':_0x420960['class']['replace']('\x20ck-tab-panel_disabled','');if(this['editor']['plugins']['has']('AIChat')){const _0x52e196=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x52e196&&_0x52e196['removeAttribute']('tabindex');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x352e37=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x352e37&&_0x352e37['removeAttribute']('tabindex');}}return this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x531cfa(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x17fdb3=this['editor']['plugins']['get']('Annotations');_0x17fdb3['refreshVisibility'](),_0x17fdb3['refreshPositioning']();}});});}['_showRevisionViewer'](_0x163822){const _0x5241e5=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x21b1d8=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x2a527d=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return f['create'](_0x2a527d,_0x163822)['then'](_0x40eb9b=>(_0x21b1d8['style']['display']='block',_0x5241e5['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x40eb9b));}['_closeRevisionViewer'](_0x4c70e2){const _0x423096=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x423096['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x4c70e2['destroy']();}async['_restoreRevision'](_0xf130f6){const _0x2fd558=this['editor'],_0xe540fa=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x42967d=_0x2fd558['plugins']['get']('RevisionTracker'),_0x37ac17=_0x2fd558['plugins']['get']('RevisionHistoryUtils'),_0x15ff15=_0xe540fa['repository']['getRevision'](_0xf130f6);let _0x2f2f1a,_0x2481f7,_0x194874;try{await _0x37ac17['loadRevisionData'](_0x15ff15,this['adapter']),_0x2f2f1a=_0x37ac17['getRevisionDocumentData'](_0x15ff15),_0x2481f7=_0x37ac17['getRevisionRootsAttributes'](_0x15ff15);}catch(_0xf65f8d){return void console['error'](_0xf65f8d);}_0x2fd558['model']['change'](_0x3f7a0b=>{for(const _0xd686e8 of Array['from'](_0x2fd558['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x3f7a0b['removeMarker'](_0xd686e8);}),_0xe540fa['isReady']=!0x1,_0x2fd558['model']['enqueueChange'](_0x1cd9ec=>{_0x1cd9ec['setSelection'](null),_0x1cd9ec['removeSelectionAttribute'](_0x2fd558['model']['document']['selection']['getAttributeKeys']());const _0x3b0d09=Object['keys'](_0x2f2f1a);for(const _0x4a43b6 of _0x2fd558['model']['document']['roots'])'$graveyard'!=_0x4a43b6['rootName']&&_0x4a43b6['isAttached']()&&!_0x3b0d09['includes'](_0x4a43b6['rootName'])&&_0x1cd9ec['detachRoot'](_0x4a43b6);for(const _0x385bd5 of _0x3b0d09){let _0x24d93d=_0x2fd558['model']['document']['getRoot'](_0x385bd5);_0x24d93d&&_0x24d93d['isAttached']()||(_0x24d93d=_0x1cd9ec['addRoot'](_0x385bd5));const _0x5c71ac=_0x2481f7[_0x385bd5],_0x4c19a3=Object['keys'](_0x5c71ac),_0x24836e=_0x2f2f1a[_0x385bd5];for(const _0x2fbea5 of _0x24d93d['getAttributeKeys']())_0x4c19a3['includes'](_0x2fbea5)||_0x1cd9ec['removeAttribute'](_0x2fbea5,_0x24d93d);for(const _0x4af3a7 of _0x4c19a3)_0x1cd9ec['setAttribute'](_0x4af3a7,_0x2481f7[_0x385bd5][_0x4af3a7],_0x24d93d);_0x1cd9ec['remove'](_0x1cd9ec['createRangeIn'](_0x24d93d)),_0x1cd9ec['insert'](_0x2fd558['data']['parse'](_0x24836e,_0x24d93d),_0x24d93d,0x0);}});const _0x5ea02b=m(_0x2fd558['locale'],'Restored');if(_0x15ff15['name'])_0x194874=-0x1==_0x15ff15['name']['indexOf'](_0x5ea02b)?_0x5ea02b+':\x20'+_0x15ff15['name']:_0x15ff15['name'];else _0x194874=_0x5ea02b+':\x20'+(_0x15ff15['createdAt']['toLocaleDateString'](_0x2fd558['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x15ff15['createdAt']['toLocaleTimeString'](_0x2fd558['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x42967d['saveRevision']({'name':_0x194874}),_0xe540fa['isReady']=!0x0,_0x2fd558['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{nt as RestoreRevisionCommand,I as Revision,ct as RevisionHistory,l as RevisionHistoryUI,$ as RevisionHistoryUtils,h as RevisionTracker,u as RevisionViewer,f as RevisionViewerEditor,ht as RevisionViewerIntegration,bi as RevisionViewerLoadingOverlay,v as RevisionViewerUI,S as RevisionsRepository,d 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[u];}constructor(_0xc1811b){super(_0xc1811b),this['_revisionViewer']=_0xc1811b['plugins']['get'](u),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x2adb2c=this['_revisionsRepository']['_revisions'],_0x227ece=this['_createRevisionActions'](),_0x5afd04=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ui(this['editor']['locale'],_0x2adb2c,_0x227ece,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',(_0x432f80,_0x2eb0e9)=>{_0x2eb0e9['revisionViews']['on']('add',(_0x45aa67,_0x2086aa)=>{_0x2086aa['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)),_0x5afd04['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x130e7a=this['_revisionsRepository']['getRevision'](0x0);if(_0x130e7a){const _0x4d40a6=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x130e7a['id']);this['_revisionViewer']['compare'](_0x130e7a,_0x4d40a6);}}['_handleRevisionSelected'](_0x322270,_0xbae587){const _0x3c8431=this['_revisionsRepository']['getRevision'](_0xbae587['id']),_0x58a2a0=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x3c8431['id']);this['_revisionViewer']['compare'](_0x3c8431,_0x58a2a0);}['_handleRevisionSetName'](_0x55d4e1,_0xa139f8){this['_revisionsRepository']['getRevision'](_0xa139f8['id'])['setName'](_0xa139f8['name']);}['_handleDiffChange'](_0x5e4626,_0x14261b,_0x50ad88){const _0x16ec10=this['_revisionsRepository']['getRevisionsInDiff'](_0x50ad88);_0x16ec10['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x16ec10),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x16ec10[0x0]));}['_createRevisionActions'](){const _0x27b85f=this['editor'],_0x25eb4b=d['availableRevisionActions'],_0xe895a6=_0x27b85f['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0xe895a6['length'])return _0xe895a6['map'](_0x42e29f=>{const _0x51cc4e='string'==typeof _0x42e29f?Object['assign']({},_0x25eb4b[_0x42e29f]):_0x42e29f;return _0x51cc4e['action']=_0x51cc4e['action']['bind'](this,_0x27b85f),_0x51cc4e['isVisible']&&(_0x51cc4e['isVisible']=_0x51cc4e['isVisible']['bind'](this,_0x27b85f)),_0x51cc4e;});}}function rt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x55aeb7},_0x3f9dbd)=>{const _0x3ea43c=_0x55aeb7['get'](u),_0x26b871=_0x3ea43c['repository'];let _0x1b656a=_0x3ea43c['diff']['newRevisionId'],_0x47734e=_0x3f9dbd['id'];_0x26b871['getIndex'](_0x1b656a)>_0x26b871['getIndex'](_0x47734e)&&([_0x1b656a,_0x47734e]=[_0x47734e,_0x1b656a]),_0x3ea43c['compare'](_0x1b656a,_0x47734e);},'isVisible':({plugins:_0x32d08a},_0x6d7f6)=>{const _0x13d55e=_0x32d08a['get'](u);return!(_0x13d55e['repository']['getRevisionsInDiff'](_0x13d55e['diff'])['length']>0x2)&&!_0x6d7f6['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x293cb0,{id:_0x3fbcdf})=>{_0x293cb0['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x3fbcdf);},'isVisible':({plugins:_0x4fe536},_0x1898a5)=>!!_0x4fe536['get'](u)['repository']['getLaterVisibleRevision'](_0x1898a5['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0xafa53a},{id:_0x11700c,revisionNameView:_0x19413c})=>{const _0x597cc6=_0xafa53a['get'](u),_0x9d73e8=_0x597cc6['repository']['getEarlierVisibleRevision'](_0x11700c);_0x597cc6['compare'](_0x11700c,_0x9d73e8),_0x19413c['focus'](),_0x19413c['fieldView']['select']();}}};}class Z extends tt{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x3484fa,_0x766b26){super(_0x3484fa),this['_view']=_0x766b26,this['_toolbarConfig']=st(_0x3484fa['config']['get']('toolbar')),this['_elementReplacer']=new it();}get['element'](){return this['view']['element'];}['init'](_0xaba086){const _0x41d783=this['editor'],_0x6bd6b=this['view'],_0x1e2ef2=_0x41d783['editing']['view'],_0x488176=_0x6bd6b['editable'],_0x4e8cee=_0x1e2ef2['document']['getRoot']();_0x488176['name']=_0x4e8cee['rootName'],_0x6bd6b['render']();const _0x31ead4=_0x488176['element'];this['setEditableElement'](_0x488176['name'],_0x31ead4),_0x6bd6b['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x1e2ef2['attachDomRoot'](_0x31ead4),this['_elementReplacer']['replace'](_0xaba086,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x2045ba=this['view'],_0x3a65d6=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x3a65d6['detachDomRoot'](_0x2045ba['editable']['name']),_0x2045ba['destroy']();}['_initToolbar'](){const _0x150139=this['view'];_0x150139['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x150139['stickyPanel']['limiterElement']=_0x150139['element'],_0x150139['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x4659a6})=>_0x4659a6),_0x150139['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x150139['toolbar']);}}class ii extends _0x4345dd{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x250efb,_0x5f295a,_0x8de2ef={}){super(_0x250efb),this['stickyPanel']=new _0x1adcc9(_0x250efb),this['toolbar']=new _0xcbf7a9(_0x250efb,{'shouldGroupWhenFull':_0x8de2ef['shouldToolbarGroupWhenFull']}),this['_editable']=new te(_0x250efb,_0x5f295a);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class f extends/* #__PURE__ -- @preserve */
|
|
30
|
+
_0x1a9dcf(_0x2534f1){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x5bfe05,_0x5424b7){super(_0x5424b7),this['sourceElement']=_0x5bfe05,this['model']['document']['createRoot']();const _0x268304=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x268304);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x23273c,_0x49f677){const _0x4d6309=new this(_0x23273c,_0x49f677);return await _0x4d6309['initPlugins'](),await _0x4d6309['ui']['init'](_0x23273c),await _0x4d6309['data']['init'](_0x4d6309['config']['get']('initialData')||''),_0x4d6309['fire']('ready'),_0x4d6309;}}const p=['RevisionHistoryUI','RestrictedEditingMode','AIChat','AIReviewMode','AIBalloon','AIQuickActions','AIActions'];class at extends _0x57da8b{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x27ae56){function _0x471018(_0x4a316a){return _0x4a316a['map'](_0x56202b=>String['fromCharCode'](_0x56202b))['join']('');}super(_0x27ae56),this['result']='end',_0x27ae56[_0x471018([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x471018([0x76,0x69,0x65,0x77])][_0x471018([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x471018([0x61,0x75,0x74,0x6f]),_0x27ae56[_0x471018([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x471018([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x471018([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x471018([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x471018([0x6f,0x6b])});}}class ht extends _0x57da8b{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,l];}constructor(_0x4d75d5){if(super(_0x4d75d5),!this['editor']['config']['get']('revisionHistory'))throw new _0x193114('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x478cf9=>this['_showRevisionViewer']({..._0x478cf9,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x56085f=>this['_closeRevisionViewer'](_0x56085f)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x573cac=>this['_restoreRevision'](_0x573cac)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x48ee10){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x48ee10;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x5f0fdb){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x5f0fdb);}['getRevision'](_0x830034){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x830034);}['getRevisions'](_0x35019f){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x35019f||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x843eec=this['editor'],_0x13133a=_0x36746a(_0x843eec,p),_0x56fcc8=_0x843eec['plugins']['get']('RevisionTracker'),_0x2dcd52=_0x843eec['plugins']['get']('Users')['users'];return _0x13133a['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x13133a['lazyRoots'],(_0x13133a['plugins']['push'](at,u,v,class extends _0x57da8b{static get['requires'](){return[u,'Users'];}['init'](){const _0x2cddc6=this['editor']['plugins']['get']('Users');for(const _0x908331 of _0x2dcd52)_0x908331['isAnonymous']||_0x2cddc6['getUser'](_0x908331['id'])||_0x2cddc6['addUser'](_0x908331);const _0x26c56f=_0x56fcc8['repository']['getRevisions']();let _0x557fc4=null;const _0x5bae71=this['editor']['plugins']['get']('RevisionViewer');_0x5bae71['adapter']=_0x56fcc8['adapter'],_0x5bae71['bind']('isEnabled')['to'](_0x56fcc8),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x843eec,'isReadOnly',_0x27fb54=>!_0x27fb54);for(const _0xf3c699 of _0x26c56f){const _0x52600d=null===_0xf3c699['creator'];if(_0x52600d&&_0xf3c699['toVersion']===_0xf3c699['fromVersion'])continue;const _0xe879fe=_0xf3c699['toJSON']();_0x5bae71['addRevisionData'](_0xe879fe,(_0x3ca8ab,_0x8dfbde,_0x37d93a)=>{if(_0x52600d){if(_0x557fc4)_0x557fc4['_update'](_0x3ca8ab,_0x8dfbde);else{if(!_0x8dfbde){const _0x30ca1c=_0x37d93a['toJSON']();_0x30ca1c['id']=_0x4c4fba(),_0x56fcc8['saveRevision'](_0x30ca1c,_0x37d93a['toVersion'])['then'](_0x2b0d4f=>{_0x557fc4=_0x2b0d4f;});}}}else _0xf3c699['_update'](_0x3ca8ab,_0x8dfbde);});}}},d),_0x13133a);}['_enhanceShowRevisionViewerCallback'](){const _0x1ca21e=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x37a36b=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x5f88d4=this['editor']['plugins']['get']('Autosave');await _0x5f88d4['save']();}else await _0x37a36b['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x387c8b=this['editor']['plugins']['get']('Dialog');_0x387c8b['isOpen']&&_0x387c8b['hide']();}if(this['editor']['plugins']['has']('AITabs')){const _0xe151af=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x43ac12 of _0xe151af)_0x43ac12['class']=_0x43ac12['class']?_0x43ac12['class']+'\x20ck-tab-panel_disabled':'ck-tab-panel_disabled';if(this['editor']['plugins']['has']('AIChat')){const _0x113a0e=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x113a0e&&_0x113a0e['setAttribute']('tabindex','-1');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x477337=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x477337&&_0x477337['setAttribute']('tabindex','-1');}}const _0x46ae29=this['_getRevisionViewerEditorConfig']();return _0x1ca21e(_0x46ae29)['then'](_0x4d0ff5=>{return(this['_viewerEditor']=_0x4d0ff5,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'),_0x4d0ff5);})['catch'](_0xe5f653=>(console['error'](_0xe5f653),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x389cfe=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>{if(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['editor']['plugins']['has']('AITabs')){const _0x19fa53=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x21c067 of _0x19fa53)_0x21c067['class']='ck-tab-panel_disabled'===_0x21c067['class']?'':_0x21c067['class']['replace']('\x20ck-tab-panel_disabled','');if(this['editor']['plugins']['has']('AIChat')){const _0x3f261c=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x3f261c&&_0x3f261c['removeAttribute']('tabindex');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x315953=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x315953&&_0x315953['removeAttribute']('tabindex');}}return this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x389cfe(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x169e50=this['editor']['plugins']['get']('Annotations');_0x169e50['refreshVisibility'](),_0x169e50['refreshPositioning']();}});});}['_showRevisionViewer'](_0x3e1638){const _0x4e6faf=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x269178=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x4605a9=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return f['create'](_0x4605a9,_0x3e1638)['then'](_0x2f9045=>(_0x269178['style']['display']='block',_0x4e6faf['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x2f9045));}['_closeRevisionViewer'](_0x4f286f){const _0x194219=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x194219['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x4f286f['destroy']();}async['_restoreRevision'](_0x3d5947){const _0x4b53b4=this['editor'],_0x41ca8c=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x298fbb=_0x4b53b4['plugins']['get']('RevisionTracker'),_0x55b4b8=_0x4b53b4['plugins']['get']('RevisionHistoryUtils'),_0x10cc20=_0x41ca8c['repository']['getRevision'](_0x3d5947);let _0x23cef7,_0x394d44,_0x14b00f;try{await _0x55b4b8['loadRevisionData'](_0x10cc20,this['adapter']),_0x23cef7=_0x55b4b8['getRevisionDocumentData'](_0x10cc20),_0x394d44=_0x55b4b8['getRevisionRootsAttributes'](_0x10cc20);}catch(_0x4875dd){return void console['error'](_0x4875dd);}_0x4b53b4['model']['change'](_0x3d5ce7=>{for(const _0x279b4d of Array['from'](_0x4b53b4['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x3d5ce7['removeMarker'](_0x279b4d);}),_0x41ca8c['isReady']=!0x1,_0x4b53b4['model']['enqueueChange'](_0x2b28a2=>{_0x2b28a2['setSelection'](null),_0x2b28a2['removeSelectionAttribute'](_0x4b53b4['model']['document']['selection']['getAttributeKeys']());const _0x48c772=Object['keys'](_0x23cef7);for(const _0x312568 of _0x4b53b4['model']['document']['roots'])'$graveyard'!=_0x312568['rootName']&&_0x312568['isAttached']()&&!_0x48c772['includes'](_0x312568['rootName'])&&_0x2b28a2['detachRoot'](_0x312568);for(const _0x2e2267 of _0x48c772){let _0x37e6bd=_0x4b53b4['model']['document']['getRoot'](_0x2e2267);_0x37e6bd&&_0x37e6bd['isAttached']()||(_0x37e6bd=_0x2b28a2['addRoot'](_0x2e2267));const _0x31f7fd=_0x394d44[_0x2e2267],_0x59ac4c=Object['keys'](_0x31f7fd),_0x33a488=_0x23cef7[_0x2e2267];for(const _0xa023cf of _0x37e6bd['getAttributeKeys']())_0x59ac4c['includes'](_0xa023cf)||_0x2b28a2['removeAttribute'](_0xa023cf,_0x37e6bd);for(const _0x2b1b6f of _0x59ac4c)_0x2b28a2['setAttribute'](_0x2b1b6f,_0x394d44[_0x2e2267][_0x2b1b6f],_0x37e6bd);_0x2b28a2['remove'](_0x2b28a2['createRangeIn'](_0x37e6bd)),_0x2b28a2['insert'](_0x4b53b4['data']['parse'](_0x33a488,_0x37e6bd),_0x37e6bd,0x0);}});const _0x195594=m(_0x4b53b4['locale'],'Restored');if(_0x10cc20['name'])_0x14b00f=-0x1==_0x10cc20['name']['indexOf'](_0x195594)?_0x195594+':\x20'+_0x10cc20['name']:_0x10cc20['name'];else _0x14b00f=_0x195594+':\x20'+(_0x10cc20['createdAt']['toLocaleDateString'](_0x4b53b4['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x10cc20['createdAt']['toLocaleTimeString'](_0x4b53b4['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x298fbb['saveRevision']({'name':_0x14b00f}),_0x41ca8c['isReady']=!0x0,_0x4b53b4['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{nt as RestoreRevisionCommand,I as Revision,ht as RevisionHistory,l as RevisionHistoryUI,$ as RevisionHistoryUtils,h as RevisionTracker,u as RevisionViewer,f as RevisionViewerEditor,at as RevisionViewerIntegration,ji as RevisionViewerLoadingOverlay,v as RevisionViewerUI,S as RevisionsRepository,d as RevisionsSidebar,ot as ShowChangeCommand};
|