@ckeditor/ckeditor5-revision-history 46.0.0-alpha.8 → 46.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/dist/index.js +7 -7
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +11 -11
- package/src/changeitem.js +2 -2
- package/src/editor/revisionviewereditor.js +2 -2
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/index.js +1 -1
- package/src/revision.js +2 -2
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionhistoryutils.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +2 -2
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +2 -2
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ObservableMixin as
|
|
24
|
-
_0x31f508(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x489507){super(),this['id']=_0x489507['id']||_0x33e273(),this['creator']=_0x489507['creator']||null,this['authors']=_0x489507['authors']||[],this['diffData']=_0x489507['diffData']||null,this['toVersion']=_0x489507['toVersion']||0x0,this['fromVersion']=_0x489507['fromVersion']||0x0,this['set']('name',_0x489507['name']||''),this['set']('createdAt',_0x489507['createdAt']||new Date()),this['set']('attributes',_0x489507['attributes']||{});}['setName'](_0x26b3c7){this['_update']({'name':_0x26b3c7});}['setAttribute'](_0xb694b,_0x3dceb0){const _0x4d4e68=_0x35c6b3(this['attributes']);_0x194d16(_0x4d4e68,_0xb694b,_0x3dceb0),this['_update']({'attributes':_0x4d4e68});}['removeAttribute'](_0xa9717c){const _0x342233=_0x35c6b3(this['attributes']);_0x32a3d2(_0x342233,_0xa9717c),this['_update']({'attributes':_0x342233});}['_update'](_0x39791e,_0x54ca3b=!0x1){let _0x1988a0=!0x1;const _0x5ae693={'id':this['id']},_0x4f1e98=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x1bf32a of _0x4f1e98){const _0x21be22=_0x39791e[_0x1bf32a];void 0x0!==_0x21be22&&_0x21be22!==this[_0x1bf32a]&&(this[_0x1bf32a]=_0x21be22,_0x5ae693[_0x1bf32a]=_0x21be22,_0x1988a0=!0x0);}_0x1988a0&&(_0x5ae693['authors']&&(_0x5ae693['authorsIds']=_0x5ae693['authors']['map'](_0x5aeee8=>_0x5aeee8['id']),delete _0x5ae693['authors']),this['fire']('_update',_0x5ae693,_0x54ca3b));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0xafc3ce=>_0xafc3ce['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x7a0156{['_revisions'];static get['requires'](){return[_0x12ddb9];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x1e0a91){super(_0x1e0a91),this['_revisions']=new _0x21221c();}['afterInit'](){!async function(_0xfeee71){const _0x371491=_0x2f2375([0x71,0x75,0x4e,0x4a,0x74,0x42,0x47,0x46,0x52,0x6c,0x54,0x44,0x45,0x50,0x4d,0x31,0x49,0x68,0x63,0x48,0x61,0x76,0x33,0x73,0x72,0x51,0x58,0x77,0x6e,0x35,0x36,0x56,0x39,0x41,0x6b,0x65,0x79,0x4f,0x34,0x4b,0x4c,0x53,0x38,0x64,0x30,0x7a,0x69,0x5a,0x55,0x78,0x32,0x59,0x70,0x6d,0x6f,0x43,0x62,0x57,0x37,0x67,0x66,0x6a]),_0x12e766=0xeb829,_0x433c78=0x24caee4e,_0x5e4d85=0x24cd835e^_0x433c78,_0x3f6f3=window[_0x2f2375([0x44,0x61,0x74,0x65])][_0x2f2375([0x6e,0x6f,0x77])](),_0x58abd0=_0xfeee71[_0x2f2375([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x19f325=new window[(_0x2f2375([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x35fac1=>{_0x58abd0[_0x2f2375([0x6f,0x6e,0x63,0x65])](_0x2f2375([0x72,0x65,0x61,0x64,0x79]),_0x35fac1);}),_0x23de10={[_0x2f2375([0x6b,0x74,0x79])]:_0x2f2375([0x45,0x43]),[_0x2f2375([0x75,0x73,0x65])]:_0x2f2375([0x73,0x69,0x67]),[_0x2f2375([0x63,0x72,0x76])]:_0x2f2375([0x50,0x2d,0x32,0x35,0x36]),[_0x2f2375([0x78])]:_0x2f2375([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]),[_0x2f2375([0x79])]:_0x2f2375([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]),[_0x2f2375([0x61,0x6c,0x67])]:_0x2f2375([0x45,0x53,0x32,0x35,0x36])},_0x40602b=_0x58abd0[_0x2f2375([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2f2375([0x67,0x65,0x74])](_0x2f2375([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x121d3d(){let _0x2d0d1f,_0xf381d2=null,_0x42414d=null;try{if(_0x40602b==_0x2f2375([0x47,0x50,0x4c]))return _0x2f2375([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2d0d1f=_0x30bba5(),!_0x2d0d1f)return _0x2f2375([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2d0d1f[_0x2f2375([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x42414d=_0x49f2ca(_0x2d0d1f[_0x2f2375([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2d0d1f[_0x2f2375([0x6a,0x74,0x69])])),await _0x2bb627()?_0x2e3bd4()?_0x35cd66()?_0x2f2375([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x53e6dd()?(_0x2d0d1f[_0x2f2375([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2f2375([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xf381d2=_0xbd4a50(_0x2f2375([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2d0d1f[_0x2f2375([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2f2375([0x74,0x72,0x69,0x61,0x6c])&&(_0xf381d2=_0xbd4a50(_0x2f2375([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1ec77e()):_0x2f2375([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2f2375([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2f2375([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2f2375([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x35cd66(){const _0x4be2f4=[_0x2f2375([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2f2375([0x74,0x72,0x69,0x61,0x6c])][_0x2f2375([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d0d1f[_0x2f2375([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3f6f3/0x3e8:0xe10*_0x5e4d85;return _0x2d0d1f[_0x2f2375([0x65,0x78,0x70])]<_0x4be2f4;}function _0x2e3bd4(){const _0x170560=_0x2d0d1f[_0x2f2375([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x170560)return!0x1;if(_0x170560[_0x2f2375([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f2375([0x2a])))return!0x0;if(_0x170560[_0x2f2375([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f2375([0x52,0x48])))return!0x0;if(_0x170560[_0x2f2375([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f2375([0x52,0x52,0x48]))){if(_0x5b82ff())return!0x0;if(_0x2464b0()||_0x4f3fd6())return!0x0;}return!0x1;}function _0x53e6dd(){const _0x408d72=_0x2d0d1f[_0x2f2375([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x408d72||0x0==_0x408d72[_0x2f2375([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x30bbac}=new URL(window[_0x2f2375([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x408d72[_0x2f2375([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30bbac))return!0x0;const _0x1056c9=_0x30bbac[_0x2f2375([0x73,0x70,0x6c,0x69,0x74])](_0x2f2375([0x2e]));return _0x408d72[_0x2f2375([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x487670=>_0x487670[_0x2f2375([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f2375([0x2a])))[_0x2f2375([0x6d,0x61,0x70])](_0x1173e6=>_0x1173e6[_0x2f2375([0x73,0x70,0x6c,0x69,0x74])](_0x2f2375([0x2e])))[_0x2f2375([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1094ad=>_0x1094ad[_0x2f2375([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1056c9[_0x2f2375([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2f2375([0x6d,0x61,0x70])](_0x6ec0e=>Array(_0x1056c9[_0x2f2375([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x6ec0e[_0x2f2375([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2f2375([0x66,0x69,0x6c,0x6c])](_0x6ec0e[0x0]===_0x2f2375([0x2a])?_0x2f2375([0x2a]):'')[_0x2f2375([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x6ec0e))[_0x2f2375([0x73,0x6f,0x6d,0x65])](_0x44cb7f=>_0x1056c9[_0x2f2375([0x65,0x76,0x65,0x72,0x79])]((_0x44bf06,_0x34ca6f)=>_0x44cb7f[_0x34ca6f]===_0x44bf06||_0x44cb7f[_0x34ca6f]===_0x2f2375([0x2a])));}function _0x1ec77e(){return _0xf381d2&&_0x42414d?new window[(_0x2f2375([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x50110f,_0x5b88d6)=>{_0xf381d2[_0x2f2375([0x74,0x68,0x65,0x6e])](_0x50110f,_0x5b88d6),_0x42414d[_0x2f2375([0x74,0x68,0x65,0x6e])](_0x3ab339=>{_0x3ab339!=_0x2f2375([0x56,0x61,0x6c,0x69,0x64])&&_0x50110f(_0x3ab339);},_0x5b88d6);}):_0xf381d2||_0x42414d||_0x2f2375([0x56,0x61,0x6c,0x69,0x64]);}}function _0x49f2ca(_0x532693,_0x23d8f2){return new window[(_0x2f2375([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x66e5ba=>{if(_0x51a51f())return _0x66e5ba(_0x2f2375([0x56,0x61,0x6c,0x69,0x64]));_0x35a005(),_0x58abd0[_0x2f2375([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2f2375([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1c42d8=!0x1;const _0x32404a=_0x33e273();function _0x4733f9(_0x71fbe4){return!!_0x71fbe4&&(typeof _0x71fbe4===_0x2f2375([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x71fbe4===_0x2f2375([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x71fbe4[_0x2f2375([0x74,0x68,0x65,0x6e])]===_0x2f2375([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x71fbe4[_0x2f2375([0x63,0x61,0x74,0x63,0x68])]===_0x2f2375([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1d6051(_0x23d393){_0x6e5833(_0x23d393)[_0x2f2375([0x74,0x68,0x65,0x6e])](_0x5d9dce=>{if(!_0x5d9dce||_0x5d9dce[_0x2f2375([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2f2375([0x6f,0x6b]))return _0x2f2375([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x34c289(_0x4f5217(_0x32404a+_0x23d8f2))!=_0x5d9dce[_0x2f2375([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2f2375([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2f2375([0x56,0x61,0x6c,0x69,0x64]);})[_0x2f2375([0x74,0x68,0x65,0x6e])](_0x28fb7f=>(_0x19f3a3(),_0x28fb7f),()=>{const _0x4c3c11=_0x5f1658();return null==_0x4c3c11?(_0x19f3a3(),_0x2f2375([0x56,0x61,0x6c,0x69,0x64])):_0x2f2375(_0x3f6f3-_0x4c3c11>(0xc66a4e^_0x433c78)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2f2375([0x74,0x68,0x65,0x6e])](_0x66e5ba)[_0x2f2375([0x63,0x61,0x74,0x63,0x68])](()=>{_0x66e5ba(_0x2f2375([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x23f28d=0x24fc00ce^_0x433c78;function _0x19f3a3(){const _0x2325d6=_0x2f2375([0x6c,0x6c,0x63,0x74,0x2d])+_0x34c289(_0x4f5217(_0x532693)),_0x1d9443=_0x3e1052(_0x34c289(window[_0x2f2375([0x4d,0x61,0x74,0x68])][_0x2f2375([0x63,0x65,0x69,0x6c])](_0x3f6f3/_0x23f28d)));window[_0x2f2375([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2f2375([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2325d6,_0x1d9443);}function _0x5f1658(){const _0x43be3b=_0x2f2375([0x6c,0x6c,0x63,0x74,0x2d])+_0x34c289(_0x4f5217(_0x532693)),_0x3e723d=window[_0x2f2375([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2f2375([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x43be3b);return _0x3e723d?window[_0x2f2375([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3e1052(_0x3e723d),0x10)*_0x23f28d:null;}function _0x6e5833(_0x3df463){return new window[(_0x2f2375([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4241e7,_0x33aa98)=>{_0x3df463[_0x2f2375([0x74,0x68,0x65,0x6e])](_0x4241e7,_0x33aa98),window[_0x2f2375([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x33aa98,0x24cb3a8e^_0x433c78);});}}_0x58abd0[_0x2f2375([0x6f,0x6e])](_0x2f2375([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x67dcd,_0x482ef8)=>{if(_0x482ef8[0x0]!=_0x532693)return _0x66e5ba(_0x2f2375([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x482ef8[0x1]={..._0x482ef8[0x1],[_0x2f2375([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x32404a};},{[_0x2f2375([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2f2375([0x68,0x69,0x67,0x68])}),_0x58abd0[_0x2f2375([0x6f,0x6e])](_0x2f2375([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5d01aa=>{_0x4733f9(_0x5d01aa[_0x2f2375([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1c42d8=!0x0,_0x1d6051(_0x5d01aa[_0x2f2375([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2f2375([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2f2375([0x6c,0x6f,0x77])}),_0x19f325[_0x2f2375([0x74,0x68,0x65,0x6e])](()=>{_0x1c42d8||_0x66e5ba(_0x2f2375([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x51a51f(){return _0x58abd0[_0x2f2375([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2f2375([0x76,0x69,0x65,0x77])][_0x2f2375([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2f2375([0x61,0x75,0x74,0x6f]);}function _0x35a005(){_0x58abd0[_0x2f2375([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2f2375([0x76,0x69,0x65,0x77])][_0x2f2375([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2f2375([0x61,0x75,0x74,0x6f]);}}function _0xbd4a50(_0x3414fc){const _0x378bba=[new window[(_0x2f2375([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x471cac=>setTimeout(_0x471cac,0x24c3d082^_0x433c78)),_0x19f325[_0x2f2375([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2f2375([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1a820e=>{const _0x302ff7=0x24caee49^_0x433c78,_0x3e4373=_0xfeee71[_0x2f2375([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x3a79fd(){_0x3e4373[_0x2f2375([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x302ff7&&_0x1a820e();}_0x3a79fd(),_0x3e4373[_0x2f2375([0x6f,0x6e])](_0x2f2375([0x61,0x64,0x64]),_0x3a79fd);})),new window[(_0x2f2375([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x45fe61=>{function _0x22b44c(){for(const _0x2a39ab in window)if(window[_0x2f2375([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x2f2375([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x2a39ab))&&window[_0x2a39ab]==_0x12e766)return _0x45fe61();_0x58abd0[_0x2f2375([0x73,0x74,0x61,0x74,0x65])]!=_0x2f2375([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x2f2375([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x22b44c,0x24cafdc6^_0x433c78);}_0x592ef3(_0x2f2375([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x22b44c();})];return window[_0x2f2375([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2f2375([0x72,0x61,0x63,0x65])](_0x378bba)[_0x2f2375([0x74,0x68,0x65,0x6e])](()=>_0x3414fc);}async function _0x364959(){if(await _0x19f325,_0x592ef3(_0x2f2375([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x5b000d=_0xfeee71[_0x2f2375([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x1f274c=_0xfeee71[_0x2f2375([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])](_0x5b000d[_0x2f2375([0x69,0x64])]),_0x1be139=_0x3e8be9(_0x2f2375([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x1be139[_0x2f2375([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x5b000d['id'],_0x1f274c?_0x1f274c['id']:null,!0x0),_0x1be139[_0x2f2375([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x2f2375([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x1be139[_0x2f2375([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x1be139[_0x2f2375([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x3d052f,void(_0x1be139[_0x2f2375([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x3d052f);}if(_0x592ef3(_0x2f2375([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x36d7cd=_0x3e8be9(_0x2f2375([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x36d7cd[_0x2f2375([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x2f2375([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x36d7cd[_0x2f2375([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x36d7cd[_0x2f2375([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x3d052f,_0x36d7cd[_0x2f2375([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x3d052f;}_0x58abd0[_0x2f2375([0x6d,0x6f,0x64,0x65,0x6c])][_0x2f2375([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3d052f,_0x58abd0[_0x2f2375([0x6d,0x6f,0x64,0x65,0x6c])][_0x2f2375([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3d052f,_0x58abd0[_0x2f2375([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2f2375([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5b82ff(){return _0x592ef3(_0x2f2375([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x3e8be9(_0x2f2375([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x2f2375([0x73,0x74,0x61,0x74,0x65])]==_0x2f2375([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x2464b0(){return _0x592ef3(_0x2f2375([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 _0x4f3fd6(){return _0x592ef3(_0x2f2375([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x201777(_0x44d001){const _0x1245a9=_0x1e5968();_0x58abd0[_0x1245a9]=_0x2f2375([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])+_0x44d001,_0x44d001[_0x2f2375([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x2f2375([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x1e5968()]=_0x12e766),_0x44d001!=_0x2f2375([0x56,0x61,0x6c,0x69,0x64])&&_0x364959();}function _0x1e5968(){const _0x1f571b=window[_0x2f2375([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2f2375([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2f2375([0x6e,0x6f,0x77])]())[_0x2f2375([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2f2375([0x2e]),'');let _0x12c91a=_0x2f2375([0x71]);for(let _0x47ead7=0x0;_0x47ead7<_0x1f571b[_0x2f2375([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x47ead7+=0x2){let _0x19fb6e=window[_0x2f2375([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1f571b[_0x2f2375([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x47ead7,_0x47ead7+0x2));_0x19fb6e>=_0x371491[_0x2f2375([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x19fb6e-=_0x371491[_0x2f2375([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x12c91a+=_0x371491[_0x19fb6e];}return _0x12c91a;}function _0x30bba5(){const _0x59cfbc=_0x40602b[_0x2f2375([0x73,0x70,0x6c,0x69,0x74])](_0x2f2375([0x2e]));if(0x3!=_0x59cfbc[_0x2f2375([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5cfd44(_0x59cfbc[0x1]);function _0x5cfd44(_0x363482){const _0x4973a=_0x5427d5(_0x363482);return _0x4973a&&_0x1a55fd()?_0x4973a:null;function _0x1a55fd(){const _0x258b7f=_0x4973a[_0x2f2375([0x6a,0x74,0x69])],_0x3bce6a=window[_0x2f2375([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x258b7f[_0x2f2375([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x258b7f[_0x2f2375([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x11e7ab={..._0x4973a,[_0x2f2375([0x6a,0x74,0x69])]:_0x258b7f[_0x2f2375([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x258b7f[_0x2f2375([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x11e7ab[_0x2f2375([0x76,0x63])],_0x4f5217(_0x11e7ab)==_0x3bce6a;}}}async function _0x2bb627(){let _0x3d1119=!0x0;try{const _0x2288b4=_0x40602b[_0x2f2375([0x73,0x70,0x6c,0x69,0x74])](_0x2f2375([0x2e])),[_0x4b0e36,_0x20d958,_0x5a4530]=_0x2288b4;return _0x4685d0(_0x4b0e36),await _0x1c6def(_0x4b0e36,_0x20d958,_0x5a4530),_0x3d1119;}catch{return!0x1;}function _0x4685d0(_0x4a4470){const _0x3d1abf=_0x5427d5(_0x4a4470);_0x3d1abf&&_0x3d1abf[_0x2f2375([0x61,0x6c,0x67])]==_0x2f2375([0x45,0x53,0x32,0x35,0x36])||(_0x3d1119=!0x1);}async function _0x1c6def(_0x4574c1,_0x54e94b,_0x2be821){const _0x277500=window[_0x2f2375([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2f2375([0x66,0x72,0x6f,0x6d])](_0x50f0b1(_0x2be821),_0x765794=>_0x765794[_0x2f2375([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x36e0af=new window[(_0x2f2375([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2f2375([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4574c1+_0x2f2375([0x2e])+_0x54e94b),_0x45f29=window[_0x2f2375([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2f2375([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x45f29)return;const _0x23a798=await _0x45f29[_0x2f2375([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2f2375([0x6a,0x77,0x6b]),_0x23de10,{[_0x2f2375([0x6e,0x61,0x6d,0x65])]:_0x2f2375([0x45,0x43,0x44,0x53,0x41]),[_0x2f2375([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2f2375([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2f2375([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x45f29[_0x2f2375([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2f2375([0x6e,0x61,0x6d,0x65])]:_0x2f2375([0x45,0x43,0x44,0x53,0x41]),[_0x2f2375([0x68,0x61,0x73,0x68])]:{[_0x2f2375([0x6e,0x61,0x6d,0x65])]:_0x2f2375([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x23a798,_0x277500,_0x36e0af)||(_0x3d1119=!0x1);}}function _0x5427d5(_0x391ef3){return _0x391ef3[_0x2f2375([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2f2375([0x65,0x79]))?JSON[_0x2f2375([0x70,0x61,0x72,0x73,0x65])](_0x50f0b1(_0x391ef3)):null;}function _0x50f0b1(_0x255daf){return window[_0x2f2375([0x61,0x74,0x6f,0x62])](_0x255daf[_0x2f2375([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2f2375([0x2b]))[_0x2f2375([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2f2375([0x2f])));}function _0x4f5217(_0x312ad6){let _0x526d6f=0x1505;function _0x4d4f76(_0x338060){for(let _0x30bfa4=0x0;_0x30bfa4<_0x338060[_0x2f2375([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x30bfa4++){const _0x2abad6=_0x338060[_0x2f2375([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x30bfa4);_0x526d6f=(_0x526d6f<<0x5)+_0x526d6f+_0x2abad6,_0x526d6f&=_0x526d6f;}}function _0x399975(_0x513134){Array[_0x2f2375([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x513134)?_0x513134[_0x2f2375([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x399975):_0x513134&&typeof _0x513134==_0x2f2375([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2f2375([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x513134)[_0x2f2375([0x73,0x6f,0x72,0x74])]()[_0x2f2375([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4330c2,_0x87e4e])=>{_0x4d4f76(_0x4330c2),_0x399975(_0x87e4e);}):_0x4d4f76(window[_0x2f2375([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x513134));}return _0x399975(_0x312ad6),_0x526d6f>>>0x0;}function _0x34c289(_0x3167a3){return _0x3167a3[_0x2f2375([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2f2375([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2f2375([0x30]));}function _0x3e1052(_0xed677e){return _0xed677e[_0x2f2375([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2f2375([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2f2375([0x6a,0x6f,0x69,0x6e])]('');}function _0x592ef3(_0x42ccde){return _0x58abd0[_0x2f2375([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2f2375([0x68,0x61,0x73])](_0x42ccde);}function _0x3e8be9(_0x2f57e0){return _0x58abd0[_0x2f2375([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2f2375([0x67,0x65,0x74])](_0x2f57e0);}function _0x3d052f(){}function _0x2f2375(_0x1de34e){return _0x1de34e['map'](_0x40ea55=>String['fromCharCode'](_0x40ea55))['join']('');}_0x201777(await _0x121d3d());}(this);}['createRevision'](_0x32f180){const _0x5eb140=this['editor']['plugins']['get']('Users');return new I({'id':_0x32f180['id'],'name':_0x32f180['name'],'creator':_0x32f180['creatorId']?_0x5eb140['getUser'](_0x32f180['creatorId']):null,'diffData':_0x32f180['diffData']||_0x32f180['data'],'authors':_0x32f180['authorsIds']['map'](_0x288f1e=>_0x5eb140['getUser'](_0x288f1e)),'createdAt':new Date(_0x32f180['createdAt']),'attributes':_0x32f180['attributes'],'fromVersion':_0x32f180['fromVersion'],'toVersion':_0x32f180['toVersion']});}['addRevision'](_0x12f7ac,_0x207e8c=0x0){this['_revisions']['add'](_0x12f7ac,_0x207e8c);}['getRevision'](_0x13f627){return this['_revisions']['get'](_0x13f627);}['getRevisions'](_0x20257e={'toJSON':!0x1}){const _0x5f1335=Array['from'](this['_revisions']);return _0x5f1335['reverse'](),_0x20257e['toJSON']?_0x5f1335['map'](_0x554c79=>_0x554c79['toJSON']()):_0x5f1335;}['getIndex'](_0x3107e5){return this['_revisions']['getIndex'](_0x3107e5);}['getEarlierVisibleRevision'](_0x279b44){const [,_0x1ab41f]=this['getRevisionsIterator'](_0x279b44,{'direction':'earlier'});return _0x1ab41f;}['getLaterVisibleRevision'](_0x5d836a){const [,_0x2b3520]=this['getRevisionsIterator'](_0x5d836a,{'direction':'later'});return _0x2b3520;}['getRevisionsInDiff'](_0x1b944e){const _0x50ae18=[];for(const _0x45fb1d of this['getRevisionsIterator'](_0x1b944e['newRevisionId']))if(_0x50ae18['push'](_0x45fb1d),_0x45fb1d['id']===_0x1b944e['oldRevisionId'])break;return _0x50ae18;}*['getRevisionsIterator'](_0x541782,{direction:_0x3198cd='earlier',filter:_0x36c1f2=()=>!0x0}={}){const _0x5b7c83='earlier'===_0x3198cd?0x1:-0x1;let _0x222e15=this['_revisions']['get'](_0x541782),_0x361540=this['getIndex'](_0x222e15);for(yield _0x222e15;_0x222e15;){if(_0x361540+=_0x5b7c83,_0x222e15=this['getRevision'](_0x361540),!_0x222e15)return;_0x36c1f2(_0x222e15)&&(yield _0x222e15);}}}class $ extends _0x7a0156{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x57906c,'c'],[_0x1a0b1f,'a'],[_0x3fb0e0,'e'],[_0x59cc9e,'r'],[_0x1c9e3e,'u']]);['_typeCharToViewClass']=new Map([['c',_0x57906c],['a',_0x1a0b1f],['e',_0x3fb0e0],['r',_0x59cc9e],['u',_0x1c9e3e]]);async['loadRevisionData'](_0x16e440,_0x2ebf0b){if(_0x16e440['diffData']||!_0x2ebf0b)return;const _0x296ca9=this['editor']['config']['get']('collaboration.channelId'),_0x178dde=await _0x2ebf0b['getRevision']({'channelId':_0x296ca9,'revisionId':_0x16e440['id']});_0x16e440['diffData']=_0x178dde['diffData'];}['getRevisionDocumentData'](_0x3fd2cf){const _0x12b1c6={};for(const _0x39e1e1 in _0x3fd2cf['diffData']){if(_0x3fd2cf['diffData'][_0x39e1e1]['attachChange']&&!_0x3fd2cf['diffData'][_0x39e1e1]['attachChange']['isAttached'])continue;const _0x5df4a3=this['_removeRevisionMarkers'](JSON['parse'](_0x3fd2cf['diffData'][_0x39e1e1]['insertions'])),_0x497243=this['editor']['editing']['view']['document'],_0x5a2190=new _0x429d6d(_0x497243,_0x5df4a3['map'](_0x111cc5=>this['_getViewFromDiffObj'](_0x111cc5,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x12b1c6[_0x39e1e1]=this['editor']['data']['processor']['toData'](_0x5a2190),this['editor']['data']['processor']['useFillerType']('default');}return _0x12b1c6;}['getRevisionRootsAttributes'](_0x4fbeea){const _0x66a25b={};for(const _0x558707 in _0x4fbeea['diffData'])_0x4fbeea['diffData'][_0x558707]['attachChange']&&!_0x4fbeea['diffData'][_0x558707]['attachChange']['isAttached']||(_0x66a25b[_0x558707]=_0x4fbeea['diffData'][_0x558707]['attributesAfter']||{});return _0x66a25b;}['_getTypeCharForViewElement'](_0x370ecd){return this['_viewClassToTypeChar']['get'](_0x370ecd['constructor']);}['_getViewFromDiffObj'](_0x94bd16,_0x426326){const _0x154af3=this['editor']['editing']['view']['document'];if('string'==typeof _0x94bd16)return new _0x40dc38(_0x154af3,_0x94bd16);{let _0x5b01df,_0x1058e9;_0x1058e9='u'==_0x94bd16['type']||'r'==_0x94bd16['type']?[]:_0x94bd16['children']['map'](_0x54ff9c=>this['_getViewFromDiffObj'](_0x54ff9c,_0x426326));const _0x359930=this['_typeCharToViewClass']['get'](_0x94bd16['type'])||_0x5b320f,_0x73a544=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x5b01df=new _0x359930(_0x154af3,_0x94bd16['name'],_0x94bd16['attributes'],_0x1058e9),'u'==_0x94bd16['type']&&_0x94bd16['children'][0x0]){const _0x2cebfc=_0x94bd16['children'][0x0];if(_0x5b01df['render']=function(_0x11abb1){const _0x31d79d=_0x11abb1['createElement']('div');return _0x31d79d['innerHTML']=_0x2cebfc,_0x31d79d['childNodes'][0x0];},_0x426326){const _0x15be99=new _0x429d6d(_0x154af3);_0x15be99['_appendChild'](_0x5b01df);const _0x5876a4=Array['from'](_0x73a544['viewChildrenToDom'](_0x15be99,{'bind':!0x1})),_0x2aa173=_0x73a544['domDocument']['createElement']('div');_0x2aa173['append'](..._0x5876a4),_0x5b01df=Array['from'](_0x73a544['domChildrenToView'](_0x2aa173))[0x0];}}else{if('r'==_0x94bd16['type']&&_0x94bd16['children'][0x0]){const _0x5e861c=_0x94bd16['children'][0x0];if(_0x5b01df['render']=function(_0x3fa3bb){_0x3fa3bb['innerHTML']=_0x5e861c;},_0x426326){const _0x418575=new _0x429d6d(_0x154af3);_0x418575['_appendChild'](_0x5b01df);const _0x6cedad=Array['from'](_0x73a544['viewChildrenToDom'](_0x418575,{'bind':!0x1})),_0x3132c7=_0x73a544['domDocument']['createElement']('div');_0x3132c7['append'](..._0x6cedad);const _0x1e49da=Array['from'](_0x73a544['domChildrenToView'](_0x3132c7));_0x1e49da['length']>0x1?_0x5b01df['_appendChild'](_0x1e49da):_0x5b01df=_0x1e49da[0x0];}}}if(_0x94bd16['customProperties']){for(const [_0x510199,_0x253819]of _0x94bd16['customProperties'])_0x5b01df['_setCustomProperty'](_0x510199,_0x253819);}const _0x1c0363=void 0x0===_0x94bd16['fillerOffset']?null:_0x94bd16['fillerOffset'];return null!==_0x1c0363&&(_0x5b01df['getFillerOffset']=()=>_0x1c0363),_0x5b01df;}}['_makeModelFromViewString'](_0x115bca){const _0x42ac58=JSON['parse'](_0x115bca),_0x3a95b1=this['editor']['editing']['view']['document'],_0xbd12c2=new _0x429d6d(_0x3a95b1,_0x42ac58['map'](_0xabfa89=>this['_getViewFromDiffObj'](_0xabfa89,!0x0)));return this['editor']['data']['toModel'](_0xbd12c2);}['_removeRevisionMarkers'](_0x33999a){return(_0x33999a=_0x33999a['filter'](_0x23a890=>!_0x23a890['name']||'revision-start'!==_0x23a890['name']&&'revision-end'!==_0x23a890['name']))['forEach'](_0x2335f9=>{'string'!=typeof _0x2335f9&&(_0x2335f9['children']=this['_removeRevisionMarkers'](_0x2335f9['children']),_0x2335f9['attributes']=_0x2335f9['attributes']['filter'](_0x14f369=>!_0x14f369[0x0]['startsWith']('data-revision-')));}),_0x33999a;}}function R(_0x4cfea7,_0x222e2b,_0x49d4ed){const t=_0x4cfea7['t'];switch(_0x222e2b){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'},_0x49d4ed);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x49d4ed);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}class h extends _0x7a0156{['licenseKey'];['_licenseKeyCheckInterval'];['currentRevision']=null;['repository'];['adapter']=null;['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_utils'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x12ddb9,S,$,_0x270ae9];}constructor(_0x2df9b9){super(_0x2df9b9),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new E(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x3da3d6=_0x33e273();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x3da3d6},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x201a25=this['repository']['getRevision'](0x0),_0x2f3fbf=_0x201a25&&null===_0x201a25['creator']?_0x201a25:null;if(this['_continueCurrentRevision']=!!_0x2f3fbf&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0xf7c4a2=this['_source']['getCurrentRevisionId'](),_0xeb6fa5=this['repository']['getRevision'](_0xf7c4a2);if(_0xeb6fa5)this['_startingVersion']=_0xeb6fa5['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x4c4613=this['_source']['history']['_operations']['find'](_0xad4060=>!_0xad4060['_isInit']),_0x4ad30a=_0x4c4613?_0x4c4613['baseVersion']:this['_source']['history']['version'];_0x201a25?(_0x201a25['toVersion']<_0x4ad30a&&_0x201a25['_update']({'toVersion':_0x4ad30a}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x2f3fbf['id'],this['_startingVersion']=_0x2f3fbf['fromVersion']):(this['_startingVersion']=_0x201a25['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x4ad30a,this['_continueCurrentRevision']=!0x1);}}else _0x2f3fbf&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x2f3fbf['toVersion'],this['editor']['model']['document']['history']['version']),_0x2f3fbf['fromVersion']===_0x2f3fbf['toVersion']?(0x0!==_0x2f3fbf['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x2f3fbf['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x2f3fbf['id'],this['_startingVersion']=_0x2f3fbf['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',_0x3c24c3=>!_0x3c24c3),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3c06a9=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x269152;for(const _0x5aa91b in _0x3c06a9){const _0x26f4b9=_0x5aa91b,_0x4f09d3=_0x3c06a9[_0x26f4b9];if('revisionHistoryLicenseKeyValid'==_0x4f09d3||'revisionHistoryLicenseKeyInvalid'==_0x4f09d3||'revisionHistoryLicenseKeyExpired'==_0x4f09d3||'revisionHistoryLicenseKeyDomainLimit'==_0x4f09d3||'revisionHistoryLicenseKeyNotAllowed'==_0x4f09d3||'revisionHistoryLicenseKeyEvaluationLimit'==_0x4f09d3||'revisionHistoryLicenseKeyTrialLimit'==_0x4f09d3||'revisionHistoryLicenseKeyUsageLimit'==_0x4f09d3){delete _0x3c06a9[_0x26f4b9],_0x269152=_0x4f09d3,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x269152&&_0x3c06a9['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x269152&&_0x3c06a9['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x269152&&_0x3c06a9['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x269152&&_0x3c06a9['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x269152&&_0x3c06a9['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x269152&&_0x3c06a9['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x269152&&_0x3c06a9['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x8975b1=this['repository']['getRevision'](0x0),_0x26059d=await this['getRevisionDocumentData'](_0x8975b1),_0xaa03e2=await this['getRevisionRootsAttributes'](_0x8975b1);this['_replaceEditorDataWithRevisionData'](_0x26059d,_0xaa03e2);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x23cb4f){this['_source']=_0x23cb4f;}async['update'](){const _0x32fc0f=await this['_source']['getLatestVersion']();if(_0x32fc0f>this['currentRevision']['toVersion']){await this['_loadState']();const _0x22a85b=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x32fc0f});_0x22a85b['authors']=_0x22a85b['authorsIds']['map'](_0x415640=>this['editor']['plugins']['get']('Users')['getUser'](_0x415640)),this['currentRevision']['_update'](_0x22a85b);}}async['saveRevision'](_0x3ee155={},_0x5e7047=null){const _0x457def=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x5e7047>this['currentRevision']['toVersion']&&(_0x5e7047=null),null===_0x5e7047&&(_0x5e7047=await this['_source']['getLatestVersion']());const _0x12c677=this['_getFromVersion'](_0x5e7047),_0x15842a=this['buildRevisionData']({'from':_0x12c677,'to':_0x5e7047});if(this['currentRevision']['toVersion']<_0x5e7047){const _0x239e2a=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x5e7047,'to':_0x5e7047});_0x239e2a['authors']=[],_0x239e2a['authorsIds']=[],_0x239e2a['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x239e2a,!0x0),delete _0x239e2a['authors'],_0x457def['push'](_0x239e2a);}_0x3ee155['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x3ee155['name']=_0x3ee155['name']||null,_0x3ee155['id']=_0x3ee155['id']||_0x33e273(),_0x3ee155={..._0x3ee155,..._0x15842a};const _0x2eb729=this['addRevisionData'](_0x3ee155);_0x457def['push'](_0x3ee155);const _0x393dad=this['repository']['getIndex'](_0x2eb729);if(0x0!==_0x393dad){const _0x1420ac=this['repository']['getRevision'](_0x393dad-0x1);if(_0x1420ac['fromVersion']!==_0x5e7047){const _0x4a4553=this['_revisionDataBuilder']['getData'](_0x5e7047,_0x1420ac['toVersion']),_0x280eb4={'id':_0x1420ac['id'],'diffData':_0x4a4553['diffData'],'authorsIds':_0x4a4553['authorsIds'],'authors':_0x4a4553['authorsIds']['map'](_0x1f4286=>this['editor']['plugins']['get']('Users')['getUser'](_0x1f4286)),'fromVersion':_0x5e7047};_0x1420ac===this['currentRevision']&&(_0x280eb4['createdAt']=new Date(_0x3ee155['createdAt']['getTime']()+0xa)),_0x1420ac['_update'](_0x280eb4,!0x0),delete _0x280eb4['authors'],_0x457def['push'](_0x280eb4);}}if(this['adapter']){for(const _0x5b0f47 of _0x457def)this['_bufferUpdate'](_0x5b0f47['id'],_0x5b0f47,!0x0);this['sendBufferedUpdates']();}return _0x2eb729;}['addRevisionData'](_0x18bde5){const _0xb045c2=this['repository']['createRevision'](_0x18bde5);return this['adapter']&&_0xb045c2['on']('_update',(_0x8a4977,_0x47e95c,_0x39e6ba)=>{_0x39e6ba||(this['_bufferUpdate'](_0x47e95c['id'],_0x47e95c,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0xb045c2,this['_findInsertionIndex'](_0xb045c2)),_0xb045c2;}async['getRevisionDocumentData'](_0x375bca){return await this['_utils']['loadRevisionData'](_0x375bca,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x375bca);}async['getRevisionRootsAttributes'](_0xdb1635){return await this['_utils']['loadRevisionData'](_0xdb1635,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0xdb1635);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x5d3736=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x393a66=0x0;_0x393a66<_0x5d3736['length'];_0x393a66++){const _0x2bab5a=_0x5d3736[_0x393a66];let _0x1c2c3b=!0x1;for(const _0x11db77 of Object['keys'](_0x2bab5a))void 0x0===_0x2bab5a[_0x11db77]?delete _0x2bab5a[_0x11db77]:'id'!==_0x11db77&&(_0x1c2c3b=!0x0);_0x1c2c3b||(_0x5d3736[_0x393a66]=null);}if(_0x5d3736=_0x5d3736['filter'](_0x413f65=>null!==_0x413f65),!_0x5d3736['length'])return;for(let _0x30f1d5=0x0;_0x30f1d5<_0x5d3736['length'];_0x30f1d5++){const _0x925f6a=_0x5d3736[_0x30f1d5];void 0x0!==_0x925f6a['fromVersion']&&void 0x0===_0x925f6a['toVersion']&&(_0x925f6a['toVersion']=this['repository']['getRevision'](_0x925f6a['id'])['toVersion']),void 0x0!==_0x925f6a['toVersion']&&void 0x0===_0x925f6a['fromVersion']&&(_0x925f6a['fromVersion']=this['repository']['getRevision'](_0x925f6a['id'])['fromVersion']);}const _0x1d7ad3=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x5d3736,_0x1d7ad3)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x4ebb8b=>{if(_0x4ebb8b){for(const _0x5bdc11 of _0x4ebb8b)this['setRevisionData']({'id':_0x5bdc11['id'],'createdAt':_0x5bdc11['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0xe5f13d=null,from:_0x1a6b95=null,to:_0x4f5c45=null}){_0x1a6b95=null!==_0x1a6b95?_0x1a6b95:_0xe5f13d['fromVersion'],_0x4f5c45=null!==_0x4f5c45?_0x4f5c45:_0xe5f13d['toVersion'];const _0x49a0d3=this['_revisionDataBuilder']['getData'](_0x1a6b95,_0x4f5c45),_0x3556a1={'diffData':_0x49a0d3['diffData'],'authorsIds':_0x49a0d3['authorsIds'],'fromVersion':_0x1a6b95,'toVersion':_0x4f5c45};if(!_0xe5f13d||_0x4f5c45!==_0xe5f13d['toVersion']){const _0x2daf47=_0x4f5c45-0x1,_0x3bb5ef=this['_source']['history']['getOperation'](_0x2daf47);_0x3556a1['createdAt']=_0x3bb5ef&&_0x3bb5ef['createdAt']||new Date();}if(this['_loadedStateData']&&_0x1a6b95===this['_loadedStateData']['fromVersion']){for(const _0x484d08 of this['_loadedStateData']['authors'])_0x3556a1['authorsIds']['includes'](_0x484d08['id'])||_0x3556a1['authorsIds']['push'](_0x484d08['id']);}return _0x3556a1;}['_bufferUpdate'](_0x1ebdcf,_0x489876,_0x35ba0e){if(this['_bufferedUpdates']['has'](_0x1ebdcf)){const _0x2e2b50=this['_bufferedUpdates']['get'](_0x1ebdcf);_0x489876=_0x35ba0e?{..._0x2e2b50,..._0x489876}:{..._0x489876,..._0x2e2b50};}this['_bufferedUpdates']['set'](_0x1ebdcf,_0x489876);}['setRevisionData'](_0xd1d3ee){const _0x4b2b1b=this['repository']['getRevision'](_0xd1d3ee['id']);if(_0xd1d3ee['createdAt']&&(_0xd1d3ee['createdAt']=new Date(_0xd1d3ee['createdAt'])),_0xd1d3ee['authorsIds']){const _0x2425dd=this['editor']['plugins']['get']('Users');_0xd1d3ee['authors']=_0xd1d3ee['authorsIds']['map'](_0x225511=>_0x2425dd['getUser'](_0x225511));}_0x4b2b1b['_update'](_0xd1d3ee,!0x0);}['_createInitialRevision'](_0x1846d5){const _0x5eb3f1=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x5eb3f1)this['_initialRevisionId']=_0x5eb3f1['id'];else{const _0x441025=!this['editor']['model']['document']['roots']['find'](_0x57448a=>this['editor']['model']['hasContent'](_0x57448a)),_0x19c7ad=this['editor']['plugins']['get']('Users')['me']['id'],_0xee5ce=R(this['editor']['locale'],_0x441025?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x1846d5,'to':_0x1846d5,'id':this['_initialRevisionId'],'name':_0xee5ce,'creatorId':_0x19c7ad});}}['_createCurrentRevision'](_0x185408){const _0xbe26b=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0xbe26b),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x185408,'to':_0x185408,'id':_0xbe26b,'name':'','creatorId':null}));}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_utils']['loadRevisionData'](this['currentRevision'],this['adapter']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}['_replaceEditorDataWithRevisionData'](_0x22357e,_0xcbbe70){let _0x105bb9=this['editor']['config']['get']('initialData'),_0x2f1781=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x105bb9){_0x105bb9={};for(const _0x340ac1 of this['editor']['model']['document']['getRootNames']())_0x105bb9[_0x340ac1]='';}if('string'==typeof _0x105bb9&&(_0x105bb9={'main':_0x105bb9}),void 0x0===_0x2f1781){_0x2f1781={};for(const _0x35eddc of this['editor']['model']['document']['getRootNames']())_0x2f1781[_0x35eddc]={};}let _0x21c15a=!0x1;const _0x4eb9c4=Object['keys'](_0x105bb9),_0x2c9b49=Object['keys'](_0x22357e);for(const _0x5a954e of _0x4eb9c4){if(_0x105bb9[_0x5a954e]!==_0x22357e[_0x5a954e]&&''!==_0x105bb9[_0x5a954e]['trim']()){_0x21c15a=!0x0;break;}if(!_0x59588e(_0x2f1781[_0x5a954e],_0xcbbe70[_0x5a954e])&&Object['keys'](_0x2f1781[_0x5a954e])['length']>0x0){_0x21c15a=!0x0;break;}}_0x21c15a||(_0x21c15a=_0x2c9b49['some'](_0x3061ce=>!this['editor']['model']['document']['getRoot'](_0x3061ce))),_0x21c15a&&_0x108e76('editor-initial-data-replaced-with-revision-data',{'editorData':_0x105bb9,'editorRootsAttributes':_0x2f1781,'revisionData':_0x22357e,'revisionRootsAttributes':_0xcbbe70}),this['editor']['config']['set']('initialData',_0x22357e),this['editor']['config']['set']('rootsAttributes',_0xcbbe70);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x2d5cad=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x2d5cad['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x147077){const _0x3c9046=this['repository']['getRevisions']();_0x3c9046['reverse']();let _0x146a3b=0x0;for(;_0x146a3b<_0x3c9046['length'];){const _0x589dcd=_0x3c9046[_0x146a3b];if(_0x589dcd===this['currentRevision']){_0x146a3b++;continue;}if(_0x589dcd['id']===this['_initialRevisionId'])break;const _0x2c8319=_0x147077['toVersion']-_0x589dcd['toVersion']||_0x147077['fromVersion']-_0x589dcd['fromVersion'];if(_0x2c8319>0x0)break;if(_0x2c8319<0x0)_0x146a3b++;else{if(!_0x147077['creator']&&_0x589dcd['creator'])break;if(_0x589dcd['creator']||!_0x147077['creator']){if(_0x147077['createdAt']>_0x589dcd['createdAt'])break;_0x146a3b++;}else _0x146a3b++;}}return _0x146a3b;}['_getFromVersion'](_0x514679){const _0x5cbf0e=this['repository']['getRevisions']();_0x5cbf0e['reverse'](),_0x5cbf0e['shift']();const _0x246c9b=_0x5cbf0e['find'](_0xeecfbb=>_0xeecfbb['toVersion']<=_0x514679)['toVersion'];return _0x246c9b<this['_startingVersion']?this['_startingVersion']:_0x246c9b;}['_makeRevision']({name:_0x51b00a,from:_0x2745b4,to:_0x4e6f30,creatorId:_0x27922a,id:_0x15a9c6}){const _0x27ba37=this['buildRevisionData']({'from':_0x2745b4,'to':_0x4e6f30});_0x27ba37['name']=_0x51b00a,_0x27ba37['creatorId']=_0x27922a,_0x27ba37['id']=_0x15a9c6;const _0x56019c=this['addRevisionData'](_0x27ba37);return this['adapter']&&this['_bufferUpdate'](_0x27ba37['id'],_0x27ba37,!0x0),_0x56019c;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class E{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x42cca3){this['editor']=_0x42cca3,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'](_0x59b572){this['source']=_0x59b572;const _0xfe38d8=new Map(),_0x32fa7e=new Map(),_0x1f6035=this['editor']['model']['document']['roots']['map'](_0x2af89f=>_0x2af89f['rootName']);for(const _0x2bfecf of _0x1f6035){const _0x5ceb76=this['editor']['model']['document']['getRoot'](_0x2bfecf),_0x14abe2=x(_0x5ceb76);_0xfe38d8['set'](_0x2bfecf,_0x14abe2),_0x32fa7e['set'](_0x2bfecf,Object['fromEntries'](_0x5ceb76['getAttributes']()));}const _0x36f6ae=Array['from'](this['editor']['model']['markers'])['map'](_0x5c13e4=>[_0x5c13e4['name'],_0x5c13e4['getRange']()]),_0xbc4fce=this['source']['version'];this['_saveMetaData'](_0xbc4fce,_0xfe38d8,_0x36f6ae,_0x32fa7e),this['_startingRevisionId']=this['_revisionId'];const _0x4ede24=new Map(),_0x1deda0=new Map();for(const _0x51bf89 of _0x1f6035){const _0x3e4248=N(_0x51bf89);_0x4ede24['set'](_0x51bf89,_0x3e4248),_0x1deda0['set'](_0x51bf89,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x4ede24,[],_0x1deda0);}['getData'](_0x3ecb13,_0x101139){if(this['_lastFrom']===_0x3ecb13&&this['_lastTo']<=_0x101139)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x101139,!0x0);else{if(!this['_savedMetaData']['has'](_0x3ecb13)){const _0x551548=this['_getPreviousFrom'](_0x3ecb13);this['_calculateMetaData'](_0x551548,_0x3ecb13,!0x1);}this['_calculateMetaData'](_0x3ecb13,_0x101139,!0x0);}return this['_lastFrom']=_0x3ecb13,this['_lastTo']=_0x101139,this['_getState']();}['loadState'](_0x4a649d){const _0x44fbe7=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x4a649d['fromVersion'],this['_lastTo']=_0x4a649d['toVersion'];for(const _0x470f5f in _0x4a649d['diffData']){const _0x188466=_0x4a649d['diffData'][_0x470f5f]['attachChange'],_0x42adf8=_0x35c6b3(_0x4a649d['diffData'][_0x470f5f]['attributesBefore'])||{},_0x33d30e=_0x44fbe7['_makeModelFromViewString'](_0x4a649d['diffData'][_0x470f5f]['deletions']);_0x33d30e['rootName']=_0x470f5f,_0x33d30e['_isAttached']=!_0x188466||!_0x188466['isAttached'],_0x33d30e['isAttached']=()=>_0x33d30e['_isAttached'],this['_baseRoots']['set'](_0x470f5f,_0x33d30e),this['_baseRootsAttributes']['set'](_0x470f5f,_0x42adf8),_0x188466&&this['_touchedRoots']['set'](_0x470f5f,_0x188466);const _0x4f35a5=this['_makeIdsRoot'](_0x33d30e);this['_baseIdsRoots']['set'](_0x470f5f,_0x4f35a5);for(const [_0x24ccd2,_0x1ab930]of _0x33d30e['markers']){if(!_0x24ccd2['startsWith']('revision:'))continue;const _0x1dc380=_0x24ccd2['split'](':')[0x2];for(const _0x51e994 of _0x1ab930['getWalker']({'singleCharacters':!0x0})){const _0x2513ea=this['_getVidAttributeName'](_0x51e994),_0x36daf1='elementEnd'==_0x51e994['type']?_0x51e994['previousPosition']['path']['slice'](0x0,-0x1):_0x51e994['previousPosition']['path'],_0x67e384=_0x4f35a5['getNodeByPath'](_0x36daf1)['getAttribute'](_0x2513ea);this['_touched']['set'](_0x67e384,{'userId':_0x1dc380});}}}this['_startingRevisionId']=this['_revisionId'];const _0x24e59e=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x2f1587=>!this['_touched']['has'](_0x2f1587));let _0x5c1db9=0x0;const _0x40a022=new Map();for(const _0x16f4e1 in _0x4a649d['diffData']){const _0x539b03=_0x4a649d['diffData'][_0x16f4e1]['attachChange'],_0x533147=_0x35c6b3(_0x4a649d['diffData'][_0x16f4e1]['attributesAfter'])||{},_0x2a72fe=_0x44fbe7['_makeModelFromViewString'](_0x4a649d['diffData'][_0x16f4e1]['insertions']);_0x2a72fe['rootName']=_0x16f4e1,_0x2a72fe['_isAttached']=!_0x539b03||_0x539b03['isAttached'],_0x2a72fe['isAttached']=()=>_0x2a72fe['_isAttached'],this['_diffRoots']['set'](_0x16f4e1,_0x2a72fe),this['_diffRootsAttributes']['set'](_0x16f4e1,_0x533147);const _0x3a2be2=this['_makeIdsRoot'](_0x2a72fe,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x16f4e1,_0x3a2be2),_0x40a022['set'](_0x16f4e1,_0x2a72fe['isAttached']()?_0x533147:{});for(const [_0x547a98,_0x5b8153]of _0x2a72fe['markers']){if(!_0x547a98['startsWith']('revision:'))continue;const _0x4830be=_0x547a98['split'](':')[0x2];for(const _0x9aa3af of _0x5b8153['getWalker']({'singleCharacters':!0x0})){const _0x120217=this['_getVidAttributeName'](_0x9aa3af),_0x20f41c=this['_revisionId']++,_0xfc247b='elementEnd'==_0x9aa3af['type']?_0x9aa3af['previousPosition']['path']['slice'](0x0,-0x1):_0x9aa3af['previousPosition']['path'];_0x3a2be2['getNodeByPath'](_0xfc247b)['_setAttribute'](_0x120217,_0x20f41c),this['_touched']['set'](_0x20f41c,{'userId':_0x4830be});}}for(const _0x1babaf of this['editor']['model']['createRangeIn'](_0x2a72fe)['getWalker']({'singleCharacters':!0x0})){const _0x5ab87e=this['_getVidAttributeName'](_0x1babaf),_0x46afe8='elementEnd'==_0x1babaf['type']?_0x1babaf['previousPosition']['path']['slice'](0x0,-0x1):_0x1babaf['previousPosition']['path'],_0x174e90=_0x3a2be2['getNodeByPath'](_0x46afe8);_0x174e90['getAttribute'](_0x5ab87e)>0x0||_0x174e90['_setAttribute'](_0x5ab87e,_0x24e59e[_0x5c1db9++]);}for(const [_0x306831,_0x5ee40a]of _0x2a72fe['markers'])_0x306831['startsWith']('revision:')||this['_markers']['set'](_0x306831,_0x5ee40a);}const _0x3a9ef3=N('$graveyard');this['_baseRoots']['set']('$graveyard',_0x3a9ef3),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x3a9ef3,0x1));const _0x9fdb53=N('$graveyard');this['_diffRoots']['set']('$graveyard',_0x9fdb53),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x9fdb53,0x1));const _0x136900=Array['from'](this['_diffRoots'])['map'](([_0x3dd6b2,_0x3dcced])=>[_0x3dd6b2,x(_0x3dcced)]);this['_saveMetaData'](this['_lastTo'],_0x136900,this['_markers'],_0x40a022);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x4cf19e,_0x110be8,_0x32ba14,_0x2b7149){const _0x54aa84=new Map(_0x110be8),_0x5ae0c8=new Map(_0x35c6b3(_0x2b7149)),_0x4e71c2=new Map();for(const [_0x4474b3,_0x3cd780]of _0x32ba14)_0x4e71c2['set'](_0x4474b3,{'start':_0x3cd780['start']['clone'](),'end':_0x3cd780['end']['clone'](),'rootName':_0x3cd780['root']['rootName']});this['_savedMetaData']['set'](_0x4cf19e,{'roots':_0x54aa84,'markers':_0x4e71c2,'rootsAttributes':_0x5ae0c8});}['_removeMetaData'](_0x1b36d8){this['_savedMetaData']['delete'](_0x1b36d8);}['_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'](_0x4bf661,_0x3909da=null){let _0x1c5a1f=null;_0x4bf661['is']('documentFragment')||(_0x1c5a1f=new _0x558088(_0x4bf661['name'],{'vid_start':null===_0x3909da?this['_revisionId']++:_0x3909da++}));const _0x39525b=[];for(const _0x29c911 of _0x4bf661['getChildren']())if(_0x29c911['is']('element')){_0x39525b['push'](this['_makeIdsRoot'](_0x29c911,_0x3909da));const _0x16ba41=_0x39525b[_0x39525b['length']-0x1];null!==_0x3909da&&(_0x3909da=_0x16ba41['is']('element','$text')?_0x16ba41['getAttribute']('vid')+0x1:_0x16ba41['getAttribute']('vid_end')+0x1);}else{for(let _0x57ba63=0x0;_0x57ba63<_0x29c911['offsetSize'];_0x57ba63++)_0x39525b['push'](new _0x558088('$text',{'vid':null===_0x3909da?this['_revisionId']++:_0x3909da++}));}if(_0x4bf661['is']('documentFragment')){const _0x41efb1=N(_0x4bf661['rootName']);return _0x41efb1['_insertChild'](0x0,_0x39525b),_0x41efb1;}return _0x1c5a1f['_setAttribute']('vid_end',null===_0x3909da?this['_revisionId']++:_0x3909da++),_0x1c5a1f['_insertChild'](0x0,_0x39525b),_0x1c5a1f;}['_calculateMetaData'](_0x18557b,_0x12d30b,_0x268987){this['_reset']();const {roots:_0x296169,markers:_0x526afd,rootsAttributes:_0xf43327}=this['_savedMetaData']['get'](_0x18557b);this['_baseRoots']=new Map(_0x296169),this['_baseRootsAttributes']=new Map(_0x35c6b3(_0xf43327));for(const [_0x41425f,_0x469109]of this['_baseRoots'])if('$graveyard'!==_0x41425f&&(this['_diffRoots']['set'](_0x41425f,x(_0x469109)),this['_diffRootsAttributes']=new Map(_0x35c6b3(_0xf43327)),_0x268987)){const _0x3cfb5=this['_revisionId'];this['_idsRoots']['set'](_0x41425f,this['_makeIdsRoot'](_0x469109)),this['_baseIdsRoots']['set'](_0x41425f,this['_makeIdsRoot'](_0x469109,_0x3cfb5));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x268987&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x120890,_0x32fb1f]of _0x526afd){const _0x3ef420=this['_baseRoots']['get'](_0x32fb1f['rootName']),_0x4fc318=this['_diffRoots']['get'](_0x32fb1f['rootName']),_0x13c45a=new _0x2bfbe2(this['_fixPosition'](_0x32fb1f['start'],_0x3ef420),this['_fixPosition'](_0x32fb1f['end'],_0x3ef420)),_0x5b96c9=this['_fixRange'](_0x13c45a,_0x4fc318);_0x3ef420['markers']['set'](_0x120890,_0x13c45a),this['_markers']['set'](_0x120890,_0x5b96c9);}this['_applyOperations'](_0x18557b,_0x12d30b,_0x268987);}['_applyOperations'](_0x11b82a,_0xc3426e,_0x580006){for(const _0x38a1fe of this['source']['getOperations'](_0x11b82a,_0xc3426e))this['_handleOperation'](_0x38a1fe,_0x580006);for(const _0x27d546 of this['_diffRoots']['values']())_0x27d546['markers']['clear']();for(const [_0x3fb8a5,_0xabb027]of this['_markers']){this['_diffRoots']['get'](_0xabb027['root']['rootName'])['markers']['set'](_0x3fb8a5,_0xabb027['clone']());}const _0x22af24=new Map(),_0x56a8ed=new Map();for(const [_0x99b73a,_0x5bdace]of this['_diffRoots'])_0x22af24['set'](_0x99b73a,x(_0x5bdace)),_0x56a8ed['set'](_0x99b73a,this['_diffRootsAttributes']['get'](_0x99b73a));this['_saveMetaData'](_0xc3426e,_0x22af24,this['_markers'],_0x56a8ed);}['_getPreviousFrom'](_0x156e64){const _0x58f2cc=Array['from'](this['_savedMetaData']['keys']());_0x58f2cc['sort']((_0x1b502c,_0x395b20)=>_0x1b502c-_0x395b20),_0x58f2cc['reverse']();for(const _0x4dd88f of _0x58f2cc)if(_0x4dd88f<_0x156e64)return _0x4dd88f;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x1e0cfd,_0x2090ef){const _0x13b68a=Array['from'](_0x2090ef['markers'])['map'](([_0x36af5b,_0x1c13c0])=>[_0x36af5b,this['_fixRange'](_0x1c13c0,_0x1e0cfd)]);_0x1e0cfd['markers']=new Map(_0x13b68a);}['_transformMarkers'](_0x569517){for(const _0x90f352 of this['_markers']['values']()){const _0x3cdaab=_0x90f352['getTransformedByOperation'](_0x569517),_0x163d2b=_0x2bfbe2['_createFromRanges'](_0x3cdaab);_0x90f352['start']=_0x163d2b['start'],_0x90f352['end']=_0x163d2b['end'];}}['_handleOperation'](_0x5c8057,_0x461589){if('addRoot'!=_0x5c8057['type']&&'detachRoot'!=_0x5c8057['type']){if('insert'==_0x5c8057['type']){const _0x2214e2=_0x5c8057['position']['root']['rootName'];this['_diffRoots']['has'](_0x2214e2)||(this['_diffRoots']['set'](_0x2214e2,N(_0x2214e2,!0x0)),this['_diffRootsAttributes']['set'](_0x2214e2,{}),_0x461589&&this['_idsRoots']['set'](_0x2214e2,N(_0x2214e2,!0x0)));}else{if('addRootAttribute'==_0x5c8057['type']||'removeRootAttribute'==_0x5c8057['type']||'changeRootAttribute'==_0x5c8057['type'])return void this['_handleRootAttributeOperation'](_0x5c8057);'marker'==_0x5c8057['type']&&this['_handleMarkerOperation'](_0x5c8057);}if('marker'!==_0x5c8057['type']){const _0x382d69=this['_cloneOperation'](_0x5c8057,this['_diffRoots']);_0x382d69['_execute'](),this['_transformMarkers'](_0x382d69);}if(_0x461589)switch(_0x5c8057['type']){case'insert':this['_handleInsertOperation'](_0x5c8057);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x5c8057);break;case'merge':this['_handleMergeOperation'](_0x5c8057);break;case'split':this['_handleSplitOperation'](_0x5c8057);}}else this['_handleRootOperation'](_0x5c8057,_0x461589);}['_cloneOperation'](_0x39a6fe,_0xa1a3d8){const _0x200943=_0x39a6fe['clone']();return _0x200943['_authorId']=_0x39a6fe['_authorId'],this['_fixOperation'](_0x200943,_0xa1a3d8),_0x200943;}['_getBaseVids'](_0x4affb0){return _0x4affb0['map'](_0x30f875=>{const _0x45b462=this['_getVidAttributeName'](_0x30f875);return Number(_0x30f875['item']['getAttribute'](_0x45b462));});}['_generateTape'](_0x3ae9bd,_0x20d577){if(_0x3ae9bd['is']('element','$text'))_0x20d577['push']({'item':_0x3ae9bd,'type':'text'});else{_0x3ae9bd['is']('element')&&_0x20d577['push']({'item':_0x3ae9bd,'type':'elementStart'});for(const _0x2e3ad6 of _0x3ae9bd['getChildren']())this['_generateTape'](_0x2e3ad6,_0x20d577);_0x3ae9bd['is']('element')&&_0x20d577['push']({'item':_0x3ae9bd,'type':'elementEnd'});}return _0x20d577;}['_getState'](){const _0x105562=new Map(this['_touched']),_0x1810ee=new Map(_0x105562),_0x47cac7=new Map(),_0x2f64cf={'insertions':{},'deletions':{}},_0x10ff87={'insertions':{},'deletions':{}},_0x445e39=new Map(),_0xb01913=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0xb01913['delete']('$graveyard');for(const _0x280df2 of _0xb01913){const _0x28778f=this['_diffRoots']['get'](_0x280df2)||N(_0x280df2,!0x1),_0x5b7d7e=this['_baseRoots']['get'](_0x280df2)||N(_0x280df2,!0x1);_0x28778f['isAttached']()||_0x5b7d7e['isAttached']()?(_0x2f64cf['insertions'][_0x280df2]=x(_0x28778f),_0x2f64cf['deletions'][_0x280df2]=x(_0x5b7d7e),this['_copyMarkers'](_0x2f64cf['deletions'][_0x280df2],_0x5b7d7e),this['_copyMarkers'](_0x2f64cf['insertions'][_0x280df2],_0x28778f),_0x10ff87['insertions'][_0x280df2]=this['_generateTape'](this['_idsRoots']['get'](_0x280df2),[]),_0x10ff87['deletions'][_0x280df2]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x280df2)||N(_0x280df2,!0x1),[])):_0xb01913['delete'](_0x280df2);}for(const _0xd5f5bd of _0xb01913){const _0x2032d8=_0x10ff87['insertions'][_0xd5f5bd];for(const _0x300271 of _0x2032d8){const _0x50d499=this['_getVidAttributeName'](_0x300271),_0x309818=_0x300271['item']['getAttribute'](_0x50d499);_0x1810ee['delete'](_0x309818),_0x309818>=this['_startingRevisionId']&&_0x47cac7['set'](_0x309818,_0x105562['get'](_0x309818));}}for(const _0x265360 of _0xb01913){const _0x5710b0=_0x10ff87['insertions'][_0x265360],_0x5c9885=this['_getBaseVids'](_0x10ff87['deletions'][_0x265360]);let _0x40addd=0x0;for(const _0x26a3a8 of _0x5710b0){const _0x383547=this['_getVidAttributeName'](_0x26a3a8),_0x632b1b=_0x26a3a8['item']['getAttribute'](_0x383547);if(!_0x47cac7['has'](_0x632b1b)&&!_0x445e39['has'](_0x632b1b)){if(_0x1810ee['has'](_0x632b1b))_0x40addd++;else{if(_0x632b1b!=_0x5c9885[_0x40addd]){const _0x26312f=_0x105562['get'](_0x632b1b)||_0x105562['get'](_0x5c9885[_0x40addd]);for(;_0x632b1b!=_0x5c9885[_0x40addd];)_0x1810ee['has'](_0x5c9885[_0x40addd])||(_0x445e39['set'](_0x5c9885[_0x40addd],_0x26312f),_0x105562['set'](_0x5c9885[_0x40addd],_0x26312f)),_0x40addd++;}_0x40addd++;}}}}for(const _0x3371b9 of _0xb01913){const _0x3ea59e=_0x10ff87['insertions'][_0x3371b9];for(const _0x2bbbb1 of _0x3ea59e){const _0x36d111=this['_getVidAttributeName'](_0x2bbbb1),_0x1423d9=_0x2bbbb1['item']['getAttribute'](_0x36d111);if(_0x445e39['has'](_0x1423d9)){const _0x58b833=_0x445e39['get'](_0x1423d9);_0x1810ee['has'](_0x1423d9)||_0x1810ee['set'](_0x1423d9,{..._0x58b833}),_0x47cac7['set'](_0x1423d9,{..._0x58b833});}}}for(const _0x9f73da of _0x1810ee['keys']())_0x9f73da>=this['_startingRevisionId']&&_0x1810ee['delete'](_0x9f73da);const _0x52896e=new Map();for(const _0x3d970a of _0xb01913){let _0x3a00f0=_0x10ff87['insertions'][_0x3d970a];for(const _0x267fb3 of _0x3a00f0)if(_0x267fb3['item']['is']('element','tableCell')){const _0x2ffdf0=this['_getVidAttributeName'](_0x267fb3),_0x350db5=_0x267fb3['item']['getAttribute'](_0x2ffdf0);if(_0x47cac7['has'](_0x350db5)){const _0x38ecb9=_0x267fb3['item']['parent']['parent']['getAttribute']('vid_start'),_0x26f013=_0x52896e['get'](_0x38ecb9)||new Set();_0x26f013['add'](_0x47cac7['get'](_0x350db5)['userId']),_0x52896e['set'](_0x38ecb9,_0x26f013);}}_0x3a00f0=_0x10ff87['deletions'][_0x3d970a];for(const _0x10e32e of _0x3a00f0)if(_0x10e32e['item']['is']('element','tableCell')){const _0x2eedba=this['_getVidAttributeName'](_0x10e32e),_0x88a9e8=_0x10e32e['item']['getAttribute'](_0x2eedba);if(_0x1810ee['has'](_0x88a9e8)){const _0x5cb307=_0x10e32e['item']['parent']['parent']['getAttribute']('vid_start'),_0x18b800=_0x52896e['get'](_0x5cb307)||new Set();_0x18b800['add'](_0x1810ee['get'](_0x88a9e8)['userId']),_0x52896e['set'](_0x5cb307,_0x18b800);}}for(const _0x18c5f3 of _0x52896e['keys']())(_0x47cac7['has'](_0x18c5f3)||_0x1810ee['has'](_0x18c5f3))&&_0x52896e['delete'](_0x18c5f3);}for(const _0x5275c4 of _0xb01913){const _0x5c5aaa=_0x10ff87['insertions'][_0x5275c4];let _0x494968=null,_0x139d8a=null;for(const _0x24775d of _0x5c5aaa){const _0x47352c=this['_getVidAttributeName'](_0x24775d),_0x3dcdb9=_0x24775d['item']['getAttribute'](_0x47352c),_0x5a27e5=_0x52896e['get'](_0x3dcdb9);_0x5a27e5&&'elementStart'==_0x24775d['type']&&(_0x494968=Array['from'](_0x5a27e5)[0x0],_0x139d8a=_0x24775d['item']['getAttribute']('vid_end')),_0x494968&&(_0x1810ee['set'](_0x3dcdb9,{'userId':_0x494968}),_0x47cac7['set'](_0x3dcdb9,{'userId':_0x494968})),_0x3dcdb9==_0x139d8a&&(_0x494968=null,_0x139d8a=null);}}const _0x438ca7={},_0x4d9fdc=new Set();for(const _0x2a50fe of _0xb01913){const _0x45f810=_0x2f64cf['deletions'][_0x2a50fe],_0x39b2ce=_0x2f64cf['insertions'][_0x2a50fe];for(const {userId:_0x1597fd}of this['_touchedMarkers']['values']())null!==_0x1597fd&&_0x4d9fdc['add'](_0x1597fd);for(const {userId:_0x5059d7}of this['_touchedRoots']['values']())null!==_0x5059d7&&_0x4d9fdc['add'](_0x5059d7);this['_markChanges'](_0x39b2ce,_0x10ff87['insertions'][_0x2a50fe],_0x47cac7,'insertion',_0x4d9fdc),this['_markChanges'](_0x45f810,_0x10ff87['deletions'][_0x2a50fe],_0x1810ee,'deletion',_0x4d9fdc),_0x438ca7[_0x2a50fe]={'insertions':this['_prepareViewToSave'](_0x39b2ce),'deletions':this['_prepareViewToSave'](_0x45f810),'attachChange':this['_touchedRoots']['get'](_0x2a50fe)||null,'attributesBefore':_0x35c6b3(this['_baseRootsAttributes']['get'](_0x2a50fe))||{},'attributesAfter':_0x35c6b3(this['_diffRootsAttributes']['get'](_0x2a50fe))};}return{'diffData':_0x438ca7,'authorsIds':Array['from'](_0x4d9fdc)};}['_processRootBeforeSave'](_0x4e791d){for(const [,_0x398ed2]of _0x4e791d['markers']){const _0x4ed707=_0x398ed2['start']['getAncestors']()['filter'](_0xa5641f=>'tableCell'==_0xa5641f['name']);for(const _0xade2aa of _0x4ed707)0x1==_0xade2aa['childCount']&&_0xade2aa['getChild'](0x0)['is']('element','paragraph')&&_0xade2aa['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x21d880){this['_processRootBeforeSave'](_0x21d880);const _0x460aaf=this['editor']['data']['toView'](_0x21d880,{}),_0x5f03cd=Array['from'](_0x460aaf['getChildren']())['map'](_0x3056f4=>this['_getViewJson'](_0x3056f4));return JSON['stringify'](_0x5f03cd);}['_getViewJson'](_0x4a0be3){if(_0x4a0be3['is']('$text'))return _0x4a0be3['data'];{const _0x3ef495=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x2060e8=_0x4a0be3,_0x8cd867=this['editor']['data']['htmlProcessor']['domConverter'],_0x124ac0={'type':_0x3ef495['_getTypeCharForViewElement'](_0x2060e8),'name':_0x2060e8['name'],'attributes':Array['from'](_0x2060e8['getAttributes']()),'children':Array['from'](_0x2060e8['getChildren']())['map'](_0x3ddf77=>this['_getViewJson'](_0x3ddf77))};if(_0x4a0be3['is']('uiElement')&&'$comment'!=_0x4a0be3['name']){const _0x4a133e=_0x4a0be3['render'](_0x8cd867['domDocument'],_0x8cd867);_0x124ac0['children']['push'](_0x4a133e['outerHTML']);}else{if(_0x4a0be3['is']('rawElement')){const _0xe369c0=_0x8cd867['domDocument']['createElement'](_0x2060e8['name']);_0x4a0be3['render'](_0xe369c0,_0x8cd867),_0x124ac0['children']['push'](_0xe369c0['innerHTML']);}}const _0x43f7ee=Array['from'](_0x2060e8['getCustomProperties']());_0x43f7ee['length']>0x0&&(_0x124ac0['customProperties']=_0x43f7ee);const _0x4c666c=_0x2060e8['getFillerOffset']();return null!==_0x4c666c&&(_0x124ac0['fillerOffset']=_0x4c666c),_0x124ac0;}}['_markChanges'](_0x1a27fd,_0x46d834,_0x5165b3,_0x5f47d3,_0x4f04e2){let _0x2404d4=null,_0xb143fd=null,_0x17b259=0x0;const _0xbd66e=this['editor']['model'];for(let _0xe882b0=0x0;_0xe882b0<_0x46d834['length'];_0xe882b0++){const _0x5e9338=this['_getVidAttributeName'](_0x46d834[_0xe882b0]),_0xee0309=_0x46d834[_0xe882b0]['item']['getAttribute'](_0x5e9338),_0x1b44d9=_0x5165b3['get'](_0xee0309),_0x47a01a=_0xe882b0==_0x46d834['length']-0x1;(!_0x2404d4&&_0x1b44d9&&(_0x2404d4=_0x1b44d9,_0xb143fd=_0x46d834[_0xe882b0]),_0x2404d4&&(!_0x1b44d9||_0x1b44d9['userId']!=_0x2404d4['userId']))&&(_0x4c00c2(_0x1b44d9,P(_0xb143fd,_0x1a27fd,_0xbd66e),P(_0x46d834[_0xe882b0],_0x1a27fd,_0xbd66e)),_0x2404d4=_0x1b44d9||null,_0xb143fd=_0x1b44d9?_0x46d834[_0xe882b0]:null),_0x2404d4&&_0x47a01a&&_0x4c00c2(_0x1b44d9,P(_0xb143fd,_0x1a27fd,_0xbd66e),V(_0x46d834[_0xe882b0],_0x1a27fd,_0xbd66e));}function _0x4c00c2(_0xe41d26,_0x5376b4,_0x52442a){const _0x384de9=_0x2404d4['userId'],_0x3dd0cd='revision:'+_0x5f47d3+':'+_0x384de9+':'+_0x17b259++,_0x45c1fe=_0xbd66e['createRange'](_0x5376b4,_0x52442a);_0x1a27fd['markers']['set'](_0x3dd0cd,_0x45c1fe),null!==_0x384de9&&_0x4f04e2['add'](_0x384de9);}}['_getVidAttributeName'](_0x31a41c){switch(_0x31a41c['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x2391bd,_0x29a955){_0x2391bd['baseVersion']=null;for(const _0x2faf51 in _0x2391bd){const _0x269e45=_0x2391bd[_0x2faf51];if(_0x269e45 instanceof _0x2fb88e){const _0x18994=_0x29a955['get'](_0x269e45['root']['rootName']);_0x2391bd[_0x2faf51]=this['_fixPosition'](_0x269e45,_0x18994);}if(_0x269e45 instanceof _0x2bfbe2){const _0x47b212=_0x29a955['get'](_0x269e45['root']['rootName']);_0x2391bd[_0x2faf51]=this['_fixRange'](_0x269e45,_0x47b212);}'root'===_0x2faf51&&(_0x2391bd['root']=_0x29a955['get'](_0x2391bd['root']['rootName']));}}['_fixRange'](_0x15e490,_0x2733bb){return this['editor']['model']['createRange'](this['_fixPosition'](_0x15e490['start'],_0x2733bb),this['_fixPosition'](_0x15e490['end'],_0x2733bb));}['_fixPosition'](_0x3b4e97,_0x1cb38b){return this['editor']['model']['createPositionFromPath'](_0x1cb38b,_0x3b4e97['path'],_0x3b4e97['stickiness']);}['_handleInsertOperation'](_0x136b4e){const _0x1ec3aa=this['_idsRoots']['get'](_0x136b4e['position']['root']['rootName']),_0x1170eb=this['_fixPosition'](_0x136b4e['position'],_0x1ec3aa),_0x462c04=null===_0x136b4e['_authorId']?null:_0x136b4e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x240e34=_0x1170eb['parent'],_0x3344dd=this['_revisionId'],_0x30a0c8=[];for(const _0xe27881 of _0x136b4e['nodes'])if(_0xe27881['is']('element'))_0x30a0c8['push'](this['_makeIdsRoot'](_0xe27881));else{for(let _0xa45997=0x0;_0xa45997<_0xe27881['offsetSize'];_0xa45997++)_0x30a0c8['push'](new _0x558088('$text',{'vid':this['_revisionId']++}));}const _0x2ae9c3=this['_revisionId'];for(let _0x3a81f3=_0x3344dd;_0x3a81f3<_0x2ae9c3;_0x3a81f3++)this['_touched']['set'](_0x3a81f3,{'userId':_0x462c04});_0x240e34['_insertChild'](_0x1170eb['offset'],_0x30a0c8);}['_handleMoveOperation'](_0x32c07b){(_0x32c07b=this['_cloneOperation'](_0x32c07b,this['_idsRoots']))['_execute']();const _0x4bc0c7=null===_0x32c07b['_authorId']?null:_0x32c07b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5550a6=_0x32c07b['getMovedRangeStart'](),_0x8ae2ba=_0x5550a6['parent'],_0x5f4ac9=_0x5550a6['offset'];!function _0x44e4a2(_0x3126bc,_0x53876c,_0x14f315,_0x2ec88e){for(let _0x3fce24=_0x14f315;_0x3fce24<_0x2ec88e;_0x3fce24++){const _0x2b4ad9=_0x53876c['getChild'](_0x3fce24);_0x2b4ad9['is']('element','$text')?_0x3126bc['set'](_0x2b4ad9['getAttribute']('vid'),{'userId':_0x4bc0c7}):(_0x3126bc['set'](_0x2b4ad9['getAttribute']('vid_start'),{'userId':_0x4bc0c7}),_0x44e4a2(_0x3126bc,_0x2b4ad9,0x0,_0x2b4ad9['childCount']),_0x3126bc['set'](_0x2b4ad9['getAttribute']('vid_end'),{'userId':_0x4bc0c7}));}}(this['_touched'],_0x8ae2ba,_0x5f4ac9,_0x5f4ac9+_0x32c07b['howMany']);}['_handleMergeOperation'](_0x11f653){const _0x33ab21=null===(_0x11f653=this['_cloneOperation'](_0x11f653,this['_idsRoots']))['_authorId']?null:_0x11f653['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x238f78=_0x11f653['targetPosition']['parent'],_0x447802=_0x11f653['sourcePosition']['parent'],_0x363f26=_0x238f78['getAttribute']('vid_end'),_0x152bc5=_0x447802['getAttribute']('vid_start');_0x238f78['_setAttribute']('vid_end',_0x447802['getAttribute']('vid_end')),_0x447802['_setAttribute']('vid_end',_0x363f26),this['_touched']['set'](_0x152bc5,{'userId':_0x33ab21}),this['_touched']['set'](_0x363f26,{'userId':_0x33ab21}),_0x11f653['_execute']();}['_handleSplitOperation'](_0x153471){const _0x645a70=null===(_0x153471=this['_cloneOperation'](_0x153471,this['_idsRoots']))['_authorId']?null:_0x153471['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3d62be=_0x153471['graveyardPosition'],_0x5e16ec=_0x153471['splitPosition']['parent'];_0x153471['_execute']();const _0x48f871=_0x5e16ec['getAttribute']('vid_end'),_0x3e90ed=_0x153471['insertionPosition']['nodeAfter'];if(_0x3d62be){const _0x3b1f2d=_0x3e90ed['getAttribute']('vid_end'),_0x570314=_0x5e16ec['getAttribute']('vid_end');_0x5e16ec['_setAttribute']('vid_end',_0x3b1f2d),_0x3e90ed['_setAttribute']('vid_end',_0x570314),this['_touched']['set'](_0x5e16ec['getAttribute']('vid_end'),{'userId':_0x645a70}),this['_touched']['set'](_0x3e90ed['getAttribute']('vid_start'),{'userId':_0x645a70});}else{const _0x45f6c7=this['_revisionId']++,_0x2f93bf=this['_revisionId']++;_0x5e16ec['_setAttribute']('vid_end',_0x45f6c7),_0x3e90ed['_setAttribute']('vid_start',_0x2f93bf),_0x3e90ed['_setAttribute']('vid_end',_0x48f871),this['_touched']['set'](_0x45f6c7,{'userId':_0x645a70}),this['_touched']['set'](_0x2f93bf,{'userId':_0x645a70});}}['_handleMarkerOperation'](_0x5bfcc4){if(!_0x5bfcc4['affectsData'])return;const _0x5ab147=(_0x5bfcc4=this['_cloneOperation'](_0x5bfcc4,this['_diffRoots']))['oldRange']?_0x5bfcc4['oldRange']['root']:null,_0x40c45d=_0x5bfcc4['newRange']?_0x5bfcc4['newRange']['root']:null;_0x5ab147&&this['_markers']['delete'](_0x5bfcc4['name']),_0x40c45d&&this['_markers']['set'](_0x5bfcc4['name'],_0x5bfcc4['newRange']['clone']());const _0x35f405=null===_0x5bfcc4['_authorId']?null:_0x5bfcc4['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x20b765=_0x5bfcc4['name'];if(!this['_touchedMarkers']['has'](_0x20b765))return void this['_touchedMarkers']['set'](_0x20b765,{'range':_0x5bfcc4['oldRange'],'userId':_0x35f405});const _0x60a64e=this['_touchedMarkers']['get'](_0x20b765),_0x28506f=_0x60a64e['range'],_0x32b8e7=_0x5bfcc4['newRange'];null==_0x28506f&&null==_0x32b8e7||_0x28506f&&_0x32b8e7&&_0x28506f['isEqual'](_0x32b8e7)?this['_touchedMarkers']['delete'](_0x5bfcc4['name']):_0x60a64e['userId']=_0x35f405;}['_handleRootOperation'](_0x2d6063,_0x415a63){this['_diffRoots']['has'](_0x2d6063['rootName'])?this['_diffRoots']['get'](_0x2d6063['rootName'])['_isAttached']=_0x2d6063['isAdd']:(this['_diffRoots']['set'](_0x2d6063['rootName'],N(_0x2d6063['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x2d6063['rootName'],{}),_0x415a63&&this['_idsRoots']['set'](_0x2d6063['rootName'],N(_0x2d6063['rootName'],!0x0)));const _0x162f16=null===_0x2d6063['_authorId']?null:_0x2d6063['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x129c38=this['_touchedRoots']['get'](_0x2d6063['rootName']);_0x129c38&&_0x129c38['userId']===_0x162f16?this['_touchedRoots']['delete'](_0x2d6063['rootName']):this['_touchedRoots']['set'](_0x2d6063['rootName'],{'userId':_0x162f16,'isAttached':_0x2d6063['isAdd']});}['_handleRootAttributeOperation'](_0x1072a6){const _0x1389ae=this['_diffRootsAttributes']['get'](_0x1072a6['root']['rootName']);null===_0x1072a6['newValue']?delete _0x1389ae[_0x1072a6['key']]:_0x1389ae[_0x1072a6['key']]=_0x1072a6['newValue'];}}function x(_0x1a6d19){const _0x2e902=N(_0x1a6d19['rootName'],_0x1a6d19['isAttached']());for(const _0x286363 of _0x1a6d19['getChildren']()){const _0x2406cb=_0x286363['_clone'](!0x0);_0x2e902['_appendChild'](_0x2406cb);}return _0x2e902;}function N(_0x48dd3b,_0x54327f=!0x0){const _0x1e0138=new _0x4e6165();return _0x1e0138['rootName']=_0x48dd3b,_0x1e0138['_isAttached']=_0x54327f,_0x1e0138['isAttached']=()=>_0x1e0138['_isAttached'],_0x1e0138;}function P(_0x1a7adc,_0x157011,_0x116018){const _0x4a2c81='elementEnd'==_0x1a7adc['type']?_0x116018['createPositionAt'](_0x1a7adc['item'],'end'):_0x116018['createPositionBefore'](_0x1a7adc['item']);return _0x116018['createPositionFromPath'](_0x157011,_0x4a2c81['path'],_0x4a2c81['stickiness']);}function V(_0xbadbb1,_0x2a9d72,_0xf3c63e){const _0x47c656='elementStart'==_0xbadbb1['type']?_0xf3c63e['createPositionAt'](_0xbadbb1['item'],0x0):_0xf3c63e['createPositionAfter'](_0xbadbb1['item']);return _0xf3c63e['createPositionFromPath'](_0x2a9d72,_0x47c656['path'],_0x47c656['stickiness']);}class he extends/* #__PURE__ -- @preserve */
|
|
25
|
-
|
|
26
|
-
_0x31f508(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x5752ce){super(),this['id']=_0x5752ce['id']||_0x33e273(),this['author']=_0x5752ce['author'],this['type']=_0x5752ce['type'],this['data']=_0x5752ce['data']||{},this['rootName']=_0x5752ce['rootName'],this['set']('createdAt',_0x5752ce['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class J{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x4293a5,_0x35d989){this['newRevisionId']=_0x4293a5,this['oldRevisionId']=_0x35d989,this['changes']=new _0x21221c();}['_setChanges'](_0x3b8175){for(const _0x7aaba8 of _0x3b8175)this['changes']['add'](_0x7aaba8);}}class l extends _0x7a0156{['repository'];['adapter']=null;['_utils'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x12ddb9,_0x58520b,S,$];}constructor(_0xf9841b){super(_0xf9841b),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x122524,_0x52bf88,_0x3d36e3)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x19ca6b=>{for(const _0x5d0506 of this['editor']['editing']['view']['document']['roots'])_0x3d36e3?_0x19ca6b['removeClass']('ck-editor__editable__overlay',_0x5d0506):_0x19ca6b['addClass']('ck-editor__editable__overlay',_0x5d0506);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x4f12bd=>null!==_0x4f12bd),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x53bf9f,_0x4eb1ed,_0x2ba058)=>_0x53bf9f&&_0x2ba058?_0x4eb1ed['changes']['getIndex'](_0x2ba058):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x2fc15f,_0x14c786)=>_0x2fc15f?_0x14c786['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x58520b);}['init'](){const _0x594ef7=this['editor'],_0x37fe95=new ot(_0x594ef7,{'direction':'backward'}),_0x513a9c=new ot(_0x594ef7,{'direction':'forward'});(_0x594ef7['commands']['add']('showPreviousChange',_0x37fe95),_0x594ef7['commands']['add']('showNextChange',_0x513a9c),_0x594ef7['commands']['add']('restoreRevision',new nt(_0x594ef7)),this['on']('change:numberOfChanges',()=>{_0x37fe95['refresh'](),_0x513a9c['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x594ef7['enableReadOnlyMode']('revision-viewer'),_0x594ef7['plugins']['has']('WidgetToolbarRepository'))&&_0x594ef7['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x5cbfa1){return await this['_utils']['loadRevisionData'](_0x5cbfa1,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x5cbfa1);}async['getRevisionRootsAttributes'](_0x25ca48){return await this['_utils']['loadRevisionData'](_0x25ca48,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x25ca48);}async['compare'](_0x13d81f,_0x2738ad,_0x864dda=!0x1){if(!this['isEnabled'])return;const _0x4e0b0d=this['diff'],_0x2116f2=this['repository'],_0x32c901='string'==typeof _0x13d81f?_0x2116f2['getRevision'](_0x13d81f):_0x13d81f,_0x2951d7='string'==typeof _0x2738ad?_0x2116f2['getRevision'](_0x2738ad):_0x2738ad,_0x3ccbe0=_0x32c901['id'],_0x27b0f8=_0x2951d7?_0x2951d7['id']:null;if(!_0x864dda&&this['diff']&&this['diff']['newRevisionId']===_0x3ccbe0&&this['diff']['oldRevisionId']===_0x27b0f8)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x3ccbe0,_0x27b0f8);const _0xab854b=this['_getRevisionsRange'](_0x32c901,_0x2951d7,!0x0)['map'](_0xc15f57=>this['_utils']['loadRevisionData'](_0xc15f57,this['adapter']));return _0xab854b['push'](new Promise(_0x240633=>{setTimeout(_0x240633,0x14);})),Promise['all'](_0xab854b)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x216105=this['_getDiff'](_0x3ccbe0,_0x27b0f8);for(const _0x149b48 of _0x216105['changes'])this['_changeIdToChange']['set'](_0x149b48['id'],_0x149b48);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x23b9db=>{for(const _0x2fae86 of this['editor']['model']['document']['getRootNames']())_0x23b9db['detachRoot'](_0x2fae86);for(const _0x35b66a of Object['keys'](_0x216105['model'])){const _0x2864d7=_0x23b9db['addRoot'](_0x35b66a);for(const _0x48fb66 of Object['keys'](_0x216105['attributes'][_0x35b66a]))_0x23b9db['setAttribute'](_0x48fb66,_0x216105['attributes'][_0x35b66a][_0x48fb66],_0x2864d7);_0x23b9db['insert'](_0x216105['model'][_0x35b66a],_0x2864d7,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x216105['changes'])),this['isReady']=!0x0;})['catch'](_0x4a5265=>{console['error'](_0x4a5265),this['_cleanUp'](),_0x4e0b0d&&(this['diff']=_0x4e0b0d),this['isReady']=!0x0;});}['addRevisionData'](_0x3e9d6b,_0x1fd0d6){const _0xa545e5=this['repository']['createRevision'](_0x3e9d6b);return _0xa545e5['on']('_update',(_0x3c741a,_0x57d448,_0x40197e)=>_0x1fd0d6(_0x57d448,_0x40197e,_0xa545e5)),this['repository']['addRevision'](_0xa545e5),_0xa545e5;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x2f6744=>{for(const _0x5cfcf8 of this['editor']['model']['document']['getRootNames']())_0x2f6744['detachRoot'](_0x5cfcf8);});}['_sortAndFilterDiffChanges'](_0x212dc4){const _0x2bff0d=[],_0xe9e38d=new Map();for(const _0x4bfa79 of this['editor']['model']['document']['getRootNames']()){const _0x3e7681=this['editor']['editing']['view']['getDomRoot'](_0x4bfa79);if(!_0x3e7681)continue;const _0x415244=_0x3e7681['getClientRects']()['item'](0x0);_0x415244&&(_0x2bff0d['push'](_0x4bfa79),_0xe9e38d['set'](_0x4bfa79,_0x415244));}return _0x2bff0d['sort']((_0x25de09,_0x1e5930)=>{const _0x3053df=_0xe9e38d['get'](_0x25de09),_0x43745a=_0xe9e38d['get'](_0x1e5930);return _0x3053df['y']-_0x43745a['y']||_0x3053df['x']-_0x43745a['x'];}),(_0x212dc4=_0x212dc4['filter'](_0x3c9ca2=>_0x2bff0d['includes'](_0x3c9ca2['rootName'])))['sort']((_0x5e3ace,_0x3f0718)=>_0x2bff0d['indexOf'](_0x5e3ace['rootName'])-_0x2bff0d['indexOf'](_0x3f0718['rootName'])),_0x212dc4;}['_makeTape'](_0x3b1e85){const _0x906670=Array['from'](_0x3b1e85['markers'])['filter'](([_0x25a98e,_0x3485da])=>_0x25a98e['startsWith']('revision:')&&!_0x3485da['isCollapsed']),_0x154592=Array['from'](this['editor']['model']['createRangeIn'](_0x3b1e85)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x906670['length'])for(const _0x34a754 of _0x154592){const [_0x57fad7,_0x21b9e8]=_0x906670[0x0],[,_0x117bef,_0xa732a1]=_0x57fad7['split'](':');if(_0x21b9e8['end']['isEqual'](_0x34a754['nextPosition'])&&_0x906670['shift'](),(_0x34a754['previousPosition']['isEqual'](_0x21b9e8['start'])||_0x34a754['previousPosition']['isAfter'](_0x21b9e8['start']))&&('insertion'==_0x117bef?_0x34a754['isAdded']={'userId':_0xa732a1}:'deletion'==_0x117bef&&(_0x34a754['isRemoved']={'userId':_0xa732a1})),0x0==_0x906670['length'])break;}return _0x154592;}['_refreshStartEndIndex'](_0x3fcc84){const _0x1494b3=new Map();for(let _0x99cf6c=0x0;_0x99cf6c<_0x3fcc84['length'];_0x99cf6c++)'text'===_0x3fcc84[_0x99cf6c]['type']?(_0x3fcc84[_0x99cf6c]['item']['startIndex']=_0x99cf6c,_0x3fcc84[_0x99cf6c]['item']['endIndex']=_0x99cf6c):('elementStart'===_0x3fcc84[_0x99cf6c]['type']?_0x3fcc84[_0x99cf6c]['item']['startIndex']=_0x99cf6c:'elementEnd'===_0x3fcc84[_0x99cf6c]['type']&&(_0x3fcc84[_0x99cf6c]['item']['endIndex']=_0x99cf6c),_0x1494b3['set'](_0x3fcc84[_0x99cf6c]['id'],_0x99cf6c));for(const _0xf895dd of _0x1494b3['values']())'elementStart'===_0x3fcc84[_0xf895dd]['type']?_0x3fcc84[_0xf895dd]['item']['endIndex']=_0x1494b3['get'](_0x3fcc84[_0xf895dd]['pairId']):'elementEnd'===_0x3fcc84[_0xf895dd]['type']&&(_0x3fcc84[_0xf895dd]['item']['startIndex']=_0x1494b3['get'](_0x3fcc84[_0xf895dd]['pairId']));}['_processTape'](_0x1cfae3){for(let _0x21c22b=0x0;_0x21c22b<_0x1cfae3['length'];_0x21c22b++){if('elementStart'===_0x1cfae3[_0x21c22b]['type'])_0x1cfae3[_0x21c22b]['item']['startIndex']=_0x21c22b;else{if('elementEnd'===_0x1cfae3[_0x21c22b]['type']){_0x1cfae3[_0x21c22b]['item']['endIndex']=_0x21c22b;const _0x100757=_0x1cfae3[_0x21c22b]['item']['startIndex'];_0x1cfae3[_0x100757]['pairId']=_0x1cfae3[_0x21c22b]['id'],_0x1cfae3[_0x21c22b]['pairId']=_0x1cfae3[_0x100757]['id'];}else _0x1cfae3[_0x21c22b]['item']['startIndex']=_0x21c22b,_0x1cfae3[_0x21c22b]['item']['endIndex']=_0x21c22b,_0x1cfae3[_0x21c22b]['pairId']=null;}_0x1cfae3[_0x21c22b]['markersStart']||(_0x1cfae3[_0x21c22b]['markersStart']=[],_0x1cfae3[_0x21c22b]['markersEnd']=[]);}}['_markInsertions'](_0x23f312,_0x13bd0b){const _0x3cdfe6=_0x23f312['filter'](_0x74884=>!_0x74884['isAdded']);for(let _0x411095=0x0;_0x411095<_0x13bd0b['length'];_0x411095++)_0x13bd0b[_0x411095]['isAdded']&&(_0x3cdfe6[_0x411095]['isAdded']=_0x13bd0b[_0x411095]['isAdded']);}['_getDiff'](_0x1ca18e,_0x4cf7b2=null){const _0x403871=this['repository']['getRevision'](_0x1ca18e),_0x18c546=_0x4cf7b2?this['repository']['getRevision'](_0x4cf7b2):null,_0x2bb055=this['_getRevisionsRange'](_0x403871,_0x18c546),_0x11bb55=_0x2bb055[_0x2bb055['length']-0x1],_0x38fd22=new Map(),_0x14e32f={'model':{},'attributes':{},'changes':[]},_0x2cb2bf=new Set(),_0x260b71=new Map();for(let _0x3a7371=_0x2bb055['length']-0x1;_0x3a7371>=0x0;_0x3a7371--){const _0x371223=_0x2bb055[_0x3a7371];for(const _0x16c27d of Object['keys'](_0x371223['diffData']))if(_0x371223['diffData'][_0x16c27d]['attachChange']){const _0x56a724=_0x371223['diffData'][_0x16c27d]['attachChange'];_0x56a724['isAttached']?(_0x2cb2bf['add'](_0x16c27d),_0x260b71['has'](_0x16c27d)&&_0x260b71['get'](_0x16c27d)['userId']==_0x56a724['userId']?_0x260b71['delete'](_0x16c27d):_0x260b71['set'](_0x16c27d,_0x56a724)):_0x260b71['has'](_0x16c27d)?(_0x2cb2bf['delete'](_0x16c27d),_0x260b71['delete'](_0x16c27d)):(_0x2cb2bf['add'](_0x16c27d),_0x260b71['set'](_0x16c27d,_0x56a724));}else _0x2cb2bf['add'](_0x16c27d);}for(const _0x6540cb of _0x2cb2bf){const _0x453ff1=_0x260b71['has'](_0x6540cb)&&!_0x260b71['get'](_0x6540cb)['isAttached'];let _0x372c88=_0x453ff1?_0x2bb055['length']-0x1:0x0;const _0x5dbfe2=_0x453ff1?-0x1:0x1;for(;_0x2bb055[_0x372c88];){const _0x366df0=_0x2bb055[_0x372c88];if(_0x366df0['diffData'][_0x6540cb]){const _0x517f65=_0x453ff1?_0x366df0['diffData'][_0x6540cb]['attributesBefore']:_0x366df0['diffData'][_0x6540cb]['attributesAfter'];_0x14e32f['attributes'][_0x6540cb]=_0x517f65?_0x35c6b3(_0x517f65):{};break;}_0x372c88+=_0x5dbfe2;}}for(const _0x47bd5b of _0x2bb055){_0x47bd5b['model']={};for(const _0x25535d of _0x47bd5b['authors'])_0x38fd22['set'](_0x25535d['id'],_0x25535d);for(const _0x37cac8 of _0x2cb2bf){const _0x5d2d55=_0x47bd5b['diffData'][_0x37cac8]?_0x47bd5b['diffData'][_0x37cac8]['insertions']:'[]',_0x391380=_0x47bd5b['diffData'][_0x37cac8]?_0x47bd5b['diffData'][_0x37cac8]['deletions']:'[]';_0x47bd5b['model'][_0x37cac8]={'insertions':this['_utils']['_makeModelFromViewString'](_0x5d2d55),'deletions':this['_utils']['_makeModelFromViewString'](_0x391380)};}}for(const _0x3e341a of _0x2cb2bf){let _0x2e6fe0=null,_0x589583=0x0;const _0x40dd2d=new Map(Array['from'](_0x403871['model'][_0x3e341a]['insertions']['markers'])['filter'](([_0xa757cf])=>!_0xa757cf['startsWith']('revision:')));let _0x2595b1=0x0;for(const _0x549f77 of _0x2bb055){const _0x598c21=this['_makeTape'](_0x549f77['model'][_0x3e341a]['insertions']);_0x549f77==_0x403871?(_0x2e6fe0=_0x598c21,_0x589583=_0x2e6fe0['length'],_0x2e6fe0['forEach'](_0x2c9813=>{_0x2c9813['id']=_0x2595b1++;}),this['_processTape'](_0x2e6fe0)):this['_markInsertions'](_0x2e6fe0,_0x598c21);const _0x302166=_0x2e6fe0['filter'](_0x1c4cba=>!_0x1c4cba['isAdded'])['map'](_0x41b031=>_0x41b031['id']);let _0xa09986=0x0;const _0x105da0=this['_makeTape'](_0x549f77['model'][_0x3e341a]['deletions']);_0x105da0['forEach'](_0x5a870b=>{_0x5a870b['isRemoved']?_0x5a870b['id']=_0x589583++:_0x5a870b['id']=_0x302166[_0xa09986++];}),this['_processTape'](_0x105da0),this['_setDistance'](_0x2e6fe0,'isAdded'),this['_setDistance'](_0x105da0,'isRemoved'),_0x549f77==_0x403871&&this['_markMarkers'](_0x2e6fe0,_0x40dd2d),_0x2e6fe0=this['_joinTapes'](_0x2e6fe0,_0x105da0),this['_refreshStartEndIndex'](_0x2e6fe0),this['_setDistance'](_0x2e6fe0,'isRemoved');}_0x2e6fe0=_0x2e6fe0['filter'](_0x1ed15d=>!(_0x1ed15d['isAdded']&&_0x1ed15d['isRemoved']));const _0x153920=new Map(_0x11bb55['model'][_0x3e341a]['deletions']['markers']),_0x28e44c=new Set(_0x40dd2d['keys']());for(const _0x1b6ec0 of _0x153920['keys']())_0x28e44c['delete'](_0x1b6ec0);this['_markSuggestions'](_0x2e6fe0,_0x28e44c),this['_fixObsoleteTags'](_0x2e6fe0),_0x2e6fe0=this['_removeMissingPairs'](_0x2e6fe0),_0x2e6fe0=this['_markMismatchedRemovedTags'](_0x2e6fe0),_0x2e6fe0=this['_removeUnsupportedChanges'](_0x2e6fe0);const {root:_0x3e3ba3,changes:_0xe27b42}=this['_makeModelFromTape'](_0x2e6fe0,_0x38fd22,_0x3e341a);_0x14e32f['model'][_0x3e341a]=_0x3e3ba3;const _0x6355b7=_0x260b71['get'](_0x3e341a);if(_0x6355b7){const _0xf06830=_0x38fd22['get'](_0x6355b7['userId']),_0x5312f9=new G({'author':_0xf06830,'type':_0x6355b7['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x3e341a});_0xe27b42['unshift'](_0x5312f9),_0x14e32f['attributes'][_0x3e341a]['revisionHistoryAttachChange']=_0x5312f9['id'];}_0x14e32f['changes']=_0x14e32f['changes']['concat'](_0xe27b42);}return _0x14e32f;}['_markMarkers'](_0x59becb,_0x1a5114){for(let _0x5056dc=0x0;_0x5056dc<_0x59becb['length'];_0x5056dc++)for(const [_0x1a4232,_0x34f1f0]of _0x1a5114)!_0x34f1f0['isCollapsed']&&_0x34f1f0['start']['isEqual'](_0x59becb[_0x5056dc]['previousPosition'])&&_0x59becb[_0x5056dc]['markersStart']['push'](_0x1a4232),_0x34f1f0['end']['isEqual'](_0x59becb[_0x5056dc]['nextPosition'])&&_0x59becb[_0x5056dc]['markersEnd']['push'](_0x1a4232);}['_joinTapes'](_0x4b926b,_0x1bd1a9){let _0x3a22a9=[],_0x51dc73=0x0,_0x3c7092=0x0;for(;_0x51dc73<_0x4b926b['length']||_0x3c7092<_0x1bd1a9['length'];){const _0xee60c4=_0x4b926b[_0x51dc73]||{},_0x290158=_0x1bd1a9[_0x3c7092]||{};if(_0xee60c4['id']==_0x290158['id'])_0x51dc73++,_0x3c7092++,_0x3a22a9['push'](_0xee60c4);else{if(_0x290158['isRemoved']&&_0xee60c4['isAdded']){const {commonTape:_0xe2967b,iEnd:_0x1cb9c7,jEnd:_0x3823cf}=this['_threeWayMerge'](_0x4b926b,_0x51dc73,_0x1bd1a9,_0x3c7092);_0x3a22a9=_0x3a22a9['concat'](_0xe2967b),_0x51dc73=_0x1cb9c7,_0x3c7092=_0x3823cf;}else _0x290158['isRemoved']?(_0x3c7092++,_0x3a22a9['push'](_0x290158)):(_0x51dc73++,_0x3a22a9['push'](_0xee60c4));}}return _0x3a22a9;}['_markSuggestions'](_0x254503,_0x45e20b){const _0x36a31c=[];for(let _0x3f10e7=0x0;_0x3f10e7<_0x254503['length'];_0x3f10e7++){for(let _0xc8366e=0x0;_0xc8366e<_0x254503[_0x3f10e7]['markersStart']['length'];_0xc8366e++){const _0x3d0147=_0x254503[_0x3f10e7]['markersStart'][_0xc8366e];if(!_0x45e20b['has'](_0x3d0147))continue;const {group:_0x26882f,type:_0x2ac7a1,authorId:_0x31fe99}=_0x4242ea(_0x3d0147);'revision-suggestion'!=_0x26882f||'insertion'!=_0x2ac7a1&&'deletion'!=_0x2ac7a1||(_0x36a31c['unshift']({'type':_0x2ac7a1,'name':_0x3d0147,'userId':_0x31fe99}),_0x254503[_0x3f10e7]['markersStart']['splice'](_0xc8366e,0x1),_0xc8366e--);}_0x23e2c5(_0x254503[_0x3f10e7]);for(let _0x28167e=0x0;_0x28167e<_0x254503[_0x3f10e7]['markersEnd']['length'];_0x28167e++){const _0x4987a5=_0x254503[_0x3f10e7]['markersEnd'][_0x28167e];if(!_0x45e20b['has'](_0x4987a5))continue;const {group:_0x2f10ec,type:_0x985935}=_0x4242ea(_0x4987a5);if('revision-suggestion'!=_0x2f10ec||'insertion'!=_0x985935&&'deletion'!=_0x985935)continue;_0x254503[_0x3f10e7]['markersEnd']['splice'](_0x28167e,0x1),_0x28167e--;const _0x5306ec=_0x36a31c['findIndex'](_0x1f304b=>_0x1f304b['name']==_0x4987a5);_0x5306ec>-0x1&&_0x36a31c['splice'](_0x5306ec,0x1);}}function _0x4242ea(_0x1ba324){const _0x1b6094=_0x1ba324['split'](':');return{'group':_0x1b6094[0x0],'type':_0x1b6094[0x1],'subType':_0x1b6094['length']>=0x5?_0x1b6094[0x2]:null,'id':_0x1b6094['length']<0x5?_0x1b6094[0x2]:_0x1b6094[0x3],'authorId':_0x1b6094['length']<0x5?_0x1b6094[0x3]:_0x1b6094[0x4],'markerCount':0x6==_0x1b6094['length']?_0x1b6094[0x5]:null};}function _0x23e2c5(_0x56c756){for(let _0x147b37=0x0;_0x147b37<_0x36a31c['length'];_0x147b37++){if(_0x56c756['isAdded']&&'insertion'==_0x36a31c[_0x147b37]['type']&&_0x56c756['isAdded']['userId']==_0x36a31c[_0x147b37]['userId'])return _0x56c756['isAddSuggestion']=_0x36a31c[_0x147b37],void delete _0x56c756['isAdded'];if(!_0x56c756['isAdded']&&!_0x56c756['isRemoved']&&'deletion'==_0x36a31c[_0x147b37]['type'])return void(_0x56c756['isRemoveSuggestion']=_0x36a31c[_0x147b37]);}}}['_setDistance'](_0x8bc92,_0x1194a3){let _0x5ee2bf=0x0,_0x5db0ab=!0x1;const _0x2efce4=new Map();for(const _0x3c1990 of _0x8bc92)_0x3c1990[_0x1194a3]?_0x5db0ab&&(_0x5ee2bf++,_0x5db0ab=!0x1):(_0x5ee2bf++,_0x5db0ab=!0x0),_0x2efce4['set'](_0x3c1990['id'],_0x5ee2bf);for(let _0x56dafb=0x0;_0x56dafb<_0x8bc92['length'];_0x56dafb++){if('isRemoved'==_0x1194a3&&_0x8bc92[_0x56dafb]['isAdded']||'isAdded'==_0x1194a3&&_0x8bc92[_0x56dafb]['isRemoved'])continue;if('text'==_0x8bc92[_0x56dafb]['type']){_0x8bc92[_0x56dafb]['distance']=0x0;continue;}const _0x3c38b4=_0x2efce4['get'](_0x8bc92[_0x56dafb]['pairId']),_0x86c8d5=_0x2efce4['get'](_0x8bc92[_0x56dafb]['id']);_0x8bc92[_0x56dafb]['distance']=_0x3c38b4-_0x86c8d5;}}['_getRevisionsRange'](_0x3ab56b,_0x41a06d,_0x10e0ef=!0x1){const _0xb9946b=[];let _0x2fd908=this['repository']['getIndex'](_0x3ab56b),_0x18110b=this['repository']['getIndex'](_0x41a06d);for(-0x1==_0x18110b&&(_0x18110b=this['repository']['_revisions']['length'],_0x10e0ef=!0x1);_0x2fd908<_0x18110b;)_0xb9946b['push'](this['repository']['getRevision'](_0x2fd908)),_0x2fd908++;return _0x10e0ef&&_0xb9946b['push'](this['repository']['getRevision'](_0x2fd908)),_0xb9946b;}['_threeWayMerge'](_0x40749a,_0x1262a3,_0xa7cba1,_0x441922){const _0x5e98a6=this['editor']['model']['schema'];let _0x40cd0d=_0x1262a3;for(;_0x40749a[_0x40cd0d]&&_0x40749a[_0x40cd0d]['isAdded'];)_0x40cd0d++;let _0x285c78=_0x441922;for(;_0xa7cba1[_0x285c78]&&_0xa7cba1[_0x285c78]['isRemoved'];)_0x285c78++;_0x2ba15d(_0x40749a,_0x1262a3,_0x40cd0d),_0x2ba15d(_0xa7cba1,_0x441922,_0x285c78);const _0x142a08=_0xa7cba1['slice'](_0x441922,_0x285c78)['concat'](_0x40749a['slice'](_0x1262a3,_0x40cd0d));return _0x142a08['sort']((_0x10c1cf,_0x123f34)=>_0x10c1cf['side']!=_0x123f34['side']?_0x10c1cf['side']-_0x123f34['side']:_0x10c1cf['level']!=_0x123f34['level']?_0x10c1cf['level']-_0x123f34['level']:_0x10c1cf['distance']!=_0x123f34['distance']?_0x123f34['distance']-_0x10c1cf['distance']:!!_0x10c1cf['isAdded']!=!!_0x123f34['isAdded']?-0x1==_0x10c1cf['side']||0x0==_0x10c1cf['side']?_0x10c1cf['isAdded']?-0x1:0x1:_0x10c1cf['isAdded']?0x1:-0x1:_0x10c1cf['index']-_0x123f34['index']),{'commonTape':_0x142a08,'iEnd':_0x40cd0d,'jEnd':_0x285c78};function _0x2ba15d(_0x369027,_0x4e1857,_0x2e2829){let _0x40d948=-0x1,_0x1e1846=Number['POSITIVE_INFINITY'],_0x9dfe2b=!0x0;for(let _0x14c4f0=_0x4e1857;_0x14c4f0<_0x2e2829;_0x14c4f0++)if(_0x5e98a6['isInline'](_0x369027[_0x14c4f0]['item'])||(_0x9dfe2b=!0x1),_0x369027[_0x14c4f0]['item']['startIndex']<_0x4e1857&&(_0x40d948=_0x14c4f0),_0x369027[_0x14c4f0]['item']['endIndex']>=_0x2e2829){_0x1e1846=_0x14c4f0;break;}_0x9dfe2b&&(_0x40d948=_0x2e2829-0x1);for(let _0x5e38a1=_0x4e1857;_0x5e38a1<_0x2e2829;_0x5e38a1++)_0x369027[_0x5e38a1]['side']=_0x5e38a1<=_0x40d948?-0x1:_0x5e38a1<_0x1e1846?0x0:0x1,_0x369027[_0x5e38a1]['index']=_0x5e38a1;let _0x3e9289=0x0;for(let _0x46d54b=_0x4e1857;_0x46d54b<=_0x40d948;_0x46d54b++)0x0==_0x369027[_0x46d54b]['distance']?_0x369027[_0x46d54b]['level']=_0x3e9289:(_0x3e9289++,_0x369027[_0x46d54b]['level']=_0x3e9289,_0x3e9289++);for(let _0x4d8c7a=_0x4e1857;_0x4d8c7a<_0x2e2829;_0x4d8c7a++)0x0==_0x369027[_0x4d8c7a]['side']&&(_0x369027[_0x4d8c7a]['level']=_0x3e9289);_0x3e9289=0x0;for(let _0x235ea9=_0x2e2829-0x1;_0x235ea9>=_0x1e1846;_0x235ea9--)0x0==_0x369027[_0x235ea9]['distance']?_0x369027[_0x235ea9]['level']=_0x3e9289:(_0x3e9289--,_0x369027[_0x235ea9]['level']=_0x3e9289,_0x3e9289--);}}['_fixObsoleteTags'](_0x59f159){const _0x34790e=new Map(),_0x3134ac=this['editor']['model']['schema'];for(let _0x5aabf4=0x1;_0x5aabf4<_0x59f159['length'];_0x5aabf4++){let _0x4bf6c5,_0x71a473,_0x10c9c4;const _0x1ec680=_0x59f159[_0x5aabf4],_0x316cab=_0x59f159[_0x5aabf4-0x1];if('text'==_0x1ec680['type'])continue;if(_0x1ec680['type']!=_0x316cab['type'])continue;if(!_0x3134ac['isBlock'](_0x316cab['item'])||_0x3134ac['isLimit'](_0x316cab['item']))continue;if(!_0x3134ac['isBlock'](_0x1ec680['item'])||_0x3134ac['isLimit'](_0x1ec680['item']))continue;if((_0x59f159[_0x5aabf4]['isAdded']||_0x59f159[_0x5aabf4]['isAddSuggestion'])&&_0x59f159[_0x5aabf4-0x1]['isRemoved'])_0x4bf6c5=_0x59f159[_0x5aabf4],_0x71a473=_0x59f159[_0x5aabf4-0x1],_0x10c9c4=_0x5aabf4-0x1;else{if(!_0x59f159[_0x5aabf4]['isRemoved']||!_0x59f159[_0x5aabf4-0x1]['isAdded']&&!_0x59f159[_0x5aabf4-0x1]['isAddSuggestion'])continue;_0x4bf6c5=_0x59f159[_0x5aabf4-0x1],_0x71a473=_0x59f159[_0x5aabf4],_0x10c9c4=_0x5aabf4;}const _0x55e50a=_0x4bf6c5['level']==_0x71a473['level'],_0x408ba2=Math['abs'](_0x4bf6c5['level'])<Math['abs'](_0x71a473['level'])&&0x0==_0x71a473['distance'];(_0x55e50a||_0x408ba2)&&(_0x34790e['set'](_0x71a473['id'],_0x4bf6c5['id']),_0x59f159['splice'](_0x10c9c4,0x1),_0x5aabf4--,_0x4bf6c5['isAdded']=!0x1);}for(let _0x3df553=0x0;_0x3df553<_0x59f159['length'];_0x3df553++)_0x34790e['has'](_0x59f159[_0x3df553]['pairId'])&&(_0x59f159[_0x3df553]['pairId']=_0x34790e['get'](_0x59f159[_0x3df553]['pairId']));}['_removeMissingPairs'](_0x343ac4){const _0x2b5f31=new Set(_0x343ac4['map'](_0x502ae8=>_0x502ae8['id']));for(let _0x56f520=0x0;_0x56f520<_0x343ac4['length'];_0x56f520++)_0x2b5f31['has'](_0x343ac4[_0x56f520]['pairId'])||0x0==_0x343ac4[_0x56f520]['distance']||(_0x343ac4[_0x56f520]['isIncorrect']=!0x0);return _0x343ac4['filter'](_0x30d4dd=>!_0x30d4dd['isIncorrect']);}['_markMismatchedRemovedTags'](_0x32d736){const _0x36462c=new Set();for(let _0x2b20a4=0x0;_0x2b20a4<_0x32d736['length'];_0x2b20a4++){if(_0x36462c['has'](_0x32d736[_0x2b20a4]['id'])&&_0x32d736[_0x2b20a4]['isRemoved']&&(_0x32d736[_0x2b20a4]['isIncorrect']=!0x0),_0x32d736[_0x2b20a4]['isIncorrect'])continue;if(0x0==_0x32d736[_0x2b20a4]['distance'])continue;if('elementStart'!=_0x32d736[_0x2b20a4]['type'])continue;if(null==_0x32d736[_0x2b20a4]['pairId'])continue;let _0x4aa38b=_0x2b20a4+0x1,_0x7ae692=0x0;for(;_0x32d736[_0x4aa38b]['id']!=_0x32d736[_0x2b20a4]['pairId'];)'elementStart'==_0x32d736[_0x4aa38b]['type']?_0x7ae692++:'elementEnd'==_0x32d736[_0x4aa38b]['type']&&_0x7ae692--,_0x4aa38b++;if(0x0!=_0x7ae692){if(_0x32d736[_0x2b20a4]['isRemoved'])_0x32d736[_0x2b20a4]['isIncorrect']=!0x0;else{for(;_0x4aa38b!=_0x2b20a4;)_0x32d736[_0x4aa38b]['isRemoved']&&0x0!=_0x32d736[_0x4aa38b]['distance']&&(_0x32d736[_0x4aa38b]['isIncorrect']=!0x0,_0x36462c['add'](_0x32d736[_0x4aa38b]['pairId'])),_0x4aa38b--;}}}return _0x32d736['filter'](_0x2c20b9=>!_0x2c20b9['isIncorrect']);}['_removeUnsupportedChanges'](_0x2f093f){const _0x3ea4ae=this['editor']['model']['schema'];for(let _0x4c6b63=0x0;_0x4c6b63<_0x2f093f['length'];_0x4c6b63++){if(!(_0x2f093f[_0x4c6b63]['isAdded']||_0x2f093f[_0x4c6b63]['isAddSuggestion']||_0x2f093f[_0x4c6b63]['isRemoved']||_0x2f093f[_0x4c6b63]['isRemoveSuggestion']))continue;if(0x0==_0x2f093f[_0x4c6b63]['distance'])continue;const _0x1ced80=_0x2f093f[_0x4c6b63]['item'];_0x3ea4ae['isBlock'](_0x1ced80)||_0x3ea4ae['isLimit'](_0x1ced80)||(_0x2f093f[_0x4c6b63]['isAdded']&&delete _0x2f093f[_0x4c6b63]['isAdded'],_0x2f093f[_0x4c6b63]['isAddSuggestion']&&delete _0x2f093f[_0x4c6b63]['isAddSuggestion'],_0x2f093f[_0x4c6b63]['isRemoveSuggestion']&&delete _0x2f093f[_0x4c6b63]['isRemoveSuggestion'],_0x2f093f[_0x4c6b63]['isRemoved']&&(_0x2f093f[_0x4c6b63]['isIncorrect']=!0x0));}return _0x2f093f['filter'](_0x551f85=>!_0x551f85['isIncorrect']);}['_makeModelFromTape'](_0x4d73ff,_0x3e3ca,_0x368574){const _0x1cd069=new _0x4e6165(),_0x66f333=[],_0x17f6b9=new Map(),_0x4ca1ae=this['editor']['model'],_0x71bd76=_0x4ca1ae['schema'],_0x1b2f40=[_0x1cd069],_0x3f46af={},_0x2b77e6={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x364627=null;const _0xb4c0ad=[0x0];for(let _0x19ed26=0x0;_0x19ed26<_0x4d73ff['length'];_0x19ed26++)if('elementStart'===_0x4d73ff[_0x19ed26]['type']){_0x4d73ff[_0x19ed26]['previousPosition']=_0x4ca1ae['createPositionFromPath'](_0x1cd069,_0xb4c0ad);const _0x3650e2=new _0x558088(_0x4d73ff[_0x19ed26]['item']['name'],_0x4d73ff[_0x19ed26]['item']['getAttributes']());_0x1b2f40[0x0]['_appendChild'](_0x3650e2),_0xb4c0ad['push'](0x0),_0x1b2f40['unshift'](_0x3650e2),_0x4d73ff[_0x19ed26]['nextPosition']=_0x4ca1ae['createPositionFromPath'](_0x1cd069,_0xb4c0ad);}else'elementEnd'===_0x4d73ff[_0x19ed26]['type']?(_0x1b2f40['shift'](),_0x4d73ff[_0x19ed26]['previousPosition']=_0x4ca1ae['createPositionFromPath'](_0x1cd069,_0xb4c0ad),_0xb4c0ad['pop'](),_0xb4c0ad[_0xb4c0ad['length']-0x1]++,_0x4d73ff[_0x19ed26]['nextPosition']=_0x4ca1ae['createPositionFromPath'](_0x1cd069,_0xb4c0ad)):(_0x4d73ff[_0x19ed26]['previousPosition']=_0x4ca1ae['createPositionFromPath'](_0x1cd069,_0xb4c0ad),_0x364627?_0x364627['_data']+=_0x4d73ff[_0x19ed26]['item']['data']:_0x364627=new _0x3a21b8(_0x4d73ff[_0x19ed26]['item']['data'],_0x4d73ff[_0x19ed26]['item']['getAttributes']()),_0x4d73ff[_0x19ed26+0x1]&&'text'===_0x4d73ff[_0x19ed26+0x1]['type']&&_0xab67c8(_0x364627,_0x4d73ff[_0x19ed26+0x1]['item'])||(_0x1b2f40[0x0]['_appendChild'](_0x364627),_0x364627=null),_0xb4c0ad[_0xb4c0ad['length']-0x1]+=_0x4d73ff[_0x19ed26]['item']['offsetSize'],_0x4d73ff[_0x19ed26]['nextPosition']=_0x4ca1ae['createPositionFromPath'](_0x1cd069,_0xb4c0ad));for(let _0x450764=0x0;_0x450764<_0x4d73ff['length'];_0x450764++){const _0x45e632=_0x4d73ff[_0x450764]['previousPosition'],_0x4750cb=_0x4d73ff[_0x450764]['nextPosition'];for(const _0x1c7833 of _0x4d73ff[_0x450764]['markersStart'])_0x17f6b9['set'](_0x1c7833,{'start':_0x45e632,'end':null});_0x26eebd('isRemoveSuggestion',_0x450764,_0x45e632,_0x4750cb),_0x26eebd('isAddSuggestion',_0x450764,_0x45e632,_0x4750cb),_0x26eebd('isRemoved',_0x450764,_0x45e632,_0x4750cb),_0x26eebd('isAdded',_0x450764,_0x45e632,_0x4750cb);for(const _0x170237 of _0x4d73ff[_0x450764]['markersEnd']){const _0x1f2427=_0x17f6b9['get'](_0x170237);_0x1f2427?_0x1f2427['end']=_0x4750cb:_0x17f6b9['set'](_0x170237,{'start':_0x4750cb,'end':_0x4750cb});}}for(const [_0x2b249b,_0x539d51]of _0x17f6b9){const _0x2efe64=this['editor']['model']['createRange'](_0x539d51['start'],_0x539d51['end']);_0x1cd069['markers']['set'](_0x2b249b,_0x2efe64);}return _0x66f333['sort']((_0x3d13f4,_0x18c1c9)=>{const _0x1ff8fb=_0x1cd069['markers']['get']('revision:'+_0x3d13f4['id']),_0x3e192e=_0x1cd069['markers']['get']('revision:'+_0x18c1c9['id']);return _0x1ff8fb['start']['isBefore'](_0x3e192e['start'])?-0x1:_0x1ff8fb['start']['isAfter'](_0x3e192e['start'])?0x1:_0x1ff8fb['end']['isBefore'](_0x3e192e['end'])?-0x1:_0x1ff8fb['end']['isAfter'](_0x3e192e['end'])?0x1:'add'===_0x3d13f4['type']?-0x1:0x1;}),{'root':_0x1cd069,'changes':_0x66f333};function _0x26eebd(_0x2796b7,_0x571b88,_0x38d645,_0x278df8){const _0x40e348=!!_0x4d73ff[_0x571b88][_0x2796b7],_0x319c5d=_0x40e348?_0x4d73ff[_0x571b88][_0x2796b7]['userId']:null,_0x35ea3a=_0x571b88===_0x4d73ff['length']-0x1,_0x2fecd7=_0x2b77e6[_0x2796b7][0x0],_0x3e8657=_0x71bd76['isObject'](_0x4d73ff[_0x571b88]['item']);!_0x3f46af[_0x2796b7]&&_0x40e348?_0x3f46af[_0x2796b7]={'start':_0x38d645,'tapeItem':_0x4d73ff[_0x571b88],'userId':_0x319c5d,'type':_0x2796b7}:_0x3f46af[_0x2796b7]&&!_0x40e348?(_0x3f46af[_0x2796b7]['end']=_0x38d645,_0x150477(_0x3f46af[_0x2796b7]),_0x3f46af[_0x2796b7]=null):_0x3f46af[_0x2796b7]&&_0x40e348&&_0x3f46af[_0x2796b7]['userId']!==_0x319c5d&&(_0x3f46af[_0x2796b7]['end']=_0x38d645,_0x2fecd7&&_0x2fecd7['userId']===_0x3f46af[_0x2796b7]['userId']||_0x150477(_0x3f46af[_0x2796b7]),_0x3f46af[_0x2796b7]={'start':_0x38d645,'tapeItem':_0x4d73ff[_0x571b88],'userId':_0x319c5d,'type':_0x2796b7}),_0x3f46af[_0x2796b7]&&_0x3e8657&&('elementStart'!==_0x4d73ff[_0x571b88]['type']||_0x2fecd7&&_0x2fecd7['userId']===_0x319c5d||_0x2b77e6[_0x2796b7]['unshift']({'userId':_0x319c5d,'object':_0x4d73ff[_0x571b88]['item'],'change':_0x3f46af[_0x2796b7]}),'elementEnd'===_0x4d73ff[_0x571b88]['type']&&_0x2fecd7&&_0x2fecd7['object']===_0x4d73ff[_0x571b88]['item']&&(_0x2b77e6[_0x2796b7]['shift'](),_0x3f46af[_0x2796b7]=_0x2fecd7['change'])),_0x3f46af[_0x2796b7]&&_0x35ea3a&&(_0x3f46af[_0x2796b7]['end']=_0x278df8,_0x150477(_0x3f46af[_0x2796b7]),_0x3f46af[_0x2796b7]=null);}function _0x150477({start:_0x54170f,end:_0x13bdeb,tapeItem:_0x285c14,userId:_0x3dbb08,type:_0x3cd402}){const _0x476407=_0x285c14['item'],_0x250e3=_0x4ca1ae['schema']['isBlock'](_0x476407)&&!_0x4ca1ae['schema']['isLimit'](_0x476407),_0x984f4e=_0x54170f['nodeAfter']==_0x13bdeb['parent']&&_0x13bdeb['isAtStart'];if(_0x250e3&&_0x984f4e)return;const _0x3e4e99=_0x4ca1ae['createRange'](_0x54170f,_0x13bdeb),_0x1325df=_0x3e3ca['get'](_0x3dbb08),_0x2147e3=new G({'author':_0x1325df,'type':'isAdded'==_0x3cd402||'isAddSuggestion'==_0x3cd402?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x3cd402||'isRemoveSuggestion'==_0x3cd402},'createdAt':new Date(),'rootName':_0x368574});_0x66f333['push'](_0x2147e3),_0x1cd069['markers']['set']('revision:'+_0x2147e3['id'],_0x3e4e99);}function _0xab67c8(_0x3d63db,_0x2b42ca){const _0x40cbb1=_0x3d63db['getAttributes'](),_0x29c59e=_0x2b42ca['getAttributes']();for(const _0x3d3bd7 of _0x40cbb1){if(_0x3d3bd7[0x1]!==_0x2b42ca['getAttribute'](_0x3d3bd7[0x0]))return!0x1;_0x29c59e['next']();}return _0x29c59e['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x10272a=>{const _0x588f5e=_0x10272a['markerName']['split'](':')[0x1],_0x54ad1b=this['_getChangeFromId'](_0x588f5e);if(!_0x54ad1b)return null;const _0x2987c8='add'==_0x54ad1b['type']?'insertion':'deletion',_0x5f38bd=['ck-suggestion-marker','ck-suggestion-marker-'+_0x2987c8];return _0x54ad1b['data']['isSuggestion']&&_0x5f38bd['push']('ck-suggestion-marker-'+_0x2987c8+'-new'),this['activeChange']==_0x54ad1b&&_0x5f38bd['push']('ck-suggestion-marker--active'),{'classes':_0x5f38bd,'attributes':{'data-change-id':_0x588f5e}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x33b555=>{_0x33b555['on']('element:pre',(_0x291916,_0x511a6a,_0x30f06f)=>{const _0x453354=_0x511a6a['viewItem']['getChild'](0x0);if(!_0x453354||!_0x453354['is']('element','code'))return;if(!_0x30f06f['consumable']['consume'](_0x453354,{'attributes':['vid_start','vid_end']}))return;const _0x30d268=_0x511a6a['modelRange']['start']['nodeAfter'];_0x30f06f['writer']['setAttribute']('vid_start',_0x453354['getAttribute']('vid_start'),_0x30d268),_0x30f06f['writer']['setAttribute']('vid_end',_0x453354['getAttribute']('vid_end'),_0x30d268);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x4c4286=>{_0x4c4286['on']('element',(_0x2ada1f,_0xd5a204,_0xd32c7d)=>{if(!_0xd32c7d['consumable']['consume'](_0xd5a204['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0xd5a204['modelRange']['isCollapsed'])return;const _0x1777fb=_0xd5a204['modelRange']['start']['nodeAfter'];_0x1777fb['hasAttribute']('vid_start')||_0x1777fb['hasAttribute']('vid')||(_0xd32c7d['writer']['setAttribute']('vid_start',_0xd5a204['viewItem']['getAttribute']('vid_start'),_0x1777fb),_0xd32c7d['writer']['setAttribute']('vid_end',_0xd5a204['viewItem']['getAttribute']('vid_end'),_0x1777fb));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x2fedf3=>_0x2fedf3['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x4b9575,[,_0x42efb2])=>{['vid_start','vid_end','vid']['includes'](_0x42efb2)&&(_0x4b9575['return']=!0x0,_0x4b9575['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x4eb2dc=>{_0x4eb2dc['on']('attribute:vid',(_0x2adb75,_0x124472,_0x521491)=>{if('\x20'!=_0x124472['item']['data']||_0x124472['item']['parent']['maxOffset']>0x1)return;if(!_0x521491['consumable']['consume'](_0x124472['item'],_0x2adb75['name']))return;const _0x5f0227=_0x521491['writer'],_0xcecea5=_0x521491['mapper']['toViewRange'](_0x124472['range']);_0x5f0227['wrap'](_0xcecea5,_0x5f0227['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x418639){const _0x2f8617=_0x418639['plugins']['get']('RevisionViewer');return(_0x25c78b,_0x3c268c,_0x3565f9)=>{const _0x4d1c33=_0x3c268c['markerName']['split'](':')[0x1],_0xc39d99=_0x2f8617['_getChangeFromId'](_0x4d1c33);if(!_0xc39d99)return null;const _0x5de8a3='add'==_0xc39d99['type']?'split':'merge';if(!_0x3565f9['consumable']['test'](_0x3c268c['markerRange'],_0x25c78b['name']))return;const _0x336d69=_0x3c268c['markerRange']['getWalker'](),_0x3084a0=_0x3c268c['markerRange']['start'],_0x30df46=_0x418639['model']['schema'];let _0x47a40e=null,_0x2acb2f=null,_0x3cd8d3=!0x1,_0x1b6475=!0x1;for(const _0x1c0d68 of _0x336d69){const _0x333a77=_0x1c0d68['item'];_0x3cd8d3=_0x3cd8d3||_0x30df46['isContent'](_0x333a77);const _0x4504c3=_0x3565f9['mapper']['toViewElement'](_0x333a77);if(_0x4504c3&&_0x4504c3['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1c0d68['type']&&(_0x30df46['isBlock'](_0x333a77)&&!_0x30df46['isLimit'](_0x333a77)&&(_0x333a77['nextSibling']||_0x3084a0['isAtEnd']?_0x47a40e&&_0x47a40e['parent']==_0x333a77||(_0x47a40e=_0x333a77,_0x24a297(_0x1c0d68['previousPosition']),_0x1b6475=!0x0):_0x2acb2f=_0x2acb2f||_0x1c0d68['previousPosition']));}function _0x24a297(_0x40678d){const _0x4e524b=_0x3565f9['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5de8a3}),_0x56ddbc=_0x3565f9['mapper']['toViewPosition'](_0x40678d);_0xc39d99['data']['isSuggestion']&&_0x3565f9['writer']['addClass']('ck-suggestion-marker-'+_0x5de8a3+'-new',_0x4e524b),_0x2f8617['activeChange']==_0xc39d99&&_0x3565f9['writer']['addClass']('ck-suggestion-marker--active',_0x4e524b),_0x3565f9['writer']['insert'](_0x56ddbc,_0x4e524b),_0x3565f9['mapper']['bindElementToMarker'](_0x4e524b,_0x3c268c['markerName']);}_0x3cd8d3||_0x1b6475||!_0x2acb2f||_0x24a297(_0x2acb2f);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x590cbd,_0xd3e7,_0x27e36f)=>{const _0x15bde9=_0x27e36f['mapper']['markerNameToElements'](_0xd3e7['markerName']);if(_0x15bde9){for(const _0x4600f3 of _0x15bde9)(_0x4600f3['hasClass']('ck-suggestion-marker-split')||_0x4600f3['hasClass']('ck-suggestion-marker-merge'))&&(_0x27e36f['mapper']['unbindElementFromMarkerName'](_0x4600f3,_0xd3e7['markerName']),_0x27e36f['writer']['remove'](_0x4600f3));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x8c3b47,_0x39a83d,_0x47a67b)=>{const _0x4ce7e0=_0x39a83d['markerName']['split'](':')[0x1],_0x2cd879=this['_getChangeFromId'](_0x4ce7e0);if(!_0x2cd879)return null;const _0x411189='add'==_0x2cd879['type']?'split':'merge';if(_0x47a67b['consumable']['test'](_0x39a83d['markerRange'],_0x8c3b47['name']))for(const _0x3afbd7 of _0x39a83d['markerRange']['getItems']()){if(!_0x3afbd7['is']('element','softBreak'))continue;const _0xf12307=_0x47a67b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x411189}),_0x185cb1=_0x47a67b['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x3afbd7));_0x2cd879['data']['isSuggestion']&&_0x47a67b['writer']['addClass']('ck-suggestion-marker-'+_0x411189+'-new',_0xf12307),this['activeChange']==_0x2cd879&&_0x47a67b['writer']['addClass']('ck-suggestion-marker--active',_0xf12307),_0x47a67b['writer']['insert'](_0x185cb1,_0xf12307),_0x47a67b['mapper']['bindElementToMarker'](_0xf12307,_0x39a83d['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x7cd485=>{for(const _0x20281e of this['editor']['model']['document']['getRootNames']()){const _0xbd183c=this['editor']['model']['document']['getRoot'](_0x20281e),_0x410cf6=this['editor']['editing']['view']['document']['getRoot'](_0x20281e);if(_0x410cf6){const _0x109381=_0xbd183c['getAttribute']('revisionHistoryAttachChange');if(_0x7cd485['removeAttribute']('data-change-id',_0x410cf6),_0x7cd485['removeClass']('ck-revision-history-root-add',_0x410cf6),_0x7cd485['removeClass']('ck-revision-history-root-remove',_0x410cf6),_0x7cd485['removeClass']('ck-revision-history-root--active',_0x410cf6),_0x109381){const _0x259b73=this['_getChangeFromId'](_0x109381);if(!_0x259b73)return null;_0x7cd485['setAttribute']('data-change-id',_0x109381,_0x410cf6),_0x7cd485['addClass']('ck-revision-history-root-'+_0x259b73['type'],_0x410cf6),this['activeChange']==_0x259b73&&_0x7cd485['addClass']('ck-revision-history-root--active',_0x410cf6);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x9302e4=>'revision-comment:'+_0x9302e4,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x4d16f1=>'revision-suggestion:'+_0x4d16f1,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x112d0c=>({'name':'suggestion:'+_0x112d0c,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x40db77=>{const _0x1e8932=_0x40db77['markerName']['split'](':')[0x1];return'insertion'!=_0x1e8932&&'deletion'!=_0x1e8932?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x1e8932]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Q(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Q(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x277b17,_0x3a6366,_0x4f9d34)=>{const _0x5911d6=_0x4f9d34['mapper']['markerNameToElements'](_0x3a6366['markerName']);if(_0x5911d6){for(const _0x1de298 of _0x5911d6)_0x1de298['is']('uiElement')&&(_0x4f9d34['mapper']['unbindElementFromMarkerName'](_0x1de298,_0x3a6366['markerName']),_0x4f9d34['writer']['remove'](_0x1de298));}},{'priority':'high'});}['_getChangeFromId'](_0x2be30e){return this['_changeIdToChange']['get'](_0x2be30e);}['_getViewForChange'](_0x47c40d){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x47c40d),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x17851a,_0xf610d1,_0x48bd2d,_0x1a2bae)=>{_0x1a2bae&&this['_balloon']['remove'](_0x1a2bae),_0x48bd2d&&(this['_balloon']['add']({'view':_0x48bd2d,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x199287=this['editor']['editing'],_0x3cf64d=this['_getChangeFromId'](_0x48bd2d['changeId']);let _0x33a6b1;if(_0x3cf64d['data']['isOnRoot']){const _0x93d878=_0x199287['view']['getDomRoot'](_0x3cf64d['rootName']);_0x33a6b1=Array['from'](_0x93d878['getClientRects']());}else{const _0x315ffa=this['editor']['model']['markers']['get']('revision:'+_0x48bd2d['changeId']);_0x33a6b1=Array['from'](_0x199287['mapper']['markerNameToElements'](_0x315ffa['name']))['map'](_0x4570d2=>_0x199287['view']['domConverter']['mapViewToDom'](_0x4570d2))['map'](_0x30833b=>Array['from'](_0x30833b['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x33a6b1[0x0];return _0x33a6b1['find'](_0x5c45a8=>_0x5c45a8['top']-0x3<=this['_activeViewTarget']['y']&&_0x5c45a8['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x5c45a8['left']-0x3<=this['_activeViewTarget']['x']&&_0x5c45a8['right']+0x3>=this['_activeViewTarget']['x'])||_0x33a6b1[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0xb998d4,_0x356769,_0x42c6a2,_0x10509c)=>{this['activeView']=_0x42c6a2?this['_getViewForChange'](_0x42c6a2):null,this['editor']['model']['change'](()=>{const _0x232b89=this['editor']['editing'];_0x10509c&&(_0x10509c['data']['isOnRoot']?_0x232b89['view']['change'](_0x4d4559=>{_0x4d4559['removeClass']('ck-revision-history-root--active',_0x232b89['view']['document']['getRoot'](_0x10509c['rootName']));}):_0x232b89['reconvertMarker']('revision:'+_0x10509c['id'])),_0x42c6a2&&(_0x42c6a2['data']['isOnRoot']?_0x232b89['view']['change'](_0x5e52b1=>{_0x5e52b1['addClass']('ck-revision-history-root--active',_0x232b89['view']['document']['getRoot'](_0x42c6a2['rootName']));}):_0x232b89['reconvertMarker']('revision:'+_0x42c6a2['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x52255c,_0x56f24d)=>{if(this['activeChange'])return;const _0x84ffa2=this['_findChangeIdFromDomTarget'](_0x56f24d['target']),_0x56b036=this['_changeIdToChange']['get'](_0x84ffa2);_0x56b036?(this['_activeViewTarget']={'x':_0x56f24d['domEvent']['x'],'y':_0x56f24d['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x56b036)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x5be1e9,_0x373d3b)=>{const _0xb63ef=this['_findChangeIdFromDomTarget'](_0x373d3b['target']),_0x2f733b=this['_changeIdToChange']['get'](_0xb63ef);_0x2f733b?(this['_activeViewTarget']={'x':_0x373d3b['domEvent']['x'],'y':_0x373d3b['domEvent']['y']},_0x2f733b===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x2f733b):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x4662de){do{const _0x14e06d=_0x4662de['getAttribute']('data-change-id');if(_0x14e06d)return _0x14e06d;_0x4662de=_0x4662de['parent'];}while(_0x4662de);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x23ce3b=>{for(const _0x55364d of this['editor']['model']['markers'])_0x23ce3b['removeMarker'](_0x55364d);});}}function Q(_0x68eebe,_0x14f2cc){return(_0x3058b6,_0x3030a1,_0x3e728f)=>{if(!_0x3e728f['consumable']['test'](_0x3030a1['markerRange'],_0x3058b6['name']))return;const _0x18bbe2=_0x3030a1['markerRange']['getWalker'](),_0x14e222=_0x3030a1['markerRange']['start'],_0x4dd134=_0x68eebe['model']['schema'];let _0x378858=null,_0x4ffbdc=null,_0x4ef577=!0x1,_0x2a32ba=!0x1;for(const _0x310677 of _0x18bbe2){const _0x201cb3=_0x310677['item'];_0x4ef577=_0x4ef577||_0x4dd134['isContent'](_0x201cb3);const _0x47dda7=_0x3e728f['mapper']['toViewElement'](_0x201cb3);if(_0x47dda7&&_0x47dda7['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x310677['type']&&(_0x4dd134['isBlock'](_0x201cb3)&&!_0x4dd134['isLimit'](_0x201cb3)&&(_0x201cb3['nextSibling']||_0x14e222['isAtEnd']?_0x378858&&_0x378858['parent']==_0x201cb3||(_0x378858=_0x201cb3,_0xa61ac8(_0x310677['previousPosition']),_0x2a32ba=!0x0):_0x4ffbdc=_0x4ffbdc||_0x310677['previousPosition']));}function _0xa61ac8(_0x4e833a){const _0x2025d9=_0x3e728f['mapper']['toViewPosition'](_0x4e833a),_0x2b5b46=_0x3e728f['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x14f2cc});_0x3e728f['writer']['insert'](_0x2025d9,_0x2b5b46),_0x3e728f['mapper']['bindElementToMarker'](_0x2b5b46,_0x3030a1['markerName']);}_0x4ef577||_0x2a32ba||!_0x4ffbdc||_0xa61ac8(_0x4ffbdc);};}class nt extends _0x3984cb{constructor(_0x575aeb){super(_0x575aeb);const _0x298901=_0x575aeb['plugins']['get'](l);this['affectsData']=!0x1,this['listenTo'](_0x298901,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x298901,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x39ec19=this['editor'],_0x3c9fdc=_0x39ec19['plugins']['get'](l),_0x5c863d=_0x3c9fdc['isReady']?_0x3c9fdc['diff']['newRevisionId']:null;_0x39ec19['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x5c863d);}['refresh'](){const {isReady:_0x54b2a7,isEnabled:_0x5b7646,repository:_0x3825cb,diff:_0x1d9766}=this['editor']['plugins']['get'](l),_0x3e41fc=_0x1d9766&&_0x3825cb['getLaterVisibleRevision'](_0x1d9766['newRevisionId']);this['isEnabled']=_0x54b2a7&&_0x5b7646&&Boolean(_0x3e41fc);}}class ot extends _0x3984cb{['_step'];constructor(_0x44147e,{direction:_0x3395ed}){super(_0x44147e);const _0x42bd64=_0x44147e['plugins']['get'](l);this['affectsData']=!0x1,this['_step']='forward'===_0x3395ed?0x1:-0x1,this['listenTo'](_0x42bd64,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x42bd64,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x42bd64,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x4b0541=this['editor'],_0x39e70d=_0x4b0541['plugins']['get'](l),{isNavigationMode:_0x24087b,currentChangeNumber:_0x4f5591}=_0x39e70d;let _0x4eadae;if(_0x39e70d['activeChange']=_0x24087b?_0x39e70d['diff']['changes']['get'](_0x4f5591+this['_step']):_0x39e70d['diff']['changes']['first'],_0x39e70d['activeChange']['data']['isOnRoot'])_0x4eadae=_0x4b0541['editing']['view']['getDomRoot'](_0x39e70d['activeChange']['rootName']);else{const _0x2986ce=_0x4b0541['model']['markers']['get']('revision:'+_0x39e70d['activeChange']['id']);_0x4eadae=_0xed2479(_0x4b0541['editing'],_0x2986ce);}_0x504a60({'target':_0x4eadae,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x5b4c27,currentChangeNumber:_0x3e2e99,numberOfChanges:_0x674afc,isReady:_0x3042a0,isEnabled:_0x41b6fc}=this['editor']['plugins']['get'](l);this['isEnabled']=!!(_0x41b6fc&&_0x3042a0&&_0x674afc)&&(!_0x5b4c27||(0x1===this['_step']?_0x3e2e99<_0x674afc-0x1:_0x3e2e99>0x0));}}class Ri extends _0x4d9a94{constructor(_0x529df1){super(_0x529df1);const _0xf4364=this['bindTemplate'],_0x138be3=new _0x5d294a(_0x529df1),_0x13b6c5=new _0x5d294a(_0x529df1);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',(_0x29c7da,_0x2b8a87)=>_0x29c7da&&_0x2b8a87>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x593214,_0x282626,_0x209953,_0x100b83)=>{if(!_0x593214)return R(_0x529df1,'Loading...');if(!_0x209953)return R(_0x529df1,'No\x20changes');const _0x53ed3a=R(_0x529df1,'NUMBER_OF_CHANGES',_0x209953);return _0x100b83?R(_0x529df1,'X_OF_Y_CHANGES',[_0x282626+0x1,_0x209953]):_0x53ed3a;}),_0x138be3['set']({'label':R(_0x529df1,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x44217f}),_0x13b6c5['set']({'label':R(_0x529df1,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x5de721}),_0x138be3['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x13b6c5['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x138be3['on']('execute',()=>this['fire']('execute','backward')),_0x13b6c5['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',_0xf4364['if']('_isStatusLabelVisible','ck-hidden',_0x31d727=>!_0x31d727)]},'children':[{'text':_0xf4364['to']('isNavigationMode',_0x400b50=>_0x400b50?R(_0x529df1,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x529df1,'Total')+':\x20')}]},{'text':_0xf4364['to']('_statusText')}]},new _0x1e354a(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x138be3,_0x13b6c5]}]});}}const ge='ck-editor__editable__loading-overlay';class ji extends _0x7a0156{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x4f2ea1=this['editor']['editing']['view'];_0x4f2ea1['change'](_0x2d655a=>{for(const _0x497c3a of _0x4f2ea1['document']['roots'])_0x2d655a['addClass'](ge,_0x497c3a);});}['hide'](){const _0x3f095f=this['editor']['editing']['view'];_0x3f095f['change'](_0x1dd7b9=>{for(const _0xe03311 of _0x3f095f['document']['roots'])_0x1dd7b9['removeClass'](ge,_0xe03311);});}}class u extends _0x7a0156{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,ji];}['init'](){const _0x55bc73=this['editor'],_0x20cdaa=_0x55bc73['plugins']['get'](l),_0x5285b9=_0x55bc73['plugins']['get'](ji);_0x55bc73['ui']['componentFactory']['add']('exitToEditing',_0x18a72f=>{const _0x2a9e58=new _0x5d294a(_0x18a72f);return _0x2a9e58['set']({'label':R(_0x18a72f,'Back\x20to\x20editing'),'icon':_0x115359,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x2a9e58,'execute',()=>{_0x55bc73['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x2a9e58;}),_0x55bc73['ui']['componentFactory']['add']('restoreRevision',_0x1c423d=>{const _0x423559=new _0x5d294a(_0x1c423d);return _0x423559['set']({'label':R(_0x1c423d,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x423559['bind']('isEnabled')['to'](_0x55bc73['commands']['get']('restoreRevision')),this['listenTo'](_0x423559,'execute',()=>_0x55bc73['execute']('restoreRevision')),_0x423559;}),_0x55bc73['ui']['componentFactory']['add']('changesNavigation',_0x1c45a6=>{const _0x570d0d=new Ri(_0x1c45a6),_0x373a0d=_0x55bc73['commands']['get']('showPreviousChange'),_0x2618d6=_0x55bc73['commands']['get']('showNextChange');return _0x570d0d['bind']('isBackwardNavigationEnabled')['to'](_0x373a0d,'isEnabled'),_0x570d0d['bind']('isForwardNavigationEnabled')['to'](_0x2618d6,'isEnabled'),_0x570d0d['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x20cdaa),this['listenTo'](_0x570d0d,'execute',(_0x2cdb2e,_0x5398c4)=>{_0x55bc73['execute']('forward'===_0x5398c4?'showNextChange':'showPreviousChange');}),_0x570d0d;}),_0x5285b9['show'](),_0x20cdaa['on']('change:isReady',(_0x152217,_0x1869fc,_0x21c07d)=>{_0x21c07d?_0x5285b9['hide']():_0x5285b9['show']();});}}class li extends ti{['_resizeObserver']=null;constructor(_0x549173,_0x1946bf){super(_0x549173,_0x1946bf);const _0x36a9b2=this['bindTemplate'];this['set']({'label':R(_0x549173,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x549173,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x36a9b2['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new et(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0xa85e67=this['fieldView']['element'];this['_tooltipString']=_0xa85e67['scrollWidth']>_0xa85e67['clientWidth']&&_0xa85e67['value']||'';}}class vi extends _0x4d9a94{constructor(_0xda515b,_0x417395,_0x12eee9){super(_0xda515b);const _0x9e0740=new _0x15ef69();_0x9e0740['set']({'content':_0x3a25eb,'viewBox':'0\x200\x2011\x2010'});const _0x5ca4df=['ck','ck-revision-history-sidebar__revision-author'];_0x12eee9&&_0x5ca4df['push']('ck-revision-history-sidebar__revision-author_creator');const _0x1998d3=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0xda515b,_0x12eee9?'Revision\x20creator':'Revision\x20author')},'children':[_0x9e0740,_0x417395['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x5ca4df},'children':_0x1998d3});}}function mi(_0x27daa4,_0x3861b9){const _0x54b7a1=_0x27daa4['bindTemplate'],_0x58f66e=_0x27daa4['locale'],_0x548876=_0x23a169(_0x58f66e);_0x548876['panelPosition']='sw';const _0x55aef6=function(_0x5e3b91,_0x438dd3){const _0x25183e=function(_0x1654c2,_0x758b8b){const _0x4ccf30=_0x1654c2['locale'],_0x4bb1ec={'Compare\x20against\x20selected':R(_0x4ccf30,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x4ccf30,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x4ccf30,'Restore\x20this\x20revision')};return _0x758b8b['map'](_0xe96e56=>{const _0x36e60b=_0x4bb1ec[_0xe96e56['name']];return _0x36e60b&&_0x36e60b!==_0xe96e56['name']&&(_0xe96e56['name']=_0x36e60b),_0xe96e56;});}(_0x5e3b91,_0x438dd3),_0x4376be=new _0x21221c();for(const _0x2010e8 of _0x25183e){const _0xf59d66={'type':'button','model':new to({'label':_0x2010e8['name'],'class':_0x2010e8['class'],'withText':!0x0,'role':'menuitem','_action':_0x2010e8['action']})};_0xf59d66['model']['bind']('isEnabled')['to'](_0x5e3b91,'isActionsDropdownOpen',_0x1c3557=>'function'!=typeof _0x2010e8['isEnabled']||(!_0x1c3557||_0x2010e8['isEnabled'](_0x5e3b91))),_0x4376be['add'](_0xf59d66);}return _0x4376be;}(_0x27daa4,_0x3861b9);return _0x27daa4['bind']('isActionsDropdownOpen')['to'](_0x548876,'isOpen'),_0x548876['buttonView']['set']({'label':R(_0x58f66e,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x380e26}),_0x548876['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x54b7a1['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x54b7a1['to'](_0x16b1f1=>_0x16b1f1['stopPropagation']())}}),_0x548876['on']('execute',_0x3f645c=>{_0x27daa4['isReady']&&'function'==typeof _0x3f645c['source']['_action']&&_0x3f645c['source']['_action'](_0x27daa4);}),_0x25429d(_0x548876,_0x55aef6,{'role':'menu'}),_0x548876['listenTo'](_0x27daa4,'change:isActionsDropdownOpen',(_0xe4cad,_0x186b6a,_0xa02c3)=>{if(_0xa02c3)for(const _0x455d21 of _0x548876['listView']['items']){const _0x5c18f7=_0x455d21['children']['first'],_0x2935c6=_0x3861b9['find'](_0x2ece72=>_0x2ece72['action']===_0x5c18f7['_action'])['isVisible'];_0x455d21['isVisible']=void 0x0===_0x2935c6||_0x2935c6(_0x27daa4);}}),_0x548876;}class pi extends/* #__PURE__ -- @preserve */
|
|
27
|
-
|
|
23
|
+
import{ObservableMixin as _0x53b020,uid as _0x1b5d50,Collection as _0x3ac57f,logWarning as _0x7ece4e,FocusTracker as _0x4de5cb,KeystrokeHandler as _0x2617c5,scrollViewportToShowTarget as _0x5d40e9,ResizeObserver as ot,ElementReplacer as it,CKEditorError as _0x9a71df}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x186599,set as _0x2a78eb,unset as _0x148056,isEqual as _0x2b6e41}from'es-toolkit/compat';import{Plugin as _0x235b76,PendingActions as _0x360008,Command as _0x3dab4f,ElementApiMixin as _0x367870,Editor as _0x6012b0}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x34eefc,getMarkerDomElement as _0x3d22cf,ConfirmMixin as _0xda903c,sanitizeEditorConfig as _0x55b787}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x3f3e5a,ViewAttributeElement as _0x56ffeb,ViewEmptyElement as _0x5585ef,ViewRawElement as _0x478f62,ViewUIElement as _0x1e5a5c,ViewDocumentFragment as _0x1daad2,ViewText as _0x2ab4f3,ViewElement as _0x505201,ModelElement as _0x11a5c7,ModelRange as _0x150733,ModelPosition as _0x1112ca,ModelDocumentFragment as _0x3ae66b,ModelText as _0x2a1bb8}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x5cf05f,IconChevronUp as _0x54f190,IconChevronDown as _0x4bb357,IconUndo as _0x3ff679,IconUser as _0x5b6cfe,IconThreeVerticalDots as _0x5c4da2}from'@ckeditor/ckeditor5-icons/dist/index.js';import{CssTransitionDisablerMixin as _0x486c8d,View as _0x2978dc,submitHandler as _0xa7b95a,LabeledFieldView as et,createLabeledInputText as ti,createDropdown as _0x5e74ef,ListView as _0x22ed8b,ListItemView as _0x2825a7,ButtonView as _0x3ced20,MenuBarMenuView as _0x560e59,MenuBarMenuListView as _0x24ec15,MenuBarMenuListItemView as _0x108f0b,MenuBarMenuListItemButtonView as _0x4956b5,ContextualBalloon as _0xe4aace,ToolbarSeparatorView as _0x2b1b00,IconView as _0x34c740,addListToDropdown as _0x2000a3,UIModel as to,EditorUI as tt,normalizeToolbarConfig as st,BoxedEditorUIView as _0x3c9102,StickyPanelView as _0x49c52d,ToolbarView as _0x3c4faf,InlineEditableUIView as te}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x24bcb5}from'luxon';class I extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x53b020(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x1a7ee9){super(),this['id']=_0x1a7ee9['id']||_0x1b5d50(),this['creator']=_0x1a7ee9['creator']||null,this['authors']=_0x1a7ee9['authors']||[],this['diffData']=_0x1a7ee9['diffData']||null,this['toVersion']=_0x1a7ee9['toVersion']||0x0,this['fromVersion']=_0x1a7ee9['fromVersion']||0x0,this['set']('name',_0x1a7ee9['name']||''),this['set']('createdAt',_0x1a7ee9['createdAt']||new Date()),this['set']('attributes',_0x1a7ee9['attributes']||{});}['setName'](_0x16d4fa){this['_update']({'name':_0x16d4fa});}['setAttribute'](_0x38407b,_0x4722b4){const _0x4e03f5=_0x186599(this['attributes']);_0x2a78eb(_0x4e03f5,_0x38407b,_0x4722b4),this['_update']({'attributes':_0x4e03f5});}['removeAttribute'](_0x34c508){const _0x50706c=_0x186599(this['attributes']);_0x148056(_0x50706c,_0x34c508),this['_update']({'attributes':_0x50706c});}['_update'](_0x465bec,_0x5a5789=!0x1){let _0x154a05=!0x1;const _0x25268d={'id':this['id']},_0x3c4c9b=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x2e4fa6 of _0x3c4c9b){const _0x3d2607=_0x465bec[_0x2e4fa6];void 0x0!==_0x3d2607&&_0x3d2607!==this[_0x2e4fa6]&&(this[_0x2e4fa6]=_0x3d2607,_0x25268d[_0x2e4fa6]=_0x3d2607,_0x154a05=!0x0);}_0x154a05&&(_0x25268d['authors']&&(_0x25268d['authorsIds']=_0x25268d['authors']['map'](_0x571072=>_0x571072['id']),delete _0x25268d['authors']),this['fire']('_update',_0x25268d,_0x5a5789));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x11495d=>_0x11495d['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x235b76{['_revisions'];static get['requires'](){return[_0x34eefc];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x3a9508){super(_0x3a9508),this['_revisions']=new _0x3ac57f();}['afterInit'](){!async function(_0x1abc88){const _0x1e415a=_0x3705bf([0x41,0x77,0x44,0x69,0x58,0x34,0x74,0x52,0x53,0x36,0x67,0x6b,0x50,0x43,0x4d,0x48,0x6d,0x62,0x6e,0x57,0x65,0x75,0x32,0x61,0x70,0x56,0x73,0x63,0x68,0x30,0x6a,0x42,0x47,0x35,0x54,0x4e,0x78,0x51,0x4c,0x66,0x5a,0x31,0x45,0x55,0x76,0x71,0x37,0x49,0x33,0x59,0x38,0x4b,0x6f,0x46,0x64,0x7a,0x4a,0x79,0x72,0x6c,0x4f,0x39]),_0x34014f=0xeb829,_0xdde753=0x109c0e60,_0xd7c1d8=0x109b6370^_0xdde753,_0x1a7318=window[_0x3705bf([0x44,0x61,0x74,0x65])][_0x3705bf([0x6e,0x6f,0x77])](),_0x20ec79=_0x1abc88[_0x3705bf([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x126b28=new window[(_0x3705bf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xc72592=>{_0x20ec79[_0x3705bf([0x6f,0x6e,0x63,0x65])](_0x3705bf([0x72,0x65,0x61,0x64,0x79]),_0xc72592);}),_0x164d60={[_0x3705bf([0x6b,0x74,0x79])]:_0x3705bf([0x45,0x43]),[_0x3705bf([0x75,0x73,0x65])]:_0x3705bf([0x73,0x69,0x67]),[_0x3705bf([0x63,0x72,0x76])]:_0x3705bf([0x50,0x2d,0x32,0x35,0x36]),[_0x3705bf([0x78])]:_0x3705bf([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]),[_0x3705bf([0x79])]:_0x3705bf([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]),[_0x3705bf([0x61,0x6c,0x67])]:_0x3705bf([0x45,0x53,0x32,0x35,0x36])},_0x4321e3=_0x20ec79[_0x3705bf([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3705bf([0x67,0x65,0x74])](_0x3705bf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x9f0ae9(){let _0x46265d,_0x1665d9=null,_0x112f2a=null;try{if(_0x4321e3==_0x3705bf([0x47,0x50,0x4c]))return _0x3705bf([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x46265d=_0x1c0aa6(),!_0x46265d)return _0x3705bf([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x46265d[_0x3705bf([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x112f2a=_0x2ec1b9(_0x46265d[_0x3705bf([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x46265d[_0x3705bf([0x6a,0x74,0x69])])),await _0x3cf3ee()?_0x129f5c()?_0x4a5479()?_0x3705bf([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x35fc51()?(_0x46265d[_0x3705bf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3705bf([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1665d9=_0x3ba307(_0x3705bf([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x46265d[_0x3705bf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3705bf([0x74,0x72,0x69,0x61,0x6c])&&(_0x1665d9=_0x3ba307(_0x3705bf([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4c8c73()):_0x3705bf([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3705bf([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3705bf([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3705bf([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4a5479(){const _0x10e76d=[_0x3705bf([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3705bf([0x74,0x72,0x69,0x61,0x6c])][_0x3705bf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x46265d[_0x3705bf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1a7318/0x3e8:0xe10*_0xd7c1d8;return _0x46265d[_0x3705bf([0x65,0x78,0x70])]<_0x10e76d;}function _0x129f5c(){const _0x357c58=_0x46265d[_0x3705bf([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x357c58)return!0x1;if(_0x357c58[_0x3705bf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3705bf([0x2a])))return!0x0;if(_0x357c58[_0x3705bf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3705bf([0x52,0x48])))return!0x0;if(_0x357c58[_0x3705bf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3705bf([0x52,0x52,0x48]))){if(_0x5e246d())return!0x0;if(_0x6a194c()||_0xa5d0fa())return!0x0;}return!0x1;}function _0x35fc51(){const _0x5c9259=_0x46265d[_0x3705bf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5c9259||0x0==_0x5c9259[_0x3705bf([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x20f09a}=new URL(window[_0x3705bf([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5c9259[_0x3705bf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20f09a))return!0x0;const _0x29d655=_0x20f09a[_0x3705bf([0x73,0x70,0x6c,0x69,0x74])](_0x3705bf([0x2e]));return _0x5c9259[_0x3705bf([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xb68f9c=>_0xb68f9c[_0x3705bf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3705bf([0x2a])))[_0x3705bf([0x6d,0x61,0x70])](_0xa3dffa=>_0xa3dffa[_0x3705bf([0x73,0x70,0x6c,0x69,0x74])](_0x3705bf([0x2e])))[_0x3705bf([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x22224a=>_0x22224a[_0x3705bf([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x29d655[_0x3705bf([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3705bf([0x6d,0x61,0x70])](_0x3e4b0f=>Array(_0x29d655[_0x3705bf([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3e4b0f[_0x3705bf([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3705bf([0x66,0x69,0x6c,0x6c])](_0x3e4b0f[0x0]===_0x3705bf([0x2a])?_0x3705bf([0x2a]):'')[_0x3705bf([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3e4b0f))[_0x3705bf([0x73,0x6f,0x6d,0x65])](_0x70d44=>_0x29d655[_0x3705bf([0x65,0x76,0x65,0x72,0x79])]((_0x4867f2,_0xff9795)=>_0x70d44[_0xff9795]===_0x4867f2||_0x70d44[_0xff9795]===_0x3705bf([0x2a])));}function _0x4c8c73(){return _0x1665d9&&_0x112f2a?new window[(_0x3705bf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2706e3,_0x2aab69)=>{_0x1665d9[_0x3705bf([0x74,0x68,0x65,0x6e])](_0x2706e3,_0x2aab69),_0x112f2a[_0x3705bf([0x74,0x68,0x65,0x6e])](_0x2761ed=>{_0x2761ed!=_0x3705bf([0x56,0x61,0x6c,0x69,0x64])&&_0x2706e3(_0x2761ed);},_0x2aab69);}):_0x1665d9||_0x112f2a||_0x3705bf([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2ec1b9(_0x5790d9,_0x14c9e2){return new window[(_0x3705bf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xa015a5=>{if(_0x3be99d())return _0xa015a5(_0x3705bf([0x56,0x61,0x6c,0x69,0x64]));_0x34eb30(),_0x20ec79[_0x3705bf([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3705bf([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3d5f12=!0x1;const _0xf4a1c9=_0x1b5d50();function _0x47e73f(_0x10fa8a){return!!_0x10fa8a&&(typeof _0x10fa8a===_0x3705bf([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x10fa8a===_0x3705bf([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x10fa8a[_0x3705bf([0x74,0x68,0x65,0x6e])]===_0x3705bf([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x10fa8a[_0x3705bf([0x63,0x61,0x74,0x63,0x68])]===_0x3705bf([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4da3a0(_0x4db079){_0x404a64(_0x4db079)[_0x3705bf([0x74,0x68,0x65,0x6e])](_0x46634d=>{if(!_0x46634d||_0x46634d[_0x3705bf([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3705bf([0x6f,0x6b]))return _0x3705bf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5f3a5f(_0x2dff84(_0xf4a1c9+_0x14c9e2))!=_0x46634d[_0x3705bf([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3705bf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3705bf([0x56,0x61,0x6c,0x69,0x64]);})[_0x3705bf([0x74,0x68,0x65,0x6e])](_0x161a6b=>(_0xc4aaba(),_0x161a6b),()=>{const _0x13e925=_0x2923fa();return null==_0x13e925?(_0xc4aaba(),_0x3705bf([0x56,0x61,0x6c,0x69,0x64])):_0x3705bf(_0x1a7318-_0x13e925>(0x34908a60^_0xdde753)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3705bf([0x74,0x68,0x65,0x6e])](_0xa015a5)[_0x3705bf([0x63,0x61,0x74,0x63,0x68])](()=>{_0xa015a5(_0x3705bf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x11ade1=0x10aae0e0^_0xdde753;function _0xc4aaba(){const _0x506dce=_0x3705bf([0x6c,0x6c,0x63,0x74,0x2d])+_0x5f3a5f(_0x2dff84(_0x5790d9)),_0x3e50a4=_0x3c4a09(_0x5f3a5f(window[_0x3705bf([0x4d,0x61,0x74,0x68])][_0x3705bf([0x63,0x65,0x69,0x6c])](_0x1a7318/_0x11ade1)));window[_0x3705bf([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3705bf([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x506dce,_0x3e50a4);}function _0x2923fa(){const _0xfda2f8=_0x3705bf([0x6c,0x6c,0x63,0x74,0x2d])+_0x5f3a5f(_0x2dff84(_0x5790d9)),_0x32bb48=window[_0x3705bf([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3705bf([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xfda2f8);return _0x32bb48?window[_0x3705bf([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3c4a09(_0x32bb48),0x10)*_0x11ade1:null;}function _0x404a64(_0x59b1a3){return new window[(_0x3705bf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3aba50,_0x2f077c)=>{_0x59b1a3[_0x3705bf([0x74,0x68,0x65,0x6e])](_0x3aba50,_0x2f077c),window[_0x3705bf([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2f077c,0x109ddaa0^_0xdde753);});}}_0x20ec79[_0x3705bf([0x6f,0x6e])](_0x3705bf([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2dd8c0,_0x584a65)=>{if(_0x584a65[0x0]!=_0x5790d9)return _0xa015a5(_0x3705bf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x584a65[0x1]={..._0x584a65[0x1],[_0x3705bf([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xf4a1c9};},{[_0x3705bf([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3705bf([0x68,0x69,0x67,0x68])}),_0x20ec79[_0x3705bf([0x6f,0x6e])](_0x3705bf([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2ac4eb=>{_0x47e73f(_0x2ac4eb[_0x3705bf([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3d5f12=!0x0,_0x4da3a0(_0x2ac4eb[_0x3705bf([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3705bf([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3705bf([0x6c,0x6f,0x77])}),_0x126b28[_0x3705bf([0x74,0x68,0x65,0x6e])](()=>{_0x3d5f12||_0xa015a5(_0x3705bf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3be99d(){return _0x20ec79[_0x3705bf([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3705bf([0x76,0x69,0x65,0x77])][_0x3705bf([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3705bf([0x61,0x75,0x74,0x6f]);}function _0x34eb30(){_0x20ec79[_0x3705bf([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3705bf([0x76,0x69,0x65,0x77])][_0x3705bf([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3705bf([0x61,0x75,0x74,0x6f]);}}function _0x3ba307(_0x270f05){const _0x3050d9=[new window[(_0x3705bf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f206b=>setTimeout(_0x2f206b,0x109530ac^_0xdde753)),_0x126b28[_0x3705bf([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3705bf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1dad35=>{const _0x375aac=0x109c0e67^_0xdde753,_0xf4b3c6=_0x1abc88[_0x3705bf([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x297668(){_0xf4b3c6[_0x3705bf([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x375aac&&_0x1dad35();}_0x297668(),_0xf4b3c6[_0x3705bf([0x6f,0x6e])](_0x3705bf([0x61,0x64,0x64]),_0x297668);})),new window[(_0x3705bf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2d29c0=>{function _0x2bd366(){for(const _0xa5dd0f in window)if(window[_0x3705bf([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x3705bf([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0xa5dd0f))&&window[_0xa5dd0f]==_0x34014f)return _0x2d29c0();_0x20ec79[_0x3705bf([0x73,0x74,0x61,0x74,0x65])]!=_0x3705bf([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x3705bf([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2bd366,0x109c1de8^_0xdde753);}_0x4fb361(_0x3705bf([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x2bd366();})];return window[_0x3705bf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3705bf([0x72,0x61,0x63,0x65])](_0x3050d9)[_0x3705bf([0x74,0x68,0x65,0x6e])](()=>_0x270f05);}async function _0x21f391(){if(await _0x126b28,_0x4fb361(_0x3705bf([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x5c4ba8=_0x1abc88[_0x3705bf([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x16c105=_0x1abc88[_0x3705bf([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])](_0x5c4ba8[_0x3705bf([0x69,0x64])]),_0x575b18=_0x548125(_0x3705bf([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x575b18[_0x3705bf([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x5c4ba8['id'],_0x16c105?_0x16c105['id']:null,!0x0),_0x575b18[_0x3705bf([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x3705bf([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x575b18[_0x3705bf([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x575b18[_0x3705bf([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x13eb62,void(_0x575b18[_0x3705bf([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x13eb62);}if(_0x4fb361(_0x3705bf([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x135d83=_0x548125(_0x3705bf([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x135d83[_0x3705bf([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x3705bf([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x135d83[_0x3705bf([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x135d83[_0x3705bf([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x13eb62,_0x135d83[_0x3705bf([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x13eb62;}_0x20ec79[_0x3705bf([0x6d,0x6f,0x64,0x65,0x6c])][_0x3705bf([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x13eb62,_0x20ec79[_0x3705bf([0x6d,0x6f,0x64,0x65,0x6c])][_0x3705bf([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x13eb62,_0x20ec79[_0x3705bf([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3705bf([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5e246d(){return _0x4fb361(_0x3705bf([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x548125(_0x3705bf([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3705bf([0x73,0x74,0x61,0x74,0x65])]==_0x3705bf([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x6a194c(){return _0x4fb361(_0x3705bf([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 _0xa5d0fa(){return _0x4fb361(_0x3705bf([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x286523(_0x12d844){const _0x301037=_0x512467();_0x20ec79[_0x301037]=_0x3705bf([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])+_0x12d844,_0x12d844[_0x3705bf([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x3705bf([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x512467()]=_0x34014f),_0x12d844!=_0x3705bf([0x56,0x61,0x6c,0x69,0x64])&&_0x21f391();}function _0x512467(){const _0x31e5a6=window[_0x3705bf([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3705bf([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3705bf([0x6e,0x6f,0x77])]())[_0x3705bf([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3705bf([0x2e]),'');let _0x28cc0d=_0x3705bf([0x41]);for(let _0x5716a6=0x0;_0x5716a6<_0x31e5a6[_0x3705bf([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5716a6+=0x2){let _0x25b0dc=window[_0x3705bf([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x31e5a6[_0x3705bf([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5716a6,_0x5716a6+0x2));_0x25b0dc>=_0x1e415a[_0x3705bf([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x25b0dc-=_0x1e415a[_0x3705bf([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x28cc0d+=_0x1e415a[_0x25b0dc];}return _0x28cc0d;}function _0x1c0aa6(){const _0xa5d2a2=_0x4321e3[_0x3705bf([0x73,0x70,0x6c,0x69,0x74])](_0x3705bf([0x2e]));if(0x3!=_0xa5d2a2[_0x3705bf([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4815af(_0xa5d2a2[0x1]);function _0x4815af(_0x5d8553){const _0x161c2e=_0x1925ae(_0x5d8553);return _0x161c2e&&_0x4c4c0e()?_0x161c2e:null;function _0x4c4c0e(){const _0x323381=_0x161c2e[_0x3705bf([0x6a,0x74,0x69])],_0x354b70=window[_0x3705bf([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x323381[_0x3705bf([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x323381[_0x3705bf([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x415ae4={..._0x161c2e,[_0x3705bf([0x6a,0x74,0x69])]:_0x323381[_0x3705bf([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x323381[_0x3705bf([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x415ae4[_0x3705bf([0x76,0x63])],_0x2dff84(_0x415ae4)==_0x354b70;}}}async function _0x3cf3ee(){let _0x330e14=!0x0;try{const _0x28e2d1=_0x4321e3[_0x3705bf([0x73,0x70,0x6c,0x69,0x74])](_0x3705bf([0x2e])),[_0x32e281,_0x42153c,_0x6791b8]=_0x28e2d1;return _0x7e14bc(_0x32e281),await _0x145af4(_0x32e281,_0x42153c,_0x6791b8),_0x330e14;}catch{return!0x1;}function _0x7e14bc(_0x304a2b){const _0x3a472a=_0x1925ae(_0x304a2b);_0x3a472a&&_0x3a472a[_0x3705bf([0x61,0x6c,0x67])]==_0x3705bf([0x45,0x53,0x32,0x35,0x36])||(_0x330e14=!0x1);}async function _0x145af4(_0x2830f5,_0x28b5f3,_0xb03c1b){const _0x26ce8d=window[_0x3705bf([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3705bf([0x66,0x72,0x6f,0x6d])](_0x2acf5d(_0xb03c1b),_0x45e72d=>_0x45e72d[_0x3705bf([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2be97c=new window[(_0x3705bf([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3705bf([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2830f5+_0x3705bf([0x2e])+_0x28b5f3),_0x4bbaba=window[_0x3705bf([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3705bf([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4bbaba)return;const _0x5d0ced=await _0x4bbaba[_0x3705bf([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3705bf([0x6a,0x77,0x6b]),_0x164d60,{[_0x3705bf([0x6e,0x61,0x6d,0x65])]:_0x3705bf([0x45,0x43,0x44,0x53,0x41]),[_0x3705bf([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3705bf([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3705bf([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4bbaba[_0x3705bf([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3705bf([0x6e,0x61,0x6d,0x65])]:_0x3705bf([0x45,0x43,0x44,0x53,0x41]),[_0x3705bf([0x68,0x61,0x73,0x68])]:{[_0x3705bf([0x6e,0x61,0x6d,0x65])]:_0x3705bf([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5d0ced,_0x26ce8d,_0x2be97c)||(_0x330e14=!0x1);}}function _0x1925ae(_0x34d312){return _0x34d312[_0x3705bf([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3705bf([0x65,0x79]))?JSON[_0x3705bf([0x70,0x61,0x72,0x73,0x65])](_0x2acf5d(_0x34d312)):null;}function _0x2acf5d(_0x565c92){return window[_0x3705bf([0x61,0x74,0x6f,0x62])](_0x565c92[_0x3705bf([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3705bf([0x2b]))[_0x3705bf([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3705bf([0x2f])));}function _0x2dff84(_0x3f95f4){let _0x5510d1=0x1505;function _0x1a03eb(_0x50c7f4){for(let _0xf8ef5=0x0;_0xf8ef5<_0x50c7f4[_0x3705bf([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xf8ef5++){const _0x4b1ea4=_0x50c7f4[_0x3705bf([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xf8ef5);_0x5510d1=(_0x5510d1<<0x5)+_0x5510d1+_0x4b1ea4,_0x5510d1&=_0x5510d1;}}function _0x49997a(_0x2e2530){Array[_0x3705bf([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2e2530)?_0x2e2530[_0x3705bf([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x49997a):_0x2e2530&&typeof _0x2e2530==_0x3705bf([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3705bf([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2e2530)[_0x3705bf([0x73,0x6f,0x72,0x74])]()[_0x3705bf([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2f0297,_0x2e368b])=>{_0x1a03eb(_0x2f0297),_0x49997a(_0x2e368b);}):_0x1a03eb(window[_0x3705bf([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2e2530));}return _0x49997a(_0x3f95f4),_0x5510d1>>>0x0;}function _0x5f3a5f(_0x3d9c89){return _0x3d9c89[_0x3705bf([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3705bf([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3705bf([0x30]));}function _0x3c4a09(_0x537a70){return _0x537a70[_0x3705bf([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3705bf([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3705bf([0x6a,0x6f,0x69,0x6e])]('');}function _0x4fb361(_0x469864){return _0x20ec79[_0x3705bf([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3705bf([0x68,0x61,0x73])](_0x469864);}function _0x548125(_0x2b0161){return _0x20ec79[_0x3705bf([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3705bf([0x67,0x65,0x74])](_0x2b0161);}function _0x13eb62(){}function _0x3705bf(_0x2e3e03){return _0x2e3e03['map'](_0x56bd39=>String['fromCharCode'](_0x56bd39))['join']('');}_0x286523(await _0x9f0ae9());}(this);}['createRevision'](_0x10db59){const _0x13b9d8=this['editor']['plugins']['get']('Users');return new I({'id':_0x10db59['id'],'name':_0x10db59['name'],'creator':_0x10db59['creatorId']?_0x13b9d8['getUser'](_0x10db59['creatorId']):null,'diffData':_0x10db59['diffData']||_0x10db59['data'],'authors':_0x10db59['authorsIds']['map'](_0x13b1d3=>_0x13b9d8['getUser'](_0x13b1d3)),'createdAt':new Date(_0x10db59['createdAt']),'attributes':_0x10db59['attributes'],'fromVersion':_0x10db59['fromVersion'],'toVersion':_0x10db59['toVersion']});}['addRevision'](_0x16c112,_0x31497e=0x0){this['_revisions']['add'](_0x16c112,_0x31497e);}['getRevision'](_0x1ee84d){return this['_revisions']['get'](_0x1ee84d);}['getRevisions'](_0x564d92={'toJSON':!0x1}){const _0x43bb29=Array['from'](this['_revisions']);return _0x43bb29['reverse'](),_0x564d92['toJSON']?_0x43bb29['map'](_0x352a0d=>_0x352a0d['toJSON']()):_0x43bb29;}['getIndex'](_0x10eb0c){return this['_revisions']['getIndex'](_0x10eb0c);}['getEarlierVisibleRevision'](_0x12d8b3){const [,_0x2e4f5c]=this['getRevisionsIterator'](_0x12d8b3,{'direction':'earlier'});return _0x2e4f5c;}['getLaterVisibleRevision'](_0x4dc05d){const [,_0x10c2cd]=this['getRevisionsIterator'](_0x4dc05d,{'direction':'later'});return _0x10c2cd;}['getRevisionsInDiff'](_0x3c5568){const _0x293f83=[];for(const _0x48f256 of this['getRevisionsIterator'](_0x3c5568['newRevisionId']))if(_0x293f83['push'](_0x48f256),_0x48f256['id']===_0x3c5568['oldRevisionId'])break;return _0x293f83;}*['getRevisionsIterator'](_0x1a8274,{direction:_0x14cde7='earlier',filter:_0x52d594=()=>!0x0}={}){const _0x3e4cfd='earlier'===_0x14cde7?0x1:-0x1;let _0x2c8ee8=this['_revisions']['get'](_0x1a8274),_0x5433eb=this['getIndex'](_0x2c8ee8);for(yield _0x2c8ee8;_0x2c8ee8;){if(_0x5433eb+=_0x3e4cfd,_0x2c8ee8=this['getRevision'](_0x5433eb),!_0x2c8ee8)return;_0x52d594(_0x2c8ee8)&&(yield _0x2c8ee8);}}}class $ extends _0x235b76{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x3f3e5a,'c'],[_0x56ffeb,'a'],[_0x5585ef,'e'],[_0x478f62,'r'],[_0x1e5a5c,'u']]);['_typeCharToViewClass']=new Map([['c',_0x3f3e5a],['a',_0x56ffeb],['e',_0x5585ef],['r',_0x478f62],['u',_0x1e5a5c]]);async['loadRevisionData'](_0x5b32b6,_0x31e798){if(_0x5b32b6['diffData']||!_0x31e798)return;const _0x4ad86e=this['editor']['config']['get']('collaboration.channelId'),_0x388d09=await _0x31e798['getRevision']({'channelId':_0x4ad86e,'revisionId':_0x5b32b6['id']});_0x5b32b6['diffData']=_0x388d09['diffData'];}['getRevisionDocumentData'](_0x3b0e0c){const _0x3867b1={};for(const _0x129422 in _0x3b0e0c['diffData']){if(_0x3b0e0c['diffData'][_0x129422]['attachChange']&&!_0x3b0e0c['diffData'][_0x129422]['attachChange']['isAttached'])continue;const _0x49ca61=this['_removeRevisionMarkers'](JSON['parse'](_0x3b0e0c['diffData'][_0x129422]['insertions'])),_0x55d215=this['editor']['editing']['view']['document'],_0x14d7b8=new _0x1daad2(_0x55d215,_0x49ca61['map'](_0xb3dafa=>this['_getViewFromDiffObj'](_0xb3dafa,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x3867b1[_0x129422]=this['editor']['data']['processor']['toData'](_0x14d7b8),this['editor']['data']['processor']['useFillerType']('default');}return _0x3867b1;}['getRevisionRootsAttributes'](_0x7b3bf3){const _0x4cb573={};for(const _0x6e4748 in _0x7b3bf3['diffData'])_0x7b3bf3['diffData'][_0x6e4748]['attachChange']&&!_0x7b3bf3['diffData'][_0x6e4748]['attachChange']['isAttached']||(_0x4cb573[_0x6e4748]=_0x7b3bf3['diffData'][_0x6e4748]['attributesAfter']||{});return _0x4cb573;}['_getTypeCharForViewElement'](_0x1528d7){return this['_viewClassToTypeChar']['get'](_0x1528d7['constructor']);}['_getViewFromDiffObj'](_0x50317d,_0x1033ac){const _0x4a20bd=this['editor']['editing']['view']['document'];if('string'==typeof _0x50317d)return new _0x2ab4f3(_0x4a20bd,_0x50317d);{let _0x254102,_0x1eec78;_0x1eec78='u'==_0x50317d['type']||'r'==_0x50317d['type']?[]:_0x50317d['children']['map'](_0x4e35ee=>this['_getViewFromDiffObj'](_0x4e35ee,_0x1033ac));const _0x749dea=this['_typeCharToViewClass']['get'](_0x50317d['type'])||_0x505201,_0x317b37=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x254102=new _0x749dea(_0x4a20bd,_0x50317d['name'],_0x50317d['attributes'],_0x1eec78),'u'==_0x50317d['type']&&_0x50317d['children'][0x0]){const _0x5f1334=_0x50317d['children'][0x0];if(_0x254102['render']=function(_0x427b95){const _0x5063ae=_0x427b95['createElement']('div');return _0x5063ae['innerHTML']=_0x5f1334,_0x5063ae['childNodes'][0x0];},_0x1033ac){const _0x287292=new _0x1daad2(_0x4a20bd);_0x287292['_appendChild'](_0x254102);const _0x1ee05a=Array['from'](_0x317b37['viewChildrenToDom'](_0x287292,{'bind':!0x1})),_0x7a01e8=_0x317b37['domDocument']['createElement']('div');_0x7a01e8['append'](..._0x1ee05a),_0x254102=Array['from'](_0x317b37['domChildrenToView'](_0x7a01e8))[0x0];}}else{if('r'==_0x50317d['type']&&_0x50317d['children'][0x0]){const _0x233711=_0x50317d['children'][0x0];if(_0x254102['render']=function(_0x4a4ce5){_0x4a4ce5['innerHTML']=_0x233711;},_0x1033ac){const _0xcd3c8c=new _0x1daad2(_0x4a20bd);_0xcd3c8c['_appendChild'](_0x254102);const _0x2a7e02=Array['from'](_0x317b37['viewChildrenToDom'](_0xcd3c8c,{'bind':!0x1})),_0xdfcaf4=_0x317b37['domDocument']['createElement']('div');_0xdfcaf4['append'](..._0x2a7e02);const _0x47f924=Array['from'](_0x317b37['domChildrenToView'](_0xdfcaf4));_0x47f924['length']>0x1?_0x254102['_appendChild'](_0x47f924):_0x254102=_0x47f924[0x0];}}}if(_0x50317d['customProperties']){for(const [_0x2fecb8,_0x537cf8]of _0x50317d['customProperties'])_0x254102['_setCustomProperty'](_0x2fecb8,_0x537cf8);}const _0x5aec2d=void 0x0===_0x50317d['fillerOffset']?null:_0x50317d['fillerOffset'];return null!==_0x5aec2d&&(_0x254102['getFillerOffset']=()=>_0x5aec2d),_0x254102;}}['_makeModelFromViewString'](_0x3a4176){const _0x5c5ccc=JSON['parse'](_0x3a4176),_0x4f4cee=this['editor']['editing']['view']['document'],_0x2edadf=new _0x1daad2(_0x4f4cee,_0x5c5ccc['map'](_0x24a131=>this['_getViewFromDiffObj'](_0x24a131,!0x0)));return this['editor']['data']['toModel'](_0x2edadf);}['_removeRevisionMarkers'](_0x193480){return(_0x193480=_0x193480['filter'](_0x438c0f=>!_0x438c0f['name']||'revision-start'!==_0x438c0f['name']&&'revision-end'!==_0x438c0f['name']))['forEach'](_0x20e9f8=>{'string'!=typeof _0x20e9f8&&(_0x20e9f8['children']=this['_removeRevisionMarkers'](_0x20e9f8['children']),_0x20e9f8['attributes']=_0x20e9f8['attributes']['filter'](_0x19ed18=>!_0x19ed18[0x0]['startsWith']('data-revision-')));}),_0x193480;}}function R(_0x5d3310,_0x198597,_0x398005){const t=_0x5d3310['t'];switch(_0x198597){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'},_0x398005);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x398005);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}class h extends _0x235b76{['licenseKey'];['_licenseKeyCheckInterval'];['currentRevision']=null;['repository'];['adapter']=null;['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_utils'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x34eefc,S,$,_0x360008];}constructor(_0x396b32){super(_0x396b32),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new E(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x4f5d09=_0x1b5d50();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x4f5d09},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x335906=this['repository']['getRevision'](0x0),_0x3b2f38=_0x335906&&null===_0x335906['creator']?_0x335906:null;if(this['_continueCurrentRevision']=!!_0x3b2f38&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x5f57bc=this['_source']['getCurrentRevisionId'](),_0x2e8c11=this['repository']['getRevision'](_0x5f57bc);if(_0x2e8c11)this['_startingVersion']=_0x2e8c11['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x59e9d0=this['_source']['history']['_operations']['find'](_0x450209=>!_0x450209['_isInit']),_0x58215b=_0x59e9d0?_0x59e9d0['baseVersion']:this['_source']['history']['version'];_0x335906?(_0x335906['toVersion']<_0x58215b&&_0x335906['_update']({'toVersion':_0x58215b}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x3b2f38['id'],this['_startingVersion']=_0x3b2f38['fromVersion']):(this['_startingVersion']=_0x335906['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x58215b,this['_continueCurrentRevision']=!0x1);}}else _0x3b2f38&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x3b2f38['toVersion'],this['editor']['model']['document']['history']['version']),_0x3b2f38['fromVersion']===_0x3b2f38['toVersion']?(0x0!==_0x3b2f38['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x3b2f38['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x3b2f38['id'],this['_startingVersion']=_0x3b2f38['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',_0x59ff31=>!_0x59ff31),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5747f2=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x30b631;for(const _0x154b10 in _0x5747f2){const _0x50f5cf=_0x154b10,_0x589680=_0x5747f2[_0x50f5cf];if('revisionHistoryLicenseKeyValid'==_0x589680||'revisionHistoryLicenseKeyInvalid'==_0x589680||'revisionHistoryLicenseKeyExpired'==_0x589680||'revisionHistoryLicenseKeyDomainLimit'==_0x589680||'revisionHistoryLicenseKeyNotAllowed'==_0x589680||'revisionHistoryLicenseKeyEvaluationLimit'==_0x589680||'revisionHistoryLicenseKeyTrialLimit'==_0x589680||'revisionHistoryLicenseKeyUsageLimit'==_0x589680){delete _0x5747f2[_0x50f5cf],_0x30b631=_0x589680,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x30b631&&_0x5747f2['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x30b631&&_0x5747f2['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x30b631&&_0x5747f2['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x30b631&&_0x5747f2['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x30b631&&_0x5747f2['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x30b631&&_0x5747f2['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x30b631&&_0x5747f2['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x273e72=this['repository']['getRevision'](0x0),_0x33b406=await this['getRevisionDocumentData'](_0x273e72),_0x5b62e2=await this['getRevisionRootsAttributes'](_0x273e72);this['_replaceEditorDataWithRevisionData'](_0x33b406,_0x5b62e2);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x31d379){this['_source']=_0x31d379;}async['update'](){const _0x50d140=await this['_source']['getLatestVersion']();if(_0x50d140>this['currentRevision']['toVersion']){await this['_loadState']();const _0x29935d=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x50d140});_0x29935d['authors']=_0x29935d['authorsIds']['map'](_0x3c676d=>this['editor']['plugins']['get']('Users')['getUser'](_0x3c676d)),this['currentRevision']['_update'](_0x29935d);}}async['saveRevision'](_0x2e3adf={},_0x4b0f3d=null){const _0x460823=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x4b0f3d>this['currentRevision']['toVersion']&&(_0x4b0f3d=null),null===_0x4b0f3d&&(_0x4b0f3d=await this['_source']['getLatestVersion']());const _0x155729=this['_getFromVersion'](_0x4b0f3d),_0x3449cf=this['buildRevisionData']({'from':_0x155729,'to':_0x4b0f3d});if(this['currentRevision']['toVersion']<_0x4b0f3d){const _0x22cb45=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x4b0f3d,'to':_0x4b0f3d});_0x22cb45['authors']=[],_0x22cb45['authorsIds']=[],_0x22cb45['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x22cb45,!0x0),delete _0x22cb45['authors'],_0x460823['push'](_0x22cb45);}_0x2e3adf['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x2e3adf['name']=_0x2e3adf['name']||null,_0x2e3adf['id']=_0x2e3adf['id']||_0x1b5d50(),_0x2e3adf={..._0x2e3adf,..._0x3449cf};const _0x436191=this['addRevisionData'](_0x2e3adf);_0x460823['push'](_0x2e3adf);const _0x23f3c8=this['repository']['getIndex'](_0x436191);if(0x0!==_0x23f3c8){const _0x43c8a1=this['repository']['getRevision'](_0x23f3c8-0x1);if(_0x43c8a1['fromVersion']!==_0x4b0f3d){const _0x24f5a7=this['_revisionDataBuilder']['getData'](_0x4b0f3d,_0x43c8a1['toVersion']),_0x5e89b1={'id':_0x43c8a1['id'],'diffData':_0x24f5a7['diffData'],'authorsIds':_0x24f5a7['authorsIds'],'authors':_0x24f5a7['authorsIds']['map'](_0x5f5ac3=>this['editor']['plugins']['get']('Users')['getUser'](_0x5f5ac3)),'fromVersion':_0x4b0f3d};_0x43c8a1===this['currentRevision']&&(_0x5e89b1['createdAt']=new Date(_0x2e3adf['createdAt']['getTime']()+0xa)),_0x43c8a1['_update'](_0x5e89b1,!0x0),delete _0x5e89b1['authors'],_0x460823['push'](_0x5e89b1);}}if(this['adapter']){for(const _0x8bac61 of _0x460823)this['_bufferUpdate'](_0x8bac61['id'],_0x8bac61,!0x0);this['sendBufferedUpdates']();}return _0x436191;}['addRevisionData'](_0x2952eb){const _0xd28568=this['repository']['createRevision'](_0x2952eb);return this['adapter']&&_0xd28568['on']('_update',(_0x3c1343,_0x217e92,_0x4adc70)=>{_0x4adc70||(this['_bufferUpdate'](_0x217e92['id'],_0x217e92,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0xd28568,this['_findInsertionIndex'](_0xd28568)),_0xd28568;}async['getRevisionDocumentData'](_0x227409){return await this['_utils']['loadRevisionData'](_0x227409,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x227409);}async['getRevisionRootsAttributes'](_0x2c0018){return await this['_utils']['loadRevisionData'](_0x2c0018,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x2c0018);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x397f0b=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x5bf81d=0x0;_0x5bf81d<_0x397f0b['length'];_0x5bf81d++){const _0x15b132=_0x397f0b[_0x5bf81d];let _0x3e3bef=!0x1;for(const _0x451f1b of Object['keys'](_0x15b132))void 0x0===_0x15b132[_0x451f1b]?delete _0x15b132[_0x451f1b]:'id'!==_0x451f1b&&(_0x3e3bef=!0x0);_0x3e3bef||(_0x397f0b[_0x5bf81d]=null);}if(_0x397f0b=_0x397f0b['filter'](_0x465a9f=>null!==_0x465a9f),!_0x397f0b['length'])return;for(let _0x4e5f5d=0x0;_0x4e5f5d<_0x397f0b['length'];_0x4e5f5d++){const _0x23c5ea=_0x397f0b[_0x4e5f5d];void 0x0!==_0x23c5ea['fromVersion']&&void 0x0===_0x23c5ea['toVersion']&&(_0x23c5ea['toVersion']=this['repository']['getRevision'](_0x23c5ea['id'])['toVersion']),void 0x0!==_0x23c5ea['toVersion']&&void 0x0===_0x23c5ea['fromVersion']&&(_0x23c5ea['fromVersion']=this['repository']['getRevision'](_0x23c5ea['id'])['fromVersion']);}const _0x2eee95=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x397f0b,_0x2eee95)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0xed57c1=>{if(_0xed57c1){for(const _0x39f5ad of _0xed57c1)this['setRevisionData']({'id':_0x39f5ad['id'],'createdAt':_0x39f5ad['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x58713b=null,from:_0x4090c1=null,to:_0x3719f7=null}){_0x4090c1=null!==_0x4090c1?_0x4090c1:_0x58713b['fromVersion'],_0x3719f7=null!==_0x3719f7?_0x3719f7:_0x58713b['toVersion'];const _0x1af56c=this['_revisionDataBuilder']['getData'](_0x4090c1,_0x3719f7),_0x5df2f2={'diffData':_0x1af56c['diffData'],'authorsIds':_0x1af56c['authorsIds'],'fromVersion':_0x4090c1,'toVersion':_0x3719f7};if(!_0x58713b||_0x3719f7!==_0x58713b['toVersion']){const _0x5e15fa=_0x3719f7-0x1,_0x3703cb=this['_source']['history']['getOperation'](_0x5e15fa);_0x5df2f2['createdAt']=_0x3703cb&&_0x3703cb['createdAt']||new Date();}if(this['_loadedStateData']&&_0x4090c1===this['_loadedStateData']['fromVersion']){for(const _0x15cbdb of this['_loadedStateData']['authors'])_0x5df2f2['authorsIds']['includes'](_0x15cbdb['id'])||_0x5df2f2['authorsIds']['push'](_0x15cbdb['id']);}return _0x5df2f2;}['_bufferUpdate'](_0x1ef3b5,_0x122b7f,_0x5dca05){if(this['_bufferedUpdates']['has'](_0x1ef3b5)){const _0xee399=this['_bufferedUpdates']['get'](_0x1ef3b5);_0x122b7f=_0x5dca05?{..._0xee399,..._0x122b7f}:{..._0x122b7f,..._0xee399};}this['_bufferedUpdates']['set'](_0x1ef3b5,_0x122b7f);}['setRevisionData'](_0x2b543a){const _0x184480=this['repository']['getRevision'](_0x2b543a['id']);if(_0x2b543a['createdAt']&&(_0x2b543a['createdAt']=new Date(_0x2b543a['createdAt'])),_0x2b543a['authorsIds']){const _0x6f73b8=this['editor']['plugins']['get']('Users');_0x2b543a['authors']=_0x2b543a['authorsIds']['map'](_0x1e358c=>_0x6f73b8['getUser'](_0x1e358c));}_0x184480['_update'](_0x2b543a,!0x0);}['_createInitialRevision'](_0x9cde95){const _0x22abea=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x22abea)this['_initialRevisionId']=_0x22abea['id'];else{const _0x11d022=!this['editor']['model']['document']['roots']['find'](_0x450251=>this['editor']['model']['hasContent'](_0x450251)),_0x598bd4=this['editor']['plugins']['get']('Users')['me']['id'],_0x24e4d6=R(this['editor']['locale'],_0x11d022?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x9cde95,'to':_0x9cde95,'id':this['_initialRevisionId'],'name':_0x24e4d6,'creatorId':_0x598bd4});}}['_createCurrentRevision'](_0x4fd42d){const _0x591cc1=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x591cc1),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x4fd42d,'to':_0x4fd42d,'id':_0x591cc1,'name':'','creatorId':null}));}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_utils']['loadRevisionData'](this['currentRevision'],this['adapter']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}['_replaceEditorDataWithRevisionData'](_0x567af5,_0x5b5dc9){let _0xc70c1f=this['editor']['config']['get']('initialData'),_0x557257=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0xc70c1f){_0xc70c1f={};for(const _0x1540b4 of this['editor']['model']['document']['getRootNames']())_0xc70c1f[_0x1540b4]='';}if('string'==typeof _0xc70c1f&&(_0xc70c1f={'main':_0xc70c1f}),void 0x0===_0x557257){_0x557257={};for(const _0x31362c of this['editor']['model']['document']['getRootNames']())_0x557257[_0x31362c]={};}let _0x35e04c=!0x1;const _0x343698=Object['keys'](_0xc70c1f),_0x5c76af=Object['keys'](_0x567af5);for(const _0x297049 of _0x343698){if(_0xc70c1f[_0x297049]!==_0x567af5[_0x297049]&&''!==_0xc70c1f[_0x297049]['trim']()){_0x35e04c=!0x0;break;}if(!_0x2b6e41(_0x557257[_0x297049],_0x5b5dc9[_0x297049])&&Object['keys'](_0x557257[_0x297049])['length']>0x0){_0x35e04c=!0x0;break;}}_0x35e04c||(_0x35e04c=_0x5c76af['some'](_0x1acc80=>!this['editor']['model']['document']['getRoot'](_0x1acc80))),_0x35e04c&&_0x7ece4e('editor-initial-data-replaced-with-revision-data',{'editorData':_0xc70c1f,'editorRootsAttributes':_0x557257,'revisionData':_0x567af5,'revisionRootsAttributes':_0x5b5dc9}),this['editor']['config']['set']('initialData',_0x567af5),this['editor']['config']['set']('rootsAttributes',_0x5b5dc9);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x534519=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x534519['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x253cc5){const _0x4fc80d=this['repository']['getRevisions']();_0x4fc80d['reverse']();let _0x106538=0x0;for(;_0x106538<_0x4fc80d['length'];){const _0x3d69bb=_0x4fc80d[_0x106538];if(_0x3d69bb===this['currentRevision']){_0x106538++;continue;}if(_0x3d69bb['id']===this['_initialRevisionId'])break;const _0x6db859=_0x253cc5['toVersion']-_0x3d69bb['toVersion']||_0x253cc5['fromVersion']-_0x3d69bb['fromVersion'];if(_0x6db859>0x0)break;if(_0x6db859<0x0)_0x106538++;else{if(!_0x253cc5['creator']&&_0x3d69bb['creator'])break;if(_0x3d69bb['creator']||!_0x253cc5['creator']){if(_0x253cc5['createdAt']>_0x3d69bb['createdAt'])break;_0x106538++;}else _0x106538++;}}return _0x106538;}['_getFromVersion'](_0x567910){const _0x4e8c0f=this['repository']['getRevisions']();_0x4e8c0f['reverse'](),_0x4e8c0f['shift']();const _0x20c624=_0x4e8c0f['find'](_0xe52e68=>_0xe52e68['toVersion']<=_0x567910)['toVersion'];return _0x20c624<this['_startingVersion']?this['_startingVersion']:_0x20c624;}['_makeRevision']({name:_0x215644,from:_0x30bea5,to:_0x62f686,creatorId:_0x1d6e61,id:_0x2f7b19}){const _0x5c0ba2=this['buildRevisionData']({'from':_0x30bea5,'to':_0x62f686});_0x5c0ba2['name']=_0x215644,_0x5c0ba2['creatorId']=_0x1d6e61,_0x5c0ba2['id']=_0x2f7b19;const _0x183d0f=this['addRevisionData'](_0x5c0ba2);return this['adapter']&&this['_bufferUpdate'](_0x5c0ba2['id'],_0x5c0ba2,!0x0),_0x183d0f;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class E{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x1fcb8f){this['editor']=_0x1fcb8f,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'](_0x44009b){this['source']=_0x44009b;const _0x534280=new Map(),_0x5f2999=new Map(),_0x155792=this['editor']['model']['document']['roots']['map'](_0x16c8bb=>_0x16c8bb['rootName']);for(const _0x369a5d of _0x155792){const _0x529727=this['editor']['model']['document']['getRoot'](_0x369a5d),_0x8de451=x(_0x529727);_0x534280['set'](_0x369a5d,_0x8de451),_0x5f2999['set'](_0x369a5d,Object['fromEntries'](_0x529727['getAttributes']()));}const _0x185622=Array['from'](this['editor']['model']['markers'])['map'](_0x58b3fa=>[_0x58b3fa['name'],_0x58b3fa['getRange']()]),_0x4eb084=this['source']['version'];this['_saveMetaData'](_0x4eb084,_0x534280,_0x185622,_0x5f2999),this['_startingRevisionId']=this['_revisionId'];const _0x4e0461=new Map(),_0x206600=new Map();for(const _0x52d032 of _0x155792){const _0x29d856=N(_0x52d032);_0x4e0461['set'](_0x52d032,_0x29d856),_0x206600['set'](_0x52d032,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x4e0461,[],_0x206600);}['getData'](_0x5f2ecc,_0x3332cb){if(this['_lastFrom']===_0x5f2ecc&&this['_lastTo']<=_0x3332cb)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x3332cb,!0x0);else{if(!this['_savedMetaData']['has'](_0x5f2ecc)){const _0x4e48b6=this['_getPreviousFrom'](_0x5f2ecc);this['_calculateMetaData'](_0x4e48b6,_0x5f2ecc,!0x1);}this['_calculateMetaData'](_0x5f2ecc,_0x3332cb,!0x0);}return this['_lastFrom']=_0x5f2ecc,this['_lastTo']=_0x3332cb,this['_getState']();}['loadState'](_0x4d064b){const _0x252485=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x4d064b['fromVersion'],this['_lastTo']=_0x4d064b['toVersion'];for(const _0x11054e in _0x4d064b['diffData']){const _0x21a847=_0x4d064b['diffData'][_0x11054e]['attachChange'],_0x493d35=_0x186599(_0x4d064b['diffData'][_0x11054e]['attributesBefore'])||{},_0x28652d=_0x252485['_makeModelFromViewString'](_0x4d064b['diffData'][_0x11054e]['deletions']);_0x28652d['rootName']=_0x11054e,_0x28652d['_isAttached']=!_0x21a847||!_0x21a847['isAttached'],_0x28652d['isAttached']=()=>_0x28652d['_isAttached'],this['_baseRoots']['set'](_0x11054e,_0x28652d),this['_baseRootsAttributes']['set'](_0x11054e,_0x493d35),_0x21a847&&this['_touchedRoots']['set'](_0x11054e,_0x21a847);const _0x39028d=this['_makeIdsRoot'](_0x28652d);this['_baseIdsRoots']['set'](_0x11054e,_0x39028d);for(const [_0x251c1f,_0x2360ca]of _0x28652d['markers']){if(!_0x251c1f['startsWith']('revision:'))continue;const _0x4d8cd7=_0x251c1f['split'](':')[0x2];for(const _0x1144b8 of _0x2360ca['getWalker']({'singleCharacters':!0x0})){const _0x56c361=this['_getVidAttributeName'](_0x1144b8),_0x1d160a='elementEnd'==_0x1144b8['type']?_0x1144b8['previousPosition']['path']['slice'](0x0,-0x1):_0x1144b8['previousPosition']['path'],_0x2cc688=_0x39028d['getNodeByPath'](_0x1d160a)['getAttribute'](_0x56c361);this['_touched']['set'](_0x2cc688,{'userId':_0x4d8cd7});}}}this['_startingRevisionId']=this['_revisionId'];const _0x47e4d5=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x2d9f80=>!this['_touched']['has'](_0x2d9f80));let _0x154b43=0x0;const _0x285084=new Map();for(const _0x1ec005 in _0x4d064b['diffData']){const _0x100dc7=_0x4d064b['diffData'][_0x1ec005]['attachChange'],_0x3753f9=_0x186599(_0x4d064b['diffData'][_0x1ec005]['attributesAfter'])||{},_0x58236d=_0x252485['_makeModelFromViewString'](_0x4d064b['diffData'][_0x1ec005]['insertions']);_0x58236d['rootName']=_0x1ec005,_0x58236d['_isAttached']=!_0x100dc7||_0x100dc7['isAttached'],_0x58236d['isAttached']=()=>_0x58236d['_isAttached'],this['_diffRoots']['set'](_0x1ec005,_0x58236d),this['_diffRootsAttributes']['set'](_0x1ec005,_0x3753f9);const _0x4de132=this['_makeIdsRoot'](_0x58236d,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x1ec005,_0x4de132),_0x285084['set'](_0x1ec005,_0x58236d['isAttached']()?_0x3753f9:{});for(const [_0xe13652,_0x21a89b]of _0x58236d['markers']){if(!_0xe13652['startsWith']('revision:'))continue;const _0x5c069f=_0xe13652['split'](':')[0x2];for(const _0x3e1a7a of _0x21a89b['getWalker']({'singleCharacters':!0x0})){const _0x5b7ec1=this['_getVidAttributeName'](_0x3e1a7a),_0x4b1e07=this['_revisionId']++,_0x5ea0df='elementEnd'==_0x3e1a7a['type']?_0x3e1a7a['previousPosition']['path']['slice'](0x0,-0x1):_0x3e1a7a['previousPosition']['path'];_0x4de132['getNodeByPath'](_0x5ea0df)['_setAttribute'](_0x5b7ec1,_0x4b1e07),this['_touched']['set'](_0x4b1e07,{'userId':_0x5c069f});}}for(const _0x382af2 of this['editor']['model']['createRangeIn'](_0x58236d)['getWalker']({'singleCharacters':!0x0})){const _0x2c7a9c=this['_getVidAttributeName'](_0x382af2),_0x39e61f='elementEnd'==_0x382af2['type']?_0x382af2['previousPosition']['path']['slice'](0x0,-0x1):_0x382af2['previousPosition']['path'],_0xdb1dd5=_0x4de132['getNodeByPath'](_0x39e61f);_0xdb1dd5['getAttribute'](_0x2c7a9c)>0x0||_0xdb1dd5['_setAttribute'](_0x2c7a9c,_0x47e4d5[_0x154b43++]);}for(const [_0x28e1ba,_0x51981a]of _0x58236d['markers'])_0x28e1ba['startsWith']('revision:')||this['_markers']['set'](_0x28e1ba,_0x51981a);}const _0x5da046=N('$graveyard');this['_baseRoots']['set']('$graveyard',_0x5da046),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x5da046,0x1));const _0xe02e9=N('$graveyard');this['_diffRoots']['set']('$graveyard',_0xe02e9),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0xe02e9,0x1));const _0x372455=Array['from'](this['_diffRoots'])['map'](([_0x328657,_0x422101])=>[_0x328657,x(_0x422101)]);this['_saveMetaData'](this['_lastTo'],_0x372455,this['_markers'],_0x285084);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x627f27,_0x17cfd1,_0x1c47b7,_0x50f069){const _0xa62f7a=new Map(_0x17cfd1),_0xfcdaa0=new Map(_0x186599(_0x50f069)),_0x55a269=new Map();for(const [_0x594abb,_0x2cf8e0]of _0x1c47b7)_0x55a269['set'](_0x594abb,{'start':_0x2cf8e0['start']['clone'](),'end':_0x2cf8e0['end']['clone'](),'rootName':_0x2cf8e0['root']['rootName']});this['_savedMetaData']['set'](_0x627f27,{'roots':_0xa62f7a,'markers':_0x55a269,'rootsAttributes':_0xfcdaa0});}['_removeMetaData'](_0x55207f){this['_savedMetaData']['delete'](_0x55207f);}['_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'](_0x40b11f,_0x2b5d07=null){let _0x5e1aa1=null;_0x40b11f['is']('documentFragment')||(_0x5e1aa1=new _0x11a5c7(_0x40b11f['name'],{'vid_start':null===_0x2b5d07?this['_revisionId']++:_0x2b5d07++}));const _0x3d7111=[];for(const _0x10f175 of _0x40b11f['getChildren']())if(_0x10f175['is']('element')){_0x3d7111['push'](this['_makeIdsRoot'](_0x10f175,_0x2b5d07));const _0x2a6c27=_0x3d7111[_0x3d7111['length']-0x1];null!==_0x2b5d07&&(_0x2b5d07=_0x2a6c27['is']('element','$text')?_0x2a6c27['getAttribute']('vid')+0x1:_0x2a6c27['getAttribute']('vid_end')+0x1);}else{for(let _0x1226f6=0x0;_0x1226f6<_0x10f175['offsetSize'];_0x1226f6++)_0x3d7111['push'](new _0x11a5c7('$text',{'vid':null===_0x2b5d07?this['_revisionId']++:_0x2b5d07++}));}if(_0x40b11f['is']('documentFragment')){const _0x220b95=N(_0x40b11f['rootName']);return _0x220b95['_insertChild'](0x0,_0x3d7111),_0x220b95;}return _0x5e1aa1['_setAttribute']('vid_end',null===_0x2b5d07?this['_revisionId']++:_0x2b5d07++),_0x5e1aa1['_insertChild'](0x0,_0x3d7111),_0x5e1aa1;}['_calculateMetaData'](_0x425895,_0x3fa86e,_0x5ac94d){this['_reset']();const {roots:_0x5c7b69,markers:_0x2795ef,rootsAttributes:_0x391188}=this['_savedMetaData']['get'](_0x425895);this['_baseRoots']=new Map(_0x5c7b69),this['_baseRootsAttributes']=new Map(_0x186599(_0x391188));for(const [_0x35d4b5,_0x32ce35]of this['_baseRoots'])if('$graveyard'!==_0x35d4b5&&(this['_diffRoots']['set'](_0x35d4b5,x(_0x32ce35)),this['_diffRootsAttributes']=new Map(_0x186599(_0x391188)),_0x5ac94d)){const _0x4d6427=this['_revisionId'];this['_idsRoots']['set'](_0x35d4b5,this['_makeIdsRoot'](_0x32ce35)),this['_baseIdsRoots']['set'](_0x35d4b5,this['_makeIdsRoot'](_0x32ce35,_0x4d6427));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x5ac94d&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x45a44f,_0x265e89]of _0x2795ef){const _0x56392e=this['_baseRoots']['get'](_0x265e89['rootName']),_0x47772a=this['_diffRoots']['get'](_0x265e89['rootName']),_0x515499=new _0x150733(this['_fixPosition'](_0x265e89['start'],_0x56392e),this['_fixPosition'](_0x265e89['end'],_0x56392e)),_0x244df3=this['_fixRange'](_0x515499,_0x47772a);_0x56392e['markers']['set'](_0x45a44f,_0x515499),this['_markers']['set'](_0x45a44f,_0x244df3);}this['_applyOperations'](_0x425895,_0x3fa86e,_0x5ac94d);}['_applyOperations'](_0x26f574,_0x3ef0ed,_0x16aaf9){for(const _0x3b4480 of this['source']['getOperations'](_0x26f574,_0x3ef0ed))this['_handleOperation'](_0x3b4480,_0x16aaf9);for(const _0x4378a0 of this['_diffRoots']['values']())_0x4378a0['markers']['clear']();for(const [_0x52ceaa,_0x2edb91]of this['_markers']){this['_diffRoots']['get'](_0x2edb91['root']['rootName'])['markers']['set'](_0x52ceaa,_0x2edb91['clone']());}const _0x1a1f5e=new Map(),_0x53807e=new Map();for(const [_0x5b5ccd,_0xee22e4]of this['_diffRoots'])_0x1a1f5e['set'](_0x5b5ccd,x(_0xee22e4)),_0x53807e['set'](_0x5b5ccd,this['_diffRootsAttributes']['get'](_0x5b5ccd));this['_saveMetaData'](_0x3ef0ed,_0x1a1f5e,this['_markers'],_0x53807e);}['_getPreviousFrom'](_0x3594fb){const _0x11a724=Array['from'](this['_savedMetaData']['keys']());_0x11a724['sort']((_0x3300b2,_0x506b0b)=>_0x3300b2-_0x506b0b),_0x11a724['reverse']();for(const _0x1e1a22 of _0x11a724)if(_0x1e1a22<_0x3594fb)return _0x1e1a22;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0xfc9c3e,_0x50ed73){const _0x1cd832=Array['from'](_0x50ed73['markers'])['map'](([_0x57a84d,_0x286a6c])=>[_0x57a84d,this['_fixRange'](_0x286a6c,_0xfc9c3e)]);_0xfc9c3e['markers']=new Map(_0x1cd832);}['_transformMarkers'](_0x533328){for(const _0x2bd361 of this['_markers']['values']()){const _0xc23c57=_0x2bd361['getTransformedByOperation'](_0x533328),_0x10c7b6=_0x150733['_createFromRanges'](_0xc23c57);_0x2bd361['start']=_0x10c7b6['start'],_0x2bd361['end']=_0x10c7b6['end'];}}['_handleOperation'](_0x548814,_0x2393ae){if('addRoot'!=_0x548814['type']&&'detachRoot'!=_0x548814['type']){if('insert'==_0x548814['type']){const _0x1fc8e9=_0x548814['position']['root']['rootName'];this['_diffRoots']['has'](_0x1fc8e9)||(this['_diffRoots']['set'](_0x1fc8e9,N(_0x1fc8e9,!0x0)),this['_diffRootsAttributes']['set'](_0x1fc8e9,{}),_0x2393ae&&this['_idsRoots']['set'](_0x1fc8e9,N(_0x1fc8e9,!0x0)));}else{if('addRootAttribute'==_0x548814['type']||'removeRootAttribute'==_0x548814['type']||'changeRootAttribute'==_0x548814['type'])return void this['_handleRootAttributeOperation'](_0x548814);'marker'==_0x548814['type']&&this['_handleMarkerOperation'](_0x548814);}if('marker'!==_0x548814['type']){const _0x196341=this['_cloneOperation'](_0x548814,this['_diffRoots']);_0x196341['_execute'](),this['_transformMarkers'](_0x196341);}if(_0x2393ae)switch(_0x548814['type']){case'insert':this['_handleInsertOperation'](_0x548814);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x548814);break;case'merge':this['_handleMergeOperation'](_0x548814);break;case'split':this['_handleSplitOperation'](_0x548814);}}else this['_handleRootOperation'](_0x548814,_0x2393ae);}['_cloneOperation'](_0x507f32,_0x35b2e1){const _0x7180d1=_0x507f32['clone']();return _0x7180d1['_authorId']=_0x507f32['_authorId'],this['_fixOperation'](_0x7180d1,_0x35b2e1),_0x7180d1;}['_getBaseVids'](_0x15084f){return _0x15084f['map'](_0x5364cf=>{const _0x5a179a=this['_getVidAttributeName'](_0x5364cf);return Number(_0x5364cf['item']['getAttribute'](_0x5a179a));});}['_generateTape'](_0x42c07b,_0x55b6f7){if(_0x42c07b['is']('element','$text'))_0x55b6f7['push']({'item':_0x42c07b,'type':'text'});else{_0x42c07b['is']('element')&&_0x55b6f7['push']({'item':_0x42c07b,'type':'elementStart'});for(const _0x41fd13 of _0x42c07b['getChildren']())this['_generateTape'](_0x41fd13,_0x55b6f7);_0x42c07b['is']('element')&&_0x55b6f7['push']({'item':_0x42c07b,'type':'elementEnd'});}return _0x55b6f7;}['_getState'](){const _0x2f16ff=new Map(this['_touched']),_0x60bae3=new Map(_0x2f16ff),_0x4b6965=new Map(),_0x57c483={'insertions':{},'deletions':{}},_0xc1b704={'insertions':{},'deletions':{}},_0xb4b1f8=new Map(),_0x465c35=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x465c35['delete']('$graveyard');for(const _0x4ce582 of _0x465c35){const _0x483c82=this['_diffRoots']['get'](_0x4ce582)||N(_0x4ce582,!0x1),_0x1b3e52=this['_baseRoots']['get'](_0x4ce582)||N(_0x4ce582,!0x1);_0x483c82['isAttached']()||_0x1b3e52['isAttached']()?(_0x57c483['insertions'][_0x4ce582]=x(_0x483c82),_0x57c483['deletions'][_0x4ce582]=x(_0x1b3e52),this['_copyMarkers'](_0x57c483['deletions'][_0x4ce582],_0x1b3e52),this['_copyMarkers'](_0x57c483['insertions'][_0x4ce582],_0x483c82),_0xc1b704['insertions'][_0x4ce582]=this['_generateTape'](this['_idsRoots']['get'](_0x4ce582),[]),_0xc1b704['deletions'][_0x4ce582]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x4ce582)||N(_0x4ce582,!0x1),[])):_0x465c35['delete'](_0x4ce582);}for(const _0x2a0389 of _0x465c35){const _0x32d868=_0xc1b704['insertions'][_0x2a0389];for(const _0x197ab0 of _0x32d868){const _0x29ef42=this['_getVidAttributeName'](_0x197ab0),_0x100b4a=_0x197ab0['item']['getAttribute'](_0x29ef42);_0x60bae3['delete'](_0x100b4a),_0x100b4a>=this['_startingRevisionId']&&_0x4b6965['set'](_0x100b4a,_0x2f16ff['get'](_0x100b4a));}}for(const _0x33b8f of _0x465c35){const _0x967add=_0xc1b704['insertions'][_0x33b8f],_0x465d87=this['_getBaseVids'](_0xc1b704['deletions'][_0x33b8f]);let _0x418c05=0x0;for(const _0x41fa90 of _0x967add){const _0x13c964=this['_getVidAttributeName'](_0x41fa90),_0x3d2de1=_0x41fa90['item']['getAttribute'](_0x13c964);if(!_0x4b6965['has'](_0x3d2de1)&&!_0xb4b1f8['has'](_0x3d2de1)){if(_0x60bae3['has'](_0x3d2de1))_0x418c05++;else{if(_0x3d2de1!=_0x465d87[_0x418c05]){const _0x2c4cbf=_0x2f16ff['get'](_0x3d2de1)||_0x2f16ff['get'](_0x465d87[_0x418c05]);for(;_0x3d2de1!=_0x465d87[_0x418c05];)_0x60bae3['has'](_0x465d87[_0x418c05])||(_0xb4b1f8['set'](_0x465d87[_0x418c05],_0x2c4cbf),_0x2f16ff['set'](_0x465d87[_0x418c05],_0x2c4cbf)),_0x418c05++;}_0x418c05++;}}}}for(const _0x39fb2c of _0x465c35){const _0x2f95de=_0xc1b704['insertions'][_0x39fb2c];for(const _0x4dbaf7 of _0x2f95de){const _0x1ddd40=this['_getVidAttributeName'](_0x4dbaf7),_0x593791=_0x4dbaf7['item']['getAttribute'](_0x1ddd40);if(_0xb4b1f8['has'](_0x593791)){const _0x54d56f=_0xb4b1f8['get'](_0x593791);_0x60bae3['has'](_0x593791)||_0x60bae3['set'](_0x593791,{..._0x54d56f}),_0x4b6965['set'](_0x593791,{..._0x54d56f});}}}for(const _0x132ed0 of _0x60bae3['keys']())_0x132ed0>=this['_startingRevisionId']&&_0x60bae3['delete'](_0x132ed0);const _0x136bf0=new Map();for(const _0x32052f of _0x465c35){let _0x96e3ad=_0xc1b704['insertions'][_0x32052f];for(const _0x3dc28a of _0x96e3ad)if(_0x3dc28a['item']['is']('element','tableCell')){const _0x562b49=this['_getVidAttributeName'](_0x3dc28a),_0x54266f=_0x3dc28a['item']['getAttribute'](_0x562b49);if(_0x4b6965['has'](_0x54266f)){const _0x455ab2=_0x3dc28a['item']['parent']['parent']['getAttribute']('vid_start'),_0x261065=_0x136bf0['get'](_0x455ab2)||new Set();_0x261065['add'](_0x4b6965['get'](_0x54266f)['userId']),_0x136bf0['set'](_0x455ab2,_0x261065);}}_0x96e3ad=_0xc1b704['deletions'][_0x32052f];for(const _0x6eaa6d of _0x96e3ad)if(_0x6eaa6d['item']['is']('element','tableCell')){const _0x4f1a33=this['_getVidAttributeName'](_0x6eaa6d),_0x1396c7=_0x6eaa6d['item']['getAttribute'](_0x4f1a33);if(_0x60bae3['has'](_0x1396c7)){const _0x25b272=_0x6eaa6d['item']['parent']['parent']['getAttribute']('vid_start'),_0x4b9793=_0x136bf0['get'](_0x25b272)||new Set();_0x4b9793['add'](_0x60bae3['get'](_0x1396c7)['userId']),_0x136bf0['set'](_0x25b272,_0x4b9793);}}for(const _0x1e02db of _0x136bf0['keys']())(_0x4b6965['has'](_0x1e02db)||_0x60bae3['has'](_0x1e02db))&&_0x136bf0['delete'](_0x1e02db);}for(const _0x370b2b of _0x465c35){const _0x199aa5=_0xc1b704['insertions'][_0x370b2b];let _0x48d8ab=null,_0x160490=null;for(const _0x266206 of _0x199aa5){const _0x26018b=this['_getVidAttributeName'](_0x266206),_0x370040=_0x266206['item']['getAttribute'](_0x26018b),_0x3f2166=_0x136bf0['get'](_0x370040);_0x3f2166&&'elementStart'==_0x266206['type']&&(_0x48d8ab=Array['from'](_0x3f2166)[0x0],_0x160490=_0x266206['item']['getAttribute']('vid_end')),_0x48d8ab&&(_0x60bae3['set'](_0x370040,{'userId':_0x48d8ab}),_0x4b6965['set'](_0x370040,{'userId':_0x48d8ab})),_0x370040==_0x160490&&(_0x48d8ab=null,_0x160490=null);}}const _0x943589={},_0x48355a=new Set();for(const _0x48d9af of _0x465c35){const _0xcc29df=_0x57c483['deletions'][_0x48d9af],_0x43f90d=_0x57c483['insertions'][_0x48d9af];for(const {userId:_0xf013f1}of this['_touchedMarkers']['values']())null!==_0xf013f1&&_0x48355a['add'](_0xf013f1);for(const {userId:_0x1882a1}of this['_touchedRoots']['values']())null!==_0x1882a1&&_0x48355a['add'](_0x1882a1);this['_markChanges'](_0x43f90d,_0xc1b704['insertions'][_0x48d9af],_0x4b6965,'insertion',_0x48355a),this['_markChanges'](_0xcc29df,_0xc1b704['deletions'][_0x48d9af],_0x60bae3,'deletion',_0x48355a),_0x943589[_0x48d9af]={'insertions':this['_prepareViewToSave'](_0x43f90d),'deletions':this['_prepareViewToSave'](_0xcc29df),'attachChange':this['_touchedRoots']['get'](_0x48d9af)||null,'attributesBefore':_0x186599(this['_baseRootsAttributes']['get'](_0x48d9af))||{},'attributesAfter':_0x186599(this['_diffRootsAttributes']['get'](_0x48d9af))};}return{'diffData':_0x943589,'authorsIds':Array['from'](_0x48355a)};}['_processRootBeforeSave'](_0x37fda0){for(const [,_0x293335]of _0x37fda0['markers']){const _0x16b3b1=_0x293335['start']['getAncestors']()['filter'](_0x4e3bd5=>'tableCell'==_0x4e3bd5['name']);for(const _0x1351c4 of _0x16b3b1)0x1==_0x1351c4['childCount']&&_0x1351c4['getChild'](0x0)['is']('element','paragraph')&&_0x1351c4['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x1316b5){this['_processRootBeforeSave'](_0x1316b5);const _0x77b893=this['editor']['data']['toView'](_0x1316b5,{}),_0x1ee484=Array['from'](_0x77b893['getChildren']())['map'](_0x21097e=>this['_getViewJson'](_0x21097e));return JSON['stringify'](_0x1ee484);}['_getViewJson'](_0x998443){if(_0x998443['is']('$text'))return _0x998443['data'];{const _0x5955fe=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x4e6d82=_0x998443,_0x638797=this['editor']['data']['htmlProcessor']['domConverter'],_0x23b65d={'type':_0x5955fe['_getTypeCharForViewElement'](_0x4e6d82),'name':_0x4e6d82['name'],'attributes':Array['from'](_0x4e6d82['getAttributes']()),'children':Array['from'](_0x4e6d82['getChildren']())['map'](_0x81569=>this['_getViewJson'](_0x81569))};if(_0x998443['is']('uiElement')&&'$comment'!=_0x998443['name']){const _0x31285d=_0x998443['render'](_0x638797['domDocument'],_0x638797);_0x23b65d['children']['push'](_0x31285d['outerHTML']);}else{if(_0x998443['is']('rawElement')){const _0x2da7d8=_0x638797['domDocument']['createElement'](_0x4e6d82['name']);_0x998443['render'](_0x2da7d8,_0x638797),_0x23b65d['children']['push'](_0x2da7d8['innerHTML']);}}const _0x48e62a=Array['from'](_0x4e6d82['getCustomProperties']());_0x48e62a['length']>0x0&&(_0x23b65d['customProperties']=_0x48e62a);const _0x11cd7a=_0x4e6d82['getFillerOffset']();return null!==_0x11cd7a&&(_0x23b65d['fillerOffset']=_0x11cd7a),_0x23b65d;}}['_markChanges'](_0x455465,_0x5d6689,_0xd9fa0e,_0x1503c9,_0x207a0c){let _0x286e7b=null,_0x37cd9e=null,_0x114404=0x0;const _0x4eae50=this['editor']['model'];for(let _0x349a83=0x0;_0x349a83<_0x5d6689['length'];_0x349a83++){const _0x4577cd=this['_getVidAttributeName'](_0x5d6689[_0x349a83]),_0x102b95=_0x5d6689[_0x349a83]['item']['getAttribute'](_0x4577cd),_0x3fc7e1=_0xd9fa0e['get'](_0x102b95),_0x176a64=_0x349a83==_0x5d6689['length']-0x1;(!_0x286e7b&&_0x3fc7e1&&(_0x286e7b=_0x3fc7e1,_0x37cd9e=_0x5d6689[_0x349a83]),_0x286e7b&&(!_0x3fc7e1||_0x3fc7e1['userId']!=_0x286e7b['userId']))&&(_0x7e6e6d(_0x3fc7e1,P(_0x37cd9e,_0x455465,_0x4eae50),P(_0x5d6689[_0x349a83],_0x455465,_0x4eae50)),_0x286e7b=_0x3fc7e1||null,_0x37cd9e=_0x3fc7e1?_0x5d6689[_0x349a83]:null),_0x286e7b&&_0x176a64&&_0x7e6e6d(_0x3fc7e1,P(_0x37cd9e,_0x455465,_0x4eae50),V(_0x5d6689[_0x349a83],_0x455465,_0x4eae50));}function _0x7e6e6d(_0x4afd75,_0x1856a6,_0x45eb73){const _0xa995a7=_0x286e7b['userId'],_0x35257f='revision:'+_0x1503c9+':'+_0xa995a7+':'+_0x114404++,_0x5b0fbe=_0x4eae50['createRange'](_0x1856a6,_0x45eb73);_0x455465['markers']['set'](_0x35257f,_0x5b0fbe),null!==_0xa995a7&&_0x207a0c['add'](_0xa995a7);}}['_getVidAttributeName'](_0xe8bed0){switch(_0xe8bed0['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x5f1b86,_0x220b9b){_0x5f1b86['baseVersion']=null;for(const _0x1edd77 in _0x5f1b86){const _0x31bdc7=_0x5f1b86[_0x1edd77];if(_0x31bdc7 instanceof _0x1112ca){const _0x4d306d=_0x220b9b['get'](_0x31bdc7['root']['rootName']);_0x5f1b86[_0x1edd77]=this['_fixPosition'](_0x31bdc7,_0x4d306d);}if(_0x31bdc7 instanceof _0x150733){const _0x21baca=_0x220b9b['get'](_0x31bdc7['root']['rootName']);_0x5f1b86[_0x1edd77]=this['_fixRange'](_0x31bdc7,_0x21baca);}'root'===_0x1edd77&&(_0x5f1b86['root']=_0x220b9b['get'](_0x5f1b86['root']['rootName']));}}['_fixRange'](_0x1a7df8,_0x51fae1){return this['editor']['model']['createRange'](this['_fixPosition'](_0x1a7df8['start'],_0x51fae1),this['_fixPosition'](_0x1a7df8['end'],_0x51fae1));}['_fixPosition'](_0x1a0985,_0x455768){return this['editor']['model']['createPositionFromPath'](_0x455768,_0x1a0985['path'],_0x1a0985['stickiness']);}['_handleInsertOperation'](_0x1e2e32){const _0x165c07=this['_idsRoots']['get'](_0x1e2e32['position']['root']['rootName']),_0x4893fa=this['_fixPosition'](_0x1e2e32['position'],_0x165c07),_0x9aef2e=null===_0x1e2e32['_authorId']?null:_0x1e2e32['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5b403e=_0x4893fa['parent'],_0x26eafa=this['_revisionId'],_0x353f35=[];for(const _0x2db56d of _0x1e2e32['nodes'])if(_0x2db56d['is']('element'))_0x353f35['push'](this['_makeIdsRoot'](_0x2db56d));else{for(let _0x447a48=0x0;_0x447a48<_0x2db56d['offsetSize'];_0x447a48++)_0x353f35['push'](new _0x11a5c7('$text',{'vid':this['_revisionId']++}));}const _0x3b9f67=this['_revisionId'];for(let _0x54cd5d=_0x26eafa;_0x54cd5d<_0x3b9f67;_0x54cd5d++)this['_touched']['set'](_0x54cd5d,{'userId':_0x9aef2e});_0x5b403e['_insertChild'](_0x4893fa['offset'],_0x353f35);}['_handleMoveOperation'](_0x39d367){(_0x39d367=this['_cloneOperation'](_0x39d367,this['_idsRoots']))['_execute']();const _0x4ff321=null===_0x39d367['_authorId']?null:_0x39d367['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3c93fa=_0x39d367['getMovedRangeStart'](),_0xb174f5=_0x3c93fa['parent'],_0x479ded=_0x3c93fa['offset'];!function _0x11f82b(_0x5525bb,_0x628ab9,_0xc1b8de,_0x2d5333){for(let _0x296b08=_0xc1b8de;_0x296b08<_0x2d5333;_0x296b08++){const _0x5bcd6f=_0x628ab9['getChild'](_0x296b08);_0x5bcd6f['is']('element','$text')?_0x5525bb['set'](_0x5bcd6f['getAttribute']('vid'),{'userId':_0x4ff321}):(_0x5525bb['set'](_0x5bcd6f['getAttribute']('vid_start'),{'userId':_0x4ff321}),_0x11f82b(_0x5525bb,_0x5bcd6f,0x0,_0x5bcd6f['childCount']),_0x5525bb['set'](_0x5bcd6f['getAttribute']('vid_end'),{'userId':_0x4ff321}));}}(this['_touched'],_0xb174f5,_0x479ded,_0x479ded+_0x39d367['howMany']);}['_handleMergeOperation'](_0x22689b){const _0x1810ca=null===(_0x22689b=this['_cloneOperation'](_0x22689b,this['_idsRoots']))['_authorId']?null:_0x22689b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x927df6=_0x22689b['targetPosition']['parent'],_0x3e9856=_0x22689b['sourcePosition']['parent'],_0x851f31=_0x927df6['getAttribute']('vid_end'),_0x3d8e7a=_0x3e9856['getAttribute']('vid_start');_0x927df6['_setAttribute']('vid_end',_0x3e9856['getAttribute']('vid_end')),_0x3e9856['_setAttribute']('vid_end',_0x851f31),this['_touched']['set'](_0x3d8e7a,{'userId':_0x1810ca}),this['_touched']['set'](_0x851f31,{'userId':_0x1810ca}),_0x22689b['_execute']();}['_handleSplitOperation'](_0x2570e6){const _0xbe8841=null===(_0x2570e6=this['_cloneOperation'](_0x2570e6,this['_idsRoots']))['_authorId']?null:_0x2570e6['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2d4b68=_0x2570e6['graveyardPosition'],_0x407ef1=_0x2570e6['splitPosition']['parent'];_0x2570e6['_execute']();const _0x329726=_0x407ef1['getAttribute']('vid_end'),_0x4a58f7=_0x2570e6['insertionPosition']['nodeAfter'];if(_0x2d4b68){const _0x2d5637=_0x4a58f7['getAttribute']('vid_end'),_0x13b1d9=_0x407ef1['getAttribute']('vid_end');_0x407ef1['_setAttribute']('vid_end',_0x2d5637),_0x4a58f7['_setAttribute']('vid_end',_0x13b1d9),this['_touched']['set'](_0x407ef1['getAttribute']('vid_end'),{'userId':_0xbe8841}),this['_touched']['set'](_0x4a58f7['getAttribute']('vid_start'),{'userId':_0xbe8841});}else{const _0x540897=this['_revisionId']++,_0x29f8a1=this['_revisionId']++;_0x407ef1['_setAttribute']('vid_end',_0x540897),_0x4a58f7['_setAttribute']('vid_start',_0x29f8a1),_0x4a58f7['_setAttribute']('vid_end',_0x329726),this['_touched']['set'](_0x540897,{'userId':_0xbe8841}),this['_touched']['set'](_0x29f8a1,{'userId':_0xbe8841});}}['_handleMarkerOperation'](_0x372406){if(!_0x372406['affectsData'])return;const _0x255b29=(_0x372406=this['_cloneOperation'](_0x372406,this['_diffRoots']))['oldRange']?_0x372406['oldRange']['root']:null,_0x212697=_0x372406['newRange']?_0x372406['newRange']['root']:null;_0x255b29&&this['_markers']['delete'](_0x372406['name']),_0x212697&&this['_markers']['set'](_0x372406['name'],_0x372406['newRange']['clone']());const _0x375af4=null===_0x372406['_authorId']?null:_0x372406['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xc5d180=_0x372406['name'];if(!this['_touchedMarkers']['has'](_0xc5d180))return void this['_touchedMarkers']['set'](_0xc5d180,{'range':_0x372406['oldRange'],'userId':_0x375af4});const _0x49d9f2=this['_touchedMarkers']['get'](_0xc5d180),_0x220124=_0x49d9f2['range'],_0x2ace5d=_0x372406['newRange'];null==_0x220124&&null==_0x2ace5d||_0x220124&&_0x2ace5d&&_0x220124['isEqual'](_0x2ace5d)?this['_touchedMarkers']['delete'](_0x372406['name']):_0x49d9f2['userId']=_0x375af4;}['_handleRootOperation'](_0x1363be,_0x5cb921){this['_diffRoots']['has'](_0x1363be['rootName'])?this['_diffRoots']['get'](_0x1363be['rootName'])['_isAttached']=_0x1363be['isAdd']:(this['_diffRoots']['set'](_0x1363be['rootName'],N(_0x1363be['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x1363be['rootName'],{}),_0x5cb921&&this['_idsRoots']['set'](_0x1363be['rootName'],N(_0x1363be['rootName'],!0x0)));const _0x3e6344=null===_0x1363be['_authorId']?null:_0x1363be['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x374b50=this['_touchedRoots']['get'](_0x1363be['rootName']);_0x374b50&&_0x374b50['userId']===_0x3e6344?this['_touchedRoots']['delete'](_0x1363be['rootName']):this['_touchedRoots']['set'](_0x1363be['rootName'],{'userId':_0x3e6344,'isAttached':_0x1363be['isAdd']});}['_handleRootAttributeOperation'](_0x2ee145){const _0x4ee9a6=this['_diffRootsAttributes']['get'](_0x2ee145['root']['rootName']);null===_0x2ee145['newValue']?delete _0x4ee9a6[_0x2ee145['key']]:_0x4ee9a6[_0x2ee145['key']]=_0x2ee145['newValue'];}}function x(_0x2e539e){const _0x3af1bf=N(_0x2e539e['rootName'],_0x2e539e['isAttached']());for(const _0x22a695 of _0x2e539e['getChildren']()){const _0x5021a2=_0x22a695['_clone'](!0x0);_0x3af1bf['_appendChild'](_0x5021a2);}return _0x3af1bf;}function N(_0xae9702,_0x3c25e6=!0x0){const _0x13e8fb=new _0x3ae66b();return _0x13e8fb['rootName']=_0xae9702,_0x13e8fb['_isAttached']=_0x3c25e6,_0x13e8fb['isAttached']=()=>_0x13e8fb['_isAttached'],_0x13e8fb;}function P(_0x2ed57f,_0x1879b5,_0x2113a6){const _0xff75a6='elementEnd'==_0x2ed57f['type']?_0x2113a6['createPositionAt'](_0x2ed57f['item'],'end'):_0x2113a6['createPositionBefore'](_0x2ed57f['item']);return _0x2113a6['createPositionFromPath'](_0x1879b5,_0xff75a6['path'],_0xff75a6['stickiness']);}function V(_0xc31812,_0x54a8fd,_0x49f54){const _0x1b1b03='elementStart'==_0xc31812['type']?_0x49f54['createPositionAt'](_0xc31812['item'],0x0):_0x49f54['createPositionAfter'](_0xc31812['item']);return _0x49f54['createPositionFromPath'](_0x54a8fd,_0x1b1b03['path'],_0x1b1b03['stickiness']);}class me extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x486c8d(_0x2978dc){['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x579f42,_0x437b2a){super(_0x579f42),this['focusTracker']=new _0x4de5cb(),this['keystrokes']=new _0x2617c5(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x437b2a),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),this['initializeCssTransitionDisablerMixin']();}['render'](){super['render'](),_0xa7b95a({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x342519=_0x4cf9ce=>_0x4cf9ce['stopPropagation']();this['keystrokes']['set']('arrowright',_0x342519),this['keystrokes']['set']('arrowleft',_0x342519),this['keystrokes']['set']('arrowup',_0x342519),this['keystrokes']['set']('arrowdown',_0x342519);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x339404){this['revisionNameInputView']['fieldView']['element']['value']=_0x339404['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x46e873){const _0x76400a=new et(this['locale'],ti),_0x36e040=_0x76400a['fieldView'];_0x36e040['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x25de37=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x46e873&&(_0x25de37+='\x20('+R(this['locale'],'optional')+')'),(_0x76400a['label']=_0x25de37,_0x36e040['on']('input',()=>{this['revisionNameInputValue']=_0x36e040['element']['value']['trim']();}),_0x76400a);}}class v extends _0x235b76{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h];}['_saveRevisionFormView'];['init'](){const _0x1c8ff6=this['editor'],_0x1364e2=_0x1c8ff6['plugins']['get']('RevisionTracker');_0x1c8ff6['ui']['componentFactory']['add']('revisionHistory',_0xac76bd=>{const _0x10c3b5=_0x5e74ef(_0xac76bd),_0x48938f=_0x10c3b5['panelView']['children'],_0x3d705a=new _0x22ed8b(_0xac76bd),_0x565818=new _0x2825a7(_0xac76bd),_0x551bcd=new _0x3ced20(_0xac76bd),_0x35e8e4=new _0x2825a7(_0xac76bd),_0x36b68f=new _0x3ced20(_0xac76bd);return _0x10c3b5['bind']('isEnabled')['to'](_0x1364e2,'isReady',_0x1364e2,'isEnabled',_0x1c8ff6,'isReadOnly',(_0x425355,_0xe42b5b,_0x4338bd)=>_0x425355&&_0xe42b5b&&!_0x4338bd),_0x10c3b5['buttonView']['set']({'icon':_0x5cf05f,'label':R(_0xac76bd,'Revision\x20history'),'tooltip':!0x0}),_0x551bcd['set']({'label':R(_0xac76bd,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x551bcd['bind']('isEnabled')['to'](_0x1364e2,'isReady',_0x1364e2,'isEnabled',_0x1c8ff6,'isReadOnly',(_0x3b7b89,_0x1c3a9d,_0x5573d9)=>_0x3b7b89&&_0x1c3a9d&&!_0x5573d9),_0x551bcd['on']('execute',()=>this['_showDialog']()),_0x36b68f['set']({'label':R(_0xac76bd,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x36b68f['bind']('isEnabled')['to'](_0x1364e2,'isReady',_0x1c8ff6,'isReadOnly',(_0x2bfe37,_0x1f5fed)=>_0x2bfe37&&!_0x1f5fed),_0x36b68f['on']('execute',()=>{_0x1c8ff6['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x10c3b5['isOpen']=!0x1,_0x1c8ff6['editing']['view']['focus']();}),_0x565818['children']['add'](_0x551bcd),_0x35e8e4['children']['add'](_0x36b68f),_0x3d705a['role']='menu',_0x3d705a['items']['addMany']([_0x565818,_0x35e8e4]),_0x48938f['add'](_0x3d705a),_0x10c3b5;}),_0x1c8ff6['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x11c51e=this['editor'],_0x2fdd33=_0x11c51e['locale'],_0xe27c21=new _0x560e59(_0x2fdd33),_0xf81675=new _0x24ec15(_0x2fdd33);_0xe27c21['buttonView']['set']({'icon':_0x5cf05f,'label':R(_0x2fdd33,'Revision\x20history')});const _0x308bc4=new _0x108f0b(_0x2fdd33,_0xe27c21),_0x1701f7=new _0x4956b5(_0x2fdd33);_0x1701f7['set']({'label':R(_0x2fdd33,'Save\x20current\x20revision')}),_0x1701f7['delegate']('execute')['to'](_0xe27c21),_0x1701f7['on']('execute',()=>{this['_showDialog']();}),_0x308bc4['children']['add'](_0x1701f7),_0xf81675['items']['add'](_0x308bc4);const _0x18f80d=new _0x108f0b(_0x2fdd33,_0xe27c21),_0x4597c0=new _0x4956b5(_0x2fdd33);return _0x4597c0['set']({'label':R(_0x2fdd33,'Open\x20revision\x20history')}),_0x4597c0['delegate']('execute')['to'](_0xe27c21),_0x4597c0['on']('execute',()=>{_0x11c51e['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x18f80d['children']['add'](_0x4597c0),_0xf81675['items']['add'](_0x18f80d),_0xe27c21['panelView']['children']['add'](_0xf81675),_0xe27c21;}['_showDialog'](){const _0x25d071=this['editor'],_0x3a53b6=_0x25d071['locale'],_0x44d5c2=_0x25d071['plugins']['get']('Dialog'),_0x3d955f=_0x25d071['plugins']['get']('RevisionTracker');function _0x1285b4(_0x8f4af2){_0x25d071['config']['get']('revisionHistory.requireRevisionName')&&''===_0x8f4af2['revisionName']?_0x8f4af2['revisionNameInputView']['errorText']=R(_0x3a53b6,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x25d071['plugins']['get'](h)['saveRevision']({'name':_0x8f4af2['revisionName']}),_0x44d5c2['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x1285b4(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x44d5c2['show']({'id':'revisionSave','title':R(_0x3a53b6,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x25d071['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x44d5c2['hide']()},{'label':R(_0x25d071['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0xe63d0){_0xe63d0['bind']('isEnabled')['to'](_0x3d955f,'isReady',_0x3d955f,'isEnabled',_0x25d071,'isReadOnly',(_0x4156eb,_0x50f4c7,_0x2428e0)=>_0x4156eb&&_0x50f4c7&&!_0x2428e0);},'onExecute':()=>_0x1285b4(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x153d0d=this['editor'],_0x273b8c=_0x153d0d['locale'];this['_saveRevisionFormView']=new me(_0x273b8c,_0x153d0d['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class z extends _0x2978dc{['changeId'];['_model'];constructor(_0x1a86a4,_0x5c541d){super(_0x1a86a4),this['_model']=_0x5c541d,this['changeId']=_0x5c541d['id'];const _0x43ef36=this['bindTemplate'],_0x52655b=R(_0x1a86a4,_0x5c541d['data']['isSuggestion']?'Suggested\x20by':'add'==_0x5c541d['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x5c541d['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x43ef36['to']('type',_0x2e5ffd=>'ck-revision-change__'+_0x2e5ffd)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x52655b}]},{'text':'\x20'+_0x5c541d['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class G extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x53b020(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x233834){super(),this['id']=_0x233834['id']||_0x1b5d50(),this['author']=_0x233834['author'],this['type']=_0x233834['type'],this['data']=_0x233834['data']||{},this['rootName']=_0x233834['rootName'],this['set']('createdAt',_0x233834['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class J{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0xacd82d,_0x448f0b){this['newRevisionId']=_0xacd82d,this['oldRevisionId']=_0x448f0b,this['changes']=new _0x3ac57f();}['_setChanges'](_0x10ac32){for(const _0x3226e8 of _0x10ac32)this['changes']['add'](_0x3226e8);}}class l extends _0x235b76{['repository'];['adapter']=null;['_utils'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x34eefc,_0xe4aace,S,$];}constructor(_0xe5d2ce){super(_0xe5d2ce),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x29dcf5,_0x5f4c64,_0x11a68a)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x5e2d44=>{for(const _0xc79686 of this['editor']['editing']['view']['document']['roots'])_0x11a68a?_0x5e2d44['removeClass']('ck-editor__editable__overlay',_0xc79686):_0x5e2d44['addClass']('ck-editor__editable__overlay',_0xc79686);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x355b04=>null!==_0x355b04),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x1e1fa1,_0x3a883c,_0x62b958)=>_0x1e1fa1&&_0x62b958?_0x3a883c['changes']['getIndex'](_0x62b958):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x1ff49a,_0x51077e)=>_0x1ff49a?_0x51077e['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0xe4aace);}['init'](){const _0x24aa97=this['editor'],_0x2ff7e6=new rt(_0x24aa97,{'direction':'backward'}),_0x3747d1=new rt(_0x24aa97,{'direction':'forward'});(_0x24aa97['commands']['add']('showPreviousChange',_0x2ff7e6),_0x24aa97['commands']['add']('showNextChange',_0x3747d1),_0x24aa97['commands']['add']('restoreRevision',new nt(_0x24aa97)),this['on']('change:numberOfChanges',()=>{_0x2ff7e6['refresh'](),_0x3747d1['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x24aa97['enableReadOnlyMode']('revision-viewer'),_0x24aa97['plugins']['has']('WidgetToolbarRepository'))&&_0x24aa97['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x567da5){return await this['_utils']['loadRevisionData'](_0x567da5,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x567da5);}async['getRevisionRootsAttributes'](_0x52ff83){return await this['_utils']['loadRevisionData'](_0x52ff83,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x52ff83);}async['compare'](_0x2e90e3,_0x5ef62e,_0x4616b7=!0x1){if(!this['isEnabled'])return;const _0x58ae31=this['diff'],_0x42b3e6=this['repository'],_0x5deb39='string'==typeof _0x2e90e3?_0x42b3e6['getRevision'](_0x2e90e3):_0x2e90e3,_0x3c80bd='string'==typeof _0x5ef62e?_0x42b3e6['getRevision'](_0x5ef62e):_0x5ef62e,_0x1fa7f6=_0x5deb39['id'],_0x48545a=_0x3c80bd?_0x3c80bd['id']:null;if(!_0x4616b7&&this['diff']&&this['diff']['newRevisionId']===_0x1fa7f6&&this['diff']['oldRevisionId']===_0x48545a)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x1fa7f6,_0x48545a);const _0xf35d31=this['_getRevisionsRange'](_0x5deb39,_0x3c80bd,!0x0)['map'](_0x485bad=>this['_utils']['loadRevisionData'](_0x485bad,this['adapter']));return _0xf35d31['push'](new Promise(_0x3a7b7c=>{setTimeout(_0x3a7b7c,0x14);})),Promise['all'](_0xf35d31)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x52a30e=this['_getDiff'](_0x1fa7f6,_0x48545a);for(const _0x371f29 of _0x52a30e['changes'])this['_changeIdToChange']['set'](_0x371f29['id'],_0x371f29);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x3de90a=>{for(const _0x56b5af of this['editor']['model']['document']['getRootNames']())_0x3de90a['detachRoot'](_0x56b5af);for(const _0x34dda8 of Object['keys'](_0x52a30e['model'])){const _0x1037b8=_0x3de90a['addRoot'](_0x34dda8);for(const _0x9926cf of Object['keys'](_0x52a30e['attributes'][_0x34dda8]))_0x3de90a['setAttribute'](_0x9926cf,_0x52a30e['attributes'][_0x34dda8][_0x9926cf],_0x1037b8);_0x3de90a['insert'](_0x52a30e['model'][_0x34dda8],_0x1037b8,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x52a30e['changes'])),this['isReady']=!0x0;})['catch'](_0x36047b=>{console['error'](_0x36047b),this['_cleanUp'](),_0x58ae31&&(this['diff']=_0x58ae31),this['isReady']=!0x0;});}['addRevisionData'](_0x22ab09,_0x690d58){const _0x54917e=this['repository']['createRevision'](_0x22ab09);return _0x54917e['on']('_update',(_0x1d7679,_0x3915c1,_0xd40679)=>_0x690d58(_0x3915c1,_0xd40679,_0x54917e)),this['repository']['addRevision'](_0x54917e),_0x54917e;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x29c4f3=>{for(const _0x485a22 of this['editor']['model']['document']['getRootNames']())_0x29c4f3['detachRoot'](_0x485a22);});}['_sortAndFilterDiffChanges'](_0x18f015){const _0x220316=[],_0xdbdbc1=new Map();for(const _0x3571be of this['editor']['model']['document']['getRootNames']()){const _0x1c1582=this['editor']['editing']['view']['getDomRoot'](_0x3571be);if(!_0x1c1582)continue;const _0x410b02=_0x1c1582['getClientRects']()['item'](0x0);_0x410b02&&(_0x220316['push'](_0x3571be),_0xdbdbc1['set'](_0x3571be,_0x410b02));}return _0x220316['sort']((_0x1bcc5e,_0x48b57e)=>{const _0x37012a=_0xdbdbc1['get'](_0x1bcc5e),_0x4e143e=_0xdbdbc1['get'](_0x48b57e);return _0x37012a['y']-_0x4e143e['y']||_0x37012a['x']-_0x4e143e['x'];}),(_0x18f015=_0x18f015['filter'](_0x146473=>_0x220316['includes'](_0x146473['rootName'])))['sort']((_0x574a78,_0x331626)=>_0x220316['indexOf'](_0x574a78['rootName'])-_0x220316['indexOf'](_0x331626['rootName'])),_0x18f015;}['_makeTape'](_0x22733b){const _0x3c94b4=Array['from'](_0x22733b['markers'])['filter'](([_0xa9a4d5,_0xe89d18])=>_0xa9a4d5['startsWith']('revision:')&&!_0xe89d18['isCollapsed']),_0x3f63ba=Array['from'](this['editor']['model']['createRangeIn'](_0x22733b)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x3c94b4['length'])for(const _0x1f0cc2 of _0x3f63ba){const [_0x3a2de6,_0x23d369]=_0x3c94b4[0x0],[,_0x31a9a8,_0x1b667a]=_0x3a2de6['split'](':');if(_0x23d369['end']['isEqual'](_0x1f0cc2['nextPosition'])&&_0x3c94b4['shift'](),(_0x1f0cc2['previousPosition']['isEqual'](_0x23d369['start'])||_0x1f0cc2['previousPosition']['isAfter'](_0x23d369['start']))&&('insertion'==_0x31a9a8?_0x1f0cc2['isAdded']={'userId':_0x1b667a}:'deletion'==_0x31a9a8&&(_0x1f0cc2['isRemoved']={'userId':_0x1b667a})),0x0==_0x3c94b4['length'])break;}return _0x3f63ba;}['_refreshStartEndIndex'](_0x3da219){const _0x2f272d=new Map();for(let _0x5cc39e=0x0;_0x5cc39e<_0x3da219['length'];_0x5cc39e++)'text'===_0x3da219[_0x5cc39e]['type']?(_0x3da219[_0x5cc39e]['item']['startIndex']=_0x5cc39e,_0x3da219[_0x5cc39e]['item']['endIndex']=_0x5cc39e):('elementStart'===_0x3da219[_0x5cc39e]['type']?_0x3da219[_0x5cc39e]['item']['startIndex']=_0x5cc39e:'elementEnd'===_0x3da219[_0x5cc39e]['type']&&(_0x3da219[_0x5cc39e]['item']['endIndex']=_0x5cc39e),_0x2f272d['set'](_0x3da219[_0x5cc39e]['id'],_0x5cc39e));for(const _0x381075 of _0x2f272d['values']())'elementStart'===_0x3da219[_0x381075]['type']?_0x3da219[_0x381075]['item']['endIndex']=_0x2f272d['get'](_0x3da219[_0x381075]['pairId']):'elementEnd'===_0x3da219[_0x381075]['type']&&(_0x3da219[_0x381075]['item']['startIndex']=_0x2f272d['get'](_0x3da219[_0x381075]['pairId']));}['_processTape'](_0x4ec5d0){for(let _0x3236bd=0x0;_0x3236bd<_0x4ec5d0['length'];_0x3236bd++){if('elementStart'===_0x4ec5d0[_0x3236bd]['type'])_0x4ec5d0[_0x3236bd]['item']['startIndex']=_0x3236bd;else{if('elementEnd'===_0x4ec5d0[_0x3236bd]['type']){_0x4ec5d0[_0x3236bd]['item']['endIndex']=_0x3236bd;const _0x414458=_0x4ec5d0[_0x3236bd]['item']['startIndex'];_0x4ec5d0[_0x414458]['pairId']=_0x4ec5d0[_0x3236bd]['id'],_0x4ec5d0[_0x3236bd]['pairId']=_0x4ec5d0[_0x414458]['id'];}else _0x4ec5d0[_0x3236bd]['item']['startIndex']=_0x3236bd,_0x4ec5d0[_0x3236bd]['item']['endIndex']=_0x3236bd,_0x4ec5d0[_0x3236bd]['pairId']=null;}_0x4ec5d0[_0x3236bd]['markersStart']||(_0x4ec5d0[_0x3236bd]['markersStart']=[],_0x4ec5d0[_0x3236bd]['markersEnd']=[]);}}['_markInsertions'](_0x1de2d6,_0x355ad0){const _0xc55fae=_0x1de2d6['filter'](_0x511f33=>!_0x511f33['isAdded']);for(let _0xbcaac7=0x0;_0xbcaac7<_0x355ad0['length'];_0xbcaac7++)_0x355ad0[_0xbcaac7]['isAdded']&&(_0xc55fae[_0xbcaac7]['isAdded']=_0x355ad0[_0xbcaac7]['isAdded']);}['_getDiff'](_0x4107bb,_0x38f92b=null){const _0x4e455f=this['repository']['getRevision'](_0x4107bb),_0x209c8f=_0x38f92b?this['repository']['getRevision'](_0x38f92b):null,_0x4532a7=this['_getRevisionsRange'](_0x4e455f,_0x209c8f),_0x428325=_0x4532a7[_0x4532a7['length']-0x1],_0x4dc7fb=new Map(),_0x11ecef={'model':{},'attributes':{},'changes':[]},_0x18e20d=new Set(),_0x464b73=new Map();for(let _0x1ebab=_0x4532a7['length']-0x1;_0x1ebab>=0x0;_0x1ebab--){const _0x306366=_0x4532a7[_0x1ebab];for(const _0x34567a of Object['keys'](_0x306366['diffData']))if(_0x306366['diffData'][_0x34567a]['attachChange']){const _0x57653e=_0x306366['diffData'][_0x34567a]['attachChange'];_0x57653e['isAttached']?(_0x18e20d['add'](_0x34567a),_0x464b73['has'](_0x34567a)&&_0x464b73['get'](_0x34567a)['userId']==_0x57653e['userId']?_0x464b73['delete'](_0x34567a):_0x464b73['set'](_0x34567a,_0x57653e)):_0x464b73['has'](_0x34567a)?(_0x18e20d['delete'](_0x34567a),_0x464b73['delete'](_0x34567a)):(_0x18e20d['add'](_0x34567a),_0x464b73['set'](_0x34567a,_0x57653e));}else _0x18e20d['add'](_0x34567a);}for(const _0x5117af of _0x18e20d){const _0x443768=_0x464b73['has'](_0x5117af)&&!_0x464b73['get'](_0x5117af)['isAttached'];let _0x448ea4=_0x443768?_0x4532a7['length']-0x1:0x0;const _0x1fb86b=_0x443768?-0x1:0x1;for(;_0x4532a7[_0x448ea4];){const _0x11a616=_0x4532a7[_0x448ea4];if(_0x11a616['diffData'][_0x5117af]){const _0xc5ec78=_0x443768?_0x11a616['diffData'][_0x5117af]['attributesBefore']:_0x11a616['diffData'][_0x5117af]['attributesAfter'];_0x11ecef['attributes'][_0x5117af]=_0xc5ec78?_0x186599(_0xc5ec78):{};break;}_0x448ea4+=_0x1fb86b;}}for(const _0x3122ac of _0x4532a7){_0x3122ac['model']={};for(const _0x4c3fec of _0x3122ac['authors'])_0x4dc7fb['set'](_0x4c3fec['id'],_0x4c3fec);for(const _0x213c0c of _0x18e20d){const _0x274b4b=_0x3122ac['diffData'][_0x213c0c]?_0x3122ac['diffData'][_0x213c0c]['insertions']:'[]',_0x1316ba=_0x3122ac['diffData'][_0x213c0c]?_0x3122ac['diffData'][_0x213c0c]['deletions']:'[]';_0x3122ac['model'][_0x213c0c]={'insertions':this['_utils']['_makeModelFromViewString'](_0x274b4b),'deletions':this['_utils']['_makeModelFromViewString'](_0x1316ba)};}}for(const _0x45b166 of _0x18e20d){let _0x521739=null,_0x10acc6=0x0;const _0xabdaa2=new Map(Array['from'](_0x4e455f['model'][_0x45b166]['insertions']['markers'])['filter'](([_0x1845b2])=>!_0x1845b2['startsWith']('revision:')));let _0x5177e5=0x0;for(const _0x81e5d of _0x4532a7){const _0xa1c547=this['_makeTape'](_0x81e5d['model'][_0x45b166]['insertions']);_0x81e5d==_0x4e455f?(_0x521739=_0xa1c547,_0x10acc6=_0x521739['length'],_0x521739['forEach'](_0x269d57=>{_0x269d57['id']=_0x5177e5++;}),this['_processTape'](_0x521739)):this['_markInsertions'](_0x521739,_0xa1c547);const _0x19eee2=_0x521739['filter'](_0xaff2d2=>!_0xaff2d2['isAdded'])['map'](_0x4a1568=>_0x4a1568['id']);let _0x30b015=0x0;const _0x458de2=this['_makeTape'](_0x81e5d['model'][_0x45b166]['deletions']);_0x458de2['forEach'](_0x200a07=>{_0x200a07['isRemoved']?_0x200a07['id']=_0x10acc6++:_0x200a07['id']=_0x19eee2[_0x30b015++];}),this['_processTape'](_0x458de2),this['_setDistance'](_0x521739,'isAdded'),this['_setDistance'](_0x458de2,'isRemoved'),_0x81e5d==_0x4e455f&&this['_markMarkers'](_0x521739,_0xabdaa2),_0x521739=this['_joinTapes'](_0x521739,_0x458de2),this['_refreshStartEndIndex'](_0x521739),this['_setDistance'](_0x521739,'isRemoved');}_0x521739=_0x521739['filter'](_0x3dbb50=>!(_0x3dbb50['isAdded']&&_0x3dbb50['isRemoved']));const _0x48d2ae=new Map(_0x428325['model'][_0x45b166]['deletions']['markers']),_0x127654=new Set(_0xabdaa2['keys']());for(const _0x3004e6 of _0x48d2ae['keys']())_0x127654['delete'](_0x3004e6);this['_markSuggestions'](_0x521739,_0x127654),this['_fixObsoleteTags'](_0x521739),_0x521739=this['_removeMissingPairs'](_0x521739),_0x521739=this['_markMismatchedRemovedTags'](_0x521739),_0x521739=this['_removeUnsupportedChanges'](_0x521739);const {root:_0x3ec712,changes:_0x3dee08}=this['_makeModelFromTape'](_0x521739,_0x4dc7fb,_0x45b166);_0x11ecef['model'][_0x45b166]=_0x3ec712;const _0x4e4b39=_0x464b73['get'](_0x45b166);if(_0x4e4b39){const _0x19707d=_0x4dc7fb['get'](_0x4e4b39['userId']),_0x3449f8=new G({'author':_0x19707d,'type':_0x4e4b39['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x45b166});_0x3dee08['unshift'](_0x3449f8),_0x11ecef['attributes'][_0x45b166]['revisionHistoryAttachChange']=_0x3449f8['id'];}_0x11ecef['changes']=_0x11ecef['changes']['concat'](_0x3dee08);}return _0x11ecef;}['_markMarkers'](_0x4e7381,_0x59bfce){for(let _0x539480=0x0;_0x539480<_0x4e7381['length'];_0x539480++)for(const [_0x2f985d,_0x3b4a84]of _0x59bfce)!_0x3b4a84['isCollapsed']&&_0x3b4a84['start']['isEqual'](_0x4e7381[_0x539480]['previousPosition'])&&_0x4e7381[_0x539480]['markersStart']['push'](_0x2f985d),_0x3b4a84['end']['isEqual'](_0x4e7381[_0x539480]['nextPosition'])&&_0x4e7381[_0x539480]['markersEnd']['push'](_0x2f985d);}['_joinTapes'](_0x570573,_0x2f7d0f){let _0x1294d2=[],_0x55644b=0x0,_0x47a6f0=0x0;for(;_0x55644b<_0x570573['length']||_0x47a6f0<_0x2f7d0f['length'];){const _0x511cb4=_0x570573[_0x55644b]||{},_0x43322a=_0x2f7d0f[_0x47a6f0]||{};if(_0x511cb4['id']==_0x43322a['id'])_0x55644b++,_0x47a6f0++,_0x1294d2['push'](_0x511cb4);else{if(_0x43322a['isRemoved']&&_0x511cb4['isAdded']){const {commonTape:_0x2b0127,iEnd:_0x297d2e,jEnd:_0x5ec40b}=this['_threeWayMerge'](_0x570573,_0x55644b,_0x2f7d0f,_0x47a6f0);_0x1294d2=_0x1294d2['concat'](_0x2b0127),_0x55644b=_0x297d2e,_0x47a6f0=_0x5ec40b;}else _0x43322a['isRemoved']?(_0x47a6f0++,_0x1294d2['push'](_0x43322a)):(_0x55644b++,_0x1294d2['push'](_0x511cb4));}}return _0x1294d2;}['_markSuggestions'](_0x34f76b,_0x55dd06){const _0x428d7c=[];for(let _0x3537c1=0x0;_0x3537c1<_0x34f76b['length'];_0x3537c1++){for(let _0x2c8001=0x0;_0x2c8001<_0x34f76b[_0x3537c1]['markersStart']['length'];_0x2c8001++){const _0x253b12=_0x34f76b[_0x3537c1]['markersStart'][_0x2c8001];if(!_0x55dd06['has'](_0x253b12))continue;const {group:_0x2a16dc,type:_0x3f67cd,authorId:_0x1543da}=_0x130d81(_0x253b12);'revision-suggestion'!=_0x2a16dc||'insertion'!=_0x3f67cd&&'deletion'!=_0x3f67cd||(_0x428d7c['unshift']({'type':_0x3f67cd,'name':_0x253b12,'userId':_0x1543da}),_0x34f76b[_0x3537c1]['markersStart']['splice'](_0x2c8001,0x1),_0x2c8001--);}_0x5e8e41(_0x34f76b[_0x3537c1]);for(let _0x3ca94c=0x0;_0x3ca94c<_0x34f76b[_0x3537c1]['markersEnd']['length'];_0x3ca94c++){const _0x3c7d55=_0x34f76b[_0x3537c1]['markersEnd'][_0x3ca94c];if(!_0x55dd06['has'](_0x3c7d55))continue;const {group:_0x2656a4,type:_0x3ba243}=_0x130d81(_0x3c7d55);if('revision-suggestion'!=_0x2656a4||'insertion'!=_0x3ba243&&'deletion'!=_0x3ba243)continue;_0x34f76b[_0x3537c1]['markersEnd']['splice'](_0x3ca94c,0x1),_0x3ca94c--;const _0x358055=_0x428d7c['findIndex'](_0x3f0b2b=>_0x3f0b2b['name']==_0x3c7d55);_0x358055>-0x1&&_0x428d7c['splice'](_0x358055,0x1);}}function _0x130d81(_0x1271ac){const _0x3a7f1d=_0x1271ac['split'](':');return{'group':_0x3a7f1d[0x0],'type':_0x3a7f1d[0x1],'subType':_0x3a7f1d['length']>=0x5?_0x3a7f1d[0x2]:null,'id':_0x3a7f1d['length']<0x5?_0x3a7f1d[0x2]:_0x3a7f1d[0x3],'authorId':_0x3a7f1d['length']<0x5?_0x3a7f1d[0x3]:_0x3a7f1d[0x4],'markerCount':0x6==_0x3a7f1d['length']?_0x3a7f1d[0x5]:null};}function _0x5e8e41(_0x67505b){for(let _0x58e9c2=0x0;_0x58e9c2<_0x428d7c['length'];_0x58e9c2++){if(_0x67505b['isAdded']&&'insertion'==_0x428d7c[_0x58e9c2]['type']&&_0x67505b['isAdded']['userId']==_0x428d7c[_0x58e9c2]['userId'])return _0x67505b['isAddSuggestion']=_0x428d7c[_0x58e9c2],void delete _0x67505b['isAdded'];if(!_0x67505b['isAdded']&&!_0x67505b['isRemoved']&&'deletion'==_0x428d7c[_0x58e9c2]['type'])return void(_0x67505b['isRemoveSuggestion']=_0x428d7c[_0x58e9c2]);}}}['_setDistance'](_0x44b15d,_0x473643){let _0x429725=0x0,_0x468c1b=!0x1;const _0x2e2af5=new Map();for(const _0x2641e3 of _0x44b15d)_0x2641e3[_0x473643]?_0x468c1b&&(_0x429725++,_0x468c1b=!0x1):(_0x429725++,_0x468c1b=!0x0),_0x2e2af5['set'](_0x2641e3['id'],_0x429725);for(let _0x4ca90f=0x0;_0x4ca90f<_0x44b15d['length'];_0x4ca90f++){if('isRemoved'==_0x473643&&_0x44b15d[_0x4ca90f]['isAdded']||'isAdded'==_0x473643&&_0x44b15d[_0x4ca90f]['isRemoved'])continue;if('text'==_0x44b15d[_0x4ca90f]['type']){_0x44b15d[_0x4ca90f]['distance']=0x0;continue;}const _0x526bb2=_0x2e2af5['get'](_0x44b15d[_0x4ca90f]['pairId']),_0x25fc93=_0x2e2af5['get'](_0x44b15d[_0x4ca90f]['id']);_0x44b15d[_0x4ca90f]['distance']=_0x526bb2-_0x25fc93;}}['_getRevisionsRange'](_0x2d3c5,_0x3956e5,_0x29e725=!0x1){const _0x1d1313=[];let _0x5da1ab=this['repository']['getIndex'](_0x2d3c5),_0x527dad=this['repository']['getIndex'](_0x3956e5);for(-0x1==_0x527dad&&(_0x527dad=this['repository']['_revisions']['length'],_0x29e725=!0x1);_0x5da1ab<_0x527dad;)_0x1d1313['push'](this['repository']['getRevision'](_0x5da1ab)),_0x5da1ab++;return _0x29e725&&_0x1d1313['push'](this['repository']['getRevision'](_0x5da1ab)),_0x1d1313;}['_threeWayMerge'](_0x548479,_0x2abd2d,_0x1fd745,_0xaf3006){const _0x2a07af=this['editor']['model']['schema'];let _0x30c983=_0x2abd2d;for(;_0x548479[_0x30c983]&&_0x548479[_0x30c983]['isAdded'];)_0x30c983++;let _0x7c3fcb=_0xaf3006;for(;_0x1fd745[_0x7c3fcb]&&_0x1fd745[_0x7c3fcb]['isRemoved'];)_0x7c3fcb++;_0x468d1e(_0x548479,_0x2abd2d,_0x30c983),_0x468d1e(_0x1fd745,_0xaf3006,_0x7c3fcb);const _0x1620b0=_0x1fd745['slice'](_0xaf3006,_0x7c3fcb)['concat'](_0x548479['slice'](_0x2abd2d,_0x30c983));return _0x1620b0['sort']((_0xa539f6,_0x3274a6)=>_0xa539f6['side']!=_0x3274a6['side']?_0xa539f6['side']-_0x3274a6['side']:_0xa539f6['level']!=_0x3274a6['level']?_0xa539f6['level']-_0x3274a6['level']:_0xa539f6['distance']!=_0x3274a6['distance']?_0x3274a6['distance']-_0xa539f6['distance']:!!_0xa539f6['isAdded']!=!!_0x3274a6['isAdded']?-0x1==_0xa539f6['side']||0x0==_0xa539f6['side']?_0xa539f6['isAdded']?-0x1:0x1:_0xa539f6['isAdded']?0x1:-0x1:_0xa539f6['index']-_0x3274a6['index']),{'commonTape':_0x1620b0,'iEnd':_0x30c983,'jEnd':_0x7c3fcb};function _0x468d1e(_0x1f3572,_0x497b6e,_0x1659e3){let _0x5a3509=-0x1,_0x307fa5=Number['POSITIVE_INFINITY'],_0xcea5e3=!0x0;for(let _0x322f0b=_0x497b6e;_0x322f0b<_0x1659e3;_0x322f0b++)if(_0x2a07af['isInline'](_0x1f3572[_0x322f0b]['item'])||(_0xcea5e3=!0x1),_0x1f3572[_0x322f0b]['item']['startIndex']<_0x497b6e&&(_0x5a3509=_0x322f0b),_0x1f3572[_0x322f0b]['item']['endIndex']>=_0x1659e3){_0x307fa5=_0x322f0b;break;}_0xcea5e3&&(_0x5a3509=_0x1659e3-0x1);for(let _0xdd82fc=_0x497b6e;_0xdd82fc<_0x1659e3;_0xdd82fc++)_0x1f3572[_0xdd82fc]['side']=_0xdd82fc<=_0x5a3509?-0x1:_0xdd82fc<_0x307fa5?0x0:0x1,_0x1f3572[_0xdd82fc]['index']=_0xdd82fc;let _0x105cd7=0x0;for(let _0x308c46=_0x497b6e;_0x308c46<=_0x5a3509;_0x308c46++)0x0==_0x1f3572[_0x308c46]['distance']?_0x1f3572[_0x308c46]['level']=_0x105cd7:(_0x105cd7++,_0x1f3572[_0x308c46]['level']=_0x105cd7,_0x105cd7++);for(let _0x51a6a2=_0x497b6e;_0x51a6a2<_0x1659e3;_0x51a6a2++)0x0==_0x1f3572[_0x51a6a2]['side']&&(_0x1f3572[_0x51a6a2]['level']=_0x105cd7);_0x105cd7=0x0;for(let _0x4d2eca=_0x1659e3-0x1;_0x4d2eca>=_0x307fa5;_0x4d2eca--)0x0==_0x1f3572[_0x4d2eca]['distance']?_0x1f3572[_0x4d2eca]['level']=_0x105cd7:(_0x105cd7--,_0x1f3572[_0x4d2eca]['level']=_0x105cd7,_0x105cd7--);}}['_fixObsoleteTags'](_0x2f37dc){const _0x122c1e=new Map(),_0x528dbe=this['editor']['model']['schema'];for(let _0x1c3ea9=0x1;_0x1c3ea9<_0x2f37dc['length'];_0x1c3ea9++){let _0x506f8f,_0x56e763,_0x2ddf80;const _0xcc261f=_0x2f37dc[_0x1c3ea9],_0x199001=_0x2f37dc[_0x1c3ea9-0x1];if('text'==_0xcc261f['type'])continue;if(_0xcc261f['type']!=_0x199001['type'])continue;if(!_0x528dbe['isBlock'](_0x199001['item'])||_0x528dbe['isLimit'](_0x199001['item']))continue;if(!_0x528dbe['isBlock'](_0xcc261f['item'])||_0x528dbe['isLimit'](_0xcc261f['item']))continue;if((_0x2f37dc[_0x1c3ea9]['isAdded']||_0x2f37dc[_0x1c3ea9]['isAddSuggestion'])&&_0x2f37dc[_0x1c3ea9-0x1]['isRemoved'])_0x506f8f=_0x2f37dc[_0x1c3ea9],_0x56e763=_0x2f37dc[_0x1c3ea9-0x1],_0x2ddf80=_0x1c3ea9-0x1;else{if(!_0x2f37dc[_0x1c3ea9]['isRemoved']||!_0x2f37dc[_0x1c3ea9-0x1]['isAdded']&&!_0x2f37dc[_0x1c3ea9-0x1]['isAddSuggestion'])continue;_0x506f8f=_0x2f37dc[_0x1c3ea9-0x1],_0x56e763=_0x2f37dc[_0x1c3ea9],_0x2ddf80=_0x1c3ea9;}const _0x55bb8e=_0x506f8f['level']==_0x56e763['level'],_0x5bff7c=Math['abs'](_0x506f8f['level'])<Math['abs'](_0x56e763['level'])&&0x0==_0x56e763['distance'];(_0x55bb8e||_0x5bff7c)&&(_0x122c1e['set'](_0x56e763['id'],_0x506f8f['id']),_0x2f37dc['splice'](_0x2ddf80,0x1),_0x1c3ea9--,_0x506f8f['isAdded']=!0x1);}for(let _0x47beb1=0x0;_0x47beb1<_0x2f37dc['length'];_0x47beb1++)_0x122c1e['has'](_0x2f37dc[_0x47beb1]['pairId'])&&(_0x2f37dc[_0x47beb1]['pairId']=_0x122c1e['get'](_0x2f37dc[_0x47beb1]['pairId']));}['_removeMissingPairs'](_0x3e10d8){const _0x4c0f90=new Set(_0x3e10d8['map'](_0x5aefb6=>_0x5aefb6['id']));for(let _0x53679b=0x0;_0x53679b<_0x3e10d8['length'];_0x53679b++)_0x4c0f90['has'](_0x3e10d8[_0x53679b]['pairId'])||0x0==_0x3e10d8[_0x53679b]['distance']||(_0x3e10d8[_0x53679b]['isIncorrect']=!0x0);return _0x3e10d8['filter'](_0x364c6c=>!_0x364c6c['isIncorrect']);}['_markMismatchedRemovedTags'](_0x37b891){const _0x5593cf=new Set();for(let _0x2b7aee=0x0;_0x2b7aee<_0x37b891['length'];_0x2b7aee++){if(_0x5593cf['has'](_0x37b891[_0x2b7aee]['id'])&&_0x37b891[_0x2b7aee]['isRemoved']&&(_0x37b891[_0x2b7aee]['isIncorrect']=!0x0),_0x37b891[_0x2b7aee]['isIncorrect'])continue;if(0x0==_0x37b891[_0x2b7aee]['distance'])continue;if('elementStart'!=_0x37b891[_0x2b7aee]['type'])continue;if(null==_0x37b891[_0x2b7aee]['pairId'])continue;let _0x250988=_0x2b7aee+0x1,_0x38e8b5=0x0;for(;_0x37b891[_0x250988]['id']!=_0x37b891[_0x2b7aee]['pairId'];)'elementStart'==_0x37b891[_0x250988]['type']?_0x38e8b5++:'elementEnd'==_0x37b891[_0x250988]['type']&&_0x38e8b5--,_0x250988++;if(0x0!=_0x38e8b5){if(_0x37b891[_0x2b7aee]['isRemoved'])_0x37b891[_0x2b7aee]['isIncorrect']=!0x0;else{for(;_0x250988!=_0x2b7aee;)_0x37b891[_0x250988]['isRemoved']&&0x0!=_0x37b891[_0x250988]['distance']&&(_0x37b891[_0x250988]['isIncorrect']=!0x0,_0x5593cf['add'](_0x37b891[_0x250988]['pairId'])),_0x250988--;}}}return _0x37b891['filter'](_0x48de34=>!_0x48de34['isIncorrect']);}['_removeUnsupportedChanges'](_0x53fc83){const _0xcf327e=this['editor']['model']['schema'];for(let _0x593559=0x0;_0x593559<_0x53fc83['length'];_0x593559++){if(!(_0x53fc83[_0x593559]['isAdded']||_0x53fc83[_0x593559]['isAddSuggestion']||_0x53fc83[_0x593559]['isRemoved']||_0x53fc83[_0x593559]['isRemoveSuggestion']))continue;if(0x0==_0x53fc83[_0x593559]['distance'])continue;const _0x26731c=_0x53fc83[_0x593559]['item'];_0xcf327e['isBlock'](_0x26731c)||_0xcf327e['isLimit'](_0x26731c)||(_0x53fc83[_0x593559]['isAdded']&&delete _0x53fc83[_0x593559]['isAdded'],_0x53fc83[_0x593559]['isAddSuggestion']&&delete _0x53fc83[_0x593559]['isAddSuggestion'],_0x53fc83[_0x593559]['isRemoveSuggestion']&&delete _0x53fc83[_0x593559]['isRemoveSuggestion'],_0x53fc83[_0x593559]['isRemoved']&&(_0x53fc83[_0x593559]['isIncorrect']=!0x0));}return _0x53fc83['filter'](_0xe1b7c8=>!_0xe1b7c8['isIncorrect']);}['_makeModelFromTape'](_0x3ba30b,_0x1ba147,_0x5d7523){const _0x3e0351=new _0x3ae66b(),_0x552596=[],_0x53b1cc=new Map(),_0x34adf2=this['editor']['model'],_0x11a968=_0x34adf2['schema'],_0x20344b=[_0x3e0351],_0xb43f81={},_0x357458={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x4172c1=null;const _0x468225=[0x0];for(let _0x583067=0x0;_0x583067<_0x3ba30b['length'];_0x583067++)if('elementStart'===_0x3ba30b[_0x583067]['type']){_0x3ba30b[_0x583067]['previousPosition']=_0x34adf2['createPositionFromPath'](_0x3e0351,_0x468225);const _0x1fdaff=new _0x11a5c7(_0x3ba30b[_0x583067]['item']['name'],_0x3ba30b[_0x583067]['item']['getAttributes']());_0x20344b[0x0]['_appendChild'](_0x1fdaff),_0x468225['push'](0x0),_0x20344b['unshift'](_0x1fdaff),_0x3ba30b[_0x583067]['nextPosition']=_0x34adf2['createPositionFromPath'](_0x3e0351,_0x468225);}else'elementEnd'===_0x3ba30b[_0x583067]['type']?(_0x20344b['shift'](),_0x3ba30b[_0x583067]['previousPosition']=_0x34adf2['createPositionFromPath'](_0x3e0351,_0x468225),_0x468225['pop'](),_0x468225[_0x468225['length']-0x1]++,_0x3ba30b[_0x583067]['nextPosition']=_0x34adf2['createPositionFromPath'](_0x3e0351,_0x468225)):(_0x3ba30b[_0x583067]['previousPosition']=_0x34adf2['createPositionFromPath'](_0x3e0351,_0x468225),_0x4172c1?_0x4172c1['_data']+=_0x3ba30b[_0x583067]['item']['data']:_0x4172c1=new _0x2a1bb8(_0x3ba30b[_0x583067]['item']['data'],_0x3ba30b[_0x583067]['item']['getAttributes']()),_0x3ba30b[_0x583067+0x1]&&'text'===_0x3ba30b[_0x583067+0x1]['type']&&_0x5841b7(_0x4172c1,_0x3ba30b[_0x583067+0x1]['item'])||(_0x20344b[0x0]['_appendChild'](_0x4172c1),_0x4172c1=null),_0x468225[_0x468225['length']-0x1]+=_0x3ba30b[_0x583067]['item']['offsetSize'],_0x3ba30b[_0x583067]['nextPosition']=_0x34adf2['createPositionFromPath'](_0x3e0351,_0x468225));for(let _0xad3190=0x0;_0xad3190<_0x3ba30b['length'];_0xad3190++){const _0xb52381=_0x3ba30b[_0xad3190]['previousPosition'],_0x280571=_0x3ba30b[_0xad3190]['nextPosition'];for(const _0x1fd10c of _0x3ba30b[_0xad3190]['markersStart'])_0x53b1cc['set'](_0x1fd10c,{'start':_0xb52381,'end':null});_0x23066f('isRemoveSuggestion',_0xad3190,_0xb52381,_0x280571),_0x23066f('isAddSuggestion',_0xad3190,_0xb52381,_0x280571),_0x23066f('isRemoved',_0xad3190,_0xb52381,_0x280571),_0x23066f('isAdded',_0xad3190,_0xb52381,_0x280571);for(const _0x529d2a of _0x3ba30b[_0xad3190]['markersEnd']){const _0x26c2d4=_0x53b1cc['get'](_0x529d2a);_0x26c2d4?_0x26c2d4['end']=_0x280571:_0x53b1cc['set'](_0x529d2a,{'start':_0x280571,'end':_0x280571});}}for(const [_0x5a9e59,_0x13c6ef]of _0x53b1cc){const _0x1168eb=this['editor']['model']['createRange'](_0x13c6ef['start'],_0x13c6ef['end']);_0x3e0351['markers']['set'](_0x5a9e59,_0x1168eb);}return _0x552596['sort']((_0x5bb793,_0x315707)=>{const _0xbe7e8d=_0x3e0351['markers']['get']('revision:'+_0x5bb793['id']),_0x3a9b55=_0x3e0351['markers']['get']('revision:'+_0x315707['id']);return _0xbe7e8d['start']['isBefore'](_0x3a9b55['start'])?-0x1:_0xbe7e8d['start']['isAfter'](_0x3a9b55['start'])?0x1:_0xbe7e8d['end']['isBefore'](_0x3a9b55['end'])?-0x1:_0xbe7e8d['end']['isAfter'](_0x3a9b55['end'])?0x1:'add'===_0x5bb793['type']?-0x1:0x1;}),{'root':_0x3e0351,'changes':_0x552596};function _0x23066f(_0x2faf41,_0x5b70d6,_0x2001d3,_0x39ae83){const _0x2f248c=!!_0x3ba30b[_0x5b70d6][_0x2faf41],_0x237b7d=_0x2f248c?_0x3ba30b[_0x5b70d6][_0x2faf41]['userId']:null,_0x14dd0e=_0x5b70d6===_0x3ba30b['length']-0x1,_0x21dceb=_0x357458[_0x2faf41][0x0],_0x10ee82=_0x11a968['isObject'](_0x3ba30b[_0x5b70d6]['item']);!_0xb43f81[_0x2faf41]&&_0x2f248c?_0xb43f81[_0x2faf41]={'start':_0x2001d3,'tapeItem':_0x3ba30b[_0x5b70d6],'userId':_0x237b7d,'type':_0x2faf41}:_0xb43f81[_0x2faf41]&&!_0x2f248c?(_0xb43f81[_0x2faf41]['end']=_0x2001d3,_0x256a1e(_0xb43f81[_0x2faf41]),_0xb43f81[_0x2faf41]=null):_0xb43f81[_0x2faf41]&&_0x2f248c&&_0xb43f81[_0x2faf41]['userId']!==_0x237b7d&&(_0xb43f81[_0x2faf41]['end']=_0x2001d3,_0x21dceb&&_0x21dceb['userId']===_0xb43f81[_0x2faf41]['userId']||_0x256a1e(_0xb43f81[_0x2faf41]),_0xb43f81[_0x2faf41]={'start':_0x2001d3,'tapeItem':_0x3ba30b[_0x5b70d6],'userId':_0x237b7d,'type':_0x2faf41}),_0xb43f81[_0x2faf41]&&_0x10ee82&&('elementStart'!==_0x3ba30b[_0x5b70d6]['type']||_0x21dceb&&_0x21dceb['userId']===_0x237b7d||_0x357458[_0x2faf41]['unshift']({'userId':_0x237b7d,'object':_0x3ba30b[_0x5b70d6]['item'],'change':_0xb43f81[_0x2faf41]}),'elementEnd'===_0x3ba30b[_0x5b70d6]['type']&&_0x21dceb&&_0x21dceb['object']===_0x3ba30b[_0x5b70d6]['item']&&(_0x357458[_0x2faf41]['shift'](),_0xb43f81[_0x2faf41]=_0x21dceb['change'])),_0xb43f81[_0x2faf41]&&_0x14dd0e&&(_0xb43f81[_0x2faf41]['end']=_0x39ae83,_0x256a1e(_0xb43f81[_0x2faf41]),_0xb43f81[_0x2faf41]=null);}function _0x256a1e({start:_0x39843b,end:_0xe85af,tapeItem:_0x53fb33,userId:_0xec5f80,type:_0x3e2f48}){const _0x3f6388=_0x53fb33['item'],_0x593104=_0x34adf2['schema']['isBlock'](_0x3f6388)&&!_0x34adf2['schema']['isLimit'](_0x3f6388),_0x5e6774=_0x39843b['nodeAfter']==_0xe85af['parent']&&_0xe85af['isAtStart'];if(_0x593104&&_0x5e6774)return;const _0x40a6ac=_0x34adf2['createRange'](_0x39843b,_0xe85af),_0x5b5555=_0x1ba147['get'](_0xec5f80),_0x325a1a=new G({'author':_0x5b5555,'type':'isAdded'==_0x3e2f48||'isAddSuggestion'==_0x3e2f48?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x3e2f48||'isRemoveSuggestion'==_0x3e2f48},'createdAt':new Date(),'rootName':_0x5d7523});_0x552596['push'](_0x325a1a),_0x3e0351['markers']['set']('revision:'+_0x325a1a['id'],_0x40a6ac);}function _0x5841b7(_0xb848ce,_0x3c7a14){const _0x48f654=_0xb848ce['getAttributes'](),_0x37991c=_0x3c7a14['getAttributes']();for(const _0x115c6a of _0x48f654){if(_0x115c6a[0x1]!==_0x3c7a14['getAttribute'](_0x115c6a[0x0]))return!0x1;_0x37991c['next']();}return _0x37991c['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x2cc327=>{const _0x6f7a2e=_0x2cc327['markerName']['split'](':')[0x1],_0x17202d=this['_getChangeFromId'](_0x6f7a2e);if(!_0x17202d)return null;const _0x2bc202='add'==_0x17202d['type']?'insertion':'deletion',_0x53670d=['ck-suggestion-marker','ck-suggestion-marker-'+_0x2bc202];return _0x17202d['data']['isSuggestion']&&_0x53670d['push']('ck-suggestion-marker-'+_0x2bc202+'-new'),this['activeChange']==_0x17202d&&_0x53670d['push']('ck-suggestion-marker--active'),{'classes':_0x53670d,'attributes':{'data-change-id':_0x6f7a2e}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x51ec03=>{_0x51ec03['on']('element:pre',(_0x3cefa4,_0x5de8df,_0x41cfec)=>{const _0x146a4c=_0x5de8df['viewItem']['getChild'](0x0);if(!_0x146a4c||!_0x146a4c['is']('element','code'))return;if(!_0x41cfec['consumable']['consume'](_0x146a4c,{'attributes':['vid_start','vid_end']}))return;const _0x37b540=_0x5de8df['modelRange']['start']['nodeAfter'];_0x41cfec['writer']['setAttribute']('vid_start',_0x146a4c['getAttribute']('vid_start'),_0x37b540),_0x41cfec['writer']['setAttribute']('vid_end',_0x146a4c['getAttribute']('vid_end'),_0x37b540);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x54f55f=>{_0x54f55f['on']('element',(_0x4c177d,_0xc0645a,_0x209b71)=>{if(!_0x209b71['consumable']['consume'](_0xc0645a['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0xc0645a['modelRange']['isCollapsed'])return;const _0x598795=_0xc0645a['modelRange']['start']['nodeAfter'];_0x598795['hasAttribute']('vid_start')||_0x598795['hasAttribute']('vid')||(_0x209b71['writer']['setAttribute']('vid_start',_0xc0645a['viewItem']['getAttribute']('vid_start'),_0x598795),_0x209b71['writer']['setAttribute']('vid_end',_0xc0645a['viewItem']['getAttribute']('vid_end'),_0x598795));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x5318ae=>_0x5318ae['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x35d981,[,_0x43363a])=>{['vid_start','vid_end','vid']['includes'](_0x43363a)&&(_0x35d981['return']=!0x0,_0x35d981['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x430cb2=>{_0x430cb2['on']('attribute:vid',(_0x134eb0,_0x3e161f,_0x1d973b)=>{if('\x20'!=_0x3e161f['item']['data']||_0x3e161f['item']['parent']['maxOffset']>0x1)return;if(!_0x1d973b['consumable']['consume'](_0x3e161f['item'],_0x134eb0['name']))return;const _0x57e2f2=_0x1d973b['writer'],_0x5849b2=_0x1d973b['mapper']['toViewRange'](_0x3e161f['range']);_0x57e2f2['wrap'](_0x5849b2,_0x57e2f2['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x39c0eb){const _0x4da209=_0x39c0eb['plugins']['get']('RevisionViewer');return(_0x164050,_0x39216b,_0x332ccd)=>{const _0x1a6385=_0x39216b['markerName']['split'](':')[0x1],_0x189566=_0x4da209['_getChangeFromId'](_0x1a6385);if(!_0x189566)return null;const _0x3a7d1f='add'==_0x189566['type']?'split':'merge';if(!_0x332ccd['consumable']['test'](_0x39216b['markerRange'],_0x164050['name']))return;const _0x101ce0=_0x39216b['markerRange']['getWalker'](),_0x564296=_0x39216b['markerRange']['start'],_0x2a2bac=_0x39c0eb['model']['schema'];let _0x18f149=null,_0x3e6c6e=null,_0x3ad57b=!0x1,_0x300296=!0x1;for(const _0x50b9ba of _0x101ce0){const _0x5ac297=_0x50b9ba['item'];_0x3ad57b=_0x3ad57b||_0x2a2bac['isContent'](_0x5ac297);const _0x7c1ace=_0x332ccd['mapper']['toViewElement'](_0x5ac297);if(_0x7c1ace&&_0x7c1ace['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x50b9ba['type']&&(_0x2a2bac['isBlock'](_0x5ac297)&&!_0x2a2bac['isLimit'](_0x5ac297)&&(_0x5ac297['nextSibling']||_0x564296['isAtEnd']?_0x18f149&&_0x18f149['parent']==_0x5ac297||(_0x18f149=_0x5ac297,_0x43f9e7(_0x50b9ba['previousPosition']),_0x300296=!0x0):_0x3e6c6e=_0x3e6c6e||_0x50b9ba['previousPosition']));}function _0x43f9e7(_0x19fb58){const _0x19c934=_0x332ccd['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3a7d1f}),_0x160ef5=_0x332ccd['mapper']['toViewPosition'](_0x19fb58);_0x189566['data']['isSuggestion']&&_0x332ccd['writer']['addClass']('ck-suggestion-marker-'+_0x3a7d1f+'-new',_0x19c934),_0x4da209['activeChange']==_0x189566&&_0x332ccd['writer']['addClass']('ck-suggestion-marker--active',_0x19c934),_0x332ccd['writer']['insert'](_0x160ef5,_0x19c934),_0x332ccd['mapper']['bindElementToMarker'](_0x19c934,_0x39216b['markerName']);}_0x3ad57b||_0x300296||!_0x3e6c6e||_0x43f9e7(_0x3e6c6e);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x1b2511,_0x5336a9,_0x29f1ee)=>{const _0x82f2a8=_0x29f1ee['mapper']['markerNameToElements'](_0x5336a9['markerName']);if(_0x82f2a8){for(const _0x5dc106 of _0x82f2a8)(_0x5dc106['hasClass']('ck-suggestion-marker-split')||_0x5dc106['hasClass']('ck-suggestion-marker-merge'))&&(_0x29f1ee['mapper']['unbindElementFromMarkerName'](_0x5dc106,_0x5336a9['markerName']),_0x29f1ee['writer']['remove'](_0x5dc106));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x188bd9,_0x3eb86b,_0x14c3f0)=>{const _0x27dcd7=_0x3eb86b['markerName']['split'](':')[0x1],_0x348fc2=this['_getChangeFromId'](_0x27dcd7);if(!_0x348fc2)return null;const _0x489fa3='add'==_0x348fc2['type']?'split':'merge';if(_0x14c3f0['consumable']['test'](_0x3eb86b['markerRange'],_0x188bd9['name']))for(const _0x58b21d of _0x3eb86b['markerRange']['getItems']()){if(!_0x58b21d['is']('element','softBreak'))continue;const _0x209205=_0x14c3f0['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x489fa3}),_0x5a0ce1=_0x14c3f0['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x58b21d));_0x348fc2['data']['isSuggestion']&&_0x14c3f0['writer']['addClass']('ck-suggestion-marker-'+_0x489fa3+'-new',_0x209205),this['activeChange']==_0x348fc2&&_0x14c3f0['writer']['addClass']('ck-suggestion-marker--active',_0x209205),_0x14c3f0['writer']['insert'](_0x5a0ce1,_0x209205),_0x14c3f0['mapper']['bindElementToMarker'](_0x209205,_0x3eb86b['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x79aed0=>{for(const _0x368b6e of this['editor']['model']['document']['getRootNames']()){const _0x3212aa=this['editor']['model']['document']['getRoot'](_0x368b6e),_0x3aece2=this['editor']['editing']['view']['document']['getRoot'](_0x368b6e);if(_0x3aece2){const _0x4ca9b4=_0x3212aa['getAttribute']('revisionHistoryAttachChange');if(_0x79aed0['removeAttribute']('data-change-id',_0x3aece2),_0x79aed0['removeClass']('ck-revision-history-root-add',_0x3aece2),_0x79aed0['removeClass']('ck-revision-history-root-remove',_0x3aece2),_0x79aed0['removeClass']('ck-revision-history-root--active',_0x3aece2),_0x4ca9b4){const _0x233668=this['_getChangeFromId'](_0x4ca9b4);if(!_0x233668)return null;_0x79aed0['setAttribute']('data-change-id',_0x4ca9b4,_0x3aece2),_0x79aed0['addClass']('ck-revision-history-root-'+_0x233668['type'],_0x3aece2),this['activeChange']==_0x233668&&_0x79aed0['addClass']('ck-revision-history-root--active',_0x3aece2);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x14710c=>'revision-comment:'+_0x14710c,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x3ae038=>'revision-suggestion:'+_0x3ae038,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x57af57=>({'name':'suggestion:'+_0x57af57,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x41cabe=>{const _0x5b6f09=_0x41cabe['markerName']['split'](':')[0x1];return'insertion'!=_0x5b6f09&&'deletion'!=_0x5b6f09?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x5b6f09]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Q(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Q(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x5b8c69,_0x2ba958,_0x824150)=>{const _0x2a75fc=_0x824150['mapper']['markerNameToElements'](_0x2ba958['markerName']);if(_0x2a75fc){for(const _0x5d8fc7 of _0x2a75fc)_0x5d8fc7['is']('uiElement')&&(_0x824150['mapper']['unbindElementFromMarkerName'](_0x5d8fc7,_0x2ba958['markerName']),_0x824150['writer']['remove'](_0x5d8fc7));}},{'priority':'high'});}['_getChangeFromId'](_0x319688){return this['_changeIdToChange']['get'](_0x319688);}['_getViewForChange'](_0x5e3829){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x5e3829),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x2fe93a,_0x6990d3,_0x677814,_0x59505c)=>{_0x59505c&&this['_balloon']['remove'](_0x59505c),_0x677814&&(this['_balloon']['add']({'view':_0x677814,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x5c7516=this['editor']['editing'],_0x32ba4d=this['_getChangeFromId'](_0x677814['changeId']);let _0x2b4407;if(_0x32ba4d['data']['isOnRoot']){const _0x20c9d2=_0x5c7516['view']['getDomRoot'](_0x32ba4d['rootName']);_0x2b4407=Array['from'](_0x20c9d2['getClientRects']());}else{const _0x5dc6ad=this['editor']['model']['markers']['get']('revision:'+_0x677814['changeId']);_0x2b4407=Array['from'](_0x5c7516['mapper']['markerNameToElements'](_0x5dc6ad['name']))['map'](_0xd37109=>_0x5c7516['view']['domConverter']['mapViewToDom'](_0xd37109))['map'](_0x1f4f1a=>Array['from'](_0x1f4f1a['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x2b4407[0x0];return _0x2b4407['find'](_0x2861d8=>_0x2861d8['top']-0x3<=this['_activeViewTarget']['y']&&_0x2861d8['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x2861d8['left']-0x3<=this['_activeViewTarget']['x']&&_0x2861d8['right']+0x3>=this['_activeViewTarget']['x'])||_0x2b4407[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0xcc21b4,_0xd7f720,_0x224b8e,_0x1bf0db)=>{this['activeView']=_0x224b8e?this['_getViewForChange'](_0x224b8e):null,this['editor']['model']['change'](()=>{const _0x3abea5=this['editor']['editing'];_0x1bf0db&&(_0x1bf0db['data']['isOnRoot']?_0x3abea5['view']['change'](_0x26a42d=>{_0x26a42d['removeClass']('ck-revision-history-root--active',_0x3abea5['view']['document']['getRoot'](_0x1bf0db['rootName']));}):_0x3abea5['reconvertMarker']('revision:'+_0x1bf0db['id'])),_0x224b8e&&(_0x224b8e['data']['isOnRoot']?_0x3abea5['view']['change'](_0x25e0e9=>{_0x25e0e9['addClass']('ck-revision-history-root--active',_0x3abea5['view']['document']['getRoot'](_0x224b8e['rootName']));}):_0x3abea5['reconvertMarker']('revision:'+_0x224b8e['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x4cb38a,_0x470b3d)=>{if(this['activeChange'])return;const _0x4bb349=this['_findChangeIdFromDomTarget'](_0x470b3d['target']),_0x54f333=this['_changeIdToChange']['get'](_0x4bb349);_0x54f333?(this['_activeViewTarget']={'x':_0x470b3d['domEvent']['x'],'y':_0x470b3d['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x54f333)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x4710c5,_0x5838d4)=>{const _0x41853e=this['_findChangeIdFromDomTarget'](_0x5838d4['target']),_0x5b60b3=this['_changeIdToChange']['get'](_0x41853e);_0x5b60b3?(this['_activeViewTarget']={'x':_0x5838d4['domEvent']['x'],'y':_0x5838d4['domEvent']['y']},_0x5b60b3===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x5b60b3):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x560079){do{const _0xd1906c=_0x560079['getAttribute']('data-change-id');if(_0xd1906c)return _0xd1906c;_0x560079=_0x560079['parent'];}while(_0x560079);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x1dfc24=>{for(const _0x8adeba of this['editor']['model']['markers'])_0x1dfc24['removeMarker'](_0x8adeba);});}}function Q(_0x3f311a,_0x189eaf){return(_0x1e4a11,_0x2691c3,_0x2f1fb5)=>{if(!_0x2f1fb5['consumable']['test'](_0x2691c3['markerRange'],_0x1e4a11['name']))return;const _0x3d99a4=_0x2691c3['markerRange']['getWalker'](),_0x30c1d3=_0x2691c3['markerRange']['start'],_0x24c810=_0x3f311a['model']['schema'];let _0x5bcade=null,_0x36bbca=null,_0x413cb3=!0x1,_0x1817bc=!0x1;for(const _0x29f05a of _0x3d99a4){const _0x1467dd=_0x29f05a['item'];_0x413cb3=_0x413cb3||_0x24c810['isContent'](_0x1467dd);const _0x256e60=_0x2f1fb5['mapper']['toViewElement'](_0x1467dd);if(_0x256e60&&_0x256e60['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x29f05a['type']&&(_0x24c810['isBlock'](_0x1467dd)&&!_0x24c810['isLimit'](_0x1467dd)&&(_0x1467dd['nextSibling']||_0x30c1d3['isAtEnd']?_0x5bcade&&_0x5bcade['parent']==_0x1467dd||(_0x5bcade=_0x1467dd,_0x4d2d62(_0x29f05a['previousPosition']),_0x1817bc=!0x0):_0x36bbca=_0x36bbca||_0x29f05a['previousPosition']));}function _0x4d2d62(_0x3f57d5){const _0x5a102d=_0x2f1fb5['mapper']['toViewPosition'](_0x3f57d5),_0x47a7c0=_0x2f1fb5['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x189eaf});_0x2f1fb5['writer']['insert'](_0x5a102d,_0x47a7c0),_0x2f1fb5['mapper']['bindElementToMarker'](_0x47a7c0,_0x2691c3['markerName']);}_0x413cb3||_0x1817bc||!_0x36bbca||_0x4d2d62(_0x36bbca);};}class nt extends _0x3dab4f{constructor(_0x3954bf){super(_0x3954bf);const _0x305225=_0x3954bf['plugins']['get'](l);this['affectsData']=!0x1,this['listenTo'](_0x305225,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x305225,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0xd078c0=this['editor'],_0x1a1cd1=_0xd078c0['plugins']['get'](l),_0x59e475=_0x1a1cd1['isReady']?_0x1a1cd1['diff']['newRevisionId']:null;_0xd078c0['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x59e475);}['refresh'](){const {isReady:_0x247d86,isEnabled:_0x25236d,repository:_0x4e91a2,diff:_0x1bb5be}=this['editor']['plugins']['get'](l),_0x4d9e93=_0x1bb5be&&_0x4e91a2['getLaterVisibleRevision'](_0x1bb5be['newRevisionId']);this['isEnabled']=_0x247d86&&_0x25236d&&Boolean(_0x4d9e93);}}class rt extends _0x3dab4f{['_step'];constructor(_0xe79849,{direction:_0x403173}){super(_0xe79849);const _0x1ee214=_0xe79849['plugins']['get'](l);this['affectsData']=!0x1,this['_step']='forward'===_0x403173?0x1:-0x1,this['listenTo'](_0x1ee214,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x1ee214,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x1ee214,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x188b82=this['editor'],_0x33d4c1=_0x188b82['plugins']['get'](l),{isNavigationMode:_0x4ebce4,currentChangeNumber:_0x156a68}=_0x33d4c1;let _0x4630b4;if(_0x33d4c1['activeChange']=_0x4ebce4?_0x33d4c1['diff']['changes']['get'](_0x156a68+this['_step']):_0x33d4c1['diff']['changes']['first'],_0x33d4c1['activeChange']['data']['isOnRoot'])_0x4630b4=_0x188b82['editing']['view']['getDomRoot'](_0x33d4c1['activeChange']['rootName']);else{const _0x2fab1a=_0x188b82['model']['markers']['get']('revision:'+_0x33d4c1['activeChange']['id']);_0x4630b4=_0x3d22cf(_0x188b82['editing'],_0x2fab1a);}_0x5d40e9({'target':_0x4630b4,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x247219,currentChangeNumber:_0x452305,numberOfChanges:_0x5c139c,isReady:_0x52a516,isEnabled:_0x104ff9}=this['editor']['plugins']['get'](l);this['isEnabled']=!!(_0x104ff9&&_0x52a516&&_0x5c139c)&&(!_0x247219||(0x1===this['_step']?_0x452305<_0x5c139c-0x1:_0x452305>0x0));}}class Ri extends _0x2978dc{constructor(_0x2674a5){super(_0x2674a5);const _0x3cfad3=this['bindTemplate'],_0x4dc636=new _0x3ced20(_0x2674a5),_0x292358=new _0x3ced20(_0x2674a5);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',(_0x2dc935,_0xd7ed4e)=>_0x2dc935&&_0xd7ed4e>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x5c16fe,_0x2fd229,_0x4947fa,_0x27c498)=>{if(!_0x5c16fe)return R(_0x2674a5,'Loading...');if(!_0x4947fa)return R(_0x2674a5,'No\x20changes');const _0x1f7198=R(_0x2674a5,'NUMBER_OF_CHANGES',_0x4947fa);return _0x27c498?R(_0x2674a5,'X_OF_Y_CHANGES',[_0x2fd229+0x1,_0x4947fa]):_0x1f7198;}),_0x4dc636['set']({'label':R(_0x2674a5,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x54f190}),_0x292358['set']({'label':R(_0x2674a5,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x4bb357}),_0x4dc636['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x292358['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x4dc636['on']('execute',()=>this['fire']('execute','backward')),_0x292358['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',_0x3cfad3['if']('_isStatusLabelVisible','ck-hidden',_0xc84bdc=>!_0xc84bdc)]},'children':[{'text':_0x3cfad3['to']('isNavigationMode',_0x14598c=>_0x14598c?R(_0x2674a5,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x2674a5,'Total')+':\x20')}]},{'text':_0x3cfad3['to']('_statusText')}]},new _0x2b1b00(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x4dc636,_0x292358]}]});}}const ge='ck-editor__editable__loading-overlay';class ji extends _0x235b76{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x290124=this['editor']['editing']['view'];_0x290124['change'](_0x290155=>{for(const _0x593de2 of _0x290124['document']['roots'])_0x290155['addClass'](ge,_0x593de2);});}['hide'](){const _0x3f5b7f=this['editor']['editing']['view'];_0x3f5b7f['change'](_0x1a6dff=>{for(const _0x1a1cb0 of _0x3f5b7f['document']['roots'])_0x1a6dff['removeClass'](ge,_0x1a1cb0);});}}class u extends _0x235b76{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,ji];}['init'](){const _0x1057dd=this['editor'],_0x459bda=_0x1057dd['plugins']['get'](l),_0x53ec80=_0x1057dd['plugins']['get'](ji);_0x1057dd['ui']['componentFactory']['add']('exitToEditing',_0x2e613c=>{const _0x457d64=new _0x3ced20(_0x2e613c);return _0x457d64['set']({'label':R(_0x2e613c,'Back\x20to\x20editing'),'icon':_0x3ff679,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x457d64,'execute',()=>{_0x1057dd['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x457d64;}),_0x1057dd['ui']['componentFactory']['add']('restoreRevision',_0x1f0bd7=>{const _0x323793=new _0x3ced20(_0x1f0bd7);return _0x323793['set']({'label':R(_0x1f0bd7,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x323793['bind']('isEnabled')['to'](_0x1057dd['commands']['get']('restoreRevision')),this['listenTo'](_0x323793,'execute',()=>_0x1057dd['execute']('restoreRevision')),_0x323793;}),_0x1057dd['ui']['componentFactory']['add']('changesNavigation',_0xcbeb92=>{const _0x44efb7=new Ri(_0xcbeb92),_0x3b5603=_0x1057dd['commands']['get']('showPreviousChange'),_0x5e4712=_0x1057dd['commands']['get']('showNextChange');return _0x44efb7['bind']('isBackwardNavigationEnabled')['to'](_0x3b5603,'isEnabled'),_0x44efb7['bind']('isForwardNavigationEnabled')['to'](_0x5e4712,'isEnabled'),_0x44efb7['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x459bda),this['listenTo'](_0x44efb7,'execute',(_0x450e18,_0xbd8d4a)=>{_0x1057dd['execute']('forward'===_0xbd8d4a?'showNextChange':'showPreviousChange');}),_0x44efb7;}),_0x53ec80['show'](),_0x459bda['on']('change:isReady',(_0x590b29,_0xbfdddc,_0x40f591)=>{_0x40f591?_0x53ec80['hide']():_0x53ec80['show']();});}}class hi extends et{['_resizeObserver']=null;constructor(_0x58838a,_0x3bd571){super(_0x58838a,_0x3bd571);const _0x2bd636=this['bindTemplate'];this['set']({'label':R(_0x58838a,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x58838a,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x2bd636['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new ot(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x2b52bf=this['fieldView']['element'];this['_tooltipString']=_0x2b52bf['scrollWidth']>_0x2b52bf['clientWidth']&&_0x2b52bf['value']||'';}}class ni extends _0x2978dc{constructor(_0x5d542c,_0x5cf6b7,_0x4194ed){super(_0x5d542c);const _0x356ed1=new _0x34c740();_0x356ed1['set']({'content':_0x5b6cfe,'viewBox':'0\x200\x2011\x2010'});const _0x317839=['ck','ck-revision-history-sidebar__revision-author'];_0x4194ed&&_0x317839['push']('ck-revision-history-sidebar__revision-author_creator');const _0x516697=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x5d542c,_0x4194ed?'Revision\x20creator':'Revision\x20author')},'children':[_0x356ed1,_0x5cf6b7['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x317839},'children':_0x516697});}}function ci(_0x1dd151,_0x12e84e){const _0x3f978d=_0x1dd151['bindTemplate'],_0x14af37=_0x1dd151['locale'],_0x686821=_0x5e74ef(_0x14af37);_0x686821['panelPosition']='sw';const _0x52277f=function(_0xf12f69,_0x3118ba){const _0x2899c0=function(_0x158338,_0x4dc0eb){const _0x47098b=_0x158338['locale'],_0x20d7be={'Compare\x20against\x20selected':R(_0x47098b,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x47098b,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x47098b,'Restore\x20this\x20revision')};return _0x4dc0eb['map'](_0x1b2489=>{const _0x54aa1a=_0x20d7be[_0x1b2489['name']];return _0x54aa1a&&_0x54aa1a!==_0x1b2489['name']&&(_0x1b2489['name']=_0x54aa1a),_0x1b2489;});}(_0xf12f69,_0x3118ba),_0x32ed25=new _0x3ac57f();for(const _0x13a953 of _0x2899c0){const _0x3a0bd3={'type':'button','model':new to({'label':_0x13a953['name'],'class':_0x13a953['class'],'withText':!0x0,'role':'menuitem','_action':_0x13a953['action']})};_0x3a0bd3['model']['bind']('isEnabled')['to'](_0xf12f69,'isActionsDropdownOpen',_0x4a1656=>'function'!=typeof _0x13a953['isEnabled']||(!_0x4a1656||_0x13a953['isEnabled'](_0xf12f69))),_0x32ed25['add'](_0x3a0bd3);}return _0x32ed25;}(_0x1dd151,_0x12e84e);return _0x1dd151['bind']('isActionsDropdownOpen')['to'](_0x686821,'isOpen'),_0x686821['buttonView']['set']({'label':R(_0x14af37,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x5c4da2}),_0x686821['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x3f978d['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x3f978d['to'](_0x1df0f8=>_0x1df0f8['stopPropagation']())}}),_0x686821['on']('execute',_0x4ebbd7=>{_0x1dd151['isReady']&&'function'==typeof _0x4ebbd7['source']['_action']&&_0x4ebbd7['source']['_action'](_0x1dd151);}),_0x2000a3(_0x686821,_0x52277f,{'role':'menu'}),_0x686821['listenTo'](_0x1dd151,'change:isActionsDropdownOpen',(_0x113f61,_0x3c5b44,_0x1d333b)=>{if(_0x1d333b)for(const _0x22eb2a of _0x686821['listView']['items']){const _0x577c0c=_0x22eb2a['children']['first'],_0x50c147=_0x12e84e['find'](_0x590a3d=>_0x590a3d['action']===_0x577c0c['_action'])['isVisible'];_0x22eb2a['isVisible']=void 0x0===_0x50c147||_0x50c147(_0x1dd151);}}),_0x686821;}class vi extends/* #__PURE__ -- @preserve */
|
|
27
|
+
_0xda903c(_0x2978dc){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0xdfbc9e,_0x363eb3,_0x54d4c4,_0x2ff547){super(_0xdfbc9e);const _0x23f6a7=this['bindTemplate'],_0x1bcde0=function(_0x2e931d,_0x152c61){const _0x11d59e=Array['from'](_0x152c61['authors'])['filter'](_0xc95dbb=>_0xc95dbb!=_0x152c61['creator']);return _0x152c61['creator']&&_0x11d59e['unshift'](_0x152c61['creator']),_0x11d59e['map'](_0x52c0f3=>new ni(_0x2e931d,_0x52c0f3,_0x52c0f3==_0x152c61['creator']));}(_0xdfbc9e,_0x363eb3);this['id']=_0x363eb3['id'],this['_revision']=_0x363eb3,this['_requireRevisionName']=_0x2ff547,this['bind']('name','createdAt')['to'](_0x363eb3),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x2f53e0=>{return _0x24faba=_0xdfbc9e['uiLanguage'],(_0x569617=_0x2f53e0)['toLocaleDateString'](_0x24faba,{'month':'long','day':'numeric'})+',\x20'+_0x569617['toLocaleTimeString'](_0x24faba,{'hour':'numeric','minute':'numeric'});var _0x24faba,_0x569617;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new hi(_0xdfbc9e,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x4d92c5=>_0x4d92c5||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x22fc58,_0x2990f6)=>_0x22fc58&&_0x2990f6),this['revisionActionsView']=_0x54d4c4&&_0x54d4c4['length']?ci(this,_0x54d4c4):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x23f6a7['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x23f6a7['if']('isEnabled','ck-disabled',_0x22700a=>!_0x22700a),_0x23f6a7['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x23f6a7['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x23f6a7['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':_0x23f6a7['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':_0x1bcde0}]},this['revisionActionsView']],'on':{'click':_0x23f6a7['to'](_0x426841=>{_0x426841['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0xf57a74=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0xf57a74,'change',()=>{this['_requireRevisionName']&&!_0xf57a74['value']||this['fire']('setName',{'id':this['id'],'name':_0xf57a74['value']}),_0xf57a74['value']||(_0xf57a74['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function mi(_0x4fa42b,_0x1421be){const _0x53d8f3=_0x24bcb5['fromJSDate'](_0x4fa42b)['setLocale'](_0x1421be),_0x485145=_0x24bcb5['local'](),_0x43aabc=_0x485145['minus']({'days':0x1})['startOf']('day');let _0x4c60e,_0x3d8bdb;return _0x53d8f3['hasSame'](_0x485145,'day')?(_0x4c60e=_0x53d8f3['startOf']('day')['toJSDate'](),_0x3d8bdb=_0x53d8f3['toRelativeCalendar']()):_0x53d8f3['hasSame'](_0x43aabc,'day')?(_0x4c60e=_0x43aabc['toJSDate'](),_0x3d8bdb=_0x53d8f3['toRelativeCalendar']()):_0x53d8f3['hasSame'](_0x485145,'week')?(_0x4c60e=_0x53d8f3['startOf']('week')['toJSDate'](),_0x3d8bdb=_0x53d8f3['weekdayLong']||''):_0x53d8f3['hasSame'](_0x485145,'year')?(_0x4c60e=_0x53d8f3['startOf']('month')['toJSDate'](),_0x3d8bdb=_0x53d8f3['monthLong']||''):(_0x4c60e=_0x53d8f3['startOf']('year')['toJSDate'](),_0x3d8bdb=String(_0x53d8f3['year'])),{'startDate':_0x4c60e,'localizedPeriodName':_0x3d8bdb};}class li extends _0x2978dc{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x13b260,_0x4fb782,_0x51ebb4,_0x155b86){super(_0x13b260);const _0x2944e7=mi(_0x4fb782,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x4fb782,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x51ebb4,this['_requireRevisionName']=_0x155b86,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':_0x2944e7}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x27dd43){const _0x232bc6=new vi(this['locale'],_0x27dd43,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x232bc6);}['removeRevision'](_0x3f0b97){const _0x30118b=this['revisionViews']['find'](_0x551cd2=>_0x551cd2['id']===_0x3f0b97['id']);this['revisionViews']['remove'](_0x30118b);}}class bi extends _0x2978dc{constructor(_0x13ffc1){super(_0x13ffc1);const _0x53f150=new _0x34c740();_0x53f150['content']=_0x5cf05f,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x53f150,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0x13ffc1,'Revision\x20history')]}]});}}class di extends _0x2978dc{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x4048cf,_0x1b1c83,_0x4d52a0,_0x2f638e){super(_0x4048cf);const _0x1edbe9=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x1b1c83,this['_revisionActions']=_0x4d52a0,this['_requireRevisionName']=_0x2f638e,this['on']('select',(_0x2de686,_0x22831b)=>{this['fire']('revisionSelected',_0x22831b);}),this['on']('setName',(_0x54abff,_0x344a47)=>{this['fire']('revisionSetName',_0x344a47);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new bi(_0x4048cf),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x1edbe9['if']('isEnabled','ck-disabled',_0x207d54=>!_0x207d54)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x1c648f of this['_revisions'])this['_addRevision'](_0x1c648f);this['_revisions']['on']('add',(_0x579cd5,_0x283606)=>{this['_addRevision'](_0x283606);}),this['_revisions']['on']('remove',(_0x1338c7,_0x46af0c)=>{this['_removeRevision'](_0x46af0c);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x440ec9=>_0x440ec9['revisionViews']['map'](_0x42fab1=>_0x42fab1))['flat']();}['selectRevision'](_0x1eb784){for(const _0x206448 of this['revisionViews'])_0x1eb784&&_0x1eb784['id']===_0x206448['id']?_0x206448['select']():_0x206448['deselect']();}['highlightRevisions'](_0x5c84a8){for(const _0x566a0e of this['revisionViews'])_0x5c84a8['some'](({id:_0x345434})=>_0x345434===_0x566a0e['id'])?_0x566a0e['highlight']():_0x566a0e['unhighlight']();}['_addRevision'](_0x3e164a){const _0x548f66=mi(_0x3e164a['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x3a2762=this['timePeriodViews']['get'](0x0);_0x3a2762&&_0x3a2762['startDate']['getTime']()===_0x548f66['getTime']()||(_0x3a2762=new li(this['locale'],_0x548f66,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x3a2762)),_0x3a2762['addRevision'](_0x3e164a);}['_removeRevision'](_0x4fe6ef){const _0x5eee7b=mi(_0x4fe6ef['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x5eee7b)['removeRevision'](_0x4fe6ef);}['_getTimePeriodViewByStartDate'](_0x1acea3){return this['timePeriodViews']['find'](_0x19b1ac=>_0x19b1ac['startDate']['getTime']()===_0x1acea3['getTime']());}}class f extends _0x235b76{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
28
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
29
|
-
|
|
30
|
-
_0x312e8b(_0x47573f){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x2ecbe0,_0x571b1a){super(_0x571b1a),this['sourceElement']=_0x2ecbe0,this['model']['document']['createRoot']();const _0x4662ab=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x4662ab);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x2693a6,_0x107ba9){const _0x2fc7e0=new this(_0x2693a6,_0x107ba9);return await _0x2fc7e0['initPlugins'](),await _0x2fc7e0['ui']['init'](_0x2693a6),await _0x2fc7e0['data']['init'](_0x2fc7e0['config']['get']('initialData')||''),_0x2fc7e0['fire']('ready'),_0x2fc7e0;}}const d=['RevisionHistoryUI','RestrictedEditingMode'];class at extends _0x7a0156{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1fe397){function _0x14379a(_0x19d776){return _0x19d776['map'](_0x44f796=>String['fromCharCode'](_0x44f796))['join']('');}super(_0x1fe397),this['result']='end',_0x1fe397[_0x14379a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x14379a([0x76,0x69,0x65,0x77])][_0x14379a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x14379a([0x61,0x75,0x74,0x6f]),_0x1fe397[_0x14379a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x14379a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x14379a([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x14379a([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x14379a([0x6f,0x6b])});}}class ht extends _0x7a0156{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,v];}constructor(_0x1d6b29){if(super(_0x1d6b29),!this['editor']['config']['get']('revisionHistory'))throw new _0x4e9057('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x2069f7=>this['_showRevisionViewer']({..._0x2069f7,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x46b291=>this['_closeRevisionViewer'](_0x46b291)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x226616=>this['_restoreRevision'](_0x226616)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x3f9af4){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x3f9af4;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x4baad7){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x4baad7);}['getRevision'](_0x5c0865){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x5c0865);}['getRevisions'](_0x2ef8a3){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x2ef8a3||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x2626e4=this['editor'],_0x3efc3d=_0xe0af66(_0x2626e4,d),_0x55c202=_0x2626e4['plugins']['get']('RevisionTracker'),_0x118673=_0x2626e4['plugins']['get']('Users')['users'];return _0x3efc3d['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x3efc3d['lazyRoots'],(_0x3efc3d['plugins']['push'](at,l,u,class extends _0x7a0156{static get['requires'](){return[l,'Users'];}['init'](){const _0x26ac8c=this['editor']['plugins']['get']('Users');for(const _0x38f2bc of _0x118673)_0x38f2bc['isAnonymous']||_0x26ac8c['getUser'](_0x38f2bc['id'])||_0x26ac8c['addUser'](_0x38f2bc);const _0x5af165=_0x55c202['repository']['getRevisions']();let _0x5d9fb9=null;const _0x769013=this['editor']['plugins']['get']('RevisionViewer');_0x769013['adapter']=_0x55c202['adapter'],_0x769013['bind']('isEnabled')['to'](_0x55c202),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x2626e4,'isReadOnly',_0x27b7e3=>!_0x27b7e3);for(const _0x331039 of _0x5af165){const _0x3899cb=null===_0x331039['creator'];if(_0x3899cb&&_0x331039['toVersion']===_0x331039['fromVersion'])continue;const _0x279f53=_0x331039['toJSON']();_0x769013['addRevisionData'](_0x279f53,(_0x1039f8,_0x432446,_0x311858)=>{if(_0x3899cb){if(_0x5d9fb9)_0x5d9fb9['_update'](_0x1039f8,_0x432446);else{if(!_0x432446){const _0x2d718f=_0x311858['toJSON']();_0x2d718f['id']=_0x33e273(),_0x55c202['saveRevision'](_0x2d718f,_0x311858['toVersion'])['then'](_0x193dcb=>{_0x5d9fb9=_0x193dcb;});}}}else _0x331039['_update'](_0x1039f8,_0x432446);});}}},f),_0x3efc3d);}['_enhanceShowRevisionViewerCallback'](){const _0x21a5dd=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x1db812=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x58544d=this['editor']['plugins']['get']('Autosave');await _0x58544d['save']();}else await _0x1db812['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0xf3bdbf=this['editor']['plugins']['get']('Dialog');_0xf3bdbf['isOpen']&&_0xf3bdbf['hide']();}const _0x9683d2=this['_getRevisionViewerEditorConfig']();return _0x21a5dd(_0x9683d2)['then'](_0x4ab719=>{return(this['_viewerEditor']=_0x4ab719,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),(this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']='none'),_0x4ab719);})['catch'](_0x25496b=>(console['error'](_0x25496b),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x2c51ac=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x2c51ac(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x59f5f8=this['editor']['plugins']['get']('Annotations');_0x59f5f8['refreshVisibility'](),_0x59f5f8['refreshPositioning']();}})));}['_showRevisionViewer'](_0x4fc526){const _0x3379f1=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x52f21e=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x25980a=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return m['create'](_0x25980a,_0x4fc526)['then'](_0x3949a9=>(_0x52f21e['style']['display']='block',_0x3379f1['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x3949a9));}['_closeRevisionViewer'](_0x40b54f){const _0x3ca38a=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x3ca38a['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x40b54f['destroy']();}async['_restoreRevision'](_0x4437b9){const _0x5a7318=this['editor'],_0xc290c1=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x12f827=_0x5a7318['plugins']['get']('RevisionTracker'),_0x419f8c=_0x5a7318['plugins']['get']('RevisionHistoryUtils'),_0x5e8575=_0xc290c1['repository']['getRevision'](_0x4437b9);let _0x3eef7c,_0x1718e3,_0x2c4baa;try{await _0x419f8c['loadRevisionData'](_0x5e8575,this['adapter']),_0x3eef7c=_0x419f8c['getRevisionDocumentData'](_0x5e8575),_0x1718e3=_0x419f8c['getRevisionRootsAttributes'](_0x5e8575);}catch(_0x118b28){return void console['error'](_0x118b28);}_0x5a7318['model']['change'](_0x28902c=>{for(const _0x2c106e of Array['from'](_0x5a7318['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x28902c['removeMarker'](_0x2c106e);}),_0xc290c1['isReady']=!0x1,_0x5a7318['model']['enqueueChange'](_0x10d9b6=>{_0x10d9b6['setSelection'](null),_0x10d9b6['removeSelectionAttribute'](_0x5a7318['model']['document']['selection']['getAttributeKeys']());const _0x5ec6f=Object['keys'](_0x3eef7c);for(const _0x544663 of _0x5a7318['model']['document']['roots'])'$graveyard'!=_0x544663['rootName']&&_0x544663['isAttached']()&&!_0x5ec6f['includes'](_0x544663['rootName'])&&_0x10d9b6['detachRoot'](_0x544663);for(const _0x5e80f9 of _0x5ec6f){let _0x1cd522=_0x5a7318['model']['document']['getRoot'](_0x5e80f9);_0x1cd522&&_0x1cd522['isAttached']()||(_0x1cd522=_0x10d9b6['addRoot'](_0x5e80f9));const _0xb4f20b=_0x1718e3[_0x5e80f9],_0x2bae7d=Object['keys'](_0xb4f20b),_0x4e7c75=_0x3eef7c[_0x5e80f9];for(const _0xc48807 of _0x1cd522['getAttributeKeys']())_0x2bae7d['includes'](_0xc48807)||_0x10d9b6['removeAttribute'](_0xc48807,_0x1cd522);for(const _0x2769b0 of _0x2bae7d)_0x10d9b6['setAttribute'](_0x2769b0,_0x1718e3[_0x5e80f9][_0x2769b0],_0x1cd522);_0x10d9b6['remove'](_0x10d9b6['createRangeIn'](_0x1cd522)),_0x10d9b6['insert'](_0x5a7318['data']['parse'](_0x4e7c75,_0x1cd522),_0x1cd522,0x0);}});const _0x88aafd=R(_0x5a7318['locale'],'Restored');if(_0x5e8575['name'])_0x2c4baa=-0x1==_0x5e8575['name']['indexOf'](_0x88aafd)?_0x88aafd+':\x20'+_0x5e8575['name']:_0x5e8575['name'];else _0x2c4baa=_0x88aafd+':\x20'+(_0x5e8575['createdAt']['toLocaleDateString'](_0x5a7318['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x5e8575['createdAt']['toLocaleTimeString'](_0x5a7318['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x12f827['saveRevision']({'name':_0x2c4baa}),_0xc290c1['isReady']=!0x0,_0x5a7318['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{nt as RestoreRevisionCommand,I as Revision,ht as RevisionHistory,v as RevisionHistoryUI,$ as RevisionHistoryUtils,h as RevisionTracker,l as RevisionViewer,m as RevisionViewerEditor,ji as RevisionViewerLoadingOverlay,u as RevisionViewerUI,S as RevisionsRepository,f as RevisionsSidebar,ot as ShowChangeCommand};
|
|
29
|
+
at();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}constructor(_0x1d6744){super(_0x1d6744),this['_revisionViewer']=_0x1d6744['plugins']['get'](l),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0xe1bc62=this['_revisionsRepository']['_revisions'],_0x1d628f=this['_createRevisionActions'](),_0x3d263b=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new di(this['editor']['locale'],_0xe1bc62,_0x1d628f,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',(_0x282656,_0x44ec7f)=>{_0x44ec7f['revisionViews']['on']('add',(_0x1082ad,_0x594759)=>{_0x594759['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)),_0x3d263b['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x4fc183=this['_revisionsRepository']['getRevision'](0x0);if(_0x4fc183){const _0x100397=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x4fc183['id']);this['_revisionViewer']['compare'](_0x4fc183,_0x100397);}}['_handleRevisionSelected'](_0x5daffc,_0x57dc40){const _0x41b0c0=this['_revisionsRepository']['getRevision'](_0x57dc40['id']),_0x533bfe=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x41b0c0['id']);this['_revisionViewer']['compare'](_0x41b0c0,_0x533bfe);}['_handleRevisionSetName'](_0x2bd5fd,_0x40d397){this['_revisionsRepository']['getRevision'](_0x40d397['id'])['setName'](_0x40d397['name']);}['_handleDiffChange'](_0xd7191,_0x3d898e,_0x2dbf54){const _0x366d79=this['_revisionsRepository']['getRevisionsInDiff'](_0x2dbf54);_0x366d79['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x366d79),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x366d79[0x0]));}['_createRevisionActions'](){const _0x2f531c=this['editor'],_0x28c65c=f['availableRevisionActions'],_0x346b21=_0x2f531c['config']['get']('revisionHistory.revisionActions')||f['defaultRevisionActions'];if(_0x346b21['length'])return _0x346b21['map'](_0x167065=>{const _0x26cad8='string'==typeof _0x167065?Object['assign']({},_0x28c65c[_0x167065]):_0x167065;return _0x26cad8['action']=_0x26cad8['action']['bind'](this,_0x2f531c),_0x26cad8['isVisible']&&(_0x26cad8['isVisible']=_0x26cad8['isVisible']['bind'](this,_0x2f531c)),_0x26cad8;});}}function at(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x468cdb},_0x42d299)=>{const _0x50ecb4=_0x468cdb['get'](l),_0x59d8cf=_0x50ecb4['repository'];let _0x44f4fd=_0x50ecb4['diff']['newRevisionId'],_0xbab415=_0x42d299['id'];_0x59d8cf['getIndex'](_0x44f4fd)>_0x59d8cf['getIndex'](_0xbab415)&&([_0x44f4fd,_0xbab415]=[_0xbab415,_0x44f4fd]),_0x50ecb4['compare'](_0x44f4fd,_0xbab415);},'isVisible':({plugins:_0x5c6a53},_0x3720aa)=>{const _0x236429=_0x5c6a53['get'](l);return!(_0x236429['repository']['getRevisionsInDiff'](_0x236429['diff'])['length']>0x2)&&!_0x3720aa['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x58d345,{id:_0x7f2428})=>{_0x58d345['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x7f2428);},'isVisible':({plugins:_0x3af16},_0x58636d)=>!!_0x3af16['get'](l)['repository']['getLaterVisibleRevision'](_0x58636d['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x46a708},{id:_0x1181d2,revisionNameView:_0x19c936})=>{const _0x127da8=_0x46a708['get'](l),_0x13db7c=_0x127da8['repository']['getEarlierVisibleRevision'](_0x1181d2);_0x127da8['compare'](_0x1181d2,_0x13db7c),_0x19c936['focus'](),_0x19c936['fieldView']['select']();}}};}class Z extends tt{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x3dc630,_0xe71ce2){super(_0x3dc630),this['_view']=_0xe71ce2,this['_toolbarConfig']=st(_0x3dc630['config']['get']('toolbar')),this['_elementReplacer']=new it();}get['element'](){return this['view']['element'];}['init'](_0x30ba97){const _0x214bc1=this['editor'],_0x517171=this['view'],_0xea8389=_0x214bc1['editing']['view'],_0x4d633e=_0x517171['editable'],_0x1d8dfe=_0xea8389['document']['getRoot']();_0x4d633e['name']=_0x1d8dfe['rootName'],_0x517171['render']();const _0x287320=_0x4d633e['element'];this['setEditableElement'](_0x4d633e['name'],_0x287320),_0x517171['editable']['bind']('isFocused')['to'](this['focusTracker']),_0xea8389['attachDomRoot'](_0x287320),this['_elementReplacer']['replace'](_0x30ba97,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x24c244=this['view'],_0x428c89=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x428c89['detachDomRoot'](_0x24c244['editable']['name']),_0x24c244['destroy']();}['_initToolbar'](){const _0x20d02d=this['view'];_0x20d02d['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x20d02d['stickyPanel']['limiterElement']=_0x20d02d['element'],_0x20d02d['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x20f5bc})=>_0x20f5bc),_0x20d02d['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x20d02d['toolbar']);}}class ii extends _0x3c9102{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x21a532,_0x33d701,_0x1817fc={}){super(_0x21a532),this['stickyPanel']=new _0x49c52d(_0x21a532),this['toolbar']=new _0x3c4faf(_0x21a532,{'shouldGroupWhenFull':_0x1817fc['shouldToolbarGroupWhenFull']}),this['_editable']=new te(_0x21a532,_0x33d701);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class m extends/* #__PURE__ -- @preserve */
|
|
30
|
+
_0x367870(_0x6012b0){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x5f48f7,_0x483230){super(_0x483230),this['sourceElement']=_0x5f48f7,this['model']['document']['createRoot']();const _0x35f7e1=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x35f7e1);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x2f349f,_0x2201ad){const _0x185c4b=new this(_0x2f349f,_0x2201ad);return await _0x185c4b['initPlugins'](),await _0x185c4b['ui']['init'](_0x2f349f),await _0x185c4b['data']['init'](_0x185c4b['config']['get']('initialData')||''),_0x185c4b['fire']('ready'),_0x185c4b;}}const d=['RevisionHistoryUI','RestrictedEditingMode'];class ht extends _0x235b76{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2ca2a3){function _0x1b6f48(_0x539893){return _0x539893['map'](_0x2c4516=>String['fromCharCode'](_0x2c4516))['join']('');}super(_0x2ca2a3),this['result']='end',_0x2ca2a3[_0x1b6f48([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1b6f48([0x76,0x69,0x65,0x77])][_0x1b6f48([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1b6f48([0x61,0x75,0x74,0x6f]),_0x2ca2a3[_0x1b6f48([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x1b6f48([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1b6f48([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x1b6f48([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x1b6f48([0x6f,0x6b])});}}class ct extends _0x235b76{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,v];}constructor(_0x23b9ba){if(super(_0x23b9ba),!this['editor']['config']['get']('revisionHistory'))throw new _0x9a71df('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x2c6e75=>this['_showRevisionViewer']({..._0x2c6e75,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0xe6966=>this['_closeRevisionViewer'](_0xe6966)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x5231cd=>this['_restoreRevision'](_0x5231cd)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x2a3f68){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x2a3f68;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x3441fb){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x3441fb);}['getRevision'](_0x2a57bc){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x2a57bc);}['getRevisions'](_0x181d83){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x181d83||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x331b28=this['editor'],_0x23c4a9=_0x55b787(_0x331b28,d),_0x2db52b=_0x331b28['plugins']['get']('RevisionTracker'),_0x37125a=_0x331b28['plugins']['get']('Users')['users'];return _0x23c4a9['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x23c4a9['lazyRoots'],(_0x23c4a9['plugins']['push'](ht,l,u,class extends _0x235b76{static get['requires'](){return[l,'Users'];}['init'](){const _0x46db6b=this['editor']['plugins']['get']('Users');for(const _0x24161d of _0x37125a)_0x24161d['isAnonymous']||_0x46db6b['getUser'](_0x24161d['id'])||_0x46db6b['addUser'](_0x24161d);const _0x242ce1=_0x2db52b['repository']['getRevisions']();let _0x556510=null;const _0x19768b=this['editor']['plugins']['get']('RevisionViewer');_0x19768b['adapter']=_0x2db52b['adapter'],_0x19768b['bind']('isEnabled')['to'](_0x2db52b),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x331b28,'isReadOnly',_0x85755b=>!_0x85755b);for(const _0x5e62f7 of _0x242ce1){const _0x2dea68=null===_0x5e62f7['creator'];if(_0x2dea68&&_0x5e62f7['toVersion']===_0x5e62f7['fromVersion'])continue;const _0x3b67ec=_0x5e62f7['toJSON']();_0x19768b['addRevisionData'](_0x3b67ec,(_0xd3aee7,_0x138799,_0x5c956b)=>{if(_0x2dea68){if(_0x556510)_0x556510['_update'](_0xd3aee7,_0x138799);else{if(!_0x138799){const _0x350168=_0x5c956b['toJSON']();_0x350168['id']=_0x1b5d50(),_0x2db52b['saveRevision'](_0x350168,_0x5c956b['toVersion'])['then'](_0x3f06cc=>{_0x556510=_0x3f06cc;});}}}else _0x5e62f7['_update'](_0xd3aee7,_0x138799);});}}},f),_0x23c4a9);}['_enhanceShowRevisionViewerCallback'](){const _0xcbdf4d=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x48939d=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x4092c3=this['editor']['plugins']['get']('Autosave');await _0x4092c3['save']();}else await _0x48939d['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x1341ef=this['editor']['plugins']['get']('Dialog');_0x1341ef['isOpen']&&_0x1341ef['hide']();}const _0x1540f2=this['_getRevisionViewerEditorConfig']();return _0xcbdf4d(_0x1540f2)['then'](_0x5c15e4=>{return(this['_viewerEditor']=_0x5c15e4,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),(this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']='none'),_0x5c15e4);})['catch'](_0x376878=>(console['error'](_0x376878),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x543528=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x543528(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x5be6bf=this['editor']['plugins']['get']('Annotations');_0x5be6bf['refreshVisibility'](),_0x5be6bf['refreshPositioning']();}})));}['_showRevisionViewer'](_0xd01c8d){const _0x422cf8=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x3f5725=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x1412ac=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return m['create'](_0x1412ac,_0xd01c8d)['then'](_0x288e9c=>(_0x3f5725['style']['display']='block',_0x422cf8['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x288e9c));}['_closeRevisionViewer'](_0x2ce119){const _0x38bcf8=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x38bcf8['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x2ce119['destroy']();}async['_restoreRevision'](_0x443f49){const _0x57a3a5=this['editor'],_0x5c3ed0=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x5fee0d=_0x57a3a5['plugins']['get']('RevisionTracker'),_0x108ae0=_0x57a3a5['plugins']['get']('RevisionHistoryUtils'),_0xd30fbf=_0x5c3ed0['repository']['getRevision'](_0x443f49);let _0x5b0b1e,_0x487fe,_0x35998a;try{await _0x108ae0['loadRevisionData'](_0xd30fbf,this['adapter']),_0x5b0b1e=_0x108ae0['getRevisionDocumentData'](_0xd30fbf),_0x487fe=_0x108ae0['getRevisionRootsAttributes'](_0xd30fbf);}catch(_0x5a6e7f){return void console['error'](_0x5a6e7f);}_0x57a3a5['model']['change'](_0x224574=>{for(const _0x9a9fb6 of Array['from'](_0x57a3a5['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x224574['removeMarker'](_0x9a9fb6);}),_0x5c3ed0['isReady']=!0x1,_0x57a3a5['model']['enqueueChange'](_0x161240=>{_0x161240['setSelection'](null),_0x161240['removeSelectionAttribute'](_0x57a3a5['model']['document']['selection']['getAttributeKeys']());const _0x4e0e23=Object['keys'](_0x5b0b1e);for(const _0x5b94ee of _0x57a3a5['model']['document']['roots'])'$graveyard'!=_0x5b94ee['rootName']&&_0x5b94ee['isAttached']()&&!_0x4e0e23['includes'](_0x5b94ee['rootName'])&&_0x161240['detachRoot'](_0x5b94ee);for(const _0x58086c of _0x4e0e23){let _0x451453=_0x57a3a5['model']['document']['getRoot'](_0x58086c);_0x451453&&_0x451453['isAttached']()||(_0x451453=_0x161240['addRoot'](_0x58086c));const _0x1f3b94=_0x487fe[_0x58086c],_0x4df1dd=Object['keys'](_0x1f3b94),_0x489976=_0x5b0b1e[_0x58086c];for(const _0x37392e of _0x451453['getAttributeKeys']())_0x4df1dd['includes'](_0x37392e)||_0x161240['removeAttribute'](_0x37392e,_0x451453);for(const _0x5ef570 of _0x4df1dd)_0x161240['setAttribute'](_0x5ef570,_0x487fe[_0x58086c][_0x5ef570],_0x451453);_0x161240['remove'](_0x161240['createRangeIn'](_0x451453)),_0x161240['insert'](_0x57a3a5['data']['parse'](_0x489976,_0x451453),_0x451453,0x0);}});const _0x4888a5=R(_0x57a3a5['locale'],'Restored');if(_0xd30fbf['name'])_0x35998a=-0x1==_0xd30fbf['name']['indexOf'](_0x4888a5)?_0x4888a5+':\x20'+_0xd30fbf['name']:_0xd30fbf['name'];else _0x35998a=_0x4888a5+':\x20'+(_0xd30fbf['createdAt']['toLocaleDateString'](_0x57a3a5['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0xd30fbf['createdAt']['toLocaleTimeString'](_0x57a3a5['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x5fee0d['saveRevision']({'name':_0x35998a}),_0x5c3ed0['isReady']=!0x0,_0x57a3a5['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{nt as RestoreRevisionCommand,I as Revision,ct as RevisionHistory,v as RevisionHistoryUI,$ as RevisionHistoryUtils,h as RevisionTracker,l as RevisionViewer,m as RevisionViewerEditor,ji as RevisionViewerLoadingOverlay,u as RevisionViewerUI,S as RevisionsRepository,f as RevisionsSidebar,rt as ShowChangeCommand};
|