@ckeditor/ckeditor5-revision-history 47.2.0-alpha.6 → 47.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/dist/index.js +7 -7
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +12 -12
- package/src/changeitem.js +2 -2
- package/src/editor/revisionviewereditor.js +2 -2
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/index.js +1 -1
- package/src/revision.js +2 -2
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionhistoryutils.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +2 -2
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +2 -2
- 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,11 +20,11 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ObservableMixin as
|
|
24
|
-
_0x57943b(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x1c9a3f){super(),this['id']=_0x1c9a3f['id']||_0x2d5220(),this['creator']=_0x1c9a3f['creator']||null,this['authors']=_0x1c9a3f['authors']||[],this['diffData']=_0x1c9a3f['diffData']||null,this['toVersion']=_0x1c9a3f['toVersion']||0x0,this['fromVersion']=_0x1c9a3f['fromVersion']||0x0,this['set']('name',_0x1c9a3f['name']||''),this['set']('createdAt',_0x1c9a3f['createdAt']||new Date()),this['set']('attributes',_0x1c9a3f['attributes']||{});}['setName'](_0x419fd4){this['_update']({'name':_0x419fd4});}['setAttribute'](_0x266c37,_0x30c718){const _0x5e1585=_0xff908a(this['attributes']);_0xd20029(_0x5e1585,_0x266c37,_0x30c718),this['_update']({'attributes':_0x5e1585});}['removeAttribute'](_0x54133b){const _0x3df072=_0xff908a(this['attributes']);_0x4ea73(_0x3df072,_0x54133b),this['_update']({'attributes':_0x3df072});}['_update'](_0x19c2ce,_0x2778ca=!0x1){let _0x17ed7a=!0x1;const _0x58ebc7={'id':this['id']},_0x326151=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x4bf665 of _0x326151){const _0xdaf580=_0x19c2ce[_0x4bf665];void 0x0!==_0xdaf580&&_0xdaf580!==this[_0x4bf665]&&(this[_0x4bf665]=_0xdaf580,_0x58ebc7[_0x4bf665]=_0xdaf580,_0x17ed7a=!0x0);}_0x17ed7a&&(_0x58ebc7['authors']&&(_0x58ebc7['authorsIds']=_0x58ebc7['authors']['map'](_0x49daf2=>_0x49daf2['id']),delete _0x58ebc7['authors']),this['fire']('_update',_0x58ebc7,_0x2778ca));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x36d93e=>_0x36d93e['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x16d9db{['_revisions'];static get['requires'](){return[_0x22ce6c];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x40cf0c){super(_0x40cf0c),this['_revisions']=new _0x5a818f();}['afterInit'](){!async function(_0x28c116){const _0x4cbffe=_0x268110([0x76,0x73,0x6d,0x4c,0x34,0x54,0x50,0x70,0x75,0x52,0x35,0x33,0x4d,0x6c,0x71,0x53,0x6a,0x32,0x56,0x58,0x77,0x48,0x39,0x6f,0x45,0x41,0x4e,0x38,0x46,0x78,0x4a,0x74,0x47,0x55,0x4f,0x64,0x62,0x44,0x43,0x5a,0x30,0x31,0x69,0x68,0x79,0x66,0x6b,0x42,0x51,0x59,0x36,0x61,0x63,0x67,0x7a,0x37,0x72,0x49,0x65,0x57,0x4b,0x6e]),_0x414eed=0xeb829,_0x5c9a43=0x359e09b0,_0x3ac867=0x35997190^_0x5c9a43,_0x3fbf0b=window[_0x268110([0x44,0x61,0x74,0x65])][_0x268110([0x6e,0x6f,0x77])](),_0x4d619f=_0x28c116[_0x268110([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x39701d=new window[(_0x268110([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5813a1=>{_0x4d619f[_0x268110([0x6f,0x6e,0x63,0x65])](_0x268110([0x72,0x65,0x61,0x64,0x79]),_0x5813a1);}),_0x3831ab={[_0x268110([0x6b,0x74,0x79])]:_0x268110([0x45,0x43]),[_0x268110([0x75,0x73,0x65])]:_0x268110([0x73,0x69,0x67]),[_0x268110([0x63,0x72,0x76])]:_0x268110([0x50,0x2d,0x32,0x35,0x36]),[_0x268110([0x78])]:_0x268110([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]),[_0x268110([0x79])]:_0x268110([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]),[_0x268110([0x61,0x6c,0x67])]:_0x268110([0x45,0x53,0x32,0x35,0x36])},_0x1a5853=_0x4d619f[_0x268110([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x268110([0x67,0x65,0x74])](_0x268110([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2fad5e(){let _0x2f6c44,_0x24f7e7=null,_0x540339=null;try{if(_0x1a5853==_0x268110([0x47,0x50,0x4c]))return _0x268110([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2f6c44=_0x4bff11(),!_0x2f6c44)return _0x268110([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2f6c44[_0x268110([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x540339=_0x5e6f47(_0x2f6c44[_0x268110([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2f6c44[_0x268110([0x6a,0x74,0x69])])),await _0x298287()?_0x77baa7()?_0x487700()?_0x268110([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2c6ea0()?(_0x2f6c44[_0x268110([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x268110([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x24f7e7=_0x377cc2(_0x268110([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2f6c44[_0x268110([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x268110([0x74,0x72,0x69,0x61,0x6c])&&(_0x24f7e7=_0x377cc2(_0x268110([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x7f4b15()):_0x268110([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x268110([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x268110([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x268110([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x487700(){const _0x1583e3=[_0x268110([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x268110([0x74,0x72,0x69,0x61,0x6c])][_0x268110([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f6c44[_0x268110([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3fbf0b/0x3e8:0xe10*_0x3ac867;return _0x2f6c44[_0x268110([0x65,0x78,0x70])]<_0x1583e3;}function _0x77baa7(){const _0x40819b=_0x2f6c44[_0x268110([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x40819b)return!0x1;if(_0x40819b[_0x268110([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x268110([0x2a])))return!0x0;if(_0x40819b[_0x268110([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x268110([0x52,0x48])))return!0x0;if(_0x40819b[_0x268110([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x268110([0x52,0x52,0x48]))){if(_0x27475f())return!0x0;if(_0xedc0f5()||_0x340016())return!0x0;}return!0x1;}function _0x2c6ea0(){const _0x242ffb=_0x2f6c44[_0x268110([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x242ffb||0x0==_0x242ffb[_0x268110([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x15d11d}=new URL(window[_0x268110([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x242ffb[_0x268110([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15d11d))return!0x0;const _0x397d71=_0x15d11d[_0x268110([0x73,0x70,0x6c,0x69,0x74])](_0x268110([0x2e]));return _0x242ffb[_0x268110([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3279bd=>_0x3279bd[_0x268110([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x268110([0x2a])))[_0x268110([0x6d,0x61,0x70])](_0x57811b=>_0x57811b[_0x268110([0x73,0x70,0x6c,0x69,0x74])](_0x268110([0x2e])))[_0x268110([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x377b4c=>_0x377b4c[_0x268110([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x397d71[_0x268110([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x268110([0x6d,0x61,0x70])](_0x1f669d=>Array(_0x397d71[_0x268110([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1f669d[_0x268110([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x268110([0x66,0x69,0x6c,0x6c])](_0x1f669d[0x0]===_0x268110([0x2a])?_0x268110([0x2a]):'')[_0x268110([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1f669d))[_0x268110([0x73,0x6f,0x6d,0x65])](_0x42691a=>_0x397d71[_0x268110([0x65,0x76,0x65,0x72,0x79])]((_0x5c7673,_0x12fc46)=>_0x42691a[_0x12fc46]===_0x5c7673||_0x42691a[_0x12fc46]===_0x268110([0x2a])));}function _0x7f4b15(){return _0x24f7e7&&_0x540339?new window[(_0x268110([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x107858,_0x203254)=>{_0x24f7e7[_0x268110([0x74,0x68,0x65,0x6e])](_0x107858,_0x203254),_0x540339[_0x268110([0x74,0x68,0x65,0x6e])](_0x435eff=>{_0x435eff!=_0x268110([0x56,0x61,0x6c,0x69,0x64])&&_0x107858(_0x435eff);},_0x203254);}):_0x24f7e7||_0x540339||_0x268110([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5e6f47(_0x4bcd6c,_0x5aa449){return new window[(_0x268110([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x52b9c8=>{if(_0x37eb42())return _0x52b9c8(_0x268110([0x56,0x61,0x6c,0x69,0x64]));_0x128876(),_0x4d619f[_0x268110([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x268110([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x991131=!0x1;const _0x21652b=_0x2d5220();function _0x2d9a7a(_0x5bdb54){return!!_0x5bdb54&&(typeof _0x5bdb54===_0x268110([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5bdb54===_0x268110([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5bdb54[_0x268110([0x74,0x68,0x65,0x6e])]===_0x268110([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5bdb54[_0x268110([0x63,0x61,0x74,0x63,0x68])]===_0x268110([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4be6cf(_0x19722f){_0xcaf6e(_0x19722f)[_0x268110([0x74,0x68,0x65,0x6e])](_0x39a390=>{if(!_0x39a390||_0x39a390[_0x268110([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x268110([0x6f,0x6b]))return _0x268110([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2248d3(_0x2a880e(_0x21652b+_0x5aa449))!=_0x39a390[_0x268110([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x268110([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x268110([0x56,0x61,0x6c,0x69,0x64]);})[_0x268110([0x74,0x68,0x65,0x6e])](_0x24f7e9=>(_0xc5d4f7(),_0x24f7e9),()=>{const _0x267168=_0x48fe77();return null==_0x267168?(_0xc5d4f7(),_0x268110([0x56,0x61,0x6c,0x69,0x64])):_0x268110(_0x3fbf0b-_0x267168>(0x11928db0^_0x5c9a43)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x268110([0x74,0x68,0x65,0x6e])](_0x52b9c8)[_0x268110([0x63,0x61,0x74,0x63,0x68])](()=>{_0x52b9c8(_0x268110([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x10430a=0x35a8e730^_0x5c9a43;function _0xc5d4f7(){const _0x1d1f92=_0x268110([0x6c,0x6c,0x63,0x74,0x2d])+_0x2248d3(_0x2a880e(_0x4bcd6c)),_0x1bbdcd=_0x2ee1d0(_0x2248d3(window[_0x268110([0x4d,0x61,0x74,0x68])][_0x268110([0x63,0x65,0x69,0x6c])](_0x3fbf0b/_0x10430a)));window[_0x268110([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x268110([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1d1f92,_0x1bbdcd);}function _0x48fe77(){const _0x436017=_0x268110([0x6c,0x6c,0x63,0x74,0x2d])+_0x2248d3(_0x2a880e(_0x4bcd6c)),_0xdb9c4a=window[_0x268110([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x268110([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x436017);return _0xdb9c4a?window[_0x268110([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2ee1d0(_0xdb9c4a),0x10)*_0x10430a:null;}function _0xcaf6e(_0x17d09e){return new window[(_0x268110([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2cc5e7,_0x544a92)=>{_0x17d09e[_0x268110([0x74,0x68,0x65,0x6e])](_0x2cc5e7,_0x544a92),window[_0x268110([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x544a92,0x359fdd70^_0x5c9a43);});}}_0x4d619f[_0x268110([0x6f,0x6e])](_0x268110([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1f0613,_0x36ff2b)=>{if(_0x36ff2b[0x0]!=_0x4bcd6c)return _0x52b9c8(_0x268110([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x36ff2b[0x1]={..._0x36ff2b[0x1],[_0x268110([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x21652b};},{[_0x268110([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x268110([0x68,0x69,0x67,0x68])}),_0x4d619f[_0x268110([0x6f,0x6e])](_0x268110([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x13392d=>{_0x2d9a7a(_0x13392d[_0x268110([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x991131=!0x0,_0x4be6cf(_0x13392d[_0x268110([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x268110([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x268110([0x6c,0x6f,0x77])}),_0x39701d[_0x268110([0x74,0x68,0x65,0x6e])](()=>{_0x991131||_0x52b9c8(_0x268110([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x37eb42(){return _0x4d619f[_0x268110([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x268110([0x76,0x69,0x65,0x77])][_0x268110([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x268110([0x61,0x75,0x74,0x6f]);}function _0x128876(){_0x4d619f[_0x268110([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x268110([0x76,0x69,0x65,0x77])][_0x268110([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x268110([0x61,0x75,0x74,0x6f]);}}function _0x377cc2(_0x35062e){const _0x2a0f34=[new window[(_0x268110([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2652fb=>setTimeout(_0x2652fb,0x3597377c^_0x5c9a43)),_0x39701d[_0x268110([0x74,0x68,0x65,0x6e])](()=>new window[(_0x268110([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x12fd28=>{const _0x4155be=0x359e09b7^_0x5c9a43,_0x5a1f08=_0x28c116[_0x268110([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x12d380(){_0x5a1f08[_0x268110([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x4155be&&_0x12fd28();}_0x12d380(),_0x5a1f08[_0x268110([0x6f,0x6e])](_0x268110([0x61,0x64,0x64]),_0x12d380);})),new window[(_0x268110([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x24b40e=>{function _0x1e5203(){for(const _0x2d0a11 in window)if(window[_0x268110([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x268110([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x2d0a11))&&window[_0x2d0a11]==_0x414eed)return _0x24b40e();_0x4d619f[_0x268110([0x73,0x74,0x61,0x74,0x65])]!=_0x268110([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x268110([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1e5203,0x359e1a38^_0x5c9a43);}_0x31141b(_0x268110([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x1e5203();})];return window[_0x268110([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x268110([0x72,0x61,0x63,0x65])](_0x2a0f34)[_0x268110([0x74,0x68,0x65,0x6e])](()=>_0x35062e);}async function _0x449865(){if(await _0x39701d,_0x31141b(_0x268110([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x1e5861=_0x28c116[_0x268110([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0xe0ca4=_0x28c116[_0x268110([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])](_0x1e5861[_0x268110([0x69,0x64])]),_0x203718=_0x1bdf63(_0x268110([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x203718[_0x268110([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x1e5861['id'],_0xe0ca4?_0xe0ca4['id']:null,!0x0),_0x203718[_0x268110([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x268110([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x203718[_0x268110([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x203718[_0x268110([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x338780,void(_0x203718[_0x268110([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x338780);}if(_0x31141b(_0x268110([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x511721=_0x1bdf63(_0x268110([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x511721[_0x268110([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x268110([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x511721[_0x268110([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x511721[_0x268110([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x338780,_0x511721[_0x268110([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x338780;}_0x4d619f[_0x268110([0x6d,0x6f,0x64,0x65,0x6c])][_0x268110([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x338780,_0x4d619f[_0x268110([0x6d,0x6f,0x64,0x65,0x6c])][_0x268110([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x338780,_0x4d619f[_0x268110([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x268110([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x27475f(){return _0x31141b(_0x268110([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1bdf63(_0x268110([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x268110([0x73,0x74,0x61,0x74,0x65])]==_0x268110([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0xedc0f5(){return _0x31141b(_0x268110([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x340016(){return _0x31141b(_0x268110([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x17dd89(_0x2b1f75){const _0x60f8d4=_0xf811d3();_0x4d619f[_0x60f8d4]=_0x268110([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])+_0x2b1f75,_0x2b1f75[_0x268110([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x268110([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0xf811d3()]=_0x414eed),_0x2b1f75!=_0x268110([0x56,0x61,0x6c,0x69,0x64])&&_0x449865();}function _0xf811d3(){const _0x2bfb41=window[_0x268110([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x268110([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x268110([0x6e,0x6f,0x77])]())[_0x268110([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x268110([0x2e]),'');let _0x4bb13a=_0x268110([0x76]);for(let _0x4c0808=0x0;_0x4c0808<_0x2bfb41[_0x268110([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4c0808+=0x2){let _0x322cd6=window[_0x268110([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2bfb41[_0x268110([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4c0808,_0x4c0808+0x2));_0x322cd6>=_0x4cbffe[_0x268110([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x322cd6-=_0x4cbffe[_0x268110([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4bb13a+=_0x4cbffe[_0x322cd6];}return _0x4bb13a;}function _0x4bff11(){const _0x2619b8=_0x1a5853[_0x268110([0x73,0x70,0x6c,0x69,0x74])](_0x268110([0x2e]));if(0x3!=_0x2619b8[_0x268110([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x190578(_0x2619b8[0x1]);function _0x190578(_0x19660f){const _0x315e95=_0x21e0ab(_0x19660f);return _0x315e95&&_0x4085af()?_0x315e95:null;function _0x4085af(){const _0x201657=_0x315e95[_0x268110([0x6a,0x74,0x69])],_0x1fa82a=window[_0x268110([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x201657[_0x268110([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x201657[_0x268110([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2df352={..._0x315e95,[_0x268110([0x6a,0x74,0x69])]:_0x201657[_0x268110([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x201657[_0x268110([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2df352[_0x268110([0x76,0x63])],_0x2a880e(_0x2df352)==_0x1fa82a;}}}async function _0x298287(){let _0x3ff346=!0x0;try{const _0x4d4f08=_0x1a5853[_0x268110([0x73,0x70,0x6c,0x69,0x74])](_0x268110([0x2e])),[_0x26ef5b,_0x54d2a2,_0xa6f92b]=_0x4d4f08;return _0x504f34(_0x26ef5b),await _0x289e5f(_0x26ef5b,_0x54d2a2,_0xa6f92b),_0x3ff346;}catch{return!0x1;}function _0x504f34(_0xddda2c){const _0x2147d9=_0x21e0ab(_0xddda2c);_0x2147d9&&_0x2147d9[_0x268110([0x61,0x6c,0x67])]==_0x268110([0x45,0x53,0x32,0x35,0x36])||(_0x3ff346=!0x1);}async function _0x289e5f(_0x466fb2,_0x51ea55,_0x4bfe75){const _0x38d268=window[_0x268110([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x268110([0x66,0x72,0x6f,0x6d])](_0x187116(_0x4bfe75),_0x5ade03=>_0x5ade03[_0x268110([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4b89c7=new window[(_0x268110([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x268110([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x466fb2+_0x268110([0x2e])+_0x51ea55),_0x2726a3=window[_0x268110([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x268110([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2726a3)return;const _0x1746d5=await _0x2726a3[_0x268110([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x268110([0x6a,0x77,0x6b]),_0x3831ab,{[_0x268110([0x6e,0x61,0x6d,0x65])]:_0x268110([0x45,0x43,0x44,0x53,0x41]),[_0x268110([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x268110([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x268110([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2726a3[_0x268110([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x268110([0x6e,0x61,0x6d,0x65])]:_0x268110([0x45,0x43,0x44,0x53,0x41]),[_0x268110([0x68,0x61,0x73,0x68])]:{[_0x268110([0x6e,0x61,0x6d,0x65])]:_0x268110([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1746d5,_0x38d268,_0x4b89c7)||(_0x3ff346=!0x1);}}function _0x21e0ab(_0x2941b7){return _0x2941b7[_0x268110([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x268110([0x65,0x79]))?JSON[_0x268110([0x70,0x61,0x72,0x73,0x65])](_0x187116(_0x2941b7)):null;}function _0x187116(_0x4c01ce){return window[_0x268110([0x61,0x74,0x6f,0x62])](_0x4c01ce[_0x268110([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x268110([0x2b]))[_0x268110([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x268110([0x2f])));}function _0x2a880e(_0x3f5e31){let _0x4a1dfe=0x1505;function _0x463842(_0x1876a7){for(let _0x588089=0x0;_0x588089<_0x1876a7[_0x268110([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x588089++){const _0x29da48=_0x1876a7[_0x268110([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x588089);_0x4a1dfe=(_0x4a1dfe<<0x5)+_0x4a1dfe+_0x29da48,_0x4a1dfe&=_0x4a1dfe;}}function _0x5a6332(_0x9b2ea8){Array[_0x268110([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x9b2ea8)?_0x9b2ea8[_0x268110([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5a6332):_0x9b2ea8&&typeof _0x9b2ea8==_0x268110([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x268110([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x9b2ea8)[_0x268110([0x73,0x6f,0x72,0x74])]()[_0x268110([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x21110a,_0xe65666])=>{_0x463842(_0x21110a),_0x5a6332(_0xe65666);}):_0x463842(window[_0x268110([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x9b2ea8));}return _0x5a6332(_0x3f5e31),_0x4a1dfe>>>0x0;}function _0x2248d3(_0x3ef7bc){return _0x3ef7bc[_0x268110([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x268110([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x268110([0x30]));}function _0x2ee1d0(_0x154063){return _0x154063[_0x268110([0x73,0x70,0x6c,0x69,0x74])]('')[_0x268110([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x268110([0x6a,0x6f,0x69,0x6e])]('');}function _0x31141b(_0x1fad19){return _0x4d619f[_0x268110([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x268110([0x68,0x61,0x73])](_0x1fad19);}function _0x1bdf63(_0x3029ff){return _0x4d619f[_0x268110([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x268110([0x67,0x65,0x74])](_0x3029ff);}function _0x338780(){}function _0x268110(_0x240c82){return _0x240c82['map'](_0x1cbf59=>String['fromCharCode'](_0x1cbf59))['join']('');}_0x17dd89(await _0x2fad5e());}(this);}['createRevision'](_0x5f023d){const _0x3e23e2=this['editor']['plugins']['get']('Users');return new I({'id':_0x5f023d['id'],'name':_0x5f023d['name'],'creator':_0x5f023d['creatorId']?_0x3e23e2['getUser'](_0x5f023d['creatorId']):null,'diffData':_0x5f023d['diffData']||_0x5f023d['data'],'authors':_0x5f023d['authorsIds']['map'](_0x17467a=>_0x3e23e2['getUser'](_0x17467a)),'createdAt':new Date(_0x5f023d['createdAt']),'attributes':_0x5f023d['attributes'],'fromVersion':_0x5f023d['fromVersion'],'toVersion':_0x5f023d['toVersion']});}['addRevision'](_0xd8cae2,_0xf40cc6=0x0){this['_revisions']['add'](_0xd8cae2,_0xf40cc6);}['getRevision'](_0x2caa01){return this['_revisions']['get'](_0x2caa01);}['getRevisions'](_0x558125={'toJSON':!0x1}){const _0x571123=Array['from'](this['_revisions']);return _0x571123['reverse'](),_0x558125['toJSON']?_0x571123['map'](_0x538edd=>_0x538edd['toJSON']()):_0x571123;}['getIndex'](_0x16d5f9){return this['_revisions']['getIndex'](_0x16d5f9);}['getEarlierVisibleRevision'](_0x51026a){const [,_0x328a4b]=this['getRevisionsIterator'](_0x51026a,{'direction':'earlier'});return _0x328a4b;}['getLaterVisibleRevision'](_0x51fdee){const [,_0x145a2c]=this['getRevisionsIterator'](_0x51fdee,{'direction':'later'});return _0x145a2c;}['getRevisionsInDiff'](_0x597b40){const _0x31a167=[];for(const _0x4a0b65 of this['getRevisionsIterator'](_0x597b40['newRevisionId']))if(_0x31a167['push'](_0x4a0b65),_0x4a0b65['id']===_0x597b40['oldRevisionId'])break;return _0x31a167;}*['getRevisionsIterator'](_0x127ab2,{direction:_0x3354e7='earlier',filter:_0x4ed362=()=>!0x0}={}){const _0xe6b279='earlier'===_0x3354e7?0x1:-0x1;let _0x2aefcb=this['_revisions']['get'](_0x127ab2),_0x5a69b2=this['getIndex'](_0x2aefcb);for(yield _0x2aefcb;_0x2aefcb;){if(_0x5a69b2+=_0xe6b279,_0x2aefcb=this['getRevision'](_0x5a69b2),!_0x2aefcb)return;_0x4ed362(_0x2aefcb)&&(yield _0x2aefcb);}}}class $ extends _0x16d9db{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x7fecc1,'c'],[_0x5090e3,'a'],[_0xf36d74,'e'],[_0x259a07,'r'],[_0x3b6095,'u']]);['_typeCharToViewClass']=new Map([['c',_0x7fecc1],['a',_0x5090e3],['e',_0xf36d74],['r',_0x259a07],['u',_0x3b6095]]);async['loadRevisionData'](_0x2fb4bc,_0x5d651e){if(_0x2fb4bc['diffData']||!_0x5d651e)return;const _0xa63651=this['editor']['config']['get']('collaboration.channelId'),_0x2f21ea=await _0x5d651e['getRevision']({'channelId':_0xa63651,'revisionId':_0x2fb4bc['id']});_0x2fb4bc['diffData']=_0x2f21ea['diffData'];}['getRevisionDocumentData'](_0x4f4e95){const _0x5f1311={};for(const _0x4a85db in _0x4f4e95['diffData']){if(_0x4f4e95['diffData'][_0x4a85db]['attachChange']&&!_0x4f4e95['diffData'][_0x4a85db]['attachChange']['isAttached'])continue;const _0x1db30b=this['_removeRevisionMarkers'](JSON['parse'](_0x4f4e95['diffData'][_0x4a85db]['insertions'])),_0x37f56e=this['editor']['editing']['view']['document'],_0x3f3c9e=new _0x32a294(_0x37f56e,_0x1db30b['map'](_0x1d022a=>this['_getViewFromDiffObj'](_0x1d022a,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x5f1311[_0x4a85db]=this['editor']['data']['processor']['toData'](_0x3f3c9e),this['editor']['data']['processor']['useFillerType']('default');}return _0x5f1311;}['getRevisionRootsAttributes'](_0xeb50db){const _0x7ac272={};for(const _0x287c1d in _0xeb50db['diffData'])_0xeb50db['diffData'][_0x287c1d]['attachChange']&&!_0xeb50db['diffData'][_0x287c1d]['attachChange']['isAttached']||(_0x7ac272[_0x287c1d]=_0xeb50db['diffData'][_0x287c1d]['attributesAfter']||{});return _0x7ac272;}['_getTypeCharForViewElement'](_0x1b5f3d){return this['_viewClassToTypeChar']['get'](_0x1b5f3d['constructor']);}['_getViewFromDiffObj'](_0x2f4123,_0x28088c){const _0x2c96ee=this['editor']['editing']['view']['document'];if('string'==typeof _0x2f4123)return new _0x3dd223(_0x2c96ee,_0x2f4123);{let _0x452877,_0x3f6af4;_0x3f6af4='u'==_0x2f4123['type']||'r'==_0x2f4123['type']?[]:_0x2f4123['children']['map'](_0x1219d0=>this['_getViewFromDiffObj'](_0x1219d0,_0x28088c));const _0x19995=this['_typeCharToViewClass']['get'](_0x2f4123['type'])||_0x29a057,_0x59e44a=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x452877=new _0x19995(_0x2c96ee,_0x2f4123['name'],_0x2f4123['attributes'],_0x3f6af4),'u'==_0x2f4123['type']&&_0x2f4123['children'][0x0]){const _0x3b4b31=_0x2f4123['children'][0x0];if(_0x452877['render']=function(_0x465253){const _0x23263f=_0x465253['createElement']('div');return _0x23263f['innerHTML']=_0x3b4b31,_0x23263f['childNodes'][0x0];},_0x28088c){const _0x3e8e03=new _0x32a294(_0x2c96ee);_0x3e8e03['_appendChild'](_0x452877);const _0x305256=Array['from'](_0x59e44a['viewChildrenToDom'](_0x3e8e03,{'bind':!0x1})),_0x5787e7=_0x59e44a['domDocument']['createElement']('div');_0x5787e7['append'](..._0x305256),_0x452877=Array['from'](_0x59e44a['domChildrenToView'](_0x5787e7))[0x0];}}else{if('r'==_0x2f4123['type']&&_0x2f4123['children'][0x0]){const _0xb1df62=_0x2f4123['children'][0x0];if(_0x452877['render']=function(_0x4be701){_0x4be701['innerHTML']=_0xb1df62;},_0x28088c){const _0x5e11e4=new _0x32a294(_0x2c96ee);_0x5e11e4['_appendChild'](_0x452877);const _0x52c44b=Array['from'](_0x59e44a['viewChildrenToDom'](_0x5e11e4,{'bind':!0x1})),_0x44c21d=_0x59e44a['domDocument']['createElement']('div');_0x44c21d['append'](..._0x52c44b);const _0x4135c7=Array['from'](_0x59e44a['domChildrenToView'](_0x44c21d));_0x4135c7['length']>0x1?_0x452877['_appendChild'](_0x4135c7):_0x452877=_0x4135c7[0x0];}}}if(_0x2f4123['customProperties']){for(const [_0x13cb14,_0x5134c2]of _0x2f4123['customProperties'])_0x452877['_setCustomProperty'](_0x13cb14,_0x5134c2);}const _0x44b18e=void 0x0===_0x2f4123['fillerOffset']?null:_0x2f4123['fillerOffset'];return null!==_0x44b18e&&(_0x452877['getFillerOffset']=()=>_0x44b18e),_0x452877;}}['_makeModelFromViewString'](_0x33e74a){const _0x54bca2=JSON['parse'](_0x33e74a),_0x47022d=this['editor']['editing']['view']['document'],_0x3f40da=new _0x32a294(_0x47022d,_0x54bca2['map'](_0x567fac=>this['_getViewFromDiffObj'](_0x567fac,!0x0)));return this['editor']['data']['toModel'](_0x3f40da);}['_removeRevisionMarkers'](_0x17e3cb){return(_0x17e3cb=_0x17e3cb['filter'](_0x377721=>!_0x377721['name']||'revision-start'!==_0x377721['name']&&'revision-end'!==_0x377721['name']))['forEach'](_0x46e664=>{'string'!=typeof _0x46e664&&(_0x46e664['children']=this['_removeRevisionMarkers'](_0x46e664['children']),_0x46e664['attributes']=_0x46e664['attributes']['filter'](_0x158807=>!_0x158807[0x0]['startsWith']('data-revision-')));}),_0x17e3cb;}}function m(_0x42c223,_0x5e2467,_0x48c200){const t=_0x42c223['t'];switch(_0x5e2467){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'},_0x48c200);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x48c200);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}class h extends _0x16d9db{['licenseKey'];['_licenseKeyCheckInterval'];['currentRevision']=null;['repository'];['adapter']=null;['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_utils'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x22ce6c,S,$,_0x571e4d];}constructor(_0x5eac58){super(_0x5eac58),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new E(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x169124=_0x2d5220();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x169124},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x12e073=this['repository']['getRevision'](0x0),_0x4ea087=_0x12e073&&null===_0x12e073['creator']?_0x12e073:null;if(this['_continueCurrentRevision']=!!_0x4ea087&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x569c3f=this['_source']['getCurrentRevisionId'](),_0x523a85=this['repository']['getRevision'](_0x569c3f);if(_0x523a85)this['_startingVersion']=_0x523a85['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x440f85=this['_source']['history']['_operations']['find'](_0x50eed5=>!_0x50eed5['_isInit']),_0x2bcfb4=_0x440f85?_0x440f85['baseVersion']:this['_source']['history']['version'];_0x12e073?(_0x12e073['toVersion']<_0x2bcfb4&&_0x12e073['_update']({'toVersion':_0x2bcfb4}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x4ea087['id'],this['_startingVersion']=_0x4ea087['fromVersion']):(this['_startingVersion']=_0x12e073['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x2bcfb4,this['_continueCurrentRevision']=!0x1);}}else _0x4ea087&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x4ea087['toVersion'],this['editor']['model']['document']['history']['version']),_0x4ea087['fromVersion']===_0x4ea087['toVersion']?(0x0!==_0x4ea087['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x4ea087['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x4ea087['id'],this['_startingVersion']=_0x4ea087['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',_0x3797d2=>!_0x3797d2),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x35d8c9=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4aa0a7;for(const _0x46a7b5 in _0x35d8c9){const _0x8d73a7=_0x46a7b5,_0x13996a=_0x35d8c9[_0x8d73a7];if('revisionHistoryLicenseKeyValid'==_0x13996a||'revisionHistoryLicenseKeyInvalid'==_0x13996a||'revisionHistoryLicenseKeyExpired'==_0x13996a||'revisionHistoryLicenseKeyDomainLimit'==_0x13996a||'revisionHistoryLicenseKeyNotAllowed'==_0x13996a||'revisionHistoryLicenseKeyEvaluationLimit'==_0x13996a||'revisionHistoryLicenseKeyTrialLimit'==_0x13996a||'revisionHistoryLicenseKeyUsageLimit'==_0x13996a){delete _0x35d8c9[_0x8d73a7],_0x4aa0a7=_0x13996a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x4aa0a7&&_0x35d8c9['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x4aa0a7&&_0x35d8c9['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x4aa0a7&&_0x35d8c9['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x4aa0a7&&_0x35d8c9['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x4aa0a7&&_0x35d8c9['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x4aa0a7&&_0x35d8c9['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x4aa0a7&&_0x35d8c9['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x399c28=this['repository']['getRevision'](0x0),_0x4389f7=await this['getRevisionDocumentData'](_0x399c28),_0x5d66d0=await this['getRevisionRootsAttributes'](_0x399c28);this['_replaceEditorDataWithRevisionData'](_0x4389f7,_0x5d66d0);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x5b86f9){this['_source']=_0x5b86f9;}async['update'](){const _0x15d24a=await this['_source']['getLatestVersion']();if(_0x15d24a>this['currentRevision']['toVersion']){await this['_loadState']();const _0x4ce3d6=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x15d24a});_0x4ce3d6['authors']=_0x4ce3d6['authorsIds']['map'](_0x3b1b99=>this['editor']['plugins']['get']('Users')['getUser'](_0x3b1b99)),this['currentRevision']['_update'](_0x4ce3d6);}}async['saveRevision'](_0x85fceb={},_0x2924a8=null){const _0xe93a6f=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x2924a8>this['currentRevision']['toVersion']&&(_0x2924a8=null),null===_0x2924a8&&(_0x2924a8=await this['_source']['getLatestVersion']());const _0x5c5420=this['_getFromVersion'](_0x2924a8),_0x13c1de=this['buildRevisionData']({'from':_0x5c5420,'to':_0x2924a8});if(this['currentRevision']['toVersion']<_0x2924a8){const _0x1fbf91=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x2924a8,'to':_0x2924a8});_0x1fbf91['authors']=[],_0x1fbf91['authorsIds']=[],_0x1fbf91['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x1fbf91,!0x0),delete _0x1fbf91['authors'],_0xe93a6f['push'](_0x1fbf91);}_0x85fceb['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x85fceb['name']=_0x85fceb['name']||null,_0x85fceb['id']=_0x85fceb['id']||_0x2d5220(),_0x85fceb={..._0x85fceb,..._0x13c1de};const _0x153ad5=this['addRevisionData'](_0x85fceb);_0xe93a6f['push'](_0x85fceb);const _0x4ec55c=this['repository']['getIndex'](_0x153ad5);if(0x0!==_0x4ec55c){const _0x491ebe=this['repository']['getRevision'](_0x4ec55c-0x1);if(_0x491ebe['fromVersion']!==_0x2924a8){const _0x4f88f9=this['_revisionDataBuilder']['getData'](_0x2924a8,_0x491ebe['toVersion']),_0xcdca00={'id':_0x491ebe['id'],'diffData':_0x4f88f9['diffData'],'authorsIds':_0x4f88f9['authorsIds'],'authors':_0x4f88f9['authorsIds']['map'](_0xf154d0=>this['editor']['plugins']['get']('Users')['getUser'](_0xf154d0)),'fromVersion':_0x2924a8};_0x491ebe===this['currentRevision']&&(_0xcdca00['createdAt']=new Date(_0x85fceb['createdAt']['getTime']()+0xa)),_0x491ebe['_update'](_0xcdca00,!0x0),delete _0xcdca00['authors'],_0xe93a6f['push'](_0xcdca00);}}if(this['adapter']){for(const _0x4bf610 of _0xe93a6f)this['_bufferUpdate'](_0x4bf610['id'],_0x4bf610,!0x0);this['sendBufferedUpdates']();}return _0x153ad5;}['addRevisionData'](_0x2a75c1){const _0x11b5c2=this['repository']['createRevision'](_0x2a75c1);return this['adapter']&&_0x11b5c2['on']('_update',(_0x501065,_0xdf778e,_0x37afad)=>{_0x37afad||(this['_bufferUpdate'](_0xdf778e['id'],_0xdf778e,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x11b5c2,this['_findInsertionIndex'](_0x11b5c2)),_0x11b5c2;}async['getRevisionDocumentData'](_0x200424){return await this['_utils']['loadRevisionData'](_0x200424,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x200424);}async['getRevisionRootsAttributes'](_0x1e4275){return await this['_utils']['loadRevisionData'](_0x1e4275,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x1e4275);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x5eae34=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x243f24=0x0;_0x243f24<_0x5eae34['length'];_0x243f24++){const _0x226aed=_0x5eae34[_0x243f24];let _0x42e1a4=!0x1;for(const _0x2b446b of Object['keys'](_0x226aed))void 0x0===_0x226aed[_0x2b446b]?delete _0x226aed[_0x2b446b]:'id'!==_0x2b446b&&(_0x42e1a4=!0x0);_0x42e1a4||(_0x5eae34[_0x243f24]=null);}if(_0x5eae34=_0x5eae34['filter'](_0x25b2ab=>null!==_0x25b2ab),!_0x5eae34['length'])return;for(let _0x1bf38b=0x0;_0x1bf38b<_0x5eae34['length'];_0x1bf38b++){const _0x4c8a73=_0x5eae34[_0x1bf38b];void 0x0!==_0x4c8a73['fromVersion']&&void 0x0===_0x4c8a73['toVersion']&&(_0x4c8a73['toVersion']=this['repository']['getRevision'](_0x4c8a73['id'])['toVersion']),void 0x0!==_0x4c8a73['toVersion']&&void 0x0===_0x4c8a73['fromVersion']&&(_0x4c8a73['fromVersion']=this['repository']['getRevision'](_0x4c8a73['id'])['fromVersion']);}const _0x4d9f13=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x5eae34,_0x4d9f13)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x1bdd27=>{if(_0x1bdd27){for(const _0x51ca1e of _0x1bdd27)this['setRevisionData']({'id':_0x51ca1e['id'],'createdAt':_0x51ca1e['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x582ef4=null,from:_0x5aa980=null,to:_0x4d1c8e=null}){_0x5aa980=null!==_0x5aa980?_0x5aa980:_0x582ef4['fromVersion'],_0x4d1c8e=null!==_0x4d1c8e?_0x4d1c8e:_0x582ef4['toVersion'];const _0x496ab3=this['_revisionDataBuilder']['getData'](_0x5aa980,_0x4d1c8e),_0x5422de={'diffData':_0x496ab3['diffData'],'authorsIds':_0x496ab3['authorsIds'],'fromVersion':_0x5aa980,'toVersion':_0x4d1c8e};if(!_0x582ef4||_0x4d1c8e!==_0x582ef4['toVersion']){const _0x29cb2d=_0x4d1c8e-0x1,_0x2bcda1=this['_source']['history']['getOperation'](_0x29cb2d);_0x5422de['createdAt']=_0x2bcda1&&_0x2bcda1['createdAt']||new Date();}if(this['_loadedStateData']&&_0x5aa980===this['_loadedStateData']['fromVersion']){for(const _0x27ed97 of this['_loadedStateData']['authors'])_0x5422de['authorsIds']['includes'](_0x27ed97['id'])||_0x5422de['authorsIds']['push'](_0x27ed97['id']);}return _0x5422de;}['_bufferUpdate'](_0x14b227,_0x3f6364,_0x136d79){if(this['_bufferedUpdates']['has'](_0x14b227)){const _0xe79c23=this['_bufferedUpdates']['get'](_0x14b227);_0x3f6364=_0x136d79?{..._0xe79c23,..._0x3f6364}:{..._0x3f6364,..._0xe79c23};}this['_bufferedUpdates']['set'](_0x14b227,_0x3f6364);}['setRevisionData'](_0x33f03b){const _0x144fbb=this['repository']['getRevision'](_0x33f03b['id']);if(_0x33f03b['createdAt']&&(_0x33f03b['createdAt']=new Date(_0x33f03b['createdAt'])),_0x33f03b['authorsIds']){const _0x4ce294=this['editor']['plugins']['get']('Users');_0x33f03b['authors']=_0x33f03b['authorsIds']['map'](_0x1091c1=>_0x4ce294['getUser'](_0x1091c1));}_0x144fbb['_update'](_0x33f03b,!0x0);}['_createInitialRevision'](_0x3c4483){const _0x2987f2=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x2987f2)this['_initialRevisionId']=_0x2987f2['id'];else{const _0x391a7a=!this['editor']['model']['document']['roots']['find'](_0x5d3b7a=>this['editor']['model']['hasContent'](_0x5d3b7a)),_0x424c24=this['editor']['plugins']['get']('Users')['me']['id'],_0x19300a=m(this['editor']['locale'],_0x391a7a?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x3c4483,'to':_0x3c4483,'id':this['_initialRevisionId'],'name':_0x19300a,'creatorId':_0x424c24});}}['_createCurrentRevision'](_0x80d5ec){const _0x217e73=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x217e73),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x80d5ec,'to':_0x80d5ec,'id':_0x217e73,'name':'','creatorId':null}));}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_utils']['loadRevisionData'](this['currentRevision'],this['adapter']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}['_replaceEditorDataWithRevisionData'](_0x3b6c89,_0x2e7c3e){let _0xf7d901=this['editor']['config']['get']('initialData'),_0x2466b0=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0xf7d901){_0xf7d901={};for(const _0x1c8b1f of this['editor']['model']['document']['getRootNames']())_0xf7d901[_0x1c8b1f]='';}if('string'==typeof _0xf7d901&&(_0xf7d901={'main':_0xf7d901}),void 0x0===_0x2466b0){_0x2466b0={};for(const _0x3370bf of this['editor']['model']['document']['getRootNames']())_0x2466b0[_0x3370bf]={};}let _0x1377ef=!0x1;const _0xca9587=Object['keys'](_0xf7d901),_0x1e579c=Object['keys'](_0x3b6c89);for(const _0x191254 of _0xca9587){if(_0xf7d901[_0x191254]!==_0x3b6c89[_0x191254]&&''!==_0xf7d901[_0x191254]['trim']()){_0x1377ef=!0x0;break;}if(!_0x8c730e(_0x2466b0[_0x191254],_0x2e7c3e[_0x191254])&&Object['keys'](_0x2466b0[_0x191254])['length']>0x0){_0x1377ef=!0x0;break;}}_0x1377ef||(_0x1377ef=_0x1e579c['some'](_0x22ae40=>!this['editor']['model']['document']['getRoot'](_0x22ae40))),_0x1377ef&&_0xf47d20('editor-initial-data-replaced-with-revision-data',{'editorData':_0xf7d901,'editorRootsAttributes':_0x2466b0,'revisionData':_0x3b6c89,'revisionRootsAttributes':_0x2e7c3e}),this['editor']['config']['set']('initialData',_0x3b6c89),this['editor']['config']['set']('rootsAttributes',_0x2e7c3e);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x36792b=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x36792b['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x1f6cce){const _0x8ee6c4=this['repository']['getRevisions']();_0x8ee6c4['reverse']();let _0x42c9a5=0x0;for(;_0x42c9a5<_0x8ee6c4['length'];){const _0x141b99=_0x8ee6c4[_0x42c9a5];if(_0x141b99===this['currentRevision']){_0x42c9a5++;continue;}if(_0x141b99['id']===this['_initialRevisionId'])break;const _0x368390=_0x1f6cce['toVersion']-_0x141b99['toVersion']||_0x1f6cce['fromVersion']-_0x141b99['fromVersion'];if(_0x368390>0x0)break;if(_0x368390<0x0)_0x42c9a5++;else{if(!_0x1f6cce['creator']&&_0x141b99['creator'])break;if(_0x141b99['creator']||!_0x1f6cce['creator']){if(_0x1f6cce['createdAt']>_0x141b99['createdAt'])break;_0x42c9a5++;}else _0x42c9a5++;}}return _0x42c9a5;}['_getFromVersion'](_0x377f49){const _0x5c0417=this['repository']['getRevisions']();_0x5c0417['reverse'](),_0x5c0417['shift']();const _0x34deec=_0x5c0417['find'](_0x5eb5f1=>_0x5eb5f1['toVersion']<=_0x377f49)['toVersion'];return _0x34deec<this['_startingVersion']?this['_startingVersion']:_0x34deec;}['_makeRevision']({name:_0xbc3428,from:_0xe53acc,to:_0x46aaf2,creatorId:_0x4fb006,id:_0x5d1596}){const _0x1e3c3e=this['buildRevisionData']({'from':_0xe53acc,'to':_0x46aaf2});_0x1e3c3e['name']=_0xbc3428,_0x1e3c3e['creatorId']=_0x4fb006,_0x1e3c3e['id']=_0x5d1596;const _0x1a7c29=this['addRevisionData'](_0x1e3c3e);return this['adapter']&&this['_bufferUpdate'](_0x1e3c3e['id'],_0x1e3c3e,!0x0),_0x1a7c29;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class E{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x196d01){this['editor']=_0x196d01,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'](_0x5d29a3){this['source']=_0x5d29a3;const _0xe1d5d0=new Map(),_0x538540=new Map(),_0x4d3f21=this['editor']['model']['document']['roots']['map'](_0x1cd415=>_0x1cd415['rootName']);for(const _0x4bf5a5 of _0x4d3f21){const _0x2f78ec=this['editor']['model']['document']['getRoot'](_0x4bf5a5),_0x882965=x(_0x2f78ec);_0xe1d5d0['set'](_0x4bf5a5,_0x882965),_0x538540['set'](_0x4bf5a5,Object['fromEntries'](_0x2f78ec['getAttributes']()));}const _0xa1bfa0=Array['from'](this['editor']['model']['markers'])['map'](_0x648f05=>[_0x648f05['name'],_0x648f05['getRange']()]),_0x37249b=this['source']['version'];this['_saveMetaData'](_0x37249b,_0xe1d5d0,_0xa1bfa0,_0x538540),this['_startingRevisionId']=this['_revisionId'];const _0x48169f=new Map(),_0x2a768a=new Map();for(const _0xb74fd8 of _0x4d3f21){const _0x1666e3=N(_0xb74fd8);_0x48169f['set'](_0xb74fd8,_0x1666e3),_0x2a768a['set'](_0xb74fd8,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x48169f,[],_0x2a768a);}['getData'](_0x101f1f,_0x14d4e5){if(this['_lastFrom']===_0x101f1f&&this['_lastTo']<=_0x14d4e5)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x14d4e5,!0x0);else{if(!this['_savedMetaData']['has'](_0x101f1f)){const _0x3d3fb1=this['_getPreviousFrom'](_0x101f1f);this['_calculateMetaData'](_0x3d3fb1,_0x101f1f,!0x1);}this['_calculateMetaData'](_0x101f1f,_0x14d4e5,!0x0);}return this['_lastFrom']=_0x101f1f,this['_lastTo']=_0x14d4e5,this['_getState']();}['loadState'](_0x3342dd){if(!this['_savedMetaData']['has'](_0x3342dd['fromVersion'])){const _0x41e925=this['_getPreviousFrom'](_0x3342dd['fromVersion']);this['_calculateMetaData'](_0x41e925,_0x3342dd['fromVersion'],!0x1);}this['_calculateMetaData'](_0x3342dd['fromVersion'],_0x3342dd['toVersion'],!0x1);const _0x4506c6=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x3342dd['fromVersion'],this['_lastTo']=_0x3342dd['toVersion'];for(const _0x302a40 in _0x3342dd['diffData']){const _0x34e5c1=_0x3342dd['diffData'][_0x302a40]['attachChange'],_0x112f41=_0xff908a(_0x3342dd['diffData'][_0x302a40]['attributesBefore'])||{},_0x2200f2=_0x4506c6['_makeModelFromViewString'](_0x3342dd['diffData'][_0x302a40]['deletions']);_0x2200f2['rootName']=_0x302a40,_0x2200f2['_isAttached']=!_0x34e5c1||!_0x34e5c1['isAttached'],_0x2200f2['isAttached']=()=>_0x2200f2['_isAttached'],this['_baseRoots']['set'](_0x302a40,_0x2200f2),this['_baseRootsAttributes']['set'](_0x302a40,_0x112f41),_0x34e5c1&&this['_touchedRoots']['set'](_0x302a40,_0x34e5c1);const _0x4daedf=this['_makeIdsRoot'](_0x2200f2);this['_baseIdsRoots']['set'](_0x302a40,_0x4daedf);for(const [_0x4ee652,_0xf789b1]of _0x2200f2['markers']){if(!_0x4ee652['startsWith']('revision:'))continue;const _0x34efa5=_0x4ee652['split'](':')[0x2];for(const _0x49ce05 of _0xf789b1['getWalker']({'singleCharacters':!0x0})){const _0x5e7835=this['_getVidAttributeName'](_0x49ce05),_0xf62131='elementEnd'==_0x49ce05['type']?_0x49ce05['previousPosition']['path']['slice'](0x0,-0x1):_0x49ce05['previousPosition']['path'],_0x551cfd=_0x4daedf['getNodeByPath'](_0xf62131)['getAttribute'](_0x5e7835);this['_touched']['set'](_0x551cfd,{'userId':_0x34efa5});}_0x2200f2['markers']['delete'](_0x4ee652);}}this['_startingRevisionId']=this['_revisionId'];const _0x50bd14=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x54dfe8=>!this['_touched']['has'](_0x54dfe8));let _0x59ed4c=0x0;const _0x4bb7ac=new Map();for(const _0x1dce94 in _0x3342dd['diffData']){const _0x252cd0=_0x3342dd['diffData'][_0x1dce94]['attachChange'],_0x2fc042=_0xff908a(_0x3342dd['diffData'][_0x1dce94]['attributesAfter'])||{},_0x4e4f35=_0x4506c6['_makeModelFromViewString'](_0x3342dd['diffData'][_0x1dce94]['insertions']);_0x4e4f35['rootName']=_0x1dce94,_0x4e4f35['_isAttached']=!_0x252cd0||_0x252cd0['isAttached'],_0x4e4f35['isAttached']=()=>_0x4e4f35['_isAttached'],this['_diffRoots']['set'](_0x1dce94,_0x4e4f35),this['_diffRootsAttributes']['set'](_0x1dce94,_0x2fc042);const _0x56ca36=this['_makeIdsRoot'](_0x4e4f35,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x1dce94,_0x56ca36),_0x4bb7ac['set'](_0x1dce94,_0x4e4f35['isAttached']()?_0x2fc042:{});for(const [_0xb5a62a,_0x38033c]of _0x4e4f35['markers']){if(!_0xb5a62a['startsWith']('revision:'))continue;const _0x121b73=_0xb5a62a['split'](':')[0x2];for(const _0x458670 of _0x38033c['getWalker']({'singleCharacters':!0x0})){const _0x11d415=this['_getVidAttributeName'](_0x458670),_0x5e6007=this['_revisionId']++,_0x2d9d18='elementEnd'==_0x458670['type']?_0x458670['previousPosition']['path']['slice'](0x0,-0x1):_0x458670['previousPosition']['path'];_0x56ca36['getNodeByPath'](_0x2d9d18)['_setAttribute'](_0x11d415,_0x5e6007),this['_touched']['set'](_0x5e6007,{'userId':_0x121b73});}_0x4e4f35['markers']['delete'](_0xb5a62a);}for(const _0x1c8c6c of this['editor']['model']['createRangeIn'](_0x4e4f35)['getWalker']({'singleCharacters':!0x0})){const _0x2ac677=this['_getVidAttributeName'](_0x1c8c6c),_0x3427b0='elementEnd'==_0x1c8c6c['type']?_0x1c8c6c['previousPosition']['path']['slice'](0x0,-0x1):_0x1c8c6c['previousPosition']['path'],_0x4e18a9=_0x56ca36['getNodeByPath'](_0x3427b0);_0x4e18a9['getAttribute'](_0x2ac677)>0x0||_0x4e18a9['_setAttribute'](_0x2ac677,_0x50bd14[_0x59ed4c++]);}for(const [_0xf8fa61,_0x2850f8]of _0x4e4f35['markers'])_0xf8fa61['startsWith']('revision:')||this['_markers']['set'](_0xf8fa61,_0x2850f8);}const {roots:_0x53e171}=this['_savedMetaData']['get'](_0x3342dd['fromVersion']),{roots:_0x4df240}=this['_savedMetaData']['get'](_0x3342dd['toVersion']),_0x45d2cc=x(_0x53e171['get']('$graveyard'));this['_baseRoots']['set']('$graveyard',_0x45d2cc),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x45d2cc,Number['NEGATIVE_INFINITY']));const _0x13bf11=x(_0x4df240['get']('$graveyard'));this['_diffRoots']['set']('$graveyard',_0x13bf11),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x13bf11));const _0x2bbe70=Array['from'](this['_diffRoots'])['map'](([_0x3bcff5,_0x59ea44])=>[_0x3bcff5,x(_0x59ea44)]);this['_saveMetaData'](this['_lastTo'],_0x2bbe70,this['_markers'],_0x4bb7ac);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x10a368,_0x587924,_0x1ebbf7,_0x58732a){const _0x1cb7da=new Map(_0x587924),_0x1c7f2f=new Map(_0xff908a(_0x58732a)),_0x47443d=new Map();for(const [_0x29046e,_0x4a5d88]of _0x1ebbf7)_0x47443d['set'](_0x29046e,{'start':_0x4a5d88['start']['clone'](),'end':_0x4a5d88['end']['clone'](),'rootName':_0x4a5d88['root']['rootName']});this['_savedMetaData']['set'](_0x10a368,{'roots':_0x1cb7da,'markers':_0x47443d,'rootsAttributes':_0x1c7f2f});}['_removeMetaData'](_0x27eb59){this['_savedMetaData']['delete'](_0x27eb59);}['_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'](_0xfea13a,_0x48f148=null){let _0x5972fe=null;_0xfea13a['is']('documentFragment')||(_0x5972fe=new _0x1d82bc(_0xfea13a['name'],{'vid_start':null===_0x48f148?this['_revisionId']++:_0x48f148++}));const _0x55567f=[];for(const _0x4b2fde of _0xfea13a['getChildren']())if(_0x4b2fde['is']('element')){_0x55567f['push'](this['_makeIdsRoot'](_0x4b2fde,_0x48f148));const _0x3b2785=_0x55567f[_0x55567f['length']-0x1];null!==_0x48f148&&(_0x48f148=_0x3b2785['is']('element','$text')?_0x3b2785['getAttribute']('vid')+0x1:_0x3b2785['getAttribute']('vid_end')+0x1);}else{for(let _0x65fae=0x0;_0x65fae<_0x4b2fde['offsetSize'];_0x65fae++)_0x55567f['push'](new _0x1d82bc('$text',{'vid':null===_0x48f148?this['_revisionId']++:_0x48f148++}));}if(_0xfea13a['is']('documentFragment')){const _0x42eaac=N(_0xfea13a['rootName']);return _0x42eaac['_insertChild'](0x0,_0x55567f),_0x42eaac;}return _0x5972fe['_setAttribute']('vid_end',null===_0x48f148?this['_revisionId']++:_0x48f148++),_0x5972fe['_insertChild'](0x0,_0x55567f),_0x5972fe;}['_calculateMetaData'](_0x14f376,_0x5dc33f,_0x2e4b9f){this['_reset']();const {roots:_0xb9197a,markers:_0x2ee2e3,rootsAttributes:_0x5acdaf}=this['_savedMetaData']['get'](_0x14f376);this['_baseRoots']=new Map(_0xb9197a),this['_baseRootsAttributes']=new Map(_0xff908a(_0x5acdaf));for(const [_0x1b3629,_0x3af5e0]of this['_baseRoots'])if('$graveyard'!==_0x1b3629&&(this['_diffRoots']['set'](_0x1b3629,x(_0x3af5e0)),this['_diffRootsAttributes']=new Map(_0xff908a(_0x5acdaf)),_0x2e4b9f)){const _0x4c47de=this['_revisionId'];this['_idsRoots']['set'](_0x1b3629,this['_makeIdsRoot'](_0x3af5e0)),this['_baseIdsRoots']['set'](_0x1b3629,this['_makeIdsRoot'](_0x3af5e0,_0x4c47de));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x2e4b9f&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x5b0ee8,_0x241127]of _0x2ee2e3){const _0x16fc7f=this['_baseRoots']['get'](_0x241127['rootName']),_0x14000e=this['_diffRoots']['get'](_0x241127['rootName']),_0x213ea2=new _0x35d140(this['_fixPosition'](_0x241127['start'],_0x16fc7f),this['_fixPosition'](_0x241127['end'],_0x16fc7f)),_0xb6754c=this['_fixRange'](_0x213ea2,_0x14000e);_0x16fc7f['markers']['set'](_0x5b0ee8,_0x213ea2),this['_markers']['set'](_0x5b0ee8,_0xb6754c);}this['_applyOperations'](_0x14f376,_0x5dc33f,_0x2e4b9f);}['_applyOperations'](_0x3f4f6c,_0x5bc0cd,_0x1fbaa4){for(const _0x4268f8 of this['source']['getOperations'](_0x3f4f6c,_0x5bc0cd))this['_handleOperation'](_0x4268f8,_0x1fbaa4);for(const _0x1c4653 of this['_diffRoots']['values']())_0x1c4653['markers']['clear']();for(const [_0x2e6509,_0x2f21b8]of this['_markers']){this['_diffRoots']['get'](_0x2f21b8['root']['rootName'])['markers']['set'](_0x2e6509,_0x2f21b8['clone']());}const _0x1acfb2=new Map(),_0x22c219=new Map();for(const [_0x66040,_0x2a2284]of this['_diffRoots'])_0x1acfb2['set'](_0x66040,x(_0x2a2284)),_0x22c219['set'](_0x66040,this['_diffRootsAttributes']['get'](_0x66040));this['_saveMetaData'](_0x5bc0cd,_0x1acfb2,this['_markers'],_0x22c219);}['_getPreviousFrom'](_0x478f7f){const _0xe30e64=Array['from'](this['_savedMetaData']['keys']());_0xe30e64['sort']((_0x51d599,_0x127076)=>_0x51d599-_0x127076),_0xe30e64['reverse']();for(const _0x24ed86 of _0xe30e64)if(_0x24ed86<_0x478f7f)return _0x24ed86;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x595cb6,_0x4b2df9){const _0x5efe08=Array['from'](_0x4b2df9['markers'])['map'](([_0x4e8177,_0x109025])=>[_0x4e8177,this['_fixRange'](_0x109025,_0x595cb6)]);_0x595cb6['markers']=new Map(_0x5efe08);}['_transformMarkers'](_0x2fb9dc){for(const _0x55a63a of this['_markers']['values']()){const _0xaafc92=_0x55a63a['getTransformedByOperation'](_0x2fb9dc),_0x2cff86=_0x35d140['_createFromRanges'](_0xaafc92);_0x55a63a['start']=_0x2cff86['start'],_0x55a63a['end']=_0x2cff86['end'];}}['_handleOperation'](_0x63f3dc,_0x2e6124){if('addRoot'!=_0x63f3dc['type']&&'detachRoot'!=_0x63f3dc['type']){if('insert'==_0x63f3dc['type']){const _0x36d433=_0x63f3dc['position']['root']['rootName'];this['_diffRoots']['has'](_0x36d433)||(this['_diffRoots']['set'](_0x36d433,N(_0x36d433,!0x0)),this['_diffRootsAttributes']['set'](_0x36d433,{}),_0x2e6124&&this['_idsRoots']['set'](_0x36d433,N(_0x36d433,!0x0)));}else{if('addRootAttribute'==_0x63f3dc['type']||'removeRootAttribute'==_0x63f3dc['type']||'changeRootAttribute'==_0x63f3dc['type'])return void this['_handleRootAttributeOperation'](_0x63f3dc);'marker'==_0x63f3dc['type']&&this['_handleMarkerOperation'](_0x63f3dc);}if('marker'!==_0x63f3dc['type']){const _0xed8a7a=this['_cloneOperation'](_0x63f3dc,this['_diffRoots']);_0xed8a7a['_execute'](),this['_transformMarkers'](_0xed8a7a);}if(_0x2e6124)switch(_0x63f3dc['type']){case'insert':this['_handleInsertOperation'](_0x63f3dc);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x63f3dc);break;case'merge':this['_handleMergeOperation'](_0x63f3dc);break;case'split':this['_handleSplitOperation'](_0x63f3dc);}}else this['_handleRootOperation'](_0x63f3dc,_0x2e6124);}['_cloneOperation'](_0x1c1759,_0x14b560){const _0x5449cd=_0x1c1759['clone']();return _0x5449cd['_authorId']=_0x1c1759['_authorId'],this['_fixOperation'](_0x5449cd,_0x14b560),_0x5449cd;}['_getBaseVids'](_0x1acf0e){return _0x1acf0e['map'](_0x5771b5=>{const _0x4e5ecd=this['_getVidAttributeName'](_0x5771b5);return Number(_0x5771b5['item']['getAttribute'](_0x4e5ecd));});}['_generateTape'](_0x33a198,_0x389d64){if(_0x33a198['is']('element','$text'))_0x389d64['push']({'item':_0x33a198,'type':'text'});else{_0x33a198['is']('element')&&_0x389d64['push']({'item':_0x33a198,'type':'elementStart'});for(const _0x37dfff of _0x33a198['getChildren']())this['_generateTape'](_0x37dfff,_0x389d64);_0x33a198['is']('element')&&_0x389d64['push']({'item':_0x33a198,'type':'elementEnd'});}return _0x389d64;}['_getState'](){const _0x1b4693=new Map(this['_touched']),_0x1306be=new Map(_0x1b4693),_0x4eaee1=new Map(),_0x566049={'insertions':{},'deletions':{}},_0x138464={'insertions':{},'deletions':{}},_0x226639=new Map(),_0x4fcc52=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x4fcc52['delete']('$graveyard');for(const _0x3c2dd3 of _0x4fcc52){const _0x30a68b=this['_diffRoots']['get'](_0x3c2dd3)||N(_0x3c2dd3,!0x1),_0x56a206=this['_baseRoots']['get'](_0x3c2dd3)||N(_0x3c2dd3,!0x1);_0x30a68b['isAttached']()||_0x56a206['isAttached']()?(_0x566049['insertions'][_0x3c2dd3]=x(_0x30a68b),_0x566049['deletions'][_0x3c2dd3]=x(_0x56a206),this['_copyMarkers'](_0x566049['deletions'][_0x3c2dd3],_0x56a206),this['_copyMarkers'](_0x566049['insertions'][_0x3c2dd3],_0x30a68b),_0x138464['insertions'][_0x3c2dd3]=this['_generateTape'](this['_idsRoots']['get'](_0x3c2dd3),[]),_0x138464['deletions'][_0x3c2dd3]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x3c2dd3)||N(_0x3c2dd3,!0x1),[])):_0x4fcc52['delete'](_0x3c2dd3);}for(const _0x3cb1dc of _0x4fcc52){const _0x3eea85=_0x138464['insertions'][_0x3cb1dc];for(const _0x2b6fec of _0x3eea85){const _0x90d4e5=this['_getVidAttributeName'](_0x2b6fec),_0x56d217=_0x2b6fec['item']['getAttribute'](_0x90d4e5);_0x1306be['delete'](_0x56d217),_0x56d217>=this['_startingRevisionId']&&_0x4eaee1['set'](_0x56d217,_0x1b4693['get'](_0x56d217));}}for(const _0x55886a of _0x4fcc52){const _0x12d777=_0x138464['insertions'][_0x55886a],_0x178629=this['_getBaseVids'](_0x138464['deletions'][_0x55886a]);let _0x40e4b1=0x0;for(const _0x56bdb6 of _0x12d777){const _0x37e601=this['_getVidAttributeName'](_0x56bdb6),_0x32426d=_0x56bdb6['item']['getAttribute'](_0x37e601);if(!_0x4eaee1['has'](_0x32426d)&&!_0x226639['has'](_0x32426d)){if(_0x1306be['has'](_0x32426d))_0x40e4b1++;else{if(_0x32426d!=_0x178629[_0x40e4b1]){const _0x5ce9f6=_0x1b4693['get'](_0x32426d)||_0x1b4693['get'](_0x178629[_0x40e4b1]);for(;_0x32426d!=_0x178629[_0x40e4b1];)_0x1306be['has'](_0x178629[_0x40e4b1])||(_0x226639['set'](_0x178629[_0x40e4b1],_0x5ce9f6),_0x1b4693['set'](_0x178629[_0x40e4b1],_0x5ce9f6)),_0x40e4b1++;}_0x40e4b1++;}}}}for(const _0x55ffa2 of _0x4fcc52){const _0x598e05=_0x138464['insertions'][_0x55ffa2];for(const _0x1fc230 of _0x598e05){const _0x19d4df=this['_getVidAttributeName'](_0x1fc230),_0xc9dafd=_0x1fc230['item']['getAttribute'](_0x19d4df);if(_0x226639['has'](_0xc9dafd)){const _0x1d246e=_0x226639['get'](_0xc9dafd);_0x1306be['has'](_0xc9dafd)||_0x1306be['set'](_0xc9dafd,{..._0x1d246e}),_0x4eaee1['set'](_0xc9dafd,{..._0x1d246e});}}}for(const _0x456d0c of _0x1306be['keys']())_0x456d0c>=this['_startingRevisionId']&&_0x1306be['delete'](_0x456d0c);const _0x871103=new Map();for(const _0x2ab30e of _0x4fcc52){let _0x5ebb73=_0x138464['insertions'][_0x2ab30e];for(const _0x11af52 of _0x5ebb73)if(_0x11af52['item']['is']('element','tableCell')){const _0x4af295=this['_getVidAttributeName'](_0x11af52),_0x516922=_0x11af52['item']['getAttribute'](_0x4af295);if(_0x4eaee1['has'](_0x516922)){const _0x4b4339=_0x11af52['item']['parent']['parent']['getAttribute']('vid_start'),_0x35f829=_0x871103['get'](_0x4b4339)||new Set();_0x35f829['add'](_0x4eaee1['get'](_0x516922)['userId']),_0x871103['set'](_0x4b4339,_0x35f829);}}_0x5ebb73=_0x138464['deletions'][_0x2ab30e];for(const _0x45a00a of _0x5ebb73)if(_0x45a00a['item']['is']('element','tableCell')){const _0x3a004c=this['_getVidAttributeName'](_0x45a00a),_0x38304c=_0x45a00a['item']['getAttribute'](_0x3a004c);if(_0x1306be['has'](_0x38304c)){const _0x1a000b=_0x45a00a['item']['parent']['parent']['getAttribute']('vid_start'),_0x463af7=_0x871103['get'](_0x1a000b)||new Set();_0x463af7['add'](_0x1306be['get'](_0x38304c)['userId']),_0x871103['set'](_0x1a000b,_0x463af7);}}for(const _0x2e40de of _0x871103['keys']())(_0x4eaee1['has'](_0x2e40de)||_0x1306be['has'](_0x2e40de))&&_0x871103['delete'](_0x2e40de);}for(const _0x50a6f9 of _0x4fcc52){const _0x20a094=_0x138464['insertions'][_0x50a6f9];let _0xb4fd4f=null,_0x3765e9=null;for(const _0x368087 of _0x20a094){const _0x273943=this['_getVidAttributeName'](_0x368087),_0x54fa5a=_0x368087['item']['getAttribute'](_0x273943),_0x156c69=_0x871103['get'](_0x54fa5a);_0x156c69&&'elementStart'==_0x368087['type']&&(_0xb4fd4f=Array['from'](_0x156c69)[0x0],_0x3765e9=_0x368087['item']['getAttribute']('vid_end')),_0xb4fd4f&&(_0x1306be['set'](_0x54fa5a,{'userId':_0xb4fd4f}),_0x4eaee1['set'](_0x54fa5a,{'userId':_0xb4fd4f})),_0x54fa5a==_0x3765e9&&(_0xb4fd4f=null,_0x3765e9=null);}}const _0xe622aa={},_0x321cf0=new Set();for(const _0x2c726c of _0x4fcc52){const _0x12dd52=_0x566049['deletions'][_0x2c726c],_0x2d5250=_0x566049['insertions'][_0x2c726c];for(const {userId:_0x57bd58}of this['_touchedMarkers']['values']())null!==_0x57bd58&&_0x321cf0['add'](_0x57bd58);for(const {userId:_0xed9d5}of this['_touchedRoots']['values']())null!==_0xed9d5&&_0x321cf0['add'](_0xed9d5);this['_markChanges'](_0x2d5250,_0x138464['insertions'][_0x2c726c],_0x4eaee1,'insertion',_0x321cf0),this['_markChanges'](_0x12dd52,_0x138464['deletions'][_0x2c726c],_0x1306be,'deletion',_0x321cf0),_0xe622aa[_0x2c726c]={'insertions':this['_prepareViewToSave'](_0x2d5250),'deletions':this['_prepareViewToSave'](_0x12dd52),'attachChange':this['_touchedRoots']['get'](_0x2c726c)||null,'attributesBefore':_0xff908a(this['_baseRootsAttributes']['get'](_0x2c726c))||{},'attributesAfter':_0xff908a(this['_diffRootsAttributes']['get'](_0x2c726c))};}return{'diffData':_0xe622aa,'authorsIds':Array['from'](_0x321cf0)};}['_processRootBeforeSave'](_0x370d9f){for(const [,_0x465cd3]of _0x370d9f['markers']){const _0x1ec0f1=_0x465cd3['start']['getAncestors']()['filter'](_0x54adf6=>'tableCell'==_0x54adf6['name']);for(const _0x792b77 of _0x1ec0f1)0x1==_0x792b77['childCount']&&_0x792b77['getChild'](0x0)['is']('element','paragraph')&&_0x792b77['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x2ef8cb){this['_processRootBeforeSave'](_0x2ef8cb);const _0x2e2287=this['editor']['data']['toView'](_0x2ef8cb,{}),_0x486384=Array['from'](_0x2e2287['getChildren']())['map'](_0x17823c=>this['_getViewJson'](_0x17823c));return JSON['stringify'](_0x486384);}['_getViewJson'](_0x5333d9){if(_0x5333d9['is']('$text'))return _0x5333d9['data'];{const _0x4afd3c=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x5036b3=_0x5333d9,_0x5607d1=this['editor']['data']['htmlProcessor']['domConverter'],_0x5611fe={'type':_0x4afd3c['_getTypeCharForViewElement'](_0x5036b3),'name':_0x5036b3['name'],'attributes':Array['from'](_0x5036b3['getAttributes']()),'children':Array['from'](_0x5036b3['getChildren']())['map'](_0x4cb5c4=>this['_getViewJson'](_0x4cb5c4))};if(_0x5333d9['is']('uiElement')&&'$comment'!=_0x5333d9['name']){const _0x372fed=_0x5333d9['render'](_0x5607d1['domDocument'],_0x5607d1);_0x5611fe['children']['push'](_0x372fed['outerHTML']);}else{if(_0x5333d9['is']('rawElement')){const _0x5e9ba5=_0x5607d1['domDocument']['createElement'](_0x5036b3['name']);_0x5333d9['render'](_0x5e9ba5,_0x5607d1),_0x5611fe['children']['push'](_0x5e9ba5['innerHTML']);}}const _0x32e6ad=Array['from'](_0x5036b3['getCustomProperties']());_0x32e6ad['length']>0x0&&(_0x5611fe['customProperties']=_0x32e6ad);const _0x15ccdc=_0x5036b3['getFillerOffset']();return null!==_0x15ccdc&&(_0x5611fe['fillerOffset']=_0x15ccdc),_0x5611fe;}}['_markChanges'](_0x4923ab,_0x4f79a4,_0x30b087,_0x20dd2c,_0x5826cd){let _0x4b93c6=null,_0x12cffd=null,_0x133668=0x0;const _0x16fef3=this['editor']['model'];for(let _0x4ec9b1=0x0;_0x4ec9b1<_0x4f79a4['length'];_0x4ec9b1++){const _0x5e3bf5=this['_getVidAttributeName'](_0x4f79a4[_0x4ec9b1]),_0x344e39=_0x4f79a4[_0x4ec9b1]['item']['getAttribute'](_0x5e3bf5),_0x58a34f=_0x30b087['get'](_0x344e39),_0x3e7df2=_0x4ec9b1==_0x4f79a4['length']-0x1;(!_0x4b93c6&&_0x58a34f&&(_0x4b93c6=_0x58a34f,_0x12cffd=_0x4f79a4[_0x4ec9b1]),_0x4b93c6&&(!_0x58a34f||_0x58a34f['userId']!=_0x4b93c6['userId']))&&(_0x259767(_0x58a34f,P(_0x12cffd,_0x4923ab,_0x16fef3),P(_0x4f79a4[_0x4ec9b1],_0x4923ab,_0x16fef3)),_0x4b93c6=_0x58a34f||null,_0x12cffd=_0x58a34f?_0x4f79a4[_0x4ec9b1]:null),_0x4b93c6&&_0x3e7df2&&_0x259767(_0x58a34f,P(_0x12cffd,_0x4923ab,_0x16fef3),V(_0x4f79a4[_0x4ec9b1],_0x4923ab,_0x16fef3));}function _0x259767(_0x1e6ce7,_0x322118,_0x2f0006){const _0x32669b=_0x4b93c6['userId'],_0x35f053='revision:'+_0x20dd2c+':'+_0x32669b+':'+_0x133668++,_0x1dad00=_0x16fef3['createRange'](_0x322118,_0x2f0006);_0x4923ab['markers']['set'](_0x35f053,_0x1dad00),null!==_0x32669b&&_0x5826cd['add'](_0x32669b);}}['_getVidAttributeName'](_0x2388c2){switch(_0x2388c2['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x50349e,_0x28bf90){_0x50349e['baseVersion']=null;for(const _0x49b6e9 in _0x50349e){const _0x52b295=_0x50349e[_0x49b6e9];if(_0x52b295 instanceof _0x2cb078){const _0x91f5bf=_0x28bf90['get'](_0x52b295['root']['rootName']);_0x50349e[_0x49b6e9]=this['_fixPosition'](_0x52b295,_0x91f5bf);}if(_0x52b295 instanceof _0x35d140){const _0x205865=_0x28bf90['get'](_0x52b295['root']['rootName']);_0x50349e[_0x49b6e9]=this['_fixRange'](_0x52b295,_0x205865);}'root'===_0x49b6e9&&(_0x50349e['root']=_0x28bf90['get'](_0x50349e['root']['rootName']));}}['_fixRange'](_0x29977c,_0x49f47f){return this['editor']['model']['createRange'](this['_fixPosition'](_0x29977c['start'],_0x49f47f),this['_fixPosition'](_0x29977c['end'],_0x49f47f));}['_fixPosition'](_0x4da883,_0x1f75c9){return this['editor']['model']['createPositionFromPath'](_0x1f75c9,_0x4da883['path'],_0x4da883['stickiness']);}['_handleInsertOperation'](_0x56b8ec){const _0xff8c40=this['_idsRoots']['get'](_0x56b8ec['position']['root']['rootName']),_0x42a3c6=this['_fixPosition'](_0x56b8ec['position'],_0xff8c40),_0x303b21=null===_0x56b8ec['_authorId']?null:_0x56b8ec['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1eeadd=_0x42a3c6['parent'],_0x2c53ed=this['_revisionId'],_0x5d40ce=[];for(const _0x4fdbfd of _0x56b8ec['nodes'])if(_0x4fdbfd['is']('element'))_0x5d40ce['push'](this['_makeIdsRoot'](_0x4fdbfd));else{for(let _0x50b5be=0x0;_0x50b5be<_0x4fdbfd['offsetSize'];_0x50b5be++)_0x5d40ce['push'](new _0x1d82bc('$text',{'vid':this['_revisionId']++}));}const _0x2f698b=this['_revisionId'];for(let _0x352f17=_0x2c53ed;_0x352f17<_0x2f698b;_0x352f17++)this['_touched']['set'](_0x352f17,{'userId':_0x303b21});_0x1eeadd['_insertChild'](_0x42a3c6['offset'],_0x5d40ce);}['_handleMoveOperation'](_0x2f8c5e){(_0x2f8c5e=this['_cloneOperation'](_0x2f8c5e,this['_idsRoots']))['_execute']();const _0x76774c=null===_0x2f8c5e['_authorId']?null:_0x2f8c5e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x414a08=_0x2f8c5e['getMovedRangeStart'](),_0x2983f4=_0x414a08['parent'],_0x42003d=_0x414a08['offset'];!function _0x4e0ba4(_0x525a2e,_0x503885,_0x39213a,_0x1f920d){for(let _0x1587b4=_0x39213a;_0x1587b4<_0x1f920d;_0x1587b4++){const _0x2ae730=_0x503885['getChild'](_0x1587b4);_0x2ae730['is']('element','$text')?_0x525a2e['set'](_0x2ae730['getAttribute']('vid'),{'userId':_0x76774c}):(_0x525a2e['set'](_0x2ae730['getAttribute']('vid_start'),{'userId':_0x76774c}),_0x4e0ba4(_0x525a2e,_0x2ae730,0x0,_0x2ae730['childCount']),_0x525a2e['set'](_0x2ae730['getAttribute']('vid_end'),{'userId':_0x76774c}));}}(this['_touched'],_0x2983f4,_0x42003d,_0x42003d+_0x2f8c5e['howMany']);}['_handleMergeOperation'](_0x4ca8e7){const _0x24041d=null===(_0x4ca8e7=this['_cloneOperation'](_0x4ca8e7,this['_idsRoots']))['_authorId']?null:_0x4ca8e7['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5e76a4=_0x4ca8e7['targetPosition']['parent'],_0x9b9209=_0x4ca8e7['sourcePosition']['parent'],_0x21a926=_0x5e76a4['getAttribute']('vid_end'),_0x3f75b0=_0x9b9209['getAttribute']('vid_start');_0x5e76a4['_setAttribute']('vid_end',_0x9b9209['getAttribute']('vid_end')),_0x9b9209['_setAttribute']('vid_end',_0x21a926),this['_touched']['set'](_0x3f75b0,{'userId':_0x24041d}),this['_touched']['set'](_0x21a926,{'userId':_0x24041d}),_0x4ca8e7['_execute']();}['_handleSplitOperation'](_0x5b9097){const _0x20586b=null===(_0x5b9097=this['_cloneOperation'](_0x5b9097,this['_idsRoots']))['_authorId']?null:_0x5b9097['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4832cd=_0x5b9097['graveyardPosition'],_0x132903=_0x5b9097['splitPosition']['parent'];_0x5b9097['_execute']();const _0x5eafdd=_0x132903['getAttribute']('vid_end'),_0x317ba1=_0x5b9097['insertionPosition']['nodeAfter'];if(_0x4832cd){const _0x18769a=_0x317ba1['getAttribute']('vid_end'),_0x32c0a2=_0x132903['getAttribute']('vid_end');_0x132903['_setAttribute']('vid_end',_0x18769a),_0x317ba1['_setAttribute']('vid_end',_0x32c0a2),this['_touched']['set'](_0x132903['getAttribute']('vid_end'),{'userId':_0x20586b}),this['_touched']['set'](_0x317ba1['getAttribute']('vid_start'),{'userId':_0x20586b});}else{const _0x2d1ded=this['_revisionId']++,_0x1a1105=this['_revisionId']++;_0x132903['_setAttribute']('vid_end',_0x2d1ded),_0x317ba1['_setAttribute']('vid_start',_0x1a1105),_0x317ba1['_setAttribute']('vid_end',_0x5eafdd),this['_touched']['set'](_0x2d1ded,{'userId':_0x20586b}),this['_touched']['set'](_0x1a1105,{'userId':_0x20586b});}}['_handleMarkerOperation'](_0x3ea07b){if(!_0x3ea07b['affectsData'])return;const _0xf943b7=(_0x3ea07b=this['_cloneOperation'](_0x3ea07b,this['_diffRoots']))['oldRange']?_0x3ea07b['oldRange']['root']:null,_0x2b4808=_0x3ea07b['newRange']?_0x3ea07b['newRange']['root']:null;_0xf943b7&&this['_markers']['delete'](_0x3ea07b['name']),_0x2b4808&&this['_markers']['set'](_0x3ea07b['name'],_0x3ea07b['newRange']['clone']());const _0x2d895f=null===_0x3ea07b['_authorId']?null:_0x3ea07b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x28a696=_0x3ea07b['name'];if(!this['_touchedMarkers']['has'](_0x28a696))return void this['_touchedMarkers']['set'](_0x28a696,{'range':_0x3ea07b['oldRange'],'userId':_0x2d895f});const _0x36d5f9=this['_touchedMarkers']['get'](_0x28a696),_0x4998bf=_0x36d5f9['range'],_0xc4bb08=_0x3ea07b['newRange'];null==_0x4998bf&&null==_0xc4bb08||_0x4998bf&&_0xc4bb08&&_0x4998bf['isEqual'](_0xc4bb08)?this['_touchedMarkers']['delete'](_0x3ea07b['name']):_0x36d5f9['userId']=_0x2d895f;}['_handleRootOperation'](_0x39603a,_0x6eb78f){this['_diffRoots']['has'](_0x39603a['rootName'])?this['_diffRoots']['get'](_0x39603a['rootName'])['_isAttached']=_0x39603a['isAdd']:(this['_diffRoots']['set'](_0x39603a['rootName'],N(_0x39603a['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x39603a['rootName'],{}),_0x6eb78f&&this['_idsRoots']['set'](_0x39603a['rootName'],N(_0x39603a['rootName'],!0x0)));const _0x44be1c=null===_0x39603a['_authorId']?null:_0x39603a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2f1824=this['_touchedRoots']['get'](_0x39603a['rootName']);_0x2f1824&&_0x2f1824['userId']===_0x44be1c?this['_touchedRoots']['delete'](_0x39603a['rootName']):this['_touchedRoots']['set'](_0x39603a['rootName'],{'userId':_0x44be1c,'isAttached':_0x39603a['isAdd']});}['_handleRootAttributeOperation'](_0x31f3ea){const _0x2717b8=this['_diffRootsAttributes']['get'](_0x31f3ea['root']['rootName']);null===_0x31f3ea['newValue']?delete _0x2717b8[_0x31f3ea['key']]:_0x2717b8[_0x31f3ea['key']]=_0x31f3ea['newValue'];}}function x(_0x28a9c8){const _0x46eaf5=N(_0x28a9c8['rootName'],_0x28a9c8['isAttached']());for(const _0x537856 of _0x28a9c8['getChildren']()){const _0x3dedff=_0x537856['_clone'](!0x0);_0x46eaf5['_appendChild'](_0x3dedff);}return _0x46eaf5;}function N(_0xc256c7,_0x1097cd=!0x0){const _0x2ab8c3=new _0x5878c9();return _0x2ab8c3['rootName']=_0xc256c7,_0x2ab8c3['_isAttached']=_0x1097cd,_0x2ab8c3['isAttached']=()=>_0x2ab8c3['_isAttached'],_0x2ab8c3;}function P(_0x583b49,_0x3e4fd1,_0x474813){const _0xa3d1cc='elementEnd'==_0x583b49['type']?_0x474813['createPositionAt'](_0x583b49['item'],'end'):_0x474813['createPositionBefore'](_0x583b49['item']);return _0x474813['createPositionFromPath'](_0x3e4fd1,_0xa3d1cc['path'],_0xa3d1cc['stickiness']);}function V(_0xaee6eb,_0x34342d,_0x509afe){const _0x5a5c60='elementStart'==_0xaee6eb['type']?_0x509afe['createPositionAt'](_0xaee6eb['item'],0x0):_0x509afe['createPositionAfter'](_0xaee6eb['item']);return _0x509afe['createPositionFromPath'](_0x34342d,_0x5a5c60['path'],_0x5a5c60['stickiness']);}class me extends/* #__PURE__ -- @preserve */
|
|
25
|
-
|
|
26
|
-
_0x57943b(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x4a27f0){super(),this['id']=_0x4a27f0['id']||_0x2d5220(),this['author']=_0x4a27f0['author'],this['type']=_0x4a27f0['type'],this['data']=_0x4a27f0['data']||{},this['rootName']=_0x4a27f0['rootName'],this['set']('createdAt',_0x4a27f0['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class J{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x5a533c,_0x1bad7d){this['newRevisionId']=_0x5a533c,this['oldRevisionId']=_0x1bad7d,this['changes']=new _0x5a818f();}['_setChanges'](_0x2853d9){for(const _0x220882 of _0x2853d9)this['changes']['add'](_0x220882);}}class u extends _0x16d9db{['repository'];['adapter']=null;['_utils'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x22ce6c,_0x541e9a,S,$];}constructor(_0x51d59b){super(_0x51d59b),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x15cd3c,_0x474596,_0x19c8f5)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x5b10fb=>{for(const _0x4cecb9 of this['editor']['editing']['view']['document']['roots'])_0x19c8f5?_0x5b10fb['removeClass']('ck-editor__editable__overlay',_0x4cecb9):_0x5b10fb['addClass']('ck-editor__editable__overlay',_0x4cecb9);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x258d5b=>null!==_0x258d5b),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x2b9759,_0x3d1f06,_0x125071)=>_0x2b9759&&_0x125071?_0x3d1f06['changes']['getIndex'](_0x125071):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x2321a1,_0x428c10)=>_0x2321a1?_0x428c10['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x541e9a);}['init'](){const _0x30669a=this['editor'],_0x5376cf=new rt(_0x30669a,{'direction':'backward'}),_0x29f564=new rt(_0x30669a,{'direction':'forward'});(_0x30669a['commands']['add']('showPreviousChange',_0x5376cf),_0x30669a['commands']['add']('showNextChange',_0x29f564),_0x30669a['commands']['add']('restoreRevision',new nt(_0x30669a)),this['on']('change:numberOfChanges',()=>{_0x5376cf['refresh'](),_0x29f564['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x30669a['enableReadOnlyMode']('revision-viewer'),_0x30669a['plugins']['has']('WidgetToolbarRepository'))&&_0x30669a['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x4dee88){return await this['_utils']['loadRevisionData'](_0x4dee88,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x4dee88);}async['getRevisionRootsAttributes'](_0x370e0c){return await this['_utils']['loadRevisionData'](_0x370e0c,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x370e0c);}async['compare'](_0x219332,_0x4ebae0,_0x54d401=!0x1){if(!this['isEnabled'])return;const _0x4449a7=this['diff'],_0x3ee408=this['repository'],_0x374eca='string'==typeof _0x219332?_0x3ee408['getRevision'](_0x219332):_0x219332,_0x5ea0ec='string'==typeof _0x4ebae0?_0x3ee408['getRevision'](_0x4ebae0):_0x4ebae0,_0xc71d7c=_0x374eca['id'],_0x23567e=_0x5ea0ec?_0x5ea0ec['id']:null;if(!_0x54d401&&this['diff']&&this['diff']['newRevisionId']===_0xc71d7c&&this['diff']['oldRevisionId']===_0x23567e)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0xc71d7c,_0x23567e);const _0x54fd06=this['_getRevisionsRange'](_0x374eca,_0x5ea0ec,!0x0)['map'](_0x1e02e9=>this['_utils']['loadRevisionData'](_0x1e02e9,this['adapter']));return _0x54fd06['push'](new Promise(_0x140cd9=>{setTimeout(_0x140cd9,0x14);})),Promise['all'](_0x54fd06)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x168a59=this['_getDiff'](_0xc71d7c,_0x23567e);for(const _0x3acc80 of _0x168a59['changes'])this['_changeIdToChange']['set'](_0x3acc80['id'],_0x3acc80);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x1c1b06=>{for(const _0x196e8a of this['editor']['model']['document']['getRootNames']())_0x1c1b06['detachRoot'](_0x196e8a);for(const _0x1df66b of Object['keys'](_0x168a59['model'])){const _0x2adf84=_0x1c1b06['addRoot'](_0x1df66b);for(const _0x3ee512 of Object['keys'](_0x168a59['attributes'][_0x1df66b]))_0x1c1b06['setAttribute'](_0x3ee512,_0x168a59['attributes'][_0x1df66b][_0x3ee512],_0x2adf84);_0x1c1b06['insert'](_0x168a59['model'][_0x1df66b],_0x2adf84,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x168a59['changes'])),this['isReady']=!0x0;})['catch'](_0x5e6d41=>{console['error'](_0x5e6d41),this['_cleanUp'](),_0x4449a7&&(this['diff']=_0x4449a7),this['isReady']=!0x0;});}['addRevisionData'](_0x122c4b,_0x1b3ad2){const _0x320c22=this['repository']['createRevision'](_0x122c4b);return _0x320c22['on']('_update',(_0x5db02a,_0x45f143,_0x3e72bf)=>_0x1b3ad2(_0x45f143,_0x3e72bf,_0x320c22)),this['repository']['addRevision'](_0x320c22),_0x320c22;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x4c4220=>{for(const _0x77d969 of this['editor']['model']['document']['getRootNames']())_0x4c4220['detachRoot'](_0x77d969);});}['_sortAndFilterDiffChanges'](_0x2d0678){const _0x54a6d3=[],_0x58af17=new Map();for(const _0x129196 of this['editor']['model']['document']['getRootNames']()){const _0x33b6d7=this['editor']['editing']['view']['getDomRoot'](_0x129196);if(!_0x33b6d7)continue;const _0x1fca7c=_0x33b6d7['getClientRects']()['item'](0x0);_0x1fca7c&&(_0x54a6d3['push'](_0x129196),_0x58af17['set'](_0x129196,_0x1fca7c));}return _0x54a6d3['sort']((_0x461ce2,_0x34ec52)=>{const _0x21d5b5=_0x58af17['get'](_0x461ce2),_0x28b55f=_0x58af17['get'](_0x34ec52);return _0x21d5b5['y']-_0x28b55f['y']||_0x21d5b5['x']-_0x28b55f['x'];}),(_0x2d0678=_0x2d0678['filter'](_0x3e8fe0=>_0x54a6d3['includes'](_0x3e8fe0['rootName'])))['sort']((_0x28985d,_0x452ee6)=>_0x54a6d3['indexOf'](_0x28985d['rootName'])-_0x54a6d3['indexOf'](_0x452ee6['rootName'])),_0x2d0678;}['_makeTape'](_0x39bd14){const _0xd9c9e1=Array['from'](_0x39bd14['markers'])['filter'](([_0x172d31,_0x1acd05])=>_0x172d31['startsWith']('revision:')&&!_0x1acd05['isCollapsed']),_0x177f78=Array['from'](this['editor']['model']['createRangeIn'](_0x39bd14)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0xd9c9e1['length'])for(const _0x246ae6 of _0x177f78){const [_0x5e99f9,_0x1c522e]=_0xd9c9e1[0x0],[,_0x3635b5,_0x1f8d7f]=_0x5e99f9['split'](':');if(_0x1c522e['end']['isEqual'](_0x246ae6['nextPosition'])&&_0xd9c9e1['shift'](),(_0x246ae6['previousPosition']['isEqual'](_0x1c522e['start'])||_0x246ae6['previousPosition']['isAfter'](_0x1c522e['start']))&&('insertion'==_0x3635b5?_0x246ae6['isAdded']={'userId':_0x1f8d7f}:'deletion'==_0x3635b5&&(_0x246ae6['isRemoved']={'userId':_0x1f8d7f})),0x0==_0xd9c9e1['length'])break;}return _0x177f78;}['_refreshStartEndIndex'](_0x24a8f2){const _0x410f73=new Map();for(let _0x414c84=0x0;_0x414c84<_0x24a8f2['length'];_0x414c84++)'text'===_0x24a8f2[_0x414c84]['type']?(_0x24a8f2[_0x414c84]['item']['startIndex']=_0x414c84,_0x24a8f2[_0x414c84]['item']['endIndex']=_0x414c84):('elementStart'===_0x24a8f2[_0x414c84]['type']?_0x24a8f2[_0x414c84]['item']['startIndex']=_0x414c84:'elementEnd'===_0x24a8f2[_0x414c84]['type']&&(_0x24a8f2[_0x414c84]['item']['endIndex']=_0x414c84),_0x410f73['set'](_0x24a8f2[_0x414c84]['id'],_0x414c84));for(const _0x8bed64 of _0x410f73['values']())'elementStart'===_0x24a8f2[_0x8bed64]['type']?_0x24a8f2[_0x8bed64]['item']['endIndex']=_0x410f73['get'](_0x24a8f2[_0x8bed64]['pairId']):'elementEnd'===_0x24a8f2[_0x8bed64]['type']&&(_0x24a8f2[_0x8bed64]['item']['startIndex']=_0x410f73['get'](_0x24a8f2[_0x8bed64]['pairId']));}['_processTape'](_0x486f53){for(let _0x428450=0x0;_0x428450<_0x486f53['length'];_0x428450++){if('elementStart'===_0x486f53[_0x428450]['type'])_0x486f53[_0x428450]['item']['startIndex']=_0x428450;else{if('elementEnd'===_0x486f53[_0x428450]['type']){_0x486f53[_0x428450]['item']['endIndex']=_0x428450;const _0x182dca=_0x486f53[_0x428450]['item']['startIndex'];_0x486f53[_0x182dca]['pairId']=_0x486f53[_0x428450]['id'],_0x486f53[_0x428450]['pairId']=_0x486f53[_0x182dca]['id'];}else _0x486f53[_0x428450]['item']['startIndex']=_0x428450,_0x486f53[_0x428450]['item']['endIndex']=_0x428450,_0x486f53[_0x428450]['pairId']=null;}_0x486f53[_0x428450]['markersStart']||(_0x486f53[_0x428450]['markersStart']=[],_0x486f53[_0x428450]['markersEnd']=[]);}}['_markInsertions'](_0x4d66,_0x4d7ea1){const _0x4fef70=_0x4d66['filter'](_0x1f4eef=>!_0x1f4eef['isAdded']);for(let _0x8a98db=0x0;_0x8a98db<_0x4d7ea1['length'];_0x8a98db++)_0x4d7ea1[_0x8a98db]['isAdded']&&(_0x4fef70[_0x8a98db]['isAdded']=_0x4d7ea1[_0x8a98db]['isAdded']);}['_getDiff'](_0x3f567d,_0x5b2f9e=null){const _0x3ac622=this['repository']['getRevision'](_0x3f567d),_0x336537=_0x5b2f9e?this['repository']['getRevision'](_0x5b2f9e):null,_0x28ba59=this['_getRevisionsRange'](_0x3ac622,_0x336537),_0x575b58=_0x28ba59[_0x28ba59['length']-0x1],_0x4f544e=new Map(),_0x2a9e89={'model':{},'attributes':{},'changes':[]},_0x4f0726=new Set(),_0x53587d=new Map();for(let _0x2ec7ff=_0x28ba59['length']-0x1;_0x2ec7ff>=0x0;_0x2ec7ff--){const _0x3ea268=_0x28ba59[_0x2ec7ff];for(const _0x1b2c10 of Object['keys'](_0x3ea268['diffData']))if(_0x3ea268['diffData'][_0x1b2c10]['attachChange']){const _0x2acda9=_0x3ea268['diffData'][_0x1b2c10]['attachChange'];_0x2acda9['isAttached']?(_0x4f0726['add'](_0x1b2c10),_0x53587d['has'](_0x1b2c10)&&_0x53587d['get'](_0x1b2c10)['userId']==_0x2acda9['userId']?_0x53587d['delete'](_0x1b2c10):_0x53587d['set'](_0x1b2c10,_0x2acda9)):_0x53587d['has'](_0x1b2c10)?(_0x4f0726['delete'](_0x1b2c10),_0x53587d['delete'](_0x1b2c10)):(_0x4f0726['add'](_0x1b2c10),_0x53587d['set'](_0x1b2c10,_0x2acda9));}else _0x4f0726['add'](_0x1b2c10);}for(const _0x4a587c of _0x4f0726){const _0x291a8c=_0x53587d['has'](_0x4a587c)&&!_0x53587d['get'](_0x4a587c)['isAttached'];let _0x57e7f5=_0x291a8c?_0x28ba59['length']-0x1:0x0;const _0x555b17=_0x291a8c?-0x1:0x1;for(;_0x28ba59[_0x57e7f5];){const _0x51c645=_0x28ba59[_0x57e7f5];if(_0x51c645['diffData'][_0x4a587c]){const _0x4147fd=_0x291a8c?_0x51c645['diffData'][_0x4a587c]['attributesBefore']:_0x51c645['diffData'][_0x4a587c]['attributesAfter'];_0x2a9e89['attributes'][_0x4a587c]=_0x4147fd?_0xff908a(_0x4147fd):{};break;}_0x57e7f5+=_0x555b17;}}for(const _0x5eb25d of _0x28ba59){_0x5eb25d['model']={};for(const _0x104089 of _0x5eb25d['authors'])_0x4f544e['set'](_0x104089['id'],_0x104089);for(const _0x553021 of _0x4f0726){const _0x2a161c=_0x5eb25d['diffData'][_0x553021]?_0x5eb25d['diffData'][_0x553021]['insertions']:'[]',_0xbeae35=_0x5eb25d['diffData'][_0x553021]?_0x5eb25d['diffData'][_0x553021]['deletions']:'[]';_0x5eb25d['model'][_0x553021]={'insertions':this['_utils']['_makeModelFromViewString'](_0x2a161c),'deletions':this['_utils']['_makeModelFromViewString'](_0xbeae35)};}}for(const _0x408a17 of _0x4f0726){let _0x32f033=null,_0x43a6ec=0x0;const _0x142a06=new Map(Array['from'](_0x3ac622['model'][_0x408a17]['insertions']['markers'])['filter'](([_0x563e7a])=>!_0x563e7a['startsWith']('revision:')));let _0x4992a3=0x0;for(const _0x3759c2 of _0x28ba59){const _0x1de544=this['_makeTape'](_0x3759c2['model'][_0x408a17]['insertions']);_0x3759c2==_0x3ac622?(_0x32f033=_0x1de544,_0x43a6ec=_0x32f033['length'],_0x32f033['forEach'](_0xcefc26=>{_0xcefc26['id']=_0x4992a3++;}),this['_processTape'](_0x32f033)):this['_markInsertions'](_0x32f033,_0x1de544);const _0x429bcc=_0x32f033['filter'](_0x431107=>!_0x431107['isAdded'])['map'](_0x463556=>_0x463556['id']);let _0x1a786=0x0;const _0x5811d9=this['_makeTape'](_0x3759c2['model'][_0x408a17]['deletions']);_0x5811d9['forEach'](_0x86a555=>{_0x86a555['isRemoved']?_0x86a555['id']=_0x43a6ec++:_0x86a555['id']=_0x429bcc[_0x1a786++];}),this['_processTape'](_0x5811d9),this['_setDistance'](_0x32f033,'isAdded'),this['_setDistance'](_0x5811d9,'isRemoved'),_0x3759c2==_0x3ac622&&this['_markMarkers'](_0x32f033,_0x142a06),_0x32f033=this['_joinTapes'](_0x32f033,_0x5811d9),this['_refreshStartEndIndex'](_0x32f033),this['_setDistance'](_0x32f033,'isRemoved');}_0x32f033=_0x32f033['filter'](_0x5bec17=>!(_0x5bec17['isAdded']&&_0x5bec17['isRemoved']));const _0xa71e29=new Map(_0x575b58['model'][_0x408a17]['deletions']['markers']),_0x3061e7=new Set(_0x142a06['keys']());for(const _0xbb3d3e of _0xa71e29['keys']())_0x3061e7['delete'](_0xbb3d3e);this['_markSuggestions'](_0x32f033,_0x3061e7),this['_fixObsoleteTags'](_0x32f033),_0x32f033=this['_removeMissingPairs'](_0x32f033),_0x32f033=this['_markMismatchedRemovedTags'](_0x32f033),_0x32f033=this['_removeUnsupportedChanges'](_0x32f033);const {root:_0x2ba574,changes:_0x36c9a6}=this['_makeModelFromTape'](_0x32f033,_0x4f544e,_0x408a17);_0x2a9e89['model'][_0x408a17]=_0x2ba574;const _0x560e14=_0x53587d['get'](_0x408a17);if(_0x560e14){const _0x5c70d3=_0x4f544e['get'](_0x560e14['userId']),_0x10eb5a=new G({'author':_0x5c70d3,'type':_0x560e14['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x408a17});_0x36c9a6['unshift'](_0x10eb5a),_0x2a9e89['attributes'][_0x408a17]['revisionHistoryAttachChange']=_0x10eb5a['id'];}_0x2a9e89['changes']=_0x2a9e89['changes']['concat'](_0x36c9a6);}return _0x2a9e89;}['_markMarkers'](_0x2bc2ed,_0x4b0930){for(let _0x52a9af=0x0;_0x52a9af<_0x2bc2ed['length'];_0x52a9af++)for(const [_0x1de373,_0x5cd2e8]of _0x4b0930)!_0x5cd2e8['isCollapsed']&&_0x5cd2e8['start']['isEqual'](_0x2bc2ed[_0x52a9af]['previousPosition'])&&_0x2bc2ed[_0x52a9af]['markersStart']['push'](_0x1de373),_0x5cd2e8['end']['isEqual'](_0x2bc2ed[_0x52a9af]['nextPosition'])&&_0x2bc2ed[_0x52a9af]['markersEnd']['push'](_0x1de373);}['_joinTapes'](_0x133238,_0x2cb2d3){let _0x47ce8e=[],_0x5e6139=0x0,_0x19c257=0x0;for(;_0x5e6139<_0x133238['length']||_0x19c257<_0x2cb2d3['length'];){const _0x41967b=_0x133238[_0x5e6139]||{},_0x14c8bd=_0x2cb2d3[_0x19c257]||{};if(_0x41967b['id']==_0x14c8bd['id'])_0x5e6139++,_0x19c257++,_0x47ce8e['push'](_0x41967b);else{if(_0x14c8bd['isRemoved']&&_0x41967b['isAdded']){const {commonTape:_0x32e2be,iEnd:_0x1aa11f,jEnd:_0x24a3b7}=this['_threeWayMerge'](_0x133238,_0x5e6139,_0x2cb2d3,_0x19c257);_0x47ce8e=_0x47ce8e['concat'](_0x32e2be),_0x5e6139=_0x1aa11f,_0x19c257=_0x24a3b7;}else _0x14c8bd['isRemoved']?(_0x19c257++,_0x47ce8e['push'](_0x14c8bd)):(_0x5e6139++,_0x47ce8e['push'](_0x41967b));}}return _0x47ce8e;}['_markSuggestions'](_0x268001,_0x4e7ce8){const _0x3ec491=[];for(let _0x3165d6=0x0;_0x3165d6<_0x268001['length'];_0x3165d6++){for(let _0x4ad80e=0x0;_0x4ad80e<_0x268001[_0x3165d6]['markersStart']['length'];_0x4ad80e++){const _0x11378f=_0x268001[_0x3165d6]['markersStart'][_0x4ad80e];if(!_0x4e7ce8['has'](_0x11378f))continue;const {group:_0x1c7155,type:_0x590d35,authorId:_0x3c3ec5}=_0x450187(_0x11378f);'revision-suggestion'!=_0x1c7155||'insertion'!=_0x590d35&&'deletion'!=_0x590d35||(_0x3ec491['unshift']({'type':_0x590d35,'name':_0x11378f,'userId':_0x3c3ec5}),_0x268001[_0x3165d6]['markersStart']['splice'](_0x4ad80e,0x1),_0x4ad80e--);}_0x424ed9(_0x268001[_0x3165d6]);for(let _0x3d1246=0x0;_0x3d1246<_0x268001[_0x3165d6]['markersEnd']['length'];_0x3d1246++){const _0x239b5c=_0x268001[_0x3165d6]['markersEnd'][_0x3d1246];if(!_0x4e7ce8['has'](_0x239b5c))continue;const {group:_0x39e6c1,type:_0x4a3ca0}=_0x450187(_0x239b5c);if('revision-suggestion'!=_0x39e6c1||'insertion'!=_0x4a3ca0&&'deletion'!=_0x4a3ca0)continue;_0x268001[_0x3165d6]['markersEnd']['splice'](_0x3d1246,0x1),_0x3d1246--;const _0x2ee711=_0x3ec491['findIndex'](_0x1beb07=>_0x1beb07['name']==_0x239b5c);_0x2ee711>-0x1&&_0x3ec491['splice'](_0x2ee711,0x1);}}function _0x450187(_0x3f4141){const _0x5d60da=_0x3f4141['split'](':');return{'group':_0x5d60da[0x0],'type':_0x5d60da[0x1],'subType':_0x5d60da['length']>=0x5?_0x5d60da[0x2]:null,'id':_0x5d60da['length']<0x5?_0x5d60da[0x2]:_0x5d60da[0x3],'authorId':_0x5d60da['length']<0x5?_0x5d60da[0x3]:_0x5d60da[0x4],'markerCount':0x6==_0x5d60da['length']?_0x5d60da[0x5]:null};}function _0x424ed9(_0x143c16){for(let _0x4d3996=0x0;_0x4d3996<_0x3ec491['length'];_0x4d3996++){if(_0x143c16['isAdded']&&'insertion'==_0x3ec491[_0x4d3996]['type']&&_0x143c16['isAdded']['userId']==_0x3ec491[_0x4d3996]['userId'])return _0x143c16['isAddSuggestion']=_0x3ec491[_0x4d3996],void delete _0x143c16['isAdded'];if(!_0x143c16['isAdded']&&!_0x143c16['isRemoved']&&'deletion'==_0x3ec491[_0x4d3996]['type'])return void(_0x143c16['isRemoveSuggestion']=_0x3ec491[_0x4d3996]);}}}['_setDistance'](_0x2ebfc5,_0x43e236){let _0x142b2e=0x0,_0xda7dff=!0x1;const _0x5bca9e=new Map();for(const _0x4c6d11 of _0x2ebfc5)_0x4c6d11[_0x43e236]?_0xda7dff&&(_0x142b2e++,_0xda7dff=!0x1):(_0x142b2e++,_0xda7dff=!0x0),_0x5bca9e['set'](_0x4c6d11['id'],_0x142b2e);for(let _0x44fcc3=0x0;_0x44fcc3<_0x2ebfc5['length'];_0x44fcc3++){if('isRemoved'==_0x43e236&&_0x2ebfc5[_0x44fcc3]['isAdded']||'isAdded'==_0x43e236&&_0x2ebfc5[_0x44fcc3]['isRemoved'])continue;if('text'==_0x2ebfc5[_0x44fcc3]['type']){_0x2ebfc5[_0x44fcc3]['distance']=0x0;continue;}const _0x47b482=_0x5bca9e['get'](_0x2ebfc5[_0x44fcc3]['pairId']),_0x13bac2=_0x5bca9e['get'](_0x2ebfc5[_0x44fcc3]['id']);_0x2ebfc5[_0x44fcc3]['distance']=_0x47b482-_0x13bac2;}}['_getRevisionsRange'](_0xd0f3b6,_0x5da5e9,_0x3749c0=!0x1){const _0x464463=[];let _0x54e784=this['repository']['getIndex'](_0xd0f3b6),_0x525dfd=this['repository']['getIndex'](_0x5da5e9);for(-0x1==_0x525dfd&&(_0x525dfd=this['repository']['_revisions']['length'],_0x3749c0=!0x1);_0x54e784<_0x525dfd;)_0x464463['push'](this['repository']['getRevision'](_0x54e784)),_0x54e784++;return _0x3749c0&&_0x464463['push'](this['repository']['getRevision'](_0x54e784)),_0x464463;}['_threeWayMerge'](_0x1745f0,_0x3d55d0,_0x18fbca,_0x1aedb8){const _0x49c747=this['editor']['model']['schema'];let _0x555a1f=_0x3d55d0;for(;_0x1745f0[_0x555a1f]&&_0x1745f0[_0x555a1f]['isAdded'];)_0x555a1f++;let _0x1a0d14=_0x1aedb8;for(;_0x18fbca[_0x1a0d14]&&_0x18fbca[_0x1a0d14]['isRemoved'];)_0x1a0d14++;_0xcd0916(_0x1745f0,_0x3d55d0,_0x555a1f),_0xcd0916(_0x18fbca,_0x1aedb8,_0x1a0d14);const _0x4f3e06=_0x18fbca['slice'](_0x1aedb8,_0x1a0d14)['concat'](_0x1745f0['slice'](_0x3d55d0,_0x555a1f));return _0x4f3e06['sort']((_0x4369fe,_0x2d6670)=>_0x4369fe['side']!=_0x2d6670['side']?_0x4369fe['side']-_0x2d6670['side']:_0x4369fe['level']!=_0x2d6670['level']?_0x4369fe['level']-_0x2d6670['level']:_0x4369fe['distance']!=_0x2d6670['distance']?_0x2d6670['distance']-_0x4369fe['distance']:!!_0x4369fe['isAdded']!=!!_0x2d6670['isAdded']?-0x1==_0x4369fe['side']||0x0==_0x4369fe['side']?_0x4369fe['isAdded']?-0x1:0x1:_0x4369fe['isAdded']?0x1:-0x1:_0x4369fe['index']-_0x2d6670['index']),{'commonTape':_0x4f3e06,'iEnd':_0x555a1f,'jEnd':_0x1a0d14};function _0xcd0916(_0x1eb8f7,_0x4c7e63,_0x1e1511){let _0x280194=-0x1,_0xdb3e8a=Number['POSITIVE_INFINITY'],_0x2378b5=!0x0;for(let _0x2048ec=_0x4c7e63;_0x2048ec<_0x1e1511;_0x2048ec++)if(_0x49c747['isInline'](_0x1eb8f7[_0x2048ec]['item'])||(_0x2378b5=!0x1),_0x1eb8f7[_0x2048ec]['item']['startIndex']<_0x4c7e63&&(_0x280194=_0x2048ec),_0x1eb8f7[_0x2048ec]['item']['endIndex']>=_0x1e1511){_0xdb3e8a=_0x2048ec;break;}_0x2378b5&&(_0x280194=_0x1e1511-0x1);for(let _0x4f8b2c=_0x4c7e63;_0x4f8b2c<_0x1e1511;_0x4f8b2c++)_0x1eb8f7[_0x4f8b2c]['side']=_0x4f8b2c<=_0x280194?-0x1:_0x4f8b2c<_0xdb3e8a?0x0:0x1,_0x1eb8f7[_0x4f8b2c]['index']=_0x4f8b2c;let _0x5dcbc7=0x0;for(let _0x1f2a71=_0x4c7e63;_0x1f2a71<=_0x280194;_0x1f2a71++)0x0==_0x1eb8f7[_0x1f2a71]['distance']?_0x1eb8f7[_0x1f2a71]['level']=_0x5dcbc7:(_0x5dcbc7++,_0x1eb8f7[_0x1f2a71]['level']=_0x5dcbc7,_0x5dcbc7++);for(let _0x56631c=_0x4c7e63;_0x56631c<_0x1e1511;_0x56631c++)0x0==_0x1eb8f7[_0x56631c]['side']&&(_0x1eb8f7[_0x56631c]['level']=_0x5dcbc7);_0x5dcbc7=0x0;for(let _0x49533c=_0x1e1511-0x1;_0x49533c>=_0xdb3e8a;_0x49533c--)0x0==_0x1eb8f7[_0x49533c]['distance']?_0x1eb8f7[_0x49533c]['level']=_0x5dcbc7:(_0x5dcbc7--,_0x1eb8f7[_0x49533c]['level']=_0x5dcbc7,_0x5dcbc7--);}}['_fixObsoleteTags'](_0x5cb835){const _0x36a3f8=new Map(),_0x56f889=this['editor']['model']['schema'];for(let _0x49fec6=0x1;_0x49fec6<_0x5cb835['length'];_0x49fec6++){let _0x44598d,_0x5d92ef,_0x1479bc;const _0x35e267=_0x5cb835[_0x49fec6],_0xe8eb0e=_0x5cb835[_0x49fec6-0x1];if('text'==_0x35e267['type'])continue;if(_0x35e267['type']!=_0xe8eb0e['type'])continue;if(!_0x56f889['isBlock'](_0xe8eb0e['item'])||_0x56f889['isLimit'](_0xe8eb0e['item']))continue;if(!_0x56f889['isBlock'](_0x35e267['item'])||_0x56f889['isLimit'](_0x35e267['item']))continue;if((_0x5cb835[_0x49fec6]['isAdded']||_0x5cb835[_0x49fec6]['isAddSuggestion'])&&_0x5cb835[_0x49fec6-0x1]['isRemoved'])_0x44598d=_0x5cb835[_0x49fec6],_0x5d92ef=_0x5cb835[_0x49fec6-0x1],_0x1479bc=_0x49fec6-0x1;else{if(!_0x5cb835[_0x49fec6]['isRemoved']||!_0x5cb835[_0x49fec6-0x1]['isAdded']&&!_0x5cb835[_0x49fec6-0x1]['isAddSuggestion'])continue;_0x44598d=_0x5cb835[_0x49fec6-0x1],_0x5d92ef=_0x5cb835[_0x49fec6],_0x1479bc=_0x49fec6;}const _0x1e065e=_0x44598d['level']==_0x5d92ef['level'],_0x41114f=Math['abs'](_0x44598d['level'])<Math['abs'](_0x5d92ef['level'])&&0x0==_0x5d92ef['distance'];(_0x1e065e||_0x41114f)&&(_0x36a3f8['set'](_0x5d92ef['id'],_0x44598d['id']),_0x5cb835['splice'](_0x1479bc,0x1),_0x49fec6--,_0x44598d['isAdded']=!0x1);}for(let _0xe16640=0x0;_0xe16640<_0x5cb835['length'];_0xe16640++)_0x36a3f8['has'](_0x5cb835[_0xe16640]['pairId'])&&(_0x5cb835[_0xe16640]['pairId']=_0x36a3f8['get'](_0x5cb835[_0xe16640]['pairId']));}['_removeMissingPairs'](_0x4b83da){const _0x34e910=new Set(_0x4b83da['map'](_0x307b6d=>_0x307b6d['id']));for(let _0x5218b6=0x0;_0x5218b6<_0x4b83da['length'];_0x5218b6++)_0x34e910['has'](_0x4b83da[_0x5218b6]['pairId'])||0x0==_0x4b83da[_0x5218b6]['distance']||(_0x4b83da[_0x5218b6]['isIncorrect']=!0x0);return _0x4b83da['filter'](_0x892352=>!_0x892352['isIncorrect']);}['_markMismatchedRemovedTags'](_0x184455){const _0x1b592c=new Set();for(let _0x16e236=0x0;_0x16e236<_0x184455['length'];_0x16e236++){if(_0x1b592c['has'](_0x184455[_0x16e236]['id'])&&_0x184455[_0x16e236]['isRemoved']&&(_0x184455[_0x16e236]['isIncorrect']=!0x0),_0x184455[_0x16e236]['isIncorrect'])continue;if(0x0==_0x184455[_0x16e236]['distance'])continue;if('elementStart'!=_0x184455[_0x16e236]['type'])continue;if(null==_0x184455[_0x16e236]['pairId'])continue;let _0x3b3aa6=_0x16e236+0x1,_0x403795=0x0;for(;_0x184455[_0x3b3aa6]['id']!=_0x184455[_0x16e236]['pairId'];)'elementStart'==_0x184455[_0x3b3aa6]['type']?_0x403795++:'elementEnd'==_0x184455[_0x3b3aa6]['type']&&_0x403795--,_0x3b3aa6++;if(0x0!=_0x403795){if(_0x184455[_0x16e236]['isRemoved'])_0x184455[_0x16e236]['isIncorrect']=!0x0;else{for(;_0x3b3aa6!=_0x16e236;)_0x184455[_0x3b3aa6]['isRemoved']&&0x0!=_0x184455[_0x3b3aa6]['distance']&&(_0x184455[_0x3b3aa6]['isIncorrect']=!0x0,_0x1b592c['add'](_0x184455[_0x3b3aa6]['pairId'])),_0x3b3aa6--;}}}return _0x184455['filter'](_0x4ebe6a=>!_0x4ebe6a['isIncorrect']);}['_removeUnsupportedChanges'](_0x4fe589){const _0x40714e=this['editor']['model']['schema'];for(let _0xf236a4=0x0;_0xf236a4<_0x4fe589['length'];_0xf236a4++){if(!(_0x4fe589[_0xf236a4]['isAdded']||_0x4fe589[_0xf236a4]['isAddSuggestion']||_0x4fe589[_0xf236a4]['isRemoved']||_0x4fe589[_0xf236a4]['isRemoveSuggestion']))continue;if(0x0==_0x4fe589[_0xf236a4]['distance'])continue;const _0x553f01=_0x4fe589[_0xf236a4]['item'];_0x40714e['isBlock'](_0x553f01)||_0x40714e['isLimit'](_0x553f01)||(_0x4fe589[_0xf236a4]['isAdded']&&delete _0x4fe589[_0xf236a4]['isAdded'],_0x4fe589[_0xf236a4]['isAddSuggestion']&&delete _0x4fe589[_0xf236a4]['isAddSuggestion'],_0x4fe589[_0xf236a4]['isRemoveSuggestion']&&delete _0x4fe589[_0xf236a4]['isRemoveSuggestion'],_0x4fe589[_0xf236a4]['isRemoved']&&(_0x4fe589[_0xf236a4]['isIncorrect']=!0x0));}return _0x4fe589['filter'](_0x52f5f6=>!_0x52f5f6['isIncorrect']);}['_makeModelFromTape'](_0x3b84bb,_0x15c01f,_0x553c36){const _0x5cb2de=new _0x5878c9(),_0x23bd0d=[],_0x248143=new Map(),_0x306013=this['editor']['model'],_0x4c4a7e=_0x306013['schema'],_0x4811cc=[_0x5cb2de],_0x248b6e={},_0x35b1e1={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x1681c9=null;const _0xc91d62=[0x0];for(let _0x56f337=0x0;_0x56f337<_0x3b84bb['length'];_0x56f337++)if('elementStart'===_0x3b84bb[_0x56f337]['type']){_0x3b84bb[_0x56f337]['previousPosition']=_0x306013['createPositionFromPath'](_0x5cb2de,_0xc91d62);const _0xc69e53=new _0x1d82bc(_0x3b84bb[_0x56f337]['item']['name'],_0x3b84bb[_0x56f337]['item']['getAttributes']());_0x4811cc[0x0]['_appendChild'](_0xc69e53),_0xc91d62['push'](0x0),_0x4811cc['unshift'](_0xc69e53),_0x3b84bb[_0x56f337]['nextPosition']=_0x306013['createPositionFromPath'](_0x5cb2de,_0xc91d62);}else'elementEnd'===_0x3b84bb[_0x56f337]['type']?(_0x4811cc['shift'](),_0x3b84bb[_0x56f337]['previousPosition']=_0x306013['createPositionFromPath'](_0x5cb2de,_0xc91d62),_0xc91d62['pop'](),_0xc91d62[_0xc91d62['length']-0x1]++,_0x3b84bb[_0x56f337]['nextPosition']=_0x306013['createPositionFromPath'](_0x5cb2de,_0xc91d62)):(_0x3b84bb[_0x56f337]['previousPosition']=_0x306013['createPositionFromPath'](_0x5cb2de,_0xc91d62),_0x1681c9?_0x1681c9['_data']+=_0x3b84bb[_0x56f337]['item']['data']:_0x1681c9=new _0x16216d(_0x3b84bb[_0x56f337]['item']['data'],_0x3b84bb[_0x56f337]['item']['getAttributes']()),_0x3b84bb[_0x56f337+0x1]&&'text'===_0x3b84bb[_0x56f337+0x1]['type']&&_0xaf2e80(_0x1681c9,_0x3b84bb[_0x56f337+0x1]['item'])||(_0x4811cc[0x0]['_appendChild'](_0x1681c9),_0x1681c9=null),_0xc91d62[_0xc91d62['length']-0x1]+=_0x3b84bb[_0x56f337]['item']['offsetSize'],_0x3b84bb[_0x56f337]['nextPosition']=_0x306013['createPositionFromPath'](_0x5cb2de,_0xc91d62));for(let _0x5a0e23=0x0;_0x5a0e23<_0x3b84bb['length'];_0x5a0e23++){const _0x4b3fea=_0x3b84bb[_0x5a0e23]['previousPosition'],_0x1e6fe1=_0x3b84bb[_0x5a0e23]['nextPosition'];for(const _0x2ae9e6 of _0x3b84bb[_0x5a0e23]['markersStart'])_0x248143['set'](_0x2ae9e6,{'start':_0x4b3fea,'end':null});_0x2d4ea2('isRemoveSuggestion',_0x5a0e23,_0x4b3fea,_0x1e6fe1),_0x2d4ea2('isAddSuggestion',_0x5a0e23,_0x4b3fea,_0x1e6fe1),_0x2d4ea2('isRemoved',_0x5a0e23,_0x4b3fea,_0x1e6fe1),_0x2d4ea2('isAdded',_0x5a0e23,_0x4b3fea,_0x1e6fe1);for(const _0xae06ae of _0x3b84bb[_0x5a0e23]['markersEnd']){const _0x189a3b=_0x248143['get'](_0xae06ae);_0x189a3b?_0x189a3b['end']=_0x1e6fe1:_0x248143['set'](_0xae06ae,{'start':_0x1e6fe1,'end':_0x1e6fe1});}}for(const [_0x414f6e,_0x48ed6d]of _0x248143){const _0x4e9f15=this['editor']['model']['createRange'](_0x48ed6d['start'],_0x48ed6d['end']);_0x5cb2de['markers']['set'](_0x414f6e,_0x4e9f15);}return _0x23bd0d['sort']((_0xccd445,_0x3a5e5f)=>{const _0x16631a=_0x5cb2de['markers']['get']('revision:'+_0xccd445['id']),_0x2667b4=_0x5cb2de['markers']['get']('revision:'+_0x3a5e5f['id']);return _0x16631a['start']['isBefore'](_0x2667b4['start'])?-0x1:_0x16631a['start']['isAfter'](_0x2667b4['start'])?0x1:_0x16631a['end']['isBefore'](_0x2667b4['end'])?-0x1:_0x16631a['end']['isAfter'](_0x2667b4['end'])?0x1:'add'===_0xccd445['type']?-0x1:0x1;}),{'root':_0x5cb2de,'changes':_0x23bd0d};function _0x2d4ea2(_0x2da3ed,_0x417524,_0x5c4b86,_0x211ffc){const _0x3f9975=!!_0x3b84bb[_0x417524][_0x2da3ed],_0x44dab3=_0x3f9975?_0x3b84bb[_0x417524][_0x2da3ed]['userId']:null,_0x4bcd6a=_0x417524===_0x3b84bb['length']-0x1,_0x98c782=_0x35b1e1[_0x2da3ed][0x0],_0x5cca6e=_0x4c4a7e['isObject'](_0x3b84bb[_0x417524]['item']);!_0x248b6e[_0x2da3ed]&&_0x3f9975?_0x248b6e[_0x2da3ed]={'start':_0x5c4b86,'tapeItem':_0x3b84bb[_0x417524],'userId':_0x44dab3,'type':_0x2da3ed}:_0x248b6e[_0x2da3ed]&&!_0x3f9975?(_0x248b6e[_0x2da3ed]['end']=_0x5c4b86,_0x7d2af(_0x248b6e[_0x2da3ed]),_0x248b6e[_0x2da3ed]=null):_0x248b6e[_0x2da3ed]&&_0x3f9975&&_0x248b6e[_0x2da3ed]['userId']!==_0x44dab3&&(_0x248b6e[_0x2da3ed]['end']=_0x5c4b86,_0x98c782&&_0x98c782['userId']===_0x248b6e[_0x2da3ed]['userId']||_0x7d2af(_0x248b6e[_0x2da3ed]),_0x248b6e[_0x2da3ed]={'start':_0x5c4b86,'tapeItem':_0x3b84bb[_0x417524],'userId':_0x44dab3,'type':_0x2da3ed}),_0x248b6e[_0x2da3ed]&&_0x5cca6e&&('elementStart'!==_0x3b84bb[_0x417524]['type']||_0x98c782&&_0x98c782['userId']===_0x44dab3||_0x35b1e1[_0x2da3ed]['unshift']({'userId':_0x44dab3,'object':_0x3b84bb[_0x417524]['item'],'change':_0x248b6e[_0x2da3ed]}),'elementEnd'===_0x3b84bb[_0x417524]['type']&&_0x98c782&&_0x98c782['object']===_0x3b84bb[_0x417524]['item']&&(_0x35b1e1[_0x2da3ed]['shift'](),_0x248b6e[_0x2da3ed]=_0x98c782['change'])),_0x248b6e[_0x2da3ed]&&_0x4bcd6a&&(_0x248b6e[_0x2da3ed]['end']=_0x211ffc,_0x7d2af(_0x248b6e[_0x2da3ed]),_0x248b6e[_0x2da3ed]=null);}function _0x7d2af({start:_0x44e0d3,end:_0x1f1429,tapeItem:_0x1d6d00,userId:_0x2e9783,type:_0x33b462}){const _0x15ce68=_0x1d6d00['item'],_0x3b90c4=_0x306013['schema']['isBlock'](_0x15ce68)&&!_0x306013['schema']['isLimit'](_0x15ce68),_0x266651=_0x44e0d3['nodeAfter']==_0x1f1429['parent']&&_0x1f1429['isAtStart'];if(_0x3b90c4&&_0x266651)return;const _0x27b064=_0x306013['createRange'](_0x44e0d3,_0x1f1429),_0x5ee8d8=_0x15c01f['get'](_0x2e9783),_0x31320d=new G({'author':_0x5ee8d8,'type':'isAdded'==_0x33b462||'isAddSuggestion'==_0x33b462?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x33b462||'isRemoveSuggestion'==_0x33b462},'createdAt':new Date(),'rootName':_0x553c36});_0x23bd0d['push'](_0x31320d),_0x5cb2de['markers']['set']('revision:'+_0x31320d['id'],_0x27b064);}function _0xaf2e80(_0x296aa9,_0x3763bc){const _0x99390e=_0x296aa9['getAttributes'](),_0x1d854e=_0x3763bc['getAttributes']();for(const _0x42b5d0 of _0x99390e){if(_0x42b5d0[0x1]!==_0x3763bc['getAttribute'](_0x42b5d0[0x0]))return!0x1;_0x1d854e['next']();}return _0x1d854e['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x42101b=>{const _0x4f7b01=_0x42101b['markerName']['split'](':')[0x1],_0x4c372a=this['_getChangeFromId'](_0x4f7b01);if(!_0x4c372a)return null;const _0x4e46f7='add'==_0x4c372a['type']?'insertion':'deletion',_0x29b536=['ck-suggestion-marker','ck-suggestion-marker-'+_0x4e46f7];return _0x4c372a['data']['isSuggestion']&&_0x29b536['push']('ck-suggestion-marker-'+_0x4e46f7+'-new'),this['activeChange']==_0x4c372a&&_0x29b536['push']('ck-suggestion-marker--active'),{'classes':_0x29b536,'attributes':{'data-change-id':_0x4f7b01}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x4272cd=>{_0x4272cd['on']('element:pre',(_0x145286,_0x4c336b,_0x575f1d)=>{const _0x3fca9c=_0x4c336b['viewItem']['getChild'](0x0);if(!_0x3fca9c||!_0x3fca9c['is']('element','code'))return;if(!_0x575f1d['consumable']['consume'](_0x3fca9c,{'attributes':['vid_start','vid_end']}))return;const _0x3cfebf=_0x4c336b['modelRange']['start']['nodeAfter'];_0x575f1d['writer']['setAttribute']('vid_start',_0x3fca9c['getAttribute']('vid_start'),_0x3cfebf),_0x575f1d['writer']['setAttribute']('vid_end',_0x3fca9c['getAttribute']('vid_end'),_0x3cfebf);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0xea9c20=>{_0xea9c20['on']('element',(_0x47d759,_0x4c4598,_0xb33532)=>{if(!_0xb33532['consumable']['consume'](_0x4c4598['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x4c4598['modelRange']['isCollapsed'])return;const _0x4444e4=_0x4c4598['modelRange']['start']['nodeAfter'];_0x4444e4['hasAttribute']('vid_start')||_0x4444e4['hasAttribute']('vid')||(_0xb33532['writer']['setAttribute']('vid_start',_0x4c4598['viewItem']['getAttribute']('vid_start'),_0x4444e4),_0xb33532['writer']['setAttribute']('vid_end',_0x4c4598['viewItem']['getAttribute']('vid_end'),_0x4444e4));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x505b5a=>_0x505b5a['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x1e796f,[,_0x58da8a])=>{['vid_start','vid_end','vid']['includes'](_0x58da8a)&&(_0x1e796f['return']=!0x0,_0x1e796f['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x54b735=>{_0x54b735['on']('attribute:vid',(_0x2da93f,_0x4f8efc,_0x2e95ed)=>{if('\x20'!=_0x4f8efc['item']['data']||_0x4f8efc['item']['parent']['maxOffset']>0x1)return;if(!_0x2e95ed['consumable']['consume'](_0x4f8efc['item'],_0x2da93f['name']))return;const _0x967629=_0x2e95ed['writer'],_0x35a86b=_0x2e95ed['mapper']['toViewRange'](_0x4f8efc['range']);_0x967629['wrap'](_0x35a86b,_0x967629['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x40bc1f){const _0x22d9c6=_0x40bc1f['plugins']['get']('RevisionViewer');return(_0x5e6b35,_0x37a782,_0x430141)=>{const _0x31f065=_0x37a782['markerName']['split'](':')[0x1],_0x24bc68=_0x22d9c6['_getChangeFromId'](_0x31f065);if(!_0x24bc68)return null;const _0x44a19f='add'==_0x24bc68['type']?'split':'merge';if(!_0x430141['consumable']['test'](_0x37a782['markerRange'],_0x5e6b35['name']))return;const _0x73c708=_0x37a782['markerRange']['getWalker'](),_0x2aad57=_0x37a782['markerRange']['start'],_0x39a5f2=_0x40bc1f['model']['schema'];let _0x32aa5e=null,_0x1d9256=null,_0x55c783=!0x1,_0xe88c19=!0x1;for(const _0x2fefaf of _0x73c708){const _0x5059ba=_0x2fefaf['item'];_0x55c783=_0x55c783||_0x39a5f2['isContent'](_0x5059ba);const _0x26461a=_0x430141['mapper']['toViewElement'](_0x5059ba);if(_0x26461a&&_0x26461a['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2fefaf['type']&&(_0x39a5f2['isBlock'](_0x5059ba)&&!_0x39a5f2['isLimit'](_0x5059ba)&&(_0x5059ba['nextSibling']||_0x2aad57['isAtEnd']?_0x32aa5e&&_0x32aa5e['parent']==_0x5059ba||(_0x32aa5e=_0x5059ba,_0x418de0(_0x2fefaf['previousPosition']),_0xe88c19=!0x0):_0x1d9256=_0x1d9256||_0x2fefaf['previousPosition']));}function _0x418de0(_0x1ea61e){const _0x3d5a87=_0x430141['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x44a19f}),_0x39bde0=_0x430141['mapper']['toViewPosition'](_0x1ea61e);_0x24bc68['data']['isSuggestion']&&_0x430141['writer']['addClass']('ck-suggestion-marker-'+_0x44a19f+'-new',_0x3d5a87),_0x22d9c6['activeChange']==_0x24bc68&&_0x430141['writer']['addClass']('ck-suggestion-marker--active',_0x3d5a87),_0x430141['writer']['insert'](_0x39bde0,_0x3d5a87),_0x430141['mapper']['bindElementToMarker'](_0x3d5a87,_0x37a782['markerName']);}_0x55c783||_0xe88c19||!_0x1d9256||_0x418de0(_0x1d9256);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x5dd5dd,_0x5de18d,_0x455aac)=>{const _0x4db53b=_0x455aac['mapper']['markerNameToElements'](_0x5de18d['markerName']);if(_0x4db53b){for(const _0x43768c of _0x4db53b)(_0x43768c['hasClass']('ck-suggestion-marker-split')||_0x43768c['hasClass']('ck-suggestion-marker-merge'))&&(_0x455aac['mapper']['unbindElementFromMarkerName'](_0x43768c,_0x5de18d['markerName']),_0x455aac['writer']['remove'](_0x43768c));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x24abf3,_0x258187,_0x5bf029)=>{const _0xffb087=_0x258187['markerName']['split'](':')[0x1],_0x11bc5a=this['_getChangeFromId'](_0xffb087);if(!_0x11bc5a)return null;const _0x587087='add'==_0x11bc5a['type']?'split':'merge';if(_0x5bf029['consumable']['test'](_0x258187['markerRange'],_0x24abf3['name']))for(const _0x1c0550 of _0x258187['markerRange']['getItems']()){if(!_0x1c0550['is']('element','softBreak'))continue;const _0x38d2c2=_0x5bf029['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x587087}),_0x106bfb=_0x5bf029['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x1c0550));_0x11bc5a['data']['isSuggestion']&&_0x5bf029['writer']['addClass']('ck-suggestion-marker-'+_0x587087+'-new',_0x38d2c2),this['activeChange']==_0x11bc5a&&_0x5bf029['writer']['addClass']('ck-suggestion-marker--active',_0x38d2c2),_0x5bf029['writer']['insert'](_0x106bfb,_0x38d2c2),_0x5bf029['mapper']['bindElementToMarker'](_0x38d2c2,_0x258187['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x320399=>{for(const _0xc3f7bd of this['editor']['model']['document']['getRootNames']()){const _0x2932fc=this['editor']['model']['document']['getRoot'](_0xc3f7bd),_0x30a36c=this['editor']['editing']['view']['document']['getRoot'](_0xc3f7bd);if(_0x30a36c){const _0x1bf873=_0x2932fc['getAttribute']('revisionHistoryAttachChange');if(_0x320399['removeAttribute']('data-change-id',_0x30a36c),_0x320399['removeClass']('ck-revision-history-root-add',_0x30a36c),_0x320399['removeClass']('ck-revision-history-root-remove',_0x30a36c),_0x320399['removeClass']('ck-revision-history-root--active',_0x30a36c),_0x1bf873){const _0x17fe90=this['_getChangeFromId'](_0x1bf873);if(!_0x17fe90)return null;_0x320399['setAttribute']('data-change-id',_0x1bf873,_0x30a36c),_0x320399['addClass']('ck-revision-history-root-'+_0x17fe90['type'],_0x30a36c),this['activeChange']==_0x17fe90&&_0x320399['addClass']('ck-revision-history-root--active',_0x30a36c);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x4fa3e6=>'revision-comment:'+_0x4fa3e6,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x53c88c=>'revision-suggestion:'+_0x53c88c,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x268ca4=>({'name':'suggestion:'+_0x268ca4,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x88dd1d=>{const _0x437277=_0x88dd1d['markerName']['split'](':')[0x1];return'insertion'!=_0x437277&&'deletion'!=_0x437277?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x437277]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Q(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Q(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x36a632,_0x7681de,_0x3e3796)=>{const _0x5c778b=_0x3e3796['mapper']['markerNameToElements'](_0x7681de['markerName']);if(_0x5c778b){for(const _0xbe00f4 of _0x5c778b)_0xbe00f4['is']('uiElement')&&(_0x3e3796['mapper']['unbindElementFromMarkerName'](_0xbe00f4,_0x7681de['markerName']),_0x3e3796['writer']['remove'](_0xbe00f4));}},{'priority':'high'});}['_getChangeFromId'](_0x2663b4){return this['_changeIdToChange']['get'](_0x2663b4);}['_getViewForChange'](_0x5ae1dc){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x5ae1dc),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x1553d8,_0x558500,_0x41068d,_0x54d1c5)=>{_0x54d1c5&&this['_balloon']['remove'](_0x54d1c5),_0x41068d&&(this['_balloon']['add']({'view':_0x41068d,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x83e47=this['editor']['editing'],_0x2bb4ad=this['_getChangeFromId'](_0x41068d['changeId']);let _0x3c091d;if(_0x2bb4ad['data']['isOnRoot']){const _0x44c5cf=_0x83e47['view']['getDomRoot'](_0x2bb4ad['rootName']);_0x3c091d=Array['from'](_0x44c5cf['getClientRects']());}else{const _0x24a089=this['editor']['model']['markers']['get']('revision:'+_0x41068d['changeId']);_0x3c091d=Array['from'](_0x83e47['mapper']['markerNameToElements'](_0x24a089['name']))['map'](_0x593282=>_0x83e47['view']['domConverter']['mapViewToDom'](_0x593282))['map'](_0x54bcdc=>Array['from'](_0x54bcdc['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x3c091d[0x0];return _0x3c091d['find'](_0xe76f47=>_0xe76f47['top']-0x3<=this['_activeViewTarget']['y']&&_0xe76f47['bottom']+0x3>=this['_activeViewTarget']['y']&&_0xe76f47['left']-0x3<=this['_activeViewTarget']['x']&&_0xe76f47['right']+0x3>=this['_activeViewTarget']['x'])||_0x3c091d[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x5cc0dd,_0x5b42cb,_0x39ae30,_0x1ec941)=>{this['activeView']=_0x39ae30?this['_getViewForChange'](_0x39ae30):null,this['editor']['model']['change'](()=>{const _0x25f272=this['editor']['editing'];_0x1ec941&&(_0x1ec941['data']['isOnRoot']?_0x25f272['view']['change'](_0x313821=>{_0x313821['removeClass']('ck-revision-history-root--active',_0x25f272['view']['document']['getRoot'](_0x1ec941['rootName']));}):_0x25f272['reconvertMarker']('revision:'+_0x1ec941['id'])),_0x39ae30&&(_0x39ae30['data']['isOnRoot']?_0x25f272['view']['change'](_0x55e087=>{_0x55e087['addClass']('ck-revision-history-root--active',_0x25f272['view']['document']['getRoot'](_0x39ae30['rootName']));}):_0x25f272['reconvertMarker']('revision:'+_0x39ae30['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x3233da,_0x3a7421)=>{if(this['activeChange'])return;const _0x48eff4=this['_findChangeIdFromDomTarget'](_0x3a7421['target']),_0x46fa37=this['_changeIdToChange']['get'](_0x48eff4);_0x46fa37?(this['_activeViewTarget']={'x':_0x3a7421['domEvent']['x'],'y':_0x3a7421['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x46fa37)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x916772,_0x2b0d0c)=>{const _0x254455=this['_findChangeIdFromDomTarget'](_0x2b0d0c['target']),_0x5989c8=this['_changeIdToChange']['get'](_0x254455);_0x5989c8?(this['_activeViewTarget']={'x':_0x2b0d0c['domEvent']['x'],'y':_0x2b0d0c['domEvent']['y']},_0x5989c8===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x5989c8):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x112758){do{const _0x265380=_0x112758['getAttribute']('data-change-id');if(_0x265380)return _0x265380;_0x112758=_0x112758['parent'];}while(_0x112758);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x125daf=>{for(const _0x1b7b9d of this['editor']['model']['markers'])_0x125daf['removeMarker'](_0x1b7b9d);});}}function Q(_0x245ba3,_0x3d1ee8){return(_0x25449a,_0x5653d4,_0x45bc02)=>{if(!_0x45bc02['consumable']['test'](_0x5653d4['markerRange'],_0x25449a['name']))return;const _0x377b0a=_0x5653d4['markerRange']['getWalker'](),_0x4f5007=_0x5653d4['markerRange']['start'],_0x33b1d9=_0x245ba3['model']['schema'];let _0x26214b=null,_0x5bd79c=null,_0x5e94f8=!0x1,_0xaab2b3=!0x1;for(const _0x393596 of _0x377b0a){const _0x200a64=_0x393596['item'];_0x5e94f8=_0x5e94f8||_0x33b1d9['isContent'](_0x200a64);const _0x400b8f=_0x45bc02['mapper']['toViewElement'](_0x200a64);if(_0x400b8f&&_0x400b8f['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x393596['type']&&(_0x33b1d9['isBlock'](_0x200a64)&&!_0x33b1d9['isLimit'](_0x200a64)&&(_0x200a64['nextSibling']||_0x4f5007['isAtEnd']?_0x26214b&&_0x26214b['parent']==_0x200a64||(_0x26214b=_0x200a64,_0x5ca04c(_0x393596['previousPosition']),_0xaab2b3=!0x0):_0x5bd79c=_0x5bd79c||_0x393596['previousPosition']));}function _0x5ca04c(_0x199f47){const _0x9c32a9=_0x45bc02['mapper']['toViewPosition'](_0x199f47),_0x52114f=_0x45bc02['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x3d1ee8});_0x45bc02['writer']['insert'](_0x9c32a9,_0x52114f),_0x45bc02['mapper']['bindElementToMarker'](_0x52114f,_0x5653d4['markerName']);}_0x5e94f8||_0xaab2b3||!_0x5bd79c||_0x5ca04c(_0x5bd79c);};}class nt extends _0xe6d2f7{constructor(_0x15a341){super(_0x15a341);const _0x69c5a6=_0x15a341['plugins']['get'](u);this['affectsData']=!0x1,this['listenTo'](_0x69c5a6,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x69c5a6,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0xb4186a=this['editor'],_0x3473f1=_0xb4186a['plugins']['get'](u),_0x53502c=_0x3473f1['isReady']?_0x3473f1['diff']['newRevisionId']:null;_0xb4186a['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x53502c);}['refresh'](){const {isReady:_0x28fb59,isEnabled:_0x511690,repository:_0x19d7f2,diff:_0xbdea08}=this['editor']['plugins']['get'](u),_0x5c0334=_0xbdea08&&_0x19d7f2['getLaterVisibleRevision'](_0xbdea08['newRevisionId']);this['isEnabled']=_0x28fb59&&_0x511690&&Boolean(_0x5c0334);}}class rt extends _0xe6d2f7{['_step'];constructor(_0x44f6a3,{direction:_0x4430d2}){super(_0x44f6a3);const _0x50d7ef=_0x44f6a3['plugins']['get'](u);this['affectsData']=!0x1,this['_step']='forward'===_0x4430d2?0x1:-0x1,this['listenTo'](_0x50d7ef,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x50d7ef,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x50d7ef,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x249597=this['editor'],_0x19543d=_0x249597['plugins']['get'](u),{isNavigationMode:_0x5cd9ac,currentChangeNumber:_0x4252aa}=_0x19543d;let _0x1cab6e;if(_0x19543d['activeChange']=_0x5cd9ac?_0x19543d['diff']['changes']['get'](_0x4252aa+this['_step']):_0x19543d['diff']['changes']['first'],_0x19543d['activeChange']['data']['isOnRoot'])_0x1cab6e=_0x249597['editing']['view']['getDomRoot'](_0x19543d['activeChange']['rootName']);else{const _0x2d6481=_0x249597['model']['markers']['get']('revision:'+_0x19543d['activeChange']['id']);_0x1cab6e=_0x4a25d4(_0x249597['editing'],_0x2d6481);}_0x3bd100({'target':_0x1cab6e,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x11c248,currentChangeNumber:_0x40ac80,numberOfChanges:_0x14e1dc,isReady:_0x14b87b,isEnabled:_0x25f03b}=this['editor']['plugins']['get'](u);this['isEnabled']=!!(_0x25f03b&&_0x14b87b&&_0x14e1dc)&&(!_0x11c248||(0x1===this['_step']?_0x40ac80<_0x14e1dc-0x1:_0x40ac80>0x0));}}class Ri extends _0x5b8a89{constructor(_0x685318){super(_0x685318);const _0x4fc38b=this['bindTemplate'],_0x2550ed=new _0xd092cd(_0x685318),_0x371d25=new _0xd092cd(_0x685318);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',(_0x15b4ac,_0x448920)=>_0x15b4ac&&_0x448920>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x44e031,_0x278652,_0x4f6c02,_0x4b5f99)=>{if(!_0x44e031)return m(_0x685318,'Loading...');if(!_0x4f6c02)return m(_0x685318,'No\x20changes');const _0x16f483=m(_0x685318,'NUMBER_OF_CHANGES',_0x4f6c02);return _0x4b5f99?m(_0x685318,'X_OF_Y_CHANGES',[_0x278652+0x1,_0x4f6c02]):_0x16f483;}),_0x2550ed['set']({'label':m(_0x685318,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x5458c9}),_0x371d25['set']({'label':m(_0x685318,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x49bd2b}),_0x2550ed['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x371d25['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x2550ed['on']('execute',()=>this['fire']('execute','backward')),_0x371d25['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',_0x4fc38b['if']('_isStatusLabelVisible','ck-hidden',_0x1c278d=>!_0x1c278d)]},'children':[{'text':_0x4fc38b['to']('isNavigationMode',_0x390df4=>_0x390df4?m(_0x685318,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x685318,'Total')+':\x20')}]},{'text':_0x4fc38b['to']('_statusText')}]},new _0x4e1874(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x2550ed,_0x371d25]}]});}}const ge='ck-editor__editable__loading-overlay';class ji extends _0x16d9db{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x504069=this['editor']['editing']['view'];_0x504069['change'](_0x1773cc=>{for(const _0x22ef93 of _0x504069['document']['roots'])_0x1773cc['addClass'](ge,_0x22ef93);});}['hide'](){const _0x2cb7b9=this['editor']['editing']['view'];_0x2cb7b9['change'](_0x4a1676=>{for(const _0x3655d9 of _0x2cb7b9['document']['roots'])_0x4a1676['removeClass'](ge,_0x3655d9);});}}class v extends _0x16d9db{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,ji];}['init'](){const _0x30daf1=this['editor'],_0x2c2462=_0x30daf1['plugins']['get'](u),_0x3a4c92=_0x30daf1['plugins']['get'](ji);_0x30daf1['ui']['componentFactory']['add']('exitToEditing',_0x4124bb=>{const _0x3085fe=new _0xd092cd(_0x4124bb);return _0x3085fe['set']({'label':m(_0x4124bb,'Back\x20to\x20editing'),'icon':_0x3165cc,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x3085fe,'execute',()=>{_0x30daf1['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x3085fe;}),_0x30daf1['ui']['componentFactory']['add']('restoreRevision',_0x1a7a5d=>{const _0x4ab5d6=new _0xd092cd(_0x1a7a5d);return _0x4ab5d6['set']({'label':m(_0x1a7a5d,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x4ab5d6['bind']('isEnabled')['to'](_0x30daf1['commands']['get']('restoreRevision')),this['listenTo'](_0x4ab5d6,'execute',()=>_0x30daf1['execute']('restoreRevision')),_0x4ab5d6;}),_0x30daf1['ui']['componentFactory']['add']('changesNavigation',_0x4a7d0f=>{const _0x3346b5=new Ri(_0x4a7d0f),_0x3213cb=_0x30daf1['commands']['get']('showPreviousChange'),_0x4f9af8=_0x30daf1['commands']['get']('showNextChange');return _0x3346b5['bind']('isBackwardNavigationEnabled')['to'](_0x3213cb,'isEnabled'),_0x3346b5['bind']('isForwardNavigationEnabled')['to'](_0x4f9af8,'isEnabled'),_0x3346b5['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x2c2462),this['listenTo'](_0x3346b5,'execute',(_0x2ab5c5,_0x1d231c)=>{_0x30daf1['execute']('forward'===_0x1d231c?'showNextChange':'showPreviousChange');}),_0x3346b5;}),_0x3a4c92['show'](),_0x2c2462['on']('change:isReady',(_0x2f353d,_0x5103ec,_0x1bc3b0)=>{_0x1bc3b0?_0x3a4c92['hide']():_0x3a4c92['show']();});}}class hi extends et{['_resizeObserver']=null;constructor(_0x47c4c7,_0x3c55f1){super(_0x47c4c7,_0x3c55f1);const _0x322ed8=this['bindTemplate'];this['set']({'label':m(_0x47c4c7,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x47c4c7,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x322ed8['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new ot(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x26ffbc=this['fieldView']['element'];this['_tooltipString']=_0x26ffbc['scrollWidth']>_0x26ffbc['clientWidth']&&_0x26ffbc['value']||'';}}class ni extends _0x5b8a89{constructor(_0x4804d9,_0x501f8c,_0x31ff1e){super(_0x4804d9);const _0x4071cf=new _0x14e94e();_0x4071cf['set']({'content':_0xe65950,'viewBox':'0\x200\x2011\x2010'});const _0x3d9863=['ck','ck-revision-history-sidebar__revision-author'];_0x31ff1e&&_0x3d9863['push']('ck-revision-history-sidebar__revision-author_creator');const _0x38829c=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x4804d9,_0x31ff1e?'Revision\x20creator':'Revision\x20author')},'children':[_0x4071cf,_0x501f8c['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x3d9863},'children':_0x38829c});}}function ai(_0x1f1d8e,_0x171cc9){const _0x233512=_0x1f1d8e['bindTemplate'],_0x1a6a8a=_0x1f1d8e['locale'],_0x19272d=_0x5cea77(_0x1a6a8a);_0x19272d['panelPosition']='sw';const _0x34ea7b=function(_0x2d69cc,_0x4e4dc5){const _0x1515aa=function(_0x1a08c1,_0x266c7c){const _0x546e75=_0x1a08c1['locale'],_0x4ebb36={'Compare\x20against\x20selected':m(_0x546e75,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x546e75,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x546e75,'Restore\x20this\x20revision')};return _0x266c7c['map'](_0x1f2460=>{const _0x5dbcf3=_0x4ebb36[_0x1f2460['name']];return _0x5dbcf3&&_0x5dbcf3!==_0x1f2460['name']&&(_0x1f2460['name']=_0x5dbcf3),_0x1f2460;});}(_0x2d69cc,_0x4e4dc5),_0x3a1faf=new _0x5a818f();for(const _0x124826 of _0x1515aa){const _0x11e08a={'type':'button','model':new to({'label':_0x124826['name'],'class':_0x124826['class'],'withText':!0x0,'role':'menuitem','_action':_0x124826['action']})};_0x11e08a['model']['bind']('isEnabled')['to'](_0x2d69cc,'isActionsDropdownOpen',_0x5e684a=>'function'!=typeof _0x124826['isEnabled']||(!_0x5e684a||_0x124826['isEnabled'](_0x2d69cc))),_0x3a1faf['add'](_0x11e08a);}return _0x3a1faf;}(_0x1f1d8e,_0x171cc9);return _0x1f1d8e['bind']('isActionsDropdownOpen')['to'](_0x19272d,'isOpen'),_0x19272d['buttonView']['set']({'label':m(_0x1a6a8a,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x5100b0}),_0x19272d['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x233512['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x233512['to'](_0xf68f06=>_0xf68f06['stopPropagation']())}}),_0x19272d['on']('execute',_0x598fb4=>{_0x1f1d8e['isReady']&&'function'==typeof _0x598fb4['source']['_action']&&_0x598fb4['source']['_action'](_0x1f1d8e);}),_0x2302c5(_0x19272d,_0x34ea7b,{'role':'menu'}),_0x19272d['listenTo'](_0x1f1d8e,'change:isActionsDropdownOpen',(_0x2b3cdc,_0x45b990,_0x1a69f3)=>{if(_0x1a69f3)for(const _0x5036e2 of _0x19272d['listView']['items']){const _0x441336=_0x5036e2['children']['first'],_0x74fcbb=_0x171cc9['find'](_0x2ecacd=>_0x2ecacd['action']===_0x441336['_action'])['isVisible'];_0x5036e2['isVisible']=void 0x0===_0x74fcbb||_0x74fcbb(_0x1f1d8e);}}),_0x19272d;}class vi extends/* #__PURE__ -- @preserve */
|
|
27
|
-
|
|
23
|
+
import{ObservableMixin as _0x2e1f41,uid as _0xd8b478,Collection as _0x549534,logWarning as _0x1c9a02,FocusTracker as _0xa79205,KeystrokeHandler as _0x30799e,scrollViewportToShowTarget as _0x3a5289,ResizeObserver as et,ElementReplacer as it,CKEditorError as _0x176294}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x408657,set as _0x25f6cc,unset as _0x7ac9aa,isEqual as _0x39658f}from'es-toolkit/compat';import{Plugin as _0x34dfe9,PendingActions as _0x28428b,Command as _0x35e60a,ElementApiMixin as _0x5eae31,Editor as _0x349271}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x33830d,getMarkerDomElement as _0x20b6a7,ConfirmMixin as _0x1d6e7f,sanitizeEditorConfig as _0x41d5f9}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x5b00f2,ViewAttributeElement as _0x39de50,ViewEmptyElement as _0x30c701,ViewRawElement as _0x59fceb,ViewUIElement as _0x334d0a,ViewDocumentFragment as _0x611cd0,ViewText as _0x227730,ViewElement as _0x7a3107,ModelElement as _0x3456a2,ModelRange as _0xd4cf27,ModelPosition as _0x186d66,ModelDocumentFragment as _0x387b07,ModelText as _0x4e8cd5}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x310be3,IconChevronUp as _0x5bfaf2,IconChevronDown as _0x2ff9d5,IconUndo as _0x326a24,IconUser as _0x4d3f6b,IconThreeVerticalDots as _0x2275c0}from'@ckeditor/ckeditor5-icons/dist/index.js';import{CssTransitionDisablerMixin as _0x5776f6,View as _0x501a9a,submitHandler as _0x24f821,LabeledFieldView as ti,createLabeledInputText as _0x2103e5,createDropdown as _0x1c2f45,ListView as _0x5bb3a1,ListItemView as _0x455c72,ButtonView as _0x562f7a,MenuBarMenuView as _0x4c5572,MenuBarMenuListView as _0x1de789,MenuBarMenuListItemView as _0x10b25d,MenuBarMenuListItemButtonView as _0x189d08,ContextualBalloon as _0x5d6ea8,ToolbarSeparatorView as _0x188461,IconView as _0x259f83,addListToDropdown as _0x63e964,UIModel as to,EditorUI as tt,normalizeToolbarConfig as st,BoxedEditorUIView as _0x3a3710,StickyPanelView as _0x486cd5,ToolbarView as _0x25565c,InlineEditableUIView as te}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x4cc718}from'luxon';class I extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x2e1f41(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x115dd1){super(),this['id']=_0x115dd1['id']||_0xd8b478(),this['creator']=_0x115dd1['creator']||null,this['authors']=_0x115dd1['authors']||[],this['diffData']=_0x115dd1['diffData']||null,this['toVersion']=_0x115dd1['toVersion']||0x0,this['fromVersion']=_0x115dd1['fromVersion']||0x0,this['set']('name',_0x115dd1['name']||''),this['set']('createdAt',_0x115dd1['createdAt']||new Date()),this['set']('attributes',_0x115dd1['attributes']||{});}['setName'](_0x576fd3){this['_update']({'name':_0x576fd3});}['setAttribute'](_0x5d3351,_0x347dc4){const _0x55337a=_0x408657(this['attributes']);_0x25f6cc(_0x55337a,_0x5d3351,_0x347dc4),this['_update']({'attributes':_0x55337a});}['removeAttribute'](_0x51f9c0){const _0x145630=_0x408657(this['attributes']);_0x7ac9aa(_0x145630,_0x51f9c0),this['_update']({'attributes':_0x145630});}['_update'](_0x3a7637,_0xabfe1d=!0x1){let _0x31218a=!0x1;const _0x330520={'id':this['id']},_0x58d6cb=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0xc070e6 of _0x58d6cb){const _0x14ecda=_0x3a7637[_0xc070e6];void 0x0!==_0x14ecda&&_0x14ecda!==this[_0xc070e6]&&(this[_0xc070e6]=_0x14ecda,_0x330520[_0xc070e6]=_0x14ecda,_0x31218a=!0x0);}_0x31218a&&(_0x330520['authors']&&(_0x330520['authorsIds']=_0x330520['authors']['map'](_0x4050a8=>_0x4050a8['id']),delete _0x330520['authors']),this['fire']('_update',_0x330520,_0xabfe1d));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x39486e=>_0x39486e['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x34dfe9{['_revisions'];static get['requires'](){return[_0x33830d];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x227854){super(_0x227854),this['_revisions']=new _0x549534();}['afterInit'](){!async function(_0x576c81){const _0x5a42dc=_0x4ac952([0x76,0x73,0x6d,0x4c,0x34,0x54,0x50,0x70,0x75,0x52,0x35,0x33,0x4d,0x6c,0x71,0x53,0x6a,0x32,0x56,0x58,0x77,0x48,0x39,0x6f,0x45,0x41,0x4e,0x38,0x46,0x78,0x4a,0x74,0x47,0x55,0x4f,0x64,0x62,0x44,0x43,0x5a,0x30,0x31,0x69,0x68,0x79,0x66,0x6b,0x42,0x51,0x59,0x36,0x61,0x63,0x67,0x7a,0x37,0x72,0x49,0x65,0x57,0x4b,0x6e]),_0x2ac287=0xeb829,_0x44953d=0x359e09b0,_0x1f815c=0x35997188^_0x44953d,_0x17f6b4=window[_0x4ac952([0x44,0x61,0x74,0x65])][_0x4ac952([0x6e,0x6f,0x77])](),_0x5be156=_0x576c81[_0x4ac952([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x26687d=new window[(_0x4ac952([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x457050=>{_0x5be156[_0x4ac952([0x6f,0x6e,0x63,0x65])](_0x4ac952([0x72,0x65,0x61,0x64,0x79]),_0x457050);}),_0x6ff030={[_0x4ac952([0x6b,0x74,0x79])]:_0x4ac952([0x45,0x43]),[_0x4ac952([0x75,0x73,0x65])]:_0x4ac952([0x73,0x69,0x67]),[_0x4ac952([0x63,0x72,0x76])]:_0x4ac952([0x50,0x2d,0x32,0x35,0x36]),[_0x4ac952([0x78])]:_0x4ac952([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]),[_0x4ac952([0x79])]:_0x4ac952([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]),[_0x4ac952([0x61,0x6c,0x67])]:_0x4ac952([0x45,0x53,0x32,0x35,0x36])},_0x5e45fd=_0x5be156[_0x4ac952([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4ac952([0x67,0x65,0x74])](_0x4ac952([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x150560(){let _0x259ad6,_0x2fe8d3=null,_0x1ab82f=null;try{if(_0x5e45fd==_0x4ac952([0x47,0x50,0x4c]))return _0x4ac952([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x259ad6=_0x1ee675(),!_0x259ad6)return _0x4ac952([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x259ad6[_0x4ac952([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1ab82f=_0x1bf951(_0x259ad6[_0x4ac952([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x259ad6[_0x4ac952([0x6a,0x74,0x69])])),await _0x196c19()?_0x47e853()?_0x117215()?_0x4ac952([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x962107()?(_0x259ad6[_0x4ac952([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4ac952([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2fe8d3=_0x173cd4(_0x4ac952([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x259ad6[_0x4ac952([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4ac952([0x74,0x72,0x69,0x61,0x6c])&&(_0x2fe8d3=_0x173cd4(_0x4ac952([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4dec07()):_0x4ac952([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4ac952([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4ac952([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4ac952([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x117215(){const _0x88ea4c=[_0x4ac952([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4ac952([0x74,0x72,0x69,0x61,0x6c])][_0x4ac952([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x259ad6[_0x4ac952([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x17f6b4/0x3e8:0xe10*_0x1f815c;return _0x259ad6[_0x4ac952([0x65,0x78,0x70])]<_0x88ea4c;}function _0x47e853(){const _0x811d1a=_0x259ad6[_0x4ac952([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x811d1a)return!0x1;if(_0x811d1a[_0x4ac952([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4ac952([0x2a])))return!0x0;if(_0x811d1a[_0x4ac952([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4ac952([0x52,0x48])))return!0x0;if(_0x811d1a[_0x4ac952([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4ac952([0x52,0x52,0x48]))){if(_0x1ede5c())return!0x0;if(_0x17afd7()||_0x355cc6())return!0x0;}return!0x1;}function _0x962107(){const _0x32790f=_0x259ad6[_0x4ac952([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x32790f||0x0==_0x32790f[_0x4ac952([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1a25b7}=new URL(window[_0x4ac952([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x32790f[_0x4ac952([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1a25b7))return!0x0;const _0x2869d9=_0x1a25b7[_0x4ac952([0x73,0x70,0x6c,0x69,0x74])](_0x4ac952([0x2e]));return _0x32790f[_0x4ac952([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3dda5b=>_0x3dda5b[_0x4ac952([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4ac952([0x2a])))[_0x4ac952([0x6d,0x61,0x70])](_0x29feea=>_0x29feea[_0x4ac952([0x73,0x70,0x6c,0x69,0x74])](_0x4ac952([0x2e])))[_0x4ac952([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x42e314=>_0x42e314[_0x4ac952([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2869d9[_0x4ac952([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4ac952([0x6d,0x61,0x70])](_0x147cf0=>Array(_0x2869d9[_0x4ac952([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x147cf0[_0x4ac952([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4ac952([0x66,0x69,0x6c,0x6c])](_0x147cf0[0x0]===_0x4ac952([0x2a])?_0x4ac952([0x2a]):'')[_0x4ac952([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x147cf0))[_0x4ac952([0x73,0x6f,0x6d,0x65])](_0x646fdd=>_0x2869d9[_0x4ac952([0x65,0x76,0x65,0x72,0x79])]((_0x247347,_0x2d2029)=>_0x646fdd[_0x2d2029]===_0x247347||_0x646fdd[_0x2d2029]===_0x4ac952([0x2a])));}function _0x4dec07(){return _0x2fe8d3&&_0x1ab82f?new window[(_0x4ac952([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2145f9,_0x191b5b)=>{_0x2fe8d3[_0x4ac952([0x74,0x68,0x65,0x6e])](_0x2145f9,_0x191b5b),_0x1ab82f[_0x4ac952([0x74,0x68,0x65,0x6e])](_0x375b2e=>{_0x375b2e!=_0x4ac952([0x56,0x61,0x6c,0x69,0x64])&&_0x2145f9(_0x375b2e);},_0x191b5b);}):_0x2fe8d3||_0x1ab82f||_0x4ac952([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1bf951(_0x20f6b3,_0x587900){return new window[(_0x4ac952([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x979d72=>{if(_0x21f177())return _0x979d72(_0x4ac952([0x56,0x61,0x6c,0x69,0x64]));_0x48f576(),_0x5be156[_0x4ac952([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4ac952([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x53e4a2=!0x1;const _0x4e7a26=_0xd8b478();function _0x475dc2(_0x3a5c51){return!!_0x3a5c51&&(typeof _0x3a5c51===_0x4ac952([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3a5c51===_0x4ac952([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3a5c51[_0x4ac952([0x74,0x68,0x65,0x6e])]===_0x4ac952([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3a5c51[_0x4ac952([0x63,0x61,0x74,0x63,0x68])]===_0x4ac952([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4c7704(_0xbe5ae1){_0x113c14(_0xbe5ae1)[_0x4ac952([0x74,0x68,0x65,0x6e])](_0x199fdd=>{if(!_0x199fdd||_0x199fdd[_0x4ac952([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4ac952([0x6f,0x6b]))return _0x4ac952([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1c9fe5(_0x379e8b(_0x4e7a26+_0x587900))!=_0x199fdd[_0x4ac952([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4ac952([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4ac952([0x56,0x61,0x6c,0x69,0x64]);})[_0x4ac952([0x74,0x68,0x65,0x6e])](_0x2b8693=>(_0x294e54(),_0x2b8693),()=>{const _0x11106e=_0x198f42();return null==_0x11106e?(_0x294e54(),_0x4ac952([0x56,0x61,0x6c,0x69,0x64])):_0x4ac952(_0x17f6b4-_0x11106e>(0x11928db0^_0x44953d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4ac952([0x74,0x68,0x65,0x6e])](_0x979d72)[_0x4ac952([0x63,0x61,0x74,0x63,0x68])](()=>{_0x979d72(_0x4ac952([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5a5898=0x35a8e730^_0x44953d;function _0x294e54(){const _0xfd5228=_0x4ac952([0x6c,0x6c,0x63,0x74,0x2d])+_0x1c9fe5(_0x379e8b(_0x20f6b3)),_0x33af97=_0x18278d(_0x1c9fe5(window[_0x4ac952([0x4d,0x61,0x74,0x68])][_0x4ac952([0x63,0x65,0x69,0x6c])](_0x17f6b4/_0x5a5898)));window[_0x4ac952([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4ac952([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xfd5228,_0x33af97);}function _0x198f42(){const _0x20d0b5=_0x4ac952([0x6c,0x6c,0x63,0x74,0x2d])+_0x1c9fe5(_0x379e8b(_0x20f6b3)),_0x212d54=window[_0x4ac952([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4ac952([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x20d0b5);return _0x212d54?window[_0x4ac952([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x18278d(_0x212d54),0x10)*_0x5a5898:null;}function _0x113c14(_0x113bfa){return new window[(_0x4ac952([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x37d11c,_0x2d6cf4)=>{_0x113bfa[_0x4ac952([0x74,0x68,0x65,0x6e])](_0x37d11c,_0x2d6cf4),window[_0x4ac952([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2d6cf4,0x359fdd70^_0x44953d);});}}_0x5be156[_0x4ac952([0x6f,0x6e])](_0x4ac952([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xbd4b8a,_0x5b18bd)=>{if(_0x5b18bd[0x0]!=_0x20f6b3)return _0x979d72(_0x4ac952([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5b18bd[0x1]={..._0x5b18bd[0x1],[_0x4ac952([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4e7a26};},{[_0x4ac952([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4ac952([0x68,0x69,0x67,0x68])}),_0x5be156[_0x4ac952([0x6f,0x6e])](_0x4ac952([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x51c375=>{_0x475dc2(_0x51c375[_0x4ac952([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x53e4a2=!0x0,_0x4c7704(_0x51c375[_0x4ac952([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4ac952([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4ac952([0x6c,0x6f,0x77])}),_0x26687d[_0x4ac952([0x74,0x68,0x65,0x6e])](()=>{_0x53e4a2||_0x979d72(_0x4ac952([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x21f177(){return _0x5be156[_0x4ac952([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4ac952([0x76,0x69,0x65,0x77])][_0x4ac952([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4ac952([0x61,0x75,0x74,0x6f]);}function _0x48f576(){_0x5be156[_0x4ac952([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4ac952([0x76,0x69,0x65,0x77])][_0x4ac952([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4ac952([0x61,0x75,0x74,0x6f]);}}function _0x173cd4(_0x531a01){const _0x3174e4=[new window[(_0x4ac952([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x123ea1=>setTimeout(_0x123ea1,0x3597377c^_0x44953d)),_0x26687d[_0x4ac952([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4ac952([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x37173d=>{const _0x553538=0x359e09b7^_0x44953d,_0x5dd57f=_0x576c81[_0x4ac952([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x32dd86(){_0x5dd57f[_0x4ac952([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x553538&&_0x37173d();}_0x32dd86(),_0x5dd57f[_0x4ac952([0x6f,0x6e])](_0x4ac952([0x61,0x64,0x64]),_0x32dd86);})),new window[(_0x4ac952([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3dc2a3=>{function _0x34a0e2(){for(const _0x2aa02e in window)if(window[_0x4ac952([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x4ac952([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x2aa02e))&&window[_0x2aa02e]==_0x2ac287)return _0x3dc2a3();_0x5be156[_0x4ac952([0x73,0x74,0x61,0x74,0x65])]!=_0x4ac952([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x4ac952([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x34a0e2,0x359e1a38^_0x44953d);}_0xf892a6(_0x4ac952([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x34a0e2();})];return window[_0x4ac952([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4ac952([0x72,0x61,0x63,0x65])](_0x3174e4)[_0x4ac952([0x74,0x68,0x65,0x6e])](()=>_0x531a01);}async function _0x2ff5a5(){if(await _0x26687d,_0xf892a6(_0x4ac952([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x745d74=_0x576c81[_0x4ac952([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x5bcc93=_0x576c81[_0x4ac952([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])](_0x745d74[_0x4ac952([0x69,0x64])]),_0x533197=_0x3345a7(_0x4ac952([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x533197[_0x4ac952([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x745d74['id'],_0x5bcc93?_0x5bcc93['id']:null,!0x0),_0x533197[_0x4ac952([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4ac952([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x533197[_0x4ac952([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x533197[_0x4ac952([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x2eef8f,void(_0x533197[_0x4ac952([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x2eef8f);}if(_0xf892a6(_0x4ac952([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x28d362=_0x3345a7(_0x4ac952([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x28d362[_0x4ac952([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4ac952([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x28d362[_0x4ac952([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x28d362[_0x4ac952([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x2eef8f,_0x28d362[_0x4ac952([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x2eef8f;}_0x5be156[_0x4ac952([0x6d,0x6f,0x64,0x65,0x6c])][_0x4ac952([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2eef8f,_0x5be156[_0x4ac952([0x6d,0x6f,0x64,0x65,0x6c])][_0x4ac952([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2eef8f,_0x5be156[_0x4ac952([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4ac952([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1ede5c(){return _0xf892a6(_0x4ac952([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x3345a7(_0x4ac952([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4ac952([0x73,0x74,0x61,0x74,0x65])]==_0x4ac952([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x17afd7(){return _0xf892a6(_0x4ac952([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x355cc6(){return _0xf892a6(_0x4ac952([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x4f5a45(_0x4a59fe){const _0x16b6e1=_0x3ff9b1();_0x5be156[_0x16b6e1]=_0x4ac952([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])+_0x4a59fe,_0x4a59fe[_0x4ac952([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x4ac952([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x3ff9b1()]=_0x2ac287),_0x4a59fe!=_0x4ac952([0x56,0x61,0x6c,0x69,0x64])&&_0x2ff5a5();}function _0x3ff9b1(){const _0x214fda=window[_0x4ac952([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4ac952([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4ac952([0x6e,0x6f,0x77])]())[_0x4ac952([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4ac952([0x2e]),'');let _0x258900=_0x4ac952([0x76]);for(let _0x24899b=0x0;_0x24899b<_0x214fda[_0x4ac952([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x24899b+=0x2){let _0x34c3c4=window[_0x4ac952([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x214fda[_0x4ac952([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x24899b,_0x24899b+0x2));_0x34c3c4>=_0x5a42dc[_0x4ac952([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x34c3c4-=_0x5a42dc[_0x4ac952([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x258900+=_0x5a42dc[_0x34c3c4];}return _0x258900;}function _0x1ee675(){const _0x4d34eb=_0x5e45fd[_0x4ac952([0x73,0x70,0x6c,0x69,0x74])](_0x4ac952([0x2e]));if(0x3!=_0x4d34eb[_0x4ac952([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4f9a3a(_0x4d34eb[0x1]);function _0x4f9a3a(_0x4066e5){const _0x278daf=_0x1cd9d7(_0x4066e5);return _0x278daf&&_0xe9e829()?_0x278daf:null;function _0xe9e829(){const _0x334c8c=_0x278daf[_0x4ac952([0x6a,0x74,0x69])],_0x57abc9=window[_0x4ac952([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x334c8c[_0x4ac952([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x334c8c[_0x4ac952([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x32e1ab={..._0x278daf,[_0x4ac952([0x6a,0x74,0x69])]:_0x334c8c[_0x4ac952([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x334c8c[_0x4ac952([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x32e1ab[_0x4ac952([0x76,0x63])],_0x379e8b(_0x32e1ab)==_0x57abc9;}}}async function _0x196c19(){let _0x305265=!0x0;try{const _0x54b325=_0x5e45fd[_0x4ac952([0x73,0x70,0x6c,0x69,0x74])](_0x4ac952([0x2e])),[_0x1cb573,_0x3fc625,_0x4a3047]=_0x54b325;return _0x42d70c(_0x1cb573),await _0x1e6746(_0x1cb573,_0x3fc625,_0x4a3047),_0x305265;}catch{return!0x1;}function _0x42d70c(_0x227fbc){const _0x23af40=_0x1cd9d7(_0x227fbc);_0x23af40&&_0x23af40[_0x4ac952([0x61,0x6c,0x67])]==_0x4ac952([0x45,0x53,0x32,0x35,0x36])||(_0x305265=!0x1);}async function _0x1e6746(_0x481e1e,_0x109889,_0x4de87c){const _0x139b98=window[_0x4ac952([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4ac952([0x66,0x72,0x6f,0x6d])](_0x4dec61(_0x4de87c),_0x4e16f8=>_0x4e16f8[_0x4ac952([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x213a67=new window[(_0x4ac952([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4ac952([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x481e1e+_0x4ac952([0x2e])+_0x109889),_0x20ff09=window[_0x4ac952([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4ac952([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x20ff09)return;const _0x1d9b3e=await _0x20ff09[_0x4ac952([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4ac952([0x6a,0x77,0x6b]),_0x6ff030,{[_0x4ac952([0x6e,0x61,0x6d,0x65])]:_0x4ac952([0x45,0x43,0x44,0x53,0x41]),[_0x4ac952([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4ac952([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4ac952([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x20ff09[_0x4ac952([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4ac952([0x6e,0x61,0x6d,0x65])]:_0x4ac952([0x45,0x43,0x44,0x53,0x41]),[_0x4ac952([0x68,0x61,0x73,0x68])]:{[_0x4ac952([0x6e,0x61,0x6d,0x65])]:_0x4ac952([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1d9b3e,_0x139b98,_0x213a67)||(_0x305265=!0x1);}}function _0x1cd9d7(_0x22bd98){return _0x22bd98[_0x4ac952([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4ac952([0x65,0x79]))?JSON[_0x4ac952([0x70,0x61,0x72,0x73,0x65])](_0x4dec61(_0x22bd98)):null;}function _0x4dec61(_0x2c0524){return window[_0x4ac952([0x61,0x74,0x6f,0x62])](_0x2c0524[_0x4ac952([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4ac952([0x2b]))[_0x4ac952([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4ac952([0x2f])));}function _0x379e8b(_0x30242e){let _0x46e594=0x1505;function _0x425d19(_0x5db4df){for(let _0x4c1409=0x0;_0x4c1409<_0x5db4df[_0x4ac952([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4c1409++){const _0x3d82e2=_0x5db4df[_0x4ac952([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4c1409);_0x46e594=(_0x46e594<<0x5)+_0x46e594+_0x3d82e2,_0x46e594&=_0x46e594;}}function _0x87ebc0(_0x61c3e4){Array[_0x4ac952([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x61c3e4)?_0x61c3e4[_0x4ac952([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x87ebc0):_0x61c3e4&&typeof _0x61c3e4==_0x4ac952([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4ac952([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x61c3e4)[_0x4ac952([0x73,0x6f,0x72,0x74])]()[_0x4ac952([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2b9c8b,_0x1aaaf5])=>{_0x425d19(_0x2b9c8b),_0x87ebc0(_0x1aaaf5);}):_0x425d19(window[_0x4ac952([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x61c3e4));}return _0x87ebc0(_0x30242e),_0x46e594>>>0x0;}function _0x1c9fe5(_0x12c8a4){return _0x12c8a4[_0x4ac952([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4ac952([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4ac952([0x30]));}function _0x18278d(_0x5dd81a){return _0x5dd81a[_0x4ac952([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4ac952([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4ac952([0x6a,0x6f,0x69,0x6e])]('');}function _0xf892a6(_0x561edb){return _0x5be156[_0x4ac952([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4ac952([0x68,0x61,0x73])](_0x561edb);}function _0x3345a7(_0x3710e6){return _0x5be156[_0x4ac952([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4ac952([0x67,0x65,0x74])](_0x3710e6);}function _0x2eef8f(){}function _0x4ac952(_0x5cf304){return _0x5cf304['map'](_0x2d0c07=>String['fromCharCode'](_0x2d0c07))['join']('');}_0x4f5a45(await _0x150560());}(this);}['createRevision'](_0x48daba){const _0x31a98d=this['editor']['plugins']['get']('Users');return new I({'id':_0x48daba['id'],'name':_0x48daba['name'],'creator':_0x48daba['creatorId']?_0x31a98d['getUser'](_0x48daba['creatorId']):null,'diffData':_0x48daba['diffData']||_0x48daba['data'],'authors':_0x48daba['authorsIds']['map'](_0x2c1b41=>_0x31a98d['getUser'](_0x2c1b41)),'createdAt':new Date(_0x48daba['createdAt']),'attributes':_0x48daba['attributes'],'fromVersion':_0x48daba['fromVersion'],'toVersion':_0x48daba['toVersion']});}['addRevision'](_0x57a21f,_0x5475bb=0x0){this['_revisions']['add'](_0x57a21f,_0x5475bb);}['getRevision'](_0x4c31c4){return this['_revisions']['get'](_0x4c31c4);}['getRevisions'](_0x2bde68={'toJSON':!0x1}){const _0xfabe90=Array['from'](this['_revisions']);return _0xfabe90['reverse'](),_0x2bde68['toJSON']?_0xfabe90['map'](_0x217102=>_0x217102['toJSON']()):_0xfabe90;}['getIndex'](_0x4ffcc2){return this['_revisions']['getIndex'](_0x4ffcc2);}['getEarlierVisibleRevision'](_0x48c40a){const [,_0x511785]=this['getRevisionsIterator'](_0x48c40a,{'direction':'earlier'});return _0x511785;}['getLaterVisibleRevision'](_0x60e4b8){const [,_0x59a93c]=this['getRevisionsIterator'](_0x60e4b8,{'direction':'later'});return _0x59a93c;}['getRevisionsInDiff'](_0x20d974){const _0x28b0bb=[];for(const _0x46a4e0 of this['getRevisionsIterator'](_0x20d974['newRevisionId']))if(_0x28b0bb['push'](_0x46a4e0),_0x46a4e0['id']===_0x20d974['oldRevisionId'])break;return _0x28b0bb;}*['getRevisionsIterator'](_0x3bac53,{direction:_0xbaa378='earlier',filter:_0x2128c3=()=>!0x0}={}){const _0x3d3067='earlier'===_0xbaa378?0x1:-0x1;let _0x3e7fec=this['_revisions']['get'](_0x3bac53),_0x3b63ca=this['getIndex'](_0x3e7fec);for(yield _0x3e7fec;_0x3e7fec;){if(_0x3b63ca+=_0x3d3067,_0x3e7fec=this['getRevision'](_0x3b63ca),!_0x3e7fec)return;_0x2128c3(_0x3e7fec)&&(yield _0x3e7fec);}}}class $ extends _0x34dfe9{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x5b00f2,'c'],[_0x39de50,'a'],[_0x30c701,'e'],[_0x59fceb,'r'],[_0x334d0a,'u']]);['_typeCharToViewClass']=new Map([['c',_0x5b00f2],['a',_0x39de50],['e',_0x30c701],['r',_0x59fceb],['u',_0x334d0a]]);async['loadRevisionData'](_0x6b719b,_0x214e6e){if(_0x6b719b['diffData']||!_0x214e6e)return;const _0x2da73e=this['editor']['config']['get']('collaboration.channelId'),_0x433f30=await _0x214e6e['getRevision']({'channelId':_0x2da73e,'revisionId':_0x6b719b['id']});_0x6b719b['diffData']=_0x433f30['diffData'];}['getRevisionDocumentData'](_0x3c45c0){const _0x57810d={};for(const _0x552b10 in _0x3c45c0['diffData']){if(_0x3c45c0['diffData'][_0x552b10]['attachChange']&&!_0x3c45c0['diffData'][_0x552b10]['attachChange']['isAttached'])continue;const _0x3b9ddf=this['_removeRevisionMarkers'](JSON['parse'](_0x3c45c0['diffData'][_0x552b10]['insertions'])),_0x15c41d=this['editor']['editing']['view']['document'],_0x5164d3=new _0x611cd0(_0x15c41d,_0x3b9ddf['map'](_0x1df069=>this['_getViewFromDiffObj'](_0x1df069,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x57810d[_0x552b10]=this['editor']['data']['processor']['toData'](_0x5164d3),this['editor']['data']['processor']['useFillerType']('default');}return _0x57810d;}['getRevisionRootsAttributes'](_0x15cfee){const _0x3df70d={};for(const _0xd0361e in _0x15cfee['diffData'])_0x15cfee['diffData'][_0xd0361e]['attachChange']&&!_0x15cfee['diffData'][_0xd0361e]['attachChange']['isAttached']||(_0x3df70d[_0xd0361e]=_0x15cfee['diffData'][_0xd0361e]['attributesAfter']||{});return _0x3df70d;}['_getTypeCharForViewElement'](_0x137988){return this['_viewClassToTypeChar']['get'](_0x137988['constructor']);}['_getViewFromDiffObj'](_0x523fd6,_0x114f74){const _0x6ee2f8=this['editor']['editing']['view']['document'];if('string'==typeof _0x523fd6)return new _0x227730(_0x6ee2f8,_0x523fd6);{let _0x5459ff,_0x3832b2;_0x3832b2='u'==_0x523fd6['type']||'r'==_0x523fd6['type']?[]:_0x523fd6['children']['map'](_0x7e8bd9=>this['_getViewFromDiffObj'](_0x7e8bd9,_0x114f74));const _0x4fcbf6=this['_typeCharToViewClass']['get'](_0x523fd6['type'])||_0x7a3107,_0x2a987a=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x5459ff=new _0x4fcbf6(_0x6ee2f8,_0x523fd6['name'],_0x523fd6['attributes'],_0x3832b2),'u'==_0x523fd6['type']&&_0x523fd6['children'][0x0]){const _0x1c5514=_0x523fd6['children'][0x0];if(_0x5459ff['render']=function(_0x4a1e33){const _0x238cc7=_0x4a1e33['createElement']('div');return _0x238cc7['innerHTML']=_0x1c5514,_0x238cc7['childNodes'][0x0];},_0x114f74){const _0x4c038d=new _0x611cd0(_0x6ee2f8);_0x4c038d['_appendChild'](_0x5459ff);const _0x2c7143=Array['from'](_0x2a987a['viewChildrenToDom'](_0x4c038d,{'bind':!0x1})),_0x59436f=_0x2a987a['domDocument']['createElement']('div');_0x59436f['append'](..._0x2c7143),_0x5459ff=Array['from'](_0x2a987a['domChildrenToView'](_0x59436f))[0x0];}}else{if('r'==_0x523fd6['type']&&_0x523fd6['children'][0x0]){const _0x3983fe=_0x523fd6['children'][0x0];if(_0x5459ff['render']=function(_0x3101f0){_0x3101f0['innerHTML']=_0x3983fe;},_0x114f74){const _0xeaa7e3=new _0x611cd0(_0x6ee2f8);_0xeaa7e3['_appendChild'](_0x5459ff);const _0x534c0d=Array['from'](_0x2a987a['viewChildrenToDom'](_0xeaa7e3,{'bind':!0x1})),_0x36aedb=_0x2a987a['domDocument']['createElement']('div');_0x36aedb['append'](..._0x534c0d);const _0x3bd489=Array['from'](_0x2a987a['domChildrenToView'](_0x36aedb));_0x3bd489['length']>0x1?_0x5459ff['_appendChild'](_0x3bd489):_0x5459ff=_0x3bd489[0x0];}}}if(_0x523fd6['customProperties']){for(const [_0x57a445,_0x51c01e]of _0x523fd6['customProperties'])_0x5459ff['_setCustomProperty'](_0x57a445,_0x51c01e);}const _0x986f75=void 0x0===_0x523fd6['fillerOffset']?null:_0x523fd6['fillerOffset'];return null!==_0x986f75&&(_0x5459ff['getFillerOffset']=()=>_0x986f75),_0x5459ff;}}['_makeModelFromViewString'](_0x3e61e1){const _0x2a3e2d=JSON['parse'](_0x3e61e1),_0x2b24f5=this['editor']['editing']['view']['document'],_0x4e60d5=new _0x611cd0(_0x2b24f5,_0x2a3e2d['map'](_0x4918d3=>this['_getViewFromDiffObj'](_0x4918d3,!0x0)));return this['editor']['data']['toModel'](_0x4e60d5);}['_removeRevisionMarkers'](_0x6c07a){return(_0x6c07a=_0x6c07a['filter'](_0x1256a8=>!_0x1256a8['name']||'revision-start'!==_0x1256a8['name']&&'revision-end'!==_0x1256a8['name']))['forEach'](_0x1d2d3c=>{'string'!=typeof _0x1d2d3c&&(_0x1d2d3c['children']=this['_removeRevisionMarkers'](_0x1d2d3c['children']),_0x1d2d3c['attributes']=_0x1d2d3c['attributes']['filter'](_0x47a67e=>!_0x47a67e[0x0]['startsWith']('data-revision-')));}),_0x6c07a;}}function m(_0x5bd8e3,_0x2ca3ec,_0x1d35a2){const t=_0x5bd8e3['t'];switch(_0x2ca3ec){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'},_0x1d35a2);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x1d35a2);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}class h extends _0x34dfe9{['licenseKey'];['_licenseKeyCheckInterval'];['currentRevision']=null;['repository'];['adapter']=null;['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_utils'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x33830d,S,$,_0x28428b];}constructor(_0x441a80){super(_0x441a80),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new E(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x2a784c=_0xd8b478();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x2a784c},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x4c3762=this['repository']['getRevision'](0x0),_0xc2cf8a=_0x4c3762&&null===_0x4c3762['creator']?_0x4c3762:null;if(this['_continueCurrentRevision']=!!_0xc2cf8a&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0xb6fa34=this['_source']['getCurrentRevisionId'](),_0x152fe5=this['repository']['getRevision'](_0xb6fa34);if(_0x152fe5)this['_startingVersion']=_0x152fe5['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x2ae5a9=this['_source']['history']['_operations']['find'](_0x1cacbe=>!_0x1cacbe['_isInit']),_0x468567=_0x2ae5a9?_0x2ae5a9['baseVersion']:this['_source']['history']['version'];_0x4c3762?(_0x4c3762['toVersion']<_0x468567&&_0x4c3762['_update']({'toVersion':_0x468567}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0xc2cf8a['id'],this['_startingVersion']=_0xc2cf8a['fromVersion']):(this['_startingVersion']=_0x4c3762['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x468567,this['_continueCurrentRevision']=!0x1);}}else _0xc2cf8a&&(this['editor']['model']['document']['history']['version']=Math['max'](_0xc2cf8a['toVersion'],this['editor']['model']['document']['history']['version']),_0xc2cf8a['fromVersion']===_0xc2cf8a['toVersion']?(0x0!==_0xc2cf8a['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0xc2cf8a['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0xc2cf8a['id'],this['_startingVersion']=_0xc2cf8a['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',_0x100738=>!_0x100738),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xd82c91=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x346b26;for(const _0x2b9389 in _0xd82c91){const _0x248234=_0x2b9389,_0x221f13=_0xd82c91[_0x248234];if('revisionHistoryLicenseKeyValid'==_0x221f13||'revisionHistoryLicenseKeyInvalid'==_0x221f13||'revisionHistoryLicenseKeyExpired'==_0x221f13||'revisionHistoryLicenseKeyDomainLimit'==_0x221f13||'revisionHistoryLicenseKeyNotAllowed'==_0x221f13||'revisionHistoryLicenseKeyEvaluationLimit'==_0x221f13||'revisionHistoryLicenseKeyTrialLimit'==_0x221f13||'revisionHistoryLicenseKeyUsageLimit'==_0x221f13){delete _0xd82c91[_0x248234],_0x346b26=_0x221f13,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x346b26&&_0xd82c91['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x346b26&&_0xd82c91['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x346b26&&_0xd82c91['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x346b26&&_0xd82c91['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x346b26&&_0xd82c91['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x346b26&&_0xd82c91['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x346b26&&_0xd82c91['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x6fc4d5=this['repository']['getRevision'](0x0),_0x1e412c=await this['getRevisionDocumentData'](_0x6fc4d5),_0x11a04c=await this['getRevisionRootsAttributes'](_0x6fc4d5);this['_replaceEditorDataWithRevisionData'](_0x1e412c,_0x11a04c);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x1035b5){this['_source']=_0x1035b5;}async['update'](){const _0x468626=await this['_source']['getLatestVersion']();if(_0x468626>this['currentRevision']['toVersion']){await this['_loadState']();const _0x2b327e=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x468626});_0x2b327e['authors']=_0x2b327e['authorsIds']['map'](_0x2759b3=>this['editor']['plugins']['get']('Users')['getUser'](_0x2759b3)),this['currentRevision']['_update'](_0x2b327e);}}async['saveRevision'](_0x23a098={},_0x226ca9=null){const _0x346cc1=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x226ca9>this['currentRevision']['toVersion']&&(_0x226ca9=null),null===_0x226ca9&&(_0x226ca9=await this['_source']['getLatestVersion']());const _0x1c458d=this['_getFromVersion'](_0x226ca9),_0x21ca41=this['buildRevisionData']({'from':_0x1c458d,'to':_0x226ca9});if(this['currentRevision']['toVersion']<_0x226ca9){const _0x5cceb5=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x226ca9,'to':_0x226ca9});_0x5cceb5['authors']=[],_0x5cceb5['authorsIds']=[],_0x5cceb5['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x5cceb5,!0x0),delete _0x5cceb5['authors'],_0x346cc1['push'](_0x5cceb5);}_0x23a098['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x23a098['name']=_0x23a098['name']||null,_0x23a098['id']=_0x23a098['id']||_0xd8b478(),_0x23a098={..._0x23a098,..._0x21ca41};const _0x397afe=this['addRevisionData'](_0x23a098);_0x346cc1['push'](_0x23a098);const _0x415967=this['repository']['getIndex'](_0x397afe);if(0x0!==_0x415967){const _0x324f9b=this['repository']['getRevision'](_0x415967-0x1);if(_0x324f9b['fromVersion']!==_0x226ca9){const _0x1b8610=this['_revisionDataBuilder']['getData'](_0x226ca9,_0x324f9b['toVersion']),_0x329775={'id':_0x324f9b['id'],'diffData':_0x1b8610['diffData'],'authorsIds':_0x1b8610['authorsIds'],'authors':_0x1b8610['authorsIds']['map'](_0x189b9f=>this['editor']['plugins']['get']('Users')['getUser'](_0x189b9f)),'fromVersion':_0x226ca9};_0x324f9b===this['currentRevision']&&(_0x329775['createdAt']=new Date(_0x23a098['createdAt']['getTime']()+0xa)),_0x324f9b['_update'](_0x329775,!0x0),delete _0x329775['authors'],_0x346cc1['push'](_0x329775);}}if(this['adapter']){for(const _0x701e5e of _0x346cc1)this['_bufferUpdate'](_0x701e5e['id'],_0x701e5e,!0x0);this['sendBufferedUpdates']();}return _0x397afe;}['addRevisionData'](_0x31ecf7){const _0x1fc776=this['repository']['createRevision'](_0x31ecf7);return this['adapter']&&_0x1fc776['on']('_update',(_0x4990a9,_0xbb81ad,_0x3fbb7e)=>{_0x3fbb7e||(this['_bufferUpdate'](_0xbb81ad['id'],_0xbb81ad,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x1fc776,this['_findInsertionIndex'](_0x1fc776)),_0x1fc776;}async['getRevisionDocumentData'](_0x8edbd7){return await this['_utils']['loadRevisionData'](_0x8edbd7,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x8edbd7);}async['getRevisionRootsAttributes'](_0x51e87f){return await this['_utils']['loadRevisionData'](_0x51e87f,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x51e87f);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x73ab8d=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x4efec9=0x0;_0x4efec9<_0x73ab8d['length'];_0x4efec9++){const _0x16f4ef=_0x73ab8d[_0x4efec9];let _0x4267ef=!0x1;for(const _0x2ba859 of Object['keys'](_0x16f4ef))void 0x0===_0x16f4ef[_0x2ba859]?delete _0x16f4ef[_0x2ba859]:'id'!==_0x2ba859&&(_0x4267ef=!0x0);_0x4267ef||(_0x73ab8d[_0x4efec9]=null);}if(_0x73ab8d=_0x73ab8d['filter'](_0x32f456=>null!==_0x32f456),!_0x73ab8d['length'])return;for(let _0x4677e3=0x0;_0x4677e3<_0x73ab8d['length'];_0x4677e3++){const _0x92ae09=_0x73ab8d[_0x4677e3];void 0x0!==_0x92ae09['fromVersion']&&void 0x0===_0x92ae09['toVersion']&&(_0x92ae09['toVersion']=this['repository']['getRevision'](_0x92ae09['id'])['toVersion']),void 0x0!==_0x92ae09['toVersion']&&void 0x0===_0x92ae09['fromVersion']&&(_0x92ae09['fromVersion']=this['repository']['getRevision'](_0x92ae09['id'])['fromVersion']);}const _0x574c6f=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x73ab8d,_0x574c6f)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x1b167a=>{if(_0x1b167a){for(const _0x21e1c4 of _0x1b167a)this['setRevisionData']({'id':_0x21e1c4['id'],'createdAt':_0x21e1c4['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x1de068=null,from:_0x34a78b=null,to:_0x385932=null}){_0x34a78b=null!==_0x34a78b?_0x34a78b:_0x1de068['fromVersion'],_0x385932=null!==_0x385932?_0x385932:_0x1de068['toVersion'];const _0x56d264=this['_revisionDataBuilder']['getData'](_0x34a78b,_0x385932),_0x2a8b0c={'diffData':_0x56d264['diffData'],'authorsIds':_0x56d264['authorsIds'],'fromVersion':_0x34a78b,'toVersion':_0x385932};if(!_0x1de068||_0x385932!==_0x1de068['toVersion']){const _0x12ee98=_0x385932-0x1,_0x29ac22=this['_source']['history']['getOperation'](_0x12ee98);_0x2a8b0c['createdAt']=_0x29ac22&&_0x29ac22['createdAt']||new Date();}if(this['_loadedStateData']&&_0x34a78b===this['_loadedStateData']['fromVersion']){for(const _0x2654d8 of this['_loadedStateData']['authors'])_0x2a8b0c['authorsIds']['includes'](_0x2654d8['id'])||_0x2a8b0c['authorsIds']['push'](_0x2654d8['id']);}return _0x2a8b0c;}['_bufferUpdate'](_0x4cbda1,_0x5d272d,_0x4f1f03){if(this['_bufferedUpdates']['has'](_0x4cbda1)){const _0x104407=this['_bufferedUpdates']['get'](_0x4cbda1);_0x5d272d=_0x4f1f03?{..._0x104407,..._0x5d272d}:{..._0x5d272d,..._0x104407};}this['_bufferedUpdates']['set'](_0x4cbda1,_0x5d272d);}['setRevisionData'](_0x37bb0f){const _0x1439e4=this['repository']['getRevision'](_0x37bb0f['id']);if(_0x37bb0f['createdAt']&&(_0x37bb0f['createdAt']=new Date(_0x37bb0f['createdAt'])),_0x37bb0f['authorsIds']){const _0x3f1175=this['editor']['plugins']['get']('Users');_0x37bb0f['authors']=_0x37bb0f['authorsIds']['map'](_0x57d256=>_0x3f1175['getUser'](_0x57d256));}_0x1439e4['_update'](_0x37bb0f,!0x0);}['_createInitialRevision'](_0x2252e3){const _0x593f6d=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x593f6d)this['_initialRevisionId']=_0x593f6d['id'];else{const _0xfaf70c=!this['editor']['model']['document']['roots']['find'](_0xb2badd=>this['editor']['model']['hasContent'](_0xb2badd)),_0x417164=this['editor']['plugins']['get']('Users')['me']['id'],_0x1e3931=m(this['editor']['locale'],_0xfaf70c?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x2252e3,'to':_0x2252e3,'id':this['_initialRevisionId'],'name':_0x1e3931,'creatorId':_0x417164});}}['_createCurrentRevision'](_0x241492){const _0x4e9e52=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x4e9e52),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x241492,'to':_0x241492,'id':_0x4e9e52,'name':'','creatorId':null}));}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_utils']['loadRevisionData'](this['currentRevision'],this['adapter']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}['_replaceEditorDataWithRevisionData'](_0x226145,_0x713635){let _0x1ad7f3=this['editor']['config']['get']('initialData'),_0x338af7=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x1ad7f3){_0x1ad7f3={};for(const _0x3fc0ba of this['editor']['model']['document']['getRootNames']())_0x1ad7f3[_0x3fc0ba]='';}if('string'==typeof _0x1ad7f3&&(_0x1ad7f3={'main':_0x1ad7f3}),void 0x0===_0x338af7){_0x338af7={};for(const _0x121d67 of this['editor']['model']['document']['getRootNames']())_0x338af7[_0x121d67]={};}let _0x3e754f=!0x1;const _0x31ff06=Object['keys'](_0x1ad7f3),_0x52b7bc=Object['keys'](_0x226145);for(const _0x167a69 of _0x31ff06){if(_0x1ad7f3[_0x167a69]!==_0x226145[_0x167a69]&&''!==_0x1ad7f3[_0x167a69]['trim']()){_0x3e754f=!0x0;break;}if(!_0x39658f(_0x338af7[_0x167a69],_0x713635[_0x167a69])&&Object['keys'](_0x338af7[_0x167a69])['length']>0x0){_0x3e754f=!0x0;break;}}_0x3e754f||(_0x3e754f=_0x52b7bc['some'](_0x3b0019=>!this['editor']['model']['document']['getRoot'](_0x3b0019))),_0x3e754f&&_0x1c9a02('editor-initial-data-replaced-with-revision-data',{'editorData':_0x1ad7f3,'editorRootsAttributes':_0x338af7,'revisionData':_0x226145,'revisionRootsAttributes':_0x713635}),this['editor']['config']['set']('initialData',_0x226145),this['editor']['config']['set']('rootsAttributes',_0x713635);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x1f858e=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x1f858e['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x564eba){const _0xafe7b8=this['repository']['getRevisions']();_0xafe7b8['reverse']();let _0x1ce5a1=0x0;for(;_0x1ce5a1<_0xafe7b8['length'];){const _0x451b0d=_0xafe7b8[_0x1ce5a1];if(_0x451b0d===this['currentRevision']){_0x1ce5a1++;continue;}if(_0x451b0d['id']===this['_initialRevisionId'])break;const _0x202c2d=_0x564eba['toVersion']-_0x451b0d['toVersion']||_0x564eba['fromVersion']-_0x451b0d['fromVersion'];if(_0x202c2d>0x0)break;if(_0x202c2d<0x0)_0x1ce5a1++;else{if(!_0x564eba['creator']&&_0x451b0d['creator'])break;if(_0x451b0d['creator']||!_0x564eba['creator']){if(_0x564eba['createdAt']>_0x451b0d['createdAt'])break;_0x1ce5a1++;}else _0x1ce5a1++;}}return _0x1ce5a1;}['_getFromVersion'](_0x3d6f2e){const _0x1ec58e=this['repository']['getRevisions']();_0x1ec58e['reverse'](),_0x1ec58e['shift']();const _0x20c2b8=_0x1ec58e['find'](_0x18d6ea=>_0x18d6ea['toVersion']<=_0x3d6f2e)['toVersion'];return _0x20c2b8<this['_startingVersion']?this['_startingVersion']:_0x20c2b8;}['_makeRevision']({name:_0x20f300,from:_0x22ab86,to:_0x11be6c,creatorId:_0x4c72c6,id:_0x18412f}){const _0x96b0f6=this['buildRevisionData']({'from':_0x22ab86,'to':_0x11be6c});_0x96b0f6['name']=_0x20f300,_0x96b0f6['creatorId']=_0x4c72c6,_0x96b0f6['id']=_0x18412f;const _0x3c44e5=this['addRevisionData'](_0x96b0f6);return this['adapter']&&this['_bufferUpdate'](_0x96b0f6['id'],_0x96b0f6,!0x0),_0x3c44e5;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class E{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x1ee10d){this['editor']=_0x1ee10d,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'](_0x13b15b){this['source']=_0x13b15b;const _0x132b91=new Map(),_0xab421c=new Map(),_0xeb6245=this['editor']['model']['document']['roots']['map'](_0x558c39=>_0x558c39['rootName']);for(const _0x5de0d3 of _0xeb6245){const _0x1a0fd6=this['editor']['model']['document']['getRoot'](_0x5de0d3),_0x44fe0d=x(_0x1a0fd6);_0x132b91['set'](_0x5de0d3,_0x44fe0d),_0xab421c['set'](_0x5de0d3,Object['fromEntries'](_0x1a0fd6['getAttributes']()));}const _0x5dd577=Array['from'](this['editor']['model']['markers'])['map'](_0x372d44=>[_0x372d44['name'],_0x372d44['getRange']()]),_0x1c357d=this['source']['version'];this['_saveMetaData'](_0x1c357d,_0x132b91,_0x5dd577,_0xab421c),this['_startingRevisionId']=this['_revisionId'];const _0x9aa16f=new Map(),_0x1ec7ad=new Map();for(const _0x3dc91c of _0xeb6245){const _0x491496=N(_0x3dc91c);_0x9aa16f['set'](_0x3dc91c,_0x491496),_0x1ec7ad['set'](_0x3dc91c,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x9aa16f,[],_0x1ec7ad);}['getData'](_0x59eddf,_0x241c0a){if(this['_lastFrom']===_0x59eddf&&this['_lastTo']<=_0x241c0a)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x241c0a,!0x0);else{if(!this['_savedMetaData']['has'](_0x59eddf)){const _0x17f544=this['_getPreviousFrom'](_0x59eddf);this['_calculateMetaData'](_0x17f544,_0x59eddf,!0x1);}this['_calculateMetaData'](_0x59eddf,_0x241c0a,!0x0);}return this['_lastFrom']=_0x59eddf,this['_lastTo']=_0x241c0a,this['_getState']();}['loadState'](_0x4a8f9f){if(!this['_savedMetaData']['has'](_0x4a8f9f['fromVersion'])){const _0x5c80ce=this['_getPreviousFrom'](_0x4a8f9f['fromVersion']);this['_calculateMetaData'](_0x5c80ce,_0x4a8f9f['fromVersion'],!0x1);}this['_calculateMetaData'](_0x4a8f9f['fromVersion'],_0x4a8f9f['toVersion'],!0x1);const _0x52fe6f=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x4a8f9f['fromVersion'],this['_lastTo']=_0x4a8f9f['toVersion'];for(const _0x1d6131 in _0x4a8f9f['diffData']){const _0x196e36=_0x4a8f9f['diffData'][_0x1d6131]['attachChange'],_0x334855=_0x408657(_0x4a8f9f['diffData'][_0x1d6131]['attributesBefore'])||{},_0x572483=_0x52fe6f['_makeModelFromViewString'](_0x4a8f9f['diffData'][_0x1d6131]['deletions']);_0x572483['rootName']=_0x1d6131,_0x572483['_isAttached']=!_0x196e36||!_0x196e36['isAttached'],_0x572483['isAttached']=()=>_0x572483['_isAttached'],this['_baseRoots']['set'](_0x1d6131,_0x572483),this['_baseRootsAttributes']['set'](_0x1d6131,_0x334855),_0x196e36&&this['_touchedRoots']['set'](_0x1d6131,_0x196e36);const _0x32815a=this['_makeIdsRoot'](_0x572483);this['_baseIdsRoots']['set'](_0x1d6131,_0x32815a);for(const [_0x484095,_0x30a033]of _0x572483['markers']){if(!_0x484095['startsWith']('revision:'))continue;const _0x59226a=_0x484095['split'](':')[0x2];for(const _0x388ad8 of _0x30a033['getWalker']({'singleCharacters':!0x0})){const _0x56ce80=this['_getVidAttributeName'](_0x388ad8),_0x524dbd='elementEnd'==_0x388ad8['type']?_0x388ad8['previousPosition']['path']['slice'](0x0,-0x1):_0x388ad8['previousPosition']['path'],_0x5cff27=_0x32815a['getNodeByPath'](_0x524dbd)['getAttribute'](_0x56ce80);this['_touched']['set'](_0x5cff27,{'userId':_0x59226a});}_0x572483['markers']['delete'](_0x484095);}}this['_startingRevisionId']=this['_revisionId'];const _0x51f4d6=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x5db539=>!this['_touched']['has'](_0x5db539));let _0x31eb0c=0x0;const _0xb5d7d6=new Map();for(const _0x299276 in _0x4a8f9f['diffData']){const _0x20d5a4=_0x4a8f9f['diffData'][_0x299276]['attachChange'],_0x474e3e=_0x408657(_0x4a8f9f['diffData'][_0x299276]['attributesAfter'])||{},_0x4ec825=_0x52fe6f['_makeModelFromViewString'](_0x4a8f9f['diffData'][_0x299276]['insertions']);_0x4ec825['rootName']=_0x299276,_0x4ec825['_isAttached']=!_0x20d5a4||_0x20d5a4['isAttached'],_0x4ec825['isAttached']=()=>_0x4ec825['_isAttached'],this['_diffRoots']['set'](_0x299276,_0x4ec825),this['_diffRootsAttributes']['set'](_0x299276,_0x474e3e);const _0x53f3bd=this['_makeIdsRoot'](_0x4ec825,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x299276,_0x53f3bd),_0xb5d7d6['set'](_0x299276,_0x4ec825['isAttached']()?_0x474e3e:{});for(const [_0x4aacf4,_0x584daf]of _0x4ec825['markers']){if(!_0x4aacf4['startsWith']('revision:'))continue;const _0x2959fc=_0x4aacf4['split'](':')[0x2];for(const _0x124bee of _0x584daf['getWalker']({'singleCharacters':!0x0})){const _0x381622=this['_getVidAttributeName'](_0x124bee),_0x184c75=this['_revisionId']++,_0x387dbd='elementEnd'==_0x124bee['type']?_0x124bee['previousPosition']['path']['slice'](0x0,-0x1):_0x124bee['previousPosition']['path'];_0x53f3bd['getNodeByPath'](_0x387dbd)['_setAttribute'](_0x381622,_0x184c75),this['_touched']['set'](_0x184c75,{'userId':_0x2959fc});}_0x4ec825['markers']['delete'](_0x4aacf4);}for(const _0x27c4f1 of this['editor']['model']['createRangeIn'](_0x4ec825)['getWalker']({'singleCharacters':!0x0})){const _0x36eecc=this['_getVidAttributeName'](_0x27c4f1),_0x52565a='elementEnd'==_0x27c4f1['type']?_0x27c4f1['previousPosition']['path']['slice'](0x0,-0x1):_0x27c4f1['previousPosition']['path'],_0x231905=_0x53f3bd['getNodeByPath'](_0x52565a);_0x231905['getAttribute'](_0x36eecc)>0x0||_0x231905['_setAttribute'](_0x36eecc,_0x51f4d6[_0x31eb0c++]);}for(const [_0x508303,_0x27c3a5]of _0x4ec825['markers'])_0x508303['startsWith']('revision:')||this['_markers']['set'](_0x508303,_0x27c3a5);}const {roots:_0x38dc91}=this['_savedMetaData']['get'](_0x4a8f9f['fromVersion']),{roots:_0x3eb469}=this['_savedMetaData']['get'](_0x4a8f9f['toVersion']),_0x45e21f=x(_0x38dc91['get']('$graveyard'));this['_baseRoots']['set']('$graveyard',_0x45e21f),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x45e21f,Number['NEGATIVE_INFINITY']));const _0x442ad1=x(_0x3eb469['get']('$graveyard'));this['_diffRoots']['set']('$graveyard',_0x442ad1),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x442ad1));const _0x3cbae0=Array['from'](this['_diffRoots'])['map'](([_0x3ad635,_0x4ca06b])=>[_0x3ad635,x(_0x4ca06b)]);this['_saveMetaData'](this['_lastTo'],_0x3cbae0,this['_markers'],_0xb5d7d6);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x5d5c0d,_0x5acb00,_0x551d21,_0x38504c){const _0x2e765b=new Map(_0x5acb00),_0x3581e2=new Map(_0x408657(_0x38504c)),_0x26471f=new Map();for(const [_0x38992a,_0x1635f7]of _0x551d21)_0x26471f['set'](_0x38992a,{'start':_0x1635f7['start']['clone'](),'end':_0x1635f7['end']['clone'](),'rootName':_0x1635f7['root']['rootName']});this['_savedMetaData']['set'](_0x5d5c0d,{'roots':_0x2e765b,'markers':_0x26471f,'rootsAttributes':_0x3581e2});}['_removeMetaData'](_0x3c5129){this['_savedMetaData']['delete'](_0x3c5129);}['_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'](_0x5cf53b,_0x148aa5=null){let _0x22085e=null;_0x5cf53b['is']('documentFragment')||(_0x22085e=new _0x3456a2(_0x5cf53b['name'],{'vid_start':null===_0x148aa5?this['_revisionId']++:_0x148aa5++}));const _0x5e242b=[];for(const _0x859637 of _0x5cf53b['getChildren']())if(_0x859637['is']('element')){_0x5e242b['push'](this['_makeIdsRoot'](_0x859637,_0x148aa5));const _0x2ae785=_0x5e242b[_0x5e242b['length']-0x1];null!==_0x148aa5&&(_0x148aa5=_0x2ae785['is']('element','$text')?_0x2ae785['getAttribute']('vid')+0x1:_0x2ae785['getAttribute']('vid_end')+0x1);}else{for(let _0x4b2735=0x0;_0x4b2735<_0x859637['offsetSize'];_0x4b2735++)_0x5e242b['push'](new _0x3456a2('$text',{'vid':null===_0x148aa5?this['_revisionId']++:_0x148aa5++}));}if(_0x5cf53b['is']('documentFragment')){const _0x21b5a8=N(_0x5cf53b['rootName']);return _0x21b5a8['_insertChild'](0x0,_0x5e242b),_0x21b5a8;}return _0x22085e['_setAttribute']('vid_end',null===_0x148aa5?this['_revisionId']++:_0x148aa5++),_0x22085e['_insertChild'](0x0,_0x5e242b),_0x22085e;}['_calculateMetaData'](_0x23c0f3,_0x4a2d48,_0x5e375d){this['_reset']();const {roots:_0x3d84dc,markers:_0x514bac,rootsAttributes:_0x517dda}=this['_savedMetaData']['get'](_0x23c0f3);this['_baseRoots']=new Map(_0x3d84dc),this['_baseRootsAttributes']=new Map(_0x408657(_0x517dda));for(const [_0xeae686,_0x132e55]of this['_baseRoots'])if('$graveyard'!==_0xeae686&&(this['_diffRoots']['set'](_0xeae686,x(_0x132e55)),this['_diffRootsAttributes']=new Map(_0x408657(_0x517dda)),_0x5e375d)){const _0x34a3be=this['_revisionId'];this['_idsRoots']['set'](_0xeae686,this['_makeIdsRoot'](_0x132e55)),this['_baseIdsRoots']['set'](_0xeae686,this['_makeIdsRoot'](_0x132e55,_0x34a3be));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x5e375d&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x2cd226,_0xb6059a]of _0x514bac){const _0x1cd083=this['_baseRoots']['get'](_0xb6059a['rootName']),_0x55151e=this['_diffRoots']['get'](_0xb6059a['rootName']),_0x975cd3=new _0xd4cf27(this['_fixPosition'](_0xb6059a['start'],_0x1cd083),this['_fixPosition'](_0xb6059a['end'],_0x1cd083)),_0xeb77d5=this['_fixRange'](_0x975cd3,_0x55151e);_0x1cd083['markers']['set'](_0x2cd226,_0x975cd3),this['_markers']['set'](_0x2cd226,_0xeb77d5);}this['_applyOperations'](_0x23c0f3,_0x4a2d48,_0x5e375d);}['_applyOperations'](_0x324283,_0x2aafde,_0xaabc6d){for(const _0x13c99d of this['source']['getOperations'](_0x324283,_0x2aafde))this['_handleOperation'](_0x13c99d,_0xaabc6d);for(const _0x4d86df of this['_diffRoots']['values']())_0x4d86df['markers']['clear']();for(const [_0x35d293,_0x13f492]of this['_markers']){this['_diffRoots']['get'](_0x13f492['root']['rootName'])['markers']['set'](_0x35d293,_0x13f492['clone']());}const _0x1cf10c=new Map(),_0x1d8c3a=new Map();for(const [_0x25948f,_0x3fd14b]of this['_diffRoots'])_0x1cf10c['set'](_0x25948f,x(_0x3fd14b)),_0x1d8c3a['set'](_0x25948f,this['_diffRootsAttributes']['get'](_0x25948f));this['_saveMetaData'](_0x2aafde,_0x1cf10c,this['_markers'],_0x1d8c3a);}['_getPreviousFrom'](_0x5aa7ac){const _0x3c3143=Array['from'](this['_savedMetaData']['keys']());_0x3c3143['sort']((_0xbda94c,_0x272c7b)=>_0xbda94c-_0x272c7b),_0x3c3143['reverse']();for(const _0x3bef9e of _0x3c3143)if(_0x3bef9e<_0x5aa7ac)return _0x3bef9e;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x464f74,_0x20497c){const _0x3b5850=Array['from'](_0x20497c['markers'])['map'](([_0x22d0e7,_0x45e631])=>[_0x22d0e7,this['_fixRange'](_0x45e631,_0x464f74)]);_0x464f74['markers']=new Map(_0x3b5850);}['_transformMarkers'](_0xf72bbb){for(const _0x112852 of this['_markers']['values']()){const _0x4a65e8=_0x112852['getTransformedByOperation'](_0xf72bbb),_0x500092=_0xd4cf27['_createFromRanges'](_0x4a65e8);_0x112852['start']=_0x500092['start'],_0x112852['end']=_0x500092['end'];}}['_handleOperation'](_0x7c6952,_0x4d1bb0){if('addRoot'!=_0x7c6952['type']&&'detachRoot'!=_0x7c6952['type']){if('insert'==_0x7c6952['type']){const _0x60a5ad=_0x7c6952['position']['root']['rootName'];this['_diffRoots']['has'](_0x60a5ad)||(this['_diffRoots']['set'](_0x60a5ad,N(_0x60a5ad,!0x0)),this['_diffRootsAttributes']['set'](_0x60a5ad,{}),_0x4d1bb0&&this['_idsRoots']['set'](_0x60a5ad,N(_0x60a5ad,!0x0)));}else{if('addRootAttribute'==_0x7c6952['type']||'removeRootAttribute'==_0x7c6952['type']||'changeRootAttribute'==_0x7c6952['type'])return void this['_handleRootAttributeOperation'](_0x7c6952);'marker'==_0x7c6952['type']&&this['_handleMarkerOperation'](_0x7c6952);}if('marker'!==_0x7c6952['type']){const _0x4f2034=this['_cloneOperation'](_0x7c6952,this['_diffRoots']);_0x4f2034['_execute'](),this['_transformMarkers'](_0x4f2034);}if(_0x4d1bb0)switch(_0x7c6952['type']){case'insert':this['_handleInsertOperation'](_0x7c6952);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x7c6952);break;case'merge':this['_handleMergeOperation'](_0x7c6952);break;case'split':this['_handleSplitOperation'](_0x7c6952);}}else this['_handleRootOperation'](_0x7c6952,_0x4d1bb0);}['_cloneOperation'](_0x53d24a,_0x2e78ea){const _0x4b4589=_0x53d24a['clone']();return _0x4b4589['_authorId']=_0x53d24a['_authorId'],this['_fixOperation'](_0x4b4589,_0x2e78ea),_0x4b4589;}['_getBaseVids'](_0x3bb08a){return _0x3bb08a['map'](_0x51532c=>{const _0x8e1e64=this['_getVidAttributeName'](_0x51532c);return Number(_0x51532c['item']['getAttribute'](_0x8e1e64));});}['_generateTape'](_0x4e062a,_0xe5a827){if(_0x4e062a['is']('element','$text'))_0xe5a827['push']({'item':_0x4e062a,'type':'text'});else{_0x4e062a['is']('element')&&_0xe5a827['push']({'item':_0x4e062a,'type':'elementStart'});for(const _0xccedab of _0x4e062a['getChildren']())this['_generateTape'](_0xccedab,_0xe5a827);_0x4e062a['is']('element')&&_0xe5a827['push']({'item':_0x4e062a,'type':'elementEnd'});}return _0xe5a827;}['_getState'](){const _0x50fcf6=new Map(this['_touched']),_0x43b7ab=new Map(_0x50fcf6),_0x3e5c19=new Map(),_0x55dae0={'insertions':{},'deletions':{}},_0x4ed3aa={'insertions':{},'deletions':{}},_0xf68eec=new Map(),_0x510993=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x510993['delete']('$graveyard');for(const _0x3ef226 of _0x510993){const _0x5c2ab3=this['_diffRoots']['get'](_0x3ef226)||N(_0x3ef226,!0x1),_0x1c0370=this['_baseRoots']['get'](_0x3ef226)||N(_0x3ef226,!0x1);_0x5c2ab3['isAttached']()||_0x1c0370['isAttached']()?(_0x55dae0['insertions'][_0x3ef226]=x(_0x5c2ab3),_0x55dae0['deletions'][_0x3ef226]=x(_0x1c0370),this['_copyMarkers'](_0x55dae0['deletions'][_0x3ef226],_0x1c0370),this['_copyMarkers'](_0x55dae0['insertions'][_0x3ef226],_0x5c2ab3),_0x4ed3aa['insertions'][_0x3ef226]=this['_generateTape'](this['_idsRoots']['get'](_0x3ef226),[]),_0x4ed3aa['deletions'][_0x3ef226]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x3ef226)||N(_0x3ef226,!0x1),[])):_0x510993['delete'](_0x3ef226);}for(const _0x366540 of _0x510993){const _0x2c3703=_0x4ed3aa['insertions'][_0x366540];for(const _0x1bf355 of _0x2c3703){const _0x483eb6=this['_getVidAttributeName'](_0x1bf355),_0x2cc67c=_0x1bf355['item']['getAttribute'](_0x483eb6);_0x43b7ab['delete'](_0x2cc67c),_0x2cc67c>=this['_startingRevisionId']&&_0x3e5c19['set'](_0x2cc67c,_0x50fcf6['get'](_0x2cc67c));}}for(const _0x399cab of _0x510993){const _0x1d51c9=_0x4ed3aa['insertions'][_0x399cab],_0x6a1271=this['_getBaseVids'](_0x4ed3aa['deletions'][_0x399cab]);let _0x51e365=0x0;for(const _0x42e65a of _0x1d51c9){const _0x45f79e=this['_getVidAttributeName'](_0x42e65a),_0x174fae=_0x42e65a['item']['getAttribute'](_0x45f79e);if(!_0x3e5c19['has'](_0x174fae)&&!_0xf68eec['has'](_0x174fae)){if(_0x43b7ab['has'](_0x174fae))_0x51e365++;else{if(_0x174fae!=_0x6a1271[_0x51e365]){const _0x37174a=_0x50fcf6['get'](_0x174fae)||_0x50fcf6['get'](_0x6a1271[_0x51e365]);for(;_0x174fae!=_0x6a1271[_0x51e365];)_0x43b7ab['has'](_0x6a1271[_0x51e365])||(_0xf68eec['set'](_0x6a1271[_0x51e365],_0x37174a),_0x50fcf6['set'](_0x6a1271[_0x51e365],_0x37174a)),_0x51e365++;}_0x51e365++;}}}}for(const _0x40d210 of _0x510993){const _0x418ce7=_0x4ed3aa['insertions'][_0x40d210];for(const _0x1c8116 of _0x418ce7){const _0x5f8136=this['_getVidAttributeName'](_0x1c8116),_0x391a97=_0x1c8116['item']['getAttribute'](_0x5f8136);if(_0xf68eec['has'](_0x391a97)){const _0x5afde1=_0xf68eec['get'](_0x391a97);_0x43b7ab['has'](_0x391a97)||_0x43b7ab['set'](_0x391a97,{..._0x5afde1}),_0x3e5c19['set'](_0x391a97,{..._0x5afde1});}}}for(const _0x321f27 of _0x43b7ab['keys']())_0x321f27>=this['_startingRevisionId']&&_0x43b7ab['delete'](_0x321f27);const _0x1aa1ae=new Map();for(const _0x42ba16 of _0x510993){let _0x3c30e8=_0x4ed3aa['insertions'][_0x42ba16];for(const _0x54bd1c of _0x3c30e8)if(_0x54bd1c['item']['is']('element','tableCell')){const _0x470e58=this['_getVidAttributeName'](_0x54bd1c),_0xfc41aa=_0x54bd1c['item']['getAttribute'](_0x470e58);if(_0x3e5c19['has'](_0xfc41aa)){const _0x3e645b=_0x54bd1c['item']['parent']['parent']['getAttribute']('vid_start'),_0x348d4a=_0x1aa1ae['get'](_0x3e645b)||new Set();_0x348d4a['add'](_0x3e5c19['get'](_0xfc41aa)['userId']),_0x1aa1ae['set'](_0x3e645b,_0x348d4a);}}_0x3c30e8=_0x4ed3aa['deletions'][_0x42ba16];for(const _0x25ce39 of _0x3c30e8)if(_0x25ce39['item']['is']('element','tableCell')){const _0x1f2188=this['_getVidAttributeName'](_0x25ce39),_0x4067de=_0x25ce39['item']['getAttribute'](_0x1f2188);if(_0x43b7ab['has'](_0x4067de)){const _0x542e9f=_0x25ce39['item']['parent']['parent']['getAttribute']('vid_start'),_0x269bc9=_0x1aa1ae['get'](_0x542e9f)||new Set();_0x269bc9['add'](_0x43b7ab['get'](_0x4067de)['userId']),_0x1aa1ae['set'](_0x542e9f,_0x269bc9);}}for(const _0x526c42 of _0x1aa1ae['keys']())(_0x3e5c19['has'](_0x526c42)||_0x43b7ab['has'](_0x526c42))&&_0x1aa1ae['delete'](_0x526c42);}for(const _0x3302c3 of _0x510993){const _0x16a15f=_0x4ed3aa['insertions'][_0x3302c3];let _0x32f71e=null,_0x29ae88=null;for(const _0xdb62ce of _0x16a15f){const _0x1e74ae=this['_getVidAttributeName'](_0xdb62ce),_0x18403c=_0xdb62ce['item']['getAttribute'](_0x1e74ae),_0x5cee9c=_0x1aa1ae['get'](_0x18403c);_0x5cee9c&&'elementStart'==_0xdb62ce['type']&&(_0x32f71e=Array['from'](_0x5cee9c)[0x0],_0x29ae88=_0xdb62ce['item']['getAttribute']('vid_end')),_0x32f71e&&(_0x43b7ab['set'](_0x18403c,{'userId':_0x32f71e}),_0x3e5c19['set'](_0x18403c,{'userId':_0x32f71e})),_0x18403c==_0x29ae88&&(_0x32f71e=null,_0x29ae88=null);}}const _0x5608ac={},_0x16e571=new Set();for(const _0x2c04b9 of _0x510993){const _0x22e4fc=_0x55dae0['deletions'][_0x2c04b9],_0x3f2734=_0x55dae0['insertions'][_0x2c04b9];for(const {userId:_0x2f53d0}of this['_touchedMarkers']['values']())null!==_0x2f53d0&&_0x16e571['add'](_0x2f53d0);for(const {userId:_0x49c5f3}of this['_touchedRoots']['values']())null!==_0x49c5f3&&_0x16e571['add'](_0x49c5f3);this['_markChanges'](_0x3f2734,_0x4ed3aa['insertions'][_0x2c04b9],_0x3e5c19,'insertion',_0x16e571),this['_markChanges'](_0x22e4fc,_0x4ed3aa['deletions'][_0x2c04b9],_0x43b7ab,'deletion',_0x16e571),_0x5608ac[_0x2c04b9]={'insertions':this['_prepareViewToSave'](_0x3f2734),'deletions':this['_prepareViewToSave'](_0x22e4fc),'attachChange':this['_touchedRoots']['get'](_0x2c04b9)||null,'attributesBefore':_0x408657(this['_baseRootsAttributes']['get'](_0x2c04b9))||{},'attributesAfter':_0x408657(this['_diffRootsAttributes']['get'](_0x2c04b9))};}return{'diffData':_0x5608ac,'authorsIds':Array['from'](_0x16e571)};}['_processRootBeforeSave'](_0x27bbfa){for(const [,_0x338e28]of _0x27bbfa['markers']){const _0xfe1b43=_0x338e28['start']['getAncestors']()['filter'](_0x2f0f47=>'tableCell'==_0x2f0f47['name']);for(const _0x1a60ac of _0xfe1b43)0x1==_0x1a60ac['childCount']&&_0x1a60ac['getChild'](0x0)['is']('element','paragraph')&&_0x1a60ac['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x92dba9){this['_processRootBeforeSave'](_0x92dba9);const _0x4acef0=this['editor']['data']['toView'](_0x92dba9,{}),_0x5ebaff=Array['from'](_0x4acef0['getChildren']())['map'](_0x16c520=>this['_getViewJson'](_0x16c520));return JSON['stringify'](_0x5ebaff);}['_getViewJson'](_0x3d777d){if(_0x3d777d['is']('$text'))return _0x3d777d['data'];{const _0x5ebfa7=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x4ec80a=_0x3d777d,_0x532d1c=this['editor']['data']['htmlProcessor']['domConverter'],_0x30c287={'type':_0x5ebfa7['_getTypeCharForViewElement'](_0x4ec80a),'name':_0x4ec80a['name'],'attributes':Array['from'](_0x4ec80a['getAttributes']()),'children':Array['from'](_0x4ec80a['getChildren']())['map'](_0x4eb5a9=>this['_getViewJson'](_0x4eb5a9))};if(_0x3d777d['is']('uiElement')&&'$comment'!=_0x3d777d['name']){const _0x367fd3=_0x3d777d['render'](_0x532d1c['domDocument'],_0x532d1c);_0x30c287['children']['push'](_0x367fd3['outerHTML']);}else{if(_0x3d777d['is']('rawElement')){const _0x3643f4=_0x532d1c['domDocument']['createElement'](_0x4ec80a['name']);_0x3d777d['render'](_0x3643f4,_0x532d1c),_0x30c287['children']['push'](_0x3643f4['innerHTML']);}}const _0x3f1aac=Array['from'](_0x4ec80a['getCustomProperties']());_0x3f1aac['length']>0x0&&(_0x30c287['customProperties']=_0x3f1aac);const _0x499b28=_0x4ec80a['getFillerOffset']();return null!==_0x499b28&&(_0x30c287['fillerOffset']=_0x499b28),_0x30c287;}}['_markChanges'](_0x269575,_0x5b8bf6,_0x54ead3,_0x179d73,_0x42319d){let _0x4880f4=null,_0x24256a=null,_0x4f4ab1=0x0;const _0x509ae4=this['editor']['model'];for(let _0x36ac9e=0x0;_0x36ac9e<_0x5b8bf6['length'];_0x36ac9e++){const _0x27fce1=this['_getVidAttributeName'](_0x5b8bf6[_0x36ac9e]),_0x421ebf=_0x5b8bf6[_0x36ac9e]['item']['getAttribute'](_0x27fce1),_0x2df8f7=_0x54ead3['get'](_0x421ebf),_0x52d753=_0x36ac9e==_0x5b8bf6['length']-0x1;(!_0x4880f4&&_0x2df8f7&&(_0x4880f4=_0x2df8f7,_0x24256a=_0x5b8bf6[_0x36ac9e]),_0x4880f4&&(!_0x2df8f7||_0x2df8f7['userId']!=_0x4880f4['userId']))&&(_0x483cdd(_0x2df8f7,P(_0x24256a,_0x269575,_0x509ae4),P(_0x5b8bf6[_0x36ac9e],_0x269575,_0x509ae4)),_0x4880f4=_0x2df8f7||null,_0x24256a=_0x2df8f7?_0x5b8bf6[_0x36ac9e]:null),_0x4880f4&&_0x52d753&&_0x483cdd(_0x2df8f7,P(_0x24256a,_0x269575,_0x509ae4),V(_0x5b8bf6[_0x36ac9e],_0x269575,_0x509ae4));}function _0x483cdd(_0x440c26,_0x183bdd,_0x30dd5f){const _0x28f3e6=_0x4880f4['userId'],_0x2a63aa='revision:'+_0x179d73+':'+_0x28f3e6+':'+_0x4f4ab1++,_0xabe05c=_0x509ae4['createRange'](_0x183bdd,_0x30dd5f);_0x269575['markers']['set'](_0x2a63aa,_0xabe05c),null!==_0x28f3e6&&_0x42319d['add'](_0x28f3e6);}}['_getVidAttributeName'](_0x55b529){switch(_0x55b529['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0xa57f0c,_0x301620){_0xa57f0c['baseVersion']=null;for(const _0x2ff4ae in _0xa57f0c){const _0x5b729d=_0xa57f0c[_0x2ff4ae];if(_0x5b729d instanceof _0x186d66){const _0x321fa0=_0x301620['get'](_0x5b729d['root']['rootName']);_0xa57f0c[_0x2ff4ae]=this['_fixPosition'](_0x5b729d,_0x321fa0);}if(_0x5b729d instanceof _0xd4cf27){const _0x4e8edf=_0x301620['get'](_0x5b729d['root']['rootName']);_0xa57f0c[_0x2ff4ae]=this['_fixRange'](_0x5b729d,_0x4e8edf);}'root'===_0x2ff4ae&&(_0xa57f0c['root']=_0x301620['get'](_0xa57f0c['root']['rootName']));}}['_fixRange'](_0x4f5fef,_0x167760){return this['editor']['model']['createRange'](this['_fixPosition'](_0x4f5fef['start'],_0x167760),this['_fixPosition'](_0x4f5fef['end'],_0x167760));}['_fixPosition'](_0x1d13c8,_0x2794e2){return this['editor']['model']['createPositionFromPath'](_0x2794e2,_0x1d13c8['path'],_0x1d13c8['stickiness']);}['_handleInsertOperation'](_0x4eb417){const _0x11d407=this['_idsRoots']['get'](_0x4eb417['position']['root']['rootName']),_0x4f010a=this['_fixPosition'](_0x4eb417['position'],_0x11d407),_0x6354bb=null===_0x4eb417['_authorId']?null:_0x4eb417['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x411584=_0x4f010a['parent'],_0x525a51=this['_revisionId'],_0x1d91a8=[];for(const _0x2566a2 of _0x4eb417['nodes'])if(_0x2566a2['is']('element'))_0x1d91a8['push'](this['_makeIdsRoot'](_0x2566a2));else{for(let _0x44b5cc=0x0;_0x44b5cc<_0x2566a2['offsetSize'];_0x44b5cc++)_0x1d91a8['push'](new _0x3456a2('$text',{'vid':this['_revisionId']++}));}const _0x4f8e27=this['_revisionId'];for(let _0xdd9e7a=_0x525a51;_0xdd9e7a<_0x4f8e27;_0xdd9e7a++)this['_touched']['set'](_0xdd9e7a,{'userId':_0x6354bb});_0x411584['_insertChild'](_0x4f010a['offset'],_0x1d91a8);}['_handleMoveOperation'](_0x1494f1){(_0x1494f1=this['_cloneOperation'](_0x1494f1,this['_idsRoots']))['_execute']();const _0x19b688=null===_0x1494f1['_authorId']?null:_0x1494f1['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xb77b97=_0x1494f1['getMovedRangeStart'](),_0x3a3d78=_0xb77b97['parent'],_0x4d517b=_0xb77b97['offset'];!function _0x3f6614(_0x3dae78,_0x1bf3ef,_0x376ead,_0x5bb688){for(let _0x435522=_0x376ead;_0x435522<_0x5bb688;_0x435522++){const _0x53b400=_0x1bf3ef['getChild'](_0x435522);_0x53b400['is']('element','$text')?_0x3dae78['set'](_0x53b400['getAttribute']('vid'),{'userId':_0x19b688}):(_0x3dae78['set'](_0x53b400['getAttribute']('vid_start'),{'userId':_0x19b688}),_0x3f6614(_0x3dae78,_0x53b400,0x0,_0x53b400['childCount']),_0x3dae78['set'](_0x53b400['getAttribute']('vid_end'),{'userId':_0x19b688}));}}(this['_touched'],_0x3a3d78,_0x4d517b,_0x4d517b+_0x1494f1['howMany']);}['_handleMergeOperation'](_0xf3b54f){const _0x156d9b=null===(_0xf3b54f=this['_cloneOperation'](_0xf3b54f,this['_idsRoots']))['_authorId']?null:_0xf3b54f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x405856=_0xf3b54f['targetPosition']['parent'],_0x3fa2a5=_0xf3b54f['sourcePosition']['parent'],_0x597fe5=_0x405856['getAttribute']('vid_end'),_0x2e9024=_0x3fa2a5['getAttribute']('vid_start');_0x405856['_setAttribute']('vid_end',_0x3fa2a5['getAttribute']('vid_end')),_0x3fa2a5['_setAttribute']('vid_end',_0x597fe5),this['_touched']['set'](_0x2e9024,{'userId':_0x156d9b}),this['_touched']['set'](_0x597fe5,{'userId':_0x156d9b}),_0xf3b54f['_execute']();}['_handleSplitOperation'](_0xf7f442){const _0x48679d=null===(_0xf7f442=this['_cloneOperation'](_0xf7f442,this['_idsRoots']))['_authorId']?null:_0xf7f442['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x24436f=_0xf7f442['graveyardPosition'],_0x4a82f6=_0xf7f442['splitPosition']['parent'];_0xf7f442['_execute']();const _0x265f91=_0x4a82f6['getAttribute']('vid_end'),_0x18b2c9=_0xf7f442['insertionPosition']['nodeAfter'];if(_0x24436f){const _0x3466d7=_0x18b2c9['getAttribute']('vid_end'),_0xc887f7=_0x4a82f6['getAttribute']('vid_end');_0x4a82f6['_setAttribute']('vid_end',_0x3466d7),_0x18b2c9['_setAttribute']('vid_end',_0xc887f7),this['_touched']['set'](_0x4a82f6['getAttribute']('vid_end'),{'userId':_0x48679d}),this['_touched']['set'](_0x18b2c9['getAttribute']('vid_start'),{'userId':_0x48679d});}else{const _0x5abd05=this['_revisionId']++,_0x14b25d=this['_revisionId']++;_0x4a82f6['_setAttribute']('vid_end',_0x5abd05),_0x18b2c9['_setAttribute']('vid_start',_0x14b25d),_0x18b2c9['_setAttribute']('vid_end',_0x265f91),this['_touched']['set'](_0x5abd05,{'userId':_0x48679d}),this['_touched']['set'](_0x14b25d,{'userId':_0x48679d});}}['_handleMarkerOperation'](_0x237748){if(!_0x237748['affectsData'])return;const _0x325547=(_0x237748=this['_cloneOperation'](_0x237748,this['_diffRoots']))['oldRange']?_0x237748['oldRange']['root']:null,_0x3d5c74=_0x237748['newRange']?_0x237748['newRange']['root']:null;_0x325547&&this['_markers']['delete'](_0x237748['name']),_0x3d5c74&&this['_markers']['set'](_0x237748['name'],_0x237748['newRange']['clone']());const _0x4c19be=null===_0x237748['_authorId']?null:_0x237748['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1ed72c=_0x237748['name'];if(!this['_touchedMarkers']['has'](_0x1ed72c))return void this['_touchedMarkers']['set'](_0x1ed72c,{'range':_0x237748['oldRange'],'userId':_0x4c19be});const _0x3f76c7=this['_touchedMarkers']['get'](_0x1ed72c),_0x5a51a0=_0x3f76c7['range'],_0x348f7d=_0x237748['newRange'];null==_0x5a51a0&&null==_0x348f7d||_0x5a51a0&&_0x348f7d&&_0x5a51a0['isEqual'](_0x348f7d)?this['_touchedMarkers']['delete'](_0x237748['name']):_0x3f76c7['userId']=_0x4c19be;}['_handleRootOperation'](_0x16b25c,_0x39c063){this['_diffRoots']['has'](_0x16b25c['rootName'])?this['_diffRoots']['get'](_0x16b25c['rootName'])['_isAttached']=_0x16b25c['isAdd']:(this['_diffRoots']['set'](_0x16b25c['rootName'],N(_0x16b25c['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x16b25c['rootName'],{}),_0x39c063&&this['_idsRoots']['set'](_0x16b25c['rootName'],N(_0x16b25c['rootName'],!0x0)));const _0x4acc7d=null===_0x16b25c['_authorId']?null:_0x16b25c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x56eed0=this['_touchedRoots']['get'](_0x16b25c['rootName']);_0x56eed0&&_0x56eed0['userId']===_0x4acc7d?this['_touchedRoots']['delete'](_0x16b25c['rootName']):this['_touchedRoots']['set'](_0x16b25c['rootName'],{'userId':_0x4acc7d,'isAttached':_0x16b25c['isAdd']});}['_handleRootAttributeOperation'](_0x30fabf){const _0x454156=this['_diffRootsAttributes']['get'](_0x30fabf['root']['rootName']);null===_0x30fabf['newValue']?delete _0x454156[_0x30fabf['key']]:_0x454156[_0x30fabf['key']]=_0x30fabf['newValue'];}}function x(_0x1b9d1f){const _0x21d5fb=N(_0x1b9d1f['rootName'],_0x1b9d1f['isAttached']());for(const _0x474a5d of _0x1b9d1f['getChildren']()){const _0x505221=_0x474a5d['_clone'](!0x0);_0x21d5fb['_appendChild'](_0x505221);}return _0x21d5fb;}function N(_0x145f91,_0x174cc0=!0x0){const _0x47af92=new _0x387b07();return _0x47af92['rootName']=_0x145f91,_0x47af92['_isAttached']=_0x174cc0,_0x47af92['isAttached']=()=>_0x47af92['_isAttached'],_0x47af92;}function P(_0x436c28,_0x6a565,_0x35e8f9){const _0x442f18='elementEnd'==_0x436c28['type']?_0x35e8f9['createPositionAt'](_0x436c28['item'],'end'):_0x35e8f9['createPositionBefore'](_0x436c28['item']);return _0x35e8f9['createPositionFromPath'](_0x6a565,_0x442f18['path'],_0x442f18['stickiness']);}function V(_0x21d4d4,_0xcbd628,_0x4dd2ba){const _0x47c252='elementStart'==_0x21d4d4['type']?_0x4dd2ba['createPositionAt'](_0x21d4d4['item'],0x0):_0x4dd2ba['createPositionAfter'](_0x21d4d4['item']);return _0x4dd2ba['createPositionFromPath'](_0xcbd628,_0x47c252['path'],_0x47c252['stickiness']);}class he extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x5776f6(_0x501a9a){['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x44bea6,_0xeef590){super(_0x44bea6),this['focusTracker']=new _0xa79205(),this['keystrokes']=new _0x30799e(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0xeef590),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),this['initializeCssTransitionDisablerMixin']();}['render'](){super['render'](),_0x24f821({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x3aff15=_0x356b10=>_0x356b10['stopPropagation']();this['keystrokes']['set']('arrowright',_0x3aff15),this['keystrokes']['set']('arrowleft',_0x3aff15),this['keystrokes']['set']('arrowup',_0x3aff15),this['keystrokes']['set']('arrowdown',_0x3aff15);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x362707){this['revisionNameInputView']['fieldView']['element']['value']=_0x362707['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x19f7cf){const _0x5b7462=new ti(this['locale'],_0x2103e5),_0x2982a3=_0x5b7462['fieldView'];_0x2982a3['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x29f147=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x19f7cf&&(_0x29f147+='\x20('+m(this['locale'],'optional')+')'),(_0x5b7462['label']=_0x29f147,_0x2982a3['on']('input',()=>{this['revisionNameInputValue']=_0x2982a3['element']['value']['trim']();}),_0x5b7462);}}class l extends _0x34dfe9{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h];}['_saveRevisionFormView'];['init'](){const _0x17c0cc=this['editor'],_0x583d4d=_0x17c0cc['plugins']['get']('RevisionTracker');_0x17c0cc['ui']['componentFactory']['add']('revisionHistory',_0x29d5b8=>{const _0x12197d=_0x1c2f45(_0x29d5b8),_0x2fbd72=_0x12197d['panelView']['children'],_0x48aa68=new _0x5bb3a1(_0x29d5b8),_0x45dfb4=new _0x455c72(_0x29d5b8),_0x5d265f=new _0x562f7a(_0x29d5b8),_0x55d491=new _0x455c72(_0x29d5b8),_0x2f6b9a=new _0x562f7a(_0x29d5b8);return _0x12197d['bind']('isEnabled')['to'](_0x583d4d,'isReady',_0x583d4d,'isEnabled',_0x17c0cc,'isReadOnly',(_0x20b117,_0x6e651b,_0x487dd9)=>_0x20b117&&_0x6e651b&&!_0x487dd9),_0x12197d['buttonView']['set']({'icon':_0x310be3,'label':m(_0x29d5b8,'Revision\x20history'),'tooltip':!0x0}),_0x5d265f['set']({'label':m(_0x29d5b8,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x5d265f['bind']('isEnabled')['to'](_0x583d4d,'isReady',_0x583d4d,'isEnabled',_0x17c0cc,'isReadOnly',(_0x78ab94,_0x5c613a,_0x20e3b8)=>_0x78ab94&&_0x5c613a&&!_0x20e3b8),_0x5d265f['on']('execute',()=>this['_showDialog']()),_0x2f6b9a['set']({'label':m(_0x29d5b8,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x2f6b9a['bind']('isEnabled')['to'](_0x583d4d,'isReady',_0x17c0cc,'isReadOnly',(_0x76d4e,_0x15dda5)=>_0x76d4e&&!_0x15dda5),_0x2f6b9a['on']('execute',()=>{_0x17c0cc['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x12197d['isOpen']=!0x1,_0x17c0cc['editing']['view']['focus']();}),_0x45dfb4['children']['add'](_0x5d265f),_0x55d491['children']['add'](_0x2f6b9a),_0x48aa68['role']='menu',_0x48aa68['items']['addMany']([_0x45dfb4,_0x55d491]),_0x2fbd72['add'](_0x48aa68),_0x12197d;}),_0x17c0cc['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x538480=this['editor'],_0x4fe148=_0x538480['locale'],_0x5e1d39=new _0x4c5572(_0x4fe148),_0x2961aa=new _0x1de789(_0x4fe148);_0x5e1d39['buttonView']['set']({'icon':_0x310be3,'label':m(_0x4fe148,'Revision\x20history')});const _0x2408fd=new _0x10b25d(_0x4fe148,_0x5e1d39),_0xdaed64=new _0x189d08(_0x4fe148);_0xdaed64['set']({'label':m(_0x4fe148,'Save\x20current\x20revision')}),_0xdaed64['delegate']('execute')['to'](_0x5e1d39),_0xdaed64['on']('execute',()=>{this['_showDialog']();}),_0x2408fd['children']['add'](_0xdaed64),_0x2961aa['items']['add'](_0x2408fd);const _0x431dc8=new _0x10b25d(_0x4fe148,_0x5e1d39),_0x369ea3=new _0x189d08(_0x4fe148);return _0x369ea3['set']({'label':m(_0x4fe148,'Open\x20revision\x20history')}),_0x369ea3['delegate']('execute')['to'](_0x5e1d39),_0x369ea3['on']('execute',()=>{_0x538480['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x431dc8['children']['add'](_0x369ea3),_0x2961aa['items']['add'](_0x431dc8),_0x5e1d39['panelView']['children']['add'](_0x2961aa),_0x5e1d39;}['_showDialog'](){const _0x8825c3=this['editor'],_0xc31733=_0x8825c3['locale'],_0x3ae283=_0x8825c3['plugins']['get']('Dialog'),_0x50c207=_0x8825c3['plugins']['get']('RevisionTracker');function _0x9d04fb(_0x394c2c){_0x8825c3['config']['get']('revisionHistory.requireRevisionName')&&''===_0x394c2c['revisionName']?_0x394c2c['revisionNameInputView']['errorText']=m(_0xc31733,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x8825c3['plugins']['get'](h)['saveRevision']({'name':_0x394c2c['revisionName']}),_0x3ae283['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x9d04fb(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x3ae283['show']({'id':'revisionSave','title':m(_0xc31733,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x8825c3['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x3ae283['hide']()},{'label':m(_0x8825c3['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x537cf1){_0x537cf1['bind']('isEnabled')['to'](_0x50c207,'isReady',_0x50c207,'isEnabled',_0x8825c3,'isReadOnly',(_0x438bb5,_0x5c1410,_0x77df4a)=>_0x438bb5&&_0x5c1410&&!_0x77df4a);},'onExecute':()=>_0x9d04fb(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x4610d4=this['editor'],_0xb9658e=_0x4610d4['locale'];this['_saveRevisionFormView']=new he(_0xb9658e,_0x4610d4['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class z extends _0x501a9a{['changeId'];['_model'];constructor(_0x106471,_0x3e699f){super(_0x106471),this['_model']=_0x3e699f,this['changeId']=_0x3e699f['id'];const _0x7e813a=this['bindTemplate'],_0x12c2d2=m(_0x106471,_0x3e699f['data']['isSuggestion']?'Suggested\x20by':'add'==_0x3e699f['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x3e699f['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x7e813a['to']('type',_0x404b3a=>'ck-revision-change__'+_0x404b3a)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x12c2d2}]},{'text':'\x20'+_0x3e699f['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class G extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x2e1f41(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x4a0179){super(),this['id']=_0x4a0179['id']||_0xd8b478(),this['author']=_0x4a0179['author'],this['type']=_0x4a0179['type'],this['data']=_0x4a0179['data']||{},this['rootName']=_0x4a0179['rootName'],this['set']('createdAt',_0x4a0179['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class J{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x34d135,_0x3d1043){this['newRevisionId']=_0x34d135,this['oldRevisionId']=_0x3d1043,this['changes']=new _0x549534();}['_setChanges'](_0x4595dd){for(const _0x5b8842 of _0x4595dd)this['changes']['add'](_0x5b8842);}}class u extends _0x34dfe9{['repository'];['adapter']=null;['_utils'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x33830d,_0x5d6ea8,S,$];}constructor(_0x5f2437){super(_0x5f2437),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x4ff178,_0x188d27,_0x38e343)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x18276c=>{for(const _0x219c36 of this['editor']['editing']['view']['document']['roots'])_0x38e343?_0x18276c['removeClass']('ck-editor__editable__overlay',_0x219c36):_0x18276c['addClass']('ck-editor__editable__overlay',_0x219c36);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x11ee5c=>null!==_0x11ee5c),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x19dc83,_0x37034d,_0x18b63f)=>_0x19dc83&&_0x18b63f?_0x37034d['changes']['getIndex'](_0x18b63f):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x30e335,_0x3c2b0b)=>_0x30e335?_0x3c2b0b['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x5d6ea8);}['init'](){const _0x589285=this['editor'],_0x574c95=new ot(_0x589285,{'direction':'backward'}),_0x17efa6=new ot(_0x589285,{'direction':'forward'});(_0x589285['commands']['add']('showPreviousChange',_0x574c95),_0x589285['commands']['add']('showNextChange',_0x17efa6),_0x589285['commands']['add']('restoreRevision',new nt(_0x589285)),this['on']('change:numberOfChanges',()=>{_0x574c95['refresh'](),_0x17efa6['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x589285['enableReadOnlyMode']('revision-viewer'),_0x589285['plugins']['has']('WidgetToolbarRepository'))&&_0x589285['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x80a47c){return await this['_utils']['loadRevisionData'](_0x80a47c,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x80a47c);}async['getRevisionRootsAttributes'](_0xc1fc5a){return await this['_utils']['loadRevisionData'](_0xc1fc5a,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0xc1fc5a);}async['compare'](_0x264078,_0x41f752,_0xf63713=!0x1){if(!this['isEnabled'])return;const _0x1e3dad=this['diff'],_0x36797f=this['repository'],_0x500c0f='string'==typeof _0x264078?_0x36797f['getRevision'](_0x264078):_0x264078,_0x5a63b8='string'==typeof _0x41f752?_0x36797f['getRevision'](_0x41f752):_0x41f752,_0x3a9505=_0x500c0f['id'],_0x3b7e3e=_0x5a63b8?_0x5a63b8['id']:null;if(!_0xf63713&&this['diff']&&this['diff']['newRevisionId']===_0x3a9505&&this['diff']['oldRevisionId']===_0x3b7e3e)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x3a9505,_0x3b7e3e);const _0x4d98ac=this['_getRevisionsRange'](_0x500c0f,_0x5a63b8,!0x0)['map'](_0xa29910=>this['_utils']['loadRevisionData'](_0xa29910,this['adapter']));return _0x4d98ac['push'](new Promise(_0xb77c45=>{setTimeout(_0xb77c45,0x14);})),Promise['all'](_0x4d98ac)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x37248f=this['_getDiff'](_0x3a9505,_0x3b7e3e);for(const _0x10ac9b of _0x37248f['changes'])this['_changeIdToChange']['set'](_0x10ac9b['id'],_0x10ac9b);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x432374=>{for(const _0x147667 of this['editor']['model']['document']['getRootNames']())_0x432374['detachRoot'](_0x147667);for(const _0x53932c of Object['keys'](_0x37248f['model'])){const _0x2291c2=_0x432374['addRoot'](_0x53932c);for(const _0x6f45c9 of Object['keys'](_0x37248f['attributes'][_0x53932c]))_0x432374['setAttribute'](_0x6f45c9,_0x37248f['attributes'][_0x53932c][_0x6f45c9],_0x2291c2);_0x432374['insert'](_0x37248f['model'][_0x53932c],_0x2291c2,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x37248f['changes'])),this['isReady']=!0x0;})['catch'](_0x5bf3a0=>{console['error'](_0x5bf3a0),this['_cleanUp'](),_0x1e3dad&&(this['diff']=_0x1e3dad),this['isReady']=!0x0;});}['addRevisionData'](_0x575eb6,_0x318e87){const _0xddeb4e=this['repository']['createRevision'](_0x575eb6);return _0xddeb4e['on']('_update',(_0x3393fd,_0x4b9b85,_0x1d7202)=>_0x318e87(_0x4b9b85,_0x1d7202,_0xddeb4e)),this['repository']['addRevision'](_0xddeb4e),_0xddeb4e;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0xeb0231=>{for(const _0x55c518 of this['editor']['model']['document']['getRootNames']())_0xeb0231['detachRoot'](_0x55c518);});}['_sortAndFilterDiffChanges'](_0xd0edd7){const _0x5bfc88=[],_0x3b30a8=new Map();for(const _0x391f77 of this['editor']['model']['document']['getRootNames']()){const _0x353ee0=this['editor']['editing']['view']['getDomRoot'](_0x391f77);if(!_0x353ee0)continue;const _0x15498d=_0x353ee0['getClientRects']()['item'](0x0);_0x15498d&&(_0x5bfc88['push'](_0x391f77),_0x3b30a8['set'](_0x391f77,_0x15498d));}return _0x5bfc88['sort']((_0x4e107b,_0x48009d)=>{const _0x4574d3=_0x3b30a8['get'](_0x4e107b),_0x48423d=_0x3b30a8['get'](_0x48009d);return _0x4574d3['y']-_0x48423d['y']||_0x4574d3['x']-_0x48423d['x'];}),(_0xd0edd7=_0xd0edd7['filter'](_0x3a3c5e=>_0x5bfc88['includes'](_0x3a3c5e['rootName'])))['sort']((_0x4a5168,_0x26b0ca)=>_0x5bfc88['indexOf'](_0x4a5168['rootName'])-_0x5bfc88['indexOf'](_0x26b0ca['rootName'])),_0xd0edd7;}['_makeTape'](_0x42c83b){const _0x4fdc9b=Array['from'](_0x42c83b['markers'])['filter'](([_0x3e1053,_0x2351dc])=>_0x3e1053['startsWith']('revision:')&&!_0x2351dc['isCollapsed']),_0x5f3689=Array['from'](this['editor']['model']['createRangeIn'](_0x42c83b)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x4fdc9b['length'])for(const _0x1e68cb of _0x5f3689){const [_0x18b637,_0x28c49d]=_0x4fdc9b[0x0],[,_0x383529,_0x29d478]=_0x18b637['split'](':');if(_0x28c49d['end']['isEqual'](_0x1e68cb['nextPosition'])&&_0x4fdc9b['shift'](),(_0x1e68cb['previousPosition']['isEqual'](_0x28c49d['start'])||_0x1e68cb['previousPosition']['isAfter'](_0x28c49d['start']))&&('insertion'==_0x383529?_0x1e68cb['isAdded']={'userId':_0x29d478}:'deletion'==_0x383529&&(_0x1e68cb['isRemoved']={'userId':_0x29d478})),0x0==_0x4fdc9b['length'])break;}return _0x5f3689;}['_refreshStartEndIndex'](_0x4d72e0){const _0x21986e=new Map();for(let _0x1ecccc=0x0;_0x1ecccc<_0x4d72e0['length'];_0x1ecccc++)'text'===_0x4d72e0[_0x1ecccc]['type']?(_0x4d72e0[_0x1ecccc]['item']['startIndex']=_0x1ecccc,_0x4d72e0[_0x1ecccc]['item']['endIndex']=_0x1ecccc):('elementStart'===_0x4d72e0[_0x1ecccc]['type']?_0x4d72e0[_0x1ecccc]['item']['startIndex']=_0x1ecccc:'elementEnd'===_0x4d72e0[_0x1ecccc]['type']&&(_0x4d72e0[_0x1ecccc]['item']['endIndex']=_0x1ecccc),_0x21986e['set'](_0x4d72e0[_0x1ecccc]['id'],_0x1ecccc));for(const _0x3e127a of _0x21986e['values']())'elementStart'===_0x4d72e0[_0x3e127a]['type']?_0x4d72e0[_0x3e127a]['item']['endIndex']=_0x21986e['get'](_0x4d72e0[_0x3e127a]['pairId']):'elementEnd'===_0x4d72e0[_0x3e127a]['type']&&(_0x4d72e0[_0x3e127a]['item']['startIndex']=_0x21986e['get'](_0x4d72e0[_0x3e127a]['pairId']));}['_processTape'](_0x1f5a84){for(let _0x44b432=0x0;_0x44b432<_0x1f5a84['length'];_0x44b432++){if('elementStart'===_0x1f5a84[_0x44b432]['type'])_0x1f5a84[_0x44b432]['item']['startIndex']=_0x44b432;else{if('elementEnd'===_0x1f5a84[_0x44b432]['type']){_0x1f5a84[_0x44b432]['item']['endIndex']=_0x44b432;const _0x4b7ef8=_0x1f5a84[_0x44b432]['item']['startIndex'];_0x1f5a84[_0x4b7ef8]['pairId']=_0x1f5a84[_0x44b432]['id'],_0x1f5a84[_0x44b432]['pairId']=_0x1f5a84[_0x4b7ef8]['id'];}else _0x1f5a84[_0x44b432]['item']['startIndex']=_0x44b432,_0x1f5a84[_0x44b432]['item']['endIndex']=_0x44b432,_0x1f5a84[_0x44b432]['pairId']=null;}_0x1f5a84[_0x44b432]['markersStart']||(_0x1f5a84[_0x44b432]['markersStart']=[],_0x1f5a84[_0x44b432]['markersEnd']=[]);}}['_markInsertions'](_0x4fda30,_0x565f19){const _0x528295=_0x4fda30['filter'](_0x3f6725=>!_0x3f6725['isAdded']);for(let _0x142a6f=0x0;_0x142a6f<_0x565f19['length'];_0x142a6f++)_0x565f19[_0x142a6f]['isAdded']&&(_0x528295[_0x142a6f]['isAdded']=_0x565f19[_0x142a6f]['isAdded']);}['_getDiff'](_0x134131,_0x5d8cc5=null){const _0x3f22bc=this['repository']['getRevision'](_0x134131),_0x403753=_0x5d8cc5?this['repository']['getRevision'](_0x5d8cc5):null,_0xc240cc=this['_getRevisionsRange'](_0x3f22bc,_0x403753),_0x1b7b27=_0xc240cc[_0xc240cc['length']-0x1],_0x147ba4=new Map(),_0x152c56={'model':{},'attributes':{},'changes':[]},_0x3f9197=new Set(),_0x3d76f2=new Map();for(let _0x33a1f4=_0xc240cc['length']-0x1;_0x33a1f4>=0x0;_0x33a1f4--){const _0x1631cf=_0xc240cc[_0x33a1f4];for(const _0x5d9515 of Object['keys'](_0x1631cf['diffData']))if(_0x1631cf['diffData'][_0x5d9515]['attachChange']){const _0x41dfcf=_0x1631cf['diffData'][_0x5d9515]['attachChange'];_0x41dfcf['isAttached']?(_0x3f9197['add'](_0x5d9515),_0x3d76f2['has'](_0x5d9515)&&_0x3d76f2['get'](_0x5d9515)['userId']==_0x41dfcf['userId']?_0x3d76f2['delete'](_0x5d9515):_0x3d76f2['set'](_0x5d9515,_0x41dfcf)):_0x3d76f2['has'](_0x5d9515)?(_0x3f9197['delete'](_0x5d9515),_0x3d76f2['delete'](_0x5d9515)):(_0x3f9197['add'](_0x5d9515),_0x3d76f2['set'](_0x5d9515,_0x41dfcf));}else _0x3f9197['add'](_0x5d9515);}for(const _0x43113c of _0x3f9197){const _0x57f6a9=_0x3d76f2['has'](_0x43113c)&&!_0x3d76f2['get'](_0x43113c)['isAttached'];let _0x4ee943=_0x57f6a9?_0xc240cc['length']-0x1:0x0;const _0x580136=_0x57f6a9?-0x1:0x1;for(;_0xc240cc[_0x4ee943];){const _0x490777=_0xc240cc[_0x4ee943];if(_0x490777['diffData'][_0x43113c]){const _0x5e1316=_0x57f6a9?_0x490777['diffData'][_0x43113c]['attributesBefore']:_0x490777['diffData'][_0x43113c]['attributesAfter'];_0x152c56['attributes'][_0x43113c]=_0x5e1316?_0x408657(_0x5e1316):{};break;}_0x4ee943+=_0x580136;}}for(const _0x3a9794 of _0xc240cc){_0x3a9794['model']={};for(const _0x4141e8 of _0x3a9794['authors'])_0x147ba4['set'](_0x4141e8['id'],_0x4141e8);for(const _0xa2e5d8 of _0x3f9197){const _0x39b2de=_0x3a9794['diffData'][_0xa2e5d8]?_0x3a9794['diffData'][_0xa2e5d8]['insertions']:'[]',_0x2b1ad2=_0x3a9794['diffData'][_0xa2e5d8]?_0x3a9794['diffData'][_0xa2e5d8]['deletions']:'[]';_0x3a9794['model'][_0xa2e5d8]={'insertions':this['_utils']['_makeModelFromViewString'](_0x39b2de),'deletions':this['_utils']['_makeModelFromViewString'](_0x2b1ad2)};}}for(const _0x118741 of _0x3f9197){let _0x3fcb74=null,_0xe18475=0x0;const _0x17c2d3=new Map(Array['from'](_0x3f22bc['model'][_0x118741]['insertions']['markers'])['filter'](([_0x2a401e])=>!_0x2a401e['startsWith']('revision:')));let _0x585713=0x0;for(const _0x2ddce1 of _0xc240cc){const _0x3053ad=this['_makeTape'](_0x2ddce1['model'][_0x118741]['insertions']);_0x2ddce1==_0x3f22bc?(_0x3fcb74=_0x3053ad,_0xe18475=_0x3fcb74['length'],_0x3fcb74['forEach'](_0x5bd36e=>{_0x5bd36e['id']=_0x585713++;}),this['_processTape'](_0x3fcb74)):this['_markInsertions'](_0x3fcb74,_0x3053ad);const _0x17b1bc=_0x3fcb74['filter'](_0x3da61b=>!_0x3da61b['isAdded'])['map'](_0xac8143=>_0xac8143['id']);let _0xf52df8=0x0;const _0x178b2b=this['_makeTape'](_0x2ddce1['model'][_0x118741]['deletions']);_0x178b2b['forEach'](_0x50bfe7=>{_0x50bfe7['isRemoved']?_0x50bfe7['id']=_0xe18475++:_0x50bfe7['id']=_0x17b1bc[_0xf52df8++];}),this['_processTape'](_0x178b2b),this['_setDistance'](_0x3fcb74,'isAdded'),this['_setDistance'](_0x178b2b,'isRemoved'),_0x2ddce1==_0x3f22bc&&this['_markMarkers'](_0x3fcb74,_0x17c2d3),_0x3fcb74=this['_joinTapes'](_0x3fcb74,_0x178b2b),this['_refreshStartEndIndex'](_0x3fcb74),this['_setDistance'](_0x3fcb74,'isRemoved');}_0x3fcb74=_0x3fcb74['filter'](_0x12a501=>!(_0x12a501['isAdded']&&_0x12a501['isRemoved']));const _0x30f035=new Map(_0x1b7b27['model'][_0x118741]['deletions']['markers']),_0x586bde=new Set(_0x17c2d3['keys']());for(const _0x17cfc8 of _0x30f035['keys']())_0x586bde['delete'](_0x17cfc8);this['_markSuggestions'](_0x3fcb74,_0x586bde),this['_fixObsoleteTags'](_0x3fcb74),_0x3fcb74=this['_removeMissingPairs'](_0x3fcb74),_0x3fcb74=this['_markMismatchedRemovedTags'](_0x3fcb74),_0x3fcb74=this['_removeUnsupportedChanges'](_0x3fcb74);const {root:_0x3c5192,changes:_0x579503}=this['_makeModelFromTape'](_0x3fcb74,_0x147ba4,_0x118741);_0x152c56['model'][_0x118741]=_0x3c5192;const _0x59a53e=_0x3d76f2['get'](_0x118741);if(_0x59a53e){const _0x348952=_0x147ba4['get'](_0x59a53e['userId']),_0x1f52d1=new G({'author':_0x348952,'type':_0x59a53e['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x118741});_0x579503['unshift'](_0x1f52d1),_0x152c56['attributes'][_0x118741]['revisionHistoryAttachChange']=_0x1f52d1['id'];}_0x152c56['changes']=_0x152c56['changes']['concat'](_0x579503);}return _0x152c56;}['_markMarkers'](_0x429b25,_0x3c64f7){for(let _0x4a390f=0x0;_0x4a390f<_0x429b25['length'];_0x4a390f++)for(const [_0xe91a98,_0x426e4c]of _0x3c64f7)!_0x426e4c['isCollapsed']&&_0x426e4c['start']['isEqual'](_0x429b25[_0x4a390f]['previousPosition'])&&_0x429b25[_0x4a390f]['markersStart']['push'](_0xe91a98),_0x426e4c['end']['isEqual'](_0x429b25[_0x4a390f]['nextPosition'])&&_0x429b25[_0x4a390f]['markersEnd']['push'](_0xe91a98);}['_joinTapes'](_0x1d9126,_0x19bc57){let _0x3d9c3f=[],_0x232e9b=0x0,_0x2f445a=0x0;for(;_0x232e9b<_0x1d9126['length']||_0x2f445a<_0x19bc57['length'];){const _0x1b3e5a=_0x1d9126[_0x232e9b]||{},_0x4a4e68=_0x19bc57[_0x2f445a]||{};if(_0x1b3e5a['id']==_0x4a4e68['id'])_0x232e9b++,_0x2f445a++,_0x3d9c3f['push'](_0x1b3e5a);else{if(_0x4a4e68['isRemoved']&&_0x1b3e5a['isAdded']){const {commonTape:_0x13f0be,iEnd:_0x331579,jEnd:_0x3c17b7}=this['_threeWayMerge'](_0x1d9126,_0x232e9b,_0x19bc57,_0x2f445a);_0x3d9c3f=_0x3d9c3f['concat'](_0x13f0be),_0x232e9b=_0x331579,_0x2f445a=_0x3c17b7;}else _0x4a4e68['isRemoved']?(_0x2f445a++,_0x3d9c3f['push'](_0x4a4e68)):(_0x232e9b++,_0x3d9c3f['push'](_0x1b3e5a));}}return _0x3d9c3f;}['_markSuggestions'](_0x2dc94f,_0x2f0580){const _0x1ed791=[];for(let _0x20da5d=0x0;_0x20da5d<_0x2dc94f['length'];_0x20da5d++){for(let _0x4203b9=0x0;_0x4203b9<_0x2dc94f[_0x20da5d]['markersStart']['length'];_0x4203b9++){const _0x197ad0=_0x2dc94f[_0x20da5d]['markersStart'][_0x4203b9];if(!_0x2f0580['has'](_0x197ad0))continue;const {group:_0x3ea7ab,type:_0x367cd4,authorId:_0x70fd24}=_0x5bd886(_0x197ad0);'revision-suggestion'!=_0x3ea7ab||'insertion'!=_0x367cd4&&'deletion'!=_0x367cd4||(_0x1ed791['unshift']({'type':_0x367cd4,'name':_0x197ad0,'userId':_0x70fd24}),_0x2dc94f[_0x20da5d]['markersStart']['splice'](_0x4203b9,0x1),_0x4203b9--);}_0x51c234(_0x2dc94f[_0x20da5d]);for(let _0x22a0c4=0x0;_0x22a0c4<_0x2dc94f[_0x20da5d]['markersEnd']['length'];_0x22a0c4++){const _0x327d09=_0x2dc94f[_0x20da5d]['markersEnd'][_0x22a0c4];if(!_0x2f0580['has'](_0x327d09))continue;const {group:_0x150200,type:_0xee13d3}=_0x5bd886(_0x327d09);if('revision-suggestion'!=_0x150200||'insertion'!=_0xee13d3&&'deletion'!=_0xee13d3)continue;_0x2dc94f[_0x20da5d]['markersEnd']['splice'](_0x22a0c4,0x1),_0x22a0c4--;const _0x2c71dc=_0x1ed791['findIndex'](_0x4b0cd9=>_0x4b0cd9['name']==_0x327d09);_0x2c71dc>-0x1&&_0x1ed791['splice'](_0x2c71dc,0x1);}}function _0x5bd886(_0x2da1b0){const _0x2be44d=_0x2da1b0['split'](':');return{'group':_0x2be44d[0x0],'type':_0x2be44d[0x1],'subType':_0x2be44d['length']>=0x5?_0x2be44d[0x2]:null,'id':_0x2be44d['length']<0x5?_0x2be44d[0x2]:_0x2be44d[0x3],'authorId':_0x2be44d['length']<0x5?_0x2be44d[0x3]:_0x2be44d[0x4],'markerCount':0x6==_0x2be44d['length']?_0x2be44d[0x5]:null};}function _0x51c234(_0x27fb32){for(let _0x2db0d5=0x0;_0x2db0d5<_0x1ed791['length'];_0x2db0d5++){if(_0x27fb32['isAdded']&&'insertion'==_0x1ed791[_0x2db0d5]['type']&&_0x27fb32['isAdded']['userId']==_0x1ed791[_0x2db0d5]['userId'])return _0x27fb32['isAddSuggestion']=_0x1ed791[_0x2db0d5],void delete _0x27fb32['isAdded'];if(!_0x27fb32['isAdded']&&!_0x27fb32['isRemoved']&&'deletion'==_0x1ed791[_0x2db0d5]['type'])return void(_0x27fb32['isRemoveSuggestion']=_0x1ed791[_0x2db0d5]);}}}['_setDistance'](_0x49c81b,_0x53cec0){let _0x3e038b=0x0,_0x455e3f=!0x1;const _0x25649c=new Map();for(const _0x15f173 of _0x49c81b)_0x15f173[_0x53cec0]?_0x455e3f&&(_0x3e038b++,_0x455e3f=!0x1):(_0x3e038b++,_0x455e3f=!0x0),_0x25649c['set'](_0x15f173['id'],_0x3e038b);for(let _0x48e237=0x0;_0x48e237<_0x49c81b['length'];_0x48e237++){if('isRemoved'==_0x53cec0&&_0x49c81b[_0x48e237]['isAdded']||'isAdded'==_0x53cec0&&_0x49c81b[_0x48e237]['isRemoved'])continue;if('text'==_0x49c81b[_0x48e237]['type']){_0x49c81b[_0x48e237]['distance']=0x0;continue;}const _0x2f4977=_0x25649c['get'](_0x49c81b[_0x48e237]['pairId']),_0x223477=_0x25649c['get'](_0x49c81b[_0x48e237]['id']);_0x49c81b[_0x48e237]['distance']=_0x2f4977-_0x223477;}}['_getRevisionsRange'](_0x30d73f,_0xe29d43,_0x3ec850=!0x1){const _0x8c674a=[];let _0x14803a=this['repository']['getIndex'](_0x30d73f),_0x3348cb=this['repository']['getIndex'](_0xe29d43);for(-0x1==_0x3348cb&&(_0x3348cb=this['repository']['_revisions']['length'],_0x3ec850=!0x1);_0x14803a<_0x3348cb;)_0x8c674a['push'](this['repository']['getRevision'](_0x14803a)),_0x14803a++;return _0x3ec850&&_0x8c674a['push'](this['repository']['getRevision'](_0x14803a)),_0x8c674a;}['_threeWayMerge'](_0x2b78dd,_0x19e8f1,_0x18cfa9,_0x1a1807){const _0x30a2f4=this['editor']['model']['schema'];let _0x75fa58=_0x19e8f1;for(;_0x2b78dd[_0x75fa58]&&_0x2b78dd[_0x75fa58]['isAdded'];)_0x75fa58++;let _0x2d8b49=_0x1a1807;for(;_0x18cfa9[_0x2d8b49]&&_0x18cfa9[_0x2d8b49]['isRemoved'];)_0x2d8b49++;_0x279bb4(_0x2b78dd,_0x19e8f1,_0x75fa58),_0x279bb4(_0x18cfa9,_0x1a1807,_0x2d8b49);const _0x407356=_0x18cfa9['slice'](_0x1a1807,_0x2d8b49)['concat'](_0x2b78dd['slice'](_0x19e8f1,_0x75fa58));return _0x407356['sort']((_0x3bf6be,_0x1a8c1f)=>_0x3bf6be['side']!=_0x1a8c1f['side']?_0x3bf6be['side']-_0x1a8c1f['side']:_0x3bf6be['level']!=_0x1a8c1f['level']?_0x3bf6be['level']-_0x1a8c1f['level']:_0x3bf6be['distance']!=_0x1a8c1f['distance']?_0x1a8c1f['distance']-_0x3bf6be['distance']:!!_0x3bf6be['isAdded']!=!!_0x1a8c1f['isAdded']?-0x1==_0x3bf6be['side']||0x0==_0x3bf6be['side']?_0x3bf6be['isAdded']?-0x1:0x1:_0x3bf6be['isAdded']?0x1:-0x1:_0x3bf6be['index']-_0x1a8c1f['index']),{'commonTape':_0x407356,'iEnd':_0x75fa58,'jEnd':_0x2d8b49};function _0x279bb4(_0x3e40db,_0x57407a,_0x29c45a){let _0x324853=-0x1,_0x3fa5bd=Number['POSITIVE_INFINITY'],_0x16ac74=!0x0;for(let _0x375ab4=_0x57407a;_0x375ab4<_0x29c45a;_0x375ab4++)if(_0x30a2f4['isInline'](_0x3e40db[_0x375ab4]['item'])||(_0x16ac74=!0x1),_0x3e40db[_0x375ab4]['item']['startIndex']<_0x57407a&&(_0x324853=_0x375ab4),_0x3e40db[_0x375ab4]['item']['endIndex']>=_0x29c45a){_0x3fa5bd=_0x375ab4;break;}_0x16ac74&&(_0x324853=_0x29c45a-0x1);for(let _0x154539=_0x57407a;_0x154539<_0x29c45a;_0x154539++)_0x3e40db[_0x154539]['side']=_0x154539<=_0x324853?-0x1:_0x154539<_0x3fa5bd?0x0:0x1,_0x3e40db[_0x154539]['index']=_0x154539;let _0x1e7b09=0x0;for(let _0x29e434=_0x57407a;_0x29e434<=_0x324853;_0x29e434++)0x0==_0x3e40db[_0x29e434]['distance']?_0x3e40db[_0x29e434]['level']=_0x1e7b09:(_0x1e7b09++,_0x3e40db[_0x29e434]['level']=_0x1e7b09,_0x1e7b09++);for(let _0x293023=_0x57407a;_0x293023<_0x29c45a;_0x293023++)0x0==_0x3e40db[_0x293023]['side']&&(_0x3e40db[_0x293023]['level']=_0x1e7b09);_0x1e7b09=0x0;for(let _0x7eb665=_0x29c45a-0x1;_0x7eb665>=_0x3fa5bd;_0x7eb665--)0x0==_0x3e40db[_0x7eb665]['distance']?_0x3e40db[_0x7eb665]['level']=_0x1e7b09:(_0x1e7b09--,_0x3e40db[_0x7eb665]['level']=_0x1e7b09,_0x1e7b09--);}}['_fixObsoleteTags'](_0x7432f8){const _0x39e1d9=new Map(),_0x198a75=this['editor']['model']['schema'];for(let _0x45e505=0x1;_0x45e505<_0x7432f8['length'];_0x45e505++){let _0x270a7e,_0x454df8,_0x4c1f46;const _0xd45e85=_0x7432f8[_0x45e505],_0x58e9a1=_0x7432f8[_0x45e505-0x1];if('text'==_0xd45e85['type'])continue;if(_0xd45e85['type']!=_0x58e9a1['type'])continue;if(!_0x198a75['isBlock'](_0x58e9a1['item'])||_0x198a75['isLimit'](_0x58e9a1['item']))continue;if(!_0x198a75['isBlock'](_0xd45e85['item'])||_0x198a75['isLimit'](_0xd45e85['item']))continue;if((_0x7432f8[_0x45e505]['isAdded']||_0x7432f8[_0x45e505]['isAddSuggestion'])&&_0x7432f8[_0x45e505-0x1]['isRemoved'])_0x270a7e=_0x7432f8[_0x45e505],_0x454df8=_0x7432f8[_0x45e505-0x1],_0x4c1f46=_0x45e505-0x1;else{if(!_0x7432f8[_0x45e505]['isRemoved']||!_0x7432f8[_0x45e505-0x1]['isAdded']&&!_0x7432f8[_0x45e505-0x1]['isAddSuggestion'])continue;_0x270a7e=_0x7432f8[_0x45e505-0x1],_0x454df8=_0x7432f8[_0x45e505],_0x4c1f46=_0x45e505;}const _0x1358ef=_0x270a7e['level']==_0x454df8['level'],_0x38f4a0=Math['abs'](_0x270a7e['level'])<Math['abs'](_0x454df8['level'])&&0x0==_0x454df8['distance'];(_0x1358ef||_0x38f4a0)&&(_0x39e1d9['set'](_0x454df8['id'],_0x270a7e['id']),_0x7432f8['splice'](_0x4c1f46,0x1),_0x45e505--,_0x270a7e['isAdded']=!0x1);}for(let _0x57fe7f=0x0;_0x57fe7f<_0x7432f8['length'];_0x57fe7f++)_0x39e1d9['has'](_0x7432f8[_0x57fe7f]['pairId'])&&(_0x7432f8[_0x57fe7f]['pairId']=_0x39e1d9['get'](_0x7432f8[_0x57fe7f]['pairId']));}['_removeMissingPairs'](_0x1b241a){const _0x22adea=new Set(_0x1b241a['map'](_0x3dcbc6=>_0x3dcbc6['id']));for(let _0x289ed5=0x0;_0x289ed5<_0x1b241a['length'];_0x289ed5++)_0x22adea['has'](_0x1b241a[_0x289ed5]['pairId'])||0x0==_0x1b241a[_0x289ed5]['distance']||(_0x1b241a[_0x289ed5]['isIncorrect']=!0x0);return _0x1b241a['filter'](_0x54441a=>!_0x54441a['isIncorrect']);}['_markMismatchedRemovedTags'](_0x4ebea3){const _0x419aa0=new Set();for(let _0x5c22bb=0x0;_0x5c22bb<_0x4ebea3['length'];_0x5c22bb++){if(_0x419aa0['has'](_0x4ebea3[_0x5c22bb]['id'])&&_0x4ebea3[_0x5c22bb]['isRemoved']&&(_0x4ebea3[_0x5c22bb]['isIncorrect']=!0x0),_0x4ebea3[_0x5c22bb]['isIncorrect'])continue;if(0x0==_0x4ebea3[_0x5c22bb]['distance'])continue;if('elementStart'!=_0x4ebea3[_0x5c22bb]['type'])continue;if(null==_0x4ebea3[_0x5c22bb]['pairId'])continue;let _0x21c182=_0x5c22bb+0x1,_0x3b8e92=0x0;for(;_0x4ebea3[_0x21c182]['id']!=_0x4ebea3[_0x5c22bb]['pairId'];)'elementStart'==_0x4ebea3[_0x21c182]['type']?_0x3b8e92++:'elementEnd'==_0x4ebea3[_0x21c182]['type']&&_0x3b8e92--,_0x21c182++;if(0x0!=_0x3b8e92){if(_0x4ebea3[_0x5c22bb]['isRemoved'])_0x4ebea3[_0x5c22bb]['isIncorrect']=!0x0;else{for(;_0x21c182!=_0x5c22bb;)_0x4ebea3[_0x21c182]['isRemoved']&&0x0!=_0x4ebea3[_0x21c182]['distance']&&(_0x4ebea3[_0x21c182]['isIncorrect']=!0x0,_0x419aa0['add'](_0x4ebea3[_0x21c182]['pairId'])),_0x21c182--;}}}return _0x4ebea3['filter'](_0x29f81d=>!_0x29f81d['isIncorrect']);}['_removeUnsupportedChanges'](_0x254a79){const _0x2df177=this['editor']['model']['schema'];for(let _0xa8895e=0x0;_0xa8895e<_0x254a79['length'];_0xa8895e++){if(!(_0x254a79[_0xa8895e]['isAdded']||_0x254a79[_0xa8895e]['isAddSuggestion']||_0x254a79[_0xa8895e]['isRemoved']||_0x254a79[_0xa8895e]['isRemoveSuggestion']))continue;if(0x0==_0x254a79[_0xa8895e]['distance'])continue;const _0x1df76e=_0x254a79[_0xa8895e]['item'];_0x2df177['isBlock'](_0x1df76e)||_0x2df177['isLimit'](_0x1df76e)||(_0x254a79[_0xa8895e]['isAdded']&&delete _0x254a79[_0xa8895e]['isAdded'],_0x254a79[_0xa8895e]['isAddSuggestion']&&delete _0x254a79[_0xa8895e]['isAddSuggestion'],_0x254a79[_0xa8895e]['isRemoveSuggestion']&&delete _0x254a79[_0xa8895e]['isRemoveSuggestion'],_0x254a79[_0xa8895e]['isRemoved']&&(_0x254a79[_0xa8895e]['isIncorrect']=!0x0));}return _0x254a79['filter'](_0x5fa98c=>!_0x5fa98c['isIncorrect']);}['_makeModelFromTape'](_0x18d5f9,_0x4f6ba9,_0x295d36){const _0x459dc2=new _0x387b07(),_0xbba5e8=[],_0x3542fa=new Map(),_0x593c0e=this['editor']['model'],_0x3630ad=_0x593c0e['schema'],_0x75c842=[_0x459dc2],_0x2f4148={},_0x877b15={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0xe77ebf=null;const _0x1404f4=[0x0];for(let _0x3adc15=0x0;_0x3adc15<_0x18d5f9['length'];_0x3adc15++)if('elementStart'===_0x18d5f9[_0x3adc15]['type']){_0x18d5f9[_0x3adc15]['previousPosition']=_0x593c0e['createPositionFromPath'](_0x459dc2,_0x1404f4);const _0x501ac0=new _0x3456a2(_0x18d5f9[_0x3adc15]['item']['name'],_0x18d5f9[_0x3adc15]['item']['getAttributes']());_0x75c842[0x0]['_appendChild'](_0x501ac0),_0x1404f4['push'](0x0),_0x75c842['unshift'](_0x501ac0),_0x18d5f9[_0x3adc15]['nextPosition']=_0x593c0e['createPositionFromPath'](_0x459dc2,_0x1404f4);}else'elementEnd'===_0x18d5f9[_0x3adc15]['type']?(_0x75c842['shift'](),_0x18d5f9[_0x3adc15]['previousPosition']=_0x593c0e['createPositionFromPath'](_0x459dc2,_0x1404f4),_0x1404f4['pop'](),_0x1404f4[_0x1404f4['length']-0x1]++,_0x18d5f9[_0x3adc15]['nextPosition']=_0x593c0e['createPositionFromPath'](_0x459dc2,_0x1404f4)):(_0x18d5f9[_0x3adc15]['previousPosition']=_0x593c0e['createPositionFromPath'](_0x459dc2,_0x1404f4),_0xe77ebf?_0xe77ebf['_data']+=_0x18d5f9[_0x3adc15]['item']['data']:_0xe77ebf=new _0x4e8cd5(_0x18d5f9[_0x3adc15]['item']['data'],_0x18d5f9[_0x3adc15]['item']['getAttributes']()),_0x18d5f9[_0x3adc15+0x1]&&'text'===_0x18d5f9[_0x3adc15+0x1]['type']&&_0x5d839f(_0xe77ebf,_0x18d5f9[_0x3adc15+0x1]['item'])||(_0x75c842[0x0]['_appendChild'](_0xe77ebf),_0xe77ebf=null),_0x1404f4[_0x1404f4['length']-0x1]+=_0x18d5f9[_0x3adc15]['item']['offsetSize'],_0x18d5f9[_0x3adc15]['nextPosition']=_0x593c0e['createPositionFromPath'](_0x459dc2,_0x1404f4));for(let _0x49b3f1=0x0;_0x49b3f1<_0x18d5f9['length'];_0x49b3f1++){const _0x30a069=_0x18d5f9[_0x49b3f1]['previousPosition'],_0xf4176b=_0x18d5f9[_0x49b3f1]['nextPosition'];for(const _0x12e4d7 of _0x18d5f9[_0x49b3f1]['markersStart'])_0x3542fa['set'](_0x12e4d7,{'start':_0x30a069,'end':null});_0xf1a575('isRemoveSuggestion',_0x49b3f1,_0x30a069,_0xf4176b),_0xf1a575('isAddSuggestion',_0x49b3f1,_0x30a069,_0xf4176b),_0xf1a575('isRemoved',_0x49b3f1,_0x30a069,_0xf4176b),_0xf1a575('isAdded',_0x49b3f1,_0x30a069,_0xf4176b);for(const _0x57ea41 of _0x18d5f9[_0x49b3f1]['markersEnd']){const _0x2bd680=_0x3542fa['get'](_0x57ea41);_0x2bd680?_0x2bd680['end']=_0xf4176b:_0x3542fa['set'](_0x57ea41,{'start':_0xf4176b,'end':_0xf4176b});}}for(const [_0x42318d,_0x133839]of _0x3542fa){const _0x119700=this['editor']['model']['createRange'](_0x133839['start'],_0x133839['end']);_0x459dc2['markers']['set'](_0x42318d,_0x119700);}return _0xbba5e8['sort']((_0x1d0f9f,_0x28537d)=>{const _0x277694=_0x459dc2['markers']['get']('revision:'+_0x1d0f9f['id']),_0x3a85b6=_0x459dc2['markers']['get']('revision:'+_0x28537d['id']);return _0x277694['start']['isBefore'](_0x3a85b6['start'])?-0x1:_0x277694['start']['isAfter'](_0x3a85b6['start'])?0x1:_0x277694['end']['isBefore'](_0x3a85b6['end'])?-0x1:_0x277694['end']['isAfter'](_0x3a85b6['end'])?0x1:'add'===_0x1d0f9f['type']?-0x1:0x1;}),{'root':_0x459dc2,'changes':_0xbba5e8};function _0xf1a575(_0xa0733f,_0x44201a,_0x32c13d,_0x1c76a2){const _0x2c0646=!!_0x18d5f9[_0x44201a][_0xa0733f],_0x5ac3fd=_0x2c0646?_0x18d5f9[_0x44201a][_0xa0733f]['userId']:null,_0x535323=_0x44201a===_0x18d5f9['length']-0x1,_0x59cb5e=_0x877b15[_0xa0733f][0x0],_0x3d3192=_0x3630ad['isObject'](_0x18d5f9[_0x44201a]['item']);!_0x2f4148[_0xa0733f]&&_0x2c0646?_0x2f4148[_0xa0733f]={'start':_0x32c13d,'tapeItem':_0x18d5f9[_0x44201a],'userId':_0x5ac3fd,'type':_0xa0733f}:_0x2f4148[_0xa0733f]&&!_0x2c0646?(_0x2f4148[_0xa0733f]['end']=_0x32c13d,_0x4bd015(_0x2f4148[_0xa0733f]),_0x2f4148[_0xa0733f]=null):_0x2f4148[_0xa0733f]&&_0x2c0646&&_0x2f4148[_0xa0733f]['userId']!==_0x5ac3fd&&(_0x2f4148[_0xa0733f]['end']=_0x32c13d,_0x59cb5e&&_0x59cb5e['userId']===_0x2f4148[_0xa0733f]['userId']||_0x4bd015(_0x2f4148[_0xa0733f]),_0x2f4148[_0xa0733f]={'start':_0x32c13d,'tapeItem':_0x18d5f9[_0x44201a],'userId':_0x5ac3fd,'type':_0xa0733f}),_0x2f4148[_0xa0733f]&&_0x3d3192&&('elementStart'!==_0x18d5f9[_0x44201a]['type']||_0x59cb5e&&_0x59cb5e['userId']===_0x5ac3fd||_0x877b15[_0xa0733f]['unshift']({'userId':_0x5ac3fd,'object':_0x18d5f9[_0x44201a]['item'],'change':_0x2f4148[_0xa0733f]}),'elementEnd'===_0x18d5f9[_0x44201a]['type']&&_0x59cb5e&&_0x59cb5e['object']===_0x18d5f9[_0x44201a]['item']&&(_0x877b15[_0xa0733f]['shift'](),_0x2f4148[_0xa0733f]=_0x59cb5e['change'])),_0x2f4148[_0xa0733f]&&_0x535323&&(_0x2f4148[_0xa0733f]['end']=_0x1c76a2,_0x4bd015(_0x2f4148[_0xa0733f]),_0x2f4148[_0xa0733f]=null);}function _0x4bd015({start:_0xca4c7,end:_0x180206,tapeItem:_0x26454a,userId:_0x5aa1ab,type:_0x236ed7}){const _0x3b2bd0=_0x26454a['item'],_0x122db2=_0x593c0e['schema']['isBlock'](_0x3b2bd0)&&!_0x593c0e['schema']['isLimit'](_0x3b2bd0),_0x22a98f=_0xca4c7['nodeAfter']==_0x180206['parent']&&_0x180206['isAtStart'];if(_0x122db2&&_0x22a98f)return;const _0x11c5b=_0x593c0e['createRange'](_0xca4c7,_0x180206),_0x32e52a=_0x4f6ba9['get'](_0x5aa1ab),_0x23a856=new G({'author':_0x32e52a,'type':'isAdded'==_0x236ed7||'isAddSuggestion'==_0x236ed7?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x236ed7||'isRemoveSuggestion'==_0x236ed7},'createdAt':new Date(),'rootName':_0x295d36});_0xbba5e8['push'](_0x23a856),_0x459dc2['markers']['set']('revision:'+_0x23a856['id'],_0x11c5b);}function _0x5d839f(_0x53964b,_0x21da08){const _0x5b8108=_0x53964b['getAttributes'](),_0x235630=_0x21da08['getAttributes']();for(const _0x5c588a of _0x5b8108){if(_0x5c588a[0x1]!==_0x21da08['getAttribute'](_0x5c588a[0x0]))return!0x1;_0x235630['next']();}return _0x235630['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x1a59d6=>{const _0x47d755=_0x1a59d6['markerName']['split'](':')[0x1],_0x2d8da3=this['_getChangeFromId'](_0x47d755);if(!_0x2d8da3)return null;const _0xbb616f='add'==_0x2d8da3['type']?'insertion':'deletion',_0x30f972=['ck-suggestion-marker','ck-suggestion-marker-'+_0xbb616f];return _0x2d8da3['data']['isSuggestion']&&_0x30f972['push']('ck-suggestion-marker-'+_0xbb616f+'-new'),this['activeChange']==_0x2d8da3&&_0x30f972['push']('ck-suggestion-marker--active'),{'classes':_0x30f972,'attributes':{'data-change-id':_0x47d755}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x1df59d=>{_0x1df59d['on']('element:pre',(_0x2b2fe4,_0x204d16,_0x412f9d)=>{const _0x49c0c6=_0x204d16['viewItem']['getChild'](0x0);if(!_0x49c0c6||!_0x49c0c6['is']('element','code'))return;if(!_0x412f9d['consumable']['consume'](_0x49c0c6,{'attributes':['vid_start','vid_end']}))return;const _0x4f6791=_0x204d16['modelRange']['start']['nodeAfter'];_0x412f9d['writer']['setAttribute']('vid_start',_0x49c0c6['getAttribute']('vid_start'),_0x4f6791),_0x412f9d['writer']['setAttribute']('vid_end',_0x49c0c6['getAttribute']('vid_end'),_0x4f6791);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0xcc1b36=>{_0xcc1b36['on']('element',(_0x4c1640,_0xd2b675,_0x14cd79)=>{if(!_0x14cd79['consumable']['consume'](_0xd2b675['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0xd2b675['modelRange']['isCollapsed'])return;const _0x46c191=_0xd2b675['modelRange']['start']['nodeAfter'];_0x46c191['hasAttribute']('vid_start')||_0x46c191['hasAttribute']('vid')||(_0x14cd79['writer']['setAttribute']('vid_start',_0xd2b675['viewItem']['getAttribute']('vid_start'),_0x46c191),_0x14cd79['writer']['setAttribute']('vid_end',_0xd2b675['viewItem']['getAttribute']('vid_end'),_0x46c191));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x292fff=>_0x292fff['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x1b890c,[,_0x131e8b])=>{['vid_start','vid_end','vid']['includes'](_0x131e8b)&&(_0x1b890c['return']=!0x0,_0x1b890c['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x37847b=>{_0x37847b['on']('attribute:vid',(_0x3c3890,_0x118271,_0x379cc9)=>{if('\x20'!=_0x118271['item']['data']||_0x118271['item']['parent']['maxOffset']>0x1)return;if(!_0x379cc9['consumable']['consume'](_0x118271['item'],_0x3c3890['name']))return;const _0x53ca93=_0x379cc9['writer'],_0x29ef00=_0x379cc9['mapper']['toViewRange'](_0x118271['range']);_0x53ca93['wrap'](_0x29ef00,_0x53ca93['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0xc0939b){const _0xf7d8b2=_0xc0939b['plugins']['get']('RevisionViewer');return(_0x228347,_0x4b8dce,_0x3aea82)=>{const _0x4d5ba7=_0x4b8dce['markerName']['split'](':')[0x1],_0x423913=_0xf7d8b2['_getChangeFromId'](_0x4d5ba7);if(!_0x423913)return null;const _0x8787ee='add'==_0x423913['type']?'split':'merge';if(!_0x3aea82['consumable']['test'](_0x4b8dce['markerRange'],_0x228347['name']))return;const _0x2d40be=_0x4b8dce['markerRange']['getWalker'](),_0x2efb71=_0x4b8dce['markerRange']['start'],_0x313015=_0xc0939b['model']['schema'];let _0x35f160=null,_0x51d8c8=null,_0x4065bc=!0x1,_0x41f8bb=!0x1;for(const _0x2a51f1 of _0x2d40be){const _0x35fa8b=_0x2a51f1['item'];_0x4065bc=_0x4065bc||_0x313015['isContent'](_0x35fa8b);const _0x9e0fc5=_0x3aea82['mapper']['toViewElement'](_0x35fa8b);if(_0x9e0fc5&&_0x9e0fc5['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2a51f1['type']&&(_0x313015['isBlock'](_0x35fa8b)&&!_0x313015['isLimit'](_0x35fa8b)&&(_0x35fa8b['nextSibling']||_0x2efb71['isAtEnd']?_0x35f160&&_0x35f160['parent']==_0x35fa8b||(_0x35f160=_0x35fa8b,_0x22a6c6(_0x2a51f1['previousPosition']),_0x41f8bb=!0x0):_0x51d8c8=_0x51d8c8||_0x2a51f1['previousPosition']));}function _0x22a6c6(_0x499f89){const _0x1fe4e4=_0x3aea82['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x8787ee}),_0x25f82e=_0x3aea82['mapper']['toViewPosition'](_0x499f89);_0x423913['data']['isSuggestion']&&_0x3aea82['writer']['addClass']('ck-suggestion-marker-'+_0x8787ee+'-new',_0x1fe4e4),_0xf7d8b2['activeChange']==_0x423913&&_0x3aea82['writer']['addClass']('ck-suggestion-marker--active',_0x1fe4e4),_0x3aea82['writer']['insert'](_0x25f82e,_0x1fe4e4),_0x3aea82['mapper']['bindElementToMarker'](_0x1fe4e4,_0x4b8dce['markerName']);}_0x4065bc||_0x41f8bb||!_0x51d8c8||_0x22a6c6(_0x51d8c8);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x36b88e,_0x4866b6,_0x47d0a0)=>{const _0x228619=_0x47d0a0['mapper']['markerNameToElements'](_0x4866b6['markerName']);if(_0x228619){for(const _0x239fec of _0x228619)(_0x239fec['hasClass']('ck-suggestion-marker-split')||_0x239fec['hasClass']('ck-suggestion-marker-merge'))&&(_0x47d0a0['mapper']['unbindElementFromMarkerName'](_0x239fec,_0x4866b6['markerName']),_0x47d0a0['writer']['remove'](_0x239fec));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x408f30,_0x39f998,_0x43d54e)=>{const _0x200ddb=_0x39f998['markerName']['split'](':')[0x1],_0x406997=this['_getChangeFromId'](_0x200ddb);if(!_0x406997)return null;const _0x210e36='add'==_0x406997['type']?'split':'merge';if(_0x43d54e['consumable']['test'](_0x39f998['markerRange'],_0x408f30['name']))for(const _0x161052 of _0x39f998['markerRange']['getItems']()){if(!_0x161052['is']('element','softBreak'))continue;const _0x1e0670=_0x43d54e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x210e36}),_0x37c43d=_0x43d54e['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x161052));_0x406997['data']['isSuggestion']&&_0x43d54e['writer']['addClass']('ck-suggestion-marker-'+_0x210e36+'-new',_0x1e0670),this['activeChange']==_0x406997&&_0x43d54e['writer']['addClass']('ck-suggestion-marker--active',_0x1e0670),_0x43d54e['writer']['insert'](_0x37c43d,_0x1e0670),_0x43d54e['mapper']['bindElementToMarker'](_0x1e0670,_0x39f998['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0xacb9a0=>{for(const _0x8580e0 of this['editor']['model']['document']['getRootNames']()){const _0x4ca369=this['editor']['model']['document']['getRoot'](_0x8580e0),_0x1db2ce=this['editor']['editing']['view']['document']['getRoot'](_0x8580e0);if(_0x1db2ce){const _0x3b748e=_0x4ca369['getAttribute']('revisionHistoryAttachChange');if(_0xacb9a0['removeAttribute']('data-change-id',_0x1db2ce),_0xacb9a0['removeClass']('ck-revision-history-root-add',_0x1db2ce),_0xacb9a0['removeClass']('ck-revision-history-root-remove',_0x1db2ce),_0xacb9a0['removeClass']('ck-revision-history-root--active',_0x1db2ce),_0x3b748e){const _0x888be8=this['_getChangeFromId'](_0x3b748e);if(!_0x888be8)return null;_0xacb9a0['setAttribute']('data-change-id',_0x3b748e,_0x1db2ce),_0xacb9a0['addClass']('ck-revision-history-root-'+_0x888be8['type'],_0x1db2ce),this['activeChange']==_0x888be8&&_0xacb9a0['addClass']('ck-revision-history-root--active',_0x1db2ce);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x31840b=>'revision-comment:'+_0x31840b,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x56c55c=>'revision-suggestion:'+_0x56c55c,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x48d087=>({'name':'suggestion:'+_0x48d087,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x4abfcc=>{const _0x3ae389=_0x4abfcc['markerName']['split'](':')[0x1];return'insertion'!=_0x3ae389&&'deletion'!=_0x3ae389?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x3ae389]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Q(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Q(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x2a76c1,_0x5ef9c1,_0x8b5751)=>{const _0x27c6af=_0x8b5751['mapper']['markerNameToElements'](_0x5ef9c1['markerName']);if(_0x27c6af){for(const _0x57191b of _0x27c6af)_0x57191b['is']('uiElement')&&(_0x8b5751['mapper']['unbindElementFromMarkerName'](_0x57191b,_0x5ef9c1['markerName']),_0x8b5751['writer']['remove'](_0x57191b));}},{'priority':'high'});}['_getChangeFromId'](_0x258309){return this['_changeIdToChange']['get'](_0x258309);}['_getViewForChange'](_0x495e2f){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x495e2f),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x451713,_0x49022b,_0x25ab91,_0x5a60a9)=>{_0x5a60a9&&this['_balloon']['remove'](_0x5a60a9),_0x25ab91&&(this['_balloon']['add']({'view':_0x25ab91,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x5c7e7e=this['editor']['editing'],_0x204e99=this['_getChangeFromId'](_0x25ab91['changeId']);let _0x3275a5;if(_0x204e99['data']['isOnRoot']){const _0x3a4b6f=_0x5c7e7e['view']['getDomRoot'](_0x204e99['rootName']);_0x3275a5=Array['from'](_0x3a4b6f['getClientRects']());}else{const _0x456f9f=this['editor']['model']['markers']['get']('revision:'+_0x25ab91['changeId']);_0x3275a5=Array['from'](_0x5c7e7e['mapper']['markerNameToElements'](_0x456f9f['name']))['map'](_0xc155e1=>_0x5c7e7e['view']['domConverter']['mapViewToDom'](_0xc155e1))['map'](_0x301ded=>Array['from'](_0x301ded['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x3275a5[0x0];return _0x3275a5['find'](_0x2fd3f8=>_0x2fd3f8['top']-0x3<=this['_activeViewTarget']['y']&&_0x2fd3f8['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x2fd3f8['left']-0x3<=this['_activeViewTarget']['x']&&_0x2fd3f8['right']+0x3>=this['_activeViewTarget']['x'])||_0x3275a5[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x34ed3c,_0x383eb7,_0x5d247b,_0x513cfc)=>{this['activeView']=_0x5d247b?this['_getViewForChange'](_0x5d247b):null,this['editor']['model']['change'](()=>{const _0x257439=this['editor']['editing'];_0x513cfc&&(_0x513cfc['data']['isOnRoot']?_0x257439['view']['change'](_0x5f2118=>{_0x5f2118['removeClass']('ck-revision-history-root--active',_0x257439['view']['document']['getRoot'](_0x513cfc['rootName']));}):_0x257439['reconvertMarker']('revision:'+_0x513cfc['id'])),_0x5d247b&&(_0x5d247b['data']['isOnRoot']?_0x257439['view']['change'](_0x519814=>{_0x519814['addClass']('ck-revision-history-root--active',_0x257439['view']['document']['getRoot'](_0x5d247b['rootName']));}):_0x257439['reconvertMarker']('revision:'+_0x5d247b['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x15d89c,_0x350e66)=>{if(this['activeChange'])return;const _0x3afbd1=this['_findChangeIdFromDomTarget'](_0x350e66['target']),_0x516f5a=this['_changeIdToChange']['get'](_0x3afbd1);_0x516f5a?(this['_activeViewTarget']={'x':_0x350e66['domEvent']['x'],'y':_0x350e66['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x516f5a)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0xd03978,_0x5a4036)=>{const _0x584089=this['_findChangeIdFromDomTarget'](_0x5a4036['target']),_0x10f0e2=this['_changeIdToChange']['get'](_0x584089);_0x10f0e2?(this['_activeViewTarget']={'x':_0x5a4036['domEvent']['x'],'y':_0x5a4036['domEvent']['y']},_0x10f0e2===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x10f0e2):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x39944e){do{const _0x22ba77=_0x39944e['getAttribute']('data-change-id');if(_0x22ba77)return _0x22ba77;_0x39944e=_0x39944e['parent'];}while(_0x39944e);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x49eccf=>{for(const _0x5e0d2b of this['editor']['model']['markers'])_0x49eccf['removeMarker'](_0x5e0d2b);});}}function Q(_0xf721cf,_0x35120a){return(_0x2f9bb5,_0x4abf21,_0x5a6b12)=>{if(!_0x5a6b12['consumable']['test'](_0x4abf21['markerRange'],_0x2f9bb5['name']))return;const _0xf2bb44=_0x4abf21['markerRange']['getWalker'](),_0x33202e=_0x4abf21['markerRange']['start'],_0x4b2f2d=_0xf721cf['model']['schema'];let _0x3c552b=null,_0x57dfd0=null,_0x371bae=!0x1,_0x2a1c19=!0x1;for(const _0x2af60d of _0xf2bb44){const _0x232899=_0x2af60d['item'];_0x371bae=_0x371bae||_0x4b2f2d['isContent'](_0x232899);const _0x5507a3=_0x5a6b12['mapper']['toViewElement'](_0x232899);if(_0x5507a3&&_0x5507a3['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2af60d['type']&&(_0x4b2f2d['isBlock'](_0x232899)&&!_0x4b2f2d['isLimit'](_0x232899)&&(_0x232899['nextSibling']||_0x33202e['isAtEnd']?_0x3c552b&&_0x3c552b['parent']==_0x232899||(_0x3c552b=_0x232899,_0x1811dc(_0x2af60d['previousPosition']),_0x2a1c19=!0x0):_0x57dfd0=_0x57dfd0||_0x2af60d['previousPosition']));}function _0x1811dc(_0x172335){const _0x153009=_0x5a6b12['mapper']['toViewPosition'](_0x172335),_0x1b07e2=_0x5a6b12['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x35120a});_0x5a6b12['writer']['insert'](_0x153009,_0x1b07e2),_0x5a6b12['mapper']['bindElementToMarker'](_0x1b07e2,_0x4abf21['markerName']);}_0x371bae||_0x2a1c19||!_0x57dfd0||_0x1811dc(_0x57dfd0);};}class nt extends _0x35e60a{constructor(_0x5105f3){super(_0x5105f3);const _0x511381=_0x5105f3['plugins']['get'](u);this['affectsData']=!0x1,this['listenTo'](_0x511381,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x511381,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x4a787b=this['editor'],_0x5cde97=_0x4a787b['plugins']['get'](u),_0x31aa30=_0x5cde97['isReady']?_0x5cde97['diff']['newRevisionId']:null;_0x4a787b['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x31aa30);}['refresh'](){const {isReady:_0x32b760,isEnabled:_0x709590,repository:_0x1d6b71,diff:_0x3062a1}=this['editor']['plugins']['get'](u),_0x1345fc=_0x3062a1&&_0x1d6b71['getLaterVisibleRevision'](_0x3062a1['newRevisionId']);this['isEnabled']=_0x32b760&&_0x709590&&Boolean(_0x1345fc);}}class ot extends _0x35e60a{['_step'];constructor(_0xfdf7ed,{direction:_0x3f2cc6}){super(_0xfdf7ed);const _0x3d9191=_0xfdf7ed['plugins']['get'](u);this['affectsData']=!0x1,this['_step']='forward'===_0x3f2cc6?0x1:-0x1,this['listenTo'](_0x3d9191,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x3d9191,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x3d9191,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x26a5fa=this['editor'],_0x3dc760=_0x26a5fa['plugins']['get'](u),{isNavigationMode:_0x1e1d38,currentChangeNumber:_0x505c43}=_0x3dc760;let _0x47c057;if(_0x3dc760['activeChange']=_0x1e1d38?_0x3dc760['diff']['changes']['get'](_0x505c43+this['_step']):_0x3dc760['diff']['changes']['first'],_0x3dc760['activeChange']['data']['isOnRoot'])_0x47c057=_0x26a5fa['editing']['view']['getDomRoot'](_0x3dc760['activeChange']['rootName']);else{const _0x2c709a=_0x26a5fa['model']['markers']['get']('revision:'+_0x3dc760['activeChange']['id']);_0x47c057=_0x20b6a7(_0x26a5fa['editing'],_0x2c709a);}_0x3a5289({'target':_0x47c057,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0xa861f6,currentChangeNumber:_0x2606ed,numberOfChanges:_0x491014,isReady:_0x54c86b,isEnabled:_0x2bee61}=this['editor']['plugins']['get'](u);this['isEnabled']=!!(_0x2bee61&&_0x54c86b&&_0x491014)&&(!_0xa861f6||(0x1===this['_step']?_0x2606ed<_0x491014-0x1:_0x2606ed>0x0));}}class Ri extends _0x501a9a{constructor(_0x21b05a){super(_0x21b05a);const _0x27aa3f=this['bindTemplate'],_0x1b5ca4=new _0x562f7a(_0x21b05a),_0x5ac45a=new _0x562f7a(_0x21b05a);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',(_0x2e9e54,_0x251408)=>_0x2e9e54&&_0x251408>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x4a034d,_0xb0bfdd,_0x37f58a,_0xc02b42)=>{if(!_0x4a034d)return m(_0x21b05a,'Loading...');if(!_0x37f58a)return m(_0x21b05a,'No\x20changes');const _0xc58970=m(_0x21b05a,'NUMBER_OF_CHANGES',_0x37f58a);return _0xc02b42?m(_0x21b05a,'X_OF_Y_CHANGES',[_0xb0bfdd+0x1,_0x37f58a]):_0xc58970;}),_0x1b5ca4['set']({'label':m(_0x21b05a,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x5bfaf2}),_0x5ac45a['set']({'label':m(_0x21b05a,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x2ff9d5}),_0x1b5ca4['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x5ac45a['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x1b5ca4['on']('execute',()=>this['fire']('execute','backward')),_0x5ac45a['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',_0x27aa3f['if']('_isStatusLabelVisible','ck-hidden',_0x1c5088=>!_0x1c5088)]},'children':[{'text':_0x27aa3f['to']('isNavigationMode',_0xdab3cf=>_0xdab3cf?m(_0x21b05a,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x21b05a,'Total')+':\x20')}]},{'text':_0x27aa3f['to']('_statusText')}]},new _0x188461(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x1b5ca4,_0x5ac45a]}]});}}const ge='ck-editor__editable__loading-overlay';class ji extends _0x34dfe9{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x2596e6=this['editor']['editing']['view'];_0x2596e6['change'](_0x26382c=>{for(const _0x36c87a of _0x2596e6['document']['roots'])_0x26382c['addClass'](ge,_0x36c87a);});}['hide'](){const _0x945854=this['editor']['editing']['view'];_0x945854['change'](_0x504e99=>{for(const _0x12ad08 of _0x945854['document']['roots'])_0x504e99['removeClass'](ge,_0x12ad08);});}}class v extends _0x34dfe9{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,ji];}['init'](){const _0x27d573=this['editor'],_0x773f6f=_0x27d573['plugins']['get'](u),_0x412cf9=_0x27d573['plugins']['get'](ji);_0x27d573['ui']['componentFactory']['add']('exitToEditing',_0xbff7b7=>{const _0x3d019e=new _0x562f7a(_0xbff7b7);return _0x3d019e['set']({'label':m(_0xbff7b7,'Back\x20to\x20editing'),'icon':_0x326a24,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x3d019e,'execute',()=>{_0x27d573['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x3d019e;}),_0x27d573['ui']['componentFactory']['add']('restoreRevision',_0x151d9b=>{const _0x5da122=new _0x562f7a(_0x151d9b);return _0x5da122['set']({'label':m(_0x151d9b,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x5da122['bind']('isEnabled')['to'](_0x27d573['commands']['get']('restoreRevision')),this['listenTo'](_0x5da122,'execute',()=>_0x27d573['execute']('restoreRevision')),_0x5da122;}),_0x27d573['ui']['componentFactory']['add']('changesNavigation',_0x6d2e29=>{const _0x402571=new Ri(_0x6d2e29),_0x48b323=_0x27d573['commands']['get']('showPreviousChange'),_0x6f14a2=_0x27d573['commands']['get']('showNextChange');return _0x402571['bind']('isBackwardNavigationEnabled')['to'](_0x48b323,'isEnabled'),_0x402571['bind']('isForwardNavigationEnabled')['to'](_0x6f14a2,'isEnabled'),_0x402571['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x773f6f),this['listenTo'](_0x402571,'execute',(_0x630f7a,_0x16b9a1)=>{_0x27d573['execute']('forward'===_0x16b9a1?'showNextChange':'showPreviousChange');}),_0x402571;}),_0x412cf9['show'](),_0x773f6f['on']('change:isReady',(_0xcebf5b,_0x906729,_0x2cd24b)=>{_0x2cd24b?_0x412cf9['hide']():_0x412cf9['show']();});}}class li extends ti{['_resizeObserver']=null;constructor(_0x17ebf5,_0x4249e1){super(_0x17ebf5,_0x4249e1);const _0xd1f483=this['bindTemplate'];this['set']({'label':m(_0x17ebf5,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x17ebf5,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0xd1f483['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new et(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x237717=this['fieldView']['element'];this['_tooltipString']=_0x237717['scrollWidth']>_0x237717['clientWidth']&&_0x237717['value']||'';}}class vi extends _0x501a9a{constructor(_0x4381d2,_0x503a94,_0x1533c5){super(_0x4381d2);const _0x27aff2=new _0x259f83();_0x27aff2['set']({'content':_0x4d3f6b,'viewBox':'0\x200\x2011\x2010'});const _0xa23c45=['ck','ck-revision-history-sidebar__revision-author'];_0x1533c5&&_0xa23c45['push']('ck-revision-history-sidebar__revision-author_creator');const _0x4d7c64=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x4381d2,_0x1533c5?'Revision\x20creator':'Revision\x20author')},'children':[_0x27aff2,_0x503a94['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0xa23c45},'children':_0x4d7c64});}}function mi(_0x1ae670,_0x121d47){const _0x94fa4f=_0x1ae670['bindTemplate'],_0xe608e4=_0x1ae670['locale'],_0x50a487=_0x1c2f45(_0xe608e4);_0x50a487['panelPosition']='sw';const _0x2e03cb=function(_0x2f08c5,_0x13aa9d){const _0x27e5e5=function(_0x6d6e68,_0x2d152a){const _0x5cfa67=_0x6d6e68['locale'],_0x3296fe={'Compare\x20against\x20selected':m(_0x5cfa67,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x5cfa67,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x5cfa67,'Restore\x20this\x20revision')};return _0x2d152a['map'](_0x4a8206=>{const _0x1fea66=_0x3296fe[_0x4a8206['name']];return _0x1fea66&&_0x1fea66!==_0x4a8206['name']&&(_0x4a8206['name']=_0x1fea66),_0x4a8206;});}(_0x2f08c5,_0x13aa9d),_0x1816a2=new _0x549534();for(const _0x38ba4b of _0x27e5e5){const _0x34c5ed={'type':'button','model':new to({'label':_0x38ba4b['name'],'class':_0x38ba4b['class'],'withText':!0x0,'role':'menuitem','_action':_0x38ba4b['action']})};_0x34c5ed['model']['bind']('isEnabled')['to'](_0x2f08c5,'isActionsDropdownOpen',_0x3be9ae=>'function'!=typeof _0x38ba4b['isEnabled']||(!_0x3be9ae||_0x38ba4b['isEnabled'](_0x2f08c5))),_0x1816a2['add'](_0x34c5ed);}return _0x1816a2;}(_0x1ae670,_0x121d47);return _0x1ae670['bind']('isActionsDropdownOpen')['to'](_0x50a487,'isOpen'),_0x50a487['buttonView']['set']({'label':m(_0xe608e4,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x2275c0}),_0x50a487['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x94fa4f['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x94fa4f['to'](_0x500113=>_0x500113['stopPropagation']())}}),_0x50a487['on']('execute',_0x1838b6=>{_0x1ae670['isReady']&&'function'==typeof _0x1838b6['source']['_action']&&_0x1838b6['source']['_action'](_0x1ae670);}),_0x63e964(_0x50a487,_0x2e03cb,{'role':'menu'}),_0x50a487['listenTo'](_0x1ae670,'change:isActionsDropdownOpen',(_0x3daa82,_0x6423c9,_0x582574)=>{if(_0x582574)for(const _0x460d68 of _0x50a487['listView']['items']){const _0x591f47=_0x460d68['children']['first'],_0x2da7e8=_0x121d47['find'](_0x15bbef=>_0x15bbef['action']===_0x591f47['_action'])['isVisible'];_0x460d68['isVisible']=void 0x0===_0x2da7e8||_0x2da7e8(_0x1ae670);}}),_0x50a487;}class pi extends/* #__PURE__ -- @preserve */
|
|
27
|
+
_0x1d6e7f(_0x501a9a){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x5495e8,_0x3a245c,_0x1242db,_0x3da25f){super(_0x5495e8);const _0x2c3df2=this['bindTemplate'],_0x37fb40=function(_0x3de14d,_0x1d9290){const _0x5b5ed3=Array['from'](_0x1d9290['authors'])['filter'](_0x1f242d=>_0x1f242d!=_0x1d9290['creator']);return _0x1d9290['creator']&&_0x5b5ed3['unshift'](_0x1d9290['creator']),_0x5b5ed3['map'](_0x4a549e=>new vi(_0x3de14d,_0x4a549e,_0x4a549e==_0x1d9290['creator']));}(_0x5495e8,_0x3a245c);this['id']=_0x3a245c['id'],this['_revision']=_0x3a245c,this['_requireRevisionName']=_0x3da25f,this['bind']('name','createdAt')['to'](_0x3a245c),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x2981a9=>{return _0xe6a94=_0x5495e8['uiLanguage'],(_0x34a9b2=_0x2981a9)['toLocaleDateString'](_0xe6a94,{'month':'long','day':'numeric'})+',\x20'+_0x34a9b2['toLocaleTimeString'](_0xe6a94,{'hour':'numeric','minute':'numeric'});var _0xe6a94,_0x34a9b2;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new li(_0x5495e8,_0x2103e5),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x1f257a=>_0x1f257a||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x528314,_0x4d7470)=>_0x528314&&_0x4d7470),this['revisionActionsView']=_0x1242db&&_0x1242db['length']?mi(this,_0x1242db):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x2c3df2['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x2c3df2['if']('isEnabled','ck-disabled',_0x16a0a7=>!_0x16a0a7),_0x2c3df2['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x2c3df2['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x2c3df2['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':_0x2c3df2['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':_0x37fb40}]},this['revisionActionsView']],'on':{'click':_0x2c3df2['to'](_0x1e8def=>{_0x1e8def['srcElement']['closest']('.ck-confirm-view')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x2bb05d=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x2bb05d,'change',()=>{this['_requireRevisionName']&&!_0x2bb05d['value']||this['fire']('setName',{'id':this['id'],'name':_0x2bb05d['value']}),_0x2bb05d['value']||(_0x2bb05d['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function bi(_0x28412d,_0x41947c){const _0x176ab9=_0x4cc718['fromJSDate'](_0x28412d)['setLocale'](_0x41947c),_0x498258=_0x4cc718['local'](),_0x2c86b9=_0x498258['minus']({'days':0x1})['startOf']('day');let _0x51c54d,_0x580c81;return _0x176ab9['hasSame'](_0x498258,'day')?(_0x51c54d=_0x176ab9['startOf']('day')['toJSDate'](),_0x580c81=_0x176ab9['toRelativeCalendar']()):_0x176ab9['hasSame'](_0x2c86b9,'day')?(_0x51c54d=_0x2c86b9['toJSDate'](),_0x580c81=_0x176ab9['toRelativeCalendar']()):_0x176ab9['hasSame'](_0x498258,'week')?(_0x51c54d=_0x176ab9['startOf']('week')['toJSDate'](),_0x580c81=_0x176ab9['weekdayLong']||''):_0x176ab9['hasSame'](_0x498258,'year')?(_0x51c54d=_0x176ab9['startOf']('month')['toJSDate'](),_0x580c81=_0x176ab9['monthLong']||''):(_0x51c54d=_0x176ab9['startOf']('year')['toJSDate'](),_0x580c81=String(_0x176ab9['year'])),{'startDate':_0x51c54d,'localizedPeriodName':_0x580c81};}class fi extends _0x501a9a{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x72e1e8,_0x4786ea,_0x24c475,_0x37de09){super(_0x72e1e8);const _0x3b6f90=bi(_0x4786ea,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x4786ea,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x24c475,this['_requireRevisionName']=_0x37de09,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':_0x3b6f90}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x505b8f){const _0x4e3d3e=new pi(this['locale'],_0x505b8f,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x4e3d3e);}['removeRevision'](_0x15fe6c){const _0x183aff=this['revisionViews']['find'](_0x18d312=>_0x18d312['id']===_0x15fe6c['id']);this['revisionViews']['remove'](_0x183aff);}}class ki extends _0x501a9a{constructor(_0x8ea412){super(_0x8ea412);const _0x49f066=new _0x259f83();_0x49f066['content']=_0x310be3,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x49f066,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x8ea412,'Revision\x20history')]}]});}}class ui extends _0x501a9a{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x55fcbc,_0xc274fb,_0x218e79,_0x6af16f){super(_0x55fcbc);const _0xd85191=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0xc274fb,this['_revisionActions']=_0x218e79,this['_requireRevisionName']=_0x6af16f,this['on']('select',(_0xd81e98,_0x2f42c6)=>{this['fire']('revisionSelected',_0x2f42c6);}),this['on']('setName',(_0x1874a7,_0x5200ac)=>{this['fire']('revisionSetName',_0x5200ac);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new ki(_0x55fcbc),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0xd85191['if']('isEnabled','ck-disabled',_0x2814e7=>!_0x2814e7)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x2d51b0 of this['_revisions'])this['_addRevision'](_0x2d51b0);this['_revisions']['on']('add',(_0xeac31d,_0x3fef72)=>{this['_addRevision'](_0x3fef72);}),this['_revisions']['on']('remove',(_0x579b75,_0x35cacb)=>{this['_removeRevision'](_0x35cacb);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x1f12be=>_0x1f12be['revisionViews']['map'](_0x2bd315=>_0x2bd315))['flat']();}['selectRevision'](_0x586b0c){for(const _0x285a79 of this['revisionViews'])_0x586b0c&&_0x586b0c['id']===_0x285a79['id']?_0x285a79['select']():_0x285a79['deselect']();}['highlightRevisions'](_0x4021f5){for(const _0x1a959c of this['revisionViews'])_0x4021f5['some'](({id:_0x328f65})=>_0x328f65===_0x1a959c['id'])?_0x1a959c['highlight']():_0x1a959c['unhighlight']();}['_addRevision'](_0x321a92){const _0x475d5f=bi(_0x321a92['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x5bba92=this['timePeriodViews']['get'](0x0);_0x5bba92&&_0x5bba92['startDate']['getTime']()===_0x475d5f['getTime']()||(_0x5bba92=new fi(this['locale'],_0x475d5f,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x5bba92)),_0x5bba92['addRevision'](_0x321a92);}['_removeRevision'](_0x136897){const _0x12d009=bi(_0x136897['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x12d009)['removeRevision'](_0x136897);}['_getTimePeriodViewByStartDate'](_0x1218c9){return this['timePeriodViews']['find'](_0x2059b8=>_0x2059b8['startDate']['getTime']()===_0x1218c9['getTime']());}}class d extends _0x34dfe9{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
28
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
29
|
-
|
|
30
|
-
_0x3b31c5(_0x2d5cb3){['_ui'];get['ui'](){return this['_ui'];}constructor(_0xec19e8,_0x3344ed){super(_0x3344ed),this['sourceElement']=_0xec19e8,this['model']['document']['createRoot']();const _0x553e0a=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x553e0a);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x592d8f,_0x221bb9){const _0x1ad53c=new this(_0x592d8f,_0x221bb9);return await _0x1ad53c['initPlugins'](),await _0x1ad53c['ui']['init'](_0x592d8f),await _0x1ad53c['data']['init'](_0x1ad53c['config']['get']('initialData')||''),_0x1ad53c['fire']('ready'),_0x1ad53c;}}const p=['RevisionHistoryUI','RestrictedEditingMode','AIChat','AIReviewMode','AIBalloon','AIQuickActions','AIActions'];class ht extends _0x16d9db{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x65789){function _0xbf697d(_0x4e8c82){return _0x4e8c82['map'](_0x3856f4=>String['fromCharCode'](_0x3856f4))['join']('');}super(_0x65789),this['result']='end',_0x65789[_0xbf697d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xbf697d([0x76,0x69,0x65,0x77])][_0xbf697d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xbf697d([0x61,0x75,0x74,0x6f]),_0x65789[_0xbf697d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0xbf697d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xbf697d([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0xbf697d([0x73,0x74,0x61,0x74,0x75,0x73])]:_0xbf697d([0x6f,0x6b])});}}class ct extends _0x16d9db{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,l];}constructor(_0x5243ed){if(super(_0x5243ed),!this['editor']['config']['get']('revisionHistory'))throw new _0x56e2c5('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x2f420d=>this['_showRevisionViewer']({..._0x2f420d,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x14bc88=>this['_closeRevisionViewer'](_0x14bc88)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x55f8c5=>this['_restoreRevision'](_0x55f8c5)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x39ed20){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x39ed20;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x58667b){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x58667b);}['getRevision'](_0x1195ac){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x1195ac);}['getRevisions'](_0x10de84){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x10de84||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x123aae=this['editor'],_0x1489e8=_0x3dd0c7(_0x123aae,p),_0x678d6b=_0x123aae['plugins']['get']('RevisionTracker'),_0x3e4e82=_0x123aae['plugins']['get']('Users')['users'];return _0x1489e8['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x1489e8['lazyRoots'],(_0x1489e8['plugins']['push'](ht,u,v,class extends _0x16d9db{static get['requires'](){return[u,'Users'];}['init'](){const _0x30e882=this['editor']['plugins']['get']('Users');for(const _0x2d9a21 of _0x3e4e82)_0x2d9a21['isAnonymous']||_0x30e882['getUser'](_0x2d9a21['id'])||_0x30e882['addUser'](_0x2d9a21);const _0x145bd7=_0x678d6b['repository']['getRevisions']();let _0x431b1e=null;const _0x4419d6=this['editor']['plugins']['get']('RevisionViewer');_0x4419d6['adapter']=_0x678d6b['adapter'],_0x4419d6['bind']('isEnabled')['to'](_0x678d6b),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x123aae,'isReadOnly',_0x4789cb=>!_0x4789cb);for(const _0xac58f0 of _0x145bd7){const _0x174620=null===_0xac58f0['creator'];if(_0x174620&&_0xac58f0['toVersion']===_0xac58f0['fromVersion'])continue;const _0x291d0e=_0xac58f0['toJSON']();_0x4419d6['addRevisionData'](_0x291d0e,(_0xf2d089,_0x57548e,_0x420319)=>{if(_0x174620){if(_0x431b1e)_0x431b1e['_update'](_0xf2d089,_0x57548e);else{if(!_0x57548e){const _0x3000d4=_0x420319['toJSON']();_0x3000d4['id']=_0x2d5220(),_0x678d6b['saveRevision'](_0x3000d4,_0x420319['toVersion'])['then'](_0x399caa=>{_0x431b1e=_0x399caa;});}}}else _0xac58f0['_update'](_0xf2d089,_0x57548e);});}}},d),_0x1489e8);}['_enhanceShowRevisionViewerCallback'](){const _0x5b4232=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x4f4050=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x38e3c6=this['editor']['plugins']['get']('Autosave');await _0x38e3c6['save']();}else await _0x4f4050['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x31da75=this['editor']['plugins']['get']('Dialog');_0x31da75['isOpen']&&_0x31da75['hide']();}if(this['editor']['plugins']['has']('AITabs')){const _0x2bb3e9=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x2d0073 of _0x2bb3e9)_0x2d0073['class']=_0x2d0073['class']?_0x2d0073['class']+'\x20ck-tab-panel_disabled':'ck-tab-panel_disabled';if(this['editor']['plugins']['has']('AIChat')){const _0x1e5e15=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x1e5e15&&_0x1e5e15['setAttribute']('tabindex','-1');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x2cb1fc=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x2cb1fc&&_0x2cb1fc['setAttribute']('tabindex','-1');}}const _0x7c41f3=this['_getRevisionViewerEditorConfig']();return _0x5b4232(_0x7c41f3)['then'](_0x97d7c8=>{return(this['_viewerEditor']=_0x97d7c8,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),(this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']='none'),_0x97d7c8);})['catch'](_0x108614=>(console['error'](_0x108614),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x2343c8=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>{if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['editor']['plugins']['has']('AITabs')){const _0x303962=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x1b065d of _0x303962)_0x1b065d['class']='ck-tab-panel_disabled'===_0x1b065d['class']?'':_0x1b065d['class']['replace']('\x20ck-tab-panel_disabled','');if(this['editor']['plugins']['has']('AIChat')){const _0x5234ae=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x5234ae&&_0x5234ae['removeAttribute']('tabindex');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x34ede3=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x34ede3&&_0x34ede3['removeAttribute']('tabindex');}}return this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x2343c8(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0xb568b=this['editor']['plugins']['get']('Annotations');_0xb568b['refreshVisibility'](),_0xb568b['refreshPositioning']();}});});}['_showRevisionViewer'](_0xb05365){const _0x2ab39e=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x2372d4=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x8517e4=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return f['create'](_0x8517e4,_0xb05365)['then'](_0x404107=>(_0x2372d4['style']['display']='block',_0x2ab39e['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x404107));}['_closeRevisionViewer'](_0x398490){const _0x3af3ab=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x3af3ab['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x398490['destroy']();}async['_restoreRevision'](_0xd864){const _0x47ddd2=this['editor'],_0x158a9f=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x41943d=_0x47ddd2['plugins']['get']('RevisionTracker'),_0xba86d6=_0x47ddd2['plugins']['get']('RevisionHistoryUtils'),_0x32179b=_0x158a9f['repository']['getRevision'](_0xd864);let _0x41592e,_0x4d02b8,_0x475400;try{await _0xba86d6['loadRevisionData'](_0x32179b,this['adapter']),_0x41592e=_0xba86d6['getRevisionDocumentData'](_0x32179b),_0x4d02b8=_0xba86d6['getRevisionRootsAttributes'](_0x32179b);}catch(_0x530377){return void console['error'](_0x530377);}_0x47ddd2['model']['change'](_0x9002fb=>{for(const _0x155eec of Array['from'](_0x47ddd2['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x9002fb['removeMarker'](_0x155eec);}),_0x158a9f['isReady']=!0x1,_0x47ddd2['model']['enqueueChange'](_0x7215a5=>{_0x7215a5['setSelection'](null),_0x7215a5['removeSelectionAttribute'](_0x47ddd2['model']['document']['selection']['getAttributeKeys']());const _0x26f30d=Object['keys'](_0x41592e);for(const _0x4cb85d of _0x47ddd2['model']['document']['roots'])'$graveyard'!=_0x4cb85d['rootName']&&_0x4cb85d['isAttached']()&&!_0x26f30d['includes'](_0x4cb85d['rootName'])&&_0x7215a5['detachRoot'](_0x4cb85d);for(const _0x3ffe4b of _0x26f30d){let _0x3e4340=_0x47ddd2['model']['document']['getRoot'](_0x3ffe4b);_0x3e4340&&_0x3e4340['isAttached']()||(_0x3e4340=_0x7215a5['addRoot'](_0x3ffe4b));const _0x24b965=_0x4d02b8[_0x3ffe4b],_0x19eed0=Object['keys'](_0x24b965),_0x4926be=_0x41592e[_0x3ffe4b];for(const _0x54d7fc of _0x3e4340['getAttributeKeys']())_0x19eed0['includes'](_0x54d7fc)||_0x7215a5['removeAttribute'](_0x54d7fc,_0x3e4340);for(const _0x5dfbf8 of _0x19eed0)_0x7215a5['setAttribute'](_0x5dfbf8,_0x4d02b8[_0x3ffe4b][_0x5dfbf8],_0x3e4340);_0x7215a5['remove'](_0x7215a5['createRangeIn'](_0x3e4340)),_0x7215a5['insert'](_0x47ddd2['data']['parse'](_0x4926be,_0x3e4340),_0x3e4340,0x0);}});const _0x18d157=m(_0x47ddd2['locale'],'Restored');if(_0x32179b['name'])_0x475400=-0x1==_0x32179b['name']['indexOf'](_0x18d157)?_0x18d157+':\x20'+_0x32179b['name']:_0x32179b['name'];else _0x475400=_0x18d157+':\x20'+(_0x32179b['createdAt']['toLocaleDateString'](_0x47ddd2['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x32179b['createdAt']['toLocaleTimeString'](_0x47ddd2['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x41943d['saveRevision']({'name':_0x475400}),_0x158a9f['isReady']=!0x0,_0x47ddd2['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{nt as RestoreRevisionCommand,I as Revision,ct as RevisionHistory,l as RevisionHistoryUI,$ as RevisionHistoryUtils,h as RevisionTracker,u as RevisionViewer,f as RevisionViewerEditor,ht as RevisionViewerIntegration,ji as RevisionViewerLoadingOverlay,v as RevisionViewerUI,S as RevisionsRepository,d as RevisionsSidebar,rt as ShowChangeCommand};
|
|
29
|
+
rt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}constructor(_0x115b51){super(_0x115b51),this['_revisionViewer']=_0x115b51['plugins']['get'](u),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0xece3d3=this['_revisionsRepository']['_revisions'],_0x4bc479=this['_createRevisionActions'](),_0x5ae122=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ui(this['editor']['locale'],_0xece3d3,_0x4bc479,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',(_0x125c2a,_0x4551dd)=>{_0x4551dd['revisionViews']['on']('add',(_0x28660d,_0x5a4c25)=>{_0x5a4c25['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)),_0x5ae122['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x976254=this['_revisionsRepository']['getRevision'](0x0);if(_0x976254){const _0x171042=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x976254['id']);this['_revisionViewer']['compare'](_0x976254,_0x171042);}}['_handleRevisionSelected'](_0x26bff2,_0x5d651a){const _0x551599=this['_revisionsRepository']['getRevision'](_0x5d651a['id']),_0x29d7b4=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x551599['id']);this['_revisionViewer']['compare'](_0x551599,_0x29d7b4);}['_handleRevisionSetName'](_0x1303b2,_0x1a2762){this['_revisionsRepository']['getRevision'](_0x1a2762['id'])['setName'](_0x1a2762['name']);}['_handleDiffChange'](_0x4bd71d,_0x1f5a93,_0x1d990e){const _0x168488=this['_revisionsRepository']['getRevisionsInDiff'](_0x1d990e);_0x168488['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x168488),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x168488[0x0]));}['_createRevisionActions'](){const _0x24ae31=this['editor'],_0x4a0fdc=d['availableRevisionActions'],_0x5d6611=_0x24ae31['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x5d6611['length'])return _0x5d6611['map'](_0x18fc17=>{const _0x167e7f='string'==typeof _0x18fc17?Object['assign']({},_0x4a0fdc[_0x18fc17]):_0x18fc17;return _0x167e7f['action']=_0x167e7f['action']['bind'](this,_0x24ae31),_0x167e7f['isVisible']&&(_0x167e7f['isVisible']=_0x167e7f['isVisible']['bind'](this,_0x24ae31)),_0x167e7f;});}}function rt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x2618a2},_0x489a81)=>{const _0x37f356=_0x2618a2['get'](u),_0x3021ac=_0x37f356['repository'];let _0x2877b7=_0x37f356['diff']['newRevisionId'],_0x11742d=_0x489a81['id'];_0x3021ac['getIndex'](_0x2877b7)>_0x3021ac['getIndex'](_0x11742d)&&([_0x2877b7,_0x11742d]=[_0x11742d,_0x2877b7]),_0x37f356['compare'](_0x2877b7,_0x11742d);},'isVisible':({plugins:_0xb9a3c3},_0x31deaf)=>{const _0x9d5465=_0xb9a3c3['get'](u);return!(_0x9d5465['repository']['getRevisionsInDiff'](_0x9d5465['diff'])['length']>0x2)&&!_0x31deaf['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x77fdaf,{id:_0x1f5885})=>{_0x77fdaf['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x1f5885);},'isVisible':({plugins:_0x3318ed},_0x3afaa3)=>!!_0x3318ed['get'](u)['repository']['getLaterVisibleRevision'](_0x3afaa3['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x5f1074},{id:_0xe43a82,revisionNameView:_0x28130c})=>{const _0x16fddd=_0x5f1074['get'](u),_0x2ef4e7=_0x16fddd['repository']['getEarlierVisibleRevision'](_0xe43a82);_0x16fddd['compare'](_0xe43a82,_0x2ef4e7),_0x28130c['focus'](),_0x28130c['fieldView']['select']();}}};}class Z extends tt{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x2d1477,_0x1a1dff){super(_0x2d1477),this['_view']=_0x1a1dff,this['_toolbarConfig']=st(_0x2d1477['config']['get']('toolbar')),this['_elementReplacer']=new it();}get['element'](){return this['view']['element'];}['init'](_0x25bea2){const _0x50d8a8=this['editor'],_0x2d9a24=this['view'],_0x49d6ba=_0x50d8a8['editing']['view'],_0x35c5e9=_0x2d9a24['editable'],_0x25e07a=_0x49d6ba['document']['getRoot']();_0x35c5e9['name']=_0x25e07a['rootName'],_0x2d9a24['render']();const _0x4a8170=_0x35c5e9['element'];this['setEditableElement'](_0x35c5e9['name'],_0x4a8170),_0x2d9a24['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x49d6ba['attachDomRoot'](_0x4a8170),this['_elementReplacer']['replace'](_0x25bea2,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x225fc3=this['view'],_0x2af971=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x2af971['detachDomRoot'](_0x225fc3['editable']['name']),_0x225fc3['destroy']();}['_initToolbar'](){const _0x73083a=this['view'];_0x73083a['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x73083a['stickyPanel']['limiterElement']=_0x73083a['element'],_0x73083a['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x1a63c2})=>_0x1a63c2),_0x73083a['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x73083a['toolbar']);}}class ii extends _0x3a3710{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x5bb1f8,_0x1e960a,_0x1769ff={}){super(_0x5bb1f8),this['stickyPanel']=new _0x486cd5(_0x5bb1f8),this['toolbar']=new _0x25565c(_0x5bb1f8,{'shouldGroupWhenFull':_0x1769ff['shouldToolbarGroupWhenFull']}),this['_editable']=new te(_0x5bb1f8,_0x1e960a);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class f extends/* #__PURE__ -- @preserve */
|
|
30
|
+
_0x5eae31(_0x349271){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x238a0a,_0x424a72){super(_0x424a72),this['sourceElement']=_0x238a0a,this['model']['document']['createRoot']();const _0x1d2ae3=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x1d2ae3);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0xe508f,_0x59ba4b){const _0x183122=new this(_0xe508f,_0x59ba4b);return await _0x183122['initPlugins'](),await _0x183122['ui']['init'](_0xe508f),await _0x183122['data']['init'](_0x183122['config']['get']('initialData')||''),_0x183122['fire']('ready'),_0x183122;}}const p=['RevisionHistoryUI','RestrictedEditingMode','AIChat','AIReviewMode','AIBalloon','AIQuickActions','AIActions'];class at extends _0x34dfe9{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1d018a){function _0xf51d3d(_0x398fd7){return _0x398fd7['map'](_0x387956=>String['fromCharCode'](_0x387956))['join']('');}super(_0x1d018a),this['result']='end',_0x1d018a[_0xf51d3d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xf51d3d([0x76,0x69,0x65,0x77])][_0xf51d3d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xf51d3d([0x61,0x75,0x74,0x6f]),_0x1d018a[_0xf51d3d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0xf51d3d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xf51d3d([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0xf51d3d([0x73,0x74,0x61,0x74,0x75,0x73])]:_0xf51d3d([0x6f,0x6b])});}}class ht extends _0x34dfe9{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,l];}constructor(_0x2f05b1){if(super(_0x2f05b1),!this['editor']['config']['get']('revisionHistory'))throw new _0x176294('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x3c0bb4=>this['_showRevisionViewer']({..._0x3c0bb4,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x22432d=>this['_closeRevisionViewer'](_0x22432d)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x27ba56=>this['_restoreRevision'](_0x27ba56)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x2643c9){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x2643c9;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x31344b){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x31344b);}['getRevision'](_0x5acbcc){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x5acbcc);}['getRevisions'](_0xad1553){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0xad1553||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x490ba7=this['editor'],_0x282a8c=_0x41d5f9(_0x490ba7,p),_0x1c4838=_0x490ba7['plugins']['get']('RevisionTracker'),_0x56a0e3=_0x490ba7['plugins']['get']('Users')['users'];return _0x282a8c['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x282a8c['lazyRoots'],(_0x282a8c['plugins']['push'](at,u,v,class extends _0x34dfe9{static get['requires'](){return[u,'Users'];}['init'](){const _0x56e81a=this['editor']['plugins']['get']('Users');for(const _0x32c92f of _0x56a0e3)_0x32c92f['isAnonymous']||_0x56e81a['getUser'](_0x32c92f['id'])||_0x56e81a['addUser'](_0x32c92f);const _0x3791a5=_0x1c4838['repository']['getRevisions']();let _0x4ce7d5=null;const _0x547aa2=this['editor']['plugins']['get']('RevisionViewer');_0x547aa2['adapter']=_0x1c4838['adapter'],_0x547aa2['bind']('isEnabled')['to'](_0x1c4838),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x490ba7,'isReadOnly',_0x2655a6=>!_0x2655a6);for(const _0x52ca66 of _0x3791a5){const _0x2bb892=null===_0x52ca66['creator'];if(_0x2bb892&&_0x52ca66['toVersion']===_0x52ca66['fromVersion'])continue;const _0x340cbc=_0x52ca66['toJSON']();_0x547aa2['addRevisionData'](_0x340cbc,(_0x51c672,_0x3b0e60,_0x95efc9)=>{if(_0x2bb892){if(_0x4ce7d5)_0x4ce7d5['_update'](_0x51c672,_0x3b0e60);else{if(!_0x3b0e60){const _0x3af0ae=_0x95efc9['toJSON']();_0x3af0ae['id']=_0xd8b478(),_0x1c4838['saveRevision'](_0x3af0ae,_0x95efc9['toVersion'])['then'](_0x1daf05=>{_0x4ce7d5=_0x1daf05;});}}}else _0x52ca66['_update'](_0x51c672,_0x3b0e60);});}}},d),_0x282a8c);}['_enhanceShowRevisionViewerCallback'](){const _0x58fafb=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x310d44=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x47d268=this['editor']['plugins']['get']('Autosave');await _0x47d268['save']();}else await _0x310d44['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x1baae3=this['editor']['plugins']['get']('Dialog');_0x1baae3['isOpen']&&_0x1baae3['hide']();}if(this['editor']['plugins']['has']('AITabs')){const _0x416a51=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x404b81 of _0x416a51)_0x404b81['class']=_0x404b81['class']?_0x404b81['class']+'\x20ck-tab-panel_disabled':'ck-tab-panel_disabled';if(this['editor']['plugins']['has']('AIChat')){const _0x47023a=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x47023a&&_0x47023a['setAttribute']('tabindex','-1');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x3f4c4d=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x3f4c4d&&_0x3f4c4d['setAttribute']('tabindex','-1');}}const _0x1e02a0=this['_getRevisionViewerEditorConfig']();return _0x58fafb(_0x1e02a0)['then'](_0x470671=>{return(this['_viewerEditor']=_0x470671,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),(this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']='none'),_0x470671);})['catch'](_0x56090a=>(console['error'](_0x56090a),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x33b9c8=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>{if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['editor']['plugins']['has']('AITabs')){const _0x454937=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x387cc5 of _0x454937)_0x387cc5['class']='ck-tab-panel_disabled'===_0x387cc5['class']?'':_0x387cc5['class']['replace']('\x20ck-tab-panel_disabled','');if(this['editor']['plugins']['has']('AIChat')){const _0x10d951=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x10d951&&_0x10d951['removeAttribute']('tabindex');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x258260=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x258260&&_0x258260['removeAttribute']('tabindex');}}return this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x33b9c8(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x27a423=this['editor']['plugins']['get']('Annotations');_0x27a423['refreshVisibility'](),_0x27a423['refreshPositioning']();}});});}['_showRevisionViewer'](_0x58f90b){const _0x512b2a=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x1f112f=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x1727ae=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return f['create'](_0x1727ae,_0x58f90b)['then'](_0x3c2f64=>(_0x1f112f['style']['display']='block',_0x512b2a['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x3c2f64));}['_closeRevisionViewer'](_0x4fa23){const _0x460f49=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x460f49['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x4fa23['destroy']();}async['_restoreRevision'](_0x3fa051){const _0xcbf988=this['editor'],_0x5ea131=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x2a1d0f=_0xcbf988['plugins']['get']('RevisionTracker'),_0x3007db=_0xcbf988['plugins']['get']('RevisionHistoryUtils'),_0x3396e6=_0x5ea131['repository']['getRevision'](_0x3fa051);let _0x24e542,_0x4cf549,_0x2f359b;try{await _0x3007db['loadRevisionData'](_0x3396e6,this['adapter']),_0x24e542=_0x3007db['getRevisionDocumentData'](_0x3396e6),_0x4cf549=_0x3007db['getRevisionRootsAttributes'](_0x3396e6);}catch(_0x16695){return void console['error'](_0x16695);}_0xcbf988['model']['change'](_0x2e53cc=>{for(const _0x28ade6 of Array['from'](_0xcbf988['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x2e53cc['removeMarker'](_0x28ade6);}),_0x5ea131['isReady']=!0x1,_0xcbf988['model']['enqueueChange'](_0x2cc5a8=>{_0x2cc5a8['setSelection'](null),_0x2cc5a8['removeSelectionAttribute'](_0xcbf988['model']['document']['selection']['getAttributeKeys']());const _0x57aa25=Object['keys'](_0x24e542);for(const _0x3ee7df of _0xcbf988['model']['document']['roots'])'$graveyard'!=_0x3ee7df['rootName']&&_0x3ee7df['isAttached']()&&!_0x57aa25['includes'](_0x3ee7df['rootName'])&&_0x2cc5a8['detachRoot'](_0x3ee7df);for(const _0x11d654 of _0x57aa25){let _0x465e62=_0xcbf988['model']['document']['getRoot'](_0x11d654);_0x465e62&&_0x465e62['isAttached']()||(_0x465e62=_0x2cc5a8['addRoot'](_0x11d654));const _0x2627da=_0x4cf549[_0x11d654],_0x1e9be3=Object['keys'](_0x2627da),_0x2e7cbb=_0x24e542[_0x11d654];for(const _0x2ced94 of _0x465e62['getAttributeKeys']())_0x1e9be3['includes'](_0x2ced94)||_0x2cc5a8['removeAttribute'](_0x2ced94,_0x465e62);for(const _0x143489 of _0x1e9be3)_0x2cc5a8['setAttribute'](_0x143489,_0x4cf549[_0x11d654][_0x143489],_0x465e62);_0x2cc5a8['remove'](_0x2cc5a8['createRangeIn'](_0x465e62)),_0x2cc5a8['insert'](_0xcbf988['data']['parse'](_0x2e7cbb,_0x465e62),_0x465e62,0x0);}});const _0x5e0f55=m(_0xcbf988['locale'],'Restored');if(_0x3396e6['name'])_0x2f359b=-0x1==_0x3396e6['name']['indexOf'](_0x5e0f55)?_0x5e0f55+':\x20'+_0x3396e6['name']:_0x3396e6['name'];else _0x2f359b=_0x5e0f55+':\x20'+(_0x3396e6['createdAt']['toLocaleDateString'](_0xcbf988['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x3396e6['createdAt']['toLocaleTimeString'](_0xcbf988['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x2a1d0f['saveRevision']({'name':_0x2f359b}),_0x5ea131['isReady']=!0x0,_0xcbf988['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{nt as RestoreRevisionCommand,I as Revision,ht as RevisionHistory,l as RevisionHistoryUI,$ as RevisionHistoryUtils,h as RevisionTracker,u as RevisionViewer,f as RevisionViewerEditor,at as RevisionViewerIntegration,ji as RevisionViewerLoadingOverlay,v as RevisionViewerUI,S as RevisionsRepository,d as RevisionsSidebar,ot as ShowChangeCommand};
|