@ckeditor/ckeditor5-revision-history 45.2.1-alpha.9 → 45.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/dist/index.js +6 -6
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +11 -11
- package/src/changeitem.js +2 -2
- package/src/editor/revisionviewereditor.js +2 -2
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/index.js +1 -1
- package/src/revision.js +2 -2
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionhistoryutils.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +2 -2
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ObservableMixin as
|
|
24
|
-
_0x4fa367(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x39b478){super(),this['id']=_0x39b478['id']||_0x2a1139(),this['creator']=_0x39b478['creator']||null,this['authors']=_0x39b478['authors']||[],this['diffData']=_0x39b478['diffData']||null,this['toVersion']=_0x39b478['toVersion']||0x0,this['fromVersion']=_0x39b478['fromVersion']||0x0,this['set']('name',_0x39b478['name']||''),this['set']('createdAt',_0x39b478['createdAt']||new Date()),this['set']('attributes',_0x39b478['attributes']||{});}['setName'](_0x13d754){this['_update']({'name':_0x13d754});}['setAttribute'](_0x4776dd,_0xa04512){const _0x2c3871=_0x40ea9a(this['attributes']);_0x3cff0f(_0x2c3871,_0x4776dd,_0xa04512),this['_update']({'attributes':_0x2c3871});}['removeAttribute'](_0x45a39c){const _0x50f2af=_0x40ea9a(this['attributes']);_0x499e91(_0x50f2af,_0x45a39c),this['_update']({'attributes':_0x50f2af});}['_update'](_0x2fe6e9,_0x1fcc43=!0x1){let _0x55c8ba=!0x1;const _0x5510d1={'id':this['id']},_0x54ac3b=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x531888 of _0x54ac3b){const _0x146589=_0x2fe6e9[_0x531888];void 0x0!==_0x146589&&_0x146589!==this[_0x531888]&&(this[_0x531888]=_0x146589,_0x5510d1[_0x531888]=_0x146589,_0x55c8ba=!0x0);}_0x55c8ba&&(_0x5510d1['authors']&&(_0x5510d1['authorsIds']=_0x5510d1['authors']['map'](_0x35aa61=>_0x35aa61['id']),delete _0x5510d1['authors']),this['fire']('_update',_0x5510d1,_0x1fcc43));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x2c251c=>_0x2c251c['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x443a46{['_revisions'];static get['requires'](){return[_0x33d7db];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0xd0fe2c){super(_0xd0fe2c),this['_revisions']=new _0x239345();}['afterInit'](){!async function(_0x22be14){const _0x2da73c=_0x27acd9([0x4b,0x6e,0x79,0x52,0x4a,0x6b,0x4d,0x54,0x49,0x4e,0x50,0x41,0x77,0x75,0x51,0x70,0x42,0x47,0x33,0x61,0x71,0x38,0x32,0x68,0x58,0x59,0x66,0x37,0x30,0x36,0x6a,0x57,0x43,0x44,0x53,0x46,0x56,0x7a,0x55,0x78,0x31,0x4f,0x64,0x35,0x6f,0x45,0x69,0x72,0x48,0x74,0x4c,0x5a,0x65,0x63,0x62,0x34,0x67,0x73,0x39,0x76,0x6d,0x6c]),_0x4689aa=0xeb829,_0x422992=0x66ba9dbe,_0x4c7940=0x66bdf62e^_0x422992,_0x4288f7=window[_0x27acd9([0x44,0x61,0x74,0x65])][_0x27acd9([0x6e,0x6f,0x77])](),_0x539bf9=_0x22be14[_0x27acd9([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x300aa7=new window[(_0x27acd9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x20875b=>{_0x539bf9[_0x27acd9([0x6f,0x6e,0x63,0x65])](_0x27acd9([0x72,0x65,0x61,0x64,0x79]),_0x20875b);}),_0x20c486={[_0x27acd9([0x6b,0x74,0x79])]:_0x27acd9([0x45,0x43]),[_0x27acd9([0x75,0x73,0x65])]:_0x27acd9([0x73,0x69,0x67]),[_0x27acd9([0x63,0x72,0x76])]:_0x27acd9([0x50,0x2d,0x32,0x35,0x36]),[_0x27acd9([0x78])]:_0x27acd9([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]),[_0x27acd9([0x79])]:_0x27acd9([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]),[_0x27acd9([0x61,0x6c,0x67])]:_0x27acd9([0x45,0x53,0x32,0x35,0x36])},_0x524060=_0x539bf9[_0x27acd9([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x27acd9([0x67,0x65,0x74])](_0x27acd9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2cbe56(){let _0x56b479,_0xe7e4da=null,_0x4314f5=null;try{if(_0x524060==_0x27acd9([0x47,0x50,0x4c]))return _0x27acd9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x56b479=_0x261440(),!_0x56b479)return _0x27acd9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x56b479[_0x27acd9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4314f5=_0x2fcc64(_0x56b479[_0x27acd9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x56b479[_0x27acd9([0x6a,0x74,0x69])])),await _0x600cb5()?_0x5cb2d1()?_0x24d2ef()?_0x27acd9([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x178791()?(_0x56b479[_0x27acd9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x27acd9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xe7e4da=_0x498f87(_0x27acd9([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x56b479[_0x27acd9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x27acd9([0x74,0x72,0x69,0x61,0x6c])&&(_0xe7e4da=_0x498f87(_0x27acd9([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x15f110()):_0x27acd9([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x27acd9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x27acd9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x27acd9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x24d2ef(){const _0x265682=[_0x27acd9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x27acd9([0x74,0x72,0x69,0x61,0x6c])][_0x27acd9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x56b479[_0x27acd9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4288f7/0x3e8:0xe10*_0x4c7940;return _0x56b479[_0x27acd9([0x65,0x78,0x70])]<_0x265682;}function _0x5cb2d1(){const _0x1ac330=_0x56b479[_0x27acd9([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x1ac330)return!0x1;if(_0x1ac330[_0x27acd9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x27acd9([0x2a])))return!0x0;if(_0x1ac330[_0x27acd9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x27acd9([0x52,0x48])))return!0x0;if(_0x1ac330[_0x27acd9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x27acd9([0x52,0x52,0x48]))){if(_0x3f944d())return!0x0;if(_0x1a35f8()||_0x1280d4())return!0x0;}return!0x1;}function _0x178791(){const _0x3f606b=_0x56b479[_0x27acd9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3f606b||0x0==_0x3f606b[_0x27acd9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xf770c8}=new URL(window[_0x27acd9([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3f606b[_0x27acd9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf770c8))return!0x0;const _0x3c6fc6=_0xf770c8[_0x27acd9([0x73,0x70,0x6c,0x69,0x74])](_0x27acd9([0x2e]));return _0x3f606b[_0x27acd9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4bcdfe=>_0x4bcdfe[_0x27acd9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x27acd9([0x2a])))[_0x27acd9([0x6d,0x61,0x70])](_0x2e48fe=>_0x2e48fe[_0x27acd9([0x73,0x70,0x6c,0x69,0x74])](_0x27acd9([0x2e])))[_0x27acd9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xa87b8c=>_0xa87b8c[_0x27acd9([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3c6fc6[_0x27acd9([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x27acd9([0x6d,0x61,0x70])](_0x482aca=>Array(_0x3c6fc6[_0x27acd9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x482aca[_0x27acd9([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x27acd9([0x66,0x69,0x6c,0x6c])](_0x482aca[0x0]===_0x27acd9([0x2a])?_0x27acd9([0x2a]):'')[_0x27acd9([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x482aca))[_0x27acd9([0x73,0x6f,0x6d,0x65])](_0x5c9377=>_0x3c6fc6[_0x27acd9([0x65,0x76,0x65,0x72,0x79])]((_0x5a60be,_0x2bd812)=>_0x5c9377[_0x2bd812]===_0x5a60be||_0x5c9377[_0x2bd812]===_0x27acd9([0x2a])));}function _0x15f110(){return _0xe7e4da&&_0x4314f5?new window[(_0x27acd9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4a3585,_0x5a6b9a)=>{_0xe7e4da[_0x27acd9([0x74,0x68,0x65,0x6e])](_0x4a3585,_0x5a6b9a),_0x4314f5[_0x27acd9([0x74,0x68,0x65,0x6e])](_0x55aab7=>{_0x55aab7!=_0x27acd9([0x56,0x61,0x6c,0x69,0x64])&&_0x4a3585(_0x55aab7);},_0x5a6b9a);}):_0xe7e4da||_0x4314f5||_0x27acd9([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2fcc64(_0x160de4,_0x34145a){return new window[(_0x27acd9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2149d6=>{if(_0x58daf4())return _0x2149d6(_0x27acd9([0x56,0x61,0x6c,0x69,0x64]));_0x88955f(),_0x539bf9[_0x27acd9([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x27acd9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3c66d9=!0x1;const _0x312edf=_0x2a1139();function _0x42b7e4(_0x282498){return!!_0x282498&&(typeof _0x282498===_0x27acd9([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x282498===_0x27acd9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x282498[_0x27acd9([0x74,0x68,0x65,0x6e])]===_0x27acd9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x282498[_0x27acd9([0x63,0x61,0x74,0x63,0x68])]===_0x27acd9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x11a3f8(_0x588b03){_0x10b8c4(_0x588b03)[_0x27acd9([0x74,0x68,0x65,0x6e])](_0x3aaa28=>{if(!_0x3aaa28||_0x3aaa28[_0x27acd9([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x27acd9([0x6f,0x6b]))return _0x27acd9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xe40fb(_0x255ab8(_0x312edf+_0x34145a))!=_0x3aaa28[_0x27acd9([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x27acd9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x27acd9([0x56,0x61,0x6c,0x69,0x64]);})[_0x27acd9([0x74,0x68,0x65,0x6e])](_0xb2ec8c=>(_0x1fa8c9(),_0xb2ec8c),()=>{const _0x192f55=_0x4e8b27();return null==_0x192f55?(_0x1fa8c9(),_0x27acd9([0x56,0x61,0x6c,0x69,0x64])):_0x27acd9(_0x4288f7-_0x192f55>(0x42b619be^_0x422992)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x27acd9([0x74,0x68,0x65,0x6e])](_0x2149d6)[_0x27acd9([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2149d6(_0x27acd9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2cbe47=0x668c733e^_0x422992;function _0x1fa8c9(){const _0x21b725=_0x27acd9([0x6c,0x6c,0x63,0x74,0x2d])+_0xe40fb(_0x255ab8(_0x160de4)),_0x1c07f1=_0x999d34(_0xe40fb(window[_0x27acd9([0x4d,0x61,0x74,0x68])][_0x27acd9([0x63,0x65,0x69,0x6c])](_0x4288f7/_0x2cbe47)));window[_0x27acd9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x27acd9([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x21b725,_0x1c07f1);}function _0x4e8b27(){const _0x938a18=_0x27acd9([0x6c,0x6c,0x63,0x74,0x2d])+_0xe40fb(_0x255ab8(_0x160de4)),_0x48b180=window[_0x27acd9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x27acd9([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x938a18);return _0x48b180?window[_0x27acd9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x999d34(_0x48b180),0x10)*_0x2cbe47:null;}function _0x10b8c4(_0x3171b5){return new window[(_0x27acd9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5489f0,_0x4d515d)=>{_0x3171b5[_0x27acd9([0x74,0x68,0x65,0x6e])](_0x5489f0,_0x4d515d),window[_0x27acd9([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4d515d,0x66bb497e^_0x422992);});}}_0x539bf9[_0x27acd9([0x6f,0x6e])](_0x27acd9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4480fc,_0x2ff125)=>{if(_0x2ff125[0x0]!=_0x160de4)return _0x2149d6(_0x27acd9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2ff125[0x1]={..._0x2ff125[0x1],[_0x27acd9([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x312edf};},{[_0x27acd9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x27acd9([0x68,0x69,0x67,0x68])}),_0x539bf9[_0x27acd9([0x6f,0x6e])](_0x27acd9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x215ffe=>{_0x42b7e4(_0x215ffe[_0x27acd9([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3c66d9=!0x0,_0x11a3f8(_0x215ffe[_0x27acd9([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x27acd9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x27acd9([0x6c,0x6f,0x77])}),_0x300aa7[_0x27acd9([0x74,0x68,0x65,0x6e])](()=>{_0x3c66d9||_0x2149d6(_0x27acd9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x58daf4(){return _0x539bf9[_0x27acd9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x27acd9([0x76,0x69,0x65,0x77])][_0x27acd9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x27acd9([0x61,0x75,0x74,0x6f]);}function _0x88955f(){_0x539bf9[_0x27acd9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x27acd9([0x76,0x69,0x65,0x77])][_0x27acd9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x27acd9([0x61,0x75,0x74,0x6f]);}}function _0x498f87(_0x53d5f1){const _0x3dbec6=[new window[(_0x27acd9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x85a961=>setTimeout(_0x85a961,0x66b3a372^_0x422992)),_0x300aa7[_0x27acd9([0x74,0x68,0x65,0x6e])](()=>new window[(_0x27acd9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x54ee08=>{const _0x5e8102=0x66ba9db9^_0x422992,_0x2d4a42=_0x22be14[_0x27acd9([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0xbb5a4(){_0x2d4a42[_0x27acd9([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x5e8102&&_0x54ee08();}_0xbb5a4(),_0x2d4a42[_0x27acd9([0x6f,0x6e])](_0x27acd9([0x61,0x64,0x64]),_0xbb5a4);})),new window[(_0x27acd9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x52b1cc=>{function _0x648958(){for(const _0x103bef in window)if(window[_0x27acd9([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x27acd9([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x103bef))&&window[_0x103bef]==_0x4689aa)return _0x52b1cc();_0x539bf9[_0x27acd9([0x73,0x74,0x61,0x74,0x65])]!=_0x27acd9([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x27acd9([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x648958,0x66ba8e36^_0x422992);}_0x2a845e(_0x27acd9([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x648958();})];return window[_0x27acd9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x27acd9([0x72,0x61,0x63,0x65])](_0x3dbec6)[_0x27acd9([0x74,0x68,0x65,0x6e])](()=>_0x53d5f1);}async function _0x544278(){if(await _0x300aa7,_0x2a845e(_0x27acd9([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x22e11c=_0x22be14[_0x27acd9([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x38bfab=_0x22be14[_0x27acd9([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])](_0x22e11c[_0x27acd9([0x69,0x64])]),_0x1f9669=_0x290696(_0x27acd9([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x1f9669[_0x27acd9([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x22e11c['id'],_0x38bfab?_0x38bfab['id']:null,!0x0),_0x1f9669[_0x27acd9([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x27acd9([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x1f9669[_0x27acd9([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x1f9669[_0x27acd9([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x5c9f17,void(_0x1f9669[_0x27acd9([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x5c9f17);}if(_0x2a845e(_0x27acd9([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x171543=_0x290696(_0x27acd9([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x171543[_0x27acd9([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x27acd9([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x171543[_0x27acd9([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x171543[_0x27acd9([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x5c9f17,_0x171543[_0x27acd9([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x5c9f17;}_0x539bf9[_0x27acd9([0x6d,0x6f,0x64,0x65,0x6c])][_0x27acd9([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5c9f17,_0x539bf9[_0x27acd9([0x6d,0x6f,0x64,0x65,0x6c])][_0x27acd9([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5c9f17,_0x539bf9[_0x27acd9([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x27acd9([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3f944d(){return _0x2a845e(_0x27acd9([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x290696(_0x27acd9([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x27acd9([0x73,0x74,0x61,0x74,0x65])]==_0x27acd9([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1a35f8(){return _0x2a845e(_0x27acd9([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 _0x1280d4(){return _0x2a845e(_0x27acd9([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x3e7655(_0x3dec3b){const _0x8e92e2=_0x510660();_0x539bf9[_0x8e92e2]=_0x27acd9([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])+_0x3dec3b,_0x3dec3b[_0x27acd9([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x27acd9([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x510660()]=_0x4689aa),_0x3dec3b!=_0x27acd9([0x56,0x61,0x6c,0x69,0x64])&&_0x544278();}function _0x510660(){const _0x1699ca=window[_0x27acd9([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x27acd9([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x27acd9([0x6e,0x6f,0x77])]())[_0x27acd9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x27acd9([0x2e]),'');let _0x3da837=_0x27acd9([0x4b]);for(let _0x43cfbf=0x0;_0x43cfbf<_0x1699ca[_0x27acd9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x43cfbf+=0x2){let _0x4c9504=window[_0x27acd9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1699ca[_0x27acd9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x43cfbf,_0x43cfbf+0x2));_0x4c9504>=_0x2da73c[_0x27acd9([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4c9504-=_0x2da73c[_0x27acd9([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3da837+=_0x2da73c[_0x4c9504];}return _0x3da837;}function _0x261440(){const _0x50a954=_0x524060[_0x27acd9([0x73,0x70,0x6c,0x69,0x74])](_0x27acd9([0x2e]));if(0x3!=_0x50a954[_0x27acd9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x19be2d(_0x50a954[0x1]);function _0x19be2d(_0x13a60d){const _0x57ab2d=_0x3f79b0(_0x13a60d);return _0x57ab2d&&_0x2501ed()?_0x57ab2d:null;function _0x2501ed(){const _0x458bc8=_0x57ab2d[_0x27acd9([0x6a,0x74,0x69])],_0x279d51=window[_0x27acd9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x458bc8[_0x27acd9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x458bc8[_0x27acd9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5eef4d={..._0x57ab2d,[_0x27acd9([0x6a,0x74,0x69])]:_0x458bc8[_0x27acd9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x458bc8[_0x27acd9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5eef4d[_0x27acd9([0x76,0x63])],_0x255ab8(_0x5eef4d)==_0x279d51;}}}async function _0x600cb5(){let _0x5856a8=!0x0;try{const _0x2c9ffe=_0x524060[_0x27acd9([0x73,0x70,0x6c,0x69,0x74])](_0x27acd9([0x2e])),[_0x4d4b04,_0x33d8f6,_0x33cc72]=_0x2c9ffe;return _0x35f6eb(_0x4d4b04),await _0x1010e8(_0x4d4b04,_0x33d8f6,_0x33cc72),_0x5856a8;}catch{return!0x1;}function _0x35f6eb(_0x3ae3fc){const _0x195009=_0x3f79b0(_0x3ae3fc);_0x195009&&_0x195009[_0x27acd9([0x61,0x6c,0x67])]==_0x27acd9([0x45,0x53,0x32,0x35,0x36])||(_0x5856a8=!0x1);}async function _0x1010e8(_0x1c62ae,_0x11ab0d,_0x44312d){const _0x363279=window[_0x27acd9([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x27acd9([0x66,0x72,0x6f,0x6d])](_0x2f1927(_0x44312d),_0x522f9e=>_0x522f9e[_0x27acd9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x36f15e=new window[(_0x27acd9([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x27acd9([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1c62ae+_0x27acd9([0x2e])+_0x11ab0d),_0x372dcb=window[_0x27acd9([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x27acd9([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x372dcb)return;const _0x509d01=await _0x372dcb[_0x27acd9([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x27acd9([0x6a,0x77,0x6b]),_0x20c486,{[_0x27acd9([0x6e,0x61,0x6d,0x65])]:_0x27acd9([0x45,0x43,0x44,0x53,0x41]),[_0x27acd9([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x27acd9([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x27acd9([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x372dcb[_0x27acd9([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x27acd9([0x6e,0x61,0x6d,0x65])]:_0x27acd9([0x45,0x43,0x44,0x53,0x41]),[_0x27acd9([0x68,0x61,0x73,0x68])]:{[_0x27acd9([0x6e,0x61,0x6d,0x65])]:_0x27acd9([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x509d01,_0x363279,_0x36f15e)||(_0x5856a8=!0x1);}}function _0x3f79b0(_0x2e264c){return _0x2e264c[_0x27acd9([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x27acd9([0x65,0x79]))?JSON[_0x27acd9([0x70,0x61,0x72,0x73,0x65])](_0x2f1927(_0x2e264c)):null;}function _0x2f1927(_0xe5926b){return window[_0x27acd9([0x61,0x74,0x6f,0x62])](_0xe5926b[_0x27acd9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x27acd9([0x2b]))[_0x27acd9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x27acd9([0x2f])));}function _0x255ab8(_0x590469){let _0x4f9d4a=0x1505;function _0x564328(_0x56b6dd){for(let _0x5c3fa0=0x0;_0x5c3fa0<_0x56b6dd[_0x27acd9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5c3fa0++){const _0x25a1bd=_0x56b6dd[_0x27acd9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5c3fa0);_0x4f9d4a=(_0x4f9d4a<<0x5)+_0x4f9d4a+_0x25a1bd,_0x4f9d4a&=_0x4f9d4a;}}function _0x5a3d45(_0x2e70ab){Array[_0x27acd9([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2e70ab)?_0x2e70ab[_0x27acd9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5a3d45):_0x2e70ab&&typeof _0x2e70ab==_0x27acd9([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x27acd9([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2e70ab)[_0x27acd9([0x73,0x6f,0x72,0x74])]()[_0x27acd9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x25603d,_0x3b1642])=>{_0x564328(_0x25603d),_0x5a3d45(_0x3b1642);}):_0x564328(window[_0x27acd9([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2e70ab));}return _0x5a3d45(_0x590469),_0x4f9d4a>>>0x0;}function _0xe40fb(_0x4ea7e3){return _0x4ea7e3[_0x27acd9([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x27acd9([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x27acd9([0x30]));}function _0x999d34(_0x33678f){return _0x33678f[_0x27acd9([0x73,0x70,0x6c,0x69,0x74])]('')[_0x27acd9([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x27acd9([0x6a,0x6f,0x69,0x6e])]('');}function _0x2a845e(_0x7a2ffd){return _0x539bf9[_0x27acd9([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x27acd9([0x68,0x61,0x73])](_0x7a2ffd);}function _0x290696(_0x325332){return _0x539bf9[_0x27acd9([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x27acd9([0x67,0x65,0x74])](_0x325332);}function _0x5c9f17(){}function _0x27acd9(_0x52b28e){return _0x52b28e['map'](_0x479cba=>String['fromCharCode'](_0x479cba))['join']('');}_0x3e7655(await _0x2cbe56());}(this);}['createRevision'](_0x89a6a0){const _0x13f830=this['editor']['plugins']['get']('Users');return new h({'id':_0x89a6a0['id'],'name':_0x89a6a0['name'],'creator':_0x89a6a0['creatorId']?_0x13f830['getUser'](_0x89a6a0['creatorId']):null,'diffData':_0x89a6a0['diffData']||_0x89a6a0['data'],'authors':_0x89a6a0['authorsIds']['map'](_0x2d8121=>_0x13f830['getUser'](_0x2d8121)),'createdAt':new Date(_0x89a6a0['createdAt']),'attributes':_0x89a6a0['attributes'],'fromVersion':_0x89a6a0['fromVersion'],'toVersion':_0x89a6a0['toVersion']});}['addRevision'](_0x497f4b,_0x778e60=0x0){this['_revisions']['add'](_0x497f4b,_0x778e60);}['getRevision'](_0x275665){return this['_revisions']['get'](_0x275665);}['getRevisions'](_0x15dd41={'toJSON':!0x1}){const _0x42b34b=Array['from'](this['_revisions']);return _0x42b34b['reverse'](),_0x15dd41['toJSON']?_0x42b34b['map'](_0x371fee=>_0x371fee['toJSON']()):_0x42b34b;}['getIndex'](_0x9c4414){return this['_revisions']['getIndex'](_0x9c4414);}['getEarlierVisibleRevision'](_0x313f66){const [,_0x58fa8c]=this['getRevisionsIterator'](_0x313f66,{'direction':'earlier'});return _0x58fa8c;}['getLaterVisibleRevision'](_0x2b2ade){const [,_0x1049b7]=this['getRevisionsIterator'](_0x2b2ade,{'direction':'later'});return _0x1049b7;}['getRevisionsInDiff'](_0x42a5bc){const _0x3bec9f=[];for(const _0x112e85 of this['getRevisionsIterator'](_0x42a5bc['newRevisionId']))if(_0x3bec9f['push'](_0x112e85),_0x112e85['id']===_0x42a5bc['oldRevisionId'])break;return _0x3bec9f;}*['getRevisionsIterator'](_0x28e11e,{direction:_0x478a44='earlier',filter:_0x473707=()=>!0x0}={}){const _0xe5d7c7='earlier'===_0x478a44?0x1:-0x1;let _0x33cb63=this['_revisions']['get'](_0x28e11e),_0x5c52b0=this['getIndex'](_0x33cb63);for(yield _0x33cb63;_0x33cb63;){if(_0x5c52b0+=_0xe5d7c7,_0x33cb63=this['getRevision'](_0x5c52b0),!_0x33cb63)return;_0x473707(_0x33cb63)&&(yield _0x33cb63);}}}class V extends _0x443a46{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x20d04c,'c'],[_0x5550f8,'a'],[_0x415b23,'e'],[_0x161449,'r'],[_0x3188b4,'u']]);['_typeCharToViewClass']=new Map([['c',_0x20d04c],['a',_0x5550f8],['e',_0x415b23],['r',_0x161449],['u',_0x3188b4]]);async['loadRevisionData'](_0x476a63,_0xb1ea6){if(_0x476a63['diffData']||!_0xb1ea6)return;const _0x4a5c90=this['editor']['config']['get']('collaboration.channelId'),_0x5ad81f=await _0xb1ea6['getRevision']({'channelId':_0x4a5c90,'revisionId':_0x476a63['id']});_0x476a63['diffData']=_0x5ad81f['diffData'];}['getRevisionDocumentData'](_0x4c6682){const _0x516cba={};for(const _0x2b65b6 in _0x4c6682['diffData']){if(_0x4c6682['diffData'][_0x2b65b6]['attachChange']&&!_0x4c6682['diffData'][_0x2b65b6]['attachChange']['isAttached'])continue;const _0x5e205c=this['_removeRevisionMarkers'](JSON['parse'](_0x4c6682['diffData'][_0x2b65b6]['insertions'])),_0x51c56=this['editor']['editing']['view']['document'],_0x3c14bb=new _0x3a3b7a(_0x51c56,_0x5e205c['map'](_0x4fd575=>this['_getViewFromDiffObj'](_0x4fd575,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x516cba[_0x2b65b6]=this['editor']['data']['processor']['toData'](_0x3c14bb),this['editor']['data']['processor']['useFillerType']('default');}return _0x516cba;}['getRevisionRootsAttributes'](_0x21d544){const _0x36fbb8={};for(const _0x332db7 in _0x21d544['diffData'])_0x21d544['diffData'][_0x332db7]['attachChange']&&!_0x21d544['diffData'][_0x332db7]['attachChange']['isAttached']||(_0x36fbb8[_0x332db7]=_0x21d544['diffData'][_0x332db7]['attributesAfter']||{});return _0x36fbb8;}['_getTypeCharForViewElement'](_0xef4014){return this['_viewClassToTypeChar']['get'](_0xef4014['constructor']);}['_getViewFromDiffObj'](_0x2fe046,_0x53a460){const _0xb23dda=this['editor']['editing']['view']['document'];if('string'==typeof _0x2fe046)return new _0x255c11(_0xb23dda,_0x2fe046);{let _0x4f762f,_0x34777c;_0x34777c='u'==_0x2fe046['type']||'r'==_0x2fe046['type']?[]:_0x2fe046['children']['map'](_0x464531=>this['_getViewFromDiffObj'](_0x464531,_0x53a460));const _0x5152a6=this['_typeCharToViewClass']['get'](_0x2fe046['type'])||_0x1eabbf,_0x54d747=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x4f762f=new _0x5152a6(_0xb23dda,_0x2fe046['name'],_0x2fe046['attributes'],_0x34777c),'u'==_0x2fe046['type']&&_0x2fe046['children'][0x0]){const _0x432b49=_0x2fe046['children'][0x0];if(_0x4f762f['render']=function(_0x5b9d85){const _0x15ae9a=_0x5b9d85['createElement']('div');return _0x15ae9a['innerHTML']=_0x432b49,_0x15ae9a['childNodes'][0x0];},_0x53a460){const _0x40bf2a=new _0x3a3b7a(_0xb23dda);_0x40bf2a['_appendChild'](_0x4f762f);const _0xc71174=Array['from'](_0x54d747['viewChildrenToDom'](_0x40bf2a,{'bind':!0x1})),_0x5e0943=_0x54d747['domDocument']['createElement']('div');_0x5e0943['append'](..._0xc71174),_0x4f762f=Array['from'](_0x54d747['domChildrenToView'](_0x5e0943))[0x0];}}else{if('r'==_0x2fe046['type']&&_0x2fe046['children'][0x0]){const _0x32c624=_0x2fe046['children'][0x0];if(_0x4f762f['render']=function(_0x249b65){_0x249b65['innerHTML']=_0x32c624;},_0x53a460){const _0x29c23f=new _0x3a3b7a(_0xb23dda);_0x29c23f['_appendChild'](_0x4f762f);const _0x47820f=Array['from'](_0x54d747['viewChildrenToDom'](_0x29c23f,{'bind':!0x1})),_0x22710e=_0x54d747['domDocument']['createElement']('div');_0x22710e['append'](..._0x47820f);const _0x49784c=Array['from'](_0x54d747['domChildrenToView'](_0x22710e));_0x49784c['length']>0x1?_0x4f762f['_appendChild'](_0x49784c):_0x4f762f=_0x49784c[0x0];}}}if(_0x2fe046['customProperties']){for(const [_0x279f94,_0x5d8275]of _0x2fe046['customProperties'])_0x4f762f['_setCustomProperty'](_0x279f94,_0x5d8275);}const _0x30411a=void 0x0===_0x2fe046['fillerOffset']?null:_0x2fe046['fillerOffset'];return null!==_0x30411a&&(_0x4f762f['getFillerOffset']=()=>_0x30411a),_0x4f762f;}}['_makeModelFromViewString'](_0x5f4f74){const _0x2032ea=JSON['parse'](_0x5f4f74),_0x835495=this['editor']['editing']['view']['document'],_0x36b286=new _0x3a3b7a(_0x835495,_0x2032ea['map'](_0x3b4a06=>this['_getViewFromDiffObj'](_0x3b4a06,!0x0)));return this['editor']['data']['toModel'](_0x36b286);}['_removeRevisionMarkers'](_0x276017){return(_0x276017=_0x276017['filter'](_0xee8aeb=>!_0xee8aeb['name']||'revision-start'!==_0xee8aeb['name']&&'revision-end'!==_0xee8aeb['name']))['forEach'](_0x44d704=>{'string'!=typeof _0x44d704&&(_0x44d704['children']=this['_removeRevisionMarkers'](_0x44d704['children']),_0x44d704['attributes']=_0x44d704['attributes']['filter'](_0x3f06fa=>!_0x3f06fa[0x0]['startsWith']('data-revision-')));}),_0x276017;}}function g(_0x594987,_0x1b58ed,_0x1218f7){const t=_0x594987['t'];switch(_0x1b58ed){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'},_0x1218f7);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x1218f7);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}class u extends _0x443a46{['licenseKey'];['_licenseKeyCheckInterval'];['currentRevision']=null;['repository'];['adapter']=null;['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_utils'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x33d7db,I,V,_0x41643f];}constructor(_0x1070ae){super(_0x1070ae),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new x(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x531d82=_0x2a1139();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x531d82},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x1781fb=this['repository']['getRevision'](0x0),_0x114023=_0x1781fb&&null===_0x1781fb['creator']?_0x1781fb:null;if(this['_continueCurrentRevision']=!!_0x114023&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x37a83e=this['_source']['getCurrentRevisionId'](),_0x146a29=this['repository']['getRevision'](_0x37a83e);if(_0x146a29)this['_startingVersion']=_0x146a29['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0xa237a1=this['_source']['history']['_operations']['find'](_0x25bbd3=>!_0x25bbd3['_isInit']),_0x4ef84d=_0xa237a1?_0xa237a1['baseVersion']:this['_source']['history']['version'];_0x1781fb?(_0x1781fb['toVersion']<_0x4ef84d&&_0x1781fb['_update']({'toVersion':_0x4ef84d}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x114023['id'],this['_startingVersion']=_0x114023['fromVersion']):(this['_startingVersion']=_0x1781fb['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x4ef84d,this['_continueCurrentRevision']=!0x1);}}else _0x114023&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x114023['toVersion'],this['editor']['model']['document']['history']['version']),_0x114023['fromVersion']===_0x114023['toVersion']?(0x0!==_0x114023['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x114023['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x114023['id'],this['_startingVersion']=_0x114023['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',_0x236b00=>!_0x236b00),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3a1390=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x19b90f;for(const _0x4ce40b in _0x3a1390){const _0x3eea1a=_0x4ce40b,_0x4254fe=_0x3a1390[_0x3eea1a];if('revisionHistoryLicenseKeyValid'==_0x4254fe||'revisionHistoryLicenseKeyInvalid'==_0x4254fe||'revisionHistoryLicenseKeyExpired'==_0x4254fe||'revisionHistoryLicenseKeyDomainLimit'==_0x4254fe||'revisionHistoryLicenseKeyNotAllowed'==_0x4254fe||'revisionHistoryLicenseKeyEvaluationLimit'==_0x4254fe||'revisionHistoryLicenseKeyTrialLimit'==_0x4254fe||'revisionHistoryLicenseKeyUsageLimit'==_0x4254fe){delete _0x3a1390[_0x3eea1a],_0x19b90f=_0x4254fe,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x19b90f&&_0x3a1390['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x19b90f&&_0x3a1390['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x19b90f&&_0x3a1390['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x19b90f&&_0x3a1390['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x19b90f&&_0x3a1390['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x19b90f&&_0x3a1390['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x19b90f&&_0x3a1390['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x4a8f45=this['repository']['getRevision'](0x0),_0x54e9de=await this['getRevisionDocumentData'](_0x4a8f45),_0x13fbaa=await this['getRevisionRootsAttributes'](_0x4a8f45);this['_replaceEditorDataWithRevisionData'](_0x54e9de,_0x13fbaa);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x41d0da){this['_source']=_0x41d0da;}async['update'](){const _0x1b4b18=await this['_source']['getLatestVersion']();if(_0x1b4b18>this['currentRevision']['toVersion']){await this['_loadState']();const _0x4e178c=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x1b4b18});_0x4e178c['authors']=_0x4e178c['authorsIds']['map'](_0xfb1264=>this['editor']['plugins']['get']('Users')['getUser'](_0xfb1264)),this['currentRevision']['_update'](_0x4e178c);}}async['saveRevision'](_0x185922={},_0x318041=null){const _0x1eebaa=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x318041>this['currentRevision']['toVersion']&&(_0x318041=null),null===_0x318041&&(_0x318041=await this['_source']['getLatestVersion']());const _0x511159=this['_getFromVersion'](_0x318041),_0x5174d1=this['buildRevisionData']({'from':_0x511159,'to':_0x318041});if(this['currentRevision']['toVersion']<_0x318041){const _0x46e74b=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x318041,'to':_0x318041});_0x46e74b['authors']=[],_0x46e74b['authorsIds']=[],_0x46e74b['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x46e74b,!0x0),delete _0x46e74b['authors'],_0x1eebaa['push'](_0x46e74b);}_0x185922['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x185922['name']=_0x185922['name']||null,_0x185922['id']=_0x185922['id']||_0x2a1139(),_0x185922={..._0x185922,..._0x5174d1};const _0x2ce792=this['addRevisionData'](_0x185922);_0x1eebaa['push'](_0x185922);const _0x5b9b71=this['repository']['getIndex'](_0x2ce792);if(0x0!==_0x5b9b71){const _0x5b4292=this['repository']['getRevision'](_0x5b9b71-0x1);if(_0x5b4292['fromVersion']!==_0x318041){const _0x1212bc=this['_revisionDataBuilder']['getData'](_0x318041,_0x5b4292['toVersion']),_0x43a428={'id':_0x5b4292['id'],'diffData':_0x1212bc['diffData'],'authorsIds':_0x1212bc['authorsIds'],'authors':_0x1212bc['authorsIds']['map'](_0x779005=>this['editor']['plugins']['get']('Users')['getUser'](_0x779005)),'fromVersion':_0x318041};_0x5b4292===this['currentRevision']&&(_0x43a428['createdAt']=new Date(_0x185922['createdAt']['getTime']()+0xa)),_0x5b4292['_update'](_0x43a428,!0x0),delete _0x43a428['authors'],_0x1eebaa['push'](_0x43a428);}}if(this['adapter']){for(const _0x1208b0 of _0x1eebaa)this['_bufferUpdate'](_0x1208b0['id'],_0x1208b0,!0x0);this['sendBufferedUpdates']();}return _0x2ce792;}['addRevisionData'](_0x27c71c){const _0x5c2191=this['repository']['createRevision'](_0x27c71c);return this['adapter']&&_0x5c2191['on']('_update',(_0x413eb6,_0x3b869b,_0xb9c9a2)=>{_0xb9c9a2||(this['_bufferUpdate'](_0x3b869b['id'],_0x3b869b,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x5c2191,this['_findInsertionIndex'](_0x5c2191)),_0x5c2191;}async['getRevisionDocumentData'](_0x4e5f65){return await this['_utils']['loadRevisionData'](_0x4e5f65,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x4e5f65);}async['getRevisionRootsAttributes'](_0x120080){return await this['_utils']['loadRevisionData'](_0x120080,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x120080);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x166616=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x3ff903=0x0;_0x3ff903<_0x166616['length'];_0x3ff903++){const _0x24854a=_0x166616[_0x3ff903];let _0x5b8530=!0x1;for(const _0x45b3b7 of Object['keys'](_0x24854a))void 0x0===_0x24854a[_0x45b3b7]?delete _0x24854a[_0x45b3b7]:'id'!==_0x45b3b7&&(_0x5b8530=!0x0);_0x5b8530||(_0x166616[_0x3ff903]=null);}if(_0x166616=_0x166616['filter'](_0x16ccc6=>null!==_0x16ccc6),!_0x166616['length'])return;for(let _0x4af77d=0x0;_0x4af77d<_0x166616['length'];_0x4af77d++){const _0x328426=_0x166616[_0x4af77d];void 0x0!==_0x328426['fromVersion']&&void 0x0===_0x328426['toVersion']&&(_0x328426['toVersion']=this['repository']['getRevision'](_0x328426['id'])['toVersion']),void 0x0!==_0x328426['toVersion']&&void 0x0===_0x328426['fromVersion']&&(_0x328426['fromVersion']=this['repository']['getRevision'](_0x328426['id'])['fromVersion']);}const _0x5157c0=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x166616,_0x5157c0)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x393287=>{if(_0x393287){for(const _0x4b9504 of _0x393287)this['setRevisionData']({'id':_0x4b9504['id'],'createdAt':_0x4b9504['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x487704=null,from:_0x592f05=null,to:_0x4e5212=null}){_0x592f05=null!==_0x592f05?_0x592f05:_0x487704['fromVersion'],_0x4e5212=null!==_0x4e5212?_0x4e5212:_0x487704['toVersion'];const _0x411f68=this['_revisionDataBuilder']['getData'](_0x592f05,_0x4e5212),_0x2ba89e={'diffData':_0x411f68['diffData'],'authorsIds':_0x411f68['authorsIds'],'fromVersion':_0x592f05,'toVersion':_0x4e5212};if(!_0x487704||_0x4e5212!==_0x487704['toVersion']){const _0x30481f=_0x4e5212-0x1,_0x26eca5=this['_source']['history']['getOperation'](_0x30481f);_0x2ba89e['createdAt']=_0x26eca5&&_0x26eca5['createdAt']||new Date();}if(this['_loadedStateData']&&_0x592f05===this['_loadedStateData']['fromVersion']){for(const _0x5ea8e2 of this['_loadedStateData']['authors'])_0x2ba89e['authorsIds']['includes'](_0x5ea8e2['id'])||_0x2ba89e['authorsIds']['push'](_0x5ea8e2['id']);}return _0x2ba89e;}['_bufferUpdate'](_0x4fb96c,_0x1dc95a,_0x3200f0){if(this['_bufferedUpdates']['has'](_0x4fb96c)){const _0x54a79e=this['_bufferedUpdates']['get'](_0x4fb96c);_0x1dc95a=_0x3200f0?{..._0x54a79e,..._0x1dc95a}:{..._0x1dc95a,..._0x54a79e};}this['_bufferedUpdates']['set'](_0x4fb96c,_0x1dc95a);}['setRevisionData'](_0x20bea2){const _0x37a833=this['repository']['getRevision'](_0x20bea2['id']);if(_0x20bea2['createdAt']&&(_0x20bea2['createdAt']=new Date(_0x20bea2['createdAt'])),_0x20bea2['authorsIds']){const _0x3ea2ab=this['editor']['plugins']['get']('Users');_0x20bea2['authors']=_0x20bea2['authorsIds']['map'](_0xbba66d=>_0x3ea2ab['getUser'](_0xbba66d));}_0x37a833['_update'](_0x20bea2,!0x0);}['_createInitialRevision'](_0x371940){const _0x2d1895=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x2d1895)this['_initialRevisionId']=_0x2d1895['id'];else{const _0x1bd5da=!this['editor']['model']['document']['roots']['find'](_0x27b84e=>this['editor']['model']['hasContent'](_0x27b84e)),_0x3f960a=this['editor']['plugins']['get']('Users')['me']['id'],_0x56b027=g(this['editor']['locale'],_0x1bd5da?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x371940,'to':_0x371940,'id':this['_initialRevisionId'],'name':_0x56b027,'creatorId':_0x3f960a});}}['_createCurrentRevision'](_0x530961){const _0x29f453=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x29f453),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x530961,'to':_0x530961,'id':_0x29f453,'name':'','creatorId':null}));}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_utils']['loadRevisionData'](this['currentRevision'],this['adapter']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}['_replaceEditorDataWithRevisionData'](_0x177ebf,_0x56f405){let _0x168c8b=this['editor']['config']['get']('initialData'),_0x5c171a=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x168c8b){_0x168c8b={};for(const _0x401764 of this['editor']['model']['document']['getRootNames']())_0x168c8b[_0x401764]='';}if('string'==typeof _0x168c8b&&(_0x168c8b={'main':_0x168c8b}),void 0x0===_0x5c171a){_0x5c171a={};for(const _0x3b0c8a of this['editor']['model']['document']['getRootNames']())_0x5c171a[_0x3b0c8a]={};}let _0x2943ae=!0x1;const _0x3b27ea=Object['keys'](_0x168c8b),_0x340280=Object['keys'](_0x177ebf);for(const _0x5b57d6 of _0x3b27ea){if(_0x168c8b[_0x5b57d6]!==_0x177ebf[_0x5b57d6]&&''!==_0x168c8b[_0x5b57d6]['trim']()){_0x2943ae=!0x0;break;}if(!_0x1f0b3c(_0x5c171a[_0x5b57d6],_0x56f405[_0x5b57d6])&&Object['keys'](_0x5c171a[_0x5b57d6])['length']>0x0){_0x2943ae=!0x0;break;}}_0x2943ae||(_0x2943ae=_0x340280['some'](_0x187f23=>!this['editor']['model']['document']['getRoot'](_0x187f23))),_0x2943ae&&_0x1e9999('editor-initial-data-replaced-with-revision-data',{'editorData':_0x168c8b,'editorRootsAttributes':_0x5c171a,'revisionData':_0x177ebf,'revisionRootsAttributes':_0x56f405}),this['editor']['config']['set']('initialData',_0x177ebf),this['editor']['config']['set']('rootsAttributes',_0x56f405);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x4a2b78=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x4a2b78['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x4b0d2c){const _0xd35a4d=this['repository']['getRevisions']();_0xd35a4d['reverse']();let _0x407fcb=0x0;for(;_0x407fcb<_0xd35a4d['length'];){const _0x489180=_0xd35a4d[_0x407fcb];if(_0x489180===this['currentRevision']){_0x407fcb++;continue;}if(_0x489180['id']===this['_initialRevisionId'])break;const _0x36e93e=_0x4b0d2c['toVersion']-_0x489180['toVersion']||_0x4b0d2c['fromVersion']-_0x489180['fromVersion'];if(_0x36e93e>0x0)break;if(_0x36e93e<0x0)_0x407fcb++;else{if(!_0x4b0d2c['creator']&&_0x489180['creator'])break;if(_0x489180['creator']||!_0x4b0d2c['creator']){if(_0x4b0d2c['createdAt']>_0x489180['createdAt'])break;_0x407fcb++;}else _0x407fcb++;}}return _0x407fcb;}['_getFromVersion'](_0x4a96ea){const _0x628d60=this['repository']['getRevisions']();_0x628d60['reverse'](),_0x628d60['shift']();const _0x347207=_0x628d60['find'](_0x408f0a=>_0x408f0a['toVersion']<=_0x4a96ea)['toVersion'];return _0x347207<this['_startingVersion']?this['_startingVersion']:_0x347207;}['_makeRevision']({name:_0x587c65,from:_0x2e1b7d,to:_0x2ec30d,creatorId:_0x3c3943,id:_0x2e28ef}){const _0x5593de=this['buildRevisionData']({'from':_0x2e1b7d,'to':_0x2ec30d});_0x5593de['name']=_0x587c65,_0x5593de['creatorId']=_0x3c3943,_0x5593de['id']=_0x2e28ef;const _0xfef5e4=this['addRevisionData'](_0x5593de);return this['adapter']&&this['_bufferUpdate'](_0x5593de['id'],_0x5593de,!0x0),_0xfef5e4;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class x{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x58e750){this['editor']=_0x58e750,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'](_0x50675c){this['source']=_0x50675c;const _0x1053c7=new Map(),_0x1d5cb4=new Map(),_0x11aa6c=this['editor']['model']['document']['roots']['map'](_0x382a7a=>_0x382a7a['rootName']);for(const _0x26456a of _0x11aa6c){const _0x45ad6f=this['editor']['model']['document']['getRoot'](_0x26456a),_0xb01981=N(_0x45ad6f);_0x1053c7['set'](_0x26456a,_0xb01981),_0x1d5cb4['set'](_0x26456a,Object['fromEntries'](_0x45ad6f['getAttributes']()));}const _0x2d7591=Array['from'](this['editor']['model']['markers'])['map'](_0x2e7e1e=>[_0x2e7e1e['name'],_0x2e7e1e['getRange']()]),_0x487d8e=this['source']['version'];this['_saveMetaData'](_0x487d8e,_0x1053c7,_0x2d7591,_0x1d5cb4),this['_startingRevisionId']=this['_revisionId'];const _0x130cc5=new Map(),_0x4277c1=new Map();for(const _0x4adfb5 of _0x11aa6c){const _0x5bd0df=P(_0x4adfb5);_0x130cc5['set'](_0x4adfb5,_0x5bd0df),_0x4277c1['set'](_0x4adfb5,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x130cc5,[],_0x4277c1);}['getData'](_0x4f9212,_0x248b53){if(this['_lastFrom']===_0x4f9212&&this['_lastTo']<=_0x248b53)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x248b53,!0x0);else{if(!this['_savedMetaData']['has'](_0x4f9212)){const _0x1489b8=this['_getPreviousFrom'](_0x4f9212);this['_calculateMetaData'](_0x1489b8,_0x4f9212,!0x1);}this['_calculateMetaData'](_0x4f9212,_0x248b53,!0x0);}return this['_lastFrom']=_0x4f9212,this['_lastTo']=_0x248b53,this['_getState']();}['loadState'](_0x4285e2){const _0x197447=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x4285e2['fromVersion'],this['_lastTo']=_0x4285e2['toVersion'];for(const _0x17a5c5 in _0x4285e2['diffData']){const _0x553a78=_0x4285e2['diffData'][_0x17a5c5]['attachChange'],_0x4bf208=_0x40ea9a(_0x4285e2['diffData'][_0x17a5c5]['attributesBefore'])||{},_0x170c97=_0x197447['_makeModelFromViewString'](_0x4285e2['diffData'][_0x17a5c5]['deletions']);_0x170c97['rootName']=_0x17a5c5,_0x170c97['_isAttached']=!_0x553a78||!_0x553a78['isAttached'],_0x170c97['isAttached']=()=>_0x170c97['_isAttached'],this['_baseRoots']['set'](_0x17a5c5,_0x170c97),this['_baseRootsAttributes']['set'](_0x17a5c5,_0x4bf208),_0x553a78&&this['_touchedRoots']['set'](_0x17a5c5,_0x553a78);const _0x590973=this['_makeIdsRoot'](_0x170c97);this['_baseIdsRoots']['set'](_0x17a5c5,_0x590973);for(const [_0x7445bd,_0x2cd240]of _0x170c97['markers']){if(!_0x7445bd['startsWith']('revision:'))continue;const _0x3fb477=_0x7445bd['split'](':')[0x2];for(const _0x31a9db of _0x2cd240['getWalker']({'singleCharacters':!0x0})){const _0x453739=this['_getVidAttributeName'](_0x31a9db),_0x4d85f7='elementEnd'==_0x31a9db['type']?_0x31a9db['previousPosition']['path']['slice'](0x0,-0x1):_0x31a9db['previousPosition']['path'],_0x3c91c7=_0x590973['getNodeByPath'](_0x4d85f7)['getAttribute'](_0x453739);this['_touched']['set'](_0x3c91c7,{'userId':_0x3fb477});}}}this['_startingRevisionId']=this['_revisionId'];const _0x3ec50f=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x7e4d9e=>!this['_touched']['has'](_0x7e4d9e));let _0x5c6b12=0x0;const _0x58bc76=new Map();for(const _0x61f1ac in _0x4285e2['diffData']){const _0x17299e=_0x4285e2['diffData'][_0x61f1ac]['attachChange'],_0x180f6e=_0x40ea9a(_0x4285e2['diffData'][_0x61f1ac]['attributesAfter'])||{},_0x2ffea8=_0x197447['_makeModelFromViewString'](_0x4285e2['diffData'][_0x61f1ac]['insertions']);_0x2ffea8['rootName']=_0x61f1ac,_0x2ffea8['_isAttached']=!_0x17299e||_0x17299e['isAttached'],_0x2ffea8['isAttached']=()=>_0x2ffea8['_isAttached'],this['_diffRoots']['set'](_0x61f1ac,_0x2ffea8),this['_diffRootsAttributes']['set'](_0x61f1ac,_0x180f6e);const _0x3172b4=this['_makeIdsRoot'](_0x2ffea8,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x61f1ac,_0x3172b4),_0x58bc76['set'](_0x61f1ac,_0x2ffea8['isAttached']()?_0x180f6e:{});for(const [_0xfb46a9,_0x29ab6f]of _0x2ffea8['markers']){if(!_0xfb46a9['startsWith']('revision:'))continue;const _0x13ec25=_0xfb46a9['split'](':')[0x2];for(const _0x267a9e of _0x29ab6f['getWalker']({'singleCharacters':!0x0})){const _0x7c3b2b=this['_getVidAttributeName'](_0x267a9e),_0x29b286=this['_revisionId']++,_0x5ee6a3='elementEnd'==_0x267a9e['type']?_0x267a9e['previousPosition']['path']['slice'](0x0,-0x1):_0x267a9e['previousPosition']['path'];_0x3172b4['getNodeByPath'](_0x5ee6a3)['_setAttribute'](_0x7c3b2b,_0x29b286),this['_touched']['set'](_0x29b286,{'userId':_0x13ec25});}}for(const _0x5408bb of this['editor']['model']['createRangeIn'](_0x2ffea8)['getWalker']({'singleCharacters':!0x0})){const _0xf63305=this['_getVidAttributeName'](_0x5408bb),_0x1fce55='elementEnd'==_0x5408bb['type']?_0x5408bb['previousPosition']['path']['slice'](0x0,-0x1):_0x5408bb['previousPosition']['path'],_0x56e7a1=_0x3172b4['getNodeByPath'](_0x1fce55);_0x56e7a1['getAttribute'](_0xf63305)>0x0||_0x56e7a1['_setAttribute'](_0xf63305,_0x3ec50f[_0x5c6b12++]);}for(const [_0x438199,_0x274f3a]of _0x2ffea8['markers'])_0x438199['startsWith']('revision:')||this['_markers']['set'](_0x438199,_0x274f3a);}const _0x61e713=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0x61e713),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x61e713,0x1));const _0x4f8d05=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x4f8d05),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x4f8d05,0x1));const _0x557ad2=Array['from'](this['_diffRoots'])['map'](([_0x2cd861,_0x17cff2])=>[_0x2cd861,N(_0x17cff2)]);this['_saveMetaData'](this['_lastTo'],_0x557ad2,this['_markers'],_0x58bc76);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x1b8165,_0xbd31fd,_0xe946e0,_0x51b066){const _0x121bfc=new Map(_0xbd31fd),_0x34539d=new Map(_0x40ea9a(_0x51b066)),_0x28ac66=new Map();for(const [_0x23755c,_0x5446ba]of _0xe946e0)_0x28ac66['set'](_0x23755c,{'start':_0x5446ba['start']['clone'](),'end':_0x5446ba['end']['clone'](),'rootName':_0x5446ba['root']['rootName']});this['_savedMetaData']['set'](_0x1b8165,{'roots':_0x121bfc,'markers':_0x28ac66,'rootsAttributes':_0x34539d});}['_removeMetaData'](_0x2f1c1f){this['_savedMetaData']['delete'](_0x2f1c1f);}['_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'](_0x32baf0,_0x56eed9=null){let _0x5de769=null;_0x32baf0['is']('documentFragment')||(_0x5de769=new ut(_0x32baf0['name'],{'vid_start':null===_0x56eed9?this['_revisionId']++:_0x56eed9++}));const _0x496b48=[];for(const _0xd9fa6a of _0x32baf0['getChildren']())if(_0xd9fa6a['is']('element')){_0x496b48['push'](this['_makeIdsRoot'](_0xd9fa6a,_0x56eed9));const _0x4f610f=_0x496b48[_0x496b48['length']-0x1];null!==_0x56eed9&&(_0x56eed9=_0x4f610f['is']('element','$text')?_0x4f610f['getAttribute']('vid')+0x1:_0x4f610f['getAttribute']('vid_end')+0x1);}else{for(let _0x4f0093=0x0;_0x4f0093<_0xd9fa6a['offsetSize'];_0x4f0093++)_0x496b48['push'](new ut('$text',{'vid':null===_0x56eed9?this['_revisionId']++:_0x56eed9++}));}if(_0x32baf0['is']('documentFragment')){const _0x125f8e=P(_0x32baf0['rootName']);return _0x125f8e['_insertChild'](0x0,_0x496b48),_0x125f8e;}return _0x5de769['_setAttribute']('vid_end',null===_0x56eed9?this['_revisionId']++:_0x56eed9++),_0x5de769['_insertChild'](0x0,_0x496b48),_0x5de769;}['_calculateMetaData'](_0x30ff2f,_0x299bcb,_0x5d319d){this['_reset']();const {roots:_0x4afd86,markers:_0x4ced79,rootsAttributes:_0x58ea97}=this['_savedMetaData']['get'](_0x30ff2f);this['_baseRoots']=new Map(_0x4afd86),this['_baseRootsAttributes']=new Map(_0x40ea9a(_0x58ea97));for(const [_0x596ef8,_0x5d1be3]of this['_baseRoots'])if('$graveyard'!==_0x596ef8&&(this['_diffRoots']['set'](_0x596ef8,N(_0x5d1be3)),this['_diffRootsAttributes']=new Map(_0x40ea9a(_0x58ea97)),_0x5d319d)){const _0x55add9=this['_revisionId'];this['_idsRoots']['set'](_0x596ef8,this['_makeIdsRoot'](_0x5d1be3)),this['_baseIdsRoots']['set'](_0x596ef8,this['_makeIdsRoot'](_0x5d1be3,_0x55add9));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x5d319d&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x41c2be,_0x54e070]of _0x4ced79){const _0x172dc8=this['_baseRoots']['get'](_0x54e070['rootName']),_0x45c9c3=this['_diffRoots']['get'](_0x54e070['rootName']),_0x54253f=new lt(this['_fixPosition'](_0x54e070['start'],_0x172dc8),this['_fixPosition'](_0x54e070['end'],_0x172dc8)),_0x554c9e=this['_fixRange'](_0x54253f,_0x45c9c3);_0x172dc8['markers']['set'](_0x41c2be,_0x54253f),this['_markers']['set'](_0x41c2be,_0x554c9e);}this['_applyOperations'](_0x30ff2f,_0x299bcb,_0x5d319d);}['_applyOperations'](_0x1a29d0,_0x10f1ad,_0x46b1fb){for(const _0x1b046b of this['source']['getOperations'](_0x1a29d0,_0x10f1ad))this['_handleOperation'](_0x1b046b,_0x46b1fb);for(const _0x23919f of this['_diffRoots']['values']())_0x23919f['markers']['clear']();for(const [_0x2779d5,_0x3ad422]of this['_markers']){this['_diffRoots']['get'](_0x3ad422['root']['rootName'])['markers']['set'](_0x2779d5,_0x3ad422['clone']());}const _0x65800e=new Map(),_0x33f297=new Map();for(const [_0x15fbe9,_0x2e55b6]of this['_diffRoots'])_0x65800e['set'](_0x15fbe9,N(_0x2e55b6)),_0x33f297['set'](_0x15fbe9,this['_diffRootsAttributes']['get'](_0x15fbe9));this['_saveMetaData'](_0x10f1ad,_0x65800e,this['_markers'],_0x33f297);}['_getPreviousFrom'](_0x12831e){const _0x77f09f=Array['from'](this['_savedMetaData']['keys']());_0x77f09f['sort']((_0x4aff37,_0x2bfd6c)=>_0x4aff37-_0x2bfd6c),_0x77f09f['reverse']();for(const _0x58e491 of _0x77f09f)if(_0x58e491<_0x12831e)return _0x58e491;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x5251d7,_0x3a11a2){const _0x5c5d35=Array['from'](_0x3a11a2['markers'])['map'](([_0x24df35,_0x119d33])=>[_0x24df35,this['_fixRange'](_0x119d33,_0x5251d7)]);_0x5251d7['markers']=new Map(_0x5c5d35);}['_transformMarkers'](_0x3ac7f2){for(const _0x524b60 of this['_markers']['values']()){const _0x569f2e=_0x524b60['getTransformedByOperation'](_0x3ac7f2),_0x36510c=lt['_createFromRanges'](_0x569f2e);_0x524b60['start']=_0x36510c['start'],_0x524b60['end']=_0x36510c['end'];}}['_handleOperation'](_0x22ad31,_0x4a0502){if('addRoot'!=_0x22ad31['type']&&'detachRoot'!=_0x22ad31['type']){if('insert'==_0x22ad31['type']){const _0x2376bb=_0x22ad31['position']['root']['rootName'];this['_diffRoots']['has'](_0x2376bb)||(this['_diffRoots']['set'](_0x2376bb,P(_0x2376bb,!0x0)),this['_diffRootsAttributes']['set'](_0x2376bb,{}),_0x4a0502&&this['_idsRoots']['set'](_0x2376bb,P(_0x2376bb,!0x0)));}else{if('addRootAttribute'==_0x22ad31['type']||'removeRootAttribute'==_0x22ad31['type']||'changeRootAttribute'==_0x22ad31['type'])return void this['_handleRootAttributeOperation'](_0x22ad31);'marker'==_0x22ad31['type']&&this['_handleMarkerOperation'](_0x22ad31);}if('marker'!==_0x22ad31['type']){const _0x28ee17=this['_cloneOperation'](_0x22ad31,this['_diffRoots']);_0x28ee17['_execute'](),this['_transformMarkers'](_0x28ee17);}if(_0x4a0502)switch(_0x22ad31['type']){case'insert':this['_handleInsertOperation'](_0x22ad31);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x22ad31);break;case'merge':this['_handleMergeOperation'](_0x22ad31);break;case'split':this['_handleSplitOperation'](_0x22ad31);}}else this['_handleRootOperation'](_0x22ad31,_0x4a0502);}['_cloneOperation'](_0x2cf08a,_0x4907fd){const _0x148a14=_0x2cf08a['clone']();return _0x148a14['_authorId']=_0x2cf08a['_authorId'],this['_fixOperation'](_0x148a14,_0x4907fd),_0x148a14;}['_getBaseVids'](_0x3640c7){return _0x3640c7['map'](_0x467060=>{const _0x89be9d=this['_getVidAttributeName'](_0x467060);return Number(_0x467060['item']['getAttribute'](_0x89be9d));});}['_generateTape'](_0x113cf3,_0x573c4b){if(_0x113cf3['is']('element','$text'))_0x573c4b['push']({'item':_0x113cf3,'type':'text'});else{_0x113cf3['is']('element')&&_0x573c4b['push']({'item':_0x113cf3,'type':'elementStart'});for(const _0x4ab06c of _0x113cf3['getChildren']())this['_generateTape'](_0x4ab06c,_0x573c4b);_0x113cf3['is']('element')&&_0x573c4b['push']({'item':_0x113cf3,'type':'elementEnd'});}return _0x573c4b;}['_getState'](){const _0x5a70ea=new Map(this['_touched']),_0x1e841a=new Map(_0x5a70ea),_0x304566=new Map(),_0x33291b={'insertions':{},'deletions':{}},_0x81bf0e={'insertions':{},'deletions':{}},_0x20592d=new Map(),_0x95e77a=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x95e77a['delete']('$graveyard');for(const _0x175005 of _0x95e77a){const _0x112ae7=this['_diffRoots']['get'](_0x175005)||P(_0x175005,!0x1),_0x1ecdf5=this['_baseRoots']['get'](_0x175005)||P(_0x175005,!0x1);_0x112ae7['isAttached']()||_0x1ecdf5['isAttached']()?(_0x33291b['insertions'][_0x175005]=N(_0x112ae7),_0x33291b['deletions'][_0x175005]=N(_0x1ecdf5),this['_copyMarkers'](_0x33291b['deletions'][_0x175005],_0x1ecdf5),this['_copyMarkers'](_0x33291b['insertions'][_0x175005],_0x112ae7),_0x81bf0e['insertions'][_0x175005]=this['_generateTape'](this['_idsRoots']['get'](_0x175005),[]),_0x81bf0e['deletions'][_0x175005]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x175005)||P(_0x175005,!0x1),[])):_0x95e77a['delete'](_0x175005);}for(const _0x4a148e of _0x95e77a){const _0x2f71c3=_0x81bf0e['insertions'][_0x4a148e];for(const _0x5b3dfb of _0x2f71c3){const _0x342726=this['_getVidAttributeName'](_0x5b3dfb),_0x7f3fe6=_0x5b3dfb['item']['getAttribute'](_0x342726);_0x1e841a['delete'](_0x7f3fe6),_0x7f3fe6>=this['_startingRevisionId']&&_0x304566['set'](_0x7f3fe6,_0x5a70ea['get'](_0x7f3fe6));}}for(const _0x48445c of _0x95e77a){const _0x2b8e21=_0x81bf0e['insertions'][_0x48445c],_0x26195e=this['_getBaseVids'](_0x81bf0e['deletions'][_0x48445c]);let _0x29875c=0x0;for(const _0x20b968 of _0x2b8e21){const _0x2505a0=this['_getVidAttributeName'](_0x20b968),_0x5b0c28=_0x20b968['item']['getAttribute'](_0x2505a0);if(!_0x304566['has'](_0x5b0c28)&&!_0x20592d['has'](_0x5b0c28)){if(_0x1e841a['has'](_0x5b0c28))_0x29875c++;else{if(_0x5b0c28!=_0x26195e[_0x29875c]){const _0x361c60=_0x5a70ea['get'](_0x5b0c28)||_0x5a70ea['get'](_0x26195e[_0x29875c]);for(;_0x5b0c28!=_0x26195e[_0x29875c];)_0x1e841a['has'](_0x26195e[_0x29875c])||(_0x20592d['set'](_0x26195e[_0x29875c],_0x361c60),_0x5a70ea['set'](_0x26195e[_0x29875c],_0x361c60)),_0x29875c++;}_0x29875c++;}}}}for(const _0x9f888e of _0x95e77a){const _0x48f0e6=_0x81bf0e['insertions'][_0x9f888e];for(const _0x42a651 of _0x48f0e6){const _0x72a019=this['_getVidAttributeName'](_0x42a651),_0x2e1376=_0x42a651['item']['getAttribute'](_0x72a019);if(_0x20592d['has'](_0x2e1376)){const _0x39b463=_0x20592d['get'](_0x2e1376);_0x1e841a['has'](_0x2e1376)||_0x1e841a['set'](_0x2e1376,{..._0x39b463}),_0x304566['set'](_0x2e1376,{..._0x39b463});}}}for(const _0x2c7549 of _0x1e841a['keys']())_0x2c7549>=this['_startingRevisionId']&&_0x1e841a['delete'](_0x2c7549);const _0x4637c6=new Map();for(const _0x1c9a69 of _0x95e77a){let _0x59b4c3=_0x81bf0e['insertions'][_0x1c9a69];for(const _0x3bb293 of _0x59b4c3)if(_0x3bb293['item']['is']('element','tableCell')){const _0x3dc009=this['_getVidAttributeName'](_0x3bb293),_0x358694=_0x3bb293['item']['getAttribute'](_0x3dc009);if(_0x304566['has'](_0x358694)){const _0x852225=_0x3bb293['item']['parent']['parent']['getAttribute']('vid_start'),_0x390e53=_0x4637c6['get'](_0x852225)||new Set();_0x390e53['add'](_0x304566['get'](_0x358694)['userId']),_0x4637c6['set'](_0x852225,_0x390e53);}}_0x59b4c3=_0x81bf0e['deletions'][_0x1c9a69];for(const _0x98d0e1 of _0x59b4c3)if(_0x98d0e1['item']['is']('element','tableCell')){const _0x4c6a57=this['_getVidAttributeName'](_0x98d0e1),_0x45604b=_0x98d0e1['item']['getAttribute'](_0x4c6a57);if(_0x1e841a['has'](_0x45604b)){const _0x3c0fff=_0x98d0e1['item']['parent']['parent']['getAttribute']('vid_start'),_0x4321e0=_0x4637c6['get'](_0x3c0fff)||new Set();_0x4321e0['add'](_0x1e841a['get'](_0x45604b)['userId']),_0x4637c6['set'](_0x3c0fff,_0x4321e0);}}for(const _0x3f5e51 of _0x4637c6['keys']())(_0x304566['has'](_0x3f5e51)||_0x1e841a['has'](_0x3f5e51))&&_0x4637c6['delete'](_0x3f5e51);}for(const _0x1af7a2 of _0x95e77a){const _0x254d91=_0x81bf0e['insertions'][_0x1af7a2];let _0x378ca4=null,_0x253fb9=null;for(const _0x347212 of _0x254d91){const _0x5ac95c=this['_getVidAttributeName'](_0x347212),_0x252a3e=_0x347212['item']['getAttribute'](_0x5ac95c),_0x5a263e=_0x4637c6['get'](_0x252a3e);_0x5a263e&&'elementStart'==_0x347212['type']&&(_0x378ca4=Array['from'](_0x5a263e)[0x0],_0x253fb9=_0x347212['item']['getAttribute']('vid_end')),_0x378ca4&&(_0x1e841a['set'](_0x252a3e,{'userId':_0x378ca4}),_0x304566['set'](_0x252a3e,{'userId':_0x378ca4})),_0x252a3e==_0x253fb9&&(_0x378ca4=null,_0x253fb9=null);}}const _0x38455a={},_0x15300d=new Set();for(const _0x9e2fe1 of _0x95e77a){const _0x20f2e8=_0x33291b['deletions'][_0x9e2fe1],_0x75d1db=_0x33291b['insertions'][_0x9e2fe1];for(const {userId:_0x443096}of this['_touchedMarkers']['values']())null!==_0x443096&&_0x15300d['add'](_0x443096);for(const {userId:_0x1f60a3}of this['_touchedRoots']['values']())null!==_0x1f60a3&&_0x15300d['add'](_0x1f60a3);this['_markChanges'](_0x75d1db,_0x81bf0e['insertions'][_0x9e2fe1],_0x304566,'insertion',_0x15300d),this['_markChanges'](_0x20f2e8,_0x81bf0e['deletions'][_0x9e2fe1],_0x1e841a,'deletion',_0x15300d),_0x38455a[_0x9e2fe1]={'insertions':this['_prepareViewToSave'](_0x75d1db),'deletions':this['_prepareViewToSave'](_0x20f2e8),'attachChange':this['_touchedRoots']['get'](_0x9e2fe1)||null,'attributesBefore':_0x40ea9a(this['_baseRootsAttributes']['get'](_0x9e2fe1))||{},'attributesAfter':_0x40ea9a(this['_diffRootsAttributes']['get'](_0x9e2fe1))};}return{'diffData':_0x38455a,'authorsIds':Array['from'](_0x15300d)};}['_processRootBeforeSave'](_0x16c6d5){for(const [,_0x417a92]of _0x16c6d5['markers']){const _0x4a8e7c=_0x417a92['start']['getAncestors']()['filter'](_0x2dab15=>'tableCell'==_0x2dab15['name']);for(const _0x2bc874 of _0x4a8e7c)0x1==_0x2bc874['childCount']&&_0x2bc874['getChild'](0x0)['is']('element','paragraph')&&_0x2bc874['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0xe3154f){this['_processRootBeforeSave'](_0xe3154f);const _0x8e8de9=this['editor']['data']['toView'](_0xe3154f,{}),_0x5b66a9=Array['from'](_0x8e8de9['getChildren']())['map'](_0x185274=>this['_getViewJson'](_0x185274));return JSON['stringify'](_0x5b66a9);}['_getViewJson'](_0x551a56){if(_0x551a56['is']('$text'))return _0x551a56['data'];{const _0x3a97fc=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x1d3011=_0x551a56,_0x1f77ef=this['editor']['data']['htmlProcessor']['domConverter'],_0x54114d={'type':_0x3a97fc['_getTypeCharForViewElement'](_0x1d3011),'name':_0x1d3011['name'],'attributes':Array['from'](_0x1d3011['getAttributes']()),'children':Array['from'](_0x1d3011['getChildren']())['map'](_0x533060=>this['_getViewJson'](_0x533060))};if(_0x551a56['is']('uiElement')&&'$comment'!=_0x551a56['name']){const _0x5ee1a3=_0x551a56['render'](_0x1f77ef['domDocument'],_0x1f77ef);_0x54114d['children']['push'](_0x5ee1a3['outerHTML']);}else{if(_0x551a56['is']('rawElement')){const _0x484616=_0x1f77ef['domDocument']['createElement'](_0x1d3011['name']);_0x551a56['render'](_0x484616,_0x1f77ef),_0x54114d['children']['push'](_0x484616['innerHTML']);}}const _0x418d48=Array['from'](_0x1d3011['getCustomProperties']());_0x418d48['length']>0x0&&(_0x54114d['customProperties']=_0x418d48);const _0x243097=_0x1d3011['getFillerOffset']();return null!==_0x243097&&(_0x54114d['fillerOffset']=_0x243097),_0x54114d;}}['_markChanges'](_0x36b42b,_0x5cd129,_0x1e1cdd,_0x12fc4c,_0x144f5f){let _0x54a960=null,_0x5db880=null,_0x4fa9e6=0x0;const _0x306e14=this['editor']['model'];for(let _0x2e3c44=0x0;_0x2e3c44<_0x5cd129['length'];_0x2e3c44++){const _0x50de58=this['_getVidAttributeName'](_0x5cd129[_0x2e3c44]),_0x1c4031=_0x5cd129[_0x2e3c44]['item']['getAttribute'](_0x50de58),_0x1f26c6=_0x1e1cdd['get'](_0x1c4031),_0x44648d=_0x2e3c44==_0x5cd129['length']-0x1;(!_0x54a960&&_0x1f26c6&&(_0x54a960=_0x1f26c6,_0x5db880=_0x5cd129[_0x2e3c44]),_0x54a960&&(!_0x1f26c6||_0x1f26c6['userId']!=_0x54a960['userId']))&&(_0x511863(_0x1f26c6,F(_0x5db880,_0x36b42b,_0x306e14),F(_0x5cd129[_0x2e3c44],_0x36b42b,_0x306e14)),_0x54a960=_0x1f26c6||null,_0x5db880=_0x1f26c6?_0x5cd129[_0x2e3c44]:null),_0x54a960&&_0x44648d&&_0x511863(_0x1f26c6,F(_0x5db880,_0x36b42b,_0x306e14),B(_0x5cd129[_0x2e3c44],_0x36b42b,_0x306e14));}function _0x511863(_0x2effa3,_0x452ded,_0x5a53cf){const _0x1ebe49=_0x54a960['userId'],_0x1cd1bd='revision:'+_0x12fc4c+':'+_0x1ebe49+':'+_0x4fa9e6++,_0x577006=_0x306e14['createRange'](_0x452ded,_0x5a53cf);_0x36b42b['markers']['set'](_0x1cd1bd,_0x577006),null!==_0x1ebe49&&_0x144f5f['add'](_0x1ebe49);}}['_getVidAttributeName'](_0x4fa02f){switch(_0x4fa02f['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x99403f,_0x76b095){_0x99403f['baseVersion']=null;for(const _0x39d89a in _0x99403f){const _0x562e09=_0x99403f[_0x39d89a];if(_0x562e09 instanceof ft){const _0x3c13ed=_0x76b095['get'](_0x562e09['root']['rootName']);_0x99403f[_0x39d89a]=this['_fixPosition'](_0x562e09,_0x3c13ed);}if(_0x562e09 instanceof lt){const _0x32b4ee=_0x76b095['get'](_0x562e09['root']['rootName']);_0x99403f[_0x39d89a]=this['_fixRange'](_0x562e09,_0x32b4ee);}'root'===_0x39d89a&&(_0x99403f['root']=_0x76b095['get'](_0x99403f['root']['rootName']));}}['_fixRange'](_0x1f2720,_0x2ef6d1){return this['editor']['model']['createRange'](this['_fixPosition'](_0x1f2720['start'],_0x2ef6d1),this['_fixPosition'](_0x1f2720['end'],_0x2ef6d1));}['_fixPosition'](_0x270f27,_0x4a817c){return this['editor']['model']['createPositionFromPath'](_0x4a817c,_0x270f27['path'],_0x270f27['stickiness']);}['_handleInsertOperation'](_0x11a6a1){const _0x577d9f=this['_idsRoots']['get'](_0x11a6a1['position']['root']['rootName']),_0xf4f2a7=this['_fixPosition'](_0x11a6a1['position'],_0x577d9f),_0x57a426=null===_0x11a6a1['_authorId']?null:_0x11a6a1['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4e1196=_0xf4f2a7['parent'],_0x3c6ae2=this['_revisionId'],_0x51abf5=[];for(const _0x588b13 of _0x11a6a1['nodes'])if(_0x588b13['is']('element'))_0x51abf5['push'](this['_makeIdsRoot'](_0x588b13));else{for(let _0xb90aba=0x0;_0xb90aba<_0x588b13['offsetSize'];_0xb90aba++)_0x51abf5['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x42f69f=this['_revisionId'];for(let _0x2752fc=_0x3c6ae2;_0x2752fc<_0x42f69f;_0x2752fc++)this['_touched']['set'](_0x2752fc,{'userId':_0x57a426});_0x4e1196['_insertChild'](_0xf4f2a7['offset'],_0x51abf5);}['_handleMoveOperation'](_0xd59803){(_0xd59803=this['_cloneOperation'](_0xd59803,this['_idsRoots']))['_execute']();const _0x1e80dc=null===_0xd59803['_authorId']?null:_0xd59803['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x6849a5=_0xd59803['getMovedRangeStart'](),_0x40a290=_0x6849a5['parent'],_0x420858=_0x6849a5['offset'];!function _0x1a139a(_0xc5381f,_0x3850ed,_0x24a841,_0x404586){for(let _0x431169=_0x24a841;_0x431169<_0x404586;_0x431169++){const _0x3e9ba5=_0x3850ed['getChild'](_0x431169);_0x3e9ba5['is']('element','$text')?_0xc5381f['set'](_0x3e9ba5['getAttribute']('vid'),{'userId':_0x1e80dc}):(_0xc5381f['set'](_0x3e9ba5['getAttribute']('vid_start'),{'userId':_0x1e80dc}),_0x1a139a(_0xc5381f,_0x3e9ba5,0x0,_0x3e9ba5['childCount']),_0xc5381f['set'](_0x3e9ba5['getAttribute']('vid_end'),{'userId':_0x1e80dc}));}}(this['_touched'],_0x40a290,_0x420858,_0x420858+_0xd59803['howMany']);}['_handleMergeOperation'](_0x3d9219){const _0x513a90=null===(_0x3d9219=this['_cloneOperation'](_0x3d9219,this['_idsRoots']))['_authorId']?null:_0x3d9219['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3242dc=_0x3d9219['targetPosition']['parent'],_0x3d48d5=_0x3d9219['sourcePosition']['parent'],_0x4c2681=_0x3242dc['getAttribute']('vid_end'),_0x3a034d=_0x3d48d5['getAttribute']('vid_start');_0x3242dc['_setAttribute']('vid_end',_0x3d48d5['getAttribute']('vid_end')),_0x3d48d5['_setAttribute']('vid_end',_0x4c2681),this['_touched']['set'](_0x3a034d,{'userId':_0x513a90}),this['_touched']['set'](_0x4c2681,{'userId':_0x513a90}),_0x3d9219['_execute']();}['_handleSplitOperation'](_0x26ae49){const _0x4261fc=null===(_0x26ae49=this['_cloneOperation'](_0x26ae49,this['_idsRoots']))['_authorId']?null:_0x26ae49['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5e6748=_0x26ae49['graveyardPosition'],_0x518506=_0x26ae49['splitPosition']['parent'];_0x26ae49['_execute']();const _0x3c4d4d=_0x518506['getAttribute']('vid_end'),_0x109621=_0x26ae49['insertionPosition']['nodeAfter'];if(_0x5e6748){const _0x38b89b=_0x109621['getAttribute']('vid_end'),_0xdc8f9e=_0x518506['getAttribute']('vid_end');_0x518506['_setAttribute']('vid_end',_0x38b89b),_0x109621['_setAttribute']('vid_end',_0xdc8f9e),this['_touched']['set'](_0x518506['getAttribute']('vid_end'),{'userId':_0x4261fc}),this['_touched']['set'](_0x109621['getAttribute']('vid_start'),{'userId':_0x4261fc});}else{const _0x13fe13=this['_revisionId']++,_0xe1603f=this['_revisionId']++;_0x518506['_setAttribute']('vid_end',_0x13fe13),_0x109621['_setAttribute']('vid_start',_0xe1603f),_0x109621['_setAttribute']('vid_end',_0x3c4d4d),this['_touched']['set'](_0x13fe13,{'userId':_0x4261fc}),this['_touched']['set'](_0xe1603f,{'userId':_0x4261fc});}}['_handleMarkerOperation'](_0x12c78d){if(!_0x12c78d['affectsData'])return;const _0x5512d1=(_0x12c78d=this['_cloneOperation'](_0x12c78d,this['_diffRoots']))['oldRange']?_0x12c78d['oldRange']['root']:null,_0x475f6a=_0x12c78d['newRange']?_0x12c78d['newRange']['root']:null;_0x5512d1&&this['_markers']['delete'](_0x12c78d['name']),_0x475f6a&&this['_markers']['set'](_0x12c78d['name'],_0x12c78d['newRange']['clone']());const _0x27c0ff=null===_0x12c78d['_authorId']?null:_0x12c78d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x356358=_0x12c78d['name'];if(!this['_touchedMarkers']['has'](_0x356358))return void this['_touchedMarkers']['set'](_0x356358,{'range':_0x12c78d['oldRange'],'userId':_0x27c0ff});const _0x347eb5=this['_touchedMarkers']['get'](_0x356358),_0x1e2110=_0x347eb5['range'],_0x5f37cc=_0x12c78d['newRange'];null==_0x1e2110&&null==_0x5f37cc||_0x1e2110&&_0x5f37cc&&_0x1e2110['isEqual'](_0x5f37cc)?this['_touchedMarkers']['delete'](_0x12c78d['name']):_0x347eb5['userId']=_0x27c0ff;}['_handleRootOperation'](_0x4f798f,_0x42a5be){this['_diffRoots']['has'](_0x4f798f['rootName'])?this['_diffRoots']['get'](_0x4f798f['rootName'])['_isAttached']=_0x4f798f['isAdd']:(this['_diffRoots']['set'](_0x4f798f['rootName'],P(_0x4f798f['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x4f798f['rootName'],{}),_0x42a5be&&this['_idsRoots']['set'](_0x4f798f['rootName'],P(_0x4f798f['rootName'],!0x0)));const _0x1d96e1=null===_0x4f798f['_authorId']?null:_0x4f798f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x148c9f=this['_touchedRoots']['get'](_0x4f798f['rootName']);_0x148c9f&&_0x148c9f['userId']===_0x1d96e1?this['_touchedRoots']['delete'](_0x4f798f['rootName']):this['_touchedRoots']['set'](_0x4f798f['rootName'],{'userId':_0x1d96e1,'isAttached':_0x4f798f['isAdd']});}['_handleRootAttributeOperation'](_0x16384e){const _0x8312fd=this['_diffRootsAttributes']['get'](_0x16384e['root']['rootName']);null===_0x16384e['newValue']?delete _0x8312fd[_0x16384e['key']]:_0x8312fd[_0x16384e['key']]=_0x16384e['newValue'];}}function N(_0x4f208b){const _0x8755f7=P(_0x4f208b['rootName'],_0x4f208b['isAttached']());for(const _0x15fbfb of _0x4f208b['getChildren']()){const _0x27df44=_0x15fbfb['_clone'](!0x0);_0x8755f7['_appendChild'](_0x27df44);}return _0x8755f7;}function P(_0x4f9004,_0x403e22=!0x0){const _0x398402=new vt();return _0x398402['rootName']=_0x4f9004,_0x398402['_isAttached']=_0x403e22,_0x398402['isAttached']=()=>_0x398402['_isAttached'],_0x398402;}function F(_0x3c63b0,_0x7bb793,_0x253212){const _0x15c5d4='elementEnd'==_0x3c63b0['type']?_0x253212['createPositionAt'](_0x3c63b0['item'],'end'):_0x253212['createPositionBefore'](_0x3c63b0['item']);return _0x253212['createPositionFromPath'](_0x7bb793,_0x15c5d4['path'],_0x15c5d4['stickiness']);}function B(_0x1e34fc,_0x1c2fe2,_0xbb4909){const _0x27e0c9='elementStart'==_0x1e34fc['type']?_0xbb4909['createPositionAt'](_0x1e34fc['item'],0x0):_0xbb4909['createPositionAfter'](_0x1e34fc['item']);return _0xbb4909['createPositionFromPath'](_0x1c2fe2,_0x27e0c9['path'],_0x27e0c9['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x1343c5,_0x5f3159){super(_0x1343c5),this['focusTracker']=new _0x1a5bd3(),this['keystrokes']=new _0x5906fb(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x5f3159),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x51d33e(this);}['render'](){super['render'](),_0x47de8a({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x509ff7=_0x4d4e4f=>_0x4d4e4f['stopPropagation']();this['keystrokes']['set']('arrowright',_0x509ff7),this['keystrokes']['set']('arrowleft',_0x509ff7),this['keystrokes']['set']('arrowup',_0x509ff7),this['keystrokes']['set']('arrowdown',_0x509ff7);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x2fe79){this['revisionNameInputView']['fieldView']['element']['value']=_0x2fe79['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x474e92){const _0x3c9e17=new _0x5d8229(this['locale'],_0x302711),_0x47da26=_0x3c9e17['fieldView'];_0x47da26['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x5909d1=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x474e92&&(_0x5909d1+='\x20('+g(this['locale'],'optional')+')'),(_0x3c9e17['label']=_0x5909d1,_0x47da26['on']('input',()=>{this['revisionNameInputValue']=_0x47da26['element']['value']['trim']();}),_0x3c9e17);}}class f extends _0x443a46{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x5101ba=this['editor'],_0x528ae1=_0x5101ba['plugins']['get']('RevisionTracker');_0x5101ba['ui']['componentFactory']['add']('revisionHistory',_0x35b6d9=>{const _0x1a76c7=_0x1429b9(_0x35b6d9),_0x88ece1=_0x1a76c7['panelView']['children'],_0x42c749=new _0x8fa149(_0x35b6d9),_0xce5bc1=new _0xd18afd(_0x35b6d9),_0x1b1892=new te(_0x35b6d9),_0x3a3be6=new _0xd18afd(_0x35b6d9),_0x45aecb=new te(_0x35b6d9);return _0x1a76c7['bind']('isEnabled')['to'](_0x528ae1,'isReady',_0x528ae1,'isEnabled',_0x5101ba,'isReadOnly',(_0x80294,_0x43a634,_0x21173d)=>_0x80294&&_0x43a634&&!_0x21173d),_0x1a76c7['buttonView']['set']({'icon':_0x1ac31f,'label':g(_0x35b6d9,'Revision\x20history'),'tooltip':!0x0}),_0x1b1892['set']({'label':g(_0x35b6d9,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x1b1892['bind']('isEnabled')['to'](_0x528ae1,'isReady',_0x528ae1,'isEnabled',_0x5101ba,'isReadOnly',(_0x4dbbea,_0x189058,_0x14c96f)=>_0x4dbbea&&_0x189058&&!_0x14c96f),_0x1b1892['on']('execute',()=>this['_showDialog']()),_0x45aecb['set']({'label':g(_0x35b6d9,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x45aecb['bind']('isEnabled')['to'](_0x528ae1,'isReady',_0x5101ba,'isReadOnly',(_0x42ebbe,_0x12f2a8)=>_0x42ebbe&&!_0x12f2a8),_0x45aecb['on']('execute',()=>{_0x5101ba['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x1a76c7['isOpen']=!0x1,_0x5101ba['editing']['view']['focus']();}),_0xce5bc1['children']['add'](_0x1b1892),_0x3a3be6['children']['add'](_0x45aecb),_0x42c749['role']='menu',_0x42c749['items']['addMany']([_0xce5bc1,_0x3a3be6]),_0x88ece1['add'](_0x42c749),_0x1a76c7;}),_0x5101ba['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x1193c5=this['editor'],_0x96c850=_0x1193c5['locale'],_0x12f1ca=new _0x2126e1(_0x96c850),_0x25be4a=new _0x1ff503(_0x96c850);_0x12f1ca['buttonView']['set']({'icon':_0x1ac31f,'label':g(_0x96c850,'Revision\x20history')});const _0x73453c=new _0x4a9d4a(_0x96c850,_0x12f1ca),_0x1f5141=new _0x3fe7a4(_0x96c850);_0x1f5141['set']({'label':g(_0x96c850,'Save\x20current\x20revision')}),_0x1f5141['delegate']('execute')['to'](_0x12f1ca),_0x1f5141['on']('execute',()=>{this['_showDialog']();}),_0x73453c['children']['add'](_0x1f5141),_0x25be4a['items']['add'](_0x73453c);const _0x59e5da=new _0x4a9d4a(_0x96c850,_0x12f1ca),_0x360d34=new _0x3fe7a4(_0x96c850);return _0x360d34['set']({'label':g(_0x96c850,'Open\x20revision\x20history')}),_0x360d34['delegate']('execute')['to'](_0x12f1ca),_0x360d34['on']('execute',()=>{_0x1193c5['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x59e5da['children']['add'](_0x360d34),_0x25be4a['items']['add'](_0x59e5da),_0x12f1ca['panelView']['children']['add'](_0x25be4a),_0x12f1ca;}['_showDialog'](){const _0x1a7bf9=this['editor'],_0x1db5b5=_0x1a7bf9['locale'],_0x57cf38=_0x1a7bf9['plugins']['get']('Dialog'),_0x1b0067=_0x1a7bf9['plugins']['get']('RevisionTracker');function _0x4c5e39(_0x25d929){_0x1a7bf9['config']['get']('revisionHistory.requireRevisionName')&&''===_0x25d929['revisionName']?_0x25d929['revisionNameInputView']['errorText']=g(_0x1db5b5,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x1a7bf9['plugins']['get'](u)['saveRevision']({'name':_0x25d929['revisionName']}),_0x57cf38['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x4c5e39(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x57cf38['show']({'id':'revisionSave','title':g(_0x1db5b5,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x1a7bf9['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x57cf38['hide']()},{'label':g(_0x1a7bf9['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x11dc2a){_0x11dc2a['bind']('isEnabled')['to'](_0x1b0067,'isReady',_0x1b0067,'isEnabled',_0x1a7bf9,'isReadOnly',(_0x542b59,_0x2cad78,_0x1ae3ad)=>_0x542b59&&_0x2cad78&&!_0x1ae3ad);},'onExecute':()=>_0x4c5e39(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x459fcb=this['editor'],_0x3dc856=_0x459fcb['locale'];this['_saveRevisionFormView']=new hs(_0x3dc856,_0x459fcb['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends ts{['changeId'];['_model'];constructor(_0x2f5b06,_0xe72665){super(_0x2f5b06),this['_model']=_0xe72665,this['changeId']=_0xe72665['id'];const _0x37ddec=this['bindTemplate'],_0x4c26a5=g(_0x2f5b06,_0xe72665['data']['isSuggestion']?'Suggested\x20by':'add'==_0xe72665['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0xe72665['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x37ddec['to']('type',_0x4ec689=>'ck-revision-change__'+_0x4ec689)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x4c26a5}]},{'text':'\x20'+_0xe72665['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x4fa367(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x8d9b7c){super(),this['id']=_0x8d9b7c['id']||_0x2a1139(),this['author']=_0x8d9b7c['author'],this['type']=_0x8d9b7c['type'],this['data']=_0x8d9b7c['data']||{},this['rootName']=_0x8d9b7c['rootName'],this['set']('createdAt',_0x8d9b7c['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(_0x553bff,_0x4992c2){this['newRevisionId']=_0x553bff,this['oldRevisionId']=_0x4992c2,this['changes']=new _0x239345();}['_setChanges'](_0x2c2e6b){for(const _0x1b3797 of _0x2c2e6b)this['changes']['add'](_0x1b3797);}}class m extends _0x443a46{['repository'];['adapter']=null;['_utils'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x33d7db,_0x1d7948,I,V];}constructor(_0x5c5e3a){super(_0x5c5e3a),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x185d71,_0x1dc78d,_0x43632e)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x113a7f=>{for(const _0x2c3314 of this['editor']['editing']['view']['document']['roots'])_0x43632e?_0x113a7f['removeClass']('ck-editor__editable__overlay',_0x2c3314):_0x113a7f['addClass']('ck-editor__editable__overlay',_0x2c3314);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x345bf1=>null!==_0x345bf1),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0xa6fb44,_0x25c79a,_0x54d7d8)=>_0xa6fb44&&_0x54d7d8?_0x25c79a['changes']['getIndex'](_0x54d7d8):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x35835d,_0x5c6f43)=>_0x35835d?_0x5c6f43['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x1d7948);}['init'](){const _0x51cd92=this['editor'],_0x207acc=new wt(_0x51cd92,{'direction':'backward'}),_0x5ac4c2=new wt(_0x51cd92,{'direction':'forward'});(_0x51cd92['commands']['add']('showPreviousChange',_0x207acc),_0x51cd92['commands']['add']('showNextChange',_0x5ac4c2),_0x51cd92['commands']['add']('restoreRevision',new mt(_0x51cd92)),this['on']('change:numberOfChanges',()=>{_0x207acc['refresh'](),_0x5ac4c2['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x51cd92['enableReadOnlyMode']('revision-viewer'),_0x51cd92['plugins']['has']('WidgetToolbarRepository'))&&_0x51cd92['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x2ee17a){return await this['_utils']['loadRevisionData'](_0x2ee17a,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x2ee17a);}async['getRevisionRootsAttributes'](_0x1fddba){return await this['_utils']['loadRevisionData'](_0x1fddba,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x1fddba);}async['compare'](_0x1244fa,_0x2af48f,_0x263a0a=!0x1){if(!this['isEnabled'])return;const _0xd36b76=this['diff'],_0x5b774d=this['repository'],_0xd31f52='string'==typeof _0x1244fa?_0x5b774d['getRevision'](_0x1244fa):_0x1244fa,_0x405028='string'==typeof _0x2af48f?_0x5b774d['getRevision'](_0x2af48f):_0x2af48f,_0x6a99eb=_0xd31f52['id'],_0x1296e9=_0x405028?_0x405028['id']:null;if(!_0x263a0a&&this['diff']&&this['diff']['newRevisionId']===_0x6a99eb&&this['diff']['oldRevisionId']===_0x1296e9)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x6a99eb,_0x1296e9);const _0x52a375=this['_getRevisionsRange'](_0xd31f52,_0x405028,!0x0)['map'](_0x25abe4=>this['_utils']['loadRevisionData'](_0x25abe4,this['adapter']));return _0x52a375['push'](new Promise(_0x366c93=>{setTimeout(_0x366c93,0x14);})),Promise['all'](_0x52a375)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0xf0f2bc=this['_getDiff'](_0x6a99eb,_0x1296e9);for(const _0x969cab of _0xf0f2bc['changes'])this['_changeIdToChange']['set'](_0x969cab['id'],_0x969cab);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x44c694=>{for(const _0x35b5c0 of this['editor']['model']['document']['getRootNames']())_0x44c694['detachRoot'](_0x35b5c0);for(const _0x227f8f of Object['keys'](_0xf0f2bc['model'])){const _0xa6e4d4=_0x44c694['addRoot'](_0x227f8f);for(const _0x507ae6 of Object['keys'](_0xf0f2bc['attributes'][_0x227f8f]))_0x44c694['setAttribute'](_0x507ae6,_0xf0f2bc['attributes'][_0x227f8f][_0x507ae6],_0xa6e4d4);_0x44c694['insert'](_0xf0f2bc['model'][_0x227f8f],_0xa6e4d4,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0xf0f2bc['changes'])),this['isReady']=!0x0;})['catch'](_0x134f0b=>{console['error'](_0x134f0b),this['_cleanUp'](),_0xd36b76&&(this['diff']=_0xd36b76),this['isReady']=!0x0;});}['addRevisionData'](_0x504407,_0x170f42){const _0x4cb9b6=this['repository']['createRevision'](_0x504407);return _0x4cb9b6['on']('_update',(_0x57ba7e,_0x379d54,_0x4c714a)=>_0x170f42(_0x379d54,_0x4c714a,_0x4cb9b6)),this['repository']['addRevision'](_0x4cb9b6),_0x4cb9b6;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x373adf=>{for(const _0x10b04f of this['editor']['model']['document']['getRootNames']())_0x373adf['detachRoot'](_0x10b04f);});}['_sortAndFilterDiffChanges'](_0x2b23ef){const _0x1fc47a=[],_0x2915c0=new Map();for(const _0x24bee9 of this['editor']['model']['document']['getRootNames']()){const _0x1b1922=this['editor']['editing']['view']['getDomRoot'](_0x24bee9);if(!_0x1b1922)continue;const _0x18b0f2=_0x1b1922['getClientRects']()['item'](0x0);_0x18b0f2&&(_0x1fc47a['push'](_0x24bee9),_0x2915c0['set'](_0x24bee9,_0x18b0f2));}return _0x1fc47a['sort']((_0x1d0ac8,_0x312d3e)=>{const _0x488558=_0x2915c0['get'](_0x1d0ac8),_0x1d49b3=_0x2915c0['get'](_0x312d3e);return _0x488558['y']-_0x1d49b3['y']||_0x488558['x']-_0x1d49b3['x'];}),(_0x2b23ef=_0x2b23ef['filter'](_0x58d57b=>_0x1fc47a['includes'](_0x58d57b['rootName'])))['sort']((_0x4a6d57,_0x5b07b2)=>_0x1fc47a['indexOf'](_0x4a6d57['rootName'])-_0x1fc47a['indexOf'](_0x5b07b2['rootName'])),_0x2b23ef;}['_makeTape'](_0x57eb5f){const _0xc44ecf=Array['from'](_0x57eb5f['markers'])['filter'](([_0x17ec90,_0x4793b8])=>_0x17ec90['startsWith']('revision:')&&!_0x4793b8['isCollapsed']),_0x448065=Array['from'](this['editor']['model']['createRangeIn'](_0x57eb5f)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0xc44ecf['length'])for(const _0x10d9f7 of _0x448065){const [_0x4adc4f,_0x369248]=_0xc44ecf[0x0],[,_0x702530,_0x25e03b]=_0x4adc4f['split'](':');if(_0x369248['end']['isEqual'](_0x10d9f7['nextPosition'])&&_0xc44ecf['shift'](),(_0x10d9f7['previousPosition']['isEqual'](_0x369248['start'])||_0x10d9f7['previousPosition']['isAfter'](_0x369248['start']))&&('insertion'==_0x702530?_0x10d9f7['isAdded']={'userId':_0x25e03b}:'deletion'==_0x702530&&(_0x10d9f7['isRemoved']={'userId':_0x25e03b})),0x0==_0xc44ecf['length'])break;}return _0x448065;}['_refreshStartEndIndex'](_0x28df9a){const _0x9b9016=new Map();for(let _0x203329=0x0;_0x203329<_0x28df9a['length'];_0x203329++)'text'===_0x28df9a[_0x203329]['type']?(_0x28df9a[_0x203329]['item']['startIndex']=_0x203329,_0x28df9a[_0x203329]['item']['endIndex']=_0x203329):('elementStart'===_0x28df9a[_0x203329]['type']?_0x28df9a[_0x203329]['item']['startIndex']=_0x203329:'elementEnd'===_0x28df9a[_0x203329]['type']&&(_0x28df9a[_0x203329]['item']['endIndex']=_0x203329),_0x9b9016['set'](_0x28df9a[_0x203329]['id'],_0x203329));for(const _0x4598bc of _0x9b9016['values']())'elementStart'===_0x28df9a[_0x4598bc]['type']?_0x28df9a[_0x4598bc]['item']['endIndex']=_0x9b9016['get'](_0x28df9a[_0x4598bc]['pairId']):'elementEnd'===_0x28df9a[_0x4598bc]['type']&&(_0x28df9a[_0x4598bc]['item']['startIndex']=_0x9b9016['get'](_0x28df9a[_0x4598bc]['pairId']));}['_processTape'](_0x1fc7f2){for(let _0xb17a13=0x0;_0xb17a13<_0x1fc7f2['length'];_0xb17a13++){if('elementStart'===_0x1fc7f2[_0xb17a13]['type'])_0x1fc7f2[_0xb17a13]['item']['startIndex']=_0xb17a13;else{if('elementEnd'===_0x1fc7f2[_0xb17a13]['type']){_0x1fc7f2[_0xb17a13]['item']['endIndex']=_0xb17a13;const _0x6c2b83=_0x1fc7f2[_0xb17a13]['item']['startIndex'];_0x1fc7f2[_0x6c2b83]['pairId']=_0x1fc7f2[_0xb17a13]['id'],_0x1fc7f2[_0xb17a13]['pairId']=_0x1fc7f2[_0x6c2b83]['id'];}else _0x1fc7f2[_0xb17a13]['item']['startIndex']=_0xb17a13,_0x1fc7f2[_0xb17a13]['item']['endIndex']=_0xb17a13,_0x1fc7f2[_0xb17a13]['pairId']=null;}_0x1fc7f2[_0xb17a13]['markersStart']||(_0x1fc7f2[_0xb17a13]['markersStart']=[],_0x1fc7f2[_0xb17a13]['markersEnd']=[]);}}['_markInsertions'](_0x17e7a0,_0x26e1ef){const _0x239059=_0x17e7a0['filter'](_0x10bc02=>!_0x10bc02['isAdded']);for(let _0x1ba763=0x0;_0x1ba763<_0x26e1ef['length'];_0x1ba763++)_0x26e1ef[_0x1ba763]['isAdded']&&(_0x239059[_0x1ba763]['isAdded']=_0x26e1ef[_0x1ba763]['isAdded']);}['_getDiff'](_0x132bda,_0x45afce=null){const _0x5dbe62=this['repository']['getRevision'](_0x132bda),_0x44b9ce=_0x45afce?this['repository']['getRevision'](_0x45afce):null,_0x115284=this['_getRevisionsRange'](_0x5dbe62,_0x44b9ce),_0x15b3d2=_0x115284[_0x115284['length']-0x1],_0x179de6=new Map(),_0x42ef1b={'model':{},'attributes':{},'changes':[]},_0x16da95=new Set(),_0x4be5cf=new Map();for(let _0x3f3d55=_0x115284['length']-0x1;_0x3f3d55>=0x0;_0x3f3d55--){const _0x3a3ca=_0x115284[_0x3f3d55];for(const _0xa11f34 of Object['keys'](_0x3a3ca['diffData']))if(_0x3a3ca['diffData'][_0xa11f34]['attachChange']){const _0x32a4f5=_0x3a3ca['diffData'][_0xa11f34]['attachChange'];_0x32a4f5['isAttached']?(_0x16da95['add'](_0xa11f34),_0x4be5cf['has'](_0xa11f34)&&_0x4be5cf['get'](_0xa11f34)['userId']==_0x32a4f5['userId']?_0x4be5cf['delete'](_0xa11f34):_0x4be5cf['set'](_0xa11f34,_0x32a4f5)):_0x4be5cf['has'](_0xa11f34)?(_0x16da95['delete'](_0xa11f34),_0x4be5cf['delete'](_0xa11f34)):(_0x16da95['add'](_0xa11f34),_0x4be5cf['set'](_0xa11f34,_0x32a4f5));}else _0x16da95['add'](_0xa11f34);}for(const _0x1cf811 of _0x16da95){const _0x48b7f2=_0x4be5cf['has'](_0x1cf811)&&!_0x4be5cf['get'](_0x1cf811)['isAttached'];let _0x3c2eb7=_0x48b7f2?_0x115284['length']-0x1:0x0;const _0x1f47e1=_0x48b7f2?-0x1:0x1;for(;_0x115284[_0x3c2eb7];){const _0x642669=_0x115284[_0x3c2eb7];if(_0x642669['diffData'][_0x1cf811]){const _0x555bf3=_0x48b7f2?_0x642669['diffData'][_0x1cf811]['attributesBefore']:_0x642669['diffData'][_0x1cf811]['attributesAfter'];_0x42ef1b['attributes'][_0x1cf811]=_0x555bf3?_0x40ea9a(_0x555bf3):{};break;}_0x3c2eb7+=_0x1f47e1;}}for(const _0x293952 of _0x115284){_0x293952['model']={};for(const _0x25440f of _0x293952['authors'])_0x179de6['set'](_0x25440f['id'],_0x25440f);for(const _0x2b7433 of _0x16da95){const _0x286fc9=_0x293952['diffData'][_0x2b7433]?_0x293952['diffData'][_0x2b7433]['insertions']:'[]',_0x381f88=_0x293952['diffData'][_0x2b7433]?_0x293952['diffData'][_0x2b7433]['deletions']:'[]';_0x293952['model'][_0x2b7433]={'insertions':this['_utils']['_makeModelFromViewString'](_0x286fc9),'deletions':this['_utils']['_makeModelFromViewString'](_0x381f88)};}}for(const _0x3e8fa9 of _0x16da95){let _0x272a57=null,_0x14ae4c=0x0;const _0x54303b=new Map(Array['from'](_0x5dbe62['model'][_0x3e8fa9]['insertions']['markers'])['filter'](([_0x372057])=>!_0x372057['startsWith']('revision:')));let _0x44f61a=0x0;for(const _0x1c197d of _0x115284){const _0x2481fb=this['_makeTape'](_0x1c197d['model'][_0x3e8fa9]['insertions']);_0x1c197d==_0x5dbe62?(_0x272a57=_0x2481fb,_0x14ae4c=_0x272a57['length'],_0x272a57['forEach'](_0x51ce83=>{_0x51ce83['id']=_0x44f61a++;}),this['_processTape'](_0x272a57)):this['_markInsertions'](_0x272a57,_0x2481fb);const _0x1353b8=_0x272a57['filter'](_0x18ccd2=>!_0x18ccd2['isAdded'])['map'](_0x55b699=>_0x55b699['id']);let _0x121b34=0x0;const _0x134c93=this['_makeTape'](_0x1c197d['model'][_0x3e8fa9]['deletions']);_0x134c93['forEach'](_0x5bc026=>{_0x5bc026['isRemoved']?_0x5bc026['id']=_0x14ae4c++:_0x5bc026['id']=_0x1353b8[_0x121b34++];}),this['_processTape'](_0x134c93),this['_setDistance'](_0x272a57,'isAdded'),this['_setDistance'](_0x134c93,'isRemoved'),_0x1c197d==_0x5dbe62&&this['_markMarkers'](_0x272a57,_0x54303b),_0x272a57=this['_joinTapes'](_0x272a57,_0x134c93),this['_refreshStartEndIndex'](_0x272a57),this['_setDistance'](_0x272a57,'isRemoved');}_0x272a57=_0x272a57['filter'](_0x4546a8=>!(_0x4546a8['isAdded']&&_0x4546a8['isRemoved']));const _0x37f5af=new Map(_0x15b3d2['model'][_0x3e8fa9]['deletions']['markers']),_0x2d54af=new Set(_0x54303b['keys']());for(const _0x1ef030 of _0x37f5af['keys']())_0x2d54af['delete'](_0x1ef030);this['_markSuggestions'](_0x272a57,_0x2d54af),this['_fixObsoleteTags'](_0x272a57),_0x272a57=this['_removeMissingPairs'](_0x272a57),_0x272a57=this['_markMismatchedRemovedTags'](_0x272a57),_0x272a57=this['_removeUnsupportedChanges'](_0x272a57);const {root:_0x25c175,changes:_0x1768b8}=this['_makeModelFromTape'](_0x272a57,_0x179de6,_0x3e8fa9);_0x42ef1b['model'][_0x3e8fa9]=_0x25c175;const _0x38b24c=_0x4be5cf['get'](_0x3e8fa9);if(_0x38b24c){const _0x251ea1=_0x179de6['get'](_0x38b24c['userId']),_0x250370=new r({'author':_0x251ea1,'type':_0x38b24c['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x3e8fa9});_0x1768b8['unshift'](_0x250370),_0x42ef1b['attributes'][_0x3e8fa9]['revisionHistoryAttachChange']=_0x250370['id'];}_0x42ef1b['changes']=_0x42ef1b['changes']['concat'](_0x1768b8);}return _0x42ef1b;}['_markMarkers'](_0x776cbd,_0x5ef6a7){for(let _0x11198e=0x0;_0x11198e<_0x776cbd['length'];_0x11198e++)for(const [_0x11d170,_0x581804]of _0x5ef6a7)!_0x581804['isCollapsed']&&_0x581804['start']['isEqual'](_0x776cbd[_0x11198e]['previousPosition'])&&_0x776cbd[_0x11198e]['markersStart']['push'](_0x11d170),_0x581804['end']['isEqual'](_0x776cbd[_0x11198e]['nextPosition'])&&_0x776cbd[_0x11198e]['markersEnd']['push'](_0x11d170);}['_joinTapes'](_0x3fbeb5,_0x4ad37b){let _0x2ff46f=[],_0x2d6d72=0x0,_0x257133=0x0;for(;_0x2d6d72<_0x3fbeb5['length']||_0x257133<_0x4ad37b['length'];){const _0x3bd7d8=_0x3fbeb5[_0x2d6d72]||{},_0x51aee0=_0x4ad37b[_0x257133]||{};if(_0x3bd7d8['id']==_0x51aee0['id'])_0x2d6d72++,_0x257133++,_0x2ff46f['push'](_0x3bd7d8);else{if(_0x51aee0['isRemoved']&&_0x3bd7d8['isAdded']){const {commonTape:_0x3e1908,iEnd:_0x3fae5e,jEnd:_0x36f236}=this['_threeWayMerge'](_0x3fbeb5,_0x2d6d72,_0x4ad37b,_0x257133);_0x2ff46f=_0x2ff46f['concat'](_0x3e1908),_0x2d6d72=_0x3fae5e,_0x257133=_0x36f236;}else _0x51aee0['isRemoved']?(_0x257133++,_0x2ff46f['push'](_0x51aee0)):(_0x2d6d72++,_0x2ff46f['push'](_0x3bd7d8));}}return _0x2ff46f;}['_markSuggestions'](_0x2a0b06,_0x11f41d){const _0x440fcb=[];for(let _0x40f418=0x0;_0x40f418<_0x2a0b06['length'];_0x40f418++){for(let _0x13fd31=0x0;_0x13fd31<_0x2a0b06[_0x40f418]['markersStart']['length'];_0x13fd31++){const _0x339748=_0x2a0b06[_0x40f418]['markersStart'][_0x13fd31];if(!_0x11f41d['has'](_0x339748))continue;const {group:_0x4743c1,type:_0x4071d8,authorId:_0x5ecfeb}=_0x45ab18(_0x339748);'revision-suggestion'!=_0x4743c1||'insertion'!=_0x4071d8&&'deletion'!=_0x4071d8||(_0x440fcb['unshift']({'type':_0x4071d8,'name':_0x339748,'userId':_0x5ecfeb}),_0x2a0b06[_0x40f418]['markersStart']['splice'](_0x13fd31,0x1),_0x13fd31--);}_0x4e2eb2(_0x2a0b06[_0x40f418]);for(let _0x415684=0x0;_0x415684<_0x2a0b06[_0x40f418]['markersEnd']['length'];_0x415684++){const _0x5a9a74=_0x2a0b06[_0x40f418]['markersEnd'][_0x415684];if(!_0x11f41d['has'](_0x5a9a74))continue;const {group:_0x55ab21,type:_0xc37928}=_0x45ab18(_0x5a9a74);if('revision-suggestion'!=_0x55ab21||'insertion'!=_0xc37928&&'deletion'!=_0xc37928)continue;_0x2a0b06[_0x40f418]['markersEnd']['splice'](_0x415684,0x1),_0x415684--;const _0x164aff=_0x440fcb['findIndex'](_0x5123d6=>_0x5123d6['name']==_0x5a9a74);_0x164aff>-0x1&&_0x440fcb['splice'](_0x164aff,0x1);}}function _0x45ab18(_0x403064){const _0xc5801d=_0x403064['split'](':');return{'group':_0xc5801d[0x0],'type':_0xc5801d[0x1],'subType':_0xc5801d['length']>=0x5?_0xc5801d[0x2]:null,'id':_0xc5801d['length']<0x5?_0xc5801d[0x2]:_0xc5801d[0x3],'authorId':_0xc5801d['length']<0x5?_0xc5801d[0x3]:_0xc5801d[0x4],'markerCount':0x6==_0xc5801d['length']?_0xc5801d[0x5]:null};}function _0x4e2eb2(_0x1bc043){for(let _0x27663b=0x0;_0x27663b<_0x440fcb['length'];_0x27663b++){if(_0x1bc043['isAdded']&&'insertion'==_0x440fcb[_0x27663b]['type']&&_0x1bc043['isAdded']['userId']==_0x440fcb[_0x27663b]['userId'])return _0x1bc043['isAddSuggestion']=_0x440fcb[_0x27663b],void delete _0x1bc043['isAdded'];if(!_0x1bc043['isAdded']&&!_0x1bc043['isRemoved']&&'deletion'==_0x440fcb[_0x27663b]['type'])return void(_0x1bc043['isRemoveSuggestion']=_0x440fcb[_0x27663b]);}}}['_setDistance'](_0x8bbabb,_0x5aaa46){let _0x20baca=0x0,_0xf66237=!0x1;const _0x5639f6=new Map();for(const _0x4d3686 of _0x8bbabb)_0x4d3686[_0x5aaa46]?_0xf66237&&(_0x20baca++,_0xf66237=!0x1):(_0x20baca++,_0xf66237=!0x0),_0x5639f6['set'](_0x4d3686['id'],_0x20baca);for(let _0x23c4fe=0x0;_0x23c4fe<_0x8bbabb['length'];_0x23c4fe++){if('isRemoved'==_0x5aaa46&&_0x8bbabb[_0x23c4fe]['isAdded']||'isAdded'==_0x5aaa46&&_0x8bbabb[_0x23c4fe]['isRemoved'])continue;if('text'==_0x8bbabb[_0x23c4fe]['type']){_0x8bbabb[_0x23c4fe]['distance']=0x0;continue;}const _0x22dcef=_0x5639f6['get'](_0x8bbabb[_0x23c4fe]['pairId']),_0x54544f=_0x5639f6['get'](_0x8bbabb[_0x23c4fe]['id']);_0x8bbabb[_0x23c4fe]['distance']=_0x22dcef-_0x54544f;}}['_getRevisionsRange'](_0x16be83,_0x311885,_0x3cff5e=!0x1){const _0x75b2bc=[];let _0x182b90=this['repository']['getIndex'](_0x16be83),_0x53a8ab=this['repository']['getIndex'](_0x311885);for(-0x1==_0x53a8ab&&(_0x53a8ab=this['repository']['_revisions']['length'],_0x3cff5e=!0x1);_0x182b90<_0x53a8ab;)_0x75b2bc['push'](this['repository']['getRevision'](_0x182b90)),_0x182b90++;return _0x3cff5e&&_0x75b2bc['push'](this['repository']['getRevision'](_0x182b90)),_0x75b2bc;}['_threeWayMerge'](_0x1c9716,_0x3e3d7e,_0x4087b1,_0x1dde4d){const _0x12143d=this['editor']['model']['schema'];let _0x304a56=_0x3e3d7e;for(;_0x1c9716[_0x304a56]&&_0x1c9716[_0x304a56]['isAdded'];)_0x304a56++;let _0x2a56d5=_0x1dde4d;for(;_0x4087b1[_0x2a56d5]&&_0x4087b1[_0x2a56d5]['isRemoved'];)_0x2a56d5++;_0x451114(_0x1c9716,_0x3e3d7e,_0x304a56),_0x451114(_0x4087b1,_0x1dde4d,_0x2a56d5);const _0x526dde=_0x4087b1['slice'](_0x1dde4d,_0x2a56d5)['concat'](_0x1c9716['slice'](_0x3e3d7e,_0x304a56));return _0x526dde['sort']((_0x2ea9d9,_0x3c8618)=>_0x2ea9d9['side']!=_0x3c8618['side']?_0x2ea9d9['side']-_0x3c8618['side']:_0x2ea9d9['level']!=_0x3c8618['level']?_0x2ea9d9['level']-_0x3c8618['level']:_0x2ea9d9['distance']!=_0x3c8618['distance']?_0x3c8618['distance']-_0x2ea9d9['distance']:!!_0x2ea9d9['isAdded']!=!!_0x3c8618['isAdded']?-0x1==_0x2ea9d9['side']||0x0==_0x2ea9d9['side']?_0x2ea9d9['isAdded']?-0x1:0x1:_0x2ea9d9['isAdded']?0x1:-0x1:_0x2ea9d9['index']-_0x3c8618['index']),{'commonTape':_0x526dde,'iEnd':_0x304a56,'jEnd':_0x2a56d5};function _0x451114(_0x5317da,_0x3460f0,_0x302e93){let _0x152391=-0x1,_0x144d20=Number['POSITIVE_INFINITY'],_0x1d8d59=!0x0;for(let _0x5bedfe=_0x3460f0;_0x5bedfe<_0x302e93;_0x5bedfe++)if(_0x12143d['isInline'](_0x5317da[_0x5bedfe]['item'])||(_0x1d8d59=!0x1),_0x5317da[_0x5bedfe]['item']['startIndex']<_0x3460f0&&(_0x152391=_0x5bedfe),_0x5317da[_0x5bedfe]['item']['endIndex']>=_0x302e93){_0x144d20=_0x5bedfe;break;}_0x1d8d59&&(_0x152391=_0x302e93-0x1);for(let _0x3d38c8=_0x3460f0;_0x3d38c8<_0x302e93;_0x3d38c8++)_0x5317da[_0x3d38c8]['side']=_0x3d38c8<=_0x152391?-0x1:_0x3d38c8<_0x144d20?0x0:0x1,_0x5317da[_0x3d38c8]['index']=_0x3d38c8;let _0x3f0e57=0x0;for(let _0x4dd511=_0x3460f0;_0x4dd511<=_0x152391;_0x4dd511++)0x0==_0x5317da[_0x4dd511]['distance']?_0x5317da[_0x4dd511]['level']=_0x3f0e57:(_0x3f0e57++,_0x5317da[_0x4dd511]['level']=_0x3f0e57,_0x3f0e57++);for(let _0xc8b0fa=_0x3460f0;_0xc8b0fa<_0x302e93;_0xc8b0fa++)0x0==_0x5317da[_0xc8b0fa]['side']&&(_0x5317da[_0xc8b0fa]['level']=_0x3f0e57);_0x3f0e57=0x0;for(let _0x55948f=_0x302e93-0x1;_0x55948f>=_0x144d20;_0x55948f--)0x0==_0x5317da[_0x55948f]['distance']?_0x5317da[_0x55948f]['level']=_0x3f0e57:(_0x3f0e57--,_0x5317da[_0x55948f]['level']=_0x3f0e57,_0x3f0e57--);}}['_fixObsoleteTags'](_0xd9debd){const _0x105045=new Map(),_0x529ad0=this['editor']['model']['schema'];for(let _0x2fa9e1=0x1;_0x2fa9e1<_0xd9debd['length'];_0x2fa9e1++){let _0x1a99f4,_0x239578,_0x2d1d77;const _0x480643=_0xd9debd[_0x2fa9e1],_0x47b77c=_0xd9debd[_0x2fa9e1-0x1];if('text'==_0x480643['type'])continue;if(_0x480643['type']!=_0x47b77c['type'])continue;if(!_0x529ad0['isBlock'](_0x47b77c['item'])||_0x529ad0['isLimit'](_0x47b77c['item']))continue;if(!_0x529ad0['isBlock'](_0x480643['item'])||_0x529ad0['isLimit'](_0x480643['item']))continue;if((_0xd9debd[_0x2fa9e1]['isAdded']||_0xd9debd[_0x2fa9e1]['isAddSuggestion'])&&_0xd9debd[_0x2fa9e1-0x1]['isRemoved'])_0x1a99f4=_0xd9debd[_0x2fa9e1],_0x239578=_0xd9debd[_0x2fa9e1-0x1],_0x2d1d77=_0x2fa9e1-0x1;else{if(!_0xd9debd[_0x2fa9e1]['isRemoved']||!_0xd9debd[_0x2fa9e1-0x1]['isAdded']&&!_0xd9debd[_0x2fa9e1-0x1]['isAddSuggestion'])continue;_0x1a99f4=_0xd9debd[_0x2fa9e1-0x1],_0x239578=_0xd9debd[_0x2fa9e1],_0x2d1d77=_0x2fa9e1;}const _0x518228=_0x1a99f4['level']==_0x239578['level'],_0x1ac72d=Math['abs'](_0x1a99f4['level'])<Math['abs'](_0x239578['level'])&&0x0==_0x239578['distance'];(_0x518228||_0x1ac72d)&&(_0x105045['set'](_0x239578['id'],_0x1a99f4['id']),_0xd9debd['splice'](_0x2d1d77,0x1),_0x2fa9e1--,_0x1a99f4['isAdded']=!0x1);}for(let _0x19e971=0x0;_0x19e971<_0xd9debd['length'];_0x19e971++)_0x105045['has'](_0xd9debd[_0x19e971]['pairId'])&&(_0xd9debd[_0x19e971]['pairId']=_0x105045['get'](_0xd9debd[_0x19e971]['pairId']));}['_removeMissingPairs'](_0x46ff75){const _0x5dbb81=new Set(_0x46ff75['map'](_0x50f151=>_0x50f151['id']));for(let _0xf5967e=0x0;_0xf5967e<_0x46ff75['length'];_0xf5967e++)_0x5dbb81['has'](_0x46ff75[_0xf5967e]['pairId'])||0x0==_0x46ff75[_0xf5967e]['distance']||(_0x46ff75[_0xf5967e]['isIncorrect']=!0x0);return _0x46ff75['filter'](_0x3f84bb=>!_0x3f84bb['isIncorrect']);}['_markMismatchedRemovedTags'](_0x248b0d){const _0x58e890=new Set();for(let _0x530c4e=0x0;_0x530c4e<_0x248b0d['length'];_0x530c4e++){if(_0x58e890['has'](_0x248b0d[_0x530c4e]['id'])&&_0x248b0d[_0x530c4e]['isRemoved']&&(_0x248b0d[_0x530c4e]['isIncorrect']=!0x0),_0x248b0d[_0x530c4e]['isIncorrect'])continue;if(0x0==_0x248b0d[_0x530c4e]['distance'])continue;if('elementStart'!=_0x248b0d[_0x530c4e]['type'])continue;if(null==_0x248b0d[_0x530c4e]['pairId'])continue;let _0x191e39=_0x530c4e+0x1,_0x43f106=0x0;for(;_0x248b0d[_0x191e39]['id']!=_0x248b0d[_0x530c4e]['pairId'];)'elementStart'==_0x248b0d[_0x191e39]['type']?_0x43f106++:'elementEnd'==_0x248b0d[_0x191e39]['type']&&_0x43f106--,_0x191e39++;if(0x0!=_0x43f106){if(_0x248b0d[_0x530c4e]['isRemoved'])_0x248b0d[_0x530c4e]['isIncorrect']=!0x0;else{for(;_0x191e39!=_0x530c4e;)_0x248b0d[_0x191e39]['isRemoved']&&0x0!=_0x248b0d[_0x191e39]['distance']&&(_0x248b0d[_0x191e39]['isIncorrect']=!0x0,_0x58e890['add'](_0x248b0d[_0x191e39]['pairId'])),_0x191e39--;}}}return _0x248b0d['filter'](_0x5bb8c1=>!_0x5bb8c1['isIncorrect']);}['_removeUnsupportedChanges'](_0x2abddc){const _0x57aecd=this['editor']['model']['schema'];for(let _0x42ec39=0x0;_0x42ec39<_0x2abddc['length'];_0x42ec39++){if(!(_0x2abddc[_0x42ec39]['isAdded']||_0x2abddc[_0x42ec39]['isAddSuggestion']||_0x2abddc[_0x42ec39]['isRemoved']||_0x2abddc[_0x42ec39]['isRemoveSuggestion']))continue;if(0x0==_0x2abddc[_0x42ec39]['distance'])continue;const _0x183b20=_0x2abddc[_0x42ec39]['item'];_0x57aecd['isBlock'](_0x183b20)||_0x57aecd['isLimit'](_0x183b20)||(_0x2abddc[_0x42ec39]['isAdded']&&delete _0x2abddc[_0x42ec39]['isAdded'],_0x2abddc[_0x42ec39]['isAddSuggestion']&&delete _0x2abddc[_0x42ec39]['isAddSuggestion'],_0x2abddc[_0x42ec39]['isRemoveSuggestion']&&delete _0x2abddc[_0x42ec39]['isRemoveSuggestion'],_0x2abddc[_0x42ec39]['isRemoved']&&(_0x2abddc[_0x42ec39]['isIncorrect']=!0x0));}return _0x2abddc['filter'](_0x1b0c38=>!_0x1b0c38['isIncorrect']);}['_makeModelFromTape'](_0x3f7562,_0x23eb3f,_0x143207){const _0x151d12=new vt(),_0x3aeb88=[],_0x35117e=new Map(),_0xf5b5e4=this['editor']['model'],_0x560085=_0xf5b5e4['schema'],_0x8e7d06=[_0x151d12],_0x3c67fe={},_0x2a13a8={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x3743be=null;const _0x54837e=[0x0];for(let _0x3d63dd=0x0;_0x3d63dd<_0x3f7562['length'];_0x3d63dd++)if('elementStart'===_0x3f7562[_0x3d63dd]['type']){_0x3f7562[_0x3d63dd]['previousPosition']=_0xf5b5e4['createPositionFromPath'](_0x151d12,_0x54837e);const _0x5e42cd=new ut(_0x3f7562[_0x3d63dd]['item']['name'],_0x3f7562[_0x3d63dd]['item']['getAttributes']());_0x8e7d06[0x0]['_appendChild'](_0x5e42cd),_0x54837e['push'](0x0),_0x8e7d06['unshift'](_0x5e42cd),_0x3f7562[_0x3d63dd]['nextPosition']=_0xf5b5e4['createPositionFromPath'](_0x151d12,_0x54837e);}else'elementEnd'===_0x3f7562[_0x3d63dd]['type']?(_0x8e7d06['shift'](),_0x3f7562[_0x3d63dd]['previousPosition']=_0xf5b5e4['createPositionFromPath'](_0x151d12,_0x54837e),_0x54837e['pop'](),_0x54837e[_0x54837e['length']-0x1]++,_0x3f7562[_0x3d63dd]['nextPosition']=_0xf5b5e4['createPositionFromPath'](_0x151d12,_0x54837e)):(_0x3f7562[_0x3d63dd]['previousPosition']=_0xf5b5e4['createPositionFromPath'](_0x151d12,_0x54837e),_0x3743be?_0x3743be['_data']+=_0x3f7562[_0x3d63dd]['item']['data']:_0x3743be=new gt(_0x3f7562[_0x3d63dd]['item']['data'],_0x3f7562[_0x3d63dd]['item']['getAttributes']()),_0x3f7562[_0x3d63dd+0x1]&&'text'===_0x3f7562[_0x3d63dd+0x1]['type']&&_0x4c0ccb(_0x3743be,_0x3f7562[_0x3d63dd+0x1]['item'])||(_0x8e7d06[0x0]['_appendChild'](_0x3743be),_0x3743be=null),_0x54837e[_0x54837e['length']-0x1]+=_0x3f7562[_0x3d63dd]['item']['offsetSize'],_0x3f7562[_0x3d63dd]['nextPosition']=_0xf5b5e4['createPositionFromPath'](_0x151d12,_0x54837e));for(let _0xf21e46=0x0;_0xf21e46<_0x3f7562['length'];_0xf21e46++){const _0x5788d4=_0x3f7562[_0xf21e46]['previousPosition'],_0x4dc3b5=_0x3f7562[_0xf21e46]['nextPosition'];for(const _0x1b51d7 of _0x3f7562[_0xf21e46]['markersStart'])_0x35117e['set'](_0x1b51d7,{'start':_0x5788d4,'end':null});_0x5bcd17('isRemoveSuggestion',_0xf21e46,_0x5788d4,_0x4dc3b5),_0x5bcd17('isAddSuggestion',_0xf21e46,_0x5788d4,_0x4dc3b5),_0x5bcd17('isRemoved',_0xf21e46,_0x5788d4,_0x4dc3b5),_0x5bcd17('isAdded',_0xf21e46,_0x5788d4,_0x4dc3b5);for(const _0x2f92c7 of _0x3f7562[_0xf21e46]['markersEnd']){const _0x135ee9=_0x35117e['get'](_0x2f92c7);_0x135ee9?_0x135ee9['end']=_0x4dc3b5:_0x35117e['set'](_0x2f92c7,{'start':_0x4dc3b5,'end':_0x4dc3b5});}}for(const [_0x3747cc,_0xc0a788]of _0x35117e){const _0x1842ed=this['editor']['model']['createRange'](_0xc0a788['start'],_0xc0a788['end']);_0x151d12['markers']['set'](_0x3747cc,_0x1842ed);}return _0x3aeb88['sort']((_0x456519,_0x394ccd)=>{const _0x3a70ed=_0x151d12['markers']['get']('revision:'+_0x456519['id']),_0x77c2be=_0x151d12['markers']['get']('revision:'+_0x394ccd['id']);return _0x3a70ed['start']['isBefore'](_0x77c2be['start'])?-0x1:_0x3a70ed['start']['isAfter'](_0x77c2be['start'])?0x1:_0x3a70ed['end']['isBefore'](_0x77c2be['end'])?-0x1:_0x3a70ed['end']['isAfter'](_0x77c2be['end'])?0x1:'add'===_0x456519['type']?-0x1:0x1;}),{'root':_0x151d12,'changes':_0x3aeb88};function _0x5bcd17(_0x18732e,_0x24551e,_0x4e41ad,_0x41445d){const _0x364a85=!!_0x3f7562[_0x24551e][_0x18732e],_0xad2f00=_0x364a85?_0x3f7562[_0x24551e][_0x18732e]['userId']:null,_0xf51c7=_0x24551e===_0x3f7562['length']-0x1,_0xcbdff9=_0x2a13a8[_0x18732e][0x0],_0x4229bc=_0x560085['isObject'](_0x3f7562[_0x24551e]['item']);!_0x3c67fe[_0x18732e]&&_0x364a85?_0x3c67fe[_0x18732e]={'start':_0x4e41ad,'tapeItem':_0x3f7562[_0x24551e],'userId':_0xad2f00,'type':_0x18732e}:_0x3c67fe[_0x18732e]&&!_0x364a85?(_0x3c67fe[_0x18732e]['end']=_0x4e41ad,_0x43c296(_0x3c67fe[_0x18732e]),_0x3c67fe[_0x18732e]=null):_0x3c67fe[_0x18732e]&&_0x364a85&&_0x3c67fe[_0x18732e]['userId']!==_0xad2f00&&(_0x3c67fe[_0x18732e]['end']=_0x4e41ad,_0xcbdff9&&_0xcbdff9['userId']===_0x3c67fe[_0x18732e]['userId']||_0x43c296(_0x3c67fe[_0x18732e]),_0x3c67fe[_0x18732e]={'start':_0x4e41ad,'tapeItem':_0x3f7562[_0x24551e],'userId':_0xad2f00,'type':_0x18732e}),_0x3c67fe[_0x18732e]&&_0x4229bc&&('elementStart'!==_0x3f7562[_0x24551e]['type']||_0xcbdff9&&_0xcbdff9['userId']===_0xad2f00||_0x2a13a8[_0x18732e]['unshift']({'userId':_0xad2f00,'object':_0x3f7562[_0x24551e]['item'],'change':_0x3c67fe[_0x18732e]}),'elementEnd'===_0x3f7562[_0x24551e]['type']&&_0xcbdff9&&_0xcbdff9['object']===_0x3f7562[_0x24551e]['item']&&(_0x2a13a8[_0x18732e]['shift'](),_0x3c67fe[_0x18732e]=_0xcbdff9['change'])),_0x3c67fe[_0x18732e]&&_0xf51c7&&(_0x3c67fe[_0x18732e]['end']=_0x41445d,_0x43c296(_0x3c67fe[_0x18732e]),_0x3c67fe[_0x18732e]=null);}function _0x43c296({start:_0x1efc5d,end:_0x1ca768,tapeItem:_0x293957,userId:_0x45518e,type:_0x29f0d6}){const _0x2c47fb=_0x293957['item'],_0x4d4d1b=_0xf5b5e4['schema']['isBlock'](_0x2c47fb)&&!_0xf5b5e4['schema']['isLimit'](_0x2c47fb),_0x4e81c0=_0x1efc5d['nodeAfter']==_0x1ca768['parent']&&_0x1ca768['isAtStart'];if(_0x4d4d1b&&_0x4e81c0)return;const _0x191b73=_0xf5b5e4['createRange'](_0x1efc5d,_0x1ca768),_0x4dbc8a=_0x23eb3f['get'](_0x45518e),_0x275ab6=new r({'author':_0x4dbc8a,'type':'isAdded'==_0x29f0d6||'isAddSuggestion'==_0x29f0d6?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x29f0d6||'isRemoveSuggestion'==_0x29f0d6},'createdAt':new Date(),'rootName':_0x143207});_0x3aeb88['push'](_0x275ab6),_0x151d12['markers']['set']('revision:'+_0x275ab6['id'],_0x191b73);}function _0x4c0ccb(_0x12f5e5,_0x89ada0){const _0x4228a3=_0x12f5e5['getAttributes'](),_0x238d33=_0x89ada0['getAttributes']();for(const _0x52de44 of _0x4228a3){if(_0x52de44[0x1]!==_0x89ada0['getAttribute'](_0x52de44[0x0]))return!0x1;_0x238d33['next']();}return _0x238d33['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x19ee1e=>{const _0x5c7900=_0x19ee1e['markerName']['split'](':')[0x1],_0x2bd676=this['_getChangeFromId'](_0x5c7900);if(!_0x2bd676)return null;const _0x5b6477='add'==_0x2bd676['type']?'insertion':'deletion',_0x3500a1=['ck-suggestion-marker','ck-suggestion-marker-'+_0x5b6477];return _0x2bd676['data']['isSuggestion']&&_0x3500a1['push']('ck-suggestion-marker-'+_0x5b6477+'-new'),this['activeChange']==_0x2bd676&&_0x3500a1['push']('ck-suggestion-marker--active'),{'classes':_0x3500a1,'attributes':{'data-change-id':_0x5c7900}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x4824ab=>{_0x4824ab['on']('element:pre',(_0x11bd80,_0x4f35af,_0x1c50ff)=>{const _0x3e9681=_0x4f35af['viewItem']['getChild'](0x0);if(!_0x3e9681||!_0x3e9681['is']('element','code'))return;if(!_0x1c50ff['consumable']['consume'](_0x3e9681,{'attributes':['vid_start','vid_end']}))return;const _0x137e81=_0x4f35af['modelRange']['start']['nodeAfter'];_0x1c50ff['writer']['setAttribute']('vid_start',_0x3e9681['getAttribute']('vid_start'),_0x137e81),_0x1c50ff['writer']['setAttribute']('vid_end',_0x3e9681['getAttribute']('vid_end'),_0x137e81);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x84d0ed=>{_0x84d0ed['on']('element',(_0x3c5390,_0x2c312c,_0x31232a)=>{if(!_0x31232a['consumable']['consume'](_0x2c312c['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x2c312c['modelRange']['isCollapsed'])return;const _0x2dd689=_0x2c312c['modelRange']['start']['nodeAfter'];_0x2dd689['hasAttribute']('vid_start')||_0x2dd689['hasAttribute']('vid')||(_0x31232a['writer']['setAttribute']('vid_start',_0x2c312c['viewItem']['getAttribute']('vid_start'),_0x2dd689),_0x31232a['writer']['setAttribute']('vid_end',_0x2c312c['viewItem']['getAttribute']('vid_end'),_0x2dd689));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x445c94=>_0x445c94['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x260db8,[,_0x47a412])=>{['vid_start','vid_end','vid']['includes'](_0x47a412)&&(_0x260db8['return']=!0x0,_0x260db8['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x420443=>{_0x420443['on']('attribute:vid',(_0x495cdd,_0x38335b,_0x33c914)=>{if('\x20'!=_0x38335b['item']['data']||_0x38335b['item']['parent']['maxOffset']>0x1)return;if(!_0x33c914['consumable']['consume'](_0x38335b['item'],_0x495cdd['name']))return;const _0xb93330=_0x33c914['writer'],_0x4d9de8=_0x33c914['mapper']['toViewRange'](_0x38335b['range']);_0xb93330['wrap'](_0x4d9de8,_0xb93330['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x483270){const _0x7aa25=_0x483270['plugins']['get']('RevisionViewer');return(_0x230de1,_0x127844,_0xab4679)=>{const _0x416026=_0x127844['markerName']['split'](':')[0x1],_0x1935c8=_0x7aa25['_getChangeFromId'](_0x416026);if(!_0x1935c8)return null;const _0x7f9884='add'==_0x1935c8['type']?'split':'merge';if(!_0xab4679['consumable']['test'](_0x127844['markerRange'],_0x230de1['name']))return;const _0x502168=_0x127844['markerRange']['getWalker'](),_0x529961=_0x127844['markerRange']['start'],_0x55990e=_0x483270['model']['schema'];let _0x46f768=null,_0x145a3e=null,_0x55ceee=!0x1,_0x53cb8b=!0x1;for(const _0x41324f of _0x502168){const _0x558522=_0x41324f['item'];_0x55ceee=_0x55ceee||_0x55990e['isContent'](_0x558522);const _0x34c5b5=_0xab4679['mapper']['toViewElement'](_0x558522);if(_0x34c5b5&&_0x34c5b5['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x41324f['type']&&(_0x55990e['isBlock'](_0x558522)&&!_0x55990e['isLimit'](_0x558522)&&(_0x558522['nextSibling']||_0x529961['isAtEnd']?_0x46f768&&_0x46f768['parent']==_0x558522||(_0x46f768=_0x558522,_0x185ac8(_0x41324f['previousPosition']),_0x53cb8b=!0x0):_0x145a3e=_0x145a3e||_0x41324f['previousPosition']));}function _0x185ac8(_0x298851){const _0x106e81=_0xab4679['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x7f9884}),_0x5a1999=_0xab4679['mapper']['toViewPosition'](_0x298851);_0x1935c8['data']['isSuggestion']&&_0xab4679['writer']['addClass']('ck-suggestion-marker-'+_0x7f9884+'-new',_0x106e81),_0x7aa25['activeChange']==_0x1935c8&&_0xab4679['writer']['addClass']('ck-suggestion-marker--active',_0x106e81),_0xab4679['writer']['insert'](_0x5a1999,_0x106e81),_0xab4679['mapper']['bindElementToMarker'](_0x106e81,_0x127844['markerName']);}_0x55ceee||_0x53cb8b||!_0x145a3e||_0x185ac8(_0x145a3e);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x5d02ff,_0x12191e,_0xe8fe5b)=>{const _0x599273=_0xe8fe5b['mapper']['markerNameToElements'](_0x12191e['markerName']);if(_0x599273){for(const _0x2ebf7c of _0x599273)(_0x2ebf7c['hasClass']('ck-suggestion-marker-split')||_0x2ebf7c['hasClass']('ck-suggestion-marker-merge'))&&(_0xe8fe5b['mapper']['unbindElementFromMarkerName'](_0x2ebf7c,_0x12191e['markerName']),_0xe8fe5b['writer']['remove'](_0x2ebf7c));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x48a434,_0x343fe1,_0x42caba)=>{const _0x1effbe=_0x343fe1['markerName']['split'](':')[0x1],_0x3d773f=this['_getChangeFromId'](_0x1effbe);if(!_0x3d773f)return null;const _0x2f891a='add'==_0x3d773f['type']?'split':'merge';if(_0x42caba['consumable']['test'](_0x343fe1['markerRange'],_0x48a434['name']))for(const _0x1da1aa of _0x343fe1['markerRange']['getItems']()){if(!_0x1da1aa['is']('element','softBreak'))continue;const _0x3707f1=_0x42caba['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2f891a}),_0xd78664=_0x42caba['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x1da1aa));_0x3d773f['data']['isSuggestion']&&_0x42caba['writer']['addClass']('ck-suggestion-marker-'+_0x2f891a+'-new',_0x3707f1),this['activeChange']==_0x3d773f&&_0x42caba['writer']['addClass']('ck-suggestion-marker--active',_0x3707f1),_0x42caba['writer']['insert'](_0xd78664,_0x3707f1),_0x42caba['mapper']['bindElementToMarker'](_0x3707f1,_0x343fe1['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x24e090=>{for(const _0x185da5 of this['editor']['model']['document']['getRootNames']()){const _0x18e89f=this['editor']['model']['document']['getRoot'](_0x185da5),_0x1ae68b=this['editor']['editing']['view']['document']['getRoot'](_0x185da5);if(_0x1ae68b){const _0x24e1b1=_0x18e89f['getAttribute']('revisionHistoryAttachChange');if(_0x24e090['removeAttribute']('data-change-id',_0x1ae68b),_0x24e090['removeClass']('ck-revision-history-root-add',_0x1ae68b),_0x24e090['removeClass']('ck-revision-history-root-remove',_0x1ae68b),_0x24e090['removeClass']('ck-revision-history-root--active',_0x1ae68b),_0x24e1b1){const _0x419491=this['_getChangeFromId'](_0x24e1b1);if(!_0x419491)return null;_0x24e090['setAttribute']('data-change-id',_0x24e1b1,_0x1ae68b),_0x24e090['addClass']('ck-revision-history-root-'+_0x419491['type'],_0x1ae68b),this['activeChange']==_0x419491&&_0x24e090['addClass']('ck-revision-history-root--active',_0x1ae68b);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x60017e=>'revision-comment:'+_0x60017e,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x5b637f=>'revision-suggestion:'+_0x5b637f,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x51842d=>({'name':'suggestion:'+_0x51842d,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x2ee28b=>{const _0x129f69=_0x2ee28b['markerName']['split'](':')[0x1];return'insertion'!=_0x129f69&&'deletion'!=_0x129f69?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x129f69]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',X(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',X(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x3aee48,_0xff0ec8,_0x47a6c3)=>{const _0x2fec9d=_0x47a6c3['mapper']['markerNameToElements'](_0xff0ec8['markerName']);if(_0x2fec9d){for(const _0x311828 of _0x2fec9d)_0x311828['is']('uiElement')&&(_0x47a6c3['mapper']['unbindElementFromMarkerName'](_0x311828,_0xff0ec8['markerName']),_0x47a6c3['writer']['remove'](_0x311828));}},{'priority':'high'});}['_getChangeFromId'](_0x2e3588){return this['_changeIdToChange']['get'](_0x2e3588);}['_getViewForChange'](_0x2fb7e5){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x2fb7e5),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x2da9d8,_0x425b06,_0x2db7a0,_0x12efc3)=>{_0x12efc3&&this['_balloon']['remove'](_0x12efc3),_0x2db7a0&&(this['_balloon']['add']({'view':_0x2db7a0,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x321ec0=this['editor']['editing'],_0x5b3d35=this['_getChangeFromId'](_0x2db7a0['changeId']);let _0x79c1aa;if(_0x5b3d35['data']['isOnRoot']){const _0x4fc078=_0x321ec0['view']['getDomRoot'](_0x5b3d35['rootName']);_0x79c1aa=Array['from'](_0x4fc078['getClientRects']());}else{const _0x48e1c6=this['editor']['model']['markers']['get']('revision:'+_0x2db7a0['changeId']);_0x79c1aa=Array['from'](_0x321ec0['mapper']['markerNameToElements'](_0x48e1c6['name']))['map'](_0x4f49b4=>_0x321ec0['view']['domConverter']['mapViewToDom'](_0x4f49b4))['map'](_0x355d99=>Array['from'](_0x355d99['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x79c1aa[0x0];return _0x79c1aa['find'](_0x361c51=>_0x361c51['top']-0x3<=this['_activeViewTarget']['y']&&_0x361c51['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x361c51['left']-0x3<=this['_activeViewTarget']['x']&&_0x361c51['right']+0x3>=this['_activeViewTarget']['x'])||_0x79c1aa[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x2e04b6,_0x5020e8,_0x2b29d4,_0x11e7a8)=>{this['activeView']=_0x2b29d4?this['_getViewForChange'](_0x2b29d4):null,this['editor']['model']['change'](()=>{const _0x58a153=this['editor']['editing'];_0x11e7a8&&(_0x11e7a8['data']['isOnRoot']?_0x58a153['view']['change'](_0x2c9dc8=>{_0x2c9dc8['removeClass']('ck-revision-history-root--active',_0x58a153['view']['document']['getRoot'](_0x11e7a8['rootName']));}):_0x58a153['reconvertMarker']('revision:'+_0x11e7a8['id'])),_0x2b29d4&&(_0x2b29d4['data']['isOnRoot']?_0x58a153['view']['change'](_0x1e0f69=>{_0x1e0f69['addClass']('ck-revision-history-root--active',_0x58a153['view']['document']['getRoot'](_0x2b29d4['rootName']));}):_0x58a153['reconvertMarker']('revision:'+_0x2b29d4['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x18d2e7,_0x6f672d)=>{if(this['activeChange'])return;const _0x4876f5=this['_findChangeIdFromDomTarget'](_0x6f672d['target']),_0x396141=this['_changeIdToChange']['get'](_0x4876f5);_0x396141?(this['_activeViewTarget']={'x':_0x6f672d['domEvent']['x'],'y':_0x6f672d['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x396141)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x127d79,_0x446ac1)=>{const _0x5a3d4b=this['_findChangeIdFromDomTarget'](_0x446ac1['target']),_0x3c11e9=this['_changeIdToChange']['get'](_0x5a3d4b);_0x3c11e9?(this['_activeViewTarget']={'x':_0x446ac1['domEvent']['x'],'y':_0x446ac1['domEvent']['y']},_0x3c11e9===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x3c11e9):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x3b9f23){do{const _0xeeaa06=_0x3b9f23['getAttribute']('data-change-id');if(_0xeeaa06)return _0xeeaa06;_0x3b9f23=_0x3b9f23['parent'];}while(_0x3b9f23);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x37269d=>{for(const _0xfe84d5 of this['editor']['model']['markers'])_0x37269d['removeMarker'](_0xfe84d5);});}}function X(_0xbdb6fe,_0x695191){return(_0x33f52b,_0x4a71ce,_0x1517cc)=>{if(!_0x1517cc['consumable']['test'](_0x4a71ce['markerRange'],_0x33f52b['name']))return;const _0x4ced38=_0x4a71ce['markerRange']['getWalker'](),_0x1c08b1=_0x4a71ce['markerRange']['start'],_0x5f0c44=_0xbdb6fe['model']['schema'];let _0x500d17=null,_0x591a83=null,_0x553b71=!0x1,_0x1573c7=!0x1;for(const _0x37ea1b of _0x4ced38){const _0x6578ac=_0x37ea1b['item'];_0x553b71=_0x553b71||_0x5f0c44['isContent'](_0x6578ac);const _0x3ffd1a=_0x1517cc['mapper']['toViewElement'](_0x6578ac);if(_0x3ffd1a&&_0x3ffd1a['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x37ea1b['type']&&(_0x5f0c44['isBlock'](_0x6578ac)&&!_0x5f0c44['isLimit'](_0x6578ac)&&(_0x6578ac['nextSibling']||_0x1c08b1['isAtEnd']?_0x500d17&&_0x500d17['parent']==_0x6578ac||(_0x500d17=_0x6578ac,_0x356cee(_0x37ea1b['previousPosition']),_0x1573c7=!0x0):_0x591a83=_0x591a83||_0x37ea1b['previousPosition']));}function _0x356cee(_0x32b3b5){const _0x4a0370=_0x1517cc['mapper']['toViewPosition'](_0x32b3b5),_0x480153=_0x1517cc['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x695191});_0x1517cc['writer']['insert'](_0x4a0370,_0x480153),_0x1517cc['mapper']['bindElementToMarker'](_0x480153,_0x4a71ce['markerName']);}_0x553b71||_0x1573c7||!_0x591a83||_0x356cee(_0x591a83);};}class mt extends _0x4ad7f3{constructor(_0x3ead89){super(_0x3ead89);const _0x56a9c9=_0x3ead89['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x56a9c9,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x56a9c9,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x57f1cb=this['editor'],_0x3415f5=_0x57f1cb['plugins']['get'](m),_0x2e1533=_0x3415f5['isReady']?_0x3415f5['diff']['newRevisionId']:null;_0x57f1cb['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x2e1533);}['refresh'](){const {isReady:_0x366627,isEnabled:_0xc8083a,repository:_0x445ae9,diff:_0x1d0a02}=this['editor']['plugins']['get'](m),_0x16d9d7=_0x1d0a02&&_0x445ae9['getLaterVisibleRevision'](_0x1d0a02['newRevisionId']);this['isEnabled']=_0x366627&&_0xc8083a&&Boolean(_0x16d9d7);}}class wt extends _0x4ad7f3{['_step'];constructor(_0x2d3f7e,{direction:_0x4c5b68}){super(_0x2d3f7e);const _0x979913=_0x2d3f7e['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x4c5b68?0x1:-0x1,this['listenTo'](_0x979913,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x979913,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x979913,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x3791d7=this['editor'],_0x53d4ee=_0x3791d7['plugins']['get'](m),{isNavigationMode:_0x505623,currentChangeNumber:_0x2611cf}=_0x53d4ee;let _0xfdc57f;if(_0x53d4ee['activeChange']=_0x505623?_0x53d4ee['diff']['changes']['get'](_0x2611cf+this['_step']):_0x53d4ee['diff']['changes']['first'],_0x53d4ee['activeChange']['data']['isOnRoot'])_0xfdc57f=_0x3791d7['editing']['view']['getDomRoot'](_0x53d4ee['activeChange']['rootName']);else{const _0x1cd136=_0x3791d7['model']['markers']['get']('revision:'+_0x53d4ee['activeChange']['id']);_0xfdc57f=_0x286786(_0x3791d7['editing'],_0x1cd136);}_0xdb082a({'target':_0xfdc57f,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x19c253,currentChangeNumber:_0x5cda0f,numberOfChanges:_0x71f495,isReady:_0x1e76b9,isEnabled:_0x253db4}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x253db4&&_0x1e76b9&&_0x71f495)&&(!_0x19c253||(0x1===this['_step']?_0x5cda0f<_0x71f495-0x1:_0x5cda0f>0x0));}}class _i extends ts{constructor(_0x1e0d1b){super(_0x1e0d1b);const _0x4d415c=this['bindTemplate'],_0x436111=new te(_0x1e0d1b),_0x121b6c=new te(_0x1e0d1b);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',(_0x277ff0,_0x2a7fa6)=>_0x277ff0&&_0x2a7fa6>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x49a9b8,_0x235ff8,_0x45f33d,_0x31c8ea)=>{if(!_0x49a9b8)return g(_0x1e0d1b,'Loading...');if(!_0x45f33d)return g(_0x1e0d1b,'No\x20changes');const _0x221aea=g(_0x1e0d1b,'NUMBER_OF_CHANGES',_0x45f33d);return _0x31c8ea?g(_0x1e0d1b,'X_OF_Y_CHANGES',[_0x235ff8+0x1,_0x45f33d]):_0x221aea;}),_0x436111['set']({'label':g(_0x1e0d1b,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x2858bc}),_0x121b6c['set']({'label':g(_0x1e0d1b,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x1c5bf8}),_0x436111['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x121b6c['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x436111['on']('execute',()=>this['fire']('execute','backward')),_0x121b6c['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',_0x4d415c['if']('_isStatusLabelVisible','ck-hidden',_0x1409d3=>!_0x1409d3)]},'children':[{'text':_0x4d415c['to']('isNavigationMode',_0x2d276a=>_0x2d276a?g(_0x1e0d1b,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x1e0d1b,'Total')+':\x20')}]},{'text':_0x4d415c['to']('_statusText')}]},new _0x4f8ba2(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x436111,_0x121b6c]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x443a46{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x1bbb3b=this['editor']['editing']['view'];_0x1bbb3b['change'](_0x17350d=>{for(const _0xbe14f8 of _0x1bbb3b['document']['roots'])_0x17350d['addClass'](le,_0xbe14f8);});}['hide'](){const _0x10cb46=this['editor']['editing']['view'];_0x10cb46['change'](_0x3fed70=>{for(const _0x542b27 of _0x10cb46['document']['roots'])_0x3fed70['removeClass'](le,_0x542b27);});}}class R extends _0x443a46{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,ge];}['init'](){const _0x1a2f4f=this['editor'],_0x5625b7=_0x1a2f4f['plugins']['get'](m),_0x53fcf6=_0x1a2f4f['plugins']['get'](ge);_0x1a2f4f['ui']['componentFactory']['add']('exitToEditing',_0x547f61=>{const _0x46625d=new te(_0x547f61);return _0x46625d['set']({'label':g(_0x547f61,'Back\x20to\x20editing'),'icon':_0x7b404c,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x46625d,'execute',()=>{_0x1a2f4f['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x46625d;}),_0x1a2f4f['ui']['componentFactory']['add']('restoreRevision',_0x1e5add=>{const _0xf47fc1=new te(_0x1e5add);return _0xf47fc1['set']({'label':g(_0x1e5add,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0xf47fc1['bind']('isEnabled')['to'](_0x1a2f4f['commands']['get']('restoreRevision')),this['listenTo'](_0xf47fc1,'execute',()=>_0x1a2f4f['execute']('restoreRevision')),_0xf47fc1;}),_0x1a2f4f['ui']['componentFactory']['add']('changesNavigation',_0x1b18e1=>{const _0x32ae69=new _i(_0x1b18e1),_0x26d1b=_0x1a2f4f['commands']['get']('showPreviousChange'),_0x59185d=_0x1a2f4f['commands']['get']('showNextChange');return _0x32ae69['bind']('isBackwardNavigationEnabled')['to'](_0x26d1b,'isEnabled'),_0x32ae69['bind']('isForwardNavigationEnabled')['to'](_0x59185d,'isEnabled'),_0x32ae69['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x5625b7),this['listenTo'](_0x32ae69,'execute',(_0x313f3a,_0x3615c1)=>{_0x1a2f4f['execute']('forward'===_0x3615c1?'showNextChange':'showPreviousChange');}),_0x32ae69;}),_0x53fcf6['show'](),_0x5625b7['on']('change:isReady',(_0x45cef2,_0x2cffce,_0x1948d5)=>{_0x1948d5?_0x53fcf6['hide']():_0x53fcf6['show']();});}}class at extends _0x5d8229{['_resizeObserver']=null;constructor(_0x110419,_0x547c16){super(_0x110419,_0x547c16);const _0x186cf0=this['bindTemplate'];this['set']({'label':g(_0x110419,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x110419,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x186cf0['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new nt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x263feb=this['fieldView']['element'];this['_tooltipString']=_0x263feb['scrollWidth']>_0x263feb['clientWidth']&&_0x263feb['value']||'';}}class si extends ts{constructor(_0x71164a,_0x2597df,_0x25fd2f){super(_0x71164a);const _0x1aed1c=new _0x5c632d();_0x1aed1c['set']({'content':_0x461254,'viewBox':'0\x200\x2011\x2010'});const _0x2241cc=['ck','ck-revision-history-sidebar__revision-author'];_0x25fd2f&&_0x2241cc['push']('ck-revision-history-sidebar__revision-author_creator');const _0x4ec89b=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x71164a,_0x25fd2f?'Revision\x20creator':'Revision\x20author')},'children':[_0x1aed1c,_0x2597df['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x2241cc},'children':_0x4ec89b});}}function oi(_0x30b947,_0x2ec505){const _0x1268b3=_0x30b947['bindTemplate'],_0xc1023=_0x30b947['locale'],_0x239cf8=_0x1429b9(_0xc1023);_0x239cf8['panelPosition']='sw';const _0x396eee=function(_0x3759b4,_0x55092b){const _0x216f65=function(_0x1c857d,_0x28d025){const _0x4d58f2=_0x1c857d['locale'],_0x2324b9={'Compare\x20against\x20selected':g(_0x4d58f2,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x4d58f2,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x4d58f2,'Restore\x20this\x20revision')};return _0x28d025['map'](_0x25d8f2=>{const _0x54bbd1=_0x2324b9[_0x25d8f2['name']];return _0x54bbd1&&_0x54bbd1!==_0x25d8f2['name']&&(_0x25d8f2['name']=_0x54bbd1),_0x25d8f2;});}(_0x3759b4,_0x55092b),_0x48bd67=new _0x239345();for(const _0x465280 of _0x216f65){const _0x86b2e8={'type':'button','model':new to({'label':_0x465280['name'],'class':_0x465280['class'],'withText':!0x0,'role':'menuitem','_action':_0x465280['action']})};_0x86b2e8['model']['bind']('isEnabled')['to'](_0x3759b4,'isActionsDropdownOpen',_0x24138b=>'function'!=typeof _0x465280['isEnabled']||(!_0x24138b||_0x465280['isEnabled'](_0x3759b4))),_0x48bd67['add'](_0x86b2e8);}return _0x48bd67;}(_0x30b947,_0x2ec505);return _0x30b947['bind']('isActionsDropdownOpen')['to'](_0x239cf8,'isOpen'),_0x239cf8['buttonView']['set']({'label':g(_0xc1023,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x3a1eed}),_0x239cf8['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x1268b3['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x1268b3['to'](_0x405388=>_0x405388['stopPropagation']())}}),_0x239cf8['on']('execute',_0x451906=>{_0x30b947['isReady']&&'function'==typeof _0x451906['source']['_action']&&_0x451906['source']['_action'](_0x30b947);}),_0xc4778d(_0x239cf8,_0x396eee,{'role':'menu'}),_0x239cf8['listenTo'](_0x30b947,'change:isActionsDropdownOpen',(_0x437ac1,_0x1205a8,_0x5db9cd)=>{if(_0x5db9cd)for(const _0x1e30ad of _0x239cf8['listView']['items']){const _0x214487=_0x1e30ad['children']['first'],_0x3da42b=_0x2ec505['find'](_0x34ca86=>_0x34ca86['action']===_0x214487['_action'])['isVisible'];_0x1e30ad['isVisible']=void 0x0===_0x3da42b||_0x3da42b(_0x30b947);}}),_0x239cf8;}class hi extends/* #__PURE__ -- @preserve */
|
|
26
|
-
|
|
23
|
+
import{ObservableMixin as _0x403bd3,uid as _0x21b6c1,Collection as _0x93c57c,logWarning as _0x155fb9,FocusTracker as _0x3169cf,KeystrokeHandler as _0x3cd51a,scrollViewportToShowTarget as _0x3cc31c,ResizeObserver as nt,ElementReplacer as ot,CKEditorError as _0x10de98}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x5c4150,set as _0x4b3e9e,unset as _0x1c146f,isEqual as _0x85b8af}from'es-toolkit/compat';import{Plugin as _0x569b2d,PendingActions as _0x43bcff,Command as _0x447304,ElementApiMixin as _0x446a9a,Editor as _0x2d9f85}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x36246b,getMarkerDomElement as _0x3e6754,ConfirmMixin as _0x2bc197,sanitizeEditorConfig as _0x4c78ca}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x5ce04e,ViewAttributeElement as _0x382ce4,ViewEmptyElement as _0x11f02d,ViewRawElement as _0x4fa4c6,ViewUIElement as _0x598fc3,ViewDocumentFragment as _0x16ce2b,ViewText as _0x53531c,ViewElement as _0xfc13bc,Element as ut,Range as lt,Position as ft,DocumentFragment as vt,Text as gt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x36a0df,IconChevronUp as _0x7e3ec3,IconChevronDown as _0x2de4f2,IconUndo as _0x2574cb,IconUser as _0x5acc08,IconThreeVerticalDots as _0x4126f9}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x558c45,submitHandler as _0x5b2273,LabeledFieldView as _0x44236c,createLabeledInputText as _0x3243f8,createDropdown as _0x349be9,ListView as _0x5edbb0,ListItemView as _0x11cc1b,ButtonView as te,MenuBarMenuView as _0x38f813,MenuBarMenuListView as _0x202c2b,MenuBarMenuListItemView as _0x54af72,MenuBarMenuListItemButtonView as _0x5cdc55,ContextualBalloon as _0x1d4d68,ToolbarSeparatorView as _0x5b9bc3,IconView as _0x1cb45c,addListToDropdown as _0x5c4b24,ViewModel as to,EditorUI as st,normalizeToolbarConfig as et,BoxedEditorUIView as rt,StickyPanelView as ht,ToolbarView as dt,InlineEditableUIView as ct}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x4f2601}from'luxon';class h extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x403bd3(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x1e2f91){super(),this['id']=_0x1e2f91['id']||_0x21b6c1(),this['creator']=_0x1e2f91['creator']||null,this['authors']=_0x1e2f91['authors']||[],this['diffData']=_0x1e2f91['diffData']||null,this['toVersion']=_0x1e2f91['toVersion']||0x0,this['fromVersion']=_0x1e2f91['fromVersion']||0x0,this['set']('name',_0x1e2f91['name']||''),this['set']('createdAt',_0x1e2f91['createdAt']||new Date()),this['set']('attributes',_0x1e2f91['attributes']||{});}['setName'](_0x15e719){this['_update']({'name':_0x15e719});}['setAttribute'](_0x5674c6,_0x1c535a){const _0x1e2c06=_0x5c4150(this['attributes']);_0x4b3e9e(_0x1e2c06,_0x5674c6,_0x1c535a),this['_update']({'attributes':_0x1e2c06});}['removeAttribute'](_0x3a44e3){const _0x2bef66=_0x5c4150(this['attributes']);_0x1c146f(_0x2bef66,_0x3a44e3),this['_update']({'attributes':_0x2bef66});}['_update'](_0x58607e,_0x26f8e5=!0x1){let _0x38008e=!0x1;const _0x382822={'id':this['id']},_0x1f1953=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x409991 of _0x1f1953){const _0x31ae24=_0x58607e[_0x409991];void 0x0!==_0x31ae24&&_0x31ae24!==this[_0x409991]&&(this[_0x409991]=_0x31ae24,_0x382822[_0x409991]=_0x31ae24,_0x38008e=!0x0);}_0x38008e&&(_0x382822['authors']&&(_0x382822['authorsIds']=_0x382822['authors']['map'](_0x2b0322=>_0x2b0322['id']),delete _0x382822['authors']),this['fire']('_update',_0x382822,_0x26f8e5));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x59cff8=>_0x59cff8['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x569b2d{['_revisions'];static get['requires'](){return[_0x36246b];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0xc51893){super(_0xc51893),this['_revisions']=new _0x93c57c();}['afterInit'](){!async function(_0x2b882a){const _0x281943=_0x549c17([0x33,0x35,0x64,0x74,0x38,0x7a,0x53,0x42,0x79,0x59,0x4c,0x57,0x65,0x51,0x50,0x69,0x78,0x5a,0x58,0x43,0x4a,0x77,0x48,0x6d,0x6a,0x52,0x70,0x56,0x4f,0x75,0x62,0x44,0x31,0x6b,0x39,0x66,0x6e,0x41,0x61,0x72,0x32,0x54,0x63,0x37,0x4d,0x45,0x34,0x76,0x6c,0x55,0x71,0x30,0x67,0x4e,0x6f,0x46,0x49,0x47,0x68,0x36,0x73,0x4b]),_0x44d44f=0xeb829,_0xe7edf=0x2f9abab5,_0x54060e=0x2f9dd11d^_0xe7edf,_0x5a14b0=window[_0x549c17([0x44,0x61,0x74,0x65])][_0x549c17([0x6e,0x6f,0x77])](),_0x58b036=_0x2b882a[_0x549c17([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x327b49=new window[(_0x549c17([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x10cdd7=>{_0x58b036[_0x549c17([0x6f,0x6e,0x63,0x65])](_0x549c17([0x72,0x65,0x61,0x64,0x79]),_0x10cdd7);}),_0x4156d4={[_0x549c17([0x6b,0x74,0x79])]:_0x549c17([0x45,0x43]),[_0x549c17([0x75,0x73,0x65])]:_0x549c17([0x73,0x69,0x67]),[_0x549c17([0x63,0x72,0x76])]:_0x549c17([0x50,0x2d,0x32,0x35,0x36]),[_0x549c17([0x78])]:_0x549c17([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]),[_0x549c17([0x79])]:_0x549c17([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]),[_0x549c17([0x61,0x6c,0x67])]:_0x549c17([0x45,0x53,0x32,0x35,0x36])},_0x1c2704=_0x58b036[_0x549c17([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x549c17([0x67,0x65,0x74])](_0x549c17([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x155e49(){let _0x37fe8a,_0x52e8cd=null,_0x3d6ce2=null;try{if(_0x1c2704==_0x549c17([0x47,0x50,0x4c]))return _0x549c17([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x37fe8a=_0x2106ff(),!_0x37fe8a)return _0x549c17([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x37fe8a[_0x549c17([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3d6ce2=_0x446554(_0x37fe8a[_0x549c17([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x37fe8a[_0x549c17([0x6a,0x74,0x69])])),await _0x527635()?_0x3d6e10()?_0x22665f()?_0x549c17([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x543248()?(_0x37fe8a[_0x549c17([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x549c17([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x52e8cd=_0x4350d9(_0x549c17([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x37fe8a[_0x549c17([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x549c17([0x74,0x72,0x69,0x61,0x6c])&&(_0x52e8cd=_0x4350d9(_0x549c17([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x179ee5()):_0x549c17([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x549c17([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x549c17([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x549c17([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x22665f(){const _0x4d71aa=[_0x549c17([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x549c17([0x74,0x72,0x69,0x61,0x6c])][_0x549c17([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x37fe8a[_0x549c17([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5a14b0/0x3e8:0xe10*_0x54060e;return _0x37fe8a[_0x549c17([0x65,0x78,0x70])]<_0x4d71aa;}function _0x3d6e10(){const _0x4007a5=_0x37fe8a[_0x549c17([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4007a5)return!0x1;if(_0x4007a5[_0x549c17([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x549c17([0x2a])))return!0x0;if(_0x4007a5[_0x549c17([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x549c17([0x52,0x48])))return!0x0;if(_0x4007a5[_0x549c17([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x549c17([0x52,0x52,0x48]))){if(_0x3b4851())return!0x0;if(_0x2d4e8b()||_0x1d5a76())return!0x0;}return!0x1;}function _0x543248(){const _0x4cb0cf=_0x37fe8a[_0x549c17([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4cb0cf||0x0==_0x4cb0cf[_0x549c17([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3bad6e}=new URL(window[_0x549c17([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4cb0cf[_0x549c17([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3bad6e))return!0x0;const _0x2eb85e=_0x3bad6e[_0x549c17([0x73,0x70,0x6c,0x69,0x74])](_0x549c17([0x2e]));return _0x4cb0cf[_0x549c17([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2ecde4=>_0x2ecde4[_0x549c17([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x549c17([0x2a])))[_0x549c17([0x6d,0x61,0x70])](_0x4260bb=>_0x4260bb[_0x549c17([0x73,0x70,0x6c,0x69,0x74])](_0x549c17([0x2e])))[_0x549c17([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x50b8b5=>_0x50b8b5[_0x549c17([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2eb85e[_0x549c17([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x549c17([0x6d,0x61,0x70])](_0x1fdd95=>Array(_0x2eb85e[_0x549c17([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1fdd95[_0x549c17([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x549c17([0x66,0x69,0x6c,0x6c])](_0x1fdd95[0x0]===_0x549c17([0x2a])?_0x549c17([0x2a]):'')[_0x549c17([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1fdd95))[_0x549c17([0x73,0x6f,0x6d,0x65])](_0x49f607=>_0x2eb85e[_0x549c17([0x65,0x76,0x65,0x72,0x79])]((_0x401d35,_0x5ac663)=>_0x49f607[_0x5ac663]===_0x401d35||_0x49f607[_0x5ac663]===_0x549c17([0x2a])));}function _0x179ee5(){return _0x52e8cd&&_0x3d6ce2?new window[(_0x549c17([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5b5175,_0x463958)=>{_0x52e8cd[_0x549c17([0x74,0x68,0x65,0x6e])](_0x5b5175,_0x463958),_0x3d6ce2[_0x549c17([0x74,0x68,0x65,0x6e])](_0x595b69=>{_0x595b69!=_0x549c17([0x56,0x61,0x6c,0x69,0x64])&&_0x5b5175(_0x595b69);},_0x463958);}):_0x52e8cd||_0x3d6ce2||_0x549c17([0x56,0x61,0x6c,0x69,0x64]);}}function _0x446554(_0x1ecb0f,_0x15bf62){return new window[(_0x549c17([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5cc9ed=>{if(_0x254ec9())return _0x5cc9ed(_0x549c17([0x56,0x61,0x6c,0x69,0x64]));_0x3afa3d(),_0x58b036[_0x549c17([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x549c17([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2f88f4=!0x1;const _0x49b2e7=_0x21b6c1();function _0x3d7f9c(_0x2b2381){return!!_0x2b2381&&(typeof _0x2b2381===_0x549c17([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2b2381===_0x549c17([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2b2381[_0x549c17([0x74,0x68,0x65,0x6e])]===_0x549c17([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2b2381[_0x549c17([0x63,0x61,0x74,0x63,0x68])]===_0x549c17([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x232d23(_0x489251){_0x577f80(_0x489251)[_0x549c17([0x74,0x68,0x65,0x6e])](_0x1e2b26=>{if(!_0x1e2b26||_0x1e2b26[_0x549c17([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x549c17([0x6f,0x6b]))return _0x549c17([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2b538b(_0x17c495(_0x49b2e7+_0x15bf62))!=_0x1e2b26[_0x549c17([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x549c17([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x549c17([0x56,0x61,0x6c,0x69,0x64]);})[_0x549c17([0x74,0x68,0x65,0x6e])](_0x114323=>(_0x366af6(),_0x114323),()=>{const _0x4cdaec=_0x3717d7();return null==_0x4cdaec?(_0x366af6(),_0x549c17([0x56,0x61,0x6c,0x69,0x64])):_0x549c17(_0x5a14b0-_0x4cdaec>(0xb963eb5^_0xe7edf)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x549c17([0x74,0x68,0x65,0x6e])](_0x5cc9ed)[_0x549c17([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5cc9ed(_0x549c17([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3ee667=0x2fac5435^_0xe7edf;function _0x366af6(){const _0x58c05e=_0x549c17([0x6c,0x6c,0x63,0x74,0x2d])+_0x2b538b(_0x17c495(_0x1ecb0f)),_0x23383c=_0x3d711a(_0x2b538b(window[_0x549c17([0x4d,0x61,0x74,0x68])][_0x549c17([0x63,0x65,0x69,0x6c])](_0x5a14b0/_0x3ee667)));window[_0x549c17([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x549c17([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x58c05e,_0x23383c);}function _0x3717d7(){const _0x769e8f=_0x549c17([0x6c,0x6c,0x63,0x74,0x2d])+_0x2b538b(_0x17c495(_0x1ecb0f)),_0x49d1c0=window[_0x549c17([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x549c17([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x769e8f);return _0x49d1c0?window[_0x549c17([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3d711a(_0x49d1c0),0x10)*_0x3ee667:null;}function _0x577f80(_0x5b93f3){return new window[(_0x549c17([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1738c5,_0x1e815b)=>{_0x5b93f3[_0x549c17([0x74,0x68,0x65,0x6e])](_0x1738c5,_0x1e815b),window[_0x549c17([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1e815b,0x2f9b6e75^_0xe7edf);});}}_0x58b036[_0x549c17([0x6f,0x6e])](_0x549c17([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2b4678,_0x2fc398)=>{if(_0x2fc398[0x0]!=_0x1ecb0f)return _0x5cc9ed(_0x549c17([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2fc398[0x1]={..._0x2fc398[0x1],[_0x549c17([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x49b2e7};},{[_0x549c17([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x549c17([0x68,0x69,0x67,0x68])}),_0x58b036[_0x549c17([0x6f,0x6e])](_0x549c17([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3b0312=>{_0x3d7f9c(_0x3b0312[_0x549c17([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2f88f4=!0x0,_0x232d23(_0x3b0312[_0x549c17([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x549c17([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x549c17([0x6c,0x6f,0x77])}),_0x327b49[_0x549c17([0x74,0x68,0x65,0x6e])](()=>{_0x2f88f4||_0x5cc9ed(_0x549c17([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x254ec9(){return _0x58b036[_0x549c17([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x549c17([0x76,0x69,0x65,0x77])][_0x549c17([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x549c17([0x61,0x75,0x74,0x6f]);}function _0x3afa3d(){_0x58b036[_0x549c17([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x549c17([0x76,0x69,0x65,0x77])][_0x549c17([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x549c17([0x61,0x75,0x74,0x6f]);}}function _0x4350d9(_0x395c6e){const _0x503a86=[new window[(_0x549c17([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x12e0a6=>setTimeout(_0x12e0a6,0x2f938479^_0xe7edf)),_0x327b49[_0x549c17([0x74,0x68,0x65,0x6e])](()=>new window[(_0x549c17([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5e60cc=>{const _0x2bdfaa=0x2f9abab2^_0xe7edf,_0x121d17=_0x2b882a[_0x549c17([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x4b0b42(){_0x121d17[_0x549c17([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x2bdfaa&&_0x5e60cc();}_0x4b0b42(),_0x121d17[_0x549c17([0x6f,0x6e])](_0x549c17([0x61,0x64,0x64]),_0x4b0b42);})),new window[(_0x549c17([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x54895=>{function _0x4555af(){for(const _0x4d78ba in window)if(window[_0x549c17([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x549c17([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x4d78ba))&&window[_0x4d78ba]==_0x44d44f)return _0x54895();_0x58b036[_0x549c17([0x73,0x74,0x61,0x74,0x65])]!=_0x549c17([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x549c17([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4555af,0x2f9aa93d^_0xe7edf);}_0x19294e(_0x549c17([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x4555af();})];return window[_0x549c17([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x549c17([0x72,0x61,0x63,0x65])](_0x503a86)[_0x549c17([0x74,0x68,0x65,0x6e])](()=>_0x395c6e);}async function _0x3b5421(){if(await _0x327b49,_0x19294e(_0x549c17([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x545ac8=_0x2b882a[_0x549c17([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x44b5de=_0x2b882a[_0x549c17([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])](_0x545ac8[_0x549c17([0x69,0x64])]),_0x24fbcd=_0x2146a2(_0x549c17([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x24fbcd[_0x549c17([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x545ac8['id'],_0x44b5de?_0x44b5de['id']:null,!0x0),_0x24fbcd[_0x549c17([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x549c17([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x24fbcd[_0x549c17([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x24fbcd[_0x549c17([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x28457c,void(_0x24fbcd[_0x549c17([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x28457c);}if(_0x19294e(_0x549c17([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x2356a0=_0x2146a2(_0x549c17([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x2356a0[_0x549c17([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x549c17([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x2356a0[_0x549c17([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x2356a0[_0x549c17([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x28457c,_0x2356a0[_0x549c17([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x28457c;}_0x58b036[_0x549c17([0x6d,0x6f,0x64,0x65,0x6c])][_0x549c17([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x28457c,_0x58b036[_0x549c17([0x6d,0x6f,0x64,0x65,0x6c])][_0x549c17([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x28457c,_0x58b036[_0x549c17([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x549c17([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3b4851(){return _0x19294e(_0x549c17([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2146a2(_0x549c17([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x549c17([0x73,0x74,0x61,0x74,0x65])]==_0x549c17([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x2d4e8b(){return _0x19294e(_0x549c17([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 _0x1d5a76(){return _0x19294e(_0x549c17([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x5d90b1(_0x238f70){const _0x1d25d6=_0x12ec06();_0x58b036[_0x1d25d6]=_0x549c17([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])+_0x238f70,_0x238f70[_0x549c17([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x549c17([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x12ec06()]=_0x44d44f),_0x238f70!=_0x549c17([0x56,0x61,0x6c,0x69,0x64])&&_0x3b5421();}function _0x12ec06(){const _0x597ea4=window[_0x549c17([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x549c17([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x549c17([0x6e,0x6f,0x77])]())[_0x549c17([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x549c17([0x2e]),'');let _0x4d0b2a=_0x549c17([0x64]);for(let _0x8cb861=0x0;_0x8cb861<_0x597ea4[_0x549c17([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x8cb861+=0x2){let _0x4f4805=window[_0x549c17([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x597ea4[_0x549c17([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x8cb861,_0x8cb861+0x2));_0x4f4805>=_0x281943[_0x549c17([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4f4805-=_0x281943[_0x549c17([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4d0b2a+=_0x281943[_0x4f4805];}return _0x4d0b2a;}function _0x2106ff(){const _0x216e2f=_0x1c2704[_0x549c17([0x73,0x70,0x6c,0x69,0x74])](_0x549c17([0x2e]));if(0x3!=_0x216e2f[_0x549c17([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x407b66(_0x216e2f[0x1]);function _0x407b66(_0x4183ed){const _0x35f212=_0x20589b(_0x4183ed);return _0x35f212&&_0x5a2ddd()?_0x35f212:null;function _0x5a2ddd(){const _0x3ec9e6=_0x35f212[_0x549c17([0x6a,0x74,0x69])],_0x173a43=window[_0x549c17([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3ec9e6[_0x549c17([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3ec9e6[_0x549c17([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x46f714={..._0x35f212,[_0x549c17([0x6a,0x74,0x69])]:_0x3ec9e6[_0x549c17([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3ec9e6[_0x549c17([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x46f714[_0x549c17([0x76,0x63])],_0x17c495(_0x46f714)==_0x173a43;}}}async function _0x527635(){let _0x58a78a=!0x0;try{const _0x91ac24=_0x1c2704[_0x549c17([0x73,0x70,0x6c,0x69,0x74])](_0x549c17([0x2e])),[_0x2f8a1c,_0x8bb3e1,_0x4ae5d7]=_0x91ac24;return _0x256d79(_0x2f8a1c),await _0x4b598e(_0x2f8a1c,_0x8bb3e1,_0x4ae5d7),_0x58a78a;}catch{return!0x1;}function _0x256d79(_0x4a6fe9){const _0x1044a8=_0x20589b(_0x4a6fe9);_0x1044a8&&_0x1044a8[_0x549c17([0x61,0x6c,0x67])]==_0x549c17([0x45,0x53,0x32,0x35,0x36])||(_0x58a78a=!0x1);}async function _0x4b598e(_0x255a50,_0x352573,_0x2de798){const _0x5ef6a1=window[_0x549c17([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x549c17([0x66,0x72,0x6f,0x6d])](_0x4cd31c(_0x2de798),_0x7b2e6f=>_0x7b2e6f[_0x549c17([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x283b5b=new window[(_0x549c17([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x549c17([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x255a50+_0x549c17([0x2e])+_0x352573),_0x42474f=window[_0x549c17([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x549c17([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x42474f)return;const _0xa75f30=await _0x42474f[_0x549c17([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x549c17([0x6a,0x77,0x6b]),_0x4156d4,{[_0x549c17([0x6e,0x61,0x6d,0x65])]:_0x549c17([0x45,0x43,0x44,0x53,0x41]),[_0x549c17([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x549c17([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x549c17([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x42474f[_0x549c17([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x549c17([0x6e,0x61,0x6d,0x65])]:_0x549c17([0x45,0x43,0x44,0x53,0x41]),[_0x549c17([0x68,0x61,0x73,0x68])]:{[_0x549c17([0x6e,0x61,0x6d,0x65])]:_0x549c17([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xa75f30,_0x5ef6a1,_0x283b5b)||(_0x58a78a=!0x1);}}function _0x20589b(_0xcec024){return _0xcec024[_0x549c17([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x549c17([0x65,0x79]))?JSON[_0x549c17([0x70,0x61,0x72,0x73,0x65])](_0x4cd31c(_0xcec024)):null;}function _0x4cd31c(_0x147da6){return window[_0x549c17([0x61,0x74,0x6f,0x62])](_0x147da6[_0x549c17([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x549c17([0x2b]))[_0x549c17([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x549c17([0x2f])));}function _0x17c495(_0x14da9f){let _0x677bb7=0x1505;function _0x368d43(_0x57ac27){for(let _0x2bd66c=0x0;_0x2bd66c<_0x57ac27[_0x549c17([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2bd66c++){const _0x4a19=_0x57ac27[_0x549c17([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2bd66c);_0x677bb7=(_0x677bb7<<0x5)+_0x677bb7+_0x4a19,_0x677bb7&=_0x677bb7;}}function _0x10f201(_0x524372){Array[_0x549c17([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x524372)?_0x524372[_0x549c17([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x10f201):_0x524372&&typeof _0x524372==_0x549c17([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x549c17([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x524372)[_0x549c17([0x73,0x6f,0x72,0x74])]()[_0x549c17([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4a0abb,_0x586198])=>{_0x368d43(_0x4a0abb),_0x10f201(_0x586198);}):_0x368d43(window[_0x549c17([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x524372));}return _0x10f201(_0x14da9f),_0x677bb7>>>0x0;}function _0x2b538b(_0x55bba5){return _0x55bba5[_0x549c17([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x549c17([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x549c17([0x30]));}function _0x3d711a(_0x3826c2){return _0x3826c2[_0x549c17([0x73,0x70,0x6c,0x69,0x74])]('')[_0x549c17([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x549c17([0x6a,0x6f,0x69,0x6e])]('');}function _0x19294e(_0x11aef0){return _0x58b036[_0x549c17([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x549c17([0x68,0x61,0x73])](_0x11aef0);}function _0x2146a2(_0x425142){return _0x58b036[_0x549c17([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x549c17([0x67,0x65,0x74])](_0x425142);}function _0x28457c(){}function _0x549c17(_0x5ba8aa){return _0x5ba8aa['map'](_0x15a8ee=>String['fromCharCode'](_0x15a8ee))['join']('');}_0x5d90b1(await _0x155e49());}(this);}['createRevision'](_0x1f9e8e){const _0x532f25=this['editor']['plugins']['get']('Users');return new h({'id':_0x1f9e8e['id'],'name':_0x1f9e8e['name'],'creator':_0x1f9e8e['creatorId']?_0x532f25['getUser'](_0x1f9e8e['creatorId']):null,'diffData':_0x1f9e8e['diffData']||_0x1f9e8e['data'],'authors':_0x1f9e8e['authorsIds']['map'](_0x4453cf=>_0x532f25['getUser'](_0x4453cf)),'createdAt':new Date(_0x1f9e8e['createdAt']),'attributes':_0x1f9e8e['attributes'],'fromVersion':_0x1f9e8e['fromVersion'],'toVersion':_0x1f9e8e['toVersion']});}['addRevision'](_0x3e9f75,_0xbfd06c=0x0){this['_revisions']['add'](_0x3e9f75,_0xbfd06c);}['getRevision'](_0xd9716e){return this['_revisions']['get'](_0xd9716e);}['getRevisions'](_0x1876c4={'toJSON':!0x1}){const _0x1e209b=Array['from'](this['_revisions']);return _0x1e209b['reverse'](),_0x1876c4['toJSON']?_0x1e209b['map'](_0x315e54=>_0x315e54['toJSON']()):_0x1e209b;}['getIndex'](_0x4cbb98){return this['_revisions']['getIndex'](_0x4cbb98);}['getEarlierVisibleRevision'](_0x3550ec){const [,_0x2092b7]=this['getRevisionsIterator'](_0x3550ec,{'direction':'earlier'});return _0x2092b7;}['getLaterVisibleRevision'](_0x1ff035){const [,_0x443a26]=this['getRevisionsIterator'](_0x1ff035,{'direction':'later'});return _0x443a26;}['getRevisionsInDiff'](_0x3bee4d){const _0x2ac84d=[];for(const _0x5bd163 of this['getRevisionsIterator'](_0x3bee4d['newRevisionId']))if(_0x2ac84d['push'](_0x5bd163),_0x5bd163['id']===_0x3bee4d['oldRevisionId'])break;return _0x2ac84d;}*['getRevisionsIterator'](_0x23f94a,{direction:_0x3668b1='earlier',filter:_0x3e1526=()=>!0x0}={}){const _0xa6dbd7='earlier'===_0x3668b1?0x1:-0x1;let _0x17d841=this['_revisions']['get'](_0x23f94a),_0x76d870=this['getIndex'](_0x17d841);for(yield _0x17d841;_0x17d841;){if(_0x76d870+=_0xa6dbd7,_0x17d841=this['getRevision'](_0x76d870),!_0x17d841)return;_0x3e1526(_0x17d841)&&(yield _0x17d841);}}}class V extends _0x569b2d{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x5ce04e,'c'],[_0x382ce4,'a'],[_0x11f02d,'e'],[_0x4fa4c6,'r'],[_0x598fc3,'u']]);['_typeCharToViewClass']=new Map([['c',_0x5ce04e],['a',_0x382ce4],['e',_0x11f02d],['r',_0x4fa4c6],['u',_0x598fc3]]);async['loadRevisionData'](_0x49aad7,_0xab21fa){if(_0x49aad7['diffData']||!_0xab21fa)return;const _0x39e47f=this['editor']['config']['get']('collaboration.channelId'),_0x3dbb2c=await _0xab21fa['getRevision']({'channelId':_0x39e47f,'revisionId':_0x49aad7['id']});_0x49aad7['diffData']=_0x3dbb2c['diffData'];}['getRevisionDocumentData'](_0x55c7d8){const _0x43cea1={};for(const _0x109b86 in _0x55c7d8['diffData']){if(_0x55c7d8['diffData'][_0x109b86]['attachChange']&&!_0x55c7d8['diffData'][_0x109b86]['attachChange']['isAttached'])continue;const _0x50ffc5=this['_removeRevisionMarkers'](JSON['parse'](_0x55c7d8['diffData'][_0x109b86]['insertions'])),_0x28dac3=this['editor']['editing']['view']['document'],_0x596c54=new _0x16ce2b(_0x28dac3,_0x50ffc5['map'](_0x372520=>this['_getViewFromDiffObj'](_0x372520,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x43cea1[_0x109b86]=this['editor']['data']['processor']['toData'](_0x596c54),this['editor']['data']['processor']['useFillerType']('default');}return _0x43cea1;}['getRevisionRootsAttributes'](_0x54158c){const _0x4aa7c3={};for(const _0x286dee in _0x54158c['diffData'])_0x54158c['diffData'][_0x286dee]['attachChange']&&!_0x54158c['diffData'][_0x286dee]['attachChange']['isAttached']||(_0x4aa7c3[_0x286dee]=_0x54158c['diffData'][_0x286dee]['attributesAfter']||{});return _0x4aa7c3;}['_getTypeCharForViewElement'](_0x407e77){return this['_viewClassToTypeChar']['get'](_0x407e77['constructor']);}['_getViewFromDiffObj'](_0x1347d8,_0xb398e6){const _0x412505=this['editor']['editing']['view']['document'];if('string'==typeof _0x1347d8)return new _0x53531c(_0x412505,_0x1347d8);{let _0x3fb047,_0x163398;_0x163398='u'==_0x1347d8['type']||'r'==_0x1347d8['type']?[]:_0x1347d8['children']['map'](_0xa9a655=>this['_getViewFromDiffObj'](_0xa9a655,_0xb398e6));const _0x5a8af4=this['_typeCharToViewClass']['get'](_0x1347d8['type'])||_0xfc13bc,_0x42bc9b=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x3fb047=new _0x5a8af4(_0x412505,_0x1347d8['name'],_0x1347d8['attributes'],_0x163398),'u'==_0x1347d8['type']&&_0x1347d8['children'][0x0]){const _0x446a7f=_0x1347d8['children'][0x0];if(_0x3fb047['render']=function(_0x46199a){const _0x36ec7f=_0x46199a['createElement']('div');return _0x36ec7f['innerHTML']=_0x446a7f,_0x36ec7f['childNodes'][0x0];},_0xb398e6){const _0xd5e07a=new _0x16ce2b(_0x412505);_0xd5e07a['_appendChild'](_0x3fb047);const _0x5b9469=Array['from'](_0x42bc9b['viewChildrenToDom'](_0xd5e07a,{'bind':!0x1})),_0x313eff=_0x42bc9b['domDocument']['createElement']('div');_0x313eff['append'](..._0x5b9469),_0x3fb047=Array['from'](_0x42bc9b['domChildrenToView'](_0x313eff))[0x0];}}else{if('r'==_0x1347d8['type']&&_0x1347d8['children'][0x0]){const _0x5c6645=_0x1347d8['children'][0x0];if(_0x3fb047['render']=function(_0x1fc66c){_0x1fc66c['innerHTML']=_0x5c6645;},_0xb398e6){const _0xdabde3=new _0x16ce2b(_0x412505);_0xdabde3['_appendChild'](_0x3fb047);const _0x1a4928=Array['from'](_0x42bc9b['viewChildrenToDom'](_0xdabde3,{'bind':!0x1})),_0xd14019=_0x42bc9b['domDocument']['createElement']('div');_0xd14019['append'](..._0x1a4928);const _0x10911f=Array['from'](_0x42bc9b['domChildrenToView'](_0xd14019));_0x10911f['length']>0x1?_0x3fb047['_appendChild'](_0x10911f):_0x3fb047=_0x10911f[0x0];}}}if(_0x1347d8['customProperties']){for(const [_0x572a1e,_0x18fbac]of _0x1347d8['customProperties'])_0x3fb047['_setCustomProperty'](_0x572a1e,_0x18fbac);}const _0x26cf68=void 0x0===_0x1347d8['fillerOffset']?null:_0x1347d8['fillerOffset'];return null!==_0x26cf68&&(_0x3fb047['getFillerOffset']=()=>_0x26cf68),_0x3fb047;}}['_makeModelFromViewString'](_0x4fe46a){const _0x1c8f69=JSON['parse'](_0x4fe46a),_0x30a47d=this['editor']['editing']['view']['document'],_0x223970=new _0x16ce2b(_0x30a47d,_0x1c8f69['map'](_0x34ed53=>this['_getViewFromDiffObj'](_0x34ed53,!0x0)));return this['editor']['data']['toModel'](_0x223970);}['_removeRevisionMarkers'](_0x2af293){return(_0x2af293=_0x2af293['filter'](_0xb17c1b=>!_0xb17c1b['name']||'revision-start'!==_0xb17c1b['name']&&'revision-end'!==_0xb17c1b['name']))['forEach'](_0x13a513=>{'string'!=typeof _0x13a513&&(_0x13a513['children']=this['_removeRevisionMarkers'](_0x13a513['children']),_0x13a513['attributes']=_0x13a513['attributes']['filter'](_0x187eb9=>!_0x187eb9[0x0]['startsWith']('data-revision-')));}),_0x2af293;}}function g(_0xfb0bae,_0x353381,_0x11dd6c){const t=_0xfb0bae['t'];switch(_0x353381){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'},_0x11dd6c);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x11dd6c);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}class u extends _0x569b2d{['licenseKey'];['_licenseKeyCheckInterval'];['currentRevision']=null;['repository'];['adapter']=null;['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_utils'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x36246b,I,V,_0x43bcff];}constructor(_0x3e29d5){super(_0x3e29d5),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new x(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x31f66f=_0x21b6c1();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x31f66f},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x389856=this['repository']['getRevision'](0x0),_0x46daf7=_0x389856&&null===_0x389856['creator']?_0x389856:null;if(this['_continueCurrentRevision']=!!_0x46daf7&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x32c04c=this['_source']['getCurrentRevisionId'](),_0x3371cf=this['repository']['getRevision'](_0x32c04c);if(_0x3371cf)this['_startingVersion']=_0x3371cf['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x425ccf=this['_source']['history']['_operations']['find'](_0x376218=>!_0x376218['_isInit']),_0x4ad20c=_0x425ccf?_0x425ccf['baseVersion']:this['_source']['history']['version'];_0x389856?(_0x389856['toVersion']<_0x4ad20c&&_0x389856['_update']({'toVersion':_0x4ad20c}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x46daf7['id'],this['_startingVersion']=_0x46daf7['fromVersion']):(this['_startingVersion']=_0x389856['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x4ad20c,this['_continueCurrentRevision']=!0x1);}}else _0x46daf7&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x46daf7['toVersion'],this['editor']['model']['document']['history']['version']),_0x46daf7['fromVersion']===_0x46daf7['toVersion']?(0x0!==_0x46daf7['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x46daf7['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x46daf7['id'],this['_startingVersion']=_0x46daf7['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',_0x5b6ecc=>!_0x5b6ecc),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2fc43e=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1f0d89;for(const _0x284840 in _0x2fc43e){const _0x37a1ba=_0x284840,_0x401145=_0x2fc43e[_0x37a1ba];if('revisionHistoryLicenseKeyValid'==_0x401145||'revisionHistoryLicenseKeyInvalid'==_0x401145||'revisionHistoryLicenseKeyExpired'==_0x401145||'revisionHistoryLicenseKeyDomainLimit'==_0x401145||'revisionHistoryLicenseKeyNotAllowed'==_0x401145||'revisionHistoryLicenseKeyEvaluationLimit'==_0x401145||'revisionHistoryLicenseKeyTrialLimit'==_0x401145||'revisionHistoryLicenseKeyUsageLimit'==_0x401145){delete _0x2fc43e[_0x37a1ba],_0x1f0d89=_0x401145,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x1f0d89&&_0x2fc43e['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x1f0d89&&_0x2fc43e['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x1f0d89&&_0x2fc43e['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x1f0d89&&_0x2fc43e['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x1f0d89&&_0x2fc43e['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x1f0d89&&_0x2fc43e['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x1f0d89&&_0x2fc43e['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x20ffa1=this['repository']['getRevision'](0x0),_0x3663b4=await this['getRevisionDocumentData'](_0x20ffa1),_0x52df92=await this['getRevisionRootsAttributes'](_0x20ffa1);this['_replaceEditorDataWithRevisionData'](_0x3663b4,_0x52df92);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x3bf0c9){this['_source']=_0x3bf0c9;}async['update'](){const _0x340d6c=await this['_source']['getLatestVersion']();if(_0x340d6c>this['currentRevision']['toVersion']){await this['_loadState']();const _0x341c67=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x340d6c});_0x341c67['authors']=_0x341c67['authorsIds']['map'](_0x35da06=>this['editor']['plugins']['get']('Users')['getUser'](_0x35da06)),this['currentRevision']['_update'](_0x341c67);}}async['saveRevision'](_0x520425={},_0x283eeb=null){const _0xef5ac9=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x283eeb>this['currentRevision']['toVersion']&&(_0x283eeb=null),null===_0x283eeb&&(_0x283eeb=await this['_source']['getLatestVersion']());const _0xf1a4be=this['_getFromVersion'](_0x283eeb),_0x468af0=this['buildRevisionData']({'from':_0xf1a4be,'to':_0x283eeb});if(this['currentRevision']['toVersion']<_0x283eeb){const _0x141c6d=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x283eeb,'to':_0x283eeb});_0x141c6d['authors']=[],_0x141c6d['authorsIds']=[],_0x141c6d['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x141c6d,!0x0),delete _0x141c6d['authors'],_0xef5ac9['push'](_0x141c6d);}_0x520425['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x520425['name']=_0x520425['name']||null,_0x520425['id']=_0x520425['id']||_0x21b6c1(),_0x520425={..._0x520425,..._0x468af0};const _0x4bbd18=this['addRevisionData'](_0x520425);_0xef5ac9['push'](_0x520425);const _0x31f18c=this['repository']['getIndex'](_0x4bbd18);if(0x0!==_0x31f18c){const _0x412547=this['repository']['getRevision'](_0x31f18c-0x1);if(_0x412547['fromVersion']!==_0x283eeb){const _0x3e03c6=this['_revisionDataBuilder']['getData'](_0x283eeb,_0x412547['toVersion']),_0x45739b={'id':_0x412547['id'],'diffData':_0x3e03c6['diffData'],'authorsIds':_0x3e03c6['authorsIds'],'authors':_0x3e03c6['authorsIds']['map'](_0x1bda5a=>this['editor']['plugins']['get']('Users')['getUser'](_0x1bda5a)),'fromVersion':_0x283eeb};_0x412547===this['currentRevision']&&(_0x45739b['createdAt']=new Date(_0x520425['createdAt']['getTime']()+0xa)),_0x412547['_update'](_0x45739b,!0x0),delete _0x45739b['authors'],_0xef5ac9['push'](_0x45739b);}}if(this['adapter']){for(const _0x94d4c of _0xef5ac9)this['_bufferUpdate'](_0x94d4c['id'],_0x94d4c,!0x0);this['sendBufferedUpdates']();}return _0x4bbd18;}['addRevisionData'](_0x31dd47){const _0x5ae692=this['repository']['createRevision'](_0x31dd47);return this['adapter']&&_0x5ae692['on']('_update',(_0x2d388a,_0x49f6f8,_0x2f6dfb)=>{_0x2f6dfb||(this['_bufferUpdate'](_0x49f6f8['id'],_0x49f6f8,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x5ae692,this['_findInsertionIndex'](_0x5ae692)),_0x5ae692;}async['getRevisionDocumentData'](_0x135744){return await this['_utils']['loadRevisionData'](_0x135744,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x135744);}async['getRevisionRootsAttributes'](_0x364cea){return await this['_utils']['loadRevisionData'](_0x364cea,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x364cea);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x10ee2f=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x5220e4=0x0;_0x5220e4<_0x10ee2f['length'];_0x5220e4++){const _0xa1c03d=_0x10ee2f[_0x5220e4];let _0x31e505=!0x1;for(const _0x57426d of Object['keys'](_0xa1c03d))void 0x0===_0xa1c03d[_0x57426d]?delete _0xa1c03d[_0x57426d]:'id'!==_0x57426d&&(_0x31e505=!0x0);_0x31e505||(_0x10ee2f[_0x5220e4]=null);}if(_0x10ee2f=_0x10ee2f['filter'](_0xe0f046=>null!==_0xe0f046),!_0x10ee2f['length'])return;for(let _0x990163=0x0;_0x990163<_0x10ee2f['length'];_0x990163++){const _0x58b5b9=_0x10ee2f[_0x990163];void 0x0!==_0x58b5b9['fromVersion']&&void 0x0===_0x58b5b9['toVersion']&&(_0x58b5b9['toVersion']=this['repository']['getRevision'](_0x58b5b9['id'])['toVersion']),void 0x0!==_0x58b5b9['toVersion']&&void 0x0===_0x58b5b9['fromVersion']&&(_0x58b5b9['fromVersion']=this['repository']['getRevision'](_0x58b5b9['id'])['fromVersion']);}const _0x446e7b=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x10ee2f,_0x446e7b)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x1c0971=>{if(_0x1c0971){for(const _0x525b9d of _0x1c0971)this['setRevisionData']({'id':_0x525b9d['id'],'createdAt':_0x525b9d['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x11b7a9=null,from:_0x13bb49=null,to:_0x19d29d=null}){_0x13bb49=null!==_0x13bb49?_0x13bb49:_0x11b7a9['fromVersion'],_0x19d29d=null!==_0x19d29d?_0x19d29d:_0x11b7a9['toVersion'];const _0x5dc526=this['_revisionDataBuilder']['getData'](_0x13bb49,_0x19d29d),_0x4e9a7a={'diffData':_0x5dc526['diffData'],'authorsIds':_0x5dc526['authorsIds'],'fromVersion':_0x13bb49,'toVersion':_0x19d29d};if(!_0x11b7a9||_0x19d29d!==_0x11b7a9['toVersion']){const _0x15ae31=_0x19d29d-0x1,_0x49d393=this['_source']['history']['getOperation'](_0x15ae31);_0x4e9a7a['createdAt']=_0x49d393&&_0x49d393['createdAt']||new Date();}if(this['_loadedStateData']&&_0x13bb49===this['_loadedStateData']['fromVersion']){for(const _0x2e5b0b of this['_loadedStateData']['authors'])_0x4e9a7a['authorsIds']['includes'](_0x2e5b0b['id'])||_0x4e9a7a['authorsIds']['push'](_0x2e5b0b['id']);}return _0x4e9a7a;}['_bufferUpdate'](_0x406897,_0x47c606,_0x58d7d8){if(this['_bufferedUpdates']['has'](_0x406897)){const _0x59b891=this['_bufferedUpdates']['get'](_0x406897);_0x47c606=_0x58d7d8?{..._0x59b891,..._0x47c606}:{..._0x47c606,..._0x59b891};}this['_bufferedUpdates']['set'](_0x406897,_0x47c606);}['setRevisionData'](_0x33f838){const _0xfd4023=this['repository']['getRevision'](_0x33f838['id']);if(_0x33f838['createdAt']&&(_0x33f838['createdAt']=new Date(_0x33f838['createdAt'])),_0x33f838['authorsIds']){const _0x5835e4=this['editor']['plugins']['get']('Users');_0x33f838['authors']=_0x33f838['authorsIds']['map'](_0x271898=>_0x5835e4['getUser'](_0x271898));}_0xfd4023['_update'](_0x33f838,!0x0);}['_createInitialRevision'](_0x3db8c6){const _0x897a4=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x897a4)this['_initialRevisionId']=_0x897a4['id'];else{const _0x25c766=!this['editor']['model']['document']['roots']['find'](_0x4670f6=>this['editor']['model']['hasContent'](_0x4670f6)),_0x3b9134=this['editor']['plugins']['get']('Users')['me']['id'],_0x4dbbb9=g(this['editor']['locale'],_0x25c766?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x3db8c6,'to':_0x3db8c6,'id':this['_initialRevisionId'],'name':_0x4dbbb9,'creatorId':_0x3b9134});}}['_createCurrentRevision'](_0x495891){const _0x1c493e=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x1c493e),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x495891,'to':_0x495891,'id':_0x1c493e,'name':'','creatorId':null}));}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_utils']['loadRevisionData'](this['currentRevision'],this['adapter']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}['_replaceEditorDataWithRevisionData'](_0xa430dc,_0x58fafb){let _0x2cc743=this['editor']['config']['get']('initialData'),_0x5a93f9=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x2cc743){_0x2cc743={};for(const _0x1b25d2 of this['editor']['model']['document']['getRootNames']())_0x2cc743[_0x1b25d2]='';}if('string'==typeof _0x2cc743&&(_0x2cc743={'main':_0x2cc743}),void 0x0===_0x5a93f9){_0x5a93f9={};for(const _0x41008d of this['editor']['model']['document']['getRootNames']())_0x5a93f9[_0x41008d]={};}let _0x1e7fd4=!0x1;const _0xf48813=Object['keys'](_0x2cc743),_0x46d599=Object['keys'](_0xa430dc);for(const _0x4a72ce of _0xf48813){if(_0x2cc743[_0x4a72ce]!==_0xa430dc[_0x4a72ce]&&''!==_0x2cc743[_0x4a72ce]['trim']()){_0x1e7fd4=!0x0;break;}if(!_0x85b8af(_0x5a93f9[_0x4a72ce],_0x58fafb[_0x4a72ce])&&Object['keys'](_0x5a93f9[_0x4a72ce])['length']>0x0){_0x1e7fd4=!0x0;break;}}_0x1e7fd4||(_0x1e7fd4=_0x46d599['some'](_0x57d666=>!this['editor']['model']['document']['getRoot'](_0x57d666))),_0x1e7fd4&&_0x155fb9('editor-initial-data-replaced-with-revision-data',{'editorData':_0x2cc743,'editorRootsAttributes':_0x5a93f9,'revisionData':_0xa430dc,'revisionRootsAttributes':_0x58fafb}),this['editor']['config']['set']('initialData',_0xa430dc),this['editor']['config']['set']('rootsAttributes',_0x58fafb);}['_addPendingAction'](){if(!this['_pendingAction']){const _0xe5ddfa=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0xe5ddfa['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x6092ee){const _0x43b99c=this['repository']['getRevisions']();_0x43b99c['reverse']();let _0x211bf2=0x0;for(;_0x211bf2<_0x43b99c['length'];){const _0x54c836=_0x43b99c[_0x211bf2];if(_0x54c836===this['currentRevision']){_0x211bf2++;continue;}if(_0x54c836['id']===this['_initialRevisionId'])break;const _0x209b7b=_0x6092ee['toVersion']-_0x54c836['toVersion']||_0x6092ee['fromVersion']-_0x54c836['fromVersion'];if(_0x209b7b>0x0)break;if(_0x209b7b<0x0)_0x211bf2++;else{if(!_0x6092ee['creator']&&_0x54c836['creator'])break;if(_0x54c836['creator']||!_0x6092ee['creator']){if(_0x6092ee['createdAt']>_0x54c836['createdAt'])break;_0x211bf2++;}else _0x211bf2++;}}return _0x211bf2;}['_getFromVersion'](_0x18dddd){const _0x32d6b6=this['repository']['getRevisions']();_0x32d6b6['reverse'](),_0x32d6b6['shift']();const _0x3358a6=_0x32d6b6['find'](_0x5dc4f5=>_0x5dc4f5['toVersion']<=_0x18dddd)['toVersion'];return _0x3358a6<this['_startingVersion']?this['_startingVersion']:_0x3358a6;}['_makeRevision']({name:_0x34d143,from:_0x398141,to:_0x2440dd,creatorId:_0x12b078,id:_0x4032b2}){const _0x30d579=this['buildRevisionData']({'from':_0x398141,'to':_0x2440dd});_0x30d579['name']=_0x34d143,_0x30d579['creatorId']=_0x12b078,_0x30d579['id']=_0x4032b2;const _0x482fe3=this['addRevisionData'](_0x30d579);return this['adapter']&&this['_bufferUpdate'](_0x30d579['id'],_0x30d579,!0x0),_0x482fe3;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class x{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x1a52ad){this['editor']=_0x1a52ad,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'](_0x544f11){this['source']=_0x544f11;const _0x408b87=new Map(),_0x10f076=new Map(),_0x4200dc=this['editor']['model']['document']['roots']['map'](_0x2c73fe=>_0x2c73fe['rootName']);for(const _0x1680dc of _0x4200dc){const _0x418e42=this['editor']['model']['document']['getRoot'](_0x1680dc),_0x93cb8c=N(_0x418e42);_0x408b87['set'](_0x1680dc,_0x93cb8c),_0x10f076['set'](_0x1680dc,Object['fromEntries'](_0x418e42['getAttributes']()));}const _0x425cdc=Array['from'](this['editor']['model']['markers'])['map'](_0x2ada05=>[_0x2ada05['name'],_0x2ada05['getRange']()]),_0x30d172=this['source']['version'];this['_saveMetaData'](_0x30d172,_0x408b87,_0x425cdc,_0x10f076),this['_startingRevisionId']=this['_revisionId'];const _0x4e0d5f=new Map(),_0x1fad73=new Map();for(const _0x13d2da of _0x4200dc){const _0x50670d=P(_0x13d2da);_0x4e0d5f['set'](_0x13d2da,_0x50670d),_0x1fad73['set'](_0x13d2da,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x4e0d5f,[],_0x1fad73);}['getData'](_0x1af535,_0x340bd0){if(this['_lastFrom']===_0x1af535&&this['_lastTo']<=_0x340bd0)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x340bd0,!0x0);else{if(!this['_savedMetaData']['has'](_0x1af535)){const _0xfa628=this['_getPreviousFrom'](_0x1af535);this['_calculateMetaData'](_0xfa628,_0x1af535,!0x1);}this['_calculateMetaData'](_0x1af535,_0x340bd0,!0x0);}return this['_lastFrom']=_0x1af535,this['_lastTo']=_0x340bd0,this['_getState']();}['loadState'](_0x267663){const _0x1af859=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x267663['fromVersion'],this['_lastTo']=_0x267663['toVersion'];for(const _0x8f7adf in _0x267663['diffData']){const _0x54bd45=_0x267663['diffData'][_0x8f7adf]['attachChange'],_0x145090=_0x5c4150(_0x267663['diffData'][_0x8f7adf]['attributesBefore'])||{},_0x2d7514=_0x1af859['_makeModelFromViewString'](_0x267663['diffData'][_0x8f7adf]['deletions']);_0x2d7514['rootName']=_0x8f7adf,_0x2d7514['_isAttached']=!_0x54bd45||!_0x54bd45['isAttached'],_0x2d7514['isAttached']=()=>_0x2d7514['_isAttached'],this['_baseRoots']['set'](_0x8f7adf,_0x2d7514),this['_baseRootsAttributes']['set'](_0x8f7adf,_0x145090),_0x54bd45&&this['_touchedRoots']['set'](_0x8f7adf,_0x54bd45);const _0x588237=this['_makeIdsRoot'](_0x2d7514);this['_baseIdsRoots']['set'](_0x8f7adf,_0x588237);for(const [_0x31da8e,_0xe040f2]of _0x2d7514['markers']){if(!_0x31da8e['startsWith']('revision:'))continue;const _0x5412b5=_0x31da8e['split'](':')[0x2];for(const _0x3794c9 of _0xe040f2['getWalker']({'singleCharacters':!0x0})){const _0x3ab122=this['_getVidAttributeName'](_0x3794c9),_0xb62faa='elementEnd'==_0x3794c9['type']?_0x3794c9['previousPosition']['path']['slice'](0x0,-0x1):_0x3794c9['previousPosition']['path'],_0x570dcc=_0x588237['getNodeByPath'](_0xb62faa)['getAttribute'](_0x3ab122);this['_touched']['set'](_0x570dcc,{'userId':_0x5412b5});}}}this['_startingRevisionId']=this['_revisionId'];const _0xa8c1e4=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x3eeff8=>!this['_touched']['has'](_0x3eeff8));let _0x4b8197=0x0;const _0x31206f=new Map();for(const _0x41ec72 in _0x267663['diffData']){const _0x349029=_0x267663['diffData'][_0x41ec72]['attachChange'],_0x3ef1fa=_0x5c4150(_0x267663['diffData'][_0x41ec72]['attributesAfter'])||{},_0x183dd2=_0x1af859['_makeModelFromViewString'](_0x267663['diffData'][_0x41ec72]['insertions']);_0x183dd2['rootName']=_0x41ec72,_0x183dd2['_isAttached']=!_0x349029||_0x349029['isAttached'],_0x183dd2['isAttached']=()=>_0x183dd2['_isAttached'],this['_diffRoots']['set'](_0x41ec72,_0x183dd2),this['_diffRootsAttributes']['set'](_0x41ec72,_0x3ef1fa);const _0xf46aaf=this['_makeIdsRoot'](_0x183dd2,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x41ec72,_0xf46aaf),_0x31206f['set'](_0x41ec72,_0x183dd2['isAttached']()?_0x3ef1fa:{});for(const [_0x1e974c,_0x2a0cea]of _0x183dd2['markers']){if(!_0x1e974c['startsWith']('revision:'))continue;const _0x1735be=_0x1e974c['split'](':')[0x2];for(const _0x2e4067 of _0x2a0cea['getWalker']({'singleCharacters':!0x0})){const _0x5a998f=this['_getVidAttributeName'](_0x2e4067),_0x2be0d2=this['_revisionId']++,_0x44c9bc='elementEnd'==_0x2e4067['type']?_0x2e4067['previousPosition']['path']['slice'](0x0,-0x1):_0x2e4067['previousPosition']['path'];_0xf46aaf['getNodeByPath'](_0x44c9bc)['_setAttribute'](_0x5a998f,_0x2be0d2),this['_touched']['set'](_0x2be0d2,{'userId':_0x1735be});}}for(const _0x4a34fd of this['editor']['model']['createRangeIn'](_0x183dd2)['getWalker']({'singleCharacters':!0x0})){const _0x4644f7=this['_getVidAttributeName'](_0x4a34fd),_0x570511='elementEnd'==_0x4a34fd['type']?_0x4a34fd['previousPosition']['path']['slice'](0x0,-0x1):_0x4a34fd['previousPosition']['path'],_0x32d25e=_0xf46aaf['getNodeByPath'](_0x570511);_0x32d25e['getAttribute'](_0x4644f7)>0x0||_0x32d25e['_setAttribute'](_0x4644f7,_0xa8c1e4[_0x4b8197++]);}for(const [_0x45be81,_0x2fb7e6]of _0x183dd2['markers'])_0x45be81['startsWith']('revision:')||this['_markers']['set'](_0x45be81,_0x2fb7e6);}const _0x43fe20=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0x43fe20),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x43fe20,0x1));const _0x2e2a25=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x2e2a25),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x2e2a25,0x1));const _0x3d81ad=Array['from'](this['_diffRoots'])['map'](([_0x41430f,_0x48e632])=>[_0x41430f,N(_0x48e632)]);this['_saveMetaData'](this['_lastTo'],_0x3d81ad,this['_markers'],_0x31206f);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x544d82,_0x9aa58,_0x9d11f,_0xec5a4e){const _0x32348e=new Map(_0x9aa58),_0xa9b3ac=new Map(_0x5c4150(_0xec5a4e)),_0x21c3f9=new Map();for(const [_0x34fab5,_0x2e1dc1]of _0x9d11f)_0x21c3f9['set'](_0x34fab5,{'start':_0x2e1dc1['start']['clone'](),'end':_0x2e1dc1['end']['clone'](),'rootName':_0x2e1dc1['root']['rootName']});this['_savedMetaData']['set'](_0x544d82,{'roots':_0x32348e,'markers':_0x21c3f9,'rootsAttributes':_0xa9b3ac});}['_removeMetaData'](_0x4d2941){this['_savedMetaData']['delete'](_0x4d2941);}['_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'](_0x3e23f1,_0xa9a700=null){let _0x1cb711=null;_0x3e23f1['is']('documentFragment')||(_0x1cb711=new ut(_0x3e23f1['name'],{'vid_start':null===_0xa9a700?this['_revisionId']++:_0xa9a700++}));const _0x23e150=[];for(const _0x202ea of _0x3e23f1['getChildren']())if(_0x202ea['is']('element')){_0x23e150['push'](this['_makeIdsRoot'](_0x202ea,_0xa9a700));const _0x11e48c=_0x23e150[_0x23e150['length']-0x1];null!==_0xa9a700&&(_0xa9a700=_0x11e48c['is']('element','$text')?_0x11e48c['getAttribute']('vid')+0x1:_0x11e48c['getAttribute']('vid_end')+0x1);}else{for(let _0x24c8df=0x0;_0x24c8df<_0x202ea['offsetSize'];_0x24c8df++)_0x23e150['push'](new ut('$text',{'vid':null===_0xa9a700?this['_revisionId']++:_0xa9a700++}));}if(_0x3e23f1['is']('documentFragment')){const _0x5e2258=P(_0x3e23f1['rootName']);return _0x5e2258['_insertChild'](0x0,_0x23e150),_0x5e2258;}return _0x1cb711['_setAttribute']('vid_end',null===_0xa9a700?this['_revisionId']++:_0xa9a700++),_0x1cb711['_insertChild'](0x0,_0x23e150),_0x1cb711;}['_calculateMetaData'](_0x15a34b,_0x4b4afe,_0x4cb86d){this['_reset']();const {roots:_0x456d12,markers:_0x11c3ba,rootsAttributes:_0x2b1d03}=this['_savedMetaData']['get'](_0x15a34b);this['_baseRoots']=new Map(_0x456d12),this['_baseRootsAttributes']=new Map(_0x5c4150(_0x2b1d03));for(const [_0x2bd1a5,_0x3cd803]of this['_baseRoots'])if('$graveyard'!==_0x2bd1a5&&(this['_diffRoots']['set'](_0x2bd1a5,N(_0x3cd803)),this['_diffRootsAttributes']=new Map(_0x5c4150(_0x2b1d03)),_0x4cb86d)){const _0x453450=this['_revisionId'];this['_idsRoots']['set'](_0x2bd1a5,this['_makeIdsRoot'](_0x3cd803)),this['_baseIdsRoots']['set'](_0x2bd1a5,this['_makeIdsRoot'](_0x3cd803,_0x453450));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x4cb86d&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x10d58,_0x2ecbda]of _0x11c3ba){const _0x3a6835=this['_baseRoots']['get'](_0x2ecbda['rootName']),_0x519b46=this['_diffRoots']['get'](_0x2ecbda['rootName']),_0x3ac016=new lt(this['_fixPosition'](_0x2ecbda['start'],_0x3a6835),this['_fixPosition'](_0x2ecbda['end'],_0x3a6835)),_0x2cac0d=this['_fixRange'](_0x3ac016,_0x519b46);_0x3a6835['markers']['set'](_0x10d58,_0x3ac016),this['_markers']['set'](_0x10d58,_0x2cac0d);}this['_applyOperations'](_0x15a34b,_0x4b4afe,_0x4cb86d);}['_applyOperations'](_0x40a341,_0x2c7d54,_0x41d2de){for(const _0x305e52 of this['source']['getOperations'](_0x40a341,_0x2c7d54))this['_handleOperation'](_0x305e52,_0x41d2de);for(const _0x2bb2b1 of this['_diffRoots']['values']())_0x2bb2b1['markers']['clear']();for(const [_0xfaad5e,_0x4c1464]of this['_markers']){this['_diffRoots']['get'](_0x4c1464['root']['rootName'])['markers']['set'](_0xfaad5e,_0x4c1464['clone']());}const _0x41681e=new Map(),_0x34f19e=new Map();for(const [_0x2719fd,_0x3e1cd0]of this['_diffRoots'])_0x41681e['set'](_0x2719fd,N(_0x3e1cd0)),_0x34f19e['set'](_0x2719fd,this['_diffRootsAttributes']['get'](_0x2719fd));this['_saveMetaData'](_0x2c7d54,_0x41681e,this['_markers'],_0x34f19e);}['_getPreviousFrom'](_0x4a01ae){const _0x3537fd=Array['from'](this['_savedMetaData']['keys']());_0x3537fd['sort']((_0x88df2,_0x743663)=>_0x88df2-_0x743663),_0x3537fd['reverse']();for(const _0x338cbc of _0x3537fd)if(_0x338cbc<_0x4a01ae)return _0x338cbc;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x4328d7,_0x405859){const _0x5edca3=Array['from'](_0x405859['markers'])['map'](([_0x41696a,_0x4e9eb5])=>[_0x41696a,this['_fixRange'](_0x4e9eb5,_0x4328d7)]);_0x4328d7['markers']=new Map(_0x5edca3);}['_transformMarkers'](_0x401a30){for(const _0x2c5cdc of this['_markers']['values']()){const _0x1c0a3c=_0x2c5cdc['getTransformedByOperation'](_0x401a30),_0x5bec6a=lt['_createFromRanges'](_0x1c0a3c);_0x2c5cdc['start']=_0x5bec6a['start'],_0x2c5cdc['end']=_0x5bec6a['end'];}}['_handleOperation'](_0x4c6623,_0x425124){if('addRoot'!=_0x4c6623['type']&&'detachRoot'!=_0x4c6623['type']){if('insert'==_0x4c6623['type']){const _0x429df6=_0x4c6623['position']['root']['rootName'];this['_diffRoots']['has'](_0x429df6)||(this['_diffRoots']['set'](_0x429df6,P(_0x429df6,!0x0)),this['_diffRootsAttributes']['set'](_0x429df6,{}),_0x425124&&this['_idsRoots']['set'](_0x429df6,P(_0x429df6,!0x0)));}else{if('addRootAttribute'==_0x4c6623['type']||'removeRootAttribute'==_0x4c6623['type']||'changeRootAttribute'==_0x4c6623['type'])return void this['_handleRootAttributeOperation'](_0x4c6623);'marker'==_0x4c6623['type']&&this['_handleMarkerOperation'](_0x4c6623);}if('marker'!==_0x4c6623['type']){const _0x4ac05f=this['_cloneOperation'](_0x4c6623,this['_diffRoots']);_0x4ac05f['_execute'](),this['_transformMarkers'](_0x4ac05f);}if(_0x425124)switch(_0x4c6623['type']){case'insert':this['_handleInsertOperation'](_0x4c6623);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x4c6623);break;case'merge':this['_handleMergeOperation'](_0x4c6623);break;case'split':this['_handleSplitOperation'](_0x4c6623);}}else this['_handleRootOperation'](_0x4c6623,_0x425124);}['_cloneOperation'](_0x162e6a,_0x4c7887){const _0x1f189f=_0x162e6a['clone']();return _0x1f189f['_authorId']=_0x162e6a['_authorId'],this['_fixOperation'](_0x1f189f,_0x4c7887),_0x1f189f;}['_getBaseVids'](_0xfa787a){return _0xfa787a['map'](_0xeb75b5=>{const _0x4d5d21=this['_getVidAttributeName'](_0xeb75b5);return Number(_0xeb75b5['item']['getAttribute'](_0x4d5d21));});}['_generateTape'](_0x3ccb66,_0x211286){if(_0x3ccb66['is']('element','$text'))_0x211286['push']({'item':_0x3ccb66,'type':'text'});else{_0x3ccb66['is']('element')&&_0x211286['push']({'item':_0x3ccb66,'type':'elementStart'});for(const _0x324dc6 of _0x3ccb66['getChildren']())this['_generateTape'](_0x324dc6,_0x211286);_0x3ccb66['is']('element')&&_0x211286['push']({'item':_0x3ccb66,'type':'elementEnd'});}return _0x211286;}['_getState'](){const _0x1865be=new Map(this['_touched']),_0x5d30c0=new Map(_0x1865be),_0x2999a3=new Map(),_0x5539cf={'insertions':{},'deletions':{}},_0x1e9b7c={'insertions':{},'deletions':{}},_0x84a9b5=new Map(),_0x59a1f7=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x59a1f7['delete']('$graveyard');for(const _0x196c56 of _0x59a1f7){const _0x11eb57=this['_diffRoots']['get'](_0x196c56)||P(_0x196c56,!0x1),_0x54d998=this['_baseRoots']['get'](_0x196c56)||P(_0x196c56,!0x1);_0x11eb57['isAttached']()||_0x54d998['isAttached']()?(_0x5539cf['insertions'][_0x196c56]=N(_0x11eb57),_0x5539cf['deletions'][_0x196c56]=N(_0x54d998),this['_copyMarkers'](_0x5539cf['deletions'][_0x196c56],_0x54d998),this['_copyMarkers'](_0x5539cf['insertions'][_0x196c56],_0x11eb57),_0x1e9b7c['insertions'][_0x196c56]=this['_generateTape'](this['_idsRoots']['get'](_0x196c56),[]),_0x1e9b7c['deletions'][_0x196c56]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x196c56)||P(_0x196c56,!0x1),[])):_0x59a1f7['delete'](_0x196c56);}for(const _0x579e9c of _0x59a1f7){const _0x5d6355=_0x1e9b7c['insertions'][_0x579e9c];for(const _0x3ca66d of _0x5d6355){const _0x46bee7=this['_getVidAttributeName'](_0x3ca66d),_0x3451cd=_0x3ca66d['item']['getAttribute'](_0x46bee7);_0x5d30c0['delete'](_0x3451cd),_0x3451cd>=this['_startingRevisionId']&&_0x2999a3['set'](_0x3451cd,_0x1865be['get'](_0x3451cd));}}for(const _0x443de3 of _0x59a1f7){const _0x37b9e7=_0x1e9b7c['insertions'][_0x443de3],_0x21bce9=this['_getBaseVids'](_0x1e9b7c['deletions'][_0x443de3]);let _0x402010=0x0;for(const _0x4d8ade of _0x37b9e7){const _0x176a2c=this['_getVidAttributeName'](_0x4d8ade),_0x31233a=_0x4d8ade['item']['getAttribute'](_0x176a2c);if(!_0x2999a3['has'](_0x31233a)&&!_0x84a9b5['has'](_0x31233a)){if(_0x5d30c0['has'](_0x31233a))_0x402010++;else{if(_0x31233a!=_0x21bce9[_0x402010]){const _0x1ab67a=_0x1865be['get'](_0x31233a)||_0x1865be['get'](_0x21bce9[_0x402010]);for(;_0x31233a!=_0x21bce9[_0x402010];)_0x5d30c0['has'](_0x21bce9[_0x402010])||(_0x84a9b5['set'](_0x21bce9[_0x402010],_0x1ab67a),_0x1865be['set'](_0x21bce9[_0x402010],_0x1ab67a)),_0x402010++;}_0x402010++;}}}}for(const _0x54c6b5 of _0x59a1f7){const _0x3e0495=_0x1e9b7c['insertions'][_0x54c6b5];for(const _0x143ee8 of _0x3e0495){const _0x3d041e=this['_getVidAttributeName'](_0x143ee8),_0x10d6b0=_0x143ee8['item']['getAttribute'](_0x3d041e);if(_0x84a9b5['has'](_0x10d6b0)){const _0x47735d=_0x84a9b5['get'](_0x10d6b0);_0x5d30c0['has'](_0x10d6b0)||_0x5d30c0['set'](_0x10d6b0,{..._0x47735d}),_0x2999a3['set'](_0x10d6b0,{..._0x47735d});}}}for(const _0x31a805 of _0x5d30c0['keys']())_0x31a805>=this['_startingRevisionId']&&_0x5d30c0['delete'](_0x31a805);const _0x49405c=new Map();for(const _0x164e2e of _0x59a1f7){let _0x12b812=_0x1e9b7c['insertions'][_0x164e2e];for(const _0x541b74 of _0x12b812)if(_0x541b74['item']['is']('element','tableCell')){const _0x56c000=this['_getVidAttributeName'](_0x541b74),_0xd07121=_0x541b74['item']['getAttribute'](_0x56c000);if(_0x2999a3['has'](_0xd07121)){const _0x5a9374=_0x541b74['item']['parent']['parent']['getAttribute']('vid_start'),_0x238ee3=_0x49405c['get'](_0x5a9374)||new Set();_0x238ee3['add'](_0x2999a3['get'](_0xd07121)['userId']),_0x49405c['set'](_0x5a9374,_0x238ee3);}}_0x12b812=_0x1e9b7c['deletions'][_0x164e2e];for(const _0x2f0da7 of _0x12b812)if(_0x2f0da7['item']['is']('element','tableCell')){const _0x283be4=this['_getVidAttributeName'](_0x2f0da7),_0x12ac4b=_0x2f0da7['item']['getAttribute'](_0x283be4);if(_0x5d30c0['has'](_0x12ac4b)){const _0x277e66=_0x2f0da7['item']['parent']['parent']['getAttribute']('vid_start'),_0x579d26=_0x49405c['get'](_0x277e66)||new Set();_0x579d26['add'](_0x5d30c0['get'](_0x12ac4b)['userId']),_0x49405c['set'](_0x277e66,_0x579d26);}}for(const _0x366ab7 of _0x49405c['keys']())(_0x2999a3['has'](_0x366ab7)||_0x5d30c0['has'](_0x366ab7))&&_0x49405c['delete'](_0x366ab7);}for(const _0x6747e5 of _0x59a1f7){const _0x513e5c=_0x1e9b7c['insertions'][_0x6747e5];let _0x397ec1=null,_0x51c8a5=null;for(const _0x3266c4 of _0x513e5c){const _0xe81f43=this['_getVidAttributeName'](_0x3266c4),_0x23af93=_0x3266c4['item']['getAttribute'](_0xe81f43),_0x23fa6c=_0x49405c['get'](_0x23af93);_0x23fa6c&&'elementStart'==_0x3266c4['type']&&(_0x397ec1=Array['from'](_0x23fa6c)[0x0],_0x51c8a5=_0x3266c4['item']['getAttribute']('vid_end')),_0x397ec1&&(_0x5d30c0['set'](_0x23af93,{'userId':_0x397ec1}),_0x2999a3['set'](_0x23af93,{'userId':_0x397ec1})),_0x23af93==_0x51c8a5&&(_0x397ec1=null,_0x51c8a5=null);}}const _0x258943={},_0x14e9ff=new Set();for(const _0x518aba of _0x59a1f7){const _0x1938d7=_0x5539cf['deletions'][_0x518aba],_0x58a835=_0x5539cf['insertions'][_0x518aba];for(const {userId:_0xce665f}of this['_touchedMarkers']['values']())null!==_0xce665f&&_0x14e9ff['add'](_0xce665f);for(const {userId:_0xbb6bdb}of this['_touchedRoots']['values']())null!==_0xbb6bdb&&_0x14e9ff['add'](_0xbb6bdb);this['_markChanges'](_0x58a835,_0x1e9b7c['insertions'][_0x518aba],_0x2999a3,'insertion',_0x14e9ff),this['_markChanges'](_0x1938d7,_0x1e9b7c['deletions'][_0x518aba],_0x5d30c0,'deletion',_0x14e9ff),_0x258943[_0x518aba]={'insertions':this['_prepareViewToSave'](_0x58a835),'deletions':this['_prepareViewToSave'](_0x1938d7),'attachChange':this['_touchedRoots']['get'](_0x518aba)||null,'attributesBefore':_0x5c4150(this['_baseRootsAttributes']['get'](_0x518aba))||{},'attributesAfter':_0x5c4150(this['_diffRootsAttributes']['get'](_0x518aba))};}return{'diffData':_0x258943,'authorsIds':Array['from'](_0x14e9ff)};}['_processRootBeforeSave'](_0x101365){for(const [,_0x4dc2c2]of _0x101365['markers']){const _0x1e0d52=_0x4dc2c2['start']['getAncestors']()['filter'](_0x313cbf=>'tableCell'==_0x313cbf['name']);for(const _0x53fec7 of _0x1e0d52)0x1==_0x53fec7['childCount']&&_0x53fec7['getChild'](0x0)['is']('element','paragraph')&&_0x53fec7['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x24608e){this['_processRootBeforeSave'](_0x24608e);const _0x2284a8=this['editor']['data']['toView'](_0x24608e,{}),_0x260f92=Array['from'](_0x2284a8['getChildren']())['map'](_0x19a5bf=>this['_getViewJson'](_0x19a5bf));return JSON['stringify'](_0x260f92);}['_getViewJson'](_0x1d1d73){if(_0x1d1d73['is']('$text'))return _0x1d1d73['data'];{const _0x48dede=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x37aa95=_0x1d1d73,_0x523f90=this['editor']['data']['htmlProcessor']['domConverter'],_0x1fd3c7={'type':_0x48dede['_getTypeCharForViewElement'](_0x37aa95),'name':_0x37aa95['name'],'attributes':Array['from'](_0x37aa95['getAttributes']()),'children':Array['from'](_0x37aa95['getChildren']())['map'](_0x647c28=>this['_getViewJson'](_0x647c28))};if(_0x1d1d73['is']('uiElement')&&'$comment'!=_0x1d1d73['name']){const _0x3d9537=_0x1d1d73['render'](_0x523f90['domDocument'],_0x523f90);_0x1fd3c7['children']['push'](_0x3d9537['outerHTML']);}else{if(_0x1d1d73['is']('rawElement')){const _0x532a95=_0x523f90['domDocument']['createElement'](_0x37aa95['name']);_0x1d1d73['render'](_0x532a95,_0x523f90),_0x1fd3c7['children']['push'](_0x532a95['innerHTML']);}}const _0x3437a0=Array['from'](_0x37aa95['getCustomProperties']());_0x3437a0['length']>0x0&&(_0x1fd3c7['customProperties']=_0x3437a0);const _0x4ec8c2=_0x37aa95['getFillerOffset']();return null!==_0x4ec8c2&&(_0x1fd3c7['fillerOffset']=_0x4ec8c2),_0x1fd3c7;}}['_markChanges'](_0x47de2c,_0x2e5430,_0x4b6400,_0x6dc484,_0x5ac87f){let _0x3080ed=null,_0x17a945=null,_0x5b8231=0x0;const _0x2e8fb0=this['editor']['model'];for(let _0x3ee1e4=0x0;_0x3ee1e4<_0x2e5430['length'];_0x3ee1e4++){const _0xd48e1d=this['_getVidAttributeName'](_0x2e5430[_0x3ee1e4]),_0x4a979f=_0x2e5430[_0x3ee1e4]['item']['getAttribute'](_0xd48e1d),_0x23c096=_0x4b6400['get'](_0x4a979f),_0x2ea8ac=_0x3ee1e4==_0x2e5430['length']-0x1;(!_0x3080ed&&_0x23c096&&(_0x3080ed=_0x23c096,_0x17a945=_0x2e5430[_0x3ee1e4]),_0x3080ed&&(!_0x23c096||_0x23c096['userId']!=_0x3080ed['userId']))&&(_0x1af4d7(_0x23c096,F(_0x17a945,_0x47de2c,_0x2e8fb0),F(_0x2e5430[_0x3ee1e4],_0x47de2c,_0x2e8fb0)),_0x3080ed=_0x23c096||null,_0x17a945=_0x23c096?_0x2e5430[_0x3ee1e4]:null),_0x3080ed&&_0x2ea8ac&&_0x1af4d7(_0x23c096,F(_0x17a945,_0x47de2c,_0x2e8fb0),B(_0x2e5430[_0x3ee1e4],_0x47de2c,_0x2e8fb0));}function _0x1af4d7(_0x1d39e6,_0x8a9ba9,_0x137644){const _0x52bd80=_0x3080ed['userId'],_0x1ac329='revision:'+_0x6dc484+':'+_0x52bd80+':'+_0x5b8231++,_0x2d6026=_0x2e8fb0['createRange'](_0x8a9ba9,_0x137644);_0x47de2c['markers']['set'](_0x1ac329,_0x2d6026),null!==_0x52bd80&&_0x5ac87f['add'](_0x52bd80);}}['_getVidAttributeName'](_0x403b4d){switch(_0x403b4d['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x51fa98,_0xbe6607){_0x51fa98['baseVersion']=null;for(const _0x2778e7 in _0x51fa98){const _0x31fb55=_0x51fa98[_0x2778e7];if(_0x31fb55 instanceof ft){const _0x129a1a=_0xbe6607['get'](_0x31fb55['root']['rootName']);_0x51fa98[_0x2778e7]=this['_fixPosition'](_0x31fb55,_0x129a1a);}if(_0x31fb55 instanceof lt){const _0x3b4e00=_0xbe6607['get'](_0x31fb55['root']['rootName']);_0x51fa98[_0x2778e7]=this['_fixRange'](_0x31fb55,_0x3b4e00);}'root'===_0x2778e7&&(_0x51fa98['root']=_0xbe6607['get'](_0x51fa98['root']['rootName']));}}['_fixRange'](_0x34efed,_0x425bab){return this['editor']['model']['createRange'](this['_fixPosition'](_0x34efed['start'],_0x425bab),this['_fixPosition'](_0x34efed['end'],_0x425bab));}['_fixPosition'](_0x73ef2f,_0x325f25){return this['editor']['model']['createPositionFromPath'](_0x325f25,_0x73ef2f['path'],_0x73ef2f['stickiness']);}['_handleInsertOperation'](_0x3cd90c){const _0x4c863b=this['_idsRoots']['get'](_0x3cd90c['position']['root']['rootName']),_0xfb6e36=this['_fixPosition'](_0x3cd90c['position'],_0x4c863b),_0x1b09fb=null===_0x3cd90c['_authorId']?null:_0x3cd90c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3fb78f=_0xfb6e36['parent'],_0x571d65=this['_revisionId'],_0x49eb67=[];for(const _0x4e10d5 of _0x3cd90c['nodes'])if(_0x4e10d5['is']('element'))_0x49eb67['push'](this['_makeIdsRoot'](_0x4e10d5));else{for(let _0x2e2ca3=0x0;_0x2e2ca3<_0x4e10d5['offsetSize'];_0x2e2ca3++)_0x49eb67['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x2654e3=this['_revisionId'];for(let _0x4f1f06=_0x571d65;_0x4f1f06<_0x2654e3;_0x4f1f06++)this['_touched']['set'](_0x4f1f06,{'userId':_0x1b09fb});_0x3fb78f['_insertChild'](_0xfb6e36['offset'],_0x49eb67);}['_handleMoveOperation'](_0x2bd4cd){(_0x2bd4cd=this['_cloneOperation'](_0x2bd4cd,this['_idsRoots']))['_execute']();const _0xbfc7d=null===_0x2bd4cd['_authorId']?null:_0x2bd4cd['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4940b5=_0x2bd4cd['getMovedRangeStart'](),_0x483dd0=_0x4940b5['parent'],_0x5b33f3=_0x4940b5['offset'];!function _0x852c78(_0x3c134c,_0x2b38ee,_0x3d1cfa,_0x42ad74){for(let _0x662f7e=_0x3d1cfa;_0x662f7e<_0x42ad74;_0x662f7e++){const _0xd54da8=_0x2b38ee['getChild'](_0x662f7e);_0xd54da8['is']('element','$text')?_0x3c134c['set'](_0xd54da8['getAttribute']('vid'),{'userId':_0xbfc7d}):(_0x3c134c['set'](_0xd54da8['getAttribute']('vid_start'),{'userId':_0xbfc7d}),_0x852c78(_0x3c134c,_0xd54da8,0x0,_0xd54da8['childCount']),_0x3c134c['set'](_0xd54da8['getAttribute']('vid_end'),{'userId':_0xbfc7d}));}}(this['_touched'],_0x483dd0,_0x5b33f3,_0x5b33f3+_0x2bd4cd['howMany']);}['_handleMergeOperation'](_0xef7361){const _0x2d3157=null===(_0xef7361=this['_cloneOperation'](_0xef7361,this['_idsRoots']))['_authorId']?null:_0xef7361['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5f0718=_0xef7361['targetPosition']['parent'],_0x5a8a3b=_0xef7361['sourcePosition']['parent'],_0x5c7a86=_0x5f0718['getAttribute']('vid_end'),_0x2b66b2=_0x5a8a3b['getAttribute']('vid_start');_0x5f0718['_setAttribute']('vid_end',_0x5a8a3b['getAttribute']('vid_end')),_0x5a8a3b['_setAttribute']('vid_end',_0x5c7a86),this['_touched']['set'](_0x2b66b2,{'userId':_0x2d3157}),this['_touched']['set'](_0x5c7a86,{'userId':_0x2d3157}),_0xef7361['_execute']();}['_handleSplitOperation'](_0x9cedc2){const _0x16f8ce=null===(_0x9cedc2=this['_cloneOperation'](_0x9cedc2,this['_idsRoots']))['_authorId']?null:_0x9cedc2['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x28a8a2=_0x9cedc2['graveyardPosition'],_0x48d034=_0x9cedc2['splitPosition']['parent'];_0x9cedc2['_execute']();const _0x2932d2=_0x48d034['getAttribute']('vid_end'),_0x1eab7d=_0x9cedc2['insertionPosition']['nodeAfter'];if(_0x28a8a2){const _0x2677d0=_0x1eab7d['getAttribute']('vid_end'),_0xca1ea6=_0x48d034['getAttribute']('vid_end');_0x48d034['_setAttribute']('vid_end',_0x2677d0),_0x1eab7d['_setAttribute']('vid_end',_0xca1ea6),this['_touched']['set'](_0x48d034['getAttribute']('vid_end'),{'userId':_0x16f8ce}),this['_touched']['set'](_0x1eab7d['getAttribute']('vid_start'),{'userId':_0x16f8ce});}else{const _0x3b58ce=this['_revisionId']++,_0x3ef0a8=this['_revisionId']++;_0x48d034['_setAttribute']('vid_end',_0x3b58ce),_0x1eab7d['_setAttribute']('vid_start',_0x3ef0a8),_0x1eab7d['_setAttribute']('vid_end',_0x2932d2),this['_touched']['set'](_0x3b58ce,{'userId':_0x16f8ce}),this['_touched']['set'](_0x3ef0a8,{'userId':_0x16f8ce});}}['_handleMarkerOperation'](_0x5c7ce6){if(!_0x5c7ce6['affectsData'])return;const _0x346f3f=(_0x5c7ce6=this['_cloneOperation'](_0x5c7ce6,this['_diffRoots']))['oldRange']?_0x5c7ce6['oldRange']['root']:null,_0x184a18=_0x5c7ce6['newRange']?_0x5c7ce6['newRange']['root']:null;_0x346f3f&&this['_markers']['delete'](_0x5c7ce6['name']),_0x184a18&&this['_markers']['set'](_0x5c7ce6['name'],_0x5c7ce6['newRange']['clone']());const _0x4c4d50=null===_0x5c7ce6['_authorId']?null:_0x5c7ce6['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x55284b=_0x5c7ce6['name'];if(!this['_touchedMarkers']['has'](_0x55284b))return void this['_touchedMarkers']['set'](_0x55284b,{'range':_0x5c7ce6['oldRange'],'userId':_0x4c4d50});const _0x4844b9=this['_touchedMarkers']['get'](_0x55284b),_0x5f5527=_0x4844b9['range'],_0x116f18=_0x5c7ce6['newRange'];null==_0x5f5527&&null==_0x116f18||_0x5f5527&&_0x116f18&&_0x5f5527['isEqual'](_0x116f18)?this['_touchedMarkers']['delete'](_0x5c7ce6['name']):_0x4844b9['userId']=_0x4c4d50;}['_handleRootOperation'](_0x57a6aa,_0x14bdc3){this['_diffRoots']['has'](_0x57a6aa['rootName'])?this['_diffRoots']['get'](_0x57a6aa['rootName'])['_isAttached']=_0x57a6aa['isAdd']:(this['_diffRoots']['set'](_0x57a6aa['rootName'],P(_0x57a6aa['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x57a6aa['rootName'],{}),_0x14bdc3&&this['_idsRoots']['set'](_0x57a6aa['rootName'],P(_0x57a6aa['rootName'],!0x0)));const _0x4abb0f=null===_0x57a6aa['_authorId']?null:_0x57a6aa['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3099a7=this['_touchedRoots']['get'](_0x57a6aa['rootName']);_0x3099a7&&_0x3099a7['userId']===_0x4abb0f?this['_touchedRoots']['delete'](_0x57a6aa['rootName']):this['_touchedRoots']['set'](_0x57a6aa['rootName'],{'userId':_0x4abb0f,'isAttached':_0x57a6aa['isAdd']});}['_handleRootAttributeOperation'](_0x3d1927){const _0xcb9086=this['_diffRootsAttributes']['get'](_0x3d1927['root']['rootName']);null===_0x3d1927['newValue']?delete _0xcb9086[_0x3d1927['key']]:_0xcb9086[_0x3d1927['key']]=_0x3d1927['newValue'];}}function N(_0x371357){const _0x53ac19=P(_0x371357['rootName'],_0x371357['isAttached']());for(const _0x453671 of _0x371357['getChildren']()){const _0x23e361=_0x453671['_clone'](!0x0);_0x53ac19['_appendChild'](_0x23e361);}return _0x53ac19;}function P(_0x3152dc,_0x3f288d=!0x0){const _0x2c214b=new vt();return _0x2c214b['rootName']=_0x3152dc,_0x2c214b['_isAttached']=_0x3f288d,_0x2c214b['isAttached']=()=>_0x2c214b['_isAttached'],_0x2c214b;}function F(_0x20984d,_0x135196,_0x3d9479){const _0x39c5e4='elementEnd'==_0x20984d['type']?_0x3d9479['createPositionAt'](_0x20984d['item'],'end'):_0x3d9479['createPositionBefore'](_0x20984d['item']);return _0x3d9479['createPositionFromPath'](_0x135196,_0x39c5e4['path'],_0x39c5e4['stickiness']);}function B(_0x5d37de,_0x2b9d6f,_0x124994){const _0x514604='elementStart'==_0x5d37de['type']?_0x124994['createPositionAt'](_0x5d37de['item'],0x0):_0x124994['createPositionAfter'](_0x5d37de['item']);return _0x124994['createPositionFromPath'](_0x2b9d6f,_0x514604['path'],_0x514604['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x27bf39,_0x58bd67){super(_0x27bf39),this['focusTracker']=new _0x3169cf(),this['keystrokes']=new _0x3cd51a(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x58bd67),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x558c45(this);}['render'](){super['render'](),_0x5b2273({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x325989=_0x3fbad7=>_0x3fbad7['stopPropagation']();this['keystrokes']['set']('arrowright',_0x325989),this['keystrokes']['set']('arrowleft',_0x325989),this['keystrokes']['set']('arrowup',_0x325989),this['keystrokes']['set']('arrowdown',_0x325989);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x8af6c3){this['revisionNameInputView']['fieldView']['element']['value']=_0x8af6c3['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x598744){const _0x18d832=new _0x44236c(this['locale'],_0x3243f8),_0x1cd4d4=_0x18d832['fieldView'];_0x1cd4d4['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x42a759=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x598744&&(_0x42a759+='\x20('+g(this['locale'],'optional')+')'),(_0x18d832['label']=_0x42a759,_0x1cd4d4['on']('input',()=>{this['revisionNameInputValue']=_0x1cd4d4['element']['value']['trim']();}),_0x18d832);}}class f extends _0x569b2d{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x33a812=this['editor'],_0x375d4b=_0x33a812['plugins']['get']('RevisionTracker');_0x33a812['ui']['componentFactory']['add']('revisionHistory',_0x36f023=>{const _0x292337=_0x349be9(_0x36f023),_0x258347=_0x292337['panelView']['children'],_0x6d84a3=new _0x5edbb0(_0x36f023),_0xcbacff=new _0x11cc1b(_0x36f023),_0x7187ef=new te(_0x36f023),_0x39f76f=new _0x11cc1b(_0x36f023),_0x24eff5=new te(_0x36f023);return _0x292337['bind']('isEnabled')['to'](_0x375d4b,'isReady',_0x375d4b,'isEnabled',_0x33a812,'isReadOnly',(_0xeefbd,_0xa472be,_0x4777fa)=>_0xeefbd&&_0xa472be&&!_0x4777fa),_0x292337['buttonView']['set']({'icon':_0x36a0df,'label':g(_0x36f023,'Revision\x20history'),'tooltip':!0x0}),_0x7187ef['set']({'label':g(_0x36f023,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x7187ef['bind']('isEnabled')['to'](_0x375d4b,'isReady',_0x375d4b,'isEnabled',_0x33a812,'isReadOnly',(_0x55d592,_0x3147d6,_0x5e7ad6)=>_0x55d592&&_0x3147d6&&!_0x5e7ad6),_0x7187ef['on']('execute',()=>this['_showDialog']()),_0x24eff5['set']({'label':g(_0x36f023,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x24eff5['bind']('isEnabled')['to'](_0x375d4b,'isReady',_0x33a812,'isReadOnly',(_0x1aa777,_0x483840)=>_0x1aa777&&!_0x483840),_0x24eff5['on']('execute',()=>{_0x33a812['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x292337['isOpen']=!0x1,_0x33a812['editing']['view']['focus']();}),_0xcbacff['children']['add'](_0x7187ef),_0x39f76f['children']['add'](_0x24eff5),_0x6d84a3['role']='menu',_0x6d84a3['items']['addMany']([_0xcbacff,_0x39f76f]),_0x258347['add'](_0x6d84a3),_0x292337;}),_0x33a812['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x2dc267=this['editor'],_0xdbc21f=_0x2dc267['locale'],_0x12b711=new _0x38f813(_0xdbc21f),_0x5aac12=new _0x202c2b(_0xdbc21f);_0x12b711['buttonView']['set']({'icon':_0x36a0df,'label':g(_0xdbc21f,'Revision\x20history')});const _0x2a2ce8=new _0x54af72(_0xdbc21f,_0x12b711),_0x327461=new _0x5cdc55(_0xdbc21f);_0x327461['set']({'label':g(_0xdbc21f,'Save\x20current\x20revision')}),_0x327461['delegate']('execute')['to'](_0x12b711),_0x327461['on']('execute',()=>{this['_showDialog']();}),_0x2a2ce8['children']['add'](_0x327461),_0x5aac12['items']['add'](_0x2a2ce8);const _0xafe82c=new _0x54af72(_0xdbc21f,_0x12b711),_0x367a18=new _0x5cdc55(_0xdbc21f);return _0x367a18['set']({'label':g(_0xdbc21f,'Open\x20revision\x20history')}),_0x367a18['delegate']('execute')['to'](_0x12b711),_0x367a18['on']('execute',()=>{_0x2dc267['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0xafe82c['children']['add'](_0x367a18),_0x5aac12['items']['add'](_0xafe82c),_0x12b711['panelView']['children']['add'](_0x5aac12),_0x12b711;}['_showDialog'](){const _0x33b78e=this['editor'],_0x597b26=_0x33b78e['locale'],_0x2bcfd=_0x33b78e['plugins']['get']('Dialog'),_0x59dc9a=_0x33b78e['plugins']['get']('RevisionTracker');function _0x4db5e7(_0x46166a){_0x33b78e['config']['get']('revisionHistory.requireRevisionName')&&''===_0x46166a['revisionName']?_0x46166a['revisionNameInputView']['errorText']=g(_0x597b26,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x33b78e['plugins']['get'](u)['saveRevision']({'name':_0x46166a['revisionName']}),_0x2bcfd['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x4db5e7(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x2bcfd['show']({'id':'revisionSave','title':g(_0x597b26,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x33b78e['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x2bcfd['hide']()},{'label':g(_0x33b78e['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x1ca3a2){_0x1ca3a2['bind']('isEnabled')['to'](_0x59dc9a,'isReady',_0x59dc9a,'isEnabled',_0x33b78e,'isReadOnly',(_0x4f7e84,_0x20effc,_0x4c0ac4)=>_0x4f7e84&&_0x20effc&&!_0x4c0ac4);},'onExecute':()=>_0x4db5e7(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x2a9726=this['editor'],_0x2a257b=_0x2a9726['locale'];this['_saveRevisionFormView']=new hs(_0x2a257b,_0x2a9726['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends ts{['changeId'];['_model'];constructor(_0x2031f3,_0x494867){super(_0x2031f3),this['_model']=_0x494867,this['changeId']=_0x494867['id'];const _0x1beaca=this['bindTemplate'],_0x5854a9=g(_0x2031f3,_0x494867['data']['isSuggestion']?'Suggested\x20by':'add'==_0x494867['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x494867['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x1beaca['to']('type',_0x4cdd09=>'ck-revision-change__'+_0x4cdd09)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x5854a9}]},{'text':'\x20'+_0x494867['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x403bd3(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x34e8e4){super(),this['id']=_0x34e8e4['id']||_0x21b6c1(),this['author']=_0x34e8e4['author'],this['type']=_0x34e8e4['type'],this['data']=_0x34e8e4['data']||{},this['rootName']=_0x34e8e4['rootName'],this['set']('createdAt',_0x34e8e4['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(_0x445b5b,_0x35d3f2){this['newRevisionId']=_0x445b5b,this['oldRevisionId']=_0x35d3f2,this['changes']=new _0x93c57c();}['_setChanges'](_0x1c986d){for(const _0x403e21 of _0x1c986d)this['changes']['add'](_0x403e21);}}class m extends _0x569b2d{['repository'];['adapter']=null;['_utils'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x36246b,_0x1d4d68,I,V];}constructor(_0x1e9e9b){super(_0x1e9e9b),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x5d6ac2,_0x554653,_0x72bb68)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x3f1053=>{for(const _0x3c8df6 of this['editor']['editing']['view']['document']['roots'])_0x72bb68?_0x3f1053['removeClass']('ck-editor__editable__overlay',_0x3c8df6):_0x3f1053['addClass']('ck-editor__editable__overlay',_0x3c8df6);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x560e6a=>null!==_0x560e6a),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x55bec9,_0x4bf078,_0x164e00)=>_0x55bec9&&_0x164e00?_0x4bf078['changes']['getIndex'](_0x164e00):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x5e1b4d,_0x19c96c)=>_0x5e1b4d?_0x19c96c['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x1d4d68);}['init'](){const _0x41472f=this['editor'],_0x540136=new wt(_0x41472f,{'direction':'backward'}),_0x341a7f=new wt(_0x41472f,{'direction':'forward'});(_0x41472f['commands']['add']('showPreviousChange',_0x540136),_0x41472f['commands']['add']('showNextChange',_0x341a7f),_0x41472f['commands']['add']('restoreRevision',new mt(_0x41472f)),this['on']('change:numberOfChanges',()=>{_0x540136['refresh'](),_0x341a7f['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x41472f['enableReadOnlyMode']('revision-viewer'),_0x41472f['plugins']['has']('WidgetToolbarRepository'))&&_0x41472f['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x325862){return await this['_utils']['loadRevisionData'](_0x325862,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x325862);}async['getRevisionRootsAttributes'](_0x1380b2){return await this['_utils']['loadRevisionData'](_0x1380b2,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x1380b2);}async['compare'](_0x4d4685,_0x59fdbc,_0x3fef9d=!0x1){if(!this['isEnabled'])return;const _0x97726b=this['diff'],_0x5d4ca0=this['repository'],_0x1904a9='string'==typeof _0x4d4685?_0x5d4ca0['getRevision'](_0x4d4685):_0x4d4685,_0x200bfd='string'==typeof _0x59fdbc?_0x5d4ca0['getRevision'](_0x59fdbc):_0x59fdbc,_0x29cc8c=_0x1904a9['id'],_0x17b9e2=_0x200bfd?_0x200bfd['id']:null;if(!_0x3fef9d&&this['diff']&&this['diff']['newRevisionId']===_0x29cc8c&&this['diff']['oldRevisionId']===_0x17b9e2)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x29cc8c,_0x17b9e2);const _0x68b491=this['_getRevisionsRange'](_0x1904a9,_0x200bfd,!0x0)['map'](_0x573088=>this['_utils']['loadRevisionData'](_0x573088,this['adapter']));return _0x68b491['push'](new Promise(_0x406f7c=>{setTimeout(_0x406f7c,0x14);})),Promise['all'](_0x68b491)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0xd8b6a1=this['_getDiff'](_0x29cc8c,_0x17b9e2);for(const _0x3832ae of _0xd8b6a1['changes'])this['_changeIdToChange']['set'](_0x3832ae['id'],_0x3832ae);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x3139e6=>{for(const _0x26386e of this['editor']['model']['document']['getRootNames']())_0x3139e6['detachRoot'](_0x26386e);for(const _0x4a03d0 of Object['keys'](_0xd8b6a1['model'])){const _0x25befe=_0x3139e6['addRoot'](_0x4a03d0);for(const _0x2cf433 of Object['keys'](_0xd8b6a1['attributes'][_0x4a03d0]))_0x3139e6['setAttribute'](_0x2cf433,_0xd8b6a1['attributes'][_0x4a03d0][_0x2cf433],_0x25befe);_0x3139e6['insert'](_0xd8b6a1['model'][_0x4a03d0],_0x25befe,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0xd8b6a1['changes'])),this['isReady']=!0x0;})['catch'](_0x5b78ad=>{console['error'](_0x5b78ad),this['_cleanUp'](),_0x97726b&&(this['diff']=_0x97726b),this['isReady']=!0x0;});}['addRevisionData'](_0x4cb466,_0x3cf4fa){const _0x666dac=this['repository']['createRevision'](_0x4cb466);return _0x666dac['on']('_update',(_0x3bb582,_0x4e7f39,_0x431fbc)=>_0x3cf4fa(_0x4e7f39,_0x431fbc,_0x666dac)),this['repository']['addRevision'](_0x666dac),_0x666dac;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0xe3580c=>{for(const _0x335dd9 of this['editor']['model']['document']['getRootNames']())_0xe3580c['detachRoot'](_0x335dd9);});}['_sortAndFilterDiffChanges'](_0x2b701b){const _0x94c9d9=[],_0x254392=new Map();for(const _0x179cd8 of this['editor']['model']['document']['getRootNames']()){const _0xcd331d=this['editor']['editing']['view']['getDomRoot'](_0x179cd8);if(!_0xcd331d)continue;const _0x293e0f=_0xcd331d['getClientRects']()['item'](0x0);_0x293e0f&&(_0x94c9d9['push'](_0x179cd8),_0x254392['set'](_0x179cd8,_0x293e0f));}return _0x94c9d9['sort']((_0x2ebb4b,_0x20ecaf)=>{const _0x5a442e=_0x254392['get'](_0x2ebb4b),_0x1d0a1a=_0x254392['get'](_0x20ecaf);return _0x5a442e['y']-_0x1d0a1a['y']||_0x5a442e['x']-_0x1d0a1a['x'];}),(_0x2b701b=_0x2b701b['filter'](_0x596b16=>_0x94c9d9['includes'](_0x596b16['rootName'])))['sort']((_0x230913,_0x153734)=>_0x94c9d9['indexOf'](_0x230913['rootName'])-_0x94c9d9['indexOf'](_0x153734['rootName'])),_0x2b701b;}['_makeTape'](_0x301a15){const _0x36814=Array['from'](_0x301a15['markers'])['filter'](([_0x5bab1e,_0x143841])=>_0x5bab1e['startsWith']('revision:')&&!_0x143841['isCollapsed']),_0x1b9a8a=Array['from'](this['editor']['model']['createRangeIn'](_0x301a15)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x36814['length'])for(const _0x402b89 of _0x1b9a8a){const [_0x57bdca,_0x483202]=_0x36814[0x0],[,_0x4960c5,_0x52dcb0]=_0x57bdca['split'](':');if(_0x483202['end']['isEqual'](_0x402b89['nextPosition'])&&_0x36814['shift'](),(_0x402b89['previousPosition']['isEqual'](_0x483202['start'])||_0x402b89['previousPosition']['isAfter'](_0x483202['start']))&&('insertion'==_0x4960c5?_0x402b89['isAdded']={'userId':_0x52dcb0}:'deletion'==_0x4960c5&&(_0x402b89['isRemoved']={'userId':_0x52dcb0})),0x0==_0x36814['length'])break;}return _0x1b9a8a;}['_refreshStartEndIndex'](_0x192a4e){const _0x3cb1d3=new Map();for(let _0xc7cfa0=0x0;_0xc7cfa0<_0x192a4e['length'];_0xc7cfa0++)'text'===_0x192a4e[_0xc7cfa0]['type']?(_0x192a4e[_0xc7cfa0]['item']['startIndex']=_0xc7cfa0,_0x192a4e[_0xc7cfa0]['item']['endIndex']=_0xc7cfa0):('elementStart'===_0x192a4e[_0xc7cfa0]['type']?_0x192a4e[_0xc7cfa0]['item']['startIndex']=_0xc7cfa0:'elementEnd'===_0x192a4e[_0xc7cfa0]['type']&&(_0x192a4e[_0xc7cfa0]['item']['endIndex']=_0xc7cfa0),_0x3cb1d3['set'](_0x192a4e[_0xc7cfa0]['id'],_0xc7cfa0));for(const _0x56b4a4 of _0x3cb1d3['values']())'elementStart'===_0x192a4e[_0x56b4a4]['type']?_0x192a4e[_0x56b4a4]['item']['endIndex']=_0x3cb1d3['get'](_0x192a4e[_0x56b4a4]['pairId']):'elementEnd'===_0x192a4e[_0x56b4a4]['type']&&(_0x192a4e[_0x56b4a4]['item']['startIndex']=_0x3cb1d3['get'](_0x192a4e[_0x56b4a4]['pairId']));}['_processTape'](_0x19b32e){for(let _0x109dc5=0x0;_0x109dc5<_0x19b32e['length'];_0x109dc5++){if('elementStart'===_0x19b32e[_0x109dc5]['type'])_0x19b32e[_0x109dc5]['item']['startIndex']=_0x109dc5;else{if('elementEnd'===_0x19b32e[_0x109dc5]['type']){_0x19b32e[_0x109dc5]['item']['endIndex']=_0x109dc5;const _0x17cf65=_0x19b32e[_0x109dc5]['item']['startIndex'];_0x19b32e[_0x17cf65]['pairId']=_0x19b32e[_0x109dc5]['id'],_0x19b32e[_0x109dc5]['pairId']=_0x19b32e[_0x17cf65]['id'];}else _0x19b32e[_0x109dc5]['item']['startIndex']=_0x109dc5,_0x19b32e[_0x109dc5]['item']['endIndex']=_0x109dc5,_0x19b32e[_0x109dc5]['pairId']=null;}_0x19b32e[_0x109dc5]['markersStart']||(_0x19b32e[_0x109dc5]['markersStart']=[],_0x19b32e[_0x109dc5]['markersEnd']=[]);}}['_markInsertions'](_0x954bac,_0x23507f){const _0x18fa39=_0x954bac['filter'](_0x2a3ebe=>!_0x2a3ebe['isAdded']);for(let _0x35371d=0x0;_0x35371d<_0x23507f['length'];_0x35371d++)_0x23507f[_0x35371d]['isAdded']&&(_0x18fa39[_0x35371d]['isAdded']=_0x23507f[_0x35371d]['isAdded']);}['_getDiff'](_0x1c24b1,_0x1e8af3=null){const _0x4e9e2c=this['repository']['getRevision'](_0x1c24b1),_0x1efb9b=_0x1e8af3?this['repository']['getRevision'](_0x1e8af3):null,_0x2739ce=this['_getRevisionsRange'](_0x4e9e2c,_0x1efb9b),_0x3a4e64=_0x2739ce[_0x2739ce['length']-0x1],_0xa33f93=new Map(),_0x5ad3c3={'model':{},'attributes':{},'changes':[]},_0x2428f1=new Set(),_0x4cd6da=new Map();for(let _0xd266cb=_0x2739ce['length']-0x1;_0xd266cb>=0x0;_0xd266cb--){const _0x4aa39f=_0x2739ce[_0xd266cb];for(const _0x3c7f1b of Object['keys'](_0x4aa39f['diffData']))if(_0x4aa39f['diffData'][_0x3c7f1b]['attachChange']){const _0x501fba=_0x4aa39f['diffData'][_0x3c7f1b]['attachChange'];_0x501fba['isAttached']?(_0x2428f1['add'](_0x3c7f1b),_0x4cd6da['has'](_0x3c7f1b)&&_0x4cd6da['get'](_0x3c7f1b)['userId']==_0x501fba['userId']?_0x4cd6da['delete'](_0x3c7f1b):_0x4cd6da['set'](_0x3c7f1b,_0x501fba)):_0x4cd6da['has'](_0x3c7f1b)?(_0x2428f1['delete'](_0x3c7f1b),_0x4cd6da['delete'](_0x3c7f1b)):(_0x2428f1['add'](_0x3c7f1b),_0x4cd6da['set'](_0x3c7f1b,_0x501fba));}else _0x2428f1['add'](_0x3c7f1b);}for(const _0x21b24d of _0x2428f1){const _0x5a921e=_0x4cd6da['has'](_0x21b24d)&&!_0x4cd6da['get'](_0x21b24d)['isAttached'];let _0x11ca3e=_0x5a921e?_0x2739ce['length']-0x1:0x0;const _0x5609c6=_0x5a921e?-0x1:0x1;for(;_0x2739ce[_0x11ca3e];){const _0x2a9bcd=_0x2739ce[_0x11ca3e];if(_0x2a9bcd['diffData'][_0x21b24d]){const _0xad7c0b=_0x5a921e?_0x2a9bcd['diffData'][_0x21b24d]['attributesBefore']:_0x2a9bcd['diffData'][_0x21b24d]['attributesAfter'];_0x5ad3c3['attributes'][_0x21b24d]=_0xad7c0b?_0x5c4150(_0xad7c0b):{};break;}_0x11ca3e+=_0x5609c6;}}for(const _0x7eb1bd of _0x2739ce){_0x7eb1bd['model']={};for(const _0x15122b of _0x7eb1bd['authors'])_0xa33f93['set'](_0x15122b['id'],_0x15122b);for(const _0x10f160 of _0x2428f1){const _0x550885=_0x7eb1bd['diffData'][_0x10f160]?_0x7eb1bd['diffData'][_0x10f160]['insertions']:'[]',_0xdc9fe1=_0x7eb1bd['diffData'][_0x10f160]?_0x7eb1bd['diffData'][_0x10f160]['deletions']:'[]';_0x7eb1bd['model'][_0x10f160]={'insertions':this['_utils']['_makeModelFromViewString'](_0x550885),'deletions':this['_utils']['_makeModelFromViewString'](_0xdc9fe1)};}}for(const _0x53f034 of _0x2428f1){let _0xef840f=null,_0x410bf5=0x0;const _0x42702e=new Map(Array['from'](_0x4e9e2c['model'][_0x53f034]['insertions']['markers'])['filter'](([_0x53af0e])=>!_0x53af0e['startsWith']('revision:')));let _0x54454f=0x0;for(const _0x11fafc of _0x2739ce){const _0x10a1a8=this['_makeTape'](_0x11fafc['model'][_0x53f034]['insertions']);_0x11fafc==_0x4e9e2c?(_0xef840f=_0x10a1a8,_0x410bf5=_0xef840f['length'],_0xef840f['forEach'](_0x1dcfcf=>{_0x1dcfcf['id']=_0x54454f++;}),this['_processTape'](_0xef840f)):this['_markInsertions'](_0xef840f,_0x10a1a8);const _0x367727=_0xef840f['filter'](_0x1a7e21=>!_0x1a7e21['isAdded'])['map'](_0x5b0be0=>_0x5b0be0['id']);let _0x58bc08=0x0;const _0x3a788b=this['_makeTape'](_0x11fafc['model'][_0x53f034]['deletions']);_0x3a788b['forEach'](_0x12dbcf=>{_0x12dbcf['isRemoved']?_0x12dbcf['id']=_0x410bf5++:_0x12dbcf['id']=_0x367727[_0x58bc08++];}),this['_processTape'](_0x3a788b),this['_setDistance'](_0xef840f,'isAdded'),this['_setDistance'](_0x3a788b,'isRemoved'),_0x11fafc==_0x4e9e2c&&this['_markMarkers'](_0xef840f,_0x42702e),_0xef840f=this['_joinTapes'](_0xef840f,_0x3a788b),this['_refreshStartEndIndex'](_0xef840f),this['_setDistance'](_0xef840f,'isRemoved');}_0xef840f=_0xef840f['filter'](_0x1621b3=>!(_0x1621b3['isAdded']&&_0x1621b3['isRemoved']));const _0x265c6d=new Map(_0x3a4e64['model'][_0x53f034]['deletions']['markers']),_0x24d3ac=new Set(_0x42702e['keys']());for(const _0x2cf000 of _0x265c6d['keys']())_0x24d3ac['delete'](_0x2cf000);this['_markSuggestions'](_0xef840f,_0x24d3ac),this['_fixObsoleteTags'](_0xef840f),_0xef840f=this['_removeMissingPairs'](_0xef840f),_0xef840f=this['_markMismatchedRemovedTags'](_0xef840f),_0xef840f=this['_removeUnsupportedChanges'](_0xef840f);const {root:_0x3ae8e4,changes:_0x817ef4}=this['_makeModelFromTape'](_0xef840f,_0xa33f93,_0x53f034);_0x5ad3c3['model'][_0x53f034]=_0x3ae8e4;const _0x2047ca=_0x4cd6da['get'](_0x53f034);if(_0x2047ca){const _0x1822fd=_0xa33f93['get'](_0x2047ca['userId']),_0x14dad8=new r({'author':_0x1822fd,'type':_0x2047ca['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x53f034});_0x817ef4['unshift'](_0x14dad8),_0x5ad3c3['attributes'][_0x53f034]['revisionHistoryAttachChange']=_0x14dad8['id'];}_0x5ad3c3['changes']=_0x5ad3c3['changes']['concat'](_0x817ef4);}return _0x5ad3c3;}['_markMarkers'](_0x2e1a1e,_0x5cd6a7){for(let _0x436984=0x0;_0x436984<_0x2e1a1e['length'];_0x436984++)for(const [_0x5b1a05,_0x1b8df1]of _0x5cd6a7)!_0x1b8df1['isCollapsed']&&_0x1b8df1['start']['isEqual'](_0x2e1a1e[_0x436984]['previousPosition'])&&_0x2e1a1e[_0x436984]['markersStart']['push'](_0x5b1a05),_0x1b8df1['end']['isEqual'](_0x2e1a1e[_0x436984]['nextPosition'])&&_0x2e1a1e[_0x436984]['markersEnd']['push'](_0x5b1a05);}['_joinTapes'](_0x26f138,_0x556416){let _0x1d561b=[],_0x2facf7=0x0,_0x5649bd=0x0;for(;_0x2facf7<_0x26f138['length']||_0x5649bd<_0x556416['length'];){const _0x41299b=_0x26f138[_0x2facf7]||{},_0x2754df=_0x556416[_0x5649bd]||{};if(_0x41299b['id']==_0x2754df['id'])_0x2facf7++,_0x5649bd++,_0x1d561b['push'](_0x41299b);else{if(_0x2754df['isRemoved']&&_0x41299b['isAdded']){const {commonTape:_0x3c83a2,iEnd:_0x906148,jEnd:_0x5a34bf}=this['_threeWayMerge'](_0x26f138,_0x2facf7,_0x556416,_0x5649bd);_0x1d561b=_0x1d561b['concat'](_0x3c83a2),_0x2facf7=_0x906148,_0x5649bd=_0x5a34bf;}else _0x2754df['isRemoved']?(_0x5649bd++,_0x1d561b['push'](_0x2754df)):(_0x2facf7++,_0x1d561b['push'](_0x41299b));}}return _0x1d561b;}['_markSuggestions'](_0x2f822c,_0x1da78c){const _0x20ebf2=[];for(let _0x46d085=0x0;_0x46d085<_0x2f822c['length'];_0x46d085++){for(let _0x44b951=0x0;_0x44b951<_0x2f822c[_0x46d085]['markersStart']['length'];_0x44b951++){const _0x34943d=_0x2f822c[_0x46d085]['markersStart'][_0x44b951];if(!_0x1da78c['has'](_0x34943d))continue;const {group:_0x2cefff,type:_0x204cce,authorId:_0x5e66f1}=_0x5c3cd4(_0x34943d);'revision-suggestion'!=_0x2cefff||'insertion'!=_0x204cce&&'deletion'!=_0x204cce||(_0x20ebf2['unshift']({'type':_0x204cce,'name':_0x34943d,'userId':_0x5e66f1}),_0x2f822c[_0x46d085]['markersStart']['splice'](_0x44b951,0x1),_0x44b951--);}_0x53025f(_0x2f822c[_0x46d085]);for(let _0xb25128=0x0;_0xb25128<_0x2f822c[_0x46d085]['markersEnd']['length'];_0xb25128++){const _0x4f1546=_0x2f822c[_0x46d085]['markersEnd'][_0xb25128];if(!_0x1da78c['has'](_0x4f1546))continue;const {group:_0x4ac681,type:_0x4b8eb2}=_0x5c3cd4(_0x4f1546);if('revision-suggestion'!=_0x4ac681||'insertion'!=_0x4b8eb2&&'deletion'!=_0x4b8eb2)continue;_0x2f822c[_0x46d085]['markersEnd']['splice'](_0xb25128,0x1),_0xb25128--;const _0x43f6b9=_0x20ebf2['findIndex'](_0x182f71=>_0x182f71['name']==_0x4f1546);_0x43f6b9>-0x1&&_0x20ebf2['splice'](_0x43f6b9,0x1);}}function _0x5c3cd4(_0x1419b7){const _0x278416=_0x1419b7['split'](':');return{'group':_0x278416[0x0],'type':_0x278416[0x1],'subType':_0x278416['length']>=0x5?_0x278416[0x2]:null,'id':_0x278416['length']<0x5?_0x278416[0x2]:_0x278416[0x3],'authorId':_0x278416['length']<0x5?_0x278416[0x3]:_0x278416[0x4],'markerCount':0x6==_0x278416['length']?_0x278416[0x5]:null};}function _0x53025f(_0x169336){for(let _0x37044d=0x0;_0x37044d<_0x20ebf2['length'];_0x37044d++){if(_0x169336['isAdded']&&'insertion'==_0x20ebf2[_0x37044d]['type']&&_0x169336['isAdded']['userId']==_0x20ebf2[_0x37044d]['userId'])return _0x169336['isAddSuggestion']=_0x20ebf2[_0x37044d],void delete _0x169336['isAdded'];if(!_0x169336['isAdded']&&!_0x169336['isRemoved']&&'deletion'==_0x20ebf2[_0x37044d]['type'])return void(_0x169336['isRemoveSuggestion']=_0x20ebf2[_0x37044d]);}}}['_setDistance'](_0x19ccdc,_0x4f184b){let _0x14881f=0x0,_0x1ada83=!0x1;const _0x31dca7=new Map();for(const _0x46dba5 of _0x19ccdc)_0x46dba5[_0x4f184b]?_0x1ada83&&(_0x14881f++,_0x1ada83=!0x1):(_0x14881f++,_0x1ada83=!0x0),_0x31dca7['set'](_0x46dba5['id'],_0x14881f);for(let _0x10da29=0x0;_0x10da29<_0x19ccdc['length'];_0x10da29++){if('isRemoved'==_0x4f184b&&_0x19ccdc[_0x10da29]['isAdded']||'isAdded'==_0x4f184b&&_0x19ccdc[_0x10da29]['isRemoved'])continue;if('text'==_0x19ccdc[_0x10da29]['type']){_0x19ccdc[_0x10da29]['distance']=0x0;continue;}const _0x367602=_0x31dca7['get'](_0x19ccdc[_0x10da29]['pairId']),_0x5201b5=_0x31dca7['get'](_0x19ccdc[_0x10da29]['id']);_0x19ccdc[_0x10da29]['distance']=_0x367602-_0x5201b5;}}['_getRevisionsRange'](_0x2d7732,_0x19fcd3,_0x41b0c2=!0x1){const _0x578a49=[];let _0x53b5d3=this['repository']['getIndex'](_0x2d7732),_0x16068f=this['repository']['getIndex'](_0x19fcd3);for(-0x1==_0x16068f&&(_0x16068f=this['repository']['_revisions']['length'],_0x41b0c2=!0x1);_0x53b5d3<_0x16068f;)_0x578a49['push'](this['repository']['getRevision'](_0x53b5d3)),_0x53b5d3++;return _0x41b0c2&&_0x578a49['push'](this['repository']['getRevision'](_0x53b5d3)),_0x578a49;}['_threeWayMerge'](_0x6ff028,_0x511b60,_0x3864f8,_0x1f339d){const _0x51c5ad=this['editor']['model']['schema'];let _0x110637=_0x511b60;for(;_0x6ff028[_0x110637]&&_0x6ff028[_0x110637]['isAdded'];)_0x110637++;let _0x82067c=_0x1f339d;for(;_0x3864f8[_0x82067c]&&_0x3864f8[_0x82067c]['isRemoved'];)_0x82067c++;_0x34d094(_0x6ff028,_0x511b60,_0x110637),_0x34d094(_0x3864f8,_0x1f339d,_0x82067c);const _0x179ac1=_0x3864f8['slice'](_0x1f339d,_0x82067c)['concat'](_0x6ff028['slice'](_0x511b60,_0x110637));return _0x179ac1['sort']((_0x30f7c1,_0x4db6da)=>_0x30f7c1['side']!=_0x4db6da['side']?_0x30f7c1['side']-_0x4db6da['side']:_0x30f7c1['level']!=_0x4db6da['level']?_0x30f7c1['level']-_0x4db6da['level']:_0x30f7c1['distance']!=_0x4db6da['distance']?_0x4db6da['distance']-_0x30f7c1['distance']:!!_0x30f7c1['isAdded']!=!!_0x4db6da['isAdded']?-0x1==_0x30f7c1['side']||0x0==_0x30f7c1['side']?_0x30f7c1['isAdded']?-0x1:0x1:_0x30f7c1['isAdded']?0x1:-0x1:_0x30f7c1['index']-_0x4db6da['index']),{'commonTape':_0x179ac1,'iEnd':_0x110637,'jEnd':_0x82067c};function _0x34d094(_0x493f7d,_0x4bb9df,_0x116c8f){let _0xe94c21=-0x1,_0x56e73d=Number['POSITIVE_INFINITY'],_0xa646e0=!0x0;for(let _0x8e4307=_0x4bb9df;_0x8e4307<_0x116c8f;_0x8e4307++)if(_0x51c5ad['isInline'](_0x493f7d[_0x8e4307]['item'])||(_0xa646e0=!0x1),_0x493f7d[_0x8e4307]['item']['startIndex']<_0x4bb9df&&(_0xe94c21=_0x8e4307),_0x493f7d[_0x8e4307]['item']['endIndex']>=_0x116c8f){_0x56e73d=_0x8e4307;break;}_0xa646e0&&(_0xe94c21=_0x116c8f-0x1);for(let _0x147e06=_0x4bb9df;_0x147e06<_0x116c8f;_0x147e06++)_0x493f7d[_0x147e06]['side']=_0x147e06<=_0xe94c21?-0x1:_0x147e06<_0x56e73d?0x0:0x1,_0x493f7d[_0x147e06]['index']=_0x147e06;let _0x41bdf1=0x0;for(let _0x33504f=_0x4bb9df;_0x33504f<=_0xe94c21;_0x33504f++)0x0==_0x493f7d[_0x33504f]['distance']?_0x493f7d[_0x33504f]['level']=_0x41bdf1:(_0x41bdf1++,_0x493f7d[_0x33504f]['level']=_0x41bdf1,_0x41bdf1++);for(let _0xffcae3=_0x4bb9df;_0xffcae3<_0x116c8f;_0xffcae3++)0x0==_0x493f7d[_0xffcae3]['side']&&(_0x493f7d[_0xffcae3]['level']=_0x41bdf1);_0x41bdf1=0x0;for(let _0x23ed0f=_0x116c8f-0x1;_0x23ed0f>=_0x56e73d;_0x23ed0f--)0x0==_0x493f7d[_0x23ed0f]['distance']?_0x493f7d[_0x23ed0f]['level']=_0x41bdf1:(_0x41bdf1--,_0x493f7d[_0x23ed0f]['level']=_0x41bdf1,_0x41bdf1--);}}['_fixObsoleteTags'](_0x219a98){const _0x44c743=new Map(),_0x3414c4=this['editor']['model']['schema'];for(let _0x4e1777=0x1;_0x4e1777<_0x219a98['length'];_0x4e1777++){let _0x161561,_0x40e85e,_0x66f090;const _0x296478=_0x219a98[_0x4e1777],_0x4ff5d=_0x219a98[_0x4e1777-0x1];if('text'==_0x296478['type'])continue;if(_0x296478['type']!=_0x4ff5d['type'])continue;if(!_0x3414c4['isBlock'](_0x4ff5d['item'])||_0x3414c4['isLimit'](_0x4ff5d['item']))continue;if(!_0x3414c4['isBlock'](_0x296478['item'])||_0x3414c4['isLimit'](_0x296478['item']))continue;if((_0x219a98[_0x4e1777]['isAdded']||_0x219a98[_0x4e1777]['isAddSuggestion'])&&_0x219a98[_0x4e1777-0x1]['isRemoved'])_0x161561=_0x219a98[_0x4e1777],_0x40e85e=_0x219a98[_0x4e1777-0x1],_0x66f090=_0x4e1777-0x1;else{if(!_0x219a98[_0x4e1777]['isRemoved']||!_0x219a98[_0x4e1777-0x1]['isAdded']&&!_0x219a98[_0x4e1777-0x1]['isAddSuggestion'])continue;_0x161561=_0x219a98[_0x4e1777-0x1],_0x40e85e=_0x219a98[_0x4e1777],_0x66f090=_0x4e1777;}const _0x146e5e=_0x161561['level']==_0x40e85e['level'],_0x59b450=Math['abs'](_0x161561['level'])<Math['abs'](_0x40e85e['level'])&&0x0==_0x40e85e['distance'];(_0x146e5e||_0x59b450)&&(_0x44c743['set'](_0x40e85e['id'],_0x161561['id']),_0x219a98['splice'](_0x66f090,0x1),_0x4e1777--,_0x161561['isAdded']=!0x1);}for(let _0x552590=0x0;_0x552590<_0x219a98['length'];_0x552590++)_0x44c743['has'](_0x219a98[_0x552590]['pairId'])&&(_0x219a98[_0x552590]['pairId']=_0x44c743['get'](_0x219a98[_0x552590]['pairId']));}['_removeMissingPairs'](_0xb53fb7){const _0x5142c5=new Set(_0xb53fb7['map'](_0x5f053d=>_0x5f053d['id']));for(let _0x414430=0x0;_0x414430<_0xb53fb7['length'];_0x414430++)_0x5142c5['has'](_0xb53fb7[_0x414430]['pairId'])||0x0==_0xb53fb7[_0x414430]['distance']||(_0xb53fb7[_0x414430]['isIncorrect']=!0x0);return _0xb53fb7['filter'](_0x336a7a=>!_0x336a7a['isIncorrect']);}['_markMismatchedRemovedTags'](_0x3894bc){const _0xcfb86f=new Set();for(let _0x45aad7=0x0;_0x45aad7<_0x3894bc['length'];_0x45aad7++){if(_0xcfb86f['has'](_0x3894bc[_0x45aad7]['id'])&&_0x3894bc[_0x45aad7]['isRemoved']&&(_0x3894bc[_0x45aad7]['isIncorrect']=!0x0),_0x3894bc[_0x45aad7]['isIncorrect'])continue;if(0x0==_0x3894bc[_0x45aad7]['distance'])continue;if('elementStart'!=_0x3894bc[_0x45aad7]['type'])continue;if(null==_0x3894bc[_0x45aad7]['pairId'])continue;let _0x54d9c6=_0x45aad7+0x1,_0x4ff132=0x0;for(;_0x3894bc[_0x54d9c6]['id']!=_0x3894bc[_0x45aad7]['pairId'];)'elementStart'==_0x3894bc[_0x54d9c6]['type']?_0x4ff132++:'elementEnd'==_0x3894bc[_0x54d9c6]['type']&&_0x4ff132--,_0x54d9c6++;if(0x0!=_0x4ff132){if(_0x3894bc[_0x45aad7]['isRemoved'])_0x3894bc[_0x45aad7]['isIncorrect']=!0x0;else{for(;_0x54d9c6!=_0x45aad7;)_0x3894bc[_0x54d9c6]['isRemoved']&&0x0!=_0x3894bc[_0x54d9c6]['distance']&&(_0x3894bc[_0x54d9c6]['isIncorrect']=!0x0,_0xcfb86f['add'](_0x3894bc[_0x54d9c6]['pairId'])),_0x54d9c6--;}}}return _0x3894bc['filter'](_0x3ea327=>!_0x3ea327['isIncorrect']);}['_removeUnsupportedChanges'](_0x377a8f){const _0x33a4d7=this['editor']['model']['schema'];for(let _0x2cc9a9=0x0;_0x2cc9a9<_0x377a8f['length'];_0x2cc9a9++){if(!(_0x377a8f[_0x2cc9a9]['isAdded']||_0x377a8f[_0x2cc9a9]['isAddSuggestion']||_0x377a8f[_0x2cc9a9]['isRemoved']||_0x377a8f[_0x2cc9a9]['isRemoveSuggestion']))continue;if(0x0==_0x377a8f[_0x2cc9a9]['distance'])continue;const _0x326d11=_0x377a8f[_0x2cc9a9]['item'];_0x33a4d7['isBlock'](_0x326d11)||_0x33a4d7['isLimit'](_0x326d11)||(_0x377a8f[_0x2cc9a9]['isAdded']&&delete _0x377a8f[_0x2cc9a9]['isAdded'],_0x377a8f[_0x2cc9a9]['isAddSuggestion']&&delete _0x377a8f[_0x2cc9a9]['isAddSuggestion'],_0x377a8f[_0x2cc9a9]['isRemoveSuggestion']&&delete _0x377a8f[_0x2cc9a9]['isRemoveSuggestion'],_0x377a8f[_0x2cc9a9]['isRemoved']&&(_0x377a8f[_0x2cc9a9]['isIncorrect']=!0x0));}return _0x377a8f['filter'](_0x553f38=>!_0x553f38['isIncorrect']);}['_makeModelFromTape'](_0x26799b,_0x1e7bd5,_0x7d4a1e){const _0x3161c6=new vt(),_0x3fcfd9=[],_0x531e14=new Map(),_0x57f14a=this['editor']['model'],_0x40e5dd=_0x57f14a['schema'],_0x3f791c=[_0x3161c6],_0x2decc4={},_0x1374ef={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x5ba1ef=null;const _0xce7db0=[0x0];for(let _0x2c44d5=0x0;_0x2c44d5<_0x26799b['length'];_0x2c44d5++)if('elementStart'===_0x26799b[_0x2c44d5]['type']){_0x26799b[_0x2c44d5]['previousPosition']=_0x57f14a['createPositionFromPath'](_0x3161c6,_0xce7db0);const _0x1a671a=new ut(_0x26799b[_0x2c44d5]['item']['name'],_0x26799b[_0x2c44d5]['item']['getAttributes']());_0x3f791c[0x0]['_appendChild'](_0x1a671a),_0xce7db0['push'](0x0),_0x3f791c['unshift'](_0x1a671a),_0x26799b[_0x2c44d5]['nextPosition']=_0x57f14a['createPositionFromPath'](_0x3161c6,_0xce7db0);}else'elementEnd'===_0x26799b[_0x2c44d5]['type']?(_0x3f791c['shift'](),_0x26799b[_0x2c44d5]['previousPosition']=_0x57f14a['createPositionFromPath'](_0x3161c6,_0xce7db0),_0xce7db0['pop'](),_0xce7db0[_0xce7db0['length']-0x1]++,_0x26799b[_0x2c44d5]['nextPosition']=_0x57f14a['createPositionFromPath'](_0x3161c6,_0xce7db0)):(_0x26799b[_0x2c44d5]['previousPosition']=_0x57f14a['createPositionFromPath'](_0x3161c6,_0xce7db0),_0x5ba1ef?_0x5ba1ef['_data']+=_0x26799b[_0x2c44d5]['item']['data']:_0x5ba1ef=new gt(_0x26799b[_0x2c44d5]['item']['data'],_0x26799b[_0x2c44d5]['item']['getAttributes']()),_0x26799b[_0x2c44d5+0x1]&&'text'===_0x26799b[_0x2c44d5+0x1]['type']&&_0xc84d1e(_0x5ba1ef,_0x26799b[_0x2c44d5+0x1]['item'])||(_0x3f791c[0x0]['_appendChild'](_0x5ba1ef),_0x5ba1ef=null),_0xce7db0[_0xce7db0['length']-0x1]+=_0x26799b[_0x2c44d5]['item']['offsetSize'],_0x26799b[_0x2c44d5]['nextPosition']=_0x57f14a['createPositionFromPath'](_0x3161c6,_0xce7db0));for(let _0x7e503=0x0;_0x7e503<_0x26799b['length'];_0x7e503++){const _0x5eddbc=_0x26799b[_0x7e503]['previousPosition'],_0x191281=_0x26799b[_0x7e503]['nextPosition'];for(const _0x333206 of _0x26799b[_0x7e503]['markersStart'])_0x531e14['set'](_0x333206,{'start':_0x5eddbc,'end':null});_0x773a51('isRemoveSuggestion',_0x7e503,_0x5eddbc,_0x191281),_0x773a51('isAddSuggestion',_0x7e503,_0x5eddbc,_0x191281),_0x773a51('isRemoved',_0x7e503,_0x5eddbc,_0x191281),_0x773a51('isAdded',_0x7e503,_0x5eddbc,_0x191281);for(const _0x214748 of _0x26799b[_0x7e503]['markersEnd']){const _0xbe6066=_0x531e14['get'](_0x214748);_0xbe6066?_0xbe6066['end']=_0x191281:_0x531e14['set'](_0x214748,{'start':_0x191281,'end':_0x191281});}}for(const [_0x5ad6e9,_0x4c2859]of _0x531e14){const _0x3082e6=this['editor']['model']['createRange'](_0x4c2859['start'],_0x4c2859['end']);_0x3161c6['markers']['set'](_0x5ad6e9,_0x3082e6);}return _0x3fcfd9['sort']((_0x5b9b35,_0x3adf94)=>{const _0x275790=_0x3161c6['markers']['get']('revision:'+_0x5b9b35['id']),_0x25ebab=_0x3161c6['markers']['get']('revision:'+_0x3adf94['id']);return _0x275790['start']['isBefore'](_0x25ebab['start'])?-0x1:_0x275790['start']['isAfter'](_0x25ebab['start'])?0x1:_0x275790['end']['isBefore'](_0x25ebab['end'])?-0x1:_0x275790['end']['isAfter'](_0x25ebab['end'])?0x1:'add'===_0x5b9b35['type']?-0x1:0x1;}),{'root':_0x3161c6,'changes':_0x3fcfd9};function _0x773a51(_0x21815e,_0x43fd02,_0x354225,_0x3d9cd6){const _0x124b13=!!_0x26799b[_0x43fd02][_0x21815e],_0xd0ce20=_0x124b13?_0x26799b[_0x43fd02][_0x21815e]['userId']:null,_0xcd0ac2=_0x43fd02===_0x26799b['length']-0x1,_0x52dc0e=_0x1374ef[_0x21815e][0x0],_0x141ae7=_0x40e5dd['isObject'](_0x26799b[_0x43fd02]['item']);!_0x2decc4[_0x21815e]&&_0x124b13?_0x2decc4[_0x21815e]={'start':_0x354225,'tapeItem':_0x26799b[_0x43fd02],'userId':_0xd0ce20,'type':_0x21815e}:_0x2decc4[_0x21815e]&&!_0x124b13?(_0x2decc4[_0x21815e]['end']=_0x354225,_0x2fe739(_0x2decc4[_0x21815e]),_0x2decc4[_0x21815e]=null):_0x2decc4[_0x21815e]&&_0x124b13&&_0x2decc4[_0x21815e]['userId']!==_0xd0ce20&&(_0x2decc4[_0x21815e]['end']=_0x354225,_0x52dc0e&&_0x52dc0e['userId']===_0x2decc4[_0x21815e]['userId']||_0x2fe739(_0x2decc4[_0x21815e]),_0x2decc4[_0x21815e]={'start':_0x354225,'tapeItem':_0x26799b[_0x43fd02],'userId':_0xd0ce20,'type':_0x21815e}),_0x2decc4[_0x21815e]&&_0x141ae7&&('elementStart'!==_0x26799b[_0x43fd02]['type']||_0x52dc0e&&_0x52dc0e['userId']===_0xd0ce20||_0x1374ef[_0x21815e]['unshift']({'userId':_0xd0ce20,'object':_0x26799b[_0x43fd02]['item'],'change':_0x2decc4[_0x21815e]}),'elementEnd'===_0x26799b[_0x43fd02]['type']&&_0x52dc0e&&_0x52dc0e['object']===_0x26799b[_0x43fd02]['item']&&(_0x1374ef[_0x21815e]['shift'](),_0x2decc4[_0x21815e]=_0x52dc0e['change'])),_0x2decc4[_0x21815e]&&_0xcd0ac2&&(_0x2decc4[_0x21815e]['end']=_0x3d9cd6,_0x2fe739(_0x2decc4[_0x21815e]),_0x2decc4[_0x21815e]=null);}function _0x2fe739({start:_0x4034f0,end:_0x5a5359,tapeItem:_0x42c0d0,userId:_0x320d6e,type:_0x2c08b0}){const _0x43101c=_0x42c0d0['item'],_0x50ed73=_0x57f14a['schema']['isBlock'](_0x43101c)&&!_0x57f14a['schema']['isLimit'](_0x43101c),_0x365aaa=_0x4034f0['nodeAfter']==_0x5a5359['parent']&&_0x5a5359['isAtStart'];if(_0x50ed73&&_0x365aaa)return;const _0x48e87=_0x57f14a['createRange'](_0x4034f0,_0x5a5359),_0x2fdbcb=_0x1e7bd5['get'](_0x320d6e),_0x2ef629=new r({'author':_0x2fdbcb,'type':'isAdded'==_0x2c08b0||'isAddSuggestion'==_0x2c08b0?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x2c08b0||'isRemoveSuggestion'==_0x2c08b0},'createdAt':new Date(),'rootName':_0x7d4a1e});_0x3fcfd9['push'](_0x2ef629),_0x3161c6['markers']['set']('revision:'+_0x2ef629['id'],_0x48e87);}function _0xc84d1e(_0x31cea7,_0x36ef9a){const _0x128eae=_0x31cea7['getAttributes'](),_0x22f948=_0x36ef9a['getAttributes']();for(const _0x402a43 of _0x128eae){if(_0x402a43[0x1]!==_0x36ef9a['getAttribute'](_0x402a43[0x0]))return!0x1;_0x22f948['next']();}return _0x22f948['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x53a1cd=>{const _0x45f5a7=_0x53a1cd['markerName']['split'](':')[0x1],_0x160948=this['_getChangeFromId'](_0x45f5a7);if(!_0x160948)return null;const _0x502d0e='add'==_0x160948['type']?'insertion':'deletion',_0x19db76=['ck-suggestion-marker','ck-suggestion-marker-'+_0x502d0e];return _0x160948['data']['isSuggestion']&&_0x19db76['push']('ck-suggestion-marker-'+_0x502d0e+'-new'),this['activeChange']==_0x160948&&_0x19db76['push']('ck-suggestion-marker--active'),{'classes':_0x19db76,'attributes':{'data-change-id':_0x45f5a7}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x28a976=>{_0x28a976['on']('element:pre',(_0x5caa40,_0x5cb8a1,_0x84dbf7)=>{const _0x1cff21=_0x5cb8a1['viewItem']['getChild'](0x0);if(!_0x1cff21||!_0x1cff21['is']('element','code'))return;if(!_0x84dbf7['consumable']['consume'](_0x1cff21,{'attributes':['vid_start','vid_end']}))return;const _0x3db365=_0x5cb8a1['modelRange']['start']['nodeAfter'];_0x84dbf7['writer']['setAttribute']('vid_start',_0x1cff21['getAttribute']('vid_start'),_0x3db365),_0x84dbf7['writer']['setAttribute']('vid_end',_0x1cff21['getAttribute']('vid_end'),_0x3db365);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x5a4cdd=>{_0x5a4cdd['on']('element',(_0x13d7fa,_0x2b388b,_0x7dd066)=>{if(!_0x7dd066['consumable']['consume'](_0x2b388b['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x2b388b['modelRange']['isCollapsed'])return;const _0x43e184=_0x2b388b['modelRange']['start']['nodeAfter'];_0x43e184['hasAttribute']('vid_start')||_0x43e184['hasAttribute']('vid')||(_0x7dd066['writer']['setAttribute']('vid_start',_0x2b388b['viewItem']['getAttribute']('vid_start'),_0x43e184),_0x7dd066['writer']['setAttribute']('vid_end',_0x2b388b['viewItem']['getAttribute']('vid_end'),_0x43e184));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x575701=>_0x575701['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x4d13ab,[,_0x588820])=>{['vid_start','vid_end','vid']['includes'](_0x588820)&&(_0x4d13ab['return']=!0x0,_0x4d13ab['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x675c9b=>{_0x675c9b['on']('attribute:vid',(_0xbdc699,_0x5ec42e,_0x352d6f)=>{if('\x20'!=_0x5ec42e['item']['data']||_0x5ec42e['item']['parent']['maxOffset']>0x1)return;if(!_0x352d6f['consumable']['consume'](_0x5ec42e['item'],_0xbdc699['name']))return;const _0x324fcb=_0x352d6f['writer'],_0x3afcd1=_0x352d6f['mapper']['toViewRange'](_0x5ec42e['range']);_0x324fcb['wrap'](_0x3afcd1,_0x324fcb['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x150030){const _0x334971=_0x150030['plugins']['get']('RevisionViewer');return(_0x1f5572,_0x15458c,_0x3a7db8)=>{const _0x214ba9=_0x15458c['markerName']['split'](':')[0x1],_0xbb355e=_0x334971['_getChangeFromId'](_0x214ba9);if(!_0xbb355e)return null;const _0x29093a='add'==_0xbb355e['type']?'split':'merge';if(!_0x3a7db8['consumable']['test'](_0x15458c['markerRange'],_0x1f5572['name']))return;const _0x1451b2=_0x15458c['markerRange']['getWalker'](),_0x5f1edc=_0x15458c['markerRange']['start'],_0x401732=_0x150030['model']['schema'];let _0x1dae3e=null,_0x17d9f3=null,_0x3c0a5a=!0x1,_0x5594c7=!0x1;for(const _0x1347eb of _0x1451b2){const _0x531ac6=_0x1347eb['item'];_0x3c0a5a=_0x3c0a5a||_0x401732['isContent'](_0x531ac6);const _0x24dd52=_0x3a7db8['mapper']['toViewElement'](_0x531ac6);if(_0x24dd52&&_0x24dd52['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1347eb['type']&&(_0x401732['isBlock'](_0x531ac6)&&!_0x401732['isLimit'](_0x531ac6)&&(_0x531ac6['nextSibling']||_0x5f1edc['isAtEnd']?_0x1dae3e&&_0x1dae3e['parent']==_0x531ac6||(_0x1dae3e=_0x531ac6,_0x3e7603(_0x1347eb['previousPosition']),_0x5594c7=!0x0):_0x17d9f3=_0x17d9f3||_0x1347eb['previousPosition']));}function _0x3e7603(_0xaf13aa){const _0x44853b=_0x3a7db8['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x29093a}),_0xe5c8=_0x3a7db8['mapper']['toViewPosition'](_0xaf13aa);_0xbb355e['data']['isSuggestion']&&_0x3a7db8['writer']['addClass']('ck-suggestion-marker-'+_0x29093a+'-new',_0x44853b),_0x334971['activeChange']==_0xbb355e&&_0x3a7db8['writer']['addClass']('ck-suggestion-marker--active',_0x44853b),_0x3a7db8['writer']['insert'](_0xe5c8,_0x44853b),_0x3a7db8['mapper']['bindElementToMarker'](_0x44853b,_0x15458c['markerName']);}_0x3c0a5a||_0x5594c7||!_0x17d9f3||_0x3e7603(_0x17d9f3);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x1923c6,_0x18cbe2,_0x41d38a)=>{const _0x4c5b98=_0x41d38a['mapper']['markerNameToElements'](_0x18cbe2['markerName']);if(_0x4c5b98){for(const _0x5db795 of _0x4c5b98)(_0x5db795['hasClass']('ck-suggestion-marker-split')||_0x5db795['hasClass']('ck-suggestion-marker-merge'))&&(_0x41d38a['mapper']['unbindElementFromMarkerName'](_0x5db795,_0x18cbe2['markerName']),_0x41d38a['writer']['remove'](_0x5db795));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x481714,_0x44ee16,_0x1a3261)=>{const _0x3f748b=_0x44ee16['markerName']['split'](':')[0x1],_0x38c1c0=this['_getChangeFromId'](_0x3f748b);if(!_0x38c1c0)return null;const _0x6d2565='add'==_0x38c1c0['type']?'split':'merge';if(_0x1a3261['consumable']['test'](_0x44ee16['markerRange'],_0x481714['name']))for(const _0x425b5b of _0x44ee16['markerRange']['getItems']()){if(!_0x425b5b['is']('element','softBreak'))continue;const _0x29209f=_0x1a3261['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x6d2565}),_0x444fdd=_0x1a3261['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x425b5b));_0x38c1c0['data']['isSuggestion']&&_0x1a3261['writer']['addClass']('ck-suggestion-marker-'+_0x6d2565+'-new',_0x29209f),this['activeChange']==_0x38c1c0&&_0x1a3261['writer']['addClass']('ck-suggestion-marker--active',_0x29209f),_0x1a3261['writer']['insert'](_0x444fdd,_0x29209f),_0x1a3261['mapper']['bindElementToMarker'](_0x29209f,_0x44ee16['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x306e08=>{for(const _0x15b39c of this['editor']['model']['document']['getRootNames']()){const _0x21674f=this['editor']['model']['document']['getRoot'](_0x15b39c),_0x3abed4=this['editor']['editing']['view']['document']['getRoot'](_0x15b39c);if(_0x3abed4){const _0xc1d229=_0x21674f['getAttribute']('revisionHistoryAttachChange');if(_0x306e08['removeAttribute']('data-change-id',_0x3abed4),_0x306e08['removeClass']('ck-revision-history-root-add',_0x3abed4),_0x306e08['removeClass']('ck-revision-history-root-remove',_0x3abed4),_0x306e08['removeClass']('ck-revision-history-root--active',_0x3abed4),_0xc1d229){const _0x5d3485=this['_getChangeFromId'](_0xc1d229);if(!_0x5d3485)return null;_0x306e08['setAttribute']('data-change-id',_0xc1d229,_0x3abed4),_0x306e08['addClass']('ck-revision-history-root-'+_0x5d3485['type'],_0x3abed4),this['activeChange']==_0x5d3485&&_0x306e08['addClass']('ck-revision-history-root--active',_0x3abed4);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x1e4fae=>'revision-comment:'+_0x1e4fae,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x3bfae7=>'revision-suggestion:'+_0x3bfae7,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x2b112b=>({'name':'suggestion:'+_0x2b112b,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x52a89b=>{const _0x4c2a9a=_0x52a89b['markerName']['split'](':')[0x1];return'insertion'!=_0x4c2a9a&&'deletion'!=_0x4c2a9a?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x4c2a9a]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',X(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',X(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x444f9e,_0x23bf38,_0x17301f)=>{const _0x240a91=_0x17301f['mapper']['markerNameToElements'](_0x23bf38['markerName']);if(_0x240a91){for(const _0x1ec9a5 of _0x240a91)_0x1ec9a5['is']('uiElement')&&(_0x17301f['mapper']['unbindElementFromMarkerName'](_0x1ec9a5,_0x23bf38['markerName']),_0x17301f['writer']['remove'](_0x1ec9a5));}},{'priority':'high'});}['_getChangeFromId'](_0x232a94){return this['_changeIdToChange']['get'](_0x232a94);}['_getViewForChange'](_0x3ae2fd){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x3ae2fd),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x576f1e,_0x4176d8,_0x329ef2,_0x17722f)=>{_0x17722f&&this['_balloon']['remove'](_0x17722f),_0x329ef2&&(this['_balloon']['add']({'view':_0x329ef2,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x523f12=this['editor']['editing'],_0x36d101=this['_getChangeFromId'](_0x329ef2['changeId']);let _0xad746d;if(_0x36d101['data']['isOnRoot']){const _0x2e9516=_0x523f12['view']['getDomRoot'](_0x36d101['rootName']);_0xad746d=Array['from'](_0x2e9516['getClientRects']());}else{const _0x23ee57=this['editor']['model']['markers']['get']('revision:'+_0x329ef2['changeId']);_0xad746d=Array['from'](_0x523f12['mapper']['markerNameToElements'](_0x23ee57['name']))['map'](_0x593da3=>_0x523f12['view']['domConverter']['mapViewToDom'](_0x593da3))['map'](_0x3ddeb0=>Array['from'](_0x3ddeb0['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0xad746d[0x0];return _0xad746d['find'](_0x3dad0a=>_0x3dad0a['top']-0x3<=this['_activeViewTarget']['y']&&_0x3dad0a['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x3dad0a['left']-0x3<=this['_activeViewTarget']['x']&&_0x3dad0a['right']+0x3>=this['_activeViewTarget']['x'])||_0xad746d[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x23460f,_0x12eeb2,_0x54b03e,_0x5f4796)=>{this['activeView']=_0x54b03e?this['_getViewForChange'](_0x54b03e):null,this['editor']['model']['change'](()=>{const _0x59a3c6=this['editor']['editing'];_0x5f4796&&(_0x5f4796['data']['isOnRoot']?_0x59a3c6['view']['change'](_0x383619=>{_0x383619['removeClass']('ck-revision-history-root--active',_0x59a3c6['view']['document']['getRoot'](_0x5f4796['rootName']));}):_0x59a3c6['reconvertMarker']('revision:'+_0x5f4796['id'])),_0x54b03e&&(_0x54b03e['data']['isOnRoot']?_0x59a3c6['view']['change'](_0x2e81a2=>{_0x2e81a2['addClass']('ck-revision-history-root--active',_0x59a3c6['view']['document']['getRoot'](_0x54b03e['rootName']));}):_0x59a3c6['reconvertMarker']('revision:'+_0x54b03e['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x55fd9c,_0x14be8e)=>{if(this['activeChange'])return;const _0x3fc18b=this['_findChangeIdFromDomTarget'](_0x14be8e['target']),_0x25f647=this['_changeIdToChange']['get'](_0x3fc18b);_0x25f647?(this['_activeViewTarget']={'x':_0x14be8e['domEvent']['x'],'y':_0x14be8e['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x25f647)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x4a6719,_0x27a00e)=>{const _0x56fbe1=this['_findChangeIdFromDomTarget'](_0x27a00e['target']),_0x14649a=this['_changeIdToChange']['get'](_0x56fbe1);_0x14649a?(this['_activeViewTarget']={'x':_0x27a00e['domEvent']['x'],'y':_0x27a00e['domEvent']['y']},_0x14649a===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x14649a):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x42826e){do{const _0x3cc538=_0x42826e['getAttribute']('data-change-id');if(_0x3cc538)return _0x3cc538;_0x42826e=_0x42826e['parent'];}while(_0x42826e);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x168712=>{for(const _0x3a3702 of this['editor']['model']['markers'])_0x168712['removeMarker'](_0x3a3702);});}}function X(_0x20eedf,_0x22f4e5){return(_0x15cdfc,_0x5a6e8e,_0x13183b)=>{if(!_0x13183b['consumable']['test'](_0x5a6e8e['markerRange'],_0x15cdfc['name']))return;const _0x96476=_0x5a6e8e['markerRange']['getWalker'](),_0x209c76=_0x5a6e8e['markerRange']['start'],_0x2c691c=_0x20eedf['model']['schema'];let _0x377726=null,_0xf8eefb=null,_0x45c637=!0x1,_0x32a949=!0x1;for(const _0x3be091 of _0x96476){const _0xc6e821=_0x3be091['item'];_0x45c637=_0x45c637||_0x2c691c['isContent'](_0xc6e821);const _0x2d25ce=_0x13183b['mapper']['toViewElement'](_0xc6e821);if(_0x2d25ce&&_0x2d25ce['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3be091['type']&&(_0x2c691c['isBlock'](_0xc6e821)&&!_0x2c691c['isLimit'](_0xc6e821)&&(_0xc6e821['nextSibling']||_0x209c76['isAtEnd']?_0x377726&&_0x377726['parent']==_0xc6e821||(_0x377726=_0xc6e821,_0xd33247(_0x3be091['previousPosition']),_0x32a949=!0x0):_0xf8eefb=_0xf8eefb||_0x3be091['previousPosition']));}function _0xd33247(_0x56f12a){const _0x2dcfcc=_0x13183b['mapper']['toViewPosition'](_0x56f12a),_0x520b65=_0x13183b['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x22f4e5});_0x13183b['writer']['insert'](_0x2dcfcc,_0x520b65),_0x13183b['mapper']['bindElementToMarker'](_0x520b65,_0x5a6e8e['markerName']);}_0x45c637||_0x32a949||!_0xf8eefb||_0xd33247(_0xf8eefb);};}class mt extends _0x447304{constructor(_0x27d3c2){super(_0x27d3c2);const _0x3d8208=_0x27d3c2['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x3d8208,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x3d8208,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x1085c2=this['editor'],_0x391836=_0x1085c2['plugins']['get'](m),_0x36cf3b=_0x391836['isReady']?_0x391836['diff']['newRevisionId']:null;_0x1085c2['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x36cf3b);}['refresh'](){const {isReady:_0x4e36d5,isEnabled:_0x59a675,repository:_0x13dea5,diff:_0x2c8716}=this['editor']['plugins']['get'](m),_0x219991=_0x2c8716&&_0x13dea5['getLaterVisibleRevision'](_0x2c8716['newRevisionId']);this['isEnabled']=_0x4e36d5&&_0x59a675&&Boolean(_0x219991);}}class wt extends _0x447304{['_step'];constructor(_0x193cf5,{direction:_0x21a1b2}){super(_0x193cf5);const _0x5a8af6=_0x193cf5['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x21a1b2?0x1:-0x1,this['listenTo'](_0x5a8af6,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x5a8af6,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x5a8af6,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x37fb6e=this['editor'],_0x559ebe=_0x37fb6e['plugins']['get'](m),{isNavigationMode:_0x24ab43,currentChangeNumber:_0x1b0d9d}=_0x559ebe;let _0x641e91;if(_0x559ebe['activeChange']=_0x24ab43?_0x559ebe['diff']['changes']['get'](_0x1b0d9d+this['_step']):_0x559ebe['diff']['changes']['first'],_0x559ebe['activeChange']['data']['isOnRoot'])_0x641e91=_0x37fb6e['editing']['view']['getDomRoot'](_0x559ebe['activeChange']['rootName']);else{const _0x4ec315=_0x37fb6e['model']['markers']['get']('revision:'+_0x559ebe['activeChange']['id']);_0x641e91=_0x3e6754(_0x37fb6e['editing'],_0x4ec315);}_0x3cc31c({'target':_0x641e91,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x2f5a7e,currentChangeNumber:_0x3342b5,numberOfChanges:_0x1007aa,isReady:_0x36a1c5,isEnabled:_0x51f753}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x51f753&&_0x36a1c5&&_0x1007aa)&&(!_0x2f5a7e||(0x1===this['_step']?_0x3342b5<_0x1007aa-0x1:_0x3342b5>0x0));}}class li extends ts{constructor(_0x4df0b0){super(_0x4df0b0);const _0x341107=this['bindTemplate'],_0x1b24dc=new te(_0x4df0b0),_0x315855=new te(_0x4df0b0);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',(_0x5915ca,_0xd93c59)=>_0x5915ca&&_0xd93c59>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x396f4c,_0x4caa02,_0x3297f3,_0x5ec8b6)=>{if(!_0x396f4c)return g(_0x4df0b0,'Loading...');if(!_0x3297f3)return g(_0x4df0b0,'No\x20changes');const _0x534782=g(_0x4df0b0,'NUMBER_OF_CHANGES',_0x3297f3);return _0x5ec8b6?g(_0x4df0b0,'X_OF_Y_CHANGES',[_0x4caa02+0x1,_0x3297f3]):_0x534782;}),_0x1b24dc['set']({'label':g(_0x4df0b0,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x7e3ec3}),_0x315855['set']({'label':g(_0x4df0b0,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x2de4f2}),_0x1b24dc['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x315855['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x1b24dc['on']('execute',()=>this['fire']('execute','backward')),_0x315855['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',_0x341107['if']('_isStatusLabelVisible','ck-hidden',_0x4a733c=>!_0x4a733c)]},'children':[{'text':_0x341107['to']('isNavigationMode',_0x2f62a1=>_0x2f62a1?g(_0x4df0b0,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x4df0b0,'Total')+':\x20')}]},{'text':_0x341107['to']('_statusText')}]},new _0x5b9bc3(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x1b24dc,_0x315855]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x569b2d{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x22eef2=this['editor']['editing']['view'];_0x22eef2['change'](_0x174a75=>{for(const _0x408d21 of _0x22eef2['document']['roots'])_0x174a75['addClass'](le,_0x408d21);});}['hide'](){const _0x38a676=this['editor']['editing']['view'];_0x38a676['change'](_0xb1d400=>{for(const _0x47e594 of _0x38a676['document']['roots'])_0xb1d400['removeClass'](le,_0x47e594);});}}class R extends _0x569b2d{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,ge];}['init'](){const _0x242222=this['editor'],_0x21df70=_0x242222['plugins']['get'](m),_0x54eec2=_0x242222['plugins']['get'](ge);_0x242222['ui']['componentFactory']['add']('exitToEditing',_0x2818c2=>{const _0x3d73b8=new te(_0x2818c2);return _0x3d73b8['set']({'label':g(_0x2818c2,'Back\x20to\x20editing'),'icon':_0x2574cb,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x3d73b8,'execute',()=>{_0x242222['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x3d73b8;}),_0x242222['ui']['componentFactory']['add']('restoreRevision',_0x4a9be1=>{const _0x2e4232=new te(_0x4a9be1);return _0x2e4232['set']({'label':g(_0x4a9be1,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x2e4232['bind']('isEnabled')['to'](_0x242222['commands']['get']('restoreRevision')),this['listenTo'](_0x2e4232,'execute',()=>_0x242222['execute']('restoreRevision')),_0x2e4232;}),_0x242222['ui']['componentFactory']['add']('changesNavigation',_0x45d80f=>{const _0x1282ff=new li(_0x45d80f),_0x4382a9=_0x242222['commands']['get']('showPreviousChange'),_0x29eaa2=_0x242222['commands']['get']('showNextChange');return _0x1282ff['bind']('isBackwardNavigationEnabled')['to'](_0x4382a9,'isEnabled'),_0x1282ff['bind']('isForwardNavigationEnabled')['to'](_0x29eaa2,'isEnabled'),_0x1282ff['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x21df70),this['listenTo'](_0x1282ff,'execute',(_0x3f4fda,_0x412014)=>{_0x242222['execute']('forward'===_0x412014?'showNextChange':'showPreviousChange');}),_0x1282ff;}),_0x54eec2['show'](),_0x21df70['on']('change:isReady',(_0x257ff7,_0x2f6f3b,_0x4a2dcf)=>{_0x4a2dcf?_0x54eec2['hide']():_0x54eec2['show']();});}}class at extends _0x44236c{['_resizeObserver']=null;constructor(_0x1e28ef,_0x4a9cd7){super(_0x1e28ef,_0x4a9cd7);const _0x1375af=this['bindTemplate'];this['set']({'label':g(_0x1e28ef,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x1e28ef,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x1375af['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new nt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x56ca2f=this['fieldView']['element'];this['_tooltipString']=_0x56ca2f['scrollWidth']>_0x56ca2f['clientWidth']&&_0x56ca2f['value']||'';}}class oi extends ts{constructor(_0x1a16fe,_0x1c8d90,_0x1a2196){super(_0x1a16fe);const _0x18791d=new _0x1cb45c();_0x18791d['set']({'content':_0x5acc08,'viewBox':'0\x200\x2011\x2010'});const _0x6859d5=['ck','ck-revision-history-sidebar__revision-author'];_0x1a2196&&_0x6859d5['push']('ck-revision-history-sidebar__revision-author_creator');const _0x198f9a=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x1a16fe,_0x1a2196?'Revision\x20creator':'Revision\x20author')},'children':[_0x18791d,_0x1c8d90['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x6859d5},'children':_0x198f9a});}}function ai(_0x32b86a,_0x3c1fee){const _0x56ee13=_0x32b86a['bindTemplate'],_0xeb4290=_0x32b86a['locale'],_0x8d6f70=_0x349be9(_0xeb4290);_0x8d6f70['panelPosition']='sw';const _0x3b9252=function(_0x271703,_0x2f0b31){const _0x18fe41=function(_0x40acf3,_0x28b782){const _0x337422=_0x40acf3['locale'],_0x3ea3ce={'Compare\x20against\x20selected':g(_0x337422,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x337422,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x337422,'Restore\x20this\x20revision')};return _0x28b782['map'](_0x468315=>{const _0x395348=_0x3ea3ce[_0x468315['name']];return _0x395348&&_0x395348!==_0x468315['name']&&(_0x468315['name']=_0x395348),_0x468315;});}(_0x271703,_0x2f0b31),_0x451ab0=new _0x93c57c();for(const _0x5683b3 of _0x18fe41){const _0x48353f={'type':'button','model':new to({'label':_0x5683b3['name'],'class':_0x5683b3['class'],'withText':!0x0,'role':'menuitem','_action':_0x5683b3['action']})};_0x48353f['model']['bind']('isEnabled')['to'](_0x271703,'isActionsDropdownOpen',_0x39e4dd=>'function'!=typeof _0x5683b3['isEnabled']||(!_0x39e4dd||_0x5683b3['isEnabled'](_0x271703))),_0x451ab0['add'](_0x48353f);}return _0x451ab0;}(_0x32b86a,_0x3c1fee);return _0x32b86a['bind']('isActionsDropdownOpen')['to'](_0x8d6f70,'isOpen'),_0x8d6f70['buttonView']['set']({'label':g(_0xeb4290,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x4126f9}),_0x8d6f70['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x56ee13['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x56ee13['to'](_0x3d390e=>_0x3d390e['stopPropagation']())}}),_0x8d6f70['on']('execute',_0x25f2ab=>{_0x32b86a['isReady']&&'function'==typeof _0x25f2ab['source']['_action']&&_0x25f2ab['source']['_action'](_0x32b86a);}),_0x5c4b24(_0x8d6f70,_0x3b9252,{'role':'menu'}),_0x8d6f70['listenTo'](_0x32b86a,'change:isActionsDropdownOpen',(_0x3d2dd6,_0x2ea960,_0x1c8c92)=>{if(_0x1c8c92)for(const _0x24b0b7 of _0x8d6f70['listView']['items']){const _0x3cb8da=_0x24b0b7['children']['first'],_0x4e94df=_0x3c1fee['find'](_0x565bcf=>_0x565bcf['action']===_0x3cb8da['_action'])['isVisible'];_0x24b0b7['isVisible']=void 0x0===_0x4e94df||_0x4e94df(_0x32b86a);}}),_0x8d6f70;}class si extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x2bc197(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x4d4ed2,_0x18cd89,_0x3447d3,_0x3abae4){super(_0x4d4ed2);const _0x1d6267=this['bindTemplate'],_0x1748bd=function(_0x3b2c0f,_0x2862a9){const _0x1802cb=Array['from'](_0x2862a9['authors'])['filter'](_0x5b27b6=>_0x5b27b6!=_0x2862a9['creator']);return _0x2862a9['creator']&&_0x1802cb['unshift'](_0x2862a9['creator']),_0x1802cb['map'](_0x464764=>new oi(_0x3b2c0f,_0x464764,_0x464764==_0x2862a9['creator']));}(_0x4d4ed2,_0x18cd89);this['id']=_0x18cd89['id'],this['_revision']=_0x18cd89,this['_requireRevisionName']=_0x3abae4,this['bind']('name','createdAt')['to'](_0x18cd89),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x505b7e=>{return _0x389dca=_0x4d4ed2['uiLanguage'],(_0x2479e5=_0x505b7e)['toLocaleDateString'](_0x389dca,{'month':'long','day':'numeric'})+',\x20'+_0x2479e5['toLocaleTimeString'](_0x389dca,{'hour':'numeric','minute':'numeric'});var _0x389dca,_0x2479e5;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new at(_0x4d4ed2,_0x3243f8),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0xbb80b8=>_0xbb80b8||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x30e604,_0x2a7fa8)=>_0x30e604&&_0x2a7fa8),this['revisionActionsView']=_0x3447d3&&_0x3447d3['length']?ai(this,_0x3447d3):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x1d6267['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x1d6267['if']('isEnabled','ck-disabled',_0x279ca0=>!_0x279ca0),_0x1d6267['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x1d6267['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x1d6267['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':_0x1d6267['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':_0x1748bd}]},this['revisionActionsView']],'on':{'click':_0x1d6267['to'](_0xebfbcf=>{_0xebfbcf['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x29ca72=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x29ca72,'change',()=>{this['_requireRevisionName']&&!_0x29ca72['value']||this['fire']('setName',{'id':this['id'],'name':_0x29ca72['value']}),_0x29ca72['value']||(_0x29ca72['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function ti(_0x386ac4,_0x5b0a64){const _0x561253=_0x4f2601['fromJSDate'](_0x386ac4)['setLocale'](_0x5b0a64),_0x425162=_0x4f2601['local'](),_0x409b55=_0x425162['minus']({'days':0x1})['startOf']('day');let _0x22fcbe,_0x328a32;return _0x561253['hasSame'](_0x425162,'day')?(_0x22fcbe=_0x561253['startOf']('day')['toJSDate'](),_0x328a32=_0x561253['toRelativeCalendar']()):_0x561253['hasSame'](_0x409b55,'day')?(_0x22fcbe=_0x409b55['toJSDate'](),_0x328a32=_0x561253['toRelativeCalendar']()):_0x561253['hasSame'](_0x425162,'week')?(_0x22fcbe=_0x561253['startOf']('week')['toJSDate'](),_0x328a32=_0x561253['weekdayLong']||''):_0x561253['hasSame'](_0x425162,'year')?(_0x22fcbe=_0x561253['startOf']('month')['toJSDate'](),_0x328a32=_0x561253['monthLong']||''):(_0x22fcbe=_0x561253['startOf']('year')['toJSDate'](),_0x328a32=String(_0x561253['year'])),{'startDate':_0x22fcbe,'localizedPeriodName':_0x328a32};}class ei extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x59d586,_0x2a9191,_0x1ffe21,_0x51f1fd){super(_0x59d586);const _0x4308bc=ti(_0x2a9191,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x2a9191,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x1ffe21,this['_requireRevisionName']=_0x51f1fd,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':_0x4308bc}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x3cd4ff){const _0x41cfeb=new si(this['locale'],_0x3cd4ff,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x41cfeb);}['removeRevision'](_0x3d102a){const _0x206349=this['revisionViews']['find'](_0x1f4e5d=>_0x1f4e5d['id']===_0x3d102a['id']);this['revisionViews']['remove'](_0x206349);}}class cs extends ts{constructor(_0x26a12c){super(_0x26a12c);const _0x1abf42=new _0x1cb45c();_0x1abf42['content']=_0x36a0df,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x1abf42,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[g(_0x26a12c,'Revision\x20history')]}]});}}class ii extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x40c7ad,_0x438433,_0x35cff9,_0x346bda){super(_0x40c7ad);const _0xa972c1=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x438433,this['_revisionActions']=_0x35cff9,this['_requireRevisionName']=_0x346bda,this['on']('select',(_0x38e23b,_0x5e043a)=>{this['fire']('revisionSelected',_0x5e043a);}),this['on']('setName',(_0x37c3b6,_0x117f8e)=>{this['fire']('revisionSetName',_0x117f8e);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new cs(_0x40c7ad),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0xa972c1['if']('isEnabled','ck-disabled',_0x252262=>!_0x252262)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0xddbfdf of this['_revisions'])this['_addRevision'](_0xddbfdf);this['_revisions']['on']('add',(_0x3e379b,_0x3ea61e)=>{this['_addRevision'](_0x3ea61e);}),this['_revisions']['on']('remove',(_0x19fab1,_0x270c5d)=>{this['_removeRevision'](_0x270c5d);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x17f8b3=>_0x17f8b3['revisionViews']['map'](_0x1ee954=>_0x1ee954))['flat']();}['selectRevision'](_0x5dc1ed){for(const _0x128c40 of this['revisionViews'])_0x5dc1ed&&_0x5dc1ed['id']===_0x128c40['id']?_0x128c40['select']():_0x128c40['deselect']();}['highlightRevisions'](_0x3956b8){for(const _0x6fc129 of this['revisionViews'])_0x3956b8['some'](({id:_0x3f7089})=>_0x3f7089===_0x6fc129['id'])?_0x6fc129['highlight']():_0x6fc129['unhighlight']();}['_addRevision'](_0xf9a5d2){const _0x1367a7=ti(_0xf9a5d2['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x469964=this['timePeriodViews']['get'](0x0);_0x469964&&_0x469964['startDate']['getTime']()===_0x1367a7['getTime']()||(_0x469964=new ei(this['locale'],_0x1367a7,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x469964)),_0x469964['addRevision'](_0xf9a5d2);}['_removeRevision'](_0x392fd6){const _0x144cf8=ti(_0x392fd6['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x144cf8)['removeRevision'](_0x392fd6);}['_getTimePeriodViewByStartDate'](_0x4a290c){return this['timePeriodViews']['find'](_0x3a299f=>_0x3a299f['startDate']['getTime']()===_0x4a290c['getTime']());}}class d extends _0x569b2d{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
27
27
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
|
-
pt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m];}constructor(
|
|
29
|
-
_0x5380ba(_0x17449b){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x17cdb8,_0x5113cb){super(_0x5113cb),this['sourceElement']=_0x17cdb8,this['model']['document']['createRoot']();const _0x2ca1a3=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x2ca1a3);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x373ab7,_0x1f02c0){const _0x34807c=new this(_0x373ab7,_0x1f02c0);return await _0x34807c['initPlugins'](),await _0x34807c['ui']['init'](_0x373ab7),await _0x34807c['data']['init'](_0x34807c['config']['get']('initialData')||''),_0x34807c['fire']('ready'),_0x34807c;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class _t extends _0x443a46{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4e9263){function _0xd7e19b(_0x22d004){return _0x22d004['map'](_0x472d9b=>String['fromCharCode'](_0x472d9b))['join']('');}super(_0x4e9263),this['result']='end',_0x4e9263[_0xd7e19b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xd7e19b([0x76,0x69,0x65,0x77])][_0xd7e19b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xd7e19b([0x61,0x75,0x74,0x6f]),_0x4e9263[_0xd7e19b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0xd7e19b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xd7e19b([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0xd7e19b([0x73,0x74,0x61,0x74,0x75,0x73])]:_0xd7e19b([0x6f,0x6b])});}}class k extends _0x443a46{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x2b8718){if(super(_0x2b8718),!this['editor']['config']['get']('revisionHistory'))throw new _0x5b4da3('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x40b1f5=>this['_showRevisionViewer']({..._0x40b1f5,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x464b2d=>this['_closeRevisionViewer'](_0x464b2d)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x40f411=>this['_restoreRevision'](_0x40f411)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x1855f0){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x1855f0;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x20bbdb){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x20bbdb);}['getRevision'](_0x32376c){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x32376c);}['getRevisions'](_0x33e259){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x33e259||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x7ae693=this['editor'],_0x8ad4b9=_0x2915b1(_0x7ae693,p),_0x14cf6f=_0x7ae693['plugins']['get']('RevisionTracker'),_0x34d79a=_0x7ae693['plugins']['get']('Users')['users'];return _0x8ad4b9['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x8ad4b9['lazyRoots'],(_0x8ad4b9['plugins']['push'](_t,m,R,class extends _0x443a46{static get['requires'](){return[m,'Users'];}['init'](){const _0x586db3=this['editor']['plugins']['get']('Users');for(const _0x59a6ef of _0x34d79a)_0x59a6ef['isAnonymous']||_0x586db3['getUser'](_0x59a6ef['id'])||_0x586db3['addUser'](_0x59a6ef);const _0x13bbef=_0x14cf6f['repository']['getRevisions']();let _0x126b79=null;const _0x5db64f=this['editor']['plugins']['get']('RevisionViewer');_0x5db64f['adapter']=_0x14cf6f['adapter'],_0x5db64f['bind']('isEnabled')['to'](_0x14cf6f),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x7ae693,'isReadOnly',_0x6122c4=>!_0x6122c4);for(const _0x2df271 of _0x13bbef){const _0x2cdbdc=null===_0x2df271['creator'];if(_0x2cdbdc&&_0x2df271['toVersion']===_0x2df271['fromVersion'])continue;const _0x11af0c=_0x2df271['toJSON']();_0x5db64f['addRevisionData'](_0x11af0c,(_0x5f1ad1,_0xe798a8,_0x6f50d7)=>{if(_0x2cdbdc){if(_0x126b79)_0x126b79['_update'](_0x5f1ad1,_0xe798a8);else{if(!_0xe798a8){const _0x323224=_0x6f50d7['toJSON']();_0x323224['id']=_0x2a1139(),_0x14cf6f['saveRevision'](_0x323224,_0x6f50d7['toVersion'])['then'](_0x138c11=>{_0x126b79=_0x138c11;});}}}else _0x2df271['_update'](_0x5f1ad1,_0xe798a8);});}}},d),_0x8ad4b9);}['_enhanceShowRevisionViewerCallback'](){const _0xfe8aaa=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x5db07c=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0xc638bc=this['editor']['plugins']['get']('Autosave');await _0xc638bc['save']();}else await _0x5db07c['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x4b4d2b=this['editor']['plugins']['get']('Dialog');_0x4b4d2b['isOpen']&&_0x4b4d2b['hide']();}const _0xc6df4=this['_getRevisionViewerEditorConfig']();return _0xfe8aaa(_0xc6df4)['then'](_0xddb2a0=>{return(this['_viewerEditor']=_0xddb2a0,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),(this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']='none'),_0xddb2a0);})['catch'](_0x3c9636=>(console['error'](_0x3c9636),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x3e542d=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x3e542d(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0xce5b6e=this['editor']['plugins']['get']('Annotations');_0xce5b6e['refreshVisibility'](),_0xce5b6e['refreshPositioning']();}})));}['_showRevisionViewer'](_0xaece20){const _0x31b6d7=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x217f7e=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x25ea5d=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x25ea5d,_0xaece20)['then'](_0x7ed5f7=>(_0x217f7e['style']['display']='block',_0x31b6d7['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x7ed5f7));}['_closeRevisionViewer'](_0x268a9e){const _0xb0c2d9=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0xb0c2d9['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x268a9e['destroy']();}async['_restoreRevision'](_0x2f7aa9){const _0x1651aa=this['editor'],_0x146e8c=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x40cccc=_0x1651aa['plugins']['get']('RevisionTracker'),_0x4b5b87=_0x1651aa['plugins']['get']('RevisionHistoryUtils'),_0x193b27=_0x146e8c['repository']['getRevision'](_0x2f7aa9);let _0x5f2d9e,_0x3d4d90,_0x439948;try{await _0x4b5b87['loadRevisionData'](_0x193b27,this['adapter']),_0x5f2d9e=_0x4b5b87['getRevisionDocumentData'](_0x193b27),_0x3d4d90=_0x4b5b87['getRevisionRootsAttributes'](_0x193b27);}catch(_0xfd989a){return void console['error'](_0xfd989a);}_0x1651aa['model']['change'](_0x3a6b65=>{for(const _0x22e7b7 of Array['from'](_0x1651aa['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x3a6b65['removeMarker'](_0x22e7b7);}),_0x146e8c['isReady']=!0x1,_0x1651aa['model']['enqueueChange'](_0xd14424=>{_0xd14424['setSelection'](null),_0xd14424['removeSelectionAttribute'](_0x1651aa['model']['document']['selection']['getAttributeKeys']());const _0x395e93=Object['keys'](_0x5f2d9e);for(const _0x32bb00 of _0x1651aa['model']['document']['roots'])'$graveyard'!=_0x32bb00['rootName']&&_0x32bb00['isAttached']()&&!_0x395e93['includes'](_0x32bb00['rootName'])&&_0xd14424['detachRoot'](_0x32bb00);for(const _0x18160d of _0x395e93){let _0xeae490=_0x1651aa['model']['document']['getRoot'](_0x18160d);_0xeae490&&_0xeae490['isAttached']()||(_0xeae490=_0xd14424['addRoot'](_0x18160d));const _0x316d2b=_0x3d4d90[_0x18160d],_0x3a22d0=Object['keys'](_0x316d2b),_0x57b1b6=_0x5f2d9e[_0x18160d];for(const _0x821a1f of _0xeae490['getAttributeKeys']())_0x3a22d0['includes'](_0x821a1f)||_0xd14424['removeAttribute'](_0x821a1f,_0xeae490);for(const _0x22dc25 of _0x3a22d0)_0xd14424['setAttribute'](_0x22dc25,_0x3d4d90[_0x18160d][_0x22dc25],_0xeae490);_0xd14424['remove'](_0xd14424['createRangeIn'](_0xeae490)),_0xd14424['insert'](_0x1651aa['data']['parse'](_0x57b1b6,_0xeae490),_0xeae490,0x0);}});const _0x1db1ac=g(_0x1651aa['locale'],'Restored');if(_0x193b27['name'])_0x439948=-0x1==_0x193b27['name']['indexOf'](_0x1db1ac)?_0x1db1ac+':\x20'+_0x193b27['name']:_0x193b27['name'];else _0x439948=_0x1db1ac+':\x20'+(_0x193b27['createdAt']['toLocaleDateString'](_0x1651aa['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x193b27['createdAt']['toLocaleTimeString'](_0x1651aa['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x40cccc['saveRevision']({'name':_0x439948}),_0x146e8c['isReady']=!0x0,_0x1651aa['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,V as RevisionHistoryUtils,u as RevisionTracker,m as RevisionViewer,w as RevisionViewerEditor,ge as RevisionViewerLoadingOverlay,R as RevisionViewerUI,I as RevisionsRepository,d as RevisionsSidebar};
|
|
28
|
+
pt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m];}constructor(_0x10e21d){super(_0x10e21d),this['_revisionViewer']=_0x10e21d['plugins']['get'](m),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x23c83b=this['_revisionsRepository']['_revisions'],_0xaad543=this['_createRevisionActions'](),_0x2ca1b2=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ii(this['editor']['locale'],_0x23c83b,_0xaad543,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',(_0x1e8139,_0x118070)=>{_0x118070['revisionViews']['on']('add',(_0x584f46,_0x59bdd1)=>{_0x59bdd1['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)),_0x2ca1b2['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0xfb38db=this['_revisionsRepository']['getRevision'](0x0);if(_0xfb38db){const _0x3b5b55=this['_revisionsRepository']['getEarlierVisibleRevision'](_0xfb38db['id']);this['_revisionViewer']['compare'](_0xfb38db,_0x3b5b55);}}['_handleRevisionSelected'](_0x3994cb,_0x4a603e){const _0xaa7494=this['_revisionsRepository']['getRevision'](_0x4a603e['id']),_0x3fa675=this['_revisionsRepository']['getEarlierVisibleRevision'](_0xaa7494['id']);this['_revisionViewer']['compare'](_0xaa7494,_0x3fa675);}['_handleRevisionSetName'](_0x435c1c,_0xe000fb){this['_revisionsRepository']['getRevision'](_0xe000fb['id'])['setName'](_0xe000fb['name']);}['_handleDiffChange'](_0x413f45,_0x3de9f7,_0x503880){const _0x3aa582=this['_revisionsRepository']['getRevisionsInDiff'](_0x503880);_0x3aa582['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x3aa582),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x3aa582[0x0]));}['_createRevisionActions'](){const _0x2c02df=this['editor'],_0x11035b=d['availableRevisionActions'],_0x1777ac=_0x2c02df['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x1777ac['length'])return _0x1777ac['map'](_0x19e7f3=>{const _0x278c84='string'==typeof _0x19e7f3?Object['assign']({},_0x11035b[_0x19e7f3]):_0x19e7f3;return _0x278c84['action']=_0x278c84['action']['bind'](this,_0x2c02df),_0x278c84['isVisible']&&(_0x278c84['isVisible']=_0x278c84['isVisible']['bind'](this,_0x2c02df)),_0x278c84;});}}function pt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x1d8b76},_0xb07c68)=>{const _0xa29c6=_0x1d8b76['get'](m),_0x1774ec=_0xa29c6['repository'];let _0x49b207=_0xa29c6['diff']['newRevisionId'],_0x278658=_0xb07c68['id'];_0x1774ec['getIndex'](_0x49b207)>_0x1774ec['getIndex'](_0x278658)&&([_0x49b207,_0x278658]=[_0x278658,_0x49b207]),_0xa29c6['compare'](_0x49b207,_0x278658);},'isVisible':({plugins:_0x5e6718},_0x3aed36)=>{const _0x2c380d=_0x5e6718['get'](m);return!(_0x2c380d['repository']['getRevisionsInDiff'](_0x2c380d['diff'])['length']>0x2)&&!_0x3aed36['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x4fb7f5,{id:_0x3ca327})=>{_0x4fb7f5['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x3ca327);},'isVisible':({plugins:_0x2fe05b},_0x5c877e)=>!!_0x2fe05b['get'](m)['repository']['getLaterVisibleRevision'](_0x5c877e['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x417346},{id:_0x1e3b90,revisionNameView:_0x3daf2f})=>{const _0x4a991f=_0x417346['get'](m),_0x2f5f78=_0x4a991f['repository']['getEarlierVisibleRevision'](_0x1e3b90);_0x4a991f['compare'](_0x1e3b90,_0x2f5f78),_0x3daf2f['focus'](),_0x3daf2f['fieldView']['select']();}}};}class tt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x570570,_0x589619){super(_0x570570),this['_view']=_0x589619,this['_toolbarConfig']=et(_0x570570['config']['get']('toolbar')),this['_elementReplacer']=new ot();}get['element'](){return this['view']['element'];}['init'](_0x4b3b23){const _0x51f545=this['editor'],_0xc3fa88=this['view'],_0x3f841d=_0x51f545['editing']['view'],_0x4407ab=_0xc3fa88['editable'],_0x354312=_0x3f841d['document']['getRoot']();_0x4407ab['name']=_0x354312['rootName'],_0xc3fa88['render']();const _0x5edc62=_0x4407ab['element'];this['setEditableElement'](_0x4407ab['name'],_0x5edc62),_0xc3fa88['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x3f841d['attachDomRoot'](_0x5edc62),this['_elementReplacer']['replace'](_0x4b3b23,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x11a79d=this['view'],_0x3ae122=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x3ae122['detachDomRoot'](_0x11a79d['editable']['name']),_0x11a79d['destroy']();}['_initToolbar'](){const _0x246eda=this['view'];_0x246eda['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x246eda['stickyPanel']['limiterElement']=_0x246eda['element'],_0x246eda['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x5aad9c})=>_0x5aad9c),_0x246eda['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x246eda['toolbar']);}}class it extends rt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x4567dc,_0x497b37,_0x12aa0e={}){super(_0x4567dc),this['stickyPanel']=new ht(_0x4567dc),this['toolbar']=new dt(_0x4567dc,{'shouldGroupWhenFull':_0x12aa0e['shouldToolbarGroupWhenFull']}),this['_editable']=new ct(_0x4567dc,_0x497b37);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class w extends/* #__PURE__ -- @preserve */
|
|
29
|
+
_0x446a9a(_0x2d9f85){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x2ef7d6,_0xf9202c){super(_0xf9202c),this['sourceElement']=_0x2ef7d6,this['model']['document']['createRoot']();const _0x4ac68f=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x4ac68f);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x274f1d,_0x5cc034){const _0x31c4d1=new this(_0x274f1d,_0x5cc034);return await _0x31c4d1['initPlugins'](),await _0x31c4d1['ui']['init'](_0x274f1d),await _0x31c4d1['data']['init'](_0x31c4d1['config']['get']('initialData')||''),_0x31c4d1['fire']('ready'),_0x31c4d1;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class _t extends _0x569b2d{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x152976){function _0x1a9d3b(_0x4c49ed){return _0x4c49ed['map'](_0x47b0ff=>String['fromCharCode'](_0x47b0ff))['join']('');}super(_0x152976),this['result']='end',_0x152976[_0x1a9d3b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1a9d3b([0x76,0x69,0x65,0x77])][_0x1a9d3b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1a9d3b([0x61,0x75,0x74,0x6f]),_0x152976[_0x1a9d3b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x1a9d3b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1a9d3b([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x1a9d3b([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x1a9d3b([0x6f,0x6b])});}}class k extends _0x569b2d{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x42dd5e){if(super(_0x42dd5e),!this['editor']['config']['get']('revisionHistory'))throw new _0x10de98('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x4e6bb9=>this['_showRevisionViewer']({..._0x4e6bb9,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0xb7b56c=>this['_closeRevisionViewer'](_0xb7b56c)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x430ec5=>this['_restoreRevision'](_0x430ec5)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x3e5e3c){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x3e5e3c;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x102aeb){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x102aeb);}['getRevision'](_0xfe193a){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0xfe193a);}['getRevisions'](_0x3d7000){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x3d7000||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x360731=this['editor'],_0x4dfff3=_0x4c78ca(_0x360731,p),_0x349f78=_0x360731['plugins']['get']('RevisionTracker'),_0x2e2f1c=_0x360731['plugins']['get']('Users')['users'];return _0x4dfff3['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x4dfff3['lazyRoots'],(_0x4dfff3['plugins']['push'](_t,m,R,class extends _0x569b2d{static get['requires'](){return[m,'Users'];}['init'](){const _0x1ebf57=this['editor']['plugins']['get']('Users');for(const _0x4cf2e1 of _0x2e2f1c)_0x4cf2e1['isAnonymous']||_0x1ebf57['getUser'](_0x4cf2e1['id'])||_0x1ebf57['addUser'](_0x4cf2e1);const _0x9f6c9b=_0x349f78['repository']['getRevisions']();let _0x1616d2=null;const _0x1d3524=this['editor']['plugins']['get']('RevisionViewer');_0x1d3524['adapter']=_0x349f78['adapter'],_0x1d3524['bind']('isEnabled')['to'](_0x349f78),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x360731,'isReadOnly',_0x2d0872=>!_0x2d0872);for(const _0x11d990 of _0x9f6c9b){const _0x377131=null===_0x11d990['creator'];if(_0x377131&&_0x11d990['toVersion']===_0x11d990['fromVersion'])continue;const _0x189e9a=_0x11d990['toJSON']();_0x1d3524['addRevisionData'](_0x189e9a,(_0x4c9d5d,_0x4ae057,_0x3f8852)=>{if(_0x377131){if(_0x1616d2)_0x1616d2['_update'](_0x4c9d5d,_0x4ae057);else{if(!_0x4ae057){const _0x15371b=_0x3f8852['toJSON']();_0x15371b['id']=_0x21b6c1(),_0x349f78['saveRevision'](_0x15371b,_0x3f8852['toVersion'])['then'](_0x10cf77=>{_0x1616d2=_0x10cf77;});}}}else _0x11d990['_update'](_0x4c9d5d,_0x4ae057);});}}},d),_0x4dfff3);}['_enhanceShowRevisionViewerCallback'](){const _0x4c7bc2=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x36d1d8=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0xfb2a09=this['editor']['plugins']['get']('Autosave');await _0xfb2a09['save']();}else await _0x36d1d8['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x54d368=this['editor']['plugins']['get']('Dialog');_0x54d368['isOpen']&&_0x54d368['hide']();}const _0x27ff36=this['_getRevisionViewerEditorConfig']();return _0x4c7bc2(_0x27ff36)['then'](_0x551051=>{return(this['_viewerEditor']=_0x551051,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),(this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']='none'),_0x551051);})['catch'](_0x3f238c=>(console['error'](_0x3f238c),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x2e56e7=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x2e56e7(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x2c5a61=this['editor']['plugins']['get']('Annotations');_0x2c5a61['refreshVisibility'](),_0x2c5a61['refreshPositioning']();}})));}['_showRevisionViewer'](_0x534620){const _0x4321e0=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x5f4aec=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x39c9dc=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x39c9dc,_0x534620)['then'](_0x3515c1=>(_0x5f4aec['style']['display']='block',_0x4321e0['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x3515c1));}['_closeRevisionViewer'](_0x1f0f25){const _0x242ab7=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x242ab7['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x1f0f25['destroy']();}async['_restoreRevision'](_0x585c59){const _0x8cd57a=this['editor'],_0x44e175=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x46bb1f=_0x8cd57a['plugins']['get']('RevisionTracker'),_0xcbe2a3=_0x8cd57a['plugins']['get']('RevisionHistoryUtils'),_0x3af602=_0x44e175['repository']['getRevision'](_0x585c59);let _0x1fb9c9,_0x70c1d8,_0xd5f7df;try{await _0xcbe2a3['loadRevisionData'](_0x3af602,this['adapter']),_0x1fb9c9=_0xcbe2a3['getRevisionDocumentData'](_0x3af602),_0x70c1d8=_0xcbe2a3['getRevisionRootsAttributes'](_0x3af602);}catch(_0x230973){return void console['error'](_0x230973);}_0x8cd57a['model']['change'](_0x33b771=>{for(const _0x1a9173 of Array['from'](_0x8cd57a['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x33b771['removeMarker'](_0x1a9173);}),_0x44e175['isReady']=!0x1,_0x8cd57a['model']['enqueueChange'](_0x13d477=>{_0x13d477['setSelection'](null),_0x13d477['removeSelectionAttribute'](_0x8cd57a['model']['document']['selection']['getAttributeKeys']());const _0x1efe5b=Object['keys'](_0x1fb9c9);for(const _0x2db1f8 of _0x8cd57a['model']['document']['roots'])'$graveyard'!=_0x2db1f8['rootName']&&_0x2db1f8['isAttached']()&&!_0x1efe5b['includes'](_0x2db1f8['rootName'])&&_0x13d477['detachRoot'](_0x2db1f8);for(const _0x1132ef of _0x1efe5b){let _0x5dcb5e=_0x8cd57a['model']['document']['getRoot'](_0x1132ef);_0x5dcb5e&&_0x5dcb5e['isAttached']()||(_0x5dcb5e=_0x13d477['addRoot'](_0x1132ef));const _0x57ec8e=_0x70c1d8[_0x1132ef],_0xf59993=Object['keys'](_0x57ec8e),_0x4a584a=_0x1fb9c9[_0x1132ef];for(const _0x2337e4 of _0x5dcb5e['getAttributeKeys']())_0xf59993['includes'](_0x2337e4)||_0x13d477['removeAttribute'](_0x2337e4,_0x5dcb5e);for(const _0x13b95a of _0xf59993)_0x13d477['setAttribute'](_0x13b95a,_0x70c1d8[_0x1132ef][_0x13b95a],_0x5dcb5e);_0x13d477['remove'](_0x13d477['createRangeIn'](_0x5dcb5e)),_0x13d477['insert'](_0x8cd57a['data']['parse'](_0x4a584a,_0x5dcb5e),_0x5dcb5e,0x0);}});const _0x4769d0=g(_0x8cd57a['locale'],'Restored');if(_0x3af602['name'])_0xd5f7df=-0x1==_0x3af602['name']['indexOf'](_0x4769d0)?_0x4769d0+':\x20'+_0x3af602['name']:_0x3af602['name'];else _0xd5f7df=_0x4769d0+':\x20'+(_0x3af602['createdAt']['toLocaleDateString'](_0x8cd57a['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x3af602['createdAt']['toLocaleTimeString'](_0x8cd57a['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x46bb1f['saveRevision']({'name':_0xd5f7df}),_0x44e175['isReady']=!0x0,_0x8cd57a['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,V as RevisionHistoryUtils,u as RevisionTracker,m as RevisionViewer,w as RevisionViewerEditor,ge as RevisionViewerLoadingOverlay,R as RevisionViewerUI,I as RevisionsRepository,d as RevisionsSidebar};
|