@ckeditor/ckeditor5-revision-history 45.2.0-alpha.0 → 45.2.0-alpha.2
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
|
-
_0x54d230(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x4464f5){super(),this['id']=_0x4464f5['id']||_0x3430e5(),this['creator']=_0x4464f5['creator']||null,this['authors']=_0x4464f5['authors']||[],this['diffData']=_0x4464f5['diffData']||null,this['toVersion']=_0x4464f5['toVersion']||0x0,this['fromVersion']=_0x4464f5['fromVersion']||0x0,this['set']('name',_0x4464f5['name']||''),this['set']('createdAt',_0x4464f5['createdAt']||new Date()),this['set']('attributes',_0x4464f5['attributes']||{});}['setName'](_0x35353){this['_update']({'name':_0x35353});}['setAttribute'](_0x2f81ec,_0x525500){const _0x2132bc=_0x10d4ae(this['attributes']);_0x1ee5c9(_0x2132bc,_0x2f81ec,_0x525500),this['_update']({'attributes':_0x2132bc});}['removeAttribute'](_0x3d16ac){const _0x1f5e91=_0x10d4ae(this['attributes']);_0x1322b6(_0x1f5e91,_0x3d16ac),this['_update']({'attributes':_0x1f5e91});}['_update'](_0x219d88,_0x6c921d=!0x1){let _0x21195c=!0x1;const _0xc4153b={'id':this['id']},_0x52099e=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x26d178 of _0x52099e){const _0x70407f=_0x219d88[_0x26d178];void 0x0!==_0x70407f&&_0x70407f!==this[_0x26d178]&&(this[_0x26d178]=_0x70407f,_0xc4153b[_0x26d178]=_0x70407f,_0x21195c=!0x0);}_0x21195c&&(_0xc4153b['authors']&&(_0xc4153b['authorsIds']=_0xc4153b['authors']['map'](_0x56411d=>_0x56411d['id']),delete _0xc4153b['authors']),this['fire']('_update',_0xc4153b,_0x6c921d));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x11d24b=>_0x11d24b['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x5d5a5f{['_revisions'];static get['requires'](){return[_0x3d749e];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x4962ac){super(_0x4962ac),this['_revisions']=new _0x372543();}['afterInit'](){!async function(_0x1d8d72){const _0x2e21dd=_0x154203([0x64,0x61,0x56,0x37,0x4d,0x57,0x6d,0x4e,0x72,0x5a,0x77,0x6b,0x75,0x55,0x47,0x4c,0x4b,0x74,0x50,0x43,0x69,0x51,0x65,0x45,0x44,0x66,0x42,0x73,0x48,0x34,0x6f,0x38,0x36,0x4f,0x32,0x41,0x78,0x6a,0x68,0x54,0x71,0x6c,0x52,0x35,0x58,0x63,0x76,0x53,0x70,0x79,0x30,0x6e,0x46,0x59,0x4a,0x39,0x62,0x7a,0x49,0x33,0x67,0x31]),_0x166ddb=0xeb829,_0x48a294=0x304c9bee,_0x1f5bc0=0x304bf2ce^_0x48a294,_0x1c1b62=window[_0x154203([0x44,0x61,0x74,0x65])][_0x154203([0x6e,0x6f,0x77])](),_0x221354=_0x1d8d72[_0x154203([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x571452=new window[(_0x154203([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x327573=>{_0x221354[_0x154203([0x6f,0x6e,0x63,0x65])](_0x154203([0x72,0x65,0x61,0x64,0x79]),_0x327573);}),_0x1297b4={[_0x154203([0x6b,0x74,0x79])]:_0x154203([0x45,0x43]),[_0x154203([0x75,0x73,0x65])]:_0x154203([0x73,0x69,0x67]),[_0x154203([0x63,0x72,0x76])]:_0x154203([0x50,0x2d,0x32,0x35,0x36]),[_0x154203([0x78])]:_0x154203([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]),[_0x154203([0x79])]:_0x154203([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]),[_0x154203([0x61,0x6c,0x67])]:_0x154203([0x45,0x53,0x32,0x35,0x36])},_0x301dcf=_0x221354[_0x154203([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x154203([0x67,0x65,0x74])](_0x154203([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x134bf0(){let _0x17340c,_0x29ccb7=null,_0x1096e8=null;try{if(_0x301dcf==_0x154203([0x47,0x50,0x4c]))return _0x154203([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x17340c=_0x3d22b2(),!_0x17340c)return _0x154203([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x17340c[_0x154203([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1096e8=_0x31ce7b(_0x17340c[_0x154203([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x17340c[_0x154203([0x6a,0x74,0x69])])),await _0x4eb326()?_0x1bf32c()?_0x21ad96()?_0x154203([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2c62d1()?(_0x17340c[_0x154203([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x154203([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x29ccb7=_0x24ebf7(_0x154203([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x17340c[_0x154203([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x154203([0x74,0x72,0x69,0x61,0x6c])&&(_0x29ccb7=_0x24ebf7(_0x154203([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x30c475()):_0x154203([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x154203([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x154203([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x154203([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x21ad96(){const _0x29ea14=[_0x154203([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x154203([0x74,0x72,0x69,0x61,0x6c])][_0x154203([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17340c[_0x154203([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1c1b62/0x3e8:0xe10*_0x1f5bc0;return _0x17340c[_0x154203([0x65,0x78,0x70])]<_0x29ea14;}function _0x1bf32c(){const _0x20c873=_0x17340c[_0x154203([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x20c873)return!0x1;if(_0x20c873[_0x154203([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x154203([0x2a])))return!0x0;if(_0x20c873[_0x154203([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x154203([0x52,0x48])))return!0x0;if(_0x20c873[_0x154203([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x154203([0x52,0x52,0x48]))){if(_0x2d7daa())return!0x0;if(_0x362876()||_0xaa4595())return!0x0;}return!0x1;}function _0x2c62d1(){const _0x53c2c8=_0x17340c[_0x154203([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x53c2c8||0x0==_0x53c2c8[_0x154203([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1ce080}=new URL(window[_0x154203([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x53c2c8[_0x154203([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ce080))return!0x0;const _0x5d40c7=_0x1ce080[_0x154203([0x73,0x70,0x6c,0x69,0x74])](_0x154203([0x2e]));return _0x53c2c8[_0x154203([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x461820=>_0x461820[_0x154203([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x154203([0x2a])))[_0x154203([0x6d,0x61,0x70])](_0x4e1abe=>_0x4e1abe[_0x154203([0x73,0x70,0x6c,0x69,0x74])](_0x154203([0x2e])))[_0x154203([0x73,0x6f,0x6d,0x65])](_0x6c7107=>_0x5d40c7[_0x154203([0x65,0x76,0x65,0x72,0x79])]((_0xc2e63,_0x7d789b)=>_0x6c7107[_0x7d789b]===_0xc2e63||_0x6c7107[_0x7d789b]===_0x154203([0x2a])));}function _0x30c475(){return _0x29ccb7&&_0x1096e8?new window[(_0x154203([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1d7a86,_0x18c785)=>{_0x29ccb7[_0x154203([0x74,0x68,0x65,0x6e])](_0x1d7a86,_0x18c785),_0x1096e8[_0x154203([0x74,0x68,0x65,0x6e])](_0x1d83c3=>{_0x1d83c3!=_0x154203([0x56,0x61,0x6c,0x69,0x64])&&_0x1d7a86(_0x1d83c3);},_0x18c785);}):_0x29ccb7||_0x1096e8||_0x154203([0x56,0x61,0x6c,0x69,0x64]);}}function _0x31ce7b(_0x40b15c,_0x3d53db){return new window[(_0x154203([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x543024=>{if(_0x295331())return _0x543024(_0x154203([0x56,0x61,0x6c,0x69,0x64]));_0x18b7bc(),_0x221354[_0x154203([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x154203([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x242955=!0x1;const _0x297e1c=_0x3430e5();function _0x4a44d8(_0x1be244){return!!_0x1be244&&(typeof _0x1be244===_0x154203([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1be244===_0x154203([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1be244[_0x154203([0x74,0x68,0x65,0x6e])]===_0x154203([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1be244[_0x154203([0x63,0x61,0x74,0x63,0x68])]===_0x154203([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4798ce(_0x34c8dd){_0x13a1b8(_0x34c8dd)[_0x154203([0x74,0x68,0x65,0x6e])](_0x372c0c=>{if(!_0x372c0c||_0x372c0c[_0x154203([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x154203([0x6f,0x6b]))return _0x154203([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4e933f(_0x1f9cc7(_0x297e1c+_0x3d53db))!=_0x372c0c[_0x154203([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x154203([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x154203([0x56,0x61,0x6c,0x69,0x64]);})[_0x154203([0x74,0x68,0x65,0x6e])](_0x4bc8c4=>(_0x1014d3(),_0x4bc8c4),()=>{const _0x24161a=_0x129d09();return null==_0x24161a?(_0x1014d3(),_0x154203([0x56,0x61,0x6c,0x69,0x64])):_0x154203(_0x1c1b62-_0x24161a>(0x14401fee^_0x48a294)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x154203([0x74,0x68,0x65,0x6e])](_0x543024)[_0x154203([0x63,0x61,0x74,0x63,0x68])](()=>{_0x543024(_0x154203([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x470523=0x307a756e^_0x48a294;function _0x1014d3(){const _0x4696de=_0x154203([0x6c,0x6c,0x63,0x74,0x2d])+_0x4e933f(_0x1f9cc7(_0x40b15c)),_0x2fb75b=_0x2b25c5(_0x4e933f(window[_0x154203([0x4d,0x61,0x74,0x68])][_0x154203([0x63,0x65,0x69,0x6c])](_0x1c1b62/_0x470523)));window[_0x154203([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x154203([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4696de,_0x2fb75b);}function _0x129d09(){const _0x439963=_0x154203([0x6c,0x6c,0x63,0x74,0x2d])+_0x4e933f(_0x1f9cc7(_0x40b15c)),_0x1ba6b7=window[_0x154203([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x154203([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x439963);return _0x1ba6b7?window[_0x154203([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2b25c5(_0x1ba6b7),0x10)*_0x470523:null;}function _0x13a1b8(_0x12aa64){return new window[(_0x154203([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x29cb56,_0x1b9910)=>{_0x12aa64[_0x154203([0x74,0x68,0x65,0x6e])](_0x29cb56,_0x1b9910),window[_0x154203([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1b9910,0x304d4f2e^_0x48a294);});}}_0x221354[_0x154203([0x6f,0x6e])](_0x154203([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x18495c,_0x3b87c0)=>{if(_0x3b87c0[0x0]!=_0x40b15c)return _0x543024(_0x154203([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3b87c0[0x1]={..._0x3b87c0[0x1],[_0x154203([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x297e1c};},{[_0x154203([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x154203([0x68,0x69,0x67,0x68])}),_0x221354[_0x154203([0x6f,0x6e])](_0x154203([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x473bde=>{_0x4a44d8(_0x473bde[_0x154203([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x242955=!0x0,_0x4798ce(_0x473bde[_0x154203([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x154203([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x154203([0x6c,0x6f,0x77])}),_0x571452[_0x154203([0x74,0x68,0x65,0x6e])](()=>{_0x242955||_0x543024(_0x154203([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x295331(){return _0x221354[_0x154203([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x154203([0x76,0x69,0x65,0x77])][_0x154203([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x154203([0x61,0x75,0x74,0x6f]);}function _0x18b7bc(){_0x221354[_0x154203([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x154203([0x76,0x69,0x65,0x77])][_0x154203([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x154203([0x61,0x75,0x74,0x6f]);}}function _0x24ebf7(_0x61ca51){const _0x149182=[new window[(_0x154203([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1a7a6f=>setTimeout(_0x1a7a6f,0x3045a522^_0x48a294)),_0x571452[_0x154203([0x74,0x68,0x65,0x6e])](()=>new window[(_0x154203([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x335d93=>{const _0x19a205=0x304c9be9^_0x48a294,_0x2f63a1=_0x1d8d72[_0x154203([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x518eb9(){_0x2f63a1[_0x154203([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x19a205&&_0x335d93();}_0x518eb9(),_0x2f63a1[_0x154203([0x6f,0x6e])](_0x154203([0x61,0x64,0x64]),_0x518eb9);})),new window[(_0x154203([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5cd305=>{function _0x5dd83f(){for(const _0x417109 in window)if(window[_0x154203([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x154203([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x417109))&&window[_0x417109]==_0x166ddb)return _0x5cd305();_0x221354[_0x154203([0x73,0x74,0x61,0x74,0x65])]!=_0x154203([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x154203([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5dd83f,0x304c8866^_0x48a294);}_0x455b5b(_0x154203([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x5dd83f();})];return window[_0x154203([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x154203([0x72,0x61,0x63,0x65])](_0x149182)[_0x154203([0x74,0x68,0x65,0x6e])](()=>_0x61ca51);}async function _0x16fc23(){if(await _0x571452,_0x455b5b(_0x154203([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x30c38e=_0x1d8d72[_0x154203([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x578571=_0x1d8d72[_0x154203([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])](_0x30c38e[_0x154203([0x69,0x64])]),_0x47e180=_0x18d843(_0x154203([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x47e180[_0x154203([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x30c38e['id'],_0x578571?_0x578571['id']:null,!0x0),_0x47e180[_0x154203([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x154203([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x47e180[_0x154203([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x47e180[_0x154203([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x47af86,void(_0x47e180[_0x154203([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x47af86);}if(_0x455b5b(_0x154203([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x461b8a=_0x18d843(_0x154203([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x461b8a[_0x154203([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x154203([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x461b8a[_0x154203([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x461b8a[_0x154203([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x47af86,_0x461b8a[_0x154203([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x47af86;}_0x221354[_0x154203([0x6d,0x6f,0x64,0x65,0x6c])][_0x154203([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x47af86,_0x221354[_0x154203([0x6d,0x6f,0x64,0x65,0x6c])][_0x154203([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x47af86,_0x221354[_0x154203([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x154203([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2d7daa(){return _0x455b5b(_0x154203([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x18d843(_0x154203([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x154203([0x73,0x74,0x61,0x74,0x65])]==_0x154203([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x362876(){return _0x455b5b(_0x154203([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 _0xaa4595(){return _0x455b5b(_0x154203([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x56fb78(_0x100f9a){const _0x32ce2d=_0xcc53d2();_0x221354[_0x32ce2d]=_0x154203([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])+_0x100f9a,_0x100f9a[_0x154203([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x154203([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0xcc53d2()]=_0x166ddb),_0x100f9a!=_0x154203([0x56,0x61,0x6c,0x69,0x64])&&_0x16fc23();}function _0xcc53d2(){const _0x245d83=window[_0x154203([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x154203([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x154203([0x6e,0x6f,0x77])]())[_0x154203([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x154203([0x2e]),'');let _0x1bbd33=_0x154203([0x64]);for(let _0x4b5869=0x0;_0x4b5869<_0x245d83[_0x154203([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4b5869+=0x2){let _0x52ff82=window[_0x154203([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x245d83[_0x154203([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4b5869,_0x4b5869+0x2));_0x52ff82>=_0x2e21dd[_0x154203([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x52ff82-=_0x2e21dd[_0x154203([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1bbd33+=_0x2e21dd[_0x52ff82];}return _0x1bbd33;}function _0x3d22b2(){const _0x54aa0f=_0x301dcf[_0x154203([0x73,0x70,0x6c,0x69,0x74])](_0x154203([0x2e]));if(0x3!=_0x54aa0f[_0x154203([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x8d7eb0(_0x54aa0f[0x1]);function _0x8d7eb0(_0x4ac43c){const _0x128cd3=_0x2370a0(_0x4ac43c);return _0x128cd3&&_0xa9529a()?_0x128cd3:null;function _0xa9529a(){const _0x51c1a2=_0x128cd3[_0x154203([0x6a,0x74,0x69])],_0x5a6c03=window[_0x154203([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x51c1a2[_0x154203([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x51c1a2[_0x154203([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1ddde4={..._0x128cd3,[_0x154203([0x6a,0x74,0x69])]:_0x51c1a2[_0x154203([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x51c1a2[_0x154203([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1ddde4[_0x154203([0x76,0x63])],_0x1f9cc7(_0x1ddde4)==_0x5a6c03;}}}async function _0x4eb326(){let _0x132118=!0x0;try{const _0x558597=_0x301dcf[_0x154203([0x73,0x70,0x6c,0x69,0x74])](_0x154203([0x2e])),[_0x4f9e6f,_0x2b8ffd,_0x2fa405]=_0x558597;return _0x34fe8a(_0x4f9e6f),await _0x2cd5a4(_0x4f9e6f,_0x2b8ffd,_0x2fa405),_0x132118;}catch{return!0x1;}function _0x34fe8a(_0xf23317){const _0x726490=_0x2370a0(_0xf23317);_0x726490&&_0x726490[_0x154203([0x61,0x6c,0x67])]==_0x154203([0x45,0x53,0x32,0x35,0x36])||(_0x132118=!0x1);}async function _0x2cd5a4(_0x57e630,_0x1cc4b5,_0x5c640e){const _0x45b65a=window[_0x154203([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x154203([0x66,0x72,0x6f,0x6d])](_0x39138a(_0x5c640e),_0x580680=>_0x580680[_0x154203([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3fb448=new window[(_0x154203([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x154203([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x57e630+_0x154203([0x2e])+_0x1cc4b5),_0x2ff183=window[_0x154203([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x154203([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2ff183)return;const _0x4aa7d2=await _0x2ff183[_0x154203([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x154203([0x6a,0x77,0x6b]),_0x1297b4,{[_0x154203([0x6e,0x61,0x6d,0x65])]:_0x154203([0x45,0x43,0x44,0x53,0x41]),[_0x154203([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x154203([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x154203([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2ff183[_0x154203([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x154203([0x6e,0x61,0x6d,0x65])]:_0x154203([0x45,0x43,0x44,0x53,0x41]),[_0x154203([0x68,0x61,0x73,0x68])]:{[_0x154203([0x6e,0x61,0x6d,0x65])]:_0x154203([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4aa7d2,_0x45b65a,_0x3fb448)||(_0x132118=!0x1);}}function _0x2370a0(_0x576c7d){return _0x576c7d[_0x154203([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x154203([0x65,0x79]))?JSON[_0x154203([0x70,0x61,0x72,0x73,0x65])](_0x39138a(_0x576c7d)):null;}function _0x39138a(_0x3dadc2){return window[_0x154203([0x61,0x74,0x6f,0x62])](_0x3dadc2[_0x154203([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x154203([0x2b]))[_0x154203([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x154203([0x2f])));}function _0x1f9cc7(_0x5415bb){let _0xe5f4b=0x1505;function _0x3a2a66(_0x4e946){for(let _0x109aa8=0x0;_0x109aa8<_0x4e946[_0x154203([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x109aa8++){const _0x3989fb=_0x4e946[_0x154203([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x109aa8);_0xe5f4b=(_0xe5f4b<<0x5)+_0xe5f4b+_0x3989fb,_0xe5f4b&=_0xe5f4b;}}function _0x2fa9f8(_0x4dd940){Array[_0x154203([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4dd940)?_0x4dd940[_0x154203([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2fa9f8):_0x4dd940&&typeof _0x4dd940==_0x154203([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x154203([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4dd940)[_0x154203([0x73,0x6f,0x72,0x74])]()[_0x154203([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1e669e,_0x1c7392])=>{_0x3a2a66(_0x1e669e),_0x2fa9f8(_0x1c7392);}):_0x3a2a66(window[_0x154203([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4dd940));}return _0x2fa9f8(_0x5415bb),_0xe5f4b>>>0x0;}function _0x4e933f(_0x3d2387){return _0x3d2387[_0x154203([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x154203([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x154203([0x30]));}function _0x2b25c5(_0x127a5f){return _0x127a5f[_0x154203([0x73,0x70,0x6c,0x69,0x74])]('')[_0x154203([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x154203([0x6a,0x6f,0x69,0x6e])]('');}function _0x455b5b(_0xc171d6){return _0x221354[_0x154203([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x154203([0x68,0x61,0x73])](_0xc171d6);}function _0x18d843(_0x18f6f7){return _0x221354[_0x154203([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x154203([0x67,0x65,0x74])](_0x18f6f7);}function _0x47af86(){}function _0x154203(_0x1e4dfe){return _0x1e4dfe['map'](_0x51a979=>String['fromCharCode'](_0x51a979))['join']('');}_0x56fb78(await _0x134bf0());}(this);}['createRevision'](_0x1f1e94){const _0x2e33e1=this['editor']['plugins']['get']('Users');return new h({'id':_0x1f1e94['id'],'name':_0x1f1e94['name'],'creator':_0x1f1e94['creatorId']?_0x2e33e1['getUser'](_0x1f1e94['creatorId']):null,'diffData':_0x1f1e94['diffData']||_0x1f1e94['data'],'authors':_0x1f1e94['authorsIds']['map'](_0x2d5326=>_0x2e33e1['getUser'](_0x2d5326)),'createdAt':new Date(_0x1f1e94['createdAt']),'attributes':_0x1f1e94['attributes'],'fromVersion':_0x1f1e94['fromVersion'],'toVersion':_0x1f1e94['toVersion']});}['addRevision'](_0x1c987a,_0x4920da=0x0){this['_revisions']['add'](_0x1c987a,_0x4920da);}['getRevision'](_0x216b72){return this['_revisions']['get'](_0x216b72);}['getRevisions'](_0x2977fc={'toJSON':!0x1}){const _0x5a50bb=Array['from'](this['_revisions']);return _0x5a50bb['reverse'](),_0x2977fc['toJSON']?_0x5a50bb['map'](_0x41d060=>_0x41d060['toJSON']()):_0x5a50bb;}['getIndex'](_0x5e2486){return this['_revisions']['getIndex'](_0x5e2486);}['getEarlierVisibleRevision'](_0x33889c){const [,_0x8adcd3]=this['getRevisionsIterator'](_0x33889c,{'direction':'earlier'});return _0x8adcd3;}['getLaterVisibleRevision'](_0x2b6aa7){const [,_0x31fb74]=this['getRevisionsIterator'](_0x2b6aa7,{'direction':'later'});return _0x31fb74;}['getRevisionsInDiff'](_0x5a2c38){const _0x131cc8=[];for(const _0xfc15f3 of this['getRevisionsIterator'](_0x5a2c38['newRevisionId']))if(_0x131cc8['push'](_0xfc15f3),_0xfc15f3['id']===_0x5a2c38['oldRevisionId'])break;return _0x131cc8;}*['getRevisionsIterator'](_0x56fc17,{direction:_0x49aa3b='earlier',filter:_0xc9c0bd=()=>!0x0}={}){const _0x362f13='earlier'===_0x49aa3b?0x1:-0x1;let _0x1f63ca=this['_revisions']['get'](_0x56fc17),_0x3a197d=this['getIndex'](_0x1f63ca);for(yield _0x1f63ca;_0x1f63ca;){if(_0x3a197d+=_0x362f13,_0x1f63ca=this['getRevision'](_0x3a197d),!_0x1f63ca)return;_0xc9c0bd(_0x1f63ca)&&(yield _0x1f63ca);}}}class V extends _0x5d5a5f{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x5a6c9a,'c'],[_0x49f729,'a'],[_0x4e4ac8,'e'],[_0x2fb949,'r'],[_0x139dcd,'u']]);['_typeCharToViewClass']=new Map([['c',_0x5a6c9a],['a',_0x49f729],['e',_0x4e4ac8],['r',_0x2fb949],['u',_0x139dcd]]);async['loadRevisionData'](_0x36c345,_0x3e5303){if(_0x36c345['diffData']||!_0x3e5303)return;const _0xd0d959=this['editor']['config']['get']('collaboration.channelId'),_0x304211=await _0x3e5303['getRevision']({'channelId':_0xd0d959,'revisionId':_0x36c345['id']});_0x36c345['diffData']=_0x304211['diffData'];}['getRevisionDocumentData'](_0xc61563){const _0x349000={};for(const _0x2a620d in _0xc61563['diffData']){if(_0xc61563['diffData'][_0x2a620d]['attachChange']&&!_0xc61563['diffData'][_0x2a620d]['attachChange']['isAttached'])continue;const _0x3f1d9d=this['_removeRevisionMarkers'](JSON['parse'](_0xc61563['diffData'][_0x2a620d]['insertions'])),_0x3a4630=this['editor']['editing']['view']['document'],_0x18ca92=new _0xc82da(_0x3a4630,_0x3f1d9d['map'](_0x2d34c9=>this['_getViewFromDiffObj'](_0x2d34c9,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x349000[_0x2a620d]=this['editor']['data']['processor']['toData'](_0x18ca92),this['editor']['data']['processor']['useFillerType']('default');}return _0x349000;}['getRevisionRootsAttributes'](_0x3dd8a5){const _0x48d838={};for(const _0x1ef419 in _0x3dd8a5['diffData'])_0x3dd8a5['diffData'][_0x1ef419]['attachChange']&&!_0x3dd8a5['diffData'][_0x1ef419]['attachChange']['isAttached']||(_0x48d838[_0x1ef419]=_0x3dd8a5['diffData'][_0x1ef419]['attributesAfter']||{});return _0x48d838;}['_getTypeCharForViewElement'](_0x5a4700){return this['_viewClassToTypeChar']['get'](_0x5a4700['constructor']);}['_getViewFromDiffObj'](_0x227938,_0x4ac96b){const _0x4bfb8f=this['editor']['editing']['view']['document'];if('string'==typeof _0x227938)return new _0x21c403(_0x4bfb8f,_0x227938);{let _0x70f100,_0x101dc5;_0x101dc5='u'==_0x227938['type']||'r'==_0x227938['type']?[]:_0x227938['children']['map'](_0x5aac51=>this['_getViewFromDiffObj'](_0x5aac51,_0x4ac96b));const _0x3cb96b=this['_typeCharToViewClass']['get'](_0x227938['type'])||_0x3d5438,_0x271103=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x70f100=new _0x3cb96b(_0x4bfb8f,_0x227938['name'],_0x227938['attributes'],_0x101dc5),'u'==_0x227938['type']&&_0x227938['children'][0x0]){const _0x5be7a2=_0x227938['children'][0x0];if(_0x70f100['render']=function(_0xdd16b6){const _0x2103c9=_0xdd16b6['createElement']('div');return _0x2103c9['innerHTML']=_0x5be7a2,_0x2103c9['childNodes'][0x0];},_0x4ac96b){const _0x4100c2=new _0xc82da(_0x4bfb8f);_0x4100c2['_appendChild'](_0x70f100);const _0x693926=Array['from'](_0x271103['viewChildrenToDom'](_0x4100c2,{'bind':!0x1})),_0x52e25a=_0x271103['domDocument']['createElement']('div');_0x52e25a['append'](..._0x693926),_0x70f100=Array['from'](_0x271103['domChildrenToView'](_0x52e25a))[0x0];}}else{if('r'==_0x227938['type']&&_0x227938['children'][0x0]){const _0x3b8adb=_0x227938['children'][0x0];if(_0x70f100['render']=function(_0x21adee){_0x21adee['innerHTML']=_0x3b8adb;},_0x4ac96b){const _0x34a033=new _0xc82da(_0x4bfb8f);_0x34a033['_appendChild'](_0x70f100);const _0x162cf0=Array['from'](_0x271103['viewChildrenToDom'](_0x34a033,{'bind':!0x1})),_0x294393=_0x271103['domDocument']['createElement']('div');_0x294393['append'](..._0x162cf0);const _0x1a7432=Array['from'](_0x271103['domChildrenToView'](_0x294393));_0x1a7432['length']>0x1?_0x70f100['_appendChild'](_0x1a7432):_0x70f100=_0x1a7432[0x0];}}}if(_0x227938['customProperties']){for(const [_0x2105a8,_0x36322d]of _0x227938['customProperties'])_0x70f100['_setCustomProperty'](_0x2105a8,_0x36322d);}const _0x30124d=void 0x0===_0x227938['fillerOffset']?null:_0x227938['fillerOffset'];return null!==_0x30124d&&(_0x70f100['getFillerOffset']=()=>_0x30124d),_0x70f100;}}['_makeModelFromViewString'](_0x36995d){const _0x17f736=JSON['parse'](_0x36995d),_0xf83dd9=this['editor']['editing']['view']['document'],_0x4357cd=new _0xc82da(_0xf83dd9,_0x17f736['map'](_0x370a91=>this['_getViewFromDiffObj'](_0x370a91,!0x0)));return this['editor']['data']['toModel'](_0x4357cd);}['_removeRevisionMarkers'](_0x4dba8c){return(_0x4dba8c=_0x4dba8c['filter'](_0x3ce637=>!_0x3ce637['name']||'revision-start'!==_0x3ce637['name']&&'revision-end'!==_0x3ce637['name']))['forEach'](_0x251d4d=>{'string'!=typeof _0x251d4d&&(_0x251d4d['children']=this['_removeRevisionMarkers'](_0x251d4d['children']),_0x251d4d['attributes']=_0x251d4d['attributes']['filter'](_0x337ec4=>!_0x337ec4[0x0]['startsWith']('data-revision-')));}),_0x4dba8c;}}function g(_0x250604,_0x309221,_0x395d7b){const t=_0x250604['t'];switch(_0x309221){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'},_0x395d7b);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x395d7b);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 _0x5d5a5f{['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[_0x3d749e,I,V,_0x2dbb0e];}constructor(_0x2bc3e2){super(_0x2bc3e2),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 _0x2f1410=_0x3430e5();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x2f1410},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 _0x4df51c=this['repository']['getRevision'](0x0),_0x509afa=_0x4df51c&&null===_0x4df51c['creator']?_0x4df51c:null;if(this['_continueCurrentRevision']=!!_0x509afa&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0xa8e2a1=this['_source']['getCurrentRevisionId'](),_0x1dfed5=this['repository']['getRevision'](_0xa8e2a1);if(_0x1dfed5)this['_startingVersion']=_0x1dfed5['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x4d110a=this['_source']['history']['_operations']['find'](_0x22a302=>!_0x22a302['_isInit']),_0x5104ef=_0x4d110a?_0x4d110a['baseVersion']:this['_source']['history']['version'];_0x4df51c?(_0x4df51c['toVersion']<_0x5104ef&&_0x4df51c['_update']({'toVersion':_0x5104ef}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x509afa['id'],this['_startingVersion']=_0x509afa['fromVersion']):(this['_startingVersion']=_0x4df51c['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x5104ef,this['_continueCurrentRevision']=!0x1);}}else _0x509afa&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x509afa['toVersion'],this['editor']['model']['document']['history']['version']),_0x509afa['fromVersion']===_0x509afa['toVersion']?(0x0!==_0x509afa['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x509afa['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x509afa['id'],this['_startingVersion']=_0x509afa['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',_0xd9bd0a=>!_0xd9bd0a),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xcc9614=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x614be5;for(const _0x159ca3 in _0xcc9614){const _0x2635af=_0x159ca3,_0x1e33f2=_0xcc9614[_0x2635af];if('revisionHistoryLicenseKeyValid'==_0x1e33f2||'revisionHistoryLicenseKeyInvalid'==_0x1e33f2||'revisionHistoryLicenseKeyExpired'==_0x1e33f2||'revisionHistoryLicenseKeyDomainLimit'==_0x1e33f2||'revisionHistoryLicenseKeyNotAllowed'==_0x1e33f2||'revisionHistoryLicenseKeyEvaluationLimit'==_0x1e33f2||'revisionHistoryLicenseKeyTrialLimit'==_0x1e33f2||'revisionHistoryLicenseKeyUsageLimit'==_0x1e33f2){delete _0xcc9614[_0x2635af],_0x614be5=_0x1e33f2,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x614be5&&_0xcc9614['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x614be5&&_0xcc9614['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x614be5&&_0xcc9614['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x614be5&&_0xcc9614['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x614be5&&_0xcc9614['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x614be5&&_0xcc9614['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x614be5&&_0xcc9614['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x6eacac=this['repository']['getRevision'](0x0),_0x5c12a8=await this['getRevisionDocumentData'](_0x6eacac),_0x3cf022=await this['getRevisionRootsAttributes'](_0x6eacac);this['_replaceEditorDataWithRevisionData'](_0x5c12a8,_0x3cf022);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0xeef9af){this['_source']=_0xeef9af;}async['update'](){const _0x40f176=await this['_source']['getLatestVersion']();if(_0x40f176>this['currentRevision']['toVersion']){await this['_loadState']();const _0x1dd533=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x40f176});_0x1dd533['authors']=_0x1dd533['authorsIds']['map'](_0x582fac=>this['editor']['plugins']['get']('Users')['getUser'](_0x582fac)),this['currentRevision']['_update'](_0x1dd533);}}async['saveRevision'](_0x21d26f={},_0x4f255c=null){const _0x7c5856=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x4f255c>this['currentRevision']['toVersion']&&(_0x4f255c=null),null===_0x4f255c&&(_0x4f255c=await this['_source']['getLatestVersion']());const _0x3a614b=this['_getFromVersion'](_0x4f255c),_0x283eb6=this['buildRevisionData']({'from':_0x3a614b,'to':_0x4f255c});if(this['currentRevision']['toVersion']<_0x4f255c){const _0x5373f3=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x4f255c,'to':_0x4f255c});_0x5373f3['authors']=[],_0x5373f3['authorsIds']=[],_0x5373f3['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x5373f3,!0x0),delete _0x5373f3['authors'],_0x7c5856['push'](_0x5373f3);}_0x21d26f['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x21d26f['name']=_0x21d26f['name']||null,_0x21d26f['id']=_0x21d26f['id']||_0x3430e5(),_0x21d26f={..._0x21d26f,..._0x283eb6};const _0x28baac=this['addRevisionData'](_0x21d26f);_0x7c5856['push'](_0x21d26f);const _0x5f30bc=this['repository']['getIndex'](_0x28baac);if(0x0!==_0x5f30bc){const _0x3304e1=this['repository']['getRevision'](_0x5f30bc-0x1);if(_0x3304e1['fromVersion']!==_0x4f255c){const _0x1b0b46=this['_revisionDataBuilder']['getData'](_0x4f255c,_0x3304e1['toVersion']),_0x2fe225={'id':_0x3304e1['id'],'diffData':_0x1b0b46['diffData'],'authorsIds':_0x1b0b46['authorsIds'],'authors':_0x1b0b46['authorsIds']['map'](_0x52e60d=>this['editor']['plugins']['get']('Users')['getUser'](_0x52e60d)),'fromVersion':_0x4f255c};_0x3304e1===this['currentRevision']&&(_0x2fe225['createdAt']=new Date(_0x21d26f['createdAt']['getTime']()+0xa)),_0x3304e1['_update'](_0x2fe225,!0x0),delete _0x2fe225['authors'],_0x7c5856['push'](_0x2fe225);}}if(this['adapter']){for(const _0x41c3b3 of _0x7c5856)this['_bufferUpdate'](_0x41c3b3['id'],_0x41c3b3,!0x0);this['sendBufferedUpdates']();}return _0x28baac;}['addRevisionData'](_0x241ef5){const _0x402d0d=this['repository']['createRevision'](_0x241ef5);return this['adapter']&&_0x402d0d['on']('_update',(_0x116d4b,_0x11603c,_0x34fa39)=>{_0x34fa39||(this['_bufferUpdate'](_0x11603c['id'],_0x11603c,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x402d0d,this['_findInsertionIndex'](_0x402d0d)),_0x402d0d;}async['getRevisionDocumentData'](_0x5799a2){return await this['_utils']['loadRevisionData'](_0x5799a2,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x5799a2);}async['getRevisionRootsAttributes'](_0x2fb22e){return await this['_utils']['loadRevisionData'](_0x2fb22e,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x2fb22e);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x5a6d8c=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0xad59d1=0x0;_0xad59d1<_0x5a6d8c['length'];_0xad59d1++){const _0x33c2d2=_0x5a6d8c[_0xad59d1];let _0x15cdbe=!0x1;for(const _0x22dc13 of Object['keys'](_0x33c2d2))void 0x0===_0x33c2d2[_0x22dc13]?delete _0x33c2d2[_0x22dc13]:'id'!==_0x22dc13&&(_0x15cdbe=!0x0);_0x15cdbe||(_0x5a6d8c[_0xad59d1]=null);}if(_0x5a6d8c=_0x5a6d8c['filter'](_0x351c04=>null!==_0x351c04),!_0x5a6d8c['length'])return;for(let _0x15cb7f=0x0;_0x15cb7f<_0x5a6d8c['length'];_0x15cb7f++){const _0x53d3c9=_0x5a6d8c[_0x15cb7f];void 0x0!==_0x53d3c9['fromVersion']&&void 0x0===_0x53d3c9['toVersion']&&(_0x53d3c9['toVersion']=this['repository']['getRevision'](_0x53d3c9['id'])['toVersion']),void 0x0!==_0x53d3c9['toVersion']&&void 0x0===_0x53d3c9['fromVersion']&&(_0x53d3c9['fromVersion']=this['repository']['getRevision'](_0x53d3c9['id'])['fromVersion']);}const _0x199518=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x5a6d8c,_0x199518)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x21fb32=>{if(_0x21fb32){for(const _0x49ec60 of _0x21fb32)this['setRevisionData']({'id':_0x49ec60['id'],'createdAt':_0x49ec60['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x5ecd92=null,from:_0x351549=null,to:_0x10e1d5=null}){_0x351549=null!==_0x351549?_0x351549:_0x5ecd92['fromVersion'],_0x10e1d5=null!==_0x10e1d5?_0x10e1d5:_0x5ecd92['toVersion'];const _0x554089=this['_revisionDataBuilder']['getData'](_0x351549,_0x10e1d5),_0x3385c5={'diffData':_0x554089['diffData'],'authorsIds':_0x554089['authorsIds'],'fromVersion':_0x351549,'toVersion':_0x10e1d5};if(!_0x5ecd92||_0x10e1d5!==_0x5ecd92['toVersion']){const _0x355944=_0x10e1d5-0x1,_0x42e93d=this['_source']['history']['getOperation'](_0x355944);_0x3385c5['createdAt']=_0x42e93d&&_0x42e93d['createdAt']||new Date();}if(this['_loadedStateData']&&_0x351549===this['_loadedStateData']['fromVersion']){for(const _0x25560d of this['_loadedStateData']['authors'])_0x3385c5['authorsIds']['includes'](_0x25560d['id'])||_0x3385c5['authorsIds']['push'](_0x25560d['id']);}return _0x3385c5;}['_bufferUpdate'](_0x5ec59a,_0x4fdc73,_0x5e7154){if(this['_bufferedUpdates']['has'](_0x5ec59a)){const _0x28267d=this['_bufferedUpdates']['get'](_0x5ec59a);_0x4fdc73=_0x5e7154?{..._0x28267d,..._0x4fdc73}:{..._0x4fdc73,..._0x28267d};}this['_bufferedUpdates']['set'](_0x5ec59a,_0x4fdc73);}['setRevisionData'](_0x1844cb){const _0x3d03a5=this['repository']['getRevision'](_0x1844cb['id']);if(_0x1844cb['createdAt']&&(_0x1844cb['createdAt']=new Date(_0x1844cb['createdAt'])),_0x1844cb['authorsIds']){const _0x170390=this['editor']['plugins']['get']('Users');_0x1844cb['authors']=_0x1844cb['authorsIds']['map'](_0x2cb70a=>_0x170390['getUser'](_0x2cb70a));}_0x3d03a5['_update'](_0x1844cb,!0x0);}['_createInitialRevision'](_0x486936){const _0x41dcb7=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x41dcb7)this['_initialRevisionId']=_0x41dcb7['id'];else{const _0x4a7855=!this['editor']['model']['document']['roots']['find'](_0x55350c=>this['editor']['model']['hasContent'](_0x55350c)),_0x4bf883=this['editor']['plugins']['get']('Users')['me']['id'],_0x2279ee=g(this['editor']['locale'],_0x4a7855?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x486936,'to':_0x486936,'id':this['_initialRevisionId'],'name':_0x2279ee,'creatorId':_0x4bf883});}}['_createCurrentRevision'](_0x462ff6){const _0x595615=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x595615),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x462ff6,'to':_0x462ff6,'id':_0x595615,'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'](_0x54761d,_0x349737){let _0x26285d=this['editor']['config']['get']('initialData'),_0xbd3270=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x26285d){_0x26285d={};for(const _0x403282 of this['editor']['model']['document']['getRootNames']())_0x26285d[_0x403282]='';}if('string'==typeof _0x26285d&&(_0x26285d={'main':_0x26285d}),void 0x0===_0xbd3270){_0xbd3270={};for(const _0x104bf0 of this['editor']['model']['document']['getRootNames']())_0xbd3270[_0x104bf0]={};}let _0x4abace=!0x1;const _0x31cda2=Object['keys'](_0x26285d),_0x1e6543=Object['keys'](_0x54761d);for(const _0xac4b34 of _0x31cda2){if(_0x26285d[_0xac4b34]!==_0x54761d[_0xac4b34]&&''!==_0x26285d[_0xac4b34]['trim']()){_0x4abace=!0x0;break;}if(!_0x26e748(_0xbd3270[_0xac4b34],_0x349737[_0xac4b34])&&Object['keys'](_0xbd3270[_0xac4b34])['length']>0x0){_0x4abace=!0x0;break;}}_0x4abace||(_0x4abace=_0x1e6543['some'](_0x264385=>!this['editor']['model']['document']['getRoot'](_0x264385))),_0x4abace&&_0xe259d4('editor-initial-data-replaced-with-revision-data',{'editorData':_0x26285d,'editorRootsAttributes':_0xbd3270,'revisionData':_0x54761d,'revisionRootsAttributes':_0x349737}),this['editor']['config']['set']('initialData',_0x54761d),this['editor']['config']['set']('rootsAttributes',_0x349737);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x1d8bb8=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x1d8bb8['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x14e11a){const _0x3def24=this['repository']['getRevisions']();_0x3def24['reverse']();let _0x2d57f6=0x0;for(;_0x2d57f6<_0x3def24['length'];){const _0x5be53d=_0x3def24[_0x2d57f6];if(_0x5be53d===this['currentRevision']){_0x2d57f6++;continue;}if(_0x5be53d['id']===this['_initialRevisionId'])break;const _0x472677=_0x14e11a['toVersion']-_0x5be53d['toVersion']||_0x14e11a['fromVersion']-_0x5be53d['fromVersion'];if(_0x472677>0x0)break;if(_0x472677<0x0)_0x2d57f6++;else{if(!_0x14e11a['creator']&&_0x5be53d['creator'])break;if(_0x5be53d['creator']||!_0x14e11a['creator']){if(_0x14e11a['createdAt']>_0x5be53d['createdAt'])break;_0x2d57f6++;}else _0x2d57f6++;}}return _0x2d57f6;}['_getFromVersion'](_0x41bc61){const _0x1b9cd3=this['repository']['getRevisions']();_0x1b9cd3['reverse'](),_0x1b9cd3['shift']();const _0xf28758=_0x1b9cd3['find'](_0x3258f7=>_0x3258f7['toVersion']<=_0x41bc61)['toVersion'];return _0xf28758<this['_startingVersion']?this['_startingVersion']:_0xf28758;}['_makeRevision']({name:_0x511094,from:_0x30d07b,to:_0x27a63e,creatorId:_0x26007d,id:_0x2258e4}){const _0x45843c=this['buildRevisionData']({'from':_0x30d07b,'to':_0x27a63e});_0x45843c['name']=_0x511094,_0x45843c['creatorId']=_0x26007d,_0x45843c['id']=_0x2258e4;const _0x31298c=this['addRevisionData'](_0x45843c);return this['adapter']&&this['_bufferUpdate'](_0x45843c['id'],_0x45843c,!0x0),_0x31298c;}['_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(_0x56b6ca){this['editor']=_0x56b6ca,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'](_0x1fab56){this['source']=_0x1fab56;const _0x5db67f=new Map(),_0x576da0=new Map(),_0x314928=this['editor']['model']['document']['roots']['map'](_0x1132cc=>_0x1132cc['rootName']);for(const _0x1a5b49 of _0x314928){const _0x1a5246=this['editor']['model']['document']['getRoot'](_0x1a5b49),_0x4528d4=N(_0x1a5246);_0x5db67f['set'](_0x1a5b49,_0x4528d4),_0x576da0['set'](_0x1a5b49,Object['fromEntries'](_0x1a5246['getAttributes']()));}const _0x1074a1=Array['from'](this['editor']['model']['markers'])['map'](_0x51efb6=>[_0x51efb6['name'],_0x51efb6['getRange']()]),_0x3f2ddd=this['source']['version'];this['_saveMetaData'](_0x3f2ddd,_0x5db67f,_0x1074a1,_0x576da0),this['_startingRevisionId']=this['_revisionId'];const _0x17fa24=new Map(),_0x211330=new Map();for(const _0x229b42 of _0x314928){const _0x268fd1=P(_0x229b42);_0x17fa24['set'](_0x229b42,_0x268fd1),_0x211330['set'](_0x229b42,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x17fa24,[],_0x211330);}['getData'](_0x52d269,_0x560069){if(this['_lastFrom']===_0x52d269&&this['_lastTo']<=_0x560069)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x560069,!0x0);else{if(!this['_savedMetaData']['has'](_0x52d269)){const _0x312583=this['_getPreviousFrom'](_0x52d269);this['_calculateMetaData'](_0x312583,_0x52d269,!0x1);}this['_calculateMetaData'](_0x52d269,_0x560069,!0x0);}return this['_lastFrom']=_0x52d269,this['_lastTo']=_0x560069,this['_getState']();}['loadState'](_0x54b492){const _0x225674=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x54b492['fromVersion'],this['_lastTo']=_0x54b492['toVersion'];for(const _0x5766cf in _0x54b492['diffData']){const _0x356e62=_0x54b492['diffData'][_0x5766cf]['attachChange'],_0x871957=_0x10d4ae(_0x54b492['diffData'][_0x5766cf]['attributesBefore'])||{},_0x2d65a4=_0x225674['_makeModelFromViewString'](_0x54b492['diffData'][_0x5766cf]['deletions']);_0x2d65a4['rootName']=_0x5766cf,_0x2d65a4['_isAttached']=!_0x356e62||!_0x356e62['isAttached'],_0x2d65a4['isAttached']=()=>_0x2d65a4['_isAttached'],this['_baseRoots']['set'](_0x5766cf,_0x2d65a4),this['_baseRootsAttributes']['set'](_0x5766cf,_0x871957),_0x356e62&&this['_touchedRoots']['set'](_0x5766cf,_0x356e62);const _0x556ff2=this['_makeIdsRoot'](_0x2d65a4);this['_baseIdsRoots']['set'](_0x5766cf,_0x556ff2);for(const [_0x36f30f,_0x4b10da]of _0x2d65a4['markers']){if(!_0x36f30f['startsWith']('revision:'))continue;const _0x4b8b3a=_0x36f30f['split'](':')[0x2];for(const _0x4f482a of _0x4b10da['getWalker']({'singleCharacters':!0x0})){const _0x1a2bc0=this['_getVidAttributeName'](_0x4f482a),_0x5ac587='elementEnd'==_0x4f482a['type']?_0x4f482a['previousPosition']['path']['slice'](0x0,-0x1):_0x4f482a['previousPosition']['path'],_0x2dedb7=_0x556ff2['getNodeByPath'](_0x5ac587)['getAttribute'](_0x1a2bc0);this['_touched']['set'](_0x2dedb7,{'userId':_0x4b8b3a});}}}this['_startingRevisionId']=this['_revisionId'];const _0x40416c=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x56836e=>!this['_touched']['has'](_0x56836e));let _0x2541d6=0x0;const _0x2a527b=new Map();for(const _0x5b451e in _0x54b492['diffData']){const _0x3011a7=_0x54b492['diffData'][_0x5b451e]['attachChange'],_0x554b0f=_0x10d4ae(_0x54b492['diffData'][_0x5b451e]['attributesAfter'])||{},_0xecd2bc=_0x225674['_makeModelFromViewString'](_0x54b492['diffData'][_0x5b451e]['insertions']);_0xecd2bc['rootName']=_0x5b451e,_0xecd2bc['_isAttached']=!_0x3011a7||_0x3011a7['isAttached'],_0xecd2bc['isAttached']=()=>_0xecd2bc['_isAttached'],this['_diffRoots']['set'](_0x5b451e,_0xecd2bc),this['_diffRootsAttributes']['set'](_0x5b451e,_0x554b0f);const _0xf87c77=this['_makeIdsRoot'](_0xecd2bc,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x5b451e,_0xf87c77),_0x2a527b['set'](_0x5b451e,_0xecd2bc['isAttached']()?_0x554b0f:{});for(const [_0x54b5c7,_0x3bdae5]of _0xecd2bc['markers']){if(!_0x54b5c7['startsWith']('revision:'))continue;const _0x3398b6=_0x54b5c7['split'](':')[0x2];for(const _0x52900d of _0x3bdae5['getWalker']({'singleCharacters':!0x0})){const _0x569d4d=this['_getVidAttributeName'](_0x52900d),_0x360319=this['_revisionId']++,_0x5dad4b='elementEnd'==_0x52900d['type']?_0x52900d['previousPosition']['path']['slice'](0x0,-0x1):_0x52900d['previousPosition']['path'];_0xf87c77['getNodeByPath'](_0x5dad4b)['_setAttribute'](_0x569d4d,_0x360319),this['_touched']['set'](_0x360319,{'userId':_0x3398b6});}}for(const _0xf44253 of this['editor']['model']['createRangeIn'](_0xecd2bc)['getWalker']({'singleCharacters':!0x0})){const _0x2cae18=this['_getVidAttributeName'](_0xf44253),_0x19a91d='elementEnd'==_0xf44253['type']?_0xf44253['previousPosition']['path']['slice'](0x0,-0x1):_0xf44253['previousPosition']['path'],_0x4c084b=_0xf87c77['getNodeByPath'](_0x19a91d);_0x4c084b['getAttribute'](_0x2cae18)>0x0||_0x4c084b['_setAttribute'](_0x2cae18,_0x40416c[_0x2541d6++]);}for(const [_0x3c47ea,_0x4aa698]of _0xecd2bc['markers'])_0x3c47ea['startsWith']('revision:')||this['_markers']['set'](_0x3c47ea,_0x4aa698);}const _0x5e1d13=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0x5e1d13),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x5e1d13,0x1));const _0x2ec6f4=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x2ec6f4),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x2ec6f4,0x1));const _0x18cdd8=Array['from'](this['_diffRoots'])['map'](([_0x1f6124,_0xac346d])=>[_0x1f6124,N(_0xac346d)]);this['_saveMetaData'](this['_lastTo'],_0x18cdd8,this['_markers'],_0x2a527b);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x1c4a41,_0x1c1bdf,_0x4bfbbc,_0x438c26){const _0x4884ff=new Map(_0x1c1bdf),_0x219d31=new Map(_0x10d4ae(_0x438c26)),_0x17449c=new Map();for(const [_0x3b5c9f,_0x5ea8d7]of _0x4bfbbc)_0x17449c['set'](_0x3b5c9f,{'start':_0x5ea8d7['start']['clone'](),'end':_0x5ea8d7['end']['clone'](),'rootName':_0x5ea8d7['root']['rootName']});this['_savedMetaData']['set'](_0x1c4a41,{'roots':_0x4884ff,'markers':_0x17449c,'rootsAttributes':_0x219d31});}['_removeMetaData'](_0xf1cee3){this['_savedMetaData']['delete'](_0xf1cee3);}['_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'](_0x1ce108,_0x34a7c8=null){let _0xceffe0=null;_0x1ce108['is']('documentFragment')||(_0xceffe0=new ut(_0x1ce108['name'],{'vid_start':null===_0x34a7c8?this['_revisionId']++:_0x34a7c8++}));const _0x42a80e=[];for(const _0x2718ea of _0x1ce108['getChildren']())if(_0x2718ea['is']('element')){_0x42a80e['push'](this['_makeIdsRoot'](_0x2718ea,_0x34a7c8));const _0x520ad3=_0x42a80e[_0x42a80e['length']-0x1];null!==_0x34a7c8&&(_0x34a7c8=_0x520ad3['is']('element','$text')?_0x520ad3['getAttribute']('vid')+0x1:_0x520ad3['getAttribute']('vid_end')+0x1);}else{for(let _0x1f5699=0x0;_0x1f5699<_0x2718ea['offsetSize'];_0x1f5699++)_0x42a80e['push'](new ut('$text',{'vid':null===_0x34a7c8?this['_revisionId']++:_0x34a7c8++}));}if(_0x1ce108['is']('documentFragment')){const _0x776600=P(_0x1ce108['rootName']);return _0x776600['_insertChild'](0x0,_0x42a80e),_0x776600;}return _0xceffe0['_setAttribute']('vid_end',null===_0x34a7c8?this['_revisionId']++:_0x34a7c8++),_0xceffe0['_insertChild'](0x0,_0x42a80e),_0xceffe0;}['_calculateMetaData'](_0x11c75d,_0x208ef4,_0x13d5b3){this['_reset']();const {roots:_0x45c4fb,markers:_0x42e5f2,rootsAttributes:_0x52a0c6}=this['_savedMetaData']['get'](_0x11c75d);this['_baseRoots']=new Map(_0x45c4fb),this['_baseRootsAttributes']=new Map(_0x10d4ae(_0x52a0c6));for(const [_0x72b65e,_0x59d393]of this['_baseRoots'])if('$graveyard'!==_0x72b65e&&(this['_diffRoots']['set'](_0x72b65e,N(_0x59d393)),this['_diffRootsAttributes']=new Map(_0x10d4ae(_0x52a0c6)),_0x13d5b3)){const _0x241549=this['_revisionId'];this['_idsRoots']['set'](_0x72b65e,this['_makeIdsRoot'](_0x59d393)),this['_baseIdsRoots']['set'](_0x72b65e,this['_makeIdsRoot'](_0x59d393,_0x241549));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x13d5b3&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x24d914,_0x5cc9a7]of _0x42e5f2){const _0x173b93=this['_baseRoots']['get'](_0x5cc9a7['rootName']),_0x422c64=this['_diffRoots']['get'](_0x5cc9a7['rootName']),_0x40bd1e=new lt(this['_fixPosition'](_0x5cc9a7['start'],_0x173b93),this['_fixPosition'](_0x5cc9a7['end'],_0x173b93)),_0x4536a2=this['_fixRange'](_0x40bd1e,_0x422c64);_0x173b93['markers']['set'](_0x24d914,_0x40bd1e),this['_markers']['set'](_0x24d914,_0x4536a2);}this['_applyOperations'](_0x11c75d,_0x208ef4,_0x13d5b3);}['_applyOperations'](_0x50ab7f,_0x12c0a3,_0x53e1a1){for(const _0x42be93 of this['source']['getOperations'](_0x50ab7f,_0x12c0a3))this['_handleOperation'](_0x42be93,_0x53e1a1);for(const _0x4e790f of this['_diffRoots']['values']())_0x4e790f['markers']['clear']();for(const [_0x236d96,_0x48b08f]of this['_markers']){this['_diffRoots']['get'](_0x48b08f['root']['rootName'])['markers']['set'](_0x236d96,_0x48b08f['clone']());}const _0x9eaa07=new Map(),_0x4f07e6=new Map();for(const [_0x66fe1d,_0xed5657]of this['_diffRoots'])_0x9eaa07['set'](_0x66fe1d,N(_0xed5657)),_0x4f07e6['set'](_0x66fe1d,this['_diffRootsAttributes']['get'](_0x66fe1d));this['_saveMetaData'](_0x12c0a3,_0x9eaa07,this['_markers'],_0x4f07e6);}['_getPreviousFrom'](_0x4fae2f){const _0x25119b=Array['from'](this['_savedMetaData']['keys']());_0x25119b['sort']((_0x5188be,_0x2353fe)=>_0x5188be-_0x2353fe),_0x25119b['reverse']();for(const _0x49141f of _0x25119b)if(_0x49141f<_0x4fae2f)return _0x49141f;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x404d16,_0x24ce9d){const _0x351089=Array['from'](_0x24ce9d['markers'])['map'](([_0x2f5bf7,_0x5b7959])=>[_0x2f5bf7,this['_fixRange'](_0x5b7959,_0x404d16)]);_0x404d16['markers']=new Map(_0x351089);}['_transformMarkers'](_0x99f1bf){for(const _0x249ea4 of this['_markers']['values']()){const _0x7507b6=_0x249ea4['getTransformedByOperation'](_0x99f1bf),_0x2ccfbd=lt['_createFromRanges'](_0x7507b6);_0x249ea4['start']=_0x2ccfbd['start'],_0x249ea4['end']=_0x2ccfbd['end'];}}['_handleOperation'](_0x2b8d71,_0xd885e2){if('addRoot'!=_0x2b8d71['type']&&'detachRoot'!=_0x2b8d71['type']){if('insert'==_0x2b8d71['type']){const _0xe38c47=_0x2b8d71['position']['root']['rootName'];this['_diffRoots']['has'](_0xe38c47)||(this['_diffRoots']['set'](_0xe38c47,P(_0xe38c47,!0x0)),this['_diffRootsAttributes']['set'](_0xe38c47,{}),_0xd885e2&&this['_idsRoots']['set'](_0xe38c47,P(_0xe38c47,!0x0)));}else{if('addRootAttribute'==_0x2b8d71['type']||'removeRootAttribute'==_0x2b8d71['type']||'changeRootAttribute'==_0x2b8d71['type'])return void this['_handleRootAttributeOperation'](_0x2b8d71);'marker'==_0x2b8d71['type']&&this['_handleMarkerOperation'](_0x2b8d71);}if('marker'!==_0x2b8d71['type']){const _0x10d484=this['_cloneOperation'](_0x2b8d71,this['_diffRoots']);_0x10d484['_execute'](),this['_transformMarkers'](_0x10d484);}if(_0xd885e2)switch(_0x2b8d71['type']){case'insert':this['_handleInsertOperation'](_0x2b8d71);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x2b8d71);break;case'merge':this['_handleMergeOperation'](_0x2b8d71);break;case'split':this['_handleSplitOperation'](_0x2b8d71);}}else this['_handleRootOperation'](_0x2b8d71,_0xd885e2);}['_cloneOperation'](_0x30a155,_0x41f2a7){const _0x264bf4=_0x30a155['clone']();return _0x264bf4['_authorId']=_0x30a155['_authorId'],this['_fixOperation'](_0x264bf4,_0x41f2a7),_0x264bf4;}['_getBaseVids'](_0x2566f7){return _0x2566f7['map'](_0x27724f=>{const _0xbf71c9=this['_getVidAttributeName'](_0x27724f);return Number(_0x27724f['item']['getAttribute'](_0xbf71c9));});}['_generateTape'](_0x5f0d3e,_0x42d94c){if(_0x5f0d3e['is']('element','$text'))_0x42d94c['push']({'item':_0x5f0d3e,'type':'text'});else{_0x5f0d3e['is']('element')&&_0x42d94c['push']({'item':_0x5f0d3e,'type':'elementStart'});for(const _0xa37036 of _0x5f0d3e['getChildren']())this['_generateTape'](_0xa37036,_0x42d94c);_0x5f0d3e['is']('element')&&_0x42d94c['push']({'item':_0x5f0d3e,'type':'elementEnd'});}return _0x42d94c;}['_getState'](){const _0x58b741=new Map(this['_touched']),_0x41f0f7=new Map(_0x58b741),_0x26d9ce=new Map(),_0x193b1e={'insertions':{},'deletions':{}},_0x3e9677={'insertions':{},'deletions':{}},_0x3a841f=new Map(),_0x456d06=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x456d06['delete']('$graveyard');for(const _0x4bf6a4 of _0x456d06){const _0x597035=this['_diffRoots']['get'](_0x4bf6a4)||P(_0x4bf6a4,!0x1),_0x49e0af=this['_baseRoots']['get'](_0x4bf6a4)||P(_0x4bf6a4,!0x1);_0x597035['isAttached']()||_0x49e0af['isAttached']()?(_0x193b1e['insertions'][_0x4bf6a4]=N(_0x597035),_0x193b1e['deletions'][_0x4bf6a4]=N(_0x49e0af),this['_copyMarkers'](_0x193b1e['deletions'][_0x4bf6a4],_0x49e0af),this['_copyMarkers'](_0x193b1e['insertions'][_0x4bf6a4],_0x597035),_0x3e9677['insertions'][_0x4bf6a4]=this['_generateTape'](this['_idsRoots']['get'](_0x4bf6a4),[]),_0x3e9677['deletions'][_0x4bf6a4]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x4bf6a4)||P(_0x4bf6a4,!0x1),[])):_0x456d06['delete'](_0x4bf6a4);}for(const _0x1d2adb of _0x456d06){const _0x293943=_0x3e9677['insertions'][_0x1d2adb];for(const _0x5b4fdf of _0x293943){const _0x8dc068=this['_getVidAttributeName'](_0x5b4fdf),_0x57d283=_0x5b4fdf['item']['getAttribute'](_0x8dc068);_0x41f0f7['delete'](_0x57d283),_0x57d283>=this['_startingRevisionId']&&_0x26d9ce['set'](_0x57d283,_0x58b741['get'](_0x57d283));}}for(const _0x3694ac of _0x456d06){const _0x239ef6=_0x3e9677['insertions'][_0x3694ac],_0x68ee37=this['_getBaseVids'](_0x3e9677['deletions'][_0x3694ac]);let _0x4d7646=0x0;for(const _0x1ce160 of _0x239ef6){const _0x5e3b34=this['_getVidAttributeName'](_0x1ce160),_0x6647a7=_0x1ce160['item']['getAttribute'](_0x5e3b34);if(!_0x26d9ce['has'](_0x6647a7)&&!_0x3a841f['has'](_0x6647a7)){if(_0x41f0f7['has'](_0x6647a7))_0x4d7646++;else{if(_0x6647a7!=_0x68ee37[_0x4d7646]){const _0x41cbec=_0x58b741['get'](_0x6647a7)||_0x58b741['get'](_0x68ee37[_0x4d7646]);for(;_0x6647a7!=_0x68ee37[_0x4d7646];)_0x41f0f7['has'](_0x68ee37[_0x4d7646])||(_0x3a841f['set'](_0x68ee37[_0x4d7646],_0x41cbec),_0x58b741['set'](_0x68ee37[_0x4d7646],_0x41cbec)),_0x4d7646++;}_0x4d7646++;}}}}for(const _0x500511 of _0x456d06){const _0x36f25=_0x3e9677['insertions'][_0x500511];for(const _0x562e38 of _0x36f25){const _0x3f970a=this['_getVidAttributeName'](_0x562e38),_0x16b283=_0x562e38['item']['getAttribute'](_0x3f970a);if(_0x3a841f['has'](_0x16b283)){const _0x51b78c=_0x3a841f['get'](_0x16b283);_0x41f0f7['has'](_0x16b283)||_0x41f0f7['set'](_0x16b283,{..._0x51b78c}),_0x26d9ce['set'](_0x16b283,{..._0x51b78c});}}}for(const _0x3b4dc5 of _0x41f0f7['keys']())_0x3b4dc5>=this['_startingRevisionId']&&_0x41f0f7['delete'](_0x3b4dc5);const _0x5e5ebb=new Map();for(const _0x1c5245 of _0x456d06){let _0x5b737d=_0x3e9677['insertions'][_0x1c5245];for(const _0x44b015 of _0x5b737d)if(_0x44b015['item']['is']('element','tableCell')){const _0x4a75b9=this['_getVidAttributeName'](_0x44b015),_0x1968c0=_0x44b015['item']['getAttribute'](_0x4a75b9);if(_0x26d9ce['has'](_0x1968c0)){const _0x19b635=_0x44b015['item']['parent']['parent']['getAttribute']('vid_start'),_0x31534e=_0x5e5ebb['get'](_0x19b635)||new Set();_0x31534e['add'](_0x26d9ce['get'](_0x1968c0)['userId']),_0x5e5ebb['set'](_0x19b635,_0x31534e);}}_0x5b737d=_0x3e9677['deletions'][_0x1c5245];for(const _0x122296 of _0x5b737d)if(_0x122296['item']['is']('element','tableCell')){const _0x41a230=this['_getVidAttributeName'](_0x122296),_0x45a006=_0x122296['item']['getAttribute'](_0x41a230);if(_0x41f0f7['has'](_0x45a006)){const _0x507ea1=_0x122296['item']['parent']['parent']['getAttribute']('vid_start'),_0x2cd246=_0x5e5ebb['get'](_0x507ea1)||new Set();_0x2cd246['add'](_0x41f0f7['get'](_0x45a006)['userId']),_0x5e5ebb['set'](_0x507ea1,_0x2cd246);}}for(const _0x277529 of _0x5e5ebb['keys']())(_0x26d9ce['has'](_0x277529)||_0x41f0f7['has'](_0x277529))&&_0x5e5ebb['delete'](_0x277529);}for(const _0x23735c of _0x456d06){const _0x3dfb96=_0x3e9677['insertions'][_0x23735c];let _0xf9961e=null,_0x3cc125=null;for(const _0x325b03 of _0x3dfb96){const _0x513c7c=this['_getVidAttributeName'](_0x325b03),_0x3fb43f=_0x325b03['item']['getAttribute'](_0x513c7c),_0x5af01c=_0x5e5ebb['get'](_0x3fb43f);_0x5af01c&&'elementStart'==_0x325b03['type']&&(_0xf9961e=Array['from'](_0x5af01c)[0x0],_0x3cc125=_0x325b03['item']['getAttribute']('vid_end')),_0xf9961e&&(_0x41f0f7['set'](_0x3fb43f,{'userId':_0xf9961e}),_0x26d9ce['set'](_0x3fb43f,{'userId':_0xf9961e})),_0x3fb43f==_0x3cc125&&(_0xf9961e=null,_0x3cc125=null);}}const _0x332348={},_0x44d892=new Set();for(const _0x59af04 of _0x456d06){const _0x250509=_0x193b1e['deletions'][_0x59af04],_0x22fd76=_0x193b1e['insertions'][_0x59af04];for(const {userId:_0x485067}of this['_touchedMarkers']['values']())null!==_0x485067&&_0x44d892['add'](_0x485067);for(const {userId:_0x50dc45}of this['_touchedRoots']['values']())null!==_0x50dc45&&_0x44d892['add'](_0x50dc45);this['_markChanges'](_0x22fd76,_0x3e9677['insertions'][_0x59af04],_0x26d9ce,'insertion',_0x44d892),this['_markChanges'](_0x250509,_0x3e9677['deletions'][_0x59af04],_0x41f0f7,'deletion',_0x44d892),_0x332348[_0x59af04]={'insertions':this['_prepareViewToSave'](_0x22fd76),'deletions':this['_prepareViewToSave'](_0x250509),'attachChange':this['_touchedRoots']['get'](_0x59af04)||null,'attributesBefore':_0x10d4ae(this['_baseRootsAttributes']['get'](_0x59af04))||{},'attributesAfter':_0x10d4ae(this['_diffRootsAttributes']['get'](_0x59af04))};}return{'diffData':_0x332348,'authorsIds':Array['from'](_0x44d892)};}['_processRootBeforeSave'](_0x658306){for(const [,_0x1050fc]of _0x658306['markers']){const _0x35206b=_0x1050fc['start']['getAncestors']()['filter'](_0x48b6c3=>'tableCell'==_0x48b6c3['name']);for(const _0x594568 of _0x35206b)0x1==_0x594568['childCount']&&_0x594568['getChild'](0x0)['is']('element','paragraph')&&_0x594568['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x5ee9f7){this['_processRootBeforeSave'](_0x5ee9f7);const _0x2d587d=this['editor']['data']['toView'](_0x5ee9f7,{}),_0x9bc11e=Array['from'](_0x2d587d['getChildren']())['map'](_0x516111=>this['_getViewJson'](_0x516111));return JSON['stringify'](_0x9bc11e);}['_getViewJson'](_0x381645){if(_0x381645['is']('$text'))return _0x381645['data'];{const _0x219699=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x3dbe3a=_0x381645,_0x357659=this['editor']['data']['htmlProcessor']['domConverter'],_0x3f1a35={'type':_0x219699['_getTypeCharForViewElement'](_0x3dbe3a),'name':_0x3dbe3a['name'],'attributes':Array['from'](_0x3dbe3a['getAttributes']()),'children':Array['from'](_0x3dbe3a['getChildren']())['map'](_0x41c78f=>this['_getViewJson'](_0x41c78f))};if(_0x381645['is']('uiElement')&&'$comment'!=_0x381645['name']){const _0x365a92=_0x381645['render'](_0x357659['domDocument'],_0x357659);_0x3f1a35['children']['push'](_0x365a92['outerHTML']);}else{if(_0x381645['is']('rawElement')){const _0x255956=_0x357659['domDocument']['createElement'](_0x3dbe3a['name']);_0x381645['render'](_0x255956,_0x357659),_0x3f1a35['children']['push'](_0x255956['innerHTML']);}}const _0x36ce4d=Array['from'](_0x3dbe3a['getCustomProperties']());_0x36ce4d['length']>0x0&&(_0x3f1a35['customProperties']=_0x36ce4d);const _0x487830=_0x3dbe3a['getFillerOffset']();return null!==_0x487830&&(_0x3f1a35['fillerOffset']=_0x487830),_0x3f1a35;}}['_markChanges'](_0x2d0fb2,_0x3eee48,_0x537b94,_0x567a3b,_0x2f48c9){let _0x1c9262=null,_0x2e8e4a=null,_0x5cbf0d=0x0;const _0x360a55=this['editor']['model'];for(let _0x43c0b2=0x0;_0x43c0b2<_0x3eee48['length'];_0x43c0b2++){const _0x517632=this['_getVidAttributeName'](_0x3eee48[_0x43c0b2]),_0x11943e=_0x3eee48[_0x43c0b2]['item']['getAttribute'](_0x517632),_0x49b743=_0x537b94['get'](_0x11943e),_0x5e9656=_0x43c0b2==_0x3eee48['length']-0x1;(!_0x1c9262&&_0x49b743&&(_0x1c9262=_0x49b743,_0x2e8e4a=_0x3eee48[_0x43c0b2]),_0x1c9262&&(!_0x49b743||_0x49b743['userId']!=_0x1c9262['userId']))&&(_0x73f0b7(_0x49b743,F(_0x2e8e4a,_0x2d0fb2,_0x360a55),F(_0x3eee48[_0x43c0b2],_0x2d0fb2,_0x360a55)),_0x1c9262=_0x49b743||null,_0x2e8e4a=_0x49b743?_0x3eee48[_0x43c0b2]:null),_0x1c9262&&_0x5e9656&&_0x73f0b7(_0x49b743,F(_0x2e8e4a,_0x2d0fb2,_0x360a55),B(_0x3eee48[_0x43c0b2],_0x2d0fb2,_0x360a55));}function _0x73f0b7(_0x143f0f,_0x35500a,_0x505490){const _0x1c72a6=_0x1c9262['userId'],_0x56d5c3='revision:'+_0x567a3b+':'+_0x1c72a6+':'+_0x5cbf0d++,_0x37fee1=_0x360a55['createRange'](_0x35500a,_0x505490);_0x2d0fb2['markers']['set'](_0x56d5c3,_0x37fee1),null!==_0x1c72a6&&_0x2f48c9['add'](_0x1c72a6);}}['_getVidAttributeName'](_0x551401){switch(_0x551401['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x3b105b,_0xfe8f07){_0x3b105b['baseVersion']=null;for(const _0x1e9db8 in _0x3b105b){const _0x3ef1f5=_0x3b105b[_0x1e9db8];if(_0x3ef1f5 instanceof ft){const _0x4c77e0=_0xfe8f07['get'](_0x3ef1f5['root']['rootName']);_0x3b105b[_0x1e9db8]=this['_fixPosition'](_0x3ef1f5,_0x4c77e0);}if(_0x3ef1f5 instanceof lt){const _0x4d3acb=_0xfe8f07['get'](_0x3ef1f5['root']['rootName']);_0x3b105b[_0x1e9db8]=this['_fixRange'](_0x3ef1f5,_0x4d3acb);}'root'===_0x1e9db8&&(_0x3b105b['root']=_0xfe8f07['get'](_0x3b105b['root']['rootName']));}}['_fixRange'](_0xceec9c,_0x3b9dd1){return this['editor']['model']['createRange'](this['_fixPosition'](_0xceec9c['start'],_0x3b9dd1),this['_fixPosition'](_0xceec9c['end'],_0x3b9dd1));}['_fixPosition'](_0x29fcc8,_0xba24c){return this['editor']['model']['createPositionFromPath'](_0xba24c,_0x29fcc8['path'],_0x29fcc8['stickiness']);}['_handleInsertOperation'](_0x25d98e){const _0x1d4496=this['_idsRoots']['get'](_0x25d98e['position']['root']['rootName']),_0x130367=this['_fixPosition'](_0x25d98e['position'],_0x1d4496),_0x60e927=null===_0x25d98e['_authorId']?null:_0x25d98e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x731828=_0x130367['parent'],_0x5d476b=this['_revisionId'],_0x1b62a0=[];for(const _0x293542 of _0x25d98e['nodes'])if(_0x293542['is']('element'))_0x1b62a0['push'](this['_makeIdsRoot'](_0x293542));else{for(let _0x53948e=0x0;_0x53948e<_0x293542['offsetSize'];_0x53948e++)_0x1b62a0['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x20223b=this['_revisionId'];for(let _0x11597f=_0x5d476b;_0x11597f<_0x20223b;_0x11597f++)this['_touched']['set'](_0x11597f,{'userId':_0x60e927});_0x731828['_insertChild'](_0x130367['offset'],_0x1b62a0);}['_handleMoveOperation'](_0x42c300){(_0x42c300=this['_cloneOperation'](_0x42c300,this['_idsRoots']))['_execute']();const _0x3d54b8=null===_0x42c300['_authorId']?null:_0x42c300['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2b3a7e=_0x42c300['getMovedRangeStart'](),_0x410975=_0x2b3a7e['parent'],_0x287dc9=_0x2b3a7e['offset'];!function _0x3c24bf(_0x86d240,_0x2a609,_0x3adaaf,_0x54aa57){for(let _0x3ef15d=_0x3adaaf;_0x3ef15d<_0x54aa57;_0x3ef15d++){const _0x11303b=_0x2a609['getChild'](_0x3ef15d);_0x11303b['is']('element','$text')?_0x86d240['set'](_0x11303b['getAttribute']('vid'),{'userId':_0x3d54b8}):(_0x86d240['set'](_0x11303b['getAttribute']('vid_start'),{'userId':_0x3d54b8}),_0x3c24bf(_0x86d240,_0x11303b,0x0,_0x11303b['childCount']),_0x86d240['set'](_0x11303b['getAttribute']('vid_end'),{'userId':_0x3d54b8}));}}(this['_touched'],_0x410975,_0x287dc9,_0x287dc9+_0x42c300['howMany']);}['_handleMergeOperation'](_0x150b81){const _0xf0b9c0=null===(_0x150b81=this['_cloneOperation'](_0x150b81,this['_idsRoots']))['_authorId']?null:_0x150b81['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x50a9e4=_0x150b81['targetPosition']['parent'],_0x2738fc=_0x150b81['sourcePosition']['parent'],_0x428605=_0x50a9e4['getAttribute']('vid_end'),_0x4bb90a=_0x2738fc['getAttribute']('vid_start');_0x50a9e4['_setAttribute']('vid_end',_0x2738fc['getAttribute']('vid_end')),_0x2738fc['_setAttribute']('vid_end',_0x428605),this['_touched']['set'](_0x4bb90a,{'userId':_0xf0b9c0}),this['_touched']['set'](_0x428605,{'userId':_0xf0b9c0}),_0x150b81['_execute']();}['_handleSplitOperation'](_0x3dbb17){const _0x23195f=null===(_0x3dbb17=this['_cloneOperation'](_0x3dbb17,this['_idsRoots']))['_authorId']?null:_0x3dbb17['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x40c748=_0x3dbb17['graveyardPosition'],_0x3c4f34=_0x3dbb17['splitPosition']['parent'];_0x3dbb17['_execute']();const _0x221cc1=_0x3c4f34['getAttribute']('vid_end'),_0x524d1d=_0x3dbb17['insertionPosition']['nodeAfter'];if(_0x40c748){const _0x4e94d8=_0x524d1d['getAttribute']('vid_end'),_0x1fd7be=_0x3c4f34['getAttribute']('vid_end');_0x3c4f34['_setAttribute']('vid_end',_0x4e94d8),_0x524d1d['_setAttribute']('vid_end',_0x1fd7be),this['_touched']['set'](_0x3c4f34['getAttribute']('vid_end'),{'userId':_0x23195f}),this['_touched']['set'](_0x524d1d['getAttribute']('vid_start'),{'userId':_0x23195f});}else{const _0x3e6ef6=this['_revisionId']++,_0x1f57c8=this['_revisionId']++;_0x3c4f34['_setAttribute']('vid_end',_0x3e6ef6),_0x524d1d['_setAttribute']('vid_start',_0x1f57c8),_0x524d1d['_setAttribute']('vid_end',_0x221cc1),this['_touched']['set'](_0x3e6ef6,{'userId':_0x23195f}),this['_touched']['set'](_0x1f57c8,{'userId':_0x23195f});}}['_handleMarkerOperation'](_0x34f06b){if(!_0x34f06b['affectsData'])return;const _0x298468=(_0x34f06b=this['_cloneOperation'](_0x34f06b,this['_diffRoots']))['oldRange']?_0x34f06b['oldRange']['root']:null,_0x2a1910=_0x34f06b['newRange']?_0x34f06b['newRange']['root']:null;_0x298468&&this['_markers']['delete'](_0x34f06b['name']),_0x2a1910&&this['_markers']['set'](_0x34f06b['name'],_0x34f06b['newRange']['clone']());const _0x59e81a=null===_0x34f06b['_authorId']?null:_0x34f06b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4e4c7f=_0x34f06b['name'];if(!this['_touchedMarkers']['has'](_0x4e4c7f))return void this['_touchedMarkers']['set'](_0x4e4c7f,{'range':_0x34f06b['oldRange'],'userId':_0x59e81a});const _0x475d91=this['_touchedMarkers']['get'](_0x4e4c7f),_0x3a0f00=_0x475d91['range'],_0x24b894=_0x34f06b['newRange'];null==_0x3a0f00&&null==_0x24b894||_0x3a0f00&&_0x24b894&&_0x3a0f00['isEqual'](_0x24b894)?this['_touchedMarkers']['delete'](_0x34f06b['name']):_0x475d91['userId']=_0x59e81a;}['_handleRootOperation'](_0x12ad44,_0x14c9b7){this['_diffRoots']['has'](_0x12ad44['rootName'])?this['_diffRoots']['get'](_0x12ad44['rootName'])['_isAttached']=_0x12ad44['isAdd']:(this['_diffRoots']['set'](_0x12ad44['rootName'],P(_0x12ad44['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x12ad44['rootName'],{}),_0x14c9b7&&this['_idsRoots']['set'](_0x12ad44['rootName'],P(_0x12ad44['rootName'],!0x0)));const _0xc27822=null===_0x12ad44['_authorId']?null:_0x12ad44['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3b946f=this['_touchedRoots']['get'](_0x12ad44['rootName']);_0x3b946f&&_0x3b946f['userId']===_0xc27822?this['_touchedRoots']['delete'](_0x12ad44['rootName']):this['_touchedRoots']['set'](_0x12ad44['rootName'],{'userId':_0xc27822,'isAttached':_0x12ad44['isAdd']});}['_handleRootAttributeOperation'](_0x3b1e25){const _0x5d6f45=this['_diffRootsAttributes']['get'](_0x3b1e25['root']['rootName']);null===_0x3b1e25['newValue']?delete _0x5d6f45[_0x3b1e25['key']]:_0x5d6f45[_0x3b1e25['key']]=_0x3b1e25['newValue'];}}function N(_0x2804a9){const _0x1ac51c=P(_0x2804a9['rootName'],_0x2804a9['isAttached']());for(const _0x5366b5 of _0x2804a9['getChildren']()){const _0x54f697=_0x5366b5['_clone'](!0x0);_0x1ac51c['_appendChild'](_0x54f697);}return _0x1ac51c;}function P(_0x4151ab,_0x31c52d=!0x0){const _0x23ffe9=new vt();return _0x23ffe9['rootName']=_0x4151ab,_0x23ffe9['_isAttached']=_0x31c52d,_0x23ffe9['isAttached']=()=>_0x23ffe9['_isAttached'],_0x23ffe9;}function F(_0x5b83e8,_0x1968aa,_0x4977f6){const _0x1cf938='elementEnd'==_0x5b83e8['type']?_0x4977f6['createPositionAt'](_0x5b83e8['item'],'end'):_0x4977f6['createPositionBefore'](_0x5b83e8['item']);return _0x4977f6['createPositionFromPath'](_0x1968aa,_0x1cf938['path'],_0x1cf938['stickiness']);}function B(_0x1d3587,_0x4ce107,_0x19d264){const _0x40f3f4='elementStart'==_0x1d3587['type']?_0x19d264['createPositionAt'](_0x1d3587['item'],0x0):_0x19d264['createPositionAfter'](_0x1d3587['item']);return _0x19d264['createPositionFromPath'](_0x4ce107,_0x40f3f4['path'],_0x40f3f4['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x3d7341,_0x479536){super(_0x3d7341),this['focusTracker']=new _0x2c7c13(),this['keystrokes']=new _0x2542e6(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x479536),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x2841c9(this);}['render'](){super['render'](),_0x52d11c({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x1bb4a2=_0x7f5a1c=>_0x7f5a1c['stopPropagation']();this['keystrokes']['set']('arrowright',_0x1bb4a2),this['keystrokes']['set']('arrowleft',_0x1bb4a2),this['keystrokes']['set']('arrowup',_0x1bb4a2),this['keystrokes']['set']('arrowdown',_0x1bb4a2);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x192a69){this['revisionNameInputView']['fieldView']['element']['value']=_0x192a69['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x4cf142){const _0x5a6f7b=new _0x1173bd(this['locale'],_0x33a5cd),_0x1bda56=_0x5a6f7b['fieldView'];_0x1bda56['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x52c81b=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x4cf142&&(_0x52c81b+='\x20('+g(this['locale'],'optional')+')'),(_0x5a6f7b['label']=_0x52c81b,_0x1bda56['on']('input',()=>{this['revisionNameInputValue']=_0x1bda56['element']['value']['trim']();}),_0x5a6f7b);}}class f extends _0x5d5a5f{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x624165=this['editor'],_0x1d064d=_0x624165['plugins']['get']('RevisionTracker');_0x624165['ui']['componentFactory']['add']('revisionHistory',_0x44b8cb=>{const _0x4c7033=_0x5eec41(_0x44b8cb),_0x1ef29d=_0x4c7033['panelView']['children'],_0x9706ec=new _0xa97c65(_0x44b8cb),_0x241a10=new _0x21f03f(_0x44b8cb),_0x1de6dc=new te(_0x44b8cb),_0xe1ba8a=new _0x21f03f(_0x44b8cb),_0x2cb354=new te(_0x44b8cb);return _0x4c7033['bind']('isEnabled')['to'](_0x1d064d,'isReady',_0x1d064d,'isEnabled',_0x624165,'isReadOnly',(_0x5782e9,_0x33f5f4,_0x49020e)=>_0x5782e9&&_0x33f5f4&&!_0x49020e),_0x4c7033['buttonView']['set']({'icon':_0x48685c,'label':g(_0x44b8cb,'Revision\x20history'),'tooltip':!0x0}),_0x1de6dc['set']({'label':g(_0x44b8cb,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x1de6dc['bind']('isEnabled')['to'](_0x1d064d,'isReady',_0x1d064d,'isEnabled',_0x624165,'isReadOnly',(_0x45f9ad,_0x52dd83,_0x1219c6)=>_0x45f9ad&&_0x52dd83&&!_0x1219c6),_0x1de6dc['on']('execute',()=>this['_showDialog']()),_0x2cb354['set']({'label':g(_0x44b8cb,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x2cb354['bind']('isEnabled')['to'](_0x1d064d,'isReady',_0x624165,'isReadOnly',(_0x597ccf,_0x117e72)=>_0x597ccf&&!_0x117e72),_0x2cb354['on']('execute',()=>{_0x624165['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x4c7033['isOpen']=!0x1,_0x624165['editing']['view']['focus']();}),_0x241a10['children']['add'](_0x1de6dc),_0xe1ba8a['children']['add'](_0x2cb354),_0x9706ec['role']='menu',_0x9706ec['items']['addMany']([_0x241a10,_0xe1ba8a]),_0x1ef29d['add'](_0x9706ec),_0x4c7033;}),_0x624165['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x44a907=this['editor'],_0x125091=_0x44a907['locale'],_0x1b2e0f=new _0x259c50(_0x125091),_0x5a9faf=new _0x1a0105(_0x125091);_0x1b2e0f['buttonView']['set']({'icon':_0x48685c,'label':g(_0x125091,'Revision\x20history')});const _0x3dfda2=new _0x515218(_0x125091,_0x1b2e0f),_0x48332a=new _0x4fe434(_0x125091);_0x48332a['set']({'label':g(_0x125091,'Save\x20current\x20revision')}),_0x48332a['delegate']('execute')['to'](_0x1b2e0f),_0x48332a['on']('execute',()=>{this['_showDialog']();}),_0x3dfda2['children']['add'](_0x48332a),_0x5a9faf['items']['add'](_0x3dfda2);const _0x33f734=new _0x515218(_0x125091,_0x1b2e0f),_0x59ec7c=new _0x4fe434(_0x125091);return _0x59ec7c['set']({'label':g(_0x125091,'Open\x20revision\x20history')}),_0x59ec7c['delegate']('execute')['to'](_0x1b2e0f),_0x59ec7c['on']('execute',()=>{_0x44a907['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x33f734['children']['add'](_0x59ec7c),_0x5a9faf['items']['add'](_0x33f734),_0x1b2e0f['panelView']['children']['add'](_0x5a9faf),_0x1b2e0f;}['_showDialog'](){const _0x4e24cb=this['editor'],_0x2f4a9f=_0x4e24cb['locale'],_0x55c58e=_0x4e24cb['plugins']['get']('Dialog'),_0x140598=_0x4e24cb['plugins']['get']('RevisionTracker');function _0x2d6ce2(_0x2f2af9){_0x4e24cb['config']['get']('revisionHistory.requireRevisionName')&&''===_0x2f2af9['revisionName']?_0x2f2af9['revisionNameInputView']['errorText']=g(_0x2f4a9f,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x4e24cb['plugins']['get'](u)['saveRevision']({'name':_0x2f2af9['revisionName']}),_0x55c58e['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x2d6ce2(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x55c58e['show']({'id':'revisionSave','title':g(_0x2f4a9f,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x4e24cb['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x55c58e['hide']()},{'label':g(_0x4e24cb['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x378c7){_0x378c7['bind']('isEnabled')['to'](_0x140598,'isReady',_0x140598,'isEnabled',_0x4e24cb,'isReadOnly',(_0x21f559,_0x38f4eb,_0x1b77ac)=>_0x21f559&&_0x38f4eb&&!_0x1b77ac);},'onExecute':()=>_0x2d6ce2(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x44f40a=this['editor'],_0xd17cf5=_0x44f40a['locale'];this['_saveRevisionFormView']=new hs(_0xd17cf5,_0x44f40a['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends ts{['changeId'];['_model'];constructor(_0x428c92,_0x1c5bc7){super(_0x428c92),this['_model']=_0x1c5bc7,this['changeId']=_0x1c5bc7['id'];const _0x131db3=this['bindTemplate'],_0x31d82d=g(_0x428c92,_0x1c5bc7['data']['isSuggestion']?'Suggested\x20by':'add'==_0x1c5bc7['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x1c5bc7['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x131db3['to']('type',_0x4a0a47=>'ck-revision-change__'+_0x4a0a47)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x31d82d}]},{'text':'\x20'+_0x1c5bc7['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x54d230(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0xcce40){super(),this['id']=_0xcce40['id']||_0x3430e5(),this['author']=_0xcce40['author'],this['type']=_0xcce40['type'],this['data']=_0xcce40['data']||{},this['rootName']=_0xcce40['rootName'],this['set']('createdAt',_0xcce40['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(_0x371465,_0x2871c1){this['newRevisionId']=_0x371465,this['oldRevisionId']=_0x2871c1,this['changes']=new _0x372543();}['_setChanges'](_0x5cd4f5){for(const _0x2d0e08 of _0x5cd4f5)this['changes']['add'](_0x2d0e08);}}class m extends _0x5d5a5f{['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[_0x3d749e,_0x359b1c,I,V];}constructor(_0x3b9cab){super(_0x3b9cab),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',(_0x881061,_0x38cc21,_0xe7161d)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x45294b=>{for(const _0x4061ef of this['editor']['editing']['view']['document']['roots'])_0xe7161d?_0x45294b['removeClass']('ck-editor__editable__overlay',_0x4061ef):_0x45294b['addClass']('ck-editor__editable__overlay',_0x4061ef);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x3c2774=>null!==_0x3c2774),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x5cb5a1,_0x492e0d,_0x41b6a4)=>_0x5cb5a1&&_0x41b6a4?_0x492e0d['changes']['getIndex'](_0x41b6a4):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x396f15,_0x551b5a)=>_0x396f15?_0x551b5a['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x359b1c);}['init'](){const _0x5447bf=this['editor'],_0x3fcd4e=new wt(_0x5447bf,{'direction':'backward'}),_0x1a2015=new wt(_0x5447bf,{'direction':'forward'});(_0x5447bf['commands']['add']('showPreviousChange',_0x3fcd4e),_0x5447bf['commands']['add']('showNextChange',_0x1a2015),_0x5447bf['commands']['add']('restoreRevision',new mt(_0x5447bf)),this['on']('change:numberOfChanges',()=>{_0x3fcd4e['refresh'](),_0x1a2015['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x5447bf['enableReadOnlyMode']('revision-viewer'),_0x5447bf['plugins']['has']('WidgetToolbarRepository'))&&_0x5447bf['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x4a1491){return await this['_utils']['loadRevisionData'](_0x4a1491,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x4a1491);}async['getRevisionRootsAttributes'](_0x4827f2){return await this['_utils']['loadRevisionData'](_0x4827f2,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x4827f2);}async['compare'](_0x31404d,_0x318430,_0x47bbc7=!0x1){if(!this['isEnabled'])return;const _0x1a69d0=this['diff'],_0x2ca551=this['repository'],_0x5331b2='string'==typeof _0x31404d?_0x2ca551['getRevision'](_0x31404d):_0x31404d,_0x1b0295='string'==typeof _0x318430?_0x2ca551['getRevision'](_0x318430):_0x318430,_0x15834f=_0x5331b2['id'],_0x28f900=_0x1b0295?_0x1b0295['id']:null;if(!_0x47bbc7&&this['diff']&&this['diff']['newRevisionId']===_0x15834f&&this['diff']['oldRevisionId']===_0x28f900)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x15834f,_0x28f900);const _0x481ddd=this['_getRevisionsRange'](_0x5331b2,_0x1b0295,!0x0)['map'](_0x226432=>this['_utils']['loadRevisionData'](_0x226432,this['adapter']));return _0x481ddd['push'](new Promise(_0x26f4fd=>{setTimeout(_0x26f4fd,0x14);})),Promise['all'](_0x481ddd)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x1cfd8d=this['_getDiff'](_0x15834f,_0x28f900);for(const _0x250033 of _0x1cfd8d['changes'])this['_changeIdToChange']['set'](_0x250033['id'],_0x250033);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x25f168=>{for(const _0x51ffe9 of this['editor']['model']['document']['getRootNames']())_0x25f168['detachRoot'](_0x51ffe9);for(const _0x60651a of Object['keys'](_0x1cfd8d['model'])){const _0x4e553d=_0x25f168['addRoot'](_0x60651a);for(const _0x2602f2 of Object['keys'](_0x1cfd8d['attributes'][_0x60651a]))_0x25f168['setAttribute'](_0x2602f2,_0x1cfd8d['attributes'][_0x60651a][_0x2602f2],_0x4e553d);_0x25f168['insert'](_0x1cfd8d['model'][_0x60651a],_0x4e553d,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x1cfd8d['changes'])),this['isReady']=!0x0;})['catch'](_0x321e32=>{console['error'](_0x321e32),this['_cleanUp'](),_0x1a69d0&&(this['diff']=_0x1a69d0),this['isReady']=!0x0;});}['addRevisionData'](_0xabe24b,_0x1694d3){const _0x4bf39f=this['repository']['createRevision'](_0xabe24b);return _0x4bf39f['on']('_update',(_0x4605ef,_0x27d966,_0x4f4574)=>_0x1694d3(_0x27d966,_0x4f4574,_0x4bf39f)),this['repository']['addRevision'](_0x4bf39f),_0x4bf39f;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x4d21ab=>{for(const _0x48154f of this['editor']['model']['document']['getRootNames']())_0x4d21ab['detachRoot'](_0x48154f);});}['_sortAndFilterDiffChanges'](_0x307b58){const _0xa5f5df=[],_0x53e011=new Map();for(const _0x4c5bb1 of this['editor']['model']['document']['getRootNames']()){const _0x3dd767=this['editor']['editing']['view']['getDomRoot'](_0x4c5bb1);if(!_0x3dd767)continue;const _0x45bd8b=_0x3dd767['getClientRects']()['item'](0x0);_0x45bd8b&&(_0xa5f5df['push'](_0x4c5bb1),_0x53e011['set'](_0x4c5bb1,_0x45bd8b));}return _0xa5f5df['sort']((_0x47a23d,_0x59ac61)=>{const _0x554adf=_0x53e011['get'](_0x47a23d),_0x385578=_0x53e011['get'](_0x59ac61);return _0x554adf['y']-_0x385578['y']||_0x554adf['x']-_0x385578['x'];}),(_0x307b58=_0x307b58['filter'](_0x2c9cbc=>_0xa5f5df['includes'](_0x2c9cbc['rootName'])))['sort']((_0x1c4ca2,_0x95929b)=>_0xa5f5df['indexOf'](_0x1c4ca2['rootName'])-_0xa5f5df['indexOf'](_0x95929b['rootName'])),_0x307b58;}['_makeTape'](_0x5f49ae){const _0xa3343a=Array['from'](_0x5f49ae['markers'])['filter'](([_0x47dd80,_0x323e13])=>_0x47dd80['startsWith']('revision:')&&!_0x323e13['isCollapsed']),_0x6425d1=Array['from'](this['editor']['model']['createRangeIn'](_0x5f49ae)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0xa3343a['length'])for(const _0x5aa2a5 of _0x6425d1){const [_0x13358b,_0x480800]=_0xa3343a[0x0],[,_0x4f0cba,_0x51d827]=_0x13358b['split'](':');if(_0x480800['end']['isEqual'](_0x5aa2a5['nextPosition'])&&_0xa3343a['shift'](),(_0x5aa2a5['previousPosition']['isEqual'](_0x480800['start'])||_0x5aa2a5['previousPosition']['isAfter'](_0x480800['start']))&&('insertion'==_0x4f0cba?_0x5aa2a5['isAdded']={'userId':_0x51d827}:'deletion'==_0x4f0cba&&(_0x5aa2a5['isRemoved']={'userId':_0x51d827})),0x0==_0xa3343a['length'])break;}return _0x6425d1;}['_refreshStartEndIndex'](_0x4ec986){const _0x2369be=new Map();for(let _0x3a312c=0x0;_0x3a312c<_0x4ec986['length'];_0x3a312c++)'text'===_0x4ec986[_0x3a312c]['type']?(_0x4ec986[_0x3a312c]['item']['startIndex']=_0x3a312c,_0x4ec986[_0x3a312c]['item']['endIndex']=_0x3a312c):('elementStart'===_0x4ec986[_0x3a312c]['type']?_0x4ec986[_0x3a312c]['item']['startIndex']=_0x3a312c:'elementEnd'===_0x4ec986[_0x3a312c]['type']&&(_0x4ec986[_0x3a312c]['item']['endIndex']=_0x3a312c),_0x2369be['set'](_0x4ec986[_0x3a312c]['id'],_0x3a312c));for(const _0x25856c of _0x2369be['values']())'elementStart'===_0x4ec986[_0x25856c]['type']?_0x4ec986[_0x25856c]['item']['endIndex']=_0x2369be['get'](_0x4ec986[_0x25856c]['pairId']):'elementEnd'===_0x4ec986[_0x25856c]['type']&&(_0x4ec986[_0x25856c]['item']['startIndex']=_0x2369be['get'](_0x4ec986[_0x25856c]['pairId']));}['_processTape'](_0x2bf3ad){for(let _0x119276=0x0;_0x119276<_0x2bf3ad['length'];_0x119276++){if('elementStart'===_0x2bf3ad[_0x119276]['type'])_0x2bf3ad[_0x119276]['item']['startIndex']=_0x119276;else{if('elementEnd'===_0x2bf3ad[_0x119276]['type']){_0x2bf3ad[_0x119276]['item']['endIndex']=_0x119276;const _0x2e0102=_0x2bf3ad[_0x119276]['item']['startIndex'];_0x2bf3ad[_0x2e0102]['pairId']=_0x2bf3ad[_0x119276]['id'],_0x2bf3ad[_0x119276]['pairId']=_0x2bf3ad[_0x2e0102]['id'];}else _0x2bf3ad[_0x119276]['item']['startIndex']=_0x119276,_0x2bf3ad[_0x119276]['item']['endIndex']=_0x119276,_0x2bf3ad[_0x119276]['pairId']=null;}_0x2bf3ad[_0x119276]['markersStart']||(_0x2bf3ad[_0x119276]['markersStart']=[],_0x2bf3ad[_0x119276]['markersEnd']=[]);}}['_markInsertions'](_0x3305e5,_0xa67d15){const _0x2bdac7=_0x3305e5['filter'](_0x35cd72=>!_0x35cd72['isAdded']);for(let _0x5b303c=0x0;_0x5b303c<_0xa67d15['length'];_0x5b303c++)_0xa67d15[_0x5b303c]['isAdded']&&(_0x2bdac7[_0x5b303c]['isAdded']=_0xa67d15[_0x5b303c]['isAdded']);}['_getDiff'](_0x5cd196,_0x206415=null){const _0x47e087=this['repository']['getRevision'](_0x5cd196),_0x14ccf7=_0x206415?this['repository']['getRevision'](_0x206415):null,_0x24d0f5=this['_getRevisionsRange'](_0x47e087,_0x14ccf7),_0x14a8fc=_0x24d0f5[_0x24d0f5['length']-0x1],_0x572af0=new Map(),_0x16837c={'model':{},'attributes':{},'changes':[]},_0x1fafc1=new Set(),_0x2ba51d=new Map();for(let _0x7205ab=_0x24d0f5['length']-0x1;_0x7205ab>=0x0;_0x7205ab--){const _0x20567f=_0x24d0f5[_0x7205ab];for(const _0x16b93a of Object['keys'](_0x20567f['diffData']))if(_0x20567f['diffData'][_0x16b93a]['attachChange']){const _0x5d5fe6=_0x20567f['diffData'][_0x16b93a]['attachChange'];_0x5d5fe6['isAttached']?(_0x1fafc1['add'](_0x16b93a),_0x2ba51d['has'](_0x16b93a)&&_0x2ba51d['get'](_0x16b93a)['userId']==_0x5d5fe6['userId']?_0x2ba51d['delete'](_0x16b93a):_0x2ba51d['set'](_0x16b93a,_0x5d5fe6)):_0x2ba51d['has'](_0x16b93a)?(_0x1fafc1['delete'](_0x16b93a),_0x2ba51d['delete'](_0x16b93a)):(_0x1fafc1['add'](_0x16b93a),_0x2ba51d['set'](_0x16b93a,_0x5d5fe6));}else _0x1fafc1['add'](_0x16b93a);}for(const _0x3f8f58 of _0x1fafc1){const _0x506b06=_0x2ba51d['has'](_0x3f8f58)&&!_0x2ba51d['get'](_0x3f8f58)['isAttached'];let _0x3c72fc=_0x506b06?_0x24d0f5['length']-0x1:0x0;const _0x4fcd34=_0x506b06?-0x1:0x1;for(;_0x24d0f5[_0x3c72fc];){const _0xe661e7=_0x24d0f5[_0x3c72fc];if(_0xe661e7['diffData'][_0x3f8f58]){const _0x27f12d=_0x506b06?_0xe661e7['diffData'][_0x3f8f58]['attributesBefore']:_0xe661e7['diffData'][_0x3f8f58]['attributesAfter'];_0x16837c['attributes'][_0x3f8f58]=_0x27f12d?_0x10d4ae(_0x27f12d):{};break;}_0x3c72fc+=_0x4fcd34;}}for(const _0x4f4828 of _0x24d0f5){_0x4f4828['model']={};for(const _0x46a13d of _0x4f4828['authors'])_0x572af0['set'](_0x46a13d['id'],_0x46a13d);for(const _0x397702 of _0x1fafc1){const _0xd544ec=_0x4f4828['diffData'][_0x397702]?_0x4f4828['diffData'][_0x397702]['insertions']:'[]',_0x5af44e=_0x4f4828['diffData'][_0x397702]?_0x4f4828['diffData'][_0x397702]['deletions']:'[]';_0x4f4828['model'][_0x397702]={'insertions':this['_utils']['_makeModelFromViewString'](_0xd544ec),'deletions':this['_utils']['_makeModelFromViewString'](_0x5af44e)};}}for(const _0x23d3a5 of _0x1fafc1){let _0x5270f7=null,_0x4c5c3c=0x0;const _0x281aaa=new Map(Array['from'](_0x47e087['model'][_0x23d3a5]['insertions']['markers'])['filter'](([_0x1db682])=>!_0x1db682['startsWith']('revision:')));let _0x2a43f2=0x0;for(const _0x40efb9 of _0x24d0f5){const _0x78b30e=this['_makeTape'](_0x40efb9['model'][_0x23d3a5]['insertions']);_0x40efb9==_0x47e087?(_0x5270f7=_0x78b30e,_0x4c5c3c=_0x5270f7['length'],_0x5270f7['forEach'](_0x3be321=>{_0x3be321['id']=_0x2a43f2++;}),this['_processTape'](_0x5270f7)):this['_markInsertions'](_0x5270f7,_0x78b30e);const _0x103c43=_0x5270f7['filter'](_0x1effde=>!_0x1effde['isAdded'])['map'](_0x1342f3=>_0x1342f3['id']);let _0x37575f=0x0;const _0x344737=this['_makeTape'](_0x40efb9['model'][_0x23d3a5]['deletions']);_0x344737['forEach'](_0x140b17=>{_0x140b17['isRemoved']?_0x140b17['id']=_0x4c5c3c++:_0x140b17['id']=_0x103c43[_0x37575f++];}),this['_processTape'](_0x344737),this['_setDistance'](_0x5270f7,'isAdded'),this['_setDistance'](_0x344737,'isRemoved'),_0x40efb9==_0x47e087&&this['_markMarkers'](_0x5270f7,_0x281aaa),_0x5270f7=this['_joinTapes'](_0x5270f7,_0x344737),this['_refreshStartEndIndex'](_0x5270f7),this['_setDistance'](_0x5270f7,'isRemoved');}_0x5270f7=_0x5270f7['filter'](_0x4eb3f2=>!(_0x4eb3f2['isAdded']&&_0x4eb3f2['isRemoved']));const _0x55eb2b=new Map(_0x14a8fc['model'][_0x23d3a5]['deletions']['markers']),_0x354abc=new Set(_0x281aaa['keys']());for(const _0xe7fe38 of _0x55eb2b['keys']())_0x354abc['delete'](_0xe7fe38);this['_markSuggestions'](_0x5270f7,_0x354abc),this['_fixObsoleteTags'](_0x5270f7),_0x5270f7=this['_removeMissingPairs'](_0x5270f7),_0x5270f7=this['_markMismatchedRemovedTags'](_0x5270f7),_0x5270f7=this['_removeUnsupportedChanges'](_0x5270f7);const {root:_0x46f1be,changes:_0x5c84a9}=this['_makeModelFromTape'](_0x5270f7,_0x572af0,_0x23d3a5);_0x16837c['model'][_0x23d3a5]=_0x46f1be;const _0x5524ac=_0x2ba51d['get'](_0x23d3a5);if(_0x5524ac){const _0x12adad=_0x572af0['get'](_0x5524ac['userId']),_0x1e55c3=new r({'author':_0x12adad,'type':_0x5524ac['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x23d3a5});_0x5c84a9['unshift'](_0x1e55c3),_0x16837c['attributes'][_0x23d3a5]['revisionHistoryAttachChange']=_0x1e55c3['id'];}_0x16837c['changes']=_0x16837c['changes']['concat'](_0x5c84a9);}return _0x16837c;}['_markMarkers'](_0x55c53b,_0x2a5f35){for(let _0xfa4b9d=0x0;_0xfa4b9d<_0x55c53b['length'];_0xfa4b9d++)for(const [_0x149689,_0x2a9da0]of _0x2a5f35)!_0x2a9da0['isCollapsed']&&_0x2a9da0['start']['isEqual'](_0x55c53b[_0xfa4b9d]['previousPosition'])&&_0x55c53b[_0xfa4b9d]['markersStart']['push'](_0x149689),_0x2a9da0['end']['isEqual'](_0x55c53b[_0xfa4b9d]['nextPosition'])&&_0x55c53b[_0xfa4b9d]['markersEnd']['push'](_0x149689);}['_joinTapes'](_0x5703f7,_0x13991d){let _0x4cedb1=[],_0x50a2de=0x0,_0x3a884a=0x0;for(;_0x50a2de<_0x5703f7['length']||_0x3a884a<_0x13991d['length'];){const _0x32946b=_0x5703f7[_0x50a2de]||{},_0x3cfd38=_0x13991d[_0x3a884a]||{};if(_0x32946b['id']==_0x3cfd38['id'])_0x50a2de++,_0x3a884a++,_0x4cedb1['push'](_0x32946b);else{if(_0x3cfd38['isRemoved']&&_0x32946b['isAdded']){const {commonTape:_0x44bbd3,iEnd:_0xb9d95f,jEnd:_0x17d220}=this['_threeWayMerge'](_0x5703f7,_0x50a2de,_0x13991d,_0x3a884a);_0x4cedb1=_0x4cedb1['concat'](_0x44bbd3),_0x50a2de=_0xb9d95f,_0x3a884a=_0x17d220;}else _0x3cfd38['isRemoved']?(_0x3a884a++,_0x4cedb1['push'](_0x3cfd38)):(_0x50a2de++,_0x4cedb1['push'](_0x32946b));}}return _0x4cedb1;}['_markSuggestions'](_0x1806f6,_0x5211d6){const _0x29ebac=[];for(let _0x2cb12b=0x0;_0x2cb12b<_0x1806f6['length'];_0x2cb12b++){for(let _0x142c84=0x0;_0x142c84<_0x1806f6[_0x2cb12b]['markersStart']['length'];_0x142c84++){const _0xeccab5=_0x1806f6[_0x2cb12b]['markersStart'][_0x142c84];if(!_0x5211d6['has'](_0xeccab5))continue;const {group:_0x129797,type:_0x3b35fe,authorId:_0x1d3f94}=_0x916f0f(_0xeccab5);'revision-suggestion'!=_0x129797||'insertion'!=_0x3b35fe&&'deletion'!=_0x3b35fe||(_0x29ebac['unshift']({'type':_0x3b35fe,'name':_0xeccab5,'userId':_0x1d3f94}),_0x1806f6[_0x2cb12b]['markersStart']['splice'](_0x142c84,0x1),_0x142c84--);}_0x8f259f(_0x1806f6[_0x2cb12b]);for(let _0x5405c2=0x0;_0x5405c2<_0x1806f6[_0x2cb12b]['markersEnd']['length'];_0x5405c2++){const _0x284aeb=_0x1806f6[_0x2cb12b]['markersEnd'][_0x5405c2];if(!_0x5211d6['has'](_0x284aeb))continue;const {group:_0x5c41b9,type:_0x495605}=_0x916f0f(_0x284aeb);if('revision-suggestion'!=_0x5c41b9||'insertion'!=_0x495605&&'deletion'!=_0x495605)continue;_0x1806f6[_0x2cb12b]['markersEnd']['splice'](_0x5405c2,0x1),_0x5405c2--;const _0x55b108=_0x29ebac['findIndex'](_0x32db58=>_0x32db58['name']==_0x284aeb);_0x55b108>-0x1&&_0x29ebac['splice'](_0x55b108,0x1);}}function _0x916f0f(_0x3b4ed5){const _0x5954af=_0x3b4ed5['split'](':');return{'group':_0x5954af[0x0],'type':_0x5954af[0x1],'subType':_0x5954af['length']>=0x5?_0x5954af[0x2]:null,'id':_0x5954af['length']<0x5?_0x5954af[0x2]:_0x5954af[0x3],'authorId':_0x5954af['length']<0x5?_0x5954af[0x3]:_0x5954af[0x4],'markerCount':0x6==_0x5954af['length']?_0x5954af[0x5]:null};}function _0x8f259f(_0x5b56a8){for(let _0x23070d=0x0;_0x23070d<_0x29ebac['length'];_0x23070d++){if(_0x5b56a8['isAdded']&&'insertion'==_0x29ebac[_0x23070d]['type']&&_0x5b56a8['isAdded']['userId']==_0x29ebac[_0x23070d]['userId'])return _0x5b56a8['isAddSuggestion']=_0x29ebac[_0x23070d],void delete _0x5b56a8['isAdded'];if(!_0x5b56a8['isAdded']&&!_0x5b56a8['isRemoved']&&'deletion'==_0x29ebac[_0x23070d]['type'])return void(_0x5b56a8['isRemoveSuggestion']=_0x29ebac[_0x23070d]);}}}['_setDistance'](_0x316675,_0x26a83e){let _0x233f83=0x0,_0x2d869a=!0x1;const _0x234dd6=new Map();for(const _0x529af8 of _0x316675)_0x529af8[_0x26a83e]?_0x2d869a&&(_0x233f83++,_0x2d869a=!0x1):(_0x233f83++,_0x2d869a=!0x0),_0x234dd6['set'](_0x529af8['id'],_0x233f83);for(let _0x2504ce=0x0;_0x2504ce<_0x316675['length'];_0x2504ce++){if('isRemoved'==_0x26a83e&&_0x316675[_0x2504ce]['isAdded']||'isAdded'==_0x26a83e&&_0x316675[_0x2504ce]['isRemoved'])continue;if('text'==_0x316675[_0x2504ce]['type']){_0x316675[_0x2504ce]['distance']=0x0;continue;}const _0x5eb872=_0x234dd6['get'](_0x316675[_0x2504ce]['pairId']),_0x212ec5=_0x234dd6['get'](_0x316675[_0x2504ce]['id']);_0x316675[_0x2504ce]['distance']=_0x5eb872-_0x212ec5;}}['_getRevisionsRange'](_0x2a4800,_0x1aaa8c,_0x523e7e=!0x1){const _0x3ce085=[];let _0x5a729d=this['repository']['getIndex'](_0x2a4800),_0x168acd=this['repository']['getIndex'](_0x1aaa8c);for(-0x1==_0x168acd&&(_0x168acd=this['repository']['_revisions']['length'],_0x523e7e=!0x1);_0x5a729d<_0x168acd;)_0x3ce085['push'](this['repository']['getRevision'](_0x5a729d)),_0x5a729d++;return _0x523e7e&&_0x3ce085['push'](this['repository']['getRevision'](_0x5a729d)),_0x3ce085;}['_threeWayMerge'](_0x5d9123,_0x284f1d,_0x17b6c3,_0x56efca){const _0x84e86e=this['editor']['model']['schema'];let _0x482c33=_0x284f1d;for(;_0x5d9123[_0x482c33]&&_0x5d9123[_0x482c33]['isAdded'];)_0x482c33++;let _0x554f5c=_0x56efca;for(;_0x17b6c3[_0x554f5c]&&_0x17b6c3[_0x554f5c]['isRemoved'];)_0x554f5c++;_0x544b65(_0x5d9123,_0x284f1d,_0x482c33),_0x544b65(_0x17b6c3,_0x56efca,_0x554f5c);const _0x4d572b=_0x17b6c3['slice'](_0x56efca,_0x554f5c)['concat'](_0x5d9123['slice'](_0x284f1d,_0x482c33));return _0x4d572b['sort']((_0xcdc38e,_0xbc22ee)=>_0xcdc38e['side']!=_0xbc22ee['side']?_0xcdc38e['side']-_0xbc22ee['side']:_0xcdc38e['level']!=_0xbc22ee['level']?_0xcdc38e['level']-_0xbc22ee['level']:_0xcdc38e['distance']!=_0xbc22ee['distance']?_0xbc22ee['distance']-_0xcdc38e['distance']:!!_0xcdc38e['isAdded']!=!!_0xbc22ee['isAdded']?-0x1==_0xcdc38e['side']||0x0==_0xcdc38e['side']?_0xcdc38e['isAdded']?-0x1:0x1:_0xcdc38e['isAdded']?0x1:-0x1:_0xcdc38e['index']-_0xbc22ee['index']),{'commonTape':_0x4d572b,'iEnd':_0x482c33,'jEnd':_0x554f5c};function _0x544b65(_0x3dc8d2,_0x5ec3a5,_0x57ad34){let _0x2f626e=-0x1,_0x359cd8=Number['POSITIVE_INFINITY'],_0x5cb740=!0x0;for(let _0x5313dd=_0x5ec3a5;_0x5313dd<_0x57ad34;_0x5313dd++)if(_0x84e86e['isInline'](_0x3dc8d2[_0x5313dd]['item'])||(_0x5cb740=!0x1),_0x3dc8d2[_0x5313dd]['item']['startIndex']<_0x5ec3a5&&(_0x2f626e=_0x5313dd),_0x3dc8d2[_0x5313dd]['item']['endIndex']>=_0x57ad34){_0x359cd8=_0x5313dd;break;}_0x5cb740&&(_0x2f626e=_0x57ad34-0x1);for(let _0x38d43b=_0x5ec3a5;_0x38d43b<_0x57ad34;_0x38d43b++)_0x3dc8d2[_0x38d43b]['side']=_0x38d43b<=_0x2f626e?-0x1:_0x38d43b<_0x359cd8?0x0:0x1,_0x3dc8d2[_0x38d43b]['index']=_0x38d43b;let _0xb8064c=0x0;for(let _0x12caff=_0x5ec3a5;_0x12caff<=_0x2f626e;_0x12caff++)0x0==_0x3dc8d2[_0x12caff]['distance']?_0x3dc8d2[_0x12caff]['level']=_0xb8064c:(_0xb8064c++,_0x3dc8d2[_0x12caff]['level']=_0xb8064c,_0xb8064c++);for(let _0x448b7f=_0x5ec3a5;_0x448b7f<_0x57ad34;_0x448b7f++)0x0==_0x3dc8d2[_0x448b7f]['side']&&(_0x3dc8d2[_0x448b7f]['level']=_0xb8064c);_0xb8064c=0x0;for(let _0x240b42=_0x57ad34-0x1;_0x240b42>=_0x359cd8;_0x240b42--)0x0==_0x3dc8d2[_0x240b42]['distance']?_0x3dc8d2[_0x240b42]['level']=_0xb8064c:(_0xb8064c--,_0x3dc8d2[_0x240b42]['level']=_0xb8064c,_0xb8064c--);}}['_fixObsoleteTags'](_0x15e2c6){const _0xc9789=new Map(),_0x3dc353=this['editor']['model']['schema'];for(let _0x462955=0x1;_0x462955<_0x15e2c6['length'];_0x462955++){let _0x4cbf7c,_0x373317,_0x95d0fc;const _0x187d5a=_0x15e2c6[_0x462955],_0x4f8393=_0x15e2c6[_0x462955-0x1];if('text'==_0x187d5a['type'])continue;if(_0x187d5a['type']!=_0x4f8393['type'])continue;if(!_0x3dc353['isBlock'](_0x4f8393['item'])||_0x3dc353['isLimit'](_0x4f8393['item']))continue;if(!_0x3dc353['isBlock'](_0x187d5a['item'])||_0x3dc353['isLimit'](_0x187d5a['item']))continue;if((_0x15e2c6[_0x462955]['isAdded']||_0x15e2c6[_0x462955]['isAddSuggestion'])&&_0x15e2c6[_0x462955-0x1]['isRemoved'])_0x4cbf7c=_0x15e2c6[_0x462955],_0x373317=_0x15e2c6[_0x462955-0x1],_0x95d0fc=_0x462955-0x1;else{if(!_0x15e2c6[_0x462955]['isRemoved']||!_0x15e2c6[_0x462955-0x1]['isAdded']&&!_0x15e2c6[_0x462955-0x1]['isAddSuggestion'])continue;_0x4cbf7c=_0x15e2c6[_0x462955-0x1],_0x373317=_0x15e2c6[_0x462955],_0x95d0fc=_0x462955;}const _0x36de85=_0x4cbf7c['level']==_0x373317['level'],_0x3d2270=Math['abs'](_0x4cbf7c['level'])<Math['abs'](_0x373317['level'])&&0x0==_0x373317['distance'];(_0x36de85||_0x3d2270)&&(_0xc9789['set'](_0x373317['id'],_0x4cbf7c['id']),_0x15e2c6['splice'](_0x95d0fc,0x1),_0x462955--,_0x4cbf7c['isAdded']=!0x1);}for(let _0x872b6e=0x0;_0x872b6e<_0x15e2c6['length'];_0x872b6e++)_0xc9789['has'](_0x15e2c6[_0x872b6e]['pairId'])&&(_0x15e2c6[_0x872b6e]['pairId']=_0xc9789['get'](_0x15e2c6[_0x872b6e]['pairId']));}['_removeMissingPairs'](_0x5a6236){const _0x3d5a91=new Set(_0x5a6236['map'](_0x30f4bb=>_0x30f4bb['id']));for(let _0x3692ea=0x0;_0x3692ea<_0x5a6236['length'];_0x3692ea++)_0x3d5a91['has'](_0x5a6236[_0x3692ea]['pairId'])||0x0==_0x5a6236[_0x3692ea]['distance']||(_0x5a6236[_0x3692ea]['isIncorrect']=!0x0);return _0x5a6236['filter'](_0x2bc974=>!_0x2bc974['isIncorrect']);}['_markMismatchedRemovedTags'](_0x1da7ea){const _0x149d4c=new Set();for(let _0x45b96b=0x0;_0x45b96b<_0x1da7ea['length'];_0x45b96b++){if(_0x149d4c['has'](_0x1da7ea[_0x45b96b]['id'])&&_0x1da7ea[_0x45b96b]['isRemoved']&&(_0x1da7ea[_0x45b96b]['isIncorrect']=!0x0),_0x1da7ea[_0x45b96b]['isIncorrect'])continue;if(0x0==_0x1da7ea[_0x45b96b]['distance'])continue;if('elementStart'!=_0x1da7ea[_0x45b96b]['type'])continue;if(null==_0x1da7ea[_0x45b96b]['pairId'])continue;let _0x2845b3=_0x45b96b+0x1,_0x26862b=0x0;for(;_0x1da7ea[_0x2845b3]['id']!=_0x1da7ea[_0x45b96b]['pairId'];)'elementStart'==_0x1da7ea[_0x2845b3]['type']?_0x26862b++:'elementEnd'==_0x1da7ea[_0x2845b3]['type']&&_0x26862b--,_0x2845b3++;if(0x0!=_0x26862b){if(_0x1da7ea[_0x45b96b]['isRemoved'])_0x1da7ea[_0x45b96b]['isIncorrect']=!0x0;else{for(;_0x2845b3!=_0x45b96b;)_0x1da7ea[_0x2845b3]['isRemoved']&&0x0!=_0x1da7ea[_0x2845b3]['distance']&&(_0x1da7ea[_0x2845b3]['isIncorrect']=!0x0,_0x149d4c['add'](_0x1da7ea[_0x2845b3]['pairId'])),_0x2845b3--;}}}return _0x1da7ea['filter'](_0x3e9c4c=>!_0x3e9c4c['isIncorrect']);}['_removeUnsupportedChanges'](_0x22eb12){const _0x3107e4=this['editor']['model']['schema'];for(let _0x55bda6=0x0;_0x55bda6<_0x22eb12['length'];_0x55bda6++){if(!(_0x22eb12[_0x55bda6]['isAdded']||_0x22eb12[_0x55bda6]['isAddSuggestion']||_0x22eb12[_0x55bda6]['isRemoved']||_0x22eb12[_0x55bda6]['isRemoveSuggestion']))continue;if(0x0==_0x22eb12[_0x55bda6]['distance'])continue;const _0x5da9a4=_0x22eb12[_0x55bda6]['item'];_0x3107e4['isBlock'](_0x5da9a4)||_0x3107e4['isLimit'](_0x5da9a4)||(_0x22eb12[_0x55bda6]['isAdded']&&delete _0x22eb12[_0x55bda6]['isAdded'],_0x22eb12[_0x55bda6]['isAddSuggestion']&&delete _0x22eb12[_0x55bda6]['isAddSuggestion'],_0x22eb12[_0x55bda6]['isRemoveSuggestion']&&delete _0x22eb12[_0x55bda6]['isRemoveSuggestion'],_0x22eb12[_0x55bda6]['isRemoved']&&(_0x22eb12[_0x55bda6]['isIncorrect']=!0x0));}return _0x22eb12['filter'](_0x343d86=>!_0x343d86['isIncorrect']);}['_makeModelFromTape'](_0x4203f0,_0x294fec,_0xa4f4a8){const _0x106b04=new vt(),_0x12d713=[],_0x2810a0=new Map(),_0x12e5cc=this['editor']['model'],_0xc90c93=_0x12e5cc['schema'],_0x5a5a27=[_0x106b04],_0x25a246={},_0x5f4e9b={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x4c0944=null;const _0x3e2555=[0x0];for(let _0x3e2d5b=0x0;_0x3e2d5b<_0x4203f0['length'];_0x3e2d5b++)if('elementStart'===_0x4203f0[_0x3e2d5b]['type']){_0x4203f0[_0x3e2d5b]['previousPosition']=_0x12e5cc['createPositionFromPath'](_0x106b04,_0x3e2555);const _0x532ab8=new ut(_0x4203f0[_0x3e2d5b]['item']['name'],_0x4203f0[_0x3e2d5b]['item']['getAttributes']());_0x5a5a27[0x0]['_appendChild'](_0x532ab8),_0x3e2555['push'](0x0),_0x5a5a27['unshift'](_0x532ab8),_0x4203f0[_0x3e2d5b]['nextPosition']=_0x12e5cc['createPositionFromPath'](_0x106b04,_0x3e2555);}else'elementEnd'===_0x4203f0[_0x3e2d5b]['type']?(_0x5a5a27['shift'](),_0x4203f0[_0x3e2d5b]['previousPosition']=_0x12e5cc['createPositionFromPath'](_0x106b04,_0x3e2555),_0x3e2555['pop'](),_0x3e2555[_0x3e2555['length']-0x1]++,_0x4203f0[_0x3e2d5b]['nextPosition']=_0x12e5cc['createPositionFromPath'](_0x106b04,_0x3e2555)):(_0x4203f0[_0x3e2d5b]['previousPosition']=_0x12e5cc['createPositionFromPath'](_0x106b04,_0x3e2555),_0x4c0944?_0x4c0944['_data']+=_0x4203f0[_0x3e2d5b]['item']['data']:_0x4c0944=new gt(_0x4203f0[_0x3e2d5b]['item']['data'],_0x4203f0[_0x3e2d5b]['item']['getAttributes']()),_0x4203f0[_0x3e2d5b+0x1]&&'text'===_0x4203f0[_0x3e2d5b+0x1]['type']&&_0x401d86(_0x4c0944,_0x4203f0[_0x3e2d5b+0x1]['item'])||(_0x5a5a27[0x0]['_appendChild'](_0x4c0944),_0x4c0944=null),_0x3e2555[_0x3e2555['length']-0x1]+=_0x4203f0[_0x3e2d5b]['item']['offsetSize'],_0x4203f0[_0x3e2d5b]['nextPosition']=_0x12e5cc['createPositionFromPath'](_0x106b04,_0x3e2555));for(let _0x264506=0x0;_0x264506<_0x4203f0['length'];_0x264506++){const _0x22d2bd=_0x4203f0[_0x264506]['previousPosition'],_0x367a97=_0x4203f0[_0x264506]['nextPosition'];for(const _0x42bfbf of _0x4203f0[_0x264506]['markersStart'])_0x2810a0['set'](_0x42bfbf,{'start':_0x22d2bd,'end':null});_0x4db219('isRemoveSuggestion',_0x264506,_0x22d2bd,_0x367a97),_0x4db219('isAddSuggestion',_0x264506,_0x22d2bd,_0x367a97),_0x4db219('isRemoved',_0x264506,_0x22d2bd,_0x367a97),_0x4db219('isAdded',_0x264506,_0x22d2bd,_0x367a97);for(const _0x1bd7a8 of _0x4203f0[_0x264506]['markersEnd']){const _0x388945=_0x2810a0['get'](_0x1bd7a8);_0x388945?_0x388945['end']=_0x367a97:_0x2810a0['set'](_0x1bd7a8,{'start':_0x367a97,'end':_0x367a97});}}for(const [_0x362567,_0x150e03]of _0x2810a0){const _0x59e7fe=this['editor']['model']['createRange'](_0x150e03['start'],_0x150e03['end']);_0x106b04['markers']['set'](_0x362567,_0x59e7fe);}return _0x12d713['sort']((_0x12410a,_0x4d9207)=>{const _0x427131=_0x106b04['markers']['get']('revision:'+_0x12410a['id']),_0x519753=_0x106b04['markers']['get']('revision:'+_0x4d9207['id']);return _0x427131['start']['isBefore'](_0x519753['start'])?-0x1:_0x427131['start']['isAfter'](_0x519753['start'])?0x1:_0x427131['end']['isBefore'](_0x519753['end'])?-0x1:_0x427131['end']['isAfter'](_0x519753['end'])?0x1:'add'===_0x12410a['type']?-0x1:0x1;}),{'root':_0x106b04,'changes':_0x12d713};function _0x4db219(_0x233ecc,_0x29b2ff,_0x199dd4,_0xc6066d){const _0x203dc3=!!_0x4203f0[_0x29b2ff][_0x233ecc],_0x3438b0=_0x203dc3?_0x4203f0[_0x29b2ff][_0x233ecc]['userId']:null,_0x3aeb62=_0x29b2ff===_0x4203f0['length']-0x1,_0x37ea26=_0x5f4e9b[_0x233ecc][0x0],_0x299e15=_0xc90c93['isObject'](_0x4203f0[_0x29b2ff]['item']);!_0x25a246[_0x233ecc]&&_0x203dc3?_0x25a246[_0x233ecc]={'start':_0x199dd4,'tapeItem':_0x4203f0[_0x29b2ff],'userId':_0x3438b0,'type':_0x233ecc}:_0x25a246[_0x233ecc]&&!_0x203dc3?(_0x25a246[_0x233ecc]['end']=_0x199dd4,_0x28e351(_0x25a246[_0x233ecc]),_0x25a246[_0x233ecc]=null):_0x25a246[_0x233ecc]&&_0x203dc3&&_0x25a246[_0x233ecc]['userId']!==_0x3438b0&&(_0x25a246[_0x233ecc]['end']=_0x199dd4,_0x37ea26&&_0x37ea26['userId']===_0x25a246[_0x233ecc]['userId']||_0x28e351(_0x25a246[_0x233ecc]),_0x25a246[_0x233ecc]={'start':_0x199dd4,'tapeItem':_0x4203f0[_0x29b2ff],'userId':_0x3438b0,'type':_0x233ecc}),_0x25a246[_0x233ecc]&&_0x299e15&&('elementStart'!==_0x4203f0[_0x29b2ff]['type']||_0x37ea26&&_0x37ea26['userId']===_0x3438b0||_0x5f4e9b[_0x233ecc]['unshift']({'userId':_0x3438b0,'object':_0x4203f0[_0x29b2ff]['item'],'change':_0x25a246[_0x233ecc]}),'elementEnd'===_0x4203f0[_0x29b2ff]['type']&&_0x37ea26&&_0x37ea26['object']===_0x4203f0[_0x29b2ff]['item']&&(_0x5f4e9b[_0x233ecc]['shift'](),_0x25a246[_0x233ecc]=_0x37ea26['change'])),_0x25a246[_0x233ecc]&&_0x3aeb62&&(_0x25a246[_0x233ecc]['end']=_0xc6066d,_0x28e351(_0x25a246[_0x233ecc]),_0x25a246[_0x233ecc]=null);}function _0x28e351({start:_0x2f4a10,end:_0x2f303f,tapeItem:_0x51a58b,userId:_0x3e600f,type:_0x385524}){const _0x4fadaa=_0x51a58b['item'],_0x319b47=_0x12e5cc['schema']['isBlock'](_0x4fadaa)&&!_0x12e5cc['schema']['isLimit'](_0x4fadaa),_0x9757de=_0x2f4a10['nodeAfter']==_0x2f303f['parent']&&_0x2f303f['isAtStart'];if(_0x319b47&&_0x9757de)return;const _0x21579c=_0x12e5cc['createRange'](_0x2f4a10,_0x2f303f),_0x394403=_0x294fec['get'](_0x3e600f),_0x163917=new r({'author':_0x394403,'type':'isAdded'==_0x385524||'isAddSuggestion'==_0x385524?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x385524||'isRemoveSuggestion'==_0x385524},'createdAt':new Date(),'rootName':_0xa4f4a8});_0x12d713['push'](_0x163917),_0x106b04['markers']['set']('revision:'+_0x163917['id'],_0x21579c);}function _0x401d86(_0x1f627b,_0x5b84ac){const _0x5a20bd=_0x1f627b['getAttributes'](),_0x54250e=_0x5b84ac['getAttributes']();for(const _0x66291 of _0x5a20bd){if(_0x66291[0x1]!==_0x5b84ac['getAttribute'](_0x66291[0x0]))return!0x1;_0x54250e['next']();}return _0x54250e['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x2d4eeb=>{const _0x4014f7=_0x2d4eeb['markerName']['split'](':')[0x1],_0x16d3d8=this['_getChangeFromId'](_0x4014f7);if(!_0x16d3d8)return null;const _0x5bb660='add'==_0x16d3d8['type']?'insertion':'deletion',_0x25f0fb=['ck-suggestion-marker','ck-suggestion-marker-'+_0x5bb660];return _0x16d3d8['data']['isSuggestion']&&_0x25f0fb['push']('ck-suggestion-marker-'+_0x5bb660+'-new'),this['activeChange']==_0x16d3d8&&_0x25f0fb['push']('ck-suggestion-marker--active'),{'classes':_0x25f0fb,'attributes':{'data-change-id':_0x4014f7}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x34dedf=>{_0x34dedf['on']('element:pre',(_0x113967,_0x3d9128,_0x1f9c2a)=>{const _0x69b266=_0x3d9128['viewItem']['getChild'](0x0);if(!_0x69b266||!_0x69b266['is']('element','code'))return;if(!_0x1f9c2a['consumable']['consume'](_0x69b266,{'attributes':['vid_start','vid_end']}))return;const _0xec81a3=_0x3d9128['modelRange']['start']['nodeAfter'];_0x1f9c2a['writer']['setAttribute']('vid_start',_0x69b266['getAttribute']('vid_start'),_0xec81a3),_0x1f9c2a['writer']['setAttribute']('vid_end',_0x69b266['getAttribute']('vid_end'),_0xec81a3);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x3ffa11=>{_0x3ffa11['on']('element',(_0xfcdde5,_0x161c64,_0x22d00d)=>{if(!_0x22d00d['consumable']['consume'](_0x161c64['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x161c64['modelRange']['isCollapsed'])return;const _0x1eeb84=_0x161c64['modelRange']['start']['nodeAfter'];_0x1eeb84['hasAttribute']('vid_start')||_0x1eeb84['hasAttribute']('vid')||(_0x22d00d['writer']['setAttribute']('vid_start',_0x161c64['viewItem']['getAttribute']('vid_start'),_0x1eeb84),_0x22d00d['writer']['setAttribute']('vid_end',_0x161c64['viewItem']['getAttribute']('vid_end'),_0x1eeb84));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x2d1869=>_0x2d1869['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x5f5cdc,[,_0x4a22d4])=>{['vid_start','vid_end','vid']['includes'](_0x4a22d4)&&(_0x5f5cdc['return']=!0x0,_0x5f5cdc['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x941991=>{_0x941991['on']('attribute:vid',(_0x1c530b,_0x26d8a8,_0x26570d)=>{if('\x20'!=_0x26d8a8['item']['data']||_0x26d8a8['item']['parent']['maxOffset']>0x1)return;if(!_0x26570d['consumable']['consume'](_0x26d8a8['item'],_0x1c530b['name']))return;const _0x34d118=_0x26570d['writer'],_0x1c1ad3=_0x26570d['mapper']['toViewRange'](_0x26d8a8['range']);_0x34d118['wrap'](_0x1c1ad3,_0x34d118['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x30af4a){const _0x1149c3=_0x30af4a['plugins']['get']('RevisionViewer');return(_0x3c687e,_0x545ac6,_0x2ec418)=>{const _0x5a5784=_0x545ac6['markerName']['split'](':')[0x1],_0x349e48=_0x1149c3['_getChangeFromId'](_0x5a5784);if(!_0x349e48)return null;const _0x4e5f0d='add'==_0x349e48['type']?'split':'merge';if(!_0x2ec418['consumable']['test'](_0x545ac6['markerRange'],_0x3c687e['name']))return;const _0x1d8ccb=_0x545ac6['markerRange']['getWalker'](),_0x4703bd=_0x545ac6['markerRange']['start'],_0x551626=_0x30af4a['model']['schema'];let _0x13a450=null,_0x2b1528=null,_0x1c9809=!0x1,_0x3a0c52=!0x1;for(const _0x49a390 of _0x1d8ccb){const _0x10738b=_0x49a390['item'];_0x1c9809=_0x1c9809||_0x551626['isContent'](_0x10738b);const _0x2c4975=_0x2ec418['mapper']['toViewElement'](_0x10738b);if(_0x2c4975&&_0x2c4975['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x49a390['type']&&(_0x551626['isBlock'](_0x10738b)&&!_0x551626['isLimit'](_0x10738b)&&(_0x10738b['nextSibling']||_0x4703bd['isAtEnd']?_0x13a450&&_0x13a450['parent']==_0x10738b||(_0x13a450=_0x10738b,_0x276aa7(_0x49a390['previousPosition']),_0x3a0c52=!0x0):_0x2b1528=_0x2b1528||_0x49a390['previousPosition']));}function _0x276aa7(_0x718a8b){const _0x5747d4=_0x2ec418['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4e5f0d}),_0xf8db70=_0x2ec418['mapper']['toViewPosition'](_0x718a8b);_0x349e48['data']['isSuggestion']&&_0x2ec418['writer']['addClass']('ck-suggestion-marker-'+_0x4e5f0d+'-new',_0x5747d4),_0x1149c3['activeChange']==_0x349e48&&_0x2ec418['writer']['addClass']('ck-suggestion-marker--active',_0x5747d4),_0x2ec418['writer']['insert'](_0xf8db70,_0x5747d4),_0x2ec418['mapper']['bindElementToMarker'](_0x5747d4,_0x545ac6['markerName']);}_0x1c9809||_0x3a0c52||!_0x2b1528||_0x276aa7(_0x2b1528);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x31b89f,_0x243eda,_0x5af564)=>{const _0xa3bd97=_0x5af564['mapper']['markerNameToElements'](_0x243eda['markerName']);if(_0xa3bd97){for(const _0x3c4190 of _0xa3bd97)(_0x3c4190['hasClass']('ck-suggestion-marker-split')||_0x3c4190['hasClass']('ck-suggestion-marker-merge'))&&(_0x5af564['mapper']['unbindElementFromMarkerName'](_0x3c4190,_0x243eda['markerName']),_0x5af564['writer']['remove'](_0x3c4190));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x5b83d3,_0x423779,_0x187091)=>{const _0x5d9f95=_0x423779['markerName']['split'](':')[0x1],_0x44effb=this['_getChangeFromId'](_0x5d9f95);if(!_0x44effb)return null;const _0x3a2ec6='add'==_0x44effb['type']?'split':'merge';if(_0x187091['consumable']['test'](_0x423779['markerRange'],_0x5b83d3['name']))for(const _0x3c5bfc of _0x423779['markerRange']['getItems']()){if(!_0x3c5bfc['is']('element','softBreak'))continue;const _0xccccf7=_0x187091['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3a2ec6}),_0x3ff2b6=_0x187091['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x3c5bfc));_0x44effb['data']['isSuggestion']&&_0x187091['writer']['addClass']('ck-suggestion-marker-'+_0x3a2ec6+'-new',_0xccccf7),this['activeChange']==_0x44effb&&_0x187091['writer']['addClass']('ck-suggestion-marker--active',_0xccccf7),_0x187091['writer']['insert'](_0x3ff2b6,_0xccccf7),_0x187091['mapper']['bindElementToMarker'](_0xccccf7,_0x423779['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x161c56=>{for(const _0x2b1b81 of this['editor']['model']['document']['getRootNames']()){const _0x483b0f=this['editor']['model']['document']['getRoot'](_0x2b1b81),_0x250010=this['editor']['editing']['view']['document']['getRoot'](_0x2b1b81);if(_0x250010){const _0x52201f=_0x483b0f['getAttribute']('revisionHistoryAttachChange');if(_0x161c56['removeAttribute']('data-change-id',_0x250010),_0x161c56['removeClass']('ck-revision-history-root-add',_0x250010),_0x161c56['removeClass']('ck-revision-history-root-remove',_0x250010),_0x161c56['removeClass']('ck-revision-history-root--active',_0x250010),_0x52201f){const _0x49f5b8=this['_getChangeFromId'](_0x52201f);if(!_0x49f5b8)return null;_0x161c56['setAttribute']('data-change-id',_0x52201f,_0x250010),_0x161c56['addClass']('ck-revision-history-root-'+_0x49f5b8['type'],_0x250010),this['activeChange']==_0x49f5b8&&_0x161c56['addClass']('ck-revision-history-root--active',_0x250010);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x33c919=>'revision-comment:'+_0x33c919,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0xc9bcb6=>'revision-suggestion:'+_0xc9bcb6,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0xa2d601=>({'name':'suggestion:'+_0xa2d601,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x32476a=>{const _0x595841=_0x32476a['markerName']['split'](':')[0x1];return'insertion'!=_0x595841&&'deletion'!=_0x595841?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x595841]};}}),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',(_0x81032d,_0x493caa,_0x4f9a35)=>{const _0x120252=_0x4f9a35['mapper']['markerNameToElements'](_0x493caa['markerName']);if(_0x120252){for(const _0x493e07 of _0x120252)_0x493e07['is']('uiElement')&&(_0x4f9a35['mapper']['unbindElementFromMarkerName'](_0x493e07,_0x493caa['markerName']),_0x4f9a35['writer']['remove'](_0x493e07));}},{'priority':'high'});}['_getChangeFromId'](_0x426287){return this['_changeIdToChange']['get'](_0x426287);}['_getViewForChange'](_0x31ce77){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x31ce77),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0xd30970,_0x2278d6,_0x8ef7e3,_0xa8b661)=>{_0xa8b661&&this['_balloon']['remove'](_0xa8b661),_0x8ef7e3&&(this['_balloon']['add']({'view':_0x8ef7e3,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x25d9f1=this['editor']['editing'],_0x584679=this['_getChangeFromId'](_0x8ef7e3['changeId']);let _0x4b65be;if(_0x584679['data']['isOnRoot']){const _0x3ac9ab=_0x25d9f1['view']['getDomRoot'](_0x584679['rootName']);_0x4b65be=Array['from'](_0x3ac9ab['getClientRects']());}else{const _0x458f43=this['editor']['model']['markers']['get']('revision:'+_0x8ef7e3['changeId']);_0x4b65be=Array['from'](_0x25d9f1['mapper']['markerNameToElements'](_0x458f43['name']))['map'](_0x53802b=>_0x25d9f1['view']['domConverter']['mapViewToDom'](_0x53802b))['map'](_0x451ff5=>Array['from'](_0x451ff5['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x4b65be[0x0];return _0x4b65be['find'](_0x18ce52=>_0x18ce52['top']-0x3<=this['_activeViewTarget']['y']&&_0x18ce52['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x18ce52['left']-0x3<=this['_activeViewTarget']['x']&&_0x18ce52['right']+0x3>=this['_activeViewTarget']['x'])||_0x4b65be[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x24de67,_0x78238f,_0x3a9ca5,_0x5a4a9c)=>{this['activeView']=_0x3a9ca5?this['_getViewForChange'](_0x3a9ca5):null,this['editor']['model']['change'](()=>{const _0xe8f047=this['editor']['editing'];_0x5a4a9c&&(_0x5a4a9c['data']['isOnRoot']?_0xe8f047['view']['change'](_0xc6b8e3=>{_0xc6b8e3['removeClass']('ck-revision-history-root--active',_0xe8f047['view']['document']['getRoot'](_0x5a4a9c['rootName']));}):_0xe8f047['reconvertMarker']('revision:'+_0x5a4a9c['id'])),_0x3a9ca5&&(_0x3a9ca5['data']['isOnRoot']?_0xe8f047['view']['change'](_0x55ef27=>{_0x55ef27['addClass']('ck-revision-history-root--active',_0xe8f047['view']['document']['getRoot'](_0x3a9ca5['rootName']));}):_0xe8f047['reconvertMarker']('revision:'+_0x3a9ca5['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x6f2c74,_0x39f91f)=>{if(this['activeChange'])return;const _0x475596=this['_findChangeIdFromDomTarget'](_0x39f91f['target']),_0x1d50df=this['_changeIdToChange']['get'](_0x475596);_0x1d50df?(this['_activeViewTarget']={'x':_0x39f91f['domEvent']['x'],'y':_0x39f91f['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x1d50df)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x1ebbc5,_0xd6e9a4)=>{const _0x4b8c63=this['_findChangeIdFromDomTarget'](_0xd6e9a4['target']),_0x3847e0=this['_changeIdToChange']['get'](_0x4b8c63);_0x3847e0?(this['_activeViewTarget']={'x':_0xd6e9a4['domEvent']['x'],'y':_0xd6e9a4['domEvent']['y']},_0x3847e0===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x3847e0):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x349959){do{const _0x344cea=_0x349959['getAttribute']('data-change-id');if(_0x344cea)return _0x344cea;_0x349959=_0x349959['parent'];}while(_0x349959);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x472896=>{for(const _0x1ae2fa of this['editor']['model']['markers'])_0x472896['removeMarker'](_0x1ae2fa);});}}function X(_0x4399ad,_0x20a4c5){return(_0x28476b,_0x4aeab9,_0x18625e)=>{if(!_0x18625e['consumable']['test'](_0x4aeab9['markerRange'],_0x28476b['name']))return;const _0x3b8c1d=_0x4aeab9['markerRange']['getWalker'](),_0xecb03e=_0x4aeab9['markerRange']['start'],_0x52abb0=_0x4399ad['model']['schema'];let _0x39ab10=null,_0x4fcc5c=null,_0x72e523=!0x1,_0x5ca883=!0x1;for(const _0x33dae2 of _0x3b8c1d){const _0x5cbec9=_0x33dae2['item'];_0x72e523=_0x72e523||_0x52abb0['isContent'](_0x5cbec9);const _0x1ea2ff=_0x18625e['mapper']['toViewElement'](_0x5cbec9);if(_0x1ea2ff&&_0x1ea2ff['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x33dae2['type']&&(_0x52abb0['isBlock'](_0x5cbec9)&&!_0x52abb0['isLimit'](_0x5cbec9)&&(_0x5cbec9['nextSibling']||_0xecb03e['isAtEnd']?_0x39ab10&&_0x39ab10['parent']==_0x5cbec9||(_0x39ab10=_0x5cbec9,_0x381038(_0x33dae2['previousPosition']),_0x5ca883=!0x0):_0x4fcc5c=_0x4fcc5c||_0x33dae2['previousPosition']));}function _0x381038(_0x6ba113){const _0x492a98=_0x18625e['mapper']['toViewPosition'](_0x6ba113),_0x5101d9=_0x18625e['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x20a4c5});_0x18625e['writer']['insert'](_0x492a98,_0x5101d9),_0x18625e['mapper']['bindElementToMarker'](_0x5101d9,_0x4aeab9['markerName']);}_0x72e523||_0x5ca883||!_0x4fcc5c||_0x381038(_0x4fcc5c);};}class mt extends _0x510066{constructor(_0x40b6c8){super(_0x40b6c8);const _0x1d57e0=_0x40b6c8['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x1d57e0,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x1d57e0,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x327123=this['editor'],_0x2a1f98=_0x327123['plugins']['get'](m),_0x1b7632=_0x2a1f98['isReady']?_0x2a1f98['diff']['newRevisionId']:null;_0x327123['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x1b7632);}['refresh'](){const {isReady:_0x5bc048,isEnabled:_0x148305,repository:_0x55aea1,diff:_0x46fc53}=this['editor']['plugins']['get'](m),_0x44f9a4=_0x46fc53&&_0x55aea1['getLaterVisibleRevision'](_0x46fc53['newRevisionId']);this['isEnabled']=_0x5bc048&&_0x148305&&Boolean(_0x44f9a4);}}class wt extends _0x510066{['_step'];constructor(_0x1bc4e8,{direction:_0x336f29}){super(_0x1bc4e8);const _0x3e8f9a=_0x1bc4e8['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x336f29?0x1:-0x1,this['listenTo'](_0x3e8f9a,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x3e8f9a,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x3e8f9a,'change:activeChange',()=>this['refresh']());}['execute'](){const _0xab7a65=this['editor'],_0x4c4b47=_0xab7a65['plugins']['get'](m),{isNavigationMode:_0x4173cc,currentChangeNumber:_0x58019f}=_0x4c4b47;let _0xdf6474;if(_0x4c4b47['activeChange']=_0x4173cc?_0x4c4b47['diff']['changes']['get'](_0x58019f+this['_step']):_0x4c4b47['diff']['changes']['first'],_0x4c4b47['activeChange']['data']['isOnRoot'])_0xdf6474=_0xab7a65['editing']['view']['getDomRoot'](_0x4c4b47['activeChange']['rootName']);else{const _0x462054=_0xab7a65['model']['markers']['get']('revision:'+_0x4c4b47['activeChange']['id']);_0xdf6474=_0xe6740c(_0xab7a65['editing'],_0x462054);}_0x326e9c({'target':_0xdf6474,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x4a7adc,currentChangeNumber:_0x3db7f0,numberOfChanges:_0x73717c,isReady:_0x59cec2,isEnabled:_0x305e26}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x305e26&&_0x59cec2&&_0x73717c)&&(!_0x4a7adc||(0x1===this['_step']?_0x3db7f0<_0x73717c-0x1:_0x3db7f0>0x0));}}class _i extends ts{constructor(_0x1fd7ed){super(_0x1fd7ed);const _0x39fcf5=this['bindTemplate'],_0x875363=new te(_0x1fd7ed),_0x30d2b6=new te(_0x1fd7ed);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',(_0x6e9ed6,_0x405bb8)=>_0x6e9ed6&&_0x405bb8>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x5657b0,_0x550d9c,_0x1cd1de,_0x1234c5)=>{if(!_0x5657b0)return g(_0x1fd7ed,'Loading...');if(!_0x1cd1de)return g(_0x1fd7ed,'No\x20changes');const _0x4c5707=g(_0x1fd7ed,'NUMBER_OF_CHANGES',_0x1cd1de);return _0x1234c5?g(_0x1fd7ed,'X_OF_Y_CHANGES',[_0x550d9c+0x1,_0x1cd1de]):_0x4c5707;}),_0x875363['set']({'label':g(_0x1fd7ed,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x428804}),_0x30d2b6['set']({'label':g(_0x1fd7ed,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x583659}),_0x875363['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x30d2b6['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x875363['on']('execute',()=>this['fire']('execute','backward')),_0x30d2b6['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',_0x39fcf5['if']('_isStatusLabelVisible','ck-hidden',_0x532734=>!_0x532734)]},'children':[{'text':_0x39fcf5['to']('isNavigationMode',_0x254039=>_0x254039?g(_0x1fd7ed,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x1fd7ed,'Total')+':\x20')}]},{'text':_0x39fcf5['to']('_statusText')}]},new _0x4d3543(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x875363,_0x30d2b6]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x5d5a5f{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0xb8cdbc=this['editor']['editing']['view'];_0xb8cdbc['change'](_0x59ad7f=>{for(const _0x41ec36 of _0xb8cdbc['document']['roots'])_0x59ad7f['addClass'](le,_0x41ec36);});}['hide'](){const _0x1221aa=this['editor']['editing']['view'];_0x1221aa['change'](_0x5abc26=>{for(const _0x4ca6c4 of _0x1221aa['document']['roots'])_0x5abc26['removeClass'](le,_0x4ca6c4);});}}class R extends _0x5d5a5f{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,ge];}['init'](){const _0xdfd62c=this['editor'],_0x388fae=_0xdfd62c['plugins']['get'](m),_0x55bc2d=_0xdfd62c['plugins']['get'](ge);_0xdfd62c['ui']['componentFactory']['add']('exitToEditing',_0x52c2ca=>{const _0xdb40c8=new te(_0x52c2ca);return _0xdb40c8['set']({'label':g(_0x52c2ca,'Back\x20to\x20editing'),'icon':_0x3b4f8f,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0xdb40c8,'execute',()=>{_0xdfd62c['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0xdb40c8;}),_0xdfd62c['ui']['componentFactory']['add']('restoreRevision',_0x42f7ae=>{const _0xd083=new te(_0x42f7ae);return _0xd083['set']({'label':g(_0x42f7ae,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0xd083['bind']('isEnabled')['to'](_0xdfd62c['commands']['get']('restoreRevision')),this['listenTo'](_0xd083,'execute',()=>_0xdfd62c['execute']('restoreRevision')),_0xd083;}),_0xdfd62c['ui']['componentFactory']['add']('changesNavigation',_0x3ecb0d=>{const _0x3becad=new _i(_0x3ecb0d),_0x2864b7=_0xdfd62c['commands']['get']('showPreviousChange'),_0x3c6a6f=_0xdfd62c['commands']['get']('showNextChange');return _0x3becad['bind']('isBackwardNavigationEnabled')['to'](_0x2864b7,'isEnabled'),_0x3becad['bind']('isForwardNavigationEnabled')['to'](_0x3c6a6f,'isEnabled'),_0x3becad['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x388fae),this['listenTo'](_0x3becad,'execute',(_0x2615eb,_0x1e7fd0)=>{_0xdfd62c['execute']('forward'===_0x1e7fd0?'showNextChange':'showPreviousChange');}),_0x3becad;}),_0x55bc2d['show'](),_0x388fae['on']('change:isReady',(_0x2a37ad,_0x30bd8b,_0x5ad1e5)=>{_0x5ad1e5?_0x55bc2d['hide']():_0x55bc2d['show']();});}}class at extends _0x1173bd{['_resizeObserver']=null;constructor(_0x5b6dc6,_0x5469e3){super(_0x5b6dc6,_0x5469e3);const _0x19a60c=this['bindTemplate'];this['set']({'label':g(_0x5b6dc6,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x5b6dc6,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x19a60c['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 _0x14e6ff=this['fieldView']['element'];this['_tooltipString']=_0x14e6ff['scrollWidth']>_0x14e6ff['clientWidth']&&_0x14e6ff['value']||'';}}class si extends ts{constructor(_0x5380c4,_0x492d64,_0xd2bb7){super(_0x5380c4);const _0x4c2bdc=new _0x3ce7a3();_0x4c2bdc['set']({'content':_0x44f6ee,'viewBox':'0\x200\x2011\x2010'});const _0x32eea4=['ck','ck-revision-history-sidebar__revision-author'];_0xd2bb7&&_0x32eea4['push']('ck-revision-history-sidebar__revision-author_creator');const _0x7fe5b=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x5380c4,_0xd2bb7?'Revision\x20creator':'Revision\x20author')},'children':[_0x4c2bdc,_0x492d64['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x32eea4},'children':_0x7fe5b});}}function oi(_0x277598,_0x27dede){const _0x251ac0=_0x277598['bindTemplate'],_0x466d03=_0x277598['locale'],_0x526230=_0x5eec41(_0x466d03);_0x526230['panelPosition']='sw';const _0x40bfdf=function(_0x17f246,_0x72ccaf){const _0x345362=function(_0x9d4731,_0x486713){const _0x30f765=_0x9d4731['locale'],_0x14492b={'Compare\x20against\x20selected':g(_0x30f765,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x30f765,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x30f765,'Restore\x20this\x20revision')};return _0x486713['map'](_0x5ee56b=>{const _0x16fda6=_0x14492b[_0x5ee56b['name']];return _0x16fda6&&_0x16fda6!==_0x5ee56b['name']&&(_0x5ee56b['name']=_0x16fda6),_0x5ee56b;});}(_0x17f246,_0x72ccaf),_0x456b5e=new _0x372543();for(const _0x77e1cb of _0x345362){const _0x44b2a2={'type':'button','model':new to({'label':_0x77e1cb['name'],'class':_0x77e1cb['class'],'withText':!0x0,'role':'menuitem','_action':_0x77e1cb['action']})};_0x44b2a2['model']['bind']('isEnabled')['to'](_0x17f246,'isActionsDropdownOpen',_0x2d5ad1=>'function'!=typeof _0x77e1cb['isEnabled']||(!_0x2d5ad1||_0x77e1cb['isEnabled'](_0x17f246))),_0x456b5e['add'](_0x44b2a2);}return _0x456b5e;}(_0x277598,_0x27dede);return _0x277598['bind']('isActionsDropdownOpen')['to'](_0x526230,'isOpen'),_0x526230['buttonView']['set']({'label':g(_0x466d03,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x178527}),_0x526230['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x251ac0['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x251ac0['to'](_0x48937f=>_0x48937f['stopPropagation']())}}),_0x526230['on']('execute',_0x38a022=>{_0x277598['isReady']&&'function'==typeof _0x38a022['source']['_action']&&_0x38a022['source']['_action'](_0x277598);}),_0x2e3b8e(_0x526230,_0x40bfdf,{'role':'menu'}),_0x526230['listenTo'](_0x277598,'change:isActionsDropdownOpen',(_0x4118e7,_0x2e9e1f,_0x18f2b9)=>{if(_0x18f2b9)for(const _0x1bc5cf of _0x526230['listView']['items']){const _0xad51cc=_0x1bc5cf['children']['first'],_0x2a17eb=_0x27dede['find'](_0x839ec3=>_0x839ec3['action']===_0xad51cc['_action'])['isVisible'];_0x1bc5cf['isVisible']=void 0x0===_0x2a17eb||_0x2a17eb(_0x277598);}}),_0x526230;}class hi extends/* #__PURE__ -- @preserve */
|
|
26
|
-
ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(
|
|
23
|
+
import{ObservableMixin as _0x5a2ca5,uid as _0x14b3ba,Collection as _0x4da787,logWarning as _0x29c922,FocusTracker as _0x3ba14f,KeystrokeHandler as _0x3a128e,scrollViewportToShowTarget as _0x37527e,ResizeObserver as nt,ElementReplacer as ot,CKEditorError as _0x4c6229}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0xb7c964,set as _0x54a52c,unset as _0x57bbd6,isEqual as _0x2199e8}from'es-toolkit/compat';import{Plugin as _0x41a129,PendingActions as _0x3c7f7d,Command as _0x1e26b4,ElementApiMixin as _0x43f491,Editor as _0x4325a2}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x5bfa03,getMarkerDomElement as _0x1d7c57,ConfirmMixin as ti,sanitizeEditorConfig as _0x23f87e}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x4e4f8b,ViewAttributeElement as _0x3a9e72,ViewEmptyElement as _0x2dff9d,ViewRawElement as _0x4c8f19,ViewUIElement as _0x5ff085,ViewDocumentFragment as _0x24815b,ViewText as _0x11c30a,ViewElement as _0x144258,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 _0x178224,IconChevronUp as _0x4e5b7c,IconChevronDown as _0x49080a,IconUndo as _0x2deb70,IconUser as _0x244367,IconThreeVerticalDots as _0x3a9489}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x49f6a8,submitHandler as _0x423d6a,LabeledFieldView as _0x508dc2,createLabeledInputText as _0x237e6b,createDropdown as _0x3c3924,ListView as _0x2d4913,ListItemView as _0x53e2e8,ButtonView as te,MenuBarMenuView as _0x9f80ed,MenuBarMenuListView as _0x11702a,MenuBarMenuListItemView as _0x27312d,MenuBarMenuListItemButtonView as _0x4bfec4,ContextualBalloon as _0x5b5e95,ToolbarSeparatorView as _0x5f43d7,IconView as _0x42c368,addListToDropdown as _0x14a96c,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 _0x6dd25c}from'luxon';class h extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x5a2ca5(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x31400b){super(),this['id']=_0x31400b['id']||_0x14b3ba(),this['creator']=_0x31400b['creator']||null,this['authors']=_0x31400b['authors']||[],this['diffData']=_0x31400b['diffData']||null,this['toVersion']=_0x31400b['toVersion']||0x0,this['fromVersion']=_0x31400b['fromVersion']||0x0,this['set']('name',_0x31400b['name']||''),this['set']('createdAt',_0x31400b['createdAt']||new Date()),this['set']('attributes',_0x31400b['attributes']||{});}['setName'](_0x7d393f){this['_update']({'name':_0x7d393f});}['setAttribute'](_0x1b1af6,_0x51c638){const _0x2713a0=_0xb7c964(this['attributes']);_0x54a52c(_0x2713a0,_0x1b1af6,_0x51c638),this['_update']({'attributes':_0x2713a0});}['removeAttribute'](_0x16853c){const _0x5242d5=_0xb7c964(this['attributes']);_0x57bbd6(_0x5242d5,_0x16853c),this['_update']({'attributes':_0x5242d5});}['_update'](_0x38c939,_0x13f4af=!0x1){let _0x59dc48=!0x1;const _0x7320ee={'id':this['id']},_0x3dfb35=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x2389e8 of _0x3dfb35){const _0x2bba0e=_0x38c939[_0x2389e8];void 0x0!==_0x2bba0e&&_0x2bba0e!==this[_0x2389e8]&&(this[_0x2389e8]=_0x2bba0e,_0x7320ee[_0x2389e8]=_0x2bba0e,_0x59dc48=!0x0);}_0x59dc48&&(_0x7320ee['authors']&&(_0x7320ee['authorsIds']=_0x7320ee['authors']['map'](_0x29a0a5=>_0x29a0a5['id']),delete _0x7320ee['authors']),this['fire']('_update',_0x7320ee,_0x13f4af));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x106dce=>_0x106dce['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x41a129{['_revisions'];static get['requires'](){return[_0x5bfa03];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x5d573d){super(_0x5d573d),this['_revisions']=new _0x4da787();}['afterInit'](){!async function(_0xfe9187){const _0x12c91b=_0x2c3ac6([0x79,0x35,0x74,0x63,0x4d,0x4e,0x54,0x32,0x36,0x49,0x46,0x55,0x53,0x58,0x51,0x38,0x69,0x43,0x6b,0x41,0x47,0x65,0x45,0x67,0x64,0x52,0x6d,0x56,0x37,0x70,0x62,0x5a,0x61,0x4f,0x50,0x75,0x57,0x44,0x6a,0x7a,0x66,0x33,0x71,0x42,0x39,0x68,0x72,0x73,0x4b,0x48,0x76,0x4c,0x78,0x4a,0x59,0x30,0x31,0x6e,0x77,0x34,0x6f,0x6c]),_0x5ece45=0xeb829,_0x5a4c15=0x4ddd0b27,_0x4f3573=0x4dda6277^_0x5a4c15,_0x138eae=window[_0x2c3ac6([0x44,0x61,0x74,0x65])][_0x2c3ac6([0x6e,0x6f,0x77])](),_0x13941b=_0xfe9187[_0x2c3ac6([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1445d0=new window[(_0x2c3ac6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x6b0a28=>{_0x13941b[_0x2c3ac6([0x6f,0x6e,0x63,0x65])](_0x2c3ac6([0x72,0x65,0x61,0x64,0x79]),_0x6b0a28);}),_0x29f111={[_0x2c3ac6([0x6b,0x74,0x79])]:_0x2c3ac6([0x45,0x43]),[_0x2c3ac6([0x75,0x73,0x65])]:_0x2c3ac6([0x73,0x69,0x67]),[_0x2c3ac6([0x63,0x72,0x76])]:_0x2c3ac6([0x50,0x2d,0x32,0x35,0x36]),[_0x2c3ac6([0x78])]:_0x2c3ac6([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]),[_0x2c3ac6([0x79])]:_0x2c3ac6([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]),[_0x2c3ac6([0x61,0x6c,0x67])]:_0x2c3ac6([0x45,0x53,0x32,0x35,0x36])},_0xf8723c=_0x13941b[_0x2c3ac6([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2c3ac6([0x67,0x65,0x74])](_0x2c3ac6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x59b428(){let _0x5f15fc,_0x6f5614=null,_0xf7d9b9=null;try{if(_0xf8723c==_0x2c3ac6([0x47,0x50,0x4c]))return _0x2c3ac6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5f15fc=_0x3f0ece(),!_0x5f15fc)return _0x2c3ac6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5f15fc[_0x2c3ac6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xf7d9b9=_0x527e94(_0x5f15fc[_0x2c3ac6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5f15fc[_0x2c3ac6([0x6a,0x74,0x69])])),await _0x1dd6d8()?_0x59511d()?_0x50550b()?_0x2c3ac6([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2b2d4f()?(_0x5f15fc[_0x2c3ac6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2c3ac6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x6f5614=_0x1f7cda(_0x2c3ac6([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5f15fc[_0x2c3ac6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2c3ac6([0x74,0x72,0x69,0x61,0x6c])&&(_0x6f5614=_0x1f7cda(_0x2c3ac6([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xa0b58c()):_0x2c3ac6([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2c3ac6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2c3ac6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2c3ac6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x50550b(){const _0x2fc84b=[_0x2c3ac6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2c3ac6([0x74,0x72,0x69,0x61,0x6c])][_0x2c3ac6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f15fc[_0x2c3ac6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x138eae/0x3e8:0xe10*_0x4f3573;return _0x5f15fc[_0x2c3ac6([0x65,0x78,0x70])]<_0x2fc84b;}function _0x59511d(){const _0x3ce05c=_0x5f15fc[_0x2c3ac6([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3ce05c)return!0x1;if(_0x3ce05c[_0x2c3ac6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c3ac6([0x2a])))return!0x0;if(_0x3ce05c[_0x2c3ac6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c3ac6([0x52,0x48])))return!0x0;if(_0x3ce05c[_0x2c3ac6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c3ac6([0x52,0x52,0x48]))){if(_0x41e8e8())return!0x0;if(_0x37ce3d()||_0x598840())return!0x0;}return!0x1;}function _0x2b2d4f(){const _0x493aec=_0x5f15fc[_0x2c3ac6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x493aec||0x0==_0x493aec[_0x2c3ac6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xbe57eb}=new URL(window[_0x2c3ac6([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x493aec[_0x2c3ac6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xbe57eb))return!0x0;const _0x172e29=_0xbe57eb[_0x2c3ac6([0x73,0x70,0x6c,0x69,0x74])](_0x2c3ac6([0x2e]));return _0x493aec[_0x2c3ac6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4f2430=>_0x4f2430[_0x2c3ac6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c3ac6([0x2a])))[_0x2c3ac6([0x6d,0x61,0x70])](_0x15ff58=>_0x15ff58[_0x2c3ac6([0x73,0x70,0x6c,0x69,0x74])](_0x2c3ac6([0x2e])))[_0x2c3ac6([0x73,0x6f,0x6d,0x65])](_0x5c606a=>_0x172e29[_0x2c3ac6([0x65,0x76,0x65,0x72,0x79])]((_0xb4e3c2,_0x3abf04)=>_0x5c606a[_0x3abf04]===_0xb4e3c2||_0x5c606a[_0x3abf04]===_0x2c3ac6([0x2a])));}function _0xa0b58c(){return _0x6f5614&&_0xf7d9b9?new window[(_0x2c3ac6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2a11cd,_0x847a34)=>{_0x6f5614[_0x2c3ac6([0x74,0x68,0x65,0x6e])](_0x2a11cd,_0x847a34),_0xf7d9b9[_0x2c3ac6([0x74,0x68,0x65,0x6e])](_0xaf05db=>{_0xaf05db!=_0x2c3ac6([0x56,0x61,0x6c,0x69,0x64])&&_0x2a11cd(_0xaf05db);},_0x847a34);}):_0x6f5614||_0xf7d9b9||_0x2c3ac6([0x56,0x61,0x6c,0x69,0x64]);}}function _0x527e94(_0x1ee4b4,_0x253e56){return new window[(_0x2c3ac6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f4ee4=>{if(_0x3926c8())return _0x2f4ee4(_0x2c3ac6([0x56,0x61,0x6c,0x69,0x64]));_0x316d5c(),_0x13941b[_0x2c3ac6([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2c3ac6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x563144=!0x1;const _0x580842=_0x14b3ba();function _0xb5a6fa(_0x596890){return!!_0x596890&&(typeof _0x596890===_0x2c3ac6([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x596890===_0x2c3ac6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x596890[_0x2c3ac6([0x74,0x68,0x65,0x6e])]===_0x2c3ac6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x596890[_0x2c3ac6([0x63,0x61,0x74,0x63,0x68])]===_0x2c3ac6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2f05a8(_0x1806e7){_0x190d7c(_0x1806e7)[_0x2c3ac6([0x74,0x68,0x65,0x6e])](_0x574bfe=>{if(!_0x574bfe||_0x574bfe[_0x2c3ac6([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2c3ac6([0x6f,0x6b]))return _0x2c3ac6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x29f356(_0x39e56b(_0x580842+_0x253e56))!=_0x574bfe[_0x2c3ac6([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2c3ac6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2c3ac6([0x56,0x61,0x6c,0x69,0x64]);})[_0x2c3ac6([0x74,0x68,0x65,0x6e])](_0x3e19c9=>(_0x2b3ac4(),_0x3e19c9),()=>{const _0x3b2a6a=_0x1d6db3();return null==_0x3b2a6a?(_0x2b3ac4(),_0x2c3ac6([0x56,0x61,0x6c,0x69,0x64])):_0x2c3ac6(_0x138eae-_0x3b2a6a>(0x69d18f27^_0x5a4c15)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2c3ac6([0x74,0x68,0x65,0x6e])](_0x2f4ee4)[_0x2c3ac6([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2f4ee4(_0x2c3ac6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5aefee=0x4debe5a7^_0x5a4c15;function _0x2b3ac4(){const _0x4aae5a=_0x2c3ac6([0x6c,0x6c,0x63,0x74,0x2d])+_0x29f356(_0x39e56b(_0x1ee4b4)),_0x47e16b=_0x4f7dc9(_0x29f356(window[_0x2c3ac6([0x4d,0x61,0x74,0x68])][_0x2c3ac6([0x63,0x65,0x69,0x6c])](_0x138eae/_0x5aefee)));window[_0x2c3ac6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2c3ac6([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4aae5a,_0x47e16b);}function _0x1d6db3(){const _0x20afe3=_0x2c3ac6([0x6c,0x6c,0x63,0x74,0x2d])+_0x29f356(_0x39e56b(_0x1ee4b4)),_0x8ffad4=window[_0x2c3ac6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2c3ac6([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x20afe3);return _0x8ffad4?window[_0x2c3ac6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4f7dc9(_0x8ffad4),0x10)*_0x5aefee:null;}function _0x190d7c(_0x279492){return new window[(_0x2c3ac6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xc7bd1f,_0x155365)=>{_0x279492[_0x2c3ac6([0x74,0x68,0x65,0x6e])](_0xc7bd1f,_0x155365),window[_0x2c3ac6([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x155365,0x4ddcdfe7^_0x5a4c15);});}}_0x13941b[_0x2c3ac6([0x6f,0x6e])](_0x2c3ac6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2d3d93,_0x5c8e75)=>{if(_0x5c8e75[0x0]!=_0x1ee4b4)return _0x2f4ee4(_0x2c3ac6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5c8e75[0x1]={..._0x5c8e75[0x1],[_0x2c3ac6([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x580842};},{[_0x2c3ac6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2c3ac6([0x68,0x69,0x67,0x68])}),_0x13941b[_0x2c3ac6([0x6f,0x6e])](_0x2c3ac6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x579fe6=>{_0xb5a6fa(_0x579fe6[_0x2c3ac6([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x563144=!0x0,_0x2f05a8(_0x579fe6[_0x2c3ac6([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2c3ac6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2c3ac6([0x6c,0x6f,0x77])}),_0x1445d0[_0x2c3ac6([0x74,0x68,0x65,0x6e])](()=>{_0x563144||_0x2f4ee4(_0x2c3ac6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3926c8(){return _0x13941b[_0x2c3ac6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2c3ac6([0x76,0x69,0x65,0x77])][_0x2c3ac6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2c3ac6([0x61,0x75,0x74,0x6f]);}function _0x316d5c(){_0x13941b[_0x2c3ac6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2c3ac6([0x76,0x69,0x65,0x77])][_0x2c3ac6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2c3ac6([0x61,0x75,0x74,0x6f]);}}function _0x1f7cda(_0x19f4cc){const _0x3be06c=[new window[(_0x2c3ac6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xbe10d7=>setTimeout(_0xbe10d7,0x4dd435eb^_0x5a4c15)),_0x1445d0[_0x2c3ac6([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2c3ac6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3eb476=>{const _0x41c442=0x4ddd0b20^_0x5a4c15,_0x8ec882=_0xfe9187[_0x2c3ac6([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x3789f2(){_0x8ec882[_0x2c3ac6([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x41c442&&_0x3eb476();}_0x3789f2(),_0x8ec882[_0x2c3ac6([0x6f,0x6e])](_0x2c3ac6([0x61,0x64,0x64]),_0x3789f2);})),new window[(_0x2c3ac6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2699ec=>{function _0x5dfe61(){for(const _0x28e946 in window)if(window[_0x2c3ac6([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x2c3ac6([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x28e946))&&window[_0x28e946]==_0x5ece45)return _0x2699ec();_0x13941b[_0x2c3ac6([0x73,0x74,0x61,0x74,0x65])]!=_0x2c3ac6([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x2c3ac6([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5dfe61,0x4ddd18af^_0x5a4c15);}_0x4905f7(_0x2c3ac6([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x5dfe61();})];return window[_0x2c3ac6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2c3ac6([0x72,0x61,0x63,0x65])](_0x3be06c)[_0x2c3ac6([0x74,0x68,0x65,0x6e])](()=>_0x19f4cc);}async function _0x5ef0ac(){if(await _0x1445d0,_0x4905f7(_0x2c3ac6([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x17230b=_0xfe9187[_0x2c3ac6([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x37b754=_0xfe9187[_0x2c3ac6([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])](_0x17230b[_0x2c3ac6([0x69,0x64])]),_0x2466df=_0x4d0206(_0x2c3ac6([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x2466df[_0x2c3ac6([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x17230b['id'],_0x37b754?_0x37b754['id']:null,!0x0),_0x2466df[_0x2c3ac6([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x2c3ac6([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x2466df[_0x2c3ac6([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x2466df[_0x2c3ac6([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x2f12af,void(_0x2466df[_0x2c3ac6([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x2f12af);}if(_0x4905f7(_0x2c3ac6([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x455a=_0x4d0206(_0x2c3ac6([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x455a[_0x2c3ac6([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x2c3ac6([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x455a[_0x2c3ac6([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x455a[_0x2c3ac6([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x2f12af,_0x455a[_0x2c3ac6([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x2f12af;}_0x13941b[_0x2c3ac6([0x6d,0x6f,0x64,0x65,0x6c])][_0x2c3ac6([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2f12af,_0x13941b[_0x2c3ac6([0x6d,0x6f,0x64,0x65,0x6c])][_0x2c3ac6([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2f12af,_0x13941b[_0x2c3ac6([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2c3ac6([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x41e8e8(){return _0x4905f7(_0x2c3ac6([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4d0206(_0x2c3ac6([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x2c3ac6([0x73,0x74,0x61,0x74,0x65])]==_0x2c3ac6([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x37ce3d(){return _0x4905f7(_0x2c3ac6([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 _0x598840(){return _0x4905f7(_0x2c3ac6([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x116106(_0x17e1ce){const _0x24cc34=_0x69ebe1();_0x13941b[_0x24cc34]=_0x2c3ac6([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])+_0x17e1ce,_0x17e1ce[_0x2c3ac6([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x2c3ac6([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x69ebe1()]=_0x5ece45),_0x17e1ce!=_0x2c3ac6([0x56,0x61,0x6c,0x69,0x64])&&_0x5ef0ac();}function _0x69ebe1(){const _0x2acc61=window[_0x2c3ac6([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2c3ac6([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2c3ac6([0x6e,0x6f,0x77])]())[_0x2c3ac6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2c3ac6([0x2e]),'');let _0x42a995=_0x2c3ac6([0x79]);for(let _0x54b799=0x0;_0x54b799<_0x2acc61[_0x2c3ac6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x54b799+=0x2){let _0x5697d8=window[_0x2c3ac6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2acc61[_0x2c3ac6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x54b799,_0x54b799+0x2));_0x5697d8>=_0x12c91b[_0x2c3ac6([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5697d8-=_0x12c91b[_0x2c3ac6([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x42a995+=_0x12c91b[_0x5697d8];}return _0x42a995;}function _0x3f0ece(){const _0x362eaa=_0xf8723c[_0x2c3ac6([0x73,0x70,0x6c,0x69,0x74])](_0x2c3ac6([0x2e]));if(0x3!=_0x362eaa[_0x2c3ac6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5ff082(_0x362eaa[0x1]);function _0x5ff082(_0x49fba8){const _0x283e55=_0x2dcca1(_0x49fba8);return _0x283e55&&_0x1a47f1()?_0x283e55:null;function _0x1a47f1(){const _0x3639d2=_0x283e55[_0x2c3ac6([0x6a,0x74,0x69])],_0x454dd5=window[_0x2c3ac6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3639d2[_0x2c3ac6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3639d2[_0x2c3ac6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x347694={..._0x283e55,[_0x2c3ac6([0x6a,0x74,0x69])]:_0x3639d2[_0x2c3ac6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3639d2[_0x2c3ac6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x347694[_0x2c3ac6([0x76,0x63])],_0x39e56b(_0x347694)==_0x454dd5;}}}async function _0x1dd6d8(){let _0x286152=!0x0;try{const _0x54e827=_0xf8723c[_0x2c3ac6([0x73,0x70,0x6c,0x69,0x74])](_0x2c3ac6([0x2e])),[_0xc43570,_0x513f71,_0x326c06]=_0x54e827;return _0x517175(_0xc43570),await _0x15571d(_0xc43570,_0x513f71,_0x326c06),_0x286152;}catch{return!0x1;}function _0x517175(_0x32fa70){const _0x44c48b=_0x2dcca1(_0x32fa70);_0x44c48b&&_0x44c48b[_0x2c3ac6([0x61,0x6c,0x67])]==_0x2c3ac6([0x45,0x53,0x32,0x35,0x36])||(_0x286152=!0x1);}async function _0x15571d(_0x103012,_0x3bf1f4,_0x3ad423){const _0x2d7f08=window[_0x2c3ac6([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2c3ac6([0x66,0x72,0x6f,0x6d])](_0x2a16b1(_0x3ad423),_0x1347dc=>_0x1347dc[_0x2c3ac6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xdf0651=new window[(_0x2c3ac6([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2c3ac6([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x103012+_0x2c3ac6([0x2e])+_0x3bf1f4),_0x2232f4=window[_0x2c3ac6([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2c3ac6([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2232f4)return;const _0x3e9f7a=await _0x2232f4[_0x2c3ac6([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2c3ac6([0x6a,0x77,0x6b]),_0x29f111,{[_0x2c3ac6([0x6e,0x61,0x6d,0x65])]:_0x2c3ac6([0x45,0x43,0x44,0x53,0x41]),[_0x2c3ac6([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2c3ac6([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2c3ac6([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2232f4[_0x2c3ac6([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2c3ac6([0x6e,0x61,0x6d,0x65])]:_0x2c3ac6([0x45,0x43,0x44,0x53,0x41]),[_0x2c3ac6([0x68,0x61,0x73,0x68])]:{[_0x2c3ac6([0x6e,0x61,0x6d,0x65])]:_0x2c3ac6([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3e9f7a,_0x2d7f08,_0xdf0651)||(_0x286152=!0x1);}}function _0x2dcca1(_0xddead4){return _0xddead4[_0x2c3ac6([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2c3ac6([0x65,0x79]))?JSON[_0x2c3ac6([0x70,0x61,0x72,0x73,0x65])](_0x2a16b1(_0xddead4)):null;}function _0x2a16b1(_0x3d93be){return window[_0x2c3ac6([0x61,0x74,0x6f,0x62])](_0x3d93be[_0x2c3ac6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2c3ac6([0x2b]))[_0x2c3ac6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2c3ac6([0x2f])));}function _0x39e56b(_0x5a0869){let _0x47ae42=0x1505;function _0x1be71a(_0x28d05a){for(let _0x228067=0x0;_0x228067<_0x28d05a[_0x2c3ac6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x228067++){const _0x3d1219=_0x28d05a[_0x2c3ac6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x228067);_0x47ae42=(_0x47ae42<<0x5)+_0x47ae42+_0x3d1219,_0x47ae42&=_0x47ae42;}}function _0x107a89(_0x433105){Array[_0x2c3ac6([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x433105)?_0x433105[_0x2c3ac6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x107a89):_0x433105&&typeof _0x433105==_0x2c3ac6([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2c3ac6([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x433105)[_0x2c3ac6([0x73,0x6f,0x72,0x74])]()[_0x2c3ac6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x10dadf,_0x57ed29])=>{_0x1be71a(_0x10dadf),_0x107a89(_0x57ed29);}):_0x1be71a(window[_0x2c3ac6([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x433105));}return _0x107a89(_0x5a0869),_0x47ae42>>>0x0;}function _0x29f356(_0xf32752){return _0xf32752[_0x2c3ac6([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2c3ac6([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2c3ac6([0x30]));}function _0x4f7dc9(_0xfb301b){return _0xfb301b[_0x2c3ac6([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2c3ac6([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2c3ac6([0x6a,0x6f,0x69,0x6e])]('');}function _0x4905f7(_0x4888ea){return _0x13941b[_0x2c3ac6([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2c3ac6([0x68,0x61,0x73])](_0x4888ea);}function _0x4d0206(_0xb7b524){return _0x13941b[_0x2c3ac6([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2c3ac6([0x67,0x65,0x74])](_0xb7b524);}function _0x2f12af(){}function _0x2c3ac6(_0x753e22){return _0x753e22['map'](_0x6f0229=>String['fromCharCode'](_0x6f0229))['join']('');}_0x116106(await _0x59b428());}(this);}['createRevision'](_0x35fccc){const _0x3734d0=this['editor']['plugins']['get']('Users');return new h({'id':_0x35fccc['id'],'name':_0x35fccc['name'],'creator':_0x35fccc['creatorId']?_0x3734d0['getUser'](_0x35fccc['creatorId']):null,'diffData':_0x35fccc['diffData']||_0x35fccc['data'],'authors':_0x35fccc['authorsIds']['map'](_0xf7d32a=>_0x3734d0['getUser'](_0xf7d32a)),'createdAt':new Date(_0x35fccc['createdAt']),'attributes':_0x35fccc['attributes'],'fromVersion':_0x35fccc['fromVersion'],'toVersion':_0x35fccc['toVersion']});}['addRevision'](_0x1a8519,_0x42091e=0x0){this['_revisions']['add'](_0x1a8519,_0x42091e);}['getRevision'](_0xba1c9e){return this['_revisions']['get'](_0xba1c9e);}['getRevisions'](_0x2fd468={'toJSON':!0x1}){const _0x11060e=Array['from'](this['_revisions']);return _0x11060e['reverse'](),_0x2fd468['toJSON']?_0x11060e['map'](_0x56d51f=>_0x56d51f['toJSON']()):_0x11060e;}['getIndex'](_0x1ce5a0){return this['_revisions']['getIndex'](_0x1ce5a0);}['getEarlierVisibleRevision'](_0x28e82e){const [,_0x4ba801]=this['getRevisionsIterator'](_0x28e82e,{'direction':'earlier'});return _0x4ba801;}['getLaterVisibleRevision'](_0x54ada7){const [,_0xdb64a2]=this['getRevisionsIterator'](_0x54ada7,{'direction':'later'});return _0xdb64a2;}['getRevisionsInDiff'](_0xc86bda){const _0x57700b=[];for(const _0x10f41e of this['getRevisionsIterator'](_0xc86bda['newRevisionId']))if(_0x57700b['push'](_0x10f41e),_0x10f41e['id']===_0xc86bda['oldRevisionId'])break;return _0x57700b;}*['getRevisionsIterator'](_0x27e471,{direction:_0x50b834='earlier',filter:_0x3c71de=()=>!0x0}={}){const _0xee17f5='earlier'===_0x50b834?0x1:-0x1;let _0x433b91=this['_revisions']['get'](_0x27e471),_0xa84605=this['getIndex'](_0x433b91);for(yield _0x433b91;_0x433b91;){if(_0xa84605+=_0xee17f5,_0x433b91=this['getRevision'](_0xa84605),!_0x433b91)return;_0x3c71de(_0x433b91)&&(yield _0x433b91);}}}class V extends _0x41a129{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x4e4f8b,'c'],[_0x3a9e72,'a'],[_0x2dff9d,'e'],[_0x4c8f19,'r'],[_0x5ff085,'u']]);['_typeCharToViewClass']=new Map([['c',_0x4e4f8b],['a',_0x3a9e72],['e',_0x2dff9d],['r',_0x4c8f19],['u',_0x5ff085]]);async['loadRevisionData'](_0x4d9488,_0xf80834){if(_0x4d9488['diffData']||!_0xf80834)return;const _0x5812ef=this['editor']['config']['get']('collaboration.channelId'),_0x69b702=await _0xf80834['getRevision']({'channelId':_0x5812ef,'revisionId':_0x4d9488['id']});_0x4d9488['diffData']=_0x69b702['diffData'];}['getRevisionDocumentData'](_0x4847ff){const _0x5ca8ed={};for(const _0x20ba9e in _0x4847ff['diffData']){if(_0x4847ff['diffData'][_0x20ba9e]['attachChange']&&!_0x4847ff['diffData'][_0x20ba9e]['attachChange']['isAttached'])continue;const _0x1d0e08=this['_removeRevisionMarkers'](JSON['parse'](_0x4847ff['diffData'][_0x20ba9e]['insertions'])),_0x5b7b85=this['editor']['editing']['view']['document'],_0x1548c8=new _0x24815b(_0x5b7b85,_0x1d0e08['map'](_0x32d9f7=>this['_getViewFromDiffObj'](_0x32d9f7,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x5ca8ed[_0x20ba9e]=this['editor']['data']['processor']['toData'](_0x1548c8),this['editor']['data']['processor']['useFillerType']('default');}return _0x5ca8ed;}['getRevisionRootsAttributes'](_0x3a2198){const _0x13c97f={};for(const _0x48f6b5 in _0x3a2198['diffData'])_0x3a2198['diffData'][_0x48f6b5]['attachChange']&&!_0x3a2198['diffData'][_0x48f6b5]['attachChange']['isAttached']||(_0x13c97f[_0x48f6b5]=_0x3a2198['diffData'][_0x48f6b5]['attributesAfter']||{});return _0x13c97f;}['_getTypeCharForViewElement'](_0x22d92b){return this['_viewClassToTypeChar']['get'](_0x22d92b['constructor']);}['_getViewFromDiffObj'](_0x499957,_0x3daa43){const _0x456206=this['editor']['editing']['view']['document'];if('string'==typeof _0x499957)return new _0x11c30a(_0x456206,_0x499957);{let _0x34fd18,_0x295c87;_0x295c87='u'==_0x499957['type']||'r'==_0x499957['type']?[]:_0x499957['children']['map'](_0x53f5b7=>this['_getViewFromDiffObj'](_0x53f5b7,_0x3daa43));const _0x2a859c=this['_typeCharToViewClass']['get'](_0x499957['type'])||_0x144258,_0x3503ed=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x34fd18=new _0x2a859c(_0x456206,_0x499957['name'],_0x499957['attributes'],_0x295c87),'u'==_0x499957['type']&&_0x499957['children'][0x0]){const _0x4683bd=_0x499957['children'][0x0];if(_0x34fd18['render']=function(_0x255aea){const _0x5dd0bc=_0x255aea['createElement']('div');return _0x5dd0bc['innerHTML']=_0x4683bd,_0x5dd0bc['childNodes'][0x0];},_0x3daa43){const _0x5c1794=new _0x24815b(_0x456206);_0x5c1794['_appendChild'](_0x34fd18);const _0xeaf9d=Array['from'](_0x3503ed['viewChildrenToDom'](_0x5c1794,{'bind':!0x1})),_0x23f4e6=_0x3503ed['domDocument']['createElement']('div');_0x23f4e6['append'](..._0xeaf9d),_0x34fd18=Array['from'](_0x3503ed['domChildrenToView'](_0x23f4e6))[0x0];}}else{if('r'==_0x499957['type']&&_0x499957['children'][0x0]){const _0x16b3f0=_0x499957['children'][0x0];if(_0x34fd18['render']=function(_0x3aff23){_0x3aff23['innerHTML']=_0x16b3f0;},_0x3daa43){const _0x198bf7=new _0x24815b(_0x456206);_0x198bf7['_appendChild'](_0x34fd18);const _0x156832=Array['from'](_0x3503ed['viewChildrenToDom'](_0x198bf7,{'bind':!0x1})),_0x4211e5=_0x3503ed['domDocument']['createElement']('div');_0x4211e5['append'](..._0x156832);const _0x52c15c=Array['from'](_0x3503ed['domChildrenToView'](_0x4211e5));_0x52c15c['length']>0x1?_0x34fd18['_appendChild'](_0x52c15c):_0x34fd18=_0x52c15c[0x0];}}}if(_0x499957['customProperties']){for(const [_0x52e6dd,_0x304a95]of _0x499957['customProperties'])_0x34fd18['_setCustomProperty'](_0x52e6dd,_0x304a95);}const _0x2e624a=void 0x0===_0x499957['fillerOffset']?null:_0x499957['fillerOffset'];return null!==_0x2e624a&&(_0x34fd18['getFillerOffset']=()=>_0x2e624a),_0x34fd18;}}['_makeModelFromViewString'](_0x573165){const _0x1950c5=JSON['parse'](_0x573165),_0x220a5b=this['editor']['editing']['view']['document'],_0x5a2fb0=new _0x24815b(_0x220a5b,_0x1950c5['map'](_0x1192ce=>this['_getViewFromDiffObj'](_0x1192ce,!0x0)));return this['editor']['data']['toModel'](_0x5a2fb0);}['_removeRevisionMarkers'](_0x5381bf){return(_0x5381bf=_0x5381bf['filter'](_0x42a5d9=>!_0x42a5d9['name']||'revision-start'!==_0x42a5d9['name']&&'revision-end'!==_0x42a5d9['name']))['forEach'](_0x36c09f=>{'string'!=typeof _0x36c09f&&(_0x36c09f['children']=this['_removeRevisionMarkers'](_0x36c09f['children']),_0x36c09f['attributes']=_0x36c09f['attributes']['filter'](_0x5aa0ca=>!_0x5aa0ca[0x0]['startsWith']('data-revision-')));}),_0x5381bf;}}function g(_0x439bd9,_0xccf488,_0x33e63f){const t=_0x439bd9['t'];switch(_0xccf488){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'},_0x33e63f);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x33e63f);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 _0x41a129{['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[_0x5bfa03,I,V,_0x3c7f7d];}constructor(_0x4335ac){super(_0x4335ac),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 _0x4f4bb0=_0x14b3ba();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x4f4bb0},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 _0x5c0e1f=this['repository']['getRevision'](0x0),_0x27e953=_0x5c0e1f&&null===_0x5c0e1f['creator']?_0x5c0e1f:null;if(this['_continueCurrentRevision']=!!_0x27e953&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x473e33=this['_source']['getCurrentRevisionId'](),_0x1bb2f0=this['repository']['getRevision'](_0x473e33);if(_0x1bb2f0)this['_startingVersion']=_0x1bb2f0['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x2afc9a=this['_source']['history']['_operations']['find'](_0x5ab471=>!_0x5ab471['_isInit']),_0x4eda0c=_0x2afc9a?_0x2afc9a['baseVersion']:this['_source']['history']['version'];_0x5c0e1f?(_0x5c0e1f['toVersion']<_0x4eda0c&&_0x5c0e1f['_update']({'toVersion':_0x4eda0c}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x27e953['id'],this['_startingVersion']=_0x27e953['fromVersion']):(this['_startingVersion']=_0x5c0e1f['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x4eda0c,this['_continueCurrentRevision']=!0x1);}}else _0x27e953&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x27e953['toVersion'],this['editor']['model']['document']['history']['version']),_0x27e953['fromVersion']===_0x27e953['toVersion']?(0x0!==_0x27e953['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x27e953['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x27e953['id'],this['_startingVersion']=_0x27e953['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',_0x47c87f=>!_0x47c87f),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4ea623=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x6bc4fe;for(const _0x289ec2 in _0x4ea623){const _0x4b95ff=_0x289ec2,_0xa26ab0=_0x4ea623[_0x4b95ff];if('revisionHistoryLicenseKeyValid'==_0xa26ab0||'revisionHistoryLicenseKeyInvalid'==_0xa26ab0||'revisionHistoryLicenseKeyExpired'==_0xa26ab0||'revisionHistoryLicenseKeyDomainLimit'==_0xa26ab0||'revisionHistoryLicenseKeyNotAllowed'==_0xa26ab0||'revisionHistoryLicenseKeyEvaluationLimit'==_0xa26ab0||'revisionHistoryLicenseKeyTrialLimit'==_0xa26ab0||'revisionHistoryLicenseKeyUsageLimit'==_0xa26ab0){delete _0x4ea623[_0x4b95ff],_0x6bc4fe=_0xa26ab0,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x6bc4fe&&_0x4ea623['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x6bc4fe&&_0x4ea623['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x6bc4fe&&_0x4ea623['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x6bc4fe&&_0x4ea623['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x6bc4fe&&_0x4ea623['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x6bc4fe&&_0x4ea623['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x6bc4fe&&_0x4ea623['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x2be954=this['repository']['getRevision'](0x0),_0x3f5757=await this['getRevisionDocumentData'](_0x2be954),_0x6fd490=await this['getRevisionRootsAttributes'](_0x2be954);this['_replaceEditorDataWithRevisionData'](_0x3f5757,_0x6fd490);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x5b1fc1){this['_source']=_0x5b1fc1;}async['update'](){const _0x137c6f=await this['_source']['getLatestVersion']();if(_0x137c6f>this['currentRevision']['toVersion']){await this['_loadState']();const _0x2af4f3=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x137c6f});_0x2af4f3['authors']=_0x2af4f3['authorsIds']['map'](_0x3c3303=>this['editor']['plugins']['get']('Users')['getUser'](_0x3c3303)),this['currentRevision']['_update'](_0x2af4f3);}}async['saveRevision'](_0xc6b59b={},_0xdc0d11=null){const _0x48dd8a=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0xdc0d11>this['currentRevision']['toVersion']&&(_0xdc0d11=null),null===_0xdc0d11&&(_0xdc0d11=await this['_source']['getLatestVersion']());const _0xaf3574=this['_getFromVersion'](_0xdc0d11),_0x52fc48=this['buildRevisionData']({'from':_0xaf3574,'to':_0xdc0d11});if(this['currentRevision']['toVersion']<_0xdc0d11){const _0x1f175c=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0xdc0d11,'to':_0xdc0d11});_0x1f175c['authors']=[],_0x1f175c['authorsIds']=[],_0x1f175c['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x1f175c,!0x0),delete _0x1f175c['authors'],_0x48dd8a['push'](_0x1f175c);}_0xc6b59b['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0xc6b59b['name']=_0xc6b59b['name']||null,_0xc6b59b['id']=_0xc6b59b['id']||_0x14b3ba(),_0xc6b59b={..._0xc6b59b,..._0x52fc48};const _0x3adb3d=this['addRevisionData'](_0xc6b59b);_0x48dd8a['push'](_0xc6b59b);const _0x1c147b=this['repository']['getIndex'](_0x3adb3d);if(0x0!==_0x1c147b){const _0x52cf84=this['repository']['getRevision'](_0x1c147b-0x1);if(_0x52cf84['fromVersion']!==_0xdc0d11){const _0x516900=this['_revisionDataBuilder']['getData'](_0xdc0d11,_0x52cf84['toVersion']),_0x14a89a={'id':_0x52cf84['id'],'diffData':_0x516900['diffData'],'authorsIds':_0x516900['authorsIds'],'authors':_0x516900['authorsIds']['map'](_0x4d9d90=>this['editor']['plugins']['get']('Users')['getUser'](_0x4d9d90)),'fromVersion':_0xdc0d11};_0x52cf84===this['currentRevision']&&(_0x14a89a['createdAt']=new Date(_0xc6b59b['createdAt']['getTime']()+0xa)),_0x52cf84['_update'](_0x14a89a,!0x0),delete _0x14a89a['authors'],_0x48dd8a['push'](_0x14a89a);}}if(this['adapter']){for(const _0x363d68 of _0x48dd8a)this['_bufferUpdate'](_0x363d68['id'],_0x363d68,!0x0);this['sendBufferedUpdates']();}return _0x3adb3d;}['addRevisionData'](_0x1604bd){const _0x22200d=this['repository']['createRevision'](_0x1604bd);return this['adapter']&&_0x22200d['on']('_update',(_0x358e13,_0x5de0c9,_0x1bfce4)=>{_0x1bfce4||(this['_bufferUpdate'](_0x5de0c9['id'],_0x5de0c9,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x22200d,this['_findInsertionIndex'](_0x22200d)),_0x22200d;}async['getRevisionDocumentData'](_0x34dff8){return await this['_utils']['loadRevisionData'](_0x34dff8,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x34dff8);}async['getRevisionRootsAttributes'](_0x2624d2){return await this['_utils']['loadRevisionData'](_0x2624d2,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x2624d2);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x309b4e=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x154a46=0x0;_0x154a46<_0x309b4e['length'];_0x154a46++){const _0x5b747f=_0x309b4e[_0x154a46];let _0x4f9a21=!0x1;for(const _0x3711d2 of Object['keys'](_0x5b747f))void 0x0===_0x5b747f[_0x3711d2]?delete _0x5b747f[_0x3711d2]:'id'!==_0x3711d2&&(_0x4f9a21=!0x0);_0x4f9a21||(_0x309b4e[_0x154a46]=null);}if(_0x309b4e=_0x309b4e['filter'](_0x58467e=>null!==_0x58467e),!_0x309b4e['length'])return;for(let _0x101b6=0x0;_0x101b6<_0x309b4e['length'];_0x101b6++){const _0x1f09cf=_0x309b4e[_0x101b6];void 0x0!==_0x1f09cf['fromVersion']&&void 0x0===_0x1f09cf['toVersion']&&(_0x1f09cf['toVersion']=this['repository']['getRevision'](_0x1f09cf['id'])['toVersion']),void 0x0!==_0x1f09cf['toVersion']&&void 0x0===_0x1f09cf['fromVersion']&&(_0x1f09cf['fromVersion']=this['repository']['getRevision'](_0x1f09cf['id'])['fromVersion']);}const _0x19b9cb=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x309b4e,_0x19b9cb)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x3d05c4=>{if(_0x3d05c4){for(const _0x4e7fa1 of _0x3d05c4)this['setRevisionData']({'id':_0x4e7fa1['id'],'createdAt':_0x4e7fa1['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x2f70d0=null,from:_0x4f4cf2=null,to:_0x38212b=null}){_0x4f4cf2=null!==_0x4f4cf2?_0x4f4cf2:_0x2f70d0['fromVersion'],_0x38212b=null!==_0x38212b?_0x38212b:_0x2f70d0['toVersion'];const _0x1efbfa=this['_revisionDataBuilder']['getData'](_0x4f4cf2,_0x38212b),_0xa11f93={'diffData':_0x1efbfa['diffData'],'authorsIds':_0x1efbfa['authorsIds'],'fromVersion':_0x4f4cf2,'toVersion':_0x38212b};if(!_0x2f70d0||_0x38212b!==_0x2f70d0['toVersion']){const _0x3d195f=_0x38212b-0x1,_0x1cd30c=this['_source']['history']['getOperation'](_0x3d195f);_0xa11f93['createdAt']=_0x1cd30c&&_0x1cd30c['createdAt']||new Date();}if(this['_loadedStateData']&&_0x4f4cf2===this['_loadedStateData']['fromVersion']){for(const _0x488e00 of this['_loadedStateData']['authors'])_0xa11f93['authorsIds']['includes'](_0x488e00['id'])||_0xa11f93['authorsIds']['push'](_0x488e00['id']);}return _0xa11f93;}['_bufferUpdate'](_0x4fe9b0,_0x3bc518,_0x191316){if(this['_bufferedUpdates']['has'](_0x4fe9b0)){const _0x4d7b77=this['_bufferedUpdates']['get'](_0x4fe9b0);_0x3bc518=_0x191316?{..._0x4d7b77,..._0x3bc518}:{..._0x3bc518,..._0x4d7b77};}this['_bufferedUpdates']['set'](_0x4fe9b0,_0x3bc518);}['setRevisionData'](_0x13558a){const _0x4fd8cd=this['repository']['getRevision'](_0x13558a['id']);if(_0x13558a['createdAt']&&(_0x13558a['createdAt']=new Date(_0x13558a['createdAt'])),_0x13558a['authorsIds']){const _0x552c76=this['editor']['plugins']['get']('Users');_0x13558a['authors']=_0x13558a['authorsIds']['map'](_0x38f252=>_0x552c76['getUser'](_0x38f252));}_0x4fd8cd['_update'](_0x13558a,!0x0);}['_createInitialRevision'](_0x2ec87f){const _0x1535e2=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x1535e2)this['_initialRevisionId']=_0x1535e2['id'];else{const _0x41ab69=!this['editor']['model']['document']['roots']['find'](_0x57106a=>this['editor']['model']['hasContent'](_0x57106a)),_0x1fa351=this['editor']['plugins']['get']('Users')['me']['id'],_0x2cc9fa=g(this['editor']['locale'],_0x41ab69?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x2ec87f,'to':_0x2ec87f,'id':this['_initialRevisionId'],'name':_0x2cc9fa,'creatorId':_0x1fa351});}}['_createCurrentRevision'](_0x9fb27f){const _0x41c8ae=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x41c8ae),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x9fb27f,'to':_0x9fb27f,'id':_0x41c8ae,'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'](_0x45cd64,_0x456894){let _0x168704=this['editor']['config']['get']('initialData'),_0x26a36e=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x168704){_0x168704={};for(const _0xe70f2 of this['editor']['model']['document']['getRootNames']())_0x168704[_0xe70f2]='';}if('string'==typeof _0x168704&&(_0x168704={'main':_0x168704}),void 0x0===_0x26a36e){_0x26a36e={};for(const _0x1dce39 of this['editor']['model']['document']['getRootNames']())_0x26a36e[_0x1dce39]={};}let _0x58b6b9=!0x1;const _0x27fc25=Object['keys'](_0x168704),_0x3554e2=Object['keys'](_0x45cd64);for(const _0x4b35dc of _0x27fc25){if(_0x168704[_0x4b35dc]!==_0x45cd64[_0x4b35dc]&&''!==_0x168704[_0x4b35dc]['trim']()){_0x58b6b9=!0x0;break;}if(!_0x2199e8(_0x26a36e[_0x4b35dc],_0x456894[_0x4b35dc])&&Object['keys'](_0x26a36e[_0x4b35dc])['length']>0x0){_0x58b6b9=!0x0;break;}}_0x58b6b9||(_0x58b6b9=_0x3554e2['some'](_0x387520=>!this['editor']['model']['document']['getRoot'](_0x387520))),_0x58b6b9&&_0x29c922('editor-initial-data-replaced-with-revision-data',{'editorData':_0x168704,'editorRootsAttributes':_0x26a36e,'revisionData':_0x45cd64,'revisionRootsAttributes':_0x456894}),this['editor']['config']['set']('initialData',_0x45cd64),this['editor']['config']['set']('rootsAttributes',_0x456894);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x2946ab=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x2946ab['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x37eab6){const _0x4313fe=this['repository']['getRevisions']();_0x4313fe['reverse']();let _0x514acd=0x0;for(;_0x514acd<_0x4313fe['length'];){const _0x4c0733=_0x4313fe[_0x514acd];if(_0x4c0733===this['currentRevision']){_0x514acd++;continue;}if(_0x4c0733['id']===this['_initialRevisionId'])break;const _0x426a2c=_0x37eab6['toVersion']-_0x4c0733['toVersion']||_0x37eab6['fromVersion']-_0x4c0733['fromVersion'];if(_0x426a2c>0x0)break;if(_0x426a2c<0x0)_0x514acd++;else{if(!_0x37eab6['creator']&&_0x4c0733['creator'])break;if(_0x4c0733['creator']||!_0x37eab6['creator']){if(_0x37eab6['createdAt']>_0x4c0733['createdAt'])break;_0x514acd++;}else _0x514acd++;}}return _0x514acd;}['_getFromVersion'](_0x1f2f41){const _0x1b7dc2=this['repository']['getRevisions']();_0x1b7dc2['reverse'](),_0x1b7dc2['shift']();const _0x2c18c5=_0x1b7dc2['find'](_0x8802a=>_0x8802a['toVersion']<=_0x1f2f41)['toVersion'];return _0x2c18c5<this['_startingVersion']?this['_startingVersion']:_0x2c18c5;}['_makeRevision']({name:_0x314b06,from:_0x5474a3,to:_0x20092d,creatorId:_0x596068,id:_0x239e68}){const _0x165fe6=this['buildRevisionData']({'from':_0x5474a3,'to':_0x20092d});_0x165fe6['name']=_0x314b06,_0x165fe6['creatorId']=_0x596068,_0x165fe6['id']=_0x239e68;const _0xceda1c=this['addRevisionData'](_0x165fe6);return this['adapter']&&this['_bufferUpdate'](_0x165fe6['id'],_0x165fe6,!0x0),_0xceda1c;}['_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(_0x5819ba){this['editor']=_0x5819ba,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'](_0x3ae13d){this['source']=_0x3ae13d;const _0x117f3e=new Map(),_0x43012b=new Map(),_0x588c7d=this['editor']['model']['document']['roots']['map'](_0x43c6db=>_0x43c6db['rootName']);for(const _0xbc53fd of _0x588c7d){const _0x8d81b8=this['editor']['model']['document']['getRoot'](_0xbc53fd),_0x5240f9=N(_0x8d81b8);_0x117f3e['set'](_0xbc53fd,_0x5240f9),_0x43012b['set'](_0xbc53fd,Object['fromEntries'](_0x8d81b8['getAttributes']()));}const _0x2e7177=Array['from'](this['editor']['model']['markers'])['map'](_0xac16d4=>[_0xac16d4['name'],_0xac16d4['getRange']()]),_0xfc38ed=this['source']['version'];this['_saveMetaData'](_0xfc38ed,_0x117f3e,_0x2e7177,_0x43012b),this['_startingRevisionId']=this['_revisionId'];const _0x4a4a70=new Map(),_0x50bf46=new Map();for(const _0x4e25ef of _0x588c7d){const _0x9cfc4=P(_0x4e25ef);_0x4a4a70['set'](_0x4e25ef,_0x9cfc4),_0x50bf46['set'](_0x4e25ef,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x4a4a70,[],_0x50bf46);}['getData'](_0x13312a,_0x156547){if(this['_lastFrom']===_0x13312a&&this['_lastTo']<=_0x156547)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x156547,!0x0);else{if(!this['_savedMetaData']['has'](_0x13312a)){const _0x2c3eb0=this['_getPreviousFrom'](_0x13312a);this['_calculateMetaData'](_0x2c3eb0,_0x13312a,!0x1);}this['_calculateMetaData'](_0x13312a,_0x156547,!0x0);}return this['_lastFrom']=_0x13312a,this['_lastTo']=_0x156547,this['_getState']();}['loadState'](_0x282037){const _0xab4f33=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x282037['fromVersion'],this['_lastTo']=_0x282037['toVersion'];for(const _0x50bf09 in _0x282037['diffData']){const _0x588a56=_0x282037['diffData'][_0x50bf09]['attachChange'],_0x242e66=_0xb7c964(_0x282037['diffData'][_0x50bf09]['attributesBefore'])||{},_0x34f4a9=_0xab4f33['_makeModelFromViewString'](_0x282037['diffData'][_0x50bf09]['deletions']);_0x34f4a9['rootName']=_0x50bf09,_0x34f4a9['_isAttached']=!_0x588a56||!_0x588a56['isAttached'],_0x34f4a9['isAttached']=()=>_0x34f4a9['_isAttached'],this['_baseRoots']['set'](_0x50bf09,_0x34f4a9),this['_baseRootsAttributes']['set'](_0x50bf09,_0x242e66),_0x588a56&&this['_touchedRoots']['set'](_0x50bf09,_0x588a56);const _0x5a5dca=this['_makeIdsRoot'](_0x34f4a9);this['_baseIdsRoots']['set'](_0x50bf09,_0x5a5dca);for(const [_0x3f1803,_0x3ac56d]of _0x34f4a9['markers']){if(!_0x3f1803['startsWith']('revision:'))continue;const _0x2b8b93=_0x3f1803['split'](':')[0x2];for(const _0x53c3cd of _0x3ac56d['getWalker']({'singleCharacters':!0x0})){const _0x2bbd46=this['_getVidAttributeName'](_0x53c3cd),_0x85507a='elementEnd'==_0x53c3cd['type']?_0x53c3cd['previousPosition']['path']['slice'](0x0,-0x1):_0x53c3cd['previousPosition']['path'],_0x568a5b=_0x5a5dca['getNodeByPath'](_0x85507a)['getAttribute'](_0x2bbd46);this['_touched']['set'](_0x568a5b,{'userId':_0x2b8b93});}}}this['_startingRevisionId']=this['_revisionId'];const _0x474c52=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x428ae1=>!this['_touched']['has'](_0x428ae1));let _0x21ed3b=0x0;const _0x12e9f8=new Map();for(const _0x3df9ec in _0x282037['diffData']){const _0x3ecd39=_0x282037['diffData'][_0x3df9ec]['attachChange'],_0x50a695=_0xb7c964(_0x282037['diffData'][_0x3df9ec]['attributesAfter'])||{},_0x4a6363=_0xab4f33['_makeModelFromViewString'](_0x282037['diffData'][_0x3df9ec]['insertions']);_0x4a6363['rootName']=_0x3df9ec,_0x4a6363['_isAttached']=!_0x3ecd39||_0x3ecd39['isAttached'],_0x4a6363['isAttached']=()=>_0x4a6363['_isAttached'],this['_diffRoots']['set'](_0x3df9ec,_0x4a6363),this['_diffRootsAttributes']['set'](_0x3df9ec,_0x50a695);const _0x393e35=this['_makeIdsRoot'](_0x4a6363,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x3df9ec,_0x393e35),_0x12e9f8['set'](_0x3df9ec,_0x4a6363['isAttached']()?_0x50a695:{});for(const [_0x352599,_0x4d7844]of _0x4a6363['markers']){if(!_0x352599['startsWith']('revision:'))continue;const _0x49fbbd=_0x352599['split'](':')[0x2];for(const _0x27cfc0 of _0x4d7844['getWalker']({'singleCharacters':!0x0})){const _0x45bd74=this['_getVidAttributeName'](_0x27cfc0),_0x35ccc1=this['_revisionId']++,_0x4c463e='elementEnd'==_0x27cfc0['type']?_0x27cfc0['previousPosition']['path']['slice'](0x0,-0x1):_0x27cfc0['previousPosition']['path'];_0x393e35['getNodeByPath'](_0x4c463e)['_setAttribute'](_0x45bd74,_0x35ccc1),this['_touched']['set'](_0x35ccc1,{'userId':_0x49fbbd});}}for(const _0xea3b33 of this['editor']['model']['createRangeIn'](_0x4a6363)['getWalker']({'singleCharacters':!0x0})){const _0x5bc915=this['_getVidAttributeName'](_0xea3b33),_0x168404='elementEnd'==_0xea3b33['type']?_0xea3b33['previousPosition']['path']['slice'](0x0,-0x1):_0xea3b33['previousPosition']['path'],_0x3e2f73=_0x393e35['getNodeByPath'](_0x168404);_0x3e2f73['getAttribute'](_0x5bc915)>0x0||_0x3e2f73['_setAttribute'](_0x5bc915,_0x474c52[_0x21ed3b++]);}for(const [_0x1d5ea1,_0xcb112b]of _0x4a6363['markers'])_0x1d5ea1['startsWith']('revision:')||this['_markers']['set'](_0x1d5ea1,_0xcb112b);}const _0x290c1f=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0x290c1f),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x290c1f,0x1));const _0x324a49=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x324a49),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x324a49,0x1));const _0x3cfe66=Array['from'](this['_diffRoots'])['map'](([_0x1d08e8,_0x855dbd])=>[_0x1d08e8,N(_0x855dbd)]);this['_saveMetaData'](this['_lastTo'],_0x3cfe66,this['_markers'],_0x12e9f8);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x477d90,_0x5c4195,_0x2aa872,_0x3c6306){const _0x2c92c2=new Map(_0x5c4195),_0x1e2d07=new Map(_0xb7c964(_0x3c6306)),_0x248993=new Map();for(const [_0x1650d8,_0x4db45d]of _0x2aa872)_0x248993['set'](_0x1650d8,{'start':_0x4db45d['start']['clone'](),'end':_0x4db45d['end']['clone'](),'rootName':_0x4db45d['root']['rootName']});this['_savedMetaData']['set'](_0x477d90,{'roots':_0x2c92c2,'markers':_0x248993,'rootsAttributes':_0x1e2d07});}['_removeMetaData'](_0x3e5d15){this['_savedMetaData']['delete'](_0x3e5d15);}['_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'](_0x1cec69,_0x4dac3d=null){let _0x89a46f=null;_0x1cec69['is']('documentFragment')||(_0x89a46f=new ut(_0x1cec69['name'],{'vid_start':null===_0x4dac3d?this['_revisionId']++:_0x4dac3d++}));const _0x170156=[];for(const _0x4e289a of _0x1cec69['getChildren']())if(_0x4e289a['is']('element')){_0x170156['push'](this['_makeIdsRoot'](_0x4e289a,_0x4dac3d));const _0x48bfe9=_0x170156[_0x170156['length']-0x1];null!==_0x4dac3d&&(_0x4dac3d=_0x48bfe9['is']('element','$text')?_0x48bfe9['getAttribute']('vid')+0x1:_0x48bfe9['getAttribute']('vid_end')+0x1);}else{for(let _0x56cbde=0x0;_0x56cbde<_0x4e289a['offsetSize'];_0x56cbde++)_0x170156['push'](new ut('$text',{'vid':null===_0x4dac3d?this['_revisionId']++:_0x4dac3d++}));}if(_0x1cec69['is']('documentFragment')){const _0x4d309a=P(_0x1cec69['rootName']);return _0x4d309a['_insertChild'](0x0,_0x170156),_0x4d309a;}return _0x89a46f['_setAttribute']('vid_end',null===_0x4dac3d?this['_revisionId']++:_0x4dac3d++),_0x89a46f['_insertChild'](0x0,_0x170156),_0x89a46f;}['_calculateMetaData'](_0x232f0e,_0x55d9ac,_0x1cd033){this['_reset']();const {roots:_0x595bc9,markers:_0x5eb899,rootsAttributes:_0x339d11}=this['_savedMetaData']['get'](_0x232f0e);this['_baseRoots']=new Map(_0x595bc9),this['_baseRootsAttributes']=new Map(_0xb7c964(_0x339d11));for(const [_0x22ef8b,_0x220ff8]of this['_baseRoots'])if('$graveyard'!==_0x22ef8b&&(this['_diffRoots']['set'](_0x22ef8b,N(_0x220ff8)),this['_diffRootsAttributes']=new Map(_0xb7c964(_0x339d11)),_0x1cd033)){const _0x32865b=this['_revisionId'];this['_idsRoots']['set'](_0x22ef8b,this['_makeIdsRoot'](_0x220ff8)),this['_baseIdsRoots']['set'](_0x22ef8b,this['_makeIdsRoot'](_0x220ff8,_0x32865b));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x1cd033&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x8af112,_0x574f04]of _0x5eb899){const _0x5b048b=this['_baseRoots']['get'](_0x574f04['rootName']),_0x4c6d15=this['_diffRoots']['get'](_0x574f04['rootName']),_0xbca3a3=new lt(this['_fixPosition'](_0x574f04['start'],_0x5b048b),this['_fixPosition'](_0x574f04['end'],_0x5b048b)),_0x6f3f2a=this['_fixRange'](_0xbca3a3,_0x4c6d15);_0x5b048b['markers']['set'](_0x8af112,_0xbca3a3),this['_markers']['set'](_0x8af112,_0x6f3f2a);}this['_applyOperations'](_0x232f0e,_0x55d9ac,_0x1cd033);}['_applyOperations'](_0x59df8d,_0x49b66d,_0x2c0f5d){for(const _0x595e72 of this['source']['getOperations'](_0x59df8d,_0x49b66d))this['_handleOperation'](_0x595e72,_0x2c0f5d);for(const _0x634451 of this['_diffRoots']['values']())_0x634451['markers']['clear']();for(const [_0x4d29a7,_0x14c9dd]of this['_markers']){this['_diffRoots']['get'](_0x14c9dd['root']['rootName'])['markers']['set'](_0x4d29a7,_0x14c9dd['clone']());}const _0x2a8ef3=new Map(),_0x25f2dc=new Map();for(const [_0x51b3f8,_0x47071e]of this['_diffRoots'])_0x2a8ef3['set'](_0x51b3f8,N(_0x47071e)),_0x25f2dc['set'](_0x51b3f8,this['_diffRootsAttributes']['get'](_0x51b3f8));this['_saveMetaData'](_0x49b66d,_0x2a8ef3,this['_markers'],_0x25f2dc);}['_getPreviousFrom'](_0x24f0b0){const _0x4da10e=Array['from'](this['_savedMetaData']['keys']());_0x4da10e['sort']((_0x2a10ef,_0xae7ef2)=>_0x2a10ef-_0xae7ef2),_0x4da10e['reverse']();for(const _0x26415d of _0x4da10e)if(_0x26415d<_0x24f0b0)return _0x26415d;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x1bf669,_0x468458){const _0xec8155=Array['from'](_0x468458['markers'])['map'](([_0x465fb3,_0x15fe10])=>[_0x465fb3,this['_fixRange'](_0x15fe10,_0x1bf669)]);_0x1bf669['markers']=new Map(_0xec8155);}['_transformMarkers'](_0x262dcd){for(const _0x41319a of this['_markers']['values']()){const _0x16cb69=_0x41319a['getTransformedByOperation'](_0x262dcd),_0x126227=lt['_createFromRanges'](_0x16cb69);_0x41319a['start']=_0x126227['start'],_0x41319a['end']=_0x126227['end'];}}['_handleOperation'](_0x50cd9b,_0x384c0b){if('addRoot'!=_0x50cd9b['type']&&'detachRoot'!=_0x50cd9b['type']){if('insert'==_0x50cd9b['type']){const _0x1245c1=_0x50cd9b['position']['root']['rootName'];this['_diffRoots']['has'](_0x1245c1)||(this['_diffRoots']['set'](_0x1245c1,P(_0x1245c1,!0x0)),this['_diffRootsAttributes']['set'](_0x1245c1,{}),_0x384c0b&&this['_idsRoots']['set'](_0x1245c1,P(_0x1245c1,!0x0)));}else{if('addRootAttribute'==_0x50cd9b['type']||'removeRootAttribute'==_0x50cd9b['type']||'changeRootAttribute'==_0x50cd9b['type'])return void this['_handleRootAttributeOperation'](_0x50cd9b);'marker'==_0x50cd9b['type']&&this['_handleMarkerOperation'](_0x50cd9b);}if('marker'!==_0x50cd9b['type']){const _0x819a5b=this['_cloneOperation'](_0x50cd9b,this['_diffRoots']);_0x819a5b['_execute'](),this['_transformMarkers'](_0x819a5b);}if(_0x384c0b)switch(_0x50cd9b['type']){case'insert':this['_handleInsertOperation'](_0x50cd9b);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x50cd9b);break;case'merge':this['_handleMergeOperation'](_0x50cd9b);break;case'split':this['_handleSplitOperation'](_0x50cd9b);}}else this['_handleRootOperation'](_0x50cd9b,_0x384c0b);}['_cloneOperation'](_0x566e14,_0x2bff81){const _0x512543=_0x566e14['clone']();return _0x512543['_authorId']=_0x566e14['_authorId'],this['_fixOperation'](_0x512543,_0x2bff81),_0x512543;}['_getBaseVids'](_0x348a65){return _0x348a65['map'](_0x4c3350=>{const _0x5665a2=this['_getVidAttributeName'](_0x4c3350);return Number(_0x4c3350['item']['getAttribute'](_0x5665a2));});}['_generateTape'](_0xcfe558,_0x7ab2c5){if(_0xcfe558['is']('element','$text'))_0x7ab2c5['push']({'item':_0xcfe558,'type':'text'});else{_0xcfe558['is']('element')&&_0x7ab2c5['push']({'item':_0xcfe558,'type':'elementStart'});for(const _0x19b19a of _0xcfe558['getChildren']())this['_generateTape'](_0x19b19a,_0x7ab2c5);_0xcfe558['is']('element')&&_0x7ab2c5['push']({'item':_0xcfe558,'type':'elementEnd'});}return _0x7ab2c5;}['_getState'](){const _0x129986=new Map(this['_touched']),_0x33c443=new Map(_0x129986),_0x49fbd9=new Map(),_0x3918c2={'insertions':{},'deletions':{}},_0x1350d7={'insertions':{},'deletions':{}},_0x598e19=new Map(),_0x5daeed=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x5daeed['delete']('$graveyard');for(const _0x22bf6b of _0x5daeed){const _0x52783e=this['_diffRoots']['get'](_0x22bf6b)||P(_0x22bf6b,!0x1),_0x3d3d13=this['_baseRoots']['get'](_0x22bf6b)||P(_0x22bf6b,!0x1);_0x52783e['isAttached']()||_0x3d3d13['isAttached']()?(_0x3918c2['insertions'][_0x22bf6b]=N(_0x52783e),_0x3918c2['deletions'][_0x22bf6b]=N(_0x3d3d13),this['_copyMarkers'](_0x3918c2['deletions'][_0x22bf6b],_0x3d3d13),this['_copyMarkers'](_0x3918c2['insertions'][_0x22bf6b],_0x52783e),_0x1350d7['insertions'][_0x22bf6b]=this['_generateTape'](this['_idsRoots']['get'](_0x22bf6b),[]),_0x1350d7['deletions'][_0x22bf6b]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x22bf6b)||P(_0x22bf6b,!0x1),[])):_0x5daeed['delete'](_0x22bf6b);}for(const _0x230e06 of _0x5daeed){const _0x33d041=_0x1350d7['insertions'][_0x230e06];for(const _0x46d9ad of _0x33d041){const _0x25064a=this['_getVidAttributeName'](_0x46d9ad),_0x4944f6=_0x46d9ad['item']['getAttribute'](_0x25064a);_0x33c443['delete'](_0x4944f6),_0x4944f6>=this['_startingRevisionId']&&_0x49fbd9['set'](_0x4944f6,_0x129986['get'](_0x4944f6));}}for(const _0xd68809 of _0x5daeed){const _0x5f3748=_0x1350d7['insertions'][_0xd68809],_0x28509a=this['_getBaseVids'](_0x1350d7['deletions'][_0xd68809]);let _0x1dbb9f=0x0;for(const _0x4a93ad of _0x5f3748){const _0x19bff6=this['_getVidAttributeName'](_0x4a93ad),_0x5db362=_0x4a93ad['item']['getAttribute'](_0x19bff6);if(!_0x49fbd9['has'](_0x5db362)&&!_0x598e19['has'](_0x5db362)){if(_0x33c443['has'](_0x5db362))_0x1dbb9f++;else{if(_0x5db362!=_0x28509a[_0x1dbb9f]){const _0x552388=_0x129986['get'](_0x5db362)||_0x129986['get'](_0x28509a[_0x1dbb9f]);for(;_0x5db362!=_0x28509a[_0x1dbb9f];)_0x33c443['has'](_0x28509a[_0x1dbb9f])||(_0x598e19['set'](_0x28509a[_0x1dbb9f],_0x552388),_0x129986['set'](_0x28509a[_0x1dbb9f],_0x552388)),_0x1dbb9f++;}_0x1dbb9f++;}}}}for(const _0x663de3 of _0x5daeed){const _0xa854cf=_0x1350d7['insertions'][_0x663de3];for(const _0x58fb9c of _0xa854cf){const _0x2b7295=this['_getVidAttributeName'](_0x58fb9c),_0x4db2e8=_0x58fb9c['item']['getAttribute'](_0x2b7295);if(_0x598e19['has'](_0x4db2e8)){const _0x521470=_0x598e19['get'](_0x4db2e8);_0x33c443['has'](_0x4db2e8)||_0x33c443['set'](_0x4db2e8,{..._0x521470}),_0x49fbd9['set'](_0x4db2e8,{..._0x521470});}}}for(const _0x3d552a of _0x33c443['keys']())_0x3d552a>=this['_startingRevisionId']&&_0x33c443['delete'](_0x3d552a);const _0x14654c=new Map();for(const _0x17fc22 of _0x5daeed){let _0x36de6e=_0x1350d7['insertions'][_0x17fc22];for(const _0x3b61b2 of _0x36de6e)if(_0x3b61b2['item']['is']('element','tableCell')){const _0x557039=this['_getVidAttributeName'](_0x3b61b2),_0x165625=_0x3b61b2['item']['getAttribute'](_0x557039);if(_0x49fbd9['has'](_0x165625)){const _0x154940=_0x3b61b2['item']['parent']['parent']['getAttribute']('vid_start'),_0x56a58e=_0x14654c['get'](_0x154940)||new Set();_0x56a58e['add'](_0x49fbd9['get'](_0x165625)['userId']),_0x14654c['set'](_0x154940,_0x56a58e);}}_0x36de6e=_0x1350d7['deletions'][_0x17fc22];for(const _0x237eb7 of _0x36de6e)if(_0x237eb7['item']['is']('element','tableCell')){const _0x58677a=this['_getVidAttributeName'](_0x237eb7),_0x8b6425=_0x237eb7['item']['getAttribute'](_0x58677a);if(_0x33c443['has'](_0x8b6425)){const _0x246f16=_0x237eb7['item']['parent']['parent']['getAttribute']('vid_start'),_0x4c46d7=_0x14654c['get'](_0x246f16)||new Set();_0x4c46d7['add'](_0x33c443['get'](_0x8b6425)['userId']),_0x14654c['set'](_0x246f16,_0x4c46d7);}}for(const _0x3d5ea2 of _0x14654c['keys']())(_0x49fbd9['has'](_0x3d5ea2)||_0x33c443['has'](_0x3d5ea2))&&_0x14654c['delete'](_0x3d5ea2);}for(const _0x2a9147 of _0x5daeed){const _0xebe6fb=_0x1350d7['insertions'][_0x2a9147];let _0x1b7fbe=null,_0x46e218=null;for(const _0x3ffdab of _0xebe6fb){const _0x1af5cf=this['_getVidAttributeName'](_0x3ffdab),_0x2c86a3=_0x3ffdab['item']['getAttribute'](_0x1af5cf),_0x429aeb=_0x14654c['get'](_0x2c86a3);_0x429aeb&&'elementStart'==_0x3ffdab['type']&&(_0x1b7fbe=Array['from'](_0x429aeb)[0x0],_0x46e218=_0x3ffdab['item']['getAttribute']('vid_end')),_0x1b7fbe&&(_0x33c443['set'](_0x2c86a3,{'userId':_0x1b7fbe}),_0x49fbd9['set'](_0x2c86a3,{'userId':_0x1b7fbe})),_0x2c86a3==_0x46e218&&(_0x1b7fbe=null,_0x46e218=null);}}const _0x1e4b61={},_0x3ab83d=new Set();for(const _0x5d77a9 of _0x5daeed){const _0x9a113e=_0x3918c2['deletions'][_0x5d77a9],_0x35e966=_0x3918c2['insertions'][_0x5d77a9];for(const {userId:_0x26d22a}of this['_touchedMarkers']['values']())null!==_0x26d22a&&_0x3ab83d['add'](_0x26d22a);for(const {userId:_0x265302}of this['_touchedRoots']['values']())null!==_0x265302&&_0x3ab83d['add'](_0x265302);this['_markChanges'](_0x35e966,_0x1350d7['insertions'][_0x5d77a9],_0x49fbd9,'insertion',_0x3ab83d),this['_markChanges'](_0x9a113e,_0x1350d7['deletions'][_0x5d77a9],_0x33c443,'deletion',_0x3ab83d),_0x1e4b61[_0x5d77a9]={'insertions':this['_prepareViewToSave'](_0x35e966),'deletions':this['_prepareViewToSave'](_0x9a113e),'attachChange':this['_touchedRoots']['get'](_0x5d77a9)||null,'attributesBefore':_0xb7c964(this['_baseRootsAttributes']['get'](_0x5d77a9))||{},'attributesAfter':_0xb7c964(this['_diffRootsAttributes']['get'](_0x5d77a9))};}return{'diffData':_0x1e4b61,'authorsIds':Array['from'](_0x3ab83d)};}['_processRootBeforeSave'](_0x229f19){for(const [,_0x46dd8e]of _0x229f19['markers']){const _0x13c348=_0x46dd8e['start']['getAncestors']()['filter'](_0x35343a=>'tableCell'==_0x35343a['name']);for(const _0x5af0ac of _0x13c348)0x1==_0x5af0ac['childCount']&&_0x5af0ac['getChild'](0x0)['is']('element','paragraph')&&_0x5af0ac['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x2c3434){this['_processRootBeforeSave'](_0x2c3434);const _0x47869d=this['editor']['data']['toView'](_0x2c3434,{}),_0x2bc8a5=Array['from'](_0x47869d['getChildren']())['map'](_0x3fbc47=>this['_getViewJson'](_0x3fbc47));return JSON['stringify'](_0x2bc8a5);}['_getViewJson'](_0x262542){if(_0x262542['is']('$text'))return _0x262542['data'];{const _0x2cb478=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x519791=_0x262542,_0x2fa6a8=this['editor']['data']['htmlProcessor']['domConverter'],_0x244add={'type':_0x2cb478['_getTypeCharForViewElement'](_0x519791),'name':_0x519791['name'],'attributes':Array['from'](_0x519791['getAttributes']()),'children':Array['from'](_0x519791['getChildren']())['map'](_0x1ed5af=>this['_getViewJson'](_0x1ed5af))};if(_0x262542['is']('uiElement')&&'$comment'!=_0x262542['name']){const _0x7ffa81=_0x262542['render'](_0x2fa6a8['domDocument'],_0x2fa6a8);_0x244add['children']['push'](_0x7ffa81['outerHTML']);}else{if(_0x262542['is']('rawElement')){const _0x4230bd=_0x2fa6a8['domDocument']['createElement'](_0x519791['name']);_0x262542['render'](_0x4230bd,_0x2fa6a8),_0x244add['children']['push'](_0x4230bd['innerHTML']);}}const _0x3faa2f=Array['from'](_0x519791['getCustomProperties']());_0x3faa2f['length']>0x0&&(_0x244add['customProperties']=_0x3faa2f);const _0x576ef5=_0x519791['getFillerOffset']();return null!==_0x576ef5&&(_0x244add['fillerOffset']=_0x576ef5),_0x244add;}}['_markChanges'](_0x8f9cc0,_0x47f9a2,_0x34b7ff,_0x52f1f0,_0x396775){let _0x32b323=null,_0x32d4f7=null,_0x166ac4=0x0;const _0x4bf05a=this['editor']['model'];for(let _0x334c66=0x0;_0x334c66<_0x47f9a2['length'];_0x334c66++){const _0x4e0bcb=this['_getVidAttributeName'](_0x47f9a2[_0x334c66]),_0x211667=_0x47f9a2[_0x334c66]['item']['getAttribute'](_0x4e0bcb),_0x147b99=_0x34b7ff['get'](_0x211667),_0x455492=_0x334c66==_0x47f9a2['length']-0x1;(!_0x32b323&&_0x147b99&&(_0x32b323=_0x147b99,_0x32d4f7=_0x47f9a2[_0x334c66]),_0x32b323&&(!_0x147b99||_0x147b99['userId']!=_0x32b323['userId']))&&(_0x45cfa3(_0x147b99,F(_0x32d4f7,_0x8f9cc0,_0x4bf05a),F(_0x47f9a2[_0x334c66],_0x8f9cc0,_0x4bf05a)),_0x32b323=_0x147b99||null,_0x32d4f7=_0x147b99?_0x47f9a2[_0x334c66]:null),_0x32b323&&_0x455492&&_0x45cfa3(_0x147b99,F(_0x32d4f7,_0x8f9cc0,_0x4bf05a),B(_0x47f9a2[_0x334c66],_0x8f9cc0,_0x4bf05a));}function _0x45cfa3(_0x1a0d26,_0x29f066,_0x3c6960){const _0xa44e2a=_0x32b323['userId'],_0x53ef20='revision:'+_0x52f1f0+':'+_0xa44e2a+':'+_0x166ac4++,_0x1c50d2=_0x4bf05a['createRange'](_0x29f066,_0x3c6960);_0x8f9cc0['markers']['set'](_0x53ef20,_0x1c50d2),null!==_0xa44e2a&&_0x396775['add'](_0xa44e2a);}}['_getVidAttributeName'](_0x5e4f41){switch(_0x5e4f41['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x67e78e,_0x1bba41){_0x67e78e['baseVersion']=null;for(const _0x2122b7 in _0x67e78e){const _0x4e0a80=_0x67e78e[_0x2122b7];if(_0x4e0a80 instanceof ft){const _0xdfb0c9=_0x1bba41['get'](_0x4e0a80['root']['rootName']);_0x67e78e[_0x2122b7]=this['_fixPosition'](_0x4e0a80,_0xdfb0c9);}if(_0x4e0a80 instanceof lt){const _0x2ef96c=_0x1bba41['get'](_0x4e0a80['root']['rootName']);_0x67e78e[_0x2122b7]=this['_fixRange'](_0x4e0a80,_0x2ef96c);}'root'===_0x2122b7&&(_0x67e78e['root']=_0x1bba41['get'](_0x67e78e['root']['rootName']));}}['_fixRange'](_0x45dd3d,_0x30e384){return this['editor']['model']['createRange'](this['_fixPosition'](_0x45dd3d['start'],_0x30e384),this['_fixPosition'](_0x45dd3d['end'],_0x30e384));}['_fixPosition'](_0x5a7864,_0x2d4a70){return this['editor']['model']['createPositionFromPath'](_0x2d4a70,_0x5a7864['path'],_0x5a7864['stickiness']);}['_handleInsertOperation'](_0x2e22ec){const _0x2bd822=this['_idsRoots']['get'](_0x2e22ec['position']['root']['rootName']),_0x11eaa6=this['_fixPosition'](_0x2e22ec['position'],_0x2bd822),_0x4d4e0e=null===_0x2e22ec['_authorId']?null:_0x2e22ec['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x439583=_0x11eaa6['parent'],_0x167468=this['_revisionId'],_0x5e3c6e=[];for(const _0x2a476a of _0x2e22ec['nodes'])if(_0x2a476a['is']('element'))_0x5e3c6e['push'](this['_makeIdsRoot'](_0x2a476a));else{for(let _0x4db4db=0x0;_0x4db4db<_0x2a476a['offsetSize'];_0x4db4db++)_0x5e3c6e['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0xf8c5d3=this['_revisionId'];for(let _0x718d56=_0x167468;_0x718d56<_0xf8c5d3;_0x718d56++)this['_touched']['set'](_0x718d56,{'userId':_0x4d4e0e});_0x439583['_insertChild'](_0x11eaa6['offset'],_0x5e3c6e);}['_handleMoveOperation'](_0x3eab27){(_0x3eab27=this['_cloneOperation'](_0x3eab27,this['_idsRoots']))['_execute']();const _0x24c90f=null===_0x3eab27['_authorId']?null:_0x3eab27['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1bfc4e=_0x3eab27['getMovedRangeStart'](),_0x762826=_0x1bfc4e['parent'],_0x13e0e2=_0x1bfc4e['offset'];!function _0x1b892e(_0x43464c,_0x199c36,_0x2c4313,_0x63091a){for(let _0x3405cc=_0x2c4313;_0x3405cc<_0x63091a;_0x3405cc++){const _0x4b2a4e=_0x199c36['getChild'](_0x3405cc);_0x4b2a4e['is']('element','$text')?_0x43464c['set'](_0x4b2a4e['getAttribute']('vid'),{'userId':_0x24c90f}):(_0x43464c['set'](_0x4b2a4e['getAttribute']('vid_start'),{'userId':_0x24c90f}),_0x1b892e(_0x43464c,_0x4b2a4e,0x0,_0x4b2a4e['childCount']),_0x43464c['set'](_0x4b2a4e['getAttribute']('vid_end'),{'userId':_0x24c90f}));}}(this['_touched'],_0x762826,_0x13e0e2,_0x13e0e2+_0x3eab27['howMany']);}['_handleMergeOperation'](_0x531e42){const _0x3e007c=null===(_0x531e42=this['_cloneOperation'](_0x531e42,this['_idsRoots']))['_authorId']?null:_0x531e42['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x42513d=_0x531e42['targetPosition']['parent'],_0x159cdb=_0x531e42['sourcePosition']['parent'],_0x2d25f1=_0x42513d['getAttribute']('vid_end'),_0x4d598d=_0x159cdb['getAttribute']('vid_start');_0x42513d['_setAttribute']('vid_end',_0x159cdb['getAttribute']('vid_end')),_0x159cdb['_setAttribute']('vid_end',_0x2d25f1),this['_touched']['set'](_0x4d598d,{'userId':_0x3e007c}),this['_touched']['set'](_0x2d25f1,{'userId':_0x3e007c}),_0x531e42['_execute']();}['_handleSplitOperation'](_0x2159e5){const _0xcc7614=null===(_0x2159e5=this['_cloneOperation'](_0x2159e5,this['_idsRoots']))['_authorId']?null:_0x2159e5['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x327441=_0x2159e5['graveyardPosition'],_0x7643b8=_0x2159e5['splitPosition']['parent'];_0x2159e5['_execute']();const _0x3afc59=_0x7643b8['getAttribute']('vid_end'),_0xfe8901=_0x2159e5['insertionPosition']['nodeAfter'];if(_0x327441){const _0x1f0b5b=_0xfe8901['getAttribute']('vid_end'),_0x5901b9=_0x7643b8['getAttribute']('vid_end');_0x7643b8['_setAttribute']('vid_end',_0x1f0b5b),_0xfe8901['_setAttribute']('vid_end',_0x5901b9),this['_touched']['set'](_0x7643b8['getAttribute']('vid_end'),{'userId':_0xcc7614}),this['_touched']['set'](_0xfe8901['getAttribute']('vid_start'),{'userId':_0xcc7614});}else{const _0x199601=this['_revisionId']++,_0x595777=this['_revisionId']++;_0x7643b8['_setAttribute']('vid_end',_0x199601),_0xfe8901['_setAttribute']('vid_start',_0x595777),_0xfe8901['_setAttribute']('vid_end',_0x3afc59),this['_touched']['set'](_0x199601,{'userId':_0xcc7614}),this['_touched']['set'](_0x595777,{'userId':_0xcc7614});}}['_handleMarkerOperation'](_0x4e1712){if(!_0x4e1712['affectsData'])return;const _0x3baa62=(_0x4e1712=this['_cloneOperation'](_0x4e1712,this['_diffRoots']))['oldRange']?_0x4e1712['oldRange']['root']:null,_0x28447f=_0x4e1712['newRange']?_0x4e1712['newRange']['root']:null;_0x3baa62&&this['_markers']['delete'](_0x4e1712['name']),_0x28447f&&this['_markers']['set'](_0x4e1712['name'],_0x4e1712['newRange']['clone']());const _0x31f598=null===_0x4e1712['_authorId']?null:_0x4e1712['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2a1334=_0x4e1712['name'];if(!this['_touchedMarkers']['has'](_0x2a1334))return void this['_touchedMarkers']['set'](_0x2a1334,{'range':_0x4e1712['oldRange'],'userId':_0x31f598});const _0xdd527b=this['_touchedMarkers']['get'](_0x2a1334),_0x42e068=_0xdd527b['range'],_0x4daee2=_0x4e1712['newRange'];null==_0x42e068&&null==_0x4daee2||_0x42e068&&_0x4daee2&&_0x42e068['isEqual'](_0x4daee2)?this['_touchedMarkers']['delete'](_0x4e1712['name']):_0xdd527b['userId']=_0x31f598;}['_handleRootOperation'](_0x36bc4d,_0xe988e3){this['_diffRoots']['has'](_0x36bc4d['rootName'])?this['_diffRoots']['get'](_0x36bc4d['rootName'])['_isAttached']=_0x36bc4d['isAdd']:(this['_diffRoots']['set'](_0x36bc4d['rootName'],P(_0x36bc4d['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x36bc4d['rootName'],{}),_0xe988e3&&this['_idsRoots']['set'](_0x36bc4d['rootName'],P(_0x36bc4d['rootName'],!0x0)));const _0x2b21b9=null===_0x36bc4d['_authorId']?null:_0x36bc4d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3f8ef4=this['_touchedRoots']['get'](_0x36bc4d['rootName']);_0x3f8ef4&&_0x3f8ef4['userId']===_0x2b21b9?this['_touchedRoots']['delete'](_0x36bc4d['rootName']):this['_touchedRoots']['set'](_0x36bc4d['rootName'],{'userId':_0x2b21b9,'isAttached':_0x36bc4d['isAdd']});}['_handleRootAttributeOperation'](_0x1a53d0){const _0x46095a=this['_diffRootsAttributes']['get'](_0x1a53d0['root']['rootName']);null===_0x1a53d0['newValue']?delete _0x46095a[_0x1a53d0['key']]:_0x46095a[_0x1a53d0['key']]=_0x1a53d0['newValue'];}}function N(_0x3ff3e7){const _0x23c7bf=P(_0x3ff3e7['rootName'],_0x3ff3e7['isAttached']());for(const _0x29f496 of _0x3ff3e7['getChildren']()){const _0x49b42b=_0x29f496['_clone'](!0x0);_0x23c7bf['_appendChild'](_0x49b42b);}return _0x23c7bf;}function P(_0x27ca46,_0x2d0043=!0x0){const _0x5aa657=new vt();return _0x5aa657['rootName']=_0x27ca46,_0x5aa657['_isAttached']=_0x2d0043,_0x5aa657['isAttached']=()=>_0x5aa657['_isAttached'],_0x5aa657;}function F(_0x350079,_0x1626dc,_0x230b8d){const _0x4a1c2e='elementEnd'==_0x350079['type']?_0x230b8d['createPositionAt'](_0x350079['item'],'end'):_0x230b8d['createPositionBefore'](_0x350079['item']);return _0x230b8d['createPositionFromPath'](_0x1626dc,_0x4a1c2e['path'],_0x4a1c2e['stickiness']);}function B(_0x3982b0,_0x6659b,_0x50b584){const _0x17037c='elementStart'==_0x3982b0['type']?_0x50b584['createPositionAt'](_0x3982b0['item'],0x0):_0x50b584['createPositionAfter'](_0x3982b0['item']);return _0x50b584['createPositionFromPath'](_0x6659b,_0x17037c['path'],_0x17037c['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x167ebb,_0x5b289e){super(_0x167ebb),this['focusTracker']=new _0x3ba14f(),this['keystrokes']=new _0x3a128e(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x5b289e),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x49f6a8(this);}['render'](){super['render'](),_0x423d6a({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0xce76d8=_0x2398ce=>_0x2398ce['stopPropagation']();this['keystrokes']['set']('arrowright',_0xce76d8),this['keystrokes']['set']('arrowleft',_0xce76d8),this['keystrokes']['set']('arrowup',_0xce76d8),this['keystrokes']['set']('arrowdown',_0xce76d8);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x1df79d){this['revisionNameInputView']['fieldView']['element']['value']=_0x1df79d['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x194c36){const _0x29b4c7=new _0x508dc2(this['locale'],_0x237e6b),_0x2312c3=_0x29b4c7['fieldView'];_0x2312c3['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x18477e=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x194c36&&(_0x18477e+='\x20('+g(this['locale'],'optional')+')'),(_0x29b4c7['label']=_0x18477e,_0x2312c3['on']('input',()=>{this['revisionNameInputValue']=_0x2312c3['element']['value']['trim']();}),_0x29b4c7);}}class f extends _0x41a129{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x41899f=this['editor'],_0x36e465=_0x41899f['plugins']['get']('RevisionTracker');_0x41899f['ui']['componentFactory']['add']('revisionHistory',_0x3e84c7=>{const _0x50e4ea=_0x3c3924(_0x3e84c7),_0x4cee42=_0x50e4ea['panelView']['children'],_0x1b1604=new _0x2d4913(_0x3e84c7),_0x507578=new _0x53e2e8(_0x3e84c7),_0x3276ec=new te(_0x3e84c7),_0x233913=new _0x53e2e8(_0x3e84c7),_0x2d209b=new te(_0x3e84c7);return _0x50e4ea['bind']('isEnabled')['to'](_0x36e465,'isReady',_0x36e465,'isEnabled',_0x41899f,'isReadOnly',(_0x6624e3,_0x498eb3,_0x5cb087)=>_0x6624e3&&_0x498eb3&&!_0x5cb087),_0x50e4ea['buttonView']['set']({'icon':_0x178224,'label':g(_0x3e84c7,'Revision\x20history'),'tooltip':!0x0}),_0x3276ec['set']({'label':g(_0x3e84c7,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x3276ec['bind']('isEnabled')['to'](_0x36e465,'isReady',_0x36e465,'isEnabled',_0x41899f,'isReadOnly',(_0x281a59,_0x3d7606,_0x182a9c)=>_0x281a59&&_0x3d7606&&!_0x182a9c),_0x3276ec['on']('execute',()=>this['_showDialog']()),_0x2d209b['set']({'label':g(_0x3e84c7,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x2d209b['bind']('isEnabled')['to'](_0x36e465,'isReady',_0x41899f,'isReadOnly',(_0x2ffae0,_0xc96e72)=>_0x2ffae0&&!_0xc96e72),_0x2d209b['on']('execute',()=>{_0x41899f['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x50e4ea['isOpen']=!0x1,_0x41899f['editing']['view']['focus']();}),_0x507578['children']['add'](_0x3276ec),_0x233913['children']['add'](_0x2d209b),_0x1b1604['role']='menu',_0x1b1604['items']['addMany']([_0x507578,_0x233913]),_0x4cee42['add'](_0x1b1604),_0x50e4ea;}),_0x41899f['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x3dd81f=this['editor'],_0x21e1c6=_0x3dd81f['locale'],_0x3d0824=new _0x9f80ed(_0x21e1c6),_0x10ff58=new _0x11702a(_0x21e1c6);_0x3d0824['buttonView']['set']({'icon':_0x178224,'label':g(_0x21e1c6,'Revision\x20history')});const _0x26c67b=new _0x27312d(_0x21e1c6,_0x3d0824),_0x515edb=new _0x4bfec4(_0x21e1c6);_0x515edb['set']({'label':g(_0x21e1c6,'Save\x20current\x20revision')}),_0x515edb['delegate']('execute')['to'](_0x3d0824),_0x515edb['on']('execute',()=>{this['_showDialog']();}),_0x26c67b['children']['add'](_0x515edb),_0x10ff58['items']['add'](_0x26c67b);const _0x979c2d=new _0x27312d(_0x21e1c6,_0x3d0824),_0x2c2743=new _0x4bfec4(_0x21e1c6);return _0x2c2743['set']({'label':g(_0x21e1c6,'Open\x20revision\x20history')}),_0x2c2743['delegate']('execute')['to'](_0x3d0824),_0x2c2743['on']('execute',()=>{_0x3dd81f['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x979c2d['children']['add'](_0x2c2743),_0x10ff58['items']['add'](_0x979c2d),_0x3d0824['panelView']['children']['add'](_0x10ff58),_0x3d0824;}['_showDialog'](){const _0x2ac044=this['editor'],_0xb6dec8=_0x2ac044['locale'],_0x4fef43=_0x2ac044['plugins']['get']('Dialog'),_0x3bd58d=_0x2ac044['plugins']['get']('RevisionTracker');function _0x2c87c6(_0x215919){_0x2ac044['config']['get']('revisionHistory.requireRevisionName')&&''===_0x215919['revisionName']?_0x215919['revisionNameInputView']['errorText']=g(_0xb6dec8,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x2ac044['plugins']['get'](u)['saveRevision']({'name':_0x215919['revisionName']}),_0x4fef43['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x2c87c6(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x4fef43['show']({'id':'revisionSave','title':g(_0xb6dec8,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x2ac044['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x4fef43['hide']()},{'label':g(_0x2ac044['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x375e1e){_0x375e1e['bind']('isEnabled')['to'](_0x3bd58d,'isReady',_0x3bd58d,'isEnabled',_0x2ac044,'isReadOnly',(_0x108ec4,_0x3ccff8,_0x260886)=>_0x108ec4&&_0x3ccff8&&!_0x260886);},'onExecute':()=>_0x2c87c6(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x175e70=this['editor'],_0x3aef23=_0x175e70['locale'];this['_saveRevisionFormView']=new hs(_0x3aef23,_0x175e70['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends ts{['changeId'];['_model'];constructor(_0x41cd22,_0x3a8491){super(_0x41cd22),this['_model']=_0x3a8491,this['changeId']=_0x3a8491['id'];const _0x121b13=this['bindTemplate'],_0x324137=g(_0x41cd22,_0x3a8491['data']['isSuggestion']?'Suggested\x20by':'add'==_0x3a8491['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x3a8491['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x121b13['to']('type',_0x89d599=>'ck-revision-change__'+_0x89d599)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x324137}]},{'text':'\x20'+_0x3a8491['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x5a2ca5(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x4c0e47){super(),this['id']=_0x4c0e47['id']||_0x14b3ba(),this['author']=_0x4c0e47['author'],this['type']=_0x4c0e47['type'],this['data']=_0x4c0e47['data']||{},this['rootName']=_0x4c0e47['rootName'],this['set']('createdAt',_0x4c0e47['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(_0x342820,_0x48e22b){this['newRevisionId']=_0x342820,this['oldRevisionId']=_0x48e22b,this['changes']=new _0x4da787();}['_setChanges'](_0xf684b0){for(const _0x517ce6 of _0xf684b0)this['changes']['add'](_0x517ce6);}}class m extends _0x41a129{['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[_0x5bfa03,_0x5b5e95,I,V];}constructor(_0x52e459){super(_0x52e459),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',(_0x5e1505,_0x6b0305,_0x25ee49)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x1ca995=>{for(const _0x27e071 of this['editor']['editing']['view']['document']['roots'])_0x25ee49?_0x1ca995['removeClass']('ck-editor__editable__overlay',_0x27e071):_0x1ca995['addClass']('ck-editor__editable__overlay',_0x27e071);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x2fe93e=>null!==_0x2fe93e),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x1ee397,_0x2be286,_0x422102)=>_0x1ee397&&_0x422102?_0x2be286['changes']['getIndex'](_0x422102):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x514483,_0x54ac6e)=>_0x514483?_0x54ac6e['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x5b5e95);}['init'](){const _0xc77cce=this['editor'],_0x368b90=new wt(_0xc77cce,{'direction':'backward'}),_0x3714b9=new wt(_0xc77cce,{'direction':'forward'});(_0xc77cce['commands']['add']('showPreviousChange',_0x368b90),_0xc77cce['commands']['add']('showNextChange',_0x3714b9),_0xc77cce['commands']['add']('restoreRevision',new mt(_0xc77cce)),this['on']('change:numberOfChanges',()=>{_0x368b90['refresh'](),_0x3714b9['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0xc77cce['enableReadOnlyMode']('revision-viewer'),_0xc77cce['plugins']['has']('WidgetToolbarRepository'))&&_0xc77cce['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x2b70d3){return await this['_utils']['loadRevisionData'](_0x2b70d3,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x2b70d3);}async['getRevisionRootsAttributes'](_0x555d2e){return await this['_utils']['loadRevisionData'](_0x555d2e,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x555d2e);}async['compare'](_0x2dd821,_0xafcad6,_0x595d2e=!0x1){if(!this['isEnabled'])return;const _0x15a53e=this['diff'],_0x18a985=this['repository'],_0x466bd1='string'==typeof _0x2dd821?_0x18a985['getRevision'](_0x2dd821):_0x2dd821,_0xa72afa='string'==typeof _0xafcad6?_0x18a985['getRevision'](_0xafcad6):_0xafcad6,_0x1370ed=_0x466bd1['id'],_0x21df56=_0xa72afa?_0xa72afa['id']:null;if(!_0x595d2e&&this['diff']&&this['diff']['newRevisionId']===_0x1370ed&&this['diff']['oldRevisionId']===_0x21df56)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x1370ed,_0x21df56);const _0x4e525c=this['_getRevisionsRange'](_0x466bd1,_0xa72afa,!0x0)['map'](_0x211041=>this['_utils']['loadRevisionData'](_0x211041,this['adapter']));return _0x4e525c['push'](new Promise(_0x5656db=>{setTimeout(_0x5656db,0x14);})),Promise['all'](_0x4e525c)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x51f320=this['_getDiff'](_0x1370ed,_0x21df56);for(const _0x245ee1 of _0x51f320['changes'])this['_changeIdToChange']['set'](_0x245ee1['id'],_0x245ee1);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x1bbd1a=>{for(const _0x2f0d0d of this['editor']['model']['document']['getRootNames']())_0x1bbd1a['detachRoot'](_0x2f0d0d);for(const _0x442e27 of Object['keys'](_0x51f320['model'])){const _0x4c1c88=_0x1bbd1a['addRoot'](_0x442e27);for(const _0x2781cf of Object['keys'](_0x51f320['attributes'][_0x442e27]))_0x1bbd1a['setAttribute'](_0x2781cf,_0x51f320['attributes'][_0x442e27][_0x2781cf],_0x4c1c88);_0x1bbd1a['insert'](_0x51f320['model'][_0x442e27],_0x4c1c88,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x51f320['changes'])),this['isReady']=!0x0;})['catch'](_0x109d3a=>{console['error'](_0x109d3a),this['_cleanUp'](),_0x15a53e&&(this['diff']=_0x15a53e),this['isReady']=!0x0;});}['addRevisionData'](_0x2e0eb2,_0x471f02){const _0x578547=this['repository']['createRevision'](_0x2e0eb2);return _0x578547['on']('_update',(_0x3e1099,_0x1dab16,_0x1ea043)=>_0x471f02(_0x1dab16,_0x1ea043,_0x578547)),this['repository']['addRevision'](_0x578547),_0x578547;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x11cd0e=>{for(const _0x2c2812 of this['editor']['model']['document']['getRootNames']())_0x11cd0e['detachRoot'](_0x2c2812);});}['_sortAndFilterDiffChanges'](_0x176d13){const _0x3fad2f=[],_0x38c015=new Map();for(const _0x34b2c9 of this['editor']['model']['document']['getRootNames']()){const _0x468679=this['editor']['editing']['view']['getDomRoot'](_0x34b2c9);if(!_0x468679)continue;const _0x331352=_0x468679['getClientRects']()['item'](0x0);_0x331352&&(_0x3fad2f['push'](_0x34b2c9),_0x38c015['set'](_0x34b2c9,_0x331352));}return _0x3fad2f['sort']((_0xe6f3d4,_0x4ece1b)=>{const _0x16740d=_0x38c015['get'](_0xe6f3d4),_0x3ef7ca=_0x38c015['get'](_0x4ece1b);return _0x16740d['y']-_0x3ef7ca['y']||_0x16740d['x']-_0x3ef7ca['x'];}),(_0x176d13=_0x176d13['filter'](_0x45de45=>_0x3fad2f['includes'](_0x45de45['rootName'])))['sort']((_0x59a616,_0x27a821)=>_0x3fad2f['indexOf'](_0x59a616['rootName'])-_0x3fad2f['indexOf'](_0x27a821['rootName'])),_0x176d13;}['_makeTape'](_0x27b532){const _0x22cac2=Array['from'](_0x27b532['markers'])['filter'](([_0x52db60,_0x379e2f])=>_0x52db60['startsWith']('revision:')&&!_0x379e2f['isCollapsed']),_0x320e2e=Array['from'](this['editor']['model']['createRangeIn'](_0x27b532)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x22cac2['length'])for(const _0x10cbc7 of _0x320e2e){const [_0x266fe0,_0x376b58]=_0x22cac2[0x0],[,_0x458ea5,_0x5cd94e]=_0x266fe0['split'](':');if(_0x376b58['end']['isEqual'](_0x10cbc7['nextPosition'])&&_0x22cac2['shift'](),(_0x10cbc7['previousPosition']['isEqual'](_0x376b58['start'])||_0x10cbc7['previousPosition']['isAfter'](_0x376b58['start']))&&('insertion'==_0x458ea5?_0x10cbc7['isAdded']={'userId':_0x5cd94e}:'deletion'==_0x458ea5&&(_0x10cbc7['isRemoved']={'userId':_0x5cd94e})),0x0==_0x22cac2['length'])break;}return _0x320e2e;}['_refreshStartEndIndex'](_0xf87ae4){const _0x17fec5=new Map();for(let _0x401e25=0x0;_0x401e25<_0xf87ae4['length'];_0x401e25++)'text'===_0xf87ae4[_0x401e25]['type']?(_0xf87ae4[_0x401e25]['item']['startIndex']=_0x401e25,_0xf87ae4[_0x401e25]['item']['endIndex']=_0x401e25):('elementStart'===_0xf87ae4[_0x401e25]['type']?_0xf87ae4[_0x401e25]['item']['startIndex']=_0x401e25:'elementEnd'===_0xf87ae4[_0x401e25]['type']&&(_0xf87ae4[_0x401e25]['item']['endIndex']=_0x401e25),_0x17fec5['set'](_0xf87ae4[_0x401e25]['id'],_0x401e25));for(const _0x1b1029 of _0x17fec5['values']())'elementStart'===_0xf87ae4[_0x1b1029]['type']?_0xf87ae4[_0x1b1029]['item']['endIndex']=_0x17fec5['get'](_0xf87ae4[_0x1b1029]['pairId']):'elementEnd'===_0xf87ae4[_0x1b1029]['type']&&(_0xf87ae4[_0x1b1029]['item']['startIndex']=_0x17fec5['get'](_0xf87ae4[_0x1b1029]['pairId']));}['_processTape'](_0x5bedce){for(let _0x47a012=0x0;_0x47a012<_0x5bedce['length'];_0x47a012++){if('elementStart'===_0x5bedce[_0x47a012]['type'])_0x5bedce[_0x47a012]['item']['startIndex']=_0x47a012;else{if('elementEnd'===_0x5bedce[_0x47a012]['type']){_0x5bedce[_0x47a012]['item']['endIndex']=_0x47a012;const _0x56e302=_0x5bedce[_0x47a012]['item']['startIndex'];_0x5bedce[_0x56e302]['pairId']=_0x5bedce[_0x47a012]['id'],_0x5bedce[_0x47a012]['pairId']=_0x5bedce[_0x56e302]['id'];}else _0x5bedce[_0x47a012]['item']['startIndex']=_0x47a012,_0x5bedce[_0x47a012]['item']['endIndex']=_0x47a012,_0x5bedce[_0x47a012]['pairId']=null;}_0x5bedce[_0x47a012]['markersStart']||(_0x5bedce[_0x47a012]['markersStart']=[],_0x5bedce[_0x47a012]['markersEnd']=[]);}}['_markInsertions'](_0x358ee6,_0x1325d9){const _0x4a2c40=_0x358ee6['filter'](_0x1951cb=>!_0x1951cb['isAdded']);for(let _0x596084=0x0;_0x596084<_0x1325d9['length'];_0x596084++)_0x1325d9[_0x596084]['isAdded']&&(_0x4a2c40[_0x596084]['isAdded']=_0x1325d9[_0x596084]['isAdded']);}['_getDiff'](_0x5b70fe,_0x1c8ede=null){const _0x1fc731=this['repository']['getRevision'](_0x5b70fe),_0x4e5f77=_0x1c8ede?this['repository']['getRevision'](_0x1c8ede):null,_0x445bf9=this['_getRevisionsRange'](_0x1fc731,_0x4e5f77),_0x3af3f0=_0x445bf9[_0x445bf9['length']-0x1],_0x54168b=new Map(),_0x3390a6={'model':{},'attributes':{},'changes':[]},_0x3182bd=new Set(),_0x4dec8d=new Map();for(let _0x3e6c6f=_0x445bf9['length']-0x1;_0x3e6c6f>=0x0;_0x3e6c6f--){const _0x4058a5=_0x445bf9[_0x3e6c6f];for(const _0xe94bc8 of Object['keys'](_0x4058a5['diffData']))if(_0x4058a5['diffData'][_0xe94bc8]['attachChange']){const _0x2aad40=_0x4058a5['diffData'][_0xe94bc8]['attachChange'];_0x2aad40['isAttached']?(_0x3182bd['add'](_0xe94bc8),_0x4dec8d['has'](_0xe94bc8)&&_0x4dec8d['get'](_0xe94bc8)['userId']==_0x2aad40['userId']?_0x4dec8d['delete'](_0xe94bc8):_0x4dec8d['set'](_0xe94bc8,_0x2aad40)):_0x4dec8d['has'](_0xe94bc8)?(_0x3182bd['delete'](_0xe94bc8),_0x4dec8d['delete'](_0xe94bc8)):(_0x3182bd['add'](_0xe94bc8),_0x4dec8d['set'](_0xe94bc8,_0x2aad40));}else _0x3182bd['add'](_0xe94bc8);}for(const _0x26d58f of _0x3182bd){const _0x1de04a=_0x4dec8d['has'](_0x26d58f)&&!_0x4dec8d['get'](_0x26d58f)['isAttached'];let _0x54ece2=_0x1de04a?_0x445bf9['length']-0x1:0x0;const _0x206866=_0x1de04a?-0x1:0x1;for(;_0x445bf9[_0x54ece2];){const _0x4e7211=_0x445bf9[_0x54ece2];if(_0x4e7211['diffData'][_0x26d58f]){const _0x1e3b2a=_0x1de04a?_0x4e7211['diffData'][_0x26d58f]['attributesBefore']:_0x4e7211['diffData'][_0x26d58f]['attributesAfter'];_0x3390a6['attributes'][_0x26d58f]=_0x1e3b2a?_0xb7c964(_0x1e3b2a):{};break;}_0x54ece2+=_0x206866;}}for(const _0x21ec56 of _0x445bf9){_0x21ec56['model']={};for(const _0x1c28fb of _0x21ec56['authors'])_0x54168b['set'](_0x1c28fb['id'],_0x1c28fb);for(const _0x17dd04 of _0x3182bd){const _0x332099=_0x21ec56['diffData'][_0x17dd04]?_0x21ec56['diffData'][_0x17dd04]['insertions']:'[]',_0x1baf98=_0x21ec56['diffData'][_0x17dd04]?_0x21ec56['diffData'][_0x17dd04]['deletions']:'[]';_0x21ec56['model'][_0x17dd04]={'insertions':this['_utils']['_makeModelFromViewString'](_0x332099),'deletions':this['_utils']['_makeModelFromViewString'](_0x1baf98)};}}for(const _0xb9e869 of _0x3182bd){let _0x157c93=null,_0x3f1a53=0x0;const _0x21f3cd=new Map(Array['from'](_0x1fc731['model'][_0xb9e869]['insertions']['markers'])['filter'](([_0x351328])=>!_0x351328['startsWith']('revision:')));let _0xcdfa4e=0x0;for(const _0x287a23 of _0x445bf9){const _0xdd516b=this['_makeTape'](_0x287a23['model'][_0xb9e869]['insertions']);_0x287a23==_0x1fc731?(_0x157c93=_0xdd516b,_0x3f1a53=_0x157c93['length'],_0x157c93['forEach'](_0x2edcde=>{_0x2edcde['id']=_0xcdfa4e++;}),this['_processTape'](_0x157c93)):this['_markInsertions'](_0x157c93,_0xdd516b);const _0x14d645=_0x157c93['filter'](_0x5ae204=>!_0x5ae204['isAdded'])['map'](_0xf0467e=>_0xf0467e['id']);let _0x5904c8=0x0;const _0x3bbd06=this['_makeTape'](_0x287a23['model'][_0xb9e869]['deletions']);_0x3bbd06['forEach'](_0x5603fb=>{_0x5603fb['isRemoved']?_0x5603fb['id']=_0x3f1a53++:_0x5603fb['id']=_0x14d645[_0x5904c8++];}),this['_processTape'](_0x3bbd06),this['_setDistance'](_0x157c93,'isAdded'),this['_setDistance'](_0x3bbd06,'isRemoved'),_0x287a23==_0x1fc731&&this['_markMarkers'](_0x157c93,_0x21f3cd),_0x157c93=this['_joinTapes'](_0x157c93,_0x3bbd06),this['_refreshStartEndIndex'](_0x157c93),this['_setDistance'](_0x157c93,'isRemoved');}_0x157c93=_0x157c93['filter'](_0x4faac7=>!(_0x4faac7['isAdded']&&_0x4faac7['isRemoved']));const _0x54a7e1=new Map(_0x3af3f0['model'][_0xb9e869]['deletions']['markers']),_0x2c95d0=new Set(_0x21f3cd['keys']());for(const _0x161fe3 of _0x54a7e1['keys']())_0x2c95d0['delete'](_0x161fe3);this['_markSuggestions'](_0x157c93,_0x2c95d0),this['_fixObsoleteTags'](_0x157c93),_0x157c93=this['_removeMissingPairs'](_0x157c93),_0x157c93=this['_markMismatchedRemovedTags'](_0x157c93),_0x157c93=this['_removeUnsupportedChanges'](_0x157c93);const {root:_0x1aa1fc,changes:_0x464dca}=this['_makeModelFromTape'](_0x157c93,_0x54168b,_0xb9e869);_0x3390a6['model'][_0xb9e869]=_0x1aa1fc;const _0x282ef9=_0x4dec8d['get'](_0xb9e869);if(_0x282ef9){const _0x430207=_0x54168b['get'](_0x282ef9['userId']),_0x59b4d7=new r({'author':_0x430207,'type':_0x282ef9['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0xb9e869});_0x464dca['unshift'](_0x59b4d7),_0x3390a6['attributes'][_0xb9e869]['revisionHistoryAttachChange']=_0x59b4d7['id'];}_0x3390a6['changes']=_0x3390a6['changes']['concat'](_0x464dca);}return _0x3390a6;}['_markMarkers'](_0x3d57cc,_0x43ecc9){for(let _0x212804=0x0;_0x212804<_0x3d57cc['length'];_0x212804++)for(const [_0x189d8d,_0x4d4ff5]of _0x43ecc9)!_0x4d4ff5['isCollapsed']&&_0x4d4ff5['start']['isEqual'](_0x3d57cc[_0x212804]['previousPosition'])&&_0x3d57cc[_0x212804]['markersStart']['push'](_0x189d8d),_0x4d4ff5['end']['isEqual'](_0x3d57cc[_0x212804]['nextPosition'])&&_0x3d57cc[_0x212804]['markersEnd']['push'](_0x189d8d);}['_joinTapes'](_0x511e3a,_0x3815e4){let _0xdeaa79=[],_0x54b89b=0x0,_0x4c0826=0x0;for(;_0x54b89b<_0x511e3a['length']||_0x4c0826<_0x3815e4['length'];){const _0x21a9dc=_0x511e3a[_0x54b89b]||{},_0x3df58d=_0x3815e4[_0x4c0826]||{};if(_0x21a9dc['id']==_0x3df58d['id'])_0x54b89b++,_0x4c0826++,_0xdeaa79['push'](_0x21a9dc);else{if(_0x3df58d['isRemoved']&&_0x21a9dc['isAdded']){const {commonTape:_0x191643,iEnd:_0xfaec0c,jEnd:_0x2cec99}=this['_threeWayMerge'](_0x511e3a,_0x54b89b,_0x3815e4,_0x4c0826);_0xdeaa79=_0xdeaa79['concat'](_0x191643),_0x54b89b=_0xfaec0c,_0x4c0826=_0x2cec99;}else _0x3df58d['isRemoved']?(_0x4c0826++,_0xdeaa79['push'](_0x3df58d)):(_0x54b89b++,_0xdeaa79['push'](_0x21a9dc));}}return _0xdeaa79;}['_markSuggestions'](_0x57f7be,_0x244db8){const _0x5709fb=[];for(let _0x858098=0x0;_0x858098<_0x57f7be['length'];_0x858098++){for(let _0x3325c2=0x0;_0x3325c2<_0x57f7be[_0x858098]['markersStart']['length'];_0x3325c2++){const _0x45172f=_0x57f7be[_0x858098]['markersStart'][_0x3325c2];if(!_0x244db8['has'](_0x45172f))continue;const {group:_0x52e429,type:_0x170502,authorId:_0x5c0299}=_0x3985d2(_0x45172f);'revision-suggestion'!=_0x52e429||'insertion'!=_0x170502&&'deletion'!=_0x170502||(_0x5709fb['unshift']({'type':_0x170502,'name':_0x45172f,'userId':_0x5c0299}),_0x57f7be[_0x858098]['markersStart']['splice'](_0x3325c2,0x1),_0x3325c2--);}_0x3b8321(_0x57f7be[_0x858098]);for(let _0x261e49=0x0;_0x261e49<_0x57f7be[_0x858098]['markersEnd']['length'];_0x261e49++){const _0x13a0f7=_0x57f7be[_0x858098]['markersEnd'][_0x261e49];if(!_0x244db8['has'](_0x13a0f7))continue;const {group:_0x41e62c,type:_0xf72fca}=_0x3985d2(_0x13a0f7);if('revision-suggestion'!=_0x41e62c||'insertion'!=_0xf72fca&&'deletion'!=_0xf72fca)continue;_0x57f7be[_0x858098]['markersEnd']['splice'](_0x261e49,0x1),_0x261e49--;const _0x583e85=_0x5709fb['findIndex'](_0xf27144=>_0xf27144['name']==_0x13a0f7);_0x583e85>-0x1&&_0x5709fb['splice'](_0x583e85,0x1);}}function _0x3985d2(_0x7370f){const _0x3bdff1=_0x7370f['split'](':');return{'group':_0x3bdff1[0x0],'type':_0x3bdff1[0x1],'subType':_0x3bdff1['length']>=0x5?_0x3bdff1[0x2]:null,'id':_0x3bdff1['length']<0x5?_0x3bdff1[0x2]:_0x3bdff1[0x3],'authorId':_0x3bdff1['length']<0x5?_0x3bdff1[0x3]:_0x3bdff1[0x4],'markerCount':0x6==_0x3bdff1['length']?_0x3bdff1[0x5]:null};}function _0x3b8321(_0x1433ca){for(let _0x273f40=0x0;_0x273f40<_0x5709fb['length'];_0x273f40++){if(_0x1433ca['isAdded']&&'insertion'==_0x5709fb[_0x273f40]['type']&&_0x1433ca['isAdded']['userId']==_0x5709fb[_0x273f40]['userId'])return _0x1433ca['isAddSuggestion']=_0x5709fb[_0x273f40],void delete _0x1433ca['isAdded'];if(!_0x1433ca['isAdded']&&!_0x1433ca['isRemoved']&&'deletion'==_0x5709fb[_0x273f40]['type'])return void(_0x1433ca['isRemoveSuggestion']=_0x5709fb[_0x273f40]);}}}['_setDistance'](_0x46345a,_0x10c3fc){let _0x2d0817=0x0,_0x282fcd=!0x1;const _0x42a00b=new Map();for(const _0x395b58 of _0x46345a)_0x395b58[_0x10c3fc]?_0x282fcd&&(_0x2d0817++,_0x282fcd=!0x1):(_0x2d0817++,_0x282fcd=!0x0),_0x42a00b['set'](_0x395b58['id'],_0x2d0817);for(let _0x16fee2=0x0;_0x16fee2<_0x46345a['length'];_0x16fee2++){if('isRemoved'==_0x10c3fc&&_0x46345a[_0x16fee2]['isAdded']||'isAdded'==_0x10c3fc&&_0x46345a[_0x16fee2]['isRemoved'])continue;if('text'==_0x46345a[_0x16fee2]['type']){_0x46345a[_0x16fee2]['distance']=0x0;continue;}const _0x2f20e8=_0x42a00b['get'](_0x46345a[_0x16fee2]['pairId']),_0x3fcaa9=_0x42a00b['get'](_0x46345a[_0x16fee2]['id']);_0x46345a[_0x16fee2]['distance']=_0x2f20e8-_0x3fcaa9;}}['_getRevisionsRange'](_0x18fa1b,_0x1fdb77,_0x40d726=!0x1){const _0x5e015c=[];let _0x39bf70=this['repository']['getIndex'](_0x18fa1b),_0x3e80d7=this['repository']['getIndex'](_0x1fdb77);for(-0x1==_0x3e80d7&&(_0x3e80d7=this['repository']['_revisions']['length'],_0x40d726=!0x1);_0x39bf70<_0x3e80d7;)_0x5e015c['push'](this['repository']['getRevision'](_0x39bf70)),_0x39bf70++;return _0x40d726&&_0x5e015c['push'](this['repository']['getRevision'](_0x39bf70)),_0x5e015c;}['_threeWayMerge'](_0x131f0f,_0x462667,_0x51b4a9,_0x28e1f7){const _0x4c63eb=this['editor']['model']['schema'];let _0x1d3a2b=_0x462667;for(;_0x131f0f[_0x1d3a2b]&&_0x131f0f[_0x1d3a2b]['isAdded'];)_0x1d3a2b++;let _0x5dcab5=_0x28e1f7;for(;_0x51b4a9[_0x5dcab5]&&_0x51b4a9[_0x5dcab5]['isRemoved'];)_0x5dcab5++;_0x5dccf0(_0x131f0f,_0x462667,_0x1d3a2b),_0x5dccf0(_0x51b4a9,_0x28e1f7,_0x5dcab5);const _0x2a294b=_0x51b4a9['slice'](_0x28e1f7,_0x5dcab5)['concat'](_0x131f0f['slice'](_0x462667,_0x1d3a2b));return _0x2a294b['sort']((_0x288deb,_0x337a1d)=>_0x288deb['side']!=_0x337a1d['side']?_0x288deb['side']-_0x337a1d['side']:_0x288deb['level']!=_0x337a1d['level']?_0x288deb['level']-_0x337a1d['level']:_0x288deb['distance']!=_0x337a1d['distance']?_0x337a1d['distance']-_0x288deb['distance']:!!_0x288deb['isAdded']!=!!_0x337a1d['isAdded']?-0x1==_0x288deb['side']||0x0==_0x288deb['side']?_0x288deb['isAdded']?-0x1:0x1:_0x288deb['isAdded']?0x1:-0x1:_0x288deb['index']-_0x337a1d['index']),{'commonTape':_0x2a294b,'iEnd':_0x1d3a2b,'jEnd':_0x5dcab5};function _0x5dccf0(_0x2afdd1,_0x27d3c4,_0x414cc1){let _0x1509fc=-0x1,_0x475638=Number['POSITIVE_INFINITY'],_0x172ed0=!0x0;for(let _0x2d5de2=_0x27d3c4;_0x2d5de2<_0x414cc1;_0x2d5de2++)if(_0x4c63eb['isInline'](_0x2afdd1[_0x2d5de2]['item'])||(_0x172ed0=!0x1),_0x2afdd1[_0x2d5de2]['item']['startIndex']<_0x27d3c4&&(_0x1509fc=_0x2d5de2),_0x2afdd1[_0x2d5de2]['item']['endIndex']>=_0x414cc1){_0x475638=_0x2d5de2;break;}_0x172ed0&&(_0x1509fc=_0x414cc1-0x1);for(let _0x3145a6=_0x27d3c4;_0x3145a6<_0x414cc1;_0x3145a6++)_0x2afdd1[_0x3145a6]['side']=_0x3145a6<=_0x1509fc?-0x1:_0x3145a6<_0x475638?0x0:0x1,_0x2afdd1[_0x3145a6]['index']=_0x3145a6;let _0x9aae6e=0x0;for(let _0x534e7a=_0x27d3c4;_0x534e7a<=_0x1509fc;_0x534e7a++)0x0==_0x2afdd1[_0x534e7a]['distance']?_0x2afdd1[_0x534e7a]['level']=_0x9aae6e:(_0x9aae6e++,_0x2afdd1[_0x534e7a]['level']=_0x9aae6e,_0x9aae6e++);for(let _0x559ea1=_0x27d3c4;_0x559ea1<_0x414cc1;_0x559ea1++)0x0==_0x2afdd1[_0x559ea1]['side']&&(_0x2afdd1[_0x559ea1]['level']=_0x9aae6e);_0x9aae6e=0x0;for(let _0x3b57db=_0x414cc1-0x1;_0x3b57db>=_0x475638;_0x3b57db--)0x0==_0x2afdd1[_0x3b57db]['distance']?_0x2afdd1[_0x3b57db]['level']=_0x9aae6e:(_0x9aae6e--,_0x2afdd1[_0x3b57db]['level']=_0x9aae6e,_0x9aae6e--);}}['_fixObsoleteTags'](_0x5a145d){const _0x266ae3=new Map(),_0x215af5=this['editor']['model']['schema'];for(let _0x2c37bb=0x1;_0x2c37bb<_0x5a145d['length'];_0x2c37bb++){let _0x334e4e,_0x19e227,_0xf1343e;const _0x217a94=_0x5a145d[_0x2c37bb],_0x266f74=_0x5a145d[_0x2c37bb-0x1];if('text'==_0x217a94['type'])continue;if(_0x217a94['type']!=_0x266f74['type'])continue;if(!_0x215af5['isBlock'](_0x266f74['item'])||_0x215af5['isLimit'](_0x266f74['item']))continue;if(!_0x215af5['isBlock'](_0x217a94['item'])||_0x215af5['isLimit'](_0x217a94['item']))continue;if((_0x5a145d[_0x2c37bb]['isAdded']||_0x5a145d[_0x2c37bb]['isAddSuggestion'])&&_0x5a145d[_0x2c37bb-0x1]['isRemoved'])_0x334e4e=_0x5a145d[_0x2c37bb],_0x19e227=_0x5a145d[_0x2c37bb-0x1],_0xf1343e=_0x2c37bb-0x1;else{if(!_0x5a145d[_0x2c37bb]['isRemoved']||!_0x5a145d[_0x2c37bb-0x1]['isAdded']&&!_0x5a145d[_0x2c37bb-0x1]['isAddSuggestion'])continue;_0x334e4e=_0x5a145d[_0x2c37bb-0x1],_0x19e227=_0x5a145d[_0x2c37bb],_0xf1343e=_0x2c37bb;}const _0x14f0dd=_0x334e4e['level']==_0x19e227['level'],_0x481f3d=Math['abs'](_0x334e4e['level'])<Math['abs'](_0x19e227['level'])&&0x0==_0x19e227['distance'];(_0x14f0dd||_0x481f3d)&&(_0x266ae3['set'](_0x19e227['id'],_0x334e4e['id']),_0x5a145d['splice'](_0xf1343e,0x1),_0x2c37bb--,_0x334e4e['isAdded']=!0x1);}for(let _0x51055a=0x0;_0x51055a<_0x5a145d['length'];_0x51055a++)_0x266ae3['has'](_0x5a145d[_0x51055a]['pairId'])&&(_0x5a145d[_0x51055a]['pairId']=_0x266ae3['get'](_0x5a145d[_0x51055a]['pairId']));}['_removeMissingPairs'](_0x3056d7){const _0x23fcf2=new Set(_0x3056d7['map'](_0x3ced4f=>_0x3ced4f['id']));for(let _0x27d3f2=0x0;_0x27d3f2<_0x3056d7['length'];_0x27d3f2++)_0x23fcf2['has'](_0x3056d7[_0x27d3f2]['pairId'])||0x0==_0x3056d7[_0x27d3f2]['distance']||(_0x3056d7[_0x27d3f2]['isIncorrect']=!0x0);return _0x3056d7['filter'](_0x4071e7=>!_0x4071e7['isIncorrect']);}['_markMismatchedRemovedTags'](_0x5e1469){const _0x5a6adf=new Set();for(let _0x5ed54c=0x0;_0x5ed54c<_0x5e1469['length'];_0x5ed54c++){if(_0x5a6adf['has'](_0x5e1469[_0x5ed54c]['id'])&&_0x5e1469[_0x5ed54c]['isRemoved']&&(_0x5e1469[_0x5ed54c]['isIncorrect']=!0x0),_0x5e1469[_0x5ed54c]['isIncorrect'])continue;if(0x0==_0x5e1469[_0x5ed54c]['distance'])continue;if('elementStart'!=_0x5e1469[_0x5ed54c]['type'])continue;if(null==_0x5e1469[_0x5ed54c]['pairId'])continue;let _0x164609=_0x5ed54c+0x1,_0x289d17=0x0;for(;_0x5e1469[_0x164609]['id']!=_0x5e1469[_0x5ed54c]['pairId'];)'elementStart'==_0x5e1469[_0x164609]['type']?_0x289d17++:'elementEnd'==_0x5e1469[_0x164609]['type']&&_0x289d17--,_0x164609++;if(0x0!=_0x289d17){if(_0x5e1469[_0x5ed54c]['isRemoved'])_0x5e1469[_0x5ed54c]['isIncorrect']=!0x0;else{for(;_0x164609!=_0x5ed54c;)_0x5e1469[_0x164609]['isRemoved']&&0x0!=_0x5e1469[_0x164609]['distance']&&(_0x5e1469[_0x164609]['isIncorrect']=!0x0,_0x5a6adf['add'](_0x5e1469[_0x164609]['pairId'])),_0x164609--;}}}return _0x5e1469['filter'](_0x39bf78=>!_0x39bf78['isIncorrect']);}['_removeUnsupportedChanges'](_0x958dcb){const _0x213f55=this['editor']['model']['schema'];for(let _0x1bd494=0x0;_0x1bd494<_0x958dcb['length'];_0x1bd494++){if(!(_0x958dcb[_0x1bd494]['isAdded']||_0x958dcb[_0x1bd494]['isAddSuggestion']||_0x958dcb[_0x1bd494]['isRemoved']||_0x958dcb[_0x1bd494]['isRemoveSuggestion']))continue;if(0x0==_0x958dcb[_0x1bd494]['distance'])continue;const _0x117b0b=_0x958dcb[_0x1bd494]['item'];_0x213f55['isBlock'](_0x117b0b)||_0x213f55['isLimit'](_0x117b0b)||(_0x958dcb[_0x1bd494]['isAdded']&&delete _0x958dcb[_0x1bd494]['isAdded'],_0x958dcb[_0x1bd494]['isAddSuggestion']&&delete _0x958dcb[_0x1bd494]['isAddSuggestion'],_0x958dcb[_0x1bd494]['isRemoveSuggestion']&&delete _0x958dcb[_0x1bd494]['isRemoveSuggestion'],_0x958dcb[_0x1bd494]['isRemoved']&&(_0x958dcb[_0x1bd494]['isIncorrect']=!0x0));}return _0x958dcb['filter'](_0x1c7153=>!_0x1c7153['isIncorrect']);}['_makeModelFromTape'](_0x589822,_0x48514d,_0x54ddde){const _0x5f0f55=new vt(),_0x3fe23c=[],_0x1410b9=new Map(),_0x427f1a=this['editor']['model'],_0x2d80de=_0x427f1a['schema'],_0x3df7fb=[_0x5f0f55],_0x6d35f6={},_0x3fdd6c={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0xdf9e95=null;const _0x1ec99f=[0x0];for(let _0x448b6a=0x0;_0x448b6a<_0x589822['length'];_0x448b6a++)if('elementStart'===_0x589822[_0x448b6a]['type']){_0x589822[_0x448b6a]['previousPosition']=_0x427f1a['createPositionFromPath'](_0x5f0f55,_0x1ec99f);const _0x4aa20c=new ut(_0x589822[_0x448b6a]['item']['name'],_0x589822[_0x448b6a]['item']['getAttributes']());_0x3df7fb[0x0]['_appendChild'](_0x4aa20c),_0x1ec99f['push'](0x0),_0x3df7fb['unshift'](_0x4aa20c),_0x589822[_0x448b6a]['nextPosition']=_0x427f1a['createPositionFromPath'](_0x5f0f55,_0x1ec99f);}else'elementEnd'===_0x589822[_0x448b6a]['type']?(_0x3df7fb['shift'](),_0x589822[_0x448b6a]['previousPosition']=_0x427f1a['createPositionFromPath'](_0x5f0f55,_0x1ec99f),_0x1ec99f['pop'](),_0x1ec99f[_0x1ec99f['length']-0x1]++,_0x589822[_0x448b6a]['nextPosition']=_0x427f1a['createPositionFromPath'](_0x5f0f55,_0x1ec99f)):(_0x589822[_0x448b6a]['previousPosition']=_0x427f1a['createPositionFromPath'](_0x5f0f55,_0x1ec99f),_0xdf9e95?_0xdf9e95['_data']+=_0x589822[_0x448b6a]['item']['data']:_0xdf9e95=new gt(_0x589822[_0x448b6a]['item']['data'],_0x589822[_0x448b6a]['item']['getAttributes']()),_0x589822[_0x448b6a+0x1]&&'text'===_0x589822[_0x448b6a+0x1]['type']&&_0x769581(_0xdf9e95,_0x589822[_0x448b6a+0x1]['item'])||(_0x3df7fb[0x0]['_appendChild'](_0xdf9e95),_0xdf9e95=null),_0x1ec99f[_0x1ec99f['length']-0x1]+=_0x589822[_0x448b6a]['item']['offsetSize'],_0x589822[_0x448b6a]['nextPosition']=_0x427f1a['createPositionFromPath'](_0x5f0f55,_0x1ec99f));for(let _0x13d4ba=0x0;_0x13d4ba<_0x589822['length'];_0x13d4ba++){const _0x5eecbe=_0x589822[_0x13d4ba]['previousPosition'],_0x4c1d32=_0x589822[_0x13d4ba]['nextPosition'];for(const _0x275de1 of _0x589822[_0x13d4ba]['markersStart'])_0x1410b9['set'](_0x275de1,{'start':_0x5eecbe,'end':null});_0x327f42('isRemoveSuggestion',_0x13d4ba,_0x5eecbe,_0x4c1d32),_0x327f42('isAddSuggestion',_0x13d4ba,_0x5eecbe,_0x4c1d32),_0x327f42('isRemoved',_0x13d4ba,_0x5eecbe,_0x4c1d32),_0x327f42('isAdded',_0x13d4ba,_0x5eecbe,_0x4c1d32);for(const _0x24c80c of _0x589822[_0x13d4ba]['markersEnd']){const _0x471a68=_0x1410b9['get'](_0x24c80c);_0x471a68?_0x471a68['end']=_0x4c1d32:_0x1410b9['set'](_0x24c80c,{'start':_0x4c1d32,'end':_0x4c1d32});}}for(const [_0x26c602,_0x4c3c03]of _0x1410b9){const _0x3763f8=this['editor']['model']['createRange'](_0x4c3c03['start'],_0x4c3c03['end']);_0x5f0f55['markers']['set'](_0x26c602,_0x3763f8);}return _0x3fe23c['sort']((_0x18cf14,_0x133a2c)=>{const _0x320b37=_0x5f0f55['markers']['get']('revision:'+_0x18cf14['id']),_0x5c1335=_0x5f0f55['markers']['get']('revision:'+_0x133a2c['id']);return _0x320b37['start']['isBefore'](_0x5c1335['start'])?-0x1:_0x320b37['start']['isAfter'](_0x5c1335['start'])?0x1:_0x320b37['end']['isBefore'](_0x5c1335['end'])?-0x1:_0x320b37['end']['isAfter'](_0x5c1335['end'])?0x1:'add'===_0x18cf14['type']?-0x1:0x1;}),{'root':_0x5f0f55,'changes':_0x3fe23c};function _0x327f42(_0x15e032,_0x52c159,_0x19ccb5,_0x416c39){const _0x52c2a5=!!_0x589822[_0x52c159][_0x15e032],_0x213de1=_0x52c2a5?_0x589822[_0x52c159][_0x15e032]['userId']:null,_0x36843c=_0x52c159===_0x589822['length']-0x1,_0x5aad65=_0x3fdd6c[_0x15e032][0x0],_0x164bd9=_0x2d80de['isObject'](_0x589822[_0x52c159]['item']);!_0x6d35f6[_0x15e032]&&_0x52c2a5?_0x6d35f6[_0x15e032]={'start':_0x19ccb5,'tapeItem':_0x589822[_0x52c159],'userId':_0x213de1,'type':_0x15e032}:_0x6d35f6[_0x15e032]&&!_0x52c2a5?(_0x6d35f6[_0x15e032]['end']=_0x19ccb5,_0xdfb40c(_0x6d35f6[_0x15e032]),_0x6d35f6[_0x15e032]=null):_0x6d35f6[_0x15e032]&&_0x52c2a5&&_0x6d35f6[_0x15e032]['userId']!==_0x213de1&&(_0x6d35f6[_0x15e032]['end']=_0x19ccb5,_0x5aad65&&_0x5aad65['userId']===_0x6d35f6[_0x15e032]['userId']||_0xdfb40c(_0x6d35f6[_0x15e032]),_0x6d35f6[_0x15e032]={'start':_0x19ccb5,'tapeItem':_0x589822[_0x52c159],'userId':_0x213de1,'type':_0x15e032}),_0x6d35f6[_0x15e032]&&_0x164bd9&&('elementStart'!==_0x589822[_0x52c159]['type']||_0x5aad65&&_0x5aad65['userId']===_0x213de1||_0x3fdd6c[_0x15e032]['unshift']({'userId':_0x213de1,'object':_0x589822[_0x52c159]['item'],'change':_0x6d35f6[_0x15e032]}),'elementEnd'===_0x589822[_0x52c159]['type']&&_0x5aad65&&_0x5aad65['object']===_0x589822[_0x52c159]['item']&&(_0x3fdd6c[_0x15e032]['shift'](),_0x6d35f6[_0x15e032]=_0x5aad65['change'])),_0x6d35f6[_0x15e032]&&_0x36843c&&(_0x6d35f6[_0x15e032]['end']=_0x416c39,_0xdfb40c(_0x6d35f6[_0x15e032]),_0x6d35f6[_0x15e032]=null);}function _0xdfb40c({start:_0x5bfb76,end:_0xe82bfe,tapeItem:_0x2fc8bc,userId:_0x3f51ab,type:_0x4b597b}){const _0x500ff9=_0x2fc8bc['item'],_0x27aef2=_0x427f1a['schema']['isBlock'](_0x500ff9)&&!_0x427f1a['schema']['isLimit'](_0x500ff9),_0x3ce93f=_0x5bfb76['nodeAfter']==_0xe82bfe['parent']&&_0xe82bfe['isAtStart'];if(_0x27aef2&&_0x3ce93f)return;const _0x3191c6=_0x427f1a['createRange'](_0x5bfb76,_0xe82bfe),_0x5dbf36=_0x48514d['get'](_0x3f51ab),_0x48fa80=new r({'author':_0x5dbf36,'type':'isAdded'==_0x4b597b||'isAddSuggestion'==_0x4b597b?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x4b597b||'isRemoveSuggestion'==_0x4b597b},'createdAt':new Date(),'rootName':_0x54ddde});_0x3fe23c['push'](_0x48fa80),_0x5f0f55['markers']['set']('revision:'+_0x48fa80['id'],_0x3191c6);}function _0x769581(_0x2a43eb,_0x4e98c5){const _0x8d61c=_0x2a43eb['getAttributes'](),_0x10b583=_0x4e98c5['getAttributes']();for(const _0x59ddcf of _0x8d61c){if(_0x59ddcf[0x1]!==_0x4e98c5['getAttribute'](_0x59ddcf[0x0]))return!0x1;_0x10b583['next']();}return _0x10b583['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x406a24=>{const _0x12d4d4=_0x406a24['markerName']['split'](':')[0x1],_0x30df98=this['_getChangeFromId'](_0x12d4d4);if(!_0x30df98)return null;const _0x4abc58='add'==_0x30df98['type']?'insertion':'deletion',_0x535a20=['ck-suggestion-marker','ck-suggestion-marker-'+_0x4abc58];return _0x30df98['data']['isSuggestion']&&_0x535a20['push']('ck-suggestion-marker-'+_0x4abc58+'-new'),this['activeChange']==_0x30df98&&_0x535a20['push']('ck-suggestion-marker--active'),{'classes':_0x535a20,'attributes':{'data-change-id':_0x12d4d4}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x535a4c=>{_0x535a4c['on']('element:pre',(_0x3f758c,_0x47fd51,_0x39af0d)=>{const _0x3a5e67=_0x47fd51['viewItem']['getChild'](0x0);if(!_0x3a5e67||!_0x3a5e67['is']('element','code'))return;if(!_0x39af0d['consumable']['consume'](_0x3a5e67,{'attributes':['vid_start','vid_end']}))return;const _0x212a25=_0x47fd51['modelRange']['start']['nodeAfter'];_0x39af0d['writer']['setAttribute']('vid_start',_0x3a5e67['getAttribute']('vid_start'),_0x212a25),_0x39af0d['writer']['setAttribute']('vid_end',_0x3a5e67['getAttribute']('vid_end'),_0x212a25);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x562704=>{_0x562704['on']('element',(_0x3ad709,_0x547db0,_0x1c8f3d)=>{if(!_0x1c8f3d['consumable']['consume'](_0x547db0['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x547db0['modelRange']['isCollapsed'])return;const _0x42f19c=_0x547db0['modelRange']['start']['nodeAfter'];_0x42f19c['hasAttribute']('vid_start')||_0x42f19c['hasAttribute']('vid')||(_0x1c8f3d['writer']['setAttribute']('vid_start',_0x547db0['viewItem']['getAttribute']('vid_start'),_0x42f19c),_0x1c8f3d['writer']['setAttribute']('vid_end',_0x547db0['viewItem']['getAttribute']('vid_end'),_0x42f19c));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x4fff89=>_0x4fff89['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x5df26f,[,_0x59e020])=>{['vid_start','vid_end','vid']['includes'](_0x59e020)&&(_0x5df26f['return']=!0x0,_0x5df26f['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x5b62fe=>{_0x5b62fe['on']('attribute:vid',(_0x30af16,_0x32e4ce,_0x22aefa)=>{if('\x20'!=_0x32e4ce['item']['data']||_0x32e4ce['item']['parent']['maxOffset']>0x1)return;if(!_0x22aefa['consumable']['consume'](_0x32e4ce['item'],_0x30af16['name']))return;const _0x1903f8=_0x22aefa['writer'],_0x5e8769=_0x22aefa['mapper']['toViewRange'](_0x32e4ce['range']);_0x1903f8['wrap'](_0x5e8769,_0x1903f8['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x54ba3d){const _0x294764=_0x54ba3d['plugins']['get']('RevisionViewer');return(_0x158424,_0x52ab2f,_0x567ea8)=>{const _0x2d7795=_0x52ab2f['markerName']['split'](':')[0x1],_0x5d5578=_0x294764['_getChangeFromId'](_0x2d7795);if(!_0x5d5578)return null;const _0x3887f6='add'==_0x5d5578['type']?'split':'merge';if(!_0x567ea8['consumable']['test'](_0x52ab2f['markerRange'],_0x158424['name']))return;const _0x27c668=_0x52ab2f['markerRange']['getWalker'](),_0x5c97f2=_0x52ab2f['markerRange']['start'],_0x2f925f=_0x54ba3d['model']['schema'];let _0x2dfc51=null,_0x4f97ec=null,_0x1f1650=!0x1,_0x4e3365=!0x1;for(const _0x1e6565 of _0x27c668){const _0x54d316=_0x1e6565['item'];_0x1f1650=_0x1f1650||_0x2f925f['isContent'](_0x54d316);const _0x58b67b=_0x567ea8['mapper']['toViewElement'](_0x54d316);if(_0x58b67b&&_0x58b67b['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1e6565['type']&&(_0x2f925f['isBlock'](_0x54d316)&&!_0x2f925f['isLimit'](_0x54d316)&&(_0x54d316['nextSibling']||_0x5c97f2['isAtEnd']?_0x2dfc51&&_0x2dfc51['parent']==_0x54d316||(_0x2dfc51=_0x54d316,_0x2dbd1a(_0x1e6565['previousPosition']),_0x4e3365=!0x0):_0x4f97ec=_0x4f97ec||_0x1e6565['previousPosition']));}function _0x2dbd1a(_0x63c559){const _0x304948=_0x567ea8['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3887f6}),_0xeb03b=_0x567ea8['mapper']['toViewPosition'](_0x63c559);_0x5d5578['data']['isSuggestion']&&_0x567ea8['writer']['addClass']('ck-suggestion-marker-'+_0x3887f6+'-new',_0x304948),_0x294764['activeChange']==_0x5d5578&&_0x567ea8['writer']['addClass']('ck-suggestion-marker--active',_0x304948),_0x567ea8['writer']['insert'](_0xeb03b,_0x304948),_0x567ea8['mapper']['bindElementToMarker'](_0x304948,_0x52ab2f['markerName']);}_0x1f1650||_0x4e3365||!_0x4f97ec||_0x2dbd1a(_0x4f97ec);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x5d87be,_0x487241,_0x4744c8)=>{const _0x3d4449=_0x4744c8['mapper']['markerNameToElements'](_0x487241['markerName']);if(_0x3d4449){for(const _0x2994a0 of _0x3d4449)(_0x2994a0['hasClass']('ck-suggestion-marker-split')||_0x2994a0['hasClass']('ck-suggestion-marker-merge'))&&(_0x4744c8['mapper']['unbindElementFromMarkerName'](_0x2994a0,_0x487241['markerName']),_0x4744c8['writer']['remove'](_0x2994a0));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x1113c0,_0x5e2b3a,_0x26612d)=>{const _0x1f58d8=_0x5e2b3a['markerName']['split'](':')[0x1],_0x45ed92=this['_getChangeFromId'](_0x1f58d8);if(!_0x45ed92)return null;const _0x3ba2ac='add'==_0x45ed92['type']?'split':'merge';if(_0x26612d['consumable']['test'](_0x5e2b3a['markerRange'],_0x1113c0['name']))for(const _0x4fba66 of _0x5e2b3a['markerRange']['getItems']()){if(!_0x4fba66['is']('element','softBreak'))continue;const _0x5c277d=_0x26612d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3ba2ac}),_0x2757de=_0x26612d['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x4fba66));_0x45ed92['data']['isSuggestion']&&_0x26612d['writer']['addClass']('ck-suggestion-marker-'+_0x3ba2ac+'-new',_0x5c277d),this['activeChange']==_0x45ed92&&_0x26612d['writer']['addClass']('ck-suggestion-marker--active',_0x5c277d),_0x26612d['writer']['insert'](_0x2757de,_0x5c277d),_0x26612d['mapper']['bindElementToMarker'](_0x5c277d,_0x5e2b3a['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x1260ab=>{for(const _0x542a18 of this['editor']['model']['document']['getRootNames']()){const _0x68f707=this['editor']['model']['document']['getRoot'](_0x542a18),_0x3cc20c=this['editor']['editing']['view']['document']['getRoot'](_0x542a18);if(_0x3cc20c){const _0x2cd36b=_0x68f707['getAttribute']('revisionHistoryAttachChange');if(_0x1260ab['removeAttribute']('data-change-id',_0x3cc20c),_0x1260ab['removeClass']('ck-revision-history-root-add',_0x3cc20c),_0x1260ab['removeClass']('ck-revision-history-root-remove',_0x3cc20c),_0x1260ab['removeClass']('ck-revision-history-root--active',_0x3cc20c),_0x2cd36b){const _0x1c5140=this['_getChangeFromId'](_0x2cd36b);if(!_0x1c5140)return null;_0x1260ab['setAttribute']('data-change-id',_0x2cd36b,_0x3cc20c),_0x1260ab['addClass']('ck-revision-history-root-'+_0x1c5140['type'],_0x3cc20c),this['activeChange']==_0x1c5140&&_0x1260ab['addClass']('ck-revision-history-root--active',_0x3cc20c);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x4fda40=>'revision-comment:'+_0x4fda40,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x179213=>'revision-suggestion:'+_0x179213,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x2fe8d7=>({'name':'suggestion:'+_0x2fe8d7,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0xbe8294=>{const _0x39eb39=_0xbe8294['markerName']['split'](':')[0x1];return'insertion'!=_0x39eb39&&'deletion'!=_0x39eb39?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x39eb39]};}}),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',(_0x4c2526,_0x7596db,_0x43e5ee)=>{const _0xd4f802=_0x43e5ee['mapper']['markerNameToElements'](_0x7596db['markerName']);if(_0xd4f802){for(const _0x1aec48 of _0xd4f802)_0x1aec48['is']('uiElement')&&(_0x43e5ee['mapper']['unbindElementFromMarkerName'](_0x1aec48,_0x7596db['markerName']),_0x43e5ee['writer']['remove'](_0x1aec48));}},{'priority':'high'});}['_getChangeFromId'](_0x438bee){return this['_changeIdToChange']['get'](_0x438bee);}['_getViewForChange'](_0x4ed6e2){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x4ed6e2),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x5135dc,_0x1dc04d,_0x1f0b6b,_0x239f0d)=>{_0x239f0d&&this['_balloon']['remove'](_0x239f0d),_0x1f0b6b&&(this['_balloon']['add']({'view':_0x1f0b6b,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x5c5370=this['editor']['editing'],_0x1320a5=this['_getChangeFromId'](_0x1f0b6b['changeId']);let _0x598ffc;if(_0x1320a5['data']['isOnRoot']){const _0x456db=_0x5c5370['view']['getDomRoot'](_0x1320a5['rootName']);_0x598ffc=Array['from'](_0x456db['getClientRects']());}else{const _0x3f952f=this['editor']['model']['markers']['get']('revision:'+_0x1f0b6b['changeId']);_0x598ffc=Array['from'](_0x5c5370['mapper']['markerNameToElements'](_0x3f952f['name']))['map'](_0x1c64bc=>_0x5c5370['view']['domConverter']['mapViewToDom'](_0x1c64bc))['map'](_0x45a856=>Array['from'](_0x45a856['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x598ffc[0x0];return _0x598ffc['find'](_0x26dabb=>_0x26dabb['top']-0x3<=this['_activeViewTarget']['y']&&_0x26dabb['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x26dabb['left']-0x3<=this['_activeViewTarget']['x']&&_0x26dabb['right']+0x3>=this['_activeViewTarget']['x'])||_0x598ffc[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x1d4ce4,_0xb4445b,_0x4d9c98,_0xae2321)=>{this['activeView']=_0x4d9c98?this['_getViewForChange'](_0x4d9c98):null,this['editor']['model']['change'](()=>{const _0x5ef869=this['editor']['editing'];_0xae2321&&(_0xae2321['data']['isOnRoot']?_0x5ef869['view']['change'](_0x14a963=>{_0x14a963['removeClass']('ck-revision-history-root--active',_0x5ef869['view']['document']['getRoot'](_0xae2321['rootName']));}):_0x5ef869['reconvertMarker']('revision:'+_0xae2321['id'])),_0x4d9c98&&(_0x4d9c98['data']['isOnRoot']?_0x5ef869['view']['change'](_0x5cbbce=>{_0x5cbbce['addClass']('ck-revision-history-root--active',_0x5ef869['view']['document']['getRoot'](_0x4d9c98['rootName']));}):_0x5ef869['reconvertMarker']('revision:'+_0x4d9c98['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x5487f4,_0x2d3681)=>{if(this['activeChange'])return;const _0xe01fbe=this['_findChangeIdFromDomTarget'](_0x2d3681['target']),_0x2fb152=this['_changeIdToChange']['get'](_0xe01fbe);_0x2fb152?(this['_activeViewTarget']={'x':_0x2d3681['domEvent']['x'],'y':_0x2d3681['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x2fb152)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x188a78,_0x208dfc)=>{const _0x3cc72b=this['_findChangeIdFromDomTarget'](_0x208dfc['target']),_0x2c97b2=this['_changeIdToChange']['get'](_0x3cc72b);_0x2c97b2?(this['_activeViewTarget']={'x':_0x208dfc['domEvent']['x'],'y':_0x208dfc['domEvent']['y']},_0x2c97b2===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x2c97b2):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x2d2b48){do{const _0x1c011f=_0x2d2b48['getAttribute']('data-change-id');if(_0x1c011f)return _0x1c011f;_0x2d2b48=_0x2d2b48['parent'];}while(_0x2d2b48);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x1b8b0f=>{for(const _0x3fd863 of this['editor']['model']['markers'])_0x1b8b0f['removeMarker'](_0x3fd863);});}}function X(_0x5dc1b5,_0x4c60b8){return(_0x5bd729,_0x325cfc,_0x24d526)=>{if(!_0x24d526['consumable']['test'](_0x325cfc['markerRange'],_0x5bd729['name']))return;const _0x44b779=_0x325cfc['markerRange']['getWalker'](),_0x162358=_0x325cfc['markerRange']['start'],_0x42ff1c=_0x5dc1b5['model']['schema'];let _0x40e13f=null,_0x1ea4d1=null,_0x400b5e=!0x1,_0x2cd3c5=!0x1;for(const _0x567395 of _0x44b779){const _0x28caea=_0x567395['item'];_0x400b5e=_0x400b5e||_0x42ff1c['isContent'](_0x28caea);const _0x998bf3=_0x24d526['mapper']['toViewElement'](_0x28caea);if(_0x998bf3&&_0x998bf3['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x567395['type']&&(_0x42ff1c['isBlock'](_0x28caea)&&!_0x42ff1c['isLimit'](_0x28caea)&&(_0x28caea['nextSibling']||_0x162358['isAtEnd']?_0x40e13f&&_0x40e13f['parent']==_0x28caea||(_0x40e13f=_0x28caea,_0x4dd4bc(_0x567395['previousPosition']),_0x2cd3c5=!0x0):_0x1ea4d1=_0x1ea4d1||_0x567395['previousPosition']));}function _0x4dd4bc(_0x44a366){const _0x445df3=_0x24d526['mapper']['toViewPosition'](_0x44a366),_0x55bdf5=_0x24d526['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x4c60b8});_0x24d526['writer']['insert'](_0x445df3,_0x55bdf5),_0x24d526['mapper']['bindElementToMarker'](_0x55bdf5,_0x325cfc['markerName']);}_0x400b5e||_0x2cd3c5||!_0x1ea4d1||_0x4dd4bc(_0x1ea4d1);};}class mt extends _0x1e26b4{constructor(_0x5ce837){super(_0x5ce837);const _0x4639cf=_0x5ce837['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x4639cf,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x4639cf,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0xfee814=this['editor'],_0x3a2851=_0xfee814['plugins']['get'](m),_0x2e3643=_0x3a2851['isReady']?_0x3a2851['diff']['newRevisionId']:null;_0xfee814['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x2e3643);}['refresh'](){const {isReady:_0x276ea2,isEnabled:_0x34c980,repository:_0x307013,diff:_0x294838}=this['editor']['plugins']['get'](m),_0x1547ec=_0x294838&&_0x307013['getLaterVisibleRevision'](_0x294838['newRevisionId']);this['isEnabled']=_0x276ea2&&_0x34c980&&Boolean(_0x1547ec);}}class wt extends _0x1e26b4{['_step'];constructor(_0x5c1abf,{direction:_0x196427}){super(_0x5c1abf);const _0x29f74a=_0x5c1abf['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x196427?0x1:-0x1,this['listenTo'](_0x29f74a,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x29f74a,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x29f74a,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x18641f=this['editor'],_0x2cd4e7=_0x18641f['plugins']['get'](m),{isNavigationMode:_0x261c8f,currentChangeNumber:_0x2053af}=_0x2cd4e7;let _0x162217;if(_0x2cd4e7['activeChange']=_0x261c8f?_0x2cd4e7['diff']['changes']['get'](_0x2053af+this['_step']):_0x2cd4e7['diff']['changes']['first'],_0x2cd4e7['activeChange']['data']['isOnRoot'])_0x162217=_0x18641f['editing']['view']['getDomRoot'](_0x2cd4e7['activeChange']['rootName']);else{const _0x5e092a=_0x18641f['model']['markers']['get']('revision:'+_0x2cd4e7['activeChange']['id']);_0x162217=_0x1d7c57(_0x18641f['editing'],_0x5e092a);}_0x37527e({'target':_0x162217,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x212569,currentChangeNumber:_0x14611d,numberOfChanges:_0x1cfeff,isReady:_0x10f0d0,isEnabled:_0x16389a}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x16389a&&_0x10f0d0&&_0x1cfeff)&&(!_0x212569||(0x1===this['_step']?_0x14611d<_0x1cfeff-0x1:_0x14611d>0x0));}}class _i extends ts{constructor(_0x2751c9){super(_0x2751c9);const _0x1994e7=this['bindTemplate'],_0x67da08=new te(_0x2751c9),_0x25fc27=new te(_0x2751c9);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',(_0x593f48,_0x53b902)=>_0x593f48&&_0x53b902>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x1167bf,_0x433403,_0x1b4d9e,_0x2b845c)=>{if(!_0x1167bf)return g(_0x2751c9,'Loading...');if(!_0x1b4d9e)return g(_0x2751c9,'No\x20changes');const _0x34ca2b=g(_0x2751c9,'NUMBER_OF_CHANGES',_0x1b4d9e);return _0x2b845c?g(_0x2751c9,'X_OF_Y_CHANGES',[_0x433403+0x1,_0x1b4d9e]):_0x34ca2b;}),_0x67da08['set']({'label':g(_0x2751c9,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x4e5b7c}),_0x25fc27['set']({'label':g(_0x2751c9,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x49080a}),_0x67da08['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x25fc27['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x67da08['on']('execute',()=>this['fire']('execute','backward')),_0x25fc27['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',_0x1994e7['if']('_isStatusLabelVisible','ck-hidden',_0x2afce5=>!_0x2afce5)]},'children':[{'text':_0x1994e7['to']('isNavigationMode',_0x7e125f=>_0x7e125f?g(_0x2751c9,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x2751c9,'Total')+':\x20')}]},{'text':_0x1994e7['to']('_statusText')}]},new _0x5f43d7(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x67da08,_0x25fc27]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x41a129{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x5b3f7a=this['editor']['editing']['view'];_0x5b3f7a['change'](_0x438709=>{for(const _0x9b8532 of _0x5b3f7a['document']['roots'])_0x438709['addClass'](le,_0x9b8532);});}['hide'](){const _0xef33c2=this['editor']['editing']['view'];_0xef33c2['change'](_0x31d240=>{for(const _0x2241b8 of _0xef33c2['document']['roots'])_0x31d240['removeClass'](le,_0x2241b8);});}}class R extends _0x41a129{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,ge];}['init'](){const _0x5526da=this['editor'],_0x2ee453=_0x5526da['plugins']['get'](m),_0x405a34=_0x5526da['plugins']['get'](ge);_0x5526da['ui']['componentFactory']['add']('exitToEditing',_0x41a001=>{const _0x34c4a9=new te(_0x41a001);return _0x34c4a9['set']({'label':g(_0x41a001,'Back\x20to\x20editing'),'icon':_0x2deb70,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x34c4a9,'execute',()=>{_0x5526da['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x34c4a9;}),_0x5526da['ui']['componentFactory']['add']('restoreRevision',_0x18554d=>{const _0x21c172=new te(_0x18554d);return _0x21c172['set']({'label':g(_0x18554d,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x21c172['bind']('isEnabled')['to'](_0x5526da['commands']['get']('restoreRevision')),this['listenTo'](_0x21c172,'execute',()=>_0x5526da['execute']('restoreRevision')),_0x21c172;}),_0x5526da['ui']['componentFactory']['add']('changesNavigation',_0x38a525=>{const _0x1d7347=new _i(_0x38a525),_0x31acc1=_0x5526da['commands']['get']('showPreviousChange'),_0x5d9a59=_0x5526da['commands']['get']('showNextChange');return _0x1d7347['bind']('isBackwardNavigationEnabled')['to'](_0x31acc1,'isEnabled'),_0x1d7347['bind']('isForwardNavigationEnabled')['to'](_0x5d9a59,'isEnabled'),_0x1d7347['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x2ee453),this['listenTo'](_0x1d7347,'execute',(_0x15db93,_0x36fc2b)=>{_0x5526da['execute']('forward'===_0x36fc2b?'showNextChange':'showPreviousChange');}),_0x1d7347;}),_0x405a34['show'](),_0x2ee453['on']('change:isReady',(_0x3c384f,_0x3480f4,_0x1d180d)=>{_0x1d180d?_0x405a34['hide']():_0x405a34['show']();});}}class at extends _0x508dc2{['_resizeObserver']=null;constructor(_0x823e14,_0x52bbe8){super(_0x823e14,_0x52bbe8);const _0xec4cad=this['bindTemplate'];this['set']({'label':g(_0x823e14,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x823e14,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0xec4cad['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 _0x27f54f=this['fieldView']['element'];this['_tooltipString']=_0x27f54f['scrollWidth']>_0x27f54f['clientWidth']&&_0x27f54f['value']||'';}}class si extends ts{constructor(_0x420b72,_0x44586c,_0xba328){super(_0x420b72);const _0x58652d=new _0x42c368();_0x58652d['set']({'content':_0x244367,'viewBox':'0\x200\x2011\x2010'});const _0x42b8fd=['ck','ck-revision-history-sidebar__revision-author'];_0xba328&&_0x42b8fd['push']('ck-revision-history-sidebar__revision-author_creator');const _0x3d0359=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x420b72,_0xba328?'Revision\x20creator':'Revision\x20author')},'children':[_0x58652d,_0x44586c['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x42b8fd},'children':_0x3d0359});}}function oi(_0x1c277a,_0x1d85c9){const _0x27a11d=_0x1c277a['bindTemplate'],_0x1d2e74=_0x1c277a['locale'],_0x2d4ba4=_0x3c3924(_0x1d2e74);_0x2d4ba4['panelPosition']='sw';const _0x577cb8=function(_0x1bb5b0,_0x31daf5){const _0x37dbc3=function(_0x2a51e3,_0x553b43){const _0x3dddab=_0x2a51e3['locale'],_0x941845={'Compare\x20against\x20selected':g(_0x3dddab,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x3dddab,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x3dddab,'Restore\x20this\x20revision')};return _0x553b43['map'](_0x1fa3ac=>{const _0x2b27d4=_0x941845[_0x1fa3ac['name']];return _0x2b27d4&&_0x2b27d4!==_0x1fa3ac['name']&&(_0x1fa3ac['name']=_0x2b27d4),_0x1fa3ac;});}(_0x1bb5b0,_0x31daf5),_0x3b0bed=new _0x4da787();for(const _0x40178d of _0x37dbc3){const _0x366dc1={'type':'button','model':new to({'label':_0x40178d['name'],'class':_0x40178d['class'],'withText':!0x0,'role':'menuitem','_action':_0x40178d['action']})};_0x366dc1['model']['bind']('isEnabled')['to'](_0x1bb5b0,'isActionsDropdownOpen',_0x3ba6d2=>'function'!=typeof _0x40178d['isEnabled']||(!_0x3ba6d2||_0x40178d['isEnabled'](_0x1bb5b0))),_0x3b0bed['add'](_0x366dc1);}return _0x3b0bed;}(_0x1c277a,_0x1d85c9);return _0x1c277a['bind']('isActionsDropdownOpen')['to'](_0x2d4ba4,'isOpen'),_0x2d4ba4['buttonView']['set']({'label':g(_0x1d2e74,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x3a9489}),_0x2d4ba4['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x27a11d['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x27a11d['to'](_0x35f0cb=>_0x35f0cb['stopPropagation']())}}),_0x2d4ba4['on']('execute',_0x1df603=>{_0x1c277a['isReady']&&'function'==typeof _0x1df603['source']['_action']&&_0x1df603['source']['_action'](_0x1c277a);}),_0x14a96c(_0x2d4ba4,_0x577cb8,{'role':'menu'}),_0x2d4ba4['listenTo'](_0x1c277a,'change:isActionsDropdownOpen',(_0x292c9f,_0x426e06,_0x23314e)=>{if(_0x23314e)for(const _0x4f73f9 of _0x2d4ba4['listView']['items']){const _0x43a553=_0x4f73f9['children']['first'],_0x16b8a5=_0x1d85c9['find'](_0x193918=>_0x193918['action']===_0x43a553['_action'])['isVisible'];_0x4f73f9['isVisible']=void 0x0===_0x16b8a5||_0x16b8a5(_0x1c277a);}}),_0x2d4ba4;}class hi extends/* #__PURE__ -- @preserve */
|
|
26
|
+
ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x2e871c,_0x2a8545,_0x37832f,_0x1a60c1){super(_0x2e871c);const _0x61ca0a=this['bindTemplate'],_0x5589ef=function(_0x313247,_0x226b98){const _0x4623f0=Array['from'](_0x226b98['authors'])['filter'](_0x535110=>_0x535110!=_0x226b98['creator']);return _0x226b98['creator']&&_0x4623f0['unshift'](_0x226b98['creator']),_0x4623f0['map'](_0x1c0451=>new si(_0x313247,_0x1c0451,_0x1c0451==_0x226b98['creator']));}(_0x2e871c,_0x2a8545);this['id']=_0x2a8545['id'],this['_revision']=_0x2a8545,this['_requireRevisionName']=_0x1a60c1,this['bind']('name','createdAt')['to'](_0x2a8545),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x126f2a=>{return _0x349a75=_0x2e871c['uiLanguage'],(_0x2ae820=_0x126f2a)['toLocaleDateString'](_0x349a75,{'month':'long','day':'numeric'})+',\x20'+_0x2ae820['toLocaleTimeString'](_0x349a75,{'hour':'numeric','minute':'numeric'});var _0x349a75,_0x2ae820;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new at(_0x2e871c,_0x237e6b),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0xe078a7=>_0xe078a7||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x1b98ba,_0x293159)=>_0x1b98ba&&_0x293159),this['revisionActionsView']=_0x37832f&&_0x37832f['length']?oi(this,_0x37832f):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x61ca0a['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x61ca0a['if']('isEnabled','ck-disabled',_0x169e3f=>!_0x169e3f),_0x61ca0a['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x61ca0a['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x61ca0a['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':_0x61ca0a['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':_0x5589ef}]},this['revisionActionsView']],'on':{'click':_0x61ca0a['to'](_0x41157e=>{_0x41157e['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x178bfd=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x178bfd,'change',()=>{this['_requireRevisionName']&&!_0x178bfd['value']||this['fire']('setName',{'id':this['id'],'name':_0x178bfd['value']}),_0x178bfd['value']||(_0x178bfd['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(_0x2b2901,_0x3e93bf){const _0x250039=_0x6dd25c['fromJSDate'](_0x2b2901)['setLocale'](_0x3e93bf),_0x3d2ff6=_0x6dd25c['local'](),_0x4f464d=_0x3d2ff6['minus']({'days':0x1})['startOf']('day');let _0x5791eb,_0x1c6314;return _0x250039['hasSame'](_0x3d2ff6,'day')?(_0x5791eb=_0x250039['startOf']('day')['toJSDate'](),_0x1c6314=_0x250039['toRelativeCalendar']()):_0x250039['hasSame'](_0x4f464d,'day')?(_0x5791eb=_0x4f464d['toJSDate'](),_0x1c6314=_0x250039['toRelativeCalendar']()):_0x250039['hasSame'](_0x3d2ff6,'week')?(_0x5791eb=_0x250039['startOf']('week')['toJSDate'](),_0x1c6314=_0x250039['weekdayLong']||''):_0x250039['hasSame'](_0x3d2ff6,'year')?(_0x5791eb=_0x250039['startOf']('month')['toJSDate'](),_0x1c6314=_0x250039['monthLong']||''):(_0x5791eb=_0x250039['startOf']('year')['toJSDate'](),_0x1c6314=String(_0x250039['year'])),{'startDate':_0x5791eb,'localizedPeriodName':_0x1c6314};}class di extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x4fa538,_0x1f6671,_0x3178a2,_0x5699a3){super(_0x4fa538);const _0x4c6ab2=ai(_0x1f6671,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x1f6671,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x3178a2,this['_requireRevisionName']=_0x5699a3,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':_0x4c6ab2}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x6342e7){const _0x4a2183=new hi(this['locale'],_0x6342e7,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x4a2183);}['removeRevision'](_0x10dfa9){const _0x15082b=this['revisionViews']['find'](_0x2478ac=>_0x2478ac['id']===_0x10dfa9['id']);this['revisionViews']['remove'](_0x15082b);}}class as extends ts{constructor(_0x2eeb74){super(_0x2eeb74);const _0x52d3d8=new _0x42c368();_0x52d3d8['content']=_0x178224,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x52d3d8,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[g(_0x2eeb74,'Revision\x20history')]}]});}}class ni extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x5df579,_0x4bc11e,_0x50e0b9,_0x2afe07){super(_0x5df579);const _0x2fdfb7=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x4bc11e,this['_revisionActions']=_0x50e0b9,this['_requireRevisionName']=_0x2afe07,this['on']('select',(_0x1e41c5,_0x1ca1e1)=>{this['fire']('revisionSelected',_0x1ca1e1);}),this['on']('setName',(_0x130fa2,_0x20c189)=>{this['fire']('revisionSetName',_0x20c189);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x5df579),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x2fdfb7['if']('isEnabled','ck-disabled',_0x36427a=>!_0x36427a)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x1947eb of this['_revisions'])this['_addRevision'](_0x1947eb);this['_revisions']['on']('add',(_0x156399,_0xd7dafc)=>{this['_addRevision'](_0xd7dafc);}),this['_revisions']['on']('remove',(_0x4e9578,_0x441639)=>{this['_removeRevision'](_0x441639);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0xec0f0d=>_0xec0f0d['revisionViews']['map'](_0x4b676e=>_0x4b676e))['flat']();}['selectRevision'](_0xd203b0){for(const _0x699240 of this['revisionViews'])_0xd203b0&&_0xd203b0['id']===_0x699240['id']?_0x699240['select']():_0x699240['deselect']();}['highlightRevisions'](_0x377d8a){for(const _0x46a389 of this['revisionViews'])_0x377d8a['some'](({id:_0x492689})=>_0x492689===_0x46a389['id'])?_0x46a389['highlight']():_0x46a389['unhighlight']();}['_addRevision'](_0x7e5b6f){const _0x476fe5=ai(_0x7e5b6f['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x48826a=this['timePeriodViews']['get'](0x0);_0x48826a&&_0x48826a['startDate']['getTime']()===_0x476fe5['getTime']()||(_0x48826a=new di(this['locale'],_0x476fe5,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x48826a)),_0x48826a['addRevision'](_0x7e5b6f);}['_removeRevision'](_0x191308){const _0x1a8319=ai(_0x191308['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x1a8319)['removeRevision'](_0x191308);}['_getTimePeriodViewByStartDate'](_0x33f822){return this['timePeriodViews']['find'](_0xbad3d9=>_0xbad3d9['startDate']['getTime']()===_0x33f822['getTime']());}}class d extends _0x41a129{['_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
|
-
_0x32b15e(_0x200c57){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x26d5a5,_0x2dd367){super(_0x2dd367),this['sourceElement']=_0x26d5a5,this['model']['document']['createRoot']();const _0x3859c2=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x3859c2);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x32aa38,_0x5f2d18){const _0x3a5e47=new this(_0x32aa38,_0x5f2d18);return await _0x3a5e47['initPlugins'](),await _0x3a5e47['ui']['init'](_0x32aa38),await _0x3a5e47['data']['init'](_0x3a5e47['config']['get']('initialData')||''),_0x3a5e47['fire']('ready'),_0x3a5e47;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class _t extends _0x5d5a5f{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1ebf45){function _0x3c046b(_0x1a759a){return _0x1a759a['map'](_0x1733c9=>String['fromCharCode'](_0x1733c9))['join']('');}super(_0x1ebf45),this['result']='end',_0x1ebf45[_0x3c046b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3c046b([0x76,0x69,0x65,0x77])][_0x3c046b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3c046b([0x61,0x75,0x74,0x6f]),_0x1ebf45[_0x3c046b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3c046b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3c046b([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3c046b([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3c046b([0x6f,0x6b])});}}class k extends _0x5d5a5f{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x1aeb8e){if(super(_0x1aeb8e),!this['editor']['config']['get']('revisionHistory'))throw new _0x52bb2b('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x784ddc=>this['_showRevisionViewer']({..._0x784ddc,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x17467a=>this['_closeRevisionViewer'](_0x17467a)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x975aa5=>this['_restoreRevision'](_0x975aa5)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x3089cc){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x3089cc;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x14a867){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x14a867);}['getRevision'](_0x171008){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x171008);}['getRevisions'](_0x321f42){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x321f42||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x5b124d=this['editor'],_0x215be7=_0x266e0d(_0x5b124d,p),_0x33098f=_0x5b124d['plugins']['get']('RevisionTracker'),_0x32f554=_0x5b124d['plugins']['get']('Users')['users'];return _0x215be7['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x215be7['lazyRoots'],(_0x215be7['plugins']['push'](_t,m,R,class extends _0x5d5a5f{static get['requires'](){return[m,'Users'];}['init'](){const _0x3d8b70=this['editor']['plugins']['get']('Users');for(const _0x557f3a of _0x32f554)_0x557f3a['isAnonymous']||_0x3d8b70['getUser'](_0x557f3a['id'])||_0x3d8b70['addUser'](_0x557f3a);const _0x25bd5f=_0x33098f['repository']['getRevisions']();let _0x54b1d6=null;const _0x2847a7=this['editor']['plugins']['get']('RevisionViewer');_0x2847a7['adapter']=_0x33098f['adapter'],_0x2847a7['bind']('isEnabled')['to'](_0x33098f),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x5b124d,'isReadOnly',_0x172ec3=>!_0x172ec3);for(const _0x23f78d of _0x25bd5f){const _0x438904=null===_0x23f78d['creator'];if(_0x438904&&_0x23f78d['toVersion']===_0x23f78d['fromVersion'])continue;const _0x3a6656=_0x23f78d['toJSON']();_0x2847a7['addRevisionData'](_0x3a6656,(_0x37d6d4,_0x465b94,_0x58f5a9)=>{if(_0x438904){if(_0x54b1d6)_0x54b1d6['_update'](_0x37d6d4,_0x465b94);else{if(!_0x465b94){const _0x1fa798=_0x58f5a9['toJSON']();_0x1fa798['id']=_0x3430e5(),_0x33098f['saveRevision'](_0x1fa798,_0x58f5a9['toVersion'])['then'](_0x2dcb6c=>{_0x54b1d6=_0x2dcb6c;});}}}else _0x23f78d['_update'](_0x37d6d4,_0x465b94);});}}},d),_0x215be7);}['_enhanceShowRevisionViewerCallback'](){const _0x8b7d5e=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x247aa8=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x436763=this['editor']['plugins']['get']('Autosave');await _0x436763['save']();}else await _0x247aa8['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x526d6d=this['editor']['plugins']['get']('Dialog');_0x526d6d['isOpen']&&_0x526d6d['hide']();}const _0x2ce832=this['_getRevisionViewerEditorConfig']();return _0x8b7d5e(_0x2ce832)['then'](_0x30b356=>{return(this['_viewerEditor']=_0x30b356,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'),_0x30b356);})['catch'](_0x1eb699=>(console['error'](_0x1eb699),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x39b121=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'](),_0x39b121(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x31a408=this['editor']['plugins']['get']('Annotations');_0x31a408['refreshVisibility'](),_0x31a408['refreshPositioning']();}})));}['_showRevisionViewer'](_0x1d609a){const _0x58fd4b=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x33da48=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x4ae2a8=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x4ae2a8,_0x1d609a)['then'](_0xc3f702=>(_0x33da48['style']['display']='block',_0x58fd4b['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0xc3f702));}['_closeRevisionViewer'](_0x4895fb){const _0x47d077=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x47d077['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x4895fb['destroy']();}async['_restoreRevision'](_0x530774){const _0x425294=this['editor'],_0x1f4f1b=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x381237=_0x425294['plugins']['get']('RevisionTracker'),_0x66cf84=_0x425294['plugins']['get']('RevisionHistoryUtils'),_0x479816=_0x1f4f1b['repository']['getRevision'](_0x530774);let _0x3c61ec,_0x2bb8df,_0x1a24cd;try{await _0x66cf84['loadRevisionData'](_0x479816,this['adapter']),_0x3c61ec=_0x66cf84['getRevisionDocumentData'](_0x479816),_0x2bb8df=_0x66cf84['getRevisionRootsAttributes'](_0x479816);}catch(_0x4fa24e){return void console['error'](_0x4fa24e);}_0x425294['model']['change'](_0x38efea=>{for(const _0x5540f3 of Array['from'](_0x425294['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x38efea['removeMarker'](_0x5540f3);}),_0x1f4f1b['isReady']=!0x1,_0x425294['model']['enqueueChange'](_0x2ca4cf=>{_0x2ca4cf['setSelection'](null),_0x2ca4cf['removeSelectionAttribute'](_0x425294['model']['document']['selection']['getAttributeKeys']());const _0x137c87=Object['keys'](_0x3c61ec);for(const _0x15bf0d of _0x425294['model']['document']['roots'])'$graveyard'!=_0x15bf0d['rootName']&&_0x15bf0d['isAttached']()&&!_0x137c87['includes'](_0x15bf0d['rootName'])&&_0x2ca4cf['detachRoot'](_0x15bf0d);for(const _0x3b1131 of _0x137c87){let _0x564c1a=_0x425294['model']['document']['getRoot'](_0x3b1131);_0x564c1a&&_0x564c1a['isAttached']()||(_0x564c1a=_0x2ca4cf['addRoot'](_0x3b1131));const _0x31126b=_0x2bb8df[_0x3b1131],_0x488e91=Object['keys'](_0x31126b),_0x1f7750=_0x3c61ec[_0x3b1131];for(const _0x4b962b of _0x564c1a['getAttributeKeys']())_0x488e91['includes'](_0x4b962b)||_0x2ca4cf['removeAttribute'](_0x4b962b,_0x564c1a);for(const _0x2970e7 of _0x488e91)_0x2ca4cf['setAttribute'](_0x2970e7,_0x2bb8df[_0x3b1131][_0x2970e7],_0x564c1a);_0x2ca4cf['remove'](_0x2ca4cf['createRangeIn'](_0x564c1a)),_0x2ca4cf['insert'](_0x425294['data']['parse'](_0x1f7750,_0x564c1a),_0x564c1a,0x0);}});const _0xb0699e=g(_0x425294['locale'],'Restored');if(_0x479816['name'])_0x1a24cd=-0x1==_0x479816['name']['indexOf'](_0xb0699e)?_0xb0699e+':\x20'+_0x479816['name']:_0x479816['name'];else _0x1a24cd=_0xb0699e+':\x20'+(_0x479816['createdAt']['toLocaleDateString'](_0x425294['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x479816['createdAt']['toLocaleTimeString'](_0x425294['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x381237['saveRevision']({'name':_0x1a24cd}),_0x1f4f1b['isReady']=!0x0,_0x425294['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(_0x5a5a6b){super(_0x5a5a6b),this['_revisionViewer']=_0x5a5a6b['plugins']['get'](m),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x3dc715=this['_revisionsRepository']['_revisions'],_0x419182=this['_createRevisionActions'](),_0x56af94=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ni(this['editor']['locale'],_0x3dc715,_0x419182,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',(_0x1f8856,_0x46722f)=>{_0x46722f['revisionViews']['on']('add',(_0x3ac555,_0xcfb8a0)=>{_0xcfb8a0['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)),_0x56af94['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0xa22539=this['_revisionsRepository']['getRevision'](0x0);if(_0xa22539){const _0x58716f=this['_revisionsRepository']['getEarlierVisibleRevision'](_0xa22539['id']);this['_revisionViewer']['compare'](_0xa22539,_0x58716f);}}['_handleRevisionSelected'](_0x5342fe,_0x52446a){const _0x37201d=this['_revisionsRepository']['getRevision'](_0x52446a['id']),_0x565621=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x37201d['id']);this['_revisionViewer']['compare'](_0x37201d,_0x565621);}['_handleRevisionSetName'](_0x31f98f,_0x184acf){this['_revisionsRepository']['getRevision'](_0x184acf['id'])['setName'](_0x184acf['name']);}['_handleDiffChange'](_0x4f9a8f,_0x1708bd,_0x354096){const _0x1d2ff1=this['_revisionsRepository']['getRevisionsInDiff'](_0x354096);_0x1d2ff1['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x1d2ff1),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x1d2ff1[0x0]));}['_createRevisionActions'](){const _0x45aae1=this['editor'],_0x2af01f=d['availableRevisionActions'],_0x3ae9f9=_0x45aae1['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x3ae9f9['length'])return _0x3ae9f9['map'](_0xefc06b=>{const _0x270a25='string'==typeof _0xefc06b?Object['assign']({},_0x2af01f[_0xefc06b]):_0xefc06b;return _0x270a25['action']=_0x270a25['action']['bind'](this,_0x45aae1),_0x270a25['isVisible']&&(_0x270a25['isVisible']=_0x270a25['isVisible']['bind'](this,_0x45aae1)),_0x270a25;});}}function pt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x57a8f9},_0x570e12)=>{const _0x32e63b=_0x57a8f9['get'](m),_0x35a6c0=_0x32e63b['repository'];let _0x136f3e=_0x32e63b['diff']['newRevisionId'],_0x31a4c5=_0x570e12['id'];_0x35a6c0['getIndex'](_0x136f3e)>_0x35a6c0['getIndex'](_0x31a4c5)&&([_0x136f3e,_0x31a4c5]=[_0x31a4c5,_0x136f3e]),_0x32e63b['compare'](_0x136f3e,_0x31a4c5);},'isVisible':({plugins:_0x10ee4d},_0x5c1629)=>{const _0x26dc37=_0x10ee4d['get'](m);return!(_0x26dc37['repository']['getRevisionsInDiff'](_0x26dc37['diff'])['length']>0x2)&&!_0x5c1629['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x9302f3,{id:_0x115f35})=>{_0x9302f3['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x115f35);},'isVisible':({plugins:_0x27db52},_0xbe01ea)=>!!_0x27db52['get'](m)['repository']['getLaterVisibleRevision'](_0xbe01ea['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x563c2e},{id:_0x3277ce,revisionNameView:_0x2ce310})=>{const _0x15abd9=_0x563c2e['get'](m),_0x51ffbb=_0x15abd9['repository']['getEarlierVisibleRevision'](_0x3277ce);_0x15abd9['compare'](_0x3277ce,_0x51ffbb),_0x2ce310['focus'](),_0x2ce310['fieldView']['select']();}}};}class tt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x416c7c,_0x4a7838){super(_0x416c7c),this['_view']=_0x4a7838,this['_toolbarConfig']=et(_0x416c7c['config']['get']('toolbar')),this['_elementReplacer']=new ot();}get['element'](){return this['view']['element'];}['init'](_0x429ec6){const _0x5cc78a=this['editor'],_0x4089dc=this['view'],_0xdd2ff7=_0x5cc78a['editing']['view'],_0x2f2151=_0x4089dc['editable'],_0xbc5a9d=_0xdd2ff7['document']['getRoot']();_0x2f2151['name']=_0xbc5a9d['rootName'],_0x4089dc['render']();const _0x3a6798=_0x2f2151['element'];this['setEditableElement'](_0x2f2151['name'],_0x3a6798),_0x4089dc['editable']['bind']('isFocused')['to'](this['focusTracker']),_0xdd2ff7['attachDomRoot'](_0x3a6798),this['_elementReplacer']['replace'](_0x429ec6,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x186595=this['view'],_0x3aa6c9=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x3aa6c9['detachDomRoot'](_0x186595['editable']['name']),_0x186595['destroy']();}['_initToolbar'](){const _0x449fe0=this['view'];_0x449fe0['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x449fe0['stickyPanel']['limiterElement']=_0x449fe0['element'],_0x449fe0['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0xb787c2})=>_0xb787c2),_0x449fe0['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x449fe0['toolbar']);}}class it extends rt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x44d551,_0x392149,_0x26d45d={}){super(_0x44d551),this['stickyPanel']=new ht(_0x44d551),this['toolbar']=new dt(_0x44d551,{'shouldGroupWhenFull':_0x26d45d['shouldToolbarGroupWhenFull']}),this['_editable']=new ct(_0x44d551,_0x392149);}['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
|
+
_0x43f491(_0x4325a2){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x31c5c2,_0x4af4a3){super(_0x4af4a3),this['sourceElement']=_0x31c5c2,this['model']['document']['createRoot']();const _0x1e9a5f=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x1e9a5f);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0xa1f874,_0x5afc4f){const _0x282499=new this(_0xa1f874,_0x5afc4f);return await _0x282499['initPlugins'](),await _0x282499['ui']['init'](_0xa1f874),await _0x282499['data']['init'](_0x282499['config']['get']('initialData')||''),_0x282499['fire']('ready'),_0x282499;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class _t extends _0x41a129{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xf5f4fb){function _0x2ec9d6(_0x2389aa){return _0x2389aa['map'](_0x37f53f=>String['fromCharCode'](_0x37f53f))['join']('');}super(_0xf5f4fb),this['result']='end',_0xf5f4fb[_0x2ec9d6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2ec9d6([0x76,0x69,0x65,0x77])][_0x2ec9d6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2ec9d6([0x61,0x75,0x74,0x6f]),_0xf5f4fb[_0x2ec9d6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x2ec9d6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2ec9d6([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x2ec9d6([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x2ec9d6([0x6f,0x6b])});}}class k extends _0x41a129{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x374a6f){if(super(_0x374a6f),!this['editor']['config']['get']('revisionHistory'))throw new _0x4c6229('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x1f0740=>this['_showRevisionViewer']({..._0x1f0740,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x5ad853=>this['_closeRevisionViewer'](_0x5ad853)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x18e6a3=>this['_restoreRevision'](_0x18e6a3)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x259537){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x259537;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x2f3f93){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x2f3f93);}['getRevision'](_0x5ee610){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x5ee610);}['getRevisions'](_0x26fc5e){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x26fc5e||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x5ccc3d=this['editor'],_0x4d7203=_0x23f87e(_0x5ccc3d,p),_0x34b638=_0x5ccc3d['plugins']['get']('RevisionTracker'),_0x5a5a38=_0x5ccc3d['plugins']['get']('Users')['users'];return _0x4d7203['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x4d7203['lazyRoots'],(_0x4d7203['plugins']['push'](_t,m,R,class extends _0x41a129{static get['requires'](){return[m,'Users'];}['init'](){const _0x1ae8de=this['editor']['plugins']['get']('Users');for(const _0x44470e of _0x5a5a38)_0x44470e['isAnonymous']||_0x1ae8de['getUser'](_0x44470e['id'])||_0x1ae8de['addUser'](_0x44470e);const _0x5cc256=_0x34b638['repository']['getRevisions']();let _0x14c95a=null;const _0x5a569d=this['editor']['plugins']['get']('RevisionViewer');_0x5a569d['adapter']=_0x34b638['adapter'],_0x5a569d['bind']('isEnabled')['to'](_0x34b638),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x5ccc3d,'isReadOnly',_0x59caf5=>!_0x59caf5);for(const _0x467fb5 of _0x5cc256){const _0x4c06eb=null===_0x467fb5['creator'];if(_0x4c06eb&&_0x467fb5['toVersion']===_0x467fb5['fromVersion'])continue;const _0x46bdd7=_0x467fb5['toJSON']();_0x5a569d['addRevisionData'](_0x46bdd7,(_0x4b75a2,_0x8f706f,_0x2b252f)=>{if(_0x4c06eb){if(_0x14c95a)_0x14c95a['_update'](_0x4b75a2,_0x8f706f);else{if(!_0x8f706f){const _0x4dbfc2=_0x2b252f['toJSON']();_0x4dbfc2['id']=_0x14b3ba(),_0x34b638['saveRevision'](_0x4dbfc2,_0x2b252f['toVersion'])['then'](_0x34dedc=>{_0x14c95a=_0x34dedc;});}}}else _0x467fb5['_update'](_0x4b75a2,_0x8f706f);});}}},d),_0x4d7203);}['_enhanceShowRevisionViewerCallback'](){const _0x32ddd4=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x3614bb=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x43cff5=this['editor']['plugins']['get']('Autosave');await _0x43cff5['save']();}else await _0x3614bb['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x13ede8=this['editor']['plugins']['get']('Dialog');_0x13ede8['isOpen']&&_0x13ede8['hide']();}const _0x1def2e=this['_getRevisionViewerEditorConfig']();return _0x32ddd4(_0x1def2e)['then'](_0x5584c4=>{return(this['_viewerEditor']=_0x5584c4,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'),_0x5584c4);})['catch'](_0x5d0409=>(console['error'](_0x5d0409),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x4a77a8=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'](),_0x4a77a8(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x4defe8=this['editor']['plugins']['get']('Annotations');_0x4defe8['refreshVisibility'](),_0x4defe8['refreshPositioning']();}})));}['_showRevisionViewer'](_0x1e2bb8){const _0x41a204=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x5dab5e=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x444070=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x444070,_0x1e2bb8)['then'](_0x5ecb11=>(_0x5dab5e['style']['display']='block',_0x41a204['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x5ecb11));}['_closeRevisionViewer'](_0x46b518){const _0x3b4935=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x3b4935['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x46b518['destroy']();}async['_restoreRevision'](_0x345e9b){const _0x29bb31=this['editor'],_0x3437bc=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x3baee1=_0x29bb31['plugins']['get']('RevisionTracker'),_0x1d5a0e=_0x29bb31['plugins']['get']('RevisionHistoryUtils'),_0x2b4284=_0x3437bc['repository']['getRevision'](_0x345e9b);let _0xf4575b,_0x158d57,_0x4f0dac;try{await _0x1d5a0e['loadRevisionData'](_0x2b4284,this['adapter']),_0xf4575b=_0x1d5a0e['getRevisionDocumentData'](_0x2b4284),_0x158d57=_0x1d5a0e['getRevisionRootsAttributes'](_0x2b4284);}catch(_0x4fbee4){return void console['error'](_0x4fbee4);}_0x29bb31['model']['change'](_0x338000=>{for(const _0x2b0107 of Array['from'](_0x29bb31['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x338000['removeMarker'](_0x2b0107);}),_0x3437bc['isReady']=!0x1,_0x29bb31['model']['enqueueChange'](_0x2f5507=>{_0x2f5507['setSelection'](null),_0x2f5507['removeSelectionAttribute'](_0x29bb31['model']['document']['selection']['getAttributeKeys']());const _0x7998ce=Object['keys'](_0xf4575b);for(const _0x4c0384 of _0x29bb31['model']['document']['roots'])'$graveyard'!=_0x4c0384['rootName']&&_0x4c0384['isAttached']()&&!_0x7998ce['includes'](_0x4c0384['rootName'])&&_0x2f5507['detachRoot'](_0x4c0384);for(const _0x4fadb1 of _0x7998ce){let _0x5b107e=_0x29bb31['model']['document']['getRoot'](_0x4fadb1);_0x5b107e&&_0x5b107e['isAttached']()||(_0x5b107e=_0x2f5507['addRoot'](_0x4fadb1));const _0x351160=_0x158d57[_0x4fadb1],_0xc52860=Object['keys'](_0x351160),_0x45b442=_0xf4575b[_0x4fadb1];for(const _0xe0c95d of _0x5b107e['getAttributeKeys']())_0xc52860['includes'](_0xe0c95d)||_0x2f5507['removeAttribute'](_0xe0c95d,_0x5b107e);for(const _0x3660ba of _0xc52860)_0x2f5507['setAttribute'](_0x3660ba,_0x158d57[_0x4fadb1][_0x3660ba],_0x5b107e);_0x2f5507['remove'](_0x2f5507['createRangeIn'](_0x5b107e)),_0x2f5507['insert'](_0x29bb31['data']['parse'](_0x45b442,_0x5b107e),_0x5b107e,0x0);}});const _0x4d2ac0=g(_0x29bb31['locale'],'Restored');if(_0x2b4284['name'])_0x4f0dac=-0x1==_0x2b4284['name']['indexOf'](_0x4d2ac0)?_0x4d2ac0+':\x20'+_0x2b4284['name']:_0x2b4284['name'];else _0x4f0dac=_0x4d2ac0+':\x20'+(_0x2b4284['createdAt']['toLocaleDateString'](_0x29bb31['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x2b4284['createdAt']['toLocaleTimeString'](_0x29bb31['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x3baee1['saveRevision']({'name':_0x4f0dac}),_0x3437bc['isReady']=!0x0,_0x29bb31['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};
|