@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20250525.0 → 0.0.0-nightly-20250527.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
|
-
_0x39982f(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x519deb){super(),this['id']=_0x519deb['id']||_0x12cc6f(),this['creator']=_0x519deb['creator']||null,this['authors']=_0x519deb['authors']||[],this['diffData']=_0x519deb['diffData']||null,this['toVersion']=_0x519deb['toVersion']||0x0,this['fromVersion']=_0x519deb['fromVersion']||0x0,this['set']('name',_0x519deb['name']||''),this['set']('createdAt',_0x519deb['createdAt']||new Date()),this['set']('attributes',_0x519deb['attributes']||{});}['setName'](_0x4d4db2){this['_update']({'name':_0x4d4db2});}['setAttribute'](_0x1fc7fd,_0x48f285){const _0x433de1=_0x1798f6(this['attributes']);_0x5628e4(_0x433de1,_0x1fc7fd,_0x48f285),this['_update']({'attributes':_0x433de1});}['removeAttribute'](_0x4e0c9b){const _0x50bd02=_0x1798f6(this['attributes']);_0x4c6faf(_0x50bd02,_0x4e0c9b),this['_update']({'attributes':_0x50bd02});}['_update'](_0x5ea003,_0x5608d=!0x1){let _0x464073=!0x1;const _0x3cdb76={'id':this['id']},_0x52241e=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x24cd75 of _0x52241e){const _0xda129=_0x5ea003[_0x24cd75];void 0x0!==_0xda129&&_0xda129!==this[_0x24cd75]&&(this[_0x24cd75]=_0xda129,_0x3cdb76[_0x24cd75]=_0xda129,_0x464073=!0x0);}_0x464073&&(_0x3cdb76['authors']&&(_0x3cdb76['authorsIds']=_0x3cdb76['authors']['map'](_0x3a227e=>_0x3a227e['id']),delete _0x3cdb76['authors']),this['fire']('_update',_0x3cdb76,_0x5608d));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x357fb1=>_0x357fb1['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0xe250eb{['_revisions'];static get['requires'](){return[_0x4bf42f];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x3156f6){super(_0x3156f6),this['_revisions']=new _0x5a3b28();}['afterInit'](){!async function(_0x20a35e){const _0x5d9c32=_0x102d21([0x6f,0x65,0x61,0x68,0x6a,0x56,0x51,0x4f,0x33,0x64,0x49,0x53,0x70,0x31,0x4b,0x75,0x67,0x4a,0x76,0x58,0x6d,0x32,0x44,0x74,0x48,0x4d,0x52,0x42,0x36,0x37,0x43,0x72,0x57,0x30,0x55,0x79,0x45,0x4e,0x7a,0x6e,0x73,0x66,0x41,0x71,0x46,0x5a,0x6b,0x47,0x6c,0x39,0x4c,0x34,0x54,0x77,0x69,0x38,0x78,0x62,0x50,0x35,0x59,0x63]),_0x367620=0xeb829,_0x151682=0x5931985c,_0x37a173=0x5936f084^_0x151682,_0x48630e=window[_0x102d21([0x44,0x61,0x74,0x65])][_0x102d21([0x6e,0x6f,0x77])](),_0x2ed9ab=_0x20a35e[_0x102d21([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x48bdd9=new window[(_0x102d21([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1e28cf=>{_0x2ed9ab[_0x102d21([0x6f,0x6e,0x63,0x65])](_0x102d21([0x72,0x65,0x61,0x64,0x79]),_0x1e28cf);}),_0x299d9f={[_0x102d21([0x6b,0x74,0x79])]:_0x102d21([0x45,0x43]),[_0x102d21([0x75,0x73,0x65])]:_0x102d21([0x73,0x69,0x67]),[_0x102d21([0x63,0x72,0x76])]:_0x102d21([0x50,0x2d,0x32,0x35,0x36]),[_0x102d21([0x78])]:_0x102d21([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]),[_0x102d21([0x79])]:_0x102d21([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]),[_0x102d21([0x61,0x6c,0x67])]:_0x102d21([0x45,0x53,0x32,0x35,0x36])},_0x385a96=_0x2ed9ab[_0x102d21([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x102d21([0x67,0x65,0x74])](_0x102d21([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x36a79f(){let _0x953f43,_0x53016d=null,_0x402a35=null;try{if(_0x385a96==_0x102d21([0x47,0x50,0x4c]))return _0x102d21([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x953f43=_0x2fca70(),!_0x953f43)return _0x102d21([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x953f43[_0x102d21([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x402a35=_0x5e5c5e(_0x953f43[_0x102d21([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x953f43[_0x102d21([0x6a,0x74,0x69])])),await _0x514f3f()?_0x337772()?_0x4f5dfc()?_0x102d21([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x18abab()?(_0x953f43[_0x102d21([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x102d21([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x53016d=_0x91ccaf(_0x102d21([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x953f43[_0x102d21([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x102d21([0x74,0x72,0x69,0x61,0x6c])&&(_0x53016d=_0x91ccaf(_0x102d21([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xf29438()):_0x102d21([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x102d21([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x102d21([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x4111c6){return _0x102d21([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4f5dfc(){const _0x3608ab=[_0x102d21([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x102d21([0x74,0x72,0x69,0x61,0x6c])][_0x102d21([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x953f43[_0x102d21([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x48630e/0x3e8:0xe10*_0x37a173;return _0x953f43[_0x102d21([0x65,0x78,0x70])]<_0x3608ab;}function _0x337772(){const _0xc97e12=_0x953f43[_0x102d21([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0xc97e12)return!0x1;if(_0xc97e12[_0x102d21([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x102d21([0x2a])))return!0x0;if(_0xc97e12[_0x102d21([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x102d21([0x52,0x48])))return!0x0;if(_0xc97e12[_0x102d21([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x102d21([0x52,0x52,0x48]))){if(_0x505a3d())return!0x0;if(_0x5db2e5()||_0x19cba5())return!0x0;}return!0x1;}function _0x18abab(){const _0x38aa0c=_0x953f43[_0x102d21([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x38aa0c||0x0==_0x38aa0c[_0x102d21([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x55e813}=new URL(window[_0x102d21([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x38aa0c[_0x102d21([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x55e813))return!0x0;const _0x157ea7=_0x55e813[_0x102d21([0x73,0x70,0x6c,0x69,0x74])](_0x102d21([0x2e]));return _0x38aa0c[_0x102d21([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x561c74=>_0x561c74[_0x102d21([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x102d21([0x2a])))[_0x102d21([0x6d,0x61,0x70])](_0x2bbc87=>_0x2bbc87[_0x102d21([0x73,0x70,0x6c,0x69,0x74])](_0x102d21([0x2e])))[_0x102d21([0x73,0x6f,0x6d,0x65])](_0x2610e6=>_0x157ea7[_0x102d21([0x65,0x76,0x65,0x72,0x79])]((_0x3e845c,_0x228c09)=>_0x2610e6[_0x228c09]===_0x3e845c||_0x2610e6[_0x228c09]===_0x102d21([0x2a])));}function _0xf29438(){return _0x53016d&&_0x402a35?new window[(_0x102d21([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x52dc5c,_0x37e452)=>{_0x53016d[_0x102d21([0x74,0x68,0x65,0x6e])](_0x52dc5c,_0x37e452),_0x402a35[_0x102d21([0x74,0x68,0x65,0x6e])](_0xcd1691=>{_0xcd1691!=_0x102d21([0x56,0x61,0x6c,0x69,0x64])&&_0x52dc5c(_0xcd1691);},_0x37e452);}):_0x53016d||_0x402a35||_0x102d21([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5e5c5e(_0x2d7288,_0xa45a0f){return new window[(_0x102d21([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1daa41=>{if(_0x128dc7())return _0x1daa41(_0x102d21([0x56,0x61,0x6c,0x69,0x64]));_0x3dfe29(),_0x2ed9ab[_0x102d21([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x102d21([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x59290a=!0x1;const _0x3ed2c5=_0x12cc6f();function _0x926b5a(_0x1c804c){return!!_0x1c804c&&(typeof _0x1c804c===_0x102d21([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1c804c===_0x102d21([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1c804c[_0x102d21([0x74,0x68,0x65,0x6e])]===_0x102d21([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1c804c[_0x102d21([0x63,0x61,0x74,0x63,0x68])]===_0x102d21([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5e4f07(_0x39f287){_0x125c9f(_0x39f287)[_0x102d21([0x74,0x68,0x65,0x6e])](_0x54b927=>{if(!_0x54b927||_0x54b927[_0x102d21([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x102d21([0x6f,0x6b]))return _0x102d21([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3d13c3(_0x1ed60a(_0x3ed2c5+_0xa45a0f))!=_0x54b927[_0x102d21([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x102d21([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x102d21([0x56,0x61,0x6c,0x69,0x64]);})[_0x102d21([0x74,0x68,0x65,0x6e])](_0x383a91=>(_0x45244c(),_0x383a91),()=>{const _0x378488=_0x416f44();return null==_0x378488?(_0x45244c(),_0x102d21([0x56,0x61,0x6c,0x69,0x64])):_0x102d21(_0x48630e-_0x378488>(0x7d3d1c5c^_0x151682)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x102d21([0x74,0x68,0x65,0x6e])](_0x1daa41)[_0x102d21([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1daa41(_0x102d21([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3c1369=0x590776dc^_0x151682;function _0x45244c(){const _0x4c0db9=_0x102d21([0x6c,0x6c,0x63,0x74,0x2d])+_0x3d13c3(_0x1ed60a(_0x2d7288)),_0x360726=_0x42a44c(_0x3d13c3(window[_0x102d21([0x4d,0x61,0x74,0x68])][_0x102d21([0x63,0x65,0x69,0x6c])](_0x48630e/_0x3c1369)));window[_0x102d21([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x102d21([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4c0db9,_0x360726);}function _0x416f44(){const _0x4fbf28=_0x102d21([0x6c,0x6c,0x63,0x74,0x2d])+_0x3d13c3(_0x1ed60a(_0x2d7288)),_0x194e5e=window[_0x102d21([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x102d21([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4fbf28);return _0x194e5e?window[_0x102d21([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x42a44c(_0x194e5e),0x10)*_0x3c1369:null;}function _0x125c9f(_0x301089){return new window[(_0x102d21([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xb4086d,_0x42f5f1)=>{_0x301089[_0x102d21([0x74,0x68,0x65,0x6e])](_0xb4086d,_0x42f5f1),window[_0x102d21([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x42f5f1,0x59304c9c^_0x151682);});}}_0x2ed9ab[_0x102d21([0x6f,0x6e])](_0x102d21([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4432ef,_0x377b96)=>{if(_0x377b96[0x0]!=_0x2d7288)return _0x1daa41(_0x102d21([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x377b96[0x1]={..._0x377b96[0x1],[_0x102d21([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3ed2c5};},{[_0x102d21([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x102d21([0x68,0x69,0x67,0x68])}),_0x2ed9ab[_0x102d21([0x6f,0x6e])](_0x102d21([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x7970e=>{_0x926b5a(_0x7970e[_0x102d21([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x59290a=!0x0,_0x5e4f07(_0x7970e[_0x102d21([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x102d21([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x102d21([0x6c,0x6f,0x77])}),_0x48bdd9[_0x102d21([0x74,0x68,0x65,0x6e])](()=>{_0x59290a||_0x1daa41(_0x102d21([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x128dc7(){return _0x2ed9ab[_0x102d21([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x102d21([0x76,0x69,0x65,0x77])][_0x102d21([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x102d21([0x61,0x75,0x74,0x6f]);}function _0x3dfe29(){_0x2ed9ab[_0x102d21([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x102d21([0x76,0x69,0x65,0x77])][_0x102d21([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x102d21([0x61,0x75,0x74,0x6f]);}}function _0x91ccaf(_0x31a777){const _0x1dbd20=[new window[(_0x102d21([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xe5a2d8=>setTimeout(_0xe5a2d8,0x5938a690^_0x151682)),_0x48bdd9[_0x102d21([0x74,0x68,0x65,0x6e])](()=>new window[(_0x102d21([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xc72fd8=>{const _0x54eab0=0x5931985b^_0x151682,_0x63ccbb=_0x20a35e[_0x102d21([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x4e1e5c(){_0x63ccbb[_0x102d21([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x54eab0&&_0xc72fd8();}_0x4e1e5c(),_0x63ccbb[_0x102d21([0x6f,0x6e])](_0x102d21([0x61,0x64,0x64]),_0x4e1e5c);})),new window[(_0x102d21([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x155aa1=>{function _0x5ca71e(){for(const _0x42d325 in window)if(window[_0x102d21([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x102d21([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x42d325))&&window[_0x42d325]==_0x367620)return _0x155aa1();_0x2ed9ab[_0x102d21([0x73,0x74,0x61,0x74,0x65])]!=_0x102d21([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x102d21([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5ca71e,0x59318bd4^_0x151682);}_0x26bf61(_0x102d21([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x5ca71e();})];return window[_0x102d21([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x102d21([0x72,0x61,0x63,0x65])](_0x1dbd20)[_0x102d21([0x74,0x68,0x65,0x6e])](()=>_0x31a777);}async function _0x537955(){if(await _0x48bdd9,_0x26bf61(_0x102d21([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x5e66bf=_0x20a35e[_0x102d21([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x328b52=_0x20a35e[_0x102d21([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])](_0x5e66bf[_0x102d21([0x69,0x64])]),_0x156c85=_0x28db85(_0x102d21([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x156c85[_0x102d21([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x5e66bf['id'],_0x328b52?_0x328b52['id']:null,!0x0),_0x156c85[_0x102d21([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x102d21([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x156c85[_0x102d21([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x156c85[_0x102d21([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x2b486c,void(_0x156c85[_0x102d21([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x2b486c);}if(_0x26bf61(_0x102d21([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x281755=_0x28db85(_0x102d21([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x281755[_0x102d21([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x102d21([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x281755[_0x102d21([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x281755[_0x102d21([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x2b486c,_0x281755[_0x102d21([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x2b486c;}_0x2ed9ab[_0x102d21([0x6d,0x6f,0x64,0x65,0x6c])][_0x102d21([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2b486c,_0x2ed9ab[_0x102d21([0x6d,0x6f,0x64,0x65,0x6c])][_0x102d21([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2b486c,_0x2ed9ab[_0x102d21([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x102d21([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x505a3d(){return _0x26bf61(_0x102d21([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x28db85(_0x102d21([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x102d21([0x73,0x74,0x61,0x74,0x65])]==_0x102d21([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x5db2e5(){return _0x26bf61(_0x102d21([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 _0x19cba5(){return _0x26bf61(_0x102d21([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x4f74c2(_0x15d15a){const _0x42fdbe=_0x5a8452();_0x2ed9ab[_0x42fdbe]=_0x102d21([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])+_0x15d15a,_0x15d15a[_0x102d21([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x102d21([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x5a8452()]=_0x367620),_0x15d15a!=_0x102d21([0x56,0x61,0x6c,0x69,0x64])&&_0x537955();}function _0x5a8452(){const _0x378377=window[_0x102d21([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x102d21([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x102d21([0x6e,0x6f,0x77])]())[_0x102d21([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x102d21([0x2e]),'');let _0x8dffab=_0x102d21([0x6f]);for(let _0x145477=0x0;_0x145477<_0x378377[_0x102d21([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x145477+=0x2){let _0x1bb7bd=window[_0x102d21([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x378377[_0x102d21([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x145477,_0x145477+0x2));_0x1bb7bd>=_0x5d9c32[_0x102d21([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1bb7bd-=_0x5d9c32[_0x102d21([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x8dffab+=_0x5d9c32[_0x1bb7bd];}return _0x8dffab;}function _0x2fca70(){const _0x548d7b=_0x385a96[_0x102d21([0x73,0x70,0x6c,0x69,0x74])](_0x102d21([0x2e]));if(0x3!=_0x548d7b[_0x102d21([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x25b804(_0x548d7b[0x1]);function _0x25b804(_0x50789f){const _0x5d5262=_0x96a29f(_0x50789f);return _0x5d5262&&_0x3c39a1()?_0x5d5262:null;function _0x3c39a1(){const _0x27a501=_0x5d5262[_0x102d21([0x6a,0x74,0x69])],_0x59819=window[_0x102d21([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x27a501[_0x102d21([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x27a501[_0x102d21([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4ff090={..._0x5d5262,[_0x102d21([0x6a,0x74,0x69])]:_0x27a501[_0x102d21([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x27a501[_0x102d21([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4ff090[_0x102d21([0x76,0x63])],_0x1ed60a(_0x4ff090)==_0x59819;}}}async function _0x514f3f(){let _0x5e15ca=!0x0;try{const _0x55fb20=_0x385a96[_0x102d21([0x73,0x70,0x6c,0x69,0x74])](_0x102d21([0x2e])),[_0x9ea5ed,_0x2ef6b4,_0x12ede9]=_0x55fb20;return _0x230b0c(_0x9ea5ed),await _0x1c82f2(_0x9ea5ed,_0x2ef6b4,_0x12ede9),_0x5e15ca;}catch(_0x35a816){return!0x1;}function _0x230b0c(_0x3ff39c){const _0x53e7ab=_0x96a29f(_0x3ff39c);_0x53e7ab&&_0x53e7ab[_0x102d21([0x61,0x6c,0x67])]==_0x102d21([0x45,0x53,0x32,0x35,0x36])||(_0x5e15ca=!0x1);}async function _0x1c82f2(_0x41191d,_0x2ce48a,_0x327b5c){const _0x20d399=window[_0x102d21([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x102d21([0x66,0x72,0x6f,0x6d])](_0x3495f2(_0x327b5c),_0x4f136b=>_0x4f136b[_0x102d21([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x26d75a=new window[(_0x102d21([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x102d21([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x41191d+_0x102d21([0x2e])+_0x2ce48a),_0x5bd209=window[_0x102d21([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x102d21([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5bd209)return;const _0x39715a=await _0x5bd209[_0x102d21([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x102d21([0x6a,0x77,0x6b]),_0x299d9f,{[_0x102d21([0x6e,0x61,0x6d,0x65])]:_0x102d21([0x45,0x43,0x44,0x53,0x41]),[_0x102d21([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x102d21([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x102d21([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5bd209[_0x102d21([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x102d21([0x6e,0x61,0x6d,0x65])]:_0x102d21([0x45,0x43,0x44,0x53,0x41]),[_0x102d21([0x68,0x61,0x73,0x68])]:{[_0x102d21([0x6e,0x61,0x6d,0x65])]:_0x102d21([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x39715a,_0x20d399,_0x26d75a)||(_0x5e15ca=!0x1);}}function _0x96a29f(_0x3eff2e){return _0x3eff2e[_0x102d21([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x102d21([0x65,0x79]))?JSON[_0x102d21([0x70,0x61,0x72,0x73,0x65])](_0x3495f2(_0x3eff2e)):null;}function _0x3495f2(_0x1d49e0){return window[_0x102d21([0x61,0x74,0x6f,0x62])](_0x1d49e0[_0x102d21([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x102d21([0x2b]))[_0x102d21([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x102d21([0x2f])));}function _0x1ed60a(_0x3ae102){let _0xd98ca2=0x1505;function _0x5bd776(_0x5dfeb9){for(let _0x14e85d=0x0;_0x14e85d<_0x5dfeb9[_0x102d21([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x14e85d++){const _0x15324d=_0x5dfeb9[_0x102d21([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x14e85d);_0xd98ca2=(_0xd98ca2<<0x5)+_0xd98ca2+_0x15324d,_0xd98ca2&=_0xd98ca2;}}function _0x5a9499(_0x53f7c9){Array[_0x102d21([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x53f7c9)?_0x53f7c9[_0x102d21([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5a9499):_0x53f7c9&&typeof _0x53f7c9==_0x102d21([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x102d21([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x53f7c9)[_0x102d21([0x73,0x6f,0x72,0x74])]()[_0x102d21([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x122534,_0x34fc3f])=>{_0x5bd776(_0x122534),_0x5a9499(_0x34fc3f);}):_0x5bd776(window[_0x102d21([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x53f7c9));}return _0x5a9499(_0x3ae102),_0xd98ca2>>>0x0;}function _0x3d13c3(_0x516ff5){return _0x516ff5[_0x102d21([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x102d21([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x102d21([0x30]));}function _0x42a44c(_0x4d81ec){return _0x4d81ec[_0x102d21([0x73,0x70,0x6c,0x69,0x74])]('')[_0x102d21([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x102d21([0x6a,0x6f,0x69,0x6e])]('');}function _0x26bf61(_0xd3032b){return _0x2ed9ab[_0x102d21([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x102d21([0x68,0x61,0x73])](_0xd3032b);}function _0x28db85(_0x18e312){return _0x2ed9ab[_0x102d21([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x102d21([0x67,0x65,0x74])](_0x18e312);}function _0x2b486c(){}function _0x102d21(_0x310340){return _0x310340['map'](_0x4b2126=>String['fromCharCode'](_0x4b2126))['join']('');}_0x4f74c2(await _0x36a79f());}(this);}['createRevision'](_0xaeabd9){const _0x19c818=this['editor']['plugins']['get']('Users');return new h({'id':_0xaeabd9['id'],'name':_0xaeabd9['name'],'creator':_0xaeabd9['creatorId']?_0x19c818['getUser'](_0xaeabd9['creatorId']):null,'diffData':_0xaeabd9['diffData']||_0xaeabd9['data'],'authors':_0xaeabd9['authorsIds']['map'](_0x22534a=>_0x19c818['getUser'](_0x22534a)),'createdAt':new Date(_0xaeabd9['createdAt']),'attributes':_0xaeabd9['attributes'],'fromVersion':_0xaeabd9['fromVersion'],'toVersion':_0xaeabd9['toVersion']});}['addRevision'](_0x3508bc,_0x8ec123=0x0){this['_revisions']['add'](_0x3508bc,_0x8ec123);}['getRevision'](_0x52b898){return this['_revisions']['get'](_0x52b898);}['getRevisions'](_0x2c5a68={'toJSON':!0x1}){const _0x2a3ca7=Array['from'](this['_revisions']);return _0x2a3ca7['reverse'](),_0x2c5a68['toJSON']?_0x2a3ca7['map'](_0x99857f=>_0x99857f['toJSON']()):_0x2a3ca7;}['getIndex'](_0x4cb6ef){return this['_revisions']['getIndex'](_0x4cb6ef);}['getEarlierVisibleRevision'](_0x3e7db6){const [,_0x4faee4]=this['getRevisionsIterator'](_0x3e7db6,{'direction':'earlier'});return _0x4faee4;}['getLaterVisibleRevision'](_0x23cc6b){const [,_0x2a4952]=this['getRevisionsIterator'](_0x23cc6b,{'direction':'later'});return _0x2a4952;}['getRevisionsInDiff'](_0x53a40c){const _0x3c2dd4=[];for(const _0x398877 of this['getRevisionsIterator'](_0x53a40c['newRevisionId']))if(_0x3c2dd4['push'](_0x398877),_0x398877['id']===_0x53a40c['oldRevisionId'])break;return _0x3c2dd4;}*['getRevisionsIterator'](_0x56d4bb,{direction:_0x436a7d='earlier',filter:_0x284048=()=>!0x0}={}){const _0x27654d='earlier'===_0x436a7d?0x1:-0x1;let _0x42f9c0=this['_revisions']['get'](_0x56d4bb),_0x488395=this['getIndex'](_0x42f9c0);for(yield _0x42f9c0;_0x42f9c0;){if(_0x488395+=_0x27654d,_0x42f9c0=this['getRevision'](_0x488395),!_0x42f9c0)return;_0x284048(_0x42f9c0)&&(yield _0x42f9c0);}}}class V extends _0xe250eb{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x35b6ad,'c'],[_0x1e20fe,'a'],[_0x578896,'e'],[_0x1c929e,'r'],[_0x4b5be8,'u']]);['_typeCharToViewClass']=new Map([['c',_0x35b6ad],['a',_0x1e20fe],['e',_0x578896],['r',_0x1c929e],['u',_0x4b5be8]]);async['loadRevisionData'](_0x7446b8,_0x5a9750){if(_0x7446b8['diffData']||!_0x5a9750)return;const _0x3f7a42=this['editor']['config']['get']('collaboration.channelId'),_0x297451=await _0x5a9750['getRevision']({'channelId':_0x3f7a42,'revisionId':_0x7446b8['id']});_0x7446b8['diffData']=_0x297451['diffData'];}['getRevisionDocumentData'](_0x2e2ddb){const _0x40c88c={};for(const _0x4e8c9b in _0x2e2ddb['diffData']){if(_0x2e2ddb['diffData'][_0x4e8c9b]['attachChange']&&!_0x2e2ddb['diffData'][_0x4e8c9b]['attachChange']['isAttached'])continue;const _0x45f2f2=this['_removeRevisionMarkers'](JSON['parse'](_0x2e2ddb['diffData'][_0x4e8c9b]['insertions'])),_0x3877ec=this['editor']['editing']['view']['document'],_0x4bb4d8=new _0x51001e(_0x3877ec,_0x45f2f2['map'](_0x32849e=>this['_getViewFromDiffObj'](_0x32849e,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x40c88c[_0x4e8c9b]=this['editor']['data']['processor']['toData'](_0x4bb4d8),this['editor']['data']['processor']['useFillerType']('default');}return _0x40c88c;}['getRevisionRootsAttributes'](_0x560451){const _0x3ed60e={};for(const _0x5a5226 in _0x560451['diffData'])_0x560451['diffData'][_0x5a5226]['attachChange']&&!_0x560451['diffData'][_0x5a5226]['attachChange']['isAttached']||(_0x3ed60e[_0x5a5226]=_0x560451['diffData'][_0x5a5226]['attributesAfter']||{});return _0x3ed60e;}['_getTypeCharForViewElement'](_0x19cf25){return this['_viewClassToTypeChar']['get'](_0x19cf25['constructor']);}['_getViewFromDiffObj'](_0x1833db,_0x4503c9){const _0x22a79f=this['editor']['editing']['view']['document'];if('string'==typeof _0x1833db)return new _0x43fb8a(_0x22a79f,_0x1833db);{let _0x54ad2a,_0xc15d0e;_0xc15d0e='u'==_0x1833db['type']||'r'==_0x1833db['type']?[]:_0x1833db['children']['map'](_0x382f38=>this['_getViewFromDiffObj'](_0x382f38,_0x4503c9));const _0x342f31=this['_typeCharToViewClass']['get'](_0x1833db['type'])||_0x331a47,_0x11102e=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x54ad2a=new _0x342f31(_0x22a79f,_0x1833db['name'],_0x1833db['attributes'],_0xc15d0e),'u'==_0x1833db['type']&&_0x1833db['children'][0x0]){const _0x5dd0a7=_0x1833db['children'][0x0];if(_0x54ad2a['render']=function(_0x4120be){const _0x292c49=_0x4120be['createElement']('div');return _0x292c49['innerHTML']=_0x5dd0a7,_0x292c49['childNodes'][0x0];},_0x4503c9){const _0x42b897=new _0x51001e(_0x22a79f);_0x42b897['_appendChild'](_0x54ad2a);const _0x2b6309=Array['from'](_0x11102e['viewChildrenToDom'](_0x42b897,{'bind':!0x1})),_0x43bc25=_0x11102e['domDocument']['createElement']('div');_0x43bc25['append'](..._0x2b6309),_0x54ad2a=Array['from'](_0x11102e['domChildrenToView'](_0x43bc25))[0x0];}}else{if('r'==_0x1833db['type']&&_0x1833db['children'][0x0]){const _0x36deff=_0x1833db['children'][0x0];if(_0x54ad2a['render']=function(_0x2bcf2c){_0x2bcf2c['innerHTML']=_0x36deff;},_0x4503c9){const _0x1d39f9=new _0x51001e(_0x22a79f);_0x1d39f9['_appendChild'](_0x54ad2a);const _0x210626=Array['from'](_0x11102e['viewChildrenToDom'](_0x1d39f9,{'bind':!0x1})),_0x46cf25=_0x11102e['domDocument']['createElement']('div');_0x46cf25['append'](..._0x210626);const _0x19e386=Array['from'](_0x11102e['domChildrenToView'](_0x46cf25));_0x19e386['length']>0x1?_0x54ad2a['_appendChild'](_0x19e386):_0x54ad2a=_0x19e386[0x0];}}}if(_0x1833db['customProperties']){for(const [_0x2e9ffe,_0x5ecfad]of _0x1833db['customProperties'])_0x54ad2a['_setCustomProperty'](_0x2e9ffe,_0x5ecfad);}const _0x1d5a4e=void 0x0===_0x1833db['fillerOffset']?null:_0x1833db['fillerOffset'];return null!==_0x1d5a4e&&(_0x54ad2a['getFillerOffset']=()=>_0x1d5a4e),_0x54ad2a;}}['_makeModelFromViewString'](_0x46fdcc){const _0x58e8b8=JSON['parse'](_0x46fdcc),_0x530861=this['editor']['editing']['view']['document'],_0x39cb95=new _0x51001e(_0x530861,_0x58e8b8['map'](_0x4e7c3e=>this['_getViewFromDiffObj'](_0x4e7c3e,!0x0)));return this['editor']['data']['toModel'](_0x39cb95);}['_removeRevisionMarkers'](_0x1156ce){return(_0x1156ce=_0x1156ce['filter'](_0x3e5ddd=>!_0x3e5ddd['name']||'revision-start'!==_0x3e5ddd['name']&&'revision-end'!==_0x3e5ddd['name']))['forEach'](_0x4ca8f1=>{'string'!=typeof _0x4ca8f1&&(_0x4ca8f1['children']=this['_removeRevisionMarkers'](_0x4ca8f1['children']),_0x4ca8f1['attributes']=_0x4ca8f1['attributes']['filter'](_0x139279=>!_0x139279[0x0]['startsWith']('data-revision-')));}),_0x1156ce;}}function g(_0x33f6c1,_0x1b1c16,_0x453f46){const t=_0x33f6c1['t'];switch(_0x1b1c16){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'},_0x453f46);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x453f46);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 _0xe250eb{['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[_0x4bf42f,I,V,_0x47b6e5];}constructor(_0x56d782){super(_0x56d782),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 _0x591558=_0x12cc6f();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x591558},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 _0xc3dfe=this['repository']['getRevision'](0x0),_0x4f535c=_0xc3dfe&&null===_0xc3dfe['creator']?_0xc3dfe:null;if(this['_continueCurrentRevision']=!!_0x4f535c&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x236673=this['_source']['getCurrentRevisionId'](),_0x5ab0fd=this['repository']['getRevision'](_0x236673);if(_0x5ab0fd)this['_startingVersion']=_0x5ab0fd['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x182281=this['_source']['history']['_operations']['find'](_0x5e2873=>!_0x5e2873['_isInit']),_0x1a1d91=_0x182281?_0x182281['baseVersion']:this['_source']['history']['version'];_0xc3dfe?(_0xc3dfe['toVersion']<_0x1a1d91&&_0xc3dfe['_update']({'toVersion':_0x1a1d91}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x4f535c['id'],this['_startingVersion']=_0x4f535c['fromVersion']):(this['_startingVersion']=_0xc3dfe['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x1a1d91,this['_continueCurrentRevision']=!0x1);}}else _0x4f535c&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x4f535c['toVersion'],this['editor']['model']['document']['history']['version']),_0x4f535c['fromVersion']===_0x4f535c['toVersion']?(0x0!==_0x4f535c['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x4f535c['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x4f535c['id'],this['_startingVersion']=_0x4f535c['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',_0x9cb6af=>!_0x9cb6af),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x9079c8=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x39e4ed;for(const _0x15abf7 in _0x9079c8){const _0xe722b3=_0x15abf7,_0x1f6e28=_0x9079c8[_0xe722b3];if('revisionHistoryLicenseKeyValid'==_0x1f6e28||'revisionHistoryLicenseKeyInvalid'==_0x1f6e28||'revisionHistoryLicenseKeyExpired'==_0x1f6e28||'revisionHistoryLicenseKeyDomainLimit'==_0x1f6e28||'revisionHistoryLicenseKeyNotAllowed'==_0x1f6e28||'revisionHistoryLicenseKeyEvaluationLimit'==_0x1f6e28||'revisionHistoryLicenseKeyTrialLimit'==_0x1f6e28||'revisionHistoryLicenseKeyUsageLimit'==_0x1f6e28){delete _0x9079c8[_0xe722b3],_0x39e4ed=_0x1f6e28,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x39e4ed&&_0x9079c8['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x39e4ed&&_0x9079c8['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x39e4ed&&_0x9079c8['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x39e4ed&&_0x9079c8['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x39e4ed&&_0x9079c8['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x39e4ed&&_0x9079c8['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x39e4ed&&_0x9079c8['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x323520=this['repository']['getRevision'](0x0),_0x39a371=await this['getRevisionDocumentData'](_0x323520),_0x25bf49=await this['getRevisionRootsAttributes'](_0x323520);this['_replaceEditorDataWithRevisionData'](_0x39a371,_0x25bf49);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x368fe7){this['_source']=_0x368fe7;}async['update'](){const _0x424e6c=await this['_source']['getLatestVersion']();if(_0x424e6c>this['currentRevision']['toVersion']){await this['_loadState']();const _0x576206=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x424e6c});_0x576206['authors']=_0x576206['authorsIds']['map'](_0x43301b=>this['editor']['plugins']['get']('Users')['getUser'](_0x43301b)),this['currentRevision']['_update'](_0x576206);}}async['saveRevision'](_0x218614={},_0xdcb4dd=null){const _0x3ba897=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0xdcb4dd>this['currentRevision']['toVersion']&&(_0xdcb4dd=null),null===_0xdcb4dd&&(_0xdcb4dd=await this['_source']['getLatestVersion']());const _0x379efc=this['_getFromVersion'](_0xdcb4dd),_0x96c4c3=this['buildRevisionData']({'from':_0x379efc,'to':_0xdcb4dd});if(this['currentRevision']['toVersion']<_0xdcb4dd){const _0x4e11a5=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0xdcb4dd,'to':_0xdcb4dd});_0x4e11a5['authors']=[],_0x4e11a5['authorsIds']=[],_0x4e11a5['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x4e11a5,!0x0),delete _0x4e11a5['authors'],_0x3ba897['push'](_0x4e11a5);}_0x218614['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x218614['name']=_0x218614['name']||null,_0x218614['id']=_0x218614['id']||_0x12cc6f(),_0x218614={..._0x218614,..._0x96c4c3};const _0x548b8c=this['addRevisionData'](_0x218614);_0x3ba897['push'](_0x218614);const _0x13842c=this['repository']['getIndex'](_0x548b8c);if(0x0!==_0x13842c){const _0x443f0d=this['repository']['getRevision'](_0x13842c-0x1);if(_0x443f0d['fromVersion']!==_0xdcb4dd){const _0x3702c2=this['_revisionDataBuilder']['getData'](_0xdcb4dd,_0x443f0d['toVersion']),_0x184c43={'id':_0x443f0d['id'],'diffData':_0x3702c2['diffData'],'authorsIds':_0x3702c2['authorsIds'],'authors':_0x3702c2['authorsIds']['map'](_0x75df4c=>this['editor']['plugins']['get']('Users')['getUser'](_0x75df4c)),'fromVersion':_0xdcb4dd};_0x443f0d===this['currentRevision']&&(_0x184c43['createdAt']=new Date(_0x218614['createdAt']['getTime']()+0xa)),_0x443f0d['_update'](_0x184c43,!0x0),delete _0x184c43['authors'],_0x3ba897['push'](_0x184c43);}}if(this['adapter']){for(const _0x3a26cc of _0x3ba897)this['_bufferUpdate'](_0x3a26cc['id'],_0x3a26cc,!0x0);this['sendBufferedUpdates']();}return _0x548b8c;}['addRevisionData'](_0x2b28b7){const _0x2cc9c3=this['repository']['createRevision'](_0x2b28b7);return this['adapter']&&_0x2cc9c3['on']('_update',(_0x3dff60,_0x8e3a14,_0x24b66b)=>{_0x24b66b||(this['_bufferUpdate'](_0x8e3a14['id'],_0x8e3a14,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x2cc9c3,this['_findInsertionIndex'](_0x2cc9c3)),_0x2cc9c3;}async['getRevisionDocumentData'](_0x2953cf){return await this['_utils']['loadRevisionData'](_0x2953cf,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x2953cf);}async['getRevisionRootsAttributes'](_0x3a3ee6){return await this['_utils']['loadRevisionData'](_0x3a3ee6,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x3a3ee6);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x4b0464=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x54f537=0x0;_0x54f537<_0x4b0464['length'];_0x54f537++){const _0x5bad33=_0x4b0464[_0x54f537];let _0x53f968=!0x1;for(const _0x14ab5f of Object['keys'](_0x5bad33))void 0x0===_0x5bad33[_0x14ab5f]?delete _0x5bad33[_0x14ab5f]:'id'!==_0x14ab5f&&(_0x53f968=!0x0);_0x53f968||(_0x4b0464[_0x54f537]=null);}if(_0x4b0464=_0x4b0464['filter'](_0x4a0f5b=>null!==_0x4a0f5b),!_0x4b0464['length'])return;for(let _0x4c0737=0x0;_0x4c0737<_0x4b0464['length'];_0x4c0737++){const _0x40e6c1=_0x4b0464[_0x4c0737];void 0x0!==_0x40e6c1['fromVersion']&&void 0x0===_0x40e6c1['toVersion']&&(_0x40e6c1['toVersion']=this['repository']['getRevision'](_0x40e6c1['id'])['toVersion']),void 0x0!==_0x40e6c1['toVersion']&&void 0x0===_0x40e6c1['fromVersion']&&(_0x40e6c1['fromVersion']=this['repository']['getRevision'](_0x40e6c1['id'])['fromVersion']);}const _0x33c1af=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x4b0464,_0x33c1af)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x1c3021=>{if(_0x1c3021){for(const _0x1a9085 of _0x1c3021)this['setRevisionData']({'id':_0x1a9085['id'],'createdAt':_0x1a9085['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x1fd399=null,from:_0x5d9c7c=null,to:_0x239cdf=null}){_0x5d9c7c=null!==_0x5d9c7c?_0x5d9c7c:_0x1fd399['fromVersion'],_0x239cdf=null!==_0x239cdf?_0x239cdf:_0x1fd399['toVersion'];const _0x5d75a5=this['_revisionDataBuilder']['getData'](_0x5d9c7c,_0x239cdf),_0x25e07b={'diffData':_0x5d75a5['diffData'],'authorsIds':_0x5d75a5['authorsIds'],'fromVersion':_0x5d9c7c,'toVersion':_0x239cdf};if(!_0x1fd399||_0x239cdf!==_0x1fd399['toVersion']){const _0xb8e077=_0x239cdf-0x1,_0x1f8423=this['_source']['history']['getOperation'](_0xb8e077);_0x25e07b['createdAt']=_0x1f8423&&_0x1f8423['createdAt']||new Date();}if(this['_loadedStateData']&&_0x5d9c7c===this['_loadedStateData']['fromVersion']){for(const _0x48d639 of this['_loadedStateData']['authors'])_0x25e07b['authorsIds']['includes'](_0x48d639['id'])||_0x25e07b['authorsIds']['push'](_0x48d639['id']);}return _0x25e07b;}['_bufferUpdate'](_0x2701ad,_0x5290a4,_0x22863a){if(this['_bufferedUpdates']['has'](_0x2701ad)){const _0x2fe593=this['_bufferedUpdates']['get'](_0x2701ad);_0x5290a4=_0x22863a?{..._0x2fe593,..._0x5290a4}:{..._0x5290a4,..._0x2fe593};}this['_bufferedUpdates']['set'](_0x2701ad,_0x5290a4);}['setRevisionData'](_0x4d3872){const _0xad78cd=this['repository']['getRevision'](_0x4d3872['id']);if(_0x4d3872['createdAt']&&(_0x4d3872['createdAt']=new Date(_0x4d3872['createdAt'])),_0x4d3872['authorsIds']){const _0x330b3f=this['editor']['plugins']['get']('Users');_0x4d3872['authors']=_0x4d3872['authorsIds']['map'](_0x568f33=>_0x330b3f['getUser'](_0x568f33));}_0xad78cd['_update'](_0x4d3872,!0x0);}['_createInitialRevision'](_0x2e6aac){const _0x1b3f45=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x1b3f45)this['_initialRevisionId']=_0x1b3f45['id'];else{const _0x410760=!this['editor']['model']['document']['roots']['find'](_0x53458e=>this['editor']['model']['hasContent'](_0x53458e)),_0x4bb4ab=this['editor']['plugins']['get']('Users')['me']['id'],_0x1cb6eb=g(this['editor']['locale'],_0x410760?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x2e6aac,'to':_0x2e6aac,'id':this['_initialRevisionId'],'name':_0x1cb6eb,'creatorId':_0x4bb4ab});}}['_createCurrentRevision'](_0x409dc7){const _0x386d40=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x386d40),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x409dc7,'to':_0x409dc7,'id':_0x386d40,'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'](_0x49ff19,_0x228b82){let _0x5c3971=this['editor']['config']['get']('initialData'),_0x5f0bd2=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x5c3971){_0x5c3971={};for(const _0x3ea2a2 of this['editor']['model']['document']['getRootNames']())_0x5c3971[_0x3ea2a2]='';}if('string'==typeof _0x5c3971&&(_0x5c3971={'main':_0x5c3971}),void 0x0===_0x5f0bd2){_0x5f0bd2={};for(const _0x4155b3 of this['editor']['model']['document']['getRootNames']())_0x5f0bd2[_0x4155b3]={};}let _0x25d388=!0x1;const _0xd0da3=Object['keys'](_0x5c3971),_0x45b61b=Object['keys'](_0x49ff19);for(const _0xb4cd35 of _0xd0da3){if(_0x5c3971[_0xb4cd35]!==_0x49ff19[_0xb4cd35]&&''!==_0x5c3971[_0xb4cd35]['trim']()){_0x25d388=!0x0;break;}if(!_0xf9ecd0(_0x5f0bd2[_0xb4cd35],_0x228b82[_0xb4cd35])&&Object['keys'](_0x5f0bd2[_0xb4cd35])['length']>0x0){_0x25d388=!0x0;break;}}_0x25d388||(_0x25d388=_0x45b61b['some'](_0x484765=>!this['editor']['model']['document']['getRoot'](_0x484765))),_0x25d388&&_0x501928('editor-initial-data-replaced-with-revision-data',{'editorData':_0x5c3971,'editorRootsAttributes':_0x5f0bd2,'revisionData':_0x49ff19,'revisionRootsAttributes':_0x228b82}),this['editor']['config']['set']('initialData',_0x49ff19),this['editor']['config']['set']('rootsAttributes',_0x228b82);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x51370c=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x51370c['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0xd8b1db){const _0x32e7e9=this['repository']['getRevisions']();_0x32e7e9['reverse']();let _0x283166=0x0;for(;_0x283166<_0x32e7e9['length'];){const _0xf83e0b=_0x32e7e9[_0x283166];if(_0xf83e0b===this['currentRevision']){_0x283166++;continue;}if(_0xf83e0b['id']===this['_initialRevisionId'])break;const _0x148059=_0xd8b1db['toVersion']-_0xf83e0b['toVersion']||_0xd8b1db['fromVersion']-_0xf83e0b['fromVersion'];if(_0x148059>0x0)break;if(_0x148059<0x0)_0x283166++;else{if(!_0xd8b1db['creator']&&_0xf83e0b['creator'])break;if(_0xf83e0b['creator']||!_0xd8b1db['creator']){if(_0xd8b1db['createdAt']>_0xf83e0b['createdAt'])break;_0x283166++;}else _0x283166++;}}return _0x283166;}['_getFromVersion'](_0x473945){const _0x57abed=this['repository']['getRevisions']();_0x57abed['reverse'](),_0x57abed['shift']();const _0x8cb62b=_0x57abed['find'](_0x36767e=>_0x36767e['toVersion']<=_0x473945)['toVersion'];return _0x8cb62b<this['_startingVersion']?this['_startingVersion']:_0x8cb62b;}['_makeRevision']({name:_0x193b94,from:_0x362868,to:_0x532cf7,creatorId:_0x5cf50d,id:_0x518a0b}){const _0x31ceb0=this['buildRevisionData']({'from':_0x362868,'to':_0x532cf7});_0x31ceb0['name']=_0x193b94,_0x31ceb0['creatorId']=_0x5cf50d,_0x31ceb0['id']=_0x518a0b;const _0x49fb10=this['addRevisionData'](_0x31ceb0);return this['adapter']&&this['_bufferUpdate'](_0x31ceb0['id'],_0x31ceb0,!0x0),_0x49fb10;}['_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(_0x5aee8f){this['editor']=_0x5aee8f,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'](_0x314109){this['source']=_0x314109;const _0x43b022=new Map(),_0x28bf27=new Map(),_0x29f9bd=this['editor']['model']['document']['roots']['map'](_0x2ca4cd=>_0x2ca4cd['rootName']);for(const _0x5e83e8 of _0x29f9bd){const _0x12dde7=this['editor']['model']['document']['getRoot'](_0x5e83e8),_0x5d5ddb=N(_0x12dde7);_0x43b022['set'](_0x5e83e8,_0x5d5ddb),_0x28bf27['set'](_0x5e83e8,Object['fromEntries'](_0x12dde7['getAttributes']()));}const _0xb9010a=Array['from'](this['editor']['model']['markers'])['map'](_0x4b4bce=>[_0x4b4bce['name'],_0x4b4bce['getRange']()]),_0x3e6a73=this['source']['version'];this['_saveMetaData'](_0x3e6a73,_0x43b022,_0xb9010a,_0x28bf27),this['_startingRevisionId']=this['_revisionId'];const _0x26f7f7=new Map(),_0x3ede9f=new Map();for(const _0x1b365a of _0x29f9bd){const _0x5b31fe=P(_0x1b365a);_0x26f7f7['set'](_0x1b365a,_0x5b31fe),_0x3ede9f['set'](_0x1b365a,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x26f7f7,[],_0x3ede9f);}['getData'](_0x28f81b,_0x4d91df){if(this['_lastFrom']===_0x28f81b&&this['_lastTo']<=_0x4d91df)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x4d91df,!0x0);else{if(!this['_savedMetaData']['has'](_0x28f81b)){const _0x5c3894=this['_getPreviousFrom'](_0x28f81b);this['_calculateMetaData'](_0x5c3894,_0x28f81b,!0x1);}this['_calculateMetaData'](_0x28f81b,_0x4d91df,!0x0);}return this['_lastFrom']=_0x28f81b,this['_lastTo']=_0x4d91df,this['_getState']();}['loadState'](_0x439bbb){const _0x2d9ddb=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x439bbb['fromVersion'],this['_lastTo']=_0x439bbb['toVersion'];for(const _0x54cb8b in _0x439bbb['diffData']){const _0x34e855=_0x439bbb['diffData'][_0x54cb8b]['attachChange'],_0x28f013=_0x1798f6(_0x439bbb['diffData'][_0x54cb8b]['attributesBefore'])||{},_0x18c8d9=_0x2d9ddb['_makeModelFromViewString'](_0x439bbb['diffData'][_0x54cb8b]['deletions']);_0x18c8d9['rootName']=_0x54cb8b,_0x18c8d9['_isAttached']=!_0x34e855||!_0x34e855['isAttached'],_0x18c8d9['isAttached']=()=>_0x18c8d9['_isAttached'],this['_baseRoots']['set'](_0x54cb8b,_0x18c8d9),this['_baseRootsAttributes']['set'](_0x54cb8b,_0x28f013),_0x34e855&&this['_touchedRoots']['set'](_0x54cb8b,_0x34e855);const _0x1f08fb=this['_makeIdsRoot'](_0x18c8d9);this['_baseIdsRoots']['set'](_0x54cb8b,_0x1f08fb);for(const [_0x246eee,_0x57c243]of _0x18c8d9['markers']){if(!_0x246eee['startsWith']('revision:'))continue;const _0x283af5=_0x246eee['split'](':')[0x2];for(const _0x5a80ff of _0x57c243['getWalker']({'singleCharacters':!0x0})){const _0x596048=this['_getVidAttributeName'](_0x5a80ff),_0x4cb159='elementEnd'==_0x5a80ff['type']?_0x5a80ff['previousPosition']['path']['slice'](0x0,-0x1):_0x5a80ff['previousPosition']['path'],_0x1da3d7=_0x1f08fb['getNodeByPath'](_0x4cb159)['getAttribute'](_0x596048);this['_touched']['set'](_0x1da3d7,{'userId':_0x283af5});}}}this['_startingRevisionId']=this['_revisionId'];const _0xd52329=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x33488c=>!this['_touched']['has'](_0x33488c));let _0x555a27=0x0;const _0x4b3d3c=new Map();for(const _0x1ef5f7 in _0x439bbb['diffData']){const _0x373880=_0x439bbb['diffData'][_0x1ef5f7]['attachChange'],_0x4bfbfd=_0x1798f6(_0x439bbb['diffData'][_0x1ef5f7]['attributesAfter'])||{},_0x2cc77c=_0x2d9ddb['_makeModelFromViewString'](_0x439bbb['diffData'][_0x1ef5f7]['insertions']);_0x2cc77c['rootName']=_0x1ef5f7,_0x2cc77c['_isAttached']=!_0x373880||_0x373880['isAttached'],_0x2cc77c['isAttached']=()=>_0x2cc77c['_isAttached'],this['_diffRoots']['set'](_0x1ef5f7,_0x2cc77c),this['_diffRootsAttributes']['set'](_0x1ef5f7,_0x4bfbfd);const _0x2dd1d0=this['_makeIdsRoot'](_0x2cc77c,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x1ef5f7,_0x2dd1d0),_0x4b3d3c['set'](_0x1ef5f7,_0x2cc77c['isAttached']()?_0x4bfbfd:{});for(const [_0x2286e8,_0x34e583]of _0x2cc77c['markers']){if(!_0x2286e8['startsWith']('revision:'))continue;const _0x1f2b3e=_0x2286e8['split'](':')[0x2];for(const _0x4ec602 of _0x34e583['getWalker']({'singleCharacters':!0x0})){const _0x37d31b=this['_getVidAttributeName'](_0x4ec602),_0x54ec8d=this['_revisionId']++,_0x33a366='elementEnd'==_0x4ec602['type']?_0x4ec602['previousPosition']['path']['slice'](0x0,-0x1):_0x4ec602['previousPosition']['path'];_0x2dd1d0['getNodeByPath'](_0x33a366)['_setAttribute'](_0x37d31b,_0x54ec8d),this['_touched']['set'](_0x54ec8d,{'userId':_0x1f2b3e});}}for(const _0xf17e4b of this['editor']['model']['createRangeIn'](_0x2cc77c)['getWalker']({'singleCharacters':!0x0})){const _0x28108a=this['_getVidAttributeName'](_0xf17e4b),_0x35e44f='elementEnd'==_0xf17e4b['type']?_0xf17e4b['previousPosition']['path']['slice'](0x0,-0x1):_0xf17e4b['previousPosition']['path'],_0x3c1bf9=_0x2dd1d0['getNodeByPath'](_0x35e44f);_0x3c1bf9['getAttribute'](_0x28108a)>0x0||_0x3c1bf9['_setAttribute'](_0x28108a,_0xd52329[_0x555a27++]);}for(const [_0x4b75e8,_0x337bf3]of _0x2cc77c['markers'])_0x4b75e8['startsWith']('revision:')||this['_markers']['set'](_0x4b75e8,_0x337bf3);}const _0x5f3ff0=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0x5f3ff0),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x5f3ff0,0x1));const _0x548c00=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x548c00),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x548c00,0x1));const _0x18bede=Array['from'](this['_diffRoots'])['map'](([_0x3258ee,_0x279320])=>[_0x3258ee,N(_0x279320)]);this['_saveMetaData'](this['_lastTo'],_0x18bede,this['_markers'],_0x4b3d3c);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x6a41f1,_0x28a47a,_0x261b04,_0x261e38){const _0x3f69bd=new Map(_0x28a47a),_0x191b70=new Map(_0x1798f6(_0x261e38)),_0x6b66f7=new Map();for(const [_0x2d653e,_0x4d8c45]of _0x261b04)_0x6b66f7['set'](_0x2d653e,{'start':_0x4d8c45['start']['clone'](),'end':_0x4d8c45['end']['clone'](),'rootName':_0x4d8c45['root']['rootName']});this['_savedMetaData']['set'](_0x6a41f1,{'roots':_0x3f69bd,'markers':_0x6b66f7,'rootsAttributes':_0x191b70});}['_removeMetaData'](_0x6ab88){this['_savedMetaData']['delete'](_0x6ab88);}['_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'](_0x1e3095,_0x1f79aa=null){let _0x10bb41=null;_0x1e3095['is']('documentFragment')||(_0x10bb41=new ut(_0x1e3095['name'],{'vid_start':null===_0x1f79aa?this['_revisionId']++:_0x1f79aa++}));const _0x510713=[];for(const _0x14d3b3 of _0x1e3095['getChildren']())if(_0x14d3b3['is']('element')){_0x510713['push'](this['_makeIdsRoot'](_0x14d3b3,_0x1f79aa));const _0x38b9b4=_0x510713[_0x510713['length']-0x1];null!==_0x1f79aa&&(_0x1f79aa=_0x38b9b4['is']('element','$text')?_0x38b9b4['getAttribute']('vid')+0x1:_0x38b9b4['getAttribute']('vid_end')+0x1);}else{for(let _0x514c31=0x0;_0x514c31<_0x14d3b3['offsetSize'];_0x514c31++)_0x510713['push'](new ut('$text',{'vid':null===_0x1f79aa?this['_revisionId']++:_0x1f79aa++}));}if(_0x1e3095['is']('documentFragment')){const _0x2e9e44=P(_0x1e3095['rootName']);return _0x2e9e44['_insertChild'](0x0,_0x510713),_0x2e9e44;}return _0x10bb41['_setAttribute']('vid_end',null===_0x1f79aa?this['_revisionId']++:_0x1f79aa++),_0x10bb41['_insertChild'](0x0,_0x510713),_0x10bb41;}['_calculateMetaData'](_0x542020,_0x3608da,_0xadc53f){this['_reset']();const {roots:_0x16f418,markers:_0x54cb94,rootsAttributes:_0x4dcb43}=this['_savedMetaData']['get'](_0x542020);this['_baseRoots']=new Map(_0x16f418),this['_baseRootsAttributes']=new Map(_0x1798f6(_0x4dcb43));for(const [_0x20828c,_0x54ae53]of this['_baseRoots'])if('$graveyard'!==_0x20828c&&(this['_diffRoots']['set'](_0x20828c,N(_0x54ae53)),this['_diffRootsAttributes']=new Map(_0x1798f6(_0x4dcb43)),_0xadc53f)){const _0x2063c0=this['_revisionId'];this['_idsRoots']['set'](_0x20828c,this['_makeIdsRoot'](_0x54ae53)),this['_baseIdsRoots']['set'](_0x20828c,this['_makeIdsRoot'](_0x54ae53,_0x2063c0));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0xadc53f&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x5e4135,_0x414b19]of _0x54cb94){const _0x55c686=this['_baseRoots']['get'](_0x414b19['rootName']),_0x5274a2=this['_diffRoots']['get'](_0x414b19['rootName']),_0x1ad9cd=new lt(this['_fixPosition'](_0x414b19['start'],_0x55c686),this['_fixPosition'](_0x414b19['end'],_0x55c686)),_0x444d29=this['_fixRange'](_0x1ad9cd,_0x5274a2);_0x55c686['markers']['set'](_0x5e4135,_0x1ad9cd),this['_markers']['set'](_0x5e4135,_0x444d29);}this['_applyOperations'](_0x542020,_0x3608da,_0xadc53f);}['_applyOperations'](_0x2906ce,_0x1e5cbd,_0x17430b){for(const _0xd40f9a of this['source']['getOperations'](_0x2906ce,_0x1e5cbd))this['_handleOperation'](_0xd40f9a,_0x17430b);for(const _0x3fcde1 of this['_diffRoots']['values']())_0x3fcde1['markers']['clear']();for(const [_0x56dc90,_0x52521a]of this['_markers']){this['_diffRoots']['get'](_0x52521a['root']['rootName'])['markers']['set'](_0x56dc90,_0x52521a['clone']());}const _0x5708d9=new Map(),_0x21a6bd=new Map();for(const [_0x517f3f,_0x1a03b0]of this['_diffRoots'])_0x5708d9['set'](_0x517f3f,N(_0x1a03b0)),_0x21a6bd['set'](_0x517f3f,this['_diffRootsAttributes']['get'](_0x517f3f));this['_saveMetaData'](_0x1e5cbd,_0x5708d9,this['_markers'],_0x21a6bd);}['_getPreviousFrom'](_0x277522){const _0x4e5fb6=Array['from'](this['_savedMetaData']['keys']());_0x4e5fb6['sort']((_0x104697,_0x20aa6f)=>_0x104697-_0x20aa6f),_0x4e5fb6['reverse']();for(const _0x4e4be9 of _0x4e5fb6)if(_0x4e4be9<_0x277522)return _0x4e4be9;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x54d3b8,_0x1ba313){const _0x20fbd9=Array['from'](_0x1ba313['markers'])['map'](([_0x1a628d,_0x55f7b5])=>[_0x1a628d,this['_fixRange'](_0x55f7b5,_0x54d3b8)]);_0x54d3b8['markers']=new Map(_0x20fbd9);}['_transformMarkers'](_0x3f4b8a){for(const _0x3839a9 of this['_markers']['values']()){const _0x33c0da=_0x3839a9['getTransformedByOperation'](_0x3f4b8a),_0x69104a=lt['_createFromRanges'](_0x33c0da);_0x3839a9['start']=_0x69104a['start'],_0x3839a9['end']=_0x69104a['end'];}}['_handleOperation'](_0x118d05,_0x1cd215){if('addRoot'!=_0x118d05['type']&&'detachRoot'!=_0x118d05['type']){if('insert'==_0x118d05['type']){const _0x54f180=_0x118d05['position']['root']['rootName'];this['_diffRoots']['has'](_0x54f180)||(this['_diffRoots']['set'](_0x54f180,P(_0x54f180,!0x0)),this['_diffRootsAttributes']['set'](_0x54f180,{}),_0x1cd215&&this['_idsRoots']['set'](_0x54f180,P(_0x54f180,!0x0)));}else{if('addRootAttribute'==_0x118d05['type']||'removeRootAttribute'==_0x118d05['type']||'changeRootAttribute'==_0x118d05['type'])return void this['_handleRootAttributeOperation'](_0x118d05);'marker'==_0x118d05['type']&&this['_handleMarkerOperation'](_0x118d05);}if('marker'!==_0x118d05['type']){const _0x999cc3=this['_cloneOperation'](_0x118d05,this['_diffRoots']);_0x999cc3['_execute'](),this['_transformMarkers'](_0x999cc3);}if(_0x1cd215)switch(_0x118d05['type']){case'insert':this['_handleInsertOperation'](_0x118d05);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x118d05);break;case'merge':this['_handleMergeOperation'](_0x118d05);break;case'split':this['_handleSplitOperation'](_0x118d05);}}else this['_handleRootOperation'](_0x118d05,_0x1cd215);}['_cloneOperation'](_0x2e5c9c,_0x4eebff){const _0x1e3860=_0x2e5c9c['clone']();return _0x1e3860['_authorId']=_0x2e5c9c['_authorId'],this['_fixOperation'](_0x1e3860,_0x4eebff),_0x1e3860;}['_getBaseVids'](_0x5b141e){return _0x5b141e['map'](_0x3c278b=>{const _0x40e5f4=this['_getVidAttributeName'](_0x3c278b);return Number(_0x3c278b['item']['getAttribute'](_0x40e5f4));});}['_generateTape'](_0x571e89,_0x39d006){if(_0x571e89['is']('element','$text'))_0x39d006['push']({'item':_0x571e89,'type':'text'});else{_0x571e89['is']('element')&&_0x39d006['push']({'item':_0x571e89,'type':'elementStart'});for(const _0xef33e8 of _0x571e89['getChildren']())this['_generateTape'](_0xef33e8,_0x39d006);_0x571e89['is']('element')&&_0x39d006['push']({'item':_0x571e89,'type':'elementEnd'});}return _0x39d006;}['_getState'](){const _0x43bf77=new Map(this['_touched']),_0x586fed=new Map(_0x43bf77),_0x105a48=new Map(),_0x5c98a3={'insertions':{},'deletions':{}},_0x604ff4={'insertions':{},'deletions':{}},_0x298b40=new Map(),_0x53d385=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x53d385['delete']('$graveyard');for(const _0x2f89f7 of _0x53d385){const _0x5c2191=this['_diffRoots']['get'](_0x2f89f7)||P(_0x2f89f7,!0x1),_0x47176c=this['_baseRoots']['get'](_0x2f89f7)||P(_0x2f89f7,!0x1);_0x5c2191['isAttached']()||_0x47176c['isAttached']()?(_0x5c98a3['insertions'][_0x2f89f7]=N(_0x5c2191),_0x5c98a3['deletions'][_0x2f89f7]=N(_0x47176c),this['_copyMarkers'](_0x5c98a3['deletions'][_0x2f89f7],_0x47176c),this['_copyMarkers'](_0x5c98a3['insertions'][_0x2f89f7],_0x5c2191),_0x604ff4['insertions'][_0x2f89f7]=this['_generateTape'](this['_idsRoots']['get'](_0x2f89f7),[]),_0x604ff4['deletions'][_0x2f89f7]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x2f89f7)||P(_0x2f89f7,!0x1),[])):_0x53d385['delete'](_0x2f89f7);}for(const _0x246ae8 of _0x53d385){const _0x330355=_0x604ff4['insertions'][_0x246ae8];for(const _0x39576b of _0x330355){const _0x4bd038=this['_getVidAttributeName'](_0x39576b),_0x53907e=_0x39576b['item']['getAttribute'](_0x4bd038);_0x586fed['delete'](_0x53907e),_0x53907e>=this['_startingRevisionId']&&_0x105a48['set'](_0x53907e,_0x43bf77['get'](_0x53907e));}}for(const _0x154a50 of _0x53d385){const _0x508da9=_0x604ff4['insertions'][_0x154a50],_0x360c88=this['_getBaseVids'](_0x604ff4['deletions'][_0x154a50]);let _0x5a342f=0x0;for(const _0x4ca00c of _0x508da9){const _0x11ad9c=this['_getVidAttributeName'](_0x4ca00c),_0x283fa5=_0x4ca00c['item']['getAttribute'](_0x11ad9c);if(!_0x105a48['has'](_0x283fa5)&&!_0x298b40['has'](_0x283fa5)){if(_0x586fed['has'](_0x283fa5))_0x5a342f++;else{if(_0x283fa5!=_0x360c88[_0x5a342f]){const _0x542f51=_0x43bf77['get'](_0x283fa5)||_0x43bf77['get'](_0x360c88[_0x5a342f]);for(;_0x283fa5!=_0x360c88[_0x5a342f];)_0x586fed['has'](_0x360c88[_0x5a342f])||(_0x298b40['set'](_0x360c88[_0x5a342f],_0x542f51),_0x43bf77['set'](_0x360c88[_0x5a342f],_0x542f51)),_0x5a342f++;}_0x5a342f++;}}}}for(const _0x19341c of _0x53d385){const _0x27825d=_0x604ff4['insertions'][_0x19341c];for(const _0x4d69e3 of _0x27825d){const _0xef5bbb=this['_getVidAttributeName'](_0x4d69e3),_0x121de5=_0x4d69e3['item']['getAttribute'](_0xef5bbb);if(_0x298b40['has'](_0x121de5)){const _0xde9433=_0x298b40['get'](_0x121de5);_0x586fed['has'](_0x121de5)||_0x586fed['set'](_0x121de5,{..._0xde9433}),_0x105a48['set'](_0x121de5,{..._0xde9433});}}}for(const _0x3515d5 of _0x586fed['keys']())_0x3515d5>=this['_startingRevisionId']&&_0x586fed['delete'](_0x3515d5);const _0x58ee5e=new Map();for(const _0x2828c2 of _0x53d385){let _0x5a028e=_0x604ff4['insertions'][_0x2828c2];for(const _0x184756 of _0x5a028e)if(_0x184756['item']['is']('element','tableCell')){const _0x5d35a4=this['_getVidAttributeName'](_0x184756),_0x544b64=_0x184756['item']['getAttribute'](_0x5d35a4);if(_0x105a48['has'](_0x544b64)){const _0x53d750=_0x184756['item']['parent']['parent']['getAttribute']('vid_start'),_0xb899f8=_0x58ee5e['get'](_0x53d750)||new Set();_0xb899f8['add'](_0x105a48['get'](_0x544b64)['userId']),_0x58ee5e['set'](_0x53d750,_0xb899f8);}}_0x5a028e=_0x604ff4['deletions'][_0x2828c2];for(const _0x21ec45 of _0x5a028e)if(_0x21ec45['item']['is']('element','tableCell')){const _0x524fad=this['_getVidAttributeName'](_0x21ec45),_0x11bc82=_0x21ec45['item']['getAttribute'](_0x524fad);if(_0x586fed['has'](_0x11bc82)){const _0x5e0a6f=_0x21ec45['item']['parent']['parent']['getAttribute']('vid_start'),_0xa15d82=_0x58ee5e['get'](_0x5e0a6f)||new Set();_0xa15d82['add'](_0x586fed['get'](_0x11bc82)['userId']),_0x58ee5e['set'](_0x5e0a6f,_0xa15d82);}}for(const _0x2791d5 of _0x58ee5e['keys']())(_0x105a48['has'](_0x2791d5)||_0x586fed['has'](_0x2791d5))&&_0x58ee5e['delete'](_0x2791d5);}for(const _0x1133c2 of _0x53d385){const _0x4d18ce=_0x604ff4['insertions'][_0x1133c2];let _0x5972e5=null,_0x4d0bac=null;for(const _0x4a4154 of _0x4d18ce){const _0x2bec77=this['_getVidAttributeName'](_0x4a4154),_0x4c6d65=_0x4a4154['item']['getAttribute'](_0x2bec77),_0x446d2c=_0x58ee5e['get'](_0x4c6d65);_0x446d2c&&'elementStart'==_0x4a4154['type']&&(_0x5972e5=Array['from'](_0x446d2c)[0x0],_0x4d0bac=_0x4a4154['item']['getAttribute']('vid_end')),_0x5972e5&&(_0x586fed['set'](_0x4c6d65,{'userId':_0x5972e5}),_0x105a48['set'](_0x4c6d65,{'userId':_0x5972e5})),_0x4c6d65==_0x4d0bac&&(_0x5972e5=null,_0x4d0bac=null);}}const _0x2d163e={},_0x268499=new Set();for(const _0x1b05ce of _0x53d385){const _0x28d633=_0x5c98a3['deletions'][_0x1b05ce],_0x1000c7=_0x5c98a3['insertions'][_0x1b05ce];for(const {userId:_0x52f770}of this['_touchedMarkers']['values']())null!==_0x52f770&&_0x268499['add'](_0x52f770);for(const {userId:_0x5d0b0b}of this['_touchedRoots']['values']())null!==_0x5d0b0b&&_0x268499['add'](_0x5d0b0b);this['_markChanges'](_0x1000c7,_0x604ff4['insertions'][_0x1b05ce],_0x105a48,'insertion',_0x268499),this['_markChanges'](_0x28d633,_0x604ff4['deletions'][_0x1b05ce],_0x586fed,'deletion',_0x268499),_0x2d163e[_0x1b05ce]={'insertions':this['_prepareViewToSave'](_0x1000c7),'deletions':this['_prepareViewToSave'](_0x28d633),'attachChange':this['_touchedRoots']['get'](_0x1b05ce)||null,'attributesBefore':_0x1798f6(this['_baseRootsAttributes']['get'](_0x1b05ce))||{},'attributesAfter':_0x1798f6(this['_diffRootsAttributes']['get'](_0x1b05ce))};}return{'diffData':_0x2d163e,'authorsIds':Array['from'](_0x268499)};}['_processRootBeforeSave'](_0x2d17e7){for(const [,_0x4e03a5]of _0x2d17e7['markers']){const _0x3a3ed4=_0x4e03a5['start']['getAncestors']()['filter'](_0x36739a=>'tableCell'==_0x36739a['name']);for(const _0x16bc10 of _0x3a3ed4)0x1==_0x16bc10['childCount']&&_0x16bc10['getChild'](0x0)['is']('element','paragraph')&&_0x16bc10['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x177570){this['_processRootBeforeSave'](_0x177570);const _0x1db06d=this['editor']['data']['toView'](_0x177570,{}),_0x5de382=Array['from'](_0x1db06d['getChildren']())['map'](_0x59d189=>this['_getViewJson'](_0x59d189));return JSON['stringify'](_0x5de382);}['_getViewJson'](_0x2bfc62){if(_0x2bfc62['is']('$text'))return _0x2bfc62['data'];{const _0x3c308a=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x4314d4=_0x2bfc62,_0x98b9f6=this['editor']['data']['htmlProcessor']['domConverter'],_0x3b7cb5={'type':_0x3c308a['_getTypeCharForViewElement'](_0x4314d4),'name':_0x4314d4['name'],'attributes':Array['from'](_0x4314d4['getAttributes']()),'children':Array['from'](_0x4314d4['getChildren']())['map'](_0x18b61c=>this['_getViewJson'](_0x18b61c))};if(_0x2bfc62['is']('uiElement')&&'$comment'!=_0x2bfc62['name']){const _0x570a25=_0x2bfc62['render'](_0x98b9f6['domDocument'],_0x98b9f6);_0x3b7cb5['children']['push'](_0x570a25['outerHTML']);}else{if(_0x2bfc62['is']('rawElement')){const _0x15718d=_0x98b9f6['domDocument']['createElement'](_0x4314d4['name']);_0x2bfc62['render'](_0x15718d,_0x98b9f6),_0x3b7cb5['children']['push'](_0x15718d['innerHTML']);}}const _0x333cac=Array['from'](_0x4314d4['getCustomProperties']());_0x333cac['length']>0x0&&(_0x3b7cb5['customProperties']=_0x333cac);const _0x540fdf=_0x4314d4['getFillerOffset']();return null!==_0x540fdf&&(_0x3b7cb5['fillerOffset']=_0x540fdf),_0x3b7cb5;}}['_markChanges'](_0xc615f0,_0x5b8afb,_0x31e471,_0x12f949,_0x208ef0){let _0x14e17c=null,_0x5aed28=null,_0x568fcf=0x0;const _0x37a690=this['editor']['model'];for(let _0x4d5ed2=0x0;_0x4d5ed2<_0x5b8afb['length'];_0x4d5ed2++){const _0x4970ae=this['_getVidAttributeName'](_0x5b8afb[_0x4d5ed2]),_0x1569c7=_0x5b8afb[_0x4d5ed2]['item']['getAttribute'](_0x4970ae),_0x3f42d9=_0x31e471['get'](_0x1569c7),_0x233d37=_0x4d5ed2==_0x5b8afb['length']-0x1;(!_0x14e17c&&_0x3f42d9&&(_0x14e17c=_0x3f42d9,_0x5aed28=_0x5b8afb[_0x4d5ed2]),_0x14e17c&&(!_0x3f42d9||_0x3f42d9['userId']!=_0x14e17c['userId']))&&(_0x34cef8(_0x3f42d9,F(_0x5aed28,_0xc615f0,_0x37a690),F(_0x5b8afb[_0x4d5ed2],_0xc615f0,_0x37a690)),_0x14e17c=_0x3f42d9||null,_0x5aed28=_0x3f42d9?_0x5b8afb[_0x4d5ed2]:null),_0x14e17c&&_0x233d37&&_0x34cef8(_0x3f42d9,F(_0x5aed28,_0xc615f0,_0x37a690),B(_0x5b8afb[_0x4d5ed2],_0xc615f0,_0x37a690));}function _0x34cef8(_0x3c610d,_0x51c462,_0x422e83){const _0x2e615b=_0x14e17c['userId'],_0x5a330c='revision:'+_0x12f949+':'+_0x2e615b+':'+_0x568fcf++,_0x55fa5d=_0x37a690['createRange'](_0x51c462,_0x422e83);_0xc615f0['markers']['set'](_0x5a330c,_0x55fa5d),null!==_0x2e615b&&_0x208ef0['add'](_0x2e615b);}}['_getVidAttributeName'](_0x42a099){switch(_0x42a099['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x2ca2a2,_0x14d571){_0x2ca2a2['baseVersion']=null;for(const _0x292c90 in _0x2ca2a2){const _0x14e79e=_0x2ca2a2[_0x292c90];if(_0x14e79e instanceof ft){const _0x28bc4a=_0x14d571['get'](_0x14e79e['root']['rootName']);_0x2ca2a2[_0x292c90]=this['_fixPosition'](_0x14e79e,_0x28bc4a);}if(_0x14e79e instanceof lt){const _0x4182e0=_0x14d571['get'](_0x14e79e['root']['rootName']);_0x2ca2a2[_0x292c90]=this['_fixRange'](_0x14e79e,_0x4182e0);}'root'===_0x292c90&&(_0x2ca2a2['root']=_0x14d571['get'](_0x2ca2a2['root']['rootName']));}}['_fixRange'](_0x15e3b9,_0x4be5ea){return this['editor']['model']['createRange'](this['_fixPosition'](_0x15e3b9['start'],_0x4be5ea),this['_fixPosition'](_0x15e3b9['end'],_0x4be5ea));}['_fixPosition'](_0x118511,_0x29872c){return this['editor']['model']['createPositionFromPath'](_0x29872c,_0x118511['path'],_0x118511['stickiness']);}['_handleInsertOperation'](_0x363d5d){const _0x4897f4=this['_idsRoots']['get'](_0x363d5d['position']['root']['rootName']),_0x5a6696=this['_fixPosition'](_0x363d5d['position'],_0x4897f4),_0x2d395b=null===_0x363d5d['_authorId']?null:_0x363d5d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3ee069=_0x5a6696['parent'],_0x32b536=this['_revisionId'],_0x59b38a=[];for(const _0x552329 of _0x363d5d['nodes'])if(_0x552329['is']('element'))_0x59b38a['push'](this['_makeIdsRoot'](_0x552329));else{for(let _0x11d5f5=0x0;_0x11d5f5<_0x552329['offsetSize'];_0x11d5f5++)_0x59b38a['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x2fa403=this['_revisionId'];for(let _0x47c8d9=_0x32b536;_0x47c8d9<_0x2fa403;_0x47c8d9++)this['_touched']['set'](_0x47c8d9,{'userId':_0x2d395b});_0x3ee069['_insertChild'](_0x5a6696['offset'],_0x59b38a);}['_handleMoveOperation'](_0x2dbe9f){(_0x2dbe9f=this['_cloneOperation'](_0x2dbe9f,this['_idsRoots']))['_execute']();const _0x1bdb19=null===_0x2dbe9f['_authorId']?null:_0x2dbe9f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x206685=_0x2dbe9f['getMovedRangeStart'](),_0x107c60=_0x206685['parent'],_0x4e5654=_0x206685['offset'];!function _0x20c461(_0x1d9652,_0x57dd99,_0x41d39c,_0x56de40){for(let _0x28b314=_0x41d39c;_0x28b314<_0x56de40;_0x28b314++){const _0xcf49ec=_0x57dd99['getChild'](_0x28b314);_0xcf49ec['is']('element','$text')?_0x1d9652['set'](_0xcf49ec['getAttribute']('vid'),{'userId':_0x1bdb19}):(_0x1d9652['set'](_0xcf49ec['getAttribute']('vid_start'),{'userId':_0x1bdb19}),_0x20c461(_0x1d9652,_0xcf49ec,0x0,_0xcf49ec['childCount']),_0x1d9652['set'](_0xcf49ec['getAttribute']('vid_end'),{'userId':_0x1bdb19}));}}(this['_touched'],_0x107c60,_0x4e5654,_0x4e5654+_0x2dbe9f['howMany']);}['_handleMergeOperation'](_0x8ed1b9){const _0x348652=null===(_0x8ed1b9=this['_cloneOperation'](_0x8ed1b9,this['_idsRoots']))['_authorId']?null:_0x8ed1b9['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x15601b=_0x8ed1b9['targetPosition']['parent'],_0x51afce=_0x8ed1b9['sourcePosition']['parent'],_0x16308b=_0x15601b['getAttribute']('vid_end'),_0x2f971a=_0x51afce['getAttribute']('vid_start');_0x15601b['_setAttribute']('vid_end',_0x51afce['getAttribute']('vid_end')),_0x51afce['_setAttribute']('vid_end',_0x16308b),this['_touched']['set'](_0x2f971a,{'userId':_0x348652}),this['_touched']['set'](_0x16308b,{'userId':_0x348652}),_0x8ed1b9['_execute']();}['_handleSplitOperation'](_0x33c695){const _0x4147ea=null===(_0x33c695=this['_cloneOperation'](_0x33c695,this['_idsRoots']))['_authorId']?null:_0x33c695['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x39fed6=_0x33c695['graveyardPosition'],_0x3a351b=_0x33c695['splitPosition']['parent'];_0x33c695['_execute']();const _0x536695=_0x3a351b['getAttribute']('vid_end'),_0x329d69=_0x33c695['insertionPosition']['nodeAfter'];if(_0x39fed6){const _0xa88e8f=_0x329d69['getAttribute']('vid_end'),_0x4b2c79=_0x3a351b['getAttribute']('vid_end');_0x3a351b['_setAttribute']('vid_end',_0xa88e8f),_0x329d69['_setAttribute']('vid_end',_0x4b2c79),this['_touched']['set'](_0x3a351b['getAttribute']('vid_end'),{'userId':_0x4147ea}),this['_touched']['set'](_0x329d69['getAttribute']('vid_start'),{'userId':_0x4147ea});}else{const _0x5abab3=this['_revisionId']++,_0x13e161=this['_revisionId']++;_0x3a351b['_setAttribute']('vid_end',_0x5abab3),_0x329d69['_setAttribute']('vid_start',_0x13e161),_0x329d69['_setAttribute']('vid_end',_0x536695),this['_touched']['set'](_0x5abab3,{'userId':_0x4147ea}),this['_touched']['set'](_0x13e161,{'userId':_0x4147ea});}}['_handleMarkerOperation'](_0x172501){if(!_0x172501['affectsData'])return;const _0x22c48c=(_0x172501=this['_cloneOperation'](_0x172501,this['_diffRoots']))['oldRange']?_0x172501['oldRange']['root']:null,_0x4adfad=_0x172501['newRange']?_0x172501['newRange']['root']:null;_0x22c48c&&this['_markers']['delete'](_0x172501['name']),_0x4adfad&&this['_markers']['set'](_0x172501['name'],_0x172501['newRange']['clone']());const _0x28f994=null===_0x172501['_authorId']?null:_0x172501['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4d471f=_0x172501['name'];if(!this['_touchedMarkers']['has'](_0x4d471f))return void this['_touchedMarkers']['set'](_0x4d471f,{'range':_0x172501['oldRange'],'userId':_0x28f994});const _0x24af3c=this['_touchedMarkers']['get'](_0x4d471f),_0x4d13c1=_0x24af3c['range'],_0x36cf85=_0x172501['newRange'];null==_0x4d13c1&&null==_0x36cf85||_0x4d13c1&&_0x36cf85&&_0x4d13c1['isEqual'](_0x36cf85)?this['_touchedMarkers']['delete'](_0x172501['name']):_0x24af3c['userId']=_0x28f994;}['_handleRootOperation'](_0x18b7fe,_0xe515ba){this['_diffRoots']['has'](_0x18b7fe['rootName'])?this['_diffRoots']['get'](_0x18b7fe['rootName'])['_isAttached']=_0x18b7fe['isAdd']:(this['_diffRoots']['set'](_0x18b7fe['rootName'],P(_0x18b7fe['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x18b7fe['rootName'],{}),_0xe515ba&&this['_idsRoots']['set'](_0x18b7fe['rootName'],P(_0x18b7fe['rootName'],!0x0)));const _0x1e3825=null===_0x18b7fe['_authorId']?null:_0x18b7fe['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x40d397=this['_touchedRoots']['get'](_0x18b7fe['rootName']);_0x40d397&&_0x40d397['userId']===_0x1e3825?this['_touchedRoots']['delete'](_0x18b7fe['rootName']):this['_touchedRoots']['set'](_0x18b7fe['rootName'],{'userId':_0x1e3825,'isAttached':_0x18b7fe['isAdd']});}['_handleRootAttributeOperation'](_0xc2c9e7){const _0x5761e1=this['_diffRootsAttributes']['get'](_0xc2c9e7['root']['rootName']);null===_0xc2c9e7['newValue']?delete _0x5761e1[_0xc2c9e7['key']]:_0x5761e1[_0xc2c9e7['key']]=_0xc2c9e7['newValue'];}}function N(_0x44c6d2){const _0x481bd5=P(_0x44c6d2['rootName'],_0x44c6d2['isAttached']());for(const _0x2251ea of _0x44c6d2['getChildren']()){const _0xca101b=_0x2251ea['_clone'](!0x0);_0x481bd5['_appendChild'](_0xca101b);}return _0x481bd5;}function P(_0x39a8ce,_0x32fa2c=!0x0){const _0x4ef76c=new vt();return _0x4ef76c['rootName']=_0x39a8ce,_0x4ef76c['_isAttached']=_0x32fa2c,_0x4ef76c['isAttached']=()=>_0x4ef76c['_isAttached'],_0x4ef76c;}function F(_0xc284e6,_0x1e5297,_0x48b276){const _0x1cdb57='elementEnd'==_0xc284e6['type']?_0x48b276['createPositionAt'](_0xc284e6['item'],'end'):_0x48b276['createPositionBefore'](_0xc284e6['item']);return _0x48b276['createPositionFromPath'](_0x1e5297,_0x1cdb57['path'],_0x1cdb57['stickiness']);}function B(_0x157305,_0x22ae04,_0x43034e){const _0x573075='elementStart'==_0x157305['type']?_0x43034e['createPositionAt'](_0x157305['item'],0x0):_0x43034e['createPositionAfter'](_0x157305['item']);return _0x43034e['createPositionFromPath'](_0x22ae04,_0x573075['path'],_0x573075['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x94d383,_0x1ef643){super(_0x94d383),this['focusTracker']=new _0x166ce3(),this['keystrokes']=new _0x153ab6(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x1ef643),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x4775bf(this);}['render'](){super['render'](),_0x3c9f52({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x5d7668=_0x425dbc=>_0x425dbc['stopPropagation']();this['keystrokes']['set']('arrowright',_0x5d7668),this['keystrokes']['set']('arrowleft',_0x5d7668),this['keystrokes']['set']('arrowup',_0x5d7668),this['keystrokes']['set']('arrowdown',_0x5d7668);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x3c34b5){this['revisionNameInputView']['fieldView']['element']['value']=_0x3c34b5['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x5dbf7b){const _0x33b957=new _0xc3e9c9(this['locale'],_0x27d9e4),_0x251086=_0x33b957['fieldView'];_0x251086['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x557d63=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x5dbf7b&&(_0x557d63+='\x20('+g(this['locale'],'optional')+')'),(_0x33b957['label']=_0x557d63,_0x251086['on']('input',()=>{this['revisionNameInputValue']=_0x251086['element']['value']['trim']();}),_0x33b957);}}class f extends _0xe250eb{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x2da000=this['editor'],_0x58b0d3=_0x2da000['plugins']['get']('RevisionTracker');_0x2da000['ui']['componentFactory']['add']('revisionHistory',_0x425f49=>{const _0x231ccd=_0x1e3b6e(_0x425f49),_0x10bb8b=_0x231ccd['panelView']['children'],_0x17308b=new _0x11702e(_0x425f49),_0x828b5d=new _0x448b5a(_0x425f49),_0x35a2be=new te(_0x425f49),_0x601fff=new _0x448b5a(_0x425f49),_0x5d5286=new te(_0x425f49);return _0x231ccd['bind']('isEnabled')['to'](_0x58b0d3,'isReady',_0x58b0d3,'isEnabled',_0x2da000,'isReadOnly',(_0x5c15b2,_0x191cdc,_0x596568)=>_0x5c15b2&&_0x191cdc&&!_0x596568),_0x231ccd['buttonView']['set']({'icon':_0x4a7a20,'label':g(_0x425f49,'Revision\x20history'),'tooltip':!0x0}),_0x35a2be['set']({'label':g(_0x425f49,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x35a2be['bind']('isEnabled')['to'](_0x58b0d3,'isReady',_0x58b0d3,'isEnabled',_0x2da000,'isReadOnly',(_0x23c8c4,_0x7d9991,_0x1119d6)=>_0x23c8c4&&_0x7d9991&&!_0x1119d6),_0x35a2be['on']('execute',()=>this['_showDialog']()),_0x5d5286['set']({'label':g(_0x425f49,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x5d5286['bind']('isEnabled')['to'](_0x58b0d3,'isReady',_0x2da000,'isReadOnly',(_0x29d1f7,_0x26e914)=>_0x29d1f7&&!_0x26e914),_0x5d5286['on']('execute',()=>{_0x2da000['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x231ccd['isOpen']=!0x1,_0x2da000['editing']['view']['focus']();}),_0x828b5d['children']['add'](_0x35a2be),_0x601fff['children']['add'](_0x5d5286),_0x17308b['role']='menu',_0x17308b['items']['addMany']([_0x828b5d,_0x601fff]),_0x10bb8b['add'](_0x17308b),_0x231ccd;}),_0x2da000['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x3deea0=this['editor'],_0x537a7c=_0x3deea0['locale'],_0x51333d=new _0x232f0e(_0x537a7c),_0x48cc40=new _0x38da37(_0x537a7c);_0x51333d['buttonView']['set']({'icon':_0x4a7a20,'label':g(_0x537a7c,'Revision\x20history')});const _0x438597=new _0x4bab68(_0x537a7c,_0x51333d),_0x114906=new _0x1ccbbb(_0x537a7c);_0x114906['set']({'label':g(_0x537a7c,'Save\x20current\x20revision')}),_0x114906['delegate']('execute')['to'](_0x51333d),_0x114906['on']('execute',()=>{this['_showDialog']();}),_0x438597['children']['add'](_0x114906),_0x48cc40['items']['add'](_0x438597);const _0x423ddb=new _0x4bab68(_0x537a7c,_0x51333d),_0x515184=new _0x1ccbbb(_0x537a7c);return _0x515184['set']({'label':g(_0x537a7c,'Open\x20revision\x20history')}),_0x515184['delegate']('execute')['to'](_0x51333d),_0x515184['on']('execute',()=>{_0x3deea0['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x423ddb['children']['add'](_0x515184),_0x48cc40['items']['add'](_0x423ddb),_0x51333d['panelView']['children']['add'](_0x48cc40),_0x51333d;}['_showDialog'](){const _0x5735cb=this['editor'],_0x16b325=_0x5735cb['locale'],_0x44f443=_0x5735cb['plugins']['get']('Dialog'),_0x367c32=_0x5735cb['plugins']['get']('RevisionTracker');function _0x439e0e(_0x4a12f7){_0x5735cb['config']['get']('revisionHistory.requireRevisionName')&&''===_0x4a12f7['revisionName']?_0x4a12f7['revisionNameInputView']['errorText']=g(_0x16b325,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x5735cb['plugins']['get'](u)['saveRevision']({'name':_0x4a12f7['revisionName']}),_0x44f443['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x439e0e(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x44f443['show']({'id':'revisionSave','title':g(_0x16b325,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x5735cb['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x44f443['hide']()},{'label':g(_0x5735cb['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x49b2d1){_0x49b2d1['bind']('isEnabled')['to'](_0x367c32,'isReady',_0x367c32,'isEnabled',_0x5735cb,'isReadOnly',(_0x5e4c29,_0x5ef543,_0x2be5a2)=>_0x5e4c29&&_0x5ef543&&!_0x2be5a2);},'onExecute':()=>_0x439e0e(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x187be3=this['editor'],_0x2c566f=_0x187be3['locale'];this['_saveRevisionFormView']=new hs(_0x2c566f,_0x187be3['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends ts{['changeId'];['_model'];constructor(_0x241f9f,_0x224b8e){super(_0x241f9f),this['_model']=_0x224b8e,this['changeId']=_0x224b8e['id'];const _0x351317=this['bindTemplate'],_0x3e035e=g(_0x241f9f,_0x224b8e['data']['isSuggestion']?'Suggested\x20by':'add'==_0x224b8e['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x224b8e['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x351317['to']('type',_0x34870d=>'ck-revision-change__'+_0x34870d)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x3e035e}]},{'text':'\x20'+_0x224b8e['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x39982f(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x5cb740){super(),this['id']=_0x5cb740['id']||_0x12cc6f(),this['author']=_0x5cb740['author'],this['type']=_0x5cb740['type'],this['data']=_0x5cb740['data']||{},this['rootName']=_0x5cb740['rootName'],this['set']('createdAt',_0x5cb740['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(_0x36eca4,_0x3df0b8){this['newRevisionId']=_0x36eca4,this['oldRevisionId']=_0x3df0b8,this['changes']=new _0x5a3b28();}['_setChanges'](_0x59541e){for(const _0x51c77f of _0x59541e)this['changes']['add'](_0x51c77f);}}class m extends _0xe250eb{['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[_0x4bf42f,_0x22739a,I,V];}constructor(_0x4f9012){super(_0x4f9012),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',(_0x6d819f,_0x415a52,_0x54919c)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x5725c7=>{for(const _0x26a249 of this['editor']['editing']['view']['document']['roots'])_0x54919c?_0x5725c7['removeClass']('ck-editor__editable__overlay',_0x26a249):_0x5725c7['addClass']('ck-editor__editable__overlay',_0x26a249);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x37db7f=>null!==_0x37db7f),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x25a9a4,_0x21c75a,_0x587932)=>_0x25a9a4&&_0x587932?_0x21c75a['changes']['getIndex'](_0x587932):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0xa5fd80,_0x216605)=>_0xa5fd80?_0x216605['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x22739a);}['init'](){const _0x21e5eb=this['editor'],_0xc3bf10=new wt(_0x21e5eb,{'direction':'backward'}),_0x222faa=new wt(_0x21e5eb,{'direction':'forward'});(_0x21e5eb['commands']['add']('showPreviousChange',_0xc3bf10),_0x21e5eb['commands']['add']('showNextChange',_0x222faa),_0x21e5eb['commands']['add']('restoreRevision',new mt(_0x21e5eb)),this['on']('change:numberOfChanges',()=>{_0xc3bf10['refresh'](),_0x222faa['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x21e5eb['enableReadOnlyMode']('revision-viewer'),_0x21e5eb['plugins']['has']('WidgetToolbarRepository'))&&_0x21e5eb['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x481a1d){return await this['_utils']['loadRevisionData'](_0x481a1d,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x481a1d);}async['getRevisionRootsAttributes'](_0x17a2b3){return await this['_utils']['loadRevisionData'](_0x17a2b3,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x17a2b3);}async['compare'](_0x47be0c,_0xc9686d,_0x42baf3=!0x1){if(!this['isEnabled'])return;const _0x319b0b=this['diff'],_0x49317f=this['repository'],_0x5ac3f8='string'==typeof _0x47be0c?_0x49317f['getRevision'](_0x47be0c):_0x47be0c,_0x44e105='string'==typeof _0xc9686d?_0x49317f['getRevision'](_0xc9686d):_0xc9686d,_0x4ce5ff=_0x5ac3f8['id'],_0x5d62f6=_0x44e105?_0x44e105['id']:null;if(!_0x42baf3&&this['diff']&&this['diff']['newRevisionId']===_0x4ce5ff&&this['diff']['oldRevisionId']===_0x5d62f6)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x4ce5ff,_0x5d62f6);const _0x391cbe=this['_getRevisionsRange'](_0x5ac3f8,_0x44e105,!0x0)['map'](_0x1165fc=>this['_utils']['loadRevisionData'](_0x1165fc,this['adapter']));return _0x391cbe['push'](new Promise(_0x21f670=>{setTimeout(_0x21f670,0x14);})),Promise['all'](_0x391cbe)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x52cfc1=this['_getDiff'](_0x4ce5ff,_0x5d62f6);for(const _0x416126 of _0x52cfc1['changes'])this['_changeIdToChange']['set'](_0x416126['id'],_0x416126);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x5eee3c=>{for(const _0x3197ab of this['editor']['model']['document']['getRootNames']())_0x5eee3c['detachRoot'](_0x3197ab);for(const _0x212daf of Object['keys'](_0x52cfc1['model'])){const _0xc52e04=_0x5eee3c['addRoot'](_0x212daf);for(const _0x257ee4 of Object['keys'](_0x52cfc1['attributes'][_0x212daf]))_0x5eee3c['setAttribute'](_0x257ee4,_0x52cfc1['attributes'][_0x212daf][_0x257ee4],_0xc52e04);_0x5eee3c['insert'](_0x52cfc1['model'][_0x212daf],_0xc52e04,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x52cfc1['changes'])),this['isReady']=!0x0;})['catch'](_0x4a4a46=>{console['error'](_0x4a4a46),this['_cleanUp'](),_0x319b0b&&(this['diff']=_0x319b0b),this['isReady']=!0x0;});}['addRevisionData'](_0xd1e813,_0x45c425){const _0x5f2236=this['repository']['createRevision'](_0xd1e813);return _0x5f2236['on']('_update',(_0x3206e7,_0xd6b5a6,_0x3735e2)=>_0x45c425(_0xd6b5a6,_0x3735e2,_0x5f2236)),this['repository']['addRevision'](_0x5f2236),_0x5f2236;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x3ff75e=>{for(const _0x457849 of this['editor']['model']['document']['getRootNames']())_0x3ff75e['detachRoot'](_0x457849);});}['_sortAndFilterDiffChanges'](_0x2fcc7f){const _0x125181=[],_0x44876e=new Map();for(const _0x23dc34 of this['editor']['model']['document']['getRootNames']()){const _0x3f651a=this['editor']['editing']['view']['getDomRoot'](_0x23dc34);if(!_0x3f651a)continue;const _0x42123e=_0x3f651a['getClientRects']()['item'](0x0);_0x42123e&&(_0x125181['push'](_0x23dc34),_0x44876e['set'](_0x23dc34,_0x42123e));}return _0x125181['sort']((_0x4b0c49,_0x562d54)=>{const _0x5ab395=_0x44876e['get'](_0x4b0c49),_0x41fad4=_0x44876e['get'](_0x562d54);return _0x5ab395['y']-_0x41fad4['y']||_0x5ab395['x']-_0x41fad4['x'];}),(_0x2fcc7f=_0x2fcc7f['filter'](_0x382121=>_0x125181['includes'](_0x382121['rootName'])))['sort']((_0x423096,_0x4f586b)=>_0x125181['indexOf'](_0x423096['rootName'])-_0x125181['indexOf'](_0x4f586b['rootName'])),_0x2fcc7f;}['_makeTape'](_0x4da882){const _0x5f3667=Array['from'](_0x4da882['markers'])['filter'](([_0x37ee79,_0x493e5a])=>_0x37ee79['startsWith']('revision:')&&!_0x493e5a['isCollapsed']),_0x5234da=Array['from'](this['editor']['model']['createRangeIn'](_0x4da882)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x5f3667['length'])for(const _0x3d8cd1 of _0x5234da){const [_0x2aa304,_0x18a12f]=_0x5f3667[0x0],[,_0x3ea4af,_0x7ffbc6]=_0x2aa304['split'](':');if(_0x18a12f['end']['isEqual'](_0x3d8cd1['nextPosition'])&&_0x5f3667['shift'](),(_0x3d8cd1['previousPosition']['isEqual'](_0x18a12f['start'])||_0x3d8cd1['previousPosition']['isAfter'](_0x18a12f['start']))&&('insertion'==_0x3ea4af?_0x3d8cd1['isAdded']={'userId':_0x7ffbc6}:'deletion'==_0x3ea4af&&(_0x3d8cd1['isRemoved']={'userId':_0x7ffbc6})),0x0==_0x5f3667['length'])break;}return _0x5234da;}['_refreshStartEndIndex'](_0x1b04a5){const _0x26960c=new Map();for(let _0x4e6279=0x0;_0x4e6279<_0x1b04a5['length'];_0x4e6279++)'text'===_0x1b04a5[_0x4e6279]['type']?(_0x1b04a5[_0x4e6279]['item']['startIndex']=_0x4e6279,_0x1b04a5[_0x4e6279]['item']['endIndex']=_0x4e6279):('elementStart'===_0x1b04a5[_0x4e6279]['type']?_0x1b04a5[_0x4e6279]['item']['startIndex']=_0x4e6279:'elementEnd'===_0x1b04a5[_0x4e6279]['type']&&(_0x1b04a5[_0x4e6279]['item']['endIndex']=_0x4e6279),_0x26960c['set'](_0x1b04a5[_0x4e6279]['id'],_0x4e6279));for(const _0x1a735f of _0x26960c['values']())'elementStart'===_0x1b04a5[_0x1a735f]['type']?_0x1b04a5[_0x1a735f]['item']['endIndex']=_0x26960c['get'](_0x1b04a5[_0x1a735f]['pairId']):'elementEnd'===_0x1b04a5[_0x1a735f]['type']&&(_0x1b04a5[_0x1a735f]['item']['startIndex']=_0x26960c['get'](_0x1b04a5[_0x1a735f]['pairId']));}['_processTape'](_0x3f067e){for(let _0x29bead=0x0;_0x29bead<_0x3f067e['length'];_0x29bead++){if('elementStart'===_0x3f067e[_0x29bead]['type'])_0x3f067e[_0x29bead]['item']['startIndex']=_0x29bead;else{if('elementEnd'===_0x3f067e[_0x29bead]['type']){_0x3f067e[_0x29bead]['item']['endIndex']=_0x29bead;const _0x1f79a1=_0x3f067e[_0x29bead]['item']['startIndex'];_0x3f067e[_0x1f79a1]['pairId']=_0x3f067e[_0x29bead]['id'],_0x3f067e[_0x29bead]['pairId']=_0x3f067e[_0x1f79a1]['id'];}else _0x3f067e[_0x29bead]['item']['startIndex']=_0x29bead,_0x3f067e[_0x29bead]['item']['endIndex']=_0x29bead,_0x3f067e[_0x29bead]['pairId']=null;}_0x3f067e[_0x29bead]['markersStart']||(_0x3f067e[_0x29bead]['markersStart']=[],_0x3f067e[_0x29bead]['markersEnd']=[]);}}['_markInsertions'](_0x2c0776,_0x31cb88){const _0x2762af=_0x2c0776['filter'](_0x3224f4=>!_0x3224f4['isAdded']);for(let _0x1aa40a=0x0;_0x1aa40a<_0x31cb88['length'];_0x1aa40a++)_0x31cb88[_0x1aa40a]['isAdded']&&(_0x2762af[_0x1aa40a]['isAdded']=_0x31cb88[_0x1aa40a]['isAdded']);}['_getDiff'](_0x4b3f16,_0x23d777=null){const _0x133674=this['repository']['getRevision'](_0x4b3f16),_0x211fef=_0x23d777?this['repository']['getRevision'](_0x23d777):null,_0x3dab44=this['_getRevisionsRange'](_0x133674,_0x211fef),_0x14b122=_0x3dab44[_0x3dab44['length']-0x1],_0x2ad6f9=new Map(),_0x427194={'model':{},'attributes':{},'changes':[]},_0x5650c5=new Set(),_0x159ca2=new Map();for(let _0x5e92cc=_0x3dab44['length']-0x1;_0x5e92cc>=0x0;_0x5e92cc--){const _0x561594=_0x3dab44[_0x5e92cc];for(const _0x2983d3 of Object['keys'](_0x561594['diffData']))if(_0x561594['diffData'][_0x2983d3]['attachChange']){const _0x105371=_0x561594['diffData'][_0x2983d3]['attachChange'];_0x105371['isAttached']?(_0x5650c5['add'](_0x2983d3),_0x159ca2['has'](_0x2983d3)&&_0x159ca2['get'](_0x2983d3)['userId']==_0x105371['userId']?_0x159ca2['delete'](_0x2983d3):_0x159ca2['set'](_0x2983d3,_0x105371)):_0x159ca2['has'](_0x2983d3)?(_0x5650c5['delete'](_0x2983d3),_0x159ca2['delete'](_0x2983d3)):(_0x5650c5['add'](_0x2983d3),_0x159ca2['set'](_0x2983d3,_0x105371));}else _0x5650c5['add'](_0x2983d3);}for(const _0x18db2e of _0x5650c5){const _0xac8cc=_0x159ca2['has'](_0x18db2e)&&!_0x159ca2['get'](_0x18db2e)['isAttached'];let _0x1bd056=_0xac8cc?_0x3dab44['length']-0x1:0x0;const _0x58fe3b=_0xac8cc?-0x1:0x1;for(;_0x3dab44[_0x1bd056];){const _0x332f7e=_0x3dab44[_0x1bd056];if(_0x332f7e['diffData'][_0x18db2e]){const _0x26f238=_0xac8cc?_0x332f7e['diffData'][_0x18db2e]['attributesBefore']:_0x332f7e['diffData'][_0x18db2e]['attributesAfter'];_0x427194['attributes'][_0x18db2e]=_0x26f238?_0x1798f6(_0x26f238):{};break;}_0x1bd056+=_0x58fe3b;}}for(const _0x2f682e of _0x3dab44){_0x2f682e['model']={};for(const _0x31f849 of _0x2f682e['authors'])_0x2ad6f9['set'](_0x31f849['id'],_0x31f849);for(const _0x37bb9a of _0x5650c5){const _0x1ea674=_0x2f682e['diffData'][_0x37bb9a]?_0x2f682e['diffData'][_0x37bb9a]['insertions']:'[]',_0x223571=_0x2f682e['diffData'][_0x37bb9a]?_0x2f682e['diffData'][_0x37bb9a]['deletions']:'[]';_0x2f682e['model'][_0x37bb9a]={'insertions':this['_utils']['_makeModelFromViewString'](_0x1ea674),'deletions':this['_utils']['_makeModelFromViewString'](_0x223571)};}}for(const _0x359b33 of _0x5650c5){let _0x50b8a2=null,_0x417a5e=0x0;const _0x3ec26d=new Map(Array['from'](_0x133674['model'][_0x359b33]['insertions']['markers'])['filter'](([_0x4ce3cd])=>!_0x4ce3cd['startsWith']('revision:')));let _0x20e854=0x0;for(const _0x45fdb4 of _0x3dab44){const _0x5b7808=this['_makeTape'](_0x45fdb4['model'][_0x359b33]['insertions']);_0x45fdb4==_0x133674?(_0x50b8a2=_0x5b7808,_0x417a5e=_0x50b8a2['length'],_0x50b8a2['forEach'](_0xedcab5=>{_0xedcab5['id']=_0x20e854++;}),this['_processTape'](_0x50b8a2)):this['_markInsertions'](_0x50b8a2,_0x5b7808);const _0x48993c=_0x50b8a2['filter'](_0x3e4ce9=>!_0x3e4ce9['isAdded'])['map'](_0x3f6095=>_0x3f6095['id']);let _0x5e8bad=0x0;const _0x1250c6=this['_makeTape'](_0x45fdb4['model'][_0x359b33]['deletions']);_0x1250c6['forEach'](_0x3ae82e=>{_0x3ae82e['isRemoved']?_0x3ae82e['id']=_0x417a5e++:_0x3ae82e['id']=_0x48993c[_0x5e8bad++];}),this['_processTape'](_0x1250c6),this['_setDistance'](_0x50b8a2,'isAdded'),this['_setDistance'](_0x1250c6,'isRemoved'),_0x45fdb4==_0x133674&&this['_markMarkers'](_0x50b8a2,_0x3ec26d),_0x50b8a2=this['_joinTapes'](_0x50b8a2,_0x1250c6),this['_refreshStartEndIndex'](_0x50b8a2),this['_setDistance'](_0x50b8a2,'isRemoved');}_0x50b8a2=_0x50b8a2['filter'](_0x55b3a0=>!(_0x55b3a0['isAdded']&&_0x55b3a0['isRemoved']));const _0x405d11=new Map(_0x14b122['model'][_0x359b33]['deletions']['markers']),_0x4cec20=new Set(_0x3ec26d['keys']());for(const _0x42fb64 of _0x405d11['keys']())_0x4cec20['delete'](_0x42fb64);this['_markSuggestions'](_0x50b8a2,_0x4cec20),this['_fixObsoleteTags'](_0x50b8a2),_0x50b8a2=this['_removeMissingPairs'](_0x50b8a2),_0x50b8a2=this['_markMismatchedRemovedTags'](_0x50b8a2),_0x50b8a2=this['_removeUnsupportedChanges'](_0x50b8a2);const {root:_0x138cc7,changes:_0x365620}=this['_makeModelFromTape'](_0x50b8a2,_0x2ad6f9,_0x359b33);_0x427194['model'][_0x359b33]=_0x138cc7;const _0x4f11c2=_0x159ca2['get'](_0x359b33);if(_0x4f11c2){const _0x404d58=_0x2ad6f9['get'](_0x4f11c2['userId']),_0x2b428f=new r({'author':_0x404d58,'type':_0x4f11c2['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x359b33});_0x365620['unshift'](_0x2b428f),_0x427194['attributes'][_0x359b33]['revisionHistoryAttachChange']=_0x2b428f['id'];}_0x427194['changes']=_0x427194['changes']['concat'](_0x365620);}return _0x427194;}['_markMarkers'](_0x4fbcb9,_0x56c46a){for(let _0x441b32=0x0;_0x441b32<_0x4fbcb9['length'];_0x441b32++)for(const [_0xb348e,_0x5f52e2]of _0x56c46a)!_0x5f52e2['isCollapsed']&&_0x5f52e2['start']['isEqual'](_0x4fbcb9[_0x441b32]['previousPosition'])&&_0x4fbcb9[_0x441b32]['markersStart']['push'](_0xb348e),_0x5f52e2['end']['isEqual'](_0x4fbcb9[_0x441b32]['nextPosition'])&&_0x4fbcb9[_0x441b32]['markersEnd']['push'](_0xb348e);}['_joinTapes'](_0x1ff7ad,_0x52b475){let _0x4b7344=[],_0x1453ad=0x0,_0x2c70e0=0x0;for(;_0x1453ad<_0x1ff7ad['length']||_0x2c70e0<_0x52b475['length'];){const _0x3609d3=_0x1ff7ad[_0x1453ad]||{},_0x3bfdc2=_0x52b475[_0x2c70e0]||{};if(_0x3609d3['id']==_0x3bfdc2['id'])_0x1453ad++,_0x2c70e0++,_0x4b7344['push'](_0x3609d3);else{if(_0x3bfdc2['isRemoved']&&_0x3609d3['isAdded']){const {commonTape:_0x53515f,iEnd:_0x461b83,jEnd:_0xd258f1}=this['_threeWayMerge'](_0x1ff7ad,_0x1453ad,_0x52b475,_0x2c70e0);_0x4b7344=_0x4b7344['concat'](_0x53515f),_0x1453ad=_0x461b83,_0x2c70e0=_0xd258f1;}else _0x3bfdc2['isRemoved']?(_0x2c70e0++,_0x4b7344['push'](_0x3bfdc2)):(_0x1453ad++,_0x4b7344['push'](_0x3609d3));}}return _0x4b7344;}['_markSuggestions'](_0x42334e,_0x4ee32a){const _0x5d74a5=[];for(let _0x28c385=0x0;_0x28c385<_0x42334e['length'];_0x28c385++){for(let _0x47fc6f=0x0;_0x47fc6f<_0x42334e[_0x28c385]['markersStart']['length'];_0x47fc6f++){const _0x2616de=_0x42334e[_0x28c385]['markersStart'][_0x47fc6f];if(!_0x4ee32a['has'](_0x2616de))continue;const {group:_0x3cca24,type:_0x172962,authorId:_0x12adc9}=_0x9e8891(_0x2616de);'revision-suggestion'!=_0x3cca24||'insertion'!=_0x172962&&'deletion'!=_0x172962||(_0x5d74a5['unshift']({'type':_0x172962,'name':_0x2616de,'userId':_0x12adc9}),_0x42334e[_0x28c385]['markersStart']['splice'](_0x47fc6f,0x1),_0x47fc6f--);}_0x32fddf(_0x42334e[_0x28c385]);for(let _0x1b3eaf=0x0;_0x1b3eaf<_0x42334e[_0x28c385]['markersEnd']['length'];_0x1b3eaf++){const _0xa9b3d3=_0x42334e[_0x28c385]['markersEnd'][_0x1b3eaf];if(!_0x4ee32a['has'](_0xa9b3d3))continue;const {group:_0x17b3fd,type:_0x362c97}=_0x9e8891(_0xa9b3d3);if('revision-suggestion'!=_0x17b3fd||'insertion'!=_0x362c97&&'deletion'!=_0x362c97)continue;_0x42334e[_0x28c385]['markersEnd']['splice'](_0x1b3eaf,0x1),_0x1b3eaf--;const _0xda317d=_0x5d74a5['findIndex'](_0x3b0e62=>_0x3b0e62['name']==_0xa9b3d3);_0xda317d>-0x1&&_0x5d74a5['splice'](_0xda317d,0x1);}}function _0x9e8891(_0x256179){const _0x26f40d=_0x256179['split'](':');return{'group':_0x26f40d[0x0],'type':_0x26f40d[0x1],'subType':_0x26f40d['length']>=0x5?_0x26f40d[0x2]:null,'id':_0x26f40d['length']<0x5?_0x26f40d[0x2]:_0x26f40d[0x3],'authorId':_0x26f40d['length']<0x5?_0x26f40d[0x3]:_0x26f40d[0x4],'markerCount':0x6==_0x26f40d['length']?_0x26f40d[0x5]:null};}function _0x32fddf(_0x486594){for(let _0x1be793=0x0;_0x1be793<_0x5d74a5['length'];_0x1be793++){if(_0x486594['isAdded']&&'insertion'==_0x5d74a5[_0x1be793]['type']&&_0x486594['isAdded']['userId']==_0x5d74a5[_0x1be793]['userId'])return _0x486594['isAddSuggestion']=_0x5d74a5[_0x1be793],void delete _0x486594['isAdded'];if(!_0x486594['isAdded']&&!_0x486594['isRemoved']&&'deletion'==_0x5d74a5[_0x1be793]['type'])return void(_0x486594['isRemoveSuggestion']=_0x5d74a5[_0x1be793]);}}}['_setDistance'](_0x228c31,_0x55ae18){let _0x2d6437=0x0,_0x43bb7b=!0x1;const _0x2393e6=new Map();for(const _0xe64529 of _0x228c31)_0xe64529[_0x55ae18]?_0x43bb7b&&(_0x2d6437++,_0x43bb7b=!0x1):(_0x2d6437++,_0x43bb7b=!0x0),_0x2393e6['set'](_0xe64529['id'],_0x2d6437);for(let _0x1f64ae=0x0;_0x1f64ae<_0x228c31['length'];_0x1f64ae++){if('isRemoved'==_0x55ae18&&_0x228c31[_0x1f64ae]['isAdded']||'isAdded'==_0x55ae18&&_0x228c31[_0x1f64ae]['isRemoved'])continue;if('text'==_0x228c31[_0x1f64ae]['type']){_0x228c31[_0x1f64ae]['distance']=0x0;continue;}const _0xc759bc=_0x2393e6['get'](_0x228c31[_0x1f64ae]['pairId']),_0x3eabbc=_0x2393e6['get'](_0x228c31[_0x1f64ae]['id']);_0x228c31[_0x1f64ae]['distance']=_0xc759bc-_0x3eabbc;}}['_getRevisionsRange'](_0x5dcba8,_0x4908e5,_0x2d9976=!0x1){const _0x48f2e7=[];let _0x1a8b5b=this['repository']['getIndex'](_0x5dcba8),_0x9d783b=this['repository']['getIndex'](_0x4908e5);for(-0x1==_0x9d783b&&(_0x9d783b=this['repository']['_revisions']['length'],_0x2d9976=!0x1);_0x1a8b5b<_0x9d783b;)_0x48f2e7['push'](this['repository']['getRevision'](_0x1a8b5b)),_0x1a8b5b++;return _0x2d9976&&_0x48f2e7['push'](this['repository']['getRevision'](_0x1a8b5b)),_0x48f2e7;}['_threeWayMerge'](_0x250e04,_0x287fde,_0x327878,_0x215447){const _0x2b0273=this['editor']['model']['schema'];let _0x138409=_0x287fde;for(;_0x250e04[_0x138409]&&_0x250e04[_0x138409]['isAdded'];)_0x138409++;let _0x54b613=_0x215447;for(;_0x327878[_0x54b613]&&_0x327878[_0x54b613]['isRemoved'];)_0x54b613++;_0x5f3dfe(_0x250e04,_0x287fde,_0x138409),_0x5f3dfe(_0x327878,_0x215447,_0x54b613);const _0x2d2c92=_0x327878['slice'](_0x215447,_0x54b613)['concat'](_0x250e04['slice'](_0x287fde,_0x138409));return _0x2d2c92['sort']((_0x44f817,_0x21b84c)=>_0x44f817['side']!=_0x21b84c['side']?_0x44f817['side']-_0x21b84c['side']:_0x44f817['level']!=_0x21b84c['level']?_0x44f817['level']-_0x21b84c['level']:_0x44f817['distance']!=_0x21b84c['distance']?_0x21b84c['distance']-_0x44f817['distance']:!!_0x44f817['isAdded']!=!!_0x21b84c['isAdded']?-0x1==_0x44f817['side']||0x0==_0x44f817['side']?_0x44f817['isAdded']?-0x1:0x1:_0x44f817['isAdded']?0x1:-0x1:_0x44f817['index']-_0x21b84c['index']),{'commonTape':_0x2d2c92,'iEnd':_0x138409,'jEnd':_0x54b613};function _0x5f3dfe(_0x465207,_0xf58cbb,_0x3a3b69){let _0x291223=-0x1,_0x19ca94=Number['POSITIVE_INFINITY'],_0x45ba9a=!0x0;for(let _0x291b22=_0xf58cbb;_0x291b22<_0x3a3b69;_0x291b22++)if(_0x2b0273['isInline'](_0x465207[_0x291b22]['item'])||(_0x45ba9a=!0x1),_0x465207[_0x291b22]['item']['startIndex']<_0xf58cbb&&(_0x291223=_0x291b22),_0x465207[_0x291b22]['item']['endIndex']>=_0x3a3b69){_0x19ca94=_0x291b22;break;}_0x45ba9a&&(_0x291223=_0x3a3b69-0x1);for(let _0x724982=_0xf58cbb;_0x724982<_0x3a3b69;_0x724982++)_0x465207[_0x724982]['side']=_0x724982<=_0x291223?-0x1:_0x724982<_0x19ca94?0x0:0x1,_0x465207[_0x724982]['index']=_0x724982;let _0x6c4528=0x0;for(let _0x78f92d=_0xf58cbb;_0x78f92d<=_0x291223;_0x78f92d++)0x0==_0x465207[_0x78f92d]['distance']?_0x465207[_0x78f92d]['level']=_0x6c4528:(_0x6c4528++,_0x465207[_0x78f92d]['level']=_0x6c4528,_0x6c4528++);for(let _0xdd1fcc=_0xf58cbb;_0xdd1fcc<_0x3a3b69;_0xdd1fcc++)0x0==_0x465207[_0xdd1fcc]['side']&&(_0x465207[_0xdd1fcc]['level']=_0x6c4528);_0x6c4528=0x0;for(let _0x1f8163=_0x3a3b69-0x1;_0x1f8163>=_0x19ca94;_0x1f8163--)0x0==_0x465207[_0x1f8163]['distance']?_0x465207[_0x1f8163]['level']=_0x6c4528:(_0x6c4528--,_0x465207[_0x1f8163]['level']=_0x6c4528,_0x6c4528--);}}['_fixObsoleteTags'](_0x42f9d5){const _0x10e759=new Map(),_0x5775c1=this['editor']['model']['schema'];for(let _0x3b5ca5=0x1;_0x3b5ca5<_0x42f9d5['length'];_0x3b5ca5++){let _0x1c3999,_0x5e5c06,_0x59b7ff;const _0x25b359=_0x42f9d5[_0x3b5ca5],_0x55963a=_0x42f9d5[_0x3b5ca5-0x1];if('text'==_0x25b359['type'])continue;if(_0x25b359['type']!=_0x55963a['type'])continue;if(!_0x5775c1['isBlock'](_0x55963a['item'])||_0x5775c1['isLimit'](_0x55963a['item']))continue;if(!_0x5775c1['isBlock'](_0x25b359['item'])||_0x5775c1['isLimit'](_0x25b359['item']))continue;if((_0x42f9d5[_0x3b5ca5]['isAdded']||_0x42f9d5[_0x3b5ca5]['isAddSuggestion'])&&_0x42f9d5[_0x3b5ca5-0x1]['isRemoved'])_0x1c3999=_0x42f9d5[_0x3b5ca5],_0x5e5c06=_0x42f9d5[_0x3b5ca5-0x1],_0x59b7ff=_0x3b5ca5-0x1;else{if(!_0x42f9d5[_0x3b5ca5]['isRemoved']||!_0x42f9d5[_0x3b5ca5-0x1]['isAdded']&&!_0x42f9d5[_0x3b5ca5-0x1]['isAddSuggestion'])continue;_0x1c3999=_0x42f9d5[_0x3b5ca5-0x1],_0x5e5c06=_0x42f9d5[_0x3b5ca5],_0x59b7ff=_0x3b5ca5;}const _0x44dbb2=_0x1c3999['level']==_0x5e5c06['level'],_0xe77d80=Math['abs'](_0x1c3999['level'])<Math['abs'](_0x5e5c06['level'])&&0x0==_0x5e5c06['distance'];(_0x44dbb2||_0xe77d80)&&(_0x10e759['set'](_0x5e5c06['id'],_0x1c3999['id']),_0x42f9d5['splice'](_0x59b7ff,0x1),_0x3b5ca5--,_0x1c3999['isAdded']=!0x1);}for(let _0x342ac7=0x0;_0x342ac7<_0x42f9d5['length'];_0x342ac7++)_0x10e759['has'](_0x42f9d5[_0x342ac7]['pairId'])&&(_0x42f9d5[_0x342ac7]['pairId']=_0x10e759['get'](_0x42f9d5[_0x342ac7]['pairId']));}['_removeMissingPairs'](_0x2c840b){const _0x138822=new Set(_0x2c840b['map'](_0xf07e7f=>_0xf07e7f['id']));for(let _0x9655ef=0x0;_0x9655ef<_0x2c840b['length'];_0x9655ef++)_0x138822['has'](_0x2c840b[_0x9655ef]['pairId'])||0x0==_0x2c840b[_0x9655ef]['distance']||(_0x2c840b[_0x9655ef]['isIncorrect']=!0x0);return _0x2c840b['filter'](_0x45cbdc=>!_0x45cbdc['isIncorrect']);}['_markMismatchedRemovedTags'](_0x3d1209){const _0x774832=new Set();for(let _0x16ccc5=0x0;_0x16ccc5<_0x3d1209['length'];_0x16ccc5++){if(_0x774832['has'](_0x3d1209[_0x16ccc5]['id'])&&_0x3d1209[_0x16ccc5]['isRemoved']&&(_0x3d1209[_0x16ccc5]['isIncorrect']=!0x0),_0x3d1209[_0x16ccc5]['isIncorrect'])continue;if(0x0==_0x3d1209[_0x16ccc5]['distance'])continue;if('elementStart'!=_0x3d1209[_0x16ccc5]['type'])continue;if(null==_0x3d1209[_0x16ccc5]['pairId'])continue;let _0x353737=_0x16ccc5+0x1,_0x436d71=0x0;for(;_0x3d1209[_0x353737]['id']!=_0x3d1209[_0x16ccc5]['pairId'];)'elementStart'==_0x3d1209[_0x353737]['type']?_0x436d71++:'elementEnd'==_0x3d1209[_0x353737]['type']&&_0x436d71--,_0x353737++;if(0x0!=_0x436d71){if(_0x3d1209[_0x16ccc5]['isRemoved'])_0x3d1209[_0x16ccc5]['isIncorrect']=!0x0;else{for(;_0x353737!=_0x16ccc5;)_0x3d1209[_0x353737]['isRemoved']&&0x0!=_0x3d1209[_0x353737]['distance']&&(_0x3d1209[_0x353737]['isIncorrect']=!0x0,_0x774832['add'](_0x3d1209[_0x353737]['pairId'])),_0x353737--;}}}return _0x3d1209['filter'](_0x1500f2=>!_0x1500f2['isIncorrect']);}['_removeUnsupportedChanges'](_0x21b38d){const _0x16ace0=this['editor']['model']['schema'];for(let _0x3885a4=0x0;_0x3885a4<_0x21b38d['length'];_0x3885a4++){if(!(_0x21b38d[_0x3885a4]['isAdded']||_0x21b38d[_0x3885a4]['isAddSuggestion']||_0x21b38d[_0x3885a4]['isRemoved']||_0x21b38d[_0x3885a4]['isRemoveSuggestion']))continue;if(0x0==_0x21b38d[_0x3885a4]['distance'])continue;const _0x277aa6=_0x21b38d[_0x3885a4]['item'];_0x16ace0['isBlock'](_0x277aa6)||_0x16ace0['isLimit'](_0x277aa6)||(_0x21b38d[_0x3885a4]['isAdded']&&delete _0x21b38d[_0x3885a4]['isAdded'],_0x21b38d[_0x3885a4]['isAddSuggestion']&&delete _0x21b38d[_0x3885a4]['isAddSuggestion'],_0x21b38d[_0x3885a4]['isRemoveSuggestion']&&delete _0x21b38d[_0x3885a4]['isRemoveSuggestion'],_0x21b38d[_0x3885a4]['isRemoved']&&(_0x21b38d[_0x3885a4]['isIncorrect']=!0x0));}return _0x21b38d['filter'](_0x5d7db9=>!_0x5d7db9['isIncorrect']);}['_makeModelFromTape'](_0x1d7d56,_0x45b54b,_0x1250e0){const _0x1f683f=new vt(),_0x4a6b93=[],_0x288a12=new Map(),_0x5c8e94=this['editor']['model'],_0x24d4bc=_0x5c8e94['schema'],_0x3f2d8e=[_0x1f683f],_0x38671b={},_0x54879c={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x56ae98=null;const _0x5e35ee=[0x0];for(let _0x480328=0x0;_0x480328<_0x1d7d56['length'];_0x480328++)if('elementStart'===_0x1d7d56[_0x480328]['type']){_0x1d7d56[_0x480328]['previousPosition']=_0x5c8e94['createPositionFromPath'](_0x1f683f,_0x5e35ee);const _0x382605=new ut(_0x1d7d56[_0x480328]['item']['name'],_0x1d7d56[_0x480328]['item']['getAttributes']());_0x3f2d8e[0x0]['_appendChild'](_0x382605),_0x5e35ee['push'](0x0),_0x3f2d8e['unshift'](_0x382605),_0x1d7d56[_0x480328]['nextPosition']=_0x5c8e94['createPositionFromPath'](_0x1f683f,_0x5e35ee);}else'elementEnd'===_0x1d7d56[_0x480328]['type']?(_0x3f2d8e['shift'](),_0x1d7d56[_0x480328]['previousPosition']=_0x5c8e94['createPositionFromPath'](_0x1f683f,_0x5e35ee),_0x5e35ee['pop'](),_0x5e35ee[_0x5e35ee['length']-0x1]++,_0x1d7d56[_0x480328]['nextPosition']=_0x5c8e94['createPositionFromPath'](_0x1f683f,_0x5e35ee)):(_0x1d7d56[_0x480328]['previousPosition']=_0x5c8e94['createPositionFromPath'](_0x1f683f,_0x5e35ee),_0x56ae98?_0x56ae98['_data']+=_0x1d7d56[_0x480328]['item']['data']:_0x56ae98=new gt(_0x1d7d56[_0x480328]['item']['data'],_0x1d7d56[_0x480328]['item']['getAttributes']()),_0x1d7d56[_0x480328+0x1]&&'text'===_0x1d7d56[_0x480328+0x1]['type']&&_0x7ebeaf(_0x56ae98,_0x1d7d56[_0x480328+0x1]['item'])||(_0x3f2d8e[0x0]['_appendChild'](_0x56ae98),_0x56ae98=null),_0x5e35ee[_0x5e35ee['length']-0x1]+=_0x1d7d56[_0x480328]['item']['offsetSize'],_0x1d7d56[_0x480328]['nextPosition']=_0x5c8e94['createPositionFromPath'](_0x1f683f,_0x5e35ee));for(let _0x31509b=0x0;_0x31509b<_0x1d7d56['length'];_0x31509b++){const _0x122664=_0x1d7d56[_0x31509b]['previousPosition'],_0x13c010=_0x1d7d56[_0x31509b]['nextPosition'];for(const _0x1a778d of _0x1d7d56[_0x31509b]['markersStart'])_0x288a12['set'](_0x1a778d,{'start':_0x122664,'end':null});_0x405279('isRemoveSuggestion',_0x31509b,_0x122664,_0x13c010),_0x405279('isAddSuggestion',_0x31509b,_0x122664,_0x13c010),_0x405279('isRemoved',_0x31509b,_0x122664,_0x13c010),_0x405279('isAdded',_0x31509b,_0x122664,_0x13c010);for(const _0xc1c3d5 of _0x1d7d56[_0x31509b]['markersEnd']){const _0x3e72c0=_0x288a12['get'](_0xc1c3d5);_0x3e72c0?_0x3e72c0['end']=_0x13c010:_0x288a12['set'](_0xc1c3d5,{'start':_0x13c010,'end':_0x13c010});}}for(const [_0x546154,_0x3eefde]of _0x288a12){const _0x356594=this['editor']['model']['createRange'](_0x3eefde['start'],_0x3eefde['end']);_0x1f683f['markers']['set'](_0x546154,_0x356594);}return _0x4a6b93['sort']((_0x550735,_0x36889f)=>{const _0x5839f9=_0x1f683f['markers']['get']('revision:'+_0x550735['id']),_0x3b29e8=_0x1f683f['markers']['get']('revision:'+_0x36889f['id']);return _0x5839f9['start']['isBefore'](_0x3b29e8['start'])?-0x1:_0x5839f9['start']['isAfter'](_0x3b29e8['start'])?0x1:_0x5839f9['end']['isBefore'](_0x3b29e8['end'])?-0x1:_0x5839f9['end']['isAfter'](_0x3b29e8['end'])?0x1:'add'===_0x550735['type']?-0x1:0x1;}),{'root':_0x1f683f,'changes':_0x4a6b93};function _0x405279(_0x34b5ee,_0x38143f,_0x4880e6,_0x351267){const _0x15e048=!!_0x1d7d56[_0x38143f][_0x34b5ee],_0x378ae2=_0x15e048?_0x1d7d56[_0x38143f][_0x34b5ee]['userId']:null,_0x3aa94b=_0x38143f===_0x1d7d56['length']-0x1,_0x199096=_0x54879c[_0x34b5ee][0x0],_0x10fb0e=_0x24d4bc['isObject'](_0x1d7d56[_0x38143f]['item']);!_0x38671b[_0x34b5ee]&&_0x15e048?_0x38671b[_0x34b5ee]={'start':_0x4880e6,'tapeItem':_0x1d7d56[_0x38143f],'userId':_0x378ae2,'type':_0x34b5ee}:_0x38671b[_0x34b5ee]&&!_0x15e048?(_0x38671b[_0x34b5ee]['end']=_0x4880e6,_0x5d2da7(_0x38671b[_0x34b5ee]),_0x38671b[_0x34b5ee]=null):_0x38671b[_0x34b5ee]&&_0x15e048&&_0x38671b[_0x34b5ee]['userId']!==_0x378ae2&&(_0x38671b[_0x34b5ee]['end']=_0x4880e6,_0x199096&&_0x199096['userId']===_0x38671b[_0x34b5ee]['userId']||_0x5d2da7(_0x38671b[_0x34b5ee]),_0x38671b[_0x34b5ee]={'start':_0x4880e6,'tapeItem':_0x1d7d56[_0x38143f],'userId':_0x378ae2,'type':_0x34b5ee}),_0x38671b[_0x34b5ee]&&_0x10fb0e&&('elementStart'!==_0x1d7d56[_0x38143f]['type']||_0x199096&&_0x199096['userId']===_0x378ae2||_0x54879c[_0x34b5ee]['unshift']({'userId':_0x378ae2,'object':_0x1d7d56[_0x38143f]['item'],'change':_0x38671b[_0x34b5ee]}),'elementEnd'===_0x1d7d56[_0x38143f]['type']&&_0x199096&&_0x199096['object']===_0x1d7d56[_0x38143f]['item']&&(_0x54879c[_0x34b5ee]['shift'](),_0x38671b[_0x34b5ee]=_0x199096['change'])),_0x38671b[_0x34b5ee]&&_0x3aa94b&&(_0x38671b[_0x34b5ee]['end']=_0x351267,_0x5d2da7(_0x38671b[_0x34b5ee]),_0x38671b[_0x34b5ee]=null);}function _0x5d2da7({start:_0x37ecf9,end:_0x1372ce,tapeItem:_0x430f56,userId:_0x43931d,type:_0x150466}){const _0x5deeea=_0x430f56['item'],_0x1693d6=_0x5c8e94['schema']['isBlock'](_0x5deeea)&&!_0x5c8e94['schema']['isLimit'](_0x5deeea),_0x2782bd=_0x37ecf9['nodeAfter']==_0x1372ce['parent']&&_0x1372ce['isAtStart'];if(_0x1693d6&&_0x2782bd)return;const _0x435b34=_0x5c8e94['createRange'](_0x37ecf9,_0x1372ce),_0x6f66f1=_0x45b54b['get'](_0x43931d),_0x51c360=new r({'author':_0x6f66f1,'type':'isAdded'==_0x150466||'isAddSuggestion'==_0x150466?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x150466||'isRemoveSuggestion'==_0x150466},'createdAt':new Date(),'rootName':_0x1250e0});_0x4a6b93['push'](_0x51c360),_0x1f683f['markers']['set']('revision:'+_0x51c360['id'],_0x435b34);}function _0x7ebeaf(_0x51a868,_0x99144){const _0x3b9e08=_0x51a868['getAttributes'](),_0x157cd1=_0x99144['getAttributes']();for(const _0x22c57d of _0x3b9e08){if(_0x22c57d[0x1]!==_0x99144['getAttribute'](_0x22c57d[0x0]))return!0x1;_0x157cd1['next']();}return _0x157cd1['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x4f829c=>{const _0x28c590=_0x4f829c['markerName']['split'](':')[0x1],_0x1140f7=this['_getChangeFromId'](_0x28c590);if(!_0x1140f7)return null;const _0x32537f='add'==_0x1140f7['type']?'insertion':'deletion',_0x557907=['ck-suggestion-marker','ck-suggestion-marker-'+_0x32537f];return _0x1140f7['data']['isSuggestion']&&_0x557907['push']('ck-suggestion-marker-'+_0x32537f+'-new'),this['activeChange']==_0x1140f7&&_0x557907['push']('ck-suggestion-marker--active'),{'classes':_0x557907,'attributes':{'data-change-id':_0x28c590}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x399043=>{_0x399043['on']('element:pre',(_0x54fe66,_0x2eb8c1,_0x31411d)=>{const _0xea6594=_0x2eb8c1['viewItem']['getChild'](0x0);if(!_0xea6594||!_0xea6594['is']('element','code'))return;if(!_0x31411d['consumable']['consume'](_0xea6594,{'attributes':['vid_start','vid_end']}))return;const _0x56fff7=_0x2eb8c1['modelRange']['start']['nodeAfter'];_0x31411d['writer']['setAttribute']('vid_start',_0xea6594['getAttribute']('vid_start'),_0x56fff7),_0x31411d['writer']['setAttribute']('vid_end',_0xea6594['getAttribute']('vid_end'),_0x56fff7);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x2be6c1=>{_0x2be6c1['on']('element',(_0x722681,_0x472adc,_0x397f01)=>{if(!_0x397f01['consumable']['consume'](_0x472adc['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x472adc['modelRange']['isCollapsed'])return;const _0x3051b6=_0x472adc['modelRange']['start']['nodeAfter'];_0x3051b6['hasAttribute']('vid_start')||_0x3051b6['hasAttribute']('vid')||(_0x397f01['writer']['setAttribute']('vid_start',_0x472adc['viewItem']['getAttribute']('vid_start'),_0x3051b6),_0x397f01['writer']['setAttribute']('vid_end',_0x472adc['viewItem']['getAttribute']('vid_end'),_0x3051b6));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x563ddd=>_0x563ddd['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0xb30c7b,[,_0x2219de])=>{['vid_start','vid_end','vid']['includes'](_0x2219de)&&(_0xb30c7b['return']=!0x0,_0xb30c7b['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0xe28873=>{_0xe28873['on']('attribute:vid',(_0x17cdbd,_0x399c8b,_0x56b516)=>{if('\x20'!=_0x399c8b['item']['data']||_0x399c8b['item']['parent']['maxOffset']>0x1)return;if(!_0x56b516['consumable']['consume'](_0x399c8b['item'],_0x17cdbd['name']))return;const _0x3fae1b=_0x56b516['writer'],_0x410402=_0x56b516['mapper']['toViewRange'](_0x399c8b['range']);_0x3fae1b['wrap'](_0x410402,_0x3fae1b['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x229b65){const _0x15bad5=_0x229b65['plugins']['get']('RevisionViewer');return(_0xb62b5f,_0x153565,_0x1f1b85)=>{const _0x275e69=_0x153565['markerName']['split'](':')[0x1],_0x245dc3=_0x15bad5['_getChangeFromId'](_0x275e69);if(!_0x245dc3)return null;const _0x4534c0='add'==_0x245dc3['type']?'split':'merge';if(!_0x1f1b85['consumable']['test'](_0x153565['markerRange'],_0xb62b5f['name']))return;const _0x183de1=_0x153565['markerRange']['getWalker'](),_0x24c9d1=_0x153565['markerRange']['start'],_0x1b5c5c=_0x229b65['model']['schema'];let _0x556eb7=null,_0x5d37a4=null,_0x7442fc=!0x1,_0x377e61=!0x1;for(const _0x13f42d of _0x183de1){const _0x6a30c4=_0x13f42d['item'];_0x7442fc=_0x7442fc||_0x1b5c5c['isContent'](_0x6a30c4);const _0x289290=_0x1f1b85['mapper']['toViewElement'](_0x6a30c4);if(_0x289290&&_0x289290['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x13f42d['type']&&(_0x1b5c5c['isBlock'](_0x6a30c4)&&!_0x1b5c5c['isLimit'](_0x6a30c4)&&(_0x6a30c4['nextSibling']||_0x24c9d1['isAtEnd']?_0x556eb7&&_0x556eb7['parent']==_0x6a30c4||(_0x556eb7=_0x6a30c4,_0x2793e1(_0x13f42d['previousPosition']),_0x377e61=!0x0):_0x5d37a4=_0x5d37a4||_0x13f42d['previousPosition']));}function _0x2793e1(_0x466e1f){const _0x116ff9=_0x1f1b85['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4534c0}),_0x229c95=_0x1f1b85['mapper']['toViewPosition'](_0x466e1f);_0x245dc3['data']['isSuggestion']&&_0x1f1b85['writer']['addClass']('ck-suggestion-marker-'+_0x4534c0+'-new',_0x116ff9),_0x15bad5['activeChange']==_0x245dc3&&_0x1f1b85['writer']['addClass']('ck-suggestion-marker--active',_0x116ff9),_0x1f1b85['writer']['insert'](_0x229c95,_0x116ff9),_0x1f1b85['mapper']['bindElementToMarker'](_0x116ff9,_0x153565['markerName']);}_0x7442fc||_0x377e61||!_0x5d37a4||_0x2793e1(_0x5d37a4);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x25fefe,_0x321633,_0xc966b8)=>{const _0x446f55=_0xc966b8['mapper']['markerNameToElements'](_0x321633['markerName']);if(_0x446f55){for(const _0x547e6e of _0x446f55)(_0x547e6e['hasClass']('ck-suggestion-marker-split')||_0x547e6e['hasClass']('ck-suggestion-marker-merge'))&&(_0xc966b8['mapper']['unbindElementFromMarkerName'](_0x547e6e,_0x321633['markerName']),_0xc966b8['writer']['remove'](_0x547e6e));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x230541,_0x86408e,_0x538e55)=>{const _0x4d3988=_0x86408e['markerName']['split'](':')[0x1],_0x1050f7=this['_getChangeFromId'](_0x4d3988);if(!_0x1050f7)return null;const _0x5343bb='add'==_0x1050f7['type']?'split':'merge';if(_0x538e55['consumable']['test'](_0x86408e['markerRange'],_0x230541['name']))for(const _0x384e19 of _0x86408e['markerRange']['getItems']()){if(!_0x384e19['is']('element','softBreak'))continue;const _0x2e03ea=_0x538e55['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5343bb}),_0x1bf726=_0x538e55['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x384e19));_0x1050f7['data']['isSuggestion']&&_0x538e55['writer']['addClass']('ck-suggestion-marker-'+_0x5343bb+'-new',_0x2e03ea),this['activeChange']==_0x1050f7&&_0x538e55['writer']['addClass']('ck-suggestion-marker--active',_0x2e03ea),_0x538e55['writer']['insert'](_0x1bf726,_0x2e03ea),_0x538e55['mapper']['bindElementToMarker'](_0x2e03ea,_0x86408e['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x4381bc=>{for(const _0x2a125b of this['editor']['model']['document']['getRootNames']()){const _0x1409ef=this['editor']['model']['document']['getRoot'](_0x2a125b),_0x296c7d=this['editor']['editing']['view']['document']['getRoot'](_0x2a125b);if(_0x296c7d){const _0x1e6639=_0x1409ef['getAttribute']('revisionHistoryAttachChange');if(_0x4381bc['removeAttribute']('data-change-id',_0x296c7d),_0x4381bc['removeClass']('ck-revision-history-root-add',_0x296c7d),_0x4381bc['removeClass']('ck-revision-history-root-remove',_0x296c7d),_0x4381bc['removeClass']('ck-revision-history-root--active',_0x296c7d),_0x1e6639){const _0x43349d=this['_getChangeFromId'](_0x1e6639);if(!_0x43349d)return null;_0x4381bc['setAttribute']('data-change-id',_0x1e6639,_0x296c7d),_0x4381bc['addClass']('ck-revision-history-root-'+_0x43349d['type'],_0x296c7d),this['activeChange']==_0x43349d&&_0x4381bc['addClass']('ck-revision-history-root--active',_0x296c7d);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0xf39df4=>'revision-comment:'+_0xf39df4,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x403d85=>'revision-suggestion:'+_0x403d85,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x311322=>({'name':'suggestion:'+_0x311322,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x403eac=>{const _0x38269d=_0x403eac['markerName']['split'](':')[0x1];return'insertion'!=_0x38269d&&'deletion'!=_0x38269d?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x38269d]};}}),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',(_0x1cdbdc,_0x5e9026,_0x39197e)=>{const _0x13c838=_0x39197e['mapper']['markerNameToElements'](_0x5e9026['markerName']);if(_0x13c838){for(const _0x522ef6 of _0x13c838)_0x522ef6['is']('uiElement')&&(_0x39197e['mapper']['unbindElementFromMarkerName'](_0x522ef6,_0x5e9026['markerName']),_0x39197e['writer']['remove'](_0x522ef6));}},{'priority':'high'});}['_getChangeFromId'](_0xda4271){return this['_changeIdToChange']['get'](_0xda4271);}['_getViewForChange'](_0x3d73ec){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x3d73ec),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x81ec74,_0x149367,_0x5811ea,_0x127f4d)=>{_0x127f4d&&this['_balloon']['remove'](_0x127f4d),_0x5811ea&&(this['_balloon']['add']({'view':_0x5811ea,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x12cbea=this['editor']['editing'],_0x4b0828=this['_getChangeFromId'](_0x5811ea['changeId']);let _0x1fc504;if(_0x4b0828['data']['isOnRoot']){const _0x1b329b=_0x12cbea['view']['getDomRoot'](_0x4b0828['rootName']);_0x1fc504=Array['from'](_0x1b329b['getClientRects']());}else{const _0xcc2944=this['editor']['model']['markers']['get']('revision:'+_0x5811ea['changeId']);_0x1fc504=Array['from'](_0x12cbea['mapper']['markerNameToElements'](_0xcc2944['name']))['map'](_0x34b8ff=>_0x12cbea['view']['domConverter']['mapViewToDom'](_0x34b8ff))['map'](_0x3300a4=>Array['from'](_0x3300a4['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x1fc504[0x0];return _0x1fc504['find'](_0x4a233d=>_0x4a233d['top']-0x3<=this['_activeViewTarget']['y']&&_0x4a233d['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x4a233d['left']-0x3<=this['_activeViewTarget']['x']&&_0x4a233d['right']+0x3>=this['_activeViewTarget']['x'])||_0x1fc504[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x59762f,_0x2236ca,_0x3fac1f,_0x35bbdf)=>{this['activeView']=_0x3fac1f?this['_getViewForChange'](_0x3fac1f):null,this['editor']['model']['change'](()=>{const _0x30ac13=this['editor']['editing'];_0x35bbdf&&(_0x35bbdf['data']['isOnRoot']?_0x30ac13['view']['change'](_0x4da12f=>{_0x4da12f['removeClass']('ck-revision-history-root--active',_0x30ac13['view']['document']['getRoot'](_0x35bbdf['rootName']));}):_0x30ac13['reconvertMarker']('revision:'+_0x35bbdf['id'])),_0x3fac1f&&(_0x3fac1f['data']['isOnRoot']?_0x30ac13['view']['change'](_0x1e2b57=>{_0x1e2b57['addClass']('ck-revision-history-root--active',_0x30ac13['view']['document']['getRoot'](_0x3fac1f['rootName']));}):_0x30ac13['reconvertMarker']('revision:'+_0x3fac1f['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x1a0a65,_0x394f66)=>{if(this['activeChange'])return;const _0x5038d6=this['_findChangeIdFromDomTarget'](_0x394f66['target']),_0x53829f=this['_changeIdToChange']['get'](_0x5038d6);_0x53829f?(this['_activeViewTarget']={'x':_0x394f66['domEvent']['x'],'y':_0x394f66['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x53829f)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x3dc1cc,_0x1b52b4)=>{const _0x3b3369=this['_findChangeIdFromDomTarget'](_0x1b52b4['target']),_0x890700=this['_changeIdToChange']['get'](_0x3b3369);_0x890700?(this['_activeViewTarget']={'x':_0x1b52b4['domEvent']['x'],'y':_0x1b52b4['domEvent']['y']},_0x890700===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x890700):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x59aefb){do{const _0x21c320=_0x59aefb['getAttribute']('data-change-id');if(_0x21c320)return _0x21c320;_0x59aefb=_0x59aefb['parent'];}while(_0x59aefb);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x342545=>{for(const _0x43b954 of this['editor']['model']['markers'])_0x342545['removeMarker'](_0x43b954);});}}function X(_0x50ac13,_0x412299){return(_0x174adb,_0x7df3e,_0x419ee2)=>{if(!_0x419ee2['consumable']['test'](_0x7df3e['markerRange'],_0x174adb['name']))return;const _0xe71342=_0x7df3e['markerRange']['getWalker'](),_0x300568=_0x7df3e['markerRange']['start'],_0x3135a0=_0x50ac13['model']['schema'];let _0x2f5759=null,_0x5aa7ad=null,_0x634fd9=!0x1,_0x3d84f4=!0x1;for(const _0x3bdc70 of _0xe71342){const _0x1c3df7=_0x3bdc70['item'];_0x634fd9=_0x634fd9||_0x3135a0['isContent'](_0x1c3df7);const _0x37e223=_0x419ee2['mapper']['toViewElement'](_0x1c3df7);if(_0x37e223&&_0x37e223['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3bdc70['type']&&(_0x3135a0['isBlock'](_0x1c3df7)&&!_0x3135a0['isLimit'](_0x1c3df7)&&(_0x1c3df7['nextSibling']||_0x300568['isAtEnd']?_0x2f5759&&_0x2f5759['parent']==_0x1c3df7||(_0x2f5759=_0x1c3df7,_0x2977e3(_0x3bdc70['previousPosition']),_0x3d84f4=!0x0):_0x5aa7ad=_0x5aa7ad||_0x3bdc70['previousPosition']));}function _0x2977e3(_0x567dff){const _0x4825e3=_0x419ee2['mapper']['toViewPosition'](_0x567dff),_0x42e727=_0x419ee2['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x412299});_0x419ee2['writer']['insert'](_0x4825e3,_0x42e727),_0x419ee2['mapper']['bindElementToMarker'](_0x42e727,_0x7df3e['markerName']);}_0x634fd9||_0x3d84f4||!_0x5aa7ad||_0x2977e3(_0x5aa7ad);};}class mt extends _0x1cb13e{constructor(_0x583c56){super(_0x583c56);const _0x21728b=_0x583c56['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x21728b,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x21728b,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x4f5e9a=this['editor'],_0x5c7332=_0x4f5e9a['plugins']['get'](m),_0x44cd4b=_0x5c7332['isReady']?_0x5c7332['diff']['newRevisionId']:null;_0x4f5e9a['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x44cd4b);}['refresh'](){const {isReady:_0x5c194f,isEnabled:_0xb9ceb3,repository:_0x2c97e5,diff:_0xbacc0c}=this['editor']['plugins']['get'](m),_0x4ca3aa=_0xbacc0c&&_0x2c97e5['getLaterVisibleRevision'](_0xbacc0c['newRevisionId']);this['isEnabled']=_0x5c194f&&_0xb9ceb3&&Boolean(_0x4ca3aa);}}class wt extends _0x1cb13e{['_step'];constructor(_0x4da8c6,{direction:_0x2dc13b}){super(_0x4da8c6);const _0x43e7c3=_0x4da8c6['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x2dc13b?0x1:-0x1,this['listenTo'](_0x43e7c3,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x43e7c3,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x43e7c3,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x1c0665=this['editor'],_0x1e2b34=_0x1c0665['plugins']['get'](m),{isNavigationMode:_0x1616cb,currentChangeNumber:_0x153d4e}=_0x1e2b34;let _0x354bd1;if(_0x1e2b34['activeChange']=_0x1616cb?_0x1e2b34['diff']['changes']['get'](_0x153d4e+this['_step']):_0x1e2b34['diff']['changes']['first'],_0x1e2b34['activeChange']['data']['isOnRoot'])_0x354bd1=_0x1c0665['editing']['view']['getDomRoot'](_0x1e2b34['activeChange']['rootName']);else{const _0x12d69c=_0x1c0665['model']['markers']['get']('revision:'+_0x1e2b34['activeChange']['id']);_0x354bd1=_0x7319fc(_0x1c0665['editing'],_0x12d69c);}_0x9057d1({'target':_0x354bd1,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x3a1ad9,currentChangeNumber:_0x5c6f25,numberOfChanges:_0x51d944,isReady:_0x461058,isEnabled:_0xd5e7ea}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0xd5e7ea&&_0x461058&&_0x51d944)&&(!_0x3a1ad9||(0x1===this['_step']?_0x5c6f25<_0x51d944-0x1:_0x5c6f25>0x0));}}class _i extends ts{constructor(_0x56bcd8){super(_0x56bcd8);const _0x4c7190=this['bindTemplate'],_0x461da0=new te(_0x56bcd8),_0x258200=new te(_0x56bcd8);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',(_0x2272c8,_0x505aef)=>_0x2272c8&&_0x505aef>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x46628f,_0x3da2c6,_0xe88046,_0x33d714)=>{if(!_0x46628f)return g(_0x56bcd8,'Loading...');if(!_0xe88046)return g(_0x56bcd8,'No\x20changes');const _0x51ae0c=g(_0x56bcd8,'NUMBER_OF_CHANGES',_0xe88046);return _0x33d714?g(_0x56bcd8,'X_OF_Y_CHANGES',[_0x3da2c6+0x1,_0xe88046]):_0x51ae0c;}),_0x461da0['set']({'label':g(_0x56bcd8,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x76a13d}),_0x258200['set']({'label':g(_0x56bcd8,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x58725d}),_0x461da0['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x258200['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x461da0['on']('execute',()=>this['fire']('execute','backward')),_0x258200['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',_0x4c7190['if']('_isStatusLabelVisible','ck-hidden',_0x3c03c1=>!_0x3c03c1)]},'children':[{'text':_0x4c7190['to']('isNavigationMode',_0x443212=>_0x443212?g(_0x56bcd8,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x56bcd8,'Total')+':\x20')}]},{'text':_0x4c7190['to']('_statusText')}]},new _0xded5e5(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x461da0,_0x258200]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0xe250eb{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0xdf01d=this['editor']['editing']['view'];_0xdf01d['change'](_0x383d6d=>{for(const _0x456661 of _0xdf01d['document']['roots'])_0x383d6d['addClass'](le,_0x456661);});}['hide'](){const _0x280a7b=this['editor']['editing']['view'];_0x280a7b['change'](_0x5d8df8=>{for(const _0x43e0df of _0x280a7b['document']['roots'])_0x5d8df8['removeClass'](le,_0x43e0df);});}}class R extends _0xe250eb{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,ge];}['init'](){const _0x22ad90=this['editor'],_0x2d40e8=_0x22ad90['plugins']['get'](m),_0xf1773d=_0x22ad90['plugins']['get'](ge);_0x22ad90['ui']['componentFactory']['add']('exitToEditing',_0x401e16=>{const _0x3b4c1f=new te(_0x401e16);return _0x3b4c1f['set']({'label':g(_0x401e16,'Back\x20to\x20editing'),'icon':_0x4ded01,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x3b4c1f,'execute',()=>{_0x22ad90['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x3b4c1f;}),_0x22ad90['ui']['componentFactory']['add']('restoreRevision',_0x2f8f3c=>{const _0x348503=new te(_0x2f8f3c);return _0x348503['set']({'label':g(_0x2f8f3c,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x348503['bind']('isEnabled')['to'](_0x22ad90['commands']['get']('restoreRevision')),this['listenTo'](_0x348503,'execute',()=>_0x22ad90['execute']('restoreRevision')),_0x348503;}),_0x22ad90['ui']['componentFactory']['add']('changesNavigation',_0x52e9f5=>{const _0x5d00c=new _i(_0x52e9f5),_0x137c5f=_0x22ad90['commands']['get']('showPreviousChange'),_0x4a8033=_0x22ad90['commands']['get']('showNextChange');return _0x5d00c['bind']('isBackwardNavigationEnabled')['to'](_0x137c5f,'isEnabled'),_0x5d00c['bind']('isForwardNavigationEnabled')['to'](_0x4a8033,'isEnabled'),_0x5d00c['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x2d40e8),this['listenTo'](_0x5d00c,'execute',(_0x2b3657,_0x30f8f5)=>{_0x22ad90['execute']('forward'===_0x30f8f5?'showNextChange':'showPreviousChange');}),_0x5d00c;}),_0xf1773d['show'](),_0x2d40e8['on']('change:isReady',(_0x474875,_0x28d0aa,_0x26b2fb)=>{_0x26b2fb?_0xf1773d['hide']():_0xf1773d['show']();});}}class at extends _0xc3e9c9{['_resizeObserver']=null;constructor(_0x3afbfd,_0x8f4fb3){super(_0x3afbfd,_0x8f4fb3);const _0x1fa90d=this['bindTemplate'];this['set']({'label':g(_0x3afbfd,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x3afbfd,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x1fa90d['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 _0x2910a2=this['fieldView']['element'];this['_tooltipString']=_0x2910a2['scrollWidth']>_0x2910a2['clientWidth']&&_0x2910a2['value']||'';}}class si extends ts{constructor(_0x3e0f69,_0x1faaab,_0x356103){super(_0x3e0f69);const _0x382e73=new _0x15c303();_0x382e73['set']({'content':_0x533b54,'viewBox':'0\x200\x2011\x2010'});const _0x19089d=['ck','ck-revision-history-sidebar__revision-author'];_0x356103&&_0x19089d['push']('ck-revision-history-sidebar__revision-author_creator');const _0x502603=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x3e0f69,_0x356103?'Revision\x20creator':'Revision\x20author')},'children':[_0x382e73,_0x1faaab['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x19089d},'children':_0x502603});}}function oi(_0x849448,_0x7c3c8){const _0x4121bf=_0x849448['bindTemplate'],_0x284a6e=_0x849448['locale'],_0x499dfe=_0x1e3b6e(_0x284a6e);_0x499dfe['panelPosition']='sw';const _0x20fa5e=function(_0x50f46d,_0x46f520){const _0x42ba74=function(_0x4f62ef,_0x90997b){const _0x5967e4=_0x4f62ef['locale'],_0x50451e={'Compare\x20against\x20selected':g(_0x5967e4,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x5967e4,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x5967e4,'Restore\x20this\x20revision')};return _0x90997b['map'](_0x269af5=>{const _0x238af6=_0x50451e[_0x269af5['name']];return _0x238af6&&_0x238af6!==_0x269af5['name']&&(_0x269af5['name']=_0x238af6),_0x269af5;});}(_0x50f46d,_0x46f520),_0x475f76=new _0x5a3b28();for(const _0x422b41 of _0x42ba74){const _0x170082={'type':'button','model':new to({'label':_0x422b41['name'],'class':_0x422b41['class'],'withText':!0x0,'role':'menuitem','_action':_0x422b41['action']})};_0x170082['model']['bind']('isEnabled')['to'](_0x50f46d,'isActionsDropdownOpen',_0x57a2c4=>'function'!=typeof _0x422b41['isEnabled']||(!_0x57a2c4||_0x422b41['isEnabled'](_0x50f46d))),_0x475f76['add'](_0x170082);}return _0x475f76;}(_0x849448,_0x7c3c8);return _0x849448['bind']('isActionsDropdownOpen')['to'](_0x499dfe,'isOpen'),_0x499dfe['buttonView']['set']({'label':g(_0x284a6e,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x4ffc27}),_0x499dfe['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x4121bf['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x4121bf['to'](_0x2d1a02=>_0x2d1a02['stopPropagation']())}}),_0x499dfe['on']('execute',_0x432c67=>{_0x849448['isReady']&&'function'==typeof _0x432c67['source']['_action']&&_0x432c67['source']['_action'](_0x849448);}),_0x3a54c1(_0x499dfe,_0x20fa5e,{'role':'menu'}),_0x499dfe['listenTo'](_0x849448,'change:isActionsDropdownOpen',(_0x362196,_0x25daba,_0x15a0b7)=>{if(_0x15a0b7)for(const _0x895cf3 of _0x499dfe['listView']['items']){const _0x17d703=_0x895cf3['children']['first'],_0x43a5d3=_0x7c3c8['find'](_0x28da01=>_0x28da01['action']===_0x17d703['_action'])['isVisible'];_0x895cf3['isVisible']=void 0x0===_0x43a5d3||_0x43a5d3(_0x849448);}}),_0x499dfe;}class hi extends/* #__PURE__ -- @preserve */
|
|
26
|
-
|
|
23
|
+
import{ObservableMixin as _0x500d10,uid as _0x1ab53a,Collection as _0x4162a6,logWarning as _0x3f9a20,FocusTracker as _0x57bc85,KeystrokeHandler as _0x16011d,scrollViewportToShowTarget as _0x1b6c13,ResizeObserver as at,ElementReplacer as ot,CKEditorError as _0x5e3db6}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x29c4bb,set as _0x43682d,unset as _0x80e773,isEqual as _0x5d78f6}from'es-toolkit/compat';import{Plugin as _0x5c4916,PendingActions as _0x5a2bc0,Command as _0x343bb1,ElementApiMixin as _0x1b016a,Editor as _0x251680}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x4c2647,getMarkerDomElement as _0x5c2da8,ConfirmMixin as _0x19bcaa,sanitizeEditorConfig as _0x4114d5}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x3fb9e6,ViewAttributeElement as _0x1daac8,ViewEmptyElement as _0x31ec5d,ViewRawElement as _0x17a450,ViewUIElement as _0x4813d9,ViewDocumentFragment as _0x3b13e8,ViewText as _0x276860,ViewElement as _0x306f73,Element as ut,Range as ft,Position as vt,DocumentFragment as gt,Text as mt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x31f76a,IconChevronUp as _0x31e89c,IconChevronDown as _0x5e3a9f,IconUndo as _0x13bb02,IconUser as _0x3178fc,IconThreeVerticalDots as _0xa7862a}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x282a4d,injectCssTransitionDisabler as ts,submitHandler as _0x6dc393,LabeledFieldView as nt,createLabeledInputText as ti,createDropdown as _0x5e95c1,ListView as _0x181ec3,ListItemView as te,ButtonView as _0x2023e5,MenuBarMenuView as _0x309b4d,MenuBarMenuListView as _0x2cdff7,MenuBarMenuListItemView as _0x3ce170,MenuBarMenuListItemButtonView as _0x59387d,ContextualBalloon as _0xc1c4a1,ToolbarSeparatorView as _0xc38d5b,IconView as _0x9be464,addListToDropdown as _0x469502,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 _0x4d0ace}from'luxon';class h extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x500d10(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x3b356f){super(),this['id']=_0x3b356f['id']||_0x1ab53a(),this['creator']=_0x3b356f['creator']||null,this['authors']=_0x3b356f['authors']||[],this['diffData']=_0x3b356f['diffData']||null,this['toVersion']=_0x3b356f['toVersion']||0x0,this['fromVersion']=_0x3b356f['fromVersion']||0x0,this['set']('name',_0x3b356f['name']||''),this['set']('createdAt',_0x3b356f['createdAt']||new Date()),this['set']('attributes',_0x3b356f['attributes']||{});}['setName'](_0x46da1b){this['_update']({'name':_0x46da1b});}['setAttribute'](_0x220dc2,_0x79083e){const _0x4b7ad7=_0x29c4bb(this['attributes']);_0x43682d(_0x4b7ad7,_0x220dc2,_0x79083e),this['_update']({'attributes':_0x4b7ad7});}['removeAttribute'](_0x44d08d){const _0x11950c=_0x29c4bb(this['attributes']);_0x80e773(_0x11950c,_0x44d08d),this['_update']({'attributes':_0x11950c});}['_update'](_0x12e1d2,_0x789b87=!0x1){let _0xef16ee=!0x1;const _0x35aa8e={'id':this['id']},_0x34d38d=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0xca44de of _0x34d38d){const _0x464c78=_0x12e1d2[_0xca44de];void 0x0!==_0x464c78&&_0x464c78!==this[_0xca44de]&&(this[_0xca44de]=_0x464c78,_0x35aa8e[_0xca44de]=_0x464c78,_0xef16ee=!0x0);}_0xef16ee&&(_0x35aa8e['authors']&&(_0x35aa8e['authorsIds']=_0x35aa8e['authors']['map'](_0x1a6523=>_0x1a6523['id']),delete _0x35aa8e['authors']),this['fire']('_update',_0x35aa8e,_0x789b87));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x56eeaf=>_0x56eeaf['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x5c4916{['_revisions'];static get['requires'](){return[_0x4c2647];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x4481bb){super(_0x4481bb),this['_revisions']=new _0x4162a6();}['afterInit'](){!async function(_0x2d25bb){const _0x13891b=_0x1ea3c3([0x36,0x32,0x53,0x6b,0x34,0x4d,0x77,0x54,0x6d,0x70,0x45,0x31,0x50,0x4b,0x76,0x46,0x65,0x59,0x56,0x55,0x68,0x79,0x51,0x73,0x6a,0x61,0x37,0x67,0x4e,0x4a,0x39,0x49,0x7a,0x48,0x33,0x43,0x38,0x44,0x42,0x72,0x6e,0x66,0x52,0x6f,0x4c,0x75,0x64,0x57,0x71,0x35,0x78,0x5a,0x63,0x58,0x47,0x41,0x74,0x62,0x6c,0x4f,0x30,0x69]),_0x2ce08f=0xeb829,_0x2d1c6f=0x6a39b9bb,_0x1b4a6f=0x6a3ed0b3^_0x2d1c6f,_0x491501=window[_0x1ea3c3([0x44,0x61,0x74,0x65])][_0x1ea3c3([0x6e,0x6f,0x77])](),_0x13447b=_0x2d25bb[_0x1ea3c3([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x37871c=new window[(_0x1ea3c3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2576a2=>{_0x13447b[_0x1ea3c3([0x6f,0x6e,0x63,0x65])](_0x1ea3c3([0x72,0x65,0x61,0x64,0x79]),_0x2576a2);}),_0x185578={[_0x1ea3c3([0x6b,0x74,0x79])]:_0x1ea3c3([0x45,0x43]),[_0x1ea3c3([0x75,0x73,0x65])]:_0x1ea3c3([0x73,0x69,0x67]),[_0x1ea3c3([0x63,0x72,0x76])]:_0x1ea3c3([0x50,0x2d,0x32,0x35,0x36]),[_0x1ea3c3([0x78])]:_0x1ea3c3([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]),[_0x1ea3c3([0x79])]:_0x1ea3c3([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]),[_0x1ea3c3([0x61,0x6c,0x67])]:_0x1ea3c3([0x45,0x53,0x32,0x35,0x36])},_0x118b55=_0x13447b[_0x1ea3c3([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1ea3c3([0x67,0x65,0x74])](_0x1ea3c3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2758b6(){let _0x16d96c,_0xbdcbbc=null,_0x1f1d19=null;try{if(_0x118b55==_0x1ea3c3([0x47,0x50,0x4c]))return _0x1ea3c3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x16d96c=_0x316940(),!_0x16d96c)return _0x1ea3c3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x16d96c[_0x1ea3c3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1f1d19=_0x256871(_0x16d96c[_0x1ea3c3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x16d96c[_0x1ea3c3([0x6a,0x74,0x69])])),await _0x4f7ac0()?_0xec3542()?_0x1614ca()?_0x1ea3c3([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x41051f()?(_0x16d96c[_0x1ea3c3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1ea3c3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xbdcbbc=_0x1dfdce(_0x1ea3c3([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x16d96c[_0x1ea3c3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1ea3c3([0x74,0x72,0x69,0x61,0x6c])&&(_0xbdcbbc=_0x1dfdce(_0x1ea3c3([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x29aeea()):_0x1ea3c3([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1ea3c3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1ea3c3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1ea3c3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1614ca(){const _0x4aee12=[_0x1ea3c3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1ea3c3([0x74,0x72,0x69,0x61,0x6c])][_0x1ea3c3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16d96c[_0x1ea3c3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x491501/0x3e8:0xe10*_0x1b4a6f;return _0x16d96c[_0x1ea3c3([0x65,0x78,0x70])]<_0x4aee12;}function _0xec3542(){const _0xac737a=_0x16d96c[_0x1ea3c3([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0xac737a)return!0x1;if(_0xac737a[_0x1ea3c3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ea3c3([0x2a])))return!0x0;if(_0xac737a[_0x1ea3c3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ea3c3([0x52,0x48])))return!0x0;if(_0xac737a[_0x1ea3c3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ea3c3([0x52,0x52,0x48]))){if(_0x1d3ca7())return!0x0;if(_0x4c6116()||_0x4652cc())return!0x0;}return!0x1;}function _0x41051f(){const _0x586584=_0x16d96c[_0x1ea3c3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x586584||0x0==_0x586584[_0x1ea3c3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x26b772}=new URL(window[_0x1ea3c3([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x586584[_0x1ea3c3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x26b772))return!0x0;const _0x232296=_0x26b772[_0x1ea3c3([0x73,0x70,0x6c,0x69,0x74])](_0x1ea3c3([0x2e]));return _0x586584[_0x1ea3c3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4050df=>_0x4050df[_0x1ea3c3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ea3c3([0x2a])))[_0x1ea3c3([0x6d,0x61,0x70])](_0x5b6a69=>_0x5b6a69[_0x1ea3c3([0x73,0x70,0x6c,0x69,0x74])](_0x1ea3c3([0x2e])))[_0x1ea3c3([0x73,0x6f,0x6d,0x65])](_0x2e38d4=>_0x232296[_0x1ea3c3([0x65,0x76,0x65,0x72,0x79])]((_0x1b1919,_0x147bb7)=>_0x2e38d4[_0x147bb7]===_0x1b1919||_0x2e38d4[_0x147bb7]===_0x1ea3c3([0x2a])));}function _0x29aeea(){return _0xbdcbbc&&_0x1f1d19?new window[(_0x1ea3c3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xb30f6,_0x3e3694)=>{_0xbdcbbc[_0x1ea3c3([0x74,0x68,0x65,0x6e])](_0xb30f6,_0x3e3694),_0x1f1d19[_0x1ea3c3([0x74,0x68,0x65,0x6e])](_0xa26e8d=>{_0xa26e8d!=_0x1ea3c3([0x56,0x61,0x6c,0x69,0x64])&&_0xb30f6(_0xa26e8d);},_0x3e3694);}):_0xbdcbbc||_0x1f1d19||_0x1ea3c3([0x56,0x61,0x6c,0x69,0x64]);}}function _0x256871(_0x4c8132,_0x3a6ab2){return new window[(_0x1ea3c3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3f097e=>{if(_0x267523())return _0x3f097e(_0x1ea3c3([0x56,0x61,0x6c,0x69,0x64]));_0x1e590f(),_0x13447b[_0x1ea3c3([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1ea3c3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4b3334=!0x1;const _0x3d5a7a=_0x1ab53a();function _0x203659(_0x343b75){return!!_0x343b75&&(typeof _0x343b75===_0x1ea3c3([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x343b75===_0x1ea3c3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x343b75[_0x1ea3c3([0x74,0x68,0x65,0x6e])]===_0x1ea3c3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x343b75[_0x1ea3c3([0x63,0x61,0x74,0x63,0x68])]===_0x1ea3c3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5d3bf3(_0x4e5dc8){_0x196f8b(_0x4e5dc8)[_0x1ea3c3([0x74,0x68,0x65,0x6e])](_0x37d4b7=>{if(!_0x37d4b7||_0x37d4b7[_0x1ea3c3([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1ea3c3([0x6f,0x6b]))return _0x1ea3c3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x51cf34(_0x1b0f3a(_0x3d5a7a+_0x3a6ab2))!=_0x37d4b7[_0x1ea3c3([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1ea3c3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1ea3c3([0x56,0x61,0x6c,0x69,0x64]);})[_0x1ea3c3([0x74,0x68,0x65,0x6e])](_0x14594f=>(_0x11ed55(),_0x14594f),()=>{const _0x1925b9=_0x49db42();return null==_0x1925b9?(_0x11ed55(),_0x1ea3c3([0x56,0x61,0x6c,0x69,0x64])):_0x1ea3c3(_0x491501-_0x1925b9>(0x4e353dbb^_0x2d1c6f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1ea3c3([0x74,0x68,0x65,0x6e])](_0x3f097e)[_0x1ea3c3([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3f097e(_0x1ea3c3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1b41c5=0x6a0f573b^_0x2d1c6f;function _0x11ed55(){const _0x179463=_0x1ea3c3([0x6c,0x6c,0x63,0x74,0x2d])+_0x51cf34(_0x1b0f3a(_0x4c8132)),_0x5e3a4a=_0x35e2c0(_0x51cf34(window[_0x1ea3c3([0x4d,0x61,0x74,0x68])][_0x1ea3c3([0x63,0x65,0x69,0x6c])](_0x491501/_0x1b41c5)));window[_0x1ea3c3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1ea3c3([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x179463,_0x5e3a4a);}function _0x49db42(){const _0x3548d8=_0x1ea3c3([0x6c,0x6c,0x63,0x74,0x2d])+_0x51cf34(_0x1b0f3a(_0x4c8132)),_0x14bd61=window[_0x1ea3c3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1ea3c3([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3548d8);return _0x14bd61?window[_0x1ea3c3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x35e2c0(_0x14bd61),0x10)*_0x1b41c5:null;}function _0x196f8b(_0x35a272){return new window[(_0x1ea3c3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x40ab44,_0x58f99c)=>{_0x35a272[_0x1ea3c3([0x74,0x68,0x65,0x6e])](_0x40ab44,_0x58f99c),window[_0x1ea3c3([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x58f99c,0x6a386d7b^_0x2d1c6f);});}}_0x13447b[_0x1ea3c3([0x6f,0x6e])](_0x1ea3c3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3437f6,_0xb997c8)=>{if(_0xb997c8[0x0]!=_0x4c8132)return _0x3f097e(_0x1ea3c3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xb997c8[0x1]={..._0xb997c8[0x1],[_0x1ea3c3([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3d5a7a};},{[_0x1ea3c3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1ea3c3([0x68,0x69,0x67,0x68])}),_0x13447b[_0x1ea3c3([0x6f,0x6e])](_0x1ea3c3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x31a0a9=>{_0x203659(_0x31a0a9[_0x1ea3c3([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4b3334=!0x0,_0x5d3bf3(_0x31a0a9[_0x1ea3c3([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1ea3c3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1ea3c3([0x6c,0x6f,0x77])}),_0x37871c[_0x1ea3c3([0x74,0x68,0x65,0x6e])](()=>{_0x4b3334||_0x3f097e(_0x1ea3c3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x267523(){return _0x13447b[_0x1ea3c3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1ea3c3([0x76,0x69,0x65,0x77])][_0x1ea3c3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1ea3c3([0x61,0x75,0x74,0x6f]);}function _0x1e590f(){_0x13447b[_0x1ea3c3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1ea3c3([0x76,0x69,0x65,0x77])][_0x1ea3c3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1ea3c3([0x61,0x75,0x74,0x6f]);}}function _0x1dfdce(_0x11f907){const _0x1fdd25=[new window[(_0x1ea3c3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5250cc=>setTimeout(_0x5250cc,0x6a308777^_0x2d1c6f)),_0x37871c[_0x1ea3c3([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1ea3c3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x35458c=>{const _0x50894c=0x6a39b9bc^_0x2d1c6f,_0x5afad3=_0x2d25bb[_0x1ea3c3([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x42d8c7(){_0x5afad3[_0x1ea3c3([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x50894c&&_0x35458c();}_0x42d8c7(),_0x5afad3[_0x1ea3c3([0x6f,0x6e])](_0x1ea3c3([0x61,0x64,0x64]),_0x42d8c7);})),new window[(_0x1ea3c3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x575346=>{function _0x4e9764(){for(const _0x40555a in window)if(window[_0x1ea3c3([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x1ea3c3([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x40555a))&&window[_0x40555a]==_0x2ce08f)return _0x575346();_0x13447b[_0x1ea3c3([0x73,0x74,0x61,0x74,0x65])]!=_0x1ea3c3([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x1ea3c3([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4e9764,0x6a39aa33^_0x2d1c6f);}_0x512020(_0x1ea3c3([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x4e9764();})];return window[_0x1ea3c3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1ea3c3([0x72,0x61,0x63,0x65])](_0x1fdd25)[_0x1ea3c3([0x74,0x68,0x65,0x6e])](()=>_0x11f907);}async function _0x1c5283(){if(await _0x37871c,_0x512020(_0x1ea3c3([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x5644b4=_0x2d25bb[_0x1ea3c3([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x4229fa=_0x2d25bb[_0x1ea3c3([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])](_0x5644b4[_0x1ea3c3([0x69,0x64])]),_0xac2fcf=_0x5764a5(_0x1ea3c3([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0xac2fcf[_0x1ea3c3([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x5644b4['id'],_0x4229fa?_0x4229fa['id']:null,!0x0),_0xac2fcf[_0x1ea3c3([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x1ea3c3([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0xac2fcf[_0x1ea3c3([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0xac2fcf[_0x1ea3c3([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x1b48a8,void(_0xac2fcf[_0x1ea3c3([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x1b48a8);}if(_0x512020(_0x1ea3c3([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x35f5e8=_0x5764a5(_0x1ea3c3([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x35f5e8[_0x1ea3c3([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x1ea3c3([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x35f5e8[_0x1ea3c3([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x35f5e8[_0x1ea3c3([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x1b48a8,_0x35f5e8[_0x1ea3c3([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x1b48a8;}_0x13447b[_0x1ea3c3([0x6d,0x6f,0x64,0x65,0x6c])][_0x1ea3c3([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1b48a8,_0x13447b[_0x1ea3c3([0x6d,0x6f,0x64,0x65,0x6c])][_0x1ea3c3([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1b48a8,_0x13447b[_0x1ea3c3([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1ea3c3([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1d3ca7(){return _0x512020(_0x1ea3c3([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x5764a5(_0x1ea3c3([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x1ea3c3([0x73,0x74,0x61,0x74,0x65])]==_0x1ea3c3([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4c6116(){return _0x512020(_0x1ea3c3([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 _0x4652cc(){return _0x512020(_0x1ea3c3([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x150b08(_0x13c91d){const _0x522019=_0x4e5b99();_0x13447b[_0x522019]=_0x1ea3c3([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])+_0x13c91d,_0x13c91d[_0x1ea3c3([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x1ea3c3([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x4e5b99()]=_0x2ce08f),_0x13c91d!=_0x1ea3c3([0x56,0x61,0x6c,0x69,0x64])&&_0x1c5283();}function _0x4e5b99(){const _0x5beeb2=window[_0x1ea3c3([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1ea3c3([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1ea3c3([0x6e,0x6f,0x77])]())[_0x1ea3c3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1ea3c3([0x2e]),'');let _0x3d8418=_0x1ea3c3([0x53]);for(let _0x39f3c8=0x0;_0x39f3c8<_0x5beeb2[_0x1ea3c3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x39f3c8+=0x2){let _0x129ad9=window[_0x1ea3c3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5beeb2[_0x1ea3c3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x39f3c8,_0x39f3c8+0x2));_0x129ad9>=_0x13891b[_0x1ea3c3([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x129ad9-=_0x13891b[_0x1ea3c3([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3d8418+=_0x13891b[_0x129ad9];}return _0x3d8418;}function _0x316940(){const _0x313eaa=_0x118b55[_0x1ea3c3([0x73,0x70,0x6c,0x69,0x74])](_0x1ea3c3([0x2e]));if(0x3!=_0x313eaa[_0x1ea3c3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x200b49(_0x313eaa[0x1]);function _0x200b49(_0x44fc77){const _0x34f9a9=_0x2ef2fa(_0x44fc77);return _0x34f9a9&&_0x487d42()?_0x34f9a9:null;function _0x487d42(){const _0x37c02a=_0x34f9a9[_0x1ea3c3([0x6a,0x74,0x69])],_0x5507df=window[_0x1ea3c3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x37c02a[_0x1ea3c3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x37c02a[_0x1ea3c3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x40ac28={..._0x34f9a9,[_0x1ea3c3([0x6a,0x74,0x69])]:_0x37c02a[_0x1ea3c3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x37c02a[_0x1ea3c3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x40ac28[_0x1ea3c3([0x76,0x63])],_0x1b0f3a(_0x40ac28)==_0x5507df;}}}async function _0x4f7ac0(){let _0x534775=!0x0;try{const _0x10da4c=_0x118b55[_0x1ea3c3([0x73,0x70,0x6c,0x69,0x74])](_0x1ea3c3([0x2e])),[_0x2e0fc0,_0x132813,_0x56ef0c]=_0x10da4c;return _0x44c086(_0x2e0fc0),await _0x556741(_0x2e0fc0,_0x132813,_0x56ef0c),_0x534775;}catch{return!0x1;}function _0x44c086(_0x219402){const _0x3dc9e1=_0x2ef2fa(_0x219402);_0x3dc9e1&&_0x3dc9e1[_0x1ea3c3([0x61,0x6c,0x67])]==_0x1ea3c3([0x45,0x53,0x32,0x35,0x36])||(_0x534775=!0x1);}async function _0x556741(_0x7481fe,_0x537af7,_0x503864){const _0x2a9fd9=window[_0x1ea3c3([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1ea3c3([0x66,0x72,0x6f,0x6d])](_0x1746ec(_0x503864),_0x3a8d66=>_0x3a8d66[_0x1ea3c3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xd23e49=new window[(_0x1ea3c3([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1ea3c3([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x7481fe+_0x1ea3c3([0x2e])+_0x537af7),_0x350455=window[_0x1ea3c3([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1ea3c3([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x350455)return;const _0x328cbf=await _0x350455[_0x1ea3c3([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1ea3c3([0x6a,0x77,0x6b]),_0x185578,{[_0x1ea3c3([0x6e,0x61,0x6d,0x65])]:_0x1ea3c3([0x45,0x43,0x44,0x53,0x41]),[_0x1ea3c3([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1ea3c3([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1ea3c3([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x350455[_0x1ea3c3([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1ea3c3([0x6e,0x61,0x6d,0x65])]:_0x1ea3c3([0x45,0x43,0x44,0x53,0x41]),[_0x1ea3c3([0x68,0x61,0x73,0x68])]:{[_0x1ea3c3([0x6e,0x61,0x6d,0x65])]:_0x1ea3c3([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x328cbf,_0x2a9fd9,_0xd23e49)||(_0x534775=!0x1);}}function _0x2ef2fa(_0x3e7bae){return _0x3e7bae[_0x1ea3c3([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1ea3c3([0x65,0x79]))?JSON[_0x1ea3c3([0x70,0x61,0x72,0x73,0x65])](_0x1746ec(_0x3e7bae)):null;}function _0x1746ec(_0x1e13cd){return window[_0x1ea3c3([0x61,0x74,0x6f,0x62])](_0x1e13cd[_0x1ea3c3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1ea3c3([0x2b]))[_0x1ea3c3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1ea3c3([0x2f])));}function _0x1b0f3a(_0x55506a){let _0x30deb0=0x1505;function _0x37fff2(_0x5a2085){for(let _0x1eba26=0x0;_0x1eba26<_0x5a2085[_0x1ea3c3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1eba26++){const _0x4b9f86=_0x5a2085[_0x1ea3c3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1eba26);_0x30deb0=(_0x30deb0<<0x5)+_0x30deb0+_0x4b9f86,_0x30deb0&=_0x30deb0;}}function _0x3d8952(_0x5c40a3){Array[_0x1ea3c3([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5c40a3)?_0x5c40a3[_0x1ea3c3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3d8952):_0x5c40a3&&typeof _0x5c40a3==_0x1ea3c3([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1ea3c3([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5c40a3)[_0x1ea3c3([0x73,0x6f,0x72,0x74])]()[_0x1ea3c3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3a58cf,_0x224775])=>{_0x37fff2(_0x3a58cf),_0x3d8952(_0x224775);}):_0x37fff2(window[_0x1ea3c3([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5c40a3));}return _0x3d8952(_0x55506a),_0x30deb0>>>0x0;}function _0x51cf34(_0x258ed1){return _0x258ed1[_0x1ea3c3([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1ea3c3([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1ea3c3([0x30]));}function _0x35e2c0(_0x2be481){return _0x2be481[_0x1ea3c3([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1ea3c3([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1ea3c3([0x6a,0x6f,0x69,0x6e])]('');}function _0x512020(_0x3667f2){return _0x13447b[_0x1ea3c3([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1ea3c3([0x68,0x61,0x73])](_0x3667f2);}function _0x5764a5(_0x3157ac){return _0x13447b[_0x1ea3c3([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1ea3c3([0x67,0x65,0x74])](_0x3157ac);}function _0x1b48a8(){}function _0x1ea3c3(_0x3cf913){return _0x3cf913['map'](_0x5d7592=>String['fromCharCode'](_0x5d7592))['join']('');}_0x150b08(await _0x2758b6());}(this);}['createRevision'](_0x1daa16){const _0x4384db=this['editor']['plugins']['get']('Users');return new h({'id':_0x1daa16['id'],'name':_0x1daa16['name'],'creator':_0x1daa16['creatorId']?_0x4384db['getUser'](_0x1daa16['creatorId']):null,'diffData':_0x1daa16['diffData']||_0x1daa16['data'],'authors':_0x1daa16['authorsIds']['map'](_0x40563e=>_0x4384db['getUser'](_0x40563e)),'createdAt':new Date(_0x1daa16['createdAt']),'attributes':_0x1daa16['attributes'],'fromVersion':_0x1daa16['fromVersion'],'toVersion':_0x1daa16['toVersion']});}['addRevision'](_0x135a22,_0x36f5d2=0x0){this['_revisions']['add'](_0x135a22,_0x36f5d2);}['getRevision'](_0x11079b){return this['_revisions']['get'](_0x11079b);}['getRevisions'](_0x895e9={'toJSON':!0x1}){const _0xd6e421=Array['from'](this['_revisions']);return _0xd6e421['reverse'](),_0x895e9['toJSON']?_0xd6e421['map'](_0x5b25e6=>_0x5b25e6['toJSON']()):_0xd6e421;}['getIndex'](_0x3acfba){return this['_revisions']['getIndex'](_0x3acfba);}['getEarlierVisibleRevision'](_0x4ec56b){const [,_0x348a14]=this['getRevisionsIterator'](_0x4ec56b,{'direction':'earlier'});return _0x348a14;}['getLaterVisibleRevision'](_0x470d43){const [,_0x3d1ec7]=this['getRevisionsIterator'](_0x470d43,{'direction':'later'});return _0x3d1ec7;}['getRevisionsInDiff'](_0x1f54c6){const _0x42f7ff=[];for(const _0xa06274 of this['getRevisionsIterator'](_0x1f54c6['newRevisionId']))if(_0x42f7ff['push'](_0xa06274),_0xa06274['id']===_0x1f54c6['oldRevisionId'])break;return _0x42f7ff;}*['getRevisionsIterator'](_0x5c3f99,{direction:_0x41aae7='earlier',filter:_0x15524c=()=>!0x0}={}){const _0x2f526c='earlier'===_0x41aae7?0x1:-0x1;let _0x22686c=this['_revisions']['get'](_0x5c3f99),_0x5c5e0b=this['getIndex'](_0x22686c);for(yield _0x22686c;_0x22686c;){if(_0x5c5e0b+=_0x2f526c,_0x22686c=this['getRevision'](_0x5c5e0b),!_0x22686c)return;_0x15524c(_0x22686c)&&(yield _0x22686c);}}}class V extends _0x5c4916{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x3fb9e6,'c'],[_0x1daac8,'a'],[_0x31ec5d,'e'],[_0x17a450,'r'],[_0x4813d9,'u']]);['_typeCharToViewClass']=new Map([['c',_0x3fb9e6],['a',_0x1daac8],['e',_0x31ec5d],['r',_0x17a450],['u',_0x4813d9]]);async['loadRevisionData'](_0x26826c,_0x2f040b){if(_0x26826c['diffData']||!_0x2f040b)return;const _0xc82d46=this['editor']['config']['get']('collaboration.channelId'),_0x41b01c=await _0x2f040b['getRevision']({'channelId':_0xc82d46,'revisionId':_0x26826c['id']});_0x26826c['diffData']=_0x41b01c['diffData'];}['getRevisionDocumentData'](_0x2d1b55){const _0x32c707={};for(const _0x5b6b60 in _0x2d1b55['diffData']){if(_0x2d1b55['diffData'][_0x5b6b60]['attachChange']&&!_0x2d1b55['diffData'][_0x5b6b60]['attachChange']['isAttached'])continue;const _0x2f2bb9=this['_removeRevisionMarkers'](JSON['parse'](_0x2d1b55['diffData'][_0x5b6b60]['insertions'])),_0x3f779c=this['editor']['editing']['view']['document'],_0x42f592=new _0x3b13e8(_0x3f779c,_0x2f2bb9['map'](_0x30aec7=>this['_getViewFromDiffObj'](_0x30aec7,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x32c707[_0x5b6b60]=this['editor']['data']['processor']['toData'](_0x42f592),this['editor']['data']['processor']['useFillerType']('default');}return _0x32c707;}['getRevisionRootsAttributes'](_0x5bc8cc){const _0x3a0480={};for(const _0x2c7dd7 in _0x5bc8cc['diffData'])_0x5bc8cc['diffData'][_0x2c7dd7]['attachChange']&&!_0x5bc8cc['diffData'][_0x2c7dd7]['attachChange']['isAttached']||(_0x3a0480[_0x2c7dd7]=_0x5bc8cc['diffData'][_0x2c7dd7]['attributesAfter']||{});return _0x3a0480;}['_getTypeCharForViewElement'](_0x4a974b){return this['_viewClassToTypeChar']['get'](_0x4a974b['constructor']);}['_getViewFromDiffObj'](_0x4b0537,_0x2a4f5e){const _0x30d6f7=this['editor']['editing']['view']['document'];if('string'==typeof _0x4b0537)return new _0x276860(_0x30d6f7,_0x4b0537);{let _0x292720,_0x44e581;_0x44e581='u'==_0x4b0537['type']||'r'==_0x4b0537['type']?[]:_0x4b0537['children']['map'](_0x1561a3=>this['_getViewFromDiffObj'](_0x1561a3,_0x2a4f5e));const _0x3fc3e8=this['_typeCharToViewClass']['get'](_0x4b0537['type'])||_0x306f73,_0x50f86a=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x292720=new _0x3fc3e8(_0x30d6f7,_0x4b0537['name'],_0x4b0537['attributes'],_0x44e581),'u'==_0x4b0537['type']&&_0x4b0537['children'][0x0]){const _0x5cc29e=_0x4b0537['children'][0x0];if(_0x292720['render']=function(_0x5c1762){const _0x59822a=_0x5c1762['createElement']('div');return _0x59822a['innerHTML']=_0x5cc29e,_0x59822a['childNodes'][0x0];},_0x2a4f5e){const _0x4af418=new _0x3b13e8(_0x30d6f7);_0x4af418['_appendChild'](_0x292720);const _0x268b49=Array['from'](_0x50f86a['viewChildrenToDom'](_0x4af418,{'bind':!0x1})),_0x4bc2e5=_0x50f86a['domDocument']['createElement']('div');_0x4bc2e5['append'](..._0x268b49),_0x292720=Array['from'](_0x50f86a['domChildrenToView'](_0x4bc2e5))[0x0];}}else{if('r'==_0x4b0537['type']&&_0x4b0537['children'][0x0]){const _0x2ba665=_0x4b0537['children'][0x0];if(_0x292720['render']=function(_0x4847ad){_0x4847ad['innerHTML']=_0x2ba665;},_0x2a4f5e){const _0x353207=new _0x3b13e8(_0x30d6f7);_0x353207['_appendChild'](_0x292720);const _0xf2ae2d=Array['from'](_0x50f86a['viewChildrenToDom'](_0x353207,{'bind':!0x1})),_0x30f5e2=_0x50f86a['domDocument']['createElement']('div');_0x30f5e2['append'](..._0xf2ae2d);const _0x5171c3=Array['from'](_0x50f86a['domChildrenToView'](_0x30f5e2));_0x5171c3['length']>0x1?_0x292720['_appendChild'](_0x5171c3):_0x292720=_0x5171c3[0x0];}}}if(_0x4b0537['customProperties']){for(const [_0xeb5709,_0x40841f]of _0x4b0537['customProperties'])_0x292720['_setCustomProperty'](_0xeb5709,_0x40841f);}const _0x48b979=void 0x0===_0x4b0537['fillerOffset']?null:_0x4b0537['fillerOffset'];return null!==_0x48b979&&(_0x292720['getFillerOffset']=()=>_0x48b979),_0x292720;}}['_makeModelFromViewString'](_0x1f10dc){const _0x225f5b=JSON['parse'](_0x1f10dc),_0x4296e6=this['editor']['editing']['view']['document'],_0x357efc=new _0x3b13e8(_0x4296e6,_0x225f5b['map'](_0x5acdc6=>this['_getViewFromDiffObj'](_0x5acdc6,!0x0)));return this['editor']['data']['toModel'](_0x357efc);}['_removeRevisionMarkers'](_0xdee19d){return(_0xdee19d=_0xdee19d['filter'](_0x82b73b=>!_0x82b73b['name']||'revision-start'!==_0x82b73b['name']&&'revision-end'!==_0x82b73b['name']))['forEach'](_0x43ac8c=>{'string'!=typeof _0x43ac8c&&(_0x43ac8c['children']=this['_removeRevisionMarkers'](_0x43ac8c['children']),_0x43ac8c['attributes']=_0x43ac8c['attributes']['filter'](_0xfbbb8b=>!_0xfbbb8b[0x0]['startsWith']('data-revision-')));}),_0xdee19d;}}function g(_0x518982,_0x4d28c7,_0x4c93e8){const t=_0x518982['t'];switch(_0x4d28c7){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'},_0x4c93e8);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x4c93e8);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 _0x5c4916{['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[_0x4c2647,I,V,_0x5a2bc0];}constructor(_0x6bb4f2){super(_0x6bb4f2),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 _0x2abbb5=_0x1ab53a();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x2abbb5},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 _0x23a994=this['repository']['getRevision'](0x0),_0x28df65=_0x23a994&&null===_0x23a994['creator']?_0x23a994:null;if(this['_continueCurrentRevision']=!!_0x28df65&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x1c0249=this['_source']['getCurrentRevisionId'](),_0xfd957f=this['repository']['getRevision'](_0x1c0249);if(_0xfd957f)this['_startingVersion']=_0xfd957f['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x58174d=this['_source']['history']['_operations']['find'](_0x42ec73=>!_0x42ec73['_isInit']),_0x5bae04=_0x58174d?_0x58174d['baseVersion']:this['_source']['history']['version'];_0x23a994?(_0x23a994['toVersion']<_0x5bae04&&_0x23a994['_update']({'toVersion':_0x5bae04}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x28df65['id'],this['_startingVersion']=_0x28df65['fromVersion']):(this['_startingVersion']=_0x23a994['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x5bae04,this['_continueCurrentRevision']=!0x1);}}else _0x28df65&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x28df65['toVersion'],this['editor']['model']['document']['history']['version']),_0x28df65['fromVersion']===_0x28df65['toVersion']?(0x0!==_0x28df65['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x28df65['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x28df65['id'],this['_startingVersion']=_0x28df65['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',_0x5c15c7=>!_0x5c15c7),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x48256c=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x227130;for(const _0x28c436 in _0x48256c){const _0x3631ba=_0x28c436,_0x14a780=_0x48256c[_0x3631ba];if('revisionHistoryLicenseKeyValid'==_0x14a780||'revisionHistoryLicenseKeyInvalid'==_0x14a780||'revisionHistoryLicenseKeyExpired'==_0x14a780||'revisionHistoryLicenseKeyDomainLimit'==_0x14a780||'revisionHistoryLicenseKeyNotAllowed'==_0x14a780||'revisionHistoryLicenseKeyEvaluationLimit'==_0x14a780||'revisionHistoryLicenseKeyTrialLimit'==_0x14a780||'revisionHistoryLicenseKeyUsageLimit'==_0x14a780){delete _0x48256c[_0x3631ba],_0x227130=_0x14a780,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x227130&&_0x48256c['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x227130&&_0x48256c['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x227130&&_0x48256c['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x227130&&_0x48256c['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x227130&&_0x48256c['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x227130&&_0x48256c['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x227130&&_0x48256c['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x15a64d=this['repository']['getRevision'](0x0),_0xe50a80=await this['getRevisionDocumentData'](_0x15a64d),_0x20005f=await this['getRevisionRootsAttributes'](_0x15a64d);this['_replaceEditorDataWithRevisionData'](_0xe50a80,_0x20005f);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x3f8105){this['_source']=_0x3f8105;}async['update'](){const _0x68554a=await this['_source']['getLatestVersion']();if(_0x68554a>this['currentRevision']['toVersion']){await this['_loadState']();const _0x4fe07e=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x68554a});_0x4fe07e['authors']=_0x4fe07e['authorsIds']['map'](_0x30e2c8=>this['editor']['plugins']['get']('Users')['getUser'](_0x30e2c8)),this['currentRevision']['_update'](_0x4fe07e);}}async['saveRevision'](_0xae1e61={},_0x2f4e79=null){const _0x22ef3e=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x2f4e79>this['currentRevision']['toVersion']&&(_0x2f4e79=null),null===_0x2f4e79&&(_0x2f4e79=await this['_source']['getLatestVersion']());const _0x5d0ca2=this['_getFromVersion'](_0x2f4e79),_0x31263e=this['buildRevisionData']({'from':_0x5d0ca2,'to':_0x2f4e79});if(this['currentRevision']['toVersion']<_0x2f4e79){const _0x3d67f9=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x2f4e79,'to':_0x2f4e79});_0x3d67f9['authors']=[],_0x3d67f9['authorsIds']=[],_0x3d67f9['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x3d67f9,!0x0),delete _0x3d67f9['authors'],_0x22ef3e['push'](_0x3d67f9);}_0xae1e61['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0xae1e61['name']=_0xae1e61['name']||null,_0xae1e61['id']=_0xae1e61['id']||_0x1ab53a(),_0xae1e61={..._0xae1e61,..._0x31263e};const _0x51db21=this['addRevisionData'](_0xae1e61);_0x22ef3e['push'](_0xae1e61);const _0x3e0ce1=this['repository']['getIndex'](_0x51db21);if(0x0!==_0x3e0ce1){const _0x4f003c=this['repository']['getRevision'](_0x3e0ce1-0x1);if(_0x4f003c['fromVersion']!==_0x2f4e79){const _0x4f9ce4=this['_revisionDataBuilder']['getData'](_0x2f4e79,_0x4f003c['toVersion']),_0x2997e9={'id':_0x4f003c['id'],'diffData':_0x4f9ce4['diffData'],'authorsIds':_0x4f9ce4['authorsIds'],'authors':_0x4f9ce4['authorsIds']['map'](_0x5edc56=>this['editor']['plugins']['get']('Users')['getUser'](_0x5edc56)),'fromVersion':_0x2f4e79};_0x4f003c===this['currentRevision']&&(_0x2997e9['createdAt']=new Date(_0xae1e61['createdAt']['getTime']()+0xa)),_0x4f003c['_update'](_0x2997e9,!0x0),delete _0x2997e9['authors'],_0x22ef3e['push'](_0x2997e9);}}if(this['adapter']){for(const _0x1392e8 of _0x22ef3e)this['_bufferUpdate'](_0x1392e8['id'],_0x1392e8,!0x0);this['sendBufferedUpdates']();}return _0x51db21;}['addRevisionData'](_0x5a134a){const _0x3b0172=this['repository']['createRevision'](_0x5a134a);return this['adapter']&&_0x3b0172['on']('_update',(_0x27b063,_0x43053d,_0x499dd0)=>{_0x499dd0||(this['_bufferUpdate'](_0x43053d['id'],_0x43053d,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x3b0172,this['_findInsertionIndex'](_0x3b0172)),_0x3b0172;}async['getRevisionDocumentData'](_0x585ac1){return await this['_utils']['loadRevisionData'](_0x585ac1,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x585ac1);}async['getRevisionRootsAttributes'](_0xf10d8c){return await this['_utils']['loadRevisionData'](_0xf10d8c,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0xf10d8c);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x501a3a=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x3767c7=0x0;_0x3767c7<_0x501a3a['length'];_0x3767c7++){const _0x20ea7b=_0x501a3a[_0x3767c7];let _0x5b7eb3=!0x1;for(const _0xf3cc66 of Object['keys'](_0x20ea7b))void 0x0===_0x20ea7b[_0xf3cc66]?delete _0x20ea7b[_0xf3cc66]:'id'!==_0xf3cc66&&(_0x5b7eb3=!0x0);_0x5b7eb3||(_0x501a3a[_0x3767c7]=null);}if(_0x501a3a=_0x501a3a['filter'](_0x164962=>null!==_0x164962),!_0x501a3a['length'])return;for(let _0x114d09=0x0;_0x114d09<_0x501a3a['length'];_0x114d09++){const _0x468c0b=_0x501a3a[_0x114d09];void 0x0!==_0x468c0b['fromVersion']&&void 0x0===_0x468c0b['toVersion']&&(_0x468c0b['toVersion']=this['repository']['getRevision'](_0x468c0b['id'])['toVersion']),void 0x0!==_0x468c0b['toVersion']&&void 0x0===_0x468c0b['fromVersion']&&(_0x468c0b['fromVersion']=this['repository']['getRevision'](_0x468c0b['id'])['fromVersion']);}const _0x48eb76=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x501a3a,_0x48eb76)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x146a0c=>{if(_0x146a0c){for(const _0x4731d0 of _0x146a0c)this['setRevisionData']({'id':_0x4731d0['id'],'createdAt':_0x4731d0['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x28191a=null,from:_0x37eaea=null,to:_0x3b892e=null}){_0x37eaea=null!==_0x37eaea?_0x37eaea:_0x28191a['fromVersion'],_0x3b892e=null!==_0x3b892e?_0x3b892e:_0x28191a['toVersion'];const _0x4408b9=this['_revisionDataBuilder']['getData'](_0x37eaea,_0x3b892e),_0x10e516={'diffData':_0x4408b9['diffData'],'authorsIds':_0x4408b9['authorsIds'],'fromVersion':_0x37eaea,'toVersion':_0x3b892e};if(!_0x28191a||_0x3b892e!==_0x28191a['toVersion']){const _0x3e2397=_0x3b892e-0x1,_0x2e47a5=this['_source']['history']['getOperation'](_0x3e2397);_0x10e516['createdAt']=_0x2e47a5&&_0x2e47a5['createdAt']||new Date();}if(this['_loadedStateData']&&_0x37eaea===this['_loadedStateData']['fromVersion']){for(const _0x275303 of this['_loadedStateData']['authors'])_0x10e516['authorsIds']['includes'](_0x275303['id'])||_0x10e516['authorsIds']['push'](_0x275303['id']);}return _0x10e516;}['_bufferUpdate'](_0x29fe32,_0x3f2b8b,_0x35c933){if(this['_bufferedUpdates']['has'](_0x29fe32)){const _0x44414a=this['_bufferedUpdates']['get'](_0x29fe32);_0x3f2b8b=_0x35c933?{..._0x44414a,..._0x3f2b8b}:{..._0x3f2b8b,..._0x44414a};}this['_bufferedUpdates']['set'](_0x29fe32,_0x3f2b8b);}['setRevisionData'](_0x320b5c){const _0x479fd7=this['repository']['getRevision'](_0x320b5c['id']);if(_0x320b5c['createdAt']&&(_0x320b5c['createdAt']=new Date(_0x320b5c['createdAt'])),_0x320b5c['authorsIds']){const _0x3f4483=this['editor']['plugins']['get']('Users');_0x320b5c['authors']=_0x320b5c['authorsIds']['map'](_0x2b38e7=>_0x3f4483['getUser'](_0x2b38e7));}_0x479fd7['_update'](_0x320b5c,!0x0);}['_createInitialRevision'](_0x1be78e){const _0x474005=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x474005)this['_initialRevisionId']=_0x474005['id'];else{const _0x30856c=!this['editor']['model']['document']['roots']['find'](_0x2f4501=>this['editor']['model']['hasContent'](_0x2f4501)),_0xa289f1=this['editor']['plugins']['get']('Users')['me']['id'],_0x228cd6=g(this['editor']['locale'],_0x30856c?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x1be78e,'to':_0x1be78e,'id':this['_initialRevisionId'],'name':_0x228cd6,'creatorId':_0xa289f1});}}['_createCurrentRevision'](_0x2b658a){const _0x12d7bc=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x12d7bc),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x2b658a,'to':_0x2b658a,'id':_0x12d7bc,'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'](_0x2922bf,_0x5a5387){let _0x38e05d=this['editor']['config']['get']('initialData'),_0x1725b6=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x38e05d){_0x38e05d={};for(const _0x2ed883 of this['editor']['model']['document']['getRootNames']())_0x38e05d[_0x2ed883]='';}if('string'==typeof _0x38e05d&&(_0x38e05d={'main':_0x38e05d}),void 0x0===_0x1725b6){_0x1725b6={};for(const _0xdf33f6 of this['editor']['model']['document']['getRootNames']())_0x1725b6[_0xdf33f6]={};}let _0x3c805b=!0x1;const _0x23e3ef=Object['keys'](_0x38e05d),_0x54accc=Object['keys'](_0x2922bf);for(const _0x3c0fe3 of _0x23e3ef){if(_0x38e05d[_0x3c0fe3]!==_0x2922bf[_0x3c0fe3]&&''!==_0x38e05d[_0x3c0fe3]['trim']()){_0x3c805b=!0x0;break;}if(!_0x5d78f6(_0x1725b6[_0x3c0fe3],_0x5a5387[_0x3c0fe3])&&Object['keys'](_0x1725b6[_0x3c0fe3])['length']>0x0){_0x3c805b=!0x0;break;}}_0x3c805b||(_0x3c805b=_0x54accc['some'](_0x4e6578=>!this['editor']['model']['document']['getRoot'](_0x4e6578))),_0x3c805b&&_0x3f9a20('editor-initial-data-replaced-with-revision-data',{'editorData':_0x38e05d,'editorRootsAttributes':_0x1725b6,'revisionData':_0x2922bf,'revisionRootsAttributes':_0x5a5387}),this['editor']['config']['set']('initialData',_0x2922bf),this['editor']['config']['set']('rootsAttributes',_0x5a5387);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x54129c=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x54129c['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x5f149e){const _0x4f284f=this['repository']['getRevisions']();_0x4f284f['reverse']();let _0x572b3a=0x0;for(;_0x572b3a<_0x4f284f['length'];){const _0x499885=_0x4f284f[_0x572b3a];if(_0x499885===this['currentRevision']){_0x572b3a++;continue;}if(_0x499885['id']===this['_initialRevisionId'])break;const _0x48d6d3=_0x5f149e['toVersion']-_0x499885['toVersion']||_0x5f149e['fromVersion']-_0x499885['fromVersion'];if(_0x48d6d3>0x0)break;if(_0x48d6d3<0x0)_0x572b3a++;else{if(!_0x5f149e['creator']&&_0x499885['creator'])break;if(_0x499885['creator']||!_0x5f149e['creator']){if(_0x5f149e['createdAt']>_0x499885['createdAt'])break;_0x572b3a++;}else _0x572b3a++;}}return _0x572b3a;}['_getFromVersion'](_0x2cc9c2){const _0xc5e383=this['repository']['getRevisions']();_0xc5e383['reverse'](),_0xc5e383['shift']();const _0x125c6f=_0xc5e383['find'](_0x5c0b65=>_0x5c0b65['toVersion']<=_0x2cc9c2)['toVersion'];return _0x125c6f<this['_startingVersion']?this['_startingVersion']:_0x125c6f;}['_makeRevision']({name:_0xeb528c,from:_0x5d651a,to:_0x2f18ef,creatorId:_0x4d5a08,id:_0x43d4e8}){const _0x1f6f3d=this['buildRevisionData']({'from':_0x5d651a,'to':_0x2f18ef});_0x1f6f3d['name']=_0xeb528c,_0x1f6f3d['creatorId']=_0x4d5a08,_0x1f6f3d['id']=_0x43d4e8;const _0x177fc6=this['addRevisionData'](_0x1f6f3d);return this['adapter']&&this['_bufferUpdate'](_0x1f6f3d['id'],_0x1f6f3d,!0x0),_0x177fc6;}['_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(_0x1cc0f4){this['editor']=_0x1cc0f4,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'](_0x174e64){this['source']=_0x174e64;const _0x39b640=new Map(),_0x27332b=new Map(),_0x1d1497=this['editor']['model']['document']['roots']['map'](_0x56471c=>_0x56471c['rootName']);for(const _0x5215ad of _0x1d1497){const _0xea04dc=this['editor']['model']['document']['getRoot'](_0x5215ad),_0x2f7fef=N(_0xea04dc);_0x39b640['set'](_0x5215ad,_0x2f7fef),_0x27332b['set'](_0x5215ad,Object['fromEntries'](_0xea04dc['getAttributes']()));}const _0x4eea6c=Array['from'](this['editor']['model']['markers'])['map'](_0xfc0b7c=>[_0xfc0b7c['name'],_0xfc0b7c['getRange']()]),_0x4d665a=this['source']['version'];this['_saveMetaData'](_0x4d665a,_0x39b640,_0x4eea6c,_0x27332b),this['_startingRevisionId']=this['_revisionId'];const _0x315245=new Map(),_0x102d8c=new Map();for(const _0x7aa367 of _0x1d1497){const _0x1a2d95=P(_0x7aa367);_0x315245['set'](_0x7aa367,_0x1a2d95),_0x102d8c['set'](_0x7aa367,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x315245,[],_0x102d8c);}['getData'](_0xc70d8b,_0x35c0c6){if(this['_lastFrom']===_0xc70d8b&&this['_lastTo']<=_0x35c0c6)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x35c0c6,!0x0);else{if(!this['_savedMetaData']['has'](_0xc70d8b)){const _0x2cb93e=this['_getPreviousFrom'](_0xc70d8b);this['_calculateMetaData'](_0x2cb93e,_0xc70d8b,!0x1);}this['_calculateMetaData'](_0xc70d8b,_0x35c0c6,!0x0);}return this['_lastFrom']=_0xc70d8b,this['_lastTo']=_0x35c0c6,this['_getState']();}['loadState'](_0x3741e3){const _0x42627b=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x3741e3['fromVersion'],this['_lastTo']=_0x3741e3['toVersion'];for(const _0x3187a2 in _0x3741e3['diffData']){const _0x57b5c2=_0x3741e3['diffData'][_0x3187a2]['attachChange'],_0x1acb9e=_0x29c4bb(_0x3741e3['diffData'][_0x3187a2]['attributesBefore'])||{},_0x242c98=_0x42627b['_makeModelFromViewString'](_0x3741e3['diffData'][_0x3187a2]['deletions']);_0x242c98['rootName']=_0x3187a2,_0x242c98['_isAttached']=!_0x57b5c2||!_0x57b5c2['isAttached'],_0x242c98['isAttached']=()=>_0x242c98['_isAttached'],this['_baseRoots']['set'](_0x3187a2,_0x242c98),this['_baseRootsAttributes']['set'](_0x3187a2,_0x1acb9e),_0x57b5c2&&this['_touchedRoots']['set'](_0x3187a2,_0x57b5c2);const _0x175e86=this['_makeIdsRoot'](_0x242c98);this['_baseIdsRoots']['set'](_0x3187a2,_0x175e86);for(const [_0x33ff28,_0xed70a6]of _0x242c98['markers']){if(!_0x33ff28['startsWith']('revision:'))continue;const _0x411c12=_0x33ff28['split'](':')[0x2];for(const _0x434b1b of _0xed70a6['getWalker']({'singleCharacters':!0x0})){const _0x519603=this['_getVidAttributeName'](_0x434b1b),_0x27a890='elementEnd'==_0x434b1b['type']?_0x434b1b['previousPosition']['path']['slice'](0x0,-0x1):_0x434b1b['previousPosition']['path'],_0x1bd74a=_0x175e86['getNodeByPath'](_0x27a890)['getAttribute'](_0x519603);this['_touched']['set'](_0x1bd74a,{'userId':_0x411c12});}}}this['_startingRevisionId']=this['_revisionId'];const _0x39ad56=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x3f96bb=>!this['_touched']['has'](_0x3f96bb));let _0x5d36b3=0x0;const _0x9141fc=new Map();for(const _0x419e52 in _0x3741e3['diffData']){const _0x1bb4c7=_0x3741e3['diffData'][_0x419e52]['attachChange'],_0x1c3228=_0x29c4bb(_0x3741e3['diffData'][_0x419e52]['attributesAfter'])||{},_0x1fb2f4=_0x42627b['_makeModelFromViewString'](_0x3741e3['diffData'][_0x419e52]['insertions']);_0x1fb2f4['rootName']=_0x419e52,_0x1fb2f4['_isAttached']=!_0x1bb4c7||_0x1bb4c7['isAttached'],_0x1fb2f4['isAttached']=()=>_0x1fb2f4['_isAttached'],this['_diffRoots']['set'](_0x419e52,_0x1fb2f4),this['_diffRootsAttributes']['set'](_0x419e52,_0x1c3228);const _0x26ecdb=this['_makeIdsRoot'](_0x1fb2f4,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x419e52,_0x26ecdb),_0x9141fc['set'](_0x419e52,_0x1fb2f4['isAttached']()?_0x1c3228:{});for(const [_0x256694,_0x3b6d0b]of _0x1fb2f4['markers']){if(!_0x256694['startsWith']('revision:'))continue;const _0x5e01a0=_0x256694['split'](':')[0x2];for(const _0x225469 of _0x3b6d0b['getWalker']({'singleCharacters':!0x0})){const _0x2ecc30=this['_getVidAttributeName'](_0x225469),_0x3f0e2f=this['_revisionId']++,_0x3aac85='elementEnd'==_0x225469['type']?_0x225469['previousPosition']['path']['slice'](0x0,-0x1):_0x225469['previousPosition']['path'];_0x26ecdb['getNodeByPath'](_0x3aac85)['_setAttribute'](_0x2ecc30,_0x3f0e2f),this['_touched']['set'](_0x3f0e2f,{'userId':_0x5e01a0});}}for(const _0xf1058c of this['editor']['model']['createRangeIn'](_0x1fb2f4)['getWalker']({'singleCharacters':!0x0})){const _0x5a8438=this['_getVidAttributeName'](_0xf1058c),_0x355ebe='elementEnd'==_0xf1058c['type']?_0xf1058c['previousPosition']['path']['slice'](0x0,-0x1):_0xf1058c['previousPosition']['path'],_0x5d0847=_0x26ecdb['getNodeByPath'](_0x355ebe);_0x5d0847['getAttribute'](_0x5a8438)>0x0||_0x5d0847['_setAttribute'](_0x5a8438,_0x39ad56[_0x5d36b3++]);}for(const [_0x486cb9,_0x1be15e]of _0x1fb2f4['markers'])_0x486cb9['startsWith']('revision:')||this['_markers']['set'](_0x486cb9,_0x1be15e);}const _0x5c27ef=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0x5c27ef),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x5c27ef,0x1));const _0x23bd4b=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x23bd4b),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x23bd4b,0x1));const _0x3bcfa3=Array['from'](this['_diffRoots'])['map'](([_0x2436ca,_0x396426])=>[_0x2436ca,N(_0x396426)]);this['_saveMetaData'](this['_lastTo'],_0x3bcfa3,this['_markers'],_0x9141fc);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x443309,_0x3a5864,_0x1e3d3f,_0xf35686){const _0x41cafd=new Map(_0x3a5864),_0x18ab22=new Map(_0x29c4bb(_0xf35686)),_0x1e8b30=new Map();for(const [_0x345470,_0x25c42d]of _0x1e3d3f)_0x1e8b30['set'](_0x345470,{'start':_0x25c42d['start']['clone'](),'end':_0x25c42d['end']['clone'](),'rootName':_0x25c42d['root']['rootName']});this['_savedMetaData']['set'](_0x443309,{'roots':_0x41cafd,'markers':_0x1e8b30,'rootsAttributes':_0x18ab22});}['_removeMetaData'](_0x30dfa9){this['_savedMetaData']['delete'](_0x30dfa9);}['_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'](_0x5980c7,_0x278a07=null){let _0x355059=null;_0x5980c7['is']('documentFragment')||(_0x355059=new ut(_0x5980c7['name'],{'vid_start':null===_0x278a07?this['_revisionId']++:_0x278a07++}));const _0xdacc14=[];for(const _0x78304f of _0x5980c7['getChildren']())if(_0x78304f['is']('element')){_0xdacc14['push'](this['_makeIdsRoot'](_0x78304f,_0x278a07));const _0x4e9049=_0xdacc14[_0xdacc14['length']-0x1];null!==_0x278a07&&(_0x278a07=_0x4e9049['is']('element','$text')?_0x4e9049['getAttribute']('vid')+0x1:_0x4e9049['getAttribute']('vid_end')+0x1);}else{for(let _0x51d60f=0x0;_0x51d60f<_0x78304f['offsetSize'];_0x51d60f++)_0xdacc14['push'](new ut('$text',{'vid':null===_0x278a07?this['_revisionId']++:_0x278a07++}));}if(_0x5980c7['is']('documentFragment')){const _0xd6c77e=P(_0x5980c7['rootName']);return _0xd6c77e['_insertChild'](0x0,_0xdacc14),_0xd6c77e;}return _0x355059['_setAttribute']('vid_end',null===_0x278a07?this['_revisionId']++:_0x278a07++),_0x355059['_insertChild'](0x0,_0xdacc14),_0x355059;}['_calculateMetaData'](_0x4b5a9d,_0x588f2a,_0x555161){this['_reset']();const {roots:_0x258c5e,markers:_0xf6aa4a,rootsAttributes:_0x3fba4b}=this['_savedMetaData']['get'](_0x4b5a9d);this['_baseRoots']=new Map(_0x258c5e),this['_baseRootsAttributes']=new Map(_0x29c4bb(_0x3fba4b));for(const [_0x3a7e45,_0x505f79]of this['_baseRoots'])if('$graveyard'!==_0x3a7e45&&(this['_diffRoots']['set'](_0x3a7e45,N(_0x505f79)),this['_diffRootsAttributes']=new Map(_0x29c4bb(_0x3fba4b)),_0x555161)){const _0x4846dd=this['_revisionId'];this['_idsRoots']['set'](_0x3a7e45,this['_makeIdsRoot'](_0x505f79)),this['_baseIdsRoots']['set'](_0x3a7e45,this['_makeIdsRoot'](_0x505f79,_0x4846dd));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x555161&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x552cce,_0x129236]of _0xf6aa4a){const _0xadc6dd=this['_baseRoots']['get'](_0x129236['rootName']),_0x5bdf5d=this['_diffRoots']['get'](_0x129236['rootName']),_0x174890=new ft(this['_fixPosition'](_0x129236['start'],_0xadc6dd),this['_fixPosition'](_0x129236['end'],_0xadc6dd)),_0x2116df=this['_fixRange'](_0x174890,_0x5bdf5d);_0xadc6dd['markers']['set'](_0x552cce,_0x174890),this['_markers']['set'](_0x552cce,_0x2116df);}this['_applyOperations'](_0x4b5a9d,_0x588f2a,_0x555161);}['_applyOperations'](_0x16efc1,_0xa0b0b1,_0x529689){for(const _0x2fa244 of this['source']['getOperations'](_0x16efc1,_0xa0b0b1))this['_handleOperation'](_0x2fa244,_0x529689);for(const _0x2d2760 of this['_diffRoots']['values']())_0x2d2760['markers']['clear']();for(const [_0x4386e1,_0x39c041]of this['_markers']){this['_diffRoots']['get'](_0x39c041['root']['rootName'])['markers']['set'](_0x4386e1,_0x39c041['clone']());}const _0x588e9b=new Map(),_0x439ea0=new Map();for(const [_0x5b9b9b,_0x1a2a14]of this['_diffRoots'])_0x588e9b['set'](_0x5b9b9b,N(_0x1a2a14)),_0x439ea0['set'](_0x5b9b9b,this['_diffRootsAttributes']['get'](_0x5b9b9b));this['_saveMetaData'](_0xa0b0b1,_0x588e9b,this['_markers'],_0x439ea0);}['_getPreviousFrom'](_0x151d67){const _0x1375ad=Array['from'](this['_savedMetaData']['keys']());_0x1375ad['sort']((_0x3ed487,_0x41440e)=>_0x3ed487-_0x41440e),_0x1375ad['reverse']();for(const _0x1273ec of _0x1375ad)if(_0x1273ec<_0x151d67)return _0x1273ec;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x10ddd9,_0x397b45){const _0x4142c8=Array['from'](_0x397b45['markers'])['map'](([_0x3b4cc9,_0x297603])=>[_0x3b4cc9,this['_fixRange'](_0x297603,_0x10ddd9)]);_0x10ddd9['markers']=new Map(_0x4142c8);}['_transformMarkers'](_0x1ad770){for(const _0x5acc57 of this['_markers']['values']()){const _0x1e2733=_0x5acc57['getTransformedByOperation'](_0x1ad770),_0x1386f3=ft['_createFromRanges'](_0x1e2733);_0x5acc57['start']=_0x1386f3['start'],_0x5acc57['end']=_0x1386f3['end'];}}['_handleOperation'](_0x151cfd,_0x20ce86){if('addRoot'!=_0x151cfd['type']&&'detachRoot'!=_0x151cfd['type']){if('insert'==_0x151cfd['type']){const _0xf5e085=_0x151cfd['position']['root']['rootName'];this['_diffRoots']['has'](_0xf5e085)||(this['_diffRoots']['set'](_0xf5e085,P(_0xf5e085,!0x0)),this['_diffRootsAttributes']['set'](_0xf5e085,{}),_0x20ce86&&this['_idsRoots']['set'](_0xf5e085,P(_0xf5e085,!0x0)));}else{if('addRootAttribute'==_0x151cfd['type']||'removeRootAttribute'==_0x151cfd['type']||'changeRootAttribute'==_0x151cfd['type'])return void this['_handleRootAttributeOperation'](_0x151cfd);'marker'==_0x151cfd['type']&&this['_handleMarkerOperation'](_0x151cfd);}if('marker'!==_0x151cfd['type']){const _0x518c95=this['_cloneOperation'](_0x151cfd,this['_diffRoots']);_0x518c95['_execute'](),this['_transformMarkers'](_0x518c95);}if(_0x20ce86)switch(_0x151cfd['type']){case'insert':this['_handleInsertOperation'](_0x151cfd);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x151cfd);break;case'merge':this['_handleMergeOperation'](_0x151cfd);break;case'split':this['_handleSplitOperation'](_0x151cfd);}}else this['_handleRootOperation'](_0x151cfd,_0x20ce86);}['_cloneOperation'](_0x342b46,_0x3da167){const _0x18ee78=_0x342b46['clone']();return _0x18ee78['_authorId']=_0x342b46['_authorId'],this['_fixOperation'](_0x18ee78,_0x3da167),_0x18ee78;}['_getBaseVids'](_0xaf2247){return _0xaf2247['map'](_0x1a9d21=>{const _0x5a443d=this['_getVidAttributeName'](_0x1a9d21);return Number(_0x1a9d21['item']['getAttribute'](_0x5a443d));});}['_generateTape'](_0x1d80ee,_0x2930d8){if(_0x1d80ee['is']('element','$text'))_0x2930d8['push']({'item':_0x1d80ee,'type':'text'});else{_0x1d80ee['is']('element')&&_0x2930d8['push']({'item':_0x1d80ee,'type':'elementStart'});for(const _0x481901 of _0x1d80ee['getChildren']())this['_generateTape'](_0x481901,_0x2930d8);_0x1d80ee['is']('element')&&_0x2930d8['push']({'item':_0x1d80ee,'type':'elementEnd'});}return _0x2930d8;}['_getState'](){const _0x45e1e3=new Map(this['_touched']),_0x579fb2=new Map(_0x45e1e3),_0x48f0cf=new Map(),_0x3dedc9={'insertions':{},'deletions':{}},_0x1eda04={'insertions':{},'deletions':{}},_0x3f78f5=new Map(),_0x308487=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x308487['delete']('$graveyard');for(const _0x5beb8e of _0x308487){const _0x1974cd=this['_diffRoots']['get'](_0x5beb8e)||P(_0x5beb8e,!0x1),_0x3a4a88=this['_baseRoots']['get'](_0x5beb8e)||P(_0x5beb8e,!0x1);_0x1974cd['isAttached']()||_0x3a4a88['isAttached']()?(_0x3dedc9['insertions'][_0x5beb8e]=N(_0x1974cd),_0x3dedc9['deletions'][_0x5beb8e]=N(_0x3a4a88),this['_copyMarkers'](_0x3dedc9['deletions'][_0x5beb8e],_0x3a4a88),this['_copyMarkers'](_0x3dedc9['insertions'][_0x5beb8e],_0x1974cd),_0x1eda04['insertions'][_0x5beb8e]=this['_generateTape'](this['_idsRoots']['get'](_0x5beb8e),[]),_0x1eda04['deletions'][_0x5beb8e]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x5beb8e)||P(_0x5beb8e,!0x1),[])):_0x308487['delete'](_0x5beb8e);}for(const _0x40e90d of _0x308487){const _0x5bbb48=_0x1eda04['insertions'][_0x40e90d];for(const _0x4d4efd of _0x5bbb48){const _0x289c00=this['_getVidAttributeName'](_0x4d4efd),_0x123e08=_0x4d4efd['item']['getAttribute'](_0x289c00);_0x579fb2['delete'](_0x123e08),_0x123e08>=this['_startingRevisionId']&&_0x48f0cf['set'](_0x123e08,_0x45e1e3['get'](_0x123e08));}}for(const _0x504718 of _0x308487){const _0x4e3e7a=_0x1eda04['insertions'][_0x504718],_0x1e7411=this['_getBaseVids'](_0x1eda04['deletions'][_0x504718]);let _0x51520f=0x0;for(const _0x598006 of _0x4e3e7a){const _0x3d6e3d=this['_getVidAttributeName'](_0x598006),_0x43b5cc=_0x598006['item']['getAttribute'](_0x3d6e3d);if(!_0x48f0cf['has'](_0x43b5cc)&&!_0x3f78f5['has'](_0x43b5cc)){if(_0x579fb2['has'](_0x43b5cc))_0x51520f++;else{if(_0x43b5cc!=_0x1e7411[_0x51520f]){const _0x5c9f96=_0x45e1e3['get'](_0x43b5cc)||_0x45e1e3['get'](_0x1e7411[_0x51520f]);for(;_0x43b5cc!=_0x1e7411[_0x51520f];)_0x579fb2['has'](_0x1e7411[_0x51520f])||(_0x3f78f5['set'](_0x1e7411[_0x51520f],_0x5c9f96),_0x45e1e3['set'](_0x1e7411[_0x51520f],_0x5c9f96)),_0x51520f++;}_0x51520f++;}}}}for(const _0x395493 of _0x308487){const _0x5e0a5f=_0x1eda04['insertions'][_0x395493];for(const _0x9ebb2a of _0x5e0a5f){const _0x3b948e=this['_getVidAttributeName'](_0x9ebb2a),_0x3b6e00=_0x9ebb2a['item']['getAttribute'](_0x3b948e);if(_0x3f78f5['has'](_0x3b6e00)){const _0x429290=_0x3f78f5['get'](_0x3b6e00);_0x579fb2['has'](_0x3b6e00)||_0x579fb2['set'](_0x3b6e00,{..._0x429290}),_0x48f0cf['set'](_0x3b6e00,{..._0x429290});}}}for(const _0x2f79f5 of _0x579fb2['keys']())_0x2f79f5>=this['_startingRevisionId']&&_0x579fb2['delete'](_0x2f79f5);const _0x4848ee=new Map();for(const _0x190350 of _0x308487){let _0x1e0198=_0x1eda04['insertions'][_0x190350];for(const _0x535ae8 of _0x1e0198)if(_0x535ae8['item']['is']('element','tableCell')){const _0x41c433=this['_getVidAttributeName'](_0x535ae8),_0x53a827=_0x535ae8['item']['getAttribute'](_0x41c433);if(_0x48f0cf['has'](_0x53a827)){const _0x21bcae=_0x535ae8['item']['parent']['parent']['getAttribute']('vid_start'),_0x43b0ac=_0x4848ee['get'](_0x21bcae)||new Set();_0x43b0ac['add'](_0x48f0cf['get'](_0x53a827)['userId']),_0x4848ee['set'](_0x21bcae,_0x43b0ac);}}_0x1e0198=_0x1eda04['deletions'][_0x190350];for(const _0x2fa7f8 of _0x1e0198)if(_0x2fa7f8['item']['is']('element','tableCell')){const _0x2fcf7d=this['_getVidAttributeName'](_0x2fa7f8),_0xc28fc5=_0x2fa7f8['item']['getAttribute'](_0x2fcf7d);if(_0x579fb2['has'](_0xc28fc5)){const _0x10dfc0=_0x2fa7f8['item']['parent']['parent']['getAttribute']('vid_start'),_0x554803=_0x4848ee['get'](_0x10dfc0)||new Set();_0x554803['add'](_0x579fb2['get'](_0xc28fc5)['userId']),_0x4848ee['set'](_0x10dfc0,_0x554803);}}for(const _0x420ad8 of _0x4848ee['keys']())(_0x48f0cf['has'](_0x420ad8)||_0x579fb2['has'](_0x420ad8))&&_0x4848ee['delete'](_0x420ad8);}for(const _0x3ea273 of _0x308487){const _0x162793=_0x1eda04['insertions'][_0x3ea273];let _0x18b411=null,_0x32cb80=null;for(const _0x409657 of _0x162793){const _0x4c934c=this['_getVidAttributeName'](_0x409657),_0x164705=_0x409657['item']['getAttribute'](_0x4c934c),_0x15cd69=_0x4848ee['get'](_0x164705);_0x15cd69&&'elementStart'==_0x409657['type']&&(_0x18b411=Array['from'](_0x15cd69)[0x0],_0x32cb80=_0x409657['item']['getAttribute']('vid_end')),_0x18b411&&(_0x579fb2['set'](_0x164705,{'userId':_0x18b411}),_0x48f0cf['set'](_0x164705,{'userId':_0x18b411})),_0x164705==_0x32cb80&&(_0x18b411=null,_0x32cb80=null);}}const _0x1db6a9={},_0xabd2f8=new Set();for(const _0x3cc3ca of _0x308487){const _0x5edf12=_0x3dedc9['deletions'][_0x3cc3ca],_0x3127c4=_0x3dedc9['insertions'][_0x3cc3ca];for(const {userId:_0x248b37}of this['_touchedMarkers']['values']())null!==_0x248b37&&_0xabd2f8['add'](_0x248b37);for(const {userId:_0x47a6a8}of this['_touchedRoots']['values']())null!==_0x47a6a8&&_0xabd2f8['add'](_0x47a6a8);this['_markChanges'](_0x3127c4,_0x1eda04['insertions'][_0x3cc3ca],_0x48f0cf,'insertion',_0xabd2f8),this['_markChanges'](_0x5edf12,_0x1eda04['deletions'][_0x3cc3ca],_0x579fb2,'deletion',_0xabd2f8),_0x1db6a9[_0x3cc3ca]={'insertions':this['_prepareViewToSave'](_0x3127c4),'deletions':this['_prepareViewToSave'](_0x5edf12),'attachChange':this['_touchedRoots']['get'](_0x3cc3ca)||null,'attributesBefore':_0x29c4bb(this['_baseRootsAttributes']['get'](_0x3cc3ca))||{},'attributesAfter':_0x29c4bb(this['_diffRootsAttributes']['get'](_0x3cc3ca))};}return{'diffData':_0x1db6a9,'authorsIds':Array['from'](_0xabd2f8)};}['_processRootBeforeSave'](_0x8092a6){for(const [,_0x31524a]of _0x8092a6['markers']){const _0x5a6af8=_0x31524a['start']['getAncestors']()['filter'](_0x32e663=>'tableCell'==_0x32e663['name']);for(const _0x4f7a19 of _0x5a6af8)0x1==_0x4f7a19['childCount']&&_0x4f7a19['getChild'](0x0)['is']('element','paragraph')&&_0x4f7a19['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x3ed167){this['_processRootBeforeSave'](_0x3ed167);const _0x5d74d0=this['editor']['data']['toView'](_0x3ed167,{}),_0xdc35d9=Array['from'](_0x5d74d0['getChildren']())['map'](_0x5d9684=>this['_getViewJson'](_0x5d9684));return JSON['stringify'](_0xdc35d9);}['_getViewJson'](_0x5f1a99){if(_0x5f1a99['is']('$text'))return _0x5f1a99['data'];{const _0x4404af=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x594ff8=_0x5f1a99,_0x38f4e4=this['editor']['data']['htmlProcessor']['domConverter'],_0x5c3295={'type':_0x4404af['_getTypeCharForViewElement'](_0x594ff8),'name':_0x594ff8['name'],'attributes':Array['from'](_0x594ff8['getAttributes']()),'children':Array['from'](_0x594ff8['getChildren']())['map'](_0x25e1d3=>this['_getViewJson'](_0x25e1d3))};if(_0x5f1a99['is']('uiElement')&&'$comment'!=_0x5f1a99['name']){const _0x1e1296=_0x5f1a99['render'](_0x38f4e4['domDocument'],_0x38f4e4);_0x5c3295['children']['push'](_0x1e1296['outerHTML']);}else{if(_0x5f1a99['is']('rawElement')){const _0x3f2b53=_0x38f4e4['domDocument']['createElement'](_0x594ff8['name']);_0x5f1a99['render'](_0x3f2b53,_0x38f4e4),_0x5c3295['children']['push'](_0x3f2b53['innerHTML']);}}const _0x5cb5fa=Array['from'](_0x594ff8['getCustomProperties']());_0x5cb5fa['length']>0x0&&(_0x5c3295['customProperties']=_0x5cb5fa);const _0x2b5d36=_0x594ff8['getFillerOffset']();return null!==_0x2b5d36&&(_0x5c3295['fillerOffset']=_0x2b5d36),_0x5c3295;}}['_markChanges'](_0x55068f,_0x10ac88,_0x47e6ef,_0x2d91b7,_0x4cf76c){let _0x240ba0=null,_0xf0940a=null,_0x5695c0=0x0;const _0x34f30a=this['editor']['model'];for(let _0x3fdf1d=0x0;_0x3fdf1d<_0x10ac88['length'];_0x3fdf1d++){const _0x4d03a2=this['_getVidAttributeName'](_0x10ac88[_0x3fdf1d]),_0x4e1843=_0x10ac88[_0x3fdf1d]['item']['getAttribute'](_0x4d03a2),_0x3ea069=_0x47e6ef['get'](_0x4e1843),_0x2d1c6d=_0x3fdf1d==_0x10ac88['length']-0x1;(!_0x240ba0&&_0x3ea069&&(_0x240ba0=_0x3ea069,_0xf0940a=_0x10ac88[_0x3fdf1d]),_0x240ba0&&(!_0x3ea069||_0x3ea069['userId']!=_0x240ba0['userId']))&&(_0x3ff1a8(_0x3ea069,F(_0xf0940a,_0x55068f,_0x34f30a),F(_0x10ac88[_0x3fdf1d],_0x55068f,_0x34f30a)),_0x240ba0=_0x3ea069||null,_0xf0940a=_0x3ea069?_0x10ac88[_0x3fdf1d]:null),_0x240ba0&&_0x2d1c6d&&_0x3ff1a8(_0x3ea069,F(_0xf0940a,_0x55068f,_0x34f30a),B(_0x10ac88[_0x3fdf1d],_0x55068f,_0x34f30a));}function _0x3ff1a8(_0x2c210c,_0x270abe,_0x112908){const _0x25b440=_0x240ba0['userId'],_0x7b7ea4='revision:'+_0x2d91b7+':'+_0x25b440+':'+_0x5695c0++,_0x341e6b=_0x34f30a['createRange'](_0x270abe,_0x112908);_0x55068f['markers']['set'](_0x7b7ea4,_0x341e6b),null!==_0x25b440&&_0x4cf76c['add'](_0x25b440);}}['_getVidAttributeName'](_0x1859df){switch(_0x1859df['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0xc781b5,_0x4eefa1){_0xc781b5['baseVersion']=null;for(const _0x3250ea in _0xc781b5){const _0x216e93=_0xc781b5[_0x3250ea];if(_0x216e93 instanceof vt){const _0x53d9cd=_0x4eefa1['get'](_0x216e93['root']['rootName']);_0xc781b5[_0x3250ea]=this['_fixPosition'](_0x216e93,_0x53d9cd);}if(_0x216e93 instanceof ft){const _0xe5c3b5=_0x4eefa1['get'](_0x216e93['root']['rootName']);_0xc781b5[_0x3250ea]=this['_fixRange'](_0x216e93,_0xe5c3b5);}'root'===_0x3250ea&&(_0xc781b5['root']=_0x4eefa1['get'](_0xc781b5['root']['rootName']));}}['_fixRange'](_0x5ba9bb,_0x418f5a){return this['editor']['model']['createRange'](this['_fixPosition'](_0x5ba9bb['start'],_0x418f5a),this['_fixPosition'](_0x5ba9bb['end'],_0x418f5a));}['_fixPosition'](_0x3eebde,_0x3dec86){return this['editor']['model']['createPositionFromPath'](_0x3dec86,_0x3eebde['path'],_0x3eebde['stickiness']);}['_handleInsertOperation'](_0x4206ce){const _0x44b03c=this['_idsRoots']['get'](_0x4206ce['position']['root']['rootName']),_0x48cbf6=this['_fixPosition'](_0x4206ce['position'],_0x44b03c),_0x640b7b=null===_0x4206ce['_authorId']?null:_0x4206ce['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5a6b45=_0x48cbf6['parent'],_0x5bc3b8=this['_revisionId'],_0x165dd9=[];for(const _0x73e4f6 of _0x4206ce['nodes'])if(_0x73e4f6['is']('element'))_0x165dd9['push'](this['_makeIdsRoot'](_0x73e4f6));else{for(let _0x3a0095=0x0;_0x3a0095<_0x73e4f6['offsetSize'];_0x3a0095++)_0x165dd9['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x300f5b=this['_revisionId'];for(let _0x564d2c=_0x5bc3b8;_0x564d2c<_0x300f5b;_0x564d2c++)this['_touched']['set'](_0x564d2c,{'userId':_0x640b7b});_0x5a6b45['_insertChild'](_0x48cbf6['offset'],_0x165dd9);}['_handleMoveOperation'](_0x182e56){(_0x182e56=this['_cloneOperation'](_0x182e56,this['_idsRoots']))['_execute']();const _0x32cf16=null===_0x182e56['_authorId']?null:_0x182e56['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x203410=_0x182e56['getMovedRangeStart'](),_0x3bdfef=_0x203410['parent'],_0x21f771=_0x203410['offset'];!function _0x17464f(_0x363fe3,_0x17c765,_0x53e7f2,_0x16ea9f){for(let _0x527204=_0x53e7f2;_0x527204<_0x16ea9f;_0x527204++){const _0x58b940=_0x17c765['getChild'](_0x527204);_0x58b940['is']('element','$text')?_0x363fe3['set'](_0x58b940['getAttribute']('vid'),{'userId':_0x32cf16}):(_0x363fe3['set'](_0x58b940['getAttribute']('vid_start'),{'userId':_0x32cf16}),_0x17464f(_0x363fe3,_0x58b940,0x0,_0x58b940['childCount']),_0x363fe3['set'](_0x58b940['getAttribute']('vid_end'),{'userId':_0x32cf16}));}}(this['_touched'],_0x3bdfef,_0x21f771,_0x21f771+_0x182e56['howMany']);}['_handleMergeOperation'](_0x1f3278){const _0xca8272=null===(_0x1f3278=this['_cloneOperation'](_0x1f3278,this['_idsRoots']))['_authorId']?null:_0x1f3278['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x37fae9=_0x1f3278['targetPosition']['parent'],_0xff6f66=_0x1f3278['sourcePosition']['parent'],_0x57f4ac=_0x37fae9['getAttribute']('vid_end'),_0x118c92=_0xff6f66['getAttribute']('vid_start');_0x37fae9['_setAttribute']('vid_end',_0xff6f66['getAttribute']('vid_end')),_0xff6f66['_setAttribute']('vid_end',_0x57f4ac),this['_touched']['set'](_0x118c92,{'userId':_0xca8272}),this['_touched']['set'](_0x57f4ac,{'userId':_0xca8272}),_0x1f3278['_execute']();}['_handleSplitOperation'](_0x371497){const _0x1d672a=null===(_0x371497=this['_cloneOperation'](_0x371497,this['_idsRoots']))['_authorId']?null:_0x371497['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x205b7b=_0x371497['graveyardPosition'],_0x415352=_0x371497['splitPosition']['parent'];_0x371497['_execute']();const _0x505c95=_0x415352['getAttribute']('vid_end'),_0x35bade=_0x371497['insertionPosition']['nodeAfter'];if(_0x205b7b){const _0x3c068a=_0x35bade['getAttribute']('vid_end'),_0x34bbf9=_0x415352['getAttribute']('vid_end');_0x415352['_setAttribute']('vid_end',_0x3c068a),_0x35bade['_setAttribute']('vid_end',_0x34bbf9),this['_touched']['set'](_0x415352['getAttribute']('vid_end'),{'userId':_0x1d672a}),this['_touched']['set'](_0x35bade['getAttribute']('vid_start'),{'userId':_0x1d672a});}else{const _0x1a3b94=this['_revisionId']++,_0x216cfd=this['_revisionId']++;_0x415352['_setAttribute']('vid_end',_0x1a3b94),_0x35bade['_setAttribute']('vid_start',_0x216cfd),_0x35bade['_setAttribute']('vid_end',_0x505c95),this['_touched']['set'](_0x1a3b94,{'userId':_0x1d672a}),this['_touched']['set'](_0x216cfd,{'userId':_0x1d672a});}}['_handleMarkerOperation'](_0xa910df){if(!_0xa910df['affectsData'])return;const _0x1be7ef=(_0xa910df=this['_cloneOperation'](_0xa910df,this['_diffRoots']))['oldRange']?_0xa910df['oldRange']['root']:null,_0x3dc397=_0xa910df['newRange']?_0xa910df['newRange']['root']:null;_0x1be7ef&&this['_markers']['delete'](_0xa910df['name']),_0x3dc397&&this['_markers']['set'](_0xa910df['name'],_0xa910df['newRange']['clone']());const _0x586b56=null===_0xa910df['_authorId']?null:_0xa910df['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x32b794=_0xa910df['name'];if(!this['_touchedMarkers']['has'](_0x32b794))return void this['_touchedMarkers']['set'](_0x32b794,{'range':_0xa910df['oldRange'],'userId':_0x586b56});const _0x1232ab=this['_touchedMarkers']['get'](_0x32b794),_0x49c1f6=_0x1232ab['range'],_0x328ea4=_0xa910df['newRange'];null==_0x49c1f6&&null==_0x328ea4||_0x49c1f6&&_0x328ea4&&_0x49c1f6['isEqual'](_0x328ea4)?this['_touchedMarkers']['delete'](_0xa910df['name']):_0x1232ab['userId']=_0x586b56;}['_handleRootOperation'](_0x427834,_0x1c221b){this['_diffRoots']['has'](_0x427834['rootName'])?this['_diffRoots']['get'](_0x427834['rootName'])['_isAttached']=_0x427834['isAdd']:(this['_diffRoots']['set'](_0x427834['rootName'],P(_0x427834['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x427834['rootName'],{}),_0x1c221b&&this['_idsRoots']['set'](_0x427834['rootName'],P(_0x427834['rootName'],!0x0)));const _0x132831=null===_0x427834['_authorId']?null:_0x427834['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x229b1f=this['_touchedRoots']['get'](_0x427834['rootName']);_0x229b1f&&_0x229b1f['userId']===_0x132831?this['_touchedRoots']['delete'](_0x427834['rootName']):this['_touchedRoots']['set'](_0x427834['rootName'],{'userId':_0x132831,'isAttached':_0x427834['isAdd']});}['_handleRootAttributeOperation'](_0xf374b8){const _0x3cf72a=this['_diffRootsAttributes']['get'](_0xf374b8['root']['rootName']);null===_0xf374b8['newValue']?delete _0x3cf72a[_0xf374b8['key']]:_0x3cf72a[_0xf374b8['key']]=_0xf374b8['newValue'];}}function N(_0x41dec0){const _0x1ba089=P(_0x41dec0['rootName'],_0x41dec0['isAttached']());for(const _0x52419e of _0x41dec0['getChildren']()){const _0x2925ec=_0x52419e['_clone'](!0x0);_0x1ba089['_appendChild'](_0x2925ec);}return _0x1ba089;}function P(_0x7ce28e,_0x1586cd=!0x0){const _0x342500=new gt();return _0x342500['rootName']=_0x7ce28e,_0x342500['_isAttached']=_0x1586cd,_0x342500['isAttached']=()=>_0x342500['_isAttached'],_0x342500;}function F(_0xacd100,_0x36e2ad,_0x1456f4){const _0x1c3dc7='elementEnd'==_0xacd100['type']?_0x1456f4['createPositionAt'](_0xacd100['item'],'end'):_0x1456f4['createPositionBefore'](_0xacd100['item']);return _0x1456f4['createPositionFromPath'](_0x36e2ad,_0x1c3dc7['path'],_0x1c3dc7['stickiness']);}function B(_0x4fea23,_0x2a844a,_0x4c7b3b){const _0x39372c='elementStart'==_0x4fea23['type']?_0x4c7b3b['createPositionAt'](_0x4fea23['item'],0x0):_0x4c7b3b['createPositionAfter'](_0x4fea23['item']);return _0x4c7b3b['createPositionFromPath'](_0x2a844a,_0x39372c['path'],_0x39372c['stickiness']);}class os extends _0x282a4d{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x533ea1,_0x497788){super(_0x533ea1),this['focusTracker']=new _0x57bc85(),this['keystrokes']=new _0x16011d(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x497788),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),ts(this);}['render'](){super['render'](),_0x6dc393({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x1b4df8=_0x4018c3=>_0x4018c3['stopPropagation']();this['keystrokes']['set']('arrowright',_0x1b4df8),this['keystrokes']['set']('arrowleft',_0x1b4df8),this['keystrokes']['set']('arrowup',_0x1b4df8),this['keystrokes']['set']('arrowdown',_0x1b4df8);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x1ebbce){this['revisionNameInputView']['fieldView']['element']['value']=_0x1ebbce['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x5ac827){const _0x570052=new nt(this['locale'],ti),_0x3b94e6=_0x570052['fieldView'];_0x3b94e6['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x444ee2=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x5ac827&&(_0x444ee2+='\x20('+g(this['locale'],'optional')+')'),(_0x570052['label']=_0x444ee2,_0x3b94e6['on']('input',()=>{this['revisionNameInputValue']=_0x3b94e6['element']['value']['trim']();}),_0x570052);}}class f extends _0x5c4916{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x867425=this['editor'],_0x468ca0=_0x867425['plugins']['get']('RevisionTracker');_0x867425['ui']['componentFactory']['add']('revisionHistory',_0x184a57=>{const _0x36610c=_0x5e95c1(_0x184a57),_0x334d45=_0x36610c['panelView']['children'],_0x5b6072=new _0x181ec3(_0x184a57),_0x166e5a=new te(_0x184a57),_0xea4476=new _0x2023e5(_0x184a57),_0x68a3f6=new te(_0x184a57),_0x13837b=new _0x2023e5(_0x184a57);return _0x36610c['bind']('isEnabled')['to'](_0x468ca0,'isReady',_0x468ca0,'isEnabled',_0x867425,'isReadOnly',(_0x7b08b8,_0xb02026,_0x1aef25)=>_0x7b08b8&&_0xb02026&&!_0x1aef25),_0x36610c['buttonView']['set']({'icon':_0x31f76a,'label':g(_0x184a57,'Revision\x20history'),'tooltip':!0x0}),_0xea4476['set']({'label':g(_0x184a57,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0xea4476['bind']('isEnabled')['to'](_0x468ca0,'isReady',_0x468ca0,'isEnabled',_0x867425,'isReadOnly',(_0x492956,_0x1f43a0,_0x350d52)=>_0x492956&&_0x1f43a0&&!_0x350d52),_0xea4476['on']('execute',()=>this['_showDialog']()),_0x13837b['set']({'label':g(_0x184a57,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x13837b['bind']('isEnabled')['to'](_0x468ca0,'isReady',_0x867425,'isReadOnly',(_0x5a5142,_0x33973f)=>_0x5a5142&&!_0x33973f),_0x13837b['on']('execute',()=>{_0x867425['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x36610c['isOpen']=!0x1,_0x867425['editing']['view']['focus']();}),_0x166e5a['children']['add'](_0xea4476),_0x68a3f6['children']['add'](_0x13837b),_0x5b6072['role']='menu',_0x5b6072['items']['addMany']([_0x166e5a,_0x68a3f6]),_0x334d45['add'](_0x5b6072),_0x36610c;}),_0x867425['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x46fee1=this['editor'],_0x5d10dd=_0x46fee1['locale'],_0x4f1a85=new _0x309b4d(_0x5d10dd),_0x18806d=new _0x2cdff7(_0x5d10dd);_0x4f1a85['buttonView']['set']({'icon':_0x31f76a,'label':g(_0x5d10dd,'Revision\x20history')});const _0x4ac058=new _0x3ce170(_0x5d10dd,_0x4f1a85),_0x2b28b6=new _0x59387d(_0x5d10dd);_0x2b28b6['set']({'label':g(_0x5d10dd,'Save\x20current\x20revision')}),_0x2b28b6['delegate']('execute')['to'](_0x4f1a85),_0x2b28b6['on']('execute',()=>{this['_showDialog']();}),_0x4ac058['children']['add'](_0x2b28b6),_0x18806d['items']['add'](_0x4ac058);const _0x51f715=new _0x3ce170(_0x5d10dd,_0x4f1a85),_0x31c71b=new _0x59387d(_0x5d10dd);return _0x31c71b['set']({'label':g(_0x5d10dd,'Open\x20revision\x20history')}),_0x31c71b['delegate']('execute')['to'](_0x4f1a85),_0x31c71b['on']('execute',()=>{_0x46fee1['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x51f715['children']['add'](_0x31c71b),_0x18806d['items']['add'](_0x51f715),_0x4f1a85['panelView']['children']['add'](_0x18806d),_0x4f1a85;}['_showDialog'](){const _0x1ad78b=this['editor'],_0x55f080=_0x1ad78b['locale'],_0x100c70=_0x1ad78b['plugins']['get']('Dialog'),_0x2bd97f=_0x1ad78b['plugins']['get']('RevisionTracker');function _0x5222f6(_0x1d8f49){_0x1ad78b['config']['get']('revisionHistory.requireRevisionName')&&''===_0x1d8f49['revisionName']?_0x1d8f49['revisionNameInputView']['errorText']=g(_0x55f080,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x1ad78b['plugins']['get'](u)['saveRevision']({'name':_0x1d8f49['revisionName']}),_0x100c70['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x5222f6(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x100c70['show']({'id':'revisionSave','title':g(_0x55f080,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x1ad78b['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x100c70['hide']()},{'label':g(_0x1ad78b['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x362524){_0x362524['bind']('isEnabled')['to'](_0x2bd97f,'isReady',_0x2bd97f,'isEnabled',_0x1ad78b,'isReadOnly',(_0x3e1f3d,_0x469b77,_0x203cbf)=>_0x3e1f3d&&_0x469b77&&!_0x203cbf);},'onExecute':()=>_0x5222f6(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x46bc8b=this['editor'],_0x1e6d68=_0x46bc8b['locale'];this['_saveRevisionFormView']=new os(_0x1e6d68,_0x46bc8b['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends _0x282a4d{['changeId'];['_model'];constructor(_0x5c8b2a,_0x1f28ba){super(_0x5c8b2a),this['_model']=_0x1f28ba,this['changeId']=_0x1f28ba['id'];const _0x48b72b=this['bindTemplate'],_0x2667ff=g(_0x5c8b2a,_0x1f28ba['data']['isSuggestion']?'Suggested\x20by':'add'==_0x1f28ba['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x1f28ba['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x48b72b['to']('type',_0x26b50c=>'ck-revision-change__'+_0x26b50c)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x2667ff}]},{'text':'\x20'+_0x1f28ba['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x500d10(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x209483){super(),this['id']=_0x209483['id']||_0x1ab53a(),this['author']=_0x209483['author'],this['type']=_0x209483['type'],this['data']=_0x209483['data']||{},this['rootName']=_0x209483['rootName'],this['set']('createdAt',_0x209483['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(_0x2d7d02,_0x3bb216){this['newRevisionId']=_0x2d7d02,this['oldRevisionId']=_0x3bb216,this['changes']=new _0x4162a6();}['_setChanges'](_0x5dd25){for(const _0x401497 of _0x5dd25)this['changes']['add'](_0x401497);}}class m extends _0x5c4916{['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[_0x4c2647,_0xc1c4a1,I,V];}constructor(_0x43d98e){super(_0x43d98e),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',(_0x265450,_0x29d28f,_0x20c3d7)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x1f010e=>{for(const _0x415817 of this['editor']['editing']['view']['document']['roots'])_0x20c3d7?_0x1f010e['removeClass']('ck-editor__editable__overlay',_0x415817):_0x1f010e['addClass']('ck-editor__editable__overlay',_0x415817);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x4abbbb=>null!==_0x4abbbb),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x520028,_0x15222a,_0x4091bd)=>_0x520028&&_0x4091bd?_0x15222a['changes']['getIndex'](_0x4091bd):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x517d23,_0x7e58c4)=>_0x517d23?_0x7e58c4['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0xc1c4a1);}['init'](){const _0x572e4a=this['editor'],_0x3c7657=new pt(_0x572e4a,{'direction':'backward'}),_0x21b25b=new pt(_0x572e4a,{'direction':'forward'});(_0x572e4a['commands']['add']('showPreviousChange',_0x3c7657),_0x572e4a['commands']['add']('showNextChange',_0x21b25b),_0x572e4a['commands']['add']('restoreRevision',new wt(_0x572e4a)),this['on']('change:numberOfChanges',()=>{_0x3c7657['refresh'](),_0x21b25b['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x572e4a['enableReadOnlyMode']('revision-viewer'),_0x572e4a['plugins']['has']('WidgetToolbarRepository'))&&_0x572e4a['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x1993c6){return await this['_utils']['loadRevisionData'](_0x1993c6,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x1993c6);}async['getRevisionRootsAttributes'](_0x4d8d0c){return await this['_utils']['loadRevisionData'](_0x4d8d0c,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x4d8d0c);}async['compare'](_0x2fa764,_0x42cfde,_0xe0c542=!0x1){if(!this['isEnabled'])return;const _0x563d0c=this['diff'],_0x325ac7=this['repository'],_0x51d9a0='string'==typeof _0x2fa764?_0x325ac7['getRevision'](_0x2fa764):_0x2fa764,_0x294b1c='string'==typeof _0x42cfde?_0x325ac7['getRevision'](_0x42cfde):_0x42cfde,_0x13d6fb=_0x51d9a0['id'],_0x11e734=_0x294b1c?_0x294b1c['id']:null;if(!_0xe0c542&&this['diff']&&this['diff']['newRevisionId']===_0x13d6fb&&this['diff']['oldRevisionId']===_0x11e734)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x13d6fb,_0x11e734);const _0x2e5a12=this['_getRevisionsRange'](_0x51d9a0,_0x294b1c,!0x0)['map'](_0x4c34c7=>this['_utils']['loadRevisionData'](_0x4c34c7,this['adapter']));return _0x2e5a12['push'](new Promise(_0x82a9bf=>{setTimeout(_0x82a9bf,0x14);})),Promise['all'](_0x2e5a12)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x2f8862=this['_getDiff'](_0x13d6fb,_0x11e734);for(const _0x2bcd6d of _0x2f8862['changes'])this['_changeIdToChange']['set'](_0x2bcd6d['id'],_0x2bcd6d);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x3616dc=>{for(const _0x4c730a of this['editor']['model']['document']['getRootNames']())_0x3616dc['detachRoot'](_0x4c730a);for(const _0x44e16a of Object['keys'](_0x2f8862['model'])){const _0x554cc4=_0x3616dc['addRoot'](_0x44e16a);for(const _0x34ac55 of Object['keys'](_0x2f8862['attributes'][_0x44e16a]))_0x3616dc['setAttribute'](_0x34ac55,_0x2f8862['attributes'][_0x44e16a][_0x34ac55],_0x554cc4);_0x3616dc['insert'](_0x2f8862['model'][_0x44e16a],_0x554cc4,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x2f8862['changes'])),this['isReady']=!0x0;})['catch'](_0x94b904=>{console['error'](_0x94b904),this['_cleanUp'](),_0x563d0c&&(this['diff']=_0x563d0c),this['isReady']=!0x0;});}['addRevisionData'](_0x42f120,_0x5a3769){const _0x14c42e=this['repository']['createRevision'](_0x42f120);return _0x14c42e['on']('_update',(_0x370281,_0x4aae0e,_0x371724)=>_0x5a3769(_0x4aae0e,_0x371724,_0x14c42e)),this['repository']['addRevision'](_0x14c42e),_0x14c42e;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x5d93bb=>{for(const _0x4f9e58 of this['editor']['model']['document']['getRootNames']())_0x5d93bb['detachRoot'](_0x4f9e58);});}['_sortAndFilterDiffChanges'](_0x442553){const _0xb1aa40=[],_0x4b6485=new Map();for(const _0x9df0b5 of this['editor']['model']['document']['getRootNames']()){const _0x55fe53=this['editor']['editing']['view']['getDomRoot'](_0x9df0b5);if(!_0x55fe53)continue;const _0xefacd2=_0x55fe53['getClientRects']()['item'](0x0);_0xefacd2&&(_0xb1aa40['push'](_0x9df0b5),_0x4b6485['set'](_0x9df0b5,_0xefacd2));}return _0xb1aa40['sort']((_0x235206,_0x3ebff5)=>{const _0xc100c4=_0x4b6485['get'](_0x235206),_0x155209=_0x4b6485['get'](_0x3ebff5);return _0xc100c4['y']-_0x155209['y']||_0xc100c4['x']-_0x155209['x'];}),(_0x442553=_0x442553['filter'](_0x336246=>_0xb1aa40['includes'](_0x336246['rootName'])))['sort']((_0x1332d8,_0x518d7b)=>_0xb1aa40['indexOf'](_0x1332d8['rootName'])-_0xb1aa40['indexOf'](_0x518d7b['rootName'])),_0x442553;}['_makeTape'](_0x1b5bd6){const _0x365072=Array['from'](_0x1b5bd6['markers'])['filter'](([_0x34131a,_0x383b14])=>_0x34131a['startsWith']('revision:')&&!_0x383b14['isCollapsed']),_0x27bbf7=Array['from'](this['editor']['model']['createRangeIn'](_0x1b5bd6)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x365072['length'])for(const _0xa64bd4 of _0x27bbf7){const [_0x5ed260,_0x1d0ef9]=_0x365072[0x0],[,_0x31cfb6,_0x4ac124]=_0x5ed260['split'](':');if(_0x1d0ef9['end']['isEqual'](_0xa64bd4['nextPosition'])&&_0x365072['shift'](),(_0xa64bd4['previousPosition']['isEqual'](_0x1d0ef9['start'])||_0xa64bd4['previousPosition']['isAfter'](_0x1d0ef9['start']))&&('insertion'==_0x31cfb6?_0xa64bd4['isAdded']={'userId':_0x4ac124}:'deletion'==_0x31cfb6&&(_0xa64bd4['isRemoved']={'userId':_0x4ac124})),0x0==_0x365072['length'])break;}return _0x27bbf7;}['_refreshStartEndIndex'](_0x332d30){const _0x5210e6=new Map();for(let _0x484c52=0x0;_0x484c52<_0x332d30['length'];_0x484c52++)'text'===_0x332d30[_0x484c52]['type']?(_0x332d30[_0x484c52]['item']['startIndex']=_0x484c52,_0x332d30[_0x484c52]['item']['endIndex']=_0x484c52):('elementStart'===_0x332d30[_0x484c52]['type']?_0x332d30[_0x484c52]['item']['startIndex']=_0x484c52:'elementEnd'===_0x332d30[_0x484c52]['type']&&(_0x332d30[_0x484c52]['item']['endIndex']=_0x484c52),_0x5210e6['set'](_0x332d30[_0x484c52]['id'],_0x484c52));for(const _0x4753ac of _0x5210e6['values']())'elementStart'===_0x332d30[_0x4753ac]['type']?_0x332d30[_0x4753ac]['item']['endIndex']=_0x5210e6['get'](_0x332d30[_0x4753ac]['pairId']):'elementEnd'===_0x332d30[_0x4753ac]['type']&&(_0x332d30[_0x4753ac]['item']['startIndex']=_0x5210e6['get'](_0x332d30[_0x4753ac]['pairId']));}['_processTape'](_0x498773){for(let _0x7de69c=0x0;_0x7de69c<_0x498773['length'];_0x7de69c++){if('elementStart'===_0x498773[_0x7de69c]['type'])_0x498773[_0x7de69c]['item']['startIndex']=_0x7de69c;else{if('elementEnd'===_0x498773[_0x7de69c]['type']){_0x498773[_0x7de69c]['item']['endIndex']=_0x7de69c;const _0x508400=_0x498773[_0x7de69c]['item']['startIndex'];_0x498773[_0x508400]['pairId']=_0x498773[_0x7de69c]['id'],_0x498773[_0x7de69c]['pairId']=_0x498773[_0x508400]['id'];}else _0x498773[_0x7de69c]['item']['startIndex']=_0x7de69c,_0x498773[_0x7de69c]['item']['endIndex']=_0x7de69c,_0x498773[_0x7de69c]['pairId']=null;}_0x498773[_0x7de69c]['markersStart']||(_0x498773[_0x7de69c]['markersStart']=[],_0x498773[_0x7de69c]['markersEnd']=[]);}}['_markInsertions'](_0x3a996a,_0x40dec2){const _0x1f42b4=_0x3a996a['filter'](_0x160c23=>!_0x160c23['isAdded']);for(let _0x2cc4a8=0x0;_0x2cc4a8<_0x40dec2['length'];_0x2cc4a8++)_0x40dec2[_0x2cc4a8]['isAdded']&&(_0x1f42b4[_0x2cc4a8]['isAdded']=_0x40dec2[_0x2cc4a8]['isAdded']);}['_getDiff'](_0x1a82dc,_0x3caa70=null){const _0x5af8c3=this['repository']['getRevision'](_0x1a82dc),_0x41cfe1=_0x3caa70?this['repository']['getRevision'](_0x3caa70):null,_0x5dadc9=this['_getRevisionsRange'](_0x5af8c3,_0x41cfe1),_0x5cf3d9=_0x5dadc9[_0x5dadc9['length']-0x1],_0x536d4d=new Map(),_0x37e01f={'model':{},'attributes':{},'changes':[]},_0x165774=new Set(),_0x2aa526=new Map();for(let _0x57de26=_0x5dadc9['length']-0x1;_0x57de26>=0x0;_0x57de26--){const _0x4e7413=_0x5dadc9[_0x57de26];for(const _0xc757f6 of Object['keys'](_0x4e7413['diffData']))if(_0x4e7413['diffData'][_0xc757f6]['attachChange']){const _0x4b1fda=_0x4e7413['diffData'][_0xc757f6]['attachChange'];_0x4b1fda['isAttached']?(_0x165774['add'](_0xc757f6),_0x2aa526['has'](_0xc757f6)&&_0x2aa526['get'](_0xc757f6)['userId']==_0x4b1fda['userId']?_0x2aa526['delete'](_0xc757f6):_0x2aa526['set'](_0xc757f6,_0x4b1fda)):_0x2aa526['has'](_0xc757f6)?(_0x165774['delete'](_0xc757f6),_0x2aa526['delete'](_0xc757f6)):(_0x165774['add'](_0xc757f6),_0x2aa526['set'](_0xc757f6,_0x4b1fda));}else _0x165774['add'](_0xc757f6);}for(const _0x28bde4 of _0x165774){const _0x24a8c3=_0x2aa526['has'](_0x28bde4)&&!_0x2aa526['get'](_0x28bde4)['isAttached'];let _0x430d87=_0x24a8c3?_0x5dadc9['length']-0x1:0x0;const _0x2a658f=_0x24a8c3?-0x1:0x1;for(;_0x5dadc9[_0x430d87];){const _0x137193=_0x5dadc9[_0x430d87];if(_0x137193['diffData'][_0x28bde4]){const _0x3f504d=_0x24a8c3?_0x137193['diffData'][_0x28bde4]['attributesBefore']:_0x137193['diffData'][_0x28bde4]['attributesAfter'];_0x37e01f['attributes'][_0x28bde4]=_0x3f504d?_0x29c4bb(_0x3f504d):{};break;}_0x430d87+=_0x2a658f;}}for(const _0x180e53 of _0x5dadc9){_0x180e53['model']={};for(const _0x2ff401 of _0x180e53['authors'])_0x536d4d['set'](_0x2ff401['id'],_0x2ff401);for(const _0x2bbc63 of _0x165774){const _0x1f5cc5=_0x180e53['diffData'][_0x2bbc63]?_0x180e53['diffData'][_0x2bbc63]['insertions']:'[]',_0x189634=_0x180e53['diffData'][_0x2bbc63]?_0x180e53['diffData'][_0x2bbc63]['deletions']:'[]';_0x180e53['model'][_0x2bbc63]={'insertions':this['_utils']['_makeModelFromViewString'](_0x1f5cc5),'deletions':this['_utils']['_makeModelFromViewString'](_0x189634)};}}for(const _0x3f7a65 of _0x165774){let _0x1ff414=null,_0x43f68f=0x0;const _0x75bd3f=new Map(Array['from'](_0x5af8c3['model'][_0x3f7a65]['insertions']['markers'])['filter'](([_0x24df64])=>!_0x24df64['startsWith']('revision:')));let _0x132450=0x0;for(const _0x4227ae of _0x5dadc9){const _0x547dde=this['_makeTape'](_0x4227ae['model'][_0x3f7a65]['insertions']);_0x4227ae==_0x5af8c3?(_0x1ff414=_0x547dde,_0x43f68f=_0x1ff414['length'],_0x1ff414['forEach'](_0x4a7a0a=>{_0x4a7a0a['id']=_0x132450++;}),this['_processTape'](_0x1ff414)):this['_markInsertions'](_0x1ff414,_0x547dde);const _0x2a2809=_0x1ff414['filter'](_0xcef70a=>!_0xcef70a['isAdded'])['map'](_0x2a75d3=>_0x2a75d3['id']);let _0x4d0596=0x0;const _0x1fdf1a=this['_makeTape'](_0x4227ae['model'][_0x3f7a65]['deletions']);_0x1fdf1a['forEach'](_0x50a7f6=>{_0x50a7f6['isRemoved']?_0x50a7f6['id']=_0x43f68f++:_0x50a7f6['id']=_0x2a2809[_0x4d0596++];}),this['_processTape'](_0x1fdf1a),this['_setDistance'](_0x1ff414,'isAdded'),this['_setDistance'](_0x1fdf1a,'isRemoved'),_0x4227ae==_0x5af8c3&&this['_markMarkers'](_0x1ff414,_0x75bd3f),_0x1ff414=this['_joinTapes'](_0x1ff414,_0x1fdf1a),this['_refreshStartEndIndex'](_0x1ff414),this['_setDistance'](_0x1ff414,'isRemoved');}_0x1ff414=_0x1ff414['filter'](_0x389ca1=>!(_0x389ca1['isAdded']&&_0x389ca1['isRemoved']));const _0x1c81c7=new Map(_0x5cf3d9['model'][_0x3f7a65]['deletions']['markers']),_0xb8fd5f=new Set(_0x75bd3f['keys']());for(const _0x364069 of _0x1c81c7['keys']())_0xb8fd5f['delete'](_0x364069);this['_markSuggestions'](_0x1ff414,_0xb8fd5f),this['_fixObsoleteTags'](_0x1ff414),_0x1ff414=this['_removeMissingPairs'](_0x1ff414),_0x1ff414=this['_markMismatchedRemovedTags'](_0x1ff414),_0x1ff414=this['_removeUnsupportedChanges'](_0x1ff414);const {root:_0x59b7d4,changes:_0x4deb4d}=this['_makeModelFromTape'](_0x1ff414,_0x536d4d,_0x3f7a65);_0x37e01f['model'][_0x3f7a65]=_0x59b7d4;const _0x21ebad=_0x2aa526['get'](_0x3f7a65);if(_0x21ebad){const _0x3a10c6=_0x536d4d['get'](_0x21ebad['userId']),_0x791b00=new r({'author':_0x3a10c6,'type':_0x21ebad['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x3f7a65});_0x4deb4d['unshift'](_0x791b00),_0x37e01f['attributes'][_0x3f7a65]['revisionHistoryAttachChange']=_0x791b00['id'];}_0x37e01f['changes']=_0x37e01f['changes']['concat'](_0x4deb4d);}return _0x37e01f;}['_markMarkers'](_0x2f7ac7,_0xe70d58){for(let _0x48e4b7=0x0;_0x48e4b7<_0x2f7ac7['length'];_0x48e4b7++)for(const [_0x5cc475,_0x36f2f5]of _0xe70d58)!_0x36f2f5['isCollapsed']&&_0x36f2f5['start']['isEqual'](_0x2f7ac7[_0x48e4b7]['previousPosition'])&&_0x2f7ac7[_0x48e4b7]['markersStart']['push'](_0x5cc475),_0x36f2f5['end']['isEqual'](_0x2f7ac7[_0x48e4b7]['nextPosition'])&&_0x2f7ac7[_0x48e4b7]['markersEnd']['push'](_0x5cc475);}['_joinTapes'](_0xf11003,_0x5dfa63){let _0x20b9b8=[],_0x5ca4c8=0x0,_0x6ea3cc=0x0;for(;_0x5ca4c8<_0xf11003['length']||_0x6ea3cc<_0x5dfa63['length'];){const _0x3abd96=_0xf11003[_0x5ca4c8]||{},_0x5a8cba=_0x5dfa63[_0x6ea3cc]||{};if(_0x3abd96['id']==_0x5a8cba['id'])_0x5ca4c8++,_0x6ea3cc++,_0x20b9b8['push'](_0x3abd96);else{if(_0x5a8cba['isRemoved']&&_0x3abd96['isAdded']){const {commonTape:_0x37ee7f,iEnd:_0x3ae5bd,jEnd:_0x18bc7f}=this['_threeWayMerge'](_0xf11003,_0x5ca4c8,_0x5dfa63,_0x6ea3cc);_0x20b9b8=_0x20b9b8['concat'](_0x37ee7f),_0x5ca4c8=_0x3ae5bd,_0x6ea3cc=_0x18bc7f;}else _0x5a8cba['isRemoved']?(_0x6ea3cc++,_0x20b9b8['push'](_0x5a8cba)):(_0x5ca4c8++,_0x20b9b8['push'](_0x3abd96));}}return _0x20b9b8;}['_markSuggestions'](_0x3f7518,_0x5cf2fb){const _0x67570a=[];for(let _0x2b176e=0x0;_0x2b176e<_0x3f7518['length'];_0x2b176e++){for(let _0x472b83=0x0;_0x472b83<_0x3f7518[_0x2b176e]['markersStart']['length'];_0x472b83++){const _0x5ee4a0=_0x3f7518[_0x2b176e]['markersStart'][_0x472b83];if(!_0x5cf2fb['has'](_0x5ee4a0))continue;const {group:_0x3fd5ec,type:_0x522c7b,authorId:_0x478004}=_0x2b830d(_0x5ee4a0);'revision-suggestion'!=_0x3fd5ec||'insertion'!=_0x522c7b&&'deletion'!=_0x522c7b||(_0x67570a['unshift']({'type':_0x522c7b,'name':_0x5ee4a0,'userId':_0x478004}),_0x3f7518[_0x2b176e]['markersStart']['splice'](_0x472b83,0x1),_0x472b83--);}_0x366b4b(_0x3f7518[_0x2b176e]);for(let _0x4bfeff=0x0;_0x4bfeff<_0x3f7518[_0x2b176e]['markersEnd']['length'];_0x4bfeff++){const _0x591fda=_0x3f7518[_0x2b176e]['markersEnd'][_0x4bfeff];if(!_0x5cf2fb['has'](_0x591fda))continue;const {group:_0x433714,type:_0x2de71d}=_0x2b830d(_0x591fda);if('revision-suggestion'!=_0x433714||'insertion'!=_0x2de71d&&'deletion'!=_0x2de71d)continue;_0x3f7518[_0x2b176e]['markersEnd']['splice'](_0x4bfeff,0x1),_0x4bfeff--;const _0x17eba0=_0x67570a['findIndex'](_0x253797=>_0x253797['name']==_0x591fda);_0x17eba0>-0x1&&_0x67570a['splice'](_0x17eba0,0x1);}}function _0x2b830d(_0x32657f){const _0x4daa42=_0x32657f['split'](':');return{'group':_0x4daa42[0x0],'type':_0x4daa42[0x1],'subType':_0x4daa42['length']>=0x5?_0x4daa42[0x2]:null,'id':_0x4daa42['length']<0x5?_0x4daa42[0x2]:_0x4daa42[0x3],'authorId':_0x4daa42['length']<0x5?_0x4daa42[0x3]:_0x4daa42[0x4],'markerCount':0x6==_0x4daa42['length']?_0x4daa42[0x5]:null};}function _0x366b4b(_0x568918){for(let _0x241e9a=0x0;_0x241e9a<_0x67570a['length'];_0x241e9a++){if(_0x568918['isAdded']&&'insertion'==_0x67570a[_0x241e9a]['type']&&_0x568918['isAdded']['userId']==_0x67570a[_0x241e9a]['userId'])return _0x568918['isAddSuggestion']=_0x67570a[_0x241e9a],void delete _0x568918['isAdded'];if(!_0x568918['isAdded']&&!_0x568918['isRemoved']&&'deletion'==_0x67570a[_0x241e9a]['type'])return void(_0x568918['isRemoveSuggestion']=_0x67570a[_0x241e9a]);}}}['_setDistance'](_0x5aedeb,_0x4636bf){let _0x2b47e9=0x0,_0x24b8b8=!0x1;const _0x1971fb=new Map();for(const _0x312f28 of _0x5aedeb)_0x312f28[_0x4636bf]?_0x24b8b8&&(_0x2b47e9++,_0x24b8b8=!0x1):(_0x2b47e9++,_0x24b8b8=!0x0),_0x1971fb['set'](_0x312f28['id'],_0x2b47e9);for(let _0x5b888f=0x0;_0x5b888f<_0x5aedeb['length'];_0x5b888f++){if('isRemoved'==_0x4636bf&&_0x5aedeb[_0x5b888f]['isAdded']||'isAdded'==_0x4636bf&&_0x5aedeb[_0x5b888f]['isRemoved'])continue;if('text'==_0x5aedeb[_0x5b888f]['type']){_0x5aedeb[_0x5b888f]['distance']=0x0;continue;}const _0x5162e9=_0x1971fb['get'](_0x5aedeb[_0x5b888f]['pairId']),_0x1c7256=_0x1971fb['get'](_0x5aedeb[_0x5b888f]['id']);_0x5aedeb[_0x5b888f]['distance']=_0x5162e9-_0x1c7256;}}['_getRevisionsRange'](_0x129765,_0x488d2c,_0x5f51c7=!0x1){const _0x1ca49b=[];let _0x3a6f3b=this['repository']['getIndex'](_0x129765),_0x41bde5=this['repository']['getIndex'](_0x488d2c);for(-0x1==_0x41bde5&&(_0x41bde5=this['repository']['_revisions']['length'],_0x5f51c7=!0x1);_0x3a6f3b<_0x41bde5;)_0x1ca49b['push'](this['repository']['getRevision'](_0x3a6f3b)),_0x3a6f3b++;return _0x5f51c7&&_0x1ca49b['push'](this['repository']['getRevision'](_0x3a6f3b)),_0x1ca49b;}['_threeWayMerge'](_0x4f7ec9,_0x3f988e,_0x373400,_0x42658f){const _0x474cf3=this['editor']['model']['schema'];let _0x4de1e0=_0x3f988e;for(;_0x4f7ec9[_0x4de1e0]&&_0x4f7ec9[_0x4de1e0]['isAdded'];)_0x4de1e0++;let _0x15e0c6=_0x42658f;for(;_0x373400[_0x15e0c6]&&_0x373400[_0x15e0c6]['isRemoved'];)_0x15e0c6++;_0x575ffc(_0x4f7ec9,_0x3f988e,_0x4de1e0),_0x575ffc(_0x373400,_0x42658f,_0x15e0c6);const _0x564803=_0x373400['slice'](_0x42658f,_0x15e0c6)['concat'](_0x4f7ec9['slice'](_0x3f988e,_0x4de1e0));return _0x564803['sort']((_0x440f67,_0x3bcc1f)=>_0x440f67['side']!=_0x3bcc1f['side']?_0x440f67['side']-_0x3bcc1f['side']:_0x440f67['level']!=_0x3bcc1f['level']?_0x440f67['level']-_0x3bcc1f['level']:_0x440f67['distance']!=_0x3bcc1f['distance']?_0x3bcc1f['distance']-_0x440f67['distance']:!!_0x440f67['isAdded']!=!!_0x3bcc1f['isAdded']?-0x1==_0x440f67['side']||0x0==_0x440f67['side']?_0x440f67['isAdded']?-0x1:0x1:_0x440f67['isAdded']?0x1:-0x1:_0x440f67['index']-_0x3bcc1f['index']),{'commonTape':_0x564803,'iEnd':_0x4de1e0,'jEnd':_0x15e0c6};function _0x575ffc(_0x2dafe2,_0x5bed7f,_0xe84f8d){let _0x1e381e=-0x1,_0x22aafb=Number['POSITIVE_INFINITY'],_0x2fe763=!0x0;for(let _0x27c7fd=_0x5bed7f;_0x27c7fd<_0xe84f8d;_0x27c7fd++)if(_0x474cf3['isInline'](_0x2dafe2[_0x27c7fd]['item'])||(_0x2fe763=!0x1),_0x2dafe2[_0x27c7fd]['item']['startIndex']<_0x5bed7f&&(_0x1e381e=_0x27c7fd),_0x2dafe2[_0x27c7fd]['item']['endIndex']>=_0xe84f8d){_0x22aafb=_0x27c7fd;break;}_0x2fe763&&(_0x1e381e=_0xe84f8d-0x1);for(let _0xe7c154=_0x5bed7f;_0xe7c154<_0xe84f8d;_0xe7c154++)_0x2dafe2[_0xe7c154]['side']=_0xe7c154<=_0x1e381e?-0x1:_0xe7c154<_0x22aafb?0x0:0x1,_0x2dafe2[_0xe7c154]['index']=_0xe7c154;let _0x5ece3f=0x0;for(let _0x308384=_0x5bed7f;_0x308384<=_0x1e381e;_0x308384++)0x0==_0x2dafe2[_0x308384]['distance']?_0x2dafe2[_0x308384]['level']=_0x5ece3f:(_0x5ece3f++,_0x2dafe2[_0x308384]['level']=_0x5ece3f,_0x5ece3f++);for(let _0x2e7194=_0x5bed7f;_0x2e7194<_0xe84f8d;_0x2e7194++)0x0==_0x2dafe2[_0x2e7194]['side']&&(_0x2dafe2[_0x2e7194]['level']=_0x5ece3f);_0x5ece3f=0x0;for(let _0x3632aa=_0xe84f8d-0x1;_0x3632aa>=_0x22aafb;_0x3632aa--)0x0==_0x2dafe2[_0x3632aa]['distance']?_0x2dafe2[_0x3632aa]['level']=_0x5ece3f:(_0x5ece3f--,_0x2dafe2[_0x3632aa]['level']=_0x5ece3f,_0x5ece3f--);}}['_fixObsoleteTags'](_0xe43783){const _0x29b094=new Map(),_0x4982e9=this['editor']['model']['schema'];for(let _0x17f19a=0x1;_0x17f19a<_0xe43783['length'];_0x17f19a++){let _0x141950,_0x452a5b,_0x58b84d;const _0x411b65=_0xe43783[_0x17f19a],_0x2ef966=_0xe43783[_0x17f19a-0x1];if('text'==_0x411b65['type'])continue;if(_0x411b65['type']!=_0x2ef966['type'])continue;if(!_0x4982e9['isBlock'](_0x2ef966['item'])||_0x4982e9['isLimit'](_0x2ef966['item']))continue;if(!_0x4982e9['isBlock'](_0x411b65['item'])||_0x4982e9['isLimit'](_0x411b65['item']))continue;if((_0xe43783[_0x17f19a]['isAdded']||_0xe43783[_0x17f19a]['isAddSuggestion'])&&_0xe43783[_0x17f19a-0x1]['isRemoved'])_0x141950=_0xe43783[_0x17f19a],_0x452a5b=_0xe43783[_0x17f19a-0x1],_0x58b84d=_0x17f19a-0x1;else{if(!_0xe43783[_0x17f19a]['isRemoved']||!_0xe43783[_0x17f19a-0x1]['isAdded']&&!_0xe43783[_0x17f19a-0x1]['isAddSuggestion'])continue;_0x141950=_0xe43783[_0x17f19a-0x1],_0x452a5b=_0xe43783[_0x17f19a],_0x58b84d=_0x17f19a;}const _0x41da73=_0x141950['level']==_0x452a5b['level'],_0xafdaa8=Math['abs'](_0x141950['level'])<Math['abs'](_0x452a5b['level'])&&0x0==_0x452a5b['distance'];(_0x41da73||_0xafdaa8)&&(_0x29b094['set'](_0x452a5b['id'],_0x141950['id']),_0xe43783['splice'](_0x58b84d,0x1),_0x17f19a--,_0x141950['isAdded']=!0x1);}for(let _0x4b2c41=0x0;_0x4b2c41<_0xe43783['length'];_0x4b2c41++)_0x29b094['has'](_0xe43783[_0x4b2c41]['pairId'])&&(_0xe43783[_0x4b2c41]['pairId']=_0x29b094['get'](_0xe43783[_0x4b2c41]['pairId']));}['_removeMissingPairs'](_0x3f81c2){const _0x36c881=new Set(_0x3f81c2['map'](_0xd92e82=>_0xd92e82['id']));for(let _0x5c3e21=0x0;_0x5c3e21<_0x3f81c2['length'];_0x5c3e21++)_0x36c881['has'](_0x3f81c2[_0x5c3e21]['pairId'])||0x0==_0x3f81c2[_0x5c3e21]['distance']||(_0x3f81c2[_0x5c3e21]['isIncorrect']=!0x0);return _0x3f81c2['filter'](_0x5556e7=>!_0x5556e7['isIncorrect']);}['_markMismatchedRemovedTags'](_0x2af90a){const _0x3f3fa3=new Set();for(let _0x447cd4=0x0;_0x447cd4<_0x2af90a['length'];_0x447cd4++){if(_0x3f3fa3['has'](_0x2af90a[_0x447cd4]['id'])&&_0x2af90a[_0x447cd4]['isRemoved']&&(_0x2af90a[_0x447cd4]['isIncorrect']=!0x0),_0x2af90a[_0x447cd4]['isIncorrect'])continue;if(0x0==_0x2af90a[_0x447cd4]['distance'])continue;if('elementStart'!=_0x2af90a[_0x447cd4]['type'])continue;if(null==_0x2af90a[_0x447cd4]['pairId'])continue;let _0x566512=_0x447cd4+0x1,_0x3471bb=0x0;for(;_0x2af90a[_0x566512]['id']!=_0x2af90a[_0x447cd4]['pairId'];)'elementStart'==_0x2af90a[_0x566512]['type']?_0x3471bb++:'elementEnd'==_0x2af90a[_0x566512]['type']&&_0x3471bb--,_0x566512++;if(0x0!=_0x3471bb){if(_0x2af90a[_0x447cd4]['isRemoved'])_0x2af90a[_0x447cd4]['isIncorrect']=!0x0;else{for(;_0x566512!=_0x447cd4;)_0x2af90a[_0x566512]['isRemoved']&&0x0!=_0x2af90a[_0x566512]['distance']&&(_0x2af90a[_0x566512]['isIncorrect']=!0x0,_0x3f3fa3['add'](_0x2af90a[_0x566512]['pairId'])),_0x566512--;}}}return _0x2af90a['filter'](_0x310cd1=>!_0x310cd1['isIncorrect']);}['_removeUnsupportedChanges'](_0xdb6ef6){const _0x598a24=this['editor']['model']['schema'];for(let _0x50ad45=0x0;_0x50ad45<_0xdb6ef6['length'];_0x50ad45++){if(!(_0xdb6ef6[_0x50ad45]['isAdded']||_0xdb6ef6[_0x50ad45]['isAddSuggestion']||_0xdb6ef6[_0x50ad45]['isRemoved']||_0xdb6ef6[_0x50ad45]['isRemoveSuggestion']))continue;if(0x0==_0xdb6ef6[_0x50ad45]['distance'])continue;const _0xa6740b=_0xdb6ef6[_0x50ad45]['item'];_0x598a24['isBlock'](_0xa6740b)||_0x598a24['isLimit'](_0xa6740b)||(_0xdb6ef6[_0x50ad45]['isAdded']&&delete _0xdb6ef6[_0x50ad45]['isAdded'],_0xdb6ef6[_0x50ad45]['isAddSuggestion']&&delete _0xdb6ef6[_0x50ad45]['isAddSuggestion'],_0xdb6ef6[_0x50ad45]['isRemoveSuggestion']&&delete _0xdb6ef6[_0x50ad45]['isRemoveSuggestion'],_0xdb6ef6[_0x50ad45]['isRemoved']&&(_0xdb6ef6[_0x50ad45]['isIncorrect']=!0x0));}return _0xdb6ef6['filter'](_0x1d564f=>!_0x1d564f['isIncorrect']);}['_makeModelFromTape'](_0x104fa1,_0xd64608,_0x15ebfa){const _0x35a590=new gt(),_0x412230=[],_0x2fb424=new Map(),_0x403dec=this['editor']['model'],_0x2b30bb=_0x403dec['schema'],_0x17eab7=[_0x35a590],_0x4f9cc7={},_0x5d404a={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x598f92=null;const _0x34fce3=[0x0];for(let _0x249c35=0x0;_0x249c35<_0x104fa1['length'];_0x249c35++)if('elementStart'===_0x104fa1[_0x249c35]['type']){_0x104fa1[_0x249c35]['previousPosition']=_0x403dec['createPositionFromPath'](_0x35a590,_0x34fce3);const _0x174018=new ut(_0x104fa1[_0x249c35]['item']['name'],_0x104fa1[_0x249c35]['item']['getAttributes']());_0x17eab7[0x0]['_appendChild'](_0x174018),_0x34fce3['push'](0x0),_0x17eab7['unshift'](_0x174018),_0x104fa1[_0x249c35]['nextPosition']=_0x403dec['createPositionFromPath'](_0x35a590,_0x34fce3);}else'elementEnd'===_0x104fa1[_0x249c35]['type']?(_0x17eab7['shift'](),_0x104fa1[_0x249c35]['previousPosition']=_0x403dec['createPositionFromPath'](_0x35a590,_0x34fce3),_0x34fce3['pop'](),_0x34fce3[_0x34fce3['length']-0x1]++,_0x104fa1[_0x249c35]['nextPosition']=_0x403dec['createPositionFromPath'](_0x35a590,_0x34fce3)):(_0x104fa1[_0x249c35]['previousPosition']=_0x403dec['createPositionFromPath'](_0x35a590,_0x34fce3),_0x598f92?_0x598f92['_data']+=_0x104fa1[_0x249c35]['item']['data']:_0x598f92=new mt(_0x104fa1[_0x249c35]['item']['data'],_0x104fa1[_0x249c35]['item']['getAttributes']()),_0x104fa1[_0x249c35+0x1]&&'text'===_0x104fa1[_0x249c35+0x1]['type']&&_0x6d6a58(_0x598f92,_0x104fa1[_0x249c35+0x1]['item'])||(_0x17eab7[0x0]['_appendChild'](_0x598f92),_0x598f92=null),_0x34fce3[_0x34fce3['length']-0x1]+=_0x104fa1[_0x249c35]['item']['offsetSize'],_0x104fa1[_0x249c35]['nextPosition']=_0x403dec['createPositionFromPath'](_0x35a590,_0x34fce3));for(let _0x2ccc90=0x0;_0x2ccc90<_0x104fa1['length'];_0x2ccc90++){const _0x1b0a9a=_0x104fa1[_0x2ccc90]['previousPosition'],_0x80947d=_0x104fa1[_0x2ccc90]['nextPosition'];for(const _0x414f87 of _0x104fa1[_0x2ccc90]['markersStart'])_0x2fb424['set'](_0x414f87,{'start':_0x1b0a9a,'end':null});_0x535f50('isRemoveSuggestion',_0x2ccc90,_0x1b0a9a,_0x80947d),_0x535f50('isAddSuggestion',_0x2ccc90,_0x1b0a9a,_0x80947d),_0x535f50('isRemoved',_0x2ccc90,_0x1b0a9a,_0x80947d),_0x535f50('isAdded',_0x2ccc90,_0x1b0a9a,_0x80947d);for(const _0x5b99ec of _0x104fa1[_0x2ccc90]['markersEnd']){const _0x51e070=_0x2fb424['get'](_0x5b99ec);_0x51e070?_0x51e070['end']=_0x80947d:_0x2fb424['set'](_0x5b99ec,{'start':_0x80947d,'end':_0x80947d});}}for(const [_0x4104af,_0x25c119]of _0x2fb424){const _0x3eba48=this['editor']['model']['createRange'](_0x25c119['start'],_0x25c119['end']);_0x35a590['markers']['set'](_0x4104af,_0x3eba48);}return _0x412230['sort']((_0x2ec4c4,_0x33cc92)=>{const _0x267d84=_0x35a590['markers']['get']('revision:'+_0x2ec4c4['id']),_0x14aff7=_0x35a590['markers']['get']('revision:'+_0x33cc92['id']);return _0x267d84['start']['isBefore'](_0x14aff7['start'])?-0x1:_0x267d84['start']['isAfter'](_0x14aff7['start'])?0x1:_0x267d84['end']['isBefore'](_0x14aff7['end'])?-0x1:_0x267d84['end']['isAfter'](_0x14aff7['end'])?0x1:'add'===_0x2ec4c4['type']?-0x1:0x1;}),{'root':_0x35a590,'changes':_0x412230};function _0x535f50(_0x26f219,_0x467c5c,_0x130ebd,_0x232761){const _0x396108=!!_0x104fa1[_0x467c5c][_0x26f219],_0x2b8b24=_0x396108?_0x104fa1[_0x467c5c][_0x26f219]['userId']:null,_0x59def1=_0x467c5c===_0x104fa1['length']-0x1,_0x5a111e=_0x5d404a[_0x26f219][0x0],_0x166cac=_0x2b30bb['isObject'](_0x104fa1[_0x467c5c]['item']);!_0x4f9cc7[_0x26f219]&&_0x396108?_0x4f9cc7[_0x26f219]={'start':_0x130ebd,'tapeItem':_0x104fa1[_0x467c5c],'userId':_0x2b8b24,'type':_0x26f219}:_0x4f9cc7[_0x26f219]&&!_0x396108?(_0x4f9cc7[_0x26f219]['end']=_0x130ebd,_0x2e091f(_0x4f9cc7[_0x26f219]),_0x4f9cc7[_0x26f219]=null):_0x4f9cc7[_0x26f219]&&_0x396108&&_0x4f9cc7[_0x26f219]['userId']!==_0x2b8b24&&(_0x4f9cc7[_0x26f219]['end']=_0x130ebd,_0x5a111e&&_0x5a111e['userId']===_0x4f9cc7[_0x26f219]['userId']||_0x2e091f(_0x4f9cc7[_0x26f219]),_0x4f9cc7[_0x26f219]={'start':_0x130ebd,'tapeItem':_0x104fa1[_0x467c5c],'userId':_0x2b8b24,'type':_0x26f219}),_0x4f9cc7[_0x26f219]&&_0x166cac&&('elementStart'!==_0x104fa1[_0x467c5c]['type']||_0x5a111e&&_0x5a111e['userId']===_0x2b8b24||_0x5d404a[_0x26f219]['unshift']({'userId':_0x2b8b24,'object':_0x104fa1[_0x467c5c]['item'],'change':_0x4f9cc7[_0x26f219]}),'elementEnd'===_0x104fa1[_0x467c5c]['type']&&_0x5a111e&&_0x5a111e['object']===_0x104fa1[_0x467c5c]['item']&&(_0x5d404a[_0x26f219]['shift'](),_0x4f9cc7[_0x26f219]=_0x5a111e['change'])),_0x4f9cc7[_0x26f219]&&_0x59def1&&(_0x4f9cc7[_0x26f219]['end']=_0x232761,_0x2e091f(_0x4f9cc7[_0x26f219]),_0x4f9cc7[_0x26f219]=null);}function _0x2e091f({start:_0x2568a6,end:_0x336faf,tapeItem:_0x5a3c45,userId:_0x29e14b,type:_0x5dd9c6}){const _0x5a242c=_0x5a3c45['item'],_0xab8bf4=_0x403dec['schema']['isBlock'](_0x5a242c)&&!_0x403dec['schema']['isLimit'](_0x5a242c),_0xaa7de5=_0x2568a6['nodeAfter']==_0x336faf['parent']&&_0x336faf['isAtStart'];if(_0xab8bf4&&_0xaa7de5)return;const _0xfcc686=_0x403dec['createRange'](_0x2568a6,_0x336faf),_0x405a34=_0xd64608['get'](_0x29e14b),_0x3d5ac3=new r({'author':_0x405a34,'type':'isAdded'==_0x5dd9c6||'isAddSuggestion'==_0x5dd9c6?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x5dd9c6||'isRemoveSuggestion'==_0x5dd9c6},'createdAt':new Date(),'rootName':_0x15ebfa});_0x412230['push'](_0x3d5ac3),_0x35a590['markers']['set']('revision:'+_0x3d5ac3['id'],_0xfcc686);}function _0x6d6a58(_0x5e74a1,_0x27f4f6){const _0x4929f5=_0x5e74a1['getAttributes'](),_0x608b07=_0x27f4f6['getAttributes']();for(const _0x3cf1bf of _0x4929f5){if(_0x3cf1bf[0x1]!==_0x27f4f6['getAttribute'](_0x3cf1bf[0x0]))return!0x1;_0x608b07['next']();}return _0x608b07['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x237cc3=>{const _0x3d3c92=_0x237cc3['markerName']['split'](':')[0x1],_0x5727d4=this['_getChangeFromId'](_0x3d3c92);if(!_0x5727d4)return null;const _0x4888f8='add'==_0x5727d4['type']?'insertion':'deletion',_0x2b90cb=['ck-suggestion-marker','ck-suggestion-marker-'+_0x4888f8];return _0x5727d4['data']['isSuggestion']&&_0x2b90cb['push']('ck-suggestion-marker-'+_0x4888f8+'-new'),this['activeChange']==_0x5727d4&&_0x2b90cb['push']('ck-suggestion-marker--active'),{'classes':_0x2b90cb,'attributes':{'data-change-id':_0x3d3c92}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x24e5a0=>{_0x24e5a0['on']('element:pre',(_0x5daf56,_0x10c606,_0x586bed)=>{const _0x538d97=_0x10c606['viewItem']['getChild'](0x0);if(!_0x538d97||!_0x538d97['is']('element','code'))return;if(!_0x586bed['consumable']['consume'](_0x538d97,{'attributes':['vid_start','vid_end']}))return;const _0x329496=_0x10c606['modelRange']['start']['nodeAfter'];_0x586bed['writer']['setAttribute']('vid_start',_0x538d97['getAttribute']('vid_start'),_0x329496),_0x586bed['writer']['setAttribute']('vid_end',_0x538d97['getAttribute']('vid_end'),_0x329496);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x513ebb=>{_0x513ebb['on']('element',(_0x12a30b,_0x581022,_0x37914f)=>{if(!_0x37914f['consumable']['consume'](_0x581022['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x581022['modelRange']['isCollapsed'])return;const _0x32d83a=_0x581022['modelRange']['start']['nodeAfter'];_0x32d83a['hasAttribute']('vid_start')||_0x32d83a['hasAttribute']('vid')||(_0x37914f['writer']['setAttribute']('vid_start',_0x581022['viewItem']['getAttribute']('vid_start'),_0x32d83a),_0x37914f['writer']['setAttribute']('vid_end',_0x581022['viewItem']['getAttribute']('vid_end'),_0x32d83a));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x5bba26=>_0x5bba26['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x541eff,[,_0x5ce151])=>{['vid_start','vid_end','vid']['includes'](_0x5ce151)&&(_0x541eff['return']=!0x0,_0x541eff['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x3dd9cf=>{_0x3dd9cf['on']('attribute:vid',(_0x44eef1,_0x3009a0,_0x35a77d)=>{if('\x20'!=_0x3009a0['item']['data']||_0x3009a0['item']['parent']['maxOffset']>0x1)return;if(!_0x35a77d['consumable']['consume'](_0x3009a0['item'],_0x44eef1['name']))return;const _0x24e447=_0x35a77d['writer'],_0x25364f=_0x35a77d['mapper']['toViewRange'](_0x3009a0['range']);_0x24e447['wrap'](_0x25364f,_0x24e447['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x51b485){const _0x1919cb=_0x51b485['plugins']['get']('RevisionViewer');return(_0x284bf2,_0x8619b7,_0x536b8e)=>{const _0x2bd00c=_0x8619b7['markerName']['split'](':')[0x1],_0x245530=_0x1919cb['_getChangeFromId'](_0x2bd00c);if(!_0x245530)return null;const _0x4063bc='add'==_0x245530['type']?'split':'merge';if(!_0x536b8e['consumable']['test'](_0x8619b7['markerRange'],_0x284bf2['name']))return;const _0x196e8e=_0x8619b7['markerRange']['getWalker'](),_0x20c3f3=_0x8619b7['markerRange']['start'],_0x47e2a=_0x51b485['model']['schema'];let _0x293e83=null,_0x3a492b=null,_0x3481a3=!0x1,_0x245dd7=!0x1;for(const _0x312199 of _0x196e8e){const _0x2c0da4=_0x312199['item'];_0x3481a3=_0x3481a3||_0x47e2a['isContent'](_0x2c0da4);const _0x462223=_0x536b8e['mapper']['toViewElement'](_0x2c0da4);if(_0x462223&&_0x462223['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x312199['type']&&(_0x47e2a['isBlock'](_0x2c0da4)&&!_0x47e2a['isLimit'](_0x2c0da4)&&(_0x2c0da4['nextSibling']||_0x20c3f3['isAtEnd']?_0x293e83&&_0x293e83['parent']==_0x2c0da4||(_0x293e83=_0x2c0da4,_0x4d5789(_0x312199['previousPosition']),_0x245dd7=!0x0):_0x3a492b=_0x3a492b||_0x312199['previousPosition']));}function _0x4d5789(_0x429ac5){const _0x3e6bd7=_0x536b8e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4063bc}),_0x3d7d2d=_0x536b8e['mapper']['toViewPosition'](_0x429ac5);_0x245530['data']['isSuggestion']&&_0x536b8e['writer']['addClass']('ck-suggestion-marker-'+_0x4063bc+'-new',_0x3e6bd7),_0x1919cb['activeChange']==_0x245530&&_0x536b8e['writer']['addClass']('ck-suggestion-marker--active',_0x3e6bd7),_0x536b8e['writer']['insert'](_0x3d7d2d,_0x3e6bd7),_0x536b8e['mapper']['bindElementToMarker'](_0x3e6bd7,_0x8619b7['markerName']);}_0x3481a3||_0x245dd7||!_0x3a492b||_0x4d5789(_0x3a492b);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x860c88,_0x4d1dc9,_0x46c0ab)=>{const _0x3e8ff4=_0x46c0ab['mapper']['markerNameToElements'](_0x4d1dc9['markerName']);if(_0x3e8ff4){for(const _0xc5f602 of _0x3e8ff4)(_0xc5f602['hasClass']('ck-suggestion-marker-split')||_0xc5f602['hasClass']('ck-suggestion-marker-merge'))&&(_0x46c0ab['mapper']['unbindElementFromMarkerName'](_0xc5f602,_0x4d1dc9['markerName']),_0x46c0ab['writer']['remove'](_0xc5f602));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x5bff34,_0x406000,_0x2d12a9)=>{const _0x186628=_0x406000['markerName']['split'](':')[0x1],_0x3d91c9=this['_getChangeFromId'](_0x186628);if(!_0x3d91c9)return null;const _0xa0848b='add'==_0x3d91c9['type']?'split':'merge';if(_0x2d12a9['consumable']['test'](_0x406000['markerRange'],_0x5bff34['name']))for(const _0x289db8 of _0x406000['markerRange']['getItems']()){if(!_0x289db8['is']('element','softBreak'))continue;const _0x4d42eb=_0x2d12a9['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xa0848b}),_0x1bfd6b=_0x2d12a9['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x289db8));_0x3d91c9['data']['isSuggestion']&&_0x2d12a9['writer']['addClass']('ck-suggestion-marker-'+_0xa0848b+'-new',_0x4d42eb),this['activeChange']==_0x3d91c9&&_0x2d12a9['writer']['addClass']('ck-suggestion-marker--active',_0x4d42eb),_0x2d12a9['writer']['insert'](_0x1bfd6b,_0x4d42eb),_0x2d12a9['mapper']['bindElementToMarker'](_0x4d42eb,_0x406000['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0xdf3685=>{for(const _0x5e1011 of this['editor']['model']['document']['getRootNames']()){const _0x165605=this['editor']['model']['document']['getRoot'](_0x5e1011),_0x1eff3f=this['editor']['editing']['view']['document']['getRoot'](_0x5e1011);if(_0x1eff3f){const _0x471aa7=_0x165605['getAttribute']('revisionHistoryAttachChange');if(_0xdf3685['removeAttribute']('data-change-id',_0x1eff3f),_0xdf3685['removeClass']('ck-revision-history-root-add',_0x1eff3f),_0xdf3685['removeClass']('ck-revision-history-root-remove',_0x1eff3f),_0xdf3685['removeClass']('ck-revision-history-root--active',_0x1eff3f),_0x471aa7){const _0x331176=this['_getChangeFromId'](_0x471aa7);if(!_0x331176)return null;_0xdf3685['setAttribute']('data-change-id',_0x471aa7,_0x1eff3f),_0xdf3685['addClass']('ck-revision-history-root-'+_0x331176['type'],_0x1eff3f),this['activeChange']==_0x331176&&_0xdf3685['addClass']('ck-revision-history-root--active',_0x1eff3f);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x475c01=>'revision-comment:'+_0x475c01,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x2cd7c8=>'revision-suggestion:'+_0x2cd7c8,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x378e77=>({'name':'suggestion:'+_0x378e77,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x2931dc=>{const _0x45ec3c=_0x2931dc['markerName']['split'](':')[0x1];return'insertion'!=_0x45ec3c&&'deletion'!=_0x45ec3c?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x45ec3c]};}}),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',(_0x3727b1,_0x2aeb27,_0x4b5b8f)=>{const _0xb226bd=_0x4b5b8f['mapper']['markerNameToElements'](_0x2aeb27['markerName']);if(_0xb226bd){for(const _0x5cb91c of _0xb226bd)_0x5cb91c['is']('uiElement')&&(_0x4b5b8f['mapper']['unbindElementFromMarkerName'](_0x5cb91c,_0x2aeb27['markerName']),_0x4b5b8f['writer']['remove'](_0x5cb91c));}},{'priority':'high'});}['_getChangeFromId'](_0x36f88d){return this['_changeIdToChange']['get'](_0x36f88d);}['_getViewForChange'](_0x248721){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x248721),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x3d4f1a,_0x1d01ad,_0x4a6393,_0x15c4ec)=>{_0x15c4ec&&this['_balloon']['remove'](_0x15c4ec),_0x4a6393&&(this['_balloon']['add']({'view':_0x4a6393,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x384654=this['editor']['editing'],_0xfd8ef8=this['_getChangeFromId'](_0x4a6393['changeId']);let _0x452594;if(_0xfd8ef8['data']['isOnRoot']){const _0x4752a5=_0x384654['view']['getDomRoot'](_0xfd8ef8['rootName']);_0x452594=Array['from'](_0x4752a5['getClientRects']());}else{const _0x1d74c8=this['editor']['model']['markers']['get']('revision:'+_0x4a6393['changeId']);_0x452594=Array['from'](_0x384654['mapper']['markerNameToElements'](_0x1d74c8['name']))['map'](_0x5b680a=>_0x384654['view']['domConverter']['mapViewToDom'](_0x5b680a))['map'](_0x5b7bdc=>Array['from'](_0x5b7bdc['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x452594[0x0];return _0x452594['find'](_0x412da5=>_0x412da5['top']-0x3<=this['_activeViewTarget']['y']&&_0x412da5['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x412da5['left']-0x3<=this['_activeViewTarget']['x']&&_0x412da5['right']+0x3>=this['_activeViewTarget']['x'])||_0x452594[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x2f2084,_0x325781,_0x4bfc31,_0xea2d48)=>{this['activeView']=_0x4bfc31?this['_getViewForChange'](_0x4bfc31):null,this['editor']['model']['change'](()=>{const _0x47bc2a=this['editor']['editing'];_0xea2d48&&(_0xea2d48['data']['isOnRoot']?_0x47bc2a['view']['change'](_0x17b2c8=>{_0x17b2c8['removeClass']('ck-revision-history-root--active',_0x47bc2a['view']['document']['getRoot'](_0xea2d48['rootName']));}):_0x47bc2a['reconvertMarker']('revision:'+_0xea2d48['id'])),_0x4bfc31&&(_0x4bfc31['data']['isOnRoot']?_0x47bc2a['view']['change'](_0x2c4bd1=>{_0x2c4bd1['addClass']('ck-revision-history-root--active',_0x47bc2a['view']['document']['getRoot'](_0x4bfc31['rootName']));}):_0x47bc2a['reconvertMarker']('revision:'+_0x4bfc31['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x3ba358,_0x2ac9bc)=>{if(this['activeChange'])return;const _0x1d8209=this['_findChangeIdFromDomTarget'](_0x2ac9bc['target']),_0x4eab6f=this['_changeIdToChange']['get'](_0x1d8209);_0x4eab6f?(this['_activeViewTarget']={'x':_0x2ac9bc['domEvent']['x'],'y':_0x2ac9bc['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x4eab6f)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x4c7446,_0x17c3a5)=>{const _0x7fc71d=this['_findChangeIdFromDomTarget'](_0x17c3a5['target']),_0x57cbc4=this['_changeIdToChange']['get'](_0x7fc71d);_0x57cbc4?(this['_activeViewTarget']={'x':_0x17c3a5['domEvent']['x'],'y':_0x17c3a5['domEvent']['y']},_0x57cbc4===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x57cbc4):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x56a6f7){do{const _0x319259=_0x56a6f7['getAttribute']('data-change-id');if(_0x319259)return _0x319259;_0x56a6f7=_0x56a6f7['parent'];}while(_0x56a6f7);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x26889b=>{for(const _0x41aa0e of this['editor']['model']['markers'])_0x26889b['removeMarker'](_0x41aa0e);});}}function X(_0x1a3778,_0x196b65){return(_0x3f2b19,_0x41f106,_0xb482e0)=>{if(!_0xb482e0['consumable']['test'](_0x41f106['markerRange'],_0x3f2b19['name']))return;const _0x42236e=_0x41f106['markerRange']['getWalker'](),_0xc64c5e=_0x41f106['markerRange']['start'],_0x206c50=_0x1a3778['model']['schema'];let _0x293767=null,_0x14a6fd=null,_0xdadc80=!0x1,_0x37d396=!0x1;for(const _0x394146 of _0x42236e){const _0x562c8b=_0x394146['item'];_0xdadc80=_0xdadc80||_0x206c50['isContent'](_0x562c8b);const _0x38fdff=_0xb482e0['mapper']['toViewElement'](_0x562c8b);if(_0x38fdff&&_0x38fdff['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x394146['type']&&(_0x206c50['isBlock'](_0x562c8b)&&!_0x206c50['isLimit'](_0x562c8b)&&(_0x562c8b['nextSibling']||_0xc64c5e['isAtEnd']?_0x293767&&_0x293767['parent']==_0x562c8b||(_0x293767=_0x562c8b,_0x2e8c70(_0x394146['previousPosition']),_0x37d396=!0x0):_0x14a6fd=_0x14a6fd||_0x394146['previousPosition']));}function _0x2e8c70(_0x3a7749){const _0x417643=_0xb482e0['mapper']['toViewPosition'](_0x3a7749),_0x4e0871=_0xb482e0['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x196b65});_0xb482e0['writer']['insert'](_0x417643,_0x4e0871),_0xb482e0['mapper']['bindElementToMarker'](_0x4e0871,_0x41f106['markerName']);}_0xdadc80||_0x37d396||!_0x14a6fd||_0x2e8c70(_0x14a6fd);};}class wt extends _0x343bb1{constructor(_0x4d846c){super(_0x4d846c);const _0x48afa4=_0x4d846c['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x48afa4,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x48afa4,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x3ee07b=this['editor'],_0xf35c36=_0x3ee07b['plugins']['get'](m),_0x1b6a64=_0xf35c36['isReady']?_0xf35c36['diff']['newRevisionId']:null;_0x3ee07b['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x1b6a64);}['refresh'](){const {isReady:_0x10f1c7,isEnabled:_0xb3301b,repository:_0x5172c0,diff:_0x3f55f2}=this['editor']['plugins']['get'](m),_0x3676ca=_0x3f55f2&&_0x5172c0['getLaterVisibleRevision'](_0x3f55f2['newRevisionId']);this['isEnabled']=_0x10f1c7&&_0xb3301b&&Boolean(_0x3676ca);}}class pt extends _0x343bb1{['_step'];constructor(_0x436f45,{direction:_0x5b011f}){super(_0x436f45);const _0xf7c733=_0x436f45['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x5b011f?0x1:-0x1,this['listenTo'](_0xf7c733,'change:isReady',()=>this['refresh']()),this['listenTo'](_0xf7c733,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0xf7c733,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x2026b6=this['editor'],_0x1b82ad=_0x2026b6['plugins']['get'](m),{isNavigationMode:_0x5086d9,currentChangeNumber:_0x2bffac}=_0x1b82ad;let _0x299e7b;if(_0x1b82ad['activeChange']=_0x5086d9?_0x1b82ad['diff']['changes']['get'](_0x2bffac+this['_step']):_0x1b82ad['diff']['changes']['first'],_0x1b82ad['activeChange']['data']['isOnRoot'])_0x299e7b=_0x2026b6['editing']['view']['getDomRoot'](_0x1b82ad['activeChange']['rootName']);else{const _0x419ae3=_0x2026b6['model']['markers']['get']('revision:'+_0x1b82ad['activeChange']['id']);_0x299e7b=_0x5c2da8(_0x2026b6['editing'],_0x419ae3);}_0x1b6c13({'target':_0x299e7b,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x5483ef,currentChangeNumber:_0x883412,numberOfChanges:_0x16ed82,isReady:_0x2a9c07,isEnabled:_0x1d446e}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x1d446e&&_0x2a9c07&&_0x16ed82)&&(!_0x5483ef||(0x1===this['_step']?_0x883412<_0x16ed82-0x1:_0x883412>0x0));}}class _i extends _0x282a4d{constructor(_0x3ce6bc){super(_0x3ce6bc);const _0x26d2d7=this['bindTemplate'],_0x1abc57=new _0x2023e5(_0x3ce6bc),_0x8ac771=new _0x2023e5(_0x3ce6bc);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',(_0x5e6c9d,_0x36b771)=>_0x5e6c9d&&_0x36b771>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x21c4f2,_0x158628,_0x48dd1f,_0x1cda16)=>{if(!_0x21c4f2)return g(_0x3ce6bc,'Loading...');if(!_0x48dd1f)return g(_0x3ce6bc,'No\x20changes');const _0x281619=g(_0x3ce6bc,'NUMBER_OF_CHANGES',_0x48dd1f);return _0x1cda16?g(_0x3ce6bc,'X_OF_Y_CHANGES',[_0x158628+0x1,_0x48dd1f]):_0x281619;}),_0x1abc57['set']({'label':g(_0x3ce6bc,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x31e89c}),_0x8ac771['set']({'label':g(_0x3ce6bc,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x5e3a9f}),_0x1abc57['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x8ac771['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x1abc57['on']('execute',()=>this['fire']('execute','backward')),_0x8ac771['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',_0x26d2d7['if']('_isStatusLabelVisible','ck-hidden',_0x2d2f5f=>!_0x2d2f5f)]},'children':[{'text':_0x26d2d7['to']('isNavigationMode',_0x539b91=>_0x539b91?g(_0x3ce6bc,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x3ce6bc,'Total')+':\x20')}]},{'text':_0x26d2d7['to']('_statusText')}]},new _0xc38d5b(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x1abc57,_0x8ac771]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x5c4916{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x41cae7=this['editor']['editing']['view'];_0x41cae7['change'](_0x57bda4=>{for(const _0x2c4284 of _0x41cae7['document']['roots'])_0x57bda4['addClass'](ce,_0x2c4284);});}['hide'](){const _0x209a35=this['editor']['editing']['view'];_0x209a35['change'](_0x3edc22=>{for(const _0x4fce7f of _0x209a35['document']['roots'])_0x3edc22['removeClass'](ce,_0x4fce7f);});}}class R extends _0x5c4916{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,le];}['init'](){const _0x440dda=this['editor'],_0x55df9b=_0x440dda['plugins']['get'](m),_0x45591b=_0x440dda['plugins']['get'](le);_0x440dda['ui']['componentFactory']['add']('exitToEditing',_0xbd98da=>{const _0x3847a9=new _0x2023e5(_0xbd98da);return _0x3847a9['set']({'label':g(_0xbd98da,'Back\x20to\x20editing'),'icon':_0x13bb02,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x3847a9,'execute',()=>{_0x440dda['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x3847a9;}),_0x440dda['ui']['componentFactory']['add']('restoreRevision',_0x4dee08=>{const _0x374189=new _0x2023e5(_0x4dee08);return _0x374189['set']({'label':g(_0x4dee08,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x374189['bind']('isEnabled')['to'](_0x440dda['commands']['get']('restoreRevision')),this['listenTo'](_0x374189,'execute',()=>_0x440dda['execute']('restoreRevision')),_0x374189;}),_0x440dda['ui']['componentFactory']['add']('changesNavigation',_0x210d7d=>{const _0x4f83bb=new _i(_0x210d7d),_0x20983b=_0x440dda['commands']['get']('showPreviousChange'),_0x186b9c=_0x440dda['commands']['get']('showNextChange');return _0x4f83bb['bind']('isBackwardNavigationEnabled')['to'](_0x20983b,'isEnabled'),_0x4f83bb['bind']('isForwardNavigationEnabled')['to'](_0x186b9c,'isEnabled'),_0x4f83bb['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x55df9b),this['listenTo'](_0x4f83bb,'execute',(_0x4ade7b,_0x2739ec)=>{_0x440dda['execute']('forward'===_0x2739ec?'showNextChange':'showPreviousChange');}),_0x4f83bb;}),_0x45591b['show'](),_0x55df9b['on']('change:isReady',(_0x408c27,_0x35d113,_0x28fe80)=>{_0x28fe80?_0x45591b['hide']():_0x45591b['show']();});}}class lt extends nt{['_resizeObserver']=null;constructor(_0x46816b,_0x525982){super(_0x46816b,_0x525982);const _0x28a860=this['bindTemplate'];this['set']({'label':g(_0x46816b,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x46816b,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x28a860['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new at(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0xf5f31d=this['fieldView']['element'];this['_tooltipString']=_0xf5f31d['scrollWidth']>_0xf5f31d['clientWidth']&&_0xf5f31d['value']||'';}}class oi extends _0x282a4d{constructor(_0x173a8f,_0x3370d8,_0xef9988){super(_0x173a8f);const _0x25df08=new _0x9be464();_0x25df08['set']({'content':_0x3178fc,'viewBox':'0\x200\x2011\x2010'});const _0x33ab28=['ck','ck-revision-history-sidebar__revision-author'];_0xef9988&&_0x33ab28['push']('ck-revision-history-sidebar__revision-author_creator');const _0x4483c4=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x173a8f,_0xef9988?'Revision\x20creator':'Revision\x20author')},'children':[_0x25df08,_0x3370d8['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x33ab28},'children':_0x4483c4});}}function ni(_0x479820,_0x46e9f0){const _0x1c838c=_0x479820['bindTemplate'],_0x11cfc1=_0x479820['locale'],_0x3fd282=_0x5e95c1(_0x11cfc1);_0x3fd282['panelPosition']='sw';const _0x15475a=function(_0x2874cf,_0x41d880){const _0x5aab69=function(_0x25f738,_0x38e629){const _0x10188=_0x25f738['locale'],_0x920d31={'Compare\x20against\x20selected':g(_0x10188,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x10188,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x10188,'Restore\x20this\x20revision')};return _0x38e629['map'](_0x1c588f=>{const _0x10ae42=_0x920d31[_0x1c588f['name']];return _0x10ae42&&_0x10ae42!==_0x1c588f['name']&&(_0x1c588f['name']=_0x10ae42),_0x1c588f;});}(_0x2874cf,_0x41d880),_0x85a7d0=new _0x4162a6();for(const _0x2456e9 of _0x5aab69){const _0x16c5c5={'type':'button','model':new to({'label':_0x2456e9['name'],'class':_0x2456e9['class'],'withText':!0x0,'role':'menuitem','_action':_0x2456e9['action']})};_0x16c5c5['model']['bind']('isEnabled')['to'](_0x2874cf,'isActionsDropdownOpen',_0x2e8d73=>'function'!=typeof _0x2456e9['isEnabled']||(!_0x2e8d73||_0x2456e9['isEnabled'](_0x2874cf))),_0x85a7d0['add'](_0x16c5c5);}return _0x85a7d0;}(_0x479820,_0x46e9f0);return _0x479820['bind']('isActionsDropdownOpen')['to'](_0x3fd282,'isOpen'),_0x3fd282['buttonView']['set']({'label':g(_0x11cfc1,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0xa7862a}),_0x3fd282['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x1c838c['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x1c838c['to'](_0x3ae80a=>_0x3ae80a['stopPropagation']())}}),_0x3fd282['on']('execute',_0x2c6474=>{_0x479820['isReady']&&'function'==typeof _0x2c6474['source']['_action']&&_0x2c6474['source']['_action'](_0x479820);}),_0x469502(_0x3fd282,_0x15475a,{'role':'menu'}),_0x3fd282['listenTo'](_0x479820,'change:isActionsDropdownOpen',(_0x7e52c5,_0x13282e,_0x167b8a)=>{if(_0x167b8a)for(const _0x444030 of _0x3fd282['listView']['items']){const _0xdad1d7=_0x444030['children']['first'],_0x5169a0=_0x46e9f0['find'](_0x2d4eb6=>_0x2d4eb6['action']===_0xdad1d7['_action'])['isVisible'];_0x444030['isVisible']=void 0x0===_0x5169a0||_0x5169a0(_0x479820);}}),_0x3fd282;}class ai extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x19bcaa(_0x282a4d){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x137da2,_0x5cf01d,_0x5e3a4d,_0x149015){super(_0x137da2);const _0x389eec=this['bindTemplate'],_0x54d178=function(_0xbddd76,_0x3a39a1){const _0x313067=Array['from'](_0x3a39a1['authors'])['filter'](_0x15d7d8=>_0x15d7d8!=_0x3a39a1['creator']);return _0x3a39a1['creator']&&_0x313067['unshift'](_0x3a39a1['creator']),_0x313067['map'](_0x33cc77=>new oi(_0xbddd76,_0x33cc77,_0x33cc77==_0x3a39a1['creator']));}(_0x137da2,_0x5cf01d);this['id']=_0x5cf01d['id'],this['_revision']=_0x5cf01d,this['_requireRevisionName']=_0x149015,this['bind']('name','createdAt')['to'](_0x5cf01d),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x572d71=>{return _0x59c583=_0x137da2['uiLanguage'],(_0x5b837f=_0x572d71)['toLocaleDateString'](_0x59c583,{'month':'long','day':'numeric'})+',\x20'+_0x5b837f['toLocaleTimeString'](_0x59c583,{'hour':'numeric','minute':'numeric'});var _0x59c583,_0x5b837f;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new lt(_0x137da2,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x2389ff=>_0x2389ff||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x1646b9,_0x54c27a)=>_0x1646b9&&_0x54c27a),this['revisionActionsView']=_0x5e3a4d&&_0x5e3a4d['length']?ni(this,_0x5e3a4d):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x389eec['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x389eec['if']('isEnabled','ck-disabled',_0x294691=>!_0x294691),_0x389eec['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x389eec['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x389eec['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':_0x389eec['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':_0x54d178}]},this['revisionActionsView']],'on':{'click':_0x389eec['to'](_0x559d49=>{_0x559d49['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x1318d0=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x1318d0,'change',()=>{this['_requireRevisionName']&&!_0x1318d0['value']||this['fire']('setName',{'id':this['id'],'name':_0x1318d0['value']}),_0x1318d0['value']||(_0x1318d0['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function vi(_0x548201,_0x5a068d){const _0x234aac=_0x4d0ace['fromJSDate'](_0x548201)['setLocale'](_0x5a068d),_0x321c59=_0x4d0ace['local'](),_0x28816b=_0x321c59['minus']({'days':0x1})['startOf']('day');let _0x2802ff,_0x56fbf5;return _0x234aac['hasSame'](_0x321c59,'day')?(_0x2802ff=_0x234aac['startOf']('day')['toJSDate'](),_0x56fbf5=_0x234aac['toRelativeCalendar']()):_0x234aac['hasSame'](_0x28816b,'day')?(_0x2802ff=_0x28816b['toJSDate'](),_0x56fbf5=_0x234aac['toRelativeCalendar']()):_0x234aac['hasSame'](_0x321c59,'week')?(_0x2802ff=_0x234aac['startOf']('week')['toJSDate'](),_0x56fbf5=_0x234aac['weekdayLong']||''):_0x234aac['hasSame'](_0x321c59,'year')?(_0x2802ff=_0x234aac['startOf']('month')['toJSDate'](),_0x56fbf5=_0x234aac['monthLong']||''):(_0x2802ff=_0x234aac['startOf']('year')['toJSDate'](),_0x56fbf5=String(_0x234aac['year'])),{'startDate':_0x2802ff,'localizedPeriodName':_0x56fbf5};}class mi extends _0x282a4d{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x156a6c,_0x382bc7,_0x34d763,_0x262d5d){super(_0x156a6c);const _0x5cc650=vi(_0x382bc7,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x382bc7,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x34d763,this['_requireRevisionName']=_0x262d5d,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':_0x5cc650}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x4805a2){const _0x308031=new ai(this['locale'],_0x4805a2,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x308031);}['removeRevision'](_0x4af9e7){const _0x22fbf2=this['revisionViews']['find'](_0x1f7889=>_0x1f7889['id']===_0x4af9e7['id']);this['revisionViews']['remove'](_0x22fbf2);}}class as extends _0x282a4d{constructor(_0x4be426){super(_0x4be426);const _0x3e9439=new _0x9be464();_0x3e9439['content']=_0x31f76a,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x3e9439,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[g(_0x4be426,'Revision\x20history')]}]});}}class di extends _0x282a4d{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x278df6,_0x13a133,_0xa001ce,_0x54db30){super(_0x278df6);const _0x44920c=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x13a133,this['_revisionActions']=_0xa001ce,this['_requireRevisionName']=_0x54db30,this['on']('select',(_0x59f028,_0x51940f)=>{this['fire']('revisionSelected',_0x51940f);}),this['on']('setName',(_0x28c7a8,_0x34f541)=>{this['fire']('revisionSetName',_0x34f541);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x278df6),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x44920c['if']('isEnabled','ck-disabled',_0x14659f=>!_0x14659f)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x52389d of this['_revisions'])this['_addRevision'](_0x52389d);this['_revisions']['on']('add',(_0x421ed2,_0x42c41b)=>{this['_addRevision'](_0x42c41b);}),this['_revisions']['on']('remove',(_0x29e463,_0x428e21)=>{this['_removeRevision'](_0x428e21);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x57a18d=>_0x57a18d['revisionViews']['map'](_0x59d21b=>_0x59d21b))['flat']();}['selectRevision'](_0x43bb99){for(const _0x1a1bd3 of this['revisionViews'])_0x43bb99&&_0x43bb99['id']===_0x1a1bd3['id']?_0x1a1bd3['select']():_0x1a1bd3['deselect']();}['highlightRevisions'](_0x2e9eeb){for(const _0x208355 of this['revisionViews'])_0x2e9eeb['some'](({id:_0x1497ff})=>_0x1497ff===_0x208355['id'])?_0x208355['highlight']():_0x208355['unhighlight']();}['_addRevision'](_0xf74819){const _0x32d9cc=vi(_0xf74819['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x9813a9=this['timePeriodViews']['get'](0x0);_0x9813a9&&_0x9813a9['startDate']['getTime']()===_0x32d9cc['getTime']()||(_0x9813a9=new mi(this['locale'],_0x32d9cc,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x9813a9)),_0x9813a9['addRevision'](_0xf74819);}['_removeRevision'](_0x328973){const _0x3df892=vi(_0x328973['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x3df892)['removeRevision'](_0x328973);}['_getTimePeriodViewByStartDate'](_0x4ef5fb){return this['timePeriodViews']['find'](_0x262c77=>_0x262c77['startDate']['getTime']()===_0x4ef5fb['getTime']());}}class d extends _0x5c4916{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
27
27
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
|
-
|
|
29
|
-
_0x25bb70(_0x5fd6fa){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x20cbec,_0x211dba){super(_0x211dba),this['sourceElement']=_0x20cbec,this['model']['document']['createRoot']();const _0x31e6bf=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x31e6bf);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x4fc149,_0x1ba82e){const _0x4cc978=new this(_0x4fc149,_0x1ba82e);return await _0x4cc978['initPlugins'](),await _0x4cc978['ui']['init'](_0x4fc149),await _0x4cc978['data']['init'](_0x4cc978['config']['get']('initialData')||''),_0x4cc978['fire']('ready'),_0x4cc978;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class _t extends _0xe250eb{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x32707f){function _0x433731(_0xad1dbd){return _0xad1dbd['map'](_0x209703=>String['fromCharCode'](_0x209703))['join']('');}super(_0x32707f),this['result']='end',_0x32707f[_0x433731([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x433731([0x76,0x69,0x65,0x77])][_0x433731([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x433731([0x61,0x75,0x74,0x6f]),_0x32707f[_0x433731([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x433731([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x433731([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x433731([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x433731([0x6f,0x6b])});}}class k extends _0xe250eb{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x30af26){if(super(_0x30af26),!this['editor']['config']['get']('revisionHistory'))throw new _0x131c87('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x2bbd5a=>this['_showRevisionViewer']({..._0x2bbd5a,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x388ca3=>this['_closeRevisionViewer'](_0x388ca3)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0xc6ba0c=>this['_restoreRevision'](_0xc6ba0c)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x25bba9){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x25bba9;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x5447e2){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x5447e2);}['getRevision'](_0x1dedcc){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x1dedcc);}['getRevisions'](_0x58a566){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x58a566||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x3b54c9=this['editor'],_0x391462=_0x1f62a5(_0x3b54c9,p),_0x3edc07=_0x3b54c9['plugins']['get']('RevisionTracker'),_0x40b153=_0x3b54c9['plugins']['get']('Users')['users'];return _0x391462['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x391462['lazyRoots'],(_0x391462['plugins']['push'](_t,m,R,class extends _0xe250eb{static get['requires'](){return[m,'Users'];}['init'](){const _0x1224ef=this['editor']['plugins']['get']('Users');for(const _0x363db1 of _0x40b153)_0x363db1['isAnonymous']||_0x1224ef['getUser'](_0x363db1['id'])||_0x1224ef['addUser'](_0x363db1);const _0x48548b=_0x3edc07['repository']['getRevisions']();let _0x5a5afb=null;const _0x21d2af=this['editor']['plugins']['get']('RevisionViewer');_0x21d2af['adapter']=_0x3edc07['adapter'],_0x21d2af['bind']('isEnabled')['to'](_0x3edc07),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x3b54c9,'isReadOnly',_0x4fb64f=>!_0x4fb64f);for(const _0x203551 of _0x48548b){const _0x21854e=null===_0x203551['creator'];if(_0x21854e&&_0x203551['toVersion']===_0x203551['fromVersion'])continue;const _0x24f1bd=_0x203551['toJSON']();_0x21d2af['addRevisionData'](_0x24f1bd,(_0x28fd12,_0x111d2d,_0x5c43ea)=>{if(_0x21854e){if(_0x5a5afb)_0x5a5afb['_update'](_0x28fd12,_0x111d2d);else{if(!_0x111d2d){const _0x120480=_0x5c43ea['toJSON']();_0x120480['id']=_0x12cc6f(),_0x3edc07['saveRevision'](_0x120480,_0x5c43ea['toVersion'])['then'](_0x1760f8=>{_0x5a5afb=_0x1760f8;});}}}else _0x203551['_update'](_0x28fd12,_0x111d2d);});}}},d),_0x391462);}['_enhanceShowRevisionViewerCallback'](){const _0x313aad=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x5867b7=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x161a83=this['editor']['plugins']['get']('Autosave');await _0x161a83['save']();}else await _0x5867b7['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x556529=this['editor']['plugins']['get']('Dialog');_0x556529['isOpen']&&_0x556529['hide']();}const _0x20f386=this['_getRevisionViewerEditorConfig']();return _0x313aad(_0x20f386)['then'](_0x5d3deb=>{return(this['_viewerEditor']=_0x5d3deb,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'),_0x5d3deb);})['catch'](_0x3322b0=>(console['error'](_0x3322b0),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x4ba71c=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'](),_0x4ba71c(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x4457fa=this['editor']['plugins']['get']('Annotations');_0x4457fa['refreshVisibility'](),_0x4457fa['refreshPositioning']();}})));}['_showRevisionViewer'](_0x126570){const _0x26738d=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x9c1cd9=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x25c385=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x25c385,_0x126570)['then'](_0x58f14a=>(_0x9c1cd9['style']['display']='block',_0x26738d['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x58f14a));}['_closeRevisionViewer'](_0x1a5395){const _0x550ddb=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x550ddb['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x1a5395['destroy']();}async['_restoreRevision'](_0x55fc22){const _0x4872e6=this['editor'],_0x3f770b=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x30e6ce=_0x4872e6['plugins']['get']('RevisionTracker'),_0x1c3048=_0x4872e6['plugins']['get']('RevisionHistoryUtils'),_0x179650=_0x3f770b['repository']['getRevision'](_0x55fc22);let _0x22e139,_0x20d1d5,_0x484d41;try{await _0x1c3048['loadRevisionData'](_0x179650,this['adapter']),_0x22e139=_0x1c3048['getRevisionDocumentData'](_0x179650),_0x20d1d5=_0x1c3048['getRevisionRootsAttributes'](_0x179650);}catch(_0x5e97eb){return void console['error'](_0x5e97eb);}_0x4872e6['model']['change'](_0x455788=>{for(const _0xb0e3f7 of Array['from'](_0x4872e6['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x455788['removeMarker'](_0xb0e3f7);}),_0x3f770b['isReady']=!0x1,_0x4872e6['model']['enqueueChange'](_0x1d2b8b=>{_0x1d2b8b['setSelection'](null),_0x1d2b8b['removeSelectionAttribute'](_0x4872e6['model']['document']['selection']['getAttributeKeys']());const _0x4e2588=Object['keys'](_0x22e139);for(const _0x421be1 of _0x4872e6['model']['document']['roots'])'$graveyard'!=_0x421be1['rootName']&&_0x421be1['isAttached']()&&!_0x4e2588['includes'](_0x421be1['rootName'])&&_0x1d2b8b['detachRoot'](_0x421be1);for(const _0x57d20a of _0x4e2588){let _0x30999c=_0x4872e6['model']['document']['getRoot'](_0x57d20a);_0x30999c&&_0x30999c['isAttached']()||(_0x30999c=_0x1d2b8b['addRoot'](_0x57d20a));const _0x18dc08=_0x20d1d5[_0x57d20a],_0x15d4ff=Object['keys'](_0x18dc08),_0x30a07d=_0x22e139[_0x57d20a];for(const _0x3f99f5 of _0x30999c['getAttributeKeys']())_0x15d4ff['includes'](_0x3f99f5)||_0x1d2b8b['removeAttribute'](_0x3f99f5,_0x30999c);for(const _0x2c3d07 of _0x15d4ff)_0x1d2b8b['setAttribute'](_0x2c3d07,_0x20d1d5[_0x57d20a][_0x2c3d07],_0x30999c);_0x1d2b8b['remove'](_0x1d2b8b['createRangeIn'](_0x30999c)),_0x1d2b8b['insert'](_0x4872e6['data']['parse'](_0x30a07d,_0x30999c),_0x30999c,0x0);}});const _0x44b0e2=g(_0x4872e6['locale'],'Restored');if(_0x179650['name'])_0x484d41=-0x1==_0x179650['name']['indexOf'](_0x44b0e2)?_0x44b0e2+':\x20'+_0x179650['name']:_0x179650['name'];else _0x484d41=_0x44b0e2+':\x20'+(_0x179650['createdAt']['toLocaleDateString'](_0x4872e6['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x179650['createdAt']['toLocaleTimeString'](_0x4872e6['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x30e6ce['saveRevision']({'name':_0x484d41}),_0x3f770b['isReady']=!0x0,_0x4872e6['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
|
+
_t();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m];}constructor(_0x3d3c24){super(_0x3d3c24),this['_revisionViewer']=_0x3d3c24['plugins']['get'](m),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x22012f=this['_revisionsRepository']['_revisions'],_0x5a7013=this['_createRevisionActions'](),_0x442ac1=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new di(this['editor']['locale'],_0x22012f,_0x5a7013,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',(_0x1445b1,_0x24dcf8)=>{_0x24dcf8['revisionViews']['on']('add',(_0xfde4e0,_0x45bc30)=>{_0x45bc30['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)),_0x442ac1['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x1b0869=this['_revisionsRepository']['getRevision'](0x0);if(_0x1b0869){const _0x3a79e7=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x1b0869['id']);this['_revisionViewer']['compare'](_0x1b0869,_0x3a79e7);}}['_handleRevisionSelected'](_0x4b2a18,_0x1aca69){const _0x1016cf=this['_revisionsRepository']['getRevision'](_0x1aca69['id']),_0x2e8c6f=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x1016cf['id']);this['_revisionViewer']['compare'](_0x1016cf,_0x2e8c6f);}['_handleRevisionSetName'](_0x494820,_0x32ac02){this['_revisionsRepository']['getRevision'](_0x32ac02['id'])['setName'](_0x32ac02['name']);}['_handleDiffChange'](_0x38bc27,_0x134db2,_0x174b2c){const _0x25bdce=this['_revisionsRepository']['getRevisionsInDiff'](_0x174b2c);_0x25bdce['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x25bdce),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x25bdce[0x0]));}['_createRevisionActions'](){const _0xd2d1cb=this['editor'],_0x5623f0=d['availableRevisionActions'],_0x202be6=_0xd2d1cb['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x202be6['length'])return _0x202be6['map'](_0x428fee=>{const _0x323e84='string'==typeof _0x428fee?Object['assign']({},_0x5623f0[_0x428fee]):_0x428fee;return _0x323e84['action']=_0x323e84['action']['bind'](this,_0xd2d1cb),_0x323e84['isVisible']&&(_0x323e84['isVisible']=_0x323e84['isVisible']['bind'](this,_0xd2d1cb)),_0x323e84;});}}function _t(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x220b67},_0x44636f)=>{const _0x22834c=_0x220b67['get'](m),_0x2224af=_0x22834c['repository'];let _0x374a18=_0x22834c['diff']['newRevisionId'],_0x525b98=_0x44636f['id'];_0x2224af['getIndex'](_0x374a18)>_0x2224af['getIndex'](_0x525b98)&&([_0x374a18,_0x525b98]=[_0x525b98,_0x374a18]),_0x22834c['compare'](_0x374a18,_0x525b98);},'isVisible':({plugins:_0x24a9cd},_0x434cd4)=>{const _0x31bd1d=_0x24a9cd['get'](m);return!(_0x31bd1d['repository']['getRevisionsInDiff'](_0x31bd1d['diff'])['length']>0x2)&&!_0x434cd4['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x4b682d,{id:_0x118820})=>{_0x4b682d['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x118820);},'isVisible':({plugins:_0x38b377},_0x51a1ff)=>!!_0x38b377['get'](m)['repository']['getLaterVisibleRevision'](_0x51a1ff['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x38ce79},{id:_0x5b1e28,revisionNameView:_0x3cea16})=>{const _0x24913d=_0x38ce79['get'](m),_0x173fe7=_0x24913d['repository']['getEarlierVisibleRevision'](_0x5b1e28);_0x24913d['compare'](_0x5b1e28,_0x173fe7),_0x3cea16['focus'](),_0x3cea16['fieldView']['select']();}}};}class tt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x689a4d,_0x3e6dcf){super(_0x689a4d),this['_view']=_0x3e6dcf,this['_toolbarConfig']=et(_0x689a4d['config']['get']('toolbar')),this['_elementReplacer']=new ot();}get['element'](){return this['view']['element'];}['init'](_0x23b373){const _0x14b41f=this['editor'],_0x170d97=this['view'],_0x58b5e6=_0x14b41f['editing']['view'],_0x121ddc=_0x170d97['editable'],_0x54b488=_0x58b5e6['document']['getRoot']();_0x121ddc['name']=_0x54b488['rootName'],_0x170d97['render']();const _0x1a9627=_0x121ddc['element'];this['setEditableElement'](_0x121ddc['name'],_0x1a9627),_0x170d97['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x58b5e6['attachDomRoot'](_0x1a9627),this['_elementReplacer']['replace'](_0x23b373,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x1b635d=this['view'],_0x492645=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x492645['detachDomRoot'](_0x1b635d['editable']['name']),_0x1b635d['destroy']();}['_initToolbar'](){const _0x493fbe=this['view'];_0x493fbe['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x493fbe['stickyPanel']['limiterElement']=_0x493fbe['element'],_0x493fbe['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0xe37104})=>_0xe37104),_0x493fbe['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x493fbe['toolbar']);}}class it extends rt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x3691d8,_0xaf6f0,_0x2c1a44={}){super(_0x3691d8),this['stickyPanel']=new ht(_0x3691d8),this['toolbar']=new dt(_0x3691d8,{'shouldGroupWhenFull':_0x2c1a44['shouldToolbarGroupWhenFull']}),this['_editable']=new ct(_0x3691d8,_0xaf6f0);}['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
|
+
_0x1b016a(_0x251680){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x148a29,_0x3a7e35){super(_0x3a7e35),this['sourceElement']=_0x148a29,this['model']['document']['createRoot']();const _0x40d749=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x40d749);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x32c4fc,_0x311561){const _0x266cc9=new this(_0x32c4fc,_0x311561);return await _0x266cc9['initPlugins'](),await _0x266cc9['ui']['init'](_0x32c4fc),await _0x266cc9['data']['init'](_0x266cc9['config']['get']('initialData')||''),_0x266cc9['fire']('ready'),_0x266cc9;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class yt extends _0x5c4916{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x7b05f3){function _0x507b12(_0x54f2fc){return _0x54f2fc['map'](_0x274b41=>String['fromCharCode'](_0x274b41))['join']('');}super(_0x7b05f3),this['result']='end',_0x7b05f3[_0x507b12([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x507b12([0x76,0x69,0x65,0x77])][_0x507b12([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x507b12([0x61,0x75,0x74,0x6f]),_0x7b05f3[_0x507b12([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x507b12([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x507b12([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x507b12([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x507b12([0x6f,0x6b])});}}class k extends _0x5c4916{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x4a8ce5){if(super(_0x4a8ce5),!this['editor']['config']['get']('revisionHistory'))throw new _0x5e3db6('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x593f61=>this['_showRevisionViewer']({..._0x593f61,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x2a6935=>this['_closeRevisionViewer'](_0x2a6935)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x4a26c0=>this['_restoreRevision'](_0x4a26c0)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x3b102d){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x3b102d;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x35cd60){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x35cd60);}['getRevision'](_0x10950d){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x10950d);}['getRevisions'](_0x5b1877){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x5b1877||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x4eb37c=this['editor'],_0x330e0e=_0x4114d5(_0x4eb37c,p),_0x1a5377=_0x4eb37c['plugins']['get']('RevisionTracker'),_0x471ee4=_0x4eb37c['plugins']['get']('Users')['users'];return _0x330e0e['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x330e0e['lazyRoots'],(_0x330e0e['plugins']['push'](yt,m,R,class extends _0x5c4916{static get['requires'](){return[m,'Users'];}['init'](){const _0x4c032e=this['editor']['plugins']['get']('Users');for(const _0x2a679d of _0x471ee4)_0x2a679d['isAnonymous']||_0x4c032e['getUser'](_0x2a679d['id'])||_0x4c032e['addUser'](_0x2a679d);const _0x2675df=_0x1a5377['repository']['getRevisions']();let _0x3d8d3b=null;const _0x930904=this['editor']['plugins']['get']('RevisionViewer');_0x930904['adapter']=_0x1a5377['adapter'],_0x930904['bind']('isEnabled')['to'](_0x1a5377),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x4eb37c,'isReadOnly',_0x24d0ee=>!_0x24d0ee);for(const _0x218f5b of _0x2675df){const _0x2b8fad=null===_0x218f5b['creator'];if(_0x2b8fad&&_0x218f5b['toVersion']===_0x218f5b['fromVersion'])continue;const _0x224bcc=_0x218f5b['toJSON']();_0x930904['addRevisionData'](_0x224bcc,(_0x509311,_0x1fb8ef,_0x34b4b4)=>{if(_0x2b8fad){if(_0x3d8d3b)_0x3d8d3b['_update'](_0x509311,_0x1fb8ef);else{if(!_0x1fb8ef){const _0x30e207=_0x34b4b4['toJSON']();_0x30e207['id']=_0x1ab53a(),_0x1a5377['saveRevision'](_0x30e207,_0x34b4b4['toVersion'])['then'](_0x2cd678=>{_0x3d8d3b=_0x2cd678;});}}}else _0x218f5b['_update'](_0x509311,_0x1fb8ef);});}}},d),_0x330e0e);}['_enhanceShowRevisionViewerCallback'](){const _0xf03014=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x4384ed=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x225781=this['editor']['plugins']['get']('Autosave');await _0x225781['save']();}else await _0x4384ed['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x559324=this['editor']['plugins']['get']('Dialog');_0x559324['isOpen']&&_0x559324['hide']();}const _0x54f630=this['_getRevisionViewerEditorConfig']();return _0xf03014(_0x54f630)['then'](_0x30ca2b=>{return(this['_viewerEditor']=_0x30ca2b,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'),_0x30ca2b);})['catch'](_0x848e42=>(console['error'](_0x848e42),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x515b05=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'](),_0x515b05(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x2e37d8=this['editor']['plugins']['get']('Annotations');_0x2e37d8['refreshVisibility'](),_0x2e37d8['refreshPositioning']();}})));}['_showRevisionViewer'](_0x48dfa4){const _0x405fbb=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x9c8e30=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x2a0243=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x2a0243,_0x48dfa4)['then'](_0x14ba29=>(_0x9c8e30['style']['display']='block',_0x405fbb['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x14ba29));}['_closeRevisionViewer'](_0x6c8e15){const _0x467353=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x467353['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x6c8e15['destroy']();}async['_restoreRevision'](_0x501b6a){const _0x554b97=this['editor'],_0x1dc5c3=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x4668ec=_0x554b97['plugins']['get']('RevisionTracker'),_0x540052=_0x554b97['plugins']['get']('RevisionHistoryUtils'),_0x41ca27=_0x1dc5c3['repository']['getRevision'](_0x501b6a);let _0x1e88d8,_0x586844,_0x253c3d;try{await _0x540052['loadRevisionData'](_0x41ca27,this['adapter']),_0x1e88d8=_0x540052['getRevisionDocumentData'](_0x41ca27),_0x586844=_0x540052['getRevisionRootsAttributes'](_0x41ca27);}catch(_0x347ec7){return void console['error'](_0x347ec7);}_0x554b97['model']['change'](_0x10388f=>{for(const _0x35e78e of Array['from'](_0x554b97['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x10388f['removeMarker'](_0x35e78e);}),_0x1dc5c3['isReady']=!0x1,_0x554b97['model']['enqueueChange'](_0xcbfc94=>{_0xcbfc94['setSelection'](null),_0xcbfc94['removeSelectionAttribute'](_0x554b97['model']['document']['selection']['getAttributeKeys']());const _0x2109ec=Object['keys'](_0x1e88d8);for(const _0x58d8b8 of _0x554b97['model']['document']['roots'])'$graveyard'!=_0x58d8b8['rootName']&&_0x58d8b8['isAttached']()&&!_0x2109ec['includes'](_0x58d8b8['rootName'])&&_0xcbfc94['detachRoot'](_0x58d8b8);for(const _0xb1abd2 of _0x2109ec){let _0xfa6a79=_0x554b97['model']['document']['getRoot'](_0xb1abd2);_0xfa6a79&&_0xfa6a79['isAttached']()||(_0xfa6a79=_0xcbfc94['addRoot'](_0xb1abd2));const _0x3fc979=_0x586844[_0xb1abd2],_0x216c44=Object['keys'](_0x3fc979),_0x582ae6=_0x1e88d8[_0xb1abd2];for(const _0x224cde of _0xfa6a79['getAttributeKeys']())_0x216c44['includes'](_0x224cde)||_0xcbfc94['removeAttribute'](_0x224cde,_0xfa6a79);for(const _0x400cfa of _0x216c44)_0xcbfc94['setAttribute'](_0x400cfa,_0x586844[_0xb1abd2][_0x400cfa],_0xfa6a79);_0xcbfc94['remove'](_0xcbfc94['createRangeIn'](_0xfa6a79)),_0xcbfc94['insert'](_0x554b97['data']['parse'](_0x582ae6,_0xfa6a79),_0xfa6a79,0x0);}});const _0x32a8b7=g(_0x554b97['locale'],'Restored');if(_0x41ca27['name'])_0x253c3d=-0x1==_0x41ca27['name']['indexOf'](_0x32a8b7)?_0x32a8b7+':\x20'+_0x41ca27['name']:_0x41ca27['name'];else _0x253c3d=_0x32a8b7+':\x20'+(_0x41ca27['createdAt']['toLocaleDateString'](_0x554b97['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x41ca27['createdAt']['toLocaleTimeString'](_0x554b97['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x4668ec['saveRevision']({'name':_0x253c3d}),_0x1dc5c3['isReady']=!0x0,_0x554b97['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,le as RevisionViewerLoadingOverlay,R as RevisionViewerUI,I as RevisionsRepository,d as RevisionsSidebar};
|