@ckeditor/ckeditor5-revision-history 44.0.0-alpha.0 → 44.0.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/dist/index.js +6 -6
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +8 -8
- package/src/changeitem.js +2 -2
- package/src/editor/revisionviewereditor.js +2 -2
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/index.js +1 -1
- package/src/revision.js +2 -2
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +2 -2
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ObservableMixin as
|
|
24
|
-
_0x6de063(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x398dd8){super(),this['id']=_0x398dd8['id']||_0x2c16be(),this['creator']=_0x398dd8['creator']||null,this['authors']=_0x398dd8['authors']||[],this['diffData']=_0x398dd8['diffData']||null,this['toVersion']=_0x398dd8['toVersion']||0x0,this['fromVersion']=_0x398dd8['fromVersion']||0x0,this['set']('name',_0x398dd8['name']||''),this['set']('createdAt',_0x398dd8['createdAt']||new Date()),this['set']('attributes',_0x398dd8['attributes']||{});}['setName'](_0x485437){this['_update']({'name':_0x485437});}['setAttribute'](_0x322fb1,_0x5dd1e2){const _0x7e67ce=_0x57ef62(this['attributes']);_0x144e7c(_0x7e67ce,_0x322fb1,_0x5dd1e2),this['_update']({'attributes':_0x7e67ce});}['removeAttribute'](_0x45905f){const _0x480b9b=_0x57ef62(this['attributes']);_0x36b362(_0x480b9b,_0x45905f),this['_update']({'attributes':_0x480b9b});}['_update'](_0x4c8ef7,_0x1d6478=!0x1){let _0x517ad8=!0x1;const _0xaff24c={'id':this['id']},_0x5b3d6c=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x3c8c60 of _0x5b3d6c){const _0x2afdb9=_0x4c8ef7[_0x3c8c60];void 0x0!==_0x2afdb9&&_0x2afdb9!==this[_0x3c8c60]&&(this[_0x3c8c60]=_0x2afdb9,_0xaff24c[_0x3c8c60]=_0x2afdb9,_0x517ad8=!0x0);}_0x517ad8&&(_0xaff24c['authors']&&(_0xaff24c['authorsIds']=_0xaff24c['authors']['map'](_0x5a0910=>_0x5a0910['id']),delete _0xaff24c['authors']),this['fire']('_update',_0xaff24c,_0x1d6478));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x1dad03=>_0x1dad03['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x51bff9{['_revisions'];static get['requires'](){return[_0x532a7f];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x472696){super(_0x472696),this['_revisions']=new _0x589480();}['afterInit'](){!async function(_0x2e6299){const _0x373c1d=_0x106780([0x62,0x65,0x48,0x59,0x55,0x35,0x31,0x73,0x6e,0x5a,0x67,0x46,0x6d,0x53,0x32,0x44,0x63,0x79,0x64,0x6b,0x45,0x36,0x75,0x54,0x51,0x77,0x47,0x57,0x34,0x58,0x74,0x66,0x76,0x70,0x42,0x72,0x69,0x56,0x50,0x33,0x4c,0x4a,0x6a,0x30,0x38,0x6f,0x68,0x4e,0x41,0x7a,0x71,0x61,0x52,0x39,0x6c,0x43,0x37,0x4d,0x49,0x78,0x4f,0x4b]),_0x5bd4fb=0xeb829,_0x4a27f4=0x58fe3bcd,_0x15a191=0x58f96ca5^_0x4a27f4,_0x45da42=window[_0x106780([0x44,0x61,0x74,0x65])][_0x106780([0x6e,0x6f,0x77])](),_0x1f5265=_0x2e6299[_0x106780([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3e2e1d=new window[(_0x106780([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x49a073=>{_0x1f5265[_0x106780([0x6f,0x6e,0x63,0x65])](_0x106780([0x72,0x65,0x61,0x64,0x79]),_0x49a073);}),_0x1cbba3={[_0x106780([0x6b,0x74,0x79])]:_0x106780([0x45,0x43]),[_0x106780([0x75,0x73,0x65])]:_0x106780([0x73,0x69,0x67]),[_0x106780([0x63,0x72,0x76])]:_0x106780([0x50,0x2d,0x32,0x35,0x36]),[_0x106780([0x78])]:_0x106780([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]),[_0x106780([0x79])]:_0x106780([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]),[_0x106780([0x61,0x6c,0x67])]:_0x106780([0x45,0x53,0x32,0x35,0x36])},_0x4973f1=_0x1f5265[_0x106780([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x106780([0x67,0x65,0x74])](_0x106780([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3410f9(){let _0x26c70e,_0x502804=null,_0x3d6d3c=null;try{if(_0x4973f1==_0x106780([0x47,0x50,0x4c]))return _0x106780([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x26c70e=_0x26ab54(),!_0x26c70e)return _0x106780([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x26c70e[_0x106780([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3d6d3c=_0x340e05(_0x26c70e[_0x106780([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x26c70e[_0x106780([0x6a,0x74,0x69])])),await _0x587c6a()?_0x2279c4()?_0x3d45f4()?_0x106780([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5cc2d7()?(_0x26c70e[_0x106780([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x106780([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x502804=_0x147d19(_0x106780([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x26c70e[_0x106780([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x106780([0x74,0x72,0x69,0x61,0x6c])&&(_0x502804=_0x147d19(_0x106780([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x26c70e[_0x106780([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x106780([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x502804=_0x147d19(_0x106780([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x51f2ce()):_0x106780([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x106780([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x106780([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x389830){return _0x106780([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3d45f4(){const _0x416a9b=[_0x106780([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x106780([0x74,0x72,0x69,0x61,0x6c])][_0x106780([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x26c70e[_0x106780([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x45da42/0x3e8:0xe10*_0x15a191;return _0x26c70e[_0x106780([0x65,0x78,0x70])]<_0x416a9b;}function _0x2279c4(){const _0xbd6006=_0x26c70e[_0x106780([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0xbd6006&&(!!_0xbd6006[_0x106780([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x106780([0x2a]))||(!!_0xbd6006[_0x106780([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x106780([0x52,0x48]))||!(!_0xbd6006[_0x106780([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x106780([0x52,0x52,0x48]))||!_0x43c166())));}function _0x5cc2d7(){const _0x5b6b08=_0x26c70e[_0x106780([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5b6b08||0x0==_0x5b6b08[_0x106780([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x400c1d}=new URL(window[_0x106780([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5b6b08[_0x106780([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x400c1d))return!0x0;const _0x36cfa5=_0x400c1d[_0x106780([0x73,0x70,0x6c,0x69,0x74])](_0x106780([0x2e]));return _0x5b6b08[_0x106780([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x495c82=>_0x495c82[_0x106780([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x106780([0x2a])))[_0x106780([0x6d,0x61,0x70])](_0x228e44=>_0x228e44[_0x106780([0x73,0x70,0x6c,0x69,0x74])](_0x106780([0x2e])))[_0x106780([0x73,0x6f,0x6d,0x65])](_0x5b6265=>_0x36cfa5[_0x106780([0x65,0x76,0x65,0x72,0x79])]((_0x3624f3,_0x3477bb)=>_0x5b6265[_0x3477bb]===_0x3624f3||_0x5b6265[_0x3477bb]===_0x106780([0x2a])));}function _0x51f2ce(){return _0x502804&&_0x3d6d3c?new window[(_0x106780([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4437aa,_0x299ead)=>{_0x502804[_0x106780([0x74,0x68,0x65,0x6e])](_0x4437aa,_0x299ead),_0x3d6d3c[_0x106780([0x74,0x68,0x65,0x6e])](_0x201796=>{_0x201796!=_0x106780([0x56,0x61,0x6c,0x69,0x64])&&_0x4437aa(_0x201796);},_0x299ead);}):_0x502804||_0x3d6d3c||_0x106780([0x56,0x61,0x6c,0x69,0x64]);}}function _0x340e05(_0x101c8a,_0xb1615f){return new window[(_0x106780([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x35e0bb=>{if(_0x27683e())return _0x35e0bb(_0x106780([0x56,0x61,0x6c,0x69,0x64]));_0x23fdfc(),_0x1f5265[_0x106780([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x106780([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x27939a=!0x1;const _0x334d9e=_0x2c16be();function _0x987656(_0x2dfc35){return!!_0x2dfc35&&(typeof _0x2dfc35===_0x106780([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2dfc35===_0x106780([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2dfc35[_0x106780([0x74,0x68,0x65,0x6e])]===_0x106780([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2dfc35[_0x106780([0x63,0x61,0x74,0x63,0x68])]===_0x106780([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3d6d20(_0xd4cbb5){_0x36817b(_0xd4cbb5)[_0x106780([0x74,0x68,0x65,0x6e])](_0x5af353=>{if(!_0x5af353||_0x5af353[_0x106780([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x106780([0x6f,0x6b]))return _0x106780([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5cc448(_0x394669(_0x334d9e+_0xb1615f))!=_0x5af353[_0x106780([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x106780([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x106780([0x56,0x61,0x6c,0x69,0x64]);})[_0x106780([0x74,0x68,0x65,0x6e])](_0x126dbb=>(_0x546f50(),_0x126dbb),()=>{const _0xe11545=_0x2b25af();return null==_0xe11545?(_0x546f50(),_0x106780([0x56,0x61,0x6c,0x69,0x64])):_0x106780(_0x45da42-_0xe11545>(0x7cf2bfcd^_0x4a27f4)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x106780([0x74,0x68,0x65,0x6e])](_0x35e0bb)[_0x106780([0x63,0x61,0x74,0x63,0x68])](()=>{_0x35e0bb(_0x106780([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x17d0c9=0x58c8d54d^_0x4a27f4;function _0x546f50(){const _0x1967b9=_0x106780([0x6c,0x6c,0x63,0x74,0x2d])+_0x5cc448(_0x394669(_0x101c8a)),_0x1a5d5b=_0x1d2224(_0x5cc448(window[_0x106780([0x4d,0x61,0x74,0x68])][_0x106780([0x63,0x65,0x69,0x6c])](_0x45da42/_0x17d0c9)));window[_0x106780([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x106780([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1967b9,_0x1a5d5b);}function _0x2b25af(){const _0xbaeee7=_0x106780([0x6c,0x6c,0x63,0x74,0x2d])+_0x5cc448(_0x394669(_0x101c8a)),_0x277b10=window[_0x106780([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x106780([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xbaeee7);return _0x277b10?window[_0x106780([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1d2224(_0x277b10),0x10)*_0x17d0c9:null;}function _0x36817b(_0xf17497){return new window[(_0x106780([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4cf455,_0x5749e8)=>{_0xf17497[_0x106780([0x74,0x68,0x65,0x6e])](_0x4cf455,_0x5749e8),window[_0x106780([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5749e8,0x58ffef0d^_0x4a27f4);});}}_0x1f5265[_0x106780([0x6f,0x6e])](_0x106780([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x19112e,_0x4cfbc1)=>{if(_0x4cfbc1[0x0]!=_0x101c8a)return _0x35e0bb(_0x106780([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4cfbc1[0x1]={..._0x4cfbc1[0x1],[_0x106780([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x334d9e};},{[_0x106780([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x106780([0x68,0x69,0x67,0x68])}),_0x1f5265[_0x106780([0x6f,0x6e])](_0x106780([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5a5e99=>{_0x987656(_0x5a5e99[_0x106780([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x27939a=!0x0,_0x3d6d20(_0x5a5e99[_0x106780([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x106780([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x106780([0x6c,0x6f,0x77])}),_0x3e2e1d[_0x106780([0x74,0x68,0x65,0x6e])](()=>{_0x27939a||_0x35e0bb(_0x106780([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x27683e(){return _0x1f5265[_0x106780([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x106780([0x76,0x69,0x65,0x77])][_0x106780([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x106780([0x61,0x75,0x74,0x6f]);}function _0x23fdfc(){_0x1f5265[_0x106780([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x106780([0x76,0x69,0x65,0x77])][_0x106780([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x106780([0x61,0x75,0x74,0x6f]);}}function _0x147d19(_0x2409f0){const _0x372b8b=[new window[(_0x106780([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3d6eae=>setTimeout(_0x3d6eae,0x58f70501^_0x4a27f4)),_0x3e2e1d[_0x106780([0x74,0x68,0x65,0x6e])](()=>new window[(_0x106780([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x497f4f=>{const _0x4ae9ce=0x58fe3bca^_0x4a27f4,_0x435080=_0x2e6299[_0x106780([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0xc7b9a7(){_0x435080[_0x106780([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x4ae9ce&&_0x497f4f();}_0xc7b9a7(),_0x435080[_0x106780([0x6f,0x6e])](_0x106780([0x61,0x64,0x64]),_0xc7b9a7);})),new window[(_0x106780([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x46ae86=>{function _0x4de11b(){for(const _0xb4bd3a in window)if(window[_0x106780([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x106780([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0xb4bd3a))&&window[_0xb4bd3a]==_0x5bd4fb)return _0x46ae86();_0x1f5265[_0x106780([0x73,0x74,0x61,0x74,0x65])]!=_0x106780([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x106780([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4de11b,0x58fe2845^_0x4a27f4);}_0x3205b7(_0x106780([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x4de11b();})];return window[_0x106780([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x106780([0x72,0x61,0x63,0x65])](_0x372b8b)[_0x106780([0x74,0x68,0x65,0x6e])](()=>_0x2409f0);}async function _0x3bd28b(){if(await _0x3e2e1d,_0x3205b7(_0x106780([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x3d7028=_0x2e6299[_0x106780([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x14b79e=_0x2e6299[_0x106780([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])](_0x3d7028[_0x106780([0x69,0x64])]),_0x53118a=_0x59e9a2(_0x106780([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x53118a[_0x106780([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x3d7028['id'],_0x14b79e?_0x14b79e['id']:null,!0x0),_0x53118a[_0x106780([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x106780([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x53118a[_0x106780([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x53118a[_0x106780([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x42654d,void(_0x53118a[_0x106780([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x42654d);}if(_0x3205b7(_0x106780([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x41e65a=_0x59e9a2(_0x106780([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x41e65a[_0x106780([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x106780([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x41e65a[_0x106780([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x41e65a[_0x106780([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x42654d,_0x41e65a[_0x106780([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x42654d;}_0x1f5265[_0x106780([0x6d,0x6f,0x64,0x65,0x6c])][_0x106780([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x42654d,_0x1f5265[_0x106780([0x6d,0x6f,0x64,0x65,0x6c])][_0x106780([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x42654d,_0x1f5265[_0x106780([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x106780([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x43c166(){return _0x3205b7(_0x106780([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x59e9a2(_0x106780([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x106780([0x73,0x74,0x61,0x74,0x65])]==_0x106780([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1d01f0(_0x46055f){const _0x23356e=_0x497840();_0x1f5265[_0x23356e]=_0x106780([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])+_0x46055f,_0x46055f[_0x106780([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x106780([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x497840()]=_0x5bd4fb),_0x46055f!=_0x106780([0x56,0x61,0x6c,0x69,0x64])&&_0x3bd28b();}function _0x497840(){const _0x5e5744=window[_0x106780([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x106780([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x106780([0x6e,0x6f,0x77])]())[_0x106780([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x106780([0x2e]),'');let _0x4b19a8=_0x106780([0x62]);for(let _0xc8ee13=0x0;_0xc8ee13<_0x5e5744[_0x106780([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xc8ee13+=0x2){let _0x432ddb=window[_0x106780([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5e5744[_0x106780([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xc8ee13,_0xc8ee13+0x2));_0x432ddb>=_0x373c1d[_0x106780([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x432ddb-=_0x373c1d[_0x106780([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4b19a8+=_0x373c1d[_0x432ddb];}return _0x4b19a8;}function _0x26ab54(){const _0x5acbd4=_0x4973f1[_0x106780([0x73,0x70,0x6c,0x69,0x74])](_0x106780([0x2e]));if(0x3!=_0x5acbd4[_0x106780([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3580c9(_0x5acbd4[0x1]);function _0x3580c9(_0x2fd15c){const _0x2a8da8=_0x56190b(_0x2fd15c);return _0x2a8da8&&_0xd0b659()?_0x2a8da8:null;function _0xd0b659(){const _0x45d90e=_0x2a8da8[_0x106780([0x6a,0x74,0x69])],_0x33d186=window[_0x106780([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x45d90e[_0x106780([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x45d90e[_0x106780([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x32a8a1={..._0x2a8da8,[_0x106780([0x6a,0x74,0x69])]:_0x45d90e[_0x106780([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x45d90e[_0x106780([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x32a8a1[_0x106780([0x76,0x63])],_0x394669(_0x32a8a1)==_0x33d186;}}}async function _0x587c6a(){let _0x32f5f4=!0x0;try{const _0x517163=_0x4973f1[_0x106780([0x73,0x70,0x6c,0x69,0x74])](_0x106780([0x2e])),[_0x312197,_0x4c2d5b,_0x52ab8d]=_0x517163;return _0xff1d92(_0x312197),await _0x2d46d8(_0x312197,_0x4c2d5b,_0x52ab8d),_0x32f5f4;}catch(_0x2fbc04){return!0x1;}function _0xff1d92(_0x497ad1){const _0x5adae0=_0x56190b(_0x497ad1);_0x5adae0&&_0x5adae0[_0x106780([0x61,0x6c,0x67])]==_0x106780([0x45,0x53,0x32,0x35,0x36])||(_0x32f5f4=!0x1);}async function _0x2d46d8(_0x4814ce,_0x4ab6b4,_0xb82aeb){const _0x4b2e6b=window[_0x106780([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x106780([0x66,0x72,0x6f,0x6d])](_0x349f25(_0xb82aeb),_0x13ed6f=>_0x13ed6f[_0x106780([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x21c396=new window[(_0x106780([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x106780([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4814ce+_0x106780([0x2e])+_0x4ab6b4),_0x54dfaa=window[_0x106780([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x106780([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x54dfaa)return;const _0x38922b=await _0x54dfaa[_0x106780([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x106780([0x6a,0x77,0x6b]),_0x1cbba3,{[_0x106780([0x6e,0x61,0x6d,0x65])]:_0x106780([0x45,0x43,0x44,0x53,0x41]),[_0x106780([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x106780([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x106780([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x54dfaa[_0x106780([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x106780([0x6e,0x61,0x6d,0x65])]:_0x106780([0x45,0x43,0x44,0x53,0x41]),[_0x106780([0x68,0x61,0x73,0x68])]:{[_0x106780([0x6e,0x61,0x6d,0x65])]:_0x106780([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x38922b,_0x4b2e6b,_0x21c396)||(_0x32f5f4=!0x1);}}function _0x56190b(_0x528ea){return _0x528ea[_0x106780([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x106780([0x65,0x79]))?JSON[_0x106780([0x70,0x61,0x72,0x73,0x65])](_0x349f25(_0x528ea)):null;}function _0x349f25(_0x3c09fc){return window[_0x106780([0x61,0x74,0x6f,0x62])](_0x3c09fc[_0x106780([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x106780([0x2b]))[_0x106780([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x106780([0x2f])));}function _0x394669(_0x673e3){let _0x23a336=0x1505;function _0x1bb3ed(_0x1b9ce0){for(let _0x3c581c=0x0;_0x3c581c<_0x1b9ce0[_0x106780([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3c581c++){const _0x29c1ef=_0x1b9ce0[_0x106780([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3c581c);_0x23a336=(_0x23a336<<0x5)+_0x23a336+_0x29c1ef,_0x23a336&=_0x23a336;}}function _0x37fb6e(_0x54ceaf){Array[_0x106780([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x54ceaf)?_0x54ceaf[_0x106780([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x37fb6e):_0x54ceaf&&typeof _0x54ceaf==_0x106780([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x106780([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x54ceaf)[_0x106780([0x73,0x6f,0x72,0x74])]()[_0x106780([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5e680e,_0x424e05])=>{_0x1bb3ed(_0x5e680e),_0x37fb6e(_0x424e05);}):_0x1bb3ed(window[_0x106780([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x54ceaf));}return _0x37fb6e(_0x673e3),_0x23a336>>>0x0;}function _0x5cc448(_0x18450b){return _0x18450b[_0x106780([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x106780([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x106780([0x30]));}function _0x1d2224(_0x4fc07d){return _0x4fc07d[_0x106780([0x73,0x70,0x6c,0x69,0x74])]('')[_0x106780([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x106780([0x6a,0x6f,0x69,0x6e])]('');}function _0x3205b7(_0x3c689e){return _0x1f5265[_0x106780([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x106780([0x68,0x61,0x73])](_0x3c689e);}function _0x59e9a2(_0x367b8f){return _0x1f5265[_0x106780([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x106780([0x67,0x65,0x74])](_0x367b8f);}function _0x42654d(){}function _0x106780(_0x24a51e){return _0x24a51e['map'](_0x3d642b=>String['fromCharCode'](_0x3d642b))['join']('');}_0x1d01f0(await _0x3410f9());}(this);}['createRevision'](_0x5dedfb){const _0x5e9722=this['editor']['plugins']['get']('Users');return new a({'id':_0x5dedfb['id'],'name':_0x5dedfb['name'],'creator':_0x5dedfb['creatorId']?_0x5e9722['getUser'](_0x5dedfb['creatorId']):null,'diffData':_0x5dedfb['diffData']||_0x5dedfb['data'],'authors':_0x5dedfb['authorsIds']['map'](_0x358d78=>_0x5e9722['getUser'](_0x358d78)),'createdAt':new Date(_0x5dedfb['createdAt']),'attributes':_0x5dedfb['attributes'],'fromVersion':_0x5dedfb['fromVersion'],'toVersion':_0x5dedfb['toVersion']});}['addRevision'](_0x44b744,_0x30ee1b=0x0){this['_revisions']['add'](_0x44b744,_0x30ee1b);}['getRevision'](_0x538055){return this['_revisions']['get'](_0x538055);}['getRevisions'](_0x5abea3={'toJSON':!0x1}){const _0x465340=Array['from'](this['_revisions']);return _0x465340['reverse'](),_0x5abea3['toJSON']?_0x465340['map'](_0x58f8a7=>_0x58f8a7['toJSON']()):_0x465340;}['getIndex'](_0x158d83){return this['_revisions']['getIndex'](_0x158d83);}['getEarlierVisibleRevision'](_0x3de308){const [,_0x46dd17]=this['getRevisionsIterator'](_0x3de308,{'direction':'earlier'});return _0x46dd17;}['getLaterVisibleRevision'](_0x29939f){const [,_0x5cf7e2]=this['getRevisionsIterator'](_0x29939f,{'direction':'later'});return _0x5cf7e2;}['getRevisionsInDiff'](_0x4b56d6){const _0x3b64a4=[];for(const _0x5d8d13 of this['getRevisionsIterator'](_0x4b56d6['newRevisionId']))if(_0x3b64a4['push'](_0x5d8d13),_0x5d8d13['id']===_0x4b56d6['oldRevisionId'])break;return _0x3b64a4;}*['getRevisionsIterator'](_0x2a9c5c,{direction:_0x5add71='earlier',filter:_0x2b299a=()=>!0x0}={}){const _0x3cade6='earlier'===_0x5add71?0x1:-0x1;let _0xe4fe4=this['_revisions']['get'](_0x2a9c5c),_0x5ed5dc=this['getIndex'](_0xe4fe4);for(yield _0xe4fe4;_0xe4fe4;){if(_0x5ed5dc+=_0x3cade6,_0xe4fe4=this['getRevision'](_0x5ed5dc),!_0xe4fe4)return;_0x2b299a(_0xe4fe4)&&(yield _0xe4fe4);}}}function R(_0x5e56cc,_0x2e0c67,_0x29f6f5){const t=_0x5e56cc['t'];switch(_0x2e0c67){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'},_0x29f6f5);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x29f6f5);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 C={'c':_0x53de37,'a':_0x3a1a5c,'e':_0x11dac0,'r':_0x263c1c,'u':_0x55ce4d};class l extends _0x51bff9{['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[_0x532a7f,j,_0x346920];}constructor(_0x41b37e){super(_0x41b37e),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new T(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x570cf6=_0x2c16be();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x570cf6},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 _0x48859e=this['repository']['getRevision'](0x0),_0x2be255=_0x48859e&&null===_0x48859e['creator']?_0x48859e:null;if(this['_continueCurrentRevision']=!!_0x2be255&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x1cce74=this['_source']['getCurrentRevisionId'](),_0x1b9c3e=this['repository']['getRevision'](_0x1cce74);if(_0x1b9c3e)this['_startingVersion']=_0x1b9c3e['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x118a12=this['_source']['history']['_operations']['find'](_0x58ebe6=>!_0x58ebe6['_isInit']),_0x3aed1f=_0x118a12?_0x118a12['baseVersion']:this['_source']['history']['version'];_0x48859e?(_0x48859e['toVersion']<_0x3aed1f&&_0x48859e['_update']({'toVersion':_0x3aed1f}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x2be255['id'],this['_startingVersion']=_0x2be255['fromVersion']):(this['_startingVersion']=_0x48859e['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x3aed1f,this['_continueCurrentRevision']=!0x1);}}else _0x2be255&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x2be255['toVersion'],this['editor']['model']['document']['history']['version']),_0x2be255['fromVersion']===_0x2be255['toVersion']?(0x0!==_0x2be255['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x2be255['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x2be255['id'],this['_startingVersion']=_0x2be255['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',_0x2c280b=>!_0x2c280b),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1c1c11=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x8e02d1;for(const _0x169c56 in _0x1c1c11){const _0x11810a=_0x169c56,_0x5752c2=_0x1c1c11[_0x11810a];if('revisionHistoryLicenseKeyValid'==_0x5752c2||'revisionHistoryLicenseKeyInvalid'==_0x5752c2||'revisionHistoryLicenseKeyExpired'==_0x5752c2||'revisionHistoryLicenseKeyDomainLimit'==_0x5752c2||'revisionHistoryLicenseKeyNotAllowed'==_0x5752c2||'revisionHistoryLicenseKeyEvaluationLimit'==_0x5752c2||'revisionHistoryLicenseKeyTrialLimit'==_0x5752c2||'revisionHistoryLicenseKeyDevelopmentLimit'==_0x5752c2||'revisionHistoryLicenseKeyUsageLimit'==_0x5752c2){delete _0x1c1c11[_0x11810a],_0x8e02d1=_0x5752c2,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x8e02d1&&_0x1c1c11['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x8e02d1&&_0x1c1c11['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x8e02d1&&_0x1c1c11['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x8e02d1&&_0x1c1c11['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x8e02d1&&_0x1c1c11['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x8e02d1&&_0x1c1c11['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0x8e02d1&&_0x1c1c11['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x8e02d1&&_0x1c1c11['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x2022fe=this['repository']['getRevision'](0x0),_0x354f70=await this['getRevisionDocumentData'](_0x2022fe),_0x370e76=await this['getRevisionRootsAttributes'](_0x2022fe);this['_replaceEditorDataWithRevisionData'](_0x354f70,_0x370e76);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x38613b){this['_source']=_0x38613b;}async['update'](){const _0x1ad664=await this['_source']['getLatestVersion']();if(_0x1ad664>this['currentRevision']['toVersion']){await this['_loadState']();const _0x94a42d=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x1ad664});_0x94a42d['authors']=_0x94a42d['authorsIds']['map'](_0x158f3c=>this['editor']['plugins']['get']('Users')['getUser'](_0x158f3c)),this['currentRevision']['_update'](_0x94a42d);}}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'](_0x15827d={},_0x28a882=null){const _0x2a8665=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x28a882>this['currentRevision']['toVersion']&&(_0x28a882=null),null===_0x28a882&&(_0x28a882=await this['_source']['getLatestVersion']());const _0x2f6dc6=this['_getFromVersion'](_0x28a882),_0x38b7ae=this['buildRevisionData']({'from':_0x2f6dc6,'to':_0x28a882});if(this['currentRevision']['toVersion']<_0x28a882){const _0x539fac=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x28a882,'to':_0x28a882});_0x539fac['authors']=[],_0x539fac['authorsIds']=[],_0x539fac['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x539fac,!0x0),delete _0x539fac['authors'],_0x2a8665['push'](_0x539fac);}_0x15827d['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x15827d['name']=_0x15827d['name']||null,_0x15827d['id']=_0x15827d['id']||_0x2c16be(),_0x15827d={..._0x15827d,..._0x38b7ae};const _0x306e83=this['addRevisionData'](_0x15827d);_0x2a8665['push'](_0x15827d);const _0x1cf6d6=this['repository']['getIndex'](_0x306e83);if(0x0!==_0x1cf6d6){const _0x50c711=this['repository']['getRevision'](_0x1cf6d6-0x1);if(_0x50c711['fromVersion']!==_0x28a882){const _0x477041=this['_revisionDataBuilder']['getData'](_0x28a882,_0x50c711['toVersion']),_0x4eaf2c={'id':_0x50c711['id'],'diffData':_0x477041['diffData'],'authorsIds':_0x477041['authorsIds'],'authors':_0x477041['authorsIds']['map'](_0x6f1092=>this['editor']['plugins']['get']('Users')['getUser'](_0x6f1092)),'fromVersion':_0x28a882};_0x50c711===this['currentRevision']&&(_0x4eaf2c['createdAt']=new Date(_0x15827d['createdAt']['getTime']()+0xa)),_0x50c711['_update'](_0x4eaf2c,!0x0),delete _0x4eaf2c['authors'],_0x2a8665['push'](_0x4eaf2c);}}if(this['adapter']){for(const _0x2acf2c of _0x2a8665)this['_bufferUpdate'](_0x2acf2c['id'],_0x2acf2c,!0x0);this['sendBufferedUpdates']();}return _0x306e83;}['addRevisionData'](_0x2329c8){const _0x3678b6=this['repository']['createRevision'](_0x2329c8);return this['adapter']&&_0x3678b6['on']('_update',(_0x59c791,_0x20cd2d,_0x4cbf0f)=>{_0x4cbf0f||(this['_bufferUpdate'](_0x20cd2d['id'],_0x20cd2d,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x3678b6,this['_findInsertionIndex'](_0x3678b6)),_0x3678b6;}async['getRevisionDocumentData'](_0x126471){await this['_loadRevisionData'](_0x126471);const _0x10b830={};for(const _0x1c4160 in _0x126471['diffData']){if(_0x126471['diffData'][_0x1c4160]['attachChange']&&!_0x126471['diffData'][_0x1c4160]['attachChange']['isAttached'])continue;const _0x1966c7=this['_removeRevisionMarkers'](JSON['parse'](_0x126471['diffData'][_0x1c4160]['insertions'])),_0x4fdaec=this['editor']['editing']['view']['document'],_0x197d59=new _0x46a385(_0x4fdaec,_0x1966c7['map'](_0x1f4582=>V(_0x1f4582,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x10b830[_0x1c4160]=this['editor']['data']['processor']['toData'](_0x197d59),this['editor']['data']['processor']['useFillerType']('default');}return _0x10b830;}async['getRevisionRootsAttributes'](_0x373d88){await this['_loadRevisionData'](_0x373d88);const _0xe31ace={};for(const _0x1d3096 in _0x373d88['diffData'])_0x373d88['diffData'][_0x1d3096]['attachChange']&&!_0x373d88['diffData'][_0x1d3096]['attachChange']['isAttached']||(_0xe31ace[_0x1d3096]=_0x373d88['diffData'][_0x1d3096]['attributesAfter']||{});return _0xe31ace;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x584732=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0xe90d62=0x0;_0xe90d62<_0x584732['length'];_0xe90d62++){const _0x30a0b9=_0x584732[_0xe90d62];let _0x2efc5a=!0x1;for(const _0xb37145 of Object['keys'](_0x30a0b9))void 0x0===_0x30a0b9[_0xb37145]?delete _0x30a0b9[_0xb37145]:'id'!==_0xb37145&&(_0x2efc5a=!0x0);_0x2efc5a||(_0x584732[_0xe90d62]=null);}if(_0x584732=_0x584732['filter'](_0x4e4c0d=>null!==_0x4e4c0d),!_0x584732['length'])return;for(let _0x47d650=0x0;_0x47d650<_0x584732['length'];_0x47d650++){const _0x2fea58=_0x584732[_0x47d650];void 0x0!==_0x2fea58['fromVersion']&&void 0x0===_0x2fea58['toVersion']&&(_0x2fea58['toVersion']=this['repository']['getRevision'](_0x2fea58['id'])['toVersion']),void 0x0!==_0x2fea58['toVersion']&&void 0x0===_0x2fea58['fromVersion']&&(_0x2fea58['fromVersion']=this['repository']['getRevision'](_0x2fea58['id'])['fromVersion']);}const _0x122b4f=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x584732,_0x122b4f)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x122db1=>{if(_0x122db1){for(const _0x3135d4 of _0x122db1)this['setRevisionData']({'id':_0x3135d4['id'],'createdAt':_0x3135d4['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0xe38f05,_0x563862){let _0x13ef6a=this['editor']['config']['get']('initialData'),_0x423761=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x13ef6a){_0x13ef6a={};for(const _0x47e086 of this['editor']['model']['document']['getRootNames']())_0x13ef6a[_0x47e086]='';}if('string'==typeof _0x13ef6a&&(_0x13ef6a={'main':_0x13ef6a}),void 0x0===_0x423761){_0x423761={};for(const _0x30a07d of this['editor']['model']['document']['getRootNames']())_0x423761[_0x30a07d]={};}let _0x34ede2=!0x1;const _0x42fdad=Object['keys'](_0x13ef6a),_0x129d97=Object['keys'](_0xe38f05);for(const _0x4aaab7 of _0x42fdad){if(_0x13ef6a[_0x4aaab7]!==_0xe38f05[_0x4aaab7]&&''!==_0x13ef6a[_0x4aaab7]['trim']()){_0x34ede2=!0x0;break;}if(!_0x29e142(_0x423761[_0x4aaab7],_0x563862[_0x4aaab7])&&Object['keys'](_0x423761[_0x4aaab7])['length']>0x0){_0x34ede2=!0x0;break;}}_0x34ede2||(_0x34ede2=_0x129d97['some'](_0x254647=>!this['editor']['model']['document']['getRoot'](_0x254647))),_0x34ede2&&_0x362b9c('editor-initial-data-replaced-with-revision-data',{'editorData':_0x13ef6a,'editorRootsAttributes':_0x423761,'revisionData':_0xe38f05,'revisionRootsAttributes':_0x563862}),this['editor']['config']['set']('initialData',_0xe38f05),this['editor']['config']['set']('rootsAttributes',_0x563862);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x768823=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x768823['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x50f9d0){const _0x1af58b=this['repository']['getRevisions']();_0x1af58b['reverse']();let _0x5ead09=0x0;for(;_0x5ead09<_0x1af58b['length'];){const _0x299af8=_0x1af58b[_0x5ead09];if(_0x299af8===this['currentRevision']){_0x5ead09++;continue;}if(_0x299af8['id']===this['_initialRevisionId'])break;const _0x30ebf5=_0x50f9d0['toVersion']-_0x299af8['toVersion']||_0x50f9d0['fromVersion']-_0x299af8['fromVersion'];if(_0x30ebf5>0x0)break;if(_0x30ebf5<0x0)_0x5ead09++;else{if(!_0x50f9d0['creator']&&_0x299af8['creator'])break;if(_0x299af8['creator']||!_0x50f9d0['creator']){if(_0x50f9d0['createdAt']>_0x299af8['createdAt'])break;_0x5ead09++;}else _0x5ead09++;}}return _0x5ead09;}['setRevisionData'](_0x5a89d9){const _0x1f4724=this['repository']['getRevision'](_0x5a89d9['id']);if(_0x5a89d9['createdAt']&&(_0x5a89d9['createdAt']=new Date(_0x5a89d9['createdAt'])),_0x5a89d9['authorsIds']){const _0x14cda1=this['editor']['plugins']['get']('Users');_0x5a89d9['authors']=_0x5a89d9['authorsIds']['map'](_0x126497=>_0x14cda1['getUser'](_0x126497));}_0x1f4724['_update'](_0x5a89d9,!0x0);}['buildRevisionData']({revision:_0x179974=null,from:_0x459668=null,to:_0x3a2790=null}){_0x459668=null!==_0x459668?_0x459668:_0x179974['fromVersion'],_0x3a2790=null!==_0x3a2790?_0x3a2790:_0x179974['toVersion'];const _0x2026ed=this['_revisionDataBuilder']['getData'](_0x459668,_0x3a2790),_0x157e61={'diffData':_0x2026ed['diffData'],'authorsIds':_0x2026ed['authorsIds'],'fromVersion':_0x459668,'toVersion':_0x3a2790};if(!_0x179974||_0x3a2790!==_0x179974['toVersion']){const _0x17f893=_0x3a2790-0x1,_0x394b56=this['_source']['history']['getOperation'](_0x17f893);_0x157e61['createdAt']=_0x394b56&&_0x394b56['createdAt']||new Date();}if(this['_loadedStateData']&&_0x459668===this['_loadedStateData']['fromVersion']){for(const _0x586fcc of this['_loadedStateData']['authors'])_0x157e61['authorsIds']['includes'](_0x586fcc['id'])||_0x157e61['authorsIds']['push'](_0x586fcc['id']);}return _0x157e61;}['_loadRevisionData'](_0x5929ed){if(!_0x5929ed||_0x5929ed['diffData'])return Promise['resolve']();{const _0x26c6fa=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x26c6fa,'revisionId':_0x5929ed['id']})['then'](_0x4a58e3=>{_0x5929ed['diffData']=_0x4a58e3['diffData'];});}}['_bufferUpdate'](_0x5209fd,_0x551686,_0x58f87a){if(this['_bufferedUpdates']['has'](_0x5209fd)){const _0x55eadf=this['_bufferedUpdates']['get'](_0x5209fd);_0x551686=_0x58f87a?{..._0x55eadf,..._0x551686}:{..._0x551686,..._0x55eadf};}this['_bufferedUpdates']['set'](_0x5209fd,_0x551686);}['_getFromVersion'](_0x3e2b56){const _0x3fde17=this['repository']['getRevisions']();_0x3fde17['reverse'](),_0x3fde17['shift']();const _0x4755f3=_0x3fde17['find'](_0x1c8fc0=>_0x1c8fc0['toVersion']<=_0x3e2b56)['toVersion'];return _0x4755f3<this['_startingVersion']?this['_startingVersion']:_0x4755f3;}['_createInitialRevision'](_0x1d06b5){const _0x41282d=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x41282d)this['_initialRevisionId']=_0x41282d['id'];else{const _0xad5e6b=!this['editor']['model']['document']['roots']['find'](_0x1cc972=>this['editor']['model']['hasContent'](_0x1cc972)),_0x10cc13=this['editor']['plugins']['get']('Users')['me']['id'],_0x129ff8=R(this['editor']['locale'],_0xad5e6b?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x1d06b5,'to':_0x1d06b5,'id':this['_initialRevisionId'],'name':_0x129ff8,'creatorId':_0x10cc13});}}['_createCurrentRevision'](_0x4316c9){const _0x3f4294=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x3f4294),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x4316c9,'to':_0x4316c9,'id':_0x3f4294,'name':'','creatorId':null}));}['_makeRevision']({name:_0x4970b4,from:_0x49a75b,to:_0x4ae334,creatorId:_0x46a179,id:_0x10808a}){const _0x3ff9f5=this['buildRevisionData']({'from':_0x49a75b,'to':_0x4ae334});_0x3ff9f5['name']=_0x4970b4,_0x3ff9f5['creatorId']=_0x46a179,_0x3ff9f5['id']=_0x10808a;const _0x48e6b3=this['addRevisionData'](_0x3ff9f5);return this['adapter']&&this['_bufferUpdate'](_0x3ff9f5['id'],_0x3ff9f5,!0x0),_0x48e6b3;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x20a37a){return(_0x20a37a=_0x20a37a['filter'](_0x29be03=>!_0x29be03['name']||'revision-start'!==_0x29be03['name']&&'revision-end'!==_0x29be03['name']))['forEach'](_0x468b89=>{'string'!=typeof _0x468b89&&(_0x468b89['children']=this['_removeRevisionMarkers'](_0x468b89['children']),_0x468b89['attributes']=_0x468b89['attributes']['filter'](_0x9393d6=>!_0x9393d6[0x0]['startsWith']('data-revision-')));}),_0x20a37a;}}function V(_0x802b34,_0x1c816b){const _0x11bc3e=_0x1c816b['editing']['view']['document'];if('string'==typeof _0x802b34)return new _0x2bd295(_0x11bc3e,_0x802b34);{const _0x49e36a=_0x802b34['children']['map'](_0x53c54a=>V(_0x53c54a,_0x1c816b));return new(C[_0x802b34['type']]||_0x12a678)(_0x11bc3e,_0x802b34['name'],_0x802b34['attributes'],_0x49e36a);}}class T{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x2b23f8){this['editor']=_0x2b23f8,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'](_0x20ec0f){this['source']=_0x20ec0f;const _0x27204f=new Map(),_0x5c1ba0=new Map(),_0x3766f0=this['editor']['model']['document']['roots']['map'](_0x54264e=>_0x54264e['rootName']);for(const _0x255142 of _0x3766f0){const _0x195469=this['editor']['model']['document']['getRoot'](_0x255142),_0x119a94=F(_0x195469);_0x27204f['set'](_0x255142,_0x119a94),_0x5c1ba0['set'](_0x255142,Object['fromEntries'](_0x195469['getAttributes']()));}const _0x1b050c=Array['from'](this['editor']['model']['markers'])['map'](_0x258e14=>[_0x258e14['name'],_0x258e14['getRange']()]),_0x560c86=this['source']['version'];this['_saveMetaData'](_0x560c86,_0x27204f,_0x1b050c,_0x5c1ba0),this['_startingRevisionId']=this['_revisionId'];const _0x325140=new Map(),_0x1cdb18=new Map();for(const _0x1a373f of _0x3766f0){const _0x40f2d4=B(_0x1a373f);_0x325140['set'](_0x1a373f,_0x40f2d4),_0x1cdb18['set'](_0x1a373f,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x325140,[],_0x1cdb18);}['getData'](_0x13b207,_0xe97f84){if(this['_lastFrom']===_0x13b207&&this['_lastTo']<=_0xe97f84)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0xe97f84,!0x0);else{if(!this['_savedMetaData']['has'](_0x13b207)){const _0x4ed233=this['_getPreviousFrom'](_0x13b207);this['_calculateMetaData'](_0x4ed233,_0x13b207,!0x1);}this['_calculateMetaData'](_0x13b207,_0xe97f84,!0x0);}return this['_lastFrom']=_0x13b207,this['_lastTo']=_0xe97f84,this['_getState']();}['loadState'](_0x29f65a){this['_reset'](),this['_lastFrom']=_0x29f65a['fromVersion'],this['_lastTo']=_0x29f65a['toVersion'];for(const _0x380fd0 in _0x29f65a['diffData']){const _0x1fc167=_0x29f65a['diffData'][_0x380fd0]['attachChange'],_0x5b2cfa=_0x57ef62(_0x29f65a['diffData'][_0x380fd0]['attributesBefore'])||{},_0x46d04f=this['_makeModelFromViewString'](_0x29f65a['diffData'][_0x380fd0]['deletions']);_0x46d04f['rootName']=_0x380fd0,_0x46d04f['_isAttached']=!_0x1fc167||!_0x1fc167['isAttached'],_0x46d04f['isAttached']=()=>_0x46d04f['_isAttached'],this['_baseRoots']['set'](_0x380fd0,_0x46d04f),this['_baseRootsAttributes']['set'](_0x380fd0,_0x5b2cfa),_0x1fc167&&this['_touchedRoots']['set'](_0x380fd0,_0x1fc167);const _0x43c248=this['_makeIdsRoot'](_0x46d04f);this['_baseIdsRoots']['set'](_0x380fd0,_0x43c248);for(const [_0x34af34,_0x48633f]of _0x46d04f['markers']){if(!_0x34af34['startsWith']('revision:'))continue;const _0x3e0a3c=_0x34af34['split'](':')[0x2];for(const _0x4c26f8 of _0x48633f['getWalker']({'singleCharacters':!0x0})){const _0x344e3b=this['_getVidAttributeName'](_0x4c26f8),_0x3afec3='elementEnd'==_0x4c26f8['type']?_0x4c26f8['previousPosition']['path']['slice'](0x0,-0x1):_0x4c26f8['previousPosition']['path'],_0x42421a=_0x43c248['getNodeByPath'](_0x3afec3)['getAttribute'](_0x344e3b);this['_touched']['set'](_0x42421a,{'userId':_0x3e0a3c});}}}this['_startingRevisionId']=this['_revisionId'];const _0x2d8b15=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x20f976=>!this['_touched']['has'](_0x20f976));let _0x24cf31=0x0;const _0x315ed5=new Map();for(const _0x48dd3e in _0x29f65a['diffData']){const _0x4aa1c5=_0x29f65a['diffData'][_0x48dd3e]['attachChange'],_0x4a0b20=_0x57ef62(_0x29f65a['diffData'][_0x48dd3e]['attributesAfter'])||{},_0x34b5d8=this['_makeModelFromViewString'](_0x29f65a['diffData'][_0x48dd3e]['insertions']);_0x34b5d8['rootName']=_0x48dd3e,_0x34b5d8['_isAttached']=!_0x4aa1c5||_0x4aa1c5['isAttached'],_0x34b5d8['isAttached']=()=>_0x34b5d8['_isAttached'],this['_diffRoots']['set'](_0x48dd3e,_0x34b5d8),this['_diffRootsAttributes']['set'](_0x48dd3e,_0x4a0b20);const _0x28b17e=this['_makeIdsRoot'](_0x34b5d8,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x48dd3e,_0x28b17e),_0x315ed5['set'](_0x48dd3e,_0x34b5d8['isAttached']()?_0x4a0b20:{});for(const [_0x56b800,_0x3e0271]of _0x34b5d8['markers']){if(!_0x56b800['startsWith']('revision:'))continue;const _0x4f3f17=_0x56b800['split'](':')[0x2];for(const _0x3fc5da of _0x3e0271['getWalker']({'singleCharacters':!0x0})){const _0x2ea68e=this['_getVidAttributeName'](_0x3fc5da),_0x3a9bd2=this['_revisionId']++,_0x4bf988='elementEnd'==_0x3fc5da['type']?_0x3fc5da['previousPosition']['path']['slice'](0x0,-0x1):_0x3fc5da['previousPosition']['path'];_0x28b17e['getNodeByPath'](_0x4bf988)['_setAttribute'](_0x2ea68e,_0x3a9bd2),this['_touched']['set'](_0x3a9bd2,{'userId':_0x4f3f17});}}for(const _0x309801 of this['editor']['model']['createRangeIn'](_0x34b5d8)['getWalker']({'singleCharacters':!0x0})){const _0x5ee91d=this['_getVidAttributeName'](_0x309801),_0x259f96='elementEnd'==_0x309801['type']?_0x309801['previousPosition']['path']['slice'](0x0,-0x1):_0x309801['previousPosition']['path'],_0x32c405=_0x28b17e['getNodeByPath'](_0x259f96);_0x32c405['getAttribute'](_0x5ee91d)>0x0||_0x32c405['_setAttribute'](_0x5ee91d,_0x2d8b15[_0x24cf31++]);}for(const [_0x4fd14d,_0x24f156]of _0x34b5d8['markers'])_0x4fd14d['startsWith']('revision:')||this['_markers']['set'](_0x4fd14d,_0x24f156);}const _0xc61719=B('$graveyard');this['_baseRoots']['set']('$graveyard',_0xc61719),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0xc61719,0x1));const _0x1ba50c=B('$graveyard');this['_diffRoots']['set']('$graveyard',_0x1ba50c),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x1ba50c,0x1));const _0x4ac3ff=Array['from'](this['_diffRoots'])['map'](([_0x1fbc3a,_0x3de182])=>[_0x1fbc3a,F(_0x3de182)]);this['_saveMetaData'](this['_lastTo'],_0x4ac3ff,this['_markers'],_0x315ed5);}['_makeModelFromViewString'](_0x3e556c){const _0x2234aa=JSON['parse'](_0x3e556c),_0x14af6e=this['editor']['editing']['view']['document'],_0x5c157e=new _0x46a385(_0x14af6e,_0x2234aa['map'](_0x4693d4=>V(_0x4693d4,this['editor'])));return this['editor']['data']['toModel'](_0x5c157e);}['_saveMetaData'](_0x5671a2,_0xae693c,_0x3ea3cf,_0x228ef5){const _0x4bae5c=new Map(_0xae693c),_0x55ef73=new Map(_0x57ef62(_0x228ef5)),_0x5b2263=new Map();for(const [_0x20916e,_0x351f7a]of _0x3ea3cf)_0x5b2263['set'](_0x20916e,{'start':_0x351f7a['start']['clone'](),'end':_0x351f7a['end']['clone'](),'rootName':_0x351f7a['root']['rootName']});this['_savedMetaData']['set'](_0x5671a2,{'roots':_0x4bae5c,'markers':_0x5b2263,'rootsAttributes':_0x55ef73});}['_removeMetaData'](_0x56c7a8){this['_savedMetaData']['delete'](_0x56c7a8);}['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'](_0x669365,_0x1626cc=null){let _0x5b3d3e=null;_0x669365['is']('documentFragment')||(_0x5b3d3e=new ft(_0x669365['name'],{'vid_start':null===_0x1626cc?this['_revisionId']++:_0x1626cc++}));const _0x30635e=[];for(const _0x2cb0f3 of _0x669365['getChildren']())if(_0x2cb0f3['is']('element')){_0x30635e['push'](this['_makeIdsRoot'](_0x2cb0f3,_0x1626cc));const _0x425dce=_0x30635e[_0x30635e['length']-0x1];null!==_0x1626cc&&(_0x1626cc=_0x425dce['is']('element','$text')?_0x425dce['getAttribute']('vid')+0x1:_0x425dce['getAttribute']('vid_end')+0x1);}else{for(let _0x33f5a0=0x0;_0x33f5a0<_0x2cb0f3['offsetSize'];_0x33f5a0++)_0x30635e['push'](new ft('$text',{'vid':null===_0x1626cc?this['_revisionId']++:_0x1626cc++}));}if(_0x669365['is']('documentFragment')){const _0x37b6d8=B(_0x669365['rootName']);return _0x37b6d8['_insertChild'](0x0,_0x30635e),_0x37b6d8;}return _0x5b3d3e['_setAttribute']('vid_end',null===_0x1626cc?this['_revisionId']++:_0x1626cc++),_0x5b3d3e['_insertChild'](0x0,_0x30635e),_0x5b3d3e;}['_calculateMetaData'](_0x5b5c5d,_0x23f300,_0x1b8a32){this['_reset']();const {roots:_0x40c978,markers:_0x4a1402,rootsAttributes:_0x114265}=this['_savedMetaData']['get'](_0x5b5c5d);this['_baseRoots']=new Map(_0x40c978),this['_baseRootsAttributes']=new Map(_0x57ef62(_0x114265));for(const [_0x6a547c,_0x4d7b26]of this['_baseRoots'])if('$graveyard'!==_0x6a547c&&(this['_diffRoots']['set'](_0x6a547c,F(_0x4d7b26)),this['_diffRootsAttributes']=new Map(_0x57ef62(_0x114265)),_0x1b8a32)){const _0x59bc05=this['_revisionId'];this['_idsRoots']['set'](_0x6a547c,this['_makeIdsRoot'](_0x4d7b26)),this['_baseIdsRoots']['set'](_0x6a547c,this['_makeIdsRoot'](_0x4d7b26,_0x59bc05));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',F(this['_baseRoots']['get']('$graveyard'))),_0x1b8a32&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x53fbba,_0x31979d]of _0x4a1402){const _0x4d3d70=this['_baseRoots']['get'](_0x31979d['rootName']),_0x603f37=this['_diffRoots']['get'](_0x31979d['rootName']),_0x23cebb=new vt(this['_fixPosition'](_0x31979d['start'],_0x4d3d70),this['_fixPosition'](_0x31979d['end'],_0x4d3d70)),_0x62c33a=this['_fixRange'](_0x23cebb,_0x603f37);_0x4d3d70['markers']['set'](_0x53fbba,_0x23cebb),this['_markers']['set'](_0x53fbba,_0x62c33a);}this['_applyOperations'](_0x5b5c5d,_0x23f300,_0x1b8a32);}['_applyOperations'](_0x395750,_0x2739f1,_0x9d9485){for(const _0x5c788f of this['source']['getOperations'](_0x395750,_0x2739f1))this['_handleOperation'](_0x5c788f,_0x9d9485);for(const _0x3491f5 of this['_diffRoots']['values']())_0x3491f5['markers']['clear']();for(const [_0x1b4a0f,_0x53d5da]of this['_markers']){this['_diffRoots']['get'](_0x53d5da['root']['rootName'])['markers']['set'](_0x1b4a0f,_0x53d5da['clone']());}const _0x48b157=new Map(),_0x318434=new Map();for(const [_0x379923,_0xe9a8a5]of this['_diffRoots'])_0x48b157['set'](_0x379923,F(_0xe9a8a5)),_0x318434['set'](_0x379923,this['_diffRootsAttributes']['get'](_0x379923));this['_saveMetaData'](_0x2739f1,_0x48b157,this['_markers'],_0x318434);}['_getPreviousFrom'](_0x1caac9){const _0x53401a=Array['from'](this['_savedMetaData']['keys']());_0x53401a['sort']((_0x333d27,_0x3d575b)=>_0x333d27-_0x3d575b),_0x53401a['reverse']();for(const _0x15584a of _0x53401a)if(_0x15584a<_0x1caac9)return _0x15584a;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x1a0b53,_0x405315){const _0x54fe5a=Array['from'](_0x405315['markers'])['map'](([_0x1a5660,_0x4cecf9])=>[_0x1a5660,this['_fixRange'](_0x4cecf9,_0x1a0b53)]);_0x1a0b53['markers']=new Map(_0x54fe5a);}['_transformMarkers'](_0x4bb7f4){for(const _0x4f239e of this['_markers']['values']()){const _0x570628=_0x4f239e['getTransformedByOperation'](_0x4bb7f4),_0x4b8d86=vt['_createFromRanges'](_0x570628);_0x4f239e['start']=_0x4b8d86['start'],_0x4f239e['end']=_0x4b8d86['end'];}}['_handleOperation'](_0x21355a,_0x36a8a5){if('addRoot'!=_0x21355a['type']&&'detachRoot'!=_0x21355a['type']){if('insert'==_0x21355a['type']){const _0x2d56d3=_0x21355a['position']['root']['rootName'];this['_diffRoots']['has'](_0x2d56d3)||(this['_diffRoots']['set'](_0x2d56d3,B(_0x2d56d3,!0x0)),this['_diffRootsAttributes']['set'](_0x2d56d3,{}),_0x36a8a5&&this['_idsRoots']['set'](_0x2d56d3,B(_0x2d56d3,!0x0)));}else{if('addRootAttribute'==_0x21355a['type']||'removeRootAttribute'==_0x21355a['type']||'changeRootAttribute'==_0x21355a['type'])return void this['_handleRootAttributeOperation'](_0x21355a);'marker'==_0x21355a['type']&&this['_handleMarkerOperation'](_0x21355a);}if('marker'!==_0x21355a['type']){const _0x1411ce=this['_cloneOperation'](_0x21355a,this['_diffRoots']);_0x1411ce['_execute'](),this['_transformMarkers'](_0x1411ce);}if(_0x36a8a5)switch(_0x21355a['type']){case'insert':this['_handleInsertOperation'](_0x21355a);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x21355a);break;case'merge':this['_handleMergeOperation'](_0x21355a);break;case'split':this['_handleSplitOperation'](_0x21355a);}}else this['_handleRootOperation'](_0x21355a,_0x36a8a5);}['_cloneOperation'](_0x163019,_0x2e57){const _0x5a342e=_0x163019['clone']();return _0x5a342e['_authorId']=_0x163019['_authorId'],this['_fixOperation'](_0x5a342e,_0x2e57),_0x5a342e;}['_getBaseVids'](_0x287038){return _0x287038['map'](_0x5b5427=>{const _0x5c1c86=this['_getVidAttributeName'](_0x5b5427);return Number(_0x5b5427['item']['getAttribute'](_0x5c1c86));});}['_generateTape'](_0x19eebd,_0x29c5bc){if(_0x19eebd['is']('element','$text'))_0x29c5bc['push']({'item':_0x19eebd,'type':'text'});else{_0x19eebd['is']('element')&&_0x29c5bc['push']({'item':_0x19eebd,'type':'elementStart'});for(const _0x4270b1 of _0x19eebd['getChildren']())this['_generateTape'](_0x4270b1,_0x29c5bc);_0x19eebd['is']('element')&&_0x29c5bc['push']({'item':_0x19eebd,'type':'elementEnd'});}return _0x29c5bc;}['_getState'](){const _0x1b460d=new Map(this['_touched']),_0x24c611=new Map(_0x1b460d),_0x5c27c5=new Map(),_0xe55dfb={'insertions':{},'deletions':{}},_0x4128a7={'insertions':{},'deletions':{}},_0x675d43=new Map(),_0x48a2c1=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x48a2c1['delete']('$graveyard');for(const _0x124c18 of _0x48a2c1){const _0x418f6c=this['_diffRoots']['get'](_0x124c18)||B(_0x124c18,!0x1),_0x27a3ef=this['_baseRoots']['get'](_0x124c18)||B(_0x124c18,!0x1);_0x418f6c['isAttached']()||_0x27a3ef['isAttached']()?(_0xe55dfb['insertions'][_0x124c18]=F(_0x418f6c),_0xe55dfb['deletions'][_0x124c18]=F(_0x27a3ef),this['_copyMarkers'](_0xe55dfb['deletions'][_0x124c18],_0x27a3ef),this['_copyMarkers'](_0xe55dfb['insertions'][_0x124c18],_0x418f6c),_0x4128a7['insertions'][_0x124c18]=this['_generateTape'](this['_idsRoots']['get'](_0x124c18),[]),_0x4128a7['deletions'][_0x124c18]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x124c18)||B(_0x124c18,!0x1),[])):_0x48a2c1['delete'](_0x124c18);}for(const _0x425265 of _0x48a2c1){const _0x2bc02a=_0x4128a7['insertions'][_0x425265];for(const _0x513adc of _0x2bc02a){const _0x3719c5=this['_getVidAttributeName'](_0x513adc),_0x5b6665=_0x513adc['item']['getAttribute'](_0x3719c5);_0x24c611['delete'](_0x5b6665),_0x5b6665>=this['_startingRevisionId']&&_0x5c27c5['set'](_0x5b6665,_0x1b460d['get'](_0x5b6665));}}for(const _0x3ee8f5 of _0x48a2c1){const _0x45f059=_0x4128a7['insertions'][_0x3ee8f5],_0x3128d0=this['_getBaseVids'](_0x4128a7['deletions'][_0x3ee8f5]);let _0x139dfb=0x0;for(const _0x370f17 of _0x45f059){const _0x52db7f=this['_getVidAttributeName'](_0x370f17),_0x3c0a91=_0x370f17['item']['getAttribute'](_0x52db7f);if(!_0x5c27c5['has'](_0x3c0a91)&&!_0x675d43['has'](_0x3c0a91)){if(_0x24c611['has'](_0x3c0a91))_0x139dfb++;else{if(_0x3c0a91!=_0x3128d0[_0x139dfb]){const _0x4bb50c=_0x1b460d['get'](_0x3c0a91)||_0x1b460d['get'](_0x3128d0[_0x139dfb]);for(;_0x3c0a91!=_0x3128d0[_0x139dfb];)_0x24c611['has'](_0x3128d0[_0x139dfb])||(_0x675d43['set'](_0x3128d0[_0x139dfb],_0x4bb50c),_0x1b460d['set'](_0x3128d0[_0x139dfb],_0x4bb50c)),_0x139dfb++;}_0x139dfb++;}}}}for(const _0x5b4dd6 of _0x48a2c1){const _0x5cfd18=_0x4128a7['insertions'][_0x5b4dd6];for(const _0x2a8a0d of _0x5cfd18){const _0x43490c=this['_getVidAttributeName'](_0x2a8a0d),_0x40152d=_0x2a8a0d['item']['getAttribute'](_0x43490c);if(_0x675d43['has'](_0x40152d)){const _0x2bb20a=_0x675d43['get'](_0x40152d);_0x24c611['has'](_0x40152d)||_0x24c611['set'](_0x40152d,{..._0x2bb20a}),_0x5c27c5['set'](_0x40152d,{..._0x2bb20a});}}}for(const _0x3b9f69 of _0x24c611['keys']())_0x3b9f69>=this['_startingRevisionId']&&_0x24c611['delete'](_0x3b9f69);const _0x30ef08=new Map();for(const _0x37b459 of _0x48a2c1){let _0x241d0b=_0x4128a7['insertions'][_0x37b459];for(const _0x52ad52 of _0x241d0b)if(_0x52ad52['item']['is']('element','tableCell')){const _0x301f23=this['_getVidAttributeName'](_0x52ad52),_0x5e34ff=_0x52ad52['item']['getAttribute'](_0x301f23);if(_0x5c27c5['has'](_0x5e34ff)){const _0x4bfbad=_0x52ad52['item']['parent']['parent']['getAttribute']('vid_start'),_0x4fca87=_0x30ef08['get'](_0x4bfbad)||new Set();_0x4fca87['add'](_0x5c27c5['get'](_0x5e34ff)['userId']),_0x30ef08['set'](_0x4bfbad,_0x4fca87);}}_0x241d0b=_0x4128a7['deletions'][_0x37b459];for(const _0x13de49 of _0x241d0b)if(_0x13de49['item']['is']('element','tableCell')){const _0x3e46a3=this['_getVidAttributeName'](_0x13de49),_0x545873=_0x13de49['item']['getAttribute'](_0x3e46a3);if(_0x24c611['has'](_0x545873)){const _0x339158=_0x13de49['item']['parent']['parent']['getAttribute']('vid_start'),_0x204e3f=_0x30ef08['get'](_0x339158)||new Set();_0x204e3f['add'](_0x24c611['get'](_0x545873)['userId']),_0x30ef08['set'](_0x339158,_0x204e3f);}}for(const _0x4ea0ec of _0x30ef08['keys']())(_0x5c27c5['has'](_0x4ea0ec)||_0x24c611['has'](_0x4ea0ec))&&_0x30ef08['delete'](_0x4ea0ec);}for(const _0x40bf88 of _0x48a2c1){const _0x366895=_0x4128a7['insertions'][_0x40bf88];let _0x7d6aa1=null,_0x110729=null;for(const _0x20f760 of _0x366895){const _0x4f6c80=this['_getVidAttributeName'](_0x20f760),_0x5b48f2=_0x20f760['item']['getAttribute'](_0x4f6c80),_0x4c7086=_0x30ef08['get'](_0x5b48f2);_0x4c7086&&'elementStart'==_0x20f760['type']&&(_0x7d6aa1=Array['from'](_0x4c7086)[0x0],_0x110729=_0x20f760['item']['getAttribute']('vid_end')),_0x7d6aa1&&(_0x24c611['set'](_0x5b48f2,{'userId':_0x7d6aa1}),_0x5c27c5['set'](_0x5b48f2,{'userId':_0x7d6aa1})),_0x5b48f2==_0x110729&&(_0x7d6aa1=null,_0x110729=null);}}const _0x33843b={},_0x2715f4=new Set();for(const _0x8719f6 of _0x48a2c1){const _0x3a0d7e=_0xe55dfb['deletions'][_0x8719f6],_0x5a18f1=_0xe55dfb['insertions'][_0x8719f6];for(const {userId:_0x432fb0}of this['_touchedMarkers']['values']())null!==_0x432fb0&&_0x2715f4['add'](_0x432fb0);for(const {userId:_0x37b6aa}of this['_touchedRoots']['values']())null!==_0x37b6aa&&_0x2715f4['add'](_0x37b6aa);this['_markChanges'](_0x5a18f1,_0x4128a7['insertions'][_0x8719f6],_0x5c27c5,'insertion',_0x2715f4),this['_markChanges'](_0x3a0d7e,_0x4128a7['deletions'][_0x8719f6],_0x24c611,'deletion',_0x2715f4),_0x33843b[_0x8719f6]={'insertions':this['_prepareViewToSave'](_0x5a18f1),'deletions':this['_prepareViewToSave'](_0x3a0d7e),'attachChange':this['_touchedRoots']['get'](_0x8719f6)||null,'attributesBefore':_0x57ef62(this['_baseRootsAttributes']['get'](_0x8719f6))||{},'attributesAfter':_0x57ef62(this['_diffRootsAttributes']['get'](_0x8719f6))};}return{'diffData':_0x33843b,'authorsIds':Array['from'](_0x2715f4)};}['_processRootBeforeSave'](_0x437a56){for(const [,_0x1422ee]of _0x437a56['markers']){const _0x8c91d2=_0x1422ee['start']['getAncestors']()['filter'](_0x2ba1b7=>'tableCell'==_0x2ba1b7['name']);for(const _0x4f6cba of _0x8c91d2)0x1==_0x4f6cba['childCount']&&_0x4f6cba['getChild'](0x0)['is']('element','paragraph')&&_0x4f6cba['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x26574d){this['_processRootBeforeSave'](_0x26574d);const _0x3b67a7=this['editor']['data']['toView'](_0x26574d,{}),_0x50e310=Array['from'](_0x3b67a7['getChildren']())['map'](_0x364e64=>this['_getViewJson'](_0x364e64));return JSON['stringify'](_0x50e310);}['_getViewJson'](_0x2d9c54){if(_0x2d9c54['is']('$text'))return _0x2d9c54['data'];{const _0x272f78=_0x2d9c54;return{'type':Object['keys'](C)['find'](_0xf2fa23=>_0x2d9c54 instanceof C[_0xf2fa23]),'name':_0x272f78['name'],'attributes':Array['from'](_0x272f78['getAttributes']()),'children':Array['from'](_0x272f78['getChildren']())['map'](_0x20c68b=>this['_getViewJson'](_0x20c68b))};}}['_markChanges'](_0x1c4d61,_0x5eb25f,_0x331f6f,_0x8ce259,_0x2c5a2b){let _0x3de60d=null,_0x3ba31f=null,_0x2f1b30=0x0;const _0x4daa45=this['editor']['model'];for(let _0xb8158f=0x0;_0xb8158f<_0x5eb25f['length'];_0xb8158f++){const _0x26ba72=this['_getVidAttributeName'](_0x5eb25f[_0xb8158f]),_0x22212b=_0x5eb25f[_0xb8158f]['item']['getAttribute'](_0x26ba72),_0x1ede4f=_0x331f6f['get'](_0x22212b),_0xad0c5c=_0xb8158f==_0x5eb25f['length']-0x1;(!_0x3de60d&&_0x1ede4f&&(_0x3de60d=_0x1ede4f,_0x3ba31f=_0x5eb25f[_0xb8158f]),_0x3de60d&&(!_0x1ede4f||_0x1ede4f['userId']!=_0x3de60d['userId']))&&(_0x292db9(_0x1ede4f,J(_0x3ba31f,_0x1c4d61,_0x4daa45),J(_0x5eb25f[_0xb8158f],_0x1c4d61,_0x4daa45)),_0x3de60d=_0x1ede4f||null,_0x3ba31f=_0x1ede4f?_0x5eb25f[_0xb8158f]:null),_0x3de60d&&_0xad0c5c&&_0x292db9(_0x1ede4f,J(_0x3ba31f,_0x1c4d61,_0x4daa45),q(_0x5eb25f[_0xb8158f],_0x1c4d61,_0x4daa45));}function _0x292db9(_0x16cce0,_0xf09f8e,_0x23c708){const _0x39e606=_0x3de60d['userId'],_0x39c4b9='revision:'+_0x8ce259+':'+_0x39e606+':'+_0x2f1b30++,_0x27f7d5=_0x4daa45['createRange'](_0xf09f8e,_0x23c708);_0x1c4d61['markers']['set'](_0x39c4b9,_0x27f7d5),null!==_0x39e606&&_0x2c5a2b['add'](_0x39e606);}}['_getVidAttributeName'](_0xb07aac){switch(_0xb07aac['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x32e1a4,_0x488977){_0x32e1a4['baseVersion']=null;for(const _0x2c0cf2 in _0x32e1a4){const _0x41dedb=_0x32e1a4[_0x2c0cf2];if(_0x41dedb instanceof gt){const _0x35d1d5=_0x488977['get'](_0x41dedb['root']['rootName']);_0x32e1a4[_0x2c0cf2]=this['_fixPosition'](_0x41dedb,_0x35d1d5);}if(_0x41dedb instanceof vt){const _0x52cbe2=_0x488977['get'](_0x41dedb['root']['rootName']);_0x32e1a4[_0x2c0cf2]=this['_fixRange'](_0x41dedb,_0x52cbe2);}'root'===_0x2c0cf2&&(_0x32e1a4['root']=_0x488977['get'](_0x32e1a4['root']['rootName']));}}['_fixRange'](_0x382f59,_0x3ee24d){return this['editor']['model']['createRange'](this['_fixPosition'](_0x382f59['start'],_0x3ee24d),this['_fixPosition'](_0x382f59['end'],_0x3ee24d));}['_fixPosition'](_0x207d07,_0x13665a){return this['editor']['model']['createPositionFromPath'](_0x13665a,_0x207d07['path'],_0x207d07['stickiness']);}['_handleInsertOperation'](_0x5752e1){const _0x4ee198=this['_idsRoots']['get'](_0x5752e1['position']['root']['rootName']),_0x1f5943=this['_fixPosition'](_0x5752e1['position'],_0x4ee198),_0x3610bd=null===_0x5752e1['_authorId']?null:_0x5752e1['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1e84e2=_0x1f5943['parent'],_0xff7d9f=this['_revisionId'],_0x3f9c55=[];for(const _0x504a17 of _0x5752e1['nodes'])if(_0x504a17['is']('element'))_0x3f9c55['push'](this['_makeIdsRoot'](_0x504a17));else{for(let _0x91f9ad=0x0;_0x91f9ad<_0x504a17['offsetSize'];_0x91f9ad++)_0x3f9c55['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x149898=this['_revisionId'];for(let _0x3b747e=_0xff7d9f;_0x3b747e<_0x149898;_0x3b747e++)this['_touched']['set'](_0x3b747e,{'userId':_0x3610bd});_0x1e84e2['_insertChild'](_0x1f5943['offset'],_0x3f9c55);}['_handleMoveOperation'](_0x1710c6){(_0x1710c6=this['_cloneOperation'](_0x1710c6,this['_idsRoots']))['_execute']();const _0x2a36d7=null===_0x1710c6['_authorId']?null:_0x1710c6['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x11c859=_0x1710c6['getMovedRangeStart'](),_0x4e0840=_0x11c859['parent'],_0x34f78f=_0x11c859['offset'];!function _0x47d818(_0x1db65,_0x37226f,_0x1b92d6,_0x1507f7){for(let _0xed4177=_0x1b92d6;_0xed4177<_0x1507f7;_0xed4177++){const _0x42258b=_0x37226f['getChild'](_0xed4177);_0x42258b['is']('element','$text')?_0x1db65['set'](_0x42258b['getAttribute']('vid'),{'userId':_0x2a36d7}):(_0x1db65['set'](_0x42258b['getAttribute']('vid_start'),{'userId':_0x2a36d7}),_0x47d818(_0x1db65,_0x42258b,0x0,_0x42258b['childCount']),_0x1db65['set'](_0x42258b['getAttribute']('vid_end'),{'userId':_0x2a36d7}));}}(this['_touched'],_0x4e0840,_0x34f78f,_0x34f78f+_0x1710c6['howMany']);}['_handleMergeOperation'](_0x236459){const _0x4a74f4=null===(_0x236459=this['_cloneOperation'](_0x236459,this['_idsRoots']))['_authorId']?null:_0x236459['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x443939=_0x236459['targetPosition']['parent'],_0x2a6bf1=_0x236459['sourcePosition']['parent'],_0x38ad9b=_0x443939['getAttribute']('vid_end'),_0x3e5d3b=_0x2a6bf1['getAttribute']('vid_start');_0x443939['_setAttribute']('vid_end',_0x2a6bf1['getAttribute']('vid_end')),_0x2a6bf1['_setAttribute']('vid_end',_0x38ad9b),this['_touched']['set'](_0x3e5d3b,{'userId':_0x4a74f4}),this['_touched']['set'](_0x38ad9b,{'userId':_0x4a74f4}),_0x236459['_execute']();}['_handleSplitOperation'](_0x388070){const _0x31b014=null===(_0x388070=this['_cloneOperation'](_0x388070,this['_idsRoots']))['_authorId']?null:_0x388070['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x9b174a=_0x388070['graveyardPosition'],_0x4a5cfc=_0x388070['splitPosition']['parent'];_0x388070['_execute']();const _0x50f598=_0x4a5cfc['getAttribute']('vid_end'),_0x4eb649=_0x388070['insertionPosition']['nodeAfter'];if(_0x9b174a){const _0x140c11=_0x4eb649['getAttribute']('vid_end'),_0xde2d58=_0x4a5cfc['getAttribute']('vid_end');_0x4a5cfc['_setAttribute']('vid_end',_0x140c11),_0x4eb649['_setAttribute']('vid_end',_0xde2d58),this['_touched']['set'](_0x4a5cfc['getAttribute']('vid_end'),{'userId':_0x31b014}),this['_touched']['set'](_0x4eb649['getAttribute']('vid_start'),{'userId':_0x31b014});}else{const _0x218f16=this['_revisionId']++,_0x5f3319=this['_revisionId']++;_0x4a5cfc['_setAttribute']('vid_end',_0x218f16),_0x4eb649['_setAttribute']('vid_start',_0x5f3319),_0x4eb649['_setAttribute']('vid_end',_0x50f598),this['_touched']['set'](_0x218f16,{'userId':_0x31b014}),this['_touched']['set'](_0x5f3319,{'userId':_0x31b014});}}['_handleMarkerOperation'](_0x4aec26){if(!_0x4aec26['affectsData'])return;const _0x189907=(_0x4aec26=this['_cloneOperation'](_0x4aec26,this['_diffRoots']))['oldRange']?_0x4aec26['oldRange']['root']:null,_0x1271f9=_0x4aec26['newRange']?_0x4aec26['newRange']['root']:null;_0x189907&&this['_markers']['delete'](_0x4aec26['name']),_0x1271f9&&this['_markers']['set'](_0x4aec26['name'],_0x4aec26['newRange']['clone']());const _0x4db47c=null===_0x4aec26['_authorId']?null:_0x4aec26['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1c98b6=_0x4aec26['name'];if(!this['_touchedMarkers']['has'](_0x1c98b6))return void this['_touchedMarkers']['set'](_0x1c98b6,{'range':_0x4aec26['oldRange'],'userId':_0x4db47c});const _0x19195b=this['_touchedMarkers']['get'](_0x1c98b6),_0x5ae1cc=_0x19195b['range'],_0x2b97a0=_0x4aec26['newRange'];null==_0x5ae1cc&&null==_0x2b97a0||_0x5ae1cc&&_0x2b97a0&&_0x5ae1cc['isEqual'](_0x2b97a0)?this['_touchedMarkers']['delete'](_0x4aec26['name']):_0x19195b['userId']=_0x4db47c;}['_handleRootOperation'](_0x5ac7f7,_0x10364f){this['_diffRoots']['has'](_0x5ac7f7['rootName'])?this['_diffRoots']['get'](_0x5ac7f7['rootName'])['_isAttached']=_0x5ac7f7['isAdd']:(this['_diffRoots']['set'](_0x5ac7f7['rootName'],B(_0x5ac7f7['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x5ac7f7['rootName'],{}),_0x10364f&&this['_idsRoots']['set'](_0x5ac7f7['rootName'],B(_0x5ac7f7['rootName'],!0x0)));const _0x4a336a=null===_0x5ac7f7['_authorId']?null:_0x5ac7f7['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x342bd5=this['_touchedRoots']['get'](_0x5ac7f7['rootName']);_0x342bd5&&_0x342bd5['userId']===_0x4a336a?this['_touchedRoots']['delete'](_0x5ac7f7['rootName']):this['_touchedRoots']['set'](_0x5ac7f7['rootName'],{'userId':_0x4a336a,'isAttached':_0x5ac7f7['isAdd']});}['_handleRootAttributeOperation'](_0x1e4554){const _0xa3503f=this['_diffRootsAttributes']['get'](_0x1e4554['root']['rootName']);null===_0x1e4554['newValue']?delete _0xa3503f[_0x1e4554['key']]:_0xa3503f[_0x1e4554['key']]=_0x1e4554['newValue'];}}function F(_0x3346e4){const _0x2f6958=B(_0x3346e4['rootName'],_0x3346e4['isAttached']());for(const _0x53f21c of _0x3346e4['getChildren']()){const _0x6f53bf=_0x53f21c['_clone'](!0x0);_0x2f6958['_appendChild'](_0x6f53bf);}return _0x2f6958;}function B(_0x1f97ab,_0xc278cc=!0x0){const _0x4b7ca=new mt();return _0x4b7ca['rootName']=_0x1f97ab,_0x4b7ca['_isAttached']=_0xc278cc,_0x4b7ca['isAttached']=()=>_0x4b7ca['_isAttached'],_0x4b7ca;}function J(_0x58ada3,_0x253434,_0x2c344b){const _0x4ecf00='elementEnd'==_0x58ada3['type']?_0x2c344b['createPositionAt'](_0x58ada3['item'],'end'):_0x2c344b['createPositionBefore'](_0x58ada3['item']);return _0x2c344b['createPositionFromPath'](_0x253434,_0x4ecf00['path'],_0x4ecf00['stickiness']);}function q(_0x377383,_0x5911a2,_0x2513a5){const _0x5bea20='elementStart'==_0x377383['type']?_0x2513a5['createPositionAt'](_0x377383['item'],0x0):_0x2513a5['createPositionAfter'](_0x377383['item']);return _0x2513a5['createPositionFromPath'](_0x5911a2,_0x5bea20['path'],_0x5bea20['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x430ce2,_0x5470f0){super(_0x430ce2),this['focusTracker']=new _0x2c85f5(),this['keystrokes']=new _0x523557(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x5470f0),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x48877a(this);}['render'](){super['render'](),_0x4bb7b4({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x4e0a17=_0x7c5627=>_0x7c5627['stopPropagation']();this['keystrokes']['set']('arrowright',_0x4e0a17),this['keystrokes']['set']('arrowleft',_0x4e0a17),this['keystrokes']['set']('arrowup',_0x4e0a17),this['keystrokes']['set']('arrowdown',_0x4e0a17);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x2c97cd){this['revisionNameInputView']['fieldView']['element']['value']=_0x2c97cd['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x3b01c2){const _0x2ec5df=new _0x38e76f(this['locale'],_0x229c6c),_0x4287b0=_0x2ec5df['fieldView'];_0x4287b0['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x83392=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x3b01c2&&(_0x83392+='\x20('+R(this['locale'],'optional')+')'),(_0x2ec5df['label']=_0x83392,_0x4287b0['on']('input',()=>{this['revisionNameInputValue']=_0x4287b0['element']['value']['trim']();}),_0x2ec5df);}}class u extends _0x51bff9{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x196af9=this['editor'],_0x297046=_0x196af9['plugins']['get']('RevisionTracker');_0x196af9['ui']['componentFactory']['add']('revisionHistory',_0x1e9592=>{const _0x1924da=_0x193195(_0x1e9592),_0x49476f=_0x1924da['panelView']['children'],_0x19dc39=new _0x2e1bb0(_0x1e9592),_0x5888c6=new _0x1ac59a(_0x1e9592),_0xf085ce=new te(_0x1e9592),_0xe7e349=new _0x1ac59a(_0x1e9592),_0x2a05e2=new te(_0x1e9592);return _0x1924da['bind']('isEnabled')['to'](_0x297046,'isReady',_0x297046,'isEnabled',_0x196af9,'isReadOnly',(_0x44fd86,_0x36210e,_0x22141f)=>_0x44fd86&&_0x36210e&&!_0x22141f),_0x1924da['buttonView']['set']({'icon':_0x582ab3['history'],'label':R(_0x1e9592,'Revision\x20history'),'tooltip':!0x0}),_0xf085ce['set']({'label':R(_0x1e9592,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0xf085ce['bind']('isEnabled')['to'](_0x297046,'isReady',_0x297046,'isEnabled',_0x196af9,'isReadOnly',(_0x4cd38c,_0xf51b83,_0x959606)=>_0x4cd38c&&_0xf51b83&&!_0x959606),_0xf085ce['on']('execute',()=>this['_showDialog']()),_0x2a05e2['set']({'label':R(_0x1e9592,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x2a05e2['bind']('isEnabled')['to'](_0x297046,'isReady',_0x196af9,'isReadOnly',(_0x4adffd,_0x46968f)=>_0x4adffd&&!_0x46968f),_0x2a05e2['on']('execute',()=>{_0x196af9['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x1924da['isOpen']=!0x1,_0x196af9['editing']['view']['focus']();}),_0x5888c6['children']['add'](_0xf085ce),_0xe7e349['children']['add'](_0x2a05e2),_0x19dc39['role']='menu',_0x19dc39['items']['addMany']([_0x5888c6,_0xe7e349]),_0x49476f['add'](_0x19dc39),_0x1924da;}),_0x196af9['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x3ef665=this['editor'],_0x445990=_0x3ef665['locale'],_0x4a309a=new _0x40c2c3(_0x445990),_0x211ba3=new _0x51175b(_0x445990);_0x4a309a['buttonView']['set']({'icon':_0x582ab3['history'],'label':R(_0x445990,'Revision\x20history')});const _0x502e55=new _0x1b0a56(_0x445990,_0x4a309a),_0x4b12e6=new _0x291ccc(_0x445990);_0x4b12e6['set']({'label':R(_0x445990,'Save\x20current\x20revision')}),_0x4b12e6['delegate']('execute')['to'](_0x4a309a),_0x4b12e6['on']('execute',()=>{this['_showDialog']();}),_0x502e55['children']['add'](_0x4b12e6),_0x211ba3['items']['add'](_0x502e55);const _0x15e995=new _0x1b0a56(_0x445990,_0x4a309a),_0x49f0e3=new _0x291ccc(_0x445990);return _0x49f0e3['set']({'label':R(_0x445990,'Open\x20revision\x20history')}),_0x49f0e3['delegate']('execute')['to'](_0x4a309a),_0x49f0e3['on']('execute',()=>{_0x3ef665['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x15e995['children']['add'](_0x49f0e3),_0x211ba3['items']['add'](_0x15e995),_0x4a309a['panelView']['children']['add'](_0x211ba3),_0x4a309a;}['_showDialog'](){const _0x2d27fd=this['editor'],_0x209d3f=_0x2d27fd['locale'],_0x22c54f=_0x2d27fd['plugins']['get']('Dialog'),_0x46a0f3=_0x2d27fd['plugins']['get']('RevisionTracker');function _0x587441(_0x459974){_0x2d27fd['config']['get']('revisionHistory.requireRevisionName')&&''===_0x459974['revisionName']?_0x459974['revisionNameInputView']['errorText']=R(_0x209d3f,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x2d27fd['plugins']['get'](l)['saveRevision']({'name':_0x459974['revisionName']}),_0x22c54f['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x587441(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x22c54f['show']({'id':'revisionSave','title':R(_0x209d3f,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x2d27fd['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x22c54f['hide']()},{'label':R(_0x2d27fd['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x69e5ae){_0x69e5ae['bind']('isEnabled')['to'](_0x46a0f3,'isReady',_0x46a0f3,'isEnabled',_0x2d27fd,'isReadOnly',(_0x10f139,_0x5890ab,_0x53a35d)=>_0x10f139&&_0x5890ab&&!_0x53a35d);},'onExecute':()=>_0x587441(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x3dbfe0=this['editor'],_0x173fb7=_0x3dbfe0['locale'];this['_saveRevisionFormView']=new hs(_0x173fb7,_0x3dbfe0['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Y extends ts{['changeId'];['_model'];constructor(_0x4e59e0,_0x2dda87){super(_0x4e59e0),this['_model']=_0x2dda87,this['changeId']=_0x2dda87['id'];const _0x4f7e83=this['bindTemplate'],_0x5f0687=R(_0x4e59e0,_0x2dda87['data']['isSuggestion']?'Suggested\x20by':'add'==_0x2dda87['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x2dda87['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x4f7e83['to']('type',_0x54d810=>'ck-revision-change__'+_0x54d810)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x5f0687}]},{'text':'\x20'+_0x2dda87['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x6de063(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x1d64d5){super(),this['id']=_0x1d64d5['id']||_0x2c16be(),this['author']=_0x1d64d5['author'],this['type']=_0x1d64d5['type'],this['data']=_0x1d64d5['data']||{},this['rootName']=_0x1d64d5['rootName'],this['set']('createdAt',_0x1d64d5['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(_0x53e5f9,_0x1e8e12){this['newRevisionId']=_0x53e5f9,this['oldRevisionId']=_0x1e8e12,this['changes']=new _0x589480();}['_setChanges'](_0x2934ed){for(const _0x33320c of _0x2934ed)this['changes']['add'](_0x33320c);}}const Z={'c':_0x53de37,'a':_0x3a1a5c,'e':_0x11dac0,'r':_0x263c1c,'u':_0x55ce4d};class d extends _0x51bff9{['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[_0x532a7f,_0x4ace0d,j];}constructor(_0x59befb){super(_0x59befb),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',(_0x1f900a,_0x18b869,_0x2ecd92)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x279718=>{for(const _0x2b2b4f of this['editor']['editing']['view']['document']['roots'])_0x2ecd92?_0x279718['removeClass']('ck-editor__editable__overlay',_0x2b2b4f):_0x279718['addClass']('ck-editor__editable__overlay',_0x2b2b4f);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x2e72a6=>null!==_0x2e72a6),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x42e234,_0x26f1cc,_0x4a089b)=>_0x42e234&&_0x4a089b?_0x26f1cc['changes']['getIndex'](_0x4a089b):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x564ea7,_0x4f4895)=>_0x564ea7?_0x4f4895['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x4ace0d);}['init'](){const _0x546770=this['editor'],_0x4e1f90=new yt(_0x546770,{'direction':'backward'}),_0x287862=new yt(_0x546770,{'direction':'forward'});(_0x546770['commands']['add']('showPreviousChange',_0x4e1f90),_0x546770['commands']['add']('showNextChange',_0x287862),_0x546770['commands']['add']('restoreRevision',new _t(_0x546770)),this['on']('change:numberOfChanges',()=>{_0x4e1f90['refresh'](),_0x287862['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x546770['enableReadOnlyMode']('revision-viewer'),_0x546770['plugins']['has']('WidgetToolbarRepository'))&&_0x546770['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x1fe8ac){await this['loadRevisionData'](_0x1fe8ac);const _0x526cc8={};for(const _0x4b6655 in _0x1fe8ac['diffData']){if(_0x1fe8ac['diffData'][_0x4b6655]['attachChange']&&!_0x1fe8ac['diffData'][_0x4b6655]['attachChange']['isAttached'])continue;const _0x49faee=this['_removeRevisionMarkers'](JSON['parse'](_0x1fe8ac['diffData'][_0x4b6655]['insertions'])),_0x5a854c=this['editor']['editing']['view']['document'],_0x4e1e07=new _0x46a385(_0x5a854c,_0x49faee['map'](_0xaacc79=>this['_getViewObj'](_0xaacc79)));this['editor']['data']['processor']['useFillerType']('marked'),_0x526cc8[_0x4b6655]=this['editor']['data']['processor']['toData'](_0x4e1e07),this['editor']['data']['processor']['useFillerType']('default');}return _0x526cc8;}async['getRevisionRootsAttributes'](_0x2c971a){await this['loadRevisionData'](_0x2c971a);const _0xbba455={};for(const _0x36c868 in _0x2c971a['diffData'])_0x2c971a['diffData'][_0x36c868]['attachChange']&&!_0x2c971a['diffData'][_0x36c868]['attachChange']['isAttached']||(_0xbba455[_0x36c868]=_0x2c971a['diffData'][_0x36c868]['attributesAfter']||{});return _0xbba455;}['_removeRevisionMarkers'](_0x40d3e0){return(_0x40d3e0=_0x40d3e0['filter'](_0x4053a9=>!_0x4053a9['name']||'revision-start'!==_0x4053a9['name']&&'revision-end'!==_0x4053a9['name']))['forEach'](_0xe0951f=>{'string'!=typeof _0xe0951f&&(_0xe0951f['children']=this['_removeRevisionMarkers'](_0xe0951f['children']),_0xe0951f['attributes']=_0xe0951f['attributes']['filter'](_0x4046c4=>!_0x4046c4[0x0]['startsWith']('data-revision-')));}),_0x40d3e0;}async['compare'](_0xd77189,_0x251e09,_0x3e8681=!0x1){if(!this['isEnabled'])return;const _0xbab040=this['diff'],_0x25ab3b=this['repository'],_0x5187f9='string'==typeof _0xd77189?_0x25ab3b['getRevision'](_0xd77189):_0xd77189,_0x3861cb='string'==typeof _0x251e09?_0x25ab3b['getRevision'](_0x251e09):_0x251e09,_0x4c7945=_0x5187f9['id'],_0x5cdef9=_0x3861cb?_0x3861cb['id']:null;if(!_0x3e8681&&this['diff']&&this['diff']['newRevisionId']===_0x4c7945&&this['diff']['oldRevisionId']===_0x5cdef9)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x4c7945,_0x5cdef9);const _0x4e83b9=this['_getRevisionsRange'](_0x5187f9,_0x3861cb,!0x0)['map'](_0x2de0b2=>this['loadRevisionData'](_0x2de0b2));return _0x4e83b9['push'](new Promise(_0x1ecf4f=>{setTimeout(_0x1ecf4f,0x14);})),Promise['all'](_0x4e83b9)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x42bbdd=this['_getDiff'](_0x4c7945,_0x5cdef9);for(const _0x3067a of _0x42bbdd['changes'])this['_changeIdToChange']['set'](_0x3067a['id'],_0x3067a);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x2f3523=>{for(const _0x423736 of this['editor']['model']['document']['getRootNames']())_0x2f3523['detachRoot'](_0x423736);for(const _0x58ced2 of Object['keys'](_0x42bbdd['model'])){const _0x26ecb6=_0x2f3523['addRoot'](_0x58ced2);for(const _0x59f629 of Object['keys'](_0x42bbdd['attributes'][_0x58ced2]))_0x2f3523['setAttribute'](_0x59f629,_0x42bbdd['attributes'][_0x58ced2][_0x59f629],_0x26ecb6);_0x2f3523['insert'](_0x42bbdd['model'][_0x58ced2],_0x26ecb6,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x42bbdd['changes'])),this['isReady']=!0x0;})['catch'](_0x1f9300=>{console['error'](_0x1f9300),this['_cleanUp'](),_0xbab040&&(this['diff']=_0xbab040),this['isReady']=!0x0;});}['addRevisionData'](_0x2e94bd,_0x59401f){const _0x598456=this['repository']['createRevision'](_0x2e94bd);return _0x598456['on']('_update',(_0x3d7c47,_0x1b112f,_0x4aa331)=>_0x59401f(_0x1b112f,_0x4aa331,_0x598456)),this['repository']['addRevision'](_0x598456),_0x598456;}['loadRevisionData'](_0x913b2d){if(!_0x913b2d||_0x913b2d['diffData'])return Promise['resolve']();{const _0x7b0158=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x7b0158,'revisionId':_0x913b2d['id']})['then'](_0x129100=>{_0x913b2d['_update']({'diffData':_0x129100['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},_0x39cf25=>{for(const _0x2d5ae3 of this['editor']['model']['document']['getRootNames']())_0x39cf25['detachRoot'](_0x2d5ae3);});}['_sortAndFilterDiffChanges'](_0x286761){const _0x193322=[],_0x48ac90=new Map();for(const _0x8482b8 of this['editor']['model']['document']['getRootNames']()){const _0xd775d9=this['editor']['editing']['view']['getDomRoot'](_0x8482b8);if(!_0xd775d9)continue;const _0x230825=_0xd775d9['getClientRects']()['item'](0x0);_0x230825&&(_0x193322['push'](_0x8482b8),_0x48ac90['set'](_0x8482b8,_0x230825));}return _0x193322['sort']((_0x5ecf1b,_0x1224d9)=>{const _0x794396=_0x48ac90['get'](_0x5ecf1b),_0x1fc377=_0x48ac90['get'](_0x1224d9);return _0x794396['y']-_0x1fc377['y']||_0x794396['x']-_0x1fc377['x'];}),(_0x286761=_0x286761['filter'](_0x4d06a8=>_0x193322['includes'](_0x4d06a8['rootName'])))['sort']((_0x2c34aa,_0x384250)=>_0x193322['indexOf'](_0x2c34aa['rootName'])-_0x193322['indexOf'](_0x384250['rootName'])),_0x286761;}['_makeTape'](_0x3c8096){const _0x5d0538=Array['from'](_0x3c8096['markers'])['filter'](([_0x9716e5,_0x40bc32])=>_0x9716e5['startsWith']('revision:')&&!_0x40bc32['isCollapsed']),_0x1f21be=Array['from'](this['editor']['model']['createRangeIn'](_0x3c8096)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x5d0538['length'])for(const _0x4051d5 of _0x1f21be){const [_0x2437b2,_0x2dc523]=_0x5d0538[0x0],[,_0x1a4b51,_0x566244]=_0x2437b2['split'](':');if(_0x2dc523['end']['isEqual'](_0x4051d5['nextPosition'])&&_0x5d0538['shift'](),(_0x4051d5['previousPosition']['isEqual'](_0x2dc523['start'])||_0x4051d5['previousPosition']['isAfter'](_0x2dc523['start']))&&('insertion'==_0x1a4b51?_0x4051d5['isAdded']={'userId':_0x566244}:'deletion'==_0x1a4b51&&(_0x4051d5['isRemoved']={'userId':_0x566244})),0x0==_0x5d0538['length'])break;}return _0x1f21be;}['_refreshStartEndIndex'](_0x4ddcb5){const _0x4d8796=new Map();for(let _0x17c294=0x0;_0x17c294<_0x4ddcb5['length'];_0x17c294++)'text'===_0x4ddcb5[_0x17c294]['type']?(_0x4ddcb5[_0x17c294]['item']['startIndex']=_0x17c294,_0x4ddcb5[_0x17c294]['item']['endIndex']=_0x17c294):('elementStart'===_0x4ddcb5[_0x17c294]['type']?_0x4ddcb5[_0x17c294]['item']['startIndex']=_0x17c294:'elementEnd'===_0x4ddcb5[_0x17c294]['type']&&(_0x4ddcb5[_0x17c294]['item']['endIndex']=_0x17c294),_0x4d8796['set'](_0x4ddcb5[_0x17c294]['id'],_0x17c294));for(const _0x18851c of _0x4d8796['values']())'elementStart'===_0x4ddcb5[_0x18851c]['type']?_0x4ddcb5[_0x18851c]['item']['endIndex']=_0x4d8796['get'](_0x4ddcb5[_0x18851c]['pairId']):'elementEnd'===_0x4ddcb5[_0x18851c]['type']&&(_0x4ddcb5[_0x18851c]['item']['startIndex']=_0x4d8796['get'](_0x4ddcb5[_0x18851c]['pairId']));}['_processTape'](_0x11c6c9){for(let _0x26c242=0x0;_0x26c242<_0x11c6c9['length'];_0x26c242++){if('elementStart'===_0x11c6c9[_0x26c242]['type'])_0x11c6c9[_0x26c242]['item']['startIndex']=_0x26c242;else{if('elementEnd'===_0x11c6c9[_0x26c242]['type']){_0x11c6c9[_0x26c242]['item']['endIndex']=_0x26c242;const _0x8f5caf=_0x11c6c9[_0x26c242]['item']['startIndex'];_0x11c6c9[_0x8f5caf]['pairId']=_0x11c6c9[_0x26c242]['id'],_0x11c6c9[_0x26c242]['pairId']=_0x11c6c9[_0x8f5caf]['id'];}else _0x11c6c9[_0x26c242]['item']['startIndex']=_0x26c242,_0x11c6c9[_0x26c242]['item']['endIndex']=_0x26c242,_0x11c6c9[_0x26c242]['pairId']=null;}_0x11c6c9[_0x26c242]['markersStart']||(_0x11c6c9[_0x26c242]['markersStart']=[],_0x11c6c9[_0x26c242]['markersEnd']=[]);}}['_markInsertions'](_0x230eca,_0x3b8524){const _0x237c18=_0x230eca['filter'](_0x1d9f64=>!_0x1d9f64['isAdded']);for(let _0x51a0e4=0x0;_0x51a0e4<_0x3b8524['length'];_0x51a0e4++)_0x3b8524[_0x51a0e4]['isAdded']&&(_0x237c18[_0x51a0e4]['isAdded']=_0x3b8524[_0x51a0e4]['isAdded']);}['_makeModelFromViewString'](_0x12c4ff){const _0x478e28=JSON['parse'](_0x12c4ff),_0x5f1f38=this['editor']['editing']['view']['document'],_0x359fd0=new _0x46a385(_0x5f1f38,_0x478e28['map'](_0x1eaf3f=>this['_getViewObj'](_0x1eaf3f)));return this['editor']['data']['toModel'](_0x359fd0);}['_getViewObj'](_0x665b10){const _0x250dcb=this['editor']['editing']['view']['document'];if('string'==typeof _0x665b10)return new _0x2bd295(_0x250dcb,_0x665b10);{const _0x13f85b=_0x665b10['children']['map'](_0x3001cb=>this['_getViewObj'](_0x3001cb));return new(Z[_0x665b10['type']]||_0x12a678)(_0x250dcb,_0x665b10['name'],_0x665b10['attributes'],_0x13f85b);}}['_getDiff'](_0x1bfad4,_0x43a65f=null){const _0x349a4c=this['repository']['getRevision'](_0x1bfad4),_0x52aafd=_0x43a65f?this['repository']['getRevision'](_0x43a65f):null,_0x1bec50=this['_getRevisionsRange'](_0x349a4c,_0x52aafd),_0x48f234=_0x1bec50[_0x1bec50['length']-0x1],_0x32f0ea=new Map(),_0x3b8084={'model':{},'attributes':{},'changes':[]},_0x66b373=new Set(),_0x4febb1=new Map();for(let _0x543186=_0x1bec50['length']-0x1;_0x543186>=0x0;_0x543186--){const _0x58d839=_0x1bec50[_0x543186];for(const _0x18e277 of Object['keys'](_0x58d839['diffData']))if(_0x58d839['diffData'][_0x18e277]['attachChange']){const _0x89bcd9=_0x58d839['diffData'][_0x18e277]['attachChange'];_0x89bcd9['isAttached']?(_0x66b373['add'](_0x18e277),_0x4febb1['has'](_0x18e277)&&_0x4febb1['get'](_0x18e277)['userId']==_0x89bcd9['userId']?_0x4febb1['delete'](_0x18e277):_0x4febb1['set'](_0x18e277,_0x89bcd9)):_0x4febb1['has'](_0x18e277)?(_0x66b373['delete'](_0x18e277),_0x4febb1['delete'](_0x18e277)):(_0x66b373['add'](_0x18e277),_0x4febb1['set'](_0x18e277,_0x89bcd9));}else _0x66b373['add'](_0x18e277);}for(const _0x27ae0a of _0x66b373){const _0x501f2b=_0x4febb1['has'](_0x27ae0a)&&!_0x4febb1['get'](_0x27ae0a)['isAttached'];let _0x32d6e=_0x501f2b?_0x1bec50['length']-0x1:0x0;const _0x5179f7=_0x501f2b?-0x1:0x1;for(;_0x1bec50[_0x32d6e];){const _0x483c80=_0x1bec50[_0x32d6e];if(_0x483c80['diffData'][_0x27ae0a]){const _0xdc769b=_0x501f2b?_0x483c80['diffData'][_0x27ae0a]['attributesBefore']:_0x483c80['diffData'][_0x27ae0a]['attributesAfter'];_0x3b8084['attributes'][_0x27ae0a]=_0xdc769b?_0x57ef62(_0xdc769b):{};break;}_0x32d6e+=_0x5179f7;}}for(const _0x3d24f3 of _0x1bec50){_0x3d24f3['model']={};for(const _0x4b3e0b of _0x3d24f3['authors'])_0x32f0ea['set'](_0x4b3e0b['id'],_0x4b3e0b);for(const _0x1bd05c of _0x66b373){const _0x1b7e59=_0x3d24f3['diffData'][_0x1bd05c]?_0x3d24f3['diffData'][_0x1bd05c]['insertions']:'[]',_0x2f5ae4=_0x3d24f3['diffData'][_0x1bd05c]?_0x3d24f3['diffData'][_0x1bd05c]['deletions']:'[]';_0x3d24f3['model'][_0x1bd05c]={'insertions':this['_makeModelFromViewString'](_0x1b7e59),'deletions':this['_makeModelFromViewString'](_0x2f5ae4)};}}for(const _0x5ace1f of _0x66b373){let _0x5a5d99=null,_0x230519=0x0;const _0x4171f2=new Map(Array['from'](_0x349a4c['model'][_0x5ace1f]['insertions']['markers'])['filter'](([_0x545625])=>!_0x545625['startsWith']('revision:')));let _0x3e0c47=0x0;for(const _0x5ed226 of _0x1bec50){const _0x303190=this['_makeTape'](_0x5ed226['model'][_0x5ace1f]['insertions']);_0x5ed226==_0x349a4c?(_0x5a5d99=_0x303190,_0x230519=_0x5a5d99['length'],_0x5a5d99['forEach'](_0x3374c9=>{_0x3374c9['id']=_0x3e0c47++;}),this['_processTape'](_0x5a5d99)):this['_markInsertions'](_0x5a5d99,_0x303190);const _0x3ace28=_0x5a5d99['filter'](_0x5e0c68=>!_0x5e0c68['isAdded'])['map'](_0x158758=>_0x158758['id']);let _0x2eb264=0x0;const _0x54b1b9=this['_makeTape'](_0x5ed226['model'][_0x5ace1f]['deletions']);_0x54b1b9['forEach'](_0x1a780b=>{_0x1a780b['isRemoved']?_0x1a780b['id']=_0x230519++:_0x1a780b['id']=_0x3ace28[_0x2eb264++];}),this['_processTape'](_0x54b1b9),this['_setDistance'](_0x5a5d99,'isAdded'),this['_setDistance'](_0x54b1b9,'isRemoved'),_0x5ed226==_0x349a4c&&this['_markMarkers'](_0x5a5d99,_0x4171f2),_0x5a5d99=this['_joinTapes'](_0x5a5d99,_0x54b1b9),this['_refreshStartEndIndex'](_0x5a5d99),this['_setDistance'](_0x5a5d99,'isRemoved');}_0x5a5d99=_0x5a5d99['filter'](_0x2da7d5=>!(_0x2da7d5['isAdded']&&_0x2da7d5['isRemoved']));const _0x4825a9=new Map(_0x48f234['model'][_0x5ace1f]['deletions']['markers']),_0x241c1e=new Set(_0x4171f2['keys']());for(const _0x342b24 of _0x4825a9['keys']())_0x241c1e['delete'](_0x342b24);this['_markSuggestions'](_0x5a5d99,_0x241c1e),this['_fixObsoleteTags'](_0x5a5d99),_0x5a5d99=this['_removeMissingPairs'](_0x5a5d99),_0x5a5d99=this['_markMismatchedRemovedTags'](_0x5a5d99),_0x5a5d99=this['_removeUnsupportedChanges'](_0x5a5d99);const {root:_0x4f70ab,changes:_0x50d608}=this['_makeModelFromTape'](_0x5a5d99,_0x32f0ea,_0x5ace1f);_0x3b8084['model'][_0x5ace1f]=_0x4f70ab;const _0x169f74=_0x4febb1['get'](_0x5ace1f);if(_0x169f74){const _0x2cb7c2=_0x32f0ea['get'](_0x169f74['userId']),_0x537f82=new r({'author':_0x2cb7c2,'type':_0x169f74['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x5ace1f});_0x50d608['unshift'](_0x537f82),_0x3b8084['attributes'][_0x5ace1f]['revisionHistoryAttachChange']=_0x537f82['id'];}_0x3b8084['changes']=_0x3b8084['changes']['concat'](_0x50d608);}return _0x3b8084;}['_markMarkers'](_0x471b39,_0x12c34e){for(let _0x22d981=0x0;_0x22d981<_0x471b39['length'];_0x22d981++)for(const [_0x13f22b,_0x1f2f8e]of _0x12c34e)_0x1f2f8e['start']['isEqual'](_0x471b39[_0x22d981]['previousPosition'])&&_0x471b39[_0x22d981]['markersStart']['push'](_0x13f22b),_0x1f2f8e['end']['isEqual'](_0x471b39[_0x22d981]['nextPosition'])&&_0x471b39[_0x22d981]['markersEnd']['push'](_0x13f22b);}['_joinTapes'](_0x2c6d19,_0x1cc423){let _0x6cb96d=[],_0x269a0b=0x0,_0x4a16ba=0x0;for(;_0x269a0b<_0x2c6d19['length']||_0x4a16ba<_0x1cc423['length'];){const _0x2ec2b3=_0x2c6d19[_0x269a0b]||{},_0xfb5332=_0x1cc423[_0x4a16ba]||{};if(_0x2ec2b3['id']==_0xfb5332['id'])_0x269a0b++,_0x4a16ba++,_0x6cb96d['push'](_0x2ec2b3);else{if(_0xfb5332['isRemoved']&&_0x2ec2b3['isAdded']){const {commonTape:_0x4477b5,iEnd:_0x435083,jEnd:_0x1392c7}=this['_threeWayMerge'](_0x2c6d19,_0x269a0b,_0x1cc423,_0x4a16ba);_0x6cb96d=_0x6cb96d['concat'](_0x4477b5),_0x269a0b=_0x435083,_0x4a16ba=_0x1392c7;}else _0xfb5332['isRemoved']?(_0x4a16ba++,_0x6cb96d['push'](_0xfb5332)):(_0x269a0b++,_0x6cb96d['push'](_0x2ec2b3));}}return _0x6cb96d;}['_markSuggestions'](_0x1671e1,_0x2914f1){const _0x5995c6=[];for(let _0x44c100=0x0;_0x44c100<_0x1671e1['length'];_0x44c100++){for(let _0xf7250e=0x0;_0xf7250e<_0x1671e1[_0x44c100]['markersStart']['length'];_0xf7250e++){const _0x36b826=_0x1671e1[_0x44c100]['markersStart'][_0xf7250e];if(!_0x2914f1['has'](_0x36b826))continue;const {group:_0x283673,type:_0x915665,authorId:_0x53f63b}=_0x3add73(_0x36b826);'revision-suggestion'!=_0x283673||'insertion'!=_0x915665&&'deletion'!=_0x915665||(_0x5995c6['unshift']({'type':_0x915665,'name':_0x36b826,'userId':_0x53f63b}),_0x1671e1[_0x44c100]['markersStart']['splice'](_0xf7250e,0x1),_0xf7250e--);}_0x53a02a(_0x1671e1[_0x44c100]);for(let _0x3ca653=0x0;_0x3ca653<_0x1671e1[_0x44c100]['markersEnd']['length'];_0x3ca653++){const _0x49b941=_0x1671e1[_0x44c100]['markersEnd'][_0x3ca653];if(!_0x2914f1['has'](_0x49b941))continue;const {group:_0x4afdc8,type:_0x2863a7}=_0x3add73(_0x49b941);if('revision-suggestion'!=_0x4afdc8||'insertion'!=_0x2863a7&&'deletion'!=_0x2863a7)continue;_0x1671e1[_0x44c100]['markersEnd']['splice'](_0x3ca653,0x1),_0x3ca653--;const _0x2a0300=_0x5995c6['findIndex'](_0x3a8827=>_0x3a8827['name']==_0x49b941);_0x2a0300>-0x1&&_0x5995c6['splice'](_0x2a0300,0x1);}}function _0x3add73(_0x266a27){const _0x1c2b3e=_0x266a27['split'](':');return{'group':_0x1c2b3e[0x0],'type':_0x1c2b3e[0x1],'subType':_0x1c2b3e['length']>=0x5?_0x1c2b3e[0x2]:null,'id':_0x1c2b3e['length']<0x5?_0x1c2b3e[0x2]:_0x1c2b3e[0x3],'authorId':_0x1c2b3e['length']<0x5?_0x1c2b3e[0x3]:_0x1c2b3e[0x4],'markerCount':0x6==_0x1c2b3e['length']?_0x1c2b3e[0x5]:null};}function _0x53a02a(_0x40f9b1){for(let _0x6acc5e=0x0;_0x6acc5e<_0x5995c6['length'];_0x6acc5e++){if(_0x40f9b1['isAdded']&&'insertion'==_0x5995c6[_0x6acc5e]['type'])return _0x40f9b1['isAddSuggestion']=_0x5995c6[_0x6acc5e],void delete _0x40f9b1['isAdded'];if(!_0x40f9b1['isAdded']&&!_0x40f9b1['isRemoved']&&'deletion'==_0x5995c6[_0x6acc5e]['type'])return void(_0x40f9b1['isRemoveSuggestion']=_0x5995c6[_0x6acc5e]);}}}['_setDistance'](_0x42395f,_0x4bc67f){let _0x5cc5f5=0x0,_0x2c896f=!0x1;const _0x4346f9=new Map();for(const _0x4cb0f9 of _0x42395f)_0x4cb0f9[_0x4bc67f]?_0x2c896f&&(_0x5cc5f5++,_0x2c896f=!0x1):(_0x5cc5f5++,_0x2c896f=!0x0),_0x4346f9['set'](_0x4cb0f9['id'],_0x5cc5f5);for(let _0x46f4c2=0x0;_0x46f4c2<_0x42395f['length'];_0x46f4c2++){if('isRemoved'==_0x4bc67f&&_0x42395f[_0x46f4c2]['isAdded']||'isAdded'==_0x4bc67f&&_0x42395f[_0x46f4c2]['isRemoved'])continue;if('text'==_0x42395f[_0x46f4c2]['type']){_0x42395f[_0x46f4c2]['distance']=0x0;continue;}const _0x4157e1=_0x4346f9['get'](_0x42395f[_0x46f4c2]['pairId']),_0x337d3a=_0x4346f9['get'](_0x42395f[_0x46f4c2]['id']);_0x42395f[_0x46f4c2]['distance']=_0x4157e1-_0x337d3a;}}['_getRevisionsRange'](_0x905a7,_0x77368f,_0x490381=!0x1){const _0x4e8f03=[];let _0x2b5f1d=this['repository']['getIndex'](_0x905a7),_0x417bdb=this['repository']['getIndex'](_0x77368f);for(-0x1==_0x417bdb&&(_0x417bdb=this['repository']['_revisions']['length'],_0x490381=!0x1);_0x2b5f1d<_0x417bdb;)_0x4e8f03['push'](this['repository']['getRevision'](_0x2b5f1d)),_0x2b5f1d++;return _0x490381&&_0x4e8f03['push'](this['repository']['getRevision'](_0x2b5f1d)),_0x4e8f03;}['_threeWayMerge'](_0x52c004,_0x5a95b9,_0x58197c,_0x594642){const _0x4b14e5=this['editor']['model']['schema'];let _0x35aa6b=_0x5a95b9;for(;_0x52c004[_0x35aa6b]&&_0x52c004[_0x35aa6b]['isAdded'];)_0x35aa6b++;let _0x59fe9d=_0x594642;for(;_0x58197c[_0x59fe9d]&&_0x58197c[_0x59fe9d]['isRemoved'];)_0x59fe9d++;_0x473068(_0x52c004,_0x5a95b9,_0x35aa6b),_0x473068(_0x58197c,_0x594642,_0x59fe9d);const _0x5c9ba7=_0x58197c['slice'](_0x594642,_0x59fe9d)['concat'](_0x52c004['slice'](_0x5a95b9,_0x35aa6b));return _0x5c9ba7['sort']((_0x40d881,_0xb658dd)=>_0x40d881['side']!=_0xb658dd['side']?_0x40d881['side']-_0xb658dd['side']:_0x40d881['level']!=_0xb658dd['level']?_0x40d881['level']-_0xb658dd['level']:_0x40d881['distance']!=_0xb658dd['distance']?_0xb658dd['distance']-_0x40d881['distance']:!!_0x40d881['isAdded']!=!!_0xb658dd['isAdded']?-0x1==_0x40d881['side']||0x0==_0x40d881['side']?_0x40d881['isAdded']?-0x1:0x1:_0x40d881['isAdded']?0x1:-0x1:_0x40d881['index']-_0xb658dd['index']),{'commonTape':_0x5c9ba7,'iEnd':_0x35aa6b,'jEnd':_0x59fe9d};function _0x473068(_0x3ee3dd,_0x2739eb,_0x3493d1){let _0x12bff6=-0x1,_0x1f115e=Number['POSITIVE_INFINITY'],_0x2b497a=!0x0;for(let _0x2e588f=_0x2739eb;_0x2e588f<_0x3493d1;_0x2e588f++)if(_0x4b14e5['isInline'](_0x3ee3dd[_0x2e588f]['item'])||(_0x2b497a=!0x1),_0x3ee3dd[_0x2e588f]['item']['startIndex']<_0x2739eb&&(_0x12bff6=_0x2e588f),_0x3ee3dd[_0x2e588f]['item']['endIndex']>=_0x3493d1){_0x1f115e=_0x2e588f;break;}_0x2b497a&&(_0x12bff6=_0x3493d1-0x1);for(let _0x476c8f=_0x2739eb;_0x476c8f<_0x3493d1;_0x476c8f++)_0x3ee3dd[_0x476c8f]['side']=_0x476c8f<=_0x12bff6?-0x1:_0x476c8f<_0x1f115e?0x0:0x1,_0x3ee3dd[_0x476c8f]['index']=_0x476c8f;let _0x5bc316=0x0;for(let _0x2bd455=_0x2739eb;_0x2bd455<=_0x12bff6;_0x2bd455++)0x0==_0x3ee3dd[_0x2bd455]['distance']?_0x3ee3dd[_0x2bd455]['level']=_0x5bc316:(_0x5bc316++,_0x3ee3dd[_0x2bd455]['level']=_0x5bc316,_0x5bc316++);for(let _0x497d18=_0x2739eb;_0x497d18<_0x3493d1;_0x497d18++)0x0==_0x3ee3dd[_0x497d18]['side']&&(_0x3ee3dd[_0x497d18]['level']=_0x5bc316);_0x5bc316=0x0;for(let _0x500de0=_0x3493d1-0x1;_0x500de0>=_0x1f115e;_0x500de0--)0x0==_0x3ee3dd[_0x500de0]['distance']?_0x3ee3dd[_0x500de0]['level']=_0x5bc316:(_0x5bc316--,_0x3ee3dd[_0x500de0]['level']=_0x5bc316,_0x5bc316--);}}['_fixObsoleteTags'](_0x249c1d){const _0x300bf7=new Map(),_0x3343a1=this['editor']['model']['schema'];for(let _0x14c9e4=0x1;_0x14c9e4<_0x249c1d['length'];_0x14c9e4++){let _0xce3b92,_0x47921d,_0x390d6a;const _0x32ec97=_0x249c1d[_0x14c9e4],_0x1b7d38=_0x249c1d[_0x14c9e4-0x1];if('text'==_0x32ec97['type'])continue;if(_0x32ec97['type']!=_0x1b7d38['type'])continue;if(!_0x3343a1['isBlock'](_0x1b7d38['item'])||_0x3343a1['isLimit'](_0x1b7d38['item']))continue;if(!_0x3343a1['isBlock'](_0x32ec97['item'])||_0x3343a1['isLimit'](_0x32ec97['item']))continue;if((_0x249c1d[_0x14c9e4]['isAdded']||_0x249c1d[_0x14c9e4]['isAddSuggestion'])&&_0x249c1d[_0x14c9e4-0x1]['isRemoved'])_0xce3b92=_0x249c1d[_0x14c9e4],_0x47921d=_0x249c1d[_0x14c9e4-0x1],_0x390d6a=_0x14c9e4-0x1;else{if(!_0x249c1d[_0x14c9e4]['isRemoved']||!_0x249c1d[_0x14c9e4-0x1]['isAdded']&&!_0x249c1d[_0x14c9e4-0x1]['isAddSuggestion'])continue;_0xce3b92=_0x249c1d[_0x14c9e4-0x1],_0x47921d=_0x249c1d[_0x14c9e4],_0x390d6a=_0x14c9e4;}const _0x3f34ca=_0xce3b92['level']==_0x47921d['level'],_0x352cc4=Math['abs'](_0xce3b92['level'])<Math['abs'](_0x47921d['level'])&&0x0==_0x47921d['distance'];(_0x3f34ca||_0x352cc4)&&(_0x300bf7['set'](_0x47921d['id'],_0xce3b92['id']),_0x249c1d['splice'](_0x390d6a,0x1),_0x14c9e4--,_0xce3b92['isAdded']=!0x1);}for(let _0x34b8da=0x0;_0x34b8da<_0x249c1d['length'];_0x34b8da++)_0x300bf7['has'](_0x249c1d[_0x34b8da]['pairId'])&&(_0x249c1d[_0x34b8da]['pairId']=_0x300bf7['get'](_0x249c1d[_0x34b8da]['pairId']));}['_removeMissingPairs'](_0x3d36c0){const _0x2dd3fe=new Set(_0x3d36c0['map'](_0x57fcdf=>_0x57fcdf['id']));for(let _0x46ca17=0x0;_0x46ca17<_0x3d36c0['length'];_0x46ca17++)_0x2dd3fe['has'](_0x3d36c0[_0x46ca17]['pairId'])||0x0==_0x3d36c0[_0x46ca17]['distance']||(_0x3d36c0[_0x46ca17]['isIncorrect']=!0x0);return _0x3d36c0['filter'](_0xeef286=>!_0xeef286['isIncorrect']);}['_markMismatchedRemovedTags'](_0x1025d4){const _0x2b6a12=new Set();for(let _0x24f585=0x0;_0x24f585<_0x1025d4['length'];_0x24f585++){if(_0x2b6a12['has'](_0x1025d4[_0x24f585]['id'])&&_0x1025d4[_0x24f585]['isRemoved']&&(_0x1025d4[_0x24f585]['isIncorrect']=!0x0),_0x1025d4[_0x24f585]['isIncorrect'])continue;if(0x0==_0x1025d4[_0x24f585]['distance'])continue;if('elementStart'!=_0x1025d4[_0x24f585]['type'])continue;if(null==_0x1025d4[_0x24f585]['pairId'])continue;let _0x4f6890=_0x24f585+0x1,_0x431dcb=0x0;for(;_0x1025d4[_0x4f6890]['id']!=_0x1025d4[_0x24f585]['pairId'];)'elementStart'==_0x1025d4[_0x4f6890]['type']?_0x431dcb++:'elementEnd'==_0x1025d4[_0x4f6890]['type']&&_0x431dcb--,_0x4f6890++;if(0x0!=_0x431dcb){if(_0x1025d4[_0x24f585]['isRemoved'])_0x1025d4[_0x24f585]['isIncorrect']=!0x0;else{for(;_0x4f6890!=_0x24f585;)_0x1025d4[_0x4f6890]['isRemoved']&&0x0!=_0x1025d4[_0x4f6890]['distance']&&(_0x1025d4[_0x4f6890]['isIncorrect']=!0x0,_0x2b6a12['add'](_0x1025d4[_0x4f6890]['pairId'])),_0x4f6890--;}}}return _0x1025d4['filter'](_0x7b449b=>!_0x7b449b['isIncorrect']);}['_removeUnsupportedChanges'](_0x27538b){const _0x50d356=this['editor']['model']['schema'];for(let _0x49beaf=0x0;_0x49beaf<_0x27538b['length'];_0x49beaf++){if(!(_0x27538b[_0x49beaf]['isAdded']||_0x27538b[_0x49beaf]['isAddSuggestion']||_0x27538b[_0x49beaf]['isRemoved']||_0x27538b[_0x49beaf]['isRemoveSuggestion']))continue;if(0x0==_0x27538b[_0x49beaf]['distance'])continue;const _0x17d949=_0x27538b[_0x49beaf]['item'];_0x50d356['isBlock'](_0x17d949)||_0x50d356['isLimit'](_0x17d949)||(_0x27538b[_0x49beaf]['isAdded']&&delete _0x27538b[_0x49beaf]['isAdded'],_0x27538b[_0x49beaf]['isAddSuggestion']&&delete _0x27538b[_0x49beaf]['isAddSuggestion'],_0x27538b[_0x49beaf]['isRemoveSuggestion']&&delete _0x27538b[_0x49beaf]['isRemoveSuggestion'],_0x27538b[_0x49beaf]['isRemoved']&&(_0x27538b[_0x49beaf]['isIncorrect']=!0x0));}return _0x27538b['filter'](_0x43b885=>!_0x43b885['isIncorrect']);}['_makeModelFromTape'](_0x56d41e,_0x5e65d4,_0x281d0f){const _0x2f667e=new mt(),_0x5ac840=[],_0x21da47=new Map(),_0x5d94a2=this['editor']['model'],_0x32f0a7=_0x5d94a2['schema'],_0xa5606c=[_0x2f667e],_0x112461={},_0x218e2b={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x1e057e=null;const _0xdcbeca=[0x0];for(let _0x4da8d7=0x0;_0x4da8d7<_0x56d41e['length'];_0x4da8d7++)if('elementStart'===_0x56d41e[_0x4da8d7]['type']){_0x56d41e[_0x4da8d7]['previousPosition']=_0x5d94a2['createPositionFromPath'](_0x2f667e,_0xdcbeca);const _0x2f2063=new ft(_0x56d41e[_0x4da8d7]['item']['name'],_0x56d41e[_0x4da8d7]['item']['getAttributes']());_0xa5606c[0x0]['_appendChild'](_0x2f2063),_0xdcbeca['push'](0x0),_0xa5606c['unshift'](_0x2f2063),_0x56d41e[_0x4da8d7]['nextPosition']=_0x5d94a2['createPositionFromPath'](_0x2f667e,_0xdcbeca);}else'elementEnd'===_0x56d41e[_0x4da8d7]['type']?(_0xa5606c['shift'](),_0x56d41e[_0x4da8d7]['previousPosition']=_0x5d94a2['createPositionFromPath'](_0x2f667e,_0xdcbeca),_0xdcbeca['pop'](),_0xdcbeca[_0xdcbeca['length']-0x1]++,_0x56d41e[_0x4da8d7]['nextPosition']=_0x5d94a2['createPositionFromPath'](_0x2f667e,_0xdcbeca)):(_0x56d41e[_0x4da8d7]['previousPosition']=_0x5d94a2['createPositionFromPath'](_0x2f667e,_0xdcbeca),_0x1e057e?_0x1e057e['_data']+=_0x56d41e[_0x4da8d7]['item']['data']:_0x1e057e=new wt(_0x56d41e[_0x4da8d7]['item']['data'],_0x56d41e[_0x4da8d7]['item']['getAttributes']()),_0x56d41e[_0x4da8d7+0x1]&&'text'===_0x56d41e[_0x4da8d7+0x1]['type']&&_0x589960(_0x1e057e,_0x56d41e[_0x4da8d7+0x1]['item'])||(_0xa5606c[0x0]['_appendChild'](_0x1e057e),_0x1e057e=null),_0xdcbeca[_0xdcbeca['length']-0x1]+=_0x56d41e[_0x4da8d7]['item']['offsetSize'],_0x56d41e[_0x4da8d7]['nextPosition']=_0x5d94a2['createPositionFromPath'](_0x2f667e,_0xdcbeca));for(let _0x3a01cc=0x0;_0x3a01cc<_0x56d41e['length'];_0x3a01cc++){const _0x121011=_0x56d41e[_0x3a01cc]['previousPosition'],_0xf91053=_0x56d41e[_0x3a01cc]['nextPosition'];for(const _0x764a84 of _0x56d41e[_0x3a01cc]['markersStart'])_0x21da47['set'](_0x764a84,{'start':_0x121011,'end':null});_0x3738b5('isRemoveSuggestion',_0x3a01cc,_0x121011,_0xf91053),_0x3738b5('isAddSuggestion',_0x3a01cc,_0x121011,_0xf91053),_0x3738b5('isRemoved',_0x3a01cc,_0x121011,_0xf91053),_0x3738b5('isAdded',_0x3a01cc,_0x121011,_0xf91053);for(const _0x2ab886 of _0x56d41e[_0x3a01cc]['markersEnd']){_0x21da47['get'](_0x2ab886)['end']=_0xf91053;}}for(const [_0x5a2616,_0x4675f4]of _0x21da47){const _0x343145=this['editor']['model']['createRange'](_0x4675f4['start'],_0x4675f4['end']);_0x2f667e['markers']['set'](_0x5a2616,_0x343145);}return _0x5ac840['sort']((_0x2cf30b,_0x4f8fb9)=>{const _0x1b40da=_0x2f667e['markers']['get']('revision:'+_0x2cf30b['id']),_0x5cd3c6=_0x2f667e['markers']['get']('revision:'+_0x4f8fb9['id']);return _0x1b40da['start']['isBefore'](_0x5cd3c6['start'])?-0x1:_0x1b40da['start']['isAfter'](_0x5cd3c6['start'])?0x1:_0x1b40da['end']['isBefore'](_0x5cd3c6['end'])?-0x1:_0x1b40da['end']['isAfter'](_0x5cd3c6['end'])?0x1:'add'===_0x2cf30b['type']?-0x1:0x1;}),{'root':_0x2f667e,'changes':_0x5ac840};function _0x3738b5(_0x5ed591,_0x36b361,_0x2acf64,_0x2d3e9c){const _0x4495dc=!!_0x56d41e[_0x36b361][_0x5ed591],_0x325580=_0x4495dc?_0x56d41e[_0x36b361][_0x5ed591]['userId']:null,_0x50eb7a=_0x36b361===_0x56d41e['length']-0x1,_0x5bef85=_0x218e2b[_0x5ed591][0x0],_0xc635e5=_0x32f0a7['isObject'](_0x56d41e[_0x36b361]['item']);!_0x112461[_0x5ed591]&&_0x4495dc?_0x112461[_0x5ed591]={'start':_0x2acf64,'tapeItem':_0x56d41e[_0x36b361],'userId':_0x325580,'type':_0x5ed591}:_0x112461[_0x5ed591]&&!_0x4495dc?(_0x112461[_0x5ed591]['end']=_0x2acf64,_0x4d4c87(_0x112461[_0x5ed591]),_0x112461[_0x5ed591]=null):_0x112461[_0x5ed591]&&_0x4495dc&&_0x112461[_0x5ed591]['userId']!==_0x325580&&(_0x112461[_0x5ed591]['end']=_0x2acf64,_0x5bef85&&_0x5bef85['userId']===_0x112461[_0x5ed591]['userId']||_0x4d4c87(_0x112461[_0x5ed591]),_0x112461[_0x5ed591]={'start':_0x2acf64,'tapeItem':_0x56d41e[_0x36b361],'userId':_0x325580,'type':_0x5ed591}),_0x112461[_0x5ed591]&&_0xc635e5&&('elementStart'!==_0x56d41e[_0x36b361]['type']||_0x5bef85&&_0x5bef85['userId']===_0x325580||_0x218e2b[_0x5ed591]['unshift']({'userId':_0x325580,'object':_0x56d41e[_0x36b361]['item'],'change':_0x112461[_0x5ed591]}),'elementEnd'===_0x56d41e[_0x36b361]['type']&&_0x5bef85&&_0x5bef85['object']===_0x56d41e[_0x36b361]['item']&&(_0x218e2b[_0x5ed591]['shift'](),_0x112461[_0x5ed591]=_0x5bef85['change'])),_0x112461[_0x5ed591]&&_0x50eb7a&&(_0x112461[_0x5ed591]['end']=_0x2d3e9c,_0x4d4c87(_0x112461[_0x5ed591]),_0x112461[_0x5ed591]=null);}function _0x4d4c87({start:_0x5d9f7a,end:_0x5970cd,tapeItem:_0x4be3d3,userId:_0xd398ea,type:_0x35cef0}){const _0x5583ee=_0x4be3d3['item'],_0x579a41=_0x5d94a2['schema']['isBlock'](_0x5583ee)&&!_0x5d94a2['schema']['isLimit'](_0x5583ee),_0x2d81e2=_0x5d9f7a['nodeAfter']==_0x5970cd['parent']&&_0x5970cd['isAtStart'];if(_0x579a41&&_0x2d81e2)return;const _0x41ce57=_0x5d94a2['createRange'](_0x5d9f7a,_0x5970cd),_0x5d4f21=_0x5e65d4['get'](_0xd398ea),_0xa5c7f6=new r({'author':_0x5d4f21,'type':'isAdded'==_0x35cef0||'isAddSuggestion'==_0x35cef0?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x35cef0||'isRemoveSuggestion'==_0x35cef0},'createdAt':new Date(),'rootName':_0x281d0f});_0x5ac840['push'](_0xa5c7f6),_0x2f667e['markers']['set']('revision:'+_0xa5c7f6['id'],_0x41ce57);}function _0x589960(_0x3f8bb4,_0x2298cf){const _0x2c4944=_0x3f8bb4['getAttributes'](),_0x11fafc=_0x2298cf['getAttributes']();for(const _0x52fa0e of _0x2c4944){if(_0x52fa0e[0x1]!==_0x2298cf['getAttribute'](_0x52fa0e[0x0]))return!0x1;_0x11fafc['next']();}return _0x11fafc['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x3aaf00=>{const _0x2debb5=_0x3aaf00['markerName']['split'](':')[0x1],_0x42f6d2=this['_getChangeFromId'](_0x2debb5);if(!_0x42f6d2)return null;const _0x213f0a='add'==_0x42f6d2['type']?'insertion':'deletion',_0x1003f4=['ck-suggestion-marker','ck-suggestion-marker-'+_0x213f0a];return _0x42f6d2['data']['isSuggestion']&&_0x1003f4['push']('ck-suggestion-marker-'+_0x213f0a+'-new'),this['activeChange']==_0x42f6d2&&_0x1003f4['push']('ck-suggestion-marker--active'),{'classes':_0x1003f4,'attributes':{'data-change-id':_0x2debb5}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x215dca=>{_0x215dca['on']('element:pre',(_0x15f3b3,_0x45bbcb,_0x5619db)=>{const _0x409cf7=_0x45bbcb['viewItem']['getChild'](0x0);if(!_0x409cf7||!_0x409cf7['is']('element','code'))return;if(!_0x5619db['consumable']['consume'](_0x409cf7,{'attributes':['vid_start','vid_end']}))return;const _0xc6cd49=_0x45bbcb['modelRange']['start']['nodeAfter'];_0x5619db['writer']['setAttribute']('vid_start',_0x409cf7['getAttribute']('vid_start'),_0xc6cd49),_0x5619db['writer']['setAttribute']('vid_end',_0x409cf7['getAttribute']('vid_end'),_0xc6cd49);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x1967ac=>{_0x1967ac['on']('element',(_0x3ac575,_0x3d7ecd,_0xccc71d)=>{if(!_0xccc71d['consumable']['consume'](_0x3d7ecd['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x3d7ecd['modelRange']['isCollapsed'])return;const _0x17f109=_0x3d7ecd['modelRange']['start']['nodeAfter'];_0x17f109['hasAttribute']('vid_start')||_0x17f109['hasAttribute']('vid')||(_0xccc71d['writer']['setAttribute']('vid_start',_0x3d7ecd['viewItem']['getAttribute']('vid_start'),_0x17f109),_0xccc71d['writer']['setAttribute']('vid_end',_0x3d7ecd['viewItem']['getAttribute']('vid_end'),_0x17f109));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x50121c=>_0x50121c['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x46cf9b,[,_0x42eee0])=>{['vid_start','vid_end','vid']['includes'](_0x42eee0)&&(_0x46cf9b['return']=!0x0,_0x46cf9b['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x57bed3=>{_0x57bed3['on']('attribute:vid',(_0x508146,_0x46a356,_0x58eb8d)=>{if('\x20'!=_0x46a356['item']['data']||_0x46a356['item']['parent']['maxOffset']>0x1)return;if(!_0x58eb8d['consumable']['consume'](_0x46a356['item'],_0x508146['name']))return;const _0x2ee19c=_0x58eb8d['writer'],_0x22efc8=_0x58eb8d['mapper']['toViewRange'](_0x46a356['range']);_0x2ee19c['wrap'](_0x22efc8,_0x2ee19c['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x4b802c){const _0x5d91e4=_0x4b802c['plugins']['get']('RevisionViewer');return(_0x4da2f4,_0x2ab4eb,_0x124dd9)=>{const _0x50ed2e=_0x2ab4eb['markerName']['split'](':')[0x1],_0x289757=_0x5d91e4['_getChangeFromId'](_0x50ed2e);if(!_0x289757)return null;const _0x4647cb='add'==_0x289757['type']?'split':'merge';if(!_0x124dd9['consumable']['test'](_0x2ab4eb['markerRange'],_0x4da2f4['name']))return;const _0x5dbfee=_0x2ab4eb['markerRange']['getWalker'](),_0x92d6c1=_0x2ab4eb['markerRange']['start'],_0x4502a7=_0x4b802c['model']['schema'];let _0x532be5=null,_0x94b500=null,_0x3404e9=!0x1,_0x42d3ad=!0x1;for(const _0x4cd74b of _0x5dbfee){const _0x118da8=_0x4cd74b['item'];_0x3404e9=_0x3404e9||_0x4502a7['isContent'](_0x118da8);const _0x157127=_0x124dd9['mapper']['toViewElement'](_0x118da8);if(_0x157127&&_0x157127['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4cd74b['type']&&(_0x4502a7['isBlock'](_0x118da8)&&!_0x4502a7['isLimit'](_0x118da8)&&(_0x118da8['nextSibling']||_0x92d6c1['isAtEnd']?_0x532be5&&_0x532be5['parent']==_0x118da8||(_0x532be5=_0x118da8,_0x37f532(_0x4cd74b['previousPosition']),_0x42d3ad=!0x0):_0x94b500=_0x94b500||_0x4cd74b['previousPosition']));}function _0x37f532(_0x131892){const _0xa53e86=_0x124dd9['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4647cb}),_0x3961dc=_0x124dd9['mapper']['toViewPosition'](_0x131892);_0x289757['data']['isSuggestion']&&_0x124dd9['writer']['addClass']('ck-suggestion-marker-'+_0x4647cb+'-new',_0xa53e86),_0x5d91e4['activeChange']==_0x289757&&_0x124dd9['writer']['addClass']('ck-suggestion-marker--active',_0xa53e86),_0x124dd9['writer']['insert'](_0x3961dc,_0xa53e86),_0x124dd9['mapper']['bindElementToMarker'](_0xa53e86,_0x2ab4eb['markerName']);}_0x3404e9||_0x42d3ad||!_0x94b500||_0x37f532(_0x94b500);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x1d58eb,_0x415167,_0x46a088)=>{const _0x5cf8d3=_0x46a088['mapper']['markerNameToElements'](_0x415167['markerName']);if(_0x5cf8d3){for(const _0x361545 of _0x5cf8d3)(_0x361545['hasClass']('ck-suggestion-marker-split')||_0x361545['hasClass']('ck-suggestion-marker-merge'))&&(_0x46a088['mapper']['unbindElementFromMarkerName'](_0x361545,_0x415167['markerName']),_0x46a088['writer']['remove'](_0x361545));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x4534ad,_0x36ff8f,_0x3c4426)=>{const _0x1e7756=_0x36ff8f['markerName']['split'](':')[0x1],_0x45f203=this['_getChangeFromId'](_0x1e7756);if(!_0x45f203)return null;const _0xcb0f43='add'==_0x45f203['type']?'split':'merge';if(_0x3c4426['consumable']['test'](_0x36ff8f['markerRange'],_0x4534ad['name']))for(const _0x4fe436 of _0x36ff8f['markerRange']['getItems']()){if(!_0x4fe436['is']('element','softBreak'))continue;const _0x487629=_0x3c4426['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xcb0f43}),_0x3e94b5=_0x3c4426['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x4fe436));_0x45f203['data']['isSuggestion']&&_0x3c4426['writer']['addClass']('ck-suggestion-marker-'+_0xcb0f43+'-new',_0x487629),this['activeChange']==_0x45f203&&_0x3c4426['writer']['addClass']('ck-suggestion-marker--active',_0x487629),_0x3c4426['writer']['insert'](_0x3e94b5,_0x487629),_0x3c4426['mapper']['bindElementToMarker'](_0x487629,_0x36ff8f['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x426e65=>{for(const _0x349011 of this['editor']['model']['document']['getRootNames']()){const _0x14583f=this['editor']['model']['document']['getRoot'](_0x349011),_0x3681dd=this['editor']['editing']['view']['document']['getRoot'](_0x349011);if(_0x3681dd){const _0x3ee325=_0x14583f['getAttribute']('revisionHistoryAttachChange');if(_0x426e65['removeAttribute']('data-change-id',_0x3681dd),_0x426e65['removeClass']('ck-revision-history-root-add',_0x3681dd),_0x426e65['removeClass']('ck-revision-history-root-remove',_0x3681dd),_0x426e65['removeClass']('ck-revision-history-root--active',_0x3681dd),_0x3ee325){const _0x2c1285=this['_getChangeFromId'](_0x3ee325);if(!_0x2c1285)return null;_0x426e65['setAttribute']('data-change-id',_0x3ee325,_0x3681dd),_0x426e65['addClass']('ck-revision-history-root-'+_0x2c1285['type'],_0x3681dd),this['activeChange']==_0x2c1285&&_0x426e65['addClass']('ck-revision-history-root--active',_0x3681dd);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x5cfcf7=>'revision-comment:'+_0x5cfcf7,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x4203b6=>'revision-suggestion:'+_0x4203b6,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x4f150b=>({'name':'suggestion:'+_0x4f150b,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x1e2ee2=>{const _0x1fc6bd=_0x1e2ee2['markerName']['split'](':')[0x1];return'insertion'!=_0x1fc6bd&&'deletion'!=_0x1fc6bd?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x1fc6bd]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',tt(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',tt(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x5911f8,_0x194621,_0x3beb32)=>{const _0x58543e=_0x3beb32['mapper']['markerNameToElements'](_0x194621['markerName']);if(_0x58543e){for(const _0x1ef24d of _0x58543e)_0x1ef24d['is']('uiElement')&&(_0x3beb32['mapper']['unbindElementFromMarkerName'](_0x1ef24d,_0x194621['markerName']),_0x3beb32['writer']['remove'](_0x1ef24d));}},{'priority':'high'});}['_getChangeFromId'](_0x1ad60a){return this['_changeIdToChange']['get'](_0x1ad60a);}['_getViewForChange'](_0x5c02ae){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Y(this['editor']['locale'],_0x5c02ae),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x51e7db,_0x22de68,_0x536ce3,_0x226f0d)=>{_0x226f0d&&this['_balloon']['remove'](_0x226f0d),_0x536ce3&&(this['_balloon']['add']({'view':_0x536ce3,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x1ddbb7=this['editor']['editing'],_0x33238d=this['_getChangeFromId'](_0x536ce3['changeId']);let _0x28a11d;if(_0x33238d['data']['isOnRoot']){const _0x35d35a=_0x1ddbb7['view']['getDomRoot'](_0x33238d['rootName']);_0x28a11d=Array['from'](_0x35d35a['getClientRects']());}else{const _0x2f40b0=this['editor']['model']['markers']['get']('revision:'+_0x536ce3['changeId']);_0x28a11d=Array['from'](_0x1ddbb7['mapper']['markerNameToElements'](_0x2f40b0['name']))['map'](_0x3e9ddd=>_0x1ddbb7['view']['domConverter']['mapViewToDom'](_0x3e9ddd))['map'](_0x5fd720=>Array['from'](_0x5fd720['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x28a11d[0x0];return _0x28a11d['find'](_0x3af681=>_0x3af681['top']-0x3<=this['_activeViewTarget']['y']&&_0x3af681['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x3af681['left']-0x3<=this['_activeViewTarget']['x']&&_0x3af681['right']+0x3>=this['_activeViewTarget']['x'])||_0x28a11d[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x30dd8d,_0x3f1362,_0x3bcf80,_0x388c14)=>{this['activeView']=_0x3bcf80?this['_getViewForChange'](_0x3bcf80):null,this['editor']['model']['change'](()=>{const _0x254e8e=this['editor']['editing'];_0x388c14&&(_0x388c14['data']['isOnRoot']?_0x254e8e['view']['change'](_0x28ae1a=>{_0x28ae1a['removeClass']('ck-revision-history-root--active',_0x254e8e['view']['document']['getRoot'](_0x388c14['rootName']));}):_0x254e8e['reconvertMarker']('revision:'+_0x388c14['id'])),_0x3bcf80&&(_0x3bcf80['data']['isOnRoot']?_0x254e8e['view']['change'](_0x53aeee=>{_0x53aeee['addClass']('ck-revision-history-root--active',_0x254e8e['view']['document']['getRoot'](_0x3bcf80['rootName']));}):_0x254e8e['reconvertMarker']('revision:'+_0x3bcf80['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x27433c,_0x2d2a34)=>{if(this['activeChange'])return;const _0x26b3ff=this['_findChangeIdFromDomTarget'](_0x2d2a34['target']),_0x266acb=this['_changeIdToChange']['get'](_0x26b3ff);_0x266acb?(this['_activeViewTarget']={'x':_0x2d2a34['domEvent']['x'],'y':_0x2d2a34['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x266acb)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x4091a,_0x29e190)=>{const _0x42eb45=this['_findChangeIdFromDomTarget'](_0x29e190['target']),_0x34eb05=this['_changeIdToChange']['get'](_0x42eb45);_0x34eb05?(this['_activeViewTarget']={'x':_0x29e190['domEvent']['x'],'y':_0x29e190['domEvent']['y']},_0x34eb05===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x34eb05):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x5ec5d2){do{const _0x36107a=_0x5ec5d2['getAttribute']('data-change-id');if(_0x36107a)return _0x36107a;_0x5ec5d2=_0x5ec5d2['parent'];}while(_0x5ec5d2);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x18b16e=>{for(const _0x27d59b of this['editor']['model']['markers'])_0x18b16e['removeMarker'](_0x27d59b);});}}function tt(_0x17e462,_0x3dad98){return(_0x46c435,_0x47a557,_0x28d5c7)=>{if(!_0x28d5c7['consumable']['test'](_0x47a557['markerRange'],_0x46c435['name']))return;const _0x391dcb=_0x47a557['markerRange']['getWalker'](),_0x571203=_0x47a557['markerRange']['start'],_0x488e24=_0x17e462['model']['schema'];let _0x5b4024=null,_0x34bb87=null,_0x2404e7=!0x1,_0x565e43=!0x1;for(const _0x58ac81 of _0x391dcb){const _0x43037=_0x58ac81['item'];_0x2404e7=_0x2404e7||_0x488e24['isContent'](_0x43037);const _0x322997=_0x28d5c7['mapper']['toViewElement'](_0x43037);if(_0x322997&&_0x322997['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x58ac81['type']&&(_0x488e24['isBlock'](_0x43037)&&!_0x488e24['isLimit'](_0x43037)&&(_0x43037['nextSibling']||_0x571203['isAtEnd']?_0x5b4024&&_0x5b4024['parent']==_0x43037||(_0x5b4024=_0x43037,_0x24a994(_0x58ac81['previousPosition']),_0x565e43=!0x0):_0x34bb87=_0x34bb87||_0x58ac81['previousPosition']));}function _0x24a994(_0x59ff98){const _0x39bb16=_0x28d5c7['mapper']['toViewPosition'](_0x59ff98),_0x4dfb4d=_0x28d5c7['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x3dad98});_0x28d5c7['writer']['insert'](_0x39bb16,_0x4dfb4d),_0x28d5c7['mapper']['bindElementToMarker'](_0x4dfb4d,_0x47a557['markerName']);}_0x2404e7||_0x565e43||!_0x34bb87||_0x24a994(_0x34bb87);};}class _t extends _0x1ba204{constructor(_0x343399){super(_0x343399);const _0x5d9b26=_0x343399['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x5d9b26,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x5d9b26,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0xa39fc8=this['editor'],_0x39fbb5=_0xa39fc8['plugins']['get'](d),_0x3d9aaa=_0x39fbb5['isReady']?_0x39fbb5['diff']['newRevisionId']:null;_0xa39fc8['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x3d9aaa);}['refresh'](){const {isReady:_0x1a92ce,isEnabled:_0x5aaed5}=this['editor']['plugins']['get'](d);this['isEnabled']=_0x1a92ce&&_0x5aaed5;}}class yt extends _0x1ba204{['_step'];constructor(_0x303b9e,{direction:_0x284095}){super(_0x303b9e);const _0x162d55=_0x303b9e['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x284095?0x1:-0x1,this['listenTo'](_0x162d55,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x162d55,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x162d55,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x12144c=this['editor'],_0x14f024=_0x12144c['plugins']['get'](d),{isNavigationMode:_0x169778,currentChangeNumber:_0x5d0761}=_0x14f024;let _0x2197c0;if(_0x14f024['activeChange']=_0x169778?_0x14f024['diff']['changes']['get'](_0x5d0761+this['_step']):_0x14f024['diff']['changes']['first'],_0x14f024['activeChange']['data']['isOnRoot'])_0x2197c0=_0x12144c['editing']['view']['getDomRoot'](_0x14f024['activeChange']['rootName']);else{const _0x47578a=_0x12144c['model']['markers']['get']('revision:'+_0x14f024['activeChange']['id']);_0x2197c0=_0x546cf8(_0x12144c['editing'],_0x47578a);}_0x22a3d1({'target':_0x2197c0,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x37c070,currentChangeNumber:_0x5d0da3,numberOfChanges:_0xf69f71,isReady:_0x2184cf,isEnabled:_0xd63265}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0xd63265&&_0x2184cf&&_0xf69f71)&&(!_0x37c070||(0x1===this['_step']?_0x5d0da3<_0xf69f71-0x1:_0x5d0da3>0x0));}}class li extends ts{constructor(_0x14ec93){super(_0x14ec93);const _0x51850e=this['bindTemplate'],_0x10fdbb=new te(_0x14ec93),_0x1f2343=new te(_0x14ec93);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',(_0x2947e9,_0x3ce769)=>_0x2947e9&&_0x3ce769>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x34e02d,_0x4ecc56,_0x974343,_0x4ad899)=>{if(!_0x34e02d)return R(_0x14ec93,'Loading...');if(!_0x974343)return R(_0x14ec93,'No\x20changes');const _0x52d3c2=R(_0x14ec93,'NUMBER_OF_CHANGES',_0x974343);return _0x4ad899?R(_0x14ec93,'X_OF_Y_CHANGES',[_0x4ecc56+0x1,_0x974343]):_0x52d3c2;}),_0x10fdbb['set']({'label':R(_0x14ec93,'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'}),_0x1f2343['set']({'label':R(_0x14ec93,'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'}),_0x10fdbb['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x1f2343['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x10fdbb['on']('execute',()=>this['fire']('execute','backward')),_0x1f2343['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',_0x51850e['if']('_isStatusLabelVisible','ck-hidden',_0x13f37d=>!_0x13f37d)]},'children':[{'text':_0x51850e['to']('isNavigationMode',_0x7f9d9=>_0x7f9d9?R(_0x14ec93,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x14ec93,'Total')+':\x20')}]},{'text':_0x51850e['to']('_statusText')}]},new _0x5a3178(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x10fdbb,_0x1f2343]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x51bff9{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x5e3fd6=this['editor']['editing']['view'];_0x5e3fd6['change'](_0x1edb2d=>{for(const _0x2cee23 of _0x5e3fd6['document']['roots'])_0x1edb2d['addClass'](le,_0x2cee23);});}['hide'](){const _0x475359=this['editor']['editing']['view'];_0x475359['change'](_0x42e66b=>{for(const _0x14bec4 of _0x475359['document']['roots'])_0x42e66b['removeClass'](le,_0x14bec4);});}}class m extends _0x51bff9{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,ge];}['init'](){const _0x308dad=this['editor'],_0x580393=_0x308dad['plugins']['get'](d),_0xb219ef=_0x308dad['plugins']['get'](ge);_0x308dad['ui']['componentFactory']['add']('exitToEditing',_0x29a769=>{const _0x24f5e1=new te(_0x29a769);return _0x24f5e1['set']({'label':R(_0x29a769,'Back\x20to\x20editing'),'icon':_0x582ab3['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x24f5e1,'execute',()=>{_0x308dad['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x24f5e1;}),_0x308dad['ui']['componentFactory']['add']('restoreRevision',_0x4de0ba=>{const _0x40e32f=new te(_0x4de0ba);return _0x40e32f['set']({'label':R(_0x4de0ba,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x40e32f['bind']('isEnabled')['to'](_0x308dad['commands']['get']('restoreRevision')),this['listenTo'](_0x40e32f,'execute',()=>_0x308dad['execute']('restoreRevision')),_0x40e32f;}),_0x308dad['ui']['componentFactory']['add']('changesNavigation',_0x363ba9=>{const _0x14633b=new li(_0x363ba9),_0x939d08=_0x308dad['commands']['get']('showPreviousChange'),_0x21a7de=_0x308dad['commands']['get']('showNextChange');return _0x14633b['bind']('isBackwardNavigationEnabled')['to'](_0x939d08,'isEnabled'),_0x14633b['bind']('isForwardNavigationEnabled')['to'](_0x21a7de,'isEnabled'),_0x14633b['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x580393),this['listenTo'](_0x14633b,'execute',(_0x270e00,_0x5a60b6)=>{_0x308dad['execute']('forward'===_0x5a60b6?'showNextChange':'showPreviousChange');}),_0x14633b;}),_0xb219ef['show'](),_0x580393['on']('change:isReady',(_0x3c1cbf,_0x387f10,_0x341fe0)=>{_0x341fe0?_0xb219ef['hide']():_0xb219ef['show']();});}}class pt extends _0x38e76f{['_resizeObserver']=null;constructor(_0x2742df,_0x61b99c){super(_0x2742df,_0x61b99c);const _0x119b27=this['bindTemplate'];this['set']({'label':R(_0x2742df,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x2742df,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x119b27['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 _0x80547d=this['fieldView']['element'];this['_tooltipString']=_0x80547d['scrollWidth']>_0x80547d['clientWidth']&&_0x80547d['value']||'';}}class ri extends ts{constructor(_0x50c019,_0x3ada24,_0xf7189c){super(_0x50c019);const _0x29d133=new _0xf1a94e();_0x29d133['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 _0x5afc33=['ck','ck-revision-history-sidebar__revision-author'];_0xf7189c&&_0x5afc33['push']('ck-revision-history-sidebar__revision-author_creator');const _0x57b7e6=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x50c019,_0xf7189c?'Revision\x20creator':'Revision\x20author')},'children':[_0x29d133,_0x3ada24['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x5afc33},'children':_0x57b7e6});}}function oi(_0x5ceb42,_0x59f0aa){const _0x3bffa2=_0x5ceb42['bindTemplate'],_0x37f9e1=_0x5ceb42['locale'],_0x50b746=_0x193195(_0x37f9e1);_0x50b746['panelPosition']='sw';const _0x3d5f56=function(_0x9f1465,_0x34864e){const _0x38b7d8=function(_0x101898,_0x252e26){const _0x45143d=_0x101898['locale'],_0x26722a={'Compare\x20against\x20selected':R(_0x45143d,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x45143d,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x45143d,'Restore\x20this\x20revision')};return _0x252e26['map'](_0x224044=>{const _0x1e3ef4=_0x26722a[_0x224044['name']];return _0x1e3ef4&&_0x1e3ef4!==_0x224044['name']&&(_0x224044['name']=_0x1e3ef4),_0x224044;});}(_0x9f1465,_0x34864e),_0x316f8c=new _0x589480();for(const _0x1bc090 of _0x38b7d8){const _0x24fb1c={'type':'button','model':new _0x2d541d({'label':_0x1bc090['name'],'class':_0x1bc090['class'],'withText':!0x0,'role':'menuitem','_action':_0x1bc090['action']})};_0x24fb1c['model']['bind']('isEnabled')['to'](_0x9f1465,'isActionsDropdownOpen',_0x2c2589=>'function'!=typeof _0x1bc090['isEnabled']||(!_0x2c2589||_0x1bc090['isEnabled'](_0x9f1465))),_0x316f8c['add'](_0x24fb1c);}return _0x316f8c;}(_0x5ceb42,_0x59f0aa);return _0x5ceb42['bind']('isActionsDropdownOpen')['to'](_0x50b746,'isOpen'),_0x50b746['buttonView']['set']({'label':R(_0x37f9e1,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x582ab3['threeVerticalDots']}),_0x50b746['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x3bffa2['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x3bffa2['to'](_0x2820e0=>_0x2820e0['stopPropagation']())}}),_0x50b746['on']('execute',_0x3f5af6=>{_0x5ceb42['isReady']&&'function'==typeof _0x3f5af6['source']['_action']&&_0x3f5af6['source']['_action'](_0x5ceb42);}),to(_0x50b746,_0x3d5f56,{'role':'menu'}),_0x50b746['listenTo'](_0x5ceb42,'change:isActionsDropdownOpen',(_0x398ed6,_0x51866d,_0x10746f)=>{if(_0x10746f)for(const _0x40c490 of _0x50b746['listView']['items']){const _0x4eedbd=_0x40c490['children']['first'],_0x41256e=_0x59f0aa['find'](_0x284c4c=>_0x284c4c['action']===_0x4eedbd['_action'])['isVisible'];_0x40c490['isVisible']=void 0x0===_0x41256e||_0x41256e(_0x5ceb42);}}),_0x50b746;}class hi extends/* #__PURE__ -- @preserve */
|
|
26
|
-
|
|
23
|
+
import{ObservableMixin as _0x112f26,uid as _0x1e3a97,Collection as _0x50d8e8,logWarning as _0x5d3bd4,FocusTracker as _0x77040e,KeystrokeHandler as _0x2dd40d,scrollViewportToShowTarget as _0x34df8d,ResizeObserver as at,ElementReplacer as ct,CKEditorError as _0x3d8b0a}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x59dc59,set as _0x28615b,unset as _0x481900,isEqual as _0x3c165a}from'lodash-es';import{Plugin as _0x9c73c6,PendingActions as _0x252351,icons as _0x442c2a,Command as _0x40d10f,ElementApiMixin as rt,Editor as it}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x40a0f3,getMarkerDomElement as _0x5bc5d2,ConfirmMixin as _0x4d6962,sanitizeEditorConfig as _0x54b203}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x474688,ViewText as _0x146933,ViewElement as _0x1a6832,Element as ft,Range as vt,Position as gt,DocumentFragment as mt,ViewContainerElement as _0x3316d1,ViewAttributeElement as _0x109015,ViewEmptyElement as _0x1b15d3,ViewRawElement as _0x821116,ViewUIElement as _0x5e82db,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x4e2633,submitHandler as _0xfca4bd,LabeledFieldView as _0x585659,createLabeledInputText as _0x42bc0a,createDropdown as _0x4832b0,ListView as _0x2f59d0,ListItemView as _0x4d48d8,ButtonView as te,MenuBarMenuView as _0x7e524e,MenuBarMenuListView as _0x1f69ca,MenuBarMenuListItemView as _0x3f4470,MenuBarMenuListItemButtonView as _0x2ada9c,ContextualBalloon as _0x58fdad,ToolbarSeparatorView as _0x5baf40,IconView as _0x2d529d,addListToDropdown as to,ViewModel as _0x4bcfc1,EditorUI as ot,normalizeToolbarConfig as ht,BoxedEditorUIView as dt,StickyPanelView as lt,ToolbarView as nt,InlineEditableUIView as ut}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x23c007}from'luxon';class a extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x112f26(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x3f79a7){super(),this['id']=_0x3f79a7['id']||_0x1e3a97(),this['creator']=_0x3f79a7['creator']||null,this['authors']=_0x3f79a7['authors']||[],this['diffData']=_0x3f79a7['diffData']||null,this['toVersion']=_0x3f79a7['toVersion']||0x0,this['fromVersion']=_0x3f79a7['fromVersion']||0x0,this['set']('name',_0x3f79a7['name']||''),this['set']('createdAt',_0x3f79a7['createdAt']||new Date()),this['set']('attributes',_0x3f79a7['attributes']||{});}['setName'](_0x4f5035){this['_update']({'name':_0x4f5035});}['setAttribute'](_0x39c26a,_0x48f168){const _0x4d6c16=_0x59dc59(this['attributes']);_0x28615b(_0x4d6c16,_0x39c26a,_0x48f168),this['_update']({'attributes':_0x4d6c16});}['removeAttribute'](_0x3eeb5f){const _0x14a41f=_0x59dc59(this['attributes']);_0x481900(_0x14a41f,_0x3eeb5f),this['_update']({'attributes':_0x14a41f});}['_update'](_0x37a99f,_0x316d89=!0x1){let _0x49ea57=!0x1;const _0x5e8fd8={'id':this['id']},_0x595246=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x2beaa5 of _0x595246){const _0x3ffbbe=_0x37a99f[_0x2beaa5];void 0x0!==_0x3ffbbe&&_0x3ffbbe!==this[_0x2beaa5]&&(this[_0x2beaa5]=_0x3ffbbe,_0x5e8fd8[_0x2beaa5]=_0x3ffbbe,_0x49ea57=!0x0);}_0x49ea57&&(_0x5e8fd8['authors']&&(_0x5e8fd8['authorsIds']=_0x5e8fd8['authors']['map'](_0x3619e3=>_0x3619e3['id']),delete _0x5e8fd8['authors']),this['fire']('_update',_0x5e8fd8,_0x316d89));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x116023=>_0x116023['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x9c73c6{['_revisions'];static get['requires'](){return[_0x40a0f3];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x161bb0){super(_0x161bb0),this['_revisions']=new _0x50d8e8();}['afterInit'](){!async function(_0x3dc312){const _0x5ac47a=_0x5c311b([0x54,0x55,0x6f,0x69,0x75,0x78,0x76,0x65,0x42,0x73,0x35,0x64,0x39,0x41,0x33,0x57,0x32,0x34,0x70,0x74,0x50,0x4c,0x53,0x48,0x43,0x30,0x6b,0x61,0x66,0x47,0x79,0x72,0x52,0x5a,0x62,0x58,0x56,0x7a,0x4e,0x63,0x59,0x6e,0x68,0x6a,0x51,0x38,0x71,0x31,0x4d,0x4f,0x44,0x46,0x6c,0x67,0x36,0x4a,0x37,0x4b,0x49,0x45,0x77,0x6d]),_0x1285ad=0xeb829,_0x27dddf=0x1c7b6224,_0x527731=0x1c7c35bc^_0x27dddf,_0x4160a7=window[_0x5c311b([0x44,0x61,0x74,0x65])][_0x5c311b([0x6e,0x6f,0x77])](),_0x2cb20a=_0x3dc312[_0x5c311b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x31c803=new window[(_0x5c311b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3cca9a=>{_0x2cb20a[_0x5c311b([0x6f,0x6e,0x63,0x65])](_0x5c311b([0x72,0x65,0x61,0x64,0x79]),_0x3cca9a);}),_0x1243bb={[_0x5c311b([0x6b,0x74,0x79])]:_0x5c311b([0x45,0x43]),[_0x5c311b([0x75,0x73,0x65])]:_0x5c311b([0x73,0x69,0x67]),[_0x5c311b([0x63,0x72,0x76])]:_0x5c311b([0x50,0x2d,0x32,0x35,0x36]),[_0x5c311b([0x78])]:_0x5c311b([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]),[_0x5c311b([0x79])]:_0x5c311b([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]),[_0x5c311b([0x61,0x6c,0x67])]:_0x5c311b([0x45,0x53,0x32,0x35,0x36])},_0xf54cdb=_0x2cb20a[_0x5c311b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5c311b([0x67,0x65,0x74])](_0x5c311b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x559cba(){let _0x49af1f,_0x3af01d=null,_0xbd534d=null;try{if(_0xf54cdb==_0x5c311b([0x47,0x50,0x4c]))return _0x5c311b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x49af1f=_0x173b87(),!_0x49af1f)return _0x5c311b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x49af1f[_0x5c311b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xbd534d=_0x531007(_0x49af1f[_0x5c311b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x49af1f[_0x5c311b([0x6a,0x74,0x69])])),await _0x57ee0a()?_0x4fd593()?_0x4b9508()?_0x5c311b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3c1fbb()?(_0x49af1f[_0x5c311b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5c311b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3af01d=_0x2bed26(_0x5c311b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x49af1f[_0x5c311b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5c311b([0x74,0x72,0x69,0x61,0x6c])&&(_0x3af01d=_0x2bed26(_0x5c311b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x49af1f[_0x5c311b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5c311b([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x3af01d=_0x2bed26(_0x5c311b([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0xc5aaee()):_0x5c311b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5c311b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5c311b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x3af0dc){return _0x5c311b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4b9508(){const _0x2971ee=[_0x5c311b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5c311b([0x74,0x72,0x69,0x61,0x6c])][_0x5c311b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49af1f[_0x5c311b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4160a7/0x3e8:0xe10*_0x527731;return _0x49af1f[_0x5c311b([0x65,0x78,0x70])]<_0x2971ee;}function _0x4fd593(){const _0x230b18=_0x49af1f[_0x5c311b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x230b18&&(!!_0x230b18[_0x5c311b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c311b([0x2a]))||(!!_0x230b18[_0x5c311b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c311b([0x52,0x48]))||!(!_0x230b18[_0x5c311b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c311b([0x52,0x52,0x48]))||!_0x5975cb())));}function _0x3c1fbb(){const _0x2bb4c6=_0x49af1f[_0x5c311b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2bb4c6||0x0==_0x2bb4c6[_0x5c311b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x385339}=new URL(window[_0x5c311b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2bb4c6[_0x5c311b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x385339))return!0x0;const _0x14fff9=_0x385339[_0x5c311b([0x73,0x70,0x6c,0x69,0x74])](_0x5c311b([0x2e]));return _0x2bb4c6[_0x5c311b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x25c4e2=>_0x25c4e2[_0x5c311b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c311b([0x2a])))[_0x5c311b([0x6d,0x61,0x70])](_0x27745f=>_0x27745f[_0x5c311b([0x73,0x70,0x6c,0x69,0x74])](_0x5c311b([0x2e])))[_0x5c311b([0x73,0x6f,0x6d,0x65])](_0x43ff20=>_0x14fff9[_0x5c311b([0x65,0x76,0x65,0x72,0x79])]((_0x3dd5de,_0xe5d34)=>_0x43ff20[_0xe5d34]===_0x3dd5de||_0x43ff20[_0xe5d34]===_0x5c311b([0x2a])));}function _0xc5aaee(){return _0x3af01d&&_0xbd534d?new window[(_0x5c311b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x563a7e,_0x319130)=>{_0x3af01d[_0x5c311b([0x74,0x68,0x65,0x6e])](_0x563a7e,_0x319130),_0xbd534d[_0x5c311b([0x74,0x68,0x65,0x6e])](_0x5c8680=>{_0x5c8680!=_0x5c311b([0x56,0x61,0x6c,0x69,0x64])&&_0x563a7e(_0x5c8680);},_0x319130);}):_0x3af01d||_0xbd534d||_0x5c311b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x531007(_0x410aa0,_0x43148d){return new window[(_0x5c311b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x57280d=>{if(_0x33798a())return _0x57280d(_0x5c311b([0x56,0x61,0x6c,0x69,0x64]));_0x115089(),_0x2cb20a[_0x5c311b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5c311b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1503b8=!0x1;const _0x5b5c36=_0x1e3a97();function _0x2934e8(_0x3fa54e){return!!_0x3fa54e&&(typeof _0x3fa54e===_0x5c311b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3fa54e===_0x5c311b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3fa54e[_0x5c311b([0x74,0x68,0x65,0x6e])]===_0x5c311b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3fa54e[_0x5c311b([0x63,0x61,0x74,0x63,0x68])]===_0x5c311b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x527eb3(_0x78624b){_0xe0ac6a(_0x78624b)[_0x5c311b([0x74,0x68,0x65,0x6e])](_0x3d5b94=>{if(!_0x3d5b94||_0x3d5b94[_0x5c311b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5c311b([0x6f,0x6b]))return _0x5c311b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x473428(_0x4105eb(_0x5b5c36+_0x43148d))!=_0x3d5b94[_0x5c311b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5c311b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5c311b([0x56,0x61,0x6c,0x69,0x64]);})[_0x5c311b([0x74,0x68,0x65,0x6e])](_0x135718=>(_0x22b8a2(),_0x135718),()=>{const _0x35140f=_0x1d33ce();return null==_0x35140f?(_0x22b8a2(),_0x5c311b([0x56,0x61,0x6c,0x69,0x64])):_0x5c311b(_0x4160a7-_0x35140f>(0x3877e624^_0x27dddf)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5c311b([0x74,0x68,0x65,0x6e])](_0x57280d)[_0x5c311b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x57280d(_0x5c311b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2e0fce=0x1c4d8ca4^_0x27dddf;function _0x22b8a2(){const _0x5b4594=_0x5c311b([0x6c,0x6c,0x63,0x74,0x2d])+_0x473428(_0x4105eb(_0x410aa0)),_0x1f0a15=_0x1d557b(_0x473428(window[_0x5c311b([0x4d,0x61,0x74,0x68])][_0x5c311b([0x63,0x65,0x69,0x6c])](_0x4160a7/_0x2e0fce)));window[_0x5c311b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5c311b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5b4594,_0x1f0a15);}function _0x1d33ce(){const _0x49077f=_0x5c311b([0x6c,0x6c,0x63,0x74,0x2d])+_0x473428(_0x4105eb(_0x410aa0)),_0x483b57=window[_0x5c311b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5c311b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x49077f);return _0x483b57?window[_0x5c311b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1d557b(_0x483b57),0x10)*_0x2e0fce:null;}function _0xe0ac6a(_0x30f30d){return new window[(_0x5c311b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x7576bc,_0x3ce82d)=>{_0x30f30d[_0x5c311b([0x74,0x68,0x65,0x6e])](_0x7576bc,_0x3ce82d),window[_0x5c311b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3ce82d,0x1c7ab6e4^_0x27dddf);});}}_0x2cb20a[_0x5c311b([0x6f,0x6e])](_0x5c311b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x568f55,_0x235ff9)=>{if(_0x235ff9[0x0]!=_0x410aa0)return _0x57280d(_0x5c311b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x235ff9[0x1]={..._0x235ff9[0x1],[_0x5c311b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5b5c36};},{[_0x5c311b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5c311b([0x68,0x69,0x67,0x68])}),_0x2cb20a[_0x5c311b([0x6f,0x6e])](_0x5c311b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1e9ef2=>{_0x2934e8(_0x1e9ef2[_0x5c311b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1503b8=!0x0,_0x527eb3(_0x1e9ef2[_0x5c311b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5c311b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5c311b([0x6c,0x6f,0x77])}),_0x31c803[_0x5c311b([0x74,0x68,0x65,0x6e])](()=>{_0x1503b8||_0x57280d(_0x5c311b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x33798a(){return _0x2cb20a[_0x5c311b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5c311b([0x76,0x69,0x65,0x77])][_0x5c311b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5c311b([0x61,0x75,0x74,0x6f]);}function _0x115089(){_0x2cb20a[_0x5c311b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5c311b([0x76,0x69,0x65,0x77])][_0x5c311b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5c311b([0x61,0x75,0x74,0x6f]);}}function _0x2bed26(_0x38bbbd){const _0x381bb6=[new window[(_0x5c311b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4d32be=>setTimeout(_0x4d32be,0x1c725ce8^_0x27dddf)),_0x31c803[_0x5c311b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5c311b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x429cd3=>{const _0x1856ff=0x1c7b6223^_0x27dddf,_0x209e0b=_0x3dc312[_0x5c311b([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x51c60a(){_0x209e0b[_0x5c311b([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x1856ff&&_0x429cd3();}_0x51c60a(),_0x209e0b[_0x5c311b([0x6f,0x6e])](_0x5c311b([0x61,0x64,0x64]),_0x51c60a);})),new window[(_0x5c311b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x231cc4=>{function _0x15c97d(){for(const _0x18739c in window)if(window[_0x5c311b([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x5c311b([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x18739c))&&window[_0x18739c]==_0x1285ad)return _0x231cc4();_0x2cb20a[_0x5c311b([0x73,0x74,0x61,0x74,0x65])]!=_0x5c311b([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x5c311b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x15c97d,0x1c7b71ac^_0x27dddf);}_0x4dfdf0(_0x5c311b([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x15c97d();})];return window[_0x5c311b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5c311b([0x72,0x61,0x63,0x65])](_0x381bb6)[_0x5c311b([0x74,0x68,0x65,0x6e])](()=>_0x38bbbd);}async function _0x4e495f(){if(await _0x31c803,_0x4dfdf0(_0x5c311b([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x33a095=_0x3dc312[_0x5c311b([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x3d61ef=_0x3dc312[_0x5c311b([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])](_0x33a095[_0x5c311b([0x69,0x64])]),_0x239554=_0x29d7fe(_0x5c311b([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x239554[_0x5c311b([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x33a095['id'],_0x3d61ef?_0x3d61ef['id']:null,!0x0),_0x239554[_0x5c311b([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x5c311b([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x239554[_0x5c311b([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x239554[_0x5c311b([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x4bd7d6,void(_0x239554[_0x5c311b([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x4bd7d6);}if(_0x4dfdf0(_0x5c311b([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x2ad2fd=_0x29d7fe(_0x5c311b([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x2ad2fd[_0x5c311b([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x5c311b([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x2ad2fd[_0x5c311b([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x2ad2fd[_0x5c311b([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x4bd7d6,_0x2ad2fd[_0x5c311b([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x4bd7d6;}_0x2cb20a[_0x5c311b([0x6d,0x6f,0x64,0x65,0x6c])][_0x5c311b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4bd7d6,_0x2cb20a[_0x5c311b([0x6d,0x6f,0x64,0x65,0x6c])][_0x5c311b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4bd7d6,_0x2cb20a[_0x5c311b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5c311b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5975cb(){return _0x4dfdf0(_0x5c311b([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x29d7fe(_0x5c311b([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x5c311b([0x73,0x74,0x61,0x74,0x65])]==_0x5c311b([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x5b6549(_0x4d75fd){const _0x51e652=_0x3889ab();_0x2cb20a[_0x51e652]=_0x5c311b([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])+_0x4d75fd,_0x4d75fd[_0x5c311b([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x5c311b([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x3889ab()]=_0x1285ad),_0x4d75fd!=_0x5c311b([0x56,0x61,0x6c,0x69,0x64])&&_0x4e495f();}function _0x3889ab(){const _0x58b5d8=window[_0x5c311b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5c311b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5c311b([0x6e,0x6f,0x77])]())[_0x5c311b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5c311b([0x2e]),'');let _0x48cda4=_0x5c311b([0x54]);for(let _0x2c0165=0x0;_0x2c0165<_0x58b5d8[_0x5c311b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2c0165+=0x2){let _0x6f2750=window[_0x5c311b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x58b5d8[_0x5c311b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2c0165,_0x2c0165+0x2));_0x6f2750>=_0x5ac47a[_0x5c311b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x6f2750-=_0x5ac47a[_0x5c311b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x48cda4+=_0x5ac47a[_0x6f2750];}return _0x48cda4;}function _0x173b87(){const _0xe4e341=_0xf54cdb[_0x5c311b([0x73,0x70,0x6c,0x69,0x74])](_0x5c311b([0x2e]));if(0x3!=_0xe4e341[_0x5c311b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x289975(_0xe4e341[0x1]);function _0x289975(_0x31cd28){const _0x536435=_0x301a1e(_0x31cd28);return _0x536435&&_0x3d891a()?_0x536435:null;function _0x3d891a(){const _0x590d95=_0x536435[_0x5c311b([0x6a,0x74,0x69])],_0x484ac6=window[_0x5c311b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x590d95[_0x5c311b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x590d95[_0x5c311b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3e50a2={..._0x536435,[_0x5c311b([0x6a,0x74,0x69])]:_0x590d95[_0x5c311b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x590d95[_0x5c311b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3e50a2[_0x5c311b([0x76,0x63])],_0x4105eb(_0x3e50a2)==_0x484ac6;}}}async function _0x57ee0a(){let _0x2ba630=!0x0;try{const _0x3681e8=_0xf54cdb[_0x5c311b([0x73,0x70,0x6c,0x69,0x74])](_0x5c311b([0x2e])),[_0x33c93c,_0xf94353,_0x6aa5fa]=_0x3681e8;return _0xfdd30d(_0x33c93c),await _0x91f06(_0x33c93c,_0xf94353,_0x6aa5fa),_0x2ba630;}catch(_0x53e8b9){return!0x1;}function _0xfdd30d(_0x198c2f){const _0x11b2c2=_0x301a1e(_0x198c2f);_0x11b2c2&&_0x11b2c2[_0x5c311b([0x61,0x6c,0x67])]==_0x5c311b([0x45,0x53,0x32,0x35,0x36])||(_0x2ba630=!0x1);}async function _0x91f06(_0x141bc5,_0x59b725,_0x23ea94){const _0x3758c3=window[_0x5c311b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5c311b([0x66,0x72,0x6f,0x6d])](_0x191876(_0x23ea94),_0x34f015=>_0x34f015[_0x5c311b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x8751b7=new window[(_0x5c311b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5c311b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x141bc5+_0x5c311b([0x2e])+_0x59b725),_0x161d1a=window[_0x5c311b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5c311b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x161d1a)return;const _0xbdd97c=await _0x161d1a[_0x5c311b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5c311b([0x6a,0x77,0x6b]),_0x1243bb,{[_0x5c311b([0x6e,0x61,0x6d,0x65])]:_0x5c311b([0x45,0x43,0x44,0x53,0x41]),[_0x5c311b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5c311b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5c311b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x161d1a[_0x5c311b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5c311b([0x6e,0x61,0x6d,0x65])]:_0x5c311b([0x45,0x43,0x44,0x53,0x41]),[_0x5c311b([0x68,0x61,0x73,0x68])]:{[_0x5c311b([0x6e,0x61,0x6d,0x65])]:_0x5c311b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xbdd97c,_0x3758c3,_0x8751b7)||(_0x2ba630=!0x1);}}function _0x301a1e(_0x44a8ae){return _0x44a8ae[_0x5c311b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5c311b([0x65,0x79]))?JSON[_0x5c311b([0x70,0x61,0x72,0x73,0x65])](_0x191876(_0x44a8ae)):null;}function _0x191876(_0x4d402c){return window[_0x5c311b([0x61,0x74,0x6f,0x62])](_0x4d402c[_0x5c311b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5c311b([0x2b]))[_0x5c311b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5c311b([0x2f])));}function _0x4105eb(_0x115766){let _0x35e63c=0x1505;function _0x6df747(_0x4edcbd){for(let _0x231792=0x0;_0x231792<_0x4edcbd[_0x5c311b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x231792++){const _0x1fdfa7=_0x4edcbd[_0x5c311b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x231792);_0x35e63c=(_0x35e63c<<0x5)+_0x35e63c+_0x1fdfa7,_0x35e63c&=_0x35e63c;}}function _0x39142b(_0x36f3c0){Array[_0x5c311b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x36f3c0)?_0x36f3c0[_0x5c311b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x39142b):_0x36f3c0&&typeof _0x36f3c0==_0x5c311b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5c311b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x36f3c0)[_0x5c311b([0x73,0x6f,0x72,0x74])]()[_0x5c311b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xc80521,_0xc076f5])=>{_0x6df747(_0xc80521),_0x39142b(_0xc076f5);}):_0x6df747(window[_0x5c311b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x36f3c0));}return _0x39142b(_0x115766),_0x35e63c>>>0x0;}function _0x473428(_0x5e7d2c){return _0x5e7d2c[_0x5c311b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5c311b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5c311b([0x30]));}function _0x1d557b(_0x403418){return _0x403418[_0x5c311b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5c311b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5c311b([0x6a,0x6f,0x69,0x6e])]('');}function _0x4dfdf0(_0x316f48){return _0x2cb20a[_0x5c311b([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5c311b([0x68,0x61,0x73])](_0x316f48);}function _0x29d7fe(_0x343544){return _0x2cb20a[_0x5c311b([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5c311b([0x67,0x65,0x74])](_0x343544);}function _0x4bd7d6(){}function _0x5c311b(_0x2f5343){return _0x2f5343['map'](_0x48b10f=>String['fromCharCode'](_0x48b10f))['join']('');}_0x5b6549(await _0x559cba());}(this);}['createRevision'](_0x1af2b6){const _0x5089ee=this['editor']['plugins']['get']('Users');return new a({'id':_0x1af2b6['id'],'name':_0x1af2b6['name'],'creator':_0x1af2b6['creatorId']?_0x5089ee['getUser'](_0x1af2b6['creatorId']):null,'diffData':_0x1af2b6['diffData']||_0x1af2b6['data'],'authors':_0x1af2b6['authorsIds']['map'](_0x5c41e6=>_0x5089ee['getUser'](_0x5c41e6)),'createdAt':new Date(_0x1af2b6['createdAt']),'attributes':_0x1af2b6['attributes'],'fromVersion':_0x1af2b6['fromVersion'],'toVersion':_0x1af2b6['toVersion']});}['addRevision'](_0x4044a8,_0x32d936=0x0){this['_revisions']['add'](_0x4044a8,_0x32d936);}['getRevision'](_0x1e0354){return this['_revisions']['get'](_0x1e0354);}['getRevisions'](_0x328c6e={'toJSON':!0x1}){const _0x4f308d=Array['from'](this['_revisions']);return _0x4f308d['reverse'](),_0x328c6e['toJSON']?_0x4f308d['map'](_0x214019=>_0x214019['toJSON']()):_0x4f308d;}['getIndex'](_0x469552){return this['_revisions']['getIndex'](_0x469552);}['getEarlierVisibleRevision'](_0x1e2bdd){const [,_0x30809b]=this['getRevisionsIterator'](_0x1e2bdd,{'direction':'earlier'});return _0x30809b;}['getLaterVisibleRevision'](_0x16d67f){const [,_0x31db0b]=this['getRevisionsIterator'](_0x16d67f,{'direction':'later'});return _0x31db0b;}['getRevisionsInDiff'](_0xb0f4da){const _0x33e7d7=[];for(const _0x44a11a of this['getRevisionsIterator'](_0xb0f4da['newRevisionId']))if(_0x33e7d7['push'](_0x44a11a),_0x44a11a['id']===_0xb0f4da['oldRevisionId'])break;return _0x33e7d7;}*['getRevisionsIterator'](_0x4f3e53,{direction:_0x1d0dc3='earlier',filter:_0x5b7f5f=()=>!0x0}={}){const _0x41ae4c='earlier'===_0x1d0dc3?0x1:-0x1;let _0x150b81=this['_revisions']['get'](_0x4f3e53),_0x516033=this['getIndex'](_0x150b81);for(yield _0x150b81;_0x150b81;){if(_0x516033+=_0x41ae4c,_0x150b81=this['getRevision'](_0x516033),!_0x150b81)return;_0x5b7f5f(_0x150b81)&&(yield _0x150b81);}}}function R(_0x661483,_0x39078e,_0x173f76){const t=_0x661483['t'];switch(_0x39078e){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'},_0x173f76);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x173f76);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 C={'c':_0x3316d1,'a':_0x109015,'e':_0x1b15d3,'r':_0x821116,'u':_0x5e82db};class l extends _0x9c73c6{['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[_0x40a0f3,j,_0x252351];}constructor(_0x58b235){super(_0x58b235),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new T(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x108616=_0x1e3a97();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x108616},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 _0x558c5e=this['repository']['getRevision'](0x0),_0x5eea95=_0x558c5e&&null===_0x558c5e['creator']?_0x558c5e:null;if(this['_continueCurrentRevision']=!!_0x5eea95&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x5101a8=this['_source']['getCurrentRevisionId'](),_0x8c0049=this['repository']['getRevision'](_0x5101a8);if(_0x8c0049)this['_startingVersion']=_0x8c0049['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x258732=this['_source']['history']['_operations']['find'](_0x1ecf19=>!_0x1ecf19['_isInit']),_0x58493b=_0x258732?_0x258732['baseVersion']:this['_source']['history']['version'];_0x558c5e?(_0x558c5e['toVersion']<_0x58493b&&_0x558c5e['_update']({'toVersion':_0x58493b}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x5eea95['id'],this['_startingVersion']=_0x5eea95['fromVersion']):(this['_startingVersion']=_0x558c5e['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x58493b,this['_continueCurrentRevision']=!0x1);}}else _0x5eea95&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x5eea95['toVersion'],this['editor']['model']['document']['history']['version']),_0x5eea95['fromVersion']===_0x5eea95['toVersion']?(0x0!==_0x5eea95['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x5eea95['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x5eea95['id'],this['_startingVersion']=_0x5eea95['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',_0x183c9c=>!_0x183c9c),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1f39f3=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x518bc1;for(const _0x3231ac in _0x1f39f3){const _0x40d059=_0x3231ac,_0x5dc394=_0x1f39f3[_0x40d059];if('revisionHistoryLicenseKeyValid'==_0x5dc394||'revisionHistoryLicenseKeyInvalid'==_0x5dc394||'revisionHistoryLicenseKeyExpired'==_0x5dc394||'revisionHistoryLicenseKeyDomainLimit'==_0x5dc394||'revisionHistoryLicenseKeyNotAllowed'==_0x5dc394||'revisionHistoryLicenseKeyEvaluationLimit'==_0x5dc394||'revisionHistoryLicenseKeyTrialLimit'==_0x5dc394||'revisionHistoryLicenseKeyDevelopmentLimit'==_0x5dc394||'revisionHistoryLicenseKeyUsageLimit'==_0x5dc394){delete _0x1f39f3[_0x40d059],_0x518bc1=_0x5dc394,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x518bc1&&_0x1f39f3['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x518bc1&&_0x1f39f3['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x518bc1&&_0x1f39f3['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x518bc1&&_0x1f39f3['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x518bc1&&_0x1f39f3['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x518bc1&&_0x1f39f3['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0x518bc1&&_0x1f39f3['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x518bc1&&_0x1f39f3['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x177338=this['repository']['getRevision'](0x0),_0x2f26f8=await this['getRevisionDocumentData'](_0x177338),_0x34df58=await this['getRevisionRootsAttributes'](_0x177338);this['_replaceEditorDataWithRevisionData'](_0x2f26f8,_0x34df58);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0xdacb22){this['_source']=_0xdacb22;}async['update'](){const _0x386a21=await this['_source']['getLatestVersion']();if(_0x386a21>this['currentRevision']['toVersion']){await this['_loadState']();const _0x222866=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x386a21});_0x222866['authors']=_0x222866['authorsIds']['map'](_0x43b296=>this['editor']['plugins']['get']('Users')['getUser'](_0x43b296)),this['currentRevision']['_update'](_0x222866);}}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'](_0x4d6d29={},_0x2da5c5=null){const _0x5348f0=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x2da5c5>this['currentRevision']['toVersion']&&(_0x2da5c5=null),null===_0x2da5c5&&(_0x2da5c5=await this['_source']['getLatestVersion']());const _0x3857a7=this['_getFromVersion'](_0x2da5c5),_0x28ff44=this['buildRevisionData']({'from':_0x3857a7,'to':_0x2da5c5});if(this['currentRevision']['toVersion']<_0x2da5c5){const _0x522c4a=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x2da5c5,'to':_0x2da5c5});_0x522c4a['authors']=[],_0x522c4a['authorsIds']=[],_0x522c4a['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x522c4a,!0x0),delete _0x522c4a['authors'],_0x5348f0['push'](_0x522c4a);}_0x4d6d29['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x4d6d29['name']=_0x4d6d29['name']||null,_0x4d6d29['id']=_0x4d6d29['id']||_0x1e3a97(),_0x4d6d29={..._0x4d6d29,..._0x28ff44};const _0x16b787=this['addRevisionData'](_0x4d6d29);_0x5348f0['push'](_0x4d6d29);const _0x1049bc=this['repository']['getIndex'](_0x16b787);if(0x0!==_0x1049bc){const _0x4fdb08=this['repository']['getRevision'](_0x1049bc-0x1);if(_0x4fdb08['fromVersion']!==_0x2da5c5){const _0x5a1a63=this['_revisionDataBuilder']['getData'](_0x2da5c5,_0x4fdb08['toVersion']),_0x17d0b5={'id':_0x4fdb08['id'],'diffData':_0x5a1a63['diffData'],'authorsIds':_0x5a1a63['authorsIds'],'authors':_0x5a1a63['authorsIds']['map'](_0x4f95bc=>this['editor']['plugins']['get']('Users')['getUser'](_0x4f95bc)),'fromVersion':_0x2da5c5};_0x4fdb08===this['currentRevision']&&(_0x17d0b5['createdAt']=new Date(_0x4d6d29['createdAt']['getTime']()+0xa)),_0x4fdb08['_update'](_0x17d0b5,!0x0),delete _0x17d0b5['authors'],_0x5348f0['push'](_0x17d0b5);}}if(this['adapter']){for(const _0x16df4a of _0x5348f0)this['_bufferUpdate'](_0x16df4a['id'],_0x16df4a,!0x0);this['sendBufferedUpdates']();}return _0x16b787;}['addRevisionData'](_0x116242){const _0x2f60ef=this['repository']['createRevision'](_0x116242);return this['adapter']&&_0x2f60ef['on']('_update',(_0x187cc3,_0x3b5f62,_0x7348d7)=>{_0x7348d7||(this['_bufferUpdate'](_0x3b5f62['id'],_0x3b5f62,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x2f60ef,this['_findInsertionIndex'](_0x2f60ef)),_0x2f60ef;}async['getRevisionDocumentData'](_0x414649){await this['_loadRevisionData'](_0x414649);const _0x59b58d={};for(const _0x1d3d99 in _0x414649['diffData']){if(_0x414649['diffData'][_0x1d3d99]['attachChange']&&!_0x414649['diffData'][_0x1d3d99]['attachChange']['isAttached'])continue;const _0x334e4f=this['_removeRevisionMarkers'](JSON['parse'](_0x414649['diffData'][_0x1d3d99]['insertions'])),_0x19e0bc=this['editor']['editing']['view']['document'],_0x236168=new _0x474688(_0x19e0bc,_0x334e4f['map'](_0x4da45c=>V(_0x4da45c,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x59b58d[_0x1d3d99]=this['editor']['data']['processor']['toData'](_0x236168),this['editor']['data']['processor']['useFillerType']('default');}return _0x59b58d;}async['getRevisionRootsAttributes'](_0xa6bea0){await this['_loadRevisionData'](_0xa6bea0);const _0xdb3144={};for(const _0x238761 in _0xa6bea0['diffData'])_0xa6bea0['diffData'][_0x238761]['attachChange']&&!_0xa6bea0['diffData'][_0x238761]['attachChange']['isAttached']||(_0xdb3144[_0x238761]=_0xa6bea0['diffData'][_0x238761]['attributesAfter']||{});return _0xdb3144;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x50802a=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x1762d3=0x0;_0x1762d3<_0x50802a['length'];_0x1762d3++){const _0x594042=_0x50802a[_0x1762d3];let _0x1073d0=!0x1;for(const _0x5810ec of Object['keys'](_0x594042))void 0x0===_0x594042[_0x5810ec]?delete _0x594042[_0x5810ec]:'id'!==_0x5810ec&&(_0x1073d0=!0x0);_0x1073d0||(_0x50802a[_0x1762d3]=null);}if(_0x50802a=_0x50802a['filter'](_0x26dce9=>null!==_0x26dce9),!_0x50802a['length'])return;for(let _0x2f84f4=0x0;_0x2f84f4<_0x50802a['length'];_0x2f84f4++){const _0x4a9706=_0x50802a[_0x2f84f4];void 0x0!==_0x4a9706['fromVersion']&&void 0x0===_0x4a9706['toVersion']&&(_0x4a9706['toVersion']=this['repository']['getRevision'](_0x4a9706['id'])['toVersion']),void 0x0!==_0x4a9706['toVersion']&&void 0x0===_0x4a9706['fromVersion']&&(_0x4a9706['fromVersion']=this['repository']['getRevision'](_0x4a9706['id'])['fromVersion']);}const _0x40ba14=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x50802a,_0x40ba14)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x427e98=>{if(_0x427e98){for(const _0x41364b of _0x427e98)this['setRevisionData']({'id':_0x41364b['id'],'createdAt':_0x41364b['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x2ca2e6,_0x59f29f){let _0x3fa515=this['editor']['config']['get']('initialData'),_0x2f1104=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x3fa515){_0x3fa515={};for(const _0x4891bb of this['editor']['model']['document']['getRootNames']())_0x3fa515[_0x4891bb]='';}if('string'==typeof _0x3fa515&&(_0x3fa515={'main':_0x3fa515}),void 0x0===_0x2f1104){_0x2f1104={};for(const _0x929270 of this['editor']['model']['document']['getRootNames']())_0x2f1104[_0x929270]={};}let _0x224960=!0x1;const _0x39e789=Object['keys'](_0x3fa515),_0x45c80b=Object['keys'](_0x2ca2e6);for(const _0x2feea3 of _0x39e789){if(_0x3fa515[_0x2feea3]!==_0x2ca2e6[_0x2feea3]&&''!==_0x3fa515[_0x2feea3]['trim']()){_0x224960=!0x0;break;}if(!_0x3c165a(_0x2f1104[_0x2feea3],_0x59f29f[_0x2feea3])&&Object['keys'](_0x2f1104[_0x2feea3])['length']>0x0){_0x224960=!0x0;break;}}_0x224960||(_0x224960=_0x45c80b['some'](_0x3db1a8=>!this['editor']['model']['document']['getRoot'](_0x3db1a8))),_0x224960&&_0x5d3bd4('editor-initial-data-replaced-with-revision-data',{'editorData':_0x3fa515,'editorRootsAttributes':_0x2f1104,'revisionData':_0x2ca2e6,'revisionRootsAttributes':_0x59f29f}),this['editor']['config']['set']('initialData',_0x2ca2e6),this['editor']['config']['set']('rootsAttributes',_0x59f29f);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x2e5d23=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x2e5d23['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x38085c){const _0x53d5fa=this['repository']['getRevisions']();_0x53d5fa['reverse']();let _0x38499c=0x0;for(;_0x38499c<_0x53d5fa['length'];){const _0x264334=_0x53d5fa[_0x38499c];if(_0x264334===this['currentRevision']){_0x38499c++;continue;}if(_0x264334['id']===this['_initialRevisionId'])break;const _0xccfbb5=_0x38085c['toVersion']-_0x264334['toVersion']||_0x38085c['fromVersion']-_0x264334['fromVersion'];if(_0xccfbb5>0x0)break;if(_0xccfbb5<0x0)_0x38499c++;else{if(!_0x38085c['creator']&&_0x264334['creator'])break;if(_0x264334['creator']||!_0x38085c['creator']){if(_0x38085c['createdAt']>_0x264334['createdAt'])break;_0x38499c++;}else _0x38499c++;}}return _0x38499c;}['setRevisionData'](_0x509786){const _0x2f9739=this['repository']['getRevision'](_0x509786['id']);if(_0x509786['createdAt']&&(_0x509786['createdAt']=new Date(_0x509786['createdAt'])),_0x509786['authorsIds']){const _0x1024f6=this['editor']['plugins']['get']('Users');_0x509786['authors']=_0x509786['authorsIds']['map'](_0x244dc6=>_0x1024f6['getUser'](_0x244dc6));}_0x2f9739['_update'](_0x509786,!0x0);}['buildRevisionData']({revision:_0x24ac01=null,from:_0x2af57e=null,to:_0x174e49=null}){_0x2af57e=null!==_0x2af57e?_0x2af57e:_0x24ac01['fromVersion'],_0x174e49=null!==_0x174e49?_0x174e49:_0x24ac01['toVersion'];const _0x4093ca=this['_revisionDataBuilder']['getData'](_0x2af57e,_0x174e49),_0xe185a3={'diffData':_0x4093ca['diffData'],'authorsIds':_0x4093ca['authorsIds'],'fromVersion':_0x2af57e,'toVersion':_0x174e49};if(!_0x24ac01||_0x174e49!==_0x24ac01['toVersion']){const _0x8079bb=_0x174e49-0x1,_0x4e743a=this['_source']['history']['getOperation'](_0x8079bb);_0xe185a3['createdAt']=_0x4e743a&&_0x4e743a['createdAt']||new Date();}if(this['_loadedStateData']&&_0x2af57e===this['_loadedStateData']['fromVersion']){for(const _0x5df129 of this['_loadedStateData']['authors'])_0xe185a3['authorsIds']['includes'](_0x5df129['id'])||_0xe185a3['authorsIds']['push'](_0x5df129['id']);}return _0xe185a3;}['_loadRevisionData'](_0x280e0a){if(!_0x280e0a||_0x280e0a['diffData'])return Promise['resolve']();{const _0x177499=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x177499,'revisionId':_0x280e0a['id']})['then'](_0x1c296b=>{_0x280e0a['diffData']=_0x1c296b['diffData'];});}}['_bufferUpdate'](_0x17bcb5,_0x29540d,_0x268bad){if(this['_bufferedUpdates']['has'](_0x17bcb5)){const _0x31bc49=this['_bufferedUpdates']['get'](_0x17bcb5);_0x29540d=_0x268bad?{..._0x31bc49,..._0x29540d}:{..._0x29540d,..._0x31bc49};}this['_bufferedUpdates']['set'](_0x17bcb5,_0x29540d);}['_getFromVersion'](_0x300795){const _0x182341=this['repository']['getRevisions']();_0x182341['reverse'](),_0x182341['shift']();const _0x510cb0=_0x182341['find'](_0x526955=>_0x526955['toVersion']<=_0x300795)['toVersion'];return _0x510cb0<this['_startingVersion']?this['_startingVersion']:_0x510cb0;}['_createInitialRevision'](_0x3eaeb3){const _0x12f2ad=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x12f2ad)this['_initialRevisionId']=_0x12f2ad['id'];else{const _0x3e2223=!this['editor']['model']['document']['roots']['find'](_0x327b17=>this['editor']['model']['hasContent'](_0x327b17)),_0x2545c1=this['editor']['plugins']['get']('Users')['me']['id'],_0x1278d5=R(this['editor']['locale'],_0x3e2223?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x3eaeb3,'to':_0x3eaeb3,'id':this['_initialRevisionId'],'name':_0x1278d5,'creatorId':_0x2545c1});}}['_createCurrentRevision'](_0x1478b0){const _0x53c3ec=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x53c3ec),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x1478b0,'to':_0x1478b0,'id':_0x53c3ec,'name':'','creatorId':null}));}['_makeRevision']({name:_0x135f97,from:_0xddf309,to:_0xa2d79e,creatorId:_0x385f95,id:_0x9084dd}){const _0xf240b0=this['buildRevisionData']({'from':_0xddf309,'to':_0xa2d79e});_0xf240b0['name']=_0x135f97,_0xf240b0['creatorId']=_0x385f95,_0xf240b0['id']=_0x9084dd;const _0xd87ad=this['addRevisionData'](_0xf240b0);return this['adapter']&&this['_bufferUpdate'](_0xf240b0['id'],_0xf240b0,!0x0),_0xd87ad;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x184b1b){return(_0x184b1b=_0x184b1b['filter'](_0x35ea4b=>!_0x35ea4b['name']||'revision-start'!==_0x35ea4b['name']&&'revision-end'!==_0x35ea4b['name']))['forEach'](_0x2becdd=>{'string'!=typeof _0x2becdd&&(_0x2becdd['children']=this['_removeRevisionMarkers'](_0x2becdd['children']),_0x2becdd['attributes']=_0x2becdd['attributes']['filter'](_0x116293=>!_0x116293[0x0]['startsWith']('data-revision-')));}),_0x184b1b;}}function V(_0xfc8404,_0x36ebb2){const _0x5d0c9c=_0x36ebb2['editing']['view']['document'];if('string'==typeof _0xfc8404)return new _0x146933(_0x5d0c9c,_0xfc8404);{const _0x34f8f9=_0xfc8404['children']['map'](_0x5564d3=>V(_0x5564d3,_0x36ebb2));return new(C[_0xfc8404['type']]||_0x1a6832)(_0x5d0c9c,_0xfc8404['name'],_0xfc8404['attributes'],_0x34f8f9);}}class T{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x3bcf1f){this['editor']=_0x3bcf1f,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'](_0x1ad36b){this['source']=_0x1ad36b;const _0x3f4a0c=new Map(),_0x2385c5=new Map(),_0x733b2d=this['editor']['model']['document']['roots']['map'](_0x1c3009=>_0x1c3009['rootName']);for(const _0x157c7 of _0x733b2d){const _0x4c333c=this['editor']['model']['document']['getRoot'](_0x157c7),_0x2e1185=F(_0x4c333c);_0x3f4a0c['set'](_0x157c7,_0x2e1185),_0x2385c5['set'](_0x157c7,Object['fromEntries'](_0x4c333c['getAttributes']()));}const _0x1cabcd=Array['from'](this['editor']['model']['markers'])['map'](_0x1bc5f9=>[_0x1bc5f9['name'],_0x1bc5f9['getRange']()]),_0x963557=this['source']['version'];this['_saveMetaData'](_0x963557,_0x3f4a0c,_0x1cabcd,_0x2385c5),this['_startingRevisionId']=this['_revisionId'];const _0x49aa79=new Map(),_0x1d2296=new Map();for(const _0x5c5339 of _0x733b2d){const _0x7d17c0=B(_0x5c5339);_0x49aa79['set'](_0x5c5339,_0x7d17c0),_0x1d2296['set'](_0x5c5339,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x49aa79,[],_0x1d2296);}['getData'](_0x35d290,_0x1c6f47){if(this['_lastFrom']===_0x35d290&&this['_lastTo']<=_0x1c6f47)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x1c6f47,!0x0);else{if(!this['_savedMetaData']['has'](_0x35d290)){const _0x1db7a0=this['_getPreviousFrom'](_0x35d290);this['_calculateMetaData'](_0x1db7a0,_0x35d290,!0x1);}this['_calculateMetaData'](_0x35d290,_0x1c6f47,!0x0);}return this['_lastFrom']=_0x35d290,this['_lastTo']=_0x1c6f47,this['_getState']();}['loadState'](_0x5b5320){this['_reset'](),this['_lastFrom']=_0x5b5320['fromVersion'],this['_lastTo']=_0x5b5320['toVersion'];for(const _0x4709af in _0x5b5320['diffData']){const _0x3ac3fd=_0x5b5320['diffData'][_0x4709af]['attachChange'],_0x32ea3b=_0x59dc59(_0x5b5320['diffData'][_0x4709af]['attributesBefore'])||{},_0x1a265c=this['_makeModelFromViewString'](_0x5b5320['diffData'][_0x4709af]['deletions']);_0x1a265c['rootName']=_0x4709af,_0x1a265c['_isAttached']=!_0x3ac3fd||!_0x3ac3fd['isAttached'],_0x1a265c['isAttached']=()=>_0x1a265c['_isAttached'],this['_baseRoots']['set'](_0x4709af,_0x1a265c),this['_baseRootsAttributes']['set'](_0x4709af,_0x32ea3b),_0x3ac3fd&&this['_touchedRoots']['set'](_0x4709af,_0x3ac3fd);const _0x2981da=this['_makeIdsRoot'](_0x1a265c);this['_baseIdsRoots']['set'](_0x4709af,_0x2981da);for(const [_0xa8c809,_0x116231]of _0x1a265c['markers']){if(!_0xa8c809['startsWith']('revision:'))continue;const _0x4c8d74=_0xa8c809['split'](':')[0x2];for(const _0x3bd883 of _0x116231['getWalker']({'singleCharacters':!0x0})){const _0xa9d086=this['_getVidAttributeName'](_0x3bd883),_0x5370f8='elementEnd'==_0x3bd883['type']?_0x3bd883['previousPosition']['path']['slice'](0x0,-0x1):_0x3bd883['previousPosition']['path'],_0x14fdbb=_0x2981da['getNodeByPath'](_0x5370f8)['getAttribute'](_0xa9d086);this['_touched']['set'](_0x14fdbb,{'userId':_0x4c8d74});}}}this['_startingRevisionId']=this['_revisionId'];const _0xbfb674=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0xb780d2=>!this['_touched']['has'](_0xb780d2));let _0xfccdb4=0x0;const _0x28a6bf=new Map();for(const _0x2c9888 in _0x5b5320['diffData']){const _0x52aaea=_0x5b5320['diffData'][_0x2c9888]['attachChange'],_0xe45520=_0x59dc59(_0x5b5320['diffData'][_0x2c9888]['attributesAfter'])||{},_0x385167=this['_makeModelFromViewString'](_0x5b5320['diffData'][_0x2c9888]['insertions']);_0x385167['rootName']=_0x2c9888,_0x385167['_isAttached']=!_0x52aaea||_0x52aaea['isAttached'],_0x385167['isAttached']=()=>_0x385167['_isAttached'],this['_diffRoots']['set'](_0x2c9888,_0x385167),this['_diffRootsAttributes']['set'](_0x2c9888,_0xe45520);const _0x2ed476=this['_makeIdsRoot'](_0x385167,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x2c9888,_0x2ed476),_0x28a6bf['set'](_0x2c9888,_0x385167['isAttached']()?_0xe45520:{});for(const [_0xead4e8,_0x974ac3]of _0x385167['markers']){if(!_0xead4e8['startsWith']('revision:'))continue;const _0x381da5=_0xead4e8['split'](':')[0x2];for(const _0x179cfc of _0x974ac3['getWalker']({'singleCharacters':!0x0})){const _0x4cccb4=this['_getVidAttributeName'](_0x179cfc),_0x955c5f=this['_revisionId']++,_0x4e5435='elementEnd'==_0x179cfc['type']?_0x179cfc['previousPosition']['path']['slice'](0x0,-0x1):_0x179cfc['previousPosition']['path'];_0x2ed476['getNodeByPath'](_0x4e5435)['_setAttribute'](_0x4cccb4,_0x955c5f),this['_touched']['set'](_0x955c5f,{'userId':_0x381da5});}}for(const _0x4c6761 of this['editor']['model']['createRangeIn'](_0x385167)['getWalker']({'singleCharacters':!0x0})){const _0x26f4fd=this['_getVidAttributeName'](_0x4c6761),_0x1e582a='elementEnd'==_0x4c6761['type']?_0x4c6761['previousPosition']['path']['slice'](0x0,-0x1):_0x4c6761['previousPosition']['path'],_0x4a9f14=_0x2ed476['getNodeByPath'](_0x1e582a);_0x4a9f14['getAttribute'](_0x26f4fd)>0x0||_0x4a9f14['_setAttribute'](_0x26f4fd,_0xbfb674[_0xfccdb4++]);}for(const [_0x569f64,_0x5afa5c]of _0x385167['markers'])_0x569f64['startsWith']('revision:')||this['_markers']['set'](_0x569f64,_0x5afa5c);}const _0x5180db=B('$graveyard');this['_baseRoots']['set']('$graveyard',_0x5180db),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x5180db,0x1));const _0x2c9256=B('$graveyard');this['_diffRoots']['set']('$graveyard',_0x2c9256),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x2c9256,0x1));const _0x621c2f=Array['from'](this['_diffRoots'])['map'](([_0x96e81,_0x3bb379])=>[_0x96e81,F(_0x3bb379)]);this['_saveMetaData'](this['_lastTo'],_0x621c2f,this['_markers'],_0x28a6bf);}['_makeModelFromViewString'](_0x15c9c7){const _0x43087d=JSON['parse'](_0x15c9c7),_0x148d6c=this['editor']['editing']['view']['document'],_0x1baa4f=new _0x474688(_0x148d6c,_0x43087d['map'](_0x2e8b21=>V(_0x2e8b21,this['editor'])));return this['editor']['data']['toModel'](_0x1baa4f);}['_saveMetaData'](_0x7e296f,_0x2a14d3,_0x4d41a2,_0x54986d){const _0x26d56d=new Map(_0x2a14d3),_0x320a6b=new Map(_0x59dc59(_0x54986d)),_0x329406=new Map();for(const [_0x52dbe1,_0x4f97f8]of _0x4d41a2)_0x329406['set'](_0x52dbe1,{'start':_0x4f97f8['start']['clone'](),'end':_0x4f97f8['end']['clone'](),'rootName':_0x4f97f8['root']['rootName']});this['_savedMetaData']['set'](_0x7e296f,{'roots':_0x26d56d,'markers':_0x329406,'rootsAttributes':_0x320a6b});}['_removeMetaData'](_0x2465cb){this['_savedMetaData']['delete'](_0x2465cb);}['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'](_0x33722d,_0x528bde=null){let _0x2a1a7d=null;_0x33722d['is']('documentFragment')||(_0x2a1a7d=new ft(_0x33722d['name'],{'vid_start':null===_0x528bde?this['_revisionId']++:_0x528bde++}));const _0x4917cd=[];for(const _0x4789b5 of _0x33722d['getChildren']())if(_0x4789b5['is']('element')){_0x4917cd['push'](this['_makeIdsRoot'](_0x4789b5,_0x528bde));const _0x8c3ae6=_0x4917cd[_0x4917cd['length']-0x1];null!==_0x528bde&&(_0x528bde=_0x8c3ae6['is']('element','$text')?_0x8c3ae6['getAttribute']('vid')+0x1:_0x8c3ae6['getAttribute']('vid_end')+0x1);}else{for(let _0x408c2d=0x0;_0x408c2d<_0x4789b5['offsetSize'];_0x408c2d++)_0x4917cd['push'](new ft('$text',{'vid':null===_0x528bde?this['_revisionId']++:_0x528bde++}));}if(_0x33722d['is']('documentFragment')){const _0x1b32e1=B(_0x33722d['rootName']);return _0x1b32e1['_insertChild'](0x0,_0x4917cd),_0x1b32e1;}return _0x2a1a7d['_setAttribute']('vid_end',null===_0x528bde?this['_revisionId']++:_0x528bde++),_0x2a1a7d['_insertChild'](0x0,_0x4917cd),_0x2a1a7d;}['_calculateMetaData'](_0x3ed7c5,_0x48b5aa,_0x533a51){this['_reset']();const {roots:_0x3be20e,markers:_0x2731c8,rootsAttributes:_0x4b7ffa}=this['_savedMetaData']['get'](_0x3ed7c5);this['_baseRoots']=new Map(_0x3be20e),this['_baseRootsAttributes']=new Map(_0x59dc59(_0x4b7ffa));for(const [_0x50f233,_0x2f98fd]of this['_baseRoots'])if('$graveyard'!==_0x50f233&&(this['_diffRoots']['set'](_0x50f233,F(_0x2f98fd)),this['_diffRootsAttributes']=new Map(_0x59dc59(_0x4b7ffa)),_0x533a51)){const _0x3ed221=this['_revisionId'];this['_idsRoots']['set'](_0x50f233,this['_makeIdsRoot'](_0x2f98fd)),this['_baseIdsRoots']['set'](_0x50f233,this['_makeIdsRoot'](_0x2f98fd,_0x3ed221));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',F(this['_baseRoots']['get']('$graveyard'))),_0x533a51&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x51ac3e,_0x11266c]of _0x2731c8){const _0x2a244c=this['_baseRoots']['get'](_0x11266c['rootName']),_0x553ec4=this['_diffRoots']['get'](_0x11266c['rootName']),_0x73f1aa=new vt(this['_fixPosition'](_0x11266c['start'],_0x2a244c),this['_fixPosition'](_0x11266c['end'],_0x2a244c)),_0x142954=this['_fixRange'](_0x73f1aa,_0x553ec4);_0x2a244c['markers']['set'](_0x51ac3e,_0x73f1aa),this['_markers']['set'](_0x51ac3e,_0x142954);}this['_applyOperations'](_0x3ed7c5,_0x48b5aa,_0x533a51);}['_applyOperations'](_0x44def9,_0x182258,_0xfb5e7d){for(const _0x104850 of this['source']['getOperations'](_0x44def9,_0x182258))this['_handleOperation'](_0x104850,_0xfb5e7d);for(const _0x3a7570 of this['_diffRoots']['values']())_0x3a7570['markers']['clear']();for(const [_0x2aa639,_0x5baa5b]of this['_markers']){this['_diffRoots']['get'](_0x5baa5b['root']['rootName'])['markers']['set'](_0x2aa639,_0x5baa5b['clone']());}const _0x3b02f3=new Map(),_0x2444b2=new Map();for(const [_0x4e15f4,_0x3ce98d]of this['_diffRoots'])_0x3b02f3['set'](_0x4e15f4,F(_0x3ce98d)),_0x2444b2['set'](_0x4e15f4,this['_diffRootsAttributes']['get'](_0x4e15f4));this['_saveMetaData'](_0x182258,_0x3b02f3,this['_markers'],_0x2444b2);}['_getPreviousFrom'](_0x1ec43f){const _0x47f40c=Array['from'](this['_savedMetaData']['keys']());_0x47f40c['sort']((_0x8226bd,_0x2b275b)=>_0x8226bd-_0x2b275b),_0x47f40c['reverse']();for(const _0x304b43 of _0x47f40c)if(_0x304b43<_0x1ec43f)return _0x304b43;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x24da90,_0x5de28f){const _0xc760b7=Array['from'](_0x5de28f['markers'])['map'](([_0x9ec0f3,_0x3bcf8a])=>[_0x9ec0f3,this['_fixRange'](_0x3bcf8a,_0x24da90)]);_0x24da90['markers']=new Map(_0xc760b7);}['_transformMarkers'](_0x34b40b){for(const _0x2344e1 of this['_markers']['values']()){const _0x54aef4=_0x2344e1['getTransformedByOperation'](_0x34b40b),_0x3c1eaa=vt['_createFromRanges'](_0x54aef4);_0x2344e1['start']=_0x3c1eaa['start'],_0x2344e1['end']=_0x3c1eaa['end'];}}['_handleOperation'](_0x11cfdc,_0x5d348c){if('addRoot'!=_0x11cfdc['type']&&'detachRoot'!=_0x11cfdc['type']){if('insert'==_0x11cfdc['type']){const _0x2844ab=_0x11cfdc['position']['root']['rootName'];this['_diffRoots']['has'](_0x2844ab)||(this['_diffRoots']['set'](_0x2844ab,B(_0x2844ab,!0x0)),this['_diffRootsAttributes']['set'](_0x2844ab,{}),_0x5d348c&&this['_idsRoots']['set'](_0x2844ab,B(_0x2844ab,!0x0)));}else{if('addRootAttribute'==_0x11cfdc['type']||'removeRootAttribute'==_0x11cfdc['type']||'changeRootAttribute'==_0x11cfdc['type'])return void this['_handleRootAttributeOperation'](_0x11cfdc);'marker'==_0x11cfdc['type']&&this['_handleMarkerOperation'](_0x11cfdc);}if('marker'!==_0x11cfdc['type']){const _0x3f7b10=this['_cloneOperation'](_0x11cfdc,this['_diffRoots']);_0x3f7b10['_execute'](),this['_transformMarkers'](_0x3f7b10);}if(_0x5d348c)switch(_0x11cfdc['type']){case'insert':this['_handleInsertOperation'](_0x11cfdc);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x11cfdc);break;case'merge':this['_handleMergeOperation'](_0x11cfdc);break;case'split':this['_handleSplitOperation'](_0x11cfdc);}}else this['_handleRootOperation'](_0x11cfdc,_0x5d348c);}['_cloneOperation'](_0x1d8894,_0x3c967d){const _0x24e70c=_0x1d8894['clone']();return _0x24e70c['_authorId']=_0x1d8894['_authorId'],this['_fixOperation'](_0x24e70c,_0x3c967d),_0x24e70c;}['_getBaseVids'](_0x1a4807){return _0x1a4807['map'](_0x54dbbf=>{const _0x5ea4b2=this['_getVidAttributeName'](_0x54dbbf);return Number(_0x54dbbf['item']['getAttribute'](_0x5ea4b2));});}['_generateTape'](_0x4a3dca,_0x1809a6){if(_0x4a3dca['is']('element','$text'))_0x1809a6['push']({'item':_0x4a3dca,'type':'text'});else{_0x4a3dca['is']('element')&&_0x1809a6['push']({'item':_0x4a3dca,'type':'elementStart'});for(const _0x4993f7 of _0x4a3dca['getChildren']())this['_generateTape'](_0x4993f7,_0x1809a6);_0x4a3dca['is']('element')&&_0x1809a6['push']({'item':_0x4a3dca,'type':'elementEnd'});}return _0x1809a6;}['_getState'](){const _0x465396=new Map(this['_touched']),_0x142f6f=new Map(_0x465396),_0x596db5=new Map(),_0x39b225={'insertions':{},'deletions':{}},_0x2f4175={'insertions':{},'deletions':{}},_0x5069e3=new Map(),_0x2dbdf9=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x2dbdf9['delete']('$graveyard');for(const _0x15a781 of _0x2dbdf9){const _0x1537d8=this['_diffRoots']['get'](_0x15a781)||B(_0x15a781,!0x1),_0x135578=this['_baseRoots']['get'](_0x15a781)||B(_0x15a781,!0x1);_0x1537d8['isAttached']()||_0x135578['isAttached']()?(_0x39b225['insertions'][_0x15a781]=F(_0x1537d8),_0x39b225['deletions'][_0x15a781]=F(_0x135578),this['_copyMarkers'](_0x39b225['deletions'][_0x15a781],_0x135578),this['_copyMarkers'](_0x39b225['insertions'][_0x15a781],_0x1537d8),_0x2f4175['insertions'][_0x15a781]=this['_generateTape'](this['_idsRoots']['get'](_0x15a781),[]),_0x2f4175['deletions'][_0x15a781]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x15a781)||B(_0x15a781,!0x1),[])):_0x2dbdf9['delete'](_0x15a781);}for(const _0x1e4574 of _0x2dbdf9){const _0x3ec441=_0x2f4175['insertions'][_0x1e4574];for(const _0x518308 of _0x3ec441){const _0x41899c=this['_getVidAttributeName'](_0x518308),_0x3bc225=_0x518308['item']['getAttribute'](_0x41899c);_0x142f6f['delete'](_0x3bc225),_0x3bc225>=this['_startingRevisionId']&&_0x596db5['set'](_0x3bc225,_0x465396['get'](_0x3bc225));}}for(const _0x2021d5 of _0x2dbdf9){const _0x2f3959=_0x2f4175['insertions'][_0x2021d5],_0x5b3984=this['_getBaseVids'](_0x2f4175['deletions'][_0x2021d5]);let _0x356adb=0x0;for(const _0x4da24e of _0x2f3959){const _0x4bf246=this['_getVidAttributeName'](_0x4da24e),_0x1bef78=_0x4da24e['item']['getAttribute'](_0x4bf246);if(!_0x596db5['has'](_0x1bef78)&&!_0x5069e3['has'](_0x1bef78)){if(_0x142f6f['has'](_0x1bef78))_0x356adb++;else{if(_0x1bef78!=_0x5b3984[_0x356adb]){const _0x32cc57=_0x465396['get'](_0x1bef78)||_0x465396['get'](_0x5b3984[_0x356adb]);for(;_0x1bef78!=_0x5b3984[_0x356adb];)_0x142f6f['has'](_0x5b3984[_0x356adb])||(_0x5069e3['set'](_0x5b3984[_0x356adb],_0x32cc57),_0x465396['set'](_0x5b3984[_0x356adb],_0x32cc57)),_0x356adb++;}_0x356adb++;}}}}for(const _0xf67bb7 of _0x2dbdf9){const _0x107f78=_0x2f4175['insertions'][_0xf67bb7];for(const _0xd9fef3 of _0x107f78){const _0x3681a7=this['_getVidAttributeName'](_0xd9fef3),_0x5f5a5e=_0xd9fef3['item']['getAttribute'](_0x3681a7);if(_0x5069e3['has'](_0x5f5a5e)){const _0x187fcf=_0x5069e3['get'](_0x5f5a5e);_0x142f6f['has'](_0x5f5a5e)||_0x142f6f['set'](_0x5f5a5e,{..._0x187fcf}),_0x596db5['set'](_0x5f5a5e,{..._0x187fcf});}}}for(const _0x27189c of _0x142f6f['keys']())_0x27189c>=this['_startingRevisionId']&&_0x142f6f['delete'](_0x27189c);const _0x32c83c=new Map();for(const _0x1c305f of _0x2dbdf9){let _0x463ca0=_0x2f4175['insertions'][_0x1c305f];for(const _0x4ede83 of _0x463ca0)if(_0x4ede83['item']['is']('element','tableCell')){const _0x414943=this['_getVidAttributeName'](_0x4ede83),_0x20f804=_0x4ede83['item']['getAttribute'](_0x414943);if(_0x596db5['has'](_0x20f804)){const _0x221f44=_0x4ede83['item']['parent']['parent']['getAttribute']('vid_start'),_0x16aea8=_0x32c83c['get'](_0x221f44)||new Set();_0x16aea8['add'](_0x596db5['get'](_0x20f804)['userId']),_0x32c83c['set'](_0x221f44,_0x16aea8);}}_0x463ca0=_0x2f4175['deletions'][_0x1c305f];for(const _0x559815 of _0x463ca0)if(_0x559815['item']['is']('element','tableCell')){const _0x55821a=this['_getVidAttributeName'](_0x559815),_0x1fff30=_0x559815['item']['getAttribute'](_0x55821a);if(_0x142f6f['has'](_0x1fff30)){const _0x55c30f=_0x559815['item']['parent']['parent']['getAttribute']('vid_start'),_0x60279a=_0x32c83c['get'](_0x55c30f)||new Set();_0x60279a['add'](_0x142f6f['get'](_0x1fff30)['userId']),_0x32c83c['set'](_0x55c30f,_0x60279a);}}for(const _0x182002 of _0x32c83c['keys']())(_0x596db5['has'](_0x182002)||_0x142f6f['has'](_0x182002))&&_0x32c83c['delete'](_0x182002);}for(const _0x35db2e of _0x2dbdf9){const _0x2a24d0=_0x2f4175['insertions'][_0x35db2e];let _0x2aabe4=null,_0x222f0b=null;for(const _0x583df7 of _0x2a24d0){const _0x41ad24=this['_getVidAttributeName'](_0x583df7),_0x44e410=_0x583df7['item']['getAttribute'](_0x41ad24),_0x324ff7=_0x32c83c['get'](_0x44e410);_0x324ff7&&'elementStart'==_0x583df7['type']&&(_0x2aabe4=Array['from'](_0x324ff7)[0x0],_0x222f0b=_0x583df7['item']['getAttribute']('vid_end')),_0x2aabe4&&(_0x142f6f['set'](_0x44e410,{'userId':_0x2aabe4}),_0x596db5['set'](_0x44e410,{'userId':_0x2aabe4})),_0x44e410==_0x222f0b&&(_0x2aabe4=null,_0x222f0b=null);}}const _0x33f20e={},_0x43c6f3=new Set();for(const _0x2dfec2 of _0x2dbdf9){const _0x45be6d=_0x39b225['deletions'][_0x2dfec2],_0x3a7250=_0x39b225['insertions'][_0x2dfec2];for(const {userId:_0x440d72}of this['_touchedMarkers']['values']())null!==_0x440d72&&_0x43c6f3['add'](_0x440d72);for(const {userId:_0x32630b}of this['_touchedRoots']['values']())null!==_0x32630b&&_0x43c6f3['add'](_0x32630b);this['_markChanges'](_0x3a7250,_0x2f4175['insertions'][_0x2dfec2],_0x596db5,'insertion',_0x43c6f3),this['_markChanges'](_0x45be6d,_0x2f4175['deletions'][_0x2dfec2],_0x142f6f,'deletion',_0x43c6f3),_0x33f20e[_0x2dfec2]={'insertions':this['_prepareViewToSave'](_0x3a7250),'deletions':this['_prepareViewToSave'](_0x45be6d),'attachChange':this['_touchedRoots']['get'](_0x2dfec2)||null,'attributesBefore':_0x59dc59(this['_baseRootsAttributes']['get'](_0x2dfec2))||{},'attributesAfter':_0x59dc59(this['_diffRootsAttributes']['get'](_0x2dfec2))};}return{'diffData':_0x33f20e,'authorsIds':Array['from'](_0x43c6f3)};}['_processRootBeforeSave'](_0x5296f0){for(const [,_0x443d8d]of _0x5296f0['markers']){const _0x89449a=_0x443d8d['start']['getAncestors']()['filter'](_0xf91115=>'tableCell'==_0xf91115['name']);for(const _0x29c4e7 of _0x89449a)0x1==_0x29c4e7['childCount']&&_0x29c4e7['getChild'](0x0)['is']('element','paragraph')&&_0x29c4e7['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x284d73){this['_processRootBeforeSave'](_0x284d73);const _0x54dac9=this['editor']['data']['toView'](_0x284d73,{}),_0x19d756=Array['from'](_0x54dac9['getChildren']())['map'](_0x1c7b22=>this['_getViewJson'](_0x1c7b22));return JSON['stringify'](_0x19d756);}['_getViewJson'](_0x246d98){if(_0x246d98['is']('$text'))return _0x246d98['data'];{const _0x3b0180=_0x246d98;return{'type':Object['keys'](C)['find'](_0x2bcb56=>_0x246d98 instanceof C[_0x2bcb56]),'name':_0x3b0180['name'],'attributes':Array['from'](_0x3b0180['getAttributes']()),'children':Array['from'](_0x3b0180['getChildren']())['map'](_0x4c1b88=>this['_getViewJson'](_0x4c1b88))};}}['_markChanges'](_0xfeaa66,_0x969849,_0x3a438b,_0x597ce7,_0x5d3436){let _0x364728=null,_0x389123=null,_0x32cdba=0x0;const _0x1e1dfa=this['editor']['model'];for(let _0x49274c=0x0;_0x49274c<_0x969849['length'];_0x49274c++){const _0x5307d6=this['_getVidAttributeName'](_0x969849[_0x49274c]),_0x433e04=_0x969849[_0x49274c]['item']['getAttribute'](_0x5307d6),_0x150dfe=_0x3a438b['get'](_0x433e04),_0x23eff4=_0x49274c==_0x969849['length']-0x1;(!_0x364728&&_0x150dfe&&(_0x364728=_0x150dfe,_0x389123=_0x969849[_0x49274c]),_0x364728&&(!_0x150dfe||_0x150dfe['userId']!=_0x364728['userId']))&&(_0x2ca39a(_0x150dfe,J(_0x389123,_0xfeaa66,_0x1e1dfa),J(_0x969849[_0x49274c],_0xfeaa66,_0x1e1dfa)),_0x364728=_0x150dfe||null,_0x389123=_0x150dfe?_0x969849[_0x49274c]:null),_0x364728&&_0x23eff4&&_0x2ca39a(_0x150dfe,J(_0x389123,_0xfeaa66,_0x1e1dfa),q(_0x969849[_0x49274c],_0xfeaa66,_0x1e1dfa));}function _0x2ca39a(_0x237eb2,_0x334de0,_0x181eb3){const _0x5f483c=_0x364728['userId'],_0x36008a='revision:'+_0x597ce7+':'+_0x5f483c+':'+_0x32cdba++,_0x40fed2=_0x1e1dfa['createRange'](_0x334de0,_0x181eb3);_0xfeaa66['markers']['set'](_0x36008a,_0x40fed2),null!==_0x5f483c&&_0x5d3436['add'](_0x5f483c);}}['_getVidAttributeName'](_0x407291){switch(_0x407291['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x24a1b2,_0xa015fa){_0x24a1b2['baseVersion']=null;for(const _0x4518d6 in _0x24a1b2){const _0x283062=_0x24a1b2[_0x4518d6];if(_0x283062 instanceof gt){const _0x39de95=_0xa015fa['get'](_0x283062['root']['rootName']);_0x24a1b2[_0x4518d6]=this['_fixPosition'](_0x283062,_0x39de95);}if(_0x283062 instanceof vt){const _0x22f269=_0xa015fa['get'](_0x283062['root']['rootName']);_0x24a1b2[_0x4518d6]=this['_fixRange'](_0x283062,_0x22f269);}'root'===_0x4518d6&&(_0x24a1b2['root']=_0xa015fa['get'](_0x24a1b2['root']['rootName']));}}['_fixRange'](_0x598dd8,_0x2747a7){return this['editor']['model']['createRange'](this['_fixPosition'](_0x598dd8['start'],_0x2747a7),this['_fixPosition'](_0x598dd8['end'],_0x2747a7));}['_fixPosition'](_0x3f0626,_0x4fb179){return this['editor']['model']['createPositionFromPath'](_0x4fb179,_0x3f0626['path'],_0x3f0626['stickiness']);}['_handleInsertOperation'](_0x10d347){const _0x48aebd=this['_idsRoots']['get'](_0x10d347['position']['root']['rootName']),_0x3fddf2=this['_fixPosition'](_0x10d347['position'],_0x48aebd),_0x2656fe=null===_0x10d347['_authorId']?null:_0x10d347['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x44cb62=_0x3fddf2['parent'],_0x5f36ed=this['_revisionId'],_0x4ea24f=[];for(const _0x5ec929 of _0x10d347['nodes'])if(_0x5ec929['is']('element'))_0x4ea24f['push'](this['_makeIdsRoot'](_0x5ec929));else{for(let _0x59ec31=0x0;_0x59ec31<_0x5ec929['offsetSize'];_0x59ec31++)_0x4ea24f['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x101ab0=this['_revisionId'];for(let _0x593fdb=_0x5f36ed;_0x593fdb<_0x101ab0;_0x593fdb++)this['_touched']['set'](_0x593fdb,{'userId':_0x2656fe});_0x44cb62['_insertChild'](_0x3fddf2['offset'],_0x4ea24f);}['_handleMoveOperation'](_0x39f195){(_0x39f195=this['_cloneOperation'](_0x39f195,this['_idsRoots']))['_execute']();const _0x2427c5=null===_0x39f195['_authorId']?null:_0x39f195['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1c867e=_0x39f195['getMovedRangeStart'](),_0x191a34=_0x1c867e['parent'],_0x5618ad=_0x1c867e['offset'];!function _0x1beb40(_0x46e315,_0x1fcb7a,_0x398f6d,_0x1f12e3){for(let _0x457463=_0x398f6d;_0x457463<_0x1f12e3;_0x457463++){const _0x3b6990=_0x1fcb7a['getChild'](_0x457463);_0x3b6990['is']('element','$text')?_0x46e315['set'](_0x3b6990['getAttribute']('vid'),{'userId':_0x2427c5}):(_0x46e315['set'](_0x3b6990['getAttribute']('vid_start'),{'userId':_0x2427c5}),_0x1beb40(_0x46e315,_0x3b6990,0x0,_0x3b6990['childCount']),_0x46e315['set'](_0x3b6990['getAttribute']('vid_end'),{'userId':_0x2427c5}));}}(this['_touched'],_0x191a34,_0x5618ad,_0x5618ad+_0x39f195['howMany']);}['_handleMergeOperation'](_0x3ca4c){const _0x177c7e=null===(_0x3ca4c=this['_cloneOperation'](_0x3ca4c,this['_idsRoots']))['_authorId']?null:_0x3ca4c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x422619=_0x3ca4c['targetPosition']['parent'],_0x1c3e6b=_0x3ca4c['sourcePosition']['parent'],_0x3812b4=_0x422619['getAttribute']('vid_end'),_0x147617=_0x1c3e6b['getAttribute']('vid_start');_0x422619['_setAttribute']('vid_end',_0x1c3e6b['getAttribute']('vid_end')),_0x1c3e6b['_setAttribute']('vid_end',_0x3812b4),this['_touched']['set'](_0x147617,{'userId':_0x177c7e}),this['_touched']['set'](_0x3812b4,{'userId':_0x177c7e}),_0x3ca4c['_execute']();}['_handleSplitOperation'](_0x29efbf){const _0x43c74b=null===(_0x29efbf=this['_cloneOperation'](_0x29efbf,this['_idsRoots']))['_authorId']?null:_0x29efbf['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4ce590=_0x29efbf['graveyardPosition'],_0x11411f=_0x29efbf['splitPosition']['parent'];_0x29efbf['_execute']();const _0x36e573=_0x11411f['getAttribute']('vid_end'),_0x508ee9=_0x29efbf['insertionPosition']['nodeAfter'];if(_0x4ce590){const _0x12c972=_0x508ee9['getAttribute']('vid_end'),_0x293a2a=_0x11411f['getAttribute']('vid_end');_0x11411f['_setAttribute']('vid_end',_0x12c972),_0x508ee9['_setAttribute']('vid_end',_0x293a2a),this['_touched']['set'](_0x11411f['getAttribute']('vid_end'),{'userId':_0x43c74b}),this['_touched']['set'](_0x508ee9['getAttribute']('vid_start'),{'userId':_0x43c74b});}else{const _0x4f22a=this['_revisionId']++,_0xd5df23=this['_revisionId']++;_0x11411f['_setAttribute']('vid_end',_0x4f22a),_0x508ee9['_setAttribute']('vid_start',_0xd5df23),_0x508ee9['_setAttribute']('vid_end',_0x36e573),this['_touched']['set'](_0x4f22a,{'userId':_0x43c74b}),this['_touched']['set'](_0xd5df23,{'userId':_0x43c74b});}}['_handleMarkerOperation'](_0x1c6d8a){if(!_0x1c6d8a['affectsData'])return;const _0x3113f0=(_0x1c6d8a=this['_cloneOperation'](_0x1c6d8a,this['_diffRoots']))['oldRange']?_0x1c6d8a['oldRange']['root']:null,_0x5057e6=_0x1c6d8a['newRange']?_0x1c6d8a['newRange']['root']:null;_0x3113f0&&this['_markers']['delete'](_0x1c6d8a['name']),_0x5057e6&&this['_markers']['set'](_0x1c6d8a['name'],_0x1c6d8a['newRange']['clone']());const _0x1a4525=null===_0x1c6d8a['_authorId']?null:_0x1c6d8a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x14bdd8=_0x1c6d8a['name'];if(!this['_touchedMarkers']['has'](_0x14bdd8))return void this['_touchedMarkers']['set'](_0x14bdd8,{'range':_0x1c6d8a['oldRange'],'userId':_0x1a4525});const _0x159f56=this['_touchedMarkers']['get'](_0x14bdd8),_0x12979f=_0x159f56['range'],_0x45cd00=_0x1c6d8a['newRange'];null==_0x12979f&&null==_0x45cd00||_0x12979f&&_0x45cd00&&_0x12979f['isEqual'](_0x45cd00)?this['_touchedMarkers']['delete'](_0x1c6d8a['name']):_0x159f56['userId']=_0x1a4525;}['_handleRootOperation'](_0x4e76d3,_0x51cdb4){this['_diffRoots']['has'](_0x4e76d3['rootName'])?this['_diffRoots']['get'](_0x4e76d3['rootName'])['_isAttached']=_0x4e76d3['isAdd']:(this['_diffRoots']['set'](_0x4e76d3['rootName'],B(_0x4e76d3['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x4e76d3['rootName'],{}),_0x51cdb4&&this['_idsRoots']['set'](_0x4e76d3['rootName'],B(_0x4e76d3['rootName'],!0x0)));const _0x1fb0d4=null===_0x4e76d3['_authorId']?null:_0x4e76d3['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x798166=this['_touchedRoots']['get'](_0x4e76d3['rootName']);_0x798166&&_0x798166['userId']===_0x1fb0d4?this['_touchedRoots']['delete'](_0x4e76d3['rootName']):this['_touchedRoots']['set'](_0x4e76d3['rootName'],{'userId':_0x1fb0d4,'isAttached':_0x4e76d3['isAdd']});}['_handleRootAttributeOperation'](_0x3aeea2){const _0x37047b=this['_diffRootsAttributes']['get'](_0x3aeea2['root']['rootName']);null===_0x3aeea2['newValue']?delete _0x37047b[_0x3aeea2['key']]:_0x37047b[_0x3aeea2['key']]=_0x3aeea2['newValue'];}}function F(_0x50c3d3){const _0x460ff2=B(_0x50c3d3['rootName'],_0x50c3d3['isAttached']());for(const _0xa97873 of _0x50c3d3['getChildren']()){const _0x142b3f=_0xa97873['_clone'](!0x0);_0x460ff2['_appendChild'](_0x142b3f);}return _0x460ff2;}function B(_0x2ff6db,_0x32acd9=!0x0){const _0x492e70=new mt();return _0x492e70['rootName']=_0x2ff6db,_0x492e70['_isAttached']=_0x32acd9,_0x492e70['isAttached']=()=>_0x492e70['_isAttached'],_0x492e70;}function J(_0x2bbd6d,_0x44447f,_0x47c85d){const _0x1fcafb='elementEnd'==_0x2bbd6d['type']?_0x47c85d['createPositionAt'](_0x2bbd6d['item'],'end'):_0x47c85d['createPositionBefore'](_0x2bbd6d['item']);return _0x47c85d['createPositionFromPath'](_0x44447f,_0x1fcafb['path'],_0x1fcafb['stickiness']);}function q(_0x5e1c98,_0x106e7f,_0x550ef6){const _0x42f226='elementStart'==_0x5e1c98['type']?_0x550ef6['createPositionAt'](_0x5e1c98['item'],0x0):_0x550ef6['createPositionAfter'](_0x5e1c98['item']);return _0x550ef6['createPositionFromPath'](_0x106e7f,_0x42f226['path'],_0x42f226['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x33d731,_0x1ad115){super(_0x33d731),this['focusTracker']=new _0x77040e(),this['keystrokes']=new _0x2dd40d(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x1ad115),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x4e2633(this);}['render'](){super['render'](),_0xfca4bd({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0xac5302=_0x199d56=>_0x199d56['stopPropagation']();this['keystrokes']['set']('arrowright',_0xac5302),this['keystrokes']['set']('arrowleft',_0xac5302),this['keystrokes']['set']('arrowup',_0xac5302),this['keystrokes']['set']('arrowdown',_0xac5302);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x24137){this['revisionNameInputView']['fieldView']['element']['value']=_0x24137['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x7259f0){const _0x30353a=new _0x585659(this['locale'],_0x42bc0a),_0x23e210=_0x30353a['fieldView'];_0x23e210['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x2127dc=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x7259f0&&(_0x2127dc+='\x20('+R(this['locale'],'optional')+')'),(_0x30353a['label']=_0x2127dc,_0x23e210['on']('input',()=>{this['revisionNameInputValue']=_0x23e210['element']['value']['trim']();}),_0x30353a);}}class u extends _0x9c73c6{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x4a67be=this['editor'],_0x19888d=_0x4a67be['plugins']['get']('RevisionTracker');_0x4a67be['ui']['componentFactory']['add']('revisionHistory',_0x1be3bf=>{const _0x308cb2=_0x4832b0(_0x1be3bf),_0x3a3fce=_0x308cb2['panelView']['children'],_0x4982e7=new _0x2f59d0(_0x1be3bf),_0x297471=new _0x4d48d8(_0x1be3bf),_0x106ff5=new te(_0x1be3bf),_0x246220=new _0x4d48d8(_0x1be3bf),_0xebbc6e=new te(_0x1be3bf);return _0x308cb2['bind']('isEnabled')['to'](_0x19888d,'isReady',_0x19888d,'isEnabled',_0x4a67be,'isReadOnly',(_0x425b4d,_0x500423,_0x2985a7)=>_0x425b4d&&_0x500423&&!_0x2985a7),_0x308cb2['buttonView']['set']({'icon':_0x442c2a['history'],'label':R(_0x1be3bf,'Revision\x20history'),'tooltip':!0x0}),_0x106ff5['set']({'label':R(_0x1be3bf,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x106ff5['bind']('isEnabled')['to'](_0x19888d,'isReady',_0x19888d,'isEnabled',_0x4a67be,'isReadOnly',(_0xde7f99,_0x2015c9,_0x49e4ad)=>_0xde7f99&&_0x2015c9&&!_0x49e4ad),_0x106ff5['on']('execute',()=>this['_showDialog']()),_0xebbc6e['set']({'label':R(_0x1be3bf,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0xebbc6e['bind']('isEnabled')['to'](_0x19888d,'isReady',_0x4a67be,'isReadOnly',(_0x2a65dc,_0x59539f)=>_0x2a65dc&&!_0x59539f),_0xebbc6e['on']('execute',()=>{_0x4a67be['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x308cb2['isOpen']=!0x1,_0x4a67be['editing']['view']['focus']();}),_0x297471['children']['add'](_0x106ff5),_0x246220['children']['add'](_0xebbc6e),_0x4982e7['role']='menu',_0x4982e7['items']['addMany']([_0x297471,_0x246220]),_0x3a3fce['add'](_0x4982e7),_0x308cb2;}),_0x4a67be['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0xca5c8f=this['editor'],_0x2c23ae=_0xca5c8f['locale'],_0x66e274=new _0x7e524e(_0x2c23ae),_0x11d548=new _0x1f69ca(_0x2c23ae);_0x66e274['buttonView']['set']({'icon':_0x442c2a['history'],'label':R(_0x2c23ae,'Revision\x20history')});const _0x1c998d=new _0x3f4470(_0x2c23ae,_0x66e274),_0x298116=new _0x2ada9c(_0x2c23ae);_0x298116['set']({'label':R(_0x2c23ae,'Save\x20current\x20revision')}),_0x298116['delegate']('execute')['to'](_0x66e274),_0x298116['on']('execute',()=>{this['_showDialog']();}),_0x1c998d['children']['add'](_0x298116),_0x11d548['items']['add'](_0x1c998d);const _0x135348=new _0x3f4470(_0x2c23ae,_0x66e274),_0x142221=new _0x2ada9c(_0x2c23ae);return _0x142221['set']({'label':R(_0x2c23ae,'Open\x20revision\x20history')}),_0x142221['delegate']('execute')['to'](_0x66e274),_0x142221['on']('execute',()=>{_0xca5c8f['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x135348['children']['add'](_0x142221),_0x11d548['items']['add'](_0x135348),_0x66e274['panelView']['children']['add'](_0x11d548),_0x66e274;}['_showDialog'](){const _0x2c18dd=this['editor'],_0xb620e7=_0x2c18dd['locale'],_0x5320ed=_0x2c18dd['plugins']['get']('Dialog'),_0x4ccca7=_0x2c18dd['plugins']['get']('RevisionTracker');function _0x4f84a0(_0x1807db){_0x2c18dd['config']['get']('revisionHistory.requireRevisionName')&&''===_0x1807db['revisionName']?_0x1807db['revisionNameInputView']['errorText']=R(_0xb620e7,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x2c18dd['plugins']['get'](l)['saveRevision']({'name':_0x1807db['revisionName']}),_0x5320ed['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x4f84a0(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x5320ed['show']({'id':'revisionSave','title':R(_0xb620e7,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x2c18dd['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x5320ed['hide']()},{'label':R(_0x2c18dd['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x1372e2){_0x1372e2['bind']('isEnabled')['to'](_0x4ccca7,'isReady',_0x4ccca7,'isEnabled',_0x2c18dd,'isReadOnly',(_0x9f6432,_0x1df32e,_0x3eef5f)=>_0x9f6432&&_0x1df32e&&!_0x3eef5f);},'onExecute':()=>_0x4f84a0(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x3da30d=this['editor'],_0x5e3d34=_0x3da30d['locale'];this['_saveRevisionFormView']=new hs(_0x5e3d34,_0x3da30d['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Y extends ts{['changeId'];['_model'];constructor(_0x48b711,_0x4702e3){super(_0x48b711),this['_model']=_0x4702e3,this['changeId']=_0x4702e3['id'];const _0x3d2828=this['bindTemplate'],_0x571020=R(_0x48b711,_0x4702e3['data']['isSuggestion']?'Suggested\x20by':'add'==_0x4702e3['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x4702e3['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x3d2828['to']('type',_0x349a93=>'ck-revision-change__'+_0x349a93)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x571020}]},{'text':'\x20'+_0x4702e3['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x112f26(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x756d2d){super(),this['id']=_0x756d2d['id']||_0x1e3a97(),this['author']=_0x756d2d['author'],this['type']=_0x756d2d['type'],this['data']=_0x756d2d['data']||{},this['rootName']=_0x756d2d['rootName'],this['set']('createdAt',_0x756d2d['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(_0x5910aa,_0xc7fd33){this['newRevisionId']=_0x5910aa,this['oldRevisionId']=_0xc7fd33,this['changes']=new _0x50d8e8();}['_setChanges'](_0x6e989e){for(const _0xe56cd9 of _0x6e989e)this['changes']['add'](_0xe56cd9);}}const Z={'c':_0x3316d1,'a':_0x109015,'e':_0x1b15d3,'r':_0x821116,'u':_0x5e82db};class d extends _0x9c73c6{['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[_0x40a0f3,_0x58fdad,j];}constructor(_0x50929c){super(_0x50929c),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',(_0x962a32,_0x381f04,_0x348ae6)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x22a5f3=>{for(const _0x52a98e of this['editor']['editing']['view']['document']['roots'])_0x348ae6?_0x22a5f3['removeClass']('ck-editor__editable__overlay',_0x52a98e):_0x22a5f3['addClass']('ck-editor__editable__overlay',_0x52a98e);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0xd65a44=>null!==_0xd65a44),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x87cc90,_0x5a13b0,_0x1e887d)=>_0x87cc90&&_0x1e887d?_0x5a13b0['changes']['getIndex'](_0x1e887d):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x5ddba8,_0x78939e)=>_0x5ddba8?_0x78939e['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x58fdad);}['init'](){const _0x24d074=this['editor'],_0x573f6b=new yt(_0x24d074,{'direction':'backward'}),_0x495c0c=new yt(_0x24d074,{'direction':'forward'});(_0x24d074['commands']['add']('showPreviousChange',_0x573f6b),_0x24d074['commands']['add']('showNextChange',_0x495c0c),_0x24d074['commands']['add']('restoreRevision',new _t(_0x24d074)),this['on']('change:numberOfChanges',()=>{_0x573f6b['refresh'](),_0x495c0c['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x24d074['enableReadOnlyMode']('revision-viewer'),_0x24d074['plugins']['has']('WidgetToolbarRepository'))&&_0x24d074['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x4650e6){await this['loadRevisionData'](_0x4650e6);const _0x4c4816={};for(const _0x1deb66 in _0x4650e6['diffData']){if(_0x4650e6['diffData'][_0x1deb66]['attachChange']&&!_0x4650e6['diffData'][_0x1deb66]['attachChange']['isAttached'])continue;const _0x44563d=this['_removeRevisionMarkers'](JSON['parse'](_0x4650e6['diffData'][_0x1deb66]['insertions'])),_0x121d62=this['editor']['editing']['view']['document'],_0x42e28e=new _0x474688(_0x121d62,_0x44563d['map'](_0x441262=>this['_getViewObj'](_0x441262)));this['editor']['data']['processor']['useFillerType']('marked'),_0x4c4816[_0x1deb66]=this['editor']['data']['processor']['toData'](_0x42e28e),this['editor']['data']['processor']['useFillerType']('default');}return _0x4c4816;}async['getRevisionRootsAttributes'](_0x399e54){await this['loadRevisionData'](_0x399e54);const _0x24ab4b={};for(const _0x5c84e9 in _0x399e54['diffData'])_0x399e54['diffData'][_0x5c84e9]['attachChange']&&!_0x399e54['diffData'][_0x5c84e9]['attachChange']['isAttached']||(_0x24ab4b[_0x5c84e9]=_0x399e54['diffData'][_0x5c84e9]['attributesAfter']||{});return _0x24ab4b;}['_removeRevisionMarkers'](_0x482aa1){return(_0x482aa1=_0x482aa1['filter'](_0x118b2d=>!_0x118b2d['name']||'revision-start'!==_0x118b2d['name']&&'revision-end'!==_0x118b2d['name']))['forEach'](_0x29a952=>{'string'!=typeof _0x29a952&&(_0x29a952['children']=this['_removeRevisionMarkers'](_0x29a952['children']),_0x29a952['attributes']=_0x29a952['attributes']['filter'](_0x8debe2=>!_0x8debe2[0x0]['startsWith']('data-revision-')));}),_0x482aa1;}async['compare'](_0x13e3f5,_0x51bde1,_0x4af84d=!0x1){if(!this['isEnabled'])return;const _0x2e93bc=this['diff'],_0xc88e9f=this['repository'],_0x27a99a='string'==typeof _0x13e3f5?_0xc88e9f['getRevision'](_0x13e3f5):_0x13e3f5,_0xf9c105='string'==typeof _0x51bde1?_0xc88e9f['getRevision'](_0x51bde1):_0x51bde1,_0x5ae388=_0x27a99a['id'],_0x3bc51f=_0xf9c105?_0xf9c105['id']:null;if(!_0x4af84d&&this['diff']&&this['diff']['newRevisionId']===_0x5ae388&&this['diff']['oldRevisionId']===_0x3bc51f)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x5ae388,_0x3bc51f);const _0x35d0aa=this['_getRevisionsRange'](_0x27a99a,_0xf9c105,!0x0)['map'](_0x55db0c=>this['loadRevisionData'](_0x55db0c));return _0x35d0aa['push'](new Promise(_0x2e8750=>{setTimeout(_0x2e8750,0x14);})),Promise['all'](_0x35d0aa)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x5e5180=this['_getDiff'](_0x5ae388,_0x3bc51f);for(const _0x43599e of _0x5e5180['changes'])this['_changeIdToChange']['set'](_0x43599e['id'],_0x43599e);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x3b4d17=>{for(const _0x421c02 of this['editor']['model']['document']['getRootNames']())_0x3b4d17['detachRoot'](_0x421c02);for(const _0x40f837 of Object['keys'](_0x5e5180['model'])){const _0x90db20=_0x3b4d17['addRoot'](_0x40f837);for(const _0x1cb97e of Object['keys'](_0x5e5180['attributes'][_0x40f837]))_0x3b4d17['setAttribute'](_0x1cb97e,_0x5e5180['attributes'][_0x40f837][_0x1cb97e],_0x90db20);_0x3b4d17['insert'](_0x5e5180['model'][_0x40f837],_0x90db20,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x5e5180['changes'])),this['isReady']=!0x0;})['catch'](_0x57c1c8=>{console['error'](_0x57c1c8),this['_cleanUp'](),_0x2e93bc&&(this['diff']=_0x2e93bc),this['isReady']=!0x0;});}['addRevisionData'](_0x47c0d9,_0x41617f){const _0x1a15f6=this['repository']['createRevision'](_0x47c0d9);return _0x1a15f6['on']('_update',(_0x3dfb2a,_0x202011,_0x48c17a)=>_0x41617f(_0x202011,_0x48c17a,_0x1a15f6)),this['repository']['addRevision'](_0x1a15f6),_0x1a15f6;}['loadRevisionData'](_0x12d0e2){if(!_0x12d0e2||_0x12d0e2['diffData'])return Promise['resolve']();{const _0x3c27ed=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x3c27ed,'revisionId':_0x12d0e2['id']})['then'](_0x30aecc=>{_0x12d0e2['_update']({'diffData':_0x30aecc['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},_0x4a5e4f=>{for(const _0xdcdb13 of this['editor']['model']['document']['getRootNames']())_0x4a5e4f['detachRoot'](_0xdcdb13);});}['_sortAndFilterDiffChanges'](_0x2081c3){const _0x475bf9=[],_0x4edb7f=new Map();for(const _0x1b1329 of this['editor']['model']['document']['getRootNames']()){const _0x64d801=this['editor']['editing']['view']['getDomRoot'](_0x1b1329);if(!_0x64d801)continue;const _0x41ce09=_0x64d801['getClientRects']()['item'](0x0);_0x41ce09&&(_0x475bf9['push'](_0x1b1329),_0x4edb7f['set'](_0x1b1329,_0x41ce09));}return _0x475bf9['sort']((_0x28a51a,_0x32063e)=>{const _0x442185=_0x4edb7f['get'](_0x28a51a),_0x21e696=_0x4edb7f['get'](_0x32063e);return _0x442185['y']-_0x21e696['y']||_0x442185['x']-_0x21e696['x'];}),(_0x2081c3=_0x2081c3['filter'](_0x6ebbd6=>_0x475bf9['includes'](_0x6ebbd6['rootName'])))['sort']((_0x3234ac,_0x3e6b7f)=>_0x475bf9['indexOf'](_0x3234ac['rootName'])-_0x475bf9['indexOf'](_0x3e6b7f['rootName'])),_0x2081c3;}['_makeTape'](_0x598210){const _0xe5e0da=Array['from'](_0x598210['markers'])['filter'](([_0x147d4e,_0x3ec9cd])=>_0x147d4e['startsWith']('revision:')&&!_0x3ec9cd['isCollapsed']),_0x4bed40=Array['from'](this['editor']['model']['createRangeIn'](_0x598210)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0xe5e0da['length'])for(const _0x204c5d of _0x4bed40){const [_0x3bd932,_0x43378e]=_0xe5e0da[0x0],[,_0x11b801,_0x44f1d3]=_0x3bd932['split'](':');if(_0x43378e['end']['isEqual'](_0x204c5d['nextPosition'])&&_0xe5e0da['shift'](),(_0x204c5d['previousPosition']['isEqual'](_0x43378e['start'])||_0x204c5d['previousPosition']['isAfter'](_0x43378e['start']))&&('insertion'==_0x11b801?_0x204c5d['isAdded']={'userId':_0x44f1d3}:'deletion'==_0x11b801&&(_0x204c5d['isRemoved']={'userId':_0x44f1d3})),0x0==_0xe5e0da['length'])break;}return _0x4bed40;}['_refreshStartEndIndex'](_0x49b375){const _0xf7a4bd=new Map();for(let _0x4762a7=0x0;_0x4762a7<_0x49b375['length'];_0x4762a7++)'text'===_0x49b375[_0x4762a7]['type']?(_0x49b375[_0x4762a7]['item']['startIndex']=_0x4762a7,_0x49b375[_0x4762a7]['item']['endIndex']=_0x4762a7):('elementStart'===_0x49b375[_0x4762a7]['type']?_0x49b375[_0x4762a7]['item']['startIndex']=_0x4762a7:'elementEnd'===_0x49b375[_0x4762a7]['type']&&(_0x49b375[_0x4762a7]['item']['endIndex']=_0x4762a7),_0xf7a4bd['set'](_0x49b375[_0x4762a7]['id'],_0x4762a7));for(const _0x4531e of _0xf7a4bd['values']())'elementStart'===_0x49b375[_0x4531e]['type']?_0x49b375[_0x4531e]['item']['endIndex']=_0xf7a4bd['get'](_0x49b375[_0x4531e]['pairId']):'elementEnd'===_0x49b375[_0x4531e]['type']&&(_0x49b375[_0x4531e]['item']['startIndex']=_0xf7a4bd['get'](_0x49b375[_0x4531e]['pairId']));}['_processTape'](_0x74f784){for(let _0x5bfbee=0x0;_0x5bfbee<_0x74f784['length'];_0x5bfbee++){if('elementStart'===_0x74f784[_0x5bfbee]['type'])_0x74f784[_0x5bfbee]['item']['startIndex']=_0x5bfbee;else{if('elementEnd'===_0x74f784[_0x5bfbee]['type']){_0x74f784[_0x5bfbee]['item']['endIndex']=_0x5bfbee;const _0x55199e=_0x74f784[_0x5bfbee]['item']['startIndex'];_0x74f784[_0x55199e]['pairId']=_0x74f784[_0x5bfbee]['id'],_0x74f784[_0x5bfbee]['pairId']=_0x74f784[_0x55199e]['id'];}else _0x74f784[_0x5bfbee]['item']['startIndex']=_0x5bfbee,_0x74f784[_0x5bfbee]['item']['endIndex']=_0x5bfbee,_0x74f784[_0x5bfbee]['pairId']=null;}_0x74f784[_0x5bfbee]['markersStart']||(_0x74f784[_0x5bfbee]['markersStart']=[],_0x74f784[_0x5bfbee]['markersEnd']=[]);}}['_markInsertions'](_0x33cffb,_0x19dc47){const _0x274f0c=_0x33cffb['filter'](_0x1b7f00=>!_0x1b7f00['isAdded']);for(let _0x458675=0x0;_0x458675<_0x19dc47['length'];_0x458675++)_0x19dc47[_0x458675]['isAdded']&&(_0x274f0c[_0x458675]['isAdded']=_0x19dc47[_0x458675]['isAdded']);}['_makeModelFromViewString'](_0x2f93d8){const _0x2a789d=JSON['parse'](_0x2f93d8),_0x33b3c5=this['editor']['editing']['view']['document'],_0x8367d=new _0x474688(_0x33b3c5,_0x2a789d['map'](_0x32487f=>this['_getViewObj'](_0x32487f)));return this['editor']['data']['toModel'](_0x8367d);}['_getViewObj'](_0xf4bc7){const _0x165570=this['editor']['editing']['view']['document'];if('string'==typeof _0xf4bc7)return new _0x146933(_0x165570,_0xf4bc7);{const _0x1270e1=_0xf4bc7['children']['map'](_0x38d4df=>this['_getViewObj'](_0x38d4df));return new(Z[_0xf4bc7['type']]||_0x1a6832)(_0x165570,_0xf4bc7['name'],_0xf4bc7['attributes'],_0x1270e1);}}['_getDiff'](_0x281142,_0xbd4e5c=null){const _0xdf8034=this['repository']['getRevision'](_0x281142),_0x461b94=_0xbd4e5c?this['repository']['getRevision'](_0xbd4e5c):null,_0x1b0e93=this['_getRevisionsRange'](_0xdf8034,_0x461b94),_0x35496f=_0x1b0e93[_0x1b0e93['length']-0x1],_0x2978c3=new Map(),_0x50d28f={'model':{},'attributes':{},'changes':[]},_0x14a564=new Set(),_0x25509d=new Map();for(let _0x3bc3e3=_0x1b0e93['length']-0x1;_0x3bc3e3>=0x0;_0x3bc3e3--){const _0x13f982=_0x1b0e93[_0x3bc3e3];for(const _0x1d2d7f of Object['keys'](_0x13f982['diffData']))if(_0x13f982['diffData'][_0x1d2d7f]['attachChange']){const _0x309c34=_0x13f982['diffData'][_0x1d2d7f]['attachChange'];_0x309c34['isAttached']?(_0x14a564['add'](_0x1d2d7f),_0x25509d['has'](_0x1d2d7f)&&_0x25509d['get'](_0x1d2d7f)['userId']==_0x309c34['userId']?_0x25509d['delete'](_0x1d2d7f):_0x25509d['set'](_0x1d2d7f,_0x309c34)):_0x25509d['has'](_0x1d2d7f)?(_0x14a564['delete'](_0x1d2d7f),_0x25509d['delete'](_0x1d2d7f)):(_0x14a564['add'](_0x1d2d7f),_0x25509d['set'](_0x1d2d7f,_0x309c34));}else _0x14a564['add'](_0x1d2d7f);}for(const _0x5b373b of _0x14a564){const _0xb3a487=_0x25509d['has'](_0x5b373b)&&!_0x25509d['get'](_0x5b373b)['isAttached'];let _0x19cb58=_0xb3a487?_0x1b0e93['length']-0x1:0x0;const _0x14f311=_0xb3a487?-0x1:0x1;for(;_0x1b0e93[_0x19cb58];){const _0xce4605=_0x1b0e93[_0x19cb58];if(_0xce4605['diffData'][_0x5b373b]){const _0x5758f3=_0xb3a487?_0xce4605['diffData'][_0x5b373b]['attributesBefore']:_0xce4605['diffData'][_0x5b373b]['attributesAfter'];_0x50d28f['attributes'][_0x5b373b]=_0x5758f3?_0x59dc59(_0x5758f3):{};break;}_0x19cb58+=_0x14f311;}}for(const _0x284620 of _0x1b0e93){_0x284620['model']={};for(const _0x25535d of _0x284620['authors'])_0x2978c3['set'](_0x25535d['id'],_0x25535d);for(const _0x3cd97e of _0x14a564){const _0x296ea6=_0x284620['diffData'][_0x3cd97e]?_0x284620['diffData'][_0x3cd97e]['insertions']:'[]',_0x3a541f=_0x284620['diffData'][_0x3cd97e]?_0x284620['diffData'][_0x3cd97e]['deletions']:'[]';_0x284620['model'][_0x3cd97e]={'insertions':this['_makeModelFromViewString'](_0x296ea6),'deletions':this['_makeModelFromViewString'](_0x3a541f)};}}for(const _0x181316 of _0x14a564){let _0x1a03e0=null,_0x3ab2c1=0x0;const _0x38c623=new Map(Array['from'](_0xdf8034['model'][_0x181316]['insertions']['markers'])['filter'](([_0x32e1b5])=>!_0x32e1b5['startsWith']('revision:')));let _0x3e5cf7=0x0;for(const _0x102d48 of _0x1b0e93){const _0x2b7983=this['_makeTape'](_0x102d48['model'][_0x181316]['insertions']);_0x102d48==_0xdf8034?(_0x1a03e0=_0x2b7983,_0x3ab2c1=_0x1a03e0['length'],_0x1a03e0['forEach'](_0x2bec56=>{_0x2bec56['id']=_0x3e5cf7++;}),this['_processTape'](_0x1a03e0)):this['_markInsertions'](_0x1a03e0,_0x2b7983);const _0x9594ef=_0x1a03e0['filter'](_0x2eb9e5=>!_0x2eb9e5['isAdded'])['map'](_0x413a2e=>_0x413a2e['id']);let _0xf6ee19=0x0;const _0x592a73=this['_makeTape'](_0x102d48['model'][_0x181316]['deletions']);_0x592a73['forEach'](_0x16e65a=>{_0x16e65a['isRemoved']?_0x16e65a['id']=_0x3ab2c1++:_0x16e65a['id']=_0x9594ef[_0xf6ee19++];}),this['_processTape'](_0x592a73),this['_setDistance'](_0x1a03e0,'isAdded'),this['_setDistance'](_0x592a73,'isRemoved'),_0x102d48==_0xdf8034&&this['_markMarkers'](_0x1a03e0,_0x38c623),_0x1a03e0=this['_joinTapes'](_0x1a03e0,_0x592a73),this['_refreshStartEndIndex'](_0x1a03e0),this['_setDistance'](_0x1a03e0,'isRemoved');}_0x1a03e0=_0x1a03e0['filter'](_0x1e88fe=>!(_0x1e88fe['isAdded']&&_0x1e88fe['isRemoved']));const _0x368dfb=new Map(_0x35496f['model'][_0x181316]['deletions']['markers']),_0x31e065=new Set(_0x38c623['keys']());for(const _0x4cf873 of _0x368dfb['keys']())_0x31e065['delete'](_0x4cf873);this['_markSuggestions'](_0x1a03e0,_0x31e065),this['_fixObsoleteTags'](_0x1a03e0),_0x1a03e0=this['_removeMissingPairs'](_0x1a03e0),_0x1a03e0=this['_markMismatchedRemovedTags'](_0x1a03e0),_0x1a03e0=this['_removeUnsupportedChanges'](_0x1a03e0);const {root:_0x1f70cf,changes:_0x4581ba}=this['_makeModelFromTape'](_0x1a03e0,_0x2978c3,_0x181316);_0x50d28f['model'][_0x181316]=_0x1f70cf;const _0x2fd8f0=_0x25509d['get'](_0x181316);if(_0x2fd8f0){const _0x502b77=_0x2978c3['get'](_0x2fd8f0['userId']),_0x4e6592=new r({'author':_0x502b77,'type':_0x2fd8f0['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x181316});_0x4581ba['unshift'](_0x4e6592),_0x50d28f['attributes'][_0x181316]['revisionHistoryAttachChange']=_0x4e6592['id'];}_0x50d28f['changes']=_0x50d28f['changes']['concat'](_0x4581ba);}return _0x50d28f;}['_markMarkers'](_0x950db5,_0x2355f4){for(let _0x37ae73=0x0;_0x37ae73<_0x950db5['length'];_0x37ae73++)for(const [_0x1ff687,_0x32c47c]of _0x2355f4)_0x32c47c['start']['isEqual'](_0x950db5[_0x37ae73]['previousPosition'])&&_0x950db5[_0x37ae73]['markersStart']['push'](_0x1ff687),_0x32c47c['end']['isEqual'](_0x950db5[_0x37ae73]['nextPosition'])&&_0x950db5[_0x37ae73]['markersEnd']['push'](_0x1ff687);}['_joinTapes'](_0x39f783,_0x23a316){let _0x1ad0c4=[],_0x307c6f=0x0,_0xddad0=0x0;for(;_0x307c6f<_0x39f783['length']||_0xddad0<_0x23a316['length'];){const _0x2742f5=_0x39f783[_0x307c6f]||{},_0xb60dad=_0x23a316[_0xddad0]||{};if(_0x2742f5['id']==_0xb60dad['id'])_0x307c6f++,_0xddad0++,_0x1ad0c4['push'](_0x2742f5);else{if(_0xb60dad['isRemoved']&&_0x2742f5['isAdded']){const {commonTape:_0x369f48,iEnd:_0x2871a2,jEnd:_0x12ac05}=this['_threeWayMerge'](_0x39f783,_0x307c6f,_0x23a316,_0xddad0);_0x1ad0c4=_0x1ad0c4['concat'](_0x369f48),_0x307c6f=_0x2871a2,_0xddad0=_0x12ac05;}else _0xb60dad['isRemoved']?(_0xddad0++,_0x1ad0c4['push'](_0xb60dad)):(_0x307c6f++,_0x1ad0c4['push'](_0x2742f5));}}return _0x1ad0c4;}['_markSuggestions'](_0x21a4ca,_0x303df4){const _0x1cecf4=[];for(let _0x27fafd=0x0;_0x27fafd<_0x21a4ca['length'];_0x27fafd++){for(let _0x58e5c9=0x0;_0x58e5c9<_0x21a4ca[_0x27fafd]['markersStart']['length'];_0x58e5c9++){const _0x4ae541=_0x21a4ca[_0x27fafd]['markersStart'][_0x58e5c9];if(!_0x303df4['has'](_0x4ae541))continue;const {group:_0xb084e5,type:_0x312669,authorId:_0x2100ca}=_0x55c061(_0x4ae541);'revision-suggestion'!=_0xb084e5||'insertion'!=_0x312669&&'deletion'!=_0x312669||(_0x1cecf4['unshift']({'type':_0x312669,'name':_0x4ae541,'userId':_0x2100ca}),_0x21a4ca[_0x27fafd]['markersStart']['splice'](_0x58e5c9,0x1),_0x58e5c9--);}_0x56e2a7(_0x21a4ca[_0x27fafd]);for(let _0x3ff273=0x0;_0x3ff273<_0x21a4ca[_0x27fafd]['markersEnd']['length'];_0x3ff273++){const _0x5cff0b=_0x21a4ca[_0x27fafd]['markersEnd'][_0x3ff273];if(!_0x303df4['has'](_0x5cff0b))continue;const {group:_0x212891,type:_0x542b26}=_0x55c061(_0x5cff0b);if('revision-suggestion'!=_0x212891||'insertion'!=_0x542b26&&'deletion'!=_0x542b26)continue;_0x21a4ca[_0x27fafd]['markersEnd']['splice'](_0x3ff273,0x1),_0x3ff273--;const _0x1ac7af=_0x1cecf4['findIndex'](_0x36d4aa=>_0x36d4aa['name']==_0x5cff0b);_0x1ac7af>-0x1&&_0x1cecf4['splice'](_0x1ac7af,0x1);}}function _0x55c061(_0x32ac90){const _0x59c17a=_0x32ac90['split'](':');return{'group':_0x59c17a[0x0],'type':_0x59c17a[0x1],'subType':_0x59c17a['length']>=0x5?_0x59c17a[0x2]:null,'id':_0x59c17a['length']<0x5?_0x59c17a[0x2]:_0x59c17a[0x3],'authorId':_0x59c17a['length']<0x5?_0x59c17a[0x3]:_0x59c17a[0x4],'markerCount':0x6==_0x59c17a['length']?_0x59c17a[0x5]:null};}function _0x56e2a7(_0x2b1e79){for(let _0x5a6567=0x0;_0x5a6567<_0x1cecf4['length'];_0x5a6567++){if(_0x2b1e79['isAdded']&&'insertion'==_0x1cecf4[_0x5a6567]['type'])return _0x2b1e79['isAddSuggestion']=_0x1cecf4[_0x5a6567],void delete _0x2b1e79['isAdded'];if(!_0x2b1e79['isAdded']&&!_0x2b1e79['isRemoved']&&'deletion'==_0x1cecf4[_0x5a6567]['type'])return void(_0x2b1e79['isRemoveSuggestion']=_0x1cecf4[_0x5a6567]);}}}['_setDistance'](_0x35b684,_0x507980){let _0x59f324=0x0,_0x1c18d8=!0x1;const _0x12bbc9=new Map();for(const _0x1dfb1a of _0x35b684)_0x1dfb1a[_0x507980]?_0x1c18d8&&(_0x59f324++,_0x1c18d8=!0x1):(_0x59f324++,_0x1c18d8=!0x0),_0x12bbc9['set'](_0x1dfb1a['id'],_0x59f324);for(let _0x3befbf=0x0;_0x3befbf<_0x35b684['length'];_0x3befbf++){if('isRemoved'==_0x507980&&_0x35b684[_0x3befbf]['isAdded']||'isAdded'==_0x507980&&_0x35b684[_0x3befbf]['isRemoved'])continue;if('text'==_0x35b684[_0x3befbf]['type']){_0x35b684[_0x3befbf]['distance']=0x0;continue;}const _0x236618=_0x12bbc9['get'](_0x35b684[_0x3befbf]['pairId']),_0x5929a1=_0x12bbc9['get'](_0x35b684[_0x3befbf]['id']);_0x35b684[_0x3befbf]['distance']=_0x236618-_0x5929a1;}}['_getRevisionsRange'](_0x283988,_0x2cf433,_0x4f7dfa=!0x1){const _0x1c1c7f=[];let _0x44cdfc=this['repository']['getIndex'](_0x283988),_0x4f5769=this['repository']['getIndex'](_0x2cf433);for(-0x1==_0x4f5769&&(_0x4f5769=this['repository']['_revisions']['length'],_0x4f7dfa=!0x1);_0x44cdfc<_0x4f5769;)_0x1c1c7f['push'](this['repository']['getRevision'](_0x44cdfc)),_0x44cdfc++;return _0x4f7dfa&&_0x1c1c7f['push'](this['repository']['getRevision'](_0x44cdfc)),_0x1c1c7f;}['_threeWayMerge'](_0x4cd190,_0x385630,_0x267aad,_0x40526d){const _0x172844=this['editor']['model']['schema'];let _0x2fc8c0=_0x385630;for(;_0x4cd190[_0x2fc8c0]&&_0x4cd190[_0x2fc8c0]['isAdded'];)_0x2fc8c0++;let _0xc44ed8=_0x40526d;for(;_0x267aad[_0xc44ed8]&&_0x267aad[_0xc44ed8]['isRemoved'];)_0xc44ed8++;_0x378cbf(_0x4cd190,_0x385630,_0x2fc8c0),_0x378cbf(_0x267aad,_0x40526d,_0xc44ed8);const _0x2acff6=_0x267aad['slice'](_0x40526d,_0xc44ed8)['concat'](_0x4cd190['slice'](_0x385630,_0x2fc8c0));return _0x2acff6['sort']((_0x4d36fe,_0x132be0)=>_0x4d36fe['side']!=_0x132be0['side']?_0x4d36fe['side']-_0x132be0['side']:_0x4d36fe['level']!=_0x132be0['level']?_0x4d36fe['level']-_0x132be0['level']:_0x4d36fe['distance']!=_0x132be0['distance']?_0x132be0['distance']-_0x4d36fe['distance']:!!_0x4d36fe['isAdded']!=!!_0x132be0['isAdded']?-0x1==_0x4d36fe['side']||0x0==_0x4d36fe['side']?_0x4d36fe['isAdded']?-0x1:0x1:_0x4d36fe['isAdded']?0x1:-0x1:_0x4d36fe['index']-_0x132be0['index']),{'commonTape':_0x2acff6,'iEnd':_0x2fc8c0,'jEnd':_0xc44ed8};function _0x378cbf(_0xddeb89,_0xfb609c,_0x39acd6){let _0x29919e=-0x1,_0x4788da=Number['POSITIVE_INFINITY'],_0x9bd81f=!0x0;for(let _0xe5e3a=_0xfb609c;_0xe5e3a<_0x39acd6;_0xe5e3a++)if(_0x172844['isInline'](_0xddeb89[_0xe5e3a]['item'])||(_0x9bd81f=!0x1),_0xddeb89[_0xe5e3a]['item']['startIndex']<_0xfb609c&&(_0x29919e=_0xe5e3a),_0xddeb89[_0xe5e3a]['item']['endIndex']>=_0x39acd6){_0x4788da=_0xe5e3a;break;}_0x9bd81f&&(_0x29919e=_0x39acd6-0x1);for(let _0x40b02e=_0xfb609c;_0x40b02e<_0x39acd6;_0x40b02e++)_0xddeb89[_0x40b02e]['side']=_0x40b02e<=_0x29919e?-0x1:_0x40b02e<_0x4788da?0x0:0x1,_0xddeb89[_0x40b02e]['index']=_0x40b02e;let _0x5194d1=0x0;for(let _0x4c1997=_0xfb609c;_0x4c1997<=_0x29919e;_0x4c1997++)0x0==_0xddeb89[_0x4c1997]['distance']?_0xddeb89[_0x4c1997]['level']=_0x5194d1:(_0x5194d1++,_0xddeb89[_0x4c1997]['level']=_0x5194d1,_0x5194d1++);for(let _0x5f3c76=_0xfb609c;_0x5f3c76<_0x39acd6;_0x5f3c76++)0x0==_0xddeb89[_0x5f3c76]['side']&&(_0xddeb89[_0x5f3c76]['level']=_0x5194d1);_0x5194d1=0x0;for(let _0xc90129=_0x39acd6-0x1;_0xc90129>=_0x4788da;_0xc90129--)0x0==_0xddeb89[_0xc90129]['distance']?_0xddeb89[_0xc90129]['level']=_0x5194d1:(_0x5194d1--,_0xddeb89[_0xc90129]['level']=_0x5194d1,_0x5194d1--);}}['_fixObsoleteTags'](_0x5771fc){const _0x33568c=new Map(),_0x37f050=this['editor']['model']['schema'];for(let _0x5bf58d=0x1;_0x5bf58d<_0x5771fc['length'];_0x5bf58d++){let _0x4b4ece,_0x65ddf9,_0x982011;const _0x2e6429=_0x5771fc[_0x5bf58d],_0x4084d2=_0x5771fc[_0x5bf58d-0x1];if('text'==_0x2e6429['type'])continue;if(_0x2e6429['type']!=_0x4084d2['type'])continue;if(!_0x37f050['isBlock'](_0x4084d2['item'])||_0x37f050['isLimit'](_0x4084d2['item']))continue;if(!_0x37f050['isBlock'](_0x2e6429['item'])||_0x37f050['isLimit'](_0x2e6429['item']))continue;if((_0x5771fc[_0x5bf58d]['isAdded']||_0x5771fc[_0x5bf58d]['isAddSuggestion'])&&_0x5771fc[_0x5bf58d-0x1]['isRemoved'])_0x4b4ece=_0x5771fc[_0x5bf58d],_0x65ddf9=_0x5771fc[_0x5bf58d-0x1],_0x982011=_0x5bf58d-0x1;else{if(!_0x5771fc[_0x5bf58d]['isRemoved']||!_0x5771fc[_0x5bf58d-0x1]['isAdded']&&!_0x5771fc[_0x5bf58d-0x1]['isAddSuggestion'])continue;_0x4b4ece=_0x5771fc[_0x5bf58d-0x1],_0x65ddf9=_0x5771fc[_0x5bf58d],_0x982011=_0x5bf58d;}const _0x1ddbd0=_0x4b4ece['level']==_0x65ddf9['level'],_0x2fac56=Math['abs'](_0x4b4ece['level'])<Math['abs'](_0x65ddf9['level'])&&0x0==_0x65ddf9['distance'];(_0x1ddbd0||_0x2fac56)&&(_0x33568c['set'](_0x65ddf9['id'],_0x4b4ece['id']),_0x5771fc['splice'](_0x982011,0x1),_0x5bf58d--,_0x4b4ece['isAdded']=!0x1);}for(let _0x2ebe93=0x0;_0x2ebe93<_0x5771fc['length'];_0x2ebe93++)_0x33568c['has'](_0x5771fc[_0x2ebe93]['pairId'])&&(_0x5771fc[_0x2ebe93]['pairId']=_0x33568c['get'](_0x5771fc[_0x2ebe93]['pairId']));}['_removeMissingPairs'](_0x138f93){const _0x4bd84e=new Set(_0x138f93['map'](_0x7547fe=>_0x7547fe['id']));for(let _0x29b833=0x0;_0x29b833<_0x138f93['length'];_0x29b833++)_0x4bd84e['has'](_0x138f93[_0x29b833]['pairId'])||0x0==_0x138f93[_0x29b833]['distance']||(_0x138f93[_0x29b833]['isIncorrect']=!0x0);return _0x138f93['filter'](_0x31c472=>!_0x31c472['isIncorrect']);}['_markMismatchedRemovedTags'](_0x14b84b){const _0x3e6c75=new Set();for(let _0x1af804=0x0;_0x1af804<_0x14b84b['length'];_0x1af804++){if(_0x3e6c75['has'](_0x14b84b[_0x1af804]['id'])&&_0x14b84b[_0x1af804]['isRemoved']&&(_0x14b84b[_0x1af804]['isIncorrect']=!0x0),_0x14b84b[_0x1af804]['isIncorrect'])continue;if(0x0==_0x14b84b[_0x1af804]['distance'])continue;if('elementStart'!=_0x14b84b[_0x1af804]['type'])continue;if(null==_0x14b84b[_0x1af804]['pairId'])continue;let _0x2fcd0e=_0x1af804+0x1,_0x32bde2=0x0;for(;_0x14b84b[_0x2fcd0e]['id']!=_0x14b84b[_0x1af804]['pairId'];)'elementStart'==_0x14b84b[_0x2fcd0e]['type']?_0x32bde2++:'elementEnd'==_0x14b84b[_0x2fcd0e]['type']&&_0x32bde2--,_0x2fcd0e++;if(0x0!=_0x32bde2){if(_0x14b84b[_0x1af804]['isRemoved'])_0x14b84b[_0x1af804]['isIncorrect']=!0x0;else{for(;_0x2fcd0e!=_0x1af804;)_0x14b84b[_0x2fcd0e]['isRemoved']&&0x0!=_0x14b84b[_0x2fcd0e]['distance']&&(_0x14b84b[_0x2fcd0e]['isIncorrect']=!0x0,_0x3e6c75['add'](_0x14b84b[_0x2fcd0e]['pairId'])),_0x2fcd0e--;}}}return _0x14b84b['filter'](_0x5cf825=>!_0x5cf825['isIncorrect']);}['_removeUnsupportedChanges'](_0x405c44){const _0xd37149=this['editor']['model']['schema'];for(let _0x175ea8=0x0;_0x175ea8<_0x405c44['length'];_0x175ea8++){if(!(_0x405c44[_0x175ea8]['isAdded']||_0x405c44[_0x175ea8]['isAddSuggestion']||_0x405c44[_0x175ea8]['isRemoved']||_0x405c44[_0x175ea8]['isRemoveSuggestion']))continue;if(0x0==_0x405c44[_0x175ea8]['distance'])continue;const _0x4a8a37=_0x405c44[_0x175ea8]['item'];_0xd37149['isBlock'](_0x4a8a37)||_0xd37149['isLimit'](_0x4a8a37)||(_0x405c44[_0x175ea8]['isAdded']&&delete _0x405c44[_0x175ea8]['isAdded'],_0x405c44[_0x175ea8]['isAddSuggestion']&&delete _0x405c44[_0x175ea8]['isAddSuggestion'],_0x405c44[_0x175ea8]['isRemoveSuggestion']&&delete _0x405c44[_0x175ea8]['isRemoveSuggestion'],_0x405c44[_0x175ea8]['isRemoved']&&(_0x405c44[_0x175ea8]['isIncorrect']=!0x0));}return _0x405c44['filter'](_0x14e6f5=>!_0x14e6f5['isIncorrect']);}['_makeModelFromTape'](_0x550e1d,_0x3b747b,_0x3e9b43){const _0x3936aa=new mt(),_0x14bc43=[],_0x303cbe=new Map(),_0x192e72=this['editor']['model'],_0x146d6d=_0x192e72['schema'],_0x7914fb=[_0x3936aa],_0x4d1c1f={},_0x33cc6f={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x4dd9b9=null;const _0x20ca56=[0x0];for(let _0x4b7caf=0x0;_0x4b7caf<_0x550e1d['length'];_0x4b7caf++)if('elementStart'===_0x550e1d[_0x4b7caf]['type']){_0x550e1d[_0x4b7caf]['previousPosition']=_0x192e72['createPositionFromPath'](_0x3936aa,_0x20ca56);const _0x5cea60=new ft(_0x550e1d[_0x4b7caf]['item']['name'],_0x550e1d[_0x4b7caf]['item']['getAttributes']());_0x7914fb[0x0]['_appendChild'](_0x5cea60),_0x20ca56['push'](0x0),_0x7914fb['unshift'](_0x5cea60),_0x550e1d[_0x4b7caf]['nextPosition']=_0x192e72['createPositionFromPath'](_0x3936aa,_0x20ca56);}else'elementEnd'===_0x550e1d[_0x4b7caf]['type']?(_0x7914fb['shift'](),_0x550e1d[_0x4b7caf]['previousPosition']=_0x192e72['createPositionFromPath'](_0x3936aa,_0x20ca56),_0x20ca56['pop'](),_0x20ca56[_0x20ca56['length']-0x1]++,_0x550e1d[_0x4b7caf]['nextPosition']=_0x192e72['createPositionFromPath'](_0x3936aa,_0x20ca56)):(_0x550e1d[_0x4b7caf]['previousPosition']=_0x192e72['createPositionFromPath'](_0x3936aa,_0x20ca56),_0x4dd9b9?_0x4dd9b9['_data']+=_0x550e1d[_0x4b7caf]['item']['data']:_0x4dd9b9=new wt(_0x550e1d[_0x4b7caf]['item']['data'],_0x550e1d[_0x4b7caf]['item']['getAttributes']()),_0x550e1d[_0x4b7caf+0x1]&&'text'===_0x550e1d[_0x4b7caf+0x1]['type']&&_0x7b432a(_0x4dd9b9,_0x550e1d[_0x4b7caf+0x1]['item'])||(_0x7914fb[0x0]['_appendChild'](_0x4dd9b9),_0x4dd9b9=null),_0x20ca56[_0x20ca56['length']-0x1]+=_0x550e1d[_0x4b7caf]['item']['offsetSize'],_0x550e1d[_0x4b7caf]['nextPosition']=_0x192e72['createPositionFromPath'](_0x3936aa,_0x20ca56));for(let _0x9ac6d0=0x0;_0x9ac6d0<_0x550e1d['length'];_0x9ac6d0++){const _0x11415b=_0x550e1d[_0x9ac6d0]['previousPosition'],_0xf7e7a2=_0x550e1d[_0x9ac6d0]['nextPosition'];for(const _0x65b0ed of _0x550e1d[_0x9ac6d0]['markersStart'])_0x303cbe['set'](_0x65b0ed,{'start':_0x11415b,'end':null});_0x3fbda4('isRemoveSuggestion',_0x9ac6d0,_0x11415b,_0xf7e7a2),_0x3fbda4('isAddSuggestion',_0x9ac6d0,_0x11415b,_0xf7e7a2),_0x3fbda4('isRemoved',_0x9ac6d0,_0x11415b,_0xf7e7a2),_0x3fbda4('isAdded',_0x9ac6d0,_0x11415b,_0xf7e7a2);for(const _0x4d01e0 of _0x550e1d[_0x9ac6d0]['markersEnd']){_0x303cbe['get'](_0x4d01e0)['end']=_0xf7e7a2;}}for(const [_0x77b4c7,_0x39b46a]of _0x303cbe){const _0xa94f29=this['editor']['model']['createRange'](_0x39b46a['start'],_0x39b46a['end']);_0x3936aa['markers']['set'](_0x77b4c7,_0xa94f29);}return _0x14bc43['sort']((_0xa612c7,_0x607b07)=>{const _0x252e6d=_0x3936aa['markers']['get']('revision:'+_0xa612c7['id']),_0x20bcee=_0x3936aa['markers']['get']('revision:'+_0x607b07['id']);return _0x252e6d['start']['isBefore'](_0x20bcee['start'])?-0x1:_0x252e6d['start']['isAfter'](_0x20bcee['start'])?0x1:_0x252e6d['end']['isBefore'](_0x20bcee['end'])?-0x1:_0x252e6d['end']['isAfter'](_0x20bcee['end'])?0x1:'add'===_0xa612c7['type']?-0x1:0x1;}),{'root':_0x3936aa,'changes':_0x14bc43};function _0x3fbda4(_0xef0283,_0x2d150a,_0x255e42,_0x403f03){const _0x52482c=!!_0x550e1d[_0x2d150a][_0xef0283],_0x293109=_0x52482c?_0x550e1d[_0x2d150a][_0xef0283]['userId']:null,_0x1b6622=_0x2d150a===_0x550e1d['length']-0x1,_0x35dbd4=_0x33cc6f[_0xef0283][0x0],_0x3d93c3=_0x146d6d['isObject'](_0x550e1d[_0x2d150a]['item']);!_0x4d1c1f[_0xef0283]&&_0x52482c?_0x4d1c1f[_0xef0283]={'start':_0x255e42,'tapeItem':_0x550e1d[_0x2d150a],'userId':_0x293109,'type':_0xef0283}:_0x4d1c1f[_0xef0283]&&!_0x52482c?(_0x4d1c1f[_0xef0283]['end']=_0x255e42,_0x5621ec(_0x4d1c1f[_0xef0283]),_0x4d1c1f[_0xef0283]=null):_0x4d1c1f[_0xef0283]&&_0x52482c&&_0x4d1c1f[_0xef0283]['userId']!==_0x293109&&(_0x4d1c1f[_0xef0283]['end']=_0x255e42,_0x35dbd4&&_0x35dbd4['userId']===_0x4d1c1f[_0xef0283]['userId']||_0x5621ec(_0x4d1c1f[_0xef0283]),_0x4d1c1f[_0xef0283]={'start':_0x255e42,'tapeItem':_0x550e1d[_0x2d150a],'userId':_0x293109,'type':_0xef0283}),_0x4d1c1f[_0xef0283]&&_0x3d93c3&&('elementStart'!==_0x550e1d[_0x2d150a]['type']||_0x35dbd4&&_0x35dbd4['userId']===_0x293109||_0x33cc6f[_0xef0283]['unshift']({'userId':_0x293109,'object':_0x550e1d[_0x2d150a]['item'],'change':_0x4d1c1f[_0xef0283]}),'elementEnd'===_0x550e1d[_0x2d150a]['type']&&_0x35dbd4&&_0x35dbd4['object']===_0x550e1d[_0x2d150a]['item']&&(_0x33cc6f[_0xef0283]['shift'](),_0x4d1c1f[_0xef0283]=_0x35dbd4['change'])),_0x4d1c1f[_0xef0283]&&_0x1b6622&&(_0x4d1c1f[_0xef0283]['end']=_0x403f03,_0x5621ec(_0x4d1c1f[_0xef0283]),_0x4d1c1f[_0xef0283]=null);}function _0x5621ec({start:_0x15c40b,end:_0x3b3cb2,tapeItem:_0x1ee160,userId:_0x36f0d2,type:_0x3f74ff}){const _0x74116=_0x1ee160['item'],_0x5971e8=_0x192e72['schema']['isBlock'](_0x74116)&&!_0x192e72['schema']['isLimit'](_0x74116),_0x43355b=_0x15c40b['nodeAfter']==_0x3b3cb2['parent']&&_0x3b3cb2['isAtStart'];if(_0x5971e8&&_0x43355b)return;const _0x104dfd=_0x192e72['createRange'](_0x15c40b,_0x3b3cb2),_0x36fc49=_0x3b747b['get'](_0x36f0d2),_0x2e3f5c=new r({'author':_0x36fc49,'type':'isAdded'==_0x3f74ff||'isAddSuggestion'==_0x3f74ff?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x3f74ff||'isRemoveSuggestion'==_0x3f74ff},'createdAt':new Date(),'rootName':_0x3e9b43});_0x14bc43['push'](_0x2e3f5c),_0x3936aa['markers']['set']('revision:'+_0x2e3f5c['id'],_0x104dfd);}function _0x7b432a(_0x5cd131,_0xa006c0){const _0x456c42=_0x5cd131['getAttributes'](),_0x4dc50a=_0xa006c0['getAttributes']();for(const _0x37cf03 of _0x456c42){if(_0x37cf03[0x1]!==_0xa006c0['getAttribute'](_0x37cf03[0x0]))return!0x1;_0x4dc50a['next']();}return _0x4dc50a['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x5757e2=>{const _0x5691b7=_0x5757e2['markerName']['split'](':')[0x1],_0x41e94b=this['_getChangeFromId'](_0x5691b7);if(!_0x41e94b)return null;const _0x2459a9='add'==_0x41e94b['type']?'insertion':'deletion',_0x125a85=['ck-suggestion-marker','ck-suggestion-marker-'+_0x2459a9];return _0x41e94b['data']['isSuggestion']&&_0x125a85['push']('ck-suggestion-marker-'+_0x2459a9+'-new'),this['activeChange']==_0x41e94b&&_0x125a85['push']('ck-suggestion-marker--active'),{'classes':_0x125a85,'attributes':{'data-change-id':_0x5691b7}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x2fed43=>{_0x2fed43['on']('element:pre',(_0x119d34,_0x59b7e4,_0x538b50)=>{const _0x22922a=_0x59b7e4['viewItem']['getChild'](0x0);if(!_0x22922a||!_0x22922a['is']('element','code'))return;if(!_0x538b50['consumable']['consume'](_0x22922a,{'attributes':['vid_start','vid_end']}))return;const _0x5a8fd5=_0x59b7e4['modelRange']['start']['nodeAfter'];_0x538b50['writer']['setAttribute']('vid_start',_0x22922a['getAttribute']('vid_start'),_0x5a8fd5),_0x538b50['writer']['setAttribute']('vid_end',_0x22922a['getAttribute']('vid_end'),_0x5a8fd5);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x1322a9=>{_0x1322a9['on']('element',(_0x46d812,_0x5bab34,_0x44da3b)=>{if(!_0x44da3b['consumable']['consume'](_0x5bab34['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x5bab34['modelRange']['isCollapsed'])return;const _0x2fc4f7=_0x5bab34['modelRange']['start']['nodeAfter'];_0x2fc4f7['hasAttribute']('vid_start')||_0x2fc4f7['hasAttribute']('vid')||(_0x44da3b['writer']['setAttribute']('vid_start',_0x5bab34['viewItem']['getAttribute']('vid_start'),_0x2fc4f7),_0x44da3b['writer']['setAttribute']('vid_end',_0x5bab34['viewItem']['getAttribute']('vid_end'),_0x2fc4f7));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x2da99f=>_0x2da99f['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x1690c4,[,_0x5a6296])=>{['vid_start','vid_end','vid']['includes'](_0x5a6296)&&(_0x1690c4['return']=!0x0,_0x1690c4['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0xdc0e58=>{_0xdc0e58['on']('attribute:vid',(_0x2d6031,_0x3839f1,_0xddf7ae)=>{if('\x20'!=_0x3839f1['item']['data']||_0x3839f1['item']['parent']['maxOffset']>0x1)return;if(!_0xddf7ae['consumable']['consume'](_0x3839f1['item'],_0x2d6031['name']))return;const _0x4ef274=_0xddf7ae['writer'],_0x3d1615=_0xddf7ae['mapper']['toViewRange'](_0x3839f1['range']);_0x4ef274['wrap'](_0x3d1615,_0x4ef274['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x42df7d){const _0x2bc1b5=_0x42df7d['plugins']['get']('RevisionViewer');return(_0x52cbff,_0x17a341,_0x749ac9)=>{const _0x4e8bf4=_0x17a341['markerName']['split'](':')[0x1],_0x5e3a2b=_0x2bc1b5['_getChangeFromId'](_0x4e8bf4);if(!_0x5e3a2b)return null;const _0x2b5838='add'==_0x5e3a2b['type']?'split':'merge';if(!_0x749ac9['consumable']['test'](_0x17a341['markerRange'],_0x52cbff['name']))return;const _0x236b9b=_0x17a341['markerRange']['getWalker'](),_0x17addf=_0x17a341['markerRange']['start'],_0x4f6c03=_0x42df7d['model']['schema'];let _0x149aba=null,_0x23fe6d=null,_0x2454ee=!0x1,_0x2f570a=!0x1;for(const _0xcd4fd9 of _0x236b9b){const _0x47e8bd=_0xcd4fd9['item'];_0x2454ee=_0x2454ee||_0x4f6c03['isContent'](_0x47e8bd);const _0x4098af=_0x749ac9['mapper']['toViewElement'](_0x47e8bd);if(_0x4098af&&_0x4098af['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xcd4fd9['type']&&(_0x4f6c03['isBlock'](_0x47e8bd)&&!_0x4f6c03['isLimit'](_0x47e8bd)&&(_0x47e8bd['nextSibling']||_0x17addf['isAtEnd']?_0x149aba&&_0x149aba['parent']==_0x47e8bd||(_0x149aba=_0x47e8bd,_0x4cbfe1(_0xcd4fd9['previousPosition']),_0x2f570a=!0x0):_0x23fe6d=_0x23fe6d||_0xcd4fd9['previousPosition']));}function _0x4cbfe1(_0x510d04){const _0x4ce6a6=_0x749ac9['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2b5838}),_0x22cf6e=_0x749ac9['mapper']['toViewPosition'](_0x510d04);_0x5e3a2b['data']['isSuggestion']&&_0x749ac9['writer']['addClass']('ck-suggestion-marker-'+_0x2b5838+'-new',_0x4ce6a6),_0x2bc1b5['activeChange']==_0x5e3a2b&&_0x749ac9['writer']['addClass']('ck-suggestion-marker--active',_0x4ce6a6),_0x749ac9['writer']['insert'](_0x22cf6e,_0x4ce6a6),_0x749ac9['mapper']['bindElementToMarker'](_0x4ce6a6,_0x17a341['markerName']);}_0x2454ee||_0x2f570a||!_0x23fe6d||_0x4cbfe1(_0x23fe6d);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x3ac5bb,_0x1ca056,_0x1aa225)=>{const _0xdfac69=_0x1aa225['mapper']['markerNameToElements'](_0x1ca056['markerName']);if(_0xdfac69){for(const _0x30f524 of _0xdfac69)(_0x30f524['hasClass']('ck-suggestion-marker-split')||_0x30f524['hasClass']('ck-suggestion-marker-merge'))&&(_0x1aa225['mapper']['unbindElementFromMarkerName'](_0x30f524,_0x1ca056['markerName']),_0x1aa225['writer']['remove'](_0x30f524));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x54b692,_0x5c0c48,_0x594cb0)=>{const _0x16c1ca=_0x5c0c48['markerName']['split'](':')[0x1],_0x49c180=this['_getChangeFromId'](_0x16c1ca);if(!_0x49c180)return null;const _0xdc30bf='add'==_0x49c180['type']?'split':'merge';if(_0x594cb0['consumable']['test'](_0x5c0c48['markerRange'],_0x54b692['name']))for(const _0x327038 of _0x5c0c48['markerRange']['getItems']()){if(!_0x327038['is']('element','softBreak'))continue;const _0x4cf9b7=_0x594cb0['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xdc30bf}),_0x34970d=_0x594cb0['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x327038));_0x49c180['data']['isSuggestion']&&_0x594cb0['writer']['addClass']('ck-suggestion-marker-'+_0xdc30bf+'-new',_0x4cf9b7),this['activeChange']==_0x49c180&&_0x594cb0['writer']['addClass']('ck-suggestion-marker--active',_0x4cf9b7),_0x594cb0['writer']['insert'](_0x34970d,_0x4cf9b7),_0x594cb0['mapper']['bindElementToMarker'](_0x4cf9b7,_0x5c0c48['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x459ebe=>{for(const _0x40ae8b of this['editor']['model']['document']['getRootNames']()){const _0x5ad50d=this['editor']['model']['document']['getRoot'](_0x40ae8b),_0x1c39f7=this['editor']['editing']['view']['document']['getRoot'](_0x40ae8b);if(_0x1c39f7){const _0x3ea571=_0x5ad50d['getAttribute']('revisionHistoryAttachChange');if(_0x459ebe['removeAttribute']('data-change-id',_0x1c39f7),_0x459ebe['removeClass']('ck-revision-history-root-add',_0x1c39f7),_0x459ebe['removeClass']('ck-revision-history-root-remove',_0x1c39f7),_0x459ebe['removeClass']('ck-revision-history-root--active',_0x1c39f7),_0x3ea571){const _0x2a3d99=this['_getChangeFromId'](_0x3ea571);if(!_0x2a3d99)return null;_0x459ebe['setAttribute']('data-change-id',_0x3ea571,_0x1c39f7),_0x459ebe['addClass']('ck-revision-history-root-'+_0x2a3d99['type'],_0x1c39f7),this['activeChange']==_0x2a3d99&&_0x459ebe['addClass']('ck-revision-history-root--active',_0x1c39f7);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x22540=>'revision-comment:'+_0x22540,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x6112aa=>'revision-suggestion:'+_0x6112aa,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x88ce9f=>({'name':'suggestion:'+_0x88ce9f,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x4354a6=>{const _0x32ee3d=_0x4354a6['markerName']['split'](':')[0x1];return'insertion'!=_0x32ee3d&&'deletion'!=_0x32ee3d?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x32ee3d]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',tt(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',tt(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x3653a6,_0x7fd040,_0x1f9a63)=>{const _0xd8b0d7=_0x1f9a63['mapper']['markerNameToElements'](_0x7fd040['markerName']);if(_0xd8b0d7){for(const _0x37a11f of _0xd8b0d7)_0x37a11f['is']('uiElement')&&(_0x1f9a63['mapper']['unbindElementFromMarkerName'](_0x37a11f,_0x7fd040['markerName']),_0x1f9a63['writer']['remove'](_0x37a11f));}},{'priority':'high'});}['_getChangeFromId'](_0x1ef28e){return this['_changeIdToChange']['get'](_0x1ef28e);}['_getViewForChange'](_0x505c05){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Y(this['editor']['locale'],_0x505c05),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x58ce0c,_0x1918ed,_0x7cd77a,_0x5862f4)=>{_0x5862f4&&this['_balloon']['remove'](_0x5862f4),_0x7cd77a&&(this['_balloon']['add']({'view':_0x7cd77a,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x1f36e1=this['editor']['editing'],_0x1293d6=this['_getChangeFromId'](_0x7cd77a['changeId']);let _0x498885;if(_0x1293d6['data']['isOnRoot']){const _0x4860f1=_0x1f36e1['view']['getDomRoot'](_0x1293d6['rootName']);_0x498885=Array['from'](_0x4860f1['getClientRects']());}else{const _0x50b589=this['editor']['model']['markers']['get']('revision:'+_0x7cd77a['changeId']);_0x498885=Array['from'](_0x1f36e1['mapper']['markerNameToElements'](_0x50b589['name']))['map'](_0x2a8c90=>_0x1f36e1['view']['domConverter']['mapViewToDom'](_0x2a8c90))['map'](_0x26f4fa=>Array['from'](_0x26f4fa['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x498885[0x0];return _0x498885['find'](_0x21ee02=>_0x21ee02['top']-0x3<=this['_activeViewTarget']['y']&&_0x21ee02['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x21ee02['left']-0x3<=this['_activeViewTarget']['x']&&_0x21ee02['right']+0x3>=this['_activeViewTarget']['x'])||_0x498885[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x1fc46d,_0x32f710,_0x261058,_0x52f1bd)=>{this['activeView']=_0x261058?this['_getViewForChange'](_0x261058):null,this['editor']['model']['change'](()=>{const _0x4dcbe9=this['editor']['editing'];_0x52f1bd&&(_0x52f1bd['data']['isOnRoot']?_0x4dcbe9['view']['change'](_0x10bd06=>{_0x10bd06['removeClass']('ck-revision-history-root--active',_0x4dcbe9['view']['document']['getRoot'](_0x52f1bd['rootName']));}):_0x4dcbe9['reconvertMarker']('revision:'+_0x52f1bd['id'])),_0x261058&&(_0x261058['data']['isOnRoot']?_0x4dcbe9['view']['change'](_0x39ad0a=>{_0x39ad0a['addClass']('ck-revision-history-root--active',_0x4dcbe9['view']['document']['getRoot'](_0x261058['rootName']));}):_0x4dcbe9['reconvertMarker']('revision:'+_0x261058['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x306b37,_0x44e3d0)=>{if(this['activeChange'])return;const _0x37eee8=this['_findChangeIdFromDomTarget'](_0x44e3d0['target']),_0x5af8b9=this['_changeIdToChange']['get'](_0x37eee8);_0x5af8b9?(this['_activeViewTarget']={'x':_0x44e3d0['domEvent']['x'],'y':_0x44e3d0['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x5af8b9)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x456d89,_0x49c867)=>{const _0x2aa88e=this['_findChangeIdFromDomTarget'](_0x49c867['target']),_0x2b8e18=this['_changeIdToChange']['get'](_0x2aa88e);_0x2b8e18?(this['_activeViewTarget']={'x':_0x49c867['domEvent']['x'],'y':_0x49c867['domEvent']['y']},_0x2b8e18===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x2b8e18):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x55c18a){do{const _0x1e70fc=_0x55c18a['getAttribute']('data-change-id');if(_0x1e70fc)return _0x1e70fc;_0x55c18a=_0x55c18a['parent'];}while(_0x55c18a);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x1b48fa=>{for(const _0x11fbc3 of this['editor']['model']['markers'])_0x1b48fa['removeMarker'](_0x11fbc3);});}}function tt(_0x445094,_0xf2bb4e){return(_0xc5e3e1,_0x3dd82d,_0x370bf)=>{if(!_0x370bf['consumable']['test'](_0x3dd82d['markerRange'],_0xc5e3e1['name']))return;const _0x1af365=_0x3dd82d['markerRange']['getWalker'](),_0x5ad4b3=_0x3dd82d['markerRange']['start'],_0x1b0953=_0x445094['model']['schema'];let _0x1f8bab=null,_0x2a7c75=null,_0x3293a2=!0x1,_0xedc050=!0x1;for(const _0x57459e of _0x1af365){const _0x4304ea=_0x57459e['item'];_0x3293a2=_0x3293a2||_0x1b0953['isContent'](_0x4304ea);const _0x9c1d5a=_0x370bf['mapper']['toViewElement'](_0x4304ea);if(_0x9c1d5a&&_0x9c1d5a['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x57459e['type']&&(_0x1b0953['isBlock'](_0x4304ea)&&!_0x1b0953['isLimit'](_0x4304ea)&&(_0x4304ea['nextSibling']||_0x5ad4b3['isAtEnd']?_0x1f8bab&&_0x1f8bab['parent']==_0x4304ea||(_0x1f8bab=_0x4304ea,_0x22e1eb(_0x57459e['previousPosition']),_0xedc050=!0x0):_0x2a7c75=_0x2a7c75||_0x57459e['previousPosition']));}function _0x22e1eb(_0x11292e){const _0x3221c4=_0x370bf['mapper']['toViewPosition'](_0x11292e),_0x451522=_0x370bf['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0xf2bb4e});_0x370bf['writer']['insert'](_0x3221c4,_0x451522),_0x370bf['mapper']['bindElementToMarker'](_0x451522,_0x3dd82d['markerName']);}_0x3293a2||_0xedc050||!_0x2a7c75||_0x22e1eb(_0x2a7c75);};}class _t extends _0x40d10f{constructor(_0x13f5e0){super(_0x13f5e0);const _0x222f2d=_0x13f5e0['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x222f2d,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x222f2d,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x125df0=this['editor'],_0x55e246=_0x125df0['plugins']['get'](d),_0x2e6af4=_0x55e246['isReady']?_0x55e246['diff']['newRevisionId']:null;_0x125df0['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x2e6af4);}['refresh'](){const {isReady:_0xde4682,isEnabled:_0x440194}=this['editor']['plugins']['get'](d);this['isEnabled']=_0xde4682&&_0x440194;}}class yt extends _0x40d10f{['_step'];constructor(_0x3d47f0,{direction:_0x2ce28f}){super(_0x3d47f0);const _0x3d2ee9=_0x3d47f0['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x2ce28f?0x1:-0x1,this['listenTo'](_0x3d2ee9,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x3d2ee9,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x3d2ee9,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x12ddfc=this['editor'],_0x2e3b09=_0x12ddfc['plugins']['get'](d),{isNavigationMode:_0x1c7c30,currentChangeNumber:_0xed1bae}=_0x2e3b09;let _0x575979;if(_0x2e3b09['activeChange']=_0x1c7c30?_0x2e3b09['diff']['changes']['get'](_0xed1bae+this['_step']):_0x2e3b09['diff']['changes']['first'],_0x2e3b09['activeChange']['data']['isOnRoot'])_0x575979=_0x12ddfc['editing']['view']['getDomRoot'](_0x2e3b09['activeChange']['rootName']);else{const _0x173576=_0x12ddfc['model']['markers']['get']('revision:'+_0x2e3b09['activeChange']['id']);_0x575979=_0x5bc5d2(_0x12ddfc['editing'],_0x173576);}_0x34df8d({'target':_0x575979,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x4c5e8,currentChangeNumber:_0x33b2fb,numberOfChanges:_0x22dbe9,isReady:_0x29eff7,isEnabled:_0x3d6e05}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x3d6e05&&_0x29eff7&&_0x22dbe9)&&(!_0x4c5e8||(0x1===this['_step']?_0x33b2fb<_0x22dbe9-0x1:_0x33b2fb>0x0));}}class oi extends ts{constructor(_0x141699){super(_0x141699);const _0x37881f=this['bindTemplate'],_0x59157b=new te(_0x141699),_0x1dcfb2=new te(_0x141699);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',(_0x454a35,_0x5c2db7)=>_0x454a35&&_0x5c2db7>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x1f8713,_0x129881,_0x2ee100,_0x588c96)=>{if(!_0x1f8713)return R(_0x141699,'Loading...');if(!_0x2ee100)return R(_0x141699,'No\x20changes');const _0x531f3c=R(_0x141699,'NUMBER_OF_CHANGES',_0x2ee100);return _0x588c96?R(_0x141699,'X_OF_Y_CHANGES',[_0x129881+0x1,_0x2ee100]):_0x531f3c;}),_0x59157b['set']({'label':R(_0x141699,'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'}),_0x1dcfb2['set']({'label':R(_0x141699,'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'}),_0x59157b['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x1dcfb2['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x59157b['on']('execute',()=>this['fire']('execute','backward')),_0x1dcfb2['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',_0x37881f['if']('_isStatusLabelVisible','ck-hidden',_0x5101a9=>!_0x5101a9)]},'children':[{'text':_0x37881f['to']('isNavigationMode',_0xeff22c=>_0xeff22c?R(_0x141699,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x141699,'Total')+':\x20')}]},{'text':_0x37881f['to']('_statusText')}]},new _0x5baf40(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x59157b,_0x1dcfb2]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x9c73c6{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x30b724=this['editor']['editing']['view'];_0x30b724['change'](_0x2b682d=>{for(const _0x538f27 of _0x30b724['document']['roots'])_0x2b682d['addClass'](le,_0x538f27);});}['hide'](){const _0x509f9c=this['editor']['editing']['view'];_0x509f9c['change'](_0x50a9de=>{for(const _0x373a2f of _0x509f9c['document']['roots'])_0x50a9de['removeClass'](le,_0x373a2f);});}}class m extends _0x9c73c6{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,ge];}['init'](){const _0x52fc58=this['editor'],_0x2ffd8b=_0x52fc58['plugins']['get'](d),_0x576636=_0x52fc58['plugins']['get'](ge);_0x52fc58['ui']['componentFactory']['add']('exitToEditing',_0x3216c8=>{const _0x59c53e=new te(_0x3216c8);return _0x59c53e['set']({'label':R(_0x3216c8,'Back\x20to\x20editing'),'icon':_0x442c2a['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x59c53e,'execute',()=>{_0x52fc58['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x59c53e;}),_0x52fc58['ui']['componentFactory']['add']('restoreRevision',_0x1fb746=>{const _0x9c7e86=new te(_0x1fb746);return _0x9c7e86['set']({'label':R(_0x1fb746,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x9c7e86['bind']('isEnabled')['to'](_0x52fc58['commands']['get']('restoreRevision')),this['listenTo'](_0x9c7e86,'execute',()=>_0x52fc58['execute']('restoreRevision')),_0x9c7e86;}),_0x52fc58['ui']['componentFactory']['add']('changesNavigation',_0x3b7644=>{const _0x332960=new oi(_0x3b7644),_0x5c9e41=_0x52fc58['commands']['get']('showPreviousChange'),_0x50c9a1=_0x52fc58['commands']['get']('showNextChange');return _0x332960['bind']('isBackwardNavigationEnabled')['to'](_0x5c9e41,'isEnabled'),_0x332960['bind']('isForwardNavigationEnabled')['to'](_0x50c9a1,'isEnabled'),_0x332960['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x2ffd8b),this['listenTo'](_0x332960,'execute',(_0x28dd66,_0x24d659)=>{_0x52fc58['execute']('forward'===_0x24d659?'showNextChange':'showPreviousChange');}),_0x332960;}),_0x576636['show'](),_0x2ffd8b['on']('change:isReady',(_0x295c9f,_0x71145b,_0x5ab6cf)=>{_0x5ab6cf?_0x576636['hide']():_0x576636['show']();});}}class pt extends _0x585659{['_resizeObserver']=null;constructor(_0x4660fe,_0x22570a){super(_0x4660fe,_0x22570a);const _0x1bd307=this['bindTemplate'];this['set']({'label':R(_0x4660fe,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x4660fe,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x1bd307['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 _0x311799=this['fieldView']['element'];this['_tooltipString']=_0x311799['scrollWidth']>_0x311799['clientWidth']&&_0x311799['value']||'';}}class hi extends ts{constructor(_0xd5233e,_0x196270,_0x129e60){super(_0xd5233e);const _0x2c292e=new _0x2d529d();_0x2c292e['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 _0x1d37d7=['ck','ck-revision-history-sidebar__revision-author'];_0x129e60&&_0x1d37d7['push']('ck-revision-history-sidebar__revision-author_creator');const _0x33f90c=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0xd5233e,_0x129e60?'Revision\x20creator':'Revision\x20author')},'children':[_0x2c292e,_0x196270['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x1d37d7},'children':_0x33f90c});}}function _i(_0x4909c4,_0x4e13db){const _0x5cb5a1=_0x4909c4['bindTemplate'],_0x2ab530=_0x4909c4['locale'],_0x28ba69=_0x4832b0(_0x2ab530);_0x28ba69['panelPosition']='sw';const _0x5bf6a5=function(_0x15cae8,_0x4228dd){const _0x4ef20e=function(_0x5b5dfb,_0x4eb330){const _0x450735=_0x5b5dfb['locale'],_0x423e3a={'Compare\x20against\x20selected':R(_0x450735,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x450735,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x450735,'Restore\x20this\x20revision')};return _0x4eb330['map'](_0x49ccca=>{const _0x3b3b79=_0x423e3a[_0x49ccca['name']];return _0x3b3b79&&_0x3b3b79!==_0x49ccca['name']&&(_0x49ccca['name']=_0x3b3b79),_0x49ccca;});}(_0x15cae8,_0x4228dd),_0x4a2a37=new _0x50d8e8();for(const _0x402285 of _0x4ef20e){const _0x15ac22={'type':'button','model':new _0x4bcfc1({'label':_0x402285['name'],'class':_0x402285['class'],'withText':!0x0,'role':'menuitem','_action':_0x402285['action']})};_0x15ac22['model']['bind']('isEnabled')['to'](_0x15cae8,'isActionsDropdownOpen',_0x3cd949=>'function'!=typeof _0x402285['isEnabled']||(!_0x3cd949||_0x402285['isEnabled'](_0x15cae8))),_0x4a2a37['add'](_0x15ac22);}return _0x4a2a37;}(_0x4909c4,_0x4e13db);return _0x4909c4['bind']('isActionsDropdownOpen')['to'](_0x28ba69,'isOpen'),_0x28ba69['buttonView']['set']({'label':R(_0x2ab530,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x442c2a['threeVerticalDots']}),_0x28ba69['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x5cb5a1['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x5cb5a1['to'](_0x16bb36=>_0x16bb36['stopPropagation']())}}),_0x28ba69['on']('execute',_0x36b39d=>{_0x4909c4['isReady']&&'function'==typeof _0x36b39d['source']['_action']&&_0x36b39d['source']['_action'](_0x4909c4);}),to(_0x28ba69,_0x5bf6a5,{'role':'menu'}),_0x28ba69['listenTo'](_0x4909c4,'change:isActionsDropdownOpen',(_0x1fe4c7,_0x1c2b05,_0x5ec706)=>{if(_0x5ec706)for(const _0x3d6e4e of _0x28ba69['listView']['items']){const _0x18529c=_0x3d6e4e['children']['first'],_0x4b5536=_0x4e13db['find'](_0x1d7bf2=>_0x1d7bf2['action']===_0x18529c['_action'])['isVisible'];_0x3d6e4e['isVisible']=void 0x0===_0x4b5536||_0x4b5536(_0x4909c4);}}),_0x28ba69;}class si extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x4d6962(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x2604af,_0x312724,_0x2718de,_0x579298){super(_0x2604af);const _0x2e3337=this['bindTemplate'],_0x12d0b4=function(_0x11a1b2,_0x28c81d){const _0x16840e=Array['from'](_0x28c81d['authors'])['filter'](_0x450401=>_0x450401!=_0x28c81d['creator']);return _0x28c81d['creator']&&_0x16840e['unshift'](_0x28c81d['creator']),_0x16840e['map'](_0x13faa4=>new hi(_0x11a1b2,_0x13faa4,_0x13faa4==_0x28c81d['creator']));}(_0x2604af,_0x312724);this['id']=_0x312724['id'],this['_revision']=_0x312724,this['_requireRevisionName']=_0x579298,this['bind']('name','createdAt')['to'](_0x312724),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0xb8ebb0=>{return _0x17c760=_0x2604af['uiLanguage'],(_0x5b3f0d=_0xb8ebb0)['toLocaleDateString'](_0x17c760,{'month':'long','day':'numeric'})+',\x20'+_0x5b3f0d['toLocaleTimeString'](_0x17c760,{'hour':'numeric','minute':'numeric'});var _0x17c760,_0x5b3f0d;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new pt(_0x2604af,_0x42bc0a),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x4533b1=>_0x4533b1||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x1a1ccd,_0x5ce6a5)=>_0x1a1ccd&&_0x5ce6a5),this['revisionActionsView']=_0x2718de&&_0x2718de['length']?_i(this,_0x2718de):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x2e3337['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x2e3337['if']('isEnabled','ck-disabled',_0x3c06ea=>!_0x3c06ea),_0x2e3337['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x2e3337['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x2e3337['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':_0x2e3337['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':_0x12d0b4}]},this['revisionActionsView']],'on':{'click':_0x2e3337['to'](_0x1e2843=>{_0x1e2843['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x4fab74=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x4fab74,'change',()=>{this['_requireRevisionName']&&!_0x4fab74['value']||this['fire']('setName',{'id':this['id'],'name':_0x4fab74['value']}),_0x4fab74['value']||(_0x4fab74['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function ti(_0x4e04c7,_0x50f9a8){const _0x57f8dd=_0x23c007['fromJSDate'](_0x4e04c7)['setLocale'](_0x50f9a8),_0x4a777a=_0x23c007['local'](),_0x20a6ae=_0x4a777a['minus']({'days':0x1})['startOf']('day');let _0x4dde8d,_0x38c5bd;return _0x57f8dd['hasSame'](_0x4a777a,'day')?(_0x4dde8d=_0x57f8dd['startOf']('day')['toJSDate'](),_0x38c5bd=_0x57f8dd['toRelativeCalendar']()):_0x57f8dd['hasSame'](_0x20a6ae,'day')?(_0x4dde8d=_0x20a6ae['toJSDate'](),_0x38c5bd=_0x57f8dd['toRelativeCalendar']()):_0x57f8dd['hasSame'](_0x4a777a,'week')?(_0x4dde8d=_0x57f8dd['startOf']('week')['toJSDate'](),_0x38c5bd=_0x57f8dd['weekdayLong']||''):_0x57f8dd['hasSame'](_0x4a777a,'year')?(_0x4dde8d=_0x57f8dd['startOf']('month')['toJSDate'](),_0x38c5bd=_0x57f8dd['monthLong']||''):(_0x4dde8d=_0x57f8dd['startOf']('year')['toJSDate'](),_0x38c5bd=String(_0x57f8dd['year'])),{'startDate':_0x4dde8d,'localizedPeriodName':_0x38c5bd};}class ei extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x5e272a,_0x47f7ad,_0x33270c,_0x1b099b){super(_0x5e272a);const _0x52f41b=ti(_0x47f7ad,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x47f7ad,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x33270c,this['_requireRevisionName']=_0x1b099b,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':_0x52f41b}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x318160){const _0xae84a7=new si(this['locale'],_0x318160,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0xae84a7);}['removeRevision'](_0x2d6df1){const _0x1e1da6=this['revisionViews']['find'](_0xa1420b=>_0xa1420b['id']===_0x2d6df1['id']);this['revisionViews']['remove'](_0x1e1da6);}}class cs extends ts{constructor(_0x490ad3){super(_0x490ad3);const _0x3f436f=new _0x2d529d();_0x3f436f['content']=_0x442c2a['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x3f436f,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0x490ad3,'Revision\x20history')]}]});}}class ii extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x2955a9,_0x43903e,_0x193f4f,_0x3c5979){super(_0x2955a9);const _0x542d56=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x43903e,this['_revisionActions']=_0x193f4f,this['_requireRevisionName']=_0x3c5979,this['on']('select',(_0x590907,_0x5d2a8e)=>{this['fire']('revisionSelected',_0x5d2a8e);}),this['on']('setName',(_0x90d52c,_0x57dc5e)=>{this['fire']('revisionSetName',_0x57dc5e);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new cs(_0x2955a9),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x542d56['if']('isEnabled','ck-disabled',_0x2cce7f=>!_0x2cce7f)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x53d631 of this['_revisions'])this['_addRevision'](_0x53d631);this['_revisions']['on']('add',(_0x3669c9,_0x25a3f1)=>{this['_addRevision'](_0x25a3f1);}),this['_revisions']['on']('remove',(_0x32c5f4,_0x201ced)=>{this['_removeRevision'](_0x201ced);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x456467=>_0x456467['revisionViews']['map'](_0x47124d=>_0x47124d))['flat']();}['selectRevision'](_0xf05414){for(const _0x57d757 of this['revisionViews'])_0xf05414&&_0xf05414['id']===_0x57d757['id']?_0x57d757['select']():_0x57d757['deselect']();}['highlightRevisions'](_0x293889){for(const _0x3402b3 of this['revisionViews'])_0x293889['some'](({id:_0x53e24c})=>_0x53e24c===_0x3402b3['id'])?_0x3402b3['highlight']():_0x3402b3['unhighlight']();}['_addRevision'](_0x2825a0){const _0x471700=ti(_0x2825a0['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x4373e3=this['timePeriodViews']['get'](0x0);_0x4373e3&&_0x4373e3['startDate']['getTime']()===_0x471700['getTime']()||(_0x4373e3=new ei(this['locale'],_0x471700,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x4373e3)),_0x4373e3['addRevision'](_0x2825a0);}['_removeRevision'](_0x3d4536){const _0x16ef3a=ti(_0x3d4536['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x16ef3a)['removeRevision'](_0x3d4536);}['_getTimePeriodViewByStartDate'](_0x44cdc1){return this['timePeriodViews']['find'](_0x2201ac=>_0x2201ac['startDate']['getTime']()===_0x44cdc1['getTime']());}}class g extends _0x9c73c6{['_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
|
-
rt(it){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x32bacb,_0x456c9b){super(_0x456c9b),this['sourceElement']=_0x32bacb,this['model']['document']['createRoot']();const _0x461783=new st(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new et(this,_0x461783);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x1a6855,_0x27eba4){const _0x19c292=new this(_0x1a6855,_0x27eba4);return await _0x19c292['initPlugins'](),await _0x19c292['ui']['init'](_0x1a6855),await _0x19c292['data']['init'](_0x19c292['config']['get']('initialData')||''),_0x19c292['fire']('ready'),_0x19c292;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class k extends _0x51bff9{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5792a3){function _0x8b26d(_0xd2409f){return _0xd2409f['map'](_0x1b2c2b=>String['fromCharCode'](_0x1b2c2b))['join']('');}super(_0x5792a3),this['result']='end',_0x5792a3[_0x8b26d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x8b26d([0x76,0x69,0x65,0x77])][_0x8b26d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x8b26d([0x61,0x75,0x74,0x6f]),_0x5792a3[_0x8b26d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x8b26d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x8b26d([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x8b26d([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x8b26d([0x6f,0x6b])});}}class H extends _0x51bff9{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x127007){if(super(_0x127007),!this['editor']['config']['get']('revisionHistory'))throw new _0x39b6eb('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x2dd103=>this['_showRevisionViewer']({..._0x2dd103,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x5864ec=>this['_closeRevisionViewer'](_0x5864ec)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x42bae1=>this['_restoreRevision'](_0x42bae1)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x207db5){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x207db5;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x3f6637){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x3f6637);}['getRevision'](_0x29cd3e){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x29cd3e);}['getRevisions'](_0x2e1bc5){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x2e1bc5||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x469d16=this['editor'],_0x3b3a80=_0x32cdda(_0x469d16,p),_0xc0017c=_0x469d16['plugins']['get']('RevisionTracker'),_0x4c4a06=_0x469d16['plugins']['get']('Users')['users'];return _0x3b3a80['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x3b3a80['lazyRoots'],(_0x3b3a80['plugins']['push'](k,d,m,class extends _0x51bff9{static get['requires'](){return[d,'Users'];}['init'](){const _0x2ffd61=this['editor']['plugins']['get']('Users');for(const _0x17d92d of _0x4c4a06)_0x17d92d['isAnonymous']||_0x2ffd61['getUser'](_0x17d92d['id'])||_0x2ffd61['addUser'](_0x17d92d);const _0x8c28a2=_0xc0017c['repository']['getRevisions']();let _0x4ec46c=null;const _0x4775c3=this['editor']['plugins']['get']('RevisionViewer');_0x4775c3['adapter']=_0xc0017c['adapter'],_0x4775c3['bind']('isEnabled')['to'](_0xc0017c),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x469d16,'isReadOnly',_0x34efbb=>!_0x34efbb);for(const _0x4045f3 of _0x8c28a2){const _0x35e18e=null===_0x4045f3['creator'];if(_0x35e18e&&_0x4045f3['toVersion']===_0x4045f3['fromVersion'])continue;const _0x19d265=_0x4045f3['toJSON']();_0x4775c3['addRevisionData'](_0x19d265,(_0x2c08b6,_0x553074,_0x4ecf3b)=>{if(_0x35e18e){if(_0x4ec46c)_0x4ec46c['_update'](_0x2c08b6,_0x553074);else{if(!_0x553074){const _0x5dc044=_0x4ecf3b['toJSON']();_0x5dc044['id']=_0x2c16be(),_0xc0017c['saveRevision'](_0x5dc044,_0x4ecf3b['toVersion'])['then'](_0x4f5ed3=>{_0x4ec46c=_0x4f5ed3;});}}}else _0x4045f3['_update'](_0x2c08b6,_0x553074);});}}},g),_0x3b3a80);}['_enhanceShowRevisionViewerCallback'](){const _0x2fbc48=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x277f7e=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x1520ee=this['editor']['plugins']['get']('Autosave');await _0x1520ee['save']();}else await _0x277f7e['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x119264=this['editor']['plugins']['get']('Dialog');_0x119264['isOpen']&&_0x119264['hide']();}const _0x3c6c3d=this['_getRevisionViewerEditorConfig']();return _0x2fbc48(_0x3c6c3d)['then'](_0x431d3f=>{return(this['_viewerEditor']=_0x431d3f,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x431d3f;})['catch'](_0x264560=>(console['error'](_0x264560),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x42e51e=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'](),_0x42e51e(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x1c218b=this['editor']['plugins']['get']('Annotations');_0x1c218b['refreshVisibility'](),_0x1c218b['refreshPositioning']();}})));}['_showRevisionViewer'](_0x372a5d){const _0x16912c=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x27700d=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x48ed0b=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x48ed0b,_0x372a5d)['then'](_0x5a956a=>(_0x27700d['style']['display']='block',_0x16912c['style']['display']='none',_0x5a956a));}['_closeRevisionViewer'](_0x1fa1ac){const _0x5951ca=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x5951ca['style']['display']='',_0x1fa1ac['destroy']();}async['_restoreRevision'](_0x5e9590){const _0x5571cc=this['editor'],_0x522ab9=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x532880=_0x5571cc['plugins']['get']('RevisionTracker'),_0x16debe=_0x522ab9['repository']['getRevision'](_0x5e9590);let _0x19c606,_0x41af28,_0x2c77ea;try{_0x19c606=await _0x522ab9['getRevisionData'](_0x16debe),_0x41af28=await _0x522ab9['getRevisionRootsAttributes'](_0x16debe);}catch(_0x13c9ae){return void console['error'](_0x13c9ae);}_0x5571cc['model']['change'](_0x84f583=>{for(const _0x50cf18 of Array['from'](_0x5571cc['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x84f583['removeMarker'](_0x50cf18);}),_0x522ab9['isReady']=!0x1,_0x5571cc['model']['enqueueChange'](_0x3cb96a=>{_0x3cb96a['setSelection'](null),_0x3cb96a['removeSelectionAttribute'](_0x5571cc['model']['document']['selection']['getAttributeKeys']());const _0x24b11f=Object['keys'](_0x19c606);for(const _0x5765d2 of _0x5571cc['model']['document']['roots'])'$graveyard'!=_0x5765d2['rootName']&&_0x5765d2['isAttached']()&&!_0x24b11f['includes'](_0x5765d2['rootName'])&&_0x3cb96a['detachRoot'](_0x5765d2);for(const _0x11358e of _0x24b11f){let _0x111ac5=_0x5571cc['model']['document']['getRoot'](_0x11358e);_0x111ac5&&_0x111ac5['isAttached']()||(_0x111ac5=_0x3cb96a['addRoot'](_0x11358e));const _0x22174d=_0x41af28[_0x11358e],_0x382362=Object['keys'](_0x22174d),_0xb1a57=_0x19c606[_0x11358e];for(const _0x2ed70f of _0x111ac5['getAttributeKeys']())_0x382362['includes'](_0x2ed70f)||_0x3cb96a['removeAttribute'](_0x2ed70f,_0x111ac5);for(const _0x5d6ce6 of _0x382362)_0x3cb96a['setAttribute'](_0x5d6ce6,_0x41af28[_0x11358e][_0x5d6ce6],_0x111ac5);_0x3cb96a['remove'](_0x3cb96a['createRangeIn'](_0x111ac5)),_0x3cb96a['insert'](_0x5571cc['data']['parse'](_0xb1a57,_0x111ac5),_0x111ac5,0x0);}});const _0x1ecbe4=R(_0x5571cc['locale'],'Restored');if(_0x16debe['name'])_0x2c77ea=-0x1==_0x16debe['name']['indexOf'](_0x1ecbe4)?_0x1ecbe4+':\x20'+_0x16debe['name']:_0x16debe['name'];else _0x2c77ea=_0x1ecbe4+':\x20'+(_0x16debe['createdAt']['toLocaleDateString'](_0x5571cc['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x16debe['createdAt']['toLocaleTimeString'](_0x5571cc['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x532880['saveRevision']({'name':_0x2c77ea}),_0x522ab9['isReady']=!0x0,_0x5571cc['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,H as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,ge as RevisionViewerLoadingOverlay,m as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};
|
|
28
|
+
bt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x2fcdaa){super(_0x2fcdaa),this['_revisionViewer']=_0x2fcdaa['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x376291=this['_revisionsRepository']['_revisions'],_0xc78f64=this['_createRevisionActions'](),_0x240671=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ii(this['editor']['locale'],_0x376291,_0xc78f64,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',(_0x27134,_0x4957c8)=>{_0x4957c8['revisionViews']['on']('add',(_0x2aaacc,_0x58e979)=>{_0x58e979['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)),_0x240671['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x36e419=this['_revisionsRepository']['getRevision'](0x0);if(_0x36e419){const _0x5846a5=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x36e419['id']);this['_revisionViewer']['compare'](_0x36e419,_0x5846a5);}}['_handleRevisionSelected'](_0x239c2f,_0x48d2f6){const _0x594eb2=this['_revisionsRepository']['getRevision'](_0x48d2f6['id']),_0x1f2b9f=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x594eb2['id']);this['_revisionViewer']['compare'](_0x594eb2,_0x1f2b9f);}['_handleRevisionSetName'](_0x3891c4,_0x5a928a){this['_revisionsRepository']['getRevision'](_0x5a928a['id'])['setName'](_0x5a928a['name']);}['_handleDiffChange'](_0x17bb6c,_0x4e5b1e,_0x17ba3c){const _0x2f57c=this['_revisionsRepository']['getRevisionsInDiff'](_0x17ba3c);_0x2f57c['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x2f57c),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x2f57c[0x0]));}['_createRevisionActions'](){const _0x521b94=this['editor'],_0x1a16ee=g['availableRevisionActions'],_0x6df496=_0x521b94['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x6df496['length'])return _0x6df496['map'](_0xb59284=>{const _0x247ef0='string'==typeof _0xb59284?Object['assign']({},_0x1a16ee[_0xb59284]):_0xb59284;return _0x247ef0['action']=_0x247ef0['action']['bind'](this,_0x521b94),_0x247ef0['isVisible']&&(_0x247ef0['isVisible']=_0x247ef0['isVisible']['bind'](this,_0x521b94)),_0x247ef0;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x423698},_0x519131)=>{const _0x578ff3=_0x423698['get'](d),_0x357c0b=_0x578ff3['repository'];let _0xb4b42c=_0x578ff3['diff']['newRevisionId'],_0x526c9d=_0x519131['id'];_0x357c0b['getIndex'](_0xb4b42c)>_0x357c0b['getIndex'](_0x526c9d)&&([_0xb4b42c,_0x526c9d]=[_0x526c9d,_0xb4b42c]),_0x578ff3['compare'](_0xb4b42c,_0x526c9d);},'isVisible':({plugins:_0x2cd6bc},_0x25d68e)=>{const _0x4fada6=_0x2cd6bc['get'](d);return!(_0x4fada6['repository']['getRevisionsInDiff'](_0x4fada6['diff'])['length']>0x2)&&!_0x25d68e['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x16ec01,{id:_0x521be9})=>{_0x16ec01['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x521be9);},'isVisible':({plugins:_0x3c6530},_0x37a510)=>!!_0x3c6530['get'](d)['repository']['getLaterVisibleRevision'](_0x37a510['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x5725e2},{id:_0x1e7214,revisionNameView:_0x20afe8})=>{const _0x2ae1b8=_0x5725e2['get'](d),_0x16c56c=_0x2ae1b8['repository']['getEarlierVisibleRevision'](_0x1e7214);_0x2ae1b8['compare'](_0x1e7214,_0x16c56c),_0x20afe8['focus'](),_0x20afe8['fieldView']['select']();}}};}class et extends ot{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x4a6a70,_0x38e603){super(_0x4a6a70),this['_view']=_0x38e603,this['_toolbarConfig']=ht(_0x4a6a70['config']['get']('toolbar')),this['_elementReplacer']=new ct();}get['element'](){return this['view']['element'];}['init'](_0x2104b3){const _0x443c42=this['editor'],_0x5b0246=this['view'],_0x68c0cd=_0x443c42['editing']['view'],_0x4a6a5a=_0x5b0246['editable'],_0x4ecfb1=_0x68c0cd['document']['getRoot']();_0x4a6a5a['name']=_0x4ecfb1['rootName'],_0x5b0246['render']();const _0x3611c3=_0x4a6a5a['element'];this['setEditableElement'](_0x4a6a5a['name'],_0x3611c3),_0x5b0246['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x68c0cd['attachDomRoot'](_0x3611c3),this['_elementReplacer']['replace'](_0x2104b3,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x351c23=this['view'],_0x3ea7f4=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x3ea7f4['detachDomRoot'](_0x351c23['editable']['name']),_0x351c23['destroy']();}['_initToolbar'](){const _0x4cb174=this['view'];_0x4cb174['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x4cb174['stickyPanel']['limiterElement']=_0x4cb174['element'],_0x4cb174['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x8a4164})=>_0x8a4164),_0x4cb174['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x4cb174['toolbar']);}}class st extends dt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0xd26e1b,_0x5e414a,_0x40cd0f={}){super(_0xd26e1b),this['stickyPanel']=new lt(_0xd26e1b),this['toolbar']=new nt(_0xd26e1b,{'shouldGroupWhenFull':_0x40cd0f['shouldToolbarGroupWhenFull']}),this['_editable']=new ut(_0xd26e1b,_0x5e414a);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class w extends/* #__PURE__ -- @preserve */
|
|
29
|
+
rt(it){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x18cfd8,_0x7c3210){super(_0x7c3210),this['sourceElement']=_0x18cfd8,this['model']['document']['createRoot']();const _0x40fd85=new st(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new et(this,_0x40fd85);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x2099ec,_0x50b052){const _0x57c0fc=new this(_0x2099ec,_0x50b052);return await _0x57c0fc['initPlugins'](),await _0x57c0fc['ui']['init'](_0x2099ec),await _0x57c0fc['data']['init'](_0x57c0fc['config']['get']('initialData')||''),_0x57c0fc['fire']('ready'),_0x57c0fc;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class k extends _0x9c73c6{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x18049b){function _0x5d86ed(_0x14d9b3){return _0x14d9b3['map'](_0x588e47=>String['fromCharCode'](_0x588e47))['join']('');}super(_0x18049b),this['result']='end',_0x18049b[_0x5d86ed([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5d86ed([0x76,0x69,0x65,0x77])][_0x5d86ed([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5d86ed([0x61,0x75,0x74,0x6f]),_0x18049b[_0x5d86ed([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x5d86ed([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5d86ed([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x5d86ed([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x5d86ed([0x6f,0x6b])});}}class H extends _0x9c73c6{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x40bb81){if(super(_0x40bb81),!this['editor']['config']['get']('revisionHistory'))throw new _0x3d8b0a('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0xa6da16=>this['_showRevisionViewer']({..._0xa6da16,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x28c992=>this['_closeRevisionViewer'](_0x28c992)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x3c66e7=>this['_restoreRevision'](_0x3c66e7)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x4e9528){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x4e9528;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x183e93){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x183e93);}['getRevision'](_0x1ef429){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x1ef429);}['getRevisions'](_0x2786f3){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x2786f3||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0xc4d42e=this['editor'],_0x3271bc=_0x54b203(_0xc4d42e,p),_0x4b3c59=_0xc4d42e['plugins']['get']('RevisionTracker'),_0x3219a6=_0xc4d42e['plugins']['get']('Users')['users'];return _0x3271bc['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x3271bc['lazyRoots'],(_0x3271bc['plugins']['push'](k,d,m,class extends _0x9c73c6{static get['requires'](){return[d,'Users'];}['init'](){const _0x108c7f=this['editor']['plugins']['get']('Users');for(const _0x58969b of _0x3219a6)_0x58969b['isAnonymous']||_0x108c7f['getUser'](_0x58969b['id'])||_0x108c7f['addUser'](_0x58969b);const _0xc7d6=_0x4b3c59['repository']['getRevisions']();let _0x40d76b=null;const _0x36d82d=this['editor']['plugins']['get']('RevisionViewer');_0x36d82d['adapter']=_0x4b3c59['adapter'],_0x36d82d['bind']('isEnabled')['to'](_0x4b3c59),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0xc4d42e,'isReadOnly',_0x7d613d=>!_0x7d613d);for(const _0x2d5f8e of _0xc7d6){const _0x5610d5=null===_0x2d5f8e['creator'];if(_0x5610d5&&_0x2d5f8e['toVersion']===_0x2d5f8e['fromVersion'])continue;const _0x1b4072=_0x2d5f8e['toJSON']();_0x36d82d['addRevisionData'](_0x1b4072,(_0x2351a7,_0x584f22,_0x1d8a17)=>{if(_0x5610d5){if(_0x40d76b)_0x40d76b['_update'](_0x2351a7,_0x584f22);else{if(!_0x584f22){const _0x2b88b6=_0x1d8a17['toJSON']();_0x2b88b6['id']=_0x1e3a97(),_0x4b3c59['saveRevision'](_0x2b88b6,_0x1d8a17['toVersion'])['then'](_0x48352f=>{_0x40d76b=_0x48352f;});}}}else _0x2d5f8e['_update'](_0x2351a7,_0x584f22);});}}},g),_0x3271bc);}['_enhanceShowRevisionViewerCallback'](){const _0x15577e=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x43bec7=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x950997=this['editor']['plugins']['get']('Autosave');await _0x950997['save']();}else await _0x43bec7['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x1d7f61=this['editor']['plugins']['get']('Dialog');_0x1d7f61['isOpen']&&_0x1d7f61['hide']();}const _0x4ade61=this['_getRevisionViewerEditorConfig']();return _0x15577e(_0x4ade61)['then'](_0x2344d9=>{return(this['_viewerEditor']=_0x2344d9,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x2344d9;})['catch'](_0x2366b5=>(console['error'](_0x2366b5),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x58d426=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'](),_0x58d426(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x476a1c=this['editor']['plugins']['get']('Annotations');_0x476a1c['refreshVisibility'](),_0x476a1c['refreshPositioning']();}})));}['_showRevisionViewer'](_0x181f50){const _0x48c67f=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x3c60ff=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x348d28=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x348d28,_0x181f50)['then'](_0x31a04d=>(_0x3c60ff['style']['display']='block',_0x48c67f['style']['display']='none',_0x31a04d));}['_closeRevisionViewer'](_0x23dc72){const _0x3fbe9b=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x3fbe9b['style']['display']='',_0x23dc72['destroy']();}async['_restoreRevision'](_0x5f2f51){const _0x3413c3=this['editor'],_0x5301b8=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x234792=_0x3413c3['plugins']['get']('RevisionTracker'),_0x1be2d4=_0x5301b8['repository']['getRevision'](_0x5f2f51);let _0x10104e,_0x48bbe6,_0x265a8f;try{_0x10104e=await _0x5301b8['getRevisionData'](_0x1be2d4),_0x48bbe6=await _0x5301b8['getRevisionRootsAttributes'](_0x1be2d4);}catch(_0x3fd64e){return void console['error'](_0x3fd64e);}_0x3413c3['model']['change'](_0x270b74=>{for(const _0x102218 of Array['from'](_0x3413c3['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x270b74['removeMarker'](_0x102218);}),_0x5301b8['isReady']=!0x1,_0x3413c3['model']['enqueueChange'](_0x1277b=>{_0x1277b['setSelection'](null),_0x1277b['removeSelectionAttribute'](_0x3413c3['model']['document']['selection']['getAttributeKeys']());const _0x24bcb8=Object['keys'](_0x10104e);for(const _0x1b54c5 of _0x3413c3['model']['document']['roots'])'$graveyard'!=_0x1b54c5['rootName']&&_0x1b54c5['isAttached']()&&!_0x24bcb8['includes'](_0x1b54c5['rootName'])&&_0x1277b['detachRoot'](_0x1b54c5);for(const _0x5c48e1 of _0x24bcb8){let _0x4d1ac3=_0x3413c3['model']['document']['getRoot'](_0x5c48e1);_0x4d1ac3&&_0x4d1ac3['isAttached']()||(_0x4d1ac3=_0x1277b['addRoot'](_0x5c48e1));const _0x3696e1=_0x48bbe6[_0x5c48e1],_0x97f5e7=Object['keys'](_0x3696e1),_0x41190e=_0x10104e[_0x5c48e1];for(const _0x21fd54 of _0x4d1ac3['getAttributeKeys']())_0x97f5e7['includes'](_0x21fd54)||_0x1277b['removeAttribute'](_0x21fd54,_0x4d1ac3);for(const _0x5c512d of _0x97f5e7)_0x1277b['setAttribute'](_0x5c512d,_0x48bbe6[_0x5c48e1][_0x5c512d],_0x4d1ac3);_0x1277b['remove'](_0x1277b['createRangeIn'](_0x4d1ac3)),_0x1277b['insert'](_0x3413c3['data']['parse'](_0x41190e,_0x4d1ac3),_0x4d1ac3,0x0);}});const _0x12649b=R(_0x3413c3['locale'],'Restored');if(_0x1be2d4['name'])_0x265a8f=-0x1==_0x1be2d4['name']['indexOf'](_0x12649b)?_0x12649b+':\x20'+_0x1be2d4['name']:_0x1be2d4['name'];else _0x265a8f=_0x12649b+':\x20'+(_0x1be2d4['createdAt']['toLocaleDateString'](_0x3413c3['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x1be2d4['createdAt']['toLocaleTimeString'](_0x3413c3['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x234792['saveRevision']({'name':_0x265a8f}),_0x5301b8['isReady']=!0x0,_0x3413c3['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,H as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,ge as RevisionViewerLoadingOverlay,m as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};
|