@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20250418.0 → 0.0.0-nightly-20250419.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/dist/index.js +6 -6
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +11 -11
- package/src/changeitem.js +2 -2
- package/src/editor/revisionviewereditor.js +2 -2
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/index.js +1 -1
- package/src/revision.js +2 -2
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionhistoryutils.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +2 -2
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ObservableMixin as
|
|
24
|
-
_0x540212(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x20bd02){super(),this['id']=_0x20bd02['id']||_0x5d960a(),this['creator']=_0x20bd02['creator']||null,this['authors']=_0x20bd02['authors']||[],this['diffData']=_0x20bd02['diffData']||null,this['toVersion']=_0x20bd02['toVersion']||0x0,this['fromVersion']=_0x20bd02['fromVersion']||0x0,this['set']('name',_0x20bd02['name']||''),this['set']('createdAt',_0x20bd02['createdAt']||new Date()),this['set']('attributes',_0x20bd02['attributes']||{});}['setName'](_0x24ffb6){this['_update']({'name':_0x24ffb6});}['setAttribute'](_0x386101,_0x38c155){const _0x1bd830=_0x4fdf13(this['attributes']);_0x3a2bd1(_0x1bd830,_0x386101,_0x38c155),this['_update']({'attributes':_0x1bd830});}['removeAttribute'](_0x1010a3){const _0x538719=_0x4fdf13(this['attributes']);_0x5f4dc0(_0x538719,_0x1010a3),this['_update']({'attributes':_0x538719});}['_update'](_0x52fb14,_0xae44a3=!0x1){let _0x767c89=!0x1;const _0x1bd33b={'id':this['id']},_0x2bbee2=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0xe39271 of _0x2bbee2){const _0x52039a=_0x52fb14[_0xe39271];void 0x0!==_0x52039a&&_0x52039a!==this[_0xe39271]&&(this[_0xe39271]=_0x52039a,_0x1bd33b[_0xe39271]=_0x52039a,_0x767c89=!0x0);}_0x767c89&&(_0x1bd33b['authors']&&(_0x1bd33b['authorsIds']=_0x1bd33b['authors']['map'](_0x46377d=>_0x46377d['id']),delete _0x1bd33b['authors']),this['fire']('_update',_0x1bd33b,_0xae44a3));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x4392a7=>_0x4392a7['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x5f2429{['_revisions'];static get['requires'](){return[_0x3be340];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x412eef){super(_0x412eef),this['_revisions']=new _0x47a699();}['afterInit'](){!async function(_0x572f1e){const _0x3adefb=_0x1ab37d([0x6a,0x6c,0x79,0x75,0x35,0x31,0x49,0x6e,0x68,0x64,0x73,0x5a,0x4c,0x6f,0x53,0x62,0x61,0x69,0x77,0x34,0x43,0x66,0x4b,0x59,0x57,0x6b,0x4e,0x76,0x67,0x7a,0x55,0x78,0x4f,0x63,0x45,0x52,0x71,0x47,0x50,0x56,0x37,0x39,0x44,0x6d,0x48,0x30,0x36,0x38,0x65,0x42,0x58,0x4a,0x54,0x4d,0x41,0x74,0x70,0x33,0x51,0x46,0x72,0x32]),_0x564b80=0xeb829,_0x470374=0x3754aa22,_0x47e8fd=0x3753cf42^_0x470374,_0x5bc186=window[_0x1ab37d([0x44,0x61,0x74,0x65])][_0x1ab37d([0x6e,0x6f,0x77])](),_0x582407=_0x572f1e[_0x1ab37d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1975f0=new window[(_0x1ab37d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5ab451=>{_0x582407[_0x1ab37d([0x6f,0x6e,0x63,0x65])](_0x1ab37d([0x72,0x65,0x61,0x64,0x79]),_0x5ab451);}),_0x25cd32={[_0x1ab37d([0x6b,0x74,0x79])]:_0x1ab37d([0x45,0x43]),[_0x1ab37d([0x75,0x73,0x65])]:_0x1ab37d([0x73,0x69,0x67]),[_0x1ab37d([0x63,0x72,0x76])]:_0x1ab37d([0x50,0x2d,0x32,0x35,0x36]),[_0x1ab37d([0x78])]:_0x1ab37d([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]),[_0x1ab37d([0x79])]:_0x1ab37d([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]),[_0x1ab37d([0x61,0x6c,0x67])]:_0x1ab37d([0x45,0x53,0x32,0x35,0x36])},_0x5a566c=_0x582407[_0x1ab37d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1ab37d([0x67,0x65,0x74])](_0x1ab37d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4142a6(){let _0x3cf404,_0x22eb45=null,_0x6f02d2=null;try{if(_0x5a566c==_0x1ab37d([0x47,0x50,0x4c]))return _0x1ab37d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3cf404=_0x4b779f(),!_0x3cf404)return _0x1ab37d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3cf404[_0x1ab37d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x6f02d2=_0x44d414(_0x3cf404[_0x1ab37d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3cf404[_0x1ab37d([0x6a,0x74,0x69])])),await _0x3c2eec()?_0x2a2b57()?_0x1eccb8()?_0x1ab37d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1c70f4()?(_0x3cf404[_0x1ab37d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1ab37d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x22eb45=_0x13df19(_0x1ab37d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3cf404[_0x1ab37d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1ab37d([0x74,0x72,0x69,0x61,0x6c])&&(_0x22eb45=_0x13df19(_0x1ab37d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x37d0dc()):_0x1ab37d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1ab37d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1ab37d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x1ff35b){return _0x1ab37d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1eccb8(){const _0x4e87a8=[_0x1ab37d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1ab37d([0x74,0x72,0x69,0x61,0x6c])][_0x1ab37d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3cf404[_0x1ab37d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5bc186/0x3e8:0xe10*_0x47e8fd;return _0x3cf404[_0x1ab37d([0x65,0x78,0x70])]<_0x4e87a8;}function _0x2a2b57(){const _0x56432a=_0x3cf404[_0x1ab37d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x56432a)return!0x1;if(_0x56432a[_0x1ab37d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ab37d([0x2a])))return!0x0;if(_0x56432a[_0x1ab37d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ab37d([0x52,0x48])))return!0x0;if(_0x56432a[_0x1ab37d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ab37d([0x52,0x52,0x48]))){if(_0x253468())return!0x0;if(_0x82b475()||_0x3238f7())return!0x0;}return!0x1;}function _0x1c70f4(){const _0x4360df=_0x3cf404[_0x1ab37d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4360df||0x0==_0x4360df[_0x1ab37d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5f29f1}=new URL(window[_0x1ab37d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4360df[_0x1ab37d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f29f1))return!0x0;const _0x41b6c8=_0x5f29f1[_0x1ab37d([0x73,0x70,0x6c,0x69,0x74])](_0x1ab37d([0x2e]));return _0x4360df[_0x1ab37d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x35204b=>_0x35204b[_0x1ab37d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ab37d([0x2a])))[_0x1ab37d([0x6d,0x61,0x70])](_0x13eee9=>_0x13eee9[_0x1ab37d([0x73,0x70,0x6c,0x69,0x74])](_0x1ab37d([0x2e])))[_0x1ab37d([0x73,0x6f,0x6d,0x65])](_0x38b37a=>_0x41b6c8[_0x1ab37d([0x65,0x76,0x65,0x72,0x79])]((_0x5e67ee,_0xa11172)=>_0x38b37a[_0xa11172]===_0x5e67ee||_0x38b37a[_0xa11172]===_0x1ab37d([0x2a])));}function _0x37d0dc(){return _0x22eb45&&_0x6f02d2?new window[(_0x1ab37d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x415b0a,_0x374b7b)=>{_0x22eb45[_0x1ab37d([0x74,0x68,0x65,0x6e])](_0x415b0a,_0x374b7b),_0x6f02d2[_0x1ab37d([0x74,0x68,0x65,0x6e])](_0x4c317b=>{_0x4c317b!=_0x1ab37d([0x56,0x61,0x6c,0x69,0x64])&&_0x415b0a(_0x4c317b);},_0x374b7b);}):_0x22eb45||_0x6f02d2||_0x1ab37d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x44d414(_0xe3e193,_0x510658){return new window[(_0x1ab37d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2fe173=>{if(_0x14ad6f())return _0x2fe173(_0x1ab37d([0x56,0x61,0x6c,0x69,0x64]));_0x577d16(),_0x582407[_0x1ab37d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1ab37d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3c9976=!0x1;const _0x22741a=_0x5d960a();function _0x4dd2e7(_0x2bdfe4){return!!_0x2bdfe4&&(typeof _0x2bdfe4===_0x1ab37d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2bdfe4===_0x1ab37d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2bdfe4[_0x1ab37d([0x74,0x68,0x65,0x6e])]===_0x1ab37d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2bdfe4[_0x1ab37d([0x63,0x61,0x74,0x63,0x68])]===_0x1ab37d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x424b78(_0xbb3749){_0x56019b(_0xbb3749)[_0x1ab37d([0x74,0x68,0x65,0x6e])](_0x5ab09b=>{if(!_0x5ab09b||_0x5ab09b[_0x1ab37d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1ab37d([0x6f,0x6b]))return _0x1ab37d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2c4f91(_0x299d43(_0x22741a+_0x510658))!=_0x5ab09b[_0x1ab37d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1ab37d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1ab37d([0x56,0x61,0x6c,0x69,0x64]);})[_0x1ab37d([0x74,0x68,0x65,0x6e])](_0x2e7923=>(_0x2fa3af(),_0x2e7923),()=>{const _0x33c719=_0x1afb0e();return null==_0x33c719?(_0x2fa3af(),_0x1ab37d([0x56,0x61,0x6c,0x69,0x64])):_0x1ab37d(_0x5bc186-_0x33c719>(0x13582e22^_0x470374)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1ab37d([0x74,0x68,0x65,0x6e])](_0x2fe173)[_0x1ab37d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2fe173(_0x1ab37d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x579294=0x376244a2^_0x470374;function _0x2fa3af(){const _0x53d438=_0x1ab37d([0x6c,0x6c,0x63,0x74,0x2d])+_0x2c4f91(_0x299d43(_0xe3e193)),_0x42ba64=_0xe62ce8(_0x2c4f91(window[_0x1ab37d([0x4d,0x61,0x74,0x68])][_0x1ab37d([0x63,0x65,0x69,0x6c])](_0x5bc186/_0x579294)));window[_0x1ab37d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1ab37d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x53d438,_0x42ba64);}function _0x1afb0e(){const _0x16f656=_0x1ab37d([0x6c,0x6c,0x63,0x74,0x2d])+_0x2c4f91(_0x299d43(_0xe3e193)),_0x4c7e4f=window[_0x1ab37d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1ab37d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x16f656);return _0x4c7e4f?window[_0x1ab37d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xe62ce8(_0x4c7e4f),0x10)*_0x579294:null;}function _0x56019b(_0x224f2e){return new window[(_0x1ab37d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x52705c,_0x58faa2)=>{_0x224f2e[_0x1ab37d([0x74,0x68,0x65,0x6e])](_0x52705c,_0x58faa2),window[_0x1ab37d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x58faa2,0x37557ee2^_0x470374);});}}_0x582407[_0x1ab37d([0x6f,0x6e])](_0x1ab37d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x40fc47,_0x5c67f7)=>{if(_0x5c67f7[0x0]!=_0xe3e193)return _0x2fe173(_0x1ab37d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5c67f7[0x1]={..._0x5c67f7[0x1],[_0x1ab37d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x22741a};},{[_0x1ab37d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1ab37d([0x68,0x69,0x67,0x68])}),_0x582407[_0x1ab37d([0x6f,0x6e])](_0x1ab37d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x584a9e=>{_0x4dd2e7(_0x584a9e[_0x1ab37d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3c9976=!0x0,_0x424b78(_0x584a9e[_0x1ab37d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1ab37d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1ab37d([0x6c,0x6f,0x77])}),_0x1975f0[_0x1ab37d([0x74,0x68,0x65,0x6e])](()=>{_0x3c9976||_0x2fe173(_0x1ab37d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x14ad6f(){return _0x582407[_0x1ab37d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1ab37d([0x76,0x69,0x65,0x77])][_0x1ab37d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1ab37d([0x61,0x75,0x74,0x6f]);}function _0x577d16(){_0x582407[_0x1ab37d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1ab37d([0x76,0x69,0x65,0x77])][_0x1ab37d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1ab37d([0x61,0x75,0x74,0x6f]);}}function _0x13df19(_0x44cda8){const _0x568b38=[new window[(_0x1ab37d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x529b85=>setTimeout(_0x529b85,0x375d94ee^_0x470374)),_0x1975f0[_0x1ab37d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1ab37d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4fe7ef=>{const _0x4fe59=0x3754aa25^_0x470374,_0x41f71d=_0x572f1e[_0x1ab37d([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x4d73e9(){_0x41f71d[_0x1ab37d([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x4fe59&&_0x4fe7ef();}_0x4d73e9(),_0x41f71d[_0x1ab37d([0x6f,0x6e])](_0x1ab37d([0x61,0x64,0x64]),_0x4d73e9);})),new window[(_0x1ab37d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4bf585=>{function _0x6a4173(){for(const _0x2b9be6 in window)if(window[_0x1ab37d([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x1ab37d([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x2b9be6))&&window[_0x2b9be6]==_0x564b80)return _0x4bf585();_0x582407[_0x1ab37d([0x73,0x74,0x61,0x74,0x65])]!=_0x1ab37d([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x1ab37d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x6a4173,0x3754b9aa^_0x470374);}_0x55d5b8(_0x1ab37d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x6a4173();})];return window[_0x1ab37d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1ab37d([0x72,0x61,0x63,0x65])](_0x568b38)[_0x1ab37d([0x74,0x68,0x65,0x6e])](()=>_0x44cda8);}async function _0xa162a8(){if(await _0x1975f0,_0x55d5b8(_0x1ab37d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x1221f8=_0x572f1e[_0x1ab37d([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x185d45=_0x572f1e[_0x1ab37d([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])](_0x1221f8[_0x1ab37d([0x69,0x64])]),_0x9d38fd=_0x5b90a4(_0x1ab37d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x9d38fd[_0x1ab37d([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x1221f8['id'],_0x185d45?_0x185d45['id']:null,!0x0),_0x9d38fd[_0x1ab37d([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x1ab37d([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x9d38fd[_0x1ab37d([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x9d38fd[_0x1ab37d([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x439af3,void(_0x9d38fd[_0x1ab37d([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x439af3);}if(_0x55d5b8(_0x1ab37d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x1ef185=_0x5b90a4(_0x1ab37d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x1ef185[_0x1ab37d([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x1ab37d([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x1ef185[_0x1ab37d([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x1ef185[_0x1ab37d([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x439af3,_0x1ef185[_0x1ab37d([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x439af3;}_0x582407[_0x1ab37d([0x6d,0x6f,0x64,0x65,0x6c])][_0x1ab37d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x439af3,_0x582407[_0x1ab37d([0x6d,0x6f,0x64,0x65,0x6c])][_0x1ab37d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x439af3,_0x582407[_0x1ab37d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1ab37d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x253468(){return _0x55d5b8(_0x1ab37d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x5b90a4(_0x1ab37d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x1ab37d([0x73,0x74,0x61,0x74,0x65])]==_0x1ab37d([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x82b475(){return _0x55d5b8(_0x1ab37d([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 _0x3238f7(){return _0x55d5b8(_0x1ab37d([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x3b4f32(_0x5878d4){const _0x1e12e6=_0x2f17d();_0x582407[_0x1e12e6]=_0x1ab37d([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])+_0x5878d4,_0x5878d4[_0x1ab37d([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x1ab37d([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x2f17d()]=_0x564b80),_0x5878d4!=_0x1ab37d([0x56,0x61,0x6c,0x69,0x64])&&_0xa162a8();}function _0x2f17d(){const _0x2f2ed4=window[_0x1ab37d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1ab37d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1ab37d([0x6e,0x6f,0x77])]())[_0x1ab37d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1ab37d([0x2e]),'');let _0x152a43=_0x1ab37d([0x6a]);for(let _0x36b690=0x0;_0x36b690<_0x2f2ed4[_0x1ab37d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x36b690+=0x2){let _0x13d8c4=window[_0x1ab37d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2f2ed4[_0x1ab37d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x36b690,_0x36b690+0x2));_0x13d8c4>=_0x3adefb[_0x1ab37d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x13d8c4-=_0x3adefb[_0x1ab37d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x152a43+=_0x3adefb[_0x13d8c4];}return _0x152a43;}function _0x4b779f(){const _0x5d3a81=_0x5a566c[_0x1ab37d([0x73,0x70,0x6c,0x69,0x74])](_0x1ab37d([0x2e]));if(0x3!=_0x5d3a81[_0x1ab37d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x117d44(_0x5d3a81[0x1]);function _0x117d44(_0x44c217){const _0x36a512=_0x2afa30(_0x44c217);return _0x36a512&&_0x4375c8()?_0x36a512:null;function _0x4375c8(){const _0x101471=_0x36a512[_0x1ab37d([0x6a,0x74,0x69])],_0x5e3b0f=window[_0x1ab37d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x101471[_0x1ab37d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x101471[_0x1ab37d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x33858d={..._0x36a512,[_0x1ab37d([0x6a,0x74,0x69])]:_0x101471[_0x1ab37d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x101471[_0x1ab37d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x33858d[_0x1ab37d([0x76,0x63])],_0x299d43(_0x33858d)==_0x5e3b0f;}}}async function _0x3c2eec(){let _0xbe835a=!0x0;try{const _0x3f2ce3=_0x5a566c[_0x1ab37d([0x73,0x70,0x6c,0x69,0x74])](_0x1ab37d([0x2e])),[_0x20511f,_0x595077,_0x3d3662]=_0x3f2ce3;return _0x44bdc4(_0x20511f),await _0x4b1f32(_0x20511f,_0x595077,_0x3d3662),_0xbe835a;}catch(_0x1111d6){return!0x1;}function _0x44bdc4(_0x240fde){const _0x21a867=_0x2afa30(_0x240fde);_0x21a867&&_0x21a867[_0x1ab37d([0x61,0x6c,0x67])]==_0x1ab37d([0x45,0x53,0x32,0x35,0x36])||(_0xbe835a=!0x1);}async function _0x4b1f32(_0xf2bf7,_0x4dd08c,_0xd28aca){const _0x346d89=window[_0x1ab37d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1ab37d([0x66,0x72,0x6f,0x6d])](_0xca418d(_0xd28aca),_0x5ecdaf=>_0x5ecdaf[_0x1ab37d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x182fe7=new window[(_0x1ab37d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1ab37d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xf2bf7+_0x1ab37d([0x2e])+_0x4dd08c),_0x53aa5e=window[_0x1ab37d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1ab37d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x53aa5e)return;const _0x5449b2=await _0x53aa5e[_0x1ab37d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1ab37d([0x6a,0x77,0x6b]),_0x25cd32,{[_0x1ab37d([0x6e,0x61,0x6d,0x65])]:_0x1ab37d([0x45,0x43,0x44,0x53,0x41]),[_0x1ab37d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1ab37d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1ab37d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x53aa5e[_0x1ab37d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1ab37d([0x6e,0x61,0x6d,0x65])]:_0x1ab37d([0x45,0x43,0x44,0x53,0x41]),[_0x1ab37d([0x68,0x61,0x73,0x68])]:{[_0x1ab37d([0x6e,0x61,0x6d,0x65])]:_0x1ab37d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5449b2,_0x346d89,_0x182fe7)||(_0xbe835a=!0x1);}}function _0x2afa30(_0x4bf752){return _0x4bf752[_0x1ab37d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1ab37d([0x65,0x79]))?JSON[_0x1ab37d([0x70,0x61,0x72,0x73,0x65])](_0xca418d(_0x4bf752)):null;}function _0xca418d(_0x207a19){return window[_0x1ab37d([0x61,0x74,0x6f,0x62])](_0x207a19[_0x1ab37d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1ab37d([0x2b]))[_0x1ab37d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1ab37d([0x2f])));}function _0x299d43(_0xec340b){let _0x18584d=0x1505;function _0xac8196(_0x36634c){for(let _0x57910c=0x0;_0x57910c<_0x36634c[_0x1ab37d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x57910c++){const _0x11b339=_0x36634c[_0x1ab37d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x57910c);_0x18584d=(_0x18584d<<0x5)+_0x18584d+_0x11b339,_0x18584d&=_0x18584d;}}function _0x1f3ba1(_0x4ccc57){Array[_0x1ab37d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4ccc57)?_0x4ccc57[_0x1ab37d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1f3ba1):_0x4ccc57&&typeof _0x4ccc57==_0x1ab37d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1ab37d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4ccc57)[_0x1ab37d([0x73,0x6f,0x72,0x74])]()[_0x1ab37d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xd7bc1f,_0x1e1e50])=>{_0xac8196(_0xd7bc1f),_0x1f3ba1(_0x1e1e50);}):_0xac8196(window[_0x1ab37d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4ccc57));}return _0x1f3ba1(_0xec340b),_0x18584d>>>0x0;}function _0x2c4f91(_0x282afd){return _0x282afd[_0x1ab37d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1ab37d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1ab37d([0x30]));}function _0xe62ce8(_0x34e326){return _0x34e326[_0x1ab37d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1ab37d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1ab37d([0x6a,0x6f,0x69,0x6e])]('');}function _0x55d5b8(_0x3e9487){return _0x582407[_0x1ab37d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1ab37d([0x68,0x61,0x73])](_0x3e9487);}function _0x5b90a4(_0x1fc92d){return _0x582407[_0x1ab37d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1ab37d([0x67,0x65,0x74])](_0x1fc92d);}function _0x439af3(){}function _0x1ab37d(_0x511ed4){return _0x511ed4['map'](_0x59452f=>String['fromCharCode'](_0x59452f))['join']('');}_0x3b4f32(await _0x4142a6());}(this);}['createRevision'](_0x466c0d){const _0x16fd42=this['editor']['plugins']['get']('Users');return new h({'id':_0x466c0d['id'],'name':_0x466c0d['name'],'creator':_0x466c0d['creatorId']?_0x16fd42['getUser'](_0x466c0d['creatorId']):null,'diffData':_0x466c0d['diffData']||_0x466c0d['data'],'authors':_0x466c0d['authorsIds']['map'](_0x295c26=>_0x16fd42['getUser'](_0x295c26)),'createdAt':new Date(_0x466c0d['createdAt']),'attributes':_0x466c0d['attributes'],'fromVersion':_0x466c0d['fromVersion'],'toVersion':_0x466c0d['toVersion']});}['addRevision'](_0x4b9051,_0x487238=0x0){this['_revisions']['add'](_0x4b9051,_0x487238);}['getRevision'](_0x15e9cb){return this['_revisions']['get'](_0x15e9cb);}['getRevisions'](_0x3a148b={'toJSON':!0x1}){const _0x49058f=Array['from'](this['_revisions']);return _0x49058f['reverse'](),_0x3a148b['toJSON']?_0x49058f['map'](_0x2072d2=>_0x2072d2['toJSON']()):_0x49058f;}['getIndex'](_0x10fa6c){return this['_revisions']['getIndex'](_0x10fa6c);}['getEarlierVisibleRevision'](_0x460043){const [,_0x2f440f]=this['getRevisionsIterator'](_0x460043,{'direction':'earlier'});return _0x2f440f;}['getLaterVisibleRevision'](_0x43f5f1){const [,_0x2fb5ee]=this['getRevisionsIterator'](_0x43f5f1,{'direction':'later'});return _0x2fb5ee;}['getRevisionsInDiff'](_0x77292b){const _0x2dd0a4=[];for(const _0x25efc5 of this['getRevisionsIterator'](_0x77292b['newRevisionId']))if(_0x2dd0a4['push'](_0x25efc5),_0x25efc5['id']===_0x77292b['oldRevisionId'])break;return _0x2dd0a4;}*['getRevisionsIterator'](_0x3992d7,{direction:_0x5e8ac6='earlier',filter:_0x54d3fd=()=>!0x0}={}){const _0x197ff7='earlier'===_0x5e8ac6?0x1:-0x1;let _0x1dafb7=this['_revisions']['get'](_0x3992d7),_0xf8f89c=this['getIndex'](_0x1dafb7);for(yield _0x1dafb7;_0x1dafb7;){if(_0xf8f89c+=_0x197ff7,_0x1dafb7=this['getRevision'](_0xf8f89c),!_0x1dafb7)return;_0x54d3fd(_0x1dafb7)&&(yield _0x1dafb7);}}}class V extends _0x5f2429{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x135b78,'c'],[_0x26a553,'a'],[_0x21ea0a,'e'],[_0x580101,'r'],[_0x1719aa,'u']]);['_typeCharToViewClass']=new Map([['c',_0x135b78],['a',_0x26a553],['e',_0x21ea0a],['r',_0x580101],['u',_0x1719aa]]);async['loadRevisionData'](_0xcb6325,_0x57d181){if(_0xcb6325['diffData']||!_0x57d181)return;const _0x4ae73d=this['editor']['config']['get']('collaboration.channelId'),_0x1aab9a=await _0x57d181['getRevision']({'channelId':_0x4ae73d,'revisionId':_0xcb6325['id']});_0xcb6325['diffData']=_0x1aab9a['diffData'];}['getRevisionDocumentData'](_0x1ef68f){const _0x52c870={};for(const _0x300c5c in _0x1ef68f['diffData']){if(_0x1ef68f['diffData'][_0x300c5c]['attachChange']&&!_0x1ef68f['diffData'][_0x300c5c]['attachChange']['isAttached'])continue;const _0x4379ba=this['_removeRevisionMarkers'](JSON['parse'](_0x1ef68f['diffData'][_0x300c5c]['insertions'])),_0x2e95cb=this['editor']['editing']['view']['document'],_0x2abbbe=new _0x2770a8(_0x2e95cb,_0x4379ba['map'](_0x3dcd70=>this['_getViewFromDiffObj'](_0x3dcd70,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x52c870[_0x300c5c]=this['editor']['data']['processor']['toData'](_0x2abbbe),this['editor']['data']['processor']['useFillerType']('default');}return _0x52c870;}['getRevisionRootsAttributes'](_0x42fe90){const _0x3d4cd3={};for(const _0x55a99b in _0x42fe90['diffData'])_0x42fe90['diffData'][_0x55a99b]['attachChange']&&!_0x42fe90['diffData'][_0x55a99b]['attachChange']['isAttached']||(_0x3d4cd3[_0x55a99b]=_0x42fe90['diffData'][_0x55a99b]['attributesAfter']||{});return _0x3d4cd3;}['_getTypeCharForViewElement'](_0x2a1d28){return this['_viewClassToTypeChar']['get'](_0x2a1d28['constructor']);}['_getViewFromDiffObj'](_0x128da8,_0x5e3653){const _0x126ec4=this['editor']['editing']['view']['document'];if('string'==typeof _0x128da8)return new _0x1f28ef(_0x126ec4,_0x128da8);{let _0x388898,_0x1f95fb;_0x1f95fb='u'==_0x128da8['type']||'r'==_0x128da8['type']?[]:_0x128da8['children']['map'](_0x464d3b=>this['_getViewFromDiffObj'](_0x464d3b,_0x5e3653));const _0x193586=this['_typeCharToViewClass']['get'](_0x128da8['type'])||_0x4a0765,_0x1cc918=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x388898=new _0x193586(_0x126ec4,_0x128da8['name'],_0x128da8['attributes'],_0x1f95fb),'u'==_0x128da8['type']&&_0x128da8['children'][0x0]){const _0x36718f=_0x128da8['children'][0x0];if(_0x388898['render']=function(_0x800932){const _0xee2723=_0x800932['createElement']('div');return _0xee2723['innerHTML']=_0x36718f,_0xee2723['childNodes'][0x0];},_0x5e3653){const _0x41f73a=new _0x2770a8(_0x126ec4);_0x41f73a['_appendChild'](_0x388898);const _0x1b9774=Array['from'](_0x1cc918['viewChildrenToDom'](_0x41f73a,{'bind':!0x1})),_0xe7ee54=_0x1cc918['domDocument']['createElement']('div');_0xe7ee54['append'](..._0x1b9774),_0x388898=Array['from'](_0x1cc918['domChildrenToView'](_0xe7ee54))[0x0];}}else{if('r'==_0x128da8['type']&&_0x128da8['children'][0x0]){const _0x1d09d0=_0x128da8['children'][0x0];if(_0x388898['render']=function(_0x1c37d8){_0x1c37d8['innerHTML']=_0x1d09d0;},_0x5e3653){const _0x589748=new _0x2770a8(_0x126ec4);_0x589748['_appendChild'](_0x388898);const _0x3c4e67=Array['from'](_0x1cc918['viewChildrenToDom'](_0x589748,{'bind':!0x1})),_0x2b7c9a=_0x1cc918['domDocument']['createElement']('div');_0x2b7c9a['append'](..._0x3c4e67);const _0x22fd73=Array['from'](_0x1cc918['domChildrenToView'](_0x2b7c9a));_0x22fd73['length']>0x1?_0x388898['_appendChild'](_0x22fd73):_0x388898=_0x22fd73[0x0];}}}if(_0x128da8['customProperties']){for(const [_0x42687e,_0xd4608a]of _0x128da8['customProperties'])_0x388898['_setCustomProperty'](_0x42687e,_0xd4608a);}const _0x21013f=void 0x0===_0x128da8['fillerOffset']?null:_0x128da8['fillerOffset'];return null!==_0x21013f&&(_0x388898['getFillerOffset']=()=>_0x21013f),_0x388898;}}['_makeModelFromViewString'](_0x3d1b01){const _0x1e708b=JSON['parse'](_0x3d1b01),_0x56d6eb=this['editor']['editing']['view']['document'],_0xdbf54d=new _0x2770a8(_0x56d6eb,_0x1e708b['map'](_0x5f4bc4=>this['_getViewFromDiffObj'](_0x5f4bc4,!0x0)));return this['editor']['data']['toModel'](_0xdbf54d);}['_removeRevisionMarkers'](_0x16a00c){return(_0x16a00c=_0x16a00c['filter'](_0x5eb43b=>!_0x5eb43b['name']||'revision-start'!==_0x5eb43b['name']&&'revision-end'!==_0x5eb43b['name']))['forEach'](_0x2a51bc=>{'string'!=typeof _0x2a51bc&&(_0x2a51bc['children']=this['_removeRevisionMarkers'](_0x2a51bc['children']),_0x2a51bc['attributes']=_0x2a51bc['attributes']['filter'](_0x55c918=>!_0x55c918[0x0]['startsWith']('data-revision-')));}),_0x16a00c;}}function g(_0x35df38,_0xa7bc1e,_0x27af8c){const t=_0x35df38['t'];switch(_0xa7bc1e){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'},_0x27af8c);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x27af8c);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 _0x5f2429{['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[_0x3be340,I,V,_0x25b081];}constructor(_0x362c99){super(_0x362c99),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 _0x402bff=_0x5d960a();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x402bff},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 _0x34e939=this['repository']['getRevision'](0x0),_0x1de907=_0x34e939&&null===_0x34e939['creator']?_0x34e939:null;if(this['_continueCurrentRevision']=!!_0x1de907&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0xf9e4b=this['_source']['getCurrentRevisionId'](),_0x332a9e=this['repository']['getRevision'](_0xf9e4b);if(_0x332a9e)this['_startingVersion']=_0x332a9e['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x20a199=this['_source']['history']['_operations']['find'](_0x53121f=>!_0x53121f['_isInit']),_0x2966b3=_0x20a199?_0x20a199['baseVersion']:this['_source']['history']['version'];_0x34e939?(_0x34e939['toVersion']<_0x2966b3&&_0x34e939['_update']({'toVersion':_0x2966b3}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x1de907['id'],this['_startingVersion']=_0x1de907['fromVersion']):(this['_startingVersion']=_0x34e939['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x2966b3,this['_continueCurrentRevision']=!0x1);}}else _0x1de907&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x1de907['toVersion'],this['editor']['model']['document']['history']['version']),_0x1de907['fromVersion']===_0x1de907['toVersion']?(0x0!==_0x1de907['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x1de907['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x1de907['id'],this['_startingVersion']=_0x1de907['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',_0x154829=>!_0x154829),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x596db9=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x37d305;for(const _0x58fda0 in _0x596db9){const _0x2dbfce=_0x58fda0,_0x17788d=_0x596db9[_0x2dbfce];if('revisionHistoryLicenseKeyValid'==_0x17788d||'revisionHistoryLicenseKeyInvalid'==_0x17788d||'revisionHistoryLicenseKeyExpired'==_0x17788d||'revisionHistoryLicenseKeyDomainLimit'==_0x17788d||'revisionHistoryLicenseKeyNotAllowed'==_0x17788d||'revisionHistoryLicenseKeyEvaluationLimit'==_0x17788d||'revisionHistoryLicenseKeyTrialLimit'==_0x17788d||'revisionHistoryLicenseKeyUsageLimit'==_0x17788d){delete _0x596db9[_0x2dbfce],_0x37d305=_0x17788d,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x37d305&&_0x596db9['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x37d305&&_0x596db9['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x37d305&&_0x596db9['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x37d305&&_0x596db9['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x37d305&&_0x596db9['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x37d305&&_0x596db9['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x37d305&&_0x596db9['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x26e029=this['repository']['getRevision'](0x0),_0x5d64bc=await this['getRevisionDocumentData'](_0x26e029),_0x4df8a2=await this['getRevisionRootsAttributes'](_0x26e029);this['_replaceEditorDataWithRevisionData'](_0x5d64bc,_0x4df8a2);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x5433b1){this['_source']=_0x5433b1;}async['update'](){const _0x4b35c1=await this['_source']['getLatestVersion']();if(_0x4b35c1>this['currentRevision']['toVersion']){await this['_loadState']();const _0x213f8a=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x4b35c1});_0x213f8a['authors']=_0x213f8a['authorsIds']['map'](_0x3b31ec=>this['editor']['plugins']['get']('Users')['getUser'](_0x3b31ec)),this['currentRevision']['_update'](_0x213f8a);}}async['saveRevision'](_0xd4a330={},_0x294af5=null){const _0x2dfb09=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x294af5>this['currentRevision']['toVersion']&&(_0x294af5=null),null===_0x294af5&&(_0x294af5=await this['_source']['getLatestVersion']());const _0x349710=this['_getFromVersion'](_0x294af5),_0x319179=this['buildRevisionData']({'from':_0x349710,'to':_0x294af5});if(this['currentRevision']['toVersion']<_0x294af5){const _0x429f65=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x294af5,'to':_0x294af5});_0x429f65['authors']=[],_0x429f65['authorsIds']=[],_0x429f65['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x429f65,!0x0),delete _0x429f65['authors'],_0x2dfb09['push'](_0x429f65);}_0xd4a330['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0xd4a330['name']=_0xd4a330['name']||null,_0xd4a330['id']=_0xd4a330['id']||_0x5d960a(),_0xd4a330={..._0xd4a330,..._0x319179};const _0x323f6b=this['addRevisionData'](_0xd4a330);_0x2dfb09['push'](_0xd4a330);const _0x4dcd20=this['repository']['getIndex'](_0x323f6b);if(0x0!==_0x4dcd20){const _0x194411=this['repository']['getRevision'](_0x4dcd20-0x1);if(_0x194411['fromVersion']!==_0x294af5){const _0x51906e=this['_revisionDataBuilder']['getData'](_0x294af5,_0x194411['toVersion']),_0x1dbaa4={'id':_0x194411['id'],'diffData':_0x51906e['diffData'],'authorsIds':_0x51906e['authorsIds'],'authors':_0x51906e['authorsIds']['map'](_0x5d9fc8=>this['editor']['plugins']['get']('Users')['getUser'](_0x5d9fc8)),'fromVersion':_0x294af5};_0x194411===this['currentRevision']&&(_0x1dbaa4['createdAt']=new Date(_0xd4a330['createdAt']['getTime']()+0xa)),_0x194411['_update'](_0x1dbaa4,!0x0),delete _0x1dbaa4['authors'],_0x2dfb09['push'](_0x1dbaa4);}}if(this['adapter']){for(const _0x562455 of _0x2dfb09)this['_bufferUpdate'](_0x562455['id'],_0x562455,!0x0);this['sendBufferedUpdates']();}return _0x323f6b;}['addRevisionData'](_0x2435ac){const _0x4b6fe8=this['repository']['createRevision'](_0x2435ac);return this['adapter']&&_0x4b6fe8['on']('_update',(_0x594ffa,_0x3e1384,_0xbfc289)=>{_0xbfc289||(this['_bufferUpdate'](_0x3e1384['id'],_0x3e1384,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x4b6fe8,this['_findInsertionIndex'](_0x4b6fe8)),_0x4b6fe8;}async['getRevisionDocumentData'](_0x11f7f1){return await this['_utils']['loadRevisionData'](_0x11f7f1,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x11f7f1);}async['getRevisionRootsAttributes'](_0x355fdd){return await this['_utils']['loadRevisionData'](_0x355fdd,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x355fdd);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x2e4f74=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x51fc1a=0x0;_0x51fc1a<_0x2e4f74['length'];_0x51fc1a++){const _0x4b26a9=_0x2e4f74[_0x51fc1a];let _0x2c4517=!0x1;for(const _0x264ade of Object['keys'](_0x4b26a9))void 0x0===_0x4b26a9[_0x264ade]?delete _0x4b26a9[_0x264ade]:'id'!==_0x264ade&&(_0x2c4517=!0x0);_0x2c4517||(_0x2e4f74[_0x51fc1a]=null);}if(_0x2e4f74=_0x2e4f74['filter'](_0x191fa0=>null!==_0x191fa0),!_0x2e4f74['length'])return;for(let _0x41a6c0=0x0;_0x41a6c0<_0x2e4f74['length'];_0x41a6c0++){const _0x581dbb=_0x2e4f74[_0x41a6c0];void 0x0!==_0x581dbb['fromVersion']&&void 0x0===_0x581dbb['toVersion']&&(_0x581dbb['toVersion']=this['repository']['getRevision'](_0x581dbb['id'])['toVersion']),void 0x0!==_0x581dbb['toVersion']&&void 0x0===_0x581dbb['fromVersion']&&(_0x581dbb['fromVersion']=this['repository']['getRevision'](_0x581dbb['id'])['fromVersion']);}const _0x47c9f1=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x2e4f74,_0x47c9f1)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x172698=>{if(_0x172698){for(const _0x523c3b of _0x172698)this['setRevisionData']({'id':_0x523c3b['id'],'createdAt':_0x523c3b['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x2b3f42=null,from:_0x5b32f6=null,to:_0x1c2dfd=null}){_0x5b32f6=null!==_0x5b32f6?_0x5b32f6:_0x2b3f42['fromVersion'],_0x1c2dfd=null!==_0x1c2dfd?_0x1c2dfd:_0x2b3f42['toVersion'];const _0x58ba16=this['_revisionDataBuilder']['getData'](_0x5b32f6,_0x1c2dfd),_0x3f7d34={'diffData':_0x58ba16['diffData'],'authorsIds':_0x58ba16['authorsIds'],'fromVersion':_0x5b32f6,'toVersion':_0x1c2dfd};if(!_0x2b3f42||_0x1c2dfd!==_0x2b3f42['toVersion']){const _0x1d1fe1=_0x1c2dfd-0x1,_0x14bd0d=this['_source']['history']['getOperation'](_0x1d1fe1);_0x3f7d34['createdAt']=_0x14bd0d&&_0x14bd0d['createdAt']||new Date();}if(this['_loadedStateData']&&_0x5b32f6===this['_loadedStateData']['fromVersion']){for(const _0x3a56c7 of this['_loadedStateData']['authors'])_0x3f7d34['authorsIds']['includes'](_0x3a56c7['id'])||_0x3f7d34['authorsIds']['push'](_0x3a56c7['id']);}return _0x3f7d34;}['_bufferUpdate'](_0x386cd3,_0x166477,_0x5daf3b){if(this['_bufferedUpdates']['has'](_0x386cd3)){const _0x37cae4=this['_bufferedUpdates']['get'](_0x386cd3);_0x166477=_0x5daf3b?{..._0x37cae4,..._0x166477}:{..._0x166477,..._0x37cae4};}this['_bufferedUpdates']['set'](_0x386cd3,_0x166477);}['setRevisionData'](_0x3b9533){const _0x4ab6b6=this['repository']['getRevision'](_0x3b9533['id']);if(_0x3b9533['createdAt']&&(_0x3b9533['createdAt']=new Date(_0x3b9533['createdAt'])),_0x3b9533['authorsIds']){const _0x136b1d=this['editor']['plugins']['get']('Users');_0x3b9533['authors']=_0x3b9533['authorsIds']['map'](_0x3f1c0c=>_0x136b1d['getUser'](_0x3f1c0c));}_0x4ab6b6['_update'](_0x3b9533,!0x0);}['_createInitialRevision'](_0x48e7ca){const _0x1632b0=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x1632b0)this['_initialRevisionId']=_0x1632b0['id'];else{const _0x30d810=!this['editor']['model']['document']['roots']['find'](_0x30e1e2=>this['editor']['model']['hasContent'](_0x30e1e2)),_0x20a302=this['editor']['plugins']['get']('Users')['me']['id'],_0x57f261=g(this['editor']['locale'],_0x30d810?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x48e7ca,'to':_0x48e7ca,'id':this['_initialRevisionId'],'name':_0x57f261,'creatorId':_0x20a302});}}['_createCurrentRevision'](_0x46a54b){const _0x24363a=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x24363a),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x46a54b,'to':_0x46a54b,'id':_0x24363a,'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'](_0x433fca,_0x329149){let _0x594e71=this['editor']['config']['get']('initialData'),_0x5ba630=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x594e71){_0x594e71={};for(const _0x221590 of this['editor']['model']['document']['getRootNames']())_0x594e71[_0x221590]='';}if('string'==typeof _0x594e71&&(_0x594e71={'main':_0x594e71}),void 0x0===_0x5ba630){_0x5ba630={};for(const _0x362e26 of this['editor']['model']['document']['getRootNames']())_0x5ba630[_0x362e26]={};}let _0x29b8e0=!0x1;const _0x32d291=Object['keys'](_0x594e71),_0x5619cf=Object['keys'](_0x433fca);for(const _0x5e1385 of _0x32d291){if(_0x594e71[_0x5e1385]!==_0x433fca[_0x5e1385]&&''!==_0x594e71[_0x5e1385]['trim']()){_0x29b8e0=!0x0;break;}if(!_0x3d32b5(_0x5ba630[_0x5e1385],_0x329149[_0x5e1385])&&Object['keys'](_0x5ba630[_0x5e1385])['length']>0x0){_0x29b8e0=!0x0;break;}}_0x29b8e0||(_0x29b8e0=_0x5619cf['some'](_0x3bc89a=>!this['editor']['model']['document']['getRoot'](_0x3bc89a))),_0x29b8e0&&_0x46a28f('editor-initial-data-replaced-with-revision-data',{'editorData':_0x594e71,'editorRootsAttributes':_0x5ba630,'revisionData':_0x433fca,'revisionRootsAttributes':_0x329149}),this['editor']['config']['set']('initialData',_0x433fca),this['editor']['config']['set']('rootsAttributes',_0x329149);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x521e2b=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x521e2b['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x15a61e){const _0x548515=this['repository']['getRevisions']();_0x548515['reverse']();let _0x572be8=0x0;for(;_0x572be8<_0x548515['length'];){const _0x1b9006=_0x548515[_0x572be8];if(_0x1b9006===this['currentRevision']){_0x572be8++;continue;}if(_0x1b9006['id']===this['_initialRevisionId'])break;const _0x21a201=_0x15a61e['toVersion']-_0x1b9006['toVersion']||_0x15a61e['fromVersion']-_0x1b9006['fromVersion'];if(_0x21a201>0x0)break;if(_0x21a201<0x0)_0x572be8++;else{if(!_0x15a61e['creator']&&_0x1b9006['creator'])break;if(_0x1b9006['creator']||!_0x15a61e['creator']){if(_0x15a61e['createdAt']>_0x1b9006['createdAt'])break;_0x572be8++;}else _0x572be8++;}}return _0x572be8;}['_getFromVersion'](_0x108566){const _0x49d8ec=this['repository']['getRevisions']();_0x49d8ec['reverse'](),_0x49d8ec['shift']();const _0x40c894=_0x49d8ec['find'](_0x3df8ea=>_0x3df8ea['toVersion']<=_0x108566)['toVersion'];return _0x40c894<this['_startingVersion']?this['_startingVersion']:_0x40c894;}['_makeRevision']({name:_0x341a0d,from:_0x2c00ea,to:_0x3e9970,creatorId:_0x2444a6,id:_0x288bd7}){const _0xee1c5e=this['buildRevisionData']({'from':_0x2c00ea,'to':_0x3e9970});_0xee1c5e['name']=_0x341a0d,_0xee1c5e['creatorId']=_0x2444a6,_0xee1c5e['id']=_0x288bd7;const _0x51a212=this['addRevisionData'](_0xee1c5e);return this['adapter']&&this['_bufferUpdate'](_0xee1c5e['id'],_0xee1c5e,!0x0),_0x51a212;}['_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(_0x50bff1){this['editor']=_0x50bff1,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'](_0x1335ab){this['source']=_0x1335ab;const _0x5ebf31=new Map(),_0x491bee=new Map(),_0xd50505=this['editor']['model']['document']['roots']['map'](_0x5486f0=>_0x5486f0['rootName']);for(const _0x304d6b of _0xd50505){const _0x17d0d8=this['editor']['model']['document']['getRoot'](_0x304d6b),_0x3f4734=N(_0x17d0d8);_0x5ebf31['set'](_0x304d6b,_0x3f4734),_0x491bee['set'](_0x304d6b,Object['fromEntries'](_0x17d0d8['getAttributes']()));}const _0x3d7cd0=Array['from'](this['editor']['model']['markers'])['map'](_0x2cb3db=>[_0x2cb3db['name'],_0x2cb3db['getRange']()]),_0x428fd9=this['source']['version'];this['_saveMetaData'](_0x428fd9,_0x5ebf31,_0x3d7cd0,_0x491bee),this['_startingRevisionId']=this['_revisionId'];const _0x47b432=new Map(),_0x42835c=new Map();for(const _0x470575 of _0xd50505){const _0x1d3c80=P(_0x470575);_0x47b432['set'](_0x470575,_0x1d3c80),_0x42835c['set'](_0x470575,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x47b432,[],_0x42835c);}['getData'](_0x695ba7,_0x50e574){if(this['_lastFrom']===_0x695ba7&&this['_lastTo']<=_0x50e574)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x50e574,!0x0);else{if(!this['_savedMetaData']['has'](_0x695ba7)){const _0x5f1181=this['_getPreviousFrom'](_0x695ba7);this['_calculateMetaData'](_0x5f1181,_0x695ba7,!0x1);}this['_calculateMetaData'](_0x695ba7,_0x50e574,!0x0);}return this['_lastFrom']=_0x695ba7,this['_lastTo']=_0x50e574,this['_getState']();}['loadState'](_0x435b26){const _0x197f89=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x435b26['fromVersion'],this['_lastTo']=_0x435b26['toVersion'];for(const _0x551ef1 in _0x435b26['diffData']){const _0x2ebf3b=_0x435b26['diffData'][_0x551ef1]['attachChange'],_0x46cdd6=_0x4fdf13(_0x435b26['diffData'][_0x551ef1]['attributesBefore'])||{},_0x5762b3=_0x197f89['_makeModelFromViewString'](_0x435b26['diffData'][_0x551ef1]['deletions']);_0x5762b3['rootName']=_0x551ef1,_0x5762b3['_isAttached']=!_0x2ebf3b||!_0x2ebf3b['isAttached'],_0x5762b3['isAttached']=()=>_0x5762b3['_isAttached'],this['_baseRoots']['set'](_0x551ef1,_0x5762b3),this['_baseRootsAttributes']['set'](_0x551ef1,_0x46cdd6),_0x2ebf3b&&this['_touchedRoots']['set'](_0x551ef1,_0x2ebf3b);const _0x36524e=this['_makeIdsRoot'](_0x5762b3);this['_baseIdsRoots']['set'](_0x551ef1,_0x36524e);for(const [_0x593769,_0xbe1501]of _0x5762b3['markers']){if(!_0x593769['startsWith']('revision:'))continue;const _0x3c808c=_0x593769['split'](':')[0x2];for(const _0x430057 of _0xbe1501['getWalker']({'singleCharacters':!0x0})){const _0x2e8e41=this['_getVidAttributeName'](_0x430057),_0x5cf119='elementEnd'==_0x430057['type']?_0x430057['previousPosition']['path']['slice'](0x0,-0x1):_0x430057['previousPosition']['path'],_0x1043d9=_0x36524e['getNodeByPath'](_0x5cf119)['getAttribute'](_0x2e8e41);this['_touched']['set'](_0x1043d9,{'userId':_0x3c808c});}}}this['_startingRevisionId']=this['_revisionId'];const _0x2206ca=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x3ebc88=>!this['_touched']['has'](_0x3ebc88));let _0x3e14e9=0x0;const _0x20b744=new Map();for(const _0x3f88ef in _0x435b26['diffData']){const _0x49ae53=_0x435b26['diffData'][_0x3f88ef]['attachChange'],_0x38ad24=_0x4fdf13(_0x435b26['diffData'][_0x3f88ef]['attributesAfter'])||{},_0x4b8855=_0x197f89['_makeModelFromViewString'](_0x435b26['diffData'][_0x3f88ef]['insertions']);_0x4b8855['rootName']=_0x3f88ef,_0x4b8855['_isAttached']=!_0x49ae53||_0x49ae53['isAttached'],_0x4b8855['isAttached']=()=>_0x4b8855['_isAttached'],this['_diffRoots']['set'](_0x3f88ef,_0x4b8855),this['_diffRootsAttributes']['set'](_0x3f88ef,_0x38ad24);const _0x1498ae=this['_makeIdsRoot'](_0x4b8855,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x3f88ef,_0x1498ae),_0x20b744['set'](_0x3f88ef,_0x4b8855['isAttached']()?_0x38ad24:{});for(const [_0x213e6f,_0x49182f]of _0x4b8855['markers']){if(!_0x213e6f['startsWith']('revision:'))continue;const _0x2e9024=_0x213e6f['split'](':')[0x2];for(const _0x5d3467 of _0x49182f['getWalker']({'singleCharacters':!0x0})){const _0x4de55e=this['_getVidAttributeName'](_0x5d3467),_0x12c125=this['_revisionId']++,_0x3e169a='elementEnd'==_0x5d3467['type']?_0x5d3467['previousPosition']['path']['slice'](0x0,-0x1):_0x5d3467['previousPosition']['path'];_0x1498ae['getNodeByPath'](_0x3e169a)['_setAttribute'](_0x4de55e,_0x12c125),this['_touched']['set'](_0x12c125,{'userId':_0x2e9024});}}for(const _0x22d31f of this['editor']['model']['createRangeIn'](_0x4b8855)['getWalker']({'singleCharacters':!0x0})){const _0xe31550=this['_getVidAttributeName'](_0x22d31f),_0x5bd975='elementEnd'==_0x22d31f['type']?_0x22d31f['previousPosition']['path']['slice'](0x0,-0x1):_0x22d31f['previousPosition']['path'],_0x40532a=_0x1498ae['getNodeByPath'](_0x5bd975);_0x40532a['getAttribute'](_0xe31550)>0x0||_0x40532a['_setAttribute'](_0xe31550,_0x2206ca[_0x3e14e9++]);}for(const [_0x54c1ea,_0x2c6985]of _0x4b8855['markers'])_0x54c1ea['startsWith']('revision:')||this['_markers']['set'](_0x54c1ea,_0x2c6985);}const _0x1c873b=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0x1c873b),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x1c873b,0x1));const _0x59a43f=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x59a43f),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x59a43f,0x1));const _0x394214=Array['from'](this['_diffRoots'])['map'](([_0x2d944a,_0x520c56])=>[_0x2d944a,N(_0x520c56)]);this['_saveMetaData'](this['_lastTo'],_0x394214,this['_markers'],_0x20b744);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x24cbf7,_0x15f874,_0x200e3d,_0x374412){const _0x94ca40=new Map(_0x15f874),_0x437a85=new Map(_0x4fdf13(_0x374412)),_0x4c131a=new Map();for(const [_0xfc13e3,_0x56d6f5]of _0x200e3d)_0x4c131a['set'](_0xfc13e3,{'start':_0x56d6f5['start']['clone'](),'end':_0x56d6f5['end']['clone'](),'rootName':_0x56d6f5['root']['rootName']});this['_savedMetaData']['set'](_0x24cbf7,{'roots':_0x94ca40,'markers':_0x4c131a,'rootsAttributes':_0x437a85});}['_removeMetaData'](_0x3cf9d5){this['_savedMetaData']['delete'](_0x3cf9d5);}['_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'](_0x1dbda7,_0xb39eee=null){let _0x534dfd=null;_0x1dbda7['is']('documentFragment')||(_0x534dfd=new ut(_0x1dbda7['name'],{'vid_start':null===_0xb39eee?this['_revisionId']++:_0xb39eee++}));const _0x38257f=[];for(const _0x267a45 of _0x1dbda7['getChildren']())if(_0x267a45['is']('element')){_0x38257f['push'](this['_makeIdsRoot'](_0x267a45,_0xb39eee));const _0xa04b89=_0x38257f[_0x38257f['length']-0x1];null!==_0xb39eee&&(_0xb39eee=_0xa04b89['is']('element','$text')?_0xa04b89['getAttribute']('vid')+0x1:_0xa04b89['getAttribute']('vid_end')+0x1);}else{for(let _0x47a2e3=0x0;_0x47a2e3<_0x267a45['offsetSize'];_0x47a2e3++)_0x38257f['push'](new ut('$text',{'vid':null===_0xb39eee?this['_revisionId']++:_0xb39eee++}));}if(_0x1dbda7['is']('documentFragment')){const _0x313f59=P(_0x1dbda7['rootName']);return _0x313f59['_insertChild'](0x0,_0x38257f),_0x313f59;}return _0x534dfd['_setAttribute']('vid_end',null===_0xb39eee?this['_revisionId']++:_0xb39eee++),_0x534dfd['_insertChild'](0x0,_0x38257f),_0x534dfd;}['_calculateMetaData'](_0x28bd6c,_0x25ffe8,_0x496dfb){this['_reset']();const {roots:_0x17df08,markers:_0x1106b8,rootsAttributes:_0x435faa}=this['_savedMetaData']['get'](_0x28bd6c);this['_baseRoots']=new Map(_0x17df08),this['_baseRootsAttributes']=new Map(_0x4fdf13(_0x435faa));for(const [_0xd02dab,_0x39f033]of this['_baseRoots'])if('$graveyard'!==_0xd02dab&&(this['_diffRoots']['set'](_0xd02dab,N(_0x39f033)),this['_diffRootsAttributes']=new Map(_0x4fdf13(_0x435faa)),_0x496dfb)){const _0x4890a1=this['_revisionId'];this['_idsRoots']['set'](_0xd02dab,this['_makeIdsRoot'](_0x39f033)),this['_baseIdsRoots']['set'](_0xd02dab,this['_makeIdsRoot'](_0x39f033,_0x4890a1));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x496dfb&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x2fd236,_0x191b32]of _0x1106b8){const _0x26b224=this['_baseRoots']['get'](_0x191b32['rootName']),_0xb1b239=this['_diffRoots']['get'](_0x191b32['rootName']),_0x2e4642=new lt(this['_fixPosition'](_0x191b32['start'],_0x26b224),this['_fixPosition'](_0x191b32['end'],_0x26b224)),_0x5daa06=this['_fixRange'](_0x2e4642,_0xb1b239);_0x26b224['markers']['set'](_0x2fd236,_0x2e4642),this['_markers']['set'](_0x2fd236,_0x5daa06);}this['_applyOperations'](_0x28bd6c,_0x25ffe8,_0x496dfb);}['_applyOperations'](_0x5afcef,_0x426fa4,_0x44d16b){for(const _0x150675 of this['source']['getOperations'](_0x5afcef,_0x426fa4))this['_handleOperation'](_0x150675,_0x44d16b);for(const _0x2c36e1 of this['_diffRoots']['values']())_0x2c36e1['markers']['clear']();for(const [_0x1060eb,_0x5b1c11]of this['_markers']){this['_diffRoots']['get'](_0x5b1c11['root']['rootName'])['markers']['set'](_0x1060eb,_0x5b1c11['clone']());}const _0x98d5b1=new Map(),_0x14b96b=new Map();for(const [_0x584b96,_0x1fceca]of this['_diffRoots'])_0x98d5b1['set'](_0x584b96,N(_0x1fceca)),_0x14b96b['set'](_0x584b96,this['_diffRootsAttributes']['get'](_0x584b96));this['_saveMetaData'](_0x426fa4,_0x98d5b1,this['_markers'],_0x14b96b);}['_getPreviousFrom'](_0x417388){const _0x3ab405=Array['from'](this['_savedMetaData']['keys']());_0x3ab405['sort']((_0x146e33,_0x40ad1e)=>_0x146e33-_0x40ad1e),_0x3ab405['reverse']();for(const _0x439046 of _0x3ab405)if(_0x439046<_0x417388)return _0x439046;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x556760,_0x41c6e7){const _0x651000=Array['from'](_0x41c6e7['markers'])['map'](([_0x5d2f6e,_0x5a21a8])=>[_0x5d2f6e,this['_fixRange'](_0x5a21a8,_0x556760)]);_0x556760['markers']=new Map(_0x651000);}['_transformMarkers'](_0x39d2cd){for(const _0x22dac2 of this['_markers']['values']()){const _0x45d16b=_0x22dac2['getTransformedByOperation'](_0x39d2cd),_0x3e0966=lt['_createFromRanges'](_0x45d16b);_0x22dac2['start']=_0x3e0966['start'],_0x22dac2['end']=_0x3e0966['end'];}}['_handleOperation'](_0x5c58d4,_0x114df7){if('addRoot'!=_0x5c58d4['type']&&'detachRoot'!=_0x5c58d4['type']){if('insert'==_0x5c58d4['type']){const _0x1b523b=_0x5c58d4['position']['root']['rootName'];this['_diffRoots']['has'](_0x1b523b)||(this['_diffRoots']['set'](_0x1b523b,P(_0x1b523b,!0x0)),this['_diffRootsAttributes']['set'](_0x1b523b,{}),_0x114df7&&this['_idsRoots']['set'](_0x1b523b,P(_0x1b523b,!0x0)));}else{if('addRootAttribute'==_0x5c58d4['type']||'removeRootAttribute'==_0x5c58d4['type']||'changeRootAttribute'==_0x5c58d4['type'])return void this['_handleRootAttributeOperation'](_0x5c58d4);'marker'==_0x5c58d4['type']&&this['_handleMarkerOperation'](_0x5c58d4);}if('marker'!==_0x5c58d4['type']){const _0x284ed2=this['_cloneOperation'](_0x5c58d4,this['_diffRoots']);_0x284ed2['_execute'](),this['_transformMarkers'](_0x284ed2);}if(_0x114df7)switch(_0x5c58d4['type']){case'insert':this['_handleInsertOperation'](_0x5c58d4);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x5c58d4);break;case'merge':this['_handleMergeOperation'](_0x5c58d4);break;case'split':this['_handleSplitOperation'](_0x5c58d4);}}else this['_handleRootOperation'](_0x5c58d4,_0x114df7);}['_cloneOperation'](_0x28b8df,_0x5510dd){const _0x40bbf1=_0x28b8df['clone']();return _0x40bbf1['_authorId']=_0x28b8df['_authorId'],this['_fixOperation'](_0x40bbf1,_0x5510dd),_0x40bbf1;}['_getBaseVids'](_0x2c80f3){return _0x2c80f3['map'](_0x4e76b3=>{const _0x52fca8=this['_getVidAttributeName'](_0x4e76b3);return Number(_0x4e76b3['item']['getAttribute'](_0x52fca8));});}['_generateTape'](_0x5a8c89,_0x9a6e05){if(_0x5a8c89['is']('element','$text'))_0x9a6e05['push']({'item':_0x5a8c89,'type':'text'});else{_0x5a8c89['is']('element')&&_0x9a6e05['push']({'item':_0x5a8c89,'type':'elementStart'});for(const _0x2b213e of _0x5a8c89['getChildren']())this['_generateTape'](_0x2b213e,_0x9a6e05);_0x5a8c89['is']('element')&&_0x9a6e05['push']({'item':_0x5a8c89,'type':'elementEnd'});}return _0x9a6e05;}['_getState'](){const _0x3e3088=new Map(this['_touched']),_0x1295e3=new Map(_0x3e3088),_0x2ddc33=new Map(),_0x22c50d={'insertions':{},'deletions':{}},_0x15636c={'insertions':{},'deletions':{}},_0x1605f4=new Map(),_0x39b67a=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x39b67a['delete']('$graveyard');for(const _0x154333 of _0x39b67a){const _0xb7f070=this['_diffRoots']['get'](_0x154333)||P(_0x154333,!0x1),_0x412bf4=this['_baseRoots']['get'](_0x154333)||P(_0x154333,!0x1);_0xb7f070['isAttached']()||_0x412bf4['isAttached']()?(_0x22c50d['insertions'][_0x154333]=N(_0xb7f070),_0x22c50d['deletions'][_0x154333]=N(_0x412bf4),this['_copyMarkers'](_0x22c50d['deletions'][_0x154333],_0x412bf4),this['_copyMarkers'](_0x22c50d['insertions'][_0x154333],_0xb7f070),_0x15636c['insertions'][_0x154333]=this['_generateTape'](this['_idsRoots']['get'](_0x154333),[]),_0x15636c['deletions'][_0x154333]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x154333)||P(_0x154333,!0x1),[])):_0x39b67a['delete'](_0x154333);}for(const _0x1b3135 of _0x39b67a){const _0x35226e=_0x15636c['insertions'][_0x1b3135];for(const _0x72ee1d of _0x35226e){const _0xada53b=this['_getVidAttributeName'](_0x72ee1d),_0x3aff0c=_0x72ee1d['item']['getAttribute'](_0xada53b);_0x1295e3['delete'](_0x3aff0c),_0x3aff0c>=this['_startingRevisionId']&&_0x2ddc33['set'](_0x3aff0c,_0x3e3088['get'](_0x3aff0c));}}for(const _0x574a69 of _0x39b67a){const _0x2242f6=_0x15636c['insertions'][_0x574a69],_0x3d6b03=this['_getBaseVids'](_0x15636c['deletions'][_0x574a69]);let _0x582708=0x0;for(const _0x55970c of _0x2242f6){const _0x5cae64=this['_getVidAttributeName'](_0x55970c),_0x499414=_0x55970c['item']['getAttribute'](_0x5cae64);if(!_0x2ddc33['has'](_0x499414)&&!_0x1605f4['has'](_0x499414)){if(_0x1295e3['has'](_0x499414))_0x582708++;else{if(_0x499414!=_0x3d6b03[_0x582708]){const _0x1df182=_0x3e3088['get'](_0x499414)||_0x3e3088['get'](_0x3d6b03[_0x582708]);for(;_0x499414!=_0x3d6b03[_0x582708];)_0x1295e3['has'](_0x3d6b03[_0x582708])||(_0x1605f4['set'](_0x3d6b03[_0x582708],_0x1df182),_0x3e3088['set'](_0x3d6b03[_0x582708],_0x1df182)),_0x582708++;}_0x582708++;}}}}for(const _0x4cbab2 of _0x39b67a){const _0x45e34a=_0x15636c['insertions'][_0x4cbab2];for(const _0x581ef4 of _0x45e34a){const _0x15455c=this['_getVidAttributeName'](_0x581ef4),_0x4c3294=_0x581ef4['item']['getAttribute'](_0x15455c);if(_0x1605f4['has'](_0x4c3294)){const _0x148a8f=_0x1605f4['get'](_0x4c3294);_0x1295e3['has'](_0x4c3294)||_0x1295e3['set'](_0x4c3294,{..._0x148a8f}),_0x2ddc33['set'](_0x4c3294,{..._0x148a8f});}}}for(const _0x4305ac of _0x1295e3['keys']())_0x4305ac>=this['_startingRevisionId']&&_0x1295e3['delete'](_0x4305ac);const _0x728280=new Map();for(const _0x42898a of _0x39b67a){let _0x37bad0=_0x15636c['insertions'][_0x42898a];for(const _0x58a0d9 of _0x37bad0)if(_0x58a0d9['item']['is']('element','tableCell')){const _0x5115d6=this['_getVidAttributeName'](_0x58a0d9),_0x5e2d2e=_0x58a0d9['item']['getAttribute'](_0x5115d6);if(_0x2ddc33['has'](_0x5e2d2e)){const _0x32cf50=_0x58a0d9['item']['parent']['parent']['getAttribute']('vid_start'),_0x24c99b=_0x728280['get'](_0x32cf50)||new Set();_0x24c99b['add'](_0x2ddc33['get'](_0x5e2d2e)['userId']),_0x728280['set'](_0x32cf50,_0x24c99b);}}_0x37bad0=_0x15636c['deletions'][_0x42898a];for(const _0x28707d of _0x37bad0)if(_0x28707d['item']['is']('element','tableCell')){const _0x3d8c44=this['_getVidAttributeName'](_0x28707d),_0x24d667=_0x28707d['item']['getAttribute'](_0x3d8c44);if(_0x1295e3['has'](_0x24d667)){const _0x110e17=_0x28707d['item']['parent']['parent']['getAttribute']('vid_start'),_0x548565=_0x728280['get'](_0x110e17)||new Set();_0x548565['add'](_0x1295e3['get'](_0x24d667)['userId']),_0x728280['set'](_0x110e17,_0x548565);}}for(const _0x194b09 of _0x728280['keys']())(_0x2ddc33['has'](_0x194b09)||_0x1295e3['has'](_0x194b09))&&_0x728280['delete'](_0x194b09);}for(const _0x4e040f of _0x39b67a){const _0x568efb=_0x15636c['insertions'][_0x4e040f];let _0x45376c=null,_0x33d1a5=null;for(const _0x26848a of _0x568efb){const _0x580b96=this['_getVidAttributeName'](_0x26848a),_0x485f1e=_0x26848a['item']['getAttribute'](_0x580b96),_0x4ea707=_0x728280['get'](_0x485f1e);_0x4ea707&&'elementStart'==_0x26848a['type']&&(_0x45376c=Array['from'](_0x4ea707)[0x0],_0x33d1a5=_0x26848a['item']['getAttribute']('vid_end')),_0x45376c&&(_0x1295e3['set'](_0x485f1e,{'userId':_0x45376c}),_0x2ddc33['set'](_0x485f1e,{'userId':_0x45376c})),_0x485f1e==_0x33d1a5&&(_0x45376c=null,_0x33d1a5=null);}}const _0x445f35={},_0x3c1156=new Set();for(const _0x3749e8 of _0x39b67a){const _0xd247f3=_0x22c50d['deletions'][_0x3749e8],_0xe1b930=_0x22c50d['insertions'][_0x3749e8];for(const {userId:_0x23fd0c}of this['_touchedMarkers']['values']())null!==_0x23fd0c&&_0x3c1156['add'](_0x23fd0c);for(const {userId:_0x1654be}of this['_touchedRoots']['values']())null!==_0x1654be&&_0x3c1156['add'](_0x1654be);this['_markChanges'](_0xe1b930,_0x15636c['insertions'][_0x3749e8],_0x2ddc33,'insertion',_0x3c1156),this['_markChanges'](_0xd247f3,_0x15636c['deletions'][_0x3749e8],_0x1295e3,'deletion',_0x3c1156),_0x445f35[_0x3749e8]={'insertions':this['_prepareViewToSave'](_0xe1b930),'deletions':this['_prepareViewToSave'](_0xd247f3),'attachChange':this['_touchedRoots']['get'](_0x3749e8)||null,'attributesBefore':_0x4fdf13(this['_baseRootsAttributes']['get'](_0x3749e8))||{},'attributesAfter':_0x4fdf13(this['_diffRootsAttributes']['get'](_0x3749e8))};}return{'diffData':_0x445f35,'authorsIds':Array['from'](_0x3c1156)};}['_processRootBeforeSave'](_0x264111){for(const [,_0x3e36de]of _0x264111['markers']){const _0x3d4f44=_0x3e36de['start']['getAncestors']()['filter'](_0x768cfe=>'tableCell'==_0x768cfe['name']);for(const _0x2e51cd of _0x3d4f44)0x1==_0x2e51cd['childCount']&&_0x2e51cd['getChild'](0x0)['is']('element','paragraph')&&_0x2e51cd['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0xb0e863){this['_processRootBeforeSave'](_0xb0e863);const _0x4437fe=this['editor']['data']['toView'](_0xb0e863,{}),_0x188f5f=Array['from'](_0x4437fe['getChildren']())['map'](_0x32cb39=>this['_getViewJson'](_0x32cb39));return JSON['stringify'](_0x188f5f);}['_getViewJson'](_0x850207){if(_0x850207['is']('$text'))return _0x850207['data'];{const _0x58f115=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x2b9964=_0x850207,_0x231cbf=this['editor']['data']['htmlProcessor']['domConverter'],_0x51af5f={'type':_0x58f115['_getTypeCharForViewElement'](_0x2b9964),'name':_0x2b9964['name'],'attributes':Array['from'](_0x2b9964['getAttributes']()),'children':Array['from'](_0x2b9964['getChildren']())['map'](_0x42e821=>this['_getViewJson'](_0x42e821))};if(_0x850207['is']('uiElement')&&'$comment'!=_0x850207['name']){const _0x1fdfb7=_0x850207['render'](_0x231cbf['domDocument'],_0x231cbf);_0x51af5f['children']['push'](_0x1fdfb7['outerHTML']);}else{if(_0x850207['is']('rawElement')){const _0x2e2ae9=_0x231cbf['domDocument']['createElement'](_0x2b9964['name']);_0x850207['render'](_0x2e2ae9,_0x231cbf),_0x51af5f['children']['push'](_0x2e2ae9['innerHTML']);}}const _0x5b2cbd=Array['from'](_0x2b9964['getCustomProperties']());_0x5b2cbd['length']>0x0&&(_0x51af5f['customProperties']=_0x5b2cbd);const _0xfaebfa=_0x2b9964['getFillerOffset']();return null!==_0xfaebfa&&(_0x51af5f['fillerOffset']=_0xfaebfa),_0x51af5f;}}['_markChanges'](_0x2e543b,_0x1d8eeb,_0x412f49,_0x2beb2c,_0x18ae78){let _0x54075b=null,_0x14be5a=null,_0x2064c6=0x0;const _0x307478=this['editor']['model'];for(let _0x516f45=0x0;_0x516f45<_0x1d8eeb['length'];_0x516f45++){const _0x27b9ca=this['_getVidAttributeName'](_0x1d8eeb[_0x516f45]),_0x42b724=_0x1d8eeb[_0x516f45]['item']['getAttribute'](_0x27b9ca),_0x5549bd=_0x412f49['get'](_0x42b724),_0x16f353=_0x516f45==_0x1d8eeb['length']-0x1;(!_0x54075b&&_0x5549bd&&(_0x54075b=_0x5549bd,_0x14be5a=_0x1d8eeb[_0x516f45]),_0x54075b&&(!_0x5549bd||_0x5549bd['userId']!=_0x54075b['userId']))&&(_0x1d0572(_0x5549bd,F(_0x14be5a,_0x2e543b,_0x307478),F(_0x1d8eeb[_0x516f45],_0x2e543b,_0x307478)),_0x54075b=_0x5549bd||null,_0x14be5a=_0x5549bd?_0x1d8eeb[_0x516f45]:null),_0x54075b&&_0x16f353&&_0x1d0572(_0x5549bd,F(_0x14be5a,_0x2e543b,_0x307478),B(_0x1d8eeb[_0x516f45],_0x2e543b,_0x307478));}function _0x1d0572(_0x31386b,_0x110e85,_0x430f61){const _0x105df1=_0x54075b['userId'],_0x5935b8='revision:'+_0x2beb2c+':'+_0x105df1+':'+_0x2064c6++,_0x395bd8=_0x307478['createRange'](_0x110e85,_0x430f61);_0x2e543b['markers']['set'](_0x5935b8,_0x395bd8),null!==_0x105df1&&_0x18ae78['add'](_0x105df1);}}['_getVidAttributeName'](_0x5e2725){switch(_0x5e2725['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x2dd7de,_0x4f4c94){_0x2dd7de['baseVersion']=null;for(const _0x12562f in _0x2dd7de){const _0x365e05=_0x2dd7de[_0x12562f];if(_0x365e05 instanceof ft){const _0x44acd6=_0x4f4c94['get'](_0x365e05['root']['rootName']);_0x2dd7de[_0x12562f]=this['_fixPosition'](_0x365e05,_0x44acd6);}if(_0x365e05 instanceof lt){const _0x18c0cc=_0x4f4c94['get'](_0x365e05['root']['rootName']);_0x2dd7de[_0x12562f]=this['_fixRange'](_0x365e05,_0x18c0cc);}'root'===_0x12562f&&(_0x2dd7de['root']=_0x4f4c94['get'](_0x2dd7de['root']['rootName']));}}['_fixRange'](_0x4ebaf9,_0xa36a45){return this['editor']['model']['createRange'](this['_fixPosition'](_0x4ebaf9['start'],_0xa36a45),this['_fixPosition'](_0x4ebaf9['end'],_0xa36a45));}['_fixPosition'](_0x14de3e,_0x4f08cc){return this['editor']['model']['createPositionFromPath'](_0x4f08cc,_0x14de3e['path'],_0x14de3e['stickiness']);}['_handleInsertOperation'](_0x27e944){const _0x1689bc=this['_idsRoots']['get'](_0x27e944['position']['root']['rootName']),_0x21617f=this['_fixPosition'](_0x27e944['position'],_0x1689bc),_0x494317=null===_0x27e944['_authorId']?null:_0x27e944['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x24158=_0x21617f['parent'],_0x1f8b21=this['_revisionId'],_0xd59ff7=[];for(const _0x44206c of _0x27e944['nodes'])if(_0x44206c['is']('element'))_0xd59ff7['push'](this['_makeIdsRoot'](_0x44206c));else{for(let _0x4757ba=0x0;_0x4757ba<_0x44206c['offsetSize'];_0x4757ba++)_0xd59ff7['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x3bbf2f=this['_revisionId'];for(let _0xec8917=_0x1f8b21;_0xec8917<_0x3bbf2f;_0xec8917++)this['_touched']['set'](_0xec8917,{'userId':_0x494317});_0x24158['_insertChild'](_0x21617f['offset'],_0xd59ff7);}['_handleMoveOperation'](_0x49d0ee){(_0x49d0ee=this['_cloneOperation'](_0x49d0ee,this['_idsRoots']))['_execute']();const _0x51328b=null===_0x49d0ee['_authorId']?null:_0x49d0ee['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x438b31=_0x49d0ee['getMovedRangeStart'](),_0x513f57=_0x438b31['parent'],_0x33e0ce=_0x438b31['offset'];!function _0x5b0a1a(_0x269225,_0x35d201,_0x17dba2,_0xe6ce4a){for(let _0x5545a7=_0x17dba2;_0x5545a7<_0xe6ce4a;_0x5545a7++){const _0x5c067f=_0x35d201['getChild'](_0x5545a7);_0x5c067f['is']('element','$text')?_0x269225['set'](_0x5c067f['getAttribute']('vid'),{'userId':_0x51328b}):(_0x269225['set'](_0x5c067f['getAttribute']('vid_start'),{'userId':_0x51328b}),_0x5b0a1a(_0x269225,_0x5c067f,0x0,_0x5c067f['childCount']),_0x269225['set'](_0x5c067f['getAttribute']('vid_end'),{'userId':_0x51328b}));}}(this['_touched'],_0x513f57,_0x33e0ce,_0x33e0ce+_0x49d0ee['howMany']);}['_handleMergeOperation'](_0x56fa3b){const _0xe06425=null===(_0x56fa3b=this['_cloneOperation'](_0x56fa3b,this['_idsRoots']))['_authorId']?null:_0x56fa3b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1fdf77=_0x56fa3b['targetPosition']['parent'],_0x5e5654=_0x56fa3b['sourcePosition']['parent'],_0x5b383d=_0x1fdf77['getAttribute']('vid_end'),_0x28806a=_0x5e5654['getAttribute']('vid_start');_0x1fdf77['_setAttribute']('vid_end',_0x5e5654['getAttribute']('vid_end')),_0x5e5654['_setAttribute']('vid_end',_0x5b383d),this['_touched']['set'](_0x28806a,{'userId':_0xe06425}),this['_touched']['set'](_0x5b383d,{'userId':_0xe06425}),_0x56fa3b['_execute']();}['_handleSplitOperation'](_0x502f92){const _0x4249a6=null===(_0x502f92=this['_cloneOperation'](_0x502f92,this['_idsRoots']))['_authorId']?null:_0x502f92['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x44a350=_0x502f92['graveyardPosition'],_0x494801=_0x502f92['splitPosition']['parent'];_0x502f92['_execute']();const _0x45bc92=_0x494801['getAttribute']('vid_end'),_0xf6188c=_0x502f92['insertionPosition']['nodeAfter'];if(_0x44a350){const _0x56ffb2=_0xf6188c['getAttribute']('vid_end'),_0x1f8212=_0x494801['getAttribute']('vid_end');_0x494801['_setAttribute']('vid_end',_0x56ffb2),_0xf6188c['_setAttribute']('vid_end',_0x1f8212),this['_touched']['set'](_0x494801['getAttribute']('vid_end'),{'userId':_0x4249a6}),this['_touched']['set'](_0xf6188c['getAttribute']('vid_start'),{'userId':_0x4249a6});}else{const _0x2bd637=this['_revisionId']++,_0x2cd810=this['_revisionId']++;_0x494801['_setAttribute']('vid_end',_0x2bd637),_0xf6188c['_setAttribute']('vid_start',_0x2cd810),_0xf6188c['_setAttribute']('vid_end',_0x45bc92),this['_touched']['set'](_0x2bd637,{'userId':_0x4249a6}),this['_touched']['set'](_0x2cd810,{'userId':_0x4249a6});}}['_handleMarkerOperation'](_0x44d19f){if(!_0x44d19f['affectsData'])return;const _0x51708e=(_0x44d19f=this['_cloneOperation'](_0x44d19f,this['_diffRoots']))['oldRange']?_0x44d19f['oldRange']['root']:null,_0x8d7caf=_0x44d19f['newRange']?_0x44d19f['newRange']['root']:null;_0x51708e&&this['_markers']['delete'](_0x44d19f['name']),_0x8d7caf&&this['_markers']['set'](_0x44d19f['name'],_0x44d19f['newRange']['clone']());const _0x5c8520=null===_0x44d19f['_authorId']?null:_0x44d19f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x21cb01=_0x44d19f['name'];if(!this['_touchedMarkers']['has'](_0x21cb01))return void this['_touchedMarkers']['set'](_0x21cb01,{'range':_0x44d19f['oldRange'],'userId':_0x5c8520});const _0x59a309=this['_touchedMarkers']['get'](_0x21cb01),_0x4d3678=_0x59a309['range'],_0x49087b=_0x44d19f['newRange'];null==_0x4d3678&&null==_0x49087b||_0x4d3678&&_0x49087b&&_0x4d3678['isEqual'](_0x49087b)?this['_touchedMarkers']['delete'](_0x44d19f['name']):_0x59a309['userId']=_0x5c8520;}['_handleRootOperation'](_0x13bf63,_0x2d8eaa){this['_diffRoots']['has'](_0x13bf63['rootName'])?this['_diffRoots']['get'](_0x13bf63['rootName'])['_isAttached']=_0x13bf63['isAdd']:(this['_diffRoots']['set'](_0x13bf63['rootName'],P(_0x13bf63['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x13bf63['rootName'],{}),_0x2d8eaa&&this['_idsRoots']['set'](_0x13bf63['rootName'],P(_0x13bf63['rootName'],!0x0)));const _0x48e6d0=null===_0x13bf63['_authorId']?null:_0x13bf63['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x231880=this['_touchedRoots']['get'](_0x13bf63['rootName']);_0x231880&&_0x231880['userId']===_0x48e6d0?this['_touchedRoots']['delete'](_0x13bf63['rootName']):this['_touchedRoots']['set'](_0x13bf63['rootName'],{'userId':_0x48e6d0,'isAttached':_0x13bf63['isAdd']});}['_handleRootAttributeOperation'](_0x4d5c54){const _0x344ec7=this['_diffRootsAttributes']['get'](_0x4d5c54['root']['rootName']);null===_0x4d5c54['newValue']?delete _0x344ec7[_0x4d5c54['key']]:_0x344ec7[_0x4d5c54['key']]=_0x4d5c54['newValue'];}}function N(_0x18c783){const _0xd2396b=P(_0x18c783['rootName'],_0x18c783['isAttached']());for(const _0x416de0 of _0x18c783['getChildren']()){const _0x419c62=_0x416de0['_clone'](!0x0);_0xd2396b['_appendChild'](_0x419c62);}return _0xd2396b;}function P(_0x4aab69,_0x35b26e=!0x0){const _0x3b26fb=new vt();return _0x3b26fb['rootName']=_0x4aab69,_0x3b26fb['_isAttached']=_0x35b26e,_0x3b26fb['isAttached']=()=>_0x3b26fb['_isAttached'],_0x3b26fb;}function F(_0x31cf80,_0x1e4c97,_0x234adb){const _0x5d148d='elementEnd'==_0x31cf80['type']?_0x234adb['createPositionAt'](_0x31cf80['item'],'end'):_0x234adb['createPositionBefore'](_0x31cf80['item']);return _0x234adb['createPositionFromPath'](_0x1e4c97,_0x5d148d['path'],_0x5d148d['stickiness']);}function B(_0x5a9237,_0x15faf0,_0x122d05){const _0x4d7153='elementStart'==_0x5a9237['type']?_0x122d05['createPositionAt'](_0x5a9237['item'],0x0):_0x122d05['createPositionAfter'](_0x5a9237['item']);return _0x122d05['createPositionFromPath'](_0x15faf0,_0x4d7153['path'],_0x4d7153['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x3a1019,_0x132f35){super(_0x3a1019),this['focusTracker']=new _0x3488cf(),this['keystrokes']=new _0x2c3272(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x132f35),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x3247c2(this);}['render'](){super['render'](),_0x10cc82({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x56133e=_0x3714ef=>_0x3714ef['stopPropagation']();this['keystrokes']['set']('arrowright',_0x56133e),this['keystrokes']['set']('arrowleft',_0x56133e),this['keystrokes']['set']('arrowup',_0x56133e),this['keystrokes']['set']('arrowdown',_0x56133e);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x7d0008){this['revisionNameInputView']['fieldView']['element']['value']=_0x7d0008['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x15c994){const _0x2b2b37=new _0x49fa80(this['locale'],_0x32ab91),_0x40ca9f=_0x2b2b37['fieldView'];_0x40ca9f['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x32f412=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x15c994&&(_0x32f412+='\x20('+g(this['locale'],'optional')+')'),(_0x2b2b37['label']=_0x32f412,_0x40ca9f['on']('input',()=>{this['revisionNameInputValue']=_0x40ca9f['element']['value']['trim']();}),_0x2b2b37);}}class f extends _0x5f2429{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x5efde0=this['editor'],_0x56f161=_0x5efde0['plugins']['get']('RevisionTracker');_0x5efde0['ui']['componentFactory']['add']('revisionHistory',_0x31c0c9=>{const _0x59db16=_0x3b8770(_0x31c0c9),_0xa46c1a=_0x59db16['panelView']['children'],_0x334b65=new _0x34576f(_0x31c0c9),_0x5596f8=new _0x1f2ffe(_0x31c0c9),_0x175d07=new te(_0x31c0c9),_0x23bcb1=new _0x1f2ffe(_0x31c0c9),_0x10a81e=new te(_0x31c0c9);return _0x59db16['bind']('isEnabled')['to'](_0x56f161,'isReady',_0x56f161,'isEnabled',_0x5efde0,'isReadOnly',(_0x3b70c2,_0x2b2ac9,_0x242bb3)=>_0x3b70c2&&_0x2b2ac9&&!_0x242bb3),_0x59db16['buttonView']['set']({'icon':_0x3811bd,'label':g(_0x31c0c9,'Revision\x20history'),'tooltip':!0x0}),_0x175d07['set']({'label':g(_0x31c0c9,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x175d07['bind']('isEnabled')['to'](_0x56f161,'isReady',_0x56f161,'isEnabled',_0x5efde0,'isReadOnly',(_0xe63339,_0x2a1e74,_0x159fbd)=>_0xe63339&&_0x2a1e74&&!_0x159fbd),_0x175d07['on']('execute',()=>this['_showDialog']()),_0x10a81e['set']({'label':g(_0x31c0c9,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x10a81e['bind']('isEnabled')['to'](_0x56f161,'isReady',_0x5efde0,'isReadOnly',(_0x3bb4a,_0x5d3ee2)=>_0x3bb4a&&!_0x5d3ee2),_0x10a81e['on']('execute',()=>{_0x5efde0['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x59db16['isOpen']=!0x1,_0x5efde0['editing']['view']['focus']();}),_0x5596f8['children']['add'](_0x175d07),_0x23bcb1['children']['add'](_0x10a81e),_0x334b65['role']='menu',_0x334b65['items']['addMany']([_0x5596f8,_0x23bcb1]),_0xa46c1a['add'](_0x334b65),_0x59db16;}),_0x5efde0['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x28cfd9=this['editor'],_0x534291=_0x28cfd9['locale'],_0x270ec9=new _0x3e5b05(_0x534291),_0x35f25e=new _0x4e1c6c(_0x534291);_0x270ec9['buttonView']['set']({'icon':_0x3811bd,'label':g(_0x534291,'Revision\x20history')});const _0x507f2f=new _0xcf675f(_0x534291,_0x270ec9),_0x35d768=new _0x38c9e3(_0x534291);_0x35d768['set']({'label':g(_0x534291,'Save\x20current\x20revision')}),_0x35d768['delegate']('execute')['to'](_0x270ec9),_0x35d768['on']('execute',()=>{this['_showDialog']();}),_0x507f2f['children']['add'](_0x35d768),_0x35f25e['items']['add'](_0x507f2f);const _0x36c1af=new _0xcf675f(_0x534291,_0x270ec9),_0x1455ad=new _0x38c9e3(_0x534291);return _0x1455ad['set']({'label':g(_0x534291,'Open\x20revision\x20history')}),_0x1455ad['delegate']('execute')['to'](_0x270ec9),_0x1455ad['on']('execute',()=>{_0x28cfd9['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x36c1af['children']['add'](_0x1455ad),_0x35f25e['items']['add'](_0x36c1af),_0x270ec9['panelView']['children']['add'](_0x35f25e),_0x270ec9;}['_showDialog'](){const _0x4db902=this['editor'],_0xf7f1ab=_0x4db902['locale'],_0x257055=_0x4db902['plugins']['get']('Dialog'),_0x9974e=_0x4db902['plugins']['get']('RevisionTracker');function _0x15e803(_0x448990){_0x4db902['config']['get']('revisionHistory.requireRevisionName')&&''===_0x448990['revisionName']?_0x448990['revisionNameInputView']['errorText']=g(_0xf7f1ab,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x4db902['plugins']['get'](u)['saveRevision']({'name':_0x448990['revisionName']}),_0x257055['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x15e803(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x257055['show']({'id':'revisionSave','title':g(_0xf7f1ab,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x4db902['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x257055['hide']()},{'label':g(_0x4db902['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x5c4e45){_0x5c4e45['bind']('isEnabled')['to'](_0x9974e,'isReady',_0x9974e,'isEnabled',_0x4db902,'isReadOnly',(_0x3f3f24,_0x463e0c,_0x3453b6)=>_0x3f3f24&&_0x463e0c&&!_0x3453b6);},'onExecute':()=>_0x15e803(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x4e0b89=this['editor'],_0x5712fd=_0x4e0b89['locale'];this['_saveRevisionFormView']=new hs(_0x5712fd,_0x4e0b89['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends ts{['changeId'];['_model'];constructor(_0x1b78e7,_0x46f1fc){super(_0x1b78e7),this['_model']=_0x46f1fc,this['changeId']=_0x46f1fc['id'];const _0x3c2957=this['bindTemplate'],_0x4e00c8=g(_0x1b78e7,_0x46f1fc['data']['isSuggestion']?'Suggested\x20by':'add'==_0x46f1fc['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x46f1fc['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x3c2957['to']('type',_0x314d2b=>'ck-revision-change__'+_0x314d2b)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x4e00c8}]},{'text':'\x20'+_0x46f1fc['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x540212(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0xdf9d90){super(),this['id']=_0xdf9d90['id']||_0x5d960a(),this['author']=_0xdf9d90['author'],this['type']=_0xdf9d90['type'],this['data']=_0xdf9d90['data']||{},this['rootName']=_0xdf9d90['rootName'],this['set']('createdAt',_0xdf9d90['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(_0x5ed46a,_0x1c9806){this['newRevisionId']=_0x5ed46a,this['oldRevisionId']=_0x1c9806,this['changes']=new _0x47a699();}['_setChanges'](_0x411210){for(const _0x5627d8 of _0x411210)this['changes']['add'](_0x5627d8);}}class m extends _0x5f2429{['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[_0x3be340,_0x35abee,I,V];}constructor(_0x44cb0f){super(_0x44cb0f),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',(_0x3c517b,_0x15f029,_0x5bf1c5)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x3bdf31=>{for(const _0x32bb64 of this['editor']['editing']['view']['document']['roots'])_0x5bf1c5?_0x3bdf31['removeClass']('ck-editor__editable__overlay',_0x32bb64):_0x3bdf31['addClass']('ck-editor__editable__overlay',_0x32bb64);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x2164d7=>null!==_0x2164d7),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0xe9ded6,_0x16bd1e,_0x23bf95)=>_0xe9ded6&&_0x23bf95?_0x16bd1e['changes']['getIndex'](_0x23bf95):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0xe39654,_0x5f05d4)=>_0xe39654?_0x5f05d4['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x35abee);}['init'](){const _0x19aa89=this['editor'],_0x1bbcde=new wt(_0x19aa89,{'direction':'backward'}),_0x3a73d6=new wt(_0x19aa89,{'direction':'forward'});(_0x19aa89['commands']['add']('showPreviousChange',_0x1bbcde),_0x19aa89['commands']['add']('showNextChange',_0x3a73d6),_0x19aa89['commands']['add']('restoreRevision',new mt(_0x19aa89)),this['on']('change:numberOfChanges',()=>{_0x1bbcde['refresh'](),_0x3a73d6['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x19aa89['enableReadOnlyMode']('revision-viewer'),_0x19aa89['plugins']['has']('WidgetToolbarRepository'))&&_0x19aa89['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x3cc697){return await this['_utils']['loadRevisionData'](_0x3cc697,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x3cc697);}async['getRevisionRootsAttributes'](_0x5f0146){return await this['_utils']['loadRevisionData'](_0x5f0146,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x5f0146);}async['compare'](_0x34e027,_0x46296e,_0x3223dc=!0x1){if(!this['isEnabled'])return;const _0x3f2eb8=this['diff'],_0x26c959=this['repository'],_0x370a81='string'==typeof _0x34e027?_0x26c959['getRevision'](_0x34e027):_0x34e027,_0x3626be='string'==typeof _0x46296e?_0x26c959['getRevision'](_0x46296e):_0x46296e,_0x5dd489=_0x370a81['id'],_0x523447=_0x3626be?_0x3626be['id']:null;if(!_0x3223dc&&this['diff']&&this['diff']['newRevisionId']===_0x5dd489&&this['diff']['oldRevisionId']===_0x523447)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x5dd489,_0x523447);const _0x5af2b8=this['_getRevisionsRange'](_0x370a81,_0x3626be,!0x0)['map'](_0x4423c2=>this['_utils']['loadRevisionData'](_0x4423c2,this['adapter']));return _0x5af2b8['push'](new Promise(_0x248df2=>{setTimeout(_0x248df2,0x14);})),Promise['all'](_0x5af2b8)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x1af211=this['_getDiff'](_0x5dd489,_0x523447);for(const _0x4f222b of _0x1af211['changes'])this['_changeIdToChange']['set'](_0x4f222b['id'],_0x4f222b);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0xaf8bb9=>{for(const _0x7452e0 of this['editor']['model']['document']['getRootNames']())_0xaf8bb9['detachRoot'](_0x7452e0);for(const _0x54ad80 of Object['keys'](_0x1af211['model'])){const _0x2700a9=_0xaf8bb9['addRoot'](_0x54ad80);for(const _0x29bf98 of Object['keys'](_0x1af211['attributes'][_0x54ad80]))_0xaf8bb9['setAttribute'](_0x29bf98,_0x1af211['attributes'][_0x54ad80][_0x29bf98],_0x2700a9);_0xaf8bb9['insert'](_0x1af211['model'][_0x54ad80],_0x2700a9,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x1af211['changes'])),this['isReady']=!0x0;})['catch'](_0x2513c1=>{console['error'](_0x2513c1),this['_cleanUp'](),_0x3f2eb8&&(this['diff']=_0x3f2eb8),this['isReady']=!0x0;});}['addRevisionData'](_0x3634f6,_0x4753f8){const _0x266f54=this['repository']['createRevision'](_0x3634f6);return _0x266f54['on']('_update',(_0x31097b,_0x205ad0,_0x593786)=>_0x4753f8(_0x205ad0,_0x593786,_0x266f54)),this['repository']['addRevision'](_0x266f54),_0x266f54;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x553075=>{for(const _0x1fec55 of this['editor']['model']['document']['getRootNames']())_0x553075['detachRoot'](_0x1fec55);});}['_sortAndFilterDiffChanges'](_0x420c0f){const _0x4401e8=[],_0x925676=new Map();for(const _0x279c3e of this['editor']['model']['document']['getRootNames']()){const _0x439db6=this['editor']['editing']['view']['getDomRoot'](_0x279c3e);if(!_0x439db6)continue;const _0x4c4e7f=_0x439db6['getClientRects']()['item'](0x0);_0x4c4e7f&&(_0x4401e8['push'](_0x279c3e),_0x925676['set'](_0x279c3e,_0x4c4e7f));}return _0x4401e8['sort']((_0x4c6078,_0x3e7ccb)=>{const _0x1b9e1f=_0x925676['get'](_0x4c6078),_0x2a6ec5=_0x925676['get'](_0x3e7ccb);return _0x1b9e1f['y']-_0x2a6ec5['y']||_0x1b9e1f['x']-_0x2a6ec5['x'];}),(_0x420c0f=_0x420c0f['filter'](_0x449430=>_0x4401e8['includes'](_0x449430['rootName'])))['sort']((_0x5b5058,_0x41c0a6)=>_0x4401e8['indexOf'](_0x5b5058['rootName'])-_0x4401e8['indexOf'](_0x41c0a6['rootName'])),_0x420c0f;}['_makeTape'](_0x20f7a8){const _0x183648=Array['from'](_0x20f7a8['markers'])['filter'](([_0x5a3422,_0x899c60])=>_0x5a3422['startsWith']('revision:')&&!_0x899c60['isCollapsed']),_0x432c31=Array['from'](this['editor']['model']['createRangeIn'](_0x20f7a8)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x183648['length'])for(const _0x29cf04 of _0x432c31){const [_0x201786,_0x506c2f]=_0x183648[0x0],[,_0x33fc03,_0x488231]=_0x201786['split'](':');if(_0x506c2f['end']['isEqual'](_0x29cf04['nextPosition'])&&_0x183648['shift'](),(_0x29cf04['previousPosition']['isEqual'](_0x506c2f['start'])||_0x29cf04['previousPosition']['isAfter'](_0x506c2f['start']))&&('insertion'==_0x33fc03?_0x29cf04['isAdded']={'userId':_0x488231}:'deletion'==_0x33fc03&&(_0x29cf04['isRemoved']={'userId':_0x488231})),0x0==_0x183648['length'])break;}return _0x432c31;}['_refreshStartEndIndex'](_0x3ffd06){const _0x1a7cc3=new Map();for(let _0x3a55a6=0x0;_0x3a55a6<_0x3ffd06['length'];_0x3a55a6++)'text'===_0x3ffd06[_0x3a55a6]['type']?(_0x3ffd06[_0x3a55a6]['item']['startIndex']=_0x3a55a6,_0x3ffd06[_0x3a55a6]['item']['endIndex']=_0x3a55a6):('elementStart'===_0x3ffd06[_0x3a55a6]['type']?_0x3ffd06[_0x3a55a6]['item']['startIndex']=_0x3a55a6:'elementEnd'===_0x3ffd06[_0x3a55a6]['type']&&(_0x3ffd06[_0x3a55a6]['item']['endIndex']=_0x3a55a6),_0x1a7cc3['set'](_0x3ffd06[_0x3a55a6]['id'],_0x3a55a6));for(const _0xb4756e of _0x1a7cc3['values']())'elementStart'===_0x3ffd06[_0xb4756e]['type']?_0x3ffd06[_0xb4756e]['item']['endIndex']=_0x1a7cc3['get'](_0x3ffd06[_0xb4756e]['pairId']):'elementEnd'===_0x3ffd06[_0xb4756e]['type']&&(_0x3ffd06[_0xb4756e]['item']['startIndex']=_0x1a7cc3['get'](_0x3ffd06[_0xb4756e]['pairId']));}['_processTape'](_0x10d9b1){for(let _0xd5b9d5=0x0;_0xd5b9d5<_0x10d9b1['length'];_0xd5b9d5++){if('elementStart'===_0x10d9b1[_0xd5b9d5]['type'])_0x10d9b1[_0xd5b9d5]['item']['startIndex']=_0xd5b9d5;else{if('elementEnd'===_0x10d9b1[_0xd5b9d5]['type']){_0x10d9b1[_0xd5b9d5]['item']['endIndex']=_0xd5b9d5;const _0x1c53d1=_0x10d9b1[_0xd5b9d5]['item']['startIndex'];_0x10d9b1[_0x1c53d1]['pairId']=_0x10d9b1[_0xd5b9d5]['id'],_0x10d9b1[_0xd5b9d5]['pairId']=_0x10d9b1[_0x1c53d1]['id'];}else _0x10d9b1[_0xd5b9d5]['item']['startIndex']=_0xd5b9d5,_0x10d9b1[_0xd5b9d5]['item']['endIndex']=_0xd5b9d5,_0x10d9b1[_0xd5b9d5]['pairId']=null;}_0x10d9b1[_0xd5b9d5]['markersStart']||(_0x10d9b1[_0xd5b9d5]['markersStart']=[],_0x10d9b1[_0xd5b9d5]['markersEnd']=[]);}}['_markInsertions'](_0x4990a2,_0x2a8cb4){const _0x358175=_0x4990a2['filter'](_0x487914=>!_0x487914['isAdded']);for(let _0x305d40=0x0;_0x305d40<_0x2a8cb4['length'];_0x305d40++)_0x2a8cb4[_0x305d40]['isAdded']&&(_0x358175[_0x305d40]['isAdded']=_0x2a8cb4[_0x305d40]['isAdded']);}['_getDiff'](_0x3e5a67,_0x5b9d9e=null){const _0x253870=this['repository']['getRevision'](_0x3e5a67),_0x3fa21e=_0x5b9d9e?this['repository']['getRevision'](_0x5b9d9e):null,_0x1d196a=this['_getRevisionsRange'](_0x253870,_0x3fa21e),_0x21a58a=_0x1d196a[_0x1d196a['length']-0x1],_0x1525c9=new Map(),_0x3dc397={'model':{},'attributes':{},'changes':[]},_0x2e5873=new Set(),_0x1300e9=new Map();for(let _0x20e70c=_0x1d196a['length']-0x1;_0x20e70c>=0x0;_0x20e70c--){const _0x5a9e95=_0x1d196a[_0x20e70c];for(const _0x33df0b of Object['keys'](_0x5a9e95['diffData']))if(_0x5a9e95['diffData'][_0x33df0b]['attachChange']){const _0x33b944=_0x5a9e95['diffData'][_0x33df0b]['attachChange'];_0x33b944['isAttached']?(_0x2e5873['add'](_0x33df0b),_0x1300e9['has'](_0x33df0b)&&_0x1300e9['get'](_0x33df0b)['userId']==_0x33b944['userId']?_0x1300e9['delete'](_0x33df0b):_0x1300e9['set'](_0x33df0b,_0x33b944)):_0x1300e9['has'](_0x33df0b)?(_0x2e5873['delete'](_0x33df0b),_0x1300e9['delete'](_0x33df0b)):(_0x2e5873['add'](_0x33df0b),_0x1300e9['set'](_0x33df0b,_0x33b944));}else _0x2e5873['add'](_0x33df0b);}for(const _0x1335fb of _0x2e5873){const _0x2b5968=_0x1300e9['has'](_0x1335fb)&&!_0x1300e9['get'](_0x1335fb)['isAttached'];let _0x20db02=_0x2b5968?_0x1d196a['length']-0x1:0x0;const _0x519d9f=_0x2b5968?-0x1:0x1;for(;_0x1d196a[_0x20db02];){const _0x3ca0a7=_0x1d196a[_0x20db02];if(_0x3ca0a7['diffData'][_0x1335fb]){const _0x178a62=_0x2b5968?_0x3ca0a7['diffData'][_0x1335fb]['attributesBefore']:_0x3ca0a7['diffData'][_0x1335fb]['attributesAfter'];_0x3dc397['attributes'][_0x1335fb]=_0x178a62?_0x4fdf13(_0x178a62):{};break;}_0x20db02+=_0x519d9f;}}for(const _0xd3a46e of _0x1d196a){_0xd3a46e['model']={};for(const _0x56b1f5 of _0xd3a46e['authors'])_0x1525c9['set'](_0x56b1f5['id'],_0x56b1f5);for(const _0x4cb8f3 of _0x2e5873){const _0x5a08e6=_0xd3a46e['diffData'][_0x4cb8f3]?_0xd3a46e['diffData'][_0x4cb8f3]['insertions']:'[]',_0x1ee3f7=_0xd3a46e['diffData'][_0x4cb8f3]?_0xd3a46e['diffData'][_0x4cb8f3]['deletions']:'[]';_0xd3a46e['model'][_0x4cb8f3]={'insertions':this['_utils']['_makeModelFromViewString'](_0x5a08e6),'deletions':this['_utils']['_makeModelFromViewString'](_0x1ee3f7)};}}for(const _0x42806c of _0x2e5873){let _0x191125=null,_0x4e0b7c=0x0;const _0xfda3da=new Map(Array['from'](_0x253870['model'][_0x42806c]['insertions']['markers'])['filter'](([_0x435056])=>!_0x435056['startsWith']('revision:')));let _0x5d4379=0x0;for(const _0xaeb2ee of _0x1d196a){const _0x1cf7e1=this['_makeTape'](_0xaeb2ee['model'][_0x42806c]['insertions']);_0xaeb2ee==_0x253870?(_0x191125=_0x1cf7e1,_0x4e0b7c=_0x191125['length'],_0x191125['forEach'](_0x34149b=>{_0x34149b['id']=_0x5d4379++;}),this['_processTape'](_0x191125)):this['_markInsertions'](_0x191125,_0x1cf7e1);const _0x344ba2=_0x191125['filter'](_0x46b063=>!_0x46b063['isAdded'])['map'](_0x3f5090=>_0x3f5090['id']);let _0x5bef3f=0x0;const _0x40f085=this['_makeTape'](_0xaeb2ee['model'][_0x42806c]['deletions']);_0x40f085['forEach'](_0x55ec85=>{_0x55ec85['isRemoved']?_0x55ec85['id']=_0x4e0b7c++:_0x55ec85['id']=_0x344ba2[_0x5bef3f++];}),this['_processTape'](_0x40f085),this['_setDistance'](_0x191125,'isAdded'),this['_setDistance'](_0x40f085,'isRemoved'),_0xaeb2ee==_0x253870&&this['_markMarkers'](_0x191125,_0xfda3da),_0x191125=this['_joinTapes'](_0x191125,_0x40f085),this['_refreshStartEndIndex'](_0x191125),this['_setDistance'](_0x191125,'isRemoved');}_0x191125=_0x191125['filter'](_0x1eb723=>!(_0x1eb723['isAdded']&&_0x1eb723['isRemoved']));const _0x224804=new Map(_0x21a58a['model'][_0x42806c]['deletions']['markers']),_0x19aa03=new Set(_0xfda3da['keys']());for(const _0x321675 of _0x224804['keys']())_0x19aa03['delete'](_0x321675);this['_markSuggestions'](_0x191125,_0x19aa03),this['_fixObsoleteTags'](_0x191125),_0x191125=this['_removeMissingPairs'](_0x191125),_0x191125=this['_markMismatchedRemovedTags'](_0x191125),_0x191125=this['_removeUnsupportedChanges'](_0x191125);const {root:_0x4675f0,changes:_0x61a857}=this['_makeModelFromTape'](_0x191125,_0x1525c9,_0x42806c);_0x3dc397['model'][_0x42806c]=_0x4675f0;const _0x3af38a=_0x1300e9['get'](_0x42806c);if(_0x3af38a){const _0x4b3388=_0x1525c9['get'](_0x3af38a['userId']),_0x111708=new r({'author':_0x4b3388,'type':_0x3af38a['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x42806c});_0x61a857['unshift'](_0x111708),_0x3dc397['attributes'][_0x42806c]['revisionHistoryAttachChange']=_0x111708['id'];}_0x3dc397['changes']=_0x3dc397['changes']['concat'](_0x61a857);}return _0x3dc397;}['_markMarkers'](_0x1ba3f0,_0x21fce6){for(let _0x408cb7=0x0;_0x408cb7<_0x1ba3f0['length'];_0x408cb7++)for(const [_0x4580f1,_0x464592]of _0x21fce6)!_0x464592['isCollapsed']&&_0x464592['start']['isEqual'](_0x1ba3f0[_0x408cb7]['previousPosition'])&&_0x1ba3f0[_0x408cb7]['markersStart']['push'](_0x4580f1),_0x464592['end']['isEqual'](_0x1ba3f0[_0x408cb7]['nextPosition'])&&_0x1ba3f0[_0x408cb7]['markersEnd']['push'](_0x4580f1);}['_joinTapes'](_0xcd5976,_0x563e8b){let _0x2a9ef9=[],_0x86fac3=0x0,_0x2543fb=0x0;for(;_0x86fac3<_0xcd5976['length']||_0x2543fb<_0x563e8b['length'];){const _0x13f434=_0xcd5976[_0x86fac3]||{},_0x2656a1=_0x563e8b[_0x2543fb]||{};if(_0x13f434['id']==_0x2656a1['id'])_0x86fac3++,_0x2543fb++,_0x2a9ef9['push'](_0x13f434);else{if(_0x2656a1['isRemoved']&&_0x13f434['isAdded']){const {commonTape:_0x332a60,iEnd:_0x3c0007,jEnd:_0x3439f0}=this['_threeWayMerge'](_0xcd5976,_0x86fac3,_0x563e8b,_0x2543fb);_0x2a9ef9=_0x2a9ef9['concat'](_0x332a60),_0x86fac3=_0x3c0007,_0x2543fb=_0x3439f0;}else _0x2656a1['isRemoved']?(_0x2543fb++,_0x2a9ef9['push'](_0x2656a1)):(_0x86fac3++,_0x2a9ef9['push'](_0x13f434));}}return _0x2a9ef9;}['_markSuggestions'](_0x5c71a3,_0x29f40d){const _0x2eef9b=[];for(let _0x449a20=0x0;_0x449a20<_0x5c71a3['length'];_0x449a20++){for(let _0x501748=0x0;_0x501748<_0x5c71a3[_0x449a20]['markersStart']['length'];_0x501748++){const _0x535e8d=_0x5c71a3[_0x449a20]['markersStart'][_0x501748];if(!_0x29f40d['has'](_0x535e8d))continue;const {group:_0x2f8bf1,type:_0x3b0665,authorId:_0x47587f}=_0x15543d(_0x535e8d);'revision-suggestion'!=_0x2f8bf1||'insertion'!=_0x3b0665&&'deletion'!=_0x3b0665||(_0x2eef9b['unshift']({'type':_0x3b0665,'name':_0x535e8d,'userId':_0x47587f}),_0x5c71a3[_0x449a20]['markersStart']['splice'](_0x501748,0x1),_0x501748--);}_0x290858(_0x5c71a3[_0x449a20]);for(let _0x17a2c9=0x0;_0x17a2c9<_0x5c71a3[_0x449a20]['markersEnd']['length'];_0x17a2c9++){const _0x47cd40=_0x5c71a3[_0x449a20]['markersEnd'][_0x17a2c9];if(!_0x29f40d['has'](_0x47cd40))continue;const {group:_0x48d4a6,type:_0x16e1c4}=_0x15543d(_0x47cd40);if('revision-suggestion'!=_0x48d4a6||'insertion'!=_0x16e1c4&&'deletion'!=_0x16e1c4)continue;_0x5c71a3[_0x449a20]['markersEnd']['splice'](_0x17a2c9,0x1),_0x17a2c9--;const _0xf4c909=_0x2eef9b['findIndex'](_0x391d0f=>_0x391d0f['name']==_0x47cd40);_0xf4c909>-0x1&&_0x2eef9b['splice'](_0xf4c909,0x1);}}function _0x15543d(_0x2899c3){const _0x3bd97c=_0x2899c3['split'](':');return{'group':_0x3bd97c[0x0],'type':_0x3bd97c[0x1],'subType':_0x3bd97c['length']>=0x5?_0x3bd97c[0x2]:null,'id':_0x3bd97c['length']<0x5?_0x3bd97c[0x2]:_0x3bd97c[0x3],'authorId':_0x3bd97c['length']<0x5?_0x3bd97c[0x3]:_0x3bd97c[0x4],'markerCount':0x6==_0x3bd97c['length']?_0x3bd97c[0x5]:null};}function _0x290858(_0x1002ee){for(let _0x33e72b=0x0;_0x33e72b<_0x2eef9b['length'];_0x33e72b++){if(_0x1002ee['isAdded']&&'insertion'==_0x2eef9b[_0x33e72b]['type'])return _0x1002ee['isAddSuggestion']=_0x2eef9b[_0x33e72b],void delete _0x1002ee['isAdded'];if(!_0x1002ee['isAdded']&&!_0x1002ee['isRemoved']&&'deletion'==_0x2eef9b[_0x33e72b]['type'])return void(_0x1002ee['isRemoveSuggestion']=_0x2eef9b[_0x33e72b]);}}}['_setDistance'](_0xbd8be7,_0x482712){let _0xd775e8=0x0,_0x101cee=!0x1;const _0x403b79=new Map();for(const _0x131afd of _0xbd8be7)_0x131afd[_0x482712]?_0x101cee&&(_0xd775e8++,_0x101cee=!0x1):(_0xd775e8++,_0x101cee=!0x0),_0x403b79['set'](_0x131afd['id'],_0xd775e8);for(let _0x8fbb6c=0x0;_0x8fbb6c<_0xbd8be7['length'];_0x8fbb6c++){if('isRemoved'==_0x482712&&_0xbd8be7[_0x8fbb6c]['isAdded']||'isAdded'==_0x482712&&_0xbd8be7[_0x8fbb6c]['isRemoved'])continue;if('text'==_0xbd8be7[_0x8fbb6c]['type']){_0xbd8be7[_0x8fbb6c]['distance']=0x0;continue;}const _0x4460a8=_0x403b79['get'](_0xbd8be7[_0x8fbb6c]['pairId']),_0x4eae92=_0x403b79['get'](_0xbd8be7[_0x8fbb6c]['id']);_0xbd8be7[_0x8fbb6c]['distance']=_0x4460a8-_0x4eae92;}}['_getRevisionsRange'](_0x36f274,_0x28bc48,_0x292647=!0x1){const _0x40709f=[];let _0x14bdd8=this['repository']['getIndex'](_0x36f274),_0xb7ea41=this['repository']['getIndex'](_0x28bc48);for(-0x1==_0xb7ea41&&(_0xb7ea41=this['repository']['_revisions']['length'],_0x292647=!0x1);_0x14bdd8<_0xb7ea41;)_0x40709f['push'](this['repository']['getRevision'](_0x14bdd8)),_0x14bdd8++;return _0x292647&&_0x40709f['push'](this['repository']['getRevision'](_0x14bdd8)),_0x40709f;}['_threeWayMerge'](_0x1c08ab,_0x5559fc,_0x16a1d7,_0x8171fc){const _0x1b6ca4=this['editor']['model']['schema'];let _0x246fd7=_0x5559fc;for(;_0x1c08ab[_0x246fd7]&&_0x1c08ab[_0x246fd7]['isAdded'];)_0x246fd7++;let _0x3d026d=_0x8171fc;for(;_0x16a1d7[_0x3d026d]&&_0x16a1d7[_0x3d026d]['isRemoved'];)_0x3d026d++;_0x1df9c1(_0x1c08ab,_0x5559fc,_0x246fd7),_0x1df9c1(_0x16a1d7,_0x8171fc,_0x3d026d);const _0x979a62=_0x16a1d7['slice'](_0x8171fc,_0x3d026d)['concat'](_0x1c08ab['slice'](_0x5559fc,_0x246fd7));return _0x979a62['sort']((_0x597db1,_0x194243)=>_0x597db1['side']!=_0x194243['side']?_0x597db1['side']-_0x194243['side']:_0x597db1['level']!=_0x194243['level']?_0x597db1['level']-_0x194243['level']:_0x597db1['distance']!=_0x194243['distance']?_0x194243['distance']-_0x597db1['distance']:!!_0x597db1['isAdded']!=!!_0x194243['isAdded']?-0x1==_0x597db1['side']||0x0==_0x597db1['side']?_0x597db1['isAdded']?-0x1:0x1:_0x597db1['isAdded']?0x1:-0x1:_0x597db1['index']-_0x194243['index']),{'commonTape':_0x979a62,'iEnd':_0x246fd7,'jEnd':_0x3d026d};function _0x1df9c1(_0x11e9e5,_0x535e17,_0x28ad11){let _0x41bc37=-0x1,_0x2beb50=Number['POSITIVE_INFINITY'],_0x2e921c=!0x0;for(let _0x48935a=_0x535e17;_0x48935a<_0x28ad11;_0x48935a++)if(_0x1b6ca4['isInline'](_0x11e9e5[_0x48935a]['item'])||(_0x2e921c=!0x1),_0x11e9e5[_0x48935a]['item']['startIndex']<_0x535e17&&(_0x41bc37=_0x48935a),_0x11e9e5[_0x48935a]['item']['endIndex']>=_0x28ad11){_0x2beb50=_0x48935a;break;}_0x2e921c&&(_0x41bc37=_0x28ad11-0x1);for(let _0x48a5c8=_0x535e17;_0x48a5c8<_0x28ad11;_0x48a5c8++)_0x11e9e5[_0x48a5c8]['side']=_0x48a5c8<=_0x41bc37?-0x1:_0x48a5c8<_0x2beb50?0x0:0x1,_0x11e9e5[_0x48a5c8]['index']=_0x48a5c8;let _0x4f3f22=0x0;for(let _0x3c5646=_0x535e17;_0x3c5646<=_0x41bc37;_0x3c5646++)0x0==_0x11e9e5[_0x3c5646]['distance']?_0x11e9e5[_0x3c5646]['level']=_0x4f3f22:(_0x4f3f22++,_0x11e9e5[_0x3c5646]['level']=_0x4f3f22,_0x4f3f22++);for(let _0x241bbc=_0x535e17;_0x241bbc<_0x28ad11;_0x241bbc++)0x0==_0x11e9e5[_0x241bbc]['side']&&(_0x11e9e5[_0x241bbc]['level']=_0x4f3f22);_0x4f3f22=0x0;for(let _0x5b0b06=_0x28ad11-0x1;_0x5b0b06>=_0x2beb50;_0x5b0b06--)0x0==_0x11e9e5[_0x5b0b06]['distance']?_0x11e9e5[_0x5b0b06]['level']=_0x4f3f22:(_0x4f3f22--,_0x11e9e5[_0x5b0b06]['level']=_0x4f3f22,_0x4f3f22--);}}['_fixObsoleteTags'](_0x2efebf){const _0x471b8d=new Map(),_0x2a2add=this['editor']['model']['schema'];for(let _0x2574de=0x1;_0x2574de<_0x2efebf['length'];_0x2574de++){let _0x129b1b,_0x5bf39e,_0x188d1c;const _0x4a4600=_0x2efebf[_0x2574de],_0x3fa606=_0x2efebf[_0x2574de-0x1];if('text'==_0x4a4600['type'])continue;if(_0x4a4600['type']!=_0x3fa606['type'])continue;if(!_0x2a2add['isBlock'](_0x3fa606['item'])||_0x2a2add['isLimit'](_0x3fa606['item']))continue;if(!_0x2a2add['isBlock'](_0x4a4600['item'])||_0x2a2add['isLimit'](_0x4a4600['item']))continue;if((_0x2efebf[_0x2574de]['isAdded']||_0x2efebf[_0x2574de]['isAddSuggestion'])&&_0x2efebf[_0x2574de-0x1]['isRemoved'])_0x129b1b=_0x2efebf[_0x2574de],_0x5bf39e=_0x2efebf[_0x2574de-0x1],_0x188d1c=_0x2574de-0x1;else{if(!_0x2efebf[_0x2574de]['isRemoved']||!_0x2efebf[_0x2574de-0x1]['isAdded']&&!_0x2efebf[_0x2574de-0x1]['isAddSuggestion'])continue;_0x129b1b=_0x2efebf[_0x2574de-0x1],_0x5bf39e=_0x2efebf[_0x2574de],_0x188d1c=_0x2574de;}const _0xf0eec3=_0x129b1b['level']==_0x5bf39e['level'],_0x9c291c=Math['abs'](_0x129b1b['level'])<Math['abs'](_0x5bf39e['level'])&&0x0==_0x5bf39e['distance'];(_0xf0eec3||_0x9c291c)&&(_0x471b8d['set'](_0x5bf39e['id'],_0x129b1b['id']),_0x2efebf['splice'](_0x188d1c,0x1),_0x2574de--,_0x129b1b['isAdded']=!0x1);}for(let _0x1aa1a1=0x0;_0x1aa1a1<_0x2efebf['length'];_0x1aa1a1++)_0x471b8d['has'](_0x2efebf[_0x1aa1a1]['pairId'])&&(_0x2efebf[_0x1aa1a1]['pairId']=_0x471b8d['get'](_0x2efebf[_0x1aa1a1]['pairId']));}['_removeMissingPairs'](_0x121f27){const _0x2aacb8=new Set(_0x121f27['map'](_0x165c1b=>_0x165c1b['id']));for(let _0x1bc184=0x0;_0x1bc184<_0x121f27['length'];_0x1bc184++)_0x2aacb8['has'](_0x121f27[_0x1bc184]['pairId'])||0x0==_0x121f27[_0x1bc184]['distance']||(_0x121f27[_0x1bc184]['isIncorrect']=!0x0);return _0x121f27['filter'](_0x5cbc0b=>!_0x5cbc0b['isIncorrect']);}['_markMismatchedRemovedTags'](_0xdf62d){const _0xa7530c=new Set();for(let _0x1c94c9=0x0;_0x1c94c9<_0xdf62d['length'];_0x1c94c9++){if(_0xa7530c['has'](_0xdf62d[_0x1c94c9]['id'])&&_0xdf62d[_0x1c94c9]['isRemoved']&&(_0xdf62d[_0x1c94c9]['isIncorrect']=!0x0),_0xdf62d[_0x1c94c9]['isIncorrect'])continue;if(0x0==_0xdf62d[_0x1c94c9]['distance'])continue;if('elementStart'!=_0xdf62d[_0x1c94c9]['type'])continue;if(null==_0xdf62d[_0x1c94c9]['pairId'])continue;let _0x24c057=_0x1c94c9+0x1,_0x3357fb=0x0;for(;_0xdf62d[_0x24c057]['id']!=_0xdf62d[_0x1c94c9]['pairId'];)'elementStart'==_0xdf62d[_0x24c057]['type']?_0x3357fb++:'elementEnd'==_0xdf62d[_0x24c057]['type']&&_0x3357fb--,_0x24c057++;if(0x0!=_0x3357fb){if(_0xdf62d[_0x1c94c9]['isRemoved'])_0xdf62d[_0x1c94c9]['isIncorrect']=!0x0;else{for(;_0x24c057!=_0x1c94c9;)_0xdf62d[_0x24c057]['isRemoved']&&0x0!=_0xdf62d[_0x24c057]['distance']&&(_0xdf62d[_0x24c057]['isIncorrect']=!0x0,_0xa7530c['add'](_0xdf62d[_0x24c057]['pairId'])),_0x24c057--;}}}return _0xdf62d['filter'](_0x540b80=>!_0x540b80['isIncorrect']);}['_removeUnsupportedChanges'](_0x54527a){const _0x26630c=this['editor']['model']['schema'];for(let _0x151f32=0x0;_0x151f32<_0x54527a['length'];_0x151f32++){if(!(_0x54527a[_0x151f32]['isAdded']||_0x54527a[_0x151f32]['isAddSuggestion']||_0x54527a[_0x151f32]['isRemoved']||_0x54527a[_0x151f32]['isRemoveSuggestion']))continue;if(0x0==_0x54527a[_0x151f32]['distance'])continue;const _0x2e94d2=_0x54527a[_0x151f32]['item'];_0x26630c['isBlock'](_0x2e94d2)||_0x26630c['isLimit'](_0x2e94d2)||(_0x54527a[_0x151f32]['isAdded']&&delete _0x54527a[_0x151f32]['isAdded'],_0x54527a[_0x151f32]['isAddSuggestion']&&delete _0x54527a[_0x151f32]['isAddSuggestion'],_0x54527a[_0x151f32]['isRemoveSuggestion']&&delete _0x54527a[_0x151f32]['isRemoveSuggestion'],_0x54527a[_0x151f32]['isRemoved']&&(_0x54527a[_0x151f32]['isIncorrect']=!0x0));}return _0x54527a['filter'](_0x438b86=>!_0x438b86['isIncorrect']);}['_makeModelFromTape'](_0x1270b6,_0x54a80f,_0x39e8e1){const _0xc6454d=new vt(),_0x428e97=[],_0x573538=new Map(),_0x1801a6=this['editor']['model'],_0x2b4326=_0x1801a6['schema'],_0x1dc65e=[_0xc6454d],_0x2f79ea={},_0x592418={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x18a0a8=null;const _0x14a46c=[0x0];for(let _0x191a9e=0x0;_0x191a9e<_0x1270b6['length'];_0x191a9e++)if('elementStart'===_0x1270b6[_0x191a9e]['type']){_0x1270b6[_0x191a9e]['previousPosition']=_0x1801a6['createPositionFromPath'](_0xc6454d,_0x14a46c);const _0x105d5d=new ut(_0x1270b6[_0x191a9e]['item']['name'],_0x1270b6[_0x191a9e]['item']['getAttributes']());_0x1dc65e[0x0]['_appendChild'](_0x105d5d),_0x14a46c['push'](0x0),_0x1dc65e['unshift'](_0x105d5d),_0x1270b6[_0x191a9e]['nextPosition']=_0x1801a6['createPositionFromPath'](_0xc6454d,_0x14a46c);}else'elementEnd'===_0x1270b6[_0x191a9e]['type']?(_0x1dc65e['shift'](),_0x1270b6[_0x191a9e]['previousPosition']=_0x1801a6['createPositionFromPath'](_0xc6454d,_0x14a46c),_0x14a46c['pop'](),_0x14a46c[_0x14a46c['length']-0x1]++,_0x1270b6[_0x191a9e]['nextPosition']=_0x1801a6['createPositionFromPath'](_0xc6454d,_0x14a46c)):(_0x1270b6[_0x191a9e]['previousPosition']=_0x1801a6['createPositionFromPath'](_0xc6454d,_0x14a46c),_0x18a0a8?_0x18a0a8['_data']+=_0x1270b6[_0x191a9e]['item']['data']:_0x18a0a8=new gt(_0x1270b6[_0x191a9e]['item']['data'],_0x1270b6[_0x191a9e]['item']['getAttributes']()),_0x1270b6[_0x191a9e+0x1]&&'text'===_0x1270b6[_0x191a9e+0x1]['type']&&_0x95d37a(_0x18a0a8,_0x1270b6[_0x191a9e+0x1]['item'])||(_0x1dc65e[0x0]['_appendChild'](_0x18a0a8),_0x18a0a8=null),_0x14a46c[_0x14a46c['length']-0x1]+=_0x1270b6[_0x191a9e]['item']['offsetSize'],_0x1270b6[_0x191a9e]['nextPosition']=_0x1801a6['createPositionFromPath'](_0xc6454d,_0x14a46c));for(let _0x3aafa9=0x0;_0x3aafa9<_0x1270b6['length'];_0x3aafa9++){const _0x1f72b7=_0x1270b6[_0x3aafa9]['previousPosition'],_0x34adf2=_0x1270b6[_0x3aafa9]['nextPosition'];for(const _0x5e0c20 of _0x1270b6[_0x3aafa9]['markersStart'])_0x573538['set'](_0x5e0c20,{'start':_0x1f72b7,'end':null});_0x3a5f84('isRemoveSuggestion',_0x3aafa9,_0x1f72b7,_0x34adf2),_0x3a5f84('isAddSuggestion',_0x3aafa9,_0x1f72b7,_0x34adf2),_0x3a5f84('isRemoved',_0x3aafa9,_0x1f72b7,_0x34adf2),_0x3a5f84('isAdded',_0x3aafa9,_0x1f72b7,_0x34adf2);for(const _0x2e9034 of _0x1270b6[_0x3aafa9]['markersEnd']){const _0x576c1f=_0x573538['get'](_0x2e9034);_0x576c1f?_0x576c1f['end']=_0x34adf2:_0x573538['set'](_0x2e9034,{'start':_0x34adf2,'end':_0x34adf2});}}for(const [_0x5aec89,_0x395a09]of _0x573538){const _0x521d37=this['editor']['model']['createRange'](_0x395a09['start'],_0x395a09['end']);_0xc6454d['markers']['set'](_0x5aec89,_0x521d37);}return _0x428e97['sort']((_0x4a8397,_0x2bcd18)=>{const _0x14ed00=_0xc6454d['markers']['get']('revision:'+_0x4a8397['id']),_0x3121e0=_0xc6454d['markers']['get']('revision:'+_0x2bcd18['id']);return _0x14ed00['start']['isBefore'](_0x3121e0['start'])?-0x1:_0x14ed00['start']['isAfter'](_0x3121e0['start'])?0x1:_0x14ed00['end']['isBefore'](_0x3121e0['end'])?-0x1:_0x14ed00['end']['isAfter'](_0x3121e0['end'])?0x1:'add'===_0x4a8397['type']?-0x1:0x1;}),{'root':_0xc6454d,'changes':_0x428e97};function _0x3a5f84(_0xd40126,_0x275280,_0x2b1383,_0x1beb33){const _0x8bc23a=!!_0x1270b6[_0x275280][_0xd40126],_0x535b6a=_0x8bc23a?_0x1270b6[_0x275280][_0xd40126]['userId']:null,_0x5ed95e=_0x275280===_0x1270b6['length']-0x1,_0x4d86c4=_0x592418[_0xd40126][0x0],_0x37006c=_0x2b4326['isObject'](_0x1270b6[_0x275280]['item']);!_0x2f79ea[_0xd40126]&&_0x8bc23a?_0x2f79ea[_0xd40126]={'start':_0x2b1383,'tapeItem':_0x1270b6[_0x275280],'userId':_0x535b6a,'type':_0xd40126}:_0x2f79ea[_0xd40126]&&!_0x8bc23a?(_0x2f79ea[_0xd40126]['end']=_0x2b1383,_0x37ac06(_0x2f79ea[_0xd40126]),_0x2f79ea[_0xd40126]=null):_0x2f79ea[_0xd40126]&&_0x8bc23a&&_0x2f79ea[_0xd40126]['userId']!==_0x535b6a&&(_0x2f79ea[_0xd40126]['end']=_0x2b1383,_0x4d86c4&&_0x4d86c4['userId']===_0x2f79ea[_0xd40126]['userId']||_0x37ac06(_0x2f79ea[_0xd40126]),_0x2f79ea[_0xd40126]={'start':_0x2b1383,'tapeItem':_0x1270b6[_0x275280],'userId':_0x535b6a,'type':_0xd40126}),_0x2f79ea[_0xd40126]&&_0x37006c&&('elementStart'!==_0x1270b6[_0x275280]['type']||_0x4d86c4&&_0x4d86c4['userId']===_0x535b6a||_0x592418[_0xd40126]['unshift']({'userId':_0x535b6a,'object':_0x1270b6[_0x275280]['item'],'change':_0x2f79ea[_0xd40126]}),'elementEnd'===_0x1270b6[_0x275280]['type']&&_0x4d86c4&&_0x4d86c4['object']===_0x1270b6[_0x275280]['item']&&(_0x592418[_0xd40126]['shift'](),_0x2f79ea[_0xd40126]=_0x4d86c4['change'])),_0x2f79ea[_0xd40126]&&_0x5ed95e&&(_0x2f79ea[_0xd40126]['end']=_0x1beb33,_0x37ac06(_0x2f79ea[_0xd40126]),_0x2f79ea[_0xd40126]=null);}function _0x37ac06({start:_0x998f36,end:_0x16512b,tapeItem:_0x272954,userId:_0x56a7b5,type:_0x5ac1f0}){const _0x5cf8e4=_0x272954['item'],_0x121627=_0x1801a6['schema']['isBlock'](_0x5cf8e4)&&!_0x1801a6['schema']['isLimit'](_0x5cf8e4),_0x591f56=_0x998f36['nodeAfter']==_0x16512b['parent']&&_0x16512b['isAtStart'];if(_0x121627&&_0x591f56)return;const _0x3e55ce=_0x1801a6['createRange'](_0x998f36,_0x16512b),_0x2c81cb=_0x54a80f['get'](_0x56a7b5),_0xc6604e=new r({'author':_0x2c81cb,'type':'isAdded'==_0x5ac1f0||'isAddSuggestion'==_0x5ac1f0?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x5ac1f0||'isRemoveSuggestion'==_0x5ac1f0},'createdAt':new Date(),'rootName':_0x39e8e1});_0x428e97['push'](_0xc6604e),_0xc6454d['markers']['set']('revision:'+_0xc6604e['id'],_0x3e55ce);}function _0x95d37a(_0x552c38,_0x4a43b3){const _0x4f51c0=_0x552c38['getAttributes'](),_0x361cd0=_0x4a43b3['getAttributes']();for(const _0x4eb6ae of _0x4f51c0){if(_0x4eb6ae[0x1]!==_0x4a43b3['getAttribute'](_0x4eb6ae[0x0]))return!0x1;_0x361cd0['next']();}return _0x361cd0['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x479089=>{const _0x22c96d=_0x479089['markerName']['split'](':')[0x1],_0x59b4ba=this['_getChangeFromId'](_0x22c96d);if(!_0x59b4ba)return null;const _0x1b2fce='add'==_0x59b4ba['type']?'insertion':'deletion',_0x1968e7=['ck-suggestion-marker','ck-suggestion-marker-'+_0x1b2fce];return _0x59b4ba['data']['isSuggestion']&&_0x1968e7['push']('ck-suggestion-marker-'+_0x1b2fce+'-new'),this['activeChange']==_0x59b4ba&&_0x1968e7['push']('ck-suggestion-marker--active'),{'classes':_0x1968e7,'attributes':{'data-change-id':_0x22c96d}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x4ae8c0=>{_0x4ae8c0['on']('element:pre',(_0x378d9b,_0x5a4b65,_0x6477be)=>{const _0x5198b8=_0x5a4b65['viewItem']['getChild'](0x0);if(!_0x5198b8||!_0x5198b8['is']('element','code'))return;if(!_0x6477be['consumable']['consume'](_0x5198b8,{'attributes':['vid_start','vid_end']}))return;const _0x1d6195=_0x5a4b65['modelRange']['start']['nodeAfter'];_0x6477be['writer']['setAttribute']('vid_start',_0x5198b8['getAttribute']('vid_start'),_0x1d6195),_0x6477be['writer']['setAttribute']('vid_end',_0x5198b8['getAttribute']('vid_end'),_0x1d6195);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x2aaec5=>{_0x2aaec5['on']('element',(_0x1c1a16,_0x51ee44,_0x28674a)=>{if(!_0x28674a['consumable']['consume'](_0x51ee44['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x51ee44['modelRange']['isCollapsed'])return;const _0x3f51c2=_0x51ee44['modelRange']['start']['nodeAfter'];_0x3f51c2['hasAttribute']('vid_start')||_0x3f51c2['hasAttribute']('vid')||(_0x28674a['writer']['setAttribute']('vid_start',_0x51ee44['viewItem']['getAttribute']('vid_start'),_0x3f51c2),_0x28674a['writer']['setAttribute']('vid_end',_0x51ee44['viewItem']['getAttribute']('vid_end'),_0x3f51c2));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x527751=>_0x527751['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x7b0f33,[,_0x52b8ea])=>{['vid_start','vid_end','vid']['includes'](_0x52b8ea)&&(_0x7b0f33['return']=!0x0,_0x7b0f33['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x36c103=>{_0x36c103['on']('attribute:vid',(_0x5b3f9f,_0x3082de,_0x3f1944)=>{if('\x20'!=_0x3082de['item']['data']||_0x3082de['item']['parent']['maxOffset']>0x1)return;if(!_0x3f1944['consumable']['consume'](_0x3082de['item'],_0x5b3f9f['name']))return;const _0x5281f5=_0x3f1944['writer'],_0x47ea7f=_0x3f1944['mapper']['toViewRange'](_0x3082de['range']);_0x5281f5['wrap'](_0x47ea7f,_0x5281f5['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x1356d4){const _0xe04447=_0x1356d4['plugins']['get']('RevisionViewer');return(_0x29e498,_0x57f725,_0x4467d5)=>{const _0x2d0068=_0x57f725['markerName']['split'](':')[0x1],_0x30cbd3=_0xe04447['_getChangeFromId'](_0x2d0068);if(!_0x30cbd3)return null;const _0x498c7a='add'==_0x30cbd3['type']?'split':'merge';if(!_0x4467d5['consumable']['test'](_0x57f725['markerRange'],_0x29e498['name']))return;const _0xf6451a=_0x57f725['markerRange']['getWalker'](),_0x3c22c2=_0x57f725['markerRange']['start'],_0xfdfe31=_0x1356d4['model']['schema'];let _0x1e9fa0=null,_0xa21477=null,_0x5f8c79=!0x1,_0x36a9a3=!0x1;for(const _0x331515 of _0xf6451a){const _0x2a0b43=_0x331515['item'];_0x5f8c79=_0x5f8c79||_0xfdfe31['isContent'](_0x2a0b43);const _0x8d95c=_0x4467d5['mapper']['toViewElement'](_0x2a0b43);if(_0x8d95c&&_0x8d95c['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x331515['type']&&(_0xfdfe31['isBlock'](_0x2a0b43)&&!_0xfdfe31['isLimit'](_0x2a0b43)&&(_0x2a0b43['nextSibling']||_0x3c22c2['isAtEnd']?_0x1e9fa0&&_0x1e9fa0['parent']==_0x2a0b43||(_0x1e9fa0=_0x2a0b43,_0x17a83d(_0x331515['previousPosition']),_0x36a9a3=!0x0):_0xa21477=_0xa21477||_0x331515['previousPosition']));}function _0x17a83d(_0x26797a){const _0x2d684a=_0x4467d5['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x498c7a}),_0x335e14=_0x4467d5['mapper']['toViewPosition'](_0x26797a);_0x30cbd3['data']['isSuggestion']&&_0x4467d5['writer']['addClass']('ck-suggestion-marker-'+_0x498c7a+'-new',_0x2d684a),_0xe04447['activeChange']==_0x30cbd3&&_0x4467d5['writer']['addClass']('ck-suggestion-marker--active',_0x2d684a),_0x4467d5['writer']['insert'](_0x335e14,_0x2d684a),_0x4467d5['mapper']['bindElementToMarker'](_0x2d684a,_0x57f725['markerName']);}_0x5f8c79||_0x36a9a3||!_0xa21477||_0x17a83d(_0xa21477);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x3629cc,_0x38c5c6,_0x27244c)=>{const _0x573e6d=_0x27244c['mapper']['markerNameToElements'](_0x38c5c6['markerName']);if(_0x573e6d){for(const _0x3f3fcf of _0x573e6d)(_0x3f3fcf['hasClass']('ck-suggestion-marker-split')||_0x3f3fcf['hasClass']('ck-suggestion-marker-merge'))&&(_0x27244c['mapper']['unbindElementFromMarkerName'](_0x3f3fcf,_0x38c5c6['markerName']),_0x27244c['writer']['remove'](_0x3f3fcf));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x7dbec1,_0x272982,_0x4c082f)=>{const _0x7f9ffc=_0x272982['markerName']['split'](':')[0x1],_0x30ee21=this['_getChangeFromId'](_0x7f9ffc);if(!_0x30ee21)return null;const _0x46e3d4='add'==_0x30ee21['type']?'split':'merge';if(_0x4c082f['consumable']['test'](_0x272982['markerRange'],_0x7dbec1['name']))for(const _0x184738 of _0x272982['markerRange']['getItems']()){if(!_0x184738['is']('element','softBreak'))continue;const _0x1ca8e8=_0x4c082f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x46e3d4}),_0x56e517=_0x4c082f['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x184738));_0x30ee21['data']['isSuggestion']&&_0x4c082f['writer']['addClass']('ck-suggestion-marker-'+_0x46e3d4+'-new',_0x1ca8e8),this['activeChange']==_0x30ee21&&_0x4c082f['writer']['addClass']('ck-suggestion-marker--active',_0x1ca8e8),_0x4c082f['writer']['insert'](_0x56e517,_0x1ca8e8),_0x4c082f['mapper']['bindElementToMarker'](_0x1ca8e8,_0x272982['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x2cdc6f=>{for(const _0x33c4e5 of this['editor']['model']['document']['getRootNames']()){const _0x498424=this['editor']['model']['document']['getRoot'](_0x33c4e5),_0x44ba81=this['editor']['editing']['view']['document']['getRoot'](_0x33c4e5);if(_0x44ba81){const _0x3eb6c0=_0x498424['getAttribute']('revisionHistoryAttachChange');if(_0x2cdc6f['removeAttribute']('data-change-id',_0x44ba81),_0x2cdc6f['removeClass']('ck-revision-history-root-add',_0x44ba81),_0x2cdc6f['removeClass']('ck-revision-history-root-remove',_0x44ba81),_0x2cdc6f['removeClass']('ck-revision-history-root--active',_0x44ba81),_0x3eb6c0){const _0x27ff19=this['_getChangeFromId'](_0x3eb6c0);if(!_0x27ff19)return null;_0x2cdc6f['setAttribute']('data-change-id',_0x3eb6c0,_0x44ba81),_0x2cdc6f['addClass']('ck-revision-history-root-'+_0x27ff19['type'],_0x44ba81),this['activeChange']==_0x27ff19&&_0x2cdc6f['addClass']('ck-revision-history-root--active',_0x44ba81);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x3d1d96=>'revision-comment:'+_0x3d1d96,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x47e48c=>'revision-suggestion:'+_0x47e48c,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x56a6eb=>({'name':'suggestion:'+_0x56a6eb,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x41100b=>{const _0x110d70=_0x41100b['markerName']['split'](':')[0x1];return'insertion'!=_0x110d70&&'deletion'!=_0x110d70?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x110d70]};}}),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',(_0x125a62,_0x1ad56f,_0x370b66)=>{const _0x3cd19a=_0x370b66['mapper']['markerNameToElements'](_0x1ad56f['markerName']);if(_0x3cd19a){for(const _0x522dc3 of _0x3cd19a)_0x522dc3['is']('uiElement')&&(_0x370b66['mapper']['unbindElementFromMarkerName'](_0x522dc3,_0x1ad56f['markerName']),_0x370b66['writer']['remove'](_0x522dc3));}},{'priority':'high'});}['_getChangeFromId'](_0x1feca5){return this['_changeIdToChange']['get'](_0x1feca5);}['_getViewForChange'](_0x2b6d0d){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x2b6d0d),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x263279,_0x31b2e6,_0x2864b3,_0x3f1072)=>{_0x3f1072&&this['_balloon']['remove'](_0x3f1072),_0x2864b3&&(this['_balloon']['add']({'view':_0x2864b3,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x2a0cf4=this['editor']['editing'],_0x295ca2=this['_getChangeFromId'](_0x2864b3['changeId']);let _0x2c3f76;if(_0x295ca2['data']['isOnRoot']){const _0x416cff=_0x2a0cf4['view']['getDomRoot'](_0x295ca2['rootName']);_0x2c3f76=Array['from'](_0x416cff['getClientRects']());}else{const _0x3c6876=this['editor']['model']['markers']['get']('revision:'+_0x2864b3['changeId']);_0x2c3f76=Array['from'](_0x2a0cf4['mapper']['markerNameToElements'](_0x3c6876['name']))['map'](_0x2eaa93=>_0x2a0cf4['view']['domConverter']['mapViewToDom'](_0x2eaa93))['map'](_0x4c5898=>Array['from'](_0x4c5898['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x2c3f76[0x0];return _0x2c3f76['find'](_0x4e6b3e=>_0x4e6b3e['top']-0x3<=this['_activeViewTarget']['y']&&_0x4e6b3e['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x4e6b3e['left']-0x3<=this['_activeViewTarget']['x']&&_0x4e6b3e['right']+0x3>=this['_activeViewTarget']['x'])||_0x2c3f76[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x3c840c,_0x219046,_0x4f3db5,_0x530d28)=>{this['activeView']=_0x4f3db5?this['_getViewForChange'](_0x4f3db5):null,this['editor']['model']['change'](()=>{const _0x38a3d8=this['editor']['editing'];_0x530d28&&(_0x530d28['data']['isOnRoot']?_0x38a3d8['view']['change'](_0x30d152=>{_0x30d152['removeClass']('ck-revision-history-root--active',_0x38a3d8['view']['document']['getRoot'](_0x530d28['rootName']));}):_0x38a3d8['reconvertMarker']('revision:'+_0x530d28['id'])),_0x4f3db5&&(_0x4f3db5['data']['isOnRoot']?_0x38a3d8['view']['change'](_0x5de1db=>{_0x5de1db['addClass']('ck-revision-history-root--active',_0x38a3d8['view']['document']['getRoot'](_0x4f3db5['rootName']));}):_0x38a3d8['reconvertMarker']('revision:'+_0x4f3db5['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x4d4257,_0x1d79c0)=>{if(this['activeChange'])return;const _0x59aff6=this['_findChangeIdFromDomTarget'](_0x1d79c0['target']),_0x4ebefc=this['_changeIdToChange']['get'](_0x59aff6);_0x4ebefc?(this['_activeViewTarget']={'x':_0x1d79c0['domEvent']['x'],'y':_0x1d79c0['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x4ebefc)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x5ec8be,_0x46dbbf)=>{const _0x1d06f0=this['_findChangeIdFromDomTarget'](_0x46dbbf['target']),_0x138a11=this['_changeIdToChange']['get'](_0x1d06f0);_0x138a11?(this['_activeViewTarget']={'x':_0x46dbbf['domEvent']['x'],'y':_0x46dbbf['domEvent']['y']},_0x138a11===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x138a11):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x6b3850){do{const _0x4d8a25=_0x6b3850['getAttribute']('data-change-id');if(_0x4d8a25)return _0x4d8a25;_0x6b3850=_0x6b3850['parent'];}while(_0x6b3850);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x344754=>{for(const _0x2ea1a9 of this['editor']['model']['markers'])_0x344754['removeMarker'](_0x2ea1a9);});}}function X(_0x5ab94b,_0x25f0d0){return(_0x5513c9,_0x3ec6ac,_0x45c787)=>{if(!_0x45c787['consumable']['test'](_0x3ec6ac['markerRange'],_0x5513c9['name']))return;const _0x263011=_0x3ec6ac['markerRange']['getWalker'](),_0x321c72=_0x3ec6ac['markerRange']['start'],_0x525b94=_0x5ab94b['model']['schema'];let _0x399f4f=null,_0x40c36b=null,_0x22d684=!0x1,_0x283a53=!0x1;for(const _0x51cf53 of _0x263011){const _0x250366=_0x51cf53['item'];_0x22d684=_0x22d684||_0x525b94['isContent'](_0x250366);const _0x187e70=_0x45c787['mapper']['toViewElement'](_0x250366);if(_0x187e70&&_0x187e70['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x51cf53['type']&&(_0x525b94['isBlock'](_0x250366)&&!_0x525b94['isLimit'](_0x250366)&&(_0x250366['nextSibling']||_0x321c72['isAtEnd']?_0x399f4f&&_0x399f4f['parent']==_0x250366||(_0x399f4f=_0x250366,_0xed9350(_0x51cf53['previousPosition']),_0x283a53=!0x0):_0x40c36b=_0x40c36b||_0x51cf53['previousPosition']));}function _0xed9350(_0x8bdde0){const _0x204dcf=_0x45c787['mapper']['toViewPosition'](_0x8bdde0),_0x13900e=_0x45c787['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x25f0d0});_0x45c787['writer']['insert'](_0x204dcf,_0x13900e),_0x45c787['mapper']['bindElementToMarker'](_0x13900e,_0x3ec6ac['markerName']);}_0x22d684||_0x283a53||!_0x40c36b||_0xed9350(_0x40c36b);};}class mt extends _0x31ac0e{constructor(_0x143e68){super(_0x143e68);const _0x5ea90c=_0x143e68['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x5ea90c,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x5ea90c,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x2ae790=this['editor'],_0xcb3fc=_0x2ae790['plugins']['get'](m),_0x234316=_0xcb3fc['isReady']?_0xcb3fc['diff']['newRevisionId']:null;_0x2ae790['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x234316);}['refresh'](){const {isReady:_0x2a271a,isEnabled:_0x2b71f7,repository:_0x5ecb24,diff:_0x148413}=this['editor']['plugins']['get'](m),_0x3610f2=_0x148413&&_0x5ecb24['getLaterVisibleRevision'](_0x148413['newRevisionId']);this['isEnabled']=_0x2a271a&&_0x2b71f7&&Boolean(_0x3610f2);}}class wt extends _0x31ac0e{['_step'];constructor(_0x254c83,{direction:_0x1d35bd}){super(_0x254c83);const _0x5d4510=_0x254c83['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x1d35bd?0x1:-0x1,this['listenTo'](_0x5d4510,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x5d4510,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x5d4510,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x96230e=this['editor'],_0xc5cd76=_0x96230e['plugins']['get'](m),{isNavigationMode:_0x5b0382,currentChangeNumber:_0x4d7912}=_0xc5cd76;let _0x21de77;if(_0xc5cd76['activeChange']=_0x5b0382?_0xc5cd76['diff']['changes']['get'](_0x4d7912+this['_step']):_0xc5cd76['diff']['changes']['first'],_0xc5cd76['activeChange']['data']['isOnRoot'])_0x21de77=_0x96230e['editing']['view']['getDomRoot'](_0xc5cd76['activeChange']['rootName']);else{const _0x4d0c1c=_0x96230e['model']['markers']['get']('revision:'+_0xc5cd76['activeChange']['id']);_0x21de77=_0x585a8a(_0x96230e['editing'],_0x4d0c1c);}_0x3d77b2({'target':_0x21de77,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0xf64d0,currentChangeNumber:_0x5eab94,numberOfChanges:_0x446f5c,isReady:_0x59d3fe,isEnabled:_0x1975c6}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x1975c6&&_0x59d3fe&&_0x446f5c)&&(!_0xf64d0||(0x1===this['_step']?_0x5eab94<_0x446f5c-0x1:_0x5eab94>0x0));}}class _i extends ts{constructor(_0x50b68e){super(_0x50b68e);const _0x249b38=this['bindTemplate'],_0x1ad2f1=new te(_0x50b68e),_0x4616b4=new te(_0x50b68e);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',(_0x41d366,_0x16d73b)=>_0x41d366&&_0x16d73b>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x491d0a,_0x3e60fb,_0x1ba0c5,_0xbf6e47)=>{if(!_0x491d0a)return g(_0x50b68e,'Loading...');if(!_0x1ba0c5)return g(_0x50b68e,'No\x20changes');const _0x5888d8=g(_0x50b68e,'NUMBER_OF_CHANGES',_0x1ba0c5);return _0xbf6e47?g(_0x50b68e,'X_OF_Y_CHANGES',[_0x3e60fb+0x1,_0x1ba0c5]):_0x5888d8;}),_0x1ad2f1['set']({'label':g(_0x50b68e,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x1ae082}),_0x4616b4['set']({'label':g(_0x50b68e,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x2e8c11}),_0x1ad2f1['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x4616b4['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x1ad2f1['on']('execute',()=>this['fire']('execute','backward')),_0x4616b4['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',_0x249b38['if']('_isStatusLabelVisible','ck-hidden',_0x2caaa6=>!_0x2caaa6)]},'children':[{'text':_0x249b38['to']('isNavigationMode',_0x2877e3=>_0x2877e3?g(_0x50b68e,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x50b68e,'Total')+':\x20')}]},{'text':_0x249b38['to']('_statusText')}]},new _0x28d5aa(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x1ad2f1,_0x4616b4]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x5f2429{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x37465e=this['editor']['editing']['view'];_0x37465e['change'](_0xfc7e07=>{for(const _0x34838d of _0x37465e['document']['roots'])_0xfc7e07['addClass'](le,_0x34838d);});}['hide'](){const _0xeb98c8=this['editor']['editing']['view'];_0xeb98c8['change'](_0x108de5=>{for(const _0x13d8ef of _0xeb98c8['document']['roots'])_0x108de5['removeClass'](le,_0x13d8ef);});}}class R extends _0x5f2429{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,ge];}['init'](){const _0x2e275d=this['editor'],_0x14278a=_0x2e275d['plugins']['get'](m),_0x4458fc=_0x2e275d['plugins']['get'](ge);_0x2e275d['ui']['componentFactory']['add']('exitToEditing',_0x2d265e=>{const _0x572190=new te(_0x2d265e);return _0x572190['set']({'label':g(_0x2d265e,'Back\x20to\x20editing'),'icon':_0x2dbb84,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x572190,'execute',()=>{_0x2e275d['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x572190;}),_0x2e275d['ui']['componentFactory']['add']('restoreRevision',_0x1debb9=>{const _0x3a567f=new te(_0x1debb9);return _0x3a567f['set']({'label':g(_0x1debb9,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x3a567f['bind']('isEnabled')['to'](_0x2e275d['commands']['get']('restoreRevision')),this['listenTo'](_0x3a567f,'execute',()=>_0x2e275d['execute']('restoreRevision')),_0x3a567f;}),_0x2e275d['ui']['componentFactory']['add']('changesNavigation',_0x172baf=>{const _0x57a633=new _i(_0x172baf),_0x2f9ebf=_0x2e275d['commands']['get']('showPreviousChange'),_0x44603e=_0x2e275d['commands']['get']('showNextChange');return _0x57a633['bind']('isBackwardNavigationEnabled')['to'](_0x2f9ebf,'isEnabled'),_0x57a633['bind']('isForwardNavigationEnabled')['to'](_0x44603e,'isEnabled'),_0x57a633['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x14278a),this['listenTo'](_0x57a633,'execute',(_0x215bd1,_0x35c0eb)=>{_0x2e275d['execute']('forward'===_0x35c0eb?'showNextChange':'showPreviousChange');}),_0x57a633;}),_0x4458fc['show'](),_0x14278a['on']('change:isReady',(_0x218ac2,_0x5785d9,_0x567dc7)=>{_0x567dc7?_0x4458fc['hide']():_0x4458fc['show']();});}}class at extends _0x49fa80{['_resizeObserver']=null;constructor(_0x3cee07,_0x4877e4){super(_0x3cee07,_0x4877e4);const _0x11377b=this['bindTemplate'];this['set']({'label':g(_0x3cee07,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x3cee07,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x11377b['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 _0x48c7de=this['fieldView']['element'];this['_tooltipString']=_0x48c7de['scrollWidth']>_0x48c7de['clientWidth']&&_0x48c7de['value']||'';}}class si extends ts{constructor(_0x5295c7,_0x4389ce,_0x5349aa){super(_0x5295c7);const _0xe35e53=new _0x1ed181();_0xe35e53['set']({'content':_0x4ad50a,'viewBox':'0\x200\x2011\x2010'});const _0x1ed4c7=['ck','ck-revision-history-sidebar__revision-author'];_0x5349aa&&_0x1ed4c7['push']('ck-revision-history-sidebar__revision-author_creator');const _0x43e172=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x5295c7,_0x5349aa?'Revision\x20creator':'Revision\x20author')},'children':[_0xe35e53,_0x4389ce['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x1ed4c7},'children':_0x43e172});}}function oi(_0x33cbc0,_0x55a477){const _0x3ed4f5=_0x33cbc0['bindTemplate'],_0x5d6059=_0x33cbc0['locale'],_0x1f0dfb=_0x3b8770(_0x5d6059);_0x1f0dfb['panelPosition']='sw';const _0x14be61=function(_0x1c5a2c,_0x175ae9){const _0x301c0a=function(_0x114dc2,_0x3fa262){const _0x529edf=_0x114dc2['locale'],_0x4b4aca={'Compare\x20against\x20selected':g(_0x529edf,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x529edf,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x529edf,'Restore\x20this\x20revision')};return _0x3fa262['map'](_0x103d40=>{const _0x324f7a=_0x4b4aca[_0x103d40['name']];return _0x324f7a&&_0x324f7a!==_0x103d40['name']&&(_0x103d40['name']=_0x324f7a),_0x103d40;});}(_0x1c5a2c,_0x175ae9),_0x4be94b=new _0x47a699();for(const _0x55500f of _0x301c0a){const _0x54ec1a={'type':'button','model':new to({'label':_0x55500f['name'],'class':_0x55500f['class'],'withText':!0x0,'role':'menuitem','_action':_0x55500f['action']})};_0x54ec1a['model']['bind']('isEnabled')['to'](_0x1c5a2c,'isActionsDropdownOpen',_0x5a05d3=>'function'!=typeof _0x55500f['isEnabled']||(!_0x5a05d3||_0x55500f['isEnabled'](_0x1c5a2c))),_0x4be94b['add'](_0x54ec1a);}return _0x4be94b;}(_0x33cbc0,_0x55a477);return _0x33cbc0['bind']('isActionsDropdownOpen')['to'](_0x1f0dfb,'isOpen'),_0x1f0dfb['buttonView']['set']({'label':g(_0x5d6059,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x265579}),_0x1f0dfb['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x3ed4f5['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x3ed4f5['to'](_0x3e68fd=>_0x3e68fd['stopPropagation']())}}),_0x1f0dfb['on']('execute',_0xa42f6e=>{_0x33cbc0['isReady']&&'function'==typeof _0xa42f6e['source']['_action']&&_0xa42f6e['source']['_action'](_0x33cbc0);}),_0x325e90(_0x1f0dfb,_0x14be61,{'role':'menu'}),_0x1f0dfb['listenTo'](_0x33cbc0,'change:isActionsDropdownOpen',(_0x2eed79,_0x3c8701,_0x338ece)=>{if(_0x338ece)for(const _0x5ba451 of _0x1f0dfb['listView']['items']){const _0x44c370=_0x5ba451['children']['first'],_0x5a6872=_0x55a477['find'](_0x2984b2=>_0x2984b2['action']===_0x44c370['_action'])['isVisible'];_0x5ba451['isVisible']=void 0x0===_0x5a6872||_0x5a6872(_0x33cbc0);}}),_0x1f0dfb;}class hi extends/* #__PURE__ -- @preserve */
|
|
26
|
-
ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(
|
|
23
|
+
import{ObservableMixin as _0x295186,uid as _0x50688e,Collection as _0x428f3c,logWarning as _0x579614,FocusTracker as _0x595364,KeystrokeHandler as _0x2c2955,scrollViewportToShowTarget as _0x53184f,ResizeObserver as nt,ElementReplacer as ot,CKEditorError as _0x440845}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x3656c2,set as _0x73a979,unset as _0x179e26,isEqual as _0x579587}from'es-toolkit/compat';import{Plugin as _0x4fedf0,PendingActions as _0xabd941,Command as _0x272f0c,ElementApiMixin as _0x951075,Editor as _0x567fc9}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x4b58b7,getMarkerDomElement as _0x3be11c,ConfirmMixin as ti,sanitizeEditorConfig as _0x1499fd}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x2b5b53,ViewAttributeElement as _0x3fc208,ViewEmptyElement as _0x3ba476,ViewRawElement as _0x22f295,ViewUIElement as _0x4b1240,ViewDocumentFragment as _0x11f991,ViewText as _0x7a1e11,ViewElement as _0x2c2d26,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 _0x49a408,IconChevronUp as _0x382717,IconChevronDown as _0x5c0296,IconUndo as _0x4b853c,IconUser as _0x23ed51,IconThreeVerticalDots as _0x586ec1}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x1610b6,submitHandler as _0x175549,LabeledFieldView as _0x4263ed,createLabeledInputText as _0x3eb06c,createDropdown as _0x4b06b6,ListView as _0x29732b,ListItemView as _0x53c893,ButtonView as te,MenuBarMenuView as _0x57c2d8,MenuBarMenuListView as _0x59448c,MenuBarMenuListItemView as _0x40cac4,MenuBarMenuListItemButtonView as _0x1d3030,ContextualBalloon as _0x57dc8b,ToolbarSeparatorView as _0x42f50c,IconView as _0x356830,addListToDropdown as _0x5f376c,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 _0x4bb794}from'luxon';class h extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x295186(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x1700e5){super(),this['id']=_0x1700e5['id']||_0x50688e(),this['creator']=_0x1700e5['creator']||null,this['authors']=_0x1700e5['authors']||[],this['diffData']=_0x1700e5['diffData']||null,this['toVersion']=_0x1700e5['toVersion']||0x0,this['fromVersion']=_0x1700e5['fromVersion']||0x0,this['set']('name',_0x1700e5['name']||''),this['set']('createdAt',_0x1700e5['createdAt']||new Date()),this['set']('attributes',_0x1700e5['attributes']||{});}['setName'](_0x21ee56){this['_update']({'name':_0x21ee56});}['setAttribute'](_0x3ea403,_0x31bf8a){const _0x5b5ca4=_0x3656c2(this['attributes']);_0x73a979(_0x5b5ca4,_0x3ea403,_0x31bf8a),this['_update']({'attributes':_0x5b5ca4});}['removeAttribute'](_0x2455dd){const _0x1bf398=_0x3656c2(this['attributes']);_0x179e26(_0x1bf398,_0x2455dd),this['_update']({'attributes':_0x1bf398});}['_update'](_0x13f7d5,_0x1e4988=!0x1){let _0x2a9bb6=!0x1;const _0x30f219={'id':this['id']},_0x756776=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x15e5c5 of _0x756776){const _0x39f44d=_0x13f7d5[_0x15e5c5];void 0x0!==_0x39f44d&&_0x39f44d!==this[_0x15e5c5]&&(this[_0x15e5c5]=_0x39f44d,_0x30f219[_0x15e5c5]=_0x39f44d,_0x2a9bb6=!0x0);}_0x2a9bb6&&(_0x30f219['authors']&&(_0x30f219['authorsIds']=_0x30f219['authors']['map'](_0x3f3ead=>_0x3f3ead['id']),delete _0x30f219['authors']),this['fire']('_update',_0x30f219,_0x1e4988));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x3e8e8e=>_0x3e8e8e['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x4fedf0{['_revisions'];static get['requires'](){return[_0x4b58b7];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x79174){super(_0x79174),this['_revisions']=new _0x428f3c();}['afterInit'](){!async function(_0x116720){const _0x4f0ae2=_0x446c0f([0x44,0x65,0x63,0x4a,0x4c,0x4d,0x62,0x4b,0x72,0x33,0x38,0x32,0x58,0x7a,0x5a,0x57,0x37,0x56,0x67,0x42,0x47,0x71,0x34,0x39,0x49,0x6f,0x36,0x6a,0x55,0x61,0x76,0x74,0x78,0x53,0x50,0x66,0x6d,0x68,0x6c,0x64,0x35,0x51,0x43,0x4e,0x46,0x48,0x79,0x73,0x54,0x59,0x70,0x45,0x69,0x30,0x41,0x6b,0x75,0x6e,0x77,0x52,0x4f,0x31]),_0x25596a=0xeb829,_0x23bb84=0x31ab1a96,_0x3f7e6a=0x31ac7fee^_0x23bb84,_0x160b64=window[_0x446c0f([0x44,0x61,0x74,0x65])][_0x446c0f([0x6e,0x6f,0x77])](),_0x561706=_0x116720[_0x446c0f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x36ebbc=new window[(_0x446c0f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xd742a2=>{_0x561706[_0x446c0f([0x6f,0x6e,0x63,0x65])](_0x446c0f([0x72,0x65,0x61,0x64,0x79]),_0xd742a2);}),_0x159c5c={[_0x446c0f([0x6b,0x74,0x79])]:_0x446c0f([0x45,0x43]),[_0x446c0f([0x75,0x73,0x65])]:_0x446c0f([0x73,0x69,0x67]),[_0x446c0f([0x63,0x72,0x76])]:_0x446c0f([0x50,0x2d,0x32,0x35,0x36]),[_0x446c0f([0x78])]:_0x446c0f([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]),[_0x446c0f([0x79])]:_0x446c0f([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]),[_0x446c0f([0x61,0x6c,0x67])]:_0x446c0f([0x45,0x53,0x32,0x35,0x36])},_0xb48e68=_0x561706[_0x446c0f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x446c0f([0x67,0x65,0x74])](_0x446c0f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xbcbd24(){let _0x6ca016,_0x1f40d8=null,_0x2add3d=null;try{if(_0xb48e68==_0x446c0f([0x47,0x50,0x4c]))return _0x446c0f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x6ca016=_0x4ea75c(),!_0x6ca016)return _0x446c0f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x6ca016[_0x446c0f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2add3d=_0x441393(_0x6ca016[_0x446c0f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x6ca016[_0x446c0f([0x6a,0x74,0x69])])),await _0x1e47a1()?_0x13b32c()?_0x4d0d47()?_0x446c0f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2bec7c()?(_0x6ca016[_0x446c0f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x446c0f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1f40d8=_0x2f2613(_0x446c0f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x6ca016[_0x446c0f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x446c0f([0x74,0x72,0x69,0x61,0x6c])&&(_0x1f40d8=_0x2f2613(_0x446c0f([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x352460()):_0x446c0f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x446c0f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x446c0f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x55415d){return _0x446c0f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4d0d47(){const _0x2427dc=[_0x446c0f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x446c0f([0x74,0x72,0x69,0x61,0x6c])][_0x446c0f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x6ca016[_0x446c0f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x160b64/0x3e8:0xe10*_0x3f7e6a;return _0x6ca016[_0x446c0f([0x65,0x78,0x70])]<_0x2427dc;}function _0x13b32c(){const _0x4238df=_0x6ca016[_0x446c0f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4238df)return!0x1;if(_0x4238df[_0x446c0f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x446c0f([0x2a])))return!0x0;if(_0x4238df[_0x446c0f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x446c0f([0x52,0x48])))return!0x0;if(_0x4238df[_0x446c0f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x446c0f([0x52,0x52,0x48]))){if(_0x3de32b())return!0x0;if(_0x1701aa()||_0x2c9f16())return!0x0;}return!0x1;}function _0x2bec7c(){const _0x5e9685=_0x6ca016[_0x446c0f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5e9685||0x0==_0x5e9685[_0x446c0f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x124614}=new URL(window[_0x446c0f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5e9685[_0x446c0f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x124614))return!0x0;const _0x1997c2=_0x124614[_0x446c0f([0x73,0x70,0x6c,0x69,0x74])](_0x446c0f([0x2e]));return _0x5e9685[_0x446c0f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x871e1b=>_0x871e1b[_0x446c0f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x446c0f([0x2a])))[_0x446c0f([0x6d,0x61,0x70])](_0x4b8271=>_0x4b8271[_0x446c0f([0x73,0x70,0x6c,0x69,0x74])](_0x446c0f([0x2e])))[_0x446c0f([0x73,0x6f,0x6d,0x65])](_0x5a25cc=>_0x1997c2[_0x446c0f([0x65,0x76,0x65,0x72,0x79])]((_0xdc005,_0x37638c)=>_0x5a25cc[_0x37638c]===_0xdc005||_0x5a25cc[_0x37638c]===_0x446c0f([0x2a])));}function _0x352460(){return _0x1f40d8&&_0x2add3d?new window[(_0x446c0f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2908ec,_0x6a7bd1)=>{_0x1f40d8[_0x446c0f([0x74,0x68,0x65,0x6e])](_0x2908ec,_0x6a7bd1),_0x2add3d[_0x446c0f([0x74,0x68,0x65,0x6e])](_0x24f665=>{_0x24f665!=_0x446c0f([0x56,0x61,0x6c,0x69,0x64])&&_0x2908ec(_0x24f665);},_0x6a7bd1);}):_0x1f40d8||_0x2add3d||_0x446c0f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x441393(_0x2f8556,_0x44d774){return new window[(_0x446c0f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1a0907=>{if(_0xd87b3a())return _0x1a0907(_0x446c0f([0x56,0x61,0x6c,0x69,0x64]));_0x7ed89(),_0x561706[_0x446c0f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x446c0f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x7e3c2f=!0x1;const _0x5ef98f=_0x50688e();function _0x5160d2(_0x5ae27c){return!!_0x5ae27c&&(typeof _0x5ae27c===_0x446c0f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5ae27c===_0x446c0f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5ae27c[_0x446c0f([0x74,0x68,0x65,0x6e])]===_0x446c0f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5ae27c[_0x446c0f([0x63,0x61,0x74,0x63,0x68])]===_0x446c0f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x38eb60(_0x433f44){_0xfa1206(_0x433f44)[_0x446c0f([0x74,0x68,0x65,0x6e])](_0x223ee0=>{if(!_0x223ee0||_0x223ee0[_0x446c0f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x446c0f([0x6f,0x6b]))return _0x446c0f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x22875a(_0x4ae47a(_0x5ef98f+_0x44d774))!=_0x223ee0[_0x446c0f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x446c0f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x446c0f([0x56,0x61,0x6c,0x69,0x64]);})[_0x446c0f([0x74,0x68,0x65,0x6e])](_0x46993b=>(_0x3ebe19(),_0x46993b),()=>{const _0x4f3ecd=_0x33220e();return null==_0x4f3ecd?(_0x3ebe19(),_0x446c0f([0x56,0x61,0x6c,0x69,0x64])):_0x446c0f(_0x160b64-_0x4f3ecd>(0x15a79e96^_0x23bb84)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x446c0f([0x74,0x68,0x65,0x6e])](_0x1a0907)[_0x446c0f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1a0907(_0x446c0f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x55407f=0x319df416^_0x23bb84;function _0x3ebe19(){const _0x112af0=_0x446c0f([0x6c,0x6c,0x63,0x74,0x2d])+_0x22875a(_0x4ae47a(_0x2f8556)),_0x929332=_0x52f211(_0x22875a(window[_0x446c0f([0x4d,0x61,0x74,0x68])][_0x446c0f([0x63,0x65,0x69,0x6c])](_0x160b64/_0x55407f)));window[_0x446c0f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x446c0f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x112af0,_0x929332);}function _0x33220e(){const _0x10aa10=_0x446c0f([0x6c,0x6c,0x63,0x74,0x2d])+_0x22875a(_0x4ae47a(_0x2f8556)),_0x5596d0=window[_0x446c0f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x446c0f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x10aa10);return _0x5596d0?window[_0x446c0f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x52f211(_0x5596d0),0x10)*_0x55407f:null;}function _0xfa1206(_0x3e4c3c){return new window[(_0x446c0f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x169b74,_0x5f5c4f)=>{_0x3e4c3c[_0x446c0f([0x74,0x68,0x65,0x6e])](_0x169b74,_0x5f5c4f),window[_0x446c0f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5f5c4f,0x31aace56^_0x23bb84);});}}_0x561706[_0x446c0f([0x6f,0x6e])](_0x446c0f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2b82ef,_0x5f5b26)=>{if(_0x5f5b26[0x0]!=_0x2f8556)return _0x1a0907(_0x446c0f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5f5b26[0x1]={..._0x5f5b26[0x1],[_0x446c0f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5ef98f};},{[_0x446c0f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x446c0f([0x68,0x69,0x67,0x68])}),_0x561706[_0x446c0f([0x6f,0x6e])](_0x446c0f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x940bc2=>{_0x5160d2(_0x940bc2[_0x446c0f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x7e3c2f=!0x0,_0x38eb60(_0x940bc2[_0x446c0f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x446c0f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x446c0f([0x6c,0x6f,0x77])}),_0x36ebbc[_0x446c0f([0x74,0x68,0x65,0x6e])](()=>{_0x7e3c2f||_0x1a0907(_0x446c0f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xd87b3a(){return _0x561706[_0x446c0f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x446c0f([0x76,0x69,0x65,0x77])][_0x446c0f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x446c0f([0x61,0x75,0x74,0x6f]);}function _0x7ed89(){_0x561706[_0x446c0f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x446c0f([0x76,0x69,0x65,0x77])][_0x446c0f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x446c0f([0x61,0x75,0x74,0x6f]);}}function _0x2f2613(_0x26c437){const _0x3a9688=[new window[(_0x446c0f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2c9582=>setTimeout(_0x2c9582,0x31a2245a^_0x23bb84)),_0x36ebbc[_0x446c0f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x446c0f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2140aa=>{const _0x529409=0x31ab1a91^_0x23bb84,_0x415bf8=_0x116720[_0x446c0f([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x18858a(){_0x415bf8[_0x446c0f([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x529409&&_0x2140aa();}_0x18858a(),_0x415bf8[_0x446c0f([0x6f,0x6e])](_0x446c0f([0x61,0x64,0x64]),_0x18858a);})),new window[(_0x446c0f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1d80ad=>{function _0x15f217(){for(const _0x1c87b8 in window)if(window[_0x446c0f([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x446c0f([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x1c87b8))&&window[_0x1c87b8]==_0x25596a)return _0x1d80ad();_0x561706[_0x446c0f([0x73,0x74,0x61,0x74,0x65])]!=_0x446c0f([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x446c0f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x15f217,0x31ab091e^_0x23bb84);}_0x2537ad(_0x446c0f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x15f217();})];return window[_0x446c0f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x446c0f([0x72,0x61,0x63,0x65])](_0x3a9688)[_0x446c0f([0x74,0x68,0x65,0x6e])](()=>_0x26c437);}async function _0x4d503f(){if(await _0x36ebbc,_0x2537ad(_0x446c0f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0xe2b4bb=_0x116720[_0x446c0f([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x2c45ae=_0x116720[_0x446c0f([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])](_0xe2b4bb[_0x446c0f([0x69,0x64])]),_0x589ea9=_0xc12236(_0x446c0f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x589ea9[_0x446c0f([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0xe2b4bb['id'],_0x2c45ae?_0x2c45ae['id']:null,!0x0),_0x589ea9[_0x446c0f([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x446c0f([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x589ea9[_0x446c0f([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x589ea9[_0x446c0f([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x1e479f,void(_0x589ea9[_0x446c0f([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x1e479f);}if(_0x2537ad(_0x446c0f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x287231=_0xc12236(_0x446c0f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x287231[_0x446c0f([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x446c0f([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x287231[_0x446c0f([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x287231[_0x446c0f([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x1e479f,_0x287231[_0x446c0f([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x1e479f;}_0x561706[_0x446c0f([0x6d,0x6f,0x64,0x65,0x6c])][_0x446c0f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1e479f,_0x561706[_0x446c0f([0x6d,0x6f,0x64,0x65,0x6c])][_0x446c0f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1e479f,_0x561706[_0x446c0f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x446c0f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3de32b(){return _0x2537ad(_0x446c0f([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0xc12236(_0x446c0f([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x446c0f([0x73,0x74,0x61,0x74,0x65])]==_0x446c0f([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1701aa(){return _0x2537ad(_0x446c0f([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 _0x2c9f16(){return _0x2537ad(_0x446c0f([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1bf17b(_0x42ad01){const _0x55e931=_0x36f4a1();_0x561706[_0x55e931]=_0x446c0f([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])+_0x42ad01,_0x42ad01[_0x446c0f([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x446c0f([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x36f4a1()]=_0x25596a),_0x42ad01!=_0x446c0f([0x56,0x61,0x6c,0x69,0x64])&&_0x4d503f();}function _0x36f4a1(){const _0x166c1b=window[_0x446c0f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x446c0f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x446c0f([0x6e,0x6f,0x77])]())[_0x446c0f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x446c0f([0x2e]),'');let _0x2d2c7a=_0x446c0f([0x44]);for(let _0x42929a=0x0;_0x42929a<_0x166c1b[_0x446c0f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x42929a+=0x2){let _0xb23b8c=window[_0x446c0f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x166c1b[_0x446c0f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x42929a,_0x42929a+0x2));_0xb23b8c>=_0x4f0ae2[_0x446c0f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xb23b8c-=_0x4f0ae2[_0x446c0f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2d2c7a+=_0x4f0ae2[_0xb23b8c];}return _0x2d2c7a;}function _0x4ea75c(){const _0x246742=_0xb48e68[_0x446c0f([0x73,0x70,0x6c,0x69,0x74])](_0x446c0f([0x2e]));if(0x3!=_0x246742[_0x446c0f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xaa6181(_0x246742[0x1]);function _0xaa6181(_0x377fdd){const _0x8863e6=_0x2eb69e(_0x377fdd);return _0x8863e6&&_0x4bb393()?_0x8863e6:null;function _0x4bb393(){const _0x14ba88=_0x8863e6[_0x446c0f([0x6a,0x74,0x69])],_0x23626d=window[_0x446c0f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x14ba88[_0x446c0f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x14ba88[_0x446c0f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x39ea53={..._0x8863e6,[_0x446c0f([0x6a,0x74,0x69])]:_0x14ba88[_0x446c0f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x14ba88[_0x446c0f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x39ea53[_0x446c0f([0x76,0x63])],_0x4ae47a(_0x39ea53)==_0x23626d;}}}async function _0x1e47a1(){let _0x4ce8d5=!0x0;try{const _0x29f46e=_0xb48e68[_0x446c0f([0x73,0x70,0x6c,0x69,0x74])](_0x446c0f([0x2e])),[_0x21be76,_0x12bdf2,_0x4c3da2]=_0x29f46e;return _0xc7bc75(_0x21be76),await _0x5eb990(_0x21be76,_0x12bdf2,_0x4c3da2),_0x4ce8d5;}catch(_0x3a203a){return!0x1;}function _0xc7bc75(_0x3ad324){const _0xa93797=_0x2eb69e(_0x3ad324);_0xa93797&&_0xa93797[_0x446c0f([0x61,0x6c,0x67])]==_0x446c0f([0x45,0x53,0x32,0x35,0x36])||(_0x4ce8d5=!0x1);}async function _0x5eb990(_0x35124b,_0x363b99,_0x482e95){const _0x263ac1=window[_0x446c0f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x446c0f([0x66,0x72,0x6f,0x6d])](_0x11cdc6(_0x482e95),_0x3bf2c0=>_0x3bf2c0[_0x446c0f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x6e645f=new window[(_0x446c0f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x446c0f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x35124b+_0x446c0f([0x2e])+_0x363b99),_0x4a980f=window[_0x446c0f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x446c0f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4a980f)return;const _0x3384c4=await _0x4a980f[_0x446c0f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x446c0f([0x6a,0x77,0x6b]),_0x159c5c,{[_0x446c0f([0x6e,0x61,0x6d,0x65])]:_0x446c0f([0x45,0x43,0x44,0x53,0x41]),[_0x446c0f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x446c0f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x446c0f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4a980f[_0x446c0f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x446c0f([0x6e,0x61,0x6d,0x65])]:_0x446c0f([0x45,0x43,0x44,0x53,0x41]),[_0x446c0f([0x68,0x61,0x73,0x68])]:{[_0x446c0f([0x6e,0x61,0x6d,0x65])]:_0x446c0f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3384c4,_0x263ac1,_0x6e645f)||(_0x4ce8d5=!0x1);}}function _0x2eb69e(_0x107bee){return _0x107bee[_0x446c0f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x446c0f([0x65,0x79]))?JSON[_0x446c0f([0x70,0x61,0x72,0x73,0x65])](_0x11cdc6(_0x107bee)):null;}function _0x11cdc6(_0x1086b6){return window[_0x446c0f([0x61,0x74,0x6f,0x62])](_0x1086b6[_0x446c0f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x446c0f([0x2b]))[_0x446c0f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x446c0f([0x2f])));}function _0x4ae47a(_0x5ba836){let _0x44b2c6=0x1505;function _0x512a74(_0x52d2ac){for(let _0x109210=0x0;_0x109210<_0x52d2ac[_0x446c0f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x109210++){const _0x4ae832=_0x52d2ac[_0x446c0f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x109210);_0x44b2c6=(_0x44b2c6<<0x5)+_0x44b2c6+_0x4ae832,_0x44b2c6&=_0x44b2c6;}}function _0x1d783b(_0x1b9bcc){Array[_0x446c0f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1b9bcc)?_0x1b9bcc[_0x446c0f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1d783b):_0x1b9bcc&&typeof _0x1b9bcc==_0x446c0f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x446c0f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1b9bcc)[_0x446c0f([0x73,0x6f,0x72,0x74])]()[_0x446c0f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x19492a,_0x350178])=>{_0x512a74(_0x19492a),_0x1d783b(_0x350178);}):_0x512a74(window[_0x446c0f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1b9bcc));}return _0x1d783b(_0x5ba836),_0x44b2c6>>>0x0;}function _0x22875a(_0x42aaee){return _0x42aaee[_0x446c0f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x446c0f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x446c0f([0x30]));}function _0x52f211(_0x15e58d){return _0x15e58d[_0x446c0f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x446c0f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x446c0f([0x6a,0x6f,0x69,0x6e])]('');}function _0x2537ad(_0x106aa7){return _0x561706[_0x446c0f([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x446c0f([0x68,0x61,0x73])](_0x106aa7);}function _0xc12236(_0x23dd6e){return _0x561706[_0x446c0f([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x446c0f([0x67,0x65,0x74])](_0x23dd6e);}function _0x1e479f(){}function _0x446c0f(_0x49744e){return _0x49744e['map'](_0x2266c6=>String['fromCharCode'](_0x2266c6))['join']('');}_0x1bf17b(await _0xbcbd24());}(this);}['createRevision'](_0x222698){const _0x4ff7c4=this['editor']['plugins']['get']('Users');return new h({'id':_0x222698['id'],'name':_0x222698['name'],'creator':_0x222698['creatorId']?_0x4ff7c4['getUser'](_0x222698['creatorId']):null,'diffData':_0x222698['diffData']||_0x222698['data'],'authors':_0x222698['authorsIds']['map'](_0x293051=>_0x4ff7c4['getUser'](_0x293051)),'createdAt':new Date(_0x222698['createdAt']),'attributes':_0x222698['attributes'],'fromVersion':_0x222698['fromVersion'],'toVersion':_0x222698['toVersion']});}['addRevision'](_0x36e18e,_0x352fc0=0x0){this['_revisions']['add'](_0x36e18e,_0x352fc0);}['getRevision'](_0x59e428){return this['_revisions']['get'](_0x59e428);}['getRevisions'](_0x104948={'toJSON':!0x1}){const _0x3c3efe=Array['from'](this['_revisions']);return _0x3c3efe['reverse'](),_0x104948['toJSON']?_0x3c3efe['map'](_0x577050=>_0x577050['toJSON']()):_0x3c3efe;}['getIndex'](_0x40a5cb){return this['_revisions']['getIndex'](_0x40a5cb);}['getEarlierVisibleRevision'](_0x5d553a){const [,_0x4505bc]=this['getRevisionsIterator'](_0x5d553a,{'direction':'earlier'});return _0x4505bc;}['getLaterVisibleRevision'](_0x51388a){const [,_0x491d32]=this['getRevisionsIterator'](_0x51388a,{'direction':'later'});return _0x491d32;}['getRevisionsInDiff'](_0x4b60e9){const _0x48b139=[];for(const _0xeeabf4 of this['getRevisionsIterator'](_0x4b60e9['newRevisionId']))if(_0x48b139['push'](_0xeeabf4),_0xeeabf4['id']===_0x4b60e9['oldRevisionId'])break;return _0x48b139;}*['getRevisionsIterator'](_0x1918ef,{direction:_0x12eda0='earlier',filter:_0x5027f1=()=>!0x0}={}){const _0x223bf5='earlier'===_0x12eda0?0x1:-0x1;let _0x73de26=this['_revisions']['get'](_0x1918ef),_0x150d6f=this['getIndex'](_0x73de26);for(yield _0x73de26;_0x73de26;){if(_0x150d6f+=_0x223bf5,_0x73de26=this['getRevision'](_0x150d6f),!_0x73de26)return;_0x5027f1(_0x73de26)&&(yield _0x73de26);}}}class V extends _0x4fedf0{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x2b5b53,'c'],[_0x3fc208,'a'],[_0x3ba476,'e'],[_0x22f295,'r'],[_0x4b1240,'u']]);['_typeCharToViewClass']=new Map([['c',_0x2b5b53],['a',_0x3fc208],['e',_0x3ba476],['r',_0x22f295],['u',_0x4b1240]]);async['loadRevisionData'](_0x3dea9d,_0x539c93){if(_0x3dea9d['diffData']||!_0x539c93)return;const _0xaee07e=this['editor']['config']['get']('collaboration.channelId'),_0x512531=await _0x539c93['getRevision']({'channelId':_0xaee07e,'revisionId':_0x3dea9d['id']});_0x3dea9d['diffData']=_0x512531['diffData'];}['getRevisionDocumentData'](_0x151a0d){const _0x3cb17c={};for(const _0x451afe in _0x151a0d['diffData']){if(_0x151a0d['diffData'][_0x451afe]['attachChange']&&!_0x151a0d['diffData'][_0x451afe]['attachChange']['isAttached'])continue;const _0x3b9f9b=this['_removeRevisionMarkers'](JSON['parse'](_0x151a0d['diffData'][_0x451afe]['insertions'])),_0xd970d5=this['editor']['editing']['view']['document'],_0x585522=new _0x11f991(_0xd970d5,_0x3b9f9b['map'](_0x27a458=>this['_getViewFromDiffObj'](_0x27a458,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x3cb17c[_0x451afe]=this['editor']['data']['processor']['toData'](_0x585522),this['editor']['data']['processor']['useFillerType']('default');}return _0x3cb17c;}['getRevisionRootsAttributes'](_0x39ed79){const _0x500db6={};for(const _0x3927e6 in _0x39ed79['diffData'])_0x39ed79['diffData'][_0x3927e6]['attachChange']&&!_0x39ed79['diffData'][_0x3927e6]['attachChange']['isAttached']||(_0x500db6[_0x3927e6]=_0x39ed79['diffData'][_0x3927e6]['attributesAfter']||{});return _0x500db6;}['_getTypeCharForViewElement'](_0x3b1d58){return this['_viewClassToTypeChar']['get'](_0x3b1d58['constructor']);}['_getViewFromDiffObj'](_0xbc8a6b,_0x32b847){const _0x27878d=this['editor']['editing']['view']['document'];if('string'==typeof _0xbc8a6b)return new _0x7a1e11(_0x27878d,_0xbc8a6b);{let _0x574a23,_0x1a3a4e;_0x1a3a4e='u'==_0xbc8a6b['type']||'r'==_0xbc8a6b['type']?[]:_0xbc8a6b['children']['map'](_0x3173d2=>this['_getViewFromDiffObj'](_0x3173d2,_0x32b847));const _0x1e448c=this['_typeCharToViewClass']['get'](_0xbc8a6b['type'])||_0x2c2d26,_0x365699=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x574a23=new _0x1e448c(_0x27878d,_0xbc8a6b['name'],_0xbc8a6b['attributes'],_0x1a3a4e),'u'==_0xbc8a6b['type']&&_0xbc8a6b['children'][0x0]){const _0x59eb3f=_0xbc8a6b['children'][0x0];if(_0x574a23['render']=function(_0x53e50e){const _0x2e51f3=_0x53e50e['createElement']('div');return _0x2e51f3['innerHTML']=_0x59eb3f,_0x2e51f3['childNodes'][0x0];},_0x32b847){const _0x34c9e6=new _0x11f991(_0x27878d);_0x34c9e6['_appendChild'](_0x574a23);const _0x1f65eb=Array['from'](_0x365699['viewChildrenToDom'](_0x34c9e6,{'bind':!0x1})),_0x248841=_0x365699['domDocument']['createElement']('div');_0x248841['append'](..._0x1f65eb),_0x574a23=Array['from'](_0x365699['domChildrenToView'](_0x248841))[0x0];}}else{if('r'==_0xbc8a6b['type']&&_0xbc8a6b['children'][0x0]){const _0x45c00d=_0xbc8a6b['children'][0x0];if(_0x574a23['render']=function(_0x5b1aaf){_0x5b1aaf['innerHTML']=_0x45c00d;},_0x32b847){const _0x53c1fe=new _0x11f991(_0x27878d);_0x53c1fe['_appendChild'](_0x574a23);const _0x45ab21=Array['from'](_0x365699['viewChildrenToDom'](_0x53c1fe,{'bind':!0x1})),_0x3d2884=_0x365699['domDocument']['createElement']('div');_0x3d2884['append'](..._0x45ab21);const _0x44cfbc=Array['from'](_0x365699['domChildrenToView'](_0x3d2884));_0x44cfbc['length']>0x1?_0x574a23['_appendChild'](_0x44cfbc):_0x574a23=_0x44cfbc[0x0];}}}if(_0xbc8a6b['customProperties']){for(const [_0x359b81,_0x4140ef]of _0xbc8a6b['customProperties'])_0x574a23['_setCustomProperty'](_0x359b81,_0x4140ef);}const _0x478f9d=void 0x0===_0xbc8a6b['fillerOffset']?null:_0xbc8a6b['fillerOffset'];return null!==_0x478f9d&&(_0x574a23['getFillerOffset']=()=>_0x478f9d),_0x574a23;}}['_makeModelFromViewString'](_0x29cef6){const _0xfe756c=JSON['parse'](_0x29cef6),_0x3efbfe=this['editor']['editing']['view']['document'],_0x3b1184=new _0x11f991(_0x3efbfe,_0xfe756c['map'](_0x3b93e9=>this['_getViewFromDiffObj'](_0x3b93e9,!0x0)));return this['editor']['data']['toModel'](_0x3b1184);}['_removeRevisionMarkers'](_0x12db12){return(_0x12db12=_0x12db12['filter'](_0x52ea3e=>!_0x52ea3e['name']||'revision-start'!==_0x52ea3e['name']&&'revision-end'!==_0x52ea3e['name']))['forEach'](_0x5b9ddf=>{'string'!=typeof _0x5b9ddf&&(_0x5b9ddf['children']=this['_removeRevisionMarkers'](_0x5b9ddf['children']),_0x5b9ddf['attributes']=_0x5b9ddf['attributes']['filter'](_0x1b4450=>!_0x1b4450[0x0]['startsWith']('data-revision-')));}),_0x12db12;}}function g(_0x551f9f,_0x3c6778,_0x21743d){const t=_0x551f9f['t'];switch(_0x3c6778){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'},_0x21743d);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x21743d);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 _0x4fedf0{['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[_0x4b58b7,I,V,_0xabd941];}constructor(_0x2d11a2){super(_0x2d11a2),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 _0x5a7e22=_0x50688e();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x5a7e22},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 _0x21104d=this['repository']['getRevision'](0x0),_0x113269=_0x21104d&&null===_0x21104d['creator']?_0x21104d:null;if(this['_continueCurrentRevision']=!!_0x113269&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x57ca12=this['_source']['getCurrentRevisionId'](),_0x5d8ed5=this['repository']['getRevision'](_0x57ca12);if(_0x5d8ed5)this['_startingVersion']=_0x5d8ed5['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x214094=this['_source']['history']['_operations']['find'](_0xdfe47f=>!_0xdfe47f['_isInit']),_0x1681ad=_0x214094?_0x214094['baseVersion']:this['_source']['history']['version'];_0x21104d?(_0x21104d['toVersion']<_0x1681ad&&_0x21104d['_update']({'toVersion':_0x1681ad}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x113269['id'],this['_startingVersion']=_0x113269['fromVersion']):(this['_startingVersion']=_0x21104d['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x1681ad,this['_continueCurrentRevision']=!0x1);}}else _0x113269&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x113269['toVersion'],this['editor']['model']['document']['history']['version']),_0x113269['fromVersion']===_0x113269['toVersion']?(0x0!==_0x113269['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x113269['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x113269['id'],this['_startingVersion']=_0x113269['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',_0xf4e4ac=>!_0xf4e4ac),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5647d3=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1b10ff;for(const _0x578677 in _0x5647d3){const _0x3b1e5a=_0x578677,_0x521aa6=_0x5647d3[_0x3b1e5a];if('revisionHistoryLicenseKeyValid'==_0x521aa6||'revisionHistoryLicenseKeyInvalid'==_0x521aa6||'revisionHistoryLicenseKeyExpired'==_0x521aa6||'revisionHistoryLicenseKeyDomainLimit'==_0x521aa6||'revisionHistoryLicenseKeyNotAllowed'==_0x521aa6||'revisionHistoryLicenseKeyEvaluationLimit'==_0x521aa6||'revisionHistoryLicenseKeyTrialLimit'==_0x521aa6||'revisionHistoryLicenseKeyUsageLimit'==_0x521aa6){delete _0x5647d3[_0x3b1e5a],_0x1b10ff=_0x521aa6,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x1b10ff&&_0x5647d3['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x1b10ff&&_0x5647d3['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x1b10ff&&_0x5647d3['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x1b10ff&&_0x5647d3['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x1b10ff&&_0x5647d3['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x1b10ff&&_0x5647d3['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x1b10ff&&_0x5647d3['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x4ca9b5=this['repository']['getRevision'](0x0),_0x5b3315=await this['getRevisionDocumentData'](_0x4ca9b5),_0x591de4=await this['getRevisionRootsAttributes'](_0x4ca9b5);this['_replaceEditorDataWithRevisionData'](_0x5b3315,_0x591de4);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x35c7c5){this['_source']=_0x35c7c5;}async['update'](){const _0x5c5d2f=await this['_source']['getLatestVersion']();if(_0x5c5d2f>this['currentRevision']['toVersion']){await this['_loadState']();const _0x12f3c2=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x5c5d2f});_0x12f3c2['authors']=_0x12f3c2['authorsIds']['map'](_0x3d3915=>this['editor']['plugins']['get']('Users')['getUser'](_0x3d3915)),this['currentRevision']['_update'](_0x12f3c2);}}async['saveRevision'](_0x2c5b7b={},_0x3be15b=null){const _0x22c103=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x3be15b>this['currentRevision']['toVersion']&&(_0x3be15b=null),null===_0x3be15b&&(_0x3be15b=await this['_source']['getLatestVersion']());const _0x4ec08c=this['_getFromVersion'](_0x3be15b),_0x1ee0f8=this['buildRevisionData']({'from':_0x4ec08c,'to':_0x3be15b});if(this['currentRevision']['toVersion']<_0x3be15b){const _0xfedc7a=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x3be15b,'to':_0x3be15b});_0xfedc7a['authors']=[],_0xfedc7a['authorsIds']=[],_0xfedc7a['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0xfedc7a,!0x0),delete _0xfedc7a['authors'],_0x22c103['push'](_0xfedc7a);}_0x2c5b7b['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x2c5b7b['name']=_0x2c5b7b['name']||null,_0x2c5b7b['id']=_0x2c5b7b['id']||_0x50688e(),_0x2c5b7b={..._0x2c5b7b,..._0x1ee0f8};const _0x2ef4b6=this['addRevisionData'](_0x2c5b7b);_0x22c103['push'](_0x2c5b7b);const _0xb81cf4=this['repository']['getIndex'](_0x2ef4b6);if(0x0!==_0xb81cf4){const _0x3bdf15=this['repository']['getRevision'](_0xb81cf4-0x1);if(_0x3bdf15['fromVersion']!==_0x3be15b){const _0x4b16e5=this['_revisionDataBuilder']['getData'](_0x3be15b,_0x3bdf15['toVersion']),_0x4d0757={'id':_0x3bdf15['id'],'diffData':_0x4b16e5['diffData'],'authorsIds':_0x4b16e5['authorsIds'],'authors':_0x4b16e5['authorsIds']['map'](_0x5b2591=>this['editor']['plugins']['get']('Users')['getUser'](_0x5b2591)),'fromVersion':_0x3be15b};_0x3bdf15===this['currentRevision']&&(_0x4d0757['createdAt']=new Date(_0x2c5b7b['createdAt']['getTime']()+0xa)),_0x3bdf15['_update'](_0x4d0757,!0x0),delete _0x4d0757['authors'],_0x22c103['push'](_0x4d0757);}}if(this['adapter']){for(const _0x33d497 of _0x22c103)this['_bufferUpdate'](_0x33d497['id'],_0x33d497,!0x0);this['sendBufferedUpdates']();}return _0x2ef4b6;}['addRevisionData'](_0x1ed14c){const _0x30b257=this['repository']['createRevision'](_0x1ed14c);return this['adapter']&&_0x30b257['on']('_update',(_0x4e6feb,_0x145c64,_0x575a51)=>{_0x575a51||(this['_bufferUpdate'](_0x145c64['id'],_0x145c64,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x30b257,this['_findInsertionIndex'](_0x30b257)),_0x30b257;}async['getRevisionDocumentData'](_0x5c27a){return await this['_utils']['loadRevisionData'](_0x5c27a,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x5c27a);}async['getRevisionRootsAttributes'](_0x590995){return await this['_utils']['loadRevisionData'](_0x590995,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x590995);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x4d29de=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x3e9cd3=0x0;_0x3e9cd3<_0x4d29de['length'];_0x3e9cd3++){const _0x16f1d4=_0x4d29de[_0x3e9cd3];let _0x1a8ef8=!0x1;for(const _0x23b38b of Object['keys'](_0x16f1d4))void 0x0===_0x16f1d4[_0x23b38b]?delete _0x16f1d4[_0x23b38b]:'id'!==_0x23b38b&&(_0x1a8ef8=!0x0);_0x1a8ef8||(_0x4d29de[_0x3e9cd3]=null);}if(_0x4d29de=_0x4d29de['filter'](_0x1da7c4=>null!==_0x1da7c4),!_0x4d29de['length'])return;for(let _0x142872=0x0;_0x142872<_0x4d29de['length'];_0x142872++){const _0x5318e6=_0x4d29de[_0x142872];void 0x0!==_0x5318e6['fromVersion']&&void 0x0===_0x5318e6['toVersion']&&(_0x5318e6['toVersion']=this['repository']['getRevision'](_0x5318e6['id'])['toVersion']),void 0x0!==_0x5318e6['toVersion']&&void 0x0===_0x5318e6['fromVersion']&&(_0x5318e6['fromVersion']=this['repository']['getRevision'](_0x5318e6['id'])['fromVersion']);}const _0x1147b2=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x4d29de,_0x1147b2)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x508056=>{if(_0x508056){for(const _0x59a7c7 of _0x508056)this['setRevisionData']({'id':_0x59a7c7['id'],'createdAt':_0x59a7c7['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x55cd3c=null,from:_0x1ea671=null,to:_0xe17086=null}){_0x1ea671=null!==_0x1ea671?_0x1ea671:_0x55cd3c['fromVersion'],_0xe17086=null!==_0xe17086?_0xe17086:_0x55cd3c['toVersion'];const _0x4c5da9=this['_revisionDataBuilder']['getData'](_0x1ea671,_0xe17086),_0x41b638={'diffData':_0x4c5da9['diffData'],'authorsIds':_0x4c5da9['authorsIds'],'fromVersion':_0x1ea671,'toVersion':_0xe17086};if(!_0x55cd3c||_0xe17086!==_0x55cd3c['toVersion']){const _0x3473a3=_0xe17086-0x1,_0x538770=this['_source']['history']['getOperation'](_0x3473a3);_0x41b638['createdAt']=_0x538770&&_0x538770['createdAt']||new Date();}if(this['_loadedStateData']&&_0x1ea671===this['_loadedStateData']['fromVersion']){for(const _0x4d1862 of this['_loadedStateData']['authors'])_0x41b638['authorsIds']['includes'](_0x4d1862['id'])||_0x41b638['authorsIds']['push'](_0x4d1862['id']);}return _0x41b638;}['_bufferUpdate'](_0x1827ef,_0x54f016,_0x40af7b){if(this['_bufferedUpdates']['has'](_0x1827ef)){const _0x1e8a42=this['_bufferedUpdates']['get'](_0x1827ef);_0x54f016=_0x40af7b?{..._0x1e8a42,..._0x54f016}:{..._0x54f016,..._0x1e8a42};}this['_bufferedUpdates']['set'](_0x1827ef,_0x54f016);}['setRevisionData'](_0x269ae8){const _0x59a2be=this['repository']['getRevision'](_0x269ae8['id']);if(_0x269ae8['createdAt']&&(_0x269ae8['createdAt']=new Date(_0x269ae8['createdAt'])),_0x269ae8['authorsIds']){const _0x774f17=this['editor']['plugins']['get']('Users');_0x269ae8['authors']=_0x269ae8['authorsIds']['map'](_0x186a39=>_0x774f17['getUser'](_0x186a39));}_0x59a2be['_update'](_0x269ae8,!0x0);}['_createInitialRevision'](_0x3d3953){const _0x353158=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x353158)this['_initialRevisionId']=_0x353158['id'];else{const _0xd1b134=!this['editor']['model']['document']['roots']['find'](_0x4789cc=>this['editor']['model']['hasContent'](_0x4789cc)),_0x467c13=this['editor']['plugins']['get']('Users')['me']['id'],_0x1aa3e1=g(this['editor']['locale'],_0xd1b134?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x3d3953,'to':_0x3d3953,'id':this['_initialRevisionId'],'name':_0x1aa3e1,'creatorId':_0x467c13});}}['_createCurrentRevision'](_0x504558){const _0x5e6ec8=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x5e6ec8),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x504558,'to':_0x504558,'id':_0x5e6ec8,'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'](_0xd7c6bb,_0x2ed43a){let _0x8401e8=this['editor']['config']['get']('initialData'),_0x6cf577=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x8401e8){_0x8401e8={};for(const _0x477499 of this['editor']['model']['document']['getRootNames']())_0x8401e8[_0x477499]='';}if('string'==typeof _0x8401e8&&(_0x8401e8={'main':_0x8401e8}),void 0x0===_0x6cf577){_0x6cf577={};for(const _0x5ceb7e of this['editor']['model']['document']['getRootNames']())_0x6cf577[_0x5ceb7e]={};}let _0x4ef63b=!0x1;const _0x99e971=Object['keys'](_0x8401e8),_0x36fae5=Object['keys'](_0xd7c6bb);for(const _0x1c5879 of _0x99e971){if(_0x8401e8[_0x1c5879]!==_0xd7c6bb[_0x1c5879]&&''!==_0x8401e8[_0x1c5879]['trim']()){_0x4ef63b=!0x0;break;}if(!_0x579587(_0x6cf577[_0x1c5879],_0x2ed43a[_0x1c5879])&&Object['keys'](_0x6cf577[_0x1c5879])['length']>0x0){_0x4ef63b=!0x0;break;}}_0x4ef63b||(_0x4ef63b=_0x36fae5['some'](_0x549709=>!this['editor']['model']['document']['getRoot'](_0x549709))),_0x4ef63b&&_0x579614('editor-initial-data-replaced-with-revision-data',{'editorData':_0x8401e8,'editorRootsAttributes':_0x6cf577,'revisionData':_0xd7c6bb,'revisionRootsAttributes':_0x2ed43a}),this['editor']['config']['set']('initialData',_0xd7c6bb),this['editor']['config']['set']('rootsAttributes',_0x2ed43a);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x26a1db=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x26a1db['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x1f352e){const _0x5c8884=this['repository']['getRevisions']();_0x5c8884['reverse']();let _0x5c06cd=0x0;for(;_0x5c06cd<_0x5c8884['length'];){const _0x15f3ac=_0x5c8884[_0x5c06cd];if(_0x15f3ac===this['currentRevision']){_0x5c06cd++;continue;}if(_0x15f3ac['id']===this['_initialRevisionId'])break;const _0x2f99d6=_0x1f352e['toVersion']-_0x15f3ac['toVersion']||_0x1f352e['fromVersion']-_0x15f3ac['fromVersion'];if(_0x2f99d6>0x0)break;if(_0x2f99d6<0x0)_0x5c06cd++;else{if(!_0x1f352e['creator']&&_0x15f3ac['creator'])break;if(_0x15f3ac['creator']||!_0x1f352e['creator']){if(_0x1f352e['createdAt']>_0x15f3ac['createdAt'])break;_0x5c06cd++;}else _0x5c06cd++;}}return _0x5c06cd;}['_getFromVersion'](_0x743f4e){const _0x338974=this['repository']['getRevisions']();_0x338974['reverse'](),_0x338974['shift']();const _0x308340=_0x338974['find'](_0x6fd257=>_0x6fd257['toVersion']<=_0x743f4e)['toVersion'];return _0x308340<this['_startingVersion']?this['_startingVersion']:_0x308340;}['_makeRevision']({name:_0x40e708,from:_0xdc5b9f,to:_0x5ae43d,creatorId:_0x4bcde9,id:_0x1840ee}){const _0x54a612=this['buildRevisionData']({'from':_0xdc5b9f,'to':_0x5ae43d});_0x54a612['name']=_0x40e708,_0x54a612['creatorId']=_0x4bcde9,_0x54a612['id']=_0x1840ee;const _0xc69449=this['addRevisionData'](_0x54a612);return this['adapter']&&this['_bufferUpdate'](_0x54a612['id'],_0x54a612,!0x0),_0xc69449;}['_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(_0x394eda){this['editor']=_0x394eda,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'](_0x390e59){this['source']=_0x390e59;const _0x244cc3=new Map(),_0xfe171c=new Map(),_0x30c53b=this['editor']['model']['document']['roots']['map'](_0x23419a=>_0x23419a['rootName']);for(const _0x7c876b of _0x30c53b){const _0x5ddb82=this['editor']['model']['document']['getRoot'](_0x7c876b),_0x1d8db8=N(_0x5ddb82);_0x244cc3['set'](_0x7c876b,_0x1d8db8),_0xfe171c['set'](_0x7c876b,Object['fromEntries'](_0x5ddb82['getAttributes']()));}const _0x191e5b=Array['from'](this['editor']['model']['markers'])['map'](_0x122c50=>[_0x122c50['name'],_0x122c50['getRange']()]),_0x40bc78=this['source']['version'];this['_saveMetaData'](_0x40bc78,_0x244cc3,_0x191e5b,_0xfe171c),this['_startingRevisionId']=this['_revisionId'];const _0x4a0a0e=new Map(),_0x257b59=new Map();for(const _0x53bb81 of _0x30c53b){const _0x1d6948=P(_0x53bb81);_0x4a0a0e['set'](_0x53bb81,_0x1d6948),_0x257b59['set'](_0x53bb81,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x4a0a0e,[],_0x257b59);}['getData'](_0x3a391d,_0xdbb20e){if(this['_lastFrom']===_0x3a391d&&this['_lastTo']<=_0xdbb20e)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0xdbb20e,!0x0);else{if(!this['_savedMetaData']['has'](_0x3a391d)){const _0x2c17ed=this['_getPreviousFrom'](_0x3a391d);this['_calculateMetaData'](_0x2c17ed,_0x3a391d,!0x1);}this['_calculateMetaData'](_0x3a391d,_0xdbb20e,!0x0);}return this['_lastFrom']=_0x3a391d,this['_lastTo']=_0xdbb20e,this['_getState']();}['loadState'](_0x8d7062){const _0x3d52c6=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x8d7062['fromVersion'],this['_lastTo']=_0x8d7062['toVersion'];for(const _0x318119 in _0x8d7062['diffData']){const _0xac61ce=_0x8d7062['diffData'][_0x318119]['attachChange'],_0x301a67=_0x3656c2(_0x8d7062['diffData'][_0x318119]['attributesBefore'])||{},_0x53767d=_0x3d52c6['_makeModelFromViewString'](_0x8d7062['diffData'][_0x318119]['deletions']);_0x53767d['rootName']=_0x318119,_0x53767d['_isAttached']=!_0xac61ce||!_0xac61ce['isAttached'],_0x53767d['isAttached']=()=>_0x53767d['_isAttached'],this['_baseRoots']['set'](_0x318119,_0x53767d),this['_baseRootsAttributes']['set'](_0x318119,_0x301a67),_0xac61ce&&this['_touchedRoots']['set'](_0x318119,_0xac61ce);const _0x381706=this['_makeIdsRoot'](_0x53767d);this['_baseIdsRoots']['set'](_0x318119,_0x381706);for(const [_0x433dfb,_0x142637]of _0x53767d['markers']){if(!_0x433dfb['startsWith']('revision:'))continue;const _0x42ef32=_0x433dfb['split'](':')[0x2];for(const _0x2e2211 of _0x142637['getWalker']({'singleCharacters':!0x0})){const _0x1ef599=this['_getVidAttributeName'](_0x2e2211),_0x4c3093='elementEnd'==_0x2e2211['type']?_0x2e2211['previousPosition']['path']['slice'](0x0,-0x1):_0x2e2211['previousPosition']['path'],_0x6688cf=_0x381706['getNodeByPath'](_0x4c3093)['getAttribute'](_0x1ef599);this['_touched']['set'](_0x6688cf,{'userId':_0x42ef32});}}}this['_startingRevisionId']=this['_revisionId'];const _0x2c343d=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x4d3e67=>!this['_touched']['has'](_0x4d3e67));let _0x5c4c35=0x0;const _0x233753=new Map();for(const _0x373b8c in _0x8d7062['diffData']){const _0x253794=_0x8d7062['diffData'][_0x373b8c]['attachChange'],_0xd96e4d=_0x3656c2(_0x8d7062['diffData'][_0x373b8c]['attributesAfter'])||{},_0x2f6f05=_0x3d52c6['_makeModelFromViewString'](_0x8d7062['diffData'][_0x373b8c]['insertions']);_0x2f6f05['rootName']=_0x373b8c,_0x2f6f05['_isAttached']=!_0x253794||_0x253794['isAttached'],_0x2f6f05['isAttached']=()=>_0x2f6f05['_isAttached'],this['_diffRoots']['set'](_0x373b8c,_0x2f6f05),this['_diffRootsAttributes']['set'](_0x373b8c,_0xd96e4d);const _0x282c73=this['_makeIdsRoot'](_0x2f6f05,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x373b8c,_0x282c73),_0x233753['set'](_0x373b8c,_0x2f6f05['isAttached']()?_0xd96e4d:{});for(const [_0x2cd9e5,_0x119149]of _0x2f6f05['markers']){if(!_0x2cd9e5['startsWith']('revision:'))continue;const _0x1a2cb2=_0x2cd9e5['split'](':')[0x2];for(const _0x3b1847 of _0x119149['getWalker']({'singleCharacters':!0x0})){const _0xaf1d94=this['_getVidAttributeName'](_0x3b1847),_0x5a294f=this['_revisionId']++,_0x31ce1e='elementEnd'==_0x3b1847['type']?_0x3b1847['previousPosition']['path']['slice'](0x0,-0x1):_0x3b1847['previousPosition']['path'];_0x282c73['getNodeByPath'](_0x31ce1e)['_setAttribute'](_0xaf1d94,_0x5a294f),this['_touched']['set'](_0x5a294f,{'userId':_0x1a2cb2});}}for(const _0x4168e1 of this['editor']['model']['createRangeIn'](_0x2f6f05)['getWalker']({'singleCharacters':!0x0})){const _0x56a964=this['_getVidAttributeName'](_0x4168e1),_0x39a6ef='elementEnd'==_0x4168e1['type']?_0x4168e1['previousPosition']['path']['slice'](0x0,-0x1):_0x4168e1['previousPosition']['path'],_0x366619=_0x282c73['getNodeByPath'](_0x39a6ef);_0x366619['getAttribute'](_0x56a964)>0x0||_0x366619['_setAttribute'](_0x56a964,_0x2c343d[_0x5c4c35++]);}for(const [_0x4224e9,_0x12141f]of _0x2f6f05['markers'])_0x4224e9['startsWith']('revision:')||this['_markers']['set'](_0x4224e9,_0x12141f);}const _0x420830=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0x420830),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x420830,0x1));const _0x189c97=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x189c97),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x189c97,0x1));const _0xb900db=Array['from'](this['_diffRoots'])['map'](([_0xb9351,_0x862fbd])=>[_0xb9351,N(_0x862fbd)]);this['_saveMetaData'](this['_lastTo'],_0xb900db,this['_markers'],_0x233753);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x5312ce,_0x407d5b,_0x556911,_0x1033c3){const _0x784754=new Map(_0x407d5b),_0x2a6d20=new Map(_0x3656c2(_0x1033c3)),_0x4eb9ae=new Map();for(const [_0x2989ba,_0x3d718c]of _0x556911)_0x4eb9ae['set'](_0x2989ba,{'start':_0x3d718c['start']['clone'](),'end':_0x3d718c['end']['clone'](),'rootName':_0x3d718c['root']['rootName']});this['_savedMetaData']['set'](_0x5312ce,{'roots':_0x784754,'markers':_0x4eb9ae,'rootsAttributes':_0x2a6d20});}['_removeMetaData'](_0x5c0ad3){this['_savedMetaData']['delete'](_0x5c0ad3);}['_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'](_0x14b430,_0xbcd892=null){let _0x563930=null;_0x14b430['is']('documentFragment')||(_0x563930=new ut(_0x14b430['name'],{'vid_start':null===_0xbcd892?this['_revisionId']++:_0xbcd892++}));const _0x394653=[];for(const _0x137b59 of _0x14b430['getChildren']())if(_0x137b59['is']('element')){_0x394653['push'](this['_makeIdsRoot'](_0x137b59,_0xbcd892));const _0x40ef17=_0x394653[_0x394653['length']-0x1];null!==_0xbcd892&&(_0xbcd892=_0x40ef17['is']('element','$text')?_0x40ef17['getAttribute']('vid')+0x1:_0x40ef17['getAttribute']('vid_end')+0x1);}else{for(let _0x6261ce=0x0;_0x6261ce<_0x137b59['offsetSize'];_0x6261ce++)_0x394653['push'](new ut('$text',{'vid':null===_0xbcd892?this['_revisionId']++:_0xbcd892++}));}if(_0x14b430['is']('documentFragment')){const _0x285822=P(_0x14b430['rootName']);return _0x285822['_insertChild'](0x0,_0x394653),_0x285822;}return _0x563930['_setAttribute']('vid_end',null===_0xbcd892?this['_revisionId']++:_0xbcd892++),_0x563930['_insertChild'](0x0,_0x394653),_0x563930;}['_calculateMetaData'](_0x219c77,_0x36e63e,_0x15b8b2){this['_reset']();const {roots:_0xea1d6b,markers:_0x5cd85d,rootsAttributes:_0x5ec88b}=this['_savedMetaData']['get'](_0x219c77);this['_baseRoots']=new Map(_0xea1d6b),this['_baseRootsAttributes']=new Map(_0x3656c2(_0x5ec88b));for(const [_0x587fae,_0x50d217]of this['_baseRoots'])if('$graveyard'!==_0x587fae&&(this['_diffRoots']['set'](_0x587fae,N(_0x50d217)),this['_diffRootsAttributes']=new Map(_0x3656c2(_0x5ec88b)),_0x15b8b2)){const _0x4efe05=this['_revisionId'];this['_idsRoots']['set'](_0x587fae,this['_makeIdsRoot'](_0x50d217)),this['_baseIdsRoots']['set'](_0x587fae,this['_makeIdsRoot'](_0x50d217,_0x4efe05));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x15b8b2&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x39aa94,_0x543523]of _0x5cd85d){const _0x360b0b=this['_baseRoots']['get'](_0x543523['rootName']),_0x5ac371=this['_diffRoots']['get'](_0x543523['rootName']),_0x5df833=new lt(this['_fixPosition'](_0x543523['start'],_0x360b0b),this['_fixPosition'](_0x543523['end'],_0x360b0b)),_0x5b80fc=this['_fixRange'](_0x5df833,_0x5ac371);_0x360b0b['markers']['set'](_0x39aa94,_0x5df833),this['_markers']['set'](_0x39aa94,_0x5b80fc);}this['_applyOperations'](_0x219c77,_0x36e63e,_0x15b8b2);}['_applyOperations'](_0xc9d666,_0x5e924d,_0x12777e){for(const _0x243cef of this['source']['getOperations'](_0xc9d666,_0x5e924d))this['_handleOperation'](_0x243cef,_0x12777e);for(const _0x497a5d of this['_diffRoots']['values']())_0x497a5d['markers']['clear']();for(const [_0x97744b,_0x1612a1]of this['_markers']){this['_diffRoots']['get'](_0x1612a1['root']['rootName'])['markers']['set'](_0x97744b,_0x1612a1['clone']());}const _0x25d6c8=new Map(),_0x290e7c=new Map();for(const [_0x34e49b,_0x54794a]of this['_diffRoots'])_0x25d6c8['set'](_0x34e49b,N(_0x54794a)),_0x290e7c['set'](_0x34e49b,this['_diffRootsAttributes']['get'](_0x34e49b));this['_saveMetaData'](_0x5e924d,_0x25d6c8,this['_markers'],_0x290e7c);}['_getPreviousFrom'](_0x3b8125){const _0x43e1b7=Array['from'](this['_savedMetaData']['keys']());_0x43e1b7['sort']((_0x307d73,_0x28ef91)=>_0x307d73-_0x28ef91),_0x43e1b7['reverse']();for(const _0x11b3e8 of _0x43e1b7)if(_0x11b3e8<_0x3b8125)return _0x11b3e8;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x562c8c,_0xf97d68){const _0x58a42a=Array['from'](_0xf97d68['markers'])['map'](([_0x445e76,_0x4112a5])=>[_0x445e76,this['_fixRange'](_0x4112a5,_0x562c8c)]);_0x562c8c['markers']=new Map(_0x58a42a);}['_transformMarkers'](_0x171fdf){for(const _0x2bece1 of this['_markers']['values']()){const _0x823e6f=_0x2bece1['getTransformedByOperation'](_0x171fdf),_0x30963a=lt['_createFromRanges'](_0x823e6f);_0x2bece1['start']=_0x30963a['start'],_0x2bece1['end']=_0x30963a['end'];}}['_handleOperation'](_0x166bc7,_0x1835ca){if('addRoot'!=_0x166bc7['type']&&'detachRoot'!=_0x166bc7['type']){if('insert'==_0x166bc7['type']){const _0x1518be=_0x166bc7['position']['root']['rootName'];this['_diffRoots']['has'](_0x1518be)||(this['_diffRoots']['set'](_0x1518be,P(_0x1518be,!0x0)),this['_diffRootsAttributes']['set'](_0x1518be,{}),_0x1835ca&&this['_idsRoots']['set'](_0x1518be,P(_0x1518be,!0x0)));}else{if('addRootAttribute'==_0x166bc7['type']||'removeRootAttribute'==_0x166bc7['type']||'changeRootAttribute'==_0x166bc7['type'])return void this['_handleRootAttributeOperation'](_0x166bc7);'marker'==_0x166bc7['type']&&this['_handleMarkerOperation'](_0x166bc7);}if('marker'!==_0x166bc7['type']){const _0x5ae789=this['_cloneOperation'](_0x166bc7,this['_diffRoots']);_0x5ae789['_execute'](),this['_transformMarkers'](_0x5ae789);}if(_0x1835ca)switch(_0x166bc7['type']){case'insert':this['_handleInsertOperation'](_0x166bc7);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x166bc7);break;case'merge':this['_handleMergeOperation'](_0x166bc7);break;case'split':this['_handleSplitOperation'](_0x166bc7);}}else this['_handleRootOperation'](_0x166bc7,_0x1835ca);}['_cloneOperation'](_0x46c102,_0x5c63ea){const _0x299429=_0x46c102['clone']();return _0x299429['_authorId']=_0x46c102['_authorId'],this['_fixOperation'](_0x299429,_0x5c63ea),_0x299429;}['_getBaseVids'](_0x2497d8){return _0x2497d8['map'](_0x51a729=>{const _0x7d1ba7=this['_getVidAttributeName'](_0x51a729);return Number(_0x51a729['item']['getAttribute'](_0x7d1ba7));});}['_generateTape'](_0x2e0c5c,_0x1fd273){if(_0x2e0c5c['is']('element','$text'))_0x1fd273['push']({'item':_0x2e0c5c,'type':'text'});else{_0x2e0c5c['is']('element')&&_0x1fd273['push']({'item':_0x2e0c5c,'type':'elementStart'});for(const _0x257f04 of _0x2e0c5c['getChildren']())this['_generateTape'](_0x257f04,_0x1fd273);_0x2e0c5c['is']('element')&&_0x1fd273['push']({'item':_0x2e0c5c,'type':'elementEnd'});}return _0x1fd273;}['_getState'](){const _0x5a99be=new Map(this['_touched']),_0x317675=new Map(_0x5a99be),_0x102053=new Map(),_0x4b26bc={'insertions':{},'deletions':{}},_0x7fb5dd={'insertions':{},'deletions':{}},_0x1cc615=new Map(),_0x3e06c5=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x3e06c5['delete']('$graveyard');for(const _0xb0585e of _0x3e06c5){const _0x263225=this['_diffRoots']['get'](_0xb0585e)||P(_0xb0585e,!0x1),_0x47bdc2=this['_baseRoots']['get'](_0xb0585e)||P(_0xb0585e,!0x1);_0x263225['isAttached']()||_0x47bdc2['isAttached']()?(_0x4b26bc['insertions'][_0xb0585e]=N(_0x263225),_0x4b26bc['deletions'][_0xb0585e]=N(_0x47bdc2),this['_copyMarkers'](_0x4b26bc['deletions'][_0xb0585e],_0x47bdc2),this['_copyMarkers'](_0x4b26bc['insertions'][_0xb0585e],_0x263225),_0x7fb5dd['insertions'][_0xb0585e]=this['_generateTape'](this['_idsRoots']['get'](_0xb0585e),[]),_0x7fb5dd['deletions'][_0xb0585e]=this['_generateTape'](this['_baseIdsRoots']['get'](_0xb0585e)||P(_0xb0585e,!0x1),[])):_0x3e06c5['delete'](_0xb0585e);}for(const _0x223c85 of _0x3e06c5){const _0x306caa=_0x7fb5dd['insertions'][_0x223c85];for(const _0x302fca of _0x306caa){const _0x4173ef=this['_getVidAttributeName'](_0x302fca),_0x38f183=_0x302fca['item']['getAttribute'](_0x4173ef);_0x317675['delete'](_0x38f183),_0x38f183>=this['_startingRevisionId']&&_0x102053['set'](_0x38f183,_0x5a99be['get'](_0x38f183));}}for(const _0x1eb247 of _0x3e06c5){const _0x464750=_0x7fb5dd['insertions'][_0x1eb247],_0x4dd317=this['_getBaseVids'](_0x7fb5dd['deletions'][_0x1eb247]);let _0x214876=0x0;for(const _0x5e6d6d of _0x464750){const _0xf386f6=this['_getVidAttributeName'](_0x5e6d6d),_0x4bb1e8=_0x5e6d6d['item']['getAttribute'](_0xf386f6);if(!_0x102053['has'](_0x4bb1e8)&&!_0x1cc615['has'](_0x4bb1e8)){if(_0x317675['has'](_0x4bb1e8))_0x214876++;else{if(_0x4bb1e8!=_0x4dd317[_0x214876]){const _0x1f3101=_0x5a99be['get'](_0x4bb1e8)||_0x5a99be['get'](_0x4dd317[_0x214876]);for(;_0x4bb1e8!=_0x4dd317[_0x214876];)_0x317675['has'](_0x4dd317[_0x214876])||(_0x1cc615['set'](_0x4dd317[_0x214876],_0x1f3101),_0x5a99be['set'](_0x4dd317[_0x214876],_0x1f3101)),_0x214876++;}_0x214876++;}}}}for(const _0x1a9acf of _0x3e06c5){const _0x17c410=_0x7fb5dd['insertions'][_0x1a9acf];for(const _0x4b887d of _0x17c410){const _0x183e04=this['_getVidAttributeName'](_0x4b887d),_0x5af8f4=_0x4b887d['item']['getAttribute'](_0x183e04);if(_0x1cc615['has'](_0x5af8f4)){const _0x419c23=_0x1cc615['get'](_0x5af8f4);_0x317675['has'](_0x5af8f4)||_0x317675['set'](_0x5af8f4,{..._0x419c23}),_0x102053['set'](_0x5af8f4,{..._0x419c23});}}}for(const _0x57532e of _0x317675['keys']())_0x57532e>=this['_startingRevisionId']&&_0x317675['delete'](_0x57532e);const _0x52b860=new Map();for(const _0x46ee71 of _0x3e06c5){let _0x131579=_0x7fb5dd['insertions'][_0x46ee71];for(const _0x2615b1 of _0x131579)if(_0x2615b1['item']['is']('element','tableCell')){const _0x4b4905=this['_getVidAttributeName'](_0x2615b1),_0x1983cb=_0x2615b1['item']['getAttribute'](_0x4b4905);if(_0x102053['has'](_0x1983cb)){const _0x5ad47d=_0x2615b1['item']['parent']['parent']['getAttribute']('vid_start'),_0x42e5be=_0x52b860['get'](_0x5ad47d)||new Set();_0x42e5be['add'](_0x102053['get'](_0x1983cb)['userId']),_0x52b860['set'](_0x5ad47d,_0x42e5be);}}_0x131579=_0x7fb5dd['deletions'][_0x46ee71];for(const _0x492da2 of _0x131579)if(_0x492da2['item']['is']('element','tableCell')){const _0x47bfcc=this['_getVidAttributeName'](_0x492da2),_0x11e047=_0x492da2['item']['getAttribute'](_0x47bfcc);if(_0x317675['has'](_0x11e047)){const _0x4008da=_0x492da2['item']['parent']['parent']['getAttribute']('vid_start'),_0x28c8f3=_0x52b860['get'](_0x4008da)||new Set();_0x28c8f3['add'](_0x317675['get'](_0x11e047)['userId']),_0x52b860['set'](_0x4008da,_0x28c8f3);}}for(const _0x50d831 of _0x52b860['keys']())(_0x102053['has'](_0x50d831)||_0x317675['has'](_0x50d831))&&_0x52b860['delete'](_0x50d831);}for(const _0x4661c9 of _0x3e06c5){const _0x3ac7f3=_0x7fb5dd['insertions'][_0x4661c9];let _0x3a234d=null,_0x2fe4fc=null;for(const _0x57a4f9 of _0x3ac7f3){const _0x438ba5=this['_getVidAttributeName'](_0x57a4f9),_0xff7578=_0x57a4f9['item']['getAttribute'](_0x438ba5),_0x472a1e=_0x52b860['get'](_0xff7578);_0x472a1e&&'elementStart'==_0x57a4f9['type']&&(_0x3a234d=Array['from'](_0x472a1e)[0x0],_0x2fe4fc=_0x57a4f9['item']['getAttribute']('vid_end')),_0x3a234d&&(_0x317675['set'](_0xff7578,{'userId':_0x3a234d}),_0x102053['set'](_0xff7578,{'userId':_0x3a234d})),_0xff7578==_0x2fe4fc&&(_0x3a234d=null,_0x2fe4fc=null);}}const _0x1542a7={},_0xcf5db2=new Set();for(const _0x54f599 of _0x3e06c5){const _0x4c257c=_0x4b26bc['deletions'][_0x54f599],_0x918937=_0x4b26bc['insertions'][_0x54f599];for(const {userId:_0x58a82b}of this['_touchedMarkers']['values']())null!==_0x58a82b&&_0xcf5db2['add'](_0x58a82b);for(const {userId:_0x3bf982}of this['_touchedRoots']['values']())null!==_0x3bf982&&_0xcf5db2['add'](_0x3bf982);this['_markChanges'](_0x918937,_0x7fb5dd['insertions'][_0x54f599],_0x102053,'insertion',_0xcf5db2),this['_markChanges'](_0x4c257c,_0x7fb5dd['deletions'][_0x54f599],_0x317675,'deletion',_0xcf5db2),_0x1542a7[_0x54f599]={'insertions':this['_prepareViewToSave'](_0x918937),'deletions':this['_prepareViewToSave'](_0x4c257c),'attachChange':this['_touchedRoots']['get'](_0x54f599)||null,'attributesBefore':_0x3656c2(this['_baseRootsAttributes']['get'](_0x54f599))||{},'attributesAfter':_0x3656c2(this['_diffRootsAttributes']['get'](_0x54f599))};}return{'diffData':_0x1542a7,'authorsIds':Array['from'](_0xcf5db2)};}['_processRootBeforeSave'](_0x386ab7){for(const [,_0x4cf27b]of _0x386ab7['markers']){const _0x4eb461=_0x4cf27b['start']['getAncestors']()['filter'](_0x2dd982=>'tableCell'==_0x2dd982['name']);for(const _0x51e580 of _0x4eb461)0x1==_0x51e580['childCount']&&_0x51e580['getChild'](0x0)['is']('element','paragraph')&&_0x51e580['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x363c5a){this['_processRootBeforeSave'](_0x363c5a);const _0x2fdcca=this['editor']['data']['toView'](_0x363c5a,{}),_0x4b3a5f=Array['from'](_0x2fdcca['getChildren']())['map'](_0x19f275=>this['_getViewJson'](_0x19f275));return JSON['stringify'](_0x4b3a5f);}['_getViewJson'](_0x32bd42){if(_0x32bd42['is']('$text'))return _0x32bd42['data'];{const _0x51ab4b=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x35232c=_0x32bd42,_0x557eda=this['editor']['data']['htmlProcessor']['domConverter'],_0x1dd73a={'type':_0x51ab4b['_getTypeCharForViewElement'](_0x35232c),'name':_0x35232c['name'],'attributes':Array['from'](_0x35232c['getAttributes']()),'children':Array['from'](_0x35232c['getChildren']())['map'](_0x39034a=>this['_getViewJson'](_0x39034a))};if(_0x32bd42['is']('uiElement')&&'$comment'!=_0x32bd42['name']){const _0x37dcbd=_0x32bd42['render'](_0x557eda['domDocument'],_0x557eda);_0x1dd73a['children']['push'](_0x37dcbd['outerHTML']);}else{if(_0x32bd42['is']('rawElement')){const _0x2a6436=_0x557eda['domDocument']['createElement'](_0x35232c['name']);_0x32bd42['render'](_0x2a6436,_0x557eda),_0x1dd73a['children']['push'](_0x2a6436['innerHTML']);}}const _0x55a5b5=Array['from'](_0x35232c['getCustomProperties']());_0x55a5b5['length']>0x0&&(_0x1dd73a['customProperties']=_0x55a5b5);const _0x52b252=_0x35232c['getFillerOffset']();return null!==_0x52b252&&(_0x1dd73a['fillerOffset']=_0x52b252),_0x1dd73a;}}['_markChanges'](_0x31dbed,_0x37897d,_0x43e7f0,_0x48b404,_0x1d879b){let _0x56756c=null,_0x496b75=null,_0x10b07b=0x0;const _0x245cda=this['editor']['model'];for(let _0x505590=0x0;_0x505590<_0x37897d['length'];_0x505590++){const _0x2eee8b=this['_getVidAttributeName'](_0x37897d[_0x505590]),_0x421740=_0x37897d[_0x505590]['item']['getAttribute'](_0x2eee8b),_0x3c4d79=_0x43e7f0['get'](_0x421740),_0x486e61=_0x505590==_0x37897d['length']-0x1;(!_0x56756c&&_0x3c4d79&&(_0x56756c=_0x3c4d79,_0x496b75=_0x37897d[_0x505590]),_0x56756c&&(!_0x3c4d79||_0x3c4d79['userId']!=_0x56756c['userId']))&&(_0x387d8f(_0x3c4d79,F(_0x496b75,_0x31dbed,_0x245cda),F(_0x37897d[_0x505590],_0x31dbed,_0x245cda)),_0x56756c=_0x3c4d79||null,_0x496b75=_0x3c4d79?_0x37897d[_0x505590]:null),_0x56756c&&_0x486e61&&_0x387d8f(_0x3c4d79,F(_0x496b75,_0x31dbed,_0x245cda),B(_0x37897d[_0x505590],_0x31dbed,_0x245cda));}function _0x387d8f(_0x4d058e,_0xd54de9,_0x38326d){const _0x572810=_0x56756c['userId'],_0x21a283='revision:'+_0x48b404+':'+_0x572810+':'+_0x10b07b++,_0x39e29d=_0x245cda['createRange'](_0xd54de9,_0x38326d);_0x31dbed['markers']['set'](_0x21a283,_0x39e29d),null!==_0x572810&&_0x1d879b['add'](_0x572810);}}['_getVidAttributeName'](_0x24cf83){switch(_0x24cf83['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x17a184,_0x567462){_0x17a184['baseVersion']=null;for(const _0x4a2579 in _0x17a184){const _0x1f4d0e=_0x17a184[_0x4a2579];if(_0x1f4d0e instanceof ft){const _0x2d1d63=_0x567462['get'](_0x1f4d0e['root']['rootName']);_0x17a184[_0x4a2579]=this['_fixPosition'](_0x1f4d0e,_0x2d1d63);}if(_0x1f4d0e instanceof lt){const _0x2d9941=_0x567462['get'](_0x1f4d0e['root']['rootName']);_0x17a184[_0x4a2579]=this['_fixRange'](_0x1f4d0e,_0x2d9941);}'root'===_0x4a2579&&(_0x17a184['root']=_0x567462['get'](_0x17a184['root']['rootName']));}}['_fixRange'](_0x6f6d7b,_0x339e88){return this['editor']['model']['createRange'](this['_fixPosition'](_0x6f6d7b['start'],_0x339e88),this['_fixPosition'](_0x6f6d7b['end'],_0x339e88));}['_fixPosition'](_0x272bf2,_0x2720c9){return this['editor']['model']['createPositionFromPath'](_0x2720c9,_0x272bf2['path'],_0x272bf2['stickiness']);}['_handleInsertOperation'](_0x517aa7){const _0x2920b4=this['_idsRoots']['get'](_0x517aa7['position']['root']['rootName']),_0x21ffbe=this['_fixPosition'](_0x517aa7['position'],_0x2920b4),_0x27e9e5=null===_0x517aa7['_authorId']?null:_0x517aa7['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x44d4e6=_0x21ffbe['parent'],_0x17f16d=this['_revisionId'],_0x46fc1f=[];for(const _0x235bc3 of _0x517aa7['nodes'])if(_0x235bc3['is']('element'))_0x46fc1f['push'](this['_makeIdsRoot'](_0x235bc3));else{for(let _0xfd1f08=0x0;_0xfd1f08<_0x235bc3['offsetSize'];_0xfd1f08++)_0x46fc1f['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x3b73d0=this['_revisionId'];for(let _0x2ad2a5=_0x17f16d;_0x2ad2a5<_0x3b73d0;_0x2ad2a5++)this['_touched']['set'](_0x2ad2a5,{'userId':_0x27e9e5});_0x44d4e6['_insertChild'](_0x21ffbe['offset'],_0x46fc1f);}['_handleMoveOperation'](_0x2269db){(_0x2269db=this['_cloneOperation'](_0x2269db,this['_idsRoots']))['_execute']();const _0x1ce719=null===_0x2269db['_authorId']?null:_0x2269db['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x526f48=_0x2269db['getMovedRangeStart'](),_0x156b38=_0x526f48['parent'],_0x55749d=_0x526f48['offset'];!function _0x3f8011(_0x541063,_0x4ee94e,_0x51aa46,_0x127ea4){for(let _0x129fa5=_0x51aa46;_0x129fa5<_0x127ea4;_0x129fa5++){const _0xe538d8=_0x4ee94e['getChild'](_0x129fa5);_0xe538d8['is']('element','$text')?_0x541063['set'](_0xe538d8['getAttribute']('vid'),{'userId':_0x1ce719}):(_0x541063['set'](_0xe538d8['getAttribute']('vid_start'),{'userId':_0x1ce719}),_0x3f8011(_0x541063,_0xe538d8,0x0,_0xe538d8['childCount']),_0x541063['set'](_0xe538d8['getAttribute']('vid_end'),{'userId':_0x1ce719}));}}(this['_touched'],_0x156b38,_0x55749d,_0x55749d+_0x2269db['howMany']);}['_handleMergeOperation'](_0x4434c8){const _0x5be71f=null===(_0x4434c8=this['_cloneOperation'](_0x4434c8,this['_idsRoots']))['_authorId']?null:_0x4434c8['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x521777=_0x4434c8['targetPosition']['parent'],_0x4aedf5=_0x4434c8['sourcePosition']['parent'],_0x48bcf8=_0x521777['getAttribute']('vid_end'),_0xa75b61=_0x4aedf5['getAttribute']('vid_start');_0x521777['_setAttribute']('vid_end',_0x4aedf5['getAttribute']('vid_end')),_0x4aedf5['_setAttribute']('vid_end',_0x48bcf8),this['_touched']['set'](_0xa75b61,{'userId':_0x5be71f}),this['_touched']['set'](_0x48bcf8,{'userId':_0x5be71f}),_0x4434c8['_execute']();}['_handleSplitOperation'](_0x54e7cf){const _0x24ea18=null===(_0x54e7cf=this['_cloneOperation'](_0x54e7cf,this['_idsRoots']))['_authorId']?null:_0x54e7cf['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x336b4b=_0x54e7cf['graveyardPosition'],_0x1d72cb=_0x54e7cf['splitPosition']['parent'];_0x54e7cf['_execute']();const _0x1c2510=_0x1d72cb['getAttribute']('vid_end'),_0x48725a=_0x54e7cf['insertionPosition']['nodeAfter'];if(_0x336b4b){const _0x188e83=_0x48725a['getAttribute']('vid_end'),_0x1f4133=_0x1d72cb['getAttribute']('vid_end');_0x1d72cb['_setAttribute']('vid_end',_0x188e83),_0x48725a['_setAttribute']('vid_end',_0x1f4133),this['_touched']['set'](_0x1d72cb['getAttribute']('vid_end'),{'userId':_0x24ea18}),this['_touched']['set'](_0x48725a['getAttribute']('vid_start'),{'userId':_0x24ea18});}else{const _0x25097e=this['_revisionId']++,_0x51a4f3=this['_revisionId']++;_0x1d72cb['_setAttribute']('vid_end',_0x25097e),_0x48725a['_setAttribute']('vid_start',_0x51a4f3),_0x48725a['_setAttribute']('vid_end',_0x1c2510),this['_touched']['set'](_0x25097e,{'userId':_0x24ea18}),this['_touched']['set'](_0x51a4f3,{'userId':_0x24ea18});}}['_handleMarkerOperation'](_0x233ba1){if(!_0x233ba1['affectsData'])return;const _0x38ff4f=(_0x233ba1=this['_cloneOperation'](_0x233ba1,this['_diffRoots']))['oldRange']?_0x233ba1['oldRange']['root']:null,_0x5976a1=_0x233ba1['newRange']?_0x233ba1['newRange']['root']:null;_0x38ff4f&&this['_markers']['delete'](_0x233ba1['name']),_0x5976a1&&this['_markers']['set'](_0x233ba1['name'],_0x233ba1['newRange']['clone']());const _0x4a7a53=null===_0x233ba1['_authorId']?null:_0x233ba1['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x34d1be=_0x233ba1['name'];if(!this['_touchedMarkers']['has'](_0x34d1be))return void this['_touchedMarkers']['set'](_0x34d1be,{'range':_0x233ba1['oldRange'],'userId':_0x4a7a53});const _0x204aeb=this['_touchedMarkers']['get'](_0x34d1be),_0x5b2490=_0x204aeb['range'],_0x5e920a=_0x233ba1['newRange'];null==_0x5b2490&&null==_0x5e920a||_0x5b2490&&_0x5e920a&&_0x5b2490['isEqual'](_0x5e920a)?this['_touchedMarkers']['delete'](_0x233ba1['name']):_0x204aeb['userId']=_0x4a7a53;}['_handleRootOperation'](_0x3d0ad4,_0xa2d600){this['_diffRoots']['has'](_0x3d0ad4['rootName'])?this['_diffRoots']['get'](_0x3d0ad4['rootName'])['_isAttached']=_0x3d0ad4['isAdd']:(this['_diffRoots']['set'](_0x3d0ad4['rootName'],P(_0x3d0ad4['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x3d0ad4['rootName'],{}),_0xa2d600&&this['_idsRoots']['set'](_0x3d0ad4['rootName'],P(_0x3d0ad4['rootName'],!0x0)));const _0x5f507a=null===_0x3d0ad4['_authorId']?null:_0x3d0ad4['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x500721=this['_touchedRoots']['get'](_0x3d0ad4['rootName']);_0x500721&&_0x500721['userId']===_0x5f507a?this['_touchedRoots']['delete'](_0x3d0ad4['rootName']):this['_touchedRoots']['set'](_0x3d0ad4['rootName'],{'userId':_0x5f507a,'isAttached':_0x3d0ad4['isAdd']});}['_handleRootAttributeOperation'](_0x2eb0e3){const _0x2a5b42=this['_diffRootsAttributes']['get'](_0x2eb0e3['root']['rootName']);null===_0x2eb0e3['newValue']?delete _0x2a5b42[_0x2eb0e3['key']]:_0x2a5b42[_0x2eb0e3['key']]=_0x2eb0e3['newValue'];}}function N(_0x5c8722){const _0x3d73fb=P(_0x5c8722['rootName'],_0x5c8722['isAttached']());for(const _0x290be0 of _0x5c8722['getChildren']()){const _0x2fadf2=_0x290be0['_clone'](!0x0);_0x3d73fb['_appendChild'](_0x2fadf2);}return _0x3d73fb;}function P(_0x4fc1fa,_0x1c601b=!0x0){const _0x3dd1a6=new vt();return _0x3dd1a6['rootName']=_0x4fc1fa,_0x3dd1a6['_isAttached']=_0x1c601b,_0x3dd1a6['isAttached']=()=>_0x3dd1a6['_isAttached'],_0x3dd1a6;}function F(_0x1fe3fd,_0x5a9256,_0x3013ec){const _0x12764c='elementEnd'==_0x1fe3fd['type']?_0x3013ec['createPositionAt'](_0x1fe3fd['item'],'end'):_0x3013ec['createPositionBefore'](_0x1fe3fd['item']);return _0x3013ec['createPositionFromPath'](_0x5a9256,_0x12764c['path'],_0x12764c['stickiness']);}function B(_0x16b516,_0x52c50d,_0x502cea){const _0x186ece='elementStart'==_0x16b516['type']?_0x502cea['createPositionAt'](_0x16b516['item'],0x0):_0x502cea['createPositionAfter'](_0x16b516['item']);return _0x502cea['createPositionFromPath'](_0x52c50d,_0x186ece['path'],_0x186ece['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x36907c,_0x271fd2){super(_0x36907c),this['focusTracker']=new _0x595364(),this['keystrokes']=new _0x2c2955(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x271fd2),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x1610b6(this);}['render'](){super['render'](),_0x175549({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x30a726=_0x3bd48c=>_0x3bd48c['stopPropagation']();this['keystrokes']['set']('arrowright',_0x30a726),this['keystrokes']['set']('arrowleft',_0x30a726),this['keystrokes']['set']('arrowup',_0x30a726),this['keystrokes']['set']('arrowdown',_0x30a726);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x509dcf){this['revisionNameInputView']['fieldView']['element']['value']=_0x509dcf['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x29ec43){const _0x4ab08a=new _0x4263ed(this['locale'],_0x3eb06c),_0x5ca06f=_0x4ab08a['fieldView'];_0x5ca06f['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x271613=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x29ec43&&(_0x271613+='\x20('+g(this['locale'],'optional')+')'),(_0x4ab08a['label']=_0x271613,_0x5ca06f['on']('input',()=>{this['revisionNameInputValue']=_0x5ca06f['element']['value']['trim']();}),_0x4ab08a);}}class f extends _0x4fedf0{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x5ef169=this['editor'],_0x5689d1=_0x5ef169['plugins']['get']('RevisionTracker');_0x5ef169['ui']['componentFactory']['add']('revisionHistory',_0x2bf9ff=>{const _0x3c2dd3=_0x4b06b6(_0x2bf9ff),_0x1ebdbd=_0x3c2dd3['panelView']['children'],_0x2ca1fb=new _0x29732b(_0x2bf9ff),_0x5ac4cb=new _0x53c893(_0x2bf9ff),_0x523679=new te(_0x2bf9ff),_0x23008d=new _0x53c893(_0x2bf9ff),_0x517e70=new te(_0x2bf9ff);return _0x3c2dd3['bind']('isEnabled')['to'](_0x5689d1,'isReady',_0x5689d1,'isEnabled',_0x5ef169,'isReadOnly',(_0x5dcf49,_0xd9c88b,_0x365767)=>_0x5dcf49&&_0xd9c88b&&!_0x365767),_0x3c2dd3['buttonView']['set']({'icon':_0x49a408,'label':g(_0x2bf9ff,'Revision\x20history'),'tooltip':!0x0}),_0x523679['set']({'label':g(_0x2bf9ff,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x523679['bind']('isEnabled')['to'](_0x5689d1,'isReady',_0x5689d1,'isEnabled',_0x5ef169,'isReadOnly',(_0x5e0f9c,_0x461d81,_0x3a4c11)=>_0x5e0f9c&&_0x461d81&&!_0x3a4c11),_0x523679['on']('execute',()=>this['_showDialog']()),_0x517e70['set']({'label':g(_0x2bf9ff,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x517e70['bind']('isEnabled')['to'](_0x5689d1,'isReady',_0x5ef169,'isReadOnly',(_0xeccc31,_0x271cd0)=>_0xeccc31&&!_0x271cd0),_0x517e70['on']('execute',()=>{_0x5ef169['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x3c2dd3['isOpen']=!0x1,_0x5ef169['editing']['view']['focus']();}),_0x5ac4cb['children']['add'](_0x523679),_0x23008d['children']['add'](_0x517e70),_0x2ca1fb['role']='menu',_0x2ca1fb['items']['addMany']([_0x5ac4cb,_0x23008d]),_0x1ebdbd['add'](_0x2ca1fb),_0x3c2dd3;}),_0x5ef169['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x44b09e=this['editor'],_0x2ba582=_0x44b09e['locale'],_0x3b9c0d=new _0x57c2d8(_0x2ba582),_0xb2c1a=new _0x59448c(_0x2ba582);_0x3b9c0d['buttonView']['set']({'icon':_0x49a408,'label':g(_0x2ba582,'Revision\x20history')});const _0x8c5f05=new _0x40cac4(_0x2ba582,_0x3b9c0d),_0x1beb6d=new _0x1d3030(_0x2ba582);_0x1beb6d['set']({'label':g(_0x2ba582,'Save\x20current\x20revision')}),_0x1beb6d['delegate']('execute')['to'](_0x3b9c0d),_0x1beb6d['on']('execute',()=>{this['_showDialog']();}),_0x8c5f05['children']['add'](_0x1beb6d),_0xb2c1a['items']['add'](_0x8c5f05);const _0x474c37=new _0x40cac4(_0x2ba582,_0x3b9c0d),_0x2ddb2a=new _0x1d3030(_0x2ba582);return _0x2ddb2a['set']({'label':g(_0x2ba582,'Open\x20revision\x20history')}),_0x2ddb2a['delegate']('execute')['to'](_0x3b9c0d),_0x2ddb2a['on']('execute',()=>{_0x44b09e['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x474c37['children']['add'](_0x2ddb2a),_0xb2c1a['items']['add'](_0x474c37),_0x3b9c0d['panelView']['children']['add'](_0xb2c1a),_0x3b9c0d;}['_showDialog'](){const _0x2f4a57=this['editor'],_0x5200e8=_0x2f4a57['locale'],_0x1a678c=_0x2f4a57['plugins']['get']('Dialog'),_0x25b106=_0x2f4a57['plugins']['get']('RevisionTracker');function _0x10b78d(_0x315b15){_0x2f4a57['config']['get']('revisionHistory.requireRevisionName')&&''===_0x315b15['revisionName']?_0x315b15['revisionNameInputView']['errorText']=g(_0x5200e8,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x2f4a57['plugins']['get'](u)['saveRevision']({'name':_0x315b15['revisionName']}),_0x1a678c['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x10b78d(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x1a678c['show']({'id':'revisionSave','title':g(_0x5200e8,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x2f4a57['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x1a678c['hide']()},{'label':g(_0x2f4a57['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x24101e){_0x24101e['bind']('isEnabled')['to'](_0x25b106,'isReady',_0x25b106,'isEnabled',_0x2f4a57,'isReadOnly',(_0xcb5fef,_0x4d016c,_0x17471d)=>_0xcb5fef&&_0x4d016c&&!_0x17471d);},'onExecute':()=>_0x10b78d(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x5a5148=this['editor'],_0x57d596=_0x5a5148['locale'];this['_saveRevisionFormView']=new hs(_0x57d596,_0x5a5148['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends ts{['changeId'];['_model'];constructor(_0x5b03d4,_0xaf12b){super(_0x5b03d4),this['_model']=_0xaf12b,this['changeId']=_0xaf12b['id'];const _0x1d2321=this['bindTemplate'],_0x343dce=g(_0x5b03d4,_0xaf12b['data']['isSuggestion']?'Suggested\x20by':'add'==_0xaf12b['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0xaf12b['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x1d2321['to']('type',_0x5c207c=>'ck-revision-change__'+_0x5c207c)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x343dce}]},{'text':'\x20'+_0xaf12b['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x295186(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x2dc32e){super(),this['id']=_0x2dc32e['id']||_0x50688e(),this['author']=_0x2dc32e['author'],this['type']=_0x2dc32e['type'],this['data']=_0x2dc32e['data']||{},this['rootName']=_0x2dc32e['rootName'],this['set']('createdAt',_0x2dc32e['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(_0x533039,_0x173224){this['newRevisionId']=_0x533039,this['oldRevisionId']=_0x173224,this['changes']=new _0x428f3c();}['_setChanges'](_0x5accbc){for(const _0x36843b of _0x5accbc)this['changes']['add'](_0x36843b);}}class m extends _0x4fedf0{['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[_0x4b58b7,_0x57dc8b,I,V];}constructor(_0x322ce3){super(_0x322ce3),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',(_0x2f235d,_0x557960,_0x31267d)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x5c2b70=>{for(const _0x9dc64d of this['editor']['editing']['view']['document']['roots'])_0x31267d?_0x5c2b70['removeClass']('ck-editor__editable__overlay',_0x9dc64d):_0x5c2b70['addClass']('ck-editor__editable__overlay',_0x9dc64d);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0xde1386=>null!==_0xde1386),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x38166c,_0x4788e8,_0x51d654)=>_0x38166c&&_0x51d654?_0x4788e8['changes']['getIndex'](_0x51d654):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x296a3b,_0x1369a8)=>_0x296a3b?_0x1369a8['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x57dc8b);}['init'](){const _0x99250b=this['editor'],_0x12e7d5=new wt(_0x99250b,{'direction':'backward'}),_0x5f5c95=new wt(_0x99250b,{'direction':'forward'});(_0x99250b['commands']['add']('showPreviousChange',_0x12e7d5),_0x99250b['commands']['add']('showNextChange',_0x5f5c95),_0x99250b['commands']['add']('restoreRevision',new mt(_0x99250b)),this['on']('change:numberOfChanges',()=>{_0x12e7d5['refresh'](),_0x5f5c95['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x99250b['enableReadOnlyMode']('revision-viewer'),_0x99250b['plugins']['has']('WidgetToolbarRepository'))&&_0x99250b['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x264bd5){return await this['_utils']['loadRevisionData'](_0x264bd5,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x264bd5);}async['getRevisionRootsAttributes'](_0x39428b){return await this['_utils']['loadRevisionData'](_0x39428b,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x39428b);}async['compare'](_0x2710e0,_0x2840a4,_0x5e3a4a=!0x1){if(!this['isEnabled'])return;const _0xbf5a1c=this['diff'],_0x82cc37=this['repository'],_0x2d1f7b='string'==typeof _0x2710e0?_0x82cc37['getRevision'](_0x2710e0):_0x2710e0,_0x3d54f9='string'==typeof _0x2840a4?_0x82cc37['getRevision'](_0x2840a4):_0x2840a4,_0x13c745=_0x2d1f7b['id'],_0x5d1573=_0x3d54f9?_0x3d54f9['id']:null;if(!_0x5e3a4a&&this['diff']&&this['diff']['newRevisionId']===_0x13c745&&this['diff']['oldRevisionId']===_0x5d1573)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x13c745,_0x5d1573);const _0x10ae62=this['_getRevisionsRange'](_0x2d1f7b,_0x3d54f9,!0x0)['map'](_0x4c2500=>this['_utils']['loadRevisionData'](_0x4c2500,this['adapter']));return _0x10ae62['push'](new Promise(_0x2eb33c=>{setTimeout(_0x2eb33c,0x14);})),Promise['all'](_0x10ae62)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x130336=this['_getDiff'](_0x13c745,_0x5d1573);for(const _0x6b61bc of _0x130336['changes'])this['_changeIdToChange']['set'](_0x6b61bc['id'],_0x6b61bc);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x589a29=>{for(const _0x3da04a of this['editor']['model']['document']['getRootNames']())_0x589a29['detachRoot'](_0x3da04a);for(const _0x3ab43d of Object['keys'](_0x130336['model'])){const _0x21a59f=_0x589a29['addRoot'](_0x3ab43d);for(const _0x54e4ce of Object['keys'](_0x130336['attributes'][_0x3ab43d]))_0x589a29['setAttribute'](_0x54e4ce,_0x130336['attributes'][_0x3ab43d][_0x54e4ce],_0x21a59f);_0x589a29['insert'](_0x130336['model'][_0x3ab43d],_0x21a59f,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x130336['changes'])),this['isReady']=!0x0;})['catch'](_0x17ccf0=>{console['error'](_0x17ccf0),this['_cleanUp'](),_0xbf5a1c&&(this['diff']=_0xbf5a1c),this['isReady']=!0x0;});}['addRevisionData'](_0xcdd2f1,_0x50e655){const _0x4903a2=this['repository']['createRevision'](_0xcdd2f1);return _0x4903a2['on']('_update',(_0x56a3c9,_0x1ddc84,_0x25c233)=>_0x50e655(_0x1ddc84,_0x25c233,_0x4903a2)),this['repository']['addRevision'](_0x4903a2),_0x4903a2;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x4d5845=>{for(const _0xf65c0 of this['editor']['model']['document']['getRootNames']())_0x4d5845['detachRoot'](_0xf65c0);});}['_sortAndFilterDiffChanges'](_0x5ecaea){const _0x202429=[],_0x227ed8=new Map();for(const _0x7ffe3b of this['editor']['model']['document']['getRootNames']()){const _0x5e8170=this['editor']['editing']['view']['getDomRoot'](_0x7ffe3b);if(!_0x5e8170)continue;const _0x53e06e=_0x5e8170['getClientRects']()['item'](0x0);_0x53e06e&&(_0x202429['push'](_0x7ffe3b),_0x227ed8['set'](_0x7ffe3b,_0x53e06e));}return _0x202429['sort']((_0x33a76d,_0x916726)=>{const _0x897d95=_0x227ed8['get'](_0x33a76d),_0x4f1237=_0x227ed8['get'](_0x916726);return _0x897d95['y']-_0x4f1237['y']||_0x897d95['x']-_0x4f1237['x'];}),(_0x5ecaea=_0x5ecaea['filter'](_0x5c4d94=>_0x202429['includes'](_0x5c4d94['rootName'])))['sort']((_0x459500,_0x726d6e)=>_0x202429['indexOf'](_0x459500['rootName'])-_0x202429['indexOf'](_0x726d6e['rootName'])),_0x5ecaea;}['_makeTape'](_0x4a319b){const _0x384455=Array['from'](_0x4a319b['markers'])['filter'](([_0x1e709f,_0x17bfe9])=>_0x1e709f['startsWith']('revision:')&&!_0x17bfe9['isCollapsed']),_0x3a05e4=Array['from'](this['editor']['model']['createRangeIn'](_0x4a319b)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x384455['length'])for(const _0x4a52d4 of _0x3a05e4){const [_0x1e9be4,_0x667e48]=_0x384455[0x0],[,_0x735a55,_0x146335]=_0x1e9be4['split'](':');if(_0x667e48['end']['isEqual'](_0x4a52d4['nextPosition'])&&_0x384455['shift'](),(_0x4a52d4['previousPosition']['isEqual'](_0x667e48['start'])||_0x4a52d4['previousPosition']['isAfter'](_0x667e48['start']))&&('insertion'==_0x735a55?_0x4a52d4['isAdded']={'userId':_0x146335}:'deletion'==_0x735a55&&(_0x4a52d4['isRemoved']={'userId':_0x146335})),0x0==_0x384455['length'])break;}return _0x3a05e4;}['_refreshStartEndIndex'](_0x383928){const _0xdb3270=new Map();for(let _0x12574c=0x0;_0x12574c<_0x383928['length'];_0x12574c++)'text'===_0x383928[_0x12574c]['type']?(_0x383928[_0x12574c]['item']['startIndex']=_0x12574c,_0x383928[_0x12574c]['item']['endIndex']=_0x12574c):('elementStart'===_0x383928[_0x12574c]['type']?_0x383928[_0x12574c]['item']['startIndex']=_0x12574c:'elementEnd'===_0x383928[_0x12574c]['type']&&(_0x383928[_0x12574c]['item']['endIndex']=_0x12574c),_0xdb3270['set'](_0x383928[_0x12574c]['id'],_0x12574c));for(const _0x9673a7 of _0xdb3270['values']())'elementStart'===_0x383928[_0x9673a7]['type']?_0x383928[_0x9673a7]['item']['endIndex']=_0xdb3270['get'](_0x383928[_0x9673a7]['pairId']):'elementEnd'===_0x383928[_0x9673a7]['type']&&(_0x383928[_0x9673a7]['item']['startIndex']=_0xdb3270['get'](_0x383928[_0x9673a7]['pairId']));}['_processTape'](_0x20c7ec){for(let _0x2d49b8=0x0;_0x2d49b8<_0x20c7ec['length'];_0x2d49b8++){if('elementStart'===_0x20c7ec[_0x2d49b8]['type'])_0x20c7ec[_0x2d49b8]['item']['startIndex']=_0x2d49b8;else{if('elementEnd'===_0x20c7ec[_0x2d49b8]['type']){_0x20c7ec[_0x2d49b8]['item']['endIndex']=_0x2d49b8;const _0x3e1c91=_0x20c7ec[_0x2d49b8]['item']['startIndex'];_0x20c7ec[_0x3e1c91]['pairId']=_0x20c7ec[_0x2d49b8]['id'],_0x20c7ec[_0x2d49b8]['pairId']=_0x20c7ec[_0x3e1c91]['id'];}else _0x20c7ec[_0x2d49b8]['item']['startIndex']=_0x2d49b8,_0x20c7ec[_0x2d49b8]['item']['endIndex']=_0x2d49b8,_0x20c7ec[_0x2d49b8]['pairId']=null;}_0x20c7ec[_0x2d49b8]['markersStart']||(_0x20c7ec[_0x2d49b8]['markersStart']=[],_0x20c7ec[_0x2d49b8]['markersEnd']=[]);}}['_markInsertions'](_0x2c3fe2,_0xbbbf41){const _0x2eedc9=_0x2c3fe2['filter'](_0x14ac80=>!_0x14ac80['isAdded']);for(let _0x944cdb=0x0;_0x944cdb<_0xbbbf41['length'];_0x944cdb++)_0xbbbf41[_0x944cdb]['isAdded']&&(_0x2eedc9[_0x944cdb]['isAdded']=_0xbbbf41[_0x944cdb]['isAdded']);}['_getDiff'](_0x3dfab7,_0x395199=null){const _0x3c0164=this['repository']['getRevision'](_0x3dfab7),_0xd5e479=_0x395199?this['repository']['getRevision'](_0x395199):null,_0x312e31=this['_getRevisionsRange'](_0x3c0164,_0xd5e479),_0x54936c=_0x312e31[_0x312e31['length']-0x1],_0x38f4fb=new Map(),_0x3dddc3={'model':{},'attributes':{},'changes':[]},_0x4baa5b=new Set(),_0x11d818=new Map();for(let _0x22faae=_0x312e31['length']-0x1;_0x22faae>=0x0;_0x22faae--){const _0xd015dd=_0x312e31[_0x22faae];for(const _0x389d7d of Object['keys'](_0xd015dd['diffData']))if(_0xd015dd['diffData'][_0x389d7d]['attachChange']){const _0x172d5f=_0xd015dd['diffData'][_0x389d7d]['attachChange'];_0x172d5f['isAttached']?(_0x4baa5b['add'](_0x389d7d),_0x11d818['has'](_0x389d7d)&&_0x11d818['get'](_0x389d7d)['userId']==_0x172d5f['userId']?_0x11d818['delete'](_0x389d7d):_0x11d818['set'](_0x389d7d,_0x172d5f)):_0x11d818['has'](_0x389d7d)?(_0x4baa5b['delete'](_0x389d7d),_0x11d818['delete'](_0x389d7d)):(_0x4baa5b['add'](_0x389d7d),_0x11d818['set'](_0x389d7d,_0x172d5f));}else _0x4baa5b['add'](_0x389d7d);}for(const _0x551b50 of _0x4baa5b){const _0x98eded=_0x11d818['has'](_0x551b50)&&!_0x11d818['get'](_0x551b50)['isAttached'];let _0x154a92=_0x98eded?_0x312e31['length']-0x1:0x0;const _0x34cc6b=_0x98eded?-0x1:0x1;for(;_0x312e31[_0x154a92];){const _0xd2506e=_0x312e31[_0x154a92];if(_0xd2506e['diffData'][_0x551b50]){const _0x3e48a6=_0x98eded?_0xd2506e['diffData'][_0x551b50]['attributesBefore']:_0xd2506e['diffData'][_0x551b50]['attributesAfter'];_0x3dddc3['attributes'][_0x551b50]=_0x3e48a6?_0x3656c2(_0x3e48a6):{};break;}_0x154a92+=_0x34cc6b;}}for(const _0x373423 of _0x312e31){_0x373423['model']={};for(const _0x35d83a of _0x373423['authors'])_0x38f4fb['set'](_0x35d83a['id'],_0x35d83a);for(const _0x533bc9 of _0x4baa5b){const _0xb10927=_0x373423['diffData'][_0x533bc9]?_0x373423['diffData'][_0x533bc9]['insertions']:'[]',_0x19239a=_0x373423['diffData'][_0x533bc9]?_0x373423['diffData'][_0x533bc9]['deletions']:'[]';_0x373423['model'][_0x533bc9]={'insertions':this['_utils']['_makeModelFromViewString'](_0xb10927),'deletions':this['_utils']['_makeModelFromViewString'](_0x19239a)};}}for(const _0x546075 of _0x4baa5b){let _0x19d897=null,_0x4fe04e=0x0;const _0x32d4ca=new Map(Array['from'](_0x3c0164['model'][_0x546075]['insertions']['markers'])['filter'](([_0x144614])=>!_0x144614['startsWith']('revision:')));let _0x2749fb=0x0;for(const _0x5f4e21 of _0x312e31){const _0x3e52e2=this['_makeTape'](_0x5f4e21['model'][_0x546075]['insertions']);_0x5f4e21==_0x3c0164?(_0x19d897=_0x3e52e2,_0x4fe04e=_0x19d897['length'],_0x19d897['forEach'](_0x35c265=>{_0x35c265['id']=_0x2749fb++;}),this['_processTape'](_0x19d897)):this['_markInsertions'](_0x19d897,_0x3e52e2);const _0x4c99ab=_0x19d897['filter'](_0x4565c4=>!_0x4565c4['isAdded'])['map'](_0x3686ff=>_0x3686ff['id']);let _0x156d39=0x0;const _0x52c7e1=this['_makeTape'](_0x5f4e21['model'][_0x546075]['deletions']);_0x52c7e1['forEach'](_0x3ec9b3=>{_0x3ec9b3['isRemoved']?_0x3ec9b3['id']=_0x4fe04e++:_0x3ec9b3['id']=_0x4c99ab[_0x156d39++];}),this['_processTape'](_0x52c7e1),this['_setDistance'](_0x19d897,'isAdded'),this['_setDistance'](_0x52c7e1,'isRemoved'),_0x5f4e21==_0x3c0164&&this['_markMarkers'](_0x19d897,_0x32d4ca),_0x19d897=this['_joinTapes'](_0x19d897,_0x52c7e1),this['_refreshStartEndIndex'](_0x19d897),this['_setDistance'](_0x19d897,'isRemoved');}_0x19d897=_0x19d897['filter'](_0x14b31f=>!(_0x14b31f['isAdded']&&_0x14b31f['isRemoved']));const _0x403cc7=new Map(_0x54936c['model'][_0x546075]['deletions']['markers']),_0x29a841=new Set(_0x32d4ca['keys']());for(const _0x169ccd of _0x403cc7['keys']())_0x29a841['delete'](_0x169ccd);this['_markSuggestions'](_0x19d897,_0x29a841),this['_fixObsoleteTags'](_0x19d897),_0x19d897=this['_removeMissingPairs'](_0x19d897),_0x19d897=this['_markMismatchedRemovedTags'](_0x19d897),_0x19d897=this['_removeUnsupportedChanges'](_0x19d897);const {root:_0x2d3b92,changes:_0x45c18a}=this['_makeModelFromTape'](_0x19d897,_0x38f4fb,_0x546075);_0x3dddc3['model'][_0x546075]=_0x2d3b92;const _0x4bb124=_0x11d818['get'](_0x546075);if(_0x4bb124){const _0x5e70d8=_0x38f4fb['get'](_0x4bb124['userId']),_0x2a88b8=new r({'author':_0x5e70d8,'type':_0x4bb124['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x546075});_0x45c18a['unshift'](_0x2a88b8),_0x3dddc3['attributes'][_0x546075]['revisionHistoryAttachChange']=_0x2a88b8['id'];}_0x3dddc3['changes']=_0x3dddc3['changes']['concat'](_0x45c18a);}return _0x3dddc3;}['_markMarkers'](_0x434797,_0x45e923){for(let _0x4c5f8b=0x0;_0x4c5f8b<_0x434797['length'];_0x4c5f8b++)for(const [_0xede01,_0x563843]of _0x45e923)!_0x563843['isCollapsed']&&_0x563843['start']['isEqual'](_0x434797[_0x4c5f8b]['previousPosition'])&&_0x434797[_0x4c5f8b]['markersStart']['push'](_0xede01),_0x563843['end']['isEqual'](_0x434797[_0x4c5f8b]['nextPosition'])&&_0x434797[_0x4c5f8b]['markersEnd']['push'](_0xede01);}['_joinTapes'](_0x3fed71,_0x4185f9){let _0x5e9602=[],_0x5238f7=0x0,_0x4a6fd1=0x0;for(;_0x5238f7<_0x3fed71['length']||_0x4a6fd1<_0x4185f9['length'];){const _0x2ec029=_0x3fed71[_0x5238f7]||{},_0x5f30f6=_0x4185f9[_0x4a6fd1]||{};if(_0x2ec029['id']==_0x5f30f6['id'])_0x5238f7++,_0x4a6fd1++,_0x5e9602['push'](_0x2ec029);else{if(_0x5f30f6['isRemoved']&&_0x2ec029['isAdded']){const {commonTape:_0x58e031,iEnd:_0xf03e59,jEnd:_0x2523d9}=this['_threeWayMerge'](_0x3fed71,_0x5238f7,_0x4185f9,_0x4a6fd1);_0x5e9602=_0x5e9602['concat'](_0x58e031),_0x5238f7=_0xf03e59,_0x4a6fd1=_0x2523d9;}else _0x5f30f6['isRemoved']?(_0x4a6fd1++,_0x5e9602['push'](_0x5f30f6)):(_0x5238f7++,_0x5e9602['push'](_0x2ec029));}}return _0x5e9602;}['_markSuggestions'](_0x2f19d7,_0x235e65){const _0xb9431d=[];for(let _0x574c4e=0x0;_0x574c4e<_0x2f19d7['length'];_0x574c4e++){for(let _0x455492=0x0;_0x455492<_0x2f19d7[_0x574c4e]['markersStart']['length'];_0x455492++){const _0x26706d=_0x2f19d7[_0x574c4e]['markersStart'][_0x455492];if(!_0x235e65['has'](_0x26706d))continue;const {group:_0x50cdff,type:_0x114661,authorId:_0x46945b}=_0x12485c(_0x26706d);'revision-suggestion'!=_0x50cdff||'insertion'!=_0x114661&&'deletion'!=_0x114661||(_0xb9431d['unshift']({'type':_0x114661,'name':_0x26706d,'userId':_0x46945b}),_0x2f19d7[_0x574c4e]['markersStart']['splice'](_0x455492,0x1),_0x455492--);}_0x4b1c10(_0x2f19d7[_0x574c4e]);for(let _0x45868e=0x0;_0x45868e<_0x2f19d7[_0x574c4e]['markersEnd']['length'];_0x45868e++){const _0x1226ea=_0x2f19d7[_0x574c4e]['markersEnd'][_0x45868e];if(!_0x235e65['has'](_0x1226ea))continue;const {group:_0xec5cb4,type:_0xbeeefc}=_0x12485c(_0x1226ea);if('revision-suggestion'!=_0xec5cb4||'insertion'!=_0xbeeefc&&'deletion'!=_0xbeeefc)continue;_0x2f19d7[_0x574c4e]['markersEnd']['splice'](_0x45868e,0x1),_0x45868e--;const _0x4c3b4d=_0xb9431d['findIndex'](_0x177983=>_0x177983['name']==_0x1226ea);_0x4c3b4d>-0x1&&_0xb9431d['splice'](_0x4c3b4d,0x1);}}function _0x12485c(_0x4a42f9){const _0x2106d3=_0x4a42f9['split'](':');return{'group':_0x2106d3[0x0],'type':_0x2106d3[0x1],'subType':_0x2106d3['length']>=0x5?_0x2106d3[0x2]:null,'id':_0x2106d3['length']<0x5?_0x2106d3[0x2]:_0x2106d3[0x3],'authorId':_0x2106d3['length']<0x5?_0x2106d3[0x3]:_0x2106d3[0x4],'markerCount':0x6==_0x2106d3['length']?_0x2106d3[0x5]:null};}function _0x4b1c10(_0x2a8366){for(let _0x358222=0x0;_0x358222<_0xb9431d['length'];_0x358222++){if(_0x2a8366['isAdded']&&'insertion'==_0xb9431d[_0x358222]['type'])return _0x2a8366['isAddSuggestion']=_0xb9431d[_0x358222],void delete _0x2a8366['isAdded'];if(!_0x2a8366['isAdded']&&!_0x2a8366['isRemoved']&&'deletion'==_0xb9431d[_0x358222]['type'])return void(_0x2a8366['isRemoveSuggestion']=_0xb9431d[_0x358222]);}}}['_setDistance'](_0x50a18b,_0x58a7da){let _0x58bb8a=0x0,_0x255612=!0x1;const _0x2877d0=new Map();for(const _0x2b1299 of _0x50a18b)_0x2b1299[_0x58a7da]?_0x255612&&(_0x58bb8a++,_0x255612=!0x1):(_0x58bb8a++,_0x255612=!0x0),_0x2877d0['set'](_0x2b1299['id'],_0x58bb8a);for(let _0x2d8d63=0x0;_0x2d8d63<_0x50a18b['length'];_0x2d8d63++){if('isRemoved'==_0x58a7da&&_0x50a18b[_0x2d8d63]['isAdded']||'isAdded'==_0x58a7da&&_0x50a18b[_0x2d8d63]['isRemoved'])continue;if('text'==_0x50a18b[_0x2d8d63]['type']){_0x50a18b[_0x2d8d63]['distance']=0x0;continue;}const _0x120dae=_0x2877d0['get'](_0x50a18b[_0x2d8d63]['pairId']),_0xadd00b=_0x2877d0['get'](_0x50a18b[_0x2d8d63]['id']);_0x50a18b[_0x2d8d63]['distance']=_0x120dae-_0xadd00b;}}['_getRevisionsRange'](_0x53f51a,_0x8c89c5,_0x34c405=!0x1){const _0x5b1afd=[];let _0xe1adf9=this['repository']['getIndex'](_0x53f51a),_0x589efd=this['repository']['getIndex'](_0x8c89c5);for(-0x1==_0x589efd&&(_0x589efd=this['repository']['_revisions']['length'],_0x34c405=!0x1);_0xe1adf9<_0x589efd;)_0x5b1afd['push'](this['repository']['getRevision'](_0xe1adf9)),_0xe1adf9++;return _0x34c405&&_0x5b1afd['push'](this['repository']['getRevision'](_0xe1adf9)),_0x5b1afd;}['_threeWayMerge'](_0xb78366,_0x37ec7c,_0x337142,_0x797baa){const _0x5d75f4=this['editor']['model']['schema'];let _0x4f6b17=_0x37ec7c;for(;_0xb78366[_0x4f6b17]&&_0xb78366[_0x4f6b17]['isAdded'];)_0x4f6b17++;let _0x352b81=_0x797baa;for(;_0x337142[_0x352b81]&&_0x337142[_0x352b81]['isRemoved'];)_0x352b81++;_0x235826(_0xb78366,_0x37ec7c,_0x4f6b17),_0x235826(_0x337142,_0x797baa,_0x352b81);const _0x5f1da5=_0x337142['slice'](_0x797baa,_0x352b81)['concat'](_0xb78366['slice'](_0x37ec7c,_0x4f6b17));return _0x5f1da5['sort']((_0x42f059,_0x55fce9)=>_0x42f059['side']!=_0x55fce9['side']?_0x42f059['side']-_0x55fce9['side']:_0x42f059['level']!=_0x55fce9['level']?_0x42f059['level']-_0x55fce9['level']:_0x42f059['distance']!=_0x55fce9['distance']?_0x55fce9['distance']-_0x42f059['distance']:!!_0x42f059['isAdded']!=!!_0x55fce9['isAdded']?-0x1==_0x42f059['side']||0x0==_0x42f059['side']?_0x42f059['isAdded']?-0x1:0x1:_0x42f059['isAdded']?0x1:-0x1:_0x42f059['index']-_0x55fce9['index']),{'commonTape':_0x5f1da5,'iEnd':_0x4f6b17,'jEnd':_0x352b81};function _0x235826(_0x334c23,_0x217c90,_0x501499){let _0x163d7e=-0x1,_0x2d5e57=Number['POSITIVE_INFINITY'],_0xbe7419=!0x0;for(let _0x3346a7=_0x217c90;_0x3346a7<_0x501499;_0x3346a7++)if(_0x5d75f4['isInline'](_0x334c23[_0x3346a7]['item'])||(_0xbe7419=!0x1),_0x334c23[_0x3346a7]['item']['startIndex']<_0x217c90&&(_0x163d7e=_0x3346a7),_0x334c23[_0x3346a7]['item']['endIndex']>=_0x501499){_0x2d5e57=_0x3346a7;break;}_0xbe7419&&(_0x163d7e=_0x501499-0x1);for(let _0x5f48fe=_0x217c90;_0x5f48fe<_0x501499;_0x5f48fe++)_0x334c23[_0x5f48fe]['side']=_0x5f48fe<=_0x163d7e?-0x1:_0x5f48fe<_0x2d5e57?0x0:0x1,_0x334c23[_0x5f48fe]['index']=_0x5f48fe;let _0x279bad=0x0;for(let _0x4baa5c=_0x217c90;_0x4baa5c<=_0x163d7e;_0x4baa5c++)0x0==_0x334c23[_0x4baa5c]['distance']?_0x334c23[_0x4baa5c]['level']=_0x279bad:(_0x279bad++,_0x334c23[_0x4baa5c]['level']=_0x279bad,_0x279bad++);for(let _0x59e711=_0x217c90;_0x59e711<_0x501499;_0x59e711++)0x0==_0x334c23[_0x59e711]['side']&&(_0x334c23[_0x59e711]['level']=_0x279bad);_0x279bad=0x0;for(let _0x46de4e=_0x501499-0x1;_0x46de4e>=_0x2d5e57;_0x46de4e--)0x0==_0x334c23[_0x46de4e]['distance']?_0x334c23[_0x46de4e]['level']=_0x279bad:(_0x279bad--,_0x334c23[_0x46de4e]['level']=_0x279bad,_0x279bad--);}}['_fixObsoleteTags'](_0x378399){const _0x44f7ba=new Map(),_0x1ad056=this['editor']['model']['schema'];for(let _0x5f4770=0x1;_0x5f4770<_0x378399['length'];_0x5f4770++){let _0x5bc50a,_0x3fd1ed,_0x3c3204;const _0x576d54=_0x378399[_0x5f4770],_0x38a30f=_0x378399[_0x5f4770-0x1];if('text'==_0x576d54['type'])continue;if(_0x576d54['type']!=_0x38a30f['type'])continue;if(!_0x1ad056['isBlock'](_0x38a30f['item'])||_0x1ad056['isLimit'](_0x38a30f['item']))continue;if(!_0x1ad056['isBlock'](_0x576d54['item'])||_0x1ad056['isLimit'](_0x576d54['item']))continue;if((_0x378399[_0x5f4770]['isAdded']||_0x378399[_0x5f4770]['isAddSuggestion'])&&_0x378399[_0x5f4770-0x1]['isRemoved'])_0x5bc50a=_0x378399[_0x5f4770],_0x3fd1ed=_0x378399[_0x5f4770-0x1],_0x3c3204=_0x5f4770-0x1;else{if(!_0x378399[_0x5f4770]['isRemoved']||!_0x378399[_0x5f4770-0x1]['isAdded']&&!_0x378399[_0x5f4770-0x1]['isAddSuggestion'])continue;_0x5bc50a=_0x378399[_0x5f4770-0x1],_0x3fd1ed=_0x378399[_0x5f4770],_0x3c3204=_0x5f4770;}const _0x2a9b1c=_0x5bc50a['level']==_0x3fd1ed['level'],_0x5c0e2f=Math['abs'](_0x5bc50a['level'])<Math['abs'](_0x3fd1ed['level'])&&0x0==_0x3fd1ed['distance'];(_0x2a9b1c||_0x5c0e2f)&&(_0x44f7ba['set'](_0x3fd1ed['id'],_0x5bc50a['id']),_0x378399['splice'](_0x3c3204,0x1),_0x5f4770--,_0x5bc50a['isAdded']=!0x1);}for(let _0x117577=0x0;_0x117577<_0x378399['length'];_0x117577++)_0x44f7ba['has'](_0x378399[_0x117577]['pairId'])&&(_0x378399[_0x117577]['pairId']=_0x44f7ba['get'](_0x378399[_0x117577]['pairId']));}['_removeMissingPairs'](_0x2cb13c){const _0x35d5ee=new Set(_0x2cb13c['map'](_0x365637=>_0x365637['id']));for(let _0x1901d5=0x0;_0x1901d5<_0x2cb13c['length'];_0x1901d5++)_0x35d5ee['has'](_0x2cb13c[_0x1901d5]['pairId'])||0x0==_0x2cb13c[_0x1901d5]['distance']||(_0x2cb13c[_0x1901d5]['isIncorrect']=!0x0);return _0x2cb13c['filter'](_0xa08d16=>!_0xa08d16['isIncorrect']);}['_markMismatchedRemovedTags'](_0x402f82){const _0x49300c=new Set();for(let _0x11bd85=0x0;_0x11bd85<_0x402f82['length'];_0x11bd85++){if(_0x49300c['has'](_0x402f82[_0x11bd85]['id'])&&_0x402f82[_0x11bd85]['isRemoved']&&(_0x402f82[_0x11bd85]['isIncorrect']=!0x0),_0x402f82[_0x11bd85]['isIncorrect'])continue;if(0x0==_0x402f82[_0x11bd85]['distance'])continue;if('elementStart'!=_0x402f82[_0x11bd85]['type'])continue;if(null==_0x402f82[_0x11bd85]['pairId'])continue;let _0x2b628f=_0x11bd85+0x1,_0x57ddd9=0x0;for(;_0x402f82[_0x2b628f]['id']!=_0x402f82[_0x11bd85]['pairId'];)'elementStart'==_0x402f82[_0x2b628f]['type']?_0x57ddd9++:'elementEnd'==_0x402f82[_0x2b628f]['type']&&_0x57ddd9--,_0x2b628f++;if(0x0!=_0x57ddd9){if(_0x402f82[_0x11bd85]['isRemoved'])_0x402f82[_0x11bd85]['isIncorrect']=!0x0;else{for(;_0x2b628f!=_0x11bd85;)_0x402f82[_0x2b628f]['isRemoved']&&0x0!=_0x402f82[_0x2b628f]['distance']&&(_0x402f82[_0x2b628f]['isIncorrect']=!0x0,_0x49300c['add'](_0x402f82[_0x2b628f]['pairId'])),_0x2b628f--;}}}return _0x402f82['filter'](_0x16ef71=>!_0x16ef71['isIncorrect']);}['_removeUnsupportedChanges'](_0x37b9ae){const _0x494604=this['editor']['model']['schema'];for(let _0x56dc9b=0x0;_0x56dc9b<_0x37b9ae['length'];_0x56dc9b++){if(!(_0x37b9ae[_0x56dc9b]['isAdded']||_0x37b9ae[_0x56dc9b]['isAddSuggestion']||_0x37b9ae[_0x56dc9b]['isRemoved']||_0x37b9ae[_0x56dc9b]['isRemoveSuggestion']))continue;if(0x0==_0x37b9ae[_0x56dc9b]['distance'])continue;const _0x28dc1d=_0x37b9ae[_0x56dc9b]['item'];_0x494604['isBlock'](_0x28dc1d)||_0x494604['isLimit'](_0x28dc1d)||(_0x37b9ae[_0x56dc9b]['isAdded']&&delete _0x37b9ae[_0x56dc9b]['isAdded'],_0x37b9ae[_0x56dc9b]['isAddSuggestion']&&delete _0x37b9ae[_0x56dc9b]['isAddSuggestion'],_0x37b9ae[_0x56dc9b]['isRemoveSuggestion']&&delete _0x37b9ae[_0x56dc9b]['isRemoveSuggestion'],_0x37b9ae[_0x56dc9b]['isRemoved']&&(_0x37b9ae[_0x56dc9b]['isIncorrect']=!0x0));}return _0x37b9ae['filter'](_0x545f31=>!_0x545f31['isIncorrect']);}['_makeModelFromTape'](_0x20b450,_0x5eaa79,_0x4f43c2){const _0x4eaf71=new vt(),_0x2f2bf2=[],_0x46daa8=new Map(),_0x3d411a=this['editor']['model'],_0x3a2825=_0x3d411a['schema'],_0x35ab56=[_0x4eaf71],_0x189f6c={},_0x14db42={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x591356=null;const _0x2ff620=[0x0];for(let _0x4fe737=0x0;_0x4fe737<_0x20b450['length'];_0x4fe737++)if('elementStart'===_0x20b450[_0x4fe737]['type']){_0x20b450[_0x4fe737]['previousPosition']=_0x3d411a['createPositionFromPath'](_0x4eaf71,_0x2ff620);const _0x5b1085=new ut(_0x20b450[_0x4fe737]['item']['name'],_0x20b450[_0x4fe737]['item']['getAttributes']());_0x35ab56[0x0]['_appendChild'](_0x5b1085),_0x2ff620['push'](0x0),_0x35ab56['unshift'](_0x5b1085),_0x20b450[_0x4fe737]['nextPosition']=_0x3d411a['createPositionFromPath'](_0x4eaf71,_0x2ff620);}else'elementEnd'===_0x20b450[_0x4fe737]['type']?(_0x35ab56['shift'](),_0x20b450[_0x4fe737]['previousPosition']=_0x3d411a['createPositionFromPath'](_0x4eaf71,_0x2ff620),_0x2ff620['pop'](),_0x2ff620[_0x2ff620['length']-0x1]++,_0x20b450[_0x4fe737]['nextPosition']=_0x3d411a['createPositionFromPath'](_0x4eaf71,_0x2ff620)):(_0x20b450[_0x4fe737]['previousPosition']=_0x3d411a['createPositionFromPath'](_0x4eaf71,_0x2ff620),_0x591356?_0x591356['_data']+=_0x20b450[_0x4fe737]['item']['data']:_0x591356=new gt(_0x20b450[_0x4fe737]['item']['data'],_0x20b450[_0x4fe737]['item']['getAttributes']()),_0x20b450[_0x4fe737+0x1]&&'text'===_0x20b450[_0x4fe737+0x1]['type']&&_0x2fcb17(_0x591356,_0x20b450[_0x4fe737+0x1]['item'])||(_0x35ab56[0x0]['_appendChild'](_0x591356),_0x591356=null),_0x2ff620[_0x2ff620['length']-0x1]+=_0x20b450[_0x4fe737]['item']['offsetSize'],_0x20b450[_0x4fe737]['nextPosition']=_0x3d411a['createPositionFromPath'](_0x4eaf71,_0x2ff620));for(let _0x2a6477=0x0;_0x2a6477<_0x20b450['length'];_0x2a6477++){const _0x236dd4=_0x20b450[_0x2a6477]['previousPosition'],_0x313220=_0x20b450[_0x2a6477]['nextPosition'];for(const _0x314e6e of _0x20b450[_0x2a6477]['markersStart'])_0x46daa8['set'](_0x314e6e,{'start':_0x236dd4,'end':null});_0x4ad721('isRemoveSuggestion',_0x2a6477,_0x236dd4,_0x313220),_0x4ad721('isAddSuggestion',_0x2a6477,_0x236dd4,_0x313220),_0x4ad721('isRemoved',_0x2a6477,_0x236dd4,_0x313220),_0x4ad721('isAdded',_0x2a6477,_0x236dd4,_0x313220);for(const _0x452aa1 of _0x20b450[_0x2a6477]['markersEnd']){const _0x5ea23f=_0x46daa8['get'](_0x452aa1);_0x5ea23f?_0x5ea23f['end']=_0x313220:_0x46daa8['set'](_0x452aa1,{'start':_0x313220,'end':_0x313220});}}for(const [_0x409292,_0x173fb5]of _0x46daa8){const _0xd78a2b=this['editor']['model']['createRange'](_0x173fb5['start'],_0x173fb5['end']);_0x4eaf71['markers']['set'](_0x409292,_0xd78a2b);}return _0x2f2bf2['sort']((_0x156754,_0x38e63b)=>{const _0xdd9970=_0x4eaf71['markers']['get']('revision:'+_0x156754['id']),_0x230b1e=_0x4eaf71['markers']['get']('revision:'+_0x38e63b['id']);return _0xdd9970['start']['isBefore'](_0x230b1e['start'])?-0x1:_0xdd9970['start']['isAfter'](_0x230b1e['start'])?0x1:_0xdd9970['end']['isBefore'](_0x230b1e['end'])?-0x1:_0xdd9970['end']['isAfter'](_0x230b1e['end'])?0x1:'add'===_0x156754['type']?-0x1:0x1;}),{'root':_0x4eaf71,'changes':_0x2f2bf2};function _0x4ad721(_0x1561ec,_0x3f4855,_0x524886,_0x2717e8){const _0x464f6d=!!_0x20b450[_0x3f4855][_0x1561ec],_0x30012a=_0x464f6d?_0x20b450[_0x3f4855][_0x1561ec]['userId']:null,_0x4d8503=_0x3f4855===_0x20b450['length']-0x1,_0x4cc7fd=_0x14db42[_0x1561ec][0x0],_0x3e7fcd=_0x3a2825['isObject'](_0x20b450[_0x3f4855]['item']);!_0x189f6c[_0x1561ec]&&_0x464f6d?_0x189f6c[_0x1561ec]={'start':_0x524886,'tapeItem':_0x20b450[_0x3f4855],'userId':_0x30012a,'type':_0x1561ec}:_0x189f6c[_0x1561ec]&&!_0x464f6d?(_0x189f6c[_0x1561ec]['end']=_0x524886,_0x4fb840(_0x189f6c[_0x1561ec]),_0x189f6c[_0x1561ec]=null):_0x189f6c[_0x1561ec]&&_0x464f6d&&_0x189f6c[_0x1561ec]['userId']!==_0x30012a&&(_0x189f6c[_0x1561ec]['end']=_0x524886,_0x4cc7fd&&_0x4cc7fd['userId']===_0x189f6c[_0x1561ec]['userId']||_0x4fb840(_0x189f6c[_0x1561ec]),_0x189f6c[_0x1561ec]={'start':_0x524886,'tapeItem':_0x20b450[_0x3f4855],'userId':_0x30012a,'type':_0x1561ec}),_0x189f6c[_0x1561ec]&&_0x3e7fcd&&('elementStart'!==_0x20b450[_0x3f4855]['type']||_0x4cc7fd&&_0x4cc7fd['userId']===_0x30012a||_0x14db42[_0x1561ec]['unshift']({'userId':_0x30012a,'object':_0x20b450[_0x3f4855]['item'],'change':_0x189f6c[_0x1561ec]}),'elementEnd'===_0x20b450[_0x3f4855]['type']&&_0x4cc7fd&&_0x4cc7fd['object']===_0x20b450[_0x3f4855]['item']&&(_0x14db42[_0x1561ec]['shift'](),_0x189f6c[_0x1561ec]=_0x4cc7fd['change'])),_0x189f6c[_0x1561ec]&&_0x4d8503&&(_0x189f6c[_0x1561ec]['end']=_0x2717e8,_0x4fb840(_0x189f6c[_0x1561ec]),_0x189f6c[_0x1561ec]=null);}function _0x4fb840({start:_0x6072f5,end:_0x2d3c68,tapeItem:_0x12d181,userId:_0xdbe63,type:_0x4ad9a5}){const _0x21d80e=_0x12d181['item'],_0x118a5a=_0x3d411a['schema']['isBlock'](_0x21d80e)&&!_0x3d411a['schema']['isLimit'](_0x21d80e),_0xd513d1=_0x6072f5['nodeAfter']==_0x2d3c68['parent']&&_0x2d3c68['isAtStart'];if(_0x118a5a&&_0xd513d1)return;const _0x3331ad=_0x3d411a['createRange'](_0x6072f5,_0x2d3c68),_0x3578e4=_0x5eaa79['get'](_0xdbe63),_0x1670cd=new r({'author':_0x3578e4,'type':'isAdded'==_0x4ad9a5||'isAddSuggestion'==_0x4ad9a5?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x4ad9a5||'isRemoveSuggestion'==_0x4ad9a5},'createdAt':new Date(),'rootName':_0x4f43c2});_0x2f2bf2['push'](_0x1670cd),_0x4eaf71['markers']['set']('revision:'+_0x1670cd['id'],_0x3331ad);}function _0x2fcb17(_0x516c61,_0x3fe813){const _0x22e4aa=_0x516c61['getAttributes'](),_0x5012f2=_0x3fe813['getAttributes']();for(const _0x364f87 of _0x22e4aa){if(_0x364f87[0x1]!==_0x3fe813['getAttribute'](_0x364f87[0x0]))return!0x1;_0x5012f2['next']();}return _0x5012f2['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x582686=>{const _0x4ac585=_0x582686['markerName']['split'](':')[0x1],_0x19afe6=this['_getChangeFromId'](_0x4ac585);if(!_0x19afe6)return null;const _0x3c1f49='add'==_0x19afe6['type']?'insertion':'deletion',_0x191b69=['ck-suggestion-marker','ck-suggestion-marker-'+_0x3c1f49];return _0x19afe6['data']['isSuggestion']&&_0x191b69['push']('ck-suggestion-marker-'+_0x3c1f49+'-new'),this['activeChange']==_0x19afe6&&_0x191b69['push']('ck-suggestion-marker--active'),{'classes':_0x191b69,'attributes':{'data-change-id':_0x4ac585}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x232271=>{_0x232271['on']('element:pre',(_0x311091,_0x2f84ae,_0x1c68db)=>{const _0x46a5d1=_0x2f84ae['viewItem']['getChild'](0x0);if(!_0x46a5d1||!_0x46a5d1['is']('element','code'))return;if(!_0x1c68db['consumable']['consume'](_0x46a5d1,{'attributes':['vid_start','vid_end']}))return;const _0xa60a50=_0x2f84ae['modelRange']['start']['nodeAfter'];_0x1c68db['writer']['setAttribute']('vid_start',_0x46a5d1['getAttribute']('vid_start'),_0xa60a50),_0x1c68db['writer']['setAttribute']('vid_end',_0x46a5d1['getAttribute']('vid_end'),_0xa60a50);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x3f6e5f=>{_0x3f6e5f['on']('element',(_0x32b5b7,_0x2ea411,_0x385f2b)=>{if(!_0x385f2b['consumable']['consume'](_0x2ea411['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x2ea411['modelRange']['isCollapsed'])return;const _0x2b631c=_0x2ea411['modelRange']['start']['nodeAfter'];_0x2b631c['hasAttribute']('vid_start')||_0x2b631c['hasAttribute']('vid')||(_0x385f2b['writer']['setAttribute']('vid_start',_0x2ea411['viewItem']['getAttribute']('vid_start'),_0x2b631c),_0x385f2b['writer']['setAttribute']('vid_end',_0x2ea411['viewItem']['getAttribute']('vid_end'),_0x2b631c));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x5bfc8a=>_0x5bfc8a['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x2470ea,[,_0x56dccf])=>{['vid_start','vid_end','vid']['includes'](_0x56dccf)&&(_0x2470ea['return']=!0x0,_0x2470ea['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x587a68=>{_0x587a68['on']('attribute:vid',(_0x4b5e9a,_0x23664d,_0x4ca9f3)=>{if('\x20'!=_0x23664d['item']['data']||_0x23664d['item']['parent']['maxOffset']>0x1)return;if(!_0x4ca9f3['consumable']['consume'](_0x23664d['item'],_0x4b5e9a['name']))return;const _0x2c45f0=_0x4ca9f3['writer'],_0x51a577=_0x4ca9f3['mapper']['toViewRange'](_0x23664d['range']);_0x2c45f0['wrap'](_0x51a577,_0x2c45f0['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x323c77){const _0x413117=_0x323c77['plugins']['get']('RevisionViewer');return(_0x284869,_0x274f77,_0x5271bf)=>{const _0x4e8901=_0x274f77['markerName']['split'](':')[0x1],_0x3535b6=_0x413117['_getChangeFromId'](_0x4e8901);if(!_0x3535b6)return null;const _0x253464='add'==_0x3535b6['type']?'split':'merge';if(!_0x5271bf['consumable']['test'](_0x274f77['markerRange'],_0x284869['name']))return;const _0x404158=_0x274f77['markerRange']['getWalker'](),_0x295647=_0x274f77['markerRange']['start'],_0x42b061=_0x323c77['model']['schema'];let _0x107834=null,_0x537340=null,_0xc7031e=!0x1,_0x4af968=!0x1;for(const _0x46af4d of _0x404158){const _0xf633c2=_0x46af4d['item'];_0xc7031e=_0xc7031e||_0x42b061['isContent'](_0xf633c2);const _0x2bd765=_0x5271bf['mapper']['toViewElement'](_0xf633c2);if(_0x2bd765&&_0x2bd765['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x46af4d['type']&&(_0x42b061['isBlock'](_0xf633c2)&&!_0x42b061['isLimit'](_0xf633c2)&&(_0xf633c2['nextSibling']||_0x295647['isAtEnd']?_0x107834&&_0x107834['parent']==_0xf633c2||(_0x107834=_0xf633c2,_0x3c138d(_0x46af4d['previousPosition']),_0x4af968=!0x0):_0x537340=_0x537340||_0x46af4d['previousPosition']));}function _0x3c138d(_0x451334){const _0x268bfe=_0x5271bf['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x253464}),_0x199e39=_0x5271bf['mapper']['toViewPosition'](_0x451334);_0x3535b6['data']['isSuggestion']&&_0x5271bf['writer']['addClass']('ck-suggestion-marker-'+_0x253464+'-new',_0x268bfe),_0x413117['activeChange']==_0x3535b6&&_0x5271bf['writer']['addClass']('ck-suggestion-marker--active',_0x268bfe),_0x5271bf['writer']['insert'](_0x199e39,_0x268bfe),_0x5271bf['mapper']['bindElementToMarker'](_0x268bfe,_0x274f77['markerName']);}_0xc7031e||_0x4af968||!_0x537340||_0x3c138d(_0x537340);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x4aa1cd,_0x1679d5,_0x313ce1)=>{const _0x33d507=_0x313ce1['mapper']['markerNameToElements'](_0x1679d5['markerName']);if(_0x33d507){for(const _0x3e3357 of _0x33d507)(_0x3e3357['hasClass']('ck-suggestion-marker-split')||_0x3e3357['hasClass']('ck-suggestion-marker-merge'))&&(_0x313ce1['mapper']['unbindElementFromMarkerName'](_0x3e3357,_0x1679d5['markerName']),_0x313ce1['writer']['remove'](_0x3e3357));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x9eb6cd,_0x16b739,_0xd7f8d9)=>{const _0x3a9342=_0x16b739['markerName']['split'](':')[0x1],_0x52c3ad=this['_getChangeFromId'](_0x3a9342);if(!_0x52c3ad)return null;const _0x210fac='add'==_0x52c3ad['type']?'split':'merge';if(_0xd7f8d9['consumable']['test'](_0x16b739['markerRange'],_0x9eb6cd['name']))for(const _0x4abb9e of _0x16b739['markerRange']['getItems']()){if(!_0x4abb9e['is']('element','softBreak'))continue;const _0x25772d=_0xd7f8d9['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x210fac}),_0x5767c5=_0xd7f8d9['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x4abb9e));_0x52c3ad['data']['isSuggestion']&&_0xd7f8d9['writer']['addClass']('ck-suggestion-marker-'+_0x210fac+'-new',_0x25772d),this['activeChange']==_0x52c3ad&&_0xd7f8d9['writer']['addClass']('ck-suggestion-marker--active',_0x25772d),_0xd7f8d9['writer']['insert'](_0x5767c5,_0x25772d),_0xd7f8d9['mapper']['bindElementToMarker'](_0x25772d,_0x16b739['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x4138ee=>{for(const _0x5900c2 of this['editor']['model']['document']['getRootNames']()){const _0x13aa9b=this['editor']['model']['document']['getRoot'](_0x5900c2),_0xf109e=this['editor']['editing']['view']['document']['getRoot'](_0x5900c2);if(_0xf109e){const _0x13b25c=_0x13aa9b['getAttribute']('revisionHistoryAttachChange');if(_0x4138ee['removeAttribute']('data-change-id',_0xf109e),_0x4138ee['removeClass']('ck-revision-history-root-add',_0xf109e),_0x4138ee['removeClass']('ck-revision-history-root-remove',_0xf109e),_0x4138ee['removeClass']('ck-revision-history-root--active',_0xf109e),_0x13b25c){const _0x4bccde=this['_getChangeFromId'](_0x13b25c);if(!_0x4bccde)return null;_0x4138ee['setAttribute']('data-change-id',_0x13b25c,_0xf109e),_0x4138ee['addClass']('ck-revision-history-root-'+_0x4bccde['type'],_0xf109e),this['activeChange']==_0x4bccde&&_0x4138ee['addClass']('ck-revision-history-root--active',_0xf109e);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x4dc867=>'revision-comment:'+_0x4dc867,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x52c2cb=>'revision-suggestion:'+_0x52c2cb,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x2908e7=>({'name':'suggestion:'+_0x2908e7,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x4105d1=>{const _0x2b8419=_0x4105d1['markerName']['split'](':')[0x1];return'insertion'!=_0x2b8419&&'deletion'!=_0x2b8419?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x2b8419]};}}),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',(_0x36b780,_0x4203c8,_0x5d6353)=>{const _0x746fdb=_0x5d6353['mapper']['markerNameToElements'](_0x4203c8['markerName']);if(_0x746fdb){for(const _0x302ed5 of _0x746fdb)_0x302ed5['is']('uiElement')&&(_0x5d6353['mapper']['unbindElementFromMarkerName'](_0x302ed5,_0x4203c8['markerName']),_0x5d6353['writer']['remove'](_0x302ed5));}},{'priority':'high'});}['_getChangeFromId'](_0x20425d){return this['_changeIdToChange']['get'](_0x20425d);}['_getViewForChange'](_0x44b031){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x44b031),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x1a4b60,_0x5139d3,_0x87de53,_0x16cb58)=>{_0x16cb58&&this['_balloon']['remove'](_0x16cb58),_0x87de53&&(this['_balloon']['add']({'view':_0x87de53,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x145c87=this['editor']['editing'],_0x240960=this['_getChangeFromId'](_0x87de53['changeId']);let _0x2b4d55;if(_0x240960['data']['isOnRoot']){const _0x4c6d3d=_0x145c87['view']['getDomRoot'](_0x240960['rootName']);_0x2b4d55=Array['from'](_0x4c6d3d['getClientRects']());}else{const _0x16f57c=this['editor']['model']['markers']['get']('revision:'+_0x87de53['changeId']);_0x2b4d55=Array['from'](_0x145c87['mapper']['markerNameToElements'](_0x16f57c['name']))['map'](_0x526c5a=>_0x145c87['view']['domConverter']['mapViewToDom'](_0x526c5a))['map'](_0x411432=>Array['from'](_0x411432['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x2b4d55[0x0];return _0x2b4d55['find'](_0x1f6a49=>_0x1f6a49['top']-0x3<=this['_activeViewTarget']['y']&&_0x1f6a49['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x1f6a49['left']-0x3<=this['_activeViewTarget']['x']&&_0x1f6a49['right']+0x3>=this['_activeViewTarget']['x'])||_0x2b4d55[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x433561,_0xdd86a8,_0x40bd73,_0x57a801)=>{this['activeView']=_0x40bd73?this['_getViewForChange'](_0x40bd73):null,this['editor']['model']['change'](()=>{const _0x1c7dcd=this['editor']['editing'];_0x57a801&&(_0x57a801['data']['isOnRoot']?_0x1c7dcd['view']['change'](_0x2366f5=>{_0x2366f5['removeClass']('ck-revision-history-root--active',_0x1c7dcd['view']['document']['getRoot'](_0x57a801['rootName']));}):_0x1c7dcd['reconvertMarker']('revision:'+_0x57a801['id'])),_0x40bd73&&(_0x40bd73['data']['isOnRoot']?_0x1c7dcd['view']['change'](_0x35f4c2=>{_0x35f4c2['addClass']('ck-revision-history-root--active',_0x1c7dcd['view']['document']['getRoot'](_0x40bd73['rootName']));}):_0x1c7dcd['reconvertMarker']('revision:'+_0x40bd73['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x402e8a,_0x20269d)=>{if(this['activeChange'])return;const _0x5d772c=this['_findChangeIdFromDomTarget'](_0x20269d['target']),_0x4481bb=this['_changeIdToChange']['get'](_0x5d772c);_0x4481bb?(this['_activeViewTarget']={'x':_0x20269d['domEvent']['x'],'y':_0x20269d['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x4481bb)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0xf5d2b4,_0x142bfd)=>{const _0x157efd=this['_findChangeIdFromDomTarget'](_0x142bfd['target']),_0x480315=this['_changeIdToChange']['get'](_0x157efd);_0x480315?(this['_activeViewTarget']={'x':_0x142bfd['domEvent']['x'],'y':_0x142bfd['domEvent']['y']},_0x480315===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x480315):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x51609f){do{const _0xeaadca=_0x51609f['getAttribute']('data-change-id');if(_0xeaadca)return _0xeaadca;_0x51609f=_0x51609f['parent'];}while(_0x51609f);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x4df435=>{for(const _0x21ebfc of this['editor']['model']['markers'])_0x4df435['removeMarker'](_0x21ebfc);});}}function X(_0x233e32,_0x8c2b12){return(_0x512bde,_0x3b60d1,_0x727d26)=>{if(!_0x727d26['consumable']['test'](_0x3b60d1['markerRange'],_0x512bde['name']))return;const _0x6fb986=_0x3b60d1['markerRange']['getWalker'](),_0x153724=_0x3b60d1['markerRange']['start'],_0x1af254=_0x233e32['model']['schema'];let _0x29fbd5=null,_0x2b2a7d=null,_0x1ddab4=!0x1,_0x220a87=!0x1;for(const _0x49141c of _0x6fb986){const _0x5855c1=_0x49141c['item'];_0x1ddab4=_0x1ddab4||_0x1af254['isContent'](_0x5855c1);const _0x49dea5=_0x727d26['mapper']['toViewElement'](_0x5855c1);if(_0x49dea5&&_0x49dea5['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x49141c['type']&&(_0x1af254['isBlock'](_0x5855c1)&&!_0x1af254['isLimit'](_0x5855c1)&&(_0x5855c1['nextSibling']||_0x153724['isAtEnd']?_0x29fbd5&&_0x29fbd5['parent']==_0x5855c1||(_0x29fbd5=_0x5855c1,_0x432d1b(_0x49141c['previousPosition']),_0x220a87=!0x0):_0x2b2a7d=_0x2b2a7d||_0x49141c['previousPosition']));}function _0x432d1b(_0x19753d){const _0x44c46a=_0x727d26['mapper']['toViewPosition'](_0x19753d),_0x273199=_0x727d26['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x8c2b12});_0x727d26['writer']['insert'](_0x44c46a,_0x273199),_0x727d26['mapper']['bindElementToMarker'](_0x273199,_0x3b60d1['markerName']);}_0x1ddab4||_0x220a87||!_0x2b2a7d||_0x432d1b(_0x2b2a7d);};}class mt extends _0x272f0c{constructor(_0x1af6d5){super(_0x1af6d5);const _0x402edc=_0x1af6d5['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x402edc,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x402edc,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x27102f=this['editor'],_0x5a764a=_0x27102f['plugins']['get'](m),_0x2d37d1=_0x5a764a['isReady']?_0x5a764a['diff']['newRevisionId']:null;_0x27102f['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x2d37d1);}['refresh'](){const {isReady:_0x58e28b,isEnabled:_0x28607c,repository:_0x4261a5,diff:_0x2a8259}=this['editor']['plugins']['get'](m),_0x104678=_0x2a8259&&_0x4261a5['getLaterVisibleRevision'](_0x2a8259['newRevisionId']);this['isEnabled']=_0x58e28b&&_0x28607c&&Boolean(_0x104678);}}class wt extends _0x272f0c{['_step'];constructor(_0x3d3088,{direction:_0x43180b}){super(_0x3d3088);const _0x424395=_0x3d3088['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x43180b?0x1:-0x1,this['listenTo'](_0x424395,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x424395,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x424395,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x30d060=this['editor'],_0x1d0ad7=_0x30d060['plugins']['get'](m),{isNavigationMode:_0x36e30e,currentChangeNumber:_0x407c30}=_0x1d0ad7;let _0xc8ee98;if(_0x1d0ad7['activeChange']=_0x36e30e?_0x1d0ad7['diff']['changes']['get'](_0x407c30+this['_step']):_0x1d0ad7['diff']['changes']['first'],_0x1d0ad7['activeChange']['data']['isOnRoot'])_0xc8ee98=_0x30d060['editing']['view']['getDomRoot'](_0x1d0ad7['activeChange']['rootName']);else{const _0x77a73f=_0x30d060['model']['markers']['get']('revision:'+_0x1d0ad7['activeChange']['id']);_0xc8ee98=_0x3be11c(_0x30d060['editing'],_0x77a73f);}_0x53184f({'target':_0xc8ee98,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0xf822ec,currentChangeNumber:_0x34c97b,numberOfChanges:_0x5aa0b2,isReady:_0x3a559d,isEnabled:_0x39eace}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x39eace&&_0x3a559d&&_0x5aa0b2)&&(!_0xf822ec||(0x1===this['_step']?_0x34c97b<_0x5aa0b2-0x1:_0x34c97b>0x0));}}class _i extends ts{constructor(_0x543294){super(_0x543294);const _0x14e455=this['bindTemplate'],_0x33fa71=new te(_0x543294),_0x4dc3c4=new te(_0x543294);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',(_0x127d87,_0x47e130)=>_0x127d87&&_0x47e130>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x11ff59,_0x3a5d03,_0x54c9e0,_0x316662)=>{if(!_0x11ff59)return g(_0x543294,'Loading...');if(!_0x54c9e0)return g(_0x543294,'No\x20changes');const _0x55913f=g(_0x543294,'NUMBER_OF_CHANGES',_0x54c9e0);return _0x316662?g(_0x543294,'X_OF_Y_CHANGES',[_0x3a5d03+0x1,_0x54c9e0]):_0x55913f;}),_0x33fa71['set']({'label':g(_0x543294,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x382717}),_0x4dc3c4['set']({'label':g(_0x543294,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x5c0296}),_0x33fa71['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x4dc3c4['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x33fa71['on']('execute',()=>this['fire']('execute','backward')),_0x4dc3c4['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',_0x14e455['if']('_isStatusLabelVisible','ck-hidden',_0x1c4706=>!_0x1c4706)]},'children':[{'text':_0x14e455['to']('isNavigationMode',_0x4e316f=>_0x4e316f?g(_0x543294,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x543294,'Total')+':\x20')}]},{'text':_0x14e455['to']('_statusText')}]},new _0x42f50c(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x33fa71,_0x4dc3c4]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x4fedf0{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x5c2e41=this['editor']['editing']['view'];_0x5c2e41['change'](_0x120bfb=>{for(const _0x17de3e of _0x5c2e41['document']['roots'])_0x120bfb['addClass'](le,_0x17de3e);});}['hide'](){const _0x1181ec=this['editor']['editing']['view'];_0x1181ec['change'](_0x5bfbe8=>{for(const _0x5db5c0 of _0x1181ec['document']['roots'])_0x5bfbe8['removeClass'](le,_0x5db5c0);});}}class R extends _0x4fedf0{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,ge];}['init'](){const _0x172276=this['editor'],_0x4aff99=_0x172276['plugins']['get'](m),_0x570899=_0x172276['plugins']['get'](ge);_0x172276['ui']['componentFactory']['add']('exitToEditing',_0x2b5fce=>{const _0x55722b=new te(_0x2b5fce);return _0x55722b['set']({'label':g(_0x2b5fce,'Back\x20to\x20editing'),'icon':_0x4b853c,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x55722b,'execute',()=>{_0x172276['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x55722b;}),_0x172276['ui']['componentFactory']['add']('restoreRevision',_0x808810=>{const _0x4481c5=new te(_0x808810);return _0x4481c5['set']({'label':g(_0x808810,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x4481c5['bind']('isEnabled')['to'](_0x172276['commands']['get']('restoreRevision')),this['listenTo'](_0x4481c5,'execute',()=>_0x172276['execute']('restoreRevision')),_0x4481c5;}),_0x172276['ui']['componentFactory']['add']('changesNavigation',_0x26ac79=>{const _0x3322ff=new _i(_0x26ac79),_0x82c0ab=_0x172276['commands']['get']('showPreviousChange'),_0x2b3cfa=_0x172276['commands']['get']('showNextChange');return _0x3322ff['bind']('isBackwardNavigationEnabled')['to'](_0x82c0ab,'isEnabled'),_0x3322ff['bind']('isForwardNavigationEnabled')['to'](_0x2b3cfa,'isEnabled'),_0x3322ff['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x4aff99),this['listenTo'](_0x3322ff,'execute',(_0x35170b,_0xef0ade)=>{_0x172276['execute']('forward'===_0xef0ade?'showNextChange':'showPreviousChange');}),_0x3322ff;}),_0x570899['show'](),_0x4aff99['on']('change:isReady',(_0xfaaccc,_0xc64de4,_0x34db8e)=>{_0x34db8e?_0x570899['hide']():_0x570899['show']();});}}class at extends _0x4263ed{['_resizeObserver']=null;constructor(_0x2a273c,_0x303373){super(_0x2a273c,_0x303373);const _0x9602e9=this['bindTemplate'];this['set']({'label':g(_0x2a273c,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x2a273c,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x9602e9['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 _0x5a5007=this['fieldView']['element'];this['_tooltipString']=_0x5a5007['scrollWidth']>_0x5a5007['clientWidth']&&_0x5a5007['value']||'';}}class si extends ts{constructor(_0x1169b9,_0x45d1ba,_0x499a00){super(_0x1169b9);const _0x5791e8=new _0x356830();_0x5791e8['set']({'content':_0x23ed51,'viewBox':'0\x200\x2011\x2010'});const _0x5df3f7=['ck','ck-revision-history-sidebar__revision-author'];_0x499a00&&_0x5df3f7['push']('ck-revision-history-sidebar__revision-author_creator');const _0x409e41=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x1169b9,_0x499a00?'Revision\x20creator':'Revision\x20author')},'children':[_0x5791e8,_0x45d1ba['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x5df3f7},'children':_0x409e41});}}function oi(_0x550351,_0x396835){const _0x1b9768=_0x550351['bindTemplate'],_0x24c2f2=_0x550351['locale'],_0x2b1661=_0x4b06b6(_0x24c2f2);_0x2b1661['panelPosition']='sw';const _0x226d77=function(_0x493a3c,_0x49b193){const _0x586c0f=function(_0x3d23f5,_0x3b6811){const _0x434439=_0x3d23f5['locale'],_0x1a89cd={'Compare\x20against\x20selected':g(_0x434439,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x434439,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x434439,'Restore\x20this\x20revision')};return _0x3b6811['map'](_0x433305=>{const _0x35fc02=_0x1a89cd[_0x433305['name']];return _0x35fc02&&_0x35fc02!==_0x433305['name']&&(_0x433305['name']=_0x35fc02),_0x433305;});}(_0x493a3c,_0x49b193),_0x2cf6a4=new _0x428f3c();for(const _0x5d7a03 of _0x586c0f){const _0x1e18d0={'type':'button','model':new to({'label':_0x5d7a03['name'],'class':_0x5d7a03['class'],'withText':!0x0,'role':'menuitem','_action':_0x5d7a03['action']})};_0x1e18d0['model']['bind']('isEnabled')['to'](_0x493a3c,'isActionsDropdownOpen',_0x2f2d3e=>'function'!=typeof _0x5d7a03['isEnabled']||(!_0x2f2d3e||_0x5d7a03['isEnabled'](_0x493a3c))),_0x2cf6a4['add'](_0x1e18d0);}return _0x2cf6a4;}(_0x550351,_0x396835);return _0x550351['bind']('isActionsDropdownOpen')['to'](_0x2b1661,'isOpen'),_0x2b1661['buttonView']['set']({'label':g(_0x24c2f2,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x586ec1}),_0x2b1661['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x1b9768['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x1b9768['to'](_0x1a839d=>_0x1a839d['stopPropagation']())}}),_0x2b1661['on']('execute',_0x3a83ea=>{_0x550351['isReady']&&'function'==typeof _0x3a83ea['source']['_action']&&_0x3a83ea['source']['_action'](_0x550351);}),_0x5f376c(_0x2b1661,_0x226d77,{'role':'menu'}),_0x2b1661['listenTo'](_0x550351,'change:isActionsDropdownOpen',(_0x13aae9,_0x876c54,_0x148658)=>{if(_0x148658)for(const _0x465fa2 of _0x2b1661['listView']['items']){const _0x28bd83=_0x465fa2['children']['first'],_0x304b24=_0x396835['find'](_0x1fa7cb=>_0x1fa7cb['action']===_0x28bd83['_action'])['isVisible'];_0x465fa2['isVisible']=void 0x0===_0x304b24||_0x304b24(_0x550351);}}),_0x2b1661;}class hi extends/* #__PURE__ -- @preserve */
|
|
26
|
+
ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x1c650e,_0x52a482,_0x55931d,_0x4bd0f2){super(_0x1c650e);const _0x2987de=this['bindTemplate'],_0x24fa17=function(_0x561f15,_0x1a8737){const _0x1d7a22=Array['from'](_0x1a8737['authors'])['filter'](_0xc226c5=>_0xc226c5!=_0x1a8737['creator']);return _0x1a8737['creator']&&_0x1d7a22['unshift'](_0x1a8737['creator']),_0x1d7a22['map'](_0x3ca625=>new si(_0x561f15,_0x3ca625,_0x3ca625==_0x1a8737['creator']));}(_0x1c650e,_0x52a482);this['id']=_0x52a482['id'],this['_revision']=_0x52a482,this['_requireRevisionName']=_0x4bd0f2,this['bind']('name','createdAt')['to'](_0x52a482),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x142761=>{return _0x116e15=_0x1c650e['uiLanguage'],(_0x4cad34=_0x142761)['toLocaleDateString'](_0x116e15,{'month':'long','day':'numeric'})+',\x20'+_0x4cad34['toLocaleTimeString'](_0x116e15,{'hour':'numeric','minute':'numeric'});var _0x116e15,_0x4cad34;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new at(_0x1c650e,_0x3eb06c),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x1062b9=>_0x1062b9||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x184638,_0x2bf96a)=>_0x184638&&_0x2bf96a),this['revisionActionsView']=_0x55931d&&_0x55931d['length']?oi(this,_0x55931d):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x2987de['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x2987de['if']('isEnabled','ck-disabled',_0x49d845=>!_0x49d845),_0x2987de['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x2987de['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x2987de['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':_0x2987de['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':_0x24fa17}]},this['revisionActionsView']],'on':{'click':_0x2987de['to'](_0x7d0b0c=>{_0x7d0b0c['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0xe99fb6=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0xe99fb6,'change',()=>{this['_requireRevisionName']&&!_0xe99fb6['value']||this['fire']('setName',{'id':this['id'],'name':_0xe99fb6['value']}),_0xe99fb6['value']||(_0xe99fb6['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function ai(_0x3b65a5,_0x332deb){const _0x49cfe2=_0x4bb794['fromJSDate'](_0x3b65a5)['setLocale'](_0x332deb),_0xd9ff68=_0x4bb794['local'](),_0xd53c82=_0xd9ff68['minus']({'days':0x1})['startOf']('day');let _0x23255a,_0x1c8d4a;return _0x49cfe2['hasSame'](_0xd9ff68,'day')?(_0x23255a=_0x49cfe2['startOf']('day')['toJSDate'](),_0x1c8d4a=_0x49cfe2['toRelativeCalendar']()):_0x49cfe2['hasSame'](_0xd53c82,'day')?(_0x23255a=_0xd53c82['toJSDate'](),_0x1c8d4a=_0x49cfe2['toRelativeCalendar']()):_0x49cfe2['hasSame'](_0xd9ff68,'week')?(_0x23255a=_0x49cfe2['startOf']('week')['toJSDate'](),_0x1c8d4a=_0x49cfe2['weekdayLong']||''):_0x49cfe2['hasSame'](_0xd9ff68,'year')?(_0x23255a=_0x49cfe2['startOf']('month')['toJSDate'](),_0x1c8d4a=_0x49cfe2['monthLong']||''):(_0x23255a=_0x49cfe2['startOf']('year')['toJSDate'](),_0x1c8d4a=String(_0x49cfe2['year'])),{'startDate':_0x23255a,'localizedPeriodName':_0x1c8d4a};}class di extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x54089c,_0x14ce60,_0x526ac9,_0x3d4b52){super(_0x54089c);const _0x5a3176=ai(_0x14ce60,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x14ce60,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x526ac9,this['_requireRevisionName']=_0x3d4b52,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':_0x5a3176}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x2e5bcb){const _0x40ff9f=new hi(this['locale'],_0x2e5bcb,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x40ff9f);}['removeRevision'](_0x49d2ae){const _0x410b71=this['revisionViews']['find'](_0x19ee60=>_0x19ee60['id']===_0x49d2ae['id']);this['revisionViews']['remove'](_0x410b71);}}class as extends ts{constructor(_0x9ae6a7){super(_0x9ae6a7);const _0x521f29=new _0x356830();_0x521f29['content']=_0x49a408,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x521f29,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[g(_0x9ae6a7,'Revision\x20history')]}]});}}class ni extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x15516e,_0x46b34b,_0x3ff939,_0x2011f3){super(_0x15516e);const _0x235c67=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x46b34b,this['_revisionActions']=_0x3ff939,this['_requireRevisionName']=_0x2011f3,this['on']('select',(_0x5bac53,_0x3a4169)=>{this['fire']('revisionSelected',_0x3a4169);}),this['on']('setName',(_0x4fb8ca,_0x1b6266)=>{this['fire']('revisionSetName',_0x1b6266);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x15516e),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x235c67['if']('isEnabled','ck-disabled',_0x3fd5f9=>!_0x3fd5f9)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x332c6d of this['_revisions'])this['_addRevision'](_0x332c6d);this['_revisions']['on']('add',(_0x1471b3,_0x5c9c1d)=>{this['_addRevision'](_0x5c9c1d);}),this['_revisions']['on']('remove',(_0x30bd81,_0x214c8a)=>{this['_removeRevision'](_0x214c8a);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x1e605c=>_0x1e605c['revisionViews']['map'](_0x2d82d2=>_0x2d82d2))['flat']();}['selectRevision'](_0xe03ad){for(const _0x1c62fd of this['revisionViews'])_0xe03ad&&_0xe03ad['id']===_0x1c62fd['id']?_0x1c62fd['select']():_0x1c62fd['deselect']();}['highlightRevisions'](_0x276cd6){for(const _0x454be0 of this['revisionViews'])_0x276cd6['some'](({id:_0xdf7ae1})=>_0xdf7ae1===_0x454be0['id'])?_0x454be0['highlight']():_0x454be0['unhighlight']();}['_addRevision'](_0x1e6621){const _0x51acb0=ai(_0x1e6621['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x2b1fa0=this['timePeriodViews']['get'](0x0);_0x2b1fa0&&_0x2b1fa0['startDate']['getTime']()===_0x51acb0['getTime']()||(_0x2b1fa0=new di(this['locale'],_0x51acb0,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x2b1fa0)),_0x2b1fa0['addRevision'](_0x1e6621);}['_removeRevision'](_0x8b6ed6){const _0x592661=ai(_0x8b6ed6['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x592661)['removeRevision'](_0x8b6ed6);}['_getTimePeriodViewByStartDate'](_0x23ba71){return this['timePeriodViews']['find'](_0x6f512b=>_0x6f512b['startDate']['getTime']()===_0x23ba71['getTime']());}}class d extends _0x4fedf0{['_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
|
-
_0x262cbd(_0x1d5234){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x45a782,_0xd210e0){super(_0xd210e0),this['sourceElement']=_0x45a782,this['model']['document']['createRoot']();const _0x2e7cef=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x2e7cef);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x4e49a4,_0x88c1a8){const _0x245262=new this(_0x4e49a4,_0x88c1a8);return await _0x245262['initPlugins'](),await _0x245262['ui']['init'](_0x4e49a4),await _0x245262['data']['init'](_0x245262['config']['get']('initialData')||''),_0x245262['fire']('ready'),_0x245262;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class _t extends _0x5f2429{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2c80f4){function _0x16da60(_0xd9cf2f){return _0xd9cf2f['map'](_0x546f37=>String['fromCharCode'](_0x546f37))['join']('');}super(_0x2c80f4),this['result']='end',_0x2c80f4[_0x16da60([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x16da60([0x76,0x69,0x65,0x77])][_0x16da60([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x16da60([0x61,0x75,0x74,0x6f]),_0x2c80f4[_0x16da60([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x16da60([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x16da60([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x16da60([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x16da60([0x6f,0x6b])});}}class k extends _0x5f2429{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x43b5f2){if(super(_0x43b5f2),!this['editor']['config']['get']('revisionHistory'))throw new _0x8198d0('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x25645b=>this['_showRevisionViewer']({..._0x25645b,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x2e2dd6=>this['_closeRevisionViewer'](_0x2e2dd6)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x220a07=>this['_restoreRevision'](_0x220a07)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x227f71){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x227f71;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x55e6f2){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x55e6f2);}['getRevision'](_0x1a9adb){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x1a9adb);}['getRevisions'](_0x1ff878){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x1ff878||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x1d7d36=this['editor'],_0x4a3769=_0x3f10c5(_0x1d7d36,p),_0x332e3c=_0x1d7d36['plugins']['get']('RevisionTracker'),_0x25c9b4=_0x1d7d36['plugins']['get']('Users')['users'];return _0x4a3769['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x4a3769['lazyRoots'],(_0x4a3769['plugins']['push'](_t,m,R,class extends _0x5f2429{static get['requires'](){return[m,'Users'];}['init'](){const _0x51e492=this['editor']['plugins']['get']('Users');for(const _0x110dc1 of _0x25c9b4)_0x110dc1['isAnonymous']||_0x51e492['getUser'](_0x110dc1['id'])||_0x51e492['addUser'](_0x110dc1);const _0x2c4438=_0x332e3c['repository']['getRevisions']();let _0x1695a2=null;const _0x3dddac=this['editor']['plugins']['get']('RevisionViewer');_0x3dddac['adapter']=_0x332e3c['adapter'],_0x3dddac['bind']('isEnabled')['to'](_0x332e3c),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x1d7d36,'isReadOnly',_0x239e5a=>!_0x239e5a);for(const _0x245231 of _0x2c4438){const _0x4a0039=null===_0x245231['creator'];if(_0x4a0039&&_0x245231['toVersion']===_0x245231['fromVersion'])continue;const _0x513766=_0x245231['toJSON']();_0x3dddac['addRevisionData'](_0x513766,(_0x12b3d6,_0x36c070,_0x175b2a)=>{if(_0x4a0039){if(_0x1695a2)_0x1695a2['_update'](_0x12b3d6,_0x36c070);else{if(!_0x36c070){const _0x6728c5=_0x175b2a['toJSON']();_0x6728c5['id']=_0x5d960a(),_0x332e3c['saveRevision'](_0x6728c5,_0x175b2a['toVersion'])['then'](_0x562ebc=>{_0x1695a2=_0x562ebc;});}}}else _0x245231['_update'](_0x12b3d6,_0x36c070);});}}},d),_0x4a3769);}['_enhanceShowRevisionViewerCallback'](){const _0x1451f6=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x4e9fe9=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x488b83=this['editor']['plugins']['get']('Autosave');await _0x488b83['save']();}else await _0x4e9fe9['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x9a9c1=this['editor']['plugins']['get']('Dialog');_0x9a9c1['isOpen']&&_0x9a9c1['hide']();}const _0x1254e9=this['_getRevisionViewerEditorConfig']();return _0x1451f6(_0x1254e9)['then'](_0x4573a2=>{return(this['_viewerEditor']=_0x4573a2,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'),_0x4573a2);})['catch'](_0x409d93=>(console['error'](_0x409d93),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x21bef7=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'](),_0x21bef7(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x14802d=this['editor']['plugins']['get']('Annotations');_0x14802d['refreshVisibility'](),_0x14802d['refreshPositioning']();}})));}['_showRevisionViewer'](_0x1205a0){const _0x7169c5=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x3df107=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x4ae30d=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x4ae30d,_0x1205a0)['then'](_0xaa9ea9=>(_0x3df107['style']['display']='block',_0x7169c5['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0xaa9ea9));}['_closeRevisionViewer'](_0x3fbecd){const _0x250de8=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x250de8['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x3fbecd['destroy']();}async['_restoreRevision'](_0x43aba4){const _0xd228d1=this['editor'],_0x4b23ba=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x1f6fd3=_0xd228d1['plugins']['get']('RevisionTracker'),_0x1d6f91=_0xd228d1['plugins']['get']('RevisionHistoryUtils'),_0x261df1=_0x4b23ba['repository']['getRevision'](_0x43aba4);let _0xf166f2,_0x261b9d,_0x596aad;try{await _0x1d6f91['loadRevisionData'](_0x261df1,this['adapter']),_0xf166f2=_0x1d6f91['getRevisionDocumentData'](_0x261df1),_0x261b9d=_0x1d6f91['getRevisionRootsAttributes'](_0x261df1);}catch(_0x5766f3){return void console['error'](_0x5766f3);}_0xd228d1['model']['change'](_0x1418c3=>{for(const _0x27ded6 of Array['from'](_0xd228d1['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x1418c3['removeMarker'](_0x27ded6);}),_0x4b23ba['isReady']=!0x1,_0xd228d1['model']['enqueueChange'](_0x525592=>{_0x525592['setSelection'](null),_0x525592['removeSelectionAttribute'](_0xd228d1['model']['document']['selection']['getAttributeKeys']());const _0x5809eb=Object['keys'](_0xf166f2);for(const _0x23fc4 of _0xd228d1['model']['document']['roots'])'$graveyard'!=_0x23fc4['rootName']&&_0x23fc4['isAttached']()&&!_0x5809eb['includes'](_0x23fc4['rootName'])&&_0x525592['detachRoot'](_0x23fc4);for(const _0x3765d8 of _0x5809eb){let _0x435500=_0xd228d1['model']['document']['getRoot'](_0x3765d8);_0x435500&&_0x435500['isAttached']()||(_0x435500=_0x525592['addRoot'](_0x3765d8));const _0x35d95a=_0x261b9d[_0x3765d8],_0x47f31d=Object['keys'](_0x35d95a),_0x25b16b=_0xf166f2[_0x3765d8];for(const _0x10dd06 of _0x435500['getAttributeKeys']())_0x47f31d['includes'](_0x10dd06)||_0x525592['removeAttribute'](_0x10dd06,_0x435500);for(const _0x534c67 of _0x47f31d)_0x525592['setAttribute'](_0x534c67,_0x261b9d[_0x3765d8][_0x534c67],_0x435500);_0x525592['remove'](_0x525592['createRangeIn'](_0x435500)),_0x525592['insert'](_0xd228d1['data']['parse'](_0x25b16b,_0x435500),_0x435500,0x0);}});const _0x162b84=g(_0xd228d1['locale'],'Restored');if(_0x261df1['name'])_0x596aad=-0x1==_0x261df1['name']['indexOf'](_0x162b84)?_0x162b84+':\x20'+_0x261df1['name']:_0x261df1['name'];else _0x596aad=_0x162b84+':\x20'+(_0x261df1['createdAt']['toLocaleDateString'](_0xd228d1['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x261df1['createdAt']['toLocaleTimeString'](_0xd228d1['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x1f6fd3['saveRevision']({'name':_0x596aad}),_0x4b23ba['isReady']=!0x0,_0xd228d1['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(_0x2376e4){super(_0x2376e4),this['_revisionViewer']=_0x2376e4['plugins']['get'](m),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x2213d5=this['_revisionsRepository']['_revisions'],_0x8ff60a=this['_createRevisionActions'](),_0x3294ab=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ni(this['editor']['locale'],_0x2213d5,_0x8ff60a,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',(_0x49f567,_0x15b244)=>{_0x15b244['revisionViews']['on']('add',(_0xa03ea2,_0x443569)=>{_0x443569['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)),_0x3294ab['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x328606=this['_revisionsRepository']['getRevision'](0x0);if(_0x328606){const _0xd9f6fa=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x328606['id']);this['_revisionViewer']['compare'](_0x328606,_0xd9f6fa);}}['_handleRevisionSelected'](_0x387a78,_0x32f268){const _0x1050ab=this['_revisionsRepository']['getRevision'](_0x32f268['id']),_0x32cd1f=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x1050ab['id']);this['_revisionViewer']['compare'](_0x1050ab,_0x32cd1f);}['_handleRevisionSetName'](_0xc746ab,_0x36d082){this['_revisionsRepository']['getRevision'](_0x36d082['id'])['setName'](_0x36d082['name']);}['_handleDiffChange'](_0xe00d26,_0x488f3b,_0xe87bb6){const _0xec59d7=this['_revisionsRepository']['getRevisionsInDiff'](_0xe87bb6);_0xec59d7['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0xec59d7),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0xec59d7[0x0]));}['_createRevisionActions'](){const _0x2b8d28=this['editor'],_0x5daba6=d['availableRevisionActions'],_0x34daed=_0x2b8d28['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x34daed['length'])return _0x34daed['map'](_0x4f2ffa=>{const _0x20abcc='string'==typeof _0x4f2ffa?Object['assign']({},_0x5daba6[_0x4f2ffa]):_0x4f2ffa;return _0x20abcc['action']=_0x20abcc['action']['bind'](this,_0x2b8d28),_0x20abcc['isVisible']&&(_0x20abcc['isVisible']=_0x20abcc['isVisible']['bind'](this,_0x2b8d28)),_0x20abcc;});}}function pt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x8d7d2b},_0x5d8661)=>{const _0x3a0088=_0x8d7d2b['get'](m),_0x17fb26=_0x3a0088['repository'];let _0x19f8aa=_0x3a0088['diff']['newRevisionId'],_0x3b7182=_0x5d8661['id'];_0x17fb26['getIndex'](_0x19f8aa)>_0x17fb26['getIndex'](_0x3b7182)&&([_0x19f8aa,_0x3b7182]=[_0x3b7182,_0x19f8aa]),_0x3a0088['compare'](_0x19f8aa,_0x3b7182);},'isVisible':({plugins:_0x384ba0},_0x92eb89)=>{const _0x3871f4=_0x384ba0['get'](m);return!(_0x3871f4['repository']['getRevisionsInDiff'](_0x3871f4['diff'])['length']>0x2)&&!_0x92eb89['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x411f3f,{id:_0x42f0ea})=>{_0x411f3f['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x42f0ea);},'isVisible':({plugins:_0x1219f5},_0xdff11d)=>!!_0x1219f5['get'](m)['repository']['getLaterVisibleRevision'](_0xdff11d['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x58df12},{id:_0x3933da,revisionNameView:_0x5886ae})=>{const _0x25e018=_0x58df12['get'](m),_0x15b38c=_0x25e018['repository']['getEarlierVisibleRevision'](_0x3933da);_0x25e018['compare'](_0x3933da,_0x15b38c),_0x5886ae['focus'](),_0x5886ae['fieldView']['select']();}}};}class tt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x573e6e,_0x357b24){super(_0x573e6e),this['_view']=_0x357b24,this['_toolbarConfig']=et(_0x573e6e['config']['get']('toolbar')),this['_elementReplacer']=new ot();}get['element'](){return this['view']['element'];}['init'](_0x3f69fc){const _0x1de489=this['editor'],_0xdcf9f=this['view'],_0x2e5e25=_0x1de489['editing']['view'],_0xfb041c=_0xdcf9f['editable'],_0x305f11=_0x2e5e25['document']['getRoot']();_0xfb041c['name']=_0x305f11['rootName'],_0xdcf9f['render']();const _0x367f02=_0xfb041c['element'];this['setEditableElement'](_0xfb041c['name'],_0x367f02),_0xdcf9f['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x2e5e25['attachDomRoot'](_0x367f02),this['_elementReplacer']['replace'](_0x3f69fc,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x69402b=this['view'],_0x22676d=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x22676d['detachDomRoot'](_0x69402b['editable']['name']),_0x69402b['destroy']();}['_initToolbar'](){const _0x299cff=this['view'];_0x299cff['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x299cff['stickyPanel']['limiterElement']=_0x299cff['element'],_0x299cff['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x11fa45})=>_0x11fa45),_0x299cff['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x299cff['toolbar']);}}class it extends rt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x272f6a,_0x280244,_0x21c9be={}){super(_0x272f6a),this['stickyPanel']=new ht(_0x272f6a),this['toolbar']=new dt(_0x272f6a,{'shouldGroupWhenFull':_0x21c9be['shouldToolbarGroupWhenFull']}),this['_editable']=new ct(_0x272f6a,_0x280244);}['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
|
+
_0x951075(_0x567fc9){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x1c0b46,_0x3bff6e){super(_0x3bff6e),this['sourceElement']=_0x1c0b46,this['model']['document']['createRoot']();const _0x54022d=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x54022d);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x5b6337,_0x4d9d7c){const _0x34c305=new this(_0x5b6337,_0x4d9d7c);return await _0x34c305['initPlugins'](),await _0x34c305['ui']['init'](_0x5b6337),await _0x34c305['data']['init'](_0x34c305['config']['get']('initialData')||''),_0x34c305['fire']('ready'),_0x34c305;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class _t extends _0x4fedf0{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x19f8b7){function _0x11d07c(_0x43667a){return _0x43667a['map'](_0xc977c6=>String['fromCharCode'](_0xc977c6))['join']('');}super(_0x19f8b7),this['result']='end',_0x19f8b7[_0x11d07c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x11d07c([0x76,0x69,0x65,0x77])][_0x11d07c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x11d07c([0x61,0x75,0x74,0x6f]),_0x19f8b7[_0x11d07c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x11d07c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x11d07c([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x11d07c([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x11d07c([0x6f,0x6b])});}}class k extends _0x4fedf0{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x5a7213){if(super(_0x5a7213),!this['editor']['config']['get']('revisionHistory'))throw new _0x440845('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0xabafa5=>this['_showRevisionViewer']({..._0xabafa5,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x1d788d=>this['_closeRevisionViewer'](_0x1d788d)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x4576d1=>this['_restoreRevision'](_0x4576d1)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x360037){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x360037;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x1c06bc){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x1c06bc);}['getRevision'](_0x11ec69){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x11ec69);}['getRevisions'](_0x5d4da8){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x5d4da8||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0xf5dd52=this['editor'],_0x54187b=_0x1499fd(_0xf5dd52,p),_0x3e89d2=_0xf5dd52['plugins']['get']('RevisionTracker'),_0x4cb2a9=_0xf5dd52['plugins']['get']('Users')['users'];return _0x54187b['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x54187b['lazyRoots'],(_0x54187b['plugins']['push'](_t,m,R,class extends _0x4fedf0{static get['requires'](){return[m,'Users'];}['init'](){const _0x38835a=this['editor']['plugins']['get']('Users');for(const _0x1e8767 of _0x4cb2a9)_0x1e8767['isAnonymous']||_0x38835a['getUser'](_0x1e8767['id'])||_0x38835a['addUser'](_0x1e8767);const _0xc170b9=_0x3e89d2['repository']['getRevisions']();let _0x5953fc=null;const _0x1129bd=this['editor']['plugins']['get']('RevisionViewer');_0x1129bd['adapter']=_0x3e89d2['adapter'],_0x1129bd['bind']('isEnabled')['to'](_0x3e89d2),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0xf5dd52,'isReadOnly',_0x8fb93b=>!_0x8fb93b);for(const _0x414e43 of _0xc170b9){const _0x2092d0=null===_0x414e43['creator'];if(_0x2092d0&&_0x414e43['toVersion']===_0x414e43['fromVersion'])continue;const _0x51fe77=_0x414e43['toJSON']();_0x1129bd['addRevisionData'](_0x51fe77,(_0x501b2c,_0x3c7e28,_0x1ec39e)=>{if(_0x2092d0){if(_0x5953fc)_0x5953fc['_update'](_0x501b2c,_0x3c7e28);else{if(!_0x3c7e28){const _0xd2f031=_0x1ec39e['toJSON']();_0xd2f031['id']=_0x50688e(),_0x3e89d2['saveRevision'](_0xd2f031,_0x1ec39e['toVersion'])['then'](_0x455821=>{_0x5953fc=_0x455821;});}}}else _0x414e43['_update'](_0x501b2c,_0x3c7e28);});}}},d),_0x54187b);}['_enhanceShowRevisionViewerCallback'](){const _0x2d716b=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x485146=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x3204f6=this['editor']['plugins']['get']('Autosave');await _0x3204f6['save']();}else await _0x485146['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x30ca39=this['editor']['plugins']['get']('Dialog');_0x30ca39['isOpen']&&_0x30ca39['hide']();}const _0x5dbc1f=this['_getRevisionViewerEditorConfig']();return _0x2d716b(_0x5dbc1f)['then'](_0x3bab3f=>{return(this['_viewerEditor']=_0x3bab3f,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'),_0x3bab3f);})['catch'](_0x53a147=>(console['error'](_0x53a147),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x93944a=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'](),_0x93944a(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x35153b=this['editor']['plugins']['get']('Annotations');_0x35153b['refreshVisibility'](),_0x35153b['refreshPositioning']();}})));}['_showRevisionViewer'](_0x46f93d){const _0x1036d7=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x91bd67=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0xbb625a=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0xbb625a,_0x46f93d)['then'](_0x5d356a=>(_0x91bd67['style']['display']='block',_0x1036d7['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x5d356a));}['_closeRevisionViewer'](_0x180173){const _0x1ce205=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x1ce205['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x180173['destroy']();}async['_restoreRevision'](_0x16ce58){const _0xf814a6=this['editor'],_0x3a2c7e=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x5066f3=_0xf814a6['plugins']['get']('RevisionTracker'),_0x421c16=_0xf814a6['plugins']['get']('RevisionHistoryUtils'),_0x3c6aa6=_0x3a2c7e['repository']['getRevision'](_0x16ce58);let _0x23c797,_0x3bd0a5,_0x2b3c28;try{await _0x421c16['loadRevisionData'](_0x3c6aa6,this['adapter']),_0x23c797=_0x421c16['getRevisionDocumentData'](_0x3c6aa6),_0x3bd0a5=_0x421c16['getRevisionRootsAttributes'](_0x3c6aa6);}catch(_0x4828ea){return void console['error'](_0x4828ea);}_0xf814a6['model']['change'](_0x56e483=>{for(const _0x198406 of Array['from'](_0xf814a6['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x56e483['removeMarker'](_0x198406);}),_0x3a2c7e['isReady']=!0x1,_0xf814a6['model']['enqueueChange'](_0x270511=>{_0x270511['setSelection'](null),_0x270511['removeSelectionAttribute'](_0xf814a6['model']['document']['selection']['getAttributeKeys']());const _0x5d8e67=Object['keys'](_0x23c797);for(const _0x33412a of _0xf814a6['model']['document']['roots'])'$graveyard'!=_0x33412a['rootName']&&_0x33412a['isAttached']()&&!_0x5d8e67['includes'](_0x33412a['rootName'])&&_0x270511['detachRoot'](_0x33412a);for(const _0x29d450 of _0x5d8e67){let _0x4d1db9=_0xf814a6['model']['document']['getRoot'](_0x29d450);_0x4d1db9&&_0x4d1db9['isAttached']()||(_0x4d1db9=_0x270511['addRoot'](_0x29d450));const _0x4dc95c=_0x3bd0a5[_0x29d450],_0x32ad46=Object['keys'](_0x4dc95c),_0x3334ef=_0x23c797[_0x29d450];for(const _0x4e538c of _0x4d1db9['getAttributeKeys']())_0x32ad46['includes'](_0x4e538c)||_0x270511['removeAttribute'](_0x4e538c,_0x4d1db9);for(const _0x70b067 of _0x32ad46)_0x270511['setAttribute'](_0x70b067,_0x3bd0a5[_0x29d450][_0x70b067],_0x4d1db9);_0x270511['remove'](_0x270511['createRangeIn'](_0x4d1db9)),_0x270511['insert'](_0xf814a6['data']['parse'](_0x3334ef,_0x4d1db9),_0x4d1db9,0x0);}});const _0x3fb86d=g(_0xf814a6['locale'],'Restored');if(_0x3c6aa6['name'])_0x2b3c28=-0x1==_0x3c6aa6['name']['indexOf'](_0x3fb86d)?_0x3fb86d+':\x20'+_0x3c6aa6['name']:_0x3c6aa6['name'];else _0x2b3c28=_0x3fb86d+':\x20'+(_0x3c6aa6['createdAt']['toLocaleDateString'](_0xf814a6['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x3c6aa6['createdAt']['toLocaleTimeString'](_0xf814a6['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x5066f3['saveRevision']({'name':_0x2b3c28}),_0x3a2c7e['isReady']=!0x0,_0xf814a6['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};
|