@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20250526.0 → 0.0.0-nightly-20250528.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
|
-
_0x124e05(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x23d0f0){super(),this['id']=_0x23d0f0['id']||_0x1a9a0c(),this['creator']=_0x23d0f0['creator']||null,this['authors']=_0x23d0f0['authors']||[],this['diffData']=_0x23d0f0['diffData']||null,this['toVersion']=_0x23d0f0['toVersion']||0x0,this['fromVersion']=_0x23d0f0['fromVersion']||0x0,this['set']('name',_0x23d0f0['name']||''),this['set']('createdAt',_0x23d0f0['createdAt']||new Date()),this['set']('attributes',_0x23d0f0['attributes']||{});}['setName'](_0x187c0c){this['_update']({'name':_0x187c0c});}['setAttribute'](_0x496a0c,_0x5ddc44){const _0x1502c6=_0x2a6504(this['attributes']);_0x29ecee(_0x1502c6,_0x496a0c,_0x5ddc44),this['_update']({'attributes':_0x1502c6});}['removeAttribute'](_0x4c97d8){const _0x47e5ab=_0x2a6504(this['attributes']);_0x571a36(_0x47e5ab,_0x4c97d8),this['_update']({'attributes':_0x47e5ab});}['_update'](_0x2f1cd2,_0x325c1b=!0x1){let _0x5c8528=!0x1;const _0x54a70f={'id':this['id']},_0x401460=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x282c73 of _0x401460){const _0x26f1b0=_0x2f1cd2[_0x282c73];void 0x0!==_0x26f1b0&&_0x26f1b0!==this[_0x282c73]&&(this[_0x282c73]=_0x26f1b0,_0x54a70f[_0x282c73]=_0x26f1b0,_0x5c8528=!0x0);}_0x5c8528&&(_0x54a70f['authors']&&(_0x54a70f['authorsIds']=_0x54a70f['authors']['map'](_0x1e38f6=>_0x1e38f6['id']),delete _0x54a70f['authors']),this['fire']('_update',_0x54a70f,_0x325c1b));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x4498f1=>_0x4498f1['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x751a85{['_revisions'];static get['requires'](){return[_0x585553];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x3b859f){super(_0x3b859f),this['_revisions']=new _0x326ed2();}['afterInit'](){!async function(_0x3c7085){const _0xec157e=_0x3538e6([0x58,0x6b,0x71,0x32,0x6c,0x6f,0x56,0x44,0x37,0x72,0x4f,0x7a,0x36,0x50,0x47,0x54,0x65,0x4e,0x73,0x69,0x61,0x70,0x48,0x34,0x39,0x41,0x30,0x76,0x49,0x63,0x74,0x68,0x33,0x53,0x64,0x55,0x31,0x45,0x43,0x6e,0x4d,0x6d,0x46,0x79,0x5a,0x38,0x4b,0x67,0x52,0x4a,0x51,0x57,0x35,0x62,0x75,0x66,0x78,0x6a,0x42,0x77,0x4c,0x59]),_0x1c187b=0xeb829,_0x33ea55=0x480b348d,_0x516346=0x480c5c7d^_0x33ea55,_0x47f2d8=window[_0x3538e6([0x44,0x61,0x74,0x65])][_0x3538e6([0x6e,0x6f,0x77])](),_0x447570=_0x3c7085[_0x3538e6([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4356a9=new window[(_0x3538e6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5d5c5c=>{_0x447570[_0x3538e6([0x6f,0x6e,0x63,0x65])](_0x3538e6([0x72,0x65,0x61,0x64,0x79]),_0x5d5c5c);}),_0x592bed={[_0x3538e6([0x6b,0x74,0x79])]:_0x3538e6([0x45,0x43]),[_0x3538e6([0x75,0x73,0x65])]:_0x3538e6([0x73,0x69,0x67]),[_0x3538e6([0x63,0x72,0x76])]:_0x3538e6([0x50,0x2d,0x32,0x35,0x36]),[_0x3538e6([0x78])]:_0x3538e6([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]),[_0x3538e6([0x79])]:_0x3538e6([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]),[_0x3538e6([0x61,0x6c,0x67])]:_0x3538e6([0x45,0x53,0x32,0x35,0x36])},_0x12132b=_0x447570[_0x3538e6([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3538e6([0x67,0x65,0x74])](_0x3538e6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3c9caa(){let _0x1e6d90,_0x4e6e69=null,_0x8921f=null;try{if(_0x12132b==_0x3538e6([0x47,0x50,0x4c]))return _0x3538e6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1e6d90=_0xcdce28(),!_0x1e6d90)return _0x3538e6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1e6d90[_0x3538e6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x8921f=_0x1a20fa(_0x1e6d90[_0x3538e6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1e6d90[_0x3538e6([0x6a,0x74,0x69])])),await _0x45b39e()?_0x410b8e()?_0x3441f2()?_0x3538e6([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2d822b()?(_0x1e6d90[_0x3538e6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3538e6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4e6e69=_0x367c3b(_0x3538e6([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1e6d90[_0x3538e6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3538e6([0x74,0x72,0x69,0x61,0x6c])&&(_0x4e6e69=_0x367c3b(_0x3538e6([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1af606()):_0x3538e6([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3538e6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3538e6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x49a245){return _0x3538e6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3441f2(){const _0x4c3b2b=[_0x3538e6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3538e6([0x74,0x72,0x69,0x61,0x6c])][_0x3538e6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e6d90[_0x3538e6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x47f2d8/0x3e8:0xe10*_0x516346;return _0x1e6d90[_0x3538e6([0x65,0x78,0x70])]<_0x4c3b2b;}function _0x410b8e(){const _0x3c08d6=_0x1e6d90[_0x3538e6([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3c08d6)return!0x1;if(_0x3c08d6[_0x3538e6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3538e6([0x2a])))return!0x0;if(_0x3c08d6[_0x3538e6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3538e6([0x52,0x48])))return!0x0;if(_0x3c08d6[_0x3538e6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3538e6([0x52,0x52,0x48]))){if(_0x14749a())return!0x0;if(_0x5a6bfc()||_0x5174e7())return!0x0;}return!0x1;}function _0x2d822b(){const _0x164850=_0x1e6d90[_0x3538e6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x164850||0x0==_0x164850[_0x3538e6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5be63b}=new URL(window[_0x3538e6([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x164850[_0x3538e6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5be63b))return!0x0;const _0xafb17=_0x5be63b[_0x3538e6([0x73,0x70,0x6c,0x69,0x74])](_0x3538e6([0x2e]));return _0x164850[_0x3538e6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x228e84=>_0x228e84[_0x3538e6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3538e6([0x2a])))[_0x3538e6([0x6d,0x61,0x70])](_0x159bb6=>_0x159bb6[_0x3538e6([0x73,0x70,0x6c,0x69,0x74])](_0x3538e6([0x2e])))[_0x3538e6([0x73,0x6f,0x6d,0x65])](_0x292574=>_0xafb17[_0x3538e6([0x65,0x76,0x65,0x72,0x79])]((_0xb7a6d8,_0x376249)=>_0x292574[_0x376249]===_0xb7a6d8||_0x292574[_0x376249]===_0x3538e6([0x2a])));}function _0x1af606(){return _0x4e6e69&&_0x8921f?new window[(_0x3538e6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x231b56,_0x10ec2f)=>{_0x4e6e69[_0x3538e6([0x74,0x68,0x65,0x6e])](_0x231b56,_0x10ec2f),_0x8921f[_0x3538e6([0x74,0x68,0x65,0x6e])](_0x101a53=>{_0x101a53!=_0x3538e6([0x56,0x61,0x6c,0x69,0x64])&&_0x231b56(_0x101a53);},_0x10ec2f);}):_0x4e6e69||_0x8921f||_0x3538e6([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1a20fa(_0x1e54e5,_0x538645){return new window[(_0x3538e6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x211205=>{if(_0x4c0a9e())return _0x211205(_0x3538e6([0x56,0x61,0x6c,0x69,0x64]));_0x36ddf0(),_0x447570[_0x3538e6([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3538e6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x558c50=!0x1;const _0x29f09c=_0x1a9a0c();function _0x47570f(_0x520b8c){return!!_0x520b8c&&(typeof _0x520b8c===_0x3538e6([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x520b8c===_0x3538e6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x520b8c[_0x3538e6([0x74,0x68,0x65,0x6e])]===_0x3538e6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x520b8c[_0x3538e6([0x63,0x61,0x74,0x63,0x68])]===_0x3538e6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x13549d(_0x4bed03){_0x2d3867(_0x4bed03)[_0x3538e6([0x74,0x68,0x65,0x6e])](_0x48f75a=>{if(!_0x48f75a||_0x48f75a[_0x3538e6([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3538e6([0x6f,0x6b]))return _0x3538e6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5bd2f3(_0x2d3fd9(_0x29f09c+_0x538645))!=_0x48f75a[_0x3538e6([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3538e6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3538e6([0x56,0x61,0x6c,0x69,0x64]);})[_0x3538e6([0x74,0x68,0x65,0x6e])](_0x1bd2f6=>(_0x51ba44(),_0x1bd2f6),()=>{const _0x5f29fd=_0x13e792();return null==_0x5f29fd?(_0x51ba44(),_0x3538e6([0x56,0x61,0x6c,0x69,0x64])):_0x3538e6(_0x47f2d8-_0x5f29fd>(0x6c07b08d^_0x33ea55)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3538e6([0x74,0x68,0x65,0x6e])](_0x211205)[_0x3538e6([0x63,0x61,0x74,0x63,0x68])](()=>{_0x211205(_0x3538e6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4fac3a=0x483dda0d^_0x33ea55;function _0x51ba44(){const _0x38b404=_0x3538e6([0x6c,0x6c,0x63,0x74,0x2d])+_0x5bd2f3(_0x2d3fd9(_0x1e54e5)),_0x4d1ea4=_0x3d8ed7(_0x5bd2f3(window[_0x3538e6([0x4d,0x61,0x74,0x68])][_0x3538e6([0x63,0x65,0x69,0x6c])](_0x47f2d8/_0x4fac3a)));window[_0x3538e6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3538e6([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x38b404,_0x4d1ea4);}function _0x13e792(){const _0x1948d5=_0x3538e6([0x6c,0x6c,0x63,0x74,0x2d])+_0x5bd2f3(_0x2d3fd9(_0x1e54e5)),_0x4ddf86=window[_0x3538e6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3538e6([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1948d5);return _0x4ddf86?window[_0x3538e6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3d8ed7(_0x4ddf86),0x10)*_0x4fac3a:null;}function _0x2d3867(_0x2f1ca3){return new window[(_0x3538e6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x595702,_0x1d38d8)=>{_0x2f1ca3[_0x3538e6([0x74,0x68,0x65,0x6e])](_0x595702,_0x1d38d8),window[_0x3538e6([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1d38d8,0x480ae04d^_0x33ea55);});}}_0x447570[_0x3538e6([0x6f,0x6e])](_0x3538e6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2c95db,_0x23c88f)=>{if(_0x23c88f[0x0]!=_0x1e54e5)return _0x211205(_0x3538e6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x23c88f[0x1]={..._0x23c88f[0x1],[_0x3538e6([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x29f09c};},{[_0x3538e6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3538e6([0x68,0x69,0x67,0x68])}),_0x447570[_0x3538e6([0x6f,0x6e])](_0x3538e6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4eac5b=>{_0x47570f(_0x4eac5b[_0x3538e6([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x558c50=!0x0,_0x13549d(_0x4eac5b[_0x3538e6([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3538e6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3538e6([0x6c,0x6f,0x77])}),_0x4356a9[_0x3538e6([0x74,0x68,0x65,0x6e])](()=>{_0x558c50||_0x211205(_0x3538e6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4c0a9e(){return _0x447570[_0x3538e6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3538e6([0x76,0x69,0x65,0x77])][_0x3538e6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3538e6([0x61,0x75,0x74,0x6f]);}function _0x36ddf0(){_0x447570[_0x3538e6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3538e6([0x76,0x69,0x65,0x77])][_0x3538e6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3538e6([0x61,0x75,0x74,0x6f]);}}function _0x367c3b(_0x218f30){const _0xdcee23=[new window[(_0x3538e6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x52a7db=>setTimeout(_0x52a7db,0x48020a41^_0x33ea55)),_0x4356a9[_0x3538e6([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3538e6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x42e88c=>{const _0x1f4062=0x480b348a^_0x33ea55,_0x3317c8=_0x3c7085[_0x3538e6([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0xbc9bba(){_0x3317c8[_0x3538e6([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x1f4062&&_0x42e88c();}_0xbc9bba(),_0x3317c8[_0x3538e6([0x6f,0x6e])](_0x3538e6([0x61,0x64,0x64]),_0xbc9bba);})),new window[(_0x3538e6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f425c=>{function _0x5266a4(){for(const _0x37dad7 in window)if(window[_0x3538e6([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x3538e6([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x37dad7))&&window[_0x37dad7]==_0x1c187b)return _0x2f425c();_0x447570[_0x3538e6([0x73,0x74,0x61,0x74,0x65])]!=_0x3538e6([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x3538e6([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5266a4,0x480b2705^_0x33ea55);}_0x1e268b(_0x3538e6([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x5266a4();})];return window[_0x3538e6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3538e6([0x72,0x61,0x63,0x65])](_0xdcee23)[_0x3538e6([0x74,0x68,0x65,0x6e])](()=>_0x218f30);}async function _0x205560(){if(await _0x4356a9,_0x1e268b(_0x3538e6([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x241009=_0x3c7085[_0x3538e6([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x25f30e=_0x3c7085[_0x3538e6([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])](_0x241009[_0x3538e6([0x69,0x64])]),_0x2413f5=_0x512205(_0x3538e6([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x2413f5[_0x3538e6([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x241009['id'],_0x25f30e?_0x25f30e['id']:null,!0x0),_0x2413f5[_0x3538e6([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x3538e6([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x2413f5[_0x3538e6([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x2413f5[_0x3538e6([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x357daa,void(_0x2413f5[_0x3538e6([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x357daa);}if(_0x1e268b(_0x3538e6([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x5c85c7=_0x512205(_0x3538e6([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x5c85c7[_0x3538e6([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x3538e6([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x5c85c7[_0x3538e6([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x5c85c7[_0x3538e6([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x357daa,_0x5c85c7[_0x3538e6([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x357daa;}_0x447570[_0x3538e6([0x6d,0x6f,0x64,0x65,0x6c])][_0x3538e6([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x357daa,_0x447570[_0x3538e6([0x6d,0x6f,0x64,0x65,0x6c])][_0x3538e6([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x357daa,_0x447570[_0x3538e6([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3538e6([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x14749a(){return _0x1e268b(_0x3538e6([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x512205(_0x3538e6([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3538e6([0x73,0x74,0x61,0x74,0x65])]==_0x3538e6([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x5a6bfc(){return _0x1e268b(_0x3538e6([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 _0x5174e7(){return _0x1e268b(_0x3538e6([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x10cd34(_0x567aa0){const _0x12fc59=_0x415a3d();_0x447570[_0x12fc59]=_0x3538e6([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])+_0x567aa0,_0x567aa0[_0x3538e6([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x3538e6([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x415a3d()]=_0x1c187b),_0x567aa0!=_0x3538e6([0x56,0x61,0x6c,0x69,0x64])&&_0x205560();}function _0x415a3d(){const _0x2a3b09=window[_0x3538e6([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3538e6([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3538e6([0x6e,0x6f,0x77])]())[_0x3538e6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3538e6([0x2e]),'');let _0x4d62e8=_0x3538e6([0x58]);for(let _0x5841a6=0x0;_0x5841a6<_0x2a3b09[_0x3538e6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5841a6+=0x2){let _0x2b7027=window[_0x3538e6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2a3b09[_0x3538e6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5841a6,_0x5841a6+0x2));_0x2b7027>=_0xec157e[_0x3538e6([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2b7027-=_0xec157e[_0x3538e6([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4d62e8+=_0xec157e[_0x2b7027];}return _0x4d62e8;}function _0xcdce28(){const _0x2a7a58=_0x12132b[_0x3538e6([0x73,0x70,0x6c,0x69,0x74])](_0x3538e6([0x2e]));if(0x3!=_0x2a7a58[_0x3538e6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3d3424(_0x2a7a58[0x1]);function _0x3d3424(_0x5c11b1){const _0x2b1fca=_0x1543ca(_0x5c11b1);return _0x2b1fca&&_0x19d20c()?_0x2b1fca:null;function _0x19d20c(){const _0x51ca0f=_0x2b1fca[_0x3538e6([0x6a,0x74,0x69])],_0x51350d=window[_0x3538e6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x51ca0f[_0x3538e6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x51ca0f[_0x3538e6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x215f4b={..._0x2b1fca,[_0x3538e6([0x6a,0x74,0x69])]:_0x51ca0f[_0x3538e6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x51ca0f[_0x3538e6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x215f4b[_0x3538e6([0x76,0x63])],_0x2d3fd9(_0x215f4b)==_0x51350d;}}}async function _0x45b39e(){let _0x3505f2=!0x0;try{const _0x4a215b=_0x12132b[_0x3538e6([0x73,0x70,0x6c,0x69,0x74])](_0x3538e6([0x2e])),[_0x1366af,_0x312cbe,_0x460728]=_0x4a215b;return _0x1e8514(_0x1366af),await _0x10bb97(_0x1366af,_0x312cbe,_0x460728),_0x3505f2;}catch(_0x47b3b9){return!0x1;}function _0x1e8514(_0x1bccb8){const _0x5b2bd4=_0x1543ca(_0x1bccb8);_0x5b2bd4&&_0x5b2bd4[_0x3538e6([0x61,0x6c,0x67])]==_0x3538e6([0x45,0x53,0x32,0x35,0x36])||(_0x3505f2=!0x1);}async function _0x10bb97(_0x5b74b1,_0x547241,_0x17df75){const _0x261dad=window[_0x3538e6([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3538e6([0x66,0x72,0x6f,0x6d])](_0x346481(_0x17df75),_0x483090=>_0x483090[_0x3538e6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1235b1=new window[(_0x3538e6([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3538e6([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5b74b1+_0x3538e6([0x2e])+_0x547241),_0xa120fd=window[_0x3538e6([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3538e6([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xa120fd)return;const _0x34abd9=await _0xa120fd[_0x3538e6([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3538e6([0x6a,0x77,0x6b]),_0x592bed,{[_0x3538e6([0x6e,0x61,0x6d,0x65])]:_0x3538e6([0x45,0x43,0x44,0x53,0x41]),[_0x3538e6([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3538e6([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3538e6([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xa120fd[_0x3538e6([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3538e6([0x6e,0x61,0x6d,0x65])]:_0x3538e6([0x45,0x43,0x44,0x53,0x41]),[_0x3538e6([0x68,0x61,0x73,0x68])]:{[_0x3538e6([0x6e,0x61,0x6d,0x65])]:_0x3538e6([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x34abd9,_0x261dad,_0x1235b1)||(_0x3505f2=!0x1);}}function _0x1543ca(_0x57a494){return _0x57a494[_0x3538e6([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3538e6([0x65,0x79]))?JSON[_0x3538e6([0x70,0x61,0x72,0x73,0x65])](_0x346481(_0x57a494)):null;}function _0x346481(_0x364546){return window[_0x3538e6([0x61,0x74,0x6f,0x62])](_0x364546[_0x3538e6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3538e6([0x2b]))[_0x3538e6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3538e6([0x2f])));}function _0x2d3fd9(_0x51c78d){let _0x3d28b3=0x1505;function _0x318e37(_0x4c0eaa){for(let _0xb2fd84=0x0;_0xb2fd84<_0x4c0eaa[_0x3538e6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xb2fd84++){const _0xbf1b4a=_0x4c0eaa[_0x3538e6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xb2fd84);_0x3d28b3=(_0x3d28b3<<0x5)+_0x3d28b3+_0xbf1b4a,_0x3d28b3&=_0x3d28b3;}}function _0x45ffbd(_0x84256a){Array[_0x3538e6([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x84256a)?_0x84256a[_0x3538e6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x45ffbd):_0x84256a&&typeof _0x84256a==_0x3538e6([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3538e6([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x84256a)[_0x3538e6([0x73,0x6f,0x72,0x74])]()[_0x3538e6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x326255,_0xc48d01])=>{_0x318e37(_0x326255),_0x45ffbd(_0xc48d01);}):_0x318e37(window[_0x3538e6([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x84256a));}return _0x45ffbd(_0x51c78d),_0x3d28b3>>>0x0;}function _0x5bd2f3(_0x4f7eca){return _0x4f7eca[_0x3538e6([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3538e6([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3538e6([0x30]));}function _0x3d8ed7(_0x431058){return _0x431058[_0x3538e6([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3538e6([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3538e6([0x6a,0x6f,0x69,0x6e])]('');}function _0x1e268b(_0x200bf6){return _0x447570[_0x3538e6([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3538e6([0x68,0x61,0x73])](_0x200bf6);}function _0x512205(_0x4acab9){return _0x447570[_0x3538e6([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3538e6([0x67,0x65,0x74])](_0x4acab9);}function _0x357daa(){}function _0x3538e6(_0x521ea8){return _0x521ea8['map'](_0x4a6a11=>String['fromCharCode'](_0x4a6a11))['join']('');}_0x10cd34(await _0x3c9caa());}(this);}['createRevision'](_0x505947){const _0x1d9e91=this['editor']['plugins']['get']('Users');return new h({'id':_0x505947['id'],'name':_0x505947['name'],'creator':_0x505947['creatorId']?_0x1d9e91['getUser'](_0x505947['creatorId']):null,'diffData':_0x505947['diffData']||_0x505947['data'],'authors':_0x505947['authorsIds']['map'](_0x4d04cc=>_0x1d9e91['getUser'](_0x4d04cc)),'createdAt':new Date(_0x505947['createdAt']),'attributes':_0x505947['attributes'],'fromVersion':_0x505947['fromVersion'],'toVersion':_0x505947['toVersion']});}['addRevision'](_0x50b2c8,_0x418151=0x0){this['_revisions']['add'](_0x50b2c8,_0x418151);}['getRevision'](_0x36f014){return this['_revisions']['get'](_0x36f014);}['getRevisions'](_0x86db3c={'toJSON':!0x1}){const _0x3de6d0=Array['from'](this['_revisions']);return _0x3de6d0['reverse'](),_0x86db3c['toJSON']?_0x3de6d0['map'](_0x12b6ab=>_0x12b6ab['toJSON']()):_0x3de6d0;}['getIndex'](_0x1cf68f){return this['_revisions']['getIndex'](_0x1cf68f);}['getEarlierVisibleRevision'](_0x27cd33){const [,_0x1d3f46]=this['getRevisionsIterator'](_0x27cd33,{'direction':'earlier'});return _0x1d3f46;}['getLaterVisibleRevision'](_0xa0dacc){const [,_0x4a1045]=this['getRevisionsIterator'](_0xa0dacc,{'direction':'later'});return _0x4a1045;}['getRevisionsInDiff'](_0xbce69d){const _0x2c52d6=[];for(const _0x196876 of this['getRevisionsIterator'](_0xbce69d['newRevisionId']))if(_0x2c52d6['push'](_0x196876),_0x196876['id']===_0xbce69d['oldRevisionId'])break;return _0x2c52d6;}*['getRevisionsIterator'](_0x1a3b17,{direction:_0x8052a0='earlier',filter:_0x29ae5e=()=>!0x0}={}){const _0x4ee119='earlier'===_0x8052a0?0x1:-0x1;let _0x4e6b9b=this['_revisions']['get'](_0x1a3b17),_0x1661ab=this['getIndex'](_0x4e6b9b);for(yield _0x4e6b9b;_0x4e6b9b;){if(_0x1661ab+=_0x4ee119,_0x4e6b9b=this['getRevision'](_0x1661ab),!_0x4e6b9b)return;_0x29ae5e(_0x4e6b9b)&&(yield _0x4e6b9b);}}}class V extends _0x751a85{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x2a032f,'c'],[_0x5b3505,'a'],[_0x32be45,'e'],[_0x46d633,'r'],[_0x223850,'u']]);['_typeCharToViewClass']=new Map([['c',_0x2a032f],['a',_0x5b3505],['e',_0x32be45],['r',_0x46d633],['u',_0x223850]]);async['loadRevisionData'](_0x2712cb,_0x488807){if(_0x2712cb['diffData']||!_0x488807)return;const _0x129c19=this['editor']['config']['get']('collaboration.channelId'),_0x4a1f67=await _0x488807['getRevision']({'channelId':_0x129c19,'revisionId':_0x2712cb['id']});_0x2712cb['diffData']=_0x4a1f67['diffData'];}['getRevisionDocumentData'](_0x5a1599){const _0xc09c8={};for(const _0x150872 in _0x5a1599['diffData']){if(_0x5a1599['diffData'][_0x150872]['attachChange']&&!_0x5a1599['diffData'][_0x150872]['attachChange']['isAttached'])continue;const _0x445eb2=this['_removeRevisionMarkers'](JSON['parse'](_0x5a1599['diffData'][_0x150872]['insertions'])),_0x5e63ef=this['editor']['editing']['view']['document'],_0x46058c=new _0xa3abf7(_0x5e63ef,_0x445eb2['map'](_0x99e3db=>this['_getViewFromDiffObj'](_0x99e3db,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0xc09c8[_0x150872]=this['editor']['data']['processor']['toData'](_0x46058c),this['editor']['data']['processor']['useFillerType']('default');}return _0xc09c8;}['getRevisionRootsAttributes'](_0x3a045e){const _0x221e69={};for(const _0x2c61f1 in _0x3a045e['diffData'])_0x3a045e['diffData'][_0x2c61f1]['attachChange']&&!_0x3a045e['diffData'][_0x2c61f1]['attachChange']['isAttached']||(_0x221e69[_0x2c61f1]=_0x3a045e['diffData'][_0x2c61f1]['attributesAfter']||{});return _0x221e69;}['_getTypeCharForViewElement'](_0xbdcff2){return this['_viewClassToTypeChar']['get'](_0xbdcff2['constructor']);}['_getViewFromDiffObj'](_0x1bbe2d,_0x5f468e){const _0x1c3545=this['editor']['editing']['view']['document'];if('string'==typeof _0x1bbe2d)return new _0x38e2bd(_0x1c3545,_0x1bbe2d);{let _0x1daf84,_0x3e6ec4;_0x3e6ec4='u'==_0x1bbe2d['type']||'r'==_0x1bbe2d['type']?[]:_0x1bbe2d['children']['map'](_0x49b722=>this['_getViewFromDiffObj'](_0x49b722,_0x5f468e));const _0x47457d=this['_typeCharToViewClass']['get'](_0x1bbe2d['type'])||_0x298de1,_0x2dae52=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x1daf84=new _0x47457d(_0x1c3545,_0x1bbe2d['name'],_0x1bbe2d['attributes'],_0x3e6ec4),'u'==_0x1bbe2d['type']&&_0x1bbe2d['children'][0x0]){const _0x103003=_0x1bbe2d['children'][0x0];if(_0x1daf84['render']=function(_0xd15d50){const _0x2df26c=_0xd15d50['createElement']('div');return _0x2df26c['innerHTML']=_0x103003,_0x2df26c['childNodes'][0x0];},_0x5f468e){const _0x1ed8c3=new _0xa3abf7(_0x1c3545);_0x1ed8c3['_appendChild'](_0x1daf84);const _0x534acd=Array['from'](_0x2dae52['viewChildrenToDom'](_0x1ed8c3,{'bind':!0x1})),_0x18c473=_0x2dae52['domDocument']['createElement']('div');_0x18c473['append'](..._0x534acd),_0x1daf84=Array['from'](_0x2dae52['domChildrenToView'](_0x18c473))[0x0];}}else{if('r'==_0x1bbe2d['type']&&_0x1bbe2d['children'][0x0]){const _0x2671d9=_0x1bbe2d['children'][0x0];if(_0x1daf84['render']=function(_0x47dbcb){_0x47dbcb['innerHTML']=_0x2671d9;},_0x5f468e){const _0x36cb9c=new _0xa3abf7(_0x1c3545);_0x36cb9c['_appendChild'](_0x1daf84);const _0x84605b=Array['from'](_0x2dae52['viewChildrenToDom'](_0x36cb9c,{'bind':!0x1})),_0xcd6a96=_0x2dae52['domDocument']['createElement']('div');_0xcd6a96['append'](..._0x84605b);const _0x19362e=Array['from'](_0x2dae52['domChildrenToView'](_0xcd6a96));_0x19362e['length']>0x1?_0x1daf84['_appendChild'](_0x19362e):_0x1daf84=_0x19362e[0x0];}}}if(_0x1bbe2d['customProperties']){for(const [_0x5dcd04,_0x5a86ca]of _0x1bbe2d['customProperties'])_0x1daf84['_setCustomProperty'](_0x5dcd04,_0x5a86ca);}const _0x157654=void 0x0===_0x1bbe2d['fillerOffset']?null:_0x1bbe2d['fillerOffset'];return null!==_0x157654&&(_0x1daf84['getFillerOffset']=()=>_0x157654),_0x1daf84;}}['_makeModelFromViewString'](_0x198585){const _0x591e1a=JSON['parse'](_0x198585),_0x8b9724=this['editor']['editing']['view']['document'],_0x38eb97=new _0xa3abf7(_0x8b9724,_0x591e1a['map'](_0x52de8b=>this['_getViewFromDiffObj'](_0x52de8b,!0x0)));return this['editor']['data']['toModel'](_0x38eb97);}['_removeRevisionMarkers'](_0x5a3adc){return(_0x5a3adc=_0x5a3adc['filter'](_0xddd205=>!_0xddd205['name']||'revision-start'!==_0xddd205['name']&&'revision-end'!==_0xddd205['name']))['forEach'](_0x3c356c=>{'string'!=typeof _0x3c356c&&(_0x3c356c['children']=this['_removeRevisionMarkers'](_0x3c356c['children']),_0x3c356c['attributes']=_0x3c356c['attributes']['filter'](_0x47b2e8=>!_0x47b2e8[0x0]['startsWith']('data-revision-')));}),_0x5a3adc;}}function g(_0x46d5f8,_0x4bbb25,_0x5d656a){const t=_0x46d5f8['t'];switch(_0x4bbb25){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'},_0x5d656a);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x5d656a);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 _0x751a85{['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[_0x585553,I,V,_0x437b13];}constructor(_0x3b7821){super(_0x3b7821),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 _0x45d7c3=_0x1a9a0c();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x45d7c3},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 _0x4b41fe=this['repository']['getRevision'](0x0),_0x595817=_0x4b41fe&&null===_0x4b41fe['creator']?_0x4b41fe:null;if(this['_continueCurrentRevision']=!!_0x595817&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x1a7a96=this['_source']['getCurrentRevisionId'](),_0x210849=this['repository']['getRevision'](_0x1a7a96);if(_0x210849)this['_startingVersion']=_0x210849['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x49efce=this['_source']['history']['_operations']['find'](_0x20fd7d=>!_0x20fd7d['_isInit']),_0x1c8aa0=_0x49efce?_0x49efce['baseVersion']:this['_source']['history']['version'];_0x4b41fe?(_0x4b41fe['toVersion']<_0x1c8aa0&&_0x4b41fe['_update']({'toVersion':_0x1c8aa0}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x595817['id'],this['_startingVersion']=_0x595817['fromVersion']):(this['_startingVersion']=_0x4b41fe['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x1c8aa0,this['_continueCurrentRevision']=!0x1);}}else _0x595817&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x595817['toVersion'],this['editor']['model']['document']['history']['version']),_0x595817['fromVersion']===_0x595817['toVersion']?(0x0!==_0x595817['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x595817['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x595817['id'],this['_startingVersion']=_0x595817['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',_0xbd1b61=>!_0xbd1b61),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x25446d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x443fb0;for(const _0x354b8c in _0x25446d){const _0x2d4c52=_0x354b8c,_0x1a6ce8=_0x25446d[_0x2d4c52];if('revisionHistoryLicenseKeyValid'==_0x1a6ce8||'revisionHistoryLicenseKeyInvalid'==_0x1a6ce8||'revisionHistoryLicenseKeyExpired'==_0x1a6ce8||'revisionHistoryLicenseKeyDomainLimit'==_0x1a6ce8||'revisionHistoryLicenseKeyNotAllowed'==_0x1a6ce8||'revisionHistoryLicenseKeyEvaluationLimit'==_0x1a6ce8||'revisionHistoryLicenseKeyTrialLimit'==_0x1a6ce8||'revisionHistoryLicenseKeyUsageLimit'==_0x1a6ce8){delete _0x25446d[_0x2d4c52],_0x443fb0=_0x1a6ce8,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x443fb0&&_0x25446d['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x443fb0&&_0x25446d['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x443fb0&&_0x25446d['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x443fb0&&_0x25446d['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x443fb0&&_0x25446d['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x443fb0&&_0x25446d['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x443fb0&&_0x25446d['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x217b01=this['repository']['getRevision'](0x0),_0x172908=await this['getRevisionDocumentData'](_0x217b01),_0x216753=await this['getRevisionRootsAttributes'](_0x217b01);this['_replaceEditorDataWithRevisionData'](_0x172908,_0x216753);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x2b2612){this['_source']=_0x2b2612;}async['update'](){const _0x57ac1e=await this['_source']['getLatestVersion']();if(_0x57ac1e>this['currentRevision']['toVersion']){await this['_loadState']();const _0x4c743a=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x57ac1e});_0x4c743a['authors']=_0x4c743a['authorsIds']['map'](_0x13f067=>this['editor']['plugins']['get']('Users')['getUser'](_0x13f067)),this['currentRevision']['_update'](_0x4c743a);}}async['saveRevision'](_0x226bd4={},_0x3fcfd0=null){const _0x35c957=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x3fcfd0>this['currentRevision']['toVersion']&&(_0x3fcfd0=null),null===_0x3fcfd0&&(_0x3fcfd0=await this['_source']['getLatestVersion']());const _0x4420f4=this['_getFromVersion'](_0x3fcfd0),_0x5cc04e=this['buildRevisionData']({'from':_0x4420f4,'to':_0x3fcfd0});if(this['currentRevision']['toVersion']<_0x3fcfd0){const _0x580688=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x3fcfd0,'to':_0x3fcfd0});_0x580688['authors']=[],_0x580688['authorsIds']=[],_0x580688['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x580688,!0x0),delete _0x580688['authors'],_0x35c957['push'](_0x580688);}_0x226bd4['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x226bd4['name']=_0x226bd4['name']||null,_0x226bd4['id']=_0x226bd4['id']||_0x1a9a0c(),_0x226bd4={..._0x226bd4,..._0x5cc04e};const _0x29cb32=this['addRevisionData'](_0x226bd4);_0x35c957['push'](_0x226bd4);const _0x3ed4db=this['repository']['getIndex'](_0x29cb32);if(0x0!==_0x3ed4db){const _0x4606a1=this['repository']['getRevision'](_0x3ed4db-0x1);if(_0x4606a1['fromVersion']!==_0x3fcfd0){const _0x5752af=this['_revisionDataBuilder']['getData'](_0x3fcfd0,_0x4606a1['toVersion']),_0x3b3b4d={'id':_0x4606a1['id'],'diffData':_0x5752af['diffData'],'authorsIds':_0x5752af['authorsIds'],'authors':_0x5752af['authorsIds']['map'](_0x5ab78d=>this['editor']['plugins']['get']('Users')['getUser'](_0x5ab78d)),'fromVersion':_0x3fcfd0};_0x4606a1===this['currentRevision']&&(_0x3b3b4d['createdAt']=new Date(_0x226bd4['createdAt']['getTime']()+0xa)),_0x4606a1['_update'](_0x3b3b4d,!0x0),delete _0x3b3b4d['authors'],_0x35c957['push'](_0x3b3b4d);}}if(this['adapter']){for(const _0x361735 of _0x35c957)this['_bufferUpdate'](_0x361735['id'],_0x361735,!0x0);this['sendBufferedUpdates']();}return _0x29cb32;}['addRevisionData'](_0x18487c){const _0x58b0c1=this['repository']['createRevision'](_0x18487c);return this['adapter']&&_0x58b0c1['on']('_update',(_0x4b1b62,_0xc1fa9a,_0x3fccf7)=>{_0x3fccf7||(this['_bufferUpdate'](_0xc1fa9a['id'],_0xc1fa9a,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x58b0c1,this['_findInsertionIndex'](_0x58b0c1)),_0x58b0c1;}async['getRevisionDocumentData'](_0x29d498){return await this['_utils']['loadRevisionData'](_0x29d498,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x29d498);}async['getRevisionRootsAttributes'](_0x146706){return await this['_utils']['loadRevisionData'](_0x146706,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x146706);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x142431=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x21e1a6=0x0;_0x21e1a6<_0x142431['length'];_0x21e1a6++){const _0x2fbf3d=_0x142431[_0x21e1a6];let _0x36bfe0=!0x1;for(const _0x55eea0 of Object['keys'](_0x2fbf3d))void 0x0===_0x2fbf3d[_0x55eea0]?delete _0x2fbf3d[_0x55eea0]:'id'!==_0x55eea0&&(_0x36bfe0=!0x0);_0x36bfe0||(_0x142431[_0x21e1a6]=null);}if(_0x142431=_0x142431['filter'](_0x42124e=>null!==_0x42124e),!_0x142431['length'])return;for(let _0x5f077a=0x0;_0x5f077a<_0x142431['length'];_0x5f077a++){const _0x194f03=_0x142431[_0x5f077a];void 0x0!==_0x194f03['fromVersion']&&void 0x0===_0x194f03['toVersion']&&(_0x194f03['toVersion']=this['repository']['getRevision'](_0x194f03['id'])['toVersion']),void 0x0!==_0x194f03['toVersion']&&void 0x0===_0x194f03['fromVersion']&&(_0x194f03['fromVersion']=this['repository']['getRevision'](_0x194f03['id'])['fromVersion']);}const _0x3b7e2e=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x142431,_0x3b7e2e)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x39a3fa=>{if(_0x39a3fa){for(const _0x525988 of _0x39a3fa)this['setRevisionData']({'id':_0x525988['id'],'createdAt':_0x525988['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x196c96=null,from:_0x53c51c=null,to:_0x1302e8=null}){_0x53c51c=null!==_0x53c51c?_0x53c51c:_0x196c96['fromVersion'],_0x1302e8=null!==_0x1302e8?_0x1302e8:_0x196c96['toVersion'];const _0xe8713a=this['_revisionDataBuilder']['getData'](_0x53c51c,_0x1302e8),_0x108e2a={'diffData':_0xe8713a['diffData'],'authorsIds':_0xe8713a['authorsIds'],'fromVersion':_0x53c51c,'toVersion':_0x1302e8};if(!_0x196c96||_0x1302e8!==_0x196c96['toVersion']){const _0x3b6f01=_0x1302e8-0x1,_0xeccdf6=this['_source']['history']['getOperation'](_0x3b6f01);_0x108e2a['createdAt']=_0xeccdf6&&_0xeccdf6['createdAt']||new Date();}if(this['_loadedStateData']&&_0x53c51c===this['_loadedStateData']['fromVersion']){for(const _0x19f7ea of this['_loadedStateData']['authors'])_0x108e2a['authorsIds']['includes'](_0x19f7ea['id'])||_0x108e2a['authorsIds']['push'](_0x19f7ea['id']);}return _0x108e2a;}['_bufferUpdate'](_0x5da14f,_0x522180,_0x223b7c){if(this['_bufferedUpdates']['has'](_0x5da14f)){const _0xbcd784=this['_bufferedUpdates']['get'](_0x5da14f);_0x522180=_0x223b7c?{..._0xbcd784,..._0x522180}:{..._0x522180,..._0xbcd784};}this['_bufferedUpdates']['set'](_0x5da14f,_0x522180);}['setRevisionData'](_0x4726f8){const _0x19fde2=this['repository']['getRevision'](_0x4726f8['id']);if(_0x4726f8['createdAt']&&(_0x4726f8['createdAt']=new Date(_0x4726f8['createdAt'])),_0x4726f8['authorsIds']){const _0x31048b=this['editor']['plugins']['get']('Users');_0x4726f8['authors']=_0x4726f8['authorsIds']['map'](_0x125e9f=>_0x31048b['getUser'](_0x125e9f));}_0x19fde2['_update'](_0x4726f8,!0x0);}['_createInitialRevision'](_0x1212a7){const _0x9dc1a=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x9dc1a)this['_initialRevisionId']=_0x9dc1a['id'];else{const _0x3c3c98=!this['editor']['model']['document']['roots']['find'](_0x33a4e4=>this['editor']['model']['hasContent'](_0x33a4e4)),_0x5e05c9=this['editor']['plugins']['get']('Users')['me']['id'],_0x239479=g(this['editor']['locale'],_0x3c3c98?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x1212a7,'to':_0x1212a7,'id':this['_initialRevisionId'],'name':_0x239479,'creatorId':_0x5e05c9});}}['_createCurrentRevision'](_0x12d74c){const _0x1d4d3a=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x1d4d3a),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x12d74c,'to':_0x12d74c,'id':_0x1d4d3a,'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'](_0xb1ab61,_0x5d0db8){let _0x385f78=this['editor']['config']['get']('initialData'),_0x28d461=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x385f78){_0x385f78={};for(const _0x5815a7 of this['editor']['model']['document']['getRootNames']())_0x385f78[_0x5815a7]='';}if('string'==typeof _0x385f78&&(_0x385f78={'main':_0x385f78}),void 0x0===_0x28d461){_0x28d461={};for(const _0x4d72ea of this['editor']['model']['document']['getRootNames']())_0x28d461[_0x4d72ea]={};}let _0x594452=!0x1;const _0x15f973=Object['keys'](_0x385f78),_0x24231f=Object['keys'](_0xb1ab61);for(const _0x302ef8 of _0x15f973){if(_0x385f78[_0x302ef8]!==_0xb1ab61[_0x302ef8]&&''!==_0x385f78[_0x302ef8]['trim']()){_0x594452=!0x0;break;}if(!_0x5eb2fb(_0x28d461[_0x302ef8],_0x5d0db8[_0x302ef8])&&Object['keys'](_0x28d461[_0x302ef8])['length']>0x0){_0x594452=!0x0;break;}}_0x594452||(_0x594452=_0x24231f['some'](_0x4d0209=>!this['editor']['model']['document']['getRoot'](_0x4d0209))),_0x594452&&_0x44c498('editor-initial-data-replaced-with-revision-data',{'editorData':_0x385f78,'editorRootsAttributes':_0x28d461,'revisionData':_0xb1ab61,'revisionRootsAttributes':_0x5d0db8}),this['editor']['config']['set']('initialData',_0xb1ab61),this['editor']['config']['set']('rootsAttributes',_0x5d0db8);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x150595=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x150595['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x42dbb4){const _0x39aa59=this['repository']['getRevisions']();_0x39aa59['reverse']();let _0x2a3275=0x0;for(;_0x2a3275<_0x39aa59['length'];){const _0xfa0333=_0x39aa59[_0x2a3275];if(_0xfa0333===this['currentRevision']){_0x2a3275++;continue;}if(_0xfa0333['id']===this['_initialRevisionId'])break;const _0x287d82=_0x42dbb4['toVersion']-_0xfa0333['toVersion']||_0x42dbb4['fromVersion']-_0xfa0333['fromVersion'];if(_0x287d82>0x0)break;if(_0x287d82<0x0)_0x2a3275++;else{if(!_0x42dbb4['creator']&&_0xfa0333['creator'])break;if(_0xfa0333['creator']||!_0x42dbb4['creator']){if(_0x42dbb4['createdAt']>_0xfa0333['createdAt'])break;_0x2a3275++;}else _0x2a3275++;}}return _0x2a3275;}['_getFromVersion'](_0x42eaea){const _0x11836a=this['repository']['getRevisions']();_0x11836a['reverse'](),_0x11836a['shift']();const _0x43f40a=_0x11836a['find'](_0x284d19=>_0x284d19['toVersion']<=_0x42eaea)['toVersion'];return _0x43f40a<this['_startingVersion']?this['_startingVersion']:_0x43f40a;}['_makeRevision']({name:_0x3440ff,from:_0x1e9d69,to:_0x2eb9ee,creatorId:_0x1ec75e,id:_0x11769a}){const _0xb89cd1=this['buildRevisionData']({'from':_0x1e9d69,'to':_0x2eb9ee});_0xb89cd1['name']=_0x3440ff,_0xb89cd1['creatorId']=_0x1ec75e,_0xb89cd1['id']=_0x11769a;const _0x465f2d=this['addRevisionData'](_0xb89cd1);return this['adapter']&&this['_bufferUpdate'](_0xb89cd1['id'],_0xb89cd1,!0x0),_0x465f2d;}['_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(_0x13adbb){this['editor']=_0x13adbb,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'](_0x55f5dd){this['source']=_0x55f5dd;const _0x3a1ae8=new Map(),_0x32b9cc=new Map(),_0xa7dd7a=this['editor']['model']['document']['roots']['map'](_0x6ab74a=>_0x6ab74a['rootName']);for(const _0x2eb933 of _0xa7dd7a){const _0xdec9d5=this['editor']['model']['document']['getRoot'](_0x2eb933),_0x5a9c89=N(_0xdec9d5);_0x3a1ae8['set'](_0x2eb933,_0x5a9c89),_0x32b9cc['set'](_0x2eb933,Object['fromEntries'](_0xdec9d5['getAttributes']()));}const _0x53a6f6=Array['from'](this['editor']['model']['markers'])['map'](_0x270e2d=>[_0x270e2d['name'],_0x270e2d['getRange']()]),_0x150100=this['source']['version'];this['_saveMetaData'](_0x150100,_0x3a1ae8,_0x53a6f6,_0x32b9cc),this['_startingRevisionId']=this['_revisionId'];const _0x3517bd=new Map(),_0xfa5708=new Map();for(const _0x5b5fdd of _0xa7dd7a){const _0x1f09a6=P(_0x5b5fdd);_0x3517bd['set'](_0x5b5fdd,_0x1f09a6),_0xfa5708['set'](_0x5b5fdd,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x3517bd,[],_0xfa5708);}['getData'](_0xa285ed,_0x1f5c9d){if(this['_lastFrom']===_0xa285ed&&this['_lastTo']<=_0x1f5c9d)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x1f5c9d,!0x0);else{if(!this['_savedMetaData']['has'](_0xa285ed)){const _0x5a8a19=this['_getPreviousFrom'](_0xa285ed);this['_calculateMetaData'](_0x5a8a19,_0xa285ed,!0x1);}this['_calculateMetaData'](_0xa285ed,_0x1f5c9d,!0x0);}return this['_lastFrom']=_0xa285ed,this['_lastTo']=_0x1f5c9d,this['_getState']();}['loadState'](_0x56d7e9){const _0x5acbd=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x56d7e9['fromVersion'],this['_lastTo']=_0x56d7e9['toVersion'];for(const _0x4e5ad2 in _0x56d7e9['diffData']){const _0x234cf3=_0x56d7e9['diffData'][_0x4e5ad2]['attachChange'],_0x11e68c=_0x2a6504(_0x56d7e9['diffData'][_0x4e5ad2]['attributesBefore'])||{},_0x3e3324=_0x5acbd['_makeModelFromViewString'](_0x56d7e9['diffData'][_0x4e5ad2]['deletions']);_0x3e3324['rootName']=_0x4e5ad2,_0x3e3324['_isAttached']=!_0x234cf3||!_0x234cf3['isAttached'],_0x3e3324['isAttached']=()=>_0x3e3324['_isAttached'],this['_baseRoots']['set'](_0x4e5ad2,_0x3e3324),this['_baseRootsAttributes']['set'](_0x4e5ad2,_0x11e68c),_0x234cf3&&this['_touchedRoots']['set'](_0x4e5ad2,_0x234cf3);const _0x44bbbb=this['_makeIdsRoot'](_0x3e3324);this['_baseIdsRoots']['set'](_0x4e5ad2,_0x44bbbb);for(const [_0x3774e1,_0x349c99]of _0x3e3324['markers']){if(!_0x3774e1['startsWith']('revision:'))continue;const _0x189404=_0x3774e1['split'](':')[0x2];for(const _0xd6b2b7 of _0x349c99['getWalker']({'singleCharacters':!0x0})){const _0x368503=this['_getVidAttributeName'](_0xd6b2b7),_0x3f18d6='elementEnd'==_0xd6b2b7['type']?_0xd6b2b7['previousPosition']['path']['slice'](0x0,-0x1):_0xd6b2b7['previousPosition']['path'],_0x368497=_0x44bbbb['getNodeByPath'](_0x3f18d6)['getAttribute'](_0x368503);this['_touched']['set'](_0x368497,{'userId':_0x189404});}}}this['_startingRevisionId']=this['_revisionId'];const _0x598ade=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x54e119=>!this['_touched']['has'](_0x54e119));let _0x5c44bb=0x0;const _0x245d29=new Map();for(const _0x578f25 in _0x56d7e9['diffData']){const _0x503dfe=_0x56d7e9['diffData'][_0x578f25]['attachChange'],_0x4e9ea6=_0x2a6504(_0x56d7e9['diffData'][_0x578f25]['attributesAfter'])||{},_0x23d3db=_0x5acbd['_makeModelFromViewString'](_0x56d7e9['diffData'][_0x578f25]['insertions']);_0x23d3db['rootName']=_0x578f25,_0x23d3db['_isAttached']=!_0x503dfe||_0x503dfe['isAttached'],_0x23d3db['isAttached']=()=>_0x23d3db['_isAttached'],this['_diffRoots']['set'](_0x578f25,_0x23d3db),this['_diffRootsAttributes']['set'](_0x578f25,_0x4e9ea6);const _0x117131=this['_makeIdsRoot'](_0x23d3db,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x578f25,_0x117131),_0x245d29['set'](_0x578f25,_0x23d3db['isAttached']()?_0x4e9ea6:{});for(const [_0x1fa9df,_0xf2956f]of _0x23d3db['markers']){if(!_0x1fa9df['startsWith']('revision:'))continue;const _0x2db030=_0x1fa9df['split'](':')[0x2];for(const _0x75c88b of _0xf2956f['getWalker']({'singleCharacters':!0x0})){const _0x76dca6=this['_getVidAttributeName'](_0x75c88b),_0x1b87a8=this['_revisionId']++,_0x71f5ef='elementEnd'==_0x75c88b['type']?_0x75c88b['previousPosition']['path']['slice'](0x0,-0x1):_0x75c88b['previousPosition']['path'];_0x117131['getNodeByPath'](_0x71f5ef)['_setAttribute'](_0x76dca6,_0x1b87a8),this['_touched']['set'](_0x1b87a8,{'userId':_0x2db030});}}for(const _0x312b75 of this['editor']['model']['createRangeIn'](_0x23d3db)['getWalker']({'singleCharacters':!0x0})){const _0x486aed=this['_getVidAttributeName'](_0x312b75),_0x15372d='elementEnd'==_0x312b75['type']?_0x312b75['previousPosition']['path']['slice'](0x0,-0x1):_0x312b75['previousPosition']['path'],_0x48fe2d=_0x117131['getNodeByPath'](_0x15372d);_0x48fe2d['getAttribute'](_0x486aed)>0x0||_0x48fe2d['_setAttribute'](_0x486aed,_0x598ade[_0x5c44bb++]);}for(const [_0x385c68,_0x33365c]of _0x23d3db['markers'])_0x385c68['startsWith']('revision:')||this['_markers']['set'](_0x385c68,_0x33365c);}const _0x36559a=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0x36559a),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x36559a,0x1));const _0xa7bc6=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0xa7bc6),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0xa7bc6,0x1));const _0x505e3a=Array['from'](this['_diffRoots'])['map'](([_0xfc56dd,_0x2a7d77])=>[_0xfc56dd,N(_0x2a7d77)]);this['_saveMetaData'](this['_lastTo'],_0x505e3a,this['_markers'],_0x245d29);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x93d12b,_0x7b8f33,_0x13fed9,_0x484170){const _0x3ac4ea=new Map(_0x7b8f33),_0x2b11dc=new Map(_0x2a6504(_0x484170)),_0x3cf6a5=new Map();for(const [_0x235218,_0x397633]of _0x13fed9)_0x3cf6a5['set'](_0x235218,{'start':_0x397633['start']['clone'](),'end':_0x397633['end']['clone'](),'rootName':_0x397633['root']['rootName']});this['_savedMetaData']['set'](_0x93d12b,{'roots':_0x3ac4ea,'markers':_0x3cf6a5,'rootsAttributes':_0x2b11dc});}['_removeMetaData'](_0x53110f){this['_savedMetaData']['delete'](_0x53110f);}['_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'](_0x579608,_0x4a1df0=null){let _0x48070=null;_0x579608['is']('documentFragment')||(_0x48070=new ut(_0x579608['name'],{'vid_start':null===_0x4a1df0?this['_revisionId']++:_0x4a1df0++}));const _0x1a36e7=[];for(const _0x46fab2 of _0x579608['getChildren']())if(_0x46fab2['is']('element')){_0x1a36e7['push'](this['_makeIdsRoot'](_0x46fab2,_0x4a1df0));const _0x4aee8a=_0x1a36e7[_0x1a36e7['length']-0x1];null!==_0x4a1df0&&(_0x4a1df0=_0x4aee8a['is']('element','$text')?_0x4aee8a['getAttribute']('vid')+0x1:_0x4aee8a['getAttribute']('vid_end')+0x1);}else{for(let _0x331aa7=0x0;_0x331aa7<_0x46fab2['offsetSize'];_0x331aa7++)_0x1a36e7['push'](new ut('$text',{'vid':null===_0x4a1df0?this['_revisionId']++:_0x4a1df0++}));}if(_0x579608['is']('documentFragment')){const _0x1e41e4=P(_0x579608['rootName']);return _0x1e41e4['_insertChild'](0x0,_0x1a36e7),_0x1e41e4;}return _0x48070['_setAttribute']('vid_end',null===_0x4a1df0?this['_revisionId']++:_0x4a1df0++),_0x48070['_insertChild'](0x0,_0x1a36e7),_0x48070;}['_calculateMetaData'](_0x4f1a8c,_0x493cd1,_0x23d5c8){this['_reset']();const {roots:_0x19ed43,markers:_0x2427d6,rootsAttributes:_0x4e2abd}=this['_savedMetaData']['get'](_0x4f1a8c);this['_baseRoots']=new Map(_0x19ed43),this['_baseRootsAttributes']=new Map(_0x2a6504(_0x4e2abd));for(const [_0x40e2b2,_0x4ddb34]of this['_baseRoots'])if('$graveyard'!==_0x40e2b2&&(this['_diffRoots']['set'](_0x40e2b2,N(_0x4ddb34)),this['_diffRootsAttributes']=new Map(_0x2a6504(_0x4e2abd)),_0x23d5c8)){const _0x51fb22=this['_revisionId'];this['_idsRoots']['set'](_0x40e2b2,this['_makeIdsRoot'](_0x4ddb34)),this['_baseIdsRoots']['set'](_0x40e2b2,this['_makeIdsRoot'](_0x4ddb34,_0x51fb22));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x23d5c8&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x383304,_0x3da7f7]of _0x2427d6){const _0x23c4e7=this['_baseRoots']['get'](_0x3da7f7['rootName']),_0x23ba46=this['_diffRoots']['get'](_0x3da7f7['rootName']),_0x2a228c=new lt(this['_fixPosition'](_0x3da7f7['start'],_0x23c4e7),this['_fixPosition'](_0x3da7f7['end'],_0x23c4e7)),_0x51ac13=this['_fixRange'](_0x2a228c,_0x23ba46);_0x23c4e7['markers']['set'](_0x383304,_0x2a228c),this['_markers']['set'](_0x383304,_0x51ac13);}this['_applyOperations'](_0x4f1a8c,_0x493cd1,_0x23d5c8);}['_applyOperations'](_0x3ebc9f,_0x502fe8,_0x4c3d76){for(const _0xdf323b of this['source']['getOperations'](_0x3ebc9f,_0x502fe8))this['_handleOperation'](_0xdf323b,_0x4c3d76);for(const _0x4da3e6 of this['_diffRoots']['values']())_0x4da3e6['markers']['clear']();for(const [_0x445534,_0x4b9cd5]of this['_markers']){this['_diffRoots']['get'](_0x4b9cd5['root']['rootName'])['markers']['set'](_0x445534,_0x4b9cd5['clone']());}const _0x25c5e5=new Map(),_0x56dad4=new Map();for(const [_0x36554e,_0x13ddc0]of this['_diffRoots'])_0x25c5e5['set'](_0x36554e,N(_0x13ddc0)),_0x56dad4['set'](_0x36554e,this['_diffRootsAttributes']['get'](_0x36554e));this['_saveMetaData'](_0x502fe8,_0x25c5e5,this['_markers'],_0x56dad4);}['_getPreviousFrom'](_0x4f92ad){const _0x3a5f2b=Array['from'](this['_savedMetaData']['keys']());_0x3a5f2b['sort']((_0x4805c8,_0xe2c16c)=>_0x4805c8-_0xe2c16c),_0x3a5f2b['reverse']();for(const _0x3388d3 of _0x3a5f2b)if(_0x3388d3<_0x4f92ad)return _0x3388d3;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x28a34b,_0x14bffa){const _0x29b369=Array['from'](_0x14bffa['markers'])['map'](([_0xcfd180,_0x1e27e1])=>[_0xcfd180,this['_fixRange'](_0x1e27e1,_0x28a34b)]);_0x28a34b['markers']=new Map(_0x29b369);}['_transformMarkers'](_0xaa802c){for(const _0x4ddc28 of this['_markers']['values']()){const _0x1512a6=_0x4ddc28['getTransformedByOperation'](_0xaa802c),_0x40977e=lt['_createFromRanges'](_0x1512a6);_0x4ddc28['start']=_0x40977e['start'],_0x4ddc28['end']=_0x40977e['end'];}}['_handleOperation'](_0x1a0e3c,_0x288bff){if('addRoot'!=_0x1a0e3c['type']&&'detachRoot'!=_0x1a0e3c['type']){if('insert'==_0x1a0e3c['type']){const _0x5603cd=_0x1a0e3c['position']['root']['rootName'];this['_diffRoots']['has'](_0x5603cd)||(this['_diffRoots']['set'](_0x5603cd,P(_0x5603cd,!0x0)),this['_diffRootsAttributes']['set'](_0x5603cd,{}),_0x288bff&&this['_idsRoots']['set'](_0x5603cd,P(_0x5603cd,!0x0)));}else{if('addRootAttribute'==_0x1a0e3c['type']||'removeRootAttribute'==_0x1a0e3c['type']||'changeRootAttribute'==_0x1a0e3c['type'])return void this['_handleRootAttributeOperation'](_0x1a0e3c);'marker'==_0x1a0e3c['type']&&this['_handleMarkerOperation'](_0x1a0e3c);}if('marker'!==_0x1a0e3c['type']){const _0x529d3e=this['_cloneOperation'](_0x1a0e3c,this['_diffRoots']);_0x529d3e['_execute'](),this['_transformMarkers'](_0x529d3e);}if(_0x288bff)switch(_0x1a0e3c['type']){case'insert':this['_handleInsertOperation'](_0x1a0e3c);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x1a0e3c);break;case'merge':this['_handleMergeOperation'](_0x1a0e3c);break;case'split':this['_handleSplitOperation'](_0x1a0e3c);}}else this['_handleRootOperation'](_0x1a0e3c,_0x288bff);}['_cloneOperation'](_0x5e0397,_0x4bee6f){const _0xc70a03=_0x5e0397['clone']();return _0xc70a03['_authorId']=_0x5e0397['_authorId'],this['_fixOperation'](_0xc70a03,_0x4bee6f),_0xc70a03;}['_getBaseVids'](_0x1a1a90){return _0x1a1a90['map'](_0x6cf873=>{const _0x507ff5=this['_getVidAttributeName'](_0x6cf873);return Number(_0x6cf873['item']['getAttribute'](_0x507ff5));});}['_generateTape'](_0x3db539,_0xbf2a25){if(_0x3db539['is']('element','$text'))_0xbf2a25['push']({'item':_0x3db539,'type':'text'});else{_0x3db539['is']('element')&&_0xbf2a25['push']({'item':_0x3db539,'type':'elementStart'});for(const _0x1d260a of _0x3db539['getChildren']())this['_generateTape'](_0x1d260a,_0xbf2a25);_0x3db539['is']('element')&&_0xbf2a25['push']({'item':_0x3db539,'type':'elementEnd'});}return _0xbf2a25;}['_getState'](){const _0x2fba0e=new Map(this['_touched']),_0x318b3d=new Map(_0x2fba0e),_0x369fba=new Map(),_0x70de50={'insertions':{},'deletions':{}},_0x1b87b5={'insertions':{},'deletions':{}},_0x17d997=new Map(),_0xd81b8a=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0xd81b8a['delete']('$graveyard');for(const _0x4c57df of _0xd81b8a){const _0x5f5e07=this['_diffRoots']['get'](_0x4c57df)||P(_0x4c57df,!0x1),_0x3f75b4=this['_baseRoots']['get'](_0x4c57df)||P(_0x4c57df,!0x1);_0x5f5e07['isAttached']()||_0x3f75b4['isAttached']()?(_0x70de50['insertions'][_0x4c57df]=N(_0x5f5e07),_0x70de50['deletions'][_0x4c57df]=N(_0x3f75b4),this['_copyMarkers'](_0x70de50['deletions'][_0x4c57df],_0x3f75b4),this['_copyMarkers'](_0x70de50['insertions'][_0x4c57df],_0x5f5e07),_0x1b87b5['insertions'][_0x4c57df]=this['_generateTape'](this['_idsRoots']['get'](_0x4c57df),[]),_0x1b87b5['deletions'][_0x4c57df]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x4c57df)||P(_0x4c57df,!0x1),[])):_0xd81b8a['delete'](_0x4c57df);}for(const _0x36a3e6 of _0xd81b8a){const _0x682113=_0x1b87b5['insertions'][_0x36a3e6];for(const _0xf40640 of _0x682113){const _0x44c1ca=this['_getVidAttributeName'](_0xf40640),_0x5d72ee=_0xf40640['item']['getAttribute'](_0x44c1ca);_0x318b3d['delete'](_0x5d72ee),_0x5d72ee>=this['_startingRevisionId']&&_0x369fba['set'](_0x5d72ee,_0x2fba0e['get'](_0x5d72ee));}}for(const _0x5b67ae of _0xd81b8a){const _0x5a892c=_0x1b87b5['insertions'][_0x5b67ae],_0x3d8982=this['_getBaseVids'](_0x1b87b5['deletions'][_0x5b67ae]);let _0x50569e=0x0;for(const _0x451143 of _0x5a892c){const _0x33bb06=this['_getVidAttributeName'](_0x451143),_0x2a17c7=_0x451143['item']['getAttribute'](_0x33bb06);if(!_0x369fba['has'](_0x2a17c7)&&!_0x17d997['has'](_0x2a17c7)){if(_0x318b3d['has'](_0x2a17c7))_0x50569e++;else{if(_0x2a17c7!=_0x3d8982[_0x50569e]){const _0x591722=_0x2fba0e['get'](_0x2a17c7)||_0x2fba0e['get'](_0x3d8982[_0x50569e]);for(;_0x2a17c7!=_0x3d8982[_0x50569e];)_0x318b3d['has'](_0x3d8982[_0x50569e])||(_0x17d997['set'](_0x3d8982[_0x50569e],_0x591722),_0x2fba0e['set'](_0x3d8982[_0x50569e],_0x591722)),_0x50569e++;}_0x50569e++;}}}}for(const _0x1f88cb of _0xd81b8a){const _0x5a2820=_0x1b87b5['insertions'][_0x1f88cb];for(const _0x2fb0e2 of _0x5a2820){const _0x58eed5=this['_getVidAttributeName'](_0x2fb0e2),_0x1c958e=_0x2fb0e2['item']['getAttribute'](_0x58eed5);if(_0x17d997['has'](_0x1c958e)){const _0x2af3f4=_0x17d997['get'](_0x1c958e);_0x318b3d['has'](_0x1c958e)||_0x318b3d['set'](_0x1c958e,{..._0x2af3f4}),_0x369fba['set'](_0x1c958e,{..._0x2af3f4});}}}for(const _0x58ed0e of _0x318b3d['keys']())_0x58ed0e>=this['_startingRevisionId']&&_0x318b3d['delete'](_0x58ed0e);const _0x39e319=new Map();for(const _0x7479e9 of _0xd81b8a){let _0x14290e=_0x1b87b5['insertions'][_0x7479e9];for(const _0x2291ce of _0x14290e)if(_0x2291ce['item']['is']('element','tableCell')){const _0x44986b=this['_getVidAttributeName'](_0x2291ce),_0x90b5b8=_0x2291ce['item']['getAttribute'](_0x44986b);if(_0x369fba['has'](_0x90b5b8)){const _0x21c7d3=_0x2291ce['item']['parent']['parent']['getAttribute']('vid_start'),_0x69a35f=_0x39e319['get'](_0x21c7d3)||new Set();_0x69a35f['add'](_0x369fba['get'](_0x90b5b8)['userId']),_0x39e319['set'](_0x21c7d3,_0x69a35f);}}_0x14290e=_0x1b87b5['deletions'][_0x7479e9];for(const _0x50363e of _0x14290e)if(_0x50363e['item']['is']('element','tableCell')){const _0x398d80=this['_getVidAttributeName'](_0x50363e),_0x1646d2=_0x50363e['item']['getAttribute'](_0x398d80);if(_0x318b3d['has'](_0x1646d2)){const _0x1aa46e=_0x50363e['item']['parent']['parent']['getAttribute']('vid_start'),_0x4f28cd=_0x39e319['get'](_0x1aa46e)||new Set();_0x4f28cd['add'](_0x318b3d['get'](_0x1646d2)['userId']),_0x39e319['set'](_0x1aa46e,_0x4f28cd);}}for(const _0x4330b5 of _0x39e319['keys']())(_0x369fba['has'](_0x4330b5)||_0x318b3d['has'](_0x4330b5))&&_0x39e319['delete'](_0x4330b5);}for(const _0x48aab6 of _0xd81b8a){const _0x4f5c7f=_0x1b87b5['insertions'][_0x48aab6];let _0x34d4cb=null,_0x18b1b2=null;for(const _0x3997eb of _0x4f5c7f){const _0x381702=this['_getVidAttributeName'](_0x3997eb),_0x2394f0=_0x3997eb['item']['getAttribute'](_0x381702),_0xdcf6d6=_0x39e319['get'](_0x2394f0);_0xdcf6d6&&'elementStart'==_0x3997eb['type']&&(_0x34d4cb=Array['from'](_0xdcf6d6)[0x0],_0x18b1b2=_0x3997eb['item']['getAttribute']('vid_end')),_0x34d4cb&&(_0x318b3d['set'](_0x2394f0,{'userId':_0x34d4cb}),_0x369fba['set'](_0x2394f0,{'userId':_0x34d4cb})),_0x2394f0==_0x18b1b2&&(_0x34d4cb=null,_0x18b1b2=null);}}const _0x4d2b56={},_0x370940=new Set();for(const _0x1bb114 of _0xd81b8a){const _0xbbe556=_0x70de50['deletions'][_0x1bb114],_0x12379f=_0x70de50['insertions'][_0x1bb114];for(const {userId:_0x3a7163}of this['_touchedMarkers']['values']())null!==_0x3a7163&&_0x370940['add'](_0x3a7163);for(const {userId:_0x4a6066}of this['_touchedRoots']['values']())null!==_0x4a6066&&_0x370940['add'](_0x4a6066);this['_markChanges'](_0x12379f,_0x1b87b5['insertions'][_0x1bb114],_0x369fba,'insertion',_0x370940),this['_markChanges'](_0xbbe556,_0x1b87b5['deletions'][_0x1bb114],_0x318b3d,'deletion',_0x370940),_0x4d2b56[_0x1bb114]={'insertions':this['_prepareViewToSave'](_0x12379f),'deletions':this['_prepareViewToSave'](_0xbbe556),'attachChange':this['_touchedRoots']['get'](_0x1bb114)||null,'attributesBefore':_0x2a6504(this['_baseRootsAttributes']['get'](_0x1bb114))||{},'attributesAfter':_0x2a6504(this['_diffRootsAttributes']['get'](_0x1bb114))};}return{'diffData':_0x4d2b56,'authorsIds':Array['from'](_0x370940)};}['_processRootBeforeSave'](_0x2a6b5c){for(const [,_0x9de188]of _0x2a6b5c['markers']){const _0x45d37f=_0x9de188['start']['getAncestors']()['filter'](_0x918604=>'tableCell'==_0x918604['name']);for(const _0x2e388a of _0x45d37f)0x1==_0x2e388a['childCount']&&_0x2e388a['getChild'](0x0)['is']('element','paragraph')&&_0x2e388a['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x580915){this['_processRootBeforeSave'](_0x580915);const _0x560ca4=this['editor']['data']['toView'](_0x580915,{}),_0x557759=Array['from'](_0x560ca4['getChildren']())['map'](_0x3380f8=>this['_getViewJson'](_0x3380f8));return JSON['stringify'](_0x557759);}['_getViewJson'](_0x140ab7){if(_0x140ab7['is']('$text'))return _0x140ab7['data'];{const _0x13378d=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x3bd4a8=_0x140ab7,_0x1acd57=this['editor']['data']['htmlProcessor']['domConverter'],_0x45263d={'type':_0x13378d['_getTypeCharForViewElement'](_0x3bd4a8),'name':_0x3bd4a8['name'],'attributes':Array['from'](_0x3bd4a8['getAttributes']()),'children':Array['from'](_0x3bd4a8['getChildren']())['map'](_0x25d6e2=>this['_getViewJson'](_0x25d6e2))};if(_0x140ab7['is']('uiElement')&&'$comment'!=_0x140ab7['name']){const _0xc3ab82=_0x140ab7['render'](_0x1acd57['domDocument'],_0x1acd57);_0x45263d['children']['push'](_0xc3ab82['outerHTML']);}else{if(_0x140ab7['is']('rawElement')){const _0x3d3559=_0x1acd57['domDocument']['createElement'](_0x3bd4a8['name']);_0x140ab7['render'](_0x3d3559,_0x1acd57),_0x45263d['children']['push'](_0x3d3559['innerHTML']);}}const _0x4701aa=Array['from'](_0x3bd4a8['getCustomProperties']());_0x4701aa['length']>0x0&&(_0x45263d['customProperties']=_0x4701aa);const _0x21335e=_0x3bd4a8['getFillerOffset']();return null!==_0x21335e&&(_0x45263d['fillerOffset']=_0x21335e),_0x45263d;}}['_markChanges'](_0x2c1051,_0x4b2011,_0x261a7e,_0x2e44ba,_0xabf164){let _0x58c38a=null,_0x5aba3a=null,_0x1206d8=0x0;const _0x4f55b2=this['editor']['model'];for(let _0x448d45=0x0;_0x448d45<_0x4b2011['length'];_0x448d45++){const _0x2bf644=this['_getVidAttributeName'](_0x4b2011[_0x448d45]),_0x268651=_0x4b2011[_0x448d45]['item']['getAttribute'](_0x2bf644),_0x48e87=_0x261a7e['get'](_0x268651),_0x4af970=_0x448d45==_0x4b2011['length']-0x1;(!_0x58c38a&&_0x48e87&&(_0x58c38a=_0x48e87,_0x5aba3a=_0x4b2011[_0x448d45]),_0x58c38a&&(!_0x48e87||_0x48e87['userId']!=_0x58c38a['userId']))&&(_0x1d81ed(_0x48e87,F(_0x5aba3a,_0x2c1051,_0x4f55b2),F(_0x4b2011[_0x448d45],_0x2c1051,_0x4f55b2)),_0x58c38a=_0x48e87||null,_0x5aba3a=_0x48e87?_0x4b2011[_0x448d45]:null),_0x58c38a&&_0x4af970&&_0x1d81ed(_0x48e87,F(_0x5aba3a,_0x2c1051,_0x4f55b2),B(_0x4b2011[_0x448d45],_0x2c1051,_0x4f55b2));}function _0x1d81ed(_0x2e925f,_0x3ef8ed,_0x242a32){const _0x5be85d=_0x58c38a['userId'],_0x2c6811='revision:'+_0x2e44ba+':'+_0x5be85d+':'+_0x1206d8++,_0x301cad=_0x4f55b2['createRange'](_0x3ef8ed,_0x242a32);_0x2c1051['markers']['set'](_0x2c6811,_0x301cad),null!==_0x5be85d&&_0xabf164['add'](_0x5be85d);}}['_getVidAttributeName'](_0x2e2bd2){switch(_0x2e2bd2['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x1873e5,_0x5e649e){_0x1873e5['baseVersion']=null;for(const _0x3e6ada in _0x1873e5){const _0x4add0e=_0x1873e5[_0x3e6ada];if(_0x4add0e instanceof ft){const _0x175054=_0x5e649e['get'](_0x4add0e['root']['rootName']);_0x1873e5[_0x3e6ada]=this['_fixPosition'](_0x4add0e,_0x175054);}if(_0x4add0e instanceof lt){const _0x48d423=_0x5e649e['get'](_0x4add0e['root']['rootName']);_0x1873e5[_0x3e6ada]=this['_fixRange'](_0x4add0e,_0x48d423);}'root'===_0x3e6ada&&(_0x1873e5['root']=_0x5e649e['get'](_0x1873e5['root']['rootName']));}}['_fixRange'](_0x2ccb4e,_0x569986){return this['editor']['model']['createRange'](this['_fixPosition'](_0x2ccb4e['start'],_0x569986),this['_fixPosition'](_0x2ccb4e['end'],_0x569986));}['_fixPosition'](_0x2dca63,_0x5b6c0a){return this['editor']['model']['createPositionFromPath'](_0x5b6c0a,_0x2dca63['path'],_0x2dca63['stickiness']);}['_handleInsertOperation'](_0x649f8d){const _0x223344=this['_idsRoots']['get'](_0x649f8d['position']['root']['rootName']),_0x3ec071=this['_fixPosition'](_0x649f8d['position'],_0x223344),_0x24e927=null===_0x649f8d['_authorId']?null:_0x649f8d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x389a2f=_0x3ec071['parent'],_0x37c809=this['_revisionId'],_0xd024d0=[];for(const _0xb85091 of _0x649f8d['nodes'])if(_0xb85091['is']('element'))_0xd024d0['push'](this['_makeIdsRoot'](_0xb85091));else{for(let _0x2f60b4=0x0;_0x2f60b4<_0xb85091['offsetSize'];_0x2f60b4++)_0xd024d0['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x44e4f3=this['_revisionId'];for(let _0x331be3=_0x37c809;_0x331be3<_0x44e4f3;_0x331be3++)this['_touched']['set'](_0x331be3,{'userId':_0x24e927});_0x389a2f['_insertChild'](_0x3ec071['offset'],_0xd024d0);}['_handleMoveOperation'](_0x50385f){(_0x50385f=this['_cloneOperation'](_0x50385f,this['_idsRoots']))['_execute']();const _0x5842a6=null===_0x50385f['_authorId']?null:_0x50385f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1c9f93=_0x50385f['getMovedRangeStart'](),_0x1d2a4c=_0x1c9f93['parent'],_0x59f02a=_0x1c9f93['offset'];!function _0x5d60f8(_0x4d2e31,_0x1a7b7f,_0x2fa6f5,_0x289427){for(let _0x4496c5=_0x2fa6f5;_0x4496c5<_0x289427;_0x4496c5++){const _0x2ec7b7=_0x1a7b7f['getChild'](_0x4496c5);_0x2ec7b7['is']('element','$text')?_0x4d2e31['set'](_0x2ec7b7['getAttribute']('vid'),{'userId':_0x5842a6}):(_0x4d2e31['set'](_0x2ec7b7['getAttribute']('vid_start'),{'userId':_0x5842a6}),_0x5d60f8(_0x4d2e31,_0x2ec7b7,0x0,_0x2ec7b7['childCount']),_0x4d2e31['set'](_0x2ec7b7['getAttribute']('vid_end'),{'userId':_0x5842a6}));}}(this['_touched'],_0x1d2a4c,_0x59f02a,_0x59f02a+_0x50385f['howMany']);}['_handleMergeOperation'](_0x13cb92){const _0xd74ad8=null===(_0x13cb92=this['_cloneOperation'](_0x13cb92,this['_idsRoots']))['_authorId']?null:_0x13cb92['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2c35ab=_0x13cb92['targetPosition']['parent'],_0x2828e9=_0x13cb92['sourcePosition']['parent'],_0x5c2681=_0x2c35ab['getAttribute']('vid_end'),_0xdf23c2=_0x2828e9['getAttribute']('vid_start');_0x2c35ab['_setAttribute']('vid_end',_0x2828e9['getAttribute']('vid_end')),_0x2828e9['_setAttribute']('vid_end',_0x5c2681),this['_touched']['set'](_0xdf23c2,{'userId':_0xd74ad8}),this['_touched']['set'](_0x5c2681,{'userId':_0xd74ad8}),_0x13cb92['_execute']();}['_handleSplitOperation'](_0x56ca9e){const _0x4403b8=null===(_0x56ca9e=this['_cloneOperation'](_0x56ca9e,this['_idsRoots']))['_authorId']?null:_0x56ca9e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x35f629=_0x56ca9e['graveyardPosition'],_0x121da6=_0x56ca9e['splitPosition']['parent'];_0x56ca9e['_execute']();const _0x2fe858=_0x121da6['getAttribute']('vid_end'),_0x4feb7f=_0x56ca9e['insertionPosition']['nodeAfter'];if(_0x35f629){const _0x5b3c09=_0x4feb7f['getAttribute']('vid_end'),_0x18d6cd=_0x121da6['getAttribute']('vid_end');_0x121da6['_setAttribute']('vid_end',_0x5b3c09),_0x4feb7f['_setAttribute']('vid_end',_0x18d6cd),this['_touched']['set'](_0x121da6['getAttribute']('vid_end'),{'userId':_0x4403b8}),this['_touched']['set'](_0x4feb7f['getAttribute']('vid_start'),{'userId':_0x4403b8});}else{const _0x420ce1=this['_revisionId']++,_0x1a97f6=this['_revisionId']++;_0x121da6['_setAttribute']('vid_end',_0x420ce1),_0x4feb7f['_setAttribute']('vid_start',_0x1a97f6),_0x4feb7f['_setAttribute']('vid_end',_0x2fe858),this['_touched']['set'](_0x420ce1,{'userId':_0x4403b8}),this['_touched']['set'](_0x1a97f6,{'userId':_0x4403b8});}}['_handleMarkerOperation'](_0x4570e9){if(!_0x4570e9['affectsData'])return;const _0x5289e5=(_0x4570e9=this['_cloneOperation'](_0x4570e9,this['_diffRoots']))['oldRange']?_0x4570e9['oldRange']['root']:null,_0x1164df=_0x4570e9['newRange']?_0x4570e9['newRange']['root']:null;_0x5289e5&&this['_markers']['delete'](_0x4570e9['name']),_0x1164df&&this['_markers']['set'](_0x4570e9['name'],_0x4570e9['newRange']['clone']());const _0x45cc09=null===_0x4570e9['_authorId']?null:_0x4570e9['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x30455b=_0x4570e9['name'];if(!this['_touchedMarkers']['has'](_0x30455b))return void this['_touchedMarkers']['set'](_0x30455b,{'range':_0x4570e9['oldRange'],'userId':_0x45cc09});const _0x192787=this['_touchedMarkers']['get'](_0x30455b),_0x36f3aa=_0x192787['range'],_0x20656f=_0x4570e9['newRange'];null==_0x36f3aa&&null==_0x20656f||_0x36f3aa&&_0x20656f&&_0x36f3aa['isEqual'](_0x20656f)?this['_touchedMarkers']['delete'](_0x4570e9['name']):_0x192787['userId']=_0x45cc09;}['_handleRootOperation'](_0x301ff0,_0x31708f){this['_diffRoots']['has'](_0x301ff0['rootName'])?this['_diffRoots']['get'](_0x301ff0['rootName'])['_isAttached']=_0x301ff0['isAdd']:(this['_diffRoots']['set'](_0x301ff0['rootName'],P(_0x301ff0['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x301ff0['rootName'],{}),_0x31708f&&this['_idsRoots']['set'](_0x301ff0['rootName'],P(_0x301ff0['rootName'],!0x0)));const _0x1775cb=null===_0x301ff0['_authorId']?null:_0x301ff0['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5a6f6d=this['_touchedRoots']['get'](_0x301ff0['rootName']);_0x5a6f6d&&_0x5a6f6d['userId']===_0x1775cb?this['_touchedRoots']['delete'](_0x301ff0['rootName']):this['_touchedRoots']['set'](_0x301ff0['rootName'],{'userId':_0x1775cb,'isAttached':_0x301ff0['isAdd']});}['_handleRootAttributeOperation'](_0x3fb355){const _0x4fb1df=this['_diffRootsAttributes']['get'](_0x3fb355['root']['rootName']);null===_0x3fb355['newValue']?delete _0x4fb1df[_0x3fb355['key']]:_0x4fb1df[_0x3fb355['key']]=_0x3fb355['newValue'];}}function N(_0x80610f){const _0x1fa4c2=P(_0x80610f['rootName'],_0x80610f['isAttached']());for(const _0x537faa of _0x80610f['getChildren']()){const _0x58f3d9=_0x537faa['_clone'](!0x0);_0x1fa4c2['_appendChild'](_0x58f3d9);}return _0x1fa4c2;}function P(_0x5122f2,_0x430380=!0x0){const _0x1127ee=new vt();return _0x1127ee['rootName']=_0x5122f2,_0x1127ee['_isAttached']=_0x430380,_0x1127ee['isAttached']=()=>_0x1127ee['_isAttached'],_0x1127ee;}function F(_0x585f4e,_0xdd34b0,_0x4f0d1b){const _0x5746ca='elementEnd'==_0x585f4e['type']?_0x4f0d1b['createPositionAt'](_0x585f4e['item'],'end'):_0x4f0d1b['createPositionBefore'](_0x585f4e['item']);return _0x4f0d1b['createPositionFromPath'](_0xdd34b0,_0x5746ca['path'],_0x5746ca['stickiness']);}function B(_0x299f07,_0x4fcdea,_0x2beb27){const _0x3303e7='elementStart'==_0x299f07['type']?_0x2beb27['createPositionAt'](_0x299f07['item'],0x0):_0x2beb27['createPositionAfter'](_0x299f07['item']);return _0x2beb27['createPositionFromPath'](_0x4fcdea,_0x3303e7['path'],_0x3303e7['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x58317a,_0x48b504){super(_0x58317a),this['focusTracker']=new _0x441f63(),this['keystrokes']=new _0x5b0952(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x48b504),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x4da4ec(this);}['render'](){super['render'](),_0x45435c({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x4a23e4=_0x523d4f=>_0x523d4f['stopPropagation']();this['keystrokes']['set']('arrowright',_0x4a23e4),this['keystrokes']['set']('arrowleft',_0x4a23e4),this['keystrokes']['set']('arrowup',_0x4a23e4),this['keystrokes']['set']('arrowdown',_0x4a23e4);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x11305b){this['revisionNameInputView']['fieldView']['element']['value']=_0x11305b['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x35d24e){const _0x3bb1bb=new _0x2df266(this['locale'],_0x2ecb1e),_0x3438de=_0x3bb1bb['fieldView'];_0x3438de['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x69c0c3=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x35d24e&&(_0x69c0c3+='\x20('+g(this['locale'],'optional')+')'),(_0x3bb1bb['label']=_0x69c0c3,_0x3438de['on']('input',()=>{this['revisionNameInputValue']=_0x3438de['element']['value']['trim']();}),_0x3bb1bb);}}class f extends _0x751a85{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x74d7fb=this['editor'],_0x35c449=_0x74d7fb['plugins']['get']('RevisionTracker');_0x74d7fb['ui']['componentFactory']['add']('revisionHistory',_0x52cd1c=>{const _0x46983a=_0x13dfac(_0x52cd1c),_0x147afe=_0x46983a['panelView']['children'],_0x4a6e94=new _0x1e5cd3(_0x52cd1c),_0x18e5dd=new _0x2b02a9(_0x52cd1c),_0x42c846=new te(_0x52cd1c),_0x2acda2=new _0x2b02a9(_0x52cd1c),_0x238743=new te(_0x52cd1c);return _0x46983a['bind']('isEnabled')['to'](_0x35c449,'isReady',_0x35c449,'isEnabled',_0x74d7fb,'isReadOnly',(_0x36cc36,_0x33baaf,_0x2f01e4)=>_0x36cc36&&_0x33baaf&&!_0x2f01e4),_0x46983a['buttonView']['set']({'icon':_0x2b0bd8,'label':g(_0x52cd1c,'Revision\x20history'),'tooltip':!0x0}),_0x42c846['set']({'label':g(_0x52cd1c,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x42c846['bind']('isEnabled')['to'](_0x35c449,'isReady',_0x35c449,'isEnabled',_0x74d7fb,'isReadOnly',(_0x1202d2,_0x135c49,_0x2eb04d)=>_0x1202d2&&_0x135c49&&!_0x2eb04d),_0x42c846['on']('execute',()=>this['_showDialog']()),_0x238743['set']({'label':g(_0x52cd1c,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x238743['bind']('isEnabled')['to'](_0x35c449,'isReady',_0x74d7fb,'isReadOnly',(_0x36611b,_0x1440e9)=>_0x36611b&&!_0x1440e9),_0x238743['on']('execute',()=>{_0x74d7fb['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x46983a['isOpen']=!0x1,_0x74d7fb['editing']['view']['focus']();}),_0x18e5dd['children']['add'](_0x42c846),_0x2acda2['children']['add'](_0x238743),_0x4a6e94['role']='menu',_0x4a6e94['items']['addMany']([_0x18e5dd,_0x2acda2]),_0x147afe['add'](_0x4a6e94),_0x46983a;}),_0x74d7fb['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x5e1afa=this['editor'],_0x518861=_0x5e1afa['locale'],_0x8ed1ff=new _0x5053c7(_0x518861),_0x3b67fd=new _0x583922(_0x518861);_0x8ed1ff['buttonView']['set']({'icon':_0x2b0bd8,'label':g(_0x518861,'Revision\x20history')});const _0x1ebe38=new _0x5584ca(_0x518861,_0x8ed1ff),_0x861e22=new _0x1d2bef(_0x518861);_0x861e22['set']({'label':g(_0x518861,'Save\x20current\x20revision')}),_0x861e22['delegate']('execute')['to'](_0x8ed1ff),_0x861e22['on']('execute',()=>{this['_showDialog']();}),_0x1ebe38['children']['add'](_0x861e22),_0x3b67fd['items']['add'](_0x1ebe38);const _0x1884d0=new _0x5584ca(_0x518861,_0x8ed1ff),_0x505a26=new _0x1d2bef(_0x518861);return _0x505a26['set']({'label':g(_0x518861,'Open\x20revision\x20history')}),_0x505a26['delegate']('execute')['to'](_0x8ed1ff),_0x505a26['on']('execute',()=>{_0x5e1afa['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x1884d0['children']['add'](_0x505a26),_0x3b67fd['items']['add'](_0x1884d0),_0x8ed1ff['panelView']['children']['add'](_0x3b67fd),_0x8ed1ff;}['_showDialog'](){const _0x488281=this['editor'],_0x41ef7e=_0x488281['locale'],_0x586f77=_0x488281['plugins']['get']('Dialog'),_0x13b378=_0x488281['plugins']['get']('RevisionTracker');function _0x5d28bb(_0x5093f6){_0x488281['config']['get']('revisionHistory.requireRevisionName')&&''===_0x5093f6['revisionName']?_0x5093f6['revisionNameInputView']['errorText']=g(_0x41ef7e,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x488281['plugins']['get'](u)['saveRevision']({'name':_0x5093f6['revisionName']}),_0x586f77['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x5d28bb(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x586f77['show']({'id':'revisionSave','title':g(_0x41ef7e,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x488281['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x586f77['hide']()},{'label':g(_0x488281['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x45af05){_0x45af05['bind']('isEnabled')['to'](_0x13b378,'isReady',_0x13b378,'isEnabled',_0x488281,'isReadOnly',(_0x427bcd,_0x3e6eaa,_0x15ca22)=>_0x427bcd&&_0x3e6eaa&&!_0x15ca22);},'onExecute':()=>_0x5d28bb(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x163106=this['editor'],_0x5a92ca=_0x163106['locale'];this['_saveRevisionFormView']=new hs(_0x5a92ca,_0x163106['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends ts{['changeId'];['_model'];constructor(_0x2c4802,_0xabb0bf){super(_0x2c4802),this['_model']=_0xabb0bf,this['changeId']=_0xabb0bf['id'];const _0x34e84a=this['bindTemplate'],_0x16f89d=g(_0x2c4802,_0xabb0bf['data']['isSuggestion']?'Suggested\x20by':'add'==_0xabb0bf['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0xabb0bf['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x34e84a['to']('type',_0x569960=>'ck-revision-change__'+_0x569960)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x16f89d}]},{'text':'\x20'+_0xabb0bf['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x124e05(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x4c890f){super(),this['id']=_0x4c890f['id']||_0x1a9a0c(),this['author']=_0x4c890f['author'],this['type']=_0x4c890f['type'],this['data']=_0x4c890f['data']||{},this['rootName']=_0x4c890f['rootName'],this['set']('createdAt',_0x4c890f['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(_0x126807,_0x555f2b){this['newRevisionId']=_0x126807,this['oldRevisionId']=_0x555f2b,this['changes']=new _0x326ed2();}['_setChanges'](_0x4fe5a3){for(const _0x2db0ca of _0x4fe5a3)this['changes']['add'](_0x2db0ca);}}class m extends _0x751a85{['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[_0x585553,_0x20b643,I,V];}constructor(_0x20af05){super(_0x20af05),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',(_0x49399f,_0x4a2856,_0x2048a9)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x17273e=>{for(const _0x32fd43 of this['editor']['editing']['view']['document']['roots'])_0x2048a9?_0x17273e['removeClass']('ck-editor__editable__overlay',_0x32fd43):_0x17273e['addClass']('ck-editor__editable__overlay',_0x32fd43);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x2f2910=>null!==_0x2f2910),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0xebff6d,_0x589946,_0x3622a4)=>_0xebff6d&&_0x3622a4?_0x589946['changes']['getIndex'](_0x3622a4):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x47f08c,_0x40306c)=>_0x47f08c?_0x40306c['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x20b643);}['init'](){const _0x50b7b3=this['editor'],_0x552822=new wt(_0x50b7b3,{'direction':'backward'}),_0x3477e3=new wt(_0x50b7b3,{'direction':'forward'});(_0x50b7b3['commands']['add']('showPreviousChange',_0x552822),_0x50b7b3['commands']['add']('showNextChange',_0x3477e3),_0x50b7b3['commands']['add']('restoreRevision',new mt(_0x50b7b3)),this['on']('change:numberOfChanges',()=>{_0x552822['refresh'](),_0x3477e3['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x50b7b3['enableReadOnlyMode']('revision-viewer'),_0x50b7b3['plugins']['has']('WidgetToolbarRepository'))&&_0x50b7b3['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x471236){return await this['_utils']['loadRevisionData'](_0x471236,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x471236);}async['getRevisionRootsAttributes'](_0x4d6fb9){return await this['_utils']['loadRevisionData'](_0x4d6fb9,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x4d6fb9);}async['compare'](_0x4ab69,_0x325ee1,_0x394925=!0x1){if(!this['isEnabled'])return;const _0x9b5ffb=this['diff'],_0x1e7865=this['repository'],_0x1d240f='string'==typeof _0x4ab69?_0x1e7865['getRevision'](_0x4ab69):_0x4ab69,_0x94baf4='string'==typeof _0x325ee1?_0x1e7865['getRevision'](_0x325ee1):_0x325ee1,_0x58fd54=_0x1d240f['id'],_0x2ef774=_0x94baf4?_0x94baf4['id']:null;if(!_0x394925&&this['diff']&&this['diff']['newRevisionId']===_0x58fd54&&this['diff']['oldRevisionId']===_0x2ef774)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x58fd54,_0x2ef774);const _0x4b0c66=this['_getRevisionsRange'](_0x1d240f,_0x94baf4,!0x0)['map'](_0x160d5e=>this['_utils']['loadRevisionData'](_0x160d5e,this['adapter']));return _0x4b0c66['push'](new Promise(_0x42cd8b=>{setTimeout(_0x42cd8b,0x14);})),Promise['all'](_0x4b0c66)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x1f7c70=this['_getDiff'](_0x58fd54,_0x2ef774);for(const _0x5dc6fb of _0x1f7c70['changes'])this['_changeIdToChange']['set'](_0x5dc6fb['id'],_0x5dc6fb);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x11534c=>{for(const _0x4cbca9 of this['editor']['model']['document']['getRootNames']())_0x11534c['detachRoot'](_0x4cbca9);for(const _0x912718 of Object['keys'](_0x1f7c70['model'])){const _0x6a30fe=_0x11534c['addRoot'](_0x912718);for(const _0x50fa8f of Object['keys'](_0x1f7c70['attributes'][_0x912718]))_0x11534c['setAttribute'](_0x50fa8f,_0x1f7c70['attributes'][_0x912718][_0x50fa8f],_0x6a30fe);_0x11534c['insert'](_0x1f7c70['model'][_0x912718],_0x6a30fe,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x1f7c70['changes'])),this['isReady']=!0x0;})['catch'](_0xc3038b=>{console['error'](_0xc3038b),this['_cleanUp'](),_0x9b5ffb&&(this['diff']=_0x9b5ffb),this['isReady']=!0x0;});}['addRevisionData'](_0x575150,_0x536888){const _0x167a67=this['repository']['createRevision'](_0x575150);return _0x167a67['on']('_update',(_0x3d39a5,_0x2c70f4,_0x454a89)=>_0x536888(_0x2c70f4,_0x454a89,_0x167a67)),this['repository']['addRevision'](_0x167a67),_0x167a67;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x34a48f=>{for(const _0x457e01 of this['editor']['model']['document']['getRootNames']())_0x34a48f['detachRoot'](_0x457e01);});}['_sortAndFilterDiffChanges'](_0x66571e){const _0x1b607c=[],_0x341d1b=new Map();for(const _0x16f7d5 of this['editor']['model']['document']['getRootNames']()){const _0x30da12=this['editor']['editing']['view']['getDomRoot'](_0x16f7d5);if(!_0x30da12)continue;const _0x191073=_0x30da12['getClientRects']()['item'](0x0);_0x191073&&(_0x1b607c['push'](_0x16f7d5),_0x341d1b['set'](_0x16f7d5,_0x191073));}return _0x1b607c['sort']((_0x2e2b54,_0x1b0efc)=>{const _0x1f9bea=_0x341d1b['get'](_0x2e2b54),_0x343b5f=_0x341d1b['get'](_0x1b0efc);return _0x1f9bea['y']-_0x343b5f['y']||_0x1f9bea['x']-_0x343b5f['x'];}),(_0x66571e=_0x66571e['filter'](_0x295015=>_0x1b607c['includes'](_0x295015['rootName'])))['sort']((_0x3104c7,_0x19cb01)=>_0x1b607c['indexOf'](_0x3104c7['rootName'])-_0x1b607c['indexOf'](_0x19cb01['rootName'])),_0x66571e;}['_makeTape'](_0x59e351){const _0x384ab8=Array['from'](_0x59e351['markers'])['filter'](([_0x4aade9,_0x375346])=>_0x4aade9['startsWith']('revision:')&&!_0x375346['isCollapsed']),_0xbbfb4=Array['from'](this['editor']['model']['createRangeIn'](_0x59e351)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x384ab8['length'])for(const _0x52280c of _0xbbfb4){const [_0x630884,_0x4fe9ee]=_0x384ab8[0x0],[,_0x27af7f,_0x25743b]=_0x630884['split'](':');if(_0x4fe9ee['end']['isEqual'](_0x52280c['nextPosition'])&&_0x384ab8['shift'](),(_0x52280c['previousPosition']['isEqual'](_0x4fe9ee['start'])||_0x52280c['previousPosition']['isAfter'](_0x4fe9ee['start']))&&('insertion'==_0x27af7f?_0x52280c['isAdded']={'userId':_0x25743b}:'deletion'==_0x27af7f&&(_0x52280c['isRemoved']={'userId':_0x25743b})),0x0==_0x384ab8['length'])break;}return _0xbbfb4;}['_refreshStartEndIndex'](_0x1482f1){const _0x2b603b=new Map();for(let _0x11e41d=0x0;_0x11e41d<_0x1482f1['length'];_0x11e41d++)'text'===_0x1482f1[_0x11e41d]['type']?(_0x1482f1[_0x11e41d]['item']['startIndex']=_0x11e41d,_0x1482f1[_0x11e41d]['item']['endIndex']=_0x11e41d):('elementStart'===_0x1482f1[_0x11e41d]['type']?_0x1482f1[_0x11e41d]['item']['startIndex']=_0x11e41d:'elementEnd'===_0x1482f1[_0x11e41d]['type']&&(_0x1482f1[_0x11e41d]['item']['endIndex']=_0x11e41d),_0x2b603b['set'](_0x1482f1[_0x11e41d]['id'],_0x11e41d));for(const _0x47f3e6 of _0x2b603b['values']())'elementStart'===_0x1482f1[_0x47f3e6]['type']?_0x1482f1[_0x47f3e6]['item']['endIndex']=_0x2b603b['get'](_0x1482f1[_0x47f3e6]['pairId']):'elementEnd'===_0x1482f1[_0x47f3e6]['type']&&(_0x1482f1[_0x47f3e6]['item']['startIndex']=_0x2b603b['get'](_0x1482f1[_0x47f3e6]['pairId']));}['_processTape'](_0x5cc1d4){for(let _0x58748f=0x0;_0x58748f<_0x5cc1d4['length'];_0x58748f++){if('elementStart'===_0x5cc1d4[_0x58748f]['type'])_0x5cc1d4[_0x58748f]['item']['startIndex']=_0x58748f;else{if('elementEnd'===_0x5cc1d4[_0x58748f]['type']){_0x5cc1d4[_0x58748f]['item']['endIndex']=_0x58748f;const _0x431bbd=_0x5cc1d4[_0x58748f]['item']['startIndex'];_0x5cc1d4[_0x431bbd]['pairId']=_0x5cc1d4[_0x58748f]['id'],_0x5cc1d4[_0x58748f]['pairId']=_0x5cc1d4[_0x431bbd]['id'];}else _0x5cc1d4[_0x58748f]['item']['startIndex']=_0x58748f,_0x5cc1d4[_0x58748f]['item']['endIndex']=_0x58748f,_0x5cc1d4[_0x58748f]['pairId']=null;}_0x5cc1d4[_0x58748f]['markersStart']||(_0x5cc1d4[_0x58748f]['markersStart']=[],_0x5cc1d4[_0x58748f]['markersEnd']=[]);}}['_markInsertions'](_0x16ee87,_0x140518){const _0x4b54bb=_0x16ee87['filter'](_0x4615bc=>!_0x4615bc['isAdded']);for(let _0x226096=0x0;_0x226096<_0x140518['length'];_0x226096++)_0x140518[_0x226096]['isAdded']&&(_0x4b54bb[_0x226096]['isAdded']=_0x140518[_0x226096]['isAdded']);}['_getDiff'](_0x37f033,_0x84587=null){const _0x598552=this['repository']['getRevision'](_0x37f033),_0x42a3cb=_0x84587?this['repository']['getRevision'](_0x84587):null,_0x44309a=this['_getRevisionsRange'](_0x598552,_0x42a3cb),_0x150488=_0x44309a[_0x44309a['length']-0x1],_0x1cdc61=new Map(),_0x20b0fe={'model':{},'attributes':{},'changes':[]},_0x4d1988=new Set(),_0x10bdec=new Map();for(let _0x26775c=_0x44309a['length']-0x1;_0x26775c>=0x0;_0x26775c--){const _0x182e2c=_0x44309a[_0x26775c];for(const _0x5c5983 of Object['keys'](_0x182e2c['diffData']))if(_0x182e2c['diffData'][_0x5c5983]['attachChange']){const _0x54c91d=_0x182e2c['diffData'][_0x5c5983]['attachChange'];_0x54c91d['isAttached']?(_0x4d1988['add'](_0x5c5983),_0x10bdec['has'](_0x5c5983)&&_0x10bdec['get'](_0x5c5983)['userId']==_0x54c91d['userId']?_0x10bdec['delete'](_0x5c5983):_0x10bdec['set'](_0x5c5983,_0x54c91d)):_0x10bdec['has'](_0x5c5983)?(_0x4d1988['delete'](_0x5c5983),_0x10bdec['delete'](_0x5c5983)):(_0x4d1988['add'](_0x5c5983),_0x10bdec['set'](_0x5c5983,_0x54c91d));}else _0x4d1988['add'](_0x5c5983);}for(const _0x3913ff of _0x4d1988){const _0x16c7e3=_0x10bdec['has'](_0x3913ff)&&!_0x10bdec['get'](_0x3913ff)['isAttached'];let _0x2fbc1f=_0x16c7e3?_0x44309a['length']-0x1:0x0;const _0x2414e9=_0x16c7e3?-0x1:0x1;for(;_0x44309a[_0x2fbc1f];){const _0x12dd77=_0x44309a[_0x2fbc1f];if(_0x12dd77['diffData'][_0x3913ff]){const _0x432bce=_0x16c7e3?_0x12dd77['diffData'][_0x3913ff]['attributesBefore']:_0x12dd77['diffData'][_0x3913ff]['attributesAfter'];_0x20b0fe['attributes'][_0x3913ff]=_0x432bce?_0x2a6504(_0x432bce):{};break;}_0x2fbc1f+=_0x2414e9;}}for(const _0x55c51e of _0x44309a){_0x55c51e['model']={};for(const _0x575548 of _0x55c51e['authors'])_0x1cdc61['set'](_0x575548['id'],_0x575548);for(const _0x43dce4 of _0x4d1988){const _0x5b9bde=_0x55c51e['diffData'][_0x43dce4]?_0x55c51e['diffData'][_0x43dce4]['insertions']:'[]',_0x22ed83=_0x55c51e['diffData'][_0x43dce4]?_0x55c51e['diffData'][_0x43dce4]['deletions']:'[]';_0x55c51e['model'][_0x43dce4]={'insertions':this['_utils']['_makeModelFromViewString'](_0x5b9bde),'deletions':this['_utils']['_makeModelFromViewString'](_0x22ed83)};}}for(const _0x5da834 of _0x4d1988){let _0x2bd417=null,_0x1e19c3=0x0;const _0x272a8c=new Map(Array['from'](_0x598552['model'][_0x5da834]['insertions']['markers'])['filter'](([_0x1e5f11])=>!_0x1e5f11['startsWith']('revision:')));let _0x5bdf16=0x0;for(const _0x309d86 of _0x44309a){const _0x54f951=this['_makeTape'](_0x309d86['model'][_0x5da834]['insertions']);_0x309d86==_0x598552?(_0x2bd417=_0x54f951,_0x1e19c3=_0x2bd417['length'],_0x2bd417['forEach'](_0x5679f4=>{_0x5679f4['id']=_0x5bdf16++;}),this['_processTape'](_0x2bd417)):this['_markInsertions'](_0x2bd417,_0x54f951);const _0x138015=_0x2bd417['filter'](_0x4570c4=>!_0x4570c4['isAdded'])['map'](_0x42c56c=>_0x42c56c['id']);let _0x47bacf=0x0;const _0x2628bf=this['_makeTape'](_0x309d86['model'][_0x5da834]['deletions']);_0x2628bf['forEach'](_0x3eb62b=>{_0x3eb62b['isRemoved']?_0x3eb62b['id']=_0x1e19c3++:_0x3eb62b['id']=_0x138015[_0x47bacf++];}),this['_processTape'](_0x2628bf),this['_setDistance'](_0x2bd417,'isAdded'),this['_setDistance'](_0x2628bf,'isRemoved'),_0x309d86==_0x598552&&this['_markMarkers'](_0x2bd417,_0x272a8c),_0x2bd417=this['_joinTapes'](_0x2bd417,_0x2628bf),this['_refreshStartEndIndex'](_0x2bd417),this['_setDistance'](_0x2bd417,'isRemoved');}_0x2bd417=_0x2bd417['filter'](_0x4f26c1=>!(_0x4f26c1['isAdded']&&_0x4f26c1['isRemoved']));const _0x5d5b8a=new Map(_0x150488['model'][_0x5da834]['deletions']['markers']),_0x4d1c80=new Set(_0x272a8c['keys']());for(const _0x4a42b2 of _0x5d5b8a['keys']())_0x4d1c80['delete'](_0x4a42b2);this['_markSuggestions'](_0x2bd417,_0x4d1c80),this['_fixObsoleteTags'](_0x2bd417),_0x2bd417=this['_removeMissingPairs'](_0x2bd417),_0x2bd417=this['_markMismatchedRemovedTags'](_0x2bd417),_0x2bd417=this['_removeUnsupportedChanges'](_0x2bd417);const {root:_0x51abda,changes:_0x36efa0}=this['_makeModelFromTape'](_0x2bd417,_0x1cdc61,_0x5da834);_0x20b0fe['model'][_0x5da834]=_0x51abda;const _0x6e4c9a=_0x10bdec['get'](_0x5da834);if(_0x6e4c9a){const _0xf75cec=_0x1cdc61['get'](_0x6e4c9a['userId']),_0x317138=new r({'author':_0xf75cec,'type':_0x6e4c9a['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x5da834});_0x36efa0['unshift'](_0x317138),_0x20b0fe['attributes'][_0x5da834]['revisionHistoryAttachChange']=_0x317138['id'];}_0x20b0fe['changes']=_0x20b0fe['changes']['concat'](_0x36efa0);}return _0x20b0fe;}['_markMarkers'](_0x1f3d40,_0x12aa64){for(let _0x4683d6=0x0;_0x4683d6<_0x1f3d40['length'];_0x4683d6++)for(const [_0x230b0b,_0x115576]of _0x12aa64)!_0x115576['isCollapsed']&&_0x115576['start']['isEqual'](_0x1f3d40[_0x4683d6]['previousPosition'])&&_0x1f3d40[_0x4683d6]['markersStart']['push'](_0x230b0b),_0x115576['end']['isEqual'](_0x1f3d40[_0x4683d6]['nextPosition'])&&_0x1f3d40[_0x4683d6]['markersEnd']['push'](_0x230b0b);}['_joinTapes'](_0x3f0052,_0x11bd83){let _0x2af47a=[],_0x4354aa=0x0,_0x42faa9=0x0;for(;_0x4354aa<_0x3f0052['length']||_0x42faa9<_0x11bd83['length'];){const _0x26d2b1=_0x3f0052[_0x4354aa]||{},_0x5eb25b=_0x11bd83[_0x42faa9]||{};if(_0x26d2b1['id']==_0x5eb25b['id'])_0x4354aa++,_0x42faa9++,_0x2af47a['push'](_0x26d2b1);else{if(_0x5eb25b['isRemoved']&&_0x26d2b1['isAdded']){const {commonTape:_0x1a0312,iEnd:_0x35d626,jEnd:_0x46e2a8}=this['_threeWayMerge'](_0x3f0052,_0x4354aa,_0x11bd83,_0x42faa9);_0x2af47a=_0x2af47a['concat'](_0x1a0312),_0x4354aa=_0x35d626,_0x42faa9=_0x46e2a8;}else _0x5eb25b['isRemoved']?(_0x42faa9++,_0x2af47a['push'](_0x5eb25b)):(_0x4354aa++,_0x2af47a['push'](_0x26d2b1));}}return _0x2af47a;}['_markSuggestions'](_0x3e8887,_0x1b2d20){const _0x3b4c56=[];for(let _0x1717af=0x0;_0x1717af<_0x3e8887['length'];_0x1717af++){for(let _0x51cc38=0x0;_0x51cc38<_0x3e8887[_0x1717af]['markersStart']['length'];_0x51cc38++){const _0x5f377=_0x3e8887[_0x1717af]['markersStart'][_0x51cc38];if(!_0x1b2d20['has'](_0x5f377))continue;const {group:_0x54d831,type:_0x74ddcd,authorId:_0x238bc2}=_0xbf205(_0x5f377);'revision-suggestion'!=_0x54d831||'insertion'!=_0x74ddcd&&'deletion'!=_0x74ddcd||(_0x3b4c56['unshift']({'type':_0x74ddcd,'name':_0x5f377,'userId':_0x238bc2}),_0x3e8887[_0x1717af]['markersStart']['splice'](_0x51cc38,0x1),_0x51cc38--);}_0x10a26d(_0x3e8887[_0x1717af]);for(let _0x17f972=0x0;_0x17f972<_0x3e8887[_0x1717af]['markersEnd']['length'];_0x17f972++){const _0x47ee93=_0x3e8887[_0x1717af]['markersEnd'][_0x17f972];if(!_0x1b2d20['has'](_0x47ee93))continue;const {group:_0x4948c2,type:_0x59dfc5}=_0xbf205(_0x47ee93);if('revision-suggestion'!=_0x4948c2||'insertion'!=_0x59dfc5&&'deletion'!=_0x59dfc5)continue;_0x3e8887[_0x1717af]['markersEnd']['splice'](_0x17f972,0x1),_0x17f972--;const _0x446fba=_0x3b4c56['findIndex'](_0x2c93f9=>_0x2c93f9['name']==_0x47ee93);_0x446fba>-0x1&&_0x3b4c56['splice'](_0x446fba,0x1);}}function _0xbf205(_0x24e005){const _0x281743=_0x24e005['split'](':');return{'group':_0x281743[0x0],'type':_0x281743[0x1],'subType':_0x281743['length']>=0x5?_0x281743[0x2]:null,'id':_0x281743['length']<0x5?_0x281743[0x2]:_0x281743[0x3],'authorId':_0x281743['length']<0x5?_0x281743[0x3]:_0x281743[0x4],'markerCount':0x6==_0x281743['length']?_0x281743[0x5]:null};}function _0x10a26d(_0x2de97e){for(let _0x4856d0=0x0;_0x4856d0<_0x3b4c56['length'];_0x4856d0++){if(_0x2de97e['isAdded']&&'insertion'==_0x3b4c56[_0x4856d0]['type']&&_0x2de97e['isAdded']['userId']==_0x3b4c56[_0x4856d0]['userId'])return _0x2de97e['isAddSuggestion']=_0x3b4c56[_0x4856d0],void delete _0x2de97e['isAdded'];if(!_0x2de97e['isAdded']&&!_0x2de97e['isRemoved']&&'deletion'==_0x3b4c56[_0x4856d0]['type'])return void(_0x2de97e['isRemoveSuggestion']=_0x3b4c56[_0x4856d0]);}}}['_setDistance'](_0x3c7b45,_0x4fdcea){let _0x3dc306=0x0,_0x579567=!0x1;const _0x184674=new Map();for(const _0x2a019c of _0x3c7b45)_0x2a019c[_0x4fdcea]?_0x579567&&(_0x3dc306++,_0x579567=!0x1):(_0x3dc306++,_0x579567=!0x0),_0x184674['set'](_0x2a019c['id'],_0x3dc306);for(let _0x251d13=0x0;_0x251d13<_0x3c7b45['length'];_0x251d13++){if('isRemoved'==_0x4fdcea&&_0x3c7b45[_0x251d13]['isAdded']||'isAdded'==_0x4fdcea&&_0x3c7b45[_0x251d13]['isRemoved'])continue;if('text'==_0x3c7b45[_0x251d13]['type']){_0x3c7b45[_0x251d13]['distance']=0x0;continue;}const _0x5904d0=_0x184674['get'](_0x3c7b45[_0x251d13]['pairId']),_0x393b31=_0x184674['get'](_0x3c7b45[_0x251d13]['id']);_0x3c7b45[_0x251d13]['distance']=_0x5904d0-_0x393b31;}}['_getRevisionsRange'](_0xf4d660,_0x428458,_0x12cadf=!0x1){const _0x3d2fcf=[];let _0x554dfe=this['repository']['getIndex'](_0xf4d660),_0x4f1634=this['repository']['getIndex'](_0x428458);for(-0x1==_0x4f1634&&(_0x4f1634=this['repository']['_revisions']['length'],_0x12cadf=!0x1);_0x554dfe<_0x4f1634;)_0x3d2fcf['push'](this['repository']['getRevision'](_0x554dfe)),_0x554dfe++;return _0x12cadf&&_0x3d2fcf['push'](this['repository']['getRevision'](_0x554dfe)),_0x3d2fcf;}['_threeWayMerge'](_0x19c22a,_0x1407d1,_0x1f5c91,_0x2e7de6){const _0x34f498=this['editor']['model']['schema'];let _0x558dff=_0x1407d1;for(;_0x19c22a[_0x558dff]&&_0x19c22a[_0x558dff]['isAdded'];)_0x558dff++;let _0x3b97d8=_0x2e7de6;for(;_0x1f5c91[_0x3b97d8]&&_0x1f5c91[_0x3b97d8]['isRemoved'];)_0x3b97d8++;_0xa0c4ae(_0x19c22a,_0x1407d1,_0x558dff),_0xa0c4ae(_0x1f5c91,_0x2e7de6,_0x3b97d8);const _0x354d5e=_0x1f5c91['slice'](_0x2e7de6,_0x3b97d8)['concat'](_0x19c22a['slice'](_0x1407d1,_0x558dff));return _0x354d5e['sort']((_0x3a9c64,_0xb02b8c)=>_0x3a9c64['side']!=_0xb02b8c['side']?_0x3a9c64['side']-_0xb02b8c['side']:_0x3a9c64['level']!=_0xb02b8c['level']?_0x3a9c64['level']-_0xb02b8c['level']:_0x3a9c64['distance']!=_0xb02b8c['distance']?_0xb02b8c['distance']-_0x3a9c64['distance']:!!_0x3a9c64['isAdded']!=!!_0xb02b8c['isAdded']?-0x1==_0x3a9c64['side']||0x0==_0x3a9c64['side']?_0x3a9c64['isAdded']?-0x1:0x1:_0x3a9c64['isAdded']?0x1:-0x1:_0x3a9c64['index']-_0xb02b8c['index']),{'commonTape':_0x354d5e,'iEnd':_0x558dff,'jEnd':_0x3b97d8};function _0xa0c4ae(_0x3eca19,_0x205a0d,_0x2f0699){let _0x3bd57e=-0x1,_0x20dc04=Number['POSITIVE_INFINITY'],_0x5f745c=!0x0;for(let _0x13533f=_0x205a0d;_0x13533f<_0x2f0699;_0x13533f++)if(_0x34f498['isInline'](_0x3eca19[_0x13533f]['item'])||(_0x5f745c=!0x1),_0x3eca19[_0x13533f]['item']['startIndex']<_0x205a0d&&(_0x3bd57e=_0x13533f),_0x3eca19[_0x13533f]['item']['endIndex']>=_0x2f0699){_0x20dc04=_0x13533f;break;}_0x5f745c&&(_0x3bd57e=_0x2f0699-0x1);for(let _0x3c6037=_0x205a0d;_0x3c6037<_0x2f0699;_0x3c6037++)_0x3eca19[_0x3c6037]['side']=_0x3c6037<=_0x3bd57e?-0x1:_0x3c6037<_0x20dc04?0x0:0x1,_0x3eca19[_0x3c6037]['index']=_0x3c6037;let _0x16f4e8=0x0;for(let _0x2c2fe3=_0x205a0d;_0x2c2fe3<=_0x3bd57e;_0x2c2fe3++)0x0==_0x3eca19[_0x2c2fe3]['distance']?_0x3eca19[_0x2c2fe3]['level']=_0x16f4e8:(_0x16f4e8++,_0x3eca19[_0x2c2fe3]['level']=_0x16f4e8,_0x16f4e8++);for(let _0x2e5c4f=_0x205a0d;_0x2e5c4f<_0x2f0699;_0x2e5c4f++)0x0==_0x3eca19[_0x2e5c4f]['side']&&(_0x3eca19[_0x2e5c4f]['level']=_0x16f4e8);_0x16f4e8=0x0;for(let _0x55aad0=_0x2f0699-0x1;_0x55aad0>=_0x20dc04;_0x55aad0--)0x0==_0x3eca19[_0x55aad0]['distance']?_0x3eca19[_0x55aad0]['level']=_0x16f4e8:(_0x16f4e8--,_0x3eca19[_0x55aad0]['level']=_0x16f4e8,_0x16f4e8--);}}['_fixObsoleteTags'](_0x24924c){const _0x2f9366=new Map(),_0x56e552=this['editor']['model']['schema'];for(let _0x36bf3a=0x1;_0x36bf3a<_0x24924c['length'];_0x36bf3a++){let _0x2552ba,_0x378c3d,_0x5e2fed;const _0x2c1bec=_0x24924c[_0x36bf3a],_0x212b88=_0x24924c[_0x36bf3a-0x1];if('text'==_0x2c1bec['type'])continue;if(_0x2c1bec['type']!=_0x212b88['type'])continue;if(!_0x56e552['isBlock'](_0x212b88['item'])||_0x56e552['isLimit'](_0x212b88['item']))continue;if(!_0x56e552['isBlock'](_0x2c1bec['item'])||_0x56e552['isLimit'](_0x2c1bec['item']))continue;if((_0x24924c[_0x36bf3a]['isAdded']||_0x24924c[_0x36bf3a]['isAddSuggestion'])&&_0x24924c[_0x36bf3a-0x1]['isRemoved'])_0x2552ba=_0x24924c[_0x36bf3a],_0x378c3d=_0x24924c[_0x36bf3a-0x1],_0x5e2fed=_0x36bf3a-0x1;else{if(!_0x24924c[_0x36bf3a]['isRemoved']||!_0x24924c[_0x36bf3a-0x1]['isAdded']&&!_0x24924c[_0x36bf3a-0x1]['isAddSuggestion'])continue;_0x2552ba=_0x24924c[_0x36bf3a-0x1],_0x378c3d=_0x24924c[_0x36bf3a],_0x5e2fed=_0x36bf3a;}const _0x4b9c91=_0x2552ba['level']==_0x378c3d['level'],_0x477882=Math['abs'](_0x2552ba['level'])<Math['abs'](_0x378c3d['level'])&&0x0==_0x378c3d['distance'];(_0x4b9c91||_0x477882)&&(_0x2f9366['set'](_0x378c3d['id'],_0x2552ba['id']),_0x24924c['splice'](_0x5e2fed,0x1),_0x36bf3a--,_0x2552ba['isAdded']=!0x1);}for(let _0x5be9ab=0x0;_0x5be9ab<_0x24924c['length'];_0x5be9ab++)_0x2f9366['has'](_0x24924c[_0x5be9ab]['pairId'])&&(_0x24924c[_0x5be9ab]['pairId']=_0x2f9366['get'](_0x24924c[_0x5be9ab]['pairId']));}['_removeMissingPairs'](_0x23494c){const _0x39569f=new Set(_0x23494c['map'](_0x48e95a=>_0x48e95a['id']));for(let _0x414c48=0x0;_0x414c48<_0x23494c['length'];_0x414c48++)_0x39569f['has'](_0x23494c[_0x414c48]['pairId'])||0x0==_0x23494c[_0x414c48]['distance']||(_0x23494c[_0x414c48]['isIncorrect']=!0x0);return _0x23494c['filter'](_0x5f2af7=>!_0x5f2af7['isIncorrect']);}['_markMismatchedRemovedTags'](_0x18ee19){const _0xe4bb7f=new Set();for(let _0x3eb9f2=0x0;_0x3eb9f2<_0x18ee19['length'];_0x3eb9f2++){if(_0xe4bb7f['has'](_0x18ee19[_0x3eb9f2]['id'])&&_0x18ee19[_0x3eb9f2]['isRemoved']&&(_0x18ee19[_0x3eb9f2]['isIncorrect']=!0x0),_0x18ee19[_0x3eb9f2]['isIncorrect'])continue;if(0x0==_0x18ee19[_0x3eb9f2]['distance'])continue;if('elementStart'!=_0x18ee19[_0x3eb9f2]['type'])continue;if(null==_0x18ee19[_0x3eb9f2]['pairId'])continue;let _0x4989e4=_0x3eb9f2+0x1,_0x5930f4=0x0;for(;_0x18ee19[_0x4989e4]['id']!=_0x18ee19[_0x3eb9f2]['pairId'];)'elementStart'==_0x18ee19[_0x4989e4]['type']?_0x5930f4++:'elementEnd'==_0x18ee19[_0x4989e4]['type']&&_0x5930f4--,_0x4989e4++;if(0x0!=_0x5930f4){if(_0x18ee19[_0x3eb9f2]['isRemoved'])_0x18ee19[_0x3eb9f2]['isIncorrect']=!0x0;else{for(;_0x4989e4!=_0x3eb9f2;)_0x18ee19[_0x4989e4]['isRemoved']&&0x0!=_0x18ee19[_0x4989e4]['distance']&&(_0x18ee19[_0x4989e4]['isIncorrect']=!0x0,_0xe4bb7f['add'](_0x18ee19[_0x4989e4]['pairId'])),_0x4989e4--;}}}return _0x18ee19['filter'](_0x151475=>!_0x151475['isIncorrect']);}['_removeUnsupportedChanges'](_0x509b77){const _0x3ead96=this['editor']['model']['schema'];for(let _0x5c84b8=0x0;_0x5c84b8<_0x509b77['length'];_0x5c84b8++){if(!(_0x509b77[_0x5c84b8]['isAdded']||_0x509b77[_0x5c84b8]['isAddSuggestion']||_0x509b77[_0x5c84b8]['isRemoved']||_0x509b77[_0x5c84b8]['isRemoveSuggestion']))continue;if(0x0==_0x509b77[_0x5c84b8]['distance'])continue;const _0x2bb00e=_0x509b77[_0x5c84b8]['item'];_0x3ead96['isBlock'](_0x2bb00e)||_0x3ead96['isLimit'](_0x2bb00e)||(_0x509b77[_0x5c84b8]['isAdded']&&delete _0x509b77[_0x5c84b8]['isAdded'],_0x509b77[_0x5c84b8]['isAddSuggestion']&&delete _0x509b77[_0x5c84b8]['isAddSuggestion'],_0x509b77[_0x5c84b8]['isRemoveSuggestion']&&delete _0x509b77[_0x5c84b8]['isRemoveSuggestion'],_0x509b77[_0x5c84b8]['isRemoved']&&(_0x509b77[_0x5c84b8]['isIncorrect']=!0x0));}return _0x509b77['filter'](_0x40ae07=>!_0x40ae07['isIncorrect']);}['_makeModelFromTape'](_0x40d978,_0x392530,_0x537e41){const _0x301c6=new vt(),_0x61a32=[],_0x2f2f53=new Map(),_0x36bd6b=this['editor']['model'],_0x58d81f=_0x36bd6b['schema'],_0x4e8a4a=[_0x301c6],_0x291ae4={},_0x4c72d5={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x55f376=null;const _0x19cc7d=[0x0];for(let _0x4a4a01=0x0;_0x4a4a01<_0x40d978['length'];_0x4a4a01++)if('elementStart'===_0x40d978[_0x4a4a01]['type']){_0x40d978[_0x4a4a01]['previousPosition']=_0x36bd6b['createPositionFromPath'](_0x301c6,_0x19cc7d);const _0x4ef740=new ut(_0x40d978[_0x4a4a01]['item']['name'],_0x40d978[_0x4a4a01]['item']['getAttributes']());_0x4e8a4a[0x0]['_appendChild'](_0x4ef740),_0x19cc7d['push'](0x0),_0x4e8a4a['unshift'](_0x4ef740),_0x40d978[_0x4a4a01]['nextPosition']=_0x36bd6b['createPositionFromPath'](_0x301c6,_0x19cc7d);}else'elementEnd'===_0x40d978[_0x4a4a01]['type']?(_0x4e8a4a['shift'](),_0x40d978[_0x4a4a01]['previousPosition']=_0x36bd6b['createPositionFromPath'](_0x301c6,_0x19cc7d),_0x19cc7d['pop'](),_0x19cc7d[_0x19cc7d['length']-0x1]++,_0x40d978[_0x4a4a01]['nextPosition']=_0x36bd6b['createPositionFromPath'](_0x301c6,_0x19cc7d)):(_0x40d978[_0x4a4a01]['previousPosition']=_0x36bd6b['createPositionFromPath'](_0x301c6,_0x19cc7d),_0x55f376?_0x55f376['_data']+=_0x40d978[_0x4a4a01]['item']['data']:_0x55f376=new gt(_0x40d978[_0x4a4a01]['item']['data'],_0x40d978[_0x4a4a01]['item']['getAttributes']()),_0x40d978[_0x4a4a01+0x1]&&'text'===_0x40d978[_0x4a4a01+0x1]['type']&&_0x4638da(_0x55f376,_0x40d978[_0x4a4a01+0x1]['item'])||(_0x4e8a4a[0x0]['_appendChild'](_0x55f376),_0x55f376=null),_0x19cc7d[_0x19cc7d['length']-0x1]+=_0x40d978[_0x4a4a01]['item']['offsetSize'],_0x40d978[_0x4a4a01]['nextPosition']=_0x36bd6b['createPositionFromPath'](_0x301c6,_0x19cc7d));for(let _0x212b41=0x0;_0x212b41<_0x40d978['length'];_0x212b41++){const _0xd71535=_0x40d978[_0x212b41]['previousPosition'],_0x154f93=_0x40d978[_0x212b41]['nextPosition'];for(const _0x149986 of _0x40d978[_0x212b41]['markersStart'])_0x2f2f53['set'](_0x149986,{'start':_0xd71535,'end':null});_0x522f1c('isRemoveSuggestion',_0x212b41,_0xd71535,_0x154f93),_0x522f1c('isAddSuggestion',_0x212b41,_0xd71535,_0x154f93),_0x522f1c('isRemoved',_0x212b41,_0xd71535,_0x154f93),_0x522f1c('isAdded',_0x212b41,_0xd71535,_0x154f93);for(const _0x4d8b87 of _0x40d978[_0x212b41]['markersEnd']){const _0x4d9f42=_0x2f2f53['get'](_0x4d8b87);_0x4d9f42?_0x4d9f42['end']=_0x154f93:_0x2f2f53['set'](_0x4d8b87,{'start':_0x154f93,'end':_0x154f93});}}for(const [_0x33db67,_0x12887a]of _0x2f2f53){const _0x2b283a=this['editor']['model']['createRange'](_0x12887a['start'],_0x12887a['end']);_0x301c6['markers']['set'](_0x33db67,_0x2b283a);}return _0x61a32['sort']((_0xd9b37b,_0x3bba07)=>{const _0x26a80c=_0x301c6['markers']['get']('revision:'+_0xd9b37b['id']),_0x3eceba=_0x301c6['markers']['get']('revision:'+_0x3bba07['id']);return _0x26a80c['start']['isBefore'](_0x3eceba['start'])?-0x1:_0x26a80c['start']['isAfter'](_0x3eceba['start'])?0x1:_0x26a80c['end']['isBefore'](_0x3eceba['end'])?-0x1:_0x26a80c['end']['isAfter'](_0x3eceba['end'])?0x1:'add'===_0xd9b37b['type']?-0x1:0x1;}),{'root':_0x301c6,'changes':_0x61a32};function _0x522f1c(_0x177699,_0x1fd272,_0x2583a1,_0xac482f){const _0xd28c4=!!_0x40d978[_0x1fd272][_0x177699],_0x5d7407=_0xd28c4?_0x40d978[_0x1fd272][_0x177699]['userId']:null,_0x50020d=_0x1fd272===_0x40d978['length']-0x1,_0x536b9d=_0x4c72d5[_0x177699][0x0],_0x1db078=_0x58d81f['isObject'](_0x40d978[_0x1fd272]['item']);!_0x291ae4[_0x177699]&&_0xd28c4?_0x291ae4[_0x177699]={'start':_0x2583a1,'tapeItem':_0x40d978[_0x1fd272],'userId':_0x5d7407,'type':_0x177699}:_0x291ae4[_0x177699]&&!_0xd28c4?(_0x291ae4[_0x177699]['end']=_0x2583a1,_0x210407(_0x291ae4[_0x177699]),_0x291ae4[_0x177699]=null):_0x291ae4[_0x177699]&&_0xd28c4&&_0x291ae4[_0x177699]['userId']!==_0x5d7407&&(_0x291ae4[_0x177699]['end']=_0x2583a1,_0x536b9d&&_0x536b9d['userId']===_0x291ae4[_0x177699]['userId']||_0x210407(_0x291ae4[_0x177699]),_0x291ae4[_0x177699]={'start':_0x2583a1,'tapeItem':_0x40d978[_0x1fd272],'userId':_0x5d7407,'type':_0x177699}),_0x291ae4[_0x177699]&&_0x1db078&&('elementStart'!==_0x40d978[_0x1fd272]['type']||_0x536b9d&&_0x536b9d['userId']===_0x5d7407||_0x4c72d5[_0x177699]['unshift']({'userId':_0x5d7407,'object':_0x40d978[_0x1fd272]['item'],'change':_0x291ae4[_0x177699]}),'elementEnd'===_0x40d978[_0x1fd272]['type']&&_0x536b9d&&_0x536b9d['object']===_0x40d978[_0x1fd272]['item']&&(_0x4c72d5[_0x177699]['shift'](),_0x291ae4[_0x177699]=_0x536b9d['change'])),_0x291ae4[_0x177699]&&_0x50020d&&(_0x291ae4[_0x177699]['end']=_0xac482f,_0x210407(_0x291ae4[_0x177699]),_0x291ae4[_0x177699]=null);}function _0x210407({start:_0x3b3cef,end:_0x3ed947,tapeItem:_0x340c51,userId:_0x19e762,type:_0x231170}){const _0x1df903=_0x340c51['item'],_0x17a16a=_0x36bd6b['schema']['isBlock'](_0x1df903)&&!_0x36bd6b['schema']['isLimit'](_0x1df903),_0x1e6ce2=_0x3b3cef['nodeAfter']==_0x3ed947['parent']&&_0x3ed947['isAtStart'];if(_0x17a16a&&_0x1e6ce2)return;const _0x5a0099=_0x36bd6b['createRange'](_0x3b3cef,_0x3ed947),_0x3269d7=_0x392530['get'](_0x19e762),_0x1504fd=new r({'author':_0x3269d7,'type':'isAdded'==_0x231170||'isAddSuggestion'==_0x231170?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x231170||'isRemoveSuggestion'==_0x231170},'createdAt':new Date(),'rootName':_0x537e41});_0x61a32['push'](_0x1504fd),_0x301c6['markers']['set']('revision:'+_0x1504fd['id'],_0x5a0099);}function _0x4638da(_0x19ae56,_0x247949){const _0x11469a=_0x19ae56['getAttributes'](),_0x58942f=_0x247949['getAttributes']();for(const _0x3a7d9f of _0x11469a){if(_0x3a7d9f[0x1]!==_0x247949['getAttribute'](_0x3a7d9f[0x0]))return!0x1;_0x58942f['next']();}return _0x58942f['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x32dbc7=>{const _0x51091f=_0x32dbc7['markerName']['split'](':')[0x1],_0x87d8e6=this['_getChangeFromId'](_0x51091f);if(!_0x87d8e6)return null;const _0x2d916b='add'==_0x87d8e6['type']?'insertion':'deletion',_0x551bec=['ck-suggestion-marker','ck-suggestion-marker-'+_0x2d916b];return _0x87d8e6['data']['isSuggestion']&&_0x551bec['push']('ck-suggestion-marker-'+_0x2d916b+'-new'),this['activeChange']==_0x87d8e6&&_0x551bec['push']('ck-suggestion-marker--active'),{'classes':_0x551bec,'attributes':{'data-change-id':_0x51091f}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x29643d=>{_0x29643d['on']('element:pre',(_0x3d575a,_0x18a7fc,_0x6302db)=>{const _0xd3646c=_0x18a7fc['viewItem']['getChild'](0x0);if(!_0xd3646c||!_0xd3646c['is']('element','code'))return;if(!_0x6302db['consumable']['consume'](_0xd3646c,{'attributes':['vid_start','vid_end']}))return;const _0x503b24=_0x18a7fc['modelRange']['start']['nodeAfter'];_0x6302db['writer']['setAttribute']('vid_start',_0xd3646c['getAttribute']('vid_start'),_0x503b24),_0x6302db['writer']['setAttribute']('vid_end',_0xd3646c['getAttribute']('vid_end'),_0x503b24);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x4a4cf7=>{_0x4a4cf7['on']('element',(_0x5db96f,_0xa55579,_0x193515)=>{if(!_0x193515['consumable']['consume'](_0xa55579['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0xa55579['modelRange']['isCollapsed'])return;const _0x319056=_0xa55579['modelRange']['start']['nodeAfter'];_0x319056['hasAttribute']('vid_start')||_0x319056['hasAttribute']('vid')||(_0x193515['writer']['setAttribute']('vid_start',_0xa55579['viewItem']['getAttribute']('vid_start'),_0x319056),_0x193515['writer']['setAttribute']('vid_end',_0xa55579['viewItem']['getAttribute']('vid_end'),_0x319056));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x217cfc=>_0x217cfc['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x4cb1dc,[,_0x506b81])=>{['vid_start','vid_end','vid']['includes'](_0x506b81)&&(_0x4cb1dc['return']=!0x0,_0x4cb1dc['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x148719=>{_0x148719['on']('attribute:vid',(_0x22f9f0,_0x25046d,_0x37865b)=>{if('\x20'!=_0x25046d['item']['data']||_0x25046d['item']['parent']['maxOffset']>0x1)return;if(!_0x37865b['consumable']['consume'](_0x25046d['item'],_0x22f9f0['name']))return;const _0x234667=_0x37865b['writer'],_0x3777d3=_0x37865b['mapper']['toViewRange'](_0x25046d['range']);_0x234667['wrap'](_0x3777d3,_0x234667['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x54917b){const _0xd777eb=_0x54917b['plugins']['get']('RevisionViewer');return(_0xce8aa8,_0x2c2cc5,_0x4f0a24)=>{const _0x5c9b46=_0x2c2cc5['markerName']['split'](':')[0x1],_0x2a8b7f=_0xd777eb['_getChangeFromId'](_0x5c9b46);if(!_0x2a8b7f)return null;const _0x598525='add'==_0x2a8b7f['type']?'split':'merge';if(!_0x4f0a24['consumable']['test'](_0x2c2cc5['markerRange'],_0xce8aa8['name']))return;const _0x285e4f=_0x2c2cc5['markerRange']['getWalker'](),_0x30f42e=_0x2c2cc5['markerRange']['start'],_0xbcc016=_0x54917b['model']['schema'];let _0x25ba0c=null,_0x4c0dde=null,_0x5180c9=!0x1,_0x580bc9=!0x1;for(const _0xd3a317 of _0x285e4f){const _0xe3f988=_0xd3a317['item'];_0x5180c9=_0x5180c9||_0xbcc016['isContent'](_0xe3f988);const _0x17e054=_0x4f0a24['mapper']['toViewElement'](_0xe3f988);if(_0x17e054&&_0x17e054['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xd3a317['type']&&(_0xbcc016['isBlock'](_0xe3f988)&&!_0xbcc016['isLimit'](_0xe3f988)&&(_0xe3f988['nextSibling']||_0x30f42e['isAtEnd']?_0x25ba0c&&_0x25ba0c['parent']==_0xe3f988||(_0x25ba0c=_0xe3f988,_0x438a18(_0xd3a317['previousPosition']),_0x580bc9=!0x0):_0x4c0dde=_0x4c0dde||_0xd3a317['previousPosition']));}function _0x438a18(_0x3d2515){const _0x3d9e42=_0x4f0a24['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x598525}),_0x45863c=_0x4f0a24['mapper']['toViewPosition'](_0x3d2515);_0x2a8b7f['data']['isSuggestion']&&_0x4f0a24['writer']['addClass']('ck-suggestion-marker-'+_0x598525+'-new',_0x3d9e42),_0xd777eb['activeChange']==_0x2a8b7f&&_0x4f0a24['writer']['addClass']('ck-suggestion-marker--active',_0x3d9e42),_0x4f0a24['writer']['insert'](_0x45863c,_0x3d9e42),_0x4f0a24['mapper']['bindElementToMarker'](_0x3d9e42,_0x2c2cc5['markerName']);}_0x5180c9||_0x580bc9||!_0x4c0dde||_0x438a18(_0x4c0dde);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x51ae53,_0x49cc51,_0x343844)=>{const _0x23c7a4=_0x343844['mapper']['markerNameToElements'](_0x49cc51['markerName']);if(_0x23c7a4){for(const _0x327819 of _0x23c7a4)(_0x327819['hasClass']('ck-suggestion-marker-split')||_0x327819['hasClass']('ck-suggestion-marker-merge'))&&(_0x343844['mapper']['unbindElementFromMarkerName'](_0x327819,_0x49cc51['markerName']),_0x343844['writer']['remove'](_0x327819));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x13784c,_0x2ad613,_0x3b2915)=>{const _0x3bf288=_0x2ad613['markerName']['split'](':')[0x1],_0x37b07f=this['_getChangeFromId'](_0x3bf288);if(!_0x37b07f)return null;const _0x288ba3='add'==_0x37b07f['type']?'split':'merge';if(_0x3b2915['consumable']['test'](_0x2ad613['markerRange'],_0x13784c['name']))for(const _0x305ea9 of _0x2ad613['markerRange']['getItems']()){if(!_0x305ea9['is']('element','softBreak'))continue;const _0x52bd00=_0x3b2915['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x288ba3}),_0x7daf62=_0x3b2915['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x305ea9));_0x37b07f['data']['isSuggestion']&&_0x3b2915['writer']['addClass']('ck-suggestion-marker-'+_0x288ba3+'-new',_0x52bd00),this['activeChange']==_0x37b07f&&_0x3b2915['writer']['addClass']('ck-suggestion-marker--active',_0x52bd00),_0x3b2915['writer']['insert'](_0x7daf62,_0x52bd00),_0x3b2915['mapper']['bindElementToMarker'](_0x52bd00,_0x2ad613['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x53c545=>{for(const _0x50cdad of this['editor']['model']['document']['getRootNames']()){const _0x10e798=this['editor']['model']['document']['getRoot'](_0x50cdad),_0x215b27=this['editor']['editing']['view']['document']['getRoot'](_0x50cdad);if(_0x215b27){const _0x2c2bb5=_0x10e798['getAttribute']('revisionHistoryAttachChange');if(_0x53c545['removeAttribute']('data-change-id',_0x215b27),_0x53c545['removeClass']('ck-revision-history-root-add',_0x215b27),_0x53c545['removeClass']('ck-revision-history-root-remove',_0x215b27),_0x53c545['removeClass']('ck-revision-history-root--active',_0x215b27),_0x2c2bb5){const _0x40deb3=this['_getChangeFromId'](_0x2c2bb5);if(!_0x40deb3)return null;_0x53c545['setAttribute']('data-change-id',_0x2c2bb5,_0x215b27),_0x53c545['addClass']('ck-revision-history-root-'+_0x40deb3['type'],_0x215b27),this['activeChange']==_0x40deb3&&_0x53c545['addClass']('ck-revision-history-root--active',_0x215b27);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x542da6=>'revision-comment:'+_0x542da6,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0xf005b4=>'revision-suggestion:'+_0xf005b4,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x51b314=>({'name':'suggestion:'+_0x51b314,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x2d7d1e=>{const _0x13d6f4=_0x2d7d1e['markerName']['split'](':')[0x1];return'insertion'!=_0x13d6f4&&'deletion'!=_0x13d6f4?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x13d6f4]};}}),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',(_0x5391a7,_0xbc68ed,_0x835b85)=>{const _0x4c8052=_0x835b85['mapper']['markerNameToElements'](_0xbc68ed['markerName']);if(_0x4c8052){for(const _0x212d08 of _0x4c8052)_0x212d08['is']('uiElement')&&(_0x835b85['mapper']['unbindElementFromMarkerName'](_0x212d08,_0xbc68ed['markerName']),_0x835b85['writer']['remove'](_0x212d08));}},{'priority':'high'});}['_getChangeFromId'](_0x569f4d){return this['_changeIdToChange']['get'](_0x569f4d);}['_getViewForChange'](_0x5c8128){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x5c8128),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x284f78,_0x3f32d2,_0x5b2362,_0x325984)=>{_0x325984&&this['_balloon']['remove'](_0x325984),_0x5b2362&&(this['_balloon']['add']({'view':_0x5b2362,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x206ae4=this['editor']['editing'],_0x2afa37=this['_getChangeFromId'](_0x5b2362['changeId']);let _0xc8866d;if(_0x2afa37['data']['isOnRoot']){const _0xcf9c71=_0x206ae4['view']['getDomRoot'](_0x2afa37['rootName']);_0xc8866d=Array['from'](_0xcf9c71['getClientRects']());}else{const _0x258366=this['editor']['model']['markers']['get']('revision:'+_0x5b2362['changeId']);_0xc8866d=Array['from'](_0x206ae4['mapper']['markerNameToElements'](_0x258366['name']))['map'](_0x414e44=>_0x206ae4['view']['domConverter']['mapViewToDom'](_0x414e44))['map'](_0x11fdef=>Array['from'](_0x11fdef['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0xc8866d[0x0];return _0xc8866d['find'](_0x2de711=>_0x2de711['top']-0x3<=this['_activeViewTarget']['y']&&_0x2de711['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x2de711['left']-0x3<=this['_activeViewTarget']['x']&&_0x2de711['right']+0x3>=this['_activeViewTarget']['x'])||_0xc8866d[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x1dc4fc,_0x34fa73,_0x71053e,_0x5563ce)=>{this['activeView']=_0x71053e?this['_getViewForChange'](_0x71053e):null,this['editor']['model']['change'](()=>{const _0x321188=this['editor']['editing'];_0x5563ce&&(_0x5563ce['data']['isOnRoot']?_0x321188['view']['change'](_0x583ccf=>{_0x583ccf['removeClass']('ck-revision-history-root--active',_0x321188['view']['document']['getRoot'](_0x5563ce['rootName']));}):_0x321188['reconvertMarker']('revision:'+_0x5563ce['id'])),_0x71053e&&(_0x71053e['data']['isOnRoot']?_0x321188['view']['change'](_0x411d70=>{_0x411d70['addClass']('ck-revision-history-root--active',_0x321188['view']['document']['getRoot'](_0x71053e['rootName']));}):_0x321188['reconvertMarker']('revision:'+_0x71053e['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x5afab1,_0x4e96f4)=>{if(this['activeChange'])return;const _0x51efac=this['_findChangeIdFromDomTarget'](_0x4e96f4['target']),_0x5545ad=this['_changeIdToChange']['get'](_0x51efac);_0x5545ad?(this['_activeViewTarget']={'x':_0x4e96f4['domEvent']['x'],'y':_0x4e96f4['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x5545ad)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x411119,_0x435ef9)=>{const _0xa188f=this['_findChangeIdFromDomTarget'](_0x435ef9['target']),_0x151da4=this['_changeIdToChange']['get'](_0xa188f);_0x151da4?(this['_activeViewTarget']={'x':_0x435ef9['domEvent']['x'],'y':_0x435ef9['domEvent']['y']},_0x151da4===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x151da4):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x1405a5){do{const _0x9c6e79=_0x1405a5['getAttribute']('data-change-id');if(_0x9c6e79)return _0x9c6e79;_0x1405a5=_0x1405a5['parent'];}while(_0x1405a5);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x10b93c=>{for(const _0x221250 of this['editor']['model']['markers'])_0x10b93c['removeMarker'](_0x221250);});}}function X(_0x13f6a7,_0x4538fe){return(_0x3d4884,_0x21370d,_0xb2fc50)=>{if(!_0xb2fc50['consumable']['test'](_0x21370d['markerRange'],_0x3d4884['name']))return;const _0x2d3b56=_0x21370d['markerRange']['getWalker'](),_0x2a3382=_0x21370d['markerRange']['start'],_0x1dca60=_0x13f6a7['model']['schema'];let _0xdc5076=null,_0x173bd6=null,_0x1381cd=!0x1,_0x4b441f=!0x1;for(const _0x3432d6 of _0x2d3b56){const _0x421040=_0x3432d6['item'];_0x1381cd=_0x1381cd||_0x1dca60['isContent'](_0x421040);const _0x3fa736=_0xb2fc50['mapper']['toViewElement'](_0x421040);if(_0x3fa736&&_0x3fa736['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3432d6['type']&&(_0x1dca60['isBlock'](_0x421040)&&!_0x1dca60['isLimit'](_0x421040)&&(_0x421040['nextSibling']||_0x2a3382['isAtEnd']?_0xdc5076&&_0xdc5076['parent']==_0x421040||(_0xdc5076=_0x421040,_0x4ff28f(_0x3432d6['previousPosition']),_0x4b441f=!0x0):_0x173bd6=_0x173bd6||_0x3432d6['previousPosition']));}function _0x4ff28f(_0x3ea1ce){const _0xa39952=_0xb2fc50['mapper']['toViewPosition'](_0x3ea1ce),_0x3a9e79=_0xb2fc50['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x4538fe});_0xb2fc50['writer']['insert'](_0xa39952,_0x3a9e79),_0xb2fc50['mapper']['bindElementToMarker'](_0x3a9e79,_0x21370d['markerName']);}_0x1381cd||_0x4b441f||!_0x173bd6||_0x4ff28f(_0x173bd6);};}class mt extends _0x4ec8c0{constructor(_0x3389fd){super(_0x3389fd);const _0x5f0682=_0x3389fd['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x5f0682,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x5f0682,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0xf70beb=this['editor'],_0x19c290=_0xf70beb['plugins']['get'](m),_0x5be35d=_0x19c290['isReady']?_0x19c290['diff']['newRevisionId']:null;_0xf70beb['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x5be35d);}['refresh'](){const {isReady:_0x5e96c1,isEnabled:_0x1a239c,repository:_0x25ce03,diff:_0x2116f2}=this['editor']['plugins']['get'](m),_0xa2cf25=_0x2116f2&&_0x25ce03['getLaterVisibleRevision'](_0x2116f2['newRevisionId']);this['isEnabled']=_0x5e96c1&&_0x1a239c&&Boolean(_0xa2cf25);}}class wt extends _0x4ec8c0{['_step'];constructor(_0x1d343f,{direction:_0x3206cb}){super(_0x1d343f);const _0x26d34f=_0x1d343f['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x3206cb?0x1:-0x1,this['listenTo'](_0x26d34f,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x26d34f,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x26d34f,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x5dade3=this['editor'],_0x1d67ab=_0x5dade3['plugins']['get'](m),{isNavigationMode:_0x482486,currentChangeNumber:_0xcae55b}=_0x1d67ab;let _0x153812;if(_0x1d67ab['activeChange']=_0x482486?_0x1d67ab['diff']['changes']['get'](_0xcae55b+this['_step']):_0x1d67ab['diff']['changes']['first'],_0x1d67ab['activeChange']['data']['isOnRoot'])_0x153812=_0x5dade3['editing']['view']['getDomRoot'](_0x1d67ab['activeChange']['rootName']);else{const _0x3f568d=_0x5dade3['model']['markers']['get']('revision:'+_0x1d67ab['activeChange']['id']);_0x153812=_0xde534e(_0x5dade3['editing'],_0x3f568d);}_0x3ec7c4({'target':_0x153812,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x11f32e,currentChangeNumber:_0x4c0c8d,numberOfChanges:_0x7ddde,isReady:_0x52cebe,isEnabled:_0x29e28d}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x29e28d&&_0x52cebe&&_0x7ddde)&&(!_0x11f32e||(0x1===this['_step']?_0x4c0c8d<_0x7ddde-0x1:_0x4c0c8d>0x0));}}class _i extends ts{constructor(_0x4dfa64){super(_0x4dfa64);const _0x599f97=this['bindTemplate'],_0x3f4841=new te(_0x4dfa64),_0x563929=new te(_0x4dfa64);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',(_0x5c58e6,_0x1c04fc)=>_0x5c58e6&&_0x1c04fc>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x3998fd,_0x1f1703,_0x538327,_0x57094b)=>{if(!_0x3998fd)return g(_0x4dfa64,'Loading...');if(!_0x538327)return g(_0x4dfa64,'No\x20changes');const _0x543d15=g(_0x4dfa64,'NUMBER_OF_CHANGES',_0x538327);return _0x57094b?g(_0x4dfa64,'X_OF_Y_CHANGES',[_0x1f1703+0x1,_0x538327]):_0x543d15;}),_0x3f4841['set']({'label':g(_0x4dfa64,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x3b2509}),_0x563929['set']({'label':g(_0x4dfa64,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x5975c5}),_0x3f4841['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x563929['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x3f4841['on']('execute',()=>this['fire']('execute','backward')),_0x563929['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',_0x599f97['if']('_isStatusLabelVisible','ck-hidden',_0x51020c=>!_0x51020c)]},'children':[{'text':_0x599f97['to']('isNavigationMode',_0x141f79=>_0x141f79?g(_0x4dfa64,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x4dfa64,'Total')+':\x20')}]},{'text':_0x599f97['to']('_statusText')}]},new _0x46913a(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x3f4841,_0x563929]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x751a85{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x55ccdd=this['editor']['editing']['view'];_0x55ccdd['change'](_0x222b68=>{for(const _0xe2472a of _0x55ccdd['document']['roots'])_0x222b68['addClass'](le,_0xe2472a);});}['hide'](){const _0xd330bc=this['editor']['editing']['view'];_0xd330bc['change'](_0x275b26=>{for(const _0x1fa863 of _0xd330bc['document']['roots'])_0x275b26['removeClass'](le,_0x1fa863);});}}class R extends _0x751a85{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,ge];}['init'](){const _0x30aaef=this['editor'],_0x1847e4=_0x30aaef['plugins']['get'](m),_0x241043=_0x30aaef['plugins']['get'](ge);_0x30aaef['ui']['componentFactory']['add']('exitToEditing',_0x4fa151=>{const _0x163535=new te(_0x4fa151);return _0x163535['set']({'label':g(_0x4fa151,'Back\x20to\x20editing'),'icon':_0x5ac9a4,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x163535,'execute',()=>{_0x30aaef['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x163535;}),_0x30aaef['ui']['componentFactory']['add']('restoreRevision',_0x316633=>{const _0x396ce3=new te(_0x316633);return _0x396ce3['set']({'label':g(_0x316633,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x396ce3['bind']('isEnabled')['to'](_0x30aaef['commands']['get']('restoreRevision')),this['listenTo'](_0x396ce3,'execute',()=>_0x30aaef['execute']('restoreRevision')),_0x396ce3;}),_0x30aaef['ui']['componentFactory']['add']('changesNavigation',_0xc1a095=>{const _0x396fec=new _i(_0xc1a095),_0x5c0be3=_0x30aaef['commands']['get']('showPreviousChange'),_0x4b3490=_0x30aaef['commands']['get']('showNextChange');return _0x396fec['bind']('isBackwardNavigationEnabled')['to'](_0x5c0be3,'isEnabled'),_0x396fec['bind']('isForwardNavigationEnabled')['to'](_0x4b3490,'isEnabled'),_0x396fec['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x1847e4),this['listenTo'](_0x396fec,'execute',(_0x160b38,_0x433aca)=>{_0x30aaef['execute']('forward'===_0x433aca?'showNextChange':'showPreviousChange');}),_0x396fec;}),_0x241043['show'](),_0x1847e4['on']('change:isReady',(_0x5b2a0e,_0x36e543,_0x294096)=>{_0x294096?_0x241043['hide']():_0x241043['show']();});}}class at extends _0x2df266{['_resizeObserver']=null;constructor(_0x537b6c,_0x5d54c2){super(_0x537b6c,_0x5d54c2);const _0x38a4be=this['bindTemplate'];this['set']({'label':g(_0x537b6c,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x537b6c,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x38a4be['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 _0x1a9db6=this['fieldView']['element'];this['_tooltipString']=_0x1a9db6['scrollWidth']>_0x1a9db6['clientWidth']&&_0x1a9db6['value']||'';}}class si extends ts{constructor(_0x26a87b,_0x39b26e,_0x1ccb07){super(_0x26a87b);const _0x4af8f8=new _0x30e112();_0x4af8f8['set']({'content':_0x2fc152,'viewBox':'0\x200\x2011\x2010'});const _0x32fffb=['ck','ck-revision-history-sidebar__revision-author'];_0x1ccb07&&_0x32fffb['push']('ck-revision-history-sidebar__revision-author_creator');const _0x37580b=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x26a87b,_0x1ccb07?'Revision\x20creator':'Revision\x20author')},'children':[_0x4af8f8,_0x39b26e['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x32fffb},'children':_0x37580b});}}function oi(_0x4b7e9f,_0x3300d4){const _0x5d2987=_0x4b7e9f['bindTemplate'],_0x591c87=_0x4b7e9f['locale'],_0x550313=_0x13dfac(_0x591c87);_0x550313['panelPosition']='sw';const _0x449fe2=function(_0x5d2d91,_0x3f9134){const _0x2a4be6=function(_0x286fa7,_0x5a5181){const _0x103553=_0x286fa7['locale'],_0x532d50={'Compare\x20against\x20selected':g(_0x103553,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x103553,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x103553,'Restore\x20this\x20revision')};return _0x5a5181['map'](_0x365337=>{const _0xffe621=_0x532d50[_0x365337['name']];return _0xffe621&&_0xffe621!==_0x365337['name']&&(_0x365337['name']=_0xffe621),_0x365337;});}(_0x5d2d91,_0x3f9134),_0x429af1=new _0x326ed2();for(const _0x575ae6 of _0x2a4be6){const _0x3b9ba3={'type':'button','model':new to({'label':_0x575ae6['name'],'class':_0x575ae6['class'],'withText':!0x0,'role':'menuitem','_action':_0x575ae6['action']})};_0x3b9ba3['model']['bind']('isEnabled')['to'](_0x5d2d91,'isActionsDropdownOpen',_0x53fd0d=>'function'!=typeof _0x575ae6['isEnabled']||(!_0x53fd0d||_0x575ae6['isEnabled'](_0x5d2d91))),_0x429af1['add'](_0x3b9ba3);}return _0x429af1;}(_0x4b7e9f,_0x3300d4);return _0x4b7e9f['bind']('isActionsDropdownOpen')['to'](_0x550313,'isOpen'),_0x550313['buttonView']['set']({'label':g(_0x591c87,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x475db6}),_0x550313['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x5d2987['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x5d2987['to'](_0x38c4af=>_0x38c4af['stopPropagation']())}}),_0x550313['on']('execute',_0xf84ae=>{_0x4b7e9f['isReady']&&'function'==typeof _0xf84ae['source']['_action']&&_0xf84ae['source']['_action'](_0x4b7e9f);}),_0x38e9df(_0x550313,_0x449fe2,{'role':'menu'}),_0x550313['listenTo'](_0x4b7e9f,'change:isActionsDropdownOpen',(_0x293e41,_0x5d335f,_0xfe5e63)=>{if(_0xfe5e63)for(const _0x6bdd79 of _0x550313['listView']['items']){const _0xd56523=_0x6bdd79['children']['first'],_0x16f32f=_0x3300d4['find'](_0x3f7872=>_0x3f7872['action']===_0xd56523['_action'])['isVisible'];_0x6bdd79['isVisible']=void 0x0===_0x16f32f||_0x16f32f(_0x4b7e9f);}}),_0x550313;}class hi extends/* #__PURE__ -- @preserve */
|
|
26
|
-
|
|
23
|
+
import{ObservableMixin as _0x543dbd,uid as _0x2135da,Collection as _0x284c5d,logWarning as _0x307a60,FocusTracker as _0x59373c,KeystrokeHandler as _0x554dc6,scrollViewportToShowTarget as _0x5506aa,ResizeObserver as nt,ElementReplacer as ot,CKEditorError as _0x3a53ad}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0xcb7214,set as _0xe8150f,unset as _0x2d4842,isEqual as _0x310225}from'es-toolkit/compat';import{Plugin as _0x211636,PendingActions as _0x16f3f9,Command as _0x557798,ElementApiMixin as _0x56f463,Editor as _0x3a3d93}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x50a466,getMarkerDomElement as _0x29c24a,ConfirmMixin as _0x183f1e,sanitizeEditorConfig as _0x4ba1b6}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x37f337,ViewAttributeElement as _0xc8a1b3,ViewEmptyElement as _0x2961cf,ViewRawElement as _0x285908,ViewUIElement as _0x125622,ViewDocumentFragment as _0x1674fe,ViewText as _0x186cae,ViewElement as _0x1c8e6e,Element as ut,Range as lt,Position as ft,DocumentFragment as vt,Text as gt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x1d1a96,IconChevronUp as _0x5e7da9,IconChevronDown as _0x1491d3,IconUndo as _0x10e86f,IconUser as _0x40a776,IconThreeVerticalDots as _0x7b1e92}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x1e5aaa,submitHandler as _0x1574ed,LabeledFieldView as _0x396cf7,createLabeledInputText as _0x2bcaae,createDropdown as _0x93f8f9,ListView as _0x8ce643,ListItemView as _0x283216,ButtonView as te,MenuBarMenuView as _0x40e71a,MenuBarMenuListView as _0x464d38,MenuBarMenuListItemView as _0x12d4bc,MenuBarMenuListItemButtonView as _0x17c827,ContextualBalloon as _0x172aea,ToolbarSeparatorView as _0xf40071,IconView as _0x593adf,addListToDropdown as _0x542dea,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 _0x350976}from'luxon';class h extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x543dbd(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x7842a9){super(),this['id']=_0x7842a9['id']||_0x2135da(),this['creator']=_0x7842a9['creator']||null,this['authors']=_0x7842a9['authors']||[],this['diffData']=_0x7842a9['diffData']||null,this['toVersion']=_0x7842a9['toVersion']||0x0,this['fromVersion']=_0x7842a9['fromVersion']||0x0,this['set']('name',_0x7842a9['name']||''),this['set']('createdAt',_0x7842a9['createdAt']||new Date()),this['set']('attributes',_0x7842a9['attributes']||{});}['setName'](_0x31dab4){this['_update']({'name':_0x31dab4});}['setAttribute'](_0x36065a,_0xcdc69d){const _0x1a3a64=_0xcb7214(this['attributes']);_0xe8150f(_0x1a3a64,_0x36065a,_0xcdc69d),this['_update']({'attributes':_0x1a3a64});}['removeAttribute'](_0x52e682){const _0x1f7e68=_0xcb7214(this['attributes']);_0x2d4842(_0x1f7e68,_0x52e682),this['_update']({'attributes':_0x1f7e68});}['_update'](_0x4bc101,_0x3793ad=!0x1){let _0x5de522=!0x1;const _0x2fb09b={'id':this['id']},_0x43ad77=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x5efc36 of _0x43ad77){const _0xa3f204=_0x4bc101[_0x5efc36];void 0x0!==_0xa3f204&&_0xa3f204!==this[_0x5efc36]&&(this[_0x5efc36]=_0xa3f204,_0x2fb09b[_0x5efc36]=_0xa3f204,_0x5de522=!0x0);}_0x5de522&&(_0x2fb09b['authors']&&(_0x2fb09b['authorsIds']=_0x2fb09b['authors']['map'](_0x555427=>_0x555427['id']),delete _0x2fb09b['authors']),this['fire']('_update',_0x2fb09b,_0x3793ad));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x269d4f=>_0x269d4f['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x211636{['_revisions'];static get['requires'](){return[_0x50a466];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x586015){super(_0x586015),this['_revisions']=new _0x284c5d();}['afterInit'](){!async function(_0x1308af){const _0x388108=_0x5f5dac([0x74,0x49,0x30,0x77,0x79,0x35,0x78,0x6e,0x68,0x59,0x75,0x66,0x38,0x4b,0x56,0x5a,0x37,0x4d,0x65,0x64,0x39,0x52,0x6d,0x36,0x58,0x57,0x4a,0x4f,0x51,0x32,0x46,0x48,0x55,0x47,0x7a,0x71,0x4e,0x44,0x42,0x72,0x73,0x61,0x63,0x62,0x33,0x6c,0x53,0x70,0x69,0x31,0x45,0x67,0x76,0x6b,0x43,0x34,0x6f,0x50,0x54,0x41,0x6a,0x4c]),_0x164394=0xeb829,_0x1618af=0x49e408ea,_0x4700ec=0x49e361ca^_0x1618af,_0x26f7ea=window[_0x5f5dac([0x44,0x61,0x74,0x65])][_0x5f5dac([0x6e,0x6f,0x77])](),_0x3b0980=_0x1308af[_0x5f5dac([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5e0292=new window[(_0x5f5dac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x486942=>{_0x3b0980[_0x5f5dac([0x6f,0x6e,0x63,0x65])](_0x5f5dac([0x72,0x65,0x61,0x64,0x79]),_0x486942);}),_0x479822={[_0x5f5dac([0x6b,0x74,0x79])]:_0x5f5dac([0x45,0x43]),[_0x5f5dac([0x75,0x73,0x65])]:_0x5f5dac([0x73,0x69,0x67]),[_0x5f5dac([0x63,0x72,0x76])]:_0x5f5dac([0x50,0x2d,0x32,0x35,0x36]),[_0x5f5dac([0x78])]:_0x5f5dac([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]),[_0x5f5dac([0x79])]:_0x5f5dac([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]),[_0x5f5dac([0x61,0x6c,0x67])]:_0x5f5dac([0x45,0x53,0x32,0x35,0x36])},_0x3363e8=_0x3b0980[_0x5f5dac([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5f5dac([0x67,0x65,0x74])](_0x5f5dac([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5cff5e(){let _0x431e00,_0x3d6b57=null,_0x5bd502=null;try{if(_0x3363e8==_0x5f5dac([0x47,0x50,0x4c]))return _0x5f5dac([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x431e00=_0x57db0c(),!_0x431e00)return _0x5f5dac([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x431e00[_0x5f5dac([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5bd502=_0x4c996f(_0x431e00[_0x5f5dac([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x431e00[_0x5f5dac([0x6a,0x74,0x69])])),await _0x36d503()?_0x433719()?_0x58930c()?_0x5f5dac([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x211e9c()?(_0x431e00[_0x5f5dac([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5f5dac([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3d6b57=_0x288733(_0x5f5dac([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x431e00[_0x5f5dac([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5f5dac([0x74,0x72,0x69,0x61,0x6c])&&(_0x3d6b57=_0x288733(_0x5f5dac([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x44376f()):_0x5f5dac([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5f5dac([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5f5dac([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5f5dac([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x58930c(){const _0x4e4293=[_0x5f5dac([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5f5dac([0x74,0x72,0x69,0x61,0x6c])][_0x5f5dac([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x431e00[_0x5f5dac([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x26f7ea/0x3e8:0xe10*_0x4700ec;return _0x431e00[_0x5f5dac([0x65,0x78,0x70])]<_0x4e4293;}function _0x433719(){const _0x14bd8f=_0x431e00[_0x5f5dac([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x14bd8f)return!0x1;if(_0x14bd8f[_0x5f5dac([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f5dac([0x2a])))return!0x0;if(_0x14bd8f[_0x5f5dac([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f5dac([0x52,0x48])))return!0x0;if(_0x14bd8f[_0x5f5dac([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f5dac([0x52,0x52,0x48]))){if(_0xca3e0a())return!0x0;if(_0x4ff7df()||_0x1cafc2())return!0x0;}return!0x1;}function _0x211e9c(){const _0x42432a=_0x431e00[_0x5f5dac([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x42432a||0x0==_0x42432a[_0x5f5dac([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x145e46}=new URL(window[_0x5f5dac([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x42432a[_0x5f5dac([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x145e46))return!0x0;const _0x33cc55=_0x145e46[_0x5f5dac([0x73,0x70,0x6c,0x69,0x74])](_0x5f5dac([0x2e]));return _0x42432a[_0x5f5dac([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4140bf=>_0x4140bf[_0x5f5dac([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f5dac([0x2a])))[_0x5f5dac([0x6d,0x61,0x70])](_0x1fa699=>_0x1fa699[_0x5f5dac([0x73,0x70,0x6c,0x69,0x74])](_0x5f5dac([0x2e])))[_0x5f5dac([0x73,0x6f,0x6d,0x65])](_0x2f9dc0=>_0x33cc55[_0x5f5dac([0x65,0x76,0x65,0x72,0x79])]((_0x2f1991,_0x2e4d11)=>_0x2f9dc0[_0x2e4d11]===_0x2f1991||_0x2f9dc0[_0x2e4d11]===_0x5f5dac([0x2a])));}function _0x44376f(){return _0x3d6b57&&_0x5bd502?new window[(_0x5f5dac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x13e6fc,_0x37f67c)=>{_0x3d6b57[_0x5f5dac([0x74,0x68,0x65,0x6e])](_0x13e6fc,_0x37f67c),_0x5bd502[_0x5f5dac([0x74,0x68,0x65,0x6e])](_0x54b266=>{_0x54b266!=_0x5f5dac([0x56,0x61,0x6c,0x69,0x64])&&_0x13e6fc(_0x54b266);},_0x37f67c);}):_0x3d6b57||_0x5bd502||_0x5f5dac([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4c996f(_0x2096c4,_0x15a8ae){return new window[(_0x5f5dac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xbf48a5=>{if(_0x4e4b27())return _0xbf48a5(_0x5f5dac([0x56,0x61,0x6c,0x69,0x64]));_0x30682f(),_0x3b0980[_0x5f5dac([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5f5dac([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2e5af1=!0x1;const _0x3c70e4=_0x2135da();function _0xdd6b56(_0x21a7e3){return!!_0x21a7e3&&(typeof _0x21a7e3===_0x5f5dac([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x21a7e3===_0x5f5dac([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x21a7e3[_0x5f5dac([0x74,0x68,0x65,0x6e])]===_0x5f5dac([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x21a7e3[_0x5f5dac([0x63,0x61,0x74,0x63,0x68])]===_0x5f5dac([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x586a68(_0x17d23f){_0x3af557(_0x17d23f)[_0x5f5dac([0x74,0x68,0x65,0x6e])](_0x40e701=>{if(!_0x40e701||_0x40e701[_0x5f5dac([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5f5dac([0x6f,0x6b]))return _0x5f5dac([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x48e071(_0x5aec96(_0x3c70e4+_0x15a8ae))!=_0x40e701[_0x5f5dac([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5f5dac([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5f5dac([0x56,0x61,0x6c,0x69,0x64]);})[_0x5f5dac([0x74,0x68,0x65,0x6e])](_0x5ad45e=>(_0x2e204f(),_0x5ad45e),()=>{const _0x28b1ff=_0x59d41a();return null==_0x28b1ff?(_0x2e204f(),_0x5f5dac([0x56,0x61,0x6c,0x69,0x64])):_0x5f5dac(_0x26f7ea-_0x28b1ff>(0x6de88cea^_0x1618af)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5f5dac([0x74,0x68,0x65,0x6e])](_0xbf48a5)[_0x5f5dac([0x63,0x61,0x74,0x63,0x68])](()=>{_0xbf48a5(_0x5f5dac([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xd4caa8=0x49d2e66a^_0x1618af;function _0x2e204f(){const _0x4bd05b=_0x5f5dac([0x6c,0x6c,0x63,0x74,0x2d])+_0x48e071(_0x5aec96(_0x2096c4)),_0x5ee736=_0x27000c(_0x48e071(window[_0x5f5dac([0x4d,0x61,0x74,0x68])][_0x5f5dac([0x63,0x65,0x69,0x6c])](_0x26f7ea/_0xd4caa8)));window[_0x5f5dac([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5f5dac([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4bd05b,_0x5ee736);}function _0x59d41a(){const _0x21fb7f=_0x5f5dac([0x6c,0x6c,0x63,0x74,0x2d])+_0x48e071(_0x5aec96(_0x2096c4)),_0x2ea61a=window[_0x5f5dac([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5f5dac([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x21fb7f);return _0x2ea61a?window[_0x5f5dac([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x27000c(_0x2ea61a),0x10)*_0xd4caa8:null;}function _0x3af557(_0x398809){return new window[(_0x5f5dac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xd6f015,_0x3c3b70)=>{_0x398809[_0x5f5dac([0x74,0x68,0x65,0x6e])](_0xd6f015,_0x3c3b70),window[_0x5f5dac([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3c3b70,0x49e5dc2a^_0x1618af);});}}_0x3b0980[_0x5f5dac([0x6f,0x6e])](_0x5f5dac([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4e0f83,_0x226bd4)=>{if(_0x226bd4[0x0]!=_0x2096c4)return _0xbf48a5(_0x5f5dac([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x226bd4[0x1]={..._0x226bd4[0x1],[_0x5f5dac([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3c70e4};},{[_0x5f5dac([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5f5dac([0x68,0x69,0x67,0x68])}),_0x3b0980[_0x5f5dac([0x6f,0x6e])](_0x5f5dac([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2a4b21=>{_0xdd6b56(_0x2a4b21[_0x5f5dac([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2e5af1=!0x0,_0x586a68(_0x2a4b21[_0x5f5dac([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5f5dac([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5f5dac([0x6c,0x6f,0x77])}),_0x5e0292[_0x5f5dac([0x74,0x68,0x65,0x6e])](()=>{_0x2e5af1||_0xbf48a5(_0x5f5dac([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4e4b27(){return _0x3b0980[_0x5f5dac([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5f5dac([0x76,0x69,0x65,0x77])][_0x5f5dac([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5f5dac([0x61,0x75,0x74,0x6f]);}function _0x30682f(){_0x3b0980[_0x5f5dac([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5f5dac([0x76,0x69,0x65,0x77])][_0x5f5dac([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5f5dac([0x61,0x75,0x74,0x6f]);}}function _0x288733(_0x1b8a98){const _0x26ac14=[new window[(_0x5f5dac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x299f10=>setTimeout(_0x299f10,0x49ed3626^_0x1618af)),_0x5e0292[_0x5f5dac([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5f5dac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2e421b=>{const _0x4db110=0x49e408ed^_0x1618af,_0x5e3fd7=_0x1308af[_0x5f5dac([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x59ec8d(){_0x5e3fd7[_0x5f5dac([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x4db110&&_0x2e421b();}_0x59ec8d(),_0x5e3fd7[_0x5f5dac([0x6f,0x6e])](_0x5f5dac([0x61,0x64,0x64]),_0x59ec8d);})),new window[(_0x5f5dac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x287c88=>{function _0xdb079e(){for(const _0x1a68fa in window)if(window[_0x5f5dac([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x5f5dac([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x1a68fa))&&window[_0x1a68fa]==_0x164394)return _0x287c88();_0x3b0980[_0x5f5dac([0x73,0x74,0x61,0x74,0x65])]!=_0x5f5dac([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x5f5dac([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xdb079e,0x49e41b62^_0x1618af);}_0x2d1c59(_0x5f5dac([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0xdb079e();})];return window[_0x5f5dac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5f5dac([0x72,0x61,0x63,0x65])](_0x26ac14)[_0x5f5dac([0x74,0x68,0x65,0x6e])](()=>_0x1b8a98);}async function _0x539e28(){if(await _0x5e0292,_0x2d1c59(_0x5f5dac([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x44fc9f=_0x1308af[_0x5f5dac([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x171e6c=_0x1308af[_0x5f5dac([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])](_0x44fc9f[_0x5f5dac([0x69,0x64])]),_0x58bd61=_0x290fb3(_0x5f5dac([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x58bd61[_0x5f5dac([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x44fc9f['id'],_0x171e6c?_0x171e6c['id']:null,!0x0),_0x58bd61[_0x5f5dac([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x5f5dac([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x58bd61[_0x5f5dac([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x58bd61[_0x5f5dac([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x15c3f5,void(_0x58bd61[_0x5f5dac([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x15c3f5);}if(_0x2d1c59(_0x5f5dac([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x2f6dc6=_0x290fb3(_0x5f5dac([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x2f6dc6[_0x5f5dac([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x5f5dac([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x2f6dc6[_0x5f5dac([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x2f6dc6[_0x5f5dac([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x15c3f5,_0x2f6dc6[_0x5f5dac([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x15c3f5;}_0x3b0980[_0x5f5dac([0x6d,0x6f,0x64,0x65,0x6c])][_0x5f5dac([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x15c3f5,_0x3b0980[_0x5f5dac([0x6d,0x6f,0x64,0x65,0x6c])][_0x5f5dac([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x15c3f5,_0x3b0980[_0x5f5dac([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5f5dac([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xca3e0a(){return _0x2d1c59(_0x5f5dac([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x290fb3(_0x5f5dac([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x5f5dac([0x73,0x74,0x61,0x74,0x65])]==_0x5f5dac([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4ff7df(){return _0x2d1c59(_0x5f5dac([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 _0x1cafc2(){return _0x2d1c59(_0x5f5dac([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x30eecd(_0x42777e){const _0x28c07b=_0x5069f9();_0x3b0980[_0x28c07b]=_0x5f5dac([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])+_0x42777e,_0x42777e[_0x5f5dac([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x5f5dac([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x5069f9()]=_0x164394),_0x42777e!=_0x5f5dac([0x56,0x61,0x6c,0x69,0x64])&&_0x539e28();}function _0x5069f9(){const _0x4ac0a7=window[_0x5f5dac([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5f5dac([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5f5dac([0x6e,0x6f,0x77])]())[_0x5f5dac([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5f5dac([0x2e]),'');let _0x2d2e89=_0x5f5dac([0x74]);for(let _0x2c598b=0x0;_0x2c598b<_0x4ac0a7[_0x5f5dac([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2c598b+=0x2){let _0x5c3557=window[_0x5f5dac([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4ac0a7[_0x5f5dac([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2c598b,_0x2c598b+0x2));_0x5c3557>=_0x388108[_0x5f5dac([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5c3557-=_0x388108[_0x5f5dac([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2d2e89+=_0x388108[_0x5c3557];}return _0x2d2e89;}function _0x57db0c(){const _0x4242d5=_0x3363e8[_0x5f5dac([0x73,0x70,0x6c,0x69,0x74])](_0x5f5dac([0x2e]));if(0x3!=_0x4242d5[_0x5f5dac([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x8cd125(_0x4242d5[0x1]);function _0x8cd125(_0x28e7bd){const _0x366c78=_0x2941d1(_0x28e7bd);return _0x366c78&&_0x1e6f8c()?_0x366c78:null;function _0x1e6f8c(){const _0x193d0f=_0x366c78[_0x5f5dac([0x6a,0x74,0x69])],_0xa4b11f=window[_0x5f5dac([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x193d0f[_0x5f5dac([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x193d0f[_0x5f5dac([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2427af={..._0x366c78,[_0x5f5dac([0x6a,0x74,0x69])]:_0x193d0f[_0x5f5dac([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x193d0f[_0x5f5dac([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2427af[_0x5f5dac([0x76,0x63])],_0x5aec96(_0x2427af)==_0xa4b11f;}}}async function _0x36d503(){let _0x4314d6=!0x0;try{const _0x321a1c=_0x3363e8[_0x5f5dac([0x73,0x70,0x6c,0x69,0x74])](_0x5f5dac([0x2e])),[_0x3eb466,_0xaebe39,_0x22d796]=_0x321a1c;return _0x283fcb(_0x3eb466),await _0x4f648c(_0x3eb466,_0xaebe39,_0x22d796),_0x4314d6;}catch{return!0x1;}function _0x283fcb(_0x44a240){const _0x679e31=_0x2941d1(_0x44a240);_0x679e31&&_0x679e31[_0x5f5dac([0x61,0x6c,0x67])]==_0x5f5dac([0x45,0x53,0x32,0x35,0x36])||(_0x4314d6=!0x1);}async function _0x4f648c(_0x27319b,_0x373c51,_0x4d722c){const _0x5c06bf=window[_0x5f5dac([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5f5dac([0x66,0x72,0x6f,0x6d])](_0x3965d8(_0x4d722c),_0x2a7d7c=>_0x2a7d7c[_0x5f5dac([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x45a23f=new window[(_0x5f5dac([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5f5dac([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x27319b+_0x5f5dac([0x2e])+_0x373c51),_0x59bef7=window[_0x5f5dac([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5f5dac([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x59bef7)return;const _0x31acf7=await _0x59bef7[_0x5f5dac([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5f5dac([0x6a,0x77,0x6b]),_0x479822,{[_0x5f5dac([0x6e,0x61,0x6d,0x65])]:_0x5f5dac([0x45,0x43,0x44,0x53,0x41]),[_0x5f5dac([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5f5dac([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5f5dac([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x59bef7[_0x5f5dac([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5f5dac([0x6e,0x61,0x6d,0x65])]:_0x5f5dac([0x45,0x43,0x44,0x53,0x41]),[_0x5f5dac([0x68,0x61,0x73,0x68])]:{[_0x5f5dac([0x6e,0x61,0x6d,0x65])]:_0x5f5dac([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x31acf7,_0x5c06bf,_0x45a23f)||(_0x4314d6=!0x1);}}function _0x2941d1(_0x5eb8af){return _0x5eb8af[_0x5f5dac([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5f5dac([0x65,0x79]))?JSON[_0x5f5dac([0x70,0x61,0x72,0x73,0x65])](_0x3965d8(_0x5eb8af)):null;}function _0x3965d8(_0x252182){return window[_0x5f5dac([0x61,0x74,0x6f,0x62])](_0x252182[_0x5f5dac([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5f5dac([0x2b]))[_0x5f5dac([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5f5dac([0x2f])));}function _0x5aec96(_0x1fdd99){let _0x37ab19=0x1505;function _0x235635(_0x5d3ecc){for(let _0x3c6ca2=0x0;_0x3c6ca2<_0x5d3ecc[_0x5f5dac([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3c6ca2++){const _0x109f03=_0x5d3ecc[_0x5f5dac([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3c6ca2);_0x37ab19=(_0x37ab19<<0x5)+_0x37ab19+_0x109f03,_0x37ab19&=_0x37ab19;}}function _0x1e5ef4(_0x3a541a){Array[_0x5f5dac([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3a541a)?_0x3a541a[_0x5f5dac([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1e5ef4):_0x3a541a&&typeof _0x3a541a==_0x5f5dac([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5f5dac([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3a541a)[_0x5f5dac([0x73,0x6f,0x72,0x74])]()[_0x5f5dac([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1e666c,_0x5c51a0])=>{_0x235635(_0x1e666c),_0x1e5ef4(_0x5c51a0);}):_0x235635(window[_0x5f5dac([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3a541a));}return _0x1e5ef4(_0x1fdd99),_0x37ab19>>>0x0;}function _0x48e071(_0x238826){return _0x238826[_0x5f5dac([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5f5dac([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5f5dac([0x30]));}function _0x27000c(_0x4ee984){return _0x4ee984[_0x5f5dac([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5f5dac([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5f5dac([0x6a,0x6f,0x69,0x6e])]('');}function _0x2d1c59(_0x1c78e8){return _0x3b0980[_0x5f5dac([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5f5dac([0x68,0x61,0x73])](_0x1c78e8);}function _0x290fb3(_0x16d3fe){return _0x3b0980[_0x5f5dac([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5f5dac([0x67,0x65,0x74])](_0x16d3fe);}function _0x15c3f5(){}function _0x5f5dac(_0x90876c){return _0x90876c['map'](_0x4e90f9=>String['fromCharCode'](_0x4e90f9))['join']('');}_0x30eecd(await _0x5cff5e());}(this);}['createRevision'](_0x41ca35){const _0x381713=this['editor']['plugins']['get']('Users');return new h({'id':_0x41ca35['id'],'name':_0x41ca35['name'],'creator':_0x41ca35['creatorId']?_0x381713['getUser'](_0x41ca35['creatorId']):null,'diffData':_0x41ca35['diffData']||_0x41ca35['data'],'authors':_0x41ca35['authorsIds']['map'](_0x363586=>_0x381713['getUser'](_0x363586)),'createdAt':new Date(_0x41ca35['createdAt']),'attributes':_0x41ca35['attributes'],'fromVersion':_0x41ca35['fromVersion'],'toVersion':_0x41ca35['toVersion']});}['addRevision'](_0x168ac7,_0x2a70aa=0x0){this['_revisions']['add'](_0x168ac7,_0x2a70aa);}['getRevision'](_0x547480){return this['_revisions']['get'](_0x547480);}['getRevisions'](_0x22baef={'toJSON':!0x1}){const _0xf60867=Array['from'](this['_revisions']);return _0xf60867['reverse'](),_0x22baef['toJSON']?_0xf60867['map'](_0x25df20=>_0x25df20['toJSON']()):_0xf60867;}['getIndex'](_0x3a36bd){return this['_revisions']['getIndex'](_0x3a36bd);}['getEarlierVisibleRevision'](_0x5dcdc9){const [,_0x44b7a7]=this['getRevisionsIterator'](_0x5dcdc9,{'direction':'earlier'});return _0x44b7a7;}['getLaterVisibleRevision'](_0x5aa661){const [,_0x34a4ab]=this['getRevisionsIterator'](_0x5aa661,{'direction':'later'});return _0x34a4ab;}['getRevisionsInDiff'](_0x38892f){const _0x3f40ba=[];for(const _0x2d9f01 of this['getRevisionsIterator'](_0x38892f['newRevisionId']))if(_0x3f40ba['push'](_0x2d9f01),_0x2d9f01['id']===_0x38892f['oldRevisionId'])break;return _0x3f40ba;}*['getRevisionsIterator'](_0x5a274d,{direction:_0x326799='earlier',filter:_0x16f9d7=()=>!0x0}={}){const _0x2ac0cf='earlier'===_0x326799?0x1:-0x1;let _0x54d533=this['_revisions']['get'](_0x5a274d),_0x121931=this['getIndex'](_0x54d533);for(yield _0x54d533;_0x54d533;){if(_0x121931+=_0x2ac0cf,_0x54d533=this['getRevision'](_0x121931),!_0x54d533)return;_0x16f9d7(_0x54d533)&&(yield _0x54d533);}}}class V extends _0x211636{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x37f337,'c'],[_0xc8a1b3,'a'],[_0x2961cf,'e'],[_0x285908,'r'],[_0x125622,'u']]);['_typeCharToViewClass']=new Map([['c',_0x37f337],['a',_0xc8a1b3],['e',_0x2961cf],['r',_0x285908],['u',_0x125622]]);async['loadRevisionData'](_0x1e7507,_0x3d32ea){if(_0x1e7507['diffData']||!_0x3d32ea)return;const _0x529e47=this['editor']['config']['get']('collaboration.channelId'),_0x2be760=await _0x3d32ea['getRevision']({'channelId':_0x529e47,'revisionId':_0x1e7507['id']});_0x1e7507['diffData']=_0x2be760['diffData'];}['getRevisionDocumentData'](_0x58c16e){const _0x4ed2fd={};for(const _0x2afe7e in _0x58c16e['diffData']){if(_0x58c16e['diffData'][_0x2afe7e]['attachChange']&&!_0x58c16e['diffData'][_0x2afe7e]['attachChange']['isAttached'])continue;const _0x1e2c04=this['_removeRevisionMarkers'](JSON['parse'](_0x58c16e['diffData'][_0x2afe7e]['insertions'])),_0x165e06=this['editor']['editing']['view']['document'],_0x5f2a52=new _0x1674fe(_0x165e06,_0x1e2c04['map'](_0x9ac752=>this['_getViewFromDiffObj'](_0x9ac752,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x4ed2fd[_0x2afe7e]=this['editor']['data']['processor']['toData'](_0x5f2a52),this['editor']['data']['processor']['useFillerType']('default');}return _0x4ed2fd;}['getRevisionRootsAttributes'](_0x24ad33){const _0x2e8d0c={};for(const _0x54fb12 in _0x24ad33['diffData'])_0x24ad33['diffData'][_0x54fb12]['attachChange']&&!_0x24ad33['diffData'][_0x54fb12]['attachChange']['isAttached']||(_0x2e8d0c[_0x54fb12]=_0x24ad33['diffData'][_0x54fb12]['attributesAfter']||{});return _0x2e8d0c;}['_getTypeCharForViewElement'](_0x30dcec){return this['_viewClassToTypeChar']['get'](_0x30dcec['constructor']);}['_getViewFromDiffObj'](_0x502d5a,_0x2f94f0){const _0x3e7748=this['editor']['editing']['view']['document'];if('string'==typeof _0x502d5a)return new _0x186cae(_0x3e7748,_0x502d5a);{let _0x1e9f46,_0xb411a8;_0xb411a8='u'==_0x502d5a['type']||'r'==_0x502d5a['type']?[]:_0x502d5a['children']['map'](_0x301fda=>this['_getViewFromDiffObj'](_0x301fda,_0x2f94f0));const _0x4d4e26=this['_typeCharToViewClass']['get'](_0x502d5a['type'])||_0x1c8e6e,_0x4e52d4=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x1e9f46=new _0x4d4e26(_0x3e7748,_0x502d5a['name'],_0x502d5a['attributes'],_0xb411a8),'u'==_0x502d5a['type']&&_0x502d5a['children'][0x0]){const _0x580eb8=_0x502d5a['children'][0x0];if(_0x1e9f46['render']=function(_0x21acb2){const _0x3191aa=_0x21acb2['createElement']('div');return _0x3191aa['innerHTML']=_0x580eb8,_0x3191aa['childNodes'][0x0];},_0x2f94f0){const _0x710539=new _0x1674fe(_0x3e7748);_0x710539['_appendChild'](_0x1e9f46);const _0x21bd22=Array['from'](_0x4e52d4['viewChildrenToDom'](_0x710539,{'bind':!0x1})),_0x337a75=_0x4e52d4['domDocument']['createElement']('div');_0x337a75['append'](..._0x21bd22),_0x1e9f46=Array['from'](_0x4e52d4['domChildrenToView'](_0x337a75))[0x0];}}else{if('r'==_0x502d5a['type']&&_0x502d5a['children'][0x0]){const _0x53b3d3=_0x502d5a['children'][0x0];if(_0x1e9f46['render']=function(_0x5da9ba){_0x5da9ba['innerHTML']=_0x53b3d3;},_0x2f94f0){const _0x3ff8ac=new _0x1674fe(_0x3e7748);_0x3ff8ac['_appendChild'](_0x1e9f46);const _0x422cbe=Array['from'](_0x4e52d4['viewChildrenToDom'](_0x3ff8ac,{'bind':!0x1})),_0x7b198e=_0x4e52d4['domDocument']['createElement']('div');_0x7b198e['append'](..._0x422cbe);const _0x4b673d=Array['from'](_0x4e52d4['domChildrenToView'](_0x7b198e));_0x4b673d['length']>0x1?_0x1e9f46['_appendChild'](_0x4b673d):_0x1e9f46=_0x4b673d[0x0];}}}if(_0x502d5a['customProperties']){for(const [_0x5a110b,_0x10fb81]of _0x502d5a['customProperties'])_0x1e9f46['_setCustomProperty'](_0x5a110b,_0x10fb81);}const _0x3bcc40=void 0x0===_0x502d5a['fillerOffset']?null:_0x502d5a['fillerOffset'];return null!==_0x3bcc40&&(_0x1e9f46['getFillerOffset']=()=>_0x3bcc40),_0x1e9f46;}}['_makeModelFromViewString'](_0x102d07){const _0x1733ee=JSON['parse'](_0x102d07),_0xde9262=this['editor']['editing']['view']['document'],_0x230c05=new _0x1674fe(_0xde9262,_0x1733ee['map'](_0x434364=>this['_getViewFromDiffObj'](_0x434364,!0x0)));return this['editor']['data']['toModel'](_0x230c05);}['_removeRevisionMarkers'](_0x5ba964){return(_0x5ba964=_0x5ba964['filter'](_0x48a5f6=>!_0x48a5f6['name']||'revision-start'!==_0x48a5f6['name']&&'revision-end'!==_0x48a5f6['name']))['forEach'](_0x2d432e=>{'string'!=typeof _0x2d432e&&(_0x2d432e['children']=this['_removeRevisionMarkers'](_0x2d432e['children']),_0x2d432e['attributes']=_0x2d432e['attributes']['filter'](_0x4f8a44=>!_0x4f8a44[0x0]['startsWith']('data-revision-')));}),_0x5ba964;}}function g(_0x4aa791,_0x56ba27,_0xea67f6){const t=_0x4aa791['t'];switch(_0x56ba27){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'},_0xea67f6);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0xea67f6);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 _0x211636{['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[_0x50a466,I,V,_0x16f3f9];}constructor(_0x160df4){super(_0x160df4),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 _0x2a18ec=_0x2135da();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x2a18ec},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 _0x212096=this['repository']['getRevision'](0x0),_0x513425=_0x212096&&null===_0x212096['creator']?_0x212096:null;if(this['_continueCurrentRevision']=!!_0x513425&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0xe8554a=this['_source']['getCurrentRevisionId'](),_0x347860=this['repository']['getRevision'](_0xe8554a);if(_0x347860)this['_startingVersion']=_0x347860['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x1614a4=this['_source']['history']['_operations']['find'](_0x8f0def=>!_0x8f0def['_isInit']),_0xe0097f=_0x1614a4?_0x1614a4['baseVersion']:this['_source']['history']['version'];_0x212096?(_0x212096['toVersion']<_0xe0097f&&_0x212096['_update']({'toVersion':_0xe0097f}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x513425['id'],this['_startingVersion']=_0x513425['fromVersion']):(this['_startingVersion']=_0x212096['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0xe0097f,this['_continueCurrentRevision']=!0x1);}}else _0x513425&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x513425['toVersion'],this['editor']['model']['document']['history']['version']),_0x513425['fromVersion']===_0x513425['toVersion']?(0x0!==_0x513425['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x513425['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x513425['id'],this['_startingVersion']=_0x513425['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',_0x41b2da=>!_0x41b2da),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xbf2fb7=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1c8b3c;for(const _0x3249ac in _0xbf2fb7){const _0x272a89=_0x3249ac,_0x37f95f=_0xbf2fb7[_0x272a89];if('revisionHistoryLicenseKeyValid'==_0x37f95f||'revisionHistoryLicenseKeyInvalid'==_0x37f95f||'revisionHistoryLicenseKeyExpired'==_0x37f95f||'revisionHistoryLicenseKeyDomainLimit'==_0x37f95f||'revisionHistoryLicenseKeyNotAllowed'==_0x37f95f||'revisionHistoryLicenseKeyEvaluationLimit'==_0x37f95f||'revisionHistoryLicenseKeyTrialLimit'==_0x37f95f||'revisionHistoryLicenseKeyUsageLimit'==_0x37f95f){delete _0xbf2fb7[_0x272a89],_0x1c8b3c=_0x37f95f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x1c8b3c&&_0xbf2fb7['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x1c8b3c&&_0xbf2fb7['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x1c8b3c&&_0xbf2fb7['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x1c8b3c&&_0xbf2fb7['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x1c8b3c&&_0xbf2fb7['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x1c8b3c&&_0xbf2fb7['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x1c8b3c&&_0xbf2fb7['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x142869=this['repository']['getRevision'](0x0),_0x1aff82=await this['getRevisionDocumentData'](_0x142869),_0x2e402d=await this['getRevisionRootsAttributes'](_0x142869);this['_replaceEditorDataWithRevisionData'](_0x1aff82,_0x2e402d);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x458ed9){this['_source']=_0x458ed9;}async['update'](){const _0x4146b5=await this['_source']['getLatestVersion']();if(_0x4146b5>this['currentRevision']['toVersion']){await this['_loadState']();const _0x21025b=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x4146b5});_0x21025b['authors']=_0x21025b['authorsIds']['map'](_0x440bb3=>this['editor']['plugins']['get']('Users')['getUser'](_0x440bb3)),this['currentRevision']['_update'](_0x21025b);}}async['saveRevision'](_0x5f4ed9={},_0x23aa23=null){const _0x1c330a=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x23aa23>this['currentRevision']['toVersion']&&(_0x23aa23=null),null===_0x23aa23&&(_0x23aa23=await this['_source']['getLatestVersion']());const _0xc089cb=this['_getFromVersion'](_0x23aa23),_0x42fef8=this['buildRevisionData']({'from':_0xc089cb,'to':_0x23aa23});if(this['currentRevision']['toVersion']<_0x23aa23){const _0x1a450b=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x23aa23,'to':_0x23aa23});_0x1a450b['authors']=[],_0x1a450b['authorsIds']=[],_0x1a450b['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x1a450b,!0x0),delete _0x1a450b['authors'],_0x1c330a['push'](_0x1a450b);}_0x5f4ed9['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x5f4ed9['name']=_0x5f4ed9['name']||null,_0x5f4ed9['id']=_0x5f4ed9['id']||_0x2135da(),_0x5f4ed9={..._0x5f4ed9,..._0x42fef8};const _0x3e2878=this['addRevisionData'](_0x5f4ed9);_0x1c330a['push'](_0x5f4ed9);const _0x102583=this['repository']['getIndex'](_0x3e2878);if(0x0!==_0x102583){const _0x2a993b=this['repository']['getRevision'](_0x102583-0x1);if(_0x2a993b['fromVersion']!==_0x23aa23){const _0x3ecd86=this['_revisionDataBuilder']['getData'](_0x23aa23,_0x2a993b['toVersion']),_0x4e6e83={'id':_0x2a993b['id'],'diffData':_0x3ecd86['diffData'],'authorsIds':_0x3ecd86['authorsIds'],'authors':_0x3ecd86['authorsIds']['map'](_0x2d3d48=>this['editor']['plugins']['get']('Users')['getUser'](_0x2d3d48)),'fromVersion':_0x23aa23};_0x2a993b===this['currentRevision']&&(_0x4e6e83['createdAt']=new Date(_0x5f4ed9['createdAt']['getTime']()+0xa)),_0x2a993b['_update'](_0x4e6e83,!0x0),delete _0x4e6e83['authors'],_0x1c330a['push'](_0x4e6e83);}}if(this['adapter']){for(const _0xd7d367 of _0x1c330a)this['_bufferUpdate'](_0xd7d367['id'],_0xd7d367,!0x0);this['sendBufferedUpdates']();}return _0x3e2878;}['addRevisionData'](_0x35ab2c){const _0x4f95a4=this['repository']['createRevision'](_0x35ab2c);return this['adapter']&&_0x4f95a4['on']('_update',(_0x2c1aad,_0x41ee15,_0x1dfb93)=>{_0x1dfb93||(this['_bufferUpdate'](_0x41ee15['id'],_0x41ee15,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x4f95a4,this['_findInsertionIndex'](_0x4f95a4)),_0x4f95a4;}async['getRevisionDocumentData'](_0x1e244f){return await this['_utils']['loadRevisionData'](_0x1e244f,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x1e244f);}async['getRevisionRootsAttributes'](_0x11f618){return await this['_utils']['loadRevisionData'](_0x11f618,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x11f618);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x47d6e5=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0xce11ef=0x0;_0xce11ef<_0x47d6e5['length'];_0xce11ef++){const _0x19c917=_0x47d6e5[_0xce11ef];let _0x2149bc=!0x1;for(const _0x17a690 of Object['keys'](_0x19c917))void 0x0===_0x19c917[_0x17a690]?delete _0x19c917[_0x17a690]:'id'!==_0x17a690&&(_0x2149bc=!0x0);_0x2149bc||(_0x47d6e5[_0xce11ef]=null);}if(_0x47d6e5=_0x47d6e5['filter'](_0x4d70bb=>null!==_0x4d70bb),!_0x47d6e5['length'])return;for(let _0x43e97f=0x0;_0x43e97f<_0x47d6e5['length'];_0x43e97f++){const _0xbb7eaf=_0x47d6e5[_0x43e97f];void 0x0!==_0xbb7eaf['fromVersion']&&void 0x0===_0xbb7eaf['toVersion']&&(_0xbb7eaf['toVersion']=this['repository']['getRevision'](_0xbb7eaf['id'])['toVersion']),void 0x0!==_0xbb7eaf['toVersion']&&void 0x0===_0xbb7eaf['fromVersion']&&(_0xbb7eaf['fromVersion']=this['repository']['getRevision'](_0xbb7eaf['id'])['fromVersion']);}const _0x4841fc=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x47d6e5,_0x4841fc)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x4e7968=>{if(_0x4e7968){for(const _0x20b0ab of _0x4e7968)this['setRevisionData']({'id':_0x20b0ab['id'],'createdAt':_0x20b0ab['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0xc96de3=null,from:_0x4e7e72=null,to:_0x38ab82=null}){_0x4e7e72=null!==_0x4e7e72?_0x4e7e72:_0xc96de3['fromVersion'],_0x38ab82=null!==_0x38ab82?_0x38ab82:_0xc96de3['toVersion'];const _0x211962=this['_revisionDataBuilder']['getData'](_0x4e7e72,_0x38ab82),_0x3ce3c9={'diffData':_0x211962['diffData'],'authorsIds':_0x211962['authorsIds'],'fromVersion':_0x4e7e72,'toVersion':_0x38ab82};if(!_0xc96de3||_0x38ab82!==_0xc96de3['toVersion']){const _0x5be9ab=_0x38ab82-0x1,_0x13a106=this['_source']['history']['getOperation'](_0x5be9ab);_0x3ce3c9['createdAt']=_0x13a106&&_0x13a106['createdAt']||new Date();}if(this['_loadedStateData']&&_0x4e7e72===this['_loadedStateData']['fromVersion']){for(const _0x1a554e of this['_loadedStateData']['authors'])_0x3ce3c9['authorsIds']['includes'](_0x1a554e['id'])||_0x3ce3c9['authorsIds']['push'](_0x1a554e['id']);}return _0x3ce3c9;}['_bufferUpdate'](_0x2c60fc,_0x1d1f80,_0x1f0306){if(this['_bufferedUpdates']['has'](_0x2c60fc)){const _0x159792=this['_bufferedUpdates']['get'](_0x2c60fc);_0x1d1f80=_0x1f0306?{..._0x159792,..._0x1d1f80}:{..._0x1d1f80,..._0x159792};}this['_bufferedUpdates']['set'](_0x2c60fc,_0x1d1f80);}['setRevisionData'](_0x1da630){const _0x57a472=this['repository']['getRevision'](_0x1da630['id']);if(_0x1da630['createdAt']&&(_0x1da630['createdAt']=new Date(_0x1da630['createdAt'])),_0x1da630['authorsIds']){const _0x4fd4b4=this['editor']['plugins']['get']('Users');_0x1da630['authors']=_0x1da630['authorsIds']['map'](_0x1fe686=>_0x4fd4b4['getUser'](_0x1fe686));}_0x57a472['_update'](_0x1da630,!0x0);}['_createInitialRevision'](_0x161292){const _0x376f2d=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x376f2d)this['_initialRevisionId']=_0x376f2d['id'];else{const _0x373e06=!this['editor']['model']['document']['roots']['find'](_0x4dcb26=>this['editor']['model']['hasContent'](_0x4dcb26)),_0x34706c=this['editor']['plugins']['get']('Users')['me']['id'],_0x122896=g(this['editor']['locale'],_0x373e06?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x161292,'to':_0x161292,'id':this['_initialRevisionId'],'name':_0x122896,'creatorId':_0x34706c});}}['_createCurrentRevision'](_0x47df9b){const _0x3e4b13=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x3e4b13),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x47df9b,'to':_0x47df9b,'id':_0x3e4b13,'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'](_0x468761,_0x50a65a){let _0x3554ca=this['editor']['config']['get']('initialData'),_0x13c684=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x3554ca){_0x3554ca={};for(const _0x3f3118 of this['editor']['model']['document']['getRootNames']())_0x3554ca[_0x3f3118]='';}if('string'==typeof _0x3554ca&&(_0x3554ca={'main':_0x3554ca}),void 0x0===_0x13c684){_0x13c684={};for(const _0x1658ea of this['editor']['model']['document']['getRootNames']())_0x13c684[_0x1658ea]={};}let _0x117861=!0x1;const _0x36ca2b=Object['keys'](_0x3554ca),_0x6255c5=Object['keys'](_0x468761);for(const _0x28d071 of _0x36ca2b){if(_0x3554ca[_0x28d071]!==_0x468761[_0x28d071]&&''!==_0x3554ca[_0x28d071]['trim']()){_0x117861=!0x0;break;}if(!_0x310225(_0x13c684[_0x28d071],_0x50a65a[_0x28d071])&&Object['keys'](_0x13c684[_0x28d071])['length']>0x0){_0x117861=!0x0;break;}}_0x117861||(_0x117861=_0x6255c5['some'](_0x2aa5e7=>!this['editor']['model']['document']['getRoot'](_0x2aa5e7))),_0x117861&&_0x307a60('editor-initial-data-replaced-with-revision-data',{'editorData':_0x3554ca,'editorRootsAttributes':_0x13c684,'revisionData':_0x468761,'revisionRootsAttributes':_0x50a65a}),this['editor']['config']['set']('initialData',_0x468761),this['editor']['config']['set']('rootsAttributes',_0x50a65a);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x7c976b=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x7c976b['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x48eff7){const _0x102b91=this['repository']['getRevisions']();_0x102b91['reverse']();let _0x4e9bb7=0x0;for(;_0x4e9bb7<_0x102b91['length'];){const _0x108fd5=_0x102b91[_0x4e9bb7];if(_0x108fd5===this['currentRevision']){_0x4e9bb7++;continue;}if(_0x108fd5['id']===this['_initialRevisionId'])break;const _0x77e0dd=_0x48eff7['toVersion']-_0x108fd5['toVersion']||_0x48eff7['fromVersion']-_0x108fd5['fromVersion'];if(_0x77e0dd>0x0)break;if(_0x77e0dd<0x0)_0x4e9bb7++;else{if(!_0x48eff7['creator']&&_0x108fd5['creator'])break;if(_0x108fd5['creator']||!_0x48eff7['creator']){if(_0x48eff7['createdAt']>_0x108fd5['createdAt'])break;_0x4e9bb7++;}else _0x4e9bb7++;}}return _0x4e9bb7;}['_getFromVersion'](_0x5b0196){const _0x326961=this['repository']['getRevisions']();_0x326961['reverse'](),_0x326961['shift']();const _0x45772c=_0x326961['find'](_0x28948b=>_0x28948b['toVersion']<=_0x5b0196)['toVersion'];return _0x45772c<this['_startingVersion']?this['_startingVersion']:_0x45772c;}['_makeRevision']({name:_0x454323,from:_0xca94c7,to:_0x15de47,creatorId:_0x33d020,id:_0x410128}){const _0xd34021=this['buildRevisionData']({'from':_0xca94c7,'to':_0x15de47});_0xd34021['name']=_0x454323,_0xd34021['creatorId']=_0x33d020,_0xd34021['id']=_0x410128;const _0x469046=this['addRevisionData'](_0xd34021);return this['adapter']&&this['_bufferUpdate'](_0xd34021['id'],_0xd34021,!0x0),_0x469046;}['_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(_0x341682){this['editor']=_0x341682,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'](_0xc14dbe){this['source']=_0xc14dbe;const _0x4680ff=new Map(),_0x5e7780=new Map(),_0x5398d2=this['editor']['model']['document']['roots']['map'](_0x53aba9=>_0x53aba9['rootName']);for(const _0x4f7209 of _0x5398d2){const _0x1acaaf=this['editor']['model']['document']['getRoot'](_0x4f7209),_0x1b5dfb=N(_0x1acaaf);_0x4680ff['set'](_0x4f7209,_0x1b5dfb),_0x5e7780['set'](_0x4f7209,Object['fromEntries'](_0x1acaaf['getAttributes']()));}const _0x5266ce=Array['from'](this['editor']['model']['markers'])['map'](_0x414d90=>[_0x414d90['name'],_0x414d90['getRange']()]),_0x4264c0=this['source']['version'];this['_saveMetaData'](_0x4264c0,_0x4680ff,_0x5266ce,_0x5e7780),this['_startingRevisionId']=this['_revisionId'];const _0x20f7a2=new Map(),_0x189970=new Map();for(const _0x267a7a of _0x5398d2){const _0x4f7715=P(_0x267a7a);_0x20f7a2['set'](_0x267a7a,_0x4f7715),_0x189970['set'](_0x267a7a,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x20f7a2,[],_0x189970);}['getData'](_0x450614,_0x39fdc3){if(this['_lastFrom']===_0x450614&&this['_lastTo']<=_0x39fdc3)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x39fdc3,!0x0);else{if(!this['_savedMetaData']['has'](_0x450614)){const _0x509b15=this['_getPreviousFrom'](_0x450614);this['_calculateMetaData'](_0x509b15,_0x450614,!0x1);}this['_calculateMetaData'](_0x450614,_0x39fdc3,!0x0);}return this['_lastFrom']=_0x450614,this['_lastTo']=_0x39fdc3,this['_getState']();}['loadState'](_0x1b6a25){const _0x3537b1=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x1b6a25['fromVersion'],this['_lastTo']=_0x1b6a25['toVersion'];for(const _0x819f8f in _0x1b6a25['diffData']){const _0x30de68=_0x1b6a25['diffData'][_0x819f8f]['attachChange'],_0x486adb=_0xcb7214(_0x1b6a25['diffData'][_0x819f8f]['attributesBefore'])||{},_0x4eee91=_0x3537b1['_makeModelFromViewString'](_0x1b6a25['diffData'][_0x819f8f]['deletions']);_0x4eee91['rootName']=_0x819f8f,_0x4eee91['_isAttached']=!_0x30de68||!_0x30de68['isAttached'],_0x4eee91['isAttached']=()=>_0x4eee91['_isAttached'],this['_baseRoots']['set'](_0x819f8f,_0x4eee91),this['_baseRootsAttributes']['set'](_0x819f8f,_0x486adb),_0x30de68&&this['_touchedRoots']['set'](_0x819f8f,_0x30de68);const _0x2409d7=this['_makeIdsRoot'](_0x4eee91);this['_baseIdsRoots']['set'](_0x819f8f,_0x2409d7);for(const [_0x31a02b,_0xc0a55c]of _0x4eee91['markers']){if(!_0x31a02b['startsWith']('revision:'))continue;const _0x541e5b=_0x31a02b['split'](':')[0x2];for(const _0x3c6e0f of _0xc0a55c['getWalker']({'singleCharacters':!0x0})){const _0x2a7d42=this['_getVidAttributeName'](_0x3c6e0f),_0x4067f3='elementEnd'==_0x3c6e0f['type']?_0x3c6e0f['previousPosition']['path']['slice'](0x0,-0x1):_0x3c6e0f['previousPosition']['path'],_0x204fcb=_0x2409d7['getNodeByPath'](_0x4067f3)['getAttribute'](_0x2a7d42);this['_touched']['set'](_0x204fcb,{'userId':_0x541e5b});}}}this['_startingRevisionId']=this['_revisionId'];const _0x562d19=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x26bf3e=>!this['_touched']['has'](_0x26bf3e));let _0x39d375=0x0;const _0x5f55cf=new Map();for(const _0x3f1e93 in _0x1b6a25['diffData']){const _0x3b16b8=_0x1b6a25['diffData'][_0x3f1e93]['attachChange'],_0x3002cf=_0xcb7214(_0x1b6a25['diffData'][_0x3f1e93]['attributesAfter'])||{},_0x58946c=_0x3537b1['_makeModelFromViewString'](_0x1b6a25['diffData'][_0x3f1e93]['insertions']);_0x58946c['rootName']=_0x3f1e93,_0x58946c['_isAttached']=!_0x3b16b8||_0x3b16b8['isAttached'],_0x58946c['isAttached']=()=>_0x58946c['_isAttached'],this['_diffRoots']['set'](_0x3f1e93,_0x58946c),this['_diffRootsAttributes']['set'](_0x3f1e93,_0x3002cf);const _0x53154d=this['_makeIdsRoot'](_0x58946c,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x3f1e93,_0x53154d),_0x5f55cf['set'](_0x3f1e93,_0x58946c['isAttached']()?_0x3002cf:{});for(const [_0x3a30c3,_0x2ffd7e]of _0x58946c['markers']){if(!_0x3a30c3['startsWith']('revision:'))continue;const _0x4aa790=_0x3a30c3['split'](':')[0x2];for(const _0xd60f02 of _0x2ffd7e['getWalker']({'singleCharacters':!0x0})){const _0x50db4c=this['_getVidAttributeName'](_0xd60f02),_0x3f4974=this['_revisionId']++,_0x28dd4d='elementEnd'==_0xd60f02['type']?_0xd60f02['previousPosition']['path']['slice'](0x0,-0x1):_0xd60f02['previousPosition']['path'];_0x53154d['getNodeByPath'](_0x28dd4d)['_setAttribute'](_0x50db4c,_0x3f4974),this['_touched']['set'](_0x3f4974,{'userId':_0x4aa790});}}for(const _0x5e50cc of this['editor']['model']['createRangeIn'](_0x58946c)['getWalker']({'singleCharacters':!0x0})){const _0xf31fc7=this['_getVidAttributeName'](_0x5e50cc),_0x5a07e7='elementEnd'==_0x5e50cc['type']?_0x5e50cc['previousPosition']['path']['slice'](0x0,-0x1):_0x5e50cc['previousPosition']['path'],_0x2404fe=_0x53154d['getNodeByPath'](_0x5a07e7);_0x2404fe['getAttribute'](_0xf31fc7)>0x0||_0x2404fe['_setAttribute'](_0xf31fc7,_0x562d19[_0x39d375++]);}for(const [_0x378814,_0x6dbee3]of _0x58946c['markers'])_0x378814['startsWith']('revision:')||this['_markers']['set'](_0x378814,_0x6dbee3);}const _0xdc6ded=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0xdc6ded),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0xdc6ded,0x1));const _0x5dc672=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x5dc672),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x5dc672,0x1));const _0x16d5eb=Array['from'](this['_diffRoots'])['map'](([_0x59a466,_0x102081])=>[_0x59a466,N(_0x102081)]);this['_saveMetaData'](this['_lastTo'],_0x16d5eb,this['_markers'],_0x5f55cf);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x4a23aa,_0x34f8df,_0x196c32,_0x19ce11){const _0x1e895d=new Map(_0x34f8df),_0x2553a8=new Map(_0xcb7214(_0x19ce11)),_0x18cc08=new Map();for(const [_0x2c1319,_0x2fe847]of _0x196c32)_0x18cc08['set'](_0x2c1319,{'start':_0x2fe847['start']['clone'](),'end':_0x2fe847['end']['clone'](),'rootName':_0x2fe847['root']['rootName']});this['_savedMetaData']['set'](_0x4a23aa,{'roots':_0x1e895d,'markers':_0x18cc08,'rootsAttributes':_0x2553a8});}['_removeMetaData'](_0x5e70e1){this['_savedMetaData']['delete'](_0x5e70e1);}['_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'](_0x2c03e2,_0x4dabb8=null){let _0x56f45e=null;_0x2c03e2['is']('documentFragment')||(_0x56f45e=new ut(_0x2c03e2['name'],{'vid_start':null===_0x4dabb8?this['_revisionId']++:_0x4dabb8++}));const _0xf79e10=[];for(const _0x13c01e of _0x2c03e2['getChildren']())if(_0x13c01e['is']('element')){_0xf79e10['push'](this['_makeIdsRoot'](_0x13c01e,_0x4dabb8));const _0x3b16a7=_0xf79e10[_0xf79e10['length']-0x1];null!==_0x4dabb8&&(_0x4dabb8=_0x3b16a7['is']('element','$text')?_0x3b16a7['getAttribute']('vid')+0x1:_0x3b16a7['getAttribute']('vid_end')+0x1);}else{for(let _0x50aade=0x0;_0x50aade<_0x13c01e['offsetSize'];_0x50aade++)_0xf79e10['push'](new ut('$text',{'vid':null===_0x4dabb8?this['_revisionId']++:_0x4dabb8++}));}if(_0x2c03e2['is']('documentFragment')){const _0x265282=P(_0x2c03e2['rootName']);return _0x265282['_insertChild'](0x0,_0xf79e10),_0x265282;}return _0x56f45e['_setAttribute']('vid_end',null===_0x4dabb8?this['_revisionId']++:_0x4dabb8++),_0x56f45e['_insertChild'](0x0,_0xf79e10),_0x56f45e;}['_calculateMetaData'](_0x33e63e,_0x2422c6,_0x3bbc87){this['_reset']();const {roots:_0x2c271c,markers:_0x2e0daa,rootsAttributes:_0x5e9ec6}=this['_savedMetaData']['get'](_0x33e63e);this['_baseRoots']=new Map(_0x2c271c),this['_baseRootsAttributes']=new Map(_0xcb7214(_0x5e9ec6));for(const [_0x3fb23b,_0x5701d2]of this['_baseRoots'])if('$graveyard'!==_0x3fb23b&&(this['_diffRoots']['set'](_0x3fb23b,N(_0x5701d2)),this['_diffRootsAttributes']=new Map(_0xcb7214(_0x5e9ec6)),_0x3bbc87)){const _0xfec32e=this['_revisionId'];this['_idsRoots']['set'](_0x3fb23b,this['_makeIdsRoot'](_0x5701d2)),this['_baseIdsRoots']['set'](_0x3fb23b,this['_makeIdsRoot'](_0x5701d2,_0xfec32e));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x3bbc87&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x5a0399,_0x49675a]of _0x2e0daa){const _0x4c5d57=this['_baseRoots']['get'](_0x49675a['rootName']),_0x3f75c0=this['_diffRoots']['get'](_0x49675a['rootName']),_0x595982=new lt(this['_fixPosition'](_0x49675a['start'],_0x4c5d57),this['_fixPosition'](_0x49675a['end'],_0x4c5d57)),_0x27914e=this['_fixRange'](_0x595982,_0x3f75c0);_0x4c5d57['markers']['set'](_0x5a0399,_0x595982),this['_markers']['set'](_0x5a0399,_0x27914e);}this['_applyOperations'](_0x33e63e,_0x2422c6,_0x3bbc87);}['_applyOperations'](_0x1fc4c7,_0x36a4ca,_0x3f9262){for(const _0x1b83c7 of this['source']['getOperations'](_0x1fc4c7,_0x36a4ca))this['_handleOperation'](_0x1b83c7,_0x3f9262);for(const _0x1fbfb0 of this['_diffRoots']['values']())_0x1fbfb0['markers']['clear']();for(const [_0x1212e6,_0x56721c]of this['_markers']){this['_diffRoots']['get'](_0x56721c['root']['rootName'])['markers']['set'](_0x1212e6,_0x56721c['clone']());}const _0x54f2c6=new Map(),_0x28dfa2=new Map();for(const [_0x4d508e,_0xaefff2]of this['_diffRoots'])_0x54f2c6['set'](_0x4d508e,N(_0xaefff2)),_0x28dfa2['set'](_0x4d508e,this['_diffRootsAttributes']['get'](_0x4d508e));this['_saveMetaData'](_0x36a4ca,_0x54f2c6,this['_markers'],_0x28dfa2);}['_getPreviousFrom'](_0x3def6e){const _0x56f43b=Array['from'](this['_savedMetaData']['keys']());_0x56f43b['sort']((_0x4b2a34,_0x2510ca)=>_0x4b2a34-_0x2510ca),_0x56f43b['reverse']();for(const _0x172893 of _0x56f43b)if(_0x172893<_0x3def6e)return _0x172893;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x55f39b,_0x4dae8c){const _0x2ff500=Array['from'](_0x4dae8c['markers'])['map'](([_0x48e27b,_0x13e39a])=>[_0x48e27b,this['_fixRange'](_0x13e39a,_0x55f39b)]);_0x55f39b['markers']=new Map(_0x2ff500);}['_transformMarkers'](_0x8f6c43){for(const _0x40689a of this['_markers']['values']()){const _0x5b97e7=_0x40689a['getTransformedByOperation'](_0x8f6c43),_0x38e5dc=lt['_createFromRanges'](_0x5b97e7);_0x40689a['start']=_0x38e5dc['start'],_0x40689a['end']=_0x38e5dc['end'];}}['_handleOperation'](_0x50ea77,_0x4948ec){if('addRoot'!=_0x50ea77['type']&&'detachRoot'!=_0x50ea77['type']){if('insert'==_0x50ea77['type']){const _0x4ddb14=_0x50ea77['position']['root']['rootName'];this['_diffRoots']['has'](_0x4ddb14)||(this['_diffRoots']['set'](_0x4ddb14,P(_0x4ddb14,!0x0)),this['_diffRootsAttributes']['set'](_0x4ddb14,{}),_0x4948ec&&this['_idsRoots']['set'](_0x4ddb14,P(_0x4ddb14,!0x0)));}else{if('addRootAttribute'==_0x50ea77['type']||'removeRootAttribute'==_0x50ea77['type']||'changeRootAttribute'==_0x50ea77['type'])return void this['_handleRootAttributeOperation'](_0x50ea77);'marker'==_0x50ea77['type']&&this['_handleMarkerOperation'](_0x50ea77);}if('marker'!==_0x50ea77['type']){const _0x29dc53=this['_cloneOperation'](_0x50ea77,this['_diffRoots']);_0x29dc53['_execute'](),this['_transformMarkers'](_0x29dc53);}if(_0x4948ec)switch(_0x50ea77['type']){case'insert':this['_handleInsertOperation'](_0x50ea77);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x50ea77);break;case'merge':this['_handleMergeOperation'](_0x50ea77);break;case'split':this['_handleSplitOperation'](_0x50ea77);}}else this['_handleRootOperation'](_0x50ea77,_0x4948ec);}['_cloneOperation'](_0x5cab26,_0x155abd){const _0xf339dd=_0x5cab26['clone']();return _0xf339dd['_authorId']=_0x5cab26['_authorId'],this['_fixOperation'](_0xf339dd,_0x155abd),_0xf339dd;}['_getBaseVids'](_0x423803){return _0x423803['map'](_0x2c4c75=>{const _0x315490=this['_getVidAttributeName'](_0x2c4c75);return Number(_0x2c4c75['item']['getAttribute'](_0x315490));});}['_generateTape'](_0x269817,_0x1a62f2){if(_0x269817['is']('element','$text'))_0x1a62f2['push']({'item':_0x269817,'type':'text'});else{_0x269817['is']('element')&&_0x1a62f2['push']({'item':_0x269817,'type':'elementStart'});for(const _0x14fc45 of _0x269817['getChildren']())this['_generateTape'](_0x14fc45,_0x1a62f2);_0x269817['is']('element')&&_0x1a62f2['push']({'item':_0x269817,'type':'elementEnd'});}return _0x1a62f2;}['_getState'](){const _0x30e9e9=new Map(this['_touched']),_0x573e4c=new Map(_0x30e9e9),_0x1c14c5=new Map(),_0x146576={'insertions':{},'deletions':{}},_0x186637={'insertions':{},'deletions':{}},_0x15de58=new Map(),_0x15e94c=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x15e94c['delete']('$graveyard');for(const _0x5394a8 of _0x15e94c){const _0x382c31=this['_diffRoots']['get'](_0x5394a8)||P(_0x5394a8,!0x1),_0x42ba8f=this['_baseRoots']['get'](_0x5394a8)||P(_0x5394a8,!0x1);_0x382c31['isAttached']()||_0x42ba8f['isAttached']()?(_0x146576['insertions'][_0x5394a8]=N(_0x382c31),_0x146576['deletions'][_0x5394a8]=N(_0x42ba8f),this['_copyMarkers'](_0x146576['deletions'][_0x5394a8],_0x42ba8f),this['_copyMarkers'](_0x146576['insertions'][_0x5394a8],_0x382c31),_0x186637['insertions'][_0x5394a8]=this['_generateTape'](this['_idsRoots']['get'](_0x5394a8),[]),_0x186637['deletions'][_0x5394a8]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x5394a8)||P(_0x5394a8,!0x1),[])):_0x15e94c['delete'](_0x5394a8);}for(const _0x4987b0 of _0x15e94c){const _0xa2565f=_0x186637['insertions'][_0x4987b0];for(const _0x447388 of _0xa2565f){const _0xc413b=this['_getVidAttributeName'](_0x447388),_0x2496dc=_0x447388['item']['getAttribute'](_0xc413b);_0x573e4c['delete'](_0x2496dc),_0x2496dc>=this['_startingRevisionId']&&_0x1c14c5['set'](_0x2496dc,_0x30e9e9['get'](_0x2496dc));}}for(const _0x583b04 of _0x15e94c){const _0x1ac630=_0x186637['insertions'][_0x583b04],_0x1d4ec9=this['_getBaseVids'](_0x186637['deletions'][_0x583b04]);let _0x1b5769=0x0;for(const _0x527897 of _0x1ac630){const _0xdbb2df=this['_getVidAttributeName'](_0x527897),_0x34bc28=_0x527897['item']['getAttribute'](_0xdbb2df);if(!_0x1c14c5['has'](_0x34bc28)&&!_0x15de58['has'](_0x34bc28)){if(_0x573e4c['has'](_0x34bc28))_0x1b5769++;else{if(_0x34bc28!=_0x1d4ec9[_0x1b5769]){const _0x179ec3=_0x30e9e9['get'](_0x34bc28)||_0x30e9e9['get'](_0x1d4ec9[_0x1b5769]);for(;_0x34bc28!=_0x1d4ec9[_0x1b5769];)_0x573e4c['has'](_0x1d4ec9[_0x1b5769])||(_0x15de58['set'](_0x1d4ec9[_0x1b5769],_0x179ec3),_0x30e9e9['set'](_0x1d4ec9[_0x1b5769],_0x179ec3)),_0x1b5769++;}_0x1b5769++;}}}}for(const _0x4ca009 of _0x15e94c){const _0x4d88b8=_0x186637['insertions'][_0x4ca009];for(const _0x200e1a of _0x4d88b8){const _0x41761c=this['_getVidAttributeName'](_0x200e1a),_0x1b6099=_0x200e1a['item']['getAttribute'](_0x41761c);if(_0x15de58['has'](_0x1b6099)){const _0x2b8ca8=_0x15de58['get'](_0x1b6099);_0x573e4c['has'](_0x1b6099)||_0x573e4c['set'](_0x1b6099,{..._0x2b8ca8}),_0x1c14c5['set'](_0x1b6099,{..._0x2b8ca8});}}}for(const _0x299c3f of _0x573e4c['keys']())_0x299c3f>=this['_startingRevisionId']&&_0x573e4c['delete'](_0x299c3f);const _0x2f8627=new Map();for(const _0x3f72c3 of _0x15e94c){let _0x31aaa6=_0x186637['insertions'][_0x3f72c3];for(const _0x4779c6 of _0x31aaa6)if(_0x4779c6['item']['is']('element','tableCell')){const _0x1daee7=this['_getVidAttributeName'](_0x4779c6),_0x2e8369=_0x4779c6['item']['getAttribute'](_0x1daee7);if(_0x1c14c5['has'](_0x2e8369)){const _0x21dcdc=_0x4779c6['item']['parent']['parent']['getAttribute']('vid_start'),_0x527098=_0x2f8627['get'](_0x21dcdc)||new Set();_0x527098['add'](_0x1c14c5['get'](_0x2e8369)['userId']),_0x2f8627['set'](_0x21dcdc,_0x527098);}}_0x31aaa6=_0x186637['deletions'][_0x3f72c3];for(const _0x3db786 of _0x31aaa6)if(_0x3db786['item']['is']('element','tableCell')){const _0x5a75a7=this['_getVidAttributeName'](_0x3db786),_0x14cf14=_0x3db786['item']['getAttribute'](_0x5a75a7);if(_0x573e4c['has'](_0x14cf14)){const _0x22b87e=_0x3db786['item']['parent']['parent']['getAttribute']('vid_start'),_0x261c2a=_0x2f8627['get'](_0x22b87e)||new Set();_0x261c2a['add'](_0x573e4c['get'](_0x14cf14)['userId']),_0x2f8627['set'](_0x22b87e,_0x261c2a);}}for(const _0x368ef6 of _0x2f8627['keys']())(_0x1c14c5['has'](_0x368ef6)||_0x573e4c['has'](_0x368ef6))&&_0x2f8627['delete'](_0x368ef6);}for(const _0x5ce1c4 of _0x15e94c){const _0xc23ab9=_0x186637['insertions'][_0x5ce1c4];let _0xf5718f=null,_0x280306=null;for(const _0x56143e of _0xc23ab9){const _0x429100=this['_getVidAttributeName'](_0x56143e),_0x2bcd93=_0x56143e['item']['getAttribute'](_0x429100),_0x4420fa=_0x2f8627['get'](_0x2bcd93);_0x4420fa&&'elementStart'==_0x56143e['type']&&(_0xf5718f=Array['from'](_0x4420fa)[0x0],_0x280306=_0x56143e['item']['getAttribute']('vid_end')),_0xf5718f&&(_0x573e4c['set'](_0x2bcd93,{'userId':_0xf5718f}),_0x1c14c5['set'](_0x2bcd93,{'userId':_0xf5718f})),_0x2bcd93==_0x280306&&(_0xf5718f=null,_0x280306=null);}}const _0x220da8={},_0x2933fc=new Set();for(const _0x2717e8 of _0x15e94c){const _0x28a61b=_0x146576['deletions'][_0x2717e8],_0x51b140=_0x146576['insertions'][_0x2717e8];for(const {userId:_0xeac05}of this['_touchedMarkers']['values']())null!==_0xeac05&&_0x2933fc['add'](_0xeac05);for(const {userId:_0x2207c1}of this['_touchedRoots']['values']())null!==_0x2207c1&&_0x2933fc['add'](_0x2207c1);this['_markChanges'](_0x51b140,_0x186637['insertions'][_0x2717e8],_0x1c14c5,'insertion',_0x2933fc),this['_markChanges'](_0x28a61b,_0x186637['deletions'][_0x2717e8],_0x573e4c,'deletion',_0x2933fc),_0x220da8[_0x2717e8]={'insertions':this['_prepareViewToSave'](_0x51b140),'deletions':this['_prepareViewToSave'](_0x28a61b),'attachChange':this['_touchedRoots']['get'](_0x2717e8)||null,'attributesBefore':_0xcb7214(this['_baseRootsAttributes']['get'](_0x2717e8))||{},'attributesAfter':_0xcb7214(this['_diffRootsAttributes']['get'](_0x2717e8))};}return{'diffData':_0x220da8,'authorsIds':Array['from'](_0x2933fc)};}['_processRootBeforeSave'](_0x46b11a){for(const [,_0x20390a]of _0x46b11a['markers']){const _0x45aa5d=_0x20390a['start']['getAncestors']()['filter'](_0xb604c4=>'tableCell'==_0xb604c4['name']);for(const _0x2279ab of _0x45aa5d)0x1==_0x2279ab['childCount']&&_0x2279ab['getChild'](0x0)['is']('element','paragraph')&&_0x2279ab['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x3e6ab1){this['_processRootBeforeSave'](_0x3e6ab1);const _0x5a8cda=this['editor']['data']['toView'](_0x3e6ab1,{}),_0x4952b4=Array['from'](_0x5a8cda['getChildren']())['map'](_0x3cae1b=>this['_getViewJson'](_0x3cae1b));return JSON['stringify'](_0x4952b4);}['_getViewJson'](_0x4d0bdd){if(_0x4d0bdd['is']('$text'))return _0x4d0bdd['data'];{const _0x3273ef=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x4c6702=_0x4d0bdd,_0x5149f7=this['editor']['data']['htmlProcessor']['domConverter'],_0x5cf790={'type':_0x3273ef['_getTypeCharForViewElement'](_0x4c6702),'name':_0x4c6702['name'],'attributes':Array['from'](_0x4c6702['getAttributes']()),'children':Array['from'](_0x4c6702['getChildren']())['map'](_0xf64700=>this['_getViewJson'](_0xf64700))};if(_0x4d0bdd['is']('uiElement')&&'$comment'!=_0x4d0bdd['name']){const _0x5074e6=_0x4d0bdd['render'](_0x5149f7['domDocument'],_0x5149f7);_0x5cf790['children']['push'](_0x5074e6['outerHTML']);}else{if(_0x4d0bdd['is']('rawElement')){const _0x12ef5f=_0x5149f7['domDocument']['createElement'](_0x4c6702['name']);_0x4d0bdd['render'](_0x12ef5f,_0x5149f7),_0x5cf790['children']['push'](_0x12ef5f['innerHTML']);}}const _0x1b64f4=Array['from'](_0x4c6702['getCustomProperties']());_0x1b64f4['length']>0x0&&(_0x5cf790['customProperties']=_0x1b64f4);const _0x97b2ef=_0x4c6702['getFillerOffset']();return null!==_0x97b2ef&&(_0x5cf790['fillerOffset']=_0x97b2ef),_0x5cf790;}}['_markChanges'](_0x206769,_0x303300,_0x3c016a,_0x21654a,_0x3eb579){let _0x25537a=null,_0x57aa36=null,_0x28d4bd=0x0;const _0x45185c=this['editor']['model'];for(let _0x324a8e=0x0;_0x324a8e<_0x303300['length'];_0x324a8e++){const _0x5057c8=this['_getVidAttributeName'](_0x303300[_0x324a8e]),_0x4e6d78=_0x303300[_0x324a8e]['item']['getAttribute'](_0x5057c8),_0x20cf08=_0x3c016a['get'](_0x4e6d78),_0xff7709=_0x324a8e==_0x303300['length']-0x1;(!_0x25537a&&_0x20cf08&&(_0x25537a=_0x20cf08,_0x57aa36=_0x303300[_0x324a8e]),_0x25537a&&(!_0x20cf08||_0x20cf08['userId']!=_0x25537a['userId']))&&(_0x571442(_0x20cf08,F(_0x57aa36,_0x206769,_0x45185c),F(_0x303300[_0x324a8e],_0x206769,_0x45185c)),_0x25537a=_0x20cf08||null,_0x57aa36=_0x20cf08?_0x303300[_0x324a8e]:null),_0x25537a&&_0xff7709&&_0x571442(_0x20cf08,F(_0x57aa36,_0x206769,_0x45185c),B(_0x303300[_0x324a8e],_0x206769,_0x45185c));}function _0x571442(_0x4f77c8,_0x1b6d6b,_0x1aa6da){const _0x52b825=_0x25537a['userId'],_0x4ab18d='revision:'+_0x21654a+':'+_0x52b825+':'+_0x28d4bd++,_0x4b2929=_0x45185c['createRange'](_0x1b6d6b,_0x1aa6da);_0x206769['markers']['set'](_0x4ab18d,_0x4b2929),null!==_0x52b825&&_0x3eb579['add'](_0x52b825);}}['_getVidAttributeName'](_0x3d9fc0){switch(_0x3d9fc0['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x4c83cc,_0x54396f){_0x4c83cc['baseVersion']=null;for(const _0x5c2781 in _0x4c83cc){const _0x32ff3f=_0x4c83cc[_0x5c2781];if(_0x32ff3f instanceof ft){const _0x12b7a0=_0x54396f['get'](_0x32ff3f['root']['rootName']);_0x4c83cc[_0x5c2781]=this['_fixPosition'](_0x32ff3f,_0x12b7a0);}if(_0x32ff3f instanceof lt){const _0xfcfeeb=_0x54396f['get'](_0x32ff3f['root']['rootName']);_0x4c83cc[_0x5c2781]=this['_fixRange'](_0x32ff3f,_0xfcfeeb);}'root'===_0x5c2781&&(_0x4c83cc['root']=_0x54396f['get'](_0x4c83cc['root']['rootName']));}}['_fixRange'](_0x49e0eb,_0x2545bb){return this['editor']['model']['createRange'](this['_fixPosition'](_0x49e0eb['start'],_0x2545bb),this['_fixPosition'](_0x49e0eb['end'],_0x2545bb));}['_fixPosition'](_0x22e706,_0x2e8eff){return this['editor']['model']['createPositionFromPath'](_0x2e8eff,_0x22e706['path'],_0x22e706['stickiness']);}['_handleInsertOperation'](_0xdc7af2){const _0x191913=this['_idsRoots']['get'](_0xdc7af2['position']['root']['rootName']),_0x2c07c2=this['_fixPosition'](_0xdc7af2['position'],_0x191913),_0xd2a6f4=null===_0xdc7af2['_authorId']?null:_0xdc7af2['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2367e9=_0x2c07c2['parent'],_0x6d154a=this['_revisionId'],_0x5e9e7b=[];for(const _0x24cfa8 of _0xdc7af2['nodes'])if(_0x24cfa8['is']('element'))_0x5e9e7b['push'](this['_makeIdsRoot'](_0x24cfa8));else{for(let _0x1beeeb=0x0;_0x1beeeb<_0x24cfa8['offsetSize'];_0x1beeeb++)_0x5e9e7b['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x4a7ff6=this['_revisionId'];for(let _0x5ad796=_0x6d154a;_0x5ad796<_0x4a7ff6;_0x5ad796++)this['_touched']['set'](_0x5ad796,{'userId':_0xd2a6f4});_0x2367e9['_insertChild'](_0x2c07c2['offset'],_0x5e9e7b);}['_handleMoveOperation'](_0x2123b2){(_0x2123b2=this['_cloneOperation'](_0x2123b2,this['_idsRoots']))['_execute']();const _0x43a802=null===_0x2123b2['_authorId']?null:_0x2123b2['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x303281=_0x2123b2['getMovedRangeStart'](),_0x37830e=_0x303281['parent'],_0x1bffe4=_0x303281['offset'];!function _0x1911b7(_0x12b89b,_0x87a9a2,_0x429d66,_0x522c6d){for(let _0x2219dd=_0x429d66;_0x2219dd<_0x522c6d;_0x2219dd++){const _0x51d137=_0x87a9a2['getChild'](_0x2219dd);_0x51d137['is']('element','$text')?_0x12b89b['set'](_0x51d137['getAttribute']('vid'),{'userId':_0x43a802}):(_0x12b89b['set'](_0x51d137['getAttribute']('vid_start'),{'userId':_0x43a802}),_0x1911b7(_0x12b89b,_0x51d137,0x0,_0x51d137['childCount']),_0x12b89b['set'](_0x51d137['getAttribute']('vid_end'),{'userId':_0x43a802}));}}(this['_touched'],_0x37830e,_0x1bffe4,_0x1bffe4+_0x2123b2['howMany']);}['_handleMergeOperation'](_0x1352ec){const _0x32481f=null===(_0x1352ec=this['_cloneOperation'](_0x1352ec,this['_idsRoots']))['_authorId']?null:_0x1352ec['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1172af=_0x1352ec['targetPosition']['parent'],_0x40f405=_0x1352ec['sourcePosition']['parent'],_0x31bab0=_0x1172af['getAttribute']('vid_end'),_0x4bea03=_0x40f405['getAttribute']('vid_start');_0x1172af['_setAttribute']('vid_end',_0x40f405['getAttribute']('vid_end')),_0x40f405['_setAttribute']('vid_end',_0x31bab0),this['_touched']['set'](_0x4bea03,{'userId':_0x32481f}),this['_touched']['set'](_0x31bab0,{'userId':_0x32481f}),_0x1352ec['_execute']();}['_handleSplitOperation'](_0x22a2c6){const _0x20dba0=null===(_0x22a2c6=this['_cloneOperation'](_0x22a2c6,this['_idsRoots']))['_authorId']?null:_0x22a2c6['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x41f0fd=_0x22a2c6['graveyardPosition'],_0x5e408f=_0x22a2c6['splitPosition']['parent'];_0x22a2c6['_execute']();const _0x5c94a0=_0x5e408f['getAttribute']('vid_end'),_0x199573=_0x22a2c6['insertionPosition']['nodeAfter'];if(_0x41f0fd){const _0x3abd8b=_0x199573['getAttribute']('vid_end'),_0x476ca7=_0x5e408f['getAttribute']('vid_end');_0x5e408f['_setAttribute']('vid_end',_0x3abd8b),_0x199573['_setAttribute']('vid_end',_0x476ca7),this['_touched']['set'](_0x5e408f['getAttribute']('vid_end'),{'userId':_0x20dba0}),this['_touched']['set'](_0x199573['getAttribute']('vid_start'),{'userId':_0x20dba0});}else{const _0x337769=this['_revisionId']++,_0x101a98=this['_revisionId']++;_0x5e408f['_setAttribute']('vid_end',_0x337769),_0x199573['_setAttribute']('vid_start',_0x101a98),_0x199573['_setAttribute']('vid_end',_0x5c94a0),this['_touched']['set'](_0x337769,{'userId':_0x20dba0}),this['_touched']['set'](_0x101a98,{'userId':_0x20dba0});}}['_handleMarkerOperation'](_0x4103cd){if(!_0x4103cd['affectsData'])return;const _0x1a7b7e=(_0x4103cd=this['_cloneOperation'](_0x4103cd,this['_diffRoots']))['oldRange']?_0x4103cd['oldRange']['root']:null,_0x331e4b=_0x4103cd['newRange']?_0x4103cd['newRange']['root']:null;_0x1a7b7e&&this['_markers']['delete'](_0x4103cd['name']),_0x331e4b&&this['_markers']['set'](_0x4103cd['name'],_0x4103cd['newRange']['clone']());const _0x143c77=null===_0x4103cd['_authorId']?null:_0x4103cd['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x734951=_0x4103cd['name'];if(!this['_touchedMarkers']['has'](_0x734951))return void this['_touchedMarkers']['set'](_0x734951,{'range':_0x4103cd['oldRange'],'userId':_0x143c77});const _0x344e69=this['_touchedMarkers']['get'](_0x734951),_0x65a5f2=_0x344e69['range'],_0x2160ac=_0x4103cd['newRange'];null==_0x65a5f2&&null==_0x2160ac||_0x65a5f2&&_0x2160ac&&_0x65a5f2['isEqual'](_0x2160ac)?this['_touchedMarkers']['delete'](_0x4103cd['name']):_0x344e69['userId']=_0x143c77;}['_handleRootOperation'](_0x164ef0,_0x3a1b4e){this['_diffRoots']['has'](_0x164ef0['rootName'])?this['_diffRoots']['get'](_0x164ef0['rootName'])['_isAttached']=_0x164ef0['isAdd']:(this['_diffRoots']['set'](_0x164ef0['rootName'],P(_0x164ef0['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x164ef0['rootName'],{}),_0x3a1b4e&&this['_idsRoots']['set'](_0x164ef0['rootName'],P(_0x164ef0['rootName'],!0x0)));const _0xe7a014=null===_0x164ef0['_authorId']?null:_0x164ef0['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x326967=this['_touchedRoots']['get'](_0x164ef0['rootName']);_0x326967&&_0x326967['userId']===_0xe7a014?this['_touchedRoots']['delete'](_0x164ef0['rootName']):this['_touchedRoots']['set'](_0x164ef0['rootName'],{'userId':_0xe7a014,'isAttached':_0x164ef0['isAdd']});}['_handleRootAttributeOperation'](_0x2db09e){const _0x2f4bb7=this['_diffRootsAttributes']['get'](_0x2db09e['root']['rootName']);null===_0x2db09e['newValue']?delete _0x2f4bb7[_0x2db09e['key']]:_0x2f4bb7[_0x2db09e['key']]=_0x2db09e['newValue'];}}function N(_0x4f1415){const _0x299810=P(_0x4f1415['rootName'],_0x4f1415['isAttached']());for(const _0x3d2423 of _0x4f1415['getChildren']()){const _0x53446a=_0x3d2423['_clone'](!0x0);_0x299810['_appendChild'](_0x53446a);}return _0x299810;}function P(_0x4ee67d,_0x427a9a=!0x0){const _0x41431b=new vt();return _0x41431b['rootName']=_0x4ee67d,_0x41431b['_isAttached']=_0x427a9a,_0x41431b['isAttached']=()=>_0x41431b['_isAttached'],_0x41431b;}function F(_0x397365,_0x428bec,_0x4b72ce){const _0x1f260b='elementEnd'==_0x397365['type']?_0x4b72ce['createPositionAt'](_0x397365['item'],'end'):_0x4b72ce['createPositionBefore'](_0x397365['item']);return _0x4b72ce['createPositionFromPath'](_0x428bec,_0x1f260b['path'],_0x1f260b['stickiness']);}function B(_0x4bc159,_0x260d7d,_0x2ee7c6){const _0x552aaa='elementStart'==_0x4bc159['type']?_0x2ee7c6['createPositionAt'](_0x4bc159['item'],0x0):_0x2ee7c6['createPositionAfter'](_0x4bc159['item']);return _0x2ee7c6['createPositionFromPath'](_0x260d7d,_0x552aaa['path'],_0x552aaa['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x439dbd,_0x22fda1){super(_0x439dbd),this['focusTracker']=new _0x59373c(),this['keystrokes']=new _0x554dc6(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x22fda1),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x1e5aaa(this);}['render'](){super['render'](),_0x1574ed({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x589766=_0x53b6c2=>_0x53b6c2['stopPropagation']();this['keystrokes']['set']('arrowright',_0x589766),this['keystrokes']['set']('arrowleft',_0x589766),this['keystrokes']['set']('arrowup',_0x589766),this['keystrokes']['set']('arrowdown',_0x589766);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x2edf63){this['revisionNameInputView']['fieldView']['element']['value']=_0x2edf63['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x190c08){const _0x400f34=new _0x396cf7(this['locale'],_0x2bcaae),_0x8b0966=_0x400f34['fieldView'];_0x8b0966['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x2020df=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x190c08&&(_0x2020df+='\x20('+g(this['locale'],'optional')+')'),(_0x400f34['label']=_0x2020df,_0x8b0966['on']('input',()=>{this['revisionNameInputValue']=_0x8b0966['element']['value']['trim']();}),_0x400f34);}}class f extends _0x211636{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x2f17c5=this['editor'],_0x4a9fa4=_0x2f17c5['plugins']['get']('RevisionTracker');_0x2f17c5['ui']['componentFactory']['add']('revisionHistory',_0x5b2b40=>{const _0x114f74=_0x93f8f9(_0x5b2b40),_0x2bd65f=_0x114f74['panelView']['children'],_0x2f9adf=new _0x8ce643(_0x5b2b40),_0x46318d=new _0x283216(_0x5b2b40),_0x29d30c=new te(_0x5b2b40),_0x4cc084=new _0x283216(_0x5b2b40),_0x42bc25=new te(_0x5b2b40);return _0x114f74['bind']('isEnabled')['to'](_0x4a9fa4,'isReady',_0x4a9fa4,'isEnabled',_0x2f17c5,'isReadOnly',(_0x311919,_0x9ea671,_0x176e2a)=>_0x311919&&_0x9ea671&&!_0x176e2a),_0x114f74['buttonView']['set']({'icon':_0x1d1a96,'label':g(_0x5b2b40,'Revision\x20history'),'tooltip':!0x0}),_0x29d30c['set']({'label':g(_0x5b2b40,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x29d30c['bind']('isEnabled')['to'](_0x4a9fa4,'isReady',_0x4a9fa4,'isEnabled',_0x2f17c5,'isReadOnly',(_0x383710,_0x30d194,_0x4c5b61)=>_0x383710&&_0x30d194&&!_0x4c5b61),_0x29d30c['on']('execute',()=>this['_showDialog']()),_0x42bc25['set']({'label':g(_0x5b2b40,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x42bc25['bind']('isEnabled')['to'](_0x4a9fa4,'isReady',_0x2f17c5,'isReadOnly',(_0x182a3a,_0x3b64b1)=>_0x182a3a&&!_0x3b64b1),_0x42bc25['on']('execute',()=>{_0x2f17c5['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x114f74['isOpen']=!0x1,_0x2f17c5['editing']['view']['focus']();}),_0x46318d['children']['add'](_0x29d30c),_0x4cc084['children']['add'](_0x42bc25),_0x2f9adf['role']='menu',_0x2f9adf['items']['addMany']([_0x46318d,_0x4cc084]),_0x2bd65f['add'](_0x2f9adf),_0x114f74;}),_0x2f17c5['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0xdbd51e=this['editor'],_0x4cfecc=_0xdbd51e['locale'],_0x20e2ea=new _0x40e71a(_0x4cfecc),_0x1ab73a=new _0x464d38(_0x4cfecc);_0x20e2ea['buttonView']['set']({'icon':_0x1d1a96,'label':g(_0x4cfecc,'Revision\x20history')});const _0x5de14d=new _0x12d4bc(_0x4cfecc,_0x20e2ea),_0x56f97b=new _0x17c827(_0x4cfecc);_0x56f97b['set']({'label':g(_0x4cfecc,'Save\x20current\x20revision')}),_0x56f97b['delegate']('execute')['to'](_0x20e2ea),_0x56f97b['on']('execute',()=>{this['_showDialog']();}),_0x5de14d['children']['add'](_0x56f97b),_0x1ab73a['items']['add'](_0x5de14d);const _0x48e70e=new _0x12d4bc(_0x4cfecc,_0x20e2ea),_0x475283=new _0x17c827(_0x4cfecc);return _0x475283['set']({'label':g(_0x4cfecc,'Open\x20revision\x20history')}),_0x475283['delegate']('execute')['to'](_0x20e2ea),_0x475283['on']('execute',()=>{_0xdbd51e['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x48e70e['children']['add'](_0x475283),_0x1ab73a['items']['add'](_0x48e70e),_0x20e2ea['panelView']['children']['add'](_0x1ab73a),_0x20e2ea;}['_showDialog'](){const _0x447192=this['editor'],_0xc6877a=_0x447192['locale'],_0x60f2fb=_0x447192['plugins']['get']('Dialog'),_0x3c4dc2=_0x447192['plugins']['get']('RevisionTracker');function _0xdefde4(_0x131fd0){_0x447192['config']['get']('revisionHistory.requireRevisionName')&&''===_0x131fd0['revisionName']?_0x131fd0['revisionNameInputView']['errorText']=g(_0xc6877a,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x447192['plugins']['get'](u)['saveRevision']({'name':_0x131fd0['revisionName']}),_0x60f2fb['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0xdefde4(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x60f2fb['show']({'id':'revisionSave','title':g(_0xc6877a,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x447192['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x60f2fb['hide']()},{'label':g(_0x447192['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x444432){_0x444432['bind']('isEnabled')['to'](_0x3c4dc2,'isReady',_0x3c4dc2,'isEnabled',_0x447192,'isReadOnly',(_0x1bc91c,_0x441153,_0x230895)=>_0x1bc91c&&_0x441153&&!_0x230895);},'onExecute':()=>_0xdefde4(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x59d8d8=this['editor'],_0x25dce8=_0x59d8d8['locale'];this['_saveRevisionFormView']=new hs(_0x25dce8,_0x59d8d8['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends ts{['changeId'];['_model'];constructor(_0x5bfd37,_0x38b4d2){super(_0x5bfd37),this['_model']=_0x38b4d2,this['changeId']=_0x38b4d2['id'];const _0x2d1500=this['bindTemplate'],_0x54f4c4=g(_0x5bfd37,_0x38b4d2['data']['isSuggestion']?'Suggested\x20by':'add'==_0x38b4d2['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x38b4d2['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x2d1500['to']('type',_0x29def5=>'ck-revision-change__'+_0x29def5)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x54f4c4}]},{'text':'\x20'+_0x38b4d2['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x543dbd(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0xf2c5ff){super(),this['id']=_0xf2c5ff['id']||_0x2135da(),this['author']=_0xf2c5ff['author'],this['type']=_0xf2c5ff['type'],this['data']=_0xf2c5ff['data']||{},this['rootName']=_0xf2c5ff['rootName'],this['set']('createdAt',_0xf2c5ff['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(_0x2fea59,_0x3f9ae4){this['newRevisionId']=_0x2fea59,this['oldRevisionId']=_0x3f9ae4,this['changes']=new _0x284c5d();}['_setChanges'](_0x117217){for(const _0x38de3a of _0x117217)this['changes']['add'](_0x38de3a);}}class m extends _0x211636{['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[_0x50a466,_0x172aea,I,V];}constructor(_0x725fdd){super(_0x725fdd),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',(_0x362940,_0x8923c8,_0x5d9e3a)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x24a264=>{for(const _0x4cab25 of this['editor']['editing']['view']['document']['roots'])_0x5d9e3a?_0x24a264['removeClass']('ck-editor__editable__overlay',_0x4cab25):_0x24a264['addClass']('ck-editor__editable__overlay',_0x4cab25);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x3b8ae2=>null!==_0x3b8ae2),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x346edd,_0x2f5f87,_0xef48f0)=>_0x346edd&&_0xef48f0?_0x2f5f87['changes']['getIndex'](_0xef48f0):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x21b922,_0x4baa29)=>_0x21b922?_0x4baa29['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x172aea);}['init'](){const _0x4db718=this['editor'],_0x4ef377=new wt(_0x4db718,{'direction':'backward'}),_0x16cd38=new wt(_0x4db718,{'direction':'forward'});(_0x4db718['commands']['add']('showPreviousChange',_0x4ef377),_0x4db718['commands']['add']('showNextChange',_0x16cd38),_0x4db718['commands']['add']('restoreRevision',new mt(_0x4db718)),this['on']('change:numberOfChanges',()=>{_0x4ef377['refresh'](),_0x16cd38['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x4db718['enableReadOnlyMode']('revision-viewer'),_0x4db718['plugins']['has']('WidgetToolbarRepository'))&&_0x4db718['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x1f6530){return await this['_utils']['loadRevisionData'](_0x1f6530,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x1f6530);}async['getRevisionRootsAttributes'](_0x811d90){return await this['_utils']['loadRevisionData'](_0x811d90,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x811d90);}async['compare'](_0x475caf,_0x2054b5,_0x554553=!0x1){if(!this['isEnabled'])return;const _0x65843f=this['diff'],_0x37c748=this['repository'],_0x33f00e='string'==typeof _0x475caf?_0x37c748['getRevision'](_0x475caf):_0x475caf,_0x4dc6f6='string'==typeof _0x2054b5?_0x37c748['getRevision'](_0x2054b5):_0x2054b5,_0x18762a=_0x33f00e['id'],_0x2daad7=_0x4dc6f6?_0x4dc6f6['id']:null;if(!_0x554553&&this['diff']&&this['diff']['newRevisionId']===_0x18762a&&this['diff']['oldRevisionId']===_0x2daad7)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x18762a,_0x2daad7);const _0x5b6199=this['_getRevisionsRange'](_0x33f00e,_0x4dc6f6,!0x0)['map'](_0x350887=>this['_utils']['loadRevisionData'](_0x350887,this['adapter']));return _0x5b6199['push'](new Promise(_0x77c36c=>{setTimeout(_0x77c36c,0x14);})),Promise['all'](_0x5b6199)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x269494=this['_getDiff'](_0x18762a,_0x2daad7);for(const _0x2ef84d of _0x269494['changes'])this['_changeIdToChange']['set'](_0x2ef84d['id'],_0x2ef84d);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x3d5b0e=>{for(const _0x5675fd of this['editor']['model']['document']['getRootNames']())_0x3d5b0e['detachRoot'](_0x5675fd);for(const _0x39a2d8 of Object['keys'](_0x269494['model'])){const _0x274be6=_0x3d5b0e['addRoot'](_0x39a2d8);for(const _0x4f8f2a of Object['keys'](_0x269494['attributes'][_0x39a2d8]))_0x3d5b0e['setAttribute'](_0x4f8f2a,_0x269494['attributes'][_0x39a2d8][_0x4f8f2a],_0x274be6);_0x3d5b0e['insert'](_0x269494['model'][_0x39a2d8],_0x274be6,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x269494['changes'])),this['isReady']=!0x0;})['catch'](_0x130b98=>{console['error'](_0x130b98),this['_cleanUp'](),_0x65843f&&(this['diff']=_0x65843f),this['isReady']=!0x0;});}['addRevisionData'](_0x22d6b2,_0x373600){const _0x3a5f98=this['repository']['createRevision'](_0x22d6b2);return _0x3a5f98['on']('_update',(_0x3dfded,_0x198bf6,_0x2d0d54)=>_0x373600(_0x198bf6,_0x2d0d54,_0x3a5f98)),this['repository']['addRevision'](_0x3a5f98),_0x3a5f98;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x4fe3be=>{for(const _0x282e72 of this['editor']['model']['document']['getRootNames']())_0x4fe3be['detachRoot'](_0x282e72);});}['_sortAndFilterDiffChanges'](_0x57dc91){const _0x365aa0=[],_0x1d2f6a=new Map();for(const _0x4f640a of this['editor']['model']['document']['getRootNames']()){const _0x14959c=this['editor']['editing']['view']['getDomRoot'](_0x4f640a);if(!_0x14959c)continue;const _0xdfacd2=_0x14959c['getClientRects']()['item'](0x0);_0xdfacd2&&(_0x365aa0['push'](_0x4f640a),_0x1d2f6a['set'](_0x4f640a,_0xdfacd2));}return _0x365aa0['sort']((_0x4c415f,_0xda3ae5)=>{const _0x18007c=_0x1d2f6a['get'](_0x4c415f),_0xe3fa41=_0x1d2f6a['get'](_0xda3ae5);return _0x18007c['y']-_0xe3fa41['y']||_0x18007c['x']-_0xe3fa41['x'];}),(_0x57dc91=_0x57dc91['filter'](_0x88ebed=>_0x365aa0['includes'](_0x88ebed['rootName'])))['sort']((_0x254d71,_0x1d4255)=>_0x365aa0['indexOf'](_0x254d71['rootName'])-_0x365aa0['indexOf'](_0x1d4255['rootName'])),_0x57dc91;}['_makeTape'](_0x319d77){const _0x52cb5d=Array['from'](_0x319d77['markers'])['filter'](([_0x5b306f,_0x29cf00])=>_0x5b306f['startsWith']('revision:')&&!_0x29cf00['isCollapsed']),_0x11a75a=Array['from'](this['editor']['model']['createRangeIn'](_0x319d77)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x52cb5d['length'])for(const _0x3af206 of _0x11a75a){const [_0x393851,_0x3a8d11]=_0x52cb5d[0x0],[,_0x57c377,_0x72dac9]=_0x393851['split'](':');if(_0x3a8d11['end']['isEqual'](_0x3af206['nextPosition'])&&_0x52cb5d['shift'](),(_0x3af206['previousPosition']['isEqual'](_0x3a8d11['start'])||_0x3af206['previousPosition']['isAfter'](_0x3a8d11['start']))&&('insertion'==_0x57c377?_0x3af206['isAdded']={'userId':_0x72dac9}:'deletion'==_0x57c377&&(_0x3af206['isRemoved']={'userId':_0x72dac9})),0x0==_0x52cb5d['length'])break;}return _0x11a75a;}['_refreshStartEndIndex'](_0x518038){const _0x3a0a7f=new Map();for(let _0x273d3d=0x0;_0x273d3d<_0x518038['length'];_0x273d3d++)'text'===_0x518038[_0x273d3d]['type']?(_0x518038[_0x273d3d]['item']['startIndex']=_0x273d3d,_0x518038[_0x273d3d]['item']['endIndex']=_0x273d3d):('elementStart'===_0x518038[_0x273d3d]['type']?_0x518038[_0x273d3d]['item']['startIndex']=_0x273d3d:'elementEnd'===_0x518038[_0x273d3d]['type']&&(_0x518038[_0x273d3d]['item']['endIndex']=_0x273d3d),_0x3a0a7f['set'](_0x518038[_0x273d3d]['id'],_0x273d3d));for(const _0xdb7344 of _0x3a0a7f['values']())'elementStart'===_0x518038[_0xdb7344]['type']?_0x518038[_0xdb7344]['item']['endIndex']=_0x3a0a7f['get'](_0x518038[_0xdb7344]['pairId']):'elementEnd'===_0x518038[_0xdb7344]['type']&&(_0x518038[_0xdb7344]['item']['startIndex']=_0x3a0a7f['get'](_0x518038[_0xdb7344]['pairId']));}['_processTape'](_0x2e59d3){for(let _0x33c17d=0x0;_0x33c17d<_0x2e59d3['length'];_0x33c17d++){if('elementStart'===_0x2e59d3[_0x33c17d]['type'])_0x2e59d3[_0x33c17d]['item']['startIndex']=_0x33c17d;else{if('elementEnd'===_0x2e59d3[_0x33c17d]['type']){_0x2e59d3[_0x33c17d]['item']['endIndex']=_0x33c17d;const _0x4d60fa=_0x2e59d3[_0x33c17d]['item']['startIndex'];_0x2e59d3[_0x4d60fa]['pairId']=_0x2e59d3[_0x33c17d]['id'],_0x2e59d3[_0x33c17d]['pairId']=_0x2e59d3[_0x4d60fa]['id'];}else _0x2e59d3[_0x33c17d]['item']['startIndex']=_0x33c17d,_0x2e59d3[_0x33c17d]['item']['endIndex']=_0x33c17d,_0x2e59d3[_0x33c17d]['pairId']=null;}_0x2e59d3[_0x33c17d]['markersStart']||(_0x2e59d3[_0x33c17d]['markersStart']=[],_0x2e59d3[_0x33c17d]['markersEnd']=[]);}}['_markInsertions'](_0x2975d8,_0x1b3ab4){const _0x239169=_0x2975d8['filter'](_0x22210e=>!_0x22210e['isAdded']);for(let _0x3bdbc3=0x0;_0x3bdbc3<_0x1b3ab4['length'];_0x3bdbc3++)_0x1b3ab4[_0x3bdbc3]['isAdded']&&(_0x239169[_0x3bdbc3]['isAdded']=_0x1b3ab4[_0x3bdbc3]['isAdded']);}['_getDiff'](_0x303dbf,_0xa28e61=null){const _0x361213=this['repository']['getRevision'](_0x303dbf),_0xe79568=_0xa28e61?this['repository']['getRevision'](_0xa28e61):null,_0x56570a=this['_getRevisionsRange'](_0x361213,_0xe79568),_0x588f4a=_0x56570a[_0x56570a['length']-0x1],_0x41dc1d=new Map(),_0x35fdfd={'model':{},'attributes':{},'changes':[]},_0x46fdcd=new Set(),_0x2465cd=new Map();for(let _0x3ded30=_0x56570a['length']-0x1;_0x3ded30>=0x0;_0x3ded30--){const _0x438cee=_0x56570a[_0x3ded30];for(const _0x41b71b of Object['keys'](_0x438cee['diffData']))if(_0x438cee['diffData'][_0x41b71b]['attachChange']){const _0x3cd604=_0x438cee['diffData'][_0x41b71b]['attachChange'];_0x3cd604['isAttached']?(_0x46fdcd['add'](_0x41b71b),_0x2465cd['has'](_0x41b71b)&&_0x2465cd['get'](_0x41b71b)['userId']==_0x3cd604['userId']?_0x2465cd['delete'](_0x41b71b):_0x2465cd['set'](_0x41b71b,_0x3cd604)):_0x2465cd['has'](_0x41b71b)?(_0x46fdcd['delete'](_0x41b71b),_0x2465cd['delete'](_0x41b71b)):(_0x46fdcd['add'](_0x41b71b),_0x2465cd['set'](_0x41b71b,_0x3cd604));}else _0x46fdcd['add'](_0x41b71b);}for(const _0x3e2186 of _0x46fdcd){const _0x281a72=_0x2465cd['has'](_0x3e2186)&&!_0x2465cd['get'](_0x3e2186)['isAttached'];let _0x1d2fd3=_0x281a72?_0x56570a['length']-0x1:0x0;const _0x595ce4=_0x281a72?-0x1:0x1;for(;_0x56570a[_0x1d2fd3];){const _0x109bb9=_0x56570a[_0x1d2fd3];if(_0x109bb9['diffData'][_0x3e2186]){const _0x243143=_0x281a72?_0x109bb9['diffData'][_0x3e2186]['attributesBefore']:_0x109bb9['diffData'][_0x3e2186]['attributesAfter'];_0x35fdfd['attributes'][_0x3e2186]=_0x243143?_0xcb7214(_0x243143):{};break;}_0x1d2fd3+=_0x595ce4;}}for(const _0x24eec3 of _0x56570a){_0x24eec3['model']={};for(const _0x316557 of _0x24eec3['authors'])_0x41dc1d['set'](_0x316557['id'],_0x316557);for(const _0x5bddc7 of _0x46fdcd){const _0x17a198=_0x24eec3['diffData'][_0x5bddc7]?_0x24eec3['diffData'][_0x5bddc7]['insertions']:'[]',_0x95ac5d=_0x24eec3['diffData'][_0x5bddc7]?_0x24eec3['diffData'][_0x5bddc7]['deletions']:'[]';_0x24eec3['model'][_0x5bddc7]={'insertions':this['_utils']['_makeModelFromViewString'](_0x17a198),'deletions':this['_utils']['_makeModelFromViewString'](_0x95ac5d)};}}for(const _0x494d46 of _0x46fdcd){let _0x1036a5=null,_0x544d50=0x0;const _0x11dfb6=new Map(Array['from'](_0x361213['model'][_0x494d46]['insertions']['markers'])['filter'](([_0x306dab])=>!_0x306dab['startsWith']('revision:')));let _0x51a446=0x0;for(const _0x130067 of _0x56570a){const _0x4445d9=this['_makeTape'](_0x130067['model'][_0x494d46]['insertions']);_0x130067==_0x361213?(_0x1036a5=_0x4445d9,_0x544d50=_0x1036a5['length'],_0x1036a5['forEach'](_0x38ca10=>{_0x38ca10['id']=_0x51a446++;}),this['_processTape'](_0x1036a5)):this['_markInsertions'](_0x1036a5,_0x4445d9);const _0x4d476c=_0x1036a5['filter'](_0x397810=>!_0x397810['isAdded'])['map'](_0x22ec9d=>_0x22ec9d['id']);let _0x3e3721=0x0;const _0x123141=this['_makeTape'](_0x130067['model'][_0x494d46]['deletions']);_0x123141['forEach'](_0x7133d9=>{_0x7133d9['isRemoved']?_0x7133d9['id']=_0x544d50++:_0x7133d9['id']=_0x4d476c[_0x3e3721++];}),this['_processTape'](_0x123141),this['_setDistance'](_0x1036a5,'isAdded'),this['_setDistance'](_0x123141,'isRemoved'),_0x130067==_0x361213&&this['_markMarkers'](_0x1036a5,_0x11dfb6),_0x1036a5=this['_joinTapes'](_0x1036a5,_0x123141),this['_refreshStartEndIndex'](_0x1036a5),this['_setDistance'](_0x1036a5,'isRemoved');}_0x1036a5=_0x1036a5['filter'](_0x259186=>!(_0x259186['isAdded']&&_0x259186['isRemoved']));const _0x1c85c4=new Map(_0x588f4a['model'][_0x494d46]['deletions']['markers']),_0x3cd570=new Set(_0x11dfb6['keys']());for(const _0x4e8f2 of _0x1c85c4['keys']())_0x3cd570['delete'](_0x4e8f2);this['_markSuggestions'](_0x1036a5,_0x3cd570),this['_fixObsoleteTags'](_0x1036a5),_0x1036a5=this['_removeMissingPairs'](_0x1036a5),_0x1036a5=this['_markMismatchedRemovedTags'](_0x1036a5),_0x1036a5=this['_removeUnsupportedChanges'](_0x1036a5);const {root:_0x202e6a,changes:_0x288532}=this['_makeModelFromTape'](_0x1036a5,_0x41dc1d,_0x494d46);_0x35fdfd['model'][_0x494d46]=_0x202e6a;const _0x140e95=_0x2465cd['get'](_0x494d46);if(_0x140e95){const _0x55218c=_0x41dc1d['get'](_0x140e95['userId']),_0x392e36=new r({'author':_0x55218c,'type':_0x140e95['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x494d46});_0x288532['unshift'](_0x392e36),_0x35fdfd['attributes'][_0x494d46]['revisionHistoryAttachChange']=_0x392e36['id'];}_0x35fdfd['changes']=_0x35fdfd['changes']['concat'](_0x288532);}return _0x35fdfd;}['_markMarkers'](_0x109b30,_0x72039e){for(let _0x3d7a54=0x0;_0x3d7a54<_0x109b30['length'];_0x3d7a54++)for(const [_0x2ba4df,_0x37ddd9]of _0x72039e)!_0x37ddd9['isCollapsed']&&_0x37ddd9['start']['isEqual'](_0x109b30[_0x3d7a54]['previousPosition'])&&_0x109b30[_0x3d7a54]['markersStart']['push'](_0x2ba4df),_0x37ddd9['end']['isEqual'](_0x109b30[_0x3d7a54]['nextPosition'])&&_0x109b30[_0x3d7a54]['markersEnd']['push'](_0x2ba4df);}['_joinTapes'](_0x75424f,_0x2bd1f7){let _0x3bf9e0=[],_0x5effdf=0x0,_0xc00dff=0x0;for(;_0x5effdf<_0x75424f['length']||_0xc00dff<_0x2bd1f7['length'];){const _0x57654a=_0x75424f[_0x5effdf]||{},_0x274d39=_0x2bd1f7[_0xc00dff]||{};if(_0x57654a['id']==_0x274d39['id'])_0x5effdf++,_0xc00dff++,_0x3bf9e0['push'](_0x57654a);else{if(_0x274d39['isRemoved']&&_0x57654a['isAdded']){const {commonTape:_0x4406ea,iEnd:_0x5cd874,jEnd:_0x3aead5}=this['_threeWayMerge'](_0x75424f,_0x5effdf,_0x2bd1f7,_0xc00dff);_0x3bf9e0=_0x3bf9e0['concat'](_0x4406ea),_0x5effdf=_0x5cd874,_0xc00dff=_0x3aead5;}else _0x274d39['isRemoved']?(_0xc00dff++,_0x3bf9e0['push'](_0x274d39)):(_0x5effdf++,_0x3bf9e0['push'](_0x57654a));}}return _0x3bf9e0;}['_markSuggestions'](_0x409455,_0x213da9){const _0x4037bb=[];for(let _0x3b531c=0x0;_0x3b531c<_0x409455['length'];_0x3b531c++){for(let _0x35a5cd=0x0;_0x35a5cd<_0x409455[_0x3b531c]['markersStart']['length'];_0x35a5cd++){const _0x23ca19=_0x409455[_0x3b531c]['markersStart'][_0x35a5cd];if(!_0x213da9['has'](_0x23ca19))continue;const {group:_0x4f0757,type:_0x499d3f,authorId:_0x9925f}=_0x525e16(_0x23ca19);'revision-suggestion'!=_0x4f0757||'insertion'!=_0x499d3f&&'deletion'!=_0x499d3f||(_0x4037bb['unshift']({'type':_0x499d3f,'name':_0x23ca19,'userId':_0x9925f}),_0x409455[_0x3b531c]['markersStart']['splice'](_0x35a5cd,0x1),_0x35a5cd--);}_0x46e464(_0x409455[_0x3b531c]);for(let _0xc50c28=0x0;_0xc50c28<_0x409455[_0x3b531c]['markersEnd']['length'];_0xc50c28++){const _0x231e1c=_0x409455[_0x3b531c]['markersEnd'][_0xc50c28];if(!_0x213da9['has'](_0x231e1c))continue;const {group:_0x206191,type:_0x221b95}=_0x525e16(_0x231e1c);if('revision-suggestion'!=_0x206191||'insertion'!=_0x221b95&&'deletion'!=_0x221b95)continue;_0x409455[_0x3b531c]['markersEnd']['splice'](_0xc50c28,0x1),_0xc50c28--;const _0xd59f8c=_0x4037bb['findIndex'](_0x4b5233=>_0x4b5233['name']==_0x231e1c);_0xd59f8c>-0x1&&_0x4037bb['splice'](_0xd59f8c,0x1);}}function _0x525e16(_0x353304){const _0x2e7b9c=_0x353304['split'](':');return{'group':_0x2e7b9c[0x0],'type':_0x2e7b9c[0x1],'subType':_0x2e7b9c['length']>=0x5?_0x2e7b9c[0x2]:null,'id':_0x2e7b9c['length']<0x5?_0x2e7b9c[0x2]:_0x2e7b9c[0x3],'authorId':_0x2e7b9c['length']<0x5?_0x2e7b9c[0x3]:_0x2e7b9c[0x4],'markerCount':0x6==_0x2e7b9c['length']?_0x2e7b9c[0x5]:null};}function _0x46e464(_0x1da70f){for(let _0x559cc3=0x0;_0x559cc3<_0x4037bb['length'];_0x559cc3++){if(_0x1da70f['isAdded']&&'insertion'==_0x4037bb[_0x559cc3]['type']&&_0x1da70f['isAdded']['userId']==_0x4037bb[_0x559cc3]['userId'])return _0x1da70f['isAddSuggestion']=_0x4037bb[_0x559cc3],void delete _0x1da70f['isAdded'];if(!_0x1da70f['isAdded']&&!_0x1da70f['isRemoved']&&'deletion'==_0x4037bb[_0x559cc3]['type'])return void(_0x1da70f['isRemoveSuggestion']=_0x4037bb[_0x559cc3]);}}}['_setDistance'](_0x1cbd0d,_0x5887c5){let _0x8ed2e6=0x0,_0x448fdc=!0x1;const _0x3e12d9=new Map();for(const _0x9c6c84 of _0x1cbd0d)_0x9c6c84[_0x5887c5]?_0x448fdc&&(_0x8ed2e6++,_0x448fdc=!0x1):(_0x8ed2e6++,_0x448fdc=!0x0),_0x3e12d9['set'](_0x9c6c84['id'],_0x8ed2e6);for(let _0x5106a2=0x0;_0x5106a2<_0x1cbd0d['length'];_0x5106a2++){if('isRemoved'==_0x5887c5&&_0x1cbd0d[_0x5106a2]['isAdded']||'isAdded'==_0x5887c5&&_0x1cbd0d[_0x5106a2]['isRemoved'])continue;if('text'==_0x1cbd0d[_0x5106a2]['type']){_0x1cbd0d[_0x5106a2]['distance']=0x0;continue;}const _0x167836=_0x3e12d9['get'](_0x1cbd0d[_0x5106a2]['pairId']),_0x30ac8f=_0x3e12d9['get'](_0x1cbd0d[_0x5106a2]['id']);_0x1cbd0d[_0x5106a2]['distance']=_0x167836-_0x30ac8f;}}['_getRevisionsRange'](_0x1bcdc5,_0x29a5cb,_0x55f7c9=!0x1){const _0x8e6eca=[];let _0x184690=this['repository']['getIndex'](_0x1bcdc5),_0x5bd49d=this['repository']['getIndex'](_0x29a5cb);for(-0x1==_0x5bd49d&&(_0x5bd49d=this['repository']['_revisions']['length'],_0x55f7c9=!0x1);_0x184690<_0x5bd49d;)_0x8e6eca['push'](this['repository']['getRevision'](_0x184690)),_0x184690++;return _0x55f7c9&&_0x8e6eca['push'](this['repository']['getRevision'](_0x184690)),_0x8e6eca;}['_threeWayMerge'](_0x21958e,_0x8f97a4,_0x52402e,_0x25dfd7){const _0x4976bc=this['editor']['model']['schema'];let _0x1ab471=_0x8f97a4;for(;_0x21958e[_0x1ab471]&&_0x21958e[_0x1ab471]['isAdded'];)_0x1ab471++;let _0x3c7529=_0x25dfd7;for(;_0x52402e[_0x3c7529]&&_0x52402e[_0x3c7529]['isRemoved'];)_0x3c7529++;_0x3c6ccc(_0x21958e,_0x8f97a4,_0x1ab471),_0x3c6ccc(_0x52402e,_0x25dfd7,_0x3c7529);const _0x156c53=_0x52402e['slice'](_0x25dfd7,_0x3c7529)['concat'](_0x21958e['slice'](_0x8f97a4,_0x1ab471));return _0x156c53['sort']((_0x166022,_0x64a4ba)=>_0x166022['side']!=_0x64a4ba['side']?_0x166022['side']-_0x64a4ba['side']:_0x166022['level']!=_0x64a4ba['level']?_0x166022['level']-_0x64a4ba['level']:_0x166022['distance']!=_0x64a4ba['distance']?_0x64a4ba['distance']-_0x166022['distance']:!!_0x166022['isAdded']!=!!_0x64a4ba['isAdded']?-0x1==_0x166022['side']||0x0==_0x166022['side']?_0x166022['isAdded']?-0x1:0x1:_0x166022['isAdded']?0x1:-0x1:_0x166022['index']-_0x64a4ba['index']),{'commonTape':_0x156c53,'iEnd':_0x1ab471,'jEnd':_0x3c7529};function _0x3c6ccc(_0x3ca28b,_0x403f88,_0x8815){let _0x3a1309=-0x1,_0x54c7ed=Number['POSITIVE_INFINITY'],_0x3d53e6=!0x0;for(let _0x3dda5c=_0x403f88;_0x3dda5c<_0x8815;_0x3dda5c++)if(_0x4976bc['isInline'](_0x3ca28b[_0x3dda5c]['item'])||(_0x3d53e6=!0x1),_0x3ca28b[_0x3dda5c]['item']['startIndex']<_0x403f88&&(_0x3a1309=_0x3dda5c),_0x3ca28b[_0x3dda5c]['item']['endIndex']>=_0x8815){_0x54c7ed=_0x3dda5c;break;}_0x3d53e6&&(_0x3a1309=_0x8815-0x1);for(let _0x3b344f=_0x403f88;_0x3b344f<_0x8815;_0x3b344f++)_0x3ca28b[_0x3b344f]['side']=_0x3b344f<=_0x3a1309?-0x1:_0x3b344f<_0x54c7ed?0x0:0x1,_0x3ca28b[_0x3b344f]['index']=_0x3b344f;let _0x1bbf30=0x0;for(let _0x411b9b=_0x403f88;_0x411b9b<=_0x3a1309;_0x411b9b++)0x0==_0x3ca28b[_0x411b9b]['distance']?_0x3ca28b[_0x411b9b]['level']=_0x1bbf30:(_0x1bbf30++,_0x3ca28b[_0x411b9b]['level']=_0x1bbf30,_0x1bbf30++);for(let _0x36e554=_0x403f88;_0x36e554<_0x8815;_0x36e554++)0x0==_0x3ca28b[_0x36e554]['side']&&(_0x3ca28b[_0x36e554]['level']=_0x1bbf30);_0x1bbf30=0x0;for(let _0x1c01f6=_0x8815-0x1;_0x1c01f6>=_0x54c7ed;_0x1c01f6--)0x0==_0x3ca28b[_0x1c01f6]['distance']?_0x3ca28b[_0x1c01f6]['level']=_0x1bbf30:(_0x1bbf30--,_0x3ca28b[_0x1c01f6]['level']=_0x1bbf30,_0x1bbf30--);}}['_fixObsoleteTags'](_0x5ab00d){const _0x37a0fc=new Map(),_0x5eef1f=this['editor']['model']['schema'];for(let _0x20efef=0x1;_0x20efef<_0x5ab00d['length'];_0x20efef++){let _0x4e4409,_0xec907f,_0x208886;const _0x2b97d0=_0x5ab00d[_0x20efef],_0x3b7c09=_0x5ab00d[_0x20efef-0x1];if('text'==_0x2b97d0['type'])continue;if(_0x2b97d0['type']!=_0x3b7c09['type'])continue;if(!_0x5eef1f['isBlock'](_0x3b7c09['item'])||_0x5eef1f['isLimit'](_0x3b7c09['item']))continue;if(!_0x5eef1f['isBlock'](_0x2b97d0['item'])||_0x5eef1f['isLimit'](_0x2b97d0['item']))continue;if((_0x5ab00d[_0x20efef]['isAdded']||_0x5ab00d[_0x20efef]['isAddSuggestion'])&&_0x5ab00d[_0x20efef-0x1]['isRemoved'])_0x4e4409=_0x5ab00d[_0x20efef],_0xec907f=_0x5ab00d[_0x20efef-0x1],_0x208886=_0x20efef-0x1;else{if(!_0x5ab00d[_0x20efef]['isRemoved']||!_0x5ab00d[_0x20efef-0x1]['isAdded']&&!_0x5ab00d[_0x20efef-0x1]['isAddSuggestion'])continue;_0x4e4409=_0x5ab00d[_0x20efef-0x1],_0xec907f=_0x5ab00d[_0x20efef],_0x208886=_0x20efef;}const _0x501509=_0x4e4409['level']==_0xec907f['level'],_0x393510=Math['abs'](_0x4e4409['level'])<Math['abs'](_0xec907f['level'])&&0x0==_0xec907f['distance'];(_0x501509||_0x393510)&&(_0x37a0fc['set'](_0xec907f['id'],_0x4e4409['id']),_0x5ab00d['splice'](_0x208886,0x1),_0x20efef--,_0x4e4409['isAdded']=!0x1);}for(let _0x29b45b=0x0;_0x29b45b<_0x5ab00d['length'];_0x29b45b++)_0x37a0fc['has'](_0x5ab00d[_0x29b45b]['pairId'])&&(_0x5ab00d[_0x29b45b]['pairId']=_0x37a0fc['get'](_0x5ab00d[_0x29b45b]['pairId']));}['_removeMissingPairs'](_0x1d0f23){const _0x351582=new Set(_0x1d0f23['map'](_0x3049bd=>_0x3049bd['id']));for(let _0x323aa8=0x0;_0x323aa8<_0x1d0f23['length'];_0x323aa8++)_0x351582['has'](_0x1d0f23[_0x323aa8]['pairId'])||0x0==_0x1d0f23[_0x323aa8]['distance']||(_0x1d0f23[_0x323aa8]['isIncorrect']=!0x0);return _0x1d0f23['filter'](_0x46eb2d=>!_0x46eb2d['isIncorrect']);}['_markMismatchedRemovedTags'](_0x57a474){const _0x41d87d=new Set();for(let _0x5a6f38=0x0;_0x5a6f38<_0x57a474['length'];_0x5a6f38++){if(_0x41d87d['has'](_0x57a474[_0x5a6f38]['id'])&&_0x57a474[_0x5a6f38]['isRemoved']&&(_0x57a474[_0x5a6f38]['isIncorrect']=!0x0),_0x57a474[_0x5a6f38]['isIncorrect'])continue;if(0x0==_0x57a474[_0x5a6f38]['distance'])continue;if('elementStart'!=_0x57a474[_0x5a6f38]['type'])continue;if(null==_0x57a474[_0x5a6f38]['pairId'])continue;let _0x10f3c5=_0x5a6f38+0x1,_0xa8570b=0x0;for(;_0x57a474[_0x10f3c5]['id']!=_0x57a474[_0x5a6f38]['pairId'];)'elementStart'==_0x57a474[_0x10f3c5]['type']?_0xa8570b++:'elementEnd'==_0x57a474[_0x10f3c5]['type']&&_0xa8570b--,_0x10f3c5++;if(0x0!=_0xa8570b){if(_0x57a474[_0x5a6f38]['isRemoved'])_0x57a474[_0x5a6f38]['isIncorrect']=!0x0;else{for(;_0x10f3c5!=_0x5a6f38;)_0x57a474[_0x10f3c5]['isRemoved']&&0x0!=_0x57a474[_0x10f3c5]['distance']&&(_0x57a474[_0x10f3c5]['isIncorrect']=!0x0,_0x41d87d['add'](_0x57a474[_0x10f3c5]['pairId'])),_0x10f3c5--;}}}return _0x57a474['filter'](_0x6b6a29=>!_0x6b6a29['isIncorrect']);}['_removeUnsupportedChanges'](_0x2ac43c){const _0x1fee9e=this['editor']['model']['schema'];for(let _0x1c41e8=0x0;_0x1c41e8<_0x2ac43c['length'];_0x1c41e8++){if(!(_0x2ac43c[_0x1c41e8]['isAdded']||_0x2ac43c[_0x1c41e8]['isAddSuggestion']||_0x2ac43c[_0x1c41e8]['isRemoved']||_0x2ac43c[_0x1c41e8]['isRemoveSuggestion']))continue;if(0x0==_0x2ac43c[_0x1c41e8]['distance'])continue;const _0x4bb94f=_0x2ac43c[_0x1c41e8]['item'];_0x1fee9e['isBlock'](_0x4bb94f)||_0x1fee9e['isLimit'](_0x4bb94f)||(_0x2ac43c[_0x1c41e8]['isAdded']&&delete _0x2ac43c[_0x1c41e8]['isAdded'],_0x2ac43c[_0x1c41e8]['isAddSuggestion']&&delete _0x2ac43c[_0x1c41e8]['isAddSuggestion'],_0x2ac43c[_0x1c41e8]['isRemoveSuggestion']&&delete _0x2ac43c[_0x1c41e8]['isRemoveSuggestion'],_0x2ac43c[_0x1c41e8]['isRemoved']&&(_0x2ac43c[_0x1c41e8]['isIncorrect']=!0x0));}return _0x2ac43c['filter'](_0x17b93e=>!_0x17b93e['isIncorrect']);}['_makeModelFromTape'](_0x14d023,_0x527ae3,_0x315ad9){const _0x3cdbe1=new vt(),_0x531c15=[],_0x216794=new Map(),_0x3b4149=this['editor']['model'],_0x504ab4=_0x3b4149['schema'],_0x537648=[_0x3cdbe1],_0x302156={},_0x584b3d={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x50f7f4=null;const _0x4bcc3d=[0x0];for(let _0x4265eb=0x0;_0x4265eb<_0x14d023['length'];_0x4265eb++)if('elementStart'===_0x14d023[_0x4265eb]['type']){_0x14d023[_0x4265eb]['previousPosition']=_0x3b4149['createPositionFromPath'](_0x3cdbe1,_0x4bcc3d);const _0x38ef1c=new ut(_0x14d023[_0x4265eb]['item']['name'],_0x14d023[_0x4265eb]['item']['getAttributes']());_0x537648[0x0]['_appendChild'](_0x38ef1c),_0x4bcc3d['push'](0x0),_0x537648['unshift'](_0x38ef1c),_0x14d023[_0x4265eb]['nextPosition']=_0x3b4149['createPositionFromPath'](_0x3cdbe1,_0x4bcc3d);}else'elementEnd'===_0x14d023[_0x4265eb]['type']?(_0x537648['shift'](),_0x14d023[_0x4265eb]['previousPosition']=_0x3b4149['createPositionFromPath'](_0x3cdbe1,_0x4bcc3d),_0x4bcc3d['pop'](),_0x4bcc3d[_0x4bcc3d['length']-0x1]++,_0x14d023[_0x4265eb]['nextPosition']=_0x3b4149['createPositionFromPath'](_0x3cdbe1,_0x4bcc3d)):(_0x14d023[_0x4265eb]['previousPosition']=_0x3b4149['createPositionFromPath'](_0x3cdbe1,_0x4bcc3d),_0x50f7f4?_0x50f7f4['_data']+=_0x14d023[_0x4265eb]['item']['data']:_0x50f7f4=new gt(_0x14d023[_0x4265eb]['item']['data'],_0x14d023[_0x4265eb]['item']['getAttributes']()),_0x14d023[_0x4265eb+0x1]&&'text'===_0x14d023[_0x4265eb+0x1]['type']&&_0x2610e2(_0x50f7f4,_0x14d023[_0x4265eb+0x1]['item'])||(_0x537648[0x0]['_appendChild'](_0x50f7f4),_0x50f7f4=null),_0x4bcc3d[_0x4bcc3d['length']-0x1]+=_0x14d023[_0x4265eb]['item']['offsetSize'],_0x14d023[_0x4265eb]['nextPosition']=_0x3b4149['createPositionFromPath'](_0x3cdbe1,_0x4bcc3d));for(let _0x1cd00c=0x0;_0x1cd00c<_0x14d023['length'];_0x1cd00c++){const _0x41bf3d=_0x14d023[_0x1cd00c]['previousPosition'],_0x1a4924=_0x14d023[_0x1cd00c]['nextPosition'];for(const _0x391f19 of _0x14d023[_0x1cd00c]['markersStart'])_0x216794['set'](_0x391f19,{'start':_0x41bf3d,'end':null});_0x3c7c02('isRemoveSuggestion',_0x1cd00c,_0x41bf3d,_0x1a4924),_0x3c7c02('isAddSuggestion',_0x1cd00c,_0x41bf3d,_0x1a4924),_0x3c7c02('isRemoved',_0x1cd00c,_0x41bf3d,_0x1a4924),_0x3c7c02('isAdded',_0x1cd00c,_0x41bf3d,_0x1a4924);for(const _0x418bbc of _0x14d023[_0x1cd00c]['markersEnd']){const _0x375e1a=_0x216794['get'](_0x418bbc);_0x375e1a?_0x375e1a['end']=_0x1a4924:_0x216794['set'](_0x418bbc,{'start':_0x1a4924,'end':_0x1a4924});}}for(const [_0xe77671,_0x42130e]of _0x216794){const _0x300e22=this['editor']['model']['createRange'](_0x42130e['start'],_0x42130e['end']);_0x3cdbe1['markers']['set'](_0xe77671,_0x300e22);}return _0x531c15['sort']((_0x4fee4f,_0x19bce0)=>{const _0x49385b=_0x3cdbe1['markers']['get']('revision:'+_0x4fee4f['id']),_0x4b1d01=_0x3cdbe1['markers']['get']('revision:'+_0x19bce0['id']);return _0x49385b['start']['isBefore'](_0x4b1d01['start'])?-0x1:_0x49385b['start']['isAfter'](_0x4b1d01['start'])?0x1:_0x49385b['end']['isBefore'](_0x4b1d01['end'])?-0x1:_0x49385b['end']['isAfter'](_0x4b1d01['end'])?0x1:'add'===_0x4fee4f['type']?-0x1:0x1;}),{'root':_0x3cdbe1,'changes':_0x531c15};function _0x3c7c02(_0x165a7e,_0x244646,_0xc5727e,_0x246a99){const _0x4ee3d2=!!_0x14d023[_0x244646][_0x165a7e],_0x22461f=_0x4ee3d2?_0x14d023[_0x244646][_0x165a7e]['userId']:null,_0x49097d=_0x244646===_0x14d023['length']-0x1,_0x6df1c3=_0x584b3d[_0x165a7e][0x0],_0x534b4f=_0x504ab4['isObject'](_0x14d023[_0x244646]['item']);!_0x302156[_0x165a7e]&&_0x4ee3d2?_0x302156[_0x165a7e]={'start':_0xc5727e,'tapeItem':_0x14d023[_0x244646],'userId':_0x22461f,'type':_0x165a7e}:_0x302156[_0x165a7e]&&!_0x4ee3d2?(_0x302156[_0x165a7e]['end']=_0xc5727e,_0xea50f0(_0x302156[_0x165a7e]),_0x302156[_0x165a7e]=null):_0x302156[_0x165a7e]&&_0x4ee3d2&&_0x302156[_0x165a7e]['userId']!==_0x22461f&&(_0x302156[_0x165a7e]['end']=_0xc5727e,_0x6df1c3&&_0x6df1c3['userId']===_0x302156[_0x165a7e]['userId']||_0xea50f0(_0x302156[_0x165a7e]),_0x302156[_0x165a7e]={'start':_0xc5727e,'tapeItem':_0x14d023[_0x244646],'userId':_0x22461f,'type':_0x165a7e}),_0x302156[_0x165a7e]&&_0x534b4f&&('elementStart'!==_0x14d023[_0x244646]['type']||_0x6df1c3&&_0x6df1c3['userId']===_0x22461f||_0x584b3d[_0x165a7e]['unshift']({'userId':_0x22461f,'object':_0x14d023[_0x244646]['item'],'change':_0x302156[_0x165a7e]}),'elementEnd'===_0x14d023[_0x244646]['type']&&_0x6df1c3&&_0x6df1c3['object']===_0x14d023[_0x244646]['item']&&(_0x584b3d[_0x165a7e]['shift'](),_0x302156[_0x165a7e]=_0x6df1c3['change'])),_0x302156[_0x165a7e]&&_0x49097d&&(_0x302156[_0x165a7e]['end']=_0x246a99,_0xea50f0(_0x302156[_0x165a7e]),_0x302156[_0x165a7e]=null);}function _0xea50f0({start:_0x1b7b46,end:_0x3b80d0,tapeItem:_0x27a000,userId:_0x242d12,type:_0x49ff44}){const _0x4545c1=_0x27a000['item'],_0x523008=_0x3b4149['schema']['isBlock'](_0x4545c1)&&!_0x3b4149['schema']['isLimit'](_0x4545c1),_0x4ca7dd=_0x1b7b46['nodeAfter']==_0x3b80d0['parent']&&_0x3b80d0['isAtStart'];if(_0x523008&&_0x4ca7dd)return;const _0x32d7e0=_0x3b4149['createRange'](_0x1b7b46,_0x3b80d0),_0x4d31ae=_0x527ae3['get'](_0x242d12),_0x305238=new r({'author':_0x4d31ae,'type':'isAdded'==_0x49ff44||'isAddSuggestion'==_0x49ff44?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x49ff44||'isRemoveSuggestion'==_0x49ff44},'createdAt':new Date(),'rootName':_0x315ad9});_0x531c15['push'](_0x305238),_0x3cdbe1['markers']['set']('revision:'+_0x305238['id'],_0x32d7e0);}function _0x2610e2(_0x441d8c,_0x375569){const _0x5d5f82=_0x441d8c['getAttributes'](),_0x541e0e=_0x375569['getAttributes']();for(const _0x2358b1 of _0x5d5f82){if(_0x2358b1[0x1]!==_0x375569['getAttribute'](_0x2358b1[0x0]))return!0x1;_0x541e0e['next']();}return _0x541e0e['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x533a40=>{const _0x140888=_0x533a40['markerName']['split'](':')[0x1],_0x444647=this['_getChangeFromId'](_0x140888);if(!_0x444647)return null;const _0x45f810='add'==_0x444647['type']?'insertion':'deletion',_0x4f1011=['ck-suggestion-marker','ck-suggestion-marker-'+_0x45f810];return _0x444647['data']['isSuggestion']&&_0x4f1011['push']('ck-suggestion-marker-'+_0x45f810+'-new'),this['activeChange']==_0x444647&&_0x4f1011['push']('ck-suggestion-marker--active'),{'classes':_0x4f1011,'attributes':{'data-change-id':_0x140888}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x5bc394=>{_0x5bc394['on']('element:pre',(_0x344d29,_0x222038,_0x57ca35)=>{const _0x575069=_0x222038['viewItem']['getChild'](0x0);if(!_0x575069||!_0x575069['is']('element','code'))return;if(!_0x57ca35['consumable']['consume'](_0x575069,{'attributes':['vid_start','vid_end']}))return;const _0x3a2c98=_0x222038['modelRange']['start']['nodeAfter'];_0x57ca35['writer']['setAttribute']('vid_start',_0x575069['getAttribute']('vid_start'),_0x3a2c98),_0x57ca35['writer']['setAttribute']('vid_end',_0x575069['getAttribute']('vid_end'),_0x3a2c98);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x4cdb0a=>{_0x4cdb0a['on']('element',(_0x10363b,_0x52d2d2,_0x3fb236)=>{if(!_0x3fb236['consumable']['consume'](_0x52d2d2['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x52d2d2['modelRange']['isCollapsed'])return;const _0x515624=_0x52d2d2['modelRange']['start']['nodeAfter'];_0x515624['hasAttribute']('vid_start')||_0x515624['hasAttribute']('vid')||(_0x3fb236['writer']['setAttribute']('vid_start',_0x52d2d2['viewItem']['getAttribute']('vid_start'),_0x515624),_0x3fb236['writer']['setAttribute']('vid_end',_0x52d2d2['viewItem']['getAttribute']('vid_end'),_0x515624));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0xcacc3b=>_0xcacc3b['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x3e3370,[,_0xdd6578])=>{['vid_start','vid_end','vid']['includes'](_0xdd6578)&&(_0x3e3370['return']=!0x0,_0x3e3370['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x24f9d1=>{_0x24f9d1['on']('attribute:vid',(_0x12a0af,_0x5e367c,_0x310fce)=>{if('\x20'!=_0x5e367c['item']['data']||_0x5e367c['item']['parent']['maxOffset']>0x1)return;if(!_0x310fce['consumable']['consume'](_0x5e367c['item'],_0x12a0af['name']))return;const _0x382578=_0x310fce['writer'],_0x46fe27=_0x310fce['mapper']['toViewRange'](_0x5e367c['range']);_0x382578['wrap'](_0x46fe27,_0x382578['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x667dd4){const _0x40c214=_0x667dd4['plugins']['get']('RevisionViewer');return(_0xab2de5,_0x4940d8,_0x43c0de)=>{const _0x35cfb6=_0x4940d8['markerName']['split'](':')[0x1],_0x23d25a=_0x40c214['_getChangeFromId'](_0x35cfb6);if(!_0x23d25a)return null;const _0x653f1a='add'==_0x23d25a['type']?'split':'merge';if(!_0x43c0de['consumable']['test'](_0x4940d8['markerRange'],_0xab2de5['name']))return;const _0x362114=_0x4940d8['markerRange']['getWalker'](),_0x433c29=_0x4940d8['markerRange']['start'],_0x4801f1=_0x667dd4['model']['schema'];let _0x2881e3=null,_0x4add77=null,_0x4b708e=!0x1,_0x40df4b=!0x1;for(const _0x1702fd of _0x362114){const _0xb4bfb9=_0x1702fd['item'];_0x4b708e=_0x4b708e||_0x4801f1['isContent'](_0xb4bfb9);const _0x462432=_0x43c0de['mapper']['toViewElement'](_0xb4bfb9);if(_0x462432&&_0x462432['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1702fd['type']&&(_0x4801f1['isBlock'](_0xb4bfb9)&&!_0x4801f1['isLimit'](_0xb4bfb9)&&(_0xb4bfb9['nextSibling']||_0x433c29['isAtEnd']?_0x2881e3&&_0x2881e3['parent']==_0xb4bfb9||(_0x2881e3=_0xb4bfb9,_0x3ae342(_0x1702fd['previousPosition']),_0x40df4b=!0x0):_0x4add77=_0x4add77||_0x1702fd['previousPosition']));}function _0x3ae342(_0x540141){const _0x1e55ab=_0x43c0de['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x653f1a}),_0x5ec095=_0x43c0de['mapper']['toViewPosition'](_0x540141);_0x23d25a['data']['isSuggestion']&&_0x43c0de['writer']['addClass']('ck-suggestion-marker-'+_0x653f1a+'-new',_0x1e55ab),_0x40c214['activeChange']==_0x23d25a&&_0x43c0de['writer']['addClass']('ck-suggestion-marker--active',_0x1e55ab),_0x43c0de['writer']['insert'](_0x5ec095,_0x1e55ab),_0x43c0de['mapper']['bindElementToMarker'](_0x1e55ab,_0x4940d8['markerName']);}_0x4b708e||_0x40df4b||!_0x4add77||_0x3ae342(_0x4add77);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x303359,_0x8220af,_0x51c13b)=>{const _0x175439=_0x51c13b['mapper']['markerNameToElements'](_0x8220af['markerName']);if(_0x175439){for(const _0x52573e of _0x175439)(_0x52573e['hasClass']('ck-suggestion-marker-split')||_0x52573e['hasClass']('ck-suggestion-marker-merge'))&&(_0x51c13b['mapper']['unbindElementFromMarkerName'](_0x52573e,_0x8220af['markerName']),_0x51c13b['writer']['remove'](_0x52573e));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x3ab466,_0x11554e,_0x19f474)=>{const _0x4b6268=_0x11554e['markerName']['split'](':')[0x1],_0x7f4a2c=this['_getChangeFromId'](_0x4b6268);if(!_0x7f4a2c)return null;const _0x245d12='add'==_0x7f4a2c['type']?'split':'merge';if(_0x19f474['consumable']['test'](_0x11554e['markerRange'],_0x3ab466['name']))for(const _0x29d28f of _0x11554e['markerRange']['getItems']()){if(!_0x29d28f['is']('element','softBreak'))continue;const _0x12f17e=_0x19f474['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x245d12}),_0x2ceedc=_0x19f474['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x29d28f));_0x7f4a2c['data']['isSuggestion']&&_0x19f474['writer']['addClass']('ck-suggestion-marker-'+_0x245d12+'-new',_0x12f17e),this['activeChange']==_0x7f4a2c&&_0x19f474['writer']['addClass']('ck-suggestion-marker--active',_0x12f17e),_0x19f474['writer']['insert'](_0x2ceedc,_0x12f17e),_0x19f474['mapper']['bindElementToMarker'](_0x12f17e,_0x11554e['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x17275c=>{for(const _0x378405 of this['editor']['model']['document']['getRootNames']()){const _0x3d6bcb=this['editor']['model']['document']['getRoot'](_0x378405),_0x36ed9=this['editor']['editing']['view']['document']['getRoot'](_0x378405);if(_0x36ed9){const _0x4e292d=_0x3d6bcb['getAttribute']('revisionHistoryAttachChange');if(_0x17275c['removeAttribute']('data-change-id',_0x36ed9),_0x17275c['removeClass']('ck-revision-history-root-add',_0x36ed9),_0x17275c['removeClass']('ck-revision-history-root-remove',_0x36ed9),_0x17275c['removeClass']('ck-revision-history-root--active',_0x36ed9),_0x4e292d){const _0x4f68d3=this['_getChangeFromId'](_0x4e292d);if(!_0x4f68d3)return null;_0x17275c['setAttribute']('data-change-id',_0x4e292d,_0x36ed9),_0x17275c['addClass']('ck-revision-history-root-'+_0x4f68d3['type'],_0x36ed9),this['activeChange']==_0x4f68d3&&_0x17275c['addClass']('ck-revision-history-root--active',_0x36ed9);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x314b6b=>'revision-comment:'+_0x314b6b,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x2dd1d1=>'revision-suggestion:'+_0x2dd1d1,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x35f09f=>({'name':'suggestion:'+_0x35f09f,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x55bee0=>{const _0x535bfd=_0x55bee0['markerName']['split'](':')[0x1];return'insertion'!=_0x535bfd&&'deletion'!=_0x535bfd?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x535bfd]};}}),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',(_0x54dc69,_0x1dce95,_0x864cdb)=>{const _0x2e0dba=_0x864cdb['mapper']['markerNameToElements'](_0x1dce95['markerName']);if(_0x2e0dba){for(const _0x5c2131 of _0x2e0dba)_0x5c2131['is']('uiElement')&&(_0x864cdb['mapper']['unbindElementFromMarkerName'](_0x5c2131,_0x1dce95['markerName']),_0x864cdb['writer']['remove'](_0x5c2131));}},{'priority':'high'});}['_getChangeFromId'](_0x18d880){return this['_changeIdToChange']['get'](_0x18d880);}['_getViewForChange'](_0x431313){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x431313),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0xb7a825,_0x4ae631,_0x55710f,_0x32ae43)=>{_0x32ae43&&this['_balloon']['remove'](_0x32ae43),_0x55710f&&(this['_balloon']['add']({'view':_0x55710f,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x7234b6=this['editor']['editing'],_0x5892a1=this['_getChangeFromId'](_0x55710f['changeId']);let _0x2e7ef6;if(_0x5892a1['data']['isOnRoot']){const _0x3f1bc2=_0x7234b6['view']['getDomRoot'](_0x5892a1['rootName']);_0x2e7ef6=Array['from'](_0x3f1bc2['getClientRects']());}else{const _0x743d0f=this['editor']['model']['markers']['get']('revision:'+_0x55710f['changeId']);_0x2e7ef6=Array['from'](_0x7234b6['mapper']['markerNameToElements'](_0x743d0f['name']))['map'](_0x3e89f5=>_0x7234b6['view']['domConverter']['mapViewToDom'](_0x3e89f5))['map'](_0x155e3b=>Array['from'](_0x155e3b['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x2e7ef6[0x0];return _0x2e7ef6['find'](_0x312372=>_0x312372['top']-0x3<=this['_activeViewTarget']['y']&&_0x312372['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x312372['left']-0x3<=this['_activeViewTarget']['x']&&_0x312372['right']+0x3>=this['_activeViewTarget']['x'])||_0x2e7ef6[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x228b47,_0x21a744,_0x1bb3cb,_0x2238c5)=>{this['activeView']=_0x1bb3cb?this['_getViewForChange'](_0x1bb3cb):null,this['editor']['model']['change'](()=>{const _0x3a95b5=this['editor']['editing'];_0x2238c5&&(_0x2238c5['data']['isOnRoot']?_0x3a95b5['view']['change'](_0x53664c=>{_0x53664c['removeClass']('ck-revision-history-root--active',_0x3a95b5['view']['document']['getRoot'](_0x2238c5['rootName']));}):_0x3a95b5['reconvertMarker']('revision:'+_0x2238c5['id'])),_0x1bb3cb&&(_0x1bb3cb['data']['isOnRoot']?_0x3a95b5['view']['change'](_0x5af7ac=>{_0x5af7ac['addClass']('ck-revision-history-root--active',_0x3a95b5['view']['document']['getRoot'](_0x1bb3cb['rootName']));}):_0x3a95b5['reconvertMarker']('revision:'+_0x1bb3cb['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x475c63,_0x174d17)=>{if(this['activeChange'])return;const _0x216cfd=this['_findChangeIdFromDomTarget'](_0x174d17['target']),_0x4e3036=this['_changeIdToChange']['get'](_0x216cfd);_0x4e3036?(this['_activeViewTarget']={'x':_0x174d17['domEvent']['x'],'y':_0x174d17['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x4e3036)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x3e95ed,_0x480d16)=>{const _0x4ab120=this['_findChangeIdFromDomTarget'](_0x480d16['target']),_0x436d0c=this['_changeIdToChange']['get'](_0x4ab120);_0x436d0c?(this['_activeViewTarget']={'x':_0x480d16['domEvent']['x'],'y':_0x480d16['domEvent']['y']},_0x436d0c===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x436d0c):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x5966cf){do{const _0x2699ab=_0x5966cf['getAttribute']('data-change-id');if(_0x2699ab)return _0x2699ab;_0x5966cf=_0x5966cf['parent'];}while(_0x5966cf);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x4ac327=>{for(const _0x28814c of this['editor']['model']['markers'])_0x4ac327['removeMarker'](_0x28814c);});}}function X(_0x4071e8,_0x2598f8){return(_0x13ed8e,_0x58cfe7,_0x958a3b)=>{if(!_0x958a3b['consumable']['test'](_0x58cfe7['markerRange'],_0x13ed8e['name']))return;const _0x2f63dc=_0x58cfe7['markerRange']['getWalker'](),_0x3dcb2d=_0x58cfe7['markerRange']['start'],_0x15f365=_0x4071e8['model']['schema'];let _0x3da5b6=null,_0x3a4428=null,_0x3478c5=!0x1,_0x88e134=!0x1;for(const _0x41917c of _0x2f63dc){const _0x283557=_0x41917c['item'];_0x3478c5=_0x3478c5||_0x15f365['isContent'](_0x283557);const _0x4d72e4=_0x958a3b['mapper']['toViewElement'](_0x283557);if(_0x4d72e4&&_0x4d72e4['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x41917c['type']&&(_0x15f365['isBlock'](_0x283557)&&!_0x15f365['isLimit'](_0x283557)&&(_0x283557['nextSibling']||_0x3dcb2d['isAtEnd']?_0x3da5b6&&_0x3da5b6['parent']==_0x283557||(_0x3da5b6=_0x283557,_0x2ed40b(_0x41917c['previousPosition']),_0x88e134=!0x0):_0x3a4428=_0x3a4428||_0x41917c['previousPosition']));}function _0x2ed40b(_0x15ccf0){const _0xbc5963=_0x958a3b['mapper']['toViewPosition'](_0x15ccf0),_0x7cab6=_0x958a3b['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x2598f8});_0x958a3b['writer']['insert'](_0xbc5963,_0x7cab6),_0x958a3b['mapper']['bindElementToMarker'](_0x7cab6,_0x58cfe7['markerName']);}_0x3478c5||_0x88e134||!_0x3a4428||_0x2ed40b(_0x3a4428);};}class mt extends _0x557798{constructor(_0x19dfdb){super(_0x19dfdb);const _0x16cfbc=_0x19dfdb['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x16cfbc,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x16cfbc,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x5129b9=this['editor'],_0x35d47f=_0x5129b9['plugins']['get'](m),_0x287c47=_0x35d47f['isReady']?_0x35d47f['diff']['newRevisionId']:null;_0x5129b9['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x287c47);}['refresh'](){const {isReady:_0x1844cc,isEnabled:_0x32a450,repository:_0xd5a53b,diff:_0x249423}=this['editor']['plugins']['get'](m),_0x53c986=_0x249423&&_0xd5a53b['getLaterVisibleRevision'](_0x249423['newRevisionId']);this['isEnabled']=_0x1844cc&&_0x32a450&&Boolean(_0x53c986);}}class wt extends _0x557798{['_step'];constructor(_0x1f7cc6,{direction:_0x2cc209}){super(_0x1f7cc6);const _0x3a882b=_0x1f7cc6['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x2cc209?0x1:-0x1,this['listenTo'](_0x3a882b,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x3a882b,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x3a882b,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x35c341=this['editor'],_0x1fd294=_0x35c341['plugins']['get'](m),{isNavigationMode:_0x2c88d9,currentChangeNumber:_0x18e8bb}=_0x1fd294;let _0x432761;if(_0x1fd294['activeChange']=_0x2c88d9?_0x1fd294['diff']['changes']['get'](_0x18e8bb+this['_step']):_0x1fd294['diff']['changes']['first'],_0x1fd294['activeChange']['data']['isOnRoot'])_0x432761=_0x35c341['editing']['view']['getDomRoot'](_0x1fd294['activeChange']['rootName']);else{const _0x3e6de9=_0x35c341['model']['markers']['get']('revision:'+_0x1fd294['activeChange']['id']);_0x432761=_0x29c24a(_0x35c341['editing'],_0x3e6de9);}_0x5506aa({'target':_0x432761,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x5964ef,currentChangeNumber:_0x56333e,numberOfChanges:_0x46e20b,isReady:_0x259876,isEnabled:_0x53997c}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x53997c&&_0x259876&&_0x46e20b)&&(!_0x5964ef||(0x1===this['_step']?_0x56333e<_0x46e20b-0x1:_0x56333e>0x0));}}class li extends ts{constructor(_0x7b71ea){super(_0x7b71ea);const _0x42c43f=this['bindTemplate'],_0x385cc3=new te(_0x7b71ea),_0x991362=new te(_0x7b71ea);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',(_0x38bd67,_0x5a7c68)=>_0x38bd67&&_0x5a7c68>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x41a479,_0x28ea69,_0x4eadbb,_0x494acf)=>{if(!_0x41a479)return g(_0x7b71ea,'Loading...');if(!_0x4eadbb)return g(_0x7b71ea,'No\x20changes');const _0x1897e6=g(_0x7b71ea,'NUMBER_OF_CHANGES',_0x4eadbb);return _0x494acf?g(_0x7b71ea,'X_OF_Y_CHANGES',[_0x28ea69+0x1,_0x4eadbb]):_0x1897e6;}),_0x385cc3['set']({'label':g(_0x7b71ea,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x5e7da9}),_0x991362['set']({'label':g(_0x7b71ea,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x1491d3}),_0x385cc3['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x991362['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x385cc3['on']('execute',()=>this['fire']('execute','backward')),_0x991362['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',_0x42c43f['if']('_isStatusLabelVisible','ck-hidden',_0x101576=>!_0x101576)]},'children':[{'text':_0x42c43f['to']('isNavigationMode',_0x1c4941=>_0x1c4941?g(_0x7b71ea,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x7b71ea,'Total')+':\x20')}]},{'text':_0x42c43f['to']('_statusText')}]},new _0xf40071(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x385cc3,_0x991362]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x211636{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0xbd5c75=this['editor']['editing']['view'];_0xbd5c75['change'](_0x1ced8b=>{for(const _0x1be3a2 of _0xbd5c75['document']['roots'])_0x1ced8b['addClass'](le,_0x1be3a2);});}['hide'](){const _0x4b79cf=this['editor']['editing']['view'];_0x4b79cf['change'](_0x1614fe=>{for(const _0xdb1109 of _0x4b79cf['document']['roots'])_0x1614fe['removeClass'](le,_0xdb1109);});}}class R extends _0x211636{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,ge];}['init'](){const _0x395a03=this['editor'],_0x6b7a9d=_0x395a03['plugins']['get'](m),_0x4ce155=_0x395a03['plugins']['get'](ge);_0x395a03['ui']['componentFactory']['add']('exitToEditing',_0x395e92=>{const _0x2cb25d=new te(_0x395e92);return _0x2cb25d['set']({'label':g(_0x395e92,'Back\x20to\x20editing'),'icon':_0x10e86f,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x2cb25d,'execute',()=>{_0x395a03['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x2cb25d;}),_0x395a03['ui']['componentFactory']['add']('restoreRevision',_0x2343ed=>{const _0x484e95=new te(_0x2343ed);return _0x484e95['set']({'label':g(_0x2343ed,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x484e95['bind']('isEnabled')['to'](_0x395a03['commands']['get']('restoreRevision')),this['listenTo'](_0x484e95,'execute',()=>_0x395a03['execute']('restoreRevision')),_0x484e95;}),_0x395a03['ui']['componentFactory']['add']('changesNavigation',_0x4c1dfa=>{const _0x13014f=new li(_0x4c1dfa),_0x189b58=_0x395a03['commands']['get']('showPreviousChange'),_0x5486e5=_0x395a03['commands']['get']('showNextChange');return _0x13014f['bind']('isBackwardNavigationEnabled')['to'](_0x189b58,'isEnabled'),_0x13014f['bind']('isForwardNavigationEnabled')['to'](_0x5486e5,'isEnabled'),_0x13014f['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x6b7a9d),this['listenTo'](_0x13014f,'execute',(_0x5c77e1,_0x202b77)=>{_0x395a03['execute']('forward'===_0x202b77?'showNextChange':'showPreviousChange');}),_0x13014f;}),_0x4ce155['show'](),_0x6b7a9d['on']('change:isReady',(_0x3dd757,_0x39b370,_0x46f1bc)=>{_0x46f1bc?_0x4ce155['hide']():_0x4ce155['show']();});}}class at extends _0x396cf7{['_resizeObserver']=null;constructor(_0x24ac46,_0x1ccc38){super(_0x24ac46,_0x1ccc38);const _0xee390b=this['bindTemplate'];this['set']({'label':g(_0x24ac46,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x24ac46,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0xee390b['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 _0xb70c37=this['fieldView']['element'];this['_tooltipString']=_0xb70c37['scrollWidth']>_0xb70c37['clientWidth']&&_0xb70c37['value']||'';}}class oi extends ts{constructor(_0x4d79d7,_0x143c08,_0x14c307){super(_0x4d79d7);const _0x504edb=new _0x593adf();_0x504edb['set']({'content':_0x40a776,'viewBox':'0\x200\x2011\x2010'});const _0x384583=['ck','ck-revision-history-sidebar__revision-author'];_0x14c307&&_0x384583['push']('ck-revision-history-sidebar__revision-author_creator');const _0x15e8d2=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x4d79d7,_0x14c307?'Revision\x20creator':'Revision\x20author')},'children':[_0x504edb,_0x143c08['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x384583},'children':_0x15e8d2});}}function ai(_0x3714f5,_0x3c99d8){const _0x28f42f=_0x3714f5['bindTemplate'],_0x3c43f6=_0x3714f5['locale'],_0x101009=_0x93f8f9(_0x3c43f6);_0x101009['panelPosition']='sw';const _0x4d1f84=function(_0x40dd3f,_0x3bd020){const _0x4d5b50=function(_0x3242f2,_0x128bcf){const _0x22ca5b=_0x3242f2['locale'],_0x5351cd={'Compare\x20against\x20selected':g(_0x22ca5b,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x22ca5b,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x22ca5b,'Restore\x20this\x20revision')};return _0x128bcf['map'](_0x3718e1=>{const _0x5be6f2=_0x5351cd[_0x3718e1['name']];return _0x5be6f2&&_0x5be6f2!==_0x3718e1['name']&&(_0x3718e1['name']=_0x5be6f2),_0x3718e1;});}(_0x40dd3f,_0x3bd020),_0x501fb0=new _0x284c5d();for(const _0x59a393 of _0x4d5b50){const _0x317949={'type':'button','model':new to({'label':_0x59a393['name'],'class':_0x59a393['class'],'withText':!0x0,'role':'menuitem','_action':_0x59a393['action']})};_0x317949['model']['bind']('isEnabled')['to'](_0x40dd3f,'isActionsDropdownOpen',_0x4cb753=>'function'!=typeof _0x59a393['isEnabled']||(!_0x4cb753||_0x59a393['isEnabled'](_0x40dd3f))),_0x501fb0['add'](_0x317949);}return _0x501fb0;}(_0x3714f5,_0x3c99d8);return _0x3714f5['bind']('isActionsDropdownOpen')['to'](_0x101009,'isOpen'),_0x101009['buttonView']['set']({'label':g(_0x3c43f6,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x7b1e92}),_0x101009['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x28f42f['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x28f42f['to'](_0xefe49d=>_0xefe49d['stopPropagation']())}}),_0x101009['on']('execute',_0x4b8ac2=>{_0x3714f5['isReady']&&'function'==typeof _0x4b8ac2['source']['_action']&&_0x4b8ac2['source']['_action'](_0x3714f5);}),_0x542dea(_0x101009,_0x4d1f84,{'role':'menu'}),_0x101009['listenTo'](_0x3714f5,'change:isActionsDropdownOpen',(_0x5e25c1,_0x3bfadf,_0x4d947c)=>{if(_0x4d947c)for(const _0x19d4d1 of _0x101009['listView']['items']){const _0x5118dd=_0x19d4d1['children']['first'],_0x22050b=_0x3c99d8['find'](_0x51d0f8=>_0x51d0f8['action']===_0x5118dd['_action'])['isVisible'];_0x19d4d1['isVisible']=void 0x0===_0x22050b||_0x22050b(_0x3714f5);}}),_0x101009;}class si extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x183f1e(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x9a3b7c,_0x5c9451,_0x534563,_0x4ca39f){super(_0x9a3b7c);const _0x159d34=this['bindTemplate'],_0x58385b=function(_0x38de82,_0x56ecd5){const _0x12a11c=Array['from'](_0x56ecd5['authors'])['filter'](_0x48d172=>_0x48d172!=_0x56ecd5['creator']);return _0x56ecd5['creator']&&_0x12a11c['unshift'](_0x56ecd5['creator']),_0x12a11c['map'](_0x5e78f9=>new oi(_0x38de82,_0x5e78f9,_0x5e78f9==_0x56ecd5['creator']));}(_0x9a3b7c,_0x5c9451);this['id']=_0x5c9451['id'],this['_revision']=_0x5c9451,this['_requireRevisionName']=_0x4ca39f,this['bind']('name','createdAt')['to'](_0x5c9451),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x15aa14=>{return _0xda277d=_0x9a3b7c['uiLanguage'],(_0x59de7c=_0x15aa14)['toLocaleDateString'](_0xda277d,{'month':'long','day':'numeric'})+',\x20'+_0x59de7c['toLocaleTimeString'](_0xda277d,{'hour':'numeric','minute':'numeric'});var _0xda277d,_0x59de7c;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new at(_0x9a3b7c,_0x2bcaae),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x10a409=>_0x10a409||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x3924ad,_0x4115c5)=>_0x3924ad&&_0x4115c5),this['revisionActionsView']=_0x534563&&_0x534563['length']?ai(this,_0x534563):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x159d34['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x159d34['if']('isEnabled','ck-disabled',_0x48992d=>!_0x48992d),_0x159d34['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x159d34['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x159d34['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':_0x159d34['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':_0x58385b}]},this['revisionActionsView']],'on':{'click':_0x159d34['to'](_0x255b48=>{_0x255b48['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x578872=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x578872,'change',()=>{this['_requireRevisionName']&&!_0x578872['value']||this['fire']('setName',{'id':this['id'],'name':_0x578872['value']}),_0x578872['value']||(_0x578872['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function ti(_0x46321c,_0x45a90e){const _0x3a50f2=_0x350976['fromJSDate'](_0x46321c)['setLocale'](_0x45a90e),_0x3e7e97=_0x350976['local'](),_0x143c2f=_0x3e7e97['minus']({'days':0x1})['startOf']('day');let _0x4ab413,_0x211eab;return _0x3a50f2['hasSame'](_0x3e7e97,'day')?(_0x4ab413=_0x3a50f2['startOf']('day')['toJSDate'](),_0x211eab=_0x3a50f2['toRelativeCalendar']()):_0x3a50f2['hasSame'](_0x143c2f,'day')?(_0x4ab413=_0x143c2f['toJSDate'](),_0x211eab=_0x3a50f2['toRelativeCalendar']()):_0x3a50f2['hasSame'](_0x3e7e97,'week')?(_0x4ab413=_0x3a50f2['startOf']('week')['toJSDate'](),_0x211eab=_0x3a50f2['weekdayLong']||''):_0x3a50f2['hasSame'](_0x3e7e97,'year')?(_0x4ab413=_0x3a50f2['startOf']('month')['toJSDate'](),_0x211eab=_0x3a50f2['monthLong']||''):(_0x4ab413=_0x3a50f2['startOf']('year')['toJSDate'](),_0x211eab=String(_0x3a50f2['year'])),{'startDate':_0x4ab413,'localizedPeriodName':_0x211eab};}class ei extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x34a4fb,_0x31439d,_0x45eb53,_0x47b309){super(_0x34a4fb);const _0x40ed13=ti(_0x31439d,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x31439d,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x45eb53,this['_requireRevisionName']=_0x47b309,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':_0x40ed13}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x156e55){const _0x169102=new si(this['locale'],_0x156e55,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x169102);}['removeRevision'](_0x3f53e4){const _0x17bcf7=this['revisionViews']['find'](_0x30396e=>_0x30396e['id']===_0x3f53e4['id']);this['revisionViews']['remove'](_0x17bcf7);}}class cs extends ts{constructor(_0x39534d){super(_0x39534d);const _0x421bb8=new _0x593adf();_0x421bb8['content']=_0x1d1a96,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x421bb8,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[g(_0x39534d,'Revision\x20history')]}]});}}class ii extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x19ffca,_0x8703a2,_0xbeb34f,_0x55a792){super(_0x19ffca);const _0x361bf6=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x8703a2,this['_revisionActions']=_0xbeb34f,this['_requireRevisionName']=_0x55a792,this['on']('select',(_0x22e172,_0x1a36b6)=>{this['fire']('revisionSelected',_0x1a36b6);}),this['on']('setName',(_0x4276ec,_0x2e3bbf)=>{this['fire']('revisionSetName',_0x2e3bbf);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new cs(_0x19ffca),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x361bf6['if']('isEnabled','ck-disabled',_0x1b21ea=>!_0x1b21ea)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x6aada1 of this['_revisions'])this['_addRevision'](_0x6aada1);this['_revisions']['on']('add',(_0x52888e,_0x197097)=>{this['_addRevision'](_0x197097);}),this['_revisions']['on']('remove',(_0x2e5035,_0x5cce8a)=>{this['_removeRevision'](_0x5cce8a);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x3d853b=>_0x3d853b['revisionViews']['map'](_0x39d8a1=>_0x39d8a1))['flat']();}['selectRevision'](_0x10c750){for(const _0xe16539 of this['revisionViews'])_0x10c750&&_0x10c750['id']===_0xe16539['id']?_0xe16539['select']():_0xe16539['deselect']();}['highlightRevisions'](_0x3eb678){for(const _0x121b66 of this['revisionViews'])_0x3eb678['some'](({id:_0x28450a})=>_0x28450a===_0x121b66['id'])?_0x121b66['highlight']():_0x121b66['unhighlight']();}['_addRevision'](_0x545643){const _0x5ae216=ti(_0x545643['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x48952e=this['timePeriodViews']['get'](0x0);_0x48952e&&_0x48952e['startDate']['getTime']()===_0x5ae216['getTime']()||(_0x48952e=new ei(this['locale'],_0x5ae216,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x48952e)),_0x48952e['addRevision'](_0x545643);}['_removeRevision'](_0x57905e){const _0x45e9bb=ti(_0x57905e['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x45e9bb)['removeRevision'](_0x57905e);}['_getTimePeriodViewByStartDate'](_0x8ea6d7){return this['timePeriodViews']['find'](_0x4696da=>_0x4696da['startDate']['getTime']()===_0x8ea6d7['getTime']());}}class d extends _0x211636{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
27
27
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
|
-
pt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m];}constructor(
|
|
29
|
-
_0x1af361(_0x484ca4){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x186948,_0x33b5a5){super(_0x33b5a5),this['sourceElement']=_0x186948,this['model']['document']['createRoot']();const _0x4b0cea=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x4b0cea);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x16ce4a,_0x5e13d8){const _0xf2fe5=new this(_0x16ce4a,_0x5e13d8);return await _0xf2fe5['initPlugins'](),await _0xf2fe5['ui']['init'](_0x16ce4a),await _0xf2fe5['data']['init'](_0xf2fe5['config']['get']('initialData')||''),_0xf2fe5['fire']('ready'),_0xf2fe5;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class _t extends _0x751a85{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x402c71){function _0x19e60b(_0xc97b4b){return _0xc97b4b['map'](_0x2d7904=>String['fromCharCode'](_0x2d7904))['join']('');}super(_0x402c71),this['result']='end',_0x402c71[_0x19e60b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x19e60b([0x76,0x69,0x65,0x77])][_0x19e60b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x19e60b([0x61,0x75,0x74,0x6f]),_0x402c71[_0x19e60b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x19e60b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x19e60b([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x19e60b([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x19e60b([0x6f,0x6b])});}}class k extends _0x751a85{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x18878f){if(super(_0x18878f),!this['editor']['config']['get']('revisionHistory'))throw new _0x3aa2cf('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x4704dd=>this['_showRevisionViewer']({..._0x4704dd,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x22dead=>this['_closeRevisionViewer'](_0x22dead)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x4cf9d4=>this['_restoreRevision'](_0x4cf9d4)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x2c07ba){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x2c07ba;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x4ce20f){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x4ce20f);}['getRevision'](_0x573ec3){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x573ec3);}['getRevisions'](_0xceeada){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0xceeada||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x133c2a=this['editor'],_0xdc2ad6=_0x3f31b0(_0x133c2a,p),_0x527fdf=_0x133c2a['plugins']['get']('RevisionTracker'),_0x172785=_0x133c2a['plugins']['get']('Users')['users'];return _0xdc2ad6['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0xdc2ad6['lazyRoots'],(_0xdc2ad6['plugins']['push'](_t,m,R,class extends _0x751a85{static get['requires'](){return[m,'Users'];}['init'](){const _0x10f3e1=this['editor']['plugins']['get']('Users');for(const _0x20c654 of _0x172785)_0x20c654['isAnonymous']||_0x10f3e1['getUser'](_0x20c654['id'])||_0x10f3e1['addUser'](_0x20c654);const _0x39e8b7=_0x527fdf['repository']['getRevisions']();let _0x3a2898=null;const _0x22e71f=this['editor']['plugins']['get']('RevisionViewer');_0x22e71f['adapter']=_0x527fdf['adapter'],_0x22e71f['bind']('isEnabled')['to'](_0x527fdf),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x133c2a,'isReadOnly',_0x4bfb61=>!_0x4bfb61);for(const _0x81da03 of _0x39e8b7){const _0x9f93aa=null===_0x81da03['creator'];if(_0x9f93aa&&_0x81da03['toVersion']===_0x81da03['fromVersion'])continue;const _0x588447=_0x81da03['toJSON']();_0x22e71f['addRevisionData'](_0x588447,(_0x1fea2b,_0x5a583a,_0x427755)=>{if(_0x9f93aa){if(_0x3a2898)_0x3a2898['_update'](_0x1fea2b,_0x5a583a);else{if(!_0x5a583a){const _0x41693b=_0x427755['toJSON']();_0x41693b['id']=_0x1a9a0c(),_0x527fdf['saveRevision'](_0x41693b,_0x427755['toVersion'])['then'](_0x24120e=>{_0x3a2898=_0x24120e;});}}}else _0x81da03['_update'](_0x1fea2b,_0x5a583a);});}}},d),_0xdc2ad6);}['_enhanceShowRevisionViewerCallback'](){const _0x6e47cc=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x4ec6fc=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x58d151=this['editor']['plugins']['get']('Autosave');await _0x58d151['save']();}else await _0x4ec6fc['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0xc7eaa5=this['editor']['plugins']['get']('Dialog');_0xc7eaa5['isOpen']&&_0xc7eaa5['hide']();}const _0x20a820=this['_getRevisionViewerEditorConfig']();return _0x6e47cc(_0x20a820)['then'](_0x100d8d=>{return(this['_viewerEditor']=_0x100d8d,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'),_0x100d8d);})['catch'](_0x230d7e=>(console['error'](_0x230d7e),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x39bde3=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'](),_0x39bde3(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x152e8e=this['editor']['plugins']['get']('Annotations');_0x152e8e['refreshVisibility'](),_0x152e8e['refreshPositioning']();}})));}['_showRevisionViewer'](_0x4cbbc4){const _0x27c795=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x1d86b8=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x364a25=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x364a25,_0x4cbbc4)['then'](_0x112b77=>(_0x1d86b8['style']['display']='block',_0x27c795['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x112b77));}['_closeRevisionViewer'](_0x25774){const _0x3a4035=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x3a4035['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x25774['destroy']();}async['_restoreRevision'](_0x2fc314){const _0x448d39=this['editor'],_0x46a0a6=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x41fbb7=_0x448d39['plugins']['get']('RevisionTracker'),_0x3c411f=_0x448d39['plugins']['get']('RevisionHistoryUtils'),_0x5bfb4b=_0x46a0a6['repository']['getRevision'](_0x2fc314);let _0xfe1fa1,_0x203089,_0x1c5c52;try{await _0x3c411f['loadRevisionData'](_0x5bfb4b,this['adapter']),_0xfe1fa1=_0x3c411f['getRevisionDocumentData'](_0x5bfb4b),_0x203089=_0x3c411f['getRevisionRootsAttributes'](_0x5bfb4b);}catch(_0x57e19b){return void console['error'](_0x57e19b);}_0x448d39['model']['change'](_0x5bba1d=>{for(const _0x454bb3 of Array['from'](_0x448d39['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x5bba1d['removeMarker'](_0x454bb3);}),_0x46a0a6['isReady']=!0x1,_0x448d39['model']['enqueueChange'](_0x41bd2f=>{_0x41bd2f['setSelection'](null),_0x41bd2f['removeSelectionAttribute'](_0x448d39['model']['document']['selection']['getAttributeKeys']());const _0x4cab76=Object['keys'](_0xfe1fa1);for(const _0x4116fe of _0x448d39['model']['document']['roots'])'$graveyard'!=_0x4116fe['rootName']&&_0x4116fe['isAttached']()&&!_0x4cab76['includes'](_0x4116fe['rootName'])&&_0x41bd2f['detachRoot'](_0x4116fe);for(const _0x55aa7e of _0x4cab76){let _0x2308e7=_0x448d39['model']['document']['getRoot'](_0x55aa7e);_0x2308e7&&_0x2308e7['isAttached']()||(_0x2308e7=_0x41bd2f['addRoot'](_0x55aa7e));const _0x36bbb1=_0x203089[_0x55aa7e],_0x11ac4c=Object['keys'](_0x36bbb1),_0x54681d=_0xfe1fa1[_0x55aa7e];for(const _0x2b0841 of _0x2308e7['getAttributeKeys']())_0x11ac4c['includes'](_0x2b0841)||_0x41bd2f['removeAttribute'](_0x2b0841,_0x2308e7);for(const _0x4329cd of _0x11ac4c)_0x41bd2f['setAttribute'](_0x4329cd,_0x203089[_0x55aa7e][_0x4329cd],_0x2308e7);_0x41bd2f['remove'](_0x41bd2f['createRangeIn'](_0x2308e7)),_0x41bd2f['insert'](_0x448d39['data']['parse'](_0x54681d,_0x2308e7),_0x2308e7,0x0);}});const _0x1477ef=g(_0x448d39['locale'],'Restored');if(_0x5bfb4b['name'])_0x1c5c52=-0x1==_0x5bfb4b['name']['indexOf'](_0x1477ef)?_0x1477ef+':\x20'+_0x5bfb4b['name']:_0x5bfb4b['name'];else _0x1c5c52=_0x1477ef+':\x20'+(_0x5bfb4b['createdAt']['toLocaleDateString'](_0x448d39['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x5bfb4b['createdAt']['toLocaleTimeString'](_0x448d39['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x41fbb7['saveRevision']({'name':_0x1c5c52}),_0x46a0a6['isReady']=!0x0,_0x448d39['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,V as RevisionHistoryUtils,u as RevisionTracker,m as RevisionViewer,w as RevisionViewerEditor,ge as RevisionViewerLoadingOverlay,R as RevisionViewerUI,I as RevisionsRepository,d as RevisionsSidebar};
|
|
28
|
+
pt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m];}constructor(_0x2469cf){super(_0x2469cf),this['_revisionViewer']=_0x2469cf['plugins']['get'](m),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x314b14=this['_revisionsRepository']['_revisions'],_0x463d6e=this['_createRevisionActions'](),_0x5cc708=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ii(this['editor']['locale'],_0x314b14,_0x463d6e,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',(_0x50e665,_0x5c278a)=>{_0x5c278a['revisionViews']['on']('add',(_0x10258d,_0x8a277e)=>{_0x8a277e['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)),_0x5cc708['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x502599=this['_revisionsRepository']['getRevision'](0x0);if(_0x502599){const _0x2f0277=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x502599['id']);this['_revisionViewer']['compare'](_0x502599,_0x2f0277);}}['_handleRevisionSelected'](_0x321821,_0x1090f1){const _0x431a56=this['_revisionsRepository']['getRevision'](_0x1090f1['id']),_0x11b338=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x431a56['id']);this['_revisionViewer']['compare'](_0x431a56,_0x11b338);}['_handleRevisionSetName'](_0x5dc607,_0x399b02){this['_revisionsRepository']['getRevision'](_0x399b02['id'])['setName'](_0x399b02['name']);}['_handleDiffChange'](_0x2e1880,_0x1750ae,_0x4a82d5){const _0x454eb4=this['_revisionsRepository']['getRevisionsInDiff'](_0x4a82d5);_0x454eb4['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x454eb4),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x454eb4[0x0]));}['_createRevisionActions'](){const _0x381fbf=this['editor'],_0x1e7149=d['availableRevisionActions'],_0x5094f0=_0x381fbf['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x5094f0['length'])return _0x5094f0['map'](_0x1a3be3=>{const _0x86eb05='string'==typeof _0x1a3be3?Object['assign']({},_0x1e7149[_0x1a3be3]):_0x1a3be3;return _0x86eb05['action']=_0x86eb05['action']['bind'](this,_0x381fbf),_0x86eb05['isVisible']&&(_0x86eb05['isVisible']=_0x86eb05['isVisible']['bind'](this,_0x381fbf)),_0x86eb05;});}}function pt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x23f395},_0x85b1ab)=>{const _0xc1f3cf=_0x23f395['get'](m),_0x40da3c=_0xc1f3cf['repository'];let _0x51cfa7=_0xc1f3cf['diff']['newRevisionId'],_0x260f40=_0x85b1ab['id'];_0x40da3c['getIndex'](_0x51cfa7)>_0x40da3c['getIndex'](_0x260f40)&&([_0x51cfa7,_0x260f40]=[_0x260f40,_0x51cfa7]),_0xc1f3cf['compare'](_0x51cfa7,_0x260f40);},'isVisible':({plugins:_0x36715},_0xe6d4f1)=>{const _0x4e0e4b=_0x36715['get'](m);return!(_0x4e0e4b['repository']['getRevisionsInDiff'](_0x4e0e4b['diff'])['length']>0x2)&&!_0xe6d4f1['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x146848,{id:_0x5063b3})=>{_0x146848['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x5063b3);},'isVisible':({plugins:_0x3d13e1},_0x31046a)=>!!_0x3d13e1['get'](m)['repository']['getLaterVisibleRevision'](_0x31046a['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x3073fc},{id:_0x3d5e1a,revisionNameView:_0x2d2907})=>{const _0x248e73=_0x3073fc['get'](m),_0x546291=_0x248e73['repository']['getEarlierVisibleRevision'](_0x3d5e1a);_0x248e73['compare'](_0x3d5e1a,_0x546291),_0x2d2907['focus'](),_0x2d2907['fieldView']['select']();}}};}class tt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x4fa8ee,_0x24fcad){super(_0x4fa8ee),this['_view']=_0x24fcad,this['_toolbarConfig']=et(_0x4fa8ee['config']['get']('toolbar')),this['_elementReplacer']=new ot();}get['element'](){return this['view']['element'];}['init'](_0xc5e13d){const _0x89c4ef=this['editor'],_0x376b40=this['view'],_0x5a39dc=_0x89c4ef['editing']['view'],_0x669b1f=_0x376b40['editable'],_0x39c145=_0x5a39dc['document']['getRoot']();_0x669b1f['name']=_0x39c145['rootName'],_0x376b40['render']();const _0x37ae12=_0x669b1f['element'];this['setEditableElement'](_0x669b1f['name'],_0x37ae12),_0x376b40['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x5a39dc['attachDomRoot'](_0x37ae12),this['_elementReplacer']['replace'](_0xc5e13d,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x22a1e1=this['view'],_0x46e849=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x46e849['detachDomRoot'](_0x22a1e1['editable']['name']),_0x22a1e1['destroy']();}['_initToolbar'](){const _0x5f0b19=this['view'];_0x5f0b19['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x5f0b19['stickyPanel']['limiterElement']=_0x5f0b19['element'],_0x5f0b19['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x338f2b})=>_0x338f2b),_0x5f0b19['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x5f0b19['toolbar']);}}class it extends rt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x1d4af7,_0x12ea87,_0x41f38f={}){super(_0x1d4af7),this['stickyPanel']=new ht(_0x1d4af7),this['toolbar']=new dt(_0x1d4af7,{'shouldGroupWhenFull':_0x41f38f['shouldToolbarGroupWhenFull']}),this['_editable']=new ct(_0x1d4af7,_0x12ea87);}['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
|
+
_0x56f463(_0x3a3d93){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x3d1822,_0x57fba3){super(_0x57fba3),this['sourceElement']=_0x3d1822,this['model']['document']['createRoot']();const _0x495188=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x495188);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x381ab4,_0x4daec9){const _0x4b8eef=new this(_0x381ab4,_0x4daec9);return await _0x4b8eef['initPlugins'](),await _0x4b8eef['ui']['init'](_0x381ab4),await _0x4b8eef['data']['init'](_0x4b8eef['config']['get']('initialData')||''),_0x4b8eef['fire']('ready'),_0x4b8eef;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class _t extends _0x211636{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5b4cd7){function _0x32b33f(_0x5dc27d){return _0x5dc27d['map'](_0x3f8d3e=>String['fromCharCode'](_0x3f8d3e))['join']('');}super(_0x5b4cd7),this['result']='end',_0x5b4cd7[_0x32b33f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x32b33f([0x76,0x69,0x65,0x77])][_0x32b33f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x32b33f([0x61,0x75,0x74,0x6f]),_0x5b4cd7[_0x32b33f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x32b33f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x32b33f([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x32b33f([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x32b33f([0x6f,0x6b])});}}class k extends _0x211636{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x1a09d0){if(super(_0x1a09d0),!this['editor']['config']['get']('revisionHistory'))throw new _0x3a53ad('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x3c27ec=>this['_showRevisionViewer']({..._0x3c27ec,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x161773=>this['_closeRevisionViewer'](_0x161773)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x56654b=>this['_restoreRevision'](_0x56654b)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x34832b){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x34832b;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x3a82c3){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x3a82c3);}['getRevision'](_0x80b70b){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x80b70b);}['getRevisions'](_0x8785cd){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x8785cd||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x38a793=this['editor'],_0x1c1689=_0x4ba1b6(_0x38a793,p),_0x3444f2=_0x38a793['plugins']['get']('RevisionTracker'),_0x13dda8=_0x38a793['plugins']['get']('Users')['users'];return _0x1c1689['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x1c1689['lazyRoots'],(_0x1c1689['plugins']['push'](_t,m,R,class extends _0x211636{static get['requires'](){return[m,'Users'];}['init'](){const _0x198e38=this['editor']['plugins']['get']('Users');for(const _0x410e0b of _0x13dda8)_0x410e0b['isAnonymous']||_0x198e38['getUser'](_0x410e0b['id'])||_0x198e38['addUser'](_0x410e0b);const _0x2dd917=_0x3444f2['repository']['getRevisions']();let _0x4e6334=null;const _0x424c75=this['editor']['plugins']['get']('RevisionViewer');_0x424c75['adapter']=_0x3444f2['adapter'],_0x424c75['bind']('isEnabled')['to'](_0x3444f2),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x38a793,'isReadOnly',_0x403749=>!_0x403749);for(const _0x3fe3cc of _0x2dd917){const _0x2a4a05=null===_0x3fe3cc['creator'];if(_0x2a4a05&&_0x3fe3cc['toVersion']===_0x3fe3cc['fromVersion'])continue;const _0x1debe5=_0x3fe3cc['toJSON']();_0x424c75['addRevisionData'](_0x1debe5,(_0x8c4137,_0x40ecd5,_0x34331b)=>{if(_0x2a4a05){if(_0x4e6334)_0x4e6334['_update'](_0x8c4137,_0x40ecd5);else{if(!_0x40ecd5){const _0x4e7985=_0x34331b['toJSON']();_0x4e7985['id']=_0x2135da(),_0x3444f2['saveRevision'](_0x4e7985,_0x34331b['toVersion'])['then'](_0x58f2db=>{_0x4e6334=_0x58f2db;});}}}else _0x3fe3cc['_update'](_0x8c4137,_0x40ecd5);});}}},d),_0x1c1689);}['_enhanceShowRevisionViewerCallback'](){const _0x208263=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x406536=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x36167f=this['editor']['plugins']['get']('Autosave');await _0x36167f['save']();}else await _0x406536['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x5c9695=this['editor']['plugins']['get']('Dialog');_0x5c9695['isOpen']&&_0x5c9695['hide']();}const _0x1693d1=this['_getRevisionViewerEditorConfig']();return _0x208263(_0x1693d1)['then'](_0x1f4514=>{return(this['_viewerEditor']=_0x1f4514,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'),_0x1f4514);})['catch'](_0x498179=>(console['error'](_0x498179),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x34e15c=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'](),_0x34e15c(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x5e3eab=this['editor']['plugins']['get']('Annotations');_0x5e3eab['refreshVisibility'](),_0x5e3eab['refreshPositioning']();}})));}['_showRevisionViewer'](_0x2cd63f){const _0x17aa8f=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x4790f6=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x559246=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x559246,_0x2cd63f)['then'](_0x3cf586=>(_0x4790f6['style']['display']='block',_0x17aa8f['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x3cf586));}['_closeRevisionViewer'](_0x37e6c0){const _0x21bf59=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x21bf59['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x37e6c0['destroy']();}async['_restoreRevision'](_0x38d1e6){const _0x112442=this['editor'],_0x3447ef=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x107195=_0x112442['plugins']['get']('RevisionTracker'),_0x348e67=_0x112442['plugins']['get']('RevisionHistoryUtils'),_0x441aa6=_0x3447ef['repository']['getRevision'](_0x38d1e6);let _0x17715d,_0x463013,_0x58a4b1;try{await _0x348e67['loadRevisionData'](_0x441aa6,this['adapter']),_0x17715d=_0x348e67['getRevisionDocumentData'](_0x441aa6),_0x463013=_0x348e67['getRevisionRootsAttributes'](_0x441aa6);}catch(_0x466065){return void console['error'](_0x466065);}_0x112442['model']['change'](_0x263c8d=>{for(const _0x430221 of Array['from'](_0x112442['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x263c8d['removeMarker'](_0x430221);}),_0x3447ef['isReady']=!0x1,_0x112442['model']['enqueueChange'](_0x31028f=>{_0x31028f['setSelection'](null),_0x31028f['removeSelectionAttribute'](_0x112442['model']['document']['selection']['getAttributeKeys']());const _0x569455=Object['keys'](_0x17715d);for(const _0x4d934e of _0x112442['model']['document']['roots'])'$graveyard'!=_0x4d934e['rootName']&&_0x4d934e['isAttached']()&&!_0x569455['includes'](_0x4d934e['rootName'])&&_0x31028f['detachRoot'](_0x4d934e);for(const _0x2159e0 of _0x569455){let _0x6484b1=_0x112442['model']['document']['getRoot'](_0x2159e0);_0x6484b1&&_0x6484b1['isAttached']()||(_0x6484b1=_0x31028f['addRoot'](_0x2159e0));const _0x4d8ebf=_0x463013[_0x2159e0],_0x4ac731=Object['keys'](_0x4d8ebf),_0x5e11a5=_0x17715d[_0x2159e0];for(const _0x2394c4 of _0x6484b1['getAttributeKeys']())_0x4ac731['includes'](_0x2394c4)||_0x31028f['removeAttribute'](_0x2394c4,_0x6484b1);for(const _0x3759bc of _0x4ac731)_0x31028f['setAttribute'](_0x3759bc,_0x463013[_0x2159e0][_0x3759bc],_0x6484b1);_0x31028f['remove'](_0x31028f['createRangeIn'](_0x6484b1)),_0x31028f['insert'](_0x112442['data']['parse'](_0x5e11a5,_0x6484b1),_0x6484b1,0x0);}});const _0x3e4890=g(_0x112442['locale'],'Restored');if(_0x441aa6['name'])_0x58a4b1=-0x1==_0x441aa6['name']['indexOf'](_0x3e4890)?_0x3e4890+':\x20'+_0x441aa6['name']:_0x441aa6['name'];else _0x58a4b1=_0x3e4890+':\x20'+(_0x441aa6['createdAt']['toLocaleDateString'](_0x112442['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x441aa6['createdAt']['toLocaleTimeString'](_0x112442['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x107195['saveRevision']({'name':_0x58a4b1}),_0x3447ef['isReady']=!0x0,_0x112442['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};
|