@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20250227.0 → 0.0.0-nightly-next-20250227.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +1 -1
- package/build/revision-history.js +1 -1
- package/ckeditor5-metadata.json +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 +12 -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/theme/icons/arrow-down.svg +0 -1
- package/theme/icons/arrow-up.svg +0 -1
- package/theme/icons/revision-history.svg +0 -1
- package/theme/icons/user.svg +0 -1
package/dist/index.js
CHANGED
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ObservableMixin as
|
|
24
|
-
_0x361808(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x262f7a){super(),this['id']=_0x262f7a['id']||_0x4e1ee9(),this['creator']=_0x262f7a['creator']||null,this['authors']=_0x262f7a['authors']||[],this['diffData']=_0x262f7a['diffData']||null,this['toVersion']=_0x262f7a['toVersion']||0x0,this['fromVersion']=_0x262f7a['fromVersion']||0x0,this['set']('name',_0x262f7a['name']||''),this['set']('createdAt',_0x262f7a['createdAt']||new Date()),this['set']('attributes',_0x262f7a['attributes']||{});}['setName'](_0x32f8db){this['_update']({'name':_0x32f8db});}['setAttribute'](_0x1eb00a,_0x3a69c6){const _0x1b4055=_0xf7ee50(this['attributes']);_0x186c7c(_0x1b4055,_0x1eb00a,_0x3a69c6),this['_update']({'attributes':_0x1b4055});}['removeAttribute'](_0x33ae7d){const _0x3e58eb=_0xf7ee50(this['attributes']);_0x5d781c(_0x3e58eb,_0x33ae7d),this['_update']({'attributes':_0x3e58eb});}['_update'](_0x531a1f,_0x35e44a=!0x1){let _0x4e132e=!0x1;const _0x553351={'id':this['id']},_0x1d161a=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x5759cf of _0x1d161a){const _0x30a388=_0x531a1f[_0x5759cf];void 0x0!==_0x30a388&&_0x30a388!==this[_0x5759cf]&&(this[_0x5759cf]=_0x30a388,_0x553351[_0x5759cf]=_0x30a388,_0x4e132e=!0x0);}_0x4e132e&&(_0x553351['authors']&&(_0x553351['authorsIds']=_0x553351['authors']['map'](_0x266020=>_0x266020['id']),delete _0x553351['authors']),this['fire']('_update',_0x553351,_0x35e44a));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x265fed=>_0x265fed['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x53f3b9{['_revisions'];static get['requires'](){return[_0xf2dc20];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x5c0646){super(_0x5c0646),this['_revisions']=new _0x25f72c();}['afterInit'](){!async function(_0x13abc8){const _0x3360d9=_0x126c95([0x41,0x71,0x77,0x49,0x5a,0x46,0x61,0x78,0x6c,0x64,0x38,0x34,0x58,0x74,0x4b,0x79,0x63,0x31,0x47,0x42,0x55,0x7a,0x6e,0x35,0x6a,0x52,0x48,0x4e,0x62,0x4c,0x44,0x73,0x67,0x39,0x6f,0x50,0x43,0x65,0x53,0x57,0x72,0x59,0x76,0x75,0x51,0x4a,0x45,0x68,0x37,0x69,0x56,0x36,0x6d,0x33,0x66,0x30,0x4d,0x70,0x54,0x32,0x6b,0x4f]),_0x2962bb=0xeb829,_0x104c7f=0x6dfb5c61,_0x37e085=0x6dfc3cd1^_0x104c7f,_0x353161=window[_0x126c95([0x44,0x61,0x74,0x65])][_0x126c95([0x6e,0x6f,0x77])](),_0x2305da=_0x13abc8[_0x126c95([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2feb14=new window[(_0x126c95([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1313f8=>{_0x2305da[_0x126c95([0x6f,0x6e,0x63,0x65])](_0x126c95([0x72,0x65,0x61,0x64,0x79]),_0x1313f8);}),_0x285619={[_0x126c95([0x6b,0x74,0x79])]:_0x126c95([0x45,0x43]),[_0x126c95([0x75,0x73,0x65])]:_0x126c95([0x73,0x69,0x67]),[_0x126c95([0x63,0x72,0x76])]:_0x126c95([0x50,0x2d,0x32,0x35,0x36]),[_0x126c95([0x78])]:_0x126c95([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]),[_0x126c95([0x79])]:_0x126c95([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]),[_0x126c95([0x61,0x6c,0x67])]:_0x126c95([0x45,0x53,0x32,0x35,0x36])},_0x416e76=_0x2305da[_0x126c95([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x126c95([0x67,0x65,0x74])](_0x126c95([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4bc703(){let _0x4c3bc5,_0x33611b=null,_0x45af13=null;try{if(_0x416e76==_0x126c95([0x47,0x50,0x4c]))return _0x126c95([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4c3bc5=_0x3e73ab(),!_0x4c3bc5)return _0x126c95([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4c3bc5[_0x126c95([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x45af13=_0x33bd1a(_0x4c3bc5[_0x126c95([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4c3bc5[_0x126c95([0x6a,0x74,0x69])])),await _0x40c41a()?_0x4ece58()?_0x21b92b()?_0x126c95([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4d86c9()?(_0x4c3bc5[_0x126c95([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x126c95([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x33611b=_0x1caeab(_0x126c95([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4c3bc5[_0x126c95([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x126c95([0x74,0x72,0x69,0x61,0x6c])&&(_0x33611b=_0x1caeab(_0x126c95([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x463ae8()):_0x126c95([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x126c95([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x126c95([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x3975f3){return _0x126c95([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x21b92b(){const _0x5094bf=[_0x126c95([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x126c95([0x74,0x72,0x69,0x61,0x6c])][_0x126c95([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c3bc5[_0x126c95([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x353161/0x3e8:0xe10*_0x37e085;return _0x4c3bc5[_0x126c95([0x65,0x78,0x70])]<_0x5094bf;}function _0x4ece58(){const _0x1e6231=_0x4c3bc5[_0x126c95([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x1e6231)return!0x1;if(_0x1e6231[_0x126c95([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x126c95([0x2a])))return!0x0;if(_0x1e6231[_0x126c95([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x126c95([0x52,0x48])))return!0x0;if(_0x1e6231[_0x126c95([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x126c95([0x52,0x52,0x48]))){if(_0x2cb9b4())return!0x0;if(_0x2387eb()||_0x5eda77())return!0x0;}return!0x1;}function _0x4d86c9(){const _0x2f5797=_0x4c3bc5[_0x126c95([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2f5797||0x0==_0x2f5797[_0x126c95([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x51beea}=new URL(window[_0x126c95([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2f5797[_0x126c95([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51beea))return!0x0;const _0x27b209=_0x51beea[_0x126c95([0x73,0x70,0x6c,0x69,0x74])](_0x126c95([0x2e]));return _0x2f5797[_0x126c95([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5c2971=>_0x5c2971[_0x126c95([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x126c95([0x2a])))[_0x126c95([0x6d,0x61,0x70])](_0x8402=>_0x8402[_0x126c95([0x73,0x70,0x6c,0x69,0x74])](_0x126c95([0x2e])))[_0x126c95([0x73,0x6f,0x6d,0x65])](_0x2ebaa6=>_0x27b209[_0x126c95([0x65,0x76,0x65,0x72,0x79])]((_0x36f191,_0x4b5f17)=>_0x2ebaa6[_0x4b5f17]===_0x36f191||_0x2ebaa6[_0x4b5f17]===_0x126c95([0x2a])));}function _0x463ae8(){return _0x33611b&&_0x45af13?new window[(_0x126c95([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4ffd49,_0x120e77)=>{_0x33611b[_0x126c95([0x74,0x68,0x65,0x6e])](_0x4ffd49,_0x120e77),_0x45af13[_0x126c95([0x74,0x68,0x65,0x6e])](_0x4b8893=>{_0x4b8893!=_0x126c95([0x56,0x61,0x6c,0x69,0x64])&&_0x4ffd49(_0x4b8893);},_0x120e77);}):_0x33611b||_0x45af13||_0x126c95([0x56,0x61,0x6c,0x69,0x64]);}}function _0x33bd1a(_0x3c4970,_0x276dea){return new window[(_0x126c95([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x36ab4a=>{if(_0x15b920())return _0x36ab4a(_0x126c95([0x56,0x61,0x6c,0x69,0x64]));_0xac57ad(),_0x2305da[_0x126c95([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x126c95([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3fbd7d=!0x1;const _0x5767fa=_0x4e1ee9();function _0x16c2ed(_0x531fe9){return!!_0x531fe9&&(typeof _0x531fe9===_0x126c95([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x531fe9===_0x126c95([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x531fe9[_0x126c95([0x74,0x68,0x65,0x6e])]===_0x126c95([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x531fe9[_0x126c95([0x63,0x61,0x74,0x63,0x68])]===_0x126c95([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xcf5186(_0x574a86){_0x54f9b8(_0x574a86)[_0x126c95([0x74,0x68,0x65,0x6e])](_0x16fe0d=>{if(!_0x16fe0d||_0x16fe0d[_0x126c95([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x126c95([0x6f,0x6b]))return _0x126c95([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xb4140b(_0x409544(_0x5767fa+_0x276dea))!=_0x16fe0d[_0x126c95([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x126c95([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x126c95([0x56,0x61,0x6c,0x69,0x64]);})[_0x126c95([0x74,0x68,0x65,0x6e])](_0x1080c0=>(_0x2cfc07(),_0x1080c0),()=>{const _0x2509c3=_0x188f23();return null==_0x2509c3?(_0x2cfc07(),_0x126c95([0x56,0x61,0x6c,0x69,0x64])):_0x126c95(_0x353161-_0x2509c3>(0x49f7d861^_0x104c7f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x126c95([0x74,0x68,0x65,0x6e])](_0x36ab4a)[_0x126c95([0x63,0x61,0x74,0x63,0x68])](()=>{_0x36ab4a(_0x126c95([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x204fbc=0x6dcdb2e1^_0x104c7f;function _0x2cfc07(){const _0x3f9d63=_0x126c95([0x6c,0x6c,0x63,0x74,0x2d])+_0xb4140b(_0x409544(_0x3c4970)),_0x1a9ef9=_0x516bdb(_0xb4140b(window[_0x126c95([0x4d,0x61,0x74,0x68])][_0x126c95([0x63,0x65,0x69,0x6c])](_0x353161/_0x204fbc)));window[_0x126c95([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x126c95([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3f9d63,_0x1a9ef9);}function _0x188f23(){const _0x101c1b=_0x126c95([0x6c,0x6c,0x63,0x74,0x2d])+_0xb4140b(_0x409544(_0x3c4970)),_0x34f363=window[_0x126c95([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x126c95([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x101c1b);return _0x34f363?window[_0x126c95([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x516bdb(_0x34f363),0x10)*_0x204fbc:null;}function _0x54f9b8(_0x499bbd){return new window[(_0x126c95([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1ebf6e,_0x2448ae)=>{_0x499bbd[_0x126c95([0x74,0x68,0x65,0x6e])](_0x1ebf6e,_0x2448ae),window[_0x126c95([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2448ae,0x6dfa88a1^_0x104c7f);});}}_0x2305da[_0x126c95([0x6f,0x6e])](_0x126c95([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x51138e,_0x3d1fac)=>{if(_0x3d1fac[0x0]!=_0x3c4970)return _0x36ab4a(_0x126c95([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3d1fac[0x1]={..._0x3d1fac[0x1],[_0x126c95([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5767fa};},{[_0x126c95([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x126c95([0x68,0x69,0x67,0x68])}),_0x2305da[_0x126c95([0x6f,0x6e])](_0x126c95([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x273ee4=>{_0x16c2ed(_0x273ee4[_0x126c95([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3fbd7d=!0x0,_0xcf5186(_0x273ee4[_0x126c95([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x126c95([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x126c95([0x6c,0x6f,0x77])}),_0x2feb14[_0x126c95([0x74,0x68,0x65,0x6e])](()=>{_0x3fbd7d||_0x36ab4a(_0x126c95([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x15b920(){return _0x2305da[_0x126c95([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x126c95([0x76,0x69,0x65,0x77])][_0x126c95([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x126c95([0x61,0x75,0x74,0x6f]);}function _0xac57ad(){_0x2305da[_0x126c95([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x126c95([0x76,0x69,0x65,0x77])][_0x126c95([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x126c95([0x61,0x75,0x74,0x6f]);}}function _0x1caeab(_0x384f26){const _0x2d4aab=[new window[(_0x126c95([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c6771=>setTimeout(_0x5c6771,0x6df262ad^_0x104c7f)),_0x2feb14[_0x126c95([0x74,0x68,0x65,0x6e])](()=>new window[(_0x126c95([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x62bc08=>{const _0x373495=0x6dfb5c66^_0x104c7f,_0x3e8455=_0x13abc8[_0x126c95([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x2dd367(){_0x3e8455[_0x126c95([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x373495&&_0x62bc08();}_0x2dd367(),_0x3e8455[_0x126c95([0x6f,0x6e])](_0x126c95([0x61,0x64,0x64]),_0x2dd367);})),new window[(_0x126c95([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3ca5a1=>{function _0x2d8db2(){for(const _0x49d4e3 in window)if(window[_0x126c95([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x126c95([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x49d4e3))&&window[_0x49d4e3]==_0x2962bb)return _0x3ca5a1();_0x2305da[_0x126c95([0x73,0x74,0x61,0x74,0x65])]!=_0x126c95([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x126c95([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2d8db2,0x6dfb4fe9^_0x104c7f);}_0x31cfde(_0x126c95([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x2d8db2();})];return window[_0x126c95([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x126c95([0x72,0x61,0x63,0x65])](_0x2d4aab)[_0x126c95([0x74,0x68,0x65,0x6e])](()=>_0x384f26);}async function _0x1206ff(){if(await _0x2feb14,_0x31cfde(_0x126c95([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x296a01=_0x13abc8[_0x126c95([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x1b386f=_0x13abc8[_0x126c95([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])](_0x296a01[_0x126c95([0x69,0x64])]),_0x5b819f=_0x2220a9(_0x126c95([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x5b819f[_0x126c95([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x296a01['id'],_0x1b386f?_0x1b386f['id']:null,!0x0),_0x5b819f[_0x126c95([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x126c95([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x5b819f[_0x126c95([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x5b819f[_0x126c95([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x3c05bb,void(_0x5b819f[_0x126c95([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x3c05bb);}if(_0x31cfde(_0x126c95([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x3ac261=_0x2220a9(_0x126c95([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x3ac261[_0x126c95([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x126c95([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x3ac261[_0x126c95([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x3ac261[_0x126c95([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x3c05bb,_0x3ac261[_0x126c95([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x3c05bb;}_0x2305da[_0x126c95([0x6d,0x6f,0x64,0x65,0x6c])][_0x126c95([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3c05bb,_0x2305da[_0x126c95([0x6d,0x6f,0x64,0x65,0x6c])][_0x126c95([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3c05bb,_0x2305da[_0x126c95([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x126c95([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2cb9b4(){return _0x31cfde(_0x126c95([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2220a9(_0x126c95([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x126c95([0x73,0x74,0x61,0x74,0x65])]==_0x126c95([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x2387eb(){return _0x31cfde(_0x126c95([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 _0x5eda77(){return _0x31cfde(_0x126c95([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x545e51(_0x453dda){const _0x15563a=_0x354cc7();_0x2305da[_0x15563a]=_0x126c95([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])+_0x453dda,_0x453dda[_0x126c95([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x126c95([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x354cc7()]=_0x2962bb),_0x453dda!=_0x126c95([0x56,0x61,0x6c,0x69,0x64])&&_0x1206ff();}function _0x354cc7(){const _0xd60c98=window[_0x126c95([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x126c95([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x126c95([0x6e,0x6f,0x77])]())[_0x126c95([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x126c95([0x2e]),'');let _0x50193c=_0x126c95([0x41]);for(let _0x232143=0x0;_0x232143<_0xd60c98[_0x126c95([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x232143+=0x2){let _0x12fdba=window[_0x126c95([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xd60c98[_0x126c95([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x232143,_0x232143+0x2));_0x12fdba>=_0x3360d9[_0x126c95([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x12fdba-=_0x3360d9[_0x126c95([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x50193c+=_0x3360d9[_0x12fdba];}return _0x50193c;}function _0x3e73ab(){const _0x2e1b99=_0x416e76[_0x126c95([0x73,0x70,0x6c,0x69,0x74])](_0x126c95([0x2e]));if(0x3!=_0x2e1b99[_0x126c95([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x10f6cc(_0x2e1b99[0x1]);function _0x10f6cc(_0x1c05f1){const _0x22d7e3=_0x409d8c(_0x1c05f1);return _0x22d7e3&&_0x2b5063()?_0x22d7e3:null;function _0x2b5063(){const _0x2f957d=_0x22d7e3[_0x126c95([0x6a,0x74,0x69])],_0x621eb=window[_0x126c95([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2f957d[_0x126c95([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2f957d[_0x126c95([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4a78f6={..._0x22d7e3,[_0x126c95([0x6a,0x74,0x69])]:_0x2f957d[_0x126c95([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2f957d[_0x126c95([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4a78f6[_0x126c95([0x76,0x63])],_0x409544(_0x4a78f6)==_0x621eb;}}}async function _0x40c41a(){let _0x5aa340=!0x0;try{const _0x4b9a6d=_0x416e76[_0x126c95([0x73,0x70,0x6c,0x69,0x74])](_0x126c95([0x2e])),[_0x41ffd9,_0x2926d5,_0x5be85c]=_0x4b9a6d;return _0x5423cf(_0x41ffd9),await _0x1e976f(_0x41ffd9,_0x2926d5,_0x5be85c),_0x5aa340;}catch(_0xb779e1){return!0x1;}function _0x5423cf(_0x4bac0b){const _0x27ee1c=_0x409d8c(_0x4bac0b);_0x27ee1c&&_0x27ee1c[_0x126c95([0x61,0x6c,0x67])]==_0x126c95([0x45,0x53,0x32,0x35,0x36])||(_0x5aa340=!0x1);}async function _0x1e976f(_0x23c705,_0x4288c0,_0x553649){const _0x3c439b=window[_0x126c95([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x126c95([0x66,0x72,0x6f,0x6d])](_0x2b558e(_0x553649),_0x70e596=>_0x70e596[_0x126c95([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x15e1a7=new window[(_0x126c95([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x126c95([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x23c705+_0x126c95([0x2e])+_0x4288c0),_0x341fee=window[_0x126c95([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x126c95([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x341fee)return;const _0x141ed4=await _0x341fee[_0x126c95([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x126c95([0x6a,0x77,0x6b]),_0x285619,{[_0x126c95([0x6e,0x61,0x6d,0x65])]:_0x126c95([0x45,0x43,0x44,0x53,0x41]),[_0x126c95([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x126c95([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x126c95([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x341fee[_0x126c95([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x126c95([0x6e,0x61,0x6d,0x65])]:_0x126c95([0x45,0x43,0x44,0x53,0x41]),[_0x126c95([0x68,0x61,0x73,0x68])]:{[_0x126c95([0x6e,0x61,0x6d,0x65])]:_0x126c95([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x141ed4,_0x3c439b,_0x15e1a7)||(_0x5aa340=!0x1);}}function _0x409d8c(_0x22dac4){return _0x22dac4[_0x126c95([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x126c95([0x65,0x79]))?JSON[_0x126c95([0x70,0x61,0x72,0x73,0x65])](_0x2b558e(_0x22dac4)):null;}function _0x2b558e(_0x2a573d){return window[_0x126c95([0x61,0x74,0x6f,0x62])](_0x2a573d[_0x126c95([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x126c95([0x2b]))[_0x126c95([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x126c95([0x2f])));}function _0x409544(_0x598be8){let _0x37f233=0x1505;function _0x98e0ab(_0x68ebfb){for(let _0x93eb24=0x0;_0x93eb24<_0x68ebfb[_0x126c95([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x93eb24++){const _0x4f6770=_0x68ebfb[_0x126c95([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x93eb24);_0x37f233=(_0x37f233<<0x5)+_0x37f233+_0x4f6770,_0x37f233&=_0x37f233;}}function _0x2b7a3c(_0x4cb2fc){Array[_0x126c95([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4cb2fc)?_0x4cb2fc[_0x126c95([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2b7a3c):_0x4cb2fc&&typeof _0x4cb2fc==_0x126c95([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x126c95([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4cb2fc)[_0x126c95([0x73,0x6f,0x72,0x74])]()[_0x126c95([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4087bb,_0x3d4be7])=>{_0x98e0ab(_0x4087bb),_0x2b7a3c(_0x3d4be7);}):_0x98e0ab(window[_0x126c95([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4cb2fc));}return _0x2b7a3c(_0x598be8),_0x37f233>>>0x0;}function _0xb4140b(_0x573cda){return _0x573cda[_0x126c95([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x126c95([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x126c95([0x30]));}function _0x516bdb(_0x521a50){return _0x521a50[_0x126c95([0x73,0x70,0x6c,0x69,0x74])]('')[_0x126c95([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x126c95([0x6a,0x6f,0x69,0x6e])]('');}function _0x31cfde(_0x13c82a){return _0x2305da[_0x126c95([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x126c95([0x68,0x61,0x73])](_0x13c82a);}function _0x2220a9(_0x146ca2){return _0x2305da[_0x126c95([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x126c95([0x67,0x65,0x74])](_0x146ca2);}function _0x3c05bb(){}function _0x126c95(_0x2b63cb){return _0x2b63cb['map'](_0x57e59f=>String['fromCharCode'](_0x57e59f))['join']('');}_0x545e51(await _0x4bc703());}(this);}['createRevision'](_0x1cae60){const _0x395870=this['editor']['plugins']['get']('Users');return new a({'id':_0x1cae60['id'],'name':_0x1cae60['name'],'creator':_0x1cae60['creatorId']?_0x395870['getUser'](_0x1cae60['creatorId']):null,'diffData':_0x1cae60['diffData']||_0x1cae60['data'],'authors':_0x1cae60['authorsIds']['map'](_0x2701af=>_0x395870['getUser'](_0x2701af)),'createdAt':new Date(_0x1cae60['createdAt']),'attributes':_0x1cae60['attributes'],'fromVersion':_0x1cae60['fromVersion'],'toVersion':_0x1cae60['toVersion']});}['addRevision'](_0x3fe43d,_0x4b2a1a=0x0){this['_revisions']['add'](_0x3fe43d,_0x4b2a1a);}['getRevision'](_0x58bde9){return this['_revisions']['get'](_0x58bde9);}['getRevisions'](_0x462bdf={'toJSON':!0x1}){const _0xf89dfd=Array['from'](this['_revisions']);return _0xf89dfd['reverse'](),_0x462bdf['toJSON']?_0xf89dfd['map'](_0x50c3e6=>_0x50c3e6['toJSON']()):_0xf89dfd;}['getIndex'](_0x21d3cf){return this['_revisions']['getIndex'](_0x21d3cf);}['getEarlierVisibleRevision'](_0x2af372){const [,_0x2b8f4e]=this['getRevisionsIterator'](_0x2af372,{'direction':'earlier'});return _0x2b8f4e;}['getLaterVisibleRevision'](_0x2320d4){const [,_0x223aa8]=this['getRevisionsIterator'](_0x2320d4,{'direction':'later'});return _0x223aa8;}['getRevisionsInDiff'](_0x58d36b){const _0x22483b=[];for(const _0x1d9927 of this['getRevisionsIterator'](_0x58d36b['newRevisionId']))if(_0x22483b['push'](_0x1d9927),_0x1d9927['id']===_0x58d36b['oldRevisionId'])break;return _0x22483b;}*['getRevisionsIterator'](_0x24eff6,{direction:_0x1993a7='earlier',filter:_0x5426f4=()=>!0x0}={}){const _0x39d947='earlier'===_0x1993a7?0x1:-0x1;let _0x4adb96=this['_revisions']['get'](_0x24eff6),_0x998345=this['getIndex'](_0x4adb96);for(yield _0x4adb96;_0x4adb96;){if(_0x998345+=_0x39d947,_0x4adb96=this['getRevision'](_0x998345),!_0x4adb96)return;_0x5426f4(_0x4adb96)&&(yield _0x4adb96);}}}function m(_0x419b3d,_0x247e1f,_0x4f0bd1){const t=_0x419b3d['t'];switch(_0x247e1f){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'},_0x4f0bd1);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x4f0bd1);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 P={'c':_0x2b87d7,'a':_0x3290cf,'e':_0x35fb3e,'r':_0x53bb2c,'u':_0x2eb804};class l extends _0x53f3b9{['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[_0xf2dc20,j,_0x1876bc];}constructor(_0x460974){super(_0x460974),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 _0x383b48=_0x4e1ee9();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x383b48},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 _0xbb1ce6=this['repository']['getRevision'](0x0),_0x291da8=_0xbb1ce6&&null===_0xbb1ce6['creator']?_0xbb1ce6:null;if(this['_continueCurrentRevision']=!!_0x291da8&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x403784=this['_source']['getCurrentRevisionId'](),_0x29f107=this['repository']['getRevision'](_0x403784);if(_0x29f107)this['_startingVersion']=_0x29f107['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x6ca2fb=this['_source']['history']['_operations']['find'](_0x55753d=>!_0x55753d['_isInit']),_0x87f0dc=_0x6ca2fb?_0x6ca2fb['baseVersion']:this['_source']['history']['version'];_0xbb1ce6?(_0xbb1ce6['toVersion']<_0x87f0dc&&_0xbb1ce6['_update']({'toVersion':_0x87f0dc}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x291da8['id'],this['_startingVersion']=_0x291da8['fromVersion']):(this['_startingVersion']=_0xbb1ce6['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x87f0dc,this['_continueCurrentRevision']=!0x1);}}else _0x291da8&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x291da8['toVersion'],this['editor']['model']['document']['history']['version']),_0x291da8['fromVersion']===_0x291da8['toVersion']?(0x0!==_0x291da8['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x291da8['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x291da8['id'],this['_startingVersion']=_0x291da8['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',_0x36499d=>!_0x36499d),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3a65dd=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xeaa281;for(const _0x248bd2 in _0x3a65dd){const _0x191ad4=_0x248bd2,_0x3dedb2=_0x3a65dd[_0x191ad4];if('revisionHistoryLicenseKeyValid'==_0x3dedb2||'revisionHistoryLicenseKeyInvalid'==_0x3dedb2||'revisionHistoryLicenseKeyExpired'==_0x3dedb2||'revisionHistoryLicenseKeyDomainLimit'==_0x3dedb2||'revisionHistoryLicenseKeyNotAllowed'==_0x3dedb2||'revisionHistoryLicenseKeyEvaluationLimit'==_0x3dedb2||'revisionHistoryLicenseKeyTrialLimit'==_0x3dedb2||'revisionHistoryLicenseKeyUsageLimit'==_0x3dedb2){delete _0x3a65dd[_0x191ad4],_0xeaa281=_0x3dedb2,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0xeaa281&&_0x3a65dd['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0xeaa281&&_0x3a65dd['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0xeaa281&&_0x3a65dd['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0xeaa281&&_0x3a65dd['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0xeaa281&&_0x3a65dd['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0xeaa281&&_0x3a65dd['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0xeaa281&&_0x3a65dd['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x2c898f=this['repository']['getRevision'](0x0),_0x4361d9=await this['getRevisionDocumentData'](_0x2c898f),_0x106714=await this['getRevisionRootsAttributes'](_0x2c898f);this['_replaceEditorDataWithRevisionData'](_0x4361d9,_0x106714);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x3d12e9){this['_source']=_0x3d12e9;}async['update'](){const _0x17a8ea=await this['_source']['getLatestVersion']();if(_0x17a8ea>this['currentRevision']['toVersion']){await this['_loadState']();const _0x5649be=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x17a8ea});_0x5649be['authors']=_0x5649be['authorsIds']['map'](_0xe8f40e=>this['editor']['plugins']['get']('Users')['getUser'](_0xe8f40e)),this['currentRevision']['_update'](_0x5649be);}}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'](_0x3d3810={},_0x2d6241=null){const _0x29cddd=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x2d6241>this['currentRevision']['toVersion']&&(_0x2d6241=null),null===_0x2d6241&&(_0x2d6241=await this['_source']['getLatestVersion']());const _0x37f3ae=this['_getFromVersion'](_0x2d6241),_0x4a54d0=this['buildRevisionData']({'from':_0x37f3ae,'to':_0x2d6241});if(this['currentRevision']['toVersion']<_0x2d6241){const _0x25c1d3=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x2d6241,'to':_0x2d6241});_0x25c1d3['authors']=[],_0x25c1d3['authorsIds']=[],_0x25c1d3['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x25c1d3,!0x0),delete _0x25c1d3['authors'],_0x29cddd['push'](_0x25c1d3);}_0x3d3810['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x3d3810['name']=_0x3d3810['name']||null,_0x3d3810['id']=_0x3d3810['id']||_0x4e1ee9(),_0x3d3810={..._0x3d3810,..._0x4a54d0};const _0x40b8ee=this['addRevisionData'](_0x3d3810);_0x29cddd['push'](_0x3d3810);const _0x531b7c=this['repository']['getIndex'](_0x40b8ee);if(0x0!==_0x531b7c){const _0x3b71dc=this['repository']['getRevision'](_0x531b7c-0x1);if(_0x3b71dc['fromVersion']!==_0x2d6241){const _0x3dcbb6=this['_revisionDataBuilder']['getData'](_0x2d6241,_0x3b71dc['toVersion']),_0x978c84={'id':_0x3b71dc['id'],'diffData':_0x3dcbb6['diffData'],'authorsIds':_0x3dcbb6['authorsIds'],'authors':_0x3dcbb6['authorsIds']['map'](_0x713710=>this['editor']['plugins']['get']('Users')['getUser'](_0x713710)),'fromVersion':_0x2d6241};_0x3b71dc===this['currentRevision']&&(_0x978c84['createdAt']=new Date(_0x3d3810['createdAt']['getTime']()+0xa)),_0x3b71dc['_update'](_0x978c84,!0x0),delete _0x978c84['authors'],_0x29cddd['push'](_0x978c84);}}if(this['adapter']){for(const _0x31b2f7 of _0x29cddd)this['_bufferUpdate'](_0x31b2f7['id'],_0x31b2f7,!0x0);this['sendBufferedUpdates']();}return _0x40b8ee;}['addRevisionData'](_0x7aa58b){const _0x234092=this['repository']['createRevision'](_0x7aa58b);return this['adapter']&&_0x234092['on']('_update',(_0x256687,_0x147b1d,_0x55a2f2)=>{_0x55a2f2||(this['_bufferUpdate'](_0x147b1d['id'],_0x147b1d,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x234092,this['_findInsertionIndex'](_0x234092)),_0x234092;}async['getRevisionDocumentData'](_0x467e35){await this['_loadRevisionData'](_0x467e35);const _0x5d4859={};for(const _0x11a7f4 in _0x467e35['diffData']){if(_0x467e35['diffData'][_0x11a7f4]['attachChange']&&!_0x467e35['diffData'][_0x11a7f4]['attachChange']['isAttached'])continue;const _0x34d2f2=this['_removeRevisionMarkers'](JSON['parse'](_0x467e35['diffData'][_0x11a7f4]['insertions'])),_0x18a0a4=this['editor']['editing']['view']['document'],_0x529d2d=new _0x12b0a7(_0x18a0a4,_0x34d2f2['map'](_0x149fd0=>C(_0x149fd0,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x5d4859[_0x11a7f4]=this['editor']['data']['processor']['toData'](_0x529d2d),this['editor']['data']['processor']['useFillerType']('default');}return _0x5d4859;}async['getRevisionRootsAttributes'](_0x1f0b9e){await this['_loadRevisionData'](_0x1f0b9e);const _0x16b40b={};for(const _0x4d1896 in _0x1f0b9e['diffData'])_0x1f0b9e['diffData'][_0x4d1896]['attachChange']&&!_0x1f0b9e['diffData'][_0x4d1896]['attachChange']['isAttached']||(_0x16b40b[_0x4d1896]=_0x1f0b9e['diffData'][_0x4d1896]['attributesAfter']||{});return _0x16b40b;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x8e6aa0=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0xe1847c=0x0;_0xe1847c<_0x8e6aa0['length'];_0xe1847c++){const _0x5bb2b0=_0x8e6aa0[_0xe1847c];let _0xdd98dd=!0x1;for(const _0x4fb3bc of Object['keys'](_0x5bb2b0))void 0x0===_0x5bb2b0[_0x4fb3bc]?delete _0x5bb2b0[_0x4fb3bc]:'id'!==_0x4fb3bc&&(_0xdd98dd=!0x0);_0xdd98dd||(_0x8e6aa0[_0xe1847c]=null);}if(_0x8e6aa0=_0x8e6aa0['filter'](_0x1a8127=>null!==_0x1a8127),!_0x8e6aa0['length'])return;for(let _0x327f1c=0x0;_0x327f1c<_0x8e6aa0['length'];_0x327f1c++){const _0x4d5711=_0x8e6aa0[_0x327f1c];void 0x0!==_0x4d5711['fromVersion']&&void 0x0===_0x4d5711['toVersion']&&(_0x4d5711['toVersion']=this['repository']['getRevision'](_0x4d5711['id'])['toVersion']),void 0x0!==_0x4d5711['toVersion']&&void 0x0===_0x4d5711['fromVersion']&&(_0x4d5711['fromVersion']=this['repository']['getRevision'](_0x4d5711['id'])['fromVersion']);}const _0x1e4452=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x8e6aa0,_0x1e4452)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x47644c=>{if(_0x47644c){for(const _0x47fe18 of _0x47644c)this['setRevisionData']({'id':_0x47fe18['id'],'createdAt':_0x47fe18['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x1ffd95,_0x487bca){let _0x2adff9=this['editor']['config']['get']('initialData'),_0xdc87d3=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x2adff9){_0x2adff9={};for(const _0x46bf2c of this['editor']['model']['document']['getRootNames']())_0x2adff9[_0x46bf2c]='';}if('string'==typeof _0x2adff9&&(_0x2adff9={'main':_0x2adff9}),void 0x0===_0xdc87d3){_0xdc87d3={};for(const _0x2f94ea of this['editor']['model']['document']['getRootNames']())_0xdc87d3[_0x2f94ea]={};}let _0x1d19ef=!0x1;const _0x535c8b=Object['keys'](_0x2adff9),_0x5404f0=Object['keys'](_0x1ffd95);for(const _0x8dfbfb of _0x535c8b){if(_0x2adff9[_0x8dfbfb]!==_0x1ffd95[_0x8dfbfb]&&''!==_0x2adff9[_0x8dfbfb]['trim']()){_0x1d19ef=!0x0;break;}if(!_0x141d69(_0xdc87d3[_0x8dfbfb],_0x487bca[_0x8dfbfb])&&Object['keys'](_0xdc87d3[_0x8dfbfb])['length']>0x0){_0x1d19ef=!0x0;break;}}_0x1d19ef||(_0x1d19ef=_0x5404f0['some'](_0x1cf7da=>!this['editor']['model']['document']['getRoot'](_0x1cf7da))),_0x1d19ef&&_0x2dd246('editor-initial-data-replaced-with-revision-data',{'editorData':_0x2adff9,'editorRootsAttributes':_0xdc87d3,'revisionData':_0x1ffd95,'revisionRootsAttributes':_0x487bca}),this['editor']['config']['set']('initialData',_0x1ffd95),this['editor']['config']['set']('rootsAttributes',_0x487bca);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x32e177=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x32e177['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x9a3668){const _0x166d6b=this['repository']['getRevisions']();_0x166d6b['reverse']();let _0x5bf0a2=0x0;for(;_0x5bf0a2<_0x166d6b['length'];){const _0x27b18a=_0x166d6b[_0x5bf0a2];if(_0x27b18a===this['currentRevision']){_0x5bf0a2++;continue;}if(_0x27b18a['id']===this['_initialRevisionId'])break;const _0x5ead9d=_0x9a3668['toVersion']-_0x27b18a['toVersion']||_0x9a3668['fromVersion']-_0x27b18a['fromVersion'];if(_0x5ead9d>0x0)break;if(_0x5ead9d<0x0)_0x5bf0a2++;else{if(!_0x9a3668['creator']&&_0x27b18a['creator'])break;if(_0x27b18a['creator']||!_0x9a3668['creator']){if(_0x9a3668['createdAt']>_0x27b18a['createdAt'])break;_0x5bf0a2++;}else _0x5bf0a2++;}}return _0x5bf0a2;}['setRevisionData'](_0x35ca24){const _0x19634a=this['repository']['getRevision'](_0x35ca24['id']);if(_0x35ca24['createdAt']&&(_0x35ca24['createdAt']=new Date(_0x35ca24['createdAt'])),_0x35ca24['authorsIds']){const _0x5922ac=this['editor']['plugins']['get']('Users');_0x35ca24['authors']=_0x35ca24['authorsIds']['map'](_0x4184d5=>_0x5922ac['getUser'](_0x4184d5));}_0x19634a['_update'](_0x35ca24,!0x0);}['buildRevisionData']({revision:_0x583732=null,from:_0x350bf4=null,to:_0x3f08c8=null}){_0x350bf4=null!==_0x350bf4?_0x350bf4:_0x583732['fromVersion'],_0x3f08c8=null!==_0x3f08c8?_0x3f08c8:_0x583732['toVersion'];const _0x3b0d98=this['_revisionDataBuilder']['getData'](_0x350bf4,_0x3f08c8),_0x3d98ce={'diffData':_0x3b0d98['diffData'],'authorsIds':_0x3b0d98['authorsIds'],'fromVersion':_0x350bf4,'toVersion':_0x3f08c8};if(!_0x583732||_0x3f08c8!==_0x583732['toVersion']){const _0x3b5555=_0x3f08c8-0x1,_0x83f66=this['_source']['history']['getOperation'](_0x3b5555);_0x3d98ce['createdAt']=_0x83f66&&_0x83f66['createdAt']||new Date();}if(this['_loadedStateData']&&_0x350bf4===this['_loadedStateData']['fromVersion']){for(const _0x51a254 of this['_loadedStateData']['authors'])_0x3d98ce['authorsIds']['includes'](_0x51a254['id'])||_0x3d98ce['authorsIds']['push'](_0x51a254['id']);}return _0x3d98ce;}['_loadRevisionData'](_0x3e3157){if(!_0x3e3157||_0x3e3157['diffData'])return Promise['resolve']();{const _0x8dca9d=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x8dca9d,'revisionId':_0x3e3157['id']})['then'](_0x3a088a=>{_0x3e3157['diffData']=_0x3a088a['diffData'];});}}['_bufferUpdate'](_0x351258,_0xa49fcd,_0x4ba18a){if(this['_bufferedUpdates']['has'](_0x351258)){const _0x2f9ab4=this['_bufferedUpdates']['get'](_0x351258);_0xa49fcd=_0x4ba18a?{..._0x2f9ab4,..._0xa49fcd}:{..._0xa49fcd,..._0x2f9ab4};}this['_bufferedUpdates']['set'](_0x351258,_0xa49fcd);}['_getFromVersion'](_0xf1b2d6){const _0x45c3f4=this['repository']['getRevisions']();_0x45c3f4['reverse'](),_0x45c3f4['shift']();const _0x4a90d7=_0x45c3f4['find'](_0x3c588a=>_0x3c588a['toVersion']<=_0xf1b2d6)['toVersion'];return _0x4a90d7<this['_startingVersion']?this['_startingVersion']:_0x4a90d7;}['_createInitialRevision'](_0x20468e){const _0x4431cc=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x4431cc)this['_initialRevisionId']=_0x4431cc['id'];else{const _0x44105b=!this['editor']['model']['document']['roots']['find'](_0x58a096=>this['editor']['model']['hasContent'](_0x58a096)),_0x1c7b88=this['editor']['plugins']['get']('Users')['me']['id'],_0x5788fe=m(this['editor']['locale'],_0x44105b?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x20468e,'to':_0x20468e,'id':this['_initialRevisionId'],'name':_0x5788fe,'creatorId':_0x1c7b88});}}['_createCurrentRevision'](_0x3cd8f5){const _0x37ec84=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x37ec84),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x3cd8f5,'to':_0x3cd8f5,'id':_0x37ec84,'name':'','creatorId':null}));}['_makeRevision']({name:_0x23a312,from:_0x5de2c4,to:_0xc2e2ae,creatorId:_0x7474c4,id:_0x1bbf84}){const _0x13c4af=this['buildRevisionData']({'from':_0x5de2c4,'to':_0xc2e2ae});_0x13c4af['name']=_0x23a312,_0x13c4af['creatorId']=_0x7474c4,_0x13c4af['id']=_0x1bbf84;const _0x5c6092=this['addRevisionData'](_0x13c4af);return this['adapter']&&this['_bufferUpdate'](_0x13c4af['id'],_0x13c4af,!0x0),_0x5c6092;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x38bc7b){return(_0x38bc7b=_0x38bc7b['filter'](_0x194cd7=>!_0x194cd7['name']||'revision-start'!==_0x194cd7['name']&&'revision-end'!==_0x194cd7['name']))['forEach'](_0x488a02=>{'string'!=typeof _0x488a02&&(_0x488a02['children']=this['_removeRevisionMarkers'](_0x488a02['children']),_0x488a02['attributes']=_0x488a02['attributes']['filter'](_0x28a5ab=>!_0x28a5ab[0x0]['startsWith']('data-revision-')));}),_0x38bc7b;}}function C(_0x4ea97d,_0x1bc851){const _0x3fe958=_0x1bc851['editing']['view']['document'];if('string'==typeof _0x4ea97d)return new _0x49cfbb(_0x3fe958,_0x4ea97d);{const _0x3d05d1=_0x4ea97d['children']['map'](_0x31d38e=>C(_0x31d38e,_0x1bc851));return new(P[_0x4ea97d['type']]||_0x5213af)(_0x3fe958,_0x4ea97d['name'],_0x4ea97d['attributes'],_0x3d05d1);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x390a67){this['editor']=_0x390a67,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'](_0x38b072){this['source']=_0x38b072;const _0x4603eb=new Map(),_0x3ca83f=new Map(),_0x4ff4a7=this['editor']['model']['document']['roots']['map'](_0x47450f=>_0x47450f['rootName']);for(const _0x93fd5e of _0x4ff4a7){const _0x52b1fd=this['editor']['model']['document']['getRoot'](_0x93fd5e),_0x2c8a71=T(_0x52b1fd);_0x4603eb['set'](_0x93fd5e,_0x2c8a71),_0x3ca83f['set'](_0x93fd5e,Object['fromEntries'](_0x52b1fd['getAttributes']()));}const _0x135d1e=Array['from'](this['editor']['model']['markers'])['map'](_0x1f9a4b=>[_0x1f9a4b['name'],_0x1f9a4b['getRange']()]),_0x3d9309=this['source']['version'];this['_saveMetaData'](_0x3d9309,_0x4603eb,_0x135d1e,_0x3ca83f),this['_startingRevisionId']=this['_revisionId'];const _0x212423=new Map(),_0x1c2752=new Map();for(const _0x432141 of _0x4ff4a7){const _0x45108b=F(_0x432141);_0x212423['set'](_0x432141,_0x45108b),_0x1c2752['set'](_0x432141,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x212423,[],_0x1c2752);}['getData'](_0x2819f5,_0x6f4d26){if(this['_lastFrom']===_0x2819f5&&this['_lastTo']<=_0x6f4d26)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x6f4d26,!0x0);else{if(!this['_savedMetaData']['has'](_0x2819f5)){const _0x4b8182=this['_getPreviousFrom'](_0x2819f5);this['_calculateMetaData'](_0x4b8182,_0x2819f5,!0x1);}this['_calculateMetaData'](_0x2819f5,_0x6f4d26,!0x0);}return this['_lastFrom']=_0x2819f5,this['_lastTo']=_0x6f4d26,this['_getState']();}['loadState'](_0x2b8a65){this['_reset'](),this['_lastFrom']=_0x2b8a65['fromVersion'],this['_lastTo']=_0x2b8a65['toVersion'];for(const _0x5da92f in _0x2b8a65['diffData']){const _0x4da461=_0x2b8a65['diffData'][_0x5da92f]['attachChange'],_0x68ce77=_0xf7ee50(_0x2b8a65['diffData'][_0x5da92f]['attributesBefore'])||{},_0x396e08=this['_makeModelFromViewString'](_0x2b8a65['diffData'][_0x5da92f]['deletions']);_0x396e08['rootName']=_0x5da92f,_0x396e08['_isAttached']=!_0x4da461||!_0x4da461['isAttached'],_0x396e08['isAttached']=()=>_0x396e08['_isAttached'],this['_baseRoots']['set'](_0x5da92f,_0x396e08),this['_baseRootsAttributes']['set'](_0x5da92f,_0x68ce77),_0x4da461&&this['_touchedRoots']['set'](_0x5da92f,_0x4da461);const _0x1b2bfe=this['_makeIdsRoot'](_0x396e08);this['_baseIdsRoots']['set'](_0x5da92f,_0x1b2bfe);for(const [_0x2ccfbf,_0x19347c]of _0x396e08['markers']){if(!_0x2ccfbf['startsWith']('revision:'))continue;const _0x4a723a=_0x2ccfbf['split'](':')[0x2];for(const _0x2be8c2 of _0x19347c['getWalker']({'singleCharacters':!0x0})){const _0x3f7b1f=this['_getVidAttributeName'](_0x2be8c2),_0x152095='elementEnd'==_0x2be8c2['type']?_0x2be8c2['previousPosition']['path']['slice'](0x0,-0x1):_0x2be8c2['previousPosition']['path'],_0x18af2c=_0x1b2bfe['getNodeByPath'](_0x152095)['getAttribute'](_0x3f7b1f);this['_touched']['set'](_0x18af2c,{'userId':_0x4a723a});}}}this['_startingRevisionId']=this['_revisionId'];const _0x29d6d0=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x750b14=>!this['_touched']['has'](_0x750b14));let _0x3b05e4=0x0;const _0x148360=new Map();for(const _0x5923c4 in _0x2b8a65['diffData']){const _0x13214a=_0x2b8a65['diffData'][_0x5923c4]['attachChange'],_0x1b6d5b=_0xf7ee50(_0x2b8a65['diffData'][_0x5923c4]['attributesAfter'])||{},_0x2e2a52=this['_makeModelFromViewString'](_0x2b8a65['diffData'][_0x5923c4]['insertions']);_0x2e2a52['rootName']=_0x5923c4,_0x2e2a52['_isAttached']=!_0x13214a||_0x13214a['isAttached'],_0x2e2a52['isAttached']=()=>_0x2e2a52['_isAttached'],this['_diffRoots']['set'](_0x5923c4,_0x2e2a52),this['_diffRootsAttributes']['set'](_0x5923c4,_0x1b6d5b);const _0xce9fe0=this['_makeIdsRoot'](_0x2e2a52,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x5923c4,_0xce9fe0),_0x148360['set'](_0x5923c4,_0x2e2a52['isAttached']()?_0x1b6d5b:{});for(const [_0x569833,_0x196bcf]of _0x2e2a52['markers']){if(!_0x569833['startsWith']('revision:'))continue;const _0x3de1e1=_0x569833['split'](':')[0x2];for(const _0x2db869 of _0x196bcf['getWalker']({'singleCharacters':!0x0})){const _0x35f611=this['_getVidAttributeName'](_0x2db869),_0x267adc=this['_revisionId']++,_0x17946d='elementEnd'==_0x2db869['type']?_0x2db869['previousPosition']['path']['slice'](0x0,-0x1):_0x2db869['previousPosition']['path'];_0xce9fe0['getNodeByPath'](_0x17946d)['_setAttribute'](_0x35f611,_0x267adc),this['_touched']['set'](_0x267adc,{'userId':_0x3de1e1});}}for(const _0x40b368 of this['editor']['model']['createRangeIn'](_0x2e2a52)['getWalker']({'singleCharacters':!0x0})){const _0x1f8b73=this['_getVidAttributeName'](_0x40b368),_0x58cbc9='elementEnd'==_0x40b368['type']?_0x40b368['previousPosition']['path']['slice'](0x0,-0x1):_0x40b368['previousPosition']['path'],_0x27f986=_0xce9fe0['getNodeByPath'](_0x58cbc9);_0x27f986['getAttribute'](_0x1f8b73)>0x0||_0x27f986['_setAttribute'](_0x1f8b73,_0x29d6d0[_0x3b05e4++]);}for(const [_0x1b96d8,_0x9d52d]of _0x2e2a52['markers'])_0x1b96d8['startsWith']('revision:')||this['_markers']['set'](_0x1b96d8,_0x9d52d);}const _0x5c8f3e=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x5c8f3e),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x5c8f3e,0x1));const _0xb065da=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0xb065da),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0xb065da,0x1));const _0x38eb29=Array['from'](this['_diffRoots'])['map'](([_0x11856a,_0x471be6])=>[_0x11856a,T(_0x471be6)]);this['_saveMetaData'](this['_lastTo'],_0x38eb29,this['_markers'],_0x148360);}['_makeModelFromViewString'](_0x3e8814){const _0x48a757=JSON['parse'](_0x3e8814),_0x3559cc=this['editor']['editing']['view']['document'],_0x2aa4e3=new _0x12b0a7(_0x3559cc,_0x48a757['map'](_0x37182f=>C(_0x37182f,this['editor'])));return this['editor']['data']['toModel'](_0x2aa4e3);}['_saveMetaData'](_0xc2d3fc,_0x336fb5,_0xfa2f91,_0x4939c7){const _0x12645e=new Map(_0x336fb5),_0x5807a5=new Map(_0xf7ee50(_0x4939c7)),_0x38f8fd=new Map();for(const [_0x3d6297,_0x572694]of _0xfa2f91)_0x38f8fd['set'](_0x3d6297,{'start':_0x572694['start']['clone'](),'end':_0x572694['end']['clone'](),'rootName':_0x572694['root']['rootName']});this['_savedMetaData']['set'](_0xc2d3fc,{'roots':_0x12645e,'markers':_0x38f8fd,'rootsAttributes':_0x5807a5});}['_removeMetaData'](_0x16cedb){this['_savedMetaData']['delete'](_0x16cedb);}['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'](_0x2f7bd8,_0x1e3e35=null){let _0x53cb3b=null;_0x2f7bd8['is']('documentFragment')||(_0x53cb3b=new ft(_0x2f7bd8['name'],{'vid_start':null===_0x1e3e35?this['_revisionId']++:_0x1e3e35++}));const _0x33685c=[];for(const _0x45709d of _0x2f7bd8['getChildren']())if(_0x45709d['is']('element')){_0x33685c['push'](this['_makeIdsRoot'](_0x45709d,_0x1e3e35));const _0x9bcf2c=_0x33685c[_0x33685c['length']-0x1];null!==_0x1e3e35&&(_0x1e3e35=_0x9bcf2c['is']('element','$text')?_0x9bcf2c['getAttribute']('vid')+0x1:_0x9bcf2c['getAttribute']('vid_end')+0x1);}else{for(let _0x451b03=0x0;_0x451b03<_0x45709d['offsetSize'];_0x451b03++)_0x33685c['push'](new ft('$text',{'vid':null===_0x1e3e35?this['_revisionId']++:_0x1e3e35++}));}if(_0x2f7bd8['is']('documentFragment')){const _0x1b6987=F(_0x2f7bd8['rootName']);return _0x1b6987['_insertChild'](0x0,_0x33685c),_0x1b6987;}return _0x53cb3b['_setAttribute']('vid_end',null===_0x1e3e35?this['_revisionId']++:_0x1e3e35++),_0x53cb3b['_insertChild'](0x0,_0x33685c),_0x53cb3b;}['_calculateMetaData'](_0x5c7998,_0x352abd,_0xb6e8b0){this['_reset']();const {roots:_0xd30374,markers:_0x617553,rootsAttributes:_0x36aa59}=this['_savedMetaData']['get'](_0x5c7998);this['_baseRoots']=new Map(_0xd30374),this['_baseRootsAttributes']=new Map(_0xf7ee50(_0x36aa59));for(const [_0x5a02dc,_0x32db2e]of this['_baseRoots'])if('$graveyard'!==_0x5a02dc&&(this['_diffRoots']['set'](_0x5a02dc,T(_0x32db2e)),this['_diffRootsAttributes']=new Map(_0xf7ee50(_0x36aa59)),_0xb6e8b0)){const _0x42d6e8=this['_revisionId'];this['_idsRoots']['set'](_0x5a02dc,this['_makeIdsRoot'](_0x32db2e)),this['_baseIdsRoots']['set'](_0x5a02dc,this['_makeIdsRoot'](_0x32db2e,_0x42d6e8));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0xb6e8b0&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x3db1c0,_0x5cf1c3]of _0x617553){const _0x29b0aa=this['_baseRoots']['get'](_0x5cf1c3['rootName']),_0x2c4f93=this['_diffRoots']['get'](_0x5cf1c3['rootName']),_0x5f3d95=new vt(this['_fixPosition'](_0x5cf1c3['start'],_0x29b0aa),this['_fixPosition'](_0x5cf1c3['end'],_0x29b0aa)),_0x56a837=this['_fixRange'](_0x5f3d95,_0x2c4f93);_0x29b0aa['markers']['set'](_0x3db1c0,_0x5f3d95),this['_markers']['set'](_0x3db1c0,_0x56a837);}this['_applyOperations'](_0x5c7998,_0x352abd,_0xb6e8b0);}['_applyOperations'](_0x34acb8,_0xea1394,_0x20ec0e){for(const _0x553bb0 of this['source']['getOperations'](_0x34acb8,_0xea1394))this['_handleOperation'](_0x553bb0,_0x20ec0e);for(const _0x1a2fa4 of this['_diffRoots']['values']())_0x1a2fa4['markers']['clear']();for(const [_0x39811e,_0x52ba0e]of this['_markers']){this['_diffRoots']['get'](_0x52ba0e['root']['rootName'])['markers']['set'](_0x39811e,_0x52ba0e['clone']());}const _0x249453=new Map(),_0xe5989f=new Map();for(const [_0xfeb43b,_0x426303]of this['_diffRoots'])_0x249453['set'](_0xfeb43b,T(_0x426303)),_0xe5989f['set'](_0xfeb43b,this['_diffRootsAttributes']['get'](_0xfeb43b));this['_saveMetaData'](_0xea1394,_0x249453,this['_markers'],_0xe5989f);}['_getPreviousFrom'](_0xd595e3){const _0x1a8af3=Array['from'](this['_savedMetaData']['keys']());_0x1a8af3['sort']((_0x339c28,_0x548c41)=>_0x339c28-_0x548c41),_0x1a8af3['reverse']();for(const _0x2416eb of _0x1a8af3)if(_0x2416eb<_0xd595e3)return _0x2416eb;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x593fbe,_0x582fae){const _0x7d79ac=Array['from'](_0x582fae['markers'])['map'](([_0x155cf3,_0xf94fa])=>[_0x155cf3,this['_fixRange'](_0xf94fa,_0x593fbe)]);_0x593fbe['markers']=new Map(_0x7d79ac);}['_transformMarkers'](_0x3de9ca){for(const _0x4afd8b of this['_markers']['values']()){const _0x360ec8=_0x4afd8b['getTransformedByOperation'](_0x3de9ca),_0x4e8a33=vt['_createFromRanges'](_0x360ec8);_0x4afd8b['start']=_0x4e8a33['start'],_0x4afd8b['end']=_0x4e8a33['end'];}}['_handleOperation'](_0x3f6f3a,_0x49e4c9){if('addRoot'!=_0x3f6f3a['type']&&'detachRoot'!=_0x3f6f3a['type']){if('insert'==_0x3f6f3a['type']){const _0x470068=_0x3f6f3a['position']['root']['rootName'];this['_diffRoots']['has'](_0x470068)||(this['_diffRoots']['set'](_0x470068,F(_0x470068,!0x0)),this['_diffRootsAttributes']['set'](_0x470068,{}),_0x49e4c9&&this['_idsRoots']['set'](_0x470068,F(_0x470068,!0x0)));}else{if('addRootAttribute'==_0x3f6f3a['type']||'removeRootAttribute'==_0x3f6f3a['type']||'changeRootAttribute'==_0x3f6f3a['type'])return void this['_handleRootAttributeOperation'](_0x3f6f3a);'marker'==_0x3f6f3a['type']&&this['_handleMarkerOperation'](_0x3f6f3a);}if('marker'!==_0x3f6f3a['type']){const _0x12908a=this['_cloneOperation'](_0x3f6f3a,this['_diffRoots']);_0x12908a['_execute'](),this['_transformMarkers'](_0x12908a);}if(_0x49e4c9)switch(_0x3f6f3a['type']){case'insert':this['_handleInsertOperation'](_0x3f6f3a);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x3f6f3a);break;case'merge':this['_handleMergeOperation'](_0x3f6f3a);break;case'split':this['_handleSplitOperation'](_0x3f6f3a);}}else this['_handleRootOperation'](_0x3f6f3a,_0x49e4c9);}['_cloneOperation'](_0x34f4fb,_0x2830a5){const _0x31e897=_0x34f4fb['clone']();return _0x31e897['_authorId']=_0x34f4fb['_authorId'],this['_fixOperation'](_0x31e897,_0x2830a5),_0x31e897;}['_getBaseVids'](_0x15de44){return _0x15de44['map'](_0x1a30de=>{const _0x470c46=this['_getVidAttributeName'](_0x1a30de);return Number(_0x1a30de['item']['getAttribute'](_0x470c46));});}['_generateTape'](_0x2d883a,_0x5d850c){if(_0x2d883a['is']('element','$text'))_0x5d850c['push']({'item':_0x2d883a,'type':'text'});else{_0x2d883a['is']('element')&&_0x5d850c['push']({'item':_0x2d883a,'type':'elementStart'});for(const _0x58e563 of _0x2d883a['getChildren']())this['_generateTape'](_0x58e563,_0x5d850c);_0x2d883a['is']('element')&&_0x5d850c['push']({'item':_0x2d883a,'type':'elementEnd'});}return _0x5d850c;}['_getState'](){const _0x2fddef=new Map(this['_touched']),_0x54c218=new Map(_0x2fddef),_0x16dae9=new Map(),_0x130625={'insertions':{},'deletions':{}},_0x2a04e2={'insertions':{},'deletions':{}},_0x3a9e83=new Map(),_0x283a61=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x283a61['delete']('$graveyard');for(const _0x2a3900 of _0x283a61){const _0x265e27=this['_diffRoots']['get'](_0x2a3900)||F(_0x2a3900,!0x1),_0x1e13cd=this['_baseRoots']['get'](_0x2a3900)||F(_0x2a3900,!0x1);_0x265e27['isAttached']()||_0x1e13cd['isAttached']()?(_0x130625['insertions'][_0x2a3900]=T(_0x265e27),_0x130625['deletions'][_0x2a3900]=T(_0x1e13cd),this['_copyMarkers'](_0x130625['deletions'][_0x2a3900],_0x1e13cd),this['_copyMarkers'](_0x130625['insertions'][_0x2a3900],_0x265e27),_0x2a04e2['insertions'][_0x2a3900]=this['_generateTape'](this['_idsRoots']['get'](_0x2a3900),[]),_0x2a04e2['deletions'][_0x2a3900]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x2a3900)||F(_0x2a3900,!0x1),[])):_0x283a61['delete'](_0x2a3900);}for(const _0x2b305b of _0x283a61){const _0x3be2c6=_0x2a04e2['insertions'][_0x2b305b];for(const _0x3aa069 of _0x3be2c6){const _0x149e18=this['_getVidAttributeName'](_0x3aa069),_0x22066a=_0x3aa069['item']['getAttribute'](_0x149e18);_0x54c218['delete'](_0x22066a),_0x22066a>=this['_startingRevisionId']&&_0x16dae9['set'](_0x22066a,_0x2fddef['get'](_0x22066a));}}for(const _0x11ac95 of _0x283a61){const _0x53684e=_0x2a04e2['insertions'][_0x11ac95],_0x434810=this['_getBaseVids'](_0x2a04e2['deletions'][_0x11ac95]);let _0x26de9f=0x0;for(const _0x420f0c of _0x53684e){const _0x485bbb=this['_getVidAttributeName'](_0x420f0c),_0x57c8b1=_0x420f0c['item']['getAttribute'](_0x485bbb);if(!_0x16dae9['has'](_0x57c8b1)&&!_0x3a9e83['has'](_0x57c8b1)){if(_0x54c218['has'](_0x57c8b1))_0x26de9f++;else{if(_0x57c8b1!=_0x434810[_0x26de9f]){const _0x4d5a63=_0x2fddef['get'](_0x57c8b1)||_0x2fddef['get'](_0x434810[_0x26de9f]);for(;_0x57c8b1!=_0x434810[_0x26de9f];)_0x54c218['has'](_0x434810[_0x26de9f])||(_0x3a9e83['set'](_0x434810[_0x26de9f],_0x4d5a63),_0x2fddef['set'](_0x434810[_0x26de9f],_0x4d5a63)),_0x26de9f++;}_0x26de9f++;}}}}for(const _0x2e7972 of _0x283a61){const _0x7f46c7=_0x2a04e2['insertions'][_0x2e7972];for(const _0x2d775f of _0x7f46c7){const _0x181b6f=this['_getVidAttributeName'](_0x2d775f),_0x37746b=_0x2d775f['item']['getAttribute'](_0x181b6f);if(_0x3a9e83['has'](_0x37746b)){const _0x3732a9=_0x3a9e83['get'](_0x37746b);_0x54c218['has'](_0x37746b)||_0x54c218['set'](_0x37746b,{..._0x3732a9}),_0x16dae9['set'](_0x37746b,{..._0x3732a9});}}}for(const _0xe15d45 of _0x54c218['keys']())_0xe15d45>=this['_startingRevisionId']&&_0x54c218['delete'](_0xe15d45);const _0x4bcd30=new Map();for(const _0x4e5b6e of _0x283a61){let _0x2e664d=_0x2a04e2['insertions'][_0x4e5b6e];for(const _0x29384b of _0x2e664d)if(_0x29384b['item']['is']('element','tableCell')){const _0x5a7188=this['_getVidAttributeName'](_0x29384b),_0x2a3ce8=_0x29384b['item']['getAttribute'](_0x5a7188);if(_0x16dae9['has'](_0x2a3ce8)){const _0x49f197=_0x29384b['item']['parent']['parent']['getAttribute']('vid_start'),_0x33aad3=_0x4bcd30['get'](_0x49f197)||new Set();_0x33aad3['add'](_0x16dae9['get'](_0x2a3ce8)['userId']),_0x4bcd30['set'](_0x49f197,_0x33aad3);}}_0x2e664d=_0x2a04e2['deletions'][_0x4e5b6e];for(const _0x1f9201 of _0x2e664d)if(_0x1f9201['item']['is']('element','tableCell')){const _0x35fba8=this['_getVidAttributeName'](_0x1f9201),_0x5b5643=_0x1f9201['item']['getAttribute'](_0x35fba8);if(_0x54c218['has'](_0x5b5643)){const _0x19cad1=_0x1f9201['item']['parent']['parent']['getAttribute']('vid_start'),_0x17ff0f=_0x4bcd30['get'](_0x19cad1)||new Set();_0x17ff0f['add'](_0x54c218['get'](_0x5b5643)['userId']),_0x4bcd30['set'](_0x19cad1,_0x17ff0f);}}for(const _0x58844f of _0x4bcd30['keys']())(_0x16dae9['has'](_0x58844f)||_0x54c218['has'](_0x58844f))&&_0x4bcd30['delete'](_0x58844f);}for(const _0x74a241 of _0x283a61){const _0x497947=_0x2a04e2['insertions'][_0x74a241];let _0x1ba6b9=null,_0xabe5aa=null;for(const _0x571c59 of _0x497947){const _0x16763c=this['_getVidAttributeName'](_0x571c59),_0x5c848d=_0x571c59['item']['getAttribute'](_0x16763c),_0x438c0d=_0x4bcd30['get'](_0x5c848d);_0x438c0d&&'elementStart'==_0x571c59['type']&&(_0x1ba6b9=Array['from'](_0x438c0d)[0x0],_0xabe5aa=_0x571c59['item']['getAttribute']('vid_end')),_0x1ba6b9&&(_0x54c218['set'](_0x5c848d,{'userId':_0x1ba6b9}),_0x16dae9['set'](_0x5c848d,{'userId':_0x1ba6b9})),_0x5c848d==_0xabe5aa&&(_0x1ba6b9=null,_0xabe5aa=null);}}const _0x3aeccb={},_0x5997a9=new Set();for(const _0x4b7a11 of _0x283a61){const _0x1736a4=_0x130625['deletions'][_0x4b7a11],_0x5987c6=_0x130625['insertions'][_0x4b7a11];for(const {userId:_0x396ec3}of this['_touchedMarkers']['values']())null!==_0x396ec3&&_0x5997a9['add'](_0x396ec3);for(const {userId:_0x1941b4}of this['_touchedRoots']['values']())null!==_0x1941b4&&_0x5997a9['add'](_0x1941b4);this['_markChanges'](_0x5987c6,_0x2a04e2['insertions'][_0x4b7a11],_0x16dae9,'insertion',_0x5997a9),this['_markChanges'](_0x1736a4,_0x2a04e2['deletions'][_0x4b7a11],_0x54c218,'deletion',_0x5997a9),_0x3aeccb[_0x4b7a11]={'insertions':this['_prepareViewToSave'](_0x5987c6),'deletions':this['_prepareViewToSave'](_0x1736a4),'attachChange':this['_touchedRoots']['get'](_0x4b7a11)||null,'attributesBefore':_0xf7ee50(this['_baseRootsAttributes']['get'](_0x4b7a11))||{},'attributesAfter':_0xf7ee50(this['_diffRootsAttributes']['get'](_0x4b7a11))};}return{'diffData':_0x3aeccb,'authorsIds':Array['from'](_0x5997a9)};}['_processRootBeforeSave'](_0x425ab6){for(const [,_0x3e65e9]of _0x425ab6['markers']){const _0x1b1056=_0x3e65e9['start']['getAncestors']()['filter'](_0x3703d1=>'tableCell'==_0x3703d1['name']);for(const _0x208149 of _0x1b1056)0x1==_0x208149['childCount']&&_0x208149['getChild'](0x0)['is']('element','paragraph')&&_0x208149['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x2da121){this['_processRootBeforeSave'](_0x2da121);const _0x2523c2=this['editor']['data']['toView'](_0x2da121,{}),_0x7f4e08=Array['from'](_0x2523c2['getChildren']())['map'](_0x22444b=>this['_getViewJson'](_0x22444b));return JSON['stringify'](_0x7f4e08);}['_getViewJson'](_0x18df01){if(_0x18df01['is']('$text'))return _0x18df01['data'];{const _0x3e1557=_0x18df01;return{'type':Object['keys'](P)['find'](_0x5c2fe8=>_0x18df01 instanceof P[_0x5c2fe8]),'name':_0x3e1557['name'],'attributes':Array['from'](_0x3e1557['getAttributes']()),'children':Array['from'](_0x3e1557['getChildren']())['map'](_0x18dd8e=>this['_getViewJson'](_0x18dd8e))};}}['_markChanges'](_0x356b88,_0x3e79fd,_0xb15d1f,_0x57ff7c,_0x234223){let _0x5c3304=null,_0x520ea3=null,_0x54c33e=0x0;const _0x37bca4=this['editor']['model'];for(let _0xbf5cb4=0x0;_0xbf5cb4<_0x3e79fd['length'];_0xbf5cb4++){const _0x1f9def=this['_getVidAttributeName'](_0x3e79fd[_0xbf5cb4]),_0xe9b1bb=_0x3e79fd[_0xbf5cb4]['item']['getAttribute'](_0x1f9def),_0x47e720=_0xb15d1f['get'](_0xe9b1bb),_0x4e2233=_0xbf5cb4==_0x3e79fd['length']-0x1;(!_0x5c3304&&_0x47e720&&(_0x5c3304=_0x47e720,_0x520ea3=_0x3e79fd[_0xbf5cb4]),_0x5c3304&&(!_0x47e720||_0x47e720['userId']!=_0x5c3304['userId']))&&(_0x5ecb73(_0x47e720,B(_0x520ea3,_0x356b88,_0x37bca4),B(_0x3e79fd[_0xbf5cb4],_0x356b88,_0x37bca4)),_0x5c3304=_0x47e720||null,_0x520ea3=_0x47e720?_0x3e79fd[_0xbf5cb4]:null),_0x5c3304&&_0x4e2233&&_0x5ecb73(_0x47e720,B(_0x520ea3,_0x356b88,_0x37bca4),J(_0x3e79fd[_0xbf5cb4],_0x356b88,_0x37bca4));}function _0x5ecb73(_0x392995,_0x154764,_0x4a607b){const _0x5aa699=_0x5c3304['userId'],_0xc83b22='revision:'+_0x57ff7c+':'+_0x5aa699+':'+_0x54c33e++,_0x18d691=_0x37bca4['createRange'](_0x154764,_0x4a607b);_0x356b88['markers']['set'](_0xc83b22,_0x18d691),null!==_0x5aa699&&_0x234223['add'](_0x5aa699);}}['_getVidAttributeName'](_0x22d146){switch(_0x22d146['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x1be2de,_0x1fe65e){_0x1be2de['baseVersion']=null;for(const _0x1fff09 in _0x1be2de){const _0x475995=_0x1be2de[_0x1fff09];if(_0x475995 instanceof gt){const _0x68cd6d=_0x1fe65e['get'](_0x475995['root']['rootName']);_0x1be2de[_0x1fff09]=this['_fixPosition'](_0x475995,_0x68cd6d);}if(_0x475995 instanceof vt){const _0x264398=_0x1fe65e['get'](_0x475995['root']['rootName']);_0x1be2de[_0x1fff09]=this['_fixRange'](_0x475995,_0x264398);}'root'===_0x1fff09&&(_0x1be2de['root']=_0x1fe65e['get'](_0x1be2de['root']['rootName']));}}['_fixRange'](_0x3d11e7,_0x59f332){return this['editor']['model']['createRange'](this['_fixPosition'](_0x3d11e7['start'],_0x59f332),this['_fixPosition'](_0x3d11e7['end'],_0x59f332));}['_fixPosition'](_0x599543,_0x3d0c2e){return this['editor']['model']['createPositionFromPath'](_0x3d0c2e,_0x599543['path'],_0x599543['stickiness']);}['_handleInsertOperation'](_0x367534){const _0x363738=this['_idsRoots']['get'](_0x367534['position']['root']['rootName']),_0x59bf53=this['_fixPosition'](_0x367534['position'],_0x363738),_0x483c36=null===_0x367534['_authorId']?null:_0x367534['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x49420c=_0x59bf53['parent'],_0x3a4527=this['_revisionId'],_0x21563f=[];for(const _0x4e4abc of _0x367534['nodes'])if(_0x4e4abc['is']('element'))_0x21563f['push'](this['_makeIdsRoot'](_0x4e4abc));else{for(let _0x54f9f2=0x0;_0x54f9f2<_0x4e4abc['offsetSize'];_0x54f9f2++)_0x21563f['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0xaf6455=this['_revisionId'];for(let _0x160ed3=_0x3a4527;_0x160ed3<_0xaf6455;_0x160ed3++)this['_touched']['set'](_0x160ed3,{'userId':_0x483c36});_0x49420c['_insertChild'](_0x59bf53['offset'],_0x21563f);}['_handleMoveOperation'](_0x78219){(_0x78219=this['_cloneOperation'](_0x78219,this['_idsRoots']))['_execute']();const _0x27e82c=null===_0x78219['_authorId']?null:_0x78219['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xed23ec=_0x78219['getMovedRangeStart'](),_0x16792d=_0xed23ec['parent'],_0x2ee1e7=_0xed23ec['offset'];!function _0x4f3819(_0x813cc0,_0x4b374e,_0x36cda0,_0x496d3b){for(let _0x553945=_0x36cda0;_0x553945<_0x496d3b;_0x553945++){const _0x154420=_0x4b374e['getChild'](_0x553945);_0x154420['is']('element','$text')?_0x813cc0['set'](_0x154420['getAttribute']('vid'),{'userId':_0x27e82c}):(_0x813cc0['set'](_0x154420['getAttribute']('vid_start'),{'userId':_0x27e82c}),_0x4f3819(_0x813cc0,_0x154420,0x0,_0x154420['childCount']),_0x813cc0['set'](_0x154420['getAttribute']('vid_end'),{'userId':_0x27e82c}));}}(this['_touched'],_0x16792d,_0x2ee1e7,_0x2ee1e7+_0x78219['howMany']);}['_handleMergeOperation'](_0x1c750a){const _0x3a19e4=null===(_0x1c750a=this['_cloneOperation'](_0x1c750a,this['_idsRoots']))['_authorId']?null:_0x1c750a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x44a3ba=_0x1c750a['targetPosition']['parent'],_0x3e26d5=_0x1c750a['sourcePosition']['parent'],_0x232ea0=_0x44a3ba['getAttribute']('vid_end'),_0x1ccf19=_0x3e26d5['getAttribute']('vid_start');_0x44a3ba['_setAttribute']('vid_end',_0x3e26d5['getAttribute']('vid_end')),_0x3e26d5['_setAttribute']('vid_end',_0x232ea0),this['_touched']['set'](_0x1ccf19,{'userId':_0x3a19e4}),this['_touched']['set'](_0x232ea0,{'userId':_0x3a19e4}),_0x1c750a['_execute']();}['_handleSplitOperation'](_0x5c6866){const _0x38a728=null===(_0x5c6866=this['_cloneOperation'](_0x5c6866,this['_idsRoots']))['_authorId']?null:_0x5c6866['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x689a03=_0x5c6866['graveyardPosition'],_0x243f30=_0x5c6866['splitPosition']['parent'];_0x5c6866['_execute']();const _0x21d705=_0x243f30['getAttribute']('vid_end'),_0x55c21d=_0x5c6866['insertionPosition']['nodeAfter'];if(_0x689a03){const _0x42bc8e=_0x55c21d['getAttribute']('vid_end'),_0x2af6bd=_0x243f30['getAttribute']('vid_end');_0x243f30['_setAttribute']('vid_end',_0x42bc8e),_0x55c21d['_setAttribute']('vid_end',_0x2af6bd),this['_touched']['set'](_0x243f30['getAttribute']('vid_end'),{'userId':_0x38a728}),this['_touched']['set'](_0x55c21d['getAttribute']('vid_start'),{'userId':_0x38a728});}else{const _0x151a3c=this['_revisionId']++,_0x4cd144=this['_revisionId']++;_0x243f30['_setAttribute']('vid_end',_0x151a3c),_0x55c21d['_setAttribute']('vid_start',_0x4cd144),_0x55c21d['_setAttribute']('vid_end',_0x21d705),this['_touched']['set'](_0x151a3c,{'userId':_0x38a728}),this['_touched']['set'](_0x4cd144,{'userId':_0x38a728});}}['_handleMarkerOperation'](_0x56d0db){if(!_0x56d0db['affectsData'])return;const _0x4a8574=(_0x56d0db=this['_cloneOperation'](_0x56d0db,this['_diffRoots']))['oldRange']?_0x56d0db['oldRange']['root']:null,_0x55ab6d=_0x56d0db['newRange']?_0x56d0db['newRange']['root']:null;_0x4a8574&&this['_markers']['delete'](_0x56d0db['name']),_0x55ab6d&&this['_markers']['set'](_0x56d0db['name'],_0x56d0db['newRange']['clone']());const _0x26a7d7=null===_0x56d0db['_authorId']?null:_0x56d0db['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5ed18c=_0x56d0db['name'];if(!this['_touchedMarkers']['has'](_0x5ed18c))return void this['_touchedMarkers']['set'](_0x5ed18c,{'range':_0x56d0db['oldRange'],'userId':_0x26a7d7});const _0x503dab=this['_touchedMarkers']['get'](_0x5ed18c),_0x315bd8=_0x503dab['range'],_0x583fb9=_0x56d0db['newRange'];null==_0x315bd8&&null==_0x583fb9||_0x315bd8&&_0x583fb9&&_0x315bd8['isEqual'](_0x583fb9)?this['_touchedMarkers']['delete'](_0x56d0db['name']):_0x503dab['userId']=_0x26a7d7;}['_handleRootOperation'](_0x277a76,_0xa91c93){this['_diffRoots']['has'](_0x277a76['rootName'])?this['_diffRoots']['get'](_0x277a76['rootName'])['_isAttached']=_0x277a76['isAdd']:(this['_diffRoots']['set'](_0x277a76['rootName'],F(_0x277a76['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x277a76['rootName'],{}),_0xa91c93&&this['_idsRoots']['set'](_0x277a76['rootName'],F(_0x277a76['rootName'],!0x0)));const _0x4c55ae=null===_0x277a76['_authorId']?null:_0x277a76['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x254f4b=this['_touchedRoots']['get'](_0x277a76['rootName']);_0x254f4b&&_0x254f4b['userId']===_0x4c55ae?this['_touchedRoots']['delete'](_0x277a76['rootName']):this['_touchedRoots']['set'](_0x277a76['rootName'],{'userId':_0x4c55ae,'isAttached':_0x277a76['isAdd']});}['_handleRootAttributeOperation'](_0x53fa2){const _0x537fd6=this['_diffRootsAttributes']['get'](_0x53fa2['root']['rootName']);null===_0x53fa2['newValue']?delete _0x537fd6[_0x53fa2['key']]:_0x537fd6[_0x53fa2['key']]=_0x53fa2['newValue'];}}function T(_0x5bd7f2){const _0x39b618=F(_0x5bd7f2['rootName'],_0x5bd7f2['isAttached']());for(const _0x1bfb15 of _0x5bd7f2['getChildren']()){const _0xda548c=_0x1bfb15['_clone'](!0x0);_0x39b618['_appendChild'](_0xda548c);}return _0x39b618;}function F(_0x42ea64,_0x5a48a9=!0x0){const _0x2d17ec=new mt();return _0x2d17ec['rootName']=_0x42ea64,_0x2d17ec['_isAttached']=_0x5a48a9,_0x2d17ec['isAttached']=()=>_0x2d17ec['_isAttached'],_0x2d17ec;}function B(_0x202e2d,_0x416d0b,_0x5888d5){const _0xbc3fb9='elementEnd'==_0x202e2d['type']?_0x5888d5['createPositionAt'](_0x202e2d['item'],'end'):_0x5888d5['createPositionBefore'](_0x202e2d['item']);return _0x5888d5['createPositionFromPath'](_0x416d0b,_0xbc3fb9['path'],_0xbc3fb9['stickiness']);}function J(_0x538c70,_0x1f33c7,_0x2c82ae){const _0x17d7a5='elementStart'==_0x538c70['type']?_0x2c82ae['createPositionAt'](_0x538c70['item'],0x0):_0x2c82ae['createPositionAfter'](_0x538c70['item']);return _0x2c82ae['createPositionFromPath'](_0x1f33c7,_0x17d7a5['path'],_0x17d7a5['stickiness']);}class hs extends _0x2110a1{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x33f6b7,_0x52d526){super(_0x33f6b7),this['focusTracker']=new _0x4cc23d(),this['keystrokes']=new _0x33cb8e(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x52d526),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'](),_0x665807({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x5470a5=_0x4da46a=>_0x4da46a['stopPropagation']();this['keystrokes']['set']('arrowright',_0x5470a5),this['keystrokes']['set']('arrowleft',_0x5470a5),this['keystrokes']['set']('arrowup',_0x5470a5),this['keystrokes']['set']('arrowdown',_0x5470a5);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x316f4f){this['revisionNameInputView']['fieldView']['element']['value']=_0x316f4f['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x48c4ff){const _0x150bd8=new nt(this['locale'],_0x176e3c),_0x14a440=_0x150bd8['fieldView'];_0x14a440['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x1a4c33=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x48c4ff&&(_0x1a4c33+='\x20('+m(this['locale'],'optional')+')'),(_0x150bd8['label']=_0x1a4c33,_0x14a440['on']('input',()=>{this['revisionNameInputValue']=_0x14a440['element']['value']['trim']();}),_0x150bd8);}}class u extends _0x53f3b9{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x45b753=this['editor'],_0x15863d=_0x45b753['plugins']['get']('RevisionTracker');_0x45b753['ui']['componentFactory']['add']('revisionHistory',_0x3547d4=>{const _0x50c203=_0x221db2(_0x3547d4),_0x1e6b28=_0x50c203['panelView']['children'],_0x1b2568=new _0x4d2cd0(_0x3547d4),_0x1ecc4d=new te(_0x3547d4),_0x544aff=new _0x397beb(_0x3547d4),_0x136665=new te(_0x3547d4),_0x160aa1=new _0x397beb(_0x3547d4);return _0x50c203['bind']('isEnabled')['to'](_0x15863d,'isReady',_0x15863d,'isEnabled',_0x45b753,'isReadOnly',(_0x495384,_0x31fece,_0x250b0f)=>_0x495384&&_0x31fece&&!_0x250b0f),_0x50c203['buttonView']['set']({'icon':_0x48df4e['history'],'label':m(_0x3547d4,'Revision\x20history'),'tooltip':!0x0}),_0x544aff['set']({'label':m(_0x3547d4,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x544aff['bind']('isEnabled')['to'](_0x15863d,'isReady',_0x15863d,'isEnabled',_0x45b753,'isReadOnly',(_0x269828,_0x4b9336,_0x4d36ae)=>_0x269828&&_0x4b9336&&!_0x4d36ae),_0x544aff['on']('execute',()=>this['_showDialog']()),_0x160aa1['set']({'label':m(_0x3547d4,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x160aa1['bind']('isEnabled')['to'](_0x15863d,'isReady',_0x45b753,'isReadOnly',(_0x45bcaf,_0xf19427)=>_0x45bcaf&&!_0xf19427),_0x160aa1['on']('execute',()=>{_0x45b753['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x50c203['isOpen']=!0x1,_0x45b753['editing']['view']['focus']();}),_0x1ecc4d['children']['add'](_0x544aff),_0x136665['children']['add'](_0x160aa1),_0x1b2568['role']='menu',_0x1b2568['items']['addMany']([_0x1ecc4d,_0x136665]),_0x1e6b28['add'](_0x1b2568),_0x50c203;}),_0x45b753['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x303848=this['editor'],_0x512bcd=_0x303848['locale'],_0x4f1a62=new _0x70d87(_0x512bcd),_0xc46456=new _0x59534d(_0x512bcd);_0x4f1a62['buttonView']['set']({'icon':_0x48df4e['history'],'label':m(_0x512bcd,'Revision\x20history')});const _0x13311b=new _0x4f1daf(_0x512bcd,_0x4f1a62),_0xbf1736=new _0x31a9d4(_0x512bcd);_0xbf1736['set']({'label':m(_0x512bcd,'Save\x20current\x20revision')}),_0xbf1736['delegate']('execute')['to'](_0x4f1a62),_0xbf1736['on']('execute',()=>{this['_showDialog']();}),_0x13311b['children']['add'](_0xbf1736),_0xc46456['items']['add'](_0x13311b);const _0x2e7c74=new _0x4f1daf(_0x512bcd,_0x4f1a62),_0x343456=new _0x31a9d4(_0x512bcd);return _0x343456['set']({'label':m(_0x512bcd,'Open\x20revision\x20history')}),_0x343456['delegate']('execute')['to'](_0x4f1a62),_0x343456['on']('execute',()=>{_0x303848['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x2e7c74['children']['add'](_0x343456),_0xc46456['items']['add'](_0x2e7c74),_0x4f1a62['panelView']['children']['add'](_0xc46456),_0x4f1a62;}['_showDialog'](){const _0x1d1be9=this['editor'],_0x55dbdb=_0x1d1be9['locale'],_0x3c5b64=_0x1d1be9['plugins']['get']('Dialog'),_0xee249a=_0x1d1be9['plugins']['get']('RevisionTracker');function _0x4eed3c(_0x4ab38d){_0x1d1be9['config']['get']('revisionHistory.requireRevisionName')&&''===_0x4ab38d['revisionName']?_0x4ab38d['revisionNameInputView']['errorText']=m(_0x55dbdb,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x1d1be9['plugins']['get'](l)['saveRevision']({'name':_0x4ab38d['revisionName']}),_0x3c5b64['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x4eed3c(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x3c5b64['show']({'id':'revisionSave','title':m(_0x55dbdb,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x1d1be9['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x3c5b64['hide']()},{'label':m(_0x1d1be9['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x2a27ab){_0x2a27ab['bind']('isEnabled')['to'](_0xee249a,'isReady',_0xee249a,'isEnabled',_0x1d1be9,'isReadOnly',(_0x39d777,_0xf1b975,_0x9f34c5)=>_0x39d777&&_0xf1b975&&!_0x9f34c5);},'onExecute':()=>_0x4eed3c(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x1ae173=this['editor'],_0x255770=_0x1ae173['locale'];this['_saveRevisionFormView']=new hs(_0x255770,_0x1ae173['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0x2110a1{['changeId'];['_model'];constructor(_0x5a7379,_0x13639b){super(_0x5a7379),this['_model']=_0x13639b,this['changeId']=_0x13639b['id'];const _0x23d8ea=this['bindTemplate'],_0xe9136a=m(_0x5a7379,_0x13639b['data']['isSuggestion']?'Suggested\x20by':'add'==_0x13639b['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x13639b['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x23d8ea['to']('type',_0x3afe1b=>'ck-revision-change__'+_0x3afe1b)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0xe9136a}]},{'text':'\x20'+_0x13639b['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x361808(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x4a6399){super(),this['id']=_0x4a6399['id']||_0x4e1ee9(),this['author']=_0x4a6399['author'],this['type']=_0x4a6399['type'],this['data']=_0x4a6399['data']||{},this['rootName']=_0x4a6399['rootName'],this['set']('createdAt',_0x4a6399['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class f{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x4e9d14,_0x3c7128){this['newRevisionId']=_0x4e9d14,this['oldRevisionId']=_0x3c7128,this['changes']=new _0x25f72c();}['_setChanges'](_0x3066b4){for(const _0x1ea2d0 of _0x3066b4)this['changes']['add'](_0x1ea2d0);}}const Y={'c':_0x2b87d7,'a':_0x3290cf,'e':_0x35fb3e,'r':_0x53bb2c,'u':_0x2eb804};class d extends _0x53f3b9{['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[_0xf2dc20,_0x5f3aac,j];}constructor(_0x1bbd6e){super(_0x1bbd6e),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',(_0x11879c,_0x517e16,_0x41920e)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x3fc678=>{for(const _0x5bbf0f of this['editor']['editing']['view']['document']['roots'])_0x41920e?_0x3fc678['removeClass']('ck-editor__editable__overlay',_0x5bbf0f):_0x3fc678['addClass']('ck-editor__editable__overlay',_0x5bbf0f);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x240d94=>null!==_0x240d94),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x36bb46,_0x4fe187,_0x12b0c5)=>_0x36bb46&&_0x12b0c5?_0x4fe187['changes']['getIndex'](_0x12b0c5):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x35cd56,_0x26f0b7)=>_0x35cd56?_0x26f0b7['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x5f3aac);}['init'](){const _0x208e90=this['editor'],_0xdb20e9=new yt(_0x208e90,{'direction':'backward'}),_0x4bd48d=new yt(_0x208e90,{'direction':'forward'});(_0x208e90['commands']['add']('showPreviousChange',_0xdb20e9),_0x208e90['commands']['add']('showNextChange',_0x4bd48d),_0x208e90['commands']['add']('restoreRevision',new _t(_0x208e90)),this['on']('change:numberOfChanges',()=>{_0xdb20e9['refresh'](),_0x4bd48d['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x208e90['enableReadOnlyMode']('revision-viewer'),_0x208e90['plugins']['has']('WidgetToolbarRepository'))&&_0x208e90['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x2dd955){await this['loadRevisionData'](_0x2dd955);const _0x2f328d={};for(const _0x528665 in _0x2dd955['diffData']){if(_0x2dd955['diffData'][_0x528665]['attachChange']&&!_0x2dd955['diffData'][_0x528665]['attachChange']['isAttached'])continue;const _0x1513f=this['_removeRevisionMarkers'](JSON['parse'](_0x2dd955['diffData'][_0x528665]['insertions'])),_0x43f225=this['editor']['editing']['view']['document'],_0xc43564=new _0x12b0a7(_0x43f225,_0x1513f['map'](_0xd76889=>this['_getViewObj'](_0xd76889)));this['editor']['data']['processor']['useFillerType']('marked'),_0x2f328d[_0x528665]=this['editor']['data']['processor']['toData'](_0xc43564),this['editor']['data']['processor']['useFillerType']('default');}return _0x2f328d;}async['getRevisionRootsAttributes'](_0x16e23d){await this['loadRevisionData'](_0x16e23d);const _0x4bb0ed={};for(const _0x2d99b5 in _0x16e23d['diffData'])_0x16e23d['diffData'][_0x2d99b5]['attachChange']&&!_0x16e23d['diffData'][_0x2d99b5]['attachChange']['isAttached']||(_0x4bb0ed[_0x2d99b5]=_0x16e23d['diffData'][_0x2d99b5]['attributesAfter']||{});return _0x4bb0ed;}['_removeRevisionMarkers'](_0x376d73){return(_0x376d73=_0x376d73['filter'](_0x3947b7=>!_0x3947b7['name']||'revision-start'!==_0x3947b7['name']&&'revision-end'!==_0x3947b7['name']))['forEach'](_0x337f61=>{'string'!=typeof _0x337f61&&(_0x337f61['children']=this['_removeRevisionMarkers'](_0x337f61['children']),_0x337f61['attributes']=_0x337f61['attributes']['filter'](_0x1e646f=>!_0x1e646f[0x0]['startsWith']('data-revision-')));}),_0x376d73;}async['compare'](_0x4ffe90,_0x3368db,_0x4dd0ce=!0x1){if(!this['isEnabled'])return;const _0x497bc1=this['diff'],_0x5be7cf=this['repository'],_0x3f9156='string'==typeof _0x4ffe90?_0x5be7cf['getRevision'](_0x4ffe90):_0x4ffe90,_0x5824a3='string'==typeof _0x3368db?_0x5be7cf['getRevision'](_0x3368db):_0x3368db,_0x5b98c4=_0x3f9156['id'],_0x229cbc=_0x5824a3?_0x5824a3['id']:null;if(!_0x4dd0ce&&this['diff']&&this['diff']['newRevisionId']===_0x5b98c4&&this['diff']['oldRevisionId']===_0x229cbc)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x5b98c4,_0x229cbc);const _0x2563e0=this['_getRevisionsRange'](_0x3f9156,_0x5824a3,!0x0)['map'](_0x29d02d=>this['loadRevisionData'](_0x29d02d));return _0x2563e0['push'](new Promise(_0x49ecb5=>{setTimeout(_0x49ecb5,0x14);})),Promise['all'](_0x2563e0)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x2ae4be=this['_getDiff'](_0x5b98c4,_0x229cbc);for(const _0xf48c3a of _0x2ae4be['changes'])this['_changeIdToChange']['set'](_0xf48c3a['id'],_0xf48c3a);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x5162d3=>{for(const _0x22ba7b of this['editor']['model']['document']['getRootNames']())_0x5162d3['detachRoot'](_0x22ba7b);for(const _0x474a58 of Object['keys'](_0x2ae4be['model'])){const _0x415168=_0x5162d3['addRoot'](_0x474a58);for(const _0x5bba9e of Object['keys'](_0x2ae4be['attributes'][_0x474a58]))_0x5162d3['setAttribute'](_0x5bba9e,_0x2ae4be['attributes'][_0x474a58][_0x5bba9e],_0x415168);_0x5162d3['insert'](_0x2ae4be['model'][_0x474a58],_0x415168,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x2ae4be['changes'])),this['isReady']=!0x0;})['catch'](_0xf071c5=>{console['error'](_0xf071c5),this['_cleanUp'](),_0x497bc1&&(this['diff']=_0x497bc1),this['isReady']=!0x0;});}['addRevisionData'](_0x2ff4bc,_0x5a49b6){const _0x59ca8d=this['repository']['createRevision'](_0x2ff4bc);return _0x59ca8d['on']('_update',(_0x430c23,_0x438579,_0x20facd)=>_0x5a49b6(_0x438579,_0x20facd,_0x59ca8d)),this['repository']['addRevision'](_0x59ca8d),_0x59ca8d;}['loadRevisionData'](_0x4a0d19){if(!_0x4a0d19||_0x4a0d19['diffData'])return Promise['resolve']();{const _0x56dae7=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x56dae7,'revisionId':_0x4a0d19['id']})['then'](_0x368276=>{_0x4a0d19['_update']({'diffData':_0x368276['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},_0xd2c6dc=>{for(const _0x581a1c of this['editor']['model']['document']['getRootNames']())_0xd2c6dc['detachRoot'](_0x581a1c);});}['_sortAndFilterDiffChanges'](_0x3f30aa){const _0x42ed77=[],_0x152d41=new Map();for(const _0x48666e of this['editor']['model']['document']['getRootNames']()){const _0x36ea3f=this['editor']['editing']['view']['getDomRoot'](_0x48666e);if(!_0x36ea3f)continue;const _0x33e8ae=_0x36ea3f['getClientRects']()['item'](0x0);_0x33e8ae&&(_0x42ed77['push'](_0x48666e),_0x152d41['set'](_0x48666e,_0x33e8ae));}return _0x42ed77['sort']((_0x2ae192,_0x330417)=>{const _0x476159=_0x152d41['get'](_0x2ae192),_0x338d3e=_0x152d41['get'](_0x330417);return _0x476159['y']-_0x338d3e['y']||_0x476159['x']-_0x338d3e['x'];}),(_0x3f30aa=_0x3f30aa['filter'](_0x22300e=>_0x42ed77['includes'](_0x22300e['rootName'])))['sort']((_0xaae8ed,_0x29f5b4)=>_0x42ed77['indexOf'](_0xaae8ed['rootName'])-_0x42ed77['indexOf'](_0x29f5b4['rootName'])),_0x3f30aa;}['_makeTape'](_0x4bb1d7){const _0x14269f=Array['from'](_0x4bb1d7['markers'])['filter'](([_0x57ca2e,_0x2b4d37])=>_0x57ca2e['startsWith']('revision:')&&!_0x2b4d37['isCollapsed']),_0x7e8ad3=Array['from'](this['editor']['model']['createRangeIn'](_0x4bb1d7)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x14269f['length'])for(const _0x399515 of _0x7e8ad3){const [_0x4dae0f,_0x1f457a]=_0x14269f[0x0],[,_0xef8c0c,_0x4584a1]=_0x4dae0f['split'](':');if(_0x1f457a['end']['isEqual'](_0x399515['nextPosition'])&&_0x14269f['shift'](),(_0x399515['previousPosition']['isEqual'](_0x1f457a['start'])||_0x399515['previousPosition']['isAfter'](_0x1f457a['start']))&&('insertion'==_0xef8c0c?_0x399515['isAdded']={'userId':_0x4584a1}:'deletion'==_0xef8c0c&&(_0x399515['isRemoved']={'userId':_0x4584a1})),0x0==_0x14269f['length'])break;}return _0x7e8ad3;}['_refreshStartEndIndex'](_0x2b82de){const _0x2d35f3=new Map();for(let _0x2f7034=0x0;_0x2f7034<_0x2b82de['length'];_0x2f7034++)'text'===_0x2b82de[_0x2f7034]['type']?(_0x2b82de[_0x2f7034]['item']['startIndex']=_0x2f7034,_0x2b82de[_0x2f7034]['item']['endIndex']=_0x2f7034):('elementStart'===_0x2b82de[_0x2f7034]['type']?_0x2b82de[_0x2f7034]['item']['startIndex']=_0x2f7034:'elementEnd'===_0x2b82de[_0x2f7034]['type']&&(_0x2b82de[_0x2f7034]['item']['endIndex']=_0x2f7034),_0x2d35f3['set'](_0x2b82de[_0x2f7034]['id'],_0x2f7034));for(const _0x5c016a of _0x2d35f3['values']())'elementStart'===_0x2b82de[_0x5c016a]['type']?_0x2b82de[_0x5c016a]['item']['endIndex']=_0x2d35f3['get'](_0x2b82de[_0x5c016a]['pairId']):'elementEnd'===_0x2b82de[_0x5c016a]['type']&&(_0x2b82de[_0x5c016a]['item']['startIndex']=_0x2d35f3['get'](_0x2b82de[_0x5c016a]['pairId']));}['_processTape'](_0x465db8){for(let _0x41b789=0x0;_0x41b789<_0x465db8['length'];_0x41b789++){if('elementStart'===_0x465db8[_0x41b789]['type'])_0x465db8[_0x41b789]['item']['startIndex']=_0x41b789;else{if('elementEnd'===_0x465db8[_0x41b789]['type']){_0x465db8[_0x41b789]['item']['endIndex']=_0x41b789;const _0x48acbc=_0x465db8[_0x41b789]['item']['startIndex'];_0x465db8[_0x48acbc]['pairId']=_0x465db8[_0x41b789]['id'],_0x465db8[_0x41b789]['pairId']=_0x465db8[_0x48acbc]['id'];}else _0x465db8[_0x41b789]['item']['startIndex']=_0x41b789,_0x465db8[_0x41b789]['item']['endIndex']=_0x41b789,_0x465db8[_0x41b789]['pairId']=null;}_0x465db8[_0x41b789]['markersStart']||(_0x465db8[_0x41b789]['markersStart']=[],_0x465db8[_0x41b789]['markersEnd']=[]);}}['_markInsertions'](_0x12a078,_0x492ee7){const _0x2c9125=_0x12a078['filter'](_0x4bda47=>!_0x4bda47['isAdded']);for(let _0x2b50f5=0x0;_0x2b50f5<_0x492ee7['length'];_0x2b50f5++)_0x492ee7[_0x2b50f5]['isAdded']&&(_0x2c9125[_0x2b50f5]['isAdded']=_0x492ee7[_0x2b50f5]['isAdded']);}['_makeModelFromViewString'](_0x5b8122){const _0x3a350b=JSON['parse'](_0x5b8122),_0x5aa228=this['editor']['editing']['view']['document'],_0x41e83e=new _0x12b0a7(_0x5aa228,_0x3a350b['map'](_0x149da6=>this['_getViewObj'](_0x149da6)));return this['editor']['data']['toModel'](_0x41e83e);}['_getViewObj'](_0x4460a7){const _0x3a9868=this['editor']['editing']['view']['document'];if('string'==typeof _0x4460a7)return new _0x49cfbb(_0x3a9868,_0x4460a7);{const _0x1107af=_0x4460a7['children']['map'](_0x196f26=>this['_getViewObj'](_0x196f26));return new(Y[_0x4460a7['type']]||_0x5213af)(_0x3a9868,_0x4460a7['name'],_0x4460a7['attributes'],_0x1107af);}}['_getDiff'](_0x28ac12,_0x3b55ad=null){const _0x1f9a16=this['repository']['getRevision'](_0x28ac12),_0x2a9070=_0x3b55ad?this['repository']['getRevision'](_0x3b55ad):null,_0x48d8=this['_getRevisionsRange'](_0x1f9a16,_0x2a9070),_0x3a77c4=_0x48d8[_0x48d8['length']-0x1],_0x4e3d49=new Map(),_0xb70370={'model':{},'attributes':{},'changes':[]},_0x35526b=new Set(),_0x17cc38=new Map();for(let _0x177dce=_0x48d8['length']-0x1;_0x177dce>=0x0;_0x177dce--){const _0x18f65b=_0x48d8[_0x177dce];for(const _0x32c332 of Object['keys'](_0x18f65b['diffData']))if(_0x18f65b['diffData'][_0x32c332]['attachChange']){const _0xea922b=_0x18f65b['diffData'][_0x32c332]['attachChange'];_0xea922b['isAttached']?(_0x35526b['add'](_0x32c332),_0x17cc38['has'](_0x32c332)&&_0x17cc38['get'](_0x32c332)['userId']==_0xea922b['userId']?_0x17cc38['delete'](_0x32c332):_0x17cc38['set'](_0x32c332,_0xea922b)):_0x17cc38['has'](_0x32c332)?(_0x35526b['delete'](_0x32c332),_0x17cc38['delete'](_0x32c332)):(_0x35526b['add'](_0x32c332),_0x17cc38['set'](_0x32c332,_0xea922b));}else _0x35526b['add'](_0x32c332);}for(const _0x48c8cb of _0x35526b){const _0x50524b=_0x17cc38['has'](_0x48c8cb)&&!_0x17cc38['get'](_0x48c8cb)['isAttached'];let _0x37c96a=_0x50524b?_0x48d8['length']-0x1:0x0;const _0x5e30df=_0x50524b?-0x1:0x1;for(;_0x48d8[_0x37c96a];){const _0x474237=_0x48d8[_0x37c96a];if(_0x474237['diffData'][_0x48c8cb]){const _0x384c8d=_0x50524b?_0x474237['diffData'][_0x48c8cb]['attributesBefore']:_0x474237['diffData'][_0x48c8cb]['attributesAfter'];_0xb70370['attributes'][_0x48c8cb]=_0x384c8d?_0xf7ee50(_0x384c8d):{};break;}_0x37c96a+=_0x5e30df;}}for(const _0x4144af of _0x48d8){_0x4144af['model']={};for(const _0x34570f of _0x4144af['authors'])_0x4e3d49['set'](_0x34570f['id'],_0x34570f);for(const _0x4ace7e of _0x35526b){const _0x2fa1ff=_0x4144af['diffData'][_0x4ace7e]?_0x4144af['diffData'][_0x4ace7e]['insertions']:'[]',_0x59dff4=_0x4144af['diffData'][_0x4ace7e]?_0x4144af['diffData'][_0x4ace7e]['deletions']:'[]';_0x4144af['model'][_0x4ace7e]={'insertions':this['_makeModelFromViewString'](_0x2fa1ff),'deletions':this['_makeModelFromViewString'](_0x59dff4)};}}for(const _0x2387ee of _0x35526b){let _0x28c27b=null,_0x4068ed=0x0;const _0x4e0d33=new Map(Array['from'](_0x1f9a16['model'][_0x2387ee]['insertions']['markers'])['filter'](([_0x3f1225])=>!_0x3f1225['startsWith']('revision:')));let _0x2ddbfa=0x0;for(const _0x265c5b of _0x48d8){const _0x25d268=this['_makeTape'](_0x265c5b['model'][_0x2387ee]['insertions']);_0x265c5b==_0x1f9a16?(_0x28c27b=_0x25d268,_0x4068ed=_0x28c27b['length'],_0x28c27b['forEach'](_0x18eae0=>{_0x18eae0['id']=_0x2ddbfa++;}),this['_processTape'](_0x28c27b)):this['_markInsertions'](_0x28c27b,_0x25d268);const _0x5a8472=_0x28c27b['filter'](_0x314159=>!_0x314159['isAdded'])['map'](_0x2cf8c8=>_0x2cf8c8['id']);let _0xa8b41c=0x0;const _0x215f3b=this['_makeTape'](_0x265c5b['model'][_0x2387ee]['deletions']);_0x215f3b['forEach'](_0x56fdcf=>{_0x56fdcf['isRemoved']?_0x56fdcf['id']=_0x4068ed++:_0x56fdcf['id']=_0x5a8472[_0xa8b41c++];}),this['_processTape'](_0x215f3b),this['_setDistance'](_0x28c27b,'isAdded'),this['_setDistance'](_0x215f3b,'isRemoved'),_0x265c5b==_0x1f9a16&&this['_markMarkers'](_0x28c27b,_0x4e0d33),_0x28c27b=this['_joinTapes'](_0x28c27b,_0x215f3b),this['_refreshStartEndIndex'](_0x28c27b),this['_setDistance'](_0x28c27b,'isRemoved');}_0x28c27b=_0x28c27b['filter'](_0x47e648=>!(_0x47e648['isAdded']&&_0x47e648['isRemoved']));const _0x49fba3=new Map(_0x3a77c4['model'][_0x2387ee]['deletions']['markers']),_0x231d7c=new Set(_0x4e0d33['keys']());for(const _0x2f4ed6 of _0x49fba3['keys']())_0x231d7c['delete'](_0x2f4ed6);this['_markSuggestions'](_0x28c27b,_0x231d7c),this['_fixObsoleteTags'](_0x28c27b),_0x28c27b=this['_removeMissingPairs'](_0x28c27b),_0x28c27b=this['_markMismatchedRemovedTags'](_0x28c27b),_0x28c27b=this['_removeUnsupportedChanges'](_0x28c27b);const {root:_0xdf4639,changes:_0x3e5d55}=this['_makeModelFromTape'](_0x28c27b,_0x4e3d49,_0x2387ee);_0xb70370['model'][_0x2387ee]=_0xdf4639;const _0x419a29=_0x17cc38['get'](_0x2387ee);if(_0x419a29){const _0x33303d=_0x4e3d49['get'](_0x419a29['userId']),_0x495351=new r({'author':_0x33303d,'type':_0x419a29['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x2387ee});_0x3e5d55['unshift'](_0x495351),_0xb70370['attributes'][_0x2387ee]['revisionHistoryAttachChange']=_0x495351['id'];}_0xb70370['changes']=_0xb70370['changes']['concat'](_0x3e5d55);}return _0xb70370;}['_markMarkers'](_0xae932c,_0x28e130){for(let _0x31978e=0x0;_0x31978e<_0xae932c['length'];_0x31978e++)for(const [_0x507c21,_0xde9a77]of _0x28e130)_0xde9a77['start']['isEqual'](_0xae932c[_0x31978e]['previousPosition'])&&_0xae932c[_0x31978e]['markersStart']['push'](_0x507c21),_0xde9a77['end']['isEqual'](_0xae932c[_0x31978e]['nextPosition'])&&_0xae932c[_0x31978e]['markersEnd']['push'](_0x507c21);}['_joinTapes'](_0x57650b,_0x530b38){let _0x55bd6b=[],_0x377bf4=0x0,_0x2c3617=0x0;for(;_0x377bf4<_0x57650b['length']||_0x2c3617<_0x530b38['length'];){const _0x301c78=_0x57650b[_0x377bf4]||{},_0x73455d=_0x530b38[_0x2c3617]||{};if(_0x301c78['id']==_0x73455d['id'])_0x377bf4++,_0x2c3617++,_0x55bd6b['push'](_0x301c78);else{if(_0x73455d['isRemoved']&&_0x301c78['isAdded']){const {commonTape:_0x4595b8,iEnd:_0x49fee9,jEnd:_0x5e1a4d}=this['_threeWayMerge'](_0x57650b,_0x377bf4,_0x530b38,_0x2c3617);_0x55bd6b=_0x55bd6b['concat'](_0x4595b8),_0x377bf4=_0x49fee9,_0x2c3617=_0x5e1a4d;}else _0x73455d['isRemoved']?(_0x2c3617++,_0x55bd6b['push'](_0x73455d)):(_0x377bf4++,_0x55bd6b['push'](_0x301c78));}}return _0x55bd6b;}['_markSuggestions'](_0x46bf92,_0x5d576d){const _0x280928=[];for(let _0x141dee=0x0;_0x141dee<_0x46bf92['length'];_0x141dee++){for(let _0x9d0d12=0x0;_0x9d0d12<_0x46bf92[_0x141dee]['markersStart']['length'];_0x9d0d12++){const _0x52a47e=_0x46bf92[_0x141dee]['markersStart'][_0x9d0d12];if(!_0x5d576d['has'](_0x52a47e))continue;const {group:_0x5071be,type:_0x15c2ac,authorId:_0x2a6391}=_0x1c8a51(_0x52a47e);'revision-suggestion'!=_0x5071be||'insertion'!=_0x15c2ac&&'deletion'!=_0x15c2ac||(_0x280928['unshift']({'type':_0x15c2ac,'name':_0x52a47e,'userId':_0x2a6391}),_0x46bf92[_0x141dee]['markersStart']['splice'](_0x9d0d12,0x1),_0x9d0d12--);}_0x192b43(_0x46bf92[_0x141dee]);for(let _0x1bee84=0x0;_0x1bee84<_0x46bf92[_0x141dee]['markersEnd']['length'];_0x1bee84++){const _0x32d859=_0x46bf92[_0x141dee]['markersEnd'][_0x1bee84];if(!_0x5d576d['has'](_0x32d859))continue;const {group:_0x5e1446,type:_0x44427a}=_0x1c8a51(_0x32d859);if('revision-suggestion'!=_0x5e1446||'insertion'!=_0x44427a&&'deletion'!=_0x44427a)continue;_0x46bf92[_0x141dee]['markersEnd']['splice'](_0x1bee84,0x1),_0x1bee84--;const _0x2fbf9d=_0x280928['findIndex'](_0x26f11c=>_0x26f11c['name']==_0x32d859);_0x2fbf9d>-0x1&&_0x280928['splice'](_0x2fbf9d,0x1);}}function _0x1c8a51(_0x24b788){const _0x77d735=_0x24b788['split'](':');return{'group':_0x77d735[0x0],'type':_0x77d735[0x1],'subType':_0x77d735['length']>=0x5?_0x77d735[0x2]:null,'id':_0x77d735['length']<0x5?_0x77d735[0x2]:_0x77d735[0x3],'authorId':_0x77d735['length']<0x5?_0x77d735[0x3]:_0x77d735[0x4],'markerCount':0x6==_0x77d735['length']?_0x77d735[0x5]:null};}function _0x192b43(_0x4e33e5){for(let _0xdf29cf=0x0;_0xdf29cf<_0x280928['length'];_0xdf29cf++){if(_0x4e33e5['isAdded']&&'insertion'==_0x280928[_0xdf29cf]['type'])return _0x4e33e5['isAddSuggestion']=_0x280928[_0xdf29cf],void delete _0x4e33e5['isAdded'];if(!_0x4e33e5['isAdded']&&!_0x4e33e5['isRemoved']&&'deletion'==_0x280928[_0xdf29cf]['type'])return void(_0x4e33e5['isRemoveSuggestion']=_0x280928[_0xdf29cf]);}}}['_setDistance'](_0x22719d,_0x592505){let _0x514677=0x0,_0x496eec=!0x1;const _0x129f71=new Map();for(const _0x3e7191 of _0x22719d)_0x3e7191[_0x592505]?_0x496eec&&(_0x514677++,_0x496eec=!0x1):(_0x514677++,_0x496eec=!0x0),_0x129f71['set'](_0x3e7191['id'],_0x514677);for(let _0x220ad9=0x0;_0x220ad9<_0x22719d['length'];_0x220ad9++){if('isRemoved'==_0x592505&&_0x22719d[_0x220ad9]['isAdded']||'isAdded'==_0x592505&&_0x22719d[_0x220ad9]['isRemoved'])continue;if('text'==_0x22719d[_0x220ad9]['type']){_0x22719d[_0x220ad9]['distance']=0x0;continue;}const _0x57e9d6=_0x129f71['get'](_0x22719d[_0x220ad9]['pairId']),_0x2e8182=_0x129f71['get'](_0x22719d[_0x220ad9]['id']);_0x22719d[_0x220ad9]['distance']=_0x57e9d6-_0x2e8182;}}['_getRevisionsRange'](_0x30986d,_0x3b7f2e,_0x39a034=!0x1){const _0x447f68=[];let _0x3e5ebc=this['repository']['getIndex'](_0x30986d),_0x4739ba=this['repository']['getIndex'](_0x3b7f2e);for(-0x1==_0x4739ba&&(_0x4739ba=this['repository']['_revisions']['length'],_0x39a034=!0x1);_0x3e5ebc<_0x4739ba;)_0x447f68['push'](this['repository']['getRevision'](_0x3e5ebc)),_0x3e5ebc++;return _0x39a034&&_0x447f68['push'](this['repository']['getRevision'](_0x3e5ebc)),_0x447f68;}['_threeWayMerge'](_0x25da25,_0x540b15,_0x455263,_0x38cb9f){const _0x1996e3=this['editor']['model']['schema'];let _0x42c0c7=_0x540b15;for(;_0x25da25[_0x42c0c7]&&_0x25da25[_0x42c0c7]['isAdded'];)_0x42c0c7++;let _0x32e59d=_0x38cb9f;for(;_0x455263[_0x32e59d]&&_0x455263[_0x32e59d]['isRemoved'];)_0x32e59d++;_0x47418b(_0x25da25,_0x540b15,_0x42c0c7),_0x47418b(_0x455263,_0x38cb9f,_0x32e59d);const _0xa69d74=_0x455263['slice'](_0x38cb9f,_0x32e59d)['concat'](_0x25da25['slice'](_0x540b15,_0x42c0c7));return _0xa69d74['sort']((_0x2d0393,_0x376340)=>_0x2d0393['side']!=_0x376340['side']?_0x2d0393['side']-_0x376340['side']:_0x2d0393['level']!=_0x376340['level']?_0x2d0393['level']-_0x376340['level']:_0x2d0393['distance']!=_0x376340['distance']?_0x376340['distance']-_0x2d0393['distance']:!!_0x2d0393['isAdded']!=!!_0x376340['isAdded']?-0x1==_0x2d0393['side']||0x0==_0x2d0393['side']?_0x2d0393['isAdded']?-0x1:0x1:_0x2d0393['isAdded']?0x1:-0x1:_0x2d0393['index']-_0x376340['index']),{'commonTape':_0xa69d74,'iEnd':_0x42c0c7,'jEnd':_0x32e59d};function _0x47418b(_0x2f8c3a,_0x396c15,_0x1f1e23){let _0x175878=-0x1,_0x2356bc=Number['POSITIVE_INFINITY'],_0x360a88=!0x0;for(let _0x12e4ec=_0x396c15;_0x12e4ec<_0x1f1e23;_0x12e4ec++)if(_0x1996e3['isInline'](_0x2f8c3a[_0x12e4ec]['item'])||(_0x360a88=!0x1),_0x2f8c3a[_0x12e4ec]['item']['startIndex']<_0x396c15&&(_0x175878=_0x12e4ec),_0x2f8c3a[_0x12e4ec]['item']['endIndex']>=_0x1f1e23){_0x2356bc=_0x12e4ec;break;}_0x360a88&&(_0x175878=_0x1f1e23-0x1);for(let _0x6be3d1=_0x396c15;_0x6be3d1<_0x1f1e23;_0x6be3d1++)_0x2f8c3a[_0x6be3d1]['side']=_0x6be3d1<=_0x175878?-0x1:_0x6be3d1<_0x2356bc?0x0:0x1,_0x2f8c3a[_0x6be3d1]['index']=_0x6be3d1;let _0x3b7de6=0x0;for(let _0x39d2d7=_0x396c15;_0x39d2d7<=_0x175878;_0x39d2d7++)0x0==_0x2f8c3a[_0x39d2d7]['distance']?_0x2f8c3a[_0x39d2d7]['level']=_0x3b7de6:(_0x3b7de6++,_0x2f8c3a[_0x39d2d7]['level']=_0x3b7de6,_0x3b7de6++);for(let _0x4d1677=_0x396c15;_0x4d1677<_0x1f1e23;_0x4d1677++)0x0==_0x2f8c3a[_0x4d1677]['side']&&(_0x2f8c3a[_0x4d1677]['level']=_0x3b7de6);_0x3b7de6=0x0;for(let _0x210153=_0x1f1e23-0x1;_0x210153>=_0x2356bc;_0x210153--)0x0==_0x2f8c3a[_0x210153]['distance']?_0x2f8c3a[_0x210153]['level']=_0x3b7de6:(_0x3b7de6--,_0x2f8c3a[_0x210153]['level']=_0x3b7de6,_0x3b7de6--);}}['_fixObsoleteTags'](_0x351744){const _0x46d9a0=new Map(),_0x58b3ea=this['editor']['model']['schema'];for(let _0x2ac67f=0x1;_0x2ac67f<_0x351744['length'];_0x2ac67f++){let _0x2a8008,_0x52c502,_0xf68dc2;const _0x5d0af1=_0x351744[_0x2ac67f],_0x560539=_0x351744[_0x2ac67f-0x1];if('text'==_0x5d0af1['type'])continue;if(_0x5d0af1['type']!=_0x560539['type'])continue;if(!_0x58b3ea['isBlock'](_0x560539['item'])||_0x58b3ea['isLimit'](_0x560539['item']))continue;if(!_0x58b3ea['isBlock'](_0x5d0af1['item'])||_0x58b3ea['isLimit'](_0x5d0af1['item']))continue;if((_0x351744[_0x2ac67f]['isAdded']||_0x351744[_0x2ac67f]['isAddSuggestion'])&&_0x351744[_0x2ac67f-0x1]['isRemoved'])_0x2a8008=_0x351744[_0x2ac67f],_0x52c502=_0x351744[_0x2ac67f-0x1],_0xf68dc2=_0x2ac67f-0x1;else{if(!_0x351744[_0x2ac67f]['isRemoved']||!_0x351744[_0x2ac67f-0x1]['isAdded']&&!_0x351744[_0x2ac67f-0x1]['isAddSuggestion'])continue;_0x2a8008=_0x351744[_0x2ac67f-0x1],_0x52c502=_0x351744[_0x2ac67f],_0xf68dc2=_0x2ac67f;}const _0x5661b3=_0x2a8008['level']==_0x52c502['level'],_0x4aaeee=Math['abs'](_0x2a8008['level'])<Math['abs'](_0x52c502['level'])&&0x0==_0x52c502['distance'];(_0x5661b3||_0x4aaeee)&&(_0x46d9a0['set'](_0x52c502['id'],_0x2a8008['id']),_0x351744['splice'](_0xf68dc2,0x1),_0x2ac67f--,_0x2a8008['isAdded']=!0x1);}for(let _0x3830f2=0x0;_0x3830f2<_0x351744['length'];_0x3830f2++)_0x46d9a0['has'](_0x351744[_0x3830f2]['pairId'])&&(_0x351744[_0x3830f2]['pairId']=_0x46d9a0['get'](_0x351744[_0x3830f2]['pairId']));}['_removeMissingPairs'](_0x57e607){const _0x2ebf35=new Set(_0x57e607['map'](_0x385e0d=>_0x385e0d['id']));for(let _0x5e6d54=0x0;_0x5e6d54<_0x57e607['length'];_0x5e6d54++)_0x2ebf35['has'](_0x57e607[_0x5e6d54]['pairId'])||0x0==_0x57e607[_0x5e6d54]['distance']||(_0x57e607[_0x5e6d54]['isIncorrect']=!0x0);return _0x57e607['filter'](_0x2cb8e9=>!_0x2cb8e9['isIncorrect']);}['_markMismatchedRemovedTags'](_0x41de8e){const _0x41e74f=new Set();for(let _0x4b7070=0x0;_0x4b7070<_0x41de8e['length'];_0x4b7070++){if(_0x41e74f['has'](_0x41de8e[_0x4b7070]['id'])&&_0x41de8e[_0x4b7070]['isRemoved']&&(_0x41de8e[_0x4b7070]['isIncorrect']=!0x0),_0x41de8e[_0x4b7070]['isIncorrect'])continue;if(0x0==_0x41de8e[_0x4b7070]['distance'])continue;if('elementStart'!=_0x41de8e[_0x4b7070]['type'])continue;if(null==_0x41de8e[_0x4b7070]['pairId'])continue;let _0x2ae773=_0x4b7070+0x1,_0x48d52a=0x0;for(;_0x41de8e[_0x2ae773]['id']!=_0x41de8e[_0x4b7070]['pairId'];)'elementStart'==_0x41de8e[_0x2ae773]['type']?_0x48d52a++:'elementEnd'==_0x41de8e[_0x2ae773]['type']&&_0x48d52a--,_0x2ae773++;if(0x0!=_0x48d52a){if(_0x41de8e[_0x4b7070]['isRemoved'])_0x41de8e[_0x4b7070]['isIncorrect']=!0x0;else{for(;_0x2ae773!=_0x4b7070;)_0x41de8e[_0x2ae773]['isRemoved']&&0x0!=_0x41de8e[_0x2ae773]['distance']&&(_0x41de8e[_0x2ae773]['isIncorrect']=!0x0,_0x41e74f['add'](_0x41de8e[_0x2ae773]['pairId'])),_0x2ae773--;}}}return _0x41de8e['filter'](_0x23ae10=>!_0x23ae10['isIncorrect']);}['_removeUnsupportedChanges'](_0x2b939e){const _0x3197d3=this['editor']['model']['schema'];for(let _0x3fe0d0=0x0;_0x3fe0d0<_0x2b939e['length'];_0x3fe0d0++){if(!(_0x2b939e[_0x3fe0d0]['isAdded']||_0x2b939e[_0x3fe0d0]['isAddSuggestion']||_0x2b939e[_0x3fe0d0]['isRemoved']||_0x2b939e[_0x3fe0d0]['isRemoveSuggestion']))continue;if(0x0==_0x2b939e[_0x3fe0d0]['distance'])continue;const _0x568d62=_0x2b939e[_0x3fe0d0]['item'];_0x3197d3['isBlock'](_0x568d62)||_0x3197d3['isLimit'](_0x568d62)||(_0x2b939e[_0x3fe0d0]['isAdded']&&delete _0x2b939e[_0x3fe0d0]['isAdded'],_0x2b939e[_0x3fe0d0]['isAddSuggestion']&&delete _0x2b939e[_0x3fe0d0]['isAddSuggestion'],_0x2b939e[_0x3fe0d0]['isRemoveSuggestion']&&delete _0x2b939e[_0x3fe0d0]['isRemoveSuggestion'],_0x2b939e[_0x3fe0d0]['isRemoved']&&(_0x2b939e[_0x3fe0d0]['isIncorrect']=!0x0));}return _0x2b939e['filter'](_0x76e0b8=>!_0x76e0b8['isIncorrect']);}['_makeModelFromTape'](_0x437b67,_0x180515,_0x5bb66e){const _0x443618=new mt(),_0x3fac54=[],_0x190f15=new Map(),_0x1cdf50=this['editor']['model'],_0x64892e=_0x1cdf50['schema'],_0x4b1045=[_0x443618],_0x18075e={},_0x4215f7={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x9b4936=null;const _0x45c0bc=[0x0];for(let _0x5a4958=0x0;_0x5a4958<_0x437b67['length'];_0x5a4958++)if('elementStart'===_0x437b67[_0x5a4958]['type']){_0x437b67[_0x5a4958]['previousPosition']=_0x1cdf50['createPositionFromPath'](_0x443618,_0x45c0bc);const _0x4ea2c0=new ft(_0x437b67[_0x5a4958]['item']['name'],_0x437b67[_0x5a4958]['item']['getAttributes']());_0x4b1045[0x0]['_appendChild'](_0x4ea2c0),_0x45c0bc['push'](0x0),_0x4b1045['unshift'](_0x4ea2c0),_0x437b67[_0x5a4958]['nextPosition']=_0x1cdf50['createPositionFromPath'](_0x443618,_0x45c0bc);}else'elementEnd'===_0x437b67[_0x5a4958]['type']?(_0x4b1045['shift'](),_0x437b67[_0x5a4958]['previousPosition']=_0x1cdf50['createPositionFromPath'](_0x443618,_0x45c0bc),_0x45c0bc['pop'](),_0x45c0bc[_0x45c0bc['length']-0x1]++,_0x437b67[_0x5a4958]['nextPosition']=_0x1cdf50['createPositionFromPath'](_0x443618,_0x45c0bc)):(_0x437b67[_0x5a4958]['previousPosition']=_0x1cdf50['createPositionFromPath'](_0x443618,_0x45c0bc),_0x9b4936?_0x9b4936['_data']+=_0x437b67[_0x5a4958]['item']['data']:_0x9b4936=new wt(_0x437b67[_0x5a4958]['item']['data'],_0x437b67[_0x5a4958]['item']['getAttributes']()),_0x437b67[_0x5a4958+0x1]&&'text'===_0x437b67[_0x5a4958+0x1]['type']&&_0x38eb98(_0x9b4936,_0x437b67[_0x5a4958+0x1]['item'])||(_0x4b1045[0x0]['_appendChild'](_0x9b4936),_0x9b4936=null),_0x45c0bc[_0x45c0bc['length']-0x1]+=_0x437b67[_0x5a4958]['item']['offsetSize'],_0x437b67[_0x5a4958]['nextPosition']=_0x1cdf50['createPositionFromPath'](_0x443618,_0x45c0bc));for(let _0x11f1f6=0x0;_0x11f1f6<_0x437b67['length'];_0x11f1f6++){const _0x4bf099=_0x437b67[_0x11f1f6]['previousPosition'],_0x46a500=_0x437b67[_0x11f1f6]['nextPosition'];for(const _0x4ac8e7 of _0x437b67[_0x11f1f6]['markersStart'])_0x190f15['set'](_0x4ac8e7,{'start':_0x4bf099,'end':null});_0x557137('isRemoveSuggestion',_0x11f1f6,_0x4bf099,_0x46a500),_0x557137('isAddSuggestion',_0x11f1f6,_0x4bf099,_0x46a500),_0x557137('isRemoved',_0x11f1f6,_0x4bf099,_0x46a500),_0x557137('isAdded',_0x11f1f6,_0x4bf099,_0x46a500);for(const _0x39a312 of _0x437b67[_0x11f1f6]['markersEnd']){_0x190f15['get'](_0x39a312)['end']=_0x46a500;}}for(const [_0x4c36d3,_0x124545]of _0x190f15){const _0x420401=this['editor']['model']['createRange'](_0x124545['start'],_0x124545['end']);_0x443618['markers']['set'](_0x4c36d3,_0x420401);}return _0x3fac54['sort']((_0x3efd83,_0x382341)=>{const _0x39cbc7=_0x443618['markers']['get']('revision:'+_0x3efd83['id']),_0x22c6f8=_0x443618['markers']['get']('revision:'+_0x382341['id']);return _0x39cbc7['start']['isBefore'](_0x22c6f8['start'])?-0x1:_0x39cbc7['start']['isAfter'](_0x22c6f8['start'])?0x1:_0x39cbc7['end']['isBefore'](_0x22c6f8['end'])?-0x1:_0x39cbc7['end']['isAfter'](_0x22c6f8['end'])?0x1:'add'===_0x3efd83['type']?-0x1:0x1;}),{'root':_0x443618,'changes':_0x3fac54};function _0x557137(_0xead85a,_0x2f622c,_0x21d7be,_0x45218e){const _0x42f9ca=!!_0x437b67[_0x2f622c][_0xead85a],_0x47ea3a=_0x42f9ca?_0x437b67[_0x2f622c][_0xead85a]['userId']:null,_0x58c437=_0x2f622c===_0x437b67['length']-0x1,_0x197880=_0x4215f7[_0xead85a][0x0],_0x8332de=_0x64892e['isObject'](_0x437b67[_0x2f622c]['item']);!_0x18075e[_0xead85a]&&_0x42f9ca?_0x18075e[_0xead85a]={'start':_0x21d7be,'tapeItem':_0x437b67[_0x2f622c],'userId':_0x47ea3a,'type':_0xead85a}:_0x18075e[_0xead85a]&&!_0x42f9ca?(_0x18075e[_0xead85a]['end']=_0x21d7be,_0x51b71b(_0x18075e[_0xead85a]),_0x18075e[_0xead85a]=null):_0x18075e[_0xead85a]&&_0x42f9ca&&_0x18075e[_0xead85a]['userId']!==_0x47ea3a&&(_0x18075e[_0xead85a]['end']=_0x21d7be,_0x197880&&_0x197880['userId']===_0x18075e[_0xead85a]['userId']||_0x51b71b(_0x18075e[_0xead85a]),_0x18075e[_0xead85a]={'start':_0x21d7be,'tapeItem':_0x437b67[_0x2f622c],'userId':_0x47ea3a,'type':_0xead85a}),_0x18075e[_0xead85a]&&_0x8332de&&('elementStart'!==_0x437b67[_0x2f622c]['type']||_0x197880&&_0x197880['userId']===_0x47ea3a||_0x4215f7[_0xead85a]['unshift']({'userId':_0x47ea3a,'object':_0x437b67[_0x2f622c]['item'],'change':_0x18075e[_0xead85a]}),'elementEnd'===_0x437b67[_0x2f622c]['type']&&_0x197880&&_0x197880['object']===_0x437b67[_0x2f622c]['item']&&(_0x4215f7[_0xead85a]['shift'](),_0x18075e[_0xead85a]=_0x197880['change'])),_0x18075e[_0xead85a]&&_0x58c437&&(_0x18075e[_0xead85a]['end']=_0x45218e,_0x51b71b(_0x18075e[_0xead85a]),_0x18075e[_0xead85a]=null);}function _0x51b71b({start:_0xbf8fb3,end:_0x809531,tapeItem:_0x28e585,userId:_0x2ff8c8,type:_0x3b9cc9}){const _0x101bca=_0x28e585['item'],_0x4543c7=_0x1cdf50['schema']['isBlock'](_0x101bca)&&!_0x1cdf50['schema']['isLimit'](_0x101bca),_0x27317e=_0xbf8fb3['nodeAfter']==_0x809531['parent']&&_0x809531['isAtStart'];if(_0x4543c7&&_0x27317e)return;const _0x2ef8f0=_0x1cdf50['createRange'](_0xbf8fb3,_0x809531),_0x507a7f=_0x180515['get'](_0x2ff8c8),_0xc2492a=new r({'author':_0x507a7f,'type':'isAdded'==_0x3b9cc9||'isAddSuggestion'==_0x3b9cc9?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x3b9cc9||'isRemoveSuggestion'==_0x3b9cc9},'createdAt':new Date(),'rootName':_0x5bb66e});_0x3fac54['push'](_0xc2492a),_0x443618['markers']['set']('revision:'+_0xc2492a['id'],_0x2ef8f0);}function _0x38eb98(_0x465aa0,_0x11523f){const _0x632562=_0x465aa0['getAttributes'](),_0x5834e5=_0x11523f['getAttributes']();for(const _0x551a9a of _0x632562){if(_0x551a9a[0x1]!==_0x11523f['getAttribute'](_0x551a9a[0x0]))return!0x1;_0x5834e5['next']();}return _0x5834e5['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x46a307=>{const _0xeaab6=_0x46a307['markerName']['split'](':')[0x1],_0x5df1d4=this['_getChangeFromId'](_0xeaab6);if(!_0x5df1d4)return null;const _0x2e28e9='add'==_0x5df1d4['type']?'insertion':'deletion',_0x466014=['ck-suggestion-marker','ck-suggestion-marker-'+_0x2e28e9];return _0x5df1d4['data']['isSuggestion']&&_0x466014['push']('ck-suggestion-marker-'+_0x2e28e9+'-new'),this['activeChange']==_0x5df1d4&&_0x466014['push']('ck-suggestion-marker--active'),{'classes':_0x466014,'attributes':{'data-change-id':_0xeaab6}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x43f71e=>{_0x43f71e['on']('element:pre',(_0x14dde6,_0x422bfb,_0x13dcaf)=>{const _0x278d28=_0x422bfb['viewItem']['getChild'](0x0);if(!_0x278d28||!_0x278d28['is']('element','code'))return;if(!_0x13dcaf['consumable']['consume'](_0x278d28,{'attributes':['vid_start','vid_end']}))return;const _0x16f0d7=_0x422bfb['modelRange']['start']['nodeAfter'];_0x13dcaf['writer']['setAttribute']('vid_start',_0x278d28['getAttribute']('vid_start'),_0x16f0d7),_0x13dcaf['writer']['setAttribute']('vid_end',_0x278d28['getAttribute']('vid_end'),_0x16f0d7);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x8c59d4=>{_0x8c59d4['on']('element',(_0x5dc37e,_0xe4071,_0x24c731)=>{if(!_0x24c731['consumable']['consume'](_0xe4071['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0xe4071['modelRange']['isCollapsed'])return;const _0x2bc1ea=_0xe4071['modelRange']['start']['nodeAfter'];_0x2bc1ea['hasAttribute']('vid_start')||_0x2bc1ea['hasAttribute']('vid')||(_0x24c731['writer']['setAttribute']('vid_start',_0xe4071['viewItem']['getAttribute']('vid_start'),_0x2bc1ea),_0x24c731['writer']['setAttribute']('vid_end',_0xe4071['viewItem']['getAttribute']('vid_end'),_0x2bc1ea));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x53f522=>_0x53f522['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x40462d,[,_0x35086f])=>{['vid_start','vid_end','vid']['includes'](_0x35086f)&&(_0x40462d['return']=!0x0,_0x40462d['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x38ffae=>{_0x38ffae['on']('attribute:vid',(_0x561d34,_0x1b09af,_0x362e99)=>{if('\x20'!=_0x1b09af['item']['data']||_0x1b09af['item']['parent']['maxOffset']>0x1)return;if(!_0x362e99['consumable']['consume'](_0x1b09af['item'],_0x561d34['name']))return;const _0x50a92b=_0x362e99['writer'],_0x29216f=_0x362e99['mapper']['toViewRange'](_0x1b09af['range']);_0x50a92b['wrap'](_0x29216f,_0x50a92b['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x1b47f6){const _0x50abe0=_0x1b47f6['plugins']['get']('RevisionViewer');return(_0x44f834,_0x43a21d,_0x694d9c)=>{const _0x5b9e9e=_0x43a21d['markerName']['split'](':')[0x1],_0x19bf4e=_0x50abe0['_getChangeFromId'](_0x5b9e9e);if(!_0x19bf4e)return null;const _0x19f614='add'==_0x19bf4e['type']?'split':'merge';if(!_0x694d9c['consumable']['test'](_0x43a21d['markerRange'],_0x44f834['name']))return;const _0x485538=_0x43a21d['markerRange']['getWalker'](),_0x3ee9e2=_0x43a21d['markerRange']['start'],_0x5cf19e=_0x1b47f6['model']['schema'];let _0x487b37=null,_0x155513=null,_0x313351=!0x1,_0x40c394=!0x1;for(const _0x2a74e2 of _0x485538){const _0x585545=_0x2a74e2['item'];_0x313351=_0x313351||_0x5cf19e['isContent'](_0x585545);const _0x247835=_0x694d9c['mapper']['toViewElement'](_0x585545);if(_0x247835&&_0x247835['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2a74e2['type']&&(_0x5cf19e['isBlock'](_0x585545)&&!_0x5cf19e['isLimit'](_0x585545)&&(_0x585545['nextSibling']||_0x3ee9e2['isAtEnd']?_0x487b37&&_0x487b37['parent']==_0x585545||(_0x487b37=_0x585545,_0x2218fc(_0x2a74e2['previousPosition']),_0x40c394=!0x0):_0x155513=_0x155513||_0x2a74e2['previousPosition']));}function _0x2218fc(_0x259f71){const _0x1da993=_0x694d9c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x19f614}),_0x163e43=_0x694d9c['mapper']['toViewPosition'](_0x259f71);_0x19bf4e['data']['isSuggestion']&&_0x694d9c['writer']['addClass']('ck-suggestion-marker-'+_0x19f614+'-new',_0x1da993),_0x50abe0['activeChange']==_0x19bf4e&&_0x694d9c['writer']['addClass']('ck-suggestion-marker--active',_0x1da993),_0x694d9c['writer']['insert'](_0x163e43,_0x1da993),_0x694d9c['mapper']['bindElementToMarker'](_0x1da993,_0x43a21d['markerName']);}_0x313351||_0x40c394||!_0x155513||_0x2218fc(_0x155513);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0xf4f1e4,_0x18f7d0,_0xa295b4)=>{const _0xdc16a1=_0xa295b4['mapper']['markerNameToElements'](_0x18f7d0['markerName']);if(_0xdc16a1){for(const _0x9953c5 of _0xdc16a1)(_0x9953c5['hasClass']('ck-suggestion-marker-split')||_0x9953c5['hasClass']('ck-suggestion-marker-merge'))&&(_0xa295b4['mapper']['unbindElementFromMarkerName'](_0x9953c5,_0x18f7d0['markerName']),_0xa295b4['writer']['remove'](_0x9953c5));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x26a88b,_0x2d82bd,_0x5267f4)=>{const _0x15b3cb=_0x2d82bd['markerName']['split'](':')[0x1],_0x54b9ae=this['_getChangeFromId'](_0x15b3cb);if(!_0x54b9ae)return null;const _0x3ae7f3='add'==_0x54b9ae['type']?'split':'merge';if(_0x5267f4['consumable']['test'](_0x2d82bd['markerRange'],_0x26a88b['name']))for(const _0x146bc0 of _0x2d82bd['markerRange']['getItems']()){if(!_0x146bc0['is']('element','softBreak'))continue;const _0x3e9a52=_0x5267f4['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3ae7f3}),_0x5d8920=_0x5267f4['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x146bc0));_0x54b9ae['data']['isSuggestion']&&_0x5267f4['writer']['addClass']('ck-suggestion-marker-'+_0x3ae7f3+'-new',_0x3e9a52),this['activeChange']==_0x54b9ae&&_0x5267f4['writer']['addClass']('ck-suggestion-marker--active',_0x3e9a52),_0x5267f4['writer']['insert'](_0x5d8920,_0x3e9a52),_0x5267f4['mapper']['bindElementToMarker'](_0x3e9a52,_0x2d82bd['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x1ec886=>{for(const _0x44c122 of this['editor']['model']['document']['getRootNames']()){const _0x247335=this['editor']['model']['document']['getRoot'](_0x44c122),_0x56fe2c=this['editor']['editing']['view']['document']['getRoot'](_0x44c122);if(_0x56fe2c){const _0x5ef7e0=_0x247335['getAttribute']('revisionHistoryAttachChange');if(_0x1ec886['removeAttribute']('data-change-id',_0x56fe2c),_0x1ec886['removeClass']('ck-revision-history-root-add',_0x56fe2c),_0x1ec886['removeClass']('ck-revision-history-root-remove',_0x56fe2c),_0x1ec886['removeClass']('ck-revision-history-root--active',_0x56fe2c),_0x5ef7e0){const _0x5fb87a=this['_getChangeFromId'](_0x5ef7e0);if(!_0x5fb87a)return null;_0x1ec886['setAttribute']('data-change-id',_0x5ef7e0,_0x56fe2c),_0x1ec886['addClass']('ck-revision-history-root-'+_0x5fb87a['type'],_0x56fe2c),this['activeChange']==_0x5fb87a&&_0x1ec886['addClass']('ck-revision-history-root--active',_0x56fe2c);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x29ecf6=>'revision-comment:'+_0x29ecf6,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x279c04=>'revision-suggestion:'+_0x279c04,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x540a45=>({'name':'suggestion:'+_0x540a45,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x2b134b=>{const _0x35d100=_0x2b134b['markerName']['split'](':')[0x1];return'insertion'!=_0x35d100&&'deletion'!=_0x35d100?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x35d100]};}}),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',(_0x3ca1b1,_0x40a7b6,_0x423980)=>{const _0x24bd9e=_0x423980['mapper']['markerNameToElements'](_0x40a7b6['markerName']);if(_0x24bd9e){for(const _0x948d64 of _0x24bd9e)_0x948d64['is']('uiElement')&&(_0x423980['mapper']['unbindElementFromMarkerName'](_0x948d64,_0x40a7b6['markerName']),_0x423980['writer']['remove'](_0x948d64));}},{'priority':'high'});}['_getChangeFromId'](_0x76afbd){return this['_changeIdToChange']['get'](_0x76afbd);}['_getViewForChange'](_0x3f2dff){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x3f2dff),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x53849e,_0x12ab07,_0x4c3848,_0xf73d66)=>{_0xf73d66&&this['_balloon']['remove'](_0xf73d66),_0x4c3848&&(this['_balloon']['add']({'view':_0x4c3848,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x3313be=this['editor']['editing'],_0x4f8ee9=this['_getChangeFromId'](_0x4c3848['changeId']);let _0x23912d;if(_0x4f8ee9['data']['isOnRoot']){const _0xe0cbd1=_0x3313be['view']['getDomRoot'](_0x4f8ee9['rootName']);_0x23912d=Array['from'](_0xe0cbd1['getClientRects']());}else{const _0x11df80=this['editor']['model']['markers']['get']('revision:'+_0x4c3848['changeId']);_0x23912d=Array['from'](_0x3313be['mapper']['markerNameToElements'](_0x11df80['name']))['map'](_0x5d0fd2=>_0x3313be['view']['domConverter']['mapViewToDom'](_0x5d0fd2))['map'](_0x4efc94=>Array['from'](_0x4efc94['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x23912d[0x0];return _0x23912d['find'](_0x3fb248=>_0x3fb248['top']-0x3<=this['_activeViewTarget']['y']&&_0x3fb248['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x3fb248['left']-0x3<=this['_activeViewTarget']['x']&&_0x3fb248['right']+0x3>=this['_activeViewTarget']['x'])||_0x23912d[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x4643ce,_0x140d52,_0x2d9093,_0x42bdb6)=>{this['activeView']=_0x2d9093?this['_getViewForChange'](_0x2d9093):null,this['editor']['model']['change'](()=>{const _0x2c91=this['editor']['editing'];_0x42bdb6&&(_0x42bdb6['data']['isOnRoot']?_0x2c91['view']['change'](_0x351c11=>{_0x351c11['removeClass']('ck-revision-history-root--active',_0x2c91['view']['document']['getRoot'](_0x42bdb6['rootName']));}):_0x2c91['reconvertMarker']('revision:'+_0x42bdb6['id'])),_0x2d9093&&(_0x2d9093['data']['isOnRoot']?_0x2c91['view']['change'](_0x29a967=>{_0x29a967['addClass']('ck-revision-history-root--active',_0x2c91['view']['document']['getRoot'](_0x2d9093['rootName']));}):_0x2c91['reconvertMarker']('revision:'+_0x2d9093['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x453596,_0x591243)=>{if(this['activeChange'])return;const _0x9e1e3b=this['_findChangeIdFromDomTarget'](_0x591243['target']),_0x5c6ca4=this['_changeIdToChange']['get'](_0x9e1e3b);_0x5c6ca4?(this['_activeViewTarget']={'x':_0x591243['domEvent']['x'],'y':_0x591243['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x5c6ca4)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x458bd3,_0x3ae222)=>{const _0x308b6b=this['_findChangeIdFromDomTarget'](_0x3ae222['target']),_0xada4cd=this['_changeIdToChange']['get'](_0x308b6b);_0xada4cd?(this['_activeViewTarget']={'x':_0x3ae222['domEvent']['x'],'y':_0x3ae222['domEvent']['y']},_0xada4cd===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0xada4cd):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x1b8aac){do{const _0x11621f=_0x1b8aac['getAttribute']('data-change-id');if(_0x11621f)return _0x11621f;_0x1b8aac=_0x1b8aac['parent'];}while(_0x1b8aac);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x41dfa3=>{for(const _0x54c7a0 of this['editor']['model']['markers'])_0x41dfa3['removeMarker'](_0x54c7a0);});}}function Z(_0x44697c,_0x5aa04e){return(_0x2c8248,_0x2a13df,_0x52ab8a)=>{if(!_0x52ab8a['consumable']['test'](_0x2a13df['markerRange'],_0x2c8248['name']))return;const _0x21a1a5=_0x2a13df['markerRange']['getWalker'](),_0x4af271=_0x2a13df['markerRange']['start'],_0x1935ce=_0x44697c['model']['schema'];let _0x43f579=null,_0x1e7d75=null,_0x472297=!0x1,_0x4e8545=!0x1;for(const _0x252b7e of _0x21a1a5){const _0x4cb4ce=_0x252b7e['item'];_0x472297=_0x472297||_0x1935ce['isContent'](_0x4cb4ce);const _0x170fd3=_0x52ab8a['mapper']['toViewElement'](_0x4cb4ce);if(_0x170fd3&&_0x170fd3['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x252b7e['type']&&(_0x1935ce['isBlock'](_0x4cb4ce)&&!_0x1935ce['isLimit'](_0x4cb4ce)&&(_0x4cb4ce['nextSibling']||_0x4af271['isAtEnd']?_0x43f579&&_0x43f579['parent']==_0x4cb4ce||(_0x43f579=_0x4cb4ce,_0x2e3474(_0x252b7e['previousPosition']),_0x4e8545=!0x0):_0x1e7d75=_0x1e7d75||_0x252b7e['previousPosition']));}function _0x2e3474(_0x191f0f){const _0xdc608=_0x52ab8a['mapper']['toViewPosition'](_0x191f0f),_0x6d7880=_0x52ab8a['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x5aa04e});_0x52ab8a['writer']['insert'](_0xdc608,_0x6d7880),_0x52ab8a['mapper']['bindElementToMarker'](_0x6d7880,_0x2a13df['markerName']);}_0x472297||_0x4e8545||!_0x1e7d75||_0x2e3474(_0x1e7d75);};}class _t extends _0x180034{constructor(_0xeeba25){super(_0xeeba25);const _0x269191=_0xeeba25['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x269191,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x269191,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x46e1b7=this['editor'],_0x593f72=_0x46e1b7['plugins']['get'](d),_0x51c90e=_0x593f72['isReady']?_0x593f72['diff']['newRevisionId']:null;_0x46e1b7['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x51c90e);}['refresh'](){const {isReady:_0x5248df,isEnabled:_0x338925,repository:_0x22e66c,diff:_0x11a998}=this['editor']['plugins']['get'](d),_0x3a802d=_0x11a998&&_0x22e66c['getLaterVisibleRevision'](_0x11a998['newRevisionId']);this['isEnabled']=_0x5248df&&_0x338925&&Boolean(_0x3a802d);}}class yt extends _0x180034{['_step'];constructor(_0x48bba4,{direction:_0x20657f}){super(_0x48bba4);const _0x328eb1=_0x48bba4['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x20657f?0x1:-0x1,this['listenTo'](_0x328eb1,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x328eb1,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x328eb1,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x1344ef=this['editor'],_0x100bd7=_0x1344ef['plugins']['get'](d),{isNavigationMode:_0xe096d9,currentChangeNumber:_0x304608}=_0x100bd7;let _0x5bdf95;if(_0x100bd7['activeChange']=_0xe096d9?_0x100bd7['diff']['changes']['get'](_0x304608+this['_step']):_0x100bd7['diff']['changes']['first'],_0x100bd7['activeChange']['data']['isOnRoot'])_0x5bdf95=_0x1344ef['editing']['view']['getDomRoot'](_0x100bd7['activeChange']['rootName']);else{const _0x24a8e6=_0x1344ef['model']['markers']['get']('revision:'+_0x100bd7['activeChange']['id']);_0x5bdf95=_0x3219e2(_0x1344ef['editing'],_0x24a8e6);}_0x4bb92e({'target':_0x5bdf95,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x522834,currentChangeNumber:_0x6139ec,numberOfChanges:_0x2ec656,isReady:_0x32d9c1,isEnabled:_0x880e46}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x880e46&&_0x32d9c1&&_0x2ec656)&&(!_0x522834||(0x1===this['_step']?_0x6139ec<_0x2ec656-0x1:_0x6139ec>0x0));}}class _i extends _0x2110a1{constructor(_0xaac510){super(_0xaac510);const _0x547f9e=this['bindTemplate'],_0x5106db=new _0x397beb(_0xaac510),_0x40d424=new _0x397beb(_0xaac510);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',(_0xa3a265,_0x3a1d19)=>_0xa3a265&&_0x3a1d19>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x46a534,_0x2e4ef4,_0x1c2b8a,_0x4071d6)=>{if(!_0x46a534)return m(_0xaac510,'Loading...');if(!_0x1c2b8a)return m(_0xaac510,'No\x20changes');const _0x36a5ba=m(_0xaac510,'NUMBER_OF_CHANGES',_0x1c2b8a);return _0x4071d6?m(_0xaac510,'X_OF_Y_CHANGES',[_0x2e4ef4+0x1,_0x1c2b8a]):_0x36a5ba;}),_0x5106db['set']({'label':m(_0xaac510,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x2014.494a.75.75\x200\x200\x200\x201.197-.899l-.067-.089-6.992-8a.75.75\x200\x200\x200-1.05-.078l-.079.078-7.008\x208a.75.75\x200\x200\x200\x201.049\x201.066l.08-.078\x206.442-7.354\x206.428\x207.354z\x22/></svg>\x0a'}),_0x40d424['set']({'label':m(_0xaac510,'Show\x20next\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x205.506a.75.75\x200\x200\x201\x201.197.899l-.067.089-6.992\x208a.75.75\x200\x200\x201-1.05.078l-.079-.078-7.008-8a.75.75\x200\x200\x201\x201.049-1.066l.08.078\x206.442\x207.354\x206.428-7.354z\x22/></svg>\x0a'}),_0x5106db['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x40d424['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x5106db['on']('execute',()=>this['fire']('execute','backward')),_0x40d424['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',_0x547f9e['if']('_isStatusLabelVisible','ck-hidden',_0x440d38=>!_0x440d38)]},'children':[{'text':_0x547f9e['to']('isNavigationMode',_0x16acd2=>_0x16acd2?m(_0xaac510,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0xaac510,'Total')+':\x20')}]},{'text':_0x547f9e['to']('_statusText')}]},new _0x42d84f(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x5106db,_0x40d424]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x53f3b9{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x1f5628=this['editor']['editing']['view'];_0x1f5628['change'](_0x22f3e3=>{for(const _0x45baec of _0x1f5628['document']['roots'])_0x22f3e3['addClass'](ce,_0x45baec);});}['hide'](){const _0x3c87bc=this['editor']['editing']['view'];_0x3c87bc['change'](_0x4f2423=>{for(const _0x557cd7 of _0x3c87bc['document']['roots'])_0x4f2423['removeClass'](ce,_0x557cd7);});}}class g extends _0x53f3b9{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,le];}['init'](){const _0x406384=this['editor'],_0x3e207b=_0x406384['plugins']['get'](d),_0x3196c9=_0x406384['plugins']['get'](le);_0x406384['ui']['componentFactory']['add']('exitToEditing',_0x1d3060=>{const _0x341b16=new _0x397beb(_0x1d3060);return _0x341b16['set']({'label':m(_0x1d3060,'Back\x20to\x20editing'),'icon':_0x48df4e['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x341b16,'execute',()=>{_0x406384['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x341b16;}),_0x406384['ui']['componentFactory']['add']('restoreRevision',_0x4eb385=>{const _0x598bee=new _0x397beb(_0x4eb385);return _0x598bee['set']({'label':m(_0x4eb385,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x598bee['bind']('isEnabled')['to'](_0x406384['commands']['get']('restoreRevision')),this['listenTo'](_0x598bee,'execute',()=>_0x406384['execute']('restoreRevision')),_0x598bee;}),_0x406384['ui']['componentFactory']['add']('changesNavigation',_0x48d3e2=>{const _0x43ddd0=new _i(_0x48d3e2),_0xad9d1f=_0x406384['commands']['get']('showPreviousChange'),_0x1f211f=_0x406384['commands']['get']('showNextChange');return _0x43ddd0['bind']('isBackwardNavigationEnabled')['to'](_0xad9d1f,'isEnabled'),_0x43ddd0['bind']('isForwardNavigationEnabled')['to'](_0x1f211f,'isEnabled'),_0x43ddd0['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x3e207b),this['listenTo'](_0x43ddd0,'execute',(_0x4e669a,_0x454d97)=>{_0x406384['execute']('forward'===_0x454d97?'showNextChange':'showPreviousChange');}),_0x43ddd0;}),_0x3196c9['show'](),_0x3e207b['on']('change:isReady',(_0xe1e75a,_0x22631e,_0x45d9cd)=>{_0x45d9cd?_0x3196c9['hide']():_0x3196c9['show']();});}}class pt extends nt{['_resizeObserver']=null;constructor(_0x4288fd,_0x199bb9){super(_0x4288fd,_0x199bb9);const _0x28a273=this['bindTemplate'];this['set']({'label':m(_0x4288fd,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x4288fd,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x28a273['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new at(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x335bcd=this['fieldView']['element'];this['_tooltipString']=_0x335bcd['scrollWidth']>_0x335bcd['clientWidth']&&_0x335bcd['value']||'';}}class ti extends _0x2110a1{constructor(_0x42ad32,_0x53e001,_0x3786f8){super(_0x42ad32);const _0x47cf1b=new _0x5cb0f1();_0x47cf1b['set']({'content':'<svg\x20viewBox=\x220\x200\x2011\x2010\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20xmlns:xlink=\x22http://www.w3.org/1999/xlink\x22><path\x20d=\x22M5.5\x205C8.538\x205\x2011\x207.015\x2011\x209.5c0\x20.17-.011.336-.034.5H.034A3.732\x203.732\x200\x200\x201\x200\x209.5C0\x207.015\x202.462\x205\x205.5\x205zm0-5a2.5\x202.5\x200\x201\x201\x200\x205\x202.5\x202.5\x200\x200\x201\x200-5z\x22\x20/></svg>\x0a','viewBox':'0\x200\x2011\x2010'});const _0x51406f=['ck','ck-revision-history-sidebar__revision-author'];_0x3786f8&&_0x51406f['push']('ck-revision-history-sidebar__revision-author_creator');const _0x518a40=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x42ad32,_0x3786f8?'Revision\x20creator':'Revision\x20author')},'children':[_0x47cf1b,_0x53e001['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x51406f},'children':_0x518a40});}}function ni(_0x27e077,_0x5e7c7f){const _0x4922df=_0x27e077['bindTemplate'],_0x7d4f45=_0x27e077['locale'],_0x5b0bd6=_0x221db2(_0x7d4f45);_0x5b0bd6['panelPosition']='sw';const _0x32e4c4=function(_0x564a5b,_0x18d5f2){const _0x1420cb=function(_0x479702,_0x522adc){const _0x33803f=_0x479702['locale'],_0x5bea97={'Compare\x20against\x20selected':m(_0x33803f,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x33803f,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x33803f,'Restore\x20this\x20revision')};return _0x522adc['map'](_0x49d571=>{const _0x2ece81=_0x5bea97[_0x49d571['name']];return _0x2ece81&&_0x2ece81!==_0x49d571['name']&&(_0x49d571['name']=_0x2ece81),_0x49d571;});}(_0x564a5b,_0x18d5f2),_0x3264ef=new _0x25f72c();for(const _0x5b7198 of _0x1420cb){const _0x51e471={'type':'button','model':new to({'label':_0x5b7198['name'],'class':_0x5b7198['class'],'withText':!0x0,'role':'menuitem','_action':_0x5b7198['action']})};_0x51e471['model']['bind']('isEnabled')['to'](_0x564a5b,'isActionsDropdownOpen',_0x2f4fa2=>'function'!=typeof _0x5b7198['isEnabled']||(!_0x2f4fa2||_0x5b7198['isEnabled'](_0x564a5b))),_0x3264ef['add'](_0x51e471);}return _0x3264ef;}(_0x27e077,_0x5e7c7f);return _0x27e077['bind']('isActionsDropdownOpen')['to'](_0x5b0bd6,'isOpen'),_0x5b0bd6['buttonView']['set']({'label':m(_0x7d4f45,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x48df4e['threeVerticalDots']}),_0x5b0bd6['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x4922df['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x4922df['to'](_0x1c6c68=>_0x1c6c68['stopPropagation']())}}),_0x5b0bd6['on']('execute',_0x7b75a0=>{_0x27e077['isReady']&&'function'==typeof _0x7b75a0['source']['_action']&&_0x7b75a0['source']['_action'](_0x27e077);}),_0x4138fc(_0x5b0bd6,_0x32e4c4,{'role':'menu'}),_0x5b0bd6['listenTo'](_0x27e077,'change:isActionsDropdownOpen',(_0x2cdf4d,_0x520cf0,_0x1a4e43)=>{if(_0x1a4e43)for(const _0x5b20b3 of _0x5b0bd6['listView']['items']){const _0x1a8d34=_0x5b20b3['children']['first'],_0x4eecc9=_0x5e7c7f['find'](_0x5ac4d0=>_0x5ac4d0['action']===_0x1a8d34['_action'])['isVisible'];_0x5b20b3['isVisible']=void 0x0===_0x4eecc9||_0x4eecc9(_0x27e077);}}),_0x5b0bd6;}class ai extends/* #__PURE__ -- @preserve */
|
|
26
|
-
|
|
23
|
+
import{ObservableMixin as _0x3ddaf9,uid as _0x2d3c1e,Collection as _0x1caf96,logWarning as _0x565cf3,FocusTracker as _0x30fc5d,KeystrokeHandler as _0xe432c2,scrollViewportToShowTarget as _0x2cff1f,ResizeObserver as pt,ElementReplacer as ht,CKEditorError as _0x2e3aef}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x54079b,set as _0x18db9c,unset as _0x14fdd6,isEqual as _0x1cfb9a}from'es-toolkit/compat';import{Plugin as _0x19eb44,PendingActions as _0x18cc44,Command as _0x3b1154,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0xb8447b,getMarkerDomElement as _0x12bc2a,ConfirmMixin as _0x220777,sanitizeEditorConfig as _0x388719}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x4daa75,Element as ut,Range as ft,ViewUIElement as _0x26460a,ViewRawElement as _0x2e2456,ViewEmptyElement as _0xc09e33,ViewAttributeElement as _0x34b3a3,ViewContainerElement as _0x4b52e0,Position as vt,ViewText as _0x14d4f7,ViewElement as _0x473b22,DocumentFragment as gt,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x533e5c,IconChevronUp as _0x20e947,IconChevronDown as _0x2efc78,IconUndo as _0x520d6c,IconUser as _0x14a93e,IconThreeVerticalDots as _0x28e837}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x3438c0,injectCssTransitionDisabler as ts,submitHandler as _0x124a44,LabeledFieldView as at,createLabeledInputText as ti,createDropdown as _0x36390b,ListView as _0x3e0030,ListItemView as te,ButtonView as _0x1cfe19,MenuBarMenuView as _0x272de6,MenuBarMenuListView as _0x3b9875,MenuBarMenuListItemView as _0x3168a2,MenuBarMenuListItemButtonView as _0x3b5cb8,ContextualBalloon as _0x5cf708,ToolbarSeparatorView as _0x139776,IconView as _0x2b6dd8,addListToDropdown as _0x59951c,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 _0x1484ed}from'luxon';class h extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x3ddaf9(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x5a6bba){super(),this['id']=_0x5a6bba['id']||_0x2d3c1e(),this['creator']=_0x5a6bba['creator']||null,this['authors']=_0x5a6bba['authors']||[],this['diffData']=_0x5a6bba['diffData']||null,this['toVersion']=_0x5a6bba['toVersion']||0x0,this['fromVersion']=_0x5a6bba['fromVersion']||0x0,this['set']('name',_0x5a6bba['name']||''),this['set']('createdAt',_0x5a6bba['createdAt']||new Date()),this['set']('attributes',_0x5a6bba['attributes']||{});}['setName'](_0x51903c){this['_update']({'name':_0x51903c});}['setAttribute'](_0x3790d0,_0x34ddf3){const _0xc56adb=_0x54079b(this['attributes']);_0x18db9c(_0xc56adb,_0x3790d0,_0x34ddf3),this['_update']({'attributes':_0xc56adb});}['removeAttribute'](_0x4c1d13){const _0x2f342d=_0x54079b(this['attributes']);_0x14fdd6(_0x2f342d,_0x4c1d13),this['_update']({'attributes':_0x2f342d});}['_update'](_0x1f7cbc,_0x174e1c=!0x1){let _0xc80756=!0x1;const _0x1844a0={'id':this['id']},_0x86b3ca=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x110c8b of _0x86b3ca){const _0x394389=_0x1f7cbc[_0x110c8b];void 0x0!==_0x394389&&_0x394389!==this[_0x110c8b]&&(this[_0x110c8b]=_0x394389,_0x1844a0[_0x110c8b]=_0x394389,_0xc80756=!0x0);}_0xc80756&&(_0x1844a0['authors']&&(_0x1844a0['authorsIds']=_0x1844a0['authors']['map'](_0x139c7f=>_0x139c7f['id']),delete _0x1844a0['authors']),this['fire']('_update',_0x1844a0,_0x174e1c));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x543ece=>_0x543ece['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x19eb44{['_revisions'];static get['requires'](){return[_0xb8447b];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x21ce24){super(_0x21ce24),this['_revisions']=new _0x1caf96();}['afterInit'](){!async function(_0x5d8fdf){const _0xddf0be=_0x5f5a7d([0x6f,0x31,0x55,0x56,0x70,0x72,0x65,0x7a,0x64,0x47,0x68,0x62,0x42,0x69,0x73,0x4f,0x32,0x43,0x38,0x35,0x37,0x79,0x4c,0x74,0x53,0x39,0x45,0x61,0x54,0x6a,0x4d,0x4e,0x30,0x58,0x36,0x59,0x6e,0x52,0x44,0x6c,0x6d,0x49,0x33,0x50,0x5a,0x77,0x63,0x6b,0x67,0x78,0x4b,0x71,0x4a,0x66,0x57,0x51,0x76,0x46,0x41,0x48,0x75,0x34]),_0x364e08=0xeb829,_0x349780=0x766d1642,_0x41cf77=0x766a76f2^_0x349780,_0x20c492=window[_0x5f5a7d([0x44,0x61,0x74,0x65])][_0x5f5a7d([0x6e,0x6f,0x77])](),_0x2da03e=_0x5d8fdf[_0x5f5a7d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2801ac=new window[(_0x5f5a7d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3182b4=>{_0x2da03e[_0x5f5a7d([0x6f,0x6e,0x63,0x65])](_0x5f5a7d([0x72,0x65,0x61,0x64,0x79]),_0x3182b4);}),_0x26fdc1={[_0x5f5a7d([0x6b,0x74,0x79])]:_0x5f5a7d([0x45,0x43]),[_0x5f5a7d([0x75,0x73,0x65])]:_0x5f5a7d([0x73,0x69,0x67]),[_0x5f5a7d([0x63,0x72,0x76])]:_0x5f5a7d([0x50,0x2d,0x32,0x35,0x36]),[_0x5f5a7d([0x78])]:_0x5f5a7d([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]),[_0x5f5a7d([0x79])]:_0x5f5a7d([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]),[_0x5f5a7d([0x61,0x6c,0x67])]:_0x5f5a7d([0x45,0x53,0x32,0x35,0x36])},_0x85e3e4=_0x2da03e[_0x5f5a7d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5f5a7d([0x67,0x65,0x74])](_0x5f5a7d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x6bb5cb(){let _0x1bc4f7,_0x3bae8b=null,_0x2732f7=null;try{if(_0x85e3e4==_0x5f5a7d([0x47,0x50,0x4c]))return _0x5f5a7d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1bc4f7=_0x1776d8(),!_0x1bc4f7)return _0x5f5a7d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1bc4f7[_0x5f5a7d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2732f7=_0x4f03fe(_0x1bc4f7[_0x5f5a7d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1bc4f7[_0x5f5a7d([0x6a,0x74,0x69])])),await _0x3b144b()?_0x3aeb6d()?_0x52e87e()?_0x5f5a7d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1328df()?(_0x1bc4f7[_0x5f5a7d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5f5a7d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3bae8b=_0x17bce0(_0x5f5a7d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1bc4f7[_0x5f5a7d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5f5a7d([0x74,0x72,0x69,0x61,0x6c])&&(_0x3bae8b=_0x17bce0(_0x5f5a7d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x10add4()):_0x5f5a7d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5f5a7d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5f5a7d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x4612fc){return _0x5f5a7d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x52e87e(){const _0x2f224a=[_0x5f5a7d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5f5a7d([0x74,0x72,0x69,0x61,0x6c])][_0x5f5a7d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1bc4f7[_0x5f5a7d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x20c492/0x3e8:0xe10*_0x41cf77;return _0x1bc4f7[_0x5f5a7d([0x65,0x78,0x70])]<_0x2f224a;}function _0x3aeb6d(){const _0x492ba2=_0x1bc4f7[_0x5f5a7d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x492ba2)return!0x1;if(_0x492ba2[_0x5f5a7d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f5a7d([0x2a])))return!0x0;if(_0x492ba2[_0x5f5a7d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f5a7d([0x52,0x48])))return!0x0;if(_0x492ba2[_0x5f5a7d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f5a7d([0x52,0x52,0x48]))){if(_0x100119())return!0x0;if(_0x388a65()||_0x177a29())return!0x0;}return!0x1;}function _0x1328df(){const _0x599298=_0x1bc4f7[_0x5f5a7d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x599298||0x0==_0x599298[_0x5f5a7d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5c0f78}=new URL(window[_0x5f5a7d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x599298[_0x5f5a7d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c0f78))return!0x0;const _0x77754=_0x5c0f78[_0x5f5a7d([0x73,0x70,0x6c,0x69,0x74])](_0x5f5a7d([0x2e]));return _0x599298[_0x5f5a7d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x327154=>_0x327154[_0x5f5a7d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f5a7d([0x2a])))[_0x5f5a7d([0x6d,0x61,0x70])](_0x2f6fa6=>_0x2f6fa6[_0x5f5a7d([0x73,0x70,0x6c,0x69,0x74])](_0x5f5a7d([0x2e])))[_0x5f5a7d([0x73,0x6f,0x6d,0x65])](_0x1f6612=>_0x77754[_0x5f5a7d([0x65,0x76,0x65,0x72,0x79])]((_0x561f7d,_0x84a9ec)=>_0x1f6612[_0x84a9ec]===_0x561f7d||_0x1f6612[_0x84a9ec]===_0x5f5a7d([0x2a])));}function _0x10add4(){return _0x3bae8b&&_0x2732f7?new window[(_0x5f5a7d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x163978,_0x405256)=>{_0x3bae8b[_0x5f5a7d([0x74,0x68,0x65,0x6e])](_0x163978,_0x405256),_0x2732f7[_0x5f5a7d([0x74,0x68,0x65,0x6e])](_0x389397=>{_0x389397!=_0x5f5a7d([0x56,0x61,0x6c,0x69,0x64])&&_0x163978(_0x389397);},_0x405256);}):_0x3bae8b||_0x2732f7||_0x5f5a7d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4f03fe(_0x457f73,_0x43201c){return new window[(_0x5f5a7d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x39a93c=>{if(_0x108057())return _0x39a93c(_0x5f5a7d([0x56,0x61,0x6c,0x69,0x64]));_0x533a23(),_0x2da03e[_0x5f5a7d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5f5a7d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x487d9a=!0x1;const _0x34a3dd=_0x2d3c1e();function _0x64bd43(_0x4f7c69){return!!_0x4f7c69&&(typeof _0x4f7c69===_0x5f5a7d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4f7c69===_0x5f5a7d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4f7c69[_0x5f5a7d([0x74,0x68,0x65,0x6e])]===_0x5f5a7d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4f7c69[_0x5f5a7d([0x63,0x61,0x74,0x63,0x68])]===_0x5f5a7d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2f602f(_0x2b760a){_0x1be59e(_0x2b760a)[_0x5f5a7d([0x74,0x68,0x65,0x6e])](_0x33a7c2=>{if(!_0x33a7c2||_0x33a7c2[_0x5f5a7d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5f5a7d([0x6f,0x6b]))return _0x5f5a7d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5e8468(_0x590cdc(_0x34a3dd+_0x43201c))!=_0x33a7c2[_0x5f5a7d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5f5a7d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5f5a7d([0x56,0x61,0x6c,0x69,0x64]);})[_0x5f5a7d([0x74,0x68,0x65,0x6e])](_0x579725=>(_0x30c90d(),_0x579725),()=>{const _0x3bf39a=_0x2b7d76();return null==_0x3bf39a?(_0x30c90d(),_0x5f5a7d([0x56,0x61,0x6c,0x69,0x64])):_0x5f5a7d(_0x20c492-_0x3bf39a>(0x52619242^_0x349780)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5f5a7d([0x74,0x68,0x65,0x6e])](_0x39a93c)[_0x5f5a7d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x39a93c(_0x5f5a7d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x186540=0x765bf8c2^_0x349780;function _0x30c90d(){const _0x43e128=_0x5f5a7d([0x6c,0x6c,0x63,0x74,0x2d])+_0x5e8468(_0x590cdc(_0x457f73)),_0x36cc62=_0x3dba9f(_0x5e8468(window[_0x5f5a7d([0x4d,0x61,0x74,0x68])][_0x5f5a7d([0x63,0x65,0x69,0x6c])](_0x20c492/_0x186540)));window[_0x5f5a7d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5f5a7d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x43e128,_0x36cc62);}function _0x2b7d76(){const _0x21d380=_0x5f5a7d([0x6c,0x6c,0x63,0x74,0x2d])+_0x5e8468(_0x590cdc(_0x457f73)),_0x2d9e82=window[_0x5f5a7d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5f5a7d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x21d380);return _0x2d9e82?window[_0x5f5a7d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3dba9f(_0x2d9e82),0x10)*_0x186540:null;}function _0x1be59e(_0xe98ad8){return new window[(_0x5f5a7d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x31fc0a,_0x22e841)=>{_0xe98ad8[_0x5f5a7d([0x74,0x68,0x65,0x6e])](_0x31fc0a,_0x22e841),window[_0x5f5a7d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x22e841,0x766cc282^_0x349780);});}}_0x2da03e[_0x5f5a7d([0x6f,0x6e])](_0x5f5a7d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xa829a,_0x1d7496)=>{if(_0x1d7496[0x0]!=_0x457f73)return _0x39a93c(_0x5f5a7d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1d7496[0x1]={..._0x1d7496[0x1],[_0x5f5a7d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x34a3dd};},{[_0x5f5a7d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5f5a7d([0x68,0x69,0x67,0x68])}),_0x2da03e[_0x5f5a7d([0x6f,0x6e])](_0x5f5a7d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x10e568=>{_0x64bd43(_0x10e568[_0x5f5a7d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x487d9a=!0x0,_0x2f602f(_0x10e568[_0x5f5a7d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5f5a7d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5f5a7d([0x6c,0x6f,0x77])}),_0x2801ac[_0x5f5a7d([0x74,0x68,0x65,0x6e])](()=>{_0x487d9a||_0x39a93c(_0x5f5a7d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x108057(){return _0x2da03e[_0x5f5a7d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5f5a7d([0x76,0x69,0x65,0x77])][_0x5f5a7d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5f5a7d([0x61,0x75,0x74,0x6f]);}function _0x533a23(){_0x2da03e[_0x5f5a7d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5f5a7d([0x76,0x69,0x65,0x77])][_0x5f5a7d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5f5a7d([0x61,0x75,0x74,0x6f]);}}function _0x17bce0(_0x987b98){const _0x16b0d0=[new window[(_0x5f5a7d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x123691=>setTimeout(_0x123691,0x7664288e^_0x349780)),_0x2801ac[_0x5f5a7d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5f5a7d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xb75d9c=>{const _0x543f49=0x766d1645^_0x349780,_0xb4371e=_0x5d8fdf[_0x5f5a7d([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0xfc32a9(){_0xb4371e[_0x5f5a7d([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x543f49&&_0xb75d9c();}_0xfc32a9(),_0xb4371e[_0x5f5a7d([0x6f,0x6e])](_0x5f5a7d([0x61,0x64,0x64]),_0xfc32a9);})),new window[(_0x5f5a7d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x9b4507=>{function _0x1d5c35(){for(const _0x47ee0a in window)if(window[_0x5f5a7d([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x5f5a7d([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x47ee0a))&&window[_0x47ee0a]==_0x364e08)return _0x9b4507();_0x2da03e[_0x5f5a7d([0x73,0x74,0x61,0x74,0x65])]!=_0x5f5a7d([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x5f5a7d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1d5c35,0x766d05ca^_0x349780);}_0x3539d7(_0x5f5a7d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x1d5c35();})];return window[_0x5f5a7d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5f5a7d([0x72,0x61,0x63,0x65])](_0x16b0d0)[_0x5f5a7d([0x74,0x68,0x65,0x6e])](()=>_0x987b98);}async function _0x1f65b6(){if(await _0x2801ac,_0x3539d7(_0x5f5a7d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x150107=_0x5d8fdf[_0x5f5a7d([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x1c84e1=_0x5d8fdf[_0x5f5a7d([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])](_0x150107[_0x5f5a7d([0x69,0x64])]),_0x4ed500=_0xf731a0(_0x5f5a7d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x4ed500[_0x5f5a7d([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x150107['id'],_0x1c84e1?_0x1c84e1['id']:null,!0x0),_0x4ed500[_0x5f5a7d([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x5f5a7d([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x4ed500[_0x5f5a7d([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x4ed500[_0x5f5a7d([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x191e22,void(_0x4ed500[_0x5f5a7d([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x191e22);}if(_0x3539d7(_0x5f5a7d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x3c503d=_0xf731a0(_0x5f5a7d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x3c503d[_0x5f5a7d([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x5f5a7d([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x3c503d[_0x5f5a7d([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x3c503d[_0x5f5a7d([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x191e22,_0x3c503d[_0x5f5a7d([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x191e22;}_0x2da03e[_0x5f5a7d([0x6d,0x6f,0x64,0x65,0x6c])][_0x5f5a7d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x191e22,_0x2da03e[_0x5f5a7d([0x6d,0x6f,0x64,0x65,0x6c])][_0x5f5a7d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x191e22,_0x2da03e[_0x5f5a7d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5f5a7d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x100119(){return _0x3539d7(_0x5f5a7d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0xf731a0(_0x5f5a7d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x5f5a7d([0x73,0x74,0x61,0x74,0x65])]==_0x5f5a7d([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x388a65(){return _0x3539d7(_0x5f5a7d([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 _0x177a29(){return _0x3539d7(_0x5f5a7d([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x3126c3(_0x5a695c){const _0x2c98ff=_0xb5ec69();_0x2da03e[_0x2c98ff]=_0x5f5a7d([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])+_0x5a695c,_0x5a695c[_0x5f5a7d([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x5f5a7d([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0xb5ec69()]=_0x364e08),_0x5a695c!=_0x5f5a7d([0x56,0x61,0x6c,0x69,0x64])&&_0x1f65b6();}function _0xb5ec69(){const _0x5146f6=window[_0x5f5a7d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5f5a7d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5f5a7d([0x6e,0x6f,0x77])]())[_0x5f5a7d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5f5a7d([0x2e]),'');let _0x2230c2=_0x5f5a7d([0x6f]);for(let _0x19e545=0x0;_0x19e545<_0x5146f6[_0x5f5a7d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x19e545+=0x2){let _0x485e7a=window[_0x5f5a7d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5146f6[_0x5f5a7d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x19e545,_0x19e545+0x2));_0x485e7a>=_0xddf0be[_0x5f5a7d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x485e7a-=_0xddf0be[_0x5f5a7d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2230c2+=_0xddf0be[_0x485e7a];}return _0x2230c2;}function _0x1776d8(){const _0xc686b5=_0x85e3e4[_0x5f5a7d([0x73,0x70,0x6c,0x69,0x74])](_0x5f5a7d([0x2e]));if(0x3!=_0xc686b5[_0x5f5a7d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x54186e(_0xc686b5[0x1]);function _0x54186e(_0x6bb1d4){const _0x373f89=_0x202f7a(_0x6bb1d4);return _0x373f89&&_0x5d5e23()?_0x373f89:null;function _0x5d5e23(){const _0x53c3e0=_0x373f89[_0x5f5a7d([0x6a,0x74,0x69])],_0x5e69db=window[_0x5f5a7d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x53c3e0[_0x5f5a7d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x53c3e0[_0x5f5a7d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1e32a9={..._0x373f89,[_0x5f5a7d([0x6a,0x74,0x69])]:_0x53c3e0[_0x5f5a7d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x53c3e0[_0x5f5a7d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1e32a9[_0x5f5a7d([0x76,0x63])],_0x590cdc(_0x1e32a9)==_0x5e69db;}}}async function _0x3b144b(){let _0x5cfbad=!0x0;try{const _0x56eb90=_0x85e3e4[_0x5f5a7d([0x73,0x70,0x6c,0x69,0x74])](_0x5f5a7d([0x2e])),[_0x4c8a61,_0x4b8b81,_0x382b00]=_0x56eb90;return _0x40abb0(_0x4c8a61),await _0x506604(_0x4c8a61,_0x4b8b81,_0x382b00),_0x5cfbad;}catch(_0x1edd8c){return!0x1;}function _0x40abb0(_0x5c3e54){const _0x4e544c=_0x202f7a(_0x5c3e54);_0x4e544c&&_0x4e544c[_0x5f5a7d([0x61,0x6c,0x67])]==_0x5f5a7d([0x45,0x53,0x32,0x35,0x36])||(_0x5cfbad=!0x1);}async function _0x506604(_0x24313f,_0x559386,_0x507d36){const _0x30db76=window[_0x5f5a7d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5f5a7d([0x66,0x72,0x6f,0x6d])](_0x35368a(_0x507d36),_0x141d85=>_0x141d85[_0x5f5a7d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x45bd4b=new window[(_0x5f5a7d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5f5a7d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x24313f+_0x5f5a7d([0x2e])+_0x559386),_0x12c734=window[_0x5f5a7d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5f5a7d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x12c734)return;const _0x2ebab7=await _0x12c734[_0x5f5a7d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5f5a7d([0x6a,0x77,0x6b]),_0x26fdc1,{[_0x5f5a7d([0x6e,0x61,0x6d,0x65])]:_0x5f5a7d([0x45,0x43,0x44,0x53,0x41]),[_0x5f5a7d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5f5a7d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5f5a7d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x12c734[_0x5f5a7d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5f5a7d([0x6e,0x61,0x6d,0x65])]:_0x5f5a7d([0x45,0x43,0x44,0x53,0x41]),[_0x5f5a7d([0x68,0x61,0x73,0x68])]:{[_0x5f5a7d([0x6e,0x61,0x6d,0x65])]:_0x5f5a7d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2ebab7,_0x30db76,_0x45bd4b)||(_0x5cfbad=!0x1);}}function _0x202f7a(_0x5e9b2e){return _0x5e9b2e[_0x5f5a7d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5f5a7d([0x65,0x79]))?JSON[_0x5f5a7d([0x70,0x61,0x72,0x73,0x65])](_0x35368a(_0x5e9b2e)):null;}function _0x35368a(_0x30552b){return window[_0x5f5a7d([0x61,0x74,0x6f,0x62])](_0x30552b[_0x5f5a7d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5f5a7d([0x2b]))[_0x5f5a7d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5f5a7d([0x2f])));}function _0x590cdc(_0x17996a){let _0x25f507=0x1505;function _0x120ff4(_0x200ec4){for(let _0x163076=0x0;_0x163076<_0x200ec4[_0x5f5a7d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x163076++){const _0x51298d=_0x200ec4[_0x5f5a7d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x163076);_0x25f507=(_0x25f507<<0x5)+_0x25f507+_0x51298d,_0x25f507&=_0x25f507;}}function _0x2ad5b9(_0x54912f){Array[_0x5f5a7d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x54912f)?_0x54912f[_0x5f5a7d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2ad5b9):_0x54912f&&typeof _0x54912f==_0x5f5a7d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5f5a7d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x54912f)[_0x5f5a7d([0x73,0x6f,0x72,0x74])]()[_0x5f5a7d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x32ae9b,_0x496978])=>{_0x120ff4(_0x32ae9b),_0x2ad5b9(_0x496978);}):_0x120ff4(window[_0x5f5a7d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x54912f));}return _0x2ad5b9(_0x17996a),_0x25f507>>>0x0;}function _0x5e8468(_0x2ab6f0){return _0x2ab6f0[_0x5f5a7d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5f5a7d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5f5a7d([0x30]));}function _0x3dba9f(_0x386b05){return _0x386b05[_0x5f5a7d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5f5a7d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5f5a7d([0x6a,0x6f,0x69,0x6e])]('');}function _0x3539d7(_0x26e4af){return _0x2da03e[_0x5f5a7d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5f5a7d([0x68,0x61,0x73])](_0x26e4af);}function _0xf731a0(_0x482d73){return _0x2da03e[_0x5f5a7d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5f5a7d([0x67,0x65,0x74])](_0x482d73);}function _0x191e22(){}function _0x5f5a7d(_0x211290){return _0x211290['map'](_0x1b7eeb=>String['fromCharCode'](_0x1b7eeb))['join']('');}_0x3126c3(await _0x6bb5cb());}(this);}['createRevision'](_0x548cb1){const _0x1726a7=this['editor']['plugins']['get']('Users');return new h({'id':_0x548cb1['id'],'name':_0x548cb1['name'],'creator':_0x548cb1['creatorId']?_0x1726a7['getUser'](_0x548cb1['creatorId']):null,'diffData':_0x548cb1['diffData']||_0x548cb1['data'],'authors':_0x548cb1['authorsIds']['map'](_0x8599c5=>_0x1726a7['getUser'](_0x8599c5)),'createdAt':new Date(_0x548cb1['createdAt']),'attributes':_0x548cb1['attributes'],'fromVersion':_0x548cb1['fromVersion'],'toVersion':_0x548cb1['toVersion']});}['addRevision'](_0x3a5d71,_0x13c851=0x0){this['_revisions']['add'](_0x3a5d71,_0x13c851);}['getRevision'](_0x42d1b5){return this['_revisions']['get'](_0x42d1b5);}['getRevisions'](_0x29a29e={'toJSON':!0x1}){const _0x3ee01e=Array['from'](this['_revisions']);return _0x3ee01e['reverse'](),_0x29a29e['toJSON']?_0x3ee01e['map'](_0x58d446=>_0x58d446['toJSON']()):_0x3ee01e;}['getIndex'](_0x40b8db){return this['_revisions']['getIndex'](_0x40b8db);}['getEarlierVisibleRevision'](_0x2ee0fa){const [,_0x5003ef]=this['getRevisionsIterator'](_0x2ee0fa,{'direction':'earlier'});return _0x5003ef;}['getLaterVisibleRevision'](_0x2ae340){const [,_0x401282]=this['getRevisionsIterator'](_0x2ae340,{'direction':'later'});return _0x401282;}['getRevisionsInDiff'](_0x36e2a9){const _0xd0fdb8=[];for(const _0xc0ae9f of this['getRevisionsIterator'](_0x36e2a9['newRevisionId']))if(_0xd0fdb8['push'](_0xc0ae9f),_0xc0ae9f['id']===_0x36e2a9['oldRevisionId'])break;return _0xd0fdb8;}*['getRevisionsIterator'](_0x1cb747,{direction:_0x50539a='earlier',filter:_0x335645=()=>!0x0}={}){const _0x27ecf9='earlier'===_0x50539a?0x1:-0x1;let _0x14f5e3=this['_revisions']['get'](_0x1cb747),_0x44e32c=this['getIndex'](_0x14f5e3);for(yield _0x14f5e3;_0x14f5e3;){if(_0x44e32c+=_0x27ecf9,_0x14f5e3=this['getRevision'](_0x44e32c),!_0x14f5e3)return;_0x335645(_0x14f5e3)&&(yield _0x14f5e3);}}}function m(_0x216ae5,_0x56008e,_0x22f200){const t=_0x216ae5['t'];switch(_0x56008e){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'},_0x22f200);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x22f200);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':_0x4b52e0,'a':_0x34b3a3,'e':_0xc09e33,'r':_0x2e2456,'u':_0x26460a};class u extends _0x19eb44{['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[_0xb8447b,j,_0x18cc44];}constructor(_0x117f1d){super(_0x117f1d),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 _0x314d5c=_0x2d3c1e();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x314d5c},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 _0x48c901=this['repository']['getRevision'](0x0),_0x16a940=_0x48c901&&null===_0x48c901['creator']?_0x48c901:null;if(this['_continueCurrentRevision']=!!_0x16a940&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x302d7a=this['_source']['getCurrentRevisionId'](),_0x3ec4cc=this['repository']['getRevision'](_0x302d7a);if(_0x3ec4cc)this['_startingVersion']=_0x3ec4cc['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x977e20=this['_source']['history']['_operations']['find'](_0x47ccf4=>!_0x47ccf4['_isInit']),_0x557a64=_0x977e20?_0x977e20['baseVersion']:this['_source']['history']['version'];_0x48c901?(_0x48c901['toVersion']<_0x557a64&&_0x48c901['_update']({'toVersion':_0x557a64}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x16a940['id'],this['_startingVersion']=_0x16a940['fromVersion']):(this['_startingVersion']=_0x48c901['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x557a64,this['_continueCurrentRevision']=!0x1);}}else _0x16a940&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x16a940['toVersion'],this['editor']['model']['document']['history']['version']),_0x16a940['fromVersion']===_0x16a940['toVersion']?(0x0!==_0x16a940['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x16a940['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x16a940['id'],this['_startingVersion']=_0x16a940['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',_0x55fd81=>!_0x55fd81),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2f87cc=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5413e8;for(const _0x52f1a2 in _0x2f87cc){const _0x45c8d0=_0x52f1a2,_0x1898d8=_0x2f87cc[_0x45c8d0];if('revisionHistoryLicenseKeyValid'==_0x1898d8||'revisionHistoryLicenseKeyInvalid'==_0x1898d8||'revisionHistoryLicenseKeyExpired'==_0x1898d8||'revisionHistoryLicenseKeyDomainLimit'==_0x1898d8||'revisionHistoryLicenseKeyNotAllowed'==_0x1898d8||'revisionHistoryLicenseKeyEvaluationLimit'==_0x1898d8||'revisionHistoryLicenseKeyTrialLimit'==_0x1898d8||'revisionHistoryLicenseKeyUsageLimit'==_0x1898d8){delete _0x2f87cc[_0x45c8d0],_0x5413e8=_0x1898d8,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x5413e8&&_0x2f87cc['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x5413e8&&_0x2f87cc['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x5413e8&&_0x2f87cc['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x5413e8&&_0x2f87cc['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x5413e8&&_0x2f87cc['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x5413e8&&_0x2f87cc['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x5413e8&&_0x2f87cc['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x56b9fb=this['repository']['getRevision'](0x0),_0x34d39e=await this['getRevisionDocumentData'](_0x56b9fb),_0x2bcff3=await this['getRevisionRootsAttributes'](_0x56b9fb);this['_replaceEditorDataWithRevisionData'](_0x34d39e,_0x2bcff3);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x25f910){this['_source']=_0x25f910;}async['update'](){const _0x3f2c37=await this['_source']['getLatestVersion']();if(_0x3f2c37>this['currentRevision']['toVersion']){await this['_loadState']();const _0x5d95f0=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x3f2c37});_0x5d95f0['authors']=_0x5d95f0['authorsIds']['map'](_0x36d692=>this['editor']['plugins']['get']('Users')['getUser'](_0x36d692)),this['currentRevision']['_update'](_0x5d95f0);}}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'](_0xe5c643={},_0x112cf3=null){const _0x1236a1=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x112cf3>this['currentRevision']['toVersion']&&(_0x112cf3=null),null===_0x112cf3&&(_0x112cf3=await this['_source']['getLatestVersion']());const _0x17374c=this['_getFromVersion'](_0x112cf3),_0x209782=this['buildRevisionData']({'from':_0x17374c,'to':_0x112cf3});if(this['currentRevision']['toVersion']<_0x112cf3){const _0x42151e=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x112cf3,'to':_0x112cf3});_0x42151e['authors']=[],_0x42151e['authorsIds']=[],_0x42151e['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x42151e,!0x0),delete _0x42151e['authors'],_0x1236a1['push'](_0x42151e);}_0xe5c643['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0xe5c643['name']=_0xe5c643['name']||null,_0xe5c643['id']=_0xe5c643['id']||_0x2d3c1e(),_0xe5c643={..._0xe5c643,..._0x209782};const _0x40f44f=this['addRevisionData'](_0xe5c643);_0x1236a1['push'](_0xe5c643);const _0x8d75f9=this['repository']['getIndex'](_0x40f44f);if(0x0!==_0x8d75f9){const _0x4ef281=this['repository']['getRevision'](_0x8d75f9-0x1);if(_0x4ef281['fromVersion']!==_0x112cf3){const _0x58b452=this['_revisionDataBuilder']['getData'](_0x112cf3,_0x4ef281['toVersion']),_0x41dce8={'id':_0x4ef281['id'],'diffData':_0x58b452['diffData'],'authorsIds':_0x58b452['authorsIds'],'authors':_0x58b452['authorsIds']['map'](_0x4a3cb3=>this['editor']['plugins']['get']('Users')['getUser'](_0x4a3cb3)),'fromVersion':_0x112cf3};_0x4ef281===this['currentRevision']&&(_0x41dce8['createdAt']=new Date(_0xe5c643['createdAt']['getTime']()+0xa)),_0x4ef281['_update'](_0x41dce8,!0x0),delete _0x41dce8['authors'],_0x1236a1['push'](_0x41dce8);}}if(this['adapter']){for(const _0xa8989d of _0x1236a1)this['_bufferUpdate'](_0xa8989d['id'],_0xa8989d,!0x0);this['sendBufferedUpdates']();}return _0x40f44f;}['addRevisionData'](_0x4d7b4f){const _0x570b65=this['repository']['createRevision'](_0x4d7b4f);return this['adapter']&&_0x570b65['on']('_update',(_0x471382,_0x373f23,_0x59fd8d)=>{_0x59fd8d||(this['_bufferUpdate'](_0x373f23['id'],_0x373f23,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x570b65,this['_findInsertionIndex'](_0x570b65)),_0x570b65;}async['getRevisionDocumentData'](_0x4decb7){await this['_loadRevisionData'](_0x4decb7);const _0x79c15d={};for(const _0x1addf5 in _0x4decb7['diffData']){if(_0x4decb7['diffData'][_0x1addf5]['attachChange']&&!_0x4decb7['diffData'][_0x1addf5]['attachChange']['isAttached'])continue;const _0x1f7985=this['_removeRevisionMarkers'](JSON['parse'](_0x4decb7['diffData'][_0x1addf5]['insertions'])),_0x52e7d2=this['editor']['editing']['view']['document'],_0x127a41=new _0x4daa75(_0x52e7d2,_0x1f7985['map'](_0x226e78=>P(_0x226e78,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x79c15d[_0x1addf5]=this['editor']['data']['processor']['toData'](_0x127a41),this['editor']['data']['processor']['useFillerType']('default');}return _0x79c15d;}async['getRevisionRootsAttributes'](_0x56ba28){await this['_loadRevisionData'](_0x56ba28);const _0x3432fe={};for(const _0x35078e in _0x56ba28['diffData'])_0x56ba28['diffData'][_0x35078e]['attachChange']&&!_0x56ba28['diffData'][_0x35078e]['attachChange']['isAttached']||(_0x3432fe[_0x35078e]=_0x56ba28['diffData'][_0x35078e]['attributesAfter']||{});return _0x3432fe;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x2397e8=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x2d3bc6=0x0;_0x2d3bc6<_0x2397e8['length'];_0x2d3bc6++){const _0x41deed=_0x2397e8[_0x2d3bc6];let _0x23e827=!0x1;for(const _0x53853a of Object['keys'](_0x41deed))void 0x0===_0x41deed[_0x53853a]?delete _0x41deed[_0x53853a]:'id'!==_0x53853a&&(_0x23e827=!0x0);_0x23e827||(_0x2397e8[_0x2d3bc6]=null);}if(_0x2397e8=_0x2397e8['filter'](_0x11b73d=>null!==_0x11b73d),!_0x2397e8['length'])return;for(let _0x2aed67=0x0;_0x2aed67<_0x2397e8['length'];_0x2aed67++){const _0x25fe0b=_0x2397e8[_0x2aed67];void 0x0!==_0x25fe0b['fromVersion']&&void 0x0===_0x25fe0b['toVersion']&&(_0x25fe0b['toVersion']=this['repository']['getRevision'](_0x25fe0b['id'])['toVersion']),void 0x0!==_0x25fe0b['toVersion']&&void 0x0===_0x25fe0b['fromVersion']&&(_0x25fe0b['fromVersion']=this['repository']['getRevision'](_0x25fe0b['id'])['fromVersion']);}const _0x479ba8=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x2397e8,_0x479ba8)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x21ff37=>{if(_0x21ff37){for(const _0x281a05 of _0x21ff37)this['setRevisionData']({'id':_0x281a05['id'],'createdAt':_0x281a05['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x1db502,_0x33ffae){let _0x21c154=this['editor']['config']['get']('initialData'),_0x20028c=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x21c154){_0x21c154={};for(const _0x21de3f of this['editor']['model']['document']['getRootNames']())_0x21c154[_0x21de3f]='';}if('string'==typeof _0x21c154&&(_0x21c154={'main':_0x21c154}),void 0x0===_0x20028c){_0x20028c={};for(const _0x3a52a6 of this['editor']['model']['document']['getRootNames']())_0x20028c[_0x3a52a6]={};}let _0x457581=!0x1;const _0x3758af=Object['keys'](_0x21c154),_0x31efe9=Object['keys'](_0x1db502);for(const _0x37fbb5 of _0x3758af){if(_0x21c154[_0x37fbb5]!==_0x1db502[_0x37fbb5]&&''!==_0x21c154[_0x37fbb5]['trim']()){_0x457581=!0x0;break;}if(!_0x1cfb9a(_0x20028c[_0x37fbb5],_0x33ffae[_0x37fbb5])&&Object['keys'](_0x20028c[_0x37fbb5])['length']>0x0){_0x457581=!0x0;break;}}_0x457581||(_0x457581=_0x31efe9['some'](_0x134988=>!this['editor']['model']['document']['getRoot'](_0x134988))),_0x457581&&_0x565cf3('editor-initial-data-replaced-with-revision-data',{'editorData':_0x21c154,'editorRootsAttributes':_0x20028c,'revisionData':_0x1db502,'revisionRootsAttributes':_0x33ffae}),this['editor']['config']['set']('initialData',_0x1db502),this['editor']['config']['set']('rootsAttributes',_0x33ffae);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x35cbd0=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x35cbd0['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x4f4ba2){const _0x2ff545=this['repository']['getRevisions']();_0x2ff545['reverse']();let _0x26f835=0x0;for(;_0x26f835<_0x2ff545['length'];){const _0x3471a3=_0x2ff545[_0x26f835];if(_0x3471a3===this['currentRevision']){_0x26f835++;continue;}if(_0x3471a3['id']===this['_initialRevisionId'])break;const _0x4ae8d0=_0x4f4ba2['toVersion']-_0x3471a3['toVersion']||_0x4f4ba2['fromVersion']-_0x3471a3['fromVersion'];if(_0x4ae8d0>0x0)break;if(_0x4ae8d0<0x0)_0x26f835++;else{if(!_0x4f4ba2['creator']&&_0x3471a3['creator'])break;if(_0x3471a3['creator']||!_0x4f4ba2['creator']){if(_0x4f4ba2['createdAt']>_0x3471a3['createdAt'])break;_0x26f835++;}else _0x26f835++;}}return _0x26f835;}['setRevisionData'](_0xed3550){const _0x50a237=this['repository']['getRevision'](_0xed3550['id']);if(_0xed3550['createdAt']&&(_0xed3550['createdAt']=new Date(_0xed3550['createdAt'])),_0xed3550['authorsIds']){const _0x364306=this['editor']['plugins']['get']('Users');_0xed3550['authors']=_0xed3550['authorsIds']['map'](_0x4fa63e=>_0x364306['getUser'](_0x4fa63e));}_0x50a237['_update'](_0xed3550,!0x0);}['buildRevisionData']({revision:_0x4d812f=null,from:_0x2946ed=null,to:_0x3606e9=null}){_0x2946ed=null!==_0x2946ed?_0x2946ed:_0x4d812f['fromVersion'],_0x3606e9=null!==_0x3606e9?_0x3606e9:_0x4d812f['toVersion'];const _0x5bacd6=this['_revisionDataBuilder']['getData'](_0x2946ed,_0x3606e9),_0x127529={'diffData':_0x5bacd6['diffData'],'authorsIds':_0x5bacd6['authorsIds'],'fromVersion':_0x2946ed,'toVersion':_0x3606e9};if(!_0x4d812f||_0x3606e9!==_0x4d812f['toVersion']){const _0x16ec04=_0x3606e9-0x1,_0x291acb=this['_source']['history']['getOperation'](_0x16ec04);_0x127529['createdAt']=_0x291acb&&_0x291acb['createdAt']||new Date();}if(this['_loadedStateData']&&_0x2946ed===this['_loadedStateData']['fromVersion']){for(const _0x5996e6 of this['_loadedStateData']['authors'])_0x127529['authorsIds']['includes'](_0x5996e6['id'])||_0x127529['authorsIds']['push'](_0x5996e6['id']);}return _0x127529;}['_loadRevisionData'](_0x394c1f){if(!_0x394c1f||_0x394c1f['diffData'])return Promise['resolve']();{const _0x305e93=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x305e93,'revisionId':_0x394c1f['id']})['then'](_0x33168d=>{_0x394c1f['diffData']=_0x33168d['diffData'];});}}['_bufferUpdate'](_0x8b898a,_0x3717b8,_0x17e452){if(this['_bufferedUpdates']['has'](_0x8b898a)){const _0x137780=this['_bufferedUpdates']['get'](_0x8b898a);_0x3717b8=_0x17e452?{..._0x137780,..._0x3717b8}:{..._0x3717b8,..._0x137780};}this['_bufferedUpdates']['set'](_0x8b898a,_0x3717b8);}['_getFromVersion'](_0x44267f){const _0x5a16e5=this['repository']['getRevisions']();_0x5a16e5['reverse'](),_0x5a16e5['shift']();const _0x42019a=_0x5a16e5['find'](_0x7f7662=>_0x7f7662['toVersion']<=_0x44267f)['toVersion'];return _0x42019a<this['_startingVersion']?this['_startingVersion']:_0x42019a;}['_createInitialRevision'](_0x3d8a77){const _0x88c1f1=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x88c1f1)this['_initialRevisionId']=_0x88c1f1['id'];else{const _0x3f8ff3=!this['editor']['model']['document']['roots']['find'](_0x250f4e=>this['editor']['model']['hasContent'](_0x250f4e)),_0x838614=this['editor']['plugins']['get']('Users')['me']['id'],_0x340267=m(this['editor']['locale'],_0x3f8ff3?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x3d8a77,'to':_0x3d8a77,'id':this['_initialRevisionId'],'name':_0x340267,'creatorId':_0x838614});}}['_createCurrentRevision'](_0x170481){const _0x214a90=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x214a90),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x170481,'to':_0x170481,'id':_0x214a90,'name':'','creatorId':null}));}['_makeRevision']({name:_0x12a8fe,from:_0x682842,to:_0x294f91,creatorId:_0x532710,id:_0x48c31d}){const _0xe9810f=this['buildRevisionData']({'from':_0x682842,'to':_0x294f91});_0xe9810f['name']=_0x12a8fe,_0xe9810f['creatorId']=_0x532710,_0xe9810f['id']=_0x48c31d;const _0x2c79a1=this['addRevisionData'](_0xe9810f);return this['adapter']&&this['_bufferUpdate'](_0xe9810f['id'],_0xe9810f,!0x0),_0x2c79a1;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x293173){return(_0x293173=_0x293173['filter'](_0x2cbf50=>!_0x2cbf50['name']||'revision-start'!==_0x2cbf50['name']&&'revision-end'!==_0x2cbf50['name']))['forEach'](_0x5647c8=>{'string'!=typeof _0x5647c8&&(_0x5647c8['children']=this['_removeRevisionMarkers'](_0x5647c8['children']),_0x5647c8['attributes']=_0x5647c8['attributes']['filter'](_0x3aec46=>!_0x3aec46[0x0]['startsWith']('data-revision-')));}),_0x293173;}}function P(_0x2ed2d5,_0x49beef){const _0x48147f=_0x49beef['editing']['view']['document'];if('string'==typeof _0x2ed2d5)return new _0x14d4f7(_0x48147f,_0x2ed2d5);{const _0x586ede=_0x2ed2d5['children']['map'](_0x15e916=>P(_0x15e916,_0x49beef));return new(E[_0x2ed2d5['type']]||_0x473b22)(_0x48147f,_0x2ed2d5['name'],_0x2ed2d5['attributes'],_0x586ede);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x9adf4d){this['editor']=_0x9adf4d,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'](_0x241257){this['source']=_0x241257;const _0x1c1fbc=new Map(),_0x123a1a=new Map(),_0x563363=this['editor']['model']['document']['roots']['map'](_0x4e15bc=>_0x4e15bc['rootName']);for(const _0x4b0ec8 of _0x563363){const _0x4f2978=this['editor']['model']['document']['getRoot'](_0x4b0ec8),_0x43083a=T(_0x4f2978);_0x1c1fbc['set'](_0x4b0ec8,_0x43083a),_0x123a1a['set'](_0x4b0ec8,Object['fromEntries'](_0x4f2978['getAttributes']()));}const _0x17890f=Array['from'](this['editor']['model']['markers'])['map'](_0xa4f5f7=>[_0xa4f5f7['name'],_0xa4f5f7['getRange']()]),_0x3097ca=this['source']['version'];this['_saveMetaData'](_0x3097ca,_0x1c1fbc,_0x17890f,_0x123a1a),this['_startingRevisionId']=this['_revisionId'];const _0x2f2040=new Map(),_0x9a073d=new Map();for(const _0x13f022 of _0x563363){const _0xecd7f=F(_0x13f022);_0x2f2040['set'](_0x13f022,_0xecd7f),_0x9a073d['set'](_0x13f022,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x2f2040,[],_0x9a073d);}['getData'](_0x2e9171,_0x3dfeff){if(this['_lastFrom']===_0x2e9171&&this['_lastTo']<=_0x3dfeff)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x3dfeff,!0x0);else{if(!this['_savedMetaData']['has'](_0x2e9171)){const _0x5394d9=this['_getPreviousFrom'](_0x2e9171);this['_calculateMetaData'](_0x5394d9,_0x2e9171,!0x1);}this['_calculateMetaData'](_0x2e9171,_0x3dfeff,!0x0);}return this['_lastFrom']=_0x2e9171,this['_lastTo']=_0x3dfeff,this['_getState']();}['loadState'](_0x5dbffc){this['_reset'](),this['_lastFrom']=_0x5dbffc['fromVersion'],this['_lastTo']=_0x5dbffc['toVersion'];for(const _0x5b06d8 in _0x5dbffc['diffData']){const _0x3d161d=_0x5dbffc['diffData'][_0x5b06d8]['attachChange'],_0x13858a=_0x54079b(_0x5dbffc['diffData'][_0x5b06d8]['attributesBefore'])||{},_0x5b2e7d=this['_makeModelFromViewString'](_0x5dbffc['diffData'][_0x5b06d8]['deletions']);_0x5b2e7d['rootName']=_0x5b06d8,_0x5b2e7d['_isAttached']=!_0x3d161d||!_0x3d161d['isAttached'],_0x5b2e7d['isAttached']=()=>_0x5b2e7d['_isAttached'],this['_baseRoots']['set'](_0x5b06d8,_0x5b2e7d),this['_baseRootsAttributes']['set'](_0x5b06d8,_0x13858a),_0x3d161d&&this['_touchedRoots']['set'](_0x5b06d8,_0x3d161d);const _0x2a8d5c=this['_makeIdsRoot'](_0x5b2e7d);this['_baseIdsRoots']['set'](_0x5b06d8,_0x2a8d5c);for(const [_0x56540d,_0x13a44b]of _0x5b2e7d['markers']){if(!_0x56540d['startsWith']('revision:'))continue;const _0xf1c3a4=_0x56540d['split'](':')[0x2];for(const _0x4678df of _0x13a44b['getWalker']({'singleCharacters':!0x0})){const _0xb070e6=this['_getVidAttributeName'](_0x4678df),_0x242de4='elementEnd'==_0x4678df['type']?_0x4678df['previousPosition']['path']['slice'](0x0,-0x1):_0x4678df['previousPosition']['path'],_0x5c7cde=_0x2a8d5c['getNodeByPath'](_0x242de4)['getAttribute'](_0xb070e6);this['_touched']['set'](_0x5c7cde,{'userId':_0xf1c3a4});}}}this['_startingRevisionId']=this['_revisionId'];const _0x242bbb=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x2fca0e=>!this['_touched']['has'](_0x2fca0e));let _0x3a9ec3=0x0;const _0x41546d=new Map();for(const _0x2105c7 in _0x5dbffc['diffData']){const _0x353acb=_0x5dbffc['diffData'][_0x2105c7]['attachChange'],_0x4abb93=_0x54079b(_0x5dbffc['diffData'][_0x2105c7]['attributesAfter'])||{},_0x1825a1=this['_makeModelFromViewString'](_0x5dbffc['diffData'][_0x2105c7]['insertions']);_0x1825a1['rootName']=_0x2105c7,_0x1825a1['_isAttached']=!_0x353acb||_0x353acb['isAttached'],_0x1825a1['isAttached']=()=>_0x1825a1['_isAttached'],this['_diffRoots']['set'](_0x2105c7,_0x1825a1),this['_diffRootsAttributes']['set'](_0x2105c7,_0x4abb93);const _0x515dfa=this['_makeIdsRoot'](_0x1825a1,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x2105c7,_0x515dfa),_0x41546d['set'](_0x2105c7,_0x1825a1['isAttached']()?_0x4abb93:{});for(const [_0x46edca,_0xb15dc4]of _0x1825a1['markers']){if(!_0x46edca['startsWith']('revision:'))continue;const _0x286386=_0x46edca['split'](':')[0x2];for(const _0x16d32b of _0xb15dc4['getWalker']({'singleCharacters':!0x0})){const _0x58296e=this['_getVidAttributeName'](_0x16d32b),_0xed5225=this['_revisionId']++,_0x1e4e8f='elementEnd'==_0x16d32b['type']?_0x16d32b['previousPosition']['path']['slice'](0x0,-0x1):_0x16d32b['previousPosition']['path'];_0x515dfa['getNodeByPath'](_0x1e4e8f)['_setAttribute'](_0x58296e,_0xed5225),this['_touched']['set'](_0xed5225,{'userId':_0x286386});}}for(const _0x243dd0 of this['editor']['model']['createRangeIn'](_0x1825a1)['getWalker']({'singleCharacters':!0x0})){const _0x4bba4e=this['_getVidAttributeName'](_0x243dd0),_0x451f4d='elementEnd'==_0x243dd0['type']?_0x243dd0['previousPosition']['path']['slice'](0x0,-0x1):_0x243dd0['previousPosition']['path'],_0x174bfc=_0x515dfa['getNodeByPath'](_0x451f4d);_0x174bfc['getAttribute'](_0x4bba4e)>0x0||_0x174bfc['_setAttribute'](_0x4bba4e,_0x242bbb[_0x3a9ec3++]);}for(const [_0x411e63,_0x259245]of _0x1825a1['markers'])_0x411e63['startsWith']('revision:')||this['_markers']['set'](_0x411e63,_0x259245);}const _0x2dff2a=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x2dff2a),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x2dff2a,0x1));const _0x5d68b3=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x5d68b3),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x5d68b3,0x1));const _0x3e72ad=Array['from'](this['_diffRoots'])['map'](([_0x50bf30,_0x45fa8f])=>[_0x50bf30,T(_0x45fa8f)]);this['_saveMetaData'](this['_lastTo'],_0x3e72ad,this['_markers'],_0x41546d);}['_makeModelFromViewString'](_0x2206ff){const _0x40c8a1=JSON['parse'](_0x2206ff),_0x292efa=this['editor']['editing']['view']['document'],_0x13489b=new _0x4daa75(_0x292efa,_0x40c8a1['map'](_0x1312d4=>P(_0x1312d4,this['editor'])));return this['editor']['data']['toModel'](_0x13489b);}['_saveMetaData'](_0x3c8d5f,_0x57bdfe,_0x29318c,_0x1c6c35){const _0x11f7b5=new Map(_0x57bdfe),_0x1e0fb1=new Map(_0x54079b(_0x1c6c35)),_0x54f5b9=new Map();for(const [_0x51f847,_0x15a0c7]of _0x29318c)_0x54f5b9['set'](_0x51f847,{'start':_0x15a0c7['start']['clone'](),'end':_0x15a0c7['end']['clone'](),'rootName':_0x15a0c7['root']['rootName']});this['_savedMetaData']['set'](_0x3c8d5f,{'roots':_0x11f7b5,'markers':_0x54f5b9,'rootsAttributes':_0x1e0fb1});}['_removeMetaData'](_0x385aba){this['_savedMetaData']['delete'](_0x385aba);}['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'](_0x10f30b,_0x3c4407=null){let _0x52651e=null;_0x10f30b['is']('documentFragment')||(_0x52651e=new ut(_0x10f30b['name'],{'vid_start':null===_0x3c4407?this['_revisionId']++:_0x3c4407++}));const _0x2b2479=[];for(const _0x39ec27 of _0x10f30b['getChildren']())if(_0x39ec27['is']('element')){_0x2b2479['push'](this['_makeIdsRoot'](_0x39ec27,_0x3c4407));const _0x42ebff=_0x2b2479[_0x2b2479['length']-0x1];null!==_0x3c4407&&(_0x3c4407=_0x42ebff['is']('element','$text')?_0x42ebff['getAttribute']('vid')+0x1:_0x42ebff['getAttribute']('vid_end')+0x1);}else{for(let _0x9a62f0=0x0;_0x9a62f0<_0x39ec27['offsetSize'];_0x9a62f0++)_0x2b2479['push'](new ut('$text',{'vid':null===_0x3c4407?this['_revisionId']++:_0x3c4407++}));}if(_0x10f30b['is']('documentFragment')){const _0x50512=F(_0x10f30b['rootName']);return _0x50512['_insertChild'](0x0,_0x2b2479),_0x50512;}return _0x52651e['_setAttribute']('vid_end',null===_0x3c4407?this['_revisionId']++:_0x3c4407++),_0x52651e['_insertChild'](0x0,_0x2b2479),_0x52651e;}['_calculateMetaData'](_0x24f79d,_0x44d8a7,_0x2f417b){this['_reset']();const {roots:_0x46de2a,markers:_0xc6c9ed,rootsAttributes:_0x414d52}=this['_savedMetaData']['get'](_0x24f79d);this['_baseRoots']=new Map(_0x46de2a),this['_baseRootsAttributes']=new Map(_0x54079b(_0x414d52));for(const [_0x507260,_0x3782b7]of this['_baseRoots'])if('$graveyard'!==_0x507260&&(this['_diffRoots']['set'](_0x507260,T(_0x3782b7)),this['_diffRootsAttributes']=new Map(_0x54079b(_0x414d52)),_0x2f417b)){const _0x5a9a84=this['_revisionId'];this['_idsRoots']['set'](_0x507260,this['_makeIdsRoot'](_0x3782b7)),this['_baseIdsRoots']['set'](_0x507260,this['_makeIdsRoot'](_0x3782b7,_0x5a9a84));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x2f417b&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x5b9f7d,_0x32da4f]of _0xc6c9ed){const _0x362df8=this['_baseRoots']['get'](_0x32da4f['rootName']),_0x19116b=this['_diffRoots']['get'](_0x32da4f['rootName']),_0x2227e1=new ft(this['_fixPosition'](_0x32da4f['start'],_0x362df8),this['_fixPosition'](_0x32da4f['end'],_0x362df8)),_0x300c5f=this['_fixRange'](_0x2227e1,_0x19116b);_0x362df8['markers']['set'](_0x5b9f7d,_0x2227e1),this['_markers']['set'](_0x5b9f7d,_0x300c5f);}this['_applyOperations'](_0x24f79d,_0x44d8a7,_0x2f417b);}['_applyOperations'](_0x1d65cc,_0x23df37,_0x278f7f){for(const _0x1e8060 of this['source']['getOperations'](_0x1d65cc,_0x23df37))this['_handleOperation'](_0x1e8060,_0x278f7f);for(const _0x33d028 of this['_diffRoots']['values']())_0x33d028['markers']['clear']();for(const [_0x14a20e,_0x42690a]of this['_markers']){this['_diffRoots']['get'](_0x42690a['root']['rootName'])['markers']['set'](_0x14a20e,_0x42690a['clone']());}const _0x2e2e8d=new Map(),_0x431826=new Map();for(const [_0x3d0fca,_0x26b132]of this['_diffRoots'])_0x2e2e8d['set'](_0x3d0fca,T(_0x26b132)),_0x431826['set'](_0x3d0fca,this['_diffRootsAttributes']['get'](_0x3d0fca));this['_saveMetaData'](_0x23df37,_0x2e2e8d,this['_markers'],_0x431826);}['_getPreviousFrom'](_0x5bb6f0){const _0x5f17ac=Array['from'](this['_savedMetaData']['keys']());_0x5f17ac['sort']((_0x48dcb2,_0x1ed137)=>_0x48dcb2-_0x1ed137),_0x5f17ac['reverse']();for(const _0x5c05bf of _0x5f17ac)if(_0x5c05bf<_0x5bb6f0)return _0x5c05bf;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x206058,_0x559961){const _0x51f434=Array['from'](_0x559961['markers'])['map'](([_0x291ede,_0x5aaccf])=>[_0x291ede,this['_fixRange'](_0x5aaccf,_0x206058)]);_0x206058['markers']=new Map(_0x51f434);}['_transformMarkers'](_0x436f36){for(const _0x3e58cd of this['_markers']['values']()){const _0x22abac=_0x3e58cd['getTransformedByOperation'](_0x436f36),_0x26e1a5=ft['_createFromRanges'](_0x22abac);_0x3e58cd['start']=_0x26e1a5['start'],_0x3e58cd['end']=_0x26e1a5['end'];}}['_handleOperation'](_0x50cbaf,_0x8f401a){if('addRoot'!=_0x50cbaf['type']&&'detachRoot'!=_0x50cbaf['type']){if('insert'==_0x50cbaf['type']){const _0x380ea2=_0x50cbaf['position']['root']['rootName'];this['_diffRoots']['has'](_0x380ea2)||(this['_diffRoots']['set'](_0x380ea2,F(_0x380ea2,!0x0)),this['_diffRootsAttributes']['set'](_0x380ea2,{}),_0x8f401a&&this['_idsRoots']['set'](_0x380ea2,F(_0x380ea2,!0x0)));}else{if('addRootAttribute'==_0x50cbaf['type']||'removeRootAttribute'==_0x50cbaf['type']||'changeRootAttribute'==_0x50cbaf['type'])return void this['_handleRootAttributeOperation'](_0x50cbaf);'marker'==_0x50cbaf['type']&&this['_handleMarkerOperation'](_0x50cbaf);}if('marker'!==_0x50cbaf['type']){const _0x573d07=this['_cloneOperation'](_0x50cbaf,this['_diffRoots']);_0x573d07['_execute'](),this['_transformMarkers'](_0x573d07);}if(_0x8f401a)switch(_0x50cbaf['type']){case'insert':this['_handleInsertOperation'](_0x50cbaf);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x50cbaf);break;case'merge':this['_handleMergeOperation'](_0x50cbaf);break;case'split':this['_handleSplitOperation'](_0x50cbaf);}}else this['_handleRootOperation'](_0x50cbaf,_0x8f401a);}['_cloneOperation'](_0xc83aeb,_0x41a62e){const _0x43b407=_0xc83aeb['clone']();return _0x43b407['_authorId']=_0xc83aeb['_authorId'],this['_fixOperation'](_0x43b407,_0x41a62e),_0x43b407;}['_getBaseVids'](_0x2eaa62){return _0x2eaa62['map'](_0x7dd8f9=>{const _0x396ed0=this['_getVidAttributeName'](_0x7dd8f9);return Number(_0x7dd8f9['item']['getAttribute'](_0x396ed0));});}['_generateTape'](_0x7e4a8a,_0x506706){if(_0x7e4a8a['is']('element','$text'))_0x506706['push']({'item':_0x7e4a8a,'type':'text'});else{_0x7e4a8a['is']('element')&&_0x506706['push']({'item':_0x7e4a8a,'type':'elementStart'});for(const _0x6ecd5b of _0x7e4a8a['getChildren']())this['_generateTape'](_0x6ecd5b,_0x506706);_0x7e4a8a['is']('element')&&_0x506706['push']({'item':_0x7e4a8a,'type':'elementEnd'});}return _0x506706;}['_getState'](){const _0xe6845=new Map(this['_touched']),_0x1c1ae4=new Map(_0xe6845),_0x393343=new Map(),_0x30f496={'insertions':{},'deletions':{}},_0x4cfa07={'insertions':{},'deletions':{}},_0x5ea98a=new Map(),_0x36097c=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x36097c['delete']('$graveyard');for(const _0x1f63f4 of _0x36097c){const _0x1fa884=this['_diffRoots']['get'](_0x1f63f4)||F(_0x1f63f4,!0x1),_0x59ff33=this['_baseRoots']['get'](_0x1f63f4)||F(_0x1f63f4,!0x1);_0x1fa884['isAttached']()||_0x59ff33['isAttached']()?(_0x30f496['insertions'][_0x1f63f4]=T(_0x1fa884),_0x30f496['deletions'][_0x1f63f4]=T(_0x59ff33),this['_copyMarkers'](_0x30f496['deletions'][_0x1f63f4],_0x59ff33),this['_copyMarkers'](_0x30f496['insertions'][_0x1f63f4],_0x1fa884),_0x4cfa07['insertions'][_0x1f63f4]=this['_generateTape'](this['_idsRoots']['get'](_0x1f63f4),[]),_0x4cfa07['deletions'][_0x1f63f4]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x1f63f4)||F(_0x1f63f4,!0x1),[])):_0x36097c['delete'](_0x1f63f4);}for(const _0x1f57ad of _0x36097c){const _0x26f654=_0x4cfa07['insertions'][_0x1f57ad];for(const _0x14e2f4 of _0x26f654){const _0x39e851=this['_getVidAttributeName'](_0x14e2f4),_0x279687=_0x14e2f4['item']['getAttribute'](_0x39e851);_0x1c1ae4['delete'](_0x279687),_0x279687>=this['_startingRevisionId']&&_0x393343['set'](_0x279687,_0xe6845['get'](_0x279687));}}for(const _0x676d14 of _0x36097c){const _0x25f43e=_0x4cfa07['insertions'][_0x676d14],_0xeb9493=this['_getBaseVids'](_0x4cfa07['deletions'][_0x676d14]);let _0x48586e=0x0;for(const _0x11d2ae of _0x25f43e){const _0x4a3ea1=this['_getVidAttributeName'](_0x11d2ae),_0x45fe3d=_0x11d2ae['item']['getAttribute'](_0x4a3ea1);if(!_0x393343['has'](_0x45fe3d)&&!_0x5ea98a['has'](_0x45fe3d)){if(_0x1c1ae4['has'](_0x45fe3d))_0x48586e++;else{if(_0x45fe3d!=_0xeb9493[_0x48586e]){const _0x461b74=_0xe6845['get'](_0x45fe3d)||_0xe6845['get'](_0xeb9493[_0x48586e]);for(;_0x45fe3d!=_0xeb9493[_0x48586e];)_0x1c1ae4['has'](_0xeb9493[_0x48586e])||(_0x5ea98a['set'](_0xeb9493[_0x48586e],_0x461b74),_0xe6845['set'](_0xeb9493[_0x48586e],_0x461b74)),_0x48586e++;}_0x48586e++;}}}}for(const _0x1f98c5 of _0x36097c){const _0x328fee=_0x4cfa07['insertions'][_0x1f98c5];for(const _0x2801e1 of _0x328fee){const _0x59401b=this['_getVidAttributeName'](_0x2801e1),_0x5113b1=_0x2801e1['item']['getAttribute'](_0x59401b);if(_0x5ea98a['has'](_0x5113b1)){const _0x3efc0f=_0x5ea98a['get'](_0x5113b1);_0x1c1ae4['has'](_0x5113b1)||_0x1c1ae4['set'](_0x5113b1,{..._0x3efc0f}),_0x393343['set'](_0x5113b1,{..._0x3efc0f});}}}for(const _0xed0f93 of _0x1c1ae4['keys']())_0xed0f93>=this['_startingRevisionId']&&_0x1c1ae4['delete'](_0xed0f93);const _0x1aed5d=new Map();for(const _0xa87b22 of _0x36097c){let _0xaba714=_0x4cfa07['insertions'][_0xa87b22];for(const _0x5831b4 of _0xaba714)if(_0x5831b4['item']['is']('element','tableCell')){const _0x3eaf73=this['_getVidAttributeName'](_0x5831b4),_0x3f8df9=_0x5831b4['item']['getAttribute'](_0x3eaf73);if(_0x393343['has'](_0x3f8df9)){const _0x3bd862=_0x5831b4['item']['parent']['parent']['getAttribute']('vid_start'),_0x3d0c1c=_0x1aed5d['get'](_0x3bd862)||new Set();_0x3d0c1c['add'](_0x393343['get'](_0x3f8df9)['userId']),_0x1aed5d['set'](_0x3bd862,_0x3d0c1c);}}_0xaba714=_0x4cfa07['deletions'][_0xa87b22];for(const _0x443480 of _0xaba714)if(_0x443480['item']['is']('element','tableCell')){const _0x21169a=this['_getVidAttributeName'](_0x443480),_0x368bb5=_0x443480['item']['getAttribute'](_0x21169a);if(_0x1c1ae4['has'](_0x368bb5)){const _0x5ebadd=_0x443480['item']['parent']['parent']['getAttribute']('vid_start'),_0x5bc7b9=_0x1aed5d['get'](_0x5ebadd)||new Set();_0x5bc7b9['add'](_0x1c1ae4['get'](_0x368bb5)['userId']),_0x1aed5d['set'](_0x5ebadd,_0x5bc7b9);}}for(const _0x2240a5 of _0x1aed5d['keys']())(_0x393343['has'](_0x2240a5)||_0x1c1ae4['has'](_0x2240a5))&&_0x1aed5d['delete'](_0x2240a5);}for(const _0x40eb9d of _0x36097c){const _0x2a1a9c=_0x4cfa07['insertions'][_0x40eb9d];let _0x5780b1=null,_0x1e358a=null;for(const _0x72547d of _0x2a1a9c){const _0x37a150=this['_getVidAttributeName'](_0x72547d),_0x29956e=_0x72547d['item']['getAttribute'](_0x37a150),_0x11dbff=_0x1aed5d['get'](_0x29956e);_0x11dbff&&'elementStart'==_0x72547d['type']&&(_0x5780b1=Array['from'](_0x11dbff)[0x0],_0x1e358a=_0x72547d['item']['getAttribute']('vid_end')),_0x5780b1&&(_0x1c1ae4['set'](_0x29956e,{'userId':_0x5780b1}),_0x393343['set'](_0x29956e,{'userId':_0x5780b1})),_0x29956e==_0x1e358a&&(_0x5780b1=null,_0x1e358a=null);}}const _0x5a35f6={},_0x6b3d75=new Set();for(const _0x1a01c1 of _0x36097c){const _0x27dd1b=_0x30f496['deletions'][_0x1a01c1],_0x6380f9=_0x30f496['insertions'][_0x1a01c1];for(const {userId:_0x3bf7a9}of this['_touchedMarkers']['values']())null!==_0x3bf7a9&&_0x6b3d75['add'](_0x3bf7a9);for(const {userId:_0x3d50b7}of this['_touchedRoots']['values']())null!==_0x3d50b7&&_0x6b3d75['add'](_0x3d50b7);this['_markChanges'](_0x6380f9,_0x4cfa07['insertions'][_0x1a01c1],_0x393343,'insertion',_0x6b3d75),this['_markChanges'](_0x27dd1b,_0x4cfa07['deletions'][_0x1a01c1],_0x1c1ae4,'deletion',_0x6b3d75),_0x5a35f6[_0x1a01c1]={'insertions':this['_prepareViewToSave'](_0x6380f9),'deletions':this['_prepareViewToSave'](_0x27dd1b),'attachChange':this['_touchedRoots']['get'](_0x1a01c1)||null,'attributesBefore':_0x54079b(this['_baseRootsAttributes']['get'](_0x1a01c1))||{},'attributesAfter':_0x54079b(this['_diffRootsAttributes']['get'](_0x1a01c1))};}return{'diffData':_0x5a35f6,'authorsIds':Array['from'](_0x6b3d75)};}['_processRootBeforeSave'](_0x484ed7){for(const [,_0x4310df]of _0x484ed7['markers']){const _0x2134ec=_0x4310df['start']['getAncestors']()['filter'](_0x2ef010=>'tableCell'==_0x2ef010['name']);for(const _0x6728be of _0x2134ec)0x1==_0x6728be['childCount']&&_0x6728be['getChild'](0x0)['is']('element','paragraph')&&_0x6728be['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x3852f9){this['_processRootBeforeSave'](_0x3852f9);const _0x50d0a4=this['editor']['data']['toView'](_0x3852f9,{}),_0x4eaa4c=Array['from'](_0x50d0a4['getChildren']())['map'](_0x4f03c3=>this['_getViewJson'](_0x4f03c3));return JSON['stringify'](_0x4eaa4c);}['_getViewJson'](_0x39e0c8){if(_0x39e0c8['is']('$text'))return _0x39e0c8['data'];{const _0x308181=_0x39e0c8;return{'type':Object['keys'](E)['find'](_0x50a07f=>_0x39e0c8 instanceof E[_0x50a07f]),'name':_0x308181['name'],'attributes':Array['from'](_0x308181['getAttributes']()),'children':Array['from'](_0x308181['getChildren']())['map'](_0x5707f5=>this['_getViewJson'](_0x5707f5))};}}['_markChanges'](_0x1849d6,_0xfb4da9,_0x3a96fa,_0x1fd432,_0x511296){let _0x5d5d8b=null,_0x1738ea=null,_0x424bf3=0x0;const _0x10fb8b=this['editor']['model'];for(let _0x5a1f7b=0x0;_0x5a1f7b<_0xfb4da9['length'];_0x5a1f7b++){const _0x2a0247=this['_getVidAttributeName'](_0xfb4da9[_0x5a1f7b]),_0x1b3fa6=_0xfb4da9[_0x5a1f7b]['item']['getAttribute'](_0x2a0247),_0x4e34d0=_0x3a96fa['get'](_0x1b3fa6),_0x55f670=_0x5a1f7b==_0xfb4da9['length']-0x1;(!_0x5d5d8b&&_0x4e34d0&&(_0x5d5d8b=_0x4e34d0,_0x1738ea=_0xfb4da9[_0x5a1f7b]),_0x5d5d8b&&(!_0x4e34d0||_0x4e34d0['userId']!=_0x5d5d8b['userId']))&&(_0xe9fe43(_0x4e34d0,B(_0x1738ea,_0x1849d6,_0x10fb8b),B(_0xfb4da9[_0x5a1f7b],_0x1849d6,_0x10fb8b)),_0x5d5d8b=_0x4e34d0||null,_0x1738ea=_0x4e34d0?_0xfb4da9[_0x5a1f7b]:null),_0x5d5d8b&&_0x55f670&&_0xe9fe43(_0x4e34d0,B(_0x1738ea,_0x1849d6,_0x10fb8b),J(_0xfb4da9[_0x5a1f7b],_0x1849d6,_0x10fb8b));}function _0xe9fe43(_0x3a67b4,_0xea48e0,_0x4fa038){const _0x2985a0=_0x5d5d8b['userId'],_0x1ec1b2='revision:'+_0x1fd432+':'+_0x2985a0+':'+_0x424bf3++,_0x1b233b=_0x10fb8b['createRange'](_0xea48e0,_0x4fa038);_0x1849d6['markers']['set'](_0x1ec1b2,_0x1b233b),null!==_0x2985a0&&_0x511296['add'](_0x2985a0);}}['_getVidAttributeName'](_0x2b2565){switch(_0x2b2565['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x525c1d,_0x3f210d){_0x525c1d['baseVersion']=null;for(const _0x266dea in _0x525c1d){const _0x2501ec=_0x525c1d[_0x266dea];if(_0x2501ec instanceof vt){const _0x3d4e31=_0x3f210d['get'](_0x2501ec['root']['rootName']);_0x525c1d[_0x266dea]=this['_fixPosition'](_0x2501ec,_0x3d4e31);}if(_0x2501ec instanceof ft){const _0x25f925=_0x3f210d['get'](_0x2501ec['root']['rootName']);_0x525c1d[_0x266dea]=this['_fixRange'](_0x2501ec,_0x25f925);}'root'===_0x266dea&&(_0x525c1d['root']=_0x3f210d['get'](_0x525c1d['root']['rootName']));}}['_fixRange'](_0x42ce36,_0x3a569d){return this['editor']['model']['createRange'](this['_fixPosition'](_0x42ce36['start'],_0x3a569d),this['_fixPosition'](_0x42ce36['end'],_0x3a569d));}['_fixPosition'](_0x1b140e,_0x3f28d9){return this['editor']['model']['createPositionFromPath'](_0x3f28d9,_0x1b140e['path'],_0x1b140e['stickiness']);}['_handleInsertOperation'](_0x4e491c){const _0x199882=this['_idsRoots']['get'](_0x4e491c['position']['root']['rootName']),_0x3399b3=this['_fixPosition'](_0x4e491c['position'],_0x199882),_0x5e2ad3=null===_0x4e491c['_authorId']?null:_0x4e491c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x123946=_0x3399b3['parent'],_0x2ca43b=this['_revisionId'],_0x23009f=[];for(const _0x4fd7de of _0x4e491c['nodes'])if(_0x4fd7de['is']('element'))_0x23009f['push'](this['_makeIdsRoot'](_0x4fd7de));else{for(let _0x589b54=0x0;_0x589b54<_0x4fd7de['offsetSize'];_0x589b54++)_0x23009f['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x55cf91=this['_revisionId'];for(let _0x27fb59=_0x2ca43b;_0x27fb59<_0x55cf91;_0x27fb59++)this['_touched']['set'](_0x27fb59,{'userId':_0x5e2ad3});_0x123946['_insertChild'](_0x3399b3['offset'],_0x23009f);}['_handleMoveOperation'](_0x39d201){(_0x39d201=this['_cloneOperation'](_0x39d201,this['_idsRoots']))['_execute']();const _0x565ee3=null===_0x39d201['_authorId']?null:_0x39d201['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x30529e=_0x39d201['getMovedRangeStart'](),_0x4f16f5=_0x30529e['parent'],_0x174d3d=_0x30529e['offset'];!function _0x249146(_0x1667d1,_0x577395,_0x13c55a,_0x5e34ae){for(let _0x5e26c0=_0x13c55a;_0x5e26c0<_0x5e34ae;_0x5e26c0++){const _0x36a5b0=_0x577395['getChild'](_0x5e26c0);_0x36a5b0['is']('element','$text')?_0x1667d1['set'](_0x36a5b0['getAttribute']('vid'),{'userId':_0x565ee3}):(_0x1667d1['set'](_0x36a5b0['getAttribute']('vid_start'),{'userId':_0x565ee3}),_0x249146(_0x1667d1,_0x36a5b0,0x0,_0x36a5b0['childCount']),_0x1667d1['set'](_0x36a5b0['getAttribute']('vid_end'),{'userId':_0x565ee3}));}}(this['_touched'],_0x4f16f5,_0x174d3d,_0x174d3d+_0x39d201['howMany']);}['_handleMergeOperation'](_0x4f9dea){const _0x5b8366=null===(_0x4f9dea=this['_cloneOperation'](_0x4f9dea,this['_idsRoots']))['_authorId']?null:_0x4f9dea['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2c39a1=_0x4f9dea['targetPosition']['parent'],_0x5c41d1=_0x4f9dea['sourcePosition']['parent'],_0x1a82d0=_0x2c39a1['getAttribute']('vid_end'),_0x46fc09=_0x5c41d1['getAttribute']('vid_start');_0x2c39a1['_setAttribute']('vid_end',_0x5c41d1['getAttribute']('vid_end')),_0x5c41d1['_setAttribute']('vid_end',_0x1a82d0),this['_touched']['set'](_0x46fc09,{'userId':_0x5b8366}),this['_touched']['set'](_0x1a82d0,{'userId':_0x5b8366}),_0x4f9dea['_execute']();}['_handleSplitOperation'](_0x21591f){const _0x265f02=null===(_0x21591f=this['_cloneOperation'](_0x21591f,this['_idsRoots']))['_authorId']?null:_0x21591f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2388a8=_0x21591f['graveyardPosition'],_0x977dd=_0x21591f['splitPosition']['parent'];_0x21591f['_execute']();const _0x2c7a41=_0x977dd['getAttribute']('vid_end'),_0x2336f0=_0x21591f['insertionPosition']['nodeAfter'];if(_0x2388a8){const _0x447c18=_0x2336f0['getAttribute']('vid_end'),_0x2fa3ab=_0x977dd['getAttribute']('vid_end');_0x977dd['_setAttribute']('vid_end',_0x447c18),_0x2336f0['_setAttribute']('vid_end',_0x2fa3ab),this['_touched']['set'](_0x977dd['getAttribute']('vid_end'),{'userId':_0x265f02}),this['_touched']['set'](_0x2336f0['getAttribute']('vid_start'),{'userId':_0x265f02});}else{const _0x471494=this['_revisionId']++,_0x36ca75=this['_revisionId']++;_0x977dd['_setAttribute']('vid_end',_0x471494),_0x2336f0['_setAttribute']('vid_start',_0x36ca75),_0x2336f0['_setAttribute']('vid_end',_0x2c7a41),this['_touched']['set'](_0x471494,{'userId':_0x265f02}),this['_touched']['set'](_0x36ca75,{'userId':_0x265f02});}}['_handleMarkerOperation'](_0x105221){if(!_0x105221['affectsData'])return;const _0x1fccd0=(_0x105221=this['_cloneOperation'](_0x105221,this['_diffRoots']))['oldRange']?_0x105221['oldRange']['root']:null,_0x168d45=_0x105221['newRange']?_0x105221['newRange']['root']:null;_0x1fccd0&&this['_markers']['delete'](_0x105221['name']),_0x168d45&&this['_markers']['set'](_0x105221['name'],_0x105221['newRange']['clone']());const _0x1e5314=null===_0x105221['_authorId']?null:_0x105221['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3a39bd=_0x105221['name'];if(!this['_touchedMarkers']['has'](_0x3a39bd))return void this['_touchedMarkers']['set'](_0x3a39bd,{'range':_0x105221['oldRange'],'userId':_0x1e5314});const _0x5a469e=this['_touchedMarkers']['get'](_0x3a39bd),_0x54a4bc=_0x5a469e['range'],_0x5ee85f=_0x105221['newRange'];null==_0x54a4bc&&null==_0x5ee85f||_0x54a4bc&&_0x5ee85f&&_0x54a4bc['isEqual'](_0x5ee85f)?this['_touchedMarkers']['delete'](_0x105221['name']):_0x5a469e['userId']=_0x1e5314;}['_handleRootOperation'](_0x3aa656,_0x550ee9){this['_diffRoots']['has'](_0x3aa656['rootName'])?this['_diffRoots']['get'](_0x3aa656['rootName'])['_isAttached']=_0x3aa656['isAdd']:(this['_diffRoots']['set'](_0x3aa656['rootName'],F(_0x3aa656['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x3aa656['rootName'],{}),_0x550ee9&&this['_idsRoots']['set'](_0x3aa656['rootName'],F(_0x3aa656['rootName'],!0x0)));const _0x5b5b03=null===_0x3aa656['_authorId']?null:_0x3aa656['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1a2a90=this['_touchedRoots']['get'](_0x3aa656['rootName']);_0x1a2a90&&_0x1a2a90['userId']===_0x5b5b03?this['_touchedRoots']['delete'](_0x3aa656['rootName']):this['_touchedRoots']['set'](_0x3aa656['rootName'],{'userId':_0x5b5b03,'isAttached':_0x3aa656['isAdd']});}['_handleRootAttributeOperation'](_0x779975){const _0x4581d7=this['_diffRootsAttributes']['get'](_0x779975['root']['rootName']);null===_0x779975['newValue']?delete _0x4581d7[_0x779975['key']]:_0x4581d7[_0x779975['key']]=_0x779975['newValue'];}}function T(_0x2b4bcc){const _0x1b6756=F(_0x2b4bcc['rootName'],_0x2b4bcc['isAttached']());for(const _0x3a6ece of _0x2b4bcc['getChildren']()){const _0x19bb2f=_0x3a6ece['_clone'](!0x0);_0x1b6756['_appendChild'](_0x19bb2f);}return _0x1b6756;}function F(_0x529a72,_0x568d39=!0x0){const _0x2cf69b=new gt();return _0x2cf69b['rootName']=_0x529a72,_0x2cf69b['_isAttached']=_0x568d39,_0x2cf69b['isAttached']=()=>_0x2cf69b['_isAttached'],_0x2cf69b;}function B(_0x161dad,_0x316436,_0x4e1c9b){const _0x49cb5a='elementEnd'==_0x161dad['type']?_0x4e1c9b['createPositionAt'](_0x161dad['item'],'end'):_0x4e1c9b['createPositionBefore'](_0x161dad['item']);return _0x4e1c9b['createPositionFromPath'](_0x316436,_0x49cb5a['path'],_0x49cb5a['stickiness']);}function J(_0x5011df,_0x1fdabb,_0x249a1f){const _0x4a0fdb='elementStart'==_0x5011df['type']?_0x249a1f['createPositionAt'](_0x5011df['item'],0x0):_0x249a1f['createPositionAfter'](_0x5011df['item']);return _0x249a1f['createPositionFromPath'](_0x1fdabb,_0x4a0fdb['path'],_0x4a0fdb['stickiness']);}class os extends _0x3438c0{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x1c43b1,_0x28d52a){super(_0x1c43b1),this['focusTracker']=new _0x30fc5d(),this['keystrokes']=new _0xe432c2(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x28d52a),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'](),_0x124a44({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x4340eb=_0x3350c3=>_0x3350c3['stopPropagation']();this['keystrokes']['set']('arrowright',_0x4340eb),this['keystrokes']['set']('arrowleft',_0x4340eb),this['keystrokes']['set']('arrowup',_0x4340eb),this['keystrokes']['set']('arrowdown',_0x4340eb);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0xe6e8d9){this['revisionNameInputView']['fieldView']['element']['value']=_0xe6e8d9['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x28213d){const _0xb3b20e=new at(this['locale'],ti),_0x3126c7=_0xb3b20e['fieldView'];_0x3126c7['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x1b97c8=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x28213d&&(_0x1b97c8+='\x20('+m(this['locale'],'optional')+')'),(_0xb3b20e['label']=_0x1b97c8,_0x3126c7['on']('input',()=>{this['revisionNameInputValue']=_0x3126c7['element']['value']['trim']();}),_0xb3b20e);}}class f extends _0x19eb44{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x2d6990=this['editor'],_0x4657db=_0x2d6990['plugins']['get']('RevisionTracker');_0x2d6990['ui']['componentFactory']['add']('revisionHistory',_0x4f34cc=>{const _0xddc4f8=_0x36390b(_0x4f34cc),_0x3bc9a4=_0xddc4f8['panelView']['children'],_0x531e77=new _0x3e0030(_0x4f34cc),_0x5e8190=new te(_0x4f34cc),_0xf4da54=new _0x1cfe19(_0x4f34cc),_0x5a0691=new te(_0x4f34cc),_0x4813e4=new _0x1cfe19(_0x4f34cc);return _0xddc4f8['bind']('isEnabled')['to'](_0x4657db,'isReady',_0x4657db,'isEnabled',_0x2d6990,'isReadOnly',(_0x1d7301,_0x2afc3b,_0x419d12)=>_0x1d7301&&_0x2afc3b&&!_0x419d12),_0xddc4f8['buttonView']['set']({'icon':_0x533e5c,'label':m(_0x4f34cc,'Revision\x20history'),'tooltip':!0x0}),_0xf4da54['set']({'label':m(_0x4f34cc,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0xf4da54['bind']('isEnabled')['to'](_0x4657db,'isReady',_0x4657db,'isEnabled',_0x2d6990,'isReadOnly',(_0x3386f6,_0x484c41,_0x1b10a7)=>_0x3386f6&&_0x484c41&&!_0x1b10a7),_0xf4da54['on']('execute',()=>this['_showDialog']()),_0x4813e4['set']({'label':m(_0x4f34cc,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x4813e4['bind']('isEnabled')['to'](_0x4657db,'isReady',_0x2d6990,'isReadOnly',(_0x3ff84a,_0x1744d5)=>_0x3ff84a&&!_0x1744d5),_0x4813e4['on']('execute',()=>{_0x2d6990['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0xddc4f8['isOpen']=!0x1,_0x2d6990['editing']['view']['focus']();}),_0x5e8190['children']['add'](_0xf4da54),_0x5a0691['children']['add'](_0x4813e4),_0x531e77['role']='menu',_0x531e77['items']['addMany']([_0x5e8190,_0x5a0691]),_0x3bc9a4['add'](_0x531e77),_0xddc4f8;}),_0x2d6990['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x497c22=this['editor'],_0xebe45f=_0x497c22['locale'],_0x12d441=new _0x272de6(_0xebe45f),_0x277368=new _0x3b9875(_0xebe45f);_0x12d441['buttonView']['set']({'icon':_0x533e5c,'label':m(_0xebe45f,'Revision\x20history')});const _0x2b9da3=new _0x3168a2(_0xebe45f,_0x12d441),_0x27ef21=new _0x3b5cb8(_0xebe45f);_0x27ef21['set']({'label':m(_0xebe45f,'Save\x20current\x20revision')}),_0x27ef21['delegate']('execute')['to'](_0x12d441),_0x27ef21['on']('execute',()=>{this['_showDialog']();}),_0x2b9da3['children']['add'](_0x27ef21),_0x277368['items']['add'](_0x2b9da3);const _0x18cd23=new _0x3168a2(_0xebe45f,_0x12d441),_0x2d386e=new _0x3b5cb8(_0xebe45f);return _0x2d386e['set']({'label':m(_0xebe45f,'Open\x20revision\x20history')}),_0x2d386e['delegate']('execute')['to'](_0x12d441),_0x2d386e['on']('execute',()=>{_0x497c22['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x18cd23['children']['add'](_0x2d386e),_0x277368['items']['add'](_0x18cd23),_0x12d441['panelView']['children']['add'](_0x277368),_0x12d441;}['_showDialog'](){const _0x4108d8=this['editor'],_0x244e97=_0x4108d8['locale'],_0x4a6ec1=_0x4108d8['plugins']['get']('Dialog'),_0x4a0eaf=_0x4108d8['plugins']['get']('RevisionTracker');function _0x336470(_0x2dbe81){_0x4108d8['config']['get']('revisionHistory.requireRevisionName')&&''===_0x2dbe81['revisionName']?_0x2dbe81['revisionNameInputView']['errorText']=m(_0x244e97,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x4108d8['plugins']['get'](u)['saveRevision']({'name':_0x2dbe81['revisionName']}),_0x4a6ec1['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x336470(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x4a6ec1['show']({'id':'revisionSave','title':m(_0x244e97,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x4108d8['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x4a6ec1['hide']()},{'label':m(_0x4108d8['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x15a8d2){_0x15a8d2['bind']('isEnabled')['to'](_0x4a0eaf,'isReady',_0x4a0eaf,'isEnabled',_0x4108d8,'isReadOnly',(_0x52de6a,_0xd93c06,_0x27be5d)=>_0x52de6a&&_0xd93c06&&!_0x27be5d);},'onExecute':()=>_0x336470(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x48bd0e=this['editor'],_0x47e959=_0x48bd0e['locale'];this['_saveRevisionFormView']=new os(_0x47e959,_0x48bd0e['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0x3438c0{['changeId'];['_model'];constructor(_0x10cfcd,_0x181299){super(_0x10cfcd),this['_model']=_0x181299,this['changeId']=_0x181299['id'];const _0x38a43f=this['bindTemplate'],_0x5adad2=m(_0x10cfcd,_0x181299['data']['isSuggestion']?'Suggested\x20by':'add'==_0x181299['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x181299['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x38a43f['to']('type',_0x27e029=>'ck-revision-change__'+_0x27e029)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x5adad2}]},{'text':'\x20'+_0x181299['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x3ddaf9(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x3e8ce6){super(),this['id']=_0x3e8ce6['id']||_0x2d3c1e(),this['author']=_0x3e8ce6['author'],this['type']=_0x3e8ce6['type'],this['data']=_0x3e8ce6['data']||{},this['rootName']=_0x3e8ce6['rootName'],this['set']('createdAt',_0x3e8ce6['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(_0x5cbd8a,_0x7d7505){this['newRevisionId']=_0x5cbd8a,this['oldRevisionId']=_0x7d7505,this['changes']=new _0x1caf96();}['_setChanges'](_0x5dfc8f){for(const _0x4bb848 of _0x5dfc8f)this['changes']['add'](_0x4bb848);}}const Y={'c':_0x4b52e0,'a':_0x34b3a3,'e':_0xc09e33,'r':_0x2e2456,'u':_0x26460a};class d extends _0x19eb44{['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[_0xb8447b,_0x5cf708,j];}constructor(_0x47de53){super(_0x47de53),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',(_0x155ef3,_0x7b77dd,_0x4bd53f)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x317d36=>{for(const _0x12edcd of this['editor']['editing']['view']['document']['roots'])_0x4bd53f?_0x317d36['removeClass']('ck-editor__editable__overlay',_0x12edcd):_0x317d36['addClass']('ck-editor__editable__overlay',_0x12edcd);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0xebb08c=>null!==_0xebb08c),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x2fc123,_0x5a836c,_0x18c5e5)=>_0x2fc123&&_0x18c5e5?_0x5a836c['changes']['getIndex'](_0x18c5e5):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x2f0b7a,_0x8ee546)=>_0x2f0b7a?_0x8ee546['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x5cf708);}['init'](){const _0x53dc0b=this['editor'],_0x351e0e=new yt(_0x53dc0b,{'direction':'backward'}),_0x5e42c7=new yt(_0x53dc0b,{'direction':'forward'});(_0x53dc0b['commands']['add']('showPreviousChange',_0x351e0e),_0x53dc0b['commands']['add']('showNextChange',_0x5e42c7),_0x53dc0b['commands']['add']('restoreRevision',new _t(_0x53dc0b)),this['on']('change:numberOfChanges',()=>{_0x351e0e['refresh'](),_0x5e42c7['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x53dc0b['enableReadOnlyMode']('revision-viewer'),_0x53dc0b['plugins']['has']('WidgetToolbarRepository'))&&_0x53dc0b['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x1a806f){await this['loadRevisionData'](_0x1a806f);const _0xc123f={};for(const _0x4a04e4 in _0x1a806f['diffData']){if(_0x1a806f['diffData'][_0x4a04e4]['attachChange']&&!_0x1a806f['diffData'][_0x4a04e4]['attachChange']['isAttached'])continue;const _0x157c1f=this['_removeRevisionMarkers'](JSON['parse'](_0x1a806f['diffData'][_0x4a04e4]['insertions'])),_0x1e0fc4=this['editor']['editing']['view']['document'],_0x30ba39=new _0x4daa75(_0x1e0fc4,_0x157c1f['map'](_0x337ec7=>this['_getViewObj'](_0x337ec7)));this['editor']['data']['processor']['useFillerType']('marked'),_0xc123f[_0x4a04e4]=this['editor']['data']['processor']['toData'](_0x30ba39),this['editor']['data']['processor']['useFillerType']('default');}return _0xc123f;}async['getRevisionRootsAttributes'](_0x4553a3){await this['loadRevisionData'](_0x4553a3);const _0x1ae6b8={};for(const _0x28f70e in _0x4553a3['diffData'])_0x4553a3['diffData'][_0x28f70e]['attachChange']&&!_0x4553a3['diffData'][_0x28f70e]['attachChange']['isAttached']||(_0x1ae6b8[_0x28f70e]=_0x4553a3['diffData'][_0x28f70e]['attributesAfter']||{});return _0x1ae6b8;}['_removeRevisionMarkers'](_0x207eab){return(_0x207eab=_0x207eab['filter'](_0x4be46f=>!_0x4be46f['name']||'revision-start'!==_0x4be46f['name']&&'revision-end'!==_0x4be46f['name']))['forEach'](_0x4d73a9=>{'string'!=typeof _0x4d73a9&&(_0x4d73a9['children']=this['_removeRevisionMarkers'](_0x4d73a9['children']),_0x4d73a9['attributes']=_0x4d73a9['attributes']['filter'](_0x20ecea=>!_0x20ecea[0x0]['startsWith']('data-revision-')));}),_0x207eab;}async['compare'](_0x292b9b,_0x206dc6,_0x7643e8=!0x1){if(!this['isEnabled'])return;const _0x11ae31=this['diff'],_0x2c040b=this['repository'],_0x162323='string'==typeof _0x292b9b?_0x2c040b['getRevision'](_0x292b9b):_0x292b9b,_0x59f2bb='string'==typeof _0x206dc6?_0x2c040b['getRevision'](_0x206dc6):_0x206dc6,_0x5b90b3=_0x162323['id'],_0x562721=_0x59f2bb?_0x59f2bb['id']:null;if(!_0x7643e8&&this['diff']&&this['diff']['newRevisionId']===_0x5b90b3&&this['diff']['oldRevisionId']===_0x562721)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x5b90b3,_0x562721);const _0x3604d4=this['_getRevisionsRange'](_0x162323,_0x59f2bb,!0x0)['map'](_0x1279df=>this['loadRevisionData'](_0x1279df));return _0x3604d4['push'](new Promise(_0x37f40f=>{setTimeout(_0x37f40f,0x14);})),Promise['all'](_0x3604d4)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x3d18ad=this['_getDiff'](_0x5b90b3,_0x562721);for(const _0x2cbe53 of _0x3d18ad['changes'])this['_changeIdToChange']['set'](_0x2cbe53['id'],_0x2cbe53);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x3a4a48=>{for(const _0xe6f4f1 of this['editor']['model']['document']['getRootNames']())_0x3a4a48['detachRoot'](_0xe6f4f1);for(const _0x4932bc of Object['keys'](_0x3d18ad['model'])){const _0x3f30d1=_0x3a4a48['addRoot'](_0x4932bc);for(const _0x5c317d of Object['keys'](_0x3d18ad['attributes'][_0x4932bc]))_0x3a4a48['setAttribute'](_0x5c317d,_0x3d18ad['attributes'][_0x4932bc][_0x5c317d],_0x3f30d1);_0x3a4a48['insert'](_0x3d18ad['model'][_0x4932bc],_0x3f30d1,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x3d18ad['changes'])),this['isReady']=!0x0;})['catch'](_0x2d847a=>{console['error'](_0x2d847a),this['_cleanUp'](),_0x11ae31&&(this['diff']=_0x11ae31),this['isReady']=!0x0;});}['addRevisionData'](_0x47ab29,_0xa62c8){const _0x5c8326=this['repository']['createRevision'](_0x47ab29);return _0x5c8326['on']('_update',(_0x3ecfb5,_0x3bd549,_0x2d10e9)=>_0xa62c8(_0x3bd549,_0x2d10e9,_0x5c8326)),this['repository']['addRevision'](_0x5c8326),_0x5c8326;}['loadRevisionData'](_0x58d9d7){if(!_0x58d9d7||_0x58d9d7['diffData'])return Promise['resolve']();{const _0xdd7be0=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0xdd7be0,'revisionId':_0x58d9d7['id']})['then'](_0xcd6f3a=>{_0x58d9d7['_update']({'diffData':_0xcd6f3a['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},_0x1483d2=>{for(const _0x5945da of this['editor']['model']['document']['getRootNames']())_0x1483d2['detachRoot'](_0x5945da);});}['_sortAndFilterDiffChanges'](_0x566215){const _0x1b3dcd=[],_0x3336c1=new Map();for(const _0x13ae38 of this['editor']['model']['document']['getRootNames']()){const _0xdabcad=this['editor']['editing']['view']['getDomRoot'](_0x13ae38);if(!_0xdabcad)continue;const _0x1e8dd1=_0xdabcad['getClientRects']()['item'](0x0);_0x1e8dd1&&(_0x1b3dcd['push'](_0x13ae38),_0x3336c1['set'](_0x13ae38,_0x1e8dd1));}return _0x1b3dcd['sort']((_0x57c5b7,_0x2c78ee)=>{const _0x4be700=_0x3336c1['get'](_0x57c5b7),_0x58591c=_0x3336c1['get'](_0x2c78ee);return _0x4be700['y']-_0x58591c['y']||_0x4be700['x']-_0x58591c['x'];}),(_0x566215=_0x566215['filter'](_0x2522df=>_0x1b3dcd['includes'](_0x2522df['rootName'])))['sort']((_0x564f30,_0x2a5139)=>_0x1b3dcd['indexOf'](_0x564f30['rootName'])-_0x1b3dcd['indexOf'](_0x2a5139['rootName'])),_0x566215;}['_makeTape'](_0x26dd81){const _0x117ebe=Array['from'](_0x26dd81['markers'])['filter'](([_0x39b183,_0x22bd3f])=>_0x39b183['startsWith']('revision:')&&!_0x22bd3f['isCollapsed']),_0x192860=Array['from'](this['editor']['model']['createRangeIn'](_0x26dd81)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x117ebe['length'])for(const _0x1c27e6 of _0x192860){const [_0x5e6750,_0x314528]=_0x117ebe[0x0],[,_0x454b1b,_0xf23dd8]=_0x5e6750['split'](':');if(_0x314528['end']['isEqual'](_0x1c27e6['nextPosition'])&&_0x117ebe['shift'](),(_0x1c27e6['previousPosition']['isEqual'](_0x314528['start'])||_0x1c27e6['previousPosition']['isAfter'](_0x314528['start']))&&('insertion'==_0x454b1b?_0x1c27e6['isAdded']={'userId':_0xf23dd8}:'deletion'==_0x454b1b&&(_0x1c27e6['isRemoved']={'userId':_0xf23dd8})),0x0==_0x117ebe['length'])break;}return _0x192860;}['_refreshStartEndIndex'](_0x330648){const _0x2a1852=new Map();for(let _0x4b88d8=0x0;_0x4b88d8<_0x330648['length'];_0x4b88d8++)'text'===_0x330648[_0x4b88d8]['type']?(_0x330648[_0x4b88d8]['item']['startIndex']=_0x4b88d8,_0x330648[_0x4b88d8]['item']['endIndex']=_0x4b88d8):('elementStart'===_0x330648[_0x4b88d8]['type']?_0x330648[_0x4b88d8]['item']['startIndex']=_0x4b88d8:'elementEnd'===_0x330648[_0x4b88d8]['type']&&(_0x330648[_0x4b88d8]['item']['endIndex']=_0x4b88d8),_0x2a1852['set'](_0x330648[_0x4b88d8]['id'],_0x4b88d8));for(const _0x26ed61 of _0x2a1852['values']())'elementStart'===_0x330648[_0x26ed61]['type']?_0x330648[_0x26ed61]['item']['endIndex']=_0x2a1852['get'](_0x330648[_0x26ed61]['pairId']):'elementEnd'===_0x330648[_0x26ed61]['type']&&(_0x330648[_0x26ed61]['item']['startIndex']=_0x2a1852['get'](_0x330648[_0x26ed61]['pairId']));}['_processTape'](_0x2d09e5){for(let _0x5bc620=0x0;_0x5bc620<_0x2d09e5['length'];_0x5bc620++){if('elementStart'===_0x2d09e5[_0x5bc620]['type'])_0x2d09e5[_0x5bc620]['item']['startIndex']=_0x5bc620;else{if('elementEnd'===_0x2d09e5[_0x5bc620]['type']){_0x2d09e5[_0x5bc620]['item']['endIndex']=_0x5bc620;const _0x2c89ea=_0x2d09e5[_0x5bc620]['item']['startIndex'];_0x2d09e5[_0x2c89ea]['pairId']=_0x2d09e5[_0x5bc620]['id'],_0x2d09e5[_0x5bc620]['pairId']=_0x2d09e5[_0x2c89ea]['id'];}else _0x2d09e5[_0x5bc620]['item']['startIndex']=_0x5bc620,_0x2d09e5[_0x5bc620]['item']['endIndex']=_0x5bc620,_0x2d09e5[_0x5bc620]['pairId']=null;}_0x2d09e5[_0x5bc620]['markersStart']||(_0x2d09e5[_0x5bc620]['markersStart']=[],_0x2d09e5[_0x5bc620]['markersEnd']=[]);}}['_markInsertions'](_0x5d4464,_0x34bc1c){const _0x469370=_0x5d4464['filter'](_0x384441=>!_0x384441['isAdded']);for(let _0x2e8db5=0x0;_0x2e8db5<_0x34bc1c['length'];_0x2e8db5++)_0x34bc1c[_0x2e8db5]['isAdded']&&(_0x469370[_0x2e8db5]['isAdded']=_0x34bc1c[_0x2e8db5]['isAdded']);}['_makeModelFromViewString'](_0x45104){const _0x54818c=JSON['parse'](_0x45104),_0x401e82=this['editor']['editing']['view']['document'],_0x4a3865=new _0x4daa75(_0x401e82,_0x54818c['map'](_0x404c66=>this['_getViewObj'](_0x404c66)));return this['editor']['data']['toModel'](_0x4a3865);}['_getViewObj'](_0x5a0a45){const _0x5c9d74=this['editor']['editing']['view']['document'];if('string'==typeof _0x5a0a45)return new _0x14d4f7(_0x5c9d74,_0x5a0a45);{const _0x4958e4=_0x5a0a45['children']['map'](_0x1aa821=>this['_getViewObj'](_0x1aa821));return new(Y[_0x5a0a45['type']]||_0x473b22)(_0x5c9d74,_0x5a0a45['name'],_0x5a0a45['attributes'],_0x4958e4);}}['_getDiff'](_0x79bb87,_0x10f478=null){const _0x50b23f=this['repository']['getRevision'](_0x79bb87),_0x58da50=_0x10f478?this['repository']['getRevision'](_0x10f478):null,_0x50da7d=this['_getRevisionsRange'](_0x50b23f,_0x58da50),_0x1b8bc9=_0x50da7d[_0x50da7d['length']-0x1],_0x2ed243=new Map(),_0xf40c30={'model':{},'attributes':{},'changes':[]},_0x3071e1=new Set(),_0xf330ee=new Map();for(let _0x248490=_0x50da7d['length']-0x1;_0x248490>=0x0;_0x248490--){const _0x1f7ef8=_0x50da7d[_0x248490];for(const _0x2821c2 of Object['keys'](_0x1f7ef8['diffData']))if(_0x1f7ef8['diffData'][_0x2821c2]['attachChange']){const _0x7825f9=_0x1f7ef8['diffData'][_0x2821c2]['attachChange'];_0x7825f9['isAttached']?(_0x3071e1['add'](_0x2821c2),_0xf330ee['has'](_0x2821c2)&&_0xf330ee['get'](_0x2821c2)['userId']==_0x7825f9['userId']?_0xf330ee['delete'](_0x2821c2):_0xf330ee['set'](_0x2821c2,_0x7825f9)):_0xf330ee['has'](_0x2821c2)?(_0x3071e1['delete'](_0x2821c2),_0xf330ee['delete'](_0x2821c2)):(_0x3071e1['add'](_0x2821c2),_0xf330ee['set'](_0x2821c2,_0x7825f9));}else _0x3071e1['add'](_0x2821c2);}for(const _0x4c9338 of _0x3071e1){const _0x2d2edb=_0xf330ee['has'](_0x4c9338)&&!_0xf330ee['get'](_0x4c9338)['isAttached'];let _0x5d2b7c=_0x2d2edb?_0x50da7d['length']-0x1:0x0;const _0x1724aa=_0x2d2edb?-0x1:0x1;for(;_0x50da7d[_0x5d2b7c];){const _0x206e12=_0x50da7d[_0x5d2b7c];if(_0x206e12['diffData'][_0x4c9338]){const _0x1ce25c=_0x2d2edb?_0x206e12['diffData'][_0x4c9338]['attributesBefore']:_0x206e12['diffData'][_0x4c9338]['attributesAfter'];_0xf40c30['attributes'][_0x4c9338]=_0x1ce25c?_0x54079b(_0x1ce25c):{};break;}_0x5d2b7c+=_0x1724aa;}}for(const _0x53b1d7 of _0x50da7d){_0x53b1d7['model']={};for(const _0x2c919f of _0x53b1d7['authors'])_0x2ed243['set'](_0x2c919f['id'],_0x2c919f);for(const _0x3edf4b of _0x3071e1){const _0x277f6f=_0x53b1d7['diffData'][_0x3edf4b]?_0x53b1d7['diffData'][_0x3edf4b]['insertions']:'[]',_0x271cea=_0x53b1d7['diffData'][_0x3edf4b]?_0x53b1d7['diffData'][_0x3edf4b]['deletions']:'[]';_0x53b1d7['model'][_0x3edf4b]={'insertions':this['_makeModelFromViewString'](_0x277f6f),'deletions':this['_makeModelFromViewString'](_0x271cea)};}}for(const _0x23abee of _0x3071e1){let _0x6e6ae=null,_0x90b9e9=0x0;const _0x48f0d1=new Map(Array['from'](_0x50b23f['model'][_0x23abee]['insertions']['markers'])['filter'](([_0x50f321])=>!_0x50f321['startsWith']('revision:')));let _0x359d1f=0x0;for(const _0x788af1 of _0x50da7d){const _0x15a76d=this['_makeTape'](_0x788af1['model'][_0x23abee]['insertions']);_0x788af1==_0x50b23f?(_0x6e6ae=_0x15a76d,_0x90b9e9=_0x6e6ae['length'],_0x6e6ae['forEach'](_0x34972c=>{_0x34972c['id']=_0x359d1f++;}),this['_processTape'](_0x6e6ae)):this['_markInsertions'](_0x6e6ae,_0x15a76d);const _0x171462=_0x6e6ae['filter'](_0x46714c=>!_0x46714c['isAdded'])['map'](_0x1dad50=>_0x1dad50['id']);let _0x255d35=0x0;const _0x58ba2c=this['_makeTape'](_0x788af1['model'][_0x23abee]['deletions']);_0x58ba2c['forEach'](_0x46c627=>{_0x46c627['isRemoved']?_0x46c627['id']=_0x90b9e9++:_0x46c627['id']=_0x171462[_0x255d35++];}),this['_processTape'](_0x58ba2c),this['_setDistance'](_0x6e6ae,'isAdded'),this['_setDistance'](_0x58ba2c,'isRemoved'),_0x788af1==_0x50b23f&&this['_markMarkers'](_0x6e6ae,_0x48f0d1),_0x6e6ae=this['_joinTapes'](_0x6e6ae,_0x58ba2c),this['_refreshStartEndIndex'](_0x6e6ae),this['_setDistance'](_0x6e6ae,'isRemoved');}_0x6e6ae=_0x6e6ae['filter'](_0x3abadd=>!(_0x3abadd['isAdded']&&_0x3abadd['isRemoved']));const _0x1b8505=new Map(_0x1b8bc9['model'][_0x23abee]['deletions']['markers']),_0x2355ab=new Set(_0x48f0d1['keys']());for(const _0x50e2bd of _0x1b8505['keys']())_0x2355ab['delete'](_0x50e2bd);this['_markSuggestions'](_0x6e6ae,_0x2355ab),this['_fixObsoleteTags'](_0x6e6ae),_0x6e6ae=this['_removeMissingPairs'](_0x6e6ae),_0x6e6ae=this['_markMismatchedRemovedTags'](_0x6e6ae),_0x6e6ae=this['_removeUnsupportedChanges'](_0x6e6ae);const {root:_0x2595eb,changes:_0x4ddf11}=this['_makeModelFromTape'](_0x6e6ae,_0x2ed243,_0x23abee);_0xf40c30['model'][_0x23abee]=_0x2595eb;const _0x3c7ee6=_0xf330ee['get'](_0x23abee);if(_0x3c7ee6){const _0x27fd0b=_0x2ed243['get'](_0x3c7ee6['userId']),_0x1e6916=new r({'author':_0x27fd0b,'type':_0x3c7ee6['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x23abee});_0x4ddf11['unshift'](_0x1e6916),_0xf40c30['attributes'][_0x23abee]['revisionHistoryAttachChange']=_0x1e6916['id'];}_0xf40c30['changes']=_0xf40c30['changes']['concat'](_0x4ddf11);}return _0xf40c30;}['_markMarkers'](_0x547228,_0x163288){for(let _0x5edb8b=0x0;_0x5edb8b<_0x547228['length'];_0x5edb8b++)for(const [_0x559ae3,_0x1841d3]of _0x163288)_0x1841d3['start']['isEqual'](_0x547228[_0x5edb8b]['previousPosition'])&&_0x547228[_0x5edb8b]['markersStart']['push'](_0x559ae3),_0x1841d3['end']['isEqual'](_0x547228[_0x5edb8b]['nextPosition'])&&_0x547228[_0x5edb8b]['markersEnd']['push'](_0x559ae3);}['_joinTapes'](_0x59fa3e,_0x3aa18a){let _0x308cbd=[],_0x3b21ad=0x0,_0x945dbe=0x0;for(;_0x3b21ad<_0x59fa3e['length']||_0x945dbe<_0x3aa18a['length'];){const _0x42814c=_0x59fa3e[_0x3b21ad]||{},_0x42b562=_0x3aa18a[_0x945dbe]||{};if(_0x42814c['id']==_0x42b562['id'])_0x3b21ad++,_0x945dbe++,_0x308cbd['push'](_0x42814c);else{if(_0x42b562['isRemoved']&&_0x42814c['isAdded']){const {commonTape:_0x586c14,iEnd:_0x48498a,jEnd:_0xd5f0db}=this['_threeWayMerge'](_0x59fa3e,_0x3b21ad,_0x3aa18a,_0x945dbe);_0x308cbd=_0x308cbd['concat'](_0x586c14),_0x3b21ad=_0x48498a,_0x945dbe=_0xd5f0db;}else _0x42b562['isRemoved']?(_0x945dbe++,_0x308cbd['push'](_0x42b562)):(_0x3b21ad++,_0x308cbd['push'](_0x42814c));}}return _0x308cbd;}['_markSuggestions'](_0x12e5d9,_0x3afc24){const _0x50ff88=[];for(let _0x41f77a=0x0;_0x41f77a<_0x12e5d9['length'];_0x41f77a++){for(let _0x3bdaa8=0x0;_0x3bdaa8<_0x12e5d9[_0x41f77a]['markersStart']['length'];_0x3bdaa8++){const _0x44fd63=_0x12e5d9[_0x41f77a]['markersStart'][_0x3bdaa8];if(!_0x3afc24['has'](_0x44fd63))continue;const {group:_0xe9d559,type:_0xaf741f,authorId:_0x2138ba}=_0x36a75e(_0x44fd63);'revision-suggestion'!=_0xe9d559||'insertion'!=_0xaf741f&&'deletion'!=_0xaf741f||(_0x50ff88['unshift']({'type':_0xaf741f,'name':_0x44fd63,'userId':_0x2138ba}),_0x12e5d9[_0x41f77a]['markersStart']['splice'](_0x3bdaa8,0x1),_0x3bdaa8--);}_0x4a506e(_0x12e5d9[_0x41f77a]);for(let _0x1e404b=0x0;_0x1e404b<_0x12e5d9[_0x41f77a]['markersEnd']['length'];_0x1e404b++){const _0xa82c99=_0x12e5d9[_0x41f77a]['markersEnd'][_0x1e404b];if(!_0x3afc24['has'](_0xa82c99))continue;const {group:_0x256f66,type:_0x9abfd7}=_0x36a75e(_0xa82c99);if('revision-suggestion'!=_0x256f66||'insertion'!=_0x9abfd7&&'deletion'!=_0x9abfd7)continue;_0x12e5d9[_0x41f77a]['markersEnd']['splice'](_0x1e404b,0x1),_0x1e404b--;const _0x358fc6=_0x50ff88['findIndex'](_0x2be64f=>_0x2be64f['name']==_0xa82c99);_0x358fc6>-0x1&&_0x50ff88['splice'](_0x358fc6,0x1);}}function _0x36a75e(_0x5473c1){const _0x3c3bd2=_0x5473c1['split'](':');return{'group':_0x3c3bd2[0x0],'type':_0x3c3bd2[0x1],'subType':_0x3c3bd2['length']>=0x5?_0x3c3bd2[0x2]:null,'id':_0x3c3bd2['length']<0x5?_0x3c3bd2[0x2]:_0x3c3bd2[0x3],'authorId':_0x3c3bd2['length']<0x5?_0x3c3bd2[0x3]:_0x3c3bd2[0x4],'markerCount':0x6==_0x3c3bd2['length']?_0x3c3bd2[0x5]:null};}function _0x4a506e(_0x43fca0){for(let _0x18e820=0x0;_0x18e820<_0x50ff88['length'];_0x18e820++){if(_0x43fca0['isAdded']&&'insertion'==_0x50ff88[_0x18e820]['type'])return _0x43fca0['isAddSuggestion']=_0x50ff88[_0x18e820],void delete _0x43fca0['isAdded'];if(!_0x43fca0['isAdded']&&!_0x43fca0['isRemoved']&&'deletion'==_0x50ff88[_0x18e820]['type'])return void(_0x43fca0['isRemoveSuggestion']=_0x50ff88[_0x18e820]);}}}['_setDistance'](_0x13ba4e,_0x3272e6){let _0x5f599c=0x0,_0x441ff2=!0x1;const _0x2cd216=new Map();for(const _0x1326cd of _0x13ba4e)_0x1326cd[_0x3272e6]?_0x441ff2&&(_0x5f599c++,_0x441ff2=!0x1):(_0x5f599c++,_0x441ff2=!0x0),_0x2cd216['set'](_0x1326cd['id'],_0x5f599c);for(let _0x868b6e=0x0;_0x868b6e<_0x13ba4e['length'];_0x868b6e++){if('isRemoved'==_0x3272e6&&_0x13ba4e[_0x868b6e]['isAdded']||'isAdded'==_0x3272e6&&_0x13ba4e[_0x868b6e]['isRemoved'])continue;if('text'==_0x13ba4e[_0x868b6e]['type']){_0x13ba4e[_0x868b6e]['distance']=0x0;continue;}const _0x55e985=_0x2cd216['get'](_0x13ba4e[_0x868b6e]['pairId']),_0x30298d=_0x2cd216['get'](_0x13ba4e[_0x868b6e]['id']);_0x13ba4e[_0x868b6e]['distance']=_0x55e985-_0x30298d;}}['_getRevisionsRange'](_0xf7a91f,_0x496d0c,_0x339115=!0x1){const _0x331198=[];let _0x2f9132=this['repository']['getIndex'](_0xf7a91f),_0x1834ff=this['repository']['getIndex'](_0x496d0c);for(-0x1==_0x1834ff&&(_0x1834ff=this['repository']['_revisions']['length'],_0x339115=!0x1);_0x2f9132<_0x1834ff;)_0x331198['push'](this['repository']['getRevision'](_0x2f9132)),_0x2f9132++;return _0x339115&&_0x331198['push'](this['repository']['getRevision'](_0x2f9132)),_0x331198;}['_threeWayMerge'](_0x1f7354,_0x362520,_0x38b3e5,_0x5d1be9){const _0x57e523=this['editor']['model']['schema'];let _0xb7bc7c=_0x362520;for(;_0x1f7354[_0xb7bc7c]&&_0x1f7354[_0xb7bc7c]['isAdded'];)_0xb7bc7c++;let _0x355e9a=_0x5d1be9;for(;_0x38b3e5[_0x355e9a]&&_0x38b3e5[_0x355e9a]['isRemoved'];)_0x355e9a++;_0x4f0ca4(_0x1f7354,_0x362520,_0xb7bc7c),_0x4f0ca4(_0x38b3e5,_0x5d1be9,_0x355e9a);const _0x2084f8=_0x38b3e5['slice'](_0x5d1be9,_0x355e9a)['concat'](_0x1f7354['slice'](_0x362520,_0xb7bc7c));return _0x2084f8['sort']((_0x4c9f1c,_0x8a2bac)=>_0x4c9f1c['side']!=_0x8a2bac['side']?_0x4c9f1c['side']-_0x8a2bac['side']:_0x4c9f1c['level']!=_0x8a2bac['level']?_0x4c9f1c['level']-_0x8a2bac['level']:_0x4c9f1c['distance']!=_0x8a2bac['distance']?_0x8a2bac['distance']-_0x4c9f1c['distance']:!!_0x4c9f1c['isAdded']!=!!_0x8a2bac['isAdded']?-0x1==_0x4c9f1c['side']||0x0==_0x4c9f1c['side']?_0x4c9f1c['isAdded']?-0x1:0x1:_0x4c9f1c['isAdded']?0x1:-0x1:_0x4c9f1c['index']-_0x8a2bac['index']),{'commonTape':_0x2084f8,'iEnd':_0xb7bc7c,'jEnd':_0x355e9a};function _0x4f0ca4(_0x5c62e1,_0x22bc98,_0x281745){let _0x1d679c=-0x1,_0x35d184=Number['POSITIVE_INFINITY'],_0x4df543=!0x0;for(let _0x422807=_0x22bc98;_0x422807<_0x281745;_0x422807++)if(_0x57e523['isInline'](_0x5c62e1[_0x422807]['item'])||(_0x4df543=!0x1),_0x5c62e1[_0x422807]['item']['startIndex']<_0x22bc98&&(_0x1d679c=_0x422807),_0x5c62e1[_0x422807]['item']['endIndex']>=_0x281745){_0x35d184=_0x422807;break;}_0x4df543&&(_0x1d679c=_0x281745-0x1);for(let _0x4c60f2=_0x22bc98;_0x4c60f2<_0x281745;_0x4c60f2++)_0x5c62e1[_0x4c60f2]['side']=_0x4c60f2<=_0x1d679c?-0x1:_0x4c60f2<_0x35d184?0x0:0x1,_0x5c62e1[_0x4c60f2]['index']=_0x4c60f2;let _0x292821=0x0;for(let _0x1f6a26=_0x22bc98;_0x1f6a26<=_0x1d679c;_0x1f6a26++)0x0==_0x5c62e1[_0x1f6a26]['distance']?_0x5c62e1[_0x1f6a26]['level']=_0x292821:(_0x292821++,_0x5c62e1[_0x1f6a26]['level']=_0x292821,_0x292821++);for(let _0x1358d8=_0x22bc98;_0x1358d8<_0x281745;_0x1358d8++)0x0==_0x5c62e1[_0x1358d8]['side']&&(_0x5c62e1[_0x1358d8]['level']=_0x292821);_0x292821=0x0;for(let _0x5e0ac0=_0x281745-0x1;_0x5e0ac0>=_0x35d184;_0x5e0ac0--)0x0==_0x5c62e1[_0x5e0ac0]['distance']?_0x5c62e1[_0x5e0ac0]['level']=_0x292821:(_0x292821--,_0x5c62e1[_0x5e0ac0]['level']=_0x292821,_0x292821--);}}['_fixObsoleteTags'](_0x58e94a){const _0x368ed=new Map(),_0x381418=this['editor']['model']['schema'];for(let _0xb73937=0x1;_0xb73937<_0x58e94a['length'];_0xb73937++){let _0x560e4e,_0xa698f5,_0x377aa8;const _0x2ee966=_0x58e94a[_0xb73937],_0x3c2165=_0x58e94a[_0xb73937-0x1];if('text'==_0x2ee966['type'])continue;if(_0x2ee966['type']!=_0x3c2165['type'])continue;if(!_0x381418['isBlock'](_0x3c2165['item'])||_0x381418['isLimit'](_0x3c2165['item']))continue;if(!_0x381418['isBlock'](_0x2ee966['item'])||_0x381418['isLimit'](_0x2ee966['item']))continue;if((_0x58e94a[_0xb73937]['isAdded']||_0x58e94a[_0xb73937]['isAddSuggestion'])&&_0x58e94a[_0xb73937-0x1]['isRemoved'])_0x560e4e=_0x58e94a[_0xb73937],_0xa698f5=_0x58e94a[_0xb73937-0x1],_0x377aa8=_0xb73937-0x1;else{if(!_0x58e94a[_0xb73937]['isRemoved']||!_0x58e94a[_0xb73937-0x1]['isAdded']&&!_0x58e94a[_0xb73937-0x1]['isAddSuggestion'])continue;_0x560e4e=_0x58e94a[_0xb73937-0x1],_0xa698f5=_0x58e94a[_0xb73937],_0x377aa8=_0xb73937;}const _0xe5bc6a=_0x560e4e['level']==_0xa698f5['level'],_0x41f78c=Math['abs'](_0x560e4e['level'])<Math['abs'](_0xa698f5['level'])&&0x0==_0xa698f5['distance'];(_0xe5bc6a||_0x41f78c)&&(_0x368ed['set'](_0xa698f5['id'],_0x560e4e['id']),_0x58e94a['splice'](_0x377aa8,0x1),_0xb73937--,_0x560e4e['isAdded']=!0x1);}for(let _0x16f6c8=0x0;_0x16f6c8<_0x58e94a['length'];_0x16f6c8++)_0x368ed['has'](_0x58e94a[_0x16f6c8]['pairId'])&&(_0x58e94a[_0x16f6c8]['pairId']=_0x368ed['get'](_0x58e94a[_0x16f6c8]['pairId']));}['_removeMissingPairs'](_0x9001e8){const _0x5cb6d8=new Set(_0x9001e8['map'](_0x459cff=>_0x459cff['id']));for(let _0x2390d3=0x0;_0x2390d3<_0x9001e8['length'];_0x2390d3++)_0x5cb6d8['has'](_0x9001e8[_0x2390d3]['pairId'])||0x0==_0x9001e8[_0x2390d3]['distance']||(_0x9001e8[_0x2390d3]['isIncorrect']=!0x0);return _0x9001e8['filter'](_0x49b473=>!_0x49b473['isIncorrect']);}['_markMismatchedRemovedTags'](_0x1c6811){const _0x204345=new Set();for(let _0x411901=0x0;_0x411901<_0x1c6811['length'];_0x411901++){if(_0x204345['has'](_0x1c6811[_0x411901]['id'])&&_0x1c6811[_0x411901]['isRemoved']&&(_0x1c6811[_0x411901]['isIncorrect']=!0x0),_0x1c6811[_0x411901]['isIncorrect'])continue;if(0x0==_0x1c6811[_0x411901]['distance'])continue;if('elementStart'!=_0x1c6811[_0x411901]['type'])continue;if(null==_0x1c6811[_0x411901]['pairId'])continue;let _0x55a736=_0x411901+0x1,_0x177ec3=0x0;for(;_0x1c6811[_0x55a736]['id']!=_0x1c6811[_0x411901]['pairId'];)'elementStart'==_0x1c6811[_0x55a736]['type']?_0x177ec3++:'elementEnd'==_0x1c6811[_0x55a736]['type']&&_0x177ec3--,_0x55a736++;if(0x0!=_0x177ec3){if(_0x1c6811[_0x411901]['isRemoved'])_0x1c6811[_0x411901]['isIncorrect']=!0x0;else{for(;_0x55a736!=_0x411901;)_0x1c6811[_0x55a736]['isRemoved']&&0x0!=_0x1c6811[_0x55a736]['distance']&&(_0x1c6811[_0x55a736]['isIncorrect']=!0x0,_0x204345['add'](_0x1c6811[_0x55a736]['pairId'])),_0x55a736--;}}}return _0x1c6811['filter'](_0x4c73a1=>!_0x4c73a1['isIncorrect']);}['_removeUnsupportedChanges'](_0x13cecb){const _0x1537c5=this['editor']['model']['schema'];for(let _0x5c0149=0x0;_0x5c0149<_0x13cecb['length'];_0x5c0149++){if(!(_0x13cecb[_0x5c0149]['isAdded']||_0x13cecb[_0x5c0149]['isAddSuggestion']||_0x13cecb[_0x5c0149]['isRemoved']||_0x13cecb[_0x5c0149]['isRemoveSuggestion']))continue;if(0x0==_0x13cecb[_0x5c0149]['distance'])continue;const _0x3a590e=_0x13cecb[_0x5c0149]['item'];_0x1537c5['isBlock'](_0x3a590e)||_0x1537c5['isLimit'](_0x3a590e)||(_0x13cecb[_0x5c0149]['isAdded']&&delete _0x13cecb[_0x5c0149]['isAdded'],_0x13cecb[_0x5c0149]['isAddSuggestion']&&delete _0x13cecb[_0x5c0149]['isAddSuggestion'],_0x13cecb[_0x5c0149]['isRemoveSuggestion']&&delete _0x13cecb[_0x5c0149]['isRemoveSuggestion'],_0x13cecb[_0x5c0149]['isRemoved']&&(_0x13cecb[_0x5c0149]['isIncorrect']=!0x0));}return _0x13cecb['filter'](_0x33322b=>!_0x33322b['isIncorrect']);}['_makeModelFromTape'](_0x4b6968,_0x37b0b4,_0x21655c){const _0x325851=new gt(),_0x1dadf4=[],_0x4ab826=new Map(),_0x2a28c8=this['editor']['model'],_0x5aa598=_0x2a28c8['schema'],_0x36b3ed=[_0x325851],_0x4b6ff5={},_0x4a85ac={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x2d5fce=null;const _0x5c28c9=[0x0];for(let _0x344d20=0x0;_0x344d20<_0x4b6968['length'];_0x344d20++)if('elementStart'===_0x4b6968[_0x344d20]['type']){_0x4b6968[_0x344d20]['previousPosition']=_0x2a28c8['createPositionFromPath'](_0x325851,_0x5c28c9);const _0x321759=new ut(_0x4b6968[_0x344d20]['item']['name'],_0x4b6968[_0x344d20]['item']['getAttributes']());_0x36b3ed[0x0]['_appendChild'](_0x321759),_0x5c28c9['push'](0x0),_0x36b3ed['unshift'](_0x321759),_0x4b6968[_0x344d20]['nextPosition']=_0x2a28c8['createPositionFromPath'](_0x325851,_0x5c28c9);}else'elementEnd'===_0x4b6968[_0x344d20]['type']?(_0x36b3ed['shift'](),_0x4b6968[_0x344d20]['previousPosition']=_0x2a28c8['createPositionFromPath'](_0x325851,_0x5c28c9),_0x5c28c9['pop'](),_0x5c28c9[_0x5c28c9['length']-0x1]++,_0x4b6968[_0x344d20]['nextPosition']=_0x2a28c8['createPositionFromPath'](_0x325851,_0x5c28c9)):(_0x4b6968[_0x344d20]['previousPosition']=_0x2a28c8['createPositionFromPath'](_0x325851,_0x5c28c9),_0x2d5fce?_0x2d5fce['_data']+=_0x4b6968[_0x344d20]['item']['data']:_0x2d5fce=new wt(_0x4b6968[_0x344d20]['item']['data'],_0x4b6968[_0x344d20]['item']['getAttributes']()),_0x4b6968[_0x344d20+0x1]&&'text'===_0x4b6968[_0x344d20+0x1]['type']&&_0x24d7d2(_0x2d5fce,_0x4b6968[_0x344d20+0x1]['item'])||(_0x36b3ed[0x0]['_appendChild'](_0x2d5fce),_0x2d5fce=null),_0x5c28c9[_0x5c28c9['length']-0x1]+=_0x4b6968[_0x344d20]['item']['offsetSize'],_0x4b6968[_0x344d20]['nextPosition']=_0x2a28c8['createPositionFromPath'](_0x325851,_0x5c28c9));for(let _0x53a696=0x0;_0x53a696<_0x4b6968['length'];_0x53a696++){const _0x262b6e=_0x4b6968[_0x53a696]['previousPosition'],_0x352e5b=_0x4b6968[_0x53a696]['nextPosition'];for(const _0x548dfc of _0x4b6968[_0x53a696]['markersStart'])_0x4ab826['set'](_0x548dfc,{'start':_0x262b6e,'end':null});_0x2ddd30('isRemoveSuggestion',_0x53a696,_0x262b6e,_0x352e5b),_0x2ddd30('isAddSuggestion',_0x53a696,_0x262b6e,_0x352e5b),_0x2ddd30('isRemoved',_0x53a696,_0x262b6e,_0x352e5b),_0x2ddd30('isAdded',_0x53a696,_0x262b6e,_0x352e5b);for(const _0x471639 of _0x4b6968[_0x53a696]['markersEnd']){_0x4ab826['get'](_0x471639)['end']=_0x352e5b;}}for(const [_0x18a068,_0x2236f7]of _0x4ab826){const _0x1d0be8=this['editor']['model']['createRange'](_0x2236f7['start'],_0x2236f7['end']);_0x325851['markers']['set'](_0x18a068,_0x1d0be8);}return _0x1dadf4['sort']((_0x1711be,_0x38b18d)=>{const _0x423582=_0x325851['markers']['get']('revision:'+_0x1711be['id']),_0x51ebb0=_0x325851['markers']['get']('revision:'+_0x38b18d['id']);return _0x423582['start']['isBefore'](_0x51ebb0['start'])?-0x1:_0x423582['start']['isAfter'](_0x51ebb0['start'])?0x1:_0x423582['end']['isBefore'](_0x51ebb0['end'])?-0x1:_0x423582['end']['isAfter'](_0x51ebb0['end'])?0x1:'add'===_0x1711be['type']?-0x1:0x1;}),{'root':_0x325851,'changes':_0x1dadf4};function _0x2ddd30(_0xfc2858,_0x2d7599,_0x13640c,_0x132a13){const _0x3d2caa=!!_0x4b6968[_0x2d7599][_0xfc2858],_0x309b71=_0x3d2caa?_0x4b6968[_0x2d7599][_0xfc2858]['userId']:null,_0x31497e=_0x2d7599===_0x4b6968['length']-0x1,_0x2a58f5=_0x4a85ac[_0xfc2858][0x0],_0x1f8d6b=_0x5aa598['isObject'](_0x4b6968[_0x2d7599]['item']);!_0x4b6ff5[_0xfc2858]&&_0x3d2caa?_0x4b6ff5[_0xfc2858]={'start':_0x13640c,'tapeItem':_0x4b6968[_0x2d7599],'userId':_0x309b71,'type':_0xfc2858}:_0x4b6ff5[_0xfc2858]&&!_0x3d2caa?(_0x4b6ff5[_0xfc2858]['end']=_0x13640c,_0x760145(_0x4b6ff5[_0xfc2858]),_0x4b6ff5[_0xfc2858]=null):_0x4b6ff5[_0xfc2858]&&_0x3d2caa&&_0x4b6ff5[_0xfc2858]['userId']!==_0x309b71&&(_0x4b6ff5[_0xfc2858]['end']=_0x13640c,_0x2a58f5&&_0x2a58f5['userId']===_0x4b6ff5[_0xfc2858]['userId']||_0x760145(_0x4b6ff5[_0xfc2858]),_0x4b6ff5[_0xfc2858]={'start':_0x13640c,'tapeItem':_0x4b6968[_0x2d7599],'userId':_0x309b71,'type':_0xfc2858}),_0x4b6ff5[_0xfc2858]&&_0x1f8d6b&&('elementStart'!==_0x4b6968[_0x2d7599]['type']||_0x2a58f5&&_0x2a58f5['userId']===_0x309b71||_0x4a85ac[_0xfc2858]['unshift']({'userId':_0x309b71,'object':_0x4b6968[_0x2d7599]['item'],'change':_0x4b6ff5[_0xfc2858]}),'elementEnd'===_0x4b6968[_0x2d7599]['type']&&_0x2a58f5&&_0x2a58f5['object']===_0x4b6968[_0x2d7599]['item']&&(_0x4a85ac[_0xfc2858]['shift'](),_0x4b6ff5[_0xfc2858]=_0x2a58f5['change'])),_0x4b6ff5[_0xfc2858]&&_0x31497e&&(_0x4b6ff5[_0xfc2858]['end']=_0x132a13,_0x760145(_0x4b6ff5[_0xfc2858]),_0x4b6ff5[_0xfc2858]=null);}function _0x760145({start:_0x2d1970,end:_0x5e4587,tapeItem:_0x150232,userId:_0x594d23,type:_0x135c6f}){const _0x40732f=_0x150232['item'],_0x2276aa=_0x2a28c8['schema']['isBlock'](_0x40732f)&&!_0x2a28c8['schema']['isLimit'](_0x40732f),_0x341ccd=_0x2d1970['nodeAfter']==_0x5e4587['parent']&&_0x5e4587['isAtStart'];if(_0x2276aa&&_0x341ccd)return;const _0xb19198=_0x2a28c8['createRange'](_0x2d1970,_0x5e4587),_0x59b65b=_0x37b0b4['get'](_0x594d23),_0x17746d=new r({'author':_0x59b65b,'type':'isAdded'==_0x135c6f||'isAddSuggestion'==_0x135c6f?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x135c6f||'isRemoveSuggestion'==_0x135c6f},'createdAt':new Date(),'rootName':_0x21655c});_0x1dadf4['push'](_0x17746d),_0x325851['markers']['set']('revision:'+_0x17746d['id'],_0xb19198);}function _0x24d7d2(_0xfdb38f,_0x209cd7){const _0x83ceeb=_0xfdb38f['getAttributes'](),_0x574401=_0x209cd7['getAttributes']();for(const _0x1ffcf8 of _0x83ceeb){if(_0x1ffcf8[0x1]!==_0x209cd7['getAttribute'](_0x1ffcf8[0x0]))return!0x1;_0x574401['next']();}return _0x574401['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x332422=>{const _0x322a8a=_0x332422['markerName']['split'](':')[0x1],_0x27eac9=this['_getChangeFromId'](_0x322a8a);if(!_0x27eac9)return null;const _0x216a9f='add'==_0x27eac9['type']?'insertion':'deletion',_0x8345fa=['ck-suggestion-marker','ck-suggestion-marker-'+_0x216a9f];return _0x27eac9['data']['isSuggestion']&&_0x8345fa['push']('ck-suggestion-marker-'+_0x216a9f+'-new'),this['activeChange']==_0x27eac9&&_0x8345fa['push']('ck-suggestion-marker--active'),{'classes':_0x8345fa,'attributes':{'data-change-id':_0x322a8a}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x257325=>{_0x257325['on']('element:pre',(_0x18c797,_0x52805a,_0x95b17e)=>{const _0x132778=_0x52805a['viewItem']['getChild'](0x0);if(!_0x132778||!_0x132778['is']('element','code'))return;if(!_0x95b17e['consumable']['consume'](_0x132778,{'attributes':['vid_start','vid_end']}))return;const _0x5012d9=_0x52805a['modelRange']['start']['nodeAfter'];_0x95b17e['writer']['setAttribute']('vid_start',_0x132778['getAttribute']('vid_start'),_0x5012d9),_0x95b17e['writer']['setAttribute']('vid_end',_0x132778['getAttribute']('vid_end'),_0x5012d9);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x5af070=>{_0x5af070['on']('element',(_0x49feda,_0x1d7c4e,_0x44b419)=>{if(!_0x44b419['consumable']['consume'](_0x1d7c4e['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x1d7c4e['modelRange']['isCollapsed'])return;const _0x2b7c72=_0x1d7c4e['modelRange']['start']['nodeAfter'];_0x2b7c72['hasAttribute']('vid_start')||_0x2b7c72['hasAttribute']('vid')||(_0x44b419['writer']['setAttribute']('vid_start',_0x1d7c4e['viewItem']['getAttribute']('vid_start'),_0x2b7c72),_0x44b419['writer']['setAttribute']('vid_end',_0x1d7c4e['viewItem']['getAttribute']('vid_end'),_0x2b7c72));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x43ec02=>_0x43ec02['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0xe9249a,[,_0x34f8dd])=>{['vid_start','vid_end','vid']['includes'](_0x34f8dd)&&(_0xe9249a['return']=!0x0,_0xe9249a['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x493459=>{_0x493459['on']('attribute:vid',(_0x278585,_0x540f32,_0x2abd3e)=>{if('\x20'!=_0x540f32['item']['data']||_0x540f32['item']['parent']['maxOffset']>0x1)return;if(!_0x2abd3e['consumable']['consume'](_0x540f32['item'],_0x278585['name']))return;const _0xd563d2=_0x2abd3e['writer'],_0x7c683b=_0x2abd3e['mapper']['toViewRange'](_0x540f32['range']);_0xd563d2['wrap'](_0x7c683b,_0xd563d2['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x55c5d4){const _0x20ee0a=_0x55c5d4['plugins']['get']('RevisionViewer');return(_0x4e82db,_0x48ea98,_0x3b5f11)=>{const _0x53a0ee=_0x48ea98['markerName']['split'](':')[0x1],_0x273cec=_0x20ee0a['_getChangeFromId'](_0x53a0ee);if(!_0x273cec)return null;const _0x1b7c2f='add'==_0x273cec['type']?'split':'merge';if(!_0x3b5f11['consumable']['test'](_0x48ea98['markerRange'],_0x4e82db['name']))return;const _0xfdb499=_0x48ea98['markerRange']['getWalker'](),_0x75ae90=_0x48ea98['markerRange']['start'],_0x499194=_0x55c5d4['model']['schema'];let _0x5683e4=null,_0x31a17b=null,_0x100e83=!0x1,_0x379f8d=!0x1;for(const _0x5264eb of _0xfdb499){const _0x41eedf=_0x5264eb['item'];_0x100e83=_0x100e83||_0x499194['isContent'](_0x41eedf);const _0xb7d2a8=_0x3b5f11['mapper']['toViewElement'](_0x41eedf);if(_0xb7d2a8&&_0xb7d2a8['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5264eb['type']&&(_0x499194['isBlock'](_0x41eedf)&&!_0x499194['isLimit'](_0x41eedf)&&(_0x41eedf['nextSibling']||_0x75ae90['isAtEnd']?_0x5683e4&&_0x5683e4['parent']==_0x41eedf||(_0x5683e4=_0x41eedf,_0x305dea(_0x5264eb['previousPosition']),_0x379f8d=!0x0):_0x31a17b=_0x31a17b||_0x5264eb['previousPosition']));}function _0x305dea(_0x3d89a2){const _0x14ad4b=_0x3b5f11['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1b7c2f}),_0x1bf8e7=_0x3b5f11['mapper']['toViewPosition'](_0x3d89a2);_0x273cec['data']['isSuggestion']&&_0x3b5f11['writer']['addClass']('ck-suggestion-marker-'+_0x1b7c2f+'-new',_0x14ad4b),_0x20ee0a['activeChange']==_0x273cec&&_0x3b5f11['writer']['addClass']('ck-suggestion-marker--active',_0x14ad4b),_0x3b5f11['writer']['insert'](_0x1bf8e7,_0x14ad4b),_0x3b5f11['mapper']['bindElementToMarker'](_0x14ad4b,_0x48ea98['markerName']);}_0x100e83||_0x379f8d||!_0x31a17b||_0x305dea(_0x31a17b);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x372868,_0x1e7a6a,_0x4533ff)=>{const _0x3ad723=_0x4533ff['mapper']['markerNameToElements'](_0x1e7a6a['markerName']);if(_0x3ad723){for(const _0x153386 of _0x3ad723)(_0x153386['hasClass']('ck-suggestion-marker-split')||_0x153386['hasClass']('ck-suggestion-marker-merge'))&&(_0x4533ff['mapper']['unbindElementFromMarkerName'](_0x153386,_0x1e7a6a['markerName']),_0x4533ff['writer']['remove'](_0x153386));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x58928c,_0x560dac,_0x166606)=>{const _0x1f3e25=_0x560dac['markerName']['split'](':')[0x1],_0x4f520a=this['_getChangeFromId'](_0x1f3e25);if(!_0x4f520a)return null;const _0x33e676='add'==_0x4f520a['type']?'split':'merge';if(_0x166606['consumable']['test'](_0x560dac['markerRange'],_0x58928c['name']))for(const _0x54ac7e of _0x560dac['markerRange']['getItems']()){if(!_0x54ac7e['is']('element','softBreak'))continue;const _0x46ef70=_0x166606['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x33e676}),_0x381b46=_0x166606['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x54ac7e));_0x4f520a['data']['isSuggestion']&&_0x166606['writer']['addClass']('ck-suggestion-marker-'+_0x33e676+'-new',_0x46ef70),this['activeChange']==_0x4f520a&&_0x166606['writer']['addClass']('ck-suggestion-marker--active',_0x46ef70),_0x166606['writer']['insert'](_0x381b46,_0x46ef70),_0x166606['mapper']['bindElementToMarker'](_0x46ef70,_0x560dac['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x5d81a5=>{for(const _0x27161f of this['editor']['model']['document']['getRootNames']()){const _0x898a35=this['editor']['model']['document']['getRoot'](_0x27161f),_0x53b5ca=this['editor']['editing']['view']['document']['getRoot'](_0x27161f);if(_0x53b5ca){const _0x935d74=_0x898a35['getAttribute']('revisionHistoryAttachChange');if(_0x5d81a5['removeAttribute']('data-change-id',_0x53b5ca),_0x5d81a5['removeClass']('ck-revision-history-root-add',_0x53b5ca),_0x5d81a5['removeClass']('ck-revision-history-root-remove',_0x53b5ca),_0x5d81a5['removeClass']('ck-revision-history-root--active',_0x53b5ca),_0x935d74){const _0x599378=this['_getChangeFromId'](_0x935d74);if(!_0x599378)return null;_0x5d81a5['setAttribute']('data-change-id',_0x935d74,_0x53b5ca),_0x5d81a5['addClass']('ck-revision-history-root-'+_0x599378['type'],_0x53b5ca),this['activeChange']==_0x599378&&_0x5d81a5['addClass']('ck-revision-history-root--active',_0x53b5ca);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x552764=>'revision-comment:'+_0x552764,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x43c0ba=>'revision-suggestion:'+_0x43c0ba,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x4b1825=>({'name':'suggestion:'+_0x4b1825,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x38b412=>{const _0x2cbacb=_0x38b412['markerName']['split'](':')[0x1];return'insertion'!=_0x2cbacb&&'deletion'!=_0x2cbacb?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x2cbacb]};}}),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',(_0x222e1a,_0x28939,_0x134161)=>{const _0xdbd83b=_0x134161['mapper']['markerNameToElements'](_0x28939['markerName']);if(_0xdbd83b){for(const _0x1ce5c5 of _0xdbd83b)_0x1ce5c5['is']('uiElement')&&(_0x134161['mapper']['unbindElementFromMarkerName'](_0x1ce5c5,_0x28939['markerName']),_0x134161['writer']['remove'](_0x1ce5c5));}},{'priority':'high'});}['_getChangeFromId'](_0x885749){return this['_changeIdToChange']['get'](_0x885749);}['_getViewForChange'](_0x3370a6){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x3370a6),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x554469,_0x5598a4,_0x194666,_0xbf56e1)=>{_0xbf56e1&&this['_balloon']['remove'](_0xbf56e1),_0x194666&&(this['_balloon']['add']({'view':_0x194666,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x7e8ec7=this['editor']['editing'],_0x59a1bd=this['_getChangeFromId'](_0x194666['changeId']);let _0x24085d;if(_0x59a1bd['data']['isOnRoot']){const _0x592771=_0x7e8ec7['view']['getDomRoot'](_0x59a1bd['rootName']);_0x24085d=Array['from'](_0x592771['getClientRects']());}else{const _0x25cb27=this['editor']['model']['markers']['get']('revision:'+_0x194666['changeId']);_0x24085d=Array['from'](_0x7e8ec7['mapper']['markerNameToElements'](_0x25cb27['name']))['map'](_0x491f83=>_0x7e8ec7['view']['domConverter']['mapViewToDom'](_0x491f83))['map'](_0x156668=>Array['from'](_0x156668['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x24085d[0x0];return _0x24085d['find'](_0x73705f=>_0x73705f['top']-0x3<=this['_activeViewTarget']['y']&&_0x73705f['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x73705f['left']-0x3<=this['_activeViewTarget']['x']&&_0x73705f['right']+0x3>=this['_activeViewTarget']['x'])||_0x24085d[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x5e51b3,_0x192cbf,_0x264ff6,_0x1d3440)=>{this['activeView']=_0x264ff6?this['_getViewForChange'](_0x264ff6):null,this['editor']['model']['change'](()=>{const _0x355411=this['editor']['editing'];_0x1d3440&&(_0x1d3440['data']['isOnRoot']?_0x355411['view']['change'](_0x132da0=>{_0x132da0['removeClass']('ck-revision-history-root--active',_0x355411['view']['document']['getRoot'](_0x1d3440['rootName']));}):_0x355411['reconvertMarker']('revision:'+_0x1d3440['id'])),_0x264ff6&&(_0x264ff6['data']['isOnRoot']?_0x355411['view']['change'](_0x14b8fd=>{_0x14b8fd['addClass']('ck-revision-history-root--active',_0x355411['view']['document']['getRoot'](_0x264ff6['rootName']));}):_0x355411['reconvertMarker']('revision:'+_0x264ff6['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x17be40,_0x178727)=>{if(this['activeChange'])return;const _0x30a30b=this['_findChangeIdFromDomTarget'](_0x178727['target']),_0x1eca4f=this['_changeIdToChange']['get'](_0x30a30b);_0x1eca4f?(this['_activeViewTarget']={'x':_0x178727['domEvent']['x'],'y':_0x178727['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x1eca4f)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x42ec86,_0x4e722e)=>{const _0x5d299b=this['_findChangeIdFromDomTarget'](_0x4e722e['target']),_0x18740f=this['_changeIdToChange']['get'](_0x5d299b);_0x18740f?(this['_activeViewTarget']={'x':_0x4e722e['domEvent']['x'],'y':_0x4e722e['domEvent']['y']},_0x18740f===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x18740f):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0xaaf9b9){do{const _0x3ec264=_0xaaf9b9['getAttribute']('data-change-id');if(_0x3ec264)return _0x3ec264;_0xaaf9b9=_0xaaf9b9['parent'];}while(_0xaaf9b9);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x5c696e=>{for(const _0x132158 of this['editor']['model']['markers'])_0x5c696e['removeMarker'](_0x132158);});}}function Z(_0x505026,_0x3a929e){return(_0x21afdc,_0x2a8936,_0x50f888)=>{if(!_0x50f888['consumable']['test'](_0x2a8936['markerRange'],_0x21afdc['name']))return;const _0x2e08a8=_0x2a8936['markerRange']['getWalker'](),_0x2ecbf6=_0x2a8936['markerRange']['start'],_0x52b16f=_0x505026['model']['schema'];let _0x4760b9=null,_0x54a04e=null,_0x15ee45=!0x1,_0x2d1ee5=!0x1;for(const _0x1351b9 of _0x2e08a8){const _0x3b0865=_0x1351b9['item'];_0x15ee45=_0x15ee45||_0x52b16f['isContent'](_0x3b0865);const _0x5dfbbf=_0x50f888['mapper']['toViewElement'](_0x3b0865);if(_0x5dfbbf&&_0x5dfbbf['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1351b9['type']&&(_0x52b16f['isBlock'](_0x3b0865)&&!_0x52b16f['isLimit'](_0x3b0865)&&(_0x3b0865['nextSibling']||_0x2ecbf6['isAtEnd']?_0x4760b9&&_0x4760b9['parent']==_0x3b0865||(_0x4760b9=_0x3b0865,_0x78f883(_0x1351b9['previousPosition']),_0x2d1ee5=!0x0):_0x54a04e=_0x54a04e||_0x1351b9['previousPosition']));}function _0x78f883(_0xd980bb){const _0xc3c57a=_0x50f888['mapper']['toViewPosition'](_0xd980bb),_0x2a1e7a=_0x50f888['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x3a929e});_0x50f888['writer']['insert'](_0xc3c57a,_0x2a1e7a),_0x50f888['mapper']['bindElementToMarker'](_0x2a1e7a,_0x2a8936['markerName']);}_0x15ee45||_0x2d1ee5||!_0x54a04e||_0x78f883(_0x54a04e);};}class _t extends _0x3b1154{constructor(_0x5a1db3){super(_0x5a1db3);const _0xe885b0=_0x5a1db3['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0xe885b0,'change:isReady',()=>this['refresh']()),this['listenTo'](_0xe885b0,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x1d29cf=this['editor'],_0x1e6dbb=_0x1d29cf['plugins']['get'](d),_0x6851e0=_0x1e6dbb['isReady']?_0x1e6dbb['diff']['newRevisionId']:null;_0x1d29cf['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x6851e0);}['refresh'](){const {isReady:_0x56a2b1,isEnabled:_0x52669d,repository:_0x429020,diff:_0x206c08}=this['editor']['plugins']['get'](d),_0x3d62bd=_0x206c08&&_0x429020['getLaterVisibleRevision'](_0x206c08['newRevisionId']);this['isEnabled']=_0x56a2b1&&_0x52669d&&Boolean(_0x3d62bd);}}class yt extends _0x3b1154{['_step'];constructor(_0x598815,{direction:_0x10633c}){super(_0x598815);const _0x1c1ce5=_0x598815['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x10633c?0x1:-0x1,this['listenTo'](_0x1c1ce5,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x1c1ce5,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x1c1ce5,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x111d23=this['editor'],_0x2be752=_0x111d23['plugins']['get'](d),{isNavigationMode:_0x1fdfa6,currentChangeNumber:_0x394764}=_0x2be752;let _0x1dde81;if(_0x2be752['activeChange']=_0x1fdfa6?_0x2be752['diff']['changes']['get'](_0x394764+this['_step']):_0x2be752['diff']['changes']['first'],_0x2be752['activeChange']['data']['isOnRoot'])_0x1dde81=_0x111d23['editing']['view']['getDomRoot'](_0x2be752['activeChange']['rootName']);else{const _0x46ad44=_0x111d23['model']['markers']['get']('revision:'+_0x2be752['activeChange']['id']);_0x1dde81=_0x12bc2a(_0x111d23['editing'],_0x46ad44);}_0x2cff1f({'target':_0x1dde81,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x7e4cee,currentChangeNumber:_0x136232,numberOfChanges:_0x28dbc8,isReady:_0x31913b,isEnabled:_0x1ef84a}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x1ef84a&&_0x31913b&&_0x28dbc8)&&(!_0x7e4cee||(0x1===this['_step']?_0x136232<_0x28dbc8-0x1:_0x136232>0x0));}}class _i extends _0x3438c0{constructor(_0x5c0969){super(_0x5c0969);const _0x213a46=this['bindTemplate'],_0x5ad439=new _0x1cfe19(_0x5c0969),_0x52d226=new _0x1cfe19(_0x5c0969);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',(_0x1ecf3c,_0x1da9c1)=>_0x1ecf3c&&_0x1da9c1>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x42fd21,_0x2e0d32,_0x27e4d5,_0x486849)=>{if(!_0x42fd21)return m(_0x5c0969,'Loading...');if(!_0x27e4d5)return m(_0x5c0969,'No\x20changes');const _0x397fcc=m(_0x5c0969,'NUMBER_OF_CHANGES',_0x27e4d5);return _0x486849?m(_0x5c0969,'X_OF_Y_CHANGES',[_0x2e0d32+0x1,_0x27e4d5]):_0x397fcc;}),_0x5ad439['set']({'label':m(_0x5c0969,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x20e947}),_0x52d226['set']({'label':m(_0x5c0969,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x2efc78}),_0x5ad439['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x52d226['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x5ad439['on']('execute',()=>this['fire']('execute','backward')),_0x52d226['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',_0x213a46['if']('_isStatusLabelVisible','ck-hidden',_0x56889e=>!_0x56889e)]},'children':[{'text':_0x213a46['to']('isNavigationMode',_0x5ab27f=>_0x5ab27f?m(_0x5c0969,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x5c0969,'Total')+':\x20')}]},{'text':_0x213a46['to']('_statusText')}]},new _0x139776(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x5ad439,_0x52d226]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x19eb44{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x5566e2=this['editor']['editing']['view'];_0x5566e2['change'](_0x3d938c=>{for(const _0x58f2bb of _0x5566e2['document']['roots'])_0x3d938c['addClass'](ce,_0x58f2bb);});}['hide'](){const _0xafec11=this['editor']['editing']['view'];_0xafec11['change'](_0x1804d3=>{for(const _0x2c17f0 of _0xafec11['document']['roots'])_0x1804d3['removeClass'](ce,_0x2c17f0);});}}class w extends _0x19eb44{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,le];}['init'](){const _0x36ed8e=this['editor'],_0x3efd1e=_0x36ed8e['plugins']['get'](d),_0x2414f8=_0x36ed8e['plugins']['get'](le);_0x36ed8e['ui']['componentFactory']['add']('exitToEditing',_0xe37b4a=>{const _0x5a188b=new _0x1cfe19(_0xe37b4a);return _0x5a188b['set']({'label':m(_0xe37b4a,'Back\x20to\x20editing'),'icon':_0x520d6c,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x5a188b,'execute',()=>{_0x36ed8e['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x5a188b;}),_0x36ed8e['ui']['componentFactory']['add']('restoreRevision',_0x490948=>{const _0x179869=new _0x1cfe19(_0x490948);return _0x179869['set']({'label':m(_0x490948,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x179869['bind']('isEnabled')['to'](_0x36ed8e['commands']['get']('restoreRevision')),this['listenTo'](_0x179869,'execute',()=>_0x36ed8e['execute']('restoreRevision')),_0x179869;}),_0x36ed8e['ui']['componentFactory']['add']('changesNavigation',_0x34ed44=>{const _0x18e3e0=new _i(_0x34ed44),_0x32c54d=_0x36ed8e['commands']['get']('showPreviousChange'),_0xd3f57d=_0x36ed8e['commands']['get']('showNextChange');return _0x18e3e0['bind']('isBackwardNavigationEnabled')['to'](_0x32c54d,'isEnabled'),_0x18e3e0['bind']('isForwardNavigationEnabled')['to'](_0xd3f57d,'isEnabled'),_0x18e3e0['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x3efd1e),this['listenTo'](_0x18e3e0,'execute',(_0x59bf43,_0x2d64ab)=>{_0x36ed8e['execute']('forward'===_0x2d64ab?'showNextChange':'showPreviousChange');}),_0x18e3e0;}),_0x2414f8['show'](),_0x3efd1e['on']('change:isReady',(_0x592f0a,_0x3bff0d,_0x59c736)=>{_0x59c736?_0x2414f8['hide']():_0x2414f8['show']();});}}class mt extends at{['_resizeObserver']=null;constructor(_0x338227,_0x3b98a1){super(_0x338227,_0x3b98a1);const _0x9bf87f=this['bindTemplate'];this['set']({'label':m(_0x338227,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x338227,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x9bf87f['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 _0x4424a6=this['fieldView']['element'];this['_tooltipString']=_0x4424a6['scrollWidth']>_0x4424a6['clientWidth']&&_0x4424a6['value']||'';}}class oi extends _0x3438c0{constructor(_0x4e5e72,_0x800377,_0x205423){super(_0x4e5e72);const _0x2febbf=new _0x2b6dd8();_0x2febbf['set']({'content':_0x14a93e,'viewBox':'0\x200\x2011\x2010'});const _0x171cb9=['ck','ck-revision-history-sidebar__revision-author'];_0x205423&&_0x171cb9['push']('ck-revision-history-sidebar__revision-author_creator');const _0x111330=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x4e5e72,_0x205423?'Revision\x20creator':'Revision\x20author')},'children':[_0x2febbf,_0x800377['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x171cb9},'children':_0x111330});}}function ni(_0x3d4233,_0x5a2b96){const _0x5484ac=_0x3d4233['bindTemplate'],_0x5a8880=_0x3d4233['locale'],_0x5e669d=_0x36390b(_0x5a8880);_0x5e669d['panelPosition']='sw';const _0x589c7a=function(_0x4f9356,_0xd6128c){const _0x4276fe=function(_0x21da80,_0x1ae8b1){const _0x1fb953=_0x21da80['locale'],_0x196cab={'Compare\x20against\x20selected':m(_0x1fb953,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x1fb953,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x1fb953,'Restore\x20this\x20revision')};return _0x1ae8b1['map'](_0x172e77=>{const _0x3d60c1=_0x196cab[_0x172e77['name']];return _0x3d60c1&&_0x3d60c1!==_0x172e77['name']&&(_0x172e77['name']=_0x3d60c1),_0x172e77;});}(_0x4f9356,_0xd6128c),_0xca437=new _0x1caf96();for(const _0x2799a0 of _0x4276fe){const _0x262887={'type':'button','model':new to({'label':_0x2799a0['name'],'class':_0x2799a0['class'],'withText':!0x0,'role':'menuitem','_action':_0x2799a0['action']})};_0x262887['model']['bind']('isEnabled')['to'](_0x4f9356,'isActionsDropdownOpen',_0x55b986=>'function'!=typeof _0x2799a0['isEnabled']||(!_0x55b986||_0x2799a0['isEnabled'](_0x4f9356))),_0xca437['add'](_0x262887);}return _0xca437;}(_0x3d4233,_0x5a2b96);return _0x3d4233['bind']('isActionsDropdownOpen')['to'](_0x5e669d,'isOpen'),_0x5e669d['buttonView']['set']({'label':m(_0x5a8880,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x28e837}),_0x5e669d['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x5484ac['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x5484ac['to'](_0x2c651a=>_0x2c651a['stopPropagation']())}}),_0x5e669d['on']('execute',_0x4f8475=>{_0x3d4233['isReady']&&'function'==typeof _0x4f8475['source']['_action']&&_0x4f8475['source']['_action'](_0x3d4233);}),_0x59951c(_0x5e669d,_0x589c7a,{'role':'menu'}),_0x5e669d['listenTo'](_0x3d4233,'change:isActionsDropdownOpen',(_0x40254b,_0x3e0630,_0x3e7a6d)=>{if(_0x3e7a6d)for(const _0x4b4492 of _0x5e669d['listView']['items']){const _0xc12c1f=_0x4b4492['children']['first'],_0x3fa91b=_0x5a2b96['find'](_0x587d14=>_0x587d14['action']===_0xc12c1f['_action'])['isVisible'];_0x4b4492['isVisible']=void 0x0===_0x3fa91b||_0x3fa91b(_0x3d4233);}}),_0x5e669d;}class ai extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x220777(_0x3438c0){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x22689c,_0x89814b,_0x2114d3,_0x6bdabd){super(_0x22689c);const _0x417952=this['bindTemplate'],_0x32ebb3=function(_0x12a106,_0x4b1359){const _0x5c6fb4=Array['from'](_0x4b1359['authors'])['filter'](_0x5d7d53=>_0x5d7d53!=_0x4b1359['creator']);return _0x4b1359['creator']&&_0x5c6fb4['unshift'](_0x4b1359['creator']),_0x5c6fb4['map'](_0x4d19dc=>new oi(_0x12a106,_0x4d19dc,_0x4d19dc==_0x4b1359['creator']));}(_0x22689c,_0x89814b);this['id']=_0x89814b['id'],this['_revision']=_0x89814b,this['_requireRevisionName']=_0x6bdabd,this['bind']('name','createdAt')['to'](_0x89814b),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x36e802=>{return _0x2eff27=_0x22689c['uiLanguage'],(_0x1b006f=_0x36e802)['toLocaleDateString'](_0x2eff27,{'month':'long','day':'numeric'})+',\x20'+_0x1b006f['toLocaleTimeString'](_0x2eff27,{'hour':'numeric','minute':'numeric'});var _0x2eff27,_0x1b006f;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new mt(_0x22689c,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0xe059d4=>_0xe059d4||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x24cf42,_0x3b4495)=>_0x24cf42&&_0x3b4495),this['revisionActionsView']=_0x2114d3&&_0x2114d3['length']?ni(this,_0x2114d3):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x417952['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x417952['if']('isEnabled','ck-disabled',_0xc3809f=>!_0xc3809f),_0x417952['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x417952['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x417952['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':_0x417952['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':_0x32ebb3}]},this['revisionActionsView']],'on':{'click':_0x417952['to'](_0x368a96=>{_0x368a96['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x2eb7a2=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x2eb7a2,'change',()=>{this['_requireRevisionName']&&!_0x2eb7a2['value']||this['fire']('setName',{'id':this['id'],'name':_0x2eb7a2['value']}),_0x2eb7a2['value']||(_0x2eb7a2['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(_0x4b6207,_0x1bf8b1){const _0x562a6c=_0x1484ed['fromJSDate'](_0x4b6207)['setLocale'](_0x1bf8b1),_0x5a62eb=_0x1484ed['local'](),_0x1d0aff=_0x5a62eb['minus']({'days':0x1})['startOf']('day');let _0x54b729,_0x489922;return _0x562a6c['hasSame'](_0x5a62eb,'day')?(_0x54b729=_0x562a6c['startOf']('day')['toJSDate'](),_0x489922=_0x562a6c['toRelativeCalendar']()):_0x562a6c['hasSame'](_0x1d0aff,'day')?(_0x54b729=_0x1d0aff['toJSDate'](),_0x489922=_0x562a6c['toRelativeCalendar']()):_0x562a6c['hasSame'](_0x5a62eb,'week')?(_0x54b729=_0x562a6c['startOf']('week')['toJSDate'](),_0x489922=_0x562a6c['weekdayLong']||''):_0x562a6c['hasSame'](_0x5a62eb,'year')?(_0x54b729=_0x562a6c['startOf']('month')['toJSDate'](),_0x489922=_0x562a6c['monthLong']||''):(_0x54b729=_0x562a6c['startOf']('year')['toJSDate'](),_0x489922=String(_0x562a6c['year'])),{'startDate':_0x54b729,'localizedPeriodName':_0x489922};}class mi extends _0x3438c0{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x30990e,_0x481e88,_0x4a0e06,_0x40378c){super(_0x30990e);const _0x51a809=vi(_0x481e88,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x481e88,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x4a0e06,this['_requireRevisionName']=_0x40378c,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':_0x51a809}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x43cc45){const _0x3c93f5=new ai(this['locale'],_0x43cc45,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x3c93f5);}['removeRevision'](_0x94c180){const _0x1fc97e=this['revisionViews']['find'](_0x3c8c1c=>_0x3c8c1c['id']===_0x94c180['id']);this['revisionViews']['remove'](_0x1fc97e);}}class as extends _0x3438c0{constructor(_0x52913d){super(_0x52913d);const _0xac4209=new _0x2b6dd8();_0xac4209['content']=_0x533e5c,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0xac4209,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x52913d,'Revision\x20history')]}]});}}class di extends _0x3438c0{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0xc8c053,_0x496f5f,_0x12a917,_0x49631f){super(_0xc8c053);const _0x11e09b=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x496f5f,this['_revisionActions']=_0x12a917,this['_requireRevisionName']=_0x49631f,this['on']('select',(_0x1680b5,_0x14f4e6)=>{this['fire']('revisionSelected',_0x14f4e6);}),this['on']('setName',(_0xa09712,_0x2a8979)=>{this['fire']('revisionSetName',_0x2a8979);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0xc8c053),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x11e09b['if']('isEnabled','ck-disabled',_0x1f9ec7=>!_0x1f9ec7)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x4e9b62 of this['_revisions'])this['_addRevision'](_0x4e9b62);this['_revisions']['on']('add',(_0x50af32,_0x56ed3a)=>{this['_addRevision'](_0x56ed3a);}),this['_revisions']['on']('remove',(_0x43bf68,_0x14196d)=>{this['_removeRevision'](_0x14196d);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x22d476=>_0x22d476['revisionViews']['map'](_0x44b3ed=>_0x44b3ed))['flat']();}['selectRevision'](_0x7033b1){for(const _0x27c13a of this['revisionViews'])_0x7033b1&&_0x7033b1['id']===_0x27c13a['id']?_0x27c13a['select']():_0x27c13a['deselect']();}['highlightRevisions'](_0x5c4c85){for(const _0x13eca1 of this['revisionViews'])_0x5c4c85['some'](({id:_0x463c16})=>_0x463c16===_0x13eca1['id'])?_0x13eca1['highlight']():_0x13eca1['unhighlight']();}['_addRevision'](_0x36723c){const _0x524b25=vi(_0x36723c['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x300685=this['timePeriodViews']['get'](0x0);_0x300685&&_0x300685['startDate']['getTime']()===_0x524b25['getTime']()||(_0x300685=new mi(this['locale'],_0x524b25,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x300685)),_0x300685['addRevision'](_0x36723c);}['_removeRevision'](_0x45a490){const _0x288138=vi(_0x45a490['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x288138)['removeRevision'](_0x45a490);}['_getTimePeriodViewByStartDate'](_0x327392){return this['timePeriodViews']['find'](_0x58b0f1=>_0x58b0f1['startDate']['getTime']()===_0x327392['getTime']());}}class g extends _0x19eb44{['_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(_0x4172d8,_0x1c0584){super(_0x1c0584),this['sourceElement']=_0x4172d8,this['model']['document']['createRoot']();const _0x5df61b=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x5df61b);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x26d3ba,_0x12d61f){const _0xe93877=new this(_0x26d3ba,_0x12d61f);return await _0xe93877['initPlugins'](),await _0xe93877['ui']['init'](_0x26d3ba),await _0xe93877['data']['init'](_0xe93877['config']['get']('initialData')||''),_0xe93877['fire']('ready'),_0xe93877;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0x53f3b9{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x30ca03){function _0x331987(_0x2a7de6){return _0x2a7de6['map'](_0x778505=>String['fromCharCode'](_0x778505))['join']('');}super(_0x30ca03),this['result']='end',_0x30ca03[_0x331987([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x331987([0x76,0x69,0x65,0x77])][_0x331987([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x331987([0x61,0x75,0x74,0x6f]),_0x30ca03[_0x331987([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x331987([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x331987([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x331987([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x331987([0x6f,0x6b])});}}class k extends _0x53f3b9{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x3892a3){if(super(_0x3892a3),!this['editor']['config']['get']('revisionHistory'))throw new _0x5d082f('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x30bb7e=>this['_showRevisionViewer']({..._0x30bb7e,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x4d7725=>this['_closeRevisionViewer'](_0x4d7725)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x37df63=>this['_restoreRevision'](_0x37df63)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x5d3664){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x5d3664;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x103478){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x103478);}['getRevision'](_0x211da1){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x211da1);}['getRevisions'](_0x3f8b2c){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x3f8b2c||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x23bda0=this['editor'],_0x161363=_0x3f3f9e(_0x23bda0,p),_0x10ea93=_0x23bda0['plugins']['get']('RevisionTracker'),_0x40ae7d=_0x23bda0['plugins']['get']('Users')['users'];return _0x161363['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x161363['lazyRoots'],(_0x161363['plugins']['push'](Rt,d,g,class extends _0x53f3b9{static get['requires'](){return[d,'Users'];}['init'](){const _0x33911c=this['editor']['plugins']['get']('Users');for(const _0x391502 of _0x40ae7d)_0x391502['isAnonymous']||_0x33911c['getUser'](_0x391502['id'])||_0x33911c['addUser'](_0x391502);const _0x1ca3b9=_0x10ea93['repository']['getRevisions']();let _0x448b5b=null;const _0x5625cc=this['editor']['plugins']['get']('RevisionViewer');_0x5625cc['adapter']=_0x10ea93['adapter'],_0x5625cc['bind']('isEnabled')['to'](_0x10ea93),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x23bda0,'isReadOnly',_0x18ecc2=>!_0x18ecc2);for(const _0x2571ba of _0x1ca3b9){const _0x5bc3b0=null===_0x2571ba['creator'];if(_0x5bc3b0&&_0x2571ba['toVersion']===_0x2571ba['fromVersion'])continue;const _0x21fc7a=_0x2571ba['toJSON']();_0x5625cc['addRevisionData'](_0x21fc7a,(_0x2e0000,_0x409b15,_0x5af99f)=>{if(_0x5bc3b0){if(_0x448b5b)_0x448b5b['_update'](_0x2e0000,_0x409b15);else{if(!_0x409b15){const _0x400d29=_0x5af99f['toJSON']();_0x400d29['id']=_0x4e1ee9(),_0x10ea93['saveRevision'](_0x400d29,_0x5af99f['toVersion'])['then'](_0x26ec76=>{_0x448b5b=_0x26ec76;});}}}else _0x2571ba['_update'](_0x2e0000,_0x409b15);});}}},w),_0x161363);}['_enhanceShowRevisionViewerCallback'](){const _0x31374d=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x2aad6d=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x485bab=this['editor']['plugins']['get']('Autosave');await _0x485bab['save']();}else await _0x2aad6d['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x47efad=this['editor']['plugins']['get']('Dialog');_0x47efad['isOpen']&&_0x47efad['hide']();}const _0x529434=this['_getRevisionViewerEditorConfig']();return _0x31374d(_0x529434)['then'](_0x4a0775=>{return(this['_viewerEditor']=_0x4a0775,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x4a0775;})['catch'](_0x10b3c1=>(console['error'](_0x10b3c1),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x2d61cb=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'](),_0x2d61cb(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x1a72e1=this['editor']['plugins']['get']('Annotations');_0x1a72e1['refreshVisibility'](),_0x1a72e1['refreshPositioning']();}})));}['_showRevisionViewer'](_0x102afb){const _0x44ef65=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x58f97e=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x35fafa=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x35fafa,_0x102afb)['then'](_0x41fb62=>(_0x58f97e['style']['display']='block',_0x44ef65['style']['display']='none',_0x41fb62));}['_closeRevisionViewer'](_0x353f00){const _0x28de42=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x28de42['style']['display']='',_0x353f00['destroy']();}async['_restoreRevision'](_0x2cd007){const _0x2ff48f=this['editor'],_0x27fbe0=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x548fae=_0x2ff48f['plugins']['get']('RevisionTracker'),_0x118b55=_0x27fbe0['repository']['getRevision'](_0x2cd007);let _0x531549,_0x5c33e0,_0x5ab5c5;try{_0x531549=await _0x27fbe0['getRevisionData'](_0x118b55),_0x5c33e0=await _0x27fbe0['getRevisionRootsAttributes'](_0x118b55);}catch(_0x3b2b5c){return void console['error'](_0x3b2b5c);}_0x2ff48f['model']['change'](_0x552429=>{for(const _0x333d12 of Array['from'](_0x2ff48f['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x552429['removeMarker'](_0x333d12);}),_0x27fbe0['isReady']=!0x1,_0x2ff48f['model']['enqueueChange'](_0xee4eb6=>{_0xee4eb6['setSelection'](null),_0xee4eb6['removeSelectionAttribute'](_0x2ff48f['model']['document']['selection']['getAttributeKeys']());const _0x2f7989=Object['keys'](_0x531549);for(const _0x3e76cb of _0x2ff48f['model']['document']['roots'])'$graveyard'!=_0x3e76cb['rootName']&&_0x3e76cb['isAttached']()&&!_0x2f7989['includes'](_0x3e76cb['rootName'])&&_0xee4eb6['detachRoot'](_0x3e76cb);for(const _0x3ff690 of _0x2f7989){let _0x2f7e9e=_0x2ff48f['model']['document']['getRoot'](_0x3ff690);_0x2f7e9e&&_0x2f7e9e['isAttached']()||(_0x2f7e9e=_0xee4eb6['addRoot'](_0x3ff690));const _0x5df801=_0x5c33e0[_0x3ff690],_0x51aad0=Object['keys'](_0x5df801),_0x5adf3f=_0x531549[_0x3ff690];for(const _0x91543b of _0x2f7e9e['getAttributeKeys']())_0x51aad0['includes'](_0x91543b)||_0xee4eb6['removeAttribute'](_0x91543b,_0x2f7e9e);for(const _0x262bdc of _0x51aad0)_0xee4eb6['setAttribute'](_0x262bdc,_0x5c33e0[_0x3ff690][_0x262bdc],_0x2f7e9e);_0xee4eb6['remove'](_0xee4eb6['createRangeIn'](_0x2f7e9e)),_0xee4eb6['insert'](_0x2ff48f['data']['parse'](_0x5adf3f,_0x2f7e9e),_0x2f7e9e,0x0);}});const _0x59029f=m(_0x2ff48f['locale'],'Restored');if(_0x118b55['name'])_0x5ab5c5=-0x1==_0x118b55['name']['indexOf'](_0x59029f)?_0x59029f+':\x20'+_0x118b55['name']:_0x118b55['name'];else _0x5ab5c5=_0x59029f+':\x20'+(_0x118b55['createdAt']['toLocaleDateString'](_0x2ff48f['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x118b55['createdAt']['toLocaleTimeString'](_0x2ff48f['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x548fae['saveRevision']({'name':_0x5ab5c5}),_0x27fbe0['isReady']=!0x0,_0x2ff48f['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,k as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,le as RevisionViewerLoadingOverlay,g as RevisionViewerUI,j as RevisionsRepository,w 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(_0x321128){super(_0x321128),this['_revisionViewer']=_0x321128['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0xf469da=this['_revisionsRepository']['_revisions'],_0x4393d5=this['_createRevisionActions'](),_0x42828b=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new di(this['editor']['locale'],_0xf469da,_0x4393d5,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',(_0x64587f,_0x40e2a0)=>{_0x40e2a0['revisionViews']['on']('add',(_0x54314e,_0x294e0c)=>{_0x294e0c['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)),_0x42828b['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x50e707=this['_revisionsRepository']['getRevision'](0x0);if(_0x50e707){const _0x4894c8=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x50e707['id']);this['_revisionViewer']['compare'](_0x50e707,_0x4894c8);}}['_handleRevisionSelected'](_0x3e2865,_0x404c44){const _0x1ca79a=this['_revisionsRepository']['getRevision'](_0x404c44['id']),_0x2ba2dd=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x1ca79a['id']);this['_revisionViewer']['compare'](_0x1ca79a,_0x2ba2dd);}['_handleRevisionSetName'](_0x1d5793,_0x42f11f){this['_revisionsRepository']['getRevision'](_0x42f11f['id'])['setName'](_0x42f11f['name']);}['_handleDiffChange'](_0x5717d8,_0x4e8cc3,_0x59c62d){const _0x2bf2cd=this['_revisionsRepository']['getRevisionsInDiff'](_0x59c62d);_0x2bf2cd['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x2bf2cd),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x2bf2cd[0x0]));}['_createRevisionActions'](){const _0x17d3b8=this['editor'],_0x3c988d=g['availableRevisionActions'],_0x56f324=_0x17d3b8['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x56f324['length'])return _0x56f324['map'](_0x508692=>{const _0x5b0883='string'==typeof _0x508692?Object['assign']({},_0x3c988d[_0x508692]):_0x508692;return _0x5b0883['action']=_0x5b0883['action']['bind'](this,_0x17d3b8),_0x5b0883['isVisible']&&(_0x5b0883['isVisible']=_0x5b0883['isVisible']['bind'](this,_0x17d3b8)),_0x5b0883;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x5af493},_0xffd3d4)=>{const _0x374449=_0x5af493['get'](d),_0x29a908=_0x374449['repository'];let _0x4640d7=_0x374449['diff']['newRevisionId'],_0x11cd35=_0xffd3d4['id'];_0x29a908['getIndex'](_0x4640d7)>_0x29a908['getIndex'](_0x11cd35)&&([_0x4640d7,_0x11cd35]=[_0x11cd35,_0x4640d7]),_0x374449['compare'](_0x4640d7,_0x11cd35);},'isVisible':({plugins:_0x18a784},_0x300145)=>{const _0x525084=_0x18a784['get'](d);return!(_0x525084['repository']['getRevisionsInDiff'](_0x525084['diff'])['length']>0x2)&&!_0x300145['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x2652d8,{id:_0x5277ea})=>{_0x2652d8['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x5277ea);},'isVisible':({plugins:_0x518202},_0x219ab3)=>!!_0x518202['get'](d)['repository']['getLaterVisibleRevision'](_0x219ab3['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0xc9033a},{id:_0x2a06a8,revisionNameView:_0x507f22})=>{const _0x2193c9=_0xc9033a['get'](d),_0x4d38c1=_0x2193c9['repository']['getEarlierVisibleRevision'](_0x2a06a8);_0x2193c9['compare'](_0x2a06a8,_0x4d38c1),_0x507f22['focus'](),_0x507f22['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x357170,_0x422cfd){super(_0x357170),this['_view']=_0x422cfd,this['_toolbarConfig']=ot(_0x357170['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x2cf2f6){const _0x49be0e=this['editor'],_0x4fbc0a=this['view'],_0x8054e3=_0x49be0e['editing']['view'],_0x322e9d=_0x4fbc0a['editable'],_0x103685=_0x8054e3['document']['getRoot']();_0x322e9d['name']=_0x103685['rootName'],_0x4fbc0a['render']();const _0x381f58=_0x322e9d['element'];this['setEditableElement'](_0x322e9d['name'],_0x381f58),_0x4fbc0a['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x8054e3['attachDomRoot'](_0x381f58),this['_elementReplacer']['replace'](_0x2cf2f6,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x51f486=this['view'],_0x1995ce=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x1995ce['detachDomRoot'](_0x51f486['editable']['name']),_0x51f486['destroy']();}['_initToolbar'](){const _0x3516c5=this['view'];_0x3516c5['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x3516c5['stickyPanel']['limiterElement']=_0x3516c5['element'],_0x3516c5['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x205c14})=>_0x205c14),_0x3516c5['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x3516c5['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0xb0fad1,_0x110b6b,_0x24dae3={}){super(_0xb0fad1),this['stickyPanel']=new lt(_0xb0fad1),this['toolbar']=new nt(_0xb0fad1,{'shouldGroupWhenFull':_0x24dae3['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0xb0fad1,_0x110b6b);}['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(_0x5739ab,_0x20464e){super(_0x20464e),this['sourceElement']=_0x5739ab,this['model']['document']['createRoot']();const _0x2971a6=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x2971a6);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x53d6c0,_0x5ca453){const _0x32273e=new this(_0x53d6c0,_0x5ca453);return await _0x32273e['initPlugins'](),await _0x32273e['ui']['init'](_0x53d6c0),await _0x32273e['data']['init'](_0x32273e['config']['get']('initialData')||''),_0x32273e['fire']('ready'),_0x32273e;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0x19eb44{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x506271){function _0x2740f3(_0x770a7b){return _0x770a7b['map'](_0x332f33=>String['fromCharCode'](_0x332f33))['join']('');}super(_0x506271),this['result']='end',_0x506271[_0x2740f3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2740f3([0x76,0x69,0x65,0x77])][_0x2740f3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2740f3([0x61,0x75,0x74,0x6f]),_0x506271[_0x2740f3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x2740f3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2740f3([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x2740f3([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x2740f3([0x6f,0x6b])});}}class k extends _0x19eb44{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x38750b){if(super(_0x38750b),!this['editor']['config']['get']('revisionHistory'))throw new _0x2e3aef('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x3df48d=>this['_showRevisionViewer']({..._0x3df48d,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x23ea9e=>this['_closeRevisionViewer'](_0x23ea9e)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x1d6971=>this['_restoreRevision'](_0x1d6971)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x207bdc){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x207bdc;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x56e1fb){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x56e1fb);}['getRevision'](_0x421382){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x421382);}['getRevisions'](_0x1dfa90){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x1dfa90||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x180210=this['editor'],_0x1381df=_0x388719(_0x180210,p),_0x4ce8b7=_0x180210['plugins']['get']('RevisionTracker'),_0x1adaf4=_0x180210['plugins']['get']('Users')['users'];return _0x1381df['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x1381df['lazyRoots'],(_0x1381df['plugins']['push'](Rt,d,w,class extends _0x19eb44{static get['requires'](){return[d,'Users'];}['init'](){const _0x2ebf12=this['editor']['plugins']['get']('Users');for(const _0x11b112 of _0x1adaf4)_0x11b112['isAnonymous']||_0x2ebf12['getUser'](_0x11b112['id'])||_0x2ebf12['addUser'](_0x11b112);const _0x5c48f8=_0x4ce8b7['repository']['getRevisions']();let _0xfd9a8d=null;const _0x441727=this['editor']['plugins']['get']('RevisionViewer');_0x441727['adapter']=_0x4ce8b7['adapter'],_0x441727['bind']('isEnabled')['to'](_0x4ce8b7),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x180210,'isReadOnly',_0x4de9c9=>!_0x4de9c9);for(const _0x2eede7 of _0x5c48f8){const _0x1f6a81=null===_0x2eede7['creator'];if(_0x1f6a81&&_0x2eede7['toVersion']===_0x2eede7['fromVersion'])continue;const _0x21b71a=_0x2eede7['toJSON']();_0x441727['addRevisionData'](_0x21b71a,(_0x49e93d,_0x330be9,_0x55f82e)=>{if(_0x1f6a81){if(_0xfd9a8d)_0xfd9a8d['_update'](_0x49e93d,_0x330be9);else{if(!_0x330be9){const _0xbcc0d9=_0x55f82e['toJSON']();_0xbcc0d9['id']=_0x2d3c1e(),_0x4ce8b7['saveRevision'](_0xbcc0d9,_0x55f82e['toVersion'])['then'](_0x2554c9=>{_0xfd9a8d=_0x2554c9;});}}}else _0x2eede7['_update'](_0x49e93d,_0x330be9);});}}},g),_0x1381df);}['_enhanceShowRevisionViewerCallback'](){const _0xb62280=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x21f3b3=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x90ba35=this['editor']['plugins']['get']('Autosave');await _0x90ba35['save']();}else await _0x21f3b3['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x5e09ae=this['editor']['plugins']['get']('Dialog');_0x5e09ae['isOpen']&&_0x5e09ae['hide']();}const _0x4c65e7=this['_getRevisionViewerEditorConfig']();return _0xb62280(_0x4c65e7)['then'](_0x2c9f78=>{return(this['_viewerEditor']=_0x2c9f78,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x2c9f78;})['catch'](_0x59266d=>(console['error'](_0x59266d),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x4e0571=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'](),_0x4e0571(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x5daee3=this['editor']['plugins']['get']('Annotations');_0x5daee3['refreshVisibility'](),_0x5daee3['refreshPositioning']();}})));}['_showRevisionViewer'](_0x1ad7d5){const _0x4bca6d=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x9e7c30=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x1f1e30=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x1f1e30,_0x1ad7d5)['then'](_0x5420d9=>(_0x9e7c30['style']['display']='block',_0x4bca6d['style']['display']='none',_0x5420d9));}['_closeRevisionViewer'](_0x2db724){const _0x571c23=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x571c23['style']['display']='',_0x2db724['destroy']();}async['_restoreRevision'](_0x4374a5){const _0x3258b0=this['editor'],_0x20f50f=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x469aa8=_0x3258b0['plugins']['get']('RevisionTracker'),_0x214364=_0x20f50f['repository']['getRevision'](_0x4374a5);let _0x477871,_0x2b7739,_0x36eea9;try{_0x477871=await _0x20f50f['getRevisionData'](_0x214364),_0x2b7739=await _0x20f50f['getRevisionRootsAttributes'](_0x214364);}catch(_0x4b0b20){return void console['error'](_0x4b0b20);}_0x3258b0['model']['change'](_0x2d63e5=>{for(const _0x3ffd43 of Array['from'](_0x3258b0['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x2d63e5['removeMarker'](_0x3ffd43);}),_0x20f50f['isReady']=!0x1,_0x3258b0['model']['enqueueChange'](_0xd171b6=>{_0xd171b6['setSelection'](null),_0xd171b6['removeSelectionAttribute'](_0x3258b0['model']['document']['selection']['getAttributeKeys']());const _0x42f623=Object['keys'](_0x477871);for(const _0x835ea8 of _0x3258b0['model']['document']['roots'])'$graveyard'!=_0x835ea8['rootName']&&_0x835ea8['isAttached']()&&!_0x42f623['includes'](_0x835ea8['rootName'])&&_0xd171b6['detachRoot'](_0x835ea8);for(const _0x2bf2be of _0x42f623){let _0x44e305=_0x3258b0['model']['document']['getRoot'](_0x2bf2be);_0x44e305&&_0x44e305['isAttached']()||(_0x44e305=_0xd171b6['addRoot'](_0x2bf2be));const _0x3f3a5=_0x2b7739[_0x2bf2be],_0x4c88f1=Object['keys'](_0x3f3a5),_0x4b53eb=_0x477871[_0x2bf2be];for(const _0x4ac727 of _0x44e305['getAttributeKeys']())_0x4c88f1['includes'](_0x4ac727)||_0xd171b6['removeAttribute'](_0x4ac727,_0x44e305);for(const _0x2655b2 of _0x4c88f1)_0xd171b6['setAttribute'](_0x2655b2,_0x2b7739[_0x2bf2be][_0x2655b2],_0x44e305);_0xd171b6['remove'](_0xd171b6['createRangeIn'](_0x44e305)),_0xd171b6['insert'](_0x3258b0['data']['parse'](_0x4b53eb,_0x44e305),_0x44e305,0x0);}});const _0x5d5c08=m(_0x3258b0['locale'],'Restored');if(_0x214364['name'])_0x36eea9=-0x1==_0x214364['name']['indexOf'](_0x5d5c08)?_0x5d5c08+':\x20'+_0x214364['name']:_0x214364['name'];else _0x36eea9=_0x5d5c08+':\x20'+(_0x214364['createdAt']['toLocaleDateString'](_0x3258b0['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x214364['createdAt']['toLocaleTimeString'](_0x3258b0['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x469aa8['saveRevision']({'name':_0x36eea9}),_0x20f50f['isReady']=!0x0,_0x3258b0['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};
|