@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20250320.0 → 0.0.0-nightly-20250321.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/dist/index.js +6 -6
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +11 -11
- package/src/changeitem.js +2 -2
- package/src/editor/revisionviewereditor.js +2 -2
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/index.js +1 -1
- package/src/revision.js +2 -2
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +2 -2
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ObservableMixin as
|
|
24
|
-
_0x503730(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x35b48c){super(),this['id']=_0x35b48c['id']||_0x2eb9f0(),this['creator']=_0x35b48c['creator']||null,this['authors']=_0x35b48c['authors']||[],this['diffData']=_0x35b48c['diffData']||null,this['toVersion']=_0x35b48c['toVersion']||0x0,this['fromVersion']=_0x35b48c['fromVersion']||0x0,this['set']('name',_0x35b48c['name']||''),this['set']('createdAt',_0x35b48c['createdAt']||new Date()),this['set']('attributes',_0x35b48c['attributes']||{});}['setName'](_0x35ed6b){this['_update']({'name':_0x35ed6b});}['setAttribute'](_0x12abf6,_0x2b13ee){const _0x22f304=_0x256c60(this['attributes']);_0x9223a5(_0x22f304,_0x12abf6,_0x2b13ee),this['_update']({'attributes':_0x22f304});}['removeAttribute'](_0x29be1f){const _0x5801b5=_0x256c60(this['attributes']);_0x1e144a(_0x5801b5,_0x29be1f),this['_update']({'attributes':_0x5801b5});}['_update'](_0xb57781,_0x3729fd=!0x1){let _0x2137fc=!0x1;const _0x5c8093={'id':this['id']},_0x172d16=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x460ed9 of _0x172d16){const _0x23d0a0=_0xb57781[_0x460ed9];void 0x0!==_0x23d0a0&&_0x23d0a0!==this[_0x460ed9]&&(this[_0x460ed9]=_0x23d0a0,_0x5c8093[_0x460ed9]=_0x23d0a0,_0x2137fc=!0x0);}_0x2137fc&&(_0x5c8093['authors']&&(_0x5c8093['authorsIds']=_0x5c8093['authors']['map'](_0x50b42b=>_0x50b42b['id']),delete _0x5c8093['authors']),this['fire']('_update',_0x5c8093,_0x3729fd));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x21c597=>_0x21c597['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x9eb535{['_revisions'];static get['requires'](){return[_0x492036];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x38fdbb){super(_0x38fdbb),this['_revisions']=new _0x1c6017();}['afterInit'](){!async function(_0x27b105){const _0x42c1ba=_0x5862fb([0x65,0x53,0x75,0x46,0x42,0x49,0x73,0x55,0x76,0x47,0x62,0x52,0x54,0x4c,0x5a,0x41,0x6d,0x39,0x48,0x38,0x6f,0x64,0x7a,0x71,0x4e,0x69,0x58,0x6a,0x4b,0x32,0x50,0x6b,0x45,0x51,0x6e,0x74,0x70,0x57,0x36,0x33,0x4f,0x66,0x79,0x37,0x30,0x43,0x77,0x63,0x59,0x35,0x78,0x61,0x34,0x72,0x67,0x68,0x4a,0x4d,0x56,0x44,0x31,0x6c]),_0x42d36d=0xeb829,_0x4c7547=0x29f98409,_0x3bae3b=0x29fee6a1^_0x4c7547,_0x4a60c8=window[_0x5862fb([0x44,0x61,0x74,0x65])][_0x5862fb([0x6e,0x6f,0x77])](),_0x8b145f=_0x27b105[_0x5862fb([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2813a8=new window[(_0x5862fb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2a26e2=>{_0x8b145f[_0x5862fb([0x6f,0x6e,0x63,0x65])](_0x5862fb([0x72,0x65,0x61,0x64,0x79]),_0x2a26e2);}),_0x2b525a={[_0x5862fb([0x6b,0x74,0x79])]:_0x5862fb([0x45,0x43]),[_0x5862fb([0x75,0x73,0x65])]:_0x5862fb([0x73,0x69,0x67]),[_0x5862fb([0x63,0x72,0x76])]:_0x5862fb([0x50,0x2d,0x32,0x35,0x36]),[_0x5862fb([0x78])]:_0x5862fb([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]),[_0x5862fb([0x79])]:_0x5862fb([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]),[_0x5862fb([0x61,0x6c,0x67])]:_0x5862fb([0x45,0x53,0x32,0x35,0x36])},_0x3035a0=_0x8b145f[_0x5862fb([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5862fb([0x67,0x65,0x74])](_0x5862fb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x26af90(){let _0x377f76,_0x54b5cf=null,_0x566726=null;try{if(_0x3035a0==_0x5862fb([0x47,0x50,0x4c]))return _0x5862fb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x377f76=_0x87fcd8(),!_0x377f76)return _0x5862fb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x377f76[_0x5862fb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x566726=_0x265a80(_0x377f76[_0x5862fb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x377f76[_0x5862fb([0x6a,0x74,0x69])])),await _0x15915f()?_0x4d5a02()?_0x5d8653()?_0x5862fb([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x8fc7a0()?(_0x377f76[_0x5862fb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5862fb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x54b5cf=_0x3b2da8(_0x5862fb([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x377f76[_0x5862fb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5862fb([0x74,0x72,0x69,0x61,0x6c])&&(_0x54b5cf=_0x3b2da8(_0x5862fb([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x516912()):_0x5862fb([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5862fb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5862fb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x4835d8){return _0x5862fb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5d8653(){const _0x1f0436=[_0x5862fb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5862fb([0x74,0x72,0x69,0x61,0x6c])][_0x5862fb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x377f76[_0x5862fb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4a60c8/0x3e8:0xe10*_0x3bae3b;return _0x377f76[_0x5862fb([0x65,0x78,0x70])]<_0x1f0436;}function _0x4d5a02(){const _0x5885f4=_0x377f76[_0x5862fb([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x5885f4)return!0x1;if(_0x5885f4[_0x5862fb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5862fb([0x2a])))return!0x0;if(_0x5885f4[_0x5862fb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5862fb([0x52,0x48])))return!0x0;if(_0x5885f4[_0x5862fb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5862fb([0x52,0x52,0x48]))){if(_0x586aa9())return!0x0;if(_0x31acdd()||_0x17464d())return!0x0;}return!0x1;}function _0x8fc7a0(){const _0x53a2fc=_0x377f76[_0x5862fb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x53a2fc||0x0==_0x53a2fc[_0x5862fb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x194053}=new URL(window[_0x5862fb([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x53a2fc[_0x5862fb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x194053))return!0x0;const _0x3d73fb=_0x194053[_0x5862fb([0x73,0x70,0x6c,0x69,0x74])](_0x5862fb([0x2e]));return _0x53a2fc[_0x5862fb([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x51dbbb=>_0x51dbbb[_0x5862fb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5862fb([0x2a])))[_0x5862fb([0x6d,0x61,0x70])](_0x3aa1d2=>_0x3aa1d2[_0x5862fb([0x73,0x70,0x6c,0x69,0x74])](_0x5862fb([0x2e])))[_0x5862fb([0x73,0x6f,0x6d,0x65])](_0x48a9f2=>_0x3d73fb[_0x5862fb([0x65,0x76,0x65,0x72,0x79])]((_0x4fcbd3,_0x1200ae)=>_0x48a9f2[_0x1200ae]===_0x4fcbd3||_0x48a9f2[_0x1200ae]===_0x5862fb([0x2a])));}function _0x516912(){return _0x54b5cf&&_0x566726?new window[(_0x5862fb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x53aa40,_0x5f2e0f)=>{_0x54b5cf[_0x5862fb([0x74,0x68,0x65,0x6e])](_0x53aa40,_0x5f2e0f),_0x566726[_0x5862fb([0x74,0x68,0x65,0x6e])](_0xa3bb51=>{_0xa3bb51!=_0x5862fb([0x56,0x61,0x6c,0x69,0x64])&&_0x53aa40(_0xa3bb51);},_0x5f2e0f);}):_0x54b5cf||_0x566726||_0x5862fb([0x56,0x61,0x6c,0x69,0x64]);}}function _0x265a80(_0x18195f,_0x41dbf0){return new window[(_0x5862fb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x17e7f2=>{if(_0x54121b())return _0x17e7f2(_0x5862fb([0x56,0x61,0x6c,0x69,0x64]));_0xf1b928(),_0x8b145f[_0x5862fb([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5862fb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4b699b=!0x1;const _0x1df2f2=_0x2eb9f0();function _0x5c9272(_0x58d00c){return!!_0x58d00c&&(typeof _0x58d00c===_0x5862fb([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x58d00c===_0x5862fb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x58d00c[_0x5862fb([0x74,0x68,0x65,0x6e])]===_0x5862fb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x58d00c[_0x5862fb([0x63,0x61,0x74,0x63,0x68])]===_0x5862fb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3ffc67(_0x152cdc){_0x5881f0(_0x152cdc)[_0x5862fb([0x74,0x68,0x65,0x6e])](_0x423298=>{if(!_0x423298||_0x423298[_0x5862fb([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5862fb([0x6f,0x6b]))return _0x5862fb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x561f72(_0x8838ac(_0x1df2f2+_0x41dbf0))!=_0x423298[_0x5862fb([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5862fb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5862fb([0x56,0x61,0x6c,0x69,0x64]);})[_0x5862fb([0x74,0x68,0x65,0x6e])](_0x2145d6=>(_0x40212d(),_0x2145d6),()=>{const _0x374e4f=_0x2ef143();return null==_0x374e4f?(_0x40212d(),_0x5862fb([0x56,0x61,0x6c,0x69,0x64])):_0x5862fb(_0x4a60c8-_0x374e4f>(0xdf50009^_0x4c7547)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5862fb([0x74,0x68,0x65,0x6e])](_0x17e7f2)[_0x5862fb([0x63,0x61,0x74,0x63,0x68])](()=>{_0x17e7f2(_0x5862fb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xde0235=0x29cf6a89^_0x4c7547;function _0x40212d(){const _0x3ef911=_0x5862fb([0x6c,0x6c,0x63,0x74,0x2d])+_0x561f72(_0x8838ac(_0x18195f)),_0x860c4b=_0x17d61a(_0x561f72(window[_0x5862fb([0x4d,0x61,0x74,0x68])][_0x5862fb([0x63,0x65,0x69,0x6c])](_0x4a60c8/_0xde0235)));window[_0x5862fb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5862fb([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3ef911,_0x860c4b);}function _0x2ef143(){const _0x573924=_0x5862fb([0x6c,0x6c,0x63,0x74,0x2d])+_0x561f72(_0x8838ac(_0x18195f)),_0x2bf0e9=window[_0x5862fb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5862fb([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x573924);return _0x2bf0e9?window[_0x5862fb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x17d61a(_0x2bf0e9),0x10)*_0xde0235:null;}function _0x5881f0(_0x38a9ad){return new window[(_0x5862fb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4dcd72,_0x5b13cd)=>{_0x38a9ad[_0x5862fb([0x74,0x68,0x65,0x6e])](_0x4dcd72,_0x5b13cd),window[_0x5862fb([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5b13cd,0x29f850c9^_0x4c7547);});}}_0x8b145f[_0x5862fb([0x6f,0x6e])](_0x5862fb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4dfab0,_0x26eb66)=>{if(_0x26eb66[0x0]!=_0x18195f)return _0x17e7f2(_0x5862fb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x26eb66[0x1]={..._0x26eb66[0x1],[_0x5862fb([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1df2f2};},{[_0x5862fb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5862fb([0x68,0x69,0x67,0x68])}),_0x8b145f[_0x5862fb([0x6f,0x6e])](_0x5862fb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4307fc=>{_0x5c9272(_0x4307fc[_0x5862fb([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4b699b=!0x0,_0x3ffc67(_0x4307fc[_0x5862fb([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5862fb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5862fb([0x6c,0x6f,0x77])}),_0x2813a8[_0x5862fb([0x74,0x68,0x65,0x6e])](()=>{_0x4b699b||_0x17e7f2(_0x5862fb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x54121b(){return _0x8b145f[_0x5862fb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5862fb([0x76,0x69,0x65,0x77])][_0x5862fb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5862fb([0x61,0x75,0x74,0x6f]);}function _0xf1b928(){_0x8b145f[_0x5862fb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5862fb([0x76,0x69,0x65,0x77])][_0x5862fb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5862fb([0x61,0x75,0x74,0x6f]);}}function _0x3b2da8(_0xdeb33a){const _0xb5501e=[new window[(_0x5862fb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x45c4d7=>setTimeout(_0x45c4d7,0x29f0bac5^_0x4c7547)),_0x2813a8[_0x5862fb([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5862fb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3a8cc0=>{const _0x14ddd1=0x29f9840e^_0x4c7547,_0x1951f5=_0x27b105[_0x5862fb([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x5790d3(){_0x1951f5[_0x5862fb([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x14ddd1&&_0x3a8cc0();}_0x5790d3(),_0x1951f5[_0x5862fb([0x6f,0x6e])](_0x5862fb([0x61,0x64,0x64]),_0x5790d3);})),new window[(_0x5862fb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x36b68b=>{function _0x49f23f(){for(const _0x5240ab in window)if(window[_0x5862fb([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x5862fb([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x5240ab))&&window[_0x5240ab]==_0x42d36d)return _0x36b68b();_0x8b145f[_0x5862fb([0x73,0x74,0x61,0x74,0x65])]!=_0x5862fb([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x5862fb([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x49f23f,0x29f99781^_0x4c7547);}_0x13fda9(_0x5862fb([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x49f23f();})];return window[_0x5862fb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5862fb([0x72,0x61,0x63,0x65])](_0xb5501e)[_0x5862fb([0x74,0x68,0x65,0x6e])](()=>_0xdeb33a);}async function _0x694126(){if(await _0x2813a8,_0x13fda9(_0x5862fb([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x111d2e=_0x27b105[_0x5862fb([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x5d0cea=_0x27b105[_0x5862fb([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])](_0x111d2e[_0x5862fb([0x69,0x64])]),_0x3af425=_0x29e523(_0x5862fb([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x3af425[_0x5862fb([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x111d2e['id'],_0x5d0cea?_0x5d0cea['id']:null,!0x0),_0x3af425[_0x5862fb([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x5862fb([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x3af425[_0x5862fb([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x3af425[_0x5862fb([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x3ad1c0,void(_0x3af425[_0x5862fb([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x3ad1c0);}if(_0x13fda9(_0x5862fb([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x457110=_0x29e523(_0x5862fb([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x457110[_0x5862fb([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x5862fb([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x457110[_0x5862fb([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x457110[_0x5862fb([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x3ad1c0,_0x457110[_0x5862fb([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x3ad1c0;}_0x8b145f[_0x5862fb([0x6d,0x6f,0x64,0x65,0x6c])][_0x5862fb([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3ad1c0,_0x8b145f[_0x5862fb([0x6d,0x6f,0x64,0x65,0x6c])][_0x5862fb([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3ad1c0,_0x8b145f[_0x5862fb([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5862fb([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x586aa9(){return _0x13fda9(_0x5862fb([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x29e523(_0x5862fb([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x5862fb([0x73,0x74,0x61,0x74,0x65])]==_0x5862fb([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x31acdd(){return _0x13fda9(_0x5862fb([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 _0x17464d(){return _0x13fda9(_0x5862fb([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x4f57a1(_0x48ff3b){const _0x2546d3=_0x350b68();_0x8b145f[_0x2546d3]=_0x5862fb([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])+_0x48ff3b,_0x48ff3b[_0x5862fb([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x5862fb([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x350b68()]=_0x42d36d),_0x48ff3b!=_0x5862fb([0x56,0x61,0x6c,0x69,0x64])&&_0x694126();}function _0x350b68(){const _0x682dd4=window[_0x5862fb([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5862fb([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5862fb([0x6e,0x6f,0x77])]())[_0x5862fb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5862fb([0x2e]),'');let _0x19b6c0=_0x5862fb([0x65]);for(let _0x53d24a=0x0;_0x53d24a<_0x682dd4[_0x5862fb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x53d24a+=0x2){let _0x4e8134=window[_0x5862fb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x682dd4[_0x5862fb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x53d24a,_0x53d24a+0x2));_0x4e8134>=_0x42c1ba[_0x5862fb([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4e8134-=_0x42c1ba[_0x5862fb([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x19b6c0+=_0x42c1ba[_0x4e8134];}return _0x19b6c0;}function _0x87fcd8(){const _0x9aa7dd=_0x3035a0[_0x5862fb([0x73,0x70,0x6c,0x69,0x74])](_0x5862fb([0x2e]));if(0x3!=_0x9aa7dd[_0x5862fb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2a77f1(_0x9aa7dd[0x1]);function _0x2a77f1(_0x1921cf){const _0x5e1329=_0x102aeb(_0x1921cf);return _0x5e1329&&_0x5b27d6()?_0x5e1329:null;function _0x5b27d6(){const _0x3d7d82=_0x5e1329[_0x5862fb([0x6a,0x74,0x69])],_0x59d542=window[_0x5862fb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3d7d82[_0x5862fb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3d7d82[_0x5862fb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x410315={..._0x5e1329,[_0x5862fb([0x6a,0x74,0x69])]:_0x3d7d82[_0x5862fb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3d7d82[_0x5862fb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x410315[_0x5862fb([0x76,0x63])],_0x8838ac(_0x410315)==_0x59d542;}}}async function _0x15915f(){let _0x179369=!0x0;try{const _0x231b40=_0x3035a0[_0x5862fb([0x73,0x70,0x6c,0x69,0x74])](_0x5862fb([0x2e])),[_0xb59149,_0x2dde00,_0x58b0a6]=_0x231b40;return _0xf4c2fc(_0xb59149),await _0x339660(_0xb59149,_0x2dde00,_0x58b0a6),_0x179369;}catch(_0x3a61fe){return!0x1;}function _0xf4c2fc(_0x3cfd49){const _0x2417fe=_0x102aeb(_0x3cfd49);_0x2417fe&&_0x2417fe[_0x5862fb([0x61,0x6c,0x67])]==_0x5862fb([0x45,0x53,0x32,0x35,0x36])||(_0x179369=!0x1);}async function _0x339660(_0x548603,_0x39a86a,_0x4735ed){const _0x3058a5=window[_0x5862fb([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5862fb([0x66,0x72,0x6f,0x6d])](_0x202f09(_0x4735ed),_0x123bda=>_0x123bda[_0x5862fb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2b4cfc=new window[(_0x5862fb([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5862fb([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x548603+_0x5862fb([0x2e])+_0x39a86a),_0x11a3fd=window[_0x5862fb([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5862fb([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x11a3fd)return;const _0xdd9b78=await _0x11a3fd[_0x5862fb([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5862fb([0x6a,0x77,0x6b]),_0x2b525a,{[_0x5862fb([0x6e,0x61,0x6d,0x65])]:_0x5862fb([0x45,0x43,0x44,0x53,0x41]),[_0x5862fb([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5862fb([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5862fb([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x11a3fd[_0x5862fb([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5862fb([0x6e,0x61,0x6d,0x65])]:_0x5862fb([0x45,0x43,0x44,0x53,0x41]),[_0x5862fb([0x68,0x61,0x73,0x68])]:{[_0x5862fb([0x6e,0x61,0x6d,0x65])]:_0x5862fb([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xdd9b78,_0x3058a5,_0x2b4cfc)||(_0x179369=!0x1);}}function _0x102aeb(_0x52979e){return _0x52979e[_0x5862fb([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5862fb([0x65,0x79]))?JSON[_0x5862fb([0x70,0x61,0x72,0x73,0x65])](_0x202f09(_0x52979e)):null;}function _0x202f09(_0x287d4a){return window[_0x5862fb([0x61,0x74,0x6f,0x62])](_0x287d4a[_0x5862fb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5862fb([0x2b]))[_0x5862fb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5862fb([0x2f])));}function _0x8838ac(_0x37b14){let _0x4caf8a=0x1505;function _0x5f6f60(_0x1c26c4){for(let _0x52359f=0x0;_0x52359f<_0x1c26c4[_0x5862fb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x52359f++){const _0x525037=_0x1c26c4[_0x5862fb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x52359f);_0x4caf8a=(_0x4caf8a<<0x5)+_0x4caf8a+_0x525037,_0x4caf8a&=_0x4caf8a;}}function _0x207391(_0x363675){Array[_0x5862fb([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x363675)?_0x363675[_0x5862fb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x207391):_0x363675&&typeof _0x363675==_0x5862fb([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5862fb([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x363675)[_0x5862fb([0x73,0x6f,0x72,0x74])]()[_0x5862fb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1c9b47,_0x57da27])=>{_0x5f6f60(_0x1c9b47),_0x207391(_0x57da27);}):_0x5f6f60(window[_0x5862fb([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x363675));}return _0x207391(_0x37b14),_0x4caf8a>>>0x0;}function _0x561f72(_0x24d8ee){return _0x24d8ee[_0x5862fb([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5862fb([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5862fb([0x30]));}function _0x17d61a(_0x265bd5){return _0x265bd5[_0x5862fb([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5862fb([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5862fb([0x6a,0x6f,0x69,0x6e])]('');}function _0x13fda9(_0x5db104){return _0x8b145f[_0x5862fb([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5862fb([0x68,0x61,0x73])](_0x5db104);}function _0x29e523(_0x519d49){return _0x8b145f[_0x5862fb([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5862fb([0x67,0x65,0x74])](_0x519d49);}function _0x3ad1c0(){}function _0x5862fb(_0x2e4c60){return _0x2e4c60['map'](_0x23e05d=>String['fromCharCode'](_0x23e05d))['join']('');}_0x4f57a1(await _0x26af90());}(this);}['createRevision'](_0x3ab28d){const _0x5b2faa=this['editor']['plugins']['get']('Users');return new h({'id':_0x3ab28d['id'],'name':_0x3ab28d['name'],'creator':_0x3ab28d['creatorId']?_0x5b2faa['getUser'](_0x3ab28d['creatorId']):null,'diffData':_0x3ab28d['diffData']||_0x3ab28d['data'],'authors':_0x3ab28d['authorsIds']['map'](_0x277726=>_0x5b2faa['getUser'](_0x277726)),'createdAt':new Date(_0x3ab28d['createdAt']),'attributes':_0x3ab28d['attributes'],'fromVersion':_0x3ab28d['fromVersion'],'toVersion':_0x3ab28d['toVersion']});}['addRevision'](_0x518914,_0x5a9c3d=0x0){this['_revisions']['add'](_0x518914,_0x5a9c3d);}['getRevision'](_0x528998){return this['_revisions']['get'](_0x528998);}['getRevisions'](_0x36e0b8={'toJSON':!0x1}){const _0x5c5c49=Array['from'](this['_revisions']);return _0x5c5c49['reverse'](),_0x36e0b8['toJSON']?_0x5c5c49['map'](_0x1ef402=>_0x1ef402['toJSON']()):_0x5c5c49;}['getIndex'](_0xc6017c){return this['_revisions']['getIndex'](_0xc6017c);}['getEarlierVisibleRevision'](_0x3a766c){const [,_0x34e459]=this['getRevisionsIterator'](_0x3a766c,{'direction':'earlier'});return _0x34e459;}['getLaterVisibleRevision'](_0x1ca0bd){const [,_0x1ce80e]=this['getRevisionsIterator'](_0x1ca0bd,{'direction':'later'});return _0x1ce80e;}['getRevisionsInDiff'](_0x42e9e2){const _0x2ebace=[];for(const _0x3216d5 of this['getRevisionsIterator'](_0x42e9e2['newRevisionId']))if(_0x2ebace['push'](_0x3216d5),_0x3216d5['id']===_0x42e9e2['oldRevisionId'])break;return _0x2ebace;}*['getRevisionsIterator'](_0x4ce78c,{direction:_0x48c230='earlier',filter:_0x3ca15b=()=>!0x0}={}){const _0x4a37f9='earlier'===_0x48c230?0x1:-0x1;let _0x3ff6a2=this['_revisions']['get'](_0x4ce78c),_0x7ba5c7=this['getIndex'](_0x3ff6a2);for(yield _0x3ff6a2;_0x3ff6a2;){if(_0x7ba5c7+=_0x4a37f9,_0x3ff6a2=this['getRevision'](_0x7ba5c7),!_0x3ff6a2)return;_0x3ca15b(_0x3ff6a2)&&(yield _0x3ff6a2);}}}function m(_0x46f938,_0x50108e,_0xd7e11d){const t=_0x46f938['t'];switch(_0x50108e){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'},_0xd7e11d);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0xd7e11d);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const E={'c':_0x5072cd,'a':_0x3f2f3f,'e':_0x5009b1,'r':_0x5f234d,'u':_0xa5205f};class u extends _0x9eb535{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x492036,j,_0x2a6e8c];}constructor(_0x494af0){super(_0x494af0),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x4d09b9=_0x2eb9f0();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x4d09b9},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x3456c3=this['repository']['getRevision'](0x0),_0x59747e=_0x3456c3&&null===_0x3456c3['creator']?_0x3456c3:null;if(this['_continueCurrentRevision']=!!_0x59747e&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0xd25f26=this['_source']['getCurrentRevisionId'](),_0x1236af=this['repository']['getRevision'](_0xd25f26);if(_0x1236af)this['_startingVersion']=_0x1236af['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x37cc67=this['_source']['history']['_operations']['find'](_0x3ef85a=>!_0x3ef85a['_isInit']),_0x15dfa0=_0x37cc67?_0x37cc67['baseVersion']:this['_source']['history']['version'];_0x3456c3?(_0x3456c3['toVersion']<_0x15dfa0&&_0x3456c3['_update']({'toVersion':_0x15dfa0}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x59747e['id'],this['_startingVersion']=_0x59747e['fromVersion']):(this['_startingVersion']=_0x3456c3['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x15dfa0,this['_continueCurrentRevision']=!0x1);}}else _0x59747e&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x59747e['toVersion'],this['editor']['model']['document']['history']['version']),_0x59747e['fromVersion']===_0x59747e['toVersion']?(0x0!==_0x59747e['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x59747e['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x59747e['id'],this['_startingVersion']=_0x59747e['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',_0x1b3af2=>!_0x1b3af2),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1d0ee2=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xb2bd39;for(const _0x479284 in _0x1d0ee2){const _0xd70be7=_0x479284,_0x2da7fa=_0x1d0ee2[_0xd70be7];if('revisionHistoryLicenseKeyValid'==_0x2da7fa||'revisionHistoryLicenseKeyInvalid'==_0x2da7fa||'revisionHistoryLicenseKeyExpired'==_0x2da7fa||'revisionHistoryLicenseKeyDomainLimit'==_0x2da7fa||'revisionHistoryLicenseKeyNotAllowed'==_0x2da7fa||'revisionHistoryLicenseKeyEvaluationLimit'==_0x2da7fa||'revisionHistoryLicenseKeyTrialLimit'==_0x2da7fa||'revisionHistoryLicenseKeyUsageLimit'==_0x2da7fa){delete _0x1d0ee2[_0xd70be7],_0xb2bd39=_0x2da7fa,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0xb2bd39&&_0x1d0ee2['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0xb2bd39&&_0x1d0ee2['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0xb2bd39&&_0x1d0ee2['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0xb2bd39&&_0x1d0ee2['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0xb2bd39&&_0x1d0ee2['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0xb2bd39&&_0x1d0ee2['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0xb2bd39&&_0x1d0ee2['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x116f80=this['repository']['getRevision'](0x0),_0x1d7ffb=await this['getRevisionDocumentData'](_0x116f80),_0x426dd9=await this['getRevisionRootsAttributes'](_0x116f80);this['_replaceEditorDataWithRevisionData'](_0x1d7ffb,_0x426dd9);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x57cff8){this['_source']=_0x57cff8;}async['update'](){const _0x1f035a=await this['_source']['getLatestVersion']();if(_0x1f035a>this['currentRevision']['toVersion']){await this['_loadState']();const _0x3c5a6d=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x1f035a});_0x3c5a6d['authors']=_0x3c5a6d['authorsIds']['map'](_0x28b793=>this['editor']['plugins']['get']('Users')['getUser'](_0x28b793)),this['currentRevision']['_update'](_0x3c5a6d);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0x269b77={},_0x1d44fe=null){const _0x298b2d=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x1d44fe>this['currentRevision']['toVersion']&&(_0x1d44fe=null),null===_0x1d44fe&&(_0x1d44fe=await this['_source']['getLatestVersion']());const _0x3129e3=this['_getFromVersion'](_0x1d44fe),_0x4eeb81=this['buildRevisionData']({'from':_0x3129e3,'to':_0x1d44fe});if(this['currentRevision']['toVersion']<_0x1d44fe){const _0x24f456=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x1d44fe,'to':_0x1d44fe});_0x24f456['authors']=[],_0x24f456['authorsIds']=[],_0x24f456['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x24f456,!0x0),delete _0x24f456['authors'],_0x298b2d['push'](_0x24f456);}_0x269b77['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x269b77['name']=_0x269b77['name']||null,_0x269b77['id']=_0x269b77['id']||_0x2eb9f0(),_0x269b77={..._0x269b77,..._0x4eeb81};const _0x400c4d=this['addRevisionData'](_0x269b77);_0x298b2d['push'](_0x269b77);const _0x58e1d4=this['repository']['getIndex'](_0x400c4d);if(0x0!==_0x58e1d4){const _0x2efd7b=this['repository']['getRevision'](_0x58e1d4-0x1);if(_0x2efd7b['fromVersion']!==_0x1d44fe){const _0x3bb4a4=this['_revisionDataBuilder']['getData'](_0x1d44fe,_0x2efd7b['toVersion']),_0x1490d9={'id':_0x2efd7b['id'],'diffData':_0x3bb4a4['diffData'],'authorsIds':_0x3bb4a4['authorsIds'],'authors':_0x3bb4a4['authorsIds']['map'](_0x16dbc8=>this['editor']['plugins']['get']('Users')['getUser'](_0x16dbc8)),'fromVersion':_0x1d44fe};_0x2efd7b===this['currentRevision']&&(_0x1490d9['createdAt']=new Date(_0x269b77['createdAt']['getTime']()+0xa)),_0x2efd7b['_update'](_0x1490d9,!0x0),delete _0x1490d9['authors'],_0x298b2d['push'](_0x1490d9);}}if(this['adapter']){for(const _0x50db72 of _0x298b2d)this['_bufferUpdate'](_0x50db72['id'],_0x50db72,!0x0);this['sendBufferedUpdates']();}return _0x400c4d;}['addRevisionData'](_0x5bf45f){const _0x310395=this['repository']['createRevision'](_0x5bf45f);return this['adapter']&&_0x310395['on']('_update',(_0x3e0e61,_0x47a76b,_0x2d4723)=>{_0x2d4723||(this['_bufferUpdate'](_0x47a76b['id'],_0x47a76b,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x310395,this['_findInsertionIndex'](_0x310395)),_0x310395;}async['getRevisionDocumentData'](_0x11a034){await this['_loadRevisionData'](_0x11a034);const _0x4340a8={};for(const _0x1d00fb in _0x11a034['diffData']){if(_0x11a034['diffData'][_0x1d00fb]['attachChange']&&!_0x11a034['diffData'][_0x1d00fb]['attachChange']['isAttached'])continue;const _0x316b71=this['_removeRevisionMarkers'](JSON['parse'](_0x11a034['diffData'][_0x1d00fb]['insertions'])),_0x56b5f6=this['editor']['editing']['view']['document'],_0x14df84=new _0xf4c57(_0x56b5f6,_0x316b71['map'](_0x25e903=>P(_0x25e903,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x4340a8[_0x1d00fb]=this['editor']['data']['processor']['toData'](_0x14df84),this['editor']['data']['processor']['useFillerType']('default');}return _0x4340a8;}async['getRevisionRootsAttributes'](_0x370c30){await this['_loadRevisionData'](_0x370c30);const _0x42ccbf={};for(const _0x38a0e3 in _0x370c30['diffData'])_0x370c30['diffData'][_0x38a0e3]['attachChange']&&!_0x370c30['diffData'][_0x38a0e3]['attachChange']['isAttached']||(_0x42ccbf[_0x38a0e3]=_0x370c30['diffData'][_0x38a0e3]['attributesAfter']||{});return _0x42ccbf;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x49b81d=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x5bcde2=0x0;_0x5bcde2<_0x49b81d['length'];_0x5bcde2++){const _0x199dc6=_0x49b81d[_0x5bcde2];let _0xf4b16d=!0x1;for(const _0x4546c8 of Object['keys'](_0x199dc6))void 0x0===_0x199dc6[_0x4546c8]?delete _0x199dc6[_0x4546c8]:'id'!==_0x4546c8&&(_0xf4b16d=!0x0);_0xf4b16d||(_0x49b81d[_0x5bcde2]=null);}if(_0x49b81d=_0x49b81d['filter'](_0x5ed003=>null!==_0x5ed003),!_0x49b81d['length'])return;for(let _0x131355=0x0;_0x131355<_0x49b81d['length'];_0x131355++){const _0x13f355=_0x49b81d[_0x131355];void 0x0!==_0x13f355['fromVersion']&&void 0x0===_0x13f355['toVersion']&&(_0x13f355['toVersion']=this['repository']['getRevision'](_0x13f355['id'])['toVersion']),void 0x0!==_0x13f355['toVersion']&&void 0x0===_0x13f355['fromVersion']&&(_0x13f355['fromVersion']=this['repository']['getRevision'](_0x13f355['id'])['fromVersion']);}const _0xc95cd1=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x49b81d,_0xc95cd1)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x4a2f22=>{if(_0x4a2f22){for(const _0x126dc0 of _0x4a2f22)this['setRevisionData']({'id':_0x126dc0['id'],'createdAt':_0x126dc0['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x3c602c,_0x428366){let _0x13ba61=this['editor']['config']['get']('initialData'),_0xce809a=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x13ba61){_0x13ba61={};for(const _0x256313 of this['editor']['model']['document']['getRootNames']())_0x13ba61[_0x256313]='';}if('string'==typeof _0x13ba61&&(_0x13ba61={'main':_0x13ba61}),void 0x0===_0xce809a){_0xce809a={};for(const _0x3ee3a4 of this['editor']['model']['document']['getRootNames']())_0xce809a[_0x3ee3a4]={};}let _0xea0a03=!0x1;const _0x506d60=Object['keys'](_0x13ba61),_0x399939=Object['keys'](_0x3c602c);for(const _0x4f0b2a of _0x506d60){if(_0x13ba61[_0x4f0b2a]!==_0x3c602c[_0x4f0b2a]&&''!==_0x13ba61[_0x4f0b2a]['trim']()){_0xea0a03=!0x0;break;}if(!_0x4c8933(_0xce809a[_0x4f0b2a],_0x428366[_0x4f0b2a])&&Object['keys'](_0xce809a[_0x4f0b2a])['length']>0x0){_0xea0a03=!0x0;break;}}_0xea0a03||(_0xea0a03=_0x399939['some'](_0x574641=>!this['editor']['model']['document']['getRoot'](_0x574641))),_0xea0a03&&_0x20f51c('editor-initial-data-replaced-with-revision-data',{'editorData':_0x13ba61,'editorRootsAttributes':_0xce809a,'revisionData':_0x3c602c,'revisionRootsAttributes':_0x428366}),this['editor']['config']['set']('initialData',_0x3c602c),this['editor']['config']['set']('rootsAttributes',_0x428366);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x923321=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x923321['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x4a02b2){const _0x198724=this['repository']['getRevisions']();_0x198724['reverse']();let _0x5584c8=0x0;for(;_0x5584c8<_0x198724['length'];){const _0x7595a3=_0x198724[_0x5584c8];if(_0x7595a3===this['currentRevision']){_0x5584c8++;continue;}if(_0x7595a3['id']===this['_initialRevisionId'])break;const _0x162872=_0x4a02b2['toVersion']-_0x7595a3['toVersion']||_0x4a02b2['fromVersion']-_0x7595a3['fromVersion'];if(_0x162872>0x0)break;if(_0x162872<0x0)_0x5584c8++;else{if(!_0x4a02b2['creator']&&_0x7595a3['creator'])break;if(_0x7595a3['creator']||!_0x4a02b2['creator']){if(_0x4a02b2['createdAt']>_0x7595a3['createdAt'])break;_0x5584c8++;}else _0x5584c8++;}}return _0x5584c8;}['setRevisionData'](_0x527a72){const _0x37197b=this['repository']['getRevision'](_0x527a72['id']);if(_0x527a72['createdAt']&&(_0x527a72['createdAt']=new Date(_0x527a72['createdAt'])),_0x527a72['authorsIds']){const _0x392dad=this['editor']['plugins']['get']('Users');_0x527a72['authors']=_0x527a72['authorsIds']['map'](_0x589b9c=>_0x392dad['getUser'](_0x589b9c));}_0x37197b['_update'](_0x527a72,!0x0);}['buildRevisionData']({revision:_0x4d29c5=null,from:_0x3ae1cd=null,to:_0x3b51d1=null}){_0x3ae1cd=null!==_0x3ae1cd?_0x3ae1cd:_0x4d29c5['fromVersion'],_0x3b51d1=null!==_0x3b51d1?_0x3b51d1:_0x4d29c5['toVersion'];const _0x5e20d0=this['_revisionDataBuilder']['getData'](_0x3ae1cd,_0x3b51d1),_0x2046d2={'diffData':_0x5e20d0['diffData'],'authorsIds':_0x5e20d0['authorsIds'],'fromVersion':_0x3ae1cd,'toVersion':_0x3b51d1};if(!_0x4d29c5||_0x3b51d1!==_0x4d29c5['toVersion']){const _0x162ed4=_0x3b51d1-0x1,_0x5c035d=this['_source']['history']['getOperation'](_0x162ed4);_0x2046d2['createdAt']=_0x5c035d&&_0x5c035d['createdAt']||new Date();}if(this['_loadedStateData']&&_0x3ae1cd===this['_loadedStateData']['fromVersion']){for(const _0x10a934 of this['_loadedStateData']['authors'])_0x2046d2['authorsIds']['includes'](_0x10a934['id'])||_0x2046d2['authorsIds']['push'](_0x10a934['id']);}return _0x2046d2;}['_loadRevisionData'](_0x31a682){if(!_0x31a682||_0x31a682['diffData'])return Promise['resolve']();{const _0x21795b=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x21795b,'revisionId':_0x31a682['id']})['then'](_0x518132=>{_0x31a682['diffData']=_0x518132['diffData'];});}}['_bufferUpdate'](_0x3dc151,_0x491075,_0xeddf32){if(this['_bufferedUpdates']['has'](_0x3dc151)){const _0xc8107f=this['_bufferedUpdates']['get'](_0x3dc151);_0x491075=_0xeddf32?{..._0xc8107f,..._0x491075}:{..._0x491075,..._0xc8107f};}this['_bufferedUpdates']['set'](_0x3dc151,_0x491075);}['_getFromVersion'](_0x954b9d){const _0x5a81cd=this['repository']['getRevisions']();_0x5a81cd['reverse'](),_0x5a81cd['shift']();const _0x4787a9=_0x5a81cd['find'](_0x3e19dc=>_0x3e19dc['toVersion']<=_0x954b9d)['toVersion'];return _0x4787a9<this['_startingVersion']?this['_startingVersion']:_0x4787a9;}['_createInitialRevision'](_0x27328e){const _0x527051=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x527051)this['_initialRevisionId']=_0x527051['id'];else{const _0x59f771=!this['editor']['model']['document']['roots']['find'](_0xf1472a=>this['editor']['model']['hasContent'](_0xf1472a)),_0x388df9=this['editor']['plugins']['get']('Users')['me']['id'],_0x59b8b4=m(this['editor']['locale'],_0x59f771?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x27328e,'to':_0x27328e,'id':this['_initialRevisionId'],'name':_0x59b8b4,'creatorId':_0x388df9});}}['_createCurrentRevision'](_0x2e324a){const _0x4e69af=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x4e69af),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x2e324a,'to':_0x2e324a,'id':_0x4e69af,'name':'','creatorId':null}));}['_makeRevision']({name:_0x579045,from:_0x30131e,to:_0x16b03d,creatorId:_0x396373,id:_0x1895c4}){const _0xb8d06b=this['buildRevisionData']({'from':_0x30131e,'to':_0x16b03d});_0xb8d06b['name']=_0x579045,_0xb8d06b['creatorId']=_0x396373,_0xb8d06b['id']=_0x1895c4;const _0x20d8ec=this['addRevisionData'](_0xb8d06b);return this['adapter']&&this['_bufferUpdate'](_0xb8d06b['id'],_0xb8d06b,!0x0),_0x20d8ec;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x471a5b){return(_0x471a5b=_0x471a5b['filter'](_0x410868=>!_0x410868['name']||'revision-start'!==_0x410868['name']&&'revision-end'!==_0x410868['name']))['forEach'](_0x799c55=>{'string'!=typeof _0x799c55&&(_0x799c55['children']=this['_removeRevisionMarkers'](_0x799c55['children']),_0x799c55['attributes']=_0x799c55['attributes']['filter'](_0x713f66=>!_0x713f66[0x0]['startsWith']('data-revision-')));}),_0x471a5b;}}function P(_0xde4322,_0x4a852f){const _0x57b33a=_0x4a852f['editing']['view']['document'];if('string'==typeof _0xde4322)return new _0x2717e1(_0x57b33a,_0xde4322);{const _0x1f5e2b=_0xde4322['children']['map'](_0x489f2b=>P(_0x489f2b,_0x4a852f));return new(E[_0xde4322['type']]||_0x5412ef)(_0x57b33a,_0xde4322['name'],_0xde4322['attributes'],_0x1f5e2b);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x1dddc1){this['editor']=_0x1dddc1,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'](_0x4dbad5){this['source']=_0x4dbad5;const _0x1886ae=new Map(),_0x42e2dc=new Map(),_0x4ecf99=this['editor']['model']['document']['roots']['map'](_0x3145db=>_0x3145db['rootName']);for(const _0x38ed52 of _0x4ecf99){const _0x27d717=this['editor']['model']['document']['getRoot'](_0x38ed52),_0x56d64d=T(_0x27d717);_0x1886ae['set'](_0x38ed52,_0x56d64d),_0x42e2dc['set'](_0x38ed52,Object['fromEntries'](_0x27d717['getAttributes']()));}const _0x38bccf=Array['from'](this['editor']['model']['markers'])['map'](_0x25ed93=>[_0x25ed93['name'],_0x25ed93['getRange']()]),_0x3b3cf5=this['source']['version'];this['_saveMetaData'](_0x3b3cf5,_0x1886ae,_0x38bccf,_0x42e2dc),this['_startingRevisionId']=this['_revisionId'];const _0x4eeea0=new Map(),_0x2d76f1=new Map();for(const _0x312765 of _0x4ecf99){const _0x2429ab=F(_0x312765);_0x4eeea0['set'](_0x312765,_0x2429ab),_0x2d76f1['set'](_0x312765,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x4eeea0,[],_0x2d76f1);}['getData'](_0x3b6a13,_0x45b21e){if(this['_lastFrom']===_0x3b6a13&&this['_lastTo']<=_0x45b21e)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x45b21e,!0x0);else{if(!this['_savedMetaData']['has'](_0x3b6a13)){const _0x194b26=this['_getPreviousFrom'](_0x3b6a13);this['_calculateMetaData'](_0x194b26,_0x3b6a13,!0x1);}this['_calculateMetaData'](_0x3b6a13,_0x45b21e,!0x0);}return this['_lastFrom']=_0x3b6a13,this['_lastTo']=_0x45b21e,this['_getState']();}['loadState'](_0x1f4546){this['_reset'](),this['_lastFrom']=_0x1f4546['fromVersion'],this['_lastTo']=_0x1f4546['toVersion'];for(const _0x559032 in _0x1f4546['diffData']){const _0x1b09af=_0x1f4546['diffData'][_0x559032]['attachChange'],_0x4df7f9=_0x256c60(_0x1f4546['diffData'][_0x559032]['attributesBefore'])||{},_0x36f887=this['_makeModelFromViewString'](_0x1f4546['diffData'][_0x559032]['deletions']);_0x36f887['rootName']=_0x559032,_0x36f887['_isAttached']=!_0x1b09af||!_0x1b09af['isAttached'],_0x36f887['isAttached']=()=>_0x36f887['_isAttached'],this['_baseRoots']['set'](_0x559032,_0x36f887),this['_baseRootsAttributes']['set'](_0x559032,_0x4df7f9),_0x1b09af&&this['_touchedRoots']['set'](_0x559032,_0x1b09af);const _0x575010=this['_makeIdsRoot'](_0x36f887);this['_baseIdsRoots']['set'](_0x559032,_0x575010);for(const [_0x37d7ba,_0x32240f]of _0x36f887['markers']){if(!_0x37d7ba['startsWith']('revision:'))continue;const _0x195cc1=_0x37d7ba['split'](':')[0x2];for(const _0x5d7610 of _0x32240f['getWalker']({'singleCharacters':!0x0})){const _0x35e40c=this['_getVidAttributeName'](_0x5d7610),_0x35cb09='elementEnd'==_0x5d7610['type']?_0x5d7610['previousPosition']['path']['slice'](0x0,-0x1):_0x5d7610['previousPosition']['path'],_0x18b0b2=_0x575010['getNodeByPath'](_0x35cb09)['getAttribute'](_0x35e40c);this['_touched']['set'](_0x18b0b2,{'userId':_0x195cc1});}}}this['_startingRevisionId']=this['_revisionId'];const _0x84376f=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0xe8b6d6=>!this['_touched']['has'](_0xe8b6d6));let _0x1ed90d=0x0;const _0x59c3b8=new Map();for(const _0x1584b2 in _0x1f4546['diffData']){const _0x5e10ab=_0x1f4546['diffData'][_0x1584b2]['attachChange'],_0x3df9ec=_0x256c60(_0x1f4546['diffData'][_0x1584b2]['attributesAfter'])||{},_0x1a1a68=this['_makeModelFromViewString'](_0x1f4546['diffData'][_0x1584b2]['insertions']);_0x1a1a68['rootName']=_0x1584b2,_0x1a1a68['_isAttached']=!_0x5e10ab||_0x5e10ab['isAttached'],_0x1a1a68['isAttached']=()=>_0x1a1a68['_isAttached'],this['_diffRoots']['set'](_0x1584b2,_0x1a1a68),this['_diffRootsAttributes']['set'](_0x1584b2,_0x3df9ec);const _0x547ca7=this['_makeIdsRoot'](_0x1a1a68,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x1584b2,_0x547ca7),_0x59c3b8['set'](_0x1584b2,_0x1a1a68['isAttached']()?_0x3df9ec:{});for(const [_0xe64439,_0xaafed9]of _0x1a1a68['markers']){if(!_0xe64439['startsWith']('revision:'))continue;const _0x465d2d=_0xe64439['split'](':')[0x2];for(const _0x3f89a4 of _0xaafed9['getWalker']({'singleCharacters':!0x0})){const _0x2535c1=this['_getVidAttributeName'](_0x3f89a4),_0x571ef=this['_revisionId']++,_0x25e4a5='elementEnd'==_0x3f89a4['type']?_0x3f89a4['previousPosition']['path']['slice'](0x0,-0x1):_0x3f89a4['previousPosition']['path'];_0x547ca7['getNodeByPath'](_0x25e4a5)['_setAttribute'](_0x2535c1,_0x571ef),this['_touched']['set'](_0x571ef,{'userId':_0x465d2d});}}for(const _0x261305 of this['editor']['model']['createRangeIn'](_0x1a1a68)['getWalker']({'singleCharacters':!0x0})){const _0x1ca02e=this['_getVidAttributeName'](_0x261305),_0x5799ed='elementEnd'==_0x261305['type']?_0x261305['previousPosition']['path']['slice'](0x0,-0x1):_0x261305['previousPosition']['path'],_0x5d3c32=_0x547ca7['getNodeByPath'](_0x5799ed);_0x5d3c32['getAttribute'](_0x1ca02e)>0x0||_0x5d3c32['_setAttribute'](_0x1ca02e,_0x84376f[_0x1ed90d++]);}for(const [_0x35cbb7,_0x505645]of _0x1a1a68['markers'])_0x35cbb7['startsWith']('revision:')||this['_markers']['set'](_0x35cbb7,_0x505645);}const _0x19c9ae=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x19c9ae),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x19c9ae,0x1));const _0x3edd34=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x3edd34),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x3edd34,0x1));const _0x48f08a=Array['from'](this['_diffRoots'])['map'](([_0x20fbef,_0x43be28])=>[_0x20fbef,T(_0x43be28)]);this['_saveMetaData'](this['_lastTo'],_0x48f08a,this['_markers'],_0x59c3b8);}['_makeModelFromViewString'](_0x37c0b1){const _0x3cd809=JSON['parse'](_0x37c0b1),_0x471648=this['editor']['editing']['view']['document'],_0x25604d=new _0xf4c57(_0x471648,_0x3cd809['map'](_0x5f314d=>P(_0x5f314d,this['editor'])));return this['editor']['data']['toModel'](_0x25604d);}['_saveMetaData'](_0x8b4ec9,_0x2d8828,_0x164b5e,_0x3814fb){const _0x3ee29b=new Map(_0x2d8828),_0x224758=new Map(_0x256c60(_0x3814fb)),_0x59de99=new Map();for(const [_0x2d69c3,_0x55011d]of _0x164b5e)_0x59de99['set'](_0x2d69c3,{'start':_0x55011d['start']['clone'](),'end':_0x55011d['end']['clone'](),'rootName':_0x55011d['root']['rootName']});this['_savedMetaData']['set'](_0x8b4ec9,{'roots':_0x3ee29b,'markers':_0x59de99,'rootsAttributes':_0x224758});}['_removeMetaData'](_0x3de0c6){this['_savedMetaData']['delete'](_0x3de0c6);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x44fdde,_0x238b46=null){let _0x51b33f=null;_0x44fdde['is']('documentFragment')||(_0x51b33f=new ut(_0x44fdde['name'],{'vid_start':null===_0x238b46?this['_revisionId']++:_0x238b46++}));const _0x320c60=[];for(const _0x301988 of _0x44fdde['getChildren']())if(_0x301988['is']('element')){_0x320c60['push'](this['_makeIdsRoot'](_0x301988,_0x238b46));const _0x288f4b=_0x320c60[_0x320c60['length']-0x1];null!==_0x238b46&&(_0x238b46=_0x288f4b['is']('element','$text')?_0x288f4b['getAttribute']('vid')+0x1:_0x288f4b['getAttribute']('vid_end')+0x1);}else{for(let _0x35abca=0x0;_0x35abca<_0x301988['offsetSize'];_0x35abca++)_0x320c60['push'](new ut('$text',{'vid':null===_0x238b46?this['_revisionId']++:_0x238b46++}));}if(_0x44fdde['is']('documentFragment')){const _0xff4735=F(_0x44fdde['rootName']);return _0xff4735['_insertChild'](0x0,_0x320c60),_0xff4735;}return _0x51b33f['_setAttribute']('vid_end',null===_0x238b46?this['_revisionId']++:_0x238b46++),_0x51b33f['_insertChild'](0x0,_0x320c60),_0x51b33f;}['_calculateMetaData'](_0x21c383,_0x52ac2f,_0x10454b){this['_reset']();const {roots:_0x4326ad,markers:_0x5b8d93,rootsAttributes:_0x2b0bd9}=this['_savedMetaData']['get'](_0x21c383);this['_baseRoots']=new Map(_0x4326ad),this['_baseRootsAttributes']=new Map(_0x256c60(_0x2b0bd9));for(const [_0x28471f,_0x342529]of this['_baseRoots'])if('$graveyard'!==_0x28471f&&(this['_diffRoots']['set'](_0x28471f,T(_0x342529)),this['_diffRootsAttributes']=new Map(_0x256c60(_0x2b0bd9)),_0x10454b)){const _0x211736=this['_revisionId'];this['_idsRoots']['set'](_0x28471f,this['_makeIdsRoot'](_0x342529)),this['_baseIdsRoots']['set'](_0x28471f,this['_makeIdsRoot'](_0x342529,_0x211736));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x10454b&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x34bde4,_0x4c478c]of _0x5b8d93){const _0x3f58f2=this['_baseRoots']['get'](_0x4c478c['rootName']),_0x466e49=this['_diffRoots']['get'](_0x4c478c['rootName']),_0x5b77bd=new ft(this['_fixPosition'](_0x4c478c['start'],_0x3f58f2),this['_fixPosition'](_0x4c478c['end'],_0x3f58f2)),_0xe7ede5=this['_fixRange'](_0x5b77bd,_0x466e49);_0x3f58f2['markers']['set'](_0x34bde4,_0x5b77bd),this['_markers']['set'](_0x34bde4,_0xe7ede5);}this['_applyOperations'](_0x21c383,_0x52ac2f,_0x10454b);}['_applyOperations'](_0x309433,_0x3b4b82,_0x4cad72){for(const _0xe20cd7 of this['source']['getOperations'](_0x309433,_0x3b4b82))this['_handleOperation'](_0xe20cd7,_0x4cad72);for(const _0x324ec5 of this['_diffRoots']['values']())_0x324ec5['markers']['clear']();for(const [_0x1cbc28,_0x463cba]of this['_markers']){this['_diffRoots']['get'](_0x463cba['root']['rootName'])['markers']['set'](_0x1cbc28,_0x463cba['clone']());}const _0x4d211f=new Map(),_0x4d481a=new Map();for(const [_0x14c18f,_0x3a6c45]of this['_diffRoots'])_0x4d211f['set'](_0x14c18f,T(_0x3a6c45)),_0x4d481a['set'](_0x14c18f,this['_diffRootsAttributes']['get'](_0x14c18f));this['_saveMetaData'](_0x3b4b82,_0x4d211f,this['_markers'],_0x4d481a);}['_getPreviousFrom'](_0x57ae65){const _0xcb134b=Array['from'](this['_savedMetaData']['keys']());_0xcb134b['sort']((_0x3f8a77,_0xe2e557)=>_0x3f8a77-_0xe2e557),_0xcb134b['reverse']();for(const _0x1f4d9e of _0xcb134b)if(_0x1f4d9e<_0x57ae65)return _0x1f4d9e;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x56e630,_0x5be85d){const _0x5e930b=Array['from'](_0x5be85d['markers'])['map'](([_0x279fee,_0x120fb3])=>[_0x279fee,this['_fixRange'](_0x120fb3,_0x56e630)]);_0x56e630['markers']=new Map(_0x5e930b);}['_transformMarkers'](_0x4e5f74){for(const _0x480d13 of this['_markers']['values']()){const _0x7cf8f8=_0x480d13['getTransformedByOperation'](_0x4e5f74),_0x94a33=ft['_createFromRanges'](_0x7cf8f8);_0x480d13['start']=_0x94a33['start'],_0x480d13['end']=_0x94a33['end'];}}['_handleOperation'](_0x161c09,_0x1fec5a){if('addRoot'!=_0x161c09['type']&&'detachRoot'!=_0x161c09['type']){if('insert'==_0x161c09['type']){const _0x31a203=_0x161c09['position']['root']['rootName'];this['_diffRoots']['has'](_0x31a203)||(this['_diffRoots']['set'](_0x31a203,F(_0x31a203,!0x0)),this['_diffRootsAttributes']['set'](_0x31a203,{}),_0x1fec5a&&this['_idsRoots']['set'](_0x31a203,F(_0x31a203,!0x0)));}else{if('addRootAttribute'==_0x161c09['type']||'removeRootAttribute'==_0x161c09['type']||'changeRootAttribute'==_0x161c09['type'])return void this['_handleRootAttributeOperation'](_0x161c09);'marker'==_0x161c09['type']&&this['_handleMarkerOperation'](_0x161c09);}if('marker'!==_0x161c09['type']){const _0x2c1621=this['_cloneOperation'](_0x161c09,this['_diffRoots']);_0x2c1621['_execute'](),this['_transformMarkers'](_0x2c1621);}if(_0x1fec5a)switch(_0x161c09['type']){case'insert':this['_handleInsertOperation'](_0x161c09);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x161c09);break;case'merge':this['_handleMergeOperation'](_0x161c09);break;case'split':this['_handleSplitOperation'](_0x161c09);}}else this['_handleRootOperation'](_0x161c09,_0x1fec5a);}['_cloneOperation'](_0xd2e3a1,_0x3b5ad1){const _0x25d1e9=_0xd2e3a1['clone']();return _0x25d1e9['_authorId']=_0xd2e3a1['_authorId'],this['_fixOperation'](_0x25d1e9,_0x3b5ad1),_0x25d1e9;}['_getBaseVids'](_0x2d4de3){return _0x2d4de3['map'](_0x4ecf5e=>{const _0x4867dc=this['_getVidAttributeName'](_0x4ecf5e);return Number(_0x4ecf5e['item']['getAttribute'](_0x4867dc));});}['_generateTape'](_0x5abdd9,_0x91157){if(_0x5abdd9['is']('element','$text'))_0x91157['push']({'item':_0x5abdd9,'type':'text'});else{_0x5abdd9['is']('element')&&_0x91157['push']({'item':_0x5abdd9,'type':'elementStart'});for(const _0x113981 of _0x5abdd9['getChildren']())this['_generateTape'](_0x113981,_0x91157);_0x5abdd9['is']('element')&&_0x91157['push']({'item':_0x5abdd9,'type':'elementEnd'});}return _0x91157;}['_getState'](){const _0x308829=new Map(this['_touched']),_0x1f314d=new Map(_0x308829),_0x3587d1=new Map(),_0x1928b5={'insertions':{},'deletions':{}},_0x41f3da={'insertions':{},'deletions':{}},_0x7b614d=new Map(),_0x7d87c4=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x7d87c4['delete']('$graveyard');for(const _0x277294 of _0x7d87c4){const _0x3fb41e=this['_diffRoots']['get'](_0x277294)||F(_0x277294,!0x1),_0x9925b4=this['_baseRoots']['get'](_0x277294)||F(_0x277294,!0x1);_0x3fb41e['isAttached']()||_0x9925b4['isAttached']()?(_0x1928b5['insertions'][_0x277294]=T(_0x3fb41e),_0x1928b5['deletions'][_0x277294]=T(_0x9925b4),this['_copyMarkers'](_0x1928b5['deletions'][_0x277294],_0x9925b4),this['_copyMarkers'](_0x1928b5['insertions'][_0x277294],_0x3fb41e),_0x41f3da['insertions'][_0x277294]=this['_generateTape'](this['_idsRoots']['get'](_0x277294),[]),_0x41f3da['deletions'][_0x277294]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x277294)||F(_0x277294,!0x1),[])):_0x7d87c4['delete'](_0x277294);}for(const _0x39d179 of _0x7d87c4){const _0x1057c5=_0x41f3da['insertions'][_0x39d179];for(const _0x2339db of _0x1057c5){const _0x4803f8=this['_getVidAttributeName'](_0x2339db),_0x15b0f7=_0x2339db['item']['getAttribute'](_0x4803f8);_0x1f314d['delete'](_0x15b0f7),_0x15b0f7>=this['_startingRevisionId']&&_0x3587d1['set'](_0x15b0f7,_0x308829['get'](_0x15b0f7));}}for(const _0x1f491c of _0x7d87c4){const _0x34b466=_0x41f3da['insertions'][_0x1f491c],_0x5b94e4=this['_getBaseVids'](_0x41f3da['deletions'][_0x1f491c]);let _0x569c23=0x0;for(const _0x41be6d of _0x34b466){const _0x40e099=this['_getVidAttributeName'](_0x41be6d),_0x4c45e4=_0x41be6d['item']['getAttribute'](_0x40e099);if(!_0x3587d1['has'](_0x4c45e4)&&!_0x7b614d['has'](_0x4c45e4)){if(_0x1f314d['has'](_0x4c45e4))_0x569c23++;else{if(_0x4c45e4!=_0x5b94e4[_0x569c23]){const _0x6ec996=_0x308829['get'](_0x4c45e4)||_0x308829['get'](_0x5b94e4[_0x569c23]);for(;_0x4c45e4!=_0x5b94e4[_0x569c23];)_0x1f314d['has'](_0x5b94e4[_0x569c23])||(_0x7b614d['set'](_0x5b94e4[_0x569c23],_0x6ec996),_0x308829['set'](_0x5b94e4[_0x569c23],_0x6ec996)),_0x569c23++;}_0x569c23++;}}}}for(const _0x37edd2 of _0x7d87c4){const _0xa94ad4=_0x41f3da['insertions'][_0x37edd2];for(const _0x22bdba of _0xa94ad4){const _0x605b84=this['_getVidAttributeName'](_0x22bdba),_0x45c36f=_0x22bdba['item']['getAttribute'](_0x605b84);if(_0x7b614d['has'](_0x45c36f)){const _0x1a7090=_0x7b614d['get'](_0x45c36f);_0x1f314d['has'](_0x45c36f)||_0x1f314d['set'](_0x45c36f,{..._0x1a7090}),_0x3587d1['set'](_0x45c36f,{..._0x1a7090});}}}for(const _0x121536 of _0x1f314d['keys']())_0x121536>=this['_startingRevisionId']&&_0x1f314d['delete'](_0x121536);const _0x35156d=new Map();for(const _0x497538 of _0x7d87c4){let _0x5c1da3=_0x41f3da['insertions'][_0x497538];for(const _0x468fa8 of _0x5c1da3)if(_0x468fa8['item']['is']('element','tableCell')){const _0x57b072=this['_getVidAttributeName'](_0x468fa8),_0x36d627=_0x468fa8['item']['getAttribute'](_0x57b072);if(_0x3587d1['has'](_0x36d627)){const _0x55fc0f=_0x468fa8['item']['parent']['parent']['getAttribute']('vid_start'),_0x121eb7=_0x35156d['get'](_0x55fc0f)||new Set();_0x121eb7['add'](_0x3587d1['get'](_0x36d627)['userId']),_0x35156d['set'](_0x55fc0f,_0x121eb7);}}_0x5c1da3=_0x41f3da['deletions'][_0x497538];for(const _0x307808 of _0x5c1da3)if(_0x307808['item']['is']('element','tableCell')){const _0x2e9a36=this['_getVidAttributeName'](_0x307808),_0x5abeb5=_0x307808['item']['getAttribute'](_0x2e9a36);if(_0x1f314d['has'](_0x5abeb5)){const _0x38f74c=_0x307808['item']['parent']['parent']['getAttribute']('vid_start'),_0x3e9991=_0x35156d['get'](_0x38f74c)||new Set();_0x3e9991['add'](_0x1f314d['get'](_0x5abeb5)['userId']),_0x35156d['set'](_0x38f74c,_0x3e9991);}}for(const _0x3a03de of _0x35156d['keys']())(_0x3587d1['has'](_0x3a03de)||_0x1f314d['has'](_0x3a03de))&&_0x35156d['delete'](_0x3a03de);}for(const _0xdf7fe1 of _0x7d87c4){const _0x44f88d=_0x41f3da['insertions'][_0xdf7fe1];let _0x351566=null,_0x15106b=null;for(const _0x2f572a of _0x44f88d){const _0x3576fd=this['_getVidAttributeName'](_0x2f572a),_0x114318=_0x2f572a['item']['getAttribute'](_0x3576fd),_0xd28671=_0x35156d['get'](_0x114318);_0xd28671&&'elementStart'==_0x2f572a['type']&&(_0x351566=Array['from'](_0xd28671)[0x0],_0x15106b=_0x2f572a['item']['getAttribute']('vid_end')),_0x351566&&(_0x1f314d['set'](_0x114318,{'userId':_0x351566}),_0x3587d1['set'](_0x114318,{'userId':_0x351566})),_0x114318==_0x15106b&&(_0x351566=null,_0x15106b=null);}}const _0x40733a={},_0xb38fc8=new Set();for(const _0x12f2e9 of _0x7d87c4){const _0x428703=_0x1928b5['deletions'][_0x12f2e9],_0x242f5b=_0x1928b5['insertions'][_0x12f2e9];for(const {userId:_0x5c9e21}of this['_touchedMarkers']['values']())null!==_0x5c9e21&&_0xb38fc8['add'](_0x5c9e21);for(const {userId:_0x59be93}of this['_touchedRoots']['values']())null!==_0x59be93&&_0xb38fc8['add'](_0x59be93);this['_markChanges'](_0x242f5b,_0x41f3da['insertions'][_0x12f2e9],_0x3587d1,'insertion',_0xb38fc8),this['_markChanges'](_0x428703,_0x41f3da['deletions'][_0x12f2e9],_0x1f314d,'deletion',_0xb38fc8),_0x40733a[_0x12f2e9]={'insertions':this['_prepareViewToSave'](_0x242f5b),'deletions':this['_prepareViewToSave'](_0x428703),'attachChange':this['_touchedRoots']['get'](_0x12f2e9)||null,'attributesBefore':_0x256c60(this['_baseRootsAttributes']['get'](_0x12f2e9))||{},'attributesAfter':_0x256c60(this['_diffRootsAttributes']['get'](_0x12f2e9))};}return{'diffData':_0x40733a,'authorsIds':Array['from'](_0xb38fc8)};}['_processRootBeforeSave'](_0x232797){for(const [,_0x186e19]of _0x232797['markers']){const _0x5077df=_0x186e19['start']['getAncestors']()['filter'](_0x444a3a=>'tableCell'==_0x444a3a['name']);for(const _0x2ca12f of _0x5077df)0x1==_0x2ca12f['childCount']&&_0x2ca12f['getChild'](0x0)['is']('element','paragraph')&&_0x2ca12f['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x1cf3c4){this['_processRootBeforeSave'](_0x1cf3c4);const _0x4efbc9=this['editor']['data']['toView'](_0x1cf3c4,{}),_0x1ec3e5=Array['from'](_0x4efbc9['getChildren']())['map'](_0x5ac1a6=>this['_getViewJson'](_0x5ac1a6));return JSON['stringify'](_0x1ec3e5);}['_getViewJson'](_0x448d80){if(_0x448d80['is']('$text'))return _0x448d80['data'];{const _0x3e9471=_0x448d80;return{'type':Object['keys'](E)['find'](_0x5582ec=>_0x448d80 instanceof E[_0x5582ec]),'name':_0x3e9471['name'],'attributes':Array['from'](_0x3e9471['getAttributes']()),'children':Array['from'](_0x3e9471['getChildren']())['map'](_0x108c9e=>this['_getViewJson'](_0x108c9e))};}}['_markChanges'](_0x4129c8,_0x299a38,_0x58c2db,_0xb5e6a0,_0x354070){let _0x4bdd46=null,_0x158f59=null,_0x3e14dc=0x0;const _0x36dba4=this['editor']['model'];for(let _0x216c49=0x0;_0x216c49<_0x299a38['length'];_0x216c49++){const _0x52fb4b=this['_getVidAttributeName'](_0x299a38[_0x216c49]),_0x215240=_0x299a38[_0x216c49]['item']['getAttribute'](_0x52fb4b),_0x5125a3=_0x58c2db['get'](_0x215240),_0x3a2f86=_0x216c49==_0x299a38['length']-0x1;(!_0x4bdd46&&_0x5125a3&&(_0x4bdd46=_0x5125a3,_0x158f59=_0x299a38[_0x216c49]),_0x4bdd46&&(!_0x5125a3||_0x5125a3['userId']!=_0x4bdd46['userId']))&&(_0x953310(_0x5125a3,B(_0x158f59,_0x4129c8,_0x36dba4),B(_0x299a38[_0x216c49],_0x4129c8,_0x36dba4)),_0x4bdd46=_0x5125a3||null,_0x158f59=_0x5125a3?_0x299a38[_0x216c49]:null),_0x4bdd46&&_0x3a2f86&&_0x953310(_0x5125a3,B(_0x158f59,_0x4129c8,_0x36dba4),J(_0x299a38[_0x216c49],_0x4129c8,_0x36dba4));}function _0x953310(_0x1b9fd2,_0x5939b2,_0xeabd5c){const _0x4906a0=_0x4bdd46['userId'],_0x5c5773='revision:'+_0xb5e6a0+':'+_0x4906a0+':'+_0x3e14dc++,_0x455ead=_0x36dba4['createRange'](_0x5939b2,_0xeabd5c);_0x4129c8['markers']['set'](_0x5c5773,_0x455ead),null!==_0x4906a0&&_0x354070['add'](_0x4906a0);}}['_getVidAttributeName'](_0x1ff7f0){switch(_0x1ff7f0['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x1c162b,_0x5d5b04){_0x1c162b['baseVersion']=null;for(const _0x16468f in _0x1c162b){const _0x570527=_0x1c162b[_0x16468f];if(_0x570527 instanceof vt){const _0x2dcdea=_0x5d5b04['get'](_0x570527['root']['rootName']);_0x1c162b[_0x16468f]=this['_fixPosition'](_0x570527,_0x2dcdea);}if(_0x570527 instanceof ft){const _0x437907=_0x5d5b04['get'](_0x570527['root']['rootName']);_0x1c162b[_0x16468f]=this['_fixRange'](_0x570527,_0x437907);}'root'===_0x16468f&&(_0x1c162b['root']=_0x5d5b04['get'](_0x1c162b['root']['rootName']));}}['_fixRange'](_0x58e2d6,_0x1e111d){return this['editor']['model']['createRange'](this['_fixPosition'](_0x58e2d6['start'],_0x1e111d),this['_fixPosition'](_0x58e2d6['end'],_0x1e111d));}['_fixPosition'](_0x5ed2d9,_0xb47f6){return this['editor']['model']['createPositionFromPath'](_0xb47f6,_0x5ed2d9['path'],_0x5ed2d9['stickiness']);}['_handleInsertOperation'](_0x282c44){const _0x4f74f2=this['_idsRoots']['get'](_0x282c44['position']['root']['rootName']),_0x50445b=this['_fixPosition'](_0x282c44['position'],_0x4f74f2),_0x58676e=null===_0x282c44['_authorId']?null:_0x282c44['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x33dd6b=_0x50445b['parent'],_0x10affe=this['_revisionId'],_0x385f1e=[];for(const _0x220d55 of _0x282c44['nodes'])if(_0x220d55['is']('element'))_0x385f1e['push'](this['_makeIdsRoot'](_0x220d55));else{for(let _0x50d82b=0x0;_0x50d82b<_0x220d55['offsetSize'];_0x50d82b++)_0x385f1e['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x540720=this['_revisionId'];for(let _0x5a686f=_0x10affe;_0x5a686f<_0x540720;_0x5a686f++)this['_touched']['set'](_0x5a686f,{'userId':_0x58676e});_0x33dd6b['_insertChild'](_0x50445b['offset'],_0x385f1e);}['_handleMoveOperation'](_0x485987){(_0x485987=this['_cloneOperation'](_0x485987,this['_idsRoots']))['_execute']();const _0x5b1b95=null===_0x485987['_authorId']?null:_0x485987['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x48f537=_0x485987['getMovedRangeStart'](),_0x59a363=_0x48f537['parent'],_0x5744f1=_0x48f537['offset'];!function _0x14ab30(_0x2119c5,_0x55e230,_0x465084,_0x1e1e52){for(let _0xf9d916=_0x465084;_0xf9d916<_0x1e1e52;_0xf9d916++){const _0x2f3fed=_0x55e230['getChild'](_0xf9d916);_0x2f3fed['is']('element','$text')?_0x2119c5['set'](_0x2f3fed['getAttribute']('vid'),{'userId':_0x5b1b95}):(_0x2119c5['set'](_0x2f3fed['getAttribute']('vid_start'),{'userId':_0x5b1b95}),_0x14ab30(_0x2119c5,_0x2f3fed,0x0,_0x2f3fed['childCount']),_0x2119c5['set'](_0x2f3fed['getAttribute']('vid_end'),{'userId':_0x5b1b95}));}}(this['_touched'],_0x59a363,_0x5744f1,_0x5744f1+_0x485987['howMany']);}['_handleMergeOperation'](_0x350170){const _0x16d7cd=null===(_0x350170=this['_cloneOperation'](_0x350170,this['_idsRoots']))['_authorId']?null:_0x350170['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x35ec94=_0x350170['targetPosition']['parent'],_0x3c5d8a=_0x350170['sourcePosition']['parent'],_0x1f9634=_0x35ec94['getAttribute']('vid_end'),_0x5bee18=_0x3c5d8a['getAttribute']('vid_start');_0x35ec94['_setAttribute']('vid_end',_0x3c5d8a['getAttribute']('vid_end')),_0x3c5d8a['_setAttribute']('vid_end',_0x1f9634),this['_touched']['set'](_0x5bee18,{'userId':_0x16d7cd}),this['_touched']['set'](_0x1f9634,{'userId':_0x16d7cd}),_0x350170['_execute']();}['_handleSplitOperation'](_0x5f17d5){const _0x5e2665=null===(_0x5f17d5=this['_cloneOperation'](_0x5f17d5,this['_idsRoots']))['_authorId']?null:_0x5f17d5['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x183391=_0x5f17d5['graveyardPosition'],_0x16de35=_0x5f17d5['splitPosition']['parent'];_0x5f17d5['_execute']();const _0x50eb4b=_0x16de35['getAttribute']('vid_end'),_0x19e96c=_0x5f17d5['insertionPosition']['nodeAfter'];if(_0x183391){const _0x5212e9=_0x19e96c['getAttribute']('vid_end'),_0x9c4aec=_0x16de35['getAttribute']('vid_end');_0x16de35['_setAttribute']('vid_end',_0x5212e9),_0x19e96c['_setAttribute']('vid_end',_0x9c4aec),this['_touched']['set'](_0x16de35['getAttribute']('vid_end'),{'userId':_0x5e2665}),this['_touched']['set'](_0x19e96c['getAttribute']('vid_start'),{'userId':_0x5e2665});}else{const _0xc51755=this['_revisionId']++,_0x4d1e49=this['_revisionId']++;_0x16de35['_setAttribute']('vid_end',_0xc51755),_0x19e96c['_setAttribute']('vid_start',_0x4d1e49),_0x19e96c['_setAttribute']('vid_end',_0x50eb4b),this['_touched']['set'](_0xc51755,{'userId':_0x5e2665}),this['_touched']['set'](_0x4d1e49,{'userId':_0x5e2665});}}['_handleMarkerOperation'](_0x30a806){if(!_0x30a806['affectsData'])return;const _0x4a2ab9=(_0x30a806=this['_cloneOperation'](_0x30a806,this['_diffRoots']))['oldRange']?_0x30a806['oldRange']['root']:null,_0x39165c=_0x30a806['newRange']?_0x30a806['newRange']['root']:null;_0x4a2ab9&&this['_markers']['delete'](_0x30a806['name']),_0x39165c&&this['_markers']['set'](_0x30a806['name'],_0x30a806['newRange']['clone']());const _0x481d2c=null===_0x30a806['_authorId']?null:_0x30a806['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x46aa37=_0x30a806['name'];if(!this['_touchedMarkers']['has'](_0x46aa37))return void this['_touchedMarkers']['set'](_0x46aa37,{'range':_0x30a806['oldRange'],'userId':_0x481d2c});const _0x367f50=this['_touchedMarkers']['get'](_0x46aa37),_0x55c457=_0x367f50['range'],_0x2a9bb0=_0x30a806['newRange'];null==_0x55c457&&null==_0x2a9bb0||_0x55c457&&_0x2a9bb0&&_0x55c457['isEqual'](_0x2a9bb0)?this['_touchedMarkers']['delete'](_0x30a806['name']):_0x367f50['userId']=_0x481d2c;}['_handleRootOperation'](_0x240086,_0x1bfb4d){this['_diffRoots']['has'](_0x240086['rootName'])?this['_diffRoots']['get'](_0x240086['rootName'])['_isAttached']=_0x240086['isAdd']:(this['_diffRoots']['set'](_0x240086['rootName'],F(_0x240086['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x240086['rootName'],{}),_0x1bfb4d&&this['_idsRoots']['set'](_0x240086['rootName'],F(_0x240086['rootName'],!0x0)));const _0x20c3ca=null===_0x240086['_authorId']?null:_0x240086['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x25955f=this['_touchedRoots']['get'](_0x240086['rootName']);_0x25955f&&_0x25955f['userId']===_0x20c3ca?this['_touchedRoots']['delete'](_0x240086['rootName']):this['_touchedRoots']['set'](_0x240086['rootName'],{'userId':_0x20c3ca,'isAttached':_0x240086['isAdd']});}['_handleRootAttributeOperation'](_0x2aaa9a){const _0x5b93ae=this['_diffRootsAttributes']['get'](_0x2aaa9a['root']['rootName']);null===_0x2aaa9a['newValue']?delete _0x5b93ae[_0x2aaa9a['key']]:_0x5b93ae[_0x2aaa9a['key']]=_0x2aaa9a['newValue'];}}function T(_0x22ff40){const _0x2ee66c=F(_0x22ff40['rootName'],_0x22ff40['isAttached']());for(const _0x342d15 of _0x22ff40['getChildren']()){const _0x3b0c03=_0x342d15['_clone'](!0x0);_0x2ee66c['_appendChild'](_0x3b0c03);}return _0x2ee66c;}function F(_0x976cea,_0x3b848c=!0x0){const _0x465dc1=new gt();return _0x465dc1['rootName']=_0x976cea,_0x465dc1['_isAttached']=_0x3b848c,_0x465dc1['isAttached']=()=>_0x465dc1['_isAttached'],_0x465dc1;}function B(_0x248e6f,_0xdd4161,_0xeb0413){const _0x5bf93f='elementEnd'==_0x248e6f['type']?_0xeb0413['createPositionAt'](_0x248e6f['item'],'end'):_0xeb0413['createPositionBefore'](_0x248e6f['item']);return _0xeb0413['createPositionFromPath'](_0xdd4161,_0x5bf93f['path'],_0x5bf93f['stickiness']);}function J(_0x25fe9d,_0x173b19,_0x21788d){const _0x1c8c17='elementStart'==_0x25fe9d['type']?_0x21788d['createPositionAt'](_0x25fe9d['item'],0x0):_0x21788d['createPositionAfter'](_0x25fe9d['item']);return _0x21788d['createPositionFromPath'](_0x173b19,_0x1c8c17['path'],_0x1c8c17['stickiness']);}class os extends _0x4b1a88{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x90aa7a,_0x4c75ae){super(_0x90aa7a),this['focusTracker']=new _0x34391c(),this['keystrokes']=new _0x1d45f3(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x4c75ae),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),ts(this);}['render'](){super['render'](),_0x2df78d({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x52f045=_0x4d6c2f=>_0x4d6c2f['stopPropagation']();this['keystrokes']['set']('arrowright',_0x52f045),this['keystrokes']['set']('arrowleft',_0x52f045),this['keystrokes']['set']('arrowup',_0x52f045),this['keystrokes']['set']('arrowdown',_0x52f045);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x184a50){this['revisionNameInputView']['fieldView']['element']['value']=_0x184a50['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x403973){const _0x34f490=new at(this['locale'],ti),_0x31ea32=_0x34f490['fieldView'];_0x31ea32['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x4f7cbe=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x403973&&(_0x4f7cbe+='\x20('+m(this['locale'],'optional')+')'),(_0x34f490['label']=_0x4f7cbe,_0x31ea32['on']('input',()=>{this['revisionNameInputValue']=_0x31ea32['element']['value']['trim']();}),_0x34f490);}}class f extends _0x9eb535{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x191592=this['editor'],_0x49ebe8=_0x191592['plugins']['get']('RevisionTracker');_0x191592['ui']['componentFactory']['add']('revisionHistory',_0x25ecb0=>{const _0x41a38a=_0x40e574(_0x25ecb0),_0x14147d=_0x41a38a['panelView']['children'],_0x155a2a=new _0x287db8(_0x25ecb0),_0x15ca8c=new te(_0x25ecb0),_0x5cacda=new _0x380667(_0x25ecb0),_0x5bfa95=new te(_0x25ecb0),_0x421258=new _0x380667(_0x25ecb0);return _0x41a38a['bind']('isEnabled')['to'](_0x49ebe8,'isReady',_0x49ebe8,'isEnabled',_0x191592,'isReadOnly',(_0x136072,_0x179437,_0x26b3a6)=>_0x136072&&_0x179437&&!_0x26b3a6),_0x41a38a['buttonView']['set']({'icon':_0x217a2a,'label':m(_0x25ecb0,'Revision\x20history'),'tooltip':!0x0}),_0x5cacda['set']({'label':m(_0x25ecb0,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x5cacda['bind']('isEnabled')['to'](_0x49ebe8,'isReady',_0x49ebe8,'isEnabled',_0x191592,'isReadOnly',(_0x496524,_0x32e017,_0x5b7bd9)=>_0x496524&&_0x32e017&&!_0x5b7bd9),_0x5cacda['on']('execute',()=>this['_showDialog']()),_0x421258['set']({'label':m(_0x25ecb0,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x421258['bind']('isEnabled')['to'](_0x49ebe8,'isReady',_0x191592,'isReadOnly',(_0x256fe1,_0x2d1f7)=>_0x256fe1&&!_0x2d1f7),_0x421258['on']('execute',()=>{_0x191592['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x41a38a['isOpen']=!0x1,_0x191592['editing']['view']['focus']();}),_0x15ca8c['children']['add'](_0x5cacda),_0x5bfa95['children']['add'](_0x421258),_0x155a2a['role']='menu',_0x155a2a['items']['addMany']([_0x15ca8c,_0x5bfa95]),_0x14147d['add'](_0x155a2a),_0x41a38a;}),_0x191592['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x45c833=this['editor'],_0x43bf9f=_0x45c833['locale'],_0x491d03=new _0x321a34(_0x43bf9f),_0x1a5874=new _0x5c1af5(_0x43bf9f);_0x491d03['buttonView']['set']({'icon':_0x217a2a,'label':m(_0x43bf9f,'Revision\x20history')});const _0x21c9a7=new _0x59658e(_0x43bf9f,_0x491d03),_0x2d92fb=new _0x4afdd6(_0x43bf9f);_0x2d92fb['set']({'label':m(_0x43bf9f,'Save\x20current\x20revision')}),_0x2d92fb['delegate']('execute')['to'](_0x491d03),_0x2d92fb['on']('execute',()=>{this['_showDialog']();}),_0x21c9a7['children']['add'](_0x2d92fb),_0x1a5874['items']['add'](_0x21c9a7);const _0x16f59a=new _0x59658e(_0x43bf9f,_0x491d03),_0x4dcdb9=new _0x4afdd6(_0x43bf9f);return _0x4dcdb9['set']({'label':m(_0x43bf9f,'Open\x20revision\x20history')}),_0x4dcdb9['delegate']('execute')['to'](_0x491d03),_0x4dcdb9['on']('execute',()=>{_0x45c833['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x16f59a['children']['add'](_0x4dcdb9),_0x1a5874['items']['add'](_0x16f59a),_0x491d03['panelView']['children']['add'](_0x1a5874),_0x491d03;}['_showDialog'](){const _0x5ea7ac=this['editor'],_0xcc952b=_0x5ea7ac['locale'],_0x5aed8b=_0x5ea7ac['plugins']['get']('Dialog'),_0x6217ae=_0x5ea7ac['plugins']['get']('RevisionTracker');function _0x34dad8(_0x597241){_0x5ea7ac['config']['get']('revisionHistory.requireRevisionName')&&''===_0x597241['revisionName']?_0x597241['revisionNameInputView']['errorText']=m(_0xcc952b,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x5ea7ac['plugins']['get'](u)['saveRevision']({'name':_0x597241['revisionName']}),_0x5aed8b['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x34dad8(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x5aed8b['show']({'id':'revisionSave','title':m(_0xcc952b,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x5ea7ac['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x5aed8b['hide']()},{'label':m(_0x5ea7ac['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x3e8dd5){_0x3e8dd5['bind']('isEnabled')['to'](_0x6217ae,'isReady',_0x6217ae,'isEnabled',_0x5ea7ac,'isReadOnly',(_0x28ece6,_0x4b342e,_0x20db7c)=>_0x28ece6&&_0x4b342e&&!_0x20db7c);},'onExecute':()=>_0x34dad8(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0xddadc6=this['editor'],_0x558f16=_0xddadc6['locale'];this['_saveRevisionFormView']=new os(_0x558f16,_0xddadc6['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0x4b1a88{['changeId'];['_model'];constructor(_0x117a77,_0x1877b6){super(_0x117a77),this['_model']=_0x1877b6,this['changeId']=_0x1877b6['id'];const _0x1aaa39=this['bindTemplate'],_0x5ec739=m(_0x117a77,_0x1877b6['data']['isSuggestion']?'Suggested\x20by':'add'==_0x1877b6['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x1877b6['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x1aaa39['to']('type',_0x24b15e=>'ck-revision-change__'+_0x24b15e)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x5ec739}]},{'text':'\x20'+_0x1877b6['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x503730(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x4dffb1){super(),this['id']=_0x4dffb1['id']||_0x2eb9f0(),this['author']=_0x4dffb1['author'],this['type']=_0x4dffb1['type'],this['data']=_0x4dffb1['data']||{},this['rootName']=_0x4dffb1['rootName'],this['set']('createdAt',_0x4dffb1['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(_0x2b1c42,_0x1df8b4){this['newRevisionId']=_0x2b1c42,this['oldRevisionId']=_0x1df8b4,this['changes']=new _0x1c6017();}['_setChanges'](_0x2578c1){for(const _0x44bfa3 of _0x2578c1)this['changes']['add'](_0x44bfa3);}}const Y={'c':_0x5072cd,'a':_0x3f2f3f,'e':_0x5009b1,'r':_0x5f234d,'u':_0xa5205f};class d extends _0x9eb535{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x492036,_0x1db1e0,j];}constructor(_0x51981f){super(_0x51981f),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x3c96c9,_0x1cf7c2,_0x244247)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x19fa5e=>{for(const _0x524887 of this['editor']['editing']['view']['document']['roots'])_0x244247?_0x19fa5e['removeClass']('ck-editor__editable__overlay',_0x524887):_0x19fa5e['addClass']('ck-editor__editable__overlay',_0x524887);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x22eb34=>null!==_0x22eb34),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x29725e,_0x2ef206,_0x448fa7)=>_0x29725e&&_0x448fa7?_0x2ef206['changes']['getIndex'](_0x448fa7):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x98fa3,_0x55b590)=>_0x98fa3?_0x55b590['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x1db1e0);}['init'](){const _0x416a42=this['editor'],_0x1587be=new yt(_0x416a42,{'direction':'backward'}),_0x89abd2=new yt(_0x416a42,{'direction':'forward'});(_0x416a42['commands']['add']('showPreviousChange',_0x1587be),_0x416a42['commands']['add']('showNextChange',_0x89abd2),_0x416a42['commands']['add']('restoreRevision',new _t(_0x416a42)),this['on']('change:numberOfChanges',()=>{_0x1587be['refresh'](),_0x89abd2['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x416a42['enableReadOnlyMode']('revision-viewer'),_0x416a42['plugins']['has']('WidgetToolbarRepository'))&&_0x416a42['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x3158a8){await this['loadRevisionData'](_0x3158a8);const _0x32a570={};for(const _0x1ebc16 in _0x3158a8['diffData']){if(_0x3158a8['diffData'][_0x1ebc16]['attachChange']&&!_0x3158a8['diffData'][_0x1ebc16]['attachChange']['isAttached'])continue;const _0x1c9138=this['_removeRevisionMarkers'](JSON['parse'](_0x3158a8['diffData'][_0x1ebc16]['insertions'])),_0x4c6ca5=this['editor']['editing']['view']['document'],_0x432b68=new _0xf4c57(_0x4c6ca5,_0x1c9138['map'](_0x54eafa=>this['_getViewObj'](_0x54eafa)));this['editor']['data']['processor']['useFillerType']('marked'),_0x32a570[_0x1ebc16]=this['editor']['data']['processor']['toData'](_0x432b68),this['editor']['data']['processor']['useFillerType']('default');}return _0x32a570;}async['getRevisionRootsAttributes'](_0xed7a00){await this['loadRevisionData'](_0xed7a00);const _0x4075b8={};for(const _0x4a29f6 in _0xed7a00['diffData'])_0xed7a00['diffData'][_0x4a29f6]['attachChange']&&!_0xed7a00['diffData'][_0x4a29f6]['attachChange']['isAttached']||(_0x4075b8[_0x4a29f6]=_0xed7a00['diffData'][_0x4a29f6]['attributesAfter']||{});return _0x4075b8;}['_removeRevisionMarkers'](_0x44d533){return(_0x44d533=_0x44d533['filter'](_0x448b6e=>!_0x448b6e['name']||'revision-start'!==_0x448b6e['name']&&'revision-end'!==_0x448b6e['name']))['forEach'](_0x4b6ba3=>{'string'!=typeof _0x4b6ba3&&(_0x4b6ba3['children']=this['_removeRevisionMarkers'](_0x4b6ba3['children']),_0x4b6ba3['attributes']=_0x4b6ba3['attributes']['filter'](_0x299e95=>!_0x299e95[0x0]['startsWith']('data-revision-')));}),_0x44d533;}async['compare'](_0x4b612c,_0x4ef475,_0x4d603d=!0x1){if(!this['isEnabled'])return;const _0x1a063f=this['diff'],_0x2d34f8=this['repository'],_0x2dac65='string'==typeof _0x4b612c?_0x2d34f8['getRevision'](_0x4b612c):_0x4b612c,_0x13cc9d='string'==typeof _0x4ef475?_0x2d34f8['getRevision'](_0x4ef475):_0x4ef475,_0x505b39=_0x2dac65['id'],_0x519682=_0x13cc9d?_0x13cc9d['id']:null;if(!_0x4d603d&&this['diff']&&this['diff']['newRevisionId']===_0x505b39&&this['diff']['oldRevisionId']===_0x519682)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x505b39,_0x519682);const _0x174c1b=this['_getRevisionsRange'](_0x2dac65,_0x13cc9d,!0x0)['map'](_0x43f921=>this['loadRevisionData'](_0x43f921));return _0x174c1b['push'](new Promise(_0x4d7f1c=>{setTimeout(_0x4d7f1c,0x14);})),Promise['all'](_0x174c1b)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0xbac35d=this['_getDiff'](_0x505b39,_0x519682);for(const _0x1ea51f of _0xbac35d['changes'])this['_changeIdToChange']['set'](_0x1ea51f['id'],_0x1ea51f);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x458400=>{for(const _0x5a2336 of this['editor']['model']['document']['getRootNames']())_0x458400['detachRoot'](_0x5a2336);for(const _0x2e19d5 of Object['keys'](_0xbac35d['model'])){const _0xb66973=_0x458400['addRoot'](_0x2e19d5);for(const _0x35b369 of Object['keys'](_0xbac35d['attributes'][_0x2e19d5]))_0x458400['setAttribute'](_0x35b369,_0xbac35d['attributes'][_0x2e19d5][_0x35b369],_0xb66973);_0x458400['insert'](_0xbac35d['model'][_0x2e19d5],_0xb66973,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0xbac35d['changes'])),this['isReady']=!0x0;})['catch'](_0x16e2b1=>{console['error'](_0x16e2b1),this['_cleanUp'](),_0x1a063f&&(this['diff']=_0x1a063f),this['isReady']=!0x0;});}['addRevisionData'](_0x493456,_0x5741f9){const _0xc06280=this['repository']['createRevision'](_0x493456);return _0xc06280['on']('_update',(_0x4fa067,_0x4a8008,_0x108692)=>_0x5741f9(_0x4a8008,_0x108692,_0xc06280)),this['repository']['addRevision'](_0xc06280),_0xc06280;}['loadRevisionData'](_0x2da75e){if(!_0x2da75e||_0x2da75e['diffData'])return Promise['resolve']();{const _0x445ffb=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x445ffb,'revisionId':_0x2da75e['id']})['then'](_0x5c5e42=>{_0x2da75e['_update']({'diffData':_0x5c5e42['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x2eb206=>{for(const _0x3779b6 of this['editor']['model']['document']['getRootNames']())_0x2eb206['detachRoot'](_0x3779b6);});}['_sortAndFilterDiffChanges'](_0x8757f3){const _0x4b7558=[],_0x37ef3c=new Map();for(const _0x473ee8 of this['editor']['model']['document']['getRootNames']()){const _0x449f0b=this['editor']['editing']['view']['getDomRoot'](_0x473ee8);if(!_0x449f0b)continue;const _0x3999bb=_0x449f0b['getClientRects']()['item'](0x0);_0x3999bb&&(_0x4b7558['push'](_0x473ee8),_0x37ef3c['set'](_0x473ee8,_0x3999bb));}return _0x4b7558['sort']((_0x128f35,_0x25908f)=>{const _0x1fb5a4=_0x37ef3c['get'](_0x128f35),_0x1a8fc7=_0x37ef3c['get'](_0x25908f);return _0x1fb5a4['y']-_0x1a8fc7['y']||_0x1fb5a4['x']-_0x1a8fc7['x'];}),(_0x8757f3=_0x8757f3['filter'](_0x2b8ffa=>_0x4b7558['includes'](_0x2b8ffa['rootName'])))['sort']((_0x448864,_0x3547be)=>_0x4b7558['indexOf'](_0x448864['rootName'])-_0x4b7558['indexOf'](_0x3547be['rootName'])),_0x8757f3;}['_makeTape'](_0x531436){const _0x72b9=Array['from'](_0x531436['markers'])['filter'](([_0x33dbe0,_0x270e56])=>_0x33dbe0['startsWith']('revision:')&&!_0x270e56['isCollapsed']),_0x50a165=Array['from'](this['editor']['model']['createRangeIn'](_0x531436)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x72b9['length'])for(const _0x3dd873 of _0x50a165){const [_0x16429e,_0x58b600]=_0x72b9[0x0],[,_0x397675,_0x1a4e2b]=_0x16429e['split'](':');if(_0x58b600['end']['isEqual'](_0x3dd873['nextPosition'])&&_0x72b9['shift'](),(_0x3dd873['previousPosition']['isEqual'](_0x58b600['start'])||_0x3dd873['previousPosition']['isAfter'](_0x58b600['start']))&&('insertion'==_0x397675?_0x3dd873['isAdded']={'userId':_0x1a4e2b}:'deletion'==_0x397675&&(_0x3dd873['isRemoved']={'userId':_0x1a4e2b})),0x0==_0x72b9['length'])break;}return _0x50a165;}['_refreshStartEndIndex'](_0x18936f){const _0x552854=new Map();for(let _0x750fcf=0x0;_0x750fcf<_0x18936f['length'];_0x750fcf++)'text'===_0x18936f[_0x750fcf]['type']?(_0x18936f[_0x750fcf]['item']['startIndex']=_0x750fcf,_0x18936f[_0x750fcf]['item']['endIndex']=_0x750fcf):('elementStart'===_0x18936f[_0x750fcf]['type']?_0x18936f[_0x750fcf]['item']['startIndex']=_0x750fcf:'elementEnd'===_0x18936f[_0x750fcf]['type']&&(_0x18936f[_0x750fcf]['item']['endIndex']=_0x750fcf),_0x552854['set'](_0x18936f[_0x750fcf]['id'],_0x750fcf));for(const _0x9adfd7 of _0x552854['values']())'elementStart'===_0x18936f[_0x9adfd7]['type']?_0x18936f[_0x9adfd7]['item']['endIndex']=_0x552854['get'](_0x18936f[_0x9adfd7]['pairId']):'elementEnd'===_0x18936f[_0x9adfd7]['type']&&(_0x18936f[_0x9adfd7]['item']['startIndex']=_0x552854['get'](_0x18936f[_0x9adfd7]['pairId']));}['_processTape'](_0x273a06){for(let _0x26e756=0x0;_0x26e756<_0x273a06['length'];_0x26e756++){if('elementStart'===_0x273a06[_0x26e756]['type'])_0x273a06[_0x26e756]['item']['startIndex']=_0x26e756;else{if('elementEnd'===_0x273a06[_0x26e756]['type']){_0x273a06[_0x26e756]['item']['endIndex']=_0x26e756;const _0x35b829=_0x273a06[_0x26e756]['item']['startIndex'];_0x273a06[_0x35b829]['pairId']=_0x273a06[_0x26e756]['id'],_0x273a06[_0x26e756]['pairId']=_0x273a06[_0x35b829]['id'];}else _0x273a06[_0x26e756]['item']['startIndex']=_0x26e756,_0x273a06[_0x26e756]['item']['endIndex']=_0x26e756,_0x273a06[_0x26e756]['pairId']=null;}_0x273a06[_0x26e756]['markersStart']||(_0x273a06[_0x26e756]['markersStart']=[],_0x273a06[_0x26e756]['markersEnd']=[]);}}['_markInsertions'](_0x4e4746,_0x441c8e){const _0x909f5c=_0x4e4746['filter'](_0x440866=>!_0x440866['isAdded']);for(let _0x3c4973=0x0;_0x3c4973<_0x441c8e['length'];_0x3c4973++)_0x441c8e[_0x3c4973]['isAdded']&&(_0x909f5c[_0x3c4973]['isAdded']=_0x441c8e[_0x3c4973]['isAdded']);}['_makeModelFromViewString'](_0x5df3c5){const _0x5c1084=JSON['parse'](_0x5df3c5),_0x10780a=this['editor']['editing']['view']['document'],_0x36e9bb=new _0xf4c57(_0x10780a,_0x5c1084['map'](_0x4efb85=>this['_getViewObj'](_0x4efb85)));return this['editor']['data']['toModel'](_0x36e9bb);}['_getViewObj'](_0x575b38){const _0xe0a9fb=this['editor']['editing']['view']['document'];if('string'==typeof _0x575b38)return new _0x2717e1(_0xe0a9fb,_0x575b38);{const _0x3f0c83=_0x575b38['children']['map'](_0x7cf2ff=>this['_getViewObj'](_0x7cf2ff));return new(Y[_0x575b38['type']]||_0x5412ef)(_0xe0a9fb,_0x575b38['name'],_0x575b38['attributes'],_0x3f0c83);}}['_getDiff'](_0x29d119,_0x198d46=null){const _0x3a7736=this['repository']['getRevision'](_0x29d119),_0x5bf95e=_0x198d46?this['repository']['getRevision'](_0x198d46):null,_0x78f920=this['_getRevisionsRange'](_0x3a7736,_0x5bf95e),_0x3c2bc8=_0x78f920[_0x78f920['length']-0x1],_0x229b94=new Map(),_0x59c54e={'model':{},'attributes':{},'changes':[]},_0x3c34fc=new Set(),_0x51207d=new Map();for(let _0xfd371e=_0x78f920['length']-0x1;_0xfd371e>=0x0;_0xfd371e--){const _0x9e9877=_0x78f920[_0xfd371e];for(const _0x21a8b5 of Object['keys'](_0x9e9877['diffData']))if(_0x9e9877['diffData'][_0x21a8b5]['attachChange']){const _0xb03834=_0x9e9877['diffData'][_0x21a8b5]['attachChange'];_0xb03834['isAttached']?(_0x3c34fc['add'](_0x21a8b5),_0x51207d['has'](_0x21a8b5)&&_0x51207d['get'](_0x21a8b5)['userId']==_0xb03834['userId']?_0x51207d['delete'](_0x21a8b5):_0x51207d['set'](_0x21a8b5,_0xb03834)):_0x51207d['has'](_0x21a8b5)?(_0x3c34fc['delete'](_0x21a8b5),_0x51207d['delete'](_0x21a8b5)):(_0x3c34fc['add'](_0x21a8b5),_0x51207d['set'](_0x21a8b5,_0xb03834));}else _0x3c34fc['add'](_0x21a8b5);}for(const _0x325fa1 of _0x3c34fc){const _0x4913a1=_0x51207d['has'](_0x325fa1)&&!_0x51207d['get'](_0x325fa1)['isAttached'];let _0x599ee2=_0x4913a1?_0x78f920['length']-0x1:0x0;const _0x5483da=_0x4913a1?-0x1:0x1;for(;_0x78f920[_0x599ee2];){const _0x49b4d2=_0x78f920[_0x599ee2];if(_0x49b4d2['diffData'][_0x325fa1]){const _0x21c220=_0x4913a1?_0x49b4d2['diffData'][_0x325fa1]['attributesBefore']:_0x49b4d2['diffData'][_0x325fa1]['attributesAfter'];_0x59c54e['attributes'][_0x325fa1]=_0x21c220?_0x256c60(_0x21c220):{};break;}_0x599ee2+=_0x5483da;}}for(const _0x1d5388 of _0x78f920){_0x1d5388['model']={};for(const _0x8f28e5 of _0x1d5388['authors'])_0x229b94['set'](_0x8f28e5['id'],_0x8f28e5);for(const _0x1b450a of _0x3c34fc){const _0x2d8702=_0x1d5388['diffData'][_0x1b450a]?_0x1d5388['diffData'][_0x1b450a]['insertions']:'[]',_0x2ddf0f=_0x1d5388['diffData'][_0x1b450a]?_0x1d5388['diffData'][_0x1b450a]['deletions']:'[]';_0x1d5388['model'][_0x1b450a]={'insertions':this['_makeModelFromViewString'](_0x2d8702),'deletions':this['_makeModelFromViewString'](_0x2ddf0f)};}}for(const _0x4d041f of _0x3c34fc){let _0x581d2f=null,_0x38f650=0x0;const _0x26bf3f=new Map(Array['from'](_0x3a7736['model'][_0x4d041f]['insertions']['markers'])['filter'](([_0xc9cd53])=>!_0xc9cd53['startsWith']('revision:')));let _0x229d3a=0x0;for(const _0x45f1e4 of _0x78f920){const _0x595c13=this['_makeTape'](_0x45f1e4['model'][_0x4d041f]['insertions']);_0x45f1e4==_0x3a7736?(_0x581d2f=_0x595c13,_0x38f650=_0x581d2f['length'],_0x581d2f['forEach'](_0x3238d5=>{_0x3238d5['id']=_0x229d3a++;}),this['_processTape'](_0x581d2f)):this['_markInsertions'](_0x581d2f,_0x595c13);const _0x353441=_0x581d2f['filter'](_0x549fde=>!_0x549fde['isAdded'])['map'](_0x37b16e=>_0x37b16e['id']);let _0x2195bc=0x0;const _0x53c39b=this['_makeTape'](_0x45f1e4['model'][_0x4d041f]['deletions']);_0x53c39b['forEach'](_0x2c6c65=>{_0x2c6c65['isRemoved']?_0x2c6c65['id']=_0x38f650++:_0x2c6c65['id']=_0x353441[_0x2195bc++];}),this['_processTape'](_0x53c39b),this['_setDistance'](_0x581d2f,'isAdded'),this['_setDistance'](_0x53c39b,'isRemoved'),_0x45f1e4==_0x3a7736&&this['_markMarkers'](_0x581d2f,_0x26bf3f),_0x581d2f=this['_joinTapes'](_0x581d2f,_0x53c39b),this['_refreshStartEndIndex'](_0x581d2f),this['_setDistance'](_0x581d2f,'isRemoved');}_0x581d2f=_0x581d2f['filter'](_0x3d839f=>!(_0x3d839f['isAdded']&&_0x3d839f['isRemoved']));const _0x3f1a65=new Map(_0x3c2bc8['model'][_0x4d041f]['deletions']['markers']),_0x4cd1bf=new Set(_0x26bf3f['keys']());for(const _0x49f2d9 of _0x3f1a65['keys']())_0x4cd1bf['delete'](_0x49f2d9);this['_markSuggestions'](_0x581d2f,_0x4cd1bf),this['_fixObsoleteTags'](_0x581d2f),_0x581d2f=this['_removeMissingPairs'](_0x581d2f),_0x581d2f=this['_markMismatchedRemovedTags'](_0x581d2f),_0x581d2f=this['_removeUnsupportedChanges'](_0x581d2f);const {root:_0xf8bf31,changes:_0x32c472}=this['_makeModelFromTape'](_0x581d2f,_0x229b94,_0x4d041f);_0x59c54e['model'][_0x4d041f]=_0xf8bf31;const _0x2318b0=_0x51207d['get'](_0x4d041f);if(_0x2318b0){const _0x560e02=_0x229b94['get'](_0x2318b0['userId']),_0x5eb671=new r({'author':_0x560e02,'type':_0x2318b0['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x4d041f});_0x32c472['unshift'](_0x5eb671),_0x59c54e['attributes'][_0x4d041f]['revisionHistoryAttachChange']=_0x5eb671['id'];}_0x59c54e['changes']=_0x59c54e['changes']['concat'](_0x32c472);}return _0x59c54e;}['_markMarkers'](_0x5479a0,_0x563e18){for(let _0x431a61=0x0;_0x431a61<_0x5479a0['length'];_0x431a61++)for(const [_0x4d3a8c,_0x2db55c]of _0x563e18)_0x2db55c['start']['isEqual'](_0x5479a0[_0x431a61]['previousPosition'])&&_0x5479a0[_0x431a61]['markersStart']['push'](_0x4d3a8c),_0x2db55c['end']['isEqual'](_0x5479a0[_0x431a61]['nextPosition'])&&_0x5479a0[_0x431a61]['markersEnd']['push'](_0x4d3a8c);}['_joinTapes'](_0x4b9d2d,_0x583e23){let _0x3881a3=[],_0x556064=0x0,_0x42e9c5=0x0;for(;_0x556064<_0x4b9d2d['length']||_0x42e9c5<_0x583e23['length'];){const _0x3c1661=_0x4b9d2d[_0x556064]||{},_0x52d792=_0x583e23[_0x42e9c5]||{};if(_0x3c1661['id']==_0x52d792['id'])_0x556064++,_0x42e9c5++,_0x3881a3['push'](_0x3c1661);else{if(_0x52d792['isRemoved']&&_0x3c1661['isAdded']){const {commonTape:_0x4147a6,iEnd:_0x4aa369,jEnd:_0x1c7ead}=this['_threeWayMerge'](_0x4b9d2d,_0x556064,_0x583e23,_0x42e9c5);_0x3881a3=_0x3881a3['concat'](_0x4147a6),_0x556064=_0x4aa369,_0x42e9c5=_0x1c7ead;}else _0x52d792['isRemoved']?(_0x42e9c5++,_0x3881a3['push'](_0x52d792)):(_0x556064++,_0x3881a3['push'](_0x3c1661));}}return _0x3881a3;}['_markSuggestions'](_0x58ba49,_0x3aa4bc){const _0x41c7cf=[];for(let _0xae85f=0x0;_0xae85f<_0x58ba49['length'];_0xae85f++){for(let _0x117aa5=0x0;_0x117aa5<_0x58ba49[_0xae85f]['markersStart']['length'];_0x117aa5++){const _0x284a4b=_0x58ba49[_0xae85f]['markersStart'][_0x117aa5];if(!_0x3aa4bc['has'](_0x284a4b))continue;const {group:_0x374a05,type:_0x1251f8,authorId:_0x1d704d}=_0x252535(_0x284a4b);'revision-suggestion'!=_0x374a05||'insertion'!=_0x1251f8&&'deletion'!=_0x1251f8||(_0x41c7cf['unshift']({'type':_0x1251f8,'name':_0x284a4b,'userId':_0x1d704d}),_0x58ba49[_0xae85f]['markersStart']['splice'](_0x117aa5,0x1),_0x117aa5--);}_0xa64bbc(_0x58ba49[_0xae85f]);for(let _0x213e31=0x0;_0x213e31<_0x58ba49[_0xae85f]['markersEnd']['length'];_0x213e31++){const _0x5a1fe0=_0x58ba49[_0xae85f]['markersEnd'][_0x213e31];if(!_0x3aa4bc['has'](_0x5a1fe0))continue;const {group:_0x38969f,type:_0x5a264a}=_0x252535(_0x5a1fe0);if('revision-suggestion'!=_0x38969f||'insertion'!=_0x5a264a&&'deletion'!=_0x5a264a)continue;_0x58ba49[_0xae85f]['markersEnd']['splice'](_0x213e31,0x1),_0x213e31--;const _0x4fd525=_0x41c7cf['findIndex'](_0x588c25=>_0x588c25['name']==_0x5a1fe0);_0x4fd525>-0x1&&_0x41c7cf['splice'](_0x4fd525,0x1);}}function _0x252535(_0x1e6b99){const _0x234c9d=_0x1e6b99['split'](':');return{'group':_0x234c9d[0x0],'type':_0x234c9d[0x1],'subType':_0x234c9d['length']>=0x5?_0x234c9d[0x2]:null,'id':_0x234c9d['length']<0x5?_0x234c9d[0x2]:_0x234c9d[0x3],'authorId':_0x234c9d['length']<0x5?_0x234c9d[0x3]:_0x234c9d[0x4],'markerCount':0x6==_0x234c9d['length']?_0x234c9d[0x5]:null};}function _0xa64bbc(_0x315f1f){for(let _0x5b0bba=0x0;_0x5b0bba<_0x41c7cf['length'];_0x5b0bba++){if(_0x315f1f['isAdded']&&'insertion'==_0x41c7cf[_0x5b0bba]['type'])return _0x315f1f['isAddSuggestion']=_0x41c7cf[_0x5b0bba],void delete _0x315f1f['isAdded'];if(!_0x315f1f['isAdded']&&!_0x315f1f['isRemoved']&&'deletion'==_0x41c7cf[_0x5b0bba]['type'])return void(_0x315f1f['isRemoveSuggestion']=_0x41c7cf[_0x5b0bba]);}}}['_setDistance'](_0x1db73a,_0x2045bf){let _0x2d208f=0x0,_0x1c42e9=!0x1;const _0x4b52f2=new Map();for(const _0xff5950 of _0x1db73a)_0xff5950[_0x2045bf]?_0x1c42e9&&(_0x2d208f++,_0x1c42e9=!0x1):(_0x2d208f++,_0x1c42e9=!0x0),_0x4b52f2['set'](_0xff5950['id'],_0x2d208f);for(let _0x1eb9b4=0x0;_0x1eb9b4<_0x1db73a['length'];_0x1eb9b4++){if('isRemoved'==_0x2045bf&&_0x1db73a[_0x1eb9b4]['isAdded']||'isAdded'==_0x2045bf&&_0x1db73a[_0x1eb9b4]['isRemoved'])continue;if('text'==_0x1db73a[_0x1eb9b4]['type']){_0x1db73a[_0x1eb9b4]['distance']=0x0;continue;}const _0x4b7181=_0x4b52f2['get'](_0x1db73a[_0x1eb9b4]['pairId']),_0x1931b7=_0x4b52f2['get'](_0x1db73a[_0x1eb9b4]['id']);_0x1db73a[_0x1eb9b4]['distance']=_0x4b7181-_0x1931b7;}}['_getRevisionsRange'](_0x513656,_0x27f9f8,_0x170f42=!0x1){const _0xdde6bd=[];let _0xf3ca60=this['repository']['getIndex'](_0x513656),_0x6034c2=this['repository']['getIndex'](_0x27f9f8);for(-0x1==_0x6034c2&&(_0x6034c2=this['repository']['_revisions']['length'],_0x170f42=!0x1);_0xf3ca60<_0x6034c2;)_0xdde6bd['push'](this['repository']['getRevision'](_0xf3ca60)),_0xf3ca60++;return _0x170f42&&_0xdde6bd['push'](this['repository']['getRevision'](_0xf3ca60)),_0xdde6bd;}['_threeWayMerge'](_0x25fe2e,_0x1180a6,_0x3215b6,_0x5808ba){const _0x433d94=this['editor']['model']['schema'];let _0x4b7bc4=_0x1180a6;for(;_0x25fe2e[_0x4b7bc4]&&_0x25fe2e[_0x4b7bc4]['isAdded'];)_0x4b7bc4++;let _0x1adaa5=_0x5808ba;for(;_0x3215b6[_0x1adaa5]&&_0x3215b6[_0x1adaa5]['isRemoved'];)_0x1adaa5++;_0x9c11a7(_0x25fe2e,_0x1180a6,_0x4b7bc4),_0x9c11a7(_0x3215b6,_0x5808ba,_0x1adaa5);const _0x31d9b0=_0x3215b6['slice'](_0x5808ba,_0x1adaa5)['concat'](_0x25fe2e['slice'](_0x1180a6,_0x4b7bc4));return _0x31d9b0['sort']((_0xf5b4fa,_0x4779ae)=>_0xf5b4fa['side']!=_0x4779ae['side']?_0xf5b4fa['side']-_0x4779ae['side']:_0xf5b4fa['level']!=_0x4779ae['level']?_0xf5b4fa['level']-_0x4779ae['level']:_0xf5b4fa['distance']!=_0x4779ae['distance']?_0x4779ae['distance']-_0xf5b4fa['distance']:!!_0xf5b4fa['isAdded']!=!!_0x4779ae['isAdded']?-0x1==_0xf5b4fa['side']||0x0==_0xf5b4fa['side']?_0xf5b4fa['isAdded']?-0x1:0x1:_0xf5b4fa['isAdded']?0x1:-0x1:_0xf5b4fa['index']-_0x4779ae['index']),{'commonTape':_0x31d9b0,'iEnd':_0x4b7bc4,'jEnd':_0x1adaa5};function _0x9c11a7(_0x531033,_0x305790,_0x209bfc){let _0x59971f=-0x1,_0x3cdbe5=Number['POSITIVE_INFINITY'],_0x5a76bb=!0x0;for(let _0xcab47e=_0x305790;_0xcab47e<_0x209bfc;_0xcab47e++)if(_0x433d94['isInline'](_0x531033[_0xcab47e]['item'])||(_0x5a76bb=!0x1),_0x531033[_0xcab47e]['item']['startIndex']<_0x305790&&(_0x59971f=_0xcab47e),_0x531033[_0xcab47e]['item']['endIndex']>=_0x209bfc){_0x3cdbe5=_0xcab47e;break;}_0x5a76bb&&(_0x59971f=_0x209bfc-0x1);for(let _0x35110c=_0x305790;_0x35110c<_0x209bfc;_0x35110c++)_0x531033[_0x35110c]['side']=_0x35110c<=_0x59971f?-0x1:_0x35110c<_0x3cdbe5?0x0:0x1,_0x531033[_0x35110c]['index']=_0x35110c;let _0x4178c1=0x0;for(let _0x2ec6e8=_0x305790;_0x2ec6e8<=_0x59971f;_0x2ec6e8++)0x0==_0x531033[_0x2ec6e8]['distance']?_0x531033[_0x2ec6e8]['level']=_0x4178c1:(_0x4178c1++,_0x531033[_0x2ec6e8]['level']=_0x4178c1,_0x4178c1++);for(let _0x2b78e8=_0x305790;_0x2b78e8<_0x209bfc;_0x2b78e8++)0x0==_0x531033[_0x2b78e8]['side']&&(_0x531033[_0x2b78e8]['level']=_0x4178c1);_0x4178c1=0x0;for(let _0x1aac2c=_0x209bfc-0x1;_0x1aac2c>=_0x3cdbe5;_0x1aac2c--)0x0==_0x531033[_0x1aac2c]['distance']?_0x531033[_0x1aac2c]['level']=_0x4178c1:(_0x4178c1--,_0x531033[_0x1aac2c]['level']=_0x4178c1,_0x4178c1--);}}['_fixObsoleteTags'](_0x3605ab){const _0x1420ca=new Map(),_0xdb50fc=this['editor']['model']['schema'];for(let _0x479439=0x1;_0x479439<_0x3605ab['length'];_0x479439++){let _0x9485f0,_0x31bfaf,_0x395029;const _0x36f2cf=_0x3605ab[_0x479439],_0x4cc529=_0x3605ab[_0x479439-0x1];if('text'==_0x36f2cf['type'])continue;if(_0x36f2cf['type']!=_0x4cc529['type'])continue;if(!_0xdb50fc['isBlock'](_0x4cc529['item'])||_0xdb50fc['isLimit'](_0x4cc529['item']))continue;if(!_0xdb50fc['isBlock'](_0x36f2cf['item'])||_0xdb50fc['isLimit'](_0x36f2cf['item']))continue;if((_0x3605ab[_0x479439]['isAdded']||_0x3605ab[_0x479439]['isAddSuggestion'])&&_0x3605ab[_0x479439-0x1]['isRemoved'])_0x9485f0=_0x3605ab[_0x479439],_0x31bfaf=_0x3605ab[_0x479439-0x1],_0x395029=_0x479439-0x1;else{if(!_0x3605ab[_0x479439]['isRemoved']||!_0x3605ab[_0x479439-0x1]['isAdded']&&!_0x3605ab[_0x479439-0x1]['isAddSuggestion'])continue;_0x9485f0=_0x3605ab[_0x479439-0x1],_0x31bfaf=_0x3605ab[_0x479439],_0x395029=_0x479439;}const _0x54528e=_0x9485f0['level']==_0x31bfaf['level'],_0x56ed6e=Math['abs'](_0x9485f0['level'])<Math['abs'](_0x31bfaf['level'])&&0x0==_0x31bfaf['distance'];(_0x54528e||_0x56ed6e)&&(_0x1420ca['set'](_0x31bfaf['id'],_0x9485f0['id']),_0x3605ab['splice'](_0x395029,0x1),_0x479439--,_0x9485f0['isAdded']=!0x1);}for(let _0x15ab26=0x0;_0x15ab26<_0x3605ab['length'];_0x15ab26++)_0x1420ca['has'](_0x3605ab[_0x15ab26]['pairId'])&&(_0x3605ab[_0x15ab26]['pairId']=_0x1420ca['get'](_0x3605ab[_0x15ab26]['pairId']));}['_removeMissingPairs'](_0x1c01f5){const _0x5ab45d=new Set(_0x1c01f5['map'](_0x18030e=>_0x18030e['id']));for(let _0xf1d2d5=0x0;_0xf1d2d5<_0x1c01f5['length'];_0xf1d2d5++)_0x5ab45d['has'](_0x1c01f5[_0xf1d2d5]['pairId'])||0x0==_0x1c01f5[_0xf1d2d5]['distance']||(_0x1c01f5[_0xf1d2d5]['isIncorrect']=!0x0);return _0x1c01f5['filter'](_0x56f42f=>!_0x56f42f['isIncorrect']);}['_markMismatchedRemovedTags'](_0x29023a){const _0x513209=new Set();for(let _0x44f431=0x0;_0x44f431<_0x29023a['length'];_0x44f431++){if(_0x513209['has'](_0x29023a[_0x44f431]['id'])&&_0x29023a[_0x44f431]['isRemoved']&&(_0x29023a[_0x44f431]['isIncorrect']=!0x0),_0x29023a[_0x44f431]['isIncorrect'])continue;if(0x0==_0x29023a[_0x44f431]['distance'])continue;if('elementStart'!=_0x29023a[_0x44f431]['type'])continue;if(null==_0x29023a[_0x44f431]['pairId'])continue;let _0x380ebd=_0x44f431+0x1,_0x551fc4=0x0;for(;_0x29023a[_0x380ebd]['id']!=_0x29023a[_0x44f431]['pairId'];)'elementStart'==_0x29023a[_0x380ebd]['type']?_0x551fc4++:'elementEnd'==_0x29023a[_0x380ebd]['type']&&_0x551fc4--,_0x380ebd++;if(0x0!=_0x551fc4){if(_0x29023a[_0x44f431]['isRemoved'])_0x29023a[_0x44f431]['isIncorrect']=!0x0;else{for(;_0x380ebd!=_0x44f431;)_0x29023a[_0x380ebd]['isRemoved']&&0x0!=_0x29023a[_0x380ebd]['distance']&&(_0x29023a[_0x380ebd]['isIncorrect']=!0x0,_0x513209['add'](_0x29023a[_0x380ebd]['pairId'])),_0x380ebd--;}}}return _0x29023a['filter'](_0x2c77d7=>!_0x2c77d7['isIncorrect']);}['_removeUnsupportedChanges'](_0x100a2f){const _0x248fc2=this['editor']['model']['schema'];for(let _0xf4704c=0x0;_0xf4704c<_0x100a2f['length'];_0xf4704c++){if(!(_0x100a2f[_0xf4704c]['isAdded']||_0x100a2f[_0xf4704c]['isAddSuggestion']||_0x100a2f[_0xf4704c]['isRemoved']||_0x100a2f[_0xf4704c]['isRemoveSuggestion']))continue;if(0x0==_0x100a2f[_0xf4704c]['distance'])continue;const _0x52a9e3=_0x100a2f[_0xf4704c]['item'];_0x248fc2['isBlock'](_0x52a9e3)||_0x248fc2['isLimit'](_0x52a9e3)||(_0x100a2f[_0xf4704c]['isAdded']&&delete _0x100a2f[_0xf4704c]['isAdded'],_0x100a2f[_0xf4704c]['isAddSuggestion']&&delete _0x100a2f[_0xf4704c]['isAddSuggestion'],_0x100a2f[_0xf4704c]['isRemoveSuggestion']&&delete _0x100a2f[_0xf4704c]['isRemoveSuggestion'],_0x100a2f[_0xf4704c]['isRemoved']&&(_0x100a2f[_0xf4704c]['isIncorrect']=!0x0));}return _0x100a2f['filter'](_0x2d416b=>!_0x2d416b['isIncorrect']);}['_makeModelFromTape'](_0x17834f,_0x30cebc,_0x6d198e){const _0x28384b=new gt(),_0x16bdb5=[],_0x116ef4=new Map(),_0x2b27ba=this['editor']['model'],_0x244343=_0x2b27ba['schema'],_0xb48c5f=[_0x28384b],_0xaff1e7={},_0x362c3f={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x4ebf1b=null;const _0x3c306a=[0x0];for(let _0x5b5904=0x0;_0x5b5904<_0x17834f['length'];_0x5b5904++)if('elementStart'===_0x17834f[_0x5b5904]['type']){_0x17834f[_0x5b5904]['previousPosition']=_0x2b27ba['createPositionFromPath'](_0x28384b,_0x3c306a);const _0xe6d9b2=new ut(_0x17834f[_0x5b5904]['item']['name'],_0x17834f[_0x5b5904]['item']['getAttributes']());_0xb48c5f[0x0]['_appendChild'](_0xe6d9b2),_0x3c306a['push'](0x0),_0xb48c5f['unshift'](_0xe6d9b2),_0x17834f[_0x5b5904]['nextPosition']=_0x2b27ba['createPositionFromPath'](_0x28384b,_0x3c306a);}else'elementEnd'===_0x17834f[_0x5b5904]['type']?(_0xb48c5f['shift'](),_0x17834f[_0x5b5904]['previousPosition']=_0x2b27ba['createPositionFromPath'](_0x28384b,_0x3c306a),_0x3c306a['pop'](),_0x3c306a[_0x3c306a['length']-0x1]++,_0x17834f[_0x5b5904]['nextPosition']=_0x2b27ba['createPositionFromPath'](_0x28384b,_0x3c306a)):(_0x17834f[_0x5b5904]['previousPosition']=_0x2b27ba['createPositionFromPath'](_0x28384b,_0x3c306a),_0x4ebf1b?_0x4ebf1b['_data']+=_0x17834f[_0x5b5904]['item']['data']:_0x4ebf1b=new wt(_0x17834f[_0x5b5904]['item']['data'],_0x17834f[_0x5b5904]['item']['getAttributes']()),_0x17834f[_0x5b5904+0x1]&&'text'===_0x17834f[_0x5b5904+0x1]['type']&&_0x5f147a(_0x4ebf1b,_0x17834f[_0x5b5904+0x1]['item'])||(_0xb48c5f[0x0]['_appendChild'](_0x4ebf1b),_0x4ebf1b=null),_0x3c306a[_0x3c306a['length']-0x1]+=_0x17834f[_0x5b5904]['item']['offsetSize'],_0x17834f[_0x5b5904]['nextPosition']=_0x2b27ba['createPositionFromPath'](_0x28384b,_0x3c306a));for(let _0x2f9b6b=0x0;_0x2f9b6b<_0x17834f['length'];_0x2f9b6b++){const _0x537036=_0x17834f[_0x2f9b6b]['previousPosition'],_0x336636=_0x17834f[_0x2f9b6b]['nextPosition'];for(const _0x2ffff5 of _0x17834f[_0x2f9b6b]['markersStart'])_0x116ef4['set'](_0x2ffff5,{'start':_0x537036,'end':null});_0x587d61('isRemoveSuggestion',_0x2f9b6b,_0x537036,_0x336636),_0x587d61('isAddSuggestion',_0x2f9b6b,_0x537036,_0x336636),_0x587d61('isRemoved',_0x2f9b6b,_0x537036,_0x336636),_0x587d61('isAdded',_0x2f9b6b,_0x537036,_0x336636);for(const _0x27bb39 of _0x17834f[_0x2f9b6b]['markersEnd']){_0x116ef4['get'](_0x27bb39)['end']=_0x336636;}}for(const [_0x4f9267,_0x3c7a3d]of _0x116ef4){const _0x4d4c6b=this['editor']['model']['createRange'](_0x3c7a3d['start'],_0x3c7a3d['end']);_0x28384b['markers']['set'](_0x4f9267,_0x4d4c6b);}return _0x16bdb5['sort']((_0x54d348,_0x247ecb)=>{const _0x1b7259=_0x28384b['markers']['get']('revision:'+_0x54d348['id']),_0x45a4c6=_0x28384b['markers']['get']('revision:'+_0x247ecb['id']);return _0x1b7259['start']['isBefore'](_0x45a4c6['start'])?-0x1:_0x1b7259['start']['isAfter'](_0x45a4c6['start'])?0x1:_0x1b7259['end']['isBefore'](_0x45a4c6['end'])?-0x1:_0x1b7259['end']['isAfter'](_0x45a4c6['end'])?0x1:'add'===_0x54d348['type']?-0x1:0x1;}),{'root':_0x28384b,'changes':_0x16bdb5};function _0x587d61(_0x2bef42,_0x9efd4d,_0x2eb668,_0x4d8691){const _0x3c73c8=!!_0x17834f[_0x9efd4d][_0x2bef42],_0xe3d488=_0x3c73c8?_0x17834f[_0x9efd4d][_0x2bef42]['userId']:null,_0x26e222=_0x9efd4d===_0x17834f['length']-0x1,_0x57c96c=_0x362c3f[_0x2bef42][0x0],_0x3e7f8c=_0x244343['isObject'](_0x17834f[_0x9efd4d]['item']);!_0xaff1e7[_0x2bef42]&&_0x3c73c8?_0xaff1e7[_0x2bef42]={'start':_0x2eb668,'tapeItem':_0x17834f[_0x9efd4d],'userId':_0xe3d488,'type':_0x2bef42}:_0xaff1e7[_0x2bef42]&&!_0x3c73c8?(_0xaff1e7[_0x2bef42]['end']=_0x2eb668,_0x50d51b(_0xaff1e7[_0x2bef42]),_0xaff1e7[_0x2bef42]=null):_0xaff1e7[_0x2bef42]&&_0x3c73c8&&_0xaff1e7[_0x2bef42]['userId']!==_0xe3d488&&(_0xaff1e7[_0x2bef42]['end']=_0x2eb668,_0x57c96c&&_0x57c96c['userId']===_0xaff1e7[_0x2bef42]['userId']||_0x50d51b(_0xaff1e7[_0x2bef42]),_0xaff1e7[_0x2bef42]={'start':_0x2eb668,'tapeItem':_0x17834f[_0x9efd4d],'userId':_0xe3d488,'type':_0x2bef42}),_0xaff1e7[_0x2bef42]&&_0x3e7f8c&&('elementStart'!==_0x17834f[_0x9efd4d]['type']||_0x57c96c&&_0x57c96c['userId']===_0xe3d488||_0x362c3f[_0x2bef42]['unshift']({'userId':_0xe3d488,'object':_0x17834f[_0x9efd4d]['item'],'change':_0xaff1e7[_0x2bef42]}),'elementEnd'===_0x17834f[_0x9efd4d]['type']&&_0x57c96c&&_0x57c96c['object']===_0x17834f[_0x9efd4d]['item']&&(_0x362c3f[_0x2bef42]['shift'](),_0xaff1e7[_0x2bef42]=_0x57c96c['change'])),_0xaff1e7[_0x2bef42]&&_0x26e222&&(_0xaff1e7[_0x2bef42]['end']=_0x4d8691,_0x50d51b(_0xaff1e7[_0x2bef42]),_0xaff1e7[_0x2bef42]=null);}function _0x50d51b({start:_0xbe3758,end:_0x10ffeb,tapeItem:_0x18e5f8,userId:_0x1623f5,type:_0x1e1375}){const _0x14c2c5=_0x18e5f8['item'],_0x202f2e=_0x2b27ba['schema']['isBlock'](_0x14c2c5)&&!_0x2b27ba['schema']['isLimit'](_0x14c2c5),_0x30e7d2=_0xbe3758['nodeAfter']==_0x10ffeb['parent']&&_0x10ffeb['isAtStart'];if(_0x202f2e&&_0x30e7d2)return;const _0x3a93fc=_0x2b27ba['createRange'](_0xbe3758,_0x10ffeb),_0x41aae5=_0x30cebc['get'](_0x1623f5),_0x404362=new r({'author':_0x41aae5,'type':'isAdded'==_0x1e1375||'isAddSuggestion'==_0x1e1375?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x1e1375||'isRemoveSuggestion'==_0x1e1375},'createdAt':new Date(),'rootName':_0x6d198e});_0x16bdb5['push'](_0x404362),_0x28384b['markers']['set']('revision:'+_0x404362['id'],_0x3a93fc);}function _0x5f147a(_0x40bea4,_0x4e342d){const _0xfa1779=_0x40bea4['getAttributes'](),_0x2e7c66=_0x4e342d['getAttributes']();for(const _0x2cfb52 of _0xfa1779){if(_0x2cfb52[0x1]!==_0x4e342d['getAttribute'](_0x2cfb52[0x0]))return!0x1;_0x2e7c66['next']();}return _0x2e7c66['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x2d65e8=>{const _0x28fd4f=_0x2d65e8['markerName']['split'](':')[0x1],_0x970a12=this['_getChangeFromId'](_0x28fd4f);if(!_0x970a12)return null;const _0x516b14='add'==_0x970a12['type']?'insertion':'deletion',_0x35a8dc=['ck-suggestion-marker','ck-suggestion-marker-'+_0x516b14];return _0x970a12['data']['isSuggestion']&&_0x35a8dc['push']('ck-suggestion-marker-'+_0x516b14+'-new'),this['activeChange']==_0x970a12&&_0x35a8dc['push']('ck-suggestion-marker--active'),{'classes':_0x35a8dc,'attributes':{'data-change-id':_0x28fd4f}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x244fa7=>{_0x244fa7['on']('element:pre',(_0x46cca9,_0x571569,_0x2b06a8)=>{const _0x3ab04a=_0x571569['viewItem']['getChild'](0x0);if(!_0x3ab04a||!_0x3ab04a['is']('element','code'))return;if(!_0x2b06a8['consumable']['consume'](_0x3ab04a,{'attributes':['vid_start','vid_end']}))return;const _0x340109=_0x571569['modelRange']['start']['nodeAfter'];_0x2b06a8['writer']['setAttribute']('vid_start',_0x3ab04a['getAttribute']('vid_start'),_0x340109),_0x2b06a8['writer']['setAttribute']('vid_end',_0x3ab04a['getAttribute']('vid_end'),_0x340109);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x39ffbb=>{_0x39ffbb['on']('element',(_0x51ff20,_0x4c9ec9,_0x2b8740)=>{if(!_0x2b8740['consumable']['consume'](_0x4c9ec9['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x4c9ec9['modelRange']['isCollapsed'])return;const _0x2f882f=_0x4c9ec9['modelRange']['start']['nodeAfter'];_0x2f882f['hasAttribute']('vid_start')||_0x2f882f['hasAttribute']('vid')||(_0x2b8740['writer']['setAttribute']('vid_start',_0x4c9ec9['viewItem']['getAttribute']('vid_start'),_0x2f882f),_0x2b8740['writer']['setAttribute']('vid_end',_0x4c9ec9['viewItem']['getAttribute']('vid_end'),_0x2f882f));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x54aedb=>_0x54aedb['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x2704da,[,_0x5027f1])=>{['vid_start','vid_end','vid']['includes'](_0x5027f1)&&(_0x2704da['return']=!0x0,_0x2704da['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x2ccc65=>{_0x2ccc65['on']('attribute:vid',(_0x2471a8,_0x260d44,_0x69c24e)=>{if('\x20'!=_0x260d44['item']['data']||_0x260d44['item']['parent']['maxOffset']>0x1)return;if(!_0x69c24e['consumable']['consume'](_0x260d44['item'],_0x2471a8['name']))return;const _0x14bf57=_0x69c24e['writer'],_0x1ecb15=_0x69c24e['mapper']['toViewRange'](_0x260d44['range']);_0x14bf57['wrap'](_0x1ecb15,_0x14bf57['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0xcfc334){const _0xda4b2e=_0xcfc334['plugins']['get']('RevisionViewer');return(_0x3cb9fd,_0x1d1e48,_0x3c8be6)=>{const _0x28b9d8=_0x1d1e48['markerName']['split'](':')[0x1],_0x537e17=_0xda4b2e['_getChangeFromId'](_0x28b9d8);if(!_0x537e17)return null;const _0x6d5409='add'==_0x537e17['type']?'split':'merge';if(!_0x3c8be6['consumable']['test'](_0x1d1e48['markerRange'],_0x3cb9fd['name']))return;const _0x1284ea=_0x1d1e48['markerRange']['getWalker'](),_0x2a2a74=_0x1d1e48['markerRange']['start'],_0x50fa3a=_0xcfc334['model']['schema'];let _0x26a75b=null,_0x3793ea=null,_0x1871e3=!0x1,_0x219135=!0x1;for(const _0x16c328 of _0x1284ea){const _0x20a358=_0x16c328['item'];_0x1871e3=_0x1871e3||_0x50fa3a['isContent'](_0x20a358);const _0x154541=_0x3c8be6['mapper']['toViewElement'](_0x20a358);if(_0x154541&&_0x154541['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x16c328['type']&&(_0x50fa3a['isBlock'](_0x20a358)&&!_0x50fa3a['isLimit'](_0x20a358)&&(_0x20a358['nextSibling']||_0x2a2a74['isAtEnd']?_0x26a75b&&_0x26a75b['parent']==_0x20a358||(_0x26a75b=_0x20a358,_0x8b359f(_0x16c328['previousPosition']),_0x219135=!0x0):_0x3793ea=_0x3793ea||_0x16c328['previousPosition']));}function _0x8b359f(_0x4f3d8c){const _0x74fced=_0x3c8be6['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x6d5409}),_0x44b492=_0x3c8be6['mapper']['toViewPosition'](_0x4f3d8c);_0x537e17['data']['isSuggestion']&&_0x3c8be6['writer']['addClass']('ck-suggestion-marker-'+_0x6d5409+'-new',_0x74fced),_0xda4b2e['activeChange']==_0x537e17&&_0x3c8be6['writer']['addClass']('ck-suggestion-marker--active',_0x74fced),_0x3c8be6['writer']['insert'](_0x44b492,_0x74fced),_0x3c8be6['mapper']['bindElementToMarker'](_0x74fced,_0x1d1e48['markerName']);}_0x1871e3||_0x219135||!_0x3793ea||_0x8b359f(_0x3793ea);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x3d5224,_0x27ebae,_0xfe604b)=>{const _0x3c1415=_0xfe604b['mapper']['markerNameToElements'](_0x27ebae['markerName']);if(_0x3c1415){for(const _0x50eaec of _0x3c1415)(_0x50eaec['hasClass']('ck-suggestion-marker-split')||_0x50eaec['hasClass']('ck-suggestion-marker-merge'))&&(_0xfe604b['mapper']['unbindElementFromMarkerName'](_0x50eaec,_0x27ebae['markerName']),_0xfe604b['writer']['remove'](_0x50eaec));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x16a5f7,_0x4a31e2,_0x48743c)=>{const _0x28a771=_0x4a31e2['markerName']['split'](':')[0x1],_0xc10001=this['_getChangeFromId'](_0x28a771);if(!_0xc10001)return null;const _0x44cddf='add'==_0xc10001['type']?'split':'merge';if(_0x48743c['consumable']['test'](_0x4a31e2['markerRange'],_0x16a5f7['name']))for(const _0x372d18 of _0x4a31e2['markerRange']['getItems']()){if(!_0x372d18['is']('element','softBreak'))continue;const _0x3ddbc5=_0x48743c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x44cddf}),_0x17ef7e=_0x48743c['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x372d18));_0xc10001['data']['isSuggestion']&&_0x48743c['writer']['addClass']('ck-suggestion-marker-'+_0x44cddf+'-new',_0x3ddbc5),this['activeChange']==_0xc10001&&_0x48743c['writer']['addClass']('ck-suggestion-marker--active',_0x3ddbc5),_0x48743c['writer']['insert'](_0x17ef7e,_0x3ddbc5),_0x48743c['mapper']['bindElementToMarker'](_0x3ddbc5,_0x4a31e2['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x307a96=>{for(const _0x14e354 of this['editor']['model']['document']['getRootNames']()){const _0x128584=this['editor']['model']['document']['getRoot'](_0x14e354),_0xd5e84d=this['editor']['editing']['view']['document']['getRoot'](_0x14e354);if(_0xd5e84d){const _0x242382=_0x128584['getAttribute']('revisionHistoryAttachChange');if(_0x307a96['removeAttribute']('data-change-id',_0xd5e84d),_0x307a96['removeClass']('ck-revision-history-root-add',_0xd5e84d),_0x307a96['removeClass']('ck-revision-history-root-remove',_0xd5e84d),_0x307a96['removeClass']('ck-revision-history-root--active',_0xd5e84d),_0x242382){const _0x10d9c4=this['_getChangeFromId'](_0x242382);if(!_0x10d9c4)return null;_0x307a96['setAttribute']('data-change-id',_0x242382,_0xd5e84d),_0x307a96['addClass']('ck-revision-history-root-'+_0x10d9c4['type'],_0xd5e84d),this['activeChange']==_0x10d9c4&&_0x307a96['addClass']('ck-revision-history-root--active',_0xd5e84d);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0xf60edf=>'revision-comment:'+_0xf60edf,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x120439=>'revision-suggestion:'+_0x120439,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x5504dc=>({'name':'suggestion:'+_0x5504dc,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x547cd7=>{const _0x21d5dd=_0x547cd7['markerName']['split'](':')[0x1];return'insertion'!=_0x21d5dd&&'deletion'!=_0x21d5dd?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x21d5dd]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x376e71,_0x5f4eab,_0xda52c6)=>{const _0x57c646=_0xda52c6['mapper']['markerNameToElements'](_0x5f4eab['markerName']);if(_0x57c646){for(const _0x42821e of _0x57c646)_0x42821e['is']('uiElement')&&(_0xda52c6['mapper']['unbindElementFromMarkerName'](_0x42821e,_0x5f4eab['markerName']),_0xda52c6['writer']['remove'](_0x42821e));}},{'priority':'high'});}['_getChangeFromId'](_0xd652dc){return this['_changeIdToChange']['get'](_0xd652dc);}['_getViewForChange'](_0x444457){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x444457),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x2f7d5b,_0x21bc0a,_0x5482b7,_0x4d6883)=>{_0x4d6883&&this['_balloon']['remove'](_0x4d6883),_0x5482b7&&(this['_balloon']['add']({'view':_0x5482b7,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x3db254=this['editor']['editing'],_0x5ac52c=this['_getChangeFromId'](_0x5482b7['changeId']);let _0x2b1fd5;if(_0x5ac52c['data']['isOnRoot']){const _0x4adb63=_0x3db254['view']['getDomRoot'](_0x5ac52c['rootName']);_0x2b1fd5=Array['from'](_0x4adb63['getClientRects']());}else{const _0x45b8b9=this['editor']['model']['markers']['get']('revision:'+_0x5482b7['changeId']);_0x2b1fd5=Array['from'](_0x3db254['mapper']['markerNameToElements'](_0x45b8b9['name']))['map'](_0x5e0e2a=>_0x3db254['view']['domConverter']['mapViewToDom'](_0x5e0e2a))['map'](_0x4483d2=>Array['from'](_0x4483d2['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x2b1fd5[0x0];return _0x2b1fd5['find'](_0x26700a=>_0x26700a['top']-0x3<=this['_activeViewTarget']['y']&&_0x26700a['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x26700a['left']-0x3<=this['_activeViewTarget']['x']&&_0x26700a['right']+0x3>=this['_activeViewTarget']['x'])||_0x2b1fd5[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x56a349,_0x4517b,_0xa235c9,_0x36bc41)=>{this['activeView']=_0xa235c9?this['_getViewForChange'](_0xa235c9):null,this['editor']['model']['change'](()=>{const _0x4ff609=this['editor']['editing'];_0x36bc41&&(_0x36bc41['data']['isOnRoot']?_0x4ff609['view']['change'](_0x321727=>{_0x321727['removeClass']('ck-revision-history-root--active',_0x4ff609['view']['document']['getRoot'](_0x36bc41['rootName']));}):_0x4ff609['reconvertMarker']('revision:'+_0x36bc41['id'])),_0xa235c9&&(_0xa235c9['data']['isOnRoot']?_0x4ff609['view']['change'](_0x40e5f1=>{_0x40e5f1['addClass']('ck-revision-history-root--active',_0x4ff609['view']['document']['getRoot'](_0xa235c9['rootName']));}):_0x4ff609['reconvertMarker']('revision:'+_0xa235c9['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x50496e,_0x2fff11)=>{if(this['activeChange'])return;const _0x29aafe=this['_findChangeIdFromDomTarget'](_0x2fff11['target']),_0x2efbec=this['_changeIdToChange']['get'](_0x29aafe);_0x2efbec?(this['_activeViewTarget']={'x':_0x2fff11['domEvent']['x'],'y':_0x2fff11['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x2efbec)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x30208,_0x19ce1e)=>{const _0x3d714c=this['_findChangeIdFromDomTarget'](_0x19ce1e['target']),_0x54042a=this['_changeIdToChange']['get'](_0x3d714c);_0x54042a?(this['_activeViewTarget']={'x':_0x19ce1e['domEvent']['x'],'y':_0x19ce1e['domEvent']['y']},_0x54042a===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x54042a):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x483376){do{const _0x44d729=_0x483376['getAttribute']('data-change-id');if(_0x44d729)return _0x44d729;_0x483376=_0x483376['parent'];}while(_0x483376);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x458cdd=>{for(const _0x1606d6 of this['editor']['model']['markers'])_0x458cdd['removeMarker'](_0x1606d6);});}}function Z(_0x364526,_0x49f72e){return(_0x9cc1c,_0x5425fc,_0x4f58a5)=>{if(!_0x4f58a5['consumable']['test'](_0x5425fc['markerRange'],_0x9cc1c['name']))return;const _0xdeb78c=_0x5425fc['markerRange']['getWalker'](),_0x432d88=_0x5425fc['markerRange']['start'],_0x43bc13=_0x364526['model']['schema'];let _0x249ddc=null,_0x5a5c4a=null,_0x10a219=!0x1,_0x346c04=!0x1;for(const _0x40d56c of _0xdeb78c){const _0x345dc2=_0x40d56c['item'];_0x10a219=_0x10a219||_0x43bc13['isContent'](_0x345dc2);const _0x428d8d=_0x4f58a5['mapper']['toViewElement'](_0x345dc2);if(_0x428d8d&&_0x428d8d['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x40d56c['type']&&(_0x43bc13['isBlock'](_0x345dc2)&&!_0x43bc13['isLimit'](_0x345dc2)&&(_0x345dc2['nextSibling']||_0x432d88['isAtEnd']?_0x249ddc&&_0x249ddc['parent']==_0x345dc2||(_0x249ddc=_0x345dc2,_0x14fb82(_0x40d56c['previousPosition']),_0x346c04=!0x0):_0x5a5c4a=_0x5a5c4a||_0x40d56c['previousPosition']));}function _0x14fb82(_0xea62ed){const _0x6e9e61=_0x4f58a5['mapper']['toViewPosition'](_0xea62ed),_0x3c39d6=_0x4f58a5['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x49f72e});_0x4f58a5['writer']['insert'](_0x6e9e61,_0x3c39d6),_0x4f58a5['mapper']['bindElementToMarker'](_0x3c39d6,_0x5425fc['markerName']);}_0x10a219||_0x346c04||!_0x5a5c4a||_0x14fb82(_0x5a5c4a);};}class _t extends _0x2d3181{constructor(_0x3a16b2){super(_0x3a16b2);const _0x4e61cb=_0x3a16b2['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x4e61cb,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x4e61cb,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x5b95d6=this['editor'],_0x532590=_0x5b95d6['plugins']['get'](d),_0x2383af=_0x532590['isReady']?_0x532590['diff']['newRevisionId']:null;_0x5b95d6['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x2383af);}['refresh'](){const {isReady:_0x433526,isEnabled:_0x5e4ac0,repository:_0x380c98,diff:_0x4d4e68}=this['editor']['plugins']['get'](d),_0x4db269=_0x4d4e68&&_0x380c98['getLaterVisibleRevision'](_0x4d4e68['newRevisionId']);this['isEnabled']=_0x433526&&_0x5e4ac0&&Boolean(_0x4db269);}}class yt extends _0x2d3181{['_step'];constructor(_0x286309,{direction:_0x3e8ba8}){super(_0x286309);const _0x1858a4=_0x286309['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x3e8ba8?0x1:-0x1,this['listenTo'](_0x1858a4,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x1858a4,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x1858a4,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x9c4918=this['editor'],_0x2cbccb=_0x9c4918['plugins']['get'](d),{isNavigationMode:_0x31ce0f,currentChangeNumber:_0x233537}=_0x2cbccb;let _0x2e6f08;if(_0x2cbccb['activeChange']=_0x31ce0f?_0x2cbccb['diff']['changes']['get'](_0x233537+this['_step']):_0x2cbccb['diff']['changes']['first'],_0x2cbccb['activeChange']['data']['isOnRoot'])_0x2e6f08=_0x9c4918['editing']['view']['getDomRoot'](_0x2cbccb['activeChange']['rootName']);else{const _0x45cddb=_0x9c4918['model']['markers']['get']('revision:'+_0x2cbccb['activeChange']['id']);_0x2e6f08=_0xbcd3f8(_0x9c4918['editing'],_0x45cddb);}_0x4d343f({'target':_0x2e6f08,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x43d27a,currentChangeNumber:_0x2ecb01,numberOfChanges:_0x23bd23,isReady:_0x37dce7,isEnabled:_0x5f516e}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x5f516e&&_0x37dce7&&_0x23bd23)&&(!_0x43d27a||(0x1===this['_step']?_0x2ecb01<_0x23bd23-0x1:_0x2ecb01>0x0));}}class _i extends _0x4b1a88{constructor(_0x58aca9){super(_0x58aca9);const _0x521f79=this['bindTemplate'],_0x3b0f8a=new _0x380667(_0x58aca9),_0x2359a8=new _0x380667(_0x58aca9);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',(_0x5a7f93,_0x496f3f)=>_0x5a7f93&&_0x496f3f>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x483f2e,_0x1b7e96,_0x555784,_0x1994bd)=>{if(!_0x483f2e)return m(_0x58aca9,'Loading...');if(!_0x555784)return m(_0x58aca9,'No\x20changes');const _0x2a2482=m(_0x58aca9,'NUMBER_OF_CHANGES',_0x555784);return _0x1994bd?m(_0x58aca9,'X_OF_Y_CHANGES',[_0x1b7e96+0x1,_0x555784]):_0x2a2482;}),_0x3b0f8a['set']({'label':m(_0x58aca9,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x5067ad}),_0x2359a8['set']({'label':m(_0x58aca9,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x519fa1}),_0x3b0f8a['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x2359a8['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x3b0f8a['on']('execute',()=>this['fire']('execute','backward')),_0x2359a8['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',_0x521f79['if']('_isStatusLabelVisible','ck-hidden',_0x24d259=>!_0x24d259)]},'children':[{'text':_0x521f79['to']('isNavigationMode',_0x3b3383=>_0x3b3383?m(_0x58aca9,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x58aca9,'Total')+':\x20')}]},{'text':_0x521f79['to']('_statusText')}]},new _0x576833(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x3b0f8a,_0x2359a8]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x9eb535{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x5ea0fe=this['editor']['editing']['view'];_0x5ea0fe['change'](_0x2488c2=>{for(const _0x45fd93 of _0x5ea0fe['document']['roots'])_0x2488c2['addClass'](ce,_0x45fd93);});}['hide'](){const _0x11df8e=this['editor']['editing']['view'];_0x11df8e['change'](_0x415b29=>{for(const _0x441b67 of _0x11df8e['document']['roots'])_0x415b29['removeClass'](ce,_0x441b67);});}}class w extends _0x9eb535{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,le];}['init'](){const _0x23de32=this['editor'],_0x5820b4=_0x23de32['plugins']['get'](d),_0x495b59=_0x23de32['plugins']['get'](le);_0x23de32['ui']['componentFactory']['add']('exitToEditing',_0xce346e=>{const _0x2f2272=new _0x380667(_0xce346e);return _0x2f2272['set']({'label':m(_0xce346e,'Back\x20to\x20editing'),'icon':_0x1e5bb2,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x2f2272,'execute',()=>{_0x23de32['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x2f2272;}),_0x23de32['ui']['componentFactory']['add']('restoreRevision',_0x3326c8=>{const _0x41cbc0=new _0x380667(_0x3326c8);return _0x41cbc0['set']({'label':m(_0x3326c8,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x41cbc0['bind']('isEnabled')['to'](_0x23de32['commands']['get']('restoreRevision')),this['listenTo'](_0x41cbc0,'execute',()=>_0x23de32['execute']('restoreRevision')),_0x41cbc0;}),_0x23de32['ui']['componentFactory']['add']('changesNavigation',_0xfe3649=>{const _0x22b298=new _i(_0xfe3649),_0x2e12bd=_0x23de32['commands']['get']('showPreviousChange'),_0x2a3390=_0x23de32['commands']['get']('showNextChange');return _0x22b298['bind']('isBackwardNavigationEnabled')['to'](_0x2e12bd,'isEnabled'),_0x22b298['bind']('isForwardNavigationEnabled')['to'](_0x2a3390,'isEnabled'),_0x22b298['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x5820b4),this['listenTo'](_0x22b298,'execute',(_0x5327c1,_0x12315d)=>{_0x23de32['execute']('forward'===_0x12315d?'showNextChange':'showPreviousChange');}),_0x22b298;}),_0x495b59['show'](),_0x5820b4['on']('change:isReady',(_0x273ff6,_0x542ac3,_0x4d88ce)=>{_0x4d88ce?_0x495b59['hide']():_0x495b59['show']();});}}class mt extends at{['_resizeObserver']=null;constructor(_0x462b6e,_0x5f5b87){super(_0x462b6e,_0x5f5b87);const _0x3eba46=this['bindTemplate'];this['set']({'label':m(_0x462b6e,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x462b6e,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x3eba46['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new pt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x420ead=this['fieldView']['element'];this['_tooltipString']=_0x420ead['scrollWidth']>_0x420ead['clientWidth']&&_0x420ead['value']||'';}}class oi extends _0x4b1a88{constructor(_0x5276bd,_0x171577,_0x43afa4){super(_0x5276bd);const _0xf3b5f=new _0x44d682();_0xf3b5f['set']({'content':_0x4fc735,'viewBox':'0\x200\x2011\x2010'});const _0x323b20=['ck','ck-revision-history-sidebar__revision-author'];_0x43afa4&&_0x323b20['push']('ck-revision-history-sidebar__revision-author_creator');const _0x1e897a=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x5276bd,_0x43afa4?'Revision\x20creator':'Revision\x20author')},'children':[_0xf3b5f,_0x171577['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x323b20},'children':_0x1e897a});}}function ni(_0x123d5a,_0xe1c4c){const _0x17a4d4=_0x123d5a['bindTemplate'],_0x35e054=_0x123d5a['locale'],_0x388c49=_0x40e574(_0x35e054);_0x388c49['panelPosition']='sw';const _0x426720=function(_0x36f30e,_0x2f0fe4){const _0x210059=function(_0x31a101,_0x20aed7){const _0x35432a=_0x31a101['locale'],_0x1c62bd={'Compare\x20against\x20selected':m(_0x35432a,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x35432a,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x35432a,'Restore\x20this\x20revision')};return _0x20aed7['map'](_0x3e1daf=>{const _0x39eb5b=_0x1c62bd[_0x3e1daf['name']];return _0x39eb5b&&_0x39eb5b!==_0x3e1daf['name']&&(_0x3e1daf['name']=_0x39eb5b),_0x3e1daf;});}(_0x36f30e,_0x2f0fe4),_0x870a5d=new _0x1c6017();for(const _0xb1bdf1 of _0x210059){const _0x2587ed={'type':'button','model':new to({'label':_0xb1bdf1['name'],'class':_0xb1bdf1['class'],'withText':!0x0,'role':'menuitem','_action':_0xb1bdf1['action']})};_0x2587ed['model']['bind']('isEnabled')['to'](_0x36f30e,'isActionsDropdownOpen',_0x488748=>'function'!=typeof _0xb1bdf1['isEnabled']||(!_0x488748||_0xb1bdf1['isEnabled'](_0x36f30e))),_0x870a5d['add'](_0x2587ed);}return _0x870a5d;}(_0x123d5a,_0xe1c4c);return _0x123d5a['bind']('isActionsDropdownOpen')['to'](_0x388c49,'isOpen'),_0x388c49['buttonView']['set']({'label':m(_0x35e054,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x443779}),_0x388c49['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x17a4d4['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x17a4d4['to'](_0x5614db=>_0x5614db['stopPropagation']())}}),_0x388c49['on']('execute',_0x5a432b=>{_0x123d5a['isReady']&&'function'==typeof _0x5a432b['source']['_action']&&_0x5a432b['source']['_action'](_0x123d5a);}),_0x5bff44(_0x388c49,_0x426720,{'role':'menu'}),_0x388c49['listenTo'](_0x123d5a,'change:isActionsDropdownOpen',(_0x5aee8a,_0x28c4b1,_0x3ee397)=>{if(_0x3ee397)for(const _0x135587 of _0x388c49['listView']['items']){const _0x35ce0d=_0x135587['children']['first'],_0x38dcee=_0xe1c4c['find'](_0x282134=>_0x282134['action']===_0x35ce0d['_action'])['isVisible'];_0x135587['isVisible']=void 0x0===_0x38dcee||_0x38dcee(_0x123d5a);}}),_0x388c49;}class ai extends/* #__PURE__ -- @preserve */
|
|
26
|
-
|
|
23
|
+
import{ObservableMixin as _0xa6e597,uid as _0x52a2cf,Collection as _0x48b870,logWarning as _0x416473,FocusTracker as _0x7e8244,KeystrokeHandler as _0x2bed09,scrollViewportToShowTarget as _0x2b8009,ResizeObserver as pt,ElementReplacer as ht,CKEditorError as _0x198ca7}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0xdf41fd,set as _0x52048c,unset as _0x2c2522,isEqual as _0x58c9ce}from'es-toolkit/compat';import{Plugin as _0x10397b,PendingActions as _0x3f0375,Command as _0x1a2005,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x40c605,getMarkerDomElement as _0x2034e0,ConfirmMixin as _0x3bd8cc,sanitizeEditorConfig as _0x45cf4e}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x59b0c3,Element as ut,Range as ft,ViewUIElement as _0x208efc,ViewRawElement as _0x3d604,ViewEmptyElement as _0x1d7d9c,ViewAttributeElement as _0x12038a,ViewContainerElement as _0x5e1b58,Position as vt,ViewText as _0x24f203,ViewElement as _0x5a82c8,DocumentFragment as gt,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x280652,IconChevronUp as _0x4f1cce,IconChevronDown as _0xa0a8d8,IconUndo as _0x2c24a1,IconUser as _0x44c29d,IconThreeVerticalDots as _0x210fe1}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x3e8a1e,injectCssTransitionDisabler as ts,submitHandler as _0x1b8822,LabeledFieldView as at,createLabeledInputText as ti,createDropdown as _0xa0cca7,ListView as _0x2bdcf4,ListItemView as te,ButtonView as _0x7c7548,MenuBarMenuView as _0x553786,MenuBarMenuListView as _0x589da2,MenuBarMenuListItemView as _0x1f129e,MenuBarMenuListItemButtonView as _0x36144b,ContextualBalloon as _0x4f96fd,ToolbarSeparatorView as _0x484852,IconView as _0x2bfb35,addListToDropdown as _0x3d07ff,ViewModel as to,EditorUI as st,normalizeToolbarConfig as ot,BoxedEditorUIView as ct,StickyPanelView as lt,ToolbarView as nt,InlineEditableUIView as dt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x4f43eb}from'luxon';class h extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0xa6e597(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x4b8a24){super(),this['id']=_0x4b8a24['id']||_0x52a2cf(),this['creator']=_0x4b8a24['creator']||null,this['authors']=_0x4b8a24['authors']||[],this['diffData']=_0x4b8a24['diffData']||null,this['toVersion']=_0x4b8a24['toVersion']||0x0,this['fromVersion']=_0x4b8a24['fromVersion']||0x0,this['set']('name',_0x4b8a24['name']||''),this['set']('createdAt',_0x4b8a24['createdAt']||new Date()),this['set']('attributes',_0x4b8a24['attributes']||{});}['setName'](_0x156571){this['_update']({'name':_0x156571});}['setAttribute'](_0xbab5d8,_0x4251b6){const _0x1546de=_0xdf41fd(this['attributes']);_0x52048c(_0x1546de,_0xbab5d8,_0x4251b6),this['_update']({'attributes':_0x1546de});}['removeAttribute'](_0x32b164){const _0x4f144b=_0xdf41fd(this['attributes']);_0x2c2522(_0x4f144b,_0x32b164),this['_update']({'attributes':_0x4f144b});}['_update'](_0x5f244c,_0x35f8c6=!0x1){let _0xb14b3a=!0x1;const _0x491795={'id':this['id']},_0x1f919a=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x463b58 of _0x1f919a){const _0x20a88e=_0x5f244c[_0x463b58];void 0x0!==_0x20a88e&&_0x20a88e!==this[_0x463b58]&&(this[_0x463b58]=_0x20a88e,_0x491795[_0x463b58]=_0x20a88e,_0xb14b3a=!0x0);}_0xb14b3a&&(_0x491795['authors']&&(_0x491795['authorsIds']=_0x491795['authors']['map'](_0x3ba469=>_0x3ba469['id']),delete _0x491795['authors']),this['fire']('_update',_0x491795,_0x35f8c6));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0xcdd34a=>_0xcdd34a['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x10397b{['_revisions'];static get['requires'](){return[_0x40c605];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x39687b){super(_0x39687b),this['_revisions']=new _0x48b870();}['afterInit'](){!async function(_0xdfef5f){const _0x4c6d30=_0xc2d843([0x64,0x4a,0x46,0x4e,0x6d,0x36,0x34,0x50,0x66,0x51,0x30,0x35,0x45,0x61,0x6a,0x53,0x31,0x6b,0x68,0x54,0x37,0x78,0x57,0x6f,0x6e,0x79,0x49,0x71,0x6c,0x5a,0x77,0x63,0x58,0x41,0x4b,0x75,0x7a,0x65,0x76,0x4d,0x67,0x42,0x70,0x4c,0x38,0x47,0x43,0x44,0x39,0x52,0x73,0x56,0x55,0x59,0x69,0x48,0x4f,0x72,0x33,0x62,0x32,0x74]),_0x5790db=0xeb829,_0x21b9da=0x61c103ff,_0x444ea4=0x61c6613f^_0x21b9da,_0x17d43e=window[_0xc2d843([0x44,0x61,0x74,0x65])][_0xc2d843([0x6e,0x6f,0x77])](),_0x7f5fc2=_0xdfef5f[_0xc2d843([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1fbcbc=new window[(_0xc2d843([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x17f1db=>{_0x7f5fc2[_0xc2d843([0x6f,0x6e,0x63,0x65])](_0xc2d843([0x72,0x65,0x61,0x64,0x79]),_0x17f1db);}),_0x2905c6={[_0xc2d843([0x6b,0x74,0x79])]:_0xc2d843([0x45,0x43]),[_0xc2d843([0x75,0x73,0x65])]:_0xc2d843([0x73,0x69,0x67]),[_0xc2d843([0x63,0x72,0x76])]:_0xc2d843([0x50,0x2d,0x32,0x35,0x36]),[_0xc2d843([0x78])]:_0xc2d843([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]),[_0xc2d843([0x79])]:_0xc2d843([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]),[_0xc2d843([0x61,0x6c,0x67])]:_0xc2d843([0x45,0x53,0x32,0x35,0x36])},_0x3a88ba=_0x7f5fc2[_0xc2d843([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xc2d843([0x67,0x65,0x74])](_0xc2d843([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x45e24e(){let _0x2a6b57,_0x4205fa=null,_0x41a970=null;try{if(_0x3a88ba==_0xc2d843([0x47,0x50,0x4c]))return _0xc2d843([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2a6b57=_0x45a72c(),!_0x2a6b57)return _0xc2d843([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2a6b57[_0xc2d843([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x41a970=_0x41ec62(_0x2a6b57[_0xc2d843([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2a6b57[_0xc2d843([0x6a,0x74,0x69])])),await _0x33707e()?_0x2efd0a()?_0x4e3f80()?_0xc2d843([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x116887()?(_0x2a6b57[_0xc2d843([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xc2d843([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4205fa=_0x58ca1d(_0xc2d843([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2a6b57[_0xc2d843([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xc2d843([0x74,0x72,0x69,0x61,0x6c])&&(_0x4205fa=_0x58ca1d(_0xc2d843([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x56f309()):_0xc2d843([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xc2d843([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xc2d843([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x12a1dc){return _0xc2d843([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4e3f80(){const _0x650cf1=[_0xc2d843([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xc2d843([0x74,0x72,0x69,0x61,0x6c])][_0xc2d843([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2a6b57[_0xc2d843([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x17d43e/0x3e8:0xe10*_0x444ea4;return _0x2a6b57[_0xc2d843([0x65,0x78,0x70])]<_0x650cf1;}function _0x2efd0a(){const _0x5d594e=_0x2a6b57[_0xc2d843([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x5d594e)return!0x1;if(_0x5d594e[_0xc2d843([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc2d843([0x2a])))return!0x0;if(_0x5d594e[_0xc2d843([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc2d843([0x52,0x48])))return!0x0;if(_0x5d594e[_0xc2d843([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc2d843([0x52,0x52,0x48]))){if(_0x48fca1())return!0x0;if(_0x5d2b79()||_0x5676c9())return!0x0;}return!0x1;}function _0x116887(){const _0x54b2b4=_0x2a6b57[_0xc2d843([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x54b2b4||0x0==_0x54b2b4[_0xc2d843([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3f9aab}=new URL(window[_0xc2d843([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x54b2b4[_0xc2d843([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3f9aab))return!0x0;const _0x5e5ede=_0x3f9aab[_0xc2d843([0x73,0x70,0x6c,0x69,0x74])](_0xc2d843([0x2e]));return _0x54b2b4[_0xc2d843([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x372b95=>_0x372b95[_0xc2d843([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc2d843([0x2a])))[_0xc2d843([0x6d,0x61,0x70])](_0x7bc072=>_0x7bc072[_0xc2d843([0x73,0x70,0x6c,0x69,0x74])](_0xc2d843([0x2e])))[_0xc2d843([0x73,0x6f,0x6d,0x65])](_0x166b3e=>_0x5e5ede[_0xc2d843([0x65,0x76,0x65,0x72,0x79])]((_0x4455b9,_0x5d7c7b)=>_0x166b3e[_0x5d7c7b]===_0x4455b9||_0x166b3e[_0x5d7c7b]===_0xc2d843([0x2a])));}function _0x56f309(){return _0x4205fa&&_0x41a970?new window[(_0xc2d843([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x29ac08,_0x2f6e0b)=>{_0x4205fa[_0xc2d843([0x74,0x68,0x65,0x6e])](_0x29ac08,_0x2f6e0b),_0x41a970[_0xc2d843([0x74,0x68,0x65,0x6e])](_0x1b3d62=>{_0x1b3d62!=_0xc2d843([0x56,0x61,0x6c,0x69,0x64])&&_0x29ac08(_0x1b3d62);},_0x2f6e0b);}):_0x4205fa||_0x41a970||_0xc2d843([0x56,0x61,0x6c,0x69,0x64]);}}function _0x41ec62(_0x2709bc,_0x11f773){return new window[(_0xc2d843([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x468fca=>{if(_0xdefb92())return _0x468fca(_0xc2d843([0x56,0x61,0x6c,0x69,0x64]));_0x9c0c31(),_0x7f5fc2[_0xc2d843([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xc2d843([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2160fb=!0x1;const _0x336631=_0x52a2cf();function _0x4ea2e2(_0x5a9334){return!!_0x5a9334&&(typeof _0x5a9334===_0xc2d843([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5a9334===_0xc2d843([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5a9334[_0xc2d843([0x74,0x68,0x65,0x6e])]===_0xc2d843([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5a9334[_0xc2d843([0x63,0x61,0x74,0x63,0x68])]===_0xc2d843([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x463dd1(_0x2ad8ba){_0x12bbd9(_0x2ad8ba)[_0xc2d843([0x74,0x68,0x65,0x6e])](_0x4ec341=>{if(!_0x4ec341||_0x4ec341[_0xc2d843([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xc2d843([0x6f,0x6b]))return _0xc2d843([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x444c9e(_0xdb573(_0x336631+_0x11f773))!=_0x4ec341[_0xc2d843([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xc2d843([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xc2d843([0x56,0x61,0x6c,0x69,0x64]);})[_0xc2d843([0x74,0x68,0x65,0x6e])](_0x1ce960=>(_0x42d941(),_0x1ce960),()=>{const _0x322735=_0xc2c254();return null==_0x322735?(_0x42d941(),_0xc2d843([0x56,0x61,0x6c,0x69,0x64])):_0xc2d843(_0x17d43e-_0x322735>(0x45cd87ff^_0x21b9da)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xc2d843([0x74,0x68,0x65,0x6e])](_0x468fca)[_0xc2d843([0x63,0x61,0x74,0x63,0x68])](()=>{_0x468fca(_0xc2d843([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xefd9b1=0x61f7ed7f^_0x21b9da;function _0x42d941(){const _0xc31342=_0xc2d843([0x6c,0x6c,0x63,0x74,0x2d])+_0x444c9e(_0xdb573(_0x2709bc)),_0x44a11a=_0x1c0847(_0x444c9e(window[_0xc2d843([0x4d,0x61,0x74,0x68])][_0xc2d843([0x63,0x65,0x69,0x6c])](_0x17d43e/_0xefd9b1)));window[_0xc2d843([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xc2d843([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xc31342,_0x44a11a);}function _0xc2c254(){const _0xa6dfc4=_0xc2d843([0x6c,0x6c,0x63,0x74,0x2d])+_0x444c9e(_0xdb573(_0x2709bc)),_0x21c54a=window[_0xc2d843([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xc2d843([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xa6dfc4);return _0x21c54a?window[_0xc2d843([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1c0847(_0x21c54a),0x10)*_0xefd9b1:null;}function _0x12bbd9(_0x5edd4e){return new window[(_0xc2d843([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x54c449,_0x4ce805)=>{_0x5edd4e[_0xc2d843([0x74,0x68,0x65,0x6e])](_0x54c449,_0x4ce805),window[_0xc2d843([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4ce805,0x61c0d73f^_0x21b9da);});}}_0x7f5fc2[_0xc2d843([0x6f,0x6e])](_0xc2d843([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x32b4bd,_0x555cef)=>{if(_0x555cef[0x0]!=_0x2709bc)return _0x468fca(_0xc2d843([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x555cef[0x1]={..._0x555cef[0x1],[_0xc2d843([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x336631};},{[_0xc2d843([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xc2d843([0x68,0x69,0x67,0x68])}),_0x7f5fc2[_0xc2d843([0x6f,0x6e])](_0xc2d843([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x48800b=>{_0x4ea2e2(_0x48800b[_0xc2d843([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2160fb=!0x0,_0x463dd1(_0x48800b[_0xc2d843([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xc2d843([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xc2d843([0x6c,0x6f,0x77])}),_0x1fbcbc[_0xc2d843([0x74,0x68,0x65,0x6e])](()=>{_0x2160fb||_0x468fca(_0xc2d843([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xdefb92(){return _0x7f5fc2[_0xc2d843([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xc2d843([0x76,0x69,0x65,0x77])][_0xc2d843([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xc2d843([0x61,0x75,0x74,0x6f]);}function _0x9c0c31(){_0x7f5fc2[_0xc2d843([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xc2d843([0x76,0x69,0x65,0x77])][_0xc2d843([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xc2d843([0x61,0x75,0x74,0x6f]);}}function _0x58ca1d(_0x3bd7ac){const _0x47726e=[new window[(_0xc2d843([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x377a53=>setTimeout(_0x377a53,0x61c83d33^_0x21b9da)),_0x1fbcbc[_0xc2d843([0x74,0x68,0x65,0x6e])](()=>new window[(_0xc2d843([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4c0714=>{const _0x3ffbf9=0x61c103f8^_0x21b9da,_0x12907e=_0xdfef5f[_0xc2d843([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x28a752(){_0x12907e[_0xc2d843([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x3ffbf9&&_0x4c0714();}_0x28a752(),_0x12907e[_0xc2d843([0x6f,0x6e])](_0xc2d843([0x61,0x64,0x64]),_0x28a752);})),new window[(_0xc2d843([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x7c3e93=>{function _0x97de25(){for(const _0x3143b7 in window)if(window[_0xc2d843([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0xc2d843([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x3143b7))&&window[_0x3143b7]==_0x5790db)return _0x7c3e93();_0x7f5fc2[_0xc2d843([0x73,0x74,0x61,0x74,0x65])]!=_0xc2d843([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0xc2d843([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x97de25,0x61c11077^_0x21b9da);}_0x4301a1(_0xc2d843([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x97de25();})];return window[_0xc2d843([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xc2d843([0x72,0x61,0x63,0x65])](_0x47726e)[_0xc2d843([0x74,0x68,0x65,0x6e])](()=>_0x3bd7ac);}async function _0x1685fb(){if(await _0x1fbcbc,_0x4301a1(_0xc2d843([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0xbdc246=_0xdfef5f[_0xc2d843([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x4e1f1c=_0xdfef5f[_0xc2d843([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])](_0xbdc246[_0xc2d843([0x69,0x64])]),_0x1dce1b=_0x43d384(_0xc2d843([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x1dce1b[_0xc2d843([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0xbdc246['id'],_0x4e1f1c?_0x4e1f1c['id']:null,!0x0),_0x1dce1b[_0xc2d843([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0xc2d843([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x1dce1b[_0xc2d843([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x1dce1b[_0xc2d843([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x5803da,void(_0x1dce1b[_0xc2d843([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x5803da);}if(_0x4301a1(_0xc2d843([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x1a81b2=_0x43d384(_0xc2d843([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x1a81b2[_0xc2d843([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0xc2d843([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x1a81b2[_0xc2d843([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x1a81b2[_0xc2d843([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x5803da,_0x1a81b2[_0xc2d843([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x5803da;}_0x7f5fc2[_0xc2d843([0x6d,0x6f,0x64,0x65,0x6c])][_0xc2d843([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5803da,_0x7f5fc2[_0xc2d843([0x6d,0x6f,0x64,0x65,0x6c])][_0xc2d843([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5803da,_0x7f5fc2[_0xc2d843([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xc2d843([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x48fca1(){return _0x4301a1(_0xc2d843([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x43d384(_0xc2d843([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0xc2d843([0x73,0x74,0x61,0x74,0x65])]==_0xc2d843([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x5d2b79(){return _0x4301a1(_0xc2d843([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 _0x5676c9(){return _0x4301a1(_0xc2d843([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1ab450(_0x134780){const _0x3967b6=_0x4a01a6();_0x7f5fc2[_0x3967b6]=_0xc2d843([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])+_0x134780,_0x134780[_0xc2d843([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0xc2d843([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x4a01a6()]=_0x5790db),_0x134780!=_0xc2d843([0x56,0x61,0x6c,0x69,0x64])&&_0x1685fb();}function _0x4a01a6(){const _0x50d11c=window[_0xc2d843([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xc2d843([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xc2d843([0x6e,0x6f,0x77])]())[_0xc2d843([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xc2d843([0x2e]),'');let _0x4e640e=_0xc2d843([0x64]);for(let _0x54a391=0x0;_0x54a391<_0x50d11c[_0xc2d843([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x54a391+=0x2){let _0x3da038=window[_0xc2d843([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x50d11c[_0xc2d843([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x54a391,_0x54a391+0x2));_0x3da038>=_0x4c6d30[_0xc2d843([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3da038-=_0x4c6d30[_0xc2d843([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4e640e+=_0x4c6d30[_0x3da038];}return _0x4e640e;}function _0x45a72c(){const _0x533432=_0x3a88ba[_0xc2d843([0x73,0x70,0x6c,0x69,0x74])](_0xc2d843([0x2e]));if(0x3!=_0x533432[_0xc2d843([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5bca6c(_0x533432[0x1]);function _0x5bca6c(_0xc6817d){const _0x2013a8=_0x5704a9(_0xc6817d);return _0x2013a8&&_0x4e5a91()?_0x2013a8:null;function _0x4e5a91(){const _0x30be52=_0x2013a8[_0xc2d843([0x6a,0x74,0x69])],_0x41f48c=window[_0xc2d843([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x30be52[_0xc2d843([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x30be52[_0xc2d843([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2ea396={..._0x2013a8,[_0xc2d843([0x6a,0x74,0x69])]:_0x30be52[_0xc2d843([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x30be52[_0xc2d843([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2ea396[_0xc2d843([0x76,0x63])],_0xdb573(_0x2ea396)==_0x41f48c;}}}async function _0x33707e(){let _0x44e499=!0x0;try{const _0x19a1bf=_0x3a88ba[_0xc2d843([0x73,0x70,0x6c,0x69,0x74])](_0xc2d843([0x2e])),[_0x1f4f94,_0x5addfd,_0x3d3259]=_0x19a1bf;return _0x4875a9(_0x1f4f94),await _0x464b67(_0x1f4f94,_0x5addfd,_0x3d3259),_0x44e499;}catch(_0x3dc7b4){return!0x1;}function _0x4875a9(_0x5c19c3){const _0x35df7f=_0x5704a9(_0x5c19c3);_0x35df7f&&_0x35df7f[_0xc2d843([0x61,0x6c,0x67])]==_0xc2d843([0x45,0x53,0x32,0x35,0x36])||(_0x44e499=!0x1);}async function _0x464b67(_0x2b3690,_0x304daf,_0x18192a){const _0x5691ca=window[_0xc2d843([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xc2d843([0x66,0x72,0x6f,0x6d])](_0x43759f(_0x18192a),_0x44fd5b=>_0x44fd5b[_0xc2d843([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x47eb34=new window[(_0xc2d843([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xc2d843([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2b3690+_0xc2d843([0x2e])+_0x304daf),_0x29ead1=window[_0xc2d843([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xc2d843([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x29ead1)return;const _0x44c128=await _0x29ead1[_0xc2d843([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xc2d843([0x6a,0x77,0x6b]),_0x2905c6,{[_0xc2d843([0x6e,0x61,0x6d,0x65])]:_0xc2d843([0x45,0x43,0x44,0x53,0x41]),[_0xc2d843([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xc2d843([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xc2d843([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x29ead1[_0xc2d843([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xc2d843([0x6e,0x61,0x6d,0x65])]:_0xc2d843([0x45,0x43,0x44,0x53,0x41]),[_0xc2d843([0x68,0x61,0x73,0x68])]:{[_0xc2d843([0x6e,0x61,0x6d,0x65])]:_0xc2d843([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x44c128,_0x5691ca,_0x47eb34)||(_0x44e499=!0x1);}}function _0x5704a9(_0x1a2950){return _0x1a2950[_0xc2d843([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xc2d843([0x65,0x79]))?JSON[_0xc2d843([0x70,0x61,0x72,0x73,0x65])](_0x43759f(_0x1a2950)):null;}function _0x43759f(_0x1b0654){return window[_0xc2d843([0x61,0x74,0x6f,0x62])](_0x1b0654[_0xc2d843([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xc2d843([0x2b]))[_0xc2d843([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xc2d843([0x2f])));}function _0xdb573(_0xf60a95){let _0x72ffd5=0x1505;function _0x3f5a74(_0x25abf3){for(let _0x458cff=0x0;_0x458cff<_0x25abf3[_0xc2d843([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x458cff++){const _0x2453e1=_0x25abf3[_0xc2d843([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x458cff);_0x72ffd5=(_0x72ffd5<<0x5)+_0x72ffd5+_0x2453e1,_0x72ffd5&=_0x72ffd5;}}function _0x26670c(_0x16f1e8){Array[_0xc2d843([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x16f1e8)?_0x16f1e8[_0xc2d843([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x26670c):_0x16f1e8&&typeof _0x16f1e8==_0xc2d843([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xc2d843([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x16f1e8)[_0xc2d843([0x73,0x6f,0x72,0x74])]()[_0xc2d843([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x159c33,_0xf6e41b])=>{_0x3f5a74(_0x159c33),_0x26670c(_0xf6e41b);}):_0x3f5a74(window[_0xc2d843([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x16f1e8));}return _0x26670c(_0xf60a95),_0x72ffd5>>>0x0;}function _0x444c9e(_0x53e479){return _0x53e479[_0xc2d843([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xc2d843([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xc2d843([0x30]));}function _0x1c0847(_0x5e3a2a){return _0x5e3a2a[_0xc2d843([0x73,0x70,0x6c,0x69,0x74])]('')[_0xc2d843([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xc2d843([0x6a,0x6f,0x69,0x6e])]('');}function _0x4301a1(_0x21c36c){return _0x7f5fc2[_0xc2d843([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xc2d843([0x68,0x61,0x73])](_0x21c36c);}function _0x43d384(_0x570316){return _0x7f5fc2[_0xc2d843([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xc2d843([0x67,0x65,0x74])](_0x570316);}function _0x5803da(){}function _0xc2d843(_0x25ecea){return _0x25ecea['map'](_0x12f100=>String['fromCharCode'](_0x12f100))['join']('');}_0x1ab450(await _0x45e24e());}(this);}['createRevision'](_0x452970){const _0x280799=this['editor']['plugins']['get']('Users');return new h({'id':_0x452970['id'],'name':_0x452970['name'],'creator':_0x452970['creatorId']?_0x280799['getUser'](_0x452970['creatorId']):null,'diffData':_0x452970['diffData']||_0x452970['data'],'authors':_0x452970['authorsIds']['map'](_0x3382a7=>_0x280799['getUser'](_0x3382a7)),'createdAt':new Date(_0x452970['createdAt']),'attributes':_0x452970['attributes'],'fromVersion':_0x452970['fromVersion'],'toVersion':_0x452970['toVersion']});}['addRevision'](_0x1c0a2c,_0x2864fc=0x0){this['_revisions']['add'](_0x1c0a2c,_0x2864fc);}['getRevision'](_0x3bec96){return this['_revisions']['get'](_0x3bec96);}['getRevisions'](_0x477225={'toJSON':!0x1}){const _0x5501f1=Array['from'](this['_revisions']);return _0x5501f1['reverse'](),_0x477225['toJSON']?_0x5501f1['map'](_0x17dd44=>_0x17dd44['toJSON']()):_0x5501f1;}['getIndex'](_0x2a07ba){return this['_revisions']['getIndex'](_0x2a07ba);}['getEarlierVisibleRevision'](_0x189405){const [,_0x5675bc]=this['getRevisionsIterator'](_0x189405,{'direction':'earlier'});return _0x5675bc;}['getLaterVisibleRevision'](_0x74d2b7){const [,_0x2c360e]=this['getRevisionsIterator'](_0x74d2b7,{'direction':'later'});return _0x2c360e;}['getRevisionsInDiff'](_0x4c10d5){const _0x49f299=[];for(const _0x35da52 of this['getRevisionsIterator'](_0x4c10d5['newRevisionId']))if(_0x49f299['push'](_0x35da52),_0x35da52['id']===_0x4c10d5['oldRevisionId'])break;return _0x49f299;}*['getRevisionsIterator'](_0x3744a6,{direction:_0x4db555='earlier',filter:_0x5f0c85=()=>!0x0}={}){const _0x4cf488='earlier'===_0x4db555?0x1:-0x1;let _0x316e79=this['_revisions']['get'](_0x3744a6),_0x41f08e=this['getIndex'](_0x316e79);for(yield _0x316e79;_0x316e79;){if(_0x41f08e+=_0x4cf488,_0x316e79=this['getRevision'](_0x41f08e),!_0x316e79)return;_0x5f0c85(_0x316e79)&&(yield _0x316e79);}}}function m(_0x3c4c06,_0x1f2293,_0x5d41a7){const t=_0x3c4c06['t'];switch(_0x1f2293){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'},_0x5d41a7);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x5d41a7);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const E={'c':_0x5e1b58,'a':_0x12038a,'e':_0x1d7d9c,'r':_0x3d604,'u':_0x208efc};class u extends _0x10397b{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x40c605,j,_0x3f0375];}constructor(_0x58aec1){super(_0x58aec1),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x2bf9c1=_0x52a2cf();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x2bf9c1},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x45b419=this['repository']['getRevision'](0x0),_0x4c3d27=_0x45b419&&null===_0x45b419['creator']?_0x45b419:null;if(this['_continueCurrentRevision']=!!_0x4c3d27&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x30908f=this['_source']['getCurrentRevisionId'](),_0x43cff7=this['repository']['getRevision'](_0x30908f);if(_0x43cff7)this['_startingVersion']=_0x43cff7['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x393caf=this['_source']['history']['_operations']['find'](_0x13dbdc=>!_0x13dbdc['_isInit']),_0x2b21ac=_0x393caf?_0x393caf['baseVersion']:this['_source']['history']['version'];_0x45b419?(_0x45b419['toVersion']<_0x2b21ac&&_0x45b419['_update']({'toVersion':_0x2b21ac}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x4c3d27['id'],this['_startingVersion']=_0x4c3d27['fromVersion']):(this['_startingVersion']=_0x45b419['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x2b21ac,this['_continueCurrentRevision']=!0x1);}}else _0x4c3d27&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x4c3d27['toVersion'],this['editor']['model']['document']['history']['version']),_0x4c3d27['fromVersion']===_0x4c3d27['toVersion']?(0x0!==_0x4c3d27['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x4c3d27['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x4c3d27['id'],this['_startingVersion']=_0x4c3d27['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',_0x10b43c=>!_0x10b43c),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1eb9cf=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4a586f;for(const _0x2180ce in _0x1eb9cf){const _0x52a2c7=_0x2180ce,_0xa61941=_0x1eb9cf[_0x52a2c7];if('revisionHistoryLicenseKeyValid'==_0xa61941||'revisionHistoryLicenseKeyInvalid'==_0xa61941||'revisionHistoryLicenseKeyExpired'==_0xa61941||'revisionHistoryLicenseKeyDomainLimit'==_0xa61941||'revisionHistoryLicenseKeyNotAllowed'==_0xa61941||'revisionHistoryLicenseKeyEvaluationLimit'==_0xa61941||'revisionHistoryLicenseKeyTrialLimit'==_0xa61941||'revisionHistoryLicenseKeyUsageLimit'==_0xa61941){delete _0x1eb9cf[_0x52a2c7],_0x4a586f=_0xa61941,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x4a586f&&_0x1eb9cf['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x4a586f&&_0x1eb9cf['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x4a586f&&_0x1eb9cf['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x4a586f&&_0x1eb9cf['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x4a586f&&_0x1eb9cf['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x4a586f&&_0x1eb9cf['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x4a586f&&_0x1eb9cf['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x33fa55=this['repository']['getRevision'](0x0),_0x5e9b2f=await this['getRevisionDocumentData'](_0x33fa55),_0x1e75c3=await this['getRevisionRootsAttributes'](_0x33fa55);this['_replaceEditorDataWithRevisionData'](_0x5e9b2f,_0x1e75c3);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x4cb25c){this['_source']=_0x4cb25c;}async['update'](){const _0x2ffbf4=await this['_source']['getLatestVersion']();if(_0x2ffbf4>this['currentRevision']['toVersion']){await this['_loadState']();const _0xd0b18a=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x2ffbf4});_0xd0b18a['authors']=_0xd0b18a['authorsIds']['map'](_0x2765c7=>this['editor']['plugins']['get']('Users')['getUser'](_0x2765c7)),this['currentRevision']['_update'](_0xd0b18a);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0x4f914f={},_0x5550cd=null){const _0x3778e0=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x5550cd>this['currentRevision']['toVersion']&&(_0x5550cd=null),null===_0x5550cd&&(_0x5550cd=await this['_source']['getLatestVersion']());const _0x4f8327=this['_getFromVersion'](_0x5550cd),_0x507649=this['buildRevisionData']({'from':_0x4f8327,'to':_0x5550cd});if(this['currentRevision']['toVersion']<_0x5550cd){const _0x18d77c=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x5550cd,'to':_0x5550cd});_0x18d77c['authors']=[],_0x18d77c['authorsIds']=[],_0x18d77c['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x18d77c,!0x0),delete _0x18d77c['authors'],_0x3778e0['push'](_0x18d77c);}_0x4f914f['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x4f914f['name']=_0x4f914f['name']||null,_0x4f914f['id']=_0x4f914f['id']||_0x52a2cf(),_0x4f914f={..._0x4f914f,..._0x507649};const _0x5a26b=this['addRevisionData'](_0x4f914f);_0x3778e0['push'](_0x4f914f);const _0x5896a7=this['repository']['getIndex'](_0x5a26b);if(0x0!==_0x5896a7){const _0x13d151=this['repository']['getRevision'](_0x5896a7-0x1);if(_0x13d151['fromVersion']!==_0x5550cd){const _0x4c406c=this['_revisionDataBuilder']['getData'](_0x5550cd,_0x13d151['toVersion']),_0xb2fdd6={'id':_0x13d151['id'],'diffData':_0x4c406c['diffData'],'authorsIds':_0x4c406c['authorsIds'],'authors':_0x4c406c['authorsIds']['map'](_0x134417=>this['editor']['plugins']['get']('Users')['getUser'](_0x134417)),'fromVersion':_0x5550cd};_0x13d151===this['currentRevision']&&(_0xb2fdd6['createdAt']=new Date(_0x4f914f['createdAt']['getTime']()+0xa)),_0x13d151['_update'](_0xb2fdd6,!0x0),delete _0xb2fdd6['authors'],_0x3778e0['push'](_0xb2fdd6);}}if(this['adapter']){for(const _0xb43e39 of _0x3778e0)this['_bufferUpdate'](_0xb43e39['id'],_0xb43e39,!0x0);this['sendBufferedUpdates']();}return _0x5a26b;}['addRevisionData'](_0x3f3104){const _0x322a70=this['repository']['createRevision'](_0x3f3104);return this['adapter']&&_0x322a70['on']('_update',(_0x3044a5,_0x4d990d,_0x5cf581)=>{_0x5cf581||(this['_bufferUpdate'](_0x4d990d['id'],_0x4d990d,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x322a70,this['_findInsertionIndex'](_0x322a70)),_0x322a70;}async['getRevisionDocumentData'](_0x35daa2){await this['_loadRevisionData'](_0x35daa2);const _0x30da92={};for(const _0x16f28b in _0x35daa2['diffData']){if(_0x35daa2['diffData'][_0x16f28b]['attachChange']&&!_0x35daa2['diffData'][_0x16f28b]['attachChange']['isAttached'])continue;const _0x5da0c7=this['_removeRevisionMarkers'](JSON['parse'](_0x35daa2['diffData'][_0x16f28b]['insertions'])),_0x3801d0=this['editor']['editing']['view']['document'],_0x4105e0=new _0x59b0c3(_0x3801d0,_0x5da0c7['map'](_0xbab2e9=>P(_0xbab2e9,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x30da92[_0x16f28b]=this['editor']['data']['processor']['toData'](_0x4105e0),this['editor']['data']['processor']['useFillerType']('default');}return _0x30da92;}async['getRevisionRootsAttributes'](_0x114459){await this['_loadRevisionData'](_0x114459);const _0x4df71d={};for(const _0x203c45 in _0x114459['diffData'])_0x114459['diffData'][_0x203c45]['attachChange']&&!_0x114459['diffData'][_0x203c45]['attachChange']['isAttached']||(_0x4df71d[_0x203c45]=_0x114459['diffData'][_0x203c45]['attributesAfter']||{});return _0x4df71d;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x4f6fa2=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x2e3493=0x0;_0x2e3493<_0x4f6fa2['length'];_0x2e3493++){const _0x58d309=_0x4f6fa2[_0x2e3493];let _0x5f06c2=!0x1;for(const _0x5e6eee of Object['keys'](_0x58d309))void 0x0===_0x58d309[_0x5e6eee]?delete _0x58d309[_0x5e6eee]:'id'!==_0x5e6eee&&(_0x5f06c2=!0x0);_0x5f06c2||(_0x4f6fa2[_0x2e3493]=null);}if(_0x4f6fa2=_0x4f6fa2['filter'](_0x5a23bb=>null!==_0x5a23bb),!_0x4f6fa2['length'])return;for(let _0xb5f7a9=0x0;_0xb5f7a9<_0x4f6fa2['length'];_0xb5f7a9++){const _0x315419=_0x4f6fa2[_0xb5f7a9];void 0x0!==_0x315419['fromVersion']&&void 0x0===_0x315419['toVersion']&&(_0x315419['toVersion']=this['repository']['getRevision'](_0x315419['id'])['toVersion']),void 0x0!==_0x315419['toVersion']&&void 0x0===_0x315419['fromVersion']&&(_0x315419['fromVersion']=this['repository']['getRevision'](_0x315419['id'])['fromVersion']);}const _0xf091af=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x4f6fa2,_0xf091af)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x4578a7=>{if(_0x4578a7){for(const _0xc37799 of _0x4578a7)this['setRevisionData']({'id':_0xc37799['id'],'createdAt':_0xc37799['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x1112b6,_0x436ad6){let _0x23806a=this['editor']['config']['get']('initialData'),_0xc88917=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x23806a){_0x23806a={};for(const _0x342d22 of this['editor']['model']['document']['getRootNames']())_0x23806a[_0x342d22]='';}if('string'==typeof _0x23806a&&(_0x23806a={'main':_0x23806a}),void 0x0===_0xc88917){_0xc88917={};for(const _0x2ba7b6 of this['editor']['model']['document']['getRootNames']())_0xc88917[_0x2ba7b6]={};}let _0x31fdb4=!0x1;const _0x30a98d=Object['keys'](_0x23806a),_0x2eac35=Object['keys'](_0x1112b6);for(const _0x4a3cb6 of _0x30a98d){if(_0x23806a[_0x4a3cb6]!==_0x1112b6[_0x4a3cb6]&&''!==_0x23806a[_0x4a3cb6]['trim']()){_0x31fdb4=!0x0;break;}if(!_0x58c9ce(_0xc88917[_0x4a3cb6],_0x436ad6[_0x4a3cb6])&&Object['keys'](_0xc88917[_0x4a3cb6])['length']>0x0){_0x31fdb4=!0x0;break;}}_0x31fdb4||(_0x31fdb4=_0x2eac35['some'](_0x1edffa=>!this['editor']['model']['document']['getRoot'](_0x1edffa))),_0x31fdb4&&_0x416473('editor-initial-data-replaced-with-revision-data',{'editorData':_0x23806a,'editorRootsAttributes':_0xc88917,'revisionData':_0x1112b6,'revisionRootsAttributes':_0x436ad6}),this['editor']['config']['set']('initialData',_0x1112b6),this['editor']['config']['set']('rootsAttributes',_0x436ad6);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x2056a6=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x2056a6['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x328930){const _0x3697f4=this['repository']['getRevisions']();_0x3697f4['reverse']();let _0x5310de=0x0;for(;_0x5310de<_0x3697f4['length'];){const _0x352d74=_0x3697f4[_0x5310de];if(_0x352d74===this['currentRevision']){_0x5310de++;continue;}if(_0x352d74['id']===this['_initialRevisionId'])break;const _0x1bc8ba=_0x328930['toVersion']-_0x352d74['toVersion']||_0x328930['fromVersion']-_0x352d74['fromVersion'];if(_0x1bc8ba>0x0)break;if(_0x1bc8ba<0x0)_0x5310de++;else{if(!_0x328930['creator']&&_0x352d74['creator'])break;if(_0x352d74['creator']||!_0x328930['creator']){if(_0x328930['createdAt']>_0x352d74['createdAt'])break;_0x5310de++;}else _0x5310de++;}}return _0x5310de;}['setRevisionData'](_0x4829e9){const _0x12c671=this['repository']['getRevision'](_0x4829e9['id']);if(_0x4829e9['createdAt']&&(_0x4829e9['createdAt']=new Date(_0x4829e9['createdAt'])),_0x4829e9['authorsIds']){const _0x3e7660=this['editor']['plugins']['get']('Users');_0x4829e9['authors']=_0x4829e9['authorsIds']['map'](_0x4813e1=>_0x3e7660['getUser'](_0x4813e1));}_0x12c671['_update'](_0x4829e9,!0x0);}['buildRevisionData']({revision:_0x408e6e=null,from:_0x4322ed=null,to:_0x419e40=null}){_0x4322ed=null!==_0x4322ed?_0x4322ed:_0x408e6e['fromVersion'],_0x419e40=null!==_0x419e40?_0x419e40:_0x408e6e['toVersion'];const _0x2e1d0d=this['_revisionDataBuilder']['getData'](_0x4322ed,_0x419e40),_0x1b909e={'diffData':_0x2e1d0d['diffData'],'authorsIds':_0x2e1d0d['authorsIds'],'fromVersion':_0x4322ed,'toVersion':_0x419e40};if(!_0x408e6e||_0x419e40!==_0x408e6e['toVersion']){const _0x43dd0c=_0x419e40-0x1,_0x5a2788=this['_source']['history']['getOperation'](_0x43dd0c);_0x1b909e['createdAt']=_0x5a2788&&_0x5a2788['createdAt']||new Date();}if(this['_loadedStateData']&&_0x4322ed===this['_loadedStateData']['fromVersion']){for(const _0x34a2e1 of this['_loadedStateData']['authors'])_0x1b909e['authorsIds']['includes'](_0x34a2e1['id'])||_0x1b909e['authorsIds']['push'](_0x34a2e1['id']);}return _0x1b909e;}['_loadRevisionData'](_0x670cf7){if(!_0x670cf7||_0x670cf7['diffData'])return Promise['resolve']();{const _0x4d241f=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x4d241f,'revisionId':_0x670cf7['id']})['then'](_0xcbb1e8=>{_0x670cf7['diffData']=_0xcbb1e8['diffData'];});}}['_bufferUpdate'](_0x35f410,_0x4fe63f,_0x252976){if(this['_bufferedUpdates']['has'](_0x35f410)){const _0x1e9b5e=this['_bufferedUpdates']['get'](_0x35f410);_0x4fe63f=_0x252976?{..._0x1e9b5e,..._0x4fe63f}:{..._0x4fe63f,..._0x1e9b5e};}this['_bufferedUpdates']['set'](_0x35f410,_0x4fe63f);}['_getFromVersion'](_0x7b66bf){const _0x56a76d=this['repository']['getRevisions']();_0x56a76d['reverse'](),_0x56a76d['shift']();const _0x1abdaa=_0x56a76d['find'](_0x558a00=>_0x558a00['toVersion']<=_0x7b66bf)['toVersion'];return _0x1abdaa<this['_startingVersion']?this['_startingVersion']:_0x1abdaa;}['_createInitialRevision'](_0x3d39e7){const _0x193607=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x193607)this['_initialRevisionId']=_0x193607['id'];else{const _0x1d27cc=!this['editor']['model']['document']['roots']['find'](_0x40f5e5=>this['editor']['model']['hasContent'](_0x40f5e5)),_0x46dfed=this['editor']['plugins']['get']('Users')['me']['id'],_0x5b9d7e=m(this['editor']['locale'],_0x1d27cc?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x3d39e7,'to':_0x3d39e7,'id':this['_initialRevisionId'],'name':_0x5b9d7e,'creatorId':_0x46dfed});}}['_createCurrentRevision'](_0x1f8d79){const _0x116067=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x116067),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x1f8d79,'to':_0x1f8d79,'id':_0x116067,'name':'','creatorId':null}));}['_makeRevision']({name:_0x4443d7,from:_0x4cbf5d,to:_0x32bdbc,creatorId:_0x104fa7,id:_0x2d2c25}){const _0x58eb49=this['buildRevisionData']({'from':_0x4cbf5d,'to':_0x32bdbc});_0x58eb49['name']=_0x4443d7,_0x58eb49['creatorId']=_0x104fa7,_0x58eb49['id']=_0x2d2c25;const _0x6807bb=this['addRevisionData'](_0x58eb49);return this['adapter']&&this['_bufferUpdate'](_0x58eb49['id'],_0x58eb49,!0x0),_0x6807bb;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x362336){return(_0x362336=_0x362336['filter'](_0x327dc3=>!_0x327dc3['name']||'revision-start'!==_0x327dc3['name']&&'revision-end'!==_0x327dc3['name']))['forEach'](_0x175d75=>{'string'!=typeof _0x175d75&&(_0x175d75['children']=this['_removeRevisionMarkers'](_0x175d75['children']),_0x175d75['attributes']=_0x175d75['attributes']['filter'](_0x685296=>!_0x685296[0x0]['startsWith']('data-revision-')));}),_0x362336;}}function P(_0x586372,_0x451ce5){const _0x6ba465=_0x451ce5['editing']['view']['document'];if('string'==typeof _0x586372)return new _0x24f203(_0x6ba465,_0x586372);{const _0xf58e2d=_0x586372['children']['map'](_0x443172=>P(_0x443172,_0x451ce5));return new(E[_0x586372['type']]||_0x5a82c8)(_0x6ba465,_0x586372['name'],_0x586372['attributes'],_0xf58e2d);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x274374){this['editor']=_0x274374,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'](_0x154de6){this['source']=_0x154de6;const _0x2ffe1f=new Map(),_0x391bbf=new Map(),_0xee3fea=this['editor']['model']['document']['roots']['map'](_0x55ab91=>_0x55ab91['rootName']);for(const _0x1624b1 of _0xee3fea){const _0x13e817=this['editor']['model']['document']['getRoot'](_0x1624b1),_0xc6dbdb=T(_0x13e817);_0x2ffe1f['set'](_0x1624b1,_0xc6dbdb),_0x391bbf['set'](_0x1624b1,Object['fromEntries'](_0x13e817['getAttributes']()));}const _0x468613=Array['from'](this['editor']['model']['markers'])['map'](_0x3fc8d8=>[_0x3fc8d8['name'],_0x3fc8d8['getRange']()]),_0x5ab0c9=this['source']['version'];this['_saveMetaData'](_0x5ab0c9,_0x2ffe1f,_0x468613,_0x391bbf),this['_startingRevisionId']=this['_revisionId'];const _0x113c34=new Map(),_0x72bd10=new Map();for(const _0x68550b of _0xee3fea){const _0x264efb=F(_0x68550b);_0x113c34['set'](_0x68550b,_0x264efb),_0x72bd10['set'](_0x68550b,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x113c34,[],_0x72bd10);}['getData'](_0x57a948,_0x72294e){if(this['_lastFrom']===_0x57a948&&this['_lastTo']<=_0x72294e)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x72294e,!0x0);else{if(!this['_savedMetaData']['has'](_0x57a948)){const _0x37114a=this['_getPreviousFrom'](_0x57a948);this['_calculateMetaData'](_0x37114a,_0x57a948,!0x1);}this['_calculateMetaData'](_0x57a948,_0x72294e,!0x0);}return this['_lastFrom']=_0x57a948,this['_lastTo']=_0x72294e,this['_getState']();}['loadState'](_0x4749f1){this['_reset'](),this['_lastFrom']=_0x4749f1['fromVersion'],this['_lastTo']=_0x4749f1['toVersion'];for(const _0x3c1e1c in _0x4749f1['diffData']){const _0x11c0bc=_0x4749f1['diffData'][_0x3c1e1c]['attachChange'],_0x21c5e9=_0xdf41fd(_0x4749f1['diffData'][_0x3c1e1c]['attributesBefore'])||{},_0xd74a9e=this['_makeModelFromViewString'](_0x4749f1['diffData'][_0x3c1e1c]['deletions']);_0xd74a9e['rootName']=_0x3c1e1c,_0xd74a9e['_isAttached']=!_0x11c0bc||!_0x11c0bc['isAttached'],_0xd74a9e['isAttached']=()=>_0xd74a9e['_isAttached'],this['_baseRoots']['set'](_0x3c1e1c,_0xd74a9e),this['_baseRootsAttributes']['set'](_0x3c1e1c,_0x21c5e9),_0x11c0bc&&this['_touchedRoots']['set'](_0x3c1e1c,_0x11c0bc);const _0x102a03=this['_makeIdsRoot'](_0xd74a9e);this['_baseIdsRoots']['set'](_0x3c1e1c,_0x102a03);for(const [_0x329eb4,_0x2fde8a]of _0xd74a9e['markers']){if(!_0x329eb4['startsWith']('revision:'))continue;const _0x318122=_0x329eb4['split'](':')[0x2];for(const _0x3dc840 of _0x2fde8a['getWalker']({'singleCharacters':!0x0})){const _0x425dd6=this['_getVidAttributeName'](_0x3dc840),_0xcaa733='elementEnd'==_0x3dc840['type']?_0x3dc840['previousPosition']['path']['slice'](0x0,-0x1):_0x3dc840['previousPosition']['path'],_0xe1e6ec=_0x102a03['getNodeByPath'](_0xcaa733)['getAttribute'](_0x425dd6);this['_touched']['set'](_0xe1e6ec,{'userId':_0x318122});}}}this['_startingRevisionId']=this['_revisionId'];const _0x491b4a=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x37f009=>!this['_touched']['has'](_0x37f009));let _0x30e343=0x0;const _0x21ab40=new Map();for(const _0x4cb49f in _0x4749f1['diffData']){const _0x2ea7b2=_0x4749f1['diffData'][_0x4cb49f]['attachChange'],_0x29a71c=_0xdf41fd(_0x4749f1['diffData'][_0x4cb49f]['attributesAfter'])||{},_0x29f2cd=this['_makeModelFromViewString'](_0x4749f1['diffData'][_0x4cb49f]['insertions']);_0x29f2cd['rootName']=_0x4cb49f,_0x29f2cd['_isAttached']=!_0x2ea7b2||_0x2ea7b2['isAttached'],_0x29f2cd['isAttached']=()=>_0x29f2cd['_isAttached'],this['_diffRoots']['set'](_0x4cb49f,_0x29f2cd),this['_diffRootsAttributes']['set'](_0x4cb49f,_0x29a71c);const _0x304df0=this['_makeIdsRoot'](_0x29f2cd,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x4cb49f,_0x304df0),_0x21ab40['set'](_0x4cb49f,_0x29f2cd['isAttached']()?_0x29a71c:{});for(const [_0x4c2a59,_0x1f2fcf]of _0x29f2cd['markers']){if(!_0x4c2a59['startsWith']('revision:'))continue;const _0x499cb3=_0x4c2a59['split'](':')[0x2];for(const _0x1c5f0f of _0x1f2fcf['getWalker']({'singleCharacters':!0x0})){const _0x3cb93b=this['_getVidAttributeName'](_0x1c5f0f),_0x35bbdc=this['_revisionId']++,_0x5be12b='elementEnd'==_0x1c5f0f['type']?_0x1c5f0f['previousPosition']['path']['slice'](0x0,-0x1):_0x1c5f0f['previousPosition']['path'];_0x304df0['getNodeByPath'](_0x5be12b)['_setAttribute'](_0x3cb93b,_0x35bbdc),this['_touched']['set'](_0x35bbdc,{'userId':_0x499cb3});}}for(const _0x5c6e74 of this['editor']['model']['createRangeIn'](_0x29f2cd)['getWalker']({'singleCharacters':!0x0})){const _0x1af194=this['_getVidAttributeName'](_0x5c6e74),_0x1c2815='elementEnd'==_0x5c6e74['type']?_0x5c6e74['previousPosition']['path']['slice'](0x0,-0x1):_0x5c6e74['previousPosition']['path'],_0x480739=_0x304df0['getNodeByPath'](_0x1c2815);_0x480739['getAttribute'](_0x1af194)>0x0||_0x480739['_setAttribute'](_0x1af194,_0x491b4a[_0x30e343++]);}for(const [_0x1b2bd1,_0x26d7d0]of _0x29f2cd['markers'])_0x1b2bd1['startsWith']('revision:')||this['_markers']['set'](_0x1b2bd1,_0x26d7d0);}const _0x1f7a7a=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x1f7a7a),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x1f7a7a,0x1));const _0x31b775=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x31b775),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x31b775,0x1));const _0x433f3e=Array['from'](this['_diffRoots'])['map'](([_0x32c7e2,_0x1cbd3d])=>[_0x32c7e2,T(_0x1cbd3d)]);this['_saveMetaData'](this['_lastTo'],_0x433f3e,this['_markers'],_0x21ab40);}['_makeModelFromViewString'](_0x3c2aef){const _0x507939=JSON['parse'](_0x3c2aef),_0x1e0e98=this['editor']['editing']['view']['document'],_0xbdea53=new _0x59b0c3(_0x1e0e98,_0x507939['map'](_0x3653d8=>P(_0x3653d8,this['editor'])));return this['editor']['data']['toModel'](_0xbdea53);}['_saveMetaData'](_0x350f50,_0x1cb057,_0x1fb0b6,_0x463c23){const _0x3173fe=new Map(_0x1cb057),_0x16fb54=new Map(_0xdf41fd(_0x463c23)),_0x16ee24=new Map();for(const [_0x1db9a4,_0x507258]of _0x1fb0b6)_0x16ee24['set'](_0x1db9a4,{'start':_0x507258['start']['clone'](),'end':_0x507258['end']['clone'](),'rootName':_0x507258['root']['rootName']});this['_savedMetaData']['set'](_0x350f50,{'roots':_0x3173fe,'markers':_0x16ee24,'rootsAttributes':_0x16fb54});}['_removeMetaData'](_0x2da856){this['_savedMetaData']['delete'](_0x2da856);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x5b32e3,_0x4c5bdd=null){let _0x3fdb05=null;_0x5b32e3['is']('documentFragment')||(_0x3fdb05=new ut(_0x5b32e3['name'],{'vid_start':null===_0x4c5bdd?this['_revisionId']++:_0x4c5bdd++}));const _0x3d3162=[];for(const _0x12f275 of _0x5b32e3['getChildren']())if(_0x12f275['is']('element')){_0x3d3162['push'](this['_makeIdsRoot'](_0x12f275,_0x4c5bdd));const _0x5319b4=_0x3d3162[_0x3d3162['length']-0x1];null!==_0x4c5bdd&&(_0x4c5bdd=_0x5319b4['is']('element','$text')?_0x5319b4['getAttribute']('vid')+0x1:_0x5319b4['getAttribute']('vid_end')+0x1);}else{for(let _0xc111d5=0x0;_0xc111d5<_0x12f275['offsetSize'];_0xc111d5++)_0x3d3162['push'](new ut('$text',{'vid':null===_0x4c5bdd?this['_revisionId']++:_0x4c5bdd++}));}if(_0x5b32e3['is']('documentFragment')){const _0x3bf8e7=F(_0x5b32e3['rootName']);return _0x3bf8e7['_insertChild'](0x0,_0x3d3162),_0x3bf8e7;}return _0x3fdb05['_setAttribute']('vid_end',null===_0x4c5bdd?this['_revisionId']++:_0x4c5bdd++),_0x3fdb05['_insertChild'](0x0,_0x3d3162),_0x3fdb05;}['_calculateMetaData'](_0x447cb3,_0x14ac25,_0x3af130){this['_reset']();const {roots:_0x2fa3fb,markers:_0x4d2278,rootsAttributes:_0x556eba}=this['_savedMetaData']['get'](_0x447cb3);this['_baseRoots']=new Map(_0x2fa3fb),this['_baseRootsAttributes']=new Map(_0xdf41fd(_0x556eba));for(const [_0xc8d1aa,_0x39468f]of this['_baseRoots'])if('$graveyard'!==_0xc8d1aa&&(this['_diffRoots']['set'](_0xc8d1aa,T(_0x39468f)),this['_diffRootsAttributes']=new Map(_0xdf41fd(_0x556eba)),_0x3af130)){const _0x80d99a=this['_revisionId'];this['_idsRoots']['set'](_0xc8d1aa,this['_makeIdsRoot'](_0x39468f)),this['_baseIdsRoots']['set'](_0xc8d1aa,this['_makeIdsRoot'](_0x39468f,_0x80d99a));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x3af130&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x117029,_0x532d7c]of _0x4d2278){const _0x2d6891=this['_baseRoots']['get'](_0x532d7c['rootName']),_0xc236dd=this['_diffRoots']['get'](_0x532d7c['rootName']),_0x48723c=new ft(this['_fixPosition'](_0x532d7c['start'],_0x2d6891),this['_fixPosition'](_0x532d7c['end'],_0x2d6891)),_0x5749ba=this['_fixRange'](_0x48723c,_0xc236dd);_0x2d6891['markers']['set'](_0x117029,_0x48723c),this['_markers']['set'](_0x117029,_0x5749ba);}this['_applyOperations'](_0x447cb3,_0x14ac25,_0x3af130);}['_applyOperations'](_0x5c718e,_0x1964c1,_0x306013){for(const _0xd0b15b of this['source']['getOperations'](_0x5c718e,_0x1964c1))this['_handleOperation'](_0xd0b15b,_0x306013);for(const _0x346659 of this['_diffRoots']['values']())_0x346659['markers']['clear']();for(const [_0x8875a7,_0x215c3c]of this['_markers']){this['_diffRoots']['get'](_0x215c3c['root']['rootName'])['markers']['set'](_0x8875a7,_0x215c3c['clone']());}const _0x32f19f=new Map(),_0x3faadb=new Map();for(const [_0x764845,_0x54ed79]of this['_diffRoots'])_0x32f19f['set'](_0x764845,T(_0x54ed79)),_0x3faadb['set'](_0x764845,this['_diffRootsAttributes']['get'](_0x764845));this['_saveMetaData'](_0x1964c1,_0x32f19f,this['_markers'],_0x3faadb);}['_getPreviousFrom'](_0x2815ce){const _0x16d276=Array['from'](this['_savedMetaData']['keys']());_0x16d276['sort']((_0x3610d3,_0x3f5bc3)=>_0x3610d3-_0x3f5bc3),_0x16d276['reverse']();for(const _0x8592dd of _0x16d276)if(_0x8592dd<_0x2815ce)return _0x8592dd;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x2b7768,_0x1ac27b){const _0x13d6fa=Array['from'](_0x1ac27b['markers'])['map'](([_0xa36181,_0x18c96b])=>[_0xa36181,this['_fixRange'](_0x18c96b,_0x2b7768)]);_0x2b7768['markers']=new Map(_0x13d6fa);}['_transformMarkers'](_0x12a518){for(const _0x36e998 of this['_markers']['values']()){const _0x57a33c=_0x36e998['getTransformedByOperation'](_0x12a518),_0x519290=ft['_createFromRanges'](_0x57a33c);_0x36e998['start']=_0x519290['start'],_0x36e998['end']=_0x519290['end'];}}['_handleOperation'](_0x508fab,_0x31e446){if('addRoot'!=_0x508fab['type']&&'detachRoot'!=_0x508fab['type']){if('insert'==_0x508fab['type']){const _0x2368c2=_0x508fab['position']['root']['rootName'];this['_diffRoots']['has'](_0x2368c2)||(this['_diffRoots']['set'](_0x2368c2,F(_0x2368c2,!0x0)),this['_diffRootsAttributes']['set'](_0x2368c2,{}),_0x31e446&&this['_idsRoots']['set'](_0x2368c2,F(_0x2368c2,!0x0)));}else{if('addRootAttribute'==_0x508fab['type']||'removeRootAttribute'==_0x508fab['type']||'changeRootAttribute'==_0x508fab['type'])return void this['_handleRootAttributeOperation'](_0x508fab);'marker'==_0x508fab['type']&&this['_handleMarkerOperation'](_0x508fab);}if('marker'!==_0x508fab['type']){const _0x42e001=this['_cloneOperation'](_0x508fab,this['_diffRoots']);_0x42e001['_execute'](),this['_transformMarkers'](_0x42e001);}if(_0x31e446)switch(_0x508fab['type']){case'insert':this['_handleInsertOperation'](_0x508fab);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x508fab);break;case'merge':this['_handleMergeOperation'](_0x508fab);break;case'split':this['_handleSplitOperation'](_0x508fab);}}else this['_handleRootOperation'](_0x508fab,_0x31e446);}['_cloneOperation'](_0x29eed4,_0x4dfe40){const _0x28ae46=_0x29eed4['clone']();return _0x28ae46['_authorId']=_0x29eed4['_authorId'],this['_fixOperation'](_0x28ae46,_0x4dfe40),_0x28ae46;}['_getBaseVids'](_0x5c5409){return _0x5c5409['map'](_0x1b36e3=>{const _0x20748d=this['_getVidAttributeName'](_0x1b36e3);return Number(_0x1b36e3['item']['getAttribute'](_0x20748d));});}['_generateTape'](_0x352e9a,_0x38ca9a){if(_0x352e9a['is']('element','$text'))_0x38ca9a['push']({'item':_0x352e9a,'type':'text'});else{_0x352e9a['is']('element')&&_0x38ca9a['push']({'item':_0x352e9a,'type':'elementStart'});for(const _0x54b592 of _0x352e9a['getChildren']())this['_generateTape'](_0x54b592,_0x38ca9a);_0x352e9a['is']('element')&&_0x38ca9a['push']({'item':_0x352e9a,'type':'elementEnd'});}return _0x38ca9a;}['_getState'](){const _0x1308e6=new Map(this['_touched']),_0x5687f7=new Map(_0x1308e6),_0x161ed9=new Map(),_0x4d6ac2={'insertions':{},'deletions':{}},_0x41f7c4={'insertions':{},'deletions':{}},_0x4b6aff=new Map(),_0x186be9=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x186be9['delete']('$graveyard');for(const _0x55d469 of _0x186be9){const _0xb058=this['_diffRoots']['get'](_0x55d469)||F(_0x55d469,!0x1),_0x4770a3=this['_baseRoots']['get'](_0x55d469)||F(_0x55d469,!0x1);_0xb058['isAttached']()||_0x4770a3['isAttached']()?(_0x4d6ac2['insertions'][_0x55d469]=T(_0xb058),_0x4d6ac2['deletions'][_0x55d469]=T(_0x4770a3),this['_copyMarkers'](_0x4d6ac2['deletions'][_0x55d469],_0x4770a3),this['_copyMarkers'](_0x4d6ac2['insertions'][_0x55d469],_0xb058),_0x41f7c4['insertions'][_0x55d469]=this['_generateTape'](this['_idsRoots']['get'](_0x55d469),[]),_0x41f7c4['deletions'][_0x55d469]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x55d469)||F(_0x55d469,!0x1),[])):_0x186be9['delete'](_0x55d469);}for(const _0x16eaed of _0x186be9){const _0x4efa3a=_0x41f7c4['insertions'][_0x16eaed];for(const _0x1f5ac4 of _0x4efa3a){const _0x49a5ee=this['_getVidAttributeName'](_0x1f5ac4),_0x279cec=_0x1f5ac4['item']['getAttribute'](_0x49a5ee);_0x5687f7['delete'](_0x279cec),_0x279cec>=this['_startingRevisionId']&&_0x161ed9['set'](_0x279cec,_0x1308e6['get'](_0x279cec));}}for(const _0x3bec12 of _0x186be9){const _0x4627d1=_0x41f7c4['insertions'][_0x3bec12],_0x238ec8=this['_getBaseVids'](_0x41f7c4['deletions'][_0x3bec12]);let _0x1eb7c9=0x0;for(const _0x3bbb1c of _0x4627d1){const _0x437736=this['_getVidAttributeName'](_0x3bbb1c),_0x9c263a=_0x3bbb1c['item']['getAttribute'](_0x437736);if(!_0x161ed9['has'](_0x9c263a)&&!_0x4b6aff['has'](_0x9c263a)){if(_0x5687f7['has'](_0x9c263a))_0x1eb7c9++;else{if(_0x9c263a!=_0x238ec8[_0x1eb7c9]){const _0x310e87=_0x1308e6['get'](_0x9c263a)||_0x1308e6['get'](_0x238ec8[_0x1eb7c9]);for(;_0x9c263a!=_0x238ec8[_0x1eb7c9];)_0x5687f7['has'](_0x238ec8[_0x1eb7c9])||(_0x4b6aff['set'](_0x238ec8[_0x1eb7c9],_0x310e87),_0x1308e6['set'](_0x238ec8[_0x1eb7c9],_0x310e87)),_0x1eb7c9++;}_0x1eb7c9++;}}}}for(const _0x1774d6 of _0x186be9){const _0x45e951=_0x41f7c4['insertions'][_0x1774d6];for(const _0x5bd9b8 of _0x45e951){const _0x322847=this['_getVidAttributeName'](_0x5bd9b8),_0x426208=_0x5bd9b8['item']['getAttribute'](_0x322847);if(_0x4b6aff['has'](_0x426208)){const _0x4db3b1=_0x4b6aff['get'](_0x426208);_0x5687f7['has'](_0x426208)||_0x5687f7['set'](_0x426208,{..._0x4db3b1}),_0x161ed9['set'](_0x426208,{..._0x4db3b1});}}}for(const _0x48bf04 of _0x5687f7['keys']())_0x48bf04>=this['_startingRevisionId']&&_0x5687f7['delete'](_0x48bf04);const _0x18fe8e=new Map();for(const _0x170a90 of _0x186be9){let _0x2bdd00=_0x41f7c4['insertions'][_0x170a90];for(const _0x5b6e66 of _0x2bdd00)if(_0x5b6e66['item']['is']('element','tableCell')){const _0x9dd76d=this['_getVidAttributeName'](_0x5b6e66),_0x5f33a8=_0x5b6e66['item']['getAttribute'](_0x9dd76d);if(_0x161ed9['has'](_0x5f33a8)){const _0xffc84d=_0x5b6e66['item']['parent']['parent']['getAttribute']('vid_start'),_0x33ec0b=_0x18fe8e['get'](_0xffc84d)||new Set();_0x33ec0b['add'](_0x161ed9['get'](_0x5f33a8)['userId']),_0x18fe8e['set'](_0xffc84d,_0x33ec0b);}}_0x2bdd00=_0x41f7c4['deletions'][_0x170a90];for(const _0x51d82e of _0x2bdd00)if(_0x51d82e['item']['is']('element','tableCell')){const _0x5bbf60=this['_getVidAttributeName'](_0x51d82e),_0x2d0a43=_0x51d82e['item']['getAttribute'](_0x5bbf60);if(_0x5687f7['has'](_0x2d0a43)){const _0x409b2a=_0x51d82e['item']['parent']['parent']['getAttribute']('vid_start'),_0x2eab13=_0x18fe8e['get'](_0x409b2a)||new Set();_0x2eab13['add'](_0x5687f7['get'](_0x2d0a43)['userId']),_0x18fe8e['set'](_0x409b2a,_0x2eab13);}}for(const _0x100dd2 of _0x18fe8e['keys']())(_0x161ed9['has'](_0x100dd2)||_0x5687f7['has'](_0x100dd2))&&_0x18fe8e['delete'](_0x100dd2);}for(const _0x40826c of _0x186be9){const _0x21640d=_0x41f7c4['insertions'][_0x40826c];let _0x4a7a70=null,_0x9a8744=null;for(const _0x508195 of _0x21640d){const _0x78c308=this['_getVidAttributeName'](_0x508195),_0x33f502=_0x508195['item']['getAttribute'](_0x78c308),_0x1adcaa=_0x18fe8e['get'](_0x33f502);_0x1adcaa&&'elementStart'==_0x508195['type']&&(_0x4a7a70=Array['from'](_0x1adcaa)[0x0],_0x9a8744=_0x508195['item']['getAttribute']('vid_end')),_0x4a7a70&&(_0x5687f7['set'](_0x33f502,{'userId':_0x4a7a70}),_0x161ed9['set'](_0x33f502,{'userId':_0x4a7a70})),_0x33f502==_0x9a8744&&(_0x4a7a70=null,_0x9a8744=null);}}const _0x1b3288={},_0x5bb195=new Set();for(const _0x76c525 of _0x186be9){const _0x4025f2=_0x4d6ac2['deletions'][_0x76c525],_0x4163c2=_0x4d6ac2['insertions'][_0x76c525];for(const {userId:_0x16015d}of this['_touchedMarkers']['values']())null!==_0x16015d&&_0x5bb195['add'](_0x16015d);for(const {userId:_0x9d6a6}of this['_touchedRoots']['values']())null!==_0x9d6a6&&_0x5bb195['add'](_0x9d6a6);this['_markChanges'](_0x4163c2,_0x41f7c4['insertions'][_0x76c525],_0x161ed9,'insertion',_0x5bb195),this['_markChanges'](_0x4025f2,_0x41f7c4['deletions'][_0x76c525],_0x5687f7,'deletion',_0x5bb195),_0x1b3288[_0x76c525]={'insertions':this['_prepareViewToSave'](_0x4163c2),'deletions':this['_prepareViewToSave'](_0x4025f2),'attachChange':this['_touchedRoots']['get'](_0x76c525)||null,'attributesBefore':_0xdf41fd(this['_baseRootsAttributes']['get'](_0x76c525))||{},'attributesAfter':_0xdf41fd(this['_diffRootsAttributes']['get'](_0x76c525))};}return{'diffData':_0x1b3288,'authorsIds':Array['from'](_0x5bb195)};}['_processRootBeforeSave'](_0x4e0bf2){for(const [,_0x5a70d0]of _0x4e0bf2['markers']){const _0x2c66b5=_0x5a70d0['start']['getAncestors']()['filter'](_0x20682c=>'tableCell'==_0x20682c['name']);for(const _0x54acf4 of _0x2c66b5)0x1==_0x54acf4['childCount']&&_0x54acf4['getChild'](0x0)['is']('element','paragraph')&&_0x54acf4['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x1d981d){this['_processRootBeforeSave'](_0x1d981d);const _0x3ba9d7=this['editor']['data']['toView'](_0x1d981d,{}),_0x169176=Array['from'](_0x3ba9d7['getChildren']())['map'](_0x2a4146=>this['_getViewJson'](_0x2a4146));return JSON['stringify'](_0x169176);}['_getViewJson'](_0xa6f567){if(_0xa6f567['is']('$text'))return _0xa6f567['data'];{const _0x4831c4=_0xa6f567;return{'type':Object['keys'](E)['find'](_0x486451=>_0xa6f567 instanceof E[_0x486451]),'name':_0x4831c4['name'],'attributes':Array['from'](_0x4831c4['getAttributes']()),'children':Array['from'](_0x4831c4['getChildren']())['map'](_0x44ac91=>this['_getViewJson'](_0x44ac91))};}}['_markChanges'](_0xb9a3d7,_0x40d6c9,_0x230d7c,_0x49ebd0,_0x4176bd){let _0x35859c=null,_0x393c9c=null,_0x134bfe=0x0;const _0x291f96=this['editor']['model'];for(let _0x2f9366=0x0;_0x2f9366<_0x40d6c9['length'];_0x2f9366++){const _0x237c04=this['_getVidAttributeName'](_0x40d6c9[_0x2f9366]),_0x522c04=_0x40d6c9[_0x2f9366]['item']['getAttribute'](_0x237c04),_0x1a14c6=_0x230d7c['get'](_0x522c04),_0x4bba09=_0x2f9366==_0x40d6c9['length']-0x1;(!_0x35859c&&_0x1a14c6&&(_0x35859c=_0x1a14c6,_0x393c9c=_0x40d6c9[_0x2f9366]),_0x35859c&&(!_0x1a14c6||_0x1a14c6['userId']!=_0x35859c['userId']))&&(_0x241f32(_0x1a14c6,B(_0x393c9c,_0xb9a3d7,_0x291f96),B(_0x40d6c9[_0x2f9366],_0xb9a3d7,_0x291f96)),_0x35859c=_0x1a14c6||null,_0x393c9c=_0x1a14c6?_0x40d6c9[_0x2f9366]:null),_0x35859c&&_0x4bba09&&_0x241f32(_0x1a14c6,B(_0x393c9c,_0xb9a3d7,_0x291f96),J(_0x40d6c9[_0x2f9366],_0xb9a3d7,_0x291f96));}function _0x241f32(_0x3e35c3,_0x3e306f,_0x5a93d9){const _0x4b9811=_0x35859c['userId'],_0xec61a='revision:'+_0x49ebd0+':'+_0x4b9811+':'+_0x134bfe++,_0x4cb78f=_0x291f96['createRange'](_0x3e306f,_0x5a93d9);_0xb9a3d7['markers']['set'](_0xec61a,_0x4cb78f),null!==_0x4b9811&&_0x4176bd['add'](_0x4b9811);}}['_getVidAttributeName'](_0x9a7757){switch(_0x9a7757['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x23729d,_0x50534e){_0x23729d['baseVersion']=null;for(const _0x5aab31 in _0x23729d){const _0x52bda2=_0x23729d[_0x5aab31];if(_0x52bda2 instanceof vt){const _0x2ee9f0=_0x50534e['get'](_0x52bda2['root']['rootName']);_0x23729d[_0x5aab31]=this['_fixPosition'](_0x52bda2,_0x2ee9f0);}if(_0x52bda2 instanceof ft){const _0x122277=_0x50534e['get'](_0x52bda2['root']['rootName']);_0x23729d[_0x5aab31]=this['_fixRange'](_0x52bda2,_0x122277);}'root'===_0x5aab31&&(_0x23729d['root']=_0x50534e['get'](_0x23729d['root']['rootName']));}}['_fixRange'](_0x1084ee,_0xbfbdcd){return this['editor']['model']['createRange'](this['_fixPosition'](_0x1084ee['start'],_0xbfbdcd),this['_fixPosition'](_0x1084ee['end'],_0xbfbdcd));}['_fixPosition'](_0x1004bf,_0x2e99a3){return this['editor']['model']['createPositionFromPath'](_0x2e99a3,_0x1004bf['path'],_0x1004bf['stickiness']);}['_handleInsertOperation'](_0xfbbaa3){const _0x393309=this['_idsRoots']['get'](_0xfbbaa3['position']['root']['rootName']),_0x21b850=this['_fixPosition'](_0xfbbaa3['position'],_0x393309),_0x3d0cef=null===_0xfbbaa3['_authorId']?null:_0xfbbaa3['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x6a4f77=_0x21b850['parent'],_0x10c05a=this['_revisionId'],_0x38b3e7=[];for(const _0x227484 of _0xfbbaa3['nodes'])if(_0x227484['is']('element'))_0x38b3e7['push'](this['_makeIdsRoot'](_0x227484));else{for(let _0x57012f=0x0;_0x57012f<_0x227484['offsetSize'];_0x57012f++)_0x38b3e7['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x1f5dfb=this['_revisionId'];for(let _0x53018b=_0x10c05a;_0x53018b<_0x1f5dfb;_0x53018b++)this['_touched']['set'](_0x53018b,{'userId':_0x3d0cef});_0x6a4f77['_insertChild'](_0x21b850['offset'],_0x38b3e7);}['_handleMoveOperation'](_0x23874c){(_0x23874c=this['_cloneOperation'](_0x23874c,this['_idsRoots']))['_execute']();const _0x17e4c1=null===_0x23874c['_authorId']?null:_0x23874c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3f9119=_0x23874c['getMovedRangeStart'](),_0x585071=_0x3f9119['parent'],_0x96ed79=_0x3f9119['offset'];!function _0x480a94(_0x1ed54e,_0xc3f24e,_0x25b23c,_0x15312c){for(let _0x246ef0=_0x25b23c;_0x246ef0<_0x15312c;_0x246ef0++){const _0x32e5d5=_0xc3f24e['getChild'](_0x246ef0);_0x32e5d5['is']('element','$text')?_0x1ed54e['set'](_0x32e5d5['getAttribute']('vid'),{'userId':_0x17e4c1}):(_0x1ed54e['set'](_0x32e5d5['getAttribute']('vid_start'),{'userId':_0x17e4c1}),_0x480a94(_0x1ed54e,_0x32e5d5,0x0,_0x32e5d5['childCount']),_0x1ed54e['set'](_0x32e5d5['getAttribute']('vid_end'),{'userId':_0x17e4c1}));}}(this['_touched'],_0x585071,_0x96ed79,_0x96ed79+_0x23874c['howMany']);}['_handleMergeOperation'](_0x473a64){const _0x29332a=null===(_0x473a64=this['_cloneOperation'](_0x473a64,this['_idsRoots']))['_authorId']?null:_0x473a64['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x46a935=_0x473a64['targetPosition']['parent'],_0x459b6a=_0x473a64['sourcePosition']['parent'],_0x1a425d=_0x46a935['getAttribute']('vid_end'),_0x13bca4=_0x459b6a['getAttribute']('vid_start');_0x46a935['_setAttribute']('vid_end',_0x459b6a['getAttribute']('vid_end')),_0x459b6a['_setAttribute']('vid_end',_0x1a425d),this['_touched']['set'](_0x13bca4,{'userId':_0x29332a}),this['_touched']['set'](_0x1a425d,{'userId':_0x29332a}),_0x473a64['_execute']();}['_handleSplitOperation'](_0x569064){const _0x47f5fc=null===(_0x569064=this['_cloneOperation'](_0x569064,this['_idsRoots']))['_authorId']?null:_0x569064['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5eff85=_0x569064['graveyardPosition'],_0x1eb84b=_0x569064['splitPosition']['parent'];_0x569064['_execute']();const _0x1716f3=_0x1eb84b['getAttribute']('vid_end'),_0xd672dd=_0x569064['insertionPosition']['nodeAfter'];if(_0x5eff85){const _0x42a74a=_0xd672dd['getAttribute']('vid_end'),_0x30035d=_0x1eb84b['getAttribute']('vid_end');_0x1eb84b['_setAttribute']('vid_end',_0x42a74a),_0xd672dd['_setAttribute']('vid_end',_0x30035d),this['_touched']['set'](_0x1eb84b['getAttribute']('vid_end'),{'userId':_0x47f5fc}),this['_touched']['set'](_0xd672dd['getAttribute']('vid_start'),{'userId':_0x47f5fc});}else{const _0x145f52=this['_revisionId']++,_0xbf7e42=this['_revisionId']++;_0x1eb84b['_setAttribute']('vid_end',_0x145f52),_0xd672dd['_setAttribute']('vid_start',_0xbf7e42),_0xd672dd['_setAttribute']('vid_end',_0x1716f3),this['_touched']['set'](_0x145f52,{'userId':_0x47f5fc}),this['_touched']['set'](_0xbf7e42,{'userId':_0x47f5fc});}}['_handleMarkerOperation'](_0x2e0731){if(!_0x2e0731['affectsData'])return;const _0x117b6e=(_0x2e0731=this['_cloneOperation'](_0x2e0731,this['_diffRoots']))['oldRange']?_0x2e0731['oldRange']['root']:null,_0x1c0e93=_0x2e0731['newRange']?_0x2e0731['newRange']['root']:null;_0x117b6e&&this['_markers']['delete'](_0x2e0731['name']),_0x1c0e93&&this['_markers']['set'](_0x2e0731['name'],_0x2e0731['newRange']['clone']());const _0x5e4a50=null===_0x2e0731['_authorId']?null:_0x2e0731['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x22befd=_0x2e0731['name'];if(!this['_touchedMarkers']['has'](_0x22befd))return void this['_touchedMarkers']['set'](_0x22befd,{'range':_0x2e0731['oldRange'],'userId':_0x5e4a50});const _0x237e2a=this['_touchedMarkers']['get'](_0x22befd),_0x2a2f42=_0x237e2a['range'],_0x45b6e2=_0x2e0731['newRange'];null==_0x2a2f42&&null==_0x45b6e2||_0x2a2f42&&_0x45b6e2&&_0x2a2f42['isEqual'](_0x45b6e2)?this['_touchedMarkers']['delete'](_0x2e0731['name']):_0x237e2a['userId']=_0x5e4a50;}['_handleRootOperation'](_0x349e4b,_0x24b6e8){this['_diffRoots']['has'](_0x349e4b['rootName'])?this['_diffRoots']['get'](_0x349e4b['rootName'])['_isAttached']=_0x349e4b['isAdd']:(this['_diffRoots']['set'](_0x349e4b['rootName'],F(_0x349e4b['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x349e4b['rootName'],{}),_0x24b6e8&&this['_idsRoots']['set'](_0x349e4b['rootName'],F(_0x349e4b['rootName'],!0x0)));const _0x2475eb=null===_0x349e4b['_authorId']?null:_0x349e4b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3a77b6=this['_touchedRoots']['get'](_0x349e4b['rootName']);_0x3a77b6&&_0x3a77b6['userId']===_0x2475eb?this['_touchedRoots']['delete'](_0x349e4b['rootName']):this['_touchedRoots']['set'](_0x349e4b['rootName'],{'userId':_0x2475eb,'isAttached':_0x349e4b['isAdd']});}['_handleRootAttributeOperation'](_0x5e635a){const _0x532b7c=this['_diffRootsAttributes']['get'](_0x5e635a['root']['rootName']);null===_0x5e635a['newValue']?delete _0x532b7c[_0x5e635a['key']]:_0x532b7c[_0x5e635a['key']]=_0x5e635a['newValue'];}}function T(_0xae8ae7){const _0x3fe8e8=F(_0xae8ae7['rootName'],_0xae8ae7['isAttached']());for(const _0x1c089d of _0xae8ae7['getChildren']()){const _0x31a28b=_0x1c089d['_clone'](!0x0);_0x3fe8e8['_appendChild'](_0x31a28b);}return _0x3fe8e8;}function F(_0x3aaeff,_0x158a82=!0x0){const _0x46ab4f=new gt();return _0x46ab4f['rootName']=_0x3aaeff,_0x46ab4f['_isAttached']=_0x158a82,_0x46ab4f['isAttached']=()=>_0x46ab4f['_isAttached'],_0x46ab4f;}function B(_0x571047,_0x325fd8,_0x183f57){const _0x542ff2='elementEnd'==_0x571047['type']?_0x183f57['createPositionAt'](_0x571047['item'],'end'):_0x183f57['createPositionBefore'](_0x571047['item']);return _0x183f57['createPositionFromPath'](_0x325fd8,_0x542ff2['path'],_0x542ff2['stickiness']);}function J(_0x506951,_0x2f1c2f,_0x3153d4){const _0x293173='elementStart'==_0x506951['type']?_0x3153d4['createPositionAt'](_0x506951['item'],0x0):_0x3153d4['createPositionAfter'](_0x506951['item']);return _0x3153d4['createPositionFromPath'](_0x2f1c2f,_0x293173['path'],_0x293173['stickiness']);}class hs extends _0x3e8a1e{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x5dbb9e,_0x55c391){super(_0x5dbb9e),this['focusTracker']=new _0x7e8244(),this['keystrokes']=new _0x2bed09(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x55c391),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),ts(this);}['render'](){super['render'](),_0x1b8822({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x2b0837=_0x208bc5=>_0x208bc5['stopPropagation']();this['keystrokes']['set']('arrowright',_0x2b0837),this['keystrokes']['set']('arrowleft',_0x2b0837),this['keystrokes']['set']('arrowup',_0x2b0837),this['keystrokes']['set']('arrowdown',_0x2b0837);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x34a06f){this['revisionNameInputView']['fieldView']['element']['value']=_0x34a06f['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0xe4bc8d){const _0x394a3d=new at(this['locale'],ti),_0x50d8c2=_0x394a3d['fieldView'];_0x50d8c2['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x530024=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0xe4bc8d&&(_0x530024+='\x20('+m(this['locale'],'optional')+')'),(_0x394a3d['label']=_0x530024,_0x50d8c2['on']('input',()=>{this['revisionNameInputValue']=_0x50d8c2['element']['value']['trim']();}),_0x394a3d);}}class f extends _0x10397b{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x1b6243=this['editor'],_0x5f0a59=_0x1b6243['plugins']['get']('RevisionTracker');_0x1b6243['ui']['componentFactory']['add']('revisionHistory',_0x39444e=>{const _0x251766=_0xa0cca7(_0x39444e),_0x1a0fc5=_0x251766['panelView']['children'],_0x58cc7d=new _0x2bdcf4(_0x39444e),_0x4bf519=new te(_0x39444e),_0x5a3173=new _0x7c7548(_0x39444e),_0x47ba91=new te(_0x39444e),_0x13e89f=new _0x7c7548(_0x39444e);return _0x251766['bind']('isEnabled')['to'](_0x5f0a59,'isReady',_0x5f0a59,'isEnabled',_0x1b6243,'isReadOnly',(_0x3cb71f,_0xed5eab,_0x1a2cf4)=>_0x3cb71f&&_0xed5eab&&!_0x1a2cf4),_0x251766['buttonView']['set']({'icon':_0x280652,'label':m(_0x39444e,'Revision\x20history'),'tooltip':!0x0}),_0x5a3173['set']({'label':m(_0x39444e,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x5a3173['bind']('isEnabled')['to'](_0x5f0a59,'isReady',_0x5f0a59,'isEnabled',_0x1b6243,'isReadOnly',(_0x568317,_0x21d0c4,_0x8e4c2f)=>_0x568317&&_0x21d0c4&&!_0x8e4c2f),_0x5a3173['on']('execute',()=>this['_showDialog']()),_0x13e89f['set']({'label':m(_0x39444e,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x13e89f['bind']('isEnabled')['to'](_0x5f0a59,'isReady',_0x1b6243,'isReadOnly',(_0x554538,_0x340887)=>_0x554538&&!_0x340887),_0x13e89f['on']('execute',()=>{_0x1b6243['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x251766['isOpen']=!0x1,_0x1b6243['editing']['view']['focus']();}),_0x4bf519['children']['add'](_0x5a3173),_0x47ba91['children']['add'](_0x13e89f),_0x58cc7d['role']='menu',_0x58cc7d['items']['addMany']([_0x4bf519,_0x47ba91]),_0x1a0fc5['add'](_0x58cc7d),_0x251766;}),_0x1b6243['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x4a42b4=this['editor'],_0x24f29c=_0x4a42b4['locale'],_0x1ea285=new _0x553786(_0x24f29c),_0x3017ac=new _0x589da2(_0x24f29c);_0x1ea285['buttonView']['set']({'icon':_0x280652,'label':m(_0x24f29c,'Revision\x20history')});const _0x6b1886=new _0x1f129e(_0x24f29c,_0x1ea285),_0x42b495=new _0x36144b(_0x24f29c);_0x42b495['set']({'label':m(_0x24f29c,'Save\x20current\x20revision')}),_0x42b495['delegate']('execute')['to'](_0x1ea285),_0x42b495['on']('execute',()=>{this['_showDialog']();}),_0x6b1886['children']['add'](_0x42b495),_0x3017ac['items']['add'](_0x6b1886);const _0xb50b2b=new _0x1f129e(_0x24f29c,_0x1ea285),_0x15722b=new _0x36144b(_0x24f29c);return _0x15722b['set']({'label':m(_0x24f29c,'Open\x20revision\x20history')}),_0x15722b['delegate']('execute')['to'](_0x1ea285),_0x15722b['on']('execute',()=>{_0x4a42b4['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0xb50b2b['children']['add'](_0x15722b),_0x3017ac['items']['add'](_0xb50b2b),_0x1ea285['panelView']['children']['add'](_0x3017ac),_0x1ea285;}['_showDialog'](){const _0xe58e1c=this['editor'],_0xa45cc7=_0xe58e1c['locale'],_0x25bf97=_0xe58e1c['plugins']['get']('Dialog'),_0x3692fe=_0xe58e1c['plugins']['get']('RevisionTracker');function _0x446728(_0x3d7b56){_0xe58e1c['config']['get']('revisionHistory.requireRevisionName')&&''===_0x3d7b56['revisionName']?_0x3d7b56['revisionNameInputView']['errorText']=m(_0xa45cc7,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0xe58e1c['plugins']['get'](u)['saveRevision']({'name':_0x3d7b56['revisionName']}),_0x25bf97['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x446728(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x25bf97['show']({'id':'revisionSave','title':m(_0xa45cc7,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0xe58e1c['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x25bf97['hide']()},{'label':m(_0xe58e1c['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x149a18){_0x149a18['bind']('isEnabled')['to'](_0x3692fe,'isReady',_0x3692fe,'isEnabled',_0xe58e1c,'isReadOnly',(_0x143d5c,_0x3e85a2,_0x4088ff)=>_0x143d5c&&_0x3e85a2&&!_0x4088ff);},'onExecute':()=>_0x446728(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x2a2c06=this['editor'],_0x8df399=_0x2a2c06['locale'];this['_saveRevisionFormView']=new hs(_0x8df399,_0x2a2c06['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0x3e8a1e{['changeId'];['_model'];constructor(_0x441ced,_0x5309b7){super(_0x441ced),this['_model']=_0x5309b7,this['changeId']=_0x5309b7['id'];const _0xcab71b=this['bindTemplate'],_0x3e8c77=m(_0x441ced,_0x5309b7['data']['isSuggestion']?'Suggested\x20by':'add'==_0x5309b7['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x5309b7['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0xcab71b['to']('type',_0x54c5d0=>'ck-revision-change__'+_0x54c5d0)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x3e8c77}]},{'text':'\x20'+_0x5309b7['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0xa6e597(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x3ab32c){super(),this['id']=_0x3ab32c['id']||_0x52a2cf(),this['author']=_0x3ab32c['author'],this['type']=_0x3ab32c['type'],this['data']=_0x3ab32c['data']||{},this['rootName']=_0x3ab32c['rootName'],this['set']('createdAt',_0x3ab32c['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(_0x26c45c,_0x2323fa){this['newRevisionId']=_0x26c45c,this['oldRevisionId']=_0x2323fa,this['changes']=new _0x48b870();}['_setChanges'](_0x2ddc46){for(const _0x43f372 of _0x2ddc46)this['changes']['add'](_0x43f372);}}const Y={'c':_0x5e1b58,'a':_0x12038a,'e':_0x1d7d9c,'r':_0x3d604,'u':_0x208efc};class d extends _0x10397b{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x40c605,_0x4f96fd,j];}constructor(_0xe74b9d){super(_0xe74b9d),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x476a7e,_0x37c6fe,_0x5e0671)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x315bd2=>{for(const _0x2d9873 of this['editor']['editing']['view']['document']['roots'])_0x5e0671?_0x315bd2['removeClass']('ck-editor__editable__overlay',_0x2d9873):_0x315bd2['addClass']('ck-editor__editable__overlay',_0x2d9873);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x5b840b=>null!==_0x5b840b),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x14d5f7,_0x43cc35,_0x3383c8)=>_0x14d5f7&&_0x3383c8?_0x43cc35['changes']['getIndex'](_0x3383c8):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x50cd33,_0x1f08a8)=>_0x50cd33?_0x1f08a8['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x4f96fd);}['init'](){const _0x11ad0c=this['editor'],_0x3b613b=new yt(_0x11ad0c,{'direction':'backward'}),_0x275aac=new yt(_0x11ad0c,{'direction':'forward'});(_0x11ad0c['commands']['add']('showPreviousChange',_0x3b613b),_0x11ad0c['commands']['add']('showNextChange',_0x275aac),_0x11ad0c['commands']['add']('restoreRevision',new _t(_0x11ad0c)),this['on']('change:numberOfChanges',()=>{_0x3b613b['refresh'](),_0x275aac['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x11ad0c['enableReadOnlyMode']('revision-viewer'),_0x11ad0c['plugins']['has']('WidgetToolbarRepository'))&&_0x11ad0c['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x569ab2){await this['loadRevisionData'](_0x569ab2);const _0x415c79={};for(const _0x4c3294 in _0x569ab2['diffData']){if(_0x569ab2['diffData'][_0x4c3294]['attachChange']&&!_0x569ab2['diffData'][_0x4c3294]['attachChange']['isAttached'])continue;const _0x5ad68a=this['_removeRevisionMarkers'](JSON['parse'](_0x569ab2['diffData'][_0x4c3294]['insertions'])),_0x11a977=this['editor']['editing']['view']['document'],_0x3cc706=new _0x59b0c3(_0x11a977,_0x5ad68a['map'](_0x596eab=>this['_getViewObj'](_0x596eab)));this['editor']['data']['processor']['useFillerType']('marked'),_0x415c79[_0x4c3294]=this['editor']['data']['processor']['toData'](_0x3cc706),this['editor']['data']['processor']['useFillerType']('default');}return _0x415c79;}async['getRevisionRootsAttributes'](_0x36a001){await this['loadRevisionData'](_0x36a001);const _0x11f29c={};for(const _0x298cdd in _0x36a001['diffData'])_0x36a001['diffData'][_0x298cdd]['attachChange']&&!_0x36a001['diffData'][_0x298cdd]['attachChange']['isAttached']||(_0x11f29c[_0x298cdd]=_0x36a001['diffData'][_0x298cdd]['attributesAfter']||{});return _0x11f29c;}['_removeRevisionMarkers'](_0x3f52d8){return(_0x3f52d8=_0x3f52d8['filter'](_0x2c027d=>!_0x2c027d['name']||'revision-start'!==_0x2c027d['name']&&'revision-end'!==_0x2c027d['name']))['forEach'](_0x3bda90=>{'string'!=typeof _0x3bda90&&(_0x3bda90['children']=this['_removeRevisionMarkers'](_0x3bda90['children']),_0x3bda90['attributes']=_0x3bda90['attributes']['filter'](_0x3b624d=>!_0x3b624d[0x0]['startsWith']('data-revision-')));}),_0x3f52d8;}async['compare'](_0x53d3ca,_0x2337e6,_0x45bbe2=!0x1){if(!this['isEnabled'])return;const _0x1147ba=this['diff'],_0x2b896a=this['repository'],_0x4c09d6='string'==typeof _0x53d3ca?_0x2b896a['getRevision'](_0x53d3ca):_0x53d3ca,_0x1ff482='string'==typeof _0x2337e6?_0x2b896a['getRevision'](_0x2337e6):_0x2337e6,_0x301491=_0x4c09d6['id'],_0x45adde=_0x1ff482?_0x1ff482['id']:null;if(!_0x45bbe2&&this['diff']&&this['diff']['newRevisionId']===_0x301491&&this['diff']['oldRevisionId']===_0x45adde)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x301491,_0x45adde);const _0x3aa423=this['_getRevisionsRange'](_0x4c09d6,_0x1ff482,!0x0)['map'](_0x23092c=>this['loadRevisionData'](_0x23092c));return _0x3aa423['push'](new Promise(_0x45f390=>{setTimeout(_0x45f390,0x14);})),Promise['all'](_0x3aa423)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x45b480=this['_getDiff'](_0x301491,_0x45adde);for(const _0x23fea2 of _0x45b480['changes'])this['_changeIdToChange']['set'](_0x23fea2['id'],_0x23fea2);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x316c6d=>{for(const _0x164807 of this['editor']['model']['document']['getRootNames']())_0x316c6d['detachRoot'](_0x164807);for(const _0x59427e of Object['keys'](_0x45b480['model'])){const _0x115b68=_0x316c6d['addRoot'](_0x59427e);for(const _0x394d12 of Object['keys'](_0x45b480['attributes'][_0x59427e]))_0x316c6d['setAttribute'](_0x394d12,_0x45b480['attributes'][_0x59427e][_0x394d12],_0x115b68);_0x316c6d['insert'](_0x45b480['model'][_0x59427e],_0x115b68,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x45b480['changes'])),this['isReady']=!0x0;})['catch'](_0x416910=>{console['error'](_0x416910),this['_cleanUp'](),_0x1147ba&&(this['diff']=_0x1147ba),this['isReady']=!0x0;});}['addRevisionData'](_0x429c7e,_0x93572e){const _0x737c89=this['repository']['createRevision'](_0x429c7e);return _0x737c89['on']('_update',(_0x435d49,_0x6de8a2,_0x212335)=>_0x93572e(_0x6de8a2,_0x212335,_0x737c89)),this['repository']['addRevision'](_0x737c89),_0x737c89;}['loadRevisionData'](_0x4cc8fc){if(!_0x4cc8fc||_0x4cc8fc['diffData'])return Promise['resolve']();{const _0xb64926=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0xb64926,'revisionId':_0x4cc8fc['id']})['then'](_0x329e8f=>{_0x4cc8fc['_update']({'diffData':_0x329e8f['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x590283=>{for(const _0x45787d of this['editor']['model']['document']['getRootNames']())_0x590283['detachRoot'](_0x45787d);});}['_sortAndFilterDiffChanges'](_0xa8c56){const _0xa77c04=[],_0x3e45d1=new Map();for(const _0x1c1eee of this['editor']['model']['document']['getRootNames']()){const _0xa59292=this['editor']['editing']['view']['getDomRoot'](_0x1c1eee);if(!_0xa59292)continue;const _0x23060c=_0xa59292['getClientRects']()['item'](0x0);_0x23060c&&(_0xa77c04['push'](_0x1c1eee),_0x3e45d1['set'](_0x1c1eee,_0x23060c));}return _0xa77c04['sort']((_0x5b9ad8,_0x11e6be)=>{const _0x39191d=_0x3e45d1['get'](_0x5b9ad8),_0xb71145=_0x3e45d1['get'](_0x11e6be);return _0x39191d['y']-_0xb71145['y']||_0x39191d['x']-_0xb71145['x'];}),(_0xa8c56=_0xa8c56['filter'](_0x187744=>_0xa77c04['includes'](_0x187744['rootName'])))['sort']((_0x20cf94,_0x53ede9)=>_0xa77c04['indexOf'](_0x20cf94['rootName'])-_0xa77c04['indexOf'](_0x53ede9['rootName'])),_0xa8c56;}['_makeTape'](_0x3aea3c){const _0x301339=Array['from'](_0x3aea3c['markers'])['filter'](([_0x5ed61b,_0x28e43e])=>_0x5ed61b['startsWith']('revision:')&&!_0x28e43e['isCollapsed']),_0x56f5dd=Array['from'](this['editor']['model']['createRangeIn'](_0x3aea3c)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x301339['length'])for(const _0x3bfe85 of _0x56f5dd){const [_0x3f208e,_0x2fb6f0]=_0x301339[0x0],[,_0x39eba4,_0xa7bcf4]=_0x3f208e['split'](':');if(_0x2fb6f0['end']['isEqual'](_0x3bfe85['nextPosition'])&&_0x301339['shift'](),(_0x3bfe85['previousPosition']['isEqual'](_0x2fb6f0['start'])||_0x3bfe85['previousPosition']['isAfter'](_0x2fb6f0['start']))&&('insertion'==_0x39eba4?_0x3bfe85['isAdded']={'userId':_0xa7bcf4}:'deletion'==_0x39eba4&&(_0x3bfe85['isRemoved']={'userId':_0xa7bcf4})),0x0==_0x301339['length'])break;}return _0x56f5dd;}['_refreshStartEndIndex'](_0xebaf19){const _0x2f65e8=new Map();for(let _0xee1326=0x0;_0xee1326<_0xebaf19['length'];_0xee1326++)'text'===_0xebaf19[_0xee1326]['type']?(_0xebaf19[_0xee1326]['item']['startIndex']=_0xee1326,_0xebaf19[_0xee1326]['item']['endIndex']=_0xee1326):('elementStart'===_0xebaf19[_0xee1326]['type']?_0xebaf19[_0xee1326]['item']['startIndex']=_0xee1326:'elementEnd'===_0xebaf19[_0xee1326]['type']&&(_0xebaf19[_0xee1326]['item']['endIndex']=_0xee1326),_0x2f65e8['set'](_0xebaf19[_0xee1326]['id'],_0xee1326));for(const _0x469259 of _0x2f65e8['values']())'elementStart'===_0xebaf19[_0x469259]['type']?_0xebaf19[_0x469259]['item']['endIndex']=_0x2f65e8['get'](_0xebaf19[_0x469259]['pairId']):'elementEnd'===_0xebaf19[_0x469259]['type']&&(_0xebaf19[_0x469259]['item']['startIndex']=_0x2f65e8['get'](_0xebaf19[_0x469259]['pairId']));}['_processTape'](_0x549a9d){for(let _0x737c52=0x0;_0x737c52<_0x549a9d['length'];_0x737c52++){if('elementStart'===_0x549a9d[_0x737c52]['type'])_0x549a9d[_0x737c52]['item']['startIndex']=_0x737c52;else{if('elementEnd'===_0x549a9d[_0x737c52]['type']){_0x549a9d[_0x737c52]['item']['endIndex']=_0x737c52;const _0x448d48=_0x549a9d[_0x737c52]['item']['startIndex'];_0x549a9d[_0x448d48]['pairId']=_0x549a9d[_0x737c52]['id'],_0x549a9d[_0x737c52]['pairId']=_0x549a9d[_0x448d48]['id'];}else _0x549a9d[_0x737c52]['item']['startIndex']=_0x737c52,_0x549a9d[_0x737c52]['item']['endIndex']=_0x737c52,_0x549a9d[_0x737c52]['pairId']=null;}_0x549a9d[_0x737c52]['markersStart']||(_0x549a9d[_0x737c52]['markersStart']=[],_0x549a9d[_0x737c52]['markersEnd']=[]);}}['_markInsertions'](_0x1513a3,_0x1faa56){const _0x49dc47=_0x1513a3['filter'](_0x48c820=>!_0x48c820['isAdded']);for(let _0xfb5c02=0x0;_0xfb5c02<_0x1faa56['length'];_0xfb5c02++)_0x1faa56[_0xfb5c02]['isAdded']&&(_0x49dc47[_0xfb5c02]['isAdded']=_0x1faa56[_0xfb5c02]['isAdded']);}['_makeModelFromViewString'](_0x4a2ce5){const _0x287c13=JSON['parse'](_0x4a2ce5),_0x227cbe=this['editor']['editing']['view']['document'],_0x4a6831=new _0x59b0c3(_0x227cbe,_0x287c13['map'](_0x20d4e5=>this['_getViewObj'](_0x20d4e5)));return this['editor']['data']['toModel'](_0x4a6831);}['_getViewObj'](_0x5a2e1c){const _0x19ca10=this['editor']['editing']['view']['document'];if('string'==typeof _0x5a2e1c)return new _0x24f203(_0x19ca10,_0x5a2e1c);{const _0x3bd83c=_0x5a2e1c['children']['map'](_0x1c9ea0=>this['_getViewObj'](_0x1c9ea0));return new(Y[_0x5a2e1c['type']]||_0x5a82c8)(_0x19ca10,_0x5a2e1c['name'],_0x5a2e1c['attributes'],_0x3bd83c);}}['_getDiff'](_0x117ada,_0x50af60=null){const _0x28d4fb=this['repository']['getRevision'](_0x117ada),_0x1b19a2=_0x50af60?this['repository']['getRevision'](_0x50af60):null,_0x468e60=this['_getRevisionsRange'](_0x28d4fb,_0x1b19a2),_0x2bef81=_0x468e60[_0x468e60['length']-0x1],_0x35cfa3=new Map(),_0x141046={'model':{},'attributes':{},'changes':[]},_0x1189c7=new Set(),_0x3d142a=new Map();for(let _0x3e7bfb=_0x468e60['length']-0x1;_0x3e7bfb>=0x0;_0x3e7bfb--){const _0x1bc061=_0x468e60[_0x3e7bfb];for(const _0x4c1e8b of Object['keys'](_0x1bc061['diffData']))if(_0x1bc061['diffData'][_0x4c1e8b]['attachChange']){const _0x27a06d=_0x1bc061['diffData'][_0x4c1e8b]['attachChange'];_0x27a06d['isAttached']?(_0x1189c7['add'](_0x4c1e8b),_0x3d142a['has'](_0x4c1e8b)&&_0x3d142a['get'](_0x4c1e8b)['userId']==_0x27a06d['userId']?_0x3d142a['delete'](_0x4c1e8b):_0x3d142a['set'](_0x4c1e8b,_0x27a06d)):_0x3d142a['has'](_0x4c1e8b)?(_0x1189c7['delete'](_0x4c1e8b),_0x3d142a['delete'](_0x4c1e8b)):(_0x1189c7['add'](_0x4c1e8b),_0x3d142a['set'](_0x4c1e8b,_0x27a06d));}else _0x1189c7['add'](_0x4c1e8b);}for(const _0x4e45e5 of _0x1189c7){const _0x141f22=_0x3d142a['has'](_0x4e45e5)&&!_0x3d142a['get'](_0x4e45e5)['isAttached'];let _0xd4a645=_0x141f22?_0x468e60['length']-0x1:0x0;const _0x12c578=_0x141f22?-0x1:0x1;for(;_0x468e60[_0xd4a645];){const _0x1915d2=_0x468e60[_0xd4a645];if(_0x1915d2['diffData'][_0x4e45e5]){const _0x8699c0=_0x141f22?_0x1915d2['diffData'][_0x4e45e5]['attributesBefore']:_0x1915d2['diffData'][_0x4e45e5]['attributesAfter'];_0x141046['attributes'][_0x4e45e5]=_0x8699c0?_0xdf41fd(_0x8699c0):{};break;}_0xd4a645+=_0x12c578;}}for(const _0x4154bf of _0x468e60){_0x4154bf['model']={};for(const _0x41e40a of _0x4154bf['authors'])_0x35cfa3['set'](_0x41e40a['id'],_0x41e40a);for(const _0x360a48 of _0x1189c7){const _0x96c923=_0x4154bf['diffData'][_0x360a48]?_0x4154bf['diffData'][_0x360a48]['insertions']:'[]',_0x34ec55=_0x4154bf['diffData'][_0x360a48]?_0x4154bf['diffData'][_0x360a48]['deletions']:'[]';_0x4154bf['model'][_0x360a48]={'insertions':this['_makeModelFromViewString'](_0x96c923),'deletions':this['_makeModelFromViewString'](_0x34ec55)};}}for(const _0x55e255 of _0x1189c7){let _0x42254c=null,_0x1f3349=0x0;const _0x4c2181=new Map(Array['from'](_0x28d4fb['model'][_0x55e255]['insertions']['markers'])['filter'](([_0x1b5030])=>!_0x1b5030['startsWith']('revision:')));let _0x52f2e4=0x0;for(const _0x31bec8 of _0x468e60){const _0x21046c=this['_makeTape'](_0x31bec8['model'][_0x55e255]['insertions']);_0x31bec8==_0x28d4fb?(_0x42254c=_0x21046c,_0x1f3349=_0x42254c['length'],_0x42254c['forEach'](_0x94c3b0=>{_0x94c3b0['id']=_0x52f2e4++;}),this['_processTape'](_0x42254c)):this['_markInsertions'](_0x42254c,_0x21046c);const _0x25f273=_0x42254c['filter'](_0x405e53=>!_0x405e53['isAdded'])['map'](_0xa2743c=>_0xa2743c['id']);let _0x57b241=0x0;const _0x113a3e=this['_makeTape'](_0x31bec8['model'][_0x55e255]['deletions']);_0x113a3e['forEach'](_0x541dc7=>{_0x541dc7['isRemoved']?_0x541dc7['id']=_0x1f3349++:_0x541dc7['id']=_0x25f273[_0x57b241++];}),this['_processTape'](_0x113a3e),this['_setDistance'](_0x42254c,'isAdded'),this['_setDistance'](_0x113a3e,'isRemoved'),_0x31bec8==_0x28d4fb&&this['_markMarkers'](_0x42254c,_0x4c2181),_0x42254c=this['_joinTapes'](_0x42254c,_0x113a3e),this['_refreshStartEndIndex'](_0x42254c),this['_setDistance'](_0x42254c,'isRemoved');}_0x42254c=_0x42254c['filter'](_0xcd5f0=>!(_0xcd5f0['isAdded']&&_0xcd5f0['isRemoved']));const _0x185e95=new Map(_0x2bef81['model'][_0x55e255]['deletions']['markers']),_0x134540=new Set(_0x4c2181['keys']());for(const _0x10faf8 of _0x185e95['keys']())_0x134540['delete'](_0x10faf8);this['_markSuggestions'](_0x42254c,_0x134540),this['_fixObsoleteTags'](_0x42254c),_0x42254c=this['_removeMissingPairs'](_0x42254c),_0x42254c=this['_markMismatchedRemovedTags'](_0x42254c),_0x42254c=this['_removeUnsupportedChanges'](_0x42254c);const {root:_0x3608a5,changes:_0x35f627}=this['_makeModelFromTape'](_0x42254c,_0x35cfa3,_0x55e255);_0x141046['model'][_0x55e255]=_0x3608a5;const _0x158907=_0x3d142a['get'](_0x55e255);if(_0x158907){const _0x33009f=_0x35cfa3['get'](_0x158907['userId']),_0x2bf276=new r({'author':_0x33009f,'type':_0x158907['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x55e255});_0x35f627['unshift'](_0x2bf276),_0x141046['attributes'][_0x55e255]['revisionHistoryAttachChange']=_0x2bf276['id'];}_0x141046['changes']=_0x141046['changes']['concat'](_0x35f627);}return _0x141046;}['_markMarkers'](_0x20fffb,_0x52ac90){for(let _0x2f117a=0x0;_0x2f117a<_0x20fffb['length'];_0x2f117a++)for(const [_0x4b2cc9,_0x5bb7df]of _0x52ac90)_0x5bb7df['start']['isEqual'](_0x20fffb[_0x2f117a]['previousPosition'])&&_0x20fffb[_0x2f117a]['markersStart']['push'](_0x4b2cc9),_0x5bb7df['end']['isEqual'](_0x20fffb[_0x2f117a]['nextPosition'])&&_0x20fffb[_0x2f117a]['markersEnd']['push'](_0x4b2cc9);}['_joinTapes'](_0x3fb70f,_0x264ed4){let _0x145bc7=[],_0x17b6fe=0x0,_0x5e5527=0x0;for(;_0x17b6fe<_0x3fb70f['length']||_0x5e5527<_0x264ed4['length'];){const _0xf760ea=_0x3fb70f[_0x17b6fe]||{},_0x2d2f16=_0x264ed4[_0x5e5527]||{};if(_0xf760ea['id']==_0x2d2f16['id'])_0x17b6fe++,_0x5e5527++,_0x145bc7['push'](_0xf760ea);else{if(_0x2d2f16['isRemoved']&&_0xf760ea['isAdded']){const {commonTape:_0x3bfe73,iEnd:_0x489b0f,jEnd:_0x2d3a35}=this['_threeWayMerge'](_0x3fb70f,_0x17b6fe,_0x264ed4,_0x5e5527);_0x145bc7=_0x145bc7['concat'](_0x3bfe73),_0x17b6fe=_0x489b0f,_0x5e5527=_0x2d3a35;}else _0x2d2f16['isRemoved']?(_0x5e5527++,_0x145bc7['push'](_0x2d2f16)):(_0x17b6fe++,_0x145bc7['push'](_0xf760ea));}}return _0x145bc7;}['_markSuggestions'](_0x2d8c73,_0x536715){const _0x30d8f2=[];for(let _0x502187=0x0;_0x502187<_0x2d8c73['length'];_0x502187++){for(let _0x58138c=0x0;_0x58138c<_0x2d8c73[_0x502187]['markersStart']['length'];_0x58138c++){const _0x115d7d=_0x2d8c73[_0x502187]['markersStart'][_0x58138c];if(!_0x536715['has'](_0x115d7d))continue;const {group:_0x21e919,type:_0x21b1f9,authorId:_0x26df9e}=_0x39f13b(_0x115d7d);'revision-suggestion'!=_0x21e919||'insertion'!=_0x21b1f9&&'deletion'!=_0x21b1f9||(_0x30d8f2['unshift']({'type':_0x21b1f9,'name':_0x115d7d,'userId':_0x26df9e}),_0x2d8c73[_0x502187]['markersStart']['splice'](_0x58138c,0x1),_0x58138c--);}_0x566fb4(_0x2d8c73[_0x502187]);for(let _0x25c715=0x0;_0x25c715<_0x2d8c73[_0x502187]['markersEnd']['length'];_0x25c715++){const _0x4fcbfe=_0x2d8c73[_0x502187]['markersEnd'][_0x25c715];if(!_0x536715['has'](_0x4fcbfe))continue;const {group:_0xd6b58e,type:_0x3d222d}=_0x39f13b(_0x4fcbfe);if('revision-suggestion'!=_0xd6b58e||'insertion'!=_0x3d222d&&'deletion'!=_0x3d222d)continue;_0x2d8c73[_0x502187]['markersEnd']['splice'](_0x25c715,0x1),_0x25c715--;const _0x4c6118=_0x30d8f2['findIndex'](_0x1dfd93=>_0x1dfd93['name']==_0x4fcbfe);_0x4c6118>-0x1&&_0x30d8f2['splice'](_0x4c6118,0x1);}}function _0x39f13b(_0xcca7c9){const _0x31d7f6=_0xcca7c9['split'](':');return{'group':_0x31d7f6[0x0],'type':_0x31d7f6[0x1],'subType':_0x31d7f6['length']>=0x5?_0x31d7f6[0x2]:null,'id':_0x31d7f6['length']<0x5?_0x31d7f6[0x2]:_0x31d7f6[0x3],'authorId':_0x31d7f6['length']<0x5?_0x31d7f6[0x3]:_0x31d7f6[0x4],'markerCount':0x6==_0x31d7f6['length']?_0x31d7f6[0x5]:null};}function _0x566fb4(_0x412516){for(let _0x53343d=0x0;_0x53343d<_0x30d8f2['length'];_0x53343d++){if(_0x412516['isAdded']&&'insertion'==_0x30d8f2[_0x53343d]['type'])return _0x412516['isAddSuggestion']=_0x30d8f2[_0x53343d],void delete _0x412516['isAdded'];if(!_0x412516['isAdded']&&!_0x412516['isRemoved']&&'deletion'==_0x30d8f2[_0x53343d]['type'])return void(_0x412516['isRemoveSuggestion']=_0x30d8f2[_0x53343d]);}}}['_setDistance'](_0x21a4c2,_0x495fc7){let _0xdab02e=0x0,_0x3f5412=!0x1;const _0xe17cd0=new Map();for(const _0x48a87f of _0x21a4c2)_0x48a87f[_0x495fc7]?_0x3f5412&&(_0xdab02e++,_0x3f5412=!0x1):(_0xdab02e++,_0x3f5412=!0x0),_0xe17cd0['set'](_0x48a87f['id'],_0xdab02e);for(let _0x172127=0x0;_0x172127<_0x21a4c2['length'];_0x172127++){if('isRemoved'==_0x495fc7&&_0x21a4c2[_0x172127]['isAdded']||'isAdded'==_0x495fc7&&_0x21a4c2[_0x172127]['isRemoved'])continue;if('text'==_0x21a4c2[_0x172127]['type']){_0x21a4c2[_0x172127]['distance']=0x0;continue;}const _0x12b5c1=_0xe17cd0['get'](_0x21a4c2[_0x172127]['pairId']),_0x4c3b34=_0xe17cd0['get'](_0x21a4c2[_0x172127]['id']);_0x21a4c2[_0x172127]['distance']=_0x12b5c1-_0x4c3b34;}}['_getRevisionsRange'](_0x4cbfea,_0x52446b,_0x1535e6=!0x1){const _0x4876db=[];let _0x1c8e80=this['repository']['getIndex'](_0x4cbfea),_0x152232=this['repository']['getIndex'](_0x52446b);for(-0x1==_0x152232&&(_0x152232=this['repository']['_revisions']['length'],_0x1535e6=!0x1);_0x1c8e80<_0x152232;)_0x4876db['push'](this['repository']['getRevision'](_0x1c8e80)),_0x1c8e80++;return _0x1535e6&&_0x4876db['push'](this['repository']['getRevision'](_0x1c8e80)),_0x4876db;}['_threeWayMerge'](_0x2c53f6,_0x53ecac,_0x3ddf61,_0xe76576){const _0x3ca3ed=this['editor']['model']['schema'];let _0x1614e0=_0x53ecac;for(;_0x2c53f6[_0x1614e0]&&_0x2c53f6[_0x1614e0]['isAdded'];)_0x1614e0++;let _0xb6efff=_0xe76576;for(;_0x3ddf61[_0xb6efff]&&_0x3ddf61[_0xb6efff]['isRemoved'];)_0xb6efff++;_0x539d6b(_0x2c53f6,_0x53ecac,_0x1614e0),_0x539d6b(_0x3ddf61,_0xe76576,_0xb6efff);const _0x363d81=_0x3ddf61['slice'](_0xe76576,_0xb6efff)['concat'](_0x2c53f6['slice'](_0x53ecac,_0x1614e0));return _0x363d81['sort']((_0x3c744a,_0x5d7431)=>_0x3c744a['side']!=_0x5d7431['side']?_0x3c744a['side']-_0x5d7431['side']:_0x3c744a['level']!=_0x5d7431['level']?_0x3c744a['level']-_0x5d7431['level']:_0x3c744a['distance']!=_0x5d7431['distance']?_0x5d7431['distance']-_0x3c744a['distance']:!!_0x3c744a['isAdded']!=!!_0x5d7431['isAdded']?-0x1==_0x3c744a['side']||0x0==_0x3c744a['side']?_0x3c744a['isAdded']?-0x1:0x1:_0x3c744a['isAdded']?0x1:-0x1:_0x3c744a['index']-_0x5d7431['index']),{'commonTape':_0x363d81,'iEnd':_0x1614e0,'jEnd':_0xb6efff};function _0x539d6b(_0x548001,_0x44d278,_0x4a3963){let _0x213800=-0x1,_0x18c1d0=Number['POSITIVE_INFINITY'],_0x101527=!0x0;for(let _0x279f60=_0x44d278;_0x279f60<_0x4a3963;_0x279f60++)if(_0x3ca3ed['isInline'](_0x548001[_0x279f60]['item'])||(_0x101527=!0x1),_0x548001[_0x279f60]['item']['startIndex']<_0x44d278&&(_0x213800=_0x279f60),_0x548001[_0x279f60]['item']['endIndex']>=_0x4a3963){_0x18c1d0=_0x279f60;break;}_0x101527&&(_0x213800=_0x4a3963-0x1);for(let _0x66b074=_0x44d278;_0x66b074<_0x4a3963;_0x66b074++)_0x548001[_0x66b074]['side']=_0x66b074<=_0x213800?-0x1:_0x66b074<_0x18c1d0?0x0:0x1,_0x548001[_0x66b074]['index']=_0x66b074;let _0x4b0fc6=0x0;for(let _0x2d7f37=_0x44d278;_0x2d7f37<=_0x213800;_0x2d7f37++)0x0==_0x548001[_0x2d7f37]['distance']?_0x548001[_0x2d7f37]['level']=_0x4b0fc6:(_0x4b0fc6++,_0x548001[_0x2d7f37]['level']=_0x4b0fc6,_0x4b0fc6++);for(let _0x3d8c1e=_0x44d278;_0x3d8c1e<_0x4a3963;_0x3d8c1e++)0x0==_0x548001[_0x3d8c1e]['side']&&(_0x548001[_0x3d8c1e]['level']=_0x4b0fc6);_0x4b0fc6=0x0;for(let _0x285f26=_0x4a3963-0x1;_0x285f26>=_0x18c1d0;_0x285f26--)0x0==_0x548001[_0x285f26]['distance']?_0x548001[_0x285f26]['level']=_0x4b0fc6:(_0x4b0fc6--,_0x548001[_0x285f26]['level']=_0x4b0fc6,_0x4b0fc6--);}}['_fixObsoleteTags'](_0x1ffd02){const _0x35f1c7=new Map(),_0x38113f=this['editor']['model']['schema'];for(let _0x3eb315=0x1;_0x3eb315<_0x1ffd02['length'];_0x3eb315++){let _0x29b059,_0x519c85,_0xd09d10;const _0x2ec017=_0x1ffd02[_0x3eb315],_0xbfa2d2=_0x1ffd02[_0x3eb315-0x1];if('text'==_0x2ec017['type'])continue;if(_0x2ec017['type']!=_0xbfa2d2['type'])continue;if(!_0x38113f['isBlock'](_0xbfa2d2['item'])||_0x38113f['isLimit'](_0xbfa2d2['item']))continue;if(!_0x38113f['isBlock'](_0x2ec017['item'])||_0x38113f['isLimit'](_0x2ec017['item']))continue;if((_0x1ffd02[_0x3eb315]['isAdded']||_0x1ffd02[_0x3eb315]['isAddSuggestion'])&&_0x1ffd02[_0x3eb315-0x1]['isRemoved'])_0x29b059=_0x1ffd02[_0x3eb315],_0x519c85=_0x1ffd02[_0x3eb315-0x1],_0xd09d10=_0x3eb315-0x1;else{if(!_0x1ffd02[_0x3eb315]['isRemoved']||!_0x1ffd02[_0x3eb315-0x1]['isAdded']&&!_0x1ffd02[_0x3eb315-0x1]['isAddSuggestion'])continue;_0x29b059=_0x1ffd02[_0x3eb315-0x1],_0x519c85=_0x1ffd02[_0x3eb315],_0xd09d10=_0x3eb315;}const _0x52bb9b=_0x29b059['level']==_0x519c85['level'],_0x3c624b=Math['abs'](_0x29b059['level'])<Math['abs'](_0x519c85['level'])&&0x0==_0x519c85['distance'];(_0x52bb9b||_0x3c624b)&&(_0x35f1c7['set'](_0x519c85['id'],_0x29b059['id']),_0x1ffd02['splice'](_0xd09d10,0x1),_0x3eb315--,_0x29b059['isAdded']=!0x1);}for(let _0x26ba44=0x0;_0x26ba44<_0x1ffd02['length'];_0x26ba44++)_0x35f1c7['has'](_0x1ffd02[_0x26ba44]['pairId'])&&(_0x1ffd02[_0x26ba44]['pairId']=_0x35f1c7['get'](_0x1ffd02[_0x26ba44]['pairId']));}['_removeMissingPairs'](_0x2ada84){const _0x143bbd=new Set(_0x2ada84['map'](_0x5c0696=>_0x5c0696['id']));for(let _0x22bd98=0x0;_0x22bd98<_0x2ada84['length'];_0x22bd98++)_0x143bbd['has'](_0x2ada84[_0x22bd98]['pairId'])||0x0==_0x2ada84[_0x22bd98]['distance']||(_0x2ada84[_0x22bd98]['isIncorrect']=!0x0);return _0x2ada84['filter'](_0x19fd4b=>!_0x19fd4b['isIncorrect']);}['_markMismatchedRemovedTags'](_0x4d1447){const _0x3ddd39=new Set();for(let _0x4b8b36=0x0;_0x4b8b36<_0x4d1447['length'];_0x4b8b36++){if(_0x3ddd39['has'](_0x4d1447[_0x4b8b36]['id'])&&_0x4d1447[_0x4b8b36]['isRemoved']&&(_0x4d1447[_0x4b8b36]['isIncorrect']=!0x0),_0x4d1447[_0x4b8b36]['isIncorrect'])continue;if(0x0==_0x4d1447[_0x4b8b36]['distance'])continue;if('elementStart'!=_0x4d1447[_0x4b8b36]['type'])continue;if(null==_0x4d1447[_0x4b8b36]['pairId'])continue;let _0x3dbd18=_0x4b8b36+0x1,_0x56c079=0x0;for(;_0x4d1447[_0x3dbd18]['id']!=_0x4d1447[_0x4b8b36]['pairId'];)'elementStart'==_0x4d1447[_0x3dbd18]['type']?_0x56c079++:'elementEnd'==_0x4d1447[_0x3dbd18]['type']&&_0x56c079--,_0x3dbd18++;if(0x0!=_0x56c079){if(_0x4d1447[_0x4b8b36]['isRemoved'])_0x4d1447[_0x4b8b36]['isIncorrect']=!0x0;else{for(;_0x3dbd18!=_0x4b8b36;)_0x4d1447[_0x3dbd18]['isRemoved']&&0x0!=_0x4d1447[_0x3dbd18]['distance']&&(_0x4d1447[_0x3dbd18]['isIncorrect']=!0x0,_0x3ddd39['add'](_0x4d1447[_0x3dbd18]['pairId'])),_0x3dbd18--;}}}return _0x4d1447['filter'](_0x1b5a9a=>!_0x1b5a9a['isIncorrect']);}['_removeUnsupportedChanges'](_0x2698f2){const _0x27e911=this['editor']['model']['schema'];for(let _0x210c44=0x0;_0x210c44<_0x2698f2['length'];_0x210c44++){if(!(_0x2698f2[_0x210c44]['isAdded']||_0x2698f2[_0x210c44]['isAddSuggestion']||_0x2698f2[_0x210c44]['isRemoved']||_0x2698f2[_0x210c44]['isRemoveSuggestion']))continue;if(0x0==_0x2698f2[_0x210c44]['distance'])continue;const _0xa60807=_0x2698f2[_0x210c44]['item'];_0x27e911['isBlock'](_0xa60807)||_0x27e911['isLimit'](_0xa60807)||(_0x2698f2[_0x210c44]['isAdded']&&delete _0x2698f2[_0x210c44]['isAdded'],_0x2698f2[_0x210c44]['isAddSuggestion']&&delete _0x2698f2[_0x210c44]['isAddSuggestion'],_0x2698f2[_0x210c44]['isRemoveSuggestion']&&delete _0x2698f2[_0x210c44]['isRemoveSuggestion'],_0x2698f2[_0x210c44]['isRemoved']&&(_0x2698f2[_0x210c44]['isIncorrect']=!0x0));}return _0x2698f2['filter'](_0x20b878=>!_0x20b878['isIncorrect']);}['_makeModelFromTape'](_0x37bd2c,_0x7c81ee,_0x2e6399){const _0x39f1b6=new gt(),_0x18452c=[],_0x42553e=new Map(),_0x13f7a6=this['editor']['model'],_0x1c2499=_0x13f7a6['schema'],_0x22a338=[_0x39f1b6],_0x4b91d9={},_0x550a33={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x42ffbc=null;const _0x2c523d=[0x0];for(let _0x59407c=0x0;_0x59407c<_0x37bd2c['length'];_0x59407c++)if('elementStart'===_0x37bd2c[_0x59407c]['type']){_0x37bd2c[_0x59407c]['previousPosition']=_0x13f7a6['createPositionFromPath'](_0x39f1b6,_0x2c523d);const _0x12ed51=new ut(_0x37bd2c[_0x59407c]['item']['name'],_0x37bd2c[_0x59407c]['item']['getAttributes']());_0x22a338[0x0]['_appendChild'](_0x12ed51),_0x2c523d['push'](0x0),_0x22a338['unshift'](_0x12ed51),_0x37bd2c[_0x59407c]['nextPosition']=_0x13f7a6['createPositionFromPath'](_0x39f1b6,_0x2c523d);}else'elementEnd'===_0x37bd2c[_0x59407c]['type']?(_0x22a338['shift'](),_0x37bd2c[_0x59407c]['previousPosition']=_0x13f7a6['createPositionFromPath'](_0x39f1b6,_0x2c523d),_0x2c523d['pop'](),_0x2c523d[_0x2c523d['length']-0x1]++,_0x37bd2c[_0x59407c]['nextPosition']=_0x13f7a6['createPositionFromPath'](_0x39f1b6,_0x2c523d)):(_0x37bd2c[_0x59407c]['previousPosition']=_0x13f7a6['createPositionFromPath'](_0x39f1b6,_0x2c523d),_0x42ffbc?_0x42ffbc['_data']+=_0x37bd2c[_0x59407c]['item']['data']:_0x42ffbc=new wt(_0x37bd2c[_0x59407c]['item']['data'],_0x37bd2c[_0x59407c]['item']['getAttributes']()),_0x37bd2c[_0x59407c+0x1]&&'text'===_0x37bd2c[_0x59407c+0x1]['type']&&_0x783f32(_0x42ffbc,_0x37bd2c[_0x59407c+0x1]['item'])||(_0x22a338[0x0]['_appendChild'](_0x42ffbc),_0x42ffbc=null),_0x2c523d[_0x2c523d['length']-0x1]+=_0x37bd2c[_0x59407c]['item']['offsetSize'],_0x37bd2c[_0x59407c]['nextPosition']=_0x13f7a6['createPositionFromPath'](_0x39f1b6,_0x2c523d));for(let _0x591f37=0x0;_0x591f37<_0x37bd2c['length'];_0x591f37++){const _0x1a7548=_0x37bd2c[_0x591f37]['previousPosition'],_0x40ecab=_0x37bd2c[_0x591f37]['nextPosition'];for(const _0x2a0088 of _0x37bd2c[_0x591f37]['markersStart'])_0x42553e['set'](_0x2a0088,{'start':_0x1a7548,'end':null});_0x54c437('isRemoveSuggestion',_0x591f37,_0x1a7548,_0x40ecab),_0x54c437('isAddSuggestion',_0x591f37,_0x1a7548,_0x40ecab),_0x54c437('isRemoved',_0x591f37,_0x1a7548,_0x40ecab),_0x54c437('isAdded',_0x591f37,_0x1a7548,_0x40ecab);for(const _0x36759c of _0x37bd2c[_0x591f37]['markersEnd']){_0x42553e['get'](_0x36759c)['end']=_0x40ecab;}}for(const [_0x256b73,_0x467eb8]of _0x42553e){const _0x4c512a=this['editor']['model']['createRange'](_0x467eb8['start'],_0x467eb8['end']);_0x39f1b6['markers']['set'](_0x256b73,_0x4c512a);}return _0x18452c['sort']((_0x258d72,_0x267fa7)=>{const _0x462b9a=_0x39f1b6['markers']['get']('revision:'+_0x258d72['id']),_0x4a2043=_0x39f1b6['markers']['get']('revision:'+_0x267fa7['id']);return _0x462b9a['start']['isBefore'](_0x4a2043['start'])?-0x1:_0x462b9a['start']['isAfter'](_0x4a2043['start'])?0x1:_0x462b9a['end']['isBefore'](_0x4a2043['end'])?-0x1:_0x462b9a['end']['isAfter'](_0x4a2043['end'])?0x1:'add'===_0x258d72['type']?-0x1:0x1;}),{'root':_0x39f1b6,'changes':_0x18452c};function _0x54c437(_0x3d2201,_0xe93182,_0x2ae42a,_0x9633a0){const _0x42ab4f=!!_0x37bd2c[_0xe93182][_0x3d2201],_0x4a1fb4=_0x42ab4f?_0x37bd2c[_0xe93182][_0x3d2201]['userId']:null,_0x4ffecf=_0xe93182===_0x37bd2c['length']-0x1,_0x52119f=_0x550a33[_0x3d2201][0x0],_0x23a39e=_0x1c2499['isObject'](_0x37bd2c[_0xe93182]['item']);!_0x4b91d9[_0x3d2201]&&_0x42ab4f?_0x4b91d9[_0x3d2201]={'start':_0x2ae42a,'tapeItem':_0x37bd2c[_0xe93182],'userId':_0x4a1fb4,'type':_0x3d2201}:_0x4b91d9[_0x3d2201]&&!_0x42ab4f?(_0x4b91d9[_0x3d2201]['end']=_0x2ae42a,_0x551914(_0x4b91d9[_0x3d2201]),_0x4b91d9[_0x3d2201]=null):_0x4b91d9[_0x3d2201]&&_0x42ab4f&&_0x4b91d9[_0x3d2201]['userId']!==_0x4a1fb4&&(_0x4b91d9[_0x3d2201]['end']=_0x2ae42a,_0x52119f&&_0x52119f['userId']===_0x4b91d9[_0x3d2201]['userId']||_0x551914(_0x4b91d9[_0x3d2201]),_0x4b91d9[_0x3d2201]={'start':_0x2ae42a,'tapeItem':_0x37bd2c[_0xe93182],'userId':_0x4a1fb4,'type':_0x3d2201}),_0x4b91d9[_0x3d2201]&&_0x23a39e&&('elementStart'!==_0x37bd2c[_0xe93182]['type']||_0x52119f&&_0x52119f['userId']===_0x4a1fb4||_0x550a33[_0x3d2201]['unshift']({'userId':_0x4a1fb4,'object':_0x37bd2c[_0xe93182]['item'],'change':_0x4b91d9[_0x3d2201]}),'elementEnd'===_0x37bd2c[_0xe93182]['type']&&_0x52119f&&_0x52119f['object']===_0x37bd2c[_0xe93182]['item']&&(_0x550a33[_0x3d2201]['shift'](),_0x4b91d9[_0x3d2201]=_0x52119f['change'])),_0x4b91d9[_0x3d2201]&&_0x4ffecf&&(_0x4b91d9[_0x3d2201]['end']=_0x9633a0,_0x551914(_0x4b91d9[_0x3d2201]),_0x4b91d9[_0x3d2201]=null);}function _0x551914({start:_0x458205,end:_0x6f0cc0,tapeItem:_0x28d71d,userId:_0x3722e1,type:_0x25e5f7}){const _0x3c9c8b=_0x28d71d['item'],_0x345f21=_0x13f7a6['schema']['isBlock'](_0x3c9c8b)&&!_0x13f7a6['schema']['isLimit'](_0x3c9c8b),_0x498336=_0x458205['nodeAfter']==_0x6f0cc0['parent']&&_0x6f0cc0['isAtStart'];if(_0x345f21&&_0x498336)return;const _0x58357=_0x13f7a6['createRange'](_0x458205,_0x6f0cc0),_0x5cc337=_0x7c81ee['get'](_0x3722e1),_0x103c58=new r({'author':_0x5cc337,'type':'isAdded'==_0x25e5f7||'isAddSuggestion'==_0x25e5f7?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x25e5f7||'isRemoveSuggestion'==_0x25e5f7},'createdAt':new Date(),'rootName':_0x2e6399});_0x18452c['push'](_0x103c58),_0x39f1b6['markers']['set']('revision:'+_0x103c58['id'],_0x58357);}function _0x783f32(_0x524089,_0x235a66){const _0x418065=_0x524089['getAttributes'](),_0x1eb837=_0x235a66['getAttributes']();for(const _0x52d44b of _0x418065){if(_0x52d44b[0x1]!==_0x235a66['getAttribute'](_0x52d44b[0x0]))return!0x1;_0x1eb837['next']();}return _0x1eb837['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x26fb34=>{const _0x409d2b=_0x26fb34['markerName']['split'](':')[0x1],_0xbbf59e=this['_getChangeFromId'](_0x409d2b);if(!_0xbbf59e)return null;const _0x4a41a2='add'==_0xbbf59e['type']?'insertion':'deletion',_0x2098d0=['ck-suggestion-marker','ck-suggestion-marker-'+_0x4a41a2];return _0xbbf59e['data']['isSuggestion']&&_0x2098d0['push']('ck-suggestion-marker-'+_0x4a41a2+'-new'),this['activeChange']==_0xbbf59e&&_0x2098d0['push']('ck-suggestion-marker--active'),{'classes':_0x2098d0,'attributes':{'data-change-id':_0x409d2b}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x4e4c06=>{_0x4e4c06['on']('element:pre',(_0x167600,_0x2e3267,_0x17630d)=>{const _0x301eef=_0x2e3267['viewItem']['getChild'](0x0);if(!_0x301eef||!_0x301eef['is']('element','code'))return;if(!_0x17630d['consumable']['consume'](_0x301eef,{'attributes':['vid_start','vid_end']}))return;const _0x160ef2=_0x2e3267['modelRange']['start']['nodeAfter'];_0x17630d['writer']['setAttribute']('vid_start',_0x301eef['getAttribute']('vid_start'),_0x160ef2),_0x17630d['writer']['setAttribute']('vid_end',_0x301eef['getAttribute']('vid_end'),_0x160ef2);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x5c617b=>{_0x5c617b['on']('element',(_0x4a80b9,_0x42e314,_0xa0d47d)=>{if(!_0xa0d47d['consumable']['consume'](_0x42e314['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x42e314['modelRange']['isCollapsed'])return;const _0x3402dd=_0x42e314['modelRange']['start']['nodeAfter'];_0x3402dd['hasAttribute']('vid_start')||_0x3402dd['hasAttribute']('vid')||(_0xa0d47d['writer']['setAttribute']('vid_start',_0x42e314['viewItem']['getAttribute']('vid_start'),_0x3402dd),_0xa0d47d['writer']['setAttribute']('vid_end',_0x42e314['viewItem']['getAttribute']('vid_end'),_0x3402dd));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x7a0933=>_0x7a0933['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x187113,[,_0x139c16])=>{['vid_start','vid_end','vid']['includes'](_0x139c16)&&(_0x187113['return']=!0x0,_0x187113['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x11d2a0=>{_0x11d2a0['on']('attribute:vid',(_0x33c0ed,_0x238b1b,_0x147d08)=>{if('\x20'!=_0x238b1b['item']['data']||_0x238b1b['item']['parent']['maxOffset']>0x1)return;if(!_0x147d08['consumable']['consume'](_0x238b1b['item'],_0x33c0ed['name']))return;const _0x477c9a=_0x147d08['writer'],_0x53ce6b=_0x147d08['mapper']['toViewRange'](_0x238b1b['range']);_0x477c9a['wrap'](_0x53ce6b,_0x477c9a['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x1a625e){const _0xb7cb5f=_0x1a625e['plugins']['get']('RevisionViewer');return(_0xccaad,_0x724b3e,_0x10f361)=>{const _0x51822d=_0x724b3e['markerName']['split'](':')[0x1],_0x5b0631=_0xb7cb5f['_getChangeFromId'](_0x51822d);if(!_0x5b0631)return null;const _0x719f61='add'==_0x5b0631['type']?'split':'merge';if(!_0x10f361['consumable']['test'](_0x724b3e['markerRange'],_0xccaad['name']))return;const _0x1656c6=_0x724b3e['markerRange']['getWalker'](),_0x33ef23=_0x724b3e['markerRange']['start'],_0x258140=_0x1a625e['model']['schema'];let _0x365d33=null,_0x51b6c6=null,_0x3b912e=!0x1,_0x5c5df4=!0x1;for(const _0x148298 of _0x1656c6){const _0x28573f=_0x148298['item'];_0x3b912e=_0x3b912e||_0x258140['isContent'](_0x28573f);const _0x544e2f=_0x10f361['mapper']['toViewElement'](_0x28573f);if(_0x544e2f&&_0x544e2f['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x148298['type']&&(_0x258140['isBlock'](_0x28573f)&&!_0x258140['isLimit'](_0x28573f)&&(_0x28573f['nextSibling']||_0x33ef23['isAtEnd']?_0x365d33&&_0x365d33['parent']==_0x28573f||(_0x365d33=_0x28573f,_0x35ddbe(_0x148298['previousPosition']),_0x5c5df4=!0x0):_0x51b6c6=_0x51b6c6||_0x148298['previousPosition']));}function _0x35ddbe(_0xd8b271){const _0x56a142=_0x10f361['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x719f61}),_0x7a1390=_0x10f361['mapper']['toViewPosition'](_0xd8b271);_0x5b0631['data']['isSuggestion']&&_0x10f361['writer']['addClass']('ck-suggestion-marker-'+_0x719f61+'-new',_0x56a142),_0xb7cb5f['activeChange']==_0x5b0631&&_0x10f361['writer']['addClass']('ck-suggestion-marker--active',_0x56a142),_0x10f361['writer']['insert'](_0x7a1390,_0x56a142),_0x10f361['mapper']['bindElementToMarker'](_0x56a142,_0x724b3e['markerName']);}_0x3b912e||_0x5c5df4||!_0x51b6c6||_0x35ddbe(_0x51b6c6);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x16b7a9,_0x18540d,_0x3fc1f4)=>{const _0x1d5a6b=_0x3fc1f4['mapper']['markerNameToElements'](_0x18540d['markerName']);if(_0x1d5a6b){for(const _0x188bb3 of _0x1d5a6b)(_0x188bb3['hasClass']('ck-suggestion-marker-split')||_0x188bb3['hasClass']('ck-suggestion-marker-merge'))&&(_0x3fc1f4['mapper']['unbindElementFromMarkerName'](_0x188bb3,_0x18540d['markerName']),_0x3fc1f4['writer']['remove'](_0x188bb3));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x8ec44c,_0x4bf86a,_0x18e1a9)=>{const _0x41e115=_0x4bf86a['markerName']['split'](':')[0x1],_0xaf4e68=this['_getChangeFromId'](_0x41e115);if(!_0xaf4e68)return null;const _0x2985c5='add'==_0xaf4e68['type']?'split':'merge';if(_0x18e1a9['consumable']['test'](_0x4bf86a['markerRange'],_0x8ec44c['name']))for(const _0x3682f4 of _0x4bf86a['markerRange']['getItems']()){if(!_0x3682f4['is']('element','softBreak'))continue;const _0x4fbad8=_0x18e1a9['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2985c5}),_0x5a89ed=_0x18e1a9['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x3682f4));_0xaf4e68['data']['isSuggestion']&&_0x18e1a9['writer']['addClass']('ck-suggestion-marker-'+_0x2985c5+'-new',_0x4fbad8),this['activeChange']==_0xaf4e68&&_0x18e1a9['writer']['addClass']('ck-suggestion-marker--active',_0x4fbad8),_0x18e1a9['writer']['insert'](_0x5a89ed,_0x4fbad8),_0x18e1a9['mapper']['bindElementToMarker'](_0x4fbad8,_0x4bf86a['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x350384=>{for(const _0x14f260 of this['editor']['model']['document']['getRootNames']()){const _0x25b59e=this['editor']['model']['document']['getRoot'](_0x14f260),_0x54bf06=this['editor']['editing']['view']['document']['getRoot'](_0x14f260);if(_0x54bf06){const _0x3d7dea=_0x25b59e['getAttribute']('revisionHistoryAttachChange');if(_0x350384['removeAttribute']('data-change-id',_0x54bf06),_0x350384['removeClass']('ck-revision-history-root-add',_0x54bf06),_0x350384['removeClass']('ck-revision-history-root-remove',_0x54bf06),_0x350384['removeClass']('ck-revision-history-root--active',_0x54bf06),_0x3d7dea){const _0x3b6da2=this['_getChangeFromId'](_0x3d7dea);if(!_0x3b6da2)return null;_0x350384['setAttribute']('data-change-id',_0x3d7dea,_0x54bf06),_0x350384['addClass']('ck-revision-history-root-'+_0x3b6da2['type'],_0x54bf06),this['activeChange']==_0x3b6da2&&_0x350384['addClass']('ck-revision-history-root--active',_0x54bf06);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x4d792e=>'revision-comment:'+_0x4d792e,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x5c7ba7=>'revision-suggestion:'+_0x5c7ba7,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x10fae2=>({'name':'suggestion:'+_0x10fae2,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x43ba36=>{const _0x23a652=_0x43ba36['markerName']['split'](':')[0x1];return'insertion'!=_0x23a652&&'deletion'!=_0x23a652?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x23a652]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x2bb5da,_0x1d13ce,_0x2beb06)=>{const _0x59272e=_0x2beb06['mapper']['markerNameToElements'](_0x1d13ce['markerName']);if(_0x59272e){for(const _0x3d1913 of _0x59272e)_0x3d1913['is']('uiElement')&&(_0x2beb06['mapper']['unbindElementFromMarkerName'](_0x3d1913,_0x1d13ce['markerName']),_0x2beb06['writer']['remove'](_0x3d1913));}},{'priority':'high'});}['_getChangeFromId'](_0x1d2a2e){return this['_changeIdToChange']['get'](_0x1d2a2e);}['_getViewForChange'](_0x37014b){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x37014b),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x8f16d8,_0x3c083a,_0x4de80a,_0x35b7d5)=>{_0x35b7d5&&this['_balloon']['remove'](_0x35b7d5),_0x4de80a&&(this['_balloon']['add']({'view':_0x4de80a,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x2e29ed=this['editor']['editing'],_0x15d07d=this['_getChangeFromId'](_0x4de80a['changeId']);let _0x32c1fc;if(_0x15d07d['data']['isOnRoot']){const _0x46e721=_0x2e29ed['view']['getDomRoot'](_0x15d07d['rootName']);_0x32c1fc=Array['from'](_0x46e721['getClientRects']());}else{const _0x422f33=this['editor']['model']['markers']['get']('revision:'+_0x4de80a['changeId']);_0x32c1fc=Array['from'](_0x2e29ed['mapper']['markerNameToElements'](_0x422f33['name']))['map'](_0x105cf0=>_0x2e29ed['view']['domConverter']['mapViewToDom'](_0x105cf0))['map'](_0x521388=>Array['from'](_0x521388['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x32c1fc[0x0];return _0x32c1fc['find'](_0x4fda26=>_0x4fda26['top']-0x3<=this['_activeViewTarget']['y']&&_0x4fda26['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x4fda26['left']-0x3<=this['_activeViewTarget']['x']&&_0x4fda26['right']+0x3>=this['_activeViewTarget']['x'])||_0x32c1fc[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x58a56f,_0xf7d6e0,_0x59d277,_0x5baeaa)=>{this['activeView']=_0x59d277?this['_getViewForChange'](_0x59d277):null,this['editor']['model']['change'](()=>{const _0x4230f6=this['editor']['editing'];_0x5baeaa&&(_0x5baeaa['data']['isOnRoot']?_0x4230f6['view']['change'](_0x57db8d=>{_0x57db8d['removeClass']('ck-revision-history-root--active',_0x4230f6['view']['document']['getRoot'](_0x5baeaa['rootName']));}):_0x4230f6['reconvertMarker']('revision:'+_0x5baeaa['id'])),_0x59d277&&(_0x59d277['data']['isOnRoot']?_0x4230f6['view']['change'](_0x55bf50=>{_0x55bf50['addClass']('ck-revision-history-root--active',_0x4230f6['view']['document']['getRoot'](_0x59d277['rootName']));}):_0x4230f6['reconvertMarker']('revision:'+_0x59d277['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x5690bf,_0x1445fc)=>{if(this['activeChange'])return;const _0x56df1b=this['_findChangeIdFromDomTarget'](_0x1445fc['target']),_0x342396=this['_changeIdToChange']['get'](_0x56df1b);_0x342396?(this['_activeViewTarget']={'x':_0x1445fc['domEvent']['x'],'y':_0x1445fc['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x342396)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x21f7bf,_0x4c26e6)=>{const _0x53cfb2=this['_findChangeIdFromDomTarget'](_0x4c26e6['target']),_0x97a1c5=this['_changeIdToChange']['get'](_0x53cfb2);_0x97a1c5?(this['_activeViewTarget']={'x':_0x4c26e6['domEvent']['x'],'y':_0x4c26e6['domEvent']['y']},_0x97a1c5===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x97a1c5):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x47bb46){do{const _0x299850=_0x47bb46['getAttribute']('data-change-id');if(_0x299850)return _0x299850;_0x47bb46=_0x47bb46['parent'];}while(_0x47bb46);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x2bfa1a=>{for(const _0x58047c of this['editor']['model']['markers'])_0x2bfa1a['removeMarker'](_0x58047c);});}}function Z(_0x4aa9a3,_0x2607a9){return(_0xbcb9ba,_0x5bde29,_0x2c4de6)=>{if(!_0x2c4de6['consumable']['test'](_0x5bde29['markerRange'],_0xbcb9ba['name']))return;const _0x1676a0=_0x5bde29['markerRange']['getWalker'](),_0x1b6d48=_0x5bde29['markerRange']['start'],_0x38f45e=_0x4aa9a3['model']['schema'];let _0x189c26=null,_0x5a0dbd=null,_0x42637c=!0x1,_0x5c7971=!0x1;for(const _0x240475 of _0x1676a0){const _0x1e8475=_0x240475['item'];_0x42637c=_0x42637c||_0x38f45e['isContent'](_0x1e8475);const _0xd26f95=_0x2c4de6['mapper']['toViewElement'](_0x1e8475);if(_0xd26f95&&_0xd26f95['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x240475['type']&&(_0x38f45e['isBlock'](_0x1e8475)&&!_0x38f45e['isLimit'](_0x1e8475)&&(_0x1e8475['nextSibling']||_0x1b6d48['isAtEnd']?_0x189c26&&_0x189c26['parent']==_0x1e8475||(_0x189c26=_0x1e8475,_0x44b401(_0x240475['previousPosition']),_0x5c7971=!0x0):_0x5a0dbd=_0x5a0dbd||_0x240475['previousPosition']));}function _0x44b401(_0x4c38b2){const _0x271b64=_0x2c4de6['mapper']['toViewPosition'](_0x4c38b2),_0x4f5520=_0x2c4de6['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x2607a9});_0x2c4de6['writer']['insert'](_0x271b64,_0x4f5520),_0x2c4de6['mapper']['bindElementToMarker'](_0x4f5520,_0x5bde29['markerName']);}_0x42637c||_0x5c7971||!_0x5a0dbd||_0x44b401(_0x5a0dbd);};}class _t extends _0x1a2005{constructor(_0x2d6488){super(_0x2d6488);const _0x2fe896=_0x2d6488['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x2fe896,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x2fe896,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x2583b7=this['editor'],_0x43a9a4=_0x2583b7['plugins']['get'](d),_0x2435d6=_0x43a9a4['isReady']?_0x43a9a4['diff']['newRevisionId']:null;_0x2583b7['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x2435d6);}['refresh'](){const {isReady:_0x1dfc12,isEnabled:_0x44298a,repository:_0xfc5a0,diff:_0xe1259b}=this['editor']['plugins']['get'](d),_0x17824a=_0xe1259b&&_0xfc5a0['getLaterVisibleRevision'](_0xe1259b['newRevisionId']);this['isEnabled']=_0x1dfc12&&_0x44298a&&Boolean(_0x17824a);}}class yt extends _0x1a2005{['_step'];constructor(_0x48f094,{direction:_0xa32c5c}){super(_0x48f094);const _0x5a3126=_0x48f094['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0xa32c5c?0x1:-0x1,this['listenTo'](_0x5a3126,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x5a3126,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x5a3126,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x4e5281=this['editor'],_0x36bf56=_0x4e5281['plugins']['get'](d),{isNavigationMode:_0x4b8370,currentChangeNumber:_0x1e4328}=_0x36bf56;let _0x43ade7;if(_0x36bf56['activeChange']=_0x4b8370?_0x36bf56['diff']['changes']['get'](_0x1e4328+this['_step']):_0x36bf56['diff']['changes']['first'],_0x36bf56['activeChange']['data']['isOnRoot'])_0x43ade7=_0x4e5281['editing']['view']['getDomRoot'](_0x36bf56['activeChange']['rootName']);else{const _0x313639=_0x4e5281['model']['markers']['get']('revision:'+_0x36bf56['activeChange']['id']);_0x43ade7=_0x2034e0(_0x4e5281['editing'],_0x313639);}_0x2b8009({'target':_0x43ade7,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x4ee8e1,currentChangeNumber:_0x11efab,numberOfChanges:_0x4cc512,isReady:_0x2531cf,isEnabled:_0x215942}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x215942&&_0x2531cf&&_0x4cc512)&&(!_0x4ee8e1||(0x1===this['_step']?_0x11efab<_0x4cc512-0x1:_0x11efab>0x0));}}class _i extends _0x3e8a1e{constructor(_0x5ac4ad){super(_0x5ac4ad);const _0x5d7ead=this['bindTemplate'],_0x5abc5d=new _0x7c7548(_0x5ac4ad),_0x2840b3=new _0x7c7548(_0x5ac4ad);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',(_0x5b4808,_0x4b4b93)=>_0x5b4808&&_0x4b4b93>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x3ef713,_0x53aa71,_0x4ca8a1,_0x17ab11)=>{if(!_0x3ef713)return m(_0x5ac4ad,'Loading...');if(!_0x4ca8a1)return m(_0x5ac4ad,'No\x20changes');const _0x351bf3=m(_0x5ac4ad,'NUMBER_OF_CHANGES',_0x4ca8a1);return _0x17ab11?m(_0x5ac4ad,'X_OF_Y_CHANGES',[_0x53aa71+0x1,_0x4ca8a1]):_0x351bf3;}),_0x5abc5d['set']({'label':m(_0x5ac4ad,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x4f1cce}),_0x2840b3['set']({'label':m(_0x5ac4ad,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0xa0a8d8}),_0x5abc5d['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x2840b3['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x5abc5d['on']('execute',()=>this['fire']('execute','backward')),_0x2840b3['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',_0x5d7ead['if']('_isStatusLabelVisible','ck-hidden',_0x5d1e05=>!_0x5d1e05)]},'children':[{'text':_0x5d7ead['to']('isNavigationMode',_0x1f17d0=>_0x1f17d0?m(_0x5ac4ad,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x5ac4ad,'Total')+':\x20')}]},{'text':_0x5d7ead['to']('_statusText')}]},new _0x484852(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x5abc5d,_0x2840b3]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x10397b{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x14fdf8=this['editor']['editing']['view'];_0x14fdf8['change'](_0xb3548a=>{for(const _0x5950c3 of _0x14fdf8['document']['roots'])_0xb3548a['addClass'](ce,_0x5950c3);});}['hide'](){const _0xdbbdad=this['editor']['editing']['view'];_0xdbbdad['change'](_0x2f9a74=>{for(const _0x4cd1c8 of _0xdbbdad['document']['roots'])_0x2f9a74['removeClass'](ce,_0x4cd1c8);});}}class w extends _0x10397b{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,le];}['init'](){const _0x46c484=this['editor'],_0x164f46=_0x46c484['plugins']['get'](d),_0x393779=_0x46c484['plugins']['get'](le);_0x46c484['ui']['componentFactory']['add']('exitToEditing',_0x708fa9=>{const _0x19ff76=new _0x7c7548(_0x708fa9);return _0x19ff76['set']({'label':m(_0x708fa9,'Back\x20to\x20editing'),'icon':_0x2c24a1,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x19ff76,'execute',()=>{_0x46c484['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x19ff76;}),_0x46c484['ui']['componentFactory']['add']('restoreRevision',_0x5b4c94=>{const _0xe51393=new _0x7c7548(_0x5b4c94);return _0xe51393['set']({'label':m(_0x5b4c94,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0xe51393['bind']('isEnabled')['to'](_0x46c484['commands']['get']('restoreRevision')),this['listenTo'](_0xe51393,'execute',()=>_0x46c484['execute']('restoreRevision')),_0xe51393;}),_0x46c484['ui']['componentFactory']['add']('changesNavigation',_0x49be10=>{const _0x1c048c=new _i(_0x49be10),_0x3633be=_0x46c484['commands']['get']('showPreviousChange'),_0x47ffc0=_0x46c484['commands']['get']('showNextChange');return _0x1c048c['bind']('isBackwardNavigationEnabled')['to'](_0x3633be,'isEnabled'),_0x1c048c['bind']('isForwardNavigationEnabled')['to'](_0x47ffc0,'isEnabled'),_0x1c048c['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x164f46),this['listenTo'](_0x1c048c,'execute',(_0x456ef9,_0x20ee67)=>{_0x46c484['execute']('forward'===_0x20ee67?'showNextChange':'showPreviousChange');}),_0x1c048c;}),_0x393779['show'](),_0x164f46['on']('change:isReady',(_0x5c0184,_0x7a8d07,_0x433d7f)=>{_0x433d7f?_0x393779['hide']():_0x393779['show']();});}}class mt extends at{['_resizeObserver']=null;constructor(_0x5e85d6,_0x963865){super(_0x5e85d6,_0x963865);const _0x20f0a6=this['bindTemplate'];this['set']({'label':m(_0x5e85d6,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x5e85d6,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x20f0a6['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new pt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x4991a2=this['fieldView']['element'];this['_tooltipString']=_0x4991a2['scrollWidth']>_0x4991a2['clientWidth']&&_0x4991a2['value']||'';}}class oi extends _0x3e8a1e{constructor(_0x102109,_0x3a64b7,_0x1c5f2b){super(_0x102109);const _0x5328a2=new _0x2bfb35();_0x5328a2['set']({'content':_0x44c29d,'viewBox':'0\x200\x2011\x2010'});const _0x4bcb85=['ck','ck-revision-history-sidebar__revision-author'];_0x1c5f2b&&_0x4bcb85['push']('ck-revision-history-sidebar__revision-author_creator');const _0x4a69c8=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x102109,_0x1c5f2b?'Revision\x20creator':'Revision\x20author')},'children':[_0x5328a2,_0x3a64b7['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x4bcb85},'children':_0x4a69c8});}}function ni(_0x1c4a88,_0x5cfaae){const _0x2fadf2=_0x1c4a88['bindTemplate'],_0xb7db38=_0x1c4a88['locale'],_0x5661f3=_0xa0cca7(_0xb7db38);_0x5661f3['panelPosition']='sw';const _0x1c73e3=function(_0x1973cc,_0x4628c8){const _0x53714=function(_0x43a905,_0x349a12){const _0x2269b3=_0x43a905['locale'],_0xef41a4={'Compare\x20against\x20selected':m(_0x2269b3,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x2269b3,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x2269b3,'Restore\x20this\x20revision')};return _0x349a12['map'](_0x5ad8bd=>{const _0x4c2c4a=_0xef41a4[_0x5ad8bd['name']];return _0x4c2c4a&&_0x4c2c4a!==_0x5ad8bd['name']&&(_0x5ad8bd['name']=_0x4c2c4a),_0x5ad8bd;});}(_0x1973cc,_0x4628c8),_0x262ca0=new _0x48b870();for(const _0x5214ad of _0x53714){const _0x28e9db={'type':'button','model':new to({'label':_0x5214ad['name'],'class':_0x5214ad['class'],'withText':!0x0,'role':'menuitem','_action':_0x5214ad['action']})};_0x28e9db['model']['bind']('isEnabled')['to'](_0x1973cc,'isActionsDropdownOpen',_0x1e373c=>'function'!=typeof _0x5214ad['isEnabled']||(!_0x1e373c||_0x5214ad['isEnabled'](_0x1973cc))),_0x262ca0['add'](_0x28e9db);}return _0x262ca0;}(_0x1c4a88,_0x5cfaae);return _0x1c4a88['bind']('isActionsDropdownOpen')['to'](_0x5661f3,'isOpen'),_0x5661f3['buttonView']['set']({'label':m(_0xb7db38,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x210fe1}),_0x5661f3['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x2fadf2['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x2fadf2['to'](_0x4038be=>_0x4038be['stopPropagation']())}}),_0x5661f3['on']('execute',_0x4f87d8=>{_0x1c4a88['isReady']&&'function'==typeof _0x4f87d8['source']['_action']&&_0x4f87d8['source']['_action'](_0x1c4a88);}),_0x3d07ff(_0x5661f3,_0x1c73e3,{'role':'menu'}),_0x5661f3['listenTo'](_0x1c4a88,'change:isActionsDropdownOpen',(_0x5c1ddd,_0x4d3b7e,_0x53d737)=>{if(_0x53d737)for(const _0x9c592b of _0x5661f3['listView']['items']){const _0x5d0dbb=_0x9c592b['children']['first'],_0x3c9864=_0x5cfaae['find'](_0x2d1599=>_0x2d1599['action']===_0x5d0dbb['_action'])['isVisible'];_0x9c592b['isVisible']=void 0x0===_0x3c9864||_0x3c9864(_0x1c4a88);}}),_0x5661f3;}class ai extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x3bd8cc(_0x3e8a1e){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x3bef14,_0x78303a,_0x5d225b,_0x31cb85){super(_0x3bef14);const _0x2955b8=this['bindTemplate'],_0x2bbde6=function(_0x1416ab,_0x3690a8){const _0x4dc7a0=Array['from'](_0x3690a8['authors'])['filter'](_0x4cee12=>_0x4cee12!=_0x3690a8['creator']);return _0x3690a8['creator']&&_0x4dc7a0['unshift'](_0x3690a8['creator']),_0x4dc7a0['map'](_0x47136d=>new oi(_0x1416ab,_0x47136d,_0x47136d==_0x3690a8['creator']));}(_0x3bef14,_0x78303a);this['id']=_0x78303a['id'],this['_revision']=_0x78303a,this['_requireRevisionName']=_0x31cb85,this['bind']('name','createdAt')['to'](_0x78303a),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x22200a=>{return _0x159642=_0x3bef14['uiLanguage'],(_0x36a0e8=_0x22200a)['toLocaleDateString'](_0x159642,{'month':'long','day':'numeric'})+',\x20'+_0x36a0e8['toLocaleTimeString'](_0x159642,{'hour':'numeric','minute':'numeric'});var _0x159642,_0x36a0e8;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new mt(_0x3bef14,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x16da74=>_0x16da74||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x559361,_0x47e58f)=>_0x559361&&_0x47e58f),this['revisionActionsView']=_0x5d225b&&_0x5d225b['length']?ni(this,_0x5d225b):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x2955b8['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x2955b8['if']('isEnabled','ck-disabled',_0x66a83d=>!_0x66a83d),_0x2955b8['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x2955b8['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x2955b8['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':_0x2955b8['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':_0x2bbde6}]},this['revisionActionsView']],'on':{'click':_0x2955b8['to'](_0x2eb22a=>{_0x2eb22a['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0xa3796c=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0xa3796c,'change',()=>{this['_requireRevisionName']&&!_0xa3796c['value']||this['fire']('setName',{'id':this['id'],'name':_0xa3796c['value']}),_0xa3796c['value']||(_0xa3796c['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function vi(_0x2e961b,_0x2d5f39){const _0x11dcc8=_0x4f43eb['fromJSDate'](_0x2e961b)['setLocale'](_0x2d5f39),_0x1c9053=_0x4f43eb['local'](),_0xfec37e=_0x1c9053['minus']({'days':0x1})['startOf']('day');let _0x27eb27,_0x5b259f;return _0x11dcc8['hasSame'](_0x1c9053,'day')?(_0x27eb27=_0x11dcc8['startOf']('day')['toJSDate'](),_0x5b259f=_0x11dcc8['toRelativeCalendar']()):_0x11dcc8['hasSame'](_0xfec37e,'day')?(_0x27eb27=_0xfec37e['toJSDate'](),_0x5b259f=_0x11dcc8['toRelativeCalendar']()):_0x11dcc8['hasSame'](_0x1c9053,'week')?(_0x27eb27=_0x11dcc8['startOf']('week')['toJSDate'](),_0x5b259f=_0x11dcc8['weekdayLong']||''):_0x11dcc8['hasSame'](_0x1c9053,'year')?(_0x27eb27=_0x11dcc8['startOf']('month')['toJSDate'](),_0x5b259f=_0x11dcc8['monthLong']||''):(_0x27eb27=_0x11dcc8['startOf']('year')['toJSDate'](),_0x5b259f=String(_0x11dcc8['year'])),{'startDate':_0x27eb27,'localizedPeriodName':_0x5b259f};}class mi extends _0x3e8a1e{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x1fc77f,_0x332bc2,_0x42aeee,_0x28ddb0){super(_0x1fc77f);const _0x312e61=vi(_0x332bc2,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x332bc2,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x42aeee,this['_requireRevisionName']=_0x28ddb0,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':_0x312e61}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0xf8a203){const _0x25e173=new ai(this['locale'],_0xf8a203,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x25e173);}['removeRevision'](_0x36d095){const _0x1bac57=this['revisionViews']['find'](_0x1fb85c=>_0x1fb85c['id']===_0x36d095['id']);this['revisionViews']['remove'](_0x1bac57);}}class is extends _0x3e8a1e{constructor(_0x3ae3f2){super(_0x3ae3f2);const _0x48db6a=new _0x2bfb35();_0x48db6a['content']=_0x280652,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x48db6a,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x3ae3f2,'Revision\x20history')]}]});}}class di extends _0x3e8a1e{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x347045,_0x31a34d,_0x580679,_0x333a62){super(_0x347045);const _0x211255=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x31a34d,this['_revisionActions']=_0x580679,this['_requireRevisionName']=_0x333a62,this['on']('select',(_0x58f02b,_0x5624aa)=>{this['fire']('revisionSelected',_0x5624aa);}),this['on']('setName',(_0x3f34ed,_0x2f4af6)=>{this['fire']('revisionSetName',_0x2f4af6);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new is(_0x347045),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x211255['if']('isEnabled','ck-disabled',_0x99f7=>!_0x99f7)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x30dcf1 of this['_revisions'])this['_addRevision'](_0x30dcf1);this['_revisions']['on']('add',(_0x18b2de,_0x40558f)=>{this['_addRevision'](_0x40558f);}),this['_revisions']['on']('remove',(_0x59e57b,_0x5a1302)=>{this['_removeRevision'](_0x5a1302);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x1a31ed=>_0x1a31ed['revisionViews']['map'](_0x3e4523=>_0x3e4523))['flat']();}['selectRevision'](_0x4056a5){for(const _0x2b66c2 of this['revisionViews'])_0x4056a5&&_0x4056a5['id']===_0x2b66c2['id']?_0x2b66c2['select']():_0x2b66c2['deselect']();}['highlightRevisions'](_0x5bbf56){for(const _0x2bb5fd of this['revisionViews'])_0x5bbf56['some'](({id:_0x1f7a6e})=>_0x1f7a6e===_0x2bb5fd['id'])?_0x2bb5fd['highlight']():_0x2bb5fd['unhighlight']();}['_addRevision'](_0x19c7c0){const _0x5ae58c=vi(_0x19c7c0['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x38749c=this['timePeriodViews']['get'](0x0);_0x38749c&&_0x38749c['startDate']['getTime']()===_0x5ae58c['getTime']()||(_0x38749c=new mi(this['locale'],_0x5ae58c,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x38749c)),_0x38749c['addRevision'](_0x19c7c0);}['_removeRevision'](_0x2aa018){const _0x343cd1=vi(_0x2aa018['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x343cd1)['removeRevision'](_0x2aa018);}['_getTimePeriodViewByStartDate'](_0x135230){return this['timePeriodViews']['find'](_0x372ce1=>_0x372ce1['startDate']['getTime']()===_0x135230['getTime']());}}class g extends _0x10397b{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
27
27
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
|
-
bt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(
|
|
29
|
-
it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x4ac040,_0x48181a){super(_0x48181a),this['sourceElement']=_0x4ac040,this['model']['document']['createRoot']();const _0x35d123=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x35d123);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x4c7f76,_0x2c789c){const _0x401298=new this(_0x4c7f76,_0x2c789c);return await _0x401298['initPlugins'](),await _0x401298['ui']['init'](_0x4c7f76),await _0x401298['data']['init'](_0x401298['config']['get']('initialData')||''),_0x401298['fire']('ready'),_0x401298;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0x9eb535{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x56e8cd){function _0x561b4a(_0x51a5ca){return _0x51a5ca['map'](_0x10fe71=>String['fromCharCode'](_0x10fe71))['join']('');}super(_0x56e8cd),this['result']='end',_0x56e8cd[_0x561b4a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x561b4a([0x76,0x69,0x65,0x77])][_0x561b4a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x561b4a([0x61,0x75,0x74,0x6f]),_0x56e8cd[_0x561b4a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x561b4a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x561b4a([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x561b4a([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x561b4a([0x6f,0x6b])});}}class k extends _0x9eb535{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x1b6e85){if(super(_0x1b6e85),!this['editor']['config']['get']('revisionHistory'))throw new _0x435c04('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x106891=>this['_showRevisionViewer']({..._0x106891,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x3d417d=>this['_closeRevisionViewer'](_0x3d417d)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x127724=>this['_restoreRevision'](_0x127724)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x55cf39){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x55cf39;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x31697d){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x31697d);}['getRevision'](_0x571123){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x571123);}['getRevisions'](_0x33f5c0){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x33f5c0||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x1e4a0f=this['editor'],_0x26ba1f=_0x418946(_0x1e4a0f,p),_0x2f03c5=_0x1e4a0f['plugins']['get']('RevisionTracker'),_0x4bd765=_0x1e4a0f['plugins']['get']('Users')['users'];return _0x26ba1f['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x26ba1f['lazyRoots'],(_0x26ba1f['plugins']['push'](Rt,d,w,class extends _0x9eb535{static get['requires'](){return[d,'Users'];}['init'](){const _0x26c970=this['editor']['plugins']['get']('Users');for(const _0x5cf0a2 of _0x4bd765)_0x5cf0a2['isAnonymous']||_0x26c970['getUser'](_0x5cf0a2['id'])||_0x26c970['addUser'](_0x5cf0a2);const _0x26871c=_0x2f03c5['repository']['getRevisions']();let _0x3f7316=null;const _0x5871cc=this['editor']['plugins']['get']('RevisionViewer');_0x5871cc['adapter']=_0x2f03c5['adapter'],_0x5871cc['bind']('isEnabled')['to'](_0x2f03c5),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x1e4a0f,'isReadOnly',_0x3ce30d=>!_0x3ce30d);for(const _0x1c9a73 of _0x26871c){const _0xba41f5=null===_0x1c9a73['creator'];if(_0xba41f5&&_0x1c9a73['toVersion']===_0x1c9a73['fromVersion'])continue;const _0x109fad=_0x1c9a73['toJSON']();_0x5871cc['addRevisionData'](_0x109fad,(_0x29b784,_0x59977b,_0x43ea98)=>{if(_0xba41f5){if(_0x3f7316)_0x3f7316['_update'](_0x29b784,_0x59977b);else{if(!_0x59977b){const _0x4699a5=_0x43ea98['toJSON']();_0x4699a5['id']=_0x2eb9f0(),_0x2f03c5['saveRevision'](_0x4699a5,_0x43ea98['toVersion'])['then'](_0x3c82fa=>{_0x3f7316=_0x3c82fa;});}}}else _0x1c9a73['_update'](_0x29b784,_0x59977b);});}}},g),_0x26ba1f);}['_enhanceShowRevisionViewerCallback'](){const _0x4357df=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x891da6=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x3ba810=this['editor']['plugins']['get']('Autosave');await _0x3ba810['save']();}else await _0x891da6['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x39156c=this['editor']['plugins']['get']('Dialog');_0x39156c['isOpen']&&_0x39156c['hide']();}const _0x58d6af=this['_getRevisionViewerEditorConfig']();return _0x4357df(_0x58d6af)['then'](_0x1d27c6=>{return(this['_viewerEditor']=_0x1d27c6,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x1d27c6;})['catch'](_0x8e5019=>(console['error'](_0x8e5019),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x517ba9=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x517ba9(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x32d025=this['editor']['plugins']['get']('Annotations');_0x32d025['refreshVisibility'](),_0x32d025['refreshPositioning']();}})));}['_showRevisionViewer'](_0x518620){const _0x2886c5=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x189331=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x389c80=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x389c80,_0x518620)['then'](_0x4f563d=>(_0x189331['style']['display']='block',_0x2886c5['style']['display']='none',_0x4f563d));}['_closeRevisionViewer'](_0x5eac49){const _0x17fe80=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x17fe80['style']['display']='',_0x5eac49['destroy']();}async['_restoreRevision'](_0x2a5bf3){const _0x546c91=this['editor'],_0x16f97b=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x343137=_0x546c91['plugins']['get']('RevisionTracker'),_0x2334a2=_0x16f97b['repository']['getRevision'](_0x2a5bf3);let _0x4b0300,_0x1aebc7,_0xae7d1e;try{_0x4b0300=await _0x16f97b['getRevisionData'](_0x2334a2),_0x1aebc7=await _0x16f97b['getRevisionRootsAttributes'](_0x2334a2);}catch(_0x52c148){return void console['error'](_0x52c148);}_0x546c91['model']['change'](_0x412d41=>{for(const _0x10e645 of Array['from'](_0x546c91['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x412d41['removeMarker'](_0x10e645);}),_0x16f97b['isReady']=!0x1,_0x546c91['model']['enqueueChange'](_0x1879e6=>{_0x1879e6['setSelection'](null),_0x1879e6['removeSelectionAttribute'](_0x546c91['model']['document']['selection']['getAttributeKeys']());const _0x3f694e=Object['keys'](_0x4b0300);for(const _0x113d9f of _0x546c91['model']['document']['roots'])'$graveyard'!=_0x113d9f['rootName']&&_0x113d9f['isAttached']()&&!_0x3f694e['includes'](_0x113d9f['rootName'])&&_0x1879e6['detachRoot'](_0x113d9f);for(const _0x4b57ca of _0x3f694e){let _0x3a6994=_0x546c91['model']['document']['getRoot'](_0x4b57ca);_0x3a6994&&_0x3a6994['isAttached']()||(_0x3a6994=_0x1879e6['addRoot'](_0x4b57ca));const _0x20e0d5=_0x1aebc7[_0x4b57ca],_0x2f2ae0=Object['keys'](_0x20e0d5),_0x59a841=_0x4b0300[_0x4b57ca];for(const _0x54dae3 of _0x3a6994['getAttributeKeys']())_0x2f2ae0['includes'](_0x54dae3)||_0x1879e6['removeAttribute'](_0x54dae3,_0x3a6994);for(const _0x5bdf81 of _0x2f2ae0)_0x1879e6['setAttribute'](_0x5bdf81,_0x1aebc7[_0x4b57ca][_0x5bdf81],_0x3a6994);_0x1879e6['remove'](_0x1879e6['createRangeIn'](_0x3a6994)),_0x1879e6['insert'](_0x546c91['data']['parse'](_0x59a841,_0x3a6994),_0x3a6994,0x0);}});const _0x3fa36e=m(_0x546c91['locale'],'Restored');if(_0x2334a2['name'])_0xae7d1e=-0x1==_0x2334a2['name']['indexOf'](_0x3fa36e)?_0x3fa36e+':\x20'+_0x2334a2['name']:_0x2334a2['name'];else _0xae7d1e=_0x3fa36e+':\x20'+(_0x2334a2['createdAt']['toLocaleDateString'](_0x546c91['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x2334a2['createdAt']['toLocaleTimeString'](_0x546c91['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x343137['saveRevision']({'name':_0xae7d1e}),_0x16f97b['isReady']=!0x0,_0x546c91['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,u as RevisionTracker,d as RevisionViewer,le as RevisionViewerLoadingOverlay,w as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};
|
|
28
|
+
bt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x30262d){super(_0x30262d),this['_revisionViewer']=_0x30262d['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x31ebf7=this['_revisionsRepository']['_revisions'],_0x5c5f42=this['_createRevisionActions'](),_0x28ed2a=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new di(this['editor']['locale'],_0x31ebf7,_0x5c5f42,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',(_0x50a458,_0x1da344)=>{_0x1da344['revisionViews']['on']('add',(_0x54003a,_0x423d2d)=>{_0x423d2d['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)),_0x28ed2a['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x2600e6=this['_revisionsRepository']['getRevision'](0x0);if(_0x2600e6){const _0x2c3983=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x2600e6['id']);this['_revisionViewer']['compare'](_0x2600e6,_0x2c3983);}}['_handleRevisionSelected'](_0x4e65e6,_0x3fa374){const _0xc64911=this['_revisionsRepository']['getRevision'](_0x3fa374['id']),_0x1d62f1=this['_revisionsRepository']['getEarlierVisibleRevision'](_0xc64911['id']);this['_revisionViewer']['compare'](_0xc64911,_0x1d62f1);}['_handleRevisionSetName'](_0x440256,_0x189508){this['_revisionsRepository']['getRevision'](_0x189508['id'])['setName'](_0x189508['name']);}['_handleDiffChange'](_0x480247,_0x586260,_0x26ed72){const _0x3fdf42=this['_revisionsRepository']['getRevisionsInDiff'](_0x26ed72);_0x3fdf42['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x3fdf42),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x3fdf42[0x0]));}['_createRevisionActions'](){const _0x568fff=this['editor'],_0x1e63a1=g['availableRevisionActions'],_0x22eec9=_0x568fff['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x22eec9['length'])return _0x22eec9['map'](_0x354d31=>{const _0x2454ee='string'==typeof _0x354d31?Object['assign']({},_0x1e63a1[_0x354d31]):_0x354d31;return _0x2454ee['action']=_0x2454ee['action']['bind'](this,_0x568fff),_0x2454ee['isVisible']&&(_0x2454ee['isVisible']=_0x2454ee['isVisible']['bind'](this,_0x568fff)),_0x2454ee;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x347538},_0x2d7f06)=>{const _0x43a940=_0x347538['get'](d),_0x4fe666=_0x43a940['repository'];let _0x5967e6=_0x43a940['diff']['newRevisionId'],_0x1c834d=_0x2d7f06['id'];_0x4fe666['getIndex'](_0x5967e6)>_0x4fe666['getIndex'](_0x1c834d)&&([_0x5967e6,_0x1c834d]=[_0x1c834d,_0x5967e6]),_0x43a940['compare'](_0x5967e6,_0x1c834d);},'isVisible':({plugins:_0x36d3cc},_0x3f2f77)=>{const _0x394d1a=_0x36d3cc['get'](d);return!(_0x394d1a['repository']['getRevisionsInDiff'](_0x394d1a['diff'])['length']>0x2)&&!_0x3f2f77['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x2c9f3c,{id:_0x1a5983})=>{_0x2c9f3c['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x1a5983);},'isVisible':({plugins:_0x21a2a3},_0x2c351d)=>!!_0x21a2a3['get'](d)['repository']['getLaterVisibleRevision'](_0x2c351d['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x3d3f7e},{id:_0x1a6449,revisionNameView:_0xef45bd})=>{const _0x4b55f3=_0x3d3f7e['get'](d),_0x54f856=_0x4b55f3['repository']['getEarlierVisibleRevision'](_0x1a6449);_0x4b55f3['compare'](_0x1a6449,_0x54f856),_0xef45bd['focus'](),_0xef45bd['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x2fe930,_0x10a495){super(_0x2fe930),this['_view']=_0x10a495,this['_toolbarConfig']=ot(_0x2fe930['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0xe3a0fc){const _0x46a121=this['editor'],_0x54b665=this['view'],_0x39a97e=_0x46a121['editing']['view'],_0x19cf52=_0x54b665['editable'],_0x374746=_0x39a97e['document']['getRoot']();_0x19cf52['name']=_0x374746['rootName'],_0x54b665['render']();const _0x39cdff=_0x19cf52['element'];this['setEditableElement'](_0x19cf52['name'],_0x39cdff),_0x54b665['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x39a97e['attachDomRoot'](_0x39cdff),this['_elementReplacer']['replace'](_0xe3a0fc,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x43a43f=this['view'],_0x48e473=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x48e473['detachDomRoot'](_0x43a43f['editable']['name']),_0x43a43f['destroy']();}['_initToolbar'](){const _0x39ff18=this['view'];_0x39ff18['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x39ff18['stickyPanel']['limiterElement']=_0x39ff18['element'],_0x39ff18['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x331ae3})=>_0x331ae3),_0x39ff18['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x39ff18['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x55ba2d,_0x1b4250,_0x502f73={}){super(_0x55ba2d),this['stickyPanel']=new lt(_0x55ba2d),this['toolbar']=new nt(_0x55ba2d,{'shouldGroupWhenFull':_0x502f73['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x55ba2d,_0x1b4250);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class R extends/* #__PURE__ -- @preserve */
|
|
29
|
+
it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x2828f6,_0x4a4257){super(_0x4a4257),this['sourceElement']=_0x2828f6,this['model']['document']['createRoot']();const _0x24755f=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x24755f);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x5309ab,_0x19d587){const _0x12264e=new this(_0x5309ab,_0x19d587);return await _0x12264e['initPlugins'](),await _0x12264e['ui']['init'](_0x5309ab),await _0x12264e['data']['init'](_0x12264e['config']['get']('initialData')||''),_0x12264e['fire']('ready'),_0x12264e;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0x10397b{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1e7b5e){function _0x451d27(_0x25f8fd){return _0x25f8fd['map'](_0x5a6907=>String['fromCharCode'](_0x5a6907))['join']('');}super(_0x1e7b5e),this['result']='end',_0x1e7b5e[_0x451d27([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x451d27([0x76,0x69,0x65,0x77])][_0x451d27([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x451d27([0x61,0x75,0x74,0x6f]),_0x1e7b5e[_0x451d27([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x451d27([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x451d27([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x451d27([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x451d27([0x6f,0x6b])});}}class k extends _0x10397b{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x3f2674){if(super(_0x3f2674),!this['editor']['config']['get']('revisionHistory'))throw new _0x198ca7('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0xe456ec=>this['_showRevisionViewer']({..._0xe456ec,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x406698=>this['_closeRevisionViewer'](_0x406698)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x26e847=>this['_restoreRevision'](_0x26e847)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x493748){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x493748;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x26c30d){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x26c30d);}['getRevision'](_0x4e4ca9){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x4e4ca9);}['getRevisions'](_0x26326a){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x26326a||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x5394bb=this['editor'],_0x4a8231=_0x45cf4e(_0x5394bb,p),_0x1a090e=_0x5394bb['plugins']['get']('RevisionTracker'),_0x5adf6f=_0x5394bb['plugins']['get']('Users')['users'];return _0x4a8231['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x4a8231['lazyRoots'],(_0x4a8231['plugins']['push'](Rt,d,w,class extends _0x10397b{static get['requires'](){return[d,'Users'];}['init'](){const _0x5da853=this['editor']['plugins']['get']('Users');for(const _0x24cb6d of _0x5adf6f)_0x24cb6d['isAnonymous']||_0x5da853['getUser'](_0x24cb6d['id'])||_0x5da853['addUser'](_0x24cb6d);const _0xecf386=_0x1a090e['repository']['getRevisions']();let _0x52ff75=null;const _0x58962e=this['editor']['plugins']['get']('RevisionViewer');_0x58962e['adapter']=_0x1a090e['adapter'],_0x58962e['bind']('isEnabled')['to'](_0x1a090e),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x5394bb,'isReadOnly',_0x4f1a96=>!_0x4f1a96);for(const _0x5e887a of _0xecf386){const _0x5cafc2=null===_0x5e887a['creator'];if(_0x5cafc2&&_0x5e887a['toVersion']===_0x5e887a['fromVersion'])continue;const _0x595fc8=_0x5e887a['toJSON']();_0x58962e['addRevisionData'](_0x595fc8,(_0x2615ab,_0x2034a2,_0x1bbea2)=>{if(_0x5cafc2){if(_0x52ff75)_0x52ff75['_update'](_0x2615ab,_0x2034a2);else{if(!_0x2034a2){const _0x51a749=_0x1bbea2['toJSON']();_0x51a749['id']=_0x52a2cf(),_0x1a090e['saveRevision'](_0x51a749,_0x1bbea2['toVersion'])['then'](_0x176974=>{_0x52ff75=_0x176974;});}}}else _0x5e887a['_update'](_0x2615ab,_0x2034a2);});}}},g),_0x4a8231);}['_enhanceShowRevisionViewerCallback'](){const _0x564242=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x12ef96=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x5af07c=this['editor']['plugins']['get']('Autosave');await _0x5af07c['save']();}else await _0x12ef96['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x187f3a=this['editor']['plugins']['get']('Dialog');_0x187f3a['isOpen']&&_0x187f3a['hide']();}const _0x1a9543=this['_getRevisionViewerEditorConfig']();return _0x564242(_0x1a9543)['then'](_0x1e38d7=>{return(this['_viewerEditor']=_0x1e38d7,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x1e38d7;})['catch'](_0x2c37ec=>(console['error'](_0x2c37ec),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x2e621d=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x2e621d(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x2fe332=this['editor']['plugins']['get']('Annotations');_0x2fe332['refreshVisibility'](),_0x2fe332['refreshPositioning']();}})));}['_showRevisionViewer'](_0x26ff67){const _0xafd3a5=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x48a656=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x1fc76f=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x1fc76f,_0x26ff67)['then'](_0xc59d2a=>(_0x48a656['style']['display']='block',_0xafd3a5['style']['display']='none',_0xc59d2a));}['_closeRevisionViewer'](_0x56edfd){const _0x24054e=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x24054e['style']['display']='',_0x56edfd['destroy']();}async['_restoreRevision'](_0x369370){const _0x3f7129=this['editor'],_0x3c2a68=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x3ec8c7=_0x3f7129['plugins']['get']('RevisionTracker'),_0x2c06a0=_0x3c2a68['repository']['getRevision'](_0x369370);let _0x2bf91e,_0x38686f,_0x11c076;try{_0x2bf91e=await _0x3c2a68['getRevisionData'](_0x2c06a0),_0x38686f=await _0x3c2a68['getRevisionRootsAttributes'](_0x2c06a0);}catch(_0xccf2a3){return void console['error'](_0xccf2a3);}_0x3f7129['model']['change'](_0x1efe24=>{for(const _0x262601 of Array['from'](_0x3f7129['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x1efe24['removeMarker'](_0x262601);}),_0x3c2a68['isReady']=!0x1,_0x3f7129['model']['enqueueChange'](_0x30f1dc=>{_0x30f1dc['setSelection'](null),_0x30f1dc['removeSelectionAttribute'](_0x3f7129['model']['document']['selection']['getAttributeKeys']());const _0x2612c4=Object['keys'](_0x2bf91e);for(const _0x57661c of _0x3f7129['model']['document']['roots'])'$graveyard'!=_0x57661c['rootName']&&_0x57661c['isAttached']()&&!_0x2612c4['includes'](_0x57661c['rootName'])&&_0x30f1dc['detachRoot'](_0x57661c);for(const _0x29901f of _0x2612c4){let _0x24c9f6=_0x3f7129['model']['document']['getRoot'](_0x29901f);_0x24c9f6&&_0x24c9f6['isAttached']()||(_0x24c9f6=_0x30f1dc['addRoot'](_0x29901f));const _0x4a9796=_0x38686f[_0x29901f],_0x46db78=Object['keys'](_0x4a9796),_0x49910b=_0x2bf91e[_0x29901f];for(const _0x100376 of _0x24c9f6['getAttributeKeys']())_0x46db78['includes'](_0x100376)||_0x30f1dc['removeAttribute'](_0x100376,_0x24c9f6);for(const _0x5a3a44 of _0x46db78)_0x30f1dc['setAttribute'](_0x5a3a44,_0x38686f[_0x29901f][_0x5a3a44],_0x24c9f6);_0x30f1dc['remove'](_0x30f1dc['createRangeIn'](_0x24c9f6)),_0x30f1dc['insert'](_0x3f7129['data']['parse'](_0x49910b,_0x24c9f6),_0x24c9f6,0x0);}});const _0xaa3b1d=m(_0x3f7129['locale'],'Restored');if(_0x2c06a0['name'])_0x11c076=-0x1==_0x2c06a0['name']['indexOf'](_0xaa3b1d)?_0xaa3b1d+':\x20'+_0x2c06a0['name']:_0x2c06a0['name'];else _0x11c076=_0xaa3b1d+':\x20'+(_0x2c06a0['createdAt']['toLocaleDateString'](_0x3f7129['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x2c06a0['createdAt']['toLocaleTimeString'](_0x3f7129['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x3ec8c7['saveRevision']({'name':_0x11c076}),_0x3c2a68['isReady']=!0x0,_0x3f7129['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,u as RevisionTracker,d as RevisionViewer,le as RevisionViewerLoadingOverlay,w as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};
|