@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20250427.0 → 0.0.0-nightly-20250429.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/dist/index.js +6 -6
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +11 -11
- package/src/changeitem.js +2 -2
- package/src/editor/revisionviewereditor.js +2 -2
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/index.js +1 -1
- package/src/revision.js +2 -2
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionhistoryutils.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +2 -2
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ObservableMixin as
|
|
24
|
-
_0x22d55c(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x4c402f){super(),this['id']=_0x4c402f['id']||_0x3ebcbf(),this['creator']=_0x4c402f['creator']||null,this['authors']=_0x4c402f['authors']||[],this['diffData']=_0x4c402f['diffData']||null,this['toVersion']=_0x4c402f['toVersion']||0x0,this['fromVersion']=_0x4c402f['fromVersion']||0x0,this['set']('name',_0x4c402f['name']||''),this['set']('createdAt',_0x4c402f['createdAt']||new Date()),this['set']('attributes',_0x4c402f['attributes']||{});}['setName'](_0x5dfd36){this['_update']({'name':_0x5dfd36});}['setAttribute'](_0x3d4406,_0x50b9cc){const _0x53579d=_0x35023c(this['attributes']);_0x42dda0(_0x53579d,_0x3d4406,_0x50b9cc),this['_update']({'attributes':_0x53579d});}['removeAttribute'](_0x575260){const _0x90ff52=_0x35023c(this['attributes']);_0x4b5840(_0x90ff52,_0x575260),this['_update']({'attributes':_0x90ff52});}['_update'](_0x3a51e5,_0x2dec1f=!0x1){let _0x458cca=!0x1;const _0x1cd3e9={'id':this['id']},_0x2ea3c3=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x398657 of _0x2ea3c3){const _0x13bf9a=_0x3a51e5[_0x398657];void 0x0!==_0x13bf9a&&_0x13bf9a!==this[_0x398657]&&(this[_0x398657]=_0x13bf9a,_0x1cd3e9[_0x398657]=_0x13bf9a,_0x458cca=!0x0);}_0x458cca&&(_0x1cd3e9['authors']&&(_0x1cd3e9['authorsIds']=_0x1cd3e9['authors']['map'](_0x3c2deb=>_0x3c2deb['id']),delete _0x1cd3e9['authors']),this['fire']('_update',_0x1cd3e9,_0x2dec1f));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x31f6af=>_0x31f6af['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x5df236{['_revisions'];static get['requires'](){return[_0x3ae4e4];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x56740b){super(_0x56740b),this['_revisions']=new _0x4b7808();}['afterInit'](){!async function(_0x5d5b54){const _0x250837=_0x5534f0([0x32,0x79,0x44,0x6a,0x57,0x72,0x35,0x64,0x36,0x49,0x4d,0x5a,0x43,0x65,0x46,0x4b,0x56,0x34,0x68,0x52,0x39,0x30,0x6b,0x62,0x6d,0x48,0x7a,0x50,0x6f,0x45,0x31,0x42,0x61,0x41,0x74,0x69,0x73,0x58,0x63,0x71,0x54,0x38,0x47,0x55,0x6c,0x6e,0x51,0x4e,0x4f,0x53,0x78,0x75,0x76,0x4c,0x59,0x4a,0x66,0x37,0x70,0x77,0x67,0x33]),_0x3556aa=0xeb829,_0xc12f21=0x698e9a25,_0x3dfb09=0x6989fc1d^_0xc12f21,_0x505ea6=window[_0x5534f0([0x44,0x61,0x74,0x65])][_0x5534f0([0x6e,0x6f,0x77])](),_0xf74dbc=_0x5d5b54[_0x5534f0([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x26024d=new window[(_0x5534f0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x118d0c=>{_0xf74dbc[_0x5534f0([0x6f,0x6e,0x63,0x65])](_0x5534f0([0x72,0x65,0x61,0x64,0x79]),_0x118d0c);}),_0x18fd39={[_0x5534f0([0x6b,0x74,0x79])]:_0x5534f0([0x45,0x43]),[_0x5534f0([0x75,0x73,0x65])]:_0x5534f0([0x73,0x69,0x67]),[_0x5534f0([0x63,0x72,0x76])]:_0x5534f0([0x50,0x2d,0x32,0x35,0x36]),[_0x5534f0([0x78])]:_0x5534f0([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]),[_0x5534f0([0x79])]:_0x5534f0([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]),[_0x5534f0([0x61,0x6c,0x67])]:_0x5534f0([0x45,0x53,0x32,0x35,0x36])},_0x55b7d6=_0xf74dbc[_0x5534f0([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5534f0([0x67,0x65,0x74])](_0x5534f0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x22f1b8(){let _0x32385d,_0x5e0c41=null,_0x1bf199=null;try{if(_0x55b7d6==_0x5534f0([0x47,0x50,0x4c]))return _0x5534f0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x32385d=_0x54e91c(),!_0x32385d)return _0x5534f0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x32385d[_0x5534f0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1bf199=_0x310989(_0x32385d[_0x5534f0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x32385d[_0x5534f0([0x6a,0x74,0x69])])),await _0x21c9ef()?_0x2e8aba()?_0x54b927()?_0x5534f0([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x52a5af()?(_0x32385d[_0x5534f0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5534f0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5e0c41=_0x331db1(_0x5534f0([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x32385d[_0x5534f0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5534f0([0x74,0x72,0x69,0x61,0x6c])&&(_0x5e0c41=_0x331db1(_0x5534f0([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2c7059()):_0x5534f0([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5534f0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5534f0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x361124){return _0x5534f0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x54b927(){const _0x19a1ed=[_0x5534f0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5534f0([0x74,0x72,0x69,0x61,0x6c])][_0x5534f0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x32385d[_0x5534f0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x505ea6/0x3e8:0xe10*_0x3dfb09;return _0x32385d[_0x5534f0([0x65,0x78,0x70])]<_0x19a1ed;}function _0x2e8aba(){const _0x2209a8=_0x32385d[_0x5534f0([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x2209a8)return!0x1;if(_0x2209a8[_0x5534f0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5534f0([0x2a])))return!0x0;if(_0x2209a8[_0x5534f0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5534f0([0x52,0x48])))return!0x0;if(_0x2209a8[_0x5534f0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5534f0([0x52,0x52,0x48]))){if(_0x2a4015())return!0x0;if(_0x4ff620()||_0x4989d9())return!0x0;}return!0x1;}function _0x52a5af(){const _0x285d48=_0x32385d[_0x5534f0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x285d48||0x0==_0x285d48[_0x5534f0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x33ceb7}=new URL(window[_0x5534f0([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x285d48[_0x5534f0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x33ceb7))return!0x0;const _0x17704c=_0x33ceb7[_0x5534f0([0x73,0x70,0x6c,0x69,0x74])](_0x5534f0([0x2e]));return _0x285d48[_0x5534f0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5b3be0=>_0x5b3be0[_0x5534f0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5534f0([0x2a])))[_0x5534f0([0x6d,0x61,0x70])](_0x1784cd=>_0x1784cd[_0x5534f0([0x73,0x70,0x6c,0x69,0x74])](_0x5534f0([0x2e])))[_0x5534f0([0x73,0x6f,0x6d,0x65])](_0x32ae10=>_0x17704c[_0x5534f0([0x65,0x76,0x65,0x72,0x79])]((_0x4861de,_0x15f012)=>_0x32ae10[_0x15f012]===_0x4861de||_0x32ae10[_0x15f012]===_0x5534f0([0x2a])));}function _0x2c7059(){return _0x5e0c41&&_0x1bf199?new window[(_0x5534f0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x289de3,_0x38e6ac)=>{_0x5e0c41[_0x5534f0([0x74,0x68,0x65,0x6e])](_0x289de3,_0x38e6ac),_0x1bf199[_0x5534f0([0x74,0x68,0x65,0x6e])](_0x3acf9f=>{_0x3acf9f!=_0x5534f0([0x56,0x61,0x6c,0x69,0x64])&&_0x289de3(_0x3acf9f);},_0x38e6ac);}):_0x5e0c41||_0x1bf199||_0x5534f0([0x56,0x61,0x6c,0x69,0x64]);}}function _0x310989(_0x43383d,_0x1d1f53){return new window[(_0x5534f0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x39ee71=>{if(_0x3f1391())return _0x39ee71(_0x5534f0([0x56,0x61,0x6c,0x69,0x64]));_0x26547c(),_0xf74dbc[_0x5534f0([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5534f0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x593e7a=!0x1;const _0x11b9fd=_0x3ebcbf();function _0x232fc1(_0x520b96){return!!_0x520b96&&(typeof _0x520b96===_0x5534f0([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x520b96===_0x5534f0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x520b96[_0x5534f0([0x74,0x68,0x65,0x6e])]===_0x5534f0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x520b96[_0x5534f0([0x63,0x61,0x74,0x63,0x68])]===_0x5534f0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x39a2b9(_0x153511){_0x497fb2(_0x153511)[_0x5534f0([0x74,0x68,0x65,0x6e])](_0x30ab09=>{if(!_0x30ab09||_0x30ab09[_0x5534f0([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5534f0([0x6f,0x6b]))return _0x5534f0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x338626(_0x1eed28(_0x11b9fd+_0x1d1f53))!=_0x30ab09[_0x5534f0([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5534f0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5534f0([0x56,0x61,0x6c,0x69,0x64]);})[_0x5534f0([0x74,0x68,0x65,0x6e])](_0x5dfdba=>(_0x35d3eb(),_0x5dfdba),()=>{const _0x45f171=_0x446b3a();return null==_0x45f171?(_0x35d3eb(),_0x5534f0([0x56,0x61,0x6c,0x69,0x64])):_0x5534f0(_0x505ea6-_0x45f171>(0x4d821e25^_0xc12f21)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5534f0([0x74,0x68,0x65,0x6e])](_0x39ee71)[_0x5534f0([0x63,0x61,0x74,0x63,0x68])](()=>{_0x39ee71(_0x5534f0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x9a8f04=0x69b874a5^_0xc12f21;function _0x35d3eb(){const _0x5762e1=_0x5534f0([0x6c,0x6c,0x63,0x74,0x2d])+_0x338626(_0x1eed28(_0x43383d)),_0x20e138=_0xf20e3a(_0x338626(window[_0x5534f0([0x4d,0x61,0x74,0x68])][_0x5534f0([0x63,0x65,0x69,0x6c])](_0x505ea6/_0x9a8f04)));window[_0x5534f0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5534f0([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5762e1,_0x20e138);}function _0x446b3a(){const _0x1959ff=_0x5534f0([0x6c,0x6c,0x63,0x74,0x2d])+_0x338626(_0x1eed28(_0x43383d)),_0x671182=window[_0x5534f0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5534f0([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1959ff);return _0x671182?window[_0x5534f0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xf20e3a(_0x671182),0x10)*_0x9a8f04:null;}function _0x497fb2(_0x28c357){return new window[(_0x5534f0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x527312,_0x2fad36)=>{_0x28c357[_0x5534f0([0x74,0x68,0x65,0x6e])](_0x527312,_0x2fad36),window[_0x5534f0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2fad36,0x698f4ee5^_0xc12f21);});}}_0xf74dbc[_0x5534f0([0x6f,0x6e])](_0x5534f0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x566133,_0x125a13)=>{if(_0x125a13[0x0]!=_0x43383d)return _0x39ee71(_0x5534f0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x125a13[0x1]={..._0x125a13[0x1],[_0x5534f0([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x11b9fd};},{[_0x5534f0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5534f0([0x68,0x69,0x67,0x68])}),_0xf74dbc[_0x5534f0([0x6f,0x6e])](_0x5534f0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x178885=>{_0x232fc1(_0x178885[_0x5534f0([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x593e7a=!0x0,_0x39a2b9(_0x178885[_0x5534f0([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5534f0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5534f0([0x6c,0x6f,0x77])}),_0x26024d[_0x5534f0([0x74,0x68,0x65,0x6e])](()=>{_0x593e7a||_0x39ee71(_0x5534f0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3f1391(){return _0xf74dbc[_0x5534f0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5534f0([0x76,0x69,0x65,0x77])][_0x5534f0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5534f0([0x61,0x75,0x74,0x6f]);}function _0x26547c(){_0xf74dbc[_0x5534f0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5534f0([0x76,0x69,0x65,0x77])][_0x5534f0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5534f0([0x61,0x75,0x74,0x6f]);}}function _0x331db1(_0x6a697f){const _0x3e7065=[new window[(_0x5534f0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5620b6=>setTimeout(_0x5620b6,0x6987a4e9^_0xc12f21)),_0x26024d[_0x5534f0([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5534f0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3cbe72=>{const _0x43fdd8=0x698e9a22^_0xc12f21,_0x1e6fb2=_0x5d5b54[_0x5534f0([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0xd752b5(){_0x1e6fb2[_0x5534f0([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x43fdd8&&_0x3cbe72();}_0xd752b5(),_0x1e6fb2[_0x5534f0([0x6f,0x6e])](_0x5534f0([0x61,0x64,0x64]),_0xd752b5);})),new window[(_0x5534f0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3e6e4d=>{function _0x5b9d54(){for(const _0x4b985c in window)if(window[_0x5534f0([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x5534f0([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x4b985c))&&window[_0x4b985c]==_0x3556aa)return _0x3e6e4d();_0xf74dbc[_0x5534f0([0x73,0x74,0x61,0x74,0x65])]!=_0x5534f0([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x5534f0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5b9d54,0x698e89ad^_0xc12f21);}_0x2099bf(_0x5534f0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x5b9d54();})];return window[_0x5534f0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5534f0([0x72,0x61,0x63,0x65])](_0x3e7065)[_0x5534f0([0x74,0x68,0x65,0x6e])](()=>_0x6a697f);}async function _0x5e97b1(){if(await _0x26024d,_0x2099bf(_0x5534f0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x3a01d6=_0x5d5b54[_0x5534f0([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x3a2048=_0x5d5b54[_0x5534f0([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])](_0x3a01d6[_0x5534f0([0x69,0x64])]),_0x5ec069=_0x159412(_0x5534f0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x5ec069[_0x5534f0([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x3a01d6['id'],_0x3a2048?_0x3a2048['id']:null,!0x0),_0x5ec069[_0x5534f0([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x5534f0([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x5ec069[_0x5534f0([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x5ec069[_0x5534f0([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x1a4b25,void(_0x5ec069[_0x5534f0([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x1a4b25);}if(_0x2099bf(_0x5534f0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x4a75ae=_0x159412(_0x5534f0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x4a75ae[_0x5534f0([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x5534f0([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x4a75ae[_0x5534f0([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x4a75ae[_0x5534f0([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x1a4b25,_0x4a75ae[_0x5534f0([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x1a4b25;}_0xf74dbc[_0x5534f0([0x6d,0x6f,0x64,0x65,0x6c])][_0x5534f0([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1a4b25,_0xf74dbc[_0x5534f0([0x6d,0x6f,0x64,0x65,0x6c])][_0x5534f0([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1a4b25,_0xf74dbc[_0x5534f0([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5534f0([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2a4015(){return _0x2099bf(_0x5534f0([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x159412(_0x5534f0([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x5534f0([0x73,0x74,0x61,0x74,0x65])]==_0x5534f0([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4ff620(){return _0x2099bf(_0x5534f0([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 _0x4989d9(){return _0x2099bf(_0x5534f0([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x9a2a30(_0x3b45de){const _0x36a81e=_0x1a89f1();_0xf74dbc[_0x36a81e]=_0x5534f0([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])+_0x3b45de,_0x3b45de[_0x5534f0([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x5534f0([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x1a89f1()]=_0x3556aa),_0x3b45de!=_0x5534f0([0x56,0x61,0x6c,0x69,0x64])&&_0x5e97b1();}function _0x1a89f1(){const _0x2109c2=window[_0x5534f0([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5534f0([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5534f0([0x6e,0x6f,0x77])]())[_0x5534f0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5534f0([0x2e]),'');let _0x5eb1ae=_0x5534f0([0x79]);for(let _0x13483f=0x0;_0x13483f<_0x2109c2[_0x5534f0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x13483f+=0x2){let _0x3f659b=window[_0x5534f0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2109c2[_0x5534f0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x13483f,_0x13483f+0x2));_0x3f659b>=_0x250837[_0x5534f0([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3f659b-=_0x250837[_0x5534f0([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5eb1ae+=_0x250837[_0x3f659b];}return _0x5eb1ae;}function _0x54e91c(){const _0x4e2968=_0x55b7d6[_0x5534f0([0x73,0x70,0x6c,0x69,0x74])](_0x5534f0([0x2e]));if(0x3!=_0x4e2968[_0x5534f0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x332442(_0x4e2968[0x1]);function _0x332442(_0x4ac592){const _0x2aef9a=_0x1146a2(_0x4ac592);return _0x2aef9a&&_0xf05ade()?_0x2aef9a:null;function _0xf05ade(){const _0x1bab14=_0x2aef9a[_0x5534f0([0x6a,0x74,0x69])],_0xad36e=window[_0x5534f0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1bab14[_0x5534f0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1bab14[_0x5534f0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x45fa6b={..._0x2aef9a,[_0x5534f0([0x6a,0x74,0x69])]:_0x1bab14[_0x5534f0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1bab14[_0x5534f0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x45fa6b[_0x5534f0([0x76,0x63])],_0x1eed28(_0x45fa6b)==_0xad36e;}}}async function _0x21c9ef(){let _0x105518=!0x0;try{const _0x223487=_0x55b7d6[_0x5534f0([0x73,0x70,0x6c,0x69,0x74])](_0x5534f0([0x2e])),[_0x13c390,_0x74cc6d,_0x1b123d]=_0x223487;return _0x28022a(_0x13c390),await _0x3d5619(_0x13c390,_0x74cc6d,_0x1b123d),_0x105518;}catch(_0x383d81){return!0x1;}function _0x28022a(_0x73fba4){const _0xe49196=_0x1146a2(_0x73fba4);_0xe49196&&_0xe49196[_0x5534f0([0x61,0x6c,0x67])]==_0x5534f0([0x45,0x53,0x32,0x35,0x36])||(_0x105518=!0x1);}async function _0x3d5619(_0x43c428,_0x2945ca,_0x31d0db){const _0x49a73a=window[_0x5534f0([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5534f0([0x66,0x72,0x6f,0x6d])](_0x2b6758(_0x31d0db),_0x343daf=>_0x343daf[_0x5534f0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x21f597=new window[(_0x5534f0([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5534f0([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x43c428+_0x5534f0([0x2e])+_0x2945ca),_0xfbbabf=window[_0x5534f0([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5534f0([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xfbbabf)return;const _0x2e2c53=await _0xfbbabf[_0x5534f0([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5534f0([0x6a,0x77,0x6b]),_0x18fd39,{[_0x5534f0([0x6e,0x61,0x6d,0x65])]:_0x5534f0([0x45,0x43,0x44,0x53,0x41]),[_0x5534f0([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5534f0([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5534f0([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xfbbabf[_0x5534f0([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5534f0([0x6e,0x61,0x6d,0x65])]:_0x5534f0([0x45,0x43,0x44,0x53,0x41]),[_0x5534f0([0x68,0x61,0x73,0x68])]:{[_0x5534f0([0x6e,0x61,0x6d,0x65])]:_0x5534f0([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2e2c53,_0x49a73a,_0x21f597)||(_0x105518=!0x1);}}function _0x1146a2(_0x36b31a){return _0x36b31a[_0x5534f0([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5534f0([0x65,0x79]))?JSON[_0x5534f0([0x70,0x61,0x72,0x73,0x65])](_0x2b6758(_0x36b31a)):null;}function _0x2b6758(_0x235dd1){return window[_0x5534f0([0x61,0x74,0x6f,0x62])](_0x235dd1[_0x5534f0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5534f0([0x2b]))[_0x5534f0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5534f0([0x2f])));}function _0x1eed28(_0x49b8d6){let _0x54081a=0x1505;function _0x32e421(_0x25e0f3){for(let _0x128ce0=0x0;_0x128ce0<_0x25e0f3[_0x5534f0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x128ce0++){const _0x3b0bdd=_0x25e0f3[_0x5534f0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x128ce0);_0x54081a=(_0x54081a<<0x5)+_0x54081a+_0x3b0bdd,_0x54081a&=_0x54081a;}}function _0x20f0c7(_0x114a63){Array[_0x5534f0([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x114a63)?_0x114a63[_0x5534f0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x20f0c7):_0x114a63&&typeof _0x114a63==_0x5534f0([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5534f0([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x114a63)[_0x5534f0([0x73,0x6f,0x72,0x74])]()[_0x5534f0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x45f260,_0x2ea39a])=>{_0x32e421(_0x45f260),_0x20f0c7(_0x2ea39a);}):_0x32e421(window[_0x5534f0([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x114a63));}return _0x20f0c7(_0x49b8d6),_0x54081a>>>0x0;}function _0x338626(_0x2ce800){return _0x2ce800[_0x5534f0([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5534f0([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5534f0([0x30]));}function _0xf20e3a(_0x2c24b2){return _0x2c24b2[_0x5534f0([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5534f0([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5534f0([0x6a,0x6f,0x69,0x6e])]('');}function _0x2099bf(_0x7dfec){return _0xf74dbc[_0x5534f0([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5534f0([0x68,0x61,0x73])](_0x7dfec);}function _0x159412(_0x6767dd){return _0xf74dbc[_0x5534f0([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5534f0([0x67,0x65,0x74])](_0x6767dd);}function _0x1a4b25(){}function _0x5534f0(_0x25dcaf){return _0x25dcaf['map'](_0x5dadc1=>String['fromCharCode'](_0x5dadc1))['join']('');}_0x9a2a30(await _0x22f1b8());}(this);}['createRevision'](_0x5b7076){const _0x1c5e66=this['editor']['plugins']['get']('Users');return new h({'id':_0x5b7076['id'],'name':_0x5b7076['name'],'creator':_0x5b7076['creatorId']?_0x1c5e66['getUser'](_0x5b7076['creatorId']):null,'diffData':_0x5b7076['diffData']||_0x5b7076['data'],'authors':_0x5b7076['authorsIds']['map'](_0x5abac0=>_0x1c5e66['getUser'](_0x5abac0)),'createdAt':new Date(_0x5b7076['createdAt']),'attributes':_0x5b7076['attributes'],'fromVersion':_0x5b7076['fromVersion'],'toVersion':_0x5b7076['toVersion']});}['addRevision'](_0x1a1689,_0x4daaf1=0x0){this['_revisions']['add'](_0x1a1689,_0x4daaf1);}['getRevision'](_0x36262f){return this['_revisions']['get'](_0x36262f);}['getRevisions'](_0x1e3248={'toJSON':!0x1}){const _0x4e6e00=Array['from'](this['_revisions']);return _0x4e6e00['reverse'](),_0x1e3248['toJSON']?_0x4e6e00['map'](_0x40ce46=>_0x40ce46['toJSON']()):_0x4e6e00;}['getIndex'](_0x1b508e){return this['_revisions']['getIndex'](_0x1b508e);}['getEarlierVisibleRevision'](_0x3ef687){const [,_0xd81660]=this['getRevisionsIterator'](_0x3ef687,{'direction':'earlier'});return _0xd81660;}['getLaterVisibleRevision'](_0x8f1ad7){const [,_0x49fd71]=this['getRevisionsIterator'](_0x8f1ad7,{'direction':'later'});return _0x49fd71;}['getRevisionsInDiff'](_0x49de25){const _0x5962fb=[];for(const _0x137989 of this['getRevisionsIterator'](_0x49de25['newRevisionId']))if(_0x5962fb['push'](_0x137989),_0x137989['id']===_0x49de25['oldRevisionId'])break;return _0x5962fb;}*['getRevisionsIterator'](_0x1e31e2,{direction:_0x39f024='earlier',filter:_0x18a1c5=()=>!0x0}={}){const _0x3aa561='earlier'===_0x39f024?0x1:-0x1;let _0x2f0ead=this['_revisions']['get'](_0x1e31e2),_0x3c917f=this['getIndex'](_0x2f0ead);for(yield _0x2f0ead;_0x2f0ead;){if(_0x3c917f+=_0x3aa561,_0x2f0ead=this['getRevision'](_0x3c917f),!_0x2f0ead)return;_0x18a1c5(_0x2f0ead)&&(yield _0x2f0ead);}}}class V extends _0x5df236{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x56137f,'c'],[_0x57d156,'a'],[_0x263daa,'e'],[_0x3d6ca2,'r'],[_0x445ae7,'u']]);['_typeCharToViewClass']=new Map([['c',_0x56137f],['a',_0x57d156],['e',_0x263daa],['r',_0x3d6ca2],['u',_0x445ae7]]);async['loadRevisionData'](_0xdf212d,_0x45a373){if(_0xdf212d['diffData']||!_0x45a373)return;const _0x411a77=this['editor']['config']['get']('collaboration.channelId'),_0x3189bb=await _0x45a373['getRevision']({'channelId':_0x411a77,'revisionId':_0xdf212d['id']});_0xdf212d['diffData']=_0x3189bb['diffData'];}['getRevisionDocumentData'](_0x399e25){const _0x390cf8={};for(const _0xfd8d3a in _0x399e25['diffData']){if(_0x399e25['diffData'][_0xfd8d3a]['attachChange']&&!_0x399e25['diffData'][_0xfd8d3a]['attachChange']['isAttached'])continue;const _0x4e40e4=this['_removeRevisionMarkers'](JSON['parse'](_0x399e25['diffData'][_0xfd8d3a]['insertions'])),_0x4c2828=this['editor']['editing']['view']['document'],_0x3e4b0f=new _0x9505ad(_0x4c2828,_0x4e40e4['map'](_0x443142=>this['_getViewFromDiffObj'](_0x443142,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x390cf8[_0xfd8d3a]=this['editor']['data']['processor']['toData'](_0x3e4b0f),this['editor']['data']['processor']['useFillerType']('default');}return _0x390cf8;}['getRevisionRootsAttributes'](_0x2c46f0){const _0x5ec939={};for(const _0x121c1e in _0x2c46f0['diffData'])_0x2c46f0['diffData'][_0x121c1e]['attachChange']&&!_0x2c46f0['diffData'][_0x121c1e]['attachChange']['isAttached']||(_0x5ec939[_0x121c1e]=_0x2c46f0['diffData'][_0x121c1e]['attributesAfter']||{});return _0x5ec939;}['_getTypeCharForViewElement'](_0x3e0c6a){return this['_viewClassToTypeChar']['get'](_0x3e0c6a['constructor']);}['_getViewFromDiffObj'](_0x5447f2,_0x115514){const _0x2a93f9=this['editor']['editing']['view']['document'];if('string'==typeof _0x5447f2)return new _0x2dccb5(_0x2a93f9,_0x5447f2);{let _0x154820,_0x3d3699;_0x3d3699='u'==_0x5447f2['type']||'r'==_0x5447f2['type']?[]:_0x5447f2['children']['map'](_0x3ff51e=>this['_getViewFromDiffObj'](_0x3ff51e,_0x115514));const _0x397c7f=this['_typeCharToViewClass']['get'](_0x5447f2['type'])||_0x18702a,_0x5853f0=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x154820=new _0x397c7f(_0x2a93f9,_0x5447f2['name'],_0x5447f2['attributes'],_0x3d3699),'u'==_0x5447f2['type']&&_0x5447f2['children'][0x0]){const _0x15552b=_0x5447f2['children'][0x0];if(_0x154820['render']=function(_0x3c0b61){const _0x5afba2=_0x3c0b61['createElement']('div');return _0x5afba2['innerHTML']=_0x15552b,_0x5afba2['childNodes'][0x0];},_0x115514){const _0x29d0a2=new _0x9505ad(_0x2a93f9);_0x29d0a2['_appendChild'](_0x154820);const _0x857eb4=Array['from'](_0x5853f0['viewChildrenToDom'](_0x29d0a2,{'bind':!0x1})),_0x59e564=_0x5853f0['domDocument']['createElement']('div');_0x59e564['append'](..._0x857eb4),_0x154820=Array['from'](_0x5853f0['domChildrenToView'](_0x59e564))[0x0];}}else{if('r'==_0x5447f2['type']&&_0x5447f2['children'][0x0]){const _0x135b29=_0x5447f2['children'][0x0];if(_0x154820['render']=function(_0x3eafc5){_0x3eafc5['innerHTML']=_0x135b29;},_0x115514){const _0xf39313=new _0x9505ad(_0x2a93f9);_0xf39313['_appendChild'](_0x154820);const _0x1774c8=Array['from'](_0x5853f0['viewChildrenToDom'](_0xf39313,{'bind':!0x1})),_0x5b2dc4=_0x5853f0['domDocument']['createElement']('div');_0x5b2dc4['append'](..._0x1774c8);const _0x534a34=Array['from'](_0x5853f0['domChildrenToView'](_0x5b2dc4));_0x534a34['length']>0x1?_0x154820['_appendChild'](_0x534a34):_0x154820=_0x534a34[0x0];}}}if(_0x5447f2['customProperties']){for(const [_0x51a74f,_0x47726b]of _0x5447f2['customProperties'])_0x154820['_setCustomProperty'](_0x51a74f,_0x47726b);}const _0xb15724=void 0x0===_0x5447f2['fillerOffset']?null:_0x5447f2['fillerOffset'];return null!==_0xb15724&&(_0x154820['getFillerOffset']=()=>_0xb15724),_0x154820;}}['_makeModelFromViewString'](_0x54b37d){const _0x3a7fb7=JSON['parse'](_0x54b37d),_0xe57a03=this['editor']['editing']['view']['document'],_0x5569b0=new _0x9505ad(_0xe57a03,_0x3a7fb7['map'](_0x4a2b48=>this['_getViewFromDiffObj'](_0x4a2b48,!0x0)));return this['editor']['data']['toModel'](_0x5569b0);}['_removeRevisionMarkers'](_0x4c23b8){return(_0x4c23b8=_0x4c23b8['filter'](_0x2c6a3c=>!_0x2c6a3c['name']||'revision-start'!==_0x2c6a3c['name']&&'revision-end'!==_0x2c6a3c['name']))['forEach'](_0x5c3051=>{'string'!=typeof _0x5c3051&&(_0x5c3051['children']=this['_removeRevisionMarkers'](_0x5c3051['children']),_0x5c3051['attributes']=_0x5c3051['attributes']['filter'](_0x94ff88=>!_0x94ff88[0x0]['startsWith']('data-revision-')));}),_0x4c23b8;}}function g(_0x42e7d0,_0x12a1b9,_0x67f81e){const t=_0x42e7d0['t'];switch(_0x12a1b9){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'},_0x67f81e);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x67f81e);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 u extends _0x5df236{['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[_0x3ae4e4,I,V,_0x1081f4];}constructor(_0x404675){super(_0x404675),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new x(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x59dc73=_0x3ebcbf();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x59dc73},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 _0x580a6e=this['repository']['getRevision'](0x0),_0x58c819=_0x580a6e&&null===_0x580a6e['creator']?_0x580a6e:null;if(this['_continueCurrentRevision']=!!_0x58c819&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x2e4525=this['_source']['getCurrentRevisionId'](),_0x265681=this['repository']['getRevision'](_0x2e4525);if(_0x265681)this['_startingVersion']=_0x265681['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x1c0dc5=this['_source']['history']['_operations']['find'](_0x3811d8=>!_0x3811d8['_isInit']),_0xb97257=_0x1c0dc5?_0x1c0dc5['baseVersion']:this['_source']['history']['version'];_0x580a6e?(_0x580a6e['toVersion']<_0xb97257&&_0x580a6e['_update']({'toVersion':_0xb97257}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x58c819['id'],this['_startingVersion']=_0x58c819['fromVersion']):(this['_startingVersion']=_0x580a6e['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0xb97257,this['_continueCurrentRevision']=!0x1);}}else _0x58c819&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x58c819['toVersion'],this['editor']['model']['document']['history']['version']),_0x58c819['fromVersion']===_0x58c819['toVersion']?(0x0!==_0x58c819['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x58c819['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x58c819['id'],this['_startingVersion']=_0x58c819['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',_0x2ab4bd=>!_0x2ab4bd),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xdd1a43=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x21ab41;for(const _0x2a33e4 in _0xdd1a43){const _0x4816da=_0x2a33e4,_0x1376af=_0xdd1a43[_0x4816da];if('revisionHistoryLicenseKeyValid'==_0x1376af||'revisionHistoryLicenseKeyInvalid'==_0x1376af||'revisionHistoryLicenseKeyExpired'==_0x1376af||'revisionHistoryLicenseKeyDomainLimit'==_0x1376af||'revisionHistoryLicenseKeyNotAllowed'==_0x1376af||'revisionHistoryLicenseKeyEvaluationLimit'==_0x1376af||'revisionHistoryLicenseKeyTrialLimit'==_0x1376af||'revisionHistoryLicenseKeyUsageLimit'==_0x1376af){delete _0xdd1a43[_0x4816da],_0x21ab41=_0x1376af,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x21ab41&&_0xdd1a43['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x21ab41&&_0xdd1a43['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x21ab41&&_0xdd1a43['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x21ab41&&_0xdd1a43['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x21ab41&&_0xdd1a43['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x21ab41&&_0xdd1a43['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x21ab41&&_0xdd1a43['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x471aee=this['repository']['getRevision'](0x0),_0x20233f=await this['getRevisionDocumentData'](_0x471aee),_0x1244cf=await this['getRevisionRootsAttributes'](_0x471aee);this['_replaceEditorDataWithRevisionData'](_0x20233f,_0x1244cf);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x2a198d){this['_source']=_0x2a198d;}async['update'](){const _0x1a756f=await this['_source']['getLatestVersion']();if(_0x1a756f>this['currentRevision']['toVersion']){await this['_loadState']();const _0x4116de=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x1a756f});_0x4116de['authors']=_0x4116de['authorsIds']['map'](_0xd1361=>this['editor']['plugins']['get']('Users')['getUser'](_0xd1361)),this['currentRevision']['_update'](_0x4116de);}}async['saveRevision'](_0x1e60c0={},_0x4f4d3a=null){const _0x38eaaf=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x4f4d3a>this['currentRevision']['toVersion']&&(_0x4f4d3a=null),null===_0x4f4d3a&&(_0x4f4d3a=await this['_source']['getLatestVersion']());const _0x5ead66=this['_getFromVersion'](_0x4f4d3a),_0x315931=this['buildRevisionData']({'from':_0x5ead66,'to':_0x4f4d3a});if(this['currentRevision']['toVersion']<_0x4f4d3a){const _0x5e8e84=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x4f4d3a,'to':_0x4f4d3a});_0x5e8e84['authors']=[],_0x5e8e84['authorsIds']=[],_0x5e8e84['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x5e8e84,!0x0),delete _0x5e8e84['authors'],_0x38eaaf['push'](_0x5e8e84);}_0x1e60c0['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x1e60c0['name']=_0x1e60c0['name']||null,_0x1e60c0['id']=_0x1e60c0['id']||_0x3ebcbf(),_0x1e60c0={..._0x1e60c0,..._0x315931};const _0x121c5e=this['addRevisionData'](_0x1e60c0);_0x38eaaf['push'](_0x1e60c0);const _0x58f729=this['repository']['getIndex'](_0x121c5e);if(0x0!==_0x58f729){const _0x42b24e=this['repository']['getRevision'](_0x58f729-0x1);if(_0x42b24e['fromVersion']!==_0x4f4d3a){const _0x18ee46=this['_revisionDataBuilder']['getData'](_0x4f4d3a,_0x42b24e['toVersion']),_0x221b47={'id':_0x42b24e['id'],'diffData':_0x18ee46['diffData'],'authorsIds':_0x18ee46['authorsIds'],'authors':_0x18ee46['authorsIds']['map'](_0x5076d4=>this['editor']['plugins']['get']('Users')['getUser'](_0x5076d4)),'fromVersion':_0x4f4d3a};_0x42b24e===this['currentRevision']&&(_0x221b47['createdAt']=new Date(_0x1e60c0['createdAt']['getTime']()+0xa)),_0x42b24e['_update'](_0x221b47,!0x0),delete _0x221b47['authors'],_0x38eaaf['push'](_0x221b47);}}if(this['adapter']){for(const _0x154836 of _0x38eaaf)this['_bufferUpdate'](_0x154836['id'],_0x154836,!0x0);this['sendBufferedUpdates']();}return _0x121c5e;}['addRevisionData'](_0x393c71){const _0x35e756=this['repository']['createRevision'](_0x393c71);return this['adapter']&&_0x35e756['on']('_update',(_0x5caf3a,_0x4530d4,_0x4844fc)=>{_0x4844fc||(this['_bufferUpdate'](_0x4530d4['id'],_0x4530d4,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x35e756,this['_findInsertionIndex'](_0x35e756)),_0x35e756;}async['getRevisionDocumentData'](_0x13db9b){return await this['_utils']['loadRevisionData'](_0x13db9b,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x13db9b);}async['getRevisionRootsAttributes'](_0xad9b47){return await this['_utils']['loadRevisionData'](_0xad9b47,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0xad9b47);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x383c26=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x13d856=0x0;_0x13d856<_0x383c26['length'];_0x13d856++){const _0x41ac45=_0x383c26[_0x13d856];let _0x1f2f30=!0x1;for(const _0x119191 of Object['keys'](_0x41ac45))void 0x0===_0x41ac45[_0x119191]?delete _0x41ac45[_0x119191]:'id'!==_0x119191&&(_0x1f2f30=!0x0);_0x1f2f30||(_0x383c26[_0x13d856]=null);}if(_0x383c26=_0x383c26['filter'](_0x1e356f=>null!==_0x1e356f),!_0x383c26['length'])return;for(let _0x3c051d=0x0;_0x3c051d<_0x383c26['length'];_0x3c051d++){const _0x6f44b0=_0x383c26[_0x3c051d];void 0x0!==_0x6f44b0['fromVersion']&&void 0x0===_0x6f44b0['toVersion']&&(_0x6f44b0['toVersion']=this['repository']['getRevision'](_0x6f44b0['id'])['toVersion']),void 0x0!==_0x6f44b0['toVersion']&&void 0x0===_0x6f44b0['fromVersion']&&(_0x6f44b0['fromVersion']=this['repository']['getRevision'](_0x6f44b0['id'])['fromVersion']);}const _0x328256=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x383c26,_0x328256)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x5a8be6=>{if(_0x5a8be6){for(const _0x5d00e7 of _0x5a8be6)this['setRevisionData']({'id':_0x5d00e7['id'],'createdAt':_0x5d00e7['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x8a9937=null,from:_0x48b43e=null,to:_0x4f0a03=null}){_0x48b43e=null!==_0x48b43e?_0x48b43e:_0x8a9937['fromVersion'],_0x4f0a03=null!==_0x4f0a03?_0x4f0a03:_0x8a9937['toVersion'];const _0x5ab00f=this['_revisionDataBuilder']['getData'](_0x48b43e,_0x4f0a03),_0x109227={'diffData':_0x5ab00f['diffData'],'authorsIds':_0x5ab00f['authorsIds'],'fromVersion':_0x48b43e,'toVersion':_0x4f0a03};if(!_0x8a9937||_0x4f0a03!==_0x8a9937['toVersion']){const _0x101440=_0x4f0a03-0x1,_0x3f5992=this['_source']['history']['getOperation'](_0x101440);_0x109227['createdAt']=_0x3f5992&&_0x3f5992['createdAt']||new Date();}if(this['_loadedStateData']&&_0x48b43e===this['_loadedStateData']['fromVersion']){for(const _0x13033b of this['_loadedStateData']['authors'])_0x109227['authorsIds']['includes'](_0x13033b['id'])||_0x109227['authorsIds']['push'](_0x13033b['id']);}return _0x109227;}['_bufferUpdate'](_0x52c655,_0x2e19b6,_0x3f83fa){if(this['_bufferedUpdates']['has'](_0x52c655)){const _0x210111=this['_bufferedUpdates']['get'](_0x52c655);_0x2e19b6=_0x3f83fa?{..._0x210111,..._0x2e19b6}:{..._0x2e19b6,..._0x210111};}this['_bufferedUpdates']['set'](_0x52c655,_0x2e19b6);}['setRevisionData'](_0x547dbd){const _0x6625ec=this['repository']['getRevision'](_0x547dbd['id']);if(_0x547dbd['createdAt']&&(_0x547dbd['createdAt']=new Date(_0x547dbd['createdAt'])),_0x547dbd['authorsIds']){const _0x567715=this['editor']['plugins']['get']('Users');_0x547dbd['authors']=_0x547dbd['authorsIds']['map'](_0xf93156=>_0x567715['getUser'](_0xf93156));}_0x6625ec['_update'](_0x547dbd,!0x0);}['_createInitialRevision'](_0x5c5f75){const _0x51dd79=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x51dd79)this['_initialRevisionId']=_0x51dd79['id'];else{const _0x128dd3=!this['editor']['model']['document']['roots']['find'](_0xda97b4=>this['editor']['model']['hasContent'](_0xda97b4)),_0x3cc979=this['editor']['plugins']['get']('Users')['me']['id'],_0x3281bb=g(this['editor']['locale'],_0x128dd3?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x5c5f75,'to':_0x5c5f75,'id':this['_initialRevisionId'],'name':_0x3281bb,'creatorId':_0x3cc979});}}['_createCurrentRevision'](_0x24c827){const _0x588aa6=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x588aa6),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x24c827,'to':_0x24c827,'id':_0x588aa6,'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'](_0x484713,_0x480743){let _0x31f881=this['editor']['config']['get']('initialData'),_0x224be4=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x31f881){_0x31f881={};for(const _0x37c983 of this['editor']['model']['document']['getRootNames']())_0x31f881[_0x37c983]='';}if('string'==typeof _0x31f881&&(_0x31f881={'main':_0x31f881}),void 0x0===_0x224be4){_0x224be4={};for(const _0x1dfcca of this['editor']['model']['document']['getRootNames']())_0x224be4[_0x1dfcca]={};}let _0x47de31=!0x1;const _0x3047cb=Object['keys'](_0x31f881),_0x301a38=Object['keys'](_0x484713);for(const _0xceb2a6 of _0x3047cb){if(_0x31f881[_0xceb2a6]!==_0x484713[_0xceb2a6]&&''!==_0x31f881[_0xceb2a6]['trim']()){_0x47de31=!0x0;break;}if(!_0x2f3b95(_0x224be4[_0xceb2a6],_0x480743[_0xceb2a6])&&Object['keys'](_0x224be4[_0xceb2a6])['length']>0x0){_0x47de31=!0x0;break;}}_0x47de31||(_0x47de31=_0x301a38['some'](_0x163cdd=>!this['editor']['model']['document']['getRoot'](_0x163cdd))),_0x47de31&&_0x5a9d49('editor-initial-data-replaced-with-revision-data',{'editorData':_0x31f881,'editorRootsAttributes':_0x224be4,'revisionData':_0x484713,'revisionRootsAttributes':_0x480743}),this['editor']['config']['set']('initialData',_0x484713),this['editor']['config']['set']('rootsAttributes',_0x480743);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x233b54=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x233b54['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x5f3074){const _0x35f8a7=this['repository']['getRevisions']();_0x35f8a7['reverse']();let _0x2ef3ac=0x0;for(;_0x2ef3ac<_0x35f8a7['length'];){const _0x44b9bd=_0x35f8a7[_0x2ef3ac];if(_0x44b9bd===this['currentRevision']){_0x2ef3ac++;continue;}if(_0x44b9bd['id']===this['_initialRevisionId'])break;const _0x3cc1dd=_0x5f3074['toVersion']-_0x44b9bd['toVersion']||_0x5f3074['fromVersion']-_0x44b9bd['fromVersion'];if(_0x3cc1dd>0x0)break;if(_0x3cc1dd<0x0)_0x2ef3ac++;else{if(!_0x5f3074['creator']&&_0x44b9bd['creator'])break;if(_0x44b9bd['creator']||!_0x5f3074['creator']){if(_0x5f3074['createdAt']>_0x44b9bd['createdAt'])break;_0x2ef3ac++;}else _0x2ef3ac++;}}return _0x2ef3ac;}['_getFromVersion'](_0x38154c){const _0x443fab=this['repository']['getRevisions']();_0x443fab['reverse'](),_0x443fab['shift']();const _0x3256ba=_0x443fab['find'](_0x3d4066=>_0x3d4066['toVersion']<=_0x38154c)['toVersion'];return _0x3256ba<this['_startingVersion']?this['_startingVersion']:_0x3256ba;}['_makeRevision']({name:_0x52302d,from:_0x5e635d,to:_0x393fe1,creatorId:_0x408d4c,id:_0x1c509c}){const _0x1d0f3f=this['buildRevisionData']({'from':_0x5e635d,'to':_0x393fe1});_0x1d0f3f['name']=_0x52302d,_0x1d0f3f['creatorId']=_0x408d4c,_0x1d0f3f['id']=_0x1c509c;const _0x8900d0=this['addRevisionData'](_0x1d0f3f);return this['adapter']&&this['_bufferUpdate'](_0x1d0f3f['id'],_0x1d0f3f,!0x0),_0x8900d0;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class x{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x5f25d4){this['editor']=_0x5f25d4,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'](_0x1f822e){this['source']=_0x1f822e;const _0x5f39e0=new Map(),_0x309f3d=new Map(),_0x3232cc=this['editor']['model']['document']['roots']['map'](_0x4d4df3=>_0x4d4df3['rootName']);for(const _0x525d91 of _0x3232cc){const _0x13974d=this['editor']['model']['document']['getRoot'](_0x525d91),_0x2197b5=N(_0x13974d);_0x5f39e0['set'](_0x525d91,_0x2197b5),_0x309f3d['set'](_0x525d91,Object['fromEntries'](_0x13974d['getAttributes']()));}const _0x399541=Array['from'](this['editor']['model']['markers'])['map'](_0x225733=>[_0x225733['name'],_0x225733['getRange']()]),_0x5c264c=this['source']['version'];this['_saveMetaData'](_0x5c264c,_0x5f39e0,_0x399541,_0x309f3d),this['_startingRevisionId']=this['_revisionId'];const _0x418220=new Map(),_0x409ddd=new Map();for(const _0x5ed5d1 of _0x3232cc){const _0x410eba=P(_0x5ed5d1);_0x418220['set'](_0x5ed5d1,_0x410eba),_0x409ddd['set'](_0x5ed5d1,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x418220,[],_0x409ddd);}['getData'](_0x53abfe,_0x37f3ef){if(this['_lastFrom']===_0x53abfe&&this['_lastTo']<=_0x37f3ef)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x37f3ef,!0x0);else{if(!this['_savedMetaData']['has'](_0x53abfe)){const _0xb3b482=this['_getPreviousFrom'](_0x53abfe);this['_calculateMetaData'](_0xb3b482,_0x53abfe,!0x1);}this['_calculateMetaData'](_0x53abfe,_0x37f3ef,!0x0);}return this['_lastFrom']=_0x53abfe,this['_lastTo']=_0x37f3ef,this['_getState']();}['loadState'](_0x5d018f){const _0x4df854=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x5d018f['fromVersion'],this['_lastTo']=_0x5d018f['toVersion'];for(const _0x5cd8e4 in _0x5d018f['diffData']){const _0x41481c=_0x5d018f['diffData'][_0x5cd8e4]['attachChange'],_0x4bc90a=_0x35023c(_0x5d018f['diffData'][_0x5cd8e4]['attributesBefore'])||{},_0x385c8d=_0x4df854['_makeModelFromViewString'](_0x5d018f['diffData'][_0x5cd8e4]['deletions']);_0x385c8d['rootName']=_0x5cd8e4,_0x385c8d['_isAttached']=!_0x41481c||!_0x41481c['isAttached'],_0x385c8d['isAttached']=()=>_0x385c8d['_isAttached'],this['_baseRoots']['set'](_0x5cd8e4,_0x385c8d),this['_baseRootsAttributes']['set'](_0x5cd8e4,_0x4bc90a),_0x41481c&&this['_touchedRoots']['set'](_0x5cd8e4,_0x41481c);const _0x5b4642=this['_makeIdsRoot'](_0x385c8d);this['_baseIdsRoots']['set'](_0x5cd8e4,_0x5b4642);for(const [_0x271452,_0x269d36]of _0x385c8d['markers']){if(!_0x271452['startsWith']('revision:'))continue;const _0x30c93a=_0x271452['split'](':')[0x2];for(const _0x1ef8c8 of _0x269d36['getWalker']({'singleCharacters':!0x0})){const _0x5400e3=this['_getVidAttributeName'](_0x1ef8c8),_0x3c2288='elementEnd'==_0x1ef8c8['type']?_0x1ef8c8['previousPosition']['path']['slice'](0x0,-0x1):_0x1ef8c8['previousPosition']['path'],_0x620554=_0x5b4642['getNodeByPath'](_0x3c2288)['getAttribute'](_0x5400e3);this['_touched']['set'](_0x620554,{'userId':_0x30c93a});}}}this['_startingRevisionId']=this['_revisionId'];const _0x4ca412=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x3654f0=>!this['_touched']['has'](_0x3654f0));let _0x25b1fc=0x0;const _0x2dc047=new Map();for(const _0x188071 in _0x5d018f['diffData']){const _0xe2ee3b=_0x5d018f['diffData'][_0x188071]['attachChange'],_0x3bd727=_0x35023c(_0x5d018f['diffData'][_0x188071]['attributesAfter'])||{},_0xde0180=_0x4df854['_makeModelFromViewString'](_0x5d018f['diffData'][_0x188071]['insertions']);_0xde0180['rootName']=_0x188071,_0xde0180['_isAttached']=!_0xe2ee3b||_0xe2ee3b['isAttached'],_0xde0180['isAttached']=()=>_0xde0180['_isAttached'],this['_diffRoots']['set'](_0x188071,_0xde0180),this['_diffRootsAttributes']['set'](_0x188071,_0x3bd727);const _0x40c835=this['_makeIdsRoot'](_0xde0180,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x188071,_0x40c835),_0x2dc047['set'](_0x188071,_0xde0180['isAttached']()?_0x3bd727:{});for(const [_0x393023,_0x4d9cef]of _0xde0180['markers']){if(!_0x393023['startsWith']('revision:'))continue;const _0x2497ef=_0x393023['split'](':')[0x2];for(const _0x241cb8 of _0x4d9cef['getWalker']({'singleCharacters':!0x0})){const _0x220922=this['_getVidAttributeName'](_0x241cb8),_0x4dfffa=this['_revisionId']++,_0x296a43='elementEnd'==_0x241cb8['type']?_0x241cb8['previousPosition']['path']['slice'](0x0,-0x1):_0x241cb8['previousPosition']['path'];_0x40c835['getNodeByPath'](_0x296a43)['_setAttribute'](_0x220922,_0x4dfffa),this['_touched']['set'](_0x4dfffa,{'userId':_0x2497ef});}}for(const _0xddaeec of this['editor']['model']['createRangeIn'](_0xde0180)['getWalker']({'singleCharacters':!0x0})){const _0x1f06ef=this['_getVidAttributeName'](_0xddaeec),_0x2543ec='elementEnd'==_0xddaeec['type']?_0xddaeec['previousPosition']['path']['slice'](0x0,-0x1):_0xddaeec['previousPosition']['path'],_0x2d9035=_0x40c835['getNodeByPath'](_0x2543ec);_0x2d9035['getAttribute'](_0x1f06ef)>0x0||_0x2d9035['_setAttribute'](_0x1f06ef,_0x4ca412[_0x25b1fc++]);}for(const [_0x3f6bed,_0x24184c]of _0xde0180['markers'])_0x3f6bed['startsWith']('revision:')||this['_markers']['set'](_0x3f6bed,_0x24184c);}const _0x310b02=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0x310b02),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x310b02,0x1));const _0x53458a=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x53458a),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x53458a,0x1));const _0x55a94f=Array['from'](this['_diffRoots'])['map'](([_0x229ef7,_0x2605ac])=>[_0x229ef7,N(_0x2605ac)]);this['_saveMetaData'](this['_lastTo'],_0x55a94f,this['_markers'],_0x2dc047);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0xc12e5,_0x8f7d7e,_0x4f1477,_0x2e9101){const _0x29a8d5=new Map(_0x8f7d7e),_0x3357e8=new Map(_0x35023c(_0x2e9101)),_0x4eb5a6=new Map();for(const [_0x3e4853,_0x93a9d5]of _0x4f1477)_0x4eb5a6['set'](_0x3e4853,{'start':_0x93a9d5['start']['clone'](),'end':_0x93a9d5['end']['clone'](),'rootName':_0x93a9d5['root']['rootName']});this['_savedMetaData']['set'](_0xc12e5,{'roots':_0x29a8d5,'markers':_0x4eb5a6,'rootsAttributes':_0x3357e8});}['_removeMetaData'](_0x1b40d2){this['_savedMetaData']['delete'](_0x1b40d2);}['_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'](_0x62f427,_0x236cd2=null){let _0xc92e5c=null;_0x62f427['is']('documentFragment')||(_0xc92e5c=new ut(_0x62f427['name'],{'vid_start':null===_0x236cd2?this['_revisionId']++:_0x236cd2++}));const _0x4dfece=[];for(const _0x1a6b19 of _0x62f427['getChildren']())if(_0x1a6b19['is']('element')){_0x4dfece['push'](this['_makeIdsRoot'](_0x1a6b19,_0x236cd2));const _0xdd588f=_0x4dfece[_0x4dfece['length']-0x1];null!==_0x236cd2&&(_0x236cd2=_0xdd588f['is']('element','$text')?_0xdd588f['getAttribute']('vid')+0x1:_0xdd588f['getAttribute']('vid_end')+0x1);}else{for(let _0x462307=0x0;_0x462307<_0x1a6b19['offsetSize'];_0x462307++)_0x4dfece['push'](new ut('$text',{'vid':null===_0x236cd2?this['_revisionId']++:_0x236cd2++}));}if(_0x62f427['is']('documentFragment')){const _0x1b1750=P(_0x62f427['rootName']);return _0x1b1750['_insertChild'](0x0,_0x4dfece),_0x1b1750;}return _0xc92e5c['_setAttribute']('vid_end',null===_0x236cd2?this['_revisionId']++:_0x236cd2++),_0xc92e5c['_insertChild'](0x0,_0x4dfece),_0xc92e5c;}['_calculateMetaData'](_0x5810ab,_0x4d0852,_0x3ef73c){this['_reset']();const {roots:_0x51666a,markers:_0x14bb40,rootsAttributes:_0x4672f3}=this['_savedMetaData']['get'](_0x5810ab);this['_baseRoots']=new Map(_0x51666a),this['_baseRootsAttributes']=new Map(_0x35023c(_0x4672f3));for(const [_0x5b0803,_0x5797ec]of this['_baseRoots'])if('$graveyard'!==_0x5b0803&&(this['_diffRoots']['set'](_0x5b0803,N(_0x5797ec)),this['_diffRootsAttributes']=new Map(_0x35023c(_0x4672f3)),_0x3ef73c)){const _0x302e2c=this['_revisionId'];this['_idsRoots']['set'](_0x5b0803,this['_makeIdsRoot'](_0x5797ec)),this['_baseIdsRoots']['set'](_0x5b0803,this['_makeIdsRoot'](_0x5797ec,_0x302e2c));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x3ef73c&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x4c46db,_0x3b90b3]of _0x14bb40){const _0xe16ac1=this['_baseRoots']['get'](_0x3b90b3['rootName']),_0x20929f=this['_diffRoots']['get'](_0x3b90b3['rootName']),_0x338a5c=new ft(this['_fixPosition'](_0x3b90b3['start'],_0xe16ac1),this['_fixPosition'](_0x3b90b3['end'],_0xe16ac1)),_0x5dc539=this['_fixRange'](_0x338a5c,_0x20929f);_0xe16ac1['markers']['set'](_0x4c46db,_0x338a5c),this['_markers']['set'](_0x4c46db,_0x5dc539);}this['_applyOperations'](_0x5810ab,_0x4d0852,_0x3ef73c);}['_applyOperations'](_0x329293,_0x9f03f9,_0x1816d1){for(const _0x42b572 of this['source']['getOperations'](_0x329293,_0x9f03f9))this['_handleOperation'](_0x42b572,_0x1816d1);for(const _0x497999 of this['_diffRoots']['values']())_0x497999['markers']['clear']();for(const [_0x5a6c43,_0x49c6f3]of this['_markers']){this['_diffRoots']['get'](_0x49c6f3['root']['rootName'])['markers']['set'](_0x5a6c43,_0x49c6f3['clone']());}const _0x964f95=new Map(),_0x4c0512=new Map();for(const [_0x3f487c,_0x5669a]of this['_diffRoots'])_0x964f95['set'](_0x3f487c,N(_0x5669a)),_0x4c0512['set'](_0x3f487c,this['_diffRootsAttributes']['get'](_0x3f487c));this['_saveMetaData'](_0x9f03f9,_0x964f95,this['_markers'],_0x4c0512);}['_getPreviousFrom'](_0x60a31b){const _0x4b77b0=Array['from'](this['_savedMetaData']['keys']());_0x4b77b0['sort']((_0x28d2d8,_0x213856)=>_0x28d2d8-_0x213856),_0x4b77b0['reverse']();for(const _0x5aa941 of _0x4b77b0)if(_0x5aa941<_0x60a31b)return _0x5aa941;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x4a4119,_0x435435){const _0x5c3977=Array['from'](_0x435435['markers'])['map'](([_0xd73246,_0x5603a1])=>[_0xd73246,this['_fixRange'](_0x5603a1,_0x4a4119)]);_0x4a4119['markers']=new Map(_0x5c3977);}['_transformMarkers'](_0xe0731){for(const _0x7b6083 of this['_markers']['values']()){const _0x1cce6c=_0x7b6083['getTransformedByOperation'](_0xe0731),_0x1081ff=ft['_createFromRanges'](_0x1cce6c);_0x7b6083['start']=_0x1081ff['start'],_0x7b6083['end']=_0x1081ff['end'];}}['_handleOperation'](_0x200e72,_0x17be69){if('addRoot'!=_0x200e72['type']&&'detachRoot'!=_0x200e72['type']){if('insert'==_0x200e72['type']){const _0x34f16a=_0x200e72['position']['root']['rootName'];this['_diffRoots']['has'](_0x34f16a)||(this['_diffRoots']['set'](_0x34f16a,P(_0x34f16a,!0x0)),this['_diffRootsAttributes']['set'](_0x34f16a,{}),_0x17be69&&this['_idsRoots']['set'](_0x34f16a,P(_0x34f16a,!0x0)));}else{if('addRootAttribute'==_0x200e72['type']||'removeRootAttribute'==_0x200e72['type']||'changeRootAttribute'==_0x200e72['type'])return void this['_handleRootAttributeOperation'](_0x200e72);'marker'==_0x200e72['type']&&this['_handleMarkerOperation'](_0x200e72);}if('marker'!==_0x200e72['type']){const _0x5daf63=this['_cloneOperation'](_0x200e72,this['_diffRoots']);_0x5daf63['_execute'](),this['_transformMarkers'](_0x5daf63);}if(_0x17be69)switch(_0x200e72['type']){case'insert':this['_handleInsertOperation'](_0x200e72);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x200e72);break;case'merge':this['_handleMergeOperation'](_0x200e72);break;case'split':this['_handleSplitOperation'](_0x200e72);}}else this['_handleRootOperation'](_0x200e72,_0x17be69);}['_cloneOperation'](_0x284f98,_0x5ed584){const _0x549bb4=_0x284f98['clone']();return _0x549bb4['_authorId']=_0x284f98['_authorId'],this['_fixOperation'](_0x549bb4,_0x5ed584),_0x549bb4;}['_getBaseVids'](_0xeddf52){return _0xeddf52['map'](_0x460647=>{const _0x4623e7=this['_getVidAttributeName'](_0x460647);return Number(_0x460647['item']['getAttribute'](_0x4623e7));});}['_generateTape'](_0x364a53,_0x15552c){if(_0x364a53['is']('element','$text'))_0x15552c['push']({'item':_0x364a53,'type':'text'});else{_0x364a53['is']('element')&&_0x15552c['push']({'item':_0x364a53,'type':'elementStart'});for(const _0x5f210a of _0x364a53['getChildren']())this['_generateTape'](_0x5f210a,_0x15552c);_0x364a53['is']('element')&&_0x15552c['push']({'item':_0x364a53,'type':'elementEnd'});}return _0x15552c;}['_getState'](){const _0x238a4a=new Map(this['_touched']),_0x3cc381=new Map(_0x238a4a),_0x27346b=new Map(),_0x4be560={'insertions':{},'deletions':{}},_0x3453a2={'insertions':{},'deletions':{}},_0x3ebd36=new Map(),_0x98fa3b=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x98fa3b['delete']('$graveyard');for(const _0x5d6c51 of _0x98fa3b){const _0x2ce103=this['_diffRoots']['get'](_0x5d6c51)||P(_0x5d6c51,!0x1),_0x4a0cec=this['_baseRoots']['get'](_0x5d6c51)||P(_0x5d6c51,!0x1);_0x2ce103['isAttached']()||_0x4a0cec['isAttached']()?(_0x4be560['insertions'][_0x5d6c51]=N(_0x2ce103),_0x4be560['deletions'][_0x5d6c51]=N(_0x4a0cec),this['_copyMarkers'](_0x4be560['deletions'][_0x5d6c51],_0x4a0cec),this['_copyMarkers'](_0x4be560['insertions'][_0x5d6c51],_0x2ce103),_0x3453a2['insertions'][_0x5d6c51]=this['_generateTape'](this['_idsRoots']['get'](_0x5d6c51),[]),_0x3453a2['deletions'][_0x5d6c51]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x5d6c51)||P(_0x5d6c51,!0x1),[])):_0x98fa3b['delete'](_0x5d6c51);}for(const _0x4becb8 of _0x98fa3b){const _0x393c08=_0x3453a2['insertions'][_0x4becb8];for(const _0x358670 of _0x393c08){const _0x29413c=this['_getVidAttributeName'](_0x358670),_0x5c6c6d=_0x358670['item']['getAttribute'](_0x29413c);_0x3cc381['delete'](_0x5c6c6d),_0x5c6c6d>=this['_startingRevisionId']&&_0x27346b['set'](_0x5c6c6d,_0x238a4a['get'](_0x5c6c6d));}}for(const _0x3293e5 of _0x98fa3b){const _0x1ea1a1=_0x3453a2['insertions'][_0x3293e5],_0x53191c=this['_getBaseVids'](_0x3453a2['deletions'][_0x3293e5]);let _0x11f203=0x0;for(const _0x4a73ce of _0x1ea1a1){const _0x423f8e=this['_getVidAttributeName'](_0x4a73ce),_0x52ea8c=_0x4a73ce['item']['getAttribute'](_0x423f8e);if(!_0x27346b['has'](_0x52ea8c)&&!_0x3ebd36['has'](_0x52ea8c)){if(_0x3cc381['has'](_0x52ea8c))_0x11f203++;else{if(_0x52ea8c!=_0x53191c[_0x11f203]){const _0x3582e8=_0x238a4a['get'](_0x52ea8c)||_0x238a4a['get'](_0x53191c[_0x11f203]);for(;_0x52ea8c!=_0x53191c[_0x11f203];)_0x3cc381['has'](_0x53191c[_0x11f203])||(_0x3ebd36['set'](_0x53191c[_0x11f203],_0x3582e8),_0x238a4a['set'](_0x53191c[_0x11f203],_0x3582e8)),_0x11f203++;}_0x11f203++;}}}}for(const _0x470864 of _0x98fa3b){const _0x391870=_0x3453a2['insertions'][_0x470864];for(const _0x4a0f36 of _0x391870){const _0x62b33e=this['_getVidAttributeName'](_0x4a0f36),_0x17765f=_0x4a0f36['item']['getAttribute'](_0x62b33e);if(_0x3ebd36['has'](_0x17765f)){const _0x191cd6=_0x3ebd36['get'](_0x17765f);_0x3cc381['has'](_0x17765f)||_0x3cc381['set'](_0x17765f,{..._0x191cd6}),_0x27346b['set'](_0x17765f,{..._0x191cd6});}}}for(const _0x4e9c17 of _0x3cc381['keys']())_0x4e9c17>=this['_startingRevisionId']&&_0x3cc381['delete'](_0x4e9c17);const _0xd46901=new Map();for(const _0x3fe7f9 of _0x98fa3b){let _0x51fad7=_0x3453a2['insertions'][_0x3fe7f9];for(const _0x23f462 of _0x51fad7)if(_0x23f462['item']['is']('element','tableCell')){const _0x48f06c=this['_getVidAttributeName'](_0x23f462),_0x3ee6f7=_0x23f462['item']['getAttribute'](_0x48f06c);if(_0x27346b['has'](_0x3ee6f7)){const _0x588750=_0x23f462['item']['parent']['parent']['getAttribute']('vid_start'),_0x53e7c6=_0xd46901['get'](_0x588750)||new Set();_0x53e7c6['add'](_0x27346b['get'](_0x3ee6f7)['userId']),_0xd46901['set'](_0x588750,_0x53e7c6);}}_0x51fad7=_0x3453a2['deletions'][_0x3fe7f9];for(const _0x2a4825 of _0x51fad7)if(_0x2a4825['item']['is']('element','tableCell')){const _0x24c4dd=this['_getVidAttributeName'](_0x2a4825),_0x33cf95=_0x2a4825['item']['getAttribute'](_0x24c4dd);if(_0x3cc381['has'](_0x33cf95)){const _0x6196da=_0x2a4825['item']['parent']['parent']['getAttribute']('vid_start'),_0x22a4c6=_0xd46901['get'](_0x6196da)||new Set();_0x22a4c6['add'](_0x3cc381['get'](_0x33cf95)['userId']),_0xd46901['set'](_0x6196da,_0x22a4c6);}}for(const _0x3a7640 of _0xd46901['keys']())(_0x27346b['has'](_0x3a7640)||_0x3cc381['has'](_0x3a7640))&&_0xd46901['delete'](_0x3a7640);}for(const _0x197a8c of _0x98fa3b){const _0x49f16d=_0x3453a2['insertions'][_0x197a8c];let _0x2ed678=null,_0x4f2c65=null;for(const _0x175e8e of _0x49f16d){const _0x281e73=this['_getVidAttributeName'](_0x175e8e),_0x43d38f=_0x175e8e['item']['getAttribute'](_0x281e73),_0x46c54b=_0xd46901['get'](_0x43d38f);_0x46c54b&&'elementStart'==_0x175e8e['type']&&(_0x2ed678=Array['from'](_0x46c54b)[0x0],_0x4f2c65=_0x175e8e['item']['getAttribute']('vid_end')),_0x2ed678&&(_0x3cc381['set'](_0x43d38f,{'userId':_0x2ed678}),_0x27346b['set'](_0x43d38f,{'userId':_0x2ed678})),_0x43d38f==_0x4f2c65&&(_0x2ed678=null,_0x4f2c65=null);}}const _0x19d7b1={},_0x1ee291=new Set();for(const _0x5e1ccb of _0x98fa3b){const _0x509cc5=_0x4be560['deletions'][_0x5e1ccb],_0x3c68e1=_0x4be560['insertions'][_0x5e1ccb];for(const {userId:_0x493e36}of this['_touchedMarkers']['values']())null!==_0x493e36&&_0x1ee291['add'](_0x493e36);for(const {userId:_0x1f9213}of this['_touchedRoots']['values']())null!==_0x1f9213&&_0x1ee291['add'](_0x1f9213);this['_markChanges'](_0x3c68e1,_0x3453a2['insertions'][_0x5e1ccb],_0x27346b,'insertion',_0x1ee291),this['_markChanges'](_0x509cc5,_0x3453a2['deletions'][_0x5e1ccb],_0x3cc381,'deletion',_0x1ee291),_0x19d7b1[_0x5e1ccb]={'insertions':this['_prepareViewToSave'](_0x3c68e1),'deletions':this['_prepareViewToSave'](_0x509cc5),'attachChange':this['_touchedRoots']['get'](_0x5e1ccb)||null,'attributesBefore':_0x35023c(this['_baseRootsAttributes']['get'](_0x5e1ccb))||{},'attributesAfter':_0x35023c(this['_diffRootsAttributes']['get'](_0x5e1ccb))};}return{'diffData':_0x19d7b1,'authorsIds':Array['from'](_0x1ee291)};}['_processRootBeforeSave'](_0x1d2b4f){for(const [,_0x7d8ea1]of _0x1d2b4f['markers']){const _0x1d348f=_0x7d8ea1['start']['getAncestors']()['filter'](_0x172842=>'tableCell'==_0x172842['name']);for(const _0x3bca4b of _0x1d348f)0x1==_0x3bca4b['childCount']&&_0x3bca4b['getChild'](0x0)['is']('element','paragraph')&&_0x3bca4b['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x8eef74){this['_processRootBeforeSave'](_0x8eef74);const _0x1bf6c7=this['editor']['data']['toView'](_0x8eef74,{}),_0x1f89d1=Array['from'](_0x1bf6c7['getChildren']())['map'](_0x3dada4=>this['_getViewJson'](_0x3dada4));return JSON['stringify'](_0x1f89d1);}['_getViewJson'](_0x339310){if(_0x339310['is']('$text'))return _0x339310['data'];{const _0x5b5beb=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x5cc74a=_0x339310,_0x1550a2=this['editor']['data']['htmlProcessor']['domConverter'],_0x3d6ff5={'type':_0x5b5beb['_getTypeCharForViewElement'](_0x5cc74a),'name':_0x5cc74a['name'],'attributes':Array['from'](_0x5cc74a['getAttributes']()),'children':Array['from'](_0x5cc74a['getChildren']())['map'](_0x339f68=>this['_getViewJson'](_0x339f68))};if(_0x339310['is']('uiElement')&&'$comment'!=_0x339310['name']){const _0x3f830d=_0x339310['render'](_0x1550a2['domDocument'],_0x1550a2);_0x3d6ff5['children']['push'](_0x3f830d['outerHTML']);}else{if(_0x339310['is']('rawElement')){const _0x2f101c=_0x1550a2['domDocument']['createElement'](_0x5cc74a['name']);_0x339310['render'](_0x2f101c,_0x1550a2),_0x3d6ff5['children']['push'](_0x2f101c['innerHTML']);}}const _0x14064d=Array['from'](_0x5cc74a['getCustomProperties']());_0x14064d['length']>0x0&&(_0x3d6ff5['customProperties']=_0x14064d);const _0x4cbbe1=_0x5cc74a['getFillerOffset']();return null!==_0x4cbbe1&&(_0x3d6ff5['fillerOffset']=_0x4cbbe1),_0x3d6ff5;}}['_markChanges'](_0x57eaca,_0x266109,_0x5cd6c5,_0x2e18ee,_0x1437e9){let _0x67d577=null,_0x1809d3=null,_0x14780b=0x0;const _0x5b8bc1=this['editor']['model'];for(let _0x1adc6d=0x0;_0x1adc6d<_0x266109['length'];_0x1adc6d++){const _0x51cceb=this['_getVidAttributeName'](_0x266109[_0x1adc6d]),_0x14979a=_0x266109[_0x1adc6d]['item']['getAttribute'](_0x51cceb),_0x2a51d9=_0x5cd6c5['get'](_0x14979a),_0x27c37f=_0x1adc6d==_0x266109['length']-0x1;(!_0x67d577&&_0x2a51d9&&(_0x67d577=_0x2a51d9,_0x1809d3=_0x266109[_0x1adc6d]),_0x67d577&&(!_0x2a51d9||_0x2a51d9['userId']!=_0x67d577['userId']))&&(_0x346dd2(_0x2a51d9,F(_0x1809d3,_0x57eaca,_0x5b8bc1),F(_0x266109[_0x1adc6d],_0x57eaca,_0x5b8bc1)),_0x67d577=_0x2a51d9||null,_0x1809d3=_0x2a51d9?_0x266109[_0x1adc6d]:null),_0x67d577&&_0x27c37f&&_0x346dd2(_0x2a51d9,F(_0x1809d3,_0x57eaca,_0x5b8bc1),B(_0x266109[_0x1adc6d],_0x57eaca,_0x5b8bc1));}function _0x346dd2(_0x446b5d,_0x3b6317,_0x1c5e72){const _0x1462e2=_0x67d577['userId'],_0x351647='revision:'+_0x2e18ee+':'+_0x1462e2+':'+_0x14780b++,_0x4ba060=_0x5b8bc1['createRange'](_0x3b6317,_0x1c5e72);_0x57eaca['markers']['set'](_0x351647,_0x4ba060),null!==_0x1462e2&&_0x1437e9['add'](_0x1462e2);}}['_getVidAttributeName'](_0x218f28){switch(_0x218f28['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x28d349,_0x4974db){_0x28d349['baseVersion']=null;for(const _0x15f3c5 in _0x28d349){const _0x152dc2=_0x28d349[_0x15f3c5];if(_0x152dc2 instanceof vt){const _0x520b32=_0x4974db['get'](_0x152dc2['root']['rootName']);_0x28d349[_0x15f3c5]=this['_fixPosition'](_0x152dc2,_0x520b32);}if(_0x152dc2 instanceof ft){const _0x4aa521=_0x4974db['get'](_0x152dc2['root']['rootName']);_0x28d349[_0x15f3c5]=this['_fixRange'](_0x152dc2,_0x4aa521);}'root'===_0x15f3c5&&(_0x28d349['root']=_0x4974db['get'](_0x28d349['root']['rootName']));}}['_fixRange'](_0x5e6605,_0x831fad){return this['editor']['model']['createRange'](this['_fixPosition'](_0x5e6605['start'],_0x831fad),this['_fixPosition'](_0x5e6605['end'],_0x831fad));}['_fixPosition'](_0x342da8,_0x4c84ea){return this['editor']['model']['createPositionFromPath'](_0x4c84ea,_0x342da8['path'],_0x342da8['stickiness']);}['_handleInsertOperation'](_0x288b23){const _0x1c9e61=this['_idsRoots']['get'](_0x288b23['position']['root']['rootName']),_0xca2370=this['_fixPosition'](_0x288b23['position'],_0x1c9e61),_0x37c2a8=null===_0x288b23['_authorId']?null:_0x288b23['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x33969f=_0xca2370['parent'],_0x20e2a5=this['_revisionId'],_0x29f917=[];for(const _0x37ec45 of _0x288b23['nodes'])if(_0x37ec45['is']('element'))_0x29f917['push'](this['_makeIdsRoot'](_0x37ec45));else{for(let _0x348d1c=0x0;_0x348d1c<_0x37ec45['offsetSize'];_0x348d1c++)_0x29f917['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x5cdf90=this['_revisionId'];for(let _0x45ab3d=_0x20e2a5;_0x45ab3d<_0x5cdf90;_0x45ab3d++)this['_touched']['set'](_0x45ab3d,{'userId':_0x37c2a8});_0x33969f['_insertChild'](_0xca2370['offset'],_0x29f917);}['_handleMoveOperation'](_0x473e90){(_0x473e90=this['_cloneOperation'](_0x473e90,this['_idsRoots']))['_execute']();const _0x35a040=null===_0x473e90['_authorId']?null:_0x473e90['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x84b391=_0x473e90['getMovedRangeStart'](),_0x548bbf=_0x84b391['parent'],_0x3a2068=_0x84b391['offset'];!function _0x3cea6f(_0x4875c9,_0x527494,_0x34cd5f,_0x3b6200){for(let _0x47eb8d=_0x34cd5f;_0x47eb8d<_0x3b6200;_0x47eb8d++){const _0x2a9efd=_0x527494['getChild'](_0x47eb8d);_0x2a9efd['is']('element','$text')?_0x4875c9['set'](_0x2a9efd['getAttribute']('vid'),{'userId':_0x35a040}):(_0x4875c9['set'](_0x2a9efd['getAttribute']('vid_start'),{'userId':_0x35a040}),_0x3cea6f(_0x4875c9,_0x2a9efd,0x0,_0x2a9efd['childCount']),_0x4875c9['set'](_0x2a9efd['getAttribute']('vid_end'),{'userId':_0x35a040}));}}(this['_touched'],_0x548bbf,_0x3a2068,_0x3a2068+_0x473e90['howMany']);}['_handleMergeOperation'](_0x40bcf1){const _0x2785e9=null===(_0x40bcf1=this['_cloneOperation'](_0x40bcf1,this['_idsRoots']))['_authorId']?null:_0x40bcf1['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x329e5c=_0x40bcf1['targetPosition']['parent'],_0x1ae165=_0x40bcf1['sourcePosition']['parent'],_0xe0fdae=_0x329e5c['getAttribute']('vid_end'),_0x3c7ebf=_0x1ae165['getAttribute']('vid_start');_0x329e5c['_setAttribute']('vid_end',_0x1ae165['getAttribute']('vid_end')),_0x1ae165['_setAttribute']('vid_end',_0xe0fdae),this['_touched']['set'](_0x3c7ebf,{'userId':_0x2785e9}),this['_touched']['set'](_0xe0fdae,{'userId':_0x2785e9}),_0x40bcf1['_execute']();}['_handleSplitOperation'](_0x2084d1){const _0x3b0501=null===(_0x2084d1=this['_cloneOperation'](_0x2084d1,this['_idsRoots']))['_authorId']?null:_0x2084d1['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x30e402=_0x2084d1['graveyardPosition'],_0x5a17c2=_0x2084d1['splitPosition']['parent'];_0x2084d1['_execute']();const _0x1bc364=_0x5a17c2['getAttribute']('vid_end'),_0x1e4de4=_0x2084d1['insertionPosition']['nodeAfter'];if(_0x30e402){const _0x4f9c39=_0x1e4de4['getAttribute']('vid_end'),_0x5a7b22=_0x5a17c2['getAttribute']('vid_end');_0x5a17c2['_setAttribute']('vid_end',_0x4f9c39),_0x1e4de4['_setAttribute']('vid_end',_0x5a7b22),this['_touched']['set'](_0x5a17c2['getAttribute']('vid_end'),{'userId':_0x3b0501}),this['_touched']['set'](_0x1e4de4['getAttribute']('vid_start'),{'userId':_0x3b0501});}else{const _0x1c0367=this['_revisionId']++,_0x1d327d=this['_revisionId']++;_0x5a17c2['_setAttribute']('vid_end',_0x1c0367),_0x1e4de4['_setAttribute']('vid_start',_0x1d327d),_0x1e4de4['_setAttribute']('vid_end',_0x1bc364),this['_touched']['set'](_0x1c0367,{'userId':_0x3b0501}),this['_touched']['set'](_0x1d327d,{'userId':_0x3b0501});}}['_handleMarkerOperation'](_0x5e396b){if(!_0x5e396b['affectsData'])return;const _0x450e12=(_0x5e396b=this['_cloneOperation'](_0x5e396b,this['_diffRoots']))['oldRange']?_0x5e396b['oldRange']['root']:null,_0x13b51f=_0x5e396b['newRange']?_0x5e396b['newRange']['root']:null;_0x450e12&&this['_markers']['delete'](_0x5e396b['name']),_0x13b51f&&this['_markers']['set'](_0x5e396b['name'],_0x5e396b['newRange']['clone']());const _0x1ebfdb=null===_0x5e396b['_authorId']?null:_0x5e396b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5e910a=_0x5e396b['name'];if(!this['_touchedMarkers']['has'](_0x5e910a))return void this['_touchedMarkers']['set'](_0x5e910a,{'range':_0x5e396b['oldRange'],'userId':_0x1ebfdb});const _0x498755=this['_touchedMarkers']['get'](_0x5e910a),_0x4536a8=_0x498755['range'],_0x1a9dd2=_0x5e396b['newRange'];null==_0x4536a8&&null==_0x1a9dd2||_0x4536a8&&_0x1a9dd2&&_0x4536a8['isEqual'](_0x1a9dd2)?this['_touchedMarkers']['delete'](_0x5e396b['name']):_0x498755['userId']=_0x1ebfdb;}['_handleRootOperation'](_0x4c42d6,_0x4ac75c){this['_diffRoots']['has'](_0x4c42d6['rootName'])?this['_diffRoots']['get'](_0x4c42d6['rootName'])['_isAttached']=_0x4c42d6['isAdd']:(this['_diffRoots']['set'](_0x4c42d6['rootName'],P(_0x4c42d6['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x4c42d6['rootName'],{}),_0x4ac75c&&this['_idsRoots']['set'](_0x4c42d6['rootName'],P(_0x4c42d6['rootName'],!0x0)));const _0xfa4e3d=null===_0x4c42d6['_authorId']?null:_0x4c42d6['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x505e0c=this['_touchedRoots']['get'](_0x4c42d6['rootName']);_0x505e0c&&_0x505e0c['userId']===_0xfa4e3d?this['_touchedRoots']['delete'](_0x4c42d6['rootName']):this['_touchedRoots']['set'](_0x4c42d6['rootName'],{'userId':_0xfa4e3d,'isAttached':_0x4c42d6['isAdd']});}['_handleRootAttributeOperation'](_0x215f31){const _0x22ece5=this['_diffRootsAttributes']['get'](_0x215f31['root']['rootName']);null===_0x215f31['newValue']?delete _0x22ece5[_0x215f31['key']]:_0x22ece5[_0x215f31['key']]=_0x215f31['newValue'];}}function N(_0x177e0a){const _0x385a8d=P(_0x177e0a['rootName'],_0x177e0a['isAttached']());for(const _0x42c8cd of _0x177e0a['getChildren']()){const _0x90a05=_0x42c8cd['_clone'](!0x0);_0x385a8d['_appendChild'](_0x90a05);}return _0x385a8d;}function P(_0x392e64,_0x4c7ba9=!0x0){const _0x3e7bae=new gt();return _0x3e7bae['rootName']=_0x392e64,_0x3e7bae['_isAttached']=_0x4c7ba9,_0x3e7bae['isAttached']=()=>_0x3e7bae['_isAttached'],_0x3e7bae;}function F(_0x463f84,_0x355b54,_0x3be9dd){const _0x4d96cb='elementEnd'==_0x463f84['type']?_0x3be9dd['createPositionAt'](_0x463f84['item'],'end'):_0x3be9dd['createPositionBefore'](_0x463f84['item']);return _0x3be9dd['createPositionFromPath'](_0x355b54,_0x4d96cb['path'],_0x4d96cb['stickiness']);}function B(_0x31af30,_0x7d4674,_0x1b506c){const _0x10db4c='elementStart'==_0x31af30['type']?_0x1b506c['createPositionAt'](_0x31af30['item'],0x0):_0x1b506c['createPositionAfter'](_0x31af30['item']);return _0x1b506c['createPositionFromPath'](_0x7d4674,_0x10db4c['path'],_0x10db4c['stickiness']);}class os extends _0x29c029{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x5d6d75,_0xf5958f){super(_0x5d6d75),this['focusTracker']=new _0x3fc65d(),this['keystrokes']=new _0x18c3c0(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0xf5958f),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),ts(this);}['render'](){super['render'](),_0x23e438({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x38a8f9=_0x2aa5b9=>_0x2aa5b9['stopPropagation']();this['keystrokes']['set']('arrowright',_0x38a8f9),this['keystrokes']['set']('arrowleft',_0x38a8f9),this['keystrokes']['set']('arrowup',_0x38a8f9),this['keystrokes']['set']('arrowdown',_0x38a8f9);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x56976d){this['revisionNameInputView']['fieldView']['element']['value']=_0x56976d['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x1708d5){const _0x2db02a=new nt(this['locale'],ti),_0x372e0e=_0x2db02a['fieldView'];_0x372e0e['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x58d760=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x1708d5&&(_0x58d760+='\x20('+g(this['locale'],'optional')+')'),(_0x2db02a['label']=_0x58d760,_0x372e0e['on']('input',()=>{this['revisionNameInputValue']=_0x372e0e['element']['value']['trim']();}),_0x2db02a);}}class f extends _0x5df236{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x136205=this['editor'],_0xb3a102=_0x136205['plugins']['get']('RevisionTracker');_0x136205['ui']['componentFactory']['add']('revisionHistory',_0x11b0c8=>{const _0x5d82dd=_0x3a8b72(_0x11b0c8),_0x2088e6=_0x5d82dd['panelView']['children'],_0x1851e2=new _0x4dae4b(_0x11b0c8),_0x1f1087=new te(_0x11b0c8),_0x568188=new _0x4f0d8d(_0x11b0c8),_0x418abe=new te(_0x11b0c8),_0x25bf91=new _0x4f0d8d(_0x11b0c8);return _0x5d82dd['bind']('isEnabled')['to'](_0xb3a102,'isReady',_0xb3a102,'isEnabled',_0x136205,'isReadOnly',(_0x18f1c7,_0x12818e,_0x2a767e)=>_0x18f1c7&&_0x12818e&&!_0x2a767e),_0x5d82dd['buttonView']['set']({'icon':_0xc1a20f,'label':g(_0x11b0c8,'Revision\x20history'),'tooltip':!0x0}),_0x568188['set']({'label':g(_0x11b0c8,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x568188['bind']('isEnabled')['to'](_0xb3a102,'isReady',_0xb3a102,'isEnabled',_0x136205,'isReadOnly',(_0x164975,_0x5b2e9f,_0xe6d73f)=>_0x164975&&_0x5b2e9f&&!_0xe6d73f),_0x568188['on']('execute',()=>this['_showDialog']()),_0x25bf91['set']({'label':g(_0x11b0c8,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x25bf91['bind']('isEnabled')['to'](_0xb3a102,'isReady',_0x136205,'isReadOnly',(_0x3eb779,_0x4fa4d4)=>_0x3eb779&&!_0x4fa4d4),_0x25bf91['on']('execute',()=>{_0x136205['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x5d82dd['isOpen']=!0x1,_0x136205['editing']['view']['focus']();}),_0x1f1087['children']['add'](_0x568188),_0x418abe['children']['add'](_0x25bf91),_0x1851e2['role']='menu',_0x1851e2['items']['addMany']([_0x1f1087,_0x418abe]),_0x2088e6['add'](_0x1851e2),_0x5d82dd;}),_0x136205['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x4e9b4b=this['editor'],_0x160a5d=_0x4e9b4b['locale'],_0x1c0c0f=new _0x5e90b9(_0x160a5d),_0x210da4=new _0x3b5e9a(_0x160a5d);_0x1c0c0f['buttonView']['set']({'icon':_0xc1a20f,'label':g(_0x160a5d,'Revision\x20history')});const _0x47aee6=new _0x24acdb(_0x160a5d,_0x1c0c0f),_0x565e09=new _0x3ab0c5(_0x160a5d);_0x565e09['set']({'label':g(_0x160a5d,'Save\x20current\x20revision')}),_0x565e09['delegate']('execute')['to'](_0x1c0c0f),_0x565e09['on']('execute',()=>{this['_showDialog']();}),_0x47aee6['children']['add'](_0x565e09),_0x210da4['items']['add'](_0x47aee6);const _0xfff7b2=new _0x24acdb(_0x160a5d,_0x1c0c0f),_0x5b2119=new _0x3ab0c5(_0x160a5d);return _0x5b2119['set']({'label':g(_0x160a5d,'Open\x20revision\x20history')}),_0x5b2119['delegate']('execute')['to'](_0x1c0c0f),_0x5b2119['on']('execute',()=>{_0x4e9b4b['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0xfff7b2['children']['add'](_0x5b2119),_0x210da4['items']['add'](_0xfff7b2),_0x1c0c0f['panelView']['children']['add'](_0x210da4),_0x1c0c0f;}['_showDialog'](){const _0x540333=this['editor'],_0xd413d1=_0x540333['locale'],_0x1360e8=_0x540333['plugins']['get']('Dialog'),_0x452477=_0x540333['plugins']['get']('RevisionTracker');function _0x44e738(_0x2f7285){_0x540333['config']['get']('revisionHistory.requireRevisionName')&&''===_0x2f7285['revisionName']?_0x2f7285['revisionNameInputView']['errorText']=g(_0xd413d1,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x540333['plugins']['get'](u)['saveRevision']({'name':_0x2f7285['revisionName']}),_0x1360e8['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x44e738(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x1360e8['show']({'id':'revisionSave','title':g(_0xd413d1,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x540333['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x1360e8['hide']()},{'label':g(_0x540333['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x15fbcd){_0x15fbcd['bind']('isEnabled')['to'](_0x452477,'isReady',_0x452477,'isEnabled',_0x540333,'isReadOnly',(_0x2aad15,_0x7177b4,_0x45a022)=>_0x2aad15&&_0x7177b4&&!_0x45a022);},'onExecute':()=>_0x44e738(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x3663f2=this['editor'],_0x15e24e=_0x3663f2['locale'];this['_saveRevisionFormView']=new os(_0x15e24e,_0x3663f2['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends _0x29c029{['changeId'];['_model'];constructor(_0x4c422a,_0x2c07bc){super(_0x4c422a),this['_model']=_0x2c07bc,this['changeId']=_0x2c07bc['id'];const _0x388f40=this['bindTemplate'],_0x5bf438=g(_0x4c422a,_0x2c07bc['data']['isSuggestion']?'Suggested\x20by':'add'==_0x2c07bc['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x2c07bc['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x388f40['to']('type',_0x1ddfe1=>'ck-revision-change__'+_0x1ddfe1)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x5bf438}]},{'text':'\x20'+_0x2c07bc['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x22d55c(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x230da2){super(),this['id']=_0x230da2['id']||_0x3ebcbf(),this['author']=_0x230da2['author'],this['type']=_0x230da2['type'],this['data']=_0x230da2['data']||{},this['rootName']=_0x230da2['rootName'],this['set']('createdAt',_0x230da2['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class c{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x3be819,_0x3f8d5f){this['newRevisionId']=_0x3be819,this['oldRevisionId']=_0x3f8d5f,this['changes']=new _0x4b7808();}['_setChanges'](_0x428eea){for(const _0x393e0d of _0x428eea)this['changes']['add'](_0x393e0d);}}class m extends _0x5df236{['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[_0x3ae4e4,_0x173a33,I,V];}constructor(_0x3f9e09){super(_0x3f9e09),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',(_0x14ac96,_0x4e8fe3,_0x1e7b9f)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x528f5b=>{for(const _0x3e449a of this['editor']['editing']['view']['document']['roots'])_0x1e7b9f?_0x528f5b['removeClass']('ck-editor__editable__overlay',_0x3e449a):_0x528f5b['addClass']('ck-editor__editable__overlay',_0x3e449a);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x56a80e=>null!==_0x56a80e),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x116d9d,_0x2f19cd,_0x49c43b)=>_0x116d9d&&_0x49c43b?_0x2f19cd['changes']['getIndex'](_0x49c43b):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0xa28a40,_0x13bcb4)=>_0xa28a40?_0x13bcb4['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x173a33);}['init'](){const _0x362c54=this['editor'],_0x3c4419=new pt(_0x362c54,{'direction':'backward'}),_0x57f538=new pt(_0x362c54,{'direction':'forward'});(_0x362c54['commands']['add']('showPreviousChange',_0x3c4419),_0x362c54['commands']['add']('showNextChange',_0x57f538),_0x362c54['commands']['add']('restoreRevision',new wt(_0x362c54)),this['on']('change:numberOfChanges',()=>{_0x3c4419['refresh'](),_0x57f538['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x362c54['enableReadOnlyMode']('revision-viewer'),_0x362c54['plugins']['has']('WidgetToolbarRepository'))&&_0x362c54['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x24899b){return await this['_utils']['loadRevisionData'](_0x24899b,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x24899b);}async['getRevisionRootsAttributes'](_0x5d6003){return await this['_utils']['loadRevisionData'](_0x5d6003,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x5d6003);}async['compare'](_0x4862bc,_0x1a0f35,_0x25f21a=!0x1){if(!this['isEnabled'])return;const _0x5d1c6f=this['diff'],_0xfde2c9=this['repository'],_0x5cb2cf='string'==typeof _0x4862bc?_0xfde2c9['getRevision'](_0x4862bc):_0x4862bc,_0x5b4d32='string'==typeof _0x1a0f35?_0xfde2c9['getRevision'](_0x1a0f35):_0x1a0f35,_0x50a43f=_0x5cb2cf['id'],_0x28f3a8=_0x5b4d32?_0x5b4d32['id']:null;if(!_0x25f21a&&this['diff']&&this['diff']['newRevisionId']===_0x50a43f&&this['diff']['oldRevisionId']===_0x28f3a8)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x50a43f,_0x28f3a8);const _0x5a98f8=this['_getRevisionsRange'](_0x5cb2cf,_0x5b4d32,!0x0)['map'](_0x428218=>this['_utils']['loadRevisionData'](_0x428218,this['adapter']));return _0x5a98f8['push'](new Promise(_0x3578db=>{setTimeout(_0x3578db,0x14);})),Promise['all'](_0x5a98f8)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x1b24f9=this['_getDiff'](_0x50a43f,_0x28f3a8);for(const _0x165a2b of _0x1b24f9['changes'])this['_changeIdToChange']['set'](_0x165a2b['id'],_0x165a2b);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x1c3c14=>{for(const _0x5e2dbd of this['editor']['model']['document']['getRootNames']())_0x1c3c14['detachRoot'](_0x5e2dbd);for(const _0x3817bf of Object['keys'](_0x1b24f9['model'])){const _0x1b0c28=_0x1c3c14['addRoot'](_0x3817bf);for(const _0x3975b8 of Object['keys'](_0x1b24f9['attributes'][_0x3817bf]))_0x1c3c14['setAttribute'](_0x3975b8,_0x1b24f9['attributes'][_0x3817bf][_0x3975b8],_0x1b0c28);_0x1c3c14['insert'](_0x1b24f9['model'][_0x3817bf],_0x1b0c28,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x1b24f9['changes'])),this['isReady']=!0x0;})['catch'](_0x30ecf9=>{console['error'](_0x30ecf9),this['_cleanUp'](),_0x5d1c6f&&(this['diff']=_0x5d1c6f),this['isReady']=!0x0;});}['addRevisionData'](_0x53c252,_0x101a02){const _0x550688=this['repository']['createRevision'](_0x53c252);return _0x550688['on']('_update',(_0x7b388b,_0x4c236d,_0xb75dcc)=>_0x101a02(_0x4c236d,_0xb75dcc,_0x550688)),this['repository']['addRevision'](_0x550688),_0x550688;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x571907=>{for(const _0x27bd45 of this['editor']['model']['document']['getRootNames']())_0x571907['detachRoot'](_0x27bd45);});}['_sortAndFilterDiffChanges'](_0x33f476){const _0x4d11d=[],_0x59211c=new Map();for(const _0x23c234 of this['editor']['model']['document']['getRootNames']()){const _0x540e03=this['editor']['editing']['view']['getDomRoot'](_0x23c234);if(!_0x540e03)continue;const _0x28ee72=_0x540e03['getClientRects']()['item'](0x0);_0x28ee72&&(_0x4d11d['push'](_0x23c234),_0x59211c['set'](_0x23c234,_0x28ee72));}return _0x4d11d['sort']((_0x20f978,_0x2ad3f8)=>{const _0x49b6f4=_0x59211c['get'](_0x20f978),_0x456d54=_0x59211c['get'](_0x2ad3f8);return _0x49b6f4['y']-_0x456d54['y']||_0x49b6f4['x']-_0x456d54['x'];}),(_0x33f476=_0x33f476['filter'](_0x3c879f=>_0x4d11d['includes'](_0x3c879f['rootName'])))['sort']((_0x36ad11,_0x50bc4b)=>_0x4d11d['indexOf'](_0x36ad11['rootName'])-_0x4d11d['indexOf'](_0x50bc4b['rootName'])),_0x33f476;}['_makeTape'](_0x1f5056){const _0x33c9df=Array['from'](_0x1f5056['markers'])['filter'](([_0x3b471a,_0x38adb7])=>_0x3b471a['startsWith']('revision:')&&!_0x38adb7['isCollapsed']),_0x594692=Array['from'](this['editor']['model']['createRangeIn'](_0x1f5056)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x33c9df['length'])for(const _0x4975e2 of _0x594692){const [_0x303ca7,_0x91445a]=_0x33c9df[0x0],[,_0x4daa09,_0x42b512]=_0x303ca7['split'](':');if(_0x91445a['end']['isEqual'](_0x4975e2['nextPosition'])&&_0x33c9df['shift'](),(_0x4975e2['previousPosition']['isEqual'](_0x91445a['start'])||_0x4975e2['previousPosition']['isAfter'](_0x91445a['start']))&&('insertion'==_0x4daa09?_0x4975e2['isAdded']={'userId':_0x42b512}:'deletion'==_0x4daa09&&(_0x4975e2['isRemoved']={'userId':_0x42b512})),0x0==_0x33c9df['length'])break;}return _0x594692;}['_refreshStartEndIndex'](_0xbec719){const _0x9d5f17=new Map();for(let _0x1f5491=0x0;_0x1f5491<_0xbec719['length'];_0x1f5491++)'text'===_0xbec719[_0x1f5491]['type']?(_0xbec719[_0x1f5491]['item']['startIndex']=_0x1f5491,_0xbec719[_0x1f5491]['item']['endIndex']=_0x1f5491):('elementStart'===_0xbec719[_0x1f5491]['type']?_0xbec719[_0x1f5491]['item']['startIndex']=_0x1f5491:'elementEnd'===_0xbec719[_0x1f5491]['type']&&(_0xbec719[_0x1f5491]['item']['endIndex']=_0x1f5491),_0x9d5f17['set'](_0xbec719[_0x1f5491]['id'],_0x1f5491));for(const _0x41d779 of _0x9d5f17['values']())'elementStart'===_0xbec719[_0x41d779]['type']?_0xbec719[_0x41d779]['item']['endIndex']=_0x9d5f17['get'](_0xbec719[_0x41d779]['pairId']):'elementEnd'===_0xbec719[_0x41d779]['type']&&(_0xbec719[_0x41d779]['item']['startIndex']=_0x9d5f17['get'](_0xbec719[_0x41d779]['pairId']));}['_processTape'](_0x4e91fb){for(let _0x6891e3=0x0;_0x6891e3<_0x4e91fb['length'];_0x6891e3++){if('elementStart'===_0x4e91fb[_0x6891e3]['type'])_0x4e91fb[_0x6891e3]['item']['startIndex']=_0x6891e3;else{if('elementEnd'===_0x4e91fb[_0x6891e3]['type']){_0x4e91fb[_0x6891e3]['item']['endIndex']=_0x6891e3;const _0x48bbb7=_0x4e91fb[_0x6891e3]['item']['startIndex'];_0x4e91fb[_0x48bbb7]['pairId']=_0x4e91fb[_0x6891e3]['id'],_0x4e91fb[_0x6891e3]['pairId']=_0x4e91fb[_0x48bbb7]['id'];}else _0x4e91fb[_0x6891e3]['item']['startIndex']=_0x6891e3,_0x4e91fb[_0x6891e3]['item']['endIndex']=_0x6891e3,_0x4e91fb[_0x6891e3]['pairId']=null;}_0x4e91fb[_0x6891e3]['markersStart']||(_0x4e91fb[_0x6891e3]['markersStart']=[],_0x4e91fb[_0x6891e3]['markersEnd']=[]);}}['_markInsertions'](_0x5140e6,_0x1eeaba){const _0x43f547=_0x5140e6['filter'](_0x5a4472=>!_0x5a4472['isAdded']);for(let _0x28beee=0x0;_0x28beee<_0x1eeaba['length'];_0x28beee++)_0x1eeaba[_0x28beee]['isAdded']&&(_0x43f547[_0x28beee]['isAdded']=_0x1eeaba[_0x28beee]['isAdded']);}['_getDiff'](_0x1c03c6,_0x19cf8f=null){const _0x14b012=this['repository']['getRevision'](_0x1c03c6),_0x5030e4=_0x19cf8f?this['repository']['getRevision'](_0x19cf8f):null,_0x58b487=this['_getRevisionsRange'](_0x14b012,_0x5030e4),_0x3dd5d9=_0x58b487[_0x58b487['length']-0x1],_0x37e9e1=new Map(),_0x58e9af={'model':{},'attributes':{},'changes':[]},_0x52de15=new Set(),_0x40fcb1=new Map();for(let _0x6c267a=_0x58b487['length']-0x1;_0x6c267a>=0x0;_0x6c267a--){const _0x3aa0e3=_0x58b487[_0x6c267a];for(const _0x1abf99 of Object['keys'](_0x3aa0e3['diffData']))if(_0x3aa0e3['diffData'][_0x1abf99]['attachChange']){const _0x3c3963=_0x3aa0e3['diffData'][_0x1abf99]['attachChange'];_0x3c3963['isAttached']?(_0x52de15['add'](_0x1abf99),_0x40fcb1['has'](_0x1abf99)&&_0x40fcb1['get'](_0x1abf99)['userId']==_0x3c3963['userId']?_0x40fcb1['delete'](_0x1abf99):_0x40fcb1['set'](_0x1abf99,_0x3c3963)):_0x40fcb1['has'](_0x1abf99)?(_0x52de15['delete'](_0x1abf99),_0x40fcb1['delete'](_0x1abf99)):(_0x52de15['add'](_0x1abf99),_0x40fcb1['set'](_0x1abf99,_0x3c3963));}else _0x52de15['add'](_0x1abf99);}for(const _0x5aaf9e of _0x52de15){const _0x5c9735=_0x40fcb1['has'](_0x5aaf9e)&&!_0x40fcb1['get'](_0x5aaf9e)['isAttached'];let _0x1aa414=_0x5c9735?_0x58b487['length']-0x1:0x0;const _0xaba0a=_0x5c9735?-0x1:0x1;for(;_0x58b487[_0x1aa414];){const _0xc925d9=_0x58b487[_0x1aa414];if(_0xc925d9['diffData'][_0x5aaf9e]){const _0x16f4e1=_0x5c9735?_0xc925d9['diffData'][_0x5aaf9e]['attributesBefore']:_0xc925d9['diffData'][_0x5aaf9e]['attributesAfter'];_0x58e9af['attributes'][_0x5aaf9e]=_0x16f4e1?_0x35023c(_0x16f4e1):{};break;}_0x1aa414+=_0xaba0a;}}for(const _0x4e21c9 of _0x58b487){_0x4e21c9['model']={};for(const _0x22f524 of _0x4e21c9['authors'])_0x37e9e1['set'](_0x22f524['id'],_0x22f524);for(const _0x95b018 of _0x52de15){const _0x184414=_0x4e21c9['diffData'][_0x95b018]?_0x4e21c9['diffData'][_0x95b018]['insertions']:'[]',_0xe85956=_0x4e21c9['diffData'][_0x95b018]?_0x4e21c9['diffData'][_0x95b018]['deletions']:'[]';_0x4e21c9['model'][_0x95b018]={'insertions':this['_utils']['_makeModelFromViewString'](_0x184414),'deletions':this['_utils']['_makeModelFromViewString'](_0xe85956)};}}for(const _0x278bed of _0x52de15){let _0x2103ff=null,_0x3344da=0x0;const _0x4ae483=new Map(Array['from'](_0x14b012['model'][_0x278bed]['insertions']['markers'])['filter'](([_0x454998])=>!_0x454998['startsWith']('revision:')));let _0x2cfc02=0x0;for(const _0x321a18 of _0x58b487){const _0x3bc1e6=this['_makeTape'](_0x321a18['model'][_0x278bed]['insertions']);_0x321a18==_0x14b012?(_0x2103ff=_0x3bc1e6,_0x3344da=_0x2103ff['length'],_0x2103ff['forEach'](_0x5ce33e=>{_0x5ce33e['id']=_0x2cfc02++;}),this['_processTape'](_0x2103ff)):this['_markInsertions'](_0x2103ff,_0x3bc1e6);const _0x494013=_0x2103ff['filter'](_0xcf2c4e=>!_0xcf2c4e['isAdded'])['map'](_0x530508=>_0x530508['id']);let _0x4c535b=0x0;const _0x1fdfc3=this['_makeTape'](_0x321a18['model'][_0x278bed]['deletions']);_0x1fdfc3['forEach'](_0x3f3d09=>{_0x3f3d09['isRemoved']?_0x3f3d09['id']=_0x3344da++:_0x3f3d09['id']=_0x494013[_0x4c535b++];}),this['_processTape'](_0x1fdfc3),this['_setDistance'](_0x2103ff,'isAdded'),this['_setDistance'](_0x1fdfc3,'isRemoved'),_0x321a18==_0x14b012&&this['_markMarkers'](_0x2103ff,_0x4ae483),_0x2103ff=this['_joinTapes'](_0x2103ff,_0x1fdfc3),this['_refreshStartEndIndex'](_0x2103ff),this['_setDistance'](_0x2103ff,'isRemoved');}_0x2103ff=_0x2103ff['filter'](_0x467f9b=>!(_0x467f9b['isAdded']&&_0x467f9b['isRemoved']));const _0x487966=new Map(_0x3dd5d9['model'][_0x278bed]['deletions']['markers']),_0x4af5a3=new Set(_0x4ae483['keys']());for(const _0x4d1a9a of _0x487966['keys']())_0x4af5a3['delete'](_0x4d1a9a);this['_markSuggestions'](_0x2103ff,_0x4af5a3),this['_fixObsoleteTags'](_0x2103ff),_0x2103ff=this['_removeMissingPairs'](_0x2103ff),_0x2103ff=this['_markMismatchedRemovedTags'](_0x2103ff),_0x2103ff=this['_removeUnsupportedChanges'](_0x2103ff);const {root:_0x16f719,changes:_0x9c30c0}=this['_makeModelFromTape'](_0x2103ff,_0x37e9e1,_0x278bed);_0x58e9af['model'][_0x278bed]=_0x16f719;const _0x1b85b9=_0x40fcb1['get'](_0x278bed);if(_0x1b85b9){const _0x34c522=_0x37e9e1['get'](_0x1b85b9['userId']),_0x1c20db=new r({'author':_0x34c522,'type':_0x1b85b9['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x278bed});_0x9c30c0['unshift'](_0x1c20db),_0x58e9af['attributes'][_0x278bed]['revisionHistoryAttachChange']=_0x1c20db['id'];}_0x58e9af['changes']=_0x58e9af['changes']['concat'](_0x9c30c0);}return _0x58e9af;}['_markMarkers'](_0x3db08c,_0x7e015a){for(let _0x524626=0x0;_0x524626<_0x3db08c['length'];_0x524626++)for(const [_0x45f74c,_0x6ea35f]of _0x7e015a)!_0x6ea35f['isCollapsed']&&_0x6ea35f['start']['isEqual'](_0x3db08c[_0x524626]['previousPosition'])&&_0x3db08c[_0x524626]['markersStart']['push'](_0x45f74c),_0x6ea35f['end']['isEqual'](_0x3db08c[_0x524626]['nextPosition'])&&_0x3db08c[_0x524626]['markersEnd']['push'](_0x45f74c);}['_joinTapes'](_0x1d2719,_0x1f8f2e){let _0x194a89=[],_0x4306e6=0x0,_0x484401=0x0;for(;_0x4306e6<_0x1d2719['length']||_0x484401<_0x1f8f2e['length'];){const _0xc72c11=_0x1d2719[_0x4306e6]||{},_0x2d7f7b=_0x1f8f2e[_0x484401]||{};if(_0xc72c11['id']==_0x2d7f7b['id'])_0x4306e6++,_0x484401++,_0x194a89['push'](_0xc72c11);else{if(_0x2d7f7b['isRemoved']&&_0xc72c11['isAdded']){const {commonTape:_0xbdfce1,iEnd:_0x2be352,jEnd:_0x477295}=this['_threeWayMerge'](_0x1d2719,_0x4306e6,_0x1f8f2e,_0x484401);_0x194a89=_0x194a89['concat'](_0xbdfce1),_0x4306e6=_0x2be352,_0x484401=_0x477295;}else _0x2d7f7b['isRemoved']?(_0x484401++,_0x194a89['push'](_0x2d7f7b)):(_0x4306e6++,_0x194a89['push'](_0xc72c11));}}return _0x194a89;}['_markSuggestions'](_0x569783,_0x1c0164){const _0x5f331d=[];for(let _0x41f584=0x0;_0x41f584<_0x569783['length'];_0x41f584++){for(let _0x76bde0=0x0;_0x76bde0<_0x569783[_0x41f584]['markersStart']['length'];_0x76bde0++){const _0x3bba90=_0x569783[_0x41f584]['markersStart'][_0x76bde0];if(!_0x1c0164['has'](_0x3bba90))continue;const {group:_0x3d7a50,type:_0xf74c0d,authorId:_0x145ff4}=_0x508420(_0x3bba90);'revision-suggestion'!=_0x3d7a50||'insertion'!=_0xf74c0d&&'deletion'!=_0xf74c0d||(_0x5f331d['unshift']({'type':_0xf74c0d,'name':_0x3bba90,'userId':_0x145ff4}),_0x569783[_0x41f584]['markersStart']['splice'](_0x76bde0,0x1),_0x76bde0--);}_0x101a71(_0x569783[_0x41f584]);for(let _0x18b80b=0x0;_0x18b80b<_0x569783[_0x41f584]['markersEnd']['length'];_0x18b80b++){const _0x28a15f=_0x569783[_0x41f584]['markersEnd'][_0x18b80b];if(!_0x1c0164['has'](_0x28a15f))continue;const {group:_0x16d63e,type:_0x2c3823}=_0x508420(_0x28a15f);if('revision-suggestion'!=_0x16d63e||'insertion'!=_0x2c3823&&'deletion'!=_0x2c3823)continue;_0x569783[_0x41f584]['markersEnd']['splice'](_0x18b80b,0x1),_0x18b80b--;const _0x2c454b=_0x5f331d['findIndex'](_0x144fbb=>_0x144fbb['name']==_0x28a15f);_0x2c454b>-0x1&&_0x5f331d['splice'](_0x2c454b,0x1);}}function _0x508420(_0xf15656){const _0x5f067a=_0xf15656['split'](':');return{'group':_0x5f067a[0x0],'type':_0x5f067a[0x1],'subType':_0x5f067a['length']>=0x5?_0x5f067a[0x2]:null,'id':_0x5f067a['length']<0x5?_0x5f067a[0x2]:_0x5f067a[0x3],'authorId':_0x5f067a['length']<0x5?_0x5f067a[0x3]:_0x5f067a[0x4],'markerCount':0x6==_0x5f067a['length']?_0x5f067a[0x5]:null};}function _0x101a71(_0x952cdd){for(let _0x46377a=0x0;_0x46377a<_0x5f331d['length'];_0x46377a++){if(_0x952cdd['isAdded']&&'insertion'==_0x5f331d[_0x46377a]['type'])return _0x952cdd['isAddSuggestion']=_0x5f331d[_0x46377a],void delete _0x952cdd['isAdded'];if(!_0x952cdd['isAdded']&&!_0x952cdd['isRemoved']&&'deletion'==_0x5f331d[_0x46377a]['type'])return void(_0x952cdd['isRemoveSuggestion']=_0x5f331d[_0x46377a]);}}}['_setDistance'](_0x3dd915,_0x23a3b8){let _0x448467=0x0,_0x8157fd=!0x1;const _0x5ce7e5=new Map();for(const _0x5d2507 of _0x3dd915)_0x5d2507[_0x23a3b8]?_0x8157fd&&(_0x448467++,_0x8157fd=!0x1):(_0x448467++,_0x8157fd=!0x0),_0x5ce7e5['set'](_0x5d2507['id'],_0x448467);for(let _0x5b3e5a=0x0;_0x5b3e5a<_0x3dd915['length'];_0x5b3e5a++){if('isRemoved'==_0x23a3b8&&_0x3dd915[_0x5b3e5a]['isAdded']||'isAdded'==_0x23a3b8&&_0x3dd915[_0x5b3e5a]['isRemoved'])continue;if('text'==_0x3dd915[_0x5b3e5a]['type']){_0x3dd915[_0x5b3e5a]['distance']=0x0;continue;}const _0x4c35b8=_0x5ce7e5['get'](_0x3dd915[_0x5b3e5a]['pairId']),_0x1d20d4=_0x5ce7e5['get'](_0x3dd915[_0x5b3e5a]['id']);_0x3dd915[_0x5b3e5a]['distance']=_0x4c35b8-_0x1d20d4;}}['_getRevisionsRange'](_0x61ccf8,_0x3cf7d9,_0x25aecf=!0x1){const _0x3c12ce=[];let _0x593524=this['repository']['getIndex'](_0x61ccf8),_0x27d7a8=this['repository']['getIndex'](_0x3cf7d9);for(-0x1==_0x27d7a8&&(_0x27d7a8=this['repository']['_revisions']['length'],_0x25aecf=!0x1);_0x593524<_0x27d7a8;)_0x3c12ce['push'](this['repository']['getRevision'](_0x593524)),_0x593524++;return _0x25aecf&&_0x3c12ce['push'](this['repository']['getRevision'](_0x593524)),_0x3c12ce;}['_threeWayMerge'](_0x201a7c,_0xe68361,_0x30a471,_0x550b25){const _0x567e7e=this['editor']['model']['schema'];let _0x2be97d=_0xe68361;for(;_0x201a7c[_0x2be97d]&&_0x201a7c[_0x2be97d]['isAdded'];)_0x2be97d++;let _0x3f3441=_0x550b25;for(;_0x30a471[_0x3f3441]&&_0x30a471[_0x3f3441]['isRemoved'];)_0x3f3441++;_0x3ee27b(_0x201a7c,_0xe68361,_0x2be97d),_0x3ee27b(_0x30a471,_0x550b25,_0x3f3441);const _0x2ce5cd=_0x30a471['slice'](_0x550b25,_0x3f3441)['concat'](_0x201a7c['slice'](_0xe68361,_0x2be97d));return _0x2ce5cd['sort']((_0x3c7ad5,_0x49af7e)=>_0x3c7ad5['side']!=_0x49af7e['side']?_0x3c7ad5['side']-_0x49af7e['side']:_0x3c7ad5['level']!=_0x49af7e['level']?_0x3c7ad5['level']-_0x49af7e['level']:_0x3c7ad5['distance']!=_0x49af7e['distance']?_0x49af7e['distance']-_0x3c7ad5['distance']:!!_0x3c7ad5['isAdded']!=!!_0x49af7e['isAdded']?-0x1==_0x3c7ad5['side']||0x0==_0x3c7ad5['side']?_0x3c7ad5['isAdded']?-0x1:0x1:_0x3c7ad5['isAdded']?0x1:-0x1:_0x3c7ad5['index']-_0x49af7e['index']),{'commonTape':_0x2ce5cd,'iEnd':_0x2be97d,'jEnd':_0x3f3441};function _0x3ee27b(_0x7a66bd,_0x16fef9,_0x5c598a){let _0x4c2c40=-0x1,_0x27c23a=Number['POSITIVE_INFINITY'],_0x24c637=!0x0;for(let _0x45e130=_0x16fef9;_0x45e130<_0x5c598a;_0x45e130++)if(_0x567e7e['isInline'](_0x7a66bd[_0x45e130]['item'])||(_0x24c637=!0x1),_0x7a66bd[_0x45e130]['item']['startIndex']<_0x16fef9&&(_0x4c2c40=_0x45e130),_0x7a66bd[_0x45e130]['item']['endIndex']>=_0x5c598a){_0x27c23a=_0x45e130;break;}_0x24c637&&(_0x4c2c40=_0x5c598a-0x1);for(let _0x83ad25=_0x16fef9;_0x83ad25<_0x5c598a;_0x83ad25++)_0x7a66bd[_0x83ad25]['side']=_0x83ad25<=_0x4c2c40?-0x1:_0x83ad25<_0x27c23a?0x0:0x1,_0x7a66bd[_0x83ad25]['index']=_0x83ad25;let _0x3fd2ec=0x0;for(let _0x1d69de=_0x16fef9;_0x1d69de<=_0x4c2c40;_0x1d69de++)0x0==_0x7a66bd[_0x1d69de]['distance']?_0x7a66bd[_0x1d69de]['level']=_0x3fd2ec:(_0x3fd2ec++,_0x7a66bd[_0x1d69de]['level']=_0x3fd2ec,_0x3fd2ec++);for(let _0x48b611=_0x16fef9;_0x48b611<_0x5c598a;_0x48b611++)0x0==_0x7a66bd[_0x48b611]['side']&&(_0x7a66bd[_0x48b611]['level']=_0x3fd2ec);_0x3fd2ec=0x0;for(let _0x2fee22=_0x5c598a-0x1;_0x2fee22>=_0x27c23a;_0x2fee22--)0x0==_0x7a66bd[_0x2fee22]['distance']?_0x7a66bd[_0x2fee22]['level']=_0x3fd2ec:(_0x3fd2ec--,_0x7a66bd[_0x2fee22]['level']=_0x3fd2ec,_0x3fd2ec--);}}['_fixObsoleteTags'](_0x48fe31){const _0xedab24=new Map(),_0x335d61=this['editor']['model']['schema'];for(let _0x241086=0x1;_0x241086<_0x48fe31['length'];_0x241086++){let _0x280d48,_0x269814,_0x544869;const _0x430a11=_0x48fe31[_0x241086],_0x240b78=_0x48fe31[_0x241086-0x1];if('text'==_0x430a11['type'])continue;if(_0x430a11['type']!=_0x240b78['type'])continue;if(!_0x335d61['isBlock'](_0x240b78['item'])||_0x335d61['isLimit'](_0x240b78['item']))continue;if(!_0x335d61['isBlock'](_0x430a11['item'])||_0x335d61['isLimit'](_0x430a11['item']))continue;if((_0x48fe31[_0x241086]['isAdded']||_0x48fe31[_0x241086]['isAddSuggestion'])&&_0x48fe31[_0x241086-0x1]['isRemoved'])_0x280d48=_0x48fe31[_0x241086],_0x269814=_0x48fe31[_0x241086-0x1],_0x544869=_0x241086-0x1;else{if(!_0x48fe31[_0x241086]['isRemoved']||!_0x48fe31[_0x241086-0x1]['isAdded']&&!_0x48fe31[_0x241086-0x1]['isAddSuggestion'])continue;_0x280d48=_0x48fe31[_0x241086-0x1],_0x269814=_0x48fe31[_0x241086],_0x544869=_0x241086;}const _0x3655e5=_0x280d48['level']==_0x269814['level'],_0x49ca51=Math['abs'](_0x280d48['level'])<Math['abs'](_0x269814['level'])&&0x0==_0x269814['distance'];(_0x3655e5||_0x49ca51)&&(_0xedab24['set'](_0x269814['id'],_0x280d48['id']),_0x48fe31['splice'](_0x544869,0x1),_0x241086--,_0x280d48['isAdded']=!0x1);}for(let _0x36aca6=0x0;_0x36aca6<_0x48fe31['length'];_0x36aca6++)_0xedab24['has'](_0x48fe31[_0x36aca6]['pairId'])&&(_0x48fe31[_0x36aca6]['pairId']=_0xedab24['get'](_0x48fe31[_0x36aca6]['pairId']));}['_removeMissingPairs'](_0x16650a){const _0x46d48c=new Set(_0x16650a['map'](_0x410083=>_0x410083['id']));for(let _0x1e271a=0x0;_0x1e271a<_0x16650a['length'];_0x1e271a++)_0x46d48c['has'](_0x16650a[_0x1e271a]['pairId'])||0x0==_0x16650a[_0x1e271a]['distance']||(_0x16650a[_0x1e271a]['isIncorrect']=!0x0);return _0x16650a['filter'](_0x43aa9a=>!_0x43aa9a['isIncorrect']);}['_markMismatchedRemovedTags'](_0x34a562){const _0x4142ce=new Set();for(let _0x5c6089=0x0;_0x5c6089<_0x34a562['length'];_0x5c6089++){if(_0x4142ce['has'](_0x34a562[_0x5c6089]['id'])&&_0x34a562[_0x5c6089]['isRemoved']&&(_0x34a562[_0x5c6089]['isIncorrect']=!0x0),_0x34a562[_0x5c6089]['isIncorrect'])continue;if(0x0==_0x34a562[_0x5c6089]['distance'])continue;if('elementStart'!=_0x34a562[_0x5c6089]['type'])continue;if(null==_0x34a562[_0x5c6089]['pairId'])continue;let _0x5dba83=_0x5c6089+0x1,_0x548550=0x0;for(;_0x34a562[_0x5dba83]['id']!=_0x34a562[_0x5c6089]['pairId'];)'elementStart'==_0x34a562[_0x5dba83]['type']?_0x548550++:'elementEnd'==_0x34a562[_0x5dba83]['type']&&_0x548550--,_0x5dba83++;if(0x0!=_0x548550){if(_0x34a562[_0x5c6089]['isRemoved'])_0x34a562[_0x5c6089]['isIncorrect']=!0x0;else{for(;_0x5dba83!=_0x5c6089;)_0x34a562[_0x5dba83]['isRemoved']&&0x0!=_0x34a562[_0x5dba83]['distance']&&(_0x34a562[_0x5dba83]['isIncorrect']=!0x0,_0x4142ce['add'](_0x34a562[_0x5dba83]['pairId'])),_0x5dba83--;}}}return _0x34a562['filter'](_0x33da1b=>!_0x33da1b['isIncorrect']);}['_removeUnsupportedChanges'](_0x1e8978){const _0x4c65d8=this['editor']['model']['schema'];for(let _0x39edb6=0x0;_0x39edb6<_0x1e8978['length'];_0x39edb6++){if(!(_0x1e8978[_0x39edb6]['isAdded']||_0x1e8978[_0x39edb6]['isAddSuggestion']||_0x1e8978[_0x39edb6]['isRemoved']||_0x1e8978[_0x39edb6]['isRemoveSuggestion']))continue;if(0x0==_0x1e8978[_0x39edb6]['distance'])continue;const _0x22e0a6=_0x1e8978[_0x39edb6]['item'];_0x4c65d8['isBlock'](_0x22e0a6)||_0x4c65d8['isLimit'](_0x22e0a6)||(_0x1e8978[_0x39edb6]['isAdded']&&delete _0x1e8978[_0x39edb6]['isAdded'],_0x1e8978[_0x39edb6]['isAddSuggestion']&&delete _0x1e8978[_0x39edb6]['isAddSuggestion'],_0x1e8978[_0x39edb6]['isRemoveSuggestion']&&delete _0x1e8978[_0x39edb6]['isRemoveSuggestion'],_0x1e8978[_0x39edb6]['isRemoved']&&(_0x1e8978[_0x39edb6]['isIncorrect']=!0x0));}return _0x1e8978['filter'](_0x50b7c9=>!_0x50b7c9['isIncorrect']);}['_makeModelFromTape'](_0x1c86af,_0xceed47,_0x517875){const _0x2d85e1=new gt(),_0x430b7e=[],_0x132979=new Map(),_0x3bc506=this['editor']['model'],_0x32c510=_0x3bc506['schema'],_0x1dfe7f=[_0x2d85e1],_0x2b1503={},_0x453922={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x43035c=null;const _0x478f79=[0x0];for(let _0x2c34d5=0x0;_0x2c34d5<_0x1c86af['length'];_0x2c34d5++)if('elementStart'===_0x1c86af[_0x2c34d5]['type']){_0x1c86af[_0x2c34d5]['previousPosition']=_0x3bc506['createPositionFromPath'](_0x2d85e1,_0x478f79);const _0x5e698e=new ut(_0x1c86af[_0x2c34d5]['item']['name'],_0x1c86af[_0x2c34d5]['item']['getAttributes']());_0x1dfe7f[0x0]['_appendChild'](_0x5e698e),_0x478f79['push'](0x0),_0x1dfe7f['unshift'](_0x5e698e),_0x1c86af[_0x2c34d5]['nextPosition']=_0x3bc506['createPositionFromPath'](_0x2d85e1,_0x478f79);}else'elementEnd'===_0x1c86af[_0x2c34d5]['type']?(_0x1dfe7f['shift'](),_0x1c86af[_0x2c34d5]['previousPosition']=_0x3bc506['createPositionFromPath'](_0x2d85e1,_0x478f79),_0x478f79['pop'](),_0x478f79[_0x478f79['length']-0x1]++,_0x1c86af[_0x2c34d5]['nextPosition']=_0x3bc506['createPositionFromPath'](_0x2d85e1,_0x478f79)):(_0x1c86af[_0x2c34d5]['previousPosition']=_0x3bc506['createPositionFromPath'](_0x2d85e1,_0x478f79),_0x43035c?_0x43035c['_data']+=_0x1c86af[_0x2c34d5]['item']['data']:_0x43035c=new mt(_0x1c86af[_0x2c34d5]['item']['data'],_0x1c86af[_0x2c34d5]['item']['getAttributes']()),_0x1c86af[_0x2c34d5+0x1]&&'text'===_0x1c86af[_0x2c34d5+0x1]['type']&&_0xd21f17(_0x43035c,_0x1c86af[_0x2c34d5+0x1]['item'])||(_0x1dfe7f[0x0]['_appendChild'](_0x43035c),_0x43035c=null),_0x478f79[_0x478f79['length']-0x1]+=_0x1c86af[_0x2c34d5]['item']['offsetSize'],_0x1c86af[_0x2c34d5]['nextPosition']=_0x3bc506['createPositionFromPath'](_0x2d85e1,_0x478f79));for(let _0x5bc2ce=0x0;_0x5bc2ce<_0x1c86af['length'];_0x5bc2ce++){const _0x4bdb3e=_0x1c86af[_0x5bc2ce]['previousPosition'],_0x21ac9e=_0x1c86af[_0x5bc2ce]['nextPosition'];for(const _0x3c2249 of _0x1c86af[_0x5bc2ce]['markersStart'])_0x132979['set'](_0x3c2249,{'start':_0x4bdb3e,'end':null});_0x1cc8c6('isRemoveSuggestion',_0x5bc2ce,_0x4bdb3e,_0x21ac9e),_0x1cc8c6('isAddSuggestion',_0x5bc2ce,_0x4bdb3e,_0x21ac9e),_0x1cc8c6('isRemoved',_0x5bc2ce,_0x4bdb3e,_0x21ac9e),_0x1cc8c6('isAdded',_0x5bc2ce,_0x4bdb3e,_0x21ac9e);for(const _0x296fa7 of _0x1c86af[_0x5bc2ce]['markersEnd']){const _0x47e876=_0x132979['get'](_0x296fa7);_0x47e876?_0x47e876['end']=_0x21ac9e:_0x132979['set'](_0x296fa7,{'start':_0x21ac9e,'end':_0x21ac9e});}}for(const [_0x23b966,_0x2dece1]of _0x132979){const _0x25ec22=this['editor']['model']['createRange'](_0x2dece1['start'],_0x2dece1['end']);_0x2d85e1['markers']['set'](_0x23b966,_0x25ec22);}return _0x430b7e['sort']((_0x439966,_0x5f0581)=>{const _0x57f456=_0x2d85e1['markers']['get']('revision:'+_0x439966['id']),_0x1fc7b4=_0x2d85e1['markers']['get']('revision:'+_0x5f0581['id']);return _0x57f456['start']['isBefore'](_0x1fc7b4['start'])?-0x1:_0x57f456['start']['isAfter'](_0x1fc7b4['start'])?0x1:_0x57f456['end']['isBefore'](_0x1fc7b4['end'])?-0x1:_0x57f456['end']['isAfter'](_0x1fc7b4['end'])?0x1:'add'===_0x439966['type']?-0x1:0x1;}),{'root':_0x2d85e1,'changes':_0x430b7e};function _0x1cc8c6(_0x7586f,_0x456ace,_0x5d5101,_0xe9f0d8){const _0x23c9ba=!!_0x1c86af[_0x456ace][_0x7586f],_0x341bb4=_0x23c9ba?_0x1c86af[_0x456ace][_0x7586f]['userId']:null,_0xfa4e90=_0x456ace===_0x1c86af['length']-0x1,_0x4dbe32=_0x453922[_0x7586f][0x0],_0x4305b9=_0x32c510['isObject'](_0x1c86af[_0x456ace]['item']);!_0x2b1503[_0x7586f]&&_0x23c9ba?_0x2b1503[_0x7586f]={'start':_0x5d5101,'tapeItem':_0x1c86af[_0x456ace],'userId':_0x341bb4,'type':_0x7586f}:_0x2b1503[_0x7586f]&&!_0x23c9ba?(_0x2b1503[_0x7586f]['end']=_0x5d5101,_0x2aa0ce(_0x2b1503[_0x7586f]),_0x2b1503[_0x7586f]=null):_0x2b1503[_0x7586f]&&_0x23c9ba&&_0x2b1503[_0x7586f]['userId']!==_0x341bb4&&(_0x2b1503[_0x7586f]['end']=_0x5d5101,_0x4dbe32&&_0x4dbe32['userId']===_0x2b1503[_0x7586f]['userId']||_0x2aa0ce(_0x2b1503[_0x7586f]),_0x2b1503[_0x7586f]={'start':_0x5d5101,'tapeItem':_0x1c86af[_0x456ace],'userId':_0x341bb4,'type':_0x7586f}),_0x2b1503[_0x7586f]&&_0x4305b9&&('elementStart'!==_0x1c86af[_0x456ace]['type']||_0x4dbe32&&_0x4dbe32['userId']===_0x341bb4||_0x453922[_0x7586f]['unshift']({'userId':_0x341bb4,'object':_0x1c86af[_0x456ace]['item'],'change':_0x2b1503[_0x7586f]}),'elementEnd'===_0x1c86af[_0x456ace]['type']&&_0x4dbe32&&_0x4dbe32['object']===_0x1c86af[_0x456ace]['item']&&(_0x453922[_0x7586f]['shift'](),_0x2b1503[_0x7586f]=_0x4dbe32['change'])),_0x2b1503[_0x7586f]&&_0xfa4e90&&(_0x2b1503[_0x7586f]['end']=_0xe9f0d8,_0x2aa0ce(_0x2b1503[_0x7586f]),_0x2b1503[_0x7586f]=null);}function _0x2aa0ce({start:_0x18aaed,end:_0x46d6f6,tapeItem:_0x31a7b0,userId:_0x315bb8,type:_0xa6df60}){const _0x372aee=_0x31a7b0['item'],_0x827cb3=_0x3bc506['schema']['isBlock'](_0x372aee)&&!_0x3bc506['schema']['isLimit'](_0x372aee),_0x473b98=_0x18aaed['nodeAfter']==_0x46d6f6['parent']&&_0x46d6f6['isAtStart'];if(_0x827cb3&&_0x473b98)return;const _0x5aeff0=_0x3bc506['createRange'](_0x18aaed,_0x46d6f6),_0x591629=_0xceed47['get'](_0x315bb8),_0x4236ea=new r({'author':_0x591629,'type':'isAdded'==_0xa6df60||'isAddSuggestion'==_0xa6df60?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0xa6df60||'isRemoveSuggestion'==_0xa6df60},'createdAt':new Date(),'rootName':_0x517875});_0x430b7e['push'](_0x4236ea),_0x2d85e1['markers']['set']('revision:'+_0x4236ea['id'],_0x5aeff0);}function _0xd21f17(_0x31cd6f,_0x38257c){const _0x81fb47=_0x31cd6f['getAttributes'](),_0xdd985=_0x38257c['getAttributes']();for(const _0x181a68 of _0x81fb47){if(_0x181a68[0x1]!==_0x38257c['getAttribute'](_0x181a68[0x0]))return!0x1;_0xdd985['next']();}return _0xdd985['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x123c25=>{const _0x48eaf5=_0x123c25['markerName']['split'](':')[0x1],_0x365129=this['_getChangeFromId'](_0x48eaf5);if(!_0x365129)return null;const _0x4eb41d='add'==_0x365129['type']?'insertion':'deletion',_0x27c34=['ck-suggestion-marker','ck-suggestion-marker-'+_0x4eb41d];return _0x365129['data']['isSuggestion']&&_0x27c34['push']('ck-suggestion-marker-'+_0x4eb41d+'-new'),this['activeChange']==_0x365129&&_0x27c34['push']('ck-suggestion-marker--active'),{'classes':_0x27c34,'attributes':{'data-change-id':_0x48eaf5}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x559f1b=>{_0x559f1b['on']('element:pre',(_0xcac7c5,_0x5b1dbb,_0x2a5878)=>{const _0x5c1b99=_0x5b1dbb['viewItem']['getChild'](0x0);if(!_0x5c1b99||!_0x5c1b99['is']('element','code'))return;if(!_0x2a5878['consumable']['consume'](_0x5c1b99,{'attributes':['vid_start','vid_end']}))return;const _0x133573=_0x5b1dbb['modelRange']['start']['nodeAfter'];_0x2a5878['writer']['setAttribute']('vid_start',_0x5c1b99['getAttribute']('vid_start'),_0x133573),_0x2a5878['writer']['setAttribute']('vid_end',_0x5c1b99['getAttribute']('vid_end'),_0x133573);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x20f681=>{_0x20f681['on']('element',(_0x32438a,_0x2d6ec4,_0x1e51a2)=>{if(!_0x1e51a2['consumable']['consume'](_0x2d6ec4['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x2d6ec4['modelRange']['isCollapsed'])return;const _0x7ace7a=_0x2d6ec4['modelRange']['start']['nodeAfter'];_0x7ace7a['hasAttribute']('vid_start')||_0x7ace7a['hasAttribute']('vid')||(_0x1e51a2['writer']['setAttribute']('vid_start',_0x2d6ec4['viewItem']['getAttribute']('vid_start'),_0x7ace7a),_0x1e51a2['writer']['setAttribute']('vid_end',_0x2d6ec4['viewItem']['getAttribute']('vid_end'),_0x7ace7a));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x15db2c=>_0x15db2c['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x283ccb,[,_0x5d959])=>{['vid_start','vid_end','vid']['includes'](_0x5d959)&&(_0x283ccb['return']=!0x0,_0x283ccb['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x168842=>{_0x168842['on']('attribute:vid',(_0x49a986,_0x277cb1,_0x26ef62)=>{if('\x20'!=_0x277cb1['item']['data']||_0x277cb1['item']['parent']['maxOffset']>0x1)return;if(!_0x26ef62['consumable']['consume'](_0x277cb1['item'],_0x49a986['name']))return;const _0x3c064f=_0x26ef62['writer'],_0x46e3a3=_0x26ef62['mapper']['toViewRange'](_0x277cb1['range']);_0x3c064f['wrap'](_0x46e3a3,_0x3c064f['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x2c6154){const _0x421e8a=_0x2c6154['plugins']['get']('RevisionViewer');return(_0x48bbbe,_0x3323a4,_0x4caf01)=>{const _0x1095d6=_0x3323a4['markerName']['split'](':')[0x1],_0x350184=_0x421e8a['_getChangeFromId'](_0x1095d6);if(!_0x350184)return null;const _0x37992b='add'==_0x350184['type']?'split':'merge';if(!_0x4caf01['consumable']['test'](_0x3323a4['markerRange'],_0x48bbbe['name']))return;const _0x5f01d1=_0x3323a4['markerRange']['getWalker'](),_0x1e3f34=_0x3323a4['markerRange']['start'],_0x43cfa7=_0x2c6154['model']['schema'];let _0x56f262=null,_0x4d0791=null,_0x2a4829=!0x1,_0xf111c=!0x1;for(const _0x4a1239 of _0x5f01d1){const _0x127c61=_0x4a1239['item'];_0x2a4829=_0x2a4829||_0x43cfa7['isContent'](_0x127c61);const _0x2401da=_0x4caf01['mapper']['toViewElement'](_0x127c61);if(_0x2401da&&_0x2401da['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4a1239['type']&&(_0x43cfa7['isBlock'](_0x127c61)&&!_0x43cfa7['isLimit'](_0x127c61)&&(_0x127c61['nextSibling']||_0x1e3f34['isAtEnd']?_0x56f262&&_0x56f262['parent']==_0x127c61||(_0x56f262=_0x127c61,_0x26ad8f(_0x4a1239['previousPosition']),_0xf111c=!0x0):_0x4d0791=_0x4d0791||_0x4a1239['previousPosition']));}function _0x26ad8f(_0x209d14){const _0x5a89ee=_0x4caf01['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x37992b}),_0x1cecd7=_0x4caf01['mapper']['toViewPosition'](_0x209d14);_0x350184['data']['isSuggestion']&&_0x4caf01['writer']['addClass']('ck-suggestion-marker-'+_0x37992b+'-new',_0x5a89ee),_0x421e8a['activeChange']==_0x350184&&_0x4caf01['writer']['addClass']('ck-suggestion-marker--active',_0x5a89ee),_0x4caf01['writer']['insert'](_0x1cecd7,_0x5a89ee),_0x4caf01['mapper']['bindElementToMarker'](_0x5a89ee,_0x3323a4['markerName']);}_0x2a4829||_0xf111c||!_0x4d0791||_0x26ad8f(_0x4d0791);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0xf978c3,_0x34627f,_0x4acf2b)=>{const _0x2be946=_0x4acf2b['mapper']['markerNameToElements'](_0x34627f['markerName']);if(_0x2be946){for(const _0x30c649 of _0x2be946)(_0x30c649['hasClass']('ck-suggestion-marker-split')||_0x30c649['hasClass']('ck-suggestion-marker-merge'))&&(_0x4acf2b['mapper']['unbindElementFromMarkerName'](_0x30c649,_0x34627f['markerName']),_0x4acf2b['writer']['remove'](_0x30c649));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x4058ab,_0x4fa416,_0x5ec617)=>{const _0x1ef7ef=_0x4fa416['markerName']['split'](':')[0x1],_0x355501=this['_getChangeFromId'](_0x1ef7ef);if(!_0x355501)return null;const _0x4382ed='add'==_0x355501['type']?'split':'merge';if(_0x5ec617['consumable']['test'](_0x4fa416['markerRange'],_0x4058ab['name']))for(const _0x36c2f1 of _0x4fa416['markerRange']['getItems']()){if(!_0x36c2f1['is']('element','softBreak'))continue;const _0x132a89=_0x5ec617['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4382ed}),_0x49c3ab=_0x5ec617['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x36c2f1));_0x355501['data']['isSuggestion']&&_0x5ec617['writer']['addClass']('ck-suggestion-marker-'+_0x4382ed+'-new',_0x132a89),this['activeChange']==_0x355501&&_0x5ec617['writer']['addClass']('ck-suggestion-marker--active',_0x132a89),_0x5ec617['writer']['insert'](_0x49c3ab,_0x132a89),_0x5ec617['mapper']['bindElementToMarker'](_0x132a89,_0x4fa416['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x311cfa=>{for(const _0x5e16c2 of this['editor']['model']['document']['getRootNames']()){const _0x1c3abe=this['editor']['model']['document']['getRoot'](_0x5e16c2),_0x54fe1d=this['editor']['editing']['view']['document']['getRoot'](_0x5e16c2);if(_0x54fe1d){const _0x18669e=_0x1c3abe['getAttribute']('revisionHistoryAttachChange');if(_0x311cfa['removeAttribute']('data-change-id',_0x54fe1d),_0x311cfa['removeClass']('ck-revision-history-root-add',_0x54fe1d),_0x311cfa['removeClass']('ck-revision-history-root-remove',_0x54fe1d),_0x311cfa['removeClass']('ck-revision-history-root--active',_0x54fe1d),_0x18669e){const _0x46502b=this['_getChangeFromId'](_0x18669e);if(!_0x46502b)return null;_0x311cfa['setAttribute']('data-change-id',_0x18669e,_0x54fe1d),_0x311cfa['addClass']('ck-revision-history-root-'+_0x46502b['type'],_0x54fe1d),this['activeChange']==_0x46502b&&_0x311cfa['addClass']('ck-revision-history-root--active',_0x54fe1d);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x2761f=>'revision-comment:'+_0x2761f,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x323670=>'revision-suggestion:'+_0x323670,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x5a0043=>({'name':'suggestion:'+_0x5a0043,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x1f6ca4=>{const _0x5132c2=_0x1f6ca4['markerName']['split'](':')[0x1];return'insertion'!=_0x5132c2&&'deletion'!=_0x5132c2?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x5132c2]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',X(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',X(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x5f570e,_0x229d09,_0x49156c)=>{const _0x5ed0e9=_0x49156c['mapper']['markerNameToElements'](_0x229d09['markerName']);if(_0x5ed0e9){for(const _0x28e86a of _0x5ed0e9)_0x28e86a['is']('uiElement')&&(_0x49156c['mapper']['unbindElementFromMarkerName'](_0x28e86a,_0x229d09['markerName']),_0x49156c['writer']['remove'](_0x28e86a));}},{'priority':'high'});}['_getChangeFromId'](_0x2962fe){return this['_changeIdToChange']['get'](_0x2962fe);}['_getViewForChange'](_0xe6aaff){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0xe6aaff),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x388657,_0x2704d5,_0x4c25c2,_0x59f324)=>{_0x59f324&&this['_balloon']['remove'](_0x59f324),_0x4c25c2&&(this['_balloon']['add']({'view':_0x4c25c2,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x234b2=this['editor']['editing'],_0x405e35=this['_getChangeFromId'](_0x4c25c2['changeId']);let _0x5371f0;if(_0x405e35['data']['isOnRoot']){const _0x51a8b6=_0x234b2['view']['getDomRoot'](_0x405e35['rootName']);_0x5371f0=Array['from'](_0x51a8b6['getClientRects']());}else{const _0x2dda4e=this['editor']['model']['markers']['get']('revision:'+_0x4c25c2['changeId']);_0x5371f0=Array['from'](_0x234b2['mapper']['markerNameToElements'](_0x2dda4e['name']))['map'](_0x414779=>_0x234b2['view']['domConverter']['mapViewToDom'](_0x414779))['map'](_0x13e428=>Array['from'](_0x13e428['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x5371f0[0x0];return _0x5371f0['find'](_0x508e05=>_0x508e05['top']-0x3<=this['_activeViewTarget']['y']&&_0x508e05['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x508e05['left']-0x3<=this['_activeViewTarget']['x']&&_0x508e05['right']+0x3>=this['_activeViewTarget']['x'])||_0x5371f0[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x39d4c8,_0xc534a6,_0x34a182,_0x5c3d89)=>{this['activeView']=_0x34a182?this['_getViewForChange'](_0x34a182):null,this['editor']['model']['change'](()=>{const _0x4f7156=this['editor']['editing'];_0x5c3d89&&(_0x5c3d89['data']['isOnRoot']?_0x4f7156['view']['change'](_0x3fdd81=>{_0x3fdd81['removeClass']('ck-revision-history-root--active',_0x4f7156['view']['document']['getRoot'](_0x5c3d89['rootName']));}):_0x4f7156['reconvertMarker']('revision:'+_0x5c3d89['id'])),_0x34a182&&(_0x34a182['data']['isOnRoot']?_0x4f7156['view']['change'](_0x2a2fa0=>{_0x2a2fa0['addClass']('ck-revision-history-root--active',_0x4f7156['view']['document']['getRoot'](_0x34a182['rootName']));}):_0x4f7156['reconvertMarker']('revision:'+_0x34a182['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x65802c,_0x10e081)=>{if(this['activeChange'])return;const _0x3d7d23=this['_findChangeIdFromDomTarget'](_0x10e081['target']),_0x5268e7=this['_changeIdToChange']['get'](_0x3d7d23);_0x5268e7?(this['_activeViewTarget']={'x':_0x10e081['domEvent']['x'],'y':_0x10e081['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x5268e7)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x372fad,_0x31125e)=>{const _0x4ea990=this['_findChangeIdFromDomTarget'](_0x31125e['target']),_0x140597=this['_changeIdToChange']['get'](_0x4ea990);_0x140597?(this['_activeViewTarget']={'x':_0x31125e['domEvent']['x'],'y':_0x31125e['domEvent']['y']},_0x140597===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x140597):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x505eae){do{const _0xc70057=_0x505eae['getAttribute']('data-change-id');if(_0xc70057)return _0xc70057;_0x505eae=_0x505eae['parent'];}while(_0x505eae);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x41ecc9=>{for(const _0x21fd63 of this['editor']['model']['markers'])_0x41ecc9['removeMarker'](_0x21fd63);});}}function X(_0x2d4ceb,_0x4f21b6){return(_0x3790cf,_0x20670e,_0xdae188)=>{if(!_0xdae188['consumable']['test'](_0x20670e['markerRange'],_0x3790cf['name']))return;const _0x1a5e4e=_0x20670e['markerRange']['getWalker'](),_0x209854=_0x20670e['markerRange']['start'],_0x39d304=_0x2d4ceb['model']['schema'];let _0x3f0c42=null,_0x1697ff=null,_0x23ac95=!0x1,_0x3f0333=!0x1;for(const _0x1d6bdf of _0x1a5e4e){const _0x2050dc=_0x1d6bdf['item'];_0x23ac95=_0x23ac95||_0x39d304['isContent'](_0x2050dc);const _0x358e5d=_0xdae188['mapper']['toViewElement'](_0x2050dc);if(_0x358e5d&&_0x358e5d['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1d6bdf['type']&&(_0x39d304['isBlock'](_0x2050dc)&&!_0x39d304['isLimit'](_0x2050dc)&&(_0x2050dc['nextSibling']||_0x209854['isAtEnd']?_0x3f0c42&&_0x3f0c42['parent']==_0x2050dc||(_0x3f0c42=_0x2050dc,_0x44eceb(_0x1d6bdf['previousPosition']),_0x3f0333=!0x0):_0x1697ff=_0x1697ff||_0x1d6bdf['previousPosition']));}function _0x44eceb(_0x124d4b){const _0x101dae=_0xdae188['mapper']['toViewPosition'](_0x124d4b),_0x5afac5=_0xdae188['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x4f21b6});_0xdae188['writer']['insert'](_0x101dae,_0x5afac5),_0xdae188['mapper']['bindElementToMarker'](_0x5afac5,_0x20670e['markerName']);}_0x23ac95||_0x3f0333||!_0x1697ff||_0x44eceb(_0x1697ff);};}class wt extends _0x401c69{constructor(_0x4a7f30){super(_0x4a7f30);const _0x74e3ee=_0x4a7f30['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x74e3ee,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x74e3ee,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x548c08=this['editor'],_0x82acae=_0x548c08['plugins']['get'](m),_0x1e6c49=_0x82acae['isReady']?_0x82acae['diff']['newRevisionId']:null;_0x548c08['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x1e6c49);}['refresh'](){const {isReady:_0x33880e,isEnabled:_0x4257d6,repository:_0x4e8ff7,diff:_0x52226d}=this['editor']['plugins']['get'](m),_0x5ac3bf=_0x52226d&&_0x4e8ff7['getLaterVisibleRevision'](_0x52226d['newRevisionId']);this['isEnabled']=_0x33880e&&_0x4257d6&&Boolean(_0x5ac3bf);}}class pt extends _0x401c69{['_step'];constructor(_0x148290,{direction:_0x5ee96c}){super(_0x148290);const _0x523418=_0x148290['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x5ee96c?0x1:-0x1,this['listenTo'](_0x523418,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x523418,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x523418,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x8b4b22=this['editor'],_0x4f55bb=_0x8b4b22['plugins']['get'](m),{isNavigationMode:_0x3e2b9d,currentChangeNumber:_0x39c77b}=_0x4f55bb;let _0x29b9d7;if(_0x4f55bb['activeChange']=_0x3e2b9d?_0x4f55bb['diff']['changes']['get'](_0x39c77b+this['_step']):_0x4f55bb['diff']['changes']['first'],_0x4f55bb['activeChange']['data']['isOnRoot'])_0x29b9d7=_0x8b4b22['editing']['view']['getDomRoot'](_0x4f55bb['activeChange']['rootName']);else{const _0x4cb672=_0x8b4b22['model']['markers']['get']('revision:'+_0x4f55bb['activeChange']['id']);_0x29b9d7=_0x2c2761(_0x8b4b22['editing'],_0x4cb672);}_0x2aff8f({'target':_0x29b9d7,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x4681ff,currentChangeNumber:_0x4fafa2,numberOfChanges:_0x48d8c4,isReady:_0x1d4233,isEnabled:_0x23d91f}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x23d91f&&_0x1d4233&&_0x48d8c4)&&(!_0x4681ff||(0x1===this['_step']?_0x4fafa2<_0x48d8c4-0x1:_0x4fafa2>0x0));}}class _i extends _0x29c029{constructor(_0x399a99){super(_0x399a99);const _0x33b327=this['bindTemplate'],_0x1d7f7d=new _0x4f0d8d(_0x399a99),_0x261268=new _0x4f0d8d(_0x399a99);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',(_0xbd468e,_0xdcf3b2)=>_0xbd468e&&_0xdcf3b2>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x1621b1,_0xb96268,_0x5ac65c,_0x1813c1)=>{if(!_0x1621b1)return g(_0x399a99,'Loading...');if(!_0x5ac65c)return g(_0x399a99,'No\x20changes');const _0x5812f5=g(_0x399a99,'NUMBER_OF_CHANGES',_0x5ac65c);return _0x1813c1?g(_0x399a99,'X_OF_Y_CHANGES',[_0xb96268+0x1,_0x5ac65c]):_0x5812f5;}),_0x1d7f7d['set']({'label':g(_0x399a99,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x245128}),_0x261268['set']({'label':g(_0x399a99,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x5b69b8}),_0x1d7f7d['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x261268['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x1d7f7d['on']('execute',()=>this['fire']('execute','backward')),_0x261268['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',_0x33b327['if']('_isStatusLabelVisible','ck-hidden',_0x343861=>!_0x343861)]},'children':[{'text':_0x33b327['to']('isNavigationMode',_0x347e46=>_0x347e46?g(_0x399a99,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x399a99,'Total')+':\x20')}]},{'text':_0x33b327['to']('_statusText')}]},new _0x39e9cc(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x1d7f7d,_0x261268]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x5df236{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x551346=this['editor']['editing']['view'];_0x551346['change'](_0x20f851=>{for(const _0x314d26 of _0x551346['document']['roots'])_0x20f851['addClass'](ce,_0x314d26);});}['hide'](){const _0x3f017d=this['editor']['editing']['view'];_0x3f017d['change'](_0x409573=>{for(const _0x23714f of _0x3f017d['document']['roots'])_0x409573['removeClass'](ce,_0x23714f);});}}class R extends _0x5df236{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,le];}['init'](){const _0x70c930=this['editor'],_0xc2906d=_0x70c930['plugins']['get'](m),_0x3da031=_0x70c930['plugins']['get'](le);_0x70c930['ui']['componentFactory']['add']('exitToEditing',_0x1ed836=>{const _0x452726=new _0x4f0d8d(_0x1ed836);return _0x452726['set']({'label':g(_0x1ed836,'Back\x20to\x20editing'),'icon':_0x249b76,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x452726,'execute',()=>{_0x70c930['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x452726;}),_0x70c930['ui']['componentFactory']['add']('restoreRevision',_0x1c77d0=>{const _0x13f903=new _0x4f0d8d(_0x1c77d0);return _0x13f903['set']({'label':g(_0x1c77d0,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x13f903['bind']('isEnabled')['to'](_0x70c930['commands']['get']('restoreRevision')),this['listenTo'](_0x13f903,'execute',()=>_0x70c930['execute']('restoreRevision')),_0x13f903;}),_0x70c930['ui']['componentFactory']['add']('changesNavigation',_0x1b8814=>{const _0x3b99dd=new _i(_0x1b8814),_0x56ead2=_0x70c930['commands']['get']('showPreviousChange'),_0x51e472=_0x70c930['commands']['get']('showNextChange');return _0x3b99dd['bind']('isBackwardNavigationEnabled')['to'](_0x56ead2,'isEnabled'),_0x3b99dd['bind']('isForwardNavigationEnabled')['to'](_0x51e472,'isEnabled'),_0x3b99dd['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0xc2906d),this['listenTo'](_0x3b99dd,'execute',(_0x1e6836,_0x103ac4)=>{_0x70c930['execute']('forward'===_0x103ac4?'showNextChange':'showPreviousChange');}),_0x3b99dd;}),_0x3da031['show'](),_0xc2906d['on']('change:isReady',(_0x2e18c,_0x3347fa,_0xab69d7)=>{_0xab69d7?_0x3da031['hide']():_0x3da031['show']();});}}class lt extends nt{['_resizeObserver']=null;constructor(_0x167eb2,_0x52bdd2){super(_0x167eb2,_0x52bdd2);const _0x4fde52=this['bindTemplate'];this['set']({'label':g(_0x167eb2,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x167eb2,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x4fde52['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new at(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x46d793=this['fieldView']['element'];this['_tooltipString']=_0x46d793['scrollWidth']>_0x46d793['clientWidth']&&_0x46d793['value']||'';}}class oi extends _0x29c029{constructor(_0x856d18,_0x37255e,_0x5c7f1e){super(_0x856d18);const _0x1c8bf2=new _0x6ec42d();_0x1c8bf2['set']({'content':_0x395a6e,'viewBox':'0\x200\x2011\x2010'});const _0x5a3b99=['ck','ck-revision-history-sidebar__revision-author'];_0x5c7f1e&&_0x5a3b99['push']('ck-revision-history-sidebar__revision-author_creator');const _0x260bd0=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x856d18,_0x5c7f1e?'Revision\x20creator':'Revision\x20author')},'children':[_0x1c8bf2,_0x37255e['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x5a3b99},'children':_0x260bd0});}}function ni(_0x29a89c,_0x3ef0c4){const _0x3da837=_0x29a89c['bindTemplate'],_0x58736d=_0x29a89c['locale'],_0x39603c=_0x3a8b72(_0x58736d);_0x39603c['panelPosition']='sw';const _0x480179=function(_0xc1d3e1,_0x31ffa5){const _0xebde91=function(_0x2025b5,_0x54ceb2){const _0x2aced4=_0x2025b5['locale'],_0x2ae552={'Compare\x20against\x20selected':g(_0x2aced4,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x2aced4,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x2aced4,'Restore\x20this\x20revision')};return _0x54ceb2['map'](_0x45a97e=>{const _0x3c6ef1=_0x2ae552[_0x45a97e['name']];return _0x3c6ef1&&_0x3c6ef1!==_0x45a97e['name']&&(_0x45a97e['name']=_0x3c6ef1),_0x45a97e;});}(_0xc1d3e1,_0x31ffa5),_0x5894fe=new _0x4b7808();for(const _0x15b55e of _0xebde91){const _0x198f4b={'type':'button','model':new to({'label':_0x15b55e['name'],'class':_0x15b55e['class'],'withText':!0x0,'role':'menuitem','_action':_0x15b55e['action']})};_0x198f4b['model']['bind']('isEnabled')['to'](_0xc1d3e1,'isActionsDropdownOpen',_0xf1c1a0=>'function'!=typeof _0x15b55e['isEnabled']||(!_0xf1c1a0||_0x15b55e['isEnabled'](_0xc1d3e1))),_0x5894fe['add'](_0x198f4b);}return _0x5894fe;}(_0x29a89c,_0x3ef0c4);return _0x29a89c['bind']('isActionsDropdownOpen')['to'](_0x39603c,'isOpen'),_0x39603c['buttonView']['set']({'label':g(_0x58736d,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x200883}),_0x39603c['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x3da837['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x3da837['to'](_0x1a7437=>_0x1a7437['stopPropagation']())}}),_0x39603c['on']('execute',_0x316658=>{_0x29a89c['isReady']&&'function'==typeof _0x316658['source']['_action']&&_0x316658['source']['_action'](_0x29a89c);}),_0x30b893(_0x39603c,_0x480179,{'role':'menu'}),_0x39603c['listenTo'](_0x29a89c,'change:isActionsDropdownOpen',(_0x215325,_0x2b189f,_0x1f41d6)=>{if(_0x1f41d6)for(const _0x4a27c2 of _0x39603c['listView']['items']){const _0x1d6570=_0x4a27c2['children']['first'],_0x350ea3=_0x3ef0c4['find'](_0x4f5903=>_0x4f5903['action']===_0x1d6570['_action'])['isVisible'];_0x4a27c2['isVisible']=void 0x0===_0x350ea3||_0x350ea3(_0x29a89c);}}),_0x39603c;}class ai extends/* #__PURE__ -- @preserve */
|
|
26
|
-
|
|
23
|
+
import{ObservableMixin as _0x11aaf9,uid as _0x19f1f8,Collection as _0x58fbc2,logWarning as _0x9f97ee,FocusTracker as _0x3442d6,KeystrokeHandler as _0x47111d,scrollViewportToShowTarget as _0x31a828,ResizeObserver as nt,ElementReplacer as ot,CKEditorError as _0x3f46eb}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x54f69d,set as _0x3c8c83,unset as _0x39b3c1,isEqual as _0x73df34}from'es-toolkit/compat';import{Plugin as _0xc858c4,PendingActions as _0x2c2110,Command as _0x4ca95f,ElementApiMixin as _0x1cb442,Editor as _0x3afd4d}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x27c92d,getMarkerDomElement as _0x3ab3e0,ConfirmMixin as ti,sanitizeEditorConfig as _0x4a9536}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x33ae4a,ViewAttributeElement as _0x343ac3,ViewEmptyElement as _0x363faa,ViewRawElement as _0x4f743a,ViewUIElement as _0x37d218,ViewDocumentFragment as _0x34ebf2,ViewText as _0x21dd2f,ViewElement as _0x390be8,Element as ut,Range as lt,Position as ft,DocumentFragment as vt,Text as gt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x3e9cd6,IconChevronUp as _0x561f5e,IconChevronDown as _0x4300e8,IconUndo as _0x4cc4d4,IconUser as _0x29cf36,IconThreeVerticalDots as _0x5e73cb}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x46a33f,submitHandler as _0x51f4e9,LabeledFieldView as _0xacc8af,createLabeledInputText as _0x5442b6,createDropdown as _0x5f4b44,ListView as _0x5320ef,ListItemView as _0x215dab,ButtonView as te,MenuBarMenuView as _0x444fc6,MenuBarMenuListView as _0x2a7399,MenuBarMenuListItemView as _0x42e37e,MenuBarMenuListItemButtonView as _0x182e41,ContextualBalloon as _0x962635,ToolbarSeparatorView as _0x134577,IconView as _0x2e0193,addListToDropdown as _0x44ae0e,ViewModel as to,EditorUI as st,normalizeToolbarConfig as et,BoxedEditorUIView as rt,StickyPanelView as ht,ToolbarView as dt,InlineEditableUIView as ct}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x5730c1}from'luxon';class h extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x11aaf9(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x3c160d){super(),this['id']=_0x3c160d['id']||_0x19f1f8(),this['creator']=_0x3c160d['creator']||null,this['authors']=_0x3c160d['authors']||[],this['diffData']=_0x3c160d['diffData']||null,this['toVersion']=_0x3c160d['toVersion']||0x0,this['fromVersion']=_0x3c160d['fromVersion']||0x0,this['set']('name',_0x3c160d['name']||''),this['set']('createdAt',_0x3c160d['createdAt']||new Date()),this['set']('attributes',_0x3c160d['attributes']||{});}['setName'](_0x139ee4){this['_update']({'name':_0x139ee4});}['setAttribute'](_0x872cb8,_0x38d341){const _0x4a5fd6=_0x54f69d(this['attributes']);_0x3c8c83(_0x4a5fd6,_0x872cb8,_0x38d341),this['_update']({'attributes':_0x4a5fd6});}['removeAttribute'](_0x377807){const _0x529737=_0x54f69d(this['attributes']);_0x39b3c1(_0x529737,_0x377807),this['_update']({'attributes':_0x529737});}['_update'](_0x2c7da3,_0x16fb00=!0x1){let _0x19c693=!0x1;const _0x357367={'id':this['id']},_0x58ea55=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x2be8d7 of _0x58ea55){const _0x31599a=_0x2c7da3[_0x2be8d7];void 0x0!==_0x31599a&&_0x31599a!==this[_0x2be8d7]&&(this[_0x2be8d7]=_0x31599a,_0x357367[_0x2be8d7]=_0x31599a,_0x19c693=!0x0);}_0x19c693&&(_0x357367['authors']&&(_0x357367['authorsIds']=_0x357367['authors']['map'](_0x166a31=>_0x166a31['id']),delete _0x357367['authors']),this['fire']('_update',_0x357367,_0x16fb00));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x180eae=>_0x180eae['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0xc858c4{['_revisions'];static get['requires'](){return[_0x27c92d];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x85f94b){super(_0x85f94b),this['_revisions']=new _0x58fbc2();}['afterInit'](){!async function(_0x46e289){const _0x29bfdc=_0x5aba64([0x66,0x70,0x76,0x72,0x7a,0x31,0x43,0x6d,0x52,0x55,0x54,0x65,0x69,0x53,0x46,0x77,0x38,0x68,0x6b,0x64,0x35,0x58,0x30,0x51,0x73,0x41,0x56,0x6a,0x39,0x33,0x37,0x44,0x4f,0x4b,0x57,0x4c,0x4a,0x50,0x36,0x74,0x5a,0x6c,0x4e,0x49,0x34,0x61,0x59,0x71,0x4d,0x75,0x6e,0x47,0x6f,0x32,0x79,0x42,0x45,0x48,0x63,0x62,0x67,0x78]),_0x478c7f=0xeb829,_0x15a894=0xf3ce7bc,_0x94880c=0xf3b81d4^_0x15a894,_0x5a4d9c=window[_0x5aba64([0x44,0x61,0x74,0x65])][_0x5aba64([0x6e,0x6f,0x77])](),_0x50f42c=_0x46e289[_0x5aba64([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3ffb7d=new window[(_0x5aba64([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x565170=>{_0x50f42c[_0x5aba64([0x6f,0x6e,0x63,0x65])](_0x5aba64([0x72,0x65,0x61,0x64,0x79]),_0x565170);}),_0x1feae9={[_0x5aba64([0x6b,0x74,0x79])]:_0x5aba64([0x45,0x43]),[_0x5aba64([0x75,0x73,0x65])]:_0x5aba64([0x73,0x69,0x67]),[_0x5aba64([0x63,0x72,0x76])]:_0x5aba64([0x50,0x2d,0x32,0x35,0x36]),[_0x5aba64([0x78])]:_0x5aba64([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]),[_0x5aba64([0x79])]:_0x5aba64([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]),[_0x5aba64([0x61,0x6c,0x67])]:_0x5aba64([0x45,0x53,0x32,0x35,0x36])},_0x3c3e10=_0x50f42c[_0x5aba64([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5aba64([0x67,0x65,0x74])](_0x5aba64([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2602be(){let _0x52dfdc,_0xd00e88=null,_0x50758a=null;try{if(_0x3c3e10==_0x5aba64([0x47,0x50,0x4c]))return _0x5aba64([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x52dfdc=_0x2cda6a(),!_0x52dfdc)return _0x5aba64([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x52dfdc[_0x5aba64([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x50758a=_0x3d8922(_0x52dfdc[_0x5aba64([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x52dfdc[_0x5aba64([0x6a,0x74,0x69])])),await _0x4d9b95()?_0xb2fda2()?_0x50e936()?_0x5aba64([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2151d5()?(_0x52dfdc[_0x5aba64([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5aba64([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xd00e88=_0x5af87e(_0x5aba64([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x52dfdc[_0x5aba64([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5aba64([0x74,0x72,0x69,0x61,0x6c])&&(_0xd00e88=_0x5af87e(_0x5aba64([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x411e9a()):_0x5aba64([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5aba64([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5aba64([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x34438f){return _0x5aba64([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x50e936(){const _0x16e218=[_0x5aba64([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5aba64([0x74,0x72,0x69,0x61,0x6c])][_0x5aba64([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52dfdc[_0x5aba64([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5a4d9c/0x3e8:0xe10*_0x94880c;return _0x52dfdc[_0x5aba64([0x65,0x78,0x70])]<_0x16e218;}function _0xb2fda2(){const _0x1c11c0=_0x52dfdc[_0x5aba64([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x1c11c0)return!0x1;if(_0x1c11c0[_0x5aba64([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5aba64([0x2a])))return!0x0;if(_0x1c11c0[_0x5aba64([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5aba64([0x52,0x48])))return!0x0;if(_0x1c11c0[_0x5aba64([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5aba64([0x52,0x52,0x48]))){if(_0x7418e5())return!0x0;if(_0x1ba3fa()||_0x4465e6())return!0x0;}return!0x1;}function _0x2151d5(){const _0x57e195=_0x52dfdc[_0x5aba64([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x57e195||0x0==_0x57e195[_0x5aba64([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1a0002}=new URL(window[_0x5aba64([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x57e195[_0x5aba64([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1a0002))return!0x0;const _0x529c96=_0x1a0002[_0x5aba64([0x73,0x70,0x6c,0x69,0x74])](_0x5aba64([0x2e]));return _0x57e195[_0x5aba64([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5cb7db=>_0x5cb7db[_0x5aba64([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5aba64([0x2a])))[_0x5aba64([0x6d,0x61,0x70])](_0x38dfdc=>_0x38dfdc[_0x5aba64([0x73,0x70,0x6c,0x69,0x74])](_0x5aba64([0x2e])))[_0x5aba64([0x73,0x6f,0x6d,0x65])](_0x1112cb=>_0x529c96[_0x5aba64([0x65,0x76,0x65,0x72,0x79])]((_0x42942e,_0xd4b84b)=>_0x1112cb[_0xd4b84b]===_0x42942e||_0x1112cb[_0xd4b84b]===_0x5aba64([0x2a])));}function _0x411e9a(){return _0xd00e88&&_0x50758a?new window[(_0x5aba64([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4fba3b,_0x367e40)=>{_0xd00e88[_0x5aba64([0x74,0x68,0x65,0x6e])](_0x4fba3b,_0x367e40),_0x50758a[_0x5aba64([0x74,0x68,0x65,0x6e])](_0x55cf4b=>{_0x55cf4b!=_0x5aba64([0x56,0x61,0x6c,0x69,0x64])&&_0x4fba3b(_0x55cf4b);},_0x367e40);}):_0xd00e88||_0x50758a||_0x5aba64([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3d8922(_0x4b373f,_0x4563a8){return new window[(_0x5aba64([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x7124e1=>{if(_0x23528b())return _0x7124e1(_0x5aba64([0x56,0x61,0x6c,0x69,0x64]));_0xdd7081(),_0x50f42c[_0x5aba64([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5aba64([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1ada3d=!0x1;const _0xbf93e=_0x19f1f8();function _0x21a9fd(_0x4aaa24){return!!_0x4aaa24&&(typeof _0x4aaa24===_0x5aba64([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4aaa24===_0x5aba64([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4aaa24[_0x5aba64([0x74,0x68,0x65,0x6e])]===_0x5aba64([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4aaa24[_0x5aba64([0x63,0x61,0x74,0x63,0x68])]===_0x5aba64([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3185d3(_0x5de0b8){_0x28261c(_0x5de0b8)[_0x5aba64([0x74,0x68,0x65,0x6e])](_0x53f970=>{if(!_0x53f970||_0x53f970[_0x5aba64([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5aba64([0x6f,0x6b]))return _0x5aba64([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x40a50c(_0x49585f(_0xbf93e+_0x4563a8))!=_0x53f970[_0x5aba64([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5aba64([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5aba64([0x56,0x61,0x6c,0x69,0x64]);})[_0x5aba64([0x74,0x68,0x65,0x6e])](_0x36e3fb=>(_0x4c8220(),_0x36e3fb),()=>{const _0x4a46c3=_0x1da40f();return null==_0x4a46c3?(_0x4c8220(),_0x5aba64([0x56,0x61,0x6c,0x69,0x64])):_0x5aba64(_0x5a4d9c-_0x4a46c3>(0x2b3063bc^_0x15a894)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5aba64([0x74,0x68,0x65,0x6e])](_0x7124e1)[_0x5aba64([0x63,0x61,0x74,0x63,0x68])](()=>{_0x7124e1(_0x5aba64([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1fa18c=0xf0a093c^_0x15a894;function _0x4c8220(){const _0x26c815=_0x5aba64([0x6c,0x6c,0x63,0x74,0x2d])+_0x40a50c(_0x49585f(_0x4b373f)),_0x388381=_0x11a4f3(_0x40a50c(window[_0x5aba64([0x4d,0x61,0x74,0x68])][_0x5aba64([0x63,0x65,0x69,0x6c])](_0x5a4d9c/_0x1fa18c)));window[_0x5aba64([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5aba64([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x26c815,_0x388381);}function _0x1da40f(){const _0x2b6579=_0x5aba64([0x6c,0x6c,0x63,0x74,0x2d])+_0x40a50c(_0x49585f(_0x4b373f)),_0x2fffd0=window[_0x5aba64([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5aba64([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2b6579);return _0x2fffd0?window[_0x5aba64([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x11a4f3(_0x2fffd0),0x10)*_0x1fa18c:null;}function _0x28261c(_0x5d0363){return new window[(_0x5aba64([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x22214b,_0x62c9f0)=>{_0x5d0363[_0x5aba64([0x74,0x68,0x65,0x6e])](_0x22214b,_0x62c9f0),window[_0x5aba64([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x62c9f0,0xf3d337c^_0x15a894);});}}_0x50f42c[_0x5aba64([0x6f,0x6e])](_0x5aba64([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x599887,_0x63ff45)=>{if(_0x63ff45[0x0]!=_0x4b373f)return _0x7124e1(_0x5aba64([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x63ff45[0x1]={..._0x63ff45[0x1],[_0x5aba64([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xbf93e};},{[_0x5aba64([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5aba64([0x68,0x69,0x67,0x68])}),_0x50f42c[_0x5aba64([0x6f,0x6e])](_0x5aba64([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x50cc85=>{_0x21a9fd(_0x50cc85[_0x5aba64([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1ada3d=!0x0,_0x3185d3(_0x50cc85[_0x5aba64([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5aba64([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5aba64([0x6c,0x6f,0x77])}),_0x3ffb7d[_0x5aba64([0x74,0x68,0x65,0x6e])](()=>{_0x1ada3d||_0x7124e1(_0x5aba64([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x23528b(){return _0x50f42c[_0x5aba64([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5aba64([0x76,0x69,0x65,0x77])][_0x5aba64([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5aba64([0x61,0x75,0x74,0x6f]);}function _0xdd7081(){_0x50f42c[_0x5aba64([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5aba64([0x76,0x69,0x65,0x77])][_0x5aba64([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5aba64([0x61,0x75,0x74,0x6f]);}}function _0x5af87e(_0x54cde9){const _0x53376e=[new window[(_0x5aba64([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5132f9=>setTimeout(_0x5132f9,0xf35d970^_0x15a894)),_0x3ffb7d[_0x5aba64([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5aba64([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x25f90f=>{const _0x450e98=0xf3ce7bb^_0x15a894,_0x5ab28f=_0x46e289[_0x5aba64([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x5619e2(){_0x5ab28f[_0x5aba64([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x450e98&&_0x25f90f();}_0x5619e2(),_0x5ab28f[_0x5aba64([0x6f,0x6e])](_0x5aba64([0x61,0x64,0x64]),_0x5619e2);})),new window[(_0x5aba64([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3c637a=>{function _0x1fcf0b(){for(const _0x40743a in window)if(window[_0x5aba64([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x5aba64([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x40743a))&&window[_0x40743a]==_0x478c7f)return _0x3c637a();_0x50f42c[_0x5aba64([0x73,0x74,0x61,0x74,0x65])]!=_0x5aba64([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x5aba64([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1fcf0b,0xf3cf434^_0x15a894);}_0x164a77(_0x5aba64([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x1fcf0b();})];return window[_0x5aba64([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5aba64([0x72,0x61,0x63,0x65])](_0x53376e)[_0x5aba64([0x74,0x68,0x65,0x6e])](()=>_0x54cde9);}async function _0x104e3a(){if(await _0x3ffb7d,_0x164a77(_0x5aba64([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x1e7a30=_0x46e289[_0x5aba64([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x11f653=_0x46e289[_0x5aba64([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])](_0x1e7a30[_0x5aba64([0x69,0x64])]),_0x3c2fea=_0x5199dc(_0x5aba64([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x3c2fea[_0x5aba64([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x1e7a30['id'],_0x11f653?_0x11f653['id']:null,!0x0),_0x3c2fea[_0x5aba64([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x5aba64([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x3c2fea[_0x5aba64([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x3c2fea[_0x5aba64([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x590fa6,void(_0x3c2fea[_0x5aba64([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x590fa6);}if(_0x164a77(_0x5aba64([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x53351=_0x5199dc(_0x5aba64([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x53351[_0x5aba64([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x5aba64([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x53351[_0x5aba64([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x53351[_0x5aba64([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x590fa6,_0x53351[_0x5aba64([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x590fa6;}_0x50f42c[_0x5aba64([0x6d,0x6f,0x64,0x65,0x6c])][_0x5aba64([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x590fa6,_0x50f42c[_0x5aba64([0x6d,0x6f,0x64,0x65,0x6c])][_0x5aba64([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x590fa6,_0x50f42c[_0x5aba64([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5aba64([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x7418e5(){return _0x164a77(_0x5aba64([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x5199dc(_0x5aba64([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x5aba64([0x73,0x74,0x61,0x74,0x65])]==_0x5aba64([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1ba3fa(){return _0x164a77(_0x5aba64([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 _0x4465e6(){return _0x164a77(_0x5aba64([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x262afc(_0x3f81bd){const _0x1542af=_0x25cdc3();_0x50f42c[_0x1542af]=_0x5aba64([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])+_0x3f81bd,_0x3f81bd[_0x5aba64([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x5aba64([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x25cdc3()]=_0x478c7f),_0x3f81bd!=_0x5aba64([0x56,0x61,0x6c,0x69,0x64])&&_0x104e3a();}function _0x25cdc3(){const _0x5256b1=window[_0x5aba64([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5aba64([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5aba64([0x6e,0x6f,0x77])]())[_0x5aba64([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5aba64([0x2e]),'');let _0x457ca3=_0x5aba64([0x66]);for(let _0x557d83=0x0;_0x557d83<_0x5256b1[_0x5aba64([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x557d83+=0x2){let _0x2fafca=window[_0x5aba64([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5256b1[_0x5aba64([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x557d83,_0x557d83+0x2));_0x2fafca>=_0x29bfdc[_0x5aba64([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2fafca-=_0x29bfdc[_0x5aba64([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x457ca3+=_0x29bfdc[_0x2fafca];}return _0x457ca3;}function _0x2cda6a(){const _0x24a86=_0x3c3e10[_0x5aba64([0x73,0x70,0x6c,0x69,0x74])](_0x5aba64([0x2e]));if(0x3!=_0x24a86[_0x5aba64([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1f7849(_0x24a86[0x1]);function _0x1f7849(_0x2b7f6a){const _0x2bf260=_0x19c548(_0x2b7f6a);return _0x2bf260&&_0x51ec79()?_0x2bf260:null;function _0x51ec79(){const _0x12d07d=_0x2bf260[_0x5aba64([0x6a,0x74,0x69])],_0x6b79eb=window[_0x5aba64([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x12d07d[_0x5aba64([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x12d07d[_0x5aba64([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x36ec77={..._0x2bf260,[_0x5aba64([0x6a,0x74,0x69])]:_0x12d07d[_0x5aba64([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x12d07d[_0x5aba64([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x36ec77[_0x5aba64([0x76,0x63])],_0x49585f(_0x36ec77)==_0x6b79eb;}}}async function _0x4d9b95(){let _0x54bc90=!0x0;try{const _0x5705cd=_0x3c3e10[_0x5aba64([0x73,0x70,0x6c,0x69,0x74])](_0x5aba64([0x2e])),[_0x308924,_0x208a14,_0x305aac]=_0x5705cd;return _0x54f968(_0x308924),await _0x1fefb1(_0x308924,_0x208a14,_0x305aac),_0x54bc90;}catch(_0x4ae01f){return!0x1;}function _0x54f968(_0x52c45e){const _0x4aae44=_0x19c548(_0x52c45e);_0x4aae44&&_0x4aae44[_0x5aba64([0x61,0x6c,0x67])]==_0x5aba64([0x45,0x53,0x32,0x35,0x36])||(_0x54bc90=!0x1);}async function _0x1fefb1(_0x74cf8,_0x2f033c,_0x444668){const _0x7a3c90=window[_0x5aba64([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5aba64([0x66,0x72,0x6f,0x6d])](_0x26da1f(_0x444668),_0x13bcc2=>_0x13bcc2[_0x5aba64([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xfbeb66=new window[(_0x5aba64([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5aba64([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x74cf8+_0x5aba64([0x2e])+_0x2f033c),_0x56e8e3=window[_0x5aba64([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5aba64([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x56e8e3)return;const _0x3a2cef=await _0x56e8e3[_0x5aba64([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5aba64([0x6a,0x77,0x6b]),_0x1feae9,{[_0x5aba64([0x6e,0x61,0x6d,0x65])]:_0x5aba64([0x45,0x43,0x44,0x53,0x41]),[_0x5aba64([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5aba64([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5aba64([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x56e8e3[_0x5aba64([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5aba64([0x6e,0x61,0x6d,0x65])]:_0x5aba64([0x45,0x43,0x44,0x53,0x41]),[_0x5aba64([0x68,0x61,0x73,0x68])]:{[_0x5aba64([0x6e,0x61,0x6d,0x65])]:_0x5aba64([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3a2cef,_0x7a3c90,_0xfbeb66)||(_0x54bc90=!0x1);}}function _0x19c548(_0x3a520f){return _0x3a520f[_0x5aba64([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5aba64([0x65,0x79]))?JSON[_0x5aba64([0x70,0x61,0x72,0x73,0x65])](_0x26da1f(_0x3a520f)):null;}function _0x26da1f(_0x3b5c64){return window[_0x5aba64([0x61,0x74,0x6f,0x62])](_0x3b5c64[_0x5aba64([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5aba64([0x2b]))[_0x5aba64([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5aba64([0x2f])));}function _0x49585f(_0x133caa){let _0x3cbdfa=0x1505;function _0x2a8452(_0x129f3e){for(let _0x23e361=0x0;_0x23e361<_0x129f3e[_0x5aba64([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x23e361++){const _0x52a0fc=_0x129f3e[_0x5aba64([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x23e361);_0x3cbdfa=(_0x3cbdfa<<0x5)+_0x3cbdfa+_0x52a0fc,_0x3cbdfa&=_0x3cbdfa;}}function _0x289389(_0x1b2c60){Array[_0x5aba64([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1b2c60)?_0x1b2c60[_0x5aba64([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x289389):_0x1b2c60&&typeof _0x1b2c60==_0x5aba64([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5aba64([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1b2c60)[_0x5aba64([0x73,0x6f,0x72,0x74])]()[_0x5aba64([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xa11949,_0x3f1c40])=>{_0x2a8452(_0xa11949),_0x289389(_0x3f1c40);}):_0x2a8452(window[_0x5aba64([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1b2c60));}return _0x289389(_0x133caa),_0x3cbdfa>>>0x0;}function _0x40a50c(_0x339765){return _0x339765[_0x5aba64([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5aba64([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5aba64([0x30]));}function _0x11a4f3(_0x541ac2){return _0x541ac2[_0x5aba64([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5aba64([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5aba64([0x6a,0x6f,0x69,0x6e])]('');}function _0x164a77(_0x41196e){return _0x50f42c[_0x5aba64([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5aba64([0x68,0x61,0x73])](_0x41196e);}function _0x5199dc(_0x19ad76){return _0x50f42c[_0x5aba64([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5aba64([0x67,0x65,0x74])](_0x19ad76);}function _0x590fa6(){}function _0x5aba64(_0x3ee344){return _0x3ee344['map'](_0x6f62ad=>String['fromCharCode'](_0x6f62ad))['join']('');}_0x262afc(await _0x2602be());}(this);}['createRevision'](_0x37663c){const _0x3efebd=this['editor']['plugins']['get']('Users');return new h({'id':_0x37663c['id'],'name':_0x37663c['name'],'creator':_0x37663c['creatorId']?_0x3efebd['getUser'](_0x37663c['creatorId']):null,'diffData':_0x37663c['diffData']||_0x37663c['data'],'authors':_0x37663c['authorsIds']['map'](_0x3584e3=>_0x3efebd['getUser'](_0x3584e3)),'createdAt':new Date(_0x37663c['createdAt']),'attributes':_0x37663c['attributes'],'fromVersion':_0x37663c['fromVersion'],'toVersion':_0x37663c['toVersion']});}['addRevision'](_0x52852f,_0x55178e=0x0){this['_revisions']['add'](_0x52852f,_0x55178e);}['getRevision'](_0x301e0d){return this['_revisions']['get'](_0x301e0d);}['getRevisions'](_0x35fd3e={'toJSON':!0x1}){const _0x7e8203=Array['from'](this['_revisions']);return _0x7e8203['reverse'](),_0x35fd3e['toJSON']?_0x7e8203['map'](_0x21b377=>_0x21b377['toJSON']()):_0x7e8203;}['getIndex'](_0x4007c8){return this['_revisions']['getIndex'](_0x4007c8);}['getEarlierVisibleRevision'](_0x31cf5c){const [,_0x41750f]=this['getRevisionsIterator'](_0x31cf5c,{'direction':'earlier'});return _0x41750f;}['getLaterVisibleRevision'](_0xa6cee6){const [,_0x37e405]=this['getRevisionsIterator'](_0xa6cee6,{'direction':'later'});return _0x37e405;}['getRevisionsInDiff'](_0xffee14){const _0x30ea8b=[];for(const _0x403648 of this['getRevisionsIterator'](_0xffee14['newRevisionId']))if(_0x30ea8b['push'](_0x403648),_0x403648['id']===_0xffee14['oldRevisionId'])break;return _0x30ea8b;}*['getRevisionsIterator'](_0x3a8b58,{direction:_0x4181ea='earlier',filter:_0x597410=()=>!0x0}={}){const _0x12f1f0='earlier'===_0x4181ea?0x1:-0x1;let _0x50d3ea=this['_revisions']['get'](_0x3a8b58),_0x39d02a=this['getIndex'](_0x50d3ea);for(yield _0x50d3ea;_0x50d3ea;){if(_0x39d02a+=_0x12f1f0,_0x50d3ea=this['getRevision'](_0x39d02a),!_0x50d3ea)return;_0x597410(_0x50d3ea)&&(yield _0x50d3ea);}}}class V extends _0xc858c4{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x33ae4a,'c'],[_0x343ac3,'a'],[_0x363faa,'e'],[_0x4f743a,'r'],[_0x37d218,'u']]);['_typeCharToViewClass']=new Map([['c',_0x33ae4a],['a',_0x343ac3],['e',_0x363faa],['r',_0x4f743a],['u',_0x37d218]]);async['loadRevisionData'](_0xec7c84,_0x33ce00){if(_0xec7c84['diffData']||!_0x33ce00)return;const _0xbec91a=this['editor']['config']['get']('collaboration.channelId'),_0x2fb7ea=await _0x33ce00['getRevision']({'channelId':_0xbec91a,'revisionId':_0xec7c84['id']});_0xec7c84['diffData']=_0x2fb7ea['diffData'];}['getRevisionDocumentData'](_0x2597c4){const _0x3ac074={};for(const _0x484dc3 in _0x2597c4['diffData']){if(_0x2597c4['diffData'][_0x484dc3]['attachChange']&&!_0x2597c4['diffData'][_0x484dc3]['attachChange']['isAttached'])continue;const _0x5906e5=this['_removeRevisionMarkers'](JSON['parse'](_0x2597c4['diffData'][_0x484dc3]['insertions'])),_0x2a3caa=this['editor']['editing']['view']['document'],_0x19fdba=new _0x34ebf2(_0x2a3caa,_0x5906e5['map'](_0x5462c6=>this['_getViewFromDiffObj'](_0x5462c6,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x3ac074[_0x484dc3]=this['editor']['data']['processor']['toData'](_0x19fdba),this['editor']['data']['processor']['useFillerType']('default');}return _0x3ac074;}['getRevisionRootsAttributes'](_0x587212){const _0x1599c4={};for(const _0x36c0c5 in _0x587212['diffData'])_0x587212['diffData'][_0x36c0c5]['attachChange']&&!_0x587212['diffData'][_0x36c0c5]['attachChange']['isAttached']||(_0x1599c4[_0x36c0c5]=_0x587212['diffData'][_0x36c0c5]['attributesAfter']||{});return _0x1599c4;}['_getTypeCharForViewElement'](_0x9be74){return this['_viewClassToTypeChar']['get'](_0x9be74['constructor']);}['_getViewFromDiffObj'](_0x250c35,_0x2d4b0d){const _0xce3400=this['editor']['editing']['view']['document'];if('string'==typeof _0x250c35)return new _0x21dd2f(_0xce3400,_0x250c35);{let _0x38a6b6,_0x3c93bb;_0x3c93bb='u'==_0x250c35['type']||'r'==_0x250c35['type']?[]:_0x250c35['children']['map'](_0xdd4262=>this['_getViewFromDiffObj'](_0xdd4262,_0x2d4b0d));const _0x2963ea=this['_typeCharToViewClass']['get'](_0x250c35['type'])||_0x390be8,_0x50812b=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x38a6b6=new _0x2963ea(_0xce3400,_0x250c35['name'],_0x250c35['attributes'],_0x3c93bb),'u'==_0x250c35['type']&&_0x250c35['children'][0x0]){const _0x58eb9b=_0x250c35['children'][0x0];if(_0x38a6b6['render']=function(_0x3c3fff){const _0x51e0da=_0x3c3fff['createElement']('div');return _0x51e0da['innerHTML']=_0x58eb9b,_0x51e0da['childNodes'][0x0];},_0x2d4b0d){const _0x1a4212=new _0x34ebf2(_0xce3400);_0x1a4212['_appendChild'](_0x38a6b6);const _0x3773ad=Array['from'](_0x50812b['viewChildrenToDom'](_0x1a4212,{'bind':!0x1})),_0x1d8748=_0x50812b['domDocument']['createElement']('div');_0x1d8748['append'](..._0x3773ad),_0x38a6b6=Array['from'](_0x50812b['domChildrenToView'](_0x1d8748))[0x0];}}else{if('r'==_0x250c35['type']&&_0x250c35['children'][0x0]){const _0x3c20ae=_0x250c35['children'][0x0];if(_0x38a6b6['render']=function(_0x1f4ac6){_0x1f4ac6['innerHTML']=_0x3c20ae;},_0x2d4b0d){const _0xaa0113=new _0x34ebf2(_0xce3400);_0xaa0113['_appendChild'](_0x38a6b6);const _0x6b0f5f=Array['from'](_0x50812b['viewChildrenToDom'](_0xaa0113,{'bind':!0x1})),_0x31f9bf=_0x50812b['domDocument']['createElement']('div');_0x31f9bf['append'](..._0x6b0f5f);const _0x45d051=Array['from'](_0x50812b['domChildrenToView'](_0x31f9bf));_0x45d051['length']>0x1?_0x38a6b6['_appendChild'](_0x45d051):_0x38a6b6=_0x45d051[0x0];}}}if(_0x250c35['customProperties']){for(const [_0x206b17,_0x4260c7]of _0x250c35['customProperties'])_0x38a6b6['_setCustomProperty'](_0x206b17,_0x4260c7);}const _0x474181=void 0x0===_0x250c35['fillerOffset']?null:_0x250c35['fillerOffset'];return null!==_0x474181&&(_0x38a6b6['getFillerOffset']=()=>_0x474181),_0x38a6b6;}}['_makeModelFromViewString'](_0x139fdc){const _0x22ad92=JSON['parse'](_0x139fdc),_0x2c254b=this['editor']['editing']['view']['document'],_0x399aa9=new _0x34ebf2(_0x2c254b,_0x22ad92['map'](_0x424cff=>this['_getViewFromDiffObj'](_0x424cff,!0x0)));return this['editor']['data']['toModel'](_0x399aa9);}['_removeRevisionMarkers'](_0x337d35){return(_0x337d35=_0x337d35['filter'](_0x33a5a8=>!_0x33a5a8['name']||'revision-start'!==_0x33a5a8['name']&&'revision-end'!==_0x33a5a8['name']))['forEach'](_0x376c1a=>{'string'!=typeof _0x376c1a&&(_0x376c1a['children']=this['_removeRevisionMarkers'](_0x376c1a['children']),_0x376c1a['attributes']=_0x376c1a['attributes']['filter'](_0x384487=>!_0x384487[0x0]['startsWith']('data-revision-')));}),_0x337d35;}}function g(_0x31c67c,_0x58385e,_0x53b528){const t=_0x31c67c['t'];switch(_0x58385e){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'},_0x53b528);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x53b528);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 u extends _0xc858c4{['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[_0x27c92d,I,V,_0x2c2110];}constructor(_0x1d9046){super(_0x1d9046),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new x(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x568b58=_0x19f1f8();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x568b58},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 _0x4f14f3=this['repository']['getRevision'](0x0),_0x3c228e=_0x4f14f3&&null===_0x4f14f3['creator']?_0x4f14f3:null;if(this['_continueCurrentRevision']=!!_0x3c228e&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x906072=this['_source']['getCurrentRevisionId'](),_0x5a1120=this['repository']['getRevision'](_0x906072);if(_0x5a1120)this['_startingVersion']=_0x5a1120['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x3dbafc=this['_source']['history']['_operations']['find'](_0x42d9d7=>!_0x42d9d7['_isInit']),_0x15a0f2=_0x3dbafc?_0x3dbafc['baseVersion']:this['_source']['history']['version'];_0x4f14f3?(_0x4f14f3['toVersion']<_0x15a0f2&&_0x4f14f3['_update']({'toVersion':_0x15a0f2}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x3c228e['id'],this['_startingVersion']=_0x3c228e['fromVersion']):(this['_startingVersion']=_0x4f14f3['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x15a0f2,this['_continueCurrentRevision']=!0x1);}}else _0x3c228e&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x3c228e['toVersion'],this['editor']['model']['document']['history']['version']),_0x3c228e['fromVersion']===_0x3c228e['toVersion']?(0x0!==_0x3c228e['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x3c228e['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x3c228e['id'],this['_startingVersion']=_0x3c228e['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',_0x4ae295=>!_0x4ae295),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x40767a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3903a5;for(const _0x4398d9 in _0x40767a){const _0x57e0f0=_0x4398d9,_0xa3212a=_0x40767a[_0x57e0f0];if('revisionHistoryLicenseKeyValid'==_0xa3212a||'revisionHistoryLicenseKeyInvalid'==_0xa3212a||'revisionHistoryLicenseKeyExpired'==_0xa3212a||'revisionHistoryLicenseKeyDomainLimit'==_0xa3212a||'revisionHistoryLicenseKeyNotAllowed'==_0xa3212a||'revisionHistoryLicenseKeyEvaluationLimit'==_0xa3212a||'revisionHistoryLicenseKeyTrialLimit'==_0xa3212a||'revisionHistoryLicenseKeyUsageLimit'==_0xa3212a){delete _0x40767a[_0x57e0f0],_0x3903a5=_0xa3212a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x3903a5&&_0x40767a['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x3903a5&&_0x40767a['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x3903a5&&_0x40767a['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x3903a5&&_0x40767a['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x3903a5&&_0x40767a['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x3903a5&&_0x40767a['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x3903a5&&_0x40767a['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x4058fc=this['repository']['getRevision'](0x0),_0x5a839c=await this['getRevisionDocumentData'](_0x4058fc),_0x111702=await this['getRevisionRootsAttributes'](_0x4058fc);this['_replaceEditorDataWithRevisionData'](_0x5a839c,_0x111702);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x3c4b8f){this['_source']=_0x3c4b8f;}async['update'](){const _0x346ee8=await this['_source']['getLatestVersion']();if(_0x346ee8>this['currentRevision']['toVersion']){await this['_loadState']();const _0x1697ef=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x346ee8});_0x1697ef['authors']=_0x1697ef['authorsIds']['map'](_0xcd495a=>this['editor']['plugins']['get']('Users')['getUser'](_0xcd495a)),this['currentRevision']['_update'](_0x1697ef);}}async['saveRevision'](_0xbd04e9={},_0x3618c9=null){const _0x405009=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x3618c9>this['currentRevision']['toVersion']&&(_0x3618c9=null),null===_0x3618c9&&(_0x3618c9=await this['_source']['getLatestVersion']());const _0x27ea4b=this['_getFromVersion'](_0x3618c9),_0x1045f5=this['buildRevisionData']({'from':_0x27ea4b,'to':_0x3618c9});if(this['currentRevision']['toVersion']<_0x3618c9){const _0x140062=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x3618c9,'to':_0x3618c9});_0x140062['authors']=[],_0x140062['authorsIds']=[],_0x140062['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x140062,!0x0),delete _0x140062['authors'],_0x405009['push'](_0x140062);}_0xbd04e9['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0xbd04e9['name']=_0xbd04e9['name']||null,_0xbd04e9['id']=_0xbd04e9['id']||_0x19f1f8(),_0xbd04e9={..._0xbd04e9,..._0x1045f5};const _0x5572ad=this['addRevisionData'](_0xbd04e9);_0x405009['push'](_0xbd04e9);const _0x50dd59=this['repository']['getIndex'](_0x5572ad);if(0x0!==_0x50dd59){const _0x3c70b5=this['repository']['getRevision'](_0x50dd59-0x1);if(_0x3c70b5['fromVersion']!==_0x3618c9){const _0x327492=this['_revisionDataBuilder']['getData'](_0x3618c9,_0x3c70b5['toVersion']),_0x1502ea={'id':_0x3c70b5['id'],'diffData':_0x327492['diffData'],'authorsIds':_0x327492['authorsIds'],'authors':_0x327492['authorsIds']['map'](_0x286387=>this['editor']['plugins']['get']('Users')['getUser'](_0x286387)),'fromVersion':_0x3618c9};_0x3c70b5===this['currentRevision']&&(_0x1502ea['createdAt']=new Date(_0xbd04e9['createdAt']['getTime']()+0xa)),_0x3c70b5['_update'](_0x1502ea,!0x0),delete _0x1502ea['authors'],_0x405009['push'](_0x1502ea);}}if(this['adapter']){for(const _0x33ceca of _0x405009)this['_bufferUpdate'](_0x33ceca['id'],_0x33ceca,!0x0);this['sendBufferedUpdates']();}return _0x5572ad;}['addRevisionData'](_0x1cbbb7){const _0x1464a0=this['repository']['createRevision'](_0x1cbbb7);return this['adapter']&&_0x1464a0['on']('_update',(_0x3fbf69,_0x28bb22,_0x4d72ce)=>{_0x4d72ce||(this['_bufferUpdate'](_0x28bb22['id'],_0x28bb22,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x1464a0,this['_findInsertionIndex'](_0x1464a0)),_0x1464a0;}async['getRevisionDocumentData'](_0x44aefd){return await this['_utils']['loadRevisionData'](_0x44aefd,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x44aefd);}async['getRevisionRootsAttributes'](_0x563c4e){return await this['_utils']['loadRevisionData'](_0x563c4e,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x563c4e);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x4143a7=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x21c763=0x0;_0x21c763<_0x4143a7['length'];_0x21c763++){const _0xfc8f4=_0x4143a7[_0x21c763];let _0x13b7d4=!0x1;for(const _0x48453d of Object['keys'](_0xfc8f4))void 0x0===_0xfc8f4[_0x48453d]?delete _0xfc8f4[_0x48453d]:'id'!==_0x48453d&&(_0x13b7d4=!0x0);_0x13b7d4||(_0x4143a7[_0x21c763]=null);}if(_0x4143a7=_0x4143a7['filter'](_0x40c71c=>null!==_0x40c71c),!_0x4143a7['length'])return;for(let _0x443c4a=0x0;_0x443c4a<_0x4143a7['length'];_0x443c4a++){const _0x5d97c0=_0x4143a7[_0x443c4a];void 0x0!==_0x5d97c0['fromVersion']&&void 0x0===_0x5d97c0['toVersion']&&(_0x5d97c0['toVersion']=this['repository']['getRevision'](_0x5d97c0['id'])['toVersion']),void 0x0!==_0x5d97c0['toVersion']&&void 0x0===_0x5d97c0['fromVersion']&&(_0x5d97c0['fromVersion']=this['repository']['getRevision'](_0x5d97c0['id'])['fromVersion']);}const _0x457661=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x4143a7,_0x457661)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x412f6f=>{if(_0x412f6f){for(const _0x2089ab of _0x412f6f)this['setRevisionData']({'id':_0x2089ab['id'],'createdAt':_0x2089ab['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x3659b5=null,from:_0x30cdb5=null,to:_0x57dd53=null}){_0x30cdb5=null!==_0x30cdb5?_0x30cdb5:_0x3659b5['fromVersion'],_0x57dd53=null!==_0x57dd53?_0x57dd53:_0x3659b5['toVersion'];const _0x2079b7=this['_revisionDataBuilder']['getData'](_0x30cdb5,_0x57dd53),_0x28a51d={'diffData':_0x2079b7['diffData'],'authorsIds':_0x2079b7['authorsIds'],'fromVersion':_0x30cdb5,'toVersion':_0x57dd53};if(!_0x3659b5||_0x57dd53!==_0x3659b5['toVersion']){const _0x494a88=_0x57dd53-0x1,_0x2653cb=this['_source']['history']['getOperation'](_0x494a88);_0x28a51d['createdAt']=_0x2653cb&&_0x2653cb['createdAt']||new Date();}if(this['_loadedStateData']&&_0x30cdb5===this['_loadedStateData']['fromVersion']){for(const _0x575f07 of this['_loadedStateData']['authors'])_0x28a51d['authorsIds']['includes'](_0x575f07['id'])||_0x28a51d['authorsIds']['push'](_0x575f07['id']);}return _0x28a51d;}['_bufferUpdate'](_0x23e498,_0xa5edd1,_0x175049){if(this['_bufferedUpdates']['has'](_0x23e498)){const _0x649e3=this['_bufferedUpdates']['get'](_0x23e498);_0xa5edd1=_0x175049?{..._0x649e3,..._0xa5edd1}:{..._0xa5edd1,..._0x649e3};}this['_bufferedUpdates']['set'](_0x23e498,_0xa5edd1);}['setRevisionData'](_0x356536){const _0x38bde5=this['repository']['getRevision'](_0x356536['id']);if(_0x356536['createdAt']&&(_0x356536['createdAt']=new Date(_0x356536['createdAt'])),_0x356536['authorsIds']){const _0xb53ba6=this['editor']['plugins']['get']('Users');_0x356536['authors']=_0x356536['authorsIds']['map'](_0x3f3ecd=>_0xb53ba6['getUser'](_0x3f3ecd));}_0x38bde5['_update'](_0x356536,!0x0);}['_createInitialRevision'](_0x3a25b4){const _0x17d87d=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x17d87d)this['_initialRevisionId']=_0x17d87d['id'];else{const _0x1f49f1=!this['editor']['model']['document']['roots']['find'](_0x4953e9=>this['editor']['model']['hasContent'](_0x4953e9)),_0x56b1d3=this['editor']['plugins']['get']('Users')['me']['id'],_0x35ab16=g(this['editor']['locale'],_0x1f49f1?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x3a25b4,'to':_0x3a25b4,'id':this['_initialRevisionId'],'name':_0x35ab16,'creatorId':_0x56b1d3});}}['_createCurrentRevision'](_0x3745a1){const _0x2cabff=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x2cabff),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x3745a1,'to':_0x3745a1,'id':_0x2cabff,'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'](_0x313c98,_0x1eab5a){let _0x5eca31=this['editor']['config']['get']('initialData'),_0x2a3cfc=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x5eca31){_0x5eca31={};for(const _0x37b3bf of this['editor']['model']['document']['getRootNames']())_0x5eca31[_0x37b3bf]='';}if('string'==typeof _0x5eca31&&(_0x5eca31={'main':_0x5eca31}),void 0x0===_0x2a3cfc){_0x2a3cfc={};for(const _0xc7a53 of this['editor']['model']['document']['getRootNames']())_0x2a3cfc[_0xc7a53]={};}let _0x337586=!0x1;const _0x1e6593=Object['keys'](_0x5eca31),_0x2e310f=Object['keys'](_0x313c98);for(const _0x501f17 of _0x1e6593){if(_0x5eca31[_0x501f17]!==_0x313c98[_0x501f17]&&''!==_0x5eca31[_0x501f17]['trim']()){_0x337586=!0x0;break;}if(!_0x73df34(_0x2a3cfc[_0x501f17],_0x1eab5a[_0x501f17])&&Object['keys'](_0x2a3cfc[_0x501f17])['length']>0x0){_0x337586=!0x0;break;}}_0x337586||(_0x337586=_0x2e310f['some'](_0x47cd78=>!this['editor']['model']['document']['getRoot'](_0x47cd78))),_0x337586&&_0x9f97ee('editor-initial-data-replaced-with-revision-data',{'editorData':_0x5eca31,'editorRootsAttributes':_0x2a3cfc,'revisionData':_0x313c98,'revisionRootsAttributes':_0x1eab5a}),this['editor']['config']['set']('initialData',_0x313c98),this['editor']['config']['set']('rootsAttributes',_0x1eab5a);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x52da5f=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x52da5f['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x4da092){const _0x4e5d7a=this['repository']['getRevisions']();_0x4e5d7a['reverse']();let _0xe7eec4=0x0;for(;_0xe7eec4<_0x4e5d7a['length'];){const _0x23ce38=_0x4e5d7a[_0xe7eec4];if(_0x23ce38===this['currentRevision']){_0xe7eec4++;continue;}if(_0x23ce38['id']===this['_initialRevisionId'])break;const _0x208d05=_0x4da092['toVersion']-_0x23ce38['toVersion']||_0x4da092['fromVersion']-_0x23ce38['fromVersion'];if(_0x208d05>0x0)break;if(_0x208d05<0x0)_0xe7eec4++;else{if(!_0x4da092['creator']&&_0x23ce38['creator'])break;if(_0x23ce38['creator']||!_0x4da092['creator']){if(_0x4da092['createdAt']>_0x23ce38['createdAt'])break;_0xe7eec4++;}else _0xe7eec4++;}}return _0xe7eec4;}['_getFromVersion'](_0x3855ab){const _0x34952c=this['repository']['getRevisions']();_0x34952c['reverse'](),_0x34952c['shift']();const _0x1bf69d=_0x34952c['find'](_0x5ef564=>_0x5ef564['toVersion']<=_0x3855ab)['toVersion'];return _0x1bf69d<this['_startingVersion']?this['_startingVersion']:_0x1bf69d;}['_makeRevision']({name:_0x418b1c,from:_0x23c46b,to:_0x477443,creatorId:_0x4806de,id:_0x20054b}){const _0xdfc9ba=this['buildRevisionData']({'from':_0x23c46b,'to':_0x477443});_0xdfc9ba['name']=_0x418b1c,_0xdfc9ba['creatorId']=_0x4806de,_0xdfc9ba['id']=_0x20054b;const _0x5cd572=this['addRevisionData'](_0xdfc9ba);return this['adapter']&&this['_bufferUpdate'](_0xdfc9ba['id'],_0xdfc9ba,!0x0),_0x5cd572;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class x{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x1da8c0){this['editor']=_0x1da8c0,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'](_0x543a04){this['source']=_0x543a04;const _0x51ed07=new Map(),_0x513999=new Map(),_0x31f6cb=this['editor']['model']['document']['roots']['map'](_0x1b00f2=>_0x1b00f2['rootName']);for(const _0x1df524 of _0x31f6cb){const _0x3e8d54=this['editor']['model']['document']['getRoot'](_0x1df524),_0x1a4442=N(_0x3e8d54);_0x51ed07['set'](_0x1df524,_0x1a4442),_0x513999['set'](_0x1df524,Object['fromEntries'](_0x3e8d54['getAttributes']()));}const _0x442967=Array['from'](this['editor']['model']['markers'])['map'](_0x324f6e=>[_0x324f6e['name'],_0x324f6e['getRange']()]),_0x5aba8c=this['source']['version'];this['_saveMetaData'](_0x5aba8c,_0x51ed07,_0x442967,_0x513999),this['_startingRevisionId']=this['_revisionId'];const _0xdbcb16=new Map(),_0x2714aa=new Map();for(const _0x21685f of _0x31f6cb){const _0x1b0b81=P(_0x21685f);_0xdbcb16['set'](_0x21685f,_0x1b0b81),_0x2714aa['set'](_0x21685f,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0xdbcb16,[],_0x2714aa);}['getData'](_0x2d342c,_0x78af48){if(this['_lastFrom']===_0x2d342c&&this['_lastTo']<=_0x78af48)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x78af48,!0x0);else{if(!this['_savedMetaData']['has'](_0x2d342c)){const _0x4167f5=this['_getPreviousFrom'](_0x2d342c);this['_calculateMetaData'](_0x4167f5,_0x2d342c,!0x1);}this['_calculateMetaData'](_0x2d342c,_0x78af48,!0x0);}return this['_lastFrom']=_0x2d342c,this['_lastTo']=_0x78af48,this['_getState']();}['loadState'](_0x2dacfc){const _0x2e984f=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x2dacfc['fromVersion'],this['_lastTo']=_0x2dacfc['toVersion'];for(const _0x4d2054 in _0x2dacfc['diffData']){const _0x167a65=_0x2dacfc['diffData'][_0x4d2054]['attachChange'],_0x248e9b=_0x54f69d(_0x2dacfc['diffData'][_0x4d2054]['attributesBefore'])||{},_0x3bceb2=_0x2e984f['_makeModelFromViewString'](_0x2dacfc['diffData'][_0x4d2054]['deletions']);_0x3bceb2['rootName']=_0x4d2054,_0x3bceb2['_isAttached']=!_0x167a65||!_0x167a65['isAttached'],_0x3bceb2['isAttached']=()=>_0x3bceb2['_isAttached'],this['_baseRoots']['set'](_0x4d2054,_0x3bceb2),this['_baseRootsAttributes']['set'](_0x4d2054,_0x248e9b),_0x167a65&&this['_touchedRoots']['set'](_0x4d2054,_0x167a65);const _0x485893=this['_makeIdsRoot'](_0x3bceb2);this['_baseIdsRoots']['set'](_0x4d2054,_0x485893);for(const [_0x579e04,_0x273c66]of _0x3bceb2['markers']){if(!_0x579e04['startsWith']('revision:'))continue;const _0x25f6f0=_0x579e04['split'](':')[0x2];for(const _0xbc2bd4 of _0x273c66['getWalker']({'singleCharacters':!0x0})){const _0x4a2663=this['_getVidAttributeName'](_0xbc2bd4),_0x29c95e='elementEnd'==_0xbc2bd4['type']?_0xbc2bd4['previousPosition']['path']['slice'](0x0,-0x1):_0xbc2bd4['previousPosition']['path'],_0x13448c=_0x485893['getNodeByPath'](_0x29c95e)['getAttribute'](_0x4a2663);this['_touched']['set'](_0x13448c,{'userId':_0x25f6f0});}}}this['_startingRevisionId']=this['_revisionId'];const _0x27fb75=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x2e7573=>!this['_touched']['has'](_0x2e7573));let _0xb010be=0x0;const _0x44961a=new Map();for(const _0x5e12fe in _0x2dacfc['diffData']){const _0x154da0=_0x2dacfc['diffData'][_0x5e12fe]['attachChange'],_0x1614f0=_0x54f69d(_0x2dacfc['diffData'][_0x5e12fe]['attributesAfter'])||{},_0x216368=_0x2e984f['_makeModelFromViewString'](_0x2dacfc['diffData'][_0x5e12fe]['insertions']);_0x216368['rootName']=_0x5e12fe,_0x216368['_isAttached']=!_0x154da0||_0x154da0['isAttached'],_0x216368['isAttached']=()=>_0x216368['_isAttached'],this['_diffRoots']['set'](_0x5e12fe,_0x216368),this['_diffRootsAttributes']['set'](_0x5e12fe,_0x1614f0);const _0x119807=this['_makeIdsRoot'](_0x216368,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x5e12fe,_0x119807),_0x44961a['set'](_0x5e12fe,_0x216368['isAttached']()?_0x1614f0:{});for(const [_0x238fe7,_0x1131fa]of _0x216368['markers']){if(!_0x238fe7['startsWith']('revision:'))continue;const _0x51f2b5=_0x238fe7['split'](':')[0x2];for(const _0x1357d9 of _0x1131fa['getWalker']({'singleCharacters':!0x0})){const _0x426316=this['_getVidAttributeName'](_0x1357d9),_0x1429c2=this['_revisionId']++,_0x194a7f='elementEnd'==_0x1357d9['type']?_0x1357d9['previousPosition']['path']['slice'](0x0,-0x1):_0x1357d9['previousPosition']['path'];_0x119807['getNodeByPath'](_0x194a7f)['_setAttribute'](_0x426316,_0x1429c2),this['_touched']['set'](_0x1429c2,{'userId':_0x51f2b5});}}for(const _0x4d837c of this['editor']['model']['createRangeIn'](_0x216368)['getWalker']({'singleCharacters':!0x0})){const _0x47e5a7=this['_getVidAttributeName'](_0x4d837c),_0x5f10d='elementEnd'==_0x4d837c['type']?_0x4d837c['previousPosition']['path']['slice'](0x0,-0x1):_0x4d837c['previousPosition']['path'],_0x1887bf=_0x119807['getNodeByPath'](_0x5f10d);_0x1887bf['getAttribute'](_0x47e5a7)>0x0||_0x1887bf['_setAttribute'](_0x47e5a7,_0x27fb75[_0xb010be++]);}for(const [_0x597aca,_0x5be7fb]of _0x216368['markers'])_0x597aca['startsWith']('revision:')||this['_markers']['set'](_0x597aca,_0x5be7fb);}const _0x2776d6=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0x2776d6),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x2776d6,0x1));const _0x35204f=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x35204f),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x35204f,0x1));const _0x38b449=Array['from'](this['_diffRoots'])['map'](([_0x5e3548,_0x2f2ed4])=>[_0x5e3548,N(_0x2f2ed4)]);this['_saveMetaData'](this['_lastTo'],_0x38b449,this['_markers'],_0x44961a);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x55fbf4,_0x106938,_0x208e98,_0x4a3de3){const _0x440517=new Map(_0x106938),_0x16508b=new Map(_0x54f69d(_0x4a3de3)),_0x4bf060=new Map();for(const [_0x7487e2,_0x23b0b7]of _0x208e98)_0x4bf060['set'](_0x7487e2,{'start':_0x23b0b7['start']['clone'](),'end':_0x23b0b7['end']['clone'](),'rootName':_0x23b0b7['root']['rootName']});this['_savedMetaData']['set'](_0x55fbf4,{'roots':_0x440517,'markers':_0x4bf060,'rootsAttributes':_0x16508b});}['_removeMetaData'](_0x28d732){this['_savedMetaData']['delete'](_0x28d732);}['_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'](_0x324945,_0x4ccb89=null){let _0x7b9a10=null;_0x324945['is']('documentFragment')||(_0x7b9a10=new ut(_0x324945['name'],{'vid_start':null===_0x4ccb89?this['_revisionId']++:_0x4ccb89++}));const _0x3d47f9=[];for(const _0x431f10 of _0x324945['getChildren']())if(_0x431f10['is']('element')){_0x3d47f9['push'](this['_makeIdsRoot'](_0x431f10,_0x4ccb89));const _0x4202d8=_0x3d47f9[_0x3d47f9['length']-0x1];null!==_0x4ccb89&&(_0x4ccb89=_0x4202d8['is']('element','$text')?_0x4202d8['getAttribute']('vid')+0x1:_0x4202d8['getAttribute']('vid_end')+0x1);}else{for(let _0x6e1d58=0x0;_0x6e1d58<_0x431f10['offsetSize'];_0x6e1d58++)_0x3d47f9['push'](new ut('$text',{'vid':null===_0x4ccb89?this['_revisionId']++:_0x4ccb89++}));}if(_0x324945['is']('documentFragment')){const _0x491600=P(_0x324945['rootName']);return _0x491600['_insertChild'](0x0,_0x3d47f9),_0x491600;}return _0x7b9a10['_setAttribute']('vid_end',null===_0x4ccb89?this['_revisionId']++:_0x4ccb89++),_0x7b9a10['_insertChild'](0x0,_0x3d47f9),_0x7b9a10;}['_calculateMetaData'](_0x397c23,_0x534a93,_0x10bf37){this['_reset']();const {roots:_0x536656,markers:_0x1069ea,rootsAttributes:_0x7867f6}=this['_savedMetaData']['get'](_0x397c23);this['_baseRoots']=new Map(_0x536656),this['_baseRootsAttributes']=new Map(_0x54f69d(_0x7867f6));for(const [_0x32fdb0,_0x31b768]of this['_baseRoots'])if('$graveyard'!==_0x32fdb0&&(this['_diffRoots']['set'](_0x32fdb0,N(_0x31b768)),this['_diffRootsAttributes']=new Map(_0x54f69d(_0x7867f6)),_0x10bf37)){const _0x2eeb29=this['_revisionId'];this['_idsRoots']['set'](_0x32fdb0,this['_makeIdsRoot'](_0x31b768)),this['_baseIdsRoots']['set'](_0x32fdb0,this['_makeIdsRoot'](_0x31b768,_0x2eeb29));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x10bf37&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x3b9ac5,_0x5debc8]of _0x1069ea){const _0x19debd=this['_baseRoots']['get'](_0x5debc8['rootName']),_0x1ffedb=this['_diffRoots']['get'](_0x5debc8['rootName']),_0x3824ef=new lt(this['_fixPosition'](_0x5debc8['start'],_0x19debd),this['_fixPosition'](_0x5debc8['end'],_0x19debd)),_0x3ccc70=this['_fixRange'](_0x3824ef,_0x1ffedb);_0x19debd['markers']['set'](_0x3b9ac5,_0x3824ef),this['_markers']['set'](_0x3b9ac5,_0x3ccc70);}this['_applyOperations'](_0x397c23,_0x534a93,_0x10bf37);}['_applyOperations'](_0x358ed3,_0xe3b869,_0x52d28e){for(const _0x487bbb of this['source']['getOperations'](_0x358ed3,_0xe3b869))this['_handleOperation'](_0x487bbb,_0x52d28e);for(const _0x397f05 of this['_diffRoots']['values']())_0x397f05['markers']['clear']();for(const [_0x53ff4f,_0x463c33]of this['_markers']){this['_diffRoots']['get'](_0x463c33['root']['rootName'])['markers']['set'](_0x53ff4f,_0x463c33['clone']());}const _0x2d52a8=new Map(),_0x17be50=new Map();for(const [_0x173405,_0x4a7220]of this['_diffRoots'])_0x2d52a8['set'](_0x173405,N(_0x4a7220)),_0x17be50['set'](_0x173405,this['_diffRootsAttributes']['get'](_0x173405));this['_saveMetaData'](_0xe3b869,_0x2d52a8,this['_markers'],_0x17be50);}['_getPreviousFrom'](_0x2d97a8){const _0x151cbb=Array['from'](this['_savedMetaData']['keys']());_0x151cbb['sort']((_0x1242ee,_0x3c9056)=>_0x1242ee-_0x3c9056),_0x151cbb['reverse']();for(const _0x3fadc8 of _0x151cbb)if(_0x3fadc8<_0x2d97a8)return _0x3fadc8;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x439d0a,_0x10b04d){const _0x59f501=Array['from'](_0x10b04d['markers'])['map'](([_0x2c7aaf,_0x48869e])=>[_0x2c7aaf,this['_fixRange'](_0x48869e,_0x439d0a)]);_0x439d0a['markers']=new Map(_0x59f501);}['_transformMarkers'](_0xd31a1d){for(const _0x4257fa of this['_markers']['values']()){const _0x4b5ff4=_0x4257fa['getTransformedByOperation'](_0xd31a1d),_0x7bc138=lt['_createFromRanges'](_0x4b5ff4);_0x4257fa['start']=_0x7bc138['start'],_0x4257fa['end']=_0x7bc138['end'];}}['_handleOperation'](_0x431018,_0x31a8ab){if('addRoot'!=_0x431018['type']&&'detachRoot'!=_0x431018['type']){if('insert'==_0x431018['type']){const _0x4ede0c=_0x431018['position']['root']['rootName'];this['_diffRoots']['has'](_0x4ede0c)||(this['_diffRoots']['set'](_0x4ede0c,P(_0x4ede0c,!0x0)),this['_diffRootsAttributes']['set'](_0x4ede0c,{}),_0x31a8ab&&this['_idsRoots']['set'](_0x4ede0c,P(_0x4ede0c,!0x0)));}else{if('addRootAttribute'==_0x431018['type']||'removeRootAttribute'==_0x431018['type']||'changeRootAttribute'==_0x431018['type'])return void this['_handleRootAttributeOperation'](_0x431018);'marker'==_0x431018['type']&&this['_handleMarkerOperation'](_0x431018);}if('marker'!==_0x431018['type']){const _0x400a4a=this['_cloneOperation'](_0x431018,this['_diffRoots']);_0x400a4a['_execute'](),this['_transformMarkers'](_0x400a4a);}if(_0x31a8ab)switch(_0x431018['type']){case'insert':this['_handleInsertOperation'](_0x431018);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x431018);break;case'merge':this['_handleMergeOperation'](_0x431018);break;case'split':this['_handleSplitOperation'](_0x431018);}}else this['_handleRootOperation'](_0x431018,_0x31a8ab);}['_cloneOperation'](_0x3f0e76,_0x2f38e6){const _0x3c94f3=_0x3f0e76['clone']();return _0x3c94f3['_authorId']=_0x3f0e76['_authorId'],this['_fixOperation'](_0x3c94f3,_0x2f38e6),_0x3c94f3;}['_getBaseVids'](_0x4bb6ad){return _0x4bb6ad['map'](_0x4ad059=>{const _0x24060c=this['_getVidAttributeName'](_0x4ad059);return Number(_0x4ad059['item']['getAttribute'](_0x24060c));});}['_generateTape'](_0x44ce61,_0x5d2fbe){if(_0x44ce61['is']('element','$text'))_0x5d2fbe['push']({'item':_0x44ce61,'type':'text'});else{_0x44ce61['is']('element')&&_0x5d2fbe['push']({'item':_0x44ce61,'type':'elementStart'});for(const _0x45c5a9 of _0x44ce61['getChildren']())this['_generateTape'](_0x45c5a9,_0x5d2fbe);_0x44ce61['is']('element')&&_0x5d2fbe['push']({'item':_0x44ce61,'type':'elementEnd'});}return _0x5d2fbe;}['_getState'](){const _0x5d7ec9=new Map(this['_touched']),_0x3988e3=new Map(_0x5d7ec9),_0x5940bc=new Map(),_0x4a0b7a={'insertions':{},'deletions':{}},_0xa71202={'insertions':{},'deletions':{}},_0xc5c8d7=new Map(),_0x4621eb=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x4621eb['delete']('$graveyard');for(const _0x148f43 of _0x4621eb){const _0x27337f=this['_diffRoots']['get'](_0x148f43)||P(_0x148f43,!0x1),_0x47f213=this['_baseRoots']['get'](_0x148f43)||P(_0x148f43,!0x1);_0x27337f['isAttached']()||_0x47f213['isAttached']()?(_0x4a0b7a['insertions'][_0x148f43]=N(_0x27337f),_0x4a0b7a['deletions'][_0x148f43]=N(_0x47f213),this['_copyMarkers'](_0x4a0b7a['deletions'][_0x148f43],_0x47f213),this['_copyMarkers'](_0x4a0b7a['insertions'][_0x148f43],_0x27337f),_0xa71202['insertions'][_0x148f43]=this['_generateTape'](this['_idsRoots']['get'](_0x148f43),[]),_0xa71202['deletions'][_0x148f43]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x148f43)||P(_0x148f43,!0x1),[])):_0x4621eb['delete'](_0x148f43);}for(const _0x410bfe of _0x4621eb){const _0x4f4263=_0xa71202['insertions'][_0x410bfe];for(const _0x4505bb of _0x4f4263){const _0x395657=this['_getVidAttributeName'](_0x4505bb),_0x4c7e7f=_0x4505bb['item']['getAttribute'](_0x395657);_0x3988e3['delete'](_0x4c7e7f),_0x4c7e7f>=this['_startingRevisionId']&&_0x5940bc['set'](_0x4c7e7f,_0x5d7ec9['get'](_0x4c7e7f));}}for(const _0x40a083 of _0x4621eb){const _0x13d8de=_0xa71202['insertions'][_0x40a083],_0x5dd7d1=this['_getBaseVids'](_0xa71202['deletions'][_0x40a083]);let _0x5c206c=0x0;for(const _0x2daa70 of _0x13d8de){const _0x138e11=this['_getVidAttributeName'](_0x2daa70),_0x382e81=_0x2daa70['item']['getAttribute'](_0x138e11);if(!_0x5940bc['has'](_0x382e81)&&!_0xc5c8d7['has'](_0x382e81)){if(_0x3988e3['has'](_0x382e81))_0x5c206c++;else{if(_0x382e81!=_0x5dd7d1[_0x5c206c]){const _0x21e5bb=_0x5d7ec9['get'](_0x382e81)||_0x5d7ec9['get'](_0x5dd7d1[_0x5c206c]);for(;_0x382e81!=_0x5dd7d1[_0x5c206c];)_0x3988e3['has'](_0x5dd7d1[_0x5c206c])||(_0xc5c8d7['set'](_0x5dd7d1[_0x5c206c],_0x21e5bb),_0x5d7ec9['set'](_0x5dd7d1[_0x5c206c],_0x21e5bb)),_0x5c206c++;}_0x5c206c++;}}}}for(const _0x4ba497 of _0x4621eb){const _0x32f766=_0xa71202['insertions'][_0x4ba497];for(const _0x39ba70 of _0x32f766){const _0x10d9b8=this['_getVidAttributeName'](_0x39ba70),_0x2bd3e8=_0x39ba70['item']['getAttribute'](_0x10d9b8);if(_0xc5c8d7['has'](_0x2bd3e8)){const _0x1204aa=_0xc5c8d7['get'](_0x2bd3e8);_0x3988e3['has'](_0x2bd3e8)||_0x3988e3['set'](_0x2bd3e8,{..._0x1204aa}),_0x5940bc['set'](_0x2bd3e8,{..._0x1204aa});}}}for(const _0x9bbac5 of _0x3988e3['keys']())_0x9bbac5>=this['_startingRevisionId']&&_0x3988e3['delete'](_0x9bbac5);const _0x23cf73=new Map();for(const _0x43e04f of _0x4621eb){let _0x39b137=_0xa71202['insertions'][_0x43e04f];for(const _0x44993f of _0x39b137)if(_0x44993f['item']['is']('element','tableCell')){const _0x271ac8=this['_getVidAttributeName'](_0x44993f),_0x507042=_0x44993f['item']['getAttribute'](_0x271ac8);if(_0x5940bc['has'](_0x507042)){const _0x358ec3=_0x44993f['item']['parent']['parent']['getAttribute']('vid_start'),_0x40fb08=_0x23cf73['get'](_0x358ec3)||new Set();_0x40fb08['add'](_0x5940bc['get'](_0x507042)['userId']),_0x23cf73['set'](_0x358ec3,_0x40fb08);}}_0x39b137=_0xa71202['deletions'][_0x43e04f];for(const _0x4a41be of _0x39b137)if(_0x4a41be['item']['is']('element','tableCell')){const _0x397c95=this['_getVidAttributeName'](_0x4a41be),_0x251ed5=_0x4a41be['item']['getAttribute'](_0x397c95);if(_0x3988e3['has'](_0x251ed5)){const _0x355389=_0x4a41be['item']['parent']['parent']['getAttribute']('vid_start'),_0x5b00d2=_0x23cf73['get'](_0x355389)||new Set();_0x5b00d2['add'](_0x3988e3['get'](_0x251ed5)['userId']),_0x23cf73['set'](_0x355389,_0x5b00d2);}}for(const _0x4e9ddb of _0x23cf73['keys']())(_0x5940bc['has'](_0x4e9ddb)||_0x3988e3['has'](_0x4e9ddb))&&_0x23cf73['delete'](_0x4e9ddb);}for(const _0x5e432b of _0x4621eb){const _0x159178=_0xa71202['insertions'][_0x5e432b];let _0x558381=null,_0x548d39=null;for(const _0x35bacf of _0x159178){const _0x895bb0=this['_getVidAttributeName'](_0x35bacf),_0x32fc35=_0x35bacf['item']['getAttribute'](_0x895bb0),_0x5d1225=_0x23cf73['get'](_0x32fc35);_0x5d1225&&'elementStart'==_0x35bacf['type']&&(_0x558381=Array['from'](_0x5d1225)[0x0],_0x548d39=_0x35bacf['item']['getAttribute']('vid_end')),_0x558381&&(_0x3988e3['set'](_0x32fc35,{'userId':_0x558381}),_0x5940bc['set'](_0x32fc35,{'userId':_0x558381})),_0x32fc35==_0x548d39&&(_0x558381=null,_0x548d39=null);}}const _0x201722={},_0x1d9e82=new Set();for(const _0x3e62d7 of _0x4621eb){const _0x192676=_0x4a0b7a['deletions'][_0x3e62d7],_0x42d549=_0x4a0b7a['insertions'][_0x3e62d7];for(const {userId:_0x144854}of this['_touchedMarkers']['values']())null!==_0x144854&&_0x1d9e82['add'](_0x144854);for(const {userId:_0x56f147}of this['_touchedRoots']['values']())null!==_0x56f147&&_0x1d9e82['add'](_0x56f147);this['_markChanges'](_0x42d549,_0xa71202['insertions'][_0x3e62d7],_0x5940bc,'insertion',_0x1d9e82),this['_markChanges'](_0x192676,_0xa71202['deletions'][_0x3e62d7],_0x3988e3,'deletion',_0x1d9e82),_0x201722[_0x3e62d7]={'insertions':this['_prepareViewToSave'](_0x42d549),'deletions':this['_prepareViewToSave'](_0x192676),'attachChange':this['_touchedRoots']['get'](_0x3e62d7)||null,'attributesBefore':_0x54f69d(this['_baseRootsAttributes']['get'](_0x3e62d7))||{},'attributesAfter':_0x54f69d(this['_diffRootsAttributes']['get'](_0x3e62d7))};}return{'diffData':_0x201722,'authorsIds':Array['from'](_0x1d9e82)};}['_processRootBeforeSave'](_0x2da0c1){for(const [,_0x31b920]of _0x2da0c1['markers']){const _0x5d9b47=_0x31b920['start']['getAncestors']()['filter'](_0x2fefc0=>'tableCell'==_0x2fefc0['name']);for(const _0x6f3e6b of _0x5d9b47)0x1==_0x6f3e6b['childCount']&&_0x6f3e6b['getChild'](0x0)['is']('element','paragraph')&&_0x6f3e6b['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x3fe36b){this['_processRootBeforeSave'](_0x3fe36b);const _0x56f6b3=this['editor']['data']['toView'](_0x3fe36b,{}),_0x50e4fb=Array['from'](_0x56f6b3['getChildren']())['map'](_0x557389=>this['_getViewJson'](_0x557389));return JSON['stringify'](_0x50e4fb);}['_getViewJson'](_0xc9dc3a){if(_0xc9dc3a['is']('$text'))return _0xc9dc3a['data'];{const _0x36a55c=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x4b4f61=_0xc9dc3a,_0x4c727e=this['editor']['data']['htmlProcessor']['domConverter'],_0x3616fa={'type':_0x36a55c['_getTypeCharForViewElement'](_0x4b4f61),'name':_0x4b4f61['name'],'attributes':Array['from'](_0x4b4f61['getAttributes']()),'children':Array['from'](_0x4b4f61['getChildren']())['map'](_0x3d752b=>this['_getViewJson'](_0x3d752b))};if(_0xc9dc3a['is']('uiElement')&&'$comment'!=_0xc9dc3a['name']){const _0x5a8525=_0xc9dc3a['render'](_0x4c727e['domDocument'],_0x4c727e);_0x3616fa['children']['push'](_0x5a8525['outerHTML']);}else{if(_0xc9dc3a['is']('rawElement')){const _0x4980a5=_0x4c727e['domDocument']['createElement'](_0x4b4f61['name']);_0xc9dc3a['render'](_0x4980a5,_0x4c727e),_0x3616fa['children']['push'](_0x4980a5['innerHTML']);}}const _0x5930a0=Array['from'](_0x4b4f61['getCustomProperties']());_0x5930a0['length']>0x0&&(_0x3616fa['customProperties']=_0x5930a0);const _0x11d68b=_0x4b4f61['getFillerOffset']();return null!==_0x11d68b&&(_0x3616fa['fillerOffset']=_0x11d68b),_0x3616fa;}}['_markChanges'](_0x1a5ba8,_0x2351a5,_0x560649,_0x2b51d8,_0x25c2db){let _0x1d17b9=null,_0x2bebc6=null,_0x46b2fd=0x0;const _0x77191e=this['editor']['model'];for(let _0x5c53ab=0x0;_0x5c53ab<_0x2351a5['length'];_0x5c53ab++){const _0x2c48de=this['_getVidAttributeName'](_0x2351a5[_0x5c53ab]),_0x4f2438=_0x2351a5[_0x5c53ab]['item']['getAttribute'](_0x2c48de),_0x5da8cf=_0x560649['get'](_0x4f2438),_0x111c99=_0x5c53ab==_0x2351a5['length']-0x1;(!_0x1d17b9&&_0x5da8cf&&(_0x1d17b9=_0x5da8cf,_0x2bebc6=_0x2351a5[_0x5c53ab]),_0x1d17b9&&(!_0x5da8cf||_0x5da8cf['userId']!=_0x1d17b9['userId']))&&(_0x5b465f(_0x5da8cf,F(_0x2bebc6,_0x1a5ba8,_0x77191e),F(_0x2351a5[_0x5c53ab],_0x1a5ba8,_0x77191e)),_0x1d17b9=_0x5da8cf||null,_0x2bebc6=_0x5da8cf?_0x2351a5[_0x5c53ab]:null),_0x1d17b9&&_0x111c99&&_0x5b465f(_0x5da8cf,F(_0x2bebc6,_0x1a5ba8,_0x77191e),B(_0x2351a5[_0x5c53ab],_0x1a5ba8,_0x77191e));}function _0x5b465f(_0x1e54fe,_0xbd65e2,_0x3d52a1){const _0x22e2db=_0x1d17b9['userId'],_0x46c591='revision:'+_0x2b51d8+':'+_0x22e2db+':'+_0x46b2fd++,_0xeb91a1=_0x77191e['createRange'](_0xbd65e2,_0x3d52a1);_0x1a5ba8['markers']['set'](_0x46c591,_0xeb91a1),null!==_0x22e2db&&_0x25c2db['add'](_0x22e2db);}}['_getVidAttributeName'](_0x1ed2b4){switch(_0x1ed2b4['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x56cc3d,_0x3c78b3){_0x56cc3d['baseVersion']=null;for(const _0xdf3167 in _0x56cc3d){const _0x325184=_0x56cc3d[_0xdf3167];if(_0x325184 instanceof ft){const _0x583252=_0x3c78b3['get'](_0x325184['root']['rootName']);_0x56cc3d[_0xdf3167]=this['_fixPosition'](_0x325184,_0x583252);}if(_0x325184 instanceof lt){const _0x3083e9=_0x3c78b3['get'](_0x325184['root']['rootName']);_0x56cc3d[_0xdf3167]=this['_fixRange'](_0x325184,_0x3083e9);}'root'===_0xdf3167&&(_0x56cc3d['root']=_0x3c78b3['get'](_0x56cc3d['root']['rootName']));}}['_fixRange'](_0x5be114,_0x537ba9){return this['editor']['model']['createRange'](this['_fixPosition'](_0x5be114['start'],_0x537ba9),this['_fixPosition'](_0x5be114['end'],_0x537ba9));}['_fixPosition'](_0x2a5a7e,_0x57b6df){return this['editor']['model']['createPositionFromPath'](_0x57b6df,_0x2a5a7e['path'],_0x2a5a7e['stickiness']);}['_handleInsertOperation'](_0x1acda9){const _0x776252=this['_idsRoots']['get'](_0x1acda9['position']['root']['rootName']),_0x576370=this['_fixPosition'](_0x1acda9['position'],_0x776252),_0x30a106=null===_0x1acda9['_authorId']?null:_0x1acda9['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2371ca=_0x576370['parent'],_0x4e9c5f=this['_revisionId'],_0x48a86f=[];for(const _0x3f0b50 of _0x1acda9['nodes'])if(_0x3f0b50['is']('element'))_0x48a86f['push'](this['_makeIdsRoot'](_0x3f0b50));else{for(let _0x1ffe56=0x0;_0x1ffe56<_0x3f0b50['offsetSize'];_0x1ffe56++)_0x48a86f['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x4bc14b=this['_revisionId'];for(let _0x17d058=_0x4e9c5f;_0x17d058<_0x4bc14b;_0x17d058++)this['_touched']['set'](_0x17d058,{'userId':_0x30a106});_0x2371ca['_insertChild'](_0x576370['offset'],_0x48a86f);}['_handleMoveOperation'](_0xbec353){(_0xbec353=this['_cloneOperation'](_0xbec353,this['_idsRoots']))['_execute']();const _0x1b9538=null===_0xbec353['_authorId']?null:_0xbec353['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1f30a4=_0xbec353['getMovedRangeStart'](),_0x2a576c=_0x1f30a4['parent'],_0xd0345b=_0x1f30a4['offset'];!function _0xaa7bf1(_0x24eeaa,_0x301865,_0x3aa057,_0x431421){for(let _0x53542f=_0x3aa057;_0x53542f<_0x431421;_0x53542f++){const _0x36dba2=_0x301865['getChild'](_0x53542f);_0x36dba2['is']('element','$text')?_0x24eeaa['set'](_0x36dba2['getAttribute']('vid'),{'userId':_0x1b9538}):(_0x24eeaa['set'](_0x36dba2['getAttribute']('vid_start'),{'userId':_0x1b9538}),_0xaa7bf1(_0x24eeaa,_0x36dba2,0x0,_0x36dba2['childCount']),_0x24eeaa['set'](_0x36dba2['getAttribute']('vid_end'),{'userId':_0x1b9538}));}}(this['_touched'],_0x2a576c,_0xd0345b,_0xd0345b+_0xbec353['howMany']);}['_handleMergeOperation'](_0x3e90b2){const _0x45ac57=null===(_0x3e90b2=this['_cloneOperation'](_0x3e90b2,this['_idsRoots']))['_authorId']?null:_0x3e90b2['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4d208a=_0x3e90b2['targetPosition']['parent'],_0x1dc0ca=_0x3e90b2['sourcePosition']['parent'],_0x25fd57=_0x4d208a['getAttribute']('vid_end'),_0x5e71ed=_0x1dc0ca['getAttribute']('vid_start');_0x4d208a['_setAttribute']('vid_end',_0x1dc0ca['getAttribute']('vid_end')),_0x1dc0ca['_setAttribute']('vid_end',_0x25fd57),this['_touched']['set'](_0x5e71ed,{'userId':_0x45ac57}),this['_touched']['set'](_0x25fd57,{'userId':_0x45ac57}),_0x3e90b2['_execute']();}['_handleSplitOperation'](_0x49f0f3){const _0x113edf=null===(_0x49f0f3=this['_cloneOperation'](_0x49f0f3,this['_idsRoots']))['_authorId']?null:_0x49f0f3['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x40249c=_0x49f0f3['graveyardPosition'],_0xd181b1=_0x49f0f3['splitPosition']['parent'];_0x49f0f3['_execute']();const _0x5ca433=_0xd181b1['getAttribute']('vid_end'),_0x2fcc8d=_0x49f0f3['insertionPosition']['nodeAfter'];if(_0x40249c){const _0x283d31=_0x2fcc8d['getAttribute']('vid_end'),_0x58f27f=_0xd181b1['getAttribute']('vid_end');_0xd181b1['_setAttribute']('vid_end',_0x283d31),_0x2fcc8d['_setAttribute']('vid_end',_0x58f27f),this['_touched']['set'](_0xd181b1['getAttribute']('vid_end'),{'userId':_0x113edf}),this['_touched']['set'](_0x2fcc8d['getAttribute']('vid_start'),{'userId':_0x113edf});}else{const _0x219843=this['_revisionId']++,_0x1da697=this['_revisionId']++;_0xd181b1['_setAttribute']('vid_end',_0x219843),_0x2fcc8d['_setAttribute']('vid_start',_0x1da697),_0x2fcc8d['_setAttribute']('vid_end',_0x5ca433),this['_touched']['set'](_0x219843,{'userId':_0x113edf}),this['_touched']['set'](_0x1da697,{'userId':_0x113edf});}}['_handleMarkerOperation'](_0x3d35dd){if(!_0x3d35dd['affectsData'])return;const _0x130738=(_0x3d35dd=this['_cloneOperation'](_0x3d35dd,this['_diffRoots']))['oldRange']?_0x3d35dd['oldRange']['root']:null,_0x3fbfd1=_0x3d35dd['newRange']?_0x3d35dd['newRange']['root']:null;_0x130738&&this['_markers']['delete'](_0x3d35dd['name']),_0x3fbfd1&&this['_markers']['set'](_0x3d35dd['name'],_0x3d35dd['newRange']['clone']());const _0x23b889=null===_0x3d35dd['_authorId']?null:_0x3d35dd['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2dc3ef=_0x3d35dd['name'];if(!this['_touchedMarkers']['has'](_0x2dc3ef))return void this['_touchedMarkers']['set'](_0x2dc3ef,{'range':_0x3d35dd['oldRange'],'userId':_0x23b889});const _0x30dced=this['_touchedMarkers']['get'](_0x2dc3ef),_0x1b3ff1=_0x30dced['range'],_0x366b42=_0x3d35dd['newRange'];null==_0x1b3ff1&&null==_0x366b42||_0x1b3ff1&&_0x366b42&&_0x1b3ff1['isEqual'](_0x366b42)?this['_touchedMarkers']['delete'](_0x3d35dd['name']):_0x30dced['userId']=_0x23b889;}['_handleRootOperation'](_0x38ddfd,_0x196618){this['_diffRoots']['has'](_0x38ddfd['rootName'])?this['_diffRoots']['get'](_0x38ddfd['rootName'])['_isAttached']=_0x38ddfd['isAdd']:(this['_diffRoots']['set'](_0x38ddfd['rootName'],P(_0x38ddfd['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x38ddfd['rootName'],{}),_0x196618&&this['_idsRoots']['set'](_0x38ddfd['rootName'],P(_0x38ddfd['rootName'],!0x0)));const _0x52ebf0=null===_0x38ddfd['_authorId']?null:_0x38ddfd['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3da717=this['_touchedRoots']['get'](_0x38ddfd['rootName']);_0x3da717&&_0x3da717['userId']===_0x52ebf0?this['_touchedRoots']['delete'](_0x38ddfd['rootName']):this['_touchedRoots']['set'](_0x38ddfd['rootName'],{'userId':_0x52ebf0,'isAttached':_0x38ddfd['isAdd']});}['_handleRootAttributeOperation'](_0x5b6d75){const _0x32471c=this['_diffRootsAttributes']['get'](_0x5b6d75['root']['rootName']);null===_0x5b6d75['newValue']?delete _0x32471c[_0x5b6d75['key']]:_0x32471c[_0x5b6d75['key']]=_0x5b6d75['newValue'];}}function N(_0x366c71){const _0xdeb410=P(_0x366c71['rootName'],_0x366c71['isAttached']());for(const _0x2b6e3a of _0x366c71['getChildren']()){const _0x10865f=_0x2b6e3a['_clone'](!0x0);_0xdeb410['_appendChild'](_0x10865f);}return _0xdeb410;}function P(_0x17a83c,_0x2461e4=!0x0){const _0x52ae14=new vt();return _0x52ae14['rootName']=_0x17a83c,_0x52ae14['_isAttached']=_0x2461e4,_0x52ae14['isAttached']=()=>_0x52ae14['_isAttached'],_0x52ae14;}function F(_0x5bf3b4,_0x25f096,_0x1a0b25){const _0x22db31='elementEnd'==_0x5bf3b4['type']?_0x1a0b25['createPositionAt'](_0x5bf3b4['item'],'end'):_0x1a0b25['createPositionBefore'](_0x5bf3b4['item']);return _0x1a0b25['createPositionFromPath'](_0x25f096,_0x22db31['path'],_0x22db31['stickiness']);}function B(_0x510e72,_0x1d35af,_0x145048){const _0x2e8d6e='elementStart'==_0x510e72['type']?_0x145048['createPositionAt'](_0x510e72['item'],0x0):_0x145048['createPositionAfter'](_0x510e72['item']);return _0x145048['createPositionFromPath'](_0x1d35af,_0x2e8d6e['path'],_0x2e8d6e['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x1b15a4,_0x9325b5){super(_0x1b15a4),this['focusTracker']=new _0x3442d6(),this['keystrokes']=new _0x47111d(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x9325b5),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x46a33f(this);}['render'](){super['render'](),_0x51f4e9({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x24a592=_0x566f5e=>_0x566f5e['stopPropagation']();this['keystrokes']['set']('arrowright',_0x24a592),this['keystrokes']['set']('arrowleft',_0x24a592),this['keystrokes']['set']('arrowup',_0x24a592),this['keystrokes']['set']('arrowdown',_0x24a592);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0xe70d6a){this['revisionNameInputView']['fieldView']['element']['value']=_0xe70d6a['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x1b07cf){const _0x2cb692=new _0xacc8af(this['locale'],_0x5442b6),_0x5502a0=_0x2cb692['fieldView'];_0x5502a0['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x561228=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x1b07cf&&(_0x561228+='\x20('+g(this['locale'],'optional')+')'),(_0x2cb692['label']=_0x561228,_0x5502a0['on']('input',()=>{this['revisionNameInputValue']=_0x5502a0['element']['value']['trim']();}),_0x2cb692);}}class f extends _0xc858c4{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x1f6f43=this['editor'],_0x40bcf9=_0x1f6f43['plugins']['get']('RevisionTracker');_0x1f6f43['ui']['componentFactory']['add']('revisionHistory',_0x4bb923=>{const _0x49b523=_0x5f4b44(_0x4bb923),_0x499e36=_0x49b523['panelView']['children'],_0x27b66d=new _0x5320ef(_0x4bb923),_0x3284d2=new _0x215dab(_0x4bb923),_0x401854=new te(_0x4bb923),_0x5ec544=new _0x215dab(_0x4bb923),_0x373cb9=new te(_0x4bb923);return _0x49b523['bind']('isEnabled')['to'](_0x40bcf9,'isReady',_0x40bcf9,'isEnabled',_0x1f6f43,'isReadOnly',(_0x51a778,_0x5e3ec4,_0x2071c2)=>_0x51a778&&_0x5e3ec4&&!_0x2071c2),_0x49b523['buttonView']['set']({'icon':_0x3e9cd6,'label':g(_0x4bb923,'Revision\x20history'),'tooltip':!0x0}),_0x401854['set']({'label':g(_0x4bb923,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x401854['bind']('isEnabled')['to'](_0x40bcf9,'isReady',_0x40bcf9,'isEnabled',_0x1f6f43,'isReadOnly',(_0x40cb5d,_0x2fbb83,_0x232fa9)=>_0x40cb5d&&_0x2fbb83&&!_0x232fa9),_0x401854['on']('execute',()=>this['_showDialog']()),_0x373cb9['set']({'label':g(_0x4bb923,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x373cb9['bind']('isEnabled')['to'](_0x40bcf9,'isReady',_0x1f6f43,'isReadOnly',(_0x437989,_0x5b9181)=>_0x437989&&!_0x5b9181),_0x373cb9['on']('execute',()=>{_0x1f6f43['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x49b523['isOpen']=!0x1,_0x1f6f43['editing']['view']['focus']();}),_0x3284d2['children']['add'](_0x401854),_0x5ec544['children']['add'](_0x373cb9),_0x27b66d['role']='menu',_0x27b66d['items']['addMany']([_0x3284d2,_0x5ec544]),_0x499e36['add'](_0x27b66d),_0x49b523;}),_0x1f6f43['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x30b237=this['editor'],_0x1b3b4a=_0x30b237['locale'],_0x1a459c=new _0x444fc6(_0x1b3b4a),_0x34ff47=new _0x2a7399(_0x1b3b4a);_0x1a459c['buttonView']['set']({'icon':_0x3e9cd6,'label':g(_0x1b3b4a,'Revision\x20history')});const _0x267bb2=new _0x42e37e(_0x1b3b4a,_0x1a459c),_0x54f602=new _0x182e41(_0x1b3b4a);_0x54f602['set']({'label':g(_0x1b3b4a,'Save\x20current\x20revision')}),_0x54f602['delegate']('execute')['to'](_0x1a459c),_0x54f602['on']('execute',()=>{this['_showDialog']();}),_0x267bb2['children']['add'](_0x54f602),_0x34ff47['items']['add'](_0x267bb2);const _0x144630=new _0x42e37e(_0x1b3b4a,_0x1a459c),_0x3f2705=new _0x182e41(_0x1b3b4a);return _0x3f2705['set']({'label':g(_0x1b3b4a,'Open\x20revision\x20history')}),_0x3f2705['delegate']('execute')['to'](_0x1a459c),_0x3f2705['on']('execute',()=>{_0x30b237['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x144630['children']['add'](_0x3f2705),_0x34ff47['items']['add'](_0x144630),_0x1a459c['panelView']['children']['add'](_0x34ff47),_0x1a459c;}['_showDialog'](){const _0x54a095=this['editor'],_0x5a5a5b=_0x54a095['locale'],_0x416e93=_0x54a095['plugins']['get']('Dialog'),_0x8f4382=_0x54a095['plugins']['get']('RevisionTracker');function _0x1c24b4(_0x39b13b){_0x54a095['config']['get']('revisionHistory.requireRevisionName')&&''===_0x39b13b['revisionName']?_0x39b13b['revisionNameInputView']['errorText']=g(_0x5a5a5b,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x54a095['plugins']['get'](u)['saveRevision']({'name':_0x39b13b['revisionName']}),_0x416e93['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x1c24b4(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x416e93['show']({'id':'revisionSave','title':g(_0x5a5a5b,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x54a095['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x416e93['hide']()},{'label':g(_0x54a095['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x5889ec){_0x5889ec['bind']('isEnabled')['to'](_0x8f4382,'isReady',_0x8f4382,'isEnabled',_0x54a095,'isReadOnly',(_0x1a34a5,_0x58c978,_0x37cb2c)=>_0x1a34a5&&_0x58c978&&!_0x37cb2c);},'onExecute':()=>_0x1c24b4(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0xaa9d19=this['editor'],_0x414fe9=_0xaa9d19['locale'];this['_saveRevisionFormView']=new hs(_0x414fe9,_0xaa9d19['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends ts{['changeId'];['_model'];constructor(_0x9ed90,_0x1a6d1f){super(_0x9ed90),this['_model']=_0x1a6d1f,this['changeId']=_0x1a6d1f['id'];const _0x206e47=this['bindTemplate'],_0x2e09cf=g(_0x9ed90,_0x1a6d1f['data']['isSuggestion']?'Suggested\x20by':'add'==_0x1a6d1f['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x1a6d1f['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x206e47['to']('type',_0x2776ff=>'ck-revision-change__'+_0x2776ff)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x2e09cf}]},{'text':'\x20'+_0x1a6d1f['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x11aaf9(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x3248ff){super(),this['id']=_0x3248ff['id']||_0x19f1f8(),this['author']=_0x3248ff['author'],this['type']=_0x3248ff['type'],this['data']=_0x3248ff['data']||{},this['rootName']=_0x3248ff['rootName'],this['set']('createdAt',_0x3248ff['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class c{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x32210a,_0x112860){this['newRevisionId']=_0x32210a,this['oldRevisionId']=_0x112860,this['changes']=new _0x58fbc2();}['_setChanges'](_0x558d48){for(const _0x47a24a of _0x558d48)this['changes']['add'](_0x47a24a);}}class m extends _0xc858c4{['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[_0x27c92d,_0x962635,I,V];}constructor(_0x216d0d){super(_0x216d0d),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',(_0x9d1b35,_0x12cf94,_0x250b02)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x3953eb=>{for(const _0xecfee2 of this['editor']['editing']['view']['document']['roots'])_0x250b02?_0x3953eb['removeClass']('ck-editor__editable__overlay',_0xecfee2):_0x3953eb['addClass']('ck-editor__editable__overlay',_0xecfee2);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x4a8df6=>null!==_0x4a8df6),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x4fdb2f,_0x2dfbd0,_0x3c8d52)=>_0x4fdb2f&&_0x3c8d52?_0x2dfbd0['changes']['getIndex'](_0x3c8d52):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x3a4b72,_0x18635b)=>_0x3a4b72?_0x18635b['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x962635);}['init'](){const _0x22a05d=this['editor'],_0x414b5b=new wt(_0x22a05d,{'direction':'backward'}),_0xd51eb0=new wt(_0x22a05d,{'direction':'forward'});(_0x22a05d['commands']['add']('showPreviousChange',_0x414b5b),_0x22a05d['commands']['add']('showNextChange',_0xd51eb0),_0x22a05d['commands']['add']('restoreRevision',new mt(_0x22a05d)),this['on']('change:numberOfChanges',()=>{_0x414b5b['refresh'](),_0xd51eb0['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x22a05d['enableReadOnlyMode']('revision-viewer'),_0x22a05d['plugins']['has']('WidgetToolbarRepository'))&&_0x22a05d['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0xcc180b){return await this['_utils']['loadRevisionData'](_0xcc180b,this['adapter']),this['_utils']['getRevisionDocumentData'](_0xcc180b);}async['getRevisionRootsAttributes'](_0x21a0ce){return await this['_utils']['loadRevisionData'](_0x21a0ce,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x21a0ce);}async['compare'](_0x4ec6a7,_0x1d59a4,_0x3e29b7=!0x1){if(!this['isEnabled'])return;const _0x525fe0=this['diff'],_0x57659f=this['repository'],_0x583422='string'==typeof _0x4ec6a7?_0x57659f['getRevision'](_0x4ec6a7):_0x4ec6a7,_0x20a33c='string'==typeof _0x1d59a4?_0x57659f['getRevision'](_0x1d59a4):_0x1d59a4,_0x74519=_0x583422['id'],_0x1f0d85=_0x20a33c?_0x20a33c['id']:null;if(!_0x3e29b7&&this['diff']&&this['diff']['newRevisionId']===_0x74519&&this['diff']['oldRevisionId']===_0x1f0d85)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x74519,_0x1f0d85);const _0x2ff330=this['_getRevisionsRange'](_0x583422,_0x20a33c,!0x0)['map'](_0x1a4ec8=>this['_utils']['loadRevisionData'](_0x1a4ec8,this['adapter']));return _0x2ff330['push'](new Promise(_0xc11032=>{setTimeout(_0xc11032,0x14);})),Promise['all'](_0x2ff330)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x13ecec=this['_getDiff'](_0x74519,_0x1f0d85);for(const _0x51f1b2 of _0x13ecec['changes'])this['_changeIdToChange']['set'](_0x51f1b2['id'],_0x51f1b2);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x15dec7=>{for(const _0x585fc0 of this['editor']['model']['document']['getRootNames']())_0x15dec7['detachRoot'](_0x585fc0);for(const _0x5c905b of Object['keys'](_0x13ecec['model'])){const _0x14e3db=_0x15dec7['addRoot'](_0x5c905b);for(const _0x2ee198 of Object['keys'](_0x13ecec['attributes'][_0x5c905b]))_0x15dec7['setAttribute'](_0x2ee198,_0x13ecec['attributes'][_0x5c905b][_0x2ee198],_0x14e3db);_0x15dec7['insert'](_0x13ecec['model'][_0x5c905b],_0x14e3db,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x13ecec['changes'])),this['isReady']=!0x0;})['catch'](_0x31d2fa=>{console['error'](_0x31d2fa),this['_cleanUp'](),_0x525fe0&&(this['diff']=_0x525fe0),this['isReady']=!0x0;});}['addRevisionData'](_0x3ee9aa,_0x47ddd1){const _0x2aa328=this['repository']['createRevision'](_0x3ee9aa);return _0x2aa328['on']('_update',(_0x5a1f1f,_0x3e7d66,_0x428840)=>_0x47ddd1(_0x3e7d66,_0x428840,_0x2aa328)),this['repository']['addRevision'](_0x2aa328),_0x2aa328;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x571b37=>{for(const _0x3e5247 of this['editor']['model']['document']['getRootNames']())_0x571b37['detachRoot'](_0x3e5247);});}['_sortAndFilterDiffChanges'](_0xdf7a5b){const _0x2b1f67=[],_0x237209=new Map();for(const _0x3ffa69 of this['editor']['model']['document']['getRootNames']()){const _0x1ff0e5=this['editor']['editing']['view']['getDomRoot'](_0x3ffa69);if(!_0x1ff0e5)continue;const _0x43b7b9=_0x1ff0e5['getClientRects']()['item'](0x0);_0x43b7b9&&(_0x2b1f67['push'](_0x3ffa69),_0x237209['set'](_0x3ffa69,_0x43b7b9));}return _0x2b1f67['sort']((_0x3315f3,_0x4d2549)=>{const _0x59bc6e=_0x237209['get'](_0x3315f3),_0x45c686=_0x237209['get'](_0x4d2549);return _0x59bc6e['y']-_0x45c686['y']||_0x59bc6e['x']-_0x45c686['x'];}),(_0xdf7a5b=_0xdf7a5b['filter'](_0x164a6c=>_0x2b1f67['includes'](_0x164a6c['rootName'])))['sort']((_0x1adeea,_0x5cec34)=>_0x2b1f67['indexOf'](_0x1adeea['rootName'])-_0x2b1f67['indexOf'](_0x5cec34['rootName'])),_0xdf7a5b;}['_makeTape'](_0x74560f){const _0x153b21=Array['from'](_0x74560f['markers'])['filter'](([_0x111a0c,_0x458742])=>_0x111a0c['startsWith']('revision:')&&!_0x458742['isCollapsed']),_0xa8d4c2=Array['from'](this['editor']['model']['createRangeIn'](_0x74560f)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x153b21['length'])for(const _0x4b6db7 of _0xa8d4c2){const [_0x4b8ad4,_0x2f8d60]=_0x153b21[0x0],[,_0x433789,_0x429d2c]=_0x4b8ad4['split'](':');if(_0x2f8d60['end']['isEqual'](_0x4b6db7['nextPosition'])&&_0x153b21['shift'](),(_0x4b6db7['previousPosition']['isEqual'](_0x2f8d60['start'])||_0x4b6db7['previousPosition']['isAfter'](_0x2f8d60['start']))&&('insertion'==_0x433789?_0x4b6db7['isAdded']={'userId':_0x429d2c}:'deletion'==_0x433789&&(_0x4b6db7['isRemoved']={'userId':_0x429d2c})),0x0==_0x153b21['length'])break;}return _0xa8d4c2;}['_refreshStartEndIndex'](_0xa06635){const _0x5b5fa7=new Map();for(let _0x1f0fbd=0x0;_0x1f0fbd<_0xa06635['length'];_0x1f0fbd++)'text'===_0xa06635[_0x1f0fbd]['type']?(_0xa06635[_0x1f0fbd]['item']['startIndex']=_0x1f0fbd,_0xa06635[_0x1f0fbd]['item']['endIndex']=_0x1f0fbd):('elementStart'===_0xa06635[_0x1f0fbd]['type']?_0xa06635[_0x1f0fbd]['item']['startIndex']=_0x1f0fbd:'elementEnd'===_0xa06635[_0x1f0fbd]['type']&&(_0xa06635[_0x1f0fbd]['item']['endIndex']=_0x1f0fbd),_0x5b5fa7['set'](_0xa06635[_0x1f0fbd]['id'],_0x1f0fbd));for(const _0x2d066b of _0x5b5fa7['values']())'elementStart'===_0xa06635[_0x2d066b]['type']?_0xa06635[_0x2d066b]['item']['endIndex']=_0x5b5fa7['get'](_0xa06635[_0x2d066b]['pairId']):'elementEnd'===_0xa06635[_0x2d066b]['type']&&(_0xa06635[_0x2d066b]['item']['startIndex']=_0x5b5fa7['get'](_0xa06635[_0x2d066b]['pairId']));}['_processTape'](_0x205fc3){for(let _0x458e2d=0x0;_0x458e2d<_0x205fc3['length'];_0x458e2d++){if('elementStart'===_0x205fc3[_0x458e2d]['type'])_0x205fc3[_0x458e2d]['item']['startIndex']=_0x458e2d;else{if('elementEnd'===_0x205fc3[_0x458e2d]['type']){_0x205fc3[_0x458e2d]['item']['endIndex']=_0x458e2d;const _0x504820=_0x205fc3[_0x458e2d]['item']['startIndex'];_0x205fc3[_0x504820]['pairId']=_0x205fc3[_0x458e2d]['id'],_0x205fc3[_0x458e2d]['pairId']=_0x205fc3[_0x504820]['id'];}else _0x205fc3[_0x458e2d]['item']['startIndex']=_0x458e2d,_0x205fc3[_0x458e2d]['item']['endIndex']=_0x458e2d,_0x205fc3[_0x458e2d]['pairId']=null;}_0x205fc3[_0x458e2d]['markersStart']||(_0x205fc3[_0x458e2d]['markersStart']=[],_0x205fc3[_0x458e2d]['markersEnd']=[]);}}['_markInsertions'](_0x10783f,_0x8470af){const _0x25b02e=_0x10783f['filter'](_0x300172=>!_0x300172['isAdded']);for(let _0xad2dcb=0x0;_0xad2dcb<_0x8470af['length'];_0xad2dcb++)_0x8470af[_0xad2dcb]['isAdded']&&(_0x25b02e[_0xad2dcb]['isAdded']=_0x8470af[_0xad2dcb]['isAdded']);}['_getDiff'](_0x41c06c,_0x5bf205=null){const _0x5d9c0b=this['repository']['getRevision'](_0x41c06c),_0x37d3a9=_0x5bf205?this['repository']['getRevision'](_0x5bf205):null,_0x4285be=this['_getRevisionsRange'](_0x5d9c0b,_0x37d3a9),_0x35f8e8=_0x4285be[_0x4285be['length']-0x1],_0x268680=new Map(),_0x2b89ac={'model':{},'attributes':{},'changes':[]},_0x3df1fb=new Set(),_0x5b4e5b=new Map();for(let _0x5eefc9=_0x4285be['length']-0x1;_0x5eefc9>=0x0;_0x5eefc9--){const _0x2a0d4d=_0x4285be[_0x5eefc9];for(const _0x4e8e28 of Object['keys'](_0x2a0d4d['diffData']))if(_0x2a0d4d['diffData'][_0x4e8e28]['attachChange']){const _0x3473b8=_0x2a0d4d['diffData'][_0x4e8e28]['attachChange'];_0x3473b8['isAttached']?(_0x3df1fb['add'](_0x4e8e28),_0x5b4e5b['has'](_0x4e8e28)&&_0x5b4e5b['get'](_0x4e8e28)['userId']==_0x3473b8['userId']?_0x5b4e5b['delete'](_0x4e8e28):_0x5b4e5b['set'](_0x4e8e28,_0x3473b8)):_0x5b4e5b['has'](_0x4e8e28)?(_0x3df1fb['delete'](_0x4e8e28),_0x5b4e5b['delete'](_0x4e8e28)):(_0x3df1fb['add'](_0x4e8e28),_0x5b4e5b['set'](_0x4e8e28,_0x3473b8));}else _0x3df1fb['add'](_0x4e8e28);}for(const _0x2c943c of _0x3df1fb){const _0x22c7ae=_0x5b4e5b['has'](_0x2c943c)&&!_0x5b4e5b['get'](_0x2c943c)['isAttached'];let _0x5a6b08=_0x22c7ae?_0x4285be['length']-0x1:0x0;const _0x3b9650=_0x22c7ae?-0x1:0x1;for(;_0x4285be[_0x5a6b08];){const _0x354f97=_0x4285be[_0x5a6b08];if(_0x354f97['diffData'][_0x2c943c]){const _0x3de2dc=_0x22c7ae?_0x354f97['diffData'][_0x2c943c]['attributesBefore']:_0x354f97['diffData'][_0x2c943c]['attributesAfter'];_0x2b89ac['attributes'][_0x2c943c]=_0x3de2dc?_0x54f69d(_0x3de2dc):{};break;}_0x5a6b08+=_0x3b9650;}}for(const _0x403c78 of _0x4285be){_0x403c78['model']={};for(const _0x42d6b9 of _0x403c78['authors'])_0x268680['set'](_0x42d6b9['id'],_0x42d6b9);for(const _0x1aca70 of _0x3df1fb){const _0x4ad9f9=_0x403c78['diffData'][_0x1aca70]?_0x403c78['diffData'][_0x1aca70]['insertions']:'[]',_0x305bda=_0x403c78['diffData'][_0x1aca70]?_0x403c78['diffData'][_0x1aca70]['deletions']:'[]';_0x403c78['model'][_0x1aca70]={'insertions':this['_utils']['_makeModelFromViewString'](_0x4ad9f9),'deletions':this['_utils']['_makeModelFromViewString'](_0x305bda)};}}for(const _0x1dacce of _0x3df1fb){let _0x1ccf6a=null,_0xc934f3=0x0;const _0x4ac61a=new Map(Array['from'](_0x5d9c0b['model'][_0x1dacce]['insertions']['markers'])['filter'](([_0x1f2338])=>!_0x1f2338['startsWith']('revision:')));let _0x438b78=0x0;for(const _0x5cbc83 of _0x4285be){const _0xd5acd1=this['_makeTape'](_0x5cbc83['model'][_0x1dacce]['insertions']);_0x5cbc83==_0x5d9c0b?(_0x1ccf6a=_0xd5acd1,_0xc934f3=_0x1ccf6a['length'],_0x1ccf6a['forEach'](_0x9e6bc1=>{_0x9e6bc1['id']=_0x438b78++;}),this['_processTape'](_0x1ccf6a)):this['_markInsertions'](_0x1ccf6a,_0xd5acd1);const _0x37b4ca=_0x1ccf6a['filter'](_0x1fcec5=>!_0x1fcec5['isAdded'])['map'](_0x20319c=>_0x20319c['id']);let _0x3c8c54=0x0;const _0x3f710e=this['_makeTape'](_0x5cbc83['model'][_0x1dacce]['deletions']);_0x3f710e['forEach'](_0x153173=>{_0x153173['isRemoved']?_0x153173['id']=_0xc934f3++:_0x153173['id']=_0x37b4ca[_0x3c8c54++];}),this['_processTape'](_0x3f710e),this['_setDistance'](_0x1ccf6a,'isAdded'),this['_setDistance'](_0x3f710e,'isRemoved'),_0x5cbc83==_0x5d9c0b&&this['_markMarkers'](_0x1ccf6a,_0x4ac61a),_0x1ccf6a=this['_joinTapes'](_0x1ccf6a,_0x3f710e),this['_refreshStartEndIndex'](_0x1ccf6a),this['_setDistance'](_0x1ccf6a,'isRemoved');}_0x1ccf6a=_0x1ccf6a['filter'](_0x37da1a=>!(_0x37da1a['isAdded']&&_0x37da1a['isRemoved']));const _0x4e604a=new Map(_0x35f8e8['model'][_0x1dacce]['deletions']['markers']),_0x322186=new Set(_0x4ac61a['keys']());for(const _0x46d5bb of _0x4e604a['keys']())_0x322186['delete'](_0x46d5bb);this['_markSuggestions'](_0x1ccf6a,_0x322186),this['_fixObsoleteTags'](_0x1ccf6a),_0x1ccf6a=this['_removeMissingPairs'](_0x1ccf6a),_0x1ccf6a=this['_markMismatchedRemovedTags'](_0x1ccf6a),_0x1ccf6a=this['_removeUnsupportedChanges'](_0x1ccf6a);const {root:_0x3e7a5d,changes:_0x5675de}=this['_makeModelFromTape'](_0x1ccf6a,_0x268680,_0x1dacce);_0x2b89ac['model'][_0x1dacce]=_0x3e7a5d;const _0x5b284e=_0x5b4e5b['get'](_0x1dacce);if(_0x5b284e){const _0x6eadf2=_0x268680['get'](_0x5b284e['userId']),_0x188091=new r({'author':_0x6eadf2,'type':_0x5b284e['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x1dacce});_0x5675de['unshift'](_0x188091),_0x2b89ac['attributes'][_0x1dacce]['revisionHistoryAttachChange']=_0x188091['id'];}_0x2b89ac['changes']=_0x2b89ac['changes']['concat'](_0x5675de);}return _0x2b89ac;}['_markMarkers'](_0x3bd946,_0x2c0ce0){for(let _0x358289=0x0;_0x358289<_0x3bd946['length'];_0x358289++)for(const [_0x4204af,_0x48e57f]of _0x2c0ce0)!_0x48e57f['isCollapsed']&&_0x48e57f['start']['isEqual'](_0x3bd946[_0x358289]['previousPosition'])&&_0x3bd946[_0x358289]['markersStart']['push'](_0x4204af),_0x48e57f['end']['isEqual'](_0x3bd946[_0x358289]['nextPosition'])&&_0x3bd946[_0x358289]['markersEnd']['push'](_0x4204af);}['_joinTapes'](_0x56c162,_0x398cec){let _0x2e70d2=[],_0xee1920=0x0,_0x16b71a=0x0;for(;_0xee1920<_0x56c162['length']||_0x16b71a<_0x398cec['length'];){const _0xfa4f95=_0x56c162[_0xee1920]||{},_0x589428=_0x398cec[_0x16b71a]||{};if(_0xfa4f95['id']==_0x589428['id'])_0xee1920++,_0x16b71a++,_0x2e70d2['push'](_0xfa4f95);else{if(_0x589428['isRemoved']&&_0xfa4f95['isAdded']){const {commonTape:_0x4cf7cb,iEnd:_0x2f5e5d,jEnd:_0x3ddc9b}=this['_threeWayMerge'](_0x56c162,_0xee1920,_0x398cec,_0x16b71a);_0x2e70d2=_0x2e70d2['concat'](_0x4cf7cb),_0xee1920=_0x2f5e5d,_0x16b71a=_0x3ddc9b;}else _0x589428['isRemoved']?(_0x16b71a++,_0x2e70d2['push'](_0x589428)):(_0xee1920++,_0x2e70d2['push'](_0xfa4f95));}}return _0x2e70d2;}['_markSuggestions'](_0x1af635,_0x3b4e0e){const _0xfe5817=[];for(let _0x1f923a=0x0;_0x1f923a<_0x1af635['length'];_0x1f923a++){for(let _0x53c53c=0x0;_0x53c53c<_0x1af635[_0x1f923a]['markersStart']['length'];_0x53c53c++){const _0x52ecdd=_0x1af635[_0x1f923a]['markersStart'][_0x53c53c];if(!_0x3b4e0e['has'](_0x52ecdd))continue;const {group:_0xf66c6,type:_0x246c3f,authorId:_0x2fdf2a}=_0x561bfd(_0x52ecdd);'revision-suggestion'!=_0xf66c6||'insertion'!=_0x246c3f&&'deletion'!=_0x246c3f||(_0xfe5817['unshift']({'type':_0x246c3f,'name':_0x52ecdd,'userId':_0x2fdf2a}),_0x1af635[_0x1f923a]['markersStart']['splice'](_0x53c53c,0x1),_0x53c53c--);}_0x3a69b4(_0x1af635[_0x1f923a]);for(let _0x28cceb=0x0;_0x28cceb<_0x1af635[_0x1f923a]['markersEnd']['length'];_0x28cceb++){const _0x169b88=_0x1af635[_0x1f923a]['markersEnd'][_0x28cceb];if(!_0x3b4e0e['has'](_0x169b88))continue;const {group:_0x246c25,type:_0x823824}=_0x561bfd(_0x169b88);if('revision-suggestion'!=_0x246c25||'insertion'!=_0x823824&&'deletion'!=_0x823824)continue;_0x1af635[_0x1f923a]['markersEnd']['splice'](_0x28cceb,0x1),_0x28cceb--;const _0x4df0c8=_0xfe5817['findIndex'](_0x1d748d=>_0x1d748d['name']==_0x169b88);_0x4df0c8>-0x1&&_0xfe5817['splice'](_0x4df0c8,0x1);}}function _0x561bfd(_0x5c91b2){const _0xd241cf=_0x5c91b2['split'](':');return{'group':_0xd241cf[0x0],'type':_0xd241cf[0x1],'subType':_0xd241cf['length']>=0x5?_0xd241cf[0x2]:null,'id':_0xd241cf['length']<0x5?_0xd241cf[0x2]:_0xd241cf[0x3],'authorId':_0xd241cf['length']<0x5?_0xd241cf[0x3]:_0xd241cf[0x4],'markerCount':0x6==_0xd241cf['length']?_0xd241cf[0x5]:null};}function _0x3a69b4(_0x4f5b74){for(let _0x1a6b90=0x0;_0x1a6b90<_0xfe5817['length'];_0x1a6b90++){if(_0x4f5b74['isAdded']&&'insertion'==_0xfe5817[_0x1a6b90]['type'])return _0x4f5b74['isAddSuggestion']=_0xfe5817[_0x1a6b90],void delete _0x4f5b74['isAdded'];if(!_0x4f5b74['isAdded']&&!_0x4f5b74['isRemoved']&&'deletion'==_0xfe5817[_0x1a6b90]['type'])return void(_0x4f5b74['isRemoveSuggestion']=_0xfe5817[_0x1a6b90]);}}}['_setDistance'](_0x4343bd,_0x3e38f0){let _0x5546ed=0x0,_0x24a36d=!0x1;const _0x448662=new Map();for(const _0x2a5014 of _0x4343bd)_0x2a5014[_0x3e38f0]?_0x24a36d&&(_0x5546ed++,_0x24a36d=!0x1):(_0x5546ed++,_0x24a36d=!0x0),_0x448662['set'](_0x2a5014['id'],_0x5546ed);for(let _0x1afae3=0x0;_0x1afae3<_0x4343bd['length'];_0x1afae3++){if('isRemoved'==_0x3e38f0&&_0x4343bd[_0x1afae3]['isAdded']||'isAdded'==_0x3e38f0&&_0x4343bd[_0x1afae3]['isRemoved'])continue;if('text'==_0x4343bd[_0x1afae3]['type']){_0x4343bd[_0x1afae3]['distance']=0x0;continue;}const _0x5acab4=_0x448662['get'](_0x4343bd[_0x1afae3]['pairId']),_0x5a2b89=_0x448662['get'](_0x4343bd[_0x1afae3]['id']);_0x4343bd[_0x1afae3]['distance']=_0x5acab4-_0x5a2b89;}}['_getRevisionsRange'](_0x804df9,_0xbb5281,_0x4333b2=!0x1){const _0x4ae7fb=[];let _0x1e82a7=this['repository']['getIndex'](_0x804df9),_0x3766ec=this['repository']['getIndex'](_0xbb5281);for(-0x1==_0x3766ec&&(_0x3766ec=this['repository']['_revisions']['length'],_0x4333b2=!0x1);_0x1e82a7<_0x3766ec;)_0x4ae7fb['push'](this['repository']['getRevision'](_0x1e82a7)),_0x1e82a7++;return _0x4333b2&&_0x4ae7fb['push'](this['repository']['getRevision'](_0x1e82a7)),_0x4ae7fb;}['_threeWayMerge'](_0x103f1b,_0x296212,_0x125d29,_0x11d4d3){const _0x1529fe=this['editor']['model']['schema'];let _0x5e1d61=_0x296212;for(;_0x103f1b[_0x5e1d61]&&_0x103f1b[_0x5e1d61]['isAdded'];)_0x5e1d61++;let _0x4d1f43=_0x11d4d3;for(;_0x125d29[_0x4d1f43]&&_0x125d29[_0x4d1f43]['isRemoved'];)_0x4d1f43++;_0x246161(_0x103f1b,_0x296212,_0x5e1d61),_0x246161(_0x125d29,_0x11d4d3,_0x4d1f43);const _0x14c392=_0x125d29['slice'](_0x11d4d3,_0x4d1f43)['concat'](_0x103f1b['slice'](_0x296212,_0x5e1d61));return _0x14c392['sort']((_0x520b04,_0x565b23)=>_0x520b04['side']!=_0x565b23['side']?_0x520b04['side']-_0x565b23['side']:_0x520b04['level']!=_0x565b23['level']?_0x520b04['level']-_0x565b23['level']:_0x520b04['distance']!=_0x565b23['distance']?_0x565b23['distance']-_0x520b04['distance']:!!_0x520b04['isAdded']!=!!_0x565b23['isAdded']?-0x1==_0x520b04['side']||0x0==_0x520b04['side']?_0x520b04['isAdded']?-0x1:0x1:_0x520b04['isAdded']?0x1:-0x1:_0x520b04['index']-_0x565b23['index']),{'commonTape':_0x14c392,'iEnd':_0x5e1d61,'jEnd':_0x4d1f43};function _0x246161(_0x5eebc9,_0x1bb94c,_0x368922){let _0x59a91c=-0x1,_0x1b0bef=Number['POSITIVE_INFINITY'],_0x2bf4f9=!0x0;for(let _0x21ca5a=_0x1bb94c;_0x21ca5a<_0x368922;_0x21ca5a++)if(_0x1529fe['isInline'](_0x5eebc9[_0x21ca5a]['item'])||(_0x2bf4f9=!0x1),_0x5eebc9[_0x21ca5a]['item']['startIndex']<_0x1bb94c&&(_0x59a91c=_0x21ca5a),_0x5eebc9[_0x21ca5a]['item']['endIndex']>=_0x368922){_0x1b0bef=_0x21ca5a;break;}_0x2bf4f9&&(_0x59a91c=_0x368922-0x1);for(let _0xcc7546=_0x1bb94c;_0xcc7546<_0x368922;_0xcc7546++)_0x5eebc9[_0xcc7546]['side']=_0xcc7546<=_0x59a91c?-0x1:_0xcc7546<_0x1b0bef?0x0:0x1,_0x5eebc9[_0xcc7546]['index']=_0xcc7546;let _0xf4fbe6=0x0;for(let _0x11ad34=_0x1bb94c;_0x11ad34<=_0x59a91c;_0x11ad34++)0x0==_0x5eebc9[_0x11ad34]['distance']?_0x5eebc9[_0x11ad34]['level']=_0xf4fbe6:(_0xf4fbe6++,_0x5eebc9[_0x11ad34]['level']=_0xf4fbe6,_0xf4fbe6++);for(let _0x2b6147=_0x1bb94c;_0x2b6147<_0x368922;_0x2b6147++)0x0==_0x5eebc9[_0x2b6147]['side']&&(_0x5eebc9[_0x2b6147]['level']=_0xf4fbe6);_0xf4fbe6=0x0;for(let _0xd1e902=_0x368922-0x1;_0xd1e902>=_0x1b0bef;_0xd1e902--)0x0==_0x5eebc9[_0xd1e902]['distance']?_0x5eebc9[_0xd1e902]['level']=_0xf4fbe6:(_0xf4fbe6--,_0x5eebc9[_0xd1e902]['level']=_0xf4fbe6,_0xf4fbe6--);}}['_fixObsoleteTags'](_0x61b3e5){const _0x1377da=new Map(),_0x1186d7=this['editor']['model']['schema'];for(let _0x5228be=0x1;_0x5228be<_0x61b3e5['length'];_0x5228be++){let _0x123233,_0x21e33f,_0x38f541;const _0x308370=_0x61b3e5[_0x5228be],_0x56d069=_0x61b3e5[_0x5228be-0x1];if('text'==_0x308370['type'])continue;if(_0x308370['type']!=_0x56d069['type'])continue;if(!_0x1186d7['isBlock'](_0x56d069['item'])||_0x1186d7['isLimit'](_0x56d069['item']))continue;if(!_0x1186d7['isBlock'](_0x308370['item'])||_0x1186d7['isLimit'](_0x308370['item']))continue;if((_0x61b3e5[_0x5228be]['isAdded']||_0x61b3e5[_0x5228be]['isAddSuggestion'])&&_0x61b3e5[_0x5228be-0x1]['isRemoved'])_0x123233=_0x61b3e5[_0x5228be],_0x21e33f=_0x61b3e5[_0x5228be-0x1],_0x38f541=_0x5228be-0x1;else{if(!_0x61b3e5[_0x5228be]['isRemoved']||!_0x61b3e5[_0x5228be-0x1]['isAdded']&&!_0x61b3e5[_0x5228be-0x1]['isAddSuggestion'])continue;_0x123233=_0x61b3e5[_0x5228be-0x1],_0x21e33f=_0x61b3e5[_0x5228be],_0x38f541=_0x5228be;}const _0x15fa3a=_0x123233['level']==_0x21e33f['level'],_0x111fa1=Math['abs'](_0x123233['level'])<Math['abs'](_0x21e33f['level'])&&0x0==_0x21e33f['distance'];(_0x15fa3a||_0x111fa1)&&(_0x1377da['set'](_0x21e33f['id'],_0x123233['id']),_0x61b3e5['splice'](_0x38f541,0x1),_0x5228be--,_0x123233['isAdded']=!0x1);}for(let _0x2635ce=0x0;_0x2635ce<_0x61b3e5['length'];_0x2635ce++)_0x1377da['has'](_0x61b3e5[_0x2635ce]['pairId'])&&(_0x61b3e5[_0x2635ce]['pairId']=_0x1377da['get'](_0x61b3e5[_0x2635ce]['pairId']));}['_removeMissingPairs'](_0x53e4a8){const _0x4413bf=new Set(_0x53e4a8['map'](_0x567dd5=>_0x567dd5['id']));for(let _0x38035d=0x0;_0x38035d<_0x53e4a8['length'];_0x38035d++)_0x4413bf['has'](_0x53e4a8[_0x38035d]['pairId'])||0x0==_0x53e4a8[_0x38035d]['distance']||(_0x53e4a8[_0x38035d]['isIncorrect']=!0x0);return _0x53e4a8['filter'](_0x401a68=>!_0x401a68['isIncorrect']);}['_markMismatchedRemovedTags'](_0x32b4c8){const _0x216d84=new Set();for(let _0x76f8fd=0x0;_0x76f8fd<_0x32b4c8['length'];_0x76f8fd++){if(_0x216d84['has'](_0x32b4c8[_0x76f8fd]['id'])&&_0x32b4c8[_0x76f8fd]['isRemoved']&&(_0x32b4c8[_0x76f8fd]['isIncorrect']=!0x0),_0x32b4c8[_0x76f8fd]['isIncorrect'])continue;if(0x0==_0x32b4c8[_0x76f8fd]['distance'])continue;if('elementStart'!=_0x32b4c8[_0x76f8fd]['type'])continue;if(null==_0x32b4c8[_0x76f8fd]['pairId'])continue;let _0x537653=_0x76f8fd+0x1,_0x3cc816=0x0;for(;_0x32b4c8[_0x537653]['id']!=_0x32b4c8[_0x76f8fd]['pairId'];)'elementStart'==_0x32b4c8[_0x537653]['type']?_0x3cc816++:'elementEnd'==_0x32b4c8[_0x537653]['type']&&_0x3cc816--,_0x537653++;if(0x0!=_0x3cc816){if(_0x32b4c8[_0x76f8fd]['isRemoved'])_0x32b4c8[_0x76f8fd]['isIncorrect']=!0x0;else{for(;_0x537653!=_0x76f8fd;)_0x32b4c8[_0x537653]['isRemoved']&&0x0!=_0x32b4c8[_0x537653]['distance']&&(_0x32b4c8[_0x537653]['isIncorrect']=!0x0,_0x216d84['add'](_0x32b4c8[_0x537653]['pairId'])),_0x537653--;}}}return _0x32b4c8['filter'](_0x49f4bd=>!_0x49f4bd['isIncorrect']);}['_removeUnsupportedChanges'](_0x59b051){const _0x3fb34d=this['editor']['model']['schema'];for(let _0x2657cf=0x0;_0x2657cf<_0x59b051['length'];_0x2657cf++){if(!(_0x59b051[_0x2657cf]['isAdded']||_0x59b051[_0x2657cf]['isAddSuggestion']||_0x59b051[_0x2657cf]['isRemoved']||_0x59b051[_0x2657cf]['isRemoveSuggestion']))continue;if(0x0==_0x59b051[_0x2657cf]['distance'])continue;const _0x2a8dd3=_0x59b051[_0x2657cf]['item'];_0x3fb34d['isBlock'](_0x2a8dd3)||_0x3fb34d['isLimit'](_0x2a8dd3)||(_0x59b051[_0x2657cf]['isAdded']&&delete _0x59b051[_0x2657cf]['isAdded'],_0x59b051[_0x2657cf]['isAddSuggestion']&&delete _0x59b051[_0x2657cf]['isAddSuggestion'],_0x59b051[_0x2657cf]['isRemoveSuggestion']&&delete _0x59b051[_0x2657cf]['isRemoveSuggestion'],_0x59b051[_0x2657cf]['isRemoved']&&(_0x59b051[_0x2657cf]['isIncorrect']=!0x0));}return _0x59b051['filter'](_0x251ad8=>!_0x251ad8['isIncorrect']);}['_makeModelFromTape'](_0x5bc502,_0x1ba39a,_0x2c5f87){const _0x32c31b=new vt(),_0x1f71dd=[],_0x2a032c=new Map(),_0x149e4d=this['editor']['model'],_0xc8f48d=_0x149e4d['schema'],_0x2ffc95=[_0x32c31b],_0x3567e8={},_0x36e3cd={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x18ba53=null;const _0x5c4347=[0x0];for(let _0x5028a4=0x0;_0x5028a4<_0x5bc502['length'];_0x5028a4++)if('elementStart'===_0x5bc502[_0x5028a4]['type']){_0x5bc502[_0x5028a4]['previousPosition']=_0x149e4d['createPositionFromPath'](_0x32c31b,_0x5c4347);const _0x5f2d4e=new ut(_0x5bc502[_0x5028a4]['item']['name'],_0x5bc502[_0x5028a4]['item']['getAttributes']());_0x2ffc95[0x0]['_appendChild'](_0x5f2d4e),_0x5c4347['push'](0x0),_0x2ffc95['unshift'](_0x5f2d4e),_0x5bc502[_0x5028a4]['nextPosition']=_0x149e4d['createPositionFromPath'](_0x32c31b,_0x5c4347);}else'elementEnd'===_0x5bc502[_0x5028a4]['type']?(_0x2ffc95['shift'](),_0x5bc502[_0x5028a4]['previousPosition']=_0x149e4d['createPositionFromPath'](_0x32c31b,_0x5c4347),_0x5c4347['pop'](),_0x5c4347[_0x5c4347['length']-0x1]++,_0x5bc502[_0x5028a4]['nextPosition']=_0x149e4d['createPositionFromPath'](_0x32c31b,_0x5c4347)):(_0x5bc502[_0x5028a4]['previousPosition']=_0x149e4d['createPositionFromPath'](_0x32c31b,_0x5c4347),_0x18ba53?_0x18ba53['_data']+=_0x5bc502[_0x5028a4]['item']['data']:_0x18ba53=new gt(_0x5bc502[_0x5028a4]['item']['data'],_0x5bc502[_0x5028a4]['item']['getAttributes']()),_0x5bc502[_0x5028a4+0x1]&&'text'===_0x5bc502[_0x5028a4+0x1]['type']&&_0x5232db(_0x18ba53,_0x5bc502[_0x5028a4+0x1]['item'])||(_0x2ffc95[0x0]['_appendChild'](_0x18ba53),_0x18ba53=null),_0x5c4347[_0x5c4347['length']-0x1]+=_0x5bc502[_0x5028a4]['item']['offsetSize'],_0x5bc502[_0x5028a4]['nextPosition']=_0x149e4d['createPositionFromPath'](_0x32c31b,_0x5c4347));for(let _0x3a8803=0x0;_0x3a8803<_0x5bc502['length'];_0x3a8803++){const _0x2807ee=_0x5bc502[_0x3a8803]['previousPosition'],_0x571e23=_0x5bc502[_0x3a8803]['nextPosition'];for(const _0x41fcea of _0x5bc502[_0x3a8803]['markersStart'])_0x2a032c['set'](_0x41fcea,{'start':_0x2807ee,'end':null});_0x5804f9('isRemoveSuggestion',_0x3a8803,_0x2807ee,_0x571e23),_0x5804f9('isAddSuggestion',_0x3a8803,_0x2807ee,_0x571e23),_0x5804f9('isRemoved',_0x3a8803,_0x2807ee,_0x571e23),_0x5804f9('isAdded',_0x3a8803,_0x2807ee,_0x571e23);for(const _0x2a28e4 of _0x5bc502[_0x3a8803]['markersEnd']){const _0xe8ef85=_0x2a032c['get'](_0x2a28e4);_0xe8ef85?_0xe8ef85['end']=_0x571e23:_0x2a032c['set'](_0x2a28e4,{'start':_0x571e23,'end':_0x571e23});}}for(const [_0x12bb72,_0x152c8b]of _0x2a032c){const _0x548e4c=this['editor']['model']['createRange'](_0x152c8b['start'],_0x152c8b['end']);_0x32c31b['markers']['set'](_0x12bb72,_0x548e4c);}return _0x1f71dd['sort']((_0x3f7b0e,_0x36672d)=>{const _0x493bf2=_0x32c31b['markers']['get']('revision:'+_0x3f7b0e['id']),_0xa3afb6=_0x32c31b['markers']['get']('revision:'+_0x36672d['id']);return _0x493bf2['start']['isBefore'](_0xa3afb6['start'])?-0x1:_0x493bf2['start']['isAfter'](_0xa3afb6['start'])?0x1:_0x493bf2['end']['isBefore'](_0xa3afb6['end'])?-0x1:_0x493bf2['end']['isAfter'](_0xa3afb6['end'])?0x1:'add'===_0x3f7b0e['type']?-0x1:0x1;}),{'root':_0x32c31b,'changes':_0x1f71dd};function _0x5804f9(_0x1af983,_0x31b5f6,_0x5b2e9e,_0x4c730b){const _0xed9f79=!!_0x5bc502[_0x31b5f6][_0x1af983],_0x840e00=_0xed9f79?_0x5bc502[_0x31b5f6][_0x1af983]['userId']:null,_0x19df2c=_0x31b5f6===_0x5bc502['length']-0x1,_0x5b5f15=_0x36e3cd[_0x1af983][0x0],_0x42c1a1=_0xc8f48d['isObject'](_0x5bc502[_0x31b5f6]['item']);!_0x3567e8[_0x1af983]&&_0xed9f79?_0x3567e8[_0x1af983]={'start':_0x5b2e9e,'tapeItem':_0x5bc502[_0x31b5f6],'userId':_0x840e00,'type':_0x1af983}:_0x3567e8[_0x1af983]&&!_0xed9f79?(_0x3567e8[_0x1af983]['end']=_0x5b2e9e,_0x3db3bb(_0x3567e8[_0x1af983]),_0x3567e8[_0x1af983]=null):_0x3567e8[_0x1af983]&&_0xed9f79&&_0x3567e8[_0x1af983]['userId']!==_0x840e00&&(_0x3567e8[_0x1af983]['end']=_0x5b2e9e,_0x5b5f15&&_0x5b5f15['userId']===_0x3567e8[_0x1af983]['userId']||_0x3db3bb(_0x3567e8[_0x1af983]),_0x3567e8[_0x1af983]={'start':_0x5b2e9e,'tapeItem':_0x5bc502[_0x31b5f6],'userId':_0x840e00,'type':_0x1af983}),_0x3567e8[_0x1af983]&&_0x42c1a1&&('elementStart'!==_0x5bc502[_0x31b5f6]['type']||_0x5b5f15&&_0x5b5f15['userId']===_0x840e00||_0x36e3cd[_0x1af983]['unshift']({'userId':_0x840e00,'object':_0x5bc502[_0x31b5f6]['item'],'change':_0x3567e8[_0x1af983]}),'elementEnd'===_0x5bc502[_0x31b5f6]['type']&&_0x5b5f15&&_0x5b5f15['object']===_0x5bc502[_0x31b5f6]['item']&&(_0x36e3cd[_0x1af983]['shift'](),_0x3567e8[_0x1af983]=_0x5b5f15['change'])),_0x3567e8[_0x1af983]&&_0x19df2c&&(_0x3567e8[_0x1af983]['end']=_0x4c730b,_0x3db3bb(_0x3567e8[_0x1af983]),_0x3567e8[_0x1af983]=null);}function _0x3db3bb({start:_0x35dcd2,end:_0x1252ed,tapeItem:_0x357b2d,userId:_0x2abe0a,type:_0x33a14a}){const _0x267144=_0x357b2d['item'],_0x521ee8=_0x149e4d['schema']['isBlock'](_0x267144)&&!_0x149e4d['schema']['isLimit'](_0x267144),_0x51914f=_0x35dcd2['nodeAfter']==_0x1252ed['parent']&&_0x1252ed['isAtStart'];if(_0x521ee8&&_0x51914f)return;const _0x1ca38f=_0x149e4d['createRange'](_0x35dcd2,_0x1252ed),_0x5e08c4=_0x1ba39a['get'](_0x2abe0a),_0x439565=new r({'author':_0x5e08c4,'type':'isAdded'==_0x33a14a||'isAddSuggestion'==_0x33a14a?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x33a14a||'isRemoveSuggestion'==_0x33a14a},'createdAt':new Date(),'rootName':_0x2c5f87});_0x1f71dd['push'](_0x439565),_0x32c31b['markers']['set']('revision:'+_0x439565['id'],_0x1ca38f);}function _0x5232db(_0x59290e,_0x5978ad){const _0x13b412=_0x59290e['getAttributes'](),_0x188141=_0x5978ad['getAttributes']();for(const _0x53774c of _0x13b412){if(_0x53774c[0x1]!==_0x5978ad['getAttribute'](_0x53774c[0x0]))return!0x1;_0x188141['next']();}return _0x188141['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x4935f5=>{const _0x2eb3e7=_0x4935f5['markerName']['split'](':')[0x1],_0x37a93d=this['_getChangeFromId'](_0x2eb3e7);if(!_0x37a93d)return null;const _0x50a848='add'==_0x37a93d['type']?'insertion':'deletion',_0x15523f=['ck-suggestion-marker','ck-suggestion-marker-'+_0x50a848];return _0x37a93d['data']['isSuggestion']&&_0x15523f['push']('ck-suggestion-marker-'+_0x50a848+'-new'),this['activeChange']==_0x37a93d&&_0x15523f['push']('ck-suggestion-marker--active'),{'classes':_0x15523f,'attributes':{'data-change-id':_0x2eb3e7}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x35ee84=>{_0x35ee84['on']('element:pre',(_0x9e2c6d,_0x374c19,_0x274650)=>{const _0x89b1d9=_0x374c19['viewItem']['getChild'](0x0);if(!_0x89b1d9||!_0x89b1d9['is']('element','code'))return;if(!_0x274650['consumable']['consume'](_0x89b1d9,{'attributes':['vid_start','vid_end']}))return;const _0x305a81=_0x374c19['modelRange']['start']['nodeAfter'];_0x274650['writer']['setAttribute']('vid_start',_0x89b1d9['getAttribute']('vid_start'),_0x305a81),_0x274650['writer']['setAttribute']('vid_end',_0x89b1d9['getAttribute']('vid_end'),_0x305a81);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x45721f=>{_0x45721f['on']('element',(_0x21fedd,_0x1b3dcf,_0x5aac4f)=>{if(!_0x5aac4f['consumable']['consume'](_0x1b3dcf['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x1b3dcf['modelRange']['isCollapsed'])return;const _0x5184f2=_0x1b3dcf['modelRange']['start']['nodeAfter'];_0x5184f2['hasAttribute']('vid_start')||_0x5184f2['hasAttribute']('vid')||(_0x5aac4f['writer']['setAttribute']('vid_start',_0x1b3dcf['viewItem']['getAttribute']('vid_start'),_0x5184f2),_0x5aac4f['writer']['setAttribute']('vid_end',_0x1b3dcf['viewItem']['getAttribute']('vid_end'),_0x5184f2));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x3fb7a5=>_0x3fb7a5['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0xf6cca7,[,_0x1c60e1])=>{['vid_start','vid_end','vid']['includes'](_0x1c60e1)&&(_0xf6cca7['return']=!0x0,_0xf6cca7['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x1f8cb3=>{_0x1f8cb3['on']('attribute:vid',(_0x332934,_0x33fe17,_0x42e93a)=>{if('\x20'!=_0x33fe17['item']['data']||_0x33fe17['item']['parent']['maxOffset']>0x1)return;if(!_0x42e93a['consumable']['consume'](_0x33fe17['item'],_0x332934['name']))return;const _0x5c0632=_0x42e93a['writer'],_0x45b476=_0x42e93a['mapper']['toViewRange'](_0x33fe17['range']);_0x5c0632['wrap'](_0x45b476,_0x5c0632['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x12df12){const _0x4ab972=_0x12df12['plugins']['get']('RevisionViewer');return(_0x24ce7b,_0x38f7d2,_0x40e190)=>{const _0x22244b=_0x38f7d2['markerName']['split'](':')[0x1],_0x99176e=_0x4ab972['_getChangeFromId'](_0x22244b);if(!_0x99176e)return null;const _0x475eba='add'==_0x99176e['type']?'split':'merge';if(!_0x40e190['consumable']['test'](_0x38f7d2['markerRange'],_0x24ce7b['name']))return;const _0xdc65b9=_0x38f7d2['markerRange']['getWalker'](),_0x5e30e9=_0x38f7d2['markerRange']['start'],_0x1f976=_0x12df12['model']['schema'];let _0x20aec9=null,_0x35bded=null,_0x4dc5ce=!0x1,_0x23d39a=!0x1;for(const _0x3b9368 of _0xdc65b9){const _0x11483a=_0x3b9368['item'];_0x4dc5ce=_0x4dc5ce||_0x1f976['isContent'](_0x11483a);const _0x475a53=_0x40e190['mapper']['toViewElement'](_0x11483a);if(_0x475a53&&_0x475a53['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3b9368['type']&&(_0x1f976['isBlock'](_0x11483a)&&!_0x1f976['isLimit'](_0x11483a)&&(_0x11483a['nextSibling']||_0x5e30e9['isAtEnd']?_0x20aec9&&_0x20aec9['parent']==_0x11483a||(_0x20aec9=_0x11483a,_0x1bb138(_0x3b9368['previousPosition']),_0x23d39a=!0x0):_0x35bded=_0x35bded||_0x3b9368['previousPosition']));}function _0x1bb138(_0x590278){const _0x23f5e5=_0x40e190['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x475eba}),_0xa48fbc=_0x40e190['mapper']['toViewPosition'](_0x590278);_0x99176e['data']['isSuggestion']&&_0x40e190['writer']['addClass']('ck-suggestion-marker-'+_0x475eba+'-new',_0x23f5e5),_0x4ab972['activeChange']==_0x99176e&&_0x40e190['writer']['addClass']('ck-suggestion-marker--active',_0x23f5e5),_0x40e190['writer']['insert'](_0xa48fbc,_0x23f5e5),_0x40e190['mapper']['bindElementToMarker'](_0x23f5e5,_0x38f7d2['markerName']);}_0x4dc5ce||_0x23d39a||!_0x35bded||_0x1bb138(_0x35bded);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x26e0e2,_0x1147b1,_0xac7386)=>{const _0x2f1bb1=_0xac7386['mapper']['markerNameToElements'](_0x1147b1['markerName']);if(_0x2f1bb1){for(const _0x3a992d of _0x2f1bb1)(_0x3a992d['hasClass']('ck-suggestion-marker-split')||_0x3a992d['hasClass']('ck-suggestion-marker-merge'))&&(_0xac7386['mapper']['unbindElementFromMarkerName'](_0x3a992d,_0x1147b1['markerName']),_0xac7386['writer']['remove'](_0x3a992d));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x2b81b5,_0x52efda,_0x323221)=>{const _0x85da72=_0x52efda['markerName']['split'](':')[0x1],_0x42d7dc=this['_getChangeFromId'](_0x85da72);if(!_0x42d7dc)return null;const _0x252d7a='add'==_0x42d7dc['type']?'split':'merge';if(_0x323221['consumable']['test'](_0x52efda['markerRange'],_0x2b81b5['name']))for(const _0x1b65d7 of _0x52efda['markerRange']['getItems']()){if(!_0x1b65d7['is']('element','softBreak'))continue;const _0x2bcbab=_0x323221['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x252d7a}),_0x511154=_0x323221['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x1b65d7));_0x42d7dc['data']['isSuggestion']&&_0x323221['writer']['addClass']('ck-suggestion-marker-'+_0x252d7a+'-new',_0x2bcbab),this['activeChange']==_0x42d7dc&&_0x323221['writer']['addClass']('ck-suggestion-marker--active',_0x2bcbab),_0x323221['writer']['insert'](_0x511154,_0x2bcbab),_0x323221['mapper']['bindElementToMarker'](_0x2bcbab,_0x52efda['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x1bef15=>{for(const _0x39efc8 of this['editor']['model']['document']['getRootNames']()){const _0x2c9ad6=this['editor']['model']['document']['getRoot'](_0x39efc8),_0x145467=this['editor']['editing']['view']['document']['getRoot'](_0x39efc8);if(_0x145467){const _0x4dba2f=_0x2c9ad6['getAttribute']('revisionHistoryAttachChange');if(_0x1bef15['removeAttribute']('data-change-id',_0x145467),_0x1bef15['removeClass']('ck-revision-history-root-add',_0x145467),_0x1bef15['removeClass']('ck-revision-history-root-remove',_0x145467),_0x1bef15['removeClass']('ck-revision-history-root--active',_0x145467),_0x4dba2f){const _0x2e6f79=this['_getChangeFromId'](_0x4dba2f);if(!_0x2e6f79)return null;_0x1bef15['setAttribute']('data-change-id',_0x4dba2f,_0x145467),_0x1bef15['addClass']('ck-revision-history-root-'+_0x2e6f79['type'],_0x145467),this['activeChange']==_0x2e6f79&&_0x1bef15['addClass']('ck-revision-history-root--active',_0x145467);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x396cdd=>'revision-comment:'+_0x396cdd,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x3f504e=>'revision-suggestion:'+_0x3f504e,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x5899c7=>({'name':'suggestion:'+_0x5899c7,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0xbd161d=>{const _0x315f6c=_0xbd161d['markerName']['split'](':')[0x1];return'insertion'!=_0x315f6c&&'deletion'!=_0x315f6c?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x315f6c]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',X(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',X(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x23edeb,_0x16491f,_0x591cfb)=>{const _0x4f82a4=_0x591cfb['mapper']['markerNameToElements'](_0x16491f['markerName']);if(_0x4f82a4){for(const _0x46e315 of _0x4f82a4)_0x46e315['is']('uiElement')&&(_0x591cfb['mapper']['unbindElementFromMarkerName'](_0x46e315,_0x16491f['markerName']),_0x591cfb['writer']['remove'](_0x46e315));}},{'priority':'high'});}['_getChangeFromId'](_0x233a80){return this['_changeIdToChange']['get'](_0x233a80);}['_getViewForChange'](_0x125bd3){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x125bd3),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x3d8687,_0x2fc7d2,_0x6eae58,_0x1fd23c)=>{_0x1fd23c&&this['_balloon']['remove'](_0x1fd23c),_0x6eae58&&(this['_balloon']['add']({'view':_0x6eae58,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x3aa70c=this['editor']['editing'],_0x15d673=this['_getChangeFromId'](_0x6eae58['changeId']);let _0x4049f3;if(_0x15d673['data']['isOnRoot']){const _0x30d04=_0x3aa70c['view']['getDomRoot'](_0x15d673['rootName']);_0x4049f3=Array['from'](_0x30d04['getClientRects']());}else{const _0x349f9a=this['editor']['model']['markers']['get']('revision:'+_0x6eae58['changeId']);_0x4049f3=Array['from'](_0x3aa70c['mapper']['markerNameToElements'](_0x349f9a['name']))['map'](_0x4a10af=>_0x3aa70c['view']['domConverter']['mapViewToDom'](_0x4a10af))['map'](_0x2ed3ec=>Array['from'](_0x2ed3ec['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x4049f3[0x0];return _0x4049f3['find'](_0x39d29d=>_0x39d29d['top']-0x3<=this['_activeViewTarget']['y']&&_0x39d29d['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x39d29d['left']-0x3<=this['_activeViewTarget']['x']&&_0x39d29d['right']+0x3>=this['_activeViewTarget']['x'])||_0x4049f3[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x5a78f9,_0x42979b,_0x4cb6af,_0x1dd68c)=>{this['activeView']=_0x4cb6af?this['_getViewForChange'](_0x4cb6af):null,this['editor']['model']['change'](()=>{const _0x36f02b=this['editor']['editing'];_0x1dd68c&&(_0x1dd68c['data']['isOnRoot']?_0x36f02b['view']['change'](_0x49fd32=>{_0x49fd32['removeClass']('ck-revision-history-root--active',_0x36f02b['view']['document']['getRoot'](_0x1dd68c['rootName']));}):_0x36f02b['reconvertMarker']('revision:'+_0x1dd68c['id'])),_0x4cb6af&&(_0x4cb6af['data']['isOnRoot']?_0x36f02b['view']['change'](_0x343cfd=>{_0x343cfd['addClass']('ck-revision-history-root--active',_0x36f02b['view']['document']['getRoot'](_0x4cb6af['rootName']));}):_0x36f02b['reconvertMarker']('revision:'+_0x4cb6af['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x35f5e0,_0x27ced9)=>{if(this['activeChange'])return;const _0x337c06=this['_findChangeIdFromDomTarget'](_0x27ced9['target']),_0x59395e=this['_changeIdToChange']['get'](_0x337c06);_0x59395e?(this['_activeViewTarget']={'x':_0x27ced9['domEvent']['x'],'y':_0x27ced9['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x59395e)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x50dd28,_0xfe73a6)=>{const _0x579086=this['_findChangeIdFromDomTarget'](_0xfe73a6['target']),_0x363b13=this['_changeIdToChange']['get'](_0x579086);_0x363b13?(this['_activeViewTarget']={'x':_0xfe73a6['domEvent']['x'],'y':_0xfe73a6['domEvent']['y']},_0x363b13===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x363b13):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x413b9b){do{const _0x3f8117=_0x413b9b['getAttribute']('data-change-id');if(_0x3f8117)return _0x3f8117;_0x413b9b=_0x413b9b['parent'];}while(_0x413b9b);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x47374f=>{for(const _0x3fbfad of this['editor']['model']['markers'])_0x47374f['removeMarker'](_0x3fbfad);});}}function X(_0x3086fe,_0x446f6f){return(_0xd65762,_0x5bd82f,_0x2b52fc)=>{if(!_0x2b52fc['consumable']['test'](_0x5bd82f['markerRange'],_0xd65762['name']))return;const _0x430e51=_0x5bd82f['markerRange']['getWalker'](),_0x2ef472=_0x5bd82f['markerRange']['start'],_0x43ce7b=_0x3086fe['model']['schema'];let _0xaa6f72=null,_0x446d6e=null,_0x424941=!0x1,_0x49235f=!0x1;for(const _0x1fbbec of _0x430e51){const _0x4bb688=_0x1fbbec['item'];_0x424941=_0x424941||_0x43ce7b['isContent'](_0x4bb688);const _0x52f37f=_0x2b52fc['mapper']['toViewElement'](_0x4bb688);if(_0x52f37f&&_0x52f37f['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1fbbec['type']&&(_0x43ce7b['isBlock'](_0x4bb688)&&!_0x43ce7b['isLimit'](_0x4bb688)&&(_0x4bb688['nextSibling']||_0x2ef472['isAtEnd']?_0xaa6f72&&_0xaa6f72['parent']==_0x4bb688||(_0xaa6f72=_0x4bb688,_0x4aa3ce(_0x1fbbec['previousPosition']),_0x49235f=!0x0):_0x446d6e=_0x446d6e||_0x1fbbec['previousPosition']));}function _0x4aa3ce(_0x19023d){const _0xc7c72=_0x2b52fc['mapper']['toViewPosition'](_0x19023d),_0x3a1625=_0x2b52fc['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x446f6f});_0x2b52fc['writer']['insert'](_0xc7c72,_0x3a1625),_0x2b52fc['mapper']['bindElementToMarker'](_0x3a1625,_0x5bd82f['markerName']);}_0x424941||_0x49235f||!_0x446d6e||_0x4aa3ce(_0x446d6e);};}class mt extends _0x4ca95f{constructor(_0x57c5b3){super(_0x57c5b3);const _0x13efda=_0x57c5b3['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x13efda,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x13efda,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x59066d=this['editor'],_0x55f735=_0x59066d['plugins']['get'](m),_0x1acd66=_0x55f735['isReady']?_0x55f735['diff']['newRevisionId']:null;_0x59066d['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x1acd66);}['refresh'](){const {isReady:_0x21d116,isEnabled:_0xa5f3a8,repository:_0x10025a,diff:_0x24c1a8}=this['editor']['plugins']['get'](m),_0x47b049=_0x24c1a8&&_0x10025a['getLaterVisibleRevision'](_0x24c1a8['newRevisionId']);this['isEnabled']=_0x21d116&&_0xa5f3a8&&Boolean(_0x47b049);}}class wt extends _0x4ca95f{['_step'];constructor(_0x18995d,{direction:_0x406a83}){super(_0x18995d);const _0xa13017=_0x18995d['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x406a83?0x1:-0x1,this['listenTo'](_0xa13017,'change:isReady',()=>this['refresh']()),this['listenTo'](_0xa13017,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0xa13017,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x272af7=this['editor'],_0x268998=_0x272af7['plugins']['get'](m),{isNavigationMode:_0x759eee,currentChangeNumber:_0x1b704c}=_0x268998;let _0x3cb1dc;if(_0x268998['activeChange']=_0x759eee?_0x268998['diff']['changes']['get'](_0x1b704c+this['_step']):_0x268998['diff']['changes']['first'],_0x268998['activeChange']['data']['isOnRoot'])_0x3cb1dc=_0x272af7['editing']['view']['getDomRoot'](_0x268998['activeChange']['rootName']);else{const _0x268ff9=_0x272af7['model']['markers']['get']('revision:'+_0x268998['activeChange']['id']);_0x3cb1dc=_0x3ab3e0(_0x272af7['editing'],_0x268ff9);}_0x31a828({'target':_0x3cb1dc,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x5b54bd,currentChangeNumber:_0x136e71,numberOfChanges:_0xd0161f,isReady:_0x5cb2b7,isEnabled:_0x4279cb}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x4279cb&&_0x5cb2b7&&_0xd0161f)&&(!_0x5b54bd||(0x1===this['_step']?_0x136e71<_0xd0161f-0x1:_0x136e71>0x0));}}class _i extends ts{constructor(_0x4c3e9f){super(_0x4c3e9f);const _0xed3b11=this['bindTemplate'],_0x454b66=new te(_0x4c3e9f),_0x21faec=new te(_0x4c3e9f);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',(_0x1de24e,_0x5d7927)=>_0x1de24e&&_0x5d7927>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0xf016b4,_0x5c0ff3,_0x37b934,_0x19edea)=>{if(!_0xf016b4)return g(_0x4c3e9f,'Loading...');if(!_0x37b934)return g(_0x4c3e9f,'No\x20changes');const _0x175153=g(_0x4c3e9f,'NUMBER_OF_CHANGES',_0x37b934);return _0x19edea?g(_0x4c3e9f,'X_OF_Y_CHANGES',[_0x5c0ff3+0x1,_0x37b934]):_0x175153;}),_0x454b66['set']({'label':g(_0x4c3e9f,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x561f5e}),_0x21faec['set']({'label':g(_0x4c3e9f,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x4300e8}),_0x454b66['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x21faec['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x454b66['on']('execute',()=>this['fire']('execute','backward')),_0x21faec['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',_0xed3b11['if']('_isStatusLabelVisible','ck-hidden',_0x1c35a4=>!_0x1c35a4)]},'children':[{'text':_0xed3b11['to']('isNavigationMode',_0x5cfd99=>_0x5cfd99?g(_0x4c3e9f,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x4c3e9f,'Total')+':\x20')}]},{'text':_0xed3b11['to']('_statusText')}]},new _0x134577(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x454b66,_0x21faec]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0xc858c4{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x5fad74=this['editor']['editing']['view'];_0x5fad74['change'](_0xe1fdce=>{for(const _0x542d07 of _0x5fad74['document']['roots'])_0xe1fdce['addClass'](le,_0x542d07);});}['hide'](){const _0x10898c=this['editor']['editing']['view'];_0x10898c['change'](_0x120ed8=>{for(const _0x52123 of _0x10898c['document']['roots'])_0x120ed8['removeClass'](le,_0x52123);});}}class R extends _0xc858c4{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,ge];}['init'](){const _0x44be6f=this['editor'],_0x4df2d2=_0x44be6f['plugins']['get'](m),_0x119492=_0x44be6f['plugins']['get'](ge);_0x44be6f['ui']['componentFactory']['add']('exitToEditing',_0x6bb6e=>{const _0x5bbbd0=new te(_0x6bb6e);return _0x5bbbd0['set']({'label':g(_0x6bb6e,'Back\x20to\x20editing'),'icon':_0x4cc4d4,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x5bbbd0,'execute',()=>{_0x44be6f['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x5bbbd0;}),_0x44be6f['ui']['componentFactory']['add']('restoreRevision',_0x2fdf29=>{const _0x1930f7=new te(_0x2fdf29);return _0x1930f7['set']({'label':g(_0x2fdf29,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x1930f7['bind']('isEnabled')['to'](_0x44be6f['commands']['get']('restoreRevision')),this['listenTo'](_0x1930f7,'execute',()=>_0x44be6f['execute']('restoreRevision')),_0x1930f7;}),_0x44be6f['ui']['componentFactory']['add']('changesNavigation',_0x3c7a83=>{const _0xb9970e=new _i(_0x3c7a83),_0x44b122=_0x44be6f['commands']['get']('showPreviousChange'),_0x48886a=_0x44be6f['commands']['get']('showNextChange');return _0xb9970e['bind']('isBackwardNavigationEnabled')['to'](_0x44b122,'isEnabled'),_0xb9970e['bind']('isForwardNavigationEnabled')['to'](_0x48886a,'isEnabled'),_0xb9970e['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x4df2d2),this['listenTo'](_0xb9970e,'execute',(_0x2a6fa9,_0x4486d4)=>{_0x44be6f['execute']('forward'===_0x4486d4?'showNextChange':'showPreviousChange');}),_0xb9970e;}),_0x119492['show'](),_0x4df2d2['on']('change:isReady',(_0x5e27dc,_0x143995,_0x304909)=>{_0x304909?_0x119492['hide']():_0x119492['show']();});}}class at extends _0xacc8af{['_resizeObserver']=null;constructor(_0x3025c3,_0x405efb){super(_0x3025c3,_0x405efb);const _0x29a35f=this['bindTemplate'];this['set']({'label':g(_0x3025c3,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x3025c3,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x29a35f['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new nt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x297952=this['fieldView']['element'];this['_tooltipString']=_0x297952['scrollWidth']>_0x297952['clientWidth']&&_0x297952['value']||'';}}class si extends ts{constructor(_0x47d80a,_0x31a209,_0x7cd034){super(_0x47d80a);const _0x1dde40=new _0x2e0193();_0x1dde40['set']({'content':_0x29cf36,'viewBox':'0\x200\x2011\x2010'});const _0x1cd870=['ck','ck-revision-history-sidebar__revision-author'];_0x7cd034&&_0x1cd870['push']('ck-revision-history-sidebar__revision-author_creator');const _0x84586a=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x47d80a,_0x7cd034?'Revision\x20creator':'Revision\x20author')},'children':[_0x1dde40,_0x31a209['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x1cd870},'children':_0x84586a});}}function oi(_0x26a25c,_0x54f18f){const _0xed0ffc=_0x26a25c['bindTemplate'],_0x1da4ad=_0x26a25c['locale'],_0x8710a4=_0x5f4b44(_0x1da4ad);_0x8710a4['panelPosition']='sw';const _0x21db9=function(_0x55426f,_0x32a27d){const _0x267756=function(_0x141a73,_0x965485){const _0x46654d=_0x141a73['locale'],_0x2bb6cc={'Compare\x20against\x20selected':g(_0x46654d,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x46654d,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x46654d,'Restore\x20this\x20revision')};return _0x965485['map'](_0x22e879=>{const _0x3797d0=_0x2bb6cc[_0x22e879['name']];return _0x3797d0&&_0x3797d0!==_0x22e879['name']&&(_0x22e879['name']=_0x3797d0),_0x22e879;});}(_0x55426f,_0x32a27d),_0x2f4fbe=new _0x58fbc2();for(const _0x1d2aea of _0x267756){const _0x2761={'type':'button','model':new to({'label':_0x1d2aea['name'],'class':_0x1d2aea['class'],'withText':!0x0,'role':'menuitem','_action':_0x1d2aea['action']})};_0x2761['model']['bind']('isEnabled')['to'](_0x55426f,'isActionsDropdownOpen',_0x6585ec=>'function'!=typeof _0x1d2aea['isEnabled']||(!_0x6585ec||_0x1d2aea['isEnabled'](_0x55426f))),_0x2f4fbe['add'](_0x2761);}return _0x2f4fbe;}(_0x26a25c,_0x54f18f);return _0x26a25c['bind']('isActionsDropdownOpen')['to'](_0x8710a4,'isOpen'),_0x8710a4['buttonView']['set']({'label':g(_0x1da4ad,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x5e73cb}),_0x8710a4['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0xed0ffc['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0xed0ffc['to'](_0x5bff71=>_0x5bff71['stopPropagation']())}}),_0x8710a4['on']('execute',_0x561373=>{_0x26a25c['isReady']&&'function'==typeof _0x561373['source']['_action']&&_0x561373['source']['_action'](_0x26a25c);}),_0x44ae0e(_0x8710a4,_0x21db9,{'role':'menu'}),_0x8710a4['listenTo'](_0x26a25c,'change:isActionsDropdownOpen',(_0x4a8d56,_0x151541,_0x26ad81)=>{if(_0x26ad81)for(const _0x571e1e of _0x8710a4['listView']['items']){const _0x338d8b=_0x571e1e['children']['first'],_0x175c04=_0x54f18f['find'](_0x3f1de9=>_0x3f1de9['action']===_0x338d8b['_action'])['isVisible'];_0x571e1e['isVisible']=void 0x0===_0x175c04||_0x175c04(_0x26a25c);}}),_0x8710a4;}class hi extends/* #__PURE__ -- @preserve */
|
|
26
|
+
ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x471617,_0x1077de,_0x8314d3,_0x5cc5d2){super(_0x471617);const _0x2fe018=this['bindTemplate'],_0x4ba4fd=function(_0x325d08,_0x5e0ba3){const _0x17426a=Array['from'](_0x5e0ba3['authors'])['filter'](_0xc4b516=>_0xc4b516!=_0x5e0ba3['creator']);return _0x5e0ba3['creator']&&_0x17426a['unshift'](_0x5e0ba3['creator']),_0x17426a['map'](_0x248081=>new si(_0x325d08,_0x248081,_0x248081==_0x5e0ba3['creator']));}(_0x471617,_0x1077de);this['id']=_0x1077de['id'],this['_revision']=_0x1077de,this['_requireRevisionName']=_0x5cc5d2,this['bind']('name','createdAt')['to'](_0x1077de),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x5c6e5e=>{return _0xa20034=_0x471617['uiLanguage'],(_0x143c3a=_0x5c6e5e)['toLocaleDateString'](_0xa20034,{'month':'long','day':'numeric'})+',\x20'+_0x143c3a['toLocaleTimeString'](_0xa20034,{'hour':'numeric','minute':'numeric'});var _0xa20034,_0x143c3a;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new at(_0x471617,_0x5442b6),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x1a5319=>_0x1a5319||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x52c4c7,_0x10477a)=>_0x52c4c7&&_0x10477a),this['revisionActionsView']=_0x8314d3&&_0x8314d3['length']?oi(this,_0x8314d3):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x2fe018['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x2fe018['if']('isEnabled','ck-disabled',_0xad1f5b=>!_0xad1f5b),_0x2fe018['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x2fe018['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x2fe018['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':_0x2fe018['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':_0x4ba4fd}]},this['revisionActionsView']],'on':{'click':_0x2fe018['to'](_0x42245b=>{_0x42245b['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x590f9b=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x590f9b,'change',()=>{this['_requireRevisionName']&&!_0x590f9b['value']||this['fire']('setName',{'id':this['id'],'name':_0x590f9b['value']}),_0x590f9b['value']||(_0x590f9b['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function ai(_0x16aa5d,_0x2e2d69){const _0x5a216a=_0x5730c1['fromJSDate'](_0x16aa5d)['setLocale'](_0x2e2d69),_0x27aee2=_0x5730c1['local'](),_0x7e537b=_0x27aee2['minus']({'days':0x1})['startOf']('day');let _0x29e702,_0x418c9f;return _0x5a216a['hasSame'](_0x27aee2,'day')?(_0x29e702=_0x5a216a['startOf']('day')['toJSDate'](),_0x418c9f=_0x5a216a['toRelativeCalendar']()):_0x5a216a['hasSame'](_0x7e537b,'day')?(_0x29e702=_0x7e537b['toJSDate'](),_0x418c9f=_0x5a216a['toRelativeCalendar']()):_0x5a216a['hasSame'](_0x27aee2,'week')?(_0x29e702=_0x5a216a['startOf']('week')['toJSDate'](),_0x418c9f=_0x5a216a['weekdayLong']||''):_0x5a216a['hasSame'](_0x27aee2,'year')?(_0x29e702=_0x5a216a['startOf']('month')['toJSDate'](),_0x418c9f=_0x5a216a['monthLong']||''):(_0x29e702=_0x5a216a['startOf']('year')['toJSDate'](),_0x418c9f=String(_0x5a216a['year'])),{'startDate':_0x29e702,'localizedPeriodName':_0x418c9f};}class di extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x17ce47,_0xbb8cdb,_0x2b5a83,_0x111906){super(_0x17ce47);const _0x31234d=ai(_0xbb8cdb,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0xbb8cdb,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x2b5a83,this['_requireRevisionName']=_0x111906,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':_0x31234d}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x50b3d6){const _0x854ac=new hi(this['locale'],_0x50b3d6,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x854ac);}['removeRevision'](_0x347dc1){const _0x180405=this['revisionViews']['find'](_0x3489a8=>_0x3489a8['id']===_0x347dc1['id']);this['revisionViews']['remove'](_0x180405);}}class as extends ts{constructor(_0x36e367){super(_0x36e367);const _0x184924=new _0x2e0193();_0x184924['content']=_0x3e9cd6,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x184924,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[g(_0x36e367,'Revision\x20history')]}]});}}class ni extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x42a04f,_0x39deba,_0x52f179,_0x44f009){super(_0x42a04f);const _0x204a33=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x39deba,this['_revisionActions']=_0x52f179,this['_requireRevisionName']=_0x44f009,this['on']('select',(_0x632583,_0x2a5de5)=>{this['fire']('revisionSelected',_0x2a5de5);}),this['on']('setName',(_0x7d7df3,_0x505625)=>{this['fire']('revisionSetName',_0x505625);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x42a04f),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x204a33['if']('isEnabled','ck-disabled',_0x464fc7=>!_0x464fc7)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x1ba809 of this['_revisions'])this['_addRevision'](_0x1ba809);this['_revisions']['on']('add',(_0x1b7f07,_0x44aa57)=>{this['_addRevision'](_0x44aa57);}),this['_revisions']['on']('remove',(_0x2112a8,_0x4b8040)=>{this['_removeRevision'](_0x4b8040);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x242d52=>_0x242d52['revisionViews']['map'](_0x52f8ed=>_0x52f8ed))['flat']();}['selectRevision'](_0x5644b6){for(const _0x3e5375 of this['revisionViews'])_0x5644b6&&_0x5644b6['id']===_0x3e5375['id']?_0x3e5375['select']():_0x3e5375['deselect']();}['highlightRevisions'](_0x1fc638){for(const _0x517d2a of this['revisionViews'])_0x1fc638['some'](({id:_0x1c643e})=>_0x1c643e===_0x517d2a['id'])?_0x517d2a['highlight']():_0x517d2a['unhighlight']();}['_addRevision'](_0x251591){const _0x569d71=ai(_0x251591['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x31b6bc=this['timePeriodViews']['get'](0x0);_0x31b6bc&&_0x31b6bc['startDate']['getTime']()===_0x569d71['getTime']()||(_0x31b6bc=new di(this['locale'],_0x569d71,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x31b6bc)),_0x31b6bc['addRevision'](_0x251591);}['_removeRevision'](_0x262c78){const _0x44f725=ai(_0x262c78['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x44f725)['removeRevision'](_0x262c78);}['_getTimePeriodViewByStartDate'](_0x4fb95a){return this['timePeriodViews']['find'](_0x4bcfe2=>_0x4bcfe2['startDate']['getTime']()===_0x4fb95a['getTime']());}}class d extends _0xc858c4{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
27
27
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
|
-
|
|
29
|
-
_0x5a0e26(_0x2750ff){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x3a9cfa,_0x52b3ab){super(_0x52b3ab),this['sourceElement']=_0x3a9cfa,this['model']['document']['createRoot']();const _0x39c4a3=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x39c4a3);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x367285,_0x1babfa){const _0xd689f=new this(_0x367285,_0x1babfa);return await _0xd689f['initPlugins'](),await _0xd689f['ui']['init'](_0x367285),await _0xd689f['data']['init'](_0xd689f['config']['get']('initialData')||''),_0xd689f['fire']('ready'),_0xd689f;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class yt extends _0x5df236{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5a88fb){function _0x2c7a60(_0x1eb4f8){return _0x1eb4f8['map'](_0x3caa64=>String['fromCharCode'](_0x3caa64))['join']('');}super(_0x5a88fb),this['result']='end',_0x5a88fb[_0x2c7a60([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2c7a60([0x76,0x69,0x65,0x77])][_0x2c7a60([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2c7a60([0x61,0x75,0x74,0x6f]),_0x5a88fb[_0x2c7a60([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x2c7a60([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2c7a60([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x2c7a60([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x2c7a60([0x6f,0x6b])});}}class k extends _0x5df236{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x4c6dea){if(super(_0x4c6dea),!this['editor']['config']['get']('revisionHistory'))throw new _0x3cba61('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x10857e=>this['_showRevisionViewer']({..._0x10857e,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x4b2f68=>this['_closeRevisionViewer'](_0x4b2f68)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x3b92e2=>this['_restoreRevision'](_0x3b92e2)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x57a7f1){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x57a7f1;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x454e81){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x454e81);}['getRevision'](_0x567287){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x567287);}['getRevisions'](_0x2d670b){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x2d670b||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0xca6f0e=this['editor'],_0x5d4e5f=_0x2cd006(_0xca6f0e,p),_0x5a68d2=_0xca6f0e['plugins']['get']('RevisionTracker'),_0x584251=_0xca6f0e['plugins']['get']('Users')['users'];return _0x5d4e5f['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x5d4e5f['lazyRoots'],(_0x5d4e5f['plugins']['push'](yt,m,R,class extends _0x5df236{static get['requires'](){return[m,'Users'];}['init'](){const _0x3cc02e=this['editor']['plugins']['get']('Users');for(const _0x306fe2 of _0x584251)_0x306fe2['isAnonymous']||_0x3cc02e['getUser'](_0x306fe2['id'])||_0x3cc02e['addUser'](_0x306fe2);const _0xa29a25=_0x5a68d2['repository']['getRevisions']();let _0x261910=null;const _0x5a7cd6=this['editor']['plugins']['get']('RevisionViewer');_0x5a7cd6['adapter']=_0x5a68d2['adapter'],_0x5a7cd6['bind']('isEnabled')['to'](_0x5a68d2),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0xca6f0e,'isReadOnly',_0x43e94f=>!_0x43e94f);for(const _0x59de43 of _0xa29a25){const _0x3c63c1=null===_0x59de43['creator'];if(_0x3c63c1&&_0x59de43['toVersion']===_0x59de43['fromVersion'])continue;const _0x639a15=_0x59de43['toJSON']();_0x5a7cd6['addRevisionData'](_0x639a15,(_0xceb179,_0x209e2e,_0x283c9e)=>{if(_0x3c63c1){if(_0x261910)_0x261910['_update'](_0xceb179,_0x209e2e);else{if(!_0x209e2e){const _0x47f3b2=_0x283c9e['toJSON']();_0x47f3b2['id']=_0x3ebcbf(),_0x5a68d2['saveRevision'](_0x47f3b2,_0x283c9e['toVersion'])['then'](_0x4d1d72=>{_0x261910=_0x4d1d72;});}}}else _0x59de43['_update'](_0xceb179,_0x209e2e);});}}},d),_0x5d4e5f);}['_enhanceShowRevisionViewerCallback'](){const _0x4fd223=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x3169d6=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x500783=this['editor']['plugins']['get']('Autosave');await _0x500783['save']();}else await _0x3169d6['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x12cc0c=this['editor']['plugins']['get']('Dialog');_0x12cc0c['isOpen']&&_0x12cc0c['hide']();}const _0x2252a1=this['_getRevisionViewerEditorConfig']();return _0x4fd223(_0x2252a1)['then'](_0x59f2e9=>{return(this['_viewerEditor']=_0x59f2e9,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'),_0x59f2e9);})['catch'](_0x1e0e43=>(console['error'](_0x1e0e43),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x3321f3=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x3321f3(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x2c3b35=this['editor']['plugins']['get']('Annotations');_0x2c3b35['refreshVisibility'](),_0x2c3b35['refreshPositioning']();}})));}['_showRevisionViewer'](_0x1dbb27){const _0x365319=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x4151b2=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x5317d4=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x5317d4,_0x1dbb27)['then'](_0x34062b=>(_0x4151b2['style']['display']='block',_0x365319['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x34062b));}['_closeRevisionViewer'](_0x49fbce){const _0x1dca02=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x1dca02['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x49fbce['destroy']();}async['_restoreRevision'](_0x3d6e89){const _0x4ddf2c=this['editor'],_0x18565b=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x2ef1c2=_0x4ddf2c['plugins']['get']('RevisionTracker'),_0x11ea48=_0x4ddf2c['plugins']['get']('RevisionHistoryUtils'),_0x2057f1=_0x18565b['repository']['getRevision'](_0x3d6e89);let _0x5ef00d,_0x53f19f,_0x41c3e7;try{await _0x11ea48['loadRevisionData'](_0x2057f1,this['adapter']),_0x5ef00d=_0x11ea48['getRevisionDocumentData'](_0x2057f1),_0x53f19f=_0x11ea48['getRevisionRootsAttributes'](_0x2057f1);}catch(_0x5ec3cb){return void console['error'](_0x5ec3cb);}_0x4ddf2c['model']['change'](_0x5d447a=>{for(const _0x2b5f4d of Array['from'](_0x4ddf2c['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x5d447a['removeMarker'](_0x2b5f4d);}),_0x18565b['isReady']=!0x1,_0x4ddf2c['model']['enqueueChange'](_0x57566d=>{_0x57566d['setSelection'](null),_0x57566d['removeSelectionAttribute'](_0x4ddf2c['model']['document']['selection']['getAttributeKeys']());const _0x5d57b0=Object['keys'](_0x5ef00d);for(const _0x10b5b1 of _0x4ddf2c['model']['document']['roots'])'$graveyard'!=_0x10b5b1['rootName']&&_0x10b5b1['isAttached']()&&!_0x5d57b0['includes'](_0x10b5b1['rootName'])&&_0x57566d['detachRoot'](_0x10b5b1);for(const _0x21f31d of _0x5d57b0){let _0x3dadfb=_0x4ddf2c['model']['document']['getRoot'](_0x21f31d);_0x3dadfb&&_0x3dadfb['isAttached']()||(_0x3dadfb=_0x57566d['addRoot'](_0x21f31d));const _0x438508=_0x53f19f[_0x21f31d],_0x524c68=Object['keys'](_0x438508),_0x504afb=_0x5ef00d[_0x21f31d];for(const _0x22892a of _0x3dadfb['getAttributeKeys']())_0x524c68['includes'](_0x22892a)||_0x57566d['removeAttribute'](_0x22892a,_0x3dadfb);for(const _0xb54dc of _0x524c68)_0x57566d['setAttribute'](_0xb54dc,_0x53f19f[_0x21f31d][_0xb54dc],_0x3dadfb);_0x57566d['remove'](_0x57566d['createRangeIn'](_0x3dadfb)),_0x57566d['insert'](_0x4ddf2c['data']['parse'](_0x504afb,_0x3dadfb),_0x3dadfb,0x0);}});const _0x23d76c=g(_0x4ddf2c['locale'],'Restored');if(_0x2057f1['name'])_0x41c3e7=-0x1==_0x2057f1['name']['indexOf'](_0x23d76c)?_0x23d76c+':\x20'+_0x2057f1['name']:_0x2057f1['name'];else _0x41c3e7=_0x23d76c+':\x20'+(_0x2057f1['createdAt']['toLocaleDateString'](_0x4ddf2c['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x2057f1['createdAt']['toLocaleTimeString'](_0x4ddf2c['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x2ef1c2['saveRevision']({'name':_0x41c3e7}),_0x18565b['isReady']=!0x0,_0x4ddf2c['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,V as RevisionHistoryUtils,u as RevisionTracker,m as RevisionViewer,w as RevisionViewerEditor,le as RevisionViewerLoadingOverlay,R as RevisionViewerUI,I as RevisionsRepository,d as RevisionsSidebar};
|
|
28
|
+
pt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m];}constructor(_0x1a2505){super(_0x1a2505),this['_revisionViewer']=_0x1a2505['plugins']['get'](m),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x3a4f72=this['_revisionsRepository']['_revisions'],_0x34c77d=this['_createRevisionActions'](),_0x943de3=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ni(this['editor']['locale'],_0x3a4f72,_0x34c77d,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',(_0x3050fb,_0x70ea82)=>{_0x70ea82['revisionViews']['on']('add',(_0x111148,_0x4517a8)=>{_0x4517a8['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)),_0x943de3['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0xb1219f=this['_revisionsRepository']['getRevision'](0x0);if(_0xb1219f){const _0x1f8b9b=this['_revisionsRepository']['getEarlierVisibleRevision'](_0xb1219f['id']);this['_revisionViewer']['compare'](_0xb1219f,_0x1f8b9b);}}['_handleRevisionSelected'](_0xda91ee,_0x2cbc70){const _0x367250=this['_revisionsRepository']['getRevision'](_0x2cbc70['id']),_0x2cb59f=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x367250['id']);this['_revisionViewer']['compare'](_0x367250,_0x2cb59f);}['_handleRevisionSetName'](_0x5afb99,_0x32c4c7){this['_revisionsRepository']['getRevision'](_0x32c4c7['id'])['setName'](_0x32c4c7['name']);}['_handleDiffChange'](_0x2a77be,_0x31bf91,_0x2a72d1){const _0x7e963f=this['_revisionsRepository']['getRevisionsInDiff'](_0x2a72d1);_0x7e963f['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x7e963f),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x7e963f[0x0]));}['_createRevisionActions'](){const _0xa56d9e=this['editor'],_0x3211e0=d['availableRevisionActions'],_0x43771b=_0xa56d9e['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x43771b['length'])return _0x43771b['map'](_0x16db90=>{const _0x136a3f='string'==typeof _0x16db90?Object['assign']({},_0x3211e0[_0x16db90]):_0x16db90;return _0x136a3f['action']=_0x136a3f['action']['bind'](this,_0xa56d9e),_0x136a3f['isVisible']&&(_0x136a3f['isVisible']=_0x136a3f['isVisible']['bind'](this,_0xa56d9e)),_0x136a3f;});}}function pt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x565f4f},_0x2a1e62)=>{const _0x33d8eb=_0x565f4f['get'](m),_0x4ceb99=_0x33d8eb['repository'];let _0x440407=_0x33d8eb['diff']['newRevisionId'],_0x55da83=_0x2a1e62['id'];_0x4ceb99['getIndex'](_0x440407)>_0x4ceb99['getIndex'](_0x55da83)&&([_0x440407,_0x55da83]=[_0x55da83,_0x440407]),_0x33d8eb['compare'](_0x440407,_0x55da83);},'isVisible':({plugins:_0x3b4df7},_0x333505)=>{const _0x3ff11b=_0x3b4df7['get'](m);return!(_0x3ff11b['repository']['getRevisionsInDiff'](_0x3ff11b['diff'])['length']>0x2)&&!_0x333505['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x4ceaa0,{id:_0x51f221})=>{_0x4ceaa0['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x51f221);},'isVisible':({plugins:_0x459d48},_0x520078)=>!!_0x459d48['get'](m)['repository']['getLaterVisibleRevision'](_0x520078['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x5969d9},{id:_0x2efe34,revisionNameView:_0x56c998})=>{const _0x2bd16d=_0x5969d9['get'](m),_0x1c0128=_0x2bd16d['repository']['getEarlierVisibleRevision'](_0x2efe34);_0x2bd16d['compare'](_0x2efe34,_0x1c0128),_0x56c998['focus'](),_0x56c998['fieldView']['select']();}}};}class tt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x46b900,_0x4af92a){super(_0x46b900),this['_view']=_0x4af92a,this['_toolbarConfig']=et(_0x46b900['config']['get']('toolbar')),this['_elementReplacer']=new ot();}get['element'](){return this['view']['element'];}['init'](_0x2484b9){const _0x453222=this['editor'],_0x3a2c0b=this['view'],_0x1e880b=_0x453222['editing']['view'],_0x78b82=_0x3a2c0b['editable'],_0x19503b=_0x1e880b['document']['getRoot']();_0x78b82['name']=_0x19503b['rootName'],_0x3a2c0b['render']();const _0x6a7a0d=_0x78b82['element'];this['setEditableElement'](_0x78b82['name'],_0x6a7a0d),_0x3a2c0b['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x1e880b['attachDomRoot'](_0x6a7a0d),this['_elementReplacer']['replace'](_0x2484b9,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x22cd83=this['view'],_0x28f30a=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x28f30a['detachDomRoot'](_0x22cd83['editable']['name']),_0x22cd83['destroy']();}['_initToolbar'](){const _0x18a01a=this['view'];_0x18a01a['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x18a01a['stickyPanel']['limiterElement']=_0x18a01a['element'],_0x18a01a['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x31fa51})=>_0x31fa51),_0x18a01a['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x18a01a['toolbar']);}}class it extends rt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x48ca6b,_0x112f1d,_0xc0277e={}){super(_0x48ca6b),this['stickyPanel']=new ht(_0x48ca6b),this['toolbar']=new dt(_0x48ca6b,{'shouldGroupWhenFull':_0xc0277e['shouldToolbarGroupWhenFull']}),this['_editable']=new ct(_0x48ca6b,_0x112f1d);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class w extends/* #__PURE__ -- @preserve */
|
|
29
|
+
_0x1cb442(_0x3afd4d){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x2ac9f8,_0x46c345){super(_0x46c345),this['sourceElement']=_0x2ac9f8,this['model']['document']['createRoot']();const _0x45b857=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x45b857);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x30c123,_0x567354){const _0xabfeba=new this(_0x30c123,_0x567354);return await _0xabfeba['initPlugins'](),await _0xabfeba['ui']['init'](_0x30c123),await _0xabfeba['data']['init'](_0xabfeba['config']['get']('initialData')||''),_0xabfeba['fire']('ready'),_0xabfeba;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class _t extends _0xc858c4{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x43dfcd){function _0x126fba(_0x20f857){return _0x20f857['map'](_0x516a34=>String['fromCharCode'](_0x516a34))['join']('');}super(_0x43dfcd),this['result']='end',_0x43dfcd[_0x126fba([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x126fba([0x76,0x69,0x65,0x77])][_0x126fba([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x126fba([0x61,0x75,0x74,0x6f]),_0x43dfcd[_0x126fba([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x126fba([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x126fba([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x126fba([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x126fba([0x6f,0x6b])});}}class k extends _0xc858c4{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x2d40fb){if(super(_0x2d40fb),!this['editor']['config']['get']('revisionHistory'))throw new _0x3f46eb('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x15e0bc=>this['_showRevisionViewer']({..._0x15e0bc,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x454b64=>this['_closeRevisionViewer'](_0x454b64)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x3f7b38=>this['_restoreRevision'](_0x3f7b38)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x23fb61){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x23fb61;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x5f229d){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x5f229d);}['getRevision'](_0x2ac619){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x2ac619);}['getRevisions'](_0x348f08){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x348f08||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x12fd0b=this['editor'],_0x50a022=_0x4a9536(_0x12fd0b,p),_0x1e0211=_0x12fd0b['plugins']['get']('RevisionTracker'),_0x7273f2=_0x12fd0b['plugins']['get']('Users')['users'];return _0x50a022['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x50a022['lazyRoots'],(_0x50a022['plugins']['push'](_t,m,R,class extends _0xc858c4{static get['requires'](){return[m,'Users'];}['init'](){const _0x4996af=this['editor']['plugins']['get']('Users');for(const _0x15cd47 of _0x7273f2)_0x15cd47['isAnonymous']||_0x4996af['getUser'](_0x15cd47['id'])||_0x4996af['addUser'](_0x15cd47);const _0x4e5271=_0x1e0211['repository']['getRevisions']();let _0x3bd4ba=null;const _0x1f2f6f=this['editor']['plugins']['get']('RevisionViewer');_0x1f2f6f['adapter']=_0x1e0211['adapter'],_0x1f2f6f['bind']('isEnabled')['to'](_0x1e0211),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x12fd0b,'isReadOnly',_0x56161d=>!_0x56161d);for(const _0x2e4940 of _0x4e5271){const _0x55312d=null===_0x2e4940['creator'];if(_0x55312d&&_0x2e4940['toVersion']===_0x2e4940['fromVersion'])continue;const _0x545ea2=_0x2e4940['toJSON']();_0x1f2f6f['addRevisionData'](_0x545ea2,(_0x36b3df,_0x51b1f3,_0x1664eb)=>{if(_0x55312d){if(_0x3bd4ba)_0x3bd4ba['_update'](_0x36b3df,_0x51b1f3);else{if(!_0x51b1f3){const _0x580cca=_0x1664eb['toJSON']();_0x580cca['id']=_0x19f1f8(),_0x1e0211['saveRevision'](_0x580cca,_0x1664eb['toVersion'])['then'](_0xd400a6=>{_0x3bd4ba=_0xd400a6;});}}}else _0x2e4940['_update'](_0x36b3df,_0x51b1f3);});}}},d),_0x50a022);}['_enhanceShowRevisionViewerCallback'](){const _0x57f5f5=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x433c88=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x29d274=this['editor']['plugins']['get']('Autosave');await _0x29d274['save']();}else await _0x433c88['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x381a12=this['editor']['plugins']['get']('Dialog');_0x381a12['isOpen']&&_0x381a12['hide']();}const _0x2113fc=this['_getRevisionViewerEditorConfig']();return _0x57f5f5(_0x2113fc)['then'](_0x23a8c2=>{return(this['_viewerEditor']=_0x23a8c2,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'),_0x23a8c2);})['catch'](_0x51cbf4=>(console['error'](_0x51cbf4),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x262a6e=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x262a6e(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x1d3481=this['editor']['plugins']['get']('Annotations');_0x1d3481['refreshVisibility'](),_0x1d3481['refreshPositioning']();}})));}['_showRevisionViewer'](_0x284d16){const _0x58c7db=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x33b00c=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x297d7c=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x297d7c,_0x284d16)['then'](_0x10735d=>(_0x33b00c['style']['display']='block',_0x58c7db['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x10735d));}['_closeRevisionViewer'](_0x3bba5a){const _0x3c5c81=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x3c5c81['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x3bba5a['destroy']();}async['_restoreRevision'](_0x111e1f){const _0x2af53c=this['editor'],_0x3f79a0=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x3ff8be=_0x2af53c['plugins']['get']('RevisionTracker'),_0x3546a7=_0x2af53c['plugins']['get']('RevisionHistoryUtils'),_0x479099=_0x3f79a0['repository']['getRevision'](_0x111e1f);let _0x3f6a0f,_0x5c45aa,_0xafdf38;try{await _0x3546a7['loadRevisionData'](_0x479099,this['adapter']),_0x3f6a0f=_0x3546a7['getRevisionDocumentData'](_0x479099),_0x5c45aa=_0x3546a7['getRevisionRootsAttributes'](_0x479099);}catch(_0xf20f58){return void console['error'](_0xf20f58);}_0x2af53c['model']['change'](_0x356cb1=>{for(const _0x467d49 of Array['from'](_0x2af53c['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x356cb1['removeMarker'](_0x467d49);}),_0x3f79a0['isReady']=!0x1,_0x2af53c['model']['enqueueChange'](_0x19dce6=>{_0x19dce6['setSelection'](null),_0x19dce6['removeSelectionAttribute'](_0x2af53c['model']['document']['selection']['getAttributeKeys']());const _0x1a1299=Object['keys'](_0x3f6a0f);for(const _0xa0ce94 of _0x2af53c['model']['document']['roots'])'$graveyard'!=_0xa0ce94['rootName']&&_0xa0ce94['isAttached']()&&!_0x1a1299['includes'](_0xa0ce94['rootName'])&&_0x19dce6['detachRoot'](_0xa0ce94);for(const _0x2f4c22 of _0x1a1299){let _0x49c7b0=_0x2af53c['model']['document']['getRoot'](_0x2f4c22);_0x49c7b0&&_0x49c7b0['isAttached']()||(_0x49c7b0=_0x19dce6['addRoot'](_0x2f4c22));const _0xb1f898=_0x5c45aa[_0x2f4c22],_0x2c4091=Object['keys'](_0xb1f898),_0x47ed49=_0x3f6a0f[_0x2f4c22];for(const _0x1c8431 of _0x49c7b0['getAttributeKeys']())_0x2c4091['includes'](_0x1c8431)||_0x19dce6['removeAttribute'](_0x1c8431,_0x49c7b0);for(const _0x124e9e of _0x2c4091)_0x19dce6['setAttribute'](_0x124e9e,_0x5c45aa[_0x2f4c22][_0x124e9e],_0x49c7b0);_0x19dce6['remove'](_0x19dce6['createRangeIn'](_0x49c7b0)),_0x19dce6['insert'](_0x2af53c['data']['parse'](_0x47ed49,_0x49c7b0),_0x49c7b0,0x0);}});const _0x757063=g(_0x2af53c['locale'],'Restored');if(_0x479099['name'])_0xafdf38=-0x1==_0x479099['name']['indexOf'](_0x757063)?_0x757063+':\x20'+_0x479099['name']:_0x479099['name'];else _0xafdf38=_0x757063+':\x20'+(_0x479099['createdAt']['toLocaleDateString'](_0x2af53c['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x479099['createdAt']['toLocaleTimeString'](_0x2af53c['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x3ff8be['saveRevision']({'name':_0xafdf38}),_0x3f79a0['isReady']=!0x0,_0x2af53c['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,V as RevisionHistoryUtils,u as RevisionTracker,m as RevisionViewer,w as RevisionViewerEditor,ge as RevisionViewerLoadingOverlay,R as RevisionViewerUI,I as RevisionsRepository,d as RevisionsSidebar};
|