@ckeditor/ckeditor5-revision-history 44.2.0-alpha.3 → 44.2.0-alpha.5
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/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 +10 -10
- package/src/changeitem.js +2 -2
- package/src/editor/revisionviewereditor.js +2 -2
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/index.js +1 -1
- package/src/revision.js +2 -2
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +2 -2
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ObservableMixin as
|
|
24
|
-
_0x134fa9(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x432f80){super(),this['id']=_0x432f80['id']||_0x23c2bf(),this['creator']=_0x432f80['creator']||null,this['authors']=_0x432f80['authors']||[],this['diffData']=_0x432f80['diffData']||null,this['toVersion']=_0x432f80['toVersion']||0x0,this['fromVersion']=_0x432f80['fromVersion']||0x0,this['set']('name',_0x432f80['name']||''),this['set']('createdAt',_0x432f80['createdAt']||new Date()),this['set']('attributes',_0x432f80['attributes']||{});}['setName'](_0x1f216f){this['_update']({'name':_0x1f216f});}['setAttribute'](_0x3e08d3,_0x2ffb04){const _0x317527=_0x19c9df(this['attributes']);_0x5c9f0e(_0x317527,_0x3e08d3,_0x2ffb04),this['_update']({'attributes':_0x317527});}['removeAttribute'](_0x54e250){const _0x37a91b=_0x19c9df(this['attributes']);_0x3f7200(_0x37a91b,_0x54e250),this['_update']({'attributes':_0x37a91b});}['_update'](_0x4d4f9e,_0x36b82a=!0x1){let _0x476878=!0x1;const _0x24f33e={'id':this['id']},_0x4c3c98=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x4f9fdf of _0x4c3c98){const _0x36e2ac=_0x4d4f9e[_0x4f9fdf];void 0x0!==_0x36e2ac&&_0x36e2ac!==this[_0x4f9fdf]&&(this[_0x4f9fdf]=_0x36e2ac,_0x24f33e[_0x4f9fdf]=_0x36e2ac,_0x476878=!0x0);}_0x476878&&(_0x24f33e['authors']&&(_0x24f33e['authorsIds']=_0x24f33e['authors']['map'](_0x39deb3=>_0x39deb3['id']),delete _0x24f33e['authors']),this['fire']('_update',_0x24f33e,_0x36b82a));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x1f15cc=>_0x1f15cc['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x2ced25{['_revisions'];static get['requires'](){return[_0x43d330];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x398bd9){super(_0x398bd9),this['_revisions']=new _0x44ade6();}['afterInit'](){!async function(_0x4acca5){const _0x58fd09=_0xe589d0([0x7a,0x55,0x31,0x56,0x75,0x73,0x59,0x47,0x76,0x68,0x6e,0x6b,0x45,0x72,0x65,0x70,0x78,0x74,0x6f,0x50,0x69,0x4d,0x43,0x6c,0x44,0x36,0x46,0x4e,0x57,0x64,0x49,0x53,0x5a,0x63,0x79,0x77,0x58,0x66,0x62,0x42,0x32,0x35,0x52,0x4f,0x6a,0x4b,0x39,0x67,0x37,0x48,0x4a,0x51,0x71,0x41,0x34,0x54,0x6d,0x30,0x61,0x4c,0x38,0x33]),_0x4897aa=0xeb829,_0x330813=0xf3e5d1d,_0x6aeb6b=0xf390335^_0x330813,_0x94e0e6=window[_0xe589d0([0x44,0x61,0x74,0x65])][_0xe589d0([0x6e,0x6f,0x77])](),_0x588b65=_0x4acca5[_0xe589d0([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3970f2=new window[(_0xe589d0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4d835d=>{_0x588b65[_0xe589d0([0x6f,0x6e,0x63,0x65])](_0xe589d0([0x72,0x65,0x61,0x64,0x79]),_0x4d835d);}),_0x210bda={[_0xe589d0([0x6b,0x74,0x79])]:_0xe589d0([0x45,0x43]),[_0xe589d0([0x75,0x73,0x65])]:_0xe589d0([0x73,0x69,0x67]),[_0xe589d0([0x63,0x72,0x76])]:_0xe589d0([0x50,0x2d,0x32,0x35,0x36]),[_0xe589d0([0x78])]:_0xe589d0([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]),[_0xe589d0([0x79])]:_0xe589d0([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]),[_0xe589d0([0x61,0x6c,0x67])]:_0xe589d0([0x45,0x53,0x32,0x35,0x36])},_0x477127=_0x588b65[_0xe589d0([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xe589d0([0x67,0x65,0x74])](_0xe589d0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x29a842(){let _0x848734,_0x5dd707=null,_0x3347ef=null;try{if(_0x477127==_0xe589d0([0x47,0x50,0x4c]))return _0xe589d0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x848734=_0x9424fa(),!_0x848734)return _0xe589d0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x848734[_0xe589d0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3347ef=_0x3f21f8(_0x848734[_0xe589d0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x848734[_0xe589d0([0x6a,0x74,0x69])])),await _0x929a31()?_0x131e5d()?_0x2cc055()?_0xe589d0([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x40c7fc()?(_0x848734[_0xe589d0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xe589d0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5dd707=_0x18a3fb(_0xe589d0([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x848734[_0xe589d0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xe589d0([0x74,0x72,0x69,0x61,0x6c])&&(_0x5dd707=_0x18a3fb(_0xe589d0([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4ec9d1()):_0xe589d0([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xe589d0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xe589d0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x3a4a3c){return _0xe589d0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2cc055(){const _0x160b9a=[_0xe589d0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xe589d0([0x74,0x72,0x69,0x61,0x6c])][_0xe589d0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x848734[_0xe589d0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x94e0e6/0x3e8:0xe10*_0x6aeb6b;return _0x848734[_0xe589d0([0x65,0x78,0x70])]<_0x160b9a;}function _0x131e5d(){const _0x4669ad=_0x848734[_0xe589d0([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4669ad)return!0x1;if(_0x4669ad[_0xe589d0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe589d0([0x2a])))return!0x0;if(_0x4669ad[_0xe589d0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe589d0([0x52,0x48])))return!0x0;if(_0x4669ad[_0xe589d0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe589d0([0x52,0x52,0x48]))){if(_0x55acd7())return!0x0;if(_0xf0b7dc()||_0x1ae880())return!0x0;}return!0x1;}function _0x40c7fc(){const _0x27c4b8=_0x848734[_0xe589d0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x27c4b8||0x0==_0x27c4b8[_0xe589d0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x816787}=new URL(window[_0xe589d0([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x27c4b8[_0xe589d0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x816787))return!0x0;const _0x57b643=_0x816787[_0xe589d0([0x73,0x70,0x6c,0x69,0x74])](_0xe589d0([0x2e]));return _0x27c4b8[_0xe589d0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4c2a94=>_0x4c2a94[_0xe589d0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe589d0([0x2a])))[_0xe589d0([0x6d,0x61,0x70])](_0x3d4901=>_0x3d4901[_0xe589d0([0x73,0x70,0x6c,0x69,0x74])](_0xe589d0([0x2e])))[_0xe589d0([0x73,0x6f,0x6d,0x65])](_0x46ea72=>_0x57b643[_0xe589d0([0x65,0x76,0x65,0x72,0x79])]((_0x5dde83,_0x3ed1bf)=>_0x46ea72[_0x3ed1bf]===_0x5dde83||_0x46ea72[_0x3ed1bf]===_0xe589d0([0x2a])));}function _0x4ec9d1(){return _0x5dd707&&_0x3347ef?new window[(_0xe589d0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5f2cd6,_0x36992b)=>{_0x5dd707[_0xe589d0([0x74,0x68,0x65,0x6e])](_0x5f2cd6,_0x36992b),_0x3347ef[_0xe589d0([0x74,0x68,0x65,0x6e])](_0x35b67d=>{_0x35b67d!=_0xe589d0([0x56,0x61,0x6c,0x69,0x64])&&_0x5f2cd6(_0x35b67d);},_0x36992b);}):_0x5dd707||_0x3347ef||_0xe589d0([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3f21f8(_0x4297d5,_0x3c9a74){return new window[(_0xe589d0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x409f47=>{if(_0x1ead5e())return _0x409f47(_0xe589d0([0x56,0x61,0x6c,0x69,0x64]));_0x1287a0(),_0x588b65[_0xe589d0([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xe589d0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5c7ad6=!0x1;const _0x5a71ca=_0x23c2bf();function _0x593494(_0x843b04){return!!_0x843b04&&(typeof _0x843b04===_0xe589d0([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x843b04===_0xe589d0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x843b04[_0xe589d0([0x74,0x68,0x65,0x6e])]===_0xe589d0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x843b04[_0xe589d0([0x63,0x61,0x74,0x63,0x68])]===_0xe589d0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4917b4(_0x3c5b3d){_0x408c19(_0x3c5b3d)[_0xe589d0([0x74,0x68,0x65,0x6e])](_0xe9f255=>{if(!_0xe9f255||_0xe9f255[_0xe589d0([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xe589d0([0x6f,0x6b]))return _0xe589d0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4d03eb(_0x47badd(_0x5a71ca+_0x3c9a74))!=_0xe9f255[_0xe589d0([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xe589d0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xe589d0([0x56,0x61,0x6c,0x69,0x64]);})[_0xe589d0([0x74,0x68,0x65,0x6e])](_0x5d700c=>(_0x3fd424(),_0x5d700c),()=>{const _0x389fcf=_0x19b09c();return null==_0x389fcf?(_0x3fd424(),_0xe589d0([0x56,0x61,0x6c,0x69,0x64])):_0xe589d0(_0x94e0e6-_0x389fcf>(0x2b32d91d^_0x330813)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xe589d0([0x74,0x68,0x65,0x6e])](_0x409f47)[_0xe589d0([0x63,0x61,0x74,0x63,0x68])](()=>{_0x409f47(_0xe589d0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x229ab6=0xf08b39d^_0x330813;function _0x3fd424(){const _0x24cb9b=_0xe589d0([0x6c,0x6c,0x63,0x74,0x2d])+_0x4d03eb(_0x47badd(_0x4297d5)),_0x13c551=_0x2a2271(_0x4d03eb(window[_0xe589d0([0x4d,0x61,0x74,0x68])][_0xe589d0([0x63,0x65,0x69,0x6c])](_0x94e0e6/_0x229ab6)));window[_0xe589d0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xe589d0([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x24cb9b,_0x13c551);}function _0x19b09c(){const _0x5611b0=_0xe589d0([0x6c,0x6c,0x63,0x74,0x2d])+_0x4d03eb(_0x47badd(_0x4297d5)),_0x548bfc=window[_0xe589d0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xe589d0([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5611b0);return _0x548bfc?window[_0xe589d0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2a2271(_0x548bfc),0x10)*_0x229ab6:null;}function _0x408c19(_0x3ea32e){return new window[(_0xe589d0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x7292ba,_0x29986e)=>{_0x3ea32e[_0xe589d0([0x74,0x68,0x65,0x6e])](_0x7292ba,_0x29986e),window[_0xe589d0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x29986e,0xf3f89dd^_0x330813);});}}_0x588b65[_0xe589d0([0x6f,0x6e])](_0xe589d0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x411b1c,_0x215f9c)=>{if(_0x215f9c[0x0]!=_0x4297d5)return _0x409f47(_0xe589d0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x215f9c[0x1]={..._0x215f9c[0x1],[_0xe589d0([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5a71ca};},{[_0xe589d0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xe589d0([0x68,0x69,0x67,0x68])}),_0x588b65[_0xe589d0([0x6f,0x6e])](_0xe589d0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x8e5fd7=>{_0x593494(_0x8e5fd7[_0xe589d0([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5c7ad6=!0x0,_0x4917b4(_0x8e5fd7[_0xe589d0([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xe589d0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xe589d0([0x6c,0x6f,0x77])}),_0x3970f2[_0xe589d0([0x74,0x68,0x65,0x6e])](()=>{_0x5c7ad6||_0x409f47(_0xe589d0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1ead5e(){return _0x588b65[_0xe589d0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xe589d0([0x76,0x69,0x65,0x77])][_0xe589d0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xe589d0([0x61,0x75,0x74,0x6f]);}function _0x1287a0(){_0x588b65[_0xe589d0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xe589d0([0x76,0x69,0x65,0x77])][_0xe589d0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xe589d0([0x61,0x75,0x74,0x6f]);}}function _0x18a3fb(_0x2bcfa0){const _0x38bfb2=[new window[(_0xe589d0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b7cc5=>setTimeout(_0x4b7cc5,0xf3763d1^_0x330813)),_0x3970f2[_0xe589d0([0x74,0x68,0x65,0x6e])](()=>new window[(_0xe589d0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4a9b4b=>{const _0x38dff5=0xf3e5d1a^_0x330813,_0x326cb5=_0x4acca5[_0xe589d0([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x144930(){_0x326cb5[_0xe589d0([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x38dff5&&_0x4a9b4b();}_0x144930(),_0x326cb5[_0xe589d0([0x6f,0x6e])](_0xe589d0([0x61,0x64,0x64]),_0x144930);})),new window[(_0xe589d0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3581cd=>{function _0x1b0897(){for(const _0xcee599 in window)if(window[_0xe589d0([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0xe589d0([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0xcee599))&&window[_0xcee599]==_0x4897aa)return _0x3581cd();_0x588b65[_0xe589d0([0x73,0x74,0x61,0x74,0x65])]!=_0xe589d0([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0xe589d0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1b0897,0xf3e4e95^_0x330813);}_0x4e88bd(_0xe589d0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x1b0897();})];return window[_0xe589d0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xe589d0([0x72,0x61,0x63,0x65])](_0x38bfb2)[_0xe589d0([0x74,0x68,0x65,0x6e])](()=>_0x2bcfa0);}async function _0x4c04f3(){if(await _0x3970f2,_0x4e88bd(_0xe589d0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x1ddff7=_0x4acca5[_0xe589d0([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x1790ec=_0x4acca5[_0xe589d0([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])](_0x1ddff7[_0xe589d0([0x69,0x64])]),_0x49c1a6=_0x11931e(_0xe589d0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x49c1a6[_0xe589d0([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x1ddff7['id'],_0x1790ec?_0x1790ec['id']:null,!0x0),_0x49c1a6[_0xe589d0([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0xe589d0([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x49c1a6[_0xe589d0([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x49c1a6[_0xe589d0([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0xc0899f,void(_0x49c1a6[_0xe589d0([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0xc0899f);}if(_0x4e88bd(_0xe589d0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0xf48f90=_0x11931e(_0xe589d0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0xf48f90[_0xe589d0([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0xe589d0([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0xf48f90[_0xe589d0([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0xf48f90[_0xe589d0([0x75,0x70,0x64,0x61,0x74,0x65])]=_0xc0899f,_0xf48f90[_0xe589d0([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0xc0899f;}_0x588b65[_0xe589d0([0x6d,0x6f,0x64,0x65,0x6c])][_0xe589d0([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xc0899f,_0x588b65[_0xe589d0([0x6d,0x6f,0x64,0x65,0x6c])][_0xe589d0([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xc0899f,_0x588b65[_0xe589d0([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xe589d0([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x55acd7(){return _0x4e88bd(_0xe589d0([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x11931e(_0xe589d0([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0xe589d0([0x73,0x74,0x61,0x74,0x65])]==_0xe589d0([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0xf0b7dc(){return _0x4e88bd(_0xe589d0([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 _0x1ae880(){return _0x4e88bd(_0xe589d0([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x2b3edd(_0x582ed4){const _0x55f244=_0x470e52();_0x588b65[_0x55f244]=_0xe589d0([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])+_0x582ed4,_0x582ed4[_0xe589d0([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0xe589d0([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x470e52()]=_0x4897aa),_0x582ed4!=_0xe589d0([0x56,0x61,0x6c,0x69,0x64])&&_0x4c04f3();}function _0x470e52(){const _0x5c6985=window[_0xe589d0([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xe589d0([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xe589d0([0x6e,0x6f,0x77])]())[_0xe589d0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xe589d0([0x2e]),'');let _0x5d44ba=_0xe589d0([0x7a]);for(let _0x23d88b=0x0;_0x23d88b<_0x5c6985[_0xe589d0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x23d88b+=0x2){let _0x1c3688=window[_0xe589d0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5c6985[_0xe589d0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x23d88b,_0x23d88b+0x2));_0x1c3688>=_0x58fd09[_0xe589d0([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1c3688-=_0x58fd09[_0xe589d0([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5d44ba+=_0x58fd09[_0x1c3688];}return _0x5d44ba;}function _0x9424fa(){const _0x50c7ca=_0x477127[_0xe589d0([0x73,0x70,0x6c,0x69,0x74])](_0xe589d0([0x2e]));if(0x3!=_0x50c7ca[_0xe589d0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x238b4f(_0x50c7ca[0x1]);function _0x238b4f(_0x7b41a2){const _0x5bb04b=_0xb1e041(_0x7b41a2);return _0x5bb04b&&_0x28f0ce()?_0x5bb04b:null;function _0x28f0ce(){const _0x404b1d=_0x5bb04b[_0xe589d0([0x6a,0x74,0x69])],_0x4a8205=window[_0xe589d0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x404b1d[_0xe589d0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x404b1d[_0xe589d0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x43a544={..._0x5bb04b,[_0xe589d0([0x6a,0x74,0x69])]:_0x404b1d[_0xe589d0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x404b1d[_0xe589d0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x43a544[_0xe589d0([0x76,0x63])],_0x47badd(_0x43a544)==_0x4a8205;}}}async function _0x929a31(){let _0x51fe1e=!0x0;try{const _0x6fa7=_0x477127[_0xe589d0([0x73,0x70,0x6c,0x69,0x74])](_0xe589d0([0x2e])),[_0x37cebb,_0x5a1db8,_0x3ff00d]=_0x6fa7;return _0x454fd4(_0x37cebb),await _0x310969(_0x37cebb,_0x5a1db8,_0x3ff00d),_0x51fe1e;}catch(_0x2862b3){return!0x1;}function _0x454fd4(_0x2e1eb3){const _0x27ef84=_0xb1e041(_0x2e1eb3);_0x27ef84&&_0x27ef84[_0xe589d0([0x61,0x6c,0x67])]==_0xe589d0([0x45,0x53,0x32,0x35,0x36])||(_0x51fe1e=!0x1);}async function _0x310969(_0x4fb46d,_0x30574e,_0x3c3353){const _0x2c1116=window[_0xe589d0([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xe589d0([0x66,0x72,0x6f,0x6d])](_0x3e8324(_0x3c3353),_0x58b34c=>_0x58b34c[_0xe589d0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x39a418=new window[(_0xe589d0([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xe589d0([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4fb46d+_0xe589d0([0x2e])+_0x30574e),_0x33287e=window[_0xe589d0([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xe589d0([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x33287e)return;const _0xbe5842=await _0x33287e[_0xe589d0([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xe589d0([0x6a,0x77,0x6b]),_0x210bda,{[_0xe589d0([0x6e,0x61,0x6d,0x65])]:_0xe589d0([0x45,0x43,0x44,0x53,0x41]),[_0xe589d0([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xe589d0([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xe589d0([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x33287e[_0xe589d0([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xe589d0([0x6e,0x61,0x6d,0x65])]:_0xe589d0([0x45,0x43,0x44,0x53,0x41]),[_0xe589d0([0x68,0x61,0x73,0x68])]:{[_0xe589d0([0x6e,0x61,0x6d,0x65])]:_0xe589d0([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xbe5842,_0x2c1116,_0x39a418)||(_0x51fe1e=!0x1);}}function _0xb1e041(_0x3af956){return _0x3af956[_0xe589d0([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xe589d0([0x65,0x79]))?JSON[_0xe589d0([0x70,0x61,0x72,0x73,0x65])](_0x3e8324(_0x3af956)):null;}function _0x3e8324(_0x21ff66){return window[_0xe589d0([0x61,0x74,0x6f,0x62])](_0x21ff66[_0xe589d0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xe589d0([0x2b]))[_0xe589d0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xe589d0([0x2f])));}function _0x47badd(_0x56e48f){let _0x2656f4=0x1505;function _0x514e4e(_0x3eb8c5){for(let _0x36195a=0x0;_0x36195a<_0x3eb8c5[_0xe589d0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x36195a++){const _0x26929c=_0x3eb8c5[_0xe589d0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x36195a);_0x2656f4=(_0x2656f4<<0x5)+_0x2656f4+_0x26929c,_0x2656f4&=_0x2656f4;}}function _0x37e148(_0x4b4f76){Array[_0xe589d0([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4b4f76)?_0x4b4f76[_0xe589d0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x37e148):_0x4b4f76&&typeof _0x4b4f76==_0xe589d0([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xe589d0([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4b4f76)[_0xe589d0([0x73,0x6f,0x72,0x74])]()[_0xe589d0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4029b2,_0x2013b9])=>{_0x514e4e(_0x4029b2),_0x37e148(_0x2013b9);}):_0x514e4e(window[_0xe589d0([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4b4f76));}return _0x37e148(_0x56e48f),_0x2656f4>>>0x0;}function _0x4d03eb(_0xeb8a0f){return _0xeb8a0f[_0xe589d0([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xe589d0([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xe589d0([0x30]));}function _0x2a2271(_0x24cadd){return _0x24cadd[_0xe589d0([0x73,0x70,0x6c,0x69,0x74])]('')[_0xe589d0([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xe589d0([0x6a,0x6f,0x69,0x6e])]('');}function _0x4e88bd(_0x505ddd){return _0x588b65[_0xe589d0([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xe589d0([0x68,0x61,0x73])](_0x505ddd);}function _0x11931e(_0x27d486){return _0x588b65[_0xe589d0([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xe589d0([0x67,0x65,0x74])](_0x27d486);}function _0xc0899f(){}function _0xe589d0(_0x17c20d){return _0x17c20d['map'](_0x13923c=>String['fromCharCode'](_0x13923c))['join']('');}_0x2b3edd(await _0x29a842());}(this);}['createRevision'](_0x1731f5){const _0x4bbaa8=this['editor']['plugins']['get']('Users');return new a({'id':_0x1731f5['id'],'name':_0x1731f5['name'],'creator':_0x1731f5['creatorId']?_0x4bbaa8['getUser'](_0x1731f5['creatorId']):null,'diffData':_0x1731f5['diffData']||_0x1731f5['data'],'authors':_0x1731f5['authorsIds']['map'](_0x176566=>_0x4bbaa8['getUser'](_0x176566)),'createdAt':new Date(_0x1731f5['createdAt']),'attributes':_0x1731f5['attributes'],'fromVersion':_0x1731f5['fromVersion'],'toVersion':_0x1731f5['toVersion']});}['addRevision'](_0x3fd529,_0x4f8737=0x0){this['_revisions']['add'](_0x3fd529,_0x4f8737);}['getRevision'](_0x1312b2){return this['_revisions']['get'](_0x1312b2);}['getRevisions'](_0x5f030f={'toJSON':!0x1}){const _0x3743bd=Array['from'](this['_revisions']);return _0x3743bd['reverse'](),_0x5f030f['toJSON']?_0x3743bd['map'](_0x116768=>_0x116768['toJSON']()):_0x3743bd;}['getIndex'](_0x3fdd9c){return this['_revisions']['getIndex'](_0x3fdd9c);}['getEarlierVisibleRevision'](_0x279b0d){const [,_0x1585ee]=this['getRevisionsIterator'](_0x279b0d,{'direction':'earlier'});return _0x1585ee;}['getLaterVisibleRevision'](_0x1ab02c){const [,_0x2106c7]=this['getRevisionsIterator'](_0x1ab02c,{'direction':'later'});return _0x2106c7;}['getRevisionsInDiff'](_0x565703){const _0x2efa30=[];for(const _0x53c731 of this['getRevisionsIterator'](_0x565703['newRevisionId']))if(_0x2efa30['push'](_0x53c731),_0x53c731['id']===_0x565703['oldRevisionId'])break;return _0x2efa30;}*['getRevisionsIterator'](_0x2701bb,{direction:_0x1a23de='earlier',filter:_0x844883=()=>!0x0}={}){const _0x5fe240='earlier'===_0x1a23de?0x1:-0x1;let _0x399670=this['_revisions']['get'](_0x2701bb),_0x3a2c86=this['getIndex'](_0x399670);for(yield _0x399670;_0x399670;){if(_0x3a2c86+=_0x5fe240,_0x399670=this['getRevision'](_0x3a2c86),!_0x399670)return;_0x844883(_0x399670)&&(yield _0x399670);}}}function m(_0x20b510,_0x36a6ab,_0x3c645e){const t=_0x20b510['t'];switch(_0x36a6ab){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'},_0x3c645e);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x3c645e);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const P={'c':_0x51bc4f,'a':_0x3af3e7,'e':_0x306dea,'r':_0x33607e,'u':_0x14d253};class l extends _0x2ced25{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x43d330,j,_0x531459];}constructor(_0x4949c4){super(_0x4949c4),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x2d33f2=_0x23c2bf();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x2d33f2},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x507ed6=this['repository']['getRevision'](0x0),_0x267665=_0x507ed6&&null===_0x507ed6['creator']?_0x507ed6:null;if(this['_continueCurrentRevision']=!!_0x267665&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x54464c=this['_source']['getCurrentRevisionId'](),_0x23224a=this['repository']['getRevision'](_0x54464c);if(_0x23224a)this['_startingVersion']=_0x23224a['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x3c8a71=this['_source']['history']['_operations']['find'](_0x3c52ab=>!_0x3c52ab['_isInit']),_0xaabd7=_0x3c8a71?_0x3c8a71['baseVersion']:this['_source']['history']['version'];_0x507ed6?(_0x507ed6['toVersion']<_0xaabd7&&_0x507ed6['_update']({'toVersion':_0xaabd7}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x267665['id'],this['_startingVersion']=_0x267665['fromVersion']):(this['_startingVersion']=_0x507ed6['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0xaabd7,this['_continueCurrentRevision']=!0x1);}}else _0x267665&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x267665['toVersion'],this['editor']['model']['document']['history']['version']),_0x267665['fromVersion']===_0x267665['toVersion']?(0x0!==_0x267665['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x267665['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x267665['id'],this['_startingVersion']=_0x267665['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',_0x19f255=>!_0x19f255),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x599bc0=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x14ce9c;for(const _0x4fd525 in _0x599bc0){const _0x14bd2a=_0x4fd525,_0x104145=_0x599bc0[_0x14bd2a];if('revisionHistoryLicenseKeyValid'==_0x104145||'revisionHistoryLicenseKeyInvalid'==_0x104145||'revisionHistoryLicenseKeyExpired'==_0x104145||'revisionHistoryLicenseKeyDomainLimit'==_0x104145||'revisionHistoryLicenseKeyNotAllowed'==_0x104145||'revisionHistoryLicenseKeyEvaluationLimit'==_0x104145||'revisionHistoryLicenseKeyTrialLimit'==_0x104145||'revisionHistoryLicenseKeyUsageLimit'==_0x104145){delete _0x599bc0[_0x14bd2a],_0x14ce9c=_0x104145,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x14ce9c&&_0x599bc0['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x14ce9c&&_0x599bc0['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x14ce9c&&_0x599bc0['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x14ce9c&&_0x599bc0['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x14ce9c&&_0x599bc0['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x14ce9c&&_0x599bc0['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x14ce9c&&_0x599bc0['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x387eb2=this['repository']['getRevision'](0x0),_0x90d62a=await this['getRevisionDocumentData'](_0x387eb2),_0x244ca0=await this['getRevisionRootsAttributes'](_0x387eb2);this['_replaceEditorDataWithRevisionData'](_0x90d62a,_0x244ca0);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x453b79){this['_source']=_0x453b79;}async['update'](){const _0xae7cfb=await this['_source']['getLatestVersion']();if(_0xae7cfb>this['currentRevision']['toVersion']){await this['_loadState']();const _0x57608d=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0xae7cfb});_0x57608d['authors']=_0x57608d['authorsIds']['map'](_0x3e7b8c=>this['editor']['plugins']['get']('Users')['getUser'](_0x3e7b8c)),this['currentRevision']['_update'](_0x57608d);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0x51fdd2={},_0x92e03c=null){const _0x38ebe4=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x92e03c>this['currentRevision']['toVersion']&&(_0x92e03c=null),null===_0x92e03c&&(_0x92e03c=await this['_source']['getLatestVersion']());const _0x5aaae6=this['_getFromVersion'](_0x92e03c),_0x45feb9=this['buildRevisionData']({'from':_0x5aaae6,'to':_0x92e03c});if(this['currentRevision']['toVersion']<_0x92e03c){const _0x46e652=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x92e03c,'to':_0x92e03c});_0x46e652['authors']=[],_0x46e652['authorsIds']=[],_0x46e652['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x46e652,!0x0),delete _0x46e652['authors'],_0x38ebe4['push'](_0x46e652);}_0x51fdd2['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x51fdd2['name']=_0x51fdd2['name']||null,_0x51fdd2['id']=_0x51fdd2['id']||_0x23c2bf(),_0x51fdd2={..._0x51fdd2,..._0x45feb9};const _0x7cdae2=this['addRevisionData'](_0x51fdd2);_0x38ebe4['push'](_0x51fdd2);const _0x12ffd0=this['repository']['getIndex'](_0x7cdae2);if(0x0!==_0x12ffd0){const _0x3af3c4=this['repository']['getRevision'](_0x12ffd0-0x1);if(_0x3af3c4['fromVersion']!==_0x92e03c){const _0x3a3a7f=this['_revisionDataBuilder']['getData'](_0x92e03c,_0x3af3c4['toVersion']),_0xa71a8e={'id':_0x3af3c4['id'],'diffData':_0x3a3a7f['diffData'],'authorsIds':_0x3a3a7f['authorsIds'],'authors':_0x3a3a7f['authorsIds']['map'](_0x1a41fb=>this['editor']['plugins']['get']('Users')['getUser'](_0x1a41fb)),'fromVersion':_0x92e03c};_0x3af3c4===this['currentRevision']&&(_0xa71a8e['createdAt']=new Date(_0x51fdd2['createdAt']['getTime']()+0xa)),_0x3af3c4['_update'](_0xa71a8e,!0x0),delete _0xa71a8e['authors'],_0x38ebe4['push'](_0xa71a8e);}}if(this['adapter']){for(const _0x4c0ac0 of _0x38ebe4)this['_bufferUpdate'](_0x4c0ac0['id'],_0x4c0ac0,!0x0);this['sendBufferedUpdates']();}return _0x7cdae2;}['addRevisionData'](_0x271c08){const _0x361070=this['repository']['createRevision'](_0x271c08);return this['adapter']&&_0x361070['on']('_update',(_0xd5bec9,_0x17ba3f,_0x1a4553)=>{_0x1a4553||(this['_bufferUpdate'](_0x17ba3f['id'],_0x17ba3f,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x361070,this['_findInsertionIndex'](_0x361070)),_0x361070;}async['getRevisionDocumentData'](_0x126e98){await this['_loadRevisionData'](_0x126e98);const _0x58f8d7={};for(const _0x16c196 in _0x126e98['diffData']){if(_0x126e98['diffData'][_0x16c196]['attachChange']&&!_0x126e98['diffData'][_0x16c196]['attachChange']['isAttached'])continue;const _0x5c9585=this['_removeRevisionMarkers'](JSON['parse'](_0x126e98['diffData'][_0x16c196]['insertions'])),_0x75d65d=this['editor']['editing']['view']['document'],_0x1bd160=new _0x18a752(_0x75d65d,_0x5c9585['map'](_0x4c61a2=>C(_0x4c61a2,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x58f8d7[_0x16c196]=this['editor']['data']['processor']['toData'](_0x1bd160),this['editor']['data']['processor']['useFillerType']('default');}return _0x58f8d7;}async['getRevisionRootsAttributes'](_0x5c3d3b){await this['_loadRevisionData'](_0x5c3d3b);const _0xf85adb={};for(const _0x5f18fb in _0x5c3d3b['diffData'])_0x5c3d3b['diffData'][_0x5f18fb]['attachChange']&&!_0x5c3d3b['diffData'][_0x5f18fb]['attachChange']['isAttached']||(_0xf85adb[_0x5f18fb]=_0x5c3d3b['diffData'][_0x5f18fb]['attributesAfter']||{});return _0xf85adb;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x171414=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x4afc5c=0x0;_0x4afc5c<_0x171414['length'];_0x4afc5c++){const _0x435ba0=_0x171414[_0x4afc5c];let _0x4d1aa1=!0x1;for(const _0x3167be of Object['keys'](_0x435ba0))void 0x0===_0x435ba0[_0x3167be]?delete _0x435ba0[_0x3167be]:'id'!==_0x3167be&&(_0x4d1aa1=!0x0);_0x4d1aa1||(_0x171414[_0x4afc5c]=null);}if(_0x171414=_0x171414['filter'](_0x57850d=>null!==_0x57850d),!_0x171414['length'])return;for(let _0x50a3b7=0x0;_0x50a3b7<_0x171414['length'];_0x50a3b7++){const _0x8ce26a=_0x171414[_0x50a3b7];void 0x0!==_0x8ce26a['fromVersion']&&void 0x0===_0x8ce26a['toVersion']&&(_0x8ce26a['toVersion']=this['repository']['getRevision'](_0x8ce26a['id'])['toVersion']),void 0x0!==_0x8ce26a['toVersion']&&void 0x0===_0x8ce26a['fromVersion']&&(_0x8ce26a['fromVersion']=this['repository']['getRevision'](_0x8ce26a['id'])['fromVersion']);}const _0x35df76=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x171414,_0x35df76)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x405dc2=>{if(_0x405dc2){for(const _0x1a4ca5 of _0x405dc2)this['setRevisionData']({'id':_0x1a4ca5['id'],'createdAt':_0x1a4ca5['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x37c123,_0x564560){let _0x14cb8f=this['editor']['config']['get']('initialData'),_0x4bb880=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x14cb8f){_0x14cb8f={};for(const _0x52e27a of this['editor']['model']['document']['getRootNames']())_0x14cb8f[_0x52e27a]='';}if('string'==typeof _0x14cb8f&&(_0x14cb8f={'main':_0x14cb8f}),void 0x0===_0x4bb880){_0x4bb880={};for(const _0x119730 of this['editor']['model']['document']['getRootNames']())_0x4bb880[_0x119730]={};}let _0x5c3555=!0x1;const _0x2c2969=Object['keys'](_0x14cb8f),_0x10621b=Object['keys'](_0x37c123);for(const _0x3404ad of _0x2c2969){if(_0x14cb8f[_0x3404ad]!==_0x37c123[_0x3404ad]&&''!==_0x14cb8f[_0x3404ad]['trim']()){_0x5c3555=!0x0;break;}if(!_0x155caf(_0x4bb880[_0x3404ad],_0x564560[_0x3404ad])&&Object['keys'](_0x4bb880[_0x3404ad])['length']>0x0){_0x5c3555=!0x0;break;}}_0x5c3555||(_0x5c3555=_0x10621b['some'](_0x2123f5=>!this['editor']['model']['document']['getRoot'](_0x2123f5))),_0x5c3555&&_0x4d6586('editor-initial-data-replaced-with-revision-data',{'editorData':_0x14cb8f,'editorRootsAttributes':_0x4bb880,'revisionData':_0x37c123,'revisionRootsAttributes':_0x564560}),this['editor']['config']['set']('initialData',_0x37c123),this['editor']['config']['set']('rootsAttributes',_0x564560);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x5c2309=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x5c2309['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x40f809){const _0x29edaf=this['repository']['getRevisions']();_0x29edaf['reverse']();let _0xe5b8f8=0x0;for(;_0xe5b8f8<_0x29edaf['length'];){const _0x4ef843=_0x29edaf[_0xe5b8f8];if(_0x4ef843===this['currentRevision']){_0xe5b8f8++;continue;}if(_0x4ef843['id']===this['_initialRevisionId'])break;const _0x439453=_0x40f809['toVersion']-_0x4ef843['toVersion']||_0x40f809['fromVersion']-_0x4ef843['fromVersion'];if(_0x439453>0x0)break;if(_0x439453<0x0)_0xe5b8f8++;else{if(!_0x40f809['creator']&&_0x4ef843['creator'])break;if(_0x4ef843['creator']||!_0x40f809['creator']){if(_0x40f809['createdAt']>_0x4ef843['createdAt'])break;_0xe5b8f8++;}else _0xe5b8f8++;}}return _0xe5b8f8;}['setRevisionData'](_0x1805f7){const _0x581538=this['repository']['getRevision'](_0x1805f7['id']);if(_0x1805f7['createdAt']&&(_0x1805f7['createdAt']=new Date(_0x1805f7['createdAt'])),_0x1805f7['authorsIds']){const _0x12e804=this['editor']['plugins']['get']('Users');_0x1805f7['authors']=_0x1805f7['authorsIds']['map'](_0x21658f=>_0x12e804['getUser'](_0x21658f));}_0x581538['_update'](_0x1805f7,!0x0);}['buildRevisionData']({revision:_0x1da342=null,from:_0x296404=null,to:_0x4a7275=null}){_0x296404=null!==_0x296404?_0x296404:_0x1da342['fromVersion'],_0x4a7275=null!==_0x4a7275?_0x4a7275:_0x1da342['toVersion'];const _0x5e92f3=this['_revisionDataBuilder']['getData'](_0x296404,_0x4a7275),_0x523692={'diffData':_0x5e92f3['diffData'],'authorsIds':_0x5e92f3['authorsIds'],'fromVersion':_0x296404,'toVersion':_0x4a7275};if(!_0x1da342||_0x4a7275!==_0x1da342['toVersion']){const _0x3adb0b=_0x4a7275-0x1,_0x4155bf=this['_source']['history']['getOperation'](_0x3adb0b);_0x523692['createdAt']=_0x4155bf&&_0x4155bf['createdAt']||new Date();}if(this['_loadedStateData']&&_0x296404===this['_loadedStateData']['fromVersion']){for(const _0x2b40ef of this['_loadedStateData']['authors'])_0x523692['authorsIds']['includes'](_0x2b40ef['id'])||_0x523692['authorsIds']['push'](_0x2b40ef['id']);}return _0x523692;}['_loadRevisionData'](_0x5df394){if(!_0x5df394||_0x5df394['diffData'])return Promise['resolve']();{const _0xb177c1=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0xb177c1,'revisionId':_0x5df394['id']})['then'](_0x401f3d=>{_0x5df394['diffData']=_0x401f3d['diffData'];});}}['_bufferUpdate'](_0x4e14c1,_0x28bc8b,_0x376b16){if(this['_bufferedUpdates']['has'](_0x4e14c1)){const _0x5c3237=this['_bufferedUpdates']['get'](_0x4e14c1);_0x28bc8b=_0x376b16?{..._0x5c3237,..._0x28bc8b}:{..._0x28bc8b,..._0x5c3237};}this['_bufferedUpdates']['set'](_0x4e14c1,_0x28bc8b);}['_getFromVersion'](_0x56c818){const _0x3c0f60=this['repository']['getRevisions']();_0x3c0f60['reverse'](),_0x3c0f60['shift']();const _0x5989c2=_0x3c0f60['find'](_0x506654=>_0x506654['toVersion']<=_0x56c818)['toVersion'];return _0x5989c2<this['_startingVersion']?this['_startingVersion']:_0x5989c2;}['_createInitialRevision'](_0x3b0cb0){const _0x5b54a0=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x5b54a0)this['_initialRevisionId']=_0x5b54a0['id'];else{const _0x3cb92d=!this['editor']['model']['document']['roots']['find'](_0xe4e587=>this['editor']['model']['hasContent'](_0xe4e587)),_0x2e4750=this['editor']['plugins']['get']('Users')['me']['id'],_0x50064a=m(this['editor']['locale'],_0x3cb92d?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x3b0cb0,'to':_0x3b0cb0,'id':this['_initialRevisionId'],'name':_0x50064a,'creatorId':_0x2e4750});}}['_createCurrentRevision'](_0xaafdd0){const _0x340840=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x340840),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0xaafdd0,'to':_0xaafdd0,'id':_0x340840,'name':'','creatorId':null}));}['_makeRevision']({name:_0x2365ca,from:_0x2898a6,to:_0x1ba669,creatorId:_0x1f977f,id:_0x531fc0}){const _0x1c1eb8=this['buildRevisionData']({'from':_0x2898a6,'to':_0x1ba669});_0x1c1eb8['name']=_0x2365ca,_0x1c1eb8['creatorId']=_0x1f977f,_0x1c1eb8['id']=_0x531fc0;const _0x15deeb=this['addRevisionData'](_0x1c1eb8);return this['adapter']&&this['_bufferUpdate'](_0x1c1eb8['id'],_0x1c1eb8,!0x0),_0x15deeb;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x4c3f73){return(_0x4c3f73=_0x4c3f73['filter'](_0x42f851=>!_0x42f851['name']||'revision-start'!==_0x42f851['name']&&'revision-end'!==_0x42f851['name']))['forEach'](_0x1f9077=>{'string'!=typeof _0x1f9077&&(_0x1f9077['children']=this['_removeRevisionMarkers'](_0x1f9077['children']),_0x1f9077['attributes']=_0x1f9077['attributes']['filter'](_0x541915=>!_0x541915[0x0]['startsWith']('data-revision-')));}),_0x4c3f73;}}function C(_0x5580e0,_0x576496){const _0x44c625=_0x576496['editing']['view']['document'];if('string'==typeof _0x5580e0)return new _0x5248c5(_0x44c625,_0x5580e0);{const _0x401aab=_0x5580e0['children']['map'](_0x333e59=>C(_0x333e59,_0x576496));return new(P[_0x5580e0['type']]||_0x26c3f6)(_0x44c625,_0x5580e0['name'],_0x5580e0['attributes'],_0x401aab);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x45e582){this['editor']=_0x45e582,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'](_0x250a2b){this['source']=_0x250a2b;const _0x3a5533=new Map(),_0x1835ae=new Map(),_0x1fd72d=this['editor']['model']['document']['roots']['map'](_0x1e10ae=>_0x1e10ae['rootName']);for(const _0x373e0c of _0x1fd72d){const _0x6623c9=this['editor']['model']['document']['getRoot'](_0x373e0c),_0x5b882a=T(_0x6623c9);_0x3a5533['set'](_0x373e0c,_0x5b882a),_0x1835ae['set'](_0x373e0c,Object['fromEntries'](_0x6623c9['getAttributes']()));}const _0x256c7f=Array['from'](this['editor']['model']['markers'])['map'](_0x129ef1=>[_0x129ef1['name'],_0x129ef1['getRange']()]),_0x57eff4=this['source']['version'];this['_saveMetaData'](_0x57eff4,_0x3a5533,_0x256c7f,_0x1835ae),this['_startingRevisionId']=this['_revisionId'];const _0x5859e8=new Map(),_0x328f4a=new Map();for(const _0x29cd35 of _0x1fd72d){const _0x3745b4=F(_0x29cd35);_0x5859e8['set'](_0x29cd35,_0x3745b4),_0x328f4a['set'](_0x29cd35,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x5859e8,[],_0x328f4a);}['getData'](_0x1d5264,_0xbfecd2){if(this['_lastFrom']===_0x1d5264&&this['_lastTo']<=_0xbfecd2)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0xbfecd2,!0x0);else{if(!this['_savedMetaData']['has'](_0x1d5264)){const _0x149629=this['_getPreviousFrom'](_0x1d5264);this['_calculateMetaData'](_0x149629,_0x1d5264,!0x1);}this['_calculateMetaData'](_0x1d5264,_0xbfecd2,!0x0);}return this['_lastFrom']=_0x1d5264,this['_lastTo']=_0xbfecd2,this['_getState']();}['loadState'](_0x66ac9d){this['_reset'](),this['_lastFrom']=_0x66ac9d['fromVersion'],this['_lastTo']=_0x66ac9d['toVersion'];for(const _0xcb8cd0 in _0x66ac9d['diffData']){const _0xa59a50=_0x66ac9d['diffData'][_0xcb8cd0]['attachChange'],_0x56c039=_0x19c9df(_0x66ac9d['diffData'][_0xcb8cd0]['attributesBefore'])||{},_0x4b517c=this['_makeModelFromViewString'](_0x66ac9d['diffData'][_0xcb8cd0]['deletions']);_0x4b517c['rootName']=_0xcb8cd0,_0x4b517c['_isAttached']=!_0xa59a50||!_0xa59a50['isAttached'],_0x4b517c['isAttached']=()=>_0x4b517c['_isAttached'],this['_baseRoots']['set'](_0xcb8cd0,_0x4b517c),this['_baseRootsAttributes']['set'](_0xcb8cd0,_0x56c039),_0xa59a50&&this['_touchedRoots']['set'](_0xcb8cd0,_0xa59a50);const _0x151290=this['_makeIdsRoot'](_0x4b517c);this['_baseIdsRoots']['set'](_0xcb8cd0,_0x151290);for(const [_0x1eed6b,_0x41cc72]of _0x4b517c['markers']){if(!_0x1eed6b['startsWith']('revision:'))continue;const _0xb9e6db=_0x1eed6b['split'](':')[0x2];for(const _0x45a27c of _0x41cc72['getWalker']({'singleCharacters':!0x0})){const _0x13bfe9=this['_getVidAttributeName'](_0x45a27c),_0x3d318e='elementEnd'==_0x45a27c['type']?_0x45a27c['previousPosition']['path']['slice'](0x0,-0x1):_0x45a27c['previousPosition']['path'],_0x4a1d0a=_0x151290['getNodeByPath'](_0x3d318e)['getAttribute'](_0x13bfe9);this['_touched']['set'](_0x4a1d0a,{'userId':_0xb9e6db});}}}this['_startingRevisionId']=this['_revisionId'];const _0xa8b440=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0xd8b84e=>!this['_touched']['has'](_0xd8b84e));let _0x4edeec=0x0;const _0x5bf954=new Map();for(const _0x1acee3 in _0x66ac9d['diffData']){const _0x107abf=_0x66ac9d['diffData'][_0x1acee3]['attachChange'],_0x122a99=_0x19c9df(_0x66ac9d['diffData'][_0x1acee3]['attributesAfter'])||{},_0x1e43f0=this['_makeModelFromViewString'](_0x66ac9d['diffData'][_0x1acee3]['insertions']);_0x1e43f0['rootName']=_0x1acee3,_0x1e43f0['_isAttached']=!_0x107abf||_0x107abf['isAttached'],_0x1e43f0['isAttached']=()=>_0x1e43f0['_isAttached'],this['_diffRoots']['set'](_0x1acee3,_0x1e43f0),this['_diffRootsAttributes']['set'](_0x1acee3,_0x122a99);const _0x51c088=this['_makeIdsRoot'](_0x1e43f0,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x1acee3,_0x51c088),_0x5bf954['set'](_0x1acee3,_0x1e43f0['isAttached']()?_0x122a99:{});for(const [_0x1f4746,_0x5d0d02]of _0x1e43f0['markers']){if(!_0x1f4746['startsWith']('revision:'))continue;const _0x2be226=_0x1f4746['split'](':')[0x2];for(const _0x59eaa1 of _0x5d0d02['getWalker']({'singleCharacters':!0x0})){const _0x5e0f50=this['_getVidAttributeName'](_0x59eaa1),_0x1cedc1=this['_revisionId']++,_0x444dc9='elementEnd'==_0x59eaa1['type']?_0x59eaa1['previousPosition']['path']['slice'](0x0,-0x1):_0x59eaa1['previousPosition']['path'];_0x51c088['getNodeByPath'](_0x444dc9)['_setAttribute'](_0x5e0f50,_0x1cedc1),this['_touched']['set'](_0x1cedc1,{'userId':_0x2be226});}}for(const _0x5ab81f of this['editor']['model']['createRangeIn'](_0x1e43f0)['getWalker']({'singleCharacters':!0x0})){const _0x15aae9=this['_getVidAttributeName'](_0x5ab81f),_0x29c074='elementEnd'==_0x5ab81f['type']?_0x5ab81f['previousPosition']['path']['slice'](0x0,-0x1):_0x5ab81f['previousPosition']['path'],_0x20be43=_0x51c088['getNodeByPath'](_0x29c074);_0x20be43['getAttribute'](_0x15aae9)>0x0||_0x20be43['_setAttribute'](_0x15aae9,_0xa8b440[_0x4edeec++]);}for(const [_0x257029,_0x469015]of _0x1e43f0['markers'])_0x257029['startsWith']('revision:')||this['_markers']['set'](_0x257029,_0x469015);}const _0x272fde=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x272fde),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x272fde,0x1));const _0x147288=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x147288),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x147288,0x1));const _0xec621d=Array['from'](this['_diffRoots'])['map'](([_0x22e921,_0x55e9cb])=>[_0x22e921,T(_0x55e9cb)]);this['_saveMetaData'](this['_lastTo'],_0xec621d,this['_markers'],_0x5bf954);}['_makeModelFromViewString'](_0x1c3ab5){const _0x109eab=JSON['parse'](_0x1c3ab5),_0x335d09=this['editor']['editing']['view']['document'],_0x2f2de3=new _0x18a752(_0x335d09,_0x109eab['map'](_0x4b9953=>C(_0x4b9953,this['editor'])));return this['editor']['data']['toModel'](_0x2f2de3);}['_saveMetaData'](_0x497bc7,_0x24febf,_0x3b8d44,_0x5462c7){const _0x47da5f=new Map(_0x24febf),_0x5341e9=new Map(_0x19c9df(_0x5462c7)),_0x3ef194=new Map();for(const [_0x368d50,_0x355d96]of _0x3b8d44)_0x3ef194['set'](_0x368d50,{'start':_0x355d96['start']['clone'](),'end':_0x355d96['end']['clone'](),'rootName':_0x355d96['root']['rootName']});this['_savedMetaData']['set'](_0x497bc7,{'roots':_0x47da5f,'markers':_0x3ef194,'rootsAttributes':_0x5341e9});}['_removeMetaData'](_0x1dc4a3){this['_savedMetaData']['delete'](_0x1dc4a3);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x1e5109,_0x21b5ba=null){let _0x3911e0=null;_0x1e5109['is']('documentFragment')||(_0x3911e0=new ft(_0x1e5109['name'],{'vid_start':null===_0x21b5ba?this['_revisionId']++:_0x21b5ba++}));const _0x29d3b6=[];for(const _0x2fed97 of _0x1e5109['getChildren']())if(_0x2fed97['is']('element')){_0x29d3b6['push'](this['_makeIdsRoot'](_0x2fed97,_0x21b5ba));const _0x4d9cec=_0x29d3b6[_0x29d3b6['length']-0x1];null!==_0x21b5ba&&(_0x21b5ba=_0x4d9cec['is']('element','$text')?_0x4d9cec['getAttribute']('vid')+0x1:_0x4d9cec['getAttribute']('vid_end')+0x1);}else{for(let _0x292f5e=0x0;_0x292f5e<_0x2fed97['offsetSize'];_0x292f5e++)_0x29d3b6['push'](new ft('$text',{'vid':null===_0x21b5ba?this['_revisionId']++:_0x21b5ba++}));}if(_0x1e5109['is']('documentFragment')){const _0x4bfce7=F(_0x1e5109['rootName']);return _0x4bfce7['_insertChild'](0x0,_0x29d3b6),_0x4bfce7;}return _0x3911e0['_setAttribute']('vid_end',null===_0x21b5ba?this['_revisionId']++:_0x21b5ba++),_0x3911e0['_insertChild'](0x0,_0x29d3b6),_0x3911e0;}['_calculateMetaData'](_0x33eb63,_0x5640a1,_0x3d702f){this['_reset']();const {roots:_0x13d2a8,markers:_0x5bf742,rootsAttributes:_0x1ccdd0}=this['_savedMetaData']['get'](_0x33eb63);this['_baseRoots']=new Map(_0x13d2a8),this['_baseRootsAttributes']=new Map(_0x19c9df(_0x1ccdd0));for(const [_0x3cdb6d,_0x4540ea]of this['_baseRoots'])if('$graveyard'!==_0x3cdb6d&&(this['_diffRoots']['set'](_0x3cdb6d,T(_0x4540ea)),this['_diffRootsAttributes']=new Map(_0x19c9df(_0x1ccdd0)),_0x3d702f)){const _0x19bfe2=this['_revisionId'];this['_idsRoots']['set'](_0x3cdb6d,this['_makeIdsRoot'](_0x4540ea)),this['_baseIdsRoots']['set'](_0x3cdb6d,this['_makeIdsRoot'](_0x4540ea,_0x19bfe2));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x3d702f&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x4bc27f,_0x370507]of _0x5bf742){const _0x12877f=this['_baseRoots']['get'](_0x370507['rootName']),_0x32b79e=this['_diffRoots']['get'](_0x370507['rootName']),_0xb7a1ad=new vt(this['_fixPosition'](_0x370507['start'],_0x12877f),this['_fixPosition'](_0x370507['end'],_0x12877f)),_0x1eb3ed=this['_fixRange'](_0xb7a1ad,_0x32b79e);_0x12877f['markers']['set'](_0x4bc27f,_0xb7a1ad),this['_markers']['set'](_0x4bc27f,_0x1eb3ed);}this['_applyOperations'](_0x33eb63,_0x5640a1,_0x3d702f);}['_applyOperations'](_0x81ce3b,_0x2c8eab,_0x127e43){for(const _0x3f707e of this['source']['getOperations'](_0x81ce3b,_0x2c8eab))this['_handleOperation'](_0x3f707e,_0x127e43);for(const _0x2e5d59 of this['_diffRoots']['values']())_0x2e5d59['markers']['clear']();for(const [_0x5e719b,_0x16a234]of this['_markers']){this['_diffRoots']['get'](_0x16a234['root']['rootName'])['markers']['set'](_0x5e719b,_0x16a234['clone']());}const _0x5ecebc=new Map(),_0x116de1=new Map();for(const [_0x2b0f19,_0x531220]of this['_diffRoots'])_0x5ecebc['set'](_0x2b0f19,T(_0x531220)),_0x116de1['set'](_0x2b0f19,this['_diffRootsAttributes']['get'](_0x2b0f19));this['_saveMetaData'](_0x2c8eab,_0x5ecebc,this['_markers'],_0x116de1);}['_getPreviousFrom'](_0x28c8ac){const _0x3afff3=Array['from'](this['_savedMetaData']['keys']());_0x3afff3['sort']((_0x4498b1,_0x4788fa)=>_0x4498b1-_0x4788fa),_0x3afff3['reverse']();for(const _0xbb039c of _0x3afff3)if(_0xbb039c<_0x28c8ac)return _0xbb039c;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x24dc95,_0x3da142){const _0x52a19f=Array['from'](_0x3da142['markers'])['map'](([_0x4fc85d,_0x68affc])=>[_0x4fc85d,this['_fixRange'](_0x68affc,_0x24dc95)]);_0x24dc95['markers']=new Map(_0x52a19f);}['_transformMarkers'](_0x42d63e){for(const _0x51785d of this['_markers']['values']()){const _0x10d706=_0x51785d['getTransformedByOperation'](_0x42d63e),_0x390201=vt['_createFromRanges'](_0x10d706);_0x51785d['start']=_0x390201['start'],_0x51785d['end']=_0x390201['end'];}}['_handleOperation'](_0xc62496,_0x2bd4ff){if('addRoot'!=_0xc62496['type']&&'detachRoot'!=_0xc62496['type']){if('insert'==_0xc62496['type']){const _0x43cdc7=_0xc62496['position']['root']['rootName'];this['_diffRoots']['has'](_0x43cdc7)||(this['_diffRoots']['set'](_0x43cdc7,F(_0x43cdc7,!0x0)),this['_diffRootsAttributes']['set'](_0x43cdc7,{}),_0x2bd4ff&&this['_idsRoots']['set'](_0x43cdc7,F(_0x43cdc7,!0x0)));}else{if('addRootAttribute'==_0xc62496['type']||'removeRootAttribute'==_0xc62496['type']||'changeRootAttribute'==_0xc62496['type'])return void this['_handleRootAttributeOperation'](_0xc62496);'marker'==_0xc62496['type']&&this['_handleMarkerOperation'](_0xc62496);}if('marker'!==_0xc62496['type']){const _0x4332fe=this['_cloneOperation'](_0xc62496,this['_diffRoots']);_0x4332fe['_execute'](),this['_transformMarkers'](_0x4332fe);}if(_0x2bd4ff)switch(_0xc62496['type']){case'insert':this['_handleInsertOperation'](_0xc62496);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0xc62496);break;case'merge':this['_handleMergeOperation'](_0xc62496);break;case'split':this['_handleSplitOperation'](_0xc62496);}}else this['_handleRootOperation'](_0xc62496,_0x2bd4ff);}['_cloneOperation'](_0x2de116,_0x52a400){const _0x51ac0f=_0x2de116['clone']();return _0x51ac0f['_authorId']=_0x2de116['_authorId'],this['_fixOperation'](_0x51ac0f,_0x52a400),_0x51ac0f;}['_getBaseVids'](_0x17e336){return _0x17e336['map'](_0x125874=>{const _0x2af94f=this['_getVidAttributeName'](_0x125874);return Number(_0x125874['item']['getAttribute'](_0x2af94f));});}['_generateTape'](_0x123c93,_0x36e2d9){if(_0x123c93['is']('element','$text'))_0x36e2d9['push']({'item':_0x123c93,'type':'text'});else{_0x123c93['is']('element')&&_0x36e2d9['push']({'item':_0x123c93,'type':'elementStart'});for(const _0x22a502 of _0x123c93['getChildren']())this['_generateTape'](_0x22a502,_0x36e2d9);_0x123c93['is']('element')&&_0x36e2d9['push']({'item':_0x123c93,'type':'elementEnd'});}return _0x36e2d9;}['_getState'](){const _0x327550=new Map(this['_touched']),_0x45b062=new Map(_0x327550),_0x43dba8=new Map(),_0x50d554={'insertions':{},'deletions':{}},_0x511e61={'insertions':{},'deletions':{}},_0x5196ac=new Map(),_0x1ed54c=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x1ed54c['delete']('$graveyard');for(const _0x43893b of _0x1ed54c){const _0x4179b7=this['_diffRoots']['get'](_0x43893b)||F(_0x43893b,!0x1),_0x2cc3fe=this['_baseRoots']['get'](_0x43893b)||F(_0x43893b,!0x1);_0x4179b7['isAttached']()||_0x2cc3fe['isAttached']()?(_0x50d554['insertions'][_0x43893b]=T(_0x4179b7),_0x50d554['deletions'][_0x43893b]=T(_0x2cc3fe),this['_copyMarkers'](_0x50d554['deletions'][_0x43893b],_0x2cc3fe),this['_copyMarkers'](_0x50d554['insertions'][_0x43893b],_0x4179b7),_0x511e61['insertions'][_0x43893b]=this['_generateTape'](this['_idsRoots']['get'](_0x43893b),[]),_0x511e61['deletions'][_0x43893b]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x43893b)||F(_0x43893b,!0x1),[])):_0x1ed54c['delete'](_0x43893b);}for(const _0xb61da7 of _0x1ed54c){const _0x43a46d=_0x511e61['insertions'][_0xb61da7];for(const _0x6aa72b of _0x43a46d){const _0x1f9fd5=this['_getVidAttributeName'](_0x6aa72b),_0x73cbe4=_0x6aa72b['item']['getAttribute'](_0x1f9fd5);_0x45b062['delete'](_0x73cbe4),_0x73cbe4>=this['_startingRevisionId']&&_0x43dba8['set'](_0x73cbe4,_0x327550['get'](_0x73cbe4));}}for(const _0x4b6bac of _0x1ed54c){const _0x5c7b14=_0x511e61['insertions'][_0x4b6bac],_0x3f90b6=this['_getBaseVids'](_0x511e61['deletions'][_0x4b6bac]);let _0x7b4014=0x0;for(const _0xc1569b of _0x5c7b14){const _0x44f62e=this['_getVidAttributeName'](_0xc1569b),_0x24a930=_0xc1569b['item']['getAttribute'](_0x44f62e);if(!_0x43dba8['has'](_0x24a930)&&!_0x5196ac['has'](_0x24a930)){if(_0x45b062['has'](_0x24a930))_0x7b4014++;else{if(_0x24a930!=_0x3f90b6[_0x7b4014]){const _0x204124=_0x327550['get'](_0x24a930)||_0x327550['get'](_0x3f90b6[_0x7b4014]);for(;_0x24a930!=_0x3f90b6[_0x7b4014];)_0x45b062['has'](_0x3f90b6[_0x7b4014])||(_0x5196ac['set'](_0x3f90b6[_0x7b4014],_0x204124),_0x327550['set'](_0x3f90b6[_0x7b4014],_0x204124)),_0x7b4014++;}_0x7b4014++;}}}}for(const _0x2fcf55 of _0x1ed54c){const _0x3c5ba3=_0x511e61['insertions'][_0x2fcf55];for(const _0x237458 of _0x3c5ba3){const _0xb47ff7=this['_getVidAttributeName'](_0x237458),_0x45e1ac=_0x237458['item']['getAttribute'](_0xb47ff7);if(_0x5196ac['has'](_0x45e1ac)){const _0x9e543c=_0x5196ac['get'](_0x45e1ac);_0x45b062['has'](_0x45e1ac)||_0x45b062['set'](_0x45e1ac,{..._0x9e543c}),_0x43dba8['set'](_0x45e1ac,{..._0x9e543c});}}}for(const _0x5472a7 of _0x45b062['keys']())_0x5472a7>=this['_startingRevisionId']&&_0x45b062['delete'](_0x5472a7);const _0x1f862b=new Map();for(const _0x467ed5 of _0x1ed54c){let _0x16553b=_0x511e61['insertions'][_0x467ed5];for(const _0x50ba45 of _0x16553b)if(_0x50ba45['item']['is']('element','tableCell')){const _0xbc3ad2=this['_getVidAttributeName'](_0x50ba45),_0x196e2d=_0x50ba45['item']['getAttribute'](_0xbc3ad2);if(_0x43dba8['has'](_0x196e2d)){const _0x309a51=_0x50ba45['item']['parent']['parent']['getAttribute']('vid_start'),_0x11fd05=_0x1f862b['get'](_0x309a51)||new Set();_0x11fd05['add'](_0x43dba8['get'](_0x196e2d)['userId']),_0x1f862b['set'](_0x309a51,_0x11fd05);}}_0x16553b=_0x511e61['deletions'][_0x467ed5];for(const _0x2d01d6 of _0x16553b)if(_0x2d01d6['item']['is']('element','tableCell')){const _0x55cddc=this['_getVidAttributeName'](_0x2d01d6),_0x45e53c=_0x2d01d6['item']['getAttribute'](_0x55cddc);if(_0x45b062['has'](_0x45e53c)){const _0x58d4e3=_0x2d01d6['item']['parent']['parent']['getAttribute']('vid_start'),_0x29676a=_0x1f862b['get'](_0x58d4e3)||new Set();_0x29676a['add'](_0x45b062['get'](_0x45e53c)['userId']),_0x1f862b['set'](_0x58d4e3,_0x29676a);}}for(const _0x4bf1b8 of _0x1f862b['keys']())(_0x43dba8['has'](_0x4bf1b8)||_0x45b062['has'](_0x4bf1b8))&&_0x1f862b['delete'](_0x4bf1b8);}for(const _0x4f528d of _0x1ed54c){const _0x59d914=_0x511e61['insertions'][_0x4f528d];let _0x3bb52c=null,_0x4afae9=null;for(const _0x5af181 of _0x59d914){const _0xa552b9=this['_getVidAttributeName'](_0x5af181),_0x5838c9=_0x5af181['item']['getAttribute'](_0xa552b9),_0x49c36e=_0x1f862b['get'](_0x5838c9);_0x49c36e&&'elementStart'==_0x5af181['type']&&(_0x3bb52c=Array['from'](_0x49c36e)[0x0],_0x4afae9=_0x5af181['item']['getAttribute']('vid_end')),_0x3bb52c&&(_0x45b062['set'](_0x5838c9,{'userId':_0x3bb52c}),_0x43dba8['set'](_0x5838c9,{'userId':_0x3bb52c})),_0x5838c9==_0x4afae9&&(_0x3bb52c=null,_0x4afae9=null);}}const _0x43fb9={},_0xfbb673=new Set();for(const _0x164e56 of _0x1ed54c){const _0x38de29=_0x50d554['deletions'][_0x164e56],_0x11d54e=_0x50d554['insertions'][_0x164e56];for(const {userId:_0x1c1dfd}of this['_touchedMarkers']['values']())null!==_0x1c1dfd&&_0xfbb673['add'](_0x1c1dfd);for(const {userId:_0x4f2b9e}of this['_touchedRoots']['values']())null!==_0x4f2b9e&&_0xfbb673['add'](_0x4f2b9e);this['_markChanges'](_0x11d54e,_0x511e61['insertions'][_0x164e56],_0x43dba8,'insertion',_0xfbb673),this['_markChanges'](_0x38de29,_0x511e61['deletions'][_0x164e56],_0x45b062,'deletion',_0xfbb673),_0x43fb9[_0x164e56]={'insertions':this['_prepareViewToSave'](_0x11d54e),'deletions':this['_prepareViewToSave'](_0x38de29),'attachChange':this['_touchedRoots']['get'](_0x164e56)||null,'attributesBefore':_0x19c9df(this['_baseRootsAttributes']['get'](_0x164e56))||{},'attributesAfter':_0x19c9df(this['_diffRootsAttributes']['get'](_0x164e56))};}return{'diffData':_0x43fb9,'authorsIds':Array['from'](_0xfbb673)};}['_processRootBeforeSave'](_0x424fdb){for(const [,_0x172f70]of _0x424fdb['markers']){const _0x556b48=_0x172f70['start']['getAncestors']()['filter'](_0x27927c=>'tableCell'==_0x27927c['name']);for(const _0x394468 of _0x556b48)0x1==_0x394468['childCount']&&_0x394468['getChild'](0x0)['is']('element','paragraph')&&_0x394468['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x4ca432){this['_processRootBeforeSave'](_0x4ca432);const _0x4cc432=this['editor']['data']['toView'](_0x4ca432,{}),_0x7a7674=Array['from'](_0x4cc432['getChildren']())['map'](_0x17c8f7=>this['_getViewJson'](_0x17c8f7));return JSON['stringify'](_0x7a7674);}['_getViewJson'](_0x1040ca){if(_0x1040ca['is']('$text'))return _0x1040ca['data'];{const _0x14186b=_0x1040ca;return{'type':Object['keys'](P)['find'](_0x16ee3a=>_0x1040ca instanceof P[_0x16ee3a]),'name':_0x14186b['name'],'attributes':Array['from'](_0x14186b['getAttributes']()),'children':Array['from'](_0x14186b['getChildren']())['map'](_0x319258=>this['_getViewJson'](_0x319258))};}}['_markChanges'](_0x3ddaf6,_0x4dd0ab,_0x1d13d3,_0x1a792f,_0x3668b5){let _0x1777e5=null,_0x5d6057=null,_0x2ba0fb=0x0;const _0x43f06e=this['editor']['model'];for(let _0x4ed46b=0x0;_0x4ed46b<_0x4dd0ab['length'];_0x4ed46b++){const _0x5ce045=this['_getVidAttributeName'](_0x4dd0ab[_0x4ed46b]),_0x71fcdc=_0x4dd0ab[_0x4ed46b]['item']['getAttribute'](_0x5ce045),_0x4459da=_0x1d13d3['get'](_0x71fcdc),_0x596b16=_0x4ed46b==_0x4dd0ab['length']-0x1;(!_0x1777e5&&_0x4459da&&(_0x1777e5=_0x4459da,_0x5d6057=_0x4dd0ab[_0x4ed46b]),_0x1777e5&&(!_0x4459da||_0x4459da['userId']!=_0x1777e5['userId']))&&(_0x486c80(_0x4459da,B(_0x5d6057,_0x3ddaf6,_0x43f06e),B(_0x4dd0ab[_0x4ed46b],_0x3ddaf6,_0x43f06e)),_0x1777e5=_0x4459da||null,_0x5d6057=_0x4459da?_0x4dd0ab[_0x4ed46b]:null),_0x1777e5&&_0x596b16&&_0x486c80(_0x4459da,B(_0x5d6057,_0x3ddaf6,_0x43f06e),J(_0x4dd0ab[_0x4ed46b],_0x3ddaf6,_0x43f06e));}function _0x486c80(_0xe07232,_0x32c1ee,_0x4ffcfe){const _0x556483=_0x1777e5['userId'],_0x3c8b3d='revision:'+_0x1a792f+':'+_0x556483+':'+_0x2ba0fb++,_0x4d25a0=_0x43f06e['createRange'](_0x32c1ee,_0x4ffcfe);_0x3ddaf6['markers']['set'](_0x3c8b3d,_0x4d25a0),null!==_0x556483&&_0x3668b5['add'](_0x556483);}}['_getVidAttributeName'](_0x1f13f3){switch(_0x1f13f3['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x3994e2,_0xf2f44a){_0x3994e2['baseVersion']=null;for(const _0x2c839d in _0x3994e2){const _0x5a5f23=_0x3994e2[_0x2c839d];if(_0x5a5f23 instanceof gt){const _0x107f8e=_0xf2f44a['get'](_0x5a5f23['root']['rootName']);_0x3994e2[_0x2c839d]=this['_fixPosition'](_0x5a5f23,_0x107f8e);}if(_0x5a5f23 instanceof vt){const _0x2c3a5b=_0xf2f44a['get'](_0x5a5f23['root']['rootName']);_0x3994e2[_0x2c839d]=this['_fixRange'](_0x5a5f23,_0x2c3a5b);}'root'===_0x2c839d&&(_0x3994e2['root']=_0xf2f44a['get'](_0x3994e2['root']['rootName']));}}['_fixRange'](_0x4dacae,_0x5ca619){return this['editor']['model']['createRange'](this['_fixPosition'](_0x4dacae['start'],_0x5ca619),this['_fixPosition'](_0x4dacae['end'],_0x5ca619));}['_fixPosition'](_0x1de3cb,_0x4a5a81){return this['editor']['model']['createPositionFromPath'](_0x4a5a81,_0x1de3cb['path'],_0x1de3cb['stickiness']);}['_handleInsertOperation'](_0x4c6373){const _0x287a0c=this['_idsRoots']['get'](_0x4c6373['position']['root']['rootName']),_0x42704e=this['_fixPosition'](_0x4c6373['position'],_0x287a0c),_0xb6d233=null===_0x4c6373['_authorId']?null:_0x4c6373['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x143df4=_0x42704e['parent'],_0x5b6d5f=this['_revisionId'],_0x231b1c=[];for(const _0x1e8f53 of _0x4c6373['nodes'])if(_0x1e8f53['is']('element'))_0x231b1c['push'](this['_makeIdsRoot'](_0x1e8f53));else{for(let _0x159417=0x0;_0x159417<_0x1e8f53['offsetSize'];_0x159417++)_0x231b1c['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x492020=this['_revisionId'];for(let _0x406ae4=_0x5b6d5f;_0x406ae4<_0x492020;_0x406ae4++)this['_touched']['set'](_0x406ae4,{'userId':_0xb6d233});_0x143df4['_insertChild'](_0x42704e['offset'],_0x231b1c);}['_handleMoveOperation'](_0x368901){(_0x368901=this['_cloneOperation'](_0x368901,this['_idsRoots']))['_execute']();const _0x17a320=null===_0x368901['_authorId']?null:_0x368901['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x432113=_0x368901['getMovedRangeStart'](),_0x4bf0f5=_0x432113['parent'],_0x146585=_0x432113['offset'];!function _0x56b806(_0x3b0ec7,_0x4fffe2,_0x26b5b7,_0x53405f){for(let _0xfc0607=_0x26b5b7;_0xfc0607<_0x53405f;_0xfc0607++){const _0x26793=_0x4fffe2['getChild'](_0xfc0607);_0x26793['is']('element','$text')?_0x3b0ec7['set'](_0x26793['getAttribute']('vid'),{'userId':_0x17a320}):(_0x3b0ec7['set'](_0x26793['getAttribute']('vid_start'),{'userId':_0x17a320}),_0x56b806(_0x3b0ec7,_0x26793,0x0,_0x26793['childCount']),_0x3b0ec7['set'](_0x26793['getAttribute']('vid_end'),{'userId':_0x17a320}));}}(this['_touched'],_0x4bf0f5,_0x146585,_0x146585+_0x368901['howMany']);}['_handleMergeOperation'](_0x14baee){const _0x2b111f=null===(_0x14baee=this['_cloneOperation'](_0x14baee,this['_idsRoots']))['_authorId']?null:_0x14baee['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x48b544=_0x14baee['targetPosition']['parent'],_0x3c2c0d=_0x14baee['sourcePosition']['parent'],_0x6f4130=_0x48b544['getAttribute']('vid_end'),_0x62cf9e=_0x3c2c0d['getAttribute']('vid_start');_0x48b544['_setAttribute']('vid_end',_0x3c2c0d['getAttribute']('vid_end')),_0x3c2c0d['_setAttribute']('vid_end',_0x6f4130),this['_touched']['set'](_0x62cf9e,{'userId':_0x2b111f}),this['_touched']['set'](_0x6f4130,{'userId':_0x2b111f}),_0x14baee['_execute']();}['_handleSplitOperation'](_0x1a955d){const _0x38407c=null===(_0x1a955d=this['_cloneOperation'](_0x1a955d,this['_idsRoots']))['_authorId']?null:_0x1a955d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4030d3=_0x1a955d['graveyardPosition'],_0x2766e2=_0x1a955d['splitPosition']['parent'];_0x1a955d['_execute']();const _0x234d02=_0x2766e2['getAttribute']('vid_end'),_0x567353=_0x1a955d['insertionPosition']['nodeAfter'];if(_0x4030d3){const _0x2eb737=_0x567353['getAttribute']('vid_end'),_0x2f08e7=_0x2766e2['getAttribute']('vid_end');_0x2766e2['_setAttribute']('vid_end',_0x2eb737),_0x567353['_setAttribute']('vid_end',_0x2f08e7),this['_touched']['set'](_0x2766e2['getAttribute']('vid_end'),{'userId':_0x38407c}),this['_touched']['set'](_0x567353['getAttribute']('vid_start'),{'userId':_0x38407c});}else{const _0x479eaf=this['_revisionId']++,_0x3a190d=this['_revisionId']++;_0x2766e2['_setAttribute']('vid_end',_0x479eaf),_0x567353['_setAttribute']('vid_start',_0x3a190d),_0x567353['_setAttribute']('vid_end',_0x234d02),this['_touched']['set'](_0x479eaf,{'userId':_0x38407c}),this['_touched']['set'](_0x3a190d,{'userId':_0x38407c});}}['_handleMarkerOperation'](_0x2864b9){if(!_0x2864b9['affectsData'])return;const _0x96f05f=(_0x2864b9=this['_cloneOperation'](_0x2864b9,this['_diffRoots']))['oldRange']?_0x2864b9['oldRange']['root']:null,_0x2e65d=_0x2864b9['newRange']?_0x2864b9['newRange']['root']:null;_0x96f05f&&this['_markers']['delete'](_0x2864b9['name']),_0x2e65d&&this['_markers']['set'](_0x2864b9['name'],_0x2864b9['newRange']['clone']());const _0xfdee8c=null===_0x2864b9['_authorId']?null:_0x2864b9['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x21645f=_0x2864b9['name'];if(!this['_touchedMarkers']['has'](_0x21645f))return void this['_touchedMarkers']['set'](_0x21645f,{'range':_0x2864b9['oldRange'],'userId':_0xfdee8c});const _0x2e9792=this['_touchedMarkers']['get'](_0x21645f),_0x1b479d=_0x2e9792['range'],_0x5587d2=_0x2864b9['newRange'];null==_0x1b479d&&null==_0x5587d2||_0x1b479d&&_0x5587d2&&_0x1b479d['isEqual'](_0x5587d2)?this['_touchedMarkers']['delete'](_0x2864b9['name']):_0x2e9792['userId']=_0xfdee8c;}['_handleRootOperation'](_0x7f0654,_0x4d2f89){this['_diffRoots']['has'](_0x7f0654['rootName'])?this['_diffRoots']['get'](_0x7f0654['rootName'])['_isAttached']=_0x7f0654['isAdd']:(this['_diffRoots']['set'](_0x7f0654['rootName'],F(_0x7f0654['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x7f0654['rootName'],{}),_0x4d2f89&&this['_idsRoots']['set'](_0x7f0654['rootName'],F(_0x7f0654['rootName'],!0x0)));const _0x4323c6=null===_0x7f0654['_authorId']?null:_0x7f0654['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x20eeb9=this['_touchedRoots']['get'](_0x7f0654['rootName']);_0x20eeb9&&_0x20eeb9['userId']===_0x4323c6?this['_touchedRoots']['delete'](_0x7f0654['rootName']):this['_touchedRoots']['set'](_0x7f0654['rootName'],{'userId':_0x4323c6,'isAttached':_0x7f0654['isAdd']});}['_handleRootAttributeOperation'](_0x5467d4){const _0x48464d=this['_diffRootsAttributes']['get'](_0x5467d4['root']['rootName']);null===_0x5467d4['newValue']?delete _0x48464d[_0x5467d4['key']]:_0x48464d[_0x5467d4['key']]=_0x5467d4['newValue'];}}function T(_0x416b9b){const _0x4e2807=F(_0x416b9b['rootName'],_0x416b9b['isAttached']());for(const _0x5e80e6 of _0x416b9b['getChildren']()){const _0x3d47ce=_0x5e80e6['_clone'](!0x0);_0x4e2807['_appendChild'](_0x3d47ce);}return _0x4e2807;}function F(_0x2e294c,_0x2ebe4f=!0x0){const _0x33783c=new mt();return _0x33783c['rootName']=_0x2e294c,_0x33783c['_isAttached']=_0x2ebe4f,_0x33783c['isAttached']=()=>_0x33783c['_isAttached'],_0x33783c;}function B(_0x4171ab,_0x15b203,_0x33d314){const _0x4b3947='elementEnd'==_0x4171ab['type']?_0x33d314['createPositionAt'](_0x4171ab['item'],'end'):_0x33d314['createPositionBefore'](_0x4171ab['item']);return _0x33d314['createPositionFromPath'](_0x15b203,_0x4b3947['path'],_0x4b3947['stickiness']);}function J(_0x1259da,_0x10345d,_0x4e5a6c){const _0xdb5898='elementStart'==_0x1259da['type']?_0x4e5a6c['createPositionAt'](_0x1259da['item'],0x0):_0x4e5a6c['createPositionAfter'](_0x1259da['item']);return _0x4e5a6c['createPositionFromPath'](_0x10345d,_0xdb5898['path'],_0xdb5898['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x1fa686,_0xecb5f6){super(_0x1fa686),this['focusTracker']=new _0x4edf4d(),this['keystrokes']=new _0x368a8f(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0xecb5f6),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x391c6c(this);}['render'](){super['render'](),_0x1463d4({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x2fcbdc=_0x5e1df1=>_0x5e1df1['stopPropagation']();this['keystrokes']['set']('arrowright',_0x2fcbdc),this['keystrokes']['set']('arrowleft',_0x2fcbdc),this['keystrokes']['set']('arrowup',_0x2fcbdc),this['keystrokes']['set']('arrowdown',_0x2fcbdc);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0xff5413){this['revisionNameInputView']['fieldView']['element']['value']=_0xff5413['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x2e2066){const _0x5cc858=new _0x136d79(this['locale'],_0x2cdfd5),_0x31594d=_0x5cc858['fieldView'];_0x31594d['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x324286=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x2e2066&&(_0x324286+='\x20('+m(this['locale'],'optional')+')'),(_0x5cc858['label']=_0x324286,_0x31594d['on']('input',()=>{this['revisionNameInputValue']=_0x31594d['element']['value']['trim']();}),_0x5cc858);}}class u extends _0x2ced25{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x9637ec=this['editor'],_0x1e03dc=_0x9637ec['plugins']['get']('RevisionTracker');_0x9637ec['ui']['componentFactory']['add']('revisionHistory',_0x4cd1ef=>{const _0x4ef488=_0x4e101c(_0x4cd1ef),_0x3207b1=_0x4ef488['panelView']['children'],_0x43fa03=new _0x19845e(_0x4cd1ef),_0x30cc98=new _0x58c470(_0x4cd1ef),_0x2e7d69=new te(_0x4cd1ef),_0x57adc9=new _0x58c470(_0x4cd1ef),_0xb43fb0=new te(_0x4cd1ef);return _0x4ef488['bind']('isEnabled')['to'](_0x1e03dc,'isReady',_0x1e03dc,'isEnabled',_0x9637ec,'isReadOnly',(_0x302638,_0x518b6f,_0x33ad3a)=>_0x302638&&_0x518b6f&&!_0x33ad3a),_0x4ef488['buttonView']['set']({'icon':_0x48dd12['history'],'label':m(_0x4cd1ef,'Revision\x20history'),'tooltip':!0x0}),_0x2e7d69['set']({'label':m(_0x4cd1ef,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x2e7d69['bind']('isEnabled')['to'](_0x1e03dc,'isReady',_0x1e03dc,'isEnabled',_0x9637ec,'isReadOnly',(_0x45e4ba,_0x1e3f00,_0x30f7c0)=>_0x45e4ba&&_0x1e3f00&&!_0x30f7c0),_0x2e7d69['on']('execute',()=>this['_showDialog']()),_0xb43fb0['set']({'label':m(_0x4cd1ef,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0xb43fb0['bind']('isEnabled')['to'](_0x1e03dc,'isReady',_0x9637ec,'isReadOnly',(_0x5ec0e5,_0x2b35de)=>_0x5ec0e5&&!_0x2b35de),_0xb43fb0['on']('execute',()=>{_0x9637ec['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x4ef488['isOpen']=!0x1,_0x9637ec['editing']['view']['focus']();}),_0x30cc98['children']['add'](_0x2e7d69),_0x57adc9['children']['add'](_0xb43fb0),_0x43fa03['role']='menu',_0x43fa03['items']['addMany']([_0x30cc98,_0x57adc9]),_0x3207b1['add'](_0x43fa03),_0x4ef488;}),_0x9637ec['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x4db56e=this['editor'],_0x420eb3=_0x4db56e['locale'],_0xb4ec44=new _0x978ce4(_0x420eb3),_0x198e29=new _0xc7ddf8(_0x420eb3);_0xb4ec44['buttonView']['set']({'icon':_0x48dd12['history'],'label':m(_0x420eb3,'Revision\x20history')});const _0x75d822=new _0x299d0e(_0x420eb3,_0xb4ec44),_0xf6acbc=new _0x376338(_0x420eb3);_0xf6acbc['set']({'label':m(_0x420eb3,'Save\x20current\x20revision')}),_0xf6acbc['delegate']('execute')['to'](_0xb4ec44),_0xf6acbc['on']('execute',()=>{this['_showDialog']();}),_0x75d822['children']['add'](_0xf6acbc),_0x198e29['items']['add'](_0x75d822);const _0x4cdf84=new _0x299d0e(_0x420eb3,_0xb4ec44),_0x5a0f39=new _0x376338(_0x420eb3);return _0x5a0f39['set']({'label':m(_0x420eb3,'Open\x20revision\x20history')}),_0x5a0f39['delegate']('execute')['to'](_0xb4ec44),_0x5a0f39['on']('execute',()=>{_0x4db56e['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x4cdf84['children']['add'](_0x5a0f39),_0x198e29['items']['add'](_0x4cdf84),_0xb4ec44['panelView']['children']['add'](_0x198e29),_0xb4ec44;}['_showDialog'](){const _0x202c87=this['editor'],_0x5815af=_0x202c87['locale'],_0x473ad4=_0x202c87['plugins']['get']('Dialog'),_0x5dd995=_0x202c87['plugins']['get']('RevisionTracker');function _0x2953b7(_0x27477f){_0x202c87['config']['get']('revisionHistory.requireRevisionName')&&''===_0x27477f['revisionName']?_0x27477f['revisionNameInputView']['errorText']=m(_0x5815af,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x202c87['plugins']['get'](l)['saveRevision']({'name':_0x27477f['revisionName']}),_0x473ad4['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x2953b7(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x473ad4['show']({'id':'revisionSave','title':m(_0x5815af,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x202c87['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x473ad4['hide']()},{'label':m(_0x202c87['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x33bba8){_0x33bba8['bind']('isEnabled')['to'](_0x5dd995,'isReady',_0x5dd995,'isEnabled',_0x202c87,'isReadOnly',(_0x784a6b,_0x2a26e8,_0x4f4c9d)=>_0x784a6b&&_0x2a26e8&&!_0x4f4c9d);},'onExecute':()=>_0x2953b7(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x1b4e15=this['editor'],_0xc059da=_0x1b4e15['locale'];this['_saveRevisionFormView']=new hs(_0xc059da,_0x1b4e15['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends ts{['changeId'];['_model'];constructor(_0xb076ce,_0x585705){super(_0xb076ce),this['_model']=_0x585705,this['changeId']=_0x585705['id'];const _0x77d0ef=this['bindTemplate'],_0xbfd399=m(_0xb076ce,_0x585705['data']['isSuggestion']?'Suggested\x20by':'add'==_0x585705['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x585705['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x77d0ef['to']('type',_0x1e61c2=>'ck-revision-change__'+_0x1e61c2)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0xbfd399}]},{'text':'\x20'+_0x585705['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x134fa9(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x5a10e2){super(),this['id']=_0x5a10e2['id']||_0x23c2bf(),this['author']=_0x5a10e2['author'],this['type']=_0x5a10e2['type'],this['data']=_0x5a10e2['data']||{},this['rootName']=_0x5a10e2['rootName'],this['set']('createdAt',_0x5a10e2['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class f{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x542da8,_0xee9662){this['newRevisionId']=_0x542da8,this['oldRevisionId']=_0xee9662,this['changes']=new _0x44ade6();}['_setChanges'](_0x25b02e){for(const _0x5294fc of _0x25b02e)this['changes']['add'](_0x5294fc);}}const Y={'c':_0x51bc4f,'a':_0x3af3e7,'e':_0x306dea,'r':_0x33607e,'u':_0x14d253};class d extends _0x2ced25{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x43d330,_0x329820,j];}constructor(_0x4d0dc3){super(_0x4d0dc3),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x709385,_0x544040,_0x7bbc06)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x5f4bc2=>{for(const _0x4f64ff of this['editor']['editing']['view']['document']['roots'])_0x7bbc06?_0x5f4bc2['removeClass']('ck-editor__editable__overlay',_0x4f64ff):_0x5f4bc2['addClass']('ck-editor__editable__overlay',_0x4f64ff);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x5486ce=>null!==_0x5486ce),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x1545eb,_0x4a3ad2,_0x353a23)=>_0x1545eb&&_0x353a23?_0x4a3ad2['changes']['getIndex'](_0x353a23):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x351af9,_0x204049)=>_0x351af9?_0x204049['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x329820);}['init'](){const _0x1aeed8=this['editor'],_0x650d2d=new _t(_0x1aeed8,{'direction':'backward'}),_0x2393c4=new _t(_0x1aeed8,{'direction':'forward'});(_0x1aeed8['commands']['add']('showPreviousChange',_0x650d2d),_0x1aeed8['commands']['add']('showNextChange',_0x2393c4),_0x1aeed8['commands']['add']('restoreRevision',new pt(_0x1aeed8)),this['on']('change:numberOfChanges',()=>{_0x650d2d['refresh'](),_0x2393c4['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x1aeed8['enableReadOnlyMode']('revision-viewer'),_0x1aeed8['plugins']['has']('WidgetToolbarRepository'))&&_0x1aeed8['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x5056f5){await this['loadRevisionData'](_0x5056f5);const _0x6e39a={};for(const _0x1d44b9 in _0x5056f5['diffData']){if(_0x5056f5['diffData'][_0x1d44b9]['attachChange']&&!_0x5056f5['diffData'][_0x1d44b9]['attachChange']['isAttached'])continue;const _0x4c7ca9=this['_removeRevisionMarkers'](JSON['parse'](_0x5056f5['diffData'][_0x1d44b9]['insertions'])),_0x25bef9=this['editor']['editing']['view']['document'],_0x4293f0=new _0x18a752(_0x25bef9,_0x4c7ca9['map'](_0x5c7168=>this['_getViewObj'](_0x5c7168)));this['editor']['data']['processor']['useFillerType']('marked'),_0x6e39a[_0x1d44b9]=this['editor']['data']['processor']['toData'](_0x4293f0),this['editor']['data']['processor']['useFillerType']('default');}return _0x6e39a;}async['getRevisionRootsAttributes'](_0x5c57ed){await this['loadRevisionData'](_0x5c57ed);const _0x394e49={};for(const _0x31290e in _0x5c57ed['diffData'])_0x5c57ed['diffData'][_0x31290e]['attachChange']&&!_0x5c57ed['diffData'][_0x31290e]['attachChange']['isAttached']||(_0x394e49[_0x31290e]=_0x5c57ed['diffData'][_0x31290e]['attributesAfter']||{});return _0x394e49;}['_removeRevisionMarkers'](_0x466d24){return(_0x466d24=_0x466d24['filter'](_0x522eee=>!_0x522eee['name']||'revision-start'!==_0x522eee['name']&&'revision-end'!==_0x522eee['name']))['forEach'](_0x36a4ba=>{'string'!=typeof _0x36a4ba&&(_0x36a4ba['children']=this['_removeRevisionMarkers'](_0x36a4ba['children']),_0x36a4ba['attributes']=_0x36a4ba['attributes']['filter'](_0x1ff301=>!_0x1ff301[0x0]['startsWith']('data-revision-')));}),_0x466d24;}async['compare'](_0xca6f5f,_0x15fd27,_0x46efb3=!0x1){if(!this['isEnabled'])return;const _0x4add94=this['diff'],_0x538d2d=this['repository'],_0x22e1f9='string'==typeof _0xca6f5f?_0x538d2d['getRevision'](_0xca6f5f):_0xca6f5f,_0x493137='string'==typeof _0x15fd27?_0x538d2d['getRevision'](_0x15fd27):_0x15fd27,_0x19b1f9=_0x22e1f9['id'],_0x40de8=_0x493137?_0x493137['id']:null;if(!_0x46efb3&&this['diff']&&this['diff']['newRevisionId']===_0x19b1f9&&this['diff']['oldRevisionId']===_0x40de8)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x19b1f9,_0x40de8);const _0x226304=this['_getRevisionsRange'](_0x22e1f9,_0x493137,!0x0)['map'](_0x37b6b1=>this['loadRevisionData'](_0x37b6b1));return _0x226304['push'](new Promise(_0x519131=>{setTimeout(_0x519131,0x14);})),Promise['all'](_0x226304)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x31f3c4=this['_getDiff'](_0x19b1f9,_0x40de8);for(const _0x31abcb of _0x31f3c4['changes'])this['_changeIdToChange']['set'](_0x31abcb['id'],_0x31abcb);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x15d1ec=>{for(const _0x33a642 of this['editor']['model']['document']['getRootNames']())_0x15d1ec['detachRoot'](_0x33a642);for(const _0x3f2b2f of Object['keys'](_0x31f3c4['model'])){const _0x4e86a6=_0x15d1ec['addRoot'](_0x3f2b2f);for(const _0x2a9abf of Object['keys'](_0x31f3c4['attributes'][_0x3f2b2f]))_0x15d1ec['setAttribute'](_0x2a9abf,_0x31f3c4['attributes'][_0x3f2b2f][_0x2a9abf],_0x4e86a6);_0x15d1ec['insert'](_0x31f3c4['model'][_0x3f2b2f],_0x4e86a6,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x31f3c4['changes'])),this['isReady']=!0x0;})['catch'](_0x566c34=>{console['error'](_0x566c34),this['_cleanUp'](),_0x4add94&&(this['diff']=_0x4add94),this['isReady']=!0x0;});}['addRevisionData'](_0x2c3859,_0x1d2113){const _0x4206ed=this['repository']['createRevision'](_0x2c3859);return _0x4206ed['on']('_update',(_0x3437f9,_0x228508,_0x1c6bfd)=>_0x1d2113(_0x228508,_0x1c6bfd,_0x4206ed)),this['repository']['addRevision'](_0x4206ed),_0x4206ed;}['loadRevisionData'](_0x4daa6b){if(!_0x4daa6b||_0x4daa6b['diffData'])return Promise['resolve']();{const _0x410e27=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x410e27,'revisionId':_0x4daa6b['id']})['then'](_0x4e945c=>{_0x4daa6b['_update']({'diffData':_0x4e945c['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x420f62=>{for(const _0x4f5999 of this['editor']['model']['document']['getRootNames']())_0x420f62['detachRoot'](_0x4f5999);});}['_sortAndFilterDiffChanges'](_0x2df901){const _0x88aac6=[],_0x341aa9=new Map();for(const _0x567700 of this['editor']['model']['document']['getRootNames']()){const _0x2fbef8=this['editor']['editing']['view']['getDomRoot'](_0x567700);if(!_0x2fbef8)continue;const _0x3eb088=_0x2fbef8['getClientRects']()['item'](0x0);_0x3eb088&&(_0x88aac6['push'](_0x567700),_0x341aa9['set'](_0x567700,_0x3eb088));}return _0x88aac6['sort']((_0x1eb2ad,_0x1d0d07)=>{const _0x1f361e=_0x341aa9['get'](_0x1eb2ad),_0x867473=_0x341aa9['get'](_0x1d0d07);return _0x1f361e['y']-_0x867473['y']||_0x1f361e['x']-_0x867473['x'];}),(_0x2df901=_0x2df901['filter'](_0x4db0a1=>_0x88aac6['includes'](_0x4db0a1['rootName'])))['sort']((_0x2294ed,_0x9c0afb)=>_0x88aac6['indexOf'](_0x2294ed['rootName'])-_0x88aac6['indexOf'](_0x9c0afb['rootName'])),_0x2df901;}['_makeTape'](_0xd375de){const _0x252255=Array['from'](_0xd375de['markers'])['filter'](([_0x4d0f11,_0x221a04])=>_0x4d0f11['startsWith']('revision:')&&!_0x221a04['isCollapsed']),_0x4e6a05=Array['from'](this['editor']['model']['createRangeIn'](_0xd375de)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x252255['length'])for(const _0x5e1fcc of _0x4e6a05){const [_0x4e0274,_0x20f4bd]=_0x252255[0x0],[,_0x94f422,_0x28e276]=_0x4e0274['split'](':');if(_0x20f4bd['end']['isEqual'](_0x5e1fcc['nextPosition'])&&_0x252255['shift'](),(_0x5e1fcc['previousPosition']['isEqual'](_0x20f4bd['start'])||_0x5e1fcc['previousPosition']['isAfter'](_0x20f4bd['start']))&&('insertion'==_0x94f422?_0x5e1fcc['isAdded']={'userId':_0x28e276}:'deletion'==_0x94f422&&(_0x5e1fcc['isRemoved']={'userId':_0x28e276})),0x0==_0x252255['length'])break;}return _0x4e6a05;}['_refreshStartEndIndex'](_0x1bf2d6){const _0xfa0e9c=new Map();for(let _0x1bebdb=0x0;_0x1bebdb<_0x1bf2d6['length'];_0x1bebdb++)'text'===_0x1bf2d6[_0x1bebdb]['type']?(_0x1bf2d6[_0x1bebdb]['item']['startIndex']=_0x1bebdb,_0x1bf2d6[_0x1bebdb]['item']['endIndex']=_0x1bebdb):('elementStart'===_0x1bf2d6[_0x1bebdb]['type']?_0x1bf2d6[_0x1bebdb]['item']['startIndex']=_0x1bebdb:'elementEnd'===_0x1bf2d6[_0x1bebdb]['type']&&(_0x1bf2d6[_0x1bebdb]['item']['endIndex']=_0x1bebdb),_0xfa0e9c['set'](_0x1bf2d6[_0x1bebdb]['id'],_0x1bebdb));for(const _0x5be3e8 of _0xfa0e9c['values']())'elementStart'===_0x1bf2d6[_0x5be3e8]['type']?_0x1bf2d6[_0x5be3e8]['item']['endIndex']=_0xfa0e9c['get'](_0x1bf2d6[_0x5be3e8]['pairId']):'elementEnd'===_0x1bf2d6[_0x5be3e8]['type']&&(_0x1bf2d6[_0x5be3e8]['item']['startIndex']=_0xfa0e9c['get'](_0x1bf2d6[_0x5be3e8]['pairId']));}['_processTape'](_0x517bf4){for(let _0x2a8517=0x0;_0x2a8517<_0x517bf4['length'];_0x2a8517++){if('elementStart'===_0x517bf4[_0x2a8517]['type'])_0x517bf4[_0x2a8517]['item']['startIndex']=_0x2a8517;else{if('elementEnd'===_0x517bf4[_0x2a8517]['type']){_0x517bf4[_0x2a8517]['item']['endIndex']=_0x2a8517;const _0x326d04=_0x517bf4[_0x2a8517]['item']['startIndex'];_0x517bf4[_0x326d04]['pairId']=_0x517bf4[_0x2a8517]['id'],_0x517bf4[_0x2a8517]['pairId']=_0x517bf4[_0x326d04]['id'];}else _0x517bf4[_0x2a8517]['item']['startIndex']=_0x2a8517,_0x517bf4[_0x2a8517]['item']['endIndex']=_0x2a8517,_0x517bf4[_0x2a8517]['pairId']=null;}_0x517bf4[_0x2a8517]['markersStart']||(_0x517bf4[_0x2a8517]['markersStart']=[],_0x517bf4[_0x2a8517]['markersEnd']=[]);}}['_markInsertions'](_0x1c7443,_0x68e1b5){const _0x34a149=_0x1c7443['filter'](_0x920283=>!_0x920283['isAdded']);for(let _0xc37d4=0x0;_0xc37d4<_0x68e1b5['length'];_0xc37d4++)_0x68e1b5[_0xc37d4]['isAdded']&&(_0x34a149[_0xc37d4]['isAdded']=_0x68e1b5[_0xc37d4]['isAdded']);}['_makeModelFromViewString'](_0x220cfa){const _0x4d1d5b=JSON['parse'](_0x220cfa),_0x47f9f0=this['editor']['editing']['view']['document'],_0x13a114=new _0x18a752(_0x47f9f0,_0x4d1d5b['map'](_0x38404c=>this['_getViewObj'](_0x38404c)));return this['editor']['data']['toModel'](_0x13a114);}['_getViewObj'](_0x1ba17c){const _0x118725=this['editor']['editing']['view']['document'];if('string'==typeof _0x1ba17c)return new _0x5248c5(_0x118725,_0x1ba17c);{const _0x48d496=_0x1ba17c['children']['map'](_0x50f67e=>this['_getViewObj'](_0x50f67e));return new(Y[_0x1ba17c['type']]||_0x26c3f6)(_0x118725,_0x1ba17c['name'],_0x1ba17c['attributes'],_0x48d496);}}['_getDiff'](_0xc372e,_0x220cc4=null){const _0x314610=this['repository']['getRevision'](_0xc372e),_0x4e1b8c=_0x220cc4?this['repository']['getRevision'](_0x220cc4):null,_0x5e9218=this['_getRevisionsRange'](_0x314610,_0x4e1b8c),_0x235d22=_0x5e9218[_0x5e9218['length']-0x1],_0x1b0deb=new Map(),_0x1fb1c8={'model':{},'attributes':{},'changes':[]},_0x335c8f=new Set(),_0x5facc2=new Map();for(let _0x44b6bc=_0x5e9218['length']-0x1;_0x44b6bc>=0x0;_0x44b6bc--){const _0x5d3af2=_0x5e9218[_0x44b6bc];for(const _0x24e34f of Object['keys'](_0x5d3af2['diffData']))if(_0x5d3af2['diffData'][_0x24e34f]['attachChange']){const _0x5e44b1=_0x5d3af2['diffData'][_0x24e34f]['attachChange'];_0x5e44b1['isAttached']?(_0x335c8f['add'](_0x24e34f),_0x5facc2['has'](_0x24e34f)&&_0x5facc2['get'](_0x24e34f)['userId']==_0x5e44b1['userId']?_0x5facc2['delete'](_0x24e34f):_0x5facc2['set'](_0x24e34f,_0x5e44b1)):_0x5facc2['has'](_0x24e34f)?(_0x335c8f['delete'](_0x24e34f),_0x5facc2['delete'](_0x24e34f)):(_0x335c8f['add'](_0x24e34f),_0x5facc2['set'](_0x24e34f,_0x5e44b1));}else _0x335c8f['add'](_0x24e34f);}for(const _0x43da14 of _0x335c8f){const _0xc27d1f=_0x5facc2['has'](_0x43da14)&&!_0x5facc2['get'](_0x43da14)['isAttached'];let _0xfa3cad=_0xc27d1f?_0x5e9218['length']-0x1:0x0;const _0x134ecf=_0xc27d1f?-0x1:0x1;for(;_0x5e9218[_0xfa3cad];){const _0x239cfd=_0x5e9218[_0xfa3cad];if(_0x239cfd['diffData'][_0x43da14]){const _0xdbecdc=_0xc27d1f?_0x239cfd['diffData'][_0x43da14]['attributesBefore']:_0x239cfd['diffData'][_0x43da14]['attributesAfter'];_0x1fb1c8['attributes'][_0x43da14]=_0xdbecdc?_0x19c9df(_0xdbecdc):{};break;}_0xfa3cad+=_0x134ecf;}}for(const _0x2e5329 of _0x5e9218){_0x2e5329['model']={};for(const _0x35e8b6 of _0x2e5329['authors'])_0x1b0deb['set'](_0x35e8b6['id'],_0x35e8b6);for(const _0x4abe86 of _0x335c8f){const _0x1fa042=_0x2e5329['diffData'][_0x4abe86]?_0x2e5329['diffData'][_0x4abe86]['insertions']:'[]',_0x4b5675=_0x2e5329['diffData'][_0x4abe86]?_0x2e5329['diffData'][_0x4abe86]['deletions']:'[]';_0x2e5329['model'][_0x4abe86]={'insertions':this['_makeModelFromViewString'](_0x1fa042),'deletions':this['_makeModelFromViewString'](_0x4b5675)};}}for(const _0x38fe1b of _0x335c8f){let _0x42fa72=null,_0x3f15d9=0x0;const _0x1d2738=new Map(Array['from'](_0x314610['model'][_0x38fe1b]['insertions']['markers'])['filter'](([_0x3a79df])=>!_0x3a79df['startsWith']('revision:')));let _0x71f806=0x0;for(const _0x9ba0d0 of _0x5e9218){const _0x1e5906=this['_makeTape'](_0x9ba0d0['model'][_0x38fe1b]['insertions']);_0x9ba0d0==_0x314610?(_0x42fa72=_0x1e5906,_0x3f15d9=_0x42fa72['length'],_0x42fa72['forEach'](_0x3a9b16=>{_0x3a9b16['id']=_0x71f806++;}),this['_processTape'](_0x42fa72)):this['_markInsertions'](_0x42fa72,_0x1e5906);const _0x23be56=_0x42fa72['filter'](_0x5681f7=>!_0x5681f7['isAdded'])['map'](_0x4bd49e=>_0x4bd49e['id']);let _0x5c4e17=0x0;const _0x1d0204=this['_makeTape'](_0x9ba0d0['model'][_0x38fe1b]['deletions']);_0x1d0204['forEach'](_0x1e9978=>{_0x1e9978['isRemoved']?_0x1e9978['id']=_0x3f15d9++:_0x1e9978['id']=_0x23be56[_0x5c4e17++];}),this['_processTape'](_0x1d0204),this['_setDistance'](_0x42fa72,'isAdded'),this['_setDistance'](_0x1d0204,'isRemoved'),_0x9ba0d0==_0x314610&&this['_markMarkers'](_0x42fa72,_0x1d2738),_0x42fa72=this['_joinTapes'](_0x42fa72,_0x1d0204),this['_refreshStartEndIndex'](_0x42fa72),this['_setDistance'](_0x42fa72,'isRemoved');}_0x42fa72=_0x42fa72['filter'](_0x1cedec=>!(_0x1cedec['isAdded']&&_0x1cedec['isRemoved']));const _0x4aeb4f=new Map(_0x235d22['model'][_0x38fe1b]['deletions']['markers']),_0x5bb59f=new Set(_0x1d2738['keys']());for(const _0x3fd624 of _0x4aeb4f['keys']())_0x5bb59f['delete'](_0x3fd624);this['_markSuggestions'](_0x42fa72,_0x5bb59f),this['_fixObsoleteTags'](_0x42fa72),_0x42fa72=this['_removeMissingPairs'](_0x42fa72),_0x42fa72=this['_markMismatchedRemovedTags'](_0x42fa72),_0x42fa72=this['_removeUnsupportedChanges'](_0x42fa72);const {root:_0x4f54b6,changes:_0x1560e8}=this['_makeModelFromTape'](_0x42fa72,_0x1b0deb,_0x38fe1b);_0x1fb1c8['model'][_0x38fe1b]=_0x4f54b6;const _0x66bacc=_0x5facc2['get'](_0x38fe1b);if(_0x66bacc){const _0x2675a8=_0x1b0deb['get'](_0x66bacc['userId']),_0x4d127c=new r({'author':_0x2675a8,'type':_0x66bacc['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x38fe1b});_0x1560e8['unshift'](_0x4d127c),_0x1fb1c8['attributes'][_0x38fe1b]['revisionHistoryAttachChange']=_0x4d127c['id'];}_0x1fb1c8['changes']=_0x1fb1c8['changes']['concat'](_0x1560e8);}return _0x1fb1c8;}['_markMarkers'](_0x5be2f9,_0x599580){for(let _0x5c408d=0x0;_0x5c408d<_0x5be2f9['length'];_0x5c408d++)for(const [_0x2db515,_0x34f8c6]of _0x599580)_0x34f8c6['start']['isEqual'](_0x5be2f9[_0x5c408d]['previousPosition'])&&_0x5be2f9[_0x5c408d]['markersStart']['push'](_0x2db515),_0x34f8c6['end']['isEqual'](_0x5be2f9[_0x5c408d]['nextPosition'])&&_0x5be2f9[_0x5c408d]['markersEnd']['push'](_0x2db515);}['_joinTapes'](_0x5e4d01,_0x39a069){let _0x57de3d=[],_0x4440a7=0x0,_0x341dcb=0x0;for(;_0x4440a7<_0x5e4d01['length']||_0x341dcb<_0x39a069['length'];){const _0x235b6f=_0x5e4d01[_0x4440a7]||{},_0x425c8d=_0x39a069[_0x341dcb]||{};if(_0x235b6f['id']==_0x425c8d['id'])_0x4440a7++,_0x341dcb++,_0x57de3d['push'](_0x235b6f);else{if(_0x425c8d['isRemoved']&&_0x235b6f['isAdded']){const {commonTape:_0x2bfc06,iEnd:_0x4d0bde,jEnd:_0x1c8b31}=this['_threeWayMerge'](_0x5e4d01,_0x4440a7,_0x39a069,_0x341dcb);_0x57de3d=_0x57de3d['concat'](_0x2bfc06),_0x4440a7=_0x4d0bde,_0x341dcb=_0x1c8b31;}else _0x425c8d['isRemoved']?(_0x341dcb++,_0x57de3d['push'](_0x425c8d)):(_0x4440a7++,_0x57de3d['push'](_0x235b6f));}}return _0x57de3d;}['_markSuggestions'](_0x1fd3a1,_0x4fd89e){const _0x131877=[];for(let _0x20f234=0x0;_0x20f234<_0x1fd3a1['length'];_0x20f234++){for(let _0x27c87e=0x0;_0x27c87e<_0x1fd3a1[_0x20f234]['markersStart']['length'];_0x27c87e++){const _0x2fa01a=_0x1fd3a1[_0x20f234]['markersStart'][_0x27c87e];if(!_0x4fd89e['has'](_0x2fa01a))continue;const {group:_0x2a6f85,type:_0x395aa5,authorId:_0x323b7b}=_0x1e098e(_0x2fa01a);'revision-suggestion'!=_0x2a6f85||'insertion'!=_0x395aa5&&'deletion'!=_0x395aa5||(_0x131877['unshift']({'type':_0x395aa5,'name':_0x2fa01a,'userId':_0x323b7b}),_0x1fd3a1[_0x20f234]['markersStart']['splice'](_0x27c87e,0x1),_0x27c87e--);}_0x237dfe(_0x1fd3a1[_0x20f234]);for(let _0x23983c=0x0;_0x23983c<_0x1fd3a1[_0x20f234]['markersEnd']['length'];_0x23983c++){const _0x4eef8c=_0x1fd3a1[_0x20f234]['markersEnd'][_0x23983c];if(!_0x4fd89e['has'](_0x4eef8c))continue;const {group:_0x348aad,type:_0x3f4d7f}=_0x1e098e(_0x4eef8c);if('revision-suggestion'!=_0x348aad||'insertion'!=_0x3f4d7f&&'deletion'!=_0x3f4d7f)continue;_0x1fd3a1[_0x20f234]['markersEnd']['splice'](_0x23983c,0x1),_0x23983c--;const _0x1f83fa=_0x131877['findIndex'](_0x38c914=>_0x38c914['name']==_0x4eef8c);_0x1f83fa>-0x1&&_0x131877['splice'](_0x1f83fa,0x1);}}function _0x1e098e(_0x47df61){const _0x592bff=_0x47df61['split'](':');return{'group':_0x592bff[0x0],'type':_0x592bff[0x1],'subType':_0x592bff['length']>=0x5?_0x592bff[0x2]:null,'id':_0x592bff['length']<0x5?_0x592bff[0x2]:_0x592bff[0x3],'authorId':_0x592bff['length']<0x5?_0x592bff[0x3]:_0x592bff[0x4],'markerCount':0x6==_0x592bff['length']?_0x592bff[0x5]:null};}function _0x237dfe(_0x1c4ca7){for(let _0x75d4ba=0x0;_0x75d4ba<_0x131877['length'];_0x75d4ba++){if(_0x1c4ca7['isAdded']&&'insertion'==_0x131877[_0x75d4ba]['type'])return _0x1c4ca7['isAddSuggestion']=_0x131877[_0x75d4ba],void delete _0x1c4ca7['isAdded'];if(!_0x1c4ca7['isAdded']&&!_0x1c4ca7['isRemoved']&&'deletion'==_0x131877[_0x75d4ba]['type'])return void(_0x1c4ca7['isRemoveSuggestion']=_0x131877[_0x75d4ba]);}}}['_setDistance'](_0x2d9e15,_0x33c908){let _0x165f32=0x0,_0x8d6072=!0x1;const _0x154b18=new Map();for(const _0x2b8616 of _0x2d9e15)_0x2b8616[_0x33c908]?_0x8d6072&&(_0x165f32++,_0x8d6072=!0x1):(_0x165f32++,_0x8d6072=!0x0),_0x154b18['set'](_0x2b8616['id'],_0x165f32);for(let _0x3cb7ef=0x0;_0x3cb7ef<_0x2d9e15['length'];_0x3cb7ef++){if('isRemoved'==_0x33c908&&_0x2d9e15[_0x3cb7ef]['isAdded']||'isAdded'==_0x33c908&&_0x2d9e15[_0x3cb7ef]['isRemoved'])continue;if('text'==_0x2d9e15[_0x3cb7ef]['type']){_0x2d9e15[_0x3cb7ef]['distance']=0x0;continue;}const _0x33864d=_0x154b18['get'](_0x2d9e15[_0x3cb7ef]['pairId']),_0x36fa05=_0x154b18['get'](_0x2d9e15[_0x3cb7ef]['id']);_0x2d9e15[_0x3cb7ef]['distance']=_0x33864d-_0x36fa05;}}['_getRevisionsRange'](_0x1f2dcc,_0x4482d1,_0x576781=!0x1){const _0x225228=[];let _0x302994=this['repository']['getIndex'](_0x1f2dcc),_0x3ef2d3=this['repository']['getIndex'](_0x4482d1);for(-0x1==_0x3ef2d3&&(_0x3ef2d3=this['repository']['_revisions']['length'],_0x576781=!0x1);_0x302994<_0x3ef2d3;)_0x225228['push'](this['repository']['getRevision'](_0x302994)),_0x302994++;return _0x576781&&_0x225228['push'](this['repository']['getRevision'](_0x302994)),_0x225228;}['_threeWayMerge'](_0x50b5cd,_0x3df222,_0x5802e4,_0x11cc5d){const _0x205059=this['editor']['model']['schema'];let _0x345e59=_0x3df222;for(;_0x50b5cd[_0x345e59]&&_0x50b5cd[_0x345e59]['isAdded'];)_0x345e59++;let _0x14eec9=_0x11cc5d;for(;_0x5802e4[_0x14eec9]&&_0x5802e4[_0x14eec9]['isRemoved'];)_0x14eec9++;_0x1bc5de(_0x50b5cd,_0x3df222,_0x345e59),_0x1bc5de(_0x5802e4,_0x11cc5d,_0x14eec9);const _0x41e591=_0x5802e4['slice'](_0x11cc5d,_0x14eec9)['concat'](_0x50b5cd['slice'](_0x3df222,_0x345e59));return _0x41e591['sort']((_0x36b13f,_0x367771)=>_0x36b13f['side']!=_0x367771['side']?_0x36b13f['side']-_0x367771['side']:_0x36b13f['level']!=_0x367771['level']?_0x36b13f['level']-_0x367771['level']:_0x36b13f['distance']!=_0x367771['distance']?_0x367771['distance']-_0x36b13f['distance']:!!_0x36b13f['isAdded']!=!!_0x367771['isAdded']?-0x1==_0x36b13f['side']||0x0==_0x36b13f['side']?_0x36b13f['isAdded']?-0x1:0x1:_0x36b13f['isAdded']?0x1:-0x1:_0x36b13f['index']-_0x367771['index']),{'commonTape':_0x41e591,'iEnd':_0x345e59,'jEnd':_0x14eec9};function _0x1bc5de(_0x59e6c4,_0x3264f7,_0x39ca8f){let _0x4852f4=-0x1,_0x993082=Number['POSITIVE_INFINITY'],_0x4705c4=!0x0;for(let _0xe1d3d9=_0x3264f7;_0xe1d3d9<_0x39ca8f;_0xe1d3d9++)if(_0x205059['isInline'](_0x59e6c4[_0xe1d3d9]['item'])||(_0x4705c4=!0x1),_0x59e6c4[_0xe1d3d9]['item']['startIndex']<_0x3264f7&&(_0x4852f4=_0xe1d3d9),_0x59e6c4[_0xe1d3d9]['item']['endIndex']>=_0x39ca8f){_0x993082=_0xe1d3d9;break;}_0x4705c4&&(_0x4852f4=_0x39ca8f-0x1);for(let _0x56fbb0=_0x3264f7;_0x56fbb0<_0x39ca8f;_0x56fbb0++)_0x59e6c4[_0x56fbb0]['side']=_0x56fbb0<=_0x4852f4?-0x1:_0x56fbb0<_0x993082?0x0:0x1,_0x59e6c4[_0x56fbb0]['index']=_0x56fbb0;let _0x128d0f=0x0;for(let _0xb9eb36=_0x3264f7;_0xb9eb36<=_0x4852f4;_0xb9eb36++)0x0==_0x59e6c4[_0xb9eb36]['distance']?_0x59e6c4[_0xb9eb36]['level']=_0x128d0f:(_0x128d0f++,_0x59e6c4[_0xb9eb36]['level']=_0x128d0f,_0x128d0f++);for(let _0x481890=_0x3264f7;_0x481890<_0x39ca8f;_0x481890++)0x0==_0x59e6c4[_0x481890]['side']&&(_0x59e6c4[_0x481890]['level']=_0x128d0f);_0x128d0f=0x0;for(let _0xc72484=_0x39ca8f-0x1;_0xc72484>=_0x993082;_0xc72484--)0x0==_0x59e6c4[_0xc72484]['distance']?_0x59e6c4[_0xc72484]['level']=_0x128d0f:(_0x128d0f--,_0x59e6c4[_0xc72484]['level']=_0x128d0f,_0x128d0f--);}}['_fixObsoleteTags'](_0x150a08){const _0x486e76=new Map(),_0x46e461=this['editor']['model']['schema'];for(let _0x20b335=0x1;_0x20b335<_0x150a08['length'];_0x20b335++){let _0xcff27c,_0x42afae,_0x2b70be;const _0x118231=_0x150a08[_0x20b335],_0x58f00e=_0x150a08[_0x20b335-0x1];if('text'==_0x118231['type'])continue;if(_0x118231['type']!=_0x58f00e['type'])continue;if(!_0x46e461['isBlock'](_0x58f00e['item'])||_0x46e461['isLimit'](_0x58f00e['item']))continue;if(!_0x46e461['isBlock'](_0x118231['item'])||_0x46e461['isLimit'](_0x118231['item']))continue;if((_0x150a08[_0x20b335]['isAdded']||_0x150a08[_0x20b335]['isAddSuggestion'])&&_0x150a08[_0x20b335-0x1]['isRemoved'])_0xcff27c=_0x150a08[_0x20b335],_0x42afae=_0x150a08[_0x20b335-0x1],_0x2b70be=_0x20b335-0x1;else{if(!_0x150a08[_0x20b335]['isRemoved']||!_0x150a08[_0x20b335-0x1]['isAdded']&&!_0x150a08[_0x20b335-0x1]['isAddSuggestion'])continue;_0xcff27c=_0x150a08[_0x20b335-0x1],_0x42afae=_0x150a08[_0x20b335],_0x2b70be=_0x20b335;}const _0x39e53e=_0xcff27c['level']==_0x42afae['level'],_0x1b974d=Math['abs'](_0xcff27c['level'])<Math['abs'](_0x42afae['level'])&&0x0==_0x42afae['distance'];(_0x39e53e||_0x1b974d)&&(_0x486e76['set'](_0x42afae['id'],_0xcff27c['id']),_0x150a08['splice'](_0x2b70be,0x1),_0x20b335--,_0xcff27c['isAdded']=!0x1);}for(let _0x431f3d=0x0;_0x431f3d<_0x150a08['length'];_0x431f3d++)_0x486e76['has'](_0x150a08[_0x431f3d]['pairId'])&&(_0x150a08[_0x431f3d]['pairId']=_0x486e76['get'](_0x150a08[_0x431f3d]['pairId']));}['_removeMissingPairs'](_0x488cbe){const _0x379d48=new Set(_0x488cbe['map'](_0x3e5f41=>_0x3e5f41['id']));for(let _0x98859=0x0;_0x98859<_0x488cbe['length'];_0x98859++)_0x379d48['has'](_0x488cbe[_0x98859]['pairId'])||0x0==_0x488cbe[_0x98859]['distance']||(_0x488cbe[_0x98859]['isIncorrect']=!0x0);return _0x488cbe['filter'](_0x4eb0ee=>!_0x4eb0ee['isIncorrect']);}['_markMismatchedRemovedTags'](_0x4bc2f7){const _0x298871=new Set();for(let _0x36805c=0x0;_0x36805c<_0x4bc2f7['length'];_0x36805c++){if(_0x298871['has'](_0x4bc2f7[_0x36805c]['id'])&&_0x4bc2f7[_0x36805c]['isRemoved']&&(_0x4bc2f7[_0x36805c]['isIncorrect']=!0x0),_0x4bc2f7[_0x36805c]['isIncorrect'])continue;if(0x0==_0x4bc2f7[_0x36805c]['distance'])continue;if('elementStart'!=_0x4bc2f7[_0x36805c]['type'])continue;if(null==_0x4bc2f7[_0x36805c]['pairId'])continue;let _0x38963a=_0x36805c+0x1,_0x26262c=0x0;for(;_0x4bc2f7[_0x38963a]['id']!=_0x4bc2f7[_0x36805c]['pairId'];)'elementStart'==_0x4bc2f7[_0x38963a]['type']?_0x26262c++:'elementEnd'==_0x4bc2f7[_0x38963a]['type']&&_0x26262c--,_0x38963a++;if(0x0!=_0x26262c){if(_0x4bc2f7[_0x36805c]['isRemoved'])_0x4bc2f7[_0x36805c]['isIncorrect']=!0x0;else{for(;_0x38963a!=_0x36805c;)_0x4bc2f7[_0x38963a]['isRemoved']&&0x0!=_0x4bc2f7[_0x38963a]['distance']&&(_0x4bc2f7[_0x38963a]['isIncorrect']=!0x0,_0x298871['add'](_0x4bc2f7[_0x38963a]['pairId'])),_0x38963a--;}}}return _0x4bc2f7['filter'](_0xb38424=>!_0xb38424['isIncorrect']);}['_removeUnsupportedChanges'](_0x1d5b7d){const _0x1c4955=this['editor']['model']['schema'];for(let _0x147fe1=0x0;_0x147fe1<_0x1d5b7d['length'];_0x147fe1++){if(!(_0x1d5b7d[_0x147fe1]['isAdded']||_0x1d5b7d[_0x147fe1]['isAddSuggestion']||_0x1d5b7d[_0x147fe1]['isRemoved']||_0x1d5b7d[_0x147fe1]['isRemoveSuggestion']))continue;if(0x0==_0x1d5b7d[_0x147fe1]['distance'])continue;const _0x3ce4ea=_0x1d5b7d[_0x147fe1]['item'];_0x1c4955['isBlock'](_0x3ce4ea)||_0x1c4955['isLimit'](_0x3ce4ea)||(_0x1d5b7d[_0x147fe1]['isAdded']&&delete _0x1d5b7d[_0x147fe1]['isAdded'],_0x1d5b7d[_0x147fe1]['isAddSuggestion']&&delete _0x1d5b7d[_0x147fe1]['isAddSuggestion'],_0x1d5b7d[_0x147fe1]['isRemoveSuggestion']&&delete _0x1d5b7d[_0x147fe1]['isRemoveSuggestion'],_0x1d5b7d[_0x147fe1]['isRemoved']&&(_0x1d5b7d[_0x147fe1]['isIncorrect']=!0x0));}return _0x1d5b7d['filter'](_0x2a1fa5=>!_0x2a1fa5['isIncorrect']);}['_makeModelFromTape'](_0x36d303,_0xc7caa9,_0x13fbec){const _0x5098bd=new mt(),_0x190a6f=[],_0x5824d8=new Map(),_0x2cc43e=this['editor']['model'],_0x40302e=_0x2cc43e['schema'],_0x5910be=[_0x5098bd],_0xaa8d02={},_0x5cdf2b={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x5a7862=null;const _0x5e4437=[0x0];for(let _0x5833d7=0x0;_0x5833d7<_0x36d303['length'];_0x5833d7++)if('elementStart'===_0x36d303[_0x5833d7]['type']){_0x36d303[_0x5833d7]['previousPosition']=_0x2cc43e['createPositionFromPath'](_0x5098bd,_0x5e4437);const _0x4f8dbd=new ft(_0x36d303[_0x5833d7]['item']['name'],_0x36d303[_0x5833d7]['item']['getAttributes']());_0x5910be[0x0]['_appendChild'](_0x4f8dbd),_0x5e4437['push'](0x0),_0x5910be['unshift'](_0x4f8dbd),_0x36d303[_0x5833d7]['nextPosition']=_0x2cc43e['createPositionFromPath'](_0x5098bd,_0x5e4437);}else'elementEnd'===_0x36d303[_0x5833d7]['type']?(_0x5910be['shift'](),_0x36d303[_0x5833d7]['previousPosition']=_0x2cc43e['createPositionFromPath'](_0x5098bd,_0x5e4437),_0x5e4437['pop'](),_0x5e4437[_0x5e4437['length']-0x1]++,_0x36d303[_0x5833d7]['nextPosition']=_0x2cc43e['createPositionFromPath'](_0x5098bd,_0x5e4437)):(_0x36d303[_0x5833d7]['previousPosition']=_0x2cc43e['createPositionFromPath'](_0x5098bd,_0x5e4437),_0x5a7862?_0x5a7862['_data']+=_0x36d303[_0x5833d7]['item']['data']:_0x5a7862=new wt(_0x36d303[_0x5833d7]['item']['data'],_0x36d303[_0x5833d7]['item']['getAttributes']()),_0x36d303[_0x5833d7+0x1]&&'text'===_0x36d303[_0x5833d7+0x1]['type']&&_0x5ca6c4(_0x5a7862,_0x36d303[_0x5833d7+0x1]['item'])||(_0x5910be[0x0]['_appendChild'](_0x5a7862),_0x5a7862=null),_0x5e4437[_0x5e4437['length']-0x1]+=_0x36d303[_0x5833d7]['item']['offsetSize'],_0x36d303[_0x5833d7]['nextPosition']=_0x2cc43e['createPositionFromPath'](_0x5098bd,_0x5e4437));for(let _0x4095c5=0x0;_0x4095c5<_0x36d303['length'];_0x4095c5++){const _0x267ca6=_0x36d303[_0x4095c5]['previousPosition'],_0x39dbde=_0x36d303[_0x4095c5]['nextPosition'];for(const _0x5e5c07 of _0x36d303[_0x4095c5]['markersStart'])_0x5824d8['set'](_0x5e5c07,{'start':_0x267ca6,'end':null});_0x4e1071('isRemoveSuggestion',_0x4095c5,_0x267ca6,_0x39dbde),_0x4e1071('isAddSuggestion',_0x4095c5,_0x267ca6,_0x39dbde),_0x4e1071('isRemoved',_0x4095c5,_0x267ca6,_0x39dbde),_0x4e1071('isAdded',_0x4095c5,_0x267ca6,_0x39dbde);for(const _0x340350 of _0x36d303[_0x4095c5]['markersEnd']){_0x5824d8['get'](_0x340350)['end']=_0x39dbde;}}for(const [_0x1ece00,_0x1b9773]of _0x5824d8){const _0x1830d8=this['editor']['model']['createRange'](_0x1b9773['start'],_0x1b9773['end']);_0x5098bd['markers']['set'](_0x1ece00,_0x1830d8);}return _0x190a6f['sort']((_0x538ffb,_0x41106f)=>{const _0x4689af=_0x5098bd['markers']['get']('revision:'+_0x538ffb['id']),_0x1edf56=_0x5098bd['markers']['get']('revision:'+_0x41106f['id']);return _0x4689af['start']['isBefore'](_0x1edf56['start'])?-0x1:_0x4689af['start']['isAfter'](_0x1edf56['start'])?0x1:_0x4689af['end']['isBefore'](_0x1edf56['end'])?-0x1:_0x4689af['end']['isAfter'](_0x1edf56['end'])?0x1:'add'===_0x538ffb['type']?-0x1:0x1;}),{'root':_0x5098bd,'changes':_0x190a6f};function _0x4e1071(_0x32f635,_0x54978d,_0x1b972c,_0x1bdcaa){const _0x28ef68=!!_0x36d303[_0x54978d][_0x32f635],_0x490517=_0x28ef68?_0x36d303[_0x54978d][_0x32f635]['userId']:null,_0x52fde1=_0x54978d===_0x36d303['length']-0x1,_0x2589d7=_0x5cdf2b[_0x32f635][0x0],_0x279ba2=_0x40302e['isObject'](_0x36d303[_0x54978d]['item']);!_0xaa8d02[_0x32f635]&&_0x28ef68?_0xaa8d02[_0x32f635]={'start':_0x1b972c,'tapeItem':_0x36d303[_0x54978d],'userId':_0x490517,'type':_0x32f635}:_0xaa8d02[_0x32f635]&&!_0x28ef68?(_0xaa8d02[_0x32f635]['end']=_0x1b972c,_0x35ef80(_0xaa8d02[_0x32f635]),_0xaa8d02[_0x32f635]=null):_0xaa8d02[_0x32f635]&&_0x28ef68&&_0xaa8d02[_0x32f635]['userId']!==_0x490517&&(_0xaa8d02[_0x32f635]['end']=_0x1b972c,_0x2589d7&&_0x2589d7['userId']===_0xaa8d02[_0x32f635]['userId']||_0x35ef80(_0xaa8d02[_0x32f635]),_0xaa8d02[_0x32f635]={'start':_0x1b972c,'tapeItem':_0x36d303[_0x54978d],'userId':_0x490517,'type':_0x32f635}),_0xaa8d02[_0x32f635]&&_0x279ba2&&('elementStart'!==_0x36d303[_0x54978d]['type']||_0x2589d7&&_0x2589d7['userId']===_0x490517||_0x5cdf2b[_0x32f635]['unshift']({'userId':_0x490517,'object':_0x36d303[_0x54978d]['item'],'change':_0xaa8d02[_0x32f635]}),'elementEnd'===_0x36d303[_0x54978d]['type']&&_0x2589d7&&_0x2589d7['object']===_0x36d303[_0x54978d]['item']&&(_0x5cdf2b[_0x32f635]['shift'](),_0xaa8d02[_0x32f635]=_0x2589d7['change'])),_0xaa8d02[_0x32f635]&&_0x52fde1&&(_0xaa8d02[_0x32f635]['end']=_0x1bdcaa,_0x35ef80(_0xaa8d02[_0x32f635]),_0xaa8d02[_0x32f635]=null);}function _0x35ef80({start:_0x14a62d,end:_0x1d542e,tapeItem:_0x4d3707,userId:_0x1a8588,type:_0x1b8f49}){const _0x37a92e=_0x4d3707['item'],_0x41328d=_0x2cc43e['schema']['isBlock'](_0x37a92e)&&!_0x2cc43e['schema']['isLimit'](_0x37a92e),_0x380af5=_0x14a62d['nodeAfter']==_0x1d542e['parent']&&_0x1d542e['isAtStart'];if(_0x41328d&&_0x380af5)return;const _0x1a70c8=_0x2cc43e['createRange'](_0x14a62d,_0x1d542e),_0x560ff1=_0xc7caa9['get'](_0x1a8588),_0x107bea=new r({'author':_0x560ff1,'type':'isAdded'==_0x1b8f49||'isAddSuggestion'==_0x1b8f49?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x1b8f49||'isRemoveSuggestion'==_0x1b8f49},'createdAt':new Date(),'rootName':_0x13fbec});_0x190a6f['push'](_0x107bea),_0x5098bd['markers']['set']('revision:'+_0x107bea['id'],_0x1a70c8);}function _0x5ca6c4(_0x34d8dc,_0x4ee459){const _0x38910a=_0x34d8dc['getAttributes'](),_0xe1d10c=_0x4ee459['getAttributes']();for(const _0x5103fe of _0x38910a){if(_0x5103fe[0x1]!==_0x4ee459['getAttribute'](_0x5103fe[0x0]))return!0x1;_0xe1d10c['next']();}return _0xe1d10c['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x11910b=>{const _0x41f632=_0x11910b['markerName']['split'](':')[0x1],_0x201f01=this['_getChangeFromId'](_0x41f632);if(!_0x201f01)return null;const _0x1fefd1='add'==_0x201f01['type']?'insertion':'deletion',_0x12b387=['ck-suggestion-marker','ck-suggestion-marker-'+_0x1fefd1];return _0x201f01['data']['isSuggestion']&&_0x12b387['push']('ck-suggestion-marker-'+_0x1fefd1+'-new'),this['activeChange']==_0x201f01&&_0x12b387['push']('ck-suggestion-marker--active'),{'classes':_0x12b387,'attributes':{'data-change-id':_0x41f632}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x1d2a99=>{_0x1d2a99['on']('element:pre',(_0x2a60fe,_0x4efc31,_0x59bdda)=>{const _0x1ca2d3=_0x4efc31['viewItem']['getChild'](0x0);if(!_0x1ca2d3||!_0x1ca2d3['is']('element','code'))return;if(!_0x59bdda['consumable']['consume'](_0x1ca2d3,{'attributes':['vid_start','vid_end']}))return;const _0x3422e1=_0x4efc31['modelRange']['start']['nodeAfter'];_0x59bdda['writer']['setAttribute']('vid_start',_0x1ca2d3['getAttribute']('vid_start'),_0x3422e1),_0x59bdda['writer']['setAttribute']('vid_end',_0x1ca2d3['getAttribute']('vid_end'),_0x3422e1);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x4febb3=>{_0x4febb3['on']('element',(_0x1897b5,_0x7c143d,_0x437b02)=>{if(!_0x437b02['consumable']['consume'](_0x7c143d['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x7c143d['modelRange']['isCollapsed'])return;const _0x312f95=_0x7c143d['modelRange']['start']['nodeAfter'];_0x312f95['hasAttribute']('vid_start')||_0x312f95['hasAttribute']('vid')||(_0x437b02['writer']['setAttribute']('vid_start',_0x7c143d['viewItem']['getAttribute']('vid_start'),_0x312f95),_0x437b02['writer']['setAttribute']('vid_end',_0x7c143d['viewItem']['getAttribute']('vid_end'),_0x312f95));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x510d6c=>_0x510d6c['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x2766c4,[,_0x50ad6c])=>{['vid_start','vid_end','vid']['includes'](_0x50ad6c)&&(_0x2766c4['return']=!0x0,_0x2766c4['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x487059=>{_0x487059['on']('attribute:vid',(_0x2a7af9,_0x620ea2,_0x4b379d)=>{if('\x20'!=_0x620ea2['item']['data']||_0x620ea2['item']['parent']['maxOffset']>0x1)return;if(!_0x4b379d['consumable']['consume'](_0x620ea2['item'],_0x2a7af9['name']))return;const _0x3a1ef2=_0x4b379d['writer'],_0x1a2b39=_0x4b379d['mapper']['toViewRange'](_0x620ea2['range']);_0x3a1ef2['wrap'](_0x1a2b39,_0x3a1ef2['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x567f86){const _0x35dc8f=_0x567f86['plugins']['get']('RevisionViewer');return(_0x560abf,_0x29e6a9,_0x319075)=>{const _0x121ded=_0x29e6a9['markerName']['split'](':')[0x1],_0x5c3d6f=_0x35dc8f['_getChangeFromId'](_0x121ded);if(!_0x5c3d6f)return null;const _0x222606='add'==_0x5c3d6f['type']?'split':'merge';if(!_0x319075['consumable']['test'](_0x29e6a9['markerRange'],_0x560abf['name']))return;const _0x22d1d3=_0x29e6a9['markerRange']['getWalker'](),_0xd3c619=_0x29e6a9['markerRange']['start'],_0x14d224=_0x567f86['model']['schema'];let _0x290b99=null,_0xe6a2ac=null,_0x18b28e=!0x1,_0xc5123=!0x1;for(const _0x361949 of _0x22d1d3){const _0x4d1da4=_0x361949['item'];_0x18b28e=_0x18b28e||_0x14d224['isContent'](_0x4d1da4);const _0x142641=_0x319075['mapper']['toViewElement'](_0x4d1da4);if(_0x142641&&_0x142641['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x361949['type']&&(_0x14d224['isBlock'](_0x4d1da4)&&!_0x14d224['isLimit'](_0x4d1da4)&&(_0x4d1da4['nextSibling']||_0xd3c619['isAtEnd']?_0x290b99&&_0x290b99['parent']==_0x4d1da4||(_0x290b99=_0x4d1da4,_0x4b274b(_0x361949['previousPosition']),_0xc5123=!0x0):_0xe6a2ac=_0xe6a2ac||_0x361949['previousPosition']));}function _0x4b274b(_0x16a0e4){const _0x198865=_0x319075['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x222606}),_0x25a822=_0x319075['mapper']['toViewPosition'](_0x16a0e4);_0x5c3d6f['data']['isSuggestion']&&_0x319075['writer']['addClass']('ck-suggestion-marker-'+_0x222606+'-new',_0x198865),_0x35dc8f['activeChange']==_0x5c3d6f&&_0x319075['writer']['addClass']('ck-suggestion-marker--active',_0x198865),_0x319075['writer']['insert'](_0x25a822,_0x198865),_0x319075['mapper']['bindElementToMarker'](_0x198865,_0x29e6a9['markerName']);}_0x18b28e||_0xc5123||!_0xe6a2ac||_0x4b274b(_0xe6a2ac);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x5b5138,_0x1ed18a,_0x29ab90)=>{const _0x4de79a=_0x29ab90['mapper']['markerNameToElements'](_0x1ed18a['markerName']);if(_0x4de79a){for(const _0x192aab of _0x4de79a)(_0x192aab['hasClass']('ck-suggestion-marker-split')||_0x192aab['hasClass']('ck-suggestion-marker-merge'))&&(_0x29ab90['mapper']['unbindElementFromMarkerName'](_0x192aab,_0x1ed18a['markerName']),_0x29ab90['writer']['remove'](_0x192aab));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0xe1f5a3,_0xad5970,_0x21ac0f)=>{const _0x38f2be=_0xad5970['markerName']['split'](':')[0x1],_0x5ca84e=this['_getChangeFromId'](_0x38f2be);if(!_0x5ca84e)return null;const _0x292531='add'==_0x5ca84e['type']?'split':'merge';if(_0x21ac0f['consumable']['test'](_0xad5970['markerRange'],_0xe1f5a3['name']))for(const _0x1d68aa of _0xad5970['markerRange']['getItems']()){if(!_0x1d68aa['is']('element','softBreak'))continue;const _0x5ca235=_0x21ac0f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x292531}),_0x5ab131=_0x21ac0f['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x1d68aa));_0x5ca84e['data']['isSuggestion']&&_0x21ac0f['writer']['addClass']('ck-suggestion-marker-'+_0x292531+'-new',_0x5ca235),this['activeChange']==_0x5ca84e&&_0x21ac0f['writer']['addClass']('ck-suggestion-marker--active',_0x5ca235),_0x21ac0f['writer']['insert'](_0x5ab131,_0x5ca235),_0x21ac0f['mapper']['bindElementToMarker'](_0x5ca235,_0xad5970['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x2f2104=>{for(const _0x3470cd of this['editor']['model']['document']['getRootNames']()){const _0x5bce9f=this['editor']['model']['document']['getRoot'](_0x3470cd),_0x2d5320=this['editor']['editing']['view']['document']['getRoot'](_0x3470cd);if(_0x2d5320){const _0x31c67b=_0x5bce9f['getAttribute']('revisionHistoryAttachChange');if(_0x2f2104['removeAttribute']('data-change-id',_0x2d5320),_0x2f2104['removeClass']('ck-revision-history-root-add',_0x2d5320),_0x2f2104['removeClass']('ck-revision-history-root-remove',_0x2d5320),_0x2f2104['removeClass']('ck-revision-history-root--active',_0x2d5320),_0x31c67b){const _0x19d985=this['_getChangeFromId'](_0x31c67b);if(!_0x19d985)return null;_0x2f2104['setAttribute']('data-change-id',_0x31c67b,_0x2d5320),_0x2f2104['addClass']('ck-revision-history-root-'+_0x19d985['type'],_0x2d5320),this['activeChange']==_0x19d985&&_0x2f2104['addClass']('ck-revision-history-root--active',_0x2d5320);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x3e970c=>'revision-comment:'+_0x3e970c,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x29a605=>'revision-suggestion:'+_0x29a605,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x1abf59=>({'name':'suggestion:'+_0x1abf59,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x3cadec=>{const _0x15e058=_0x3cadec['markerName']['split'](':')[0x1];return'insertion'!=_0x15e058&&'deletion'!=_0x15e058?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x15e058]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x2b23bf,_0x197c59,_0x461d6b)=>{const _0x14c0a4=_0x461d6b['mapper']['markerNameToElements'](_0x197c59['markerName']);if(_0x14c0a4){for(const _0x23ff96 of _0x14c0a4)_0x23ff96['is']('uiElement')&&(_0x461d6b['mapper']['unbindElementFromMarkerName'](_0x23ff96,_0x197c59['markerName']),_0x461d6b['writer']['remove'](_0x23ff96));}},{'priority':'high'});}['_getChangeFromId'](_0x2e1471){return this['_changeIdToChange']['get'](_0x2e1471);}['_getViewForChange'](_0x43c127){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x43c127),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x1b6419,_0x28f804,_0x1392a0,_0x46fd89)=>{_0x46fd89&&this['_balloon']['remove'](_0x46fd89),_0x1392a0&&(this['_balloon']['add']({'view':_0x1392a0,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x5dfcf5=this['editor']['editing'],_0x376f2f=this['_getChangeFromId'](_0x1392a0['changeId']);let _0xb6450;if(_0x376f2f['data']['isOnRoot']){const _0x3129c6=_0x5dfcf5['view']['getDomRoot'](_0x376f2f['rootName']);_0xb6450=Array['from'](_0x3129c6['getClientRects']());}else{const _0x55f8cc=this['editor']['model']['markers']['get']('revision:'+_0x1392a0['changeId']);_0xb6450=Array['from'](_0x5dfcf5['mapper']['markerNameToElements'](_0x55f8cc['name']))['map'](_0x466247=>_0x5dfcf5['view']['domConverter']['mapViewToDom'](_0x466247))['map'](_0xbc4fdb=>Array['from'](_0xbc4fdb['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0xb6450[0x0];return _0xb6450['find'](_0x5c0317=>_0x5c0317['top']-0x3<=this['_activeViewTarget']['y']&&_0x5c0317['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x5c0317['left']-0x3<=this['_activeViewTarget']['x']&&_0x5c0317['right']+0x3>=this['_activeViewTarget']['x'])||_0xb6450[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x3548b4,_0x51da8d,_0x23ee04,_0x4b831d)=>{this['activeView']=_0x23ee04?this['_getViewForChange'](_0x23ee04):null,this['editor']['model']['change'](()=>{const _0x1f7180=this['editor']['editing'];_0x4b831d&&(_0x4b831d['data']['isOnRoot']?_0x1f7180['view']['change'](_0x61dac4=>{_0x61dac4['removeClass']('ck-revision-history-root--active',_0x1f7180['view']['document']['getRoot'](_0x4b831d['rootName']));}):_0x1f7180['reconvertMarker']('revision:'+_0x4b831d['id'])),_0x23ee04&&(_0x23ee04['data']['isOnRoot']?_0x1f7180['view']['change'](_0x130a3f=>{_0x130a3f['addClass']('ck-revision-history-root--active',_0x1f7180['view']['document']['getRoot'](_0x23ee04['rootName']));}):_0x1f7180['reconvertMarker']('revision:'+_0x23ee04['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x4ad197,_0x59c869)=>{if(this['activeChange'])return;const _0x58a13e=this['_findChangeIdFromDomTarget'](_0x59c869['target']),_0x204c1e=this['_changeIdToChange']['get'](_0x58a13e);_0x204c1e?(this['_activeViewTarget']={'x':_0x59c869['domEvent']['x'],'y':_0x59c869['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x204c1e)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x213b98,_0x27a5ff)=>{const _0x3b38e9=this['_findChangeIdFromDomTarget'](_0x27a5ff['target']),_0x54c6ab=this['_changeIdToChange']['get'](_0x3b38e9);_0x54c6ab?(this['_activeViewTarget']={'x':_0x27a5ff['domEvent']['x'],'y':_0x27a5ff['domEvent']['y']},_0x54c6ab===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x54c6ab):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x1935f5){do{const _0x321776=_0x1935f5['getAttribute']('data-change-id');if(_0x321776)return _0x321776;_0x1935f5=_0x1935f5['parent'];}while(_0x1935f5);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x5d58e1=>{for(const _0x30ddd3 of this['editor']['model']['markers'])_0x5d58e1['removeMarker'](_0x30ddd3);});}}function Z(_0x4126fb,_0x3c25b1){return(_0x2566e4,_0xb0767e,_0x40998d)=>{if(!_0x40998d['consumable']['test'](_0xb0767e['markerRange'],_0x2566e4['name']))return;const _0x294500=_0xb0767e['markerRange']['getWalker'](),_0x430524=_0xb0767e['markerRange']['start'],_0x1978db=_0x4126fb['model']['schema'];let _0x475544=null,_0x35b4ef=null,_0x556fc2=!0x1,_0x4904d2=!0x1;for(const _0x1a9b97 of _0x294500){const _0x25880c=_0x1a9b97['item'];_0x556fc2=_0x556fc2||_0x1978db['isContent'](_0x25880c);const _0x5a76b7=_0x40998d['mapper']['toViewElement'](_0x25880c);if(_0x5a76b7&&_0x5a76b7['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1a9b97['type']&&(_0x1978db['isBlock'](_0x25880c)&&!_0x1978db['isLimit'](_0x25880c)&&(_0x25880c['nextSibling']||_0x430524['isAtEnd']?_0x475544&&_0x475544['parent']==_0x25880c||(_0x475544=_0x25880c,_0x451e47(_0x1a9b97['previousPosition']),_0x4904d2=!0x0):_0x35b4ef=_0x35b4ef||_0x1a9b97['previousPosition']));}function _0x451e47(_0x22ee92){const _0x3ca4a3=_0x40998d['mapper']['toViewPosition'](_0x22ee92),_0x50fa5e=_0x40998d['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x3c25b1});_0x40998d['writer']['insert'](_0x3ca4a3,_0x50fa5e),_0x40998d['mapper']['bindElementToMarker'](_0x50fa5e,_0xb0767e['markerName']);}_0x556fc2||_0x4904d2||!_0x35b4ef||_0x451e47(_0x35b4ef);};}class pt extends _0x5d3438{constructor(_0x3f0d62){super(_0x3f0d62);const _0x4fe2cc=_0x3f0d62['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x4fe2cc,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x4fe2cc,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x139627=this['editor'],_0x5f1c42=_0x139627['plugins']['get'](d),_0x106839=_0x5f1c42['isReady']?_0x5f1c42['diff']['newRevisionId']:null;_0x139627['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x106839);}['refresh'](){const {isReady:_0x32c315,isEnabled:_0x166d23,repository:_0x1c4991,diff:_0x2c0e40}=this['editor']['plugins']['get'](d),_0x4c41ec=_0x2c0e40&&_0x1c4991['getLaterVisibleRevision'](_0x2c0e40['newRevisionId']);this['isEnabled']=_0x32c315&&_0x166d23&&Boolean(_0x4c41ec);}}class _t extends _0x5d3438{['_step'];constructor(_0x3e3f8b,{direction:_0x166e64}){super(_0x3e3f8b);const _0x40cd09=_0x3e3f8b['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x166e64?0x1:-0x1,this['listenTo'](_0x40cd09,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x40cd09,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x40cd09,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x35efc3=this['editor'],_0xe7fe46=_0x35efc3['plugins']['get'](d),{isNavigationMode:_0x496d91,currentChangeNumber:_0x1299af}=_0xe7fe46;let _0x1e285a;if(_0xe7fe46['activeChange']=_0x496d91?_0xe7fe46['diff']['changes']['get'](_0x1299af+this['_step']):_0xe7fe46['diff']['changes']['first'],_0xe7fe46['activeChange']['data']['isOnRoot'])_0x1e285a=_0x35efc3['editing']['view']['getDomRoot'](_0xe7fe46['activeChange']['rootName']);else{const _0x5c9415=_0x35efc3['model']['markers']['get']('revision:'+_0xe7fe46['activeChange']['id']);_0x1e285a=_0x594296(_0x35efc3['editing'],_0x5c9415);}_0x527c9e({'target':_0x1e285a,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x4d004f,currentChangeNumber:_0x52ade2,numberOfChanges:_0x5d4325,isReady:_0xc31a13,isEnabled:_0x91de26}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x91de26&&_0xc31a13&&_0x5d4325)&&(!_0x4d004f||(0x1===this['_step']?_0x52ade2<_0x5d4325-0x1:_0x52ade2>0x0));}}class ui extends ts{constructor(_0x338f41){super(_0x338f41);const _0x5bb862=this['bindTemplate'],_0x3b6b78=new te(_0x338f41),_0x50612c=new te(_0x338f41);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',(_0x179d7d,_0x510cf1)=>_0x179d7d&&_0x510cf1>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x48884f,_0x3ad260,_0x4b5d17,_0xe356d6)=>{if(!_0x48884f)return m(_0x338f41,'Loading...');if(!_0x4b5d17)return m(_0x338f41,'No\x20changes');const _0x3d3f35=m(_0x338f41,'NUMBER_OF_CHANGES',_0x4b5d17);return _0xe356d6?m(_0x338f41,'X_OF_Y_CHANGES',[_0x3ad260+0x1,_0x4b5d17]):_0x3d3f35;}),_0x3b6b78['set']({'label':m(_0x338f41,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x2014.494a.75.75\x200\x200\x200\x201.197-.899l-.067-.089-6.992-8a.75.75\x200\x200\x200-1.05-.078l-.079.078-7.008\x208a.75.75\x200\x200\x200\x201.049\x201.066l.08-.078\x206.442-7.354\x206.428\x207.354z\x22/></svg>\x0a'}),_0x50612c['set']({'label':m(_0x338f41,'Show\x20next\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x205.506a.75.75\x200\x200\x201\x201.197.899l-.067.089-6.992\x208a.75.75\x200\x200\x201-1.05.078l-.079-.078-7.008-8a.75.75\x200\x200\x201\x201.049-1.066l.08.078\x206.442\x207.354\x206.428-7.354z\x22/></svg>\x0a'}),_0x3b6b78['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x50612c['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x3b6b78['on']('execute',()=>this['fire']('execute','backward')),_0x50612c['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',_0x5bb862['if']('_isStatusLabelVisible','ck-hidden',_0x123c5a=>!_0x123c5a)]},'children':[{'text':_0x5bb862['to']('isNavigationMode',_0x2d1930=>_0x2d1930?m(_0x338f41,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x338f41,'Total')+':\x20')}]},{'text':_0x5bb862['to']('_statusText')}]},new _0x5d9dde(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x3b6b78,_0x50612c]}]});}}const le='ck-editor__editable__loading-overlay';class de extends _0x2ced25{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x1f73a9=this['editor']['editing']['view'];_0x1f73a9['change'](_0x3cc53c=>{for(const _0x4db451 of _0x1f73a9['document']['roots'])_0x3cc53c['addClass'](le,_0x4db451);});}['hide'](){const _0x800123=this['editor']['editing']['view'];_0x800123['change'](_0x5cd691=>{for(const _0x52efb3 of _0x800123['document']['roots'])_0x5cd691['removeClass'](le,_0x52efb3);});}}class g extends _0x2ced25{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,de];}['init'](){const _0x51ae9c=this['editor'],_0x600afb=_0x51ae9c['plugins']['get'](d),_0x2d8ff7=_0x51ae9c['plugins']['get'](de);_0x51ae9c['ui']['componentFactory']['add']('exitToEditing',_0x11d242=>{const _0x353b43=new te(_0x11d242);return _0x353b43['set']({'label':m(_0x11d242,'Back\x20to\x20editing'),'icon':_0x48dd12['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x353b43,'execute',()=>{_0x51ae9c['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x353b43;}),_0x51ae9c['ui']['componentFactory']['add']('restoreRevision',_0x527a02=>{const _0x3107c5=new te(_0x527a02);return _0x3107c5['set']({'label':m(_0x527a02,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x3107c5['bind']('isEnabled')['to'](_0x51ae9c['commands']['get']('restoreRevision')),this['listenTo'](_0x3107c5,'execute',()=>_0x51ae9c['execute']('restoreRevision')),_0x3107c5;}),_0x51ae9c['ui']['componentFactory']['add']('changesNavigation',_0x25f5fb=>{const _0x5b363f=new ui(_0x25f5fb),_0x587ea9=_0x51ae9c['commands']['get']('showPreviousChange'),_0x162c24=_0x51ae9c['commands']['get']('showNextChange');return _0x5b363f['bind']('isBackwardNavigationEnabled')['to'](_0x587ea9,'isEnabled'),_0x5b363f['bind']('isForwardNavigationEnabled')['to'](_0x162c24,'isEnabled'),_0x5b363f['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x600afb),this['listenTo'](_0x5b363f,'execute',(_0x5ed7f5,_0x521fc8)=>{_0x51ae9c['execute']('forward'===_0x521fc8?'showNextChange':'showPreviousChange');}),_0x5b363f;}),_0x2d8ff7['show'](),_0x600afb['on']('change:isReady',(_0x5d09d0,_0x25c3ac,_0x596a65)=>{_0x596a65?_0x2d8ff7['hide']():_0x2d8ff7['show']();});}}class at extends _0x136d79{['_resizeObserver']=null;constructor(_0x37eb6d,_0x456642){super(_0x37eb6d,_0x456642);const _0x65b711=this['bindTemplate'];this['set']({'label':m(_0x37eb6d,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x37eb6d,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x65b711['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 _0x54614e=this['fieldView']['element'];this['_tooltipString']=_0x54614e['scrollWidth']>_0x54614e['clientWidth']&&_0x54614e['value']||'';}}class ri extends ts{constructor(_0x4c1da6,_0x4bcff1,_0x63ba05){super(_0x4c1da6);const _0x294d9c=new _0x82d7ef();_0x294d9c['set']({'content':'<svg\x20viewBox=\x220\x200\x2011\x2010\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20xmlns:xlink=\x22http://www.w3.org/1999/xlink\x22><path\x20d=\x22M5.5\x205C8.538\x205\x2011\x207.015\x2011\x209.5c0\x20.17-.011.336-.034.5H.034A3.732\x203.732\x200\x200\x201\x200\x209.5C0\x207.015\x202.462\x205\x205.5\x205zm0-5a2.5\x202.5\x200\x201\x201\x200\x205\x202.5\x202.5\x200\x200\x201\x200-5z\x22\x20/></svg>\x0a','viewBox':'0\x200\x2011\x2010'});const _0x4a0414=['ck','ck-revision-history-sidebar__revision-author'];_0x63ba05&&_0x4a0414['push']('ck-revision-history-sidebar__revision-author_creator');const _0x3b296d=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x4c1da6,_0x63ba05?'Revision\x20creator':'Revision\x20author')},'children':[_0x294d9c,_0x4bcff1['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x4a0414},'children':_0x3b296d});}}function oi(_0x1dffc1,_0x1a0009){const _0x4db969=_0x1dffc1['bindTemplate'],_0x51fad2=_0x1dffc1['locale'],_0x556984=_0x4e101c(_0x51fad2);_0x556984['panelPosition']='sw';const _0x23f81d=function(_0x5ca33e,_0x1ffcbb){const _0xf9ccba=function(_0x440624,_0x72e93f){const _0x2db989=_0x440624['locale'],_0x5b69f6={'Compare\x20against\x20selected':m(_0x2db989,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x2db989,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x2db989,'Restore\x20this\x20revision')};return _0x72e93f['map'](_0x3d0027=>{const _0x7004ae=_0x5b69f6[_0x3d0027['name']];return _0x7004ae&&_0x7004ae!==_0x3d0027['name']&&(_0x3d0027['name']=_0x7004ae),_0x3d0027;});}(_0x5ca33e,_0x1ffcbb),_0x2c73f5=new _0x44ade6();for(const _0x37a5d2 of _0xf9ccba){const _0x27799a={'type':'button','model':new _0x2e2573({'label':_0x37a5d2['name'],'class':_0x37a5d2['class'],'withText':!0x0,'role':'menuitem','_action':_0x37a5d2['action']})};_0x27799a['model']['bind']('isEnabled')['to'](_0x5ca33e,'isActionsDropdownOpen',_0x23e2d6=>'function'!=typeof _0x37a5d2['isEnabled']||(!_0x23e2d6||_0x37a5d2['isEnabled'](_0x5ca33e))),_0x2c73f5['add'](_0x27799a);}return _0x2c73f5;}(_0x1dffc1,_0x1a0009);return _0x1dffc1['bind']('isActionsDropdownOpen')['to'](_0x556984,'isOpen'),_0x556984['buttonView']['set']({'label':m(_0x51fad2,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x48dd12['threeVerticalDots']}),_0x556984['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x4db969['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x4db969['to'](_0x2f7241=>_0x2f7241['stopPropagation']())}}),_0x556984['on']('execute',_0xaca148=>{_0x1dffc1['isReady']&&'function'==typeof _0xaca148['source']['_action']&&_0xaca148['source']['_action'](_0x1dffc1);}),to(_0x556984,_0x23f81d,{'role':'menu'}),_0x556984['listenTo'](_0x1dffc1,'change:isActionsDropdownOpen',(_0x2b24f1,_0x5b8ed7,_0x11906c)=>{if(_0x11906c)for(const _0x1b123c of _0x556984['listView']['items']){const _0x508c63=_0x1b123c['children']['first'],_0x3a8ae2=_0x1a0009['find'](_0x169457=>_0x169457['action']===_0x508c63['_action'])['isVisible'];_0x1b123c['isVisible']=void 0x0===_0x3a8ae2||_0x3a8ae2(_0x1dffc1);}}),_0x556984;}class hi extends/* #__PURE__ -- @preserve */
|
|
26
|
-
|
|
23
|
+
import{ObservableMixin as _0xca3c0,uid as _0x14fde0,Collection as _0x3c75d5,logWarning as _0x7a06ec,FocusTracker as _0x509ae8,KeystrokeHandler as _0x1ad405,scrollViewportToShowTarget as _0x30b8fc,ResizeObserver as at,ElementReplacer as ht,CKEditorError as _0x50d770}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x402cfd,set as _0x1667af,unset as _0x65be2,isEqual as _0x2a70bd}from'lodash-es';import{Plugin as _0x3f9988,PendingActions as _0x3175aa,icons as _0x24ec60,Command as _0x1104bf,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x4e5665,getMarkerDomElement as _0xffab5d,ConfirmMixin as _0x582894,sanitizeEditorConfig as _0x2faac4}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x46b162,Element as ft,Range as vt,ViewUIElement as _0x1f07d6,ViewRawElement as _0x3132b0,ViewEmptyElement as _0x494f2d,ViewAttributeElement as _0x1afc78,ViewContainerElement as _0x37fdec,Position as gt,ViewText as _0x297344,ViewElement as _0x45205b,DocumentFragment as mt,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as _0x472d28,injectCssTransitionDisabler as ts,submitHandler as _0x189732,LabeledFieldView as nt,createLabeledInputText as _0x5256ca,createDropdown as _0x5d3262,ListView as _0x32fb44,ListItemView as _0x315835,ButtonView as _0x41e0b7,MenuBarMenuView as _0x5a2e0b,MenuBarMenuListView as _0x398387,MenuBarMenuListItemView as _0x38bd01,MenuBarMenuListItemButtonView as _0x30c1b2,ContextualBalloon as _0x674e75,ToolbarSeparatorView as _0x4ec210,IconView as _0x76fed6,addListToDropdown as _0x3e7f8c,ViewModel as to,EditorUI as st,normalizeToolbarConfig as ot,BoxedEditorUIView as ct,StickyPanelView as ut,ToolbarView as lt,InlineEditableUIView as dt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x568d85}from'luxon';class a extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0xca3c0(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x5640e7){super(),this['id']=_0x5640e7['id']||_0x14fde0(),this['creator']=_0x5640e7['creator']||null,this['authors']=_0x5640e7['authors']||[],this['diffData']=_0x5640e7['diffData']||null,this['toVersion']=_0x5640e7['toVersion']||0x0,this['fromVersion']=_0x5640e7['fromVersion']||0x0,this['set']('name',_0x5640e7['name']||''),this['set']('createdAt',_0x5640e7['createdAt']||new Date()),this['set']('attributes',_0x5640e7['attributes']||{});}['setName'](_0x511e90){this['_update']({'name':_0x511e90});}['setAttribute'](_0x20fa22,_0x5a2596){const _0x180caf=_0x402cfd(this['attributes']);_0x1667af(_0x180caf,_0x20fa22,_0x5a2596),this['_update']({'attributes':_0x180caf});}['removeAttribute'](_0x5c2ff3){const _0x4f7254=_0x402cfd(this['attributes']);_0x65be2(_0x4f7254,_0x5c2ff3),this['_update']({'attributes':_0x4f7254});}['_update'](_0x2d04c0,_0x2c67b6=!0x1){let _0x5b8b2c=!0x1;const _0x4ffbd0={'id':this['id']},_0x4200e9=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x1957b3 of _0x4200e9){const _0x3a11b9=_0x2d04c0[_0x1957b3];void 0x0!==_0x3a11b9&&_0x3a11b9!==this[_0x1957b3]&&(this[_0x1957b3]=_0x3a11b9,_0x4ffbd0[_0x1957b3]=_0x3a11b9,_0x5b8b2c=!0x0);}_0x5b8b2c&&(_0x4ffbd0['authors']&&(_0x4ffbd0['authorsIds']=_0x4ffbd0['authors']['map'](_0x9067ef=>_0x9067ef['id']),delete _0x4ffbd0['authors']),this['fire']('_update',_0x4ffbd0,_0x2c67b6));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x44d371=>_0x44d371['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x3f9988{['_revisions'];static get['requires'](){return[_0x4e5665];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x258a0f){super(_0x258a0f),this['_revisions']=new _0x3c75d5();}['afterInit'](){!async function(_0x318fdb){const _0x15ae78=_0xca34e4([0x69,0x63,0x61,0x32,0x67,0x37,0x4a,0x48,0x31,0x5a,0x45,0x6c,0x59,0x6d,0x54,0x74,0x79,0x34,0x70,0x53,0x64,0x7a,0x57,0x36,0x41,0x58,0x42,0x44,0x4d,0x68,0x38,0x33,0x51,0x62,0x6f,0x6a,0x46,0x49,0x76,0x78,0x4c,0x35,0x30,0x73,0x47,0x50,0x71,0x4e,0x77,0x65,0x6b,0x56,0x55,0x52,0x4b,0x43,0x39,0x6e,0x75,0x4f,0x66,0x72]),_0x299b3b=0xeb829,_0x239e9c=0x7cf7c95e,_0x4cb042=0x7cf09706^_0x239e9c,_0x19b3d1=window[_0xca34e4([0x44,0x61,0x74,0x65])][_0xca34e4([0x6e,0x6f,0x77])](),_0x50dd66=_0x318fdb[_0xca34e4([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1fd9b4=new window[(_0xca34e4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x486550=>{_0x50dd66[_0xca34e4([0x6f,0x6e,0x63,0x65])](_0xca34e4([0x72,0x65,0x61,0x64,0x79]),_0x486550);}),_0x7bcf8={[_0xca34e4([0x6b,0x74,0x79])]:_0xca34e4([0x45,0x43]),[_0xca34e4([0x75,0x73,0x65])]:_0xca34e4([0x73,0x69,0x67]),[_0xca34e4([0x63,0x72,0x76])]:_0xca34e4([0x50,0x2d,0x32,0x35,0x36]),[_0xca34e4([0x78])]:_0xca34e4([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]),[_0xca34e4([0x79])]:_0xca34e4([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]),[_0xca34e4([0x61,0x6c,0x67])]:_0xca34e4([0x45,0x53,0x32,0x35,0x36])},_0xa7c81b=_0x50dd66[_0xca34e4([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xca34e4([0x67,0x65,0x74])](_0xca34e4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x76ebaa(){let _0x3bc472,_0x2b0864=null,_0x12a00b=null;try{if(_0xa7c81b==_0xca34e4([0x47,0x50,0x4c]))return _0xca34e4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3bc472=_0x46c133(),!_0x3bc472)return _0xca34e4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3bc472[_0xca34e4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x12a00b=_0x51b152(_0x3bc472[_0xca34e4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3bc472[_0xca34e4([0x6a,0x74,0x69])])),await _0x566c54()?_0x2c2ca1()?_0x6594c()?_0xca34e4([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x51649a()?(_0x3bc472[_0xca34e4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xca34e4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2b0864=_0x5ba36c(_0xca34e4([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3bc472[_0xca34e4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xca34e4([0x74,0x72,0x69,0x61,0x6c])&&(_0x2b0864=_0x5ba36c(_0xca34e4([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x54ea7d()):_0xca34e4([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xca34e4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xca34e4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x1b9e3e){return _0xca34e4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x6594c(){const _0x448024=[_0xca34e4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xca34e4([0x74,0x72,0x69,0x61,0x6c])][_0xca34e4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3bc472[_0xca34e4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x19b3d1/0x3e8:0xe10*_0x4cb042;return _0x3bc472[_0xca34e4([0x65,0x78,0x70])]<_0x448024;}function _0x2c2ca1(){const _0x5bb8c1=_0x3bc472[_0xca34e4([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x5bb8c1)return!0x1;if(_0x5bb8c1[_0xca34e4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xca34e4([0x2a])))return!0x0;if(_0x5bb8c1[_0xca34e4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xca34e4([0x52,0x48])))return!0x0;if(_0x5bb8c1[_0xca34e4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xca34e4([0x52,0x52,0x48]))){if(_0x1ff81d())return!0x0;if(_0x463d05()||_0x43bf57())return!0x0;}return!0x1;}function _0x51649a(){const _0x546d82=_0x3bc472[_0xca34e4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x546d82||0x0==_0x546d82[_0xca34e4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4e4329}=new URL(window[_0xca34e4([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x546d82[_0xca34e4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e4329))return!0x0;const _0x428918=_0x4e4329[_0xca34e4([0x73,0x70,0x6c,0x69,0x74])](_0xca34e4([0x2e]));return _0x546d82[_0xca34e4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5bcead=>_0x5bcead[_0xca34e4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xca34e4([0x2a])))[_0xca34e4([0x6d,0x61,0x70])](_0x318968=>_0x318968[_0xca34e4([0x73,0x70,0x6c,0x69,0x74])](_0xca34e4([0x2e])))[_0xca34e4([0x73,0x6f,0x6d,0x65])](_0x2724f4=>_0x428918[_0xca34e4([0x65,0x76,0x65,0x72,0x79])]((_0x89843a,_0x4799ac)=>_0x2724f4[_0x4799ac]===_0x89843a||_0x2724f4[_0x4799ac]===_0xca34e4([0x2a])));}function _0x54ea7d(){return _0x2b0864&&_0x12a00b?new window[(_0xca34e4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x35c13e,_0x417ef2)=>{_0x2b0864[_0xca34e4([0x74,0x68,0x65,0x6e])](_0x35c13e,_0x417ef2),_0x12a00b[_0xca34e4([0x74,0x68,0x65,0x6e])](_0x58d0f4=>{_0x58d0f4!=_0xca34e4([0x56,0x61,0x6c,0x69,0x64])&&_0x35c13e(_0x58d0f4);},_0x417ef2);}):_0x2b0864||_0x12a00b||_0xca34e4([0x56,0x61,0x6c,0x69,0x64]);}}function _0x51b152(_0x505b30,_0x3132e2){return new window[(_0xca34e4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x588be8=>{if(_0x488111())return _0x588be8(_0xca34e4([0x56,0x61,0x6c,0x69,0x64]));_0x388111(),_0x50dd66[_0xca34e4([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xca34e4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xd79465=!0x1;const _0x54a56c=_0x14fde0();function _0x25d2c3(_0x5a9f16){return!!_0x5a9f16&&(typeof _0x5a9f16===_0xca34e4([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5a9f16===_0xca34e4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5a9f16[_0xca34e4([0x74,0x68,0x65,0x6e])]===_0xca34e4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5a9f16[_0xca34e4([0x63,0x61,0x74,0x63,0x68])]===_0xca34e4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x322fe1(_0x4eb4d4){_0x2fccf6(_0x4eb4d4)[_0xca34e4([0x74,0x68,0x65,0x6e])](_0x328fa7=>{if(!_0x328fa7||_0x328fa7[_0xca34e4([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xca34e4([0x6f,0x6b]))return _0xca34e4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xd11f50(_0x150f99(_0x54a56c+_0x3132e2))!=_0x328fa7[_0xca34e4([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xca34e4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xca34e4([0x56,0x61,0x6c,0x69,0x64]);})[_0xca34e4([0x74,0x68,0x65,0x6e])](_0x2cebcb=>(_0x4c510e(),_0x2cebcb),()=>{const _0x371954=_0x24e4c5();return null==_0x371954?(_0x4c510e(),_0xca34e4([0x56,0x61,0x6c,0x69,0x64])):_0xca34e4(_0x19b3d1-_0x371954>(0x58fb4d5e^_0x239e9c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xca34e4([0x74,0x68,0x65,0x6e])](_0x588be8)[_0xca34e4([0x63,0x61,0x74,0x63,0x68])](()=>{_0x588be8(_0xca34e4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2d5d5f=0x7cc127de^_0x239e9c;function _0x4c510e(){const _0x226a61=_0xca34e4([0x6c,0x6c,0x63,0x74,0x2d])+_0xd11f50(_0x150f99(_0x505b30)),_0x553171=_0x4f3f8b(_0xd11f50(window[_0xca34e4([0x4d,0x61,0x74,0x68])][_0xca34e4([0x63,0x65,0x69,0x6c])](_0x19b3d1/_0x2d5d5f)));window[_0xca34e4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xca34e4([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x226a61,_0x553171);}function _0x24e4c5(){const _0x437a59=_0xca34e4([0x6c,0x6c,0x63,0x74,0x2d])+_0xd11f50(_0x150f99(_0x505b30)),_0x4db891=window[_0xca34e4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xca34e4([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x437a59);return _0x4db891?window[_0xca34e4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4f3f8b(_0x4db891),0x10)*_0x2d5d5f:null;}function _0x2fccf6(_0x3a4b65){return new window[(_0xca34e4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x590c8f,_0x432f38)=>{_0x3a4b65[_0xca34e4([0x74,0x68,0x65,0x6e])](_0x590c8f,_0x432f38),window[_0xca34e4([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x432f38,0x7cf61d9e^_0x239e9c);});}}_0x50dd66[_0xca34e4([0x6f,0x6e])](_0xca34e4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x970556,_0xd9e4c0)=>{if(_0xd9e4c0[0x0]!=_0x505b30)return _0x588be8(_0xca34e4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xd9e4c0[0x1]={..._0xd9e4c0[0x1],[_0xca34e4([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x54a56c};},{[_0xca34e4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xca34e4([0x68,0x69,0x67,0x68])}),_0x50dd66[_0xca34e4([0x6f,0x6e])](_0xca34e4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x7773d2=>{_0x25d2c3(_0x7773d2[_0xca34e4([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xd79465=!0x0,_0x322fe1(_0x7773d2[_0xca34e4([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xca34e4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xca34e4([0x6c,0x6f,0x77])}),_0x1fd9b4[_0xca34e4([0x74,0x68,0x65,0x6e])](()=>{_0xd79465||_0x588be8(_0xca34e4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x488111(){return _0x50dd66[_0xca34e4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xca34e4([0x76,0x69,0x65,0x77])][_0xca34e4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xca34e4([0x61,0x75,0x74,0x6f]);}function _0x388111(){_0x50dd66[_0xca34e4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xca34e4([0x76,0x69,0x65,0x77])][_0xca34e4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xca34e4([0x61,0x75,0x74,0x6f]);}}function _0x5ba36c(_0x14981c){const _0x17a19c=[new window[(_0xca34e4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x54efa4=>setTimeout(_0x54efa4,0x7cfef792^_0x239e9c)),_0x1fd9b4[_0xca34e4([0x74,0x68,0x65,0x6e])](()=>new window[(_0xca34e4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x538e14=>{const _0x29ebd7=0x7cf7c959^_0x239e9c,_0x550be5=_0x318fdb[_0xca34e4([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x3d6168(){_0x550be5[_0xca34e4([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x29ebd7&&_0x538e14();}_0x3d6168(),_0x550be5[_0xca34e4([0x6f,0x6e])](_0xca34e4([0x61,0x64,0x64]),_0x3d6168);})),new window[(_0xca34e4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x148a23=>{function _0x4cb332(){for(const _0x329a28 in window)if(window[_0xca34e4([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0xca34e4([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x329a28))&&window[_0x329a28]==_0x299b3b)return _0x148a23();_0x50dd66[_0xca34e4([0x73,0x74,0x61,0x74,0x65])]!=_0xca34e4([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0xca34e4([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4cb332,0x7cf7dad6^_0x239e9c);}_0x2d6d3c(_0xca34e4([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x4cb332();})];return window[_0xca34e4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xca34e4([0x72,0x61,0x63,0x65])](_0x17a19c)[_0xca34e4([0x74,0x68,0x65,0x6e])](()=>_0x14981c);}async function _0x4c30db(){if(await _0x1fd9b4,_0x2d6d3c(_0xca34e4([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x2d97a9=_0x318fdb[_0xca34e4([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x2f2311=_0x318fdb[_0xca34e4([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])](_0x2d97a9[_0xca34e4([0x69,0x64])]),_0xdf771b=_0x17f9c3(_0xca34e4([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0xdf771b[_0xca34e4([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x2d97a9['id'],_0x2f2311?_0x2f2311['id']:null,!0x0),_0xdf771b[_0xca34e4([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0xca34e4([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0xdf771b[_0xca34e4([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0xdf771b[_0xca34e4([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x158c74,void(_0xdf771b[_0xca34e4([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x158c74);}if(_0x2d6d3c(_0xca34e4([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x2a0a9b=_0x17f9c3(_0xca34e4([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x2a0a9b[_0xca34e4([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0xca34e4([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x2a0a9b[_0xca34e4([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x2a0a9b[_0xca34e4([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x158c74,_0x2a0a9b[_0xca34e4([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x158c74;}_0x50dd66[_0xca34e4([0x6d,0x6f,0x64,0x65,0x6c])][_0xca34e4([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x158c74,_0x50dd66[_0xca34e4([0x6d,0x6f,0x64,0x65,0x6c])][_0xca34e4([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x158c74,_0x50dd66[_0xca34e4([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xca34e4([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1ff81d(){return _0x2d6d3c(_0xca34e4([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x17f9c3(_0xca34e4([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0xca34e4([0x73,0x74,0x61,0x74,0x65])]==_0xca34e4([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x463d05(){return _0x2d6d3c(_0xca34e4([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 _0x43bf57(){return _0x2d6d3c(_0xca34e4([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0xbad8b8(_0x5c6c8a){const _0x5b4133=_0x16793c();_0x50dd66[_0x5b4133]=_0xca34e4([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])+_0x5c6c8a,_0x5c6c8a[_0xca34e4([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0xca34e4([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x16793c()]=_0x299b3b),_0x5c6c8a!=_0xca34e4([0x56,0x61,0x6c,0x69,0x64])&&_0x4c30db();}function _0x16793c(){const _0x4a189c=window[_0xca34e4([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xca34e4([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xca34e4([0x6e,0x6f,0x77])]())[_0xca34e4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xca34e4([0x2e]),'');let _0x409a4e=_0xca34e4([0x69]);for(let _0x1596c1=0x0;_0x1596c1<_0x4a189c[_0xca34e4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1596c1+=0x2){let _0x4ecda8=window[_0xca34e4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4a189c[_0xca34e4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1596c1,_0x1596c1+0x2));_0x4ecda8>=_0x15ae78[_0xca34e4([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4ecda8-=_0x15ae78[_0xca34e4([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x409a4e+=_0x15ae78[_0x4ecda8];}return _0x409a4e;}function _0x46c133(){const _0x33ee5b=_0xa7c81b[_0xca34e4([0x73,0x70,0x6c,0x69,0x74])](_0xca34e4([0x2e]));if(0x3!=_0x33ee5b[_0xca34e4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4da786(_0x33ee5b[0x1]);function _0x4da786(_0x2d40cd){const _0x3dca10=_0x2bf7fc(_0x2d40cd);return _0x3dca10&&_0x2a271f()?_0x3dca10:null;function _0x2a271f(){const _0x146812=_0x3dca10[_0xca34e4([0x6a,0x74,0x69])],_0xac9c=window[_0xca34e4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x146812[_0xca34e4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x146812[_0xca34e4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xde7edb={..._0x3dca10,[_0xca34e4([0x6a,0x74,0x69])]:_0x146812[_0xca34e4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x146812[_0xca34e4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xde7edb[_0xca34e4([0x76,0x63])],_0x150f99(_0xde7edb)==_0xac9c;}}}async function _0x566c54(){let _0x1c60f8=!0x0;try{const _0x5d1b3f=_0xa7c81b[_0xca34e4([0x73,0x70,0x6c,0x69,0x74])](_0xca34e4([0x2e])),[_0x432033,_0x17467f,_0x9bf7d9]=_0x5d1b3f;return _0x43aeb6(_0x432033),await _0x223648(_0x432033,_0x17467f,_0x9bf7d9),_0x1c60f8;}catch(_0x172cdf){return!0x1;}function _0x43aeb6(_0x200052){const _0x423f71=_0x2bf7fc(_0x200052);_0x423f71&&_0x423f71[_0xca34e4([0x61,0x6c,0x67])]==_0xca34e4([0x45,0x53,0x32,0x35,0x36])||(_0x1c60f8=!0x1);}async function _0x223648(_0x1fe93c,_0x30609c,_0xb5e34e){const _0x335030=window[_0xca34e4([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xca34e4([0x66,0x72,0x6f,0x6d])](_0x5d4384(_0xb5e34e),_0x3c4a91=>_0x3c4a91[_0xca34e4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2000b0=new window[(_0xca34e4([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xca34e4([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1fe93c+_0xca34e4([0x2e])+_0x30609c),_0x24e8e9=window[_0xca34e4([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xca34e4([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x24e8e9)return;const _0x31b979=await _0x24e8e9[_0xca34e4([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xca34e4([0x6a,0x77,0x6b]),_0x7bcf8,{[_0xca34e4([0x6e,0x61,0x6d,0x65])]:_0xca34e4([0x45,0x43,0x44,0x53,0x41]),[_0xca34e4([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xca34e4([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xca34e4([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x24e8e9[_0xca34e4([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xca34e4([0x6e,0x61,0x6d,0x65])]:_0xca34e4([0x45,0x43,0x44,0x53,0x41]),[_0xca34e4([0x68,0x61,0x73,0x68])]:{[_0xca34e4([0x6e,0x61,0x6d,0x65])]:_0xca34e4([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x31b979,_0x335030,_0x2000b0)||(_0x1c60f8=!0x1);}}function _0x2bf7fc(_0x3021e1){return _0x3021e1[_0xca34e4([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xca34e4([0x65,0x79]))?JSON[_0xca34e4([0x70,0x61,0x72,0x73,0x65])](_0x5d4384(_0x3021e1)):null;}function _0x5d4384(_0x29d354){return window[_0xca34e4([0x61,0x74,0x6f,0x62])](_0x29d354[_0xca34e4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xca34e4([0x2b]))[_0xca34e4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xca34e4([0x2f])));}function _0x150f99(_0x1f9883){let _0x959596=0x1505;function _0xb4f976(_0x3f8cf5){for(let _0x3f1d45=0x0;_0x3f1d45<_0x3f8cf5[_0xca34e4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3f1d45++){const _0x5a9040=_0x3f8cf5[_0xca34e4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3f1d45);_0x959596=(_0x959596<<0x5)+_0x959596+_0x5a9040,_0x959596&=_0x959596;}}function _0x3d73ee(_0x163142){Array[_0xca34e4([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x163142)?_0x163142[_0xca34e4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3d73ee):_0x163142&&typeof _0x163142==_0xca34e4([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xca34e4([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x163142)[_0xca34e4([0x73,0x6f,0x72,0x74])]()[_0xca34e4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3478cf,_0x3684b4])=>{_0xb4f976(_0x3478cf),_0x3d73ee(_0x3684b4);}):_0xb4f976(window[_0xca34e4([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x163142));}return _0x3d73ee(_0x1f9883),_0x959596>>>0x0;}function _0xd11f50(_0xd389f9){return _0xd389f9[_0xca34e4([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xca34e4([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xca34e4([0x30]));}function _0x4f3f8b(_0x29edad){return _0x29edad[_0xca34e4([0x73,0x70,0x6c,0x69,0x74])]('')[_0xca34e4([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xca34e4([0x6a,0x6f,0x69,0x6e])]('');}function _0x2d6d3c(_0x4780e6){return _0x50dd66[_0xca34e4([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xca34e4([0x68,0x61,0x73])](_0x4780e6);}function _0x17f9c3(_0x1f7670){return _0x50dd66[_0xca34e4([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xca34e4([0x67,0x65,0x74])](_0x1f7670);}function _0x158c74(){}function _0xca34e4(_0x564d98){return _0x564d98['map'](_0x1e00bd=>String['fromCharCode'](_0x1e00bd))['join']('');}_0xbad8b8(await _0x76ebaa());}(this);}['createRevision'](_0x189f81){const _0x745352=this['editor']['plugins']['get']('Users');return new a({'id':_0x189f81['id'],'name':_0x189f81['name'],'creator':_0x189f81['creatorId']?_0x745352['getUser'](_0x189f81['creatorId']):null,'diffData':_0x189f81['diffData']||_0x189f81['data'],'authors':_0x189f81['authorsIds']['map'](_0x2fd519=>_0x745352['getUser'](_0x2fd519)),'createdAt':new Date(_0x189f81['createdAt']),'attributes':_0x189f81['attributes'],'fromVersion':_0x189f81['fromVersion'],'toVersion':_0x189f81['toVersion']});}['addRevision'](_0x504881,_0x101204=0x0){this['_revisions']['add'](_0x504881,_0x101204);}['getRevision'](_0x48aa87){return this['_revisions']['get'](_0x48aa87);}['getRevisions'](_0x235358={'toJSON':!0x1}){const _0x1887c8=Array['from'](this['_revisions']);return _0x1887c8['reverse'](),_0x235358['toJSON']?_0x1887c8['map'](_0x194533=>_0x194533['toJSON']()):_0x1887c8;}['getIndex'](_0x4f6345){return this['_revisions']['getIndex'](_0x4f6345);}['getEarlierVisibleRevision'](_0x5cc632){const [,_0x1c84da]=this['getRevisionsIterator'](_0x5cc632,{'direction':'earlier'});return _0x1c84da;}['getLaterVisibleRevision'](_0x6acd21){const [,_0x39b02]=this['getRevisionsIterator'](_0x6acd21,{'direction':'later'});return _0x39b02;}['getRevisionsInDiff'](_0x5ce754){const _0x813d09=[];for(const _0xc7d01c of this['getRevisionsIterator'](_0x5ce754['newRevisionId']))if(_0x813d09['push'](_0xc7d01c),_0xc7d01c['id']===_0x5ce754['oldRevisionId'])break;return _0x813d09;}*['getRevisionsIterator'](_0xb46fb5,{direction:_0x52b6a6='earlier',filter:_0x3788ca=()=>!0x0}={}){const _0x878cdb='earlier'===_0x52b6a6?0x1:-0x1;let _0x8b3b87=this['_revisions']['get'](_0xb46fb5),_0x117bbd=this['getIndex'](_0x8b3b87);for(yield _0x8b3b87;_0x8b3b87;){if(_0x117bbd+=_0x878cdb,_0x8b3b87=this['getRevision'](_0x117bbd),!_0x8b3b87)return;_0x3788ca(_0x8b3b87)&&(yield _0x8b3b87);}}}function m(_0x32129f,_0x27797c,_0x55b341){const t=_0x32129f['t'];switch(_0x27797c){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'},_0x55b341);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x55b341);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const P={'c':_0x37fdec,'a':_0x1afc78,'e':_0x494f2d,'r':_0x3132b0,'u':_0x1f07d6};class l extends _0x3f9988{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x4e5665,j,_0x3175aa];}constructor(_0x3139aa){super(_0x3139aa),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x18b148=_0x14fde0();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x18b148},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x3454b9=this['repository']['getRevision'](0x0),_0x4fae59=_0x3454b9&&null===_0x3454b9['creator']?_0x3454b9:null;if(this['_continueCurrentRevision']=!!_0x4fae59&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x1d1938=this['_source']['getCurrentRevisionId'](),_0x589178=this['repository']['getRevision'](_0x1d1938);if(_0x589178)this['_startingVersion']=_0x589178['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0xee5b3c=this['_source']['history']['_operations']['find'](_0x29bf73=>!_0x29bf73['_isInit']),_0x2ecab3=_0xee5b3c?_0xee5b3c['baseVersion']:this['_source']['history']['version'];_0x3454b9?(_0x3454b9['toVersion']<_0x2ecab3&&_0x3454b9['_update']({'toVersion':_0x2ecab3}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x4fae59['id'],this['_startingVersion']=_0x4fae59['fromVersion']):(this['_startingVersion']=_0x3454b9['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x2ecab3,this['_continueCurrentRevision']=!0x1);}}else _0x4fae59&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x4fae59['toVersion'],this['editor']['model']['document']['history']['version']),_0x4fae59['fromVersion']===_0x4fae59['toVersion']?(0x0!==_0x4fae59['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x4fae59['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x4fae59['id'],this['_startingVersion']=_0x4fae59['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',_0x1d3589=>!_0x1d3589),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x199cf6=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x114270;for(const _0x17fd48 in _0x199cf6){const _0x52dccb=_0x17fd48,_0x58a8e1=_0x199cf6[_0x52dccb];if('revisionHistoryLicenseKeyValid'==_0x58a8e1||'revisionHistoryLicenseKeyInvalid'==_0x58a8e1||'revisionHistoryLicenseKeyExpired'==_0x58a8e1||'revisionHistoryLicenseKeyDomainLimit'==_0x58a8e1||'revisionHistoryLicenseKeyNotAllowed'==_0x58a8e1||'revisionHistoryLicenseKeyEvaluationLimit'==_0x58a8e1||'revisionHistoryLicenseKeyTrialLimit'==_0x58a8e1||'revisionHistoryLicenseKeyUsageLimit'==_0x58a8e1){delete _0x199cf6[_0x52dccb],_0x114270=_0x58a8e1,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x114270&&_0x199cf6['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x114270&&_0x199cf6['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x114270&&_0x199cf6['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x114270&&_0x199cf6['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x114270&&_0x199cf6['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x114270&&_0x199cf6['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x114270&&_0x199cf6['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x4635de=this['repository']['getRevision'](0x0),_0x50fb9b=await this['getRevisionDocumentData'](_0x4635de),_0x2e0b40=await this['getRevisionRootsAttributes'](_0x4635de);this['_replaceEditorDataWithRevisionData'](_0x50fb9b,_0x2e0b40);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x612cf3){this['_source']=_0x612cf3;}async['update'](){const _0x23aca7=await this['_source']['getLatestVersion']();if(_0x23aca7>this['currentRevision']['toVersion']){await this['_loadState']();const _0x1e1fa1=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x23aca7});_0x1e1fa1['authors']=_0x1e1fa1['authorsIds']['map'](_0x3f2b27=>this['editor']['plugins']['get']('Users')['getUser'](_0x3f2b27)),this['currentRevision']['_update'](_0x1e1fa1);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0x499dda={},_0x2c5f6d=null){const _0x49790a=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x2c5f6d>this['currentRevision']['toVersion']&&(_0x2c5f6d=null),null===_0x2c5f6d&&(_0x2c5f6d=await this['_source']['getLatestVersion']());const _0x51f5b1=this['_getFromVersion'](_0x2c5f6d),_0x204559=this['buildRevisionData']({'from':_0x51f5b1,'to':_0x2c5f6d});if(this['currentRevision']['toVersion']<_0x2c5f6d){const _0x26b84a=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x2c5f6d,'to':_0x2c5f6d});_0x26b84a['authors']=[],_0x26b84a['authorsIds']=[],_0x26b84a['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x26b84a,!0x0),delete _0x26b84a['authors'],_0x49790a['push'](_0x26b84a);}_0x499dda['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x499dda['name']=_0x499dda['name']||null,_0x499dda['id']=_0x499dda['id']||_0x14fde0(),_0x499dda={..._0x499dda,..._0x204559};const _0x110922=this['addRevisionData'](_0x499dda);_0x49790a['push'](_0x499dda);const _0x12a9d6=this['repository']['getIndex'](_0x110922);if(0x0!==_0x12a9d6){const _0x12b052=this['repository']['getRevision'](_0x12a9d6-0x1);if(_0x12b052['fromVersion']!==_0x2c5f6d){const _0x554e7d=this['_revisionDataBuilder']['getData'](_0x2c5f6d,_0x12b052['toVersion']),_0x2c613e={'id':_0x12b052['id'],'diffData':_0x554e7d['diffData'],'authorsIds':_0x554e7d['authorsIds'],'authors':_0x554e7d['authorsIds']['map'](_0x3b38df=>this['editor']['plugins']['get']('Users')['getUser'](_0x3b38df)),'fromVersion':_0x2c5f6d};_0x12b052===this['currentRevision']&&(_0x2c613e['createdAt']=new Date(_0x499dda['createdAt']['getTime']()+0xa)),_0x12b052['_update'](_0x2c613e,!0x0),delete _0x2c613e['authors'],_0x49790a['push'](_0x2c613e);}}if(this['adapter']){for(const _0x45a514 of _0x49790a)this['_bufferUpdate'](_0x45a514['id'],_0x45a514,!0x0);this['sendBufferedUpdates']();}return _0x110922;}['addRevisionData'](_0x832ae1){const _0xee9f6d=this['repository']['createRevision'](_0x832ae1);return this['adapter']&&_0xee9f6d['on']('_update',(_0x3f24b1,_0x23843a,_0x26421b)=>{_0x26421b||(this['_bufferUpdate'](_0x23843a['id'],_0x23843a,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0xee9f6d,this['_findInsertionIndex'](_0xee9f6d)),_0xee9f6d;}async['getRevisionDocumentData'](_0x58dd24){await this['_loadRevisionData'](_0x58dd24);const _0x15abad={};for(const _0x5273b9 in _0x58dd24['diffData']){if(_0x58dd24['diffData'][_0x5273b9]['attachChange']&&!_0x58dd24['diffData'][_0x5273b9]['attachChange']['isAttached'])continue;const _0x49e1a9=this['_removeRevisionMarkers'](JSON['parse'](_0x58dd24['diffData'][_0x5273b9]['insertions'])),_0x6e2b85=this['editor']['editing']['view']['document'],_0x5c94d6=new _0x46b162(_0x6e2b85,_0x49e1a9['map'](_0x2540de=>C(_0x2540de,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x15abad[_0x5273b9]=this['editor']['data']['processor']['toData'](_0x5c94d6),this['editor']['data']['processor']['useFillerType']('default');}return _0x15abad;}async['getRevisionRootsAttributes'](_0x2f39d3){await this['_loadRevisionData'](_0x2f39d3);const _0x5422ec={};for(const _0x1bdbb8 in _0x2f39d3['diffData'])_0x2f39d3['diffData'][_0x1bdbb8]['attachChange']&&!_0x2f39d3['diffData'][_0x1bdbb8]['attachChange']['isAttached']||(_0x5422ec[_0x1bdbb8]=_0x2f39d3['diffData'][_0x1bdbb8]['attributesAfter']||{});return _0x5422ec;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x51c888=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x1b1e13=0x0;_0x1b1e13<_0x51c888['length'];_0x1b1e13++){const _0x58882e=_0x51c888[_0x1b1e13];let _0x4272d0=!0x1;for(const _0xa1a7ca of Object['keys'](_0x58882e))void 0x0===_0x58882e[_0xa1a7ca]?delete _0x58882e[_0xa1a7ca]:'id'!==_0xa1a7ca&&(_0x4272d0=!0x0);_0x4272d0||(_0x51c888[_0x1b1e13]=null);}if(_0x51c888=_0x51c888['filter'](_0x275d10=>null!==_0x275d10),!_0x51c888['length'])return;for(let _0x25a6eb=0x0;_0x25a6eb<_0x51c888['length'];_0x25a6eb++){const _0x352f30=_0x51c888[_0x25a6eb];void 0x0!==_0x352f30['fromVersion']&&void 0x0===_0x352f30['toVersion']&&(_0x352f30['toVersion']=this['repository']['getRevision'](_0x352f30['id'])['toVersion']),void 0x0!==_0x352f30['toVersion']&&void 0x0===_0x352f30['fromVersion']&&(_0x352f30['fromVersion']=this['repository']['getRevision'](_0x352f30['id'])['fromVersion']);}const _0x2cd37d=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x51c888,_0x2cd37d)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x1a4efd=>{if(_0x1a4efd){for(const _0x45c1c0 of _0x1a4efd)this['setRevisionData']({'id':_0x45c1c0['id'],'createdAt':_0x45c1c0['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x5044e0,_0x3d2723){let _0x1e4e80=this['editor']['config']['get']('initialData'),_0x1a2f04=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x1e4e80){_0x1e4e80={};for(const _0x3403b1 of this['editor']['model']['document']['getRootNames']())_0x1e4e80[_0x3403b1]='';}if('string'==typeof _0x1e4e80&&(_0x1e4e80={'main':_0x1e4e80}),void 0x0===_0x1a2f04){_0x1a2f04={};for(const _0x55bcb8 of this['editor']['model']['document']['getRootNames']())_0x1a2f04[_0x55bcb8]={};}let _0x267f53=!0x1;const _0x199bc1=Object['keys'](_0x1e4e80),_0x55f917=Object['keys'](_0x5044e0);for(const _0x17d5c3 of _0x199bc1){if(_0x1e4e80[_0x17d5c3]!==_0x5044e0[_0x17d5c3]&&''!==_0x1e4e80[_0x17d5c3]['trim']()){_0x267f53=!0x0;break;}if(!_0x2a70bd(_0x1a2f04[_0x17d5c3],_0x3d2723[_0x17d5c3])&&Object['keys'](_0x1a2f04[_0x17d5c3])['length']>0x0){_0x267f53=!0x0;break;}}_0x267f53||(_0x267f53=_0x55f917['some'](_0x18e749=>!this['editor']['model']['document']['getRoot'](_0x18e749))),_0x267f53&&_0x7a06ec('editor-initial-data-replaced-with-revision-data',{'editorData':_0x1e4e80,'editorRootsAttributes':_0x1a2f04,'revisionData':_0x5044e0,'revisionRootsAttributes':_0x3d2723}),this['editor']['config']['set']('initialData',_0x5044e0),this['editor']['config']['set']('rootsAttributes',_0x3d2723);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x2eed74=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x2eed74['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x2de48c){const _0x31e100=this['repository']['getRevisions']();_0x31e100['reverse']();let _0x3e8988=0x0;for(;_0x3e8988<_0x31e100['length'];){const _0x1d5116=_0x31e100[_0x3e8988];if(_0x1d5116===this['currentRevision']){_0x3e8988++;continue;}if(_0x1d5116['id']===this['_initialRevisionId'])break;const _0x2ad423=_0x2de48c['toVersion']-_0x1d5116['toVersion']||_0x2de48c['fromVersion']-_0x1d5116['fromVersion'];if(_0x2ad423>0x0)break;if(_0x2ad423<0x0)_0x3e8988++;else{if(!_0x2de48c['creator']&&_0x1d5116['creator'])break;if(_0x1d5116['creator']||!_0x2de48c['creator']){if(_0x2de48c['createdAt']>_0x1d5116['createdAt'])break;_0x3e8988++;}else _0x3e8988++;}}return _0x3e8988;}['setRevisionData'](_0x465f85){const _0x4d60be=this['repository']['getRevision'](_0x465f85['id']);if(_0x465f85['createdAt']&&(_0x465f85['createdAt']=new Date(_0x465f85['createdAt'])),_0x465f85['authorsIds']){const _0x225cb1=this['editor']['plugins']['get']('Users');_0x465f85['authors']=_0x465f85['authorsIds']['map'](_0x45dbdb=>_0x225cb1['getUser'](_0x45dbdb));}_0x4d60be['_update'](_0x465f85,!0x0);}['buildRevisionData']({revision:_0x3ace70=null,from:_0xb9454f=null,to:_0x544053=null}){_0xb9454f=null!==_0xb9454f?_0xb9454f:_0x3ace70['fromVersion'],_0x544053=null!==_0x544053?_0x544053:_0x3ace70['toVersion'];const _0x2d3fa0=this['_revisionDataBuilder']['getData'](_0xb9454f,_0x544053),_0x5651ef={'diffData':_0x2d3fa0['diffData'],'authorsIds':_0x2d3fa0['authorsIds'],'fromVersion':_0xb9454f,'toVersion':_0x544053};if(!_0x3ace70||_0x544053!==_0x3ace70['toVersion']){const _0x503306=_0x544053-0x1,_0x3bfd0a=this['_source']['history']['getOperation'](_0x503306);_0x5651ef['createdAt']=_0x3bfd0a&&_0x3bfd0a['createdAt']||new Date();}if(this['_loadedStateData']&&_0xb9454f===this['_loadedStateData']['fromVersion']){for(const _0x26dd44 of this['_loadedStateData']['authors'])_0x5651ef['authorsIds']['includes'](_0x26dd44['id'])||_0x5651ef['authorsIds']['push'](_0x26dd44['id']);}return _0x5651ef;}['_loadRevisionData'](_0x36799e){if(!_0x36799e||_0x36799e['diffData'])return Promise['resolve']();{const _0x4af8a3=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x4af8a3,'revisionId':_0x36799e['id']})['then'](_0x3a133b=>{_0x36799e['diffData']=_0x3a133b['diffData'];});}}['_bufferUpdate'](_0x3ec32f,_0x1fc9af,_0x4d6a07){if(this['_bufferedUpdates']['has'](_0x3ec32f)){const _0x47f0bd=this['_bufferedUpdates']['get'](_0x3ec32f);_0x1fc9af=_0x4d6a07?{..._0x47f0bd,..._0x1fc9af}:{..._0x1fc9af,..._0x47f0bd};}this['_bufferedUpdates']['set'](_0x3ec32f,_0x1fc9af);}['_getFromVersion'](_0xc4d666){const _0x3393ca=this['repository']['getRevisions']();_0x3393ca['reverse'](),_0x3393ca['shift']();const _0xfd5e87=_0x3393ca['find'](_0x171450=>_0x171450['toVersion']<=_0xc4d666)['toVersion'];return _0xfd5e87<this['_startingVersion']?this['_startingVersion']:_0xfd5e87;}['_createInitialRevision'](_0x2cf69d){const _0x203f76=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x203f76)this['_initialRevisionId']=_0x203f76['id'];else{const _0x287c3a=!this['editor']['model']['document']['roots']['find'](_0x36bd76=>this['editor']['model']['hasContent'](_0x36bd76)),_0x46ea8a=this['editor']['plugins']['get']('Users')['me']['id'],_0x19af69=m(this['editor']['locale'],_0x287c3a?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x2cf69d,'to':_0x2cf69d,'id':this['_initialRevisionId'],'name':_0x19af69,'creatorId':_0x46ea8a});}}['_createCurrentRevision'](_0x147fea){const _0x2559aa=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x2559aa),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x147fea,'to':_0x147fea,'id':_0x2559aa,'name':'','creatorId':null}));}['_makeRevision']({name:_0x31d562,from:_0x218d10,to:_0x140652,creatorId:_0x5da265,id:_0x157d59}){const _0x5f095a=this['buildRevisionData']({'from':_0x218d10,'to':_0x140652});_0x5f095a['name']=_0x31d562,_0x5f095a['creatorId']=_0x5da265,_0x5f095a['id']=_0x157d59;const _0x57b2e1=this['addRevisionData'](_0x5f095a);return this['adapter']&&this['_bufferUpdate'](_0x5f095a['id'],_0x5f095a,!0x0),_0x57b2e1;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x5d6956){return(_0x5d6956=_0x5d6956['filter'](_0x24a753=>!_0x24a753['name']||'revision-start'!==_0x24a753['name']&&'revision-end'!==_0x24a753['name']))['forEach'](_0x160245=>{'string'!=typeof _0x160245&&(_0x160245['children']=this['_removeRevisionMarkers'](_0x160245['children']),_0x160245['attributes']=_0x160245['attributes']['filter'](_0x3dbbda=>!_0x3dbbda[0x0]['startsWith']('data-revision-')));}),_0x5d6956;}}function C(_0x3ad26b,_0x3748a8){const _0x121170=_0x3748a8['editing']['view']['document'];if('string'==typeof _0x3ad26b)return new _0x297344(_0x121170,_0x3ad26b);{const _0x24ced9=_0x3ad26b['children']['map'](_0x423270=>C(_0x423270,_0x3748a8));return new(P[_0x3ad26b['type']]||_0x45205b)(_0x121170,_0x3ad26b['name'],_0x3ad26b['attributes'],_0x24ced9);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x327a57){this['editor']=_0x327a57,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'](_0x5d4cbf){this['source']=_0x5d4cbf;const _0x3f6c76=new Map(),_0x3bb749=new Map(),_0x48ad58=this['editor']['model']['document']['roots']['map'](_0x1979e6=>_0x1979e6['rootName']);for(const _0x6594b of _0x48ad58){const _0x58080d=this['editor']['model']['document']['getRoot'](_0x6594b),_0x17d9f7=T(_0x58080d);_0x3f6c76['set'](_0x6594b,_0x17d9f7),_0x3bb749['set'](_0x6594b,Object['fromEntries'](_0x58080d['getAttributes']()));}const _0x103fe8=Array['from'](this['editor']['model']['markers'])['map'](_0x13d142=>[_0x13d142['name'],_0x13d142['getRange']()]),_0x3f91b2=this['source']['version'];this['_saveMetaData'](_0x3f91b2,_0x3f6c76,_0x103fe8,_0x3bb749),this['_startingRevisionId']=this['_revisionId'];const _0x35cec9=new Map(),_0x266ac5=new Map();for(const _0x19817d of _0x48ad58){const _0x5a2aa0=F(_0x19817d);_0x35cec9['set'](_0x19817d,_0x5a2aa0),_0x266ac5['set'](_0x19817d,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x35cec9,[],_0x266ac5);}['getData'](_0x5aeb99,_0xa0bc80){if(this['_lastFrom']===_0x5aeb99&&this['_lastTo']<=_0xa0bc80)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0xa0bc80,!0x0);else{if(!this['_savedMetaData']['has'](_0x5aeb99)){const _0x532a4b=this['_getPreviousFrom'](_0x5aeb99);this['_calculateMetaData'](_0x532a4b,_0x5aeb99,!0x1);}this['_calculateMetaData'](_0x5aeb99,_0xa0bc80,!0x0);}return this['_lastFrom']=_0x5aeb99,this['_lastTo']=_0xa0bc80,this['_getState']();}['loadState'](_0x2f7a04){this['_reset'](),this['_lastFrom']=_0x2f7a04['fromVersion'],this['_lastTo']=_0x2f7a04['toVersion'];for(const _0x1b2778 in _0x2f7a04['diffData']){const _0x4b1b3c=_0x2f7a04['diffData'][_0x1b2778]['attachChange'],_0x55db48=_0x402cfd(_0x2f7a04['diffData'][_0x1b2778]['attributesBefore'])||{},_0x4f8da5=this['_makeModelFromViewString'](_0x2f7a04['diffData'][_0x1b2778]['deletions']);_0x4f8da5['rootName']=_0x1b2778,_0x4f8da5['_isAttached']=!_0x4b1b3c||!_0x4b1b3c['isAttached'],_0x4f8da5['isAttached']=()=>_0x4f8da5['_isAttached'],this['_baseRoots']['set'](_0x1b2778,_0x4f8da5),this['_baseRootsAttributes']['set'](_0x1b2778,_0x55db48),_0x4b1b3c&&this['_touchedRoots']['set'](_0x1b2778,_0x4b1b3c);const _0x3ba483=this['_makeIdsRoot'](_0x4f8da5);this['_baseIdsRoots']['set'](_0x1b2778,_0x3ba483);for(const [_0x3f828b,_0xc40aad]of _0x4f8da5['markers']){if(!_0x3f828b['startsWith']('revision:'))continue;const _0x4a935c=_0x3f828b['split'](':')[0x2];for(const _0x51aea5 of _0xc40aad['getWalker']({'singleCharacters':!0x0})){const _0x7a9083=this['_getVidAttributeName'](_0x51aea5),_0x2ea210='elementEnd'==_0x51aea5['type']?_0x51aea5['previousPosition']['path']['slice'](0x0,-0x1):_0x51aea5['previousPosition']['path'],_0x57c582=_0x3ba483['getNodeByPath'](_0x2ea210)['getAttribute'](_0x7a9083);this['_touched']['set'](_0x57c582,{'userId':_0x4a935c});}}}this['_startingRevisionId']=this['_revisionId'];const _0x59f440=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x471c77=>!this['_touched']['has'](_0x471c77));let _0x3f0668=0x0;const _0x3b61b6=new Map();for(const _0x52836f in _0x2f7a04['diffData']){const _0x3776c4=_0x2f7a04['diffData'][_0x52836f]['attachChange'],_0x479bad=_0x402cfd(_0x2f7a04['diffData'][_0x52836f]['attributesAfter'])||{},_0x33be7e=this['_makeModelFromViewString'](_0x2f7a04['diffData'][_0x52836f]['insertions']);_0x33be7e['rootName']=_0x52836f,_0x33be7e['_isAttached']=!_0x3776c4||_0x3776c4['isAttached'],_0x33be7e['isAttached']=()=>_0x33be7e['_isAttached'],this['_diffRoots']['set'](_0x52836f,_0x33be7e),this['_diffRootsAttributes']['set'](_0x52836f,_0x479bad);const _0x18015e=this['_makeIdsRoot'](_0x33be7e,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x52836f,_0x18015e),_0x3b61b6['set'](_0x52836f,_0x33be7e['isAttached']()?_0x479bad:{});for(const [_0x518b09,_0x526a9f]of _0x33be7e['markers']){if(!_0x518b09['startsWith']('revision:'))continue;const _0xb6c471=_0x518b09['split'](':')[0x2];for(const _0x3937c4 of _0x526a9f['getWalker']({'singleCharacters':!0x0})){const _0x3375dd=this['_getVidAttributeName'](_0x3937c4),_0x1a5ae7=this['_revisionId']++,_0x17e6f6='elementEnd'==_0x3937c4['type']?_0x3937c4['previousPosition']['path']['slice'](0x0,-0x1):_0x3937c4['previousPosition']['path'];_0x18015e['getNodeByPath'](_0x17e6f6)['_setAttribute'](_0x3375dd,_0x1a5ae7),this['_touched']['set'](_0x1a5ae7,{'userId':_0xb6c471});}}for(const _0x3ab5ee of this['editor']['model']['createRangeIn'](_0x33be7e)['getWalker']({'singleCharacters':!0x0})){const _0x45fb75=this['_getVidAttributeName'](_0x3ab5ee),_0x4e652a='elementEnd'==_0x3ab5ee['type']?_0x3ab5ee['previousPosition']['path']['slice'](0x0,-0x1):_0x3ab5ee['previousPosition']['path'],_0x46fe34=_0x18015e['getNodeByPath'](_0x4e652a);_0x46fe34['getAttribute'](_0x45fb75)>0x0||_0x46fe34['_setAttribute'](_0x45fb75,_0x59f440[_0x3f0668++]);}for(const [_0x209b19,_0x46eac4]of _0x33be7e['markers'])_0x209b19['startsWith']('revision:')||this['_markers']['set'](_0x209b19,_0x46eac4);}const _0x2cfd09=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x2cfd09),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x2cfd09,0x1));const _0x1c5614=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x1c5614),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x1c5614,0x1));const _0x5a3734=Array['from'](this['_diffRoots'])['map'](([_0x31e51e,_0x3fe2f8])=>[_0x31e51e,T(_0x3fe2f8)]);this['_saveMetaData'](this['_lastTo'],_0x5a3734,this['_markers'],_0x3b61b6);}['_makeModelFromViewString'](_0x489fc9){const _0x264819=JSON['parse'](_0x489fc9),_0x4ac13d=this['editor']['editing']['view']['document'],_0x641d32=new _0x46b162(_0x4ac13d,_0x264819['map'](_0x4bf31d=>C(_0x4bf31d,this['editor'])));return this['editor']['data']['toModel'](_0x641d32);}['_saveMetaData'](_0x51e790,_0x150dd7,_0x5b7d07,_0x4e8e83){const _0xf68591=new Map(_0x150dd7),_0x1bb6ac=new Map(_0x402cfd(_0x4e8e83)),_0x5c43fd=new Map();for(const [_0x4ea0ba,_0x2edcbb]of _0x5b7d07)_0x5c43fd['set'](_0x4ea0ba,{'start':_0x2edcbb['start']['clone'](),'end':_0x2edcbb['end']['clone'](),'rootName':_0x2edcbb['root']['rootName']});this['_savedMetaData']['set'](_0x51e790,{'roots':_0xf68591,'markers':_0x5c43fd,'rootsAttributes':_0x1bb6ac});}['_removeMetaData'](_0x31f171){this['_savedMetaData']['delete'](_0x31f171);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x1cc73b,_0x1a011d=null){let _0x566f5e=null;_0x1cc73b['is']('documentFragment')||(_0x566f5e=new ft(_0x1cc73b['name'],{'vid_start':null===_0x1a011d?this['_revisionId']++:_0x1a011d++}));const _0x44e204=[];for(const _0x3e0a28 of _0x1cc73b['getChildren']())if(_0x3e0a28['is']('element')){_0x44e204['push'](this['_makeIdsRoot'](_0x3e0a28,_0x1a011d));const _0x58f79f=_0x44e204[_0x44e204['length']-0x1];null!==_0x1a011d&&(_0x1a011d=_0x58f79f['is']('element','$text')?_0x58f79f['getAttribute']('vid')+0x1:_0x58f79f['getAttribute']('vid_end')+0x1);}else{for(let _0xe1274d=0x0;_0xe1274d<_0x3e0a28['offsetSize'];_0xe1274d++)_0x44e204['push'](new ft('$text',{'vid':null===_0x1a011d?this['_revisionId']++:_0x1a011d++}));}if(_0x1cc73b['is']('documentFragment')){const _0x54f665=F(_0x1cc73b['rootName']);return _0x54f665['_insertChild'](0x0,_0x44e204),_0x54f665;}return _0x566f5e['_setAttribute']('vid_end',null===_0x1a011d?this['_revisionId']++:_0x1a011d++),_0x566f5e['_insertChild'](0x0,_0x44e204),_0x566f5e;}['_calculateMetaData'](_0x1bd321,_0x1ec33d,_0x4a840f){this['_reset']();const {roots:_0x408505,markers:_0x4679af,rootsAttributes:_0x5c9ab9}=this['_savedMetaData']['get'](_0x1bd321);this['_baseRoots']=new Map(_0x408505),this['_baseRootsAttributes']=new Map(_0x402cfd(_0x5c9ab9));for(const [_0x294bd7,_0x45459e]of this['_baseRoots'])if('$graveyard'!==_0x294bd7&&(this['_diffRoots']['set'](_0x294bd7,T(_0x45459e)),this['_diffRootsAttributes']=new Map(_0x402cfd(_0x5c9ab9)),_0x4a840f)){const _0x3de806=this['_revisionId'];this['_idsRoots']['set'](_0x294bd7,this['_makeIdsRoot'](_0x45459e)),this['_baseIdsRoots']['set'](_0x294bd7,this['_makeIdsRoot'](_0x45459e,_0x3de806));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x4a840f&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x345663,_0x1e3e61]of _0x4679af){const _0x54711=this['_baseRoots']['get'](_0x1e3e61['rootName']),_0x1f9430=this['_diffRoots']['get'](_0x1e3e61['rootName']),_0x40d7ec=new vt(this['_fixPosition'](_0x1e3e61['start'],_0x54711),this['_fixPosition'](_0x1e3e61['end'],_0x54711)),_0x31b1b9=this['_fixRange'](_0x40d7ec,_0x1f9430);_0x54711['markers']['set'](_0x345663,_0x40d7ec),this['_markers']['set'](_0x345663,_0x31b1b9);}this['_applyOperations'](_0x1bd321,_0x1ec33d,_0x4a840f);}['_applyOperations'](_0x141654,_0x8e5b21,_0x5938d3){for(const _0x332410 of this['source']['getOperations'](_0x141654,_0x8e5b21))this['_handleOperation'](_0x332410,_0x5938d3);for(const _0x239986 of this['_diffRoots']['values']())_0x239986['markers']['clear']();for(const [_0xc4a5b1,_0x2c3120]of this['_markers']){this['_diffRoots']['get'](_0x2c3120['root']['rootName'])['markers']['set'](_0xc4a5b1,_0x2c3120['clone']());}const _0x408825=new Map(),_0x50e5ad=new Map();for(const [_0x4e2da9,_0x29c1e3]of this['_diffRoots'])_0x408825['set'](_0x4e2da9,T(_0x29c1e3)),_0x50e5ad['set'](_0x4e2da9,this['_diffRootsAttributes']['get'](_0x4e2da9));this['_saveMetaData'](_0x8e5b21,_0x408825,this['_markers'],_0x50e5ad);}['_getPreviousFrom'](_0x2f56a8){const _0x5e1419=Array['from'](this['_savedMetaData']['keys']());_0x5e1419['sort']((_0x155a4b,_0x54ee94)=>_0x155a4b-_0x54ee94),_0x5e1419['reverse']();for(const _0x57524b of _0x5e1419)if(_0x57524b<_0x2f56a8)return _0x57524b;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x439804,_0x3fd0fe){const _0x368cda=Array['from'](_0x3fd0fe['markers'])['map'](([_0x2ea92d,_0x4aea70])=>[_0x2ea92d,this['_fixRange'](_0x4aea70,_0x439804)]);_0x439804['markers']=new Map(_0x368cda);}['_transformMarkers'](_0x3be75c){for(const _0x20292f of this['_markers']['values']()){const _0xa769b0=_0x20292f['getTransformedByOperation'](_0x3be75c),_0x4c53a=vt['_createFromRanges'](_0xa769b0);_0x20292f['start']=_0x4c53a['start'],_0x20292f['end']=_0x4c53a['end'];}}['_handleOperation'](_0x1dc568,_0x4d48bf){if('addRoot'!=_0x1dc568['type']&&'detachRoot'!=_0x1dc568['type']){if('insert'==_0x1dc568['type']){const _0x23dc9f=_0x1dc568['position']['root']['rootName'];this['_diffRoots']['has'](_0x23dc9f)||(this['_diffRoots']['set'](_0x23dc9f,F(_0x23dc9f,!0x0)),this['_diffRootsAttributes']['set'](_0x23dc9f,{}),_0x4d48bf&&this['_idsRoots']['set'](_0x23dc9f,F(_0x23dc9f,!0x0)));}else{if('addRootAttribute'==_0x1dc568['type']||'removeRootAttribute'==_0x1dc568['type']||'changeRootAttribute'==_0x1dc568['type'])return void this['_handleRootAttributeOperation'](_0x1dc568);'marker'==_0x1dc568['type']&&this['_handleMarkerOperation'](_0x1dc568);}if('marker'!==_0x1dc568['type']){const _0x4f063f=this['_cloneOperation'](_0x1dc568,this['_diffRoots']);_0x4f063f['_execute'](),this['_transformMarkers'](_0x4f063f);}if(_0x4d48bf)switch(_0x1dc568['type']){case'insert':this['_handleInsertOperation'](_0x1dc568);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x1dc568);break;case'merge':this['_handleMergeOperation'](_0x1dc568);break;case'split':this['_handleSplitOperation'](_0x1dc568);}}else this['_handleRootOperation'](_0x1dc568,_0x4d48bf);}['_cloneOperation'](_0xe48bc7,_0x1a69a2){const _0x3adad4=_0xe48bc7['clone']();return _0x3adad4['_authorId']=_0xe48bc7['_authorId'],this['_fixOperation'](_0x3adad4,_0x1a69a2),_0x3adad4;}['_getBaseVids'](_0x24bba0){return _0x24bba0['map'](_0x2397f1=>{const _0x30044d=this['_getVidAttributeName'](_0x2397f1);return Number(_0x2397f1['item']['getAttribute'](_0x30044d));});}['_generateTape'](_0xad1002,_0x13a874){if(_0xad1002['is']('element','$text'))_0x13a874['push']({'item':_0xad1002,'type':'text'});else{_0xad1002['is']('element')&&_0x13a874['push']({'item':_0xad1002,'type':'elementStart'});for(const _0x4a37aa of _0xad1002['getChildren']())this['_generateTape'](_0x4a37aa,_0x13a874);_0xad1002['is']('element')&&_0x13a874['push']({'item':_0xad1002,'type':'elementEnd'});}return _0x13a874;}['_getState'](){const _0x53c528=new Map(this['_touched']),_0x1a00f3=new Map(_0x53c528),_0x4e3ef2=new Map(),_0xcd3d7f={'insertions':{},'deletions':{}},_0x52f361={'insertions':{},'deletions':{}},_0x9ef0d0=new Map(),_0xcd7d29=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0xcd7d29['delete']('$graveyard');for(const _0x138122 of _0xcd7d29){const _0x50aa86=this['_diffRoots']['get'](_0x138122)||F(_0x138122,!0x1),_0x10d554=this['_baseRoots']['get'](_0x138122)||F(_0x138122,!0x1);_0x50aa86['isAttached']()||_0x10d554['isAttached']()?(_0xcd3d7f['insertions'][_0x138122]=T(_0x50aa86),_0xcd3d7f['deletions'][_0x138122]=T(_0x10d554),this['_copyMarkers'](_0xcd3d7f['deletions'][_0x138122],_0x10d554),this['_copyMarkers'](_0xcd3d7f['insertions'][_0x138122],_0x50aa86),_0x52f361['insertions'][_0x138122]=this['_generateTape'](this['_idsRoots']['get'](_0x138122),[]),_0x52f361['deletions'][_0x138122]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x138122)||F(_0x138122,!0x1),[])):_0xcd7d29['delete'](_0x138122);}for(const _0x38500b of _0xcd7d29){const _0x48223c=_0x52f361['insertions'][_0x38500b];for(const _0xa0733c of _0x48223c){const _0x4c835a=this['_getVidAttributeName'](_0xa0733c),_0x5d2c8f=_0xa0733c['item']['getAttribute'](_0x4c835a);_0x1a00f3['delete'](_0x5d2c8f),_0x5d2c8f>=this['_startingRevisionId']&&_0x4e3ef2['set'](_0x5d2c8f,_0x53c528['get'](_0x5d2c8f));}}for(const _0x3d113c of _0xcd7d29){const _0x4cedbb=_0x52f361['insertions'][_0x3d113c],_0x2b745b=this['_getBaseVids'](_0x52f361['deletions'][_0x3d113c]);let _0x1700b3=0x0;for(const _0x8080cd of _0x4cedbb){const _0xb5b2=this['_getVidAttributeName'](_0x8080cd),_0x1ca1b7=_0x8080cd['item']['getAttribute'](_0xb5b2);if(!_0x4e3ef2['has'](_0x1ca1b7)&&!_0x9ef0d0['has'](_0x1ca1b7)){if(_0x1a00f3['has'](_0x1ca1b7))_0x1700b3++;else{if(_0x1ca1b7!=_0x2b745b[_0x1700b3]){const _0x503765=_0x53c528['get'](_0x1ca1b7)||_0x53c528['get'](_0x2b745b[_0x1700b3]);for(;_0x1ca1b7!=_0x2b745b[_0x1700b3];)_0x1a00f3['has'](_0x2b745b[_0x1700b3])||(_0x9ef0d0['set'](_0x2b745b[_0x1700b3],_0x503765),_0x53c528['set'](_0x2b745b[_0x1700b3],_0x503765)),_0x1700b3++;}_0x1700b3++;}}}}for(const _0x150dfc of _0xcd7d29){const _0x5127d6=_0x52f361['insertions'][_0x150dfc];for(const _0x200be0 of _0x5127d6){const _0x19f71c=this['_getVidAttributeName'](_0x200be0),_0x4572ec=_0x200be0['item']['getAttribute'](_0x19f71c);if(_0x9ef0d0['has'](_0x4572ec)){const _0x1f64d8=_0x9ef0d0['get'](_0x4572ec);_0x1a00f3['has'](_0x4572ec)||_0x1a00f3['set'](_0x4572ec,{..._0x1f64d8}),_0x4e3ef2['set'](_0x4572ec,{..._0x1f64d8});}}}for(const _0x18773a of _0x1a00f3['keys']())_0x18773a>=this['_startingRevisionId']&&_0x1a00f3['delete'](_0x18773a);const _0x35b611=new Map();for(const _0x3d016a of _0xcd7d29){let _0x37bdb7=_0x52f361['insertions'][_0x3d016a];for(const _0xbbe88c of _0x37bdb7)if(_0xbbe88c['item']['is']('element','tableCell')){const _0x161828=this['_getVidAttributeName'](_0xbbe88c),_0x22ae5b=_0xbbe88c['item']['getAttribute'](_0x161828);if(_0x4e3ef2['has'](_0x22ae5b)){const _0x949d68=_0xbbe88c['item']['parent']['parent']['getAttribute']('vid_start'),_0x1fce52=_0x35b611['get'](_0x949d68)||new Set();_0x1fce52['add'](_0x4e3ef2['get'](_0x22ae5b)['userId']),_0x35b611['set'](_0x949d68,_0x1fce52);}}_0x37bdb7=_0x52f361['deletions'][_0x3d016a];for(const _0x6424d1 of _0x37bdb7)if(_0x6424d1['item']['is']('element','tableCell')){const _0x1b29df=this['_getVidAttributeName'](_0x6424d1),_0x5b897f=_0x6424d1['item']['getAttribute'](_0x1b29df);if(_0x1a00f3['has'](_0x5b897f)){const _0x3f7777=_0x6424d1['item']['parent']['parent']['getAttribute']('vid_start'),_0x1bc038=_0x35b611['get'](_0x3f7777)||new Set();_0x1bc038['add'](_0x1a00f3['get'](_0x5b897f)['userId']),_0x35b611['set'](_0x3f7777,_0x1bc038);}}for(const _0x455735 of _0x35b611['keys']())(_0x4e3ef2['has'](_0x455735)||_0x1a00f3['has'](_0x455735))&&_0x35b611['delete'](_0x455735);}for(const _0x29815d of _0xcd7d29){const _0xa68fea=_0x52f361['insertions'][_0x29815d];let _0x1f82c0=null,_0x5922d0=null;for(const _0x469979 of _0xa68fea){const _0x30e3b5=this['_getVidAttributeName'](_0x469979),_0x51290a=_0x469979['item']['getAttribute'](_0x30e3b5),_0x5ec2ab=_0x35b611['get'](_0x51290a);_0x5ec2ab&&'elementStart'==_0x469979['type']&&(_0x1f82c0=Array['from'](_0x5ec2ab)[0x0],_0x5922d0=_0x469979['item']['getAttribute']('vid_end')),_0x1f82c0&&(_0x1a00f3['set'](_0x51290a,{'userId':_0x1f82c0}),_0x4e3ef2['set'](_0x51290a,{'userId':_0x1f82c0})),_0x51290a==_0x5922d0&&(_0x1f82c0=null,_0x5922d0=null);}}const _0x5634e9={},_0x44161d=new Set();for(const _0x350777 of _0xcd7d29){const _0x839fe0=_0xcd3d7f['deletions'][_0x350777],_0x4f5634=_0xcd3d7f['insertions'][_0x350777];for(const {userId:_0x451265}of this['_touchedMarkers']['values']())null!==_0x451265&&_0x44161d['add'](_0x451265);for(const {userId:_0x3daf31}of this['_touchedRoots']['values']())null!==_0x3daf31&&_0x44161d['add'](_0x3daf31);this['_markChanges'](_0x4f5634,_0x52f361['insertions'][_0x350777],_0x4e3ef2,'insertion',_0x44161d),this['_markChanges'](_0x839fe0,_0x52f361['deletions'][_0x350777],_0x1a00f3,'deletion',_0x44161d),_0x5634e9[_0x350777]={'insertions':this['_prepareViewToSave'](_0x4f5634),'deletions':this['_prepareViewToSave'](_0x839fe0),'attachChange':this['_touchedRoots']['get'](_0x350777)||null,'attributesBefore':_0x402cfd(this['_baseRootsAttributes']['get'](_0x350777))||{},'attributesAfter':_0x402cfd(this['_diffRootsAttributes']['get'](_0x350777))};}return{'diffData':_0x5634e9,'authorsIds':Array['from'](_0x44161d)};}['_processRootBeforeSave'](_0x265fc0){for(const [,_0x5054db]of _0x265fc0['markers']){const _0x53207d=_0x5054db['start']['getAncestors']()['filter'](_0x3d271c=>'tableCell'==_0x3d271c['name']);for(const _0x298d09 of _0x53207d)0x1==_0x298d09['childCount']&&_0x298d09['getChild'](0x0)['is']('element','paragraph')&&_0x298d09['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x2abcf7){this['_processRootBeforeSave'](_0x2abcf7);const _0xd094ad=this['editor']['data']['toView'](_0x2abcf7,{}),_0x5f36b5=Array['from'](_0xd094ad['getChildren']())['map'](_0x5c8e1=>this['_getViewJson'](_0x5c8e1));return JSON['stringify'](_0x5f36b5);}['_getViewJson'](_0x379d95){if(_0x379d95['is']('$text'))return _0x379d95['data'];{const _0x26c006=_0x379d95;return{'type':Object['keys'](P)['find'](_0x1663d0=>_0x379d95 instanceof P[_0x1663d0]),'name':_0x26c006['name'],'attributes':Array['from'](_0x26c006['getAttributes']()),'children':Array['from'](_0x26c006['getChildren']())['map'](_0x25f919=>this['_getViewJson'](_0x25f919))};}}['_markChanges'](_0x1d5ebf,_0x564108,_0x3e6e29,_0x1713a9,_0x4fc3b2){let _0x5ba2cf=null,_0x37267e=null,_0x7cdedc=0x0;const _0x27e78c=this['editor']['model'];for(let _0x22c458=0x0;_0x22c458<_0x564108['length'];_0x22c458++){const _0x296780=this['_getVidAttributeName'](_0x564108[_0x22c458]),_0x274d34=_0x564108[_0x22c458]['item']['getAttribute'](_0x296780),_0x5503e4=_0x3e6e29['get'](_0x274d34),_0xd79f3a=_0x22c458==_0x564108['length']-0x1;(!_0x5ba2cf&&_0x5503e4&&(_0x5ba2cf=_0x5503e4,_0x37267e=_0x564108[_0x22c458]),_0x5ba2cf&&(!_0x5503e4||_0x5503e4['userId']!=_0x5ba2cf['userId']))&&(_0x425eb8(_0x5503e4,B(_0x37267e,_0x1d5ebf,_0x27e78c),B(_0x564108[_0x22c458],_0x1d5ebf,_0x27e78c)),_0x5ba2cf=_0x5503e4||null,_0x37267e=_0x5503e4?_0x564108[_0x22c458]:null),_0x5ba2cf&&_0xd79f3a&&_0x425eb8(_0x5503e4,B(_0x37267e,_0x1d5ebf,_0x27e78c),J(_0x564108[_0x22c458],_0x1d5ebf,_0x27e78c));}function _0x425eb8(_0x804110,_0xd29f97,_0x5393a2){const _0x1f6440=_0x5ba2cf['userId'],_0x1abd58='revision:'+_0x1713a9+':'+_0x1f6440+':'+_0x7cdedc++,_0x1c4f1b=_0x27e78c['createRange'](_0xd29f97,_0x5393a2);_0x1d5ebf['markers']['set'](_0x1abd58,_0x1c4f1b),null!==_0x1f6440&&_0x4fc3b2['add'](_0x1f6440);}}['_getVidAttributeName'](_0x8ee66d){switch(_0x8ee66d['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x5a8838,_0x4fdae9){_0x5a8838['baseVersion']=null;for(const _0xe4ed4 in _0x5a8838){const _0x36d973=_0x5a8838[_0xe4ed4];if(_0x36d973 instanceof gt){const _0x3f4d3d=_0x4fdae9['get'](_0x36d973['root']['rootName']);_0x5a8838[_0xe4ed4]=this['_fixPosition'](_0x36d973,_0x3f4d3d);}if(_0x36d973 instanceof vt){const _0x33a2b7=_0x4fdae9['get'](_0x36d973['root']['rootName']);_0x5a8838[_0xe4ed4]=this['_fixRange'](_0x36d973,_0x33a2b7);}'root'===_0xe4ed4&&(_0x5a8838['root']=_0x4fdae9['get'](_0x5a8838['root']['rootName']));}}['_fixRange'](_0x4ef0ba,_0x243315){return this['editor']['model']['createRange'](this['_fixPosition'](_0x4ef0ba['start'],_0x243315),this['_fixPosition'](_0x4ef0ba['end'],_0x243315));}['_fixPosition'](_0x30a527,_0x5d8b99){return this['editor']['model']['createPositionFromPath'](_0x5d8b99,_0x30a527['path'],_0x30a527['stickiness']);}['_handleInsertOperation'](_0x188e07){const _0x2a2b75=this['_idsRoots']['get'](_0x188e07['position']['root']['rootName']),_0x169a13=this['_fixPosition'](_0x188e07['position'],_0x2a2b75),_0x183ce6=null===_0x188e07['_authorId']?null:_0x188e07['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xdbae80=_0x169a13['parent'],_0xa6273=this['_revisionId'],_0x1ea04a=[];for(const _0x10f738 of _0x188e07['nodes'])if(_0x10f738['is']('element'))_0x1ea04a['push'](this['_makeIdsRoot'](_0x10f738));else{for(let _0x28319b=0x0;_0x28319b<_0x10f738['offsetSize'];_0x28319b++)_0x1ea04a['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x295648=this['_revisionId'];for(let _0x2bf618=_0xa6273;_0x2bf618<_0x295648;_0x2bf618++)this['_touched']['set'](_0x2bf618,{'userId':_0x183ce6});_0xdbae80['_insertChild'](_0x169a13['offset'],_0x1ea04a);}['_handleMoveOperation'](_0x3a80ad){(_0x3a80ad=this['_cloneOperation'](_0x3a80ad,this['_idsRoots']))['_execute']();const _0x32db39=null===_0x3a80ad['_authorId']?null:_0x3a80ad['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2484b4=_0x3a80ad['getMovedRangeStart'](),_0x42abda=_0x2484b4['parent'],_0xe1c0b=_0x2484b4['offset'];!function _0x5b0dc5(_0x593bc,_0x4ae25a,_0x5b3af8,_0x3ee295){for(let _0x22745c=_0x5b3af8;_0x22745c<_0x3ee295;_0x22745c++){const _0x4b90e9=_0x4ae25a['getChild'](_0x22745c);_0x4b90e9['is']('element','$text')?_0x593bc['set'](_0x4b90e9['getAttribute']('vid'),{'userId':_0x32db39}):(_0x593bc['set'](_0x4b90e9['getAttribute']('vid_start'),{'userId':_0x32db39}),_0x5b0dc5(_0x593bc,_0x4b90e9,0x0,_0x4b90e9['childCount']),_0x593bc['set'](_0x4b90e9['getAttribute']('vid_end'),{'userId':_0x32db39}));}}(this['_touched'],_0x42abda,_0xe1c0b,_0xe1c0b+_0x3a80ad['howMany']);}['_handleMergeOperation'](_0x27a2a0){const _0x49eb0e=null===(_0x27a2a0=this['_cloneOperation'](_0x27a2a0,this['_idsRoots']))['_authorId']?null:_0x27a2a0['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1f5842=_0x27a2a0['targetPosition']['parent'],_0x2d727f=_0x27a2a0['sourcePosition']['parent'],_0x4afa2b=_0x1f5842['getAttribute']('vid_end'),_0xe9c072=_0x2d727f['getAttribute']('vid_start');_0x1f5842['_setAttribute']('vid_end',_0x2d727f['getAttribute']('vid_end')),_0x2d727f['_setAttribute']('vid_end',_0x4afa2b),this['_touched']['set'](_0xe9c072,{'userId':_0x49eb0e}),this['_touched']['set'](_0x4afa2b,{'userId':_0x49eb0e}),_0x27a2a0['_execute']();}['_handleSplitOperation'](_0x312994){const _0x389240=null===(_0x312994=this['_cloneOperation'](_0x312994,this['_idsRoots']))['_authorId']?null:_0x312994['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x52844c=_0x312994['graveyardPosition'],_0xa2c13f=_0x312994['splitPosition']['parent'];_0x312994['_execute']();const _0x2206c0=_0xa2c13f['getAttribute']('vid_end'),_0x1c4489=_0x312994['insertionPosition']['nodeAfter'];if(_0x52844c){const _0x4acdf3=_0x1c4489['getAttribute']('vid_end'),_0x42f5cb=_0xa2c13f['getAttribute']('vid_end');_0xa2c13f['_setAttribute']('vid_end',_0x4acdf3),_0x1c4489['_setAttribute']('vid_end',_0x42f5cb),this['_touched']['set'](_0xa2c13f['getAttribute']('vid_end'),{'userId':_0x389240}),this['_touched']['set'](_0x1c4489['getAttribute']('vid_start'),{'userId':_0x389240});}else{const _0x58d6af=this['_revisionId']++,_0x127557=this['_revisionId']++;_0xa2c13f['_setAttribute']('vid_end',_0x58d6af),_0x1c4489['_setAttribute']('vid_start',_0x127557),_0x1c4489['_setAttribute']('vid_end',_0x2206c0),this['_touched']['set'](_0x58d6af,{'userId':_0x389240}),this['_touched']['set'](_0x127557,{'userId':_0x389240});}}['_handleMarkerOperation'](_0x2de7cf){if(!_0x2de7cf['affectsData'])return;const _0x270056=(_0x2de7cf=this['_cloneOperation'](_0x2de7cf,this['_diffRoots']))['oldRange']?_0x2de7cf['oldRange']['root']:null,_0x154bcd=_0x2de7cf['newRange']?_0x2de7cf['newRange']['root']:null;_0x270056&&this['_markers']['delete'](_0x2de7cf['name']),_0x154bcd&&this['_markers']['set'](_0x2de7cf['name'],_0x2de7cf['newRange']['clone']());const _0x2455de=null===_0x2de7cf['_authorId']?null:_0x2de7cf['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x55e95a=_0x2de7cf['name'];if(!this['_touchedMarkers']['has'](_0x55e95a))return void this['_touchedMarkers']['set'](_0x55e95a,{'range':_0x2de7cf['oldRange'],'userId':_0x2455de});const _0x5b91b5=this['_touchedMarkers']['get'](_0x55e95a),_0x2b3e85=_0x5b91b5['range'],_0x5792f0=_0x2de7cf['newRange'];null==_0x2b3e85&&null==_0x5792f0||_0x2b3e85&&_0x5792f0&&_0x2b3e85['isEqual'](_0x5792f0)?this['_touchedMarkers']['delete'](_0x2de7cf['name']):_0x5b91b5['userId']=_0x2455de;}['_handleRootOperation'](_0x43322a,_0x40e23e){this['_diffRoots']['has'](_0x43322a['rootName'])?this['_diffRoots']['get'](_0x43322a['rootName'])['_isAttached']=_0x43322a['isAdd']:(this['_diffRoots']['set'](_0x43322a['rootName'],F(_0x43322a['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x43322a['rootName'],{}),_0x40e23e&&this['_idsRoots']['set'](_0x43322a['rootName'],F(_0x43322a['rootName'],!0x0)));const _0x264a12=null===_0x43322a['_authorId']?null:_0x43322a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5e5dc9=this['_touchedRoots']['get'](_0x43322a['rootName']);_0x5e5dc9&&_0x5e5dc9['userId']===_0x264a12?this['_touchedRoots']['delete'](_0x43322a['rootName']):this['_touchedRoots']['set'](_0x43322a['rootName'],{'userId':_0x264a12,'isAttached':_0x43322a['isAdd']});}['_handleRootAttributeOperation'](_0x11988b){const _0x24a434=this['_diffRootsAttributes']['get'](_0x11988b['root']['rootName']);null===_0x11988b['newValue']?delete _0x24a434[_0x11988b['key']]:_0x24a434[_0x11988b['key']]=_0x11988b['newValue'];}}function T(_0x20daf0){const _0x4f053e=F(_0x20daf0['rootName'],_0x20daf0['isAttached']());for(const _0x1ac233 of _0x20daf0['getChildren']()){const _0x20a4db=_0x1ac233['_clone'](!0x0);_0x4f053e['_appendChild'](_0x20a4db);}return _0x4f053e;}function F(_0x361379,_0x329d29=!0x0){const _0x3230ca=new mt();return _0x3230ca['rootName']=_0x361379,_0x3230ca['_isAttached']=_0x329d29,_0x3230ca['isAttached']=()=>_0x3230ca['_isAttached'],_0x3230ca;}function B(_0x14d6ac,_0x2d967b,_0x211cc0){const _0x321468='elementEnd'==_0x14d6ac['type']?_0x211cc0['createPositionAt'](_0x14d6ac['item'],'end'):_0x211cc0['createPositionBefore'](_0x14d6ac['item']);return _0x211cc0['createPositionFromPath'](_0x2d967b,_0x321468['path'],_0x321468['stickiness']);}function J(_0x47d17e,_0x4a2ed9,_0x22b568){const _0x454273='elementStart'==_0x47d17e['type']?_0x22b568['createPositionAt'](_0x47d17e['item'],0x0):_0x22b568['createPositionAfter'](_0x47d17e['item']);return _0x22b568['createPositionFromPath'](_0x4a2ed9,_0x454273['path'],_0x454273['stickiness']);}class hs extends _0x472d28{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x33371b,_0x131f6c){super(_0x33371b),this['focusTracker']=new _0x509ae8(),this['keystrokes']=new _0x1ad405(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x131f6c),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'](),_0x189732({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x2345e9=_0x285b5d=>_0x285b5d['stopPropagation']();this['keystrokes']['set']('arrowright',_0x2345e9),this['keystrokes']['set']('arrowleft',_0x2345e9),this['keystrokes']['set']('arrowup',_0x2345e9),this['keystrokes']['set']('arrowdown',_0x2345e9);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x2fe769){this['revisionNameInputView']['fieldView']['element']['value']=_0x2fe769['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x19dd24){const _0x190caa=new nt(this['locale'],_0x5256ca),_0x2fb1c2=_0x190caa['fieldView'];_0x2fb1c2['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x2e8ba3=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x19dd24&&(_0x2e8ba3+='\x20('+m(this['locale'],'optional')+')'),(_0x190caa['label']=_0x2e8ba3,_0x2fb1c2['on']('input',()=>{this['revisionNameInputValue']=_0x2fb1c2['element']['value']['trim']();}),_0x190caa);}}class u extends _0x3f9988{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x24910a=this['editor'],_0x31881b=_0x24910a['plugins']['get']('RevisionTracker');_0x24910a['ui']['componentFactory']['add']('revisionHistory',_0x2f39e0=>{const _0x153b8b=_0x5d3262(_0x2f39e0),_0x266d04=_0x153b8b['panelView']['children'],_0x53b92b=new _0x32fb44(_0x2f39e0),_0x91f015=new _0x315835(_0x2f39e0),_0x2ab000=new _0x41e0b7(_0x2f39e0),_0x591b2a=new _0x315835(_0x2f39e0),_0x2c9c4e=new _0x41e0b7(_0x2f39e0);return _0x153b8b['bind']('isEnabled')['to'](_0x31881b,'isReady',_0x31881b,'isEnabled',_0x24910a,'isReadOnly',(_0x3d4b92,_0x549105,_0xda4563)=>_0x3d4b92&&_0x549105&&!_0xda4563),_0x153b8b['buttonView']['set']({'icon':_0x24ec60['history'],'label':m(_0x2f39e0,'Revision\x20history'),'tooltip':!0x0}),_0x2ab000['set']({'label':m(_0x2f39e0,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x2ab000['bind']('isEnabled')['to'](_0x31881b,'isReady',_0x31881b,'isEnabled',_0x24910a,'isReadOnly',(_0x35be46,_0x33183a,_0x5a5eb8)=>_0x35be46&&_0x33183a&&!_0x5a5eb8),_0x2ab000['on']('execute',()=>this['_showDialog']()),_0x2c9c4e['set']({'label':m(_0x2f39e0,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x2c9c4e['bind']('isEnabled')['to'](_0x31881b,'isReady',_0x24910a,'isReadOnly',(_0x33f355,_0x3bdd00)=>_0x33f355&&!_0x3bdd00),_0x2c9c4e['on']('execute',()=>{_0x24910a['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x153b8b['isOpen']=!0x1,_0x24910a['editing']['view']['focus']();}),_0x91f015['children']['add'](_0x2ab000),_0x591b2a['children']['add'](_0x2c9c4e),_0x53b92b['role']='menu',_0x53b92b['items']['addMany']([_0x91f015,_0x591b2a]),_0x266d04['add'](_0x53b92b),_0x153b8b;}),_0x24910a['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x12163f=this['editor'],_0xe4ec10=_0x12163f['locale'],_0x3d8522=new _0x5a2e0b(_0xe4ec10),_0x32ec85=new _0x398387(_0xe4ec10);_0x3d8522['buttonView']['set']({'icon':_0x24ec60['history'],'label':m(_0xe4ec10,'Revision\x20history')});const _0x57a414=new _0x38bd01(_0xe4ec10,_0x3d8522),_0x45956f=new _0x30c1b2(_0xe4ec10);_0x45956f['set']({'label':m(_0xe4ec10,'Save\x20current\x20revision')}),_0x45956f['delegate']('execute')['to'](_0x3d8522),_0x45956f['on']('execute',()=>{this['_showDialog']();}),_0x57a414['children']['add'](_0x45956f),_0x32ec85['items']['add'](_0x57a414);const _0x121ecf=new _0x38bd01(_0xe4ec10,_0x3d8522),_0x4fb9e6=new _0x30c1b2(_0xe4ec10);return _0x4fb9e6['set']({'label':m(_0xe4ec10,'Open\x20revision\x20history')}),_0x4fb9e6['delegate']('execute')['to'](_0x3d8522),_0x4fb9e6['on']('execute',()=>{_0x12163f['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x121ecf['children']['add'](_0x4fb9e6),_0x32ec85['items']['add'](_0x121ecf),_0x3d8522['panelView']['children']['add'](_0x32ec85),_0x3d8522;}['_showDialog'](){const _0x5cf065=this['editor'],_0x29e3ff=_0x5cf065['locale'],_0x4c3d85=_0x5cf065['plugins']['get']('Dialog'),_0x25d4e3=_0x5cf065['plugins']['get']('RevisionTracker');function _0x208c21(_0x105f45){_0x5cf065['config']['get']('revisionHistory.requireRevisionName')&&''===_0x105f45['revisionName']?_0x105f45['revisionNameInputView']['errorText']=m(_0x29e3ff,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x5cf065['plugins']['get'](l)['saveRevision']({'name':_0x105f45['revisionName']}),_0x4c3d85['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x208c21(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x4c3d85['show']({'id':'revisionSave','title':m(_0x29e3ff,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x5cf065['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x4c3d85['hide']()},{'label':m(_0x5cf065['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x2f4eef){_0x2f4eef['bind']('isEnabled')['to'](_0x25d4e3,'isReady',_0x25d4e3,'isEnabled',_0x5cf065,'isReadOnly',(_0xa33fc3,_0x17effa,_0x9b6ec6)=>_0xa33fc3&&_0x17effa&&!_0x9b6ec6);},'onExecute':()=>_0x208c21(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x25c312=this['editor'],_0x221a57=_0x25c312['locale'];this['_saveRevisionFormView']=new hs(_0x221a57,_0x25c312['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0x472d28{['changeId'];['_model'];constructor(_0x5621e3,_0xaf6eb2){super(_0x5621e3),this['_model']=_0xaf6eb2,this['changeId']=_0xaf6eb2['id'];const _0x4f6648=this['bindTemplate'],_0x391e90=m(_0x5621e3,_0xaf6eb2['data']['isSuggestion']?'Suggested\x20by':'add'==_0xaf6eb2['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0xaf6eb2['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x4f6648['to']('type',_0x1f4a43=>'ck-revision-change__'+_0x1f4a43)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x391e90}]},{'text':'\x20'+_0xaf6eb2['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0xca3c0(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x41fa6a){super(),this['id']=_0x41fa6a['id']||_0x14fde0(),this['author']=_0x41fa6a['author'],this['type']=_0x41fa6a['type'],this['data']=_0x41fa6a['data']||{},this['rootName']=_0x41fa6a['rootName'],this['set']('createdAt',_0x41fa6a['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class f{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x435b51,_0x506df7){this['newRevisionId']=_0x435b51,this['oldRevisionId']=_0x506df7,this['changes']=new _0x3c75d5();}['_setChanges'](_0x5ec269){for(const _0x7ff8c9 of _0x5ec269)this['changes']['add'](_0x7ff8c9);}}const Y={'c':_0x37fdec,'a':_0x1afc78,'e':_0x494f2d,'r':_0x3132b0,'u':_0x1f07d6};class d extends _0x3f9988{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x4e5665,_0x674e75,j];}constructor(_0x232a2b){super(_0x232a2b),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x2388f6,_0x349ea2,_0x1c647f)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x108002=>{for(const _0x531f67 of this['editor']['editing']['view']['document']['roots'])_0x1c647f?_0x108002['removeClass']('ck-editor__editable__overlay',_0x531f67):_0x108002['addClass']('ck-editor__editable__overlay',_0x531f67);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x443737=>null!==_0x443737),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x2f30c8,_0x29584c,_0x34f99b)=>_0x2f30c8&&_0x34f99b?_0x29584c['changes']['getIndex'](_0x34f99b):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x13ead9,_0x2118e8)=>_0x13ead9?_0x2118e8['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x674e75);}['init'](){const _0x517d25=this['editor'],_0x9f8189=new yt(_0x517d25,{'direction':'backward'}),_0x3c93b7=new yt(_0x517d25,{'direction':'forward'});(_0x517d25['commands']['add']('showPreviousChange',_0x9f8189),_0x517d25['commands']['add']('showNextChange',_0x3c93b7),_0x517d25['commands']['add']('restoreRevision',new _t(_0x517d25)),this['on']('change:numberOfChanges',()=>{_0x9f8189['refresh'](),_0x3c93b7['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x517d25['enableReadOnlyMode']('revision-viewer'),_0x517d25['plugins']['has']('WidgetToolbarRepository'))&&_0x517d25['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x2c73d7){await this['loadRevisionData'](_0x2c73d7);const _0x1ea8f5={};for(const _0x4aa5e9 in _0x2c73d7['diffData']){if(_0x2c73d7['diffData'][_0x4aa5e9]['attachChange']&&!_0x2c73d7['diffData'][_0x4aa5e9]['attachChange']['isAttached'])continue;const _0x5495e7=this['_removeRevisionMarkers'](JSON['parse'](_0x2c73d7['diffData'][_0x4aa5e9]['insertions'])),_0x1efdd8=this['editor']['editing']['view']['document'],_0x2239e1=new _0x46b162(_0x1efdd8,_0x5495e7['map'](_0x1dc6ca=>this['_getViewObj'](_0x1dc6ca)));this['editor']['data']['processor']['useFillerType']('marked'),_0x1ea8f5[_0x4aa5e9]=this['editor']['data']['processor']['toData'](_0x2239e1),this['editor']['data']['processor']['useFillerType']('default');}return _0x1ea8f5;}async['getRevisionRootsAttributes'](_0x49363c){await this['loadRevisionData'](_0x49363c);const _0x4bd21d={};for(const _0x1e9d8c in _0x49363c['diffData'])_0x49363c['diffData'][_0x1e9d8c]['attachChange']&&!_0x49363c['diffData'][_0x1e9d8c]['attachChange']['isAttached']||(_0x4bd21d[_0x1e9d8c]=_0x49363c['diffData'][_0x1e9d8c]['attributesAfter']||{});return _0x4bd21d;}['_removeRevisionMarkers'](_0x94ccd){return(_0x94ccd=_0x94ccd['filter'](_0x5d6043=>!_0x5d6043['name']||'revision-start'!==_0x5d6043['name']&&'revision-end'!==_0x5d6043['name']))['forEach'](_0x2611ef=>{'string'!=typeof _0x2611ef&&(_0x2611ef['children']=this['_removeRevisionMarkers'](_0x2611ef['children']),_0x2611ef['attributes']=_0x2611ef['attributes']['filter'](_0x37185e=>!_0x37185e[0x0]['startsWith']('data-revision-')));}),_0x94ccd;}async['compare'](_0x2248e9,_0x34e648,_0x373665=!0x1){if(!this['isEnabled'])return;const _0x2ced34=this['diff'],_0x4d0c0f=this['repository'],_0x47fe46='string'==typeof _0x2248e9?_0x4d0c0f['getRevision'](_0x2248e9):_0x2248e9,_0x490bc7='string'==typeof _0x34e648?_0x4d0c0f['getRevision'](_0x34e648):_0x34e648,_0x118429=_0x47fe46['id'],_0x4f8c0d=_0x490bc7?_0x490bc7['id']:null;if(!_0x373665&&this['diff']&&this['diff']['newRevisionId']===_0x118429&&this['diff']['oldRevisionId']===_0x4f8c0d)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x118429,_0x4f8c0d);const _0x1a8e31=this['_getRevisionsRange'](_0x47fe46,_0x490bc7,!0x0)['map'](_0x5b225a=>this['loadRevisionData'](_0x5b225a));return _0x1a8e31['push'](new Promise(_0x565e60=>{setTimeout(_0x565e60,0x14);})),Promise['all'](_0x1a8e31)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x398cb6=this['_getDiff'](_0x118429,_0x4f8c0d);for(const _0x1b30c3 of _0x398cb6['changes'])this['_changeIdToChange']['set'](_0x1b30c3['id'],_0x1b30c3);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x11168c=>{for(const _0xe0aa2e of this['editor']['model']['document']['getRootNames']())_0x11168c['detachRoot'](_0xe0aa2e);for(const _0x492ab1 of Object['keys'](_0x398cb6['model'])){const _0x245846=_0x11168c['addRoot'](_0x492ab1);for(const _0xe93054 of Object['keys'](_0x398cb6['attributes'][_0x492ab1]))_0x11168c['setAttribute'](_0xe93054,_0x398cb6['attributes'][_0x492ab1][_0xe93054],_0x245846);_0x11168c['insert'](_0x398cb6['model'][_0x492ab1],_0x245846,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x398cb6['changes'])),this['isReady']=!0x0;})['catch'](_0x22db2a=>{console['error'](_0x22db2a),this['_cleanUp'](),_0x2ced34&&(this['diff']=_0x2ced34),this['isReady']=!0x0;});}['addRevisionData'](_0x44a4d4,_0x5bf2b8){const _0x49649d=this['repository']['createRevision'](_0x44a4d4);return _0x49649d['on']('_update',(_0xc5b0ca,_0x46b973,_0x2b44ac)=>_0x5bf2b8(_0x46b973,_0x2b44ac,_0x49649d)),this['repository']['addRevision'](_0x49649d),_0x49649d;}['loadRevisionData'](_0x431b6c){if(!_0x431b6c||_0x431b6c['diffData'])return Promise['resolve']();{const _0x2c9999=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x2c9999,'revisionId':_0x431b6c['id']})['then'](_0x1fc10b=>{_0x431b6c['_update']({'diffData':_0x1fc10b['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x3dbee3=>{for(const _0x51bdd9 of this['editor']['model']['document']['getRootNames']())_0x3dbee3['detachRoot'](_0x51bdd9);});}['_sortAndFilterDiffChanges'](_0x333138){const _0x3a4f32=[],_0x423001=new Map();for(const _0x2125b7 of this['editor']['model']['document']['getRootNames']()){const _0x10058a=this['editor']['editing']['view']['getDomRoot'](_0x2125b7);if(!_0x10058a)continue;const _0x150abd=_0x10058a['getClientRects']()['item'](0x0);_0x150abd&&(_0x3a4f32['push'](_0x2125b7),_0x423001['set'](_0x2125b7,_0x150abd));}return _0x3a4f32['sort']((_0x390dab,_0x792a33)=>{const _0x4386a7=_0x423001['get'](_0x390dab),_0x6e4edf=_0x423001['get'](_0x792a33);return _0x4386a7['y']-_0x6e4edf['y']||_0x4386a7['x']-_0x6e4edf['x'];}),(_0x333138=_0x333138['filter'](_0x25ef42=>_0x3a4f32['includes'](_0x25ef42['rootName'])))['sort']((_0x10f8e2,_0x2a0666)=>_0x3a4f32['indexOf'](_0x10f8e2['rootName'])-_0x3a4f32['indexOf'](_0x2a0666['rootName'])),_0x333138;}['_makeTape'](_0x33416f){const _0xb8f474=Array['from'](_0x33416f['markers'])['filter'](([_0x187fe7,_0x3b14d4])=>_0x187fe7['startsWith']('revision:')&&!_0x3b14d4['isCollapsed']),_0xfcb081=Array['from'](this['editor']['model']['createRangeIn'](_0x33416f)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0xb8f474['length'])for(const _0x21b462 of _0xfcb081){const [_0x20aad6,_0x4d5fdd]=_0xb8f474[0x0],[,_0x76789a,_0x17e083]=_0x20aad6['split'](':');if(_0x4d5fdd['end']['isEqual'](_0x21b462['nextPosition'])&&_0xb8f474['shift'](),(_0x21b462['previousPosition']['isEqual'](_0x4d5fdd['start'])||_0x21b462['previousPosition']['isAfter'](_0x4d5fdd['start']))&&('insertion'==_0x76789a?_0x21b462['isAdded']={'userId':_0x17e083}:'deletion'==_0x76789a&&(_0x21b462['isRemoved']={'userId':_0x17e083})),0x0==_0xb8f474['length'])break;}return _0xfcb081;}['_refreshStartEndIndex'](_0x47fc2e){const _0x329c4b=new Map();for(let _0x3305ba=0x0;_0x3305ba<_0x47fc2e['length'];_0x3305ba++)'text'===_0x47fc2e[_0x3305ba]['type']?(_0x47fc2e[_0x3305ba]['item']['startIndex']=_0x3305ba,_0x47fc2e[_0x3305ba]['item']['endIndex']=_0x3305ba):('elementStart'===_0x47fc2e[_0x3305ba]['type']?_0x47fc2e[_0x3305ba]['item']['startIndex']=_0x3305ba:'elementEnd'===_0x47fc2e[_0x3305ba]['type']&&(_0x47fc2e[_0x3305ba]['item']['endIndex']=_0x3305ba),_0x329c4b['set'](_0x47fc2e[_0x3305ba]['id'],_0x3305ba));for(const _0x49eaf0 of _0x329c4b['values']())'elementStart'===_0x47fc2e[_0x49eaf0]['type']?_0x47fc2e[_0x49eaf0]['item']['endIndex']=_0x329c4b['get'](_0x47fc2e[_0x49eaf0]['pairId']):'elementEnd'===_0x47fc2e[_0x49eaf0]['type']&&(_0x47fc2e[_0x49eaf0]['item']['startIndex']=_0x329c4b['get'](_0x47fc2e[_0x49eaf0]['pairId']));}['_processTape'](_0x40eab3){for(let _0x33bc1b=0x0;_0x33bc1b<_0x40eab3['length'];_0x33bc1b++){if('elementStart'===_0x40eab3[_0x33bc1b]['type'])_0x40eab3[_0x33bc1b]['item']['startIndex']=_0x33bc1b;else{if('elementEnd'===_0x40eab3[_0x33bc1b]['type']){_0x40eab3[_0x33bc1b]['item']['endIndex']=_0x33bc1b;const _0x244757=_0x40eab3[_0x33bc1b]['item']['startIndex'];_0x40eab3[_0x244757]['pairId']=_0x40eab3[_0x33bc1b]['id'],_0x40eab3[_0x33bc1b]['pairId']=_0x40eab3[_0x244757]['id'];}else _0x40eab3[_0x33bc1b]['item']['startIndex']=_0x33bc1b,_0x40eab3[_0x33bc1b]['item']['endIndex']=_0x33bc1b,_0x40eab3[_0x33bc1b]['pairId']=null;}_0x40eab3[_0x33bc1b]['markersStart']||(_0x40eab3[_0x33bc1b]['markersStart']=[],_0x40eab3[_0x33bc1b]['markersEnd']=[]);}}['_markInsertions'](_0x104bce,_0x4be6e2){const _0x378610=_0x104bce['filter'](_0x57ecb6=>!_0x57ecb6['isAdded']);for(let _0x3c3db1=0x0;_0x3c3db1<_0x4be6e2['length'];_0x3c3db1++)_0x4be6e2[_0x3c3db1]['isAdded']&&(_0x378610[_0x3c3db1]['isAdded']=_0x4be6e2[_0x3c3db1]['isAdded']);}['_makeModelFromViewString'](_0x3da61f){const _0x48ac5e=JSON['parse'](_0x3da61f),_0x138ad4=this['editor']['editing']['view']['document'],_0x110e0d=new _0x46b162(_0x138ad4,_0x48ac5e['map'](_0x5d4c17=>this['_getViewObj'](_0x5d4c17)));return this['editor']['data']['toModel'](_0x110e0d);}['_getViewObj'](_0x10c862){const _0x20c67c=this['editor']['editing']['view']['document'];if('string'==typeof _0x10c862)return new _0x297344(_0x20c67c,_0x10c862);{const _0x5cdb92=_0x10c862['children']['map'](_0x19979d=>this['_getViewObj'](_0x19979d));return new(Y[_0x10c862['type']]||_0x45205b)(_0x20c67c,_0x10c862['name'],_0x10c862['attributes'],_0x5cdb92);}}['_getDiff'](_0x277c48,_0x19a018=null){const _0x5527e7=this['repository']['getRevision'](_0x277c48),_0x19dcc8=_0x19a018?this['repository']['getRevision'](_0x19a018):null,_0x7de1d9=this['_getRevisionsRange'](_0x5527e7,_0x19dcc8),_0x572b0d=_0x7de1d9[_0x7de1d9['length']-0x1],_0x1d4f37=new Map(),_0x141b77={'model':{},'attributes':{},'changes':[]},_0x57abed=new Set(),_0x5c31de=new Map();for(let _0x6f948b=_0x7de1d9['length']-0x1;_0x6f948b>=0x0;_0x6f948b--){const _0x551002=_0x7de1d9[_0x6f948b];for(const _0x48828c of Object['keys'](_0x551002['diffData']))if(_0x551002['diffData'][_0x48828c]['attachChange']){const _0x5797d4=_0x551002['diffData'][_0x48828c]['attachChange'];_0x5797d4['isAttached']?(_0x57abed['add'](_0x48828c),_0x5c31de['has'](_0x48828c)&&_0x5c31de['get'](_0x48828c)['userId']==_0x5797d4['userId']?_0x5c31de['delete'](_0x48828c):_0x5c31de['set'](_0x48828c,_0x5797d4)):_0x5c31de['has'](_0x48828c)?(_0x57abed['delete'](_0x48828c),_0x5c31de['delete'](_0x48828c)):(_0x57abed['add'](_0x48828c),_0x5c31de['set'](_0x48828c,_0x5797d4));}else _0x57abed['add'](_0x48828c);}for(const _0x4958ab of _0x57abed){const _0x82ae9b=_0x5c31de['has'](_0x4958ab)&&!_0x5c31de['get'](_0x4958ab)['isAttached'];let _0x5d21ef=_0x82ae9b?_0x7de1d9['length']-0x1:0x0;const _0x467b09=_0x82ae9b?-0x1:0x1;for(;_0x7de1d9[_0x5d21ef];){const _0x2b18ae=_0x7de1d9[_0x5d21ef];if(_0x2b18ae['diffData'][_0x4958ab]){const _0x2c6801=_0x82ae9b?_0x2b18ae['diffData'][_0x4958ab]['attributesBefore']:_0x2b18ae['diffData'][_0x4958ab]['attributesAfter'];_0x141b77['attributes'][_0x4958ab]=_0x2c6801?_0x402cfd(_0x2c6801):{};break;}_0x5d21ef+=_0x467b09;}}for(const _0x8b0726 of _0x7de1d9){_0x8b0726['model']={};for(const _0x3a2db8 of _0x8b0726['authors'])_0x1d4f37['set'](_0x3a2db8['id'],_0x3a2db8);for(const _0xe1b3bc of _0x57abed){const _0x367347=_0x8b0726['diffData'][_0xe1b3bc]?_0x8b0726['diffData'][_0xe1b3bc]['insertions']:'[]',_0x5284d3=_0x8b0726['diffData'][_0xe1b3bc]?_0x8b0726['diffData'][_0xe1b3bc]['deletions']:'[]';_0x8b0726['model'][_0xe1b3bc]={'insertions':this['_makeModelFromViewString'](_0x367347),'deletions':this['_makeModelFromViewString'](_0x5284d3)};}}for(const _0x4b4330 of _0x57abed){let _0x118e39=null,_0x1c1bee=0x0;const _0x4cf180=new Map(Array['from'](_0x5527e7['model'][_0x4b4330]['insertions']['markers'])['filter'](([_0x24dd61])=>!_0x24dd61['startsWith']('revision:')));let _0x16644d=0x0;for(const _0x545eec of _0x7de1d9){const _0x236582=this['_makeTape'](_0x545eec['model'][_0x4b4330]['insertions']);_0x545eec==_0x5527e7?(_0x118e39=_0x236582,_0x1c1bee=_0x118e39['length'],_0x118e39['forEach'](_0x5ed6a5=>{_0x5ed6a5['id']=_0x16644d++;}),this['_processTape'](_0x118e39)):this['_markInsertions'](_0x118e39,_0x236582);const _0x4801ad=_0x118e39['filter'](_0x2c11ab=>!_0x2c11ab['isAdded'])['map'](_0x1ab00e=>_0x1ab00e['id']);let _0x159443=0x0;const _0x1892e2=this['_makeTape'](_0x545eec['model'][_0x4b4330]['deletions']);_0x1892e2['forEach'](_0x3e019d=>{_0x3e019d['isRemoved']?_0x3e019d['id']=_0x1c1bee++:_0x3e019d['id']=_0x4801ad[_0x159443++];}),this['_processTape'](_0x1892e2),this['_setDistance'](_0x118e39,'isAdded'),this['_setDistance'](_0x1892e2,'isRemoved'),_0x545eec==_0x5527e7&&this['_markMarkers'](_0x118e39,_0x4cf180),_0x118e39=this['_joinTapes'](_0x118e39,_0x1892e2),this['_refreshStartEndIndex'](_0x118e39),this['_setDistance'](_0x118e39,'isRemoved');}_0x118e39=_0x118e39['filter'](_0x45dfd2=>!(_0x45dfd2['isAdded']&&_0x45dfd2['isRemoved']));const _0x349a03=new Map(_0x572b0d['model'][_0x4b4330]['deletions']['markers']),_0x25744e=new Set(_0x4cf180['keys']());for(const _0x3b4bf4 of _0x349a03['keys']())_0x25744e['delete'](_0x3b4bf4);this['_markSuggestions'](_0x118e39,_0x25744e),this['_fixObsoleteTags'](_0x118e39),_0x118e39=this['_removeMissingPairs'](_0x118e39),_0x118e39=this['_markMismatchedRemovedTags'](_0x118e39),_0x118e39=this['_removeUnsupportedChanges'](_0x118e39);const {root:_0x51e274,changes:_0x57dae4}=this['_makeModelFromTape'](_0x118e39,_0x1d4f37,_0x4b4330);_0x141b77['model'][_0x4b4330]=_0x51e274;const _0x53eec6=_0x5c31de['get'](_0x4b4330);if(_0x53eec6){const _0x5892a5=_0x1d4f37['get'](_0x53eec6['userId']),_0x3e02f1=new r({'author':_0x5892a5,'type':_0x53eec6['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x4b4330});_0x57dae4['unshift'](_0x3e02f1),_0x141b77['attributes'][_0x4b4330]['revisionHistoryAttachChange']=_0x3e02f1['id'];}_0x141b77['changes']=_0x141b77['changes']['concat'](_0x57dae4);}return _0x141b77;}['_markMarkers'](_0x243bcf,_0x5703fa){for(let _0x22a961=0x0;_0x22a961<_0x243bcf['length'];_0x22a961++)for(const [_0x2f227b,_0xcb9b63]of _0x5703fa)_0xcb9b63['start']['isEqual'](_0x243bcf[_0x22a961]['previousPosition'])&&_0x243bcf[_0x22a961]['markersStart']['push'](_0x2f227b),_0xcb9b63['end']['isEqual'](_0x243bcf[_0x22a961]['nextPosition'])&&_0x243bcf[_0x22a961]['markersEnd']['push'](_0x2f227b);}['_joinTapes'](_0x53b207,_0x2d5933){let _0x1ba169=[],_0x51f7d4=0x0,_0x412fda=0x0;for(;_0x51f7d4<_0x53b207['length']||_0x412fda<_0x2d5933['length'];){const _0xa2d069=_0x53b207[_0x51f7d4]||{},_0x2b69d2=_0x2d5933[_0x412fda]||{};if(_0xa2d069['id']==_0x2b69d2['id'])_0x51f7d4++,_0x412fda++,_0x1ba169['push'](_0xa2d069);else{if(_0x2b69d2['isRemoved']&&_0xa2d069['isAdded']){const {commonTape:_0xab048b,iEnd:_0x4dc80a,jEnd:_0x16db5f}=this['_threeWayMerge'](_0x53b207,_0x51f7d4,_0x2d5933,_0x412fda);_0x1ba169=_0x1ba169['concat'](_0xab048b),_0x51f7d4=_0x4dc80a,_0x412fda=_0x16db5f;}else _0x2b69d2['isRemoved']?(_0x412fda++,_0x1ba169['push'](_0x2b69d2)):(_0x51f7d4++,_0x1ba169['push'](_0xa2d069));}}return _0x1ba169;}['_markSuggestions'](_0x5a8dc5,_0x5b100b){const _0x47fa3d=[];for(let _0x3c554f=0x0;_0x3c554f<_0x5a8dc5['length'];_0x3c554f++){for(let _0x3634c5=0x0;_0x3634c5<_0x5a8dc5[_0x3c554f]['markersStart']['length'];_0x3634c5++){const _0x3c7e37=_0x5a8dc5[_0x3c554f]['markersStart'][_0x3634c5];if(!_0x5b100b['has'](_0x3c7e37))continue;const {group:_0xbb430,type:_0x320257,authorId:_0x4db513}=_0x582866(_0x3c7e37);'revision-suggestion'!=_0xbb430||'insertion'!=_0x320257&&'deletion'!=_0x320257||(_0x47fa3d['unshift']({'type':_0x320257,'name':_0x3c7e37,'userId':_0x4db513}),_0x5a8dc5[_0x3c554f]['markersStart']['splice'](_0x3634c5,0x1),_0x3634c5--);}_0x2788ff(_0x5a8dc5[_0x3c554f]);for(let _0x4c4953=0x0;_0x4c4953<_0x5a8dc5[_0x3c554f]['markersEnd']['length'];_0x4c4953++){const _0x1c789f=_0x5a8dc5[_0x3c554f]['markersEnd'][_0x4c4953];if(!_0x5b100b['has'](_0x1c789f))continue;const {group:_0x419dd1,type:_0x10e2b1}=_0x582866(_0x1c789f);if('revision-suggestion'!=_0x419dd1||'insertion'!=_0x10e2b1&&'deletion'!=_0x10e2b1)continue;_0x5a8dc5[_0x3c554f]['markersEnd']['splice'](_0x4c4953,0x1),_0x4c4953--;const _0x1e2a2a=_0x47fa3d['findIndex'](_0x3bd3c6=>_0x3bd3c6['name']==_0x1c789f);_0x1e2a2a>-0x1&&_0x47fa3d['splice'](_0x1e2a2a,0x1);}}function _0x582866(_0x4c6903){const _0x5bd958=_0x4c6903['split'](':');return{'group':_0x5bd958[0x0],'type':_0x5bd958[0x1],'subType':_0x5bd958['length']>=0x5?_0x5bd958[0x2]:null,'id':_0x5bd958['length']<0x5?_0x5bd958[0x2]:_0x5bd958[0x3],'authorId':_0x5bd958['length']<0x5?_0x5bd958[0x3]:_0x5bd958[0x4],'markerCount':0x6==_0x5bd958['length']?_0x5bd958[0x5]:null};}function _0x2788ff(_0xfdfafa){for(let _0x5b1c80=0x0;_0x5b1c80<_0x47fa3d['length'];_0x5b1c80++){if(_0xfdfafa['isAdded']&&'insertion'==_0x47fa3d[_0x5b1c80]['type'])return _0xfdfafa['isAddSuggestion']=_0x47fa3d[_0x5b1c80],void delete _0xfdfafa['isAdded'];if(!_0xfdfafa['isAdded']&&!_0xfdfafa['isRemoved']&&'deletion'==_0x47fa3d[_0x5b1c80]['type'])return void(_0xfdfafa['isRemoveSuggestion']=_0x47fa3d[_0x5b1c80]);}}}['_setDistance'](_0x14efe8,_0x37cf96){let _0x1ecd31=0x0,_0x30f04a=!0x1;const _0x541c71=new Map();for(const _0x1c3a4a of _0x14efe8)_0x1c3a4a[_0x37cf96]?_0x30f04a&&(_0x1ecd31++,_0x30f04a=!0x1):(_0x1ecd31++,_0x30f04a=!0x0),_0x541c71['set'](_0x1c3a4a['id'],_0x1ecd31);for(let _0x3c4068=0x0;_0x3c4068<_0x14efe8['length'];_0x3c4068++){if('isRemoved'==_0x37cf96&&_0x14efe8[_0x3c4068]['isAdded']||'isAdded'==_0x37cf96&&_0x14efe8[_0x3c4068]['isRemoved'])continue;if('text'==_0x14efe8[_0x3c4068]['type']){_0x14efe8[_0x3c4068]['distance']=0x0;continue;}const _0x4e2be8=_0x541c71['get'](_0x14efe8[_0x3c4068]['pairId']),_0x527d4f=_0x541c71['get'](_0x14efe8[_0x3c4068]['id']);_0x14efe8[_0x3c4068]['distance']=_0x4e2be8-_0x527d4f;}}['_getRevisionsRange'](_0x42dcc3,_0x1e26f9,_0x3cf6ef=!0x1){const _0x43ca65=[];let _0x337ce4=this['repository']['getIndex'](_0x42dcc3),_0x447dd3=this['repository']['getIndex'](_0x1e26f9);for(-0x1==_0x447dd3&&(_0x447dd3=this['repository']['_revisions']['length'],_0x3cf6ef=!0x1);_0x337ce4<_0x447dd3;)_0x43ca65['push'](this['repository']['getRevision'](_0x337ce4)),_0x337ce4++;return _0x3cf6ef&&_0x43ca65['push'](this['repository']['getRevision'](_0x337ce4)),_0x43ca65;}['_threeWayMerge'](_0x5b2191,_0x30f6bc,_0x294f86,_0x1333ea){const _0x4414f9=this['editor']['model']['schema'];let _0x4ad4f8=_0x30f6bc;for(;_0x5b2191[_0x4ad4f8]&&_0x5b2191[_0x4ad4f8]['isAdded'];)_0x4ad4f8++;let _0x365255=_0x1333ea;for(;_0x294f86[_0x365255]&&_0x294f86[_0x365255]['isRemoved'];)_0x365255++;_0x59f248(_0x5b2191,_0x30f6bc,_0x4ad4f8),_0x59f248(_0x294f86,_0x1333ea,_0x365255);const _0x1a79bb=_0x294f86['slice'](_0x1333ea,_0x365255)['concat'](_0x5b2191['slice'](_0x30f6bc,_0x4ad4f8));return _0x1a79bb['sort']((_0x58fa05,_0x4ae0a8)=>_0x58fa05['side']!=_0x4ae0a8['side']?_0x58fa05['side']-_0x4ae0a8['side']:_0x58fa05['level']!=_0x4ae0a8['level']?_0x58fa05['level']-_0x4ae0a8['level']:_0x58fa05['distance']!=_0x4ae0a8['distance']?_0x4ae0a8['distance']-_0x58fa05['distance']:!!_0x58fa05['isAdded']!=!!_0x4ae0a8['isAdded']?-0x1==_0x58fa05['side']||0x0==_0x58fa05['side']?_0x58fa05['isAdded']?-0x1:0x1:_0x58fa05['isAdded']?0x1:-0x1:_0x58fa05['index']-_0x4ae0a8['index']),{'commonTape':_0x1a79bb,'iEnd':_0x4ad4f8,'jEnd':_0x365255};function _0x59f248(_0x10c899,_0x23c333,_0x42d818){let _0x2f63d9=-0x1,_0x1596d7=Number['POSITIVE_INFINITY'],_0x5a9888=!0x0;for(let _0x79e756=_0x23c333;_0x79e756<_0x42d818;_0x79e756++)if(_0x4414f9['isInline'](_0x10c899[_0x79e756]['item'])||(_0x5a9888=!0x1),_0x10c899[_0x79e756]['item']['startIndex']<_0x23c333&&(_0x2f63d9=_0x79e756),_0x10c899[_0x79e756]['item']['endIndex']>=_0x42d818){_0x1596d7=_0x79e756;break;}_0x5a9888&&(_0x2f63d9=_0x42d818-0x1);for(let _0x6bc6e8=_0x23c333;_0x6bc6e8<_0x42d818;_0x6bc6e8++)_0x10c899[_0x6bc6e8]['side']=_0x6bc6e8<=_0x2f63d9?-0x1:_0x6bc6e8<_0x1596d7?0x0:0x1,_0x10c899[_0x6bc6e8]['index']=_0x6bc6e8;let _0x3d7baf=0x0;for(let _0x5a670b=_0x23c333;_0x5a670b<=_0x2f63d9;_0x5a670b++)0x0==_0x10c899[_0x5a670b]['distance']?_0x10c899[_0x5a670b]['level']=_0x3d7baf:(_0x3d7baf++,_0x10c899[_0x5a670b]['level']=_0x3d7baf,_0x3d7baf++);for(let _0x4c06e7=_0x23c333;_0x4c06e7<_0x42d818;_0x4c06e7++)0x0==_0x10c899[_0x4c06e7]['side']&&(_0x10c899[_0x4c06e7]['level']=_0x3d7baf);_0x3d7baf=0x0;for(let _0x3d8bde=_0x42d818-0x1;_0x3d8bde>=_0x1596d7;_0x3d8bde--)0x0==_0x10c899[_0x3d8bde]['distance']?_0x10c899[_0x3d8bde]['level']=_0x3d7baf:(_0x3d7baf--,_0x10c899[_0x3d8bde]['level']=_0x3d7baf,_0x3d7baf--);}}['_fixObsoleteTags'](_0x52307d){const _0x4a7bb8=new Map(),_0x487434=this['editor']['model']['schema'];for(let _0x2f75dc=0x1;_0x2f75dc<_0x52307d['length'];_0x2f75dc++){let _0x161c5f,_0x417d50,_0x5b4002;const _0x5b2e84=_0x52307d[_0x2f75dc],_0x5428c3=_0x52307d[_0x2f75dc-0x1];if('text'==_0x5b2e84['type'])continue;if(_0x5b2e84['type']!=_0x5428c3['type'])continue;if(!_0x487434['isBlock'](_0x5428c3['item'])||_0x487434['isLimit'](_0x5428c3['item']))continue;if(!_0x487434['isBlock'](_0x5b2e84['item'])||_0x487434['isLimit'](_0x5b2e84['item']))continue;if((_0x52307d[_0x2f75dc]['isAdded']||_0x52307d[_0x2f75dc]['isAddSuggestion'])&&_0x52307d[_0x2f75dc-0x1]['isRemoved'])_0x161c5f=_0x52307d[_0x2f75dc],_0x417d50=_0x52307d[_0x2f75dc-0x1],_0x5b4002=_0x2f75dc-0x1;else{if(!_0x52307d[_0x2f75dc]['isRemoved']||!_0x52307d[_0x2f75dc-0x1]['isAdded']&&!_0x52307d[_0x2f75dc-0x1]['isAddSuggestion'])continue;_0x161c5f=_0x52307d[_0x2f75dc-0x1],_0x417d50=_0x52307d[_0x2f75dc],_0x5b4002=_0x2f75dc;}const _0x4490ed=_0x161c5f['level']==_0x417d50['level'],_0x3848c1=Math['abs'](_0x161c5f['level'])<Math['abs'](_0x417d50['level'])&&0x0==_0x417d50['distance'];(_0x4490ed||_0x3848c1)&&(_0x4a7bb8['set'](_0x417d50['id'],_0x161c5f['id']),_0x52307d['splice'](_0x5b4002,0x1),_0x2f75dc--,_0x161c5f['isAdded']=!0x1);}for(let _0x3357bb=0x0;_0x3357bb<_0x52307d['length'];_0x3357bb++)_0x4a7bb8['has'](_0x52307d[_0x3357bb]['pairId'])&&(_0x52307d[_0x3357bb]['pairId']=_0x4a7bb8['get'](_0x52307d[_0x3357bb]['pairId']));}['_removeMissingPairs'](_0x4684a0){const _0x3daef5=new Set(_0x4684a0['map'](_0x1f9c1a=>_0x1f9c1a['id']));for(let _0xe3f220=0x0;_0xe3f220<_0x4684a0['length'];_0xe3f220++)_0x3daef5['has'](_0x4684a0[_0xe3f220]['pairId'])||0x0==_0x4684a0[_0xe3f220]['distance']||(_0x4684a0[_0xe3f220]['isIncorrect']=!0x0);return _0x4684a0['filter'](_0x1be62c=>!_0x1be62c['isIncorrect']);}['_markMismatchedRemovedTags'](_0x1b89f2){const _0x4475ad=new Set();for(let _0x239570=0x0;_0x239570<_0x1b89f2['length'];_0x239570++){if(_0x4475ad['has'](_0x1b89f2[_0x239570]['id'])&&_0x1b89f2[_0x239570]['isRemoved']&&(_0x1b89f2[_0x239570]['isIncorrect']=!0x0),_0x1b89f2[_0x239570]['isIncorrect'])continue;if(0x0==_0x1b89f2[_0x239570]['distance'])continue;if('elementStart'!=_0x1b89f2[_0x239570]['type'])continue;if(null==_0x1b89f2[_0x239570]['pairId'])continue;let _0xf664cb=_0x239570+0x1,_0x2af6a2=0x0;for(;_0x1b89f2[_0xf664cb]['id']!=_0x1b89f2[_0x239570]['pairId'];)'elementStart'==_0x1b89f2[_0xf664cb]['type']?_0x2af6a2++:'elementEnd'==_0x1b89f2[_0xf664cb]['type']&&_0x2af6a2--,_0xf664cb++;if(0x0!=_0x2af6a2){if(_0x1b89f2[_0x239570]['isRemoved'])_0x1b89f2[_0x239570]['isIncorrect']=!0x0;else{for(;_0xf664cb!=_0x239570;)_0x1b89f2[_0xf664cb]['isRemoved']&&0x0!=_0x1b89f2[_0xf664cb]['distance']&&(_0x1b89f2[_0xf664cb]['isIncorrect']=!0x0,_0x4475ad['add'](_0x1b89f2[_0xf664cb]['pairId'])),_0xf664cb--;}}}return _0x1b89f2['filter'](_0x23720e=>!_0x23720e['isIncorrect']);}['_removeUnsupportedChanges'](_0x13ed5f){const _0x31db7c=this['editor']['model']['schema'];for(let _0x4027f1=0x0;_0x4027f1<_0x13ed5f['length'];_0x4027f1++){if(!(_0x13ed5f[_0x4027f1]['isAdded']||_0x13ed5f[_0x4027f1]['isAddSuggestion']||_0x13ed5f[_0x4027f1]['isRemoved']||_0x13ed5f[_0x4027f1]['isRemoveSuggestion']))continue;if(0x0==_0x13ed5f[_0x4027f1]['distance'])continue;const _0x18db43=_0x13ed5f[_0x4027f1]['item'];_0x31db7c['isBlock'](_0x18db43)||_0x31db7c['isLimit'](_0x18db43)||(_0x13ed5f[_0x4027f1]['isAdded']&&delete _0x13ed5f[_0x4027f1]['isAdded'],_0x13ed5f[_0x4027f1]['isAddSuggestion']&&delete _0x13ed5f[_0x4027f1]['isAddSuggestion'],_0x13ed5f[_0x4027f1]['isRemoveSuggestion']&&delete _0x13ed5f[_0x4027f1]['isRemoveSuggestion'],_0x13ed5f[_0x4027f1]['isRemoved']&&(_0x13ed5f[_0x4027f1]['isIncorrect']=!0x0));}return _0x13ed5f['filter'](_0xcee696=>!_0xcee696['isIncorrect']);}['_makeModelFromTape'](_0x2baabb,_0x4cd01f,_0x146b57){const _0x278e15=new mt(),_0x5e9f84=[],_0x7eeba2=new Map(),_0x4e8f56=this['editor']['model'],_0x25984b=_0x4e8f56['schema'],_0x2a77f6=[_0x278e15],_0x27e21c={},_0x28e11f={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x4384dd=null;const _0x2245d7=[0x0];for(let _0x44d264=0x0;_0x44d264<_0x2baabb['length'];_0x44d264++)if('elementStart'===_0x2baabb[_0x44d264]['type']){_0x2baabb[_0x44d264]['previousPosition']=_0x4e8f56['createPositionFromPath'](_0x278e15,_0x2245d7);const _0x4c8ae9=new ft(_0x2baabb[_0x44d264]['item']['name'],_0x2baabb[_0x44d264]['item']['getAttributes']());_0x2a77f6[0x0]['_appendChild'](_0x4c8ae9),_0x2245d7['push'](0x0),_0x2a77f6['unshift'](_0x4c8ae9),_0x2baabb[_0x44d264]['nextPosition']=_0x4e8f56['createPositionFromPath'](_0x278e15,_0x2245d7);}else'elementEnd'===_0x2baabb[_0x44d264]['type']?(_0x2a77f6['shift'](),_0x2baabb[_0x44d264]['previousPosition']=_0x4e8f56['createPositionFromPath'](_0x278e15,_0x2245d7),_0x2245d7['pop'](),_0x2245d7[_0x2245d7['length']-0x1]++,_0x2baabb[_0x44d264]['nextPosition']=_0x4e8f56['createPositionFromPath'](_0x278e15,_0x2245d7)):(_0x2baabb[_0x44d264]['previousPosition']=_0x4e8f56['createPositionFromPath'](_0x278e15,_0x2245d7),_0x4384dd?_0x4384dd['_data']+=_0x2baabb[_0x44d264]['item']['data']:_0x4384dd=new wt(_0x2baabb[_0x44d264]['item']['data'],_0x2baabb[_0x44d264]['item']['getAttributes']()),_0x2baabb[_0x44d264+0x1]&&'text'===_0x2baabb[_0x44d264+0x1]['type']&&_0x4af95d(_0x4384dd,_0x2baabb[_0x44d264+0x1]['item'])||(_0x2a77f6[0x0]['_appendChild'](_0x4384dd),_0x4384dd=null),_0x2245d7[_0x2245d7['length']-0x1]+=_0x2baabb[_0x44d264]['item']['offsetSize'],_0x2baabb[_0x44d264]['nextPosition']=_0x4e8f56['createPositionFromPath'](_0x278e15,_0x2245d7));for(let _0x390956=0x0;_0x390956<_0x2baabb['length'];_0x390956++){const _0x560c30=_0x2baabb[_0x390956]['previousPosition'],_0x5dbe95=_0x2baabb[_0x390956]['nextPosition'];for(const _0x5ad357 of _0x2baabb[_0x390956]['markersStart'])_0x7eeba2['set'](_0x5ad357,{'start':_0x560c30,'end':null});_0x1743d2('isRemoveSuggestion',_0x390956,_0x560c30,_0x5dbe95),_0x1743d2('isAddSuggestion',_0x390956,_0x560c30,_0x5dbe95),_0x1743d2('isRemoved',_0x390956,_0x560c30,_0x5dbe95),_0x1743d2('isAdded',_0x390956,_0x560c30,_0x5dbe95);for(const _0x23a420 of _0x2baabb[_0x390956]['markersEnd']){_0x7eeba2['get'](_0x23a420)['end']=_0x5dbe95;}}for(const [_0x17de01,_0x15dc29]of _0x7eeba2){const _0x3be541=this['editor']['model']['createRange'](_0x15dc29['start'],_0x15dc29['end']);_0x278e15['markers']['set'](_0x17de01,_0x3be541);}return _0x5e9f84['sort']((_0x6e4a0d,_0x59f9bc)=>{const _0x57e69d=_0x278e15['markers']['get']('revision:'+_0x6e4a0d['id']),_0x796392=_0x278e15['markers']['get']('revision:'+_0x59f9bc['id']);return _0x57e69d['start']['isBefore'](_0x796392['start'])?-0x1:_0x57e69d['start']['isAfter'](_0x796392['start'])?0x1:_0x57e69d['end']['isBefore'](_0x796392['end'])?-0x1:_0x57e69d['end']['isAfter'](_0x796392['end'])?0x1:'add'===_0x6e4a0d['type']?-0x1:0x1;}),{'root':_0x278e15,'changes':_0x5e9f84};function _0x1743d2(_0x45ba7d,_0x185219,_0x567461,_0x523531){const _0xee7372=!!_0x2baabb[_0x185219][_0x45ba7d],_0x134448=_0xee7372?_0x2baabb[_0x185219][_0x45ba7d]['userId']:null,_0x2f41b6=_0x185219===_0x2baabb['length']-0x1,_0x4fab14=_0x28e11f[_0x45ba7d][0x0],_0x511140=_0x25984b['isObject'](_0x2baabb[_0x185219]['item']);!_0x27e21c[_0x45ba7d]&&_0xee7372?_0x27e21c[_0x45ba7d]={'start':_0x567461,'tapeItem':_0x2baabb[_0x185219],'userId':_0x134448,'type':_0x45ba7d}:_0x27e21c[_0x45ba7d]&&!_0xee7372?(_0x27e21c[_0x45ba7d]['end']=_0x567461,_0x294248(_0x27e21c[_0x45ba7d]),_0x27e21c[_0x45ba7d]=null):_0x27e21c[_0x45ba7d]&&_0xee7372&&_0x27e21c[_0x45ba7d]['userId']!==_0x134448&&(_0x27e21c[_0x45ba7d]['end']=_0x567461,_0x4fab14&&_0x4fab14['userId']===_0x27e21c[_0x45ba7d]['userId']||_0x294248(_0x27e21c[_0x45ba7d]),_0x27e21c[_0x45ba7d]={'start':_0x567461,'tapeItem':_0x2baabb[_0x185219],'userId':_0x134448,'type':_0x45ba7d}),_0x27e21c[_0x45ba7d]&&_0x511140&&('elementStart'!==_0x2baabb[_0x185219]['type']||_0x4fab14&&_0x4fab14['userId']===_0x134448||_0x28e11f[_0x45ba7d]['unshift']({'userId':_0x134448,'object':_0x2baabb[_0x185219]['item'],'change':_0x27e21c[_0x45ba7d]}),'elementEnd'===_0x2baabb[_0x185219]['type']&&_0x4fab14&&_0x4fab14['object']===_0x2baabb[_0x185219]['item']&&(_0x28e11f[_0x45ba7d]['shift'](),_0x27e21c[_0x45ba7d]=_0x4fab14['change'])),_0x27e21c[_0x45ba7d]&&_0x2f41b6&&(_0x27e21c[_0x45ba7d]['end']=_0x523531,_0x294248(_0x27e21c[_0x45ba7d]),_0x27e21c[_0x45ba7d]=null);}function _0x294248({start:_0x15c4b6,end:_0xf1883c,tapeItem:_0x10626e,userId:_0x3af56d,type:_0x56e52c}){const _0x5b27fd=_0x10626e['item'],_0x27176a=_0x4e8f56['schema']['isBlock'](_0x5b27fd)&&!_0x4e8f56['schema']['isLimit'](_0x5b27fd),_0x5070ca=_0x15c4b6['nodeAfter']==_0xf1883c['parent']&&_0xf1883c['isAtStart'];if(_0x27176a&&_0x5070ca)return;const _0x347e86=_0x4e8f56['createRange'](_0x15c4b6,_0xf1883c),_0x8e7f5c=_0x4cd01f['get'](_0x3af56d),_0x13bf2d=new r({'author':_0x8e7f5c,'type':'isAdded'==_0x56e52c||'isAddSuggestion'==_0x56e52c?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x56e52c||'isRemoveSuggestion'==_0x56e52c},'createdAt':new Date(),'rootName':_0x146b57});_0x5e9f84['push'](_0x13bf2d),_0x278e15['markers']['set']('revision:'+_0x13bf2d['id'],_0x347e86);}function _0x4af95d(_0x43badb,_0x2c8467){const _0x18d209=_0x43badb['getAttributes'](),_0xdc4adf=_0x2c8467['getAttributes']();for(const _0x2d84f6 of _0x18d209){if(_0x2d84f6[0x1]!==_0x2c8467['getAttribute'](_0x2d84f6[0x0]))return!0x1;_0xdc4adf['next']();}return _0xdc4adf['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x45a546=>{const _0x53cf04=_0x45a546['markerName']['split'](':')[0x1],_0x5453dd=this['_getChangeFromId'](_0x53cf04);if(!_0x5453dd)return null;const _0xf32c80='add'==_0x5453dd['type']?'insertion':'deletion',_0xab7eba=['ck-suggestion-marker','ck-suggestion-marker-'+_0xf32c80];return _0x5453dd['data']['isSuggestion']&&_0xab7eba['push']('ck-suggestion-marker-'+_0xf32c80+'-new'),this['activeChange']==_0x5453dd&&_0xab7eba['push']('ck-suggestion-marker--active'),{'classes':_0xab7eba,'attributes':{'data-change-id':_0x53cf04}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x6096d=>{_0x6096d['on']('element:pre',(_0x47eae3,_0x200bf8,_0x169cff)=>{const _0xe7509a=_0x200bf8['viewItem']['getChild'](0x0);if(!_0xe7509a||!_0xe7509a['is']('element','code'))return;if(!_0x169cff['consumable']['consume'](_0xe7509a,{'attributes':['vid_start','vid_end']}))return;const _0x51eafa=_0x200bf8['modelRange']['start']['nodeAfter'];_0x169cff['writer']['setAttribute']('vid_start',_0xe7509a['getAttribute']('vid_start'),_0x51eafa),_0x169cff['writer']['setAttribute']('vid_end',_0xe7509a['getAttribute']('vid_end'),_0x51eafa);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x4b908d=>{_0x4b908d['on']('element',(_0x32e20f,_0x59d1a6,_0x225486)=>{if(!_0x225486['consumable']['consume'](_0x59d1a6['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x59d1a6['modelRange']['isCollapsed'])return;const _0x976cfd=_0x59d1a6['modelRange']['start']['nodeAfter'];_0x976cfd['hasAttribute']('vid_start')||_0x976cfd['hasAttribute']('vid')||(_0x225486['writer']['setAttribute']('vid_start',_0x59d1a6['viewItem']['getAttribute']('vid_start'),_0x976cfd),_0x225486['writer']['setAttribute']('vid_end',_0x59d1a6['viewItem']['getAttribute']('vid_end'),_0x976cfd));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x48032e=>_0x48032e['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x3a03d4,[,_0x36ac66])=>{['vid_start','vid_end','vid']['includes'](_0x36ac66)&&(_0x3a03d4['return']=!0x0,_0x3a03d4['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x198477=>{_0x198477['on']('attribute:vid',(_0x4efbe7,_0x54195b,_0x5bb8f5)=>{if('\x20'!=_0x54195b['item']['data']||_0x54195b['item']['parent']['maxOffset']>0x1)return;if(!_0x5bb8f5['consumable']['consume'](_0x54195b['item'],_0x4efbe7['name']))return;const _0x1405e0=_0x5bb8f5['writer'],_0x4f3edb=_0x5bb8f5['mapper']['toViewRange'](_0x54195b['range']);_0x1405e0['wrap'](_0x4f3edb,_0x1405e0['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x25ab4a){const _0x2a4a7d=_0x25ab4a['plugins']['get']('RevisionViewer');return(_0x85a679,_0x3ce8c8,_0x1089f9)=>{const _0x374804=_0x3ce8c8['markerName']['split'](':')[0x1],_0x209f83=_0x2a4a7d['_getChangeFromId'](_0x374804);if(!_0x209f83)return null;const _0x405593='add'==_0x209f83['type']?'split':'merge';if(!_0x1089f9['consumable']['test'](_0x3ce8c8['markerRange'],_0x85a679['name']))return;const _0x3ebc1e=_0x3ce8c8['markerRange']['getWalker'](),_0xcde775=_0x3ce8c8['markerRange']['start'],_0x733461=_0x25ab4a['model']['schema'];let _0x176c5c=null,_0x466e2f=null,_0x37248e=!0x1,_0x2a3e40=!0x1;for(const _0x48ee13 of _0x3ebc1e){const _0x300bd9=_0x48ee13['item'];_0x37248e=_0x37248e||_0x733461['isContent'](_0x300bd9);const _0x2276de=_0x1089f9['mapper']['toViewElement'](_0x300bd9);if(_0x2276de&&_0x2276de['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x48ee13['type']&&(_0x733461['isBlock'](_0x300bd9)&&!_0x733461['isLimit'](_0x300bd9)&&(_0x300bd9['nextSibling']||_0xcde775['isAtEnd']?_0x176c5c&&_0x176c5c['parent']==_0x300bd9||(_0x176c5c=_0x300bd9,_0x377d68(_0x48ee13['previousPosition']),_0x2a3e40=!0x0):_0x466e2f=_0x466e2f||_0x48ee13['previousPosition']));}function _0x377d68(_0x18d06d){const _0x309ff5=_0x1089f9['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x405593}),_0x148fb4=_0x1089f9['mapper']['toViewPosition'](_0x18d06d);_0x209f83['data']['isSuggestion']&&_0x1089f9['writer']['addClass']('ck-suggestion-marker-'+_0x405593+'-new',_0x309ff5),_0x2a4a7d['activeChange']==_0x209f83&&_0x1089f9['writer']['addClass']('ck-suggestion-marker--active',_0x309ff5),_0x1089f9['writer']['insert'](_0x148fb4,_0x309ff5),_0x1089f9['mapper']['bindElementToMarker'](_0x309ff5,_0x3ce8c8['markerName']);}_0x37248e||_0x2a3e40||!_0x466e2f||_0x377d68(_0x466e2f);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x252a95,_0x3b613b,_0x475052)=>{const _0x2b1a27=_0x475052['mapper']['markerNameToElements'](_0x3b613b['markerName']);if(_0x2b1a27){for(const _0x1bc902 of _0x2b1a27)(_0x1bc902['hasClass']('ck-suggestion-marker-split')||_0x1bc902['hasClass']('ck-suggestion-marker-merge'))&&(_0x475052['mapper']['unbindElementFromMarkerName'](_0x1bc902,_0x3b613b['markerName']),_0x475052['writer']['remove'](_0x1bc902));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x5bff58,_0x3be3e6,_0x376b45)=>{const _0x29331e=_0x3be3e6['markerName']['split'](':')[0x1],_0x5616ac=this['_getChangeFromId'](_0x29331e);if(!_0x5616ac)return null;const _0x436e6c='add'==_0x5616ac['type']?'split':'merge';if(_0x376b45['consumable']['test'](_0x3be3e6['markerRange'],_0x5bff58['name']))for(const _0x2b14a1 of _0x3be3e6['markerRange']['getItems']()){if(!_0x2b14a1['is']('element','softBreak'))continue;const _0xd974be=_0x376b45['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x436e6c}),_0x28d50f=_0x376b45['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x2b14a1));_0x5616ac['data']['isSuggestion']&&_0x376b45['writer']['addClass']('ck-suggestion-marker-'+_0x436e6c+'-new',_0xd974be),this['activeChange']==_0x5616ac&&_0x376b45['writer']['addClass']('ck-suggestion-marker--active',_0xd974be),_0x376b45['writer']['insert'](_0x28d50f,_0xd974be),_0x376b45['mapper']['bindElementToMarker'](_0xd974be,_0x3be3e6['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x10769e=>{for(const _0x13d08a of this['editor']['model']['document']['getRootNames']()){const _0x3d518a=this['editor']['model']['document']['getRoot'](_0x13d08a),_0x3485dd=this['editor']['editing']['view']['document']['getRoot'](_0x13d08a);if(_0x3485dd){const _0x3d357f=_0x3d518a['getAttribute']('revisionHistoryAttachChange');if(_0x10769e['removeAttribute']('data-change-id',_0x3485dd),_0x10769e['removeClass']('ck-revision-history-root-add',_0x3485dd),_0x10769e['removeClass']('ck-revision-history-root-remove',_0x3485dd),_0x10769e['removeClass']('ck-revision-history-root--active',_0x3485dd),_0x3d357f){const _0x1c5bed=this['_getChangeFromId'](_0x3d357f);if(!_0x1c5bed)return null;_0x10769e['setAttribute']('data-change-id',_0x3d357f,_0x3485dd),_0x10769e['addClass']('ck-revision-history-root-'+_0x1c5bed['type'],_0x3485dd),this['activeChange']==_0x1c5bed&&_0x10769e['addClass']('ck-revision-history-root--active',_0x3485dd);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x49862c=>'revision-comment:'+_0x49862c,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x2be183=>'revision-suggestion:'+_0x2be183,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x112c8e=>({'name':'suggestion:'+_0x112c8e,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x4e976f=>{const _0x145999=_0x4e976f['markerName']['split'](':')[0x1];return'insertion'!=_0x145999&&'deletion'!=_0x145999?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x145999]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x2d4f8e,_0x504f96,_0x165f01)=>{const _0x34d82a=_0x165f01['mapper']['markerNameToElements'](_0x504f96['markerName']);if(_0x34d82a){for(const _0x25ca2e of _0x34d82a)_0x25ca2e['is']('uiElement')&&(_0x165f01['mapper']['unbindElementFromMarkerName'](_0x25ca2e,_0x504f96['markerName']),_0x165f01['writer']['remove'](_0x25ca2e));}},{'priority':'high'});}['_getChangeFromId'](_0x5ebd08){return this['_changeIdToChange']['get'](_0x5ebd08);}['_getViewForChange'](_0x3f5e81){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x3f5e81),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x196b08,_0x128e2e,_0x185b2e,_0x16a388)=>{_0x16a388&&this['_balloon']['remove'](_0x16a388),_0x185b2e&&(this['_balloon']['add']({'view':_0x185b2e,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x5c35dc=this['editor']['editing'],_0x3cc951=this['_getChangeFromId'](_0x185b2e['changeId']);let _0x2bc8c6;if(_0x3cc951['data']['isOnRoot']){const _0x2a90d1=_0x5c35dc['view']['getDomRoot'](_0x3cc951['rootName']);_0x2bc8c6=Array['from'](_0x2a90d1['getClientRects']());}else{const _0x5e6069=this['editor']['model']['markers']['get']('revision:'+_0x185b2e['changeId']);_0x2bc8c6=Array['from'](_0x5c35dc['mapper']['markerNameToElements'](_0x5e6069['name']))['map'](_0x535d91=>_0x5c35dc['view']['domConverter']['mapViewToDom'](_0x535d91))['map'](_0x4be924=>Array['from'](_0x4be924['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x2bc8c6[0x0];return _0x2bc8c6['find'](_0xebb776=>_0xebb776['top']-0x3<=this['_activeViewTarget']['y']&&_0xebb776['bottom']+0x3>=this['_activeViewTarget']['y']&&_0xebb776['left']-0x3<=this['_activeViewTarget']['x']&&_0xebb776['right']+0x3>=this['_activeViewTarget']['x'])||_0x2bc8c6[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x424827,_0x37a3cf,_0x7d695e,_0x122a9a)=>{this['activeView']=_0x7d695e?this['_getViewForChange'](_0x7d695e):null,this['editor']['model']['change'](()=>{const _0x5d7b4d=this['editor']['editing'];_0x122a9a&&(_0x122a9a['data']['isOnRoot']?_0x5d7b4d['view']['change'](_0x125b15=>{_0x125b15['removeClass']('ck-revision-history-root--active',_0x5d7b4d['view']['document']['getRoot'](_0x122a9a['rootName']));}):_0x5d7b4d['reconvertMarker']('revision:'+_0x122a9a['id'])),_0x7d695e&&(_0x7d695e['data']['isOnRoot']?_0x5d7b4d['view']['change'](_0x35ae34=>{_0x35ae34['addClass']('ck-revision-history-root--active',_0x5d7b4d['view']['document']['getRoot'](_0x7d695e['rootName']));}):_0x5d7b4d['reconvertMarker']('revision:'+_0x7d695e['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x4651b0,_0x124571)=>{if(this['activeChange'])return;const _0x3e6cbd=this['_findChangeIdFromDomTarget'](_0x124571['target']),_0x1f8c1e=this['_changeIdToChange']['get'](_0x3e6cbd);_0x1f8c1e?(this['_activeViewTarget']={'x':_0x124571['domEvent']['x'],'y':_0x124571['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x1f8c1e)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x484dd0,_0x16856c)=>{const _0x4bb729=this['_findChangeIdFromDomTarget'](_0x16856c['target']),_0x2b0044=this['_changeIdToChange']['get'](_0x4bb729);_0x2b0044?(this['_activeViewTarget']={'x':_0x16856c['domEvent']['x'],'y':_0x16856c['domEvent']['y']},_0x2b0044===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x2b0044):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x3c6d64){do{const _0x3f8853=_0x3c6d64['getAttribute']('data-change-id');if(_0x3f8853)return _0x3f8853;_0x3c6d64=_0x3c6d64['parent'];}while(_0x3c6d64);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x5b731f=>{for(const _0xf92232 of this['editor']['model']['markers'])_0x5b731f['removeMarker'](_0xf92232);});}}function Z(_0x342fcd,_0x6bc946){return(_0x3caf33,_0x299004,_0x81fcce)=>{if(!_0x81fcce['consumable']['test'](_0x299004['markerRange'],_0x3caf33['name']))return;const _0x41e52e=_0x299004['markerRange']['getWalker'](),_0x3396e1=_0x299004['markerRange']['start'],_0x208e62=_0x342fcd['model']['schema'];let _0x463014=null,_0x150ab6=null,_0x16d58c=!0x1,_0x40000f=!0x1;for(const _0x5e8451 of _0x41e52e){const _0x140300=_0x5e8451['item'];_0x16d58c=_0x16d58c||_0x208e62['isContent'](_0x140300);const _0x4456ac=_0x81fcce['mapper']['toViewElement'](_0x140300);if(_0x4456ac&&_0x4456ac['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5e8451['type']&&(_0x208e62['isBlock'](_0x140300)&&!_0x208e62['isLimit'](_0x140300)&&(_0x140300['nextSibling']||_0x3396e1['isAtEnd']?_0x463014&&_0x463014['parent']==_0x140300||(_0x463014=_0x140300,_0x13236b(_0x5e8451['previousPosition']),_0x40000f=!0x0):_0x150ab6=_0x150ab6||_0x5e8451['previousPosition']));}function _0x13236b(_0x14bfae){const _0x44680d=_0x81fcce['mapper']['toViewPosition'](_0x14bfae),_0x48db45=_0x81fcce['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x6bc946});_0x81fcce['writer']['insert'](_0x44680d,_0x48db45),_0x81fcce['mapper']['bindElementToMarker'](_0x48db45,_0x299004['markerName']);}_0x16d58c||_0x40000f||!_0x150ab6||_0x13236b(_0x150ab6);};}class _t extends _0x1104bf{constructor(_0x16df02){super(_0x16df02);const _0x618a77=_0x16df02['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x618a77,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x618a77,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x245bb9=this['editor'],_0x15f1c3=_0x245bb9['plugins']['get'](d),_0x312d4c=_0x15f1c3['isReady']?_0x15f1c3['diff']['newRevisionId']:null;_0x245bb9['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x312d4c);}['refresh'](){const {isReady:_0x178cd7,isEnabled:_0xfb0c56,repository:_0x3fe88c,diff:_0x338472}=this['editor']['plugins']['get'](d),_0x20d7d9=_0x338472&&_0x3fe88c['getLaterVisibleRevision'](_0x338472['newRevisionId']);this['isEnabled']=_0x178cd7&&_0xfb0c56&&Boolean(_0x20d7d9);}}class yt extends _0x1104bf{['_step'];constructor(_0x409e82,{direction:_0x3ee14e}){super(_0x409e82);const _0x25ed4d=_0x409e82['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x3ee14e?0x1:-0x1,this['listenTo'](_0x25ed4d,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x25ed4d,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x25ed4d,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x29bf66=this['editor'],_0xe43344=_0x29bf66['plugins']['get'](d),{isNavigationMode:_0x32bd5c,currentChangeNumber:_0xf28c4}=_0xe43344;let _0x36cf13;if(_0xe43344['activeChange']=_0x32bd5c?_0xe43344['diff']['changes']['get'](_0xf28c4+this['_step']):_0xe43344['diff']['changes']['first'],_0xe43344['activeChange']['data']['isOnRoot'])_0x36cf13=_0x29bf66['editing']['view']['getDomRoot'](_0xe43344['activeChange']['rootName']);else{const _0x29af9d=_0x29bf66['model']['markers']['get']('revision:'+_0xe43344['activeChange']['id']);_0x36cf13=_0xffab5d(_0x29bf66['editing'],_0x29af9d);}_0x30b8fc({'target':_0x36cf13,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x2d9891,currentChangeNumber:_0x182fc5,numberOfChanges:_0x8b7e3,isReady:_0x188ded,isEnabled:_0x18de4e}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x18de4e&&_0x188ded&&_0x8b7e3)&&(!_0x2d9891||(0x1===this['_step']?_0x182fc5<_0x8b7e3-0x1:_0x182fc5>0x0));}}class bi extends _0x472d28{constructor(_0x13aff2){super(_0x13aff2);const _0x178841=this['bindTemplate'],_0x3ba011=new _0x41e0b7(_0x13aff2),_0x294877=new _0x41e0b7(_0x13aff2);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',(_0x2a05f8,_0x468e8c)=>_0x2a05f8&&_0x468e8c>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0xf171a3,_0x36fb48,_0x1a58b0,_0xfb9b27)=>{if(!_0xf171a3)return m(_0x13aff2,'Loading...');if(!_0x1a58b0)return m(_0x13aff2,'No\x20changes');const _0x544de6=m(_0x13aff2,'NUMBER_OF_CHANGES',_0x1a58b0);return _0xfb9b27?m(_0x13aff2,'X_OF_Y_CHANGES',[_0x36fb48+0x1,_0x1a58b0]):_0x544de6;}),_0x3ba011['set']({'label':m(_0x13aff2,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x2014.494a.75.75\x200\x200\x200\x201.197-.899l-.067-.089-6.992-8a.75.75\x200\x200\x200-1.05-.078l-.079.078-7.008\x208a.75.75\x200\x200\x200\x201.049\x201.066l.08-.078\x206.442-7.354\x206.428\x207.354z\x22/></svg>\x0a'}),_0x294877['set']({'label':m(_0x13aff2,'Show\x20next\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x205.506a.75.75\x200\x200\x201\x201.197.899l-.067.089-6.992\x208a.75.75\x200\x200\x201-1.05.078l-.079-.078-7.008-8a.75.75\x200\x200\x201\x201.049-1.066l.08.078\x206.442\x207.354\x206.428-7.354z\x22/></svg>\x0a'}),_0x3ba011['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x294877['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x3ba011['on']('execute',()=>this['fire']('execute','backward')),_0x294877['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',_0x178841['if']('_isStatusLabelVisible','ck-hidden',_0x2f42b9=>!_0x2f42b9)]},'children':[{'text':_0x178841['to']('isNavigationMode',_0x46680a=>_0x46680a?m(_0x13aff2,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x13aff2,'Total')+':\x20')}]},{'text':_0x178841['to']('_statusText')}]},new _0x4ec210(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x3ba011,_0x294877]}]});}}const ie='ck-editor__editable__loading-overlay';class te extends _0x3f9988{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0xe64b5d=this['editor']['editing']['view'];_0xe64b5d['change'](_0x1ff4ef=>{for(const _0x1706ad of _0xe64b5d['document']['roots'])_0x1ff4ef['addClass'](ie,_0x1706ad);});}['hide'](){const _0xc3d36d=this['editor']['editing']['view'];_0xc3d36d['change'](_0x548fe4=>{for(const _0x3c2a08 of _0xc3d36d['document']['roots'])_0x548fe4['removeClass'](ie,_0x3c2a08);});}}class g extends _0x3f9988{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,te];}['init'](){const _0x263493=this['editor'],_0x5e1d54=_0x263493['plugins']['get'](d),_0x1a21c9=_0x263493['plugins']['get'](te);_0x263493['ui']['componentFactory']['add']('exitToEditing',_0x3f4f36=>{const _0x1a1acd=new _0x41e0b7(_0x3f4f36);return _0x1a1acd['set']({'label':m(_0x3f4f36,'Back\x20to\x20editing'),'icon':_0x24ec60['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x1a1acd,'execute',()=>{_0x263493['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x1a1acd;}),_0x263493['ui']['componentFactory']['add']('restoreRevision',_0x21bb1f=>{const _0x40c5b5=new _0x41e0b7(_0x21bb1f);return _0x40c5b5['set']({'label':m(_0x21bb1f,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x40c5b5['bind']('isEnabled')['to'](_0x263493['commands']['get']('restoreRevision')),this['listenTo'](_0x40c5b5,'execute',()=>_0x263493['execute']('restoreRevision')),_0x40c5b5;}),_0x263493['ui']['componentFactory']['add']('changesNavigation',_0xb0bc5c=>{const _0x3707c1=new bi(_0xb0bc5c),_0x5730d9=_0x263493['commands']['get']('showPreviousChange'),_0x49683d=_0x263493['commands']['get']('showNextChange');return _0x3707c1['bind']('isBackwardNavigationEnabled')['to'](_0x5730d9,'isEnabled'),_0x3707c1['bind']('isForwardNavigationEnabled')['to'](_0x49683d,'isEnabled'),_0x3707c1['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x5e1d54),this['listenTo'](_0x3707c1,'execute',(_0x54fed8,_0x1c6eba)=>{_0x263493['execute']('forward'===_0x1c6eba?'showNextChange':'showPreviousChange');}),_0x3707c1;}),_0x1a21c9['show'](),_0x5e1d54['on']('change:isReady',(_0x5671b7,_0xe044e4,_0x44605e)=>{_0x44605e?_0x1a21c9['hide']():_0x1a21c9['show']();});}}class pt extends nt{['_resizeObserver']=null;constructor(_0x36182e,_0x3a2bec){super(_0x36182e,_0x3a2bec);const _0x264af4=this['bindTemplate'];this['set']({'label':m(_0x36182e,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x36182e,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x264af4['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 _0x2f2e40=this['fieldView']['element'];this['_tooltipString']=_0x2f2e40['scrollWidth']>_0x2f2e40['clientWidth']&&_0x2f2e40['value']||'';}}class ti extends _0x472d28{constructor(_0x5a2b7c,_0x3c0f88,_0x35fbd7){super(_0x5a2b7c);const _0xa5e726=new _0x76fed6();_0xa5e726['set']({'content':'<svg\x20viewBox=\x220\x200\x2011\x2010\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20xmlns:xlink=\x22http://www.w3.org/1999/xlink\x22><path\x20d=\x22M5.5\x205C8.538\x205\x2011\x207.015\x2011\x209.5c0\x20.17-.011.336-.034.5H.034A3.732\x203.732\x200\x200\x201\x200\x209.5C0\x207.015\x202.462\x205\x205.5\x205zm0-5a2.5\x202.5\x200\x201\x201\x200\x205\x202.5\x202.5\x200\x200\x201\x200-5z\x22\x20/></svg>\x0a','viewBox':'0\x200\x2011\x2010'});const _0x907dca=['ck','ck-revision-history-sidebar__revision-author'];_0x35fbd7&&_0x907dca['push']('ck-revision-history-sidebar__revision-author_creator');const _0xff01cc=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x5a2b7c,_0x35fbd7?'Revision\x20creator':'Revision\x20author')},'children':[_0xa5e726,_0x3c0f88['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x907dca},'children':_0xff01cc});}}function ni(_0x47a7c2,_0x14ea05){const _0x314f9d=_0x47a7c2['bindTemplate'],_0x11a8f8=_0x47a7c2['locale'],_0x5cfde4=_0x5d3262(_0x11a8f8);_0x5cfde4['panelPosition']='sw';const _0x159119=function(_0x4b5392,_0x5033dd){const _0x596e14=function(_0x2abd1a,_0x1d77f5){const _0x69d4d0=_0x2abd1a['locale'],_0x33bf93={'Compare\x20against\x20selected':m(_0x69d4d0,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x69d4d0,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x69d4d0,'Restore\x20this\x20revision')};return _0x1d77f5['map'](_0x33b5c3=>{const _0x53eb79=_0x33bf93[_0x33b5c3['name']];return _0x53eb79&&_0x53eb79!==_0x33b5c3['name']&&(_0x33b5c3['name']=_0x53eb79),_0x33b5c3;});}(_0x4b5392,_0x5033dd),_0x137a68=new _0x3c75d5();for(const _0x236489 of _0x596e14){const _0x315f1f={'type':'button','model':new to({'label':_0x236489['name'],'class':_0x236489['class'],'withText':!0x0,'role':'menuitem','_action':_0x236489['action']})};_0x315f1f['model']['bind']('isEnabled')['to'](_0x4b5392,'isActionsDropdownOpen',_0x5eb15d=>'function'!=typeof _0x236489['isEnabled']||(!_0x5eb15d||_0x236489['isEnabled'](_0x4b5392))),_0x137a68['add'](_0x315f1f);}return _0x137a68;}(_0x47a7c2,_0x14ea05);return _0x47a7c2['bind']('isActionsDropdownOpen')['to'](_0x5cfde4,'isOpen'),_0x5cfde4['buttonView']['set']({'label':m(_0x11a8f8,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x24ec60['threeVerticalDots']}),_0x5cfde4['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x314f9d['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x314f9d['to'](_0x46fc99=>_0x46fc99['stopPropagation']())}}),_0x5cfde4['on']('execute',_0xfe180=>{_0x47a7c2['isReady']&&'function'==typeof _0xfe180['source']['_action']&&_0xfe180['source']['_action'](_0x47a7c2);}),_0x3e7f8c(_0x5cfde4,_0x159119,{'role':'menu'}),_0x5cfde4['listenTo'](_0x47a7c2,'change:isActionsDropdownOpen',(_0x2d1b07,_0x5a4838,_0x2ca900)=>{if(_0x2ca900)for(const _0x78ee06 of _0x5cfde4['listView']['items']){const _0x3cbc94=_0x78ee06['children']['first'],_0x281ecc=_0x14ea05['find'](_0x27726e=>_0x27726e['action']===_0x3cbc94['_action'])['isVisible'];_0x78ee06['isVisible']=void 0x0===_0x281ecc||_0x281ecc(_0x47a7c2);}}),_0x5cfde4;}class ai extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x582894(_0x472d28){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x2996e6,_0x15e476,_0x50c590,_0x1d025f){super(_0x2996e6);const _0x5d4982=this['bindTemplate'],_0x2b2c95=function(_0x36670c,_0x21fece){const _0x2194c8=Array['from'](_0x21fece['authors'])['filter'](_0x81b121=>_0x81b121!=_0x21fece['creator']);return _0x21fece['creator']&&_0x2194c8['unshift'](_0x21fece['creator']),_0x2194c8['map'](_0x3b95ac=>new ti(_0x36670c,_0x3b95ac,_0x3b95ac==_0x21fece['creator']));}(_0x2996e6,_0x15e476);this['id']=_0x15e476['id'],this['_revision']=_0x15e476,this['_requireRevisionName']=_0x1d025f,this['bind']('name','createdAt')['to'](_0x15e476),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x8d8884=>{return _0x3c3cd7=_0x2996e6['uiLanguage'],(_0x2d2d13=_0x8d8884)['toLocaleDateString'](_0x3c3cd7,{'month':'long','day':'numeric'})+',\x20'+_0x2d2d13['toLocaleTimeString'](_0x3c3cd7,{'hour':'numeric','minute':'numeric'});var _0x3c3cd7,_0x2d2d13;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new pt(_0x2996e6,_0x5256ca),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x21e9c7=>_0x21e9c7||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x6d8566,_0x238767)=>_0x6d8566&&_0x238767),this['revisionActionsView']=_0x50c590&&_0x50c590['length']?ni(this,_0x50c590):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x5d4982['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x5d4982['if']('isEnabled','ck-disabled',_0x141bdd=>!_0x141bdd),_0x5d4982['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x5d4982['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x5d4982['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':_0x5d4982['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':_0x2b2c95}]},this['revisionActionsView']],'on':{'click':_0x5d4982['to'](_0x4a9056=>{_0x4a9056['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x2d76bf=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x2d76bf,'change',()=>{this['_requireRevisionName']&&!_0x2d76bf['value']||this['fire']('setName',{'id':this['id'],'name':_0x2d76bf['value']}),_0x2d76bf['value']||(_0x2d76bf['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function di(_0xc3fde5,_0x570155){const _0x163ef2=_0x568d85['fromJSDate'](_0xc3fde5)['setLocale'](_0x570155),_0x3a9158=_0x568d85['local'](),_0x2216bc=_0x3a9158['minus']({'days':0x1})['startOf']('day');let _0xa2e089,_0x5d63af;return _0x163ef2['hasSame'](_0x3a9158,'day')?(_0xa2e089=_0x163ef2['startOf']('day')['toJSDate'](),_0x5d63af=_0x163ef2['toRelativeCalendar']()):_0x163ef2['hasSame'](_0x2216bc,'day')?(_0xa2e089=_0x2216bc['toJSDate'](),_0x5d63af=_0x163ef2['toRelativeCalendar']()):_0x163ef2['hasSame'](_0x3a9158,'week')?(_0xa2e089=_0x163ef2['startOf']('week')['toJSDate'](),_0x5d63af=_0x163ef2['weekdayLong']||''):_0x163ef2['hasSame'](_0x3a9158,'year')?(_0xa2e089=_0x163ef2['startOf']('month')['toJSDate'](),_0x5d63af=_0x163ef2['monthLong']||''):(_0xa2e089=_0x163ef2['startOf']('year')['toJSDate'](),_0x5d63af=String(_0x163ef2['year'])),{'startDate':_0xa2e089,'localizedPeriodName':_0x5d63af};}class mi extends _0x472d28{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x2f2be9,_0x47fc5f,_0x5edcad,_0x274d1f){super(_0x2f2be9);const _0x1d496f=di(_0x47fc5f,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x47fc5f,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x5edcad,this['_requireRevisionName']=_0x274d1f,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':_0x1d496f}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x40ddc3){const _0xea169e=new ai(this['locale'],_0x40ddc3,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0xea169e);}['removeRevision'](_0x47060b){const _0x370a1f=this['revisionViews']['find'](_0x3e7598=>_0x3e7598['id']===_0x47060b['id']);this['revisionViews']['remove'](_0x370a1f);}}class rs extends _0x472d28{constructor(_0x2352da){super(_0x2352da);const _0x51a28f=new _0x76fed6();_0x51a28f['content']=_0x24ec60['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x51a28f,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x2352da,'Revision\x20history')]}]});}}class ci extends _0x472d28{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x3a82fd,_0x511a62,_0x52ae13,_0x1a0ca9){super(_0x3a82fd);const _0x474745=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x511a62,this['_revisionActions']=_0x52ae13,this['_requireRevisionName']=_0x1a0ca9,this['on']('select',(_0x3c02e7,_0x50e3f0)=>{this['fire']('revisionSelected',_0x50e3f0);}),this['on']('setName',(_0x2cac3b,_0x4bb821)=>{this['fire']('revisionSetName',_0x4bb821);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new rs(_0x3a82fd),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x474745['if']('isEnabled','ck-disabled',_0x5aa0f3=>!_0x5aa0f3)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x1a859d of this['_revisions'])this['_addRevision'](_0x1a859d);this['_revisions']['on']('add',(_0x18b1c4,_0x5beebb)=>{this['_addRevision'](_0x5beebb);}),this['_revisions']['on']('remove',(_0x1c8b41,_0x5f0d1f)=>{this['_removeRevision'](_0x5f0d1f);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0xf0d7b2=>_0xf0d7b2['revisionViews']['map'](_0x41e7ee=>_0x41e7ee))['flat']();}['selectRevision'](_0x1a980e){for(const _0x53436f of this['revisionViews'])_0x1a980e&&_0x1a980e['id']===_0x53436f['id']?_0x53436f['select']():_0x53436f['deselect']();}['highlightRevisions'](_0x111b2a){for(const _0x35532a of this['revisionViews'])_0x111b2a['some'](({id:_0x29f84d})=>_0x29f84d===_0x35532a['id'])?_0x35532a['highlight']():_0x35532a['unhighlight']();}['_addRevision'](_0x4a519b){const _0x4c24bb=di(_0x4a519b['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x277813=this['timePeriodViews']['get'](0x0);_0x277813&&_0x277813['startDate']['getTime']()===_0x4c24bb['getTime']()||(_0x277813=new mi(this['locale'],_0x4c24bb,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x277813)),_0x277813['addRevision'](_0x4a519b);}['_removeRevision'](_0x36bcf5){const _0x1d98f8=di(_0x36bcf5['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x1d98f8)['removeRevision'](_0x36bcf5);}['_getTimePeriodViewByStartDate'](_0x197ea3){return this['timePeriodViews']['find'](_0x35f0bc=>_0x35f0bc['startDate']['getTime']()===_0x197ea3['getTime']());}}class w extends _0x3f9988{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
27
27
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
|
-
|
|
29
|
-
it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x3007ba,_0x33c528){super(_0x33c528),this['sourceElement']=_0x3007ba,this['model']['document']['createRoot']();const _0x5979b1=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x5979b1);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0xe1b0c4,_0x6fac28){const _0x308326=new this(_0xe1b0c4,_0x6fac28);return await _0x308326['initPlugins'](),await _0x308326['ui']['init'](_0xe1b0c4),await _0x308326['data']['init'](_0x308326['config']['get']('initialData')||''),_0x308326['fire']('ready'),_0x308326;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class bt extends _0x2ced25{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xcb61d3){function _0xab6ec3(_0x41ae4f){return _0x41ae4f['map'](_0x51e7ac=>String['fromCharCode'](_0x51e7ac))['join']('');}super(_0xcb61d3),this['result']='end',_0xcb61d3[_0xab6ec3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xab6ec3([0x76,0x69,0x65,0x77])][_0xab6ec3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xab6ec3([0x61,0x75,0x74,0x6f]),_0xcb61d3[_0xab6ec3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0xab6ec3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xab6ec3([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0xab6ec3([0x73,0x74,0x61,0x74,0x75,0x73])]:_0xab6ec3([0x6f,0x6b])});}}class k extends _0x2ced25{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x1eb76b){if(super(_0x1eb76b),!this['editor']['config']['get']('revisionHistory'))throw new _0x104baa('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x11f871=>this['_showRevisionViewer']({..._0x11f871,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x42a3db=>this['_closeRevisionViewer'](_0x42a3db)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x476c77=>this['_restoreRevision'](_0x476c77)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x348f1c){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x348f1c;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x180c81){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x180c81);}['getRevision'](_0x21f084){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x21f084);}['getRevisions'](_0x2e1cba){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x2e1cba||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x3086be=this['editor'],_0x45de7a=_0x1a5fc2(_0x3086be,p),_0x11676c=_0x3086be['plugins']['get']('RevisionTracker'),_0xdba109=_0x3086be['plugins']['get']('Users')['users'];return _0x45de7a['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x45de7a['lazyRoots'],(_0x45de7a['plugins']['push'](bt,d,g,class extends _0x2ced25{static get['requires'](){return[d,'Users'];}['init'](){const _0x5ebd3c=this['editor']['plugins']['get']('Users');for(const _0x20f943 of _0xdba109)_0x20f943['isAnonymous']||_0x5ebd3c['getUser'](_0x20f943['id'])||_0x5ebd3c['addUser'](_0x20f943);const _0x3f3015=_0x11676c['repository']['getRevisions']();let _0x4106d2=null;const _0x34231a=this['editor']['plugins']['get']('RevisionViewer');_0x34231a['adapter']=_0x11676c['adapter'],_0x34231a['bind']('isEnabled')['to'](_0x11676c),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x3086be,'isReadOnly',_0x130324=>!_0x130324);for(const _0x473d03 of _0x3f3015){const _0x27bede=null===_0x473d03['creator'];if(_0x27bede&&_0x473d03['toVersion']===_0x473d03['fromVersion'])continue;const _0x15dccc=_0x473d03['toJSON']();_0x34231a['addRevisionData'](_0x15dccc,(_0x1bb0f9,_0x1d791a,_0x129830)=>{if(_0x27bede){if(_0x4106d2)_0x4106d2['_update'](_0x1bb0f9,_0x1d791a);else{if(!_0x1d791a){const _0x114d32=_0x129830['toJSON']();_0x114d32['id']=_0x23c2bf(),_0x11676c['saveRevision'](_0x114d32,_0x129830['toVersion'])['then'](_0x434aa7=>{_0x4106d2=_0x434aa7;});}}}else _0x473d03['_update'](_0x1bb0f9,_0x1d791a);});}}},w),_0x45de7a);}['_enhanceShowRevisionViewerCallback'](){const _0x4700fc=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x530a4f=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x1008fe=this['editor']['plugins']['get']('Autosave');await _0x1008fe['save']();}else await _0x530a4f['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x4bc8f7=this['editor']['plugins']['get']('Dialog');_0x4bc8f7['isOpen']&&_0x4bc8f7['hide']();}const _0x408309=this['_getRevisionViewerEditorConfig']();return _0x4700fc(_0x408309)['then'](_0x1e3c1f=>{return(this['_viewerEditor']=_0x1e3c1f,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x1e3c1f;})['catch'](_0x30e044=>(console['error'](_0x30e044),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x425b98=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x425b98(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x23927f=this['editor']['plugins']['get']('Annotations');_0x23927f['refreshVisibility'](),_0x23927f['refreshPositioning']();}})));}['_showRevisionViewer'](_0x31c379){const _0x3237e2=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x2abfeb=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x5c685b=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x5c685b,_0x31c379)['then'](_0x403935=>(_0x2abfeb['style']['display']='block',_0x3237e2['style']['display']='none',_0x403935));}['_closeRevisionViewer'](_0xa39579){const _0x3895d3=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x3895d3['style']['display']='',_0xa39579['destroy']();}async['_restoreRevision'](_0xd48a0e){const _0x30c69c=this['editor'],_0x1f7c8b=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x27f2f6=_0x30c69c['plugins']['get']('RevisionTracker'),_0x7a9097=_0x1f7c8b['repository']['getRevision'](_0xd48a0e);let _0xa88f63,_0x543589,_0x59bc2a;try{_0xa88f63=await _0x1f7c8b['getRevisionData'](_0x7a9097),_0x543589=await _0x1f7c8b['getRevisionRootsAttributes'](_0x7a9097);}catch(_0x4ca582){return void console['error'](_0x4ca582);}_0x30c69c['model']['change'](_0x56c027=>{for(const _0x358f57 of Array['from'](_0x30c69c['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x56c027['removeMarker'](_0x358f57);}),_0x1f7c8b['isReady']=!0x1,_0x30c69c['model']['enqueueChange'](_0x385004=>{_0x385004['setSelection'](null),_0x385004['removeSelectionAttribute'](_0x30c69c['model']['document']['selection']['getAttributeKeys']());const _0x48c377=Object['keys'](_0xa88f63);for(const _0x2f386d of _0x30c69c['model']['document']['roots'])'$graveyard'!=_0x2f386d['rootName']&&_0x2f386d['isAttached']()&&!_0x48c377['includes'](_0x2f386d['rootName'])&&_0x385004['detachRoot'](_0x2f386d);for(const _0x554f9d of _0x48c377){let _0x5d34f9=_0x30c69c['model']['document']['getRoot'](_0x554f9d);_0x5d34f9&&_0x5d34f9['isAttached']()||(_0x5d34f9=_0x385004['addRoot'](_0x554f9d));const _0x330561=_0x543589[_0x554f9d],_0x24f19b=Object['keys'](_0x330561),_0x467ff=_0xa88f63[_0x554f9d];for(const _0x23b654 of _0x5d34f9['getAttributeKeys']())_0x24f19b['includes'](_0x23b654)||_0x385004['removeAttribute'](_0x23b654,_0x5d34f9);for(const _0x211a8c of _0x24f19b)_0x385004['setAttribute'](_0x211a8c,_0x543589[_0x554f9d][_0x211a8c],_0x5d34f9);_0x385004['remove'](_0x385004['createRangeIn'](_0x5d34f9)),_0x385004['insert'](_0x30c69c['data']['parse'](_0x467ff,_0x5d34f9),_0x5d34f9,0x0);}});const _0x4acb1b=m(_0x30c69c['locale'],'Restored');if(_0x7a9097['name'])_0x59bc2a=-0x1==_0x7a9097['name']['indexOf'](_0x4acb1b)?_0x4acb1b+':\x20'+_0x7a9097['name']:_0x7a9097['name'];else _0x59bc2a=_0x4acb1b+':\x20'+(_0x7a9097['createdAt']['toLocaleDateString'](_0x30c69c['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x7a9097['createdAt']['toLocaleTimeString'](_0x30c69c['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x27f2f6['saveRevision']({'name':_0x59bc2a}),_0x1f7c8b['isReady']=!0x0,_0x30c69c['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,k as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,de as RevisionViewerLoadingOverlay,g as RevisionViewerUI,j as RevisionsRepository,w as RevisionsSidebar};
|
|
28
|
+
bt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0xb4b67c){super(_0xb4b67c),this['_revisionViewer']=_0xb4b67c['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x2647d0=this['_revisionsRepository']['_revisions'],_0x30f5c1=this['_createRevisionActions'](),_0x7bec14=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ci(this['editor']['locale'],_0x2647d0,_0x30f5c1,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',(_0x598a7c,_0x560dbb)=>{_0x560dbb['revisionViews']['on']('add',(_0x7849e3,_0x1b9829)=>{_0x1b9829['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)),_0x7bec14['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x237db2=this['_revisionsRepository']['getRevision'](0x0);if(_0x237db2){const _0x4403f9=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x237db2['id']);this['_revisionViewer']['compare'](_0x237db2,_0x4403f9);}}['_handleRevisionSelected'](_0x43e16e,_0x20a6fe){const _0xb10e16=this['_revisionsRepository']['getRevision'](_0x20a6fe['id']),_0x2ee778=this['_revisionsRepository']['getEarlierVisibleRevision'](_0xb10e16['id']);this['_revisionViewer']['compare'](_0xb10e16,_0x2ee778);}['_handleRevisionSetName'](_0x14b87f,_0x150de8){this['_revisionsRepository']['getRevision'](_0x150de8['id'])['setName'](_0x150de8['name']);}['_handleDiffChange'](_0x5a798d,_0x1439ff,_0x3ecfec){const _0x3630ed=this['_revisionsRepository']['getRevisionsInDiff'](_0x3ecfec);_0x3630ed['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x3630ed),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x3630ed[0x0]));}['_createRevisionActions'](){const _0x5ecf85=this['editor'],_0x5bc3e6=w['availableRevisionActions'],_0x39dc64=_0x5ecf85['config']['get']('revisionHistory.revisionActions')||w['defaultRevisionActions'];if(_0x39dc64['length'])return _0x39dc64['map'](_0x2d9fd7=>{const _0x5b473c='string'==typeof _0x2d9fd7?Object['assign']({},_0x5bc3e6[_0x2d9fd7]):_0x2d9fd7;return _0x5b473c['action']=_0x5b473c['action']['bind'](this,_0x5ecf85),_0x5b473c['isVisible']&&(_0x5b473c['isVisible']=_0x5b473c['isVisible']['bind'](this,_0x5ecf85)),_0x5b473c;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x4b8f3f},_0x628b42)=>{const _0x1d35b0=_0x4b8f3f['get'](d),_0x3421dc=_0x1d35b0['repository'];let _0xa315f1=_0x1d35b0['diff']['newRevisionId'],_0x530bb5=_0x628b42['id'];_0x3421dc['getIndex'](_0xa315f1)>_0x3421dc['getIndex'](_0x530bb5)&&([_0xa315f1,_0x530bb5]=[_0x530bb5,_0xa315f1]),_0x1d35b0['compare'](_0xa315f1,_0x530bb5);},'isVisible':({plugins:_0x439569},_0x879472)=>{const _0x114fe3=_0x439569['get'](d);return!(_0x114fe3['repository']['getRevisionsInDiff'](_0x114fe3['diff'])['length']>0x2)&&!_0x879472['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x4e9b3b,{id:_0x1b34cf})=>{_0x4e9b3b['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x1b34cf);},'isVisible':({plugins:_0x37d8bf},_0x4fe9e7)=>!!_0x37d8bf['get'](d)['repository']['getLaterVisibleRevision'](_0x4fe9e7['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x214520},{id:_0x200514,revisionNameView:_0x1a135e})=>{const _0x491c6a=_0x214520['get'](d),_0x29c9ec=_0x491c6a['repository']['getEarlierVisibleRevision'](_0x200514);_0x491c6a['compare'](_0x200514,_0x29c9ec),_0x1a135e['focus'](),_0x1a135e['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x868e08,_0x5649e4){super(_0x868e08),this['_view']=_0x5649e4,this['_toolbarConfig']=ot(_0x868e08['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x18e8bd){const _0x4c8a45=this['editor'],_0x134402=this['view'],_0x59bcc0=_0x4c8a45['editing']['view'],_0x1dbed4=_0x134402['editable'],_0x3fef8b=_0x59bcc0['document']['getRoot']();_0x1dbed4['name']=_0x3fef8b['rootName'],_0x134402['render']();const _0x4b19e4=_0x1dbed4['element'];this['setEditableElement'](_0x1dbed4['name'],_0x4b19e4),_0x134402['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x59bcc0['attachDomRoot'](_0x4b19e4),this['_elementReplacer']['replace'](_0x18e8bd,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x57f159=this['view'],_0x4293c8=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x4293c8['detachDomRoot'](_0x57f159['editable']['name']),_0x57f159['destroy']();}['_initToolbar'](){const _0x5f1ba3=this['view'];_0x5f1ba3['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x5f1ba3['stickyPanel']['limiterElement']=_0x5f1ba3['element'],_0x5f1ba3['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x2c8f31})=>_0x2c8f31),_0x5f1ba3['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x5f1ba3['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x117a78,_0xd61a8f,_0x2e0a1e={}){super(_0x117a78),this['stickyPanel']=new ut(_0x117a78),this['toolbar']=new lt(_0x117a78,{'shouldGroupWhenFull':_0x2e0a1e['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x117a78,_0xd61a8f);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class R extends/* #__PURE__ -- @preserve */
|
|
29
|
+
it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x2d2e26,_0x310a13){super(_0x310a13),this['sourceElement']=_0x2d2e26,this['model']['document']['createRoot']();const _0x1f1737=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x1f1737);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x367a0e,_0x2068de){const _0x28d808=new this(_0x367a0e,_0x2068de);return await _0x28d808['initPlugins'](),await _0x28d808['ui']['init'](_0x367a0e),await _0x28d808['data']['init'](_0x28d808['config']['get']('initialData')||''),_0x28d808['fire']('ready'),_0x28d808;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0x3f9988{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x516356){function _0x421f27(_0x1bb6c0){return _0x1bb6c0['map'](_0x4d591a=>String['fromCharCode'](_0x4d591a))['join']('');}super(_0x516356),this['result']='end',_0x516356[_0x421f27([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x421f27([0x76,0x69,0x65,0x77])][_0x421f27([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x421f27([0x61,0x75,0x74,0x6f]),_0x516356[_0x421f27([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x421f27([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x421f27([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x421f27([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x421f27([0x6f,0x6b])});}}class k extends _0x3f9988{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x52f79e){if(super(_0x52f79e),!this['editor']['config']['get']('revisionHistory'))throw new _0x50d770('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x53b14f=>this['_showRevisionViewer']({..._0x53b14f,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x4ac7a8=>this['_closeRevisionViewer'](_0x4ac7a8)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x3e777d=>this['_restoreRevision'](_0x3e777d)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x29092c){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x29092c;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x391bed){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x391bed);}['getRevision'](_0x6a121){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x6a121);}['getRevisions'](_0x404cdf){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x404cdf||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x4919e6=this['editor'],_0x320b39=_0x2faac4(_0x4919e6,p),_0x1f22c9=_0x4919e6['plugins']['get']('RevisionTracker'),_0x343147=_0x4919e6['plugins']['get']('Users')['users'];return _0x320b39['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x320b39['lazyRoots'],(_0x320b39['plugins']['push'](Rt,d,g,class extends _0x3f9988{static get['requires'](){return[d,'Users'];}['init'](){const _0x5e7de6=this['editor']['plugins']['get']('Users');for(const _0x46813e of _0x343147)_0x46813e['isAnonymous']||_0x5e7de6['getUser'](_0x46813e['id'])||_0x5e7de6['addUser'](_0x46813e);const _0x4fe7cd=_0x1f22c9['repository']['getRevisions']();let _0x5c63e9=null;const _0x2ecaf3=this['editor']['plugins']['get']('RevisionViewer');_0x2ecaf3['adapter']=_0x1f22c9['adapter'],_0x2ecaf3['bind']('isEnabled')['to'](_0x1f22c9),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x4919e6,'isReadOnly',_0x354f1b=>!_0x354f1b);for(const _0x2e557b of _0x4fe7cd){const _0x3999c1=null===_0x2e557b['creator'];if(_0x3999c1&&_0x2e557b['toVersion']===_0x2e557b['fromVersion'])continue;const _0x111c20=_0x2e557b['toJSON']();_0x2ecaf3['addRevisionData'](_0x111c20,(_0x1276bc,_0x3a7769,_0x431bca)=>{if(_0x3999c1){if(_0x5c63e9)_0x5c63e9['_update'](_0x1276bc,_0x3a7769);else{if(!_0x3a7769){const _0x5f1df1=_0x431bca['toJSON']();_0x5f1df1['id']=_0x14fde0(),_0x1f22c9['saveRevision'](_0x5f1df1,_0x431bca['toVersion'])['then'](_0x13ffd3=>{_0x5c63e9=_0x13ffd3;});}}}else _0x2e557b['_update'](_0x1276bc,_0x3a7769);});}}},w),_0x320b39);}['_enhanceShowRevisionViewerCallback'](){const _0x3ebfab=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x314f5e=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x3080a7=this['editor']['plugins']['get']('Autosave');await _0x3080a7['save']();}else await _0x314f5e['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x43b2aa=this['editor']['plugins']['get']('Dialog');_0x43b2aa['isOpen']&&_0x43b2aa['hide']();}const _0x1e0d14=this['_getRevisionViewerEditorConfig']();return _0x3ebfab(_0x1e0d14)['then'](_0x329524=>{return(this['_viewerEditor']=_0x329524,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x329524;})['catch'](_0x49184c=>(console['error'](_0x49184c),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x455453=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x455453(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x193fc3=this['editor']['plugins']['get']('Annotations');_0x193fc3['refreshVisibility'](),_0x193fc3['refreshPositioning']();}})));}['_showRevisionViewer'](_0x169d5b){const _0x5307a0=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x4d9b79=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x2b30bf=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x2b30bf,_0x169d5b)['then'](_0x223855=>(_0x4d9b79['style']['display']='block',_0x5307a0['style']['display']='none',_0x223855));}['_closeRevisionViewer'](_0x4dee38){const _0x1161bb=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x1161bb['style']['display']='',_0x4dee38['destroy']();}async['_restoreRevision'](_0x1cd2fb){const _0x4c6541=this['editor'],_0x554e44=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x35911b=_0x4c6541['plugins']['get']('RevisionTracker'),_0xea798c=_0x554e44['repository']['getRevision'](_0x1cd2fb);let _0x5adc2,_0xce5680,_0x4fb09d;try{_0x5adc2=await _0x554e44['getRevisionData'](_0xea798c),_0xce5680=await _0x554e44['getRevisionRootsAttributes'](_0xea798c);}catch(_0x316788){return void console['error'](_0x316788);}_0x4c6541['model']['change'](_0x54bd6b=>{for(const _0x4f416d of Array['from'](_0x4c6541['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x54bd6b['removeMarker'](_0x4f416d);}),_0x554e44['isReady']=!0x1,_0x4c6541['model']['enqueueChange'](_0x462687=>{_0x462687['setSelection'](null),_0x462687['removeSelectionAttribute'](_0x4c6541['model']['document']['selection']['getAttributeKeys']());const _0xf19f6e=Object['keys'](_0x5adc2);for(const _0x2d3ea2 of _0x4c6541['model']['document']['roots'])'$graveyard'!=_0x2d3ea2['rootName']&&_0x2d3ea2['isAttached']()&&!_0xf19f6e['includes'](_0x2d3ea2['rootName'])&&_0x462687['detachRoot'](_0x2d3ea2);for(const _0x2caf62 of _0xf19f6e){let _0x52799d=_0x4c6541['model']['document']['getRoot'](_0x2caf62);_0x52799d&&_0x52799d['isAttached']()||(_0x52799d=_0x462687['addRoot'](_0x2caf62));const _0x308c49=_0xce5680[_0x2caf62],_0x140df8=Object['keys'](_0x308c49),_0xc465f5=_0x5adc2[_0x2caf62];for(const _0x452ff9 of _0x52799d['getAttributeKeys']())_0x140df8['includes'](_0x452ff9)||_0x462687['removeAttribute'](_0x452ff9,_0x52799d);for(const _0x2853b0 of _0x140df8)_0x462687['setAttribute'](_0x2853b0,_0xce5680[_0x2caf62][_0x2853b0],_0x52799d);_0x462687['remove'](_0x462687['createRangeIn'](_0x52799d)),_0x462687['insert'](_0x4c6541['data']['parse'](_0xc465f5,_0x52799d),_0x52799d,0x0);}});const _0x280879=m(_0x4c6541['locale'],'Restored');if(_0xea798c['name'])_0x4fb09d=-0x1==_0xea798c['name']['indexOf'](_0x280879)?_0x280879+':\x20'+_0xea798c['name']:_0xea798c['name'];else _0x4fb09d=_0x280879+':\x20'+(_0xea798c['createdAt']['toLocaleDateString'](_0x4c6541['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0xea798c['createdAt']['toLocaleTimeString'](_0x4c6541['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x35911b['saveRevision']({'name':_0x4fb09d}),_0x554e44['isReady']=!0x0,_0x4c6541['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,k as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,te as RevisionViewerLoadingOverlay,g as RevisionViewerUI,j as RevisionsRepository,w as RevisionsSidebar};
|