@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20250307.0 → 0.0.0-nightly-20250309.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/dist/index.js +6 -6
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/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/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
|
-
_0x5c623c(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x531b8e){super(),this['id']=_0x531b8e['id']||_0x3807e5(),this['creator']=_0x531b8e['creator']||null,this['authors']=_0x531b8e['authors']||[],this['diffData']=_0x531b8e['diffData']||null,this['toVersion']=_0x531b8e['toVersion']||0x0,this['fromVersion']=_0x531b8e['fromVersion']||0x0,this['set']('name',_0x531b8e['name']||''),this['set']('createdAt',_0x531b8e['createdAt']||new Date()),this['set']('attributes',_0x531b8e['attributes']||{});}['setName'](_0x39e6fe){this['_update']({'name':_0x39e6fe});}['setAttribute'](_0x44abe9,_0x18033e){const _0x2740fb=_0x4c717d(this['attributes']);_0x5b04a7(_0x2740fb,_0x44abe9,_0x18033e),this['_update']({'attributes':_0x2740fb});}['removeAttribute'](_0x162164){const _0x2cbea7=_0x4c717d(this['attributes']);_0x47866f(_0x2cbea7,_0x162164),this['_update']({'attributes':_0x2cbea7});}['_update'](_0x4ab655,_0x389301=!0x1){let _0x3fdcb9=!0x1;const _0x2059d2={'id':this['id']},_0x56a8ec=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x41a32c of _0x56a8ec){const _0x824a61=_0x4ab655[_0x41a32c];void 0x0!==_0x824a61&&_0x824a61!==this[_0x41a32c]&&(this[_0x41a32c]=_0x824a61,_0x2059d2[_0x41a32c]=_0x824a61,_0x3fdcb9=!0x0);}_0x3fdcb9&&(_0x2059d2['authors']&&(_0x2059d2['authorsIds']=_0x2059d2['authors']['map'](_0x46fb20=>_0x46fb20['id']),delete _0x2059d2['authors']),this['fire']('_update',_0x2059d2,_0x389301));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x17d71b=>_0x17d71b['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x1dcc45{['_revisions'];static get['requires'](){return[_0x1a4d20];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x1d980b){super(_0x1d980b),this['_revisions']=new _0x2d09b0();}['afterInit'](){!async function(_0x243fd3){const _0xfda177=_0x766e51([0x48,0x35,0x68,0x53,0x38,0x7a,0x74,0x65,0x70,0x52,0x57,0x69,0x77,0x6f,0x50,0x37,0x4e,0x49,0x6c,0x5a,0x4a,0x51,0x43,0x78,0x59,0x64,0x47,0x44,0x66,0x75,0x6e,0x63,0x61,0x62,0x6a,0x34,0x4d,0x73,0x71,0x42,0x39,0x6d,0x4f,0x45,0x54,0x72,0x55,0x46,0x33,0x76,0x41,0x36,0x58,0x31,0x30,0x56,0x67,0x6b,0x32,0x4b,0x4c,0x79]),_0x476d0a=0xeb829,_0x18c038=0x13ca88c,_0x5737dd=0x13bc9fc^_0x18c038,_0x457c63=window[_0x766e51([0x44,0x61,0x74,0x65])][_0x766e51([0x6e,0x6f,0x77])](),_0x22b645=_0x243fd3[_0x766e51([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x40c1b2=new window[(_0x766e51([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x17d203=>{_0x22b645[_0x766e51([0x6f,0x6e,0x63,0x65])](_0x766e51([0x72,0x65,0x61,0x64,0x79]),_0x17d203);}),_0x54c0da={[_0x766e51([0x6b,0x74,0x79])]:_0x766e51([0x45,0x43]),[_0x766e51([0x75,0x73,0x65])]:_0x766e51([0x73,0x69,0x67]),[_0x766e51([0x63,0x72,0x76])]:_0x766e51([0x50,0x2d,0x32,0x35,0x36]),[_0x766e51([0x78])]:_0x766e51([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]),[_0x766e51([0x79])]:_0x766e51([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]),[_0x766e51([0x61,0x6c,0x67])]:_0x766e51([0x45,0x53,0x32,0x35,0x36])},_0x570f55=_0x22b645[_0x766e51([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x766e51([0x67,0x65,0x74])](_0x766e51([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4a01c8(){let _0xdaba98,_0x5b6eba=null,_0x32ffa2=null;try{if(_0x570f55==_0x766e51([0x47,0x50,0x4c]))return _0x766e51([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xdaba98=_0x3ea8fb(),!_0xdaba98)return _0x766e51([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xdaba98[_0x766e51([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x32ffa2=_0x45e909(_0xdaba98[_0x766e51([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xdaba98[_0x766e51([0x6a,0x74,0x69])])),await _0x3adfa4()?_0x50b962()?_0x4c8104()?_0x766e51([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xdf05b0()?(_0xdaba98[_0x766e51([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x766e51([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5b6eba=_0x3d0de9(_0x766e51([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xdaba98[_0x766e51([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x766e51([0x74,0x72,0x69,0x61,0x6c])&&(_0x5b6eba=_0x3d0de9(_0x766e51([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5d9181()):_0x766e51([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x766e51([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x766e51([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x2502cc){return _0x766e51([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4c8104(){const _0x9ea5c2=[_0x766e51([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x766e51([0x74,0x72,0x69,0x61,0x6c])][_0x766e51([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xdaba98[_0x766e51([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x457c63/0x3e8:0xe10*_0x5737dd;return _0xdaba98[_0x766e51([0x65,0x78,0x70])]<_0x9ea5c2;}function _0x50b962(){const _0x301fbf=_0xdaba98[_0x766e51([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x301fbf)return!0x1;if(_0x301fbf[_0x766e51([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x766e51([0x2a])))return!0x0;if(_0x301fbf[_0x766e51([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x766e51([0x52,0x48])))return!0x0;if(_0x301fbf[_0x766e51([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x766e51([0x52,0x52,0x48]))){if(_0x2e097a())return!0x0;if(_0x17a509()||_0x6e1163())return!0x0;}return!0x1;}function _0xdf05b0(){const _0x1c2c97=_0xdaba98[_0x766e51([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1c2c97||0x0==_0x1c2c97[_0x766e51([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x412943}=new URL(window[_0x766e51([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1c2c97[_0x766e51([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x412943))return!0x0;const _0x279898=_0x412943[_0x766e51([0x73,0x70,0x6c,0x69,0x74])](_0x766e51([0x2e]));return _0x1c2c97[_0x766e51([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x272918=>_0x272918[_0x766e51([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x766e51([0x2a])))[_0x766e51([0x6d,0x61,0x70])](_0x15742f=>_0x15742f[_0x766e51([0x73,0x70,0x6c,0x69,0x74])](_0x766e51([0x2e])))[_0x766e51([0x73,0x6f,0x6d,0x65])](_0x164026=>_0x279898[_0x766e51([0x65,0x76,0x65,0x72,0x79])]((_0x16ac00,_0x5e59f4)=>_0x164026[_0x5e59f4]===_0x16ac00||_0x164026[_0x5e59f4]===_0x766e51([0x2a])));}function _0x5d9181(){return _0x5b6eba&&_0x32ffa2?new window[(_0x766e51([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x13a40a,_0x222521)=>{_0x5b6eba[_0x766e51([0x74,0x68,0x65,0x6e])](_0x13a40a,_0x222521),_0x32ffa2[_0x766e51([0x74,0x68,0x65,0x6e])](_0x33cb7c=>{_0x33cb7c!=_0x766e51([0x56,0x61,0x6c,0x69,0x64])&&_0x13a40a(_0x33cb7c);},_0x222521);}):_0x5b6eba||_0x32ffa2||_0x766e51([0x56,0x61,0x6c,0x69,0x64]);}}function _0x45e909(_0x2a9d7b,_0x1e023f){return new window[(_0x766e51([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4701a7=>{if(_0x85b47a())return _0x4701a7(_0x766e51([0x56,0x61,0x6c,0x69,0x64]));_0x34fc08(),_0x22b645[_0x766e51([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x766e51([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4eaa87=!0x1;const _0x3f85a0=_0x3807e5();function _0x489b5a(_0x1f5805){return!!_0x1f5805&&(typeof _0x1f5805===_0x766e51([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1f5805===_0x766e51([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1f5805[_0x766e51([0x74,0x68,0x65,0x6e])]===_0x766e51([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1f5805[_0x766e51([0x63,0x61,0x74,0x63,0x68])]===_0x766e51([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4ae907(_0x5d4fb3){_0x2b6d0c(_0x5d4fb3)[_0x766e51([0x74,0x68,0x65,0x6e])](_0x40657d=>{if(!_0x40657d||_0x40657d[_0x766e51([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x766e51([0x6f,0x6b]))return _0x766e51([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2686ea(_0x209fed(_0x3f85a0+_0x1e023f))!=_0x40657d[_0x766e51([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x766e51([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x766e51([0x56,0x61,0x6c,0x69,0x64]);})[_0x766e51([0x74,0x68,0x65,0x6e])](_0x4498bd=>(_0x14da96(),_0x4498bd),()=>{const _0x5bbc04=_0x4d096e();return null==_0x5bbc04?(_0x14da96(),_0x766e51([0x56,0x61,0x6c,0x69,0x64])):_0x766e51(_0x457c63-_0x5bbc04>(0x25302c8c^_0x18c038)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x766e51([0x74,0x68,0x65,0x6e])](_0x4701a7)[_0x766e51([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4701a7(_0x766e51([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x221a40=0x10a460c^_0x18c038;function _0x14da96(){const _0x2c6c42=_0x766e51([0x6c,0x6c,0x63,0x74,0x2d])+_0x2686ea(_0x209fed(_0x2a9d7b)),_0x5efb6e=_0x4ce045(_0x2686ea(window[_0x766e51([0x4d,0x61,0x74,0x68])][_0x766e51([0x63,0x65,0x69,0x6c])](_0x457c63/_0x221a40)));window[_0x766e51([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x766e51([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2c6c42,_0x5efb6e);}function _0x4d096e(){const _0x53e8ad=_0x766e51([0x6c,0x6c,0x63,0x74,0x2d])+_0x2686ea(_0x209fed(_0x2a9d7b)),_0x1d2b1b=window[_0x766e51([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x766e51([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x53e8ad);return _0x1d2b1b?window[_0x766e51([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4ce045(_0x1d2b1b),0x10)*_0x221a40:null;}function _0x2b6d0c(_0x3a3477){return new window[(_0x766e51([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x200485,_0x413c23)=>{_0x3a3477[_0x766e51([0x74,0x68,0x65,0x6e])](_0x200485,_0x413c23),window[_0x766e51([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x413c23,0x13d7c4c^_0x18c038);});}}_0x22b645[_0x766e51([0x6f,0x6e])](_0x766e51([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x36ee8d,_0x4421f2)=>{if(_0x4421f2[0x0]!=_0x2a9d7b)return _0x4701a7(_0x766e51([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4421f2[0x1]={..._0x4421f2[0x1],[_0x766e51([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3f85a0};},{[_0x766e51([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x766e51([0x68,0x69,0x67,0x68])}),_0x22b645[_0x766e51([0x6f,0x6e])](_0x766e51([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2e72f6=>{_0x489b5a(_0x2e72f6[_0x766e51([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4eaa87=!0x0,_0x4ae907(_0x2e72f6[_0x766e51([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x766e51([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x766e51([0x6c,0x6f,0x77])}),_0x40c1b2[_0x766e51([0x74,0x68,0x65,0x6e])](()=>{_0x4eaa87||_0x4701a7(_0x766e51([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x85b47a(){return _0x22b645[_0x766e51([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x766e51([0x76,0x69,0x65,0x77])][_0x766e51([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x766e51([0x61,0x75,0x74,0x6f]);}function _0x34fc08(){_0x22b645[_0x766e51([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x766e51([0x76,0x69,0x65,0x77])][_0x766e51([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x766e51([0x61,0x75,0x74,0x6f]);}}function _0x3d0de9(_0x5225c5){const _0x38be90=[new window[(_0x766e51([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4de8a9=>setTimeout(_0x4de8a9,0x1359640^_0x18c038)),_0x40c1b2[_0x766e51([0x74,0x68,0x65,0x6e])](()=>new window[(_0x766e51([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x273aac=>{const _0x202e1f=0x13ca88b^_0x18c038,_0x2eee5a=_0x243fd3[_0x766e51([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x2c641a(){_0x2eee5a[_0x766e51([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x202e1f&&_0x273aac();}_0x2c641a(),_0x2eee5a[_0x766e51([0x6f,0x6e])](_0x766e51([0x61,0x64,0x64]),_0x2c641a);})),new window[(_0x766e51([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1854da=>{function _0x5dabf3(){for(const _0x247b59 in window)if(window[_0x766e51([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x766e51([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x247b59))&&window[_0x247b59]==_0x476d0a)return _0x1854da();_0x22b645[_0x766e51([0x73,0x74,0x61,0x74,0x65])]!=_0x766e51([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x766e51([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5dabf3,0x13cbb04^_0x18c038);}_0x3bb78f(_0x766e51([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x5dabf3();})];return window[_0x766e51([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x766e51([0x72,0x61,0x63,0x65])](_0x38be90)[_0x766e51([0x74,0x68,0x65,0x6e])](()=>_0x5225c5);}async function _0x2ccd60(){if(await _0x40c1b2,_0x3bb78f(_0x766e51([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x342942=_0x243fd3[_0x766e51([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x309cc9=_0x243fd3[_0x766e51([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])](_0x342942[_0x766e51([0x69,0x64])]),_0xa37617=_0x1f4365(_0x766e51([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0xa37617[_0x766e51([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x342942['id'],_0x309cc9?_0x309cc9['id']:null,!0x0),_0xa37617[_0x766e51([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x766e51([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0xa37617[_0x766e51([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0xa37617[_0x766e51([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x49e184,void(_0xa37617[_0x766e51([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x49e184);}if(_0x3bb78f(_0x766e51([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x1e40ec=_0x1f4365(_0x766e51([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x1e40ec[_0x766e51([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x766e51([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x1e40ec[_0x766e51([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x1e40ec[_0x766e51([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x49e184,_0x1e40ec[_0x766e51([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x49e184;}_0x22b645[_0x766e51([0x6d,0x6f,0x64,0x65,0x6c])][_0x766e51([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x49e184,_0x22b645[_0x766e51([0x6d,0x6f,0x64,0x65,0x6c])][_0x766e51([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x49e184,_0x22b645[_0x766e51([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x766e51([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2e097a(){return _0x3bb78f(_0x766e51([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1f4365(_0x766e51([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x766e51([0x73,0x74,0x61,0x74,0x65])]==_0x766e51([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x17a509(){return _0x3bb78f(_0x766e51([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 _0x6e1163(){return _0x3bb78f(_0x766e51([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x435422(_0x1d45dd){const _0x1fd36f=_0x3444f0();_0x22b645[_0x1fd36f]=_0x766e51([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])+_0x1d45dd,_0x1d45dd[_0x766e51([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x766e51([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x3444f0()]=_0x476d0a),_0x1d45dd!=_0x766e51([0x56,0x61,0x6c,0x69,0x64])&&_0x2ccd60();}function _0x3444f0(){const _0x46a62a=window[_0x766e51([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x766e51([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x766e51([0x6e,0x6f,0x77])]())[_0x766e51([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x766e51([0x2e]),'');let _0x2d250d=_0x766e51([0x48]);for(let _0xfd6a8b=0x0;_0xfd6a8b<_0x46a62a[_0x766e51([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xfd6a8b+=0x2){let _0xe1fba0=window[_0x766e51([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x46a62a[_0x766e51([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xfd6a8b,_0xfd6a8b+0x2));_0xe1fba0>=_0xfda177[_0x766e51([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xe1fba0-=_0xfda177[_0x766e51([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2d250d+=_0xfda177[_0xe1fba0];}return _0x2d250d;}function _0x3ea8fb(){const _0x28c75f=_0x570f55[_0x766e51([0x73,0x70,0x6c,0x69,0x74])](_0x766e51([0x2e]));if(0x3!=_0x28c75f[_0x766e51([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x22c867(_0x28c75f[0x1]);function _0x22c867(_0x46d20b){const _0x2007bd=_0x48fd61(_0x46d20b);return _0x2007bd&&_0xfd4461()?_0x2007bd:null;function _0xfd4461(){const _0x1d44ba=_0x2007bd[_0x766e51([0x6a,0x74,0x69])],_0x794a45=window[_0x766e51([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1d44ba[_0x766e51([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1d44ba[_0x766e51([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1cccdb={..._0x2007bd,[_0x766e51([0x6a,0x74,0x69])]:_0x1d44ba[_0x766e51([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1d44ba[_0x766e51([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1cccdb[_0x766e51([0x76,0x63])],_0x209fed(_0x1cccdb)==_0x794a45;}}}async function _0x3adfa4(){let _0x47a028=!0x0;try{const _0x262e66=_0x570f55[_0x766e51([0x73,0x70,0x6c,0x69,0x74])](_0x766e51([0x2e])),[_0x5c6125,_0x597c38,_0x468515]=_0x262e66;return _0x4473b0(_0x5c6125),await _0x322521(_0x5c6125,_0x597c38,_0x468515),_0x47a028;}catch(_0x26224b){return!0x1;}function _0x4473b0(_0x1dd998){const _0x48e71a=_0x48fd61(_0x1dd998);_0x48e71a&&_0x48e71a[_0x766e51([0x61,0x6c,0x67])]==_0x766e51([0x45,0x53,0x32,0x35,0x36])||(_0x47a028=!0x1);}async function _0x322521(_0x302fb5,_0x33ecd9,_0x47d885){const _0x307e94=window[_0x766e51([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x766e51([0x66,0x72,0x6f,0x6d])](_0x2a4dfc(_0x47d885),_0x21354b=>_0x21354b[_0x766e51([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x45cd69=new window[(_0x766e51([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x766e51([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x302fb5+_0x766e51([0x2e])+_0x33ecd9),_0x2459cb=window[_0x766e51([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x766e51([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2459cb)return;const _0x513c77=await _0x2459cb[_0x766e51([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x766e51([0x6a,0x77,0x6b]),_0x54c0da,{[_0x766e51([0x6e,0x61,0x6d,0x65])]:_0x766e51([0x45,0x43,0x44,0x53,0x41]),[_0x766e51([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x766e51([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x766e51([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2459cb[_0x766e51([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x766e51([0x6e,0x61,0x6d,0x65])]:_0x766e51([0x45,0x43,0x44,0x53,0x41]),[_0x766e51([0x68,0x61,0x73,0x68])]:{[_0x766e51([0x6e,0x61,0x6d,0x65])]:_0x766e51([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x513c77,_0x307e94,_0x45cd69)||(_0x47a028=!0x1);}}function _0x48fd61(_0x41fcf3){return _0x41fcf3[_0x766e51([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x766e51([0x65,0x79]))?JSON[_0x766e51([0x70,0x61,0x72,0x73,0x65])](_0x2a4dfc(_0x41fcf3)):null;}function _0x2a4dfc(_0x20bdd6){return window[_0x766e51([0x61,0x74,0x6f,0x62])](_0x20bdd6[_0x766e51([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x766e51([0x2b]))[_0x766e51([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x766e51([0x2f])));}function _0x209fed(_0x299bfd){let _0x2a4bce=0x1505;function _0xb2f3ea(_0x2701a0){for(let _0x3824a1=0x0;_0x3824a1<_0x2701a0[_0x766e51([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3824a1++){const _0x14387d=_0x2701a0[_0x766e51([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3824a1);_0x2a4bce=(_0x2a4bce<<0x5)+_0x2a4bce+_0x14387d,_0x2a4bce&=_0x2a4bce;}}function _0xf7095e(_0x9f70d6){Array[_0x766e51([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x9f70d6)?_0x9f70d6[_0x766e51([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xf7095e):_0x9f70d6&&typeof _0x9f70d6==_0x766e51([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x766e51([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x9f70d6)[_0x766e51([0x73,0x6f,0x72,0x74])]()[_0x766e51([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x8e581e,_0x179446])=>{_0xb2f3ea(_0x8e581e),_0xf7095e(_0x179446);}):_0xb2f3ea(window[_0x766e51([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x9f70d6));}return _0xf7095e(_0x299bfd),_0x2a4bce>>>0x0;}function _0x2686ea(_0x2e9849){return _0x2e9849[_0x766e51([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x766e51([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x766e51([0x30]));}function _0x4ce045(_0x57c449){return _0x57c449[_0x766e51([0x73,0x70,0x6c,0x69,0x74])]('')[_0x766e51([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x766e51([0x6a,0x6f,0x69,0x6e])]('');}function _0x3bb78f(_0x13b5d4){return _0x22b645[_0x766e51([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x766e51([0x68,0x61,0x73])](_0x13b5d4);}function _0x1f4365(_0x1d5e2e){return _0x22b645[_0x766e51([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x766e51([0x67,0x65,0x74])](_0x1d5e2e);}function _0x49e184(){}function _0x766e51(_0x2efe92){return _0x2efe92['map'](_0x38efaa=>String['fromCharCode'](_0x38efaa))['join']('');}_0x435422(await _0x4a01c8());}(this);}['createRevision'](_0x4026f8){const _0x37e24b=this['editor']['plugins']['get']('Users');return new h({'id':_0x4026f8['id'],'name':_0x4026f8['name'],'creator':_0x4026f8['creatorId']?_0x37e24b['getUser'](_0x4026f8['creatorId']):null,'diffData':_0x4026f8['diffData']||_0x4026f8['data'],'authors':_0x4026f8['authorsIds']['map'](_0x1845c1=>_0x37e24b['getUser'](_0x1845c1)),'createdAt':new Date(_0x4026f8['createdAt']),'attributes':_0x4026f8['attributes'],'fromVersion':_0x4026f8['fromVersion'],'toVersion':_0x4026f8['toVersion']});}['addRevision'](_0x312901,_0x4dbb6f=0x0){this['_revisions']['add'](_0x312901,_0x4dbb6f);}['getRevision'](_0x966291){return this['_revisions']['get'](_0x966291);}['getRevisions'](_0x4ac80e={'toJSON':!0x1}){const _0x2d8c95=Array['from'](this['_revisions']);return _0x2d8c95['reverse'](),_0x4ac80e['toJSON']?_0x2d8c95['map'](_0xdf7a42=>_0xdf7a42['toJSON']()):_0x2d8c95;}['getIndex'](_0xe7519f){return this['_revisions']['getIndex'](_0xe7519f);}['getEarlierVisibleRevision'](_0x1be04b){const [,_0x3b8ddf]=this['getRevisionsIterator'](_0x1be04b,{'direction':'earlier'});return _0x3b8ddf;}['getLaterVisibleRevision'](_0x2a87eb){const [,_0x63074f]=this['getRevisionsIterator'](_0x2a87eb,{'direction':'later'});return _0x63074f;}['getRevisionsInDiff'](_0x3bd4e2){const _0x3a960e=[];for(const _0x19cf13 of this['getRevisionsIterator'](_0x3bd4e2['newRevisionId']))if(_0x3a960e['push'](_0x19cf13),_0x19cf13['id']===_0x3bd4e2['oldRevisionId'])break;return _0x3a960e;}*['getRevisionsIterator'](_0x415733,{direction:_0x55ab30='earlier',filter:_0x4cf217=()=>!0x0}={}){const _0xd6e6d9='earlier'===_0x55ab30?0x1:-0x1;let _0xd114f4=this['_revisions']['get'](_0x415733),_0x28fc30=this['getIndex'](_0xd114f4);for(yield _0xd114f4;_0xd114f4;){if(_0x28fc30+=_0xd6e6d9,_0xd114f4=this['getRevision'](_0x28fc30),!_0xd114f4)return;_0x4cf217(_0xd114f4)&&(yield _0xd114f4);}}}function m(_0x218262,_0x5b16af,_0x3f598e){const t=_0x218262['t'];switch(_0x5b16af){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'},_0x3f598e);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x3f598e);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const E={'c':_0x157829,'a':_0x5b254c,'e':_0x46a473,'r':_0x153e9e,'u':_0x464bca};class u extends _0x1dcc45{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x1a4d20,j,_0x39665b];}constructor(_0x31f4b6){super(_0x31f4b6),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x39a5a7=_0x3807e5();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x39a5a7},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0xf2af69=this['repository']['getRevision'](0x0),_0x386396=_0xf2af69&&null===_0xf2af69['creator']?_0xf2af69:null;if(this['_continueCurrentRevision']=!!_0x386396&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x2f587b=this['_source']['getCurrentRevisionId'](),_0x526727=this['repository']['getRevision'](_0x2f587b);if(_0x526727)this['_startingVersion']=_0x526727['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x3e6a7e=this['_source']['history']['_operations']['find'](_0x516118=>!_0x516118['_isInit']),_0x189fa7=_0x3e6a7e?_0x3e6a7e['baseVersion']:this['_source']['history']['version'];_0xf2af69?(_0xf2af69['toVersion']<_0x189fa7&&_0xf2af69['_update']({'toVersion':_0x189fa7}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x386396['id'],this['_startingVersion']=_0x386396['fromVersion']):(this['_startingVersion']=_0xf2af69['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x189fa7,this['_continueCurrentRevision']=!0x1);}}else _0x386396&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x386396['toVersion'],this['editor']['model']['document']['history']['version']),_0x386396['fromVersion']===_0x386396['toVersion']?(0x0!==_0x386396['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x386396['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x386396['id'],this['_startingVersion']=_0x386396['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',_0x49ef82=>!_0x49ef82),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x379446=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x27b6e1;for(const _0x51e02b in _0x379446){const _0x24d551=_0x51e02b,_0x3b292e=_0x379446[_0x24d551];if('revisionHistoryLicenseKeyValid'==_0x3b292e||'revisionHistoryLicenseKeyInvalid'==_0x3b292e||'revisionHistoryLicenseKeyExpired'==_0x3b292e||'revisionHistoryLicenseKeyDomainLimit'==_0x3b292e||'revisionHistoryLicenseKeyNotAllowed'==_0x3b292e||'revisionHistoryLicenseKeyEvaluationLimit'==_0x3b292e||'revisionHistoryLicenseKeyTrialLimit'==_0x3b292e||'revisionHistoryLicenseKeyUsageLimit'==_0x3b292e){delete _0x379446[_0x24d551],_0x27b6e1=_0x3b292e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x27b6e1&&_0x379446['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x27b6e1&&_0x379446['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x27b6e1&&_0x379446['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x27b6e1&&_0x379446['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x27b6e1&&_0x379446['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x27b6e1&&_0x379446['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x27b6e1&&_0x379446['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x2b7902=this['repository']['getRevision'](0x0),_0x341c41=await this['getRevisionDocumentData'](_0x2b7902),_0xb8178d=await this['getRevisionRootsAttributes'](_0x2b7902);this['_replaceEditorDataWithRevisionData'](_0x341c41,_0xb8178d);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x1ad5ba){this['_source']=_0x1ad5ba;}async['update'](){const _0x39e1d9=await this['_source']['getLatestVersion']();if(_0x39e1d9>this['currentRevision']['toVersion']){await this['_loadState']();const _0x484248=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x39e1d9});_0x484248['authors']=_0x484248['authorsIds']['map'](_0x5bf1fe=>this['editor']['plugins']['get']('Users')['getUser'](_0x5bf1fe)),this['currentRevision']['_update'](_0x484248);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0x9fd123={},_0x22f6d2=null){const _0x2b2a2c=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x22f6d2>this['currentRevision']['toVersion']&&(_0x22f6d2=null),null===_0x22f6d2&&(_0x22f6d2=await this['_source']['getLatestVersion']());const _0x478514=this['_getFromVersion'](_0x22f6d2),_0x68ef46=this['buildRevisionData']({'from':_0x478514,'to':_0x22f6d2});if(this['currentRevision']['toVersion']<_0x22f6d2){const _0x306a62=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x22f6d2,'to':_0x22f6d2});_0x306a62['authors']=[],_0x306a62['authorsIds']=[],_0x306a62['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x306a62,!0x0),delete _0x306a62['authors'],_0x2b2a2c['push'](_0x306a62);}_0x9fd123['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x9fd123['name']=_0x9fd123['name']||null,_0x9fd123['id']=_0x9fd123['id']||_0x3807e5(),_0x9fd123={..._0x9fd123,..._0x68ef46};const _0x4a2b00=this['addRevisionData'](_0x9fd123);_0x2b2a2c['push'](_0x9fd123);const _0x299491=this['repository']['getIndex'](_0x4a2b00);if(0x0!==_0x299491){const _0x5db07b=this['repository']['getRevision'](_0x299491-0x1);if(_0x5db07b['fromVersion']!==_0x22f6d2){const _0x5be249=this['_revisionDataBuilder']['getData'](_0x22f6d2,_0x5db07b['toVersion']),_0x5b9dca={'id':_0x5db07b['id'],'diffData':_0x5be249['diffData'],'authorsIds':_0x5be249['authorsIds'],'authors':_0x5be249['authorsIds']['map'](_0x298730=>this['editor']['plugins']['get']('Users')['getUser'](_0x298730)),'fromVersion':_0x22f6d2};_0x5db07b===this['currentRevision']&&(_0x5b9dca['createdAt']=new Date(_0x9fd123['createdAt']['getTime']()+0xa)),_0x5db07b['_update'](_0x5b9dca,!0x0),delete _0x5b9dca['authors'],_0x2b2a2c['push'](_0x5b9dca);}}if(this['adapter']){for(const _0x4dd5e7 of _0x2b2a2c)this['_bufferUpdate'](_0x4dd5e7['id'],_0x4dd5e7,!0x0);this['sendBufferedUpdates']();}return _0x4a2b00;}['addRevisionData'](_0x5cb918){const _0x1ca000=this['repository']['createRevision'](_0x5cb918);return this['adapter']&&_0x1ca000['on']('_update',(_0x274e8c,_0x12f147,_0x416cad)=>{_0x416cad||(this['_bufferUpdate'](_0x12f147['id'],_0x12f147,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x1ca000,this['_findInsertionIndex'](_0x1ca000)),_0x1ca000;}async['getRevisionDocumentData'](_0xcf9106){await this['_loadRevisionData'](_0xcf9106);const _0x437c30={};for(const _0x8e89f7 in _0xcf9106['diffData']){if(_0xcf9106['diffData'][_0x8e89f7]['attachChange']&&!_0xcf9106['diffData'][_0x8e89f7]['attachChange']['isAttached'])continue;const _0x1d6b6e=this['_removeRevisionMarkers'](JSON['parse'](_0xcf9106['diffData'][_0x8e89f7]['insertions'])),_0x183d90=this['editor']['editing']['view']['document'],_0x2a8310=new _0x31de44(_0x183d90,_0x1d6b6e['map'](_0x3e4729=>P(_0x3e4729,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x437c30[_0x8e89f7]=this['editor']['data']['processor']['toData'](_0x2a8310),this['editor']['data']['processor']['useFillerType']('default');}return _0x437c30;}async['getRevisionRootsAttributes'](_0x253390){await this['_loadRevisionData'](_0x253390);const _0x3d7d02={};for(const _0x290557 in _0x253390['diffData'])_0x253390['diffData'][_0x290557]['attachChange']&&!_0x253390['diffData'][_0x290557]['attachChange']['isAttached']||(_0x3d7d02[_0x290557]=_0x253390['diffData'][_0x290557]['attributesAfter']||{});return _0x3d7d02;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x5391e6=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x18aef7=0x0;_0x18aef7<_0x5391e6['length'];_0x18aef7++){const _0x1af17f=_0x5391e6[_0x18aef7];let _0x2347df=!0x1;for(const _0x3a41a9 of Object['keys'](_0x1af17f))void 0x0===_0x1af17f[_0x3a41a9]?delete _0x1af17f[_0x3a41a9]:'id'!==_0x3a41a9&&(_0x2347df=!0x0);_0x2347df||(_0x5391e6[_0x18aef7]=null);}if(_0x5391e6=_0x5391e6['filter'](_0x162667=>null!==_0x162667),!_0x5391e6['length'])return;for(let _0x43454b=0x0;_0x43454b<_0x5391e6['length'];_0x43454b++){const _0x4d0f84=_0x5391e6[_0x43454b];void 0x0!==_0x4d0f84['fromVersion']&&void 0x0===_0x4d0f84['toVersion']&&(_0x4d0f84['toVersion']=this['repository']['getRevision'](_0x4d0f84['id'])['toVersion']),void 0x0!==_0x4d0f84['toVersion']&&void 0x0===_0x4d0f84['fromVersion']&&(_0x4d0f84['fromVersion']=this['repository']['getRevision'](_0x4d0f84['id'])['fromVersion']);}const _0x55a76b=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x5391e6,_0x55a76b)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x32ae34=>{if(_0x32ae34){for(const _0x395e7b of _0x32ae34)this['setRevisionData']({'id':_0x395e7b['id'],'createdAt':_0x395e7b['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x3b5a5d,_0x60e89c){let _0x17031c=this['editor']['config']['get']('initialData'),_0x5a896a=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x17031c){_0x17031c={};for(const _0x1f6a99 of this['editor']['model']['document']['getRootNames']())_0x17031c[_0x1f6a99]='';}if('string'==typeof _0x17031c&&(_0x17031c={'main':_0x17031c}),void 0x0===_0x5a896a){_0x5a896a={};for(const _0xec9adc of this['editor']['model']['document']['getRootNames']())_0x5a896a[_0xec9adc]={};}let _0x53e5eb=!0x1;const _0x9acfc6=Object['keys'](_0x17031c),_0x3bc873=Object['keys'](_0x3b5a5d);for(const _0x2d1f77 of _0x9acfc6){if(_0x17031c[_0x2d1f77]!==_0x3b5a5d[_0x2d1f77]&&''!==_0x17031c[_0x2d1f77]['trim']()){_0x53e5eb=!0x0;break;}if(!_0x4c96f2(_0x5a896a[_0x2d1f77],_0x60e89c[_0x2d1f77])&&Object['keys'](_0x5a896a[_0x2d1f77])['length']>0x0){_0x53e5eb=!0x0;break;}}_0x53e5eb||(_0x53e5eb=_0x3bc873['some'](_0x1ae19c=>!this['editor']['model']['document']['getRoot'](_0x1ae19c))),_0x53e5eb&&_0x42d24e('editor-initial-data-replaced-with-revision-data',{'editorData':_0x17031c,'editorRootsAttributes':_0x5a896a,'revisionData':_0x3b5a5d,'revisionRootsAttributes':_0x60e89c}),this['editor']['config']['set']('initialData',_0x3b5a5d),this['editor']['config']['set']('rootsAttributes',_0x60e89c);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x3790ad=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x3790ad['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x306fcf){const _0x147c41=this['repository']['getRevisions']();_0x147c41['reverse']();let _0x4c8994=0x0;for(;_0x4c8994<_0x147c41['length'];){const _0x4833fe=_0x147c41[_0x4c8994];if(_0x4833fe===this['currentRevision']){_0x4c8994++;continue;}if(_0x4833fe['id']===this['_initialRevisionId'])break;const _0x454cd2=_0x306fcf['toVersion']-_0x4833fe['toVersion']||_0x306fcf['fromVersion']-_0x4833fe['fromVersion'];if(_0x454cd2>0x0)break;if(_0x454cd2<0x0)_0x4c8994++;else{if(!_0x306fcf['creator']&&_0x4833fe['creator'])break;if(_0x4833fe['creator']||!_0x306fcf['creator']){if(_0x306fcf['createdAt']>_0x4833fe['createdAt'])break;_0x4c8994++;}else _0x4c8994++;}}return _0x4c8994;}['setRevisionData'](_0x5821d4){const _0x5cc401=this['repository']['getRevision'](_0x5821d4['id']);if(_0x5821d4['createdAt']&&(_0x5821d4['createdAt']=new Date(_0x5821d4['createdAt'])),_0x5821d4['authorsIds']){const _0x471137=this['editor']['plugins']['get']('Users');_0x5821d4['authors']=_0x5821d4['authorsIds']['map'](_0x36cfa6=>_0x471137['getUser'](_0x36cfa6));}_0x5cc401['_update'](_0x5821d4,!0x0);}['buildRevisionData']({revision:_0xa50ff=null,from:_0x958d71=null,to:_0x434d4e=null}){_0x958d71=null!==_0x958d71?_0x958d71:_0xa50ff['fromVersion'],_0x434d4e=null!==_0x434d4e?_0x434d4e:_0xa50ff['toVersion'];const _0x39f789=this['_revisionDataBuilder']['getData'](_0x958d71,_0x434d4e),_0x4e61a7={'diffData':_0x39f789['diffData'],'authorsIds':_0x39f789['authorsIds'],'fromVersion':_0x958d71,'toVersion':_0x434d4e};if(!_0xa50ff||_0x434d4e!==_0xa50ff['toVersion']){const _0x1aa0fb=_0x434d4e-0x1,_0x3cf5c8=this['_source']['history']['getOperation'](_0x1aa0fb);_0x4e61a7['createdAt']=_0x3cf5c8&&_0x3cf5c8['createdAt']||new Date();}if(this['_loadedStateData']&&_0x958d71===this['_loadedStateData']['fromVersion']){for(const _0x29edd4 of this['_loadedStateData']['authors'])_0x4e61a7['authorsIds']['includes'](_0x29edd4['id'])||_0x4e61a7['authorsIds']['push'](_0x29edd4['id']);}return _0x4e61a7;}['_loadRevisionData'](_0x5365e9){if(!_0x5365e9||_0x5365e9['diffData'])return Promise['resolve']();{const _0x71dac9=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x71dac9,'revisionId':_0x5365e9['id']})['then'](_0x44bd5c=>{_0x5365e9['diffData']=_0x44bd5c['diffData'];});}}['_bufferUpdate'](_0x3e8b50,_0x59a6c1,_0x12499a){if(this['_bufferedUpdates']['has'](_0x3e8b50)){const _0x516afe=this['_bufferedUpdates']['get'](_0x3e8b50);_0x59a6c1=_0x12499a?{..._0x516afe,..._0x59a6c1}:{..._0x59a6c1,..._0x516afe};}this['_bufferedUpdates']['set'](_0x3e8b50,_0x59a6c1);}['_getFromVersion'](_0x41a40b){const _0x1ed39a=this['repository']['getRevisions']();_0x1ed39a['reverse'](),_0x1ed39a['shift']();const _0x3e5eb9=_0x1ed39a['find'](_0x273fab=>_0x273fab['toVersion']<=_0x41a40b)['toVersion'];return _0x3e5eb9<this['_startingVersion']?this['_startingVersion']:_0x3e5eb9;}['_createInitialRevision'](_0x52057e){const _0x5ea2c2=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x5ea2c2)this['_initialRevisionId']=_0x5ea2c2['id'];else{const _0x4d8e3d=!this['editor']['model']['document']['roots']['find'](_0x3069a5=>this['editor']['model']['hasContent'](_0x3069a5)),_0x5aad06=this['editor']['plugins']['get']('Users')['me']['id'],_0x4109d6=m(this['editor']['locale'],_0x4d8e3d?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x52057e,'to':_0x52057e,'id':this['_initialRevisionId'],'name':_0x4109d6,'creatorId':_0x5aad06});}}['_createCurrentRevision'](_0x1c5efe){const _0x413e70=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x413e70),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x1c5efe,'to':_0x1c5efe,'id':_0x413e70,'name':'','creatorId':null}));}['_makeRevision']({name:_0x5bb012,from:_0x12b72a,to:_0x9baf7a,creatorId:_0x4f4e6f,id:_0x2eefd3}){const _0x7c5235=this['buildRevisionData']({'from':_0x12b72a,'to':_0x9baf7a});_0x7c5235['name']=_0x5bb012,_0x7c5235['creatorId']=_0x4f4e6f,_0x7c5235['id']=_0x2eefd3;const _0x5d2214=this['addRevisionData'](_0x7c5235);return this['adapter']&&this['_bufferUpdate'](_0x7c5235['id'],_0x7c5235,!0x0),_0x5d2214;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x3aefee){return(_0x3aefee=_0x3aefee['filter'](_0x4485fe=>!_0x4485fe['name']||'revision-start'!==_0x4485fe['name']&&'revision-end'!==_0x4485fe['name']))['forEach'](_0x81e65a=>{'string'!=typeof _0x81e65a&&(_0x81e65a['children']=this['_removeRevisionMarkers'](_0x81e65a['children']),_0x81e65a['attributes']=_0x81e65a['attributes']['filter'](_0x2df9e7=>!_0x2df9e7[0x0]['startsWith']('data-revision-')));}),_0x3aefee;}}function P(_0x3d61f2,_0x53197b){const _0x3bbc18=_0x53197b['editing']['view']['document'];if('string'==typeof _0x3d61f2)return new _0x3f4c03(_0x3bbc18,_0x3d61f2);{const _0x282b00=_0x3d61f2['children']['map'](_0x2bf8ec=>P(_0x2bf8ec,_0x53197b));return new(E[_0x3d61f2['type']]||_0xed99ca)(_0x3bbc18,_0x3d61f2['name'],_0x3d61f2['attributes'],_0x282b00);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x4b03bb){this['editor']=_0x4b03bb,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'](_0x1386b0){this['source']=_0x1386b0;const _0x3a91af=new Map(),_0xe0acd=new Map(),_0x413dbe=this['editor']['model']['document']['roots']['map'](_0x12b84f=>_0x12b84f['rootName']);for(const _0x2e39c1 of _0x413dbe){const _0x55501d=this['editor']['model']['document']['getRoot'](_0x2e39c1),_0x189b48=T(_0x55501d);_0x3a91af['set'](_0x2e39c1,_0x189b48),_0xe0acd['set'](_0x2e39c1,Object['fromEntries'](_0x55501d['getAttributes']()));}const _0x26af96=Array['from'](this['editor']['model']['markers'])['map'](_0x323cba=>[_0x323cba['name'],_0x323cba['getRange']()]),_0x40489a=this['source']['version'];this['_saveMetaData'](_0x40489a,_0x3a91af,_0x26af96,_0xe0acd),this['_startingRevisionId']=this['_revisionId'];const _0x358105=new Map(),_0x58b66d=new Map();for(const _0x261a75 of _0x413dbe){const _0x136d3b=F(_0x261a75);_0x358105['set'](_0x261a75,_0x136d3b),_0x58b66d['set'](_0x261a75,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x358105,[],_0x58b66d);}['getData'](_0x218ad3,_0x5290ef){if(this['_lastFrom']===_0x218ad3&&this['_lastTo']<=_0x5290ef)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x5290ef,!0x0);else{if(!this['_savedMetaData']['has'](_0x218ad3)){const _0xd5fb1d=this['_getPreviousFrom'](_0x218ad3);this['_calculateMetaData'](_0xd5fb1d,_0x218ad3,!0x1);}this['_calculateMetaData'](_0x218ad3,_0x5290ef,!0x0);}return this['_lastFrom']=_0x218ad3,this['_lastTo']=_0x5290ef,this['_getState']();}['loadState'](_0x4da52f){this['_reset'](),this['_lastFrom']=_0x4da52f['fromVersion'],this['_lastTo']=_0x4da52f['toVersion'];for(const _0x36b519 in _0x4da52f['diffData']){const _0x5275bb=_0x4da52f['diffData'][_0x36b519]['attachChange'],_0x1f89cd=_0x4c717d(_0x4da52f['diffData'][_0x36b519]['attributesBefore'])||{},_0x358749=this['_makeModelFromViewString'](_0x4da52f['diffData'][_0x36b519]['deletions']);_0x358749['rootName']=_0x36b519,_0x358749['_isAttached']=!_0x5275bb||!_0x5275bb['isAttached'],_0x358749['isAttached']=()=>_0x358749['_isAttached'],this['_baseRoots']['set'](_0x36b519,_0x358749),this['_baseRootsAttributes']['set'](_0x36b519,_0x1f89cd),_0x5275bb&&this['_touchedRoots']['set'](_0x36b519,_0x5275bb);const _0x3b697f=this['_makeIdsRoot'](_0x358749);this['_baseIdsRoots']['set'](_0x36b519,_0x3b697f);for(const [_0xee8ac2,_0x5aef91]of _0x358749['markers']){if(!_0xee8ac2['startsWith']('revision:'))continue;const _0x475a6a=_0xee8ac2['split'](':')[0x2];for(const _0x58a54c of _0x5aef91['getWalker']({'singleCharacters':!0x0})){const _0x1f7535=this['_getVidAttributeName'](_0x58a54c),_0x5e40d6='elementEnd'==_0x58a54c['type']?_0x58a54c['previousPosition']['path']['slice'](0x0,-0x1):_0x58a54c['previousPosition']['path'],_0x31318f=_0x3b697f['getNodeByPath'](_0x5e40d6)['getAttribute'](_0x1f7535);this['_touched']['set'](_0x31318f,{'userId':_0x475a6a});}}}this['_startingRevisionId']=this['_revisionId'];const _0x4c2d7b=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x10e477=>!this['_touched']['has'](_0x10e477));let _0x20a55d=0x0;const _0x45717a=new Map();for(const _0x1e607e in _0x4da52f['diffData']){const _0x1a1f25=_0x4da52f['diffData'][_0x1e607e]['attachChange'],_0x777161=_0x4c717d(_0x4da52f['diffData'][_0x1e607e]['attributesAfter'])||{},_0x5dd5f9=this['_makeModelFromViewString'](_0x4da52f['diffData'][_0x1e607e]['insertions']);_0x5dd5f9['rootName']=_0x1e607e,_0x5dd5f9['_isAttached']=!_0x1a1f25||_0x1a1f25['isAttached'],_0x5dd5f9['isAttached']=()=>_0x5dd5f9['_isAttached'],this['_diffRoots']['set'](_0x1e607e,_0x5dd5f9),this['_diffRootsAttributes']['set'](_0x1e607e,_0x777161);const _0x436034=this['_makeIdsRoot'](_0x5dd5f9,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x1e607e,_0x436034),_0x45717a['set'](_0x1e607e,_0x5dd5f9['isAttached']()?_0x777161:{});for(const [_0x4fbf9f,_0x33bed3]of _0x5dd5f9['markers']){if(!_0x4fbf9f['startsWith']('revision:'))continue;const _0x3c0536=_0x4fbf9f['split'](':')[0x2];for(const _0x529150 of _0x33bed3['getWalker']({'singleCharacters':!0x0})){const _0x564ac3=this['_getVidAttributeName'](_0x529150),_0x53a103=this['_revisionId']++,_0x4ac189='elementEnd'==_0x529150['type']?_0x529150['previousPosition']['path']['slice'](0x0,-0x1):_0x529150['previousPosition']['path'];_0x436034['getNodeByPath'](_0x4ac189)['_setAttribute'](_0x564ac3,_0x53a103),this['_touched']['set'](_0x53a103,{'userId':_0x3c0536});}}for(const _0x3c1554 of this['editor']['model']['createRangeIn'](_0x5dd5f9)['getWalker']({'singleCharacters':!0x0})){const _0x507687=this['_getVidAttributeName'](_0x3c1554),_0x16ddcb='elementEnd'==_0x3c1554['type']?_0x3c1554['previousPosition']['path']['slice'](0x0,-0x1):_0x3c1554['previousPosition']['path'],_0x41c605=_0x436034['getNodeByPath'](_0x16ddcb);_0x41c605['getAttribute'](_0x507687)>0x0||_0x41c605['_setAttribute'](_0x507687,_0x4c2d7b[_0x20a55d++]);}for(const [_0x36776a,_0x5844c1]of _0x5dd5f9['markers'])_0x36776a['startsWith']('revision:')||this['_markers']['set'](_0x36776a,_0x5844c1);}const _0x360317=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x360317),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x360317,0x1));const _0x47a2c3=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x47a2c3),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x47a2c3,0x1));const _0x284a84=Array['from'](this['_diffRoots'])['map'](([_0x383be7,_0xdec624])=>[_0x383be7,T(_0xdec624)]);this['_saveMetaData'](this['_lastTo'],_0x284a84,this['_markers'],_0x45717a);}['_makeModelFromViewString'](_0x3af4ca){const _0x4205a2=JSON['parse'](_0x3af4ca),_0x3296f9=this['editor']['editing']['view']['document'],_0x1963f4=new _0x31de44(_0x3296f9,_0x4205a2['map'](_0x6d0712=>P(_0x6d0712,this['editor'])));return this['editor']['data']['toModel'](_0x1963f4);}['_saveMetaData'](_0x36b576,_0x4a212f,_0x4c0c3e,_0x5376c2){const _0x38a072=new Map(_0x4a212f),_0x576021=new Map(_0x4c717d(_0x5376c2)),_0x37ea66=new Map();for(const [_0x198732,_0x1c00dd]of _0x4c0c3e)_0x37ea66['set'](_0x198732,{'start':_0x1c00dd['start']['clone'](),'end':_0x1c00dd['end']['clone'](),'rootName':_0x1c00dd['root']['rootName']});this['_savedMetaData']['set'](_0x36b576,{'roots':_0x38a072,'markers':_0x37ea66,'rootsAttributes':_0x576021});}['_removeMetaData'](_0x2456b3){this['_savedMetaData']['delete'](_0x2456b3);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x387cc6,_0x349605=null){let _0x1a2e7c=null;_0x387cc6['is']('documentFragment')||(_0x1a2e7c=new ut(_0x387cc6['name'],{'vid_start':null===_0x349605?this['_revisionId']++:_0x349605++}));const _0x210b1d=[];for(const _0x222884 of _0x387cc6['getChildren']())if(_0x222884['is']('element')){_0x210b1d['push'](this['_makeIdsRoot'](_0x222884,_0x349605));const _0x132830=_0x210b1d[_0x210b1d['length']-0x1];null!==_0x349605&&(_0x349605=_0x132830['is']('element','$text')?_0x132830['getAttribute']('vid')+0x1:_0x132830['getAttribute']('vid_end')+0x1);}else{for(let _0x341975=0x0;_0x341975<_0x222884['offsetSize'];_0x341975++)_0x210b1d['push'](new ut('$text',{'vid':null===_0x349605?this['_revisionId']++:_0x349605++}));}if(_0x387cc6['is']('documentFragment')){const _0x17cf35=F(_0x387cc6['rootName']);return _0x17cf35['_insertChild'](0x0,_0x210b1d),_0x17cf35;}return _0x1a2e7c['_setAttribute']('vid_end',null===_0x349605?this['_revisionId']++:_0x349605++),_0x1a2e7c['_insertChild'](0x0,_0x210b1d),_0x1a2e7c;}['_calculateMetaData'](_0x26b2c5,_0x2bb373,_0x532d84){this['_reset']();const {roots:_0x4ab898,markers:_0x1bce49,rootsAttributes:_0x28b7dd}=this['_savedMetaData']['get'](_0x26b2c5);this['_baseRoots']=new Map(_0x4ab898),this['_baseRootsAttributes']=new Map(_0x4c717d(_0x28b7dd));for(const [_0x5945c2,_0x41b9fc]of this['_baseRoots'])if('$graveyard'!==_0x5945c2&&(this['_diffRoots']['set'](_0x5945c2,T(_0x41b9fc)),this['_diffRootsAttributes']=new Map(_0x4c717d(_0x28b7dd)),_0x532d84)){const _0x4fe79e=this['_revisionId'];this['_idsRoots']['set'](_0x5945c2,this['_makeIdsRoot'](_0x41b9fc)),this['_baseIdsRoots']['set'](_0x5945c2,this['_makeIdsRoot'](_0x41b9fc,_0x4fe79e));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x532d84&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x1aec2e,_0x2661fa]of _0x1bce49){const _0x28ae9a=this['_baseRoots']['get'](_0x2661fa['rootName']),_0x3d1e01=this['_diffRoots']['get'](_0x2661fa['rootName']),_0x5b88b8=new ft(this['_fixPosition'](_0x2661fa['start'],_0x28ae9a),this['_fixPosition'](_0x2661fa['end'],_0x28ae9a)),_0x269dc5=this['_fixRange'](_0x5b88b8,_0x3d1e01);_0x28ae9a['markers']['set'](_0x1aec2e,_0x5b88b8),this['_markers']['set'](_0x1aec2e,_0x269dc5);}this['_applyOperations'](_0x26b2c5,_0x2bb373,_0x532d84);}['_applyOperations'](_0x546586,_0x19d795,_0x26a423){for(const _0x31fb2b of this['source']['getOperations'](_0x546586,_0x19d795))this['_handleOperation'](_0x31fb2b,_0x26a423);for(const _0x2c9641 of this['_diffRoots']['values']())_0x2c9641['markers']['clear']();for(const [_0x10b3f9,_0x216988]of this['_markers']){this['_diffRoots']['get'](_0x216988['root']['rootName'])['markers']['set'](_0x10b3f9,_0x216988['clone']());}const _0x2adafd=new Map(),_0x159ec3=new Map();for(const [_0x5f0d75,_0x250d91]of this['_diffRoots'])_0x2adafd['set'](_0x5f0d75,T(_0x250d91)),_0x159ec3['set'](_0x5f0d75,this['_diffRootsAttributes']['get'](_0x5f0d75));this['_saveMetaData'](_0x19d795,_0x2adafd,this['_markers'],_0x159ec3);}['_getPreviousFrom'](_0x5d8924){const _0x3a8738=Array['from'](this['_savedMetaData']['keys']());_0x3a8738['sort']((_0x3d16a3,_0x173ff2)=>_0x3d16a3-_0x173ff2),_0x3a8738['reverse']();for(const _0x5a9be9 of _0x3a8738)if(_0x5a9be9<_0x5d8924)return _0x5a9be9;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x1c1374,_0x26e5ab){const _0x318081=Array['from'](_0x26e5ab['markers'])['map'](([_0x14da07,_0x15f068])=>[_0x14da07,this['_fixRange'](_0x15f068,_0x1c1374)]);_0x1c1374['markers']=new Map(_0x318081);}['_transformMarkers'](_0x1c6048){for(const _0x402f50 of this['_markers']['values']()){const _0x4112f8=_0x402f50['getTransformedByOperation'](_0x1c6048),_0x2d7425=ft['_createFromRanges'](_0x4112f8);_0x402f50['start']=_0x2d7425['start'],_0x402f50['end']=_0x2d7425['end'];}}['_handleOperation'](_0x3399d9,_0x1c1741){if('addRoot'!=_0x3399d9['type']&&'detachRoot'!=_0x3399d9['type']){if('insert'==_0x3399d9['type']){const _0x2773fb=_0x3399d9['position']['root']['rootName'];this['_diffRoots']['has'](_0x2773fb)||(this['_diffRoots']['set'](_0x2773fb,F(_0x2773fb,!0x0)),this['_diffRootsAttributes']['set'](_0x2773fb,{}),_0x1c1741&&this['_idsRoots']['set'](_0x2773fb,F(_0x2773fb,!0x0)));}else{if('addRootAttribute'==_0x3399d9['type']||'removeRootAttribute'==_0x3399d9['type']||'changeRootAttribute'==_0x3399d9['type'])return void this['_handleRootAttributeOperation'](_0x3399d9);'marker'==_0x3399d9['type']&&this['_handleMarkerOperation'](_0x3399d9);}if('marker'!==_0x3399d9['type']){const _0x1fd7cf=this['_cloneOperation'](_0x3399d9,this['_diffRoots']);_0x1fd7cf['_execute'](),this['_transformMarkers'](_0x1fd7cf);}if(_0x1c1741)switch(_0x3399d9['type']){case'insert':this['_handleInsertOperation'](_0x3399d9);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x3399d9);break;case'merge':this['_handleMergeOperation'](_0x3399d9);break;case'split':this['_handleSplitOperation'](_0x3399d9);}}else this['_handleRootOperation'](_0x3399d9,_0x1c1741);}['_cloneOperation'](_0x329b13,_0x2c2e8c){const _0x4974cc=_0x329b13['clone']();return _0x4974cc['_authorId']=_0x329b13['_authorId'],this['_fixOperation'](_0x4974cc,_0x2c2e8c),_0x4974cc;}['_getBaseVids'](_0x426ecd){return _0x426ecd['map'](_0x3dfce4=>{const _0x21187b=this['_getVidAttributeName'](_0x3dfce4);return Number(_0x3dfce4['item']['getAttribute'](_0x21187b));});}['_generateTape'](_0x2e1ca5,_0x3e66e7){if(_0x2e1ca5['is']('element','$text'))_0x3e66e7['push']({'item':_0x2e1ca5,'type':'text'});else{_0x2e1ca5['is']('element')&&_0x3e66e7['push']({'item':_0x2e1ca5,'type':'elementStart'});for(const _0x533188 of _0x2e1ca5['getChildren']())this['_generateTape'](_0x533188,_0x3e66e7);_0x2e1ca5['is']('element')&&_0x3e66e7['push']({'item':_0x2e1ca5,'type':'elementEnd'});}return _0x3e66e7;}['_getState'](){const _0x561cf5=new Map(this['_touched']),_0xfe0a85=new Map(_0x561cf5),_0x713d51=new Map(),_0x520675={'insertions':{},'deletions':{}},_0x4e6102={'insertions':{},'deletions':{}},_0x4144e3=new Map(),_0x2c3567=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x2c3567['delete']('$graveyard');for(const _0x1696a2 of _0x2c3567){const _0x2d0b61=this['_diffRoots']['get'](_0x1696a2)||F(_0x1696a2,!0x1),_0x5781c4=this['_baseRoots']['get'](_0x1696a2)||F(_0x1696a2,!0x1);_0x2d0b61['isAttached']()||_0x5781c4['isAttached']()?(_0x520675['insertions'][_0x1696a2]=T(_0x2d0b61),_0x520675['deletions'][_0x1696a2]=T(_0x5781c4),this['_copyMarkers'](_0x520675['deletions'][_0x1696a2],_0x5781c4),this['_copyMarkers'](_0x520675['insertions'][_0x1696a2],_0x2d0b61),_0x4e6102['insertions'][_0x1696a2]=this['_generateTape'](this['_idsRoots']['get'](_0x1696a2),[]),_0x4e6102['deletions'][_0x1696a2]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x1696a2)||F(_0x1696a2,!0x1),[])):_0x2c3567['delete'](_0x1696a2);}for(const _0x5f12b4 of _0x2c3567){const _0x542b6e=_0x4e6102['insertions'][_0x5f12b4];for(const _0x515a82 of _0x542b6e){const _0x419cf1=this['_getVidAttributeName'](_0x515a82),_0x28b5a2=_0x515a82['item']['getAttribute'](_0x419cf1);_0xfe0a85['delete'](_0x28b5a2),_0x28b5a2>=this['_startingRevisionId']&&_0x713d51['set'](_0x28b5a2,_0x561cf5['get'](_0x28b5a2));}}for(const _0x5281f6 of _0x2c3567){const _0x2d2ef2=_0x4e6102['insertions'][_0x5281f6],_0x4e7d21=this['_getBaseVids'](_0x4e6102['deletions'][_0x5281f6]);let _0x2cb95d=0x0;for(const _0x4b9633 of _0x2d2ef2){const _0x3c38a3=this['_getVidAttributeName'](_0x4b9633),_0x14471b=_0x4b9633['item']['getAttribute'](_0x3c38a3);if(!_0x713d51['has'](_0x14471b)&&!_0x4144e3['has'](_0x14471b)){if(_0xfe0a85['has'](_0x14471b))_0x2cb95d++;else{if(_0x14471b!=_0x4e7d21[_0x2cb95d]){const _0x49f92d=_0x561cf5['get'](_0x14471b)||_0x561cf5['get'](_0x4e7d21[_0x2cb95d]);for(;_0x14471b!=_0x4e7d21[_0x2cb95d];)_0xfe0a85['has'](_0x4e7d21[_0x2cb95d])||(_0x4144e3['set'](_0x4e7d21[_0x2cb95d],_0x49f92d),_0x561cf5['set'](_0x4e7d21[_0x2cb95d],_0x49f92d)),_0x2cb95d++;}_0x2cb95d++;}}}}for(const _0x2b87a1 of _0x2c3567){const _0x22d16a=_0x4e6102['insertions'][_0x2b87a1];for(const _0x24cfed of _0x22d16a){const _0x2c61d9=this['_getVidAttributeName'](_0x24cfed),_0x110e73=_0x24cfed['item']['getAttribute'](_0x2c61d9);if(_0x4144e3['has'](_0x110e73)){const _0x4c5fcc=_0x4144e3['get'](_0x110e73);_0xfe0a85['has'](_0x110e73)||_0xfe0a85['set'](_0x110e73,{..._0x4c5fcc}),_0x713d51['set'](_0x110e73,{..._0x4c5fcc});}}}for(const _0x56b242 of _0xfe0a85['keys']())_0x56b242>=this['_startingRevisionId']&&_0xfe0a85['delete'](_0x56b242);const _0x1d96dd=new Map();for(const _0x3bdddf of _0x2c3567){let _0x36b3e2=_0x4e6102['insertions'][_0x3bdddf];for(const _0x5e5bbe of _0x36b3e2)if(_0x5e5bbe['item']['is']('element','tableCell')){const _0x12852f=this['_getVidAttributeName'](_0x5e5bbe),_0x16abf9=_0x5e5bbe['item']['getAttribute'](_0x12852f);if(_0x713d51['has'](_0x16abf9)){const _0x2dd854=_0x5e5bbe['item']['parent']['parent']['getAttribute']('vid_start'),_0x2103c1=_0x1d96dd['get'](_0x2dd854)||new Set();_0x2103c1['add'](_0x713d51['get'](_0x16abf9)['userId']),_0x1d96dd['set'](_0x2dd854,_0x2103c1);}}_0x36b3e2=_0x4e6102['deletions'][_0x3bdddf];for(const _0x319e88 of _0x36b3e2)if(_0x319e88['item']['is']('element','tableCell')){const _0x597156=this['_getVidAttributeName'](_0x319e88),_0x3380b3=_0x319e88['item']['getAttribute'](_0x597156);if(_0xfe0a85['has'](_0x3380b3)){const _0x23fc3c=_0x319e88['item']['parent']['parent']['getAttribute']('vid_start'),_0xf749df=_0x1d96dd['get'](_0x23fc3c)||new Set();_0xf749df['add'](_0xfe0a85['get'](_0x3380b3)['userId']),_0x1d96dd['set'](_0x23fc3c,_0xf749df);}}for(const _0x2be794 of _0x1d96dd['keys']())(_0x713d51['has'](_0x2be794)||_0xfe0a85['has'](_0x2be794))&&_0x1d96dd['delete'](_0x2be794);}for(const _0x21c185 of _0x2c3567){const _0x57b10a=_0x4e6102['insertions'][_0x21c185];let _0x376d57=null,_0x5a7e10=null;for(const _0x51437a of _0x57b10a){const _0xed01cf=this['_getVidAttributeName'](_0x51437a),_0xb42c69=_0x51437a['item']['getAttribute'](_0xed01cf),_0x2ac6be=_0x1d96dd['get'](_0xb42c69);_0x2ac6be&&'elementStart'==_0x51437a['type']&&(_0x376d57=Array['from'](_0x2ac6be)[0x0],_0x5a7e10=_0x51437a['item']['getAttribute']('vid_end')),_0x376d57&&(_0xfe0a85['set'](_0xb42c69,{'userId':_0x376d57}),_0x713d51['set'](_0xb42c69,{'userId':_0x376d57})),_0xb42c69==_0x5a7e10&&(_0x376d57=null,_0x5a7e10=null);}}const _0x408d53={},_0x2a1f93=new Set();for(const _0x1fff8f of _0x2c3567){const _0x44a17c=_0x520675['deletions'][_0x1fff8f],_0x4ff5df=_0x520675['insertions'][_0x1fff8f];for(const {userId:_0x5c34f1}of this['_touchedMarkers']['values']())null!==_0x5c34f1&&_0x2a1f93['add'](_0x5c34f1);for(const {userId:_0x13e9ad}of this['_touchedRoots']['values']())null!==_0x13e9ad&&_0x2a1f93['add'](_0x13e9ad);this['_markChanges'](_0x4ff5df,_0x4e6102['insertions'][_0x1fff8f],_0x713d51,'insertion',_0x2a1f93),this['_markChanges'](_0x44a17c,_0x4e6102['deletions'][_0x1fff8f],_0xfe0a85,'deletion',_0x2a1f93),_0x408d53[_0x1fff8f]={'insertions':this['_prepareViewToSave'](_0x4ff5df),'deletions':this['_prepareViewToSave'](_0x44a17c),'attachChange':this['_touchedRoots']['get'](_0x1fff8f)||null,'attributesBefore':_0x4c717d(this['_baseRootsAttributes']['get'](_0x1fff8f))||{},'attributesAfter':_0x4c717d(this['_diffRootsAttributes']['get'](_0x1fff8f))};}return{'diffData':_0x408d53,'authorsIds':Array['from'](_0x2a1f93)};}['_processRootBeforeSave'](_0x28cff9){for(const [,_0x5d378e]of _0x28cff9['markers']){const _0x4ed543=_0x5d378e['start']['getAncestors']()['filter'](_0x514b09=>'tableCell'==_0x514b09['name']);for(const _0x23e6ec of _0x4ed543)0x1==_0x23e6ec['childCount']&&_0x23e6ec['getChild'](0x0)['is']('element','paragraph')&&_0x23e6ec['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x40818b){this['_processRootBeforeSave'](_0x40818b);const _0x300333=this['editor']['data']['toView'](_0x40818b,{}),_0x364817=Array['from'](_0x300333['getChildren']())['map'](_0x25e524=>this['_getViewJson'](_0x25e524));return JSON['stringify'](_0x364817);}['_getViewJson'](_0x599f48){if(_0x599f48['is']('$text'))return _0x599f48['data'];{const _0xcd5745=_0x599f48;return{'type':Object['keys'](E)['find'](_0x1ba128=>_0x599f48 instanceof E[_0x1ba128]),'name':_0xcd5745['name'],'attributes':Array['from'](_0xcd5745['getAttributes']()),'children':Array['from'](_0xcd5745['getChildren']())['map'](_0x2c017d=>this['_getViewJson'](_0x2c017d))};}}['_markChanges'](_0x43386a,_0x3031d3,_0x599141,_0x2fe552,_0x2a7962){let _0xf47c14=null,_0x24abc0=null,_0x1f329d=0x0;const _0x4ab1ea=this['editor']['model'];for(let _0x122c6f=0x0;_0x122c6f<_0x3031d3['length'];_0x122c6f++){const _0x5d9d2a=this['_getVidAttributeName'](_0x3031d3[_0x122c6f]),_0x52e9a9=_0x3031d3[_0x122c6f]['item']['getAttribute'](_0x5d9d2a),_0xbe5bc8=_0x599141['get'](_0x52e9a9),_0x12c96f=_0x122c6f==_0x3031d3['length']-0x1;(!_0xf47c14&&_0xbe5bc8&&(_0xf47c14=_0xbe5bc8,_0x24abc0=_0x3031d3[_0x122c6f]),_0xf47c14&&(!_0xbe5bc8||_0xbe5bc8['userId']!=_0xf47c14['userId']))&&(_0x15aef5(_0xbe5bc8,B(_0x24abc0,_0x43386a,_0x4ab1ea),B(_0x3031d3[_0x122c6f],_0x43386a,_0x4ab1ea)),_0xf47c14=_0xbe5bc8||null,_0x24abc0=_0xbe5bc8?_0x3031d3[_0x122c6f]:null),_0xf47c14&&_0x12c96f&&_0x15aef5(_0xbe5bc8,B(_0x24abc0,_0x43386a,_0x4ab1ea),J(_0x3031d3[_0x122c6f],_0x43386a,_0x4ab1ea));}function _0x15aef5(_0x25fef6,_0xaea6ef,_0x151da8){const _0x375f60=_0xf47c14['userId'],_0x498d00='revision:'+_0x2fe552+':'+_0x375f60+':'+_0x1f329d++,_0x13a287=_0x4ab1ea['createRange'](_0xaea6ef,_0x151da8);_0x43386a['markers']['set'](_0x498d00,_0x13a287),null!==_0x375f60&&_0x2a7962['add'](_0x375f60);}}['_getVidAttributeName'](_0x31c952){switch(_0x31c952['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x320766,_0x572845){_0x320766['baseVersion']=null;for(const _0xb69a96 in _0x320766){const _0x4ed01f=_0x320766[_0xb69a96];if(_0x4ed01f instanceof vt){const _0x4c3ff0=_0x572845['get'](_0x4ed01f['root']['rootName']);_0x320766[_0xb69a96]=this['_fixPosition'](_0x4ed01f,_0x4c3ff0);}if(_0x4ed01f instanceof ft){const _0x51dde2=_0x572845['get'](_0x4ed01f['root']['rootName']);_0x320766[_0xb69a96]=this['_fixRange'](_0x4ed01f,_0x51dde2);}'root'===_0xb69a96&&(_0x320766['root']=_0x572845['get'](_0x320766['root']['rootName']));}}['_fixRange'](_0x50b131,_0x5ce6ed){return this['editor']['model']['createRange'](this['_fixPosition'](_0x50b131['start'],_0x5ce6ed),this['_fixPosition'](_0x50b131['end'],_0x5ce6ed));}['_fixPosition'](_0x342e62,_0x4b50f4){return this['editor']['model']['createPositionFromPath'](_0x4b50f4,_0x342e62['path'],_0x342e62['stickiness']);}['_handleInsertOperation'](_0x6d11fa){const _0x4a9f0f=this['_idsRoots']['get'](_0x6d11fa['position']['root']['rootName']),_0x3f8b58=this['_fixPosition'](_0x6d11fa['position'],_0x4a9f0f),_0x4d030e=null===_0x6d11fa['_authorId']?null:_0x6d11fa['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x40742d=_0x3f8b58['parent'],_0x3f62e0=this['_revisionId'],_0x399caa=[];for(const _0x363150 of _0x6d11fa['nodes'])if(_0x363150['is']('element'))_0x399caa['push'](this['_makeIdsRoot'](_0x363150));else{for(let _0x3099a9=0x0;_0x3099a9<_0x363150['offsetSize'];_0x3099a9++)_0x399caa['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x4204d5=this['_revisionId'];for(let _0x18c8eb=_0x3f62e0;_0x18c8eb<_0x4204d5;_0x18c8eb++)this['_touched']['set'](_0x18c8eb,{'userId':_0x4d030e});_0x40742d['_insertChild'](_0x3f8b58['offset'],_0x399caa);}['_handleMoveOperation'](_0x812f0){(_0x812f0=this['_cloneOperation'](_0x812f0,this['_idsRoots']))['_execute']();const _0x4025e2=null===_0x812f0['_authorId']?null:_0x812f0['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5d68d7=_0x812f0['getMovedRangeStart'](),_0x3f35cb=_0x5d68d7['parent'],_0x18c6c6=_0x5d68d7['offset'];!function _0x512492(_0x5885e6,_0x47555a,_0x1082e6,_0x24599f){for(let _0x372c07=_0x1082e6;_0x372c07<_0x24599f;_0x372c07++){const _0x1c780b=_0x47555a['getChild'](_0x372c07);_0x1c780b['is']('element','$text')?_0x5885e6['set'](_0x1c780b['getAttribute']('vid'),{'userId':_0x4025e2}):(_0x5885e6['set'](_0x1c780b['getAttribute']('vid_start'),{'userId':_0x4025e2}),_0x512492(_0x5885e6,_0x1c780b,0x0,_0x1c780b['childCount']),_0x5885e6['set'](_0x1c780b['getAttribute']('vid_end'),{'userId':_0x4025e2}));}}(this['_touched'],_0x3f35cb,_0x18c6c6,_0x18c6c6+_0x812f0['howMany']);}['_handleMergeOperation'](_0x3743a8){const _0x1ebd32=null===(_0x3743a8=this['_cloneOperation'](_0x3743a8,this['_idsRoots']))['_authorId']?null:_0x3743a8['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4d8689=_0x3743a8['targetPosition']['parent'],_0x5bad67=_0x3743a8['sourcePosition']['parent'],_0x148434=_0x4d8689['getAttribute']('vid_end'),_0x4ba181=_0x5bad67['getAttribute']('vid_start');_0x4d8689['_setAttribute']('vid_end',_0x5bad67['getAttribute']('vid_end')),_0x5bad67['_setAttribute']('vid_end',_0x148434),this['_touched']['set'](_0x4ba181,{'userId':_0x1ebd32}),this['_touched']['set'](_0x148434,{'userId':_0x1ebd32}),_0x3743a8['_execute']();}['_handleSplitOperation'](_0xc5c51d){const _0x32891c=null===(_0xc5c51d=this['_cloneOperation'](_0xc5c51d,this['_idsRoots']))['_authorId']?null:_0xc5c51d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x11681f=_0xc5c51d['graveyardPosition'],_0x5461c7=_0xc5c51d['splitPosition']['parent'];_0xc5c51d['_execute']();const _0x67e460=_0x5461c7['getAttribute']('vid_end'),_0x1eea1c=_0xc5c51d['insertionPosition']['nodeAfter'];if(_0x11681f){const _0x2eb764=_0x1eea1c['getAttribute']('vid_end'),_0x55c575=_0x5461c7['getAttribute']('vid_end');_0x5461c7['_setAttribute']('vid_end',_0x2eb764),_0x1eea1c['_setAttribute']('vid_end',_0x55c575),this['_touched']['set'](_0x5461c7['getAttribute']('vid_end'),{'userId':_0x32891c}),this['_touched']['set'](_0x1eea1c['getAttribute']('vid_start'),{'userId':_0x32891c});}else{const _0x1c61d4=this['_revisionId']++,_0x559fa0=this['_revisionId']++;_0x5461c7['_setAttribute']('vid_end',_0x1c61d4),_0x1eea1c['_setAttribute']('vid_start',_0x559fa0),_0x1eea1c['_setAttribute']('vid_end',_0x67e460),this['_touched']['set'](_0x1c61d4,{'userId':_0x32891c}),this['_touched']['set'](_0x559fa0,{'userId':_0x32891c});}}['_handleMarkerOperation'](_0x13d923){if(!_0x13d923['affectsData'])return;const _0x393139=(_0x13d923=this['_cloneOperation'](_0x13d923,this['_diffRoots']))['oldRange']?_0x13d923['oldRange']['root']:null,_0x22ed8a=_0x13d923['newRange']?_0x13d923['newRange']['root']:null;_0x393139&&this['_markers']['delete'](_0x13d923['name']),_0x22ed8a&&this['_markers']['set'](_0x13d923['name'],_0x13d923['newRange']['clone']());const _0x40ca40=null===_0x13d923['_authorId']?null:_0x13d923['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1eb92a=_0x13d923['name'];if(!this['_touchedMarkers']['has'](_0x1eb92a))return void this['_touchedMarkers']['set'](_0x1eb92a,{'range':_0x13d923['oldRange'],'userId':_0x40ca40});const _0x1bd7ca=this['_touchedMarkers']['get'](_0x1eb92a),_0x520b74=_0x1bd7ca['range'],_0x2c24db=_0x13d923['newRange'];null==_0x520b74&&null==_0x2c24db||_0x520b74&&_0x2c24db&&_0x520b74['isEqual'](_0x2c24db)?this['_touchedMarkers']['delete'](_0x13d923['name']):_0x1bd7ca['userId']=_0x40ca40;}['_handleRootOperation'](_0x24d076,_0x6b0e5f){this['_diffRoots']['has'](_0x24d076['rootName'])?this['_diffRoots']['get'](_0x24d076['rootName'])['_isAttached']=_0x24d076['isAdd']:(this['_diffRoots']['set'](_0x24d076['rootName'],F(_0x24d076['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x24d076['rootName'],{}),_0x6b0e5f&&this['_idsRoots']['set'](_0x24d076['rootName'],F(_0x24d076['rootName'],!0x0)));const _0x1d8be=null===_0x24d076['_authorId']?null:_0x24d076['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1cdf25=this['_touchedRoots']['get'](_0x24d076['rootName']);_0x1cdf25&&_0x1cdf25['userId']===_0x1d8be?this['_touchedRoots']['delete'](_0x24d076['rootName']):this['_touchedRoots']['set'](_0x24d076['rootName'],{'userId':_0x1d8be,'isAttached':_0x24d076['isAdd']});}['_handleRootAttributeOperation'](_0x5caeb2){const _0x42c507=this['_diffRootsAttributes']['get'](_0x5caeb2['root']['rootName']);null===_0x5caeb2['newValue']?delete _0x42c507[_0x5caeb2['key']]:_0x42c507[_0x5caeb2['key']]=_0x5caeb2['newValue'];}}function T(_0x2b5615){const _0x471905=F(_0x2b5615['rootName'],_0x2b5615['isAttached']());for(const _0x38a7f0 of _0x2b5615['getChildren']()){const _0x3ae922=_0x38a7f0['_clone'](!0x0);_0x471905['_appendChild'](_0x3ae922);}return _0x471905;}function F(_0x3e5057,_0x62b393=!0x0){const _0x38da2a=new gt();return _0x38da2a['rootName']=_0x3e5057,_0x38da2a['_isAttached']=_0x62b393,_0x38da2a['isAttached']=()=>_0x38da2a['_isAttached'],_0x38da2a;}function B(_0x3f1a29,_0x4ced34,_0x3b9bc7){const _0x4bdf56='elementEnd'==_0x3f1a29['type']?_0x3b9bc7['createPositionAt'](_0x3f1a29['item'],'end'):_0x3b9bc7['createPositionBefore'](_0x3f1a29['item']);return _0x3b9bc7['createPositionFromPath'](_0x4ced34,_0x4bdf56['path'],_0x4bdf56['stickiness']);}function J(_0x13c5dd,_0x39356c,_0xbc1d80){const _0x4995da='elementStart'==_0x13c5dd['type']?_0xbc1d80['createPositionAt'](_0x13c5dd['item'],0x0):_0xbc1d80['createPositionAfter'](_0x13c5dd['item']);return _0xbc1d80['createPositionFromPath'](_0x39356c,_0x4995da['path'],_0x4995da['stickiness']);}class hs extends _0x327b83{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x2b5fab,_0x31ed03){super(_0x2b5fab),this['focusTracker']=new _0x11e93c(),this['keystrokes']=new _0xb57a3(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x31ed03),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),ts(this);}['render'](){super['render'](),_0xfeff6({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x3132e4=_0x84ec80=>_0x84ec80['stopPropagation']();this['keystrokes']['set']('arrowright',_0x3132e4),this['keystrokes']['set']('arrowleft',_0x3132e4),this['keystrokes']['set']('arrowup',_0x3132e4),this['keystrokes']['set']('arrowdown',_0x3132e4);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x1387b2){this['revisionNameInputView']['fieldView']['element']['value']=_0x1387b2['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x2acfaf){const _0x43b6f3=new at(this['locale'],ti),_0x3918f9=_0x43b6f3['fieldView'];_0x3918f9['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x2148f5=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x2acfaf&&(_0x2148f5+='\x20('+m(this['locale'],'optional')+')'),(_0x43b6f3['label']=_0x2148f5,_0x3918f9['on']('input',()=>{this['revisionNameInputValue']=_0x3918f9['element']['value']['trim']();}),_0x43b6f3);}}class f extends _0x1dcc45{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x22e74d=this['editor'],_0x1be100=_0x22e74d['plugins']['get']('RevisionTracker');_0x22e74d['ui']['componentFactory']['add']('revisionHistory',_0x213190=>{const _0x312b61=_0x1381d9(_0x213190),_0x36bf0f=_0x312b61['panelView']['children'],_0x461569=new _0x223c0a(_0x213190),_0x2df8f2=new _0x3f3e5b(_0x213190),_0x1110e8=new _0x5c7a4e(_0x213190),_0x4db172=new _0x3f3e5b(_0x213190),_0x575264=new _0x5c7a4e(_0x213190);return _0x312b61['bind']('isEnabled')['to'](_0x1be100,'isReady',_0x1be100,'isEnabled',_0x22e74d,'isReadOnly',(_0x552986,_0xb8d138,_0x55a02a)=>_0x552986&&_0xb8d138&&!_0x55a02a),_0x312b61['buttonView']['set']({'icon':_0x387ff7,'label':m(_0x213190,'Revision\x20history'),'tooltip':!0x0}),_0x1110e8['set']({'label':m(_0x213190,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x1110e8['bind']('isEnabled')['to'](_0x1be100,'isReady',_0x1be100,'isEnabled',_0x22e74d,'isReadOnly',(_0x383851,_0x2a5bd8,_0x17cac4)=>_0x383851&&_0x2a5bd8&&!_0x17cac4),_0x1110e8['on']('execute',()=>this['_showDialog']()),_0x575264['set']({'label':m(_0x213190,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x575264['bind']('isEnabled')['to'](_0x1be100,'isReady',_0x22e74d,'isReadOnly',(_0x3f986f,_0x394f95)=>_0x3f986f&&!_0x394f95),_0x575264['on']('execute',()=>{_0x22e74d['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x312b61['isOpen']=!0x1,_0x22e74d['editing']['view']['focus']();}),_0x2df8f2['children']['add'](_0x1110e8),_0x4db172['children']['add'](_0x575264),_0x461569['role']='menu',_0x461569['items']['addMany']([_0x2df8f2,_0x4db172]),_0x36bf0f['add'](_0x461569),_0x312b61;}),_0x22e74d['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x309ea0=this['editor'],_0xbd612c=_0x309ea0['locale'],_0x26e28d=new _0x23650f(_0xbd612c),_0x20966f=new _0x28d53e(_0xbd612c);_0x26e28d['buttonView']['set']({'icon':_0x387ff7,'label':m(_0xbd612c,'Revision\x20history')});const _0x232c41=new _0x4947e9(_0xbd612c,_0x26e28d),_0x3a25ae=new _0x49fc7d(_0xbd612c);_0x3a25ae['set']({'label':m(_0xbd612c,'Save\x20current\x20revision')}),_0x3a25ae['delegate']('execute')['to'](_0x26e28d),_0x3a25ae['on']('execute',()=>{this['_showDialog']();}),_0x232c41['children']['add'](_0x3a25ae),_0x20966f['items']['add'](_0x232c41);const _0x2ebb94=new _0x4947e9(_0xbd612c,_0x26e28d),_0x55b6e2=new _0x49fc7d(_0xbd612c);return _0x55b6e2['set']({'label':m(_0xbd612c,'Open\x20revision\x20history')}),_0x55b6e2['delegate']('execute')['to'](_0x26e28d),_0x55b6e2['on']('execute',()=>{_0x309ea0['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x2ebb94['children']['add'](_0x55b6e2),_0x20966f['items']['add'](_0x2ebb94),_0x26e28d['panelView']['children']['add'](_0x20966f),_0x26e28d;}['_showDialog'](){const _0x557560=this['editor'],_0x530a37=_0x557560['locale'],_0x16a0c2=_0x557560['plugins']['get']('Dialog'),_0x5abe6b=_0x557560['plugins']['get']('RevisionTracker');function _0x2b605b(_0x3d6eb9){_0x557560['config']['get']('revisionHistory.requireRevisionName')&&''===_0x3d6eb9['revisionName']?_0x3d6eb9['revisionNameInputView']['errorText']=m(_0x530a37,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x557560['plugins']['get'](u)['saveRevision']({'name':_0x3d6eb9['revisionName']}),_0x16a0c2['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x2b605b(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x16a0c2['show']({'id':'revisionSave','title':m(_0x530a37,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x557560['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x16a0c2['hide']()},{'label':m(_0x557560['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x536281){_0x536281['bind']('isEnabled')['to'](_0x5abe6b,'isReady',_0x5abe6b,'isEnabled',_0x557560,'isReadOnly',(_0x48ece8,_0x3d9573,_0x49e24b)=>_0x48ece8&&_0x3d9573&&!_0x49e24b);},'onExecute':()=>_0x2b605b(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x4be236=this['editor'],_0x39bdb9=_0x4be236['locale'];this['_saveRevisionFormView']=new hs(_0x39bdb9,_0x4be236['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0x327b83{['changeId'];['_model'];constructor(_0x5cbe88,_0x125a03){super(_0x5cbe88),this['_model']=_0x125a03,this['changeId']=_0x125a03['id'];const _0x30491f=this['bindTemplate'],_0x95d83b=m(_0x5cbe88,_0x125a03['data']['isSuggestion']?'Suggested\x20by':'add'==_0x125a03['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x125a03['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x30491f['to']('type',_0x449513=>'ck-revision-change__'+_0x449513)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x95d83b}]},{'text':'\x20'+_0x125a03['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x5c623c(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x2a306b){super(),this['id']=_0x2a306b['id']||_0x3807e5(),this['author']=_0x2a306b['author'],this['type']=_0x2a306b['type'],this['data']=_0x2a306b['data']||{},this['rootName']=_0x2a306b['rootName'],this['set']('createdAt',_0x2a306b['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(_0x2b54b1,_0x188f93){this['newRevisionId']=_0x2b54b1,this['oldRevisionId']=_0x188f93,this['changes']=new _0x2d09b0();}['_setChanges'](_0x2eab48){for(const _0x4e1c96 of _0x2eab48)this['changes']['add'](_0x4e1c96);}}const Y={'c':_0x157829,'a':_0x5b254c,'e':_0x46a473,'r':_0x153e9e,'u':_0x464bca};class d extends _0x1dcc45{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x1a4d20,_0x2e0698,j];}constructor(_0xa0691e){super(_0xa0691e),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x4b361d,_0x3f2a53,_0x207e2a)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x528955=>{for(const _0x1d0187 of this['editor']['editing']['view']['document']['roots'])_0x207e2a?_0x528955['removeClass']('ck-editor__editable__overlay',_0x1d0187):_0x528955['addClass']('ck-editor__editable__overlay',_0x1d0187);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x47ecd7=>null!==_0x47ecd7),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x20901,_0x4628fa,_0x2e879c)=>_0x20901&&_0x2e879c?_0x4628fa['changes']['getIndex'](_0x2e879c):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x44aea5,_0x474f33)=>_0x44aea5?_0x474f33['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x2e0698);}['init'](){const _0x481e2a=this['editor'],_0x3a34e0=new yt(_0x481e2a,{'direction':'backward'}),_0x18d86a=new yt(_0x481e2a,{'direction':'forward'});(_0x481e2a['commands']['add']('showPreviousChange',_0x3a34e0),_0x481e2a['commands']['add']('showNextChange',_0x18d86a),_0x481e2a['commands']['add']('restoreRevision',new _t(_0x481e2a)),this['on']('change:numberOfChanges',()=>{_0x3a34e0['refresh'](),_0x18d86a['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x481e2a['enableReadOnlyMode']('revision-viewer'),_0x481e2a['plugins']['has']('WidgetToolbarRepository'))&&_0x481e2a['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x60b24c){await this['loadRevisionData'](_0x60b24c);const _0x700e16={};for(const _0x3d37e1 in _0x60b24c['diffData']){if(_0x60b24c['diffData'][_0x3d37e1]['attachChange']&&!_0x60b24c['diffData'][_0x3d37e1]['attachChange']['isAttached'])continue;const _0x266ba8=this['_removeRevisionMarkers'](JSON['parse'](_0x60b24c['diffData'][_0x3d37e1]['insertions'])),_0x3924ed=this['editor']['editing']['view']['document'],_0x98ae63=new _0x31de44(_0x3924ed,_0x266ba8['map'](_0x2c5eed=>this['_getViewObj'](_0x2c5eed)));this['editor']['data']['processor']['useFillerType']('marked'),_0x700e16[_0x3d37e1]=this['editor']['data']['processor']['toData'](_0x98ae63),this['editor']['data']['processor']['useFillerType']('default');}return _0x700e16;}async['getRevisionRootsAttributes'](_0x204db7){await this['loadRevisionData'](_0x204db7);const _0x19db10={};for(const _0x5a9428 in _0x204db7['diffData'])_0x204db7['diffData'][_0x5a9428]['attachChange']&&!_0x204db7['diffData'][_0x5a9428]['attachChange']['isAttached']||(_0x19db10[_0x5a9428]=_0x204db7['diffData'][_0x5a9428]['attributesAfter']||{});return _0x19db10;}['_removeRevisionMarkers'](_0x287425){return(_0x287425=_0x287425['filter'](_0x190c73=>!_0x190c73['name']||'revision-start'!==_0x190c73['name']&&'revision-end'!==_0x190c73['name']))['forEach'](_0x2fbe08=>{'string'!=typeof _0x2fbe08&&(_0x2fbe08['children']=this['_removeRevisionMarkers'](_0x2fbe08['children']),_0x2fbe08['attributes']=_0x2fbe08['attributes']['filter'](_0x252169=>!_0x252169[0x0]['startsWith']('data-revision-')));}),_0x287425;}async['compare'](_0x1a7df4,_0x58713d,_0x47ff4f=!0x1){if(!this['isEnabled'])return;const _0xb21cab=this['diff'],_0x4b0e3b=this['repository'],_0x2dd93e='string'==typeof _0x1a7df4?_0x4b0e3b['getRevision'](_0x1a7df4):_0x1a7df4,_0x12d414='string'==typeof _0x58713d?_0x4b0e3b['getRevision'](_0x58713d):_0x58713d,_0x52783a=_0x2dd93e['id'],_0x564505=_0x12d414?_0x12d414['id']:null;if(!_0x47ff4f&&this['diff']&&this['diff']['newRevisionId']===_0x52783a&&this['diff']['oldRevisionId']===_0x564505)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x52783a,_0x564505);const _0x1b8222=this['_getRevisionsRange'](_0x2dd93e,_0x12d414,!0x0)['map'](_0x2e3e26=>this['loadRevisionData'](_0x2e3e26));return _0x1b8222['push'](new Promise(_0x3cf751=>{setTimeout(_0x3cf751,0x14);})),Promise['all'](_0x1b8222)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x3d639d=this['_getDiff'](_0x52783a,_0x564505);for(const _0x2fa3ae of _0x3d639d['changes'])this['_changeIdToChange']['set'](_0x2fa3ae['id'],_0x2fa3ae);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x517952=>{for(const _0x113d51 of this['editor']['model']['document']['getRootNames']())_0x517952['detachRoot'](_0x113d51);for(const _0x343652 of Object['keys'](_0x3d639d['model'])){const _0xc34d16=_0x517952['addRoot'](_0x343652);for(const _0x6ce69d of Object['keys'](_0x3d639d['attributes'][_0x343652]))_0x517952['setAttribute'](_0x6ce69d,_0x3d639d['attributes'][_0x343652][_0x6ce69d],_0xc34d16);_0x517952['insert'](_0x3d639d['model'][_0x343652],_0xc34d16,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x3d639d['changes'])),this['isReady']=!0x0;})['catch'](_0xec2f37=>{console['error'](_0xec2f37),this['_cleanUp'](),_0xb21cab&&(this['diff']=_0xb21cab),this['isReady']=!0x0;});}['addRevisionData'](_0x2a0876,_0x4bbbe1){const _0x53842d=this['repository']['createRevision'](_0x2a0876);return _0x53842d['on']('_update',(_0x49f06f,_0xa8f926,_0x2e71bc)=>_0x4bbbe1(_0xa8f926,_0x2e71bc,_0x53842d)),this['repository']['addRevision'](_0x53842d),_0x53842d;}['loadRevisionData'](_0x39d90f){if(!_0x39d90f||_0x39d90f['diffData'])return Promise['resolve']();{const _0xa3e17d=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0xa3e17d,'revisionId':_0x39d90f['id']})['then'](_0x2ed6dd=>{_0x39d90f['_update']({'diffData':_0x2ed6dd['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x130098=>{for(const _0x521c10 of this['editor']['model']['document']['getRootNames']())_0x130098['detachRoot'](_0x521c10);});}['_sortAndFilterDiffChanges'](_0xaf3335){const _0x694978=[],_0x562703=new Map();for(const _0xa810e8 of this['editor']['model']['document']['getRootNames']()){const _0x28e085=this['editor']['editing']['view']['getDomRoot'](_0xa810e8);if(!_0x28e085)continue;const _0x5a507f=_0x28e085['getClientRects']()['item'](0x0);_0x5a507f&&(_0x694978['push'](_0xa810e8),_0x562703['set'](_0xa810e8,_0x5a507f));}return _0x694978['sort']((_0xe780aa,_0x31469f)=>{const _0x1bc39e=_0x562703['get'](_0xe780aa),_0x3c293b=_0x562703['get'](_0x31469f);return _0x1bc39e['y']-_0x3c293b['y']||_0x1bc39e['x']-_0x3c293b['x'];}),(_0xaf3335=_0xaf3335['filter'](_0x382f5b=>_0x694978['includes'](_0x382f5b['rootName'])))['sort']((_0x3f5766,_0xdea512)=>_0x694978['indexOf'](_0x3f5766['rootName'])-_0x694978['indexOf'](_0xdea512['rootName'])),_0xaf3335;}['_makeTape'](_0x266b17){const _0xcc6da4=Array['from'](_0x266b17['markers'])['filter'](([_0x22a519,_0x54b496])=>_0x22a519['startsWith']('revision:')&&!_0x54b496['isCollapsed']),_0x295d29=Array['from'](this['editor']['model']['createRangeIn'](_0x266b17)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0xcc6da4['length'])for(const _0x429fa0 of _0x295d29){const [_0x4f672f,_0x3364c9]=_0xcc6da4[0x0],[,_0x41a785,_0x59fcf5]=_0x4f672f['split'](':');if(_0x3364c9['end']['isEqual'](_0x429fa0['nextPosition'])&&_0xcc6da4['shift'](),(_0x429fa0['previousPosition']['isEqual'](_0x3364c9['start'])||_0x429fa0['previousPosition']['isAfter'](_0x3364c9['start']))&&('insertion'==_0x41a785?_0x429fa0['isAdded']={'userId':_0x59fcf5}:'deletion'==_0x41a785&&(_0x429fa0['isRemoved']={'userId':_0x59fcf5})),0x0==_0xcc6da4['length'])break;}return _0x295d29;}['_refreshStartEndIndex'](_0x14cc70){const _0xd08d40=new Map();for(let _0xc2e7fc=0x0;_0xc2e7fc<_0x14cc70['length'];_0xc2e7fc++)'text'===_0x14cc70[_0xc2e7fc]['type']?(_0x14cc70[_0xc2e7fc]['item']['startIndex']=_0xc2e7fc,_0x14cc70[_0xc2e7fc]['item']['endIndex']=_0xc2e7fc):('elementStart'===_0x14cc70[_0xc2e7fc]['type']?_0x14cc70[_0xc2e7fc]['item']['startIndex']=_0xc2e7fc:'elementEnd'===_0x14cc70[_0xc2e7fc]['type']&&(_0x14cc70[_0xc2e7fc]['item']['endIndex']=_0xc2e7fc),_0xd08d40['set'](_0x14cc70[_0xc2e7fc]['id'],_0xc2e7fc));for(const _0x4f8a11 of _0xd08d40['values']())'elementStart'===_0x14cc70[_0x4f8a11]['type']?_0x14cc70[_0x4f8a11]['item']['endIndex']=_0xd08d40['get'](_0x14cc70[_0x4f8a11]['pairId']):'elementEnd'===_0x14cc70[_0x4f8a11]['type']&&(_0x14cc70[_0x4f8a11]['item']['startIndex']=_0xd08d40['get'](_0x14cc70[_0x4f8a11]['pairId']));}['_processTape'](_0x138f6d){for(let _0x5adfc5=0x0;_0x5adfc5<_0x138f6d['length'];_0x5adfc5++){if('elementStart'===_0x138f6d[_0x5adfc5]['type'])_0x138f6d[_0x5adfc5]['item']['startIndex']=_0x5adfc5;else{if('elementEnd'===_0x138f6d[_0x5adfc5]['type']){_0x138f6d[_0x5adfc5]['item']['endIndex']=_0x5adfc5;const _0x4d237a=_0x138f6d[_0x5adfc5]['item']['startIndex'];_0x138f6d[_0x4d237a]['pairId']=_0x138f6d[_0x5adfc5]['id'],_0x138f6d[_0x5adfc5]['pairId']=_0x138f6d[_0x4d237a]['id'];}else _0x138f6d[_0x5adfc5]['item']['startIndex']=_0x5adfc5,_0x138f6d[_0x5adfc5]['item']['endIndex']=_0x5adfc5,_0x138f6d[_0x5adfc5]['pairId']=null;}_0x138f6d[_0x5adfc5]['markersStart']||(_0x138f6d[_0x5adfc5]['markersStart']=[],_0x138f6d[_0x5adfc5]['markersEnd']=[]);}}['_markInsertions'](_0x64087,_0x171751){const _0x3d8785=_0x64087['filter'](_0x5f3f26=>!_0x5f3f26['isAdded']);for(let _0xcc638e=0x0;_0xcc638e<_0x171751['length'];_0xcc638e++)_0x171751[_0xcc638e]['isAdded']&&(_0x3d8785[_0xcc638e]['isAdded']=_0x171751[_0xcc638e]['isAdded']);}['_makeModelFromViewString'](_0x10f4b6){const _0x39fb92=JSON['parse'](_0x10f4b6),_0x27823f=this['editor']['editing']['view']['document'],_0x2cafc8=new _0x31de44(_0x27823f,_0x39fb92['map'](_0x47cfb7=>this['_getViewObj'](_0x47cfb7)));return this['editor']['data']['toModel'](_0x2cafc8);}['_getViewObj'](_0x3920bb){const _0x2675f5=this['editor']['editing']['view']['document'];if('string'==typeof _0x3920bb)return new _0x3f4c03(_0x2675f5,_0x3920bb);{const _0x17dec5=_0x3920bb['children']['map'](_0xebb9f6=>this['_getViewObj'](_0xebb9f6));return new(Y[_0x3920bb['type']]||_0xed99ca)(_0x2675f5,_0x3920bb['name'],_0x3920bb['attributes'],_0x17dec5);}}['_getDiff'](_0x17b0e1,_0x48232d=null){const _0x443afe=this['repository']['getRevision'](_0x17b0e1),_0x40f7f9=_0x48232d?this['repository']['getRevision'](_0x48232d):null,_0x23a69c=this['_getRevisionsRange'](_0x443afe,_0x40f7f9),_0x14e220=_0x23a69c[_0x23a69c['length']-0x1],_0x11a717=new Map(),_0x477004={'model':{},'attributes':{},'changes':[]},_0x319b39=new Set(),_0x2af07f=new Map();for(let _0x444695=_0x23a69c['length']-0x1;_0x444695>=0x0;_0x444695--){const _0x1ecac1=_0x23a69c[_0x444695];for(const _0x34d84d of Object['keys'](_0x1ecac1['diffData']))if(_0x1ecac1['diffData'][_0x34d84d]['attachChange']){const _0x5a4180=_0x1ecac1['diffData'][_0x34d84d]['attachChange'];_0x5a4180['isAttached']?(_0x319b39['add'](_0x34d84d),_0x2af07f['has'](_0x34d84d)&&_0x2af07f['get'](_0x34d84d)['userId']==_0x5a4180['userId']?_0x2af07f['delete'](_0x34d84d):_0x2af07f['set'](_0x34d84d,_0x5a4180)):_0x2af07f['has'](_0x34d84d)?(_0x319b39['delete'](_0x34d84d),_0x2af07f['delete'](_0x34d84d)):(_0x319b39['add'](_0x34d84d),_0x2af07f['set'](_0x34d84d,_0x5a4180));}else _0x319b39['add'](_0x34d84d);}for(const _0x5d1467 of _0x319b39){const _0x9a51c1=_0x2af07f['has'](_0x5d1467)&&!_0x2af07f['get'](_0x5d1467)['isAttached'];let _0x797a6e=_0x9a51c1?_0x23a69c['length']-0x1:0x0;const _0x3769c1=_0x9a51c1?-0x1:0x1;for(;_0x23a69c[_0x797a6e];){const _0x14537f=_0x23a69c[_0x797a6e];if(_0x14537f['diffData'][_0x5d1467]){const _0x5b49a7=_0x9a51c1?_0x14537f['diffData'][_0x5d1467]['attributesBefore']:_0x14537f['diffData'][_0x5d1467]['attributesAfter'];_0x477004['attributes'][_0x5d1467]=_0x5b49a7?_0x4c717d(_0x5b49a7):{};break;}_0x797a6e+=_0x3769c1;}}for(const _0x303907 of _0x23a69c){_0x303907['model']={};for(const _0x74ec2 of _0x303907['authors'])_0x11a717['set'](_0x74ec2['id'],_0x74ec2);for(const _0x4db969 of _0x319b39){const _0x35a8da=_0x303907['diffData'][_0x4db969]?_0x303907['diffData'][_0x4db969]['insertions']:'[]',_0x3cf1c2=_0x303907['diffData'][_0x4db969]?_0x303907['diffData'][_0x4db969]['deletions']:'[]';_0x303907['model'][_0x4db969]={'insertions':this['_makeModelFromViewString'](_0x35a8da),'deletions':this['_makeModelFromViewString'](_0x3cf1c2)};}}for(const _0x2dca27 of _0x319b39){let _0x4fc3ec=null,_0x410c88=0x0;const _0x333101=new Map(Array['from'](_0x443afe['model'][_0x2dca27]['insertions']['markers'])['filter'](([_0x25a53f])=>!_0x25a53f['startsWith']('revision:')));let _0x43c9a1=0x0;for(const _0x555020 of _0x23a69c){const _0x40d4aa=this['_makeTape'](_0x555020['model'][_0x2dca27]['insertions']);_0x555020==_0x443afe?(_0x4fc3ec=_0x40d4aa,_0x410c88=_0x4fc3ec['length'],_0x4fc3ec['forEach'](_0x5c2512=>{_0x5c2512['id']=_0x43c9a1++;}),this['_processTape'](_0x4fc3ec)):this['_markInsertions'](_0x4fc3ec,_0x40d4aa);const _0x2ed968=_0x4fc3ec['filter'](_0x1662cf=>!_0x1662cf['isAdded'])['map'](_0x3ce0b8=>_0x3ce0b8['id']);let _0x1ba486=0x0;const _0x4c1056=this['_makeTape'](_0x555020['model'][_0x2dca27]['deletions']);_0x4c1056['forEach'](_0x263081=>{_0x263081['isRemoved']?_0x263081['id']=_0x410c88++:_0x263081['id']=_0x2ed968[_0x1ba486++];}),this['_processTape'](_0x4c1056),this['_setDistance'](_0x4fc3ec,'isAdded'),this['_setDistance'](_0x4c1056,'isRemoved'),_0x555020==_0x443afe&&this['_markMarkers'](_0x4fc3ec,_0x333101),_0x4fc3ec=this['_joinTapes'](_0x4fc3ec,_0x4c1056),this['_refreshStartEndIndex'](_0x4fc3ec),this['_setDistance'](_0x4fc3ec,'isRemoved');}_0x4fc3ec=_0x4fc3ec['filter'](_0x234f36=>!(_0x234f36['isAdded']&&_0x234f36['isRemoved']));const _0x36053f=new Map(_0x14e220['model'][_0x2dca27]['deletions']['markers']),_0x17c94d=new Set(_0x333101['keys']());for(const _0x59d374 of _0x36053f['keys']())_0x17c94d['delete'](_0x59d374);this['_markSuggestions'](_0x4fc3ec,_0x17c94d),this['_fixObsoleteTags'](_0x4fc3ec),_0x4fc3ec=this['_removeMissingPairs'](_0x4fc3ec),_0x4fc3ec=this['_markMismatchedRemovedTags'](_0x4fc3ec),_0x4fc3ec=this['_removeUnsupportedChanges'](_0x4fc3ec);const {root:_0x2db13c,changes:_0x5f3970}=this['_makeModelFromTape'](_0x4fc3ec,_0x11a717,_0x2dca27);_0x477004['model'][_0x2dca27]=_0x2db13c;const _0x51c54c=_0x2af07f['get'](_0x2dca27);if(_0x51c54c){const _0x197533=_0x11a717['get'](_0x51c54c['userId']),_0x2d96b6=new r({'author':_0x197533,'type':_0x51c54c['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x2dca27});_0x5f3970['unshift'](_0x2d96b6),_0x477004['attributes'][_0x2dca27]['revisionHistoryAttachChange']=_0x2d96b6['id'];}_0x477004['changes']=_0x477004['changes']['concat'](_0x5f3970);}return _0x477004;}['_markMarkers'](_0x1f4b93,_0x449284){for(let _0x31d265=0x0;_0x31d265<_0x1f4b93['length'];_0x31d265++)for(const [_0x4badf2,_0x5cbac1]of _0x449284)_0x5cbac1['start']['isEqual'](_0x1f4b93[_0x31d265]['previousPosition'])&&_0x1f4b93[_0x31d265]['markersStart']['push'](_0x4badf2),_0x5cbac1['end']['isEqual'](_0x1f4b93[_0x31d265]['nextPosition'])&&_0x1f4b93[_0x31d265]['markersEnd']['push'](_0x4badf2);}['_joinTapes'](_0x155a31,_0x51dc9a){let _0x34f7d3=[],_0x2d51d1=0x0,_0x127879=0x0;for(;_0x2d51d1<_0x155a31['length']||_0x127879<_0x51dc9a['length'];){const _0x56317f=_0x155a31[_0x2d51d1]||{},_0x3071af=_0x51dc9a[_0x127879]||{};if(_0x56317f['id']==_0x3071af['id'])_0x2d51d1++,_0x127879++,_0x34f7d3['push'](_0x56317f);else{if(_0x3071af['isRemoved']&&_0x56317f['isAdded']){const {commonTape:_0xa15ea9,iEnd:_0x1917b3,jEnd:_0x188257}=this['_threeWayMerge'](_0x155a31,_0x2d51d1,_0x51dc9a,_0x127879);_0x34f7d3=_0x34f7d3['concat'](_0xa15ea9),_0x2d51d1=_0x1917b3,_0x127879=_0x188257;}else _0x3071af['isRemoved']?(_0x127879++,_0x34f7d3['push'](_0x3071af)):(_0x2d51d1++,_0x34f7d3['push'](_0x56317f));}}return _0x34f7d3;}['_markSuggestions'](_0x4ff564,_0x14318c){const _0x3b2da9=[];for(let _0x341f1e=0x0;_0x341f1e<_0x4ff564['length'];_0x341f1e++){for(let _0x19b086=0x0;_0x19b086<_0x4ff564[_0x341f1e]['markersStart']['length'];_0x19b086++){const _0x59094b=_0x4ff564[_0x341f1e]['markersStart'][_0x19b086];if(!_0x14318c['has'](_0x59094b))continue;const {group:_0x43b499,type:_0x49ec59,authorId:_0x515ff5}=_0x1fd8f8(_0x59094b);'revision-suggestion'!=_0x43b499||'insertion'!=_0x49ec59&&'deletion'!=_0x49ec59||(_0x3b2da9['unshift']({'type':_0x49ec59,'name':_0x59094b,'userId':_0x515ff5}),_0x4ff564[_0x341f1e]['markersStart']['splice'](_0x19b086,0x1),_0x19b086--);}_0x3147f6(_0x4ff564[_0x341f1e]);for(let _0x113dfc=0x0;_0x113dfc<_0x4ff564[_0x341f1e]['markersEnd']['length'];_0x113dfc++){const _0x35e4da=_0x4ff564[_0x341f1e]['markersEnd'][_0x113dfc];if(!_0x14318c['has'](_0x35e4da))continue;const {group:_0x496f5c,type:_0x10dd96}=_0x1fd8f8(_0x35e4da);if('revision-suggestion'!=_0x496f5c||'insertion'!=_0x10dd96&&'deletion'!=_0x10dd96)continue;_0x4ff564[_0x341f1e]['markersEnd']['splice'](_0x113dfc,0x1),_0x113dfc--;const _0x262926=_0x3b2da9['findIndex'](_0x33c3f4=>_0x33c3f4['name']==_0x35e4da);_0x262926>-0x1&&_0x3b2da9['splice'](_0x262926,0x1);}}function _0x1fd8f8(_0x37e5f7){const _0x5d73bf=_0x37e5f7['split'](':');return{'group':_0x5d73bf[0x0],'type':_0x5d73bf[0x1],'subType':_0x5d73bf['length']>=0x5?_0x5d73bf[0x2]:null,'id':_0x5d73bf['length']<0x5?_0x5d73bf[0x2]:_0x5d73bf[0x3],'authorId':_0x5d73bf['length']<0x5?_0x5d73bf[0x3]:_0x5d73bf[0x4],'markerCount':0x6==_0x5d73bf['length']?_0x5d73bf[0x5]:null};}function _0x3147f6(_0xd50d59){for(let _0x4a17f5=0x0;_0x4a17f5<_0x3b2da9['length'];_0x4a17f5++){if(_0xd50d59['isAdded']&&'insertion'==_0x3b2da9[_0x4a17f5]['type'])return _0xd50d59['isAddSuggestion']=_0x3b2da9[_0x4a17f5],void delete _0xd50d59['isAdded'];if(!_0xd50d59['isAdded']&&!_0xd50d59['isRemoved']&&'deletion'==_0x3b2da9[_0x4a17f5]['type'])return void(_0xd50d59['isRemoveSuggestion']=_0x3b2da9[_0x4a17f5]);}}}['_setDistance'](_0x34b301,_0x4b840c){let _0x3d4dc9=0x0,_0x31c046=!0x1;const _0x562f1e=new Map();for(const _0x52351a of _0x34b301)_0x52351a[_0x4b840c]?_0x31c046&&(_0x3d4dc9++,_0x31c046=!0x1):(_0x3d4dc9++,_0x31c046=!0x0),_0x562f1e['set'](_0x52351a['id'],_0x3d4dc9);for(let _0x70278f=0x0;_0x70278f<_0x34b301['length'];_0x70278f++){if('isRemoved'==_0x4b840c&&_0x34b301[_0x70278f]['isAdded']||'isAdded'==_0x4b840c&&_0x34b301[_0x70278f]['isRemoved'])continue;if('text'==_0x34b301[_0x70278f]['type']){_0x34b301[_0x70278f]['distance']=0x0;continue;}const _0x3a6dae=_0x562f1e['get'](_0x34b301[_0x70278f]['pairId']),_0x1f32a4=_0x562f1e['get'](_0x34b301[_0x70278f]['id']);_0x34b301[_0x70278f]['distance']=_0x3a6dae-_0x1f32a4;}}['_getRevisionsRange'](_0x4e532f,_0x1c4336,_0x139289=!0x1){const _0x194e86=[];let _0x1fc70c=this['repository']['getIndex'](_0x4e532f),_0x2adbf0=this['repository']['getIndex'](_0x1c4336);for(-0x1==_0x2adbf0&&(_0x2adbf0=this['repository']['_revisions']['length'],_0x139289=!0x1);_0x1fc70c<_0x2adbf0;)_0x194e86['push'](this['repository']['getRevision'](_0x1fc70c)),_0x1fc70c++;return _0x139289&&_0x194e86['push'](this['repository']['getRevision'](_0x1fc70c)),_0x194e86;}['_threeWayMerge'](_0x344694,_0x150b8c,_0xf76a9,_0x38432d){const _0x5107f1=this['editor']['model']['schema'];let _0x74002e=_0x150b8c;for(;_0x344694[_0x74002e]&&_0x344694[_0x74002e]['isAdded'];)_0x74002e++;let _0x4e2385=_0x38432d;for(;_0xf76a9[_0x4e2385]&&_0xf76a9[_0x4e2385]['isRemoved'];)_0x4e2385++;_0x1e5798(_0x344694,_0x150b8c,_0x74002e),_0x1e5798(_0xf76a9,_0x38432d,_0x4e2385);const _0x3a16b2=_0xf76a9['slice'](_0x38432d,_0x4e2385)['concat'](_0x344694['slice'](_0x150b8c,_0x74002e));return _0x3a16b2['sort']((_0x1fe9ae,_0x3c2fe3)=>_0x1fe9ae['side']!=_0x3c2fe3['side']?_0x1fe9ae['side']-_0x3c2fe3['side']:_0x1fe9ae['level']!=_0x3c2fe3['level']?_0x1fe9ae['level']-_0x3c2fe3['level']:_0x1fe9ae['distance']!=_0x3c2fe3['distance']?_0x3c2fe3['distance']-_0x1fe9ae['distance']:!!_0x1fe9ae['isAdded']!=!!_0x3c2fe3['isAdded']?-0x1==_0x1fe9ae['side']||0x0==_0x1fe9ae['side']?_0x1fe9ae['isAdded']?-0x1:0x1:_0x1fe9ae['isAdded']?0x1:-0x1:_0x1fe9ae['index']-_0x3c2fe3['index']),{'commonTape':_0x3a16b2,'iEnd':_0x74002e,'jEnd':_0x4e2385};function _0x1e5798(_0x3f3b94,_0x2d8d6c,_0x3fe99f){let _0x42c180=-0x1,_0x576df6=Number['POSITIVE_INFINITY'],_0xa80889=!0x0;for(let _0x41ccb0=_0x2d8d6c;_0x41ccb0<_0x3fe99f;_0x41ccb0++)if(_0x5107f1['isInline'](_0x3f3b94[_0x41ccb0]['item'])||(_0xa80889=!0x1),_0x3f3b94[_0x41ccb0]['item']['startIndex']<_0x2d8d6c&&(_0x42c180=_0x41ccb0),_0x3f3b94[_0x41ccb0]['item']['endIndex']>=_0x3fe99f){_0x576df6=_0x41ccb0;break;}_0xa80889&&(_0x42c180=_0x3fe99f-0x1);for(let _0x291fce=_0x2d8d6c;_0x291fce<_0x3fe99f;_0x291fce++)_0x3f3b94[_0x291fce]['side']=_0x291fce<=_0x42c180?-0x1:_0x291fce<_0x576df6?0x0:0x1,_0x3f3b94[_0x291fce]['index']=_0x291fce;let _0x2683fe=0x0;for(let _0x2132d4=_0x2d8d6c;_0x2132d4<=_0x42c180;_0x2132d4++)0x0==_0x3f3b94[_0x2132d4]['distance']?_0x3f3b94[_0x2132d4]['level']=_0x2683fe:(_0x2683fe++,_0x3f3b94[_0x2132d4]['level']=_0x2683fe,_0x2683fe++);for(let _0x49b65e=_0x2d8d6c;_0x49b65e<_0x3fe99f;_0x49b65e++)0x0==_0x3f3b94[_0x49b65e]['side']&&(_0x3f3b94[_0x49b65e]['level']=_0x2683fe);_0x2683fe=0x0;for(let _0x57ecd7=_0x3fe99f-0x1;_0x57ecd7>=_0x576df6;_0x57ecd7--)0x0==_0x3f3b94[_0x57ecd7]['distance']?_0x3f3b94[_0x57ecd7]['level']=_0x2683fe:(_0x2683fe--,_0x3f3b94[_0x57ecd7]['level']=_0x2683fe,_0x2683fe--);}}['_fixObsoleteTags'](_0x213320){const _0x589356=new Map(),_0x1f312a=this['editor']['model']['schema'];for(let _0x5509bf=0x1;_0x5509bf<_0x213320['length'];_0x5509bf++){let _0x5812a4,_0x12f923,_0x32b9a1;const _0x2d2b81=_0x213320[_0x5509bf],_0x32433f=_0x213320[_0x5509bf-0x1];if('text'==_0x2d2b81['type'])continue;if(_0x2d2b81['type']!=_0x32433f['type'])continue;if(!_0x1f312a['isBlock'](_0x32433f['item'])||_0x1f312a['isLimit'](_0x32433f['item']))continue;if(!_0x1f312a['isBlock'](_0x2d2b81['item'])||_0x1f312a['isLimit'](_0x2d2b81['item']))continue;if((_0x213320[_0x5509bf]['isAdded']||_0x213320[_0x5509bf]['isAddSuggestion'])&&_0x213320[_0x5509bf-0x1]['isRemoved'])_0x5812a4=_0x213320[_0x5509bf],_0x12f923=_0x213320[_0x5509bf-0x1],_0x32b9a1=_0x5509bf-0x1;else{if(!_0x213320[_0x5509bf]['isRemoved']||!_0x213320[_0x5509bf-0x1]['isAdded']&&!_0x213320[_0x5509bf-0x1]['isAddSuggestion'])continue;_0x5812a4=_0x213320[_0x5509bf-0x1],_0x12f923=_0x213320[_0x5509bf],_0x32b9a1=_0x5509bf;}const _0x25dff0=_0x5812a4['level']==_0x12f923['level'],_0x16c528=Math['abs'](_0x5812a4['level'])<Math['abs'](_0x12f923['level'])&&0x0==_0x12f923['distance'];(_0x25dff0||_0x16c528)&&(_0x589356['set'](_0x12f923['id'],_0x5812a4['id']),_0x213320['splice'](_0x32b9a1,0x1),_0x5509bf--,_0x5812a4['isAdded']=!0x1);}for(let _0x2196d3=0x0;_0x2196d3<_0x213320['length'];_0x2196d3++)_0x589356['has'](_0x213320[_0x2196d3]['pairId'])&&(_0x213320[_0x2196d3]['pairId']=_0x589356['get'](_0x213320[_0x2196d3]['pairId']));}['_removeMissingPairs'](_0x56dc0b){const _0x17ca7e=new Set(_0x56dc0b['map'](_0x3fd86c=>_0x3fd86c['id']));for(let _0x2b56d8=0x0;_0x2b56d8<_0x56dc0b['length'];_0x2b56d8++)_0x17ca7e['has'](_0x56dc0b[_0x2b56d8]['pairId'])||0x0==_0x56dc0b[_0x2b56d8]['distance']||(_0x56dc0b[_0x2b56d8]['isIncorrect']=!0x0);return _0x56dc0b['filter'](_0x318536=>!_0x318536['isIncorrect']);}['_markMismatchedRemovedTags'](_0x5d4e30){const _0x59b1e7=new Set();for(let _0x1028e0=0x0;_0x1028e0<_0x5d4e30['length'];_0x1028e0++){if(_0x59b1e7['has'](_0x5d4e30[_0x1028e0]['id'])&&_0x5d4e30[_0x1028e0]['isRemoved']&&(_0x5d4e30[_0x1028e0]['isIncorrect']=!0x0),_0x5d4e30[_0x1028e0]['isIncorrect'])continue;if(0x0==_0x5d4e30[_0x1028e0]['distance'])continue;if('elementStart'!=_0x5d4e30[_0x1028e0]['type'])continue;if(null==_0x5d4e30[_0x1028e0]['pairId'])continue;let _0x176cf8=_0x1028e0+0x1,_0x5ba84c=0x0;for(;_0x5d4e30[_0x176cf8]['id']!=_0x5d4e30[_0x1028e0]['pairId'];)'elementStart'==_0x5d4e30[_0x176cf8]['type']?_0x5ba84c++:'elementEnd'==_0x5d4e30[_0x176cf8]['type']&&_0x5ba84c--,_0x176cf8++;if(0x0!=_0x5ba84c){if(_0x5d4e30[_0x1028e0]['isRemoved'])_0x5d4e30[_0x1028e0]['isIncorrect']=!0x0;else{for(;_0x176cf8!=_0x1028e0;)_0x5d4e30[_0x176cf8]['isRemoved']&&0x0!=_0x5d4e30[_0x176cf8]['distance']&&(_0x5d4e30[_0x176cf8]['isIncorrect']=!0x0,_0x59b1e7['add'](_0x5d4e30[_0x176cf8]['pairId'])),_0x176cf8--;}}}return _0x5d4e30['filter'](_0x427090=>!_0x427090['isIncorrect']);}['_removeUnsupportedChanges'](_0x5ef17b){const _0x2cbcf2=this['editor']['model']['schema'];for(let _0x55aaf4=0x0;_0x55aaf4<_0x5ef17b['length'];_0x55aaf4++){if(!(_0x5ef17b[_0x55aaf4]['isAdded']||_0x5ef17b[_0x55aaf4]['isAddSuggestion']||_0x5ef17b[_0x55aaf4]['isRemoved']||_0x5ef17b[_0x55aaf4]['isRemoveSuggestion']))continue;if(0x0==_0x5ef17b[_0x55aaf4]['distance'])continue;const _0x19d134=_0x5ef17b[_0x55aaf4]['item'];_0x2cbcf2['isBlock'](_0x19d134)||_0x2cbcf2['isLimit'](_0x19d134)||(_0x5ef17b[_0x55aaf4]['isAdded']&&delete _0x5ef17b[_0x55aaf4]['isAdded'],_0x5ef17b[_0x55aaf4]['isAddSuggestion']&&delete _0x5ef17b[_0x55aaf4]['isAddSuggestion'],_0x5ef17b[_0x55aaf4]['isRemoveSuggestion']&&delete _0x5ef17b[_0x55aaf4]['isRemoveSuggestion'],_0x5ef17b[_0x55aaf4]['isRemoved']&&(_0x5ef17b[_0x55aaf4]['isIncorrect']=!0x0));}return _0x5ef17b['filter'](_0x211b51=>!_0x211b51['isIncorrect']);}['_makeModelFromTape'](_0x326b48,_0x2b5a96,_0x34049f){const _0x5c2bc3=new gt(),_0x2bf4b4=[],_0x510240=new Map(),_0x32aad2=this['editor']['model'],_0x2969d9=_0x32aad2['schema'],_0x11133a=[_0x5c2bc3],_0x44e1ef={},_0x39f94b={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x553261=null;const _0x3e8979=[0x0];for(let _0x382018=0x0;_0x382018<_0x326b48['length'];_0x382018++)if('elementStart'===_0x326b48[_0x382018]['type']){_0x326b48[_0x382018]['previousPosition']=_0x32aad2['createPositionFromPath'](_0x5c2bc3,_0x3e8979);const _0x2eb9df=new ut(_0x326b48[_0x382018]['item']['name'],_0x326b48[_0x382018]['item']['getAttributes']());_0x11133a[0x0]['_appendChild'](_0x2eb9df),_0x3e8979['push'](0x0),_0x11133a['unshift'](_0x2eb9df),_0x326b48[_0x382018]['nextPosition']=_0x32aad2['createPositionFromPath'](_0x5c2bc3,_0x3e8979);}else'elementEnd'===_0x326b48[_0x382018]['type']?(_0x11133a['shift'](),_0x326b48[_0x382018]['previousPosition']=_0x32aad2['createPositionFromPath'](_0x5c2bc3,_0x3e8979),_0x3e8979['pop'](),_0x3e8979[_0x3e8979['length']-0x1]++,_0x326b48[_0x382018]['nextPosition']=_0x32aad2['createPositionFromPath'](_0x5c2bc3,_0x3e8979)):(_0x326b48[_0x382018]['previousPosition']=_0x32aad2['createPositionFromPath'](_0x5c2bc3,_0x3e8979),_0x553261?_0x553261['_data']+=_0x326b48[_0x382018]['item']['data']:_0x553261=new wt(_0x326b48[_0x382018]['item']['data'],_0x326b48[_0x382018]['item']['getAttributes']()),_0x326b48[_0x382018+0x1]&&'text'===_0x326b48[_0x382018+0x1]['type']&&_0x2c5880(_0x553261,_0x326b48[_0x382018+0x1]['item'])||(_0x11133a[0x0]['_appendChild'](_0x553261),_0x553261=null),_0x3e8979[_0x3e8979['length']-0x1]+=_0x326b48[_0x382018]['item']['offsetSize'],_0x326b48[_0x382018]['nextPosition']=_0x32aad2['createPositionFromPath'](_0x5c2bc3,_0x3e8979));for(let _0x4f760f=0x0;_0x4f760f<_0x326b48['length'];_0x4f760f++){const _0x54f78a=_0x326b48[_0x4f760f]['previousPosition'],_0x109948=_0x326b48[_0x4f760f]['nextPosition'];for(const _0x33ad00 of _0x326b48[_0x4f760f]['markersStart'])_0x510240['set'](_0x33ad00,{'start':_0x54f78a,'end':null});_0x3b4064('isRemoveSuggestion',_0x4f760f,_0x54f78a,_0x109948),_0x3b4064('isAddSuggestion',_0x4f760f,_0x54f78a,_0x109948),_0x3b4064('isRemoved',_0x4f760f,_0x54f78a,_0x109948),_0x3b4064('isAdded',_0x4f760f,_0x54f78a,_0x109948);for(const _0x56e870 of _0x326b48[_0x4f760f]['markersEnd']){_0x510240['get'](_0x56e870)['end']=_0x109948;}}for(const [_0x5774cb,_0x3b8172]of _0x510240){const _0x325138=this['editor']['model']['createRange'](_0x3b8172['start'],_0x3b8172['end']);_0x5c2bc3['markers']['set'](_0x5774cb,_0x325138);}return _0x2bf4b4['sort']((_0x52852d,_0xb6d1c1)=>{const _0x8fde15=_0x5c2bc3['markers']['get']('revision:'+_0x52852d['id']),_0x4132b4=_0x5c2bc3['markers']['get']('revision:'+_0xb6d1c1['id']);return _0x8fde15['start']['isBefore'](_0x4132b4['start'])?-0x1:_0x8fde15['start']['isAfter'](_0x4132b4['start'])?0x1:_0x8fde15['end']['isBefore'](_0x4132b4['end'])?-0x1:_0x8fde15['end']['isAfter'](_0x4132b4['end'])?0x1:'add'===_0x52852d['type']?-0x1:0x1;}),{'root':_0x5c2bc3,'changes':_0x2bf4b4};function _0x3b4064(_0x19aaf6,_0x48cd7a,_0x558bcb,_0x21c95e){const _0x303573=!!_0x326b48[_0x48cd7a][_0x19aaf6],_0x4ce567=_0x303573?_0x326b48[_0x48cd7a][_0x19aaf6]['userId']:null,_0x19fdbc=_0x48cd7a===_0x326b48['length']-0x1,_0x35b6ca=_0x39f94b[_0x19aaf6][0x0],_0x233fc8=_0x2969d9['isObject'](_0x326b48[_0x48cd7a]['item']);!_0x44e1ef[_0x19aaf6]&&_0x303573?_0x44e1ef[_0x19aaf6]={'start':_0x558bcb,'tapeItem':_0x326b48[_0x48cd7a],'userId':_0x4ce567,'type':_0x19aaf6}:_0x44e1ef[_0x19aaf6]&&!_0x303573?(_0x44e1ef[_0x19aaf6]['end']=_0x558bcb,_0x546920(_0x44e1ef[_0x19aaf6]),_0x44e1ef[_0x19aaf6]=null):_0x44e1ef[_0x19aaf6]&&_0x303573&&_0x44e1ef[_0x19aaf6]['userId']!==_0x4ce567&&(_0x44e1ef[_0x19aaf6]['end']=_0x558bcb,_0x35b6ca&&_0x35b6ca['userId']===_0x44e1ef[_0x19aaf6]['userId']||_0x546920(_0x44e1ef[_0x19aaf6]),_0x44e1ef[_0x19aaf6]={'start':_0x558bcb,'tapeItem':_0x326b48[_0x48cd7a],'userId':_0x4ce567,'type':_0x19aaf6}),_0x44e1ef[_0x19aaf6]&&_0x233fc8&&('elementStart'!==_0x326b48[_0x48cd7a]['type']||_0x35b6ca&&_0x35b6ca['userId']===_0x4ce567||_0x39f94b[_0x19aaf6]['unshift']({'userId':_0x4ce567,'object':_0x326b48[_0x48cd7a]['item'],'change':_0x44e1ef[_0x19aaf6]}),'elementEnd'===_0x326b48[_0x48cd7a]['type']&&_0x35b6ca&&_0x35b6ca['object']===_0x326b48[_0x48cd7a]['item']&&(_0x39f94b[_0x19aaf6]['shift'](),_0x44e1ef[_0x19aaf6]=_0x35b6ca['change'])),_0x44e1ef[_0x19aaf6]&&_0x19fdbc&&(_0x44e1ef[_0x19aaf6]['end']=_0x21c95e,_0x546920(_0x44e1ef[_0x19aaf6]),_0x44e1ef[_0x19aaf6]=null);}function _0x546920({start:_0x49d6c2,end:_0x39c32d,tapeItem:_0x175c2a,userId:_0x264a31,type:_0x343ebb}){const _0x2ff38d=_0x175c2a['item'],_0x3f8c0c=_0x32aad2['schema']['isBlock'](_0x2ff38d)&&!_0x32aad2['schema']['isLimit'](_0x2ff38d),_0x14d9d0=_0x49d6c2['nodeAfter']==_0x39c32d['parent']&&_0x39c32d['isAtStart'];if(_0x3f8c0c&&_0x14d9d0)return;const _0x3949b8=_0x32aad2['createRange'](_0x49d6c2,_0x39c32d),_0x1d77c2=_0x2b5a96['get'](_0x264a31),_0x39a210=new r({'author':_0x1d77c2,'type':'isAdded'==_0x343ebb||'isAddSuggestion'==_0x343ebb?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x343ebb||'isRemoveSuggestion'==_0x343ebb},'createdAt':new Date(),'rootName':_0x34049f});_0x2bf4b4['push'](_0x39a210),_0x5c2bc3['markers']['set']('revision:'+_0x39a210['id'],_0x3949b8);}function _0x2c5880(_0x211087,_0x57ca97){const _0x246bb4=_0x211087['getAttributes'](),_0x21d35b=_0x57ca97['getAttributes']();for(const _0xa052b of _0x246bb4){if(_0xa052b[0x1]!==_0x57ca97['getAttribute'](_0xa052b[0x0]))return!0x1;_0x21d35b['next']();}return _0x21d35b['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x46ecb3=>{const _0x5eef0d=_0x46ecb3['markerName']['split'](':')[0x1],_0x244f04=this['_getChangeFromId'](_0x5eef0d);if(!_0x244f04)return null;const _0x39a0ed='add'==_0x244f04['type']?'insertion':'deletion',_0x5e32cb=['ck-suggestion-marker','ck-suggestion-marker-'+_0x39a0ed];return _0x244f04['data']['isSuggestion']&&_0x5e32cb['push']('ck-suggestion-marker-'+_0x39a0ed+'-new'),this['activeChange']==_0x244f04&&_0x5e32cb['push']('ck-suggestion-marker--active'),{'classes':_0x5e32cb,'attributes':{'data-change-id':_0x5eef0d}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x3386dc=>{_0x3386dc['on']('element:pre',(_0x443c95,_0x36e81e,_0x25bfbb)=>{const _0x3310bf=_0x36e81e['viewItem']['getChild'](0x0);if(!_0x3310bf||!_0x3310bf['is']('element','code'))return;if(!_0x25bfbb['consumable']['consume'](_0x3310bf,{'attributes':['vid_start','vid_end']}))return;const _0x5f1503=_0x36e81e['modelRange']['start']['nodeAfter'];_0x25bfbb['writer']['setAttribute']('vid_start',_0x3310bf['getAttribute']('vid_start'),_0x5f1503),_0x25bfbb['writer']['setAttribute']('vid_end',_0x3310bf['getAttribute']('vid_end'),_0x5f1503);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x405ada=>{_0x405ada['on']('element',(_0x2bd1f4,_0x40bdc7,_0xa63bef)=>{if(!_0xa63bef['consumable']['consume'](_0x40bdc7['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x40bdc7['modelRange']['isCollapsed'])return;const _0x29dbe3=_0x40bdc7['modelRange']['start']['nodeAfter'];_0x29dbe3['hasAttribute']('vid_start')||_0x29dbe3['hasAttribute']('vid')||(_0xa63bef['writer']['setAttribute']('vid_start',_0x40bdc7['viewItem']['getAttribute']('vid_start'),_0x29dbe3),_0xa63bef['writer']['setAttribute']('vid_end',_0x40bdc7['viewItem']['getAttribute']('vid_end'),_0x29dbe3));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x912b20=>_0x912b20['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x2c4e20,[,_0x580181])=>{['vid_start','vid_end','vid']['includes'](_0x580181)&&(_0x2c4e20['return']=!0x0,_0x2c4e20['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x1d5b75=>{_0x1d5b75['on']('attribute:vid',(_0x262aa2,_0x3813a2,_0x17fc57)=>{if('\x20'!=_0x3813a2['item']['data']||_0x3813a2['item']['parent']['maxOffset']>0x1)return;if(!_0x17fc57['consumable']['consume'](_0x3813a2['item'],_0x262aa2['name']))return;const _0x4da9b7=_0x17fc57['writer'],_0x1b8af6=_0x17fc57['mapper']['toViewRange'](_0x3813a2['range']);_0x4da9b7['wrap'](_0x1b8af6,_0x4da9b7['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x5afd64){const _0x4c5d90=_0x5afd64['plugins']['get']('RevisionViewer');return(_0x35125d,_0x14f0ba,_0x56760a)=>{const _0x46a4de=_0x14f0ba['markerName']['split'](':')[0x1],_0x50a195=_0x4c5d90['_getChangeFromId'](_0x46a4de);if(!_0x50a195)return null;const _0x3b9870='add'==_0x50a195['type']?'split':'merge';if(!_0x56760a['consumable']['test'](_0x14f0ba['markerRange'],_0x35125d['name']))return;const _0x2ba87f=_0x14f0ba['markerRange']['getWalker'](),_0x4c32fc=_0x14f0ba['markerRange']['start'],_0xe0f979=_0x5afd64['model']['schema'];let _0x446a8e=null,_0x43977b=null,_0x1edff3=!0x1,_0x1589e9=!0x1;for(const _0x435e3b of _0x2ba87f){const _0x33bfa8=_0x435e3b['item'];_0x1edff3=_0x1edff3||_0xe0f979['isContent'](_0x33bfa8);const _0x51b8ae=_0x56760a['mapper']['toViewElement'](_0x33bfa8);if(_0x51b8ae&&_0x51b8ae['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x435e3b['type']&&(_0xe0f979['isBlock'](_0x33bfa8)&&!_0xe0f979['isLimit'](_0x33bfa8)&&(_0x33bfa8['nextSibling']||_0x4c32fc['isAtEnd']?_0x446a8e&&_0x446a8e['parent']==_0x33bfa8||(_0x446a8e=_0x33bfa8,_0xd14b80(_0x435e3b['previousPosition']),_0x1589e9=!0x0):_0x43977b=_0x43977b||_0x435e3b['previousPosition']));}function _0xd14b80(_0x49a424){const _0x49786b=_0x56760a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3b9870}),_0x39172e=_0x56760a['mapper']['toViewPosition'](_0x49a424);_0x50a195['data']['isSuggestion']&&_0x56760a['writer']['addClass']('ck-suggestion-marker-'+_0x3b9870+'-new',_0x49786b),_0x4c5d90['activeChange']==_0x50a195&&_0x56760a['writer']['addClass']('ck-suggestion-marker--active',_0x49786b),_0x56760a['writer']['insert'](_0x39172e,_0x49786b),_0x56760a['mapper']['bindElementToMarker'](_0x49786b,_0x14f0ba['markerName']);}_0x1edff3||_0x1589e9||!_0x43977b||_0xd14b80(_0x43977b);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0xa3662e,_0x342c7b,_0x384e42)=>{const _0x121557=_0x384e42['mapper']['markerNameToElements'](_0x342c7b['markerName']);if(_0x121557){for(const _0xe96f6d of _0x121557)(_0xe96f6d['hasClass']('ck-suggestion-marker-split')||_0xe96f6d['hasClass']('ck-suggestion-marker-merge'))&&(_0x384e42['mapper']['unbindElementFromMarkerName'](_0xe96f6d,_0x342c7b['markerName']),_0x384e42['writer']['remove'](_0xe96f6d));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x25d74d,_0x2d41c1,_0x2edfcb)=>{const _0x543372=_0x2d41c1['markerName']['split'](':')[0x1],_0x349ff7=this['_getChangeFromId'](_0x543372);if(!_0x349ff7)return null;const _0x5412d9='add'==_0x349ff7['type']?'split':'merge';if(_0x2edfcb['consumable']['test'](_0x2d41c1['markerRange'],_0x25d74d['name']))for(const _0x482ae0 of _0x2d41c1['markerRange']['getItems']()){if(!_0x482ae0['is']('element','softBreak'))continue;const _0x3c164f=_0x2edfcb['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5412d9}),_0x532426=_0x2edfcb['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x482ae0));_0x349ff7['data']['isSuggestion']&&_0x2edfcb['writer']['addClass']('ck-suggestion-marker-'+_0x5412d9+'-new',_0x3c164f),this['activeChange']==_0x349ff7&&_0x2edfcb['writer']['addClass']('ck-suggestion-marker--active',_0x3c164f),_0x2edfcb['writer']['insert'](_0x532426,_0x3c164f),_0x2edfcb['mapper']['bindElementToMarker'](_0x3c164f,_0x2d41c1['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x266fba=>{for(const _0x59940a of this['editor']['model']['document']['getRootNames']()){const _0x21998b=this['editor']['model']['document']['getRoot'](_0x59940a),_0x3e03d1=this['editor']['editing']['view']['document']['getRoot'](_0x59940a);if(_0x3e03d1){const _0x293205=_0x21998b['getAttribute']('revisionHistoryAttachChange');if(_0x266fba['removeAttribute']('data-change-id',_0x3e03d1),_0x266fba['removeClass']('ck-revision-history-root-add',_0x3e03d1),_0x266fba['removeClass']('ck-revision-history-root-remove',_0x3e03d1),_0x266fba['removeClass']('ck-revision-history-root--active',_0x3e03d1),_0x293205){const _0x5ee50e=this['_getChangeFromId'](_0x293205);if(!_0x5ee50e)return null;_0x266fba['setAttribute']('data-change-id',_0x293205,_0x3e03d1),_0x266fba['addClass']('ck-revision-history-root-'+_0x5ee50e['type'],_0x3e03d1),this['activeChange']==_0x5ee50e&&_0x266fba['addClass']('ck-revision-history-root--active',_0x3e03d1);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0xbaed6a=>'revision-comment:'+_0xbaed6a,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x4b39e1=>'revision-suggestion:'+_0x4b39e1,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x94f7ed=>({'name':'suggestion:'+_0x94f7ed,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x59039f=>{const _0x230ff4=_0x59039f['markerName']['split'](':')[0x1];return'insertion'!=_0x230ff4&&'deletion'!=_0x230ff4?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x230ff4]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x6f63d,_0x5aa6a4,_0x5d488c)=>{const _0x41c37e=_0x5d488c['mapper']['markerNameToElements'](_0x5aa6a4['markerName']);if(_0x41c37e){for(const _0x13ce1c of _0x41c37e)_0x13ce1c['is']('uiElement')&&(_0x5d488c['mapper']['unbindElementFromMarkerName'](_0x13ce1c,_0x5aa6a4['markerName']),_0x5d488c['writer']['remove'](_0x13ce1c));}},{'priority':'high'});}['_getChangeFromId'](_0x3e8e4b){return this['_changeIdToChange']['get'](_0x3e8e4b);}['_getViewForChange'](_0x1c2de2){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x1c2de2),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x3316dc,_0x28e62f,_0x3a0440,_0x5bbd1f)=>{_0x5bbd1f&&this['_balloon']['remove'](_0x5bbd1f),_0x3a0440&&(this['_balloon']['add']({'view':_0x3a0440,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x53250a=this['editor']['editing'],_0x425e3c=this['_getChangeFromId'](_0x3a0440['changeId']);let _0x2a9cb1;if(_0x425e3c['data']['isOnRoot']){const _0x2c775a=_0x53250a['view']['getDomRoot'](_0x425e3c['rootName']);_0x2a9cb1=Array['from'](_0x2c775a['getClientRects']());}else{const _0x1a2153=this['editor']['model']['markers']['get']('revision:'+_0x3a0440['changeId']);_0x2a9cb1=Array['from'](_0x53250a['mapper']['markerNameToElements'](_0x1a2153['name']))['map'](_0x2b2f84=>_0x53250a['view']['domConverter']['mapViewToDom'](_0x2b2f84))['map'](_0x4189a7=>Array['from'](_0x4189a7['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x2a9cb1[0x0];return _0x2a9cb1['find'](_0x20e133=>_0x20e133['top']-0x3<=this['_activeViewTarget']['y']&&_0x20e133['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x20e133['left']-0x3<=this['_activeViewTarget']['x']&&_0x20e133['right']+0x3>=this['_activeViewTarget']['x'])||_0x2a9cb1[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x14e13c,_0x14d59d,_0x43adee,_0x3a7cb0)=>{this['activeView']=_0x43adee?this['_getViewForChange'](_0x43adee):null,this['editor']['model']['change'](()=>{const _0x27a208=this['editor']['editing'];_0x3a7cb0&&(_0x3a7cb0['data']['isOnRoot']?_0x27a208['view']['change'](_0x5a1499=>{_0x5a1499['removeClass']('ck-revision-history-root--active',_0x27a208['view']['document']['getRoot'](_0x3a7cb0['rootName']));}):_0x27a208['reconvertMarker']('revision:'+_0x3a7cb0['id'])),_0x43adee&&(_0x43adee['data']['isOnRoot']?_0x27a208['view']['change'](_0x84c553=>{_0x84c553['addClass']('ck-revision-history-root--active',_0x27a208['view']['document']['getRoot'](_0x43adee['rootName']));}):_0x27a208['reconvertMarker']('revision:'+_0x43adee['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x6cdea1,_0x27d8f2)=>{if(this['activeChange'])return;const _0x43055f=this['_findChangeIdFromDomTarget'](_0x27d8f2['target']),_0x3874a0=this['_changeIdToChange']['get'](_0x43055f);_0x3874a0?(this['_activeViewTarget']={'x':_0x27d8f2['domEvent']['x'],'y':_0x27d8f2['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x3874a0)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x1caf23,_0x238db7)=>{const _0x415770=this['_findChangeIdFromDomTarget'](_0x238db7['target']),_0x46bfc4=this['_changeIdToChange']['get'](_0x415770);_0x46bfc4?(this['_activeViewTarget']={'x':_0x238db7['domEvent']['x'],'y':_0x238db7['domEvent']['y']},_0x46bfc4===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x46bfc4):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x515bdc){do{const _0x34fbc2=_0x515bdc['getAttribute']('data-change-id');if(_0x34fbc2)return _0x34fbc2;_0x515bdc=_0x515bdc['parent'];}while(_0x515bdc);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x4a33ed=>{for(const _0x56ac57 of this['editor']['model']['markers'])_0x4a33ed['removeMarker'](_0x56ac57);});}}function Z(_0x5dd8a5,_0x475749){return(_0x4aef69,_0x44c664,_0x5c66cc)=>{if(!_0x5c66cc['consumable']['test'](_0x44c664['markerRange'],_0x4aef69['name']))return;const _0x2a11f2=_0x44c664['markerRange']['getWalker'](),_0x377b77=_0x44c664['markerRange']['start'],_0x188e85=_0x5dd8a5['model']['schema'];let _0x317398=null,_0x39d4ca=null,_0x482b89=!0x1,_0x10e54b=!0x1;for(const _0x23304f of _0x2a11f2){const _0x493644=_0x23304f['item'];_0x482b89=_0x482b89||_0x188e85['isContent'](_0x493644);const _0x2e7291=_0x5c66cc['mapper']['toViewElement'](_0x493644);if(_0x2e7291&&_0x2e7291['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x23304f['type']&&(_0x188e85['isBlock'](_0x493644)&&!_0x188e85['isLimit'](_0x493644)&&(_0x493644['nextSibling']||_0x377b77['isAtEnd']?_0x317398&&_0x317398['parent']==_0x493644||(_0x317398=_0x493644,_0x54f15e(_0x23304f['previousPosition']),_0x10e54b=!0x0):_0x39d4ca=_0x39d4ca||_0x23304f['previousPosition']));}function _0x54f15e(_0x69d9a4){const _0x5bdddf=_0x5c66cc['mapper']['toViewPosition'](_0x69d9a4),_0xb2aba5=_0x5c66cc['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x475749});_0x5c66cc['writer']['insert'](_0x5bdddf,_0xb2aba5),_0x5c66cc['mapper']['bindElementToMarker'](_0xb2aba5,_0x44c664['markerName']);}_0x482b89||_0x10e54b||!_0x39d4ca||_0x54f15e(_0x39d4ca);};}class _t extends _0x514c70{constructor(_0x25215a){super(_0x25215a);const _0x104c52=_0x25215a['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x104c52,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x104c52,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x1d673c=this['editor'],_0x2f98a5=_0x1d673c['plugins']['get'](d),_0x243150=_0x2f98a5['isReady']?_0x2f98a5['diff']['newRevisionId']:null;_0x1d673c['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x243150);}['refresh'](){const {isReady:_0x576c89,isEnabled:_0x299bdd,repository:_0x198ca5,diff:_0x436d4b}=this['editor']['plugins']['get'](d),_0x3f603c=_0x436d4b&&_0x198ca5['getLaterVisibleRevision'](_0x436d4b['newRevisionId']);this['isEnabled']=_0x576c89&&_0x299bdd&&Boolean(_0x3f603c);}}class yt extends _0x514c70{['_step'];constructor(_0x2dcaa9,{direction:_0x4bc94c}){super(_0x2dcaa9);const _0x548c89=_0x2dcaa9['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x4bc94c?0x1:-0x1,this['listenTo'](_0x548c89,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x548c89,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x548c89,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x5dcb23=this['editor'],_0x13ceb3=_0x5dcb23['plugins']['get'](d),{isNavigationMode:_0x27cfd3,currentChangeNumber:_0x8b383b}=_0x13ceb3;let _0x4809fe;if(_0x13ceb3['activeChange']=_0x27cfd3?_0x13ceb3['diff']['changes']['get'](_0x8b383b+this['_step']):_0x13ceb3['diff']['changes']['first'],_0x13ceb3['activeChange']['data']['isOnRoot'])_0x4809fe=_0x5dcb23['editing']['view']['getDomRoot'](_0x13ceb3['activeChange']['rootName']);else{const _0x3eadab=_0x5dcb23['model']['markers']['get']('revision:'+_0x13ceb3['activeChange']['id']);_0x4809fe=_0xaa98ce(_0x5dcb23['editing'],_0x3eadab);}_0x5f008a({'target':_0x4809fe,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x558fee,currentChangeNumber:_0x46893e,numberOfChanges:_0x5a324b,isReady:_0x448764,isEnabled:_0x43c7c9}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x43c7c9&&_0x448764&&_0x5a324b)&&(!_0x558fee||(0x1===this['_step']?_0x46893e<_0x5a324b-0x1:_0x46893e>0x0));}}class bi extends _0x327b83{constructor(_0xba55a4){super(_0xba55a4);const _0x1accf2=this['bindTemplate'],_0x3439a7=new _0x5c7a4e(_0xba55a4),_0x433f56=new _0x5c7a4e(_0xba55a4);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',(_0x24c321,_0x4df404)=>_0x24c321&&_0x4df404>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x5bda01,_0x1565dd,_0x3ff954,_0x5822b7)=>{if(!_0x5bda01)return m(_0xba55a4,'Loading...');if(!_0x3ff954)return m(_0xba55a4,'No\x20changes');const _0x4f4f38=m(_0xba55a4,'NUMBER_OF_CHANGES',_0x3ff954);return _0x5822b7?m(_0xba55a4,'X_OF_Y_CHANGES',[_0x1565dd+0x1,_0x3ff954]):_0x4f4f38;}),_0x3439a7['set']({'label':m(_0xba55a4,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x2dbddd}),_0x433f56['set']({'label':m(_0xba55a4,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x690d5b}),_0x3439a7['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x433f56['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x3439a7['on']('execute',()=>this['fire']('execute','backward')),_0x433f56['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',_0x1accf2['if']('_isStatusLabelVisible','ck-hidden',_0x4628d7=>!_0x4628d7)]},'children':[{'text':_0x1accf2['to']('isNavigationMode',_0x1e91e7=>_0x1e91e7?m(_0xba55a4,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0xba55a4,'Total')+':\x20')}]},{'text':_0x1accf2['to']('_statusText')}]},new _0x4a6c9b(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x3439a7,_0x433f56]}]});}}const ie='ck-editor__editable__loading-overlay';class te extends _0x1dcc45{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x33d3c6=this['editor']['editing']['view'];_0x33d3c6['change'](_0x18ae21=>{for(const _0x3a3169 of _0x33d3c6['document']['roots'])_0x18ae21['addClass'](ie,_0x3a3169);});}['hide'](){const _0x13a9a7=this['editor']['editing']['view'];_0x13a9a7['change'](_0x4a7ceb=>{for(const _0x32b5d7 of _0x13a9a7['document']['roots'])_0x4a7ceb['removeClass'](ie,_0x32b5d7);});}}class w extends _0x1dcc45{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,te];}['init'](){const _0x292964=this['editor'],_0x1c85b9=_0x292964['plugins']['get'](d),_0x4bc69a=_0x292964['plugins']['get'](te);_0x292964['ui']['componentFactory']['add']('exitToEditing',_0x4bf901=>{const _0x5930f4=new _0x5c7a4e(_0x4bf901);return _0x5930f4['set']({'label':m(_0x4bf901,'Back\x20to\x20editing'),'icon':_0x1efd95,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x5930f4,'execute',()=>{_0x292964['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x5930f4;}),_0x292964['ui']['componentFactory']['add']('restoreRevision',_0x49fb3e=>{const _0x2d22f8=new _0x5c7a4e(_0x49fb3e);return _0x2d22f8['set']({'label':m(_0x49fb3e,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x2d22f8['bind']('isEnabled')['to'](_0x292964['commands']['get']('restoreRevision')),this['listenTo'](_0x2d22f8,'execute',()=>_0x292964['execute']('restoreRevision')),_0x2d22f8;}),_0x292964['ui']['componentFactory']['add']('changesNavigation',_0x4f6df8=>{const _0x52d3db=new bi(_0x4f6df8),_0x5c8e2f=_0x292964['commands']['get']('showPreviousChange'),_0x20ff51=_0x292964['commands']['get']('showNextChange');return _0x52d3db['bind']('isBackwardNavigationEnabled')['to'](_0x5c8e2f,'isEnabled'),_0x52d3db['bind']('isForwardNavigationEnabled')['to'](_0x20ff51,'isEnabled'),_0x52d3db['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x1c85b9),this['listenTo'](_0x52d3db,'execute',(_0x4b265c,_0x1c0e25)=>{_0x292964['execute']('forward'===_0x1c0e25?'showNextChange':'showPreviousChange');}),_0x52d3db;}),_0x4bc69a['show'](),_0x1c85b9['on']('change:isReady',(_0x2a9cd2,_0x5d62f1,_0x3d1e48)=>{_0x3d1e48?_0x4bc69a['hide']():_0x4bc69a['show']();});}}class mt extends at{['_resizeObserver']=null;constructor(_0x2e9716,_0x5da993){super(_0x2e9716,_0x5da993);const _0x54508f=this['bindTemplate'];this['set']({'label':m(_0x2e9716,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x2e9716,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x54508f['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new pt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x6dd62f=this['fieldView']['element'];this['_tooltipString']=_0x6dd62f['scrollWidth']>_0x6dd62f['clientWidth']&&_0x6dd62f['value']||'';}}class oi extends _0x327b83{constructor(_0x56d7db,_0xe80346,_0xb015a8){super(_0x56d7db);const _0x5b2554=new _0x2da180();_0x5b2554['set']({'content':_0x4bbd54,'viewBox':'0\x200\x2011\x2010'});const _0x5312c1=['ck','ck-revision-history-sidebar__revision-author'];_0xb015a8&&_0x5312c1['push']('ck-revision-history-sidebar__revision-author_creator');const _0x32b1f3=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x56d7db,_0xb015a8?'Revision\x20creator':'Revision\x20author')},'children':[_0x5b2554,_0xe80346['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x5312c1},'children':_0x32b1f3});}}function ni(_0x1e11b5,_0x4c8fe){const _0x363bf0=_0x1e11b5['bindTemplate'],_0x1555ca=_0x1e11b5['locale'],_0x5974c7=_0x1381d9(_0x1555ca);_0x5974c7['panelPosition']='sw';const _0x3af39e=function(_0x1db6d6,_0x2d7c33){const _0x76e66=function(_0x2764ea,_0x4b4d10){const _0x49e9b2=_0x2764ea['locale'],_0x3495a7={'Compare\x20against\x20selected':m(_0x49e9b2,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x49e9b2,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x49e9b2,'Restore\x20this\x20revision')};return _0x4b4d10['map'](_0xadb6a2=>{const _0x5ea3c5=_0x3495a7[_0xadb6a2['name']];return _0x5ea3c5&&_0x5ea3c5!==_0xadb6a2['name']&&(_0xadb6a2['name']=_0x5ea3c5),_0xadb6a2;});}(_0x1db6d6,_0x2d7c33),_0x4e4b2a=new _0x2d09b0();for(const _0x15579f of _0x76e66){const _0x1277e8={'type':'button','model':new to({'label':_0x15579f['name'],'class':_0x15579f['class'],'withText':!0x0,'role':'menuitem','_action':_0x15579f['action']})};_0x1277e8['model']['bind']('isEnabled')['to'](_0x1db6d6,'isActionsDropdownOpen',_0x150a0d=>'function'!=typeof _0x15579f['isEnabled']||(!_0x150a0d||_0x15579f['isEnabled'](_0x1db6d6))),_0x4e4b2a['add'](_0x1277e8);}return _0x4e4b2a;}(_0x1e11b5,_0x4c8fe);return _0x1e11b5['bind']('isActionsDropdownOpen')['to'](_0x5974c7,'isOpen'),_0x5974c7['buttonView']['set']({'label':m(_0x1555ca,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x21cf3a}),_0x5974c7['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x363bf0['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x363bf0['to'](_0x452128=>_0x452128['stopPropagation']())}}),_0x5974c7['on']('execute',_0x175a89=>{_0x1e11b5['isReady']&&'function'==typeof _0x175a89['source']['_action']&&_0x175a89['source']['_action'](_0x1e11b5);}),_0x1c0299(_0x5974c7,_0x3af39e,{'role':'menu'}),_0x5974c7['listenTo'](_0x1e11b5,'change:isActionsDropdownOpen',(_0xcf7fee,_0xee2b00,_0x129572)=>{if(_0x129572)for(const _0x22e0b1 of _0x5974c7['listView']['items']){const _0x914f2f=_0x22e0b1['children']['first'],_0x578724=_0x4c8fe['find'](_0x4bb808=>_0x4bb808['action']===_0x914f2f['_action'])['isVisible'];_0x22e0b1['isVisible']=void 0x0===_0x578724||_0x578724(_0x1e11b5);}}),_0x5974c7;}class ai extends/* #__PURE__ -- @preserve */
|
|
26
|
-
|
|
23
|
+
import{ObservableMixin as _0x40dcb4,uid as _0x1916c0,Collection as _0x3c6e40,logWarning as _0x2f4f67,FocusTracker as _0x99741a,KeystrokeHandler as _0x243516,scrollViewportToShowTarget as _0x437d98,ResizeObserver as at,ElementReplacer as ht,CKEditorError as _0x2159a5}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x7494e5,set as _0x178db5,unset as _0x38bb2f,isEqual as _0x1e33ae}from'es-toolkit/compat';import{Plugin as _0x657f6f,PendingActions as _0x26dbef,Command as _0xb699a1,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x54c8db,getMarkerDomElement as _0x54c68b,ConfirmMixin as ti,sanitizeEditorConfig as _0x49f976}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x42c523,Element as ut,Range as ft,ViewUIElement as _0x486d16,ViewRawElement as _0x333e25,ViewEmptyElement as _0x24a98b,ViewAttributeElement as _0x287f2b,ViewContainerElement as _0x1523ca,Position as vt,ViewText as _0x39cc50,ViewElement as _0x1e70bc,DocumentFragment as gt,Text as mt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x3f127c,IconChevronUp as _0xf1e0bd,IconChevronDown as _0x533264,IconUndo as _0x28f7d6,IconUser as _0x53afc8,IconThreeVerticalDots as _0x50c83d}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x407e11,submitHandler as _0x3c3987,LabeledFieldView as _0x4f90d2,createLabeledInputText as _0x1a5665,createDropdown as _0xabbbe1,ListView as _0x2f8ba0,ListItemView as _0x493811,ButtonView as te,MenuBarMenuView as _0x2f28bb,MenuBarMenuListView as _0x3ed85c,MenuBarMenuListItemView as _0x8bb199,MenuBarMenuListItemButtonView as _0x4160e3,ContextualBalloon as _0x431a50,ToolbarSeparatorView as _0x4fe4cd,IconView as _0xc8a0bd,addListToDropdown as _0x3fbca8,ViewModel as to,EditorUI as st,normalizeToolbarConfig as ot,BoxedEditorUIView as ct,StickyPanelView as lt,ToolbarView as nt,InlineEditableUIView as dt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x498060}from'luxon';class h extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x40dcb4(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x24bd27){super(),this['id']=_0x24bd27['id']||_0x1916c0(),this['creator']=_0x24bd27['creator']||null,this['authors']=_0x24bd27['authors']||[],this['diffData']=_0x24bd27['diffData']||null,this['toVersion']=_0x24bd27['toVersion']||0x0,this['fromVersion']=_0x24bd27['fromVersion']||0x0,this['set']('name',_0x24bd27['name']||''),this['set']('createdAt',_0x24bd27['createdAt']||new Date()),this['set']('attributes',_0x24bd27['attributes']||{});}['setName'](_0x19dee4){this['_update']({'name':_0x19dee4});}['setAttribute'](_0x40284b,_0x44ab04){const _0x253881=_0x7494e5(this['attributes']);_0x178db5(_0x253881,_0x40284b,_0x44ab04),this['_update']({'attributes':_0x253881});}['removeAttribute'](_0x8d9ce5){const _0x478fb7=_0x7494e5(this['attributes']);_0x38bb2f(_0x478fb7,_0x8d9ce5),this['_update']({'attributes':_0x478fb7});}['_update'](_0x44cdba,_0x30f48b=!0x1){let _0x4af3a2=!0x1;const _0x3cd844={'id':this['id']},_0x5228ad=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x35e986 of _0x5228ad){const _0x542f76=_0x44cdba[_0x35e986];void 0x0!==_0x542f76&&_0x542f76!==this[_0x35e986]&&(this[_0x35e986]=_0x542f76,_0x3cd844[_0x35e986]=_0x542f76,_0x4af3a2=!0x0);}_0x4af3a2&&(_0x3cd844['authors']&&(_0x3cd844['authorsIds']=_0x3cd844['authors']['map'](_0xce5cdd=>_0xce5cdd['id']),delete _0x3cd844['authors']),this['fire']('_update',_0x3cd844,_0x30f48b));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x5d2eb8=>_0x5d2eb8['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x657f6f{['_revisions'];static get['requires'](){return[_0x54c8db];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x5649f6){super(_0x5649f6),this['_revisions']=new _0x3c6e40();}['afterInit'](){!async function(_0x2ffb4d){const _0x185cc6=_0x3b61eb([0x64,0x4c,0x4e,0x46,0x39,0x34,0x4a,0x6d,0x43,0x70,0x38,0x45,0x49,0x54,0x35,0x78,0x76,0x33,0x68,0x58,0x62,0x75,0x6f,0x50,0x51,0x71,0x67,0x7a,0x44,0x36,0x37,0x31,0x6a,0x59,0x6c,0x4d,0x6e,0x66,0x30,0x53,0x65,0x41,0x52,0x47,0x55,0x61,0x32,0x63,0x4f,0x4b,0x77,0x56,0x6b,0x48,0x74,0x5a,0x73,0x57,0x79,0x72,0x69,0x42]),_0x551ca9=0xeb829,_0x24b18c=0x396c8159,_0x23b3f1=0x396be0f9^_0x24b18c,_0x3b3a99=window[_0x3b61eb([0x44,0x61,0x74,0x65])][_0x3b61eb([0x6e,0x6f,0x77])](),_0x226912=_0x2ffb4d[_0x3b61eb([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x229bd3=new window[(_0x3b61eb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x56e467=>{_0x226912[_0x3b61eb([0x6f,0x6e,0x63,0x65])](_0x3b61eb([0x72,0x65,0x61,0x64,0x79]),_0x56e467);}),_0x316ce5={[_0x3b61eb([0x6b,0x74,0x79])]:_0x3b61eb([0x45,0x43]),[_0x3b61eb([0x75,0x73,0x65])]:_0x3b61eb([0x73,0x69,0x67]),[_0x3b61eb([0x63,0x72,0x76])]:_0x3b61eb([0x50,0x2d,0x32,0x35,0x36]),[_0x3b61eb([0x78])]:_0x3b61eb([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]),[_0x3b61eb([0x79])]:_0x3b61eb([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]),[_0x3b61eb([0x61,0x6c,0x67])]:_0x3b61eb([0x45,0x53,0x32,0x35,0x36])},_0x24f5c8=_0x226912[_0x3b61eb([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3b61eb([0x67,0x65,0x74])](_0x3b61eb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4c5a2f(){let _0x91027e,_0x2877c2=null,_0x289175=null;try{if(_0x24f5c8==_0x3b61eb([0x47,0x50,0x4c]))return _0x3b61eb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x91027e=_0x57274f(),!_0x91027e)return _0x3b61eb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x91027e[_0x3b61eb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x289175=_0x3161b4(_0x91027e[_0x3b61eb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x91027e[_0x3b61eb([0x6a,0x74,0x69])])),await _0x55d88f()?_0x45f06e()?_0x481159()?_0x3b61eb([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2beaed()?(_0x91027e[_0x3b61eb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3b61eb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2877c2=_0x569e87(_0x3b61eb([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x91027e[_0x3b61eb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3b61eb([0x74,0x72,0x69,0x61,0x6c])&&(_0x2877c2=_0x569e87(_0x3b61eb([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x381793()):_0x3b61eb([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3b61eb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3b61eb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x42ed17){return _0x3b61eb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x481159(){const _0x2e25c0=[_0x3b61eb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3b61eb([0x74,0x72,0x69,0x61,0x6c])][_0x3b61eb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x91027e[_0x3b61eb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3b3a99/0x3e8:0xe10*_0x23b3f1;return _0x91027e[_0x3b61eb([0x65,0x78,0x70])]<_0x2e25c0;}function _0x45f06e(){const _0x17dbf7=_0x91027e[_0x3b61eb([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x17dbf7)return!0x1;if(_0x17dbf7[_0x3b61eb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b61eb([0x2a])))return!0x0;if(_0x17dbf7[_0x3b61eb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b61eb([0x52,0x48])))return!0x0;if(_0x17dbf7[_0x3b61eb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b61eb([0x52,0x52,0x48]))){if(_0x303d0a())return!0x0;if(_0x141662()||_0x16c9ce())return!0x0;}return!0x1;}function _0x2beaed(){const _0x24f630=_0x91027e[_0x3b61eb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x24f630||0x0==_0x24f630[_0x3b61eb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1ca0e4}=new URL(window[_0x3b61eb([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x24f630[_0x3b61eb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ca0e4))return!0x0;const _0x5e5923=_0x1ca0e4[_0x3b61eb([0x73,0x70,0x6c,0x69,0x74])](_0x3b61eb([0x2e]));return _0x24f630[_0x3b61eb([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3b3a5c=>_0x3b3a5c[_0x3b61eb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b61eb([0x2a])))[_0x3b61eb([0x6d,0x61,0x70])](_0xcfc9d7=>_0xcfc9d7[_0x3b61eb([0x73,0x70,0x6c,0x69,0x74])](_0x3b61eb([0x2e])))[_0x3b61eb([0x73,0x6f,0x6d,0x65])](_0x41d514=>_0x5e5923[_0x3b61eb([0x65,0x76,0x65,0x72,0x79])]((_0xc8caf3,_0x55b82a)=>_0x41d514[_0x55b82a]===_0xc8caf3||_0x41d514[_0x55b82a]===_0x3b61eb([0x2a])));}function _0x381793(){return _0x2877c2&&_0x289175?new window[(_0x3b61eb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x194f01,_0x2ab87b)=>{_0x2877c2[_0x3b61eb([0x74,0x68,0x65,0x6e])](_0x194f01,_0x2ab87b),_0x289175[_0x3b61eb([0x74,0x68,0x65,0x6e])](_0x549f33=>{_0x549f33!=_0x3b61eb([0x56,0x61,0x6c,0x69,0x64])&&_0x194f01(_0x549f33);},_0x2ab87b);}):_0x2877c2||_0x289175||_0x3b61eb([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3161b4(_0x5c654c,_0x3375ba){return new window[(_0x3b61eb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x271208=>{if(_0x5bddeb())return _0x271208(_0x3b61eb([0x56,0x61,0x6c,0x69,0x64]));_0x585819(),_0x226912[_0x3b61eb([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3b61eb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4ebb9d=!0x1;const _0x490fd5=_0x1916c0();function _0x104565(_0x4430b0){return!!_0x4430b0&&(typeof _0x4430b0===_0x3b61eb([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4430b0===_0x3b61eb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4430b0[_0x3b61eb([0x74,0x68,0x65,0x6e])]===_0x3b61eb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4430b0[_0x3b61eb([0x63,0x61,0x74,0x63,0x68])]===_0x3b61eb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x28b304(_0xfdda5){_0x8d6f34(_0xfdda5)[_0x3b61eb([0x74,0x68,0x65,0x6e])](_0x27b85f=>{if(!_0x27b85f||_0x27b85f[_0x3b61eb([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3b61eb([0x6f,0x6b]))return _0x3b61eb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x27717a(_0x26e325(_0x490fd5+_0x3375ba))!=_0x27b85f[_0x3b61eb([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3b61eb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3b61eb([0x56,0x61,0x6c,0x69,0x64]);})[_0x3b61eb([0x74,0x68,0x65,0x6e])](_0x519699=>(_0x5c705b(),_0x519699),()=>{const _0x4c0683=_0x44bef9();return null==_0x4c0683?(_0x5c705b(),_0x3b61eb([0x56,0x61,0x6c,0x69,0x64])):_0x3b61eb(_0x3b3a99-_0x4c0683>(0x1d600559^_0x24b18c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3b61eb([0x74,0x68,0x65,0x6e])](_0x271208)[_0x3b61eb([0x63,0x61,0x74,0x63,0x68])](()=>{_0x271208(_0x3b61eb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x47370e=0x395a6fd9^_0x24b18c;function _0x5c705b(){const _0x5757ad=_0x3b61eb([0x6c,0x6c,0x63,0x74,0x2d])+_0x27717a(_0x26e325(_0x5c654c)),_0x51878d=_0x513022(_0x27717a(window[_0x3b61eb([0x4d,0x61,0x74,0x68])][_0x3b61eb([0x63,0x65,0x69,0x6c])](_0x3b3a99/_0x47370e)));window[_0x3b61eb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3b61eb([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5757ad,_0x51878d);}function _0x44bef9(){const _0x328246=_0x3b61eb([0x6c,0x6c,0x63,0x74,0x2d])+_0x27717a(_0x26e325(_0x5c654c)),_0x2362bd=window[_0x3b61eb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3b61eb([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x328246);return _0x2362bd?window[_0x3b61eb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x513022(_0x2362bd),0x10)*_0x47370e:null;}function _0x8d6f34(_0x2c8a75){return new window[(_0x3b61eb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x406865,_0x744f87)=>{_0x2c8a75[_0x3b61eb([0x74,0x68,0x65,0x6e])](_0x406865,_0x744f87),window[_0x3b61eb([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x744f87,0x396d5599^_0x24b18c);});}}_0x226912[_0x3b61eb([0x6f,0x6e])](_0x3b61eb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1b3ba7,_0x3f45aa)=>{if(_0x3f45aa[0x0]!=_0x5c654c)return _0x271208(_0x3b61eb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3f45aa[0x1]={..._0x3f45aa[0x1],[_0x3b61eb([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x490fd5};},{[_0x3b61eb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3b61eb([0x68,0x69,0x67,0x68])}),_0x226912[_0x3b61eb([0x6f,0x6e])](_0x3b61eb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3c6086=>{_0x104565(_0x3c6086[_0x3b61eb([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4ebb9d=!0x0,_0x28b304(_0x3c6086[_0x3b61eb([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3b61eb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3b61eb([0x6c,0x6f,0x77])}),_0x229bd3[_0x3b61eb([0x74,0x68,0x65,0x6e])](()=>{_0x4ebb9d||_0x271208(_0x3b61eb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5bddeb(){return _0x226912[_0x3b61eb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3b61eb([0x76,0x69,0x65,0x77])][_0x3b61eb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3b61eb([0x61,0x75,0x74,0x6f]);}function _0x585819(){_0x226912[_0x3b61eb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3b61eb([0x76,0x69,0x65,0x77])][_0x3b61eb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3b61eb([0x61,0x75,0x74,0x6f]);}}function _0x569e87(_0x2f4a85){const _0x237871=[new window[(_0x3b61eb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3dc5c3=>setTimeout(_0x3dc5c3,0x3965bf95^_0x24b18c)),_0x229bd3[_0x3b61eb([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3b61eb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x35dd70=>{const _0x35fb77=0x396c815e^_0x24b18c,_0x438b39=_0x2ffb4d[_0x3b61eb([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x3bc670(){_0x438b39[_0x3b61eb([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x35fb77&&_0x35dd70();}_0x3bc670(),_0x438b39[_0x3b61eb([0x6f,0x6e])](_0x3b61eb([0x61,0x64,0x64]),_0x3bc670);})),new window[(_0x3b61eb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xdf2188=>{function _0x2bd679(){for(const _0x1a3744 in window)if(window[_0x3b61eb([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x3b61eb([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x1a3744))&&window[_0x1a3744]==_0x551ca9)return _0xdf2188();_0x226912[_0x3b61eb([0x73,0x74,0x61,0x74,0x65])]!=_0x3b61eb([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x3b61eb([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2bd679,0x396c92d1^_0x24b18c);}_0x355ba2(_0x3b61eb([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x2bd679();})];return window[_0x3b61eb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3b61eb([0x72,0x61,0x63,0x65])](_0x237871)[_0x3b61eb([0x74,0x68,0x65,0x6e])](()=>_0x2f4a85);}async function _0x5ed59c(){if(await _0x229bd3,_0x355ba2(_0x3b61eb([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x381893=_0x2ffb4d[_0x3b61eb([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x18ec8e=_0x2ffb4d[_0x3b61eb([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])](_0x381893[_0x3b61eb([0x69,0x64])]),_0x27e3f3=_0x38d00e(_0x3b61eb([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x27e3f3[_0x3b61eb([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x381893['id'],_0x18ec8e?_0x18ec8e['id']:null,!0x0),_0x27e3f3[_0x3b61eb([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x3b61eb([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x27e3f3[_0x3b61eb([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x27e3f3[_0x3b61eb([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x8ad599,void(_0x27e3f3[_0x3b61eb([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x8ad599);}if(_0x355ba2(_0x3b61eb([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x36044d=_0x38d00e(_0x3b61eb([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x36044d[_0x3b61eb([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x3b61eb([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x36044d[_0x3b61eb([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x36044d[_0x3b61eb([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x8ad599,_0x36044d[_0x3b61eb([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x8ad599;}_0x226912[_0x3b61eb([0x6d,0x6f,0x64,0x65,0x6c])][_0x3b61eb([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x8ad599,_0x226912[_0x3b61eb([0x6d,0x6f,0x64,0x65,0x6c])][_0x3b61eb([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x8ad599,_0x226912[_0x3b61eb([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3b61eb([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x303d0a(){return _0x355ba2(_0x3b61eb([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x38d00e(_0x3b61eb([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3b61eb([0x73,0x74,0x61,0x74,0x65])]==_0x3b61eb([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x141662(){return _0x355ba2(_0x3b61eb([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 _0x16c9ce(){return _0x355ba2(_0x3b61eb([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x485754(_0xaa8efc){const _0x2e3c4d=_0x257473();_0x226912[_0x2e3c4d]=_0x3b61eb([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])+_0xaa8efc,_0xaa8efc[_0x3b61eb([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x3b61eb([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x257473()]=_0x551ca9),_0xaa8efc!=_0x3b61eb([0x56,0x61,0x6c,0x69,0x64])&&_0x5ed59c();}function _0x257473(){const _0x5ba080=window[_0x3b61eb([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3b61eb([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3b61eb([0x6e,0x6f,0x77])]())[_0x3b61eb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3b61eb([0x2e]),'');let _0x132c84=_0x3b61eb([0x64]);for(let _0x4d580c=0x0;_0x4d580c<_0x5ba080[_0x3b61eb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4d580c+=0x2){let _0x33fa7c=window[_0x3b61eb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5ba080[_0x3b61eb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4d580c,_0x4d580c+0x2));_0x33fa7c>=_0x185cc6[_0x3b61eb([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x33fa7c-=_0x185cc6[_0x3b61eb([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x132c84+=_0x185cc6[_0x33fa7c];}return _0x132c84;}function _0x57274f(){const _0xfc39f=_0x24f5c8[_0x3b61eb([0x73,0x70,0x6c,0x69,0x74])](_0x3b61eb([0x2e]));if(0x3!=_0xfc39f[_0x3b61eb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x34f385(_0xfc39f[0x1]);function _0x34f385(_0x1481ce){const _0x3b8eea=_0x214a75(_0x1481ce);return _0x3b8eea&&_0x4f6d7f()?_0x3b8eea:null;function _0x4f6d7f(){const _0xebcb0f=_0x3b8eea[_0x3b61eb([0x6a,0x74,0x69])],_0x2984f9=window[_0x3b61eb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xebcb0f[_0x3b61eb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xebcb0f[_0x3b61eb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2f6885={..._0x3b8eea,[_0x3b61eb([0x6a,0x74,0x69])]:_0xebcb0f[_0x3b61eb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xebcb0f[_0x3b61eb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2f6885[_0x3b61eb([0x76,0x63])],_0x26e325(_0x2f6885)==_0x2984f9;}}}async function _0x55d88f(){let _0x21a94e=!0x0;try{const _0x5a8238=_0x24f5c8[_0x3b61eb([0x73,0x70,0x6c,0x69,0x74])](_0x3b61eb([0x2e])),[_0x59716b,_0xfdf7b5,_0x596ca9]=_0x5a8238;return _0x517a15(_0x59716b),await _0x488d82(_0x59716b,_0xfdf7b5,_0x596ca9),_0x21a94e;}catch(_0x529acd){return!0x1;}function _0x517a15(_0x20df35){const _0x130d73=_0x214a75(_0x20df35);_0x130d73&&_0x130d73[_0x3b61eb([0x61,0x6c,0x67])]==_0x3b61eb([0x45,0x53,0x32,0x35,0x36])||(_0x21a94e=!0x1);}async function _0x488d82(_0x4280b3,_0x26f855,_0x262857){const _0x1c2200=window[_0x3b61eb([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3b61eb([0x66,0x72,0x6f,0x6d])](_0x5815cd(_0x262857),_0x135dda=>_0x135dda[_0x3b61eb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x10ce19=new window[(_0x3b61eb([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3b61eb([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4280b3+_0x3b61eb([0x2e])+_0x26f855),_0x472661=window[_0x3b61eb([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3b61eb([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x472661)return;const _0x2aa4f7=await _0x472661[_0x3b61eb([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3b61eb([0x6a,0x77,0x6b]),_0x316ce5,{[_0x3b61eb([0x6e,0x61,0x6d,0x65])]:_0x3b61eb([0x45,0x43,0x44,0x53,0x41]),[_0x3b61eb([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3b61eb([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3b61eb([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x472661[_0x3b61eb([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3b61eb([0x6e,0x61,0x6d,0x65])]:_0x3b61eb([0x45,0x43,0x44,0x53,0x41]),[_0x3b61eb([0x68,0x61,0x73,0x68])]:{[_0x3b61eb([0x6e,0x61,0x6d,0x65])]:_0x3b61eb([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2aa4f7,_0x1c2200,_0x10ce19)||(_0x21a94e=!0x1);}}function _0x214a75(_0x12a6a8){return _0x12a6a8[_0x3b61eb([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3b61eb([0x65,0x79]))?JSON[_0x3b61eb([0x70,0x61,0x72,0x73,0x65])](_0x5815cd(_0x12a6a8)):null;}function _0x5815cd(_0x4e70f7){return window[_0x3b61eb([0x61,0x74,0x6f,0x62])](_0x4e70f7[_0x3b61eb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3b61eb([0x2b]))[_0x3b61eb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3b61eb([0x2f])));}function _0x26e325(_0x3e9008){let _0x3f37a2=0x1505;function _0x3a04ae(_0x279e85){for(let _0x2f38c0=0x0;_0x2f38c0<_0x279e85[_0x3b61eb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2f38c0++){const _0x26c1e4=_0x279e85[_0x3b61eb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2f38c0);_0x3f37a2=(_0x3f37a2<<0x5)+_0x3f37a2+_0x26c1e4,_0x3f37a2&=_0x3f37a2;}}function _0x5c1b96(_0x1bca83){Array[_0x3b61eb([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1bca83)?_0x1bca83[_0x3b61eb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5c1b96):_0x1bca83&&typeof _0x1bca83==_0x3b61eb([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3b61eb([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1bca83)[_0x3b61eb([0x73,0x6f,0x72,0x74])]()[_0x3b61eb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x37cfc6,_0x333a5a])=>{_0x3a04ae(_0x37cfc6),_0x5c1b96(_0x333a5a);}):_0x3a04ae(window[_0x3b61eb([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1bca83));}return _0x5c1b96(_0x3e9008),_0x3f37a2>>>0x0;}function _0x27717a(_0x110f22){return _0x110f22[_0x3b61eb([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3b61eb([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3b61eb([0x30]));}function _0x513022(_0x901ac4){return _0x901ac4[_0x3b61eb([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3b61eb([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3b61eb([0x6a,0x6f,0x69,0x6e])]('');}function _0x355ba2(_0xf0eda5){return _0x226912[_0x3b61eb([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3b61eb([0x68,0x61,0x73])](_0xf0eda5);}function _0x38d00e(_0x6c0573){return _0x226912[_0x3b61eb([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3b61eb([0x67,0x65,0x74])](_0x6c0573);}function _0x8ad599(){}function _0x3b61eb(_0x4188ea){return _0x4188ea['map'](_0x37deb2=>String['fromCharCode'](_0x37deb2))['join']('');}_0x485754(await _0x4c5a2f());}(this);}['createRevision'](_0x14960e){const _0x58d661=this['editor']['plugins']['get']('Users');return new h({'id':_0x14960e['id'],'name':_0x14960e['name'],'creator':_0x14960e['creatorId']?_0x58d661['getUser'](_0x14960e['creatorId']):null,'diffData':_0x14960e['diffData']||_0x14960e['data'],'authors':_0x14960e['authorsIds']['map'](_0x5dd0d9=>_0x58d661['getUser'](_0x5dd0d9)),'createdAt':new Date(_0x14960e['createdAt']),'attributes':_0x14960e['attributes'],'fromVersion':_0x14960e['fromVersion'],'toVersion':_0x14960e['toVersion']});}['addRevision'](_0x2edbc,_0x3c620d=0x0){this['_revisions']['add'](_0x2edbc,_0x3c620d);}['getRevision'](_0x39f3e0){return this['_revisions']['get'](_0x39f3e0);}['getRevisions'](_0x4903b9={'toJSON':!0x1}){const _0x47f71c=Array['from'](this['_revisions']);return _0x47f71c['reverse'](),_0x4903b9['toJSON']?_0x47f71c['map'](_0x33d01c=>_0x33d01c['toJSON']()):_0x47f71c;}['getIndex'](_0x49365e){return this['_revisions']['getIndex'](_0x49365e);}['getEarlierVisibleRevision'](_0x4f4487){const [,_0x54c28d]=this['getRevisionsIterator'](_0x4f4487,{'direction':'earlier'});return _0x54c28d;}['getLaterVisibleRevision'](_0x16f169){const [,_0x48d63f]=this['getRevisionsIterator'](_0x16f169,{'direction':'later'});return _0x48d63f;}['getRevisionsInDiff'](_0x4de9db){const _0x550de5=[];for(const _0x5c5998 of this['getRevisionsIterator'](_0x4de9db['newRevisionId']))if(_0x550de5['push'](_0x5c5998),_0x5c5998['id']===_0x4de9db['oldRevisionId'])break;return _0x550de5;}*['getRevisionsIterator'](_0x3cf004,{direction:_0x51d83d='earlier',filter:_0x1c613c=()=>!0x0}={}){const _0x599ea9='earlier'===_0x51d83d?0x1:-0x1;let _0x3d1118=this['_revisions']['get'](_0x3cf004),_0xa0cdbc=this['getIndex'](_0x3d1118);for(yield _0x3d1118;_0x3d1118;){if(_0xa0cdbc+=_0x599ea9,_0x3d1118=this['getRevision'](_0xa0cdbc),!_0x3d1118)return;_0x1c613c(_0x3d1118)&&(yield _0x3d1118);}}}function m(_0x27170c,_0x10eb55,_0x4ee914){const t=_0x27170c['t'];switch(_0x10eb55){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'},_0x4ee914);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x4ee914);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const E={'c':_0x1523ca,'a':_0x287f2b,'e':_0x24a98b,'r':_0x333e25,'u':_0x486d16};class u extends _0x657f6f{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x54c8db,j,_0x26dbef];}constructor(_0x40a8fe){super(_0x40a8fe),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x522d11=_0x1916c0();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x522d11},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x4b3b1d=this['repository']['getRevision'](0x0),_0x300d1a=_0x4b3b1d&&null===_0x4b3b1d['creator']?_0x4b3b1d:null;if(this['_continueCurrentRevision']=!!_0x300d1a&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x4b9ebc=this['_source']['getCurrentRevisionId'](),_0x3058c7=this['repository']['getRevision'](_0x4b9ebc);if(_0x3058c7)this['_startingVersion']=_0x3058c7['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x51f8ee=this['_source']['history']['_operations']['find'](_0x506710=>!_0x506710['_isInit']),_0x1a9734=_0x51f8ee?_0x51f8ee['baseVersion']:this['_source']['history']['version'];_0x4b3b1d?(_0x4b3b1d['toVersion']<_0x1a9734&&_0x4b3b1d['_update']({'toVersion':_0x1a9734}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x300d1a['id'],this['_startingVersion']=_0x300d1a['fromVersion']):(this['_startingVersion']=_0x4b3b1d['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x1a9734,this['_continueCurrentRevision']=!0x1);}}else _0x300d1a&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x300d1a['toVersion'],this['editor']['model']['document']['history']['version']),_0x300d1a['fromVersion']===_0x300d1a['toVersion']?(0x0!==_0x300d1a['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x300d1a['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x300d1a['id'],this['_startingVersion']=_0x300d1a['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',_0x445bdd=>!_0x445bdd),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x289634=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x487ecb;for(const _0x1b547b in _0x289634){const _0x1c2b26=_0x1b547b,_0x104c6b=_0x289634[_0x1c2b26];if('revisionHistoryLicenseKeyValid'==_0x104c6b||'revisionHistoryLicenseKeyInvalid'==_0x104c6b||'revisionHistoryLicenseKeyExpired'==_0x104c6b||'revisionHistoryLicenseKeyDomainLimit'==_0x104c6b||'revisionHistoryLicenseKeyNotAllowed'==_0x104c6b||'revisionHistoryLicenseKeyEvaluationLimit'==_0x104c6b||'revisionHistoryLicenseKeyTrialLimit'==_0x104c6b||'revisionHistoryLicenseKeyUsageLimit'==_0x104c6b){delete _0x289634[_0x1c2b26],_0x487ecb=_0x104c6b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x487ecb&&_0x289634['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x487ecb&&_0x289634['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x487ecb&&_0x289634['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x487ecb&&_0x289634['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x487ecb&&_0x289634['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x487ecb&&_0x289634['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x487ecb&&_0x289634['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x1d8007=this['repository']['getRevision'](0x0),_0x3dd8ea=await this['getRevisionDocumentData'](_0x1d8007),_0x143af3=await this['getRevisionRootsAttributes'](_0x1d8007);this['_replaceEditorDataWithRevisionData'](_0x3dd8ea,_0x143af3);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x1857e4){this['_source']=_0x1857e4;}async['update'](){const _0x5e1155=await this['_source']['getLatestVersion']();if(_0x5e1155>this['currentRevision']['toVersion']){await this['_loadState']();const _0xce00a8=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x5e1155});_0xce00a8['authors']=_0xce00a8['authorsIds']['map'](_0x35b287=>this['editor']['plugins']['get']('Users')['getUser'](_0x35b287)),this['currentRevision']['_update'](_0xce00a8);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0xcbc496={},_0x2fb9f9=null){const _0x1d5e67=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x2fb9f9>this['currentRevision']['toVersion']&&(_0x2fb9f9=null),null===_0x2fb9f9&&(_0x2fb9f9=await this['_source']['getLatestVersion']());const _0x156d9e=this['_getFromVersion'](_0x2fb9f9),_0x39cc13=this['buildRevisionData']({'from':_0x156d9e,'to':_0x2fb9f9});if(this['currentRevision']['toVersion']<_0x2fb9f9){const _0x25ddb5=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x2fb9f9,'to':_0x2fb9f9});_0x25ddb5['authors']=[],_0x25ddb5['authorsIds']=[],_0x25ddb5['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x25ddb5,!0x0),delete _0x25ddb5['authors'],_0x1d5e67['push'](_0x25ddb5);}_0xcbc496['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0xcbc496['name']=_0xcbc496['name']||null,_0xcbc496['id']=_0xcbc496['id']||_0x1916c0(),_0xcbc496={..._0xcbc496,..._0x39cc13};const _0x56ccea=this['addRevisionData'](_0xcbc496);_0x1d5e67['push'](_0xcbc496);const _0x19bdd4=this['repository']['getIndex'](_0x56ccea);if(0x0!==_0x19bdd4){const _0x36f95d=this['repository']['getRevision'](_0x19bdd4-0x1);if(_0x36f95d['fromVersion']!==_0x2fb9f9){const _0x5bf0ea=this['_revisionDataBuilder']['getData'](_0x2fb9f9,_0x36f95d['toVersion']),_0x33f4dc={'id':_0x36f95d['id'],'diffData':_0x5bf0ea['diffData'],'authorsIds':_0x5bf0ea['authorsIds'],'authors':_0x5bf0ea['authorsIds']['map'](_0xcaccdb=>this['editor']['plugins']['get']('Users')['getUser'](_0xcaccdb)),'fromVersion':_0x2fb9f9};_0x36f95d===this['currentRevision']&&(_0x33f4dc['createdAt']=new Date(_0xcbc496['createdAt']['getTime']()+0xa)),_0x36f95d['_update'](_0x33f4dc,!0x0),delete _0x33f4dc['authors'],_0x1d5e67['push'](_0x33f4dc);}}if(this['adapter']){for(const _0x17677d of _0x1d5e67)this['_bufferUpdate'](_0x17677d['id'],_0x17677d,!0x0);this['sendBufferedUpdates']();}return _0x56ccea;}['addRevisionData'](_0x297005){const _0x547916=this['repository']['createRevision'](_0x297005);return this['adapter']&&_0x547916['on']('_update',(_0x4f5522,_0x388bca,_0x44faa0)=>{_0x44faa0||(this['_bufferUpdate'](_0x388bca['id'],_0x388bca,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x547916,this['_findInsertionIndex'](_0x547916)),_0x547916;}async['getRevisionDocumentData'](_0x2dca0b){await this['_loadRevisionData'](_0x2dca0b);const _0x3c97b0={};for(const _0x1c689c in _0x2dca0b['diffData']){if(_0x2dca0b['diffData'][_0x1c689c]['attachChange']&&!_0x2dca0b['diffData'][_0x1c689c]['attachChange']['isAttached'])continue;const _0x101efc=this['_removeRevisionMarkers'](JSON['parse'](_0x2dca0b['diffData'][_0x1c689c]['insertions'])),_0x1685c7=this['editor']['editing']['view']['document'],_0x326018=new _0x42c523(_0x1685c7,_0x101efc['map'](_0x1cfbb4=>P(_0x1cfbb4,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x3c97b0[_0x1c689c]=this['editor']['data']['processor']['toData'](_0x326018),this['editor']['data']['processor']['useFillerType']('default');}return _0x3c97b0;}async['getRevisionRootsAttributes'](_0x168cbb){await this['_loadRevisionData'](_0x168cbb);const _0x4c6d72={};for(const _0x49a5bf in _0x168cbb['diffData'])_0x168cbb['diffData'][_0x49a5bf]['attachChange']&&!_0x168cbb['diffData'][_0x49a5bf]['attachChange']['isAttached']||(_0x4c6d72[_0x49a5bf]=_0x168cbb['diffData'][_0x49a5bf]['attributesAfter']||{});return _0x4c6d72;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x476086=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x4dd868=0x0;_0x4dd868<_0x476086['length'];_0x4dd868++){const _0x131a30=_0x476086[_0x4dd868];let _0x28a62c=!0x1;for(const _0x3b900b of Object['keys'](_0x131a30))void 0x0===_0x131a30[_0x3b900b]?delete _0x131a30[_0x3b900b]:'id'!==_0x3b900b&&(_0x28a62c=!0x0);_0x28a62c||(_0x476086[_0x4dd868]=null);}if(_0x476086=_0x476086['filter'](_0x3d6331=>null!==_0x3d6331),!_0x476086['length'])return;for(let _0x51d2f3=0x0;_0x51d2f3<_0x476086['length'];_0x51d2f3++){const _0x1e43f1=_0x476086[_0x51d2f3];void 0x0!==_0x1e43f1['fromVersion']&&void 0x0===_0x1e43f1['toVersion']&&(_0x1e43f1['toVersion']=this['repository']['getRevision'](_0x1e43f1['id'])['toVersion']),void 0x0!==_0x1e43f1['toVersion']&&void 0x0===_0x1e43f1['fromVersion']&&(_0x1e43f1['fromVersion']=this['repository']['getRevision'](_0x1e43f1['id'])['fromVersion']);}const _0x48f15d=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x476086,_0x48f15d)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x8b8c28=>{if(_0x8b8c28){for(const _0x42a4cf of _0x8b8c28)this['setRevisionData']({'id':_0x42a4cf['id'],'createdAt':_0x42a4cf['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x83e33b,_0x3bc21c){let _0x58d723=this['editor']['config']['get']('initialData'),_0x103176=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x58d723){_0x58d723={};for(const _0x458eab of this['editor']['model']['document']['getRootNames']())_0x58d723[_0x458eab]='';}if('string'==typeof _0x58d723&&(_0x58d723={'main':_0x58d723}),void 0x0===_0x103176){_0x103176={};for(const _0x5d7f88 of this['editor']['model']['document']['getRootNames']())_0x103176[_0x5d7f88]={};}let _0xe8705c=!0x1;const _0x230fc5=Object['keys'](_0x58d723),_0xdeb4e7=Object['keys'](_0x83e33b);for(const _0x2ede7a of _0x230fc5){if(_0x58d723[_0x2ede7a]!==_0x83e33b[_0x2ede7a]&&''!==_0x58d723[_0x2ede7a]['trim']()){_0xe8705c=!0x0;break;}if(!_0x1e33ae(_0x103176[_0x2ede7a],_0x3bc21c[_0x2ede7a])&&Object['keys'](_0x103176[_0x2ede7a])['length']>0x0){_0xe8705c=!0x0;break;}}_0xe8705c||(_0xe8705c=_0xdeb4e7['some'](_0x358eb0=>!this['editor']['model']['document']['getRoot'](_0x358eb0))),_0xe8705c&&_0x2f4f67('editor-initial-data-replaced-with-revision-data',{'editorData':_0x58d723,'editorRootsAttributes':_0x103176,'revisionData':_0x83e33b,'revisionRootsAttributes':_0x3bc21c}),this['editor']['config']['set']('initialData',_0x83e33b),this['editor']['config']['set']('rootsAttributes',_0x3bc21c);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x36f928=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x36f928['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x28ee74){const _0x3694e6=this['repository']['getRevisions']();_0x3694e6['reverse']();let _0x2c5950=0x0;for(;_0x2c5950<_0x3694e6['length'];){const _0x1e74c8=_0x3694e6[_0x2c5950];if(_0x1e74c8===this['currentRevision']){_0x2c5950++;continue;}if(_0x1e74c8['id']===this['_initialRevisionId'])break;const _0x1c31c2=_0x28ee74['toVersion']-_0x1e74c8['toVersion']||_0x28ee74['fromVersion']-_0x1e74c8['fromVersion'];if(_0x1c31c2>0x0)break;if(_0x1c31c2<0x0)_0x2c5950++;else{if(!_0x28ee74['creator']&&_0x1e74c8['creator'])break;if(_0x1e74c8['creator']||!_0x28ee74['creator']){if(_0x28ee74['createdAt']>_0x1e74c8['createdAt'])break;_0x2c5950++;}else _0x2c5950++;}}return _0x2c5950;}['setRevisionData'](_0x46ad35){const _0x4c1b20=this['repository']['getRevision'](_0x46ad35['id']);if(_0x46ad35['createdAt']&&(_0x46ad35['createdAt']=new Date(_0x46ad35['createdAt'])),_0x46ad35['authorsIds']){const _0x28ebfc=this['editor']['plugins']['get']('Users');_0x46ad35['authors']=_0x46ad35['authorsIds']['map'](_0x53a43d=>_0x28ebfc['getUser'](_0x53a43d));}_0x4c1b20['_update'](_0x46ad35,!0x0);}['buildRevisionData']({revision:_0x96d7cc=null,from:_0x2797f4=null,to:_0x5b000f=null}){_0x2797f4=null!==_0x2797f4?_0x2797f4:_0x96d7cc['fromVersion'],_0x5b000f=null!==_0x5b000f?_0x5b000f:_0x96d7cc['toVersion'];const _0x19c76a=this['_revisionDataBuilder']['getData'](_0x2797f4,_0x5b000f),_0xb6c5e6={'diffData':_0x19c76a['diffData'],'authorsIds':_0x19c76a['authorsIds'],'fromVersion':_0x2797f4,'toVersion':_0x5b000f};if(!_0x96d7cc||_0x5b000f!==_0x96d7cc['toVersion']){const _0x4388c3=_0x5b000f-0x1,_0x59d8c0=this['_source']['history']['getOperation'](_0x4388c3);_0xb6c5e6['createdAt']=_0x59d8c0&&_0x59d8c0['createdAt']||new Date();}if(this['_loadedStateData']&&_0x2797f4===this['_loadedStateData']['fromVersion']){for(const _0x2316db of this['_loadedStateData']['authors'])_0xb6c5e6['authorsIds']['includes'](_0x2316db['id'])||_0xb6c5e6['authorsIds']['push'](_0x2316db['id']);}return _0xb6c5e6;}['_loadRevisionData'](_0x556248){if(!_0x556248||_0x556248['diffData'])return Promise['resolve']();{const _0x299f8f=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x299f8f,'revisionId':_0x556248['id']})['then'](_0x1b18a5=>{_0x556248['diffData']=_0x1b18a5['diffData'];});}}['_bufferUpdate'](_0x4764ea,_0x356790,_0x514283){if(this['_bufferedUpdates']['has'](_0x4764ea)){const _0xc72b78=this['_bufferedUpdates']['get'](_0x4764ea);_0x356790=_0x514283?{..._0xc72b78,..._0x356790}:{..._0x356790,..._0xc72b78};}this['_bufferedUpdates']['set'](_0x4764ea,_0x356790);}['_getFromVersion'](_0x11762c){const _0x1d1555=this['repository']['getRevisions']();_0x1d1555['reverse'](),_0x1d1555['shift']();const _0x2671e2=_0x1d1555['find'](_0x21a0a4=>_0x21a0a4['toVersion']<=_0x11762c)['toVersion'];return _0x2671e2<this['_startingVersion']?this['_startingVersion']:_0x2671e2;}['_createInitialRevision'](_0x265d84){const _0x13b799=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x13b799)this['_initialRevisionId']=_0x13b799['id'];else{const _0x3345bc=!this['editor']['model']['document']['roots']['find'](_0x1e9225=>this['editor']['model']['hasContent'](_0x1e9225)),_0x50ea35=this['editor']['plugins']['get']('Users')['me']['id'],_0x1df5cf=m(this['editor']['locale'],_0x3345bc?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x265d84,'to':_0x265d84,'id':this['_initialRevisionId'],'name':_0x1df5cf,'creatorId':_0x50ea35});}}['_createCurrentRevision'](_0x1d8444){const _0x3cf838=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x3cf838),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x1d8444,'to':_0x1d8444,'id':_0x3cf838,'name':'','creatorId':null}));}['_makeRevision']({name:_0xb3e9cc,from:_0xfd048f,to:_0x1cd926,creatorId:_0x571823,id:_0x5d7128}){const _0x2f301f=this['buildRevisionData']({'from':_0xfd048f,'to':_0x1cd926});_0x2f301f['name']=_0xb3e9cc,_0x2f301f['creatorId']=_0x571823,_0x2f301f['id']=_0x5d7128;const _0x4f900e=this['addRevisionData'](_0x2f301f);return this['adapter']&&this['_bufferUpdate'](_0x2f301f['id'],_0x2f301f,!0x0),_0x4f900e;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x4769ee){return(_0x4769ee=_0x4769ee['filter'](_0x5e1477=>!_0x5e1477['name']||'revision-start'!==_0x5e1477['name']&&'revision-end'!==_0x5e1477['name']))['forEach'](_0xb0f8eb=>{'string'!=typeof _0xb0f8eb&&(_0xb0f8eb['children']=this['_removeRevisionMarkers'](_0xb0f8eb['children']),_0xb0f8eb['attributes']=_0xb0f8eb['attributes']['filter'](_0x195a4d=>!_0x195a4d[0x0]['startsWith']('data-revision-')));}),_0x4769ee;}}function P(_0x3fa631,_0x26c461){const _0x1b30c7=_0x26c461['editing']['view']['document'];if('string'==typeof _0x3fa631)return new _0x39cc50(_0x1b30c7,_0x3fa631);{const _0x4b865e=_0x3fa631['children']['map'](_0xd879d8=>P(_0xd879d8,_0x26c461));return new(E[_0x3fa631['type']]||_0x1e70bc)(_0x1b30c7,_0x3fa631['name'],_0x3fa631['attributes'],_0x4b865e);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0xc6f697){this['editor']=_0xc6f697,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'](_0x5a716b){this['source']=_0x5a716b;const _0x436df6=new Map(),_0x12c728=new Map(),_0x5cabac=this['editor']['model']['document']['roots']['map'](_0xb435c0=>_0xb435c0['rootName']);for(const _0x115a23 of _0x5cabac){const _0x3bda51=this['editor']['model']['document']['getRoot'](_0x115a23),_0x7154da=T(_0x3bda51);_0x436df6['set'](_0x115a23,_0x7154da),_0x12c728['set'](_0x115a23,Object['fromEntries'](_0x3bda51['getAttributes']()));}const _0x3ad175=Array['from'](this['editor']['model']['markers'])['map'](_0x476756=>[_0x476756['name'],_0x476756['getRange']()]),_0x107aaf=this['source']['version'];this['_saveMetaData'](_0x107aaf,_0x436df6,_0x3ad175,_0x12c728),this['_startingRevisionId']=this['_revisionId'];const _0x1f5df5=new Map(),_0x138e91=new Map();for(const _0x3cff7a of _0x5cabac){const _0x49ae81=F(_0x3cff7a);_0x1f5df5['set'](_0x3cff7a,_0x49ae81),_0x138e91['set'](_0x3cff7a,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x1f5df5,[],_0x138e91);}['getData'](_0x2fe3ce,_0x1cfdc6){if(this['_lastFrom']===_0x2fe3ce&&this['_lastTo']<=_0x1cfdc6)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x1cfdc6,!0x0);else{if(!this['_savedMetaData']['has'](_0x2fe3ce)){const _0x1daac3=this['_getPreviousFrom'](_0x2fe3ce);this['_calculateMetaData'](_0x1daac3,_0x2fe3ce,!0x1);}this['_calculateMetaData'](_0x2fe3ce,_0x1cfdc6,!0x0);}return this['_lastFrom']=_0x2fe3ce,this['_lastTo']=_0x1cfdc6,this['_getState']();}['loadState'](_0x222c2d){this['_reset'](),this['_lastFrom']=_0x222c2d['fromVersion'],this['_lastTo']=_0x222c2d['toVersion'];for(const _0x5b0d59 in _0x222c2d['diffData']){const _0x30c35c=_0x222c2d['diffData'][_0x5b0d59]['attachChange'],_0x51e772=_0x7494e5(_0x222c2d['diffData'][_0x5b0d59]['attributesBefore'])||{},_0x1aa4ba=this['_makeModelFromViewString'](_0x222c2d['diffData'][_0x5b0d59]['deletions']);_0x1aa4ba['rootName']=_0x5b0d59,_0x1aa4ba['_isAttached']=!_0x30c35c||!_0x30c35c['isAttached'],_0x1aa4ba['isAttached']=()=>_0x1aa4ba['_isAttached'],this['_baseRoots']['set'](_0x5b0d59,_0x1aa4ba),this['_baseRootsAttributes']['set'](_0x5b0d59,_0x51e772),_0x30c35c&&this['_touchedRoots']['set'](_0x5b0d59,_0x30c35c);const _0x506af4=this['_makeIdsRoot'](_0x1aa4ba);this['_baseIdsRoots']['set'](_0x5b0d59,_0x506af4);for(const [_0x2240fc,_0x410ac7]of _0x1aa4ba['markers']){if(!_0x2240fc['startsWith']('revision:'))continue;const _0x1ae12f=_0x2240fc['split'](':')[0x2];for(const _0x3998e7 of _0x410ac7['getWalker']({'singleCharacters':!0x0})){const _0x133f0b=this['_getVidAttributeName'](_0x3998e7),_0x5eccc5='elementEnd'==_0x3998e7['type']?_0x3998e7['previousPosition']['path']['slice'](0x0,-0x1):_0x3998e7['previousPosition']['path'],_0x42d647=_0x506af4['getNodeByPath'](_0x5eccc5)['getAttribute'](_0x133f0b);this['_touched']['set'](_0x42d647,{'userId':_0x1ae12f});}}}this['_startingRevisionId']=this['_revisionId'];const _0x26af0b=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x4d628c=>!this['_touched']['has'](_0x4d628c));let _0x13428c=0x0;const _0x1cf96b=new Map();for(const _0x359d2f in _0x222c2d['diffData']){const _0x3c4fd3=_0x222c2d['diffData'][_0x359d2f]['attachChange'],_0x3324e4=_0x7494e5(_0x222c2d['diffData'][_0x359d2f]['attributesAfter'])||{},_0x1b3e67=this['_makeModelFromViewString'](_0x222c2d['diffData'][_0x359d2f]['insertions']);_0x1b3e67['rootName']=_0x359d2f,_0x1b3e67['_isAttached']=!_0x3c4fd3||_0x3c4fd3['isAttached'],_0x1b3e67['isAttached']=()=>_0x1b3e67['_isAttached'],this['_diffRoots']['set'](_0x359d2f,_0x1b3e67),this['_diffRootsAttributes']['set'](_0x359d2f,_0x3324e4);const _0x2986b2=this['_makeIdsRoot'](_0x1b3e67,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x359d2f,_0x2986b2),_0x1cf96b['set'](_0x359d2f,_0x1b3e67['isAttached']()?_0x3324e4:{});for(const [_0x7dcb1b,_0x318aa1]of _0x1b3e67['markers']){if(!_0x7dcb1b['startsWith']('revision:'))continue;const _0x69a76b=_0x7dcb1b['split'](':')[0x2];for(const _0x4ed330 of _0x318aa1['getWalker']({'singleCharacters':!0x0})){const _0x48ea19=this['_getVidAttributeName'](_0x4ed330),_0x580743=this['_revisionId']++,_0x4b1ff1='elementEnd'==_0x4ed330['type']?_0x4ed330['previousPosition']['path']['slice'](0x0,-0x1):_0x4ed330['previousPosition']['path'];_0x2986b2['getNodeByPath'](_0x4b1ff1)['_setAttribute'](_0x48ea19,_0x580743),this['_touched']['set'](_0x580743,{'userId':_0x69a76b});}}for(const _0x1dad44 of this['editor']['model']['createRangeIn'](_0x1b3e67)['getWalker']({'singleCharacters':!0x0})){const _0x15c82c=this['_getVidAttributeName'](_0x1dad44),_0x14d997='elementEnd'==_0x1dad44['type']?_0x1dad44['previousPosition']['path']['slice'](0x0,-0x1):_0x1dad44['previousPosition']['path'],_0x1e926f=_0x2986b2['getNodeByPath'](_0x14d997);_0x1e926f['getAttribute'](_0x15c82c)>0x0||_0x1e926f['_setAttribute'](_0x15c82c,_0x26af0b[_0x13428c++]);}for(const [_0x3d8ae9,_0x173389]of _0x1b3e67['markers'])_0x3d8ae9['startsWith']('revision:')||this['_markers']['set'](_0x3d8ae9,_0x173389);}const _0x3d2f17=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x3d2f17),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x3d2f17,0x1));const _0xc88af9=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0xc88af9),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0xc88af9,0x1));const _0x5cd046=Array['from'](this['_diffRoots'])['map'](([_0x4e0080,_0x16b120])=>[_0x4e0080,T(_0x16b120)]);this['_saveMetaData'](this['_lastTo'],_0x5cd046,this['_markers'],_0x1cf96b);}['_makeModelFromViewString'](_0x352530){const _0x192f1c=JSON['parse'](_0x352530),_0x493928=this['editor']['editing']['view']['document'],_0xe938ef=new _0x42c523(_0x493928,_0x192f1c['map'](_0x1b6d66=>P(_0x1b6d66,this['editor'])));return this['editor']['data']['toModel'](_0xe938ef);}['_saveMetaData'](_0x5282e5,_0x423b8c,_0x26d5fa,_0x189fe2){const _0x56df79=new Map(_0x423b8c),_0x488612=new Map(_0x7494e5(_0x189fe2)),_0xb808af=new Map();for(const [_0x1db198,_0x39dba5]of _0x26d5fa)_0xb808af['set'](_0x1db198,{'start':_0x39dba5['start']['clone'](),'end':_0x39dba5['end']['clone'](),'rootName':_0x39dba5['root']['rootName']});this['_savedMetaData']['set'](_0x5282e5,{'roots':_0x56df79,'markers':_0xb808af,'rootsAttributes':_0x488612});}['_removeMetaData'](_0x5c3e61){this['_savedMetaData']['delete'](_0x5c3e61);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x4f252d,_0x1a8b83=null){let _0x429e40=null;_0x4f252d['is']('documentFragment')||(_0x429e40=new ut(_0x4f252d['name'],{'vid_start':null===_0x1a8b83?this['_revisionId']++:_0x1a8b83++}));const _0xc84167=[];for(const _0x2b4bdb of _0x4f252d['getChildren']())if(_0x2b4bdb['is']('element')){_0xc84167['push'](this['_makeIdsRoot'](_0x2b4bdb,_0x1a8b83));const _0x17349f=_0xc84167[_0xc84167['length']-0x1];null!==_0x1a8b83&&(_0x1a8b83=_0x17349f['is']('element','$text')?_0x17349f['getAttribute']('vid')+0x1:_0x17349f['getAttribute']('vid_end')+0x1);}else{for(let _0x4a522a=0x0;_0x4a522a<_0x2b4bdb['offsetSize'];_0x4a522a++)_0xc84167['push'](new ut('$text',{'vid':null===_0x1a8b83?this['_revisionId']++:_0x1a8b83++}));}if(_0x4f252d['is']('documentFragment')){const _0x528e83=F(_0x4f252d['rootName']);return _0x528e83['_insertChild'](0x0,_0xc84167),_0x528e83;}return _0x429e40['_setAttribute']('vid_end',null===_0x1a8b83?this['_revisionId']++:_0x1a8b83++),_0x429e40['_insertChild'](0x0,_0xc84167),_0x429e40;}['_calculateMetaData'](_0x5d745f,_0x103740,_0x2b6a11){this['_reset']();const {roots:_0x980c55,markers:_0x8fc7bd,rootsAttributes:_0xca1b8c}=this['_savedMetaData']['get'](_0x5d745f);this['_baseRoots']=new Map(_0x980c55),this['_baseRootsAttributes']=new Map(_0x7494e5(_0xca1b8c));for(const [_0x3934ea,_0x2798d7]of this['_baseRoots'])if('$graveyard'!==_0x3934ea&&(this['_diffRoots']['set'](_0x3934ea,T(_0x2798d7)),this['_diffRootsAttributes']=new Map(_0x7494e5(_0xca1b8c)),_0x2b6a11)){const _0x487970=this['_revisionId'];this['_idsRoots']['set'](_0x3934ea,this['_makeIdsRoot'](_0x2798d7)),this['_baseIdsRoots']['set'](_0x3934ea,this['_makeIdsRoot'](_0x2798d7,_0x487970));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x2b6a11&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x53332a,_0x3a7f35]of _0x8fc7bd){const _0x484d8d=this['_baseRoots']['get'](_0x3a7f35['rootName']),_0x291da1=this['_diffRoots']['get'](_0x3a7f35['rootName']),_0x3b4969=new ft(this['_fixPosition'](_0x3a7f35['start'],_0x484d8d),this['_fixPosition'](_0x3a7f35['end'],_0x484d8d)),_0x5ad8aa=this['_fixRange'](_0x3b4969,_0x291da1);_0x484d8d['markers']['set'](_0x53332a,_0x3b4969),this['_markers']['set'](_0x53332a,_0x5ad8aa);}this['_applyOperations'](_0x5d745f,_0x103740,_0x2b6a11);}['_applyOperations'](_0x35c45d,_0x219011,_0x4290db){for(const _0x31ac3e of this['source']['getOperations'](_0x35c45d,_0x219011))this['_handleOperation'](_0x31ac3e,_0x4290db);for(const _0x40b590 of this['_diffRoots']['values']())_0x40b590['markers']['clear']();for(const [_0x359b5d,_0x468c3e]of this['_markers']){this['_diffRoots']['get'](_0x468c3e['root']['rootName'])['markers']['set'](_0x359b5d,_0x468c3e['clone']());}const _0x4a03d1=new Map(),_0x580c1a=new Map();for(const [_0x1ceda9,_0x208b5f]of this['_diffRoots'])_0x4a03d1['set'](_0x1ceda9,T(_0x208b5f)),_0x580c1a['set'](_0x1ceda9,this['_diffRootsAttributes']['get'](_0x1ceda9));this['_saveMetaData'](_0x219011,_0x4a03d1,this['_markers'],_0x580c1a);}['_getPreviousFrom'](_0x1c1a2e){const _0x771ea=Array['from'](this['_savedMetaData']['keys']());_0x771ea['sort']((_0x208d72,_0x28c998)=>_0x208d72-_0x28c998),_0x771ea['reverse']();for(const _0x1b5c75 of _0x771ea)if(_0x1b5c75<_0x1c1a2e)return _0x1b5c75;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x160bc4,_0x3798f1){const _0x570565=Array['from'](_0x3798f1['markers'])['map'](([_0x129032,_0x59a208])=>[_0x129032,this['_fixRange'](_0x59a208,_0x160bc4)]);_0x160bc4['markers']=new Map(_0x570565);}['_transformMarkers'](_0x48ad88){for(const _0x2be322 of this['_markers']['values']()){const _0x17b47a=_0x2be322['getTransformedByOperation'](_0x48ad88),_0x40ca1e=ft['_createFromRanges'](_0x17b47a);_0x2be322['start']=_0x40ca1e['start'],_0x2be322['end']=_0x40ca1e['end'];}}['_handleOperation'](_0x36d24b,_0x2eb3b9){if('addRoot'!=_0x36d24b['type']&&'detachRoot'!=_0x36d24b['type']){if('insert'==_0x36d24b['type']){const _0x4178d3=_0x36d24b['position']['root']['rootName'];this['_diffRoots']['has'](_0x4178d3)||(this['_diffRoots']['set'](_0x4178d3,F(_0x4178d3,!0x0)),this['_diffRootsAttributes']['set'](_0x4178d3,{}),_0x2eb3b9&&this['_idsRoots']['set'](_0x4178d3,F(_0x4178d3,!0x0)));}else{if('addRootAttribute'==_0x36d24b['type']||'removeRootAttribute'==_0x36d24b['type']||'changeRootAttribute'==_0x36d24b['type'])return void this['_handleRootAttributeOperation'](_0x36d24b);'marker'==_0x36d24b['type']&&this['_handleMarkerOperation'](_0x36d24b);}if('marker'!==_0x36d24b['type']){const _0x33129a=this['_cloneOperation'](_0x36d24b,this['_diffRoots']);_0x33129a['_execute'](),this['_transformMarkers'](_0x33129a);}if(_0x2eb3b9)switch(_0x36d24b['type']){case'insert':this['_handleInsertOperation'](_0x36d24b);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x36d24b);break;case'merge':this['_handleMergeOperation'](_0x36d24b);break;case'split':this['_handleSplitOperation'](_0x36d24b);}}else this['_handleRootOperation'](_0x36d24b,_0x2eb3b9);}['_cloneOperation'](_0x44340c,_0x2f5223){const _0x4cdd59=_0x44340c['clone']();return _0x4cdd59['_authorId']=_0x44340c['_authorId'],this['_fixOperation'](_0x4cdd59,_0x2f5223),_0x4cdd59;}['_getBaseVids'](_0x7ad7a7){return _0x7ad7a7['map'](_0x716531=>{const _0x375f89=this['_getVidAttributeName'](_0x716531);return Number(_0x716531['item']['getAttribute'](_0x375f89));});}['_generateTape'](_0x22943e,_0x537dc9){if(_0x22943e['is']('element','$text'))_0x537dc9['push']({'item':_0x22943e,'type':'text'});else{_0x22943e['is']('element')&&_0x537dc9['push']({'item':_0x22943e,'type':'elementStart'});for(const _0x284378 of _0x22943e['getChildren']())this['_generateTape'](_0x284378,_0x537dc9);_0x22943e['is']('element')&&_0x537dc9['push']({'item':_0x22943e,'type':'elementEnd'});}return _0x537dc9;}['_getState'](){const _0x37b38d=new Map(this['_touched']),_0x4f1196=new Map(_0x37b38d),_0x55ebc5=new Map(),_0x26a2e7={'insertions':{},'deletions':{}},_0x1e68ad={'insertions':{},'deletions':{}},_0x2d4b36=new Map(),_0x1467ee=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x1467ee['delete']('$graveyard');for(const _0x187d84 of _0x1467ee){const _0x171e3e=this['_diffRoots']['get'](_0x187d84)||F(_0x187d84,!0x1),_0x33ed05=this['_baseRoots']['get'](_0x187d84)||F(_0x187d84,!0x1);_0x171e3e['isAttached']()||_0x33ed05['isAttached']()?(_0x26a2e7['insertions'][_0x187d84]=T(_0x171e3e),_0x26a2e7['deletions'][_0x187d84]=T(_0x33ed05),this['_copyMarkers'](_0x26a2e7['deletions'][_0x187d84],_0x33ed05),this['_copyMarkers'](_0x26a2e7['insertions'][_0x187d84],_0x171e3e),_0x1e68ad['insertions'][_0x187d84]=this['_generateTape'](this['_idsRoots']['get'](_0x187d84),[]),_0x1e68ad['deletions'][_0x187d84]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x187d84)||F(_0x187d84,!0x1),[])):_0x1467ee['delete'](_0x187d84);}for(const _0x3a62bd of _0x1467ee){const _0x1999f6=_0x1e68ad['insertions'][_0x3a62bd];for(const _0x10307b of _0x1999f6){const _0x32f113=this['_getVidAttributeName'](_0x10307b),_0x29eb4f=_0x10307b['item']['getAttribute'](_0x32f113);_0x4f1196['delete'](_0x29eb4f),_0x29eb4f>=this['_startingRevisionId']&&_0x55ebc5['set'](_0x29eb4f,_0x37b38d['get'](_0x29eb4f));}}for(const _0x1071b2 of _0x1467ee){const _0x16d755=_0x1e68ad['insertions'][_0x1071b2],_0x8e5904=this['_getBaseVids'](_0x1e68ad['deletions'][_0x1071b2]);let _0x3ed0bf=0x0;for(const _0x22bb30 of _0x16d755){const _0x45fe24=this['_getVidAttributeName'](_0x22bb30),_0x3835a8=_0x22bb30['item']['getAttribute'](_0x45fe24);if(!_0x55ebc5['has'](_0x3835a8)&&!_0x2d4b36['has'](_0x3835a8)){if(_0x4f1196['has'](_0x3835a8))_0x3ed0bf++;else{if(_0x3835a8!=_0x8e5904[_0x3ed0bf]){const _0x3b6305=_0x37b38d['get'](_0x3835a8)||_0x37b38d['get'](_0x8e5904[_0x3ed0bf]);for(;_0x3835a8!=_0x8e5904[_0x3ed0bf];)_0x4f1196['has'](_0x8e5904[_0x3ed0bf])||(_0x2d4b36['set'](_0x8e5904[_0x3ed0bf],_0x3b6305),_0x37b38d['set'](_0x8e5904[_0x3ed0bf],_0x3b6305)),_0x3ed0bf++;}_0x3ed0bf++;}}}}for(const _0x4eb32b of _0x1467ee){const _0xe46e52=_0x1e68ad['insertions'][_0x4eb32b];for(const _0x5d2ac8 of _0xe46e52){const _0x35f8c1=this['_getVidAttributeName'](_0x5d2ac8),_0x3eafe8=_0x5d2ac8['item']['getAttribute'](_0x35f8c1);if(_0x2d4b36['has'](_0x3eafe8)){const _0x59e292=_0x2d4b36['get'](_0x3eafe8);_0x4f1196['has'](_0x3eafe8)||_0x4f1196['set'](_0x3eafe8,{..._0x59e292}),_0x55ebc5['set'](_0x3eafe8,{..._0x59e292});}}}for(const _0x38ae2c of _0x4f1196['keys']())_0x38ae2c>=this['_startingRevisionId']&&_0x4f1196['delete'](_0x38ae2c);const _0x5b244e=new Map();for(const _0x42d077 of _0x1467ee){let _0x192e69=_0x1e68ad['insertions'][_0x42d077];for(const _0x37e594 of _0x192e69)if(_0x37e594['item']['is']('element','tableCell')){const _0x5d77ae=this['_getVidAttributeName'](_0x37e594),_0x21fa94=_0x37e594['item']['getAttribute'](_0x5d77ae);if(_0x55ebc5['has'](_0x21fa94)){const _0x25b59a=_0x37e594['item']['parent']['parent']['getAttribute']('vid_start'),_0x4aa4a3=_0x5b244e['get'](_0x25b59a)||new Set();_0x4aa4a3['add'](_0x55ebc5['get'](_0x21fa94)['userId']),_0x5b244e['set'](_0x25b59a,_0x4aa4a3);}}_0x192e69=_0x1e68ad['deletions'][_0x42d077];for(const _0x577997 of _0x192e69)if(_0x577997['item']['is']('element','tableCell')){const _0xf6a1c3=this['_getVidAttributeName'](_0x577997),_0x6e5c85=_0x577997['item']['getAttribute'](_0xf6a1c3);if(_0x4f1196['has'](_0x6e5c85)){const _0x5e03c3=_0x577997['item']['parent']['parent']['getAttribute']('vid_start'),_0x1344db=_0x5b244e['get'](_0x5e03c3)||new Set();_0x1344db['add'](_0x4f1196['get'](_0x6e5c85)['userId']),_0x5b244e['set'](_0x5e03c3,_0x1344db);}}for(const _0x109f69 of _0x5b244e['keys']())(_0x55ebc5['has'](_0x109f69)||_0x4f1196['has'](_0x109f69))&&_0x5b244e['delete'](_0x109f69);}for(const _0x5bffbb of _0x1467ee){const _0x1193dc=_0x1e68ad['insertions'][_0x5bffbb];let _0x2da643=null,_0x58b06d=null;for(const _0x244bbe of _0x1193dc){const _0x396c8c=this['_getVidAttributeName'](_0x244bbe),_0x2d98eb=_0x244bbe['item']['getAttribute'](_0x396c8c),_0x2c7953=_0x5b244e['get'](_0x2d98eb);_0x2c7953&&'elementStart'==_0x244bbe['type']&&(_0x2da643=Array['from'](_0x2c7953)[0x0],_0x58b06d=_0x244bbe['item']['getAttribute']('vid_end')),_0x2da643&&(_0x4f1196['set'](_0x2d98eb,{'userId':_0x2da643}),_0x55ebc5['set'](_0x2d98eb,{'userId':_0x2da643})),_0x2d98eb==_0x58b06d&&(_0x2da643=null,_0x58b06d=null);}}const _0x42d1ee={},_0x3a5f29=new Set();for(const _0x5f3dcf of _0x1467ee){const _0x32c934=_0x26a2e7['deletions'][_0x5f3dcf],_0x2103c4=_0x26a2e7['insertions'][_0x5f3dcf];for(const {userId:_0x496fa9}of this['_touchedMarkers']['values']())null!==_0x496fa9&&_0x3a5f29['add'](_0x496fa9);for(const {userId:_0x2800a0}of this['_touchedRoots']['values']())null!==_0x2800a0&&_0x3a5f29['add'](_0x2800a0);this['_markChanges'](_0x2103c4,_0x1e68ad['insertions'][_0x5f3dcf],_0x55ebc5,'insertion',_0x3a5f29),this['_markChanges'](_0x32c934,_0x1e68ad['deletions'][_0x5f3dcf],_0x4f1196,'deletion',_0x3a5f29),_0x42d1ee[_0x5f3dcf]={'insertions':this['_prepareViewToSave'](_0x2103c4),'deletions':this['_prepareViewToSave'](_0x32c934),'attachChange':this['_touchedRoots']['get'](_0x5f3dcf)||null,'attributesBefore':_0x7494e5(this['_baseRootsAttributes']['get'](_0x5f3dcf))||{},'attributesAfter':_0x7494e5(this['_diffRootsAttributes']['get'](_0x5f3dcf))};}return{'diffData':_0x42d1ee,'authorsIds':Array['from'](_0x3a5f29)};}['_processRootBeforeSave'](_0x3bf7b4){for(const [,_0xc5aca8]of _0x3bf7b4['markers']){const _0x2a815a=_0xc5aca8['start']['getAncestors']()['filter'](_0x1c2fa8=>'tableCell'==_0x1c2fa8['name']);for(const _0xcc47f4 of _0x2a815a)0x1==_0xcc47f4['childCount']&&_0xcc47f4['getChild'](0x0)['is']('element','paragraph')&&_0xcc47f4['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x469fd3){this['_processRootBeforeSave'](_0x469fd3);const _0x265f06=this['editor']['data']['toView'](_0x469fd3,{}),_0x5b7336=Array['from'](_0x265f06['getChildren']())['map'](_0x388518=>this['_getViewJson'](_0x388518));return JSON['stringify'](_0x5b7336);}['_getViewJson'](_0x1b7c21){if(_0x1b7c21['is']('$text'))return _0x1b7c21['data'];{const _0xc415c2=_0x1b7c21;return{'type':Object['keys'](E)['find'](_0x145eac=>_0x1b7c21 instanceof E[_0x145eac]),'name':_0xc415c2['name'],'attributes':Array['from'](_0xc415c2['getAttributes']()),'children':Array['from'](_0xc415c2['getChildren']())['map'](_0x131fcd=>this['_getViewJson'](_0x131fcd))};}}['_markChanges'](_0x4be8eb,_0x280fdf,_0x141101,_0x3fd663,_0x198319){let _0x12c655=null,_0x546ba5=null,_0x3c6451=0x0;const _0x14cba9=this['editor']['model'];for(let _0x7f6c61=0x0;_0x7f6c61<_0x280fdf['length'];_0x7f6c61++){const _0x162e9e=this['_getVidAttributeName'](_0x280fdf[_0x7f6c61]),_0x459864=_0x280fdf[_0x7f6c61]['item']['getAttribute'](_0x162e9e),_0x76d257=_0x141101['get'](_0x459864),_0x28df9f=_0x7f6c61==_0x280fdf['length']-0x1;(!_0x12c655&&_0x76d257&&(_0x12c655=_0x76d257,_0x546ba5=_0x280fdf[_0x7f6c61]),_0x12c655&&(!_0x76d257||_0x76d257['userId']!=_0x12c655['userId']))&&(_0x251de2(_0x76d257,B(_0x546ba5,_0x4be8eb,_0x14cba9),B(_0x280fdf[_0x7f6c61],_0x4be8eb,_0x14cba9)),_0x12c655=_0x76d257||null,_0x546ba5=_0x76d257?_0x280fdf[_0x7f6c61]:null),_0x12c655&&_0x28df9f&&_0x251de2(_0x76d257,B(_0x546ba5,_0x4be8eb,_0x14cba9),J(_0x280fdf[_0x7f6c61],_0x4be8eb,_0x14cba9));}function _0x251de2(_0x5be0f9,_0x184107,_0x1919c6){const _0x57c235=_0x12c655['userId'],_0x27987e='revision:'+_0x3fd663+':'+_0x57c235+':'+_0x3c6451++,_0x6b6e8c=_0x14cba9['createRange'](_0x184107,_0x1919c6);_0x4be8eb['markers']['set'](_0x27987e,_0x6b6e8c),null!==_0x57c235&&_0x198319['add'](_0x57c235);}}['_getVidAttributeName'](_0x273051){switch(_0x273051['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x8ed2f6,_0x2206a6){_0x8ed2f6['baseVersion']=null;for(const _0x1ed0e0 in _0x8ed2f6){const _0x4bd9d2=_0x8ed2f6[_0x1ed0e0];if(_0x4bd9d2 instanceof vt){const _0x29b636=_0x2206a6['get'](_0x4bd9d2['root']['rootName']);_0x8ed2f6[_0x1ed0e0]=this['_fixPosition'](_0x4bd9d2,_0x29b636);}if(_0x4bd9d2 instanceof ft){const _0x3d4644=_0x2206a6['get'](_0x4bd9d2['root']['rootName']);_0x8ed2f6[_0x1ed0e0]=this['_fixRange'](_0x4bd9d2,_0x3d4644);}'root'===_0x1ed0e0&&(_0x8ed2f6['root']=_0x2206a6['get'](_0x8ed2f6['root']['rootName']));}}['_fixRange'](_0x4b45ab,_0x4f75d7){return this['editor']['model']['createRange'](this['_fixPosition'](_0x4b45ab['start'],_0x4f75d7),this['_fixPosition'](_0x4b45ab['end'],_0x4f75d7));}['_fixPosition'](_0x86c923,_0x382a96){return this['editor']['model']['createPositionFromPath'](_0x382a96,_0x86c923['path'],_0x86c923['stickiness']);}['_handleInsertOperation'](_0x1af2c2){const _0x41e3ba=this['_idsRoots']['get'](_0x1af2c2['position']['root']['rootName']),_0x856675=this['_fixPosition'](_0x1af2c2['position'],_0x41e3ba),_0x2cdecb=null===_0x1af2c2['_authorId']?null:_0x1af2c2['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x41e100=_0x856675['parent'],_0x4b7be0=this['_revisionId'],_0x27c83d=[];for(const _0x42dd15 of _0x1af2c2['nodes'])if(_0x42dd15['is']('element'))_0x27c83d['push'](this['_makeIdsRoot'](_0x42dd15));else{for(let _0x27d904=0x0;_0x27d904<_0x42dd15['offsetSize'];_0x27d904++)_0x27c83d['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x3d4aef=this['_revisionId'];for(let _0x4d20e6=_0x4b7be0;_0x4d20e6<_0x3d4aef;_0x4d20e6++)this['_touched']['set'](_0x4d20e6,{'userId':_0x2cdecb});_0x41e100['_insertChild'](_0x856675['offset'],_0x27c83d);}['_handleMoveOperation'](_0x2f2aa9){(_0x2f2aa9=this['_cloneOperation'](_0x2f2aa9,this['_idsRoots']))['_execute']();const _0x340c53=null===_0x2f2aa9['_authorId']?null:_0x2f2aa9['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3076f0=_0x2f2aa9['getMovedRangeStart'](),_0x2e68b4=_0x3076f0['parent'],_0x4c758f=_0x3076f0['offset'];!function _0x2af333(_0x14bb82,_0x5e51af,_0x13dfb8,_0x10882c){for(let _0x38232f=_0x13dfb8;_0x38232f<_0x10882c;_0x38232f++){const _0x2eab43=_0x5e51af['getChild'](_0x38232f);_0x2eab43['is']('element','$text')?_0x14bb82['set'](_0x2eab43['getAttribute']('vid'),{'userId':_0x340c53}):(_0x14bb82['set'](_0x2eab43['getAttribute']('vid_start'),{'userId':_0x340c53}),_0x2af333(_0x14bb82,_0x2eab43,0x0,_0x2eab43['childCount']),_0x14bb82['set'](_0x2eab43['getAttribute']('vid_end'),{'userId':_0x340c53}));}}(this['_touched'],_0x2e68b4,_0x4c758f,_0x4c758f+_0x2f2aa9['howMany']);}['_handleMergeOperation'](_0x234b60){const _0x39f723=null===(_0x234b60=this['_cloneOperation'](_0x234b60,this['_idsRoots']))['_authorId']?null:_0x234b60['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x28c4a2=_0x234b60['targetPosition']['parent'],_0x421729=_0x234b60['sourcePosition']['parent'],_0x322d5e=_0x28c4a2['getAttribute']('vid_end'),_0x49ae72=_0x421729['getAttribute']('vid_start');_0x28c4a2['_setAttribute']('vid_end',_0x421729['getAttribute']('vid_end')),_0x421729['_setAttribute']('vid_end',_0x322d5e),this['_touched']['set'](_0x49ae72,{'userId':_0x39f723}),this['_touched']['set'](_0x322d5e,{'userId':_0x39f723}),_0x234b60['_execute']();}['_handleSplitOperation'](_0x486fcb){const _0x5577c0=null===(_0x486fcb=this['_cloneOperation'](_0x486fcb,this['_idsRoots']))['_authorId']?null:_0x486fcb['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x467ea3=_0x486fcb['graveyardPosition'],_0x3e3e22=_0x486fcb['splitPosition']['parent'];_0x486fcb['_execute']();const _0x215e4f=_0x3e3e22['getAttribute']('vid_end'),_0x3848db=_0x486fcb['insertionPosition']['nodeAfter'];if(_0x467ea3){const _0x414d69=_0x3848db['getAttribute']('vid_end'),_0x349fa9=_0x3e3e22['getAttribute']('vid_end');_0x3e3e22['_setAttribute']('vid_end',_0x414d69),_0x3848db['_setAttribute']('vid_end',_0x349fa9),this['_touched']['set'](_0x3e3e22['getAttribute']('vid_end'),{'userId':_0x5577c0}),this['_touched']['set'](_0x3848db['getAttribute']('vid_start'),{'userId':_0x5577c0});}else{const _0x28fe7b=this['_revisionId']++,_0x3673fd=this['_revisionId']++;_0x3e3e22['_setAttribute']('vid_end',_0x28fe7b),_0x3848db['_setAttribute']('vid_start',_0x3673fd),_0x3848db['_setAttribute']('vid_end',_0x215e4f),this['_touched']['set'](_0x28fe7b,{'userId':_0x5577c0}),this['_touched']['set'](_0x3673fd,{'userId':_0x5577c0});}}['_handleMarkerOperation'](_0x5a82d4){if(!_0x5a82d4['affectsData'])return;const _0x3945f2=(_0x5a82d4=this['_cloneOperation'](_0x5a82d4,this['_diffRoots']))['oldRange']?_0x5a82d4['oldRange']['root']:null,_0x128e4f=_0x5a82d4['newRange']?_0x5a82d4['newRange']['root']:null;_0x3945f2&&this['_markers']['delete'](_0x5a82d4['name']),_0x128e4f&&this['_markers']['set'](_0x5a82d4['name'],_0x5a82d4['newRange']['clone']());const _0x4a61e5=null===_0x5a82d4['_authorId']?null:_0x5a82d4['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x51c9b7=_0x5a82d4['name'];if(!this['_touchedMarkers']['has'](_0x51c9b7))return void this['_touchedMarkers']['set'](_0x51c9b7,{'range':_0x5a82d4['oldRange'],'userId':_0x4a61e5});const _0x29e483=this['_touchedMarkers']['get'](_0x51c9b7),_0x4afc62=_0x29e483['range'],_0x4f54fb=_0x5a82d4['newRange'];null==_0x4afc62&&null==_0x4f54fb||_0x4afc62&&_0x4f54fb&&_0x4afc62['isEqual'](_0x4f54fb)?this['_touchedMarkers']['delete'](_0x5a82d4['name']):_0x29e483['userId']=_0x4a61e5;}['_handleRootOperation'](_0x1e09cb,_0x2f6c54){this['_diffRoots']['has'](_0x1e09cb['rootName'])?this['_diffRoots']['get'](_0x1e09cb['rootName'])['_isAttached']=_0x1e09cb['isAdd']:(this['_diffRoots']['set'](_0x1e09cb['rootName'],F(_0x1e09cb['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x1e09cb['rootName'],{}),_0x2f6c54&&this['_idsRoots']['set'](_0x1e09cb['rootName'],F(_0x1e09cb['rootName'],!0x0)));const _0x22681b=null===_0x1e09cb['_authorId']?null:_0x1e09cb['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4d1ab3=this['_touchedRoots']['get'](_0x1e09cb['rootName']);_0x4d1ab3&&_0x4d1ab3['userId']===_0x22681b?this['_touchedRoots']['delete'](_0x1e09cb['rootName']):this['_touchedRoots']['set'](_0x1e09cb['rootName'],{'userId':_0x22681b,'isAttached':_0x1e09cb['isAdd']});}['_handleRootAttributeOperation'](_0x3fe07d){const _0x3b2322=this['_diffRootsAttributes']['get'](_0x3fe07d['root']['rootName']);null===_0x3fe07d['newValue']?delete _0x3b2322[_0x3fe07d['key']]:_0x3b2322[_0x3fe07d['key']]=_0x3fe07d['newValue'];}}function T(_0x61015a){const _0x368d35=F(_0x61015a['rootName'],_0x61015a['isAttached']());for(const _0x3acf8d of _0x61015a['getChildren']()){const _0x5aa493=_0x3acf8d['_clone'](!0x0);_0x368d35['_appendChild'](_0x5aa493);}return _0x368d35;}function F(_0x2ca2b2,_0xa086cd=!0x0){const _0x3afb59=new gt();return _0x3afb59['rootName']=_0x2ca2b2,_0x3afb59['_isAttached']=_0xa086cd,_0x3afb59['isAttached']=()=>_0x3afb59['_isAttached'],_0x3afb59;}function B(_0x597610,_0x48593a,_0x4331c0){const _0x4a04dd='elementEnd'==_0x597610['type']?_0x4331c0['createPositionAt'](_0x597610['item'],'end'):_0x4331c0['createPositionBefore'](_0x597610['item']);return _0x4331c0['createPositionFromPath'](_0x48593a,_0x4a04dd['path'],_0x4a04dd['stickiness']);}function J(_0x2ccbdb,_0x45f8b6,_0x39534c){const _0x336e6d='elementStart'==_0x2ccbdb['type']?_0x39534c['createPositionAt'](_0x2ccbdb['item'],0x0):_0x39534c['createPositionAfter'](_0x2ccbdb['item']);return _0x39534c['createPositionFromPath'](_0x45f8b6,_0x336e6d['path'],_0x336e6d['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x31e7c1,_0x1a2bb4){super(_0x31e7c1),this['focusTracker']=new _0x99741a(),this['keystrokes']=new _0x243516(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x1a2bb4),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x407e11(this);}['render'](){super['render'](),_0x3c3987({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x24f07d=_0xcb9831=>_0xcb9831['stopPropagation']();this['keystrokes']['set']('arrowright',_0x24f07d),this['keystrokes']['set']('arrowleft',_0x24f07d),this['keystrokes']['set']('arrowup',_0x24f07d),this['keystrokes']['set']('arrowdown',_0x24f07d);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x366929){this['revisionNameInputView']['fieldView']['element']['value']=_0x366929['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x57281d){const _0x2e3ba6=new _0x4f90d2(this['locale'],_0x1a5665),_0x464865=_0x2e3ba6['fieldView'];_0x464865['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x1bd404=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x57281d&&(_0x1bd404+='\x20('+m(this['locale'],'optional')+')'),(_0x2e3ba6['label']=_0x1bd404,_0x464865['on']('input',()=>{this['revisionNameInputValue']=_0x464865['element']['value']['trim']();}),_0x2e3ba6);}}class f extends _0x657f6f{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x34895c=this['editor'],_0x1bea14=_0x34895c['plugins']['get']('RevisionTracker');_0x34895c['ui']['componentFactory']['add']('revisionHistory',_0xffd878=>{const _0x1ee0d6=_0xabbbe1(_0xffd878),_0x316072=_0x1ee0d6['panelView']['children'],_0x178dfe=new _0x2f8ba0(_0xffd878),_0x401057=new _0x493811(_0xffd878),_0x3eabb5=new te(_0xffd878),_0x19f386=new _0x493811(_0xffd878),_0x29726b=new te(_0xffd878);return _0x1ee0d6['bind']('isEnabled')['to'](_0x1bea14,'isReady',_0x1bea14,'isEnabled',_0x34895c,'isReadOnly',(_0x5bb957,_0x59374f,_0x466a6b)=>_0x5bb957&&_0x59374f&&!_0x466a6b),_0x1ee0d6['buttonView']['set']({'icon':_0x3f127c,'label':m(_0xffd878,'Revision\x20history'),'tooltip':!0x0}),_0x3eabb5['set']({'label':m(_0xffd878,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x3eabb5['bind']('isEnabled')['to'](_0x1bea14,'isReady',_0x1bea14,'isEnabled',_0x34895c,'isReadOnly',(_0x96ab80,_0x3efa1a,_0x551a3a)=>_0x96ab80&&_0x3efa1a&&!_0x551a3a),_0x3eabb5['on']('execute',()=>this['_showDialog']()),_0x29726b['set']({'label':m(_0xffd878,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x29726b['bind']('isEnabled')['to'](_0x1bea14,'isReady',_0x34895c,'isReadOnly',(_0x50440e,_0x4d7a93)=>_0x50440e&&!_0x4d7a93),_0x29726b['on']('execute',()=>{_0x34895c['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x1ee0d6['isOpen']=!0x1,_0x34895c['editing']['view']['focus']();}),_0x401057['children']['add'](_0x3eabb5),_0x19f386['children']['add'](_0x29726b),_0x178dfe['role']='menu',_0x178dfe['items']['addMany']([_0x401057,_0x19f386]),_0x316072['add'](_0x178dfe),_0x1ee0d6;}),_0x34895c['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x13ba25=this['editor'],_0x49d624=_0x13ba25['locale'],_0xae0ec7=new _0x2f28bb(_0x49d624),_0x540f90=new _0x3ed85c(_0x49d624);_0xae0ec7['buttonView']['set']({'icon':_0x3f127c,'label':m(_0x49d624,'Revision\x20history')});const _0x1ff0af=new _0x8bb199(_0x49d624,_0xae0ec7),_0x15016e=new _0x4160e3(_0x49d624);_0x15016e['set']({'label':m(_0x49d624,'Save\x20current\x20revision')}),_0x15016e['delegate']('execute')['to'](_0xae0ec7),_0x15016e['on']('execute',()=>{this['_showDialog']();}),_0x1ff0af['children']['add'](_0x15016e),_0x540f90['items']['add'](_0x1ff0af);const _0x1ce26d=new _0x8bb199(_0x49d624,_0xae0ec7),_0x4b4a77=new _0x4160e3(_0x49d624);return _0x4b4a77['set']({'label':m(_0x49d624,'Open\x20revision\x20history')}),_0x4b4a77['delegate']('execute')['to'](_0xae0ec7),_0x4b4a77['on']('execute',()=>{_0x13ba25['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x1ce26d['children']['add'](_0x4b4a77),_0x540f90['items']['add'](_0x1ce26d),_0xae0ec7['panelView']['children']['add'](_0x540f90),_0xae0ec7;}['_showDialog'](){const _0x134ccc=this['editor'],_0x2d10af=_0x134ccc['locale'],_0x279269=_0x134ccc['plugins']['get']('Dialog'),_0x32971f=_0x134ccc['plugins']['get']('RevisionTracker');function _0x5cf6c0(_0x546c8f){_0x134ccc['config']['get']('revisionHistory.requireRevisionName')&&''===_0x546c8f['revisionName']?_0x546c8f['revisionNameInputView']['errorText']=m(_0x2d10af,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x134ccc['plugins']['get'](u)['saveRevision']({'name':_0x546c8f['revisionName']}),_0x279269['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x5cf6c0(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x279269['show']({'id':'revisionSave','title':m(_0x2d10af,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x134ccc['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x279269['hide']()},{'label':m(_0x134ccc['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x4d9778){_0x4d9778['bind']('isEnabled')['to'](_0x32971f,'isReady',_0x32971f,'isEnabled',_0x134ccc,'isReadOnly',(_0x16778f,_0x364837,_0x561d6d)=>_0x16778f&&_0x364837&&!_0x561d6d);},'onExecute':()=>_0x5cf6c0(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0xbd2c90=this['editor'],_0x5af08e=_0xbd2c90['locale'];this['_saveRevisionFormView']=new hs(_0x5af08e,_0xbd2c90['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends ts{['changeId'];['_model'];constructor(_0x3251fe,_0x365a97){super(_0x3251fe),this['_model']=_0x365a97,this['changeId']=_0x365a97['id'];const _0x33554e=this['bindTemplate'],_0x24dbd3=m(_0x3251fe,_0x365a97['data']['isSuggestion']?'Suggested\x20by':'add'==_0x365a97['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x365a97['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x33554e['to']('type',_0x4aaaad=>'ck-revision-change__'+_0x4aaaad)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x24dbd3}]},{'text':'\x20'+_0x365a97['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x40dcb4(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x5f39a1){super(),this['id']=_0x5f39a1['id']||_0x1916c0(),this['author']=_0x5f39a1['author'],this['type']=_0x5f39a1['type'],this['data']=_0x5f39a1['data']||{},this['rootName']=_0x5f39a1['rootName'],this['set']('createdAt',_0x5f39a1['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(_0x1207b0,_0x32d019){this['newRevisionId']=_0x1207b0,this['oldRevisionId']=_0x32d019,this['changes']=new _0x3c6e40();}['_setChanges'](_0x29424d){for(const _0xfc22b0 of _0x29424d)this['changes']['add'](_0xfc22b0);}}const Y={'c':_0x1523ca,'a':_0x287f2b,'e':_0x24a98b,'r':_0x333e25,'u':_0x486d16};class d extends _0x657f6f{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x54c8db,_0x431a50,j];}constructor(_0x5c5b68){super(_0x5c5b68),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x15d391,_0x175a61,_0xd664c4)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x198557=>{for(const _0x5c4db4 of this['editor']['editing']['view']['document']['roots'])_0xd664c4?_0x198557['removeClass']('ck-editor__editable__overlay',_0x5c4db4):_0x198557['addClass']('ck-editor__editable__overlay',_0x5c4db4);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x495545=>null!==_0x495545),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x4aa6ed,_0xa7ef69,_0x565b89)=>_0x4aa6ed&&_0x565b89?_0xa7ef69['changes']['getIndex'](_0x565b89):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x4bb494,_0x33418f)=>_0x4bb494?_0x33418f['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x431a50);}['init'](){const _0x562d86=this['editor'],_0x46bea7=new _t(_0x562d86,{'direction':'backward'}),_0x1db7c9=new _t(_0x562d86,{'direction':'forward'});(_0x562d86['commands']['add']('showPreviousChange',_0x46bea7),_0x562d86['commands']['add']('showNextChange',_0x1db7c9),_0x562d86['commands']['add']('restoreRevision',new wt(_0x562d86)),this['on']('change:numberOfChanges',()=>{_0x46bea7['refresh'](),_0x1db7c9['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x562d86['enableReadOnlyMode']('revision-viewer'),_0x562d86['plugins']['has']('WidgetToolbarRepository'))&&_0x562d86['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x163a52){await this['loadRevisionData'](_0x163a52);const _0x35288b={};for(const _0x21fc3c in _0x163a52['diffData']){if(_0x163a52['diffData'][_0x21fc3c]['attachChange']&&!_0x163a52['diffData'][_0x21fc3c]['attachChange']['isAttached'])continue;const _0x568894=this['_removeRevisionMarkers'](JSON['parse'](_0x163a52['diffData'][_0x21fc3c]['insertions'])),_0xf977e6=this['editor']['editing']['view']['document'],_0x36ce24=new _0x42c523(_0xf977e6,_0x568894['map'](_0x2372b9=>this['_getViewObj'](_0x2372b9)));this['editor']['data']['processor']['useFillerType']('marked'),_0x35288b[_0x21fc3c]=this['editor']['data']['processor']['toData'](_0x36ce24),this['editor']['data']['processor']['useFillerType']('default');}return _0x35288b;}async['getRevisionRootsAttributes'](_0x2d5e68){await this['loadRevisionData'](_0x2d5e68);const _0x2697c1={};for(const _0x14ed57 in _0x2d5e68['diffData'])_0x2d5e68['diffData'][_0x14ed57]['attachChange']&&!_0x2d5e68['diffData'][_0x14ed57]['attachChange']['isAttached']||(_0x2697c1[_0x14ed57]=_0x2d5e68['diffData'][_0x14ed57]['attributesAfter']||{});return _0x2697c1;}['_removeRevisionMarkers'](_0x45a696){return(_0x45a696=_0x45a696['filter'](_0x33af7c=>!_0x33af7c['name']||'revision-start'!==_0x33af7c['name']&&'revision-end'!==_0x33af7c['name']))['forEach'](_0x3245b8=>{'string'!=typeof _0x3245b8&&(_0x3245b8['children']=this['_removeRevisionMarkers'](_0x3245b8['children']),_0x3245b8['attributes']=_0x3245b8['attributes']['filter'](_0x2c0138=>!_0x2c0138[0x0]['startsWith']('data-revision-')));}),_0x45a696;}async['compare'](_0x160d5b,_0x115ea7,_0x55b3bf=!0x1){if(!this['isEnabled'])return;const _0x5275d9=this['diff'],_0x385762=this['repository'],_0x142f02='string'==typeof _0x160d5b?_0x385762['getRevision'](_0x160d5b):_0x160d5b,_0x411fb9='string'==typeof _0x115ea7?_0x385762['getRevision'](_0x115ea7):_0x115ea7,_0x55d32f=_0x142f02['id'],_0x72264f=_0x411fb9?_0x411fb9['id']:null;if(!_0x55b3bf&&this['diff']&&this['diff']['newRevisionId']===_0x55d32f&&this['diff']['oldRevisionId']===_0x72264f)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x55d32f,_0x72264f);const _0x1c8fdf=this['_getRevisionsRange'](_0x142f02,_0x411fb9,!0x0)['map'](_0x2cf2e2=>this['loadRevisionData'](_0x2cf2e2));return _0x1c8fdf['push'](new Promise(_0x3d56ff=>{setTimeout(_0x3d56ff,0x14);})),Promise['all'](_0x1c8fdf)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x3222a2=this['_getDiff'](_0x55d32f,_0x72264f);for(const _0x40162c of _0x3222a2['changes'])this['_changeIdToChange']['set'](_0x40162c['id'],_0x40162c);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x9bac83=>{for(const _0x1036a4 of this['editor']['model']['document']['getRootNames']())_0x9bac83['detachRoot'](_0x1036a4);for(const _0x4e462d of Object['keys'](_0x3222a2['model'])){const _0x19fa0e=_0x9bac83['addRoot'](_0x4e462d);for(const _0x1805e8 of Object['keys'](_0x3222a2['attributes'][_0x4e462d]))_0x9bac83['setAttribute'](_0x1805e8,_0x3222a2['attributes'][_0x4e462d][_0x1805e8],_0x19fa0e);_0x9bac83['insert'](_0x3222a2['model'][_0x4e462d],_0x19fa0e,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x3222a2['changes'])),this['isReady']=!0x0;})['catch'](_0x57e440=>{console['error'](_0x57e440),this['_cleanUp'](),_0x5275d9&&(this['diff']=_0x5275d9),this['isReady']=!0x0;});}['addRevisionData'](_0x20d8b5,_0x481a92){const _0xa0adf5=this['repository']['createRevision'](_0x20d8b5);return _0xa0adf5['on']('_update',(_0x1e1879,_0x4c456e,_0x4fd453)=>_0x481a92(_0x4c456e,_0x4fd453,_0xa0adf5)),this['repository']['addRevision'](_0xa0adf5),_0xa0adf5;}['loadRevisionData'](_0x291fd3){if(!_0x291fd3||_0x291fd3['diffData'])return Promise['resolve']();{const _0x3c866f=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x3c866f,'revisionId':_0x291fd3['id']})['then'](_0x503cbb=>{_0x291fd3['_update']({'diffData':_0x503cbb['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x5132a9=>{for(const _0x3ac5d9 of this['editor']['model']['document']['getRootNames']())_0x5132a9['detachRoot'](_0x3ac5d9);});}['_sortAndFilterDiffChanges'](_0x992f3){const _0x591a4a=[],_0x2c5a35=new Map();for(const _0x18af65 of this['editor']['model']['document']['getRootNames']()){const _0x2527b7=this['editor']['editing']['view']['getDomRoot'](_0x18af65);if(!_0x2527b7)continue;const _0x2b1597=_0x2527b7['getClientRects']()['item'](0x0);_0x2b1597&&(_0x591a4a['push'](_0x18af65),_0x2c5a35['set'](_0x18af65,_0x2b1597));}return _0x591a4a['sort']((_0x14a90f,_0x2b607d)=>{const _0x4babc6=_0x2c5a35['get'](_0x14a90f),_0x13340d=_0x2c5a35['get'](_0x2b607d);return _0x4babc6['y']-_0x13340d['y']||_0x4babc6['x']-_0x13340d['x'];}),(_0x992f3=_0x992f3['filter'](_0x446d64=>_0x591a4a['includes'](_0x446d64['rootName'])))['sort']((_0xaebfc2,_0x330728)=>_0x591a4a['indexOf'](_0xaebfc2['rootName'])-_0x591a4a['indexOf'](_0x330728['rootName'])),_0x992f3;}['_makeTape'](_0x14fd67){const _0x20394f=Array['from'](_0x14fd67['markers'])['filter'](([_0x43167f,_0x404863])=>_0x43167f['startsWith']('revision:')&&!_0x404863['isCollapsed']),_0x24be0f=Array['from'](this['editor']['model']['createRangeIn'](_0x14fd67)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x20394f['length'])for(const _0x462240 of _0x24be0f){const [_0x48d7c8,_0x58857a]=_0x20394f[0x0],[,_0x31cc22,_0x56f7e3]=_0x48d7c8['split'](':');if(_0x58857a['end']['isEqual'](_0x462240['nextPosition'])&&_0x20394f['shift'](),(_0x462240['previousPosition']['isEqual'](_0x58857a['start'])||_0x462240['previousPosition']['isAfter'](_0x58857a['start']))&&('insertion'==_0x31cc22?_0x462240['isAdded']={'userId':_0x56f7e3}:'deletion'==_0x31cc22&&(_0x462240['isRemoved']={'userId':_0x56f7e3})),0x0==_0x20394f['length'])break;}return _0x24be0f;}['_refreshStartEndIndex'](_0x3bde7c){const _0x22a3a1=new Map();for(let _0x315015=0x0;_0x315015<_0x3bde7c['length'];_0x315015++)'text'===_0x3bde7c[_0x315015]['type']?(_0x3bde7c[_0x315015]['item']['startIndex']=_0x315015,_0x3bde7c[_0x315015]['item']['endIndex']=_0x315015):('elementStart'===_0x3bde7c[_0x315015]['type']?_0x3bde7c[_0x315015]['item']['startIndex']=_0x315015:'elementEnd'===_0x3bde7c[_0x315015]['type']&&(_0x3bde7c[_0x315015]['item']['endIndex']=_0x315015),_0x22a3a1['set'](_0x3bde7c[_0x315015]['id'],_0x315015));for(const _0x5e024d of _0x22a3a1['values']())'elementStart'===_0x3bde7c[_0x5e024d]['type']?_0x3bde7c[_0x5e024d]['item']['endIndex']=_0x22a3a1['get'](_0x3bde7c[_0x5e024d]['pairId']):'elementEnd'===_0x3bde7c[_0x5e024d]['type']&&(_0x3bde7c[_0x5e024d]['item']['startIndex']=_0x22a3a1['get'](_0x3bde7c[_0x5e024d]['pairId']));}['_processTape'](_0x1387ca){for(let _0x2fc3dd=0x0;_0x2fc3dd<_0x1387ca['length'];_0x2fc3dd++){if('elementStart'===_0x1387ca[_0x2fc3dd]['type'])_0x1387ca[_0x2fc3dd]['item']['startIndex']=_0x2fc3dd;else{if('elementEnd'===_0x1387ca[_0x2fc3dd]['type']){_0x1387ca[_0x2fc3dd]['item']['endIndex']=_0x2fc3dd;const _0x5dad1b=_0x1387ca[_0x2fc3dd]['item']['startIndex'];_0x1387ca[_0x5dad1b]['pairId']=_0x1387ca[_0x2fc3dd]['id'],_0x1387ca[_0x2fc3dd]['pairId']=_0x1387ca[_0x5dad1b]['id'];}else _0x1387ca[_0x2fc3dd]['item']['startIndex']=_0x2fc3dd,_0x1387ca[_0x2fc3dd]['item']['endIndex']=_0x2fc3dd,_0x1387ca[_0x2fc3dd]['pairId']=null;}_0x1387ca[_0x2fc3dd]['markersStart']||(_0x1387ca[_0x2fc3dd]['markersStart']=[],_0x1387ca[_0x2fc3dd]['markersEnd']=[]);}}['_markInsertions'](_0x237477,_0xa7c2f9){const _0x49774e=_0x237477['filter'](_0xd6fa89=>!_0xd6fa89['isAdded']);for(let _0xbda576=0x0;_0xbda576<_0xa7c2f9['length'];_0xbda576++)_0xa7c2f9[_0xbda576]['isAdded']&&(_0x49774e[_0xbda576]['isAdded']=_0xa7c2f9[_0xbda576]['isAdded']);}['_makeModelFromViewString'](_0x489d33){const _0x390707=JSON['parse'](_0x489d33),_0x4251c2=this['editor']['editing']['view']['document'],_0x201585=new _0x42c523(_0x4251c2,_0x390707['map'](_0x5297df=>this['_getViewObj'](_0x5297df)));return this['editor']['data']['toModel'](_0x201585);}['_getViewObj'](_0x4e7e6a){const _0x2f0873=this['editor']['editing']['view']['document'];if('string'==typeof _0x4e7e6a)return new _0x39cc50(_0x2f0873,_0x4e7e6a);{const _0x4f3935=_0x4e7e6a['children']['map'](_0x4283d4=>this['_getViewObj'](_0x4283d4));return new(Y[_0x4e7e6a['type']]||_0x1e70bc)(_0x2f0873,_0x4e7e6a['name'],_0x4e7e6a['attributes'],_0x4f3935);}}['_getDiff'](_0x46ff85,_0x41ec5d=null){const _0x189d6c=this['repository']['getRevision'](_0x46ff85),_0x32e220=_0x41ec5d?this['repository']['getRevision'](_0x41ec5d):null,_0x421ac5=this['_getRevisionsRange'](_0x189d6c,_0x32e220),_0x919671=_0x421ac5[_0x421ac5['length']-0x1],_0x396718=new Map(),_0x48f199={'model':{},'attributes':{},'changes':[]},_0x907305=new Set(),_0x4ae5bb=new Map();for(let _0x362ad5=_0x421ac5['length']-0x1;_0x362ad5>=0x0;_0x362ad5--){const _0x58b38a=_0x421ac5[_0x362ad5];for(const _0x1a663a of Object['keys'](_0x58b38a['diffData']))if(_0x58b38a['diffData'][_0x1a663a]['attachChange']){const _0x26e06b=_0x58b38a['diffData'][_0x1a663a]['attachChange'];_0x26e06b['isAttached']?(_0x907305['add'](_0x1a663a),_0x4ae5bb['has'](_0x1a663a)&&_0x4ae5bb['get'](_0x1a663a)['userId']==_0x26e06b['userId']?_0x4ae5bb['delete'](_0x1a663a):_0x4ae5bb['set'](_0x1a663a,_0x26e06b)):_0x4ae5bb['has'](_0x1a663a)?(_0x907305['delete'](_0x1a663a),_0x4ae5bb['delete'](_0x1a663a)):(_0x907305['add'](_0x1a663a),_0x4ae5bb['set'](_0x1a663a,_0x26e06b));}else _0x907305['add'](_0x1a663a);}for(const _0x533727 of _0x907305){const _0x49296e=_0x4ae5bb['has'](_0x533727)&&!_0x4ae5bb['get'](_0x533727)['isAttached'];let _0x25b595=_0x49296e?_0x421ac5['length']-0x1:0x0;const _0x74e46a=_0x49296e?-0x1:0x1;for(;_0x421ac5[_0x25b595];){const _0x3030b3=_0x421ac5[_0x25b595];if(_0x3030b3['diffData'][_0x533727]){const _0x4dede2=_0x49296e?_0x3030b3['diffData'][_0x533727]['attributesBefore']:_0x3030b3['diffData'][_0x533727]['attributesAfter'];_0x48f199['attributes'][_0x533727]=_0x4dede2?_0x7494e5(_0x4dede2):{};break;}_0x25b595+=_0x74e46a;}}for(const _0x22efa5 of _0x421ac5){_0x22efa5['model']={};for(const _0x4866a6 of _0x22efa5['authors'])_0x396718['set'](_0x4866a6['id'],_0x4866a6);for(const _0x996d15 of _0x907305){const _0x9585c6=_0x22efa5['diffData'][_0x996d15]?_0x22efa5['diffData'][_0x996d15]['insertions']:'[]',_0x2faabc=_0x22efa5['diffData'][_0x996d15]?_0x22efa5['diffData'][_0x996d15]['deletions']:'[]';_0x22efa5['model'][_0x996d15]={'insertions':this['_makeModelFromViewString'](_0x9585c6),'deletions':this['_makeModelFromViewString'](_0x2faabc)};}}for(const _0x2fb85c of _0x907305){let _0x5a6134=null,_0x4aeb18=0x0;const _0x429801=new Map(Array['from'](_0x189d6c['model'][_0x2fb85c]['insertions']['markers'])['filter'](([_0x4370f8])=>!_0x4370f8['startsWith']('revision:')));let _0x582db7=0x0;for(const _0x504e1b of _0x421ac5){const _0x401020=this['_makeTape'](_0x504e1b['model'][_0x2fb85c]['insertions']);_0x504e1b==_0x189d6c?(_0x5a6134=_0x401020,_0x4aeb18=_0x5a6134['length'],_0x5a6134['forEach'](_0x58b2c8=>{_0x58b2c8['id']=_0x582db7++;}),this['_processTape'](_0x5a6134)):this['_markInsertions'](_0x5a6134,_0x401020);const _0x111f96=_0x5a6134['filter'](_0x544dc1=>!_0x544dc1['isAdded'])['map'](_0x2d3ea0=>_0x2d3ea0['id']);let _0x5c35b2=0x0;const _0x578a65=this['_makeTape'](_0x504e1b['model'][_0x2fb85c]['deletions']);_0x578a65['forEach'](_0x3d5387=>{_0x3d5387['isRemoved']?_0x3d5387['id']=_0x4aeb18++:_0x3d5387['id']=_0x111f96[_0x5c35b2++];}),this['_processTape'](_0x578a65),this['_setDistance'](_0x5a6134,'isAdded'),this['_setDistance'](_0x578a65,'isRemoved'),_0x504e1b==_0x189d6c&&this['_markMarkers'](_0x5a6134,_0x429801),_0x5a6134=this['_joinTapes'](_0x5a6134,_0x578a65),this['_refreshStartEndIndex'](_0x5a6134),this['_setDistance'](_0x5a6134,'isRemoved');}_0x5a6134=_0x5a6134['filter'](_0x5c959c=>!(_0x5c959c['isAdded']&&_0x5c959c['isRemoved']));const _0x3ca659=new Map(_0x919671['model'][_0x2fb85c]['deletions']['markers']),_0xb96cf9=new Set(_0x429801['keys']());for(const _0x3fe412 of _0x3ca659['keys']())_0xb96cf9['delete'](_0x3fe412);this['_markSuggestions'](_0x5a6134,_0xb96cf9),this['_fixObsoleteTags'](_0x5a6134),_0x5a6134=this['_removeMissingPairs'](_0x5a6134),_0x5a6134=this['_markMismatchedRemovedTags'](_0x5a6134),_0x5a6134=this['_removeUnsupportedChanges'](_0x5a6134);const {root:_0x9d388f,changes:_0x446e41}=this['_makeModelFromTape'](_0x5a6134,_0x396718,_0x2fb85c);_0x48f199['model'][_0x2fb85c]=_0x9d388f;const _0x46b34a=_0x4ae5bb['get'](_0x2fb85c);if(_0x46b34a){const _0x57e817=_0x396718['get'](_0x46b34a['userId']),_0x14fcbd=new r({'author':_0x57e817,'type':_0x46b34a['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x2fb85c});_0x446e41['unshift'](_0x14fcbd),_0x48f199['attributes'][_0x2fb85c]['revisionHistoryAttachChange']=_0x14fcbd['id'];}_0x48f199['changes']=_0x48f199['changes']['concat'](_0x446e41);}return _0x48f199;}['_markMarkers'](_0x11c5d1,_0x301fc5){for(let _0x5df2b6=0x0;_0x5df2b6<_0x11c5d1['length'];_0x5df2b6++)for(const [_0x56e7aa,_0x19fffd]of _0x301fc5)_0x19fffd['start']['isEqual'](_0x11c5d1[_0x5df2b6]['previousPosition'])&&_0x11c5d1[_0x5df2b6]['markersStart']['push'](_0x56e7aa),_0x19fffd['end']['isEqual'](_0x11c5d1[_0x5df2b6]['nextPosition'])&&_0x11c5d1[_0x5df2b6]['markersEnd']['push'](_0x56e7aa);}['_joinTapes'](_0x41c691,_0x35c22f){let _0x21f849=[],_0x152341=0x0,_0x20768a=0x0;for(;_0x152341<_0x41c691['length']||_0x20768a<_0x35c22f['length'];){const _0x385155=_0x41c691[_0x152341]||{},_0x373b63=_0x35c22f[_0x20768a]||{};if(_0x385155['id']==_0x373b63['id'])_0x152341++,_0x20768a++,_0x21f849['push'](_0x385155);else{if(_0x373b63['isRemoved']&&_0x385155['isAdded']){const {commonTape:_0x36e43a,iEnd:_0x3ce047,jEnd:_0x2172c7}=this['_threeWayMerge'](_0x41c691,_0x152341,_0x35c22f,_0x20768a);_0x21f849=_0x21f849['concat'](_0x36e43a),_0x152341=_0x3ce047,_0x20768a=_0x2172c7;}else _0x373b63['isRemoved']?(_0x20768a++,_0x21f849['push'](_0x373b63)):(_0x152341++,_0x21f849['push'](_0x385155));}}return _0x21f849;}['_markSuggestions'](_0x4f6a03,_0x18a984){const _0x475e20=[];for(let _0x2283a6=0x0;_0x2283a6<_0x4f6a03['length'];_0x2283a6++){for(let _0x3c9898=0x0;_0x3c9898<_0x4f6a03[_0x2283a6]['markersStart']['length'];_0x3c9898++){const _0x548edf=_0x4f6a03[_0x2283a6]['markersStart'][_0x3c9898];if(!_0x18a984['has'](_0x548edf))continue;const {group:_0x4de553,type:_0x1fc557,authorId:_0x439451}=_0x16ab64(_0x548edf);'revision-suggestion'!=_0x4de553||'insertion'!=_0x1fc557&&'deletion'!=_0x1fc557||(_0x475e20['unshift']({'type':_0x1fc557,'name':_0x548edf,'userId':_0x439451}),_0x4f6a03[_0x2283a6]['markersStart']['splice'](_0x3c9898,0x1),_0x3c9898--);}_0x3f39fd(_0x4f6a03[_0x2283a6]);for(let _0x3ceb1f=0x0;_0x3ceb1f<_0x4f6a03[_0x2283a6]['markersEnd']['length'];_0x3ceb1f++){const _0x308cb7=_0x4f6a03[_0x2283a6]['markersEnd'][_0x3ceb1f];if(!_0x18a984['has'](_0x308cb7))continue;const {group:_0xbef35a,type:_0x2b151e}=_0x16ab64(_0x308cb7);if('revision-suggestion'!=_0xbef35a||'insertion'!=_0x2b151e&&'deletion'!=_0x2b151e)continue;_0x4f6a03[_0x2283a6]['markersEnd']['splice'](_0x3ceb1f,0x1),_0x3ceb1f--;const _0x104067=_0x475e20['findIndex'](_0x4fd630=>_0x4fd630['name']==_0x308cb7);_0x104067>-0x1&&_0x475e20['splice'](_0x104067,0x1);}}function _0x16ab64(_0x2a2d5b){const _0xf07ca5=_0x2a2d5b['split'](':');return{'group':_0xf07ca5[0x0],'type':_0xf07ca5[0x1],'subType':_0xf07ca5['length']>=0x5?_0xf07ca5[0x2]:null,'id':_0xf07ca5['length']<0x5?_0xf07ca5[0x2]:_0xf07ca5[0x3],'authorId':_0xf07ca5['length']<0x5?_0xf07ca5[0x3]:_0xf07ca5[0x4],'markerCount':0x6==_0xf07ca5['length']?_0xf07ca5[0x5]:null};}function _0x3f39fd(_0x2ebe47){for(let _0x16d274=0x0;_0x16d274<_0x475e20['length'];_0x16d274++){if(_0x2ebe47['isAdded']&&'insertion'==_0x475e20[_0x16d274]['type'])return _0x2ebe47['isAddSuggestion']=_0x475e20[_0x16d274],void delete _0x2ebe47['isAdded'];if(!_0x2ebe47['isAdded']&&!_0x2ebe47['isRemoved']&&'deletion'==_0x475e20[_0x16d274]['type'])return void(_0x2ebe47['isRemoveSuggestion']=_0x475e20[_0x16d274]);}}}['_setDistance'](_0x516f08,_0x2696b8){let _0x57a4fe=0x0,_0x260333=!0x1;const _0xdfd7ab=new Map();for(const _0x3e141e of _0x516f08)_0x3e141e[_0x2696b8]?_0x260333&&(_0x57a4fe++,_0x260333=!0x1):(_0x57a4fe++,_0x260333=!0x0),_0xdfd7ab['set'](_0x3e141e['id'],_0x57a4fe);for(let _0x4ba251=0x0;_0x4ba251<_0x516f08['length'];_0x4ba251++){if('isRemoved'==_0x2696b8&&_0x516f08[_0x4ba251]['isAdded']||'isAdded'==_0x2696b8&&_0x516f08[_0x4ba251]['isRemoved'])continue;if('text'==_0x516f08[_0x4ba251]['type']){_0x516f08[_0x4ba251]['distance']=0x0;continue;}const _0x32b557=_0xdfd7ab['get'](_0x516f08[_0x4ba251]['pairId']),_0x273582=_0xdfd7ab['get'](_0x516f08[_0x4ba251]['id']);_0x516f08[_0x4ba251]['distance']=_0x32b557-_0x273582;}}['_getRevisionsRange'](_0x49ed49,_0x5eafe8,_0x5cff8b=!0x1){const _0x4f1c0a=[];let _0x6d8370=this['repository']['getIndex'](_0x49ed49),_0xd6aa9c=this['repository']['getIndex'](_0x5eafe8);for(-0x1==_0xd6aa9c&&(_0xd6aa9c=this['repository']['_revisions']['length'],_0x5cff8b=!0x1);_0x6d8370<_0xd6aa9c;)_0x4f1c0a['push'](this['repository']['getRevision'](_0x6d8370)),_0x6d8370++;return _0x5cff8b&&_0x4f1c0a['push'](this['repository']['getRevision'](_0x6d8370)),_0x4f1c0a;}['_threeWayMerge'](_0x14b47e,_0x2f8b3b,_0x1de197,_0x34fa62){const _0x275e34=this['editor']['model']['schema'];let _0x806cd1=_0x2f8b3b;for(;_0x14b47e[_0x806cd1]&&_0x14b47e[_0x806cd1]['isAdded'];)_0x806cd1++;let _0x2ca0c2=_0x34fa62;for(;_0x1de197[_0x2ca0c2]&&_0x1de197[_0x2ca0c2]['isRemoved'];)_0x2ca0c2++;_0x566cb1(_0x14b47e,_0x2f8b3b,_0x806cd1),_0x566cb1(_0x1de197,_0x34fa62,_0x2ca0c2);const _0x50a4e5=_0x1de197['slice'](_0x34fa62,_0x2ca0c2)['concat'](_0x14b47e['slice'](_0x2f8b3b,_0x806cd1));return _0x50a4e5['sort']((_0x2bf6e3,_0x11641d)=>_0x2bf6e3['side']!=_0x11641d['side']?_0x2bf6e3['side']-_0x11641d['side']:_0x2bf6e3['level']!=_0x11641d['level']?_0x2bf6e3['level']-_0x11641d['level']:_0x2bf6e3['distance']!=_0x11641d['distance']?_0x11641d['distance']-_0x2bf6e3['distance']:!!_0x2bf6e3['isAdded']!=!!_0x11641d['isAdded']?-0x1==_0x2bf6e3['side']||0x0==_0x2bf6e3['side']?_0x2bf6e3['isAdded']?-0x1:0x1:_0x2bf6e3['isAdded']?0x1:-0x1:_0x2bf6e3['index']-_0x11641d['index']),{'commonTape':_0x50a4e5,'iEnd':_0x806cd1,'jEnd':_0x2ca0c2};function _0x566cb1(_0x476105,_0x1094cd,_0x3d10bc){let _0x4479b6=-0x1,_0x53b3b9=Number['POSITIVE_INFINITY'],_0x2c360d=!0x0;for(let _0x53ce53=_0x1094cd;_0x53ce53<_0x3d10bc;_0x53ce53++)if(_0x275e34['isInline'](_0x476105[_0x53ce53]['item'])||(_0x2c360d=!0x1),_0x476105[_0x53ce53]['item']['startIndex']<_0x1094cd&&(_0x4479b6=_0x53ce53),_0x476105[_0x53ce53]['item']['endIndex']>=_0x3d10bc){_0x53b3b9=_0x53ce53;break;}_0x2c360d&&(_0x4479b6=_0x3d10bc-0x1);for(let _0x27ddc9=_0x1094cd;_0x27ddc9<_0x3d10bc;_0x27ddc9++)_0x476105[_0x27ddc9]['side']=_0x27ddc9<=_0x4479b6?-0x1:_0x27ddc9<_0x53b3b9?0x0:0x1,_0x476105[_0x27ddc9]['index']=_0x27ddc9;let _0x10f175=0x0;for(let _0x555c07=_0x1094cd;_0x555c07<=_0x4479b6;_0x555c07++)0x0==_0x476105[_0x555c07]['distance']?_0x476105[_0x555c07]['level']=_0x10f175:(_0x10f175++,_0x476105[_0x555c07]['level']=_0x10f175,_0x10f175++);for(let _0x3546c3=_0x1094cd;_0x3546c3<_0x3d10bc;_0x3546c3++)0x0==_0x476105[_0x3546c3]['side']&&(_0x476105[_0x3546c3]['level']=_0x10f175);_0x10f175=0x0;for(let _0x8ddea5=_0x3d10bc-0x1;_0x8ddea5>=_0x53b3b9;_0x8ddea5--)0x0==_0x476105[_0x8ddea5]['distance']?_0x476105[_0x8ddea5]['level']=_0x10f175:(_0x10f175--,_0x476105[_0x8ddea5]['level']=_0x10f175,_0x10f175--);}}['_fixObsoleteTags'](_0x4be9ca){const _0x1c57da=new Map(),_0x27e699=this['editor']['model']['schema'];for(let _0x3bad2b=0x1;_0x3bad2b<_0x4be9ca['length'];_0x3bad2b++){let _0x2202aa,_0x1ba0d6,_0x11e22c;const _0x4135d4=_0x4be9ca[_0x3bad2b],_0x2962e1=_0x4be9ca[_0x3bad2b-0x1];if('text'==_0x4135d4['type'])continue;if(_0x4135d4['type']!=_0x2962e1['type'])continue;if(!_0x27e699['isBlock'](_0x2962e1['item'])||_0x27e699['isLimit'](_0x2962e1['item']))continue;if(!_0x27e699['isBlock'](_0x4135d4['item'])||_0x27e699['isLimit'](_0x4135d4['item']))continue;if((_0x4be9ca[_0x3bad2b]['isAdded']||_0x4be9ca[_0x3bad2b]['isAddSuggestion'])&&_0x4be9ca[_0x3bad2b-0x1]['isRemoved'])_0x2202aa=_0x4be9ca[_0x3bad2b],_0x1ba0d6=_0x4be9ca[_0x3bad2b-0x1],_0x11e22c=_0x3bad2b-0x1;else{if(!_0x4be9ca[_0x3bad2b]['isRemoved']||!_0x4be9ca[_0x3bad2b-0x1]['isAdded']&&!_0x4be9ca[_0x3bad2b-0x1]['isAddSuggestion'])continue;_0x2202aa=_0x4be9ca[_0x3bad2b-0x1],_0x1ba0d6=_0x4be9ca[_0x3bad2b],_0x11e22c=_0x3bad2b;}const _0x263c82=_0x2202aa['level']==_0x1ba0d6['level'],_0xad4142=Math['abs'](_0x2202aa['level'])<Math['abs'](_0x1ba0d6['level'])&&0x0==_0x1ba0d6['distance'];(_0x263c82||_0xad4142)&&(_0x1c57da['set'](_0x1ba0d6['id'],_0x2202aa['id']),_0x4be9ca['splice'](_0x11e22c,0x1),_0x3bad2b--,_0x2202aa['isAdded']=!0x1);}for(let _0x5731b2=0x0;_0x5731b2<_0x4be9ca['length'];_0x5731b2++)_0x1c57da['has'](_0x4be9ca[_0x5731b2]['pairId'])&&(_0x4be9ca[_0x5731b2]['pairId']=_0x1c57da['get'](_0x4be9ca[_0x5731b2]['pairId']));}['_removeMissingPairs'](_0x4813fa){const _0x3a545d=new Set(_0x4813fa['map'](_0x2fd4cd=>_0x2fd4cd['id']));for(let _0x5cc56a=0x0;_0x5cc56a<_0x4813fa['length'];_0x5cc56a++)_0x3a545d['has'](_0x4813fa[_0x5cc56a]['pairId'])||0x0==_0x4813fa[_0x5cc56a]['distance']||(_0x4813fa[_0x5cc56a]['isIncorrect']=!0x0);return _0x4813fa['filter'](_0x5d2a2a=>!_0x5d2a2a['isIncorrect']);}['_markMismatchedRemovedTags'](_0x23134f){const _0x394ae8=new Set();for(let _0x7fb241=0x0;_0x7fb241<_0x23134f['length'];_0x7fb241++){if(_0x394ae8['has'](_0x23134f[_0x7fb241]['id'])&&_0x23134f[_0x7fb241]['isRemoved']&&(_0x23134f[_0x7fb241]['isIncorrect']=!0x0),_0x23134f[_0x7fb241]['isIncorrect'])continue;if(0x0==_0x23134f[_0x7fb241]['distance'])continue;if('elementStart'!=_0x23134f[_0x7fb241]['type'])continue;if(null==_0x23134f[_0x7fb241]['pairId'])continue;let _0x87440f=_0x7fb241+0x1,_0x4426a3=0x0;for(;_0x23134f[_0x87440f]['id']!=_0x23134f[_0x7fb241]['pairId'];)'elementStart'==_0x23134f[_0x87440f]['type']?_0x4426a3++:'elementEnd'==_0x23134f[_0x87440f]['type']&&_0x4426a3--,_0x87440f++;if(0x0!=_0x4426a3){if(_0x23134f[_0x7fb241]['isRemoved'])_0x23134f[_0x7fb241]['isIncorrect']=!0x0;else{for(;_0x87440f!=_0x7fb241;)_0x23134f[_0x87440f]['isRemoved']&&0x0!=_0x23134f[_0x87440f]['distance']&&(_0x23134f[_0x87440f]['isIncorrect']=!0x0,_0x394ae8['add'](_0x23134f[_0x87440f]['pairId'])),_0x87440f--;}}}return _0x23134f['filter'](_0x2a3471=>!_0x2a3471['isIncorrect']);}['_removeUnsupportedChanges'](_0x14a467){const _0x1089d7=this['editor']['model']['schema'];for(let _0x2850d4=0x0;_0x2850d4<_0x14a467['length'];_0x2850d4++){if(!(_0x14a467[_0x2850d4]['isAdded']||_0x14a467[_0x2850d4]['isAddSuggestion']||_0x14a467[_0x2850d4]['isRemoved']||_0x14a467[_0x2850d4]['isRemoveSuggestion']))continue;if(0x0==_0x14a467[_0x2850d4]['distance'])continue;const _0x4a30b9=_0x14a467[_0x2850d4]['item'];_0x1089d7['isBlock'](_0x4a30b9)||_0x1089d7['isLimit'](_0x4a30b9)||(_0x14a467[_0x2850d4]['isAdded']&&delete _0x14a467[_0x2850d4]['isAdded'],_0x14a467[_0x2850d4]['isAddSuggestion']&&delete _0x14a467[_0x2850d4]['isAddSuggestion'],_0x14a467[_0x2850d4]['isRemoveSuggestion']&&delete _0x14a467[_0x2850d4]['isRemoveSuggestion'],_0x14a467[_0x2850d4]['isRemoved']&&(_0x14a467[_0x2850d4]['isIncorrect']=!0x0));}return _0x14a467['filter'](_0x44e1a1=>!_0x44e1a1['isIncorrect']);}['_makeModelFromTape'](_0x2db77d,_0x2d083d,_0x59ca9d){const _0x41af87=new gt(),_0x5ea960=[],_0x4d8685=new Map(),_0x56fa44=this['editor']['model'],_0x47266a=_0x56fa44['schema'],_0x1d0054=[_0x41af87],_0xf3722f={},_0x5ab81a={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x3a4a06=null;const _0x56147c=[0x0];for(let _0x1ff51b=0x0;_0x1ff51b<_0x2db77d['length'];_0x1ff51b++)if('elementStart'===_0x2db77d[_0x1ff51b]['type']){_0x2db77d[_0x1ff51b]['previousPosition']=_0x56fa44['createPositionFromPath'](_0x41af87,_0x56147c);const _0xa54c1a=new ut(_0x2db77d[_0x1ff51b]['item']['name'],_0x2db77d[_0x1ff51b]['item']['getAttributes']());_0x1d0054[0x0]['_appendChild'](_0xa54c1a),_0x56147c['push'](0x0),_0x1d0054['unshift'](_0xa54c1a),_0x2db77d[_0x1ff51b]['nextPosition']=_0x56fa44['createPositionFromPath'](_0x41af87,_0x56147c);}else'elementEnd'===_0x2db77d[_0x1ff51b]['type']?(_0x1d0054['shift'](),_0x2db77d[_0x1ff51b]['previousPosition']=_0x56fa44['createPositionFromPath'](_0x41af87,_0x56147c),_0x56147c['pop'](),_0x56147c[_0x56147c['length']-0x1]++,_0x2db77d[_0x1ff51b]['nextPosition']=_0x56fa44['createPositionFromPath'](_0x41af87,_0x56147c)):(_0x2db77d[_0x1ff51b]['previousPosition']=_0x56fa44['createPositionFromPath'](_0x41af87,_0x56147c),_0x3a4a06?_0x3a4a06['_data']+=_0x2db77d[_0x1ff51b]['item']['data']:_0x3a4a06=new mt(_0x2db77d[_0x1ff51b]['item']['data'],_0x2db77d[_0x1ff51b]['item']['getAttributes']()),_0x2db77d[_0x1ff51b+0x1]&&'text'===_0x2db77d[_0x1ff51b+0x1]['type']&&_0x690d53(_0x3a4a06,_0x2db77d[_0x1ff51b+0x1]['item'])||(_0x1d0054[0x0]['_appendChild'](_0x3a4a06),_0x3a4a06=null),_0x56147c[_0x56147c['length']-0x1]+=_0x2db77d[_0x1ff51b]['item']['offsetSize'],_0x2db77d[_0x1ff51b]['nextPosition']=_0x56fa44['createPositionFromPath'](_0x41af87,_0x56147c));for(let _0x4bc5d2=0x0;_0x4bc5d2<_0x2db77d['length'];_0x4bc5d2++){const _0x25afb5=_0x2db77d[_0x4bc5d2]['previousPosition'],_0x491ebc=_0x2db77d[_0x4bc5d2]['nextPosition'];for(const _0x325022 of _0x2db77d[_0x4bc5d2]['markersStart'])_0x4d8685['set'](_0x325022,{'start':_0x25afb5,'end':null});_0x4c207b('isRemoveSuggestion',_0x4bc5d2,_0x25afb5,_0x491ebc),_0x4c207b('isAddSuggestion',_0x4bc5d2,_0x25afb5,_0x491ebc),_0x4c207b('isRemoved',_0x4bc5d2,_0x25afb5,_0x491ebc),_0x4c207b('isAdded',_0x4bc5d2,_0x25afb5,_0x491ebc);for(const _0x30ea6e of _0x2db77d[_0x4bc5d2]['markersEnd']){_0x4d8685['get'](_0x30ea6e)['end']=_0x491ebc;}}for(const [_0x25d10f,_0x4d8f4c]of _0x4d8685){const _0x484d30=this['editor']['model']['createRange'](_0x4d8f4c['start'],_0x4d8f4c['end']);_0x41af87['markers']['set'](_0x25d10f,_0x484d30);}return _0x5ea960['sort']((_0x5abfaf,_0xdf5fce)=>{const _0x23026b=_0x41af87['markers']['get']('revision:'+_0x5abfaf['id']),_0x50c5d4=_0x41af87['markers']['get']('revision:'+_0xdf5fce['id']);return _0x23026b['start']['isBefore'](_0x50c5d4['start'])?-0x1:_0x23026b['start']['isAfter'](_0x50c5d4['start'])?0x1:_0x23026b['end']['isBefore'](_0x50c5d4['end'])?-0x1:_0x23026b['end']['isAfter'](_0x50c5d4['end'])?0x1:'add'===_0x5abfaf['type']?-0x1:0x1;}),{'root':_0x41af87,'changes':_0x5ea960};function _0x4c207b(_0x68ba0,_0x456988,_0x2bf92a,_0x65b265){const _0x3045fe=!!_0x2db77d[_0x456988][_0x68ba0],_0x8aa62c=_0x3045fe?_0x2db77d[_0x456988][_0x68ba0]['userId']:null,_0x3a6e85=_0x456988===_0x2db77d['length']-0x1,_0x52fedd=_0x5ab81a[_0x68ba0][0x0],_0x406b88=_0x47266a['isObject'](_0x2db77d[_0x456988]['item']);!_0xf3722f[_0x68ba0]&&_0x3045fe?_0xf3722f[_0x68ba0]={'start':_0x2bf92a,'tapeItem':_0x2db77d[_0x456988],'userId':_0x8aa62c,'type':_0x68ba0}:_0xf3722f[_0x68ba0]&&!_0x3045fe?(_0xf3722f[_0x68ba0]['end']=_0x2bf92a,_0x2f6335(_0xf3722f[_0x68ba0]),_0xf3722f[_0x68ba0]=null):_0xf3722f[_0x68ba0]&&_0x3045fe&&_0xf3722f[_0x68ba0]['userId']!==_0x8aa62c&&(_0xf3722f[_0x68ba0]['end']=_0x2bf92a,_0x52fedd&&_0x52fedd['userId']===_0xf3722f[_0x68ba0]['userId']||_0x2f6335(_0xf3722f[_0x68ba0]),_0xf3722f[_0x68ba0]={'start':_0x2bf92a,'tapeItem':_0x2db77d[_0x456988],'userId':_0x8aa62c,'type':_0x68ba0}),_0xf3722f[_0x68ba0]&&_0x406b88&&('elementStart'!==_0x2db77d[_0x456988]['type']||_0x52fedd&&_0x52fedd['userId']===_0x8aa62c||_0x5ab81a[_0x68ba0]['unshift']({'userId':_0x8aa62c,'object':_0x2db77d[_0x456988]['item'],'change':_0xf3722f[_0x68ba0]}),'elementEnd'===_0x2db77d[_0x456988]['type']&&_0x52fedd&&_0x52fedd['object']===_0x2db77d[_0x456988]['item']&&(_0x5ab81a[_0x68ba0]['shift'](),_0xf3722f[_0x68ba0]=_0x52fedd['change'])),_0xf3722f[_0x68ba0]&&_0x3a6e85&&(_0xf3722f[_0x68ba0]['end']=_0x65b265,_0x2f6335(_0xf3722f[_0x68ba0]),_0xf3722f[_0x68ba0]=null);}function _0x2f6335({start:_0x1986ca,end:_0x30830a,tapeItem:_0x2ca5f4,userId:_0x287456,type:_0x14f34a}){const _0x27a115=_0x2ca5f4['item'],_0x2d307b=_0x56fa44['schema']['isBlock'](_0x27a115)&&!_0x56fa44['schema']['isLimit'](_0x27a115),_0x2324eb=_0x1986ca['nodeAfter']==_0x30830a['parent']&&_0x30830a['isAtStart'];if(_0x2d307b&&_0x2324eb)return;const _0x19dc46=_0x56fa44['createRange'](_0x1986ca,_0x30830a),_0x1f70f1=_0x2d083d['get'](_0x287456),_0x57f0da=new r({'author':_0x1f70f1,'type':'isAdded'==_0x14f34a||'isAddSuggestion'==_0x14f34a?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x14f34a||'isRemoveSuggestion'==_0x14f34a},'createdAt':new Date(),'rootName':_0x59ca9d});_0x5ea960['push'](_0x57f0da),_0x41af87['markers']['set']('revision:'+_0x57f0da['id'],_0x19dc46);}function _0x690d53(_0x42078b,_0x462b64){const _0x4806be=_0x42078b['getAttributes'](),_0x3ccf1d=_0x462b64['getAttributes']();for(const _0x224dd3 of _0x4806be){if(_0x224dd3[0x1]!==_0x462b64['getAttribute'](_0x224dd3[0x0]))return!0x1;_0x3ccf1d['next']();}return _0x3ccf1d['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x5c4a46=>{const _0x15724e=_0x5c4a46['markerName']['split'](':')[0x1],_0x1414e0=this['_getChangeFromId'](_0x15724e);if(!_0x1414e0)return null;const _0x3f785b='add'==_0x1414e0['type']?'insertion':'deletion',_0x5bea66=['ck-suggestion-marker','ck-suggestion-marker-'+_0x3f785b];return _0x1414e0['data']['isSuggestion']&&_0x5bea66['push']('ck-suggestion-marker-'+_0x3f785b+'-new'),this['activeChange']==_0x1414e0&&_0x5bea66['push']('ck-suggestion-marker--active'),{'classes':_0x5bea66,'attributes':{'data-change-id':_0x15724e}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x5e3da8=>{_0x5e3da8['on']('element:pre',(_0x4f20e3,_0x2b2ef7,_0x929ebc)=>{const _0x5ac293=_0x2b2ef7['viewItem']['getChild'](0x0);if(!_0x5ac293||!_0x5ac293['is']('element','code'))return;if(!_0x929ebc['consumable']['consume'](_0x5ac293,{'attributes':['vid_start','vid_end']}))return;const _0x3243d0=_0x2b2ef7['modelRange']['start']['nodeAfter'];_0x929ebc['writer']['setAttribute']('vid_start',_0x5ac293['getAttribute']('vid_start'),_0x3243d0),_0x929ebc['writer']['setAttribute']('vid_end',_0x5ac293['getAttribute']('vid_end'),_0x3243d0);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x95fa95=>{_0x95fa95['on']('element',(_0x3a1945,_0x3ad58b,_0x1047b7)=>{if(!_0x1047b7['consumable']['consume'](_0x3ad58b['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x3ad58b['modelRange']['isCollapsed'])return;const _0x4e8270=_0x3ad58b['modelRange']['start']['nodeAfter'];_0x4e8270['hasAttribute']('vid_start')||_0x4e8270['hasAttribute']('vid')||(_0x1047b7['writer']['setAttribute']('vid_start',_0x3ad58b['viewItem']['getAttribute']('vid_start'),_0x4e8270),_0x1047b7['writer']['setAttribute']('vid_end',_0x3ad58b['viewItem']['getAttribute']('vid_end'),_0x4e8270));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x11659d=>_0x11659d['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x3fb7eb,[,_0x5656e3])=>{['vid_start','vid_end','vid']['includes'](_0x5656e3)&&(_0x3fb7eb['return']=!0x0,_0x3fb7eb['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x1a083c=>{_0x1a083c['on']('attribute:vid',(_0x59cf76,_0x298bf5,_0x571bf2)=>{if('\x20'!=_0x298bf5['item']['data']||_0x298bf5['item']['parent']['maxOffset']>0x1)return;if(!_0x571bf2['consumable']['consume'](_0x298bf5['item'],_0x59cf76['name']))return;const _0x5ea26f=_0x571bf2['writer'],_0x4ee99e=_0x571bf2['mapper']['toViewRange'](_0x298bf5['range']);_0x5ea26f['wrap'](_0x4ee99e,_0x5ea26f['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x101105){const _0x5133a5=_0x101105['plugins']['get']('RevisionViewer');return(_0x480532,_0x161f2e,_0x7ed922)=>{const _0x25bbaa=_0x161f2e['markerName']['split'](':')[0x1],_0xe83398=_0x5133a5['_getChangeFromId'](_0x25bbaa);if(!_0xe83398)return null;const _0x4db226='add'==_0xe83398['type']?'split':'merge';if(!_0x7ed922['consumable']['test'](_0x161f2e['markerRange'],_0x480532['name']))return;const _0x203ab1=_0x161f2e['markerRange']['getWalker'](),_0x238694=_0x161f2e['markerRange']['start'],_0x5ec547=_0x101105['model']['schema'];let _0x5f1fd3=null,_0x591109=null,_0x60bf41=!0x1,_0x3f94cf=!0x1;for(const _0xbabf60 of _0x203ab1){const _0x3c7230=_0xbabf60['item'];_0x60bf41=_0x60bf41||_0x5ec547['isContent'](_0x3c7230);const _0x165565=_0x7ed922['mapper']['toViewElement'](_0x3c7230);if(_0x165565&&_0x165565['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xbabf60['type']&&(_0x5ec547['isBlock'](_0x3c7230)&&!_0x5ec547['isLimit'](_0x3c7230)&&(_0x3c7230['nextSibling']||_0x238694['isAtEnd']?_0x5f1fd3&&_0x5f1fd3['parent']==_0x3c7230||(_0x5f1fd3=_0x3c7230,_0x4b8e62(_0xbabf60['previousPosition']),_0x3f94cf=!0x0):_0x591109=_0x591109||_0xbabf60['previousPosition']));}function _0x4b8e62(_0xb0ce39){const _0x4aedc0=_0x7ed922['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4db226}),_0x5b28dd=_0x7ed922['mapper']['toViewPosition'](_0xb0ce39);_0xe83398['data']['isSuggestion']&&_0x7ed922['writer']['addClass']('ck-suggestion-marker-'+_0x4db226+'-new',_0x4aedc0),_0x5133a5['activeChange']==_0xe83398&&_0x7ed922['writer']['addClass']('ck-suggestion-marker--active',_0x4aedc0),_0x7ed922['writer']['insert'](_0x5b28dd,_0x4aedc0),_0x7ed922['mapper']['bindElementToMarker'](_0x4aedc0,_0x161f2e['markerName']);}_0x60bf41||_0x3f94cf||!_0x591109||_0x4b8e62(_0x591109);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x30078e,_0x159090,_0x42924d)=>{const _0x1f0725=_0x42924d['mapper']['markerNameToElements'](_0x159090['markerName']);if(_0x1f0725){for(const _0x4a0174 of _0x1f0725)(_0x4a0174['hasClass']('ck-suggestion-marker-split')||_0x4a0174['hasClass']('ck-suggestion-marker-merge'))&&(_0x42924d['mapper']['unbindElementFromMarkerName'](_0x4a0174,_0x159090['markerName']),_0x42924d['writer']['remove'](_0x4a0174));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x211c98,_0x3b8214,_0x3c317f)=>{const _0x1b2943=_0x3b8214['markerName']['split'](':')[0x1],_0x1fbb4d=this['_getChangeFromId'](_0x1b2943);if(!_0x1fbb4d)return null;const _0x4b1bc7='add'==_0x1fbb4d['type']?'split':'merge';if(_0x3c317f['consumable']['test'](_0x3b8214['markerRange'],_0x211c98['name']))for(const _0x2f7c2d of _0x3b8214['markerRange']['getItems']()){if(!_0x2f7c2d['is']('element','softBreak'))continue;const _0x5f2b0d=_0x3c317f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4b1bc7}),_0x49eb3e=_0x3c317f['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x2f7c2d));_0x1fbb4d['data']['isSuggestion']&&_0x3c317f['writer']['addClass']('ck-suggestion-marker-'+_0x4b1bc7+'-new',_0x5f2b0d),this['activeChange']==_0x1fbb4d&&_0x3c317f['writer']['addClass']('ck-suggestion-marker--active',_0x5f2b0d),_0x3c317f['writer']['insert'](_0x49eb3e,_0x5f2b0d),_0x3c317f['mapper']['bindElementToMarker'](_0x5f2b0d,_0x3b8214['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x1f13ea=>{for(const _0x3e821c of this['editor']['model']['document']['getRootNames']()){const _0xd9e242=this['editor']['model']['document']['getRoot'](_0x3e821c),_0x5e507c=this['editor']['editing']['view']['document']['getRoot'](_0x3e821c);if(_0x5e507c){const _0x666792=_0xd9e242['getAttribute']('revisionHistoryAttachChange');if(_0x1f13ea['removeAttribute']('data-change-id',_0x5e507c),_0x1f13ea['removeClass']('ck-revision-history-root-add',_0x5e507c),_0x1f13ea['removeClass']('ck-revision-history-root-remove',_0x5e507c),_0x1f13ea['removeClass']('ck-revision-history-root--active',_0x5e507c),_0x666792){const _0xf8bc2b=this['_getChangeFromId'](_0x666792);if(!_0xf8bc2b)return null;_0x1f13ea['setAttribute']('data-change-id',_0x666792,_0x5e507c),_0x1f13ea['addClass']('ck-revision-history-root-'+_0xf8bc2b['type'],_0x5e507c),this['activeChange']==_0xf8bc2b&&_0x1f13ea['addClass']('ck-revision-history-root--active',_0x5e507c);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x31e3aa=>'revision-comment:'+_0x31e3aa,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x5235fa=>'revision-suggestion:'+_0x5235fa,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x840779=>({'name':'suggestion:'+_0x840779,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x403a5e=>{const _0x5e3670=_0x403a5e['markerName']['split'](':')[0x1];return'insertion'!=_0x5e3670&&'deletion'!=_0x5e3670?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x5e3670]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x164edb,_0x1ada71,_0x163fa7)=>{const _0xa6780e=_0x163fa7['mapper']['markerNameToElements'](_0x1ada71['markerName']);if(_0xa6780e){for(const _0x2c46df of _0xa6780e)_0x2c46df['is']('uiElement')&&(_0x163fa7['mapper']['unbindElementFromMarkerName'](_0x2c46df,_0x1ada71['markerName']),_0x163fa7['writer']['remove'](_0x2c46df));}},{'priority':'high'});}['_getChangeFromId'](_0x39b031){return this['_changeIdToChange']['get'](_0x39b031);}['_getViewForChange'](_0x572003){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x572003),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x18ab7e,_0x520f49,_0x5e1d17,_0xbb5406)=>{_0xbb5406&&this['_balloon']['remove'](_0xbb5406),_0x5e1d17&&(this['_balloon']['add']({'view':_0x5e1d17,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x49b891=this['editor']['editing'],_0x35d144=this['_getChangeFromId'](_0x5e1d17['changeId']);let _0x185fc0;if(_0x35d144['data']['isOnRoot']){const _0x210d8f=_0x49b891['view']['getDomRoot'](_0x35d144['rootName']);_0x185fc0=Array['from'](_0x210d8f['getClientRects']());}else{const _0x4ac919=this['editor']['model']['markers']['get']('revision:'+_0x5e1d17['changeId']);_0x185fc0=Array['from'](_0x49b891['mapper']['markerNameToElements'](_0x4ac919['name']))['map'](_0x3b2463=>_0x49b891['view']['domConverter']['mapViewToDom'](_0x3b2463))['map'](_0x6020ed=>Array['from'](_0x6020ed['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x185fc0[0x0];return _0x185fc0['find'](_0x192210=>_0x192210['top']-0x3<=this['_activeViewTarget']['y']&&_0x192210['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x192210['left']-0x3<=this['_activeViewTarget']['x']&&_0x192210['right']+0x3>=this['_activeViewTarget']['x'])||_0x185fc0[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x366b30,_0x1f58ca,_0xfd0500,_0x2fbb08)=>{this['activeView']=_0xfd0500?this['_getViewForChange'](_0xfd0500):null,this['editor']['model']['change'](()=>{const _0x4cf1dd=this['editor']['editing'];_0x2fbb08&&(_0x2fbb08['data']['isOnRoot']?_0x4cf1dd['view']['change'](_0x5937e1=>{_0x5937e1['removeClass']('ck-revision-history-root--active',_0x4cf1dd['view']['document']['getRoot'](_0x2fbb08['rootName']));}):_0x4cf1dd['reconvertMarker']('revision:'+_0x2fbb08['id'])),_0xfd0500&&(_0xfd0500['data']['isOnRoot']?_0x4cf1dd['view']['change'](_0x16b579=>{_0x16b579['addClass']('ck-revision-history-root--active',_0x4cf1dd['view']['document']['getRoot'](_0xfd0500['rootName']));}):_0x4cf1dd['reconvertMarker']('revision:'+_0xfd0500['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x1cb482,_0x413dc0)=>{if(this['activeChange'])return;const _0x36a068=this['_findChangeIdFromDomTarget'](_0x413dc0['target']),_0xbfd41c=this['_changeIdToChange']['get'](_0x36a068);_0xbfd41c?(this['_activeViewTarget']={'x':_0x413dc0['domEvent']['x'],'y':_0x413dc0['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0xbfd41c)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x1dfdd4,_0x49691d)=>{const _0x543fed=this['_findChangeIdFromDomTarget'](_0x49691d['target']),_0x27fcb4=this['_changeIdToChange']['get'](_0x543fed);_0x27fcb4?(this['_activeViewTarget']={'x':_0x49691d['domEvent']['x'],'y':_0x49691d['domEvent']['y']},_0x27fcb4===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x27fcb4):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x360e4f){do{const _0x4c98ce=_0x360e4f['getAttribute']('data-change-id');if(_0x4c98ce)return _0x4c98ce;_0x360e4f=_0x360e4f['parent'];}while(_0x360e4f);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x1c5ca3=>{for(const _0x1a14e0 of this['editor']['model']['markers'])_0x1c5ca3['removeMarker'](_0x1a14e0);});}}function Z(_0x433b78,_0x1b335b){return(_0x4e5cab,_0x3e97dd,_0x5e5c00)=>{if(!_0x5e5c00['consumable']['test'](_0x3e97dd['markerRange'],_0x4e5cab['name']))return;const _0x54bf46=_0x3e97dd['markerRange']['getWalker'](),_0x221cac=_0x3e97dd['markerRange']['start'],_0x45fa0a=_0x433b78['model']['schema'];let _0x3eeca7=null,_0x3c12ae=null,_0x275772=!0x1,_0x31c065=!0x1;for(const _0x2eb3b5 of _0x54bf46){const _0x162865=_0x2eb3b5['item'];_0x275772=_0x275772||_0x45fa0a['isContent'](_0x162865);const _0x46a2fa=_0x5e5c00['mapper']['toViewElement'](_0x162865);if(_0x46a2fa&&_0x46a2fa['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2eb3b5['type']&&(_0x45fa0a['isBlock'](_0x162865)&&!_0x45fa0a['isLimit'](_0x162865)&&(_0x162865['nextSibling']||_0x221cac['isAtEnd']?_0x3eeca7&&_0x3eeca7['parent']==_0x162865||(_0x3eeca7=_0x162865,_0x3613d2(_0x2eb3b5['previousPosition']),_0x31c065=!0x0):_0x3c12ae=_0x3c12ae||_0x2eb3b5['previousPosition']));}function _0x3613d2(_0x2511c7){const _0x4434b9=_0x5e5c00['mapper']['toViewPosition'](_0x2511c7),_0x2841c9=_0x5e5c00['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x1b335b});_0x5e5c00['writer']['insert'](_0x4434b9,_0x2841c9),_0x5e5c00['mapper']['bindElementToMarker'](_0x2841c9,_0x3e97dd['markerName']);}_0x275772||_0x31c065||!_0x3c12ae||_0x3613d2(_0x3c12ae);};}class wt extends _0xb699a1{constructor(_0x5d94d5){super(_0x5d94d5);const _0x10df61=_0x5d94d5['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x10df61,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x10df61,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x2ef014=this['editor'],_0xde929c=_0x2ef014['plugins']['get'](d),_0x572f6e=_0xde929c['isReady']?_0xde929c['diff']['newRevisionId']:null;_0x2ef014['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x572f6e);}['refresh'](){const {isReady:_0x281119,isEnabled:_0x4f232f,repository:_0x510e04,diff:_0x2bd317}=this['editor']['plugins']['get'](d),_0x39edb5=_0x2bd317&&_0x510e04['getLaterVisibleRevision'](_0x2bd317['newRevisionId']);this['isEnabled']=_0x281119&&_0x4f232f&&Boolean(_0x39edb5);}}class _t extends _0xb699a1{['_step'];constructor(_0x3de1a9,{direction:_0x424362}){super(_0x3de1a9);const _0x296e90=_0x3de1a9['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x424362?0x1:-0x1,this['listenTo'](_0x296e90,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x296e90,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x296e90,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x31e8e7=this['editor'],_0x562a4e=_0x31e8e7['plugins']['get'](d),{isNavigationMode:_0x935e9c,currentChangeNumber:_0x577d4f}=_0x562a4e;let _0x53ec07;if(_0x562a4e['activeChange']=_0x935e9c?_0x562a4e['diff']['changes']['get'](_0x577d4f+this['_step']):_0x562a4e['diff']['changes']['first'],_0x562a4e['activeChange']['data']['isOnRoot'])_0x53ec07=_0x31e8e7['editing']['view']['getDomRoot'](_0x562a4e['activeChange']['rootName']);else{const _0x5d5259=_0x31e8e7['model']['markers']['get']('revision:'+_0x562a4e['activeChange']['id']);_0x53ec07=_0x54c68b(_0x31e8e7['editing'],_0x5d5259);}_0x437d98({'target':_0x53ec07,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x15bb8e,currentChangeNumber:_0x155259,numberOfChanges:_0x52a596,isReady:_0x3f9a43,isEnabled:_0x1a0a33}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x1a0a33&&_0x3f9a43&&_0x52a596)&&(!_0x15bb8e||(0x1===this['_step']?_0x155259<_0x52a596-0x1:_0x155259>0x0));}}class di extends ts{constructor(_0x94356d){super(_0x94356d);const _0x19609b=this['bindTemplate'],_0x12546f=new te(_0x94356d),_0x229b8b=new te(_0x94356d);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',(_0x51225b,_0x2db920)=>_0x51225b&&_0x2db920>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x189484,_0x473e2d,_0x37f523,_0x44cf90)=>{if(!_0x189484)return m(_0x94356d,'Loading...');if(!_0x37f523)return m(_0x94356d,'No\x20changes');const _0x55b355=m(_0x94356d,'NUMBER_OF_CHANGES',_0x37f523);return _0x44cf90?m(_0x94356d,'X_OF_Y_CHANGES',[_0x473e2d+0x1,_0x37f523]):_0x55b355;}),_0x12546f['set']({'label':m(_0x94356d,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0xf1e0bd}),_0x229b8b['set']({'label':m(_0x94356d,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x533264}),_0x12546f['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x229b8b['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x12546f['on']('execute',()=>this['fire']('execute','backward')),_0x229b8b['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',_0x19609b['if']('_isStatusLabelVisible','ck-hidden',_0x48f79e=>!_0x48f79e)]},'children':[{'text':_0x19609b['to']('isNavigationMode',_0x503fbb=>_0x503fbb?m(_0x94356d,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x94356d,'Total')+':\x20')}]},{'text':_0x19609b['to']('_statusText')}]},new _0x4fe4cd(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x12546f,_0x229b8b]}]});}}const le='ck-editor__editable__loading-overlay';class de extends _0x657f6f{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x500616=this['editor']['editing']['view'];_0x500616['change'](_0x4518b4=>{for(const _0x10fded of _0x500616['document']['roots'])_0x4518b4['addClass'](le,_0x10fded);});}['hide'](){const _0x283aaf=this['editor']['editing']['view'];_0x283aaf['change'](_0x4d0474=>{for(const _0x38911d of _0x283aaf['document']['roots'])_0x4d0474['removeClass'](le,_0x38911d);});}}class w extends _0x657f6f{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,de];}['init'](){const _0x301276=this['editor'],_0x4ea0c2=_0x301276['plugins']['get'](d),_0x7a393=_0x301276['plugins']['get'](de);_0x301276['ui']['componentFactory']['add']('exitToEditing',_0x2813ed=>{const _0x2eaecc=new te(_0x2813ed);return _0x2eaecc['set']({'label':m(_0x2813ed,'Back\x20to\x20editing'),'icon':_0x28f7d6,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x2eaecc,'execute',()=>{_0x301276['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x2eaecc;}),_0x301276['ui']['componentFactory']['add']('restoreRevision',_0x56e355=>{const _0x2378bc=new te(_0x56e355);return _0x2378bc['set']({'label':m(_0x56e355,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x2378bc['bind']('isEnabled')['to'](_0x301276['commands']['get']('restoreRevision')),this['listenTo'](_0x2378bc,'execute',()=>_0x301276['execute']('restoreRevision')),_0x2378bc;}),_0x301276['ui']['componentFactory']['add']('changesNavigation',_0x3395d0=>{const _0x54c7ec=new di(_0x3395d0),_0x40ac89=_0x301276['commands']['get']('showPreviousChange'),_0x3c6e5e=_0x301276['commands']['get']('showNextChange');return _0x54c7ec['bind']('isBackwardNavigationEnabled')['to'](_0x40ac89,'isEnabled'),_0x54c7ec['bind']('isForwardNavigationEnabled')['to'](_0x3c6e5e,'isEnabled'),_0x54c7ec['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x4ea0c2),this['listenTo'](_0x54c7ec,'execute',(_0xb56233,_0x515812)=>{_0x301276['execute']('forward'===_0x515812?'showNextChange':'showPreviousChange');}),_0x54c7ec;}),_0x7a393['show'](),_0x4ea0c2['on']('change:isReady',(_0x75a648,_0x18524d,_0x4d0c82)=>{_0x4d0c82?_0x7a393['hide']():_0x7a393['show']();});}}class pt extends _0x4f90d2{['_resizeObserver']=null;constructor(_0x509fc7,_0x39bc8e){super(_0x509fc7,_0x39bc8e);const _0x5d9cab=this['bindTemplate'];this['set']({'label':m(_0x509fc7,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x509fc7,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x5d9cab['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new at(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x3f156a=this['fieldView']['element'];this['_tooltipString']=_0x3f156a['scrollWidth']>_0x3f156a['clientWidth']&&_0x3f156a['value']||'';}}class si extends ts{constructor(_0x4fc03a,_0x5fc88f,_0x12837a){super(_0x4fc03a);const _0x3a2a5e=new _0xc8a0bd();_0x3a2a5e['set']({'content':_0x53afc8,'viewBox':'0\x200\x2011\x2010'});const _0x4ee7e5=['ck','ck-revision-history-sidebar__revision-author'];_0x12837a&&_0x4ee7e5['push']('ck-revision-history-sidebar__revision-author_creator');const _0x3c247d=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x4fc03a,_0x12837a?'Revision\x20creator':'Revision\x20author')},'children':[_0x3a2a5e,_0x5fc88f['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x4ee7e5},'children':_0x3c247d});}}function oi(_0x4a34c8,_0x499f12){const _0x575d29=_0x4a34c8['bindTemplate'],_0x126f96=_0x4a34c8['locale'],_0x108143=_0xabbbe1(_0x126f96);_0x108143['panelPosition']='sw';const _0x22c31b=function(_0x485083,_0x21f3d8){const _0x495c79=function(_0x126b52,_0x11e122){const _0x26baf3=_0x126b52['locale'],_0xe58ed7={'Compare\x20against\x20selected':m(_0x26baf3,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x26baf3,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x26baf3,'Restore\x20this\x20revision')};return _0x11e122['map'](_0x2430ba=>{const _0x50256d=_0xe58ed7[_0x2430ba['name']];return _0x50256d&&_0x50256d!==_0x2430ba['name']&&(_0x2430ba['name']=_0x50256d),_0x2430ba;});}(_0x485083,_0x21f3d8),_0x207679=new _0x3c6e40();for(const _0x85b1d8 of _0x495c79){const _0x2b2e04={'type':'button','model':new to({'label':_0x85b1d8['name'],'class':_0x85b1d8['class'],'withText':!0x0,'role':'menuitem','_action':_0x85b1d8['action']})};_0x2b2e04['model']['bind']('isEnabled')['to'](_0x485083,'isActionsDropdownOpen',_0x381a46=>'function'!=typeof _0x85b1d8['isEnabled']||(!_0x381a46||_0x85b1d8['isEnabled'](_0x485083))),_0x207679['add'](_0x2b2e04);}return _0x207679;}(_0x4a34c8,_0x499f12);return _0x4a34c8['bind']('isActionsDropdownOpen')['to'](_0x108143,'isOpen'),_0x108143['buttonView']['set']({'label':m(_0x126f96,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x50c83d}),_0x108143['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x575d29['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x575d29['to'](_0x4d8823=>_0x4d8823['stopPropagation']())}}),_0x108143['on']('execute',_0x2d52dc=>{_0x4a34c8['isReady']&&'function'==typeof _0x2d52dc['source']['_action']&&_0x2d52dc['source']['_action'](_0x4a34c8);}),_0x3fbca8(_0x108143,_0x22c31b,{'role':'menu'}),_0x108143['listenTo'](_0x4a34c8,'change:isActionsDropdownOpen',(_0x4573f7,_0x5ea9f7,_0x64a1e3)=>{if(_0x64a1e3)for(const _0x3e399f of _0x108143['listView']['items']){const _0x352a45=_0x3e399f['children']['first'],_0x1fb66a=_0x499f12['find'](_0x4d0f27=>_0x4d0f27['action']===_0x352a45['_action'])['isVisible'];_0x3e399f['isVisible']=void 0x0===_0x1fb66a||_0x1fb66a(_0x4a34c8);}}),_0x108143;}class hi extends/* #__PURE__ -- @preserve */
|
|
26
|
+
ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x284627,_0x572e68,_0x189613,_0x29d9d2){super(_0x284627);const _0x3cd554=this['bindTemplate'],_0x391b82=function(_0x1fe6eb,_0x20c386){const _0x2c8f24=Array['from'](_0x20c386['authors'])['filter'](_0x241e41=>_0x241e41!=_0x20c386['creator']);return _0x20c386['creator']&&_0x2c8f24['unshift'](_0x20c386['creator']),_0x2c8f24['map'](_0x55fa4c=>new si(_0x1fe6eb,_0x55fa4c,_0x55fa4c==_0x20c386['creator']));}(_0x284627,_0x572e68);this['id']=_0x572e68['id'],this['_revision']=_0x572e68,this['_requireRevisionName']=_0x29d9d2,this['bind']('name','createdAt')['to'](_0x572e68),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x345974=>{return _0x17fbbc=_0x284627['uiLanguage'],(_0x122c5e=_0x345974)['toLocaleDateString'](_0x17fbbc,{'month':'long','day':'numeric'})+',\x20'+_0x122c5e['toLocaleTimeString'](_0x17fbbc,{'hour':'numeric','minute':'numeric'});var _0x17fbbc,_0x122c5e;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new pt(_0x284627,_0x1a5665),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0xc6b511=>_0xc6b511||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x480cd2,_0x5df452)=>_0x480cd2&&_0x5df452),this['revisionActionsView']=_0x189613&&_0x189613['length']?oi(this,_0x189613):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x3cd554['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x3cd554['if']('isEnabled','ck-disabled',_0x259adf=>!_0x259adf),_0x3cd554['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x3cd554['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x3cd554['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':_0x3cd554['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':_0x391b82}]},this['revisionActionsView']],'on':{'click':_0x3cd554['to'](_0x18d0be=>{_0x18d0be['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x534146=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x534146,'change',()=>{this['_requireRevisionName']&&!_0x534146['value']||this['fire']('setName',{'id':this['id'],'name':_0x534146['value']}),_0x534146['value']||(_0x534146['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function vi(_0x1f9874,_0x23dded){const _0x58912f=_0x498060['fromJSDate'](_0x1f9874)['setLocale'](_0x23dded),_0x5dc636=_0x498060['local'](),_0x9e71eb=_0x5dc636['minus']({'days':0x1})['startOf']('day');let _0x2aa92a,_0x1d596f;return _0x58912f['hasSame'](_0x5dc636,'day')?(_0x2aa92a=_0x58912f['startOf']('day')['toJSDate'](),_0x1d596f=_0x58912f['toRelativeCalendar']()):_0x58912f['hasSame'](_0x9e71eb,'day')?(_0x2aa92a=_0x9e71eb['toJSDate'](),_0x1d596f=_0x58912f['toRelativeCalendar']()):_0x58912f['hasSame'](_0x5dc636,'week')?(_0x2aa92a=_0x58912f['startOf']('week')['toJSDate'](),_0x1d596f=_0x58912f['weekdayLong']||''):_0x58912f['hasSame'](_0x5dc636,'year')?(_0x2aa92a=_0x58912f['startOf']('month')['toJSDate'](),_0x1d596f=_0x58912f['monthLong']||''):(_0x2aa92a=_0x58912f['startOf']('year')['toJSDate'](),_0x1d596f=String(_0x58912f['year'])),{'startDate':_0x2aa92a,'localizedPeriodName':_0x1d596f};}class mi extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x2c155d,_0x27ee81,_0x20180f,_0x2087a5){super(_0x2c155d);const _0x503c0f=vi(_0x27ee81,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x27ee81,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x20180f,this['_requireRevisionName']=_0x2087a5,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':_0x503c0f}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x307fdf){const _0x639729=new hi(this['locale'],_0x307fdf,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x639729);}['removeRevision'](_0x548a4c){const _0x5ecdff=this['revisionViews']['find'](_0xe85698=>_0xe85698['id']===_0x548a4c['id']);this['revisionViews']['remove'](_0x5ecdff);}}class as extends ts{constructor(_0x5e4857){super(_0x5e4857);const _0x4711ac=new _0xc8a0bd();_0x4711ac['content']=_0x3f127c,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x4711ac,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x5e4857,'Revision\x20history')]}]});}}class li extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x3e7950,_0x2b7123,_0x5a0206,_0x22d73f){super(_0x3e7950);const _0x2c2d12=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x2b7123,this['_revisionActions']=_0x5a0206,this['_requireRevisionName']=_0x22d73f,this['on']('select',(_0x47de07,_0x3fb1f9)=>{this['fire']('revisionSelected',_0x3fb1f9);}),this['on']('setName',(_0x520804,_0x58167a)=>{this['fire']('revisionSetName',_0x58167a);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x3e7950),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x2c2d12['if']('isEnabled','ck-disabled',_0x960214=>!_0x960214)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x54be41 of this['_revisions'])this['_addRevision'](_0x54be41);this['_revisions']['on']('add',(_0x30dc4e,_0x5b2351)=>{this['_addRevision'](_0x5b2351);}),this['_revisions']['on']('remove',(_0x2577e6,_0x26baf5)=>{this['_removeRevision'](_0x26baf5);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x1a1984=>_0x1a1984['revisionViews']['map'](_0xd449ae=>_0xd449ae))['flat']();}['selectRevision'](_0x5bf0ee){for(const _0x4e8e0e of this['revisionViews'])_0x5bf0ee&&_0x5bf0ee['id']===_0x4e8e0e['id']?_0x4e8e0e['select']():_0x4e8e0e['deselect']();}['highlightRevisions'](_0x4a1819){for(const _0x14c694 of this['revisionViews'])_0x4a1819['some'](({id:_0x58f84c})=>_0x58f84c===_0x14c694['id'])?_0x14c694['highlight']():_0x14c694['unhighlight']();}['_addRevision'](_0x574dec){const _0x5ff716=vi(_0x574dec['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x4df3c4=this['timePeriodViews']['get'](0x0);_0x4df3c4&&_0x4df3c4['startDate']['getTime']()===_0x5ff716['getTime']()||(_0x4df3c4=new mi(this['locale'],_0x5ff716,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x4df3c4)),_0x4df3c4['addRevision'](_0x574dec);}['_removeRevision'](_0x3492ac){const _0xb14171=vi(_0x3492ac['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0xb14171)['removeRevision'](_0x3492ac);}['_getTimePeriodViewByStartDate'](_0x29f9a6){return this['timePeriodViews']['find'](_0x52b3a7=>_0x52b3a7['startDate']['getTime']()===_0x29f9a6['getTime']());}}class g extends _0x657f6f{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
27
27
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
|
-
|
|
29
|
-
it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x3b7f0c,_0x39d2f3){super(_0x39d2f3),this['sourceElement']=_0x3b7f0c,this['model']['document']['createRoot']();const _0x40f957=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x40f957);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x5a75f9,_0x12eca5){const _0x1f7f89=new this(_0x5a75f9,_0x12eca5);return await _0x1f7f89['initPlugins'](),await _0x1f7f89['ui']['init'](_0x5a75f9),await _0x1f7f89['data']['init'](_0x1f7f89['config']['get']('initialData')||''),_0x1f7f89['fire']('ready'),_0x1f7f89;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0x1dcc45{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2383f4){function _0x35db15(_0xd4ea1f){return _0xd4ea1f['map'](_0x155e3f=>String['fromCharCode'](_0x155e3f))['join']('');}super(_0x2383f4),this['result']='end',_0x2383f4[_0x35db15([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x35db15([0x76,0x69,0x65,0x77])][_0x35db15([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x35db15([0x61,0x75,0x74,0x6f]),_0x2383f4[_0x35db15([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x35db15([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x35db15([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x35db15([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x35db15([0x6f,0x6b])});}}class k extends _0x1dcc45{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x265ec3){if(super(_0x265ec3),!this['editor']['config']['get']('revisionHistory'))throw new _0x242654('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x151be1=>this['_showRevisionViewer']({..._0x151be1,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x54e898=>this['_closeRevisionViewer'](_0x54e898)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x5b41cb=>this['_restoreRevision'](_0x5b41cb)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x51a31a){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x51a31a;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x2a62d1){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x2a62d1);}['getRevision'](_0x435111){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x435111);}['getRevisions'](_0x41b503){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x41b503||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0xa4735c=this['editor'],_0x293a4f=_0x440d65(_0xa4735c,p),_0x3e13bd=_0xa4735c['plugins']['get']('RevisionTracker'),_0xde0954=_0xa4735c['plugins']['get']('Users')['users'];return _0x293a4f['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x293a4f['lazyRoots'],(_0x293a4f['plugins']['push'](Rt,d,w,class extends _0x1dcc45{static get['requires'](){return[d,'Users'];}['init'](){const _0x5d80ec=this['editor']['plugins']['get']('Users');for(const _0x4c51ba of _0xde0954)_0x4c51ba['isAnonymous']||_0x5d80ec['getUser'](_0x4c51ba['id'])||_0x5d80ec['addUser'](_0x4c51ba);const _0x1a8082=_0x3e13bd['repository']['getRevisions']();let _0x1f5113=null;const _0x1a554a=this['editor']['plugins']['get']('RevisionViewer');_0x1a554a['adapter']=_0x3e13bd['adapter'],_0x1a554a['bind']('isEnabled')['to'](_0x3e13bd),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0xa4735c,'isReadOnly',_0x57071f=>!_0x57071f);for(const _0x2b0eb5 of _0x1a8082){const _0x3bcd2e=null===_0x2b0eb5['creator'];if(_0x3bcd2e&&_0x2b0eb5['toVersion']===_0x2b0eb5['fromVersion'])continue;const _0x4c3c48=_0x2b0eb5['toJSON']();_0x1a554a['addRevisionData'](_0x4c3c48,(_0x37581c,_0x5a7950,_0x5a9828)=>{if(_0x3bcd2e){if(_0x1f5113)_0x1f5113['_update'](_0x37581c,_0x5a7950);else{if(!_0x5a7950){const _0x3ac68a=_0x5a9828['toJSON']();_0x3ac68a['id']=_0x3807e5(),_0x3e13bd['saveRevision'](_0x3ac68a,_0x5a9828['toVersion'])['then'](_0x20e759=>{_0x1f5113=_0x20e759;});}}}else _0x2b0eb5['_update'](_0x37581c,_0x5a7950);});}}},g),_0x293a4f);}['_enhanceShowRevisionViewerCallback'](){const _0x4e3b12=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x4750b7=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x4c6ecb=this['editor']['plugins']['get']('Autosave');await _0x4c6ecb['save']();}else await _0x4750b7['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x275134=this['editor']['plugins']['get']('Dialog');_0x275134['isOpen']&&_0x275134['hide']();}const _0x2ded8c=this['_getRevisionViewerEditorConfig']();return _0x4e3b12(_0x2ded8c)['then'](_0xee8b5d=>{return(this['_viewerEditor']=_0xee8b5d,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0xee8b5d;})['catch'](_0x40f521=>(console['error'](_0x40f521),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x542fe6=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x542fe6(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x3875a5=this['editor']['plugins']['get']('Annotations');_0x3875a5['refreshVisibility'](),_0x3875a5['refreshPositioning']();}})));}['_showRevisionViewer'](_0x3bd9cd){const _0x17b16f=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x15f923=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x56758e=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x56758e,_0x3bd9cd)['then'](_0x4ee3a5=>(_0x15f923['style']['display']='block',_0x17b16f['style']['display']='none',_0x4ee3a5));}['_closeRevisionViewer'](_0x5493b7){const _0x38b3ea=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x38b3ea['style']['display']='',_0x5493b7['destroy']();}async['_restoreRevision'](_0x5db8c4){const _0x40cf48=this['editor'],_0x606244=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x348f7c=_0x40cf48['plugins']['get']('RevisionTracker'),_0x168174=_0x606244['repository']['getRevision'](_0x5db8c4);let _0x540154,_0x3cb2ea,_0x270c49;try{_0x540154=await _0x606244['getRevisionData'](_0x168174),_0x3cb2ea=await _0x606244['getRevisionRootsAttributes'](_0x168174);}catch(_0x27459c){return void console['error'](_0x27459c);}_0x40cf48['model']['change'](_0x1c3f8c=>{for(const _0x4f1234 of Array['from'](_0x40cf48['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x1c3f8c['removeMarker'](_0x4f1234);}),_0x606244['isReady']=!0x1,_0x40cf48['model']['enqueueChange'](_0xb77525=>{_0xb77525['setSelection'](null),_0xb77525['removeSelectionAttribute'](_0x40cf48['model']['document']['selection']['getAttributeKeys']());const _0x2b1296=Object['keys'](_0x540154);for(const _0x2626e2 of _0x40cf48['model']['document']['roots'])'$graveyard'!=_0x2626e2['rootName']&&_0x2626e2['isAttached']()&&!_0x2b1296['includes'](_0x2626e2['rootName'])&&_0xb77525['detachRoot'](_0x2626e2);for(const _0x3f6721 of _0x2b1296){let _0x1edb31=_0x40cf48['model']['document']['getRoot'](_0x3f6721);_0x1edb31&&_0x1edb31['isAttached']()||(_0x1edb31=_0xb77525['addRoot'](_0x3f6721));const _0xccdb07=_0x3cb2ea[_0x3f6721],_0x988612=Object['keys'](_0xccdb07),_0x3cf73a=_0x540154[_0x3f6721];for(const _0x50e91a of _0x1edb31['getAttributeKeys']())_0x988612['includes'](_0x50e91a)||_0xb77525['removeAttribute'](_0x50e91a,_0x1edb31);for(const _0x25d0d6 of _0x988612)_0xb77525['setAttribute'](_0x25d0d6,_0x3cb2ea[_0x3f6721][_0x25d0d6],_0x1edb31);_0xb77525['remove'](_0xb77525['createRangeIn'](_0x1edb31)),_0xb77525['insert'](_0x40cf48['data']['parse'](_0x3cf73a,_0x1edb31),_0x1edb31,0x0);}});const _0x1aed76=m(_0x40cf48['locale'],'Restored');if(_0x168174['name'])_0x270c49=-0x1==_0x168174['name']['indexOf'](_0x1aed76)?_0x1aed76+':\x20'+_0x168174['name']:_0x168174['name'];else _0x270c49=_0x1aed76+':\x20'+(_0x168174['createdAt']['toLocaleDateString'](_0x40cf48['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x168174['createdAt']['toLocaleTimeString'](_0x40cf48['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x348f7c['saveRevision']({'name':_0x270c49}),_0x606244['isReady']=!0x0,_0x40cf48['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,u as RevisionTracker,d as RevisionViewer,te as RevisionViewerLoadingOverlay,w as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};
|
|
28
|
+
yt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0xa21753){super(_0xa21753),this['_revisionViewer']=_0xa21753['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x30a5fd=this['_revisionsRepository']['_revisions'],_0x240487=this['_createRevisionActions'](),_0x8ae0be=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new li(this['editor']['locale'],_0x30a5fd,_0x240487,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',(_0x56e6ec,_0x243f11)=>{_0x243f11['revisionViews']['on']('add',(_0x1f5e69,_0x166ec4)=>{_0x166ec4['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)),_0x8ae0be['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x331e19=this['_revisionsRepository']['getRevision'](0x0);if(_0x331e19){const _0x43f46e=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x331e19['id']);this['_revisionViewer']['compare'](_0x331e19,_0x43f46e);}}['_handleRevisionSelected'](_0x29289a,_0x1e5f2e){const _0x5b9e88=this['_revisionsRepository']['getRevision'](_0x1e5f2e['id']),_0x34e499=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x5b9e88['id']);this['_revisionViewer']['compare'](_0x5b9e88,_0x34e499);}['_handleRevisionSetName'](_0x5487cc,_0x6f1ea9){this['_revisionsRepository']['getRevision'](_0x6f1ea9['id'])['setName'](_0x6f1ea9['name']);}['_handleDiffChange'](_0x99404,_0x21c55d,_0x1e5c45){const _0x4b0457=this['_revisionsRepository']['getRevisionsInDiff'](_0x1e5c45);_0x4b0457['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x4b0457),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x4b0457[0x0]));}['_createRevisionActions'](){const _0x5c2f83=this['editor'],_0xfcf64b=g['availableRevisionActions'],_0x3049ad=_0x5c2f83['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x3049ad['length'])return _0x3049ad['map'](_0x5503d5=>{const _0x13b33f='string'==typeof _0x5503d5?Object['assign']({},_0xfcf64b[_0x5503d5]):_0x5503d5;return _0x13b33f['action']=_0x13b33f['action']['bind'](this,_0x5c2f83),_0x13b33f['isVisible']&&(_0x13b33f['isVisible']=_0x13b33f['isVisible']['bind'](this,_0x5c2f83)),_0x13b33f;});}}function yt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x2c5785},_0x3a48d1)=>{const _0x143e57=_0x2c5785['get'](d),_0xcf6a=_0x143e57['repository'];let _0x57f8b0=_0x143e57['diff']['newRevisionId'],_0x5c6f8f=_0x3a48d1['id'];_0xcf6a['getIndex'](_0x57f8b0)>_0xcf6a['getIndex'](_0x5c6f8f)&&([_0x57f8b0,_0x5c6f8f]=[_0x5c6f8f,_0x57f8b0]),_0x143e57['compare'](_0x57f8b0,_0x5c6f8f);},'isVisible':({plugins:_0x12bbd8},_0x166c02)=>{const _0x1e88f2=_0x12bbd8['get'](d);return!(_0x1e88f2['repository']['getRevisionsInDiff'](_0x1e88f2['diff'])['length']>0x2)&&!_0x166c02['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x1a2310,{id:_0x5c69ba})=>{_0x1a2310['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x5c69ba);},'isVisible':({plugins:_0x5023dd},_0x282feb)=>!!_0x5023dd['get'](d)['repository']['getLaterVisibleRevision'](_0x282feb['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x1df9df},{id:_0x1ab6dc,revisionNameView:_0x4550b4})=>{const _0x4c3bfb=_0x1df9df['get'](d),_0x2d018b=_0x4c3bfb['repository']['getEarlierVisibleRevision'](_0x1ab6dc);_0x4c3bfb['compare'](_0x1ab6dc,_0x2d018b),_0x4550b4['focus'](),_0x4550b4['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x108cfc,_0x5d39da){super(_0x108cfc),this['_view']=_0x5d39da,this['_toolbarConfig']=ot(_0x108cfc['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x1a1e4f){const _0x1b7284=this['editor'],_0x410d75=this['view'],_0x359099=_0x1b7284['editing']['view'],_0x2b20db=_0x410d75['editable'],_0x5203d1=_0x359099['document']['getRoot']();_0x2b20db['name']=_0x5203d1['rootName'],_0x410d75['render']();const _0x1493ee=_0x2b20db['element'];this['setEditableElement'](_0x2b20db['name'],_0x1493ee),_0x410d75['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x359099['attachDomRoot'](_0x1493ee),this['_elementReplacer']['replace'](_0x1a1e4f,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x3a70ee=this['view'],_0x388b8b=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x388b8b['detachDomRoot'](_0x3a70ee['editable']['name']),_0x3a70ee['destroy']();}['_initToolbar'](){const _0x13aa5d=this['view'];_0x13aa5d['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x13aa5d['stickyPanel']['limiterElement']=_0x13aa5d['element'],_0x13aa5d['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x4a8186})=>_0x4a8186),_0x13aa5d['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x13aa5d['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x2111a5,_0x22b18f,_0x151943={}){super(_0x2111a5),this['stickyPanel']=new lt(_0x2111a5),this['toolbar']=new nt(_0x2111a5,{'shouldGroupWhenFull':_0x151943['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x2111a5,_0x22b18f);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class R extends/* #__PURE__ -- @preserve */
|
|
29
|
+
it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x495bad,_0x219f1c){super(_0x219f1c),this['sourceElement']=_0x495bad,this['model']['document']['createRoot']();const _0x40ad29=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x40ad29);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x4aa87d,_0x4e4446){const _0x2481cd=new this(_0x4aa87d,_0x4e4446);return await _0x2481cd['initPlugins'](),await _0x2481cd['ui']['init'](_0x4aa87d),await _0x2481cd['data']['init'](_0x2481cd['config']['get']('initialData')||''),_0x2481cd['fire']('ready'),_0x2481cd;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class bt extends _0x657f6f{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5a6714){function _0x15f77b(_0x2860fc){return _0x2860fc['map'](_0x64b0d3=>String['fromCharCode'](_0x64b0d3))['join']('');}super(_0x5a6714),this['result']='end',_0x5a6714[_0x15f77b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x15f77b([0x76,0x69,0x65,0x77])][_0x15f77b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x15f77b([0x61,0x75,0x74,0x6f]),_0x5a6714[_0x15f77b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x15f77b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x15f77b([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x15f77b([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x15f77b([0x6f,0x6b])});}}class k extends _0x657f6f{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0xb3d427){if(super(_0xb3d427),!this['editor']['config']['get']('revisionHistory'))throw new _0x2159a5('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0xc349d1=>this['_showRevisionViewer']({..._0xc349d1,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x345d79=>this['_closeRevisionViewer'](_0x345d79)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0xcc0f78=>this['_restoreRevision'](_0xcc0f78)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x51879b){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x51879b;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x5d095f){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x5d095f);}['getRevision'](_0x5d9587){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x5d9587);}['getRevisions'](_0x402329){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x402329||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x15abc7=this['editor'],_0x4e9707=_0x49f976(_0x15abc7,p),_0x533b04=_0x15abc7['plugins']['get']('RevisionTracker'),_0x4e37c1=_0x15abc7['plugins']['get']('Users')['users'];return _0x4e9707['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x4e9707['lazyRoots'],(_0x4e9707['plugins']['push'](bt,d,w,class extends _0x657f6f{static get['requires'](){return[d,'Users'];}['init'](){const _0x21c4a8=this['editor']['plugins']['get']('Users');for(const _0x11cc18 of _0x4e37c1)_0x11cc18['isAnonymous']||_0x21c4a8['getUser'](_0x11cc18['id'])||_0x21c4a8['addUser'](_0x11cc18);const _0x54f5d4=_0x533b04['repository']['getRevisions']();let _0x5d8fc2=null;const _0x41b1f1=this['editor']['plugins']['get']('RevisionViewer');_0x41b1f1['adapter']=_0x533b04['adapter'],_0x41b1f1['bind']('isEnabled')['to'](_0x533b04),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x15abc7,'isReadOnly',_0x24f503=>!_0x24f503);for(const _0x1e33f7 of _0x54f5d4){const _0x45bdad=null===_0x1e33f7['creator'];if(_0x45bdad&&_0x1e33f7['toVersion']===_0x1e33f7['fromVersion'])continue;const _0x3d6ee7=_0x1e33f7['toJSON']();_0x41b1f1['addRevisionData'](_0x3d6ee7,(_0x57c450,_0x5b9efd,_0x5a1181)=>{if(_0x45bdad){if(_0x5d8fc2)_0x5d8fc2['_update'](_0x57c450,_0x5b9efd);else{if(!_0x5b9efd){const _0x2e3e57=_0x5a1181['toJSON']();_0x2e3e57['id']=_0x1916c0(),_0x533b04['saveRevision'](_0x2e3e57,_0x5a1181['toVersion'])['then'](_0x5487a7=>{_0x5d8fc2=_0x5487a7;});}}}else _0x1e33f7['_update'](_0x57c450,_0x5b9efd);});}}},g),_0x4e9707);}['_enhanceShowRevisionViewerCallback'](){const _0x4acd20=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x5ca2f1=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x67c255=this['editor']['plugins']['get']('Autosave');await _0x67c255['save']();}else await _0x5ca2f1['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x4589cf=this['editor']['plugins']['get']('Dialog');_0x4589cf['isOpen']&&_0x4589cf['hide']();}const _0x19a588=this['_getRevisionViewerEditorConfig']();return _0x4acd20(_0x19a588)['then'](_0x301596=>{return(this['_viewerEditor']=_0x301596,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x301596;})['catch'](_0x18400d=>(console['error'](_0x18400d),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x326f46=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x326f46(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x1ce2cc=this['editor']['plugins']['get']('Annotations');_0x1ce2cc['refreshVisibility'](),_0x1ce2cc['refreshPositioning']();}})));}['_showRevisionViewer'](_0x52ce99){const _0x224715=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x43dfa6=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0xac9335=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0xac9335,_0x52ce99)['then'](_0x28ede8=>(_0x43dfa6['style']['display']='block',_0x224715['style']['display']='none',_0x28ede8));}['_closeRevisionViewer'](_0x3f4217){const _0x45c649=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x45c649['style']['display']='',_0x3f4217['destroy']();}async['_restoreRevision'](_0x229e39){const _0x4e2559=this['editor'],_0x58206e=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x3a5029=_0x4e2559['plugins']['get']('RevisionTracker'),_0x3cf4b7=_0x58206e['repository']['getRevision'](_0x229e39);let _0x7aa299,_0x237d1c,_0x3b0073;try{_0x7aa299=await _0x58206e['getRevisionData'](_0x3cf4b7),_0x237d1c=await _0x58206e['getRevisionRootsAttributes'](_0x3cf4b7);}catch(_0x230899){return void console['error'](_0x230899);}_0x4e2559['model']['change'](_0x4e6eb3=>{for(const _0x7ed547 of Array['from'](_0x4e2559['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x4e6eb3['removeMarker'](_0x7ed547);}),_0x58206e['isReady']=!0x1,_0x4e2559['model']['enqueueChange'](_0x382a24=>{_0x382a24['setSelection'](null),_0x382a24['removeSelectionAttribute'](_0x4e2559['model']['document']['selection']['getAttributeKeys']());const _0x57811c=Object['keys'](_0x7aa299);for(const _0x42eceb of _0x4e2559['model']['document']['roots'])'$graveyard'!=_0x42eceb['rootName']&&_0x42eceb['isAttached']()&&!_0x57811c['includes'](_0x42eceb['rootName'])&&_0x382a24['detachRoot'](_0x42eceb);for(const _0x54731b of _0x57811c){let _0x55a4b8=_0x4e2559['model']['document']['getRoot'](_0x54731b);_0x55a4b8&&_0x55a4b8['isAttached']()||(_0x55a4b8=_0x382a24['addRoot'](_0x54731b));const _0x980b80=_0x237d1c[_0x54731b],_0x330d52=Object['keys'](_0x980b80),_0x4f4316=_0x7aa299[_0x54731b];for(const _0x6ca00f of _0x55a4b8['getAttributeKeys']())_0x330d52['includes'](_0x6ca00f)||_0x382a24['removeAttribute'](_0x6ca00f,_0x55a4b8);for(const _0x2a9205 of _0x330d52)_0x382a24['setAttribute'](_0x2a9205,_0x237d1c[_0x54731b][_0x2a9205],_0x55a4b8);_0x382a24['remove'](_0x382a24['createRangeIn'](_0x55a4b8)),_0x382a24['insert'](_0x4e2559['data']['parse'](_0x4f4316,_0x55a4b8),_0x55a4b8,0x0);}});const _0x44c17d=m(_0x4e2559['locale'],'Restored');if(_0x3cf4b7['name'])_0x3b0073=-0x1==_0x3cf4b7['name']['indexOf'](_0x44c17d)?_0x44c17d+':\x20'+_0x3cf4b7['name']:_0x3cf4b7['name'];else _0x3b0073=_0x44c17d+':\x20'+(_0x3cf4b7['createdAt']['toLocaleDateString'](_0x4e2559['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x3cf4b7['createdAt']['toLocaleTimeString'](_0x4e2559['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x3a5029['saveRevision']({'name':_0x3b0073}),_0x58206e['isReady']=!0x0,_0x4e2559['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,u as RevisionTracker,d as RevisionViewer,de as RevisionViewerLoadingOverlay,w as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};
|