@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20250528.0 → 0.0.0-nightly-20250529.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/dist/index.js +6 -6
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +11 -11
- package/src/changeitem.js +2 -2
- package/src/editor/revisionviewereditor.js +2 -2
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/index.js +1 -1
- package/src/revision.js +2 -2
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionhistoryutils.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +2 -2
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ObservableMixin as
|
|
24
|
-
_0x543dbd(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x7842a9){super(),this['id']=_0x7842a9['id']||_0x2135da(),this['creator']=_0x7842a9['creator']||null,this['authors']=_0x7842a9['authors']||[],this['diffData']=_0x7842a9['diffData']||null,this['toVersion']=_0x7842a9['toVersion']||0x0,this['fromVersion']=_0x7842a9['fromVersion']||0x0,this['set']('name',_0x7842a9['name']||''),this['set']('createdAt',_0x7842a9['createdAt']||new Date()),this['set']('attributes',_0x7842a9['attributes']||{});}['setName'](_0x31dab4){this['_update']({'name':_0x31dab4});}['setAttribute'](_0x36065a,_0xcdc69d){const _0x1a3a64=_0xcb7214(this['attributes']);_0xe8150f(_0x1a3a64,_0x36065a,_0xcdc69d),this['_update']({'attributes':_0x1a3a64});}['removeAttribute'](_0x52e682){const _0x1f7e68=_0xcb7214(this['attributes']);_0x2d4842(_0x1f7e68,_0x52e682),this['_update']({'attributes':_0x1f7e68});}['_update'](_0x4bc101,_0x3793ad=!0x1){let _0x5de522=!0x1;const _0x2fb09b={'id':this['id']},_0x43ad77=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x5efc36 of _0x43ad77){const _0xa3f204=_0x4bc101[_0x5efc36];void 0x0!==_0xa3f204&&_0xa3f204!==this[_0x5efc36]&&(this[_0x5efc36]=_0xa3f204,_0x2fb09b[_0x5efc36]=_0xa3f204,_0x5de522=!0x0);}_0x5de522&&(_0x2fb09b['authors']&&(_0x2fb09b['authorsIds']=_0x2fb09b['authors']['map'](_0x555427=>_0x555427['id']),delete _0x2fb09b['authors']),this['fire']('_update',_0x2fb09b,_0x3793ad));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x269d4f=>_0x269d4f['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x211636{['_revisions'];static get['requires'](){return[_0x50a466];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x586015){super(_0x586015),this['_revisions']=new _0x284c5d();}['afterInit'](){!async function(_0x1308af){const _0x388108=_0x5f5dac([0x74,0x49,0x30,0x77,0x79,0x35,0x78,0x6e,0x68,0x59,0x75,0x66,0x38,0x4b,0x56,0x5a,0x37,0x4d,0x65,0x64,0x39,0x52,0x6d,0x36,0x58,0x57,0x4a,0x4f,0x51,0x32,0x46,0x48,0x55,0x47,0x7a,0x71,0x4e,0x44,0x42,0x72,0x73,0x61,0x63,0x62,0x33,0x6c,0x53,0x70,0x69,0x31,0x45,0x67,0x76,0x6b,0x43,0x34,0x6f,0x50,0x54,0x41,0x6a,0x4c]),_0x164394=0xeb829,_0x1618af=0x49e408ea,_0x4700ec=0x49e361ca^_0x1618af,_0x26f7ea=window[_0x5f5dac([0x44,0x61,0x74,0x65])][_0x5f5dac([0x6e,0x6f,0x77])](),_0x3b0980=_0x1308af[_0x5f5dac([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5e0292=new window[(_0x5f5dac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x486942=>{_0x3b0980[_0x5f5dac([0x6f,0x6e,0x63,0x65])](_0x5f5dac([0x72,0x65,0x61,0x64,0x79]),_0x486942);}),_0x479822={[_0x5f5dac([0x6b,0x74,0x79])]:_0x5f5dac([0x45,0x43]),[_0x5f5dac([0x75,0x73,0x65])]:_0x5f5dac([0x73,0x69,0x67]),[_0x5f5dac([0x63,0x72,0x76])]:_0x5f5dac([0x50,0x2d,0x32,0x35,0x36]),[_0x5f5dac([0x78])]:_0x5f5dac([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]),[_0x5f5dac([0x79])]:_0x5f5dac([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]),[_0x5f5dac([0x61,0x6c,0x67])]:_0x5f5dac([0x45,0x53,0x32,0x35,0x36])},_0x3363e8=_0x3b0980[_0x5f5dac([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5f5dac([0x67,0x65,0x74])](_0x5f5dac([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5cff5e(){let _0x431e00,_0x3d6b57=null,_0x5bd502=null;try{if(_0x3363e8==_0x5f5dac([0x47,0x50,0x4c]))return _0x5f5dac([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x431e00=_0x57db0c(),!_0x431e00)return _0x5f5dac([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x431e00[_0x5f5dac([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5bd502=_0x4c996f(_0x431e00[_0x5f5dac([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x431e00[_0x5f5dac([0x6a,0x74,0x69])])),await _0x36d503()?_0x433719()?_0x58930c()?_0x5f5dac([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x211e9c()?(_0x431e00[_0x5f5dac([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5f5dac([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3d6b57=_0x288733(_0x5f5dac([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x431e00[_0x5f5dac([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5f5dac([0x74,0x72,0x69,0x61,0x6c])&&(_0x3d6b57=_0x288733(_0x5f5dac([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x44376f()):_0x5f5dac([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5f5dac([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5f5dac([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5f5dac([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x58930c(){const _0x4e4293=[_0x5f5dac([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5f5dac([0x74,0x72,0x69,0x61,0x6c])][_0x5f5dac([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x431e00[_0x5f5dac([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x26f7ea/0x3e8:0xe10*_0x4700ec;return _0x431e00[_0x5f5dac([0x65,0x78,0x70])]<_0x4e4293;}function _0x433719(){const _0x14bd8f=_0x431e00[_0x5f5dac([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x14bd8f)return!0x1;if(_0x14bd8f[_0x5f5dac([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f5dac([0x2a])))return!0x0;if(_0x14bd8f[_0x5f5dac([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f5dac([0x52,0x48])))return!0x0;if(_0x14bd8f[_0x5f5dac([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f5dac([0x52,0x52,0x48]))){if(_0xca3e0a())return!0x0;if(_0x4ff7df()||_0x1cafc2())return!0x0;}return!0x1;}function _0x211e9c(){const _0x42432a=_0x431e00[_0x5f5dac([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x42432a||0x0==_0x42432a[_0x5f5dac([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x145e46}=new URL(window[_0x5f5dac([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x42432a[_0x5f5dac([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x145e46))return!0x0;const _0x33cc55=_0x145e46[_0x5f5dac([0x73,0x70,0x6c,0x69,0x74])](_0x5f5dac([0x2e]));return _0x42432a[_0x5f5dac([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4140bf=>_0x4140bf[_0x5f5dac([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f5dac([0x2a])))[_0x5f5dac([0x6d,0x61,0x70])](_0x1fa699=>_0x1fa699[_0x5f5dac([0x73,0x70,0x6c,0x69,0x74])](_0x5f5dac([0x2e])))[_0x5f5dac([0x73,0x6f,0x6d,0x65])](_0x2f9dc0=>_0x33cc55[_0x5f5dac([0x65,0x76,0x65,0x72,0x79])]((_0x2f1991,_0x2e4d11)=>_0x2f9dc0[_0x2e4d11]===_0x2f1991||_0x2f9dc0[_0x2e4d11]===_0x5f5dac([0x2a])));}function _0x44376f(){return _0x3d6b57&&_0x5bd502?new window[(_0x5f5dac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x13e6fc,_0x37f67c)=>{_0x3d6b57[_0x5f5dac([0x74,0x68,0x65,0x6e])](_0x13e6fc,_0x37f67c),_0x5bd502[_0x5f5dac([0x74,0x68,0x65,0x6e])](_0x54b266=>{_0x54b266!=_0x5f5dac([0x56,0x61,0x6c,0x69,0x64])&&_0x13e6fc(_0x54b266);},_0x37f67c);}):_0x3d6b57||_0x5bd502||_0x5f5dac([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4c996f(_0x2096c4,_0x15a8ae){return new window[(_0x5f5dac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xbf48a5=>{if(_0x4e4b27())return _0xbf48a5(_0x5f5dac([0x56,0x61,0x6c,0x69,0x64]));_0x30682f(),_0x3b0980[_0x5f5dac([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5f5dac([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2e5af1=!0x1;const _0x3c70e4=_0x2135da();function _0xdd6b56(_0x21a7e3){return!!_0x21a7e3&&(typeof _0x21a7e3===_0x5f5dac([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x21a7e3===_0x5f5dac([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x21a7e3[_0x5f5dac([0x74,0x68,0x65,0x6e])]===_0x5f5dac([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x21a7e3[_0x5f5dac([0x63,0x61,0x74,0x63,0x68])]===_0x5f5dac([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x586a68(_0x17d23f){_0x3af557(_0x17d23f)[_0x5f5dac([0x74,0x68,0x65,0x6e])](_0x40e701=>{if(!_0x40e701||_0x40e701[_0x5f5dac([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5f5dac([0x6f,0x6b]))return _0x5f5dac([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x48e071(_0x5aec96(_0x3c70e4+_0x15a8ae))!=_0x40e701[_0x5f5dac([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5f5dac([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5f5dac([0x56,0x61,0x6c,0x69,0x64]);})[_0x5f5dac([0x74,0x68,0x65,0x6e])](_0x5ad45e=>(_0x2e204f(),_0x5ad45e),()=>{const _0x28b1ff=_0x59d41a();return null==_0x28b1ff?(_0x2e204f(),_0x5f5dac([0x56,0x61,0x6c,0x69,0x64])):_0x5f5dac(_0x26f7ea-_0x28b1ff>(0x6de88cea^_0x1618af)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5f5dac([0x74,0x68,0x65,0x6e])](_0xbf48a5)[_0x5f5dac([0x63,0x61,0x74,0x63,0x68])](()=>{_0xbf48a5(_0x5f5dac([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xd4caa8=0x49d2e66a^_0x1618af;function _0x2e204f(){const _0x4bd05b=_0x5f5dac([0x6c,0x6c,0x63,0x74,0x2d])+_0x48e071(_0x5aec96(_0x2096c4)),_0x5ee736=_0x27000c(_0x48e071(window[_0x5f5dac([0x4d,0x61,0x74,0x68])][_0x5f5dac([0x63,0x65,0x69,0x6c])](_0x26f7ea/_0xd4caa8)));window[_0x5f5dac([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5f5dac([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4bd05b,_0x5ee736);}function _0x59d41a(){const _0x21fb7f=_0x5f5dac([0x6c,0x6c,0x63,0x74,0x2d])+_0x48e071(_0x5aec96(_0x2096c4)),_0x2ea61a=window[_0x5f5dac([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5f5dac([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x21fb7f);return _0x2ea61a?window[_0x5f5dac([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x27000c(_0x2ea61a),0x10)*_0xd4caa8:null;}function _0x3af557(_0x398809){return new window[(_0x5f5dac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xd6f015,_0x3c3b70)=>{_0x398809[_0x5f5dac([0x74,0x68,0x65,0x6e])](_0xd6f015,_0x3c3b70),window[_0x5f5dac([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3c3b70,0x49e5dc2a^_0x1618af);});}}_0x3b0980[_0x5f5dac([0x6f,0x6e])](_0x5f5dac([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4e0f83,_0x226bd4)=>{if(_0x226bd4[0x0]!=_0x2096c4)return _0xbf48a5(_0x5f5dac([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x226bd4[0x1]={..._0x226bd4[0x1],[_0x5f5dac([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3c70e4};},{[_0x5f5dac([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5f5dac([0x68,0x69,0x67,0x68])}),_0x3b0980[_0x5f5dac([0x6f,0x6e])](_0x5f5dac([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2a4b21=>{_0xdd6b56(_0x2a4b21[_0x5f5dac([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2e5af1=!0x0,_0x586a68(_0x2a4b21[_0x5f5dac([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5f5dac([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5f5dac([0x6c,0x6f,0x77])}),_0x5e0292[_0x5f5dac([0x74,0x68,0x65,0x6e])](()=>{_0x2e5af1||_0xbf48a5(_0x5f5dac([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4e4b27(){return _0x3b0980[_0x5f5dac([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5f5dac([0x76,0x69,0x65,0x77])][_0x5f5dac([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5f5dac([0x61,0x75,0x74,0x6f]);}function _0x30682f(){_0x3b0980[_0x5f5dac([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5f5dac([0x76,0x69,0x65,0x77])][_0x5f5dac([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5f5dac([0x61,0x75,0x74,0x6f]);}}function _0x288733(_0x1b8a98){const _0x26ac14=[new window[(_0x5f5dac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x299f10=>setTimeout(_0x299f10,0x49ed3626^_0x1618af)),_0x5e0292[_0x5f5dac([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5f5dac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2e421b=>{const _0x4db110=0x49e408ed^_0x1618af,_0x5e3fd7=_0x1308af[_0x5f5dac([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x59ec8d(){_0x5e3fd7[_0x5f5dac([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x4db110&&_0x2e421b();}_0x59ec8d(),_0x5e3fd7[_0x5f5dac([0x6f,0x6e])](_0x5f5dac([0x61,0x64,0x64]),_0x59ec8d);})),new window[(_0x5f5dac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x287c88=>{function _0xdb079e(){for(const _0x1a68fa in window)if(window[_0x5f5dac([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x5f5dac([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x1a68fa))&&window[_0x1a68fa]==_0x164394)return _0x287c88();_0x3b0980[_0x5f5dac([0x73,0x74,0x61,0x74,0x65])]!=_0x5f5dac([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x5f5dac([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xdb079e,0x49e41b62^_0x1618af);}_0x2d1c59(_0x5f5dac([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0xdb079e();})];return window[_0x5f5dac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5f5dac([0x72,0x61,0x63,0x65])](_0x26ac14)[_0x5f5dac([0x74,0x68,0x65,0x6e])](()=>_0x1b8a98);}async function _0x539e28(){if(await _0x5e0292,_0x2d1c59(_0x5f5dac([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x44fc9f=_0x1308af[_0x5f5dac([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x171e6c=_0x1308af[_0x5f5dac([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])](_0x44fc9f[_0x5f5dac([0x69,0x64])]),_0x58bd61=_0x290fb3(_0x5f5dac([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x58bd61[_0x5f5dac([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x44fc9f['id'],_0x171e6c?_0x171e6c['id']:null,!0x0),_0x58bd61[_0x5f5dac([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x5f5dac([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x58bd61[_0x5f5dac([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x58bd61[_0x5f5dac([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x15c3f5,void(_0x58bd61[_0x5f5dac([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x15c3f5);}if(_0x2d1c59(_0x5f5dac([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x2f6dc6=_0x290fb3(_0x5f5dac([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x2f6dc6[_0x5f5dac([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x5f5dac([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x2f6dc6[_0x5f5dac([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x2f6dc6[_0x5f5dac([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x15c3f5,_0x2f6dc6[_0x5f5dac([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x15c3f5;}_0x3b0980[_0x5f5dac([0x6d,0x6f,0x64,0x65,0x6c])][_0x5f5dac([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x15c3f5,_0x3b0980[_0x5f5dac([0x6d,0x6f,0x64,0x65,0x6c])][_0x5f5dac([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x15c3f5,_0x3b0980[_0x5f5dac([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5f5dac([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xca3e0a(){return _0x2d1c59(_0x5f5dac([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x290fb3(_0x5f5dac([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x5f5dac([0x73,0x74,0x61,0x74,0x65])]==_0x5f5dac([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4ff7df(){return _0x2d1c59(_0x5f5dac([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 _0x1cafc2(){return _0x2d1c59(_0x5f5dac([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x30eecd(_0x42777e){const _0x28c07b=_0x5069f9();_0x3b0980[_0x28c07b]=_0x5f5dac([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])+_0x42777e,_0x42777e[_0x5f5dac([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x5f5dac([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x5069f9()]=_0x164394),_0x42777e!=_0x5f5dac([0x56,0x61,0x6c,0x69,0x64])&&_0x539e28();}function _0x5069f9(){const _0x4ac0a7=window[_0x5f5dac([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5f5dac([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5f5dac([0x6e,0x6f,0x77])]())[_0x5f5dac([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5f5dac([0x2e]),'');let _0x2d2e89=_0x5f5dac([0x74]);for(let _0x2c598b=0x0;_0x2c598b<_0x4ac0a7[_0x5f5dac([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2c598b+=0x2){let _0x5c3557=window[_0x5f5dac([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4ac0a7[_0x5f5dac([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2c598b,_0x2c598b+0x2));_0x5c3557>=_0x388108[_0x5f5dac([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5c3557-=_0x388108[_0x5f5dac([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2d2e89+=_0x388108[_0x5c3557];}return _0x2d2e89;}function _0x57db0c(){const _0x4242d5=_0x3363e8[_0x5f5dac([0x73,0x70,0x6c,0x69,0x74])](_0x5f5dac([0x2e]));if(0x3!=_0x4242d5[_0x5f5dac([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x8cd125(_0x4242d5[0x1]);function _0x8cd125(_0x28e7bd){const _0x366c78=_0x2941d1(_0x28e7bd);return _0x366c78&&_0x1e6f8c()?_0x366c78:null;function _0x1e6f8c(){const _0x193d0f=_0x366c78[_0x5f5dac([0x6a,0x74,0x69])],_0xa4b11f=window[_0x5f5dac([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x193d0f[_0x5f5dac([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x193d0f[_0x5f5dac([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2427af={..._0x366c78,[_0x5f5dac([0x6a,0x74,0x69])]:_0x193d0f[_0x5f5dac([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x193d0f[_0x5f5dac([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2427af[_0x5f5dac([0x76,0x63])],_0x5aec96(_0x2427af)==_0xa4b11f;}}}async function _0x36d503(){let _0x4314d6=!0x0;try{const _0x321a1c=_0x3363e8[_0x5f5dac([0x73,0x70,0x6c,0x69,0x74])](_0x5f5dac([0x2e])),[_0x3eb466,_0xaebe39,_0x22d796]=_0x321a1c;return _0x283fcb(_0x3eb466),await _0x4f648c(_0x3eb466,_0xaebe39,_0x22d796),_0x4314d6;}catch{return!0x1;}function _0x283fcb(_0x44a240){const _0x679e31=_0x2941d1(_0x44a240);_0x679e31&&_0x679e31[_0x5f5dac([0x61,0x6c,0x67])]==_0x5f5dac([0x45,0x53,0x32,0x35,0x36])||(_0x4314d6=!0x1);}async function _0x4f648c(_0x27319b,_0x373c51,_0x4d722c){const _0x5c06bf=window[_0x5f5dac([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5f5dac([0x66,0x72,0x6f,0x6d])](_0x3965d8(_0x4d722c),_0x2a7d7c=>_0x2a7d7c[_0x5f5dac([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x45a23f=new window[(_0x5f5dac([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5f5dac([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x27319b+_0x5f5dac([0x2e])+_0x373c51),_0x59bef7=window[_0x5f5dac([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5f5dac([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x59bef7)return;const _0x31acf7=await _0x59bef7[_0x5f5dac([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5f5dac([0x6a,0x77,0x6b]),_0x479822,{[_0x5f5dac([0x6e,0x61,0x6d,0x65])]:_0x5f5dac([0x45,0x43,0x44,0x53,0x41]),[_0x5f5dac([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5f5dac([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5f5dac([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x59bef7[_0x5f5dac([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5f5dac([0x6e,0x61,0x6d,0x65])]:_0x5f5dac([0x45,0x43,0x44,0x53,0x41]),[_0x5f5dac([0x68,0x61,0x73,0x68])]:{[_0x5f5dac([0x6e,0x61,0x6d,0x65])]:_0x5f5dac([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x31acf7,_0x5c06bf,_0x45a23f)||(_0x4314d6=!0x1);}}function _0x2941d1(_0x5eb8af){return _0x5eb8af[_0x5f5dac([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5f5dac([0x65,0x79]))?JSON[_0x5f5dac([0x70,0x61,0x72,0x73,0x65])](_0x3965d8(_0x5eb8af)):null;}function _0x3965d8(_0x252182){return window[_0x5f5dac([0x61,0x74,0x6f,0x62])](_0x252182[_0x5f5dac([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5f5dac([0x2b]))[_0x5f5dac([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5f5dac([0x2f])));}function _0x5aec96(_0x1fdd99){let _0x37ab19=0x1505;function _0x235635(_0x5d3ecc){for(let _0x3c6ca2=0x0;_0x3c6ca2<_0x5d3ecc[_0x5f5dac([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3c6ca2++){const _0x109f03=_0x5d3ecc[_0x5f5dac([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3c6ca2);_0x37ab19=(_0x37ab19<<0x5)+_0x37ab19+_0x109f03,_0x37ab19&=_0x37ab19;}}function _0x1e5ef4(_0x3a541a){Array[_0x5f5dac([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3a541a)?_0x3a541a[_0x5f5dac([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1e5ef4):_0x3a541a&&typeof _0x3a541a==_0x5f5dac([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5f5dac([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3a541a)[_0x5f5dac([0x73,0x6f,0x72,0x74])]()[_0x5f5dac([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1e666c,_0x5c51a0])=>{_0x235635(_0x1e666c),_0x1e5ef4(_0x5c51a0);}):_0x235635(window[_0x5f5dac([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3a541a));}return _0x1e5ef4(_0x1fdd99),_0x37ab19>>>0x0;}function _0x48e071(_0x238826){return _0x238826[_0x5f5dac([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5f5dac([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5f5dac([0x30]));}function _0x27000c(_0x4ee984){return _0x4ee984[_0x5f5dac([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5f5dac([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5f5dac([0x6a,0x6f,0x69,0x6e])]('');}function _0x2d1c59(_0x1c78e8){return _0x3b0980[_0x5f5dac([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5f5dac([0x68,0x61,0x73])](_0x1c78e8);}function _0x290fb3(_0x16d3fe){return _0x3b0980[_0x5f5dac([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5f5dac([0x67,0x65,0x74])](_0x16d3fe);}function _0x15c3f5(){}function _0x5f5dac(_0x90876c){return _0x90876c['map'](_0x4e90f9=>String['fromCharCode'](_0x4e90f9))['join']('');}_0x30eecd(await _0x5cff5e());}(this);}['createRevision'](_0x41ca35){const _0x381713=this['editor']['plugins']['get']('Users');return new h({'id':_0x41ca35['id'],'name':_0x41ca35['name'],'creator':_0x41ca35['creatorId']?_0x381713['getUser'](_0x41ca35['creatorId']):null,'diffData':_0x41ca35['diffData']||_0x41ca35['data'],'authors':_0x41ca35['authorsIds']['map'](_0x363586=>_0x381713['getUser'](_0x363586)),'createdAt':new Date(_0x41ca35['createdAt']),'attributes':_0x41ca35['attributes'],'fromVersion':_0x41ca35['fromVersion'],'toVersion':_0x41ca35['toVersion']});}['addRevision'](_0x168ac7,_0x2a70aa=0x0){this['_revisions']['add'](_0x168ac7,_0x2a70aa);}['getRevision'](_0x547480){return this['_revisions']['get'](_0x547480);}['getRevisions'](_0x22baef={'toJSON':!0x1}){const _0xf60867=Array['from'](this['_revisions']);return _0xf60867['reverse'](),_0x22baef['toJSON']?_0xf60867['map'](_0x25df20=>_0x25df20['toJSON']()):_0xf60867;}['getIndex'](_0x3a36bd){return this['_revisions']['getIndex'](_0x3a36bd);}['getEarlierVisibleRevision'](_0x5dcdc9){const [,_0x44b7a7]=this['getRevisionsIterator'](_0x5dcdc9,{'direction':'earlier'});return _0x44b7a7;}['getLaterVisibleRevision'](_0x5aa661){const [,_0x34a4ab]=this['getRevisionsIterator'](_0x5aa661,{'direction':'later'});return _0x34a4ab;}['getRevisionsInDiff'](_0x38892f){const _0x3f40ba=[];for(const _0x2d9f01 of this['getRevisionsIterator'](_0x38892f['newRevisionId']))if(_0x3f40ba['push'](_0x2d9f01),_0x2d9f01['id']===_0x38892f['oldRevisionId'])break;return _0x3f40ba;}*['getRevisionsIterator'](_0x5a274d,{direction:_0x326799='earlier',filter:_0x16f9d7=()=>!0x0}={}){const _0x2ac0cf='earlier'===_0x326799?0x1:-0x1;let _0x54d533=this['_revisions']['get'](_0x5a274d),_0x121931=this['getIndex'](_0x54d533);for(yield _0x54d533;_0x54d533;){if(_0x121931+=_0x2ac0cf,_0x54d533=this['getRevision'](_0x121931),!_0x54d533)return;_0x16f9d7(_0x54d533)&&(yield _0x54d533);}}}class V extends _0x211636{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x37f337,'c'],[_0xc8a1b3,'a'],[_0x2961cf,'e'],[_0x285908,'r'],[_0x125622,'u']]);['_typeCharToViewClass']=new Map([['c',_0x37f337],['a',_0xc8a1b3],['e',_0x2961cf],['r',_0x285908],['u',_0x125622]]);async['loadRevisionData'](_0x1e7507,_0x3d32ea){if(_0x1e7507['diffData']||!_0x3d32ea)return;const _0x529e47=this['editor']['config']['get']('collaboration.channelId'),_0x2be760=await _0x3d32ea['getRevision']({'channelId':_0x529e47,'revisionId':_0x1e7507['id']});_0x1e7507['diffData']=_0x2be760['diffData'];}['getRevisionDocumentData'](_0x58c16e){const _0x4ed2fd={};for(const _0x2afe7e in _0x58c16e['diffData']){if(_0x58c16e['diffData'][_0x2afe7e]['attachChange']&&!_0x58c16e['diffData'][_0x2afe7e]['attachChange']['isAttached'])continue;const _0x1e2c04=this['_removeRevisionMarkers'](JSON['parse'](_0x58c16e['diffData'][_0x2afe7e]['insertions'])),_0x165e06=this['editor']['editing']['view']['document'],_0x5f2a52=new _0x1674fe(_0x165e06,_0x1e2c04['map'](_0x9ac752=>this['_getViewFromDiffObj'](_0x9ac752,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x4ed2fd[_0x2afe7e]=this['editor']['data']['processor']['toData'](_0x5f2a52),this['editor']['data']['processor']['useFillerType']('default');}return _0x4ed2fd;}['getRevisionRootsAttributes'](_0x24ad33){const _0x2e8d0c={};for(const _0x54fb12 in _0x24ad33['diffData'])_0x24ad33['diffData'][_0x54fb12]['attachChange']&&!_0x24ad33['diffData'][_0x54fb12]['attachChange']['isAttached']||(_0x2e8d0c[_0x54fb12]=_0x24ad33['diffData'][_0x54fb12]['attributesAfter']||{});return _0x2e8d0c;}['_getTypeCharForViewElement'](_0x30dcec){return this['_viewClassToTypeChar']['get'](_0x30dcec['constructor']);}['_getViewFromDiffObj'](_0x502d5a,_0x2f94f0){const _0x3e7748=this['editor']['editing']['view']['document'];if('string'==typeof _0x502d5a)return new _0x186cae(_0x3e7748,_0x502d5a);{let _0x1e9f46,_0xb411a8;_0xb411a8='u'==_0x502d5a['type']||'r'==_0x502d5a['type']?[]:_0x502d5a['children']['map'](_0x301fda=>this['_getViewFromDiffObj'](_0x301fda,_0x2f94f0));const _0x4d4e26=this['_typeCharToViewClass']['get'](_0x502d5a['type'])||_0x1c8e6e,_0x4e52d4=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x1e9f46=new _0x4d4e26(_0x3e7748,_0x502d5a['name'],_0x502d5a['attributes'],_0xb411a8),'u'==_0x502d5a['type']&&_0x502d5a['children'][0x0]){const _0x580eb8=_0x502d5a['children'][0x0];if(_0x1e9f46['render']=function(_0x21acb2){const _0x3191aa=_0x21acb2['createElement']('div');return _0x3191aa['innerHTML']=_0x580eb8,_0x3191aa['childNodes'][0x0];},_0x2f94f0){const _0x710539=new _0x1674fe(_0x3e7748);_0x710539['_appendChild'](_0x1e9f46);const _0x21bd22=Array['from'](_0x4e52d4['viewChildrenToDom'](_0x710539,{'bind':!0x1})),_0x337a75=_0x4e52d4['domDocument']['createElement']('div');_0x337a75['append'](..._0x21bd22),_0x1e9f46=Array['from'](_0x4e52d4['domChildrenToView'](_0x337a75))[0x0];}}else{if('r'==_0x502d5a['type']&&_0x502d5a['children'][0x0]){const _0x53b3d3=_0x502d5a['children'][0x0];if(_0x1e9f46['render']=function(_0x5da9ba){_0x5da9ba['innerHTML']=_0x53b3d3;},_0x2f94f0){const _0x3ff8ac=new _0x1674fe(_0x3e7748);_0x3ff8ac['_appendChild'](_0x1e9f46);const _0x422cbe=Array['from'](_0x4e52d4['viewChildrenToDom'](_0x3ff8ac,{'bind':!0x1})),_0x7b198e=_0x4e52d4['domDocument']['createElement']('div');_0x7b198e['append'](..._0x422cbe);const _0x4b673d=Array['from'](_0x4e52d4['domChildrenToView'](_0x7b198e));_0x4b673d['length']>0x1?_0x1e9f46['_appendChild'](_0x4b673d):_0x1e9f46=_0x4b673d[0x0];}}}if(_0x502d5a['customProperties']){for(const [_0x5a110b,_0x10fb81]of _0x502d5a['customProperties'])_0x1e9f46['_setCustomProperty'](_0x5a110b,_0x10fb81);}const _0x3bcc40=void 0x0===_0x502d5a['fillerOffset']?null:_0x502d5a['fillerOffset'];return null!==_0x3bcc40&&(_0x1e9f46['getFillerOffset']=()=>_0x3bcc40),_0x1e9f46;}}['_makeModelFromViewString'](_0x102d07){const _0x1733ee=JSON['parse'](_0x102d07),_0xde9262=this['editor']['editing']['view']['document'],_0x230c05=new _0x1674fe(_0xde9262,_0x1733ee['map'](_0x434364=>this['_getViewFromDiffObj'](_0x434364,!0x0)));return this['editor']['data']['toModel'](_0x230c05);}['_removeRevisionMarkers'](_0x5ba964){return(_0x5ba964=_0x5ba964['filter'](_0x48a5f6=>!_0x48a5f6['name']||'revision-start'!==_0x48a5f6['name']&&'revision-end'!==_0x48a5f6['name']))['forEach'](_0x2d432e=>{'string'!=typeof _0x2d432e&&(_0x2d432e['children']=this['_removeRevisionMarkers'](_0x2d432e['children']),_0x2d432e['attributes']=_0x2d432e['attributes']['filter'](_0x4f8a44=>!_0x4f8a44[0x0]['startsWith']('data-revision-')));}),_0x5ba964;}}function g(_0x4aa791,_0x56ba27,_0xea67f6){const t=_0x4aa791['t'];switch(_0x56ba27){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'},_0xea67f6);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0xea67f6);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}class u extends _0x211636{['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[_0x50a466,I,V,_0x16f3f9];}constructor(_0x160df4){super(_0x160df4),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new x(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x2a18ec=_0x2135da();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x2a18ec},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 _0x212096=this['repository']['getRevision'](0x0),_0x513425=_0x212096&&null===_0x212096['creator']?_0x212096:null;if(this['_continueCurrentRevision']=!!_0x513425&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0xe8554a=this['_source']['getCurrentRevisionId'](),_0x347860=this['repository']['getRevision'](_0xe8554a);if(_0x347860)this['_startingVersion']=_0x347860['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x1614a4=this['_source']['history']['_operations']['find'](_0x8f0def=>!_0x8f0def['_isInit']),_0xe0097f=_0x1614a4?_0x1614a4['baseVersion']:this['_source']['history']['version'];_0x212096?(_0x212096['toVersion']<_0xe0097f&&_0x212096['_update']({'toVersion':_0xe0097f}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x513425['id'],this['_startingVersion']=_0x513425['fromVersion']):(this['_startingVersion']=_0x212096['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0xe0097f,this['_continueCurrentRevision']=!0x1);}}else _0x513425&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x513425['toVersion'],this['editor']['model']['document']['history']['version']),_0x513425['fromVersion']===_0x513425['toVersion']?(0x0!==_0x513425['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x513425['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x513425['id'],this['_startingVersion']=_0x513425['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',_0x41b2da=>!_0x41b2da),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xbf2fb7=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1c8b3c;for(const _0x3249ac in _0xbf2fb7){const _0x272a89=_0x3249ac,_0x37f95f=_0xbf2fb7[_0x272a89];if('revisionHistoryLicenseKeyValid'==_0x37f95f||'revisionHistoryLicenseKeyInvalid'==_0x37f95f||'revisionHistoryLicenseKeyExpired'==_0x37f95f||'revisionHistoryLicenseKeyDomainLimit'==_0x37f95f||'revisionHistoryLicenseKeyNotAllowed'==_0x37f95f||'revisionHistoryLicenseKeyEvaluationLimit'==_0x37f95f||'revisionHistoryLicenseKeyTrialLimit'==_0x37f95f||'revisionHistoryLicenseKeyUsageLimit'==_0x37f95f){delete _0xbf2fb7[_0x272a89],_0x1c8b3c=_0x37f95f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x1c8b3c&&_0xbf2fb7['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x1c8b3c&&_0xbf2fb7['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x1c8b3c&&_0xbf2fb7['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x1c8b3c&&_0xbf2fb7['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x1c8b3c&&_0xbf2fb7['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x1c8b3c&&_0xbf2fb7['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x1c8b3c&&_0xbf2fb7['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x142869=this['repository']['getRevision'](0x0),_0x1aff82=await this['getRevisionDocumentData'](_0x142869),_0x2e402d=await this['getRevisionRootsAttributes'](_0x142869);this['_replaceEditorDataWithRevisionData'](_0x1aff82,_0x2e402d);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x458ed9){this['_source']=_0x458ed9;}async['update'](){const _0x4146b5=await this['_source']['getLatestVersion']();if(_0x4146b5>this['currentRevision']['toVersion']){await this['_loadState']();const _0x21025b=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x4146b5});_0x21025b['authors']=_0x21025b['authorsIds']['map'](_0x440bb3=>this['editor']['plugins']['get']('Users')['getUser'](_0x440bb3)),this['currentRevision']['_update'](_0x21025b);}}async['saveRevision'](_0x5f4ed9={},_0x23aa23=null){const _0x1c330a=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x23aa23>this['currentRevision']['toVersion']&&(_0x23aa23=null),null===_0x23aa23&&(_0x23aa23=await this['_source']['getLatestVersion']());const _0xc089cb=this['_getFromVersion'](_0x23aa23),_0x42fef8=this['buildRevisionData']({'from':_0xc089cb,'to':_0x23aa23});if(this['currentRevision']['toVersion']<_0x23aa23){const _0x1a450b=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x23aa23,'to':_0x23aa23});_0x1a450b['authors']=[],_0x1a450b['authorsIds']=[],_0x1a450b['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x1a450b,!0x0),delete _0x1a450b['authors'],_0x1c330a['push'](_0x1a450b);}_0x5f4ed9['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x5f4ed9['name']=_0x5f4ed9['name']||null,_0x5f4ed9['id']=_0x5f4ed9['id']||_0x2135da(),_0x5f4ed9={..._0x5f4ed9,..._0x42fef8};const _0x3e2878=this['addRevisionData'](_0x5f4ed9);_0x1c330a['push'](_0x5f4ed9);const _0x102583=this['repository']['getIndex'](_0x3e2878);if(0x0!==_0x102583){const _0x2a993b=this['repository']['getRevision'](_0x102583-0x1);if(_0x2a993b['fromVersion']!==_0x23aa23){const _0x3ecd86=this['_revisionDataBuilder']['getData'](_0x23aa23,_0x2a993b['toVersion']),_0x4e6e83={'id':_0x2a993b['id'],'diffData':_0x3ecd86['diffData'],'authorsIds':_0x3ecd86['authorsIds'],'authors':_0x3ecd86['authorsIds']['map'](_0x2d3d48=>this['editor']['plugins']['get']('Users')['getUser'](_0x2d3d48)),'fromVersion':_0x23aa23};_0x2a993b===this['currentRevision']&&(_0x4e6e83['createdAt']=new Date(_0x5f4ed9['createdAt']['getTime']()+0xa)),_0x2a993b['_update'](_0x4e6e83,!0x0),delete _0x4e6e83['authors'],_0x1c330a['push'](_0x4e6e83);}}if(this['adapter']){for(const _0xd7d367 of _0x1c330a)this['_bufferUpdate'](_0xd7d367['id'],_0xd7d367,!0x0);this['sendBufferedUpdates']();}return _0x3e2878;}['addRevisionData'](_0x35ab2c){const _0x4f95a4=this['repository']['createRevision'](_0x35ab2c);return this['adapter']&&_0x4f95a4['on']('_update',(_0x2c1aad,_0x41ee15,_0x1dfb93)=>{_0x1dfb93||(this['_bufferUpdate'](_0x41ee15['id'],_0x41ee15,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x4f95a4,this['_findInsertionIndex'](_0x4f95a4)),_0x4f95a4;}async['getRevisionDocumentData'](_0x1e244f){return await this['_utils']['loadRevisionData'](_0x1e244f,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x1e244f);}async['getRevisionRootsAttributes'](_0x11f618){return await this['_utils']['loadRevisionData'](_0x11f618,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x11f618);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x47d6e5=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0xce11ef=0x0;_0xce11ef<_0x47d6e5['length'];_0xce11ef++){const _0x19c917=_0x47d6e5[_0xce11ef];let _0x2149bc=!0x1;for(const _0x17a690 of Object['keys'](_0x19c917))void 0x0===_0x19c917[_0x17a690]?delete _0x19c917[_0x17a690]:'id'!==_0x17a690&&(_0x2149bc=!0x0);_0x2149bc||(_0x47d6e5[_0xce11ef]=null);}if(_0x47d6e5=_0x47d6e5['filter'](_0x4d70bb=>null!==_0x4d70bb),!_0x47d6e5['length'])return;for(let _0x43e97f=0x0;_0x43e97f<_0x47d6e5['length'];_0x43e97f++){const _0xbb7eaf=_0x47d6e5[_0x43e97f];void 0x0!==_0xbb7eaf['fromVersion']&&void 0x0===_0xbb7eaf['toVersion']&&(_0xbb7eaf['toVersion']=this['repository']['getRevision'](_0xbb7eaf['id'])['toVersion']),void 0x0!==_0xbb7eaf['toVersion']&&void 0x0===_0xbb7eaf['fromVersion']&&(_0xbb7eaf['fromVersion']=this['repository']['getRevision'](_0xbb7eaf['id'])['fromVersion']);}const _0x4841fc=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x47d6e5,_0x4841fc)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x4e7968=>{if(_0x4e7968){for(const _0x20b0ab of _0x4e7968)this['setRevisionData']({'id':_0x20b0ab['id'],'createdAt':_0x20b0ab['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0xc96de3=null,from:_0x4e7e72=null,to:_0x38ab82=null}){_0x4e7e72=null!==_0x4e7e72?_0x4e7e72:_0xc96de3['fromVersion'],_0x38ab82=null!==_0x38ab82?_0x38ab82:_0xc96de3['toVersion'];const _0x211962=this['_revisionDataBuilder']['getData'](_0x4e7e72,_0x38ab82),_0x3ce3c9={'diffData':_0x211962['diffData'],'authorsIds':_0x211962['authorsIds'],'fromVersion':_0x4e7e72,'toVersion':_0x38ab82};if(!_0xc96de3||_0x38ab82!==_0xc96de3['toVersion']){const _0x5be9ab=_0x38ab82-0x1,_0x13a106=this['_source']['history']['getOperation'](_0x5be9ab);_0x3ce3c9['createdAt']=_0x13a106&&_0x13a106['createdAt']||new Date();}if(this['_loadedStateData']&&_0x4e7e72===this['_loadedStateData']['fromVersion']){for(const _0x1a554e of this['_loadedStateData']['authors'])_0x3ce3c9['authorsIds']['includes'](_0x1a554e['id'])||_0x3ce3c9['authorsIds']['push'](_0x1a554e['id']);}return _0x3ce3c9;}['_bufferUpdate'](_0x2c60fc,_0x1d1f80,_0x1f0306){if(this['_bufferedUpdates']['has'](_0x2c60fc)){const _0x159792=this['_bufferedUpdates']['get'](_0x2c60fc);_0x1d1f80=_0x1f0306?{..._0x159792,..._0x1d1f80}:{..._0x1d1f80,..._0x159792};}this['_bufferedUpdates']['set'](_0x2c60fc,_0x1d1f80);}['setRevisionData'](_0x1da630){const _0x57a472=this['repository']['getRevision'](_0x1da630['id']);if(_0x1da630['createdAt']&&(_0x1da630['createdAt']=new Date(_0x1da630['createdAt'])),_0x1da630['authorsIds']){const _0x4fd4b4=this['editor']['plugins']['get']('Users');_0x1da630['authors']=_0x1da630['authorsIds']['map'](_0x1fe686=>_0x4fd4b4['getUser'](_0x1fe686));}_0x57a472['_update'](_0x1da630,!0x0);}['_createInitialRevision'](_0x161292){const _0x376f2d=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x376f2d)this['_initialRevisionId']=_0x376f2d['id'];else{const _0x373e06=!this['editor']['model']['document']['roots']['find'](_0x4dcb26=>this['editor']['model']['hasContent'](_0x4dcb26)),_0x34706c=this['editor']['plugins']['get']('Users')['me']['id'],_0x122896=g(this['editor']['locale'],_0x373e06?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x161292,'to':_0x161292,'id':this['_initialRevisionId'],'name':_0x122896,'creatorId':_0x34706c});}}['_createCurrentRevision'](_0x47df9b){const _0x3e4b13=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x3e4b13),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x47df9b,'to':_0x47df9b,'id':_0x3e4b13,'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'](_0x468761,_0x50a65a){let _0x3554ca=this['editor']['config']['get']('initialData'),_0x13c684=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x3554ca){_0x3554ca={};for(const _0x3f3118 of this['editor']['model']['document']['getRootNames']())_0x3554ca[_0x3f3118]='';}if('string'==typeof _0x3554ca&&(_0x3554ca={'main':_0x3554ca}),void 0x0===_0x13c684){_0x13c684={};for(const _0x1658ea of this['editor']['model']['document']['getRootNames']())_0x13c684[_0x1658ea]={};}let _0x117861=!0x1;const _0x36ca2b=Object['keys'](_0x3554ca),_0x6255c5=Object['keys'](_0x468761);for(const _0x28d071 of _0x36ca2b){if(_0x3554ca[_0x28d071]!==_0x468761[_0x28d071]&&''!==_0x3554ca[_0x28d071]['trim']()){_0x117861=!0x0;break;}if(!_0x310225(_0x13c684[_0x28d071],_0x50a65a[_0x28d071])&&Object['keys'](_0x13c684[_0x28d071])['length']>0x0){_0x117861=!0x0;break;}}_0x117861||(_0x117861=_0x6255c5['some'](_0x2aa5e7=>!this['editor']['model']['document']['getRoot'](_0x2aa5e7))),_0x117861&&_0x307a60('editor-initial-data-replaced-with-revision-data',{'editorData':_0x3554ca,'editorRootsAttributes':_0x13c684,'revisionData':_0x468761,'revisionRootsAttributes':_0x50a65a}),this['editor']['config']['set']('initialData',_0x468761),this['editor']['config']['set']('rootsAttributes',_0x50a65a);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x7c976b=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x7c976b['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x48eff7){const _0x102b91=this['repository']['getRevisions']();_0x102b91['reverse']();let _0x4e9bb7=0x0;for(;_0x4e9bb7<_0x102b91['length'];){const _0x108fd5=_0x102b91[_0x4e9bb7];if(_0x108fd5===this['currentRevision']){_0x4e9bb7++;continue;}if(_0x108fd5['id']===this['_initialRevisionId'])break;const _0x77e0dd=_0x48eff7['toVersion']-_0x108fd5['toVersion']||_0x48eff7['fromVersion']-_0x108fd5['fromVersion'];if(_0x77e0dd>0x0)break;if(_0x77e0dd<0x0)_0x4e9bb7++;else{if(!_0x48eff7['creator']&&_0x108fd5['creator'])break;if(_0x108fd5['creator']||!_0x48eff7['creator']){if(_0x48eff7['createdAt']>_0x108fd5['createdAt'])break;_0x4e9bb7++;}else _0x4e9bb7++;}}return _0x4e9bb7;}['_getFromVersion'](_0x5b0196){const _0x326961=this['repository']['getRevisions']();_0x326961['reverse'](),_0x326961['shift']();const _0x45772c=_0x326961['find'](_0x28948b=>_0x28948b['toVersion']<=_0x5b0196)['toVersion'];return _0x45772c<this['_startingVersion']?this['_startingVersion']:_0x45772c;}['_makeRevision']({name:_0x454323,from:_0xca94c7,to:_0x15de47,creatorId:_0x33d020,id:_0x410128}){const _0xd34021=this['buildRevisionData']({'from':_0xca94c7,'to':_0x15de47});_0xd34021['name']=_0x454323,_0xd34021['creatorId']=_0x33d020,_0xd34021['id']=_0x410128;const _0x469046=this['addRevisionData'](_0xd34021);return this['adapter']&&this['_bufferUpdate'](_0xd34021['id'],_0xd34021,!0x0),_0x469046;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class x{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x341682){this['editor']=_0x341682,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'](_0xc14dbe){this['source']=_0xc14dbe;const _0x4680ff=new Map(),_0x5e7780=new Map(),_0x5398d2=this['editor']['model']['document']['roots']['map'](_0x53aba9=>_0x53aba9['rootName']);for(const _0x4f7209 of _0x5398d2){const _0x1acaaf=this['editor']['model']['document']['getRoot'](_0x4f7209),_0x1b5dfb=N(_0x1acaaf);_0x4680ff['set'](_0x4f7209,_0x1b5dfb),_0x5e7780['set'](_0x4f7209,Object['fromEntries'](_0x1acaaf['getAttributes']()));}const _0x5266ce=Array['from'](this['editor']['model']['markers'])['map'](_0x414d90=>[_0x414d90['name'],_0x414d90['getRange']()]),_0x4264c0=this['source']['version'];this['_saveMetaData'](_0x4264c0,_0x4680ff,_0x5266ce,_0x5e7780),this['_startingRevisionId']=this['_revisionId'];const _0x20f7a2=new Map(),_0x189970=new Map();for(const _0x267a7a of _0x5398d2){const _0x4f7715=P(_0x267a7a);_0x20f7a2['set'](_0x267a7a,_0x4f7715),_0x189970['set'](_0x267a7a,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x20f7a2,[],_0x189970);}['getData'](_0x450614,_0x39fdc3){if(this['_lastFrom']===_0x450614&&this['_lastTo']<=_0x39fdc3)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x39fdc3,!0x0);else{if(!this['_savedMetaData']['has'](_0x450614)){const _0x509b15=this['_getPreviousFrom'](_0x450614);this['_calculateMetaData'](_0x509b15,_0x450614,!0x1);}this['_calculateMetaData'](_0x450614,_0x39fdc3,!0x0);}return this['_lastFrom']=_0x450614,this['_lastTo']=_0x39fdc3,this['_getState']();}['loadState'](_0x1b6a25){const _0x3537b1=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x1b6a25['fromVersion'],this['_lastTo']=_0x1b6a25['toVersion'];for(const _0x819f8f in _0x1b6a25['diffData']){const _0x30de68=_0x1b6a25['diffData'][_0x819f8f]['attachChange'],_0x486adb=_0xcb7214(_0x1b6a25['diffData'][_0x819f8f]['attributesBefore'])||{},_0x4eee91=_0x3537b1['_makeModelFromViewString'](_0x1b6a25['diffData'][_0x819f8f]['deletions']);_0x4eee91['rootName']=_0x819f8f,_0x4eee91['_isAttached']=!_0x30de68||!_0x30de68['isAttached'],_0x4eee91['isAttached']=()=>_0x4eee91['_isAttached'],this['_baseRoots']['set'](_0x819f8f,_0x4eee91),this['_baseRootsAttributes']['set'](_0x819f8f,_0x486adb),_0x30de68&&this['_touchedRoots']['set'](_0x819f8f,_0x30de68);const _0x2409d7=this['_makeIdsRoot'](_0x4eee91);this['_baseIdsRoots']['set'](_0x819f8f,_0x2409d7);for(const [_0x31a02b,_0xc0a55c]of _0x4eee91['markers']){if(!_0x31a02b['startsWith']('revision:'))continue;const _0x541e5b=_0x31a02b['split'](':')[0x2];for(const _0x3c6e0f of _0xc0a55c['getWalker']({'singleCharacters':!0x0})){const _0x2a7d42=this['_getVidAttributeName'](_0x3c6e0f),_0x4067f3='elementEnd'==_0x3c6e0f['type']?_0x3c6e0f['previousPosition']['path']['slice'](0x0,-0x1):_0x3c6e0f['previousPosition']['path'],_0x204fcb=_0x2409d7['getNodeByPath'](_0x4067f3)['getAttribute'](_0x2a7d42);this['_touched']['set'](_0x204fcb,{'userId':_0x541e5b});}}}this['_startingRevisionId']=this['_revisionId'];const _0x562d19=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x26bf3e=>!this['_touched']['has'](_0x26bf3e));let _0x39d375=0x0;const _0x5f55cf=new Map();for(const _0x3f1e93 in _0x1b6a25['diffData']){const _0x3b16b8=_0x1b6a25['diffData'][_0x3f1e93]['attachChange'],_0x3002cf=_0xcb7214(_0x1b6a25['diffData'][_0x3f1e93]['attributesAfter'])||{},_0x58946c=_0x3537b1['_makeModelFromViewString'](_0x1b6a25['diffData'][_0x3f1e93]['insertions']);_0x58946c['rootName']=_0x3f1e93,_0x58946c['_isAttached']=!_0x3b16b8||_0x3b16b8['isAttached'],_0x58946c['isAttached']=()=>_0x58946c['_isAttached'],this['_diffRoots']['set'](_0x3f1e93,_0x58946c),this['_diffRootsAttributes']['set'](_0x3f1e93,_0x3002cf);const _0x53154d=this['_makeIdsRoot'](_0x58946c,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x3f1e93,_0x53154d),_0x5f55cf['set'](_0x3f1e93,_0x58946c['isAttached']()?_0x3002cf:{});for(const [_0x3a30c3,_0x2ffd7e]of _0x58946c['markers']){if(!_0x3a30c3['startsWith']('revision:'))continue;const _0x4aa790=_0x3a30c3['split'](':')[0x2];for(const _0xd60f02 of _0x2ffd7e['getWalker']({'singleCharacters':!0x0})){const _0x50db4c=this['_getVidAttributeName'](_0xd60f02),_0x3f4974=this['_revisionId']++,_0x28dd4d='elementEnd'==_0xd60f02['type']?_0xd60f02['previousPosition']['path']['slice'](0x0,-0x1):_0xd60f02['previousPosition']['path'];_0x53154d['getNodeByPath'](_0x28dd4d)['_setAttribute'](_0x50db4c,_0x3f4974),this['_touched']['set'](_0x3f4974,{'userId':_0x4aa790});}}for(const _0x5e50cc of this['editor']['model']['createRangeIn'](_0x58946c)['getWalker']({'singleCharacters':!0x0})){const _0xf31fc7=this['_getVidAttributeName'](_0x5e50cc),_0x5a07e7='elementEnd'==_0x5e50cc['type']?_0x5e50cc['previousPosition']['path']['slice'](0x0,-0x1):_0x5e50cc['previousPosition']['path'],_0x2404fe=_0x53154d['getNodeByPath'](_0x5a07e7);_0x2404fe['getAttribute'](_0xf31fc7)>0x0||_0x2404fe['_setAttribute'](_0xf31fc7,_0x562d19[_0x39d375++]);}for(const [_0x378814,_0x6dbee3]of _0x58946c['markers'])_0x378814['startsWith']('revision:')||this['_markers']['set'](_0x378814,_0x6dbee3);}const _0xdc6ded=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0xdc6ded),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0xdc6ded,0x1));const _0x5dc672=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x5dc672),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x5dc672,0x1));const _0x16d5eb=Array['from'](this['_diffRoots'])['map'](([_0x59a466,_0x102081])=>[_0x59a466,N(_0x102081)]);this['_saveMetaData'](this['_lastTo'],_0x16d5eb,this['_markers'],_0x5f55cf);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x4a23aa,_0x34f8df,_0x196c32,_0x19ce11){const _0x1e895d=new Map(_0x34f8df),_0x2553a8=new Map(_0xcb7214(_0x19ce11)),_0x18cc08=new Map();for(const [_0x2c1319,_0x2fe847]of _0x196c32)_0x18cc08['set'](_0x2c1319,{'start':_0x2fe847['start']['clone'](),'end':_0x2fe847['end']['clone'](),'rootName':_0x2fe847['root']['rootName']});this['_savedMetaData']['set'](_0x4a23aa,{'roots':_0x1e895d,'markers':_0x18cc08,'rootsAttributes':_0x2553a8});}['_removeMetaData'](_0x5e70e1){this['_savedMetaData']['delete'](_0x5e70e1);}['_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'](_0x2c03e2,_0x4dabb8=null){let _0x56f45e=null;_0x2c03e2['is']('documentFragment')||(_0x56f45e=new ut(_0x2c03e2['name'],{'vid_start':null===_0x4dabb8?this['_revisionId']++:_0x4dabb8++}));const _0xf79e10=[];for(const _0x13c01e of _0x2c03e2['getChildren']())if(_0x13c01e['is']('element')){_0xf79e10['push'](this['_makeIdsRoot'](_0x13c01e,_0x4dabb8));const _0x3b16a7=_0xf79e10[_0xf79e10['length']-0x1];null!==_0x4dabb8&&(_0x4dabb8=_0x3b16a7['is']('element','$text')?_0x3b16a7['getAttribute']('vid')+0x1:_0x3b16a7['getAttribute']('vid_end')+0x1);}else{for(let _0x50aade=0x0;_0x50aade<_0x13c01e['offsetSize'];_0x50aade++)_0xf79e10['push'](new ut('$text',{'vid':null===_0x4dabb8?this['_revisionId']++:_0x4dabb8++}));}if(_0x2c03e2['is']('documentFragment')){const _0x265282=P(_0x2c03e2['rootName']);return _0x265282['_insertChild'](0x0,_0xf79e10),_0x265282;}return _0x56f45e['_setAttribute']('vid_end',null===_0x4dabb8?this['_revisionId']++:_0x4dabb8++),_0x56f45e['_insertChild'](0x0,_0xf79e10),_0x56f45e;}['_calculateMetaData'](_0x33e63e,_0x2422c6,_0x3bbc87){this['_reset']();const {roots:_0x2c271c,markers:_0x2e0daa,rootsAttributes:_0x5e9ec6}=this['_savedMetaData']['get'](_0x33e63e);this['_baseRoots']=new Map(_0x2c271c),this['_baseRootsAttributes']=new Map(_0xcb7214(_0x5e9ec6));for(const [_0x3fb23b,_0x5701d2]of this['_baseRoots'])if('$graveyard'!==_0x3fb23b&&(this['_diffRoots']['set'](_0x3fb23b,N(_0x5701d2)),this['_diffRootsAttributes']=new Map(_0xcb7214(_0x5e9ec6)),_0x3bbc87)){const _0xfec32e=this['_revisionId'];this['_idsRoots']['set'](_0x3fb23b,this['_makeIdsRoot'](_0x5701d2)),this['_baseIdsRoots']['set'](_0x3fb23b,this['_makeIdsRoot'](_0x5701d2,_0xfec32e));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x3bbc87&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x5a0399,_0x49675a]of _0x2e0daa){const _0x4c5d57=this['_baseRoots']['get'](_0x49675a['rootName']),_0x3f75c0=this['_diffRoots']['get'](_0x49675a['rootName']),_0x595982=new lt(this['_fixPosition'](_0x49675a['start'],_0x4c5d57),this['_fixPosition'](_0x49675a['end'],_0x4c5d57)),_0x27914e=this['_fixRange'](_0x595982,_0x3f75c0);_0x4c5d57['markers']['set'](_0x5a0399,_0x595982),this['_markers']['set'](_0x5a0399,_0x27914e);}this['_applyOperations'](_0x33e63e,_0x2422c6,_0x3bbc87);}['_applyOperations'](_0x1fc4c7,_0x36a4ca,_0x3f9262){for(const _0x1b83c7 of this['source']['getOperations'](_0x1fc4c7,_0x36a4ca))this['_handleOperation'](_0x1b83c7,_0x3f9262);for(const _0x1fbfb0 of this['_diffRoots']['values']())_0x1fbfb0['markers']['clear']();for(const [_0x1212e6,_0x56721c]of this['_markers']){this['_diffRoots']['get'](_0x56721c['root']['rootName'])['markers']['set'](_0x1212e6,_0x56721c['clone']());}const _0x54f2c6=new Map(),_0x28dfa2=new Map();for(const [_0x4d508e,_0xaefff2]of this['_diffRoots'])_0x54f2c6['set'](_0x4d508e,N(_0xaefff2)),_0x28dfa2['set'](_0x4d508e,this['_diffRootsAttributes']['get'](_0x4d508e));this['_saveMetaData'](_0x36a4ca,_0x54f2c6,this['_markers'],_0x28dfa2);}['_getPreviousFrom'](_0x3def6e){const _0x56f43b=Array['from'](this['_savedMetaData']['keys']());_0x56f43b['sort']((_0x4b2a34,_0x2510ca)=>_0x4b2a34-_0x2510ca),_0x56f43b['reverse']();for(const _0x172893 of _0x56f43b)if(_0x172893<_0x3def6e)return _0x172893;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x55f39b,_0x4dae8c){const _0x2ff500=Array['from'](_0x4dae8c['markers'])['map'](([_0x48e27b,_0x13e39a])=>[_0x48e27b,this['_fixRange'](_0x13e39a,_0x55f39b)]);_0x55f39b['markers']=new Map(_0x2ff500);}['_transformMarkers'](_0x8f6c43){for(const _0x40689a of this['_markers']['values']()){const _0x5b97e7=_0x40689a['getTransformedByOperation'](_0x8f6c43),_0x38e5dc=lt['_createFromRanges'](_0x5b97e7);_0x40689a['start']=_0x38e5dc['start'],_0x40689a['end']=_0x38e5dc['end'];}}['_handleOperation'](_0x50ea77,_0x4948ec){if('addRoot'!=_0x50ea77['type']&&'detachRoot'!=_0x50ea77['type']){if('insert'==_0x50ea77['type']){const _0x4ddb14=_0x50ea77['position']['root']['rootName'];this['_diffRoots']['has'](_0x4ddb14)||(this['_diffRoots']['set'](_0x4ddb14,P(_0x4ddb14,!0x0)),this['_diffRootsAttributes']['set'](_0x4ddb14,{}),_0x4948ec&&this['_idsRoots']['set'](_0x4ddb14,P(_0x4ddb14,!0x0)));}else{if('addRootAttribute'==_0x50ea77['type']||'removeRootAttribute'==_0x50ea77['type']||'changeRootAttribute'==_0x50ea77['type'])return void this['_handleRootAttributeOperation'](_0x50ea77);'marker'==_0x50ea77['type']&&this['_handleMarkerOperation'](_0x50ea77);}if('marker'!==_0x50ea77['type']){const _0x29dc53=this['_cloneOperation'](_0x50ea77,this['_diffRoots']);_0x29dc53['_execute'](),this['_transformMarkers'](_0x29dc53);}if(_0x4948ec)switch(_0x50ea77['type']){case'insert':this['_handleInsertOperation'](_0x50ea77);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x50ea77);break;case'merge':this['_handleMergeOperation'](_0x50ea77);break;case'split':this['_handleSplitOperation'](_0x50ea77);}}else this['_handleRootOperation'](_0x50ea77,_0x4948ec);}['_cloneOperation'](_0x5cab26,_0x155abd){const _0xf339dd=_0x5cab26['clone']();return _0xf339dd['_authorId']=_0x5cab26['_authorId'],this['_fixOperation'](_0xf339dd,_0x155abd),_0xf339dd;}['_getBaseVids'](_0x423803){return _0x423803['map'](_0x2c4c75=>{const _0x315490=this['_getVidAttributeName'](_0x2c4c75);return Number(_0x2c4c75['item']['getAttribute'](_0x315490));});}['_generateTape'](_0x269817,_0x1a62f2){if(_0x269817['is']('element','$text'))_0x1a62f2['push']({'item':_0x269817,'type':'text'});else{_0x269817['is']('element')&&_0x1a62f2['push']({'item':_0x269817,'type':'elementStart'});for(const _0x14fc45 of _0x269817['getChildren']())this['_generateTape'](_0x14fc45,_0x1a62f2);_0x269817['is']('element')&&_0x1a62f2['push']({'item':_0x269817,'type':'elementEnd'});}return _0x1a62f2;}['_getState'](){const _0x30e9e9=new Map(this['_touched']),_0x573e4c=new Map(_0x30e9e9),_0x1c14c5=new Map(),_0x146576={'insertions':{},'deletions':{}},_0x186637={'insertions':{},'deletions':{}},_0x15de58=new Map(),_0x15e94c=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x15e94c['delete']('$graveyard');for(const _0x5394a8 of _0x15e94c){const _0x382c31=this['_diffRoots']['get'](_0x5394a8)||P(_0x5394a8,!0x1),_0x42ba8f=this['_baseRoots']['get'](_0x5394a8)||P(_0x5394a8,!0x1);_0x382c31['isAttached']()||_0x42ba8f['isAttached']()?(_0x146576['insertions'][_0x5394a8]=N(_0x382c31),_0x146576['deletions'][_0x5394a8]=N(_0x42ba8f),this['_copyMarkers'](_0x146576['deletions'][_0x5394a8],_0x42ba8f),this['_copyMarkers'](_0x146576['insertions'][_0x5394a8],_0x382c31),_0x186637['insertions'][_0x5394a8]=this['_generateTape'](this['_idsRoots']['get'](_0x5394a8),[]),_0x186637['deletions'][_0x5394a8]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x5394a8)||P(_0x5394a8,!0x1),[])):_0x15e94c['delete'](_0x5394a8);}for(const _0x4987b0 of _0x15e94c){const _0xa2565f=_0x186637['insertions'][_0x4987b0];for(const _0x447388 of _0xa2565f){const _0xc413b=this['_getVidAttributeName'](_0x447388),_0x2496dc=_0x447388['item']['getAttribute'](_0xc413b);_0x573e4c['delete'](_0x2496dc),_0x2496dc>=this['_startingRevisionId']&&_0x1c14c5['set'](_0x2496dc,_0x30e9e9['get'](_0x2496dc));}}for(const _0x583b04 of _0x15e94c){const _0x1ac630=_0x186637['insertions'][_0x583b04],_0x1d4ec9=this['_getBaseVids'](_0x186637['deletions'][_0x583b04]);let _0x1b5769=0x0;for(const _0x527897 of _0x1ac630){const _0xdbb2df=this['_getVidAttributeName'](_0x527897),_0x34bc28=_0x527897['item']['getAttribute'](_0xdbb2df);if(!_0x1c14c5['has'](_0x34bc28)&&!_0x15de58['has'](_0x34bc28)){if(_0x573e4c['has'](_0x34bc28))_0x1b5769++;else{if(_0x34bc28!=_0x1d4ec9[_0x1b5769]){const _0x179ec3=_0x30e9e9['get'](_0x34bc28)||_0x30e9e9['get'](_0x1d4ec9[_0x1b5769]);for(;_0x34bc28!=_0x1d4ec9[_0x1b5769];)_0x573e4c['has'](_0x1d4ec9[_0x1b5769])||(_0x15de58['set'](_0x1d4ec9[_0x1b5769],_0x179ec3),_0x30e9e9['set'](_0x1d4ec9[_0x1b5769],_0x179ec3)),_0x1b5769++;}_0x1b5769++;}}}}for(const _0x4ca009 of _0x15e94c){const _0x4d88b8=_0x186637['insertions'][_0x4ca009];for(const _0x200e1a of _0x4d88b8){const _0x41761c=this['_getVidAttributeName'](_0x200e1a),_0x1b6099=_0x200e1a['item']['getAttribute'](_0x41761c);if(_0x15de58['has'](_0x1b6099)){const _0x2b8ca8=_0x15de58['get'](_0x1b6099);_0x573e4c['has'](_0x1b6099)||_0x573e4c['set'](_0x1b6099,{..._0x2b8ca8}),_0x1c14c5['set'](_0x1b6099,{..._0x2b8ca8});}}}for(const _0x299c3f of _0x573e4c['keys']())_0x299c3f>=this['_startingRevisionId']&&_0x573e4c['delete'](_0x299c3f);const _0x2f8627=new Map();for(const _0x3f72c3 of _0x15e94c){let _0x31aaa6=_0x186637['insertions'][_0x3f72c3];for(const _0x4779c6 of _0x31aaa6)if(_0x4779c6['item']['is']('element','tableCell')){const _0x1daee7=this['_getVidAttributeName'](_0x4779c6),_0x2e8369=_0x4779c6['item']['getAttribute'](_0x1daee7);if(_0x1c14c5['has'](_0x2e8369)){const _0x21dcdc=_0x4779c6['item']['parent']['parent']['getAttribute']('vid_start'),_0x527098=_0x2f8627['get'](_0x21dcdc)||new Set();_0x527098['add'](_0x1c14c5['get'](_0x2e8369)['userId']),_0x2f8627['set'](_0x21dcdc,_0x527098);}}_0x31aaa6=_0x186637['deletions'][_0x3f72c3];for(const _0x3db786 of _0x31aaa6)if(_0x3db786['item']['is']('element','tableCell')){const _0x5a75a7=this['_getVidAttributeName'](_0x3db786),_0x14cf14=_0x3db786['item']['getAttribute'](_0x5a75a7);if(_0x573e4c['has'](_0x14cf14)){const _0x22b87e=_0x3db786['item']['parent']['parent']['getAttribute']('vid_start'),_0x261c2a=_0x2f8627['get'](_0x22b87e)||new Set();_0x261c2a['add'](_0x573e4c['get'](_0x14cf14)['userId']),_0x2f8627['set'](_0x22b87e,_0x261c2a);}}for(const _0x368ef6 of _0x2f8627['keys']())(_0x1c14c5['has'](_0x368ef6)||_0x573e4c['has'](_0x368ef6))&&_0x2f8627['delete'](_0x368ef6);}for(const _0x5ce1c4 of _0x15e94c){const _0xc23ab9=_0x186637['insertions'][_0x5ce1c4];let _0xf5718f=null,_0x280306=null;for(const _0x56143e of _0xc23ab9){const _0x429100=this['_getVidAttributeName'](_0x56143e),_0x2bcd93=_0x56143e['item']['getAttribute'](_0x429100),_0x4420fa=_0x2f8627['get'](_0x2bcd93);_0x4420fa&&'elementStart'==_0x56143e['type']&&(_0xf5718f=Array['from'](_0x4420fa)[0x0],_0x280306=_0x56143e['item']['getAttribute']('vid_end')),_0xf5718f&&(_0x573e4c['set'](_0x2bcd93,{'userId':_0xf5718f}),_0x1c14c5['set'](_0x2bcd93,{'userId':_0xf5718f})),_0x2bcd93==_0x280306&&(_0xf5718f=null,_0x280306=null);}}const _0x220da8={},_0x2933fc=new Set();for(const _0x2717e8 of _0x15e94c){const _0x28a61b=_0x146576['deletions'][_0x2717e8],_0x51b140=_0x146576['insertions'][_0x2717e8];for(const {userId:_0xeac05}of this['_touchedMarkers']['values']())null!==_0xeac05&&_0x2933fc['add'](_0xeac05);for(const {userId:_0x2207c1}of this['_touchedRoots']['values']())null!==_0x2207c1&&_0x2933fc['add'](_0x2207c1);this['_markChanges'](_0x51b140,_0x186637['insertions'][_0x2717e8],_0x1c14c5,'insertion',_0x2933fc),this['_markChanges'](_0x28a61b,_0x186637['deletions'][_0x2717e8],_0x573e4c,'deletion',_0x2933fc),_0x220da8[_0x2717e8]={'insertions':this['_prepareViewToSave'](_0x51b140),'deletions':this['_prepareViewToSave'](_0x28a61b),'attachChange':this['_touchedRoots']['get'](_0x2717e8)||null,'attributesBefore':_0xcb7214(this['_baseRootsAttributes']['get'](_0x2717e8))||{},'attributesAfter':_0xcb7214(this['_diffRootsAttributes']['get'](_0x2717e8))};}return{'diffData':_0x220da8,'authorsIds':Array['from'](_0x2933fc)};}['_processRootBeforeSave'](_0x46b11a){for(const [,_0x20390a]of _0x46b11a['markers']){const _0x45aa5d=_0x20390a['start']['getAncestors']()['filter'](_0xb604c4=>'tableCell'==_0xb604c4['name']);for(const _0x2279ab of _0x45aa5d)0x1==_0x2279ab['childCount']&&_0x2279ab['getChild'](0x0)['is']('element','paragraph')&&_0x2279ab['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x3e6ab1){this['_processRootBeforeSave'](_0x3e6ab1);const _0x5a8cda=this['editor']['data']['toView'](_0x3e6ab1,{}),_0x4952b4=Array['from'](_0x5a8cda['getChildren']())['map'](_0x3cae1b=>this['_getViewJson'](_0x3cae1b));return JSON['stringify'](_0x4952b4);}['_getViewJson'](_0x4d0bdd){if(_0x4d0bdd['is']('$text'))return _0x4d0bdd['data'];{const _0x3273ef=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x4c6702=_0x4d0bdd,_0x5149f7=this['editor']['data']['htmlProcessor']['domConverter'],_0x5cf790={'type':_0x3273ef['_getTypeCharForViewElement'](_0x4c6702),'name':_0x4c6702['name'],'attributes':Array['from'](_0x4c6702['getAttributes']()),'children':Array['from'](_0x4c6702['getChildren']())['map'](_0xf64700=>this['_getViewJson'](_0xf64700))};if(_0x4d0bdd['is']('uiElement')&&'$comment'!=_0x4d0bdd['name']){const _0x5074e6=_0x4d0bdd['render'](_0x5149f7['domDocument'],_0x5149f7);_0x5cf790['children']['push'](_0x5074e6['outerHTML']);}else{if(_0x4d0bdd['is']('rawElement')){const _0x12ef5f=_0x5149f7['domDocument']['createElement'](_0x4c6702['name']);_0x4d0bdd['render'](_0x12ef5f,_0x5149f7),_0x5cf790['children']['push'](_0x12ef5f['innerHTML']);}}const _0x1b64f4=Array['from'](_0x4c6702['getCustomProperties']());_0x1b64f4['length']>0x0&&(_0x5cf790['customProperties']=_0x1b64f4);const _0x97b2ef=_0x4c6702['getFillerOffset']();return null!==_0x97b2ef&&(_0x5cf790['fillerOffset']=_0x97b2ef),_0x5cf790;}}['_markChanges'](_0x206769,_0x303300,_0x3c016a,_0x21654a,_0x3eb579){let _0x25537a=null,_0x57aa36=null,_0x28d4bd=0x0;const _0x45185c=this['editor']['model'];for(let _0x324a8e=0x0;_0x324a8e<_0x303300['length'];_0x324a8e++){const _0x5057c8=this['_getVidAttributeName'](_0x303300[_0x324a8e]),_0x4e6d78=_0x303300[_0x324a8e]['item']['getAttribute'](_0x5057c8),_0x20cf08=_0x3c016a['get'](_0x4e6d78),_0xff7709=_0x324a8e==_0x303300['length']-0x1;(!_0x25537a&&_0x20cf08&&(_0x25537a=_0x20cf08,_0x57aa36=_0x303300[_0x324a8e]),_0x25537a&&(!_0x20cf08||_0x20cf08['userId']!=_0x25537a['userId']))&&(_0x571442(_0x20cf08,F(_0x57aa36,_0x206769,_0x45185c),F(_0x303300[_0x324a8e],_0x206769,_0x45185c)),_0x25537a=_0x20cf08||null,_0x57aa36=_0x20cf08?_0x303300[_0x324a8e]:null),_0x25537a&&_0xff7709&&_0x571442(_0x20cf08,F(_0x57aa36,_0x206769,_0x45185c),B(_0x303300[_0x324a8e],_0x206769,_0x45185c));}function _0x571442(_0x4f77c8,_0x1b6d6b,_0x1aa6da){const _0x52b825=_0x25537a['userId'],_0x4ab18d='revision:'+_0x21654a+':'+_0x52b825+':'+_0x28d4bd++,_0x4b2929=_0x45185c['createRange'](_0x1b6d6b,_0x1aa6da);_0x206769['markers']['set'](_0x4ab18d,_0x4b2929),null!==_0x52b825&&_0x3eb579['add'](_0x52b825);}}['_getVidAttributeName'](_0x3d9fc0){switch(_0x3d9fc0['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x4c83cc,_0x54396f){_0x4c83cc['baseVersion']=null;for(const _0x5c2781 in _0x4c83cc){const _0x32ff3f=_0x4c83cc[_0x5c2781];if(_0x32ff3f instanceof ft){const _0x12b7a0=_0x54396f['get'](_0x32ff3f['root']['rootName']);_0x4c83cc[_0x5c2781]=this['_fixPosition'](_0x32ff3f,_0x12b7a0);}if(_0x32ff3f instanceof lt){const _0xfcfeeb=_0x54396f['get'](_0x32ff3f['root']['rootName']);_0x4c83cc[_0x5c2781]=this['_fixRange'](_0x32ff3f,_0xfcfeeb);}'root'===_0x5c2781&&(_0x4c83cc['root']=_0x54396f['get'](_0x4c83cc['root']['rootName']));}}['_fixRange'](_0x49e0eb,_0x2545bb){return this['editor']['model']['createRange'](this['_fixPosition'](_0x49e0eb['start'],_0x2545bb),this['_fixPosition'](_0x49e0eb['end'],_0x2545bb));}['_fixPosition'](_0x22e706,_0x2e8eff){return this['editor']['model']['createPositionFromPath'](_0x2e8eff,_0x22e706['path'],_0x22e706['stickiness']);}['_handleInsertOperation'](_0xdc7af2){const _0x191913=this['_idsRoots']['get'](_0xdc7af2['position']['root']['rootName']),_0x2c07c2=this['_fixPosition'](_0xdc7af2['position'],_0x191913),_0xd2a6f4=null===_0xdc7af2['_authorId']?null:_0xdc7af2['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2367e9=_0x2c07c2['parent'],_0x6d154a=this['_revisionId'],_0x5e9e7b=[];for(const _0x24cfa8 of _0xdc7af2['nodes'])if(_0x24cfa8['is']('element'))_0x5e9e7b['push'](this['_makeIdsRoot'](_0x24cfa8));else{for(let _0x1beeeb=0x0;_0x1beeeb<_0x24cfa8['offsetSize'];_0x1beeeb++)_0x5e9e7b['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x4a7ff6=this['_revisionId'];for(let _0x5ad796=_0x6d154a;_0x5ad796<_0x4a7ff6;_0x5ad796++)this['_touched']['set'](_0x5ad796,{'userId':_0xd2a6f4});_0x2367e9['_insertChild'](_0x2c07c2['offset'],_0x5e9e7b);}['_handleMoveOperation'](_0x2123b2){(_0x2123b2=this['_cloneOperation'](_0x2123b2,this['_idsRoots']))['_execute']();const _0x43a802=null===_0x2123b2['_authorId']?null:_0x2123b2['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x303281=_0x2123b2['getMovedRangeStart'](),_0x37830e=_0x303281['parent'],_0x1bffe4=_0x303281['offset'];!function _0x1911b7(_0x12b89b,_0x87a9a2,_0x429d66,_0x522c6d){for(let _0x2219dd=_0x429d66;_0x2219dd<_0x522c6d;_0x2219dd++){const _0x51d137=_0x87a9a2['getChild'](_0x2219dd);_0x51d137['is']('element','$text')?_0x12b89b['set'](_0x51d137['getAttribute']('vid'),{'userId':_0x43a802}):(_0x12b89b['set'](_0x51d137['getAttribute']('vid_start'),{'userId':_0x43a802}),_0x1911b7(_0x12b89b,_0x51d137,0x0,_0x51d137['childCount']),_0x12b89b['set'](_0x51d137['getAttribute']('vid_end'),{'userId':_0x43a802}));}}(this['_touched'],_0x37830e,_0x1bffe4,_0x1bffe4+_0x2123b2['howMany']);}['_handleMergeOperation'](_0x1352ec){const _0x32481f=null===(_0x1352ec=this['_cloneOperation'](_0x1352ec,this['_idsRoots']))['_authorId']?null:_0x1352ec['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1172af=_0x1352ec['targetPosition']['parent'],_0x40f405=_0x1352ec['sourcePosition']['parent'],_0x31bab0=_0x1172af['getAttribute']('vid_end'),_0x4bea03=_0x40f405['getAttribute']('vid_start');_0x1172af['_setAttribute']('vid_end',_0x40f405['getAttribute']('vid_end')),_0x40f405['_setAttribute']('vid_end',_0x31bab0),this['_touched']['set'](_0x4bea03,{'userId':_0x32481f}),this['_touched']['set'](_0x31bab0,{'userId':_0x32481f}),_0x1352ec['_execute']();}['_handleSplitOperation'](_0x22a2c6){const _0x20dba0=null===(_0x22a2c6=this['_cloneOperation'](_0x22a2c6,this['_idsRoots']))['_authorId']?null:_0x22a2c6['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x41f0fd=_0x22a2c6['graveyardPosition'],_0x5e408f=_0x22a2c6['splitPosition']['parent'];_0x22a2c6['_execute']();const _0x5c94a0=_0x5e408f['getAttribute']('vid_end'),_0x199573=_0x22a2c6['insertionPosition']['nodeAfter'];if(_0x41f0fd){const _0x3abd8b=_0x199573['getAttribute']('vid_end'),_0x476ca7=_0x5e408f['getAttribute']('vid_end');_0x5e408f['_setAttribute']('vid_end',_0x3abd8b),_0x199573['_setAttribute']('vid_end',_0x476ca7),this['_touched']['set'](_0x5e408f['getAttribute']('vid_end'),{'userId':_0x20dba0}),this['_touched']['set'](_0x199573['getAttribute']('vid_start'),{'userId':_0x20dba0});}else{const _0x337769=this['_revisionId']++,_0x101a98=this['_revisionId']++;_0x5e408f['_setAttribute']('vid_end',_0x337769),_0x199573['_setAttribute']('vid_start',_0x101a98),_0x199573['_setAttribute']('vid_end',_0x5c94a0),this['_touched']['set'](_0x337769,{'userId':_0x20dba0}),this['_touched']['set'](_0x101a98,{'userId':_0x20dba0});}}['_handleMarkerOperation'](_0x4103cd){if(!_0x4103cd['affectsData'])return;const _0x1a7b7e=(_0x4103cd=this['_cloneOperation'](_0x4103cd,this['_diffRoots']))['oldRange']?_0x4103cd['oldRange']['root']:null,_0x331e4b=_0x4103cd['newRange']?_0x4103cd['newRange']['root']:null;_0x1a7b7e&&this['_markers']['delete'](_0x4103cd['name']),_0x331e4b&&this['_markers']['set'](_0x4103cd['name'],_0x4103cd['newRange']['clone']());const _0x143c77=null===_0x4103cd['_authorId']?null:_0x4103cd['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x734951=_0x4103cd['name'];if(!this['_touchedMarkers']['has'](_0x734951))return void this['_touchedMarkers']['set'](_0x734951,{'range':_0x4103cd['oldRange'],'userId':_0x143c77});const _0x344e69=this['_touchedMarkers']['get'](_0x734951),_0x65a5f2=_0x344e69['range'],_0x2160ac=_0x4103cd['newRange'];null==_0x65a5f2&&null==_0x2160ac||_0x65a5f2&&_0x2160ac&&_0x65a5f2['isEqual'](_0x2160ac)?this['_touchedMarkers']['delete'](_0x4103cd['name']):_0x344e69['userId']=_0x143c77;}['_handleRootOperation'](_0x164ef0,_0x3a1b4e){this['_diffRoots']['has'](_0x164ef0['rootName'])?this['_diffRoots']['get'](_0x164ef0['rootName'])['_isAttached']=_0x164ef0['isAdd']:(this['_diffRoots']['set'](_0x164ef0['rootName'],P(_0x164ef0['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x164ef0['rootName'],{}),_0x3a1b4e&&this['_idsRoots']['set'](_0x164ef0['rootName'],P(_0x164ef0['rootName'],!0x0)));const _0xe7a014=null===_0x164ef0['_authorId']?null:_0x164ef0['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x326967=this['_touchedRoots']['get'](_0x164ef0['rootName']);_0x326967&&_0x326967['userId']===_0xe7a014?this['_touchedRoots']['delete'](_0x164ef0['rootName']):this['_touchedRoots']['set'](_0x164ef0['rootName'],{'userId':_0xe7a014,'isAttached':_0x164ef0['isAdd']});}['_handleRootAttributeOperation'](_0x2db09e){const _0x2f4bb7=this['_diffRootsAttributes']['get'](_0x2db09e['root']['rootName']);null===_0x2db09e['newValue']?delete _0x2f4bb7[_0x2db09e['key']]:_0x2f4bb7[_0x2db09e['key']]=_0x2db09e['newValue'];}}function N(_0x4f1415){const _0x299810=P(_0x4f1415['rootName'],_0x4f1415['isAttached']());for(const _0x3d2423 of _0x4f1415['getChildren']()){const _0x53446a=_0x3d2423['_clone'](!0x0);_0x299810['_appendChild'](_0x53446a);}return _0x299810;}function P(_0x4ee67d,_0x427a9a=!0x0){const _0x41431b=new vt();return _0x41431b['rootName']=_0x4ee67d,_0x41431b['_isAttached']=_0x427a9a,_0x41431b['isAttached']=()=>_0x41431b['_isAttached'],_0x41431b;}function F(_0x397365,_0x428bec,_0x4b72ce){const _0x1f260b='elementEnd'==_0x397365['type']?_0x4b72ce['createPositionAt'](_0x397365['item'],'end'):_0x4b72ce['createPositionBefore'](_0x397365['item']);return _0x4b72ce['createPositionFromPath'](_0x428bec,_0x1f260b['path'],_0x1f260b['stickiness']);}function B(_0x4bc159,_0x260d7d,_0x2ee7c6){const _0x552aaa='elementStart'==_0x4bc159['type']?_0x2ee7c6['createPositionAt'](_0x4bc159['item'],0x0):_0x2ee7c6['createPositionAfter'](_0x4bc159['item']);return _0x2ee7c6['createPositionFromPath'](_0x260d7d,_0x552aaa['path'],_0x552aaa['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x439dbd,_0x22fda1){super(_0x439dbd),this['focusTracker']=new _0x59373c(),this['keystrokes']=new _0x554dc6(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x22fda1),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x1e5aaa(this);}['render'](){super['render'](),_0x1574ed({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x589766=_0x53b6c2=>_0x53b6c2['stopPropagation']();this['keystrokes']['set']('arrowright',_0x589766),this['keystrokes']['set']('arrowleft',_0x589766),this['keystrokes']['set']('arrowup',_0x589766),this['keystrokes']['set']('arrowdown',_0x589766);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x2edf63){this['revisionNameInputView']['fieldView']['element']['value']=_0x2edf63['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x190c08){const _0x400f34=new _0x396cf7(this['locale'],_0x2bcaae),_0x8b0966=_0x400f34['fieldView'];_0x8b0966['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x2020df=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x190c08&&(_0x2020df+='\x20('+g(this['locale'],'optional')+')'),(_0x400f34['label']=_0x2020df,_0x8b0966['on']('input',()=>{this['revisionNameInputValue']=_0x8b0966['element']['value']['trim']();}),_0x400f34);}}class f extends _0x211636{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x2f17c5=this['editor'],_0x4a9fa4=_0x2f17c5['plugins']['get']('RevisionTracker');_0x2f17c5['ui']['componentFactory']['add']('revisionHistory',_0x5b2b40=>{const _0x114f74=_0x93f8f9(_0x5b2b40),_0x2bd65f=_0x114f74['panelView']['children'],_0x2f9adf=new _0x8ce643(_0x5b2b40),_0x46318d=new _0x283216(_0x5b2b40),_0x29d30c=new te(_0x5b2b40),_0x4cc084=new _0x283216(_0x5b2b40),_0x42bc25=new te(_0x5b2b40);return _0x114f74['bind']('isEnabled')['to'](_0x4a9fa4,'isReady',_0x4a9fa4,'isEnabled',_0x2f17c5,'isReadOnly',(_0x311919,_0x9ea671,_0x176e2a)=>_0x311919&&_0x9ea671&&!_0x176e2a),_0x114f74['buttonView']['set']({'icon':_0x1d1a96,'label':g(_0x5b2b40,'Revision\x20history'),'tooltip':!0x0}),_0x29d30c['set']({'label':g(_0x5b2b40,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x29d30c['bind']('isEnabled')['to'](_0x4a9fa4,'isReady',_0x4a9fa4,'isEnabled',_0x2f17c5,'isReadOnly',(_0x383710,_0x30d194,_0x4c5b61)=>_0x383710&&_0x30d194&&!_0x4c5b61),_0x29d30c['on']('execute',()=>this['_showDialog']()),_0x42bc25['set']({'label':g(_0x5b2b40,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x42bc25['bind']('isEnabled')['to'](_0x4a9fa4,'isReady',_0x2f17c5,'isReadOnly',(_0x182a3a,_0x3b64b1)=>_0x182a3a&&!_0x3b64b1),_0x42bc25['on']('execute',()=>{_0x2f17c5['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x114f74['isOpen']=!0x1,_0x2f17c5['editing']['view']['focus']();}),_0x46318d['children']['add'](_0x29d30c),_0x4cc084['children']['add'](_0x42bc25),_0x2f9adf['role']='menu',_0x2f9adf['items']['addMany']([_0x46318d,_0x4cc084]),_0x2bd65f['add'](_0x2f9adf),_0x114f74;}),_0x2f17c5['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0xdbd51e=this['editor'],_0x4cfecc=_0xdbd51e['locale'],_0x20e2ea=new _0x40e71a(_0x4cfecc),_0x1ab73a=new _0x464d38(_0x4cfecc);_0x20e2ea['buttonView']['set']({'icon':_0x1d1a96,'label':g(_0x4cfecc,'Revision\x20history')});const _0x5de14d=new _0x12d4bc(_0x4cfecc,_0x20e2ea),_0x56f97b=new _0x17c827(_0x4cfecc);_0x56f97b['set']({'label':g(_0x4cfecc,'Save\x20current\x20revision')}),_0x56f97b['delegate']('execute')['to'](_0x20e2ea),_0x56f97b['on']('execute',()=>{this['_showDialog']();}),_0x5de14d['children']['add'](_0x56f97b),_0x1ab73a['items']['add'](_0x5de14d);const _0x48e70e=new _0x12d4bc(_0x4cfecc,_0x20e2ea),_0x475283=new _0x17c827(_0x4cfecc);return _0x475283['set']({'label':g(_0x4cfecc,'Open\x20revision\x20history')}),_0x475283['delegate']('execute')['to'](_0x20e2ea),_0x475283['on']('execute',()=>{_0xdbd51e['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x48e70e['children']['add'](_0x475283),_0x1ab73a['items']['add'](_0x48e70e),_0x20e2ea['panelView']['children']['add'](_0x1ab73a),_0x20e2ea;}['_showDialog'](){const _0x447192=this['editor'],_0xc6877a=_0x447192['locale'],_0x60f2fb=_0x447192['plugins']['get']('Dialog'),_0x3c4dc2=_0x447192['plugins']['get']('RevisionTracker');function _0xdefde4(_0x131fd0){_0x447192['config']['get']('revisionHistory.requireRevisionName')&&''===_0x131fd0['revisionName']?_0x131fd0['revisionNameInputView']['errorText']=g(_0xc6877a,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x447192['plugins']['get'](u)['saveRevision']({'name':_0x131fd0['revisionName']}),_0x60f2fb['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0xdefde4(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x60f2fb['show']({'id':'revisionSave','title':g(_0xc6877a,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x447192['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x60f2fb['hide']()},{'label':g(_0x447192['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x444432){_0x444432['bind']('isEnabled')['to'](_0x3c4dc2,'isReady',_0x3c4dc2,'isEnabled',_0x447192,'isReadOnly',(_0x1bc91c,_0x441153,_0x230895)=>_0x1bc91c&&_0x441153&&!_0x230895);},'onExecute':()=>_0xdefde4(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x59d8d8=this['editor'],_0x25dce8=_0x59d8d8['locale'];this['_saveRevisionFormView']=new hs(_0x25dce8,_0x59d8d8['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends ts{['changeId'];['_model'];constructor(_0x5bfd37,_0x38b4d2){super(_0x5bfd37),this['_model']=_0x38b4d2,this['changeId']=_0x38b4d2['id'];const _0x2d1500=this['bindTemplate'],_0x54f4c4=g(_0x5bfd37,_0x38b4d2['data']['isSuggestion']?'Suggested\x20by':'add'==_0x38b4d2['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x38b4d2['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x2d1500['to']('type',_0x29def5=>'ck-revision-change__'+_0x29def5)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x54f4c4}]},{'text':'\x20'+_0x38b4d2['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x543dbd(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0xf2c5ff){super(),this['id']=_0xf2c5ff['id']||_0x2135da(),this['author']=_0xf2c5ff['author'],this['type']=_0xf2c5ff['type'],this['data']=_0xf2c5ff['data']||{},this['rootName']=_0xf2c5ff['rootName'],this['set']('createdAt',_0xf2c5ff['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class c{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x2fea59,_0x3f9ae4){this['newRevisionId']=_0x2fea59,this['oldRevisionId']=_0x3f9ae4,this['changes']=new _0x284c5d();}['_setChanges'](_0x117217){for(const _0x38de3a of _0x117217)this['changes']['add'](_0x38de3a);}}class m extends _0x211636{['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[_0x50a466,_0x172aea,I,V];}constructor(_0x725fdd){super(_0x725fdd),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',(_0x362940,_0x8923c8,_0x5d9e3a)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x24a264=>{for(const _0x4cab25 of this['editor']['editing']['view']['document']['roots'])_0x5d9e3a?_0x24a264['removeClass']('ck-editor__editable__overlay',_0x4cab25):_0x24a264['addClass']('ck-editor__editable__overlay',_0x4cab25);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x3b8ae2=>null!==_0x3b8ae2),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x346edd,_0x2f5f87,_0xef48f0)=>_0x346edd&&_0xef48f0?_0x2f5f87['changes']['getIndex'](_0xef48f0):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x21b922,_0x4baa29)=>_0x21b922?_0x4baa29['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x172aea);}['init'](){const _0x4db718=this['editor'],_0x4ef377=new wt(_0x4db718,{'direction':'backward'}),_0x16cd38=new wt(_0x4db718,{'direction':'forward'});(_0x4db718['commands']['add']('showPreviousChange',_0x4ef377),_0x4db718['commands']['add']('showNextChange',_0x16cd38),_0x4db718['commands']['add']('restoreRevision',new mt(_0x4db718)),this['on']('change:numberOfChanges',()=>{_0x4ef377['refresh'](),_0x16cd38['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x4db718['enableReadOnlyMode']('revision-viewer'),_0x4db718['plugins']['has']('WidgetToolbarRepository'))&&_0x4db718['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x1f6530){return await this['_utils']['loadRevisionData'](_0x1f6530,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x1f6530);}async['getRevisionRootsAttributes'](_0x811d90){return await this['_utils']['loadRevisionData'](_0x811d90,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x811d90);}async['compare'](_0x475caf,_0x2054b5,_0x554553=!0x1){if(!this['isEnabled'])return;const _0x65843f=this['diff'],_0x37c748=this['repository'],_0x33f00e='string'==typeof _0x475caf?_0x37c748['getRevision'](_0x475caf):_0x475caf,_0x4dc6f6='string'==typeof _0x2054b5?_0x37c748['getRevision'](_0x2054b5):_0x2054b5,_0x18762a=_0x33f00e['id'],_0x2daad7=_0x4dc6f6?_0x4dc6f6['id']:null;if(!_0x554553&&this['diff']&&this['diff']['newRevisionId']===_0x18762a&&this['diff']['oldRevisionId']===_0x2daad7)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x18762a,_0x2daad7);const _0x5b6199=this['_getRevisionsRange'](_0x33f00e,_0x4dc6f6,!0x0)['map'](_0x350887=>this['_utils']['loadRevisionData'](_0x350887,this['adapter']));return _0x5b6199['push'](new Promise(_0x77c36c=>{setTimeout(_0x77c36c,0x14);})),Promise['all'](_0x5b6199)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x269494=this['_getDiff'](_0x18762a,_0x2daad7);for(const _0x2ef84d of _0x269494['changes'])this['_changeIdToChange']['set'](_0x2ef84d['id'],_0x2ef84d);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x3d5b0e=>{for(const _0x5675fd of this['editor']['model']['document']['getRootNames']())_0x3d5b0e['detachRoot'](_0x5675fd);for(const _0x39a2d8 of Object['keys'](_0x269494['model'])){const _0x274be6=_0x3d5b0e['addRoot'](_0x39a2d8);for(const _0x4f8f2a of Object['keys'](_0x269494['attributes'][_0x39a2d8]))_0x3d5b0e['setAttribute'](_0x4f8f2a,_0x269494['attributes'][_0x39a2d8][_0x4f8f2a],_0x274be6);_0x3d5b0e['insert'](_0x269494['model'][_0x39a2d8],_0x274be6,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x269494['changes'])),this['isReady']=!0x0;})['catch'](_0x130b98=>{console['error'](_0x130b98),this['_cleanUp'](),_0x65843f&&(this['diff']=_0x65843f),this['isReady']=!0x0;});}['addRevisionData'](_0x22d6b2,_0x373600){const _0x3a5f98=this['repository']['createRevision'](_0x22d6b2);return _0x3a5f98['on']('_update',(_0x3dfded,_0x198bf6,_0x2d0d54)=>_0x373600(_0x198bf6,_0x2d0d54,_0x3a5f98)),this['repository']['addRevision'](_0x3a5f98),_0x3a5f98;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x4fe3be=>{for(const _0x282e72 of this['editor']['model']['document']['getRootNames']())_0x4fe3be['detachRoot'](_0x282e72);});}['_sortAndFilterDiffChanges'](_0x57dc91){const _0x365aa0=[],_0x1d2f6a=new Map();for(const _0x4f640a of this['editor']['model']['document']['getRootNames']()){const _0x14959c=this['editor']['editing']['view']['getDomRoot'](_0x4f640a);if(!_0x14959c)continue;const _0xdfacd2=_0x14959c['getClientRects']()['item'](0x0);_0xdfacd2&&(_0x365aa0['push'](_0x4f640a),_0x1d2f6a['set'](_0x4f640a,_0xdfacd2));}return _0x365aa0['sort']((_0x4c415f,_0xda3ae5)=>{const _0x18007c=_0x1d2f6a['get'](_0x4c415f),_0xe3fa41=_0x1d2f6a['get'](_0xda3ae5);return _0x18007c['y']-_0xe3fa41['y']||_0x18007c['x']-_0xe3fa41['x'];}),(_0x57dc91=_0x57dc91['filter'](_0x88ebed=>_0x365aa0['includes'](_0x88ebed['rootName'])))['sort']((_0x254d71,_0x1d4255)=>_0x365aa0['indexOf'](_0x254d71['rootName'])-_0x365aa0['indexOf'](_0x1d4255['rootName'])),_0x57dc91;}['_makeTape'](_0x319d77){const _0x52cb5d=Array['from'](_0x319d77['markers'])['filter'](([_0x5b306f,_0x29cf00])=>_0x5b306f['startsWith']('revision:')&&!_0x29cf00['isCollapsed']),_0x11a75a=Array['from'](this['editor']['model']['createRangeIn'](_0x319d77)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x52cb5d['length'])for(const _0x3af206 of _0x11a75a){const [_0x393851,_0x3a8d11]=_0x52cb5d[0x0],[,_0x57c377,_0x72dac9]=_0x393851['split'](':');if(_0x3a8d11['end']['isEqual'](_0x3af206['nextPosition'])&&_0x52cb5d['shift'](),(_0x3af206['previousPosition']['isEqual'](_0x3a8d11['start'])||_0x3af206['previousPosition']['isAfter'](_0x3a8d11['start']))&&('insertion'==_0x57c377?_0x3af206['isAdded']={'userId':_0x72dac9}:'deletion'==_0x57c377&&(_0x3af206['isRemoved']={'userId':_0x72dac9})),0x0==_0x52cb5d['length'])break;}return _0x11a75a;}['_refreshStartEndIndex'](_0x518038){const _0x3a0a7f=new Map();for(let _0x273d3d=0x0;_0x273d3d<_0x518038['length'];_0x273d3d++)'text'===_0x518038[_0x273d3d]['type']?(_0x518038[_0x273d3d]['item']['startIndex']=_0x273d3d,_0x518038[_0x273d3d]['item']['endIndex']=_0x273d3d):('elementStart'===_0x518038[_0x273d3d]['type']?_0x518038[_0x273d3d]['item']['startIndex']=_0x273d3d:'elementEnd'===_0x518038[_0x273d3d]['type']&&(_0x518038[_0x273d3d]['item']['endIndex']=_0x273d3d),_0x3a0a7f['set'](_0x518038[_0x273d3d]['id'],_0x273d3d));for(const _0xdb7344 of _0x3a0a7f['values']())'elementStart'===_0x518038[_0xdb7344]['type']?_0x518038[_0xdb7344]['item']['endIndex']=_0x3a0a7f['get'](_0x518038[_0xdb7344]['pairId']):'elementEnd'===_0x518038[_0xdb7344]['type']&&(_0x518038[_0xdb7344]['item']['startIndex']=_0x3a0a7f['get'](_0x518038[_0xdb7344]['pairId']));}['_processTape'](_0x2e59d3){for(let _0x33c17d=0x0;_0x33c17d<_0x2e59d3['length'];_0x33c17d++){if('elementStart'===_0x2e59d3[_0x33c17d]['type'])_0x2e59d3[_0x33c17d]['item']['startIndex']=_0x33c17d;else{if('elementEnd'===_0x2e59d3[_0x33c17d]['type']){_0x2e59d3[_0x33c17d]['item']['endIndex']=_0x33c17d;const _0x4d60fa=_0x2e59d3[_0x33c17d]['item']['startIndex'];_0x2e59d3[_0x4d60fa]['pairId']=_0x2e59d3[_0x33c17d]['id'],_0x2e59d3[_0x33c17d]['pairId']=_0x2e59d3[_0x4d60fa]['id'];}else _0x2e59d3[_0x33c17d]['item']['startIndex']=_0x33c17d,_0x2e59d3[_0x33c17d]['item']['endIndex']=_0x33c17d,_0x2e59d3[_0x33c17d]['pairId']=null;}_0x2e59d3[_0x33c17d]['markersStart']||(_0x2e59d3[_0x33c17d]['markersStart']=[],_0x2e59d3[_0x33c17d]['markersEnd']=[]);}}['_markInsertions'](_0x2975d8,_0x1b3ab4){const _0x239169=_0x2975d8['filter'](_0x22210e=>!_0x22210e['isAdded']);for(let _0x3bdbc3=0x0;_0x3bdbc3<_0x1b3ab4['length'];_0x3bdbc3++)_0x1b3ab4[_0x3bdbc3]['isAdded']&&(_0x239169[_0x3bdbc3]['isAdded']=_0x1b3ab4[_0x3bdbc3]['isAdded']);}['_getDiff'](_0x303dbf,_0xa28e61=null){const _0x361213=this['repository']['getRevision'](_0x303dbf),_0xe79568=_0xa28e61?this['repository']['getRevision'](_0xa28e61):null,_0x56570a=this['_getRevisionsRange'](_0x361213,_0xe79568),_0x588f4a=_0x56570a[_0x56570a['length']-0x1],_0x41dc1d=new Map(),_0x35fdfd={'model':{},'attributes':{},'changes':[]},_0x46fdcd=new Set(),_0x2465cd=new Map();for(let _0x3ded30=_0x56570a['length']-0x1;_0x3ded30>=0x0;_0x3ded30--){const _0x438cee=_0x56570a[_0x3ded30];for(const _0x41b71b of Object['keys'](_0x438cee['diffData']))if(_0x438cee['diffData'][_0x41b71b]['attachChange']){const _0x3cd604=_0x438cee['diffData'][_0x41b71b]['attachChange'];_0x3cd604['isAttached']?(_0x46fdcd['add'](_0x41b71b),_0x2465cd['has'](_0x41b71b)&&_0x2465cd['get'](_0x41b71b)['userId']==_0x3cd604['userId']?_0x2465cd['delete'](_0x41b71b):_0x2465cd['set'](_0x41b71b,_0x3cd604)):_0x2465cd['has'](_0x41b71b)?(_0x46fdcd['delete'](_0x41b71b),_0x2465cd['delete'](_0x41b71b)):(_0x46fdcd['add'](_0x41b71b),_0x2465cd['set'](_0x41b71b,_0x3cd604));}else _0x46fdcd['add'](_0x41b71b);}for(const _0x3e2186 of _0x46fdcd){const _0x281a72=_0x2465cd['has'](_0x3e2186)&&!_0x2465cd['get'](_0x3e2186)['isAttached'];let _0x1d2fd3=_0x281a72?_0x56570a['length']-0x1:0x0;const _0x595ce4=_0x281a72?-0x1:0x1;for(;_0x56570a[_0x1d2fd3];){const _0x109bb9=_0x56570a[_0x1d2fd3];if(_0x109bb9['diffData'][_0x3e2186]){const _0x243143=_0x281a72?_0x109bb9['diffData'][_0x3e2186]['attributesBefore']:_0x109bb9['diffData'][_0x3e2186]['attributesAfter'];_0x35fdfd['attributes'][_0x3e2186]=_0x243143?_0xcb7214(_0x243143):{};break;}_0x1d2fd3+=_0x595ce4;}}for(const _0x24eec3 of _0x56570a){_0x24eec3['model']={};for(const _0x316557 of _0x24eec3['authors'])_0x41dc1d['set'](_0x316557['id'],_0x316557);for(const _0x5bddc7 of _0x46fdcd){const _0x17a198=_0x24eec3['diffData'][_0x5bddc7]?_0x24eec3['diffData'][_0x5bddc7]['insertions']:'[]',_0x95ac5d=_0x24eec3['diffData'][_0x5bddc7]?_0x24eec3['diffData'][_0x5bddc7]['deletions']:'[]';_0x24eec3['model'][_0x5bddc7]={'insertions':this['_utils']['_makeModelFromViewString'](_0x17a198),'deletions':this['_utils']['_makeModelFromViewString'](_0x95ac5d)};}}for(const _0x494d46 of _0x46fdcd){let _0x1036a5=null,_0x544d50=0x0;const _0x11dfb6=new Map(Array['from'](_0x361213['model'][_0x494d46]['insertions']['markers'])['filter'](([_0x306dab])=>!_0x306dab['startsWith']('revision:')));let _0x51a446=0x0;for(const _0x130067 of _0x56570a){const _0x4445d9=this['_makeTape'](_0x130067['model'][_0x494d46]['insertions']);_0x130067==_0x361213?(_0x1036a5=_0x4445d9,_0x544d50=_0x1036a5['length'],_0x1036a5['forEach'](_0x38ca10=>{_0x38ca10['id']=_0x51a446++;}),this['_processTape'](_0x1036a5)):this['_markInsertions'](_0x1036a5,_0x4445d9);const _0x4d476c=_0x1036a5['filter'](_0x397810=>!_0x397810['isAdded'])['map'](_0x22ec9d=>_0x22ec9d['id']);let _0x3e3721=0x0;const _0x123141=this['_makeTape'](_0x130067['model'][_0x494d46]['deletions']);_0x123141['forEach'](_0x7133d9=>{_0x7133d9['isRemoved']?_0x7133d9['id']=_0x544d50++:_0x7133d9['id']=_0x4d476c[_0x3e3721++];}),this['_processTape'](_0x123141),this['_setDistance'](_0x1036a5,'isAdded'),this['_setDistance'](_0x123141,'isRemoved'),_0x130067==_0x361213&&this['_markMarkers'](_0x1036a5,_0x11dfb6),_0x1036a5=this['_joinTapes'](_0x1036a5,_0x123141),this['_refreshStartEndIndex'](_0x1036a5),this['_setDistance'](_0x1036a5,'isRemoved');}_0x1036a5=_0x1036a5['filter'](_0x259186=>!(_0x259186['isAdded']&&_0x259186['isRemoved']));const _0x1c85c4=new Map(_0x588f4a['model'][_0x494d46]['deletions']['markers']),_0x3cd570=new Set(_0x11dfb6['keys']());for(const _0x4e8f2 of _0x1c85c4['keys']())_0x3cd570['delete'](_0x4e8f2);this['_markSuggestions'](_0x1036a5,_0x3cd570),this['_fixObsoleteTags'](_0x1036a5),_0x1036a5=this['_removeMissingPairs'](_0x1036a5),_0x1036a5=this['_markMismatchedRemovedTags'](_0x1036a5),_0x1036a5=this['_removeUnsupportedChanges'](_0x1036a5);const {root:_0x202e6a,changes:_0x288532}=this['_makeModelFromTape'](_0x1036a5,_0x41dc1d,_0x494d46);_0x35fdfd['model'][_0x494d46]=_0x202e6a;const _0x140e95=_0x2465cd['get'](_0x494d46);if(_0x140e95){const _0x55218c=_0x41dc1d['get'](_0x140e95['userId']),_0x392e36=new r({'author':_0x55218c,'type':_0x140e95['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x494d46});_0x288532['unshift'](_0x392e36),_0x35fdfd['attributes'][_0x494d46]['revisionHistoryAttachChange']=_0x392e36['id'];}_0x35fdfd['changes']=_0x35fdfd['changes']['concat'](_0x288532);}return _0x35fdfd;}['_markMarkers'](_0x109b30,_0x72039e){for(let _0x3d7a54=0x0;_0x3d7a54<_0x109b30['length'];_0x3d7a54++)for(const [_0x2ba4df,_0x37ddd9]of _0x72039e)!_0x37ddd9['isCollapsed']&&_0x37ddd9['start']['isEqual'](_0x109b30[_0x3d7a54]['previousPosition'])&&_0x109b30[_0x3d7a54]['markersStart']['push'](_0x2ba4df),_0x37ddd9['end']['isEqual'](_0x109b30[_0x3d7a54]['nextPosition'])&&_0x109b30[_0x3d7a54]['markersEnd']['push'](_0x2ba4df);}['_joinTapes'](_0x75424f,_0x2bd1f7){let _0x3bf9e0=[],_0x5effdf=0x0,_0xc00dff=0x0;for(;_0x5effdf<_0x75424f['length']||_0xc00dff<_0x2bd1f7['length'];){const _0x57654a=_0x75424f[_0x5effdf]||{},_0x274d39=_0x2bd1f7[_0xc00dff]||{};if(_0x57654a['id']==_0x274d39['id'])_0x5effdf++,_0xc00dff++,_0x3bf9e0['push'](_0x57654a);else{if(_0x274d39['isRemoved']&&_0x57654a['isAdded']){const {commonTape:_0x4406ea,iEnd:_0x5cd874,jEnd:_0x3aead5}=this['_threeWayMerge'](_0x75424f,_0x5effdf,_0x2bd1f7,_0xc00dff);_0x3bf9e0=_0x3bf9e0['concat'](_0x4406ea),_0x5effdf=_0x5cd874,_0xc00dff=_0x3aead5;}else _0x274d39['isRemoved']?(_0xc00dff++,_0x3bf9e0['push'](_0x274d39)):(_0x5effdf++,_0x3bf9e0['push'](_0x57654a));}}return _0x3bf9e0;}['_markSuggestions'](_0x409455,_0x213da9){const _0x4037bb=[];for(let _0x3b531c=0x0;_0x3b531c<_0x409455['length'];_0x3b531c++){for(let _0x35a5cd=0x0;_0x35a5cd<_0x409455[_0x3b531c]['markersStart']['length'];_0x35a5cd++){const _0x23ca19=_0x409455[_0x3b531c]['markersStart'][_0x35a5cd];if(!_0x213da9['has'](_0x23ca19))continue;const {group:_0x4f0757,type:_0x499d3f,authorId:_0x9925f}=_0x525e16(_0x23ca19);'revision-suggestion'!=_0x4f0757||'insertion'!=_0x499d3f&&'deletion'!=_0x499d3f||(_0x4037bb['unshift']({'type':_0x499d3f,'name':_0x23ca19,'userId':_0x9925f}),_0x409455[_0x3b531c]['markersStart']['splice'](_0x35a5cd,0x1),_0x35a5cd--);}_0x46e464(_0x409455[_0x3b531c]);for(let _0xc50c28=0x0;_0xc50c28<_0x409455[_0x3b531c]['markersEnd']['length'];_0xc50c28++){const _0x231e1c=_0x409455[_0x3b531c]['markersEnd'][_0xc50c28];if(!_0x213da9['has'](_0x231e1c))continue;const {group:_0x206191,type:_0x221b95}=_0x525e16(_0x231e1c);if('revision-suggestion'!=_0x206191||'insertion'!=_0x221b95&&'deletion'!=_0x221b95)continue;_0x409455[_0x3b531c]['markersEnd']['splice'](_0xc50c28,0x1),_0xc50c28--;const _0xd59f8c=_0x4037bb['findIndex'](_0x4b5233=>_0x4b5233['name']==_0x231e1c);_0xd59f8c>-0x1&&_0x4037bb['splice'](_0xd59f8c,0x1);}}function _0x525e16(_0x353304){const _0x2e7b9c=_0x353304['split'](':');return{'group':_0x2e7b9c[0x0],'type':_0x2e7b9c[0x1],'subType':_0x2e7b9c['length']>=0x5?_0x2e7b9c[0x2]:null,'id':_0x2e7b9c['length']<0x5?_0x2e7b9c[0x2]:_0x2e7b9c[0x3],'authorId':_0x2e7b9c['length']<0x5?_0x2e7b9c[0x3]:_0x2e7b9c[0x4],'markerCount':0x6==_0x2e7b9c['length']?_0x2e7b9c[0x5]:null};}function _0x46e464(_0x1da70f){for(let _0x559cc3=0x0;_0x559cc3<_0x4037bb['length'];_0x559cc3++){if(_0x1da70f['isAdded']&&'insertion'==_0x4037bb[_0x559cc3]['type']&&_0x1da70f['isAdded']['userId']==_0x4037bb[_0x559cc3]['userId'])return _0x1da70f['isAddSuggestion']=_0x4037bb[_0x559cc3],void delete _0x1da70f['isAdded'];if(!_0x1da70f['isAdded']&&!_0x1da70f['isRemoved']&&'deletion'==_0x4037bb[_0x559cc3]['type'])return void(_0x1da70f['isRemoveSuggestion']=_0x4037bb[_0x559cc3]);}}}['_setDistance'](_0x1cbd0d,_0x5887c5){let _0x8ed2e6=0x0,_0x448fdc=!0x1;const _0x3e12d9=new Map();for(const _0x9c6c84 of _0x1cbd0d)_0x9c6c84[_0x5887c5]?_0x448fdc&&(_0x8ed2e6++,_0x448fdc=!0x1):(_0x8ed2e6++,_0x448fdc=!0x0),_0x3e12d9['set'](_0x9c6c84['id'],_0x8ed2e6);for(let _0x5106a2=0x0;_0x5106a2<_0x1cbd0d['length'];_0x5106a2++){if('isRemoved'==_0x5887c5&&_0x1cbd0d[_0x5106a2]['isAdded']||'isAdded'==_0x5887c5&&_0x1cbd0d[_0x5106a2]['isRemoved'])continue;if('text'==_0x1cbd0d[_0x5106a2]['type']){_0x1cbd0d[_0x5106a2]['distance']=0x0;continue;}const _0x167836=_0x3e12d9['get'](_0x1cbd0d[_0x5106a2]['pairId']),_0x30ac8f=_0x3e12d9['get'](_0x1cbd0d[_0x5106a2]['id']);_0x1cbd0d[_0x5106a2]['distance']=_0x167836-_0x30ac8f;}}['_getRevisionsRange'](_0x1bcdc5,_0x29a5cb,_0x55f7c9=!0x1){const _0x8e6eca=[];let _0x184690=this['repository']['getIndex'](_0x1bcdc5),_0x5bd49d=this['repository']['getIndex'](_0x29a5cb);for(-0x1==_0x5bd49d&&(_0x5bd49d=this['repository']['_revisions']['length'],_0x55f7c9=!0x1);_0x184690<_0x5bd49d;)_0x8e6eca['push'](this['repository']['getRevision'](_0x184690)),_0x184690++;return _0x55f7c9&&_0x8e6eca['push'](this['repository']['getRevision'](_0x184690)),_0x8e6eca;}['_threeWayMerge'](_0x21958e,_0x8f97a4,_0x52402e,_0x25dfd7){const _0x4976bc=this['editor']['model']['schema'];let _0x1ab471=_0x8f97a4;for(;_0x21958e[_0x1ab471]&&_0x21958e[_0x1ab471]['isAdded'];)_0x1ab471++;let _0x3c7529=_0x25dfd7;for(;_0x52402e[_0x3c7529]&&_0x52402e[_0x3c7529]['isRemoved'];)_0x3c7529++;_0x3c6ccc(_0x21958e,_0x8f97a4,_0x1ab471),_0x3c6ccc(_0x52402e,_0x25dfd7,_0x3c7529);const _0x156c53=_0x52402e['slice'](_0x25dfd7,_0x3c7529)['concat'](_0x21958e['slice'](_0x8f97a4,_0x1ab471));return _0x156c53['sort']((_0x166022,_0x64a4ba)=>_0x166022['side']!=_0x64a4ba['side']?_0x166022['side']-_0x64a4ba['side']:_0x166022['level']!=_0x64a4ba['level']?_0x166022['level']-_0x64a4ba['level']:_0x166022['distance']!=_0x64a4ba['distance']?_0x64a4ba['distance']-_0x166022['distance']:!!_0x166022['isAdded']!=!!_0x64a4ba['isAdded']?-0x1==_0x166022['side']||0x0==_0x166022['side']?_0x166022['isAdded']?-0x1:0x1:_0x166022['isAdded']?0x1:-0x1:_0x166022['index']-_0x64a4ba['index']),{'commonTape':_0x156c53,'iEnd':_0x1ab471,'jEnd':_0x3c7529};function _0x3c6ccc(_0x3ca28b,_0x403f88,_0x8815){let _0x3a1309=-0x1,_0x54c7ed=Number['POSITIVE_INFINITY'],_0x3d53e6=!0x0;for(let _0x3dda5c=_0x403f88;_0x3dda5c<_0x8815;_0x3dda5c++)if(_0x4976bc['isInline'](_0x3ca28b[_0x3dda5c]['item'])||(_0x3d53e6=!0x1),_0x3ca28b[_0x3dda5c]['item']['startIndex']<_0x403f88&&(_0x3a1309=_0x3dda5c),_0x3ca28b[_0x3dda5c]['item']['endIndex']>=_0x8815){_0x54c7ed=_0x3dda5c;break;}_0x3d53e6&&(_0x3a1309=_0x8815-0x1);for(let _0x3b344f=_0x403f88;_0x3b344f<_0x8815;_0x3b344f++)_0x3ca28b[_0x3b344f]['side']=_0x3b344f<=_0x3a1309?-0x1:_0x3b344f<_0x54c7ed?0x0:0x1,_0x3ca28b[_0x3b344f]['index']=_0x3b344f;let _0x1bbf30=0x0;for(let _0x411b9b=_0x403f88;_0x411b9b<=_0x3a1309;_0x411b9b++)0x0==_0x3ca28b[_0x411b9b]['distance']?_0x3ca28b[_0x411b9b]['level']=_0x1bbf30:(_0x1bbf30++,_0x3ca28b[_0x411b9b]['level']=_0x1bbf30,_0x1bbf30++);for(let _0x36e554=_0x403f88;_0x36e554<_0x8815;_0x36e554++)0x0==_0x3ca28b[_0x36e554]['side']&&(_0x3ca28b[_0x36e554]['level']=_0x1bbf30);_0x1bbf30=0x0;for(let _0x1c01f6=_0x8815-0x1;_0x1c01f6>=_0x54c7ed;_0x1c01f6--)0x0==_0x3ca28b[_0x1c01f6]['distance']?_0x3ca28b[_0x1c01f6]['level']=_0x1bbf30:(_0x1bbf30--,_0x3ca28b[_0x1c01f6]['level']=_0x1bbf30,_0x1bbf30--);}}['_fixObsoleteTags'](_0x5ab00d){const _0x37a0fc=new Map(),_0x5eef1f=this['editor']['model']['schema'];for(let _0x20efef=0x1;_0x20efef<_0x5ab00d['length'];_0x20efef++){let _0x4e4409,_0xec907f,_0x208886;const _0x2b97d0=_0x5ab00d[_0x20efef],_0x3b7c09=_0x5ab00d[_0x20efef-0x1];if('text'==_0x2b97d0['type'])continue;if(_0x2b97d0['type']!=_0x3b7c09['type'])continue;if(!_0x5eef1f['isBlock'](_0x3b7c09['item'])||_0x5eef1f['isLimit'](_0x3b7c09['item']))continue;if(!_0x5eef1f['isBlock'](_0x2b97d0['item'])||_0x5eef1f['isLimit'](_0x2b97d0['item']))continue;if((_0x5ab00d[_0x20efef]['isAdded']||_0x5ab00d[_0x20efef]['isAddSuggestion'])&&_0x5ab00d[_0x20efef-0x1]['isRemoved'])_0x4e4409=_0x5ab00d[_0x20efef],_0xec907f=_0x5ab00d[_0x20efef-0x1],_0x208886=_0x20efef-0x1;else{if(!_0x5ab00d[_0x20efef]['isRemoved']||!_0x5ab00d[_0x20efef-0x1]['isAdded']&&!_0x5ab00d[_0x20efef-0x1]['isAddSuggestion'])continue;_0x4e4409=_0x5ab00d[_0x20efef-0x1],_0xec907f=_0x5ab00d[_0x20efef],_0x208886=_0x20efef;}const _0x501509=_0x4e4409['level']==_0xec907f['level'],_0x393510=Math['abs'](_0x4e4409['level'])<Math['abs'](_0xec907f['level'])&&0x0==_0xec907f['distance'];(_0x501509||_0x393510)&&(_0x37a0fc['set'](_0xec907f['id'],_0x4e4409['id']),_0x5ab00d['splice'](_0x208886,0x1),_0x20efef--,_0x4e4409['isAdded']=!0x1);}for(let _0x29b45b=0x0;_0x29b45b<_0x5ab00d['length'];_0x29b45b++)_0x37a0fc['has'](_0x5ab00d[_0x29b45b]['pairId'])&&(_0x5ab00d[_0x29b45b]['pairId']=_0x37a0fc['get'](_0x5ab00d[_0x29b45b]['pairId']));}['_removeMissingPairs'](_0x1d0f23){const _0x351582=new Set(_0x1d0f23['map'](_0x3049bd=>_0x3049bd['id']));for(let _0x323aa8=0x0;_0x323aa8<_0x1d0f23['length'];_0x323aa8++)_0x351582['has'](_0x1d0f23[_0x323aa8]['pairId'])||0x0==_0x1d0f23[_0x323aa8]['distance']||(_0x1d0f23[_0x323aa8]['isIncorrect']=!0x0);return _0x1d0f23['filter'](_0x46eb2d=>!_0x46eb2d['isIncorrect']);}['_markMismatchedRemovedTags'](_0x57a474){const _0x41d87d=new Set();for(let _0x5a6f38=0x0;_0x5a6f38<_0x57a474['length'];_0x5a6f38++){if(_0x41d87d['has'](_0x57a474[_0x5a6f38]['id'])&&_0x57a474[_0x5a6f38]['isRemoved']&&(_0x57a474[_0x5a6f38]['isIncorrect']=!0x0),_0x57a474[_0x5a6f38]['isIncorrect'])continue;if(0x0==_0x57a474[_0x5a6f38]['distance'])continue;if('elementStart'!=_0x57a474[_0x5a6f38]['type'])continue;if(null==_0x57a474[_0x5a6f38]['pairId'])continue;let _0x10f3c5=_0x5a6f38+0x1,_0xa8570b=0x0;for(;_0x57a474[_0x10f3c5]['id']!=_0x57a474[_0x5a6f38]['pairId'];)'elementStart'==_0x57a474[_0x10f3c5]['type']?_0xa8570b++:'elementEnd'==_0x57a474[_0x10f3c5]['type']&&_0xa8570b--,_0x10f3c5++;if(0x0!=_0xa8570b){if(_0x57a474[_0x5a6f38]['isRemoved'])_0x57a474[_0x5a6f38]['isIncorrect']=!0x0;else{for(;_0x10f3c5!=_0x5a6f38;)_0x57a474[_0x10f3c5]['isRemoved']&&0x0!=_0x57a474[_0x10f3c5]['distance']&&(_0x57a474[_0x10f3c5]['isIncorrect']=!0x0,_0x41d87d['add'](_0x57a474[_0x10f3c5]['pairId'])),_0x10f3c5--;}}}return _0x57a474['filter'](_0x6b6a29=>!_0x6b6a29['isIncorrect']);}['_removeUnsupportedChanges'](_0x2ac43c){const _0x1fee9e=this['editor']['model']['schema'];for(let _0x1c41e8=0x0;_0x1c41e8<_0x2ac43c['length'];_0x1c41e8++){if(!(_0x2ac43c[_0x1c41e8]['isAdded']||_0x2ac43c[_0x1c41e8]['isAddSuggestion']||_0x2ac43c[_0x1c41e8]['isRemoved']||_0x2ac43c[_0x1c41e8]['isRemoveSuggestion']))continue;if(0x0==_0x2ac43c[_0x1c41e8]['distance'])continue;const _0x4bb94f=_0x2ac43c[_0x1c41e8]['item'];_0x1fee9e['isBlock'](_0x4bb94f)||_0x1fee9e['isLimit'](_0x4bb94f)||(_0x2ac43c[_0x1c41e8]['isAdded']&&delete _0x2ac43c[_0x1c41e8]['isAdded'],_0x2ac43c[_0x1c41e8]['isAddSuggestion']&&delete _0x2ac43c[_0x1c41e8]['isAddSuggestion'],_0x2ac43c[_0x1c41e8]['isRemoveSuggestion']&&delete _0x2ac43c[_0x1c41e8]['isRemoveSuggestion'],_0x2ac43c[_0x1c41e8]['isRemoved']&&(_0x2ac43c[_0x1c41e8]['isIncorrect']=!0x0));}return _0x2ac43c['filter'](_0x17b93e=>!_0x17b93e['isIncorrect']);}['_makeModelFromTape'](_0x14d023,_0x527ae3,_0x315ad9){const _0x3cdbe1=new vt(),_0x531c15=[],_0x216794=new Map(),_0x3b4149=this['editor']['model'],_0x504ab4=_0x3b4149['schema'],_0x537648=[_0x3cdbe1],_0x302156={},_0x584b3d={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x50f7f4=null;const _0x4bcc3d=[0x0];for(let _0x4265eb=0x0;_0x4265eb<_0x14d023['length'];_0x4265eb++)if('elementStart'===_0x14d023[_0x4265eb]['type']){_0x14d023[_0x4265eb]['previousPosition']=_0x3b4149['createPositionFromPath'](_0x3cdbe1,_0x4bcc3d);const _0x38ef1c=new ut(_0x14d023[_0x4265eb]['item']['name'],_0x14d023[_0x4265eb]['item']['getAttributes']());_0x537648[0x0]['_appendChild'](_0x38ef1c),_0x4bcc3d['push'](0x0),_0x537648['unshift'](_0x38ef1c),_0x14d023[_0x4265eb]['nextPosition']=_0x3b4149['createPositionFromPath'](_0x3cdbe1,_0x4bcc3d);}else'elementEnd'===_0x14d023[_0x4265eb]['type']?(_0x537648['shift'](),_0x14d023[_0x4265eb]['previousPosition']=_0x3b4149['createPositionFromPath'](_0x3cdbe1,_0x4bcc3d),_0x4bcc3d['pop'](),_0x4bcc3d[_0x4bcc3d['length']-0x1]++,_0x14d023[_0x4265eb]['nextPosition']=_0x3b4149['createPositionFromPath'](_0x3cdbe1,_0x4bcc3d)):(_0x14d023[_0x4265eb]['previousPosition']=_0x3b4149['createPositionFromPath'](_0x3cdbe1,_0x4bcc3d),_0x50f7f4?_0x50f7f4['_data']+=_0x14d023[_0x4265eb]['item']['data']:_0x50f7f4=new gt(_0x14d023[_0x4265eb]['item']['data'],_0x14d023[_0x4265eb]['item']['getAttributes']()),_0x14d023[_0x4265eb+0x1]&&'text'===_0x14d023[_0x4265eb+0x1]['type']&&_0x2610e2(_0x50f7f4,_0x14d023[_0x4265eb+0x1]['item'])||(_0x537648[0x0]['_appendChild'](_0x50f7f4),_0x50f7f4=null),_0x4bcc3d[_0x4bcc3d['length']-0x1]+=_0x14d023[_0x4265eb]['item']['offsetSize'],_0x14d023[_0x4265eb]['nextPosition']=_0x3b4149['createPositionFromPath'](_0x3cdbe1,_0x4bcc3d));for(let _0x1cd00c=0x0;_0x1cd00c<_0x14d023['length'];_0x1cd00c++){const _0x41bf3d=_0x14d023[_0x1cd00c]['previousPosition'],_0x1a4924=_0x14d023[_0x1cd00c]['nextPosition'];for(const _0x391f19 of _0x14d023[_0x1cd00c]['markersStart'])_0x216794['set'](_0x391f19,{'start':_0x41bf3d,'end':null});_0x3c7c02('isRemoveSuggestion',_0x1cd00c,_0x41bf3d,_0x1a4924),_0x3c7c02('isAddSuggestion',_0x1cd00c,_0x41bf3d,_0x1a4924),_0x3c7c02('isRemoved',_0x1cd00c,_0x41bf3d,_0x1a4924),_0x3c7c02('isAdded',_0x1cd00c,_0x41bf3d,_0x1a4924);for(const _0x418bbc of _0x14d023[_0x1cd00c]['markersEnd']){const _0x375e1a=_0x216794['get'](_0x418bbc);_0x375e1a?_0x375e1a['end']=_0x1a4924:_0x216794['set'](_0x418bbc,{'start':_0x1a4924,'end':_0x1a4924});}}for(const [_0xe77671,_0x42130e]of _0x216794){const _0x300e22=this['editor']['model']['createRange'](_0x42130e['start'],_0x42130e['end']);_0x3cdbe1['markers']['set'](_0xe77671,_0x300e22);}return _0x531c15['sort']((_0x4fee4f,_0x19bce0)=>{const _0x49385b=_0x3cdbe1['markers']['get']('revision:'+_0x4fee4f['id']),_0x4b1d01=_0x3cdbe1['markers']['get']('revision:'+_0x19bce0['id']);return _0x49385b['start']['isBefore'](_0x4b1d01['start'])?-0x1:_0x49385b['start']['isAfter'](_0x4b1d01['start'])?0x1:_0x49385b['end']['isBefore'](_0x4b1d01['end'])?-0x1:_0x49385b['end']['isAfter'](_0x4b1d01['end'])?0x1:'add'===_0x4fee4f['type']?-0x1:0x1;}),{'root':_0x3cdbe1,'changes':_0x531c15};function _0x3c7c02(_0x165a7e,_0x244646,_0xc5727e,_0x246a99){const _0x4ee3d2=!!_0x14d023[_0x244646][_0x165a7e],_0x22461f=_0x4ee3d2?_0x14d023[_0x244646][_0x165a7e]['userId']:null,_0x49097d=_0x244646===_0x14d023['length']-0x1,_0x6df1c3=_0x584b3d[_0x165a7e][0x0],_0x534b4f=_0x504ab4['isObject'](_0x14d023[_0x244646]['item']);!_0x302156[_0x165a7e]&&_0x4ee3d2?_0x302156[_0x165a7e]={'start':_0xc5727e,'tapeItem':_0x14d023[_0x244646],'userId':_0x22461f,'type':_0x165a7e}:_0x302156[_0x165a7e]&&!_0x4ee3d2?(_0x302156[_0x165a7e]['end']=_0xc5727e,_0xea50f0(_0x302156[_0x165a7e]),_0x302156[_0x165a7e]=null):_0x302156[_0x165a7e]&&_0x4ee3d2&&_0x302156[_0x165a7e]['userId']!==_0x22461f&&(_0x302156[_0x165a7e]['end']=_0xc5727e,_0x6df1c3&&_0x6df1c3['userId']===_0x302156[_0x165a7e]['userId']||_0xea50f0(_0x302156[_0x165a7e]),_0x302156[_0x165a7e]={'start':_0xc5727e,'tapeItem':_0x14d023[_0x244646],'userId':_0x22461f,'type':_0x165a7e}),_0x302156[_0x165a7e]&&_0x534b4f&&('elementStart'!==_0x14d023[_0x244646]['type']||_0x6df1c3&&_0x6df1c3['userId']===_0x22461f||_0x584b3d[_0x165a7e]['unshift']({'userId':_0x22461f,'object':_0x14d023[_0x244646]['item'],'change':_0x302156[_0x165a7e]}),'elementEnd'===_0x14d023[_0x244646]['type']&&_0x6df1c3&&_0x6df1c3['object']===_0x14d023[_0x244646]['item']&&(_0x584b3d[_0x165a7e]['shift'](),_0x302156[_0x165a7e]=_0x6df1c3['change'])),_0x302156[_0x165a7e]&&_0x49097d&&(_0x302156[_0x165a7e]['end']=_0x246a99,_0xea50f0(_0x302156[_0x165a7e]),_0x302156[_0x165a7e]=null);}function _0xea50f0({start:_0x1b7b46,end:_0x3b80d0,tapeItem:_0x27a000,userId:_0x242d12,type:_0x49ff44}){const _0x4545c1=_0x27a000['item'],_0x523008=_0x3b4149['schema']['isBlock'](_0x4545c1)&&!_0x3b4149['schema']['isLimit'](_0x4545c1),_0x4ca7dd=_0x1b7b46['nodeAfter']==_0x3b80d0['parent']&&_0x3b80d0['isAtStart'];if(_0x523008&&_0x4ca7dd)return;const _0x32d7e0=_0x3b4149['createRange'](_0x1b7b46,_0x3b80d0),_0x4d31ae=_0x527ae3['get'](_0x242d12),_0x305238=new r({'author':_0x4d31ae,'type':'isAdded'==_0x49ff44||'isAddSuggestion'==_0x49ff44?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x49ff44||'isRemoveSuggestion'==_0x49ff44},'createdAt':new Date(),'rootName':_0x315ad9});_0x531c15['push'](_0x305238),_0x3cdbe1['markers']['set']('revision:'+_0x305238['id'],_0x32d7e0);}function _0x2610e2(_0x441d8c,_0x375569){const _0x5d5f82=_0x441d8c['getAttributes'](),_0x541e0e=_0x375569['getAttributes']();for(const _0x2358b1 of _0x5d5f82){if(_0x2358b1[0x1]!==_0x375569['getAttribute'](_0x2358b1[0x0]))return!0x1;_0x541e0e['next']();}return _0x541e0e['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x533a40=>{const _0x140888=_0x533a40['markerName']['split'](':')[0x1],_0x444647=this['_getChangeFromId'](_0x140888);if(!_0x444647)return null;const _0x45f810='add'==_0x444647['type']?'insertion':'deletion',_0x4f1011=['ck-suggestion-marker','ck-suggestion-marker-'+_0x45f810];return _0x444647['data']['isSuggestion']&&_0x4f1011['push']('ck-suggestion-marker-'+_0x45f810+'-new'),this['activeChange']==_0x444647&&_0x4f1011['push']('ck-suggestion-marker--active'),{'classes':_0x4f1011,'attributes':{'data-change-id':_0x140888}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x5bc394=>{_0x5bc394['on']('element:pre',(_0x344d29,_0x222038,_0x57ca35)=>{const _0x575069=_0x222038['viewItem']['getChild'](0x0);if(!_0x575069||!_0x575069['is']('element','code'))return;if(!_0x57ca35['consumable']['consume'](_0x575069,{'attributes':['vid_start','vid_end']}))return;const _0x3a2c98=_0x222038['modelRange']['start']['nodeAfter'];_0x57ca35['writer']['setAttribute']('vid_start',_0x575069['getAttribute']('vid_start'),_0x3a2c98),_0x57ca35['writer']['setAttribute']('vid_end',_0x575069['getAttribute']('vid_end'),_0x3a2c98);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x4cdb0a=>{_0x4cdb0a['on']('element',(_0x10363b,_0x52d2d2,_0x3fb236)=>{if(!_0x3fb236['consumable']['consume'](_0x52d2d2['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x52d2d2['modelRange']['isCollapsed'])return;const _0x515624=_0x52d2d2['modelRange']['start']['nodeAfter'];_0x515624['hasAttribute']('vid_start')||_0x515624['hasAttribute']('vid')||(_0x3fb236['writer']['setAttribute']('vid_start',_0x52d2d2['viewItem']['getAttribute']('vid_start'),_0x515624),_0x3fb236['writer']['setAttribute']('vid_end',_0x52d2d2['viewItem']['getAttribute']('vid_end'),_0x515624));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0xcacc3b=>_0xcacc3b['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x3e3370,[,_0xdd6578])=>{['vid_start','vid_end','vid']['includes'](_0xdd6578)&&(_0x3e3370['return']=!0x0,_0x3e3370['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x24f9d1=>{_0x24f9d1['on']('attribute:vid',(_0x12a0af,_0x5e367c,_0x310fce)=>{if('\x20'!=_0x5e367c['item']['data']||_0x5e367c['item']['parent']['maxOffset']>0x1)return;if(!_0x310fce['consumable']['consume'](_0x5e367c['item'],_0x12a0af['name']))return;const _0x382578=_0x310fce['writer'],_0x46fe27=_0x310fce['mapper']['toViewRange'](_0x5e367c['range']);_0x382578['wrap'](_0x46fe27,_0x382578['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x667dd4){const _0x40c214=_0x667dd4['plugins']['get']('RevisionViewer');return(_0xab2de5,_0x4940d8,_0x43c0de)=>{const _0x35cfb6=_0x4940d8['markerName']['split'](':')[0x1],_0x23d25a=_0x40c214['_getChangeFromId'](_0x35cfb6);if(!_0x23d25a)return null;const _0x653f1a='add'==_0x23d25a['type']?'split':'merge';if(!_0x43c0de['consumable']['test'](_0x4940d8['markerRange'],_0xab2de5['name']))return;const _0x362114=_0x4940d8['markerRange']['getWalker'](),_0x433c29=_0x4940d8['markerRange']['start'],_0x4801f1=_0x667dd4['model']['schema'];let _0x2881e3=null,_0x4add77=null,_0x4b708e=!0x1,_0x40df4b=!0x1;for(const _0x1702fd of _0x362114){const _0xb4bfb9=_0x1702fd['item'];_0x4b708e=_0x4b708e||_0x4801f1['isContent'](_0xb4bfb9);const _0x462432=_0x43c0de['mapper']['toViewElement'](_0xb4bfb9);if(_0x462432&&_0x462432['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1702fd['type']&&(_0x4801f1['isBlock'](_0xb4bfb9)&&!_0x4801f1['isLimit'](_0xb4bfb9)&&(_0xb4bfb9['nextSibling']||_0x433c29['isAtEnd']?_0x2881e3&&_0x2881e3['parent']==_0xb4bfb9||(_0x2881e3=_0xb4bfb9,_0x3ae342(_0x1702fd['previousPosition']),_0x40df4b=!0x0):_0x4add77=_0x4add77||_0x1702fd['previousPosition']));}function _0x3ae342(_0x540141){const _0x1e55ab=_0x43c0de['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x653f1a}),_0x5ec095=_0x43c0de['mapper']['toViewPosition'](_0x540141);_0x23d25a['data']['isSuggestion']&&_0x43c0de['writer']['addClass']('ck-suggestion-marker-'+_0x653f1a+'-new',_0x1e55ab),_0x40c214['activeChange']==_0x23d25a&&_0x43c0de['writer']['addClass']('ck-suggestion-marker--active',_0x1e55ab),_0x43c0de['writer']['insert'](_0x5ec095,_0x1e55ab),_0x43c0de['mapper']['bindElementToMarker'](_0x1e55ab,_0x4940d8['markerName']);}_0x4b708e||_0x40df4b||!_0x4add77||_0x3ae342(_0x4add77);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x303359,_0x8220af,_0x51c13b)=>{const _0x175439=_0x51c13b['mapper']['markerNameToElements'](_0x8220af['markerName']);if(_0x175439){for(const _0x52573e of _0x175439)(_0x52573e['hasClass']('ck-suggestion-marker-split')||_0x52573e['hasClass']('ck-suggestion-marker-merge'))&&(_0x51c13b['mapper']['unbindElementFromMarkerName'](_0x52573e,_0x8220af['markerName']),_0x51c13b['writer']['remove'](_0x52573e));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x3ab466,_0x11554e,_0x19f474)=>{const _0x4b6268=_0x11554e['markerName']['split'](':')[0x1],_0x7f4a2c=this['_getChangeFromId'](_0x4b6268);if(!_0x7f4a2c)return null;const _0x245d12='add'==_0x7f4a2c['type']?'split':'merge';if(_0x19f474['consumable']['test'](_0x11554e['markerRange'],_0x3ab466['name']))for(const _0x29d28f of _0x11554e['markerRange']['getItems']()){if(!_0x29d28f['is']('element','softBreak'))continue;const _0x12f17e=_0x19f474['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x245d12}),_0x2ceedc=_0x19f474['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x29d28f));_0x7f4a2c['data']['isSuggestion']&&_0x19f474['writer']['addClass']('ck-suggestion-marker-'+_0x245d12+'-new',_0x12f17e),this['activeChange']==_0x7f4a2c&&_0x19f474['writer']['addClass']('ck-suggestion-marker--active',_0x12f17e),_0x19f474['writer']['insert'](_0x2ceedc,_0x12f17e),_0x19f474['mapper']['bindElementToMarker'](_0x12f17e,_0x11554e['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x17275c=>{for(const _0x378405 of this['editor']['model']['document']['getRootNames']()){const _0x3d6bcb=this['editor']['model']['document']['getRoot'](_0x378405),_0x36ed9=this['editor']['editing']['view']['document']['getRoot'](_0x378405);if(_0x36ed9){const _0x4e292d=_0x3d6bcb['getAttribute']('revisionHistoryAttachChange');if(_0x17275c['removeAttribute']('data-change-id',_0x36ed9),_0x17275c['removeClass']('ck-revision-history-root-add',_0x36ed9),_0x17275c['removeClass']('ck-revision-history-root-remove',_0x36ed9),_0x17275c['removeClass']('ck-revision-history-root--active',_0x36ed9),_0x4e292d){const _0x4f68d3=this['_getChangeFromId'](_0x4e292d);if(!_0x4f68d3)return null;_0x17275c['setAttribute']('data-change-id',_0x4e292d,_0x36ed9),_0x17275c['addClass']('ck-revision-history-root-'+_0x4f68d3['type'],_0x36ed9),this['activeChange']==_0x4f68d3&&_0x17275c['addClass']('ck-revision-history-root--active',_0x36ed9);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x314b6b=>'revision-comment:'+_0x314b6b,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x2dd1d1=>'revision-suggestion:'+_0x2dd1d1,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x35f09f=>({'name':'suggestion:'+_0x35f09f,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x55bee0=>{const _0x535bfd=_0x55bee0['markerName']['split'](':')[0x1];return'insertion'!=_0x535bfd&&'deletion'!=_0x535bfd?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x535bfd]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',X(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',X(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x54dc69,_0x1dce95,_0x864cdb)=>{const _0x2e0dba=_0x864cdb['mapper']['markerNameToElements'](_0x1dce95['markerName']);if(_0x2e0dba){for(const _0x5c2131 of _0x2e0dba)_0x5c2131['is']('uiElement')&&(_0x864cdb['mapper']['unbindElementFromMarkerName'](_0x5c2131,_0x1dce95['markerName']),_0x864cdb['writer']['remove'](_0x5c2131));}},{'priority':'high'});}['_getChangeFromId'](_0x18d880){return this['_changeIdToChange']['get'](_0x18d880);}['_getViewForChange'](_0x431313){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x431313),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0xb7a825,_0x4ae631,_0x55710f,_0x32ae43)=>{_0x32ae43&&this['_balloon']['remove'](_0x32ae43),_0x55710f&&(this['_balloon']['add']({'view':_0x55710f,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x7234b6=this['editor']['editing'],_0x5892a1=this['_getChangeFromId'](_0x55710f['changeId']);let _0x2e7ef6;if(_0x5892a1['data']['isOnRoot']){const _0x3f1bc2=_0x7234b6['view']['getDomRoot'](_0x5892a1['rootName']);_0x2e7ef6=Array['from'](_0x3f1bc2['getClientRects']());}else{const _0x743d0f=this['editor']['model']['markers']['get']('revision:'+_0x55710f['changeId']);_0x2e7ef6=Array['from'](_0x7234b6['mapper']['markerNameToElements'](_0x743d0f['name']))['map'](_0x3e89f5=>_0x7234b6['view']['domConverter']['mapViewToDom'](_0x3e89f5))['map'](_0x155e3b=>Array['from'](_0x155e3b['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x2e7ef6[0x0];return _0x2e7ef6['find'](_0x312372=>_0x312372['top']-0x3<=this['_activeViewTarget']['y']&&_0x312372['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x312372['left']-0x3<=this['_activeViewTarget']['x']&&_0x312372['right']+0x3>=this['_activeViewTarget']['x'])||_0x2e7ef6[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x228b47,_0x21a744,_0x1bb3cb,_0x2238c5)=>{this['activeView']=_0x1bb3cb?this['_getViewForChange'](_0x1bb3cb):null,this['editor']['model']['change'](()=>{const _0x3a95b5=this['editor']['editing'];_0x2238c5&&(_0x2238c5['data']['isOnRoot']?_0x3a95b5['view']['change'](_0x53664c=>{_0x53664c['removeClass']('ck-revision-history-root--active',_0x3a95b5['view']['document']['getRoot'](_0x2238c5['rootName']));}):_0x3a95b5['reconvertMarker']('revision:'+_0x2238c5['id'])),_0x1bb3cb&&(_0x1bb3cb['data']['isOnRoot']?_0x3a95b5['view']['change'](_0x5af7ac=>{_0x5af7ac['addClass']('ck-revision-history-root--active',_0x3a95b5['view']['document']['getRoot'](_0x1bb3cb['rootName']));}):_0x3a95b5['reconvertMarker']('revision:'+_0x1bb3cb['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x475c63,_0x174d17)=>{if(this['activeChange'])return;const _0x216cfd=this['_findChangeIdFromDomTarget'](_0x174d17['target']),_0x4e3036=this['_changeIdToChange']['get'](_0x216cfd);_0x4e3036?(this['_activeViewTarget']={'x':_0x174d17['domEvent']['x'],'y':_0x174d17['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x4e3036)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x3e95ed,_0x480d16)=>{const _0x4ab120=this['_findChangeIdFromDomTarget'](_0x480d16['target']),_0x436d0c=this['_changeIdToChange']['get'](_0x4ab120);_0x436d0c?(this['_activeViewTarget']={'x':_0x480d16['domEvent']['x'],'y':_0x480d16['domEvent']['y']},_0x436d0c===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x436d0c):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x5966cf){do{const _0x2699ab=_0x5966cf['getAttribute']('data-change-id');if(_0x2699ab)return _0x2699ab;_0x5966cf=_0x5966cf['parent'];}while(_0x5966cf);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x4ac327=>{for(const _0x28814c of this['editor']['model']['markers'])_0x4ac327['removeMarker'](_0x28814c);});}}function X(_0x4071e8,_0x2598f8){return(_0x13ed8e,_0x58cfe7,_0x958a3b)=>{if(!_0x958a3b['consumable']['test'](_0x58cfe7['markerRange'],_0x13ed8e['name']))return;const _0x2f63dc=_0x58cfe7['markerRange']['getWalker'](),_0x3dcb2d=_0x58cfe7['markerRange']['start'],_0x15f365=_0x4071e8['model']['schema'];let _0x3da5b6=null,_0x3a4428=null,_0x3478c5=!0x1,_0x88e134=!0x1;for(const _0x41917c of _0x2f63dc){const _0x283557=_0x41917c['item'];_0x3478c5=_0x3478c5||_0x15f365['isContent'](_0x283557);const _0x4d72e4=_0x958a3b['mapper']['toViewElement'](_0x283557);if(_0x4d72e4&&_0x4d72e4['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x41917c['type']&&(_0x15f365['isBlock'](_0x283557)&&!_0x15f365['isLimit'](_0x283557)&&(_0x283557['nextSibling']||_0x3dcb2d['isAtEnd']?_0x3da5b6&&_0x3da5b6['parent']==_0x283557||(_0x3da5b6=_0x283557,_0x2ed40b(_0x41917c['previousPosition']),_0x88e134=!0x0):_0x3a4428=_0x3a4428||_0x41917c['previousPosition']));}function _0x2ed40b(_0x15ccf0){const _0xbc5963=_0x958a3b['mapper']['toViewPosition'](_0x15ccf0),_0x7cab6=_0x958a3b['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x2598f8});_0x958a3b['writer']['insert'](_0xbc5963,_0x7cab6),_0x958a3b['mapper']['bindElementToMarker'](_0x7cab6,_0x58cfe7['markerName']);}_0x3478c5||_0x88e134||!_0x3a4428||_0x2ed40b(_0x3a4428);};}class mt extends _0x557798{constructor(_0x19dfdb){super(_0x19dfdb);const _0x16cfbc=_0x19dfdb['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x16cfbc,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x16cfbc,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x5129b9=this['editor'],_0x35d47f=_0x5129b9['plugins']['get'](m),_0x287c47=_0x35d47f['isReady']?_0x35d47f['diff']['newRevisionId']:null;_0x5129b9['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x287c47);}['refresh'](){const {isReady:_0x1844cc,isEnabled:_0x32a450,repository:_0xd5a53b,diff:_0x249423}=this['editor']['plugins']['get'](m),_0x53c986=_0x249423&&_0xd5a53b['getLaterVisibleRevision'](_0x249423['newRevisionId']);this['isEnabled']=_0x1844cc&&_0x32a450&&Boolean(_0x53c986);}}class wt extends _0x557798{['_step'];constructor(_0x1f7cc6,{direction:_0x2cc209}){super(_0x1f7cc6);const _0x3a882b=_0x1f7cc6['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x2cc209?0x1:-0x1,this['listenTo'](_0x3a882b,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x3a882b,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x3a882b,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x35c341=this['editor'],_0x1fd294=_0x35c341['plugins']['get'](m),{isNavigationMode:_0x2c88d9,currentChangeNumber:_0x18e8bb}=_0x1fd294;let _0x432761;if(_0x1fd294['activeChange']=_0x2c88d9?_0x1fd294['diff']['changes']['get'](_0x18e8bb+this['_step']):_0x1fd294['diff']['changes']['first'],_0x1fd294['activeChange']['data']['isOnRoot'])_0x432761=_0x35c341['editing']['view']['getDomRoot'](_0x1fd294['activeChange']['rootName']);else{const _0x3e6de9=_0x35c341['model']['markers']['get']('revision:'+_0x1fd294['activeChange']['id']);_0x432761=_0x29c24a(_0x35c341['editing'],_0x3e6de9);}_0x5506aa({'target':_0x432761,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x5964ef,currentChangeNumber:_0x56333e,numberOfChanges:_0x46e20b,isReady:_0x259876,isEnabled:_0x53997c}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x53997c&&_0x259876&&_0x46e20b)&&(!_0x5964ef||(0x1===this['_step']?_0x56333e<_0x46e20b-0x1:_0x56333e>0x0));}}class li extends ts{constructor(_0x7b71ea){super(_0x7b71ea);const _0x42c43f=this['bindTemplate'],_0x385cc3=new te(_0x7b71ea),_0x991362=new te(_0x7b71ea);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',(_0x38bd67,_0x5a7c68)=>_0x38bd67&&_0x5a7c68>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x41a479,_0x28ea69,_0x4eadbb,_0x494acf)=>{if(!_0x41a479)return g(_0x7b71ea,'Loading...');if(!_0x4eadbb)return g(_0x7b71ea,'No\x20changes');const _0x1897e6=g(_0x7b71ea,'NUMBER_OF_CHANGES',_0x4eadbb);return _0x494acf?g(_0x7b71ea,'X_OF_Y_CHANGES',[_0x28ea69+0x1,_0x4eadbb]):_0x1897e6;}),_0x385cc3['set']({'label':g(_0x7b71ea,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x5e7da9}),_0x991362['set']({'label':g(_0x7b71ea,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x1491d3}),_0x385cc3['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x991362['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x385cc3['on']('execute',()=>this['fire']('execute','backward')),_0x991362['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',_0x42c43f['if']('_isStatusLabelVisible','ck-hidden',_0x101576=>!_0x101576)]},'children':[{'text':_0x42c43f['to']('isNavigationMode',_0x1c4941=>_0x1c4941?g(_0x7b71ea,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x7b71ea,'Total')+':\x20')}]},{'text':_0x42c43f['to']('_statusText')}]},new _0xf40071(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x385cc3,_0x991362]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x211636{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0xbd5c75=this['editor']['editing']['view'];_0xbd5c75['change'](_0x1ced8b=>{for(const _0x1be3a2 of _0xbd5c75['document']['roots'])_0x1ced8b['addClass'](le,_0x1be3a2);});}['hide'](){const _0x4b79cf=this['editor']['editing']['view'];_0x4b79cf['change'](_0x1614fe=>{for(const _0xdb1109 of _0x4b79cf['document']['roots'])_0x1614fe['removeClass'](le,_0xdb1109);});}}class R extends _0x211636{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,ge];}['init'](){const _0x395a03=this['editor'],_0x6b7a9d=_0x395a03['plugins']['get'](m),_0x4ce155=_0x395a03['plugins']['get'](ge);_0x395a03['ui']['componentFactory']['add']('exitToEditing',_0x395e92=>{const _0x2cb25d=new te(_0x395e92);return _0x2cb25d['set']({'label':g(_0x395e92,'Back\x20to\x20editing'),'icon':_0x10e86f,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x2cb25d,'execute',()=>{_0x395a03['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x2cb25d;}),_0x395a03['ui']['componentFactory']['add']('restoreRevision',_0x2343ed=>{const _0x484e95=new te(_0x2343ed);return _0x484e95['set']({'label':g(_0x2343ed,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x484e95['bind']('isEnabled')['to'](_0x395a03['commands']['get']('restoreRevision')),this['listenTo'](_0x484e95,'execute',()=>_0x395a03['execute']('restoreRevision')),_0x484e95;}),_0x395a03['ui']['componentFactory']['add']('changesNavigation',_0x4c1dfa=>{const _0x13014f=new li(_0x4c1dfa),_0x189b58=_0x395a03['commands']['get']('showPreviousChange'),_0x5486e5=_0x395a03['commands']['get']('showNextChange');return _0x13014f['bind']('isBackwardNavigationEnabled')['to'](_0x189b58,'isEnabled'),_0x13014f['bind']('isForwardNavigationEnabled')['to'](_0x5486e5,'isEnabled'),_0x13014f['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x6b7a9d),this['listenTo'](_0x13014f,'execute',(_0x5c77e1,_0x202b77)=>{_0x395a03['execute']('forward'===_0x202b77?'showNextChange':'showPreviousChange');}),_0x13014f;}),_0x4ce155['show'](),_0x6b7a9d['on']('change:isReady',(_0x3dd757,_0x39b370,_0x46f1bc)=>{_0x46f1bc?_0x4ce155['hide']():_0x4ce155['show']();});}}class at extends _0x396cf7{['_resizeObserver']=null;constructor(_0x24ac46,_0x1ccc38){super(_0x24ac46,_0x1ccc38);const _0xee390b=this['bindTemplate'];this['set']({'label':g(_0x24ac46,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x24ac46,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0xee390b['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new nt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0xb70c37=this['fieldView']['element'];this['_tooltipString']=_0xb70c37['scrollWidth']>_0xb70c37['clientWidth']&&_0xb70c37['value']||'';}}class oi extends ts{constructor(_0x4d79d7,_0x143c08,_0x14c307){super(_0x4d79d7);const _0x504edb=new _0x593adf();_0x504edb['set']({'content':_0x40a776,'viewBox':'0\x200\x2011\x2010'});const _0x384583=['ck','ck-revision-history-sidebar__revision-author'];_0x14c307&&_0x384583['push']('ck-revision-history-sidebar__revision-author_creator');const _0x15e8d2=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x4d79d7,_0x14c307?'Revision\x20creator':'Revision\x20author')},'children':[_0x504edb,_0x143c08['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x384583},'children':_0x15e8d2});}}function ai(_0x3714f5,_0x3c99d8){const _0x28f42f=_0x3714f5['bindTemplate'],_0x3c43f6=_0x3714f5['locale'],_0x101009=_0x93f8f9(_0x3c43f6);_0x101009['panelPosition']='sw';const _0x4d1f84=function(_0x40dd3f,_0x3bd020){const _0x4d5b50=function(_0x3242f2,_0x128bcf){const _0x22ca5b=_0x3242f2['locale'],_0x5351cd={'Compare\x20against\x20selected':g(_0x22ca5b,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x22ca5b,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x22ca5b,'Restore\x20this\x20revision')};return _0x128bcf['map'](_0x3718e1=>{const _0x5be6f2=_0x5351cd[_0x3718e1['name']];return _0x5be6f2&&_0x5be6f2!==_0x3718e1['name']&&(_0x3718e1['name']=_0x5be6f2),_0x3718e1;});}(_0x40dd3f,_0x3bd020),_0x501fb0=new _0x284c5d();for(const _0x59a393 of _0x4d5b50){const _0x317949={'type':'button','model':new to({'label':_0x59a393['name'],'class':_0x59a393['class'],'withText':!0x0,'role':'menuitem','_action':_0x59a393['action']})};_0x317949['model']['bind']('isEnabled')['to'](_0x40dd3f,'isActionsDropdownOpen',_0x4cb753=>'function'!=typeof _0x59a393['isEnabled']||(!_0x4cb753||_0x59a393['isEnabled'](_0x40dd3f))),_0x501fb0['add'](_0x317949);}return _0x501fb0;}(_0x3714f5,_0x3c99d8);return _0x3714f5['bind']('isActionsDropdownOpen')['to'](_0x101009,'isOpen'),_0x101009['buttonView']['set']({'label':g(_0x3c43f6,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x7b1e92}),_0x101009['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x28f42f['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x28f42f['to'](_0xefe49d=>_0xefe49d['stopPropagation']())}}),_0x101009['on']('execute',_0x4b8ac2=>{_0x3714f5['isReady']&&'function'==typeof _0x4b8ac2['source']['_action']&&_0x4b8ac2['source']['_action'](_0x3714f5);}),_0x542dea(_0x101009,_0x4d1f84,{'role':'menu'}),_0x101009['listenTo'](_0x3714f5,'change:isActionsDropdownOpen',(_0x5e25c1,_0x3bfadf,_0x4d947c)=>{if(_0x4d947c)for(const _0x19d4d1 of _0x101009['listView']['items']){const _0x5118dd=_0x19d4d1['children']['first'],_0x22050b=_0x3c99d8['find'](_0x51d0f8=>_0x51d0f8['action']===_0x5118dd['_action'])['isVisible'];_0x19d4d1['isVisible']=void 0x0===_0x22050b||_0x22050b(_0x3714f5);}}),_0x101009;}class si extends/* #__PURE__ -- @preserve */
|
|
26
|
-
|
|
23
|
+
import{ObservableMixin as _0xc2ac12,uid as _0x33deb6,Collection as _0x9da6d5,logWarning as _0x46f080,FocusTracker as _0x4e2270,KeystrokeHandler as _0x15de6e,scrollViewportToShowTarget as _0x1c772f,ResizeObserver as nt,ElementReplacer as ot,CKEditorError as _0x135dc7}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x562ae2,set as _0x31d12d,unset as _0x409370,isEqual as _0x42e5a6}from'es-toolkit/compat';import{Plugin as _0x351143,PendingActions as _0x5cc8e,Command as _0x3b4ca0,ElementApiMixin as _0x1398b5,Editor as _0x5d9151}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x2ff871,getMarkerDomElement as _0xddc666,ConfirmMixin as ti,sanitizeEditorConfig as _0x327198}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x44b007,ViewAttributeElement as _0x39fb58,ViewEmptyElement as _0xb1ddd7,ViewRawElement as _0x595675,ViewUIElement as _0x541c38,ViewDocumentFragment as _0x4d9803,ViewText as _0x46c537,ViewElement as _0x32e34a,Element as ut,Range as lt,Position as ft,DocumentFragment as vt,Text as gt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x5d5eaa,IconChevronUp as _0x11abc6,IconChevronDown as _0x2b6198,IconUndo as _0x394446,IconUser as _0x4793cc,IconThreeVerticalDots as _0xe27b8}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x5c7872,submitHandler as _0x1323b9,LabeledFieldView as _0x11c4b5,createLabeledInputText as _0x3a9229,createDropdown as _0x4440ab,ListView as _0x3e5b0e,ListItemView as _0x48c754,ButtonView as te,MenuBarMenuView as _0x3df5af,MenuBarMenuListView as _0x4477c4,MenuBarMenuListItemView as _0x143d82,MenuBarMenuListItemButtonView as _0x4e93a3,ContextualBalloon as _0x1708e9,ToolbarSeparatorView as _0x2e32a8,IconView as _0x1a560f,addListToDropdown as _0x33b4e1,ViewModel as to,EditorUI as st,normalizeToolbarConfig as et,BoxedEditorUIView as rt,StickyPanelView as ht,ToolbarView as dt,InlineEditableUIView as ct}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x22f8c6}from'luxon';class h extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0xc2ac12(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0xc18e7a){super(),this['id']=_0xc18e7a['id']||_0x33deb6(),this['creator']=_0xc18e7a['creator']||null,this['authors']=_0xc18e7a['authors']||[],this['diffData']=_0xc18e7a['diffData']||null,this['toVersion']=_0xc18e7a['toVersion']||0x0,this['fromVersion']=_0xc18e7a['fromVersion']||0x0,this['set']('name',_0xc18e7a['name']||''),this['set']('createdAt',_0xc18e7a['createdAt']||new Date()),this['set']('attributes',_0xc18e7a['attributes']||{});}['setName'](_0x144727){this['_update']({'name':_0x144727});}['setAttribute'](_0x4e7f50,_0x55e93d){const _0x27fa16=_0x562ae2(this['attributes']);_0x31d12d(_0x27fa16,_0x4e7f50,_0x55e93d),this['_update']({'attributes':_0x27fa16});}['removeAttribute'](_0x1f7f1b){const _0x168865=_0x562ae2(this['attributes']);_0x409370(_0x168865,_0x1f7f1b),this['_update']({'attributes':_0x168865});}['_update'](_0x4d0f86,_0x20b2ec=!0x1){let _0x58c893=!0x1;const _0x355328={'id':this['id']},_0x26e175=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x5e2928 of _0x26e175){const _0x2c7ae9=_0x4d0f86[_0x5e2928];void 0x0!==_0x2c7ae9&&_0x2c7ae9!==this[_0x5e2928]&&(this[_0x5e2928]=_0x2c7ae9,_0x355328[_0x5e2928]=_0x2c7ae9,_0x58c893=!0x0);}_0x58c893&&(_0x355328['authors']&&(_0x355328['authorsIds']=_0x355328['authors']['map'](_0x966377=>_0x966377['id']),delete _0x355328['authors']),this['fire']('_update',_0x355328,_0x20b2ec));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x1ca82e=>_0x1ca82e['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x351143{['_revisions'];static get['requires'](){return[_0x2ff871];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x598980){super(_0x598980),this['_revisions']=new _0x9da6d5();}['afterInit'](){!async function(_0x13f7f5){const _0x99d40d=_0x2c1907([0x37,0x76,0x66,0x4a,0x41,0x73,0x74,0x6f,0x4c,0x52,0x32,0x50,0x68,0x38,0x71,0x7a,0x72,0x6b,0x36,0x75,0x6d,0x53,0x34,0x33,0x4e,0x46,0x6a,0x55,0x35,0x31,0x78,0x62,0x77,0x64,0x56,0x54,0x63,0x58,0x44,0x51,0x79,0x6c,0x39,0x67,0x45,0x4d,0x4f,0x65,0x30,0x42,0x6e,0x61,0x59,0x69,0x4b,0x48,0x43,0x70,0x57,0x49,0x47,0x5a]),_0x2222e5=0xeb829,_0x1e5457=0x44e0fcba,_0x2588bf=0x44e79582^_0x1e5457,_0x1219df=window[_0x2c1907([0x44,0x61,0x74,0x65])][_0x2c1907([0x6e,0x6f,0x77])](),_0xe358fd=_0x13f7f5[_0x2c1907([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x26d847=new window[(_0x2c1907([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x313faa=>{_0xe358fd[_0x2c1907([0x6f,0x6e,0x63,0x65])](_0x2c1907([0x72,0x65,0x61,0x64,0x79]),_0x313faa);}),_0x284d53={[_0x2c1907([0x6b,0x74,0x79])]:_0x2c1907([0x45,0x43]),[_0x2c1907([0x75,0x73,0x65])]:_0x2c1907([0x73,0x69,0x67]),[_0x2c1907([0x63,0x72,0x76])]:_0x2c1907([0x50,0x2d,0x32,0x35,0x36]),[_0x2c1907([0x78])]:_0x2c1907([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]),[_0x2c1907([0x79])]:_0x2c1907([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]),[_0x2c1907([0x61,0x6c,0x67])]:_0x2c1907([0x45,0x53,0x32,0x35,0x36])},_0x5dd96d=_0xe358fd[_0x2c1907([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2c1907([0x67,0x65,0x74])](_0x2c1907([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x16ffa7(){let _0x26e087,_0x4ba91e=null,_0x55811e=null;try{if(_0x5dd96d==_0x2c1907([0x47,0x50,0x4c]))return _0x2c1907([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x26e087=_0x50f12e(),!_0x26e087)return _0x2c1907([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x26e087[_0x2c1907([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x55811e=_0x27461a(_0x26e087[_0x2c1907([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x26e087[_0x2c1907([0x6a,0x74,0x69])])),await _0xbc019d()?_0x3c4670()?_0x40835d()?_0x2c1907([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4eee1f()?(_0x26e087[_0x2c1907([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2c1907([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4ba91e=_0x410ef7(_0x2c1907([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x26e087[_0x2c1907([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2c1907([0x74,0x72,0x69,0x61,0x6c])&&(_0x4ba91e=_0x410ef7(_0x2c1907([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x14c1f9()):_0x2c1907([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2c1907([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2c1907([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2c1907([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x40835d(){const _0x2870eb=[_0x2c1907([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2c1907([0x74,0x72,0x69,0x61,0x6c])][_0x2c1907([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x26e087[_0x2c1907([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1219df/0x3e8:0xe10*_0x2588bf;return _0x26e087[_0x2c1907([0x65,0x78,0x70])]<_0x2870eb;}function _0x3c4670(){const _0x28099b=_0x26e087[_0x2c1907([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x28099b)return!0x1;if(_0x28099b[_0x2c1907([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c1907([0x2a])))return!0x0;if(_0x28099b[_0x2c1907([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c1907([0x52,0x48])))return!0x0;if(_0x28099b[_0x2c1907([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c1907([0x52,0x52,0x48]))){if(_0x3c5bad())return!0x0;if(_0x597c40()||_0x5c832a())return!0x0;}return!0x1;}function _0x4eee1f(){const _0x46a17d=_0x26e087[_0x2c1907([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x46a17d||0x0==_0x46a17d[_0x2c1907([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x19e156}=new URL(window[_0x2c1907([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x46a17d[_0x2c1907([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x19e156))return!0x0;const _0x551860=_0x19e156[_0x2c1907([0x73,0x70,0x6c,0x69,0x74])](_0x2c1907([0x2e]));return _0x46a17d[_0x2c1907([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x49b4b7=>_0x49b4b7[_0x2c1907([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c1907([0x2a])))[_0x2c1907([0x6d,0x61,0x70])](_0x3ba535=>_0x3ba535[_0x2c1907([0x73,0x70,0x6c,0x69,0x74])](_0x2c1907([0x2e])))[_0x2c1907([0x73,0x6f,0x6d,0x65])](_0x12f039=>_0x551860[_0x2c1907([0x65,0x76,0x65,0x72,0x79])]((_0x42a0e1,_0x50d7fd)=>_0x12f039[_0x50d7fd]===_0x42a0e1||_0x12f039[_0x50d7fd]===_0x2c1907([0x2a])));}function _0x14c1f9(){return _0x4ba91e&&_0x55811e?new window[(_0x2c1907([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3116cd,_0x2bb50e)=>{_0x4ba91e[_0x2c1907([0x74,0x68,0x65,0x6e])](_0x3116cd,_0x2bb50e),_0x55811e[_0x2c1907([0x74,0x68,0x65,0x6e])](_0x521678=>{_0x521678!=_0x2c1907([0x56,0x61,0x6c,0x69,0x64])&&_0x3116cd(_0x521678);},_0x2bb50e);}):_0x4ba91e||_0x55811e||_0x2c1907([0x56,0x61,0x6c,0x69,0x64]);}}function _0x27461a(_0x1682f6,_0x35a1e4){return new window[(_0x2c1907([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x38310d=>{if(_0x38dff7())return _0x38310d(_0x2c1907([0x56,0x61,0x6c,0x69,0x64]));_0x559a55(),_0xe358fd[_0x2c1907([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2c1907([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xe6c54a=!0x1;const _0x224fbc=_0x33deb6();function _0x18762c(_0x26c3f1){return!!_0x26c3f1&&(typeof _0x26c3f1===_0x2c1907([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x26c3f1===_0x2c1907([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x26c3f1[_0x2c1907([0x74,0x68,0x65,0x6e])]===_0x2c1907([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x26c3f1[_0x2c1907([0x63,0x61,0x74,0x63,0x68])]===_0x2c1907([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1a5afa(_0x372def){_0x31e8bc(_0x372def)[_0x2c1907([0x74,0x68,0x65,0x6e])](_0x3532ed=>{if(!_0x3532ed||_0x3532ed[_0x2c1907([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2c1907([0x6f,0x6b]))return _0x2c1907([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4f1691(_0x3c149f(_0x224fbc+_0x35a1e4))!=_0x3532ed[_0x2c1907([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2c1907([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2c1907([0x56,0x61,0x6c,0x69,0x64]);})[_0x2c1907([0x74,0x68,0x65,0x6e])](_0x617dc9=>(_0xb50567(),_0x617dc9),()=>{const _0x55eeb6=_0x56efb4();return null==_0x55eeb6?(_0xb50567(),_0x2c1907([0x56,0x61,0x6c,0x69,0x64])):_0x2c1907(_0x1219df-_0x55eeb6>(0x60ec78ba^_0x1e5457)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2c1907([0x74,0x68,0x65,0x6e])](_0x38310d)[_0x2c1907([0x63,0x61,0x74,0x63,0x68])](()=>{_0x38310d(_0x2c1907([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x11565a=0x44d6123a^_0x1e5457;function _0xb50567(){const _0x112895=_0x2c1907([0x6c,0x6c,0x63,0x74,0x2d])+_0x4f1691(_0x3c149f(_0x1682f6)),_0x3397c7=_0x1e5c1d(_0x4f1691(window[_0x2c1907([0x4d,0x61,0x74,0x68])][_0x2c1907([0x63,0x65,0x69,0x6c])](_0x1219df/_0x11565a)));window[_0x2c1907([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2c1907([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x112895,_0x3397c7);}function _0x56efb4(){const _0x57c8f7=_0x2c1907([0x6c,0x6c,0x63,0x74,0x2d])+_0x4f1691(_0x3c149f(_0x1682f6)),_0x315bb5=window[_0x2c1907([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2c1907([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x57c8f7);return _0x315bb5?window[_0x2c1907([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1e5c1d(_0x315bb5),0x10)*_0x11565a:null;}function _0x31e8bc(_0x1593f8){return new window[(_0x2c1907([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x17c7b9,_0x3776ed)=>{_0x1593f8[_0x2c1907([0x74,0x68,0x65,0x6e])](_0x17c7b9,_0x3776ed),window[_0x2c1907([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3776ed,0x44e1287a^_0x1e5457);});}}_0xe358fd[_0x2c1907([0x6f,0x6e])](_0x2c1907([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1748a7,_0x68f4d8)=>{if(_0x68f4d8[0x0]!=_0x1682f6)return _0x38310d(_0x2c1907([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x68f4d8[0x1]={..._0x68f4d8[0x1],[_0x2c1907([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x224fbc};},{[_0x2c1907([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2c1907([0x68,0x69,0x67,0x68])}),_0xe358fd[_0x2c1907([0x6f,0x6e])](_0x2c1907([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3314a7=>{_0x18762c(_0x3314a7[_0x2c1907([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xe6c54a=!0x0,_0x1a5afa(_0x3314a7[_0x2c1907([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2c1907([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2c1907([0x6c,0x6f,0x77])}),_0x26d847[_0x2c1907([0x74,0x68,0x65,0x6e])](()=>{_0xe6c54a||_0x38310d(_0x2c1907([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x38dff7(){return _0xe358fd[_0x2c1907([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2c1907([0x76,0x69,0x65,0x77])][_0x2c1907([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2c1907([0x61,0x75,0x74,0x6f]);}function _0x559a55(){_0xe358fd[_0x2c1907([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2c1907([0x76,0x69,0x65,0x77])][_0x2c1907([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2c1907([0x61,0x75,0x74,0x6f]);}}function _0x410ef7(_0x182e1b){const _0x13254a=[new window[(_0x2c1907([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x361c40=>setTimeout(_0x361c40,0x44e9c276^_0x1e5457)),_0x26d847[_0x2c1907([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2c1907([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x495ab3=>{const _0x2ee880=0x44e0fcbd^_0x1e5457,_0xcc07f2=_0x13f7f5[_0x2c1907([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x5cd678(){_0xcc07f2[_0x2c1907([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x2ee880&&_0x495ab3();}_0x5cd678(),_0xcc07f2[_0x2c1907([0x6f,0x6e])](_0x2c1907([0x61,0x64,0x64]),_0x5cd678);})),new window[(_0x2c1907([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xbcf487=>{function _0x583b91(){for(const _0x53932e in window)if(window[_0x2c1907([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x2c1907([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x53932e))&&window[_0x53932e]==_0x2222e5)return _0xbcf487();_0xe358fd[_0x2c1907([0x73,0x74,0x61,0x74,0x65])]!=_0x2c1907([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x2c1907([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x583b91,0x44e0ef32^_0x1e5457);}_0x2592df(_0x2c1907([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x583b91();})];return window[_0x2c1907([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2c1907([0x72,0x61,0x63,0x65])](_0x13254a)[_0x2c1907([0x74,0x68,0x65,0x6e])](()=>_0x182e1b);}async function _0x2602bf(){if(await _0x26d847,_0x2592df(_0x2c1907([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x4a18fb=_0x13f7f5[_0x2c1907([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x1f7f3a=_0x13f7f5[_0x2c1907([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])](_0x4a18fb[_0x2c1907([0x69,0x64])]),_0x502d7b=_0x48d67d(_0x2c1907([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x502d7b[_0x2c1907([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x4a18fb['id'],_0x1f7f3a?_0x1f7f3a['id']:null,!0x0),_0x502d7b[_0x2c1907([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x2c1907([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x502d7b[_0x2c1907([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x502d7b[_0x2c1907([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x2d2390,void(_0x502d7b[_0x2c1907([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x2d2390);}if(_0x2592df(_0x2c1907([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x717663=_0x48d67d(_0x2c1907([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x717663[_0x2c1907([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x2c1907([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x717663[_0x2c1907([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x717663[_0x2c1907([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x2d2390,_0x717663[_0x2c1907([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x2d2390;}_0xe358fd[_0x2c1907([0x6d,0x6f,0x64,0x65,0x6c])][_0x2c1907([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2d2390,_0xe358fd[_0x2c1907([0x6d,0x6f,0x64,0x65,0x6c])][_0x2c1907([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2d2390,_0xe358fd[_0x2c1907([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2c1907([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3c5bad(){return _0x2592df(_0x2c1907([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x48d67d(_0x2c1907([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x2c1907([0x73,0x74,0x61,0x74,0x65])]==_0x2c1907([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x597c40(){return _0x2592df(_0x2c1907([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 _0x5c832a(){return _0x2592df(_0x2c1907([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x21cf31(_0x2b7d63){const _0x3a319c=_0x3c5622();_0xe358fd[_0x3a319c]=_0x2c1907([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])+_0x2b7d63,_0x2b7d63[_0x2c1907([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x2c1907([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x3c5622()]=_0x2222e5),_0x2b7d63!=_0x2c1907([0x56,0x61,0x6c,0x69,0x64])&&_0x2602bf();}function _0x3c5622(){const _0x2b57df=window[_0x2c1907([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2c1907([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2c1907([0x6e,0x6f,0x77])]())[_0x2c1907([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2c1907([0x2e]),'');let _0x5145f5=_0x2c1907([0x76]);for(let _0x294dce=0x0;_0x294dce<_0x2b57df[_0x2c1907([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x294dce+=0x2){let _0x12133d=window[_0x2c1907([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2b57df[_0x2c1907([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x294dce,_0x294dce+0x2));_0x12133d>=_0x99d40d[_0x2c1907([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x12133d-=_0x99d40d[_0x2c1907([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5145f5+=_0x99d40d[_0x12133d];}return _0x5145f5;}function _0x50f12e(){const _0x54a505=_0x5dd96d[_0x2c1907([0x73,0x70,0x6c,0x69,0x74])](_0x2c1907([0x2e]));if(0x3!=_0x54a505[_0x2c1907([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x12336d(_0x54a505[0x1]);function _0x12336d(_0x83945b){const _0x27b022=_0x4ca751(_0x83945b);return _0x27b022&&_0x2c9df7()?_0x27b022:null;function _0x2c9df7(){const _0x1e76d8=_0x27b022[_0x2c1907([0x6a,0x74,0x69])],_0x59e263=window[_0x2c1907([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1e76d8[_0x2c1907([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1e76d8[_0x2c1907([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1a7cea={..._0x27b022,[_0x2c1907([0x6a,0x74,0x69])]:_0x1e76d8[_0x2c1907([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1e76d8[_0x2c1907([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1a7cea[_0x2c1907([0x76,0x63])],_0x3c149f(_0x1a7cea)==_0x59e263;}}}async function _0xbc019d(){let _0x351630=!0x0;try{const _0x329394=_0x5dd96d[_0x2c1907([0x73,0x70,0x6c,0x69,0x74])](_0x2c1907([0x2e])),[_0x4dda8f,_0x194505,_0xb16c3f]=_0x329394;return _0x56b9f2(_0x4dda8f),await _0x3e7ff8(_0x4dda8f,_0x194505,_0xb16c3f),_0x351630;}catch{return!0x1;}function _0x56b9f2(_0x13252a){const _0x49045a=_0x4ca751(_0x13252a);_0x49045a&&_0x49045a[_0x2c1907([0x61,0x6c,0x67])]==_0x2c1907([0x45,0x53,0x32,0x35,0x36])||(_0x351630=!0x1);}async function _0x3e7ff8(_0x231116,_0xc14e4e,_0x104088){const _0x1a0dac=window[_0x2c1907([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2c1907([0x66,0x72,0x6f,0x6d])](_0x21de5b(_0x104088),_0x19737=>_0x19737[_0x2c1907([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1b5fd5=new window[(_0x2c1907([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2c1907([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x231116+_0x2c1907([0x2e])+_0xc14e4e),_0x34288a=window[_0x2c1907([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2c1907([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x34288a)return;const _0xa8db41=await _0x34288a[_0x2c1907([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2c1907([0x6a,0x77,0x6b]),_0x284d53,{[_0x2c1907([0x6e,0x61,0x6d,0x65])]:_0x2c1907([0x45,0x43,0x44,0x53,0x41]),[_0x2c1907([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2c1907([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2c1907([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x34288a[_0x2c1907([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2c1907([0x6e,0x61,0x6d,0x65])]:_0x2c1907([0x45,0x43,0x44,0x53,0x41]),[_0x2c1907([0x68,0x61,0x73,0x68])]:{[_0x2c1907([0x6e,0x61,0x6d,0x65])]:_0x2c1907([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xa8db41,_0x1a0dac,_0x1b5fd5)||(_0x351630=!0x1);}}function _0x4ca751(_0xf04b89){return _0xf04b89[_0x2c1907([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2c1907([0x65,0x79]))?JSON[_0x2c1907([0x70,0x61,0x72,0x73,0x65])](_0x21de5b(_0xf04b89)):null;}function _0x21de5b(_0x313a3a){return window[_0x2c1907([0x61,0x74,0x6f,0x62])](_0x313a3a[_0x2c1907([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2c1907([0x2b]))[_0x2c1907([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2c1907([0x2f])));}function _0x3c149f(_0xb86e2b){let _0x519bc5=0x1505;function _0x5ce981(_0x5a53af){for(let _0x3b4e7e=0x0;_0x3b4e7e<_0x5a53af[_0x2c1907([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3b4e7e++){const _0x37920a=_0x5a53af[_0x2c1907([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3b4e7e);_0x519bc5=(_0x519bc5<<0x5)+_0x519bc5+_0x37920a,_0x519bc5&=_0x519bc5;}}function _0xef574b(_0x2bcbc8){Array[_0x2c1907([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2bcbc8)?_0x2bcbc8[_0x2c1907([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xef574b):_0x2bcbc8&&typeof _0x2bcbc8==_0x2c1907([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2c1907([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2bcbc8)[_0x2c1907([0x73,0x6f,0x72,0x74])]()[_0x2c1907([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x55a797,_0x2383ef])=>{_0x5ce981(_0x55a797),_0xef574b(_0x2383ef);}):_0x5ce981(window[_0x2c1907([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2bcbc8));}return _0xef574b(_0xb86e2b),_0x519bc5>>>0x0;}function _0x4f1691(_0x5487ef){return _0x5487ef[_0x2c1907([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2c1907([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2c1907([0x30]));}function _0x1e5c1d(_0x9f3a66){return _0x9f3a66[_0x2c1907([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2c1907([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2c1907([0x6a,0x6f,0x69,0x6e])]('');}function _0x2592df(_0x361bf3){return _0xe358fd[_0x2c1907([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2c1907([0x68,0x61,0x73])](_0x361bf3);}function _0x48d67d(_0x306181){return _0xe358fd[_0x2c1907([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2c1907([0x67,0x65,0x74])](_0x306181);}function _0x2d2390(){}function _0x2c1907(_0x3bbce7){return _0x3bbce7['map'](_0x28a20c=>String['fromCharCode'](_0x28a20c))['join']('');}_0x21cf31(await _0x16ffa7());}(this);}['createRevision'](_0x89f72b){const _0x5e0872=this['editor']['plugins']['get']('Users');return new h({'id':_0x89f72b['id'],'name':_0x89f72b['name'],'creator':_0x89f72b['creatorId']?_0x5e0872['getUser'](_0x89f72b['creatorId']):null,'diffData':_0x89f72b['diffData']||_0x89f72b['data'],'authors':_0x89f72b['authorsIds']['map'](_0x1f2463=>_0x5e0872['getUser'](_0x1f2463)),'createdAt':new Date(_0x89f72b['createdAt']),'attributes':_0x89f72b['attributes'],'fromVersion':_0x89f72b['fromVersion'],'toVersion':_0x89f72b['toVersion']});}['addRevision'](_0x22c76d,_0x4410b4=0x0){this['_revisions']['add'](_0x22c76d,_0x4410b4);}['getRevision'](_0x20e108){return this['_revisions']['get'](_0x20e108);}['getRevisions'](_0x5bfec3={'toJSON':!0x1}){const _0x5528ec=Array['from'](this['_revisions']);return _0x5528ec['reverse'](),_0x5bfec3['toJSON']?_0x5528ec['map'](_0x3903de=>_0x3903de['toJSON']()):_0x5528ec;}['getIndex'](_0x21ab55){return this['_revisions']['getIndex'](_0x21ab55);}['getEarlierVisibleRevision'](_0x19cc42){const [,_0x2baf52]=this['getRevisionsIterator'](_0x19cc42,{'direction':'earlier'});return _0x2baf52;}['getLaterVisibleRevision'](_0x283ae0){const [,_0x3c6c1b]=this['getRevisionsIterator'](_0x283ae0,{'direction':'later'});return _0x3c6c1b;}['getRevisionsInDiff'](_0x19ab8e){const _0x519ade=[];for(const _0xea434b of this['getRevisionsIterator'](_0x19ab8e['newRevisionId']))if(_0x519ade['push'](_0xea434b),_0xea434b['id']===_0x19ab8e['oldRevisionId'])break;return _0x519ade;}*['getRevisionsIterator'](_0x46f5b8,{direction:_0x45ed62='earlier',filter:_0x5d2981=()=>!0x0}={}){const _0x24ef7e='earlier'===_0x45ed62?0x1:-0x1;let _0xee5c1a=this['_revisions']['get'](_0x46f5b8),_0x25d8ed=this['getIndex'](_0xee5c1a);for(yield _0xee5c1a;_0xee5c1a;){if(_0x25d8ed+=_0x24ef7e,_0xee5c1a=this['getRevision'](_0x25d8ed),!_0xee5c1a)return;_0x5d2981(_0xee5c1a)&&(yield _0xee5c1a);}}}class V extends _0x351143{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x44b007,'c'],[_0x39fb58,'a'],[_0xb1ddd7,'e'],[_0x595675,'r'],[_0x541c38,'u']]);['_typeCharToViewClass']=new Map([['c',_0x44b007],['a',_0x39fb58],['e',_0xb1ddd7],['r',_0x595675],['u',_0x541c38]]);async['loadRevisionData'](_0x154de7,_0x510c92){if(_0x154de7['diffData']||!_0x510c92)return;const _0x139a93=this['editor']['config']['get']('collaboration.channelId'),_0x3ae366=await _0x510c92['getRevision']({'channelId':_0x139a93,'revisionId':_0x154de7['id']});_0x154de7['diffData']=_0x3ae366['diffData'];}['getRevisionDocumentData'](_0x297d74){const _0x2a8b61={};for(const _0x2aa4f0 in _0x297d74['diffData']){if(_0x297d74['diffData'][_0x2aa4f0]['attachChange']&&!_0x297d74['diffData'][_0x2aa4f0]['attachChange']['isAttached'])continue;const _0x21d667=this['_removeRevisionMarkers'](JSON['parse'](_0x297d74['diffData'][_0x2aa4f0]['insertions'])),_0x2b39ff=this['editor']['editing']['view']['document'],_0x1e4341=new _0x4d9803(_0x2b39ff,_0x21d667['map'](_0x2b3149=>this['_getViewFromDiffObj'](_0x2b3149,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x2a8b61[_0x2aa4f0]=this['editor']['data']['processor']['toData'](_0x1e4341),this['editor']['data']['processor']['useFillerType']('default');}return _0x2a8b61;}['getRevisionRootsAttributes'](_0x5df69e){const _0x4af6b2={};for(const _0x18186d in _0x5df69e['diffData'])_0x5df69e['diffData'][_0x18186d]['attachChange']&&!_0x5df69e['diffData'][_0x18186d]['attachChange']['isAttached']||(_0x4af6b2[_0x18186d]=_0x5df69e['diffData'][_0x18186d]['attributesAfter']||{});return _0x4af6b2;}['_getTypeCharForViewElement'](_0x32bb20){return this['_viewClassToTypeChar']['get'](_0x32bb20['constructor']);}['_getViewFromDiffObj'](_0xdbc9c0,_0x3a580e){const _0x369147=this['editor']['editing']['view']['document'];if('string'==typeof _0xdbc9c0)return new _0x46c537(_0x369147,_0xdbc9c0);{let _0x14ce1d,_0x7afdc9;_0x7afdc9='u'==_0xdbc9c0['type']||'r'==_0xdbc9c0['type']?[]:_0xdbc9c0['children']['map'](_0x5b19fa=>this['_getViewFromDiffObj'](_0x5b19fa,_0x3a580e));const _0x3c34cf=this['_typeCharToViewClass']['get'](_0xdbc9c0['type'])||_0x32e34a,_0x4888ec=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x14ce1d=new _0x3c34cf(_0x369147,_0xdbc9c0['name'],_0xdbc9c0['attributes'],_0x7afdc9),'u'==_0xdbc9c0['type']&&_0xdbc9c0['children'][0x0]){const _0x3445cd=_0xdbc9c0['children'][0x0];if(_0x14ce1d['render']=function(_0x284527){const _0x4fb1f0=_0x284527['createElement']('div');return _0x4fb1f0['innerHTML']=_0x3445cd,_0x4fb1f0['childNodes'][0x0];},_0x3a580e){const _0x4c7f8d=new _0x4d9803(_0x369147);_0x4c7f8d['_appendChild'](_0x14ce1d);const _0x4cc564=Array['from'](_0x4888ec['viewChildrenToDom'](_0x4c7f8d,{'bind':!0x1})),_0x17b77f=_0x4888ec['domDocument']['createElement']('div');_0x17b77f['append'](..._0x4cc564),_0x14ce1d=Array['from'](_0x4888ec['domChildrenToView'](_0x17b77f))[0x0];}}else{if('r'==_0xdbc9c0['type']&&_0xdbc9c0['children'][0x0]){const _0x52c219=_0xdbc9c0['children'][0x0];if(_0x14ce1d['render']=function(_0x562a2d){_0x562a2d['innerHTML']=_0x52c219;},_0x3a580e){const _0x47f5fc=new _0x4d9803(_0x369147);_0x47f5fc['_appendChild'](_0x14ce1d);const _0x48de99=Array['from'](_0x4888ec['viewChildrenToDom'](_0x47f5fc,{'bind':!0x1})),_0x382f26=_0x4888ec['domDocument']['createElement']('div');_0x382f26['append'](..._0x48de99);const _0x799f8=Array['from'](_0x4888ec['domChildrenToView'](_0x382f26));_0x799f8['length']>0x1?_0x14ce1d['_appendChild'](_0x799f8):_0x14ce1d=_0x799f8[0x0];}}}if(_0xdbc9c0['customProperties']){for(const [_0xf270c9,_0x598553]of _0xdbc9c0['customProperties'])_0x14ce1d['_setCustomProperty'](_0xf270c9,_0x598553);}const _0x534fb8=void 0x0===_0xdbc9c0['fillerOffset']?null:_0xdbc9c0['fillerOffset'];return null!==_0x534fb8&&(_0x14ce1d['getFillerOffset']=()=>_0x534fb8),_0x14ce1d;}}['_makeModelFromViewString'](_0x5594c7){const _0x3d729f=JSON['parse'](_0x5594c7),_0x1d6230=this['editor']['editing']['view']['document'],_0x279be0=new _0x4d9803(_0x1d6230,_0x3d729f['map'](_0x45d2af=>this['_getViewFromDiffObj'](_0x45d2af,!0x0)));return this['editor']['data']['toModel'](_0x279be0);}['_removeRevisionMarkers'](_0x5e4e29){return(_0x5e4e29=_0x5e4e29['filter'](_0x5c7ca0=>!_0x5c7ca0['name']||'revision-start'!==_0x5c7ca0['name']&&'revision-end'!==_0x5c7ca0['name']))['forEach'](_0x559f31=>{'string'!=typeof _0x559f31&&(_0x559f31['children']=this['_removeRevisionMarkers'](_0x559f31['children']),_0x559f31['attributes']=_0x559f31['attributes']['filter'](_0x474b27=>!_0x474b27[0x0]['startsWith']('data-revision-')));}),_0x5e4e29;}}function g(_0x3f0878,_0x2efbdf,_0x409e4f){const t=_0x3f0878['t'];switch(_0x2efbdf){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'},_0x409e4f);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x409e4f);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}class u extends _0x351143{['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[_0x2ff871,I,V,_0x5cc8e];}constructor(_0x4d6c12){super(_0x4d6c12),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new x(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x1feb7a=_0x33deb6();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x1feb7a},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 _0xb00548=this['repository']['getRevision'](0x0),_0x19f006=_0xb00548&&null===_0xb00548['creator']?_0xb00548:null;if(this['_continueCurrentRevision']=!!_0x19f006&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x1487a0=this['_source']['getCurrentRevisionId'](),_0x15adfd=this['repository']['getRevision'](_0x1487a0);if(_0x15adfd)this['_startingVersion']=_0x15adfd['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x1431e9=this['_source']['history']['_operations']['find'](_0x43a8c1=>!_0x43a8c1['_isInit']),_0x4d062b=_0x1431e9?_0x1431e9['baseVersion']:this['_source']['history']['version'];_0xb00548?(_0xb00548['toVersion']<_0x4d062b&&_0xb00548['_update']({'toVersion':_0x4d062b}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x19f006['id'],this['_startingVersion']=_0x19f006['fromVersion']):(this['_startingVersion']=_0xb00548['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x4d062b,this['_continueCurrentRevision']=!0x1);}}else _0x19f006&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x19f006['toVersion'],this['editor']['model']['document']['history']['version']),_0x19f006['fromVersion']===_0x19f006['toVersion']?(0x0!==_0x19f006['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x19f006['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x19f006['id'],this['_startingVersion']=_0x19f006['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',_0x3a60ed=>!_0x3a60ed),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x6246f6=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x57a8d3;for(const _0x2605b8 in _0x6246f6){const _0x10367d=_0x2605b8,_0x5641e6=_0x6246f6[_0x10367d];if('revisionHistoryLicenseKeyValid'==_0x5641e6||'revisionHistoryLicenseKeyInvalid'==_0x5641e6||'revisionHistoryLicenseKeyExpired'==_0x5641e6||'revisionHistoryLicenseKeyDomainLimit'==_0x5641e6||'revisionHistoryLicenseKeyNotAllowed'==_0x5641e6||'revisionHistoryLicenseKeyEvaluationLimit'==_0x5641e6||'revisionHistoryLicenseKeyTrialLimit'==_0x5641e6||'revisionHistoryLicenseKeyUsageLimit'==_0x5641e6){delete _0x6246f6[_0x10367d],_0x57a8d3=_0x5641e6,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x57a8d3&&_0x6246f6['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x57a8d3&&_0x6246f6['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x57a8d3&&_0x6246f6['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x57a8d3&&_0x6246f6['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x57a8d3&&_0x6246f6['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x57a8d3&&_0x6246f6['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x57a8d3&&_0x6246f6['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x1e01a6=this['repository']['getRevision'](0x0),_0x54b016=await this['getRevisionDocumentData'](_0x1e01a6),_0x3de3a9=await this['getRevisionRootsAttributes'](_0x1e01a6);this['_replaceEditorDataWithRevisionData'](_0x54b016,_0x3de3a9);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x460795){this['_source']=_0x460795;}async['update'](){const _0x963031=await this['_source']['getLatestVersion']();if(_0x963031>this['currentRevision']['toVersion']){await this['_loadState']();const _0x38a200=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x963031});_0x38a200['authors']=_0x38a200['authorsIds']['map'](_0x985cdc=>this['editor']['plugins']['get']('Users')['getUser'](_0x985cdc)),this['currentRevision']['_update'](_0x38a200);}}async['saveRevision'](_0x31c5d7={},_0x10e22c=null){const _0x4347f0=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x10e22c>this['currentRevision']['toVersion']&&(_0x10e22c=null),null===_0x10e22c&&(_0x10e22c=await this['_source']['getLatestVersion']());const _0x51fa59=this['_getFromVersion'](_0x10e22c),_0x27a257=this['buildRevisionData']({'from':_0x51fa59,'to':_0x10e22c});if(this['currentRevision']['toVersion']<_0x10e22c){const _0x3e8689=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x10e22c,'to':_0x10e22c});_0x3e8689['authors']=[],_0x3e8689['authorsIds']=[],_0x3e8689['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x3e8689,!0x0),delete _0x3e8689['authors'],_0x4347f0['push'](_0x3e8689);}_0x31c5d7['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x31c5d7['name']=_0x31c5d7['name']||null,_0x31c5d7['id']=_0x31c5d7['id']||_0x33deb6(),_0x31c5d7={..._0x31c5d7,..._0x27a257};const _0x355e70=this['addRevisionData'](_0x31c5d7);_0x4347f0['push'](_0x31c5d7);const _0x154b1f=this['repository']['getIndex'](_0x355e70);if(0x0!==_0x154b1f){const _0x579b20=this['repository']['getRevision'](_0x154b1f-0x1);if(_0x579b20['fromVersion']!==_0x10e22c){const _0x1ea365=this['_revisionDataBuilder']['getData'](_0x10e22c,_0x579b20['toVersion']),_0x5df1b9={'id':_0x579b20['id'],'diffData':_0x1ea365['diffData'],'authorsIds':_0x1ea365['authorsIds'],'authors':_0x1ea365['authorsIds']['map'](_0x5739f5=>this['editor']['plugins']['get']('Users')['getUser'](_0x5739f5)),'fromVersion':_0x10e22c};_0x579b20===this['currentRevision']&&(_0x5df1b9['createdAt']=new Date(_0x31c5d7['createdAt']['getTime']()+0xa)),_0x579b20['_update'](_0x5df1b9,!0x0),delete _0x5df1b9['authors'],_0x4347f0['push'](_0x5df1b9);}}if(this['adapter']){for(const _0x572d72 of _0x4347f0)this['_bufferUpdate'](_0x572d72['id'],_0x572d72,!0x0);this['sendBufferedUpdates']();}return _0x355e70;}['addRevisionData'](_0x29f667){const _0xe15bdb=this['repository']['createRevision'](_0x29f667);return this['adapter']&&_0xe15bdb['on']('_update',(_0x52fafc,_0x49db5a,_0xf340a)=>{_0xf340a||(this['_bufferUpdate'](_0x49db5a['id'],_0x49db5a,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0xe15bdb,this['_findInsertionIndex'](_0xe15bdb)),_0xe15bdb;}async['getRevisionDocumentData'](_0x26df7f){return await this['_utils']['loadRevisionData'](_0x26df7f,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x26df7f);}async['getRevisionRootsAttributes'](_0x1fee51){return await this['_utils']['loadRevisionData'](_0x1fee51,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x1fee51);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x4bd4e0=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x304c3a=0x0;_0x304c3a<_0x4bd4e0['length'];_0x304c3a++){const _0x40c7cf=_0x4bd4e0[_0x304c3a];let _0x35fcb1=!0x1;for(const _0xf41a7c of Object['keys'](_0x40c7cf))void 0x0===_0x40c7cf[_0xf41a7c]?delete _0x40c7cf[_0xf41a7c]:'id'!==_0xf41a7c&&(_0x35fcb1=!0x0);_0x35fcb1||(_0x4bd4e0[_0x304c3a]=null);}if(_0x4bd4e0=_0x4bd4e0['filter'](_0x182d81=>null!==_0x182d81),!_0x4bd4e0['length'])return;for(let _0x55d0b1=0x0;_0x55d0b1<_0x4bd4e0['length'];_0x55d0b1++){const _0x563c4f=_0x4bd4e0[_0x55d0b1];void 0x0!==_0x563c4f['fromVersion']&&void 0x0===_0x563c4f['toVersion']&&(_0x563c4f['toVersion']=this['repository']['getRevision'](_0x563c4f['id'])['toVersion']),void 0x0!==_0x563c4f['toVersion']&&void 0x0===_0x563c4f['fromVersion']&&(_0x563c4f['fromVersion']=this['repository']['getRevision'](_0x563c4f['id'])['fromVersion']);}const _0x152093=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x4bd4e0,_0x152093)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x59e033=>{if(_0x59e033){for(const _0x426e7a of _0x59e033)this['setRevisionData']({'id':_0x426e7a['id'],'createdAt':_0x426e7a['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x4459c0=null,from:_0x1e9138=null,to:_0x2a707a=null}){_0x1e9138=null!==_0x1e9138?_0x1e9138:_0x4459c0['fromVersion'],_0x2a707a=null!==_0x2a707a?_0x2a707a:_0x4459c0['toVersion'];const _0x575652=this['_revisionDataBuilder']['getData'](_0x1e9138,_0x2a707a),_0x59ae46={'diffData':_0x575652['diffData'],'authorsIds':_0x575652['authorsIds'],'fromVersion':_0x1e9138,'toVersion':_0x2a707a};if(!_0x4459c0||_0x2a707a!==_0x4459c0['toVersion']){const _0x4efd4a=_0x2a707a-0x1,_0x1d87cc=this['_source']['history']['getOperation'](_0x4efd4a);_0x59ae46['createdAt']=_0x1d87cc&&_0x1d87cc['createdAt']||new Date();}if(this['_loadedStateData']&&_0x1e9138===this['_loadedStateData']['fromVersion']){for(const _0xe8d577 of this['_loadedStateData']['authors'])_0x59ae46['authorsIds']['includes'](_0xe8d577['id'])||_0x59ae46['authorsIds']['push'](_0xe8d577['id']);}return _0x59ae46;}['_bufferUpdate'](_0x1a1652,_0x258c93,_0x4b3fbb){if(this['_bufferedUpdates']['has'](_0x1a1652)){const _0x143457=this['_bufferedUpdates']['get'](_0x1a1652);_0x258c93=_0x4b3fbb?{..._0x143457,..._0x258c93}:{..._0x258c93,..._0x143457};}this['_bufferedUpdates']['set'](_0x1a1652,_0x258c93);}['setRevisionData'](_0x12bce2){const _0x48ffe4=this['repository']['getRevision'](_0x12bce2['id']);if(_0x12bce2['createdAt']&&(_0x12bce2['createdAt']=new Date(_0x12bce2['createdAt'])),_0x12bce2['authorsIds']){const _0x2187ff=this['editor']['plugins']['get']('Users');_0x12bce2['authors']=_0x12bce2['authorsIds']['map'](_0x215bd3=>_0x2187ff['getUser'](_0x215bd3));}_0x48ffe4['_update'](_0x12bce2,!0x0);}['_createInitialRevision'](_0x3ae105){const _0x1f09da=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x1f09da)this['_initialRevisionId']=_0x1f09da['id'];else{const _0x72288d=!this['editor']['model']['document']['roots']['find'](_0x37b36a=>this['editor']['model']['hasContent'](_0x37b36a)),_0x557a7d=this['editor']['plugins']['get']('Users')['me']['id'],_0x501185=g(this['editor']['locale'],_0x72288d?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x3ae105,'to':_0x3ae105,'id':this['_initialRevisionId'],'name':_0x501185,'creatorId':_0x557a7d});}}['_createCurrentRevision'](_0x39921f){const _0xd31aed=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0xd31aed),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x39921f,'to':_0x39921f,'id':_0xd31aed,'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'](_0x4379ed,_0x4d25b1){let _0x3db4bf=this['editor']['config']['get']('initialData'),_0x5544b0=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x3db4bf){_0x3db4bf={};for(const _0x1e092c of this['editor']['model']['document']['getRootNames']())_0x3db4bf[_0x1e092c]='';}if('string'==typeof _0x3db4bf&&(_0x3db4bf={'main':_0x3db4bf}),void 0x0===_0x5544b0){_0x5544b0={};for(const _0x1c72b4 of this['editor']['model']['document']['getRootNames']())_0x5544b0[_0x1c72b4]={};}let _0x39891b=!0x1;const _0x1118e6=Object['keys'](_0x3db4bf),_0x5d0f43=Object['keys'](_0x4379ed);for(const _0x474605 of _0x1118e6){if(_0x3db4bf[_0x474605]!==_0x4379ed[_0x474605]&&''!==_0x3db4bf[_0x474605]['trim']()){_0x39891b=!0x0;break;}if(!_0x42e5a6(_0x5544b0[_0x474605],_0x4d25b1[_0x474605])&&Object['keys'](_0x5544b0[_0x474605])['length']>0x0){_0x39891b=!0x0;break;}}_0x39891b||(_0x39891b=_0x5d0f43['some'](_0x34f87e=>!this['editor']['model']['document']['getRoot'](_0x34f87e))),_0x39891b&&_0x46f080('editor-initial-data-replaced-with-revision-data',{'editorData':_0x3db4bf,'editorRootsAttributes':_0x5544b0,'revisionData':_0x4379ed,'revisionRootsAttributes':_0x4d25b1}),this['editor']['config']['set']('initialData',_0x4379ed),this['editor']['config']['set']('rootsAttributes',_0x4d25b1);}['_addPendingAction'](){if(!this['_pendingAction']){const _0xb21f0f=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0xb21f0f['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x5ad440){const _0x3446f3=this['repository']['getRevisions']();_0x3446f3['reverse']();let _0x2a2cce=0x0;for(;_0x2a2cce<_0x3446f3['length'];){const _0x2a9eae=_0x3446f3[_0x2a2cce];if(_0x2a9eae===this['currentRevision']){_0x2a2cce++;continue;}if(_0x2a9eae['id']===this['_initialRevisionId'])break;const _0x5dd39e=_0x5ad440['toVersion']-_0x2a9eae['toVersion']||_0x5ad440['fromVersion']-_0x2a9eae['fromVersion'];if(_0x5dd39e>0x0)break;if(_0x5dd39e<0x0)_0x2a2cce++;else{if(!_0x5ad440['creator']&&_0x2a9eae['creator'])break;if(_0x2a9eae['creator']||!_0x5ad440['creator']){if(_0x5ad440['createdAt']>_0x2a9eae['createdAt'])break;_0x2a2cce++;}else _0x2a2cce++;}}return _0x2a2cce;}['_getFromVersion'](_0x29f5b4){const _0x516795=this['repository']['getRevisions']();_0x516795['reverse'](),_0x516795['shift']();const _0x3ed8c4=_0x516795['find'](_0x29ef20=>_0x29ef20['toVersion']<=_0x29f5b4)['toVersion'];return _0x3ed8c4<this['_startingVersion']?this['_startingVersion']:_0x3ed8c4;}['_makeRevision']({name:_0x4df84b,from:_0x5d8239,to:_0x3435ef,creatorId:_0x182ca3,id:_0x5d4069}){const _0x5b8a11=this['buildRevisionData']({'from':_0x5d8239,'to':_0x3435ef});_0x5b8a11['name']=_0x4df84b,_0x5b8a11['creatorId']=_0x182ca3,_0x5b8a11['id']=_0x5d4069;const _0x1efe27=this['addRevisionData'](_0x5b8a11);return this['adapter']&&this['_bufferUpdate'](_0x5b8a11['id'],_0x5b8a11,!0x0),_0x1efe27;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class x{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x47e44b){this['editor']=_0x47e44b,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'](_0x265d69){this['source']=_0x265d69;const _0x34551d=new Map(),_0x2a1560=new Map(),_0x40a080=this['editor']['model']['document']['roots']['map'](_0x397006=>_0x397006['rootName']);for(const _0x32bdaf of _0x40a080){const _0x5f4581=this['editor']['model']['document']['getRoot'](_0x32bdaf),_0x4a07a8=N(_0x5f4581);_0x34551d['set'](_0x32bdaf,_0x4a07a8),_0x2a1560['set'](_0x32bdaf,Object['fromEntries'](_0x5f4581['getAttributes']()));}const _0x20d9fd=Array['from'](this['editor']['model']['markers'])['map'](_0x483cdf=>[_0x483cdf['name'],_0x483cdf['getRange']()]),_0x4e6990=this['source']['version'];this['_saveMetaData'](_0x4e6990,_0x34551d,_0x20d9fd,_0x2a1560),this['_startingRevisionId']=this['_revisionId'];const _0x1866b7=new Map(),_0x1fe40b=new Map();for(const _0x217f35 of _0x40a080){const _0x58fbaf=P(_0x217f35);_0x1866b7['set'](_0x217f35,_0x58fbaf),_0x1fe40b['set'](_0x217f35,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x1866b7,[],_0x1fe40b);}['getData'](_0x359713,_0x5aedf1){if(this['_lastFrom']===_0x359713&&this['_lastTo']<=_0x5aedf1)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x5aedf1,!0x0);else{if(!this['_savedMetaData']['has'](_0x359713)){const _0x25b786=this['_getPreviousFrom'](_0x359713);this['_calculateMetaData'](_0x25b786,_0x359713,!0x1);}this['_calculateMetaData'](_0x359713,_0x5aedf1,!0x0);}return this['_lastFrom']=_0x359713,this['_lastTo']=_0x5aedf1,this['_getState']();}['loadState'](_0x6ffcd3){const _0x2bb510=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x6ffcd3['fromVersion'],this['_lastTo']=_0x6ffcd3['toVersion'];for(const _0x1e874a in _0x6ffcd3['diffData']){const _0x39e919=_0x6ffcd3['diffData'][_0x1e874a]['attachChange'],_0x10afc9=_0x562ae2(_0x6ffcd3['diffData'][_0x1e874a]['attributesBefore'])||{},_0x1e9dd5=_0x2bb510['_makeModelFromViewString'](_0x6ffcd3['diffData'][_0x1e874a]['deletions']);_0x1e9dd5['rootName']=_0x1e874a,_0x1e9dd5['_isAttached']=!_0x39e919||!_0x39e919['isAttached'],_0x1e9dd5['isAttached']=()=>_0x1e9dd5['_isAttached'],this['_baseRoots']['set'](_0x1e874a,_0x1e9dd5),this['_baseRootsAttributes']['set'](_0x1e874a,_0x10afc9),_0x39e919&&this['_touchedRoots']['set'](_0x1e874a,_0x39e919);const _0x5853f1=this['_makeIdsRoot'](_0x1e9dd5);this['_baseIdsRoots']['set'](_0x1e874a,_0x5853f1);for(const [_0x4c1648,_0x45468b]of _0x1e9dd5['markers']){if(!_0x4c1648['startsWith']('revision:'))continue;const _0x5a3555=_0x4c1648['split'](':')[0x2];for(const _0x9dd807 of _0x45468b['getWalker']({'singleCharacters':!0x0})){const _0x1a2e83=this['_getVidAttributeName'](_0x9dd807),_0x22fd96='elementEnd'==_0x9dd807['type']?_0x9dd807['previousPosition']['path']['slice'](0x0,-0x1):_0x9dd807['previousPosition']['path'],_0x2c0642=_0x5853f1['getNodeByPath'](_0x22fd96)['getAttribute'](_0x1a2e83);this['_touched']['set'](_0x2c0642,{'userId':_0x5a3555});}}}this['_startingRevisionId']=this['_revisionId'];const _0x5b579f=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x19c649=>!this['_touched']['has'](_0x19c649));let _0x4d4ed5=0x0;const _0x13a04e=new Map();for(const _0x10d7ca in _0x6ffcd3['diffData']){const _0x275875=_0x6ffcd3['diffData'][_0x10d7ca]['attachChange'],_0x3c383d=_0x562ae2(_0x6ffcd3['diffData'][_0x10d7ca]['attributesAfter'])||{},_0x5b155e=_0x2bb510['_makeModelFromViewString'](_0x6ffcd3['diffData'][_0x10d7ca]['insertions']);_0x5b155e['rootName']=_0x10d7ca,_0x5b155e['_isAttached']=!_0x275875||_0x275875['isAttached'],_0x5b155e['isAttached']=()=>_0x5b155e['_isAttached'],this['_diffRoots']['set'](_0x10d7ca,_0x5b155e),this['_diffRootsAttributes']['set'](_0x10d7ca,_0x3c383d);const _0x2a3d5f=this['_makeIdsRoot'](_0x5b155e,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x10d7ca,_0x2a3d5f),_0x13a04e['set'](_0x10d7ca,_0x5b155e['isAttached']()?_0x3c383d:{});for(const [_0x25f092,_0x1fc446]of _0x5b155e['markers']){if(!_0x25f092['startsWith']('revision:'))continue;const _0xb8e55=_0x25f092['split'](':')[0x2];for(const _0x2b6ee6 of _0x1fc446['getWalker']({'singleCharacters':!0x0})){const _0x4a081b=this['_getVidAttributeName'](_0x2b6ee6),_0x4c3431=this['_revisionId']++,_0x442068='elementEnd'==_0x2b6ee6['type']?_0x2b6ee6['previousPosition']['path']['slice'](0x0,-0x1):_0x2b6ee6['previousPosition']['path'];_0x2a3d5f['getNodeByPath'](_0x442068)['_setAttribute'](_0x4a081b,_0x4c3431),this['_touched']['set'](_0x4c3431,{'userId':_0xb8e55});}}for(const _0x3fe6a1 of this['editor']['model']['createRangeIn'](_0x5b155e)['getWalker']({'singleCharacters':!0x0})){const _0x523e0b=this['_getVidAttributeName'](_0x3fe6a1),_0x409ab3='elementEnd'==_0x3fe6a1['type']?_0x3fe6a1['previousPosition']['path']['slice'](0x0,-0x1):_0x3fe6a1['previousPosition']['path'],_0x4b1a1d=_0x2a3d5f['getNodeByPath'](_0x409ab3);_0x4b1a1d['getAttribute'](_0x523e0b)>0x0||_0x4b1a1d['_setAttribute'](_0x523e0b,_0x5b579f[_0x4d4ed5++]);}for(const [_0x2748e6,_0x59a21d]of _0x5b155e['markers'])_0x2748e6['startsWith']('revision:')||this['_markers']['set'](_0x2748e6,_0x59a21d);}const _0x208c2b=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0x208c2b),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x208c2b,0x1));const _0x2995dc=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x2995dc),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x2995dc,0x1));const _0x29d491=Array['from'](this['_diffRoots'])['map'](([_0x1cf900,_0x40ff3d])=>[_0x1cf900,N(_0x40ff3d)]);this['_saveMetaData'](this['_lastTo'],_0x29d491,this['_markers'],_0x13a04e);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x27a441,_0x5eec8e,_0x57f3a3,_0x3db277){const _0x52f2b6=new Map(_0x5eec8e),_0x10ca42=new Map(_0x562ae2(_0x3db277)),_0x2a4e40=new Map();for(const [_0x57827f,_0x10e2d0]of _0x57f3a3)_0x2a4e40['set'](_0x57827f,{'start':_0x10e2d0['start']['clone'](),'end':_0x10e2d0['end']['clone'](),'rootName':_0x10e2d0['root']['rootName']});this['_savedMetaData']['set'](_0x27a441,{'roots':_0x52f2b6,'markers':_0x2a4e40,'rootsAttributes':_0x10ca42});}['_removeMetaData'](_0x328744){this['_savedMetaData']['delete'](_0x328744);}['_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'](_0x20c771,_0x1d817a=null){let _0x55c50c=null;_0x20c771['is']('documentFragment')||(_0x55c50c=new ut(_0x20c771['name'],{'vid_start':null===_0x1d817a?this['_revisionId']++:_0x1d817a++}));const _0x4f0d96=[];for(const _0x49838e of _0x20c771['getChildren']())if(_0x49838e['is']('element')){_0x4f0d96['push'](this['_makeIdsRoot'](_0x49838e,_0x1d817a));const _0x3b72f7=_0x4f0d96[_0x4f0d96['length']-0x1];null!==_0x1d817a&&(_0x1d817a=_0x3b72f7['is']('element','$text')?_0x3b72f7['getAttribute']('vid')+0x1:_0x3b72f7['getAttribute']('vid_end')+0x1);}else{for(let _0x2bb827=0x0;_0x2bb827<_0x49838e['offsetSize'];_0x2bb827++)_0x4f0d96['push'](new ut('$text',{'vid':null===_0x1d817a?this['_revisionId']++:_0x1d817a++}));}if(_0x20c771['is']('documentFragment')){const _0x2ade8b=P(_0x20c771['rootName']);return _0x2ade8b['_insertChild'](0x0,_0x4f0d96),_0x2ade8b;}return _0x55c50c['_setAttribute']('vid_end',null===_0x1d817a?this['_revisionId']++:_0x1d817a++),_0x55c50c['_insertChild'](0x0,_0x4f0d96),_0x55c50c;}['_calculateMetaData'](_0x3f6482,_0x153481,_0x273fa4){this['_reset']();const {roots:_0xf7bc90,markers:_0x493061,rootsAttributes:_0x4e4b88}=this['_savedMetaData']['get'](_0x3f6482);this['_baseRoots']=new Map(_0xf7bc90),this['_baseRootsAttributes']=new Map(_0x562ae2(_0x4e4b88));for(const [_0x4e5edc,_0x29d889]of this['_baseRoots'])if('$graveyard'!==_0x4e5edc&&(this['_diffRoots']['set'](_0x4e5edc,N(_0x29d889)),this['_diffRootsAttributes']=new Map(_0x562ae2(_0x4e4b88)),_0x273fa4)){const _0x11b668=this['_revisionId'];this['_idsRoots']['set'](_0x4e5edc,this['_makeIdsRoot'](_0x29d889)),this['_baseIdsRoots']['set'](_0x4e5edc,this['_makeIdsRoot'](_0x29d889,_0x11b668));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x273fa4&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x37ebca,_0x211834]of _0x493061){const _0x428396=this['_baseRoots']['get'](_0x211834['rootName']),_0x422a11=this['_diffRoots']['get'](_0x211834['rootName']),_0x398e9e=new lt(this['_fixPosition'](_0x211834['start'],_0x428396),this['_fixPosition'](_0x211834['end'],_0x428396)),_0x22024a=this['_fixRange'](_0x398e9e,_0x422a11);_0x428396['markers']['set'](_0x37ebca,_0x398e9e),this['_markers']['set'](_0x37ebca,_0x22024a);}this['_applyOperations'](_0x3f6482,_0x153481,_0x273fa4);}['_applyOperations'](_0x3bca42,_0x42e890,_0x3066dd){for(const _0x47e4e5 of this['source']['getOperations'](_0x3bca42,_0x42e890))this['_handleOperation'](_0x47e4e5,_0x3066dd);for(const _0x5e35d0 of this['_diffRoots']['values']())_0x5e35d0['markers']['clear']();for(const [_0x3bd392,_0x4559b0]of this['_markers']){this['_diffRoots']['get'](_0x4559b0['root']['rootName'])['markers']['set'](_0x3bd392,_0x4559b0['clone']());}const _0x4d5747=new Map(),_0x4de660=new Map();for(const [_0x53f2ba,_0x452ac8]of this['_diffRoots'])_0x4d5747['set'](_0x53f2ba,N(_0x452ac8)),_0x4de660['set'](_0x53f2ba,this['_diffRootsAttributes']['get'](_0x53f2ba));this['_saveMetaData'](_0x42e890,_0x4d5747,this['_markers'],_0x4de660);}['_getPreviousFrom'](_0x23f6e8){const _0x769619=Array['from'](this['_savedMetaData']['keys']());_0x769619['sort']((_0x377e50,_0x5a7aad)=>_0x377e50-_0x5a7aad),_0x769619['reverse']();for(const _0x51ea2b of _0x769619)if(_0x51ea2b<_0x23f6e8)return _0x51ea2b;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x393cf4,_0x2ab38b){const _0x5ad898=Array['from'](_0x2ab38b['markers'])['map'](([_0x1e5b49,_0x36cec7])=>[_0x1e5b49,this['_fixRange'](_0x36cec7,_0x393cf4)]);_0x393cf4['markers']=new Map(_0x5ad898);}['_transformMarkers'](_0x1d1513){for(const _0xb19e3a of this['_markers']['values']()){const _0x23e861=_0xb19e3a['getTransformedByOperation'](_0x1d1513),_0x1c3865=lt['_createFromRanges'](_0x23e861);_0xb19e3a['start']=_0x1c3865['start'],_0xb19e3a['end']=_0x1c3865['end'];}}['_handleOperation'](_0x9ce1bf,_0x3a7849){if('addRoot'!=_0x9ce1bf['type']&&'detachRoot'!=_0x9ce1bf['type']){if('insert'==_0x9ce1bf['type']){const _0xf2205e=_0x9ce1bf['position']['root']['rootName'];this['_diffRoots']['has'](_0xf2205e)||(this['_diffRoots']['set'](_0xf2205e,P(_0xf2205e,!0x0)),this['_diffRootsAttributes']['set'](_0xf2205e,{}),_0x3a7849&&this['_idsRoots']['set'](_0xf2205e,P(_0xf2205e,!0x0)));}else{if('addRootAttribute'==_0x9ce1bf['type']||'removeRootAttribute'==_0x9ce1bf['type']||'changeRootAttribute'==_0x9ce1bf['type'])return void this['_handleRootAttributeOperation'](_0x9ce1bf);'marker'==_0x9ce1bf['type']&&this['_handleMarkerOperation'](_0x9ce1bf);}if('marker'!==_0x9ce1bf['type']){const _0x982efb=this['_cloneOperation'](_0x9ce1bf,this['_diffRoots']);_0x982efb['_execute'](),this['_transformMarkers'](_0x982efb);}if(_0x3a7849)switch(_0x9ce1bf['type']){case'insert':this['_handleInsertOperation'](_0x9ce1bf);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x9ce1bf);break;case'merge':this['_handleMergeOperation'](_0x9ce1bf);break;case'split':this['_handleSplitOperation'](_0x9ce1bf);}}else this['_handleRootOperation'](_0x9ce1bf,_0x3a7849);}['_cloneOperation'](_0x22d6dd,_0x5eb7b1){const _0x1138d6=_0x22d6dd['clone']();return _0x1138d6['_authorId']=_0x22d6dd['_authorId'],this['_fixOperation'](_0x1138d6,_0x5eb7b1),_0x1138d6;}['_getBaseVids'](_0xbbb79f){return _0xbbb79f['map'](_0x3d9598=>{const _0x483278=this['_getVidAttributeName'](_0x3d9598);return Number(_0x3d9598['item']['getAttribute'](_0x483278));});}['_generateTape'](_0x28cee0,_0x5ab0cb){if(_0x28cee0['is']('element','$text'))_0x5ab0cb['push']({'item':_0x28cee0,'type':'text'});else{_0x28cee0['is']('element')&&_0x5ab0cb['push']({'item':_0x28cee0,'type':'elementStart'});for(const _0x12371b of _0x28cee0['getChildren']())this['_generateTape'](_0x12371b,_0x5ab0cb);_0x28cee0['is']('element')&&_0x5ab0cb['push']({'item':_0x28cee0,'type':'elementEnd'});}return _0x5ab0cb;}['_getState'](){const _0x4b45ca=new Map(this['_touched']),_0x38b15b=new Map(_0x4b45ca),_0x559305=new Map(),_0x5aea48={'insertions':{},'deletions':{}},_0x3cad9f={'insertions':{},'deletions':{}},_0x4ad50e=new Map(),_0x4dd2fa=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x4dd2fa['delete']('$graveyard');for(const _0x35a89d of _0x4dd2fa){const _0x4d1511=this['_diffRoots']['get'](_0x35a89d)||P(_0x35a89d,!0x1),_0x236714=this['_baseRoots']['get'](_0x35a89d)||P(_0x35a89d,!0x1);_0x4d1511['isAttached']()||_0x236714['isAttached']()?(_0x5aea48['insertions'][_0x35a89d]=N(_0x4d1511),_0x5aea48['deletions'][_0x35a89d]=N(_0x236714),this['_copyMarkers'](_0x5aea48['deletions'][_0x35a89d],_0x236714),this['_copyMarkers'](_0x5aea48['insertions'][_0x35a89d],_0x4d1511),_0x3cad9f['insertions'][_0x35a89d]=this['_generateTape'](this['_idsRoots']['get'](_0x35a89d),[]),_0x3cad9f['deletions'][_0x35a89d]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x35a89d)||P(_0x35a89d,!0x1),[])):_0x4dd2fa['delete'](_0x35a89d);}for(const _0xd15db5 of _0x4dd2fa){const _0x3e69c3=_0x3cad9f['insertions'][_0xd15db5];for(const _0x5f5cb2 of _0x3e69c3){const _0x33efdb=this['_getVidAttributeName'](_0x5f5cb2),_0x2e1058=_0x5f5cb2['item']['getAttribute'](_0x33efdb);_0x38b15b['delete'](_0x2e1058),_0x2e1058>=this['_startingRevisionId']&&_0x559305['set'](_0x2e1058,_0x4b45ca['get'](_0x2e1058));}}for(const _0x5aa140 of _0x4dd2fa){const _0xa0bc14=_0x3cad9f['insertions'][_0x5aa140],_0x4aa087=this['_getBaseVids'](_0x3cad9f['deletions'][_0x5aa140]);let _0x54463d=0x0;for(const _0x4bb061 of _0xa0bc14){const _0x11a3de=this['_getVidAttributeName'](_0x4bb061),_0x1943cd=_0x4bb061['item']['getAttribute'](_0x11a3de);if(!_0x559305['has'](_0x1943cd)&&!_0x4ad50e['has'](_0x1943cd)){if(_0x38b15b['has'](_0x1943cd))_0x54463d++;else{if(_0x1943cd!=_0x4aa087[_0x54463d]){const _0x23d88f=_0x4b45ca['get'](_0x1943cd)||_0x4b45ca['get'](_0x4aa087[_0x54463d]);for(;_0x1943cd!=_0x4aa087[_0x54463d];)_0x38b15b['has'](_0x4aa087[_0x54463d])||(_0x4ad50e['set'](_0x4aa087[_0x54463d],_0x23d88f),_0x4b45ca['set'](_0x4aa087[_0x54463d],_0x23d88f)),_0x54463d++;}_0x54463d++;}}}}for(const _0x3f5bfc of _0x4dd2fa){const _0x14b3a9=_0x3cad9f['insertions'][_0x3f5bfc];for(const _0xe14ea of _0x14b3a9){const _0x570bf1=this['_getVidAttributeName'](_0xe14ea),_0x405ac4=_0xe14ea['item']['getAttribute'](_0x570bf1);if(_0x4ad50e['has'](_0x405ac4)){const _0x5ef0ee=_0x4ad50e['get'](_0x405ac4);_0x38b15b['has'](_0x405ac4)||_0x38b15b['set'](_0x405ac4,{..._0x5ef0ee}),_0x559305['set'](_0x405ac4,{..._0x5ef0ee});}}}for(const _0x2fb904 of _0x38b15b['keys']())_0x2fb904>=this['_startingRevisionId']&&_0x38b15b['delete'](_0x2fb904);const _0x11d527=new Map();for(const _0x20915c of _0x4dd2fa){let _0x2554f3=_0x3cad9f['insertions'][_0x20915c];for(const _0x3e2f48 of _0x2554f3)if(_0x3e2f48['item']['is']('element','tableCell')){const _0x167284=this['_getVidAttributeName'](_0x3e2f48),_0x5a4485=_0x3e2f48['item']['getAttribute'](_0x167284);if(_0x559305['has'](_0x5a4485)){const _0x39acf0=_0x3e2f48['item']['parent']['parent']['getAttribute']('vid_start'),_0x30191b=_0x11d527['get'](_0x39acf0)||new Set();_0x30191b['add'](_0x559305['get'](_0x5a4485)['userId']),_0x11d527['set'](_0x39acf0,_0x30191b);}}_0x2554f3=_0x3cad9f['deletions'][_0x20915c];for(const _0x21663f of _0x2554f3)if(_0x21663f['item']['is']('element','tableCell')){const _0x1ad6e8=this['_getVidAttributeName'](_0x21663f),_0x5d74ae=_0x21663f['item']['getAttribute'](_0x1ad6e8);if(_0x38b15b['has'](_0x5d74ae)){const _0x3b2ecc=_0x21663f['item']['parent']['parent']['getAttribute']('vid_start'),_0x50d54b=_0x11d527['get'](_0x3b2ecc)||new Set();_0x50d54b['add'](_0x38b15b['get'](_0x5d74ae)['userId']),_0x11d527['set'](_0x3b2ecc,_0x50d54b);}}for(const _0x1e1bd8 of _0x11d527['keys']())(_0x559305['has'](_0x1e1bd8)||_0x38b15b['has'](_0x1e1bd8))&&_0x11d527['delete'](_0x1e1bd8);}for(const _0x10cc12 of _0x4dd2fa){const _0x5bc88d=_0x3cad9f['insertions'][_0x10cc12];let _0x2b83c3=null,_0x2ecbfc=null;for(const _0x5c6f95 of _0x5bc88d){const _0x36d401=this['_getVidAttributeName'](_0x5c6f95),_0x2fad5f=_0x5c6f95['item']['getAttribute'](_0x36d401),_0x4ce5d5=_0x11d527['get'](_0x2fad5f);_0x4ce5d5&&'elementStart'==_0x5c6f95['type']&&(_0x2b83c3=Array['from'](_0x4ce5d5)[0x0],_0x2ecbfc=_0x5c6f95['item']['getAttribute']('vid_end')),_0x2b83c3&&(_0x38b15b['set'](_0x2fad5f,{'userId':_0x2b83c3}),_0x559305['set'](_0x2fad5f,{'userId':_0x2b83c3})),_0x2fad5f==_0x2ecbfc&&(_0x2b83c3=null,_0x2ecbfc=null);}}const _0x529226={},_0x2faf38=new Set();for(const _0x47efdb of _0x4dd2fa){const _0x1924b6=_0x5aea48['deletions'][_0x47efdb],_0xc531a5=_0x5aea48['insertions'][_0x47efdb];for(const {userId:_0x58f5b7}of this['_touchedMarkers']['values']())null!==_0x58f5b7&&_0x2faf38['add'](_0x58f5b7);for(const {userId:_0x1c536c}of this['_touchedRoots']['values']())null!==_0x1c536c&&_0x2faf38['add'](_0x1c536c);this['_markChanges'](_0xc531a5,_0x3cad9f['insertions'][_0x47efdb],_0x559305,'insertion',_0x2faf38),this['_markChanges'](_0x1924b6,_0x3cad9f['deletions'][_0x47efdb],_0x38b15b,'deletion',_0x2faf38),_0x529226[_0x47efdb]={'insertions':this['_prepareViewToSave'](_0xc531a5),'deletions':this['_prepareViewToSave'](_0x1924b6),'attachChange':this['_touchedRoots']['get'](_0x47efdb)||null,'attributesBefore':_0x562ae2(this['_baseRootsAttributes']['get'](_0x47efdb))||{},'attributesAfter':_0x562ae2(this['_diffRootsAttributes']['get'](_0x47efdb))};}return{'diffData':_0x529226,'authorsIds':Array['from'](_0x2faf38)};}['_processRootBeforeSave'](_0x40789c){for(const [,_0x2de620]of _0x40789c['markers']){const _0x3d731b=_0x2de620['start']['getAncestors']()['filter'](_0x13ee98=>'tableCell'==_0x13ee98['name']);for(const _0x2b56e6 of _0x3d731b)0x1==_0x2b56e6['childCount']&&_0x2b56e6['getChild'](0x0)['is']('element','paragraph')&&_0x2b56e6['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x2d9c30){this['_processRootBeforeSave'](_0x2d9c30);const _0x3cfdf1=this['editor']['data']['toView'](_0x2d9c30,{}),_0x24a22c=Array['from'](_0x3cfdf1['getChildren']())['map'](_0x3277e7=>this['_getViewJson'](_0x3277e7));return JSON['stringify'](_0x24a22c);}['_getViewJson'](_0x36f0ef){if(_0x36f0ef['is']('$text'))return _0x36f0ef['data'];{const _0x18a0ad=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x9c8244=_0x36f0ef,_0x14a11f=this['editor']['data']['htmlProcessor']['domConverter'],_0x5f541a={'type':_0x18a0ad['_getTypeCharForViewElement'](_0x9c8244),'name':_0x9c8244['name'],'attributes':Array['from'](_0x9c8244['getAttributes']()),'children':Array['from'](_0x9c8244['getChildren']())['map'](_0x58bd5e=>this['_getViewJson'](_0x58bd5e))};if(_0x36f0ef['is']('uiElement')&&'$comment'!=_0x36f0ef['name']){const _0x15d91b=_0x36f0ef['render'](_0x14a11f['domDocument'],_0x14a11f);_0x5f541a['children']['push'](_0x15d91b['outerHTML']);}else{if(_0x36f0ef['is']('rawElement')){const _0x32b0ce=_0x14a11f['domDocument']['createElement'](_0x9c8244['name']);_0x36f0ef['render'](_0x32b0ce,_0x14a11f),_0x5f541a['children']['push'](_0x32b0ce['innerHTML']);}}const _0xeefca6=Array['from'](_0x9c8244['getCustomProperties']());_0xeefca6['length']>0x0&&(_0x5f541a['customProperties']=_0xeefca6);const _0x5c48c4=_0x9c8244['getFillerOffset']();return null!==_0x5c48c4&&(_0x5f541a['fillerOffset']=_0x5c48c4),_0x5f541a;}}['_markChanges'](_0x53ace3,_0x5a3012,_0x5d2a74,_0x1968f4,_0x3e4142){let _0x20ef52=null,_0x519df5=null,_0x19ef5d=0x0;const _0x4014d4=this['editor']['model'];for(let _0x55b011=0x0;_0x55b011<_0x5a3012['length'];_0x55b011++){const _0x5dbf9a=this['_getVidAttributeName'](_0x5a3012[_0x55b011]),_0x4a7b32=_0x5a3012[_0x55b011]['item']['getAttribute'](_0x5dbf9a),_0x2270f3=_0x5d2a74['get'](_0x4a7b32),_0x2c3815=_0x55b011==_0x5a3012['length']-0x1;(!_0x20ef52&&_0x2270f3&&(_0x20ef52=_0x2270f3,_0x519df5=_0x5a3012[_0x55b011]),_0x20ef52&&(!_0x2270f3||_0x2270f3['userId']!=_0x20ef52['userId']))&&(_0xf7ad8c(_0x2270f3,F(_0x519df5,_0x53ace3,_0x4014d4),F(_0x5a3012[_0x55b011],_0x53ace3,_0x4014d4)),_0x20ef52=_0x2270f3||null,_0x519df5=_0x2270f3?_0x5a3012[_0x55b011]:null),_0x20ef52&&_0x2c3815&&_0xf7ad8c(_0x2270f3,F(_0x519df5,_0x53ace3,_0x4014d4),B(_0x5a3012[_0x55b011],_0x53ace3,_0x4014d4));}function _0xf7ad8c(_0x2d33f6,_0x301224,_0x209a90){const _0x30ed73=_0x20ef52['userId'],_0x15e4c3='revision:'+_0x1968f4+':'+_0x30ed73+':'+_0x19ef5d++,_0x51c826=_0x4014d4['createRange'](_0x301224,_0x209a90);_0x53ace3['markers']['set'](_0x15e4c3,_0x51c826),null!==_0x30ed73&&_0x3e4142['add'](_0x30ed73);}}['_getVidAttributeName'](_0x56863b){switch(_0x56863b['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x1bd8c2,_0x163c75){_0x1bd8c2['baseVersion']=null;for(const _0x3ee395 in _0x1bd8c2){const _0x54dd97=_0x1bd8c2[_0x3ee395];if(_0x54dd97 instanceof ft){const _0x8a2aea=_0x163c75['get'](_0x54dd97['root']['rootName']);_0x1bd8c2[_0x3ee395]=this['_fixPosition'](_0x54dd97,_0x8a2aea);}if(_0x54dd97 instanceof lt){const _0x43547d=_0x163c75['get'](_0x54dd97['root']['rootName']);_0x1bd8c2[_0x3ee395]=this['_fixRange'](_0x54dd97,_0x43547d);}'root'===_0x3ee395&&(_0x1bd8c2['root']=_0x163c75['get'](_0x1bd8c2['root']['rootName']));}}['_fixRange'](_0x22ef6d,_0x158299){return this['editor']['model']['createRange'](this['_fixPosition'](_0x22ef6d['start'],_0x158299),this['_fixPosition'](_0x22ef6d['end'],_0x158299));}['_fixPosition'](_0x1b033e,_0x55655a){return this['editor']['model']['createPositionFromPath'](_0x55655a,_0x1b033e['path'],_0x1b033e['stickiness']);}['_handleInsertOperation'](_0x4de067){const _0x33b75e=this['_idsRoots']['get'](_0x4de067['position']['root']['rootName']),_0x3fb94d=this['_fixPosition'](_0x4de067['position'],_0x33b75e),_0x1595fb=null===_0x4de067['_authorId']?null:_0x4de067['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2e1392=_0x3fb94d['parent'],_0x3594cb=this['_revisionId'],_0x292209=[];for(const _0x395b54 of _0x4de067['nodes'])if(_0x395b54['is']('element'))_0x292209['push'](this['_makeIdsRoot'](_0x395b54));else{for(let _0x42e599=0x0;_0x42e599<_0x395b54['offsetSize'];_0x42e599++)_0x292209['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x25e170=this['_revisionId'];for(let _0x45ae17=_0x3594cb;_0x45ae17<_0x25e170;_0x45ae17++)this['_touched']['set'](_0x45ae17,{'userId':_0x1595fb});_0x2e1392['_insertChild'](_0x3fb94d['offset'],_0x292209);}['_handleMoveOperation'](_0x47905f){(_0x47905f=this['_cloneOperation'](_0x47905f,this['_idsRoots']))['_execute']();const _0x503772=null===_0x47905f['_authorId']?null:_0x47905f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5759db=_0x47905f['getMovedRangeStart'](),_0x15af7f=_0x5759db['parent'],_0x10d42a=_0x5759db['offset'];!function _0xd48a0e(_0x36e5d7,_0x43eeb3,_0x420cdb,_0x3d6e6f){for(let _0x415c8d=_0x420cdb;_0x415c8d<_0x3d6e6f;_0x415c8d++){const _0x5b26f5=_0x43eeb3['getChild'](_0x415c8d);_0x5b26f5['is']('element','$text')?_0x36e5d7['set'](_0x5b26f5['getAttribute']('vid'),{'userId':_0x503772}):(_0x36e5d7['set'](_0x5b26f5['getAttribute']('vid_start'),{'userId':_0x503772}),_0xd48a0e(_0x36e5d7,_0x5b26f5,0x0,_0x5b26f5['childCount']),_0x36e5d7['set'](_0x5b26f5['getAttribute']('vid_end'),{'userId':_0x503772}));}}(this['_touched'],_0x15af7f,_0x10d42a,_0x10d42a+_0x47905f['howMany']);}['_handleMergeOperation'](_0x55c08a){const _0x1f0ee4=null===(_0x55c08a=this['_cloneOperation'](_0x55c08a,this['_idsRoots']))['_authorId']?null:_0x55c08a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xe1b5de=_0x55c08a['targetPosition']['parent'],_0x1d5fdf=_0x55c08a['sourcePosition']['parent'],_0x5153c7=_0xe1b5de['getAttribute']('vid_end'),_0x340178=_0x1d5fdf['getAttribute']('vid_start');_0xe1b5de['_setAttribute']('vid_end',_0x1d5fdf['getAttribute']('vid_end')),_0x1d5fdf['_setAttribute']('vid_end',_0x5153c7),this['_touched']['set'](_0x340178,{'userId':_0x1f0ee4}),this['_touched']['set'](_0x5153c7,{'userId':_0x1f0ee4}),_0x55c08a['_execute']();}['_handleSplitOperation'](_0x4b61bd){const _0x256404=null===(_0x4b61bd=this['_cloneOperation'](_0x4b61bd,this['_idsRoots']))['_authorId']?null:_0x4b61bd['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1d3a72=_0x4b61bd['graveyardPosition'],_0x3d6634=_0x4b61bd['splitPosition']['parent'];_0x4b61bd['_execute']();const _0x4ecf30=_0x3d6634['getAttribute']('vid_end'),_0x7ec6d1=_0x4b61bd['insertionPosition']['nodeAfter'];if(_0x1d3a72){const _0x230744=_0x7ec6d1['getAttribute']('vid_end'),_0x269e7a=_0x3d6634['getAttribute']('vid_end');_0x3d6634['_setAttribute']('vid_end',_0x230744),_0x7ec6d1['_setAttribute']('vid_end',_0x269e7a),this['_touched']['set'](_0x3d6634['getAttribute']('vid_end'),{'userId':_0x256404}),this['_touched']['set'](_0x7ec6d1['getAttribute']('vid_start'),{'userId':_0x256404});}else{const _0x59243c=this['_revisionId']++,_0x16d6c2=this['_revisionId']++;_0x3d6634['_setAttribute']('vid_end',_0x59243c),_0x7ec6d1['_setAttribute']('vid_start',_0x16d6c2),_0x7ec6d1['_setAttribute']('vid_end',_0x4ecf30),this['_touched']['set'](_0x59243c,{'userId':_0x256404}),this['_touched']['set'](_0x16d6c2,{'userId':_0x256404});}}['_handleMarkerOperation'](_0x56793b){if(!_0x56793b['affectsData'])return;const _0x2c1cac=(_0x56793b=this['_cloneOperation'](_0x56793b,this['_diffRoots']))['oldRange']?_0x56793b['oldRange']['root']:null,_0x19a84b=_0x56793b['newRange']?_0x56793b['newRange']['root']:null;_0x2c1cac&&this['_markers']['delete'](_0x56793b['name']),_0x19a84b&&this['_markers']['set'](_0x56793b['name'],_0x56793b['newRange']['clone']());const _0x5a6016=null===_0x56793b['_authorId']?null:_0x56793b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xb944a8=_0x56793b['name'];if(!this['_touchedMarkers']['has'](_0xb944a8))return void this['_touchedMarkers']['set'](_0xb944a8,{'range':_0x56793b['oldRange'],'userId':_0x5a6016});const _0x294888=this['_touchedMarkers']['get'](_0xb944a8),_0x343d23=_0x294888['range'],_0x3d6a42=_0x56793b['newRange'];null==_0x343d23&&null==_0x3d6a42||_0x343d23&&_0x3d6a42&&_0x343d23['isEqual'](_0x3d6a42)?this['_touchedMarkers']['delete'](_0x56793b['name']):_0x294888['userId']=_0x5a6016;}['_handleRootOperation'](_0x45d795,_0x345cd6){this['_diffRoots']['has'](_0x45d795['rootName'])?this['_diffRoots']['get'](_0x45d795['rootName'])['_isAttached']=_0x45d795['isAdd']:(this['_diffRoots']['set'](_0x45d795['rootName'],P(_0x45d795['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x45d795['rootName'],{}),_0x345cd6&&this['_idsRoots']['set'](_0x45d795['rootName'],P(_0x45d795['rootName'],!0x0)));const _0x431400=null===_0x45d795['_authorId']?null:_0x45d795['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5e1635=this['_touchedRoots']['get'](_0x45d795['rootName']);_0x5e1635&&_0x5e1635['userId']===_0x431400?this['_touchedRoots']['delete'](_0x45d795['rootName']):this['_touchedRoots']['set'](_0x45d795['rootName'],{'userId':_0x431400,'isAttached':_0x45d795['isAdd']});}['_handleRootAttributeOperation'](_0x25318b){const _0x55a8f8=this['_diffRootsAttributes']['get'](_0x25318b['root']['rootName']);null===_0x25318b['newValue']?delete _0x55a8f8[_0x25318b['key']]:_0x55a8f8[_0x25318b['key']]=_0x25318b['newValue'];}}function N(_0x5e64f9){const _0x3cc18d=P(_0x5e64f9['rootName'],_0x5e64f9['isAttached']());for(const _0x271191 of _0x5e64f9['getChildren']()){const _0x5e7432=_0x271191['_clone'](!0x0);_0x3cc18d['_appendChild'](_0x5e7432);}return _0x3cc18d;}function P(_0x5ded71,_0x2053c4=!0x0){const _0x154475=new vt();return _0x154475['rootName']=_0x5ded71,_0x154475['_isAttached']=_0x2053c4,_0x154475['isAttached']=()=>_0x154475['_isAttached'],_0x154475;}function F(_0x3fc3dd,_0x27b353,_0x390588){const _0x5afd41='elementEnd'==_0x3fc3dd['type']?_0x390588['createPositionAt'](_0x3fc3dd['item'],'end'):_0x390588['createPositionBefore'](_0x3fc3dd['item']);return _0x390588['createPositionFromPath'](_0x27b353,_0x5afd41['path'],_0x5afd41['stickiness']);}function B(_0x2d69b6,_0x10a94a,_0xb5f787){const _0x198c6e='elementStart'==_0x2d69b6['type']?_0xb5f787['createPositionAt'](_0x2d69b6['item'],0x0):_0xb5f787['createPositionAfter'](_0x2d69b6['item']);return _0xb5f787['createPositionFromPath'](_0x10a94a,_0x198c6e['path'],_0x198c6e['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x33b74a,_0x494d0a){super(_0x33b74a),this['focusTracker']=new _0x4e2270(),this['keystrokes']=new _0x15de6e(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x494d0a),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x5c7872(this);}['render'](){super['render'](),_0x1323b9({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x2b2699=_0xba2037=>_0xba2037['stopPropagation']();this['keystrokes']['set']('arrowright',_0x2b2699),this['keystrokes']['set']('arrowleft',_0x2b2699),this['keystrokes']['set']('arrowup',_0x2b2699),this['keystrokes']['set']('arrowdown',_0x2b2699);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x4ab577){this['revisionNameInputView']['fieldView']['element']['value']=_0x4ab577['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x371b33){const _0x19fe64=new _0x11c4b5(this['locale'],_0x3a9229),_0x990c04=_0x19fe64['fieldView'];_0x990c04['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x5a7bc5=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x371b33&&(_0x5a7bc5+='\x20('+g(this['locale'],'optional')+')'),(_0x19fe64['label']=_0x5a7bc5,_0x990c04['on']('input',()=>{this['revisionNameInputValue']=_0x990c04['element']['value']['trim']();}),_0x19fe64);}}class f extends _0x351143{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x3f910a=this['editor'],_0x179a88=_0x3f910a['plugins']['get']('RevisionTracker');_0x3f910a['ui']['componentFactory']['add']('revisionHistory',_0x5b133d=>{const _0x5e9819=_0x4440ab(_0x5b133d),_0x450255=_0x5e9819['panelView']['children'],_0x1a594f=new _0x3e5b0e(_0x5b133d),_0x4a1f88=new _0x48c754(_0x5b133d),_0x175ed3=new te(_0x5b133d),_0x1317a7=new _0x48c754(_0x5b133d),_0xfc09a8=new te(_0x5b133d);return _0x5e9819['bind']('isEnabled')['to'](_0x179a88,'isReady',_0x179a88,'isEnabled',_0x3f910a,'isReadOnly',(_0x30f7ad,_0x6cd258,_0x2fcbd5)=>_0x30f7ad&&_0x6cd258&&!_0x2fcbd5),_0x5e9819['buttonView']['set']({'icon':_0x5d5eaa,'label':g(_0x5b133d,'Revision\x20history'),'tooltip':!0x0}),_0x175ed3['set']({'label':g(_0x5b133d,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x175ed3['bind']('isEnabled')['to'](_0x179a88,'isReady',_0x179a88,'isEnabled',_0x3f910a,'isReadOnly',(_0x4cfb5c,_0x24708d,_0x5a1735)=>_0x4cfb5c&&_0x24708d&&!_0x5a1735),_0x175ed3['on']('execute',()=>this['_showDialog']()),_0xfc09a8['set']({'label':g(_0x5b133d,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0xfc09a8['bind']('isEnabled')['to'](_0x179a88,'isReady',_0x3f910a,'isReadOnly',(_0x555695,_0x2f5710)=>_0x555695&&!_0x2f5710),_0xfc09a8['on']('execute',()=>{_0x3f910a['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x5e9819['isOpen']=!0x1,_0x3f910a['editing']['view']['focus']();}),_0x4a1f88['children']['add'](_0x175ed3),_0x1317a7['children']['add'](_0xfc09a8),_0x1a594f['role']='menu',_0x1a594f['items']['addMany']([_0x4a1f88,_0x1317a7]),_0x450255['add'](_0x1a594f),_0x5e9819;}),_0x3f910a['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x3d242c=this['editor'],_0x45b611=_0x3d242c['locale'],_0x592e82=new _0x3df5af(_0x45b611),_0x3f69b5=new _0x4477c4(_0x45b611);_0x592e82['buttonView']['set']({'icon':_0x5d5eaa,'label':g(_0x45b611,'Revision\x20history')});const _0x59394a=new _0x143d82(_0x45b611,_0x592e82),_0x1bfd0b=new _0x4e93a3(_0x45b611);_0x1bfd0b['set']({'label':g(_0x45b611,'Save\x20current\x20revision')}),_0x1bfd0b['delegate']('execute')['to'](_0x592e82),_0x1bfd0b['on']('execute',()=>{this['_showDialog']();}),_0x59394a['children']['add'](_0x1bfd0b),_0x3f69b5['items']['add'](_0x59394a);const _0x354959=new _0x143d82(_0x45b611,_0x592e82),_0x119e0a=new _0x4e93a3(_0x45b611);return _0x119e0a['set']({'label':g(_0x45b611,'Open\x20revision\x20history')}),_0x119e0a['delegate']('execute')['to'](_0x592e82),_0x119e0a['on']('execute',()=>{_0x3d242c['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x354959['children']['add'](_0x119e0a),_0x3f69b5['items']['add'](_0x354959),_0x592e82['panelView']['children']['add'](_0x3f69b5),_0x592e82;}['_showDialog'](){const _0x393bab=this['editor'],_0x2229e0=_0x393bab['locale'],_0x451a2b=_0x393bab['plugins']['get']('Dialog'),_0x757103=_0x393bab['plugins']['get']('RevisionTracker');function _0x551ea8(_0x2b4c57){_0x393bab['config']['get']('revisionHistory.requireRevisionName')&&''===_0x2b4c57['revisionName']?_0x2b4c57['revisionNameInputView']['errorText']=g(_0x2229e0,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x393bab['plugins']['get'](u)['saveRevision']({'name':_0x2b4c57['revisionName']}),_0x451a2b['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x551ea8(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x451a2b['show']({'id':'revisionSave','title':g(_0x2229e0,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x393bab['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x451a2b['hide']()},{'label':g(_0x393bab['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x3540b2){_0x3540b2['bind']('isEnabled')['to'](_0x757103,'isReady',_0x757103,'isEnabled',_0x393bab,'isReadOnly',(_0x13d12a,_0x291faa,_0x27c8fb)=>_0x13d12a&&_0x291faa&&!_0x27c8fb);},'onExecute':()=>_0x551ea8(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x1f5627=this['editor'],_0x4e51d2=_0x1f5627['locale'];this['_saveRevisionFormView']=new hs(_0x4e51d2,_0x1f5627['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends ts{['changeId'];['_model'];constructor(_0x44ee06,_0x4bcd69){super(_0x44ee06),this['_model']=_0x4bcd69,this['changeId']=_0x4bcd69['id'];const _0x2829c6=this['bindTemplate'],_0x37dc39=g(_0x44ee06,_0x4bcd69['data']['isSuggestion']?'Suggested\x20by':'add'==_0x4bcd69['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x4bcd69['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x2829c6['to']('type',_0x2e671d=>'ck-revision-change__'+_0x2e671d)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x37dc39}]},{'text':'\x20'+_0x4bcd69['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0xc2ac12(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x5b578a){super(),this['id']=_0x5b578a['id']||_0x33deb6(),this['author']=_0x5b578a['author'],this['type']=_0x5b578a['type'],this['data']=_0x5b578a['data']||{},this['rootName']=_0x5b578a['rootName'],this['set']('createdAt',_0x5b578a['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class c{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x30bd67,_0xc8aa19){this['newRevisionId']=_0x30bd67,this['oldRevisionId']=_0xc8aa19,this['changes']=new _0x9da6d5();}['_setChanges'](_0x12f1d5){for(const _0x143730 of _0x12f1d5)this['changes']['add'](_0x143730);}}class m extends _0x351143{['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[_0x2ff871,_0x1708e9,I,V];}constructor(_0x2289a9){super(_0x2289a9),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',(_0x5d59e0,_0x1ca0d5,_0x2fc6f8)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x177891=>{for(const _0x1eb000 of this['editor']['editing']['view']['document']['roots'])_0x2fc6f8?_0x177891['removeClass']('ck-editor__editable__overlay',_0x1eb000):_0x177891['addClass']('ck-editor__editable__overlay',_0x1eb000);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x42251e=>null!==_0x42251e),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x2749cb,_0x53e56b,_0xb3577f)=>_0x2749cb&&_0xb3577f?_0x53e56b['changes']['getIndex'](_0xb3577f):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x53005d,_0x4360dc)=>_0x53005d?_0x4360dc['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x1708e9);}['init'](){const _0x5af429=this['editor'],_0x3e9440=new wt(_0x5af429,{'direction':'backward'}),_0x5b87d7=new wt(_0x5af429,{'direction':'forward'});(_0x5af429['commands']['add']('showPreviousChange',_0x3e9440),_0x5af429['commands']['add']('showNextChange',_0x5b87d7),_0x5af429['commands']['add']('restoreRevision',new mt(_0x5af429)),this['on']('change:numberOfChanges',()=>{_0x3e9440['refresh'](),_0x5b87d7['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x5af429['enableReadOnlyMode']('revision-viewer'),_0x5af429['plugins']['has']('WidgetToolbarRepository'))&&_0x5af429['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0xae5c89){return await this['_utils']['loadRevisionData'](_0xae5c89,this['adapter']),this['_utils']['getRevisionDocumentData'](_0xae5c89);}async['getRevisionRootsAttributes'](_0x4c8c87){return await this['_utils']['loadRevisionData'](_0x4c8c87,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x4c8c87);}async['compare'](_0x5da3de,_0x4c627a,_0x4d13f3=!0x1){if(!this['isEnabled'])return;const _0x38f40f=this['diff'],_0x2da09a=this['repository'],_0x1a6292='string'==typeof _0x5da3de?_0x2da09a['getRevision'](_0x5da3de):_0x5da3de,_0x588125='string'==typeof _0x4c627a?_0x2da09a['getRevision'](_0x4c627a):_0x4c627a,_0x9f51e=_0x1a6292['id'],_0x2636d9=_0x588125?_0x588125['id']:null;if(!_0x4d13f3&&this['diff']&&this['diff']['newRevisionId']===_0x9f51e&&this['diff']['oldRevisionId']===_0x2636d9)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x9f51e,_0x2636d9);const _0x580008=this['_getRevisionsRange'](_0x1a6292,_0x588125,!0x0)['map'](_0x259dd8=>this['_utils']['loadRevisionData'](_0x259dd8,this['adapter']));return _0x580008['push'](new Promise(_0x457471=>{setTimeout(_0x457471,0x14);})),Promise['all'](_0x580008)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x565fb2=this['_getDiff'](_0x9f51e,_0x2636d9);for(const _0x57dbac of _0x565fb2['changes'])this['_changeIdToChange']['set'](_0x57dbac['id'],_0x57dbac);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x34bb91=>{for(const _0xbd0796 of this['editor']['model']['document']['getRootNames']())_0x34bb91['detachRoot'](_0xbd0796);for(const _0x35c109 of Object['keys'](_0x565fb2['model'])){const _0x1fefac=_0x34bb91['addRoot'](_0x35c109);for(const _0x25fe30 of Object['keys'](_0x565fb2['attributes'][_0x35c109]))_0x34bb91['setAttribute'](_0x25fe30,_0x565fb2['attributes'][_0x35c109][_0x25fe30],_0x1fefac);_0x34bb91['insert'](_0x565fb2['model'][_0x35c109],_0x1fefac,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x565fb2['changes'])),this['isReady']=!0x0;})['catch'](_0xa0d959=>{console['error'](_0xa0d959),this['_cleanUp'](),_0x38f40f&&(this['diff']=_0x38f40f),this['isReady']=!0x0;});}['addRevisionData'](_0x57c309,_0x540a6e){const _0x169603=this['repository']['createRevision'](_0x57c309);return _0x169603['on']('_update',(_0x5b36f7,_0x1ecaea,_0x33d4ac)=>_0x540a6e(_0x1ecaea,_0x33d4ac,_0x169603)),this['repository']['addRevision'](_0x169603),_0x169603;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x105c32=>{for(const _0x51b77d of this['editor']['model']['document']['getRootNames']())_0x105c32['detachRoot'](_0x51b77d);});}['_sortAndFilterDiffChanges'](_0x51f8c9){const _0x2e07c0=[],_0x3447b8=new Map();for(const _0x4e87a9 of this['editor']['model']['document']['getRootNames']()){const _0x1365f3=this['editor']['editing']['view']['getDomRoot'](_0x4e87a9);if(!_0x1365f3)continue;const _0x128315=_0x1365f3['getClientRects']()['item'](0x0);_0x128315&&(_0x2e07c0['push'](_0x4e87a9),_0x3447b8['set'](_0x4e87a9,_0x128315));}return _0x2e07c0['sort']((_0x5a9cac,_0x1102a3)=>{const _0x3f89dc=_0x3447b8['get'](_0x5a9cac),_0x4f68dc=_0x3447b8['get'](_0x1102a3);return _0x3f89dc['y']-_0x4f68dc['y']||_0x3f89dc['x']-_0x4f68dc['x'];}),(_0x51f8c9=_0x51f8c9['filter'](_0x2c7f2b=>_0x2e07c0['includes'](_0x2c7f2b['rootName'])))['sort']((_0x1c5457,_0x6876be)=>_0x2e07c0['indexOf'](_0x1c5457['rootName'])-_0x2e07c0['indexOf'](_0x6876be['rootName'])),_0x51f8c9;}['_makeTape'](_0x2bc385){const _0x4b50e0=Array['from'](_0x2bc385['markers'])['filter'](([_0x3e9ee6,_0x5a8501])=>_0x3e9ee6['startsWith']('revision:')&&!_0x5a8501['isCollapsed']),_0x4a64a9=Array['from'](this['editor']['model']['createRangeIn'](_0x2bc385)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x4b50e0['length'])for(const _0x5cc789 of _0x4a64a9){const [_0x41cdb6,_0x41de84]=_0x4b50e0[0x0],[,_0x4a5aec,_0x1bbf0f]=_0x41cdb6['split'](':');if(_0x41de84['end']['isEqual'](_0x5cc789['nextPosition'])&&_0x4b50e0['shift'](),(_0x5cc789['previousPosition']['isEqual'](_0x41de84['start'])||_0x5cc789['previousPosition']['isAfter'](_0x41de84['start']))&&('insertion'==_0x4a5aec?_0x5cc789['isAdded']={'userId':_0x1bbf0f}:'deletion'==_0x4a5aec&&(_0x5cc789['isRemoved']={'userId':_0x1bbf0f})),0x0==_0x4b50e0['length'])break;}return _0x4a64a9;}['_refreshStartEndIndex'](_0x36e1cc){const _0x89b994=new Map();for(let _0x4bad29=0x0;_0x4bad29<_0x36e1cc['length'];_0x4bad29++)'text'===_0x36e1cc[_0x4bad29]['type']?(_0x36e1cc[_0x4bad29]['item']['startIndex']=_0x4bad29,_0x36e1cc[_0x4bad29]['item']['endIndex']=_0x4bad29):('elementStart'===_0x36e1cc[_0x4bad29]['type']?_0x36e1cc[_0x4bad29]['item']['startIndex']=_0x4bad29:'elementEnd'===_0x36e1cc[_0x4bad29]['type']&&(_0x36e1cc[_0x4bad29]['item']['endIndex']=_0x4bad29),_0x89b994['set'](_0x36e1cc[_0x4bad29]['id'],_0x4bad29));for(const _0x290f01 of _0x89b994['values']())'elementStart'===_0x36e1cc[_0x290f01]['type']?_0x36e1cc[_0x290f01]['item']['endIndex']=_0x89b994['get'](_0x36e1cc[_0x290f01]['pairId']):'elementEnd'===_0x36e1cc[_0x290f01]['type']&&(_0x36e1cc[_0x290f01]['item']['startIndex']=_0x89b994['get'](_0x36e1cc[_0x290f01]['pairId']));}['_processTape'](_0x263e2f){for(let _0xf948a2=0x0;_0xf948a2<_0x263e2f['length'];_0xf948a2++){if('elementStart'===_0x263e2f[_0xf948a2]['type'])_0x263e2f[_0xf948a2]['item']['startIndex']=_0xf948a2;else{if('elementEnd'===_0x263e2f[_0xf948a2]['type']){_0x263e2f[_0xf948a2]['item']['endIndex']=_0xf948a2;const _0x1a54fd=_0x263e2f[_0xf948a2]['item']['startIndex'];_0x263e2f[_0x1a54fd]['pairId']=_0x263e2f[_0xf948a2]['id'],_0x263e2f[_0xf948a2]['pairId']=_0x263e2f[_0x1a54fd]['id'];}else _0x263e2f[_0xf948a2]['item']['startIndex']=_0xf948a2,_0x263e2f[_0xf948a2]['item']['endIndex']=_0xf948a2,_0x263e2f[_0xf948a2]['pairId']=null;}_0x263e2f[_0xf948a2]['markersStart']||(_0x263e2f[_0xf948a2]['markersStart']=[],_0x263e2f[_0xf948a2]['markersEnd']=[]);}}['_markInsertions'](_0x25a0f8,_0x258bf4){const _0x4a9fac=_0x25a0f8['filter'](_0x2eb28d=>!_0x2eb28d['isAdded']);for(let _0x4d17d6=0x0;_0x4d17d6<_0x258bf4['length'];_0x4d17d6++)_0x258bf4[_0x4d17d6]['isAdded']&&(_0x4a9fac[_0x4d17d6]['isAdded']=_0x258bf4[_0x4d17d6]['isAdded']);}['_getDiff'](_0x1267e7,_0x1c3835=null){const _0x1de542=this['repository']['getRevision'](_0x1267e7),_0x53a5c0=_0x1c3835?this['repository']['getRevision'](_0x1c3835):null,_0x3dbe48=this['_getRevisionsRange'](_0x1de542,_0x53a5c0),_0x10a2b8=_0x3dbe48[_0x3dbe48['length']-0x1],_0x170b11=new Map(),_0x3fdbcb={'model':{},'attributes':{},'changes':[]},_0x5f133c=new Set(),_0x5d3c86=new Map();for(let _0x360feb=_0x3dbe48['length']-0x1;_0x360feb>=0x0;_0x360feb--){const _0x4eda3e=_0x3dbe48[_0x360feb];for(const _0x28670a of Object['keys'](_0x4eda3e['diffData']))if(_0x4eda3e['diffData'][_0x28670a]['attachChange']){const _0xf24377=_0x4eda3e['diffData'][_0x28670a]['attachChange'];_0xf24377['isAttached']?(_0x5f133c['add'](_0x28670a),_0x5d3c86['has'](_0x28670a)&&_0x5d3c86['get'](_0x28670a)['userId']==_0xf24377['userId']?_0x5d3c86['delete'](_0x28670a):_0x5d3c86['set'](_0x28670a,_0xf24377)):_0x5d3c86['has'](_0x28670a)?(_0x5f133c['delete'](_0x28670a),_0x5d3c86['delete'](_0x28670a)):(_0x5f133c['add'](_0x28670a),_0x5d3c86['set'](_0x28670a,_0xf24377));}else _0x5f133c['add'](_0x28670a);}for(const _0x1279ff of _0x5f133c){const _0xe6cf52=_0x5d3c86['has'](_0x1279ff)&&!_0x5d3c86['get'](_0x1279ff)['isAttached'];let _0x24e396=_0xe6cf52?_0x3dbe48['length']-0x1:0x0;const _0x26df8a=_0xe6cf52?-0x1:0x1;for(;_0x3dbe48[_0x24e396];){const _0x865468=_0x3dbe48[_0x24e396];if(_0x865468['diffData'][_0x1279ff]){const _0x40bc96=_0xe6cf52?_0x865468['diffData'][_0x1279ff]['attributesBefore']:_0x865468['diffData'][_0x1279ff]['attributesAfter'];_0x3fdbcb['attributes'][_0x1279ff]=_0x40bc96?_0x562ae2(_0x40bc96):{};break;}_0x24e396+=_0x26df8a;}}for(const _0x53cdaa of _0x3dbe48){_0x53cdaa['model']={};for(const _0x5d7e9b of _0x53cdaa['authors'])_0x170b11['set'](_0x5d7e9b['id'],_0x5d7e9b);for(const _0x48287c of _0x5f133c){const _0x5d8e75=_0x53cdaa['diffData'][_0x48287c]?_0x53cdaa['diffData'][_0x48287c]['insertions']:'[]',_0x296fb8=_0x53cdaa['diffData'][_0x48287c]?_0x53cdaa['diffData'][_0x48287c]['deletions']:'[]';_0x53cdaa['model'][_0x48287c]={'insertions':this['_utils']['_makeModelFromViewString'](_0x5d8e75),'deletions':this['_utils']['_makeModelFromViewString'](_0x296fb8)};}}for(const _0x284edc of _0x5f133c){let _0x10b6ee=null,_0x5ca627=0x0;const _0x1ea95c=new Map(Array['from'](_0x1de542['model'][_0x284edc]['insertions']['markers'])['filter'](([_0x1b4bdc])=>!_0x1b4bdc['startsWith']('revision:')));let _0x43c69a=0x0;for(const _0x2e3506 of _0x3dbe48){const _0x4e3ce7=this['_makeTape'](_0x2e3506['model'][_0x284edc]['insertions']);_0x2e3506==_0x1de542?(_0x10b6ee=_0x4e3ce7,_0x5ca627=_0x10b6ee['length'],_0x10b6ee['forEach'](_0x59799b=>{_0x59799b['id']=_0x43c69a++;}),this['_processTape'](_0x10b6ee)):this['_markInsertions'](_0x10b6ee,_0x4e3ce7);const _0x53140f=_0x10b6ee['filter'](_0x501c4d=>!_0x501c4d['isAdded'])['map'](_0x2d84f9=>_0x2d84f9['id']);let _0x1f10da=0x0;const _0x40020a=this['_makeTape'](_0x2e3506['model'][_0x284edc]['deletions']);_0x40020a['forEach'](_0x549575=>{_0x549575['isRemoved']?_0x549575['id']=_0x5ca627++:_0x549575['id']=_0x53140f[_0x1f10da++];}),this['_processTape'](_0x40020a),this['_setDistance'](_0x10b6ee,'isAdded'),this['_setDistance'](_0x40020a,'isRemoved'),_0x2e3506==_0x1de542&&this['_markMarkers'](_0x10b6ee,_0x1ea95c),_0x10b6ee=this['_joinTapes'](_0x10b6ee,_0x40020a),this['_refreshStartEndIndex'](_0x10b6ee),this['_setDistance'](_0x10b6ee,'isRemoved');}_0x10b6ee=_0x10b6ee['filter'](_0x191153=>!(_0x191153['isAdded']&&_0x191153['isRemoved']));const _0x4df4ce=new Map(_0x10a2b8['model'][_0x284edc]['deletions']['markers']),_0x12b3e4=new Set(_0x1ea95c['keys']());for(const _0x3e11d7 of _0x4df4ce['keys']())_0x12b3e4['delete'](_0x3e11d7);this['_markSuggestions'](_0x10b6ee,_0x12b3e4),this['_fixObsoleteTags'](_0x10b6ee),_0x10b6ee=this['_removeMissingPairs'](_0x10b6ee),_0x10b6ee=this['_markMismatchedRemovedTags'](_0x10b6ee),_0x10b6ee=this['_removeUnsupportedChanges'](_0x10b6ee);const {root:_0x4bbc57,changes:_0x3fba6f}=this['_makeModelFromTape'](_0x10b6ee,_0x170b11,_0x284edc);_0x3fdbcb['model'][_0x284edc]=_0x4bbc57;const _0x543081=_0x5d3c86['get'](_0x284edc);if(_0x543081){const _0x46c9ce=_0x170b11['get'](_0x543081['userId']),_0x4dae68=new r({'author':_0x46c9ce,'type':_0x543081['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x284edc});_0x3fba6f['unshift'](_0x4dae68),_0x3fdbcb['attributes'][_0x284edc]['revisionHistoryAttachChange']=_0x4dae68['id'];}_0x3fdbcb['changes']=_0x3fdbcb['changes']['concat'](_0x3fba6f);}return _0x3fdbcb;}['_markMarkers'](_0x2a390e,_0x31b3bf){for(let _0x299dc9=0x0;_0x299dc9<_0x2a390e['length'];_0x299dc9++)for(const [_0x4ec28a,_0x48926f]of _0x31b3bf)!_0x48926f['isCollapsed']&&_0x48926f['start']['isEqual'](_0x2a390e[_0x299dc9]['previousPosition'])&&_0x2a390e[_0x299dc9]['markersStart']['push'](_0x4ec28a),_0x48926f['end']['isEqual'](_0x2a390e[_0x299dc9]['nextPosition'])&&_0x2a390e[_0x299dc9]['markersEnd']['push'](_0x4ec28a);}['_joinTapes'](_0x46496a,_0x25a298){let _0x2c0f14=[],_0x5c840b=0x0,_0x512777=0x0;for(;_0x5c840b<_0x46496a['length']||_0x512777<_0x25a298['length'];){const _0x19c9d5=_0x46496a[_0x5c840b]||{},_0x31c744=_0x25a298[_0x512777]||{};if(_0x19c9d5['id']==_0x31c744['id'])_0x5c840b++,_0x512777++,_0x2c0f14['push'](_0x19c9d5);else{if(_0x31c744['isRemoved']&&_0x19c9d5['isAdded']){const {commonTape:_0x55868a,iEnd:_0x802270,jEnd:_0x1a4ec3}=this['_threeWayMerge'](_0x46496a,_0x5c840b,_0x25a298,_0x512777);_0x2c0f14=_0x2c0f14['concat'](_0x55868a),_0x5c840b=_0x802270,_0x512777=_0x1a4ec3;}else _0x31c744['isRemoved']?(_0x512777++,_0x2c0f14['push'](_0x31c744)):(_0x5c840b++,_0x2c0f14['push'](_0x19c9d5));}}return _0x2c0f14;}['_markSuggestions'](_0x5d7414,_0x49ba1d){const _0x44709a=[];for(let _0x439a9f=0x0;_0x439a9f<_0x5d7414['length'];_0x439a9f++){for(let _0x419567=0x0;_0x419567<_0x5d7414[_0x439a9f]['markersStart']['length'];_0x419567++){const _0x37003a=_0x5d7414[_0x439a9f]['markersStart'][_0x419567];if(!_0x49ba1d['has'](_0x37003a))continue;const {group:_0x12f496,type:_0x70ef9d,authorId:_0x18c184}=_0x1132fa(_0x37003a);'revision-suggestion'!=_0x12f496||'insertion'!=_0x70ef9d&&'deletion'!=_0x70ef9d||(_0x44709a['unshift']({'type':_0x70ef9d,'name':_0x37003a,'userId':_0x18c184}),_0x5d7414[_0x439a9f]['markersStart']['splice'](_0x419567,0x1),_0x419567--);}_0x5c1d46(_0x5d7414[_0x439a9f]);for(let _0x423f52=0x0;_0x423f52<_0x5d7414[_0x439a9f]['markersEnd']['length'];_0x423f52++){const _0x4ab972=_0x5d7414[_0x439a9f]['markersEnd'][_0x423f52];if(!_0x49ba1d['has'](_0x4ab972))continue;const {group:_0x3a0eea,type:_0x3258f6}=_0x1132fa(_0x4ab972);if('revision-suggestion'!=_0x3a0eea||'insertion'!=_0x3258f6&&'deletion'!=_0x3258f6)continue;_0x5d7414[_0x439a9f]['markersEnd']['splice'](_0x423f52,0x1),_0x423f52--;const _0xb7c331=_0x44709a['findIndex'](_0x47322e=>_0x47322e['name']==_0x4ab972);_0xb7c331>-0x1&&_0x44709a['splice'](_0xb7c331,0x1);}}function _0x1132fa(_0xf94a50){const _0x3fd214=_0xf94a50['split'](':');return{'group':_0x3fd214[0x0],'type':_0x3fd214[0x1],'subType':_0x3fd214['length']>=0x5?_0x3fd214[0x2]:null,'id':_0x3fd214['length']<0x5?_0x3fd214[0x2]:_0x3fd214[0x3],'authorId':_0x3fd214['length']<0x5?_0x3fd214[0x3]:_0x3fd214[0x4],'markerCount':0x6==_0x3fd214['length']?_0x3fd214[0x5]:null};}function _0x5c1d46(_0x245d2e){for(let _0x2b6391=0x0;_0x2b6391<_0x44709a['length'];_0x2b6391++){if(_0x245d2e['isAdded']&&'insertion'==_0x44709a[_0x2b6391]['type']&&_0x245d2e['isAdded']['userId']==_0x44709a[_0x2b6391]['userId'])return _0x245d2e['isAddSuggestion']=_0x44709a[_0x2b6391],void delete _0x245d2e['isAdded'];if(!_0x245d2e['isAdded']&&!_0x245d2e['isRemoved']&&'deletion'==_0x44709a[_0x2b6391]['type'])return void(_0x245d2e['isRemoveSuggestion']=_0x44709a[_0x2b6391]);}}}['_setDistance'](_0x20ec09,_0xd519a8){let _0x1a83b9=0x0,_0x5e35a4=!0x1;const _0x27155d=new Map();for(const _0x5ee7d2 of _0x20ec09)_0x5ee7d2[_0xd519a8]?_0x5e35a4&&(_0x1a83b9++,_0x5e35a4=!0x1):(_0x1a83b9++,_0x5e35a4=!0x0),_0x27155d['set'](_0x5ee7d2['id'],_0x1a83b9);for(let _0x1e2183=0x0;_0x1e2183<_0x20ec09['length'];_0x1e2183++){if('isRemoved'==_0xd519a8&&_0x20ec09[_0x1e2183]['isAdded']||'isAdded'==_0xd519a8&&_0x20ec09[_0x1e2183]['isRemoved'])continue;if('text'==_0x20ec09[_0x1e2183]['type']){_0x20ec09[_0x1e2183]['distance']=0x0;continue;}const _0x50313e=_0x27155d['get'](_0x20ec09[_0x1e2183]['pairId']),_0x4db6ef=_0x27155d['get'](_0x20ec09[_0x1e2183]['id']);_0x20ec09[_0x1e2183]['distance']=_0x50313e-_0x4db6ef;}}['_getRevisionsRange'](_0x326f8f,_0x345a1a,_0x316cc2=!0x1){const _0x58dfe2=[];let _0x4c31fa=this['repository']['getIndex'](_0x326f8f),_0x48a73e=this['repository']['getIndex'](_0x345a1a);for(-0x1==_0x48a73e&&(_0x48a73e=this['repository']['_revisions']['length'],_0x316cc2=!0x1);_0x4c31fa<_0x48a73e;)_0x58dfe2['push'](this['repository']['getRevision'](_0x4c31fa)),_0x4c31fa++;return _0x316cc2&&_0x58dfe2['push'](this['repository']['getRevision'](_0x4c31fa)),_0x58dfe2;}['_threeWayMerge'](_0x18c6f5,_0x4825e8,_0x5a4a76,_0x1fb19f){const _0x3dfd36=this['editor']['model']['schema'];let _0xd9f0f4=_0x4825e8;for(;_0x18c6f5[_0xd9f0f4]&&_0x18c6f5[_0xd9f0f4]['isAdded'];)_0xd9f0f4++;let _0x1bb0eb=_0x1fb19f;for(;_0x5a4a76[_0x1bb0eb]&&_0x5a4a76[_0x1bb0eb]['isRemoved'];)_0x1bb0eb++;_0x13074a(_0x18c6f5,_0x4825e8,_0xd9f0f4),_0x13074a(_0x5a4a76,_0x1fb19f,_0x1bb0eb);const _0x448f96=_0x5a4a76['slice'](_0x1fb19f,_0x1bb0eb)['concat'](_0x18c6f5['slice'](_0x4825e8,_0xd9f0f4));return _0x448f96['sort']((_0x2e0a06,_0x3fcb42)=>_0x2e0a06['side']!=_0x3fcb42['side']?_0x2e0a06['side']-_0x3fcb42['side']:_0x2e0a06['level']!=_0x3fcb42['level']?_0x2e0a06['level']-_0x3fcb42['level']:_0x2e0a06['distance']!=_0x3fcb42['distance']?_0x3fcb42['distance']-_0x2e0a06['distance']:!!_0x2e0a06['isAdded']!=!!_0x3fcb42['isAdded']?-0x1==_0x2e0a06['side']||0x0==_0x2e0a06['side']?_0x2e0a06['isAdded']?-0x1:0x1:_0x2e0a06['isAdded']?0x1:-0x1:_0x2e0a06['index']-_0x3fcb42['index']),{'commonTape':_0x448f96,'iEnd':_0xd9f0f4,'jEnd':_0x1bb0eb};function _0x13074a(_0x4e0fb1,_0x27853a,_0x1837fb){let _0x553692=-0x1,_0x1d7b15=Number['POSITIVE_INFINITY'],_0x5f2afa=!0x0;for(let _0x536f37=_0x27853a;_0x536f37<_0x1837fb;_0x536f37++)if(_0x3dfd36['isInline'](_0x4e0fb1[_0x536f37]['item'])||(_0x5f2afa=!0x1),_0x4e0fb1[_0x536f37]['item']['startIndex']<_0x27853a&&(_0x553692=_0x536f37),_0x4e0fb1[_0x536f37]['item']['endIndex']>=_0x1837fb){_0x1d7b15=_0x536f37;break;}_0x5f2afa&&(_0x553692=_0x1837fb-0x1);for(let _0x48ef48=_0x27853a;_0x48ef48<_0x1837fb;_0x48ef48++)_0x4e0fb1[_0x48ef48]['side']=_0x48ef48<=_0x553692?-0x1:_0x48ef48<_0x1d7b15?0x0:0x1,_0x4e0fb1[_0x48ef48]['index']=_0x48ef48;let _0x31f766=0x0;for(let _0x3e0f7b=_0x27853a;_0x3e0f7b<=_0x553692;_0x3e0f7b++)0x0==_0x4e0fb1[_0x3e0f7b]['distance']?_0x4e0fb1[_0x3e0f7b]['level']=_0x31f766:(_0x31f766++,_0x4e0fb1[_0x3e0f7b]['level']=_0x31f766,_0x31f766++);for(let _0x55a0ef=_0x27853a;_0x55a0ef<_0x1837fb;_0x55a0ef++)0x0==_0x4e0fb1[_0x55a0ef]['side']&&(_0x4e0fb1[_0x55a0ef]['level']=_0x31f766);_0x31f766=0x0;for(let _0x6a0c70=_0x1837fb-0x1;_0x6a0c70>=_0x1d7b15;_0x6a0c70--)0x0==_0x4e0fb1[_0x6a0c70]['distance']?_0x4e0fb1[_0x6a0c70]['level']=_0x31f766:(_0x31f766--,_0x4e0fb1[_0x6a0c70]['level']=_0x31f766,_0x31f766--);}}['_fixObsoleteTags'](_0x12b029){const _0x257e94=new Map(),_0x3ae804=this['editor']['model']['schema'];for(let _0x1eb174=0x1;_0x1eb174<_0x12b029['length'];_0x1eb174++){let _0x2e369a,_0x5f1d07,_0x59a968;const _0x9bafb1=_0x12b029[_0x1eb174],_0x3fd441=_0x12b029[_0x1eb174-0x1];if('text'==_0x9bafb1['type'])continue;if(_0x9bafb1['type']!=_0x3fd441['type'])continue;if(!_0x3ae804['isBlock'](_0x3fd441['item'])||_0x3ae804['isLimit'](_0x3fd441['item']))continue;if(!_0x3ae804['isBlock'](_0x9bafb1['item'])||_0x3ae804['isLimit'](_0x9bafb1['item']))continue;if((_0x12b029[_0x1eb174]['isAdded']||_0x12b029[_0x1eb174]['isAddSuggestion'])&&_0x12b029[_0x1eb174-0x1]['isRemoved'])_0x2e369a=_0x12b029[_0x1eb174],_0x5f1d07=_0x12b029[_0x1eb174-0x1],_0x59a968=_0x1eb174-0x1;else{if(!_0x12b029[_0x1eb174]['isRemoved']||!_0x12b029[_0x1eb174-0x1]['isAdded']&&!_0x12b029[_0x1eb174-0x1]['isAddSuggestion'])continue;_0x2e369a=_0x12b029[_0x1eb174-0x1],_0x5f1d07=_0x12b029[_0x1eb174],_0x59a968=_0x1eb174;}const _0x4b3b44=_0x2e369a['level']==_0x5f1d07['level'],_0x458468=Math['abs'](_0x2e369a['level'])<Math['abs'](_0x5f1d07['level'])&&0x0==_0x5f1d07['distance'];(_0x4b3b44||_0x458468)&&(_0x257e94['set'](_0x5f1d07['id'],_0x2e369a['id']),_0x12b029['splice'](_0x59a968,0x1),_0x1eb174--,_0x2e369a['isAdded']=!0x1);}for(let _0x279b58=0x0;_0x279b58<_0x12b029['length'];_0x279b58++)_0x257e94['has'](_0x12b029[_0x279b58]['pairId'])&&(_0x12b029[_0x279b58]['pairId']=_0x257e94['get'](_0x12b029[_0x279b58]['pairId']));}['_removeMissingPairs'](_0x2301a5){const _0x435980=new Set(_0x2301a5['map'](_0x205c9d=>_0x205c9d['id']));for(let _0x441904=0x0;_0x441904<_0x2301a5['length'];_0x441904++)_0x435980['has'](_0x2301a5[_0x441904]['pairId'])||0x0==_0x2301a5[_0x441904]['distance']||(_0x2301a5[_0x441904]['isIncorrect']=!0x0);return _0x2301a5['filter'](_0x31b827=>!_0x31b827['isIncorrect']);}['_markMismatchedRemovedTags'](_0x2662a5){const _0x20d303=new Set();for(let _0xd19691=0x0;_0xd19691<_0x2662a5['length'];_0xd19691++){if(_0x20d303['has'](_0x2662a5[_0xd19691]['id'])&&_0x2662a5[_0xd19691]['isRemoved']&&(_0x2662a5[_0xd19691]['isIncorrect']=!0x0),_0x2662a5[_0xd19691]['isIncorrect'])continue;if(0x0==_0x2662a5[_0xd19691]['distance'])continue;if('elementStart'!=_0x2662a5[_0xd19691]['type'])continue;if(null==_0x2662a5[_0xd19691]['pairId'])continue;let _0x5dca9c=_0xd19691+0x1,_0x55507f=0x0;for(;_0x2662a5[_0x5dca9c]['id']!=_0x2662a5[_0xd19691]['pairId'];)'elementStart'==_0x2662a5[_0x5dca9c]['type']?_0x55507f++:'elementEnd'==_0x2662a5[_0x5dca9c]['type']&&_0x55507f--,_0x5dca9c++;if(0x0!=_0x55507f){if(_0x2662a5[_0xd19691]['isRemoved'])_0x2662a5[_0xd19691]['isIncorrect']=!0x0;else{for(;_0x5dca9c!=_0xd19691;)_0x2662a5[_0x5dca9c]['isRemoved']&&0x0!=_0x2662a5[_0x5dca9c]['distance']&&(_0x2662a5[_0x5dca9c]['isIncorrect']=!0x0,_0x20d303['add'](_0x2662a5[_0x5dca9c]['pairId'])),_0x5dca9c--;}}}return _0x2662a5['filter'](_0x588281=>!_0x588281['isIncorrect']);}['_removeUnsupportedChanges'](_0x3517da){const _0x7cd040=this['editor']['model']['schema'];for(let _0x19319f=0x0;_0x19319f<_0x3517da['length'];_0x19319f++){if(!(_0x3517da[_0x19319f]['isAdded']||_0x3517da[_0x19319f]['isAddSuggestion']||_0x3517da[_0x19319f]['isRemoved']||_0x3517da[_0x19319f]['isRemoveSuggestion']))continue;if(0x0==_0x3517da[_0x19319f]['distance'])continue;const _0x11feba=_0x3517da[_0x19319f]['item'];_0x7cd040['isBlock'](_0x11feba)||_0x7cd040['isLimit'](_0x11feba)||(_0x3517da[_0x19319f]['isAdded']&&delete _0x3517da[_0x19319f]['isAdded'],_0x3517da[_0x19319f]['isAddSuggestion']&&delete _0x3517da[_0x19319f]['isAddSuggestion'],_0x3517da[_0x19319f]['isRemoveSuggestion']&&delete _0x3517da[_0x19319f]['isRemoveSuggestion'],_0x3517da[_0x19319f]['isRemoved']&&(_0x3517da[_0x19319f]['isIncorrect']=!0x0));}return _0x3517da['filter'](_0x45e30b=>!_0x45e30b['isIncorrect']);}['_makeModelFromTape'](_0x34159e,_0x3a9d8e,_0x15d40a){const _0x1bd233=new vt(),_0x53e851=[],_0x23336f=new Map(),_0x5106e0=this['editor']['model'],_0x2e0015=_0x5106e0['schema'],_0x55a7e2=[_0x1bd233],_0x35d106={},_0x2d8f98={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x3b9603=null;const _0x409530=[0x0];for(let _0x2ef80e=0x0;_0x2ef80e<_0x34159e['length'];_0x2ef80e++)if('elementStart'===_0x34159e[_0x2ef80e]['type']){_0x34159e[_0x2ef80e]['previousPosition']=_0x5106e0['createPositionFromPath'](_0x1bd233,_0x409530);const _0x373a7b=new ut(_0x34159e[_0x2ef80e]['item']['name'],_0x34159e[_0x2ef80e]['item']['getAttributes']());_0x55a7e2[0x0]['_appendChild'](_0x373a7b),_0x409530['push'](0x0),_0x55a7e2['unshift'](_0x373a7b),_0x34159e[_0x2ef80e]['nextPosition']=_0x5106e0['createPositionFromPath'](_0x1bd233,_0x409530);}else'elementEnd'===_0x34159e[_0x2ef80e]['type']?(_0x55a7e2['shift'](),_0x34159e[_0x2ef80e]['previousPosition']=_0x5106e0['createPositionFromPath'](_0x1bd233,_0x409530),_0x409530['pop'](),_0x409530[_0x409530['length']-0x1]++,_0x34159e[_0x2ef80e]['nextPosition']=_0x5106e0['createPositionFromPath'](_0x1bd233,_0x409530)):(_0x34159e[_0x2ef80e]['previousPosition']=_0x5106e0['createPositionFromPath'](_0x1bd233,_0x409530),_0x3b9603?_0x3b9603['_data']+=_0x34159e[_0x2ef80e]['item']['data']:_0x3b9603=new gt(_0x34159e[_0x2ef80e]['item']['data'],_0x34159e[_0x2ef80e]['item']['getAttributes']()),_0x34159e[_0x2ef80e+0x1]&&'text'===_0x34159e[_0x2ef80e+0x1]['type']&&_0x364f13(_0x3b9603,_0x34159e[_0x2ef80e+0x1]['item'])||(_0x55a7e2[0x0]['_appendChild'](_0x3b9603),_0x3b9603=null),_0x409530[_0x409530['length']-0x1]+=_0x34159e[_0x2ef80e]['item']['offsetSize'],_0x34159e[_0x2ef80e]['nextPosition']=_0x5106e0['createPositionFromPath'](_0x1bd233,_0x409530));for(let _0x1575d9=0x0;_0x1575d9<_0x34159e['length'];_0x1575d9++){const _0xe0f1a7=_0x34159e[_0x1575d9]['previousPosition'],_0x20b227=_0x34159e[_0x1575d9]['nextPosition'];for(const _0xef1d21 of _0x34159e[_0x1575d9]['markersStart'])_0x23336f['set'](_0xef1d21,{'start':_0xe0f1a7,'end':null});_0x1534b0('isRemoveSuggestion',_0x1575d9,_0xe0f1a7,_0x20b227),_0x1534b0('isAddSuggestion',_0x1575d9,_0xe0f1a7,_0x20b227),_0x1534b0('isRemoved',_0x1575d9,_0xe0f1a7,_0x20b227),_0x1534b0('isAdded',_0x1575d9,_0xe0f1a7,_0x20b227);for(const _0x133086 of _0x34159e[_0x1575d9]['markersEnd']){const _0x3415f8=_0x23336f['get'](_0x133086);_0x3415f8?_0x3415f8['end']=_0x20b227:_0x23336f['set'](_0x133086,{'start':_0x20b227,'end':_0x20b227});}}for(const [_0x30cf83,_0xda400e]of _0x23336f){const _0x15270a=this['editor']['model']['createRange'](_0xda400e['start'],_0xda400e['end']);_0x1bd233['markers']['set'](_0x30cf83,_0x15270a);}return _0x53e851['sort']((_0x207b1a,_0x514251)=>{const _0x4bd38b=_0x1bd233['markers']['get']('revision:'+_0x207b1a['id']),_0x43d2c6=_0x1bd233['markers']['get']('revision:'+_0x514251['id']);return _0x4bd38b['start']['isBefore'](_0x43d2c6['start'])?-0x1:_0x4bd38b['start']['isAfter'](_0x43d2c6['start'])?0x1:_0x4bd38b['end']['isBefore'](_0x43d2c6['end'])?-0x1:_0x4bd38b['end']['isAfter'](_0x43d2c6['end'])?0x1:'add'===_0x207b1a['type']?-0x1:0x1;}),{'root':_0x1bd233,'changes':_0x53e851};function _0x1534b0(_0xefd66a,_0x4dd21e,_0x430075,_0x3cc9d4){const _0x232c1a=!!_0x34159e[_0x4dd21e][_0xefd66a],_0x3d90e8=_0x232c1a?_0x34159e[_0x4dd21e][_0xefd66a]['userId']:null,_0x4e6e5e=_0x4dd21e===_0x34159e['length']-0x1,_0x3a6ac0=_0x2d8f98[_0xefd66a][0x0],_0x6f2169=_0x2e0015['isObject'](_0x34159e[_0x4dd21e]['item']);!_0x35d106[_0xefd66a]&&_0x232c1a?_0x35d106[_0xefd66a]={'start':_0x430075,'tapeItem':_0x34159e[_0x4dd21e],'userId':_0x3d90e8,'type':_0xefd66a}:_0x35d106[_0xefd66a]&&!_0x232c1a?(_0x35d106[_0xefd66a]['end']=_0x430075,_0x313087(_0x35d106[_0xefd66a]),_0x35d106[_0xefd66a]=null):_0x35d106[_0xefd66a]&&_0x232c1a&&_0x35d106[_0xefd66a]['userId']!==_0x3d90e8&&(_0x35d106[_0xefd66a]['end']=_0x430075,_0x3a6ac0&&_0x3a6ac0['userId']===_0x35d106[_0xefd66a]['userId']||_0x313087(_0x35d106[_0xefd66a]),_0x35d106[_0xefd66a]={'start':_0x430075,'tapeItem':_0x34159e[_0x4dd21e],'userId':_0x3d90e8,'type':_0xefd66a}),_0x35d106[_0xefd66a]&&_0x6f2169&&('elementStart'!==_0x34159e[_0x4dd21e]['type']||_0x3a6ac0&&_0x3a6ac0['userId']===_0x3d90e8||_0x2d8f98[_0xefd66a]['unshift']({'userId':_0x3d90e8,'object':_0x34159e[_0x4dd21e]['item'],'change':_0x35d106[_0xefd66a]}),'elementEnd'===_0x34159e[_0x4dd21e]['type']&&_0x3a6ac0&&_0x3a6ac0['object']===_0x34159e[_0x4dd21e]['item']&&(_0x2d8f98[_0xefd66a]['shift'](),_0x35d106[_0xefd66a]=_0x3a6ac0['change'])),_0x35d106[_0xefd66a]&&_0x4e6e5e&&(_0x35d106[_0xefd66a]['end']=_0x3cc9d4,_0x313087(_0x35d106[_0xefd66a]),_0x35d106[_0xefd66a]=null);}function _0x313087({start:_0x4b865e,end:_0x51b56e,tapeItem:_0x4c5e08,userId:_0x2f1bcb,type:_0x12abfe}){const _0x1e00dd=_0x4c5e08['item'],_0x1c0bc0=_0x5106e0['schema']['isBlock'](_0x1e00dd)&&!_0x5106e0['schema']['isLimit'](_0x1e00dd),_0x538a64=_0x4b865e['nodeAfter']==_0x51b56e['parent']&&_0x51b56e['isAtStart'];if(_0x1c0bc0&&_0x538a64)return;const _0x34d84a=_0x5106e0['createRange'](_0x4b865e,_0x51b56e),_0x2da59f=_0x3a9d8e['get'](_0x2f1bcb),_0x4a61af=new r({'author':_0x2da59f,'type':'isAdded'==_0x12abfe||'isAddSuggestion'==_0x12abfe?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x12abfe||'isRemoveSuggestion'==_0x12abfe},'createdAt':new Date(),'rootName':_0x15d40a});_0x53e851['push'](_0x4a61af),_0x1bd233['markers']['set']('revision:'+_0x4a61af['id'],_0x34d84a);}function _0x364f13(_0x1a674a,_0x27aee5){const _0x16dcfb=_0x1a674a['getAttributes'](),_0xcf906a=_0x27aee5['getAttributes']();for(const _0x343566 of _0x16dcfb){if(_0x343566[0x1]!==_0x27aee5['getAttribute'](_0x343566[0x0]))return!0x1;_0xcf906a['next']();}return _0xcf906a['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x4c0f0d=>{const _0x12c9f8=_0x4c0f0d['markerName']['split'](':')[0x1],_0x3dcf9c=this['_getChangeFromId'](_0x12c9f8);if(!_0x3dcf9c)return null;const _0x3d2f11='add'==_0x3dcf9c['type']?'insertion':'deletion',_0x473b62=['ck-suggestion-marker','ck-suggestion-marker-'+_0x3d2f11];return _0x3dcf9c['data']['isSuggestion']&&_0x473b62['push']('ck-suggestion-marker-'+_0x3d2f11+'-new'),this['activeChange']==_0x3dcf9c&&_0x473b62['push']('ck-suggestion-marker--active'),{'classes':_0x473b62,'attributes':{'data-change-id':_0x12c9f8}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x5a32ea=>{_0x5a32ea['on']('element:pre',(_0x1fd65f,_0x56d2e5,_0x19af0e)=>{const _0x325197=_0x56d2e5['viewItem']['getChild'](0x0);if(!_0x325197||!_0x325197['is']('element','code'))return;if(!_0x19af0e['consumable']['consume'](_0x325197,{'attributes':['vid_start','vid_end']}))return;const _0x4e30f0=_0x56d2e5['modelRange']['start']['nodeAfter'];_0x19af0e['writer']['setAttribute']('vid_start',_0x325197['getAttribute']('vid_start'),_0x4e30f0),_0x19af0e['writer']['setAttribute']('vid_end',_0x325197['getAttribute']('vid_end'),_0x4e30f0);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x310db2=>{_0x310db2['on']('element',(_0x4ec5fb,_0x2134ce,_0x5b1176)=>{if(!_0x5b1176['consumable']['consume'](_0x2134ce['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x2134ce['modelRange']['isCollapsed'])return;const _0x312336=_0x2134ce['modelRange']['start']['nodeAfter'];_0x312336['hasAttribute']('vid_start')||_0x312336['hasAttribute']('vid')||(_0x5b1176['writer']['setAttribute']('vid_start',_0x2134ce['viewItem']['getAttribute']('vid_start'),_0x312336),_0x5b1176['writer']['setAttribute']('vid_end',_0x2134ce['viewItem']['getAttribute']('vid_end'),_0x312336));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x1abf94=>_0x1abf94['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x456aec,[,_0x2d3d3b])=>{['vid_start','vid_end','vid']['includes'](_0x2d3d3b)&&(_0x456aec['return']=!0x0,_0x456aec['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x49291d=>{_0x49291d['on']('attribute:vid',(_0x4c6198,_0x351f97,_0x5a07ee)=>{if('\x20'!=_0x351f97['item']['data']||_0x351f97['item']['parent']['maxOffset']>0x1)return;if(!_0x5a07ee['consumable']['consume'](_0x351f97['item'],_0x4c6198['name']))return;const _0x197e88=_0x5a07ee['writer'],_0xbe9f2d=_0x5a07ee['mapper']['toViewRange'](_0x351f97['range']);_0x197e88['wrap'](_0xbe9f2d,_0x197e88['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x42c44e){const _0x7d79d2=_0x42c44e['plugins']['get']('RevisionViewer');return(_0xfd08c2,_0x5d9162,_0x47c787)=>{const _0x8aef71=_0x5d9162['markerName']['split'](':')[0x1],_0x47ff8d=_0x7d79d2['_getChangeFromId'](_0x8aef71);if(!_0x47ff8d)return null;const _0x253ddd='add'==_0x47ff8d['type']?'split':'merge';if(!_0x47c787['consumable']['test'](_0x5d9162['markerRange'],_0xfd08c2['name']))return;const _0x493750=_0x5d9162['markerRange']['getWalker'](),_0x384678=_0x5d9162['markerRange']['start'],_0x55e9c8=_0x42c44e['model']['schema'];let _0x3e9e82=null,_0x5d6091=null,_0x17f1c0=!0x1,_0x2abbab=!0x1;for(const _0x515dd5 of _0x493750){const _0x3362d8=_0x515dd5['item'];_0x17f1c0=_0x17f1c0||_0x55e9c8['isContent'](_0x3362d8);const _0xe0b1d2=_0x47c787['mapper']['toViewElement'](_0x3362d8);if(_0xe0b1d2&&_0xe0b1d2['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x515dd5['type']&&(_0x55e9c8['isBlock'](_0x3362d8)&&!_0x55e9c8['isLimit'](_0x3362d8)&&(_0x3362d8['nextSibling']||_0x384678['isAtEnd']?_0x3e9e82&&_0x3e9e82['parent']==_0x3362d8||(_0x3e9e82=_0x3362d8,_0x193902(_0x515dd5['previousPosition']),_0x2abbab=!0x0):_0x5d6091=_0x5d6091||_0x515dd5['previousPosition']));}function _0x193902(_0x3d4371){const _0x238a8d=_0x47c787['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x253ddd}),_0x2d52f6=_0x47c787['mapper']['toViewPosition'](_0x3d4371);_0x47ff8d['data']['isSuggestion']&&_0x47c787['writer']['addClass']('ck-suggestion-marker-'+_0x253ddd+'-new',_0x238a8d),_0x7d79d2['activeChange']==_0x47ff8d&&_0x47c787['writer']['addClass']('ck-suggestion-marker--active',_0x238a8d),_0x47c787['writer']['insert'](_0x2d52f6,_0x238a8d),_0x47c787['mapper']['bindElementToMarker'](_0x238a8d,_0x5d9162['markerName']);}_0x17f1c0||_0x2abbab||!_0x5d6091||_0x193902(_0x5d6091);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x29b732,_0x2cdcf1,_0x2ea7fc)=>{const _0x347cd7=_0x2ea7fc['mapper']['markerNameToElements'](_0x2cdcf1['markerName']);if(_0x347cd7){for(const _0x48a099 of _0x347cd7)(_0x48a099['hasClass']('ck-suggestion-marker-split')||_0x48a099['hasClass']('ck-suggestion-marker-merge'))&&(_0x2ea7fc['mapper']['unbindElementFromMarkerName'](_0x48a099,_0x2cdcf1['markerName']),_0x2ea7fc['writer']['remove'](_0x48a099));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x55f797,_0x57d40c,_0x51e8f4)=>{const _0xb0135a=_0x57d40c['markerName']['split'](':')[0x1],_0x22fd9d=this['_getChangeFromId'](_0xb0135a);if(!_0x22fd9d)return null;const _0x6d885f='add'==_0x22fd9d['type']?'split':'merge';if(_0x51e8f4['consumable']['test'](_0x57d40c['markerRange'],_0x55f797['name']))for(const _0x5e30bf of _0x57d40c['markerRange']['getItems']()){if(!_0x5e30bf['is']('element','softBreak'))continue;const _0x4d573f=_0x51e8f4['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x6d885f}),_0xc5c37f=_0x51e8f4['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x5e30bf));_0x22fd9d['data']['isSuggestion']&&_0x51e8f4['writer']['addClass']('ck-suggestion-marker-'+_0x6d885f+'-new',_0x4d573f),this['activeChange']==_0x22fd9d&&_0x51e8f4['writer']['addClass']('ck-suggestion-marker--active',_0x4d573f),_0x51e8f4['writer']['insert'](_0xc5c37f,_0x4d573f),_0x51e8f4['mapper']['bindElementToMarker'](_0x4d573f,_0x57d40c['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x2f76df=>{for(const _0x1f5de5 of this['editor']['model']['document']['getRootNames']()){const _0x268c4c=this['editor']['model']['document']['getRoot'](_0x1f5de5),_0x1cce46=this['editor']['editing']['view']['document']['getRoot'](_0x1f5de5);if(_0x1cce46){const _0x4eebca=_0x268c4c['getAttribute']('revisionHistoryAttachChange');if(_0x2f76df['removeAttribute']('data-change-id',_0x1cce46),_0x2f76df['removeClass']('ck-revision-history-root-add',_0x1cce46),_0x2f76df['removeClass']('ck-revision-history-root-remove',_0x1cce46),_0x2f76df['removeClass']('ck-revision-history-root--active',_0x1cce46),_0x4eebca){const _0x4a56d6=this['_getChangeFromId'](_0x4eebca);if(!_0x4a56d6)return null;_0x2f76df['setAttribute']('data-change-id',_0x4eebca,_0x1cce46),_0x2f76df['addClass']('ck-revision-history-root-'+_0x4a56d6['type'],_0x1cce46),this['activeChange']==_0x4a56d6&&_0x2f76df['addClass']('ck-revision-history-root--active',_0x1cce46);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x417ebe=>'revision-comment:'+_0x417ebe,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x4b9beb=>'revision-suggestion:'+_0x4b9beb,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x52a880=>({'name':'suggestion:'+_0x52a880,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x25a125=>{const _0x18ea66=_0x25a125['markerName']['split'](':')[0x1];return'insertion'!=_0x18ea66&&'deletion'!=_0x18ea66?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x18ea66]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',X(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',X(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x206521,_0x37f174,_0x367c5a)=>{const _0x43f7c2=_0x367c5a['mapper']['markerNameToElements'](_0x37f174['markerName']);if(_0x43f7c2){for(const _0x2afb15 of _0x43f7c2)_0x2afb15['is']('uiElement')&&(_0x367c5a['mapper']['unbindElementFromMarkerName'](_0x2afb15,_0x37f174['markerName']),_0x367c5a['writer']['remove'](_0x2afb15));}},{'priority':'high'});}['_getChangeFromId'](_0x109bb4){return this['_changeIdToChange']['get'](_0x109bb4);}['_getViewForChange'](_0x12ba39){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x12ba39),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x5f44ec,_0x1ea83b,_0x3e94f4,_0x4d8f67)=>{_0x4d8f67&&this['_balloon']['remove'](_0x4d8f67),_0x3e94f4&&(this['_balloon']['add']({'view':_0x3e94f4,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x2c2d0f=this['editor']['editing'],_0x36c6c8=this['_getChangeFromId'](_0x3e94f4['changeId']);let _0x18973c;if(_0x36c6c8['data']['isOnRoot']){const _0x4d6020=_0x2c2d0f['view']['getDomRoot'](_0x36c6c8['rootName']);_0x18973c=Array['from'](_0x4d6020['getClientRects']());}else{const _0x174f04=this['editor']['model']['markers']['get']('revision:'+_0x3e94f4['changeId']);_0x18973c=Array['from'](_0x2c2d0f['mapper']['markerNameToElements'](_0x174f04['name']))['map'](_0x51f2c3=>_0x2c2d0f['view']['domConverter']['mapViewToDom'](_0x51f2c3))['map'](_0x3b3e1b=>Array['from'](_0x3b3e1b['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x18973c[0x0];return _0x18973c['find'](_0x345158=>_0x345158['top']-0x3<=this['_activeViewTarget']['y']&&_0x345158['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x345158['left']-0x3<=this['_activeViewTarget']['x']&&_0x345158['right']+0x3>=this['_activeViewTarget']['x'])||_0x18973c[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x3b4f5d,_0x2d6bbc,_0x57d655,_0x4c2a16)=>{this['activeView']=_0x57d655?this['_getViewForChange'](_0x57d655):null,this['editor']['model']['change'](()=>{const _0x9e78fc=this['editor']['editing'];_0x4c2a16&&(_0x4c2a16['data']['isOnRoot']?_0x9e78fc['view']['change'](_0x330008=>{_0x330008['removeClass']('ck-revision-history-root--active',_0x9e78fc['view']['document']['getRoot'](_0x4c2a16['rootName']));}):_0x9e78fc['reconvertMarker']('revision:'+_0x4c2a16['id'])),_0x57d655&&(_0x57d655['data']['isOnRoot']?_0x9e78fc['view']['change'](_0x4439cf=>{_0x4439cf['addClass']('ck-revision-history-root--active',_0x9e78fc['view']['document']['getRoot'](_0x57d655['rootName']));}):_0x9e78fc['reconvertMarker']('revision:'+_0x57d655['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x1cc504,_0xa4897d)=>{if(this['activeChange'])return;const _0x2207bb=this['_findChangeIdFromDomTarget'](_0xa4897d['target']),_0x194d5b=this['_changeIdToChange']['get'](_0x2207bb);_0x194d5b?(this['_activeViewTarget']={'x':_0xa4897d['domEvent']['x'],'y':_0xa4897d['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x194d5b)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0xad1704,_0x41ff2f)=>{const _0x380539=this['_findChangeIdFromDomTarget'](_0x41ff2f['target']),_0x346ba6=this['_changeIdToChange']['get'](_0x380539);_0x346ba6?(this['_activeViewTarget']={'x':_0x41ff2f['domEvent']['x'],'y':_0x41ff2f['domEvent']['y']},_0x346ba6===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x346ba6):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x198803){do{const _0x52da75=_0x198803['getAttribute']('data-change-id');if(_0x52da75)return _0x52da75;_0x198803=_0x198803['parent'];}while(_0x198803);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x21e2ed=>{for(const _0x2e09a1 of this['editor']['model']['markers'])_0x21e2ed['removeMarker'](_0x2e09a1);});}}function X(_0x1ff4c5,_0x3fe2b4){return(_0x336ee5,_0x5e89de,_0x17d337)=>{if(!_0x17d337['consumable']['test'](_0x5e89de['markerRange'],_0x336ee5['name']))return;const _0x47214a=_0x5e89de['markerRange']['getWalker'](),_0x426b1e=_0x5e89de['markerRange']['start'],_0x1dcfb7=_0x1ff4c5['model']['schema'];let _0x148914=null,_0x586d9a=null,_0x346f8d=!0x1,_0x2647b5=!0x1;for(const _0x249e8b of _0x47214a){const _0x4be8d3=_0x249e8b['item'];_0x346f8d=_0x346f8d||_0x1dcfb7['isContent'](_0x4be8d3);const _0x463b89=_0x17d337['mapper']['toViewElement'](_0x4be8d3);if(_0x463b89&&_0x463b89['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x249e8b['type']&&(_0x1dcfb7['isBlock'](_0x4be8d3)&&!_0x1dcfb7['isLimit'](_0x4be8d3)&&(_0x4be8d3['nextSibling']||_0x426b1e['isAtEnd']?_0x148914&&_0x148914['parent']==_0x4be8d3||(_0x148914=_0x4be8d3,_0x12dc0b(_0x249e8b['previousPosition']),_0x2647b5=!0x0):_0x586d9a=_0x586d9a||_0x249e8b['previousPosition']));}function _0x12dc0b(_0x5e4545){const _0x3269b6=_0x17d337['mapper']['toViewPosition'](_0x5e4545),_0x18ba5f=_0x17d337['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x3fe2b4});_0x17d337['writer']['insert'](_0x3269b6,_0x18ba5f),_0x17d337['mapper']['bindElementToMarker'](_0x18ba5f,_0x5e89de['markerName']);}_0x346f8d||_0x2647b5||!_0x586d9a||_0x12dc0b(_0x586d9a);};}class mt extends _0x3b4ca0{constructor(_0x251ed0){super(_0x251ed0);const _0x182def=_0x251ed0['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x182def,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x182def,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x10d548=this['editor'],_0x2ccb64=_0x10d548['plugins']['get'](m),_0x39f56a=_0x2ccb64['isReady']?_0x2ccb64['diff']['newRevisionId']:null;_0x10d548['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x39f56a);}['refresh'](){const {isReady:_0x273099,isEnabled:_0x2acce7,repository:_0x570559,diff:_0x25f50a}=this['editor']['plugins']['get'](m),_0x297f19=_0x25f50a&&_0x570559['getLaterVisibleRevision'](_0x25f50a['newRevisionId']);this['isEnabled']=_0x273099&&_0x2acce7&&Boolean(_0x297f19);}}class wt extends _0x3b4ca0{['_step'];constructor(_0x444dd3,{direction:_0x42ebc6}){super(_0x444dd3);const _0x544af5=_0x444dd3['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x42ebc6?0x1:-0x1,this['listenTo'](_0x544af5,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x544af5,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x544af5,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x497a77=this['editor'],_0xe6a971=_0x497a77['plugins']['get'](m),{isNavigationMode:_0x2b12d7,currentChangeNumber:_0x2106c0}=_0xe6a971;let _0x885dec;if(_0xe6a971['activeChange']=_0x2b12d7?_0xe6a971['diff']['changes']['get'](_0x2106c0+this['_step']):_0xe6a971['diff']['changes']['first'],_0xe6a971['activeChange']['data']['isOnRoot'])_0x885dec=_0x497a77['editing']['view']['getDomRoot'](_0xe6a971['activeChange']['rootName']);else{const _0x29f375=_0x497a77['model']['markers']['get']('revision:'+_0xe6a971['activeChange']['id']);_0x885dec=_0xddc666(_0x497a77['editing'],_0x29f375);}_0x1c772f({'target':_0x885dec,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x30b9d1,currentChangeNumber:_0x2e9fa0,numberOfChanges:_0x4da16d,isReady:_0x49f411,isEnabled:_0x365759}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x365759&&_0x49f411&&_0x4da16d)&&(!_0x30b9d1||(0x1===this['_step']?_0x2e9fa0<_0x4da16d-0x1:_0x2e9fa0>0x0));}}class _i extends ts{constructor(_0x2c0137){super(_0x2c0137);const _0x495973=this['bindTemplate'],_0x2aee09=new te(_0x2c0137),_0x450645=new te(_0x2c0137);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',(_0x247a45,_0x1ebdba)=>_0x247a45&&_0x1ebdba>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x2ecfdb,_0x1705c8,_0xc129b,_0x575ea8)=>{if(!_0x2ecfdb)return g(_0x2c0137,'Loading...');if(!_0xc129b)return g(_0x2c0137,'No\x20changes');const _0x4731ac=g(_0x2c0137,'NUMBER_OF_CHANGES',_0xc129b);return _0x575ea8?g(_0x2c0137,'X_OF_Y_CHANGES',[_0x1705c8+0x1,_0xc129b]):_0x4731ac;}),_0x2aee09['set']({'label':g(_0x2c0137,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x11abc6}),_0x450645['set']({'label':g(_0x2c0137,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x2b6198}),_0x2aee09['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x450645['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x2aee09['on']('execute',()=>this['fire']('execute','backward')),_0x450645['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',_0x495973['if']('_isStatusLabelVisible','ck-hidden',_0x359d92=>!_0x359d92)]},'children':[{'text':_0x495973['to']('isNavigationMode',_0x1f2659=>_0x1f2659?g(_0x2c0137,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x2c0137,'Total')+':\x20')}]},{'text':_0x495973['to']('_statusText')}]},new _0x2e32a8(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x2aee09,_0x450645]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x351143{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x148f72=this['editor']['editing']['view'];_0x148f72['change'](_0x5eb10b=>{for(const _0x144b4a of _0x148f72['document']['roots'])_0x5eb10b['addClass'](le,_0x144b4a);});}['hide'](){const _0xd19e03=this['editor']['editing']['view'];_0xd19e03['change'](_0x1d45ab=>{for(const _0x16998d of _0xd19e03['document']['roots'])_0x1d45ab['removeClass'](le,_0x16998d);});}}class R extends _0x351143{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,ge];}['init'](){const _0x30bb37=this['editor'],_0x111688=_0x30bb37['plugins']['get'](m),_0x2e5805=_0x30bb37['plugins']['get'](ge);_0x30bb37['ui']['componentFactory']['add']('exitToEditing',_0x35c19c=>{const _0x1e3950=new te(_0x35c19c);return _0x1e3950['set']({'label':g(_0x35c19c,'Back\x20to\x20editing'),'icon':_0x394446,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x1e3950,'execute',()=>{_0x30bb37['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x1e3950;}),_0x30bb37['ui']['componentFactory']['add']('restoreRevision',_0x3a63f0=>{const _0x412b1f=new te(_0x3a63f0);return _0x412b1f['set']({'label':g(_0x3a63f0,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x412b1f['bind']('isEnabled')['to'](_0x30bb37['commands']['get']('restoreRevision')),this['listenTo'](_0x412b1f,'execute',()=>_0x30bb37['execute']('restoreRevision')),_0x412b1f;}),_0x30bb37['ui']['componentFactory']['add']('changesNavigation',_0x16cce2=>{const _0x65159e=new _i(_0x16cce2),_0x8ef942=_0x30bb37['commands']['get']('showPreviousChange'),_0x1bdb61=_0x30bb37['commands']['get']('showNextChange');return _0x65159e['bind']('isBackwardNavigationEnabled')['to'](_0x8ef942,'isEnabled'),_0x65159e['bind']('isForwardNavigationEnabled')['to'](_0x1bdb61,'isEnabled'),_0x65159e['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x111688),this['listenTo'](_0x65159e,'execute',(_0x10eebc,_0x6dfd33)=>{_0x30bb37['execute']('forward'===_0x6dfd33?'showNextChange':'showPreviousChange');}),_0x65159e;}),_0x2e5805['show'](),_0x111688['on']('change:isReady',(_0x3ae209,_0x5470d6,_0x5a80b8)=>{_0x5a80b8?_0x2e5805['hide']():_0x2e5805['show']();});}}class at extends _0x11c4b5{['_resizeObserver']=null;constructor(_0x2f007b,_0xc11fdb){super(_0x2f007b,_0xc11fdb);const _0x2fd33d=this['bindTemplate'];this['set']({'label':g(_0x2f007b,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x2f007b,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x2fd33d['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new nt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x5cb377=this['fieldView']['element'];this['_tooltipString']=_0x5cb377['scrollWidth']>_0x5cb377['clientWidth']&&_0x5cb377['value']||'';}}class si extends ts{constructor(_0x443efc,_0x19a294,_0x5bd9bf){super(_0x443efc);const _0x285793=new _0x1a560f();_0x285793['set']({'content':_0x4793cc,'viewBox':'0\x200\x2011\x2010'});const _0x7e577d=['ck','ck-revision-history-sidebar__revision-author'];_0x5bd9bf&&_0x7e577d['push']('ck-revision-history-sidebar__revision-author_creator');const _0x51d4f4=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x443efc,_0x5bd9bf?'Revision\x20creator':'Revision\x20author')},'children':[_0x285793,_0x19a294['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x7e577d},'children':_0x51d4f4});}}function oi(_0x552b23,_0x57fc2f){const _0x4bab11=_0x552b23['bindTemplate'],_0x263ab2=_0x552b23['locale'],_0x1d948c=_0x4440ab(_0x263ab2);_0x1d948c['panelPosition']='sw';const _0x370958=function(_0xdc1c8a,_0x1fb5dc){const _0x1dadb3=function(_0x29bec2,_0x3e926c){const _0x4355c3=_0x29bec2['locale'],_0x3ef765={'Compare\x20against\x20selected':g(_0x4355c3,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x4355c3,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x4355c3,'Restore\x20this\x20revision')};return _0x3e926c['map'](_0x5babc4=>{const _0x301d38=_0x3ef765[_0x5babc4['name']];return _0x301d38&&_0x301d38!==_0x5babc4['name']&&(_0x5babc4['name']=_0x301d38),_0x5babc4;});}(_0xdc1c8a,_0x1fb5dc),_0xb9cc1f=new _0x9da6d5();for(const _0x366419 of _0x1dadb3){const _0x145ddd={'type':'button','model':new to({'label':_0x366419['name'],'class':_0x366419['class'],'withText':!0x0,'role':'menuitem','_action':_0x366419['action']})};_0x145ddd['model']['bind']('isEnabled')['to'](_0xdc1c8a,'isActionsDropdownOpen',_0xd5a177=>'function'!=typeof _0x366419['isEnabled']||(!_0xd5a177||_0x366419['isEnabled'](_0xdc1c8a))),_0xb9cc1f['add'](_0x145ddd);}return _0xb9cc1f;}(_0x552b23,_0x57fc2f);return _0x552b23['bind']('isActionsDropdownOpen')['to'](_0x1d948c,'isOpen'),_0x1d948c['buttonView']['set']({'label':g(_0x263ab2,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0xe27b8}),_0x1d948c['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x4bab11['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x4bab11['to'](_0x16400d=>_0x16400d['stopPropagation']())}}),_0x1d948c['on']('execute',_0x16ab0=>{_0x552b23['isReady']&&'function'==typeof _0x16ab0['source']['_action']&&_0x16ab0['source']['_action'](_0x552b23);}),_0x33b4e1(_0x1d948c,_0x370958,{'role':'menu'}),_0x1d948c['listenTo'](_0x552b23,'change:isActionsDropdownOpen',(_0x4f54dc,_0x5c8bec,_0x23e631)=>{if(_0x23e631)for(const _0x46b2c4 of _0x1d948c['listView']['items']){const _0x57cb83=_0x46b2c4['children']['first'],_0x2fd2b8=_0x57fc2f['find'](_0x2a8be2=>_0x2a8be2['action']===_0x57cb83['_action'])['isVisible'];_0x46b2c4['isVisible']=void 0x0===_0x2fd2b8||_0x2fd2b8(_0x552b23);}}),_0x1d948c;}class hi extends/* #__PURE__ -- @preserve */
|
|
26
|
+
ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x1ce8b7,_0x299c77,_0x531e98,_0xe76410){super(_0x1ce8b7);const _0x210d40=this['bindTemplate'],_0x31016c=function(_0x51549a,_0x451747){const _0xbe654b=Array['from'](_0x451747['authors'])['filter'](_0x17ce6a=>_0x17ce6a!=_0x451747['creator']);return _0x451747['creator']&&_0xbe654b['unshift'](_0x451747['creator']),_0xbe654b['map'](_0x5de075=>new si(_0x51549a,_0x5de075,_0x5de075==_0x451747['creator']));}(_0x1ce8b7,_0x299c77);this['id']=_0x299c77['id'],this['_revision']=_0x299c77,this['_requireRevisionName']=_0xe76410,this['bind']('name','createdAt')['to'](_0x299c77),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x3f9494=>{return _0x2ec7e1=_0x1ce8b7['uiLanguage'],(_0x128b3a=_0x3f9494)['toLocaleDateString'](_0x2ec7e1,{'month':'long','day':'numeric'})+',\x20'+_0x128b3a['toLocaleTimeString'](_0x2ec7e1,{'hour':'numeric','minute':'numeric'});var _0x2ec7e1,_0x128b3a;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new at(_0x1ce8b7,_0x3a9229),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x23ec2=>_0x23ec2||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x4bf674,_0x1a75bb)=>_0x4bf674&&_0x1a75bb),this['revisionActionsView']=_0x531e98&&_0x531e98['length']?oi(this,_0x531e98):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x210d40['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x210d40['if']('isEnabled','ck-disabled',_0x515786=>!_0x515786),_0x210d40['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x210d40['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x210d40['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':_0x210d40['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':_0x31016c}]},this['revisionActionsView']],'on':{'click':_0x210d40['to'](_0x544eee=>{_0x544eee['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x2c691c=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x2c691c,'change',()=>{this['_requireRevisionName']&&!_0x2c691c['value']||this['fire']('setName',{'id':this['id'],'name':_0x2c691c['value']}),_0x2c691c['value']||(_0x2c691c['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function ai(_0x325990,_0x38d221){const _0x351a79=_0x22f8c6['fromJSDate'](_0x325990)['setLocale'](_0x38d221),_0x22c20d=_0x22f8c6['local'](),_0x4d7999=_0x22c20d['minus']({'days':0x1})['startOf']('day');let _0x71ac4c,_0x4caec1;return _0x351a79['hasSame'](_0x22c20d,'day')?(_0x71ac4c=_0x351a79['startOf']('day')['toJSDate'](),_0x4caec1=_0x351a79['toRelativeCalendar']()):_0x351a79['hasSame'](_0x4d7999,'day')?(_0x71ac4c=_0x4d7999['toJSDate'](),_0x4caec1=_0x351a79['toRelativeCalendar']()):_0x351a79['hasSame'](_0x22c20d,'week')?(_0x71ac4c=_0x351a79['startOf']('week')['toJSDate'](),_0x4caec1=_0x351a79['weekdayLong']||''):_0x351a79['hasSame'](_0x22c20d,'year')?(_0x71ac4c=_0x351a79['startOf']('month')['toJSDate'](),_0x4caec1=_0x351a79['monthLong']||''):(_0x71ac4c=_0x351a79['startOf']('year')['toJSDate'](),_0x4caec1=String(_0x351a79['year'])),{'startDate':_0x71ac4c,'localizedPeriodName':_0x4caec1};}class di extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x4f69fb,_0x3cd83c,_0x5984ee,_0x23266a){super(_0x4f69fb);const _0x2645f6=ai(_0x3cd83c,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x3cd83c,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x5984ee,this['_requireRevisionName']=_0x23266a,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':_0x2645f6}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0xd9e5a8){const _0x32baa0=new hi(this['locale'],_0xd9e5a8,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x32baa0);}['removeRevision'](_0x1a7060){const _0x3ffcc9=this['revisionViews']['find'](_0xfc67a5=>_0xfc67a5['id']===_0x1a7060['id']);this['revisionViews']['remove'](_0x3ffcc9);}}class as extends ts{constructor(_0x573376){super(_0x573376);const _0x4b3959=new _0x1a560f();_0x4b3959['content']=_0x5d5eaa,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x4b3959,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[g(_0x573376,'Revision\x20history')]}]});}}class ni extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x590e9c,_0x50c0cf,_0x4ac6dc,_0x546cd3){super(_0x590e9c);const _0x23f76e=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x50c0cf,this['_revisionActions']=_0x4ac6dc,this['_requireRevisionName']=_0x546cd3,this['on']('select',(_0x572081,_0x2fb2de)=>{this['fire']('revisionSelected',_0x2fb2de);}),this['on']('setName',(_0x308467,_0x37f878)=>{this['fire']('revisionSetName',_0x37f878);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x590e9c),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x23f76e['if']('isEnabled','ck-disabled',_0x4e28fb=>!_0x4e28fb)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x6e871e of this['_revisions'])this['_addRevision'](_0x6e871e);this['_revisions']['on']('add',(_0x54f5cf,_0x40ecc1)=>{this['_addRevision'](_0x40ecc1);}),this['_revisions']['on']('remove',(_0x457cd3,_0x1ff8cb)=>{this['_removeRevision'](_0x1ff8cb);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x44a15d=>_0x44a15d['revisionViews']['map'](_0x55e238=>_0x55e238))['flat']();}['selectRevision'](_0x45013a){for(const _0x10bfe7 of this['revisionViews'])_0x45013a&&_0x45013a['id']===_0x10bfe7['id']?_0x10bfe7['select']():_0x10bfe7['deselect']();}['highlightRevisions'](_0x4cb7bb){for(const _0x55fa63 of this['revisionViews'])_0x4cb7bb['some'](({id:_0x19b97b})=>_0x19b97b===_0x55fa63['id'])?_0x55fa63['highlight']():_0x55fa63['unhighlight']();}['_addRevision'](_0x534d77){const _0x2397d1=ai(_0x534d77['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x1a7844=this['timePeriodViews']['get'](0x0);_0x1a7844&&_0x1a7844['startDate']['getTime']()===_0x2397d1['getTime']()||(_0x1a7844=new di(this['locale'],_0x2397d1,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x1a7844)),_0x1a7844['addRevision'](_0x534d77);}['_removeRevision'](_0x575d86){const _0x5edcbb=ai(_0x575d86['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x5edcbb)['removeRevision'](_0x575d86);}['_getTimePeriodViewByStartDate'](_0x121736){return this['timePeriodViews']['find'](_0x401412=>_0x401412['startDate']['getTime']()===_0x121736['getTime']());}}class d extends _0x351143{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
27
27
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
|
-
pt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m];}constructor(
|
|
29
|
-
_0x56f463(_0x3a3d93){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x3d1822,_0x57fba3){super(_0x57fba3),this['sourceElement']=_0x3d1822,this['model']['document']['createRoot']();const _0x495188=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x495188);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x381ab4,_0x4daec9){const _0x4b8eef=new this(_0x381ab4,_0x4daec9);return await _0x4b8eef['initPlugins'](),await _0x4b8eef['ui']['init'](_0x381ab4),await _0x4b8eef['data']['init'](_0x4b8eef['config']['get']('initialData')||''),_0x4b8eef['fire']('ready'),_0x4b8eef;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class _t extends _0x211636{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5b4cd7){function _0x32b33f(_0x5dc27d){return _0x5dc27d['map'](_0x3f8d3e=>String['fromCharCode'](_0x3f8d3e))['join']('');}super(_0x5b4cd7),this['result']='end',_0x5b4cd7[_0x32b33f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x32b33f([0x76,0x69,0x65,0x77])][_0x32b33f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x32b33f([0x61,0x75,0x74,0x6f]),_0x5b4cd7[_0x32b33f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x32b33f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x32b33f([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x32b33f([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x32b33f([0x6f,0x6b])});}}class k extends _0x211636{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x1a09d0){if(super(_0x1a09d0),!this['editor']['config']['get']('revisionHistory'))throw new _0x3a53ad('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x3c27ec=>this['_showRevisionViewer']({..._0x3c27ec,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x161773=>this['_closeRevisionViewer'](_0x161773)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x56654b=>this['_restoreRevision'](_0x56654b)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x34832b){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x34832b;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x3a82c3){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x3a82c3);}['getRevision'](_0x80b70b){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x80b70b);}['getRevisions'](_0x8785cd){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x8785cd||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x38a793=this['editor'],_0x1c1689=_0x4ba1b6(_0x38a793,p),_0x3444f2=_0x38a793['plugins']['get']('RevisionTracker'),_0x13dda8=_0x38a793['plugins']['get']('Users')['users'];return _0x1c1689['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x1c1689['lazyRoots'],(_0x1c1689['plugins']['push'](_t,m,R,class extends _0x211636{static get['requires'](){return[m,'Users'];}['init'](){const _0x198e38=this['editor']['plugins']['get']('Users');for(const _0x410e0b of _0x13dda8)_0x410e0b['isAnonymous']||_0x198e38['getUser'](_0x410e0b['id'])||_0x198e38['addUser'](_0x410e0b);const _0x2dd917=_0x3444f2['repository']['getRevisions']();let _0x4e6334=null;const _0x424c75=this['editor']['plugins']['get']('RevisionViewer');_0x424c75['adapter']=_0x3444f2['adapter'],_0x424c75['bind']('isEnabled')['to'](_0x3444f2),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x38a793,'isReadOnly',_0x403749=>!_0x403749);for(const _0x3fe3cc of _0x2dd917){const _0x2a4a05=null===_0x3fe3cc['creator'];if(_0x2a4a05&&_0x3fe3cc['toVersion']===_0x3fe3cc['fromVersion'])continue;const _0x1debe5=_0x3fe3cc['toJSON']();_0x424c75['addRevisionData'](_0x1debe5,(_0x8c4137,_0x40ecd5,_0x34331b)=>{if(_0x2a4a05){if(_0x4e6334)_0x4e6334['_update'](_0x8c4137,_0x40ecd5);else{if(!_0x40ecd5){const _0x4e7985=_0x34331b['toJSON']();_0x4e7985['id']=_0x2135da(),_0x3444f2['saveRevision'](_0x4e7985,_0x34331b['toVersion'])['then'](_0x58f2db=>{_0x4e6334=_0x58f2db;});}}}else _0x3fe3cc['_update'](_0x8c4137,_0x40ecd5);});}}},d),_0x1c1689);}['_enhanceShowRevisionViewerCallback'](){const _0x208263=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x406536=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x36167f=this['editor']['plugins']['get']('Autosave');await _0x36167f['save']();}else await _0x406536['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x5c9695=this['editor']['plugins']['get']('Dialog');_0x5c9695['isOpen']&&_0x5c9695['hide']();}const _0x1693d1=this['_getRevisionViewerEditorConfig']();return _0x208263(_0x1693d1)['then'](_0x1f4514=>{return(this['_viewerEditor']=_0x1f4514,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'),_0x1f4514);})['catch'](_0x498179=>(console['error'](_0x498179),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x34e15c=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'](),_0x34e15c(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x5e3eab=this['editor']['plugins']['get']('Annotations');_0x5e3eab['refreshVisibility'](),_0x5e3eab['refreshPositioning']();}})));}['_showRevisionViewer'](_0x2cd63f){const _0x17aa8f=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x4790f6=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x559246=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x559246,_0x2cd63f)['then'](_0x3cf586=>(_0x4790f6['style']['display']='block',_0x17aa8f['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x3cf586));}['_closeRevisionViewer'](_0x37e6c0){const _0x21bf59=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x21bf59['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x37e6c0['destroy']();}async['_restoreRevision'](_0x38d1e6){const _0x112442=this['editor'],_0x3447ef=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x107195=_0x112442['plugins']['get']('RevisionTracker'),_0x348e67=_0x112442['plugins']['get']('RevisionHistoryUtils'),_0x441aa6=_0x3447ef['repository']['getRevision'](_0x38d1e6);let _0x17715d,_0x463013,_0x58a4b1;try{await _0x348e67['loadRevisionData'](_0x441aa6,this['adapter']),_0x17715d=_0x348e67['getRevisionDocumentData'](_0x441aa6),_0x463013=_0x348e67['getRevisionRootsAttributes'](_0x441aa6);}catch(_0x466065){return void console['error'](_0x466065);}_0x112442['model']['change'](_0x263c8d=>{for(const _0x430221 of Array['from'](_0x112442['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x263c8d['removeMarker'](_0x430221);}),_0x3447ef['isReady']=!0x1,_0x112442['model']['enqueueChange'](_0x31028f=>{_0x31028f['setSelection'](null),_0x31028f['removeSelectionAttribute'](_0x112442['model']['document']['selection']['getAttributeKeys']());const _0x569455=Object['keys'](_0x17715d);for(const _0x4d934e of _0x112442['model']['document']['roots'])'$graveyard'!=_0x4d934e['rootName']&&_0x4d934e['isAttached']()&&!_0x569455['includes'](_0x4d934e['rootName'])&&_0x31028f['detachRoot'](_0x4d934e);for(const _0x2159e0 of _0x569455){let _0x6484b1=_0x112442['model']['document']['getRoot'](_0x2159e0);_0x6484b1&&_0x6484b1['isAttached']()||(_0x6484b1=_0x31028f['addRoot'](_0x2159e0));const _0x4d8ebf=_0x463013[_0x2159e0],_0x4ac731=Object['keys'](_0x4d8ebf),_0x5e11a5=_0x17715d[_0x2159e0];for(const _0x2394c4 of _0x6484b1['getAttributeKeys']())_0x4ac731['includes'](_0x2394c4)||_0x31028f['removeAttribute'](_0x2394c4,_0x6484b1);for(const _0x3759bc of _0x4ac731)_0x31028f['setAttribute'](_0x3759bc,_0x463013[_0x2159e0][_0x3759bc],_0x6484b1);_0x31028f['remove'](_0x31028f['createRangeIn'](_0x6484b1)),_0x31028f['insert'](_0x112442['data']['parse'](_0x5e11a5,_0x6484b1),_0x6484b1,0x0);}});const _0x3e4890=g(_0x112442['locale'],'Restored');if(_0x441aa6['name'])_0x58a4b1=-0x1==_0x441aa6['name']['indexOf'](_0x3e4890)?_0x3e4890+':\x20'+_0x441aa6['name']:_0x441aa6['name'];else _0x58a4b1=_0x3e4890+':\x20'+(_0x441aa6['createdAt']['toLocaleDateString'](_0x112442['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x441aa6['createdAt']['toLocaleTimeString'](_0x112442['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x107195['saveRevision']({'name':_0x58a4b1}),_0x3447ef['isReady']=!0x0,_0x112442['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,V as RevisionHistoryUtils,u as RevisionTracker,m as RevisionViewer,w as RevisionViewerEditor,ge as RevisionViewerLoadingOverlay,R as RevisionViewerUI,I as RevisionsRepository,d as RevisionsSidebar};
|
|
28
|
+
pt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m];}constructor(_0x3802eb){super(_0x3802eb),this['_revisionViewer']=_0x3802eb['plugins']['get'](m),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x2ea5f1=this['_revisionsRepository']['_revisions'],_0x23415a=this['_createRevisionActions'](),_0x18bd63=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ni(this['editor']['locale'],_0x2ea5f1,_0x23415a,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',(_0x4ee0cf,_0x5b3777)=>{_0x5b3777['revisionViews']['on']('add',(_0x25ae3b,_0x4c4fa2)=>{_0x4c4fa2['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)),_0x18bd63['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x5f2fd0=this['_revisionsRepository']['getRevision'](0x0);if(_0x5f2fd0){const _0x33514b=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x5f2fd0['id']);this['_revisionViewer']['compare'](_0x5f2fd0,_0x33514b);}}['_handleRevisionSelected'](_0x3d5427,_0x1b8dd6){const _0x25c6d3=this['_revisionsRepository']['getRevision'](_0x1b8dd6['id']),_0x3906b1=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x25c6d3['id']);this['_revisionViewer']['compare'](_0x25c6d3,_0x3906b1);}['_handleRevisionSetName'](_0x35bcdc,_0x1102d9){this['_revisionsRepository']['getRevision'](_0x1102d9['id'])['setName'](_0x1102d9['name']);}['_handleDiffChange'](_0x485395,_0x41bd99,_0x41571b){const _0x33c396=this['_revisionsRepository']['getRevisionsInDiff'](_0x41571b);_0x33c396['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x33c396),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x33c396[0x0]));}['_createRevisionActions'](){const _0x32618d=this['editor'],_0x48a481=d['availableRevisionActions'],_0x584482=_0x32618d['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x584482['length'])return _0x584482['map'](_0x3beeb3=>{const _0x15b668='string'==typeof _0x3beeb3?Object['assign']({},_0x48a481[_0x3beeb3]):_0x3beeb3;return _0x15b668['action']=_0x15b668['action']['bind'](this,_0x32618d),_0x15b668['isVisible']&&(_0x15b668['isVisible']=_0x15b668['isVisible']['bind'](this,_0x32618d)),_0x15b668;});}}function pt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x44c3d0},_0x18bc00)=>{const _0x78fd2a=_0x44c3d0['get'](m),_0x57cf7c=_0x78fd2a['repository'];let _0x22de17=_0x78fd2a['diff']['newRevisionId'],_0x437d7f=_0x18bc00['id'];_0x57cf7c['getIndex'](_0x22de17)>_0x57cf7c['getIndex'](_0x437d7f)&&([_0x22de17,_0x437d7f]=[_0x437d7f,_0x22de17]),_0x78fd2a['compare'](_0x22de17,_0x437d7f);},'isVisible':({plugins:_0x105885},_0x3b0f9c)=>{const _0x20a3fc=_0x105885['get'](m);return!(_0x20a3fc['repository']['getRevisionsInDiff'](_0x20a3fc['diff'])['length']>0x2)&&!_0x3b0f9c['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x3ed6b7,{id:_0x54a9e3})=>{_0x3ed6b7['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x54a9e3);},'isVisible':({plugins:_0x2e5800},_0x5d0ab1)=>!!_0x2e5800['get'](m)['repository']['getLaterVisibleRevision'](_0x5d0ab1['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x3f5a22},{id:_0x172103,revisionNameView:_0x4a25a5})=>{const _0x507dba=_0x3f5a22['get'](m),_0x378fde=_0x507dba['repository']['getEarlierVisibleRevision'](_0x172103);_0x507dba['compare'](_0x172103,_0x378fde),_0x4a25a5['focus'](),_0x4a25a5['fieldView']['select']();}}};}class tt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x44754a,_0x209850){super(_0x44754a),this['_view']=_0x209850,this['_toolbarConfig']=et(_0x44754a['config']['get']('toolbar')),this['_elementReplacer']=new ot();}get['element'](){return this['view']['element'];}['init'](_0x5ef218){const _0x52b82f=this['editor'],_0x164f8b=this['view'],_0x3b0a0b=_0x52b82f['editing']['view'],_0xbeec83=_0x164f8b['editable'],_0x40240b=_0x3b0a0b['document']['getRoot']();_0xbeec83['name']=_0x40240b['rootName'],_0x164f8b['render']();const _0x1d57f1=_0xbeec83['element'];this['setEditableElement'](_0xbeec83['name'],_0x1d57f1),_0x164f8b['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x3b0a0b['attachDomRoot'](_0x1d57f1),this['_elementReplacer']['replace'](_0x5ef218,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x151f21=this['view'],_0x4ce854=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x4ce854['detachDomRoot'](_0x151f21['editable']['name']),_0x151f21['destroy']();}['_initToolbar'](){const _0x56fb64=this['view'];_0x56fb64['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x56fb64['stickyPanel']['limiterElement']=_0x56fb64['element'],_0x56fb64['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0xe66355})=>_0xe66355),_0x56fb64['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x56fb64['toolbar']);}}class it extends rt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x1d9ccf,_0x3d636d,_0x2fae95={}){super(_0x1d9ccf),this['stickyPanel']=new ht(_0x1d9ccf),this['toolbar']=new dt(_0x1d9ccf,{'shouldGroupWhenFull':_0x2fae95['shouldToolbarGroupWhenFull']}),this['_editable']=new ct(_0x1d9ccf,_0x3d636d);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class w extends/* #__PURE__ -- @preserve */
|
|
29
|
+
_0x1398b5(_0x5d9151){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x37de86,_0x311ce1){super(_0x311ce1),this['sourceElement']=_0x37de86,this['model']['document']['createRoot']();const _0x96a2dd=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x96a2dd);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x4fcdf7,_0x115912){const _0x2a30e1=new this(_0x4fcdf7,_0x115912);return await _0x2a30e1['initPlugins'](),await _0x2a30e1['ui']['init'](_0x4fcdf7),await _0x2a30e1['data']['init'](_0x2a30e1['config']['get']('initialData')||''),_0x2a30e1['fire']('ready'),_0x2a30e1;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class _t extends _0x351143{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1d2fdd){function _0x44e731(_0x1c8a3f){return _0x1c8a3f['map'](_0x2bbcc6=>String['fromCharCode'](_0x2bbcc6))['join']('');}super(_0x1d2fdd),this['result']='end',_0x1d2fdd[_0x44e731([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x44e731([0x76,0x69,0x65,0x77])][_0x44e731([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x44e731([0x61,0x75,0x74,0x6f]),_0x1d2fdd[_0x44e731([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x44e731([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x44e731([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x44e731([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x44e731([0x6f,0x6b])});}}class k extends _0x351143{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x411505){if(super(_0x411505),!this['editor']['config']['get']('revisionHistory'))throw new _0x135dc7('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x56a982=>this['_showRevisionViewer']({..._0x56a982,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x599b0b=>this['_closeRevisionViewer'](_0x599b0b)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x4016e2=>this['_restoreRevision'](_0x4016e2)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x1cb1d8){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x1cb1d8;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x32fbf4){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x32fbf4);}['getRevision'](_0x37b670){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x37b670);}['getRevisions'](_0x26c09e){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x26c09e||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x46011a=this['editor'],_0x31a319=_0x327198(_0x46011a,p),_0x36b00e=_0x46011a['plugins']['get']('RevisionTracker'),_0x40af15=_0x46011a['plugins']['get']('Users')['users'];return _0x31a319['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x31a319['lazyRoots'],(_0x31a319['plugins']['push'](_t,m,R,class extends _0x351143{static get['requires'](){return[m,'Users'];}['init'](){const _0x4d5489=this['editor']['plugins']['get']('Users');for(const _0x2d642f of _0x40af15)_0x2d642f['isAnonymous']||_0x4d5489['getUser'](_0x2d642f['id'])||_0x4d5489['addUser'](_0x2d642f);const _0x391864=_0x36b00e['repository']['getRevisions']();let _0x8a0d54=null;const _0x262d61=this['editor']['plugins']['get']('RevisionViewer');_0x262d61['adapter']=_0x36b00e['adapter'],_0x262d61['bind']('isEnabled')['to'](_0x36b00e),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x46011a,'isReadOnly',_0x3f5b50=>!_0x3f5b50);for(const _0x325808 of _0x391864){const _0x305ed2=null===_0x325808['creator'];if(_0x305ed2&&_0x325808['toVersion']===_0x325808['fromVersion'])continue;const _0x4970bd=_0x325808['toJSON']();_0x262d61['addRevisionData'](_0x4970bd,(_0x2bd1ee,_0x9d383f,_0x16fc06)=>{if(_0x305ed2){if(_0x8a0d54)_0x8a0d54['_update'](_0x2bd1ee,_0x9d383f);else{if(!_0x9d383f){const _0x23fec4=_0x16fc06['toJSON']();_0x23fec4['id']=_0x33deb6(),_0x36b00e['saveRevision'](_0x23fec4,_0x16fc06['toVersion'])['then'](_0xcc963c=>{_0x8a0d54=_0xcc963c;});}}}else _0x325808['_update'](_0x2bd1ee,_0x9d383f);});}}},d),_0x31a319);}['_enhanceShowRevisionViewerCallback'](){const _0x4c1c36=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x3af1f9=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x19a253=this['editor']['plugins']['get']('Autosave');await _0x19a253['save']();}else await _0x3af1f9['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x414ce7=this['editor']['plugins']['get']('Dialog');_0x414ce7['isOpen']&&_0x414ce7['hide']();}const _0x399d30=this['_getRevisionViewerEditorConfig']();return _0x4c1c36(_0x399d30)['then'](_0x783535=>{return(this['_viewerEditor']=_0x783535,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'),_0x783535);})['catch'](_0x5a7960=>(console['error'](_0x5a7960),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x482620=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'](),_0x482620(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x377248=this['editor']['plugins']['get']('Annotations');_0x377248['refreshVisibility'](),_0x377248['refreshPositioning']();}})));}['_showRevisionViewer'](_0x31a502){const _0x21d845=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x17f4a9=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x3bbceb=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x3bbceb,_0x31a502)['then'](_0x31be68=>(_0x17f4a9['style']['display']='block',_0x21d845['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x31be68));}['_closeRevisionViewer'](_0x2a81b5){const _0x5113c7=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x5113c7['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x2a81b5['destroy']();}async['_restoreRevision'](_0x27e81d){const _0xe060e=this['editor'],_0x1caf9b=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x1038fe=_0xe060e['plugins']['get']('RevisionTracker'),_0x5a9155=_0xe060e['plugins']['get']('RevisionHistoryUtils'),_0x8b0002=_0x1caf9b['repository']['getRevision'](_0x27e81d);let _0x509fc3,_0x4f7e2d,_0x57e419;try{await _0x5a9155['loadRevisionData'](_0x8b0002,this['adapter']),_0x509fc3=_0x5a9155['getRevisionDocumentData'](_0x8b0002),_0x4f7e2d=_0x5a9155['getRevisionRootsAttributes'](_0x8b0002);}catch(_0x7157b0){return void console['error'](_0x7157b0);}_0xe060e['model']['change'](_0x4442a9=>{for(const _0x254b90 of Array['from'](_0xe060e['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x4442a9['removeMarker'](_0x254b90);}),_0x1caf9b['isReady']=!0x1,_0xe060e['model']['enqueueChange'](_0x183e82=>{_0x183e82['setSelection'](null),_0x183e82['removeSelectionAttribute'](_0xe060e['model']['document']['selection']['getAttributeKeys']());const _0x2da90a=Object['keys'](_0x509fc3);for(const _0xaec4ef of _0xe060e['model']['document']['roots'])'$graveyard'!=_0xaec4ef['rootName']&&_0xaec4ef['isAttached']()&&!_0x2da90a['includes'](_0xaec4ef['rootName'])&&_0x183e82['detachRoot'](_0xaec4ef);for(const _0x24b8d0 of _0x2da90a){let _0x75524=_0xe060e['model']['document']['getRoot'](_0x24b8d0);_0x75524&&_0x75524['isAttached']()||(_0x75524=_0x183e82['addRoot'](_0x24b8d0));const _0x47580d=_0x4f7e2d[_0x24b8d0],_0x18388c=Object['keys'](_0x47580d),_0x2f0502=_0x509fc3[_0x24b8d0];for(const _0x36a51a of _0x75524['getAttributeKeys']())_0x18388c['includes'](_0x36a51a)||_0x183e82['removeAttribute'](_0x36a51a,_0x75524);for(const _0x9f5863 of _0x18388c)_0x183e82['setAttribute'](_0x9f5863,_0x4f7e2d[_0x24b8d0][_0x9f5863],_0x75524);_0x183e82['remove'](_0x183e82['createRangeIn'](_0x75524)),_0x183e82['insert'](_0xe060e['data']['parse'](_0x2f0502,_0x75524),_0x75524,0x0);}});const _0x1295e3=g(_0xe060e['locale'],'Restored');if(_0x8b0002['name'])_0x57e419=-0x1==_0x8b0002['name']['indexOf'](_0x1295e3)?_0x1295e3+':\x20'+_0x8b0002['name']:_0x8b0002['name'];else _0x57e419=_0x1295e3+':\x20'+(_0x8b0002['createdAt']['toLocaleDateString'](_0xe060e['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x8b0002['createdAt']['toLocaleTimeString'](_0xe060e['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x1038fe['saveRevision']({'name':_0x57e419}),_0x1caf9b['isReady']=!0x0,_0xe060e['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,V as RevisionHistoryUtils,u as RevisionTracker,m as RevisionViewer,w as RevisionViewerEditor,ge as RevisionViewerLoadingOverlay,R as RevisionViewerUI,I as RevisionsRepository,d as RevisionsSidebar};
|