@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20250215.0 → 0.0.0-nightly-next-20250215.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/LICENSE.md +1 -1
- package/build/revision-history.js +1 -1
- package/ckeditor5-metadata.json +1 -1
- package/dist/index.js +6 -6
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +12 -11
- package/src/changeitem.js +2 -2
- package/src/editor/revisionviewereditor.js +2 -2
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/index.js +1 -1
- package/src/revision.js +2 -2
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +2 -2
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/theme/icons/arrow-down.svg +0 -1
- package/theme/icons/arrow-up.svg +0 -1
- package/theme/icons/revision-history.svg +0 -1
- package/theme/icons/user.svg +0 -1
package/dist/index.js
CHANGED
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ObservableMixin as
|
|
24
|
-
_0x4a7a66(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x321c3a){super(),this['id']=_0x321c3a['id']||_0x47f5e5(),this['creator']=_0x321c3a['creator']||null,this['authors']=_0x321c3a['authors']||[],this['diffData']=_0x321c3a['diffData']||null,this['toVersion']=_0x321c3a['toVersion']||0x0,this['fromVersion']=_0x321c3a['fromVersion']||0x0,this['set']('name',_0x321c3a['name']||''),this['set']('createdAt',_0x321c3a['createdAt']||new Date()),this['set']('attributes',_0x321c3a['attributes']||{});}['setName'](_0x196d44){this['_update']({'name':_0x196d44});}['setAttribute'](_0x3f8f86,_0x53c56c){const _0x278129=_0x5035cd(this['attributes']);_0x45e4cd(_0x278129,_0x3f8f86,_0x53c56c),this['_update']({'attributes':_0x278129});}['removeAttribute'](_0x2f838f){const _0x7b3544=_0x5035cd(this['attributes']);_0x38365c(_0x7b3544,_0x2f838f),this['_update']({'attributes':_0x7b3544});}['_update'](_0x1bdeeb,_0x2bdba0=!0x1){let _0x3d2b02=!0x1;const _0x4860ff={'id':this['id']},_0xcf3f9=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x397caa of _0xcf3f9){const _0x113e6a=_0x1bdeeb[_0x397caa];void 0x0!==_0x113e6a&&_0x113e6a!==this[_0x397caa]&&(this[_0x397caa]=_0x113e6a,_0x4860ff[_0x397caa]=_0x113e6a,_0x3d2b02=!0x0);}_0x3d2b02&&(_0x4860ff['authors']&&(_0x4860ff['authorsIds']=_0x4860ff['authors']['map'](_0x2c6cf6=>_0x2c6cf6['id']),delete _0x4860ff['authors']),this['fire']('_update',_0x4860ff,_0x2bdba0));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x381e45=>_0x381e45['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x26a73c{['_revisions'];static get['requires'](){return[_0x21aeb9];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x2724de){super(_0x2724de),this['_revisions']=new _0x416362();}['afterInit'](){!async function(_0x5ddfee){const _0x40016f=_0x586f76([0x4d,0x71,0x32,0x34,0x37,0x39,0x53,0x6a,0x44,0x59,0x49,0x54,0x46,0x33,0x62,0x68,0x48,0x4e,0x55,0x50,0x4c,0x70,0x6d,0x65,0x6c,0x5a,0x52,0x6e,0x78,0x75,0x69,0x4f,0x51,0x76,0x31,0x35,0x45,0x43,0x7a,0x74,0x47,0x58,0x64,0x6f,0x56,0x42,0x67,0x36,0x38,0x77,0x4b,0x4a,0x30,0x79,0x72,0x61,0x63,0x6b,0x73,0x66,0x41,0x57]),_0x120a38=0xeb829,_0x3d8938=0x11fb594,_0x23148d=0x118ea04^_0x3d8938,_0x1ecd9d=window[_0x586f76([0x44,0x61,0x74,0x65])][_0x586f76([0x6e,0x6f,0x77])](),_0x585e5b=_0x5ddfee[_0x586f76([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x28d93c=new window[(_0x586f76([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x81c8e9=>{_0x585e5b[_0x586f76([0x6f,0x6e,0x63,0x65])](_0x586f76([0x72,0x65,0x61,0x64,0x79]),_0x81c8e9);}),_0x295bbd={[_0x586f76([0x6b,0x74,0x79])]:_0x586f76([0x45,0x43]),[_0x586f76([0x75,0x73,0x65])]:_0x586f76([0x73,0x69,0x67]),[_0x586f76([0x63,0x72,0x76])]:_0x586f76([0x50,0x2d,0x32,0x35,0x36]),[_0x586f76([0x78])]:_0x586f76([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]),[_0x586f76([0x79])]:_0x586f76([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]),[_0x586f76([0x61,0x6c,0x67])]:_0x586f76([0x45,0x53,0x32,0x35,0x36])},_0x5ebe02=_0x585e5b[_0x586f76([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x586f76([0x67,0x65,0x74])](_0x586f76([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x49a890(){let _0x366d1f,_0x280aba=null,_0xfe804b=null;try{if(_0x5ebe02==_0x586f76([0x47,0x50,0x4c]))return _0x586f76([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x366d1f=_0x384b19(),!_0x366d1f)return _0x586f76([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x366d1f[_0x586f76([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xfe804b=_0x1e31d2(_0x366d1f[_0x586f76([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x366d1f[_0x586f76([0x6a,0x74,0x69])])),await _0x3f27b2()?_0x1258eb()?_0x50051d()?_0x586f76([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x25320b()?(_0x366d1f[_0x586f76([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x586f76([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x280aba=_0x3b3fcb(_0x586f76([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x366d1f[_0x586f76([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x586f76([0x74,0x72,0x69,0x61,0x6c])&&(_0x280aba=_0x3b3fcb(_0x586f76([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x392cd3()):_0x586f76([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x586f76([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x586f76([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x249193){return _0x586f76([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x50051d(){const _0x4c2b3f=[_0x586f76([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x586f76([0x74,0x72,0x69,0x61,0x6c])][_0x586f76([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x366d1f[_0x586f76([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1ecd9d/0x3e8:0xe10*_0x23148d;return _0x366d1f[_0x586f76([0x65,0x78,0x70])]<_0x4c2b3f;}function _0x1258eb(){const _0x1241a7=_0x366d1f[_0x586f76([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x1241a7)return!0x1;if(_0x1241a7[_0x586f76([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x586f76([0x2a])))return!0x0;if(_0x1241a7[_0x586f76([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x586f76([0x52,0x48])))return!0x0;if(_0x1241a7[_0x586f76([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x586f76([0x52,0x52,0x48]))){if(_0x436e97())return!0x0;if(_0x43c89e()||_0x161cc0())return!0x0;}return!0x1;}function _0x25320b(){const _0x3784f2=_0x366d1f[_0x586f76([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3784f2||0x0==_0x3784f2[_0x586f76([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x10e2b2}=new URL(window[_0x586f76([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3784f2[_0x586f76([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x10e2b2))return!0x0;const _0x10c465=_0x10e2b2[_0x586f76([0x73,0x70,0x6c,0x69,0x74])](_0x586f76([0x2e]));return _0x3784f2[_0x586f76([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5b4a98=>_0x5b4a98[_0x586f76([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x586f76([0x2a])))[_0x586f76([0x6d,0x61,0x70])](_0x4499c3=>_0x4499c3[_0x586f76([0x73,0x70,0x6c,0x69,0x74])](_0x586f76([0x2e])))[_0x586f76([0x73,0x6f,0x6d,0x65])](_0x1e4656=>_0x10c465[_0x586f76([0x65,0x76,0x65,0x72,0x79])]((_0x5e1ac8,_0x309d7a)=>_0x1e4656[_0x309d7a]===_0x5e1ac8||_0x1e4656[_0x309d7a]===_0x586f76([0x2a])));}function _0x392cd3(){return _0x280aba&&_0xfe804b?new window[(_0x586f76([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5dc9c5,_0x174455)=>{_0x280aba[_0x586f76([0x74,0x68,0x65,0x6e])](_0x5dc9c5,_0x174455),_0xfe804b[_0x586f76([0x74,0x68,0x65,0x6e])](_0x1f4133=>{_0x1f4133!=_0x586f76([0x56,0x61,0x6c,0x69,0x64])&&_0x5dc9c5(_0x1f4133);},_0x174455);}):_0x280aba||_0xfe804b||_0x586f76([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1e31d2(_0x5c6c73,_0x50b36f){return new window[(_0x586f76([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2c2305=>{if(_0x179af0())return _0x2c2305(_0x586f76([0x56,0x61,0x6c,0x69,0x64]));_0x19aa32(),_0x585e5b[_0x586f76([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x586f76([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x361033=!0x1;const _0x36d719=_0x47f5e5();function _0x45f76e(_0x228575){return!!_0x228575&&(typeof _0x228575===_0x586f76([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x228575===_0x586f76([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x228575[_0x586f76([0x74,0x68,0x65,0x6e])]===_0x586f76([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x228575[_0x586f76([0x63,0x61,0x74,0x63,0x68])]===_0x586f76([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4ce182(_0x8dad59){_0x3d3740(_0x8dad59)[_0x586f76([0x74,0x68,0x65,0x6e])](_0x51c824=>{if(!_0x51c824||_0x51c824[_0x586f76([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x586f76([0x6f,0x6b]))return _0x586f76([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x219985(_0x1783ba(_0x36d719+_0x50b36f))!=_0x51c824[_0x586f76([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x586f76([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x586f76([0x56,0x61,0x6c,0x69,0x64]);})[_0x586f76([0x74,0x68,0x65,0x6e])](_0x24b08=>(_0x27f7b5(),_0x24b08),()=>{const _0x4532bb=_0x55d43f();return null==_0x4532bb?(_0x27f7b5(),_0x586f76([0x56,0x61,0x6c,0x69,0x64])):_0x586f76(_0x1ecd9d-_0x4532bb>(0x25133194^_0x3d8938)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x586f76([0x74,0x68,0x65,0x6e])](_0x2c2305)[_0x586f76([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2c2305(_0x586f76([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x32a9ee=0x1295b14^_0x3d8938;function _0x27f7b5(){const _0x15be5e=_0x586f76([0x6c,0x6c,0x63,0x74,0x2d])+_0x219985(_0x1783ba(_0x5c6c73)),_0x46e145=_0x4902ba(_0x219985(window[_0x586f76([0x4d,0x61,0x74,0x68])][_0x586f76([0x63,0x65,0x69,0x6c])](_0x1ecd9d/_0x32a9ee)));window[_0x586f76([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x586f76([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x15be5e,_0x46e145);}function _0x55d43f(){const _0x3c3cbf=_0x586f76([0x6c,0x6c,0x63,0x74,0x2d])+_0x219985(_0x1783ba(_0x5c6c73)),_0x346102=window[_0x586f76([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x586f76([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3c3cbf);return _0x346102?window[_0x586f76([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4902ba(_0x346102),0x10)*_0x32a9ee:null;}function _0x3d3740(_0x23f1df){return new window[(_0x586f76([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x16bba8,_0x46eee1)=>{_0x23f1df[_0x586f76([0x74,0x68,0x65,0x6e])](_0x16bba8,_0x46eee1),window[_0x586f76([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x46eee1,0x11e6154^_0x3d8938);});}}_0x585e5b[_0x586f76([0x6f,0x6e])](_0x586f76([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x518ec2,_0x51032c)=>{if(_0x51032c[0x0]!=_0x5c6c73)return _0x2c2305(_0x586f76([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x51032c[0x1]={..._0x51032c[0x1],[_0x586f76([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x36d719};},{[_0x586f76([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x586f76([0x68,0x69,0x67,0x68])}),_0x585e5b[_0x586f76([0x6f,0x6e])](_0x586f76([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1248e1=>{_0x45f76e(_0x1248e1[_0x586f76([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x361033=!0x0,_0x4ce182(_0x1248e1[_0x586f76([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x586f76([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x586f76([0x6c,0x6f,0x77])}),_0x28d93c[_0x586f76([0x74,0x68,0x65,0x6e])](()=>{_0x361033||_0x2c2305(_0x586f76([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x179af0(){return _0x585e5b[_0x586f76([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x586f76([0x76,0x69,0x65,0x77])][_0x586f76([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x586f76([0x61,0x75,0x74,0x6f]);}function _0x19aa32(){_0x585e5b[_0x586f76([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x586f76([0x76,0x69,0x65,0x77])][_0x586f76([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x586f76([0x61,0x75,0x74,0x6f]);}}function _0x3b3fcb(_0xf8e8e3){const _0x48025b=[new window[(_0x586f76([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x38f201=>setTimeout(_0x38f201,0x1168b58^_0x3d8938)),_0x28d93c[_0x586f76([0x74,0x68,0x65,0x6e])](()=>new window[(_0x586f76([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x19d014=>{const _0x587223=0x11fb593^_0x3d8938,_0x392bd0=_0x5ddfee[_0x586f76([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x508c1e(){_0x392bd0[_0x586f76([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x587223&&_0x19d014();}_0x508c1e(),_0x392bd0[_0x586f76([0x6f,0x6e])](_0x586f76([0x61,0x64,0x64]),_0x508c1e);})),new window[(_0x586f76([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2417de=>{function _0x3a37b6(){for(const _0x28ba41 in window)if(window[_0x586f76([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x586f76([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x28ba41))&&window[_0x28ba41]==_0x120a38)return _0x2417de();_0x585e5b[_0x586f76([0x73,0x74,0x61,0x74,0x65])]!=_0x586f76([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x586f76([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3a37b6,0x11fa61c^_0x3d8938);}_0x2f7b4d(_0x586f76([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x3a37b6();})];return window[_0x586f76([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x586f76([0x72,0x61,0x63,0x65])](_0x48025b)[_0x586f76([0x74,0x68,0x65,0x6e])](()=>_0xf8e8e3);}async function _0x697082(){if(await _0x28d93c,_0x2f7b4d(_0x586f76([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0xe254c5=_0x5ddfee[_0x586f76([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x25b5ad=_0x5ddfee[_0x586f76([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])](_0xe254c5[_0x586f76([0x69,0x64])]),_0x3933c0=_0x3c75d4(_0x586f76([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x3933c0[_0x586f76([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0xe254c5['id'],_0x25b5ad?_0x25b5ad['id']:null,!0x0),_0x3933c0[_0x586f76([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x586f76([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x3933c0[_0x586f76([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x3933c0[_0x586f76([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0xb0dee,void(_0x3933c0[_0x586f76([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0xb0dee);}if(_0x2f7b4d(_0x586f76([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x181f48=_0x3c75d4(_0x586f76([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x181f48[_0x586f76([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x586f76([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x181f48[_0x586f76([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x181f48[_0x586f76([0x75,0x70,0x64,0x61,0x74,0x65])]=_0xb0dee,_0x181f48[_0x586f76([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0xb0dee;}_0x585e5b[_0x586f76([0x6d,0x6f,0x64,0x65,0x6c])][_0x586f76([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xb0dee,_0x585e5b[_0x586f76([0x6d,0x6f,0x64,0x65,0x6c])][_0x586f76([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xb0dee,_0x585e5b[_0x586f76([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x586f76([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x436e97(){return _0x2f7b4d(_0x586f76([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x3c75d4(_0x586f76([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x586f76([0x73,0x74,0x61,0x74,0x65])]==_0x586f76([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x43c89e(){return _0x2f7b4d(_0x586f76([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 _0x161cc0(){return _0x2f7b4d(_0x586f76([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x3b3482(_0x253c58){const _0x1953fc=_0x50a64c();_0x585e5b[_0x1953fc]=_0x586f76([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])+_0x253c58,_0x253c58[_0x586f76([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x586f76([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x50a64c()]=_0x120a38),_0x253c58!=_0x586f76([0x56,0x61,0x6c,0x69,0x64])&&_0x697082();}function _0x50a64c(){const _0x3550e8=window[_0x586f76([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x586f76([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x586f76([0x6e,0x6f,0x77])]())[_0x586f76([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x586f76([0x2e]),'');let _0x15aa37=_0x586f76([0x4d]);for(let _0x58d91a=0x0;_0x58d91a<_0x3550e8[_0x586f76([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x58d91a+=0x2){let _0x60ca4d=window[_0x586f76([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3550e8[_0x586f76([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x58d91a,_0x58d91a+0x2));_0x60ca4d>=_0x40016f[_0x586f76([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x60ca4d-=_0x40016f[_0x586f76([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x15aa37+=_0x40016f[_0x60ca4d];}return _0x15aa37;}function _0x384b19(){const _0x59a4bf=_0x5ebe02[_0x586f76([0x73,0x70,0x6c,0x69,0x74])](_0x586f76([0x2e]));if(0x3!=_0x59a4bf[_0x586f76([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x8dd9bb(_0x59a4bf[0x1]);function _0x8dd9bb(_0xea039e){const _0x7eca94=_0x5d5f44(_0xea039e);return _0x7eca94&&_0x196a85()?_0x7eca94:null;function _0x196a85(){const _0x4d6735=_0x7eca94[_0x586f76([0x6a,0x74,0x69])],_0x47e247=window[_0x586f76([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4d6735[_0x586f76([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4d6735[_0x586f76([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x44f7f7={..._0x7eca94,[_0x586f76([0x6a,0x74,0x69])]:_0x4d6735[_0x586f76([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4d6735[_0x586f76([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x44f7f7[_0x586f76([0x76,0x63])],_0x1783ba(_0x44f7f7)==_0x47e247;}}}async function _0x3f27b2(){let _0x2cac12=!0x0;try{const _0x5f0238=_0x5ebe02[_0x586f76([0x73,0x70,0x6c,0x69,0x74])](_0x586f76([0x2e])),[_0x400cb9,_0x20feae,_0x33ce10]=_0x5f0238;return _0x4c1a02(_0x400cb9),await _0x1bb5d6(_0x400cb9,_0x20feae,_0x33ce10),_0x2cac12;}catch(_0x5a9ad3){return!0x1;}function _0x4c1a02(_0x4e1786){const _0x9cac65=_0x5d5f44(_0x4e1786);_0x9cac65&&_0x9cac65[_0x586f76([0x61,0x6c,0x67])]==_0x586f76([0x45,0x53,0x32,0x35,0x36])||(_0x2cac12=!0x1);}async function _0x1bb5d6(_0x2e675c,_0x1bd836,_0x3e6242){const _0x3f7ec3=window[_0x586f76([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x586f76([0x66,0x72,0x6f,0x6d])](_0x4eb28c(_0x3e6242),_0x539b6e=>_0x539b6e[_0x586f76([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x382cae=new window[(_0x586f76([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x586f76([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2e675c+_0x586f76([0x2e])+_0x1bd836),_0x138fd2=window[_0x586f76([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x586f76([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x138fd2)return;const _0xb5dda4=await _0x138fd2[_0x586f76([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x586f76([0x6a,0x77,0x6b]),_0x295bbd,{[_0x586f76([0x6e,0x61,0x6d,0x65])]:_0x586f76([0x45,0x43,0x44,0x53,0x41]),[_0x586f76([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x586f76([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x586f76([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x138fd2[_0x586f76([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x586f76([0x6e,0x61,0x6d,0x65])]:_0x586f76([0x45,0x43,0x44,0x53,0x41]),[_0x586f76([0x68,0x61,0x73,0x68])]:{[_0x586f76([0x6e,0x61,0x6d,0x65])]:_0x586f76([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xb5dda4,_0x3f7ec3,_0x382cae)||(_0x2cac12=!0x1);}}function _0x5d5f44(_0x690d45){return _0x690d45[_0x586f76([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x586f76([0x65,0x79]))?JSON[_0x586f76([0x70,0x61,0x72,0x73,0x65])](_0x4eb28c(_0x690d45)):null;}function _0x4eb28c(_0x15e362){return window[_0x586f76([0x61,0x74,0x6f,0x62])](_0x15e362[_0x586f76([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x586f76([0x2b]))[_0x586f76([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x586f76([0x2f])));}function _0x1783ba(_0xc7a4e8){let _0x190236=0x1505;function _0x560d43(_0x391e7b){for(let _0x378557=0x0;_0x378557<_0x391e7b[_0x586f76([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x378557++){const _0x395cda=_0x391e7b[_0x586f76([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x378557);_0x190236=(_0x190236<<0x5)+_0x190236+_0x395cda,_0x190236&=_0x190236;}}function _0x172648(_0x289766){Array[_0x586f76([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x289766)?_0x289766[_0x586f76([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x172648):_0x289766&&typeof _0x289766==_0x586f76([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x586f76([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x289766)[_0x586f76([0x73,0x6f,0x72,0x74])]()[_0x586f76([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x47e24e,_0x1b75f7])=>{_0x560d43(_0x47e24e),_0x172648(_0x1b75f7);}):_0x560d43(window[_0x586f76([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x289766));}return _0x172648(_0xc7a4e8),_0x190236>>>0x0;}function _0x219985(_0x202f14){return _0x202f14[_0x586f76([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x586f76([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x586f76([0x30]));}function _0x4902ba(_0x1291c8){return _0x1291c8[_0x586f76([0x73,0x70,0x6c,0x69,0x74])]('')[_0x586f76([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x586f76([0x6a,0x6f,0x69,0x6e])]('');}function _0x2f7b4d(_0x4663d1){return _0x585e5b[_0x586f76([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x586f76([0x68,0x61,0x73])](_0x4663d1);}function _0x3c75d4(_0x59560e){return _0x585e5b[_0x586f76([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x586f76([0x67,0x65,0x74])](_0x59560e);}function _0xb0dee(){}function _0x586f76(_0x2b89de){return _0x2b89de['map'](_0x436186=>String['fromCharCode'](_0x436186))['join']('');}_0x3b3482(await _0x49a890());}(this);}['createRevision'](_0x4385de){const _0x5b0240=this['editor']['plugins']['get']('Users');return new a({'id':_0x4385de['id'],'name':_0x4385de['name'],'creator':_0x4385de['creatorId']?_0x5b0240['getUser'](_0x4385de['creatorId']):null,'diffData':_0x4385de['diffData']||_0x4385de['data'],'authors':_0x4385de['authorsIds']['map'](_0x275532=>_0x5b0240['getUser'](_0x275532)),'createdAt':new Date(_0x4385de['createdAt']),'attributes':_0x4385de['attributes'],'fromVersion':_0x4385de['fromVersion'],'toVersion':_0x4385de['toVersion']});}['addRevision'](_0x18377f,_0x471ac4=0x0){this['_revisions']['add'](_0x18377f,_0x471ac4);}['getRevision'](_0x10f21d){return this['_revisions']['get'](_0x10f21d);}['getRevisions'](_0x37e651={'toJSON':!0x1}){const _0x1ceaf1=Array['from'](this['_revisions']);return _0x1ceaf1['reverse'](),_0x37e651['toJSON']?_0x1ceaf1['map'](_0x353302=>_0x353302['toJSON']()):_0x1ceaf1;}['getIndex'](_0x157d32){return this['_revisions']['getIndex'](_0x157d32);}['getEarlierVisibleRevision'](_0x31ec77){const [,_0x5d91d7]=this['getRevisionsIterator'](_0x31ec77,{'direction':'earlier'});return _0x5d91d7;}['getLaterVisibleRevision'](_0x57e0de){const [,_0xad17f4]=this['getRevisionsIterator'](_0x57e0de,{'direction':'later'});return _0xad17f4;}['getRevisionsInDiff'](_0x5ac5bb){const _0x26df06=[];for(const _0x3bf3a1 of this['getRevisionsIterator'](_0x5ac5bb['newRevisionId']))if(_0x26df06['push'](_0x3bf3a1),_0x3bf3a1['id']===_0x5ac5bb['oldRevisionId'])break;return _0x26df06;}*['getRevisionsIterator'](_0x30ae2b,{direction:_0x4bc1a4='earlier',filter:_0x4c7848=()=>!0x0}={}){const _0x1e3833='earlier'===_0x4bc1a4?0x1:-0x1;let _0x50a0fa=this['_revisions']['get'](_0x30ae2b),_0x144fd4=this['getIndex'](_0x50a0fa);for(yield _0x50a0fa;_0x50a0fa;){if(_0x144fd4+=_0x1e3833,_0x50a0fa=this['getRevision'](_0x144fd4),!_0x50a0fa)return;_0x4c7848(_0x50a0fa)&&(yield _0x50a0fa);}}}function m(_0x24ee62,_0xa25f62,_0x20b149){const t=_0x24ee62['t'];switch(_0xa25f62){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'},_0x20b149);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x20b149);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const P={'c':_0x2833cc,'a':_0xa1158c,'e':_0x448a9b,'r':_0x2aad15,'u':_0x2d717c};class l extends _0x26a73c{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x21aeb9,j,_0x5f5c81];}constructor(_0x54efe0){super(_0x54efe0),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x27700b=_0x47f5e5();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x27700b},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x223ec9=this['repository']['getRevision'](0x0),_0x3862ea=_0x223ec9&&null===_0x223ec9['creator']?_0x223ec9:null;if(this['_continueCurrentRevision']=!!_0x3862ea&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x3349e4=this['_source']['getCurrentRevisionId'](),_0x48f203=this['repository']['getRevision'](_0x3349e4);if(_0x48f203)this['_startingVersion']=_0x48f203['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x1c2597=this['_source']['history']['_operations']['find'](_0x343bca=>!_0x343bca['_isInit']),_0xc7eb3b=_0x1c2597?_0x1c2597['baseVersion']:this['_source']['history']['version'];_0x223ec9?(_0x223ec9['toVersion']<_0xc7eb3b&&_0x223ec9['_update']({'toVersion':_0xc7eb3b}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x3862ea['id'],this['_startingVersion']=_0x3862ea['fromVersion']):(this['_startingVersion']=_0x223ec9['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0xc7eb3b,this['_continueCurrentRevision']=!0x1);}}else _0x3862ea&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x3862ea['toVersion'],this['editor']['model']['document']['history']['version']),_0x3862ea['fromVersion']===_0x3862ea['toVersion']?(0x0!==_0x3862ea['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x3862ea['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x3862ea['id'],this['_startingVersion']=_0x3862ea['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',_0x5a2a40=>!_0x5a2a40),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5bdbe0=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x32f287;for(const _0x5d9cac in _0x5bdbe0){const _0x148aa6=_0x5d9cac,_0x493c41=_0x5bdbe0[_0x148aa6];if('revisionHistoryLicenseKeyValid'==_0x493c41||'revisionHistoryLicenseKeyInvalid'==_0x493c41||'revisionHistoryLicenseKeyExpired'==_0x493c41||'revisionHistoryLicenseKeyDomainLimit'==_0x493c41||'revisionHistoryLicenseKeyNotAllowed'==_0x493c41||'revisionHistoryLicenseKeyEvaluationLimit'==_0x493c41||'revisionHistoryLicenseKeyTrialLimit'==_0x493c41||'revisionHistoryLicenseKeyUsageLimit'==_0x493c41){delete _0x5bdbe0[_0x148aa6],_0x32f287=_0x493c41,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x32f287&&_0x5bdbe0['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x32f287&&_0x5bdbe0['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x32f287&&_0x5bdbe0['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x32f287&&_0x5bdbe0['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x32f287&&_0x5bdbe0['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x32f287&&_0x5bdbe0['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x32f287&&_0x5bdbe0['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x23fdc3=this['repository']['getRevision'](0x0),_0x107d90=await this['getRevisionDocumentData'](_0x23fdc3),_0x3fbe7c=await this['getRevisionRootsAttributes'](_0x23fdc3);this['_replaceEditorDataWithRevisionData'](_0x107d90,_0x3fbe7c);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x51fcdc){this['_source']=_0x51fcdc;}async['update'](){const _0x1b25ec=await this['_source']['getLatestVersion']();if(_0x1b25ec>this['currentRevision']['toVersion']){await this['_loadState']();const _0x39b44d=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x1b25ec});_0x39b44d['authors']=_0x39b44d['authorsIds']['map'](_0x1e8170=>this['editor']['plugins']['get']('Users')['getUser'](_0x1e8170)),this['currentRevision']['_update'](_0x39b44d);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0x17bf2d={},_0x5ba1e2=null){const _0x21acf7=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x5ba1e2>this['currentRevision']['toVersion']&&(_0x5ba1e2=null),null===_0x5ba1e2&&(_0x5ba1e2=await this['_source']['getLatestVersion']());const _0x5a7a66=this['_getFromVersion'](_0x5ba1e2),_0x44aec7=this['buildRevisionData']({'from':_0x5a7a66,'to':_0x5ba1e2});if(this['currentRevision']['toVersion']<_0x5ba1e2){const _0xeffde=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x5ba1e2,'to':_0x5ba1e2});_0xeffde['authors']=[],_0xeffde['authorsIds']=[],_0xeffde['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0xeffde,!0x0),delete _0xeffde['authors'],_0x21acf7['push'](_0xeffde);}_0x17bf2d['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x17bf2d['name']=_0x17bf2d['name']||null,_0x17bf2d['id']=_0x17bf2d['id']||_0x47f5e5(),_0x17bf2d={..._0x17bf2d,..._0x44aec7};const _0xefc56e=this['addRevisionData'](_0x17bf2d);_0x21acf7['push'](_0x17bf2d);const _0x3e58cc=this['repository']['getIndex'](_0xefc56e);if(0x0!==_0x3e58cc){const _0x7de32f=this['repository']['getRevision'](_0x3e58cc-0x1);if(_0x7de32f['fromVersion']!==_0x5ba1e2){const _0x5e6fa1=this['_revisionDataBuilder']['getData'](_0x5ba1e2,_0x7de32f['toVersion']),_0x56aa02={'id':_0x7de32f['id'],'diffData':_0x5e6fa1['diffData'],'authorsIds':_0x5e6fa1['authorsIds'],'authors':_0x5e6fa1['authorsIds']['map'](_0x569763=>this['editor']['plugins']['get']('Users')['getUser'](_0x569763)),'fromVersion':_0x5ba1e2};_0x7de32f===this['currentRevision']&&(_0x56aa02['createdAt']=new Date(_0x17bf2d['createdAt']['getTime']()+0xa)),_0x7de32f['_update'](_0x56aa02,!0x0),delete _0x56aa02['authors'],_0x21acf7['push'](_0x56aa02);}}if(this['adapter']){for(const _0x15d283 of _0x21acf7)this['_bufferUpdate'](_0x15d283['id'],_0x15d283,!0x0);this['sendBufferedUpdates']();}return _0xefc56e;}['addRevisionData'](_0x201f14){const _0x2d8a61=this['repository']['createRevision'](_0x201f14);return this['adapter']&&_0x2d8a61['on']('_update',(_0x57ee8c,_0x2a6e84,_0x2d3f6e)=>{_0x2d3f6e||(this['_bufferUpdate'](_0x2a6e84['id'],_0x2a6e84,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x2d8a61,this['_findInsertionIndex'](_0x2d8a61)),_0x2d8a61;}async['getRevisionDocumentData'](_0x531c52){await this['_loadRevisionData'](_0x531c52);const _0x2f1295={};for(const _0x18f5a8 in _0x531c52['diffData']){if(_0x531c52['diffData'][_0x18f5a8]['attachChange']&&!_0x531c52['diffData'][_0x18f5a8]['attachChange']['isAttached'])continue;const _0x4a91df=this['_removeRevisionMarkers'](JSON['parse'](_0x531c52['diffData'][_0x18f5a8]['insertions'])),_0x3dcb33=this['editor']['editing']['view']['document'],_0x1d6b24=new _0x526c1d(_0x3dcb33,_0x4a91df['map'](_0x4f0317=>C(_0x4f0317,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x2f1295[_0x18f5a8]=this['editor']['data']['processor']['toData'](_0x1d6b24),this['editor']['data']['processor']['useFillerType']('default');}return _0x2f1295;}async['getRevisionRootsAttributes'](_0x13a1e2){await this['_loadRevisionData'](_0x13a1e2);const _0x38d6e7={};for(const _0x245293 in _0x13a1e2['diffData'])_0x13a1e2['diffData'][_0x245293]['attachChange']&&!_0x13a1e2['diffData'][_0x245293]['attachChange']['isAttached']||(_0x38d6e7[_0x245293]=_0x13a1e2['diffData'][_0x245293]['attributesAfter']||{});return _0x38d6e7;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x332502=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x7ed578=0x0;_0x7ed578<_0x332502['length'];_0x7ed578++){const _0x17cf87=_0x332502[_0x7ed578];let _0x5c91a0=!0x1;for(const _0x530f6c of Object['keys'](_0x17cf87))void 0x0===_0x17cf87[_0x530f6c]?delete _0x17cf87[_0x530f6c]:'id'!==_0x530f6c&&(_0x5c91a0=!0x0);_0x5c91a0||(_0x332502[_0x7ed578]=null);}if(_0x332502=_0x332502['filter'](_0x37fb56=>null!==_0x37fb56),!_0x332502['length'])return;for(let _0x429132=0x0;_0x429132<_0x332502['length'];_0x429132++){const _0x194357=_0x332502[_0x429132];void 0x0!==_0x194357['fromVersion']&&void 0x0===_0x194357['toVersion']&&(_0x194357['toVersion']=this['repository']['getRevision'](_0x194357['id'])['toVersion']),void 0x0!==_0x194357['toVersion']&&void 0x0===_0x194357['fromVersion']&&(_0x194357['fromVersion']=this['repository']['getRevision'](_0x194357['id'])['fromVersion']);}const _0x55fc96=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x332502,_0x55fc96)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x20b204=>{if(_0x20b204){for(const _0x24dbca of _0x20b204)this['setRevisionData']({'id':_0x24dbca['id'],'createdAt':_0x24dbca['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x501d56,_0x8a5632){let _0x5cbdd4=this['editor']['config']['get']('initialData'),_0x32891b=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x5cbdd4){_0x5cbdd4={};for(const _0x47116c of this['editor']['model']['document']['getRootNames']())_0x5cbdd4[_0x47116c]='';}if('string'==typeof _0x5cbdd4&&(_0x5cbdd4={'main':_0x5cbdd4}),void 0x0===_0x32891b){_0x32891b={};for(const _0x16e6f0 of this['editor']['model']['document']['getRootNames']())_0x32891b[_0x16e6f0]={};}let _0x524a60=!0x1;const _0x59ae49=Object['keys'](_0x5cbdd4),_0xef09b5=Object['keys'](_0x501d56);for(const _0x448cff of _0x59ae49){if(_0x5cbdd4[_0x448cff]!==_0x501d56[_0x448cff]&&''!==_0x5cbdd4[_0x448cff]['trim']()){_0x524a60=!0x0;break;}if(!_0x402b9d(_0x32891b[_0x448cff],_0x8a5632[_0x448cff])&&Object['keys'](_0x32891b[_0x448cff])['length']>0x0){_0x524a60=!0x0;break;}}_0x524a60||(_0x524a60=_0xef09b5['some'](_0x24ce85=>!this['editor']['model']['document']['getRoot'](_0x24ce85))),_0x524a60&&_0x199978('editor-initial-data-replaced-with-revision-data',{'editorData':_0x5cbdd4,'editorRootsAttributes':_0x32891b,'revisionData':_0x501d56,'revisionRootsAttributes':_0x8a5632}),this['editor']['config']['set']('initialData',_0x501d56),this['editor']['config']['set']('rootsAttributes',_0x8a5632);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x1b0e01=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x1b0e01['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x275799){const _0x22fda5=this['repository']['getRevisions']();_0x22fda5['reverse']();let _0x39547f=0x0;for(;_0x39547f<_0x22fda5['length'];){const _0x1e87ea=_0x22fda5[_0x39547f];if(_0x1e87ea===this['currentRevision']){_0x39547f++;continue;}if(_0x1e87ea['id']===this['_initialRevisionId'])break;const _0x381c2b=_0x275799['toVersion']-_0x1e87ea['toVersion']||_0x275799['fromVersion']-_0x1e87ea['fromVersion'];if(_0x381c2b>0x0)break;if(_0x381c2b<0x0)_0x39547f++;else{if(!_0x275799['creator']&&_0x1e87ea['creator'])break;if(_0x1e87ea['creator']||!_0x275799['creator']){if(_0x275799['createdAt']>_0x1e87ea['createdAt'])break;_0x39547f++;}else _0x39547f++;}}return _0x39547f;}['setRevisionData'](_0xc5a64c){const _0x4cde2c=this['repository']['getRevision'](_0xc5a64c['id']);if(_0xc5a64c['createdAt']&&(_0xc5a64c['createdAt']=new Date(_0xc5a64c['createdAt'])),_0xc5a64c['authorsIds']){const _0x1aab5e=this['editor']['plugins']['get']('Users');_0xc5a64c['authors']=_0xc5a64c['authorsIds']['map'](_0x541407=>_0x1aab5e['getUser'](_0x541407));}_0x4cde2c['_update'](_0xc5a64c,!0x0);}['buildRevisionData']({revision:_0x215ec=null,from:_0x413a3d=null,to:_0x5dc519=null}){_0x413a3d=null!==_0x413a3d?_0x413a3d:_0x215ec['fromVersion'],_0x5dc519=null!==_0x5dc519?_0x5dc519:_0x215ec['toVersion'];const _0x431682=this['_revisionDataBuilder']['getData'](_0x413a3d,_0x5dc519),_0x5d0a74={'diffData':_0x431682['diffData'],'authorsIds':_0x431682['authorsIds'],'fromVersion':_0x413a3d,'toVersion':_0x5dc519};if(!_0x215ec||_0x5dc519!==_0x215ec['toVersion']){const _0x17a12c=_0x5dc519-0x1,_0x26dd73=this['_source']['history']['getOperation'](_0x17a12c);_0x5d0a74['createdAt']=_0x26dd73&&_0x26dd73['createdAt']||new Date();}if(this['_loadedStateData']&&_0x413a3d===this['_loadedStateData']['fromVersion']){for(const _0x1d416a of this['_loadedStateData']['authors'])_0x5d0a74['authorsIds']['includes'](_0x1d416a['id'])||_0x5d0a74['authorsIds']['push'](_0x1d416a['id']);}return _0x5d0a74;}['_loadRevisionData'](_0x124015){if(!_0x124015||_0x124015['diffData'])return Promise['resolve']();{const _0x5b0086=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x5b0086,'revisionId':_0x124015['id']})['then'](_0x1ef665=>{_0x124015['diffData']=_0x1ef665['diffData'];});}}['_bufferUpdate'](_0x2729a6,_0x3b5e1b,_0xd549d){if(this['_bufferedUpdates']['has'](_0x2729a6)){const _0x96d81=this['_bufferedUpdates']['get'](_0x2729a6);_0x3b5e1b=_0xd549d?{..._0x96d81,..._0x3b5e1b}:{..._0x3b5e1b,..._0x96d81};}this['_bufferedUpdates']['set'](_0x2729a6,_0x3b5e1b);}['_getFromVersion'](_0x20d789){const _0x1cd8d6=this['repository']['getRevisions']();_0x1cd8d6['reverse'](),_0x1cd8d6['shift']();const _0x5da92d=_0x1cd8d6['find'](_0x1c984b=>_0x1c984b['toVersion']<=_0x20d789)['toVersion'];return _0x5da92d<this['_startingVersion']?this['_startingVersion']:_0x5da92d;}['_createInitialRevision'](_0x2e0e89){const _0x3ba987=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x3ba987)this['_initialRevisionId']=_0x3ba987['id'];else{const _0x236b92=!this['editor']['model']['document']['roots']['find'](_0x23ee05=>this['editor']['model']['hasContent'](_0x23ee05)),_0x157656=this['editor']['plugins']['get']('Users')['me']['id'],_0x85ecb8=m(this['editor']['locale'],_0x236b92?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x2e0e89,'to':_0x2e0e89,'id':this['_initialRevisionId'],'name':_0x85ecb8,'creatorId':_0x157656});}}['_createCurrentRevision'](_0x4fdb40){const _0x5f0eaf=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x5f0eaf),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x4fdb40,'to':_0x4fdb40,'id':_0x5f0eaf,'name':'','creatorId':null}));}['_makeRevision']({name:_0x183b2b,from:_0x21a7ee,to:_0x874687,creatorId:_0x417276,id:_0x5e0c87}){const _0x579003=this['buildRevisionData']({'from':_0x21a7ee,'to':_0x874687});_0x579003['name']=_0x183b2b,_0x579003['creatorId']=_0x417276,_0x579003['id']=_0x5e0c87;const _0x2ab820=this['addRevisionData'](_0x579003);return this['adapter']&&this['_bufferUpdate'](_0x579003['id'],_0x579003,!0x0),_0x2ab820;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x64df6){return(_0x64df6=_0x64df6['filter'](_0x38252c=>!_0x38252c['name']||'revision-start'!==_0x38252c['name']&&'revision-end'!==_0x38252c['name']))['forEach'](_0x1fec50=>{'string'!=typeof _0x1fec50&&(_0x1fec50['children']=this['_removeRevisionMarkers'](_0x1fec50['children']),_0x1fec50['attributes']=_0x1fec50['attributes']['filter'](_0x4113ce=>!_0x4113ce[0x0]['startsWith']('data-revision-')));}),_0x64df6;}}function C(_0x54cd2a,_0x298477){const _0x1bd156=_0x298477['editing']['view']['document'];if('string'==typeof _0x54cd2a)return new _0x4d5cb1(_0x1bd156,_0x54cd2a);{const _0x21b240=_0x54cd2a['children']['map'](_0x14167c=>C(_0x14167c,_0x298477));return new(P[_0x54cd2a['type']]||_0x40b1e7)(_0x1bd156,_0x54cd2a['name'],_0x54cd2a['attributes'],_0x21b240);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x19e913){this['editor']=_0x19e913,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'](_0x383e92){this['source']=_0x383e92;const _0x1aeb3f=new Map(),_0x201542=new Map(),_0x41d50e=this['editor']['model']['document']['roots']['map'](_0x1f8a24=>_0x1f8a24['rootName']);for(const _0x58b1d9 of _0x41d50e){const _0x505fc3=this['editor']['model']['document']['getRoot'](_0x58b1d9),_0x1bfe7d=T(_0x505fc3);_0x1aeb3f['set'](_0x58b1d9,_0x1bfe7d),_0x201542['set'](_0x58b1d9,Object['fromEntries'](_0x505fc3['getAttributes']()));}const _0x397e4d=Array['from'](this['editor']['model']['markers'])['map'](_0x2d8379=>[_0x2d8379['name'],_0x2d8379['getRange']()]),_0x180fae=this['source']['version'];this['_saveMetaData'](_0x180fae,_0x1aeb3f,_0x397e4d,_0x201542),this['_startingRevisionId']=this['_revisionId'];const _0x1f0ce5=new Map(),_0x40ea2a=new Map();for(const _0x239409 of _0x41d50e){const _0x5e729a=F(_0x239409);_0x1f0ce5['set'](_0x239409,_0x5e729a),_0x40ea2a['set'](_0x239409,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x1f0ce5,[],_0x40ea2a);}['getData'](_0x5a0271,_0x1399f5){if(this['_lastFrom']===_0x5a0271&&this['_lastTo']<=_0x1399f5)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x1399f5,!0x0);else{if(!this['_savedMetaData']['has'](_0x5a0271)){const _0x42c9fb=this['_getPreviousFrom'](_0x5a0271);this['_calculateMetaData'](_0x42c9fb,_0x5a0271,!0x1);}this['_calculateMetaData'](_0x5a0271,_0x1399f5,!0x0);}return this['_lastFrom']=_0x5a0271,this['_lastTo']=_0x1399f5,this['_getState']();}['loadState'](_0x341a22){this['_reset'](),this['_lastFrom']=_0x341a22['fromVersion'],this['_lastTo']=_0x341a22['toVersion'];for(const _0x1daca6 in _0x341a22['diffData']){const _0x3a8a43=_0x341a22['diffData'][_0x1daca6]['attachChange'],_0x502ede=_0x5035cd(_0x341a22['diffData'][_0x1daca6]['attributesBefore'])||{},_0x4294b8=this['_makeModelFromViewString'](_0x341a22['diffData'][_0x1daca6]['deletions']);_0x4294b8['rootName']=_0x1daca6,_0x4294b8['_isAttached']=!_0x3a8a43||!_0x3a8a43['isAttached'],_0x4294b8['isAttached']=()=>_0x4294b8['_isAttached'],this['_baseRoots']['set'](_0x1daca6,_0x4294b8),this['_baseRootsAttributes']['set'](_0x1daca6,_0x502ede),_0x3a8a43&&this['_touchedRoots']['set'](_0x1daca6,_0x3a8a43);const _0x3ab123=this['_makeIdsRoot'](_0x4294b8);this['_baseIdsRoots']['set'](_0x1daca6,_0x3ab123);for(const [_0xfaa1b8,_0x1a3def]of _0x4294b8['markers']){if(!_0xfaa1b8['startsWith']('revision:'))continue;const _0x234560=_0xfaa1b8['split'](':')[0x2];for(const _0x144f01 of _0x1a3def['getWalker']({'singleCharacters':!0x0})){const _0x2e9bfa=this['_getVidAttributeName'](_0x144f01),_0x3408f7='elementEnd'==_0x144f01['type']?_0x144f01['previousPosition']['path']['slice'](0x0,-0x1):_0x144f01['previousPosition']['path'],_0x3d1b5f=_0x3ab123['getNodeByPath'](_0x3408f7)['getAttribute'](_0x2e9bfa);this['_touched']['set'](_0x3d1b5f,{'userId':_0x234560});}}}this['_startingRevisionId']=this['_revisionId'];const _0x259946=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x21268b=>!this['_touched']['has'](_0x21268b));let _0x4ad067=0x0;const _0x2edaec=new Map();for(const _0x2dc53c in _0x341a22['diffData']){const _0x1bc2a0=_0x341a22['diffData'][_0x2dc53c]['attachChange'],_0x518033=_0x5035cd(_0x341a22['diffData'][_0x2dc53c]['attributesAfter'])||{},_0xf608d0=this['_makeModelFromViewString'](_0x341a22['diffData'][_0x2dc53c]['insertions']);_0xf608d0['rootName']=_0x2dc53c,_0xf608d0['_isAttached']=!_0x1bc2a0||_0x1bc2a0['isAttached'],_0xf608d0['isAttached']=()=>_0xf608d0['_isAttached'],this['_diffRoots']['set'](_0x2dc53c,_0xf608d0),this['_diffRootsAttributes']['set'](_0x2dc53c,_0x518033);const _0x2c9efc=this['_makeIdsRoot'](_0xf608d0,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x2dc53c,_0x2c9efc),_0x2edaec['set'](_0x2dc53c,_0xf608d0['isAttached']()?_0x518033:{});for(const [_0x1a486c,_0x498c34]of _0xf608d0['markers']){if(!_0x1a486c['startsWith']('revision:'))continue;const _0x5c7336=_0x1a486c['split'](':')[0x2];for(const _0x41b708 of _0x498c34['getWalker']({'singleCharacters':!0x0})){const _0x2a949f=this['_getVidAttributeName'](_0x41b708),_0x4b7a28=this['_revisionId']++,_0xf1420e='elementEnd'==_0x41b708['type']?_0x41b708['previousPosition']['path']['slice'](0x0,-0x1):_0x41b708['previousPosition']['path'];_0x2c9efc['getNodeByPath'](_0xf1420e)['_setAttribute'](_0x2a949f,_0x4b7a28),this['_touched']['set'](_0x4b7a28,{'userId':_0x5c7336});}}for(const _0x1ebe65 of this['editor']['model']['createRangeIn'](_0xf608d0)['getWalker']({'singleCharacters':!0x0})){const _0x500512=this['_getVidAttributeName'](_0x1ebe65),_0x5663bf='elementEnd'==_0x1ebe65['type']?_0x1ebe65['previousPosition']['path']['slice'](0x0,-0x1):_0x1ebe65['previousPosition']['path'],_0x138f21=_0x2c9efc['getNodeByPath'](_0x5663bf);_0x138f21['getAttribute'](_0x500512)>0x0||_0x138f21['_setAttribute'](_0x500512,_0x259946[_0x4ad067++]);}for(const [_0x2bec18,_0x2c919f]of _0xf608d0['markers'])_0x2bec18['startsWith']('revision:')||this['_markers']['set'](_0x2bec18,_0x2c919f);}const _0x365761=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x365761),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x365761,0x1));const _0x5205d7=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x5205d7),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x5205d7,0x1));const _0x34be4d=Array['from'](this['_diffRoots'])['map'](([_0x7477a5,_0x169aef])=>[_0x7477a5,T(_0x169aef)]);this['_saveMetaData'](this['_lastTo'],_0x34be4d,this['_markers'],_0x2edaec);}['_makeModelFromViewString'](_0x52e258){const _0x29881f=JSON['parse'](_0x52e258),_0x420318=this['editor']['editing']['view']['document'],_0x51fcd0=new _0x526c1d(_0x420318,_0x29881f['map'](_0x280e3b=>C(_0x280e3b,this['editor'])));return this['editor']['data']['toModel'](_0x51fcd0);}['_saveMetaData'](_0x4d6ed4,_0x293af7,_0x4d000d,_0xcd7374){const _0x15ee24=new Map(_0x293af7),_0x2fa7b2=new Map(_0x5035cd(_0xcd7374)),_0x83a09a=new Map();for(const [_0x10cc74,_0x4a32e5]of _0x4d000d)_0x83a09a['set'](_0x10cc74,{'start':_0x4a32e5['start']['clone'](),'end':_0x4a32e5['end']['clone'](),'rootName':_0x4a32e5['root']['rootName']});this['_savedMetaData']['set'](_0x4d6ed4,{'roots':_0x15ee24,'markers':_0x83a09a,'rootsAttributes':_0x2fa7b2});}['_removeMetaData'](_0x5063f3){this['_savedMetaData']['delete'](_0x5063f3);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x43ffea,_0x5d132=null){let _0x17014f=null;_0x43ffea['is']('documentFragment')||(_0x17014f=new ft(_0x43ffea['name'],{'vid_start':null===_0x5d132?this['_revisionId']++:_0x5d132++}));const _0x1cde54=[];for(const _0x5e6484 of _0x43ffea['getChildren']())if(_0x5e6484['is']('element')){_0x1cde54['push'](this['_makeIdsRoot'](_0x5e6484,_0x5d132));const _0x1bd6d8=_0x1cde54[_0x1cde54['length']-0x1];null!==_0x5d132&&(_0x5d132=_0x1bd6d8['is']('element','$text')?_0x1bd6d8['getAttribute']('vid')+0x1:_0x1bd6d8['getAttribute']('vid_end')+0x1);}else{for(let _0x378417=0x0;_0x378417<_0x5e6484['offsetSize'];_0x378417++)_0x1cde54['push'](new ft('$text',{'vid':null===_0x5d132?this['_revisionId']++:_0x5d132++}));}if(_0x43ffea['is']('documentFragment')){const _0x27cbb5=F(_0x43ffea['rootName']);return _0x27cbb5['_insertChild'](0x0,_0x1cde54),_0x27cbb5;}return _0x17014f['_setAttribute']('vid_end',null===_0x5d132?this['_revisionId']++:_0x5d132++),_0x17014f['_insertChild'](0x0,_0x1cde54),_0x17014f;}['_calculateMetaData'](_0x4285d9,_0x5bad6e,_0x424e48){this['_reset']();const {roots:_0x3444e5,markers:_0x73a916,rootsAttributes:_0xa772d4}=this['_savedMetaData']['get'](_0x4285d9);this['_baseRoots']=new Map(_0x3444e5),this['_baseRootsAttributes']=new Map(_0x5035cd(_0xa772d4));for(const [_0x4639c6,_0x393b5c]of this['_baseRoots'])if('$graveyard'!==_0x4639c6&&(this['_diffRoots']['set'](_0x4639c6,T(_0x393b5c)),this['_diffRootsAttributes']=new Map(_0x5035cd(_0xa772d4)),_0x424e48)){const _0x43f20c=this['_revisionId'];this['_idsRoots']['set'](_0x4639c6,this['_makeIdsRoot'](_0x393b5c)),this['_baseIdsRoots']['set'](_0x4639c6,this['_makeIdsRoot'](_0x393b5c,_0x43f20c));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x424e48&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x4484a9,_0x488e9]of _0x73a916){const _0x7cb19e=this['_baseRoots']['get'](_0x488e9['rootName']),_0x5ffafd=this['_diffRoots']['get'](_0x488e9['rootName']),_0x4471e4=new vt(this['_fixPosition'](_0x488e9['start'],_0x7cb19e),this['_fixPosition'](_0x488e9['end'],_0x7cb19e)),_0x2118c7=this['_fixRange'](_0x4471e4,_0x5ffafd);_0x7cb19e['markers']['set'](_0x4484a9,_0x4471e4),this['_markers']['set'](_0x4484a9,_0x2118c7);}this['_applyOperations'](_0x4285d9,_0x5bad6e,_0x424e48);}['_applyOperations'](_0x4a7ddc,_0x7ce3e8,_0x3546fa){for(const _0x273be3 of this['source']['getOperations'](_0x4a7ddc,_0x7ce3e8))this['_handleOperation'](_0x273be3,_0x3546fa);for(const _0x5b3716 of this['_diffRoots']['values']())_0x5b3716['markers']['clear']();for(const [_0x3d6dcf,_0x3bf3ba]of this['_markers']){this['_diffRoots']['get'](_0x3bf3ba['root']['rootName'])['markers']['set'](_0x3d6dcf,_0x3bf3ba['clone']());}const _0x4f69e5=new Map(),_0x2f682a=new Map();for(const [_0x45835c,_0x3bc3f3]of this['_diffRoots'])_0x4f69e5['set'](_0x45835c,T(_0x3bc3f3)),_0x2f682a['set'](_0x45835c,this['_diffRootsAttributes']['get'](_0x45835c));this['_saveMetaData'](_0x7ce3e8,_0x4f69e5,this['_markers'],_0x2f682a);}['_getPreviousFrom'](_0x5db5d9){const _0x25e5d0=Array['from'](this['_savedMetaData']['keys']());_0x25e5d0['sort']((_0x3b15e8,_0x54c1f1)=>_0x3b15e8-_0x54c1f1),_0x25e5d0['reverse']();for(const _0x3e4ed9 of _0x25e5d0)if(_0x3e4ed9<_0x5db5d9)return _0x3e4ed9;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x4fcfc8,_0x567eb4){const _0x4d979d=Array['from'](_0x567eb4['markers'])['map'](([_0x56f50a,_0x2ff652])=>[_0x56f50a,this['_fixRange'](_0x2ff652,_0x4fcfc8)]);_0x4fcfc8['markers']=new Map(_0x4d979d);}['_transformMarkers'](_0x157aa9){for(const _0x33a8f9 of this['_markers']['values']()){const _0x2fd270=_0x33a8f9['getTransformedByOperation'](_0x157aa9),_0x2ad54f=vt['_createFromRanges'](_0x2fd270);_0x33a8f9['start']=_0x2ad54f['start'],_0x33a8f9['end']=_0x2ad54f['end'];}}['_handleOperation'](_0x401ff1,_0x1e6495){if('addRoot'!=_0x401ff1['type']&&'detachRoot'!=_0x401ff1['type']){if('insert'==_0x401ff1['type']){const _0x373b63=_0x401ff1['position']['root']['rootName'];this['_diffRoots']['has'](_0x373b63)||(this['_diffRoots']['set'](_0x373b63,F(_0x373b63,!0x0)),this['_diffRootsAttributes']['set'](_0x373b63,{}),_0x1e6495&&this['_idsRoots']['set'](_0x373b63,F(_0x373b63,!0x0)));}else{if('addRootAttribute'==_0x401ff1['type']||'removeRootAttribute'==_0x401ff1['type']||'changeRootAttribute'==_0x401ff1['type'])return void this['_handleRootAttributeOperation'](_0x401ff1);'marker'==_0x401ff1['type']&&this['_handleMarkerOperation'](_0x401ff1);}if('marker'!==_0x401ff1['type']){const _0x333adf=this['_cloneOperation'](_0x401ff1,this['_diffRoots']);_0x333adf['_execute'](),this['_transformMarkers'](_0x333adf);}if(_0x1e6495)switch(_0x401ff1['type']){case'insert':this['_handleInsertOperation'](_0x401ff1);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x401ff1);break;case'merge':this['_handleMergeOperation'](_0x401ff1);break;case'split':this['_handleSplitOperation'](_0x401ff1);}}else this['_handleRootOperation'](_0x401ff1,_0x1e6495);}['_cloneOperation'](_0x4c9e8a,_0x2d1cc2){const _0x249591=_0x4c9e8a['clone']();return _0x249591['_authorId']=_0x4c9e8a['_authorId'],this['_fixOperation'](_0x249591,_0x2d1cc2),_0x249591;}['_getBaseVids'](_0x1d416c){return _0x1d416c['map'](_0x2ee70f=>{const _0x36a1b3=this['_getVidAttributeName'](_0x2ee70f);return Number(_0x2ee70f['item']['getAttribute'](_0x36a1b3));});}['_generateTape'](_0x4f859d,_0x3bf37f){if(_0x4f859d['is']('element','$text'))_0x3bf37f['push']({'item':_0x4f859d,'type':'text'});else{_0x4f859d['is']('element')&&_0x3bf37f['push']({'item':_0x4f859d,'type':'elementStart'});for(const _0x232cbf of _0x4f859d['getChildren']())this['_generateTape'](_0x232cbf,_0x3bf37f);_0x4f859d['is']('element')&&_0x3bf37f['push']({'item':_0x4f859d,'type':'elementEnd'});}return _0x3bf37f;}['_getState'](){const _0x45da1f=new Map(this['_touched']),_0x52c207=new Map(_0x45da1f),_0x4d8f46=new Map(),_0x7fa734={'insertions':{},'deletions':{}},_0x28a3dc={'insertions':{},'deletions':{}},_0x17783f=new Map(),_0x189612=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x189612['delete']('$graveyard');for(const _0x3da68a of _0x189612){const _0x5f202d=this['_diffRoots']['get'](_0x3da68a)||F(_0x3da68a,!0x1),_0x31304b=this['_baseRoots']['get'](_0x3da68a)||F(_0x3da68a,!0x1);_0x5f202d['isAttached']()||_0x31304b['isAttached']()?(_0x7fa734['insertions'][_0x3da68a]=T(_0x5f202d),_0x7fa734['deletions'][_0x3da68a]=T(_0x31304b),this['_copyMarkers'](_0x7fa734['deletions'][_0x3da68a],_0x31304b),this['_copyMarkers'](_0x7fa734['insertions'][_0x3da68a],_0x5f202d),_0x28a3dc['insertions'][_0x3da68a]=this['_generateTape'](this['_idsRoots']['get'](_0x3da68a),[]),_0x28a3dc['deletions'][_0x3da68a]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x3da68a)||F(_0x3da68a,!0x1),[])):_0x189612['delete'](_0x3da68a);}for(const _0x43a5cd of _0x189612){const _0x4a7aba=_0x28a3dc['insertions'][_0x43a5cd];for(const _0x4b1c47 of _0x4a7aba){const _0x3504e2=this['_getVidAttributeName'](_0x4b1c47),_0x2425aa=_0x4b1c47['item']['getAttribute'](_0x3504e2);_0x52c207['delete'](_0x2425aa),_0x2425aa>=this['_startingRevisionId']&&_0x4d8f46['set'](_0x2425aa,_0x45da1f['get'](_0x2425aa));}}for(const _0x1dbbf5 of _0x189612){const _0x282ce6=_0x28a3dc['insertions'][_0x1dbbf5],_0x2a510b=this['_getBaseVids'](_0x28a3dc['deletions'][_0x1dbbf5]);let _0x4c6b54=0x0;for(const _0x438fb4 of _0x282ce6){const _0xad4db1=this['_getVidAttributeName'](_0x438fb4),_0x2ce4fa=_0x438fb4['item']['getAttribute'](_0xad4db1);if(!_0x4d8f46['has'](_0x2ce4fa)&&!_0x17783f['has'](_0x2ce4fa)){if(_0x52c207['has'](_0x2ce4fa))_0x4c6b54++;else{if(_0x2ce4fa!=_0x2a510b[_0x4c6b54]){const _0x3ae6ac=_0x45da1f['get'](_0x2ce4fa)||_0x45da1f['get'](_0x2a510b[_0x4c6b54]);for(;_0x2ce4fa!=_0x2a510b[_0x4c6b54];)_0x52c207['has'](_0x2a510b[_0x4c6b54])||(_0x17783f['set'](_0x2a510b[_0x4c6b54],_0x3ae6ac),_0x45da1f['set'](_0x2a510b[_0x4c6b54],_0x3ae6ac)),_0x4c6b54++;}_0x4c6b54++;}}}}for(const _0x8de744 of _0x189612){const _0x4372a5=_0x28a3dc['insertions'][_0x8de744];for(const _0x4738f5 of _0x4372a5){const _0x139b85=this['_getVidAttributeName'](_0x4738f5),_0x8fa96e=_0x4738f5['item']['getAttribute'](_0x139b85);if(_0x17783f['has'](_0x8fa96e)){const _0x188f27=_0x17783f['get'](_0x8fa96e);_0x52c207['has'](_0x8fa96e)||_0x52c207['set'](_0x8fa96e,{..._0x188f27}),_0x4d8f46['set'](_0x8fa96e,{..._0x188f27});}}}for(const _0x5d4f8d of _0x52c207['keys']())_0x5d4f8d>=this['_startingRevisionId']&&_0x52c207['delete'](_0x5d4f8d);const _0x2fc5a1=new Map();for(const _0x24d522 of _0x189612){let _0x1e4cba=_0x28a3dc['insertions'][_0x24d522];for(const _0x241fab of _0x1e4cba)if(_0x241fab['item']['is']('element','tableCell')){const _0x3d2353=this['_getVidAttributeName'](_0x241fab),_0x149826=_0x241fab['item']['getAttribute'](_0x3d2353);if(_0x4d8f46['has'](_0x149826)){const _0x3dc7b3=_0x241fab['item']['parent']['parent']['getAttribute']('vid_start'),_0x1248dd=_0x2fc5a1['get'](_0x3dc7b3)||new Set();_0x1248dd['add'](_0x4d8f46['get'](_0x149826)['userId']),_0x2fc5a1['set'](_0x3dc7b3,_0x1248dd);}}_0x1e4cba=_0x28a3dc['deletions'][_0x24d522];for(const _0x4ef7d1 of _0x1e4cba)if(_0x4ef7d1['item']['is']('element','tableCell')){const _0x23bc38=this['_getVidAttributeName'](_0x4ef7d1),_0x1268a2=_0x4ef7d1['item']['getAttribute'](_0x23bc38);if(_0x52c207['has'](_0x1268a2)){const _0x49a0eb=_0x4ef7d1['item']['parent']['parent']['getAttribute']('vid_start'),_0x45bf40=_0x2fc5a1['get'](_0x49a0eb)||new Set();_0x45bf40['add'](_0x52c207['get'](_0x1268a2)['userId']),_0x2fc5a1['set'](_0x49a0eb,_0x45bf40);}}for(const _0x8c45be of _0x2fc5a1['keys']())(_0x4d8f46['has'](_0x8c45be)||_0x52c207['has'](_0x8c45be))&&_0x2fc5a1['delete'](_0x8c45be);}for(const _0x2e8163 of _0x189612){const _0x2d8b13=_0x28a3dc['insertions'][_0x2e8163];let _0x4ca4d=null,_0x6efc80=null;for(const _0x2eb222 of _0x2d8b13){const _0x469522=this['_getVidAttributeName'](_0x2eb222),_0x25fd11=_0x2eb222['item']['getAttribute'](_0x469522),_0x5c260a=_0x2fc5a1['get'](_0x25fd11);_0x5c260a&&'elementStart'==_0x2eb222['type']&&(_0x4ca4d=Array['from'](_0x5c260a)[0x0],_0x6efc80=_0x2eb222['item']['getAttribute']('vid_end')),_0x4ca4d&&(_0x52c207['set'](_0x25fd11,{'userId':_0x4ca4d}),_0x4d8f46['set'](_0x25fd11,{'userId':_0x4ca4d})),_0x25fd11==_0x6efc80&&(_0x4ca4d=null,_0x6efc80=null);}}const _0x33481e={},_0x336002=new Set();for(const _0x44b869 of _0x189612){const _0x40f0bc=_0x7fa734['deletions'][_0x44b869],_0x280091=_0x7fa734['insertions'][_0x44b869];for(const {userId:_0x3a7173}of this['_touchedMarkers']['values']())null!==_0x3a7173&&_0x336002['add'](_0x3a7173);for(const {userId:_0x2cb4c8}of this['_touchedRoots']['values']())null!==_0x2cb4c8&&_0x336002['add'](_0x2cb4c8);this['_markChanges'](_0x280091,_0x28a3dc['insertions'][_0x44b869],_0x4d8f46,'insertion',_0x336002),this['_markChanges'](_0x40f0bc,_0x28a3dc['deletions'][_0x44b869],_0x52c207,'deletion',_0x336002),_0x33481e[_0x44b869]={'insertions':this['_prepareViewToSave'](_0x280091),'deletions':this['_prepareViewToSave'](_0x40f0bc),'attachChange':this['_touchedRoots']['get'](_0x44b869)||null,'attributesBefore':_0x5035cd(this['_baseRootsAttributes']['get'](_0x44b869))||{},'attributesAfter':_0x5035cd(this['_diffRootsAttributes']['get'](_0x44b869))};}return{'diffData':_0x33481e,'authorsIds':Array['from'](_0x336002)};}['_processRootBeforeSave'](_0x31b472){for(const [,_0x4fb006]of _0x31b472['markers']){const _0xed48ec=_0x4fb006['start']['getAncestors']()['filter'](_0x2a1fc=>'tableCell'==_0x2a1fc['name']);for(const _0x1cc29d of _0xed48ec)0x1==_0x1cc29d['childCount']&&_0x1cc29d['getChild'](0x0)['is']('element','paragraph')&&_0x1cc29d['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x278c83){this['_processRootBeforeSave'](_0x278c83);const _0xa7b9fb=this['editor']['data']['toView'](_0x278c83,{}),_0x5f2d55=Array['from'](_0xa7b9fb['getChildren']())['map'](_0x6317=>this['_getViewJson'](_0x6317));return JSON['stringify'](_0x5f2d55);}['_getViewJson'](_0x48510d){if(_0x48510d['is']('$text'))return _0x48510d['data'];{const _0x14d2b7=_0x48510d;return{'type':Object['keys'](P)['find'](_0x2b4b3d=>_0x48510d instanceof P[_0x2b4b3d]),'name':_0x14d2b7['name'],'attributes':Array['from'](_0x14d2b7['getAttributes']()),'children':Array['from'](_0x14d2b7['getChildren']())['map'](_0x44e98e=>this['_getViewJson'](_0x44e98e))};}}['_markChanges'](_0x201946,_0x377680,_0x822ace,_0x2d1197,_0x4441bb){let _0x4bd91b=null,_0x446630=null,_0x4cd45d=0x0;const _0x521264=this['editor']['model'];for(let _0x4bb0c2=0x0;_0x4bb0c2<_0x377680['length'];_0x4bb0c2++){const _0x51df33=this['_getVidAttributeName'](_0x377680[_0x4bb0c2]),_0x3599da=_0x377680[_0x4bb0c2]['item']['getAttribute'](_0x51df33),_0x1cd292=_0x822ace['get'](_0x3599da),_0x38a05e=_0x4bb0c2==_0x377680['length']-0x1;(!_0x4bd91b&&_0x1cd292&&(_0x4bd91b=_0x1cd292,_0x446630=_0x377680[_0x4bb0c2]),_0x4bd91b&&(!_0x1cd292||_0x1cd292['userId']!=_0x4bd91b['userId']))&&(_0x57e853(_0x1cd292,B(_0x446630,_0x201946,_0x521264),B(_0x377680[_0x4bb0c2],_0x201946,_0x521264)),_0x4bd91b=_0x1cd292||null,_0x446630=_0x1cd292?_0x377680[_0x4bb0c2]:null),_0x4bd91b&&_0x38a05e&&_0x57e853(_0x1cd292,B(_0x446630,_0x201946,_0x521264),J(_0x377680[_0x4bb0c2],_0x201946,_0x521264));}function _0x57e853(_0x1e5001,_0x1eff5d,_0x2b32f0){const _0x430099=_0x4bd91b['userId'],_0x278cb6='revision:'+_0x2d1197+':'+_0x430099+':'+_0x4cd45d++,_0x1d1bc2=_0x521264['createRange'](_0x1eff5d,_0x2b32f0);_0x201946['markers']['set'](_0x278cb6,_0x1d1bc2),null!==_0x430099&&_0x4441bb['add'](_0x430099);}}['_getVidAttributeName'](_0x41d982){switch(_0x41d982['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x2986b7,_0x4abe8e){_0x2986b7['baseVersion']=null;for(const _0x6c115e in _0x2986b7){const _0xdc870f=_0x2986b7[_0x6c115e];if(_0xdc870f instanceof gt){const _0x220cef=_0x4abe8e['get'](_0xdc870f['root']['rootName']);_0x2986b7[_0x6c115e]=this['_fixPosition'](_0xdc870f,_0x220cef);}if(_0xdc870f instanceof vt){const _0x4e3f1d=_0x4abe8e['get'](_0xdc870f['root']['rootName']);_0x2986b7[_0x6c115e]=this['_fixRange'](_0xdc870f,_0x4e3f1d);}'root'===_0x6c115e&&(_0x2986b7['root']=_0x4abe8e['get'](_0x2986b7['root']['rootName']));}}['_fixRange'](_0x5c1a4b,_0x177d5a){return this['editor']['model']['createRange'](this['_fixPosition'](_0x5c1a4b['start'],_0x177d5a),this['_fixPosition'](_0x5c1a4b['end'],_0x177d5a));}['_fixPosition'](_0x1f55f8,_0xd4d4c7){return this['editor']['model']['createPositionFromPath'](_0xd4d4c7,_0x1f55f8['path'],_0x1f55f8['stickiness']);}['_handleInsertOperation'](_0x2d2b7e){const _0x551e9d=this['_idsRoots']['get'](_0x2d2b7e['position']['root']['rootName']),_0x433049=this['_fixPosition'](_0x2d2b7e['position'],_0x551e9d),_0x5f1a98=null===_0x2d2b7e['_authorId']?null:_0x2d2b7e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x18211c=_0x433049['parent'],_0x459bc6=this['_revisionId'],_0x345ff0=[];for(const _0x494d3b of _0x2d2b7e['nodes'])if(_0x494d3b['is']('element'))_0x345ff0['push'](this['_makeIdsRoot'](_0x494d3b));else{for(let _0x2e5939=0x0;_0x2e5939<_0x494d3b['offsetSize'];_0x2e5939++)_0x345ff0['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x4e53aa=this['_revisionId'];for(let _0x1e9499=_0x459bc6;_0x1e9499<_0x4e53aa;_0x1e9499++)this['_touched']['set'](_0x1e9499,{'userId':_0x5f1a98});_0x18211c['_insertChild'](_0x433049['offset'],_0x345ff0);}['_handleMoveOperation'](_0xaa23b7){(_0xaa23b7=this['_cloneOperation'](_0xaa23b7,this['_idsRoots']))['_execute']();const _0x30268d=null===_0xaa23b7['_authorId']?null:_0xaa23b7['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x24d2f4=_0xaa23b7['getMovedRangeStart'](),_0x381682=_0x24d2f4['parent'],_0x459ff9=_0x24d2f4['offset'];!function _0x344f5e(_0x5f3e72,_0xef196d,_0x284050,_0x42217c){for(let _0x32b041=_0x284050;_0x32b041<_0x42217c;_0x32b041++){const _0x502326=_0xef196d['getChild'](_0x32b041);_0x502326['is']('element','$text')?_0x5f3e72['set'](_0x502326['getAttribute']('vid'),{'userId':_0x30268d}):(_0x5f3e72['set'](_0x502326['getAttribute']('vid_start'),{'userId':_0x30268d}),_0x344f5e(_0x5f3e72,_0x502326,0x0,_0x502326['childCount']),_0x5f3e72['set'](_0x502326['getAttribute']('vid_end'),{'userId':_0x30268d}));}}(this['_touched'],_0x381682,_0x459ff9,_0x459ff9+_0xaa23b7['howMany']);}['_handleMergeOperation'](_0x196492){const _0x5bdcbb=null===(_0x196492=this['_cloneOperation'](_0x196492,this['_idsRoots']))['_authorId']?null:_0x196492['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x52bede=_0x196492['targetPosition']['parent'],_0x47bda6=_0x196492['sourcePosition']['parent'],_0x275c25=_0x52bede['getAttribute']('vid_end'),_0x57109b=_0x47bda6['getAttribute']('vid_start');_0x52bede['_setAttribute']('vid_end',_0x47bda6['getAttribute']('vid_end')),_0x47bda6['_setAttribute']('vid_end',_0x275c25),this['_touched']['set'](_0x57109b,{'userId':_0x5bdcbb}),this['_touched']['set'](_0x275c25,{'userId':_0x5bdcbb}),_0x196492['_execute']();}['_handleSplitOperation'](_0x249049){const _0x2706e8=null===(_0x249049=this['_cloneOperation'](_0x249049,this['_idsRoots']))['_authorId']?null:_0x249049['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4d2ad1=_0x249049['graveyardPosition'],_0x19f68f=_0x249049['splitPosition']['parent'];_0x249049['_execute']();const _0x5ee5ae=_0x19f68f['getAttribute']('vid_end'),_0x3ed553=_0x249049['insertionPosition']['nodeAfter'];if(_0x4d2ad1){const _0x2cd49f=_0x3ed553['getAttribute']('vid_end'),_0xe92b4a=_0x19f68f['getAttribute']('vid_end');_0x19f68f['_setAttribute']('vid_end',_0x2cd49f),_0x3ed553['_setAttribute']('vid_end',_0xe92b4a),this['_touched']['set'](_0x19f68f['getAttribute']('vid_end'),{'userId':_0x2706e8}),this['_touched']['set'](_0x3ed553['getAttribute']('vid_start'),{'userId':_0x2706e8});}else{const _0x54a6f0=this['_revisionId']++,_0x3bbfa8=this['_revisionId']++;_0x19f68f['_setAttribute']('vid_end',_0x54a6f0),_0x3ed553['_setAttribute']('vid_start',_0x3bbfa8),_0x3ed553['_setAttribute']('vid_end',_0x5ee5ae),this['_touched']['set'](_0x54a6f0,{'userId':_0x2706e8}),this['_touched']['set'](_0x3bbfa8,{'userId':_0x2706e8});}}['_handleMarkerOperation'](_0x22fa88){if(!_0x22fa88['affectsData'])return;const _0x3e85f1=(_0x22fa88=this['_cloneOperation'](_0x22fa88,this['_diffRoots']))['oldRange']?_0x22fa88['oldRange']['root']:null,_0x1f71dc=_0x22fa88['newRange']?_0x22fa88['newRange']['root']:null;_0x3e85f1&&this['_markers']['delete'](_0x22fa88['name']),_0x1f71dc&&this['_markers']['set'](_0x22fa88['name'],_0x22fa88['newRange']['clone']());const _0x55e6dd=null===_0x22fa88['_authorId']?null:_0x22fa88['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x54fe09=_0x22fa88['name'];if(!this['_touchedMarkers']['has'](_0x54fe09))return void this['_touchedMarkers']['set'](_0x54fe09,{'range':_0x22fa88['oldRange'],'userId':_0x55e6dd});const _0x3acca7=this['_touchedMarkers']['get'](_0x54fe09),_0x17d106=_0x3acca7['range'],_0x4500b5=_0x22fa88['newRange'];null==_0x17d106&&null==_0x4500b5||_0x17d106&&_0x4500b5&&_0x17d106['isEqual'](_0x4500b5)?this['_touchedMarkers']['delete'](_0x22fa88['name']):_0x3acca7['userId']=_0x55e6dd;}['_handleRootOperation'](_0x7657d3,_0xa183cb){this['_diffRoots']['has'](_0x7657d3['rootName'])?this['_diffRoots']['get'](_0x7657d3['rootName'])['_isAttached']=_0x7657d3['isAdd']:(this['_diffRoots']['set'](_0x7657d3['rootName'],F(_0x7657d3['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x7657d3['rootName'],{}),_0xa183cb&&this['_idsRoots']['set'](_0x7657d3['rootName'],F(_0x7657d3['rootName'],!0x0)));const _0x2f3287=null===_0x7657d3['_authorId']?null:_0x7657d3['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4565ad=this['_touchedRoots']['get'](_0x7657d3['rootName']);_0x4565ad&&_0x4565ad['userId']===_0x2f3287?this['_touchedRoots']['delete'](_0x7657d3['rootName']):this['_touchedRoots']['set'](_0x7657d3['rootName'],{'userId':_0x2f3287,'isAttached':_0x7657d3['isAdd']});}['_handleRootAttributeOperation'](_0x321416){const _0x55d412=this['_diffRootsAttributes']['get'](_0x321416['root']['rootName']);null===_0x321416['newValue']?delete _0x55d412[_0x321416['key']]:_0x55d412[_0x321416['key']]=_0x321416['newValue'];}}function T(_0x5daa3b){const _0x1d631e=F(_0x5daa3b['rootName'],_0x5daa3b['isAttached']());for(const _0x2d55e7 of _0x5daa3b['getChildren']()){const _0x1887a0=_0x2d55e7['_clone'](!0x0);_0x1d631e['_appendChild'](_0x1887a0);}return _0x1d631e;}function F(_0x20d74f,_0x8e1634=!0x0){const _0x48f476=new mt();return _0x48f476['rootName']=_0x20d74f,_0x48f476['_isAttached']=_0x8e1634,_0x48f476['isAttached']=()=>_0x48f476['_isAttached'],_0x48f476;}function B(_0x403aa1,_0x507539,_0x162ce4){const _0x3bfddf='elementEnd'==_0x403aa1['type']?_0x162ce4['createPositionAt'](_0x403aa1['item'],'end'):_0x162ce4['createPositionBefore'](_0x403aa1['item']);return _0x162ce4['createPositionFromPath'](_0x507539,_0x3bfddf['path'],_0x3bfddf['stickiness']);}function J(_0x4d8414,_0x22467c,_0x499930){const _0x2807ad='elementStart'==_0x4d8414['type']?_0x499930['createPositionAt'](_0x4d8414['item'],0x0):_0x499930['createPositionAfter'](_0x4d8414['item']);return _0x499930['createPositionFromPath'](_0x22467c,_0x2807ad['path'],_0x2807ad['stickiness']);}class ns extends _0x4aaa2b{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x2e5309,_0x391832){super(_0x2e5309),this['focusTracker']=new _0x42422a(),this['keystrokes']=new _0x4e13fb(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x391832),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),ts(this);}['render'](){super['render'](),_0x29fc1f({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x3a08a1=_0x245bc5=>_0x245bc5['stopPropagation']();this['keystrokes']['set']('arrowright',_0x3a08a1),this['keystrokes']['set']('arrowleft',_0x3a08a1),this['keystrokes']['set']('arrowup',_0x3a08a1),this['keystrokes']['set']('arrowdown',_0x3a08a1);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x457362){this['revisionNameInputView']['fieldView']['element']['value']=_0x457362['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x434da2){const _0x18a381=new nt(this['locale'],_0x2b21b7),_0x2d0086=_0x18a381['fieldView'];_0x2d0086['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x5a6abe=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x434da2&&(_0x5a6abe+='\x20('+m(this['locale'],'optional')+')'),(_0x18a381['label']=_0x5a6abe,_0x2d0086['on']('input',()=>{this['revisionNameInputValue']=_0x2d0086['element']['value']['trim']();}),_0x18a381);}}class u extends _0x26a73c{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x3c151d=this['editor'],_0x1f02dd=_0x3c151d['plugins']['get']('RevisionTracker');_0x3c151d['ui']['componentFactory']['add']('revisionHistory',_0x35717f=>{const _0x362d5b=_0x298fc1(_0x35717f),_0x15935e=_0x362d5b['panelView']['children'],_0x4edec6=new te(_0x35717f),_0x4a366c=new _0x33ed46(_0x35717f),_0x45ea2d=new _0x4f5614(_0x35717f),_0x23a15c=new _0x33ed46(_0x35717f),_0x158b38=new _0x4f5614(_0x35717f);return _0x362d5b['bind']('isEnabled')['to'](_0x1f02dd,'isReady',_0x1f02dd,'isEnabled',_0x3c151d,'isReadOnly',(_0x36fc12,_0x41166c,_0x855927)=>_0x36fc12&&_0x41166c&&!_0x855927),_0x362d5b['buttonView']['set']({'icon':_0x3937f1['history'],'label':m(_0x35717f,'Revision\x20history'),'tooltip':!0x0}),_0x45ea2d['set']({'label':m(_0x35717f,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x45ea2d['bind']('isEnabled')['to'](_0x1f02dd,'isReady',_0x1f02dd,'isEnabled',_0x3c151d,'isReadOnly',(_0x35c7f5,_0x2eab06,_0x514c34)=>_0x35c7f5&&_0x2eab06&&!_0x514c34),_0x45ea2d['on']('execute',()=>this['_showDialog']()),_0x158b38['set']({'label':m(_0x35717f,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x158b38['bind']('isEnabled')['to'](_0x1f02dd,'isReady',_0x3c151d,'isReadOnly',(_0x1ad059,_0x527bf0)=>_0x1ad059&&!_0x527bf0),_0x158b38['on']('execute',()=>{_0x3c151d['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x362d5b['isOpen']=!0x1,_0x3c151d['editing']['view']['focus']();}),_0x4a366c['children']['add'](_0x45ea2d),_0x23a15c['children']['add'](_0x158b38),_0x4edec6['role']='menu',_0x4edec6['items']['addMany']([_0x4a366c,_0x23a15c]),_0x15935e['add'](_0x4edec6),_0x362d5b;}),_0x3c151d['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x5816e8=this['editor'],_0x294cee=_0x5816e8['locale'],_0x188ac3=new _0xb366d7(_0x294cee),_0x3ee2af=new _0x2d1c14(_0x294cee);_0x188ac3['buttonView']['set']({'icon':_0x3937f1['history'],'label':m(_0x294cee,'Revision\x20history')});const _0x5b80ac=new _0x16248e(_0x294cee,_0x188ac3),_0x329f7a=new _0x145511(_0x294cee);_0x329f7a['set']({'label':m(_0x294cee,'Save\x20current\x20revision')}),_0x329f7a['delegate']('execute')['to'](_0x188ac3),_0x329f7a['on']('execute',()=>{this['_showDialog']();}),_0x5b80ac['children']['add'](_0x329f7a),_0x3ee2af['items']['add'](_0x5b80ac);const _0x40d541=new _0x16248e(_0x294cee,_0x188ac3),_0x459990=new _0x145511(_0x294cee);return _0x459990['set']({'label':m(_0x294cee,'Open\x20revision\x20history')}),_0x459990['delegate']('execute')['to'](_0x188ac3),_0x459990['on']('execute',()=>{_0x5816e8['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x40d541['children']['add'](_0x459990),_0x3ee2af['items']['add'](_0x40d541),_0x188ac3['panelView']['children']['add'](_0x3ee2af),_0x188ac3;}['_showDialog'](){const _0x1652b9=this['editor'],_0x33b362=_0x1652b9['locale'],_0x405b43=_0x1652b9['plugins']['get']('Dialog'),_0x52ea33=_0x1652b9['plugins']['get']('RevisionTracker');function _0x575a46(_0x2cf4d7){_0x1652b9['config']['get']('revisionHistory.requireRevisionName')&&''===_0x2cf4d7['revisionName']?_0x2cf4d7['revisionNameInputView']['errorText']=m(_0x33b362,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x1652b9['plugins']['get'](l)['saveRevision']({'name':_0x2cf4d7['revisionName']}),_0x405b43['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x575a46(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x405b43['show']({'id':'revisionSave','title':m(_0x33b362,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x1652b9['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x405b43['hide']()},{'label':m(_0x1652b9['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x5a774a){_0x5a774a['bind']('isEnabled')['to'](_0x52ea33,'isReady',_0x52ea33,'isEnabled',_0x1652b9,'isReadOnly',(_0x4c26be,_0x3d43f3,_0x5b7ce0)=>_0x4c26be&&_0x3d43f3&&!_0x5b7ce0);},'onExecute':()=>_0x575a46(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x5d108c=this['editor'],_0x40686b=_0x5d108c['locale'];this['_saveRevisionFormView']=new ns(_0x40686b,_0x5d108c['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0x4aaa2b{['changeId'];['_model'];constructor(_0x3b8ca9,_0x5562a0){super(_0x3b8ca9),this['_model']=_0x5562a0,this['changeId']=_0x5562a0['id'];const _0x21a0c4=this['bindTemplate'],_0x15c743=m(_0x3b8ca9,_0x5562a0['data']['isSuggestion']?'Suggested\x20by':'add'==_0x5562a0['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x5562a0['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x21a0c4['to']('type',_0x596447=>'ck-revision-change__'+_0x596447)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x15c743}]},{'text':'\x20'+_0x5562a0['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x4a7a66(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x4ba7f4){super(),this['id']=_0x4ba7f4['id']||_0x47f5e5(),this['author']=_0x4ba7f4['author'],this['type']=_0x4ba7f4['type'],this['data']=_0x4ba7f4['data']||{},this['rootName']=_0x4ba7f4['rootName'],this['set']('createdAt',_0x4ba7f4['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class f{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x4fc4ae,_0x3365aa){this['newRevisionId']=_0x4fc4ae,this['oldRevisionId']=_0x3365aa,this['changes']=new _0x416362();}['_setChanges'](_0x2e712a){for(const _0x1d7b7b of _0x2e712a)this['changes']['add'](_0x1d7b7b);}}const Y={'c':_0x2833cc,'a':_0xa1158c,'e':_0x448a9b,'r':_0x2aad15,'u':_0x2d717c};class d extends _0x26a73c{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x21aeb9,_0x3e281e,j];}constructor(_0x1b2b0e){super(_0x1b2b0e),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x2a3f25,_0x5403e1,_0x1fe69a)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x512590=>{for(const _0x5160f4 of this['editor']['editing']['view']['document']['roots'])_0x1fe69a?_0x512590['removeClass']('ck-editor__editable__overlay',_0x5160f4):_0x512590['addClass']('ck-editor__editable__overlay',_0x5160f4);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x54a2fb=>null!==_0x54a2fb),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x57ed04,_0x53a167,_0x3c13ef)=>_0x57ed04&&_0x3c13ef?_0x53a167['changes']['getIndex'](_0x3c13ef):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x5c0831,_0x485856)=>_0x5c0831?_0x485856['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x3e281e);}['init'](){const _0x252374=this['editor'],_0x349f44=new yt(_0x252374,{'direction':'backward'}),_0x41b6e2=new yt(_0x252374,{'direction':'forward'});(_0x252374['commands']['add']('showPreviousChange',_0x349f44),_0x252374['commands']['add']('showNextChange',_0x41b6e2),_0x252374['commands']['add']('restoreRevision',new _t(_0x252374)),this['on']('change:numberOfChanges',()=>{_0x349f44['refresh'](),_0x41b6e2['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x252374['enableReadOnlyMode']('revision-viewer'),_0x252374['plugins']['has']('WidgetToolbarRepository'))&&_0x252374['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x557095){await this['loadRevisionData'](_0x557095);const _0x1933ff={};for(const _0x3adccf in _0x557095['diffData']){if(_0x557095['diffData'][_0x3adccf]['attachChange']&&!_0x557095['diffData'][_0x3adccf]['attachChange']['isAttached'])continue;const _0x422e27=this['_removeRevisionMarkers'](JSON['parse'](_0x557095['diffData'][_0x3adccf]['insertions'])),_0x18b01a=this['editor']['editing']['view']['document'],_0x200686=new _0x526c1d(_0x18b01a,_0x422e27['map'](_0x420717=>this['_getViewObj'](_0x420717)));this['editor']['data']['processor']['useFillerType']('marked'),_0x1933ff[_0x3adccf]=this['editor']['data']['processor']['toData'](_0x200686),this['editor']['data']['processor']['useFillerType']('default');}return _0x1933ff;}async['getRevisionRootsAttributes'](_0x1d8bb0){await this['loadRevisionData'](_0x1d8bb0);const _0x3e9bb2={};for(const _0x505893 in _0x1d8bb0['diffData'])_0x1d8bb0['diffData'][_0x505893]['attachChange']&&!_0x1d8bb0['diffData'][_0x505893]['attachChange']['isAttached']||(_0x3e9bb2[_0x505893]=_0x1d8bb0['diffData'][_0x505893]['attributesAfter']||{});return _0x3e9bb2;}['_removeRevisionMarkers'](_0x302244){return(_0x302244=_0x302244['filter'](_0x263e79=>!_0x263e79['name']||'revision-start'!==_0x263e79['name']&&'revision-end'!==_0x263e79['name']))['forEach'](_0x3454c6=>{'string'!=typeof _0x3454c6&&(_0x3454c6['children']=this['_removeRevisionMarkers'](_0x3454c6['children']),_0x3454c6['attributes']=_0x3454c6['attributes']['filter'](_0x3b486d=>!_0x3b486d[0x0]['startsWith']('data-revision-')));}),_0x302244;}async['compare'](_0x1c1291,_0x585eac,_0x56bbae=!0x1){if(!this['isEnabled'])return;const _0x7441de=this['diff'],_0x270d0b=this['repository'],_0x5c5abf='string'==typeof _0x1c1291?_0x270d0b['getRevision'](_0x1c1291):_0x1c1291,_0x28bf73='string'==typeof _0x585eac?_0x270d0b['getRevision'](_0x585eac):_0x585eac,_0x18b0f9=_0x5c5abf['id'],_0x56da12=_0x28bf73?_0x28bf73['id']:null;if(!_0x56bbae&&this['diff']&&this['diff']['newRevisionId']===_0x18b0f9&&this['diff']['oldRevisionId']===_0x56da12)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x18b0f9,_0x56da12);const _0x3eefe1=this['_getRevisionsRange'](_0x5c5abf,_0x28bf73,!0x0)['map'](_0x55d58a=>this['loadRevisionData'](_0x55d58a));return _0x3eefe1['push'](new Promise(_0x3e90da=>{setTimeout(_0x3e90da,0x14);})),Promise['all'](_0x3eefe1)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x590434=this['_getDiff'](_0x18b0f9,_0x56da12);for(const _0x264d3a of _0x590434['changes'])this['_changeIdToChange']['set'](_0x264d3a['id'],_0x264d3a);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x22465c=>{for(const _0x15ea40 of this['editor']['model']['document']['getRootNames']())_0x22465c['detachRoot'](_0x15ea40);for(const _0x2f3795 of Object['keys'](_0x590434['model'])){const _0x387f9d=_0x22465c['addRoot'](_0x2f3795);for(const _0x2b020a of Object['keys'](_0x590434['attributes'][_0x2f3795]))_0x22465c['setAttribute'](_0x2b020a,_0x590434['attributes'][_0x2f3795][_0x2b020a],_0x387f9d);_0x22465c['insert'](_0x590434['model'][_0x2f3795],_0x387f9d,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x590434['changes'])),this['isReady']=!0x0;})['catch'](_0x29cc7d=>{console['error'](_0x29cc7d),this['_cleanUp'](),_0x7441de&&(this['diff']=_0x7441de),this['isReady']=!0x0;});}['addRevisionData'](_0x519196,_0x465617){const _0x3eced5=this['repository']['createRevision'](_0x519196);return _0x3eced5['on']('_update',(_0x31aefb,_0x43a662,_0x3ef09b)=>_0x465617(_0x43a662,_0x3ef09b,_0x3eced5)),this['repository']['addRevision'](_0x3eced5),_0x3eced5;}['loadRevisionData'](_0x56b448){if(!_0x56b448||_0x56b448['diffData'])return Promise['resolve']();{const _0x2c66c7=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x2c66c7,'revisionId':_0x56b448['id']})['then'](_0x400a04=>{_0x56b448['_update']({'diffData':_0x400a04['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x2abc0c=>{for(const _0x196771 of this['editor']['model']['document']['getRootNames']())_0x2abc0c['detachRoot'](_0x196771);});}['_sortAndFilterDiffChanges'](_0x35f667){const _0x831be0=[],_0x14d067=new Map();for(const _0x550924 of this['editor']['model']['document']['getRootNames']()){const _0x21aee9=this['editor']['editing']['view']['getDomRoot'](_0x550924);if(!_0x21aee9)continue;const _0x25f43a=_0x21aee9['getClientRects']()['item'](0x0);_0x25f43a&&(_0x831be0['push'](_0x550924),_0x14d067['set'](_0x550924,_0x25f43a));}return _0x831be0['sort']((_0x5e3ac1,_0x496d08)=>{const _0x107fe6=_0x14d067['get'](_0x5e3ac1),_0x47ebcc=_0x14d067['get'](_0x496d08);return _0x107fe6['y']-_0x47ebcc['y']||_0x107fe6['x']-_0x47ebcc['x'];}),(_0x35f667=_0x35f667['filter'](_0x47bb57=>_0x831be0['includes'](_0x47bb57['rootName'])))['sort']((_0x5cfc04,_0x53de07)=>_0x831be0['indexOf'](_0x5cfc04['rootName'])-_0x831be0['indexOf'](_0x53de07['rootName'])),_0x35f667;}['_makeTape'](_0xbced30){const _0xc64e53=Array['from'](_0xbced30['markers'])['filter'](([_0xf9659d,_0x500240])=>_0xf9659d['startsWith']('revision:')&&!_0x500240['isCollapsed']),_0x4d71d4=Array['from'](this['editor']['model']['createRangeIn'](_0xbced30)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0xc64e53['length'])for(const _0xb8fcb7 of _0x4d71d4){const [_0x57b870,_0x382523]=_0xc64e53[0x0],[,_0x19ccb1,_0x19be62]=_0x57b870['split'](':');if(_0x382523['end']['isEqual'](_0xb8fcb7['nextPosition'])&&_0xc64e53['shift'](),(_0xb8fcb7['previousPosition']['isEqual'](_0x382523['start'])||_0xb8fcb7['previousPosition']['isAfter'](_0x382523['start']))&&('insertion'==_0x19ccb1?_0xb8fcb7['isAdded']={'userId':_0x19be62}:'deletion'==_0x19ccb1&&(_0xb8fcb7['isRemoved']={'userId':_0x19be62})),0x0==_0xc64e53['length'])break;}return _0x4d71d4;}['_refreshStartEndIndex'](_0x2db55b){const _0x99290e=new Map();for(let _0x15c6a7=0x0;_0x15c6a7<_0x2db55b['length'];_0x15c6a7++)'text'===_0x2db55b[_0x15c6a7]['type']?(_0x2db55b[_0x15c6a7]['item']['startIndex']=_0x15c6a7,_0x2db55b[_0x15c6a7]['item']['endIndex']=_0x15c6a7):('elementStart'===_0x2db55b[_0x15c6a7]['type']?_0x2db55b[_0x15c6a7]['item']['startIndex']=_0x15c6a7:'elementEnd'===_0x2db55b[_0x15c6a7]['type']&&(_0x2db55b[_0x15c6a7]['item']['endIndex']=_0x15c6a7),_0x99290e['set'](_0x2db55b[_0x15c6a7]['id'],_0x15c6a7));for(const _0x17a049 of _0x99290e['values']())'elementStart'===_0x2db55b[_0x17a049]['type']?_0x2db55b[_0x17a049]['item']['endIndex']=_0x99290e['get'](_0x2db55b[_0x17a049]['pairId']):'elementEnd'===_0x2db55b[_0x17a049]['type']&&(_0x2db55b[_0x17a049]['item']['startIndex']=_0x99290e['get'](_0x2db55b[_0x17a049]['pairId']));}['_processTape'](_0x2d16f3){for(let _0x47b672=0x0;_0x47b672<_0x2d16f3['length'];_0x47b672++){if('elementStart'===_0x2d16f3[_0x47b672]['type'])_0x2d16f3[_0x47b672]['item']['startIndex']=_0x47b672;else{if('elementEnd'===_0x2d16f3[_0x47b672]['type']){_0x2d16f3[_0x47b672]['item']['endIndex']=_0x47b672;const _0x33ed91=_0x2d16f3[_0x47b672]['item']['startIndex'];_0x2d16f3[_0x33ed91]['pairId']=_0x2d16f3[_0x47b672]['id'],_0x2d16f3[_0x47b672]['pairId']=_0x2d16f3[_0x33ed91]['id'];}else _0x2d16f3[_0x47b672]['item']['startIndex']=_0x47b672,_0x2d16f3[_0x47b672]['item']['endIndex']=_0x47b672,_0x2d16f3[_0x47b672]['pairId']=null;}_0x2d16f3[_0x47b672]['markersStart']||(_0x2d16f3[_0x47b672]['markersStart']=[],_0x2d16f3[_0x47b672]['markersEnd']=[]);}}['_markInsertions'](_0x19415a,_0x4d5d93){const _0x5b2b52=_0x19415a['filter'](_0x95366a=>!_0x95366a['isAdded']);for(let _0x188237=0x0;_0x188237<_0x4d5d93['length'];_0x188237++)_0x4d5d93[_0x188237]['isAdded']&&(_0x5b2b52[_0x188237]['isAdded']=_0x4d5d93[_0x188237]['isAdded']);}['_makeModelFromViewString'](_0x47c2a5){const _0x3ff0c4=JSON['parse'](_0x47c2a5),_0x202670=this['editor']['editing']['view']['document'],_0x43d9bf=new _0x526c1d(_0x202670,_0x3ff0c4['map'](_0x4f1fcd=>this['_getViewObj'](_0x4f1fcd)));return this['editor']['data']['toModel'](_0x43d9bf);}['_getViewObj'](_0x3fbb6a){const _0x1132f1=this['editor']['editing']['view']['document'];if('string'==typeof _0x3fbb6a)return new _0x4d5cb1(_0x1132f1,_0x3fbb6a);{const _0x3605c6=_0x3fbb6a['children']['map'](_0x368d00=>this['_getViewObj'](_0x368d00));return new(Y[_0x3fbb6a['type']]||_0x40b1e7)(_0x1132f1,_0x3fbb6a['name'],_0x3fbb6a['attributes'],_0x3605c6);}}['_getDiff'](_0x44bffd,_0x293ba9=null){const _0x40cf0b=this['repository']['getRevision'](_0x44bffd),_0x1cc7a8=_0x293ba9?this['repository']['getRevision'](_0x293ba9):null,_0x3ce6d6=this['_getRevisionsRange'](_0x40cf0b,_0x1cc7a8),_0x218cba=_0x3ce6d6[_0x3ce6d6['length']-0x1],_0x4cf04a=new Map(),_0x2b0f99={'model':{},'attributes':{},'changes':[]},_0x2d4eec=new Set(),_0x2ea50b=new Map();for(let _0x110eb0=_0x3ce6d6['length']-0x1;_0x110eb0>=0x0;_0x110eb0--){const _0x3e5291=_0x3ce6d6[_0x110eb0];for(const _0x3ddf08 of Object['keys'](_0x3e5291['diffData']))if(_0x3e5291['diffData'][_0x3ddf08]['attachChange']){const _0x5a70de=_0x3e5291['diffData'][_0x3ddf08]['attachChange'];_0x5a70de['isAttached']?(_0x2d4eec['add'](_0x3ddf08),_0x2ea50b['has'](_0x3ddf08)&&_0x2ea50b['get'](_0x3ddf08)['userId']==_0x5a70de['userId']?_0x2ea50b['delete'](_0x3ddf08):_0x2ea50b['set'](_0x3ddf08,_0x5a70de)):_0x2ea50b['has'](_0x3ddf08)?(_0x2d4eec['delete'](_0x3ddf08),_0x2ea50b['delete'](_0x3ddf08)):(_0x2d4eec['add'](_0x3ddf08),_0x2ea50b['set'](_0x3ddf08,_0x5a70de));}else _0x2d4eec['add'](_0x3ddf08);}for(const _0x11ed8b of _0x2d4eec){const _0x3c9590=_0x2ea50b['has'](_0x11ed8b)&&!_0x2ea50b['get'](_0x11ed8b)['isAttached'];let _0x4a2c92=_0x3c9590?_0x3ce6d6['length']-0x1:0x0;const _0x2e9e9a=_0x3c9590?-0x1:0x1;for(;_0x3ce6d6[_0x4a2c92];){const _0x2d3950=_0x3ce6d6[_0x4a2c92];if(_0x2d3950['diffData'][_0x11ed8b]){const _0xcb8e38=_0x3c9590?_0x2d3950['diffData'][_0x11ed8b]['attributesBefore']:_0x2d3950['diffData'][_0x11ed8b]['attributesAfter'];_0x2b0f99['attributes'][_0x11ed8b]=_0xcb8e38?_0x5035cd(_0xcb8e38):{};break;}_0x4a2c92+=_0x2e9e9a;}}for(const _0xd134fb of _0x3ce6d6){_0xd134fb['model']={};for(const _0x375819 of _0xd134fb['authors'])_0x4cf04a['set'](_0x375819['id'],_0x375819);for(const _0xde3413 of _0x2d4eec){const _0x2818b5=_0xd134fb['diffData'][_0xde3413]?_0xd134fb['diffData'][_0xde3413]['insertions']:'[]',_0x1f09b6=_0xd134fb['diffData'][_0xde3413]?_0xd134fb['diffData'][_0xde3413]['deletions']:'[]';_0xd134fb['model'][_0xde3413]={'insertions':this['_makeModelFromViewString'](_0x2818b5),'deletions':this['_makeModelFromViewString'](_0x1f09b6)};}}for(const _0x49156d of _0x2d4eec){let _0x4ad180=null,_0x5da950=0x0;const _0x57e1dc=new Map(Array['from'](_0x40cf0b['model'][_0x49156d]['insertions']['markers'])['filter'](([_0x3d772b])=>!_0x3d772b['startsWith']('revision:')));let _0xe096dc=0x0;for(const _0x619e5c of _0x3ce6d6){const _0x52d5f6=this['_makeTape'](_0x619e5c['model'][_0x49156d]['insertions']);_0x619e5c==_0x40cf0b?(_0x4ad180=_0x52d5f6,_0x5da950=_0x4ad180['length'],_0x4ad180['forEach'](_0x3399f8=>{_0x3399f8['id']=_0xe096dc++;}),this['_processTape'](_0x4ad180)):this['_markInsertions'](_0x4ad180,_0x52d5f6);const _0x1b62ab=_0x4ad180['filter'](_0xcc2e24=>!_0xcc2e24['isAdded'])['map'](_0x5db13c=>_0x5db13c['id']);let _0x1fd29d=0x0;const _0x286ff9=this['_makeTape'](_0x619e5c['model'][_0x49156d]['deletions']);_0x286ff9['forEach'](_0x58140e=>{_0x58140e['isRemoved']?_0x58140e['id']=_0x5da950++:_0x58140e['id']=_0x1b62ab[_0x1fd29d++];}),this['_processTape'](_0x286ff9),this['_setDistance'](_0x4ad180,'isAdded'),this['_setDistance'](_0x286ff9,'isRemoved'),_0x619e5c==_0x40cf0b&&this['_markMarkers'](_0x4ad180,_0x57e1dc),_0x4ad180=this['_joinTapes'](_0x4ad180,_0x286ff9),this['_refreshStartEndIndex'](_0x4ad180),this['_setDistance'](_0x4ad180,'isRemoved');}_0x4ad180=_0x4ad180['filter'](_0xcd47a3=>!(_0xcd47a3['isAdded']&&_0xcd47a3['isRemoved']));const _0x2e3efb=new Map(_0x218cba['model'][_0x49156d]['deletions']['markers']),_0x35dc44=new Set(_0x57e1dc['keys']());for(const _0x4d2b4b of _0x2e3efb['keys']())_0x35dc44['delete'](_0x4d2b4b);this['_markSuggestions'](_0x4ad180,_0x35dc44),this['_fixObsoleteTags'](_0x4ad180),_0x4ad180=this['_removeMissingPairs'](_0x4ad180),_0x4ad180=this['_markMismatchedRemovedTags'](_0x4ad180),_0x4ad180=this['_removeUnsupportedChanges'](_0x4ad180);const {root:_0xdd39,changes:_0x16207d}=this['_makeModelFromTape'](_0x4ad180,_0x4cf04a,_0x49156d);_0x2b0f99['model'][_0x49156d]=_0xdd39;const _0x226632=_0x2ea50b['get'](_0x49156d);if(_0x226632){const _0x33bb79=_0x4cf04a['get'](_0x226632['userId']),_0x137096=new r({'author':_0x33bb79,'type':_0x226632['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x49156d});_0x16207d['unshift'](_0x137096),_0x2b0f99['attributes'][_0x49156d]['revisionHistoryAttachChange']=_0x137096['id'];}_0x2b0f99['changes']=_0x2b0f99['changes']['concat'](_0x16207d);}return _0x2b0f99;}['_markMarkers'](_0x15bd82,_0x31d4c0){for(let _0x1ec90e=0x0;_0x1ec90e<_0x15bd82['length'];_0x1ec90e++)for(const [_0x434ae2,_0x69d1e0]of _0x31d4c0)_0x69d1e0['start']['isEqual'](_0x15bd82[_0x1ec90e]['previousPosition'])&&_0x15bd82[_0x1ec90e]['markersStart']['push'](_0x434ae2),_0x69d1e0['end']['isEqual'](_0x15bd82[_0x1ec90e]['nextPosition'])&&_0x15bd82[_0x1ec90e]['markersEnd']['push'](_0x434ae2);}['_joinTapes'](_0xd13019,_0x250443){let _0x4adc1c=[],_0x585fef=0x0,_0x2e0127=0x0;for(;_0x585fef<_0xd13019['length']||_0x2e0127<_0x250443['length'];){const _0x85c53e=_0xd13019[_0x585fef]||{},_0x22a42b=_0x250443[_0x2e0127]||{};if(_0x85c53e['id']==_0x22a42b['id'])_0x585fef++,_0x2e0127++,_0x4adc1c['push'](_0x85c53e);else{if(_0x22a42b['isRemoved']&&_0x85c53e['isAdded']){const {commonTape:_0x42b52c,iEnd:_0x2f94f4,jEnd:_0x14de9d}=this['_threeWayMerge'](_0xd13019,_0x585fef,_0x250443,_0x2e0127);_0x4adc1c=_0x4adc1c['concat'](_0x42b52c),_0x585fef=_0x2f94f4,_0x2e0127=_0x14de9d;}else _0x22a42b['isRemoved']?(_0x2e0127++,_0x4adc1c['push'](_0x22a42b)):(_0x585fef++,_0x4adc1c['push'](_0x85c53e));}}return _0x4adc1c;}['_markSuggestions'](_0x44ce21,_0x10465f){const _0xab7d19=[];for(let _0x4191b6=0x0;_0x4191b6<_0x44ce21['length'];_0x4191b6++){for(let _0x54723a=0x0;_0x54723a<_0x44ce21[_0x4191b6]['markersStart']['length'];_0x54723a++){const _0x4f99a8=_0x44ce21[_0x4191b6]['markersStart'][_0x54723a];if(!_0x10465f['has'](_0x4f99a8))continue;const {group:_0x1817b9,type:_0xcc6e7c,authorId:_0x5bcd29}=_0x394b2c(_0x4f99a8);'revision-suggestion'!=_0x1817b9||'insertion'!=_0xcc6e7c&&'deletion'!=_0xcc6e7c||(_0xab7d19['unshift']({'type':_0xcc6e7c,'name':_0x4f99a8,'userId':_0x5bcd29}),_0x44ce21[_0x4191b6]['markersStart']['splice'](_0x54723a,0x1),_0x54723a--);}_0x4160f5(_0x44ce21[_0x4191b6]);for(let _0x415029=0x0;_0x415029<_0x44ce21[_0x4191b6]['markersEnd']['length'];_0x415029++){const _0xcd4d84=_0x44ce21[_0x4191b6]['markersEnd'][_0x415029];if(!_0x10465f['has'](_0xcd4d84))continue;const {group:_0x19ddd2,type:_0x38c788}=_0x394b2c(_0xcd4d84);if('revision-suggestion'!=_0x19ddd2||'insertion'!=_0x38c788&&'deletion'!=_0x38c788)continue;_0x44ce21[_0x4191b6]['markersEnd']['splice'](_0x415029,0x1),_0x415029--;const _0x5df0d7=_0xab7d19['findIndex'](_0x13822b=>_0x13822b['name']==_0xcd4d84);_0x5df0d7>-0x1&&_0xab7d19['splice'](_0x5df0d7,0x1);}}function _0x394b2c(_0x4714bb){const _0x4c112a=_0x4714bb['split'](':');return{'group':_0x4c112a[0x0],'type':_0x4c112a[0x1],'subType':_0x4c112a['length']>=0x5?_0x4c112a[0x2]:null,'id':_0x4c112a['length']<0x5?_0x4c112a[0x2]:_0x4c112a[0x3],'authorId':_0x4c112a['length']<0x5?_0x4c112a[0x3]:_0x4c112a[0x4],'markerCount':0x6==_0x4c112a['length']?_0x4c112a[0x5]:null};}function _0x4160f5(_0x30389f){for(let _0x2469ad=0x0;_0x2469ad<_0xab7d19['length'];_0x2469ad++){if(_0x30389f['isAdded']&&'insertion'==_0xab7d19[_0x2469ad]['type'])return _0x30389f['isAddSuggestion']=_0xab7d19[_0x2469ad],void delete _0x30389f['isAdded'];if(!_0x30389f['isAdded']&&!_0x30389f['isRemoved']&&'deletion'==_0xab7d19[_0x2469ad]['type'])return void(_0x30389f['isRemoveSuggestion']=_0xab7d19[_0x2469ad]);}}}['_setDistance'](_0xec9e3a,_0x122c22){let _0x3c3e3b=0x0,_0x42112f=!0x1;const _0x1ac5a0=new Map();for(const _0x2b3864 of _0xec9e3a)_0x2b3864[_0x122c22]?_0x42112f&&(_0x3c3e3b++,_0x42112f=!0x1):(_0x3c3e3b++,_0x42112f=!0x0),_0x1ac5a0['set'](_0x2b3864['id'],_0x3c3e3b);for(let _0x59ab9e=0x0;_0x59ab9e<_0xec9e3a['length'];_0x59ab9e++){if('isRemoved'==_0x122c22&&_0xec9e3a[_0x59ab9e]['isAdded']||'isAdded'==_0x122c22&&_0xec9e3a[_0x59ab9e]['isRemoved'])continue;if('text'==_0xec9e3a[_0x59ab9e]['type']){_0xec9e3a[_0x59ab9e]['distance']=0x0;continue;}const _0x3c82d2=_0x1ac5a0['get'](_0xec9e3a[_0x59ab9e]['pairId']),_0x598f2e=_0x1ac5a0['get'](_0xec9e3a[_0x59ab9e]['id']);_0xec9e3a[_0x59ab9e]['distance']=_0x3c82d2-_0x598f2e;}}['_getRevisionsRange'](_0x1ce430,_0x463c76,_0x5a66dc=!0x1){const _0x5cff6c=[];let _0x326878=this['repository']['getIndex'](_0x1ce430),_0x28d9a8=this['repository']['getIndex'](_0x463c76);for(-0x1==_0x28d9a8&&(_0x28d9a8=this['repository']['_revisions']['length'],_0x5a66dc=!0x1);_0x326878<_0x28d9a8;)_0x5cff6c['push'](this['repository']['getRevision'](_0x326878)),_0x326878++;return _0x5a66dc&&_0x5cff6c['push'](this['repository']['getRevision'](_0x326878)),_0x5cff6c;}['_threeWayMerge'](_0xb399b3,_0x3e24d2,_0xe24305,_0x265166){const _0x1af79e=this['editor']['model']['schema'];let _0x5b023a=_0x3e24d2;for(;_0xb399b3[_0x5b023a]&&_0xb399b3[_0x5b023a]['isAdded'];)_0x5b023a++;let _0x2095e8=_0x265166;for(;_0xe24305[_0x2095e8]&&_0xe24305[_0x2095e8]['isRemoved'];)_0x2095e8++;_0x2e9c74(_0xb399b3,_0x3e24d2,_0x5b023a),_0x2e9c74(_0xe24305,_0x265166,_0x2095e8);const _0xdb3390=_0xe24305['slice'](_0x265166,_0x2095e8)['concat'](_0xb399b3['slice'](_0x3e24d2,_0x5b023a));return _0xdb3390['sort']((_0x136259,_0x2c93c8)=>_0x136259['side']!=_0x2c93c8['side']?_0x136259['side']-_0x2c93c8['side']:_0x136259['level']!=_0x2c93c8['level']?_0x136259['level']-_0x2c93c8['level']:_0x136259['distance']!=_0x2c93c8['distance']?_0x2c93c8['distance']-_0x136259['distance']:!!_0x136259['isAdded']!=!!_0x2c93c8['isAdded']?-0x1==_0x136259['side']||0x0==_0x136259['side']?_0x136259['isAdded']?-0x1:0x1:_0x136259['isAdded']?0x1:-0x1:_0x136259['index']-_0x2c93c8['index']),{'commonTape':_0xdb3390,'iEnd':_0x5b023a,'jEnd':_0x2095e8};function _0x2e9c74(_0x16ed73,_0x4c3031,_0x3b7070){let _0x35a1b5=-0x1,_0x5a0d61=Number['POSITIVE_INFINITY'],_0x2a54d4=!0x0;for(let _0xaba097=_0x4c3031;_0xaba097<_0x3b7070;_0xaba097++)if(_0x1af79e['isInline'](_0x16ed73[_0xaba097]['item'])||(_0x2a54d4=!0x1),_0x16ed73[_0xaba097]['item']['startIndex']<_0x4c3031&&(_0x35a1b5=_0xaba097),_0x16ed73[_0xaba097]['item']['endIndex']>=_0x3b7070){_0x5a0d61=_0xaba097;break;}_0x2a54d4&&(_0x35a1b5=_0x3b7070-0x1);for(let _0x75197d=_0x4c3031;_0x75197d<_0x3b7070;_0x75197d++)_0x16ed73[_0x75197d]['side']=_0x75197d<=_0x35a1b5?-0x1:_0x75197d<_0x5a0d61?0x0:0x1,_0x16ed73[_0x75197d]['index']=_0x75197d;let _0x1a0caf=0x0;for(let _0x45ef87=_0x4c3031;_0x45ef87<=_0x35a1b5;_0x45ef87++)0x0==_0x16ed73[_0x45ef87]['distance']?_0x16ed73[_0x45ef87]['level']=_0x1a0caf:(_0x1a0caf++,_0x16ed73[_0x45ef87]['level']=_0x1a0caf,_0x1a0caf++);for(let _0x13600a=_0x4c3031;_0x13600a<_0x3b7070;_0x13600a++)0x0==_0x16ed73[_0x13600a]['side']&&(_0x16ed73[_0x13600a]['level']=_0x1a0caf);_0x1a0caf=0x0;for(let _0x4baf6f=_0x3b7070-0x1;_0x4baf6f>=_0x5a0d61;_0x4baf6f--)0x0==_0x16ed73[_0x4baf6f]['distance']?_0x16ed73[_0x4baf6f]['level']=_0x1a0caf:(_0x1a0caf--,_0x16ed73[_0x4baf6f]['level']=_0x1a0caf,_0x1a0caf--);}}['_fixObsoleteTags'](_0x5343a3){const _0x2f56ff=new Map(),_0x39e464=this['editor']['model']['schema'];for(let _0x29fba8=0x1;_0x29fba8<_0x5343a3['length'];_0x29fba8++){let _0x3117f7,_0x976f17,_0x4dc94c;const _0x3f42ed=_0x5343a3[_0x29fba8],_0x17bd0b=_0x5343a3[_0x29fba8-0x1];if('text'==_0x3f42ed['type'])continue;if(_0x3f42ed['type']!=_0x17bd0b['type'])continue;if(!_0x39e464['isBlock'](_0x17bd0b['item'])||_0x39e464['isLimit'](_0x17bd0b['item']))continue;if(!_0x39e464['isBlock'](_0x3f42ed['item'])||_0x39e464['isLimit'](_0x3f42ed['item']))continue;if((_0x5343a3[_0x29fba8]['isAdded']||_0x5343a3[_0x29fba8]['isAddSuggestion'])&&_0x5343a3[_0x29fba8-0x1]['isRemoved'])_0x3117f7=_0x5343a3[_0x29fba8],_0x976f17=_0x5343a3[_0x29fba8-0x1],_0x4dc94c=_0x29fba8-0x1;else{if(!_0x5343a3[_0x29fba8]['isRemoved']||!_0x5343a3[_0x29fba8-0x1]['isAdded']&&!_0x5343a3[_0x29fba8-0x1]['isAddSuggestion'])continue;_0x3117f7=_0x5343a3[_0x29fba8-0x1],_0x976f17=_0x5343a3[_0x29fba8],_0x4dc94c=_0x29fba8;}const _0x256f19=_0x3117f7['level']==_0x976f17['level'],_0x3a3f21=Math['abs'](_0x3117f7['level'])<Math['abs'](_0x976f17['level'])&&0x0==_0x976f17['distance'];(_0x256f19||_0x3a3f21)&&(_0x2f56ff['set'](_0x976f17['id'],_0x3117f7['id']),_0x5343a3['splice'](_0x4dc94c,0x1),_0x29fba8--,_0x3117f7['isAdded']=!0x1);}for(let _0x1b1544=0x0;_0x1b1544<_0x5343a3['length'];_0x1b1544++)_0x2f56ff['has'](_0x5343a3[_0x1b1544]['pairId'])&&(_0x5343a3[_0x1b1544]['pairId']=_0x2f56ff['get'](_0x5343a3[_0x1b1544]['pairId']));}['_removeMissingPairs'](_0x4dfc50){const _0x4cc4ee=new Set(_0x4dfc50['map'](_0x411fd0=>_0x411fd0['id']));for(let _0x5d3a86=0x0;_0x5d3a86<_0x4dfc50['length'];_0x5d3a86++)_0x4cc4ee['has'](_0x4dfc50[_0x5d3a86]['pairId'])||0x0==_0x4dfc50[_0x5d3a86]['distance']||(_0x4dfc50[_0x5d3a86]['isIncorrect']=!0x0);return _0x4dfc50['filter'](_0xfc9b8=>!_0xfc9b8['isIncorrect']);}['_markMismatchedRemovedTags'](_0x5b5491){const _0xacfc45=new Set();for(let _0x2b5d39=0x0;_0x2b5d39<_0x5b5491['length'];_0x2b5d39++){if(_0xacfc45['has'](_0x5b5491[_0x2b5d39]['id'])&&_0x5b5491[_0x2b5d39]['isRemoved']&&(_0x5b5491[_0x2b5d39]['isIncorrect']=!0x0),_0x5b5491[_0x2b5d39]['isIncorrect'])continue;if(0x0==_0x5b5491[_0x2b5d39]['distance'])continue;if('elementStart'!=_0x5b5491[_0x2b5d39]['type'])continue;if(null==_0x5b5491[_0x2b5d39]['pairId'])continue;let _0x267d64=_0x2b5d39+0x1,_0x276853=0x0;for(;_0x5b5491[_0x267d64]['id']!=_0x5b5491[_0x2b5d39]['pairId'];)'elementStart'==_0x5b5491[_0x267d64]['type']?_0x276853++:'elementEnd'==_0x5b5491[_0x267d64]['type']&&_0x276853--,_0x267d64++;if(0x0!=_0x276853){if(_0x5b5491[_0x2b5d39]['isRemoved'])_0x5b5491[_0x2b5d39]['isIncorrect']=!0x0;else{for(;_0x267d64!=_0x2b5d39;)_0x5b5491[_0x267d64]['isRemoved']&&0x0!=_0x5b5491[_0x267d64]['distance']&&(_0x5b5491[_0x267d64]['isIncorrect']=!0x0,_0xacfc45['add'](_0x5b5491[_0x267d64]['pairId'])),_0x267d64--;}}}return _0x5b5491['filter'](_0x25549c=>!_0x25549c['isIncorrect']);}['_removeUnsupportedChanges'](_0x354f30){const _0x2ac850=this['editor']['model']['schema'];for(let _0x42119d=0x0;_0x42119d<_0x354f30['length'];_0x42119d++){if(!(_0x354f30[_0x42119d]['isAdded']||_0x354f30[_0x42119d]['isAddSuggestion']||_0x354f30[_0x42119d]['isRemoved']||_0x354f30[_0x42119d]['isRemoveSuggestion']))continue;if(0x0==_0x354f30[_0x42119d]['distance'])continue;const _0x143edd=_0x354f30[_0x42119d]['item'];_0x2ac850['isBlock'](_0x143edd)||_0x2ac850['isLimit'](_0x143edd)||(_0x354f30[_0x42119d]['isAdded']&&delete _0x354f30[_0x42119d]['isAdded'],_0x354f30[_0x42119d]['isAddSuggestion']&&delete _0x354f30[_0x42119d]['isAddSuggestion'],_0x354f30[_0x42119d]['isRemoveSuggestion']&&delete _0x354f30[_0x42119d]['isRemoveSuggestion'],_0x354f30[_0x42119d]['isRemoved']&&(_0x354f30[_0x42119d]['isIncorrect']=!0x0));}return _0x354f30['filter'](_0x108cd6=>!_0x108cd6['isIncorrect']);}['_makeModelFromTape'](_0x4dc038,_0x1aa342,_0x51d291){const _0x4e6528=new mt(),_0x372811=[],_0x35058=new Map(),_0x1f4d79=this['editor']['model'],_0xa75c16=_0x1f4d79['schema'],_0x374d93=[_0x4e6528],_0x19ea89={},_0x41459a={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x2017e4=null;const _0x50e343=[0x0];for(let _0xea5ff=0x0;_0xea5ff<_0x4dc038['length'];_0xea5ff++)if('elementStart'===_0x4dc038[_0xea5ff]['type']){_0x4dc038[_0xea5ff]['previousPosition']=_0x1f4d79['createPositionFromPath'](_0x4e6528,_0x50e343);const _0x1ca385=new ft(_0x4dc038[_0xea5ff]['item']['name'],_0x4dc038[_0xea5ff]['item']['getAttributes']());_0x374d93[0x0]['_appendChild'](_0x1ca385),_0x50e343['push'](0x0),_0x374d93['unshift'](_0x1ca385),_0x4dc038[_0xea5ff]['nextPosition']=_0x1f4d79['createPositionFromPath'](_0x4e6528,_0x50e343);}else'elementEnd'===_0x4dc038[_0xea5ff]['type']?(_0x374d93['shift'](),_0x4dc038[_0xea5ff]['previousPosition']=_0x1f4d79['createPositionFromPath'](_0x4e6528,_0x50e343),_0x50e343['pop'](),_0x50e343[_0x50e343['length']-0x1]++,_0x4dc038[_0xea5ff]['nextPosition']=_0x1f4d79['createPositionFromPath'](_0x4e6528,_0x50e343)):(_0x4dc038[_0xea5ff]['previousPosition']=_0x1f4d79['createPositionFromPath'](_0x4e6528,_0x50e343),_0x2017e4?_0x2017e4['_data']+=_0x4dc038[_0xea5ff]['item']['data']:_0x2017e4=new wt(_0x4dc038[_0xea5ff]['item']['data'],_0x4dc038[_0xea5ff]['item']['getAttributes']()),_0x4dc038[_0xea5ff+0x1]&&'text'===_0x4dc038[_0xea5ff+0x1]['type']&&_0x12db37(_0x2017e4,_0x4dc038[_0xea5ff+0x1]['item'])||(_0x374d93[0x0]['_appendChild'](_0x2017e4),_0x2017e4=null),_0x50e343[_0x50e343['length']-0x1]+=_0x4dc038[_0xea5ff]['item']['offsetSize'],_0x4dc038[_0xea5ff]['nextPosition']=_0x1f4d79['createPositionFromPath'](_0x4e6528,_0x50e343));for(let _0x5609fc=0x0;_0x5609fc<_0x4dc038['length'];_0x5609fc++){const _0x438900=_0x4dc038[_0x5609fc]['previousPosition'],_0x4295f4=_0x4dc038[_0x5609fc]['nextPosition'];for(const _0x25ff45 of _0x4dc038[_0x5609fc]['markersStart'])_0x35058['set'](_0x25ff45,{'start':_0x438900,'end':null});_0x58b72a('isRemoveSuggestion',_0x5609fc,_0x438900,_0x4295f4),_0x58b72a('isAddSuggestion',_0x5609fc,_0x438900,_0x4295f4),_0x58b72a('isRemoved',_0x5609fc,_0x438900,_0x4295f4),_0x58b72a('isAdded',_0x5609fc,_0x438900,_0x4295f4);for(const _0x3961f7 of _0x4dc038[_0x5609fc]['markersEnd']){_0x35058['get'](_0x3961f7)['end']=_0x4295f4;}}for(const [_0x2a31ea,_0x9e94c9]of _0x35058){const _0x5e2ac3=this['editor']['model']['createRange'](_0x9e94c9['start'],_0x9e94c9['end']);_0x4e6528['markers']['set'](_0x2a31ea,_0x5e2ac3);}return _0x372811['sort']((_0x209549,_0x45769e)=>{const _0x1626ae=_0x4e6528['markers']['get']('revision:'+_0x209549['id']),_0x19b297=_0x4e6528['markers']['get']('revision:'+_0x45769e['id']);return _0x1626ae['start']['isBefore'](_0x19b297['start'])?-0x1:_0x1626ae['start']['isAfter'](_0x19b297['start'])?0x1:_0x1626ae['end']['isBefore'](_0x19b297['end'])?-0x1:_0x1626ae['end']['isAfter'](_0x19b297['end'])?0x1:'add'===_0x209549['type']?-0x1:0x1;}),{'root':_0x4e6528,'changes':_0x372811};function _0x58b72a(_0x1f7d83,_0x4ff105,_0x408e27,_0x422aa4){const _0x2cd071=!!_0x4dc038[_0x4ff105][_0x1f7d83],_0x29f31e=_0x2cd071?_0x4dc038[_0x4ff105][_0x1f7d83]['userId']:null,_0x61396c=_0x4ff105===_0x4dc038['length']-0x1,_0xdb82e4=_0x41459a[_0x1f7d83][0x0],_0x4f41a3=_0xa75c16['isObject'](_0x4dc038[_0x4ff105]['item']);!_0x19ea89[_0x1f7d83]&&_0x2cd071?_0x19ea89[_0x1f7d83]={'start':_0x408e27,'tapeItem':_0x4dc038[_0x4ff105],'userId':_0x29f31e,'type':_0x1f7d83}:_0x19ea89[_0x1f7d83]&&!_0x2cd071?(_0x19ea89[_0x1f7d83]['end']=_0x408e27,_0x2166ed(_0x19ea89[_0x1f7d83]),_0x19ea89[_0x1f7d83]=null):_0x19ea89[_0x1f7d83]&&_0x2cd071&&_0x19ea89[_0x1f7d83]['userId']!==_0x29f31e&&(_0x19ea89[_0x1f7d83]['end']=_0x408e27,_0xdb82e4&&_0xdb82e4['userId']===_0x19ea89[_0x1f7d83]['userId']||_0x2166ed(_0x19ea89[_0x1f7d83]),_0x19ea89[_0x1f7d83]={'start':_0x408e27,'tapeItem':_0x4dc038[_0x4ff105],'userId':_0x29f31e,'type':_0x1f7d83}),_0x19ea89[_0x1f7d83]&&_0x4f41a3&&('elementStart'!==_0x4dc038[_0x4ff105]['type']||_0xdb82e4&&_0xdb82e4['userId']===_0x29f31e||_0x41459a[_0x1f7d83]['unshift']({'userId':_0x29f31e,'object':_0x4dc038[_0x4ff105]['item'],'change':_0x19ea89[_0x1f7d83]}),'elementEnd'===_0x4dc038[_0x4ff105]['type']&&_0xdb82e4&&_0xdb82e4['object']===_0x4dc038[_0x4ff105]['item']&&(_0x41459a[_0x1f7d83]['shift'](),_0x19ea89[_0x1f7d83]=_0xdb82e4['change'])),_0x19ea89[_0x1f7d83]&&_0x61396c&&(_0x19ea89[_0x1f7d83]['end']=_0x422aa4,_0x2166ed(_0x19ea89[_0x1f7d83]),_0x19ea89[_0x1f7d83]=null);}function _0x2166ed({start:_0x414a0c,end:_0x257892,tapeItem:_0x459c51,userId:_0x8bf7b0,type:_0x10b63f}){const _0x171131=_0x459c51['item'],_0xf54c15=_0x1f4d79['schema']['isBlock'](_0x171131)&&!_0x1f4d79['schema']['isLimit'](_0x171131),_0x5730af=_0x414a0c['nodeAfter']==_0x257892['parent']&&_0x257892['isAtStart'];if(_0xf54c15&&_0x5730af)return;const _0x460d2b=_0x1f4d79['createRange'](_0x414a0c,_0x257892),_0x561216=_0x1aa342['get'](_0x8bf7b0),_0xeb925d=new r({'author':_0x561216,'type':'isAdded'==_0x10b63f||'isAddSuggestion'==_0x10b63f?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x10b63f||'isRemoveSuggestion'==_0x10b63f},'createdAt':new Date(),'rootName':_0x51d291});_0x372811['push'](_0xeb925d),_0x4e6528['markers']['set']('revision:'+_0xeb925d['id'],_0x460d2b);}function _0x12db37(_0x595448,_0x45fc0c){const _0xddf12f=_0x595448['getAttributes'](),_0x21c196=_0x45fc0c['getAttributes']();for(const _0x5060e5 of _0xddf12f){if(_0x5060e5[0x1]!==_0x45fc0c['getAttribute'](_0x5060e5[0x0]))return!0x1;_0x21c196['next']();}return _0x21c196['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x42c956=>{const _0x566bde=_0x42c956['markerName']['split'](':')[0x1],_0x23c4e7=this['_getChangeFromId'](_0x566bde);if(!_0x23c4e7)return null;const _0x57f84f='add'==_0x23c4e7['type']?'insertion':'deletion',_0x5a805f=['ck-suggestion-marker','ck-suggestion-marker-'+_0x57f84f];return _0x23c4e7['data']['isSuggestion']&&_0x5a805f['push']('ck-suggestion-marker-'+_0x57f84f+'-new'),this['activeChange']==_0x23c4e7&&_0x5a805f['push']('ck-suggestion-marker--active'),{'classes':_0x5a805f,'attributes':{'data-change-id':_0x566bde}};}}),this['editor']['conversion']['for']('upcast')['add'](_0xe22137=>{_0xe22137['on']('element:pre',(_0x15b4ce,_0x18775d,_0x35c095)=>{const _0x13f7ec=_0x18775d['viewItem']['getChild'](0x0);if(!_0x13f7ec||!_0x13f7ec['is']('element','code'))return;if(!_0x35c095['consumable']['consume'](_0x13f7ec,{'attributes':['vid_start','vid_end']}))return;const _0x2249e1=_0x18775d['modelRange']['start']['nodeAfter'];_0x35c095['writer']['setAttribute']('vid_start',_0x13f7ec['getAttribute']('vid_start'),_0x2249e1),_0x35c095['writer']['setAttribute']('vid_end',_0x13f7ec['getAttribute']('vid_end'),_0x2249e1);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x8a3f40=>{_0x8a3f40['on']('element',(_0x5f2e95,_0x4f138e,_0x41af93)=>{if(!_0x41af93['consumable']['consume'](_0x4f138e['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x4f138e['modelRange']['isCollapsed'])return;const _0x2bbcd4=_0x4f138e['modelRange']['start']['nodeAfter'];_0x2bbcd4['hasAttribute']('vid_start')||_0x2bbcd4['hasAttribute']('vid')||(_0x41af93['writer']['setAttribute']('vid_start',_0x4f138e['viewItem']['getAttribute']('vid_start'),_0x2bbcd4),_0x41af93['writer']['setAttribute']('vid_end',_0x4f138e['viewItem']['getAttribute']('vid_end'),_0x2bbcd4));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x5836d3=>_0x5836d3['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x3c61be,[,_0x439138])=>{['vid_start','vid_end','vid']['includes'](_0x439138)&&(_0x3c61be['return']=!0x0,_0x3c61be['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x5091db=>{_0x5091db['on']('attribute:vid',(_0x250b53,_0x32e2ff,_0x41e213)=>{if('\x20'!=_0x32e2ff['item']['data']||_0x32e2ff['item']['parent']['maxOffset']>0x1)return;if(!_0x41e213['consumable']['consume'](_0x32e2ff['item'],_0x250b53['name']))return;const _0xe6a7cf=_0x41e213['writer'],_0x37fb64=_0x41e213['mapper']['toViewRange'](_0x32e2ff['range']);_0xe6a7cf['wrap'](_0x37fb64,_0xe6a7cf['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x456cb6){const _0x4eff73=_0x456cb6['plugins']['get']('RevisionViewer');return(_0x48ec35,_0xbc556d,_0x2656a3)=>{const _0x10af9b=_0xbc556d['markerName']['split'](':')[0x1],_0x5e08cc=_0x4eff73['_getChangeFromId'](_0x10af9b);if(!_0x5e08cc)return null;const _0x5ba049='add'==_0x5e08cc['type']?'split':'merge';if(!_0x2656a3['consumable']['test'](_0xbc556d['markerRange'],_0x48ec35['name']))return;const _0xbcd660=_0xbc556d['markerRange']['getWalker'](),_0x54a8b9=_0xbc556d['markerRange']['start'],_0x1b6bd9=_0x456cb6['model']['schema'];let _0x3d5adf=null,_0x56b686=null,_0x56ece0=!0x1,_0x4dbee0=!0x1;for(const _0xfa4ee9 of _0xbcd660){const _0x253403=_0xfa4ee9['item'];_0x56ece0=_0x56ece0||_0x1b6bd9['isContent'](_0x253403);const _0x271a51=_0x2656a3['mapper']['toViewElement'](_0x253403);if(_0x271a51&&_0x271a51['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xfa4ee9['type']&&(_0x1b6bd9['isBlock'](_0x253403)&&!_0x1b6bd9['isLimit'](_0x253403)&&(_0x253403['nextSibling']||_0x54a8b9['isAtEnd']?_0x3d5adf&&_0x3d5adf['parent']==_0x253403||(_0x3d5adf=_0x253403,_0x48b85a(_0xfa4ee9['previousPosition']),_0x4dbee0=!0x0):_0x56b686=_0x56b686||_0xfa4ee9['previousPosition']));}function _0x48b85a(_0x15b678){const _0x1bbaff=_0x2656a3['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5ba049}),_0x26e0c8=_0x2656a3['mapper']['toViewPosition'](_0x15b678);_0x5e08cc['data']['isSuggestion']&&_0x2656a3['writer']['addClass']('ck-suggestion-marker-'+_0x5ba049+'-new',_0x1bbaff),_0x4eff73['activeChange']==_0x5e08cc&&_0x2656a3['writer']['addClass']('ck-suggestion-marker--active',_0x1bbaff),_0x2656a3['writer']['insert'](_0x26e0c8,_0x1bbaff),_0x2656a3['mapper']['bindElementToMarker'](_0x1bbaff,_0xbc556d['markerName']);}_0x56ece0||_0x4dbee0||!_0x56b686||_0x48b85a(_0x56b686);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0xe75807,_0x1777ce,_0x26930e)=>{const _0x5b27e3=_0x26930e['mapper']['markerNameToElements'](_0x1777ce['markerName']);if(_0x5b27e3){for(const _0x1ea932 of _0x5b27e3)(_0x1ea932['hasClass']('ck-suggestion-marker-split')||_0x1ea932['hasClass']('ck-suggestion-marker-merge'))&&(_0x26930e['mapper']['unbindElementFromMarkerName'](_0x1ea932,_0x1777ce['markerName']),_0x26930e['writer']['remove'](_0x1ea932));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x50111a,_0x1867d7,_0x33d2ea)=>{const _0x4fe13a=_0x1867d7['markerName']['split'](':')[0x1],_0x17831=this['_getChangeFromId'](_0x4fe13a);if(!_0x17831)return null;const _0x4251e4='add'==_0x17831['type']?'split':'merge';if(_0x33d2ea['consumable']['test'](_0x1867d7['markerRange'],_0x50111a['name']))for(const _0x1b4d20 of _0x1867d7['markerRange']['getItems']()){if(!_0x1b4d20['is']('element','softBreak'))continue;const _0xcfb7da=_0x33d2ea['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4251e4}),_0x4ec3db=_0x33d2ea['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x1b4d20));_0x17831['data']['isSuggestion']&&_0x33d2ea['writer']['addClass']('ck-suggestion-marker-'+_0x4251e4+'-new',_0xcfb7da),this['activeChange']==_0x17831&&_0x33d2ea['writer']['addClass']('ck-suggestion-marker--active',_0xcfb7da),_0x33d2ea['writer']['insert'](_0x4ec3db,_0xcfb7da),_0x33d2ea['mapper']['bindElementToMarker'](_0xcfb7da,_0x1867d7['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x3b6007=>{for(const _0x5cc44d of this['editor']['model']['document']['getRootNames']()){const _0x426fd=this['editor']['model']['document']['getRoot'](_0x5cc44d),_0x138bda=this['editor']['editing']['view']['document']['getRoot'](_0x5cc44d);if(_0x138bda){const _0x4676ca=_0x426fd['getAttribute']('revisionHistoryAttachChange');if(_0x3b6007['removeAttribute']('data-change-id',_0x138bda),_0x3b6007['removeClass']('ck-revision-history-root-add',_0x138bda),_0x3b6007['removeClass']('ck-revision-history-root-remove',_0x138bda),_0x3b6007['removeClass']('ck-revision-history-root--active',_0x138bda),_0x4676ca){const _0xd5708b=this['_getChangeFromId'](_0x4676ca);if(!_0xd5708b)return null;_0x3b6007['setAttribute']('data-change-id',_0x4676ca,_0x138bda),_0x3b6007['addClass']('ck-revision-history-root-'+_0xd5708b['type'],_0x138bda),this['activeChange']==_0xd5708b&&_0x3b6007['addClass']('ck-revision-history-root--active',_0x138bda);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x572d06=>'revision-comment:'+_0x572d06,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x1f1f57=>'revision-suggestion:'+_0x1f1f57,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x2cb51c=>({'name':'suggestion:'+_0x2cb51c,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x34fa77=>{const _0x32eab6=_0x34fa77['markerName']['split'](':')[0x1];return'insertion'!=_0x32eab6&&'deletion'!=_0x32eab6?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x32eab6]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x1a0e24,_0x1497f5,_0x1d7a8d)=>{const _0x43c17d=_0x1d7a8d['mapper']['markerNameToElements'](_0x1497f5['markerName']);if(_0x43c17d){for(const _0xc97c4d of _0x43c17d)_0xc97c4d['is']('uiElement')&&(_0x1d7a8d['mapper']['unbindElementFromMarkerName'](_0xc97c4d,_0x1497f5['markerName']),_0x1d7a8d['writer']['remove'](_0xc97c4d));}},{'priority':'high'});}['_getChangeFromId'](_0x4e6442){return this['_changeIdToChange']['get'](_0x4e6442);}['_getViewForChange'](_0x212a27){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x212a27),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x307d9c,_0x3294ac,_0x11900e,_0x2f9eaf)=>{_0x2f9eaf&&this['_balloon']['remove'](_0x2f9eaf),_0x11900e&&(this['_balloon']['add']({'view':_0x11900e,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x2c806c=this['editor']['editing'],_0x3f0b20=this['_getChangeFromId'](_0x11900e['changeId']);let _0x553fc6;if(_0x3f0b20['data']['isOnRoot']){const _0x2c1a83=_0x2c806c['view']['getDomRoot'](_0x3f0b20['rootName']);_0x553fc6=Array['from'](_0x2c1a83['getClientRects']());}else{const _0x36e6a1=this['editor']['model']['markers']['get']('revision:'+_0x11900e['changeId']);_0x553fc6=Array['from'](_0x2c806c['mapper']['markerNameToElements'](_0x36e6a1['name']))['map'](_0x592fce=>_0x2c806c['view']['domConverter']['mapViewToDom'](_0x592fce))['map'](_0x30cab0=>Array['from'](_0x30cab0['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x553fc6[0x0];return _0x553fc6['find'](_0x584af7=>_0x584af7['top']-0x3<=this['_activeViewTarget']['y']&&_0x584af7['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x584af7['left']-0x3<=this['_activeViewTarget']['x']&&_0x584af7['right']+0x3>=this['_activeViewTarget']['x'])||_0x553fc6[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x2227ac,_0x1928ec,_0x11db83,_0xbc0464)=>{this['activeView']=_0x11db83?this['_getViewForChange'](_0x11db83):null,this['editor']['model']['change'](()=>{const _0x3406fb=this['editor']['editing'];_0xbc0464&&(_0xbc0464['data']['isOnRoot']?_0x3406fb['view']['change'](_0x1b0005=>{_0x1b0005['removeClass']('ck-revision-history-root--active',_0x3406fb['view']['document']['getRoot'](_0xbc0464['rootName']));}):_0x3406fb['reconvertMarker']('revision:'+_0xbc0464['id'])),_0x11db83&&(_0x11db83['data']['isOnRoot']?_0x3406fb['view']['change'](_0x1b8168=>{_0x1b8168['addClass']('ck-revision-history-root--active',_0x3406fb['view']['document']['getRoot'](_0x11db83['rootName']));}):_0x3406fb['reconvertMarker']('revision:'+_0x11db83['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x3844a3,_0x344a46)=>{if(this['activeChange'])return;const _0x58a430=this['_findChangeIdFromDomTarget'](_0x344a46['target']),_0x16c49f=this['_changeIdToChange']['get'](_0x58a430);_0x16c49f?(this['_activeViewTarget']={'x':_0x344a46['domEvent']['x'],'y':_0x344a46['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x16c49f)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x451f32,_0x1ca90b)=>{const _0x40e4cd=this['_findChangeIdFromDomTarget'](_0x1ca90b['target']),_0x1bfa39=this['_changeIdToChange']['get'](_0x40e4cd);_0x1bfa39?(this['_activeViewTarget']={'x':_0x1ca90b['domEvent']['x'],'y':_0x1ca90b['domEvent']['y']},_0x1bfa39===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x1bfa39):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x37511c){do{const _0x446113=_0x37511c['getAttribute']('data-change-id');if(_0x446113)return _0x446113;_0x37511c=_0x37511c['parent'];}while(_0x37511c);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x72b4d3=>{for(const _0x481d93 of this['editor']['model']['markers'])_0x72b4d3['removeMarker'](_0x481d93);});}}function Z(_0x30cdfe,_0x13e6bf){return(_0x91e02a,_0x5283f4,_0x48d947)=>{if(!_0x48d947['consumable']['test'](_0x5283f4['markerRange'],_0x91e02a['name']))return;const _0x54aa8d=_0x5283f4['markerRange']['getWalker'](),_0x58d902=_0x5283f4['markerRange']['start'],_0x4d4bb2=_0x30cdfe['model']['schema'];let _0x4743fd=null,_0x449a2e=null,_0x220791=!0x1,_0x6c3ac3=!0x1;for(const _0x18a591 of _0x54aa8d){const _0x11bc64=_0x18a591['item'];_0x220791=_0x220791||_0x4d4bb2['isContent'](_0x11bc64);const _0x58c10e=_0x48d947['mapper']['toViewElement'](_0x11bc64);if(_0x58c10e&&_0x58c10e['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x18a591['type']&&(_0x4d4bb2['isBlock'](_0x11bc64)&&!_0x4d4bb2['isLimit'](_0x11bc64)&&(_0x11bc64['nextSibling']||_0x58d902['isAtEnd']?_0x4743fd&&_0x4743fd['parent']==_0x11bc64||(_0x4743fd=_0x11bc64,_0xb7842d(_0x18a591['previousPosition']),_0x6c3ac3=!0x0):_0x449a2e=_0x449a2e||_0x18a591['previousPosition']));}function _0xb7842d(_0x21a79e){const _0x59e96e=_0x48d947['mapper']['toViewPosition'](_0x21a79e),_0x315253=_0x48d947['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x13e6bf});_0x48d947['writer']['insert'](_0x59e96e,_0x315253),_0x48d947['mapper']['bindElementToMarker'](_0x315253,_0x5283f4['markerName']);}_0x220791||_0x6c3ac3||!_0x449a2e||_0xb7842d(_0x449a2e);};}class _t extends _0x2c8a7b{constructor(_0x4a44d4){super(_0x4a44d4);const _0x235a51=_0x4a44d4['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x235a51,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x235a51,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x4084cb=this['editor'],_0x4c76f2=_0x4084cb['plugins']['get'](d),_0x213ef7=_0x4c76f2['isReady']?_0x4c76f2['diff']['newRevisionId']:null;_0x4084cb['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x213ef7);}['refresh'](){const {isReady:_0x15e904,isEnabled:_0x2480a9,repository:_0x1d72a8,diff:_0x14e64e}=this['editor']['plugins']['get'](d),_0x2912ef=_0x14e64e&&_0x1d72a8['getLaterVisibleRevision'](_0x14e64e['newRevisionId']);this['isEnabled']=_0x15e904&&_0x2480a9&&Boolean(_0x2912ef);}}class yt extends _0x2c8a7b{['_step'];constructor(_0x1731be,{direction:_0x2df532}){super(_0x1731be);const _0x27c6d4=_0x1731be['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x2df532?0x1:-0x1,this['listenTo'](_0x27c6d4,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x27c6d4,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x27c6d4,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x2251bf=this['editor'],_0x334bf7=_0x2251bf['plugins']['get'](d),{isNavigationMode:_0xc0f514,currentChangeNumber:_0x24b89f}=_0x334bf7;let _0x254898;if(_0x334bf7['activeChange']=_0xc0f514?_0x334bf7['diff']['changes']['get'](_0x24b89f+this['_step']):_0x334bf7['diff']['changes']['first'],_0x334bf7['activeChange']['data']['isOnRoot'])_0x254898=_0x2251bf['editing']['view']['getDomRoot'](_0x334bf7['activeChange']['rootName']);else{const _0x3dd313=_0x2251bf['model']['markers']['get']('revision:'+_0x334bf7['activeChange']['id']);_0x254898=_0x30b6a5(_0x2251bf['editing'],_0x3dd313);}_0x4b5b86({'target':_0x254898,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x50a568,currentChangeNumber:_0x4b242a,numberOfChanges:_0x5b0d7b,isReady:_0x18d5af,isEnabled:_0x50ee46}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x50ee46&&_0x18d5af&&_0x5b0d7b)&&(!_0x50a568||(0x1===this['_step']?_0x4b242a<_0x5b0d7b-0x1:_0x4b242a>0x0));}}class di extends _0x4aaa2b{constructor(_0x5e71a7){super(_0x5e71a7);const _0x4251c3=this['bindTemplate'],_0x3ca747=new _0x4f5614(_0x5e71a7),_0x5d34e7=new _0x4f5614(_0x5e71a7);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',(_0x539a9c,_0x12ff21)=>_0x539a9c&&_0x12ff21>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x4fa4e5,_0x62a30c,_0x446fd2,_0x1e785f)=>{if(!_0x4fa4e5)return m(_0x5e71a7,'Loading...');if(!_0x446fd2)return m(_0x5e71a7,'No\x20changes');const _0x1f790c=m(_0x5e71a7,'NUMBER_OF_CHANGES',_0x446fd2);return _0x1e785f?m(_0x5e71a7,'X_OF_Y_CHANGES',[_0x62a30c+0x1,_0x446fd2]):_0x1f790c;}),_0x3ca747['set']({'label':m(_0x5e71a7,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x2014.494a.75.75\x200\x200\x200\x201.197-.899l-.067-.089-6.992-8a.75.75\x200\x200\x200-1.05-.078l-.079.078-7.008\x208a.75.75\x200\x200\x200\x201.049\x201.066l.08-.078\x206.442-7.354\x206.428\x207.354z\x22/></svg>\x0a'}),_0x5d34e7['set']({'label':m(_0x5e71a7,'Show\x20next\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x205.506a.75.75\x200\x200\x201\x201.197.899l-.067.089-6.992\x208a.75.75\x200\x200\x201-1.05.078l-.079-.078-7.008-8a.75.75\x200\x200\x201\x201.049-1.066l.08.078\x206.442\x207.354\x206.428-7.354z\x22/></svg>\x0a'}),_0x3ca747['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x5d34e7['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x3ca747['on']('execute',()=>this['fire']('execute','backward')),_0x5d34e7['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',_0x4251c3['if']('_isStatusLabelVisible','ck-hidden',_0x3dd9d2=>!_0x3dd9d2)]},'children':[{'text':_0x4251c3['to']('isNavigationMode',_0x3f8ffc=>_0x3f8ffc?m(_0x5e71a7,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x5e71a7,'Total')+':\x20')}]},{'text':_0x4251c3['to']('_statusText')}]},new _0x2dcfa0(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x3ca747,_0x5d34e7]}]});}}const ce='ck-editor__editable__loading-overlay';class ae extends _0x26a73c{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x4fb615=this['editor']['editing']['view'];_0x4fb615['change'](_0x2cb7ae=>{for(const _0x3824b5 of _0x4fb615['document']['roots'])_0x2cb7ae['addClass'](ce,_0x3824b5);});}['hide'](){const _0x207da9=this['editor']['editing']['view'];_0x207da9['change'](_0x5e899b=>{for(const _0x5743dc of _0x207da9['document']['roots'])_0x5e899b['removeClass'](ce,_0x5743dc);});}}class g extends _0x26a73c{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,ae];}['init'](){const _0x1e3bd5=this['editor'],_0x45422d=_0x1e3bd5['plugins']['get'](d),_0x370f71=_0x1e3bd5['plugins']['get'](ae);_0x1e3bd5['ui']['componentFactory']['add']('exitToEditing',_0x5cc7c5=>{const _0x4b6b36=new _0x4f5614(_0x5cc7c5);return _0x4b6b36['set']({'label':m(_0x5cc7c5,'Back\x20to\x20editing'),'icon':_0x3937f1['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x4b6b36,'execute',()=>{_0x1e3bd5['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x4b6b36;}),_0x1e3bd5['ui']['componentFactory']['add']('restoreRevision',_0x4686ca=>{const _0x272c64=new _0x4f5614(_0x4686ca);return _0x272c64['set']({'label':m(_0x4686ca,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x272c64['bind']('isEnabled')['to'](_0x1e3bd5['commands']['get']('restoreRevision')),this['listenTo'](_0x272c64,'execute',()=>_0x1e3bd5['execute']('restoreRevision')),_0x272c64;}),_0x1e3bd5['ui']['componentFactory']['add']('changesNavigation',_0x1ed1ac=>{const _0x49dc58=new di(_0x1ed1ac),_0x253c55=_0x1e3bd5['commands']['get']('showPreviousChange'),_0x5d7785=_0x1e3bd5['commands']['get']('showNextChange');return _0x49dc58['bind']('isBackwardNavigationEnabled')['to'](_0x253c55,'isEnabled'),_0x49dc58['bind']('isForwardNavigationEnabled')['to'](_0x5d7785,'isEnabled'),_0x49dc58['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x45422d),this['listenTo'](_0x49dc58,'execute',(_0x5521ff,_0x1334ea)=>{_0x1e3bd5['execute']('forward'===_0x1334ea?'showNextChange':'showPreviousChange');}),_0x49dc58;}),_0x370f71['show'](),_0x45422d['on']('change:isReady',(_0x3fa8b4,_0x308a3a,_0xfc39a4)=>{_0xfc39a4?_0x370f71['hide']():_0x370f71['show']();});}}class pt extends nt{['_resizeObserver']=null;constructor(_0x13a242,_0x1ed752){super(_0x13a242,_0x1ed752);const _0x538d54=this['bindTemplate'];this['set']({'label':m(_0x13a242,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x13a242,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x538d54['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new at(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x53f1ec=this['fieldView']['element'];this['_tooltipString']=_0x53f1ec['scrollWidth']>_0x53f1ec['clientWidth']&&_0x53f1ec['value']||'';}}class ti extends _0x4aaa2b{constructor(_0x46bfb9,_0x2a5636,_0x17663c){super(_0x46bfb9);const _0x35f937=new _0x355ac1();_0x35f937['set']({'content':'<svg\x20viewBox=\x220\x200\x2011\x2010\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20xmlns:xlink=\x22http://www.w3.org/1999/xlink\x22><path\x20d=\x22M5.5\x205C8.538\x205\x2011\x207.015\x2011\x209.5c0\x20.17-.011.336-.034.5H.034A3.732\x203.732\x200\x200\x201\x200\x209.5C0\x207.015\x202.462\x205\x205.5\x205zm0-5a2.5\x202.5\x200\x201\x201\x200\x205\x202.5\x202.5\x200\x200\x201\x200-5z\x22\x20/></svg>\x0a','viewBox':'0\x200\x2011\x2010'});const _0x9f137f=['ck','ck-revision-history-sidebar__revision-author'];_0x17663c&&_0x9f137f['push']('ck-revision-history-sidebar__revision-author_creator');const _0x50ab31=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x46bfb9,_0x17663c?'Revision\x20creator':'Revision\x20author')},'children':[_0x35f937,_0x2a5636['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x9f137f},'children':_0x50ab31});}}function ni(_0x476a1b,_0x4c0c02){const _0x599e4c=_0x476a1b['bindTemplate'],_0x3ff4b1=_0x476a1b['locale'],_0x2fd7de=_0x298fc1(_0x3ff4b1);_0x2fd7de['panelPosition']='sw';const _0x37ddcd=function(_0x37da1e,_0x4933fe){const _0x3d231a=function(_0x2b8c97,_0x280371){const _0xd0f09c=_0x2b8c97['locale'],_0x435cc5={'Compare\x20against\x20selected':m(_0xd0f09c,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0xd0f09c,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0xd0f09c,'Restore\x20this\x20revision')};return _0x280371['map'](_0xe912e3=>{const _0x3553c9=_0x435cc5[_0xe912e3['name']];return _0x3553c9&&_0x3553c9!==_0xe912e3['name']&&(_0xe912e3['name']=_0x3553c9),_0xe912e3;});}(_0x37da1e,_0x4933fe),_0xfcfbf=new _0x416362();for(const _0x4b46d1 of _0x3d231a){const _0x32f57c={'type':'button','model':new to({'label':_0x4b46d1['name'],'class':_0x4b46d1['class'],'withText':!0x0,'role':'menuitem','_action':_0x4b46d1['action']})};_0x32f57c['model']['bind']('isEnabled')['to'](_0x37da1e,'isActionsDropdownOpen',_0x1323ad=>'function'!=typeof _0x4b46d1['isEnabled']||(!_0x1323ad||_0x4b46d1['isEnabled'](_0x37da1e))),_0xfcfbf['add'](_0x32f57c);}return _0xfcfbf;}(_0x476a1b,_0x4c0c02);return _0x476a1b['bind']('isActionsDropdownOpen')['to'](_0x2fd7de,'isOpen'),_0x2fd7de['buttonView']['set']({'label':m(_0x3ff4b1,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x3937f1['threeVerticalDots']}),_0x2fd7de['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x599e4c['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x599e4c['to'](_0x3f713b=>_0x3f713b['stopPropagation']())}}),_0x2fd7de['on']('execute',_0x389ff4=>{_0x476a1b['isReady']&&'function'==typeof _0x389ff4['source']['_action']&&_0x389ff4['source']['_action'](_0x476a1b);}),_0x3a39f7(_0x2fd7de,_0x37ddcd,{'role':'menu'}),_0x2fd7de['listenTo'](_0x476a1b,'change:isActionsDropdownOpen',(_0x12af3f,_0x3ce157,_0x5abf67)=>{if(_0x5abf67)for(const _0x33f048 of _0x2fd7de['listView']['items']){const _0x3edb48=_0x33f048['children']['first'],_0x5895e0=_0x4c0c02['find'](_0x4d2e38=>_0x4d2e38['action']===_0x3edb48['_action'])['isVisible'];_0x33f048['isVisible']=void 0x0===_0x5895e0||_0x5895e0(_0x476a1b);}}),_0x2fd7de;}class ai extends/* #__PURE__ -- @preserve */
|
|
26
|
-
|
|
23
|
+
import{ObservableMixin as _0x1128d5,uid as _0x5e10e6,Collection as _0x2818bf,logWarning as _0x55b76a,FocusTracker as _0x5ac7ad,KeystrokeHandler as _0x1734cf,scrollViewportToShowTarget as _0x41b6f7,ResizeObserver as pt,ElementReplacer as ht,CKEditorError as _0x3923b7}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x2810e6,set as _0x4b7950,unset as _0x403090,isEqual as _0x4cd24f}from'es-toolkit/compat';import{Plugin as _0x3cb746,PendingActions as _0x41f7d1,Command as _0x1cd2f9,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x5d288c,getMarkerDomElement as _0x4301f5,ConfirmMixin as _0x3dcb4a,sanitizeEditorConfig as _0x7c0588}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x413e02,Element as ut,Range as ft,ViewUIElement as _0x33d900,ViewRawElement as _0x2a65a8,ViewEmptyElement as _0x499499,ViewAttributeElement as _0x42d014,ViewContainerElement as _0xc94dac,Position as vt,ViewText as _0xff6857,ViewElement as _0x363a6e,DocumentFragment as gt,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x51466b,IconChevronUp as _0x1b0d6d,IconChevronDown as _0x4dcd5b,IconUndo as _0x113421,IconUser as _0x1ea804,IconThreeVerticalDots as _0x2786d8}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x4d48fa,injectCssTransitionDisabler as ts,submitHandler as _0x27229c,LabeledFieldView as at,createLabeledInputText as ti,createDropdown as _0x5bcb54,ListView as _0xdfe4e,ListItemView as te,ButtonView as _0x1bfe84,MenuBarMenuView as _0x2a01f2,MenuBarMenuListView as _0x392da3,MenuBarMenuListItemView as _0x4c122f,MenuBarMenuListItemButtonView as _0xf996a9,ContextualBalloon as _0x286896,ToolbarSeparatorView as _0x120b08,IconView as _0x6616f4,addListToDropdown as _0x176f3a,ViewModel as to,EditorUI as st,normalizeToolbarConfig as ot,BoxedEditorUIView as ct,StickyPanelView as lt,ToolbarView as nt,InlineEditableUIView as dt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x236cef}from'luxon';class h extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x1128d5(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0xd048ec){super(),this['id']=_0xd048ec['id']||_0x5e10e6(),this['creator']=_0xd048ec['creator']||null,this['authors']=_0xd048ec['authors']||[],this['diffData']=_0xd048ec['diffData']||null,this['toVersion']=_0xd048ec['toVersion']||0x0,this['fromVersion']=_0xd048ec['fromVersion']||0x0,this['set']('name',_0xd048ec['name']||''),this['set']('createdAt',_0xd048ec['createdAt']||new Date()),this['set']('attributes',_0xd048ec['attributes']||{});}['setName'](_0x3b4d8e){this['_update']({'name':_0x3b4d8e});}['setAttribute'](_0x4f9ace,_0x4f2dea){const _0xa33fa9=_0x2810e6(this['attributes']);_0x4b7950(_0xa33fa9,_0x4f9ace,_0x4f2dea),this['_update']({'attributes':_0xa33fa9});}['removeAttribute'](_0x31c04b){const _0x45df53=_0x2810e6(this['attributes']);_0x403090(_0x45df53,_0x31c04b),this['_update']({'attributes':_0x45df53});}['_update'](_0x1779ec,_0x1e8447=!0x1){let _0x31ecd6=!0x1;const _0x4010c6={'id':this['id']},_0xfdd92=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x2dc2c3 of _0xfdd92){const _0x5439a7=_0x1779ec[_0x2dc2c3];void 0x0!==_0x5439a7&&_0x5439a7!==this[_0x2dc2c3]&&(this[_0x2dc2c3]=_0x5439a7,_0x4010c6[_0x2dc2c3]=_0x5439a7,_0x31ecd6=!0x0);}_0x31ecd6&&(_0x4010c6['authors']&&(_0x4010c6['authorsIds']=_0x4010c6['authors']['map'](_0x20c667=>_0x20c667['id']),delete _0x4010c6['authors']),this['fire']('_update',_0x4010c6,_0x1e8447));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x71d230=>_0x71d230['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x3cb746{['_revisions'];static get['requires'](){return[_0x5d288c];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x1ffd78){super(_0x1ffd78),this['_revisions']=new _0x2818bf();}['afterInit'](){!async function(_0x4ef321){const _0x2a562c=_0x1fcd07([0x34,0x41,0x45,0x74,0x72,0x37,0x51,0x75,0x47,0x6a,0x6c,0x38,0x35,0x49,0x30,0x79,0x31,0x54,0x70,0x73,0x5a,0x77,0x33,0x50,0x59,0x6e,0x64,0x62,0x58,0x32,0x55,0x6b,0x43,0x56,0x52,0x4f,0x6d,0x78,0x39,0x76,0x67,0x65,0x4d,0x63,0x42,0x7a,0x57,0x44,0x53,0x36,0x46,0x69,0x4a,0x4c,0x48,0x71,0x66,0x6f,0x61,0x68,0x4b,0x4e]),_0x4ef71d=0xeb829,_0x2ef756=0x27c8b32,_0x30d059=0x27bd4a2^_0x2ef756,_0x269f5f=window[_0x1fcd07([0x44,0x61,0x74,0x65])][_0x1fcd07([0x6e,0x6f,0x77])](),_0x5403c6=_0x4ef321[_0x1fcd07([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x19a3e2=new window[(_0x1fcd07([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x410260=>{_0x5403c6[_0x1fcd07([0x6f,0x6e,0x63,0x65])](_0x1fcd07([0x72,0x65,0x61,0x64,0x79]),_0x410260);}),_0x55bdab={[_0x1fcd07([0x6b,0x74,0x79])]:_0x1fcd07([0x45,0x43]),[_0x1fcd07([0x75,0x73,0x65])]:_0x1fcd07([0x73,0x69,0x67]),[_0x1fcd07([0x63,0x72,0x76])]:_0x1fcd07([0x50,0x2d,0x32,0x35,0x36]),[_0x1fcd07([0x78])]:_0x1fcd07([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]),[_0x1fcd07([0x79])]:_0x1fcd07([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]),[_0x1fcd07([0x61,0x6c,0x67])]:_0x1fcd07([0x45,0x53,0x32,0x35,0x36])},_0x108cbf=_0x5403c6[_0x1fcd07([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1fcd07([0x67,0x65,0x74])](_0x1fcd07([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4bfe45(){let _0x41d365,_0x5444b6=null,_0x117236=null;try{if(_0x108cbf==_0x1fcd07([0x47,0x50,0x4c]))return _0x1fcd07([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x41d365=_0x123357(),!_0x41d365)return _0x1fcd07([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x41d365[_0x1fcd07([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x117236=_0x42a620(_0x41d365[_0x1fcd07([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x41d365[_0x1fcd07([0x6a,0x74,0x69])])),await _0x56035c()?_0x3dd631()?_0x319895()?_0x1fcd07([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x26754f()?(_0x41d365[_0x1fcd07([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1fcd07([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5444b6=_0x1ed4ee(_0x1fcd07([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x41d365[_0x1fcd07([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1fcd07([0x74,0x72,0x69,0x61,0x6c])&&(_0x5444b6=_0x1ed4ee(_0x1fcd07([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2d86bc()):_0x1fcd07([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1fcd07([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1fcd07([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x3a6898){return _0x1fcd07([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x319895(){const _0x27fbd5=[_0x1fcd07([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1fcd07([0x74,0x72,0x69,0x61,0x6c])][_0x1fcd07([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x41d365[_0x1fcd07([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x269f5f/0x3e8:0xe10*_0x30d059;return _0x41d365[_0x1fcd07([0x65,0x78,0x70])]<_0x27fbd5;}function _0x3dd631(){const _0x4a410d=_0x41d365[_0x1fcd07([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4a410d)return!0x1;if(_0x4a410d[_0x1fcd07([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1fcd07([0x2a])))return!0x0;if(_0x4a410d[_0x1fcd07([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1fcd07([0x52,0x48])))return!0x0;if(_0x4a410d[_0x1fcd07([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1fcd07([0x52,0x52,0x48]))){if(_0x28babc())return!0x0;if(_0x8c1f22()||_0x4bb3e7())return!0x0;}return!0x1;}function _0x26754f(){const _0x2cbff0=_0x41d365[_0x1fcd07([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2cbff0||0x0==_0x2cbff0[_0x1fcd07([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x149c8e}=new URL(window[_0x1fcd07([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2cbff0[_0x1fcd07([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x149c8e))return!0x0;const _0x2fa43a=_0x149c8e[_0x1fcd07([0x73,0x70,0x6c,0x69,0x74])](_0x1fcd07([0x2e]));return _0x2cbff0[_0x1fcd07([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x20b41c=>_0x20b41c[_0x1fcd07([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1fcd07([0x2a])))[_0x1fcd07([0x6d,0x61,0x70])](_0x409248=>_0x409248[_0x1fcd07([0x73,0x70,0x6c,0x69,0x74])](_0x1fcd07([0x2e])))[_0x1fcd07([0x73,0x6f,0x6d,0x65])](_0x2c4c92=>_0x2fa43a[_0x1fcd07([0x65,0x76,0x65,0x72,0x79])]((_0x3b0399,_0xa5654d)=>_0x2c4c92[_0xa5654d]===_0x3b0399||_0x2c4c92[_0xa5654d]===_0x1fcd07([0x2a])));}function _0x2d86bc(){return _0x5444b6&&_0x117236?new window[(_0x1fcd07([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3a1413,_0x50a1a9)=>{_0x5444b6[_0x1fcd07([0x74,0x68,0x65,0x6e])](_0x3a1413,_0x50a1a9),_0x117236[_0x1fcd07([0x74,0x68,0x65,0x6e])](_0x28be2a=>{_0x28be2a!=_0x1fcd07([0x56,0x61,0x6c,0x69,0x64])&&_0x3a1413(_0x28be2a);},_0x50a1a9);}):_0x5444b6||_0x117236||_0x1fcd07([0x56,0x61,0x6c,0x69,0x64]);}}function _0x42a620(_0x2acc8d,_0x34ef6b){return new window[(_0x1fcd07([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b291c=>{if(_0x566712())return _0x3b291c(_0x1fcd07([0x56,0x61,0x6c,0x69,0x64]));_0xfe0b11(),_0x5403c6[_0x1fcd07([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1fcd07([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x435025=!0x1;const _0x569cfb=_0x5e10e6();function _0x2c5e9e(_0x4de186){return!!_0x4de186&&(typeof _0x4de186===_0x1fcd07([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4de186===_0x1fcd07([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4de186[_0x1fcd07([0x74,0x68,0x65,0x6e])]===_0x1fcd07([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4de186[_0x1fcd07([0x63,0x61,0x74,0x63,0x68])]===_0x1fcd07([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x12fdae(_0x35c7d4){_0xb97070(_0x35c7d4)[_0x1fcd07([0x74,0x68,0x65,0x6e])](_0x56cc8a=>{if(!_0x56cc8a||_0x56cc8a[_0x1fcd07([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1fcd07([0x6f,0x6b]))return _0x1fcd07([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x253a8a(_0x19d736(_0x569cfb+_0x34ef6b))!=_0x56cc8a[_0x1fcd07([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1fcd07([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1fcd07([0x56,0x61,0x6c,0x69,0x64]);})[_0x1fcd07([0x74,0x68,0x65,0x6e])](_0x1d7d96=>(_0x53f110(),_0x1d7d96),()=>{const _0xa79881=_0x1f0188();return null==_0xa79881?(_0x53f110(),_0x1fcd07([0x56,0x61,0x6c,0x69,0x64])):_0x1fcd07(_0x269f5f-_0xa79881>(0x26700f32^_0x2ef756)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1fcd07([0x74,0x68,0x65,0x6e])](_0x3b291c)[_0x1fcd07([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3b291c(_0x1fcd07([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x6f736f=0x24a65b2^_0x2ef756;function _0x53f110(){const _0x514138=_0x1fcd07([0x6c,0x6c,0x63,0x74,0x2d])+_0x253a8a(_0x19d736(_0x2acc8d)),_0x3d3026=_0x53cb56(_0x253a8a(window[_0x1fcd07([0x4d,0x61,0x74,0x68])][_0x1fcd07([0x63,0x65,0x69,0x6c])](_0x269f5f/_0x6f736f)));window[_0x1fcd07([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1fcd07([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x514138,_0x3d3026);}function _0x1f0188(){const _0x479e2a=_0x1fcd07([0x6c,0x6c,0x63,0x74,0x2d])+_0x253a8a(_0x19d736(_0x2acc8d)),_0xef89a1=window[_0x1fcd07([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1fcd07([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x479e2a);return _0xef89a1?window[_0x1fcd07([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x53cb56(_0xef89a1),0x10)*_0x6f736f:null;}function _0xb97070(_0x4173c6){return new window[(_0x1fcd07([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4ac418,_0x260a7f)=>{_0x4173c6[_0x1fcd07([0x74,0x68,0x65,0x6e])](_0x4ac418,_0x260a7f),window[_0x1fcd07([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x260a7f,0x27d5ff2^_0x2ef756);});}}_0x5403c6[_0x1fcd07([0x6f,0x6e])](_0x1fcd07([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1e26d2,_0x4248b5)=>{if(_0x4248b5[0x0]!=_0x2acc8d)return _0x3b291c(_0x1fcd07([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4248b5[0x1]={..._0x4248b5[0x1],[_0x1fcd07([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x569cfb};},{[_0x1fcd07([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1fcd07([0x68,0x69,0x67,0x68])}),_0x5403c6[_0x1fcd07([0x6f,0x6e])](_0x1fcd07([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x196e67=>{_0x2c5e9e(_0x196e67[_0x1fcd07([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x435025=!0x0,_0x12fdae(_0x196e67[_0x1fcd07([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1fcd07([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1fcd07([0x6c,0x6f,0x77])}),_0x19a3e2[_0x1fcd07([0x74,0x68,0x65,0x6e])](()=>{_0x435025||_0x3b291c(_0x1fcd07([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x566712(){return _0x5403c6[_0x1fcd07([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1fcd07([0x76,0x69,0x65,0x77])][_0x1fcd07([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1fcd07([0x61,0x75,0x74,0x6f]);}function _0xfe0b11(){_0x5403c6[_0x1fcd07([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1fcd07([0x76,0x69,0x65,0x77])][_0x1fcd07([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1fcd07([0x61,0x75,0x74,0x6f]);}}function _0x1ed4ee(_0x592410){const _0x3bcf2c=[new window[(_0x1fcd07([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x582079=>setTimeout(_0x582079,0x275b5fe^_0x2ef756)),_0x19a3e2[_0x1fcd07([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1fcd07([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xf8cccb=>{const _0x39b99b=0x27c8b35^_0x2ef756,_0x2f9937=_0x4ef321[_0x1fcd07([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x454ab8(){_0x2f9937[_0x1fcd07([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x39b99b&&_0xf8cccb();}_0x454ab8(),_0x2f9937[_0x1fcd07([0x6f,0x6e])](_0x1fcd07([0x61,0x64,0x64]),_0x454ab8);})),new window[(_0x1fcd07([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5abc10=>{function _0x1906ee(){for(const _0x23a54f in window)if(window[_0x1fcd07([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x1fcd07([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x23a54f))&&window[_0x23a54f]==_0x4ef71d)return _0x5abc10();_0x5403c6[_0x1fcd07([0x73,0x74,0x61,0x74,0x65])]!=_0x1fcd07([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x1fcd07([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1906ee,0x27c98ba^_0x2ef756);}_0x1e672f(_0x1fcd07([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x1906ee();})];return window[_0x1fcd07([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1fcd07([0x72,0x61,0x63,0x65])](_0x3bcf2c)[_0x1fcd07([0x74,0x68,0x65,0x6e])](()=>_0x592410);}async function _0x4e8e5f(){if(await _0x19a3e2,_0x1e672f(_0x1fcd07([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x77d9d6=_0x4ef321[_0x1fcd07([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x495803=_0x4ef321[_0x1fcd07([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])](_0x77d9d6[_0x1fcd07([0x69,0x64])]),_0x32eb4c=_0xeed6eb(_0x1fcd07([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x32eb4c[_0x1fcd07([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x77d9d6['id'],_0x495803?_0x495803['id']:null,!0x0),_0x32eb4c[_0x1fcd07([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x1fcd07([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x32eb4c[_0x1fcd07([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x32eb4c[_0x1fcd07([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x16e3f4,void(_0x32eb4c[_0x1fcd07([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x16e3f4);}if(_0x1e672f(_0x1fcd07([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x5bac4c=_0xeed6eb(_0x1fcd07([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x5bac4c[_0x1fcd07([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x1fcd07([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x5bac4c[_0x1fcd07([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x5bac4c[_0x1fcd07([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x16e3f4,_0x5bac4c[_0x1fcd07([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x16e3f4;}_0x5403c6[_0x1fcd07([0x6d,0x6f,0x64,0x65,0x6c])][_0x1fcd07([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x16e3f4,_0x5403c6[_0x1fcd07([0x6d,0x6f,0x64,0x65,0x6c])][_0x1fcd07([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x16e3f4,_0x5403c6[_0x1fcd07([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1fcd07([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x28babc(){return _0x1e672f(_0x1fcd07([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0xeed6eb(_0x1fcd07([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x1fcd07([0x73,0x74,0x61,0x74,0x65])]==_0x1fcd07([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x8c1f22(){return _0x1e672f(_0x1fcd07([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 _0x4bb3e7(){return _0x1e672f(_0x1fcd07([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x4c693a(_0x2662f2){const _0x4bcaa6=_0x4f10c9();_0x5403c6[_0x4bcaa6]=_0x1fcd07([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])+_0x2662f2,_0x2662f2[_0x1fcd07([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x1fcd07([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x4f10c9()]=_0x4ef71d),_0x2662f2!=_0x1fcd07([0x56,0x61,0x6c,0x69,0x64])&&_0x4e8e5f();}function _0x4f10c9(){const _0x199134=window[_0x1fcd07([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1fcd07([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1fcd07([0x6e,0x6f,0x77])]())[_0x1fcd07([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1fcd07([0x2e]),'');let _0x3345f9=_0x1fcd07([0x41]);for(let _0x4f4faa=0x0;_0x4f4faa<_0x199134[_0x1fcd07([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4f4faa+=0x2){let _0x1eed0c=window[_0x1fcd07([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x199134[_0x1fcd07([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4f4faa,_0x4f4faa+0x2));_0x1eed0c>=_0x2a562c[_0x1fcd07([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1eed0c-=_0x2a562c[_0x1fcd07([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3345f9+=_0x2a562c[_0x1eed0c];}return _0x3345f9;}function _0x123357(){const _0xc7451f=_0x108cbf[_0x1fcd07([0x73,0x70,0x6c,0x69,0x74])](_0x1fcd07([0x2e]));if(0x3!=_0xc7451f[_0x1fcd07([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5e723d(_0xc7451f[0x1]);function _0x5e723d(_0x5abbf4){const _0x3375c0=_0xb8f539(_0x5abbf4);return _0x3375c0&&_0x2957af()?_0x3375c0:null;function _0x2957af(){const _0x2aa2=_0x3375c0[_0x1fcd07([0x6a,0x74,0x69])],_0x4c3386=window[_0x1fcd07([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2aa2[_0x1fcd07([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2aa2[_0x1fcd07([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x18b21c={..._0x3375c0,[_0x1fcd07([0x6a,0x74,0x69])]:_0x2aa2[_0x1fcd07([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2aa2[_0x1fcd07([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x18b21c[_0x1fcd07([0x76,0x63])],_0x19d736(_0x18b21c)==_0x4c3386;}}}async function _0x56035c(){let _0x43015c=!0x0;try{const _0x379a6a=_0x108cbf[_0x1fcd07([0x73,0x70,0x6c,0x69,0x74])](_0x1fcd07([0x2e])),[_0x5eac84,_0x21a1f7,_0x184dc2]=_0x379a6a;return _0x2f7c33(_0x5eac84),await _0x399270(_0x5eac84,_0x21a1f7,_0x184dc2),_0x43015c;}catch(_0x3c5922){return!0x1;}function _0x2f7c33(_0x803ea0){const _0x4ed049=_0xb8f539(_0x803ea0);_0x4ed049&&_0x4ed049[_0x1fcd07([0x61,0x6c,0x67])]==_0x1fcd07([0x45,0x53,0x32,0x35,0x36])||(_0x43015c=!0x1);}async function _0x399270(_0x2b5936,_0x4031fa,_0x20d87b){const _0x2c4212=window[_0x1fcd07([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1fcd07([0x66,0x72,0x6f,0x6d])](_0x36e4d2(_0x20d87b),_0x2a872c=>_0x2a872c[_0x1fcd07([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x40b524=new window[(_0x1fcd07([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1fcd07([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2b5936+_0x1fcd07([0x2e])+_0x4031fa),_0x34d728=window[_0x1fcd07([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1fcd07([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x34d728)return;const _0x44bf37=await _0x34d728[_0x1fcd07([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1fcd07([0x6a,0x77,0x6b]),_0x55bdab,{[_0x1fcd07([0x6e,0x61,0x6d,0x65])]:_0x1fcd07([0x45,0x43,0x44,0x53,0x41]),[_0x1fcd07([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1fcd07([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1fcd07([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x34d728[_0x1fcd07([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1fcd07([0x6e,0x61,0x6d,0x65])]:_0x1fcd07([0x45,0x43,0x44,0x53,0x41]),[_0x1fcd07([0x68,0x61,0x73,0x68])]:{[_0x1fcd07([0x6e,0x61,0x6d,0x65])]:_0x1fcd07([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x44bf37,_0x2c4212,_0x40b524)||(_0x43015c=!0x1);}}function _0xb8f539(_0x251b54){return _0x251b54[_0x1fcd07([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1fcd07([0x65,0x79]))?JSON[_0x1fcd07([0x70,0x61,0x72,0x73,0x65])](_0x36e4d2(_0x251b54)):null;}function _0x36e4d2(_0x4ea771){return window[_0x1fcd07([0x61,0x74,0x6f,0x62])](_0x4ea771[_0x1fcd07([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1fcd07([0x2b]))[_0x1fcd07([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1fcd07([0x2f])));}function _0x19d736(_0x12da3b){let _0x35cf24=0x1505;function _0x225a7d(_0x4f7844){for(let _0x126b76=0x0;_0x126b76<_0x4f7844[_0x1fcd07([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x126b76++){const _0x3bb909=_0x4f7844[_0x1fcd07([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x126b76);_0x35cf24=(_0x35cf24<<0x5)+_0x35cf24+_0x3bb909,_0x35cf24&=_0x35cf24;}}function _0x2d5e23(_0x5ab5f4){Array[_0x1fcd07([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5ab5f4)?_0x5ab5f4[_0x1fcd07([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2d5e23):_0x5ab5f4&&typeof _0x5ab5f4==_0x1fcd07([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1fcd07([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5ab5f4)[_0x1fcd07([0x73,0x6f,0x72,0x74])]()[_0x1fcd07([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x464b55,_0x445d3f])=>{_0x225a7d(_0x464b55),_0x2d5e23(_0x445d3f);}):_0x225a7d(window[_0x1fcd07([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5ab5f4));}return _0x2d5e23(_0x12da3b),_0x35cf24>>>0x0;}function _0x253a8a(_0xb74e41){return _0xb74e41[_0x1fcd07([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1fcd07([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1fcd07([0x30]));}function _0x53cb56(_0xddd819){return _0xddd819[_0x1fcd07([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1fcd07([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1fcd07([0x6a,0x6f,0x69,0x6e])]('');}function _0x1e672f(_0x33123c){return _0x5403c6[_0x1fcd07([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1fcd07([0x68,0x61,0x73])](_0x33123c);}function _0xeed6eb(_0x5d3265){return _0x5403c6[_0x1fcd07([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1fcd07([0x67,0x65,0x74])](_0x5d3265);}function _0x16e3f4(){}function _0x1fcd07(_0x692c06){return _0x692c06['map'](_0x252236=>String['fromCharCode'](_0x252236))['join']('');}_0x4c693a(await _0x4bfe45());}(this);}['createRevision'](_0x3799f6){const _0x307c6a=this['editor']['plugins']['get']('Users');return new h({'id':_0x3799f6['id'],'name':_0x3799f6['name'],'creator':_0x3799f6['creatorId']?_0x307c6a['getUser'](_0x3799f6['creatorId']):null,'diffData':_0x3799f6['diffData']||_0x3799f6['data'],'authors':_0x3799f6['authorsIds']['map'](_0x1a1ade=>_0x307c6a['getUser'](_0x1a1ade)),'createdAt':new Date(_0x3799f6['createdAt']),'attributes':_0x3799f6['attributes'],'fromVersion':_0x3799f6['fromVersion'],'toVersion':_0x3799f6['toVersion']});}['addRevision'](_0x232f5f,_0x24ede0=0x0){this['_revisions']['add'](_0x232f5f,_0x24ede0);}['getRevision'](_0x4a5e1a){return this['_revisions']['get'](_0x4a5e1a);}['getRevisions'](_0x2c5f2f={'toJSON':!0x1}){const _0xd6894b=Array['from'](this['_revisions']);return _0xd6894b['reverse'](),_0x2c5f2f['toJSON']?_0xd6894b['map'](_0x575e16=>_0x575e16['toJSON']()):_0xd6894b;}['getIndex'](_0x1d49d1){return this['_revisions']['getIndex'](_0x1d49d1);}['getEarlierVisibleRevision'](_0x15de17){const [,_0x51343d]=this['getRevisionsIterator'](_0x15de17,{'direction':'earlier'});return _0x51343d;}['getLaterVisibleRevision'](_0x3c24c6){const [,_0x4ab0bc]=this['getRevisionsIterator'](_0x3c24c6,{'direction':'later'});return _0x4ab0bc;}['getRevisionsInDiff'](_0x473fd8){const _0x5415f2=[];for(const _0x560305 of this['getRevisionsIterator'](_0x473fd8['newRevisionId']))if(_0x5415f2['push'](_0x560305),_0x560305['id']===_0x473fd8['oldRevisionId'])break;return _0x5415f2;}*['getRevisionsIterator'](_0x235abe,{direction:_0x23b7b4='earlier',filter:_0x425ced=()=>!0x0}={}){const _0x4fdc7d='earlier'===_0x23b7b4?0x1:-0x1;let _0x1f52c7=this['_revisions']['get'](_0x235abe),_0x2d1540=this['getIndex'](_0x1f52c7);for(yield _0x1f52c7;_0x1f52c7;){if(_0x2d1540+=_0x4fdc7d,_0x1f52c7=this['getRevision'](_0x2d1540),!_0x1f52c7)return;_0x425ced(_0x1f52c7)&&(yield _0x1f52c7);}}}function m(_0x1908a5,_0x32fce7,_0x13f64d){const t=_0x1908a5['t'];switch(_0x32fce7){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'},_0x13f64d);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x13f64d);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const E={'c':_0xc94dac,'a':_0x42d014,'e':_0x499499,'r':_0x2a65a8,'u':_0x33d900};class u extends _0x3cb746{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x5d288c,j,_0x41f7d1];}constructor(_0x206c55){super(_0x206c55),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x4f4f4e=_0x5e10e6();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x4f4f4e},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x5fa4d9=this['repository']['getRevision'](0x0),_0x2226f4=_0x5fa4d9&&null===_0x5fa4d9['creator']?_0x5fa4d9:null;if(this['_continueCurrentRevision']=!!_0x2226f4&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x1b7068=this['_source']['getCurrentRevisionId'](),_0x43024f=this['repository']['getRevision'](_0x1b7068);if(_0x43024f)this['_startingVersion']=_0x43024f['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0xba23ef=this['_source']['history']['_operations']['find'](_0x3f34d0=>!_0x3f34d0['_isInit']),_0x3a9f5f=_0xba23ef?_0xba23ef['baseVersion']:this['_source']['history']['version'];_0x5fa4d9?(_0x5fa4d9['toVersion']<_0x3a9f5f&&_0x5fa4d9['_update']({'toVersion':_0x3a9f5f}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x2226f4['id'],this['_startingVersion']=_0x2226f4['fromVersion']):(this['_startingVersion']=_0x5fa4d9['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x3a9f5f,this['_continueCurrentRevision']=!0x1);}}else _0x2226f4&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x2226f4['toVersion'],this['editor']['model']['document']['history']['version']),_0x2226f4['fromVersion']===_0x2226f4['toVersion']?(0x0!==_0x2226f4['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x2226f4['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x2226f4['id'],this['_startingVersion']=_0x2226f4['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',_0x9ce7ca=>!_0x9ce7ca),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1cc691=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xe7517a;for(const _0x3ea81a in _0x1cc691){const _0x356c65=_0x3ea81a,_0x27c993=_0x1cc691[_0x356c65];if('revisionHistoryLicenseKeyValid'==_0x27c993||'revisionHistoryLicenseKeyInvalid'==_0x27c993||'revisionHistoryLicenseKeyExpired'==_0x27c993||'revisionHistoryLicenseKeyDomainLimit'==_0x27c993||'revisionHistoryLicenseKeyNotAllowed'==_0x27c993||'revisionHistoryLicenseKeyEvaluationLimit'==_0x27c993||'revisionHistoryLicenseKeyTrialLimit'==_0x27c993||'revisionHistoryLicenseKeyUsageLimit'==_0x27c993){delete _0x1cc691[_0x356c65],_0xe7517a=_0x27c993,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0xe7517a&&_0x1cc691['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0xe7517a&&_0x1cc691['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0xe7517a&&_0x1cc691['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0xe7517a&&_0x1cc691['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0xe7517a&&_0x1cc691['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0xe7517a&&_0x1cc691['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0xe7517a&&_0x1cc691['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x282328=this['repository']['getRevision'](0x0),_0x332167=await this['getRevisionDocumentData'](_0x282328),_0x56a297=await this['getRevisionRootsAttributes'](_0x282328);this['_replaceEditorDataWithRevisionData'](_0x332167,_0x56a297);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0xfdc8ac){this['_source']=_0xfdc8ac;}async['update'](){const _0x52603a=await this['_source']['getLatestVersion']();if(_0x52603a>this['currentRevision']['toVersion']){await this['_loadState']();const _0x54384d=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x52603a});_0x54384d['authors']=_0x54384d['authorsIds']['map'](_0x5892fa=>this['editor']['plugins']['get']('Users')['getUser'](_0x5892fa)),this['currentRevision']['_update'](_0x54384d);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0x3112e1={},_0x4316a6=null){const _0x4b4202=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x4316a6>this['currentRevision']['toVersion']&&(_0x4316a6=null),null===_0x4316a6&&(_0x4316a6=await this['_source']['getLatestVersion']());const _0x24856f=this['_getFromVersion'](_0x4316a6),_0x5505ee=this['buildRevisionData']({'from':_0x24856f,'to':_0x4316a6});if(this['currentRevision']['toVersion']<_0x4316a6){const _0x1e2711=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x4316a6,'to':_0x4316a6});_0x1e2711['authors']=[],_0x1e2711['authorsIds']=[],_0x1e2711['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x1e2711,!0x0),delete _0x1e2711['authors'],_0x4b4202['push'](_0x1e2711);}_0x3112e1['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x3112e1['name']=_0x3112e1['name']||null,_0x3112e1['id']=_0x3112e1['id']||_0x5e10e6(),_0x3112e1={..._0x3112e1,..._0x5505ee};const _0x3e6d84=this['addRevisionData'](_0x3112e1);_0x4b4202['push'](_0x3112e1);const _0x3f18a6=this['repository']['getIndex'](_0x3e6d84);if(0x0!==_0x3f18a6){const _0x5438a2=this['repository']['getRevision'](_0x3f18a6-0x1);if(_0x5438a2['fromVersion']!==_0x4316a6){const _0x5e8666=this['_revisionDataBuilder']['getData'](_0x4316a6,_0x5438a2['toVersion']),_0x36baee={'id':_0x5438a2['id'],'diffData':_0x5e8666['diffData'],'authorsIds':_0x5e8666['authorsIds'],'authors':_0x5e8666['authorsIds']['map'](_0x12b3de=>this['editor']['plugins']['get']('Users')['getUser'](_0x12b3de)),'fromVersion':_0x4316a6};_0x5438a2===this['currentRevision']&&(_0x36baee['createdAt']=new Date(_0x3112e1['createdAt']['getTime']()+0xa)),_0x5438a2['_update'](_0x36baee,!0x0),delete _0x36baee['authors'],_0x4b4202['push'](_0x36baee);}}if(this['adapter']){for(const _0x40b07f of _0x4b4202)this['_bufferUpdate'](_0x40b07f['id'],_0x40b07f,!0x0);this['sendBufferedUpdates']();}return _0x3e6d84;}['addRevisionData'](_0x324429){const _0x15f93a=this['repository']['createRevision'](_0x324429);return this['adapter']&&_0x15f93a['on']('_update',(_0x5600cb,_0x9577de,_0x229eb0)=>{_0x229eb0||(this['_bufferUpdate'](_0x9577de['id'],_0x9577de,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x15f93a,this['_findInsertionIndex'](_0x15f93a)),_0x15f93a;}async['getRevisionDocumentData'](_0x59727c){await this['_loadRevisionData'](_0x59727c);const _0x45ff71={};for(const _0x4e2b89 in _0x59727c['diffData']){if(_0x59727c['diffData'][_0x4e2b89]['attachChange']&&!_0x59727c['diffData'][_0x4e2b89]['attachChange']['isAttached'])continue;const _0x256609=this['_removeRevisionMarkers'](JSON['parse'](_0x59727c['diffData'][_0x4e2b89]['insertions'])),_0x5d7baf=this['editor']['editing']['view']['document'],_0x8039f3=new _0x413e02(_0x5d7baf,_0x256609['map'](_0x455c69=>P(_0x455c69,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x45ff71[_0x4e2b89]=this['editor']['data']['processor']['toData'](_0x8039f3),this['editor']['data']['processor']['useFillerType']('default');}return _0x45ff71;}async['getRevisionRootsAttributes'](_0x43408c){await this['_loadRevisionData'](_0x43408c);const _0x563126={};for(const _0x2373c5 in _0x43408c['diffData'])_0x43408c['diffData'][_0x2373c5]['attachChange']&&!_0x43408c['diffData'][_0x2373c5]['attachChange']['isAttached']||(_0x563126[_0x2373c5]=_0x43408c['diffData'][_0x2373c5]['attributesAfter']||{});return _0x563126;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x518e9a=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x1908aa=0x0;_0x1908aa<_0x518e9a['length'];_0x1908aa++){const _0x3886db=_0x518e9a[_0x1908aa];let _0x4512d3=!0x1;for(const _0x164790 of Object['keys'](_0x3886db))void 0x0===_0x3886db[_0x164790]?delete _0x3886db[_0x164790]:'id'!==_0x164790&&(_0x4512d3=!0x0);_0x4512d3||(_0x518e9a[_0x1908aa]=null);}if(_0x518e9a=_0x518e9a['filter'](_0x3c052e=>null!==_0x3c052e),!_0x518e9a['length'])return;for(let _0x329947=0x0;_0x329947<_0x518e9a['length'];_0x329947++){const _0xd0e492=_0x518e9a[_0x329947];void 0x0!==_0xd0e492['fromVersion']&&void 0x0===_0xd0e492['toVersion']&&(_0xd0e492['toVersion']=this['repository']['getRevision'](_0xd0e492['id'])['toVersion']),void 0x0!==_0xd0e492['toVersion']&&void 0x0===_0xd0e492['fromVersion']&&(_0xd0e492['fromVersion']=this['repository']['getRevision'](_0xd0e492['id'])['fromVersion']);}const _0x28a729=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x518e9a,_0x28a729)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x1f8197=>{if(_0x1f8197){for(const _0x12153d of _0x1f8197)this['setRevisionData']({'id':_0x12153d['id'],'createdAt':_0x12153d['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x1d73d7,_0x1da784){let _0x5dacb9=this['editor']['config']['get']('initialData'),_0x2991ed=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x5dacb9){_0x5dacb9={};for(const _0x399d12 of this['editor']['model']['document']['getRootNames']())_0x5dacb9[_0x399d12]='';}if('string'==typeof _0x5dacb9&&(_0x5dacb9={'main':_0x5dacb9}),void 0x0===_0x2991ed){_0x2991ed={};for(const _0x3fd922 of this['editor']['model']['document']['getRootNames']())_0x2991ed[_0x3fd922]={};}let _0xb2f715=!0x1;const _0xf02745=Object['keys'](_0x5dacb9),_0x99c321=Object['keys'](_0x1d73d7);for(const _0x42dea8 of _0xf02745){if(_0x5dacb9[_0x42dea8]!==_0x1d73d7[_0x42dea8]&&''!==_0x5dacb9[_0x42dea8]['trim']()){_0xb2f715=!0x0;break;}if(!_0x4cd24f(_0x2991ed[_0x42dea8],_0x1da784[_0x42dea8])&&Object['keys'](_0x2991ed[_0x42dea8])['length']>0x0){_0xb2f715=!0x0;break;}}_0xb2f715||(_0xb2f715=_0x99c321['some'](_0x2e0aa1=>!this['editor']['model']['document']['getRoot'](_0x2e0aa1))),_0xb2f715&&_0x55b76a('editor-initial-data-replaced-with-revision-data',{'editorData':_0x5dacb9,'editorRootsAttributes':_0x2991ed,'revisionData':_0x1d73d7,'revisionRootsAttributes':_0x1da784}),this['editor']['config']['set']('initialData',_0x1d73d7),this['editor']['config']['set']('rootsAttributes',_0x1da784);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x59fe31=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x59fe31['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x5e5ba8){const _0x1756d5=this['repository']['getRevisions']();_0x1756d5['reverse']();let _0x3cd244=0x0;for(;_0x3cd244<_0x1756d5['length'];){const _0x501153=_0x1756d5[_0x3cd244];if(_0x501153===this['currentRevision']){_0x3cd244++;continue;}if(_0x501153['id']===this['_initialRevisionId'])break;const _0x18a43f=_0x5e5ba8['toVersion']-_0x501153['toVersion']||_0x5e5ba8['fromVersion']-_0x501153['fromVersion'];if(_0x18a43f>0x0)break;if(_0x18a43f<0x0)_0x3cd244++;else{if(!_0x5e5ba8['creator']&&_0x501153['creator'])break;if(_0x501153['creator']||!_0x5e5ba8['creator']){if(_0x5e5ba8['createdAt']>_0x501153['createdAt'])break;_0x3cd244++;}else _0x3cd244++;}}return _0x3cd244;}['setRevisionData'](_0x5df879){const _0x1e6431=this['repository']['getRevision'](_0x5df879['id']);if(_0x5df879['createdAt']&&(_0x5df879['createdAt']=new Date(_0x5df879['createdAt'])),_0x5df879['authorsIds']){const _0x14f225=this['editor']['plugins']['get']('Users');_0x5df879['authors']=_0x5df879['authorsIds']['map'](_0x3be518=>_0x14f225['getUser'](_0x3be518));}_0x1e6431['_update'](_0x5df879,!0x0);}['buildRevisionData']({revision:_0x4d6683=null,from:_0x515187=null,to:_0x189a5a=null}){_0x515187=null!==_0x515187?_0x515187:_0x4d6683['fromVersion'],_0x189a5a=null!==_0x189a5a?_0x189a5a:_0x4d6683['toVersion'];const _0x12c83a=this['_revisionDataBuilder']['getData'](_0x515187,_0x189a5a),_0x20ed8e={'diffData':_0x12c83a['diffData'],'authorsIds':_0x12c83a['authorsIds'],'fromVersion':_0x515187,'toVersion':_0x189a5a};if(!_0x4d6683||_0x189a5a!==_0x4d6683['toVersion']){const _0x4911a9=_0x189a5a-0x1,_0x15f559=this['_source']['history']['getOperation'](_0x4911a9);_0x20ed8e['createdAt']=_0x15f559&&_0x15f559['createdAt']||new Date();}if(this['_loadedStateData']&&_0x515187===this['_loadedStateData']['fromVersion']){for(const _0x1bcec8 of this['_loadedStateData']['authors'])_0x20ed8e['authorsIds']['includes'](_0x1bcec8['id'])||_0x20ed8e['authorsIds']['push'](_0x1bcec8['id']);}return _0x20ed8e;}['_loadRevisionData'](_0x4581b0){if(!_0x4581b0||_0x4581b0['diffData'])return Promise['resolve']();{const _0x1d2944=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x1d2944,'revisionId':_0x4581b0['id']})['then'](_0xb6ddca=>{_0x4581b0['diffData']=_0xb6ddca['diffData'];});}}['_bufferUpdate'](_0x5ca72e,_0x5e0238,_0x4c524d){if(this['_bufferedUpdates']['has'](_0x5ca72e)){const _0x372050=this['_bufferedUpdates']['get'](_0x5ca72e);_0x5e0238=_0x4c524d?{..._0x372050,..._0x5e0238}:{..._0x5e0238,..._0x372050};}this['_bufferedUpdates']['set'](_0x5ca72e,_0x5e0238);}['_getFromVersion'](_0x462e0b){const _0xc352fc=this['repository']['getRevisions']();_0xc352fc['reverse'](),_0xc352fc['shift']();const _0x432b81=_0xc352fc['find'](_0x18b9ab=>_0x18b9ab['toVersion']<=_0x462e0b)['toVersion'];return _0x432b81<this['_startingVersion']?this['_startingVersion']:_0x432b81;}['_createInitialRevision'](_0x39e114){const _0x38419e=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x38419e)this['_initialRevisionId']=_0x38419e['id'];else{const _0x2c1b5=!this['editor']['model']['document']['roots']['find'](_0x4572b3=>this['editor']['model']['hasContent'](_0x4572b3)),_0x27251f=this['editor']['plugins']['get']('Users')['me']['id'],_0x1b2949=m(this['editor']['locale'],_0x2c1b5?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x39e114,'to':_0x39e114,'id':this['_initialRevisionId'],'name':_0x1b2949,'creatorId':_0x27251f});}}['_createCurrentRevision'](_0x5ec497){const _0x5565a0=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x5565a0),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x5ec497,'to':_0x5ec497,'id':_0x5565a0,'name':'','creatorId':null}));}['_makeRevision']({name:_0xc75d23,from:_0x3f62d9,to:_0x2474c7,creatorId:_0x302b9c,id:_0x1b0e70}){const _0x5c589d=this['buildRevisionData']({'from':_0x3f62d9,'to':_0x2474c7});_0x5c589d['name']=_0xc75d23,_0x5c589d['creatorId']=_0x302b9c,_0x5c589d['id']=_0x1b0e70;const _0x15fef6=this['addRevisionData'](_0x5c589d);return this['adapter']&&this['_bufferUpdate'](_0x5c589d['id'],_0x5c589d,!0x0),_0x15fef6;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x5999c9){return(_0x5999c9=_0x5999c9['filter'](_0x38b1d8=>!_0x38b1d8['name']||'revision-start'!==_0x38b1d8['name']&&'revision-end'!==_0x38b1d8['name']))['forEach'](_0x351ea1=>{'string'!=typeof _0x351ea1&&(_0x351ea1['children']=this['_removeRevisionMarkers'](_0x351ea1['children']),_0x351ea1['attributes']=_0x351ea1['attributes']['filter'](_0x2057da=>!_0x2057da[0x0]['startsWith']('data-revision-')));}),_0x5999c9;}}function P(_0x5a65c7,_0xf68032){const _0x1d19f7=_0xf68032['editing']['view']['document'];if('string'==typeof _0x5a65c7)return new _0xff6857(_0x1d19f7,_0x5a65c7);{const _0x5b595e=_0x5a65c7['children']['map'](_0x35c0fe=>P(_0x35c0fe,_0xf68032));return new(E[_0x5a65c7['type']]||_0x363a6e)(_0x1d19f7,_0x5a65c7['name'],_0x5a65c7['attributes'],_0x5b595e);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x26bd05){this['editor']=_0x26bd05,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'](_0x1f6bdf){this['source']=_0x1f6bdf;const _0x471d26=new Map(),_0x373c3a=new Map(),_0x12b1fa=this['editor']['model']['document']['roots']['map'](_0x1483d0=>_0x1483d0['rootName']);for(const _0x3f01d2 of _0x12b1fa){const _0x356f1b=this['editor']['model']['document']['getRoot'](_0x3f01d2),_0xd2bc51=T(_0x356f1b);_0x471d26['set'](_0x3f01d2,_0xd2bc51),_0x373c3a['set'](_0x3f01d2,Object['fromEntries'](_0x356f1b['getAttributes']()));}const _0x3e1a52=Array['from'](this['editor']['model']['markers'])['map'](_0x380715=>[_0x380715['name'],_0x380715['getRange']()]),_0x371e07=this['source']['version'];this['_saveMetaData'](_0x371e07,_0x471d26,_0x3e1a52,_0x373c3a),this['_startingRevisionId']=this['_revisionId'];const _0x2fb890=new Map(),_0x58b83a=new Map();for(const _0x38245f of _0x12b1fa){const _0x5d00de=F(_0x38245f);_0x2fb890['set'](_0x38245f,_0x5d00de),_0x58b83a['set'](_0x38245f,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x2fb890,[],_0x58b83a);}['getData'](_0x39bc0e,_0x3d32c6){if(this['_lastFrom']===_0x39bc0e&&this['_lastTo']<=_0x3d32c6)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x3d32c6,!0x0);else{if(!this['_savedMetaData']['has'](_0x39bc0e)){const _0x15c2d5=this['_getPreviousFrom'](_0x39bc0e);this['_calculateMetaData'](_0x15c2d5,_0x39bc0e,!0x1);}this['_calculateMetaData'](_0x39bc0e,_0x3d32c6,!0x0);}return this['_lastFrom']=_0x39bc0e,this['_lastTo']=_0x3d32c6,this['_getState']();}['loadState'](_0x5affc5){this['_reset'](),this['_lastFrom']=_0x5affc5['fromVersion'],this['_lastTo']=_0x5affc5['toVersion'];for(const _0x5d2ecb in _0x5affc5['diffData']){const _0x3e72f4=_0x5affc5['diffData'][_0x5d2ecb]['attachChange'],_0x356c35=_0x2810e6(_0x5affc5['diffData'][_0x5d2ecb]['attributesBefore'])||{},_0x42b371=this['_makeModelFromViewString'](_0x5affc5['diffData'][_0x5d2ecb]['deletions']);_0x42b371['rootName']=_0x5d2ecb,_0x42b371['_isAttached']=!_0x3e72f4||!_0x3e72f4['isAttached'],_0x42b371['isAttached']=()=>_0x42b371['_isAttached'],this['_baseRoots']['set'](_0x5d2ecb,_0x42b371),this['_baseRootsAttributes']['set'](_0x5d2ecb,_0x356c35),_0x3e72f4&&this['_touchedRoots']['set'](_0x5d2ecb,_0x3e72f4);const _0x187f20=this['_makeIdsRoot'](_0x42b371);this['_baseIdsRoots']['set'](_0x5d2ecb,_0x187f20);for(const [_0x3084f9,_0xb93c02]of _0x42b371['markers']){if(!_0x3084f9['startsWith']('revision:'))continue;const _0x54993a=_0x3084f9['split'](':')[0x2];for(const _0x258b1e of _0xb93c02['getWalker']({'singleCharacters':!0x0})){const _0x3e3748=this['_getVidAttributeName'](_0x258b1e),_0x3b1794='elementEnd'==_0x258b1e['type']?_0x258b1e['previousPosition']['path']['slice'](0x0,-0x1):_0x258b1e['previousPosition']['path'],_0x2369fc=_0x187f20['getNodeByPath'](_0x3b1794)['getAttribute'](_0x3e3748);this['_touched']['set'](_0x2369fc,{'userId':_0x54993a});}}}this['_startingRevisionId']=this['_revisionId'];const _0x28216c=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x14e6b3=>!this['_touched']['has'](_0x14e6b3));let _0x5b66df=0x0;const _0x41fe89=new Map();for(const _0x34d682 in _0x5affc5['diffData']){const _0x220b34=_0x5affc5['diffData'][_0x34d682]['attachChange'],_0x5149fc=_0x2810e6(_0x5affc5['diffData'][_0x34d682]['attributesAfter'])||{},_0x600dec=this['_makeModelFromViewString'](_0x5affc5['diffData'][_0x34d682]['insertions']);_0x600dec['rootName']=_0x34d682,_0x600dec['_isAttached']=!_0x220b34||_0x220b34['isAttached'],_0x600dec['isAttached']=()=>_0x600dec['_isAttached'],this['_diffRoots']['set'](_0x34d682,_0x600dec),this['_diffRootsAttributes']['set'](_0x34d682,_0x5149fc);const _0x2ed2ca=this['_makeIdsRoot'](_0x600dec,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x34d682,_0x2ed2ca),_0x41fe89['set'](_0x34d682,_0x600dec['isAttached']()?_0x5149fc:{});for(const [_0xbb6a68,_0x4b34ff]of _0x600dec['markers']){if(!_0xbb6a68['startsWith']('revision:'))continue;const _0x48deb7=_0xbb6a68['split'](':')[0x2];for(const _0x40b7b7 of _0x4b34ff['getWalker']({'singleCharacters':!0x0})){const _0x3b386b=this['_getVidAttributeName'](_0x40b7b7),_0x3a47f1=this['_revisionId']++,_0x483b3a='elementEnd'==_0x40b7b7['type']?_0x40b7b7['previousPosition']['path']['slice'](0x0,-0x1):_0x40b7b7['previousPosition']['path'];_0x2ed2ca['getNodeByPath'](_0x483b3a)['_setAttribute'](_0x3b386b,_0x3a47f1),this['_touched']['set'](_0x3a47f1,{'userId':_0x48deb7});}}for(const _0x2d8d42 of this['editor']['model']['createRangeIn'](_0x600dec)['getWalker']({'singleCharacters':!0x0})){const _0x396835=this['_getVidAttributeName'](_0x2d8d42),_0x5c46b9='elementEnd'==_0x2d8d42['type']?_0x2d8d42['previousPosition']['path']['slice'](0x0,-0x1):_0x2d8d42['previousPosition']['path'],_0x354950=_0x2ed2ca['getNodeByPath'](_0x5c46b9);_0x354950['getAttribute'](_0x396835)>0x0||_0x354950['_setAttribute'](_0x396835,_0x28216c[_0x5b66df++]);}for(const [_0x21bf4e,_0x233d7a]of _0x600dec['markers'])_0x21bf4e['startsWith']('revision:')||this['_markers']['set'](_0x21bf4e,_0x233d7a);}const _0x58578c=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x58578c),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x58578c,0x1));const _0xba4487=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0xba4487),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0xba4487,0x1));const _0xaaae54=Array['from'](this['_diffRoots'])['map'](([_0x258613,_0x618cf8])=>[_0x258613,T(_0x618cf8)]);this['_saveMetaData'](this['_lastTo'],_0xaaae54,this['_markers'],_0x41fe89);}['_makeModelFromViewString'](_0x2e33a5){const _0x46a6dd=JSON['parse'](_0x2e33a5),_0x44d966=this['editor']['editing']['view']['document'],_0x7a6f93=new _0x413e02(_0x44d966,_0x46a6dd['map'](_0x1ca0fe=>P(_0x1ca0fe,this['editor'])));return this['editor']['data']['toModel'](_0x7a6f93);}['_saveMetaData'](_0x3a33a8,_0x585110,_0x3474e5,_0xf3ec4a){const _0x172045=new Map(_0x585110),_0x5438c3=new Map(_0x2810e6(_0xf3ec4a)),_0x3b8fda=new Map();for(const [_0x6a5a21,_0x3bec49]of _0x3474e5)_0x3b8fda['set'](_0x6a5a21,{'start':_0x3bec49['start']['clone'](),'end':_0x3bec49['end']['clone'](),'rootName':_0x3bec49['root']['rootName']});this['_savedMetaData']['set'](_0x3a33a8,{'roots':_0x172045,'markers':_0x3b8fda,'rootsAttributes':_0x5438c3});}['_removeMetaData'](_0x5f0b7a){this['_savedMetaData']['delete'](_0x5f0b7a);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x2ba10d,_0x45fb93=null){let _0x22345f=null;_0x2ba10d['is']('documentFragment')||(_0x22345f=new ut(_0x2ba10d['name'],{'vid_start':null===_0x45fb93?this['_revisionId']++:_0x45fb93++}));const _0x4fdfe0=[];for(const _0x36aa89 of _0x2ba10d['getChildren']())if(_0x36aa89['is']('element')){_0x4fdfe0['push'](this['_makeIdsRoot'](_0x36aa89,_0x45fb93));const _0x25bca0=_0x4fdfe0[_0x4fdfe0['length']-0x1];null!==_0x45fb93&&(_0x45fb93=_0x25bca0['is']('element','$text')?_0x25bca0['getAttribute']('vid')+0x1:_0x25bca0['getAttribute']('vid_end')+0x1);}else{for(let _0x71ff82=0x0;_0x71ff82<_0x36aa89['offsetSize'];_0x71ff82++)_0x4fdfe0['push'](new ut('$text',{'vid':null===_0x45fb93?this['_revisionId']++:_0x45fb93++}));}if(_0x2ba10d['is']('documentFragment')){const _0x5ec32a=F(_0x2ba10d['rootName']);return _0x5ec32a['_insertChild'](0x0,_0x4fdfe0),_0x5ec32a;}return _0x22345f['_setAttribute']('vid_end',null===_0x45fb93?this['_revisionId']++:_0x45fb93++),_0x22345f['_insertChild'](0x0,_0x4fdfe0),_0x22345f;}['_calculateMetaData'](_0x1d7b37,_0x325175,_0x904d7b){this['_reset']();const {roots:_0x2a908f,markers:_0x4e1f50,rootsAttributes:_0x1684e0}=this['_savedMetaData']['get'](_0x1d7b37);this['_baseRoots']=new Map(_0x2a908f),this['_baseRootsAttributes']=new Map(_0x2810e6(_0x1684e0));for(const [_0x193396,_0x58be47]of this['_baseRoots'])if('$graveyard'!==_0x193396&&(this['_diffRoots']['set'](_0x193396,T(_0x58be47)),this['_diffRootsAttributes']=new Map(_0x2810e6(_0x1684e0)),_0x904d7b)){const _0x415374=this['_revisionId'];this['_idsRoots']['set'](_0x193396,this['_makeIdsRoot'](_0x58be47)),this['_baseIdsRoots']['set'](_0x193396,this['_makeIdsRoot'](_0x58be47,_0x415374));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x904d7b&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x54aa76,_0x3f5b62]of _0x4e1f50){const _0x8a8db1=this['_baseRoots']['get'](_0x3f5b62['rootName']),_0x23ec5d=this['_diffRoots']['get'](_0x3f5b62['rootName']),_0xc323fd=new ft(this['_fixPosition'](_0x3f5b62['start'],_0x8a8db1),this['_fixPosition'](_0x3f5b62['end'],_0x8a8db1)),_0x19e1fd=this['_fixRange'](_0xc323fd,_0x23ec5d);_0x8a8db1['markers']['set'](_0x54aa76,_0xc323fd),this['_markers']['set'](_0x54aa76,_0x19e1fd);}this['_applyOperations'](_0x1d7b37,_0x325175,_0x904d7b);}['_applyOperations'](_0x26348e,_0x25f5c0,_0x4389b6){for(const _0x290af8 of this['source']['getOperations'](_0x26348e,_0x25f5c0))this['_handleOperation'](_0x290af8,_0x4389b6);for(const _0x1bf438 of this['_diffRoots']['values']())_0x1bf438['markers']['clear']();for(const [_0x58be78,_0x3af29e]of this['_markers']){this['_diffRoots']['get'](_0x3af29e['root']['rootName'])['markers']['set'](_0x58be78,_0x3af29e['clone']());}const _0x28675a=new Map(),_0x4e0af0=new Map();for(const [_0x2321b9,_0x2980bd]of this['_diffRoots'])_0x28675a['set'](_0x2321b9,T(_0x2980bd)),_0x4e0af0['set'](_0x2321b9,this['_diffRootsAttributes']['get'](_0x2321b9));this['_saveMetaData'](_0x25f5c0,_0x28675a,this['_markers'],_0x4e0af0);}['_getPreviousFrom'](_0xffaea){const _0x18a525=Array['from'](this['_savedMetaData']['keys']());_0x18a525['sort']((_0x27ca1e,_0x20cbe8)=>_0x27ca1e-_0x20cbe8),_0x18a525['reverse']();for(const _0x9110fb of _0x18a525)if(_0x9110fb<_0xffaea)return _0x9110fb;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x16491e,_0x13b959){const _0x187a1a=Array['from'](_0x13b959['markers'])['map'](([_0x32831a,_0x2a6192])=>[_0x32831a,this['_fixRange'](_0x2a6192,_0x16491e)]);_0x16491e['markers']=new Map(_0x187a1a);}['_transformMarkers'](_0x538b6e){for(const _0x2f69a3 of this['_markers']['values']()){const _0x34d551=_0x2f69a3['getTransformedByOperation'](_0x538b6e),_0x17ef46=ft['_createFromRanges'](_0x34d551);_0x2f69a3['start']=_0x17ef46['start'],_0x2f69a3['end']=_0x17ef46['end'];}}['_handleOperation'](_0x9a01cd,_0x40ccb6){if('addRoot'!=_0x9a01cd['type']&&'detachRoot'!=_0x9a01cd['type']){if('insert'==_0x9a01cd['type']){const _0x422fd8=_0x9a01cd['position']['root']['rootName'];this['_diffRoots']['has'](_0x422fd8)||(this['_diffRoots']['set'](_0x422fd8,F(_0x422fd8,!0x0)),this['_diffRootsAttributes']['set'](_0x422fd8,{}),_0x40ccb6&&this['_idsRoots']['set'](_0x422fd8,F(_0x422fd8,!0x0)));}else{if('addRootAttribute'==_0x9a01cd['type']||'removeRootAttribute'==_0x9a01cd['type']||'changeRootAttribute'==_0x9a01cd['type'])return void this['_handleRootAttributeOperation'](_0x9a01cd);'marker'==_0x9a01cd['type']&&this['_handleMarkerOperation'](_0x9a01cd);}if('marker'!==_0x9a01cd['type']){const _0x8e5e6b=this['_cloneOperation'](_0x9a01cd,this['_diffRoots']);_0x8e5e6b['_execute'](),this['_transformMarkers'](_0x8e5e6b);}if(_0x40ccb6)switch(_0x9a01cd['type']){case'insert':this['_handleInsertOperation'](_0x9a01cd);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x9a01cd);break;case'merge':this['_handleMergeOperation'](_0x9a01cd);break;case'split':this['_handleSplitOperation'](_0x9a01cd);}}else this['_handleRootOperation'](_0x9a01cd,_0x40ccb6);}['_cloneOperation'](_0x1d95da,_0x1b63a4){const _0x18aedd=_0x1d95da['clone']();return _0x18aedd['_authorId']=_0x1d95da['_authorId'],this['_fixOperation'](_0x18aedd,_0x1b63a4),_0x18aedd;}['_getBaseVids'](_0x26e6d9){return _0x26e6d9['map'](_0x1f1e65=>{const _0x4b73d1=this['_getVidAttributeName'](_0x1f1e65);return Number(_0x1f1e65['item']['getAttribute'](_0x4b73d1));});}['_generateTape'](_0x3212ec,_0x428345){if(_0x3212ec['is']('element','$text'))_0x428345['push']({'item':_0x3212ec,'type':'text'});else{_0x3212ec['is']('element')&&_0x428345['push']({'item':_0x3212ec,'type':'elementStart'});for(const _0x200fae of _0x3212ec['getChildren']())this['_generateTape'](_0x200fae,_0x428345);_0x3212ec['is']('element')&&_0x428345['push']({'item':_0x3212ec,'type':'elementEnd'});}return _0x428345;}['_getState'](){const _0x3bc845=new Map(this['_touched']),_0x3c8f1b=new Map(_0x3bc845),_0x93f4f8=new Map(),_0x3f3539={'insertions':{},'deletions':{}},_0x551c43={'insertions':{},'deletions':{}},_0x541339=new Map(),_0x3d3582=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x3d3582['delete']('$graveyard');for(const _0x3dfed5 of _0x3d3582){const _0x48fd93=this['_diffRoots']['get'](_0x3dfed5)||F(_0x3dfed5,!0x1),_0x4c2a1a=this['_baseRoots']['get'](_0x3dfed5)||F(_0x3dfed5,!0x1);_0x48fd93['isAttached']()||_0x4c2a1a['isAttached']()?(_0x3f3539['insertions'][_0x3dfed5]=T(_0x48fd93),_0x3f3539['deletions'][_0x3dfed5]=T(_0x4c2a1a),this['_copyMarkers'](_0x3f3539['deletions'][_0x3dfed5],_0x4c2a1a),this['_copyMarkers'](_0x3f3539['insertions'][_0x3dfed5],_0x48fd93),_0x551c43['insertions'][_0x3dfed5]=this['_generateTape'](this['_idsRoots']['get'](_0x3dfed5),[]),_0x551c43['deletions'][_0x3dfed5]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x3dfed5)||F(_0x3dfed5,!0x1),[])):_0x3d3582['delete'](_0x3dfed5);}for(const _0x2fce98 of _0x3d3582){const _0x300a60=_0x551c43['insertions'][_0x2fce98];for(const _0x130f9f of _0x300a60){const _0x4e8163=this['_getVidAttributeName'](_0x130f9f),_0x3aa94d=_0x130f9f['item']['getAttribute'](_0x4e8163);_0x3c8f1b['delete'](_0x3aa94d),_0x3aa94d>=this['_startingRevisionId']&&_0x93f4f8['set'](_0x3aa94d,_0x3bc845['get'](_0x3aa94d));}}for(const _0x4f011b of _0x3d3582){const _0x4ba2ca=_0x551c43['insertions'][_0x4f011b],_0x30d887=this['_getBaseVids'](_0x551c43['deletions'][_0x4f011b]);let _0x3969dd=0x0;for(const _0x4029b7 of _0x4ba2ca){const _0x37d17e=this['_getVidAttributeName'](_0x4029b7),_0x195fe4=_0x4029b7['item']['getAttribute'](_0x37d17e);if(!_0x93f4f8['has'](_0x195fe4)&&!_0x541339['has'](_0x195fe4)){if(_0x3c8f1b['has'](_0x195fe4))_0x3969dd++;else{if(_0x195fe4!=_0x30d887[_0x3969dd]){const _0x1b42e0=_0x3bc845['get'](_0x195fe4)||_0x3bc845['get'](_0x30d887[_0x3969dd]);for(;_0x195fe4!=_0x30d887[_0x3969dd];)_0x3c8f1b['has'](_0x30d887[_0x3969dd])||(_0x541339['set'](_0x30d887[_0x3969dd],_0x1b42e0),_0x3bc845['set'](_0x30d887[_0x3969dd],_0x1b42e0)),_0x3969dd++;}_0x3969dd++;}}}}for(const _0xbb9fbc of _0x3d3582){const _0x3e4895=_0x551c43['insertions'][_0xbb9fbc];for(const _0x551190 of _0x3e4895){const _0xcd533=this['_getVidAttributeName'](_0x551190),_0x5a21cd=_0x551190['item']['getAttribute'](_0xcd533);if(_0x541339['has'](_0x5a21cd)){const _0x2b2ba1=_0x541339['get'](_0x5a21cd);_0x3c8f1b['has'](_0x5a21cd)||_0x3c8f1b['set'](_0x5a21cd,{..._0x2b2ba1}),_0x93f4f8['set'](_0x5a21cd,{..._0x2b2ba1});}}}for(const _0x689416 of _0x3c8f1b['keys']())_0x689416>=this['_startingRevisionId']&&_0x3c8f1b['delete'](_0x689416);const _0x2e0e42=new Map();for(const _0x4410dd of _0x3d3582){let _0x23e8c9=_0x551c43['insertions'][_0x4410dd];for(const _0x1cd4b5 of _0x23e8c9)if(_0x1cd4b5['item']['is']('element','tableCell')){const _0x24a8cb=this['_getVidAttributeName'](_0x1cd4b5),_0x349171=_0x1cd4b5['item']['getAttribute'](_0x24a8cb);if(_0x93f4f8['has'](_0x349171)){const _0x3b20a4=_0x1cd4b5['item']['parent']['parent']['getAttribute']('vid_start'),_0x51d4d4=_0x2e0e42['get'](_0x3b20a4)||new Set();_0x51d4d4['add'](_0x93f4f8['get'](_0x349171)['userId']),_0x2e0e42['set'](_0x3b20a4,_0x51d4d4);}}_0x23e8c9=_0x551c43['deletions'][_0x4410dd];for(const _0x550f8a of _0x23e8c9)if(_0x550f8a['item']['is']('element','tableCell')){const _0x2cde0f=this['_getVidAttributeName'](_0x550f8a),_0x15f045=_0x550f8a['item']['getAttribute'](_0x2cde0f);if(_0x3c8f1b['has'](_0x15f045)){const _0x5f2c76=_0x550f8a['item']['parent']['parent']['getAttribute']('vid_start'),_0x4c80d4=_0x2e0e42['get'](_0x5f2c76)||new Set();_0x4c80d4['add'](_0x3c8f1b['get'](_0x15f045)['userId']),_0x2e0e42['set'](_0x5f2c76,_0x4c80d4);}}for(const _0x21b6e7 of _0x2e0e42['keys']())(_0x93f4f8['has'](_0x21b6e7)||_0x3c8f1b['has'](_0x21b6e7))&&_0x2e0e42['delete'](_0x21b6e7);}for(const _0x67aca5 of _0x3d3582){const _0x17ba97=_0x551c43['insertions'][_0x67aca5];let _0x22566a=null,_0x58b45c=null;for(const _0x1d9e30 of _0x17ba97){const _0x4947a7=this['_getVidAttributeName'](_0x1d9e30),_0xf372d9=_0x1d9e30['item']['getAttribute'](_0x4947a7),_0x5053df=_0x2e0e42['get'](_0xf372d9);_0x5053df&&'elementStart'==_0x1d9e30['type']&&(_0x22566a=Array['from'](_0x5053df)[0x0],_0x58b45c=_0x1d9e30['item']['getAttribute']('vid_end')),_0x22566a&&(_0x3c8f1b['set'](_0xf372d9,{'userId':_0x22566a}),_0x93f4f8['set'](_0xf372d9,{'userId':_0x22566a})),_0xf372d9==_0x58b45c&&(_0x22566a=null,_0x58b45c=null);}}const _0x2c2150={},_0x2d5418=new Set();for(const _0x18ac21 of _0x3d3582){const _0x27308b=_0x3f3539['deletions'][_0x18ac21],_0x4cb58d=_0x3f3539['insertions'][_0x18ac21];for(const {userId:_0x53f50f}of this['_touchedMarkers']['values']())null!==_0x53f50f&&_0x2d5418['add'](_0x53f50f);for(const {userId:_0x193e86}of this['_touchedRoots']['values']())null!==_0x193e86&&_0x2d5418['add'](_0x193e86);this['_markChanges'](_0x4cb58d,_0x551c43['insertions'][_0x18ac21],_0x93f4f8,'insertion',_0x2d5418),this['_markChanges'](_0x27308b,_0x551c43['deletions'][_0x18ac21],_0x3c8f1b,'deletion',_0x2d5418),_0x2c2150[_0x18ac21]={'insertions':this['_prepareViewToSave'](_0x4cb58d),'deletions':this['_prepareViewToSave'](_0x27308b),'attachChange':this['_touchedRoots']['get'](_0x18ac21)||null,'attributesBefore':_0x2810e6(this['_baseRootsAttributes']['get'](_0x18ac21))||{},'attributesAfter':_0x2810e6(this['_diffRootsAttributes']['get'](_0x18ac21))};}return{'diffData':_0x2c2150,'authorsIds':Array['from'](_0x2d5418)};}['_processRootBeforeSave'](_0x11d8de){for(const [,_0x15d3e0]of _0x11d8de['markers']){const _0x5a69c7=_0x15d3e0['start']['getAncestors']()['filter'](_0x591335=>'tableCell'==_0x591335['name']);for(const _0x3fd500 of _0x5a69c7)0x1==_0x3fd500['childCount']&&_0x3fd500['getChild'](0x0)['is']('element','paragraph')&&_0x3fd500['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x136fd0){this['_processRootBeforeSave'](_0x136fd0);const _0x59621e=this['editor']['data']['toView'](_0x136fd0,{}),_0x1becaa=Array['from'](_0x59621e['getChildren']())['map'](_0x59d102=>this['_getViewJson'](_0x59d102));return JSON['stringify'](_0x1becaa);}['_getViewJson'](_0xf52c86){if(_0xf52c86['is']('$text'))return _0xf52c86['data'];{const _0x555d9f=_0xf52c86;return{'type':Object['keys'](E)['find'](_0x3aadea=>_0xf52c86 instanceof E[_0x3aadea]),'name':_0x555d9f['name'],'attributes':Array['from'](_0x555d9f['getAttributes']()),'children':Array['from'](_0x555d9f['getChildren']())['map'](_0x38ce0e=>this['_getViewJson'](_0x38ce0e))};}}['_markChanges'](_0x341b1a,_0x4d8bcb,_0x2bde14,_0x7e1567,_0x448797){let _0x348c41=null,_0x377d4a=null,_0x542192=0x0;const _0x7519ed=this['editor']['model'];for(let _0x1d9904=0x0;_0x1d9904<_0x4d8bcb['length'];_0x1d9904++){const _0x1ef7d8=this['_getVidAttributeName'](_0x4d8bcb[_0x1d9904]),_0x20d1bb=_0x4d8bcb[_0x1d9904]['item']['getAttribute'](_0x1ef7d8),_0x62092d=_0x2bde14['get'](_0x20d1bb),_0x1445ab=_0x1d9904==_0x4d8bcb['length']-0x1;(!_0x348c41&&_0x62092d&&(_0x348c41=_0x62092d,_0x377d4a=_0x4d8bcb[_0x1d9904]),_0x348c41&&(!_0x62092d||_0x62092d['userId']!=_0x348c41['userId']))&&(_0x155806(_0x62092d,B(_0x377d4a,_0x341b1a,_0x7519ed),B(_0x4d8bcb[_0x1d9904],_0x341b1a,_0x7519ed)),_0x348c41=_0x62092d||null,_0x377d4a=_0x62092d?_0x4d8bcb[_0x1d9904]:null),_0x348c41&&_0x1445ab&&_0x155806(_0x62092d,B(_0x377d4a,_0x341b1a,_0x7519ed),J(_0x4d8bcb[_0x1d9904],_0x341b1a,_0x7519ed));}function _0x155806(_0xbc858d,_0x353d96,_0x1060e6){const _0x1c7a22=_0x348c41['userId'],_0x553dab='revision:'+_0x7e1567+':'+_0x1c7a22+':'+_0x542192++,_0x4dda40=_0x7519ed['createRange'](_0x353d96,_0x1060e6);_0x341b1a['markers']['set'](_0x553dab,_0x4dda40),null!==_0x1c7a22&&_0x448797['add'](_0x1c7a22);}}['_getVidAttributeName'](_0x9258c5){switch(_0x9258c5['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x11677b,_0x17e493){_0x11677b['baseVersion']=null;for(const _0x2c3502 in _0x11677b){const _0x2b0390=_0x11677b[_0x2c3502];if(_0x2b0390 instanceof vt){const _0x2030e8=_0x17e493['get'](_0x2b0390['root']['rootName']);_0x11677b[_0x2c3502]=this['_fixPosition'](_0x2b0390,_0x2030e8);}if(_0x2b0390 instanceof ft){const _0x51d63e=_0x17e493['get'](_0x2b0390['root']['rootName']);_0x11677b[_0x2c3502]=this['_fixRange'](_0x2b0390,_0x51d63e);}'root'===_0x2c3502&&(_0x11677b['root']=_0x17e493['get'](_0x11677b['root']['rootName']));}}['_fixRange'](_0x23665f,_0x16d230){return this['editor']['model']['createRange'](this['_fixPosition'](_0x23665f['start'],_0x16d230),this['_fixPosition'](_0x23665f['end'],_0x16d230));}['_fixPosition'](_0x35b2c2,_0x31a990){return this['editor']['model']['createPositionFromPath'](_0x31a990,_0x35b2c2['path'],_0x35b2c2['stickiness']);}['_handleInsertOperation'](_0x4311c9){const _0x2094a1=this['_idsRoots']['get'](_0x4311c9['position']['root']['rootName']),_0x1ebc99=this['_fixPosition'](_0x4311c9['position'],_0x2094a1),_0x558fe5=null===_0x4311c9['_authorId']?null:_0x4311c9['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x58d0bc=_0x1ebc99['parent'],_0x5ac5e0=this['_revisionId'],_0x224e13=[];for(const _0x4df6cf of _0x4311c9['nodes'])if(_0x4df6cf['is']('element'))_0x224e13['push'](this['_makeIdsRoot'](_0x4df6cf));else{for(let _0x526613=0x0;_0x526613<_0x4df6cf['offsetSize'];_0x526613++)_0x224e13['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x12e9dd=this['_revisionId'];for(let _0x7ccdaa=_0x5ac5e0;_0x7ccdaa<_0x12e9dd;_0x7ccdaa++)this['_touched']['set'](_0x7ccdaa,{'userId':_0x558fe5});_0x58d0bc['_insertChild'](_0x1ebc99['offset'],_0x224e13);}['_handleMoveOperation'](_0x405c35){(_0x405c35=this['_cloneOperation'](_0x405c35,this['_idsRoots']))['_execute']();const _0x4e9c5b=null===_0x405c35['_authorId']?null:_0x405c35['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x433908=_0x405c35['getMovedRangeStart'](),_0x5c5a20=_0x433908['parent'],_0x5d9683=_0x433908['offset'];!function _0x416181(_0x322696,_0x410bb2,_0x7e7ea9,_0x32dbc4){for(let _0x5b5f3b=_0x7e7ea9;_0x5b5f3b<_0x32dbc4;_0x5b5f3b++){const _0x1371d6=_0x410bb2['getChild'](_0x5b5f3b);_0x1371d6['is']('element','$text')?_0x322696['set'](_0x1371d6['getAttribute']('vid'),{'userId':_0x4e9c5b}):(_0x322696['set'](_0x1371d6['getAttribute']('vid_start'),{'userId':_0x4e9c5b}),_0x416181(_0x322696,_0x1371d6,0x0,_0x1371d6['childCount']),_0x322696['set'](_0x1371d6['getAttribute']('vid_end'),{'userId':_0x4e9c5b}));}}(this['_touched'],_0x5c5a20,_0x5d9683,_0x5d9683+_0x405c35['howMany']);}['_handleMergeOperation'](_0x3382ad){const _0x1f84db=null===(_0x3382ad=this['_cloneOperation'](_0x3382ad,this['_idsRoots']))['_authorId']?null:_0x3382ad['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4074b6=_0x3382ad['targetPosition']['parent'],_0x2cf33a=_0x3382ad['sourcePosition']['parent'],_0x501e42=_0x4074b6['getAttribute']('vid_end'),_0x2bd936=_0x2cf33a['getAttribute']('vid_start');_0x4074b6['_setAttribute']('vid_end',_0x2cf33a['getAttribute']('vid_end')),_0x2cf33a['_setAttribute']('vid_end',_0x501e42),this['_touched']['set'](_0x2bd936,{'userId':_0x1f84db}),this['_touched']['set'](_0x501e42,{'userId':_0x1f84db}),_0x3382ad['_execute']();}['_handleSplitOperation'](_0x39ff00){const _0x51c38b=null===(_0x39ff00=this['_cloneOperation'](_0x39ff00,this['_idsRoots']))['_authorId']?null:_0x39ff00['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x27aaa4=_0x39ff00['graveyardPosition'],_0x5be6b4=_0x39ff00['splitPosition']['parent'];_0x39ff00['_execute']();const _0x2d5ba6=_0x5be6b4['getAttribute']('vid_end'),_0x4d0f22=_0x39ff00['insertionPosition']['nodeAfter'];if(_0x27aaa4){const _0x56c5be=_0x4d0f22['getAttribute']('vid_end'),_0x293820=_0x5be6b4['getAttribute']('vid_end');_0x5be6b4['_setAttribute']('vid_end',_0x56c5be),_0x4d0f22['_setAttribute']('vid_end',_0x293820),this['_touched']['set'](_0x5be6b4['getAttribute']('vid_end'),{'userId':_0x51c38b}),this['_touched']['set'](_0x4d0f22['getAttribute']('vid_start'),{'userId':_0x51c38b});}else{const _0x3b2a67=this['_revisionId']++,_0x4c2f31=this['_revisionId']++;_0x5be6b4['_setAttribute']('vid_end',_0x3b2a67),_0x4d0f22['_setAttribute']('vid_start',_0x4c2f31),_0x4d0f22['_setAttribute']('vid_end',_0x2d5ba6),this['_touched']['set'](_0x3b2a67,{'userId':_0x51c38b}),this['_touched']['set'](_0x4c2f31,{'userId':_0x51c38b});}}['_handleMarkerOperation'](_0x340271){if(!_0x340271['affectsData'])return;const _0x4127ca=(_0x340271=this['_cloneOperation'](_0x340271,this['_diffRoots']))['oldRange']?_0x340271['oldRange']['root']:null,_0x3af0de=_0x340271['newRange']?_0x340271['newRange']['root']:null;_0x4127ca&&this['_markers']['delete'](_0x340271['name']),_0x3af0de&&this['_markers']['set'](_0x340271['name'],_0x340271['newRange']['clone']());const _0x4275eb=null===_0x340271['_authorId']?null:_0x340271['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5d63ad=_0x340271['name'];if(!this['_touchedMarkers']['has'](_0x5d63ad))return void this['_touchedMarkers']['set'](_0x5d63ad,{'range':_0x340271['oldRange'],'userId':_0x4275eb});const _0x5d6ed2=this['_touchedMarkers']['get'](_0x5d63ad),_0x3db24f=_0x5d6ed2['range'],_0x5a459c=_0x340271['newRange'];null==_0x3db24f&&null==_0x5a459c||_0x3db24f&&_0x5a459c&&_0x3db24f['isEqual'](_0x5a459c)?this['_touchedMarkers']['delete'](_0x340271['name']):_0x5d6ed2['userId']=_0x4275eb;}['_handleRootOperation'](_0xeaa963,_0x3c30de){this['_diffRoots']['has'](_0xeaa963['rootName'])?this['_diffRoots']['get'](_0xeaa963['rootName'])['_isAttached']=_0xeaa963['isAdd']:(this['_diffRoots']['set'](_0xeaa963['rootName'],F(_0xeaa963['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0xeaa963['rootName'],{}),_0x3c30de&&this['_idsRoots']['set'](_0xeaa963['rootName'],F(_0xeaa963['rootName'],!0x0)));const _0x5e763a=null===_0xeaa963['_authorId']?null:_0xeaa963['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x70c007=this['_touchedRoots']['get'](_0xeaa963['rootName']);_0x70c007&&_0x70c007['userId']===_0x5e763a?this['_touchedRoots']['delete'](_0xeaa963['rootName']):this['_touchedRoots']['set'](_0xeaa963['rootName'],{'userId':_0x5e763a,'isAttached':_0xeaa963['isAdd']});}['_handleRootAttributeOperation'](_0x301115){const _0x2e114e=this['_diffRootsAttributes']['get'](_0x301115['root']['rootName']);null===_0x301115['newValue']?delete _0x2e114e[_0x301115['key']]:_0x2e114e[_0x301115['key']]=_0x301115['newValue'];}}function T(_0x57fba4){const _0x4dd1ac=F(_0x57fba4['rootName'],_0x57fba4['isAttached']());for(const _0x4c16b8 of _0x57fba4['getChildren']()){const _0x4aad6d=_0x4c16b8['_clone'](!0x0);_0x4dd1ac['_appendChild'](_0x4aad6d);}return _0x4dd1ac;}function F(_0xd82f01,_0x5cdb44=!0x0){const _0x18a933=new gt();return _0x18a933['rootName']=_0xd82f01,_0x18a933['_isAttached']=_0x5cdb44,_0x18a933['isAttached']=()=>_0x18a933['_isAttached'],_0x18a933;}function B(_0x26112d,_0x4c08b0,_0x2e35ac){const _0x4b1371='elementEnd'==_0x26112d['type']?_0x2e35ac['createPositionAt'](_0x26112d['item'],'end'):_0x2e35ac['createPositionBefore'](_0x26112d['item']);return _0x2e35ac['createPositionFromPath'](_0x4c08b0,_0x4b1371['path'],_0x4b1371['stickiness']);}function J(_0xd79be6,_0xccb18c,_0x38a4fa){const _0x1c0006='elementStart'==_0xd79be6['type']?_0x38a4fa['createPositionAt'](_0xd79be6['item'],0x0):_0x38a4fa['createPositionAfter'](_0xd79be6['item']);return _0x38a4fa['createPositionFromPath'](_0xccb18c,_0x1c0006['path'],_0x1c0006['stickiness']);}class os extends _0x4d48fa{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x514553,_0x194991){super(_0x514553),this['focusTracker']=new _0x5ac7ad(),this['keystrokes']=new _0x1734cf(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x194991),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),ts(this);}['render'](){super['render'](),_0x27229c({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x320466=_0x2c9bc8=>_0x2c9bc8['stopPropagation']();this['keystrokes']['set']('arrowright',_0x320466),this['keystrokes']['set']('arrowleft',_0x320466),this['keystrokes']['set']('arrowup',_0x320466),this['keystrokes']['set']('arrowdown',_0x320466);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0xe5108b){this['revisionNameInputView']['fieldView']['element']['value']=_0xe5108b['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x1a91d4){const _0x541cf6=new at(this['locale'],ti),_0x44793f=_0x541cf6['fieldView'];_0x44793f['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x5d2fc0=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x1a91d4&&(_0x5d2fc0+='\x20('+m(this['locale'],'optional')+')'),(_0x541cf6['label']=_0x5d2fc0,_0x44793f['on']('input',()=>{this['revisionNameInputValue']=_0x44793f['element']['value']['trim']();}),_0x541cf6);}}class f extends _0x3cb746{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x2d8cb8=this['editor'],_0x123d2a=_0x2d8cb8['plugins']['get']('RevisionTracker');_0x2d8cb8['ui']['componentFactory']['add']('revisionHistory',_0x55cad6=>{const _0x16170a=_0x5bcb54(_0x55cad6),_0x408dd1=_0x16170a['panelView']['children'],_0x2d6cb5=new _0xdfe4e(_0x55cad6),_0x4d6749=new te(_0x55cad6),_0x372475=new _0x1bfe84(_0x55cad6),_0x488b96=new te(_0x55cad6),_0x21ec8e=new _0x1bfe84(_0x55cad6);return _0x16170a['bind']('isEnabled')['to'](_0x123d2a,'isReady',_0x123d2a,'isEnabled',_0x2d8cb8,'isReadOnly',(_0x2cc30f,_0xd5b0b6,_0x34ef00)=>_0x2cc30f&&_0xd5b0b6&&!_0x34ef00),_0x16170a['buttonView']['set']({'icon':_0x51466b,'label':m(_0x55cad6,'Revision\x20history'),'tooltip':!0x0}),_0x372475['set']({'label':m(_0x55cad6,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x372475['bind']('isEnabled')['to'](_0x123d2a,'isReady',_0x123d2a,'isEnabled',_0x2d8cb8,'isReadOnly',(_0x1bc2b6,_0x14ccbd,_0x287e0f)=>_0x1bc2b6&&_0x14ccbd&&!_0x287e0f),_0x372475['on']('execute',()=>this['_showDialog']()),_0x21ec8e['set']({'label':m(_0x55cad6,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x21ec8e['bind']('isEnabled')['to'](_0x123d2a,'isReady',_0x2d8cb8,'isReadOnly',(_0x542f65,_0x2a2e4b)=>_0x542f65&&!_0x2a2e4b),_0x21ec8e['on']('execute',()=>{_0x2d8cb8['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x16170a['isOpen']=!0x1,_0x2d8cb8['editing']['view']['focus']();}),_0x4d6749['children']['add'](_0x372475),_0x488b96['children']['add'](_0x21ec8e),_0x2d6cb5['role']='menu',_0x2d6cb5['items']['addMany']([_0x4d6749,_0x488b96]),_0x408dd1['add'](_0x2d6cb5),_0x16170a;}),_0x2d8cb8['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x2fbc6a=this['editor'],_0x38e46c=_0x2fbc6a['locale'],_0x4b6143=new _0x2a01f2(_0x38e46c),_0x5c2e8e=new _0x392da3(_0x38e46c);_0x4b6143['buttonView']['set']({'icon':_0x51466b,'label':m(_0x38e46c,'Revision\x20history')});const _0x54ec66=new _0x4c122f(_0x38e46c,_0x4b6143),_0x8928e3=new _0xf996a9(_0x38e46c);_0x8928e3['set']({'label':m(_0x38e46c,'Save\x20current\x20revision')}),_0x8928e3['delegate']('execute')['to'](_0x4b6143),_0x8928e3['on']('execute',()=>{this['_showDialog']();}),_0x54ec66['children']['add'](_0x8928e3),_0x5c2e8e['items']['add'](_0x54ec66);const _0x1b866c=new _0x4c122f(_0x38e46c,_0x4b6143),_0x59fb61=new _0xf996a9(_0x38e46c);return _0x59fb61['set']({'label':m(_0x38e46c,'Open\x20revision\x20history')}),_0x59fb61['delegate']('execute')['to'](_0x4b6143),_0x59fb61['on']('execute',()=>{_0x2fbc6a['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x1b866c['children']['add'](_0x59fb61),_0x5c2e8e['items']['add'](_0x1b866c),_0x4b6143['panelView']['children']['add'](_0x5c2e8e),_0x4b6143;}['_showDialog'](){const _0xff3bae=this['editor'],_0x918e98=_0xff3bae['locale'],_0xa293f4=_0xff3bae['plugins']['get']('Dialog'),_0x1b9e43=_0xff3bae['plugins']['get']('RevisionTracker');function _0x59f8b0(_0x41e6d0){_0xff3bae['config']['get']('revisionHistory.requireRevisionName')&&''===_0x41e6d0['revisionName']?_0x41e6d0['revisionNameInputView']['errorText']=m(_0x918e98,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0xff3bae['plugins']['get'](u)['saveRevision']({'name':_0x41e6d0['revisionName']}),_0xa293f4['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x59f8b0(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0xa293f4['show']({'id':'revisionSave','title':m(_0x918e98,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0xff3bae['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0xa293f4['hide']()},{'label':m(_0xff3bae['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x1e8541){_0x1e8541['bind']('isEnabled')['to'](_0x1b9e43,'isReady',_0x1b9e43,'isEnabled',_0xff3bae,'isReadOnly',(_0x14a368,_0x38f4a7,_0x151774)=>_0x14a368&&_0x38f4a7&&!_0x151774);},'onExecute':()=>_0x59f8b0(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x48e3e5=this['editor'],_0x309ac9=_0x48e3e5['locale'];this['_saveRevisionFormView']=new os(_0x309ac9,_0x48e3e5['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0x4d48fa{['changeId'];['_model'];constructor(_0x1cd5f8,_0x41fc57){super(_0x1cd5f8),this['_model']=_0x41fc57,this['changeId']=_0x41fc57['id'];const _0x2a7702=this['bindTemplate'],_0x1ba052=m(_0x1cd5f8,_0x41fc57['data']['isSuggestion']?'Suggested\x20by':'add'==_0x41fc57['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x41fc57['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x2a7702['to']('type',_0x3baca9=>'ck-revision-change__'+_0x3baca9)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x1ba052}]},{'text':'\x20'+_0x41fc57['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x1128d5(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x17431a){super(),this['id']=_0x17431a['id']||_0x5e10e6(),this['author']=_0x17431a['author'],this['type']=_0x17431a['type'],this['data']=_0x17431a['data']||{},this['rootName']=_0x17431a['rootName'],this['set']('createdAt',_0x17431a['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class c{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x5b0734,_0x11c94e){this['newRevisionId']=_0x5b0734,this['oldRevisionId']=_0x11c94e,this['changes']=new _0x2818bf();}['_setChanges'](_0x501570){for(const _0x56a1d7 of _0x501570)this['changes']['add'](_0x56a1d7);}}const Y={'c':_0xc94dac,'a':_0x42d014,'e':_0x499499,'r':_0x2a65a8,'u':_0x33d900};class d extends _0x3cb746{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x5d288c,_0x286896,j];}constructor(_0x41fc54){super(_0x41fc54),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x4b384f,_0x2f30ab,_0x1890f9)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x363172=>{for(const _0x50435d of this['editor']['editing']['view']['document']['roots'])_0x1890f9?_0x363172['removeClass']('ck-editor__editable__overlay',_0x50435d):_0x363172['addClass']('ck-editor__editable__overlay',_0x50435d);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x34acae=>null!==_0x34acae),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x57d996,_0x472b71,_0x41adde)=>_0x57d996&&_0x41adde?_0x472b71['changes']['getIndex'](_0x41adde):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x2d2909,_0x291b91)=>_0x2d2909?_0x291b91['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x286896);}['init'](){const _0x3da1fc=this['editor'],_0x3cd352=new yt(_0x3da1fc,{'direction':'backward'}),_0x10031e=new yt(_0x3da1fc,{'direction':'forward'});(_0x3da1fc['commands']['add']('showPreviousChange',_0x3cd352),_0x3da1fc['commands']['add']('showNextChange',_0x10031e),_0x3da1fc['commands']['add']('restoreRevision',new _t(_0x3da1fc)),this['on']('change:numberOfChanges',()=>{_0x3cd352['refresh'](),_0x10031e['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x3da1fc['enableReadOnlyMode']('revision-viewer'),_0x3da1fc['plugins']['has']('WidgetToolbarRepository'))&&_0x3da1fc['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x59348d){await this['loadRevisionData'](_0x59348d);const _0x55a61b={};for(const _0x2c8c6b in _0x59348d['diffData']){if(_0x59348d['diffData'][_0x2c8c6b]['attachChange']&&!_0x59348d['diffData'][_0x2c8c6b]['attachChange']['isAttached'])continue;const _0x58bc41=this['_removeRevisionMarkers'](JSON['parse'](_0x59348d['diffData'][_0x2c8c6b]['insertions'])),_0x854792=this['editor']['editing']['view']['document'],_0x2f6281=new _0x413e02(_0x854792,_0x58bc41['map'](_0x1bffaa=>this['_getViewObj'](_0x1bffaa)));this['editor']['data']['processor']['useFillerType']('marked'),_0x55a61b[_0x2c8c6b]=this['editor']['data']['processor']['toData'](_0x2f6281),this['editor']['data']['processor']['useFillerType']('default');}return _0x55a61b;}async['getRevisionRootsAttributes'](_0xa7b6f9){await this['loadRevisionData'](_0xa7b6f9);const _0x4f6890={};for(const _0x57c653 in _0xa7b6f9['diffData'])_0xa7b6f9['diffData'][_0x57c653]['attachChange']&&!_0xa7b6f9['diffData'][_0x57c653]['attachChange']['isAttached']||(_0x4f6890[_0x57c653]=_0xa7b6f9['diffData'][_0x57c653]['attributesAfter']||{});return _0x4f6890;}['_removeRevisionMarkers'](_0xaf371f){return(_0xaf371f=_0xaf371f['filter'](_0x107abb=>!_0x107abb['name']||'revision-start'!==_0x107abb['name']&&'revision-end'!==_0x107abb['name']))['forEach'](_0x2d6719=>{'string'!=typeof _0x2d6719&&(_0x2d6719['children']=this['_removeRevisionMarkers'](_0x2d6719['children']),_0x2d6719['attributes']=_0x2d6719['attributes']['filter'](_0x263080=>!_0x263080[0x0]['startsWith']('data-revision-')));}),_0xaf371f;}async['compare'](_0xfd2dba,_0x4bdd88,_0x4b535e=!0x1){if(!this['isEnabled'])return;const _0x3b49a6=this['diff'],_0x574326=this['repository'],_0x5d7eef='string'==typeof _0xfd2dba?_0x574326['getRevision'](_0xfd2dba):_0xfd2dba,_0x71b3a0='string'==typeof _0x4bdd88?_0x574326['getRevision'](_0x4bdd88):_0x4bdd88,_0x3b7f09=_0x5d7eef['id'],_0x4a1e23=_0x71b3a0?_0x71b3a0['id']:null;if(!_0x4b535e&&this['diff']&&this['diff']['newRevisionId']===_0x3b7f09&&this['diff']['oldRevisionId']===_0x4a1e23)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x3b7f09,_0x4a1e23);const _0x5ef595=this['_getRevisionsRange'](_0x5d7eef,_0x71b3a0,!0x0)['map'](_0x596bab=>this['loadRevisionData'](_0x596bab));return _0x5ef595['push'](new Promise(_0x1e6051=>{setTimeout(_0x1e6051,0x14);})),Promise['all'](_0x5ef595)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x19f696=this['_getDiff'](_0x3b7f09,_0x4a1e23);for(const _0x1f8e7f of _0x19f696['changes'])this['_changeIdToChange']['set'](_0x1f8e7f['id'],_0x1f8e7f);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0xd4ca9e=>{for(const _0x2de631 of this['editor']['model']['document']['getRootNames']())_0xd4ca9e['detachRoot'](_0x2de631);for(const _0x24303f of Object['keys'](_0x19f696['model'])){const _0x469959=_0xd4ca9e['addRoot'](_0x24303f);for(const _0x8f30d7 of Object['keys'](_0x19f696['attributes'][_0x24303f]))_0xd4ca9e['setAttribute'](_0x8f30d7,_0x19f696['attributes'][_0x24303f][_0x8f30d7],_0x469959);_0xd4ca9e['insert'](_0x19f696['model'][_0x24303f],_0x469959,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x19f696['changes'])),this['isReady']=!0x0;})['catch'](_0xf3553=>{console['error'](_0xf3553),this['_cleanUp'](),_0x3b49a6&&(this['diff']=_0x3b49a6),this['isReady']=!0x0;});}['addRevisionData'](_0x3d9d31,_0x18b8cb){const _0x36fd2e=this['repository']['createRevision'](_0x3d9d31);return _0x36fd2e['on']('_update',(_0xc227f1,_0x4d5e0a,_0x2842f)=>_0x18b8cb(_0x4d5e0a,_0x2842f,_0x36fd2e)),this['repository']['addRevision'](_0x36fd2e),_0x36fd2e;}['loadRevisionData'](_0x2064ec){if(!_0x2064ec||_0x2064ec['diffData'])return Promise['resolve']();{const _0xfec697=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0xfec697,'revisionId':_0x2064ec['id']})['then'](_0x52fa13=>{_0x2064ec['_update']({'diffData':_0x52fa13['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x16a705=>{for(const _0x157c89 of this['editor']['model']['document']['getRootNames']())_0x16a705['detachRoot'](_0x157c89);});}['_sortAndFilterDiffChanges'](_0x528dc0){const _0x9a62f1=[],_0x194bd6=new Map();for(const _0x346ea5 of this['editor']['model']['document']['getRootNames']()){const _0x4ec018=this['editor']['editing']['view']['getDomRoot'](_0x346ea5);if(!_0x4ec018)continue;const _0x343081=_0x4ec018['getClientRects']()['item'](0x0);_0x343081&&(_0x9a62f1['push'](_0x346ea5),_0x194bd6['set'](_0x346ea5,_0x343081));}return _0x9a62f1['sort']((_0x3c9c36,_0x456cfb)=>{const _0xd46ede=_0x194bd6['get'](_0x3c9c36),_0x15d412=_0x194bd6['get'](_0x456cfb);return _0xd46ede['y']-_0x15d412['y']||_0xd46ede['x']-_0x15d412['x'];}),(_0x528dc0=_0x528dc0['filter'](_0x573417=>_0x9a62f1['includes'](_0x573417['rootName'])))['sort']((_0x2be78e,_0x1af13f)=>_0x9a62f1['indexOf'](_0x2be78e['rootName'])-_0x9a62f1['indexOf'](_0x1af13f['rootName'])),_0x528dc0;}['_makeTape'](_0xcf4832){const _0x5e2d05=Array['from'](_0xcf4832['markers'])['filter'](([_0x47ccd2,_0x4119b1])=>_0x47ccd2['startsWith']('revision:')&&!_0x4119b1['isCollapsed']),_0x38c156=Array['from'](this['editor']['model']['createRangeIn'](_0xcf4832)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x5e2d05['length'])for(const _0x5e09ff of _0x38c156){const [_0x55535d,_0xeef4e]=_0x5e2d05[0x0],[,_0x194002,_0x1654cc]=_0x55535d['split'](':');if(_0xeef4e['end']['isEqual'](_0x5e09ff['nextPosition'])&&_0x5e2d05['shift'](),(_0x5e09ff['previousPosition']['isEqual'](_0xeef4e['start'])||_0x5e09ff['previousPosition']['isAfter'](_0xeef4e['start']))&&('insertion'==_0x194002?_0x5e09ff['isAdded']={'userId':_0x1654cc}:'deletion'==_0x194002&&(_0x5e09ff['isRemoved']={'userId':_0x1654cc})),0x0==_0x5e2d05['length'])break;}return _0x38c156;}['_refreshStartEndIndex'](_0x32a22b){const _0xf7b33c=new Map();for(let _0x2126ff=0x0;_0x2126ff<_0x32a22b['length'];_0x2126ff++)'text'===_0x32a22b[_0x2126ff]['type']?(_0x32a22b[_0x2126ff]['item']['startIndex']=_0x2126ff,_0x32a22b[_0x2126ff]['item']['endIndex']=_0x2126ff):('elementStart'===_0x32a22b[_0x2126ff]['type']?_0x32a22b[_0x2126ff]['item']['startIndex']=_0x2126ff:'elementEnd'===_0x32a22b[_0x2126ff]['type']&&(_0x32a22b[_0x2126ff]['item']['endIndex']=_0x2126ff),_0xf7b33c['set'](_0x32a22b[_0x2126ff]['id'],_0x2126ff));for(const _0x39b901 of _0xf7b33c['values']())'elementStart'===_0x32a22b[_0x39b901]['type']?_0x32a22b[_0x39b901]['item']['endIndex']=_0xf7b33c['get'](_0x32a22b[_0x39b901]['pairId']):'elementEnd'===_0x32a22b[_0x39b901]['type']&&(_0x32a22b[_0x39b901]['item']['startIndex']=_0xf7b33c['get'](_0x32a22b[_0x39b901]['pairId']));}['_processTape'](_0x94cf12){for(let _0x2990dd=0x0;_0x2990dd<_0x94cf12['length'];_0x2990dd++){if('elementStart'===_0x94cf12[_0x2990dd]['type'])_0x94cf12[_0x2990dd]['item']['startIndex']=_0x2990dd;else{if('elementEnd'===_0x94cf12[_0x2990dd]['type']){_0x94cf12[_0x2990dd]['item']['endIndex']=_0x2990dd;const _0x2c6eb5=_0x94cf12[_0x2990dd]['item']['startIndex'];_0x94cf12[_0x2c6eb5]['pairId']=_0x94cf12[_0x2990dd]['id'],_0x94cf12[_0x2990dd]['pairId']=_0x94cf12[_0x2c6eb5]['id'];}else _0x94cf12[_0x2990dd]['item']['startIndex']=_0x2990dd,_0x94cf12[_0x2990dd]['item']['endIndex']=_0x2990dd,_0x94cf12[_0x2990dd]['pairId']=null;}_0x94cf12[_0x2990dd]['markersStart']||(_0x94cf12[_0x2990dd]['markersStart']=[],_0x94cf12[_0x2990dd]['markersEnd']=[]);}}['_markInsertions'](_0x1ee501,_0x38185b){const _0x28a30b=_0x1ee501['filter'](_0x5b92ac=>!_0x5b92ac['isAdded']);for(let _0x50ccd7=0x0;_0x50ccd7<_0x38185b['length'];_0x50ccd7++)_0x38185b[_0x50ccd7]['isAdded']&&(_0x28a30b[_0x50ccd7]['isAdded']=_0x38185b[_0x50ccd7]['isAdded']);}['_makeModelFromViewString'](_0x16105d){const _0x3c3965=JSON['parse'](_0x16105d),_0x4c01e4=this['editor']['editing']['view']['document'],_0x78a5ce=new _0x413e02(_0x4c01e4,_0x3c3965['map'](_0x297483=>this['_getViewObj'](_0x297483)));return this['editor']['data']['toModel'](_0x78a5ce);}['_getViewObj'](_0x2bd6e2){const _0x103429=this['editor']['editing']['view']['document'];if('string'==typeof _0x2bd6e2)return new _0xff6857(_0x103429,_0x2bd6e2);{const _0x9665cf=_0x2bd6e2['children']['map'](_0x295b84=>this['_getViewObj'](_0x295b84));return new(Y[_0x2bd6e2['type']]||_0x363a6e)(_0x103429,_0x2bd6e2['name'],_0x2bd6e2['attributes'],_0x9665cf);}}['_getDiff'](_0x42471a,_0x1b1225=null){const _0x3e2d23=this['repository']['getRevision'](_0x42471a),_0x18b92e=_0x1b1225?this['repository']['getRevision'](_0x1b1225):null,_0x3b456a=this['_getRevisionsRange'](_0x3e2d23,_0x18b92e),_0x49a426=_0x3b456a[_0x3b456a['length']-0x1],_0x45a2ac=new Map(),_0x10f61a={'model':{},'attributes':{},'changes':[]},_0x48a6ec=new Set(),_0x5725f8=new Map();for(let _0x107775=_0x3b456a['length']-0x1;_0x107775>=0x0;_0x107775--){const _0x1fe898=_0x3b456a[_0x107775];for(const _0x390e43 of Object['keys'](_0x1fe898['diffData']))if(_0x1fe898['diffData'][_0x390e43]['attachChange']){const _0x4e03f3=_0x1fe898['diffData'][_0x390e43]['attachChange'];_0x4e03f3['isAttached']?(_0x48a6ec['add'](_0x390e43),_0x5725f8['has'](_0x390e43)&&_0x5725f8['get'](_0x390e43)['userId']==_0x4e03f3['userId']?_0x5725f8['delete'](_0x390e43):_0x5725f8['set'](_0x390e43,_0x4e03f3)):_0x5725f8['has'](_0x390e43)?(_0x48a6ec['delete'](_0x390e43),_0x5725f8['delete'](_0x390e43)):(_0x48a6ec['add'](_0x390e43),_0x5725f8['set'](_0x390e43,_0x4e03f3));}else _0x48a6ec['add'](_0x390e43);}for(const _0x3e70c0 of _0x48a6ec){const _0xe79d42=_0x5725f8['has'](_0x3e70c0)&&!_0x5725f8['get'](_0x3e70c0)['isAttached'];let _0x4126fc=_0xe79d42?_0x3b456a['length']-0x1:0x0;const _0x5096b8=_0xe79d42?-0x1:0x1;for(;_0x3b456a[_0x4126fc];){const _0x5454f6=_0x3b456a[_0x4126fc];if(_0x5454f6['diffData'][_0x3e70c0]){const _0x59a42a=_0xe79d42?_0x5454f6['diffData'][_0x3e70c0]['attributesBefore']:_0x5454f6['diffData'][_0x3e70c0]['attributesAfter'];_0x10f61a['attributes'][_0x3e70c0]=_0x59a42a?_0x2810e6(_0x59a42a):{};break;}_0x4126fc+=_0x5096b8;}}for(const _0x33cf57 of _0x3b456a){_0x33cf57['model']={};for(const _0x5c6bde of _0x33cf57['authors'])_0x45a2ac['set'](_0x5c6bde['id'],_0x5c6bde);for(const _0x737e9c of _0x48a6ec){const _0x1de2af=_0x33cf57['diffData'][_0x737e9c]?_0x33cf57['diffData'][_0x737e9c]['insertions']:'[]',_0x2ae102=_0x33cf57['diffData'][_0x737e9c]?_0x33cf57['diffData'][_0x737e9c]['deletions']:'[]';_0x33cf57['model'][_0x737e9c]={'insertions':this['_makeModelFromViewString'](_0x1de2af),'deletions':this['_makeModelFromViewString'](_0x2ae102)};}}for(const _0x2879b0 of _0x48a6ec){let _0x3ede24=null,_0x503ddd=0x0;const _0x585659=new Map(Array['from'](_0x3e2d23['model'][_0x2879b0]['insertions']['markers'])['filter'](([_0x2a1eb3])=>!_0x2a1eb3['startsWith']('revision:')));let _0xedb78=0x0;for(const _0x9d747d of _0x3b456a){const _0x1aaffa=this['_makeTape'](_0x9d747d['model'][_0x2879b0]['insertions']);_0x9d747d==_0x3e2d23?(_0x3ede24=_0x1aaffa,_0x503ddd=_0x3ede24['length'],_0x3ede24['forEach'](_0x5e086b=>{_0x5e086b['id']=_0xedb78++;}),this['_processTape'](_0x3ede24)):this['_markInsertions'](_0x3ede24,_0x1aaffa);const _0x22f266=_0x3ede24['filter'](_0x2130bc=>!_0x2130bc['isAdded'])['map'](_0x4f09ee=>_0x4f09ee['id']);let _0x1d661b=0x0;const _0x3ee475=this['_makeTape'](_0x9d747d['model'][_0x2879b0]['deletions']);_0x3ee475['forEach'](_0x36fc34=>{_0x36fc34['isRemoved']?_0x36fc34['id']=_0x503ddd++:_0x36fc34['id']=_0x22f266[_0x1d661b++];}),this['_processTape'](_0x3ee475),this['_setDistance'](_0x3ede24,'isAdded'),this['_setDistance'](_0x3ee475,'isRemoved'),_0x9d747d==_0x3e2d23&&this['_markMarkers'](_0x3ede24,_0x585659),_0x3ede24=this['_joinTapes'](_0x3ede24,_0x3ee475),this['_refreshStartEndIndex'](_0x3ede24),this['_setDistance'](_0x3ede24,'isRemoved');}_0x3ede24=_0x3ede24['filter'](_0x5d1d26=>!(_0x5d1d26['isAdded']&&_0x5d1d26['isRemoved']));const _0x59c110=new Map(_0x49a426['model'][_0x2879b0]['deletions']['markers']),_0x452c1f=new Set(_0x585659['keys']());for(const _0x253357 of _0x59c110['keys']())_0x452c1f['delete'](_0x253357);this['_markSuggestions'](_0x3ede24,_0x452c1f),this['_fixObsoleteTags'](_0x3ede24),_0x3ede24=this['_removeMissingPairs'](_0x3ede24),_0x3ede24=this['_markMismatchedRemovedTags'](_0x3ede24),_0x3ede24=this['_removeUnsupportedChanges'](_0x3ede24);const {root:_0x23c376,changes:_0x52c6b5}=this['_makeModelFromTape'](_0x3ede24,_0x45a2ac,_0x2879b0);_0x10f61a['model'][_0x2879b0]=_0x23c376;const _0x2e6fa5=_0x5725f8['get'](_0x2879b0);if(_0x2e6fa5){const _0x3c9d9f=_0x45a2ac['get'](_0x2e6fa5['userId']),_0x164401=new r({'author':_0x3c9d9f,'type':_0x2e6fa5['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x2879b0});_0x52c6b5['unshift'](_0x164401),_0x10f61a['attributes'][_0x2879b0]['revisionHistoryAttachChange']=_0x164401['id'];}_0x10f61a['changes']=_0x10f61a['changes']['concat'](_0x52c6b5);}return _0x10f61a;}['_markMarkers'](_0x4f0bfe,_0x3fd227){for(let _0x2799ed=0x0;_0x2799ed<_0x4f0bfe['length'];_0x2799ed++)for(const [_0x504971,_0x3affa0]of _0x3fd227)_0x3affa0['start']['isEqual'](_0x4f0bfe[_0x2799ed]['previousPosition'])&&_0x4f0bfe[_0x2799ed]['markersStart']['push'](_0x504971),_0x3affa0['end']['isEqual'](_0x4f0bfe[_0x2799ed]['nextPosition'])&&_0x4f0bfe[_0x2799ed]['markersEnd']['push'](_0x504971);}['_joinTapes'](_0x1045db,_0x38269){let _0x3eabdb=[],_0x35c7d5=0x0,_0x306855=0x0;for(;_0x35c7d5<_0x1045db['length']||_0x306855<_0x38269['length'];){const _0x34b315=_0x1045db[_0x35c7d5]||{},_0x4023ee=_0x38269[_0x306855]||{};if(_0x34b315['id']==_0x4023ee['id'])_0x35c7d5++,_0x306855++,_0x3eabdb['push'](_0x34b315);else{if(_0x4023ee['isRemoved']&&_0x34b315['isAdded']){const {commonTape:_0x1a8228,iEnd:_0x439905,jEnd:_0x131be9}=this['_threeWayMerge'](_0x1045db,_0x35c7d5,_0x38269,_0x306855);_0x3eabdb=_0x3eabdb['concat'](_0x1a8228),_0x35c7d5=_0x439905,_0x306855=_0x131be9;}else _0x4023ee['isRemoved']?(_0x306855++,_0x3eabdb['push'](_0x4023ee)):(_0x35c7d5++,_0x3eabdb['push'](_0x34b315));}}return _0x3eabdb;}['_markSuggestions'](_0x655bb1,_0x3dbfb8){const _0x3986d3=[];for(let _0x4efbb0=0x0;_0x4efbb0<_0x655bb1['length'];_0x4efbb0++){for(let _0x12e894=0x0;_0x12e894<_0x655bb1[_0x4efbb0]['markersStart']['length'];_0x12e894++){const _0x4b2447=_0x655bb1[_0x4efbb0]['markersStart'][_0x12e894];if(!_0x3dbfb8['has'](_0x4b2447))continue;const {group:_0x6fe655,type:_0x46e64c,authorId:_0x48d1b0}=_0xca90ad(_0x4b2447);'revision-suggestion'!=_0x6fe655||'insertion'!=_0x46e64c&&'deletion'!=_0x46e64c||(_0x3986d3['unshift']({'type':_0x46e64c,'name':_0x4b2447,'userId':_0x48d1b0}),_0x655bb1[_0x4efbb0]['markersStart']['splice'](_0x12e894,0x1),_0x12e894--);}_0x41f842(_0x655bb1[_0x4efbb0]);for(let _0x3cfa7a=0x0;_0x3cfa7a<_0x655bb1[_0x4efbb0]['markersEnd']['length'];_0x3cfa7a++){const _0x4cb245=_0x655bb1[_0x4efbb0]['markersEnd'][_0x3cfa7a];if(!_0x3dbfb8['has'](_0x4cb245))continue;const {group:_0x23303a,type:_0x4c89a5}=_0xca90ad(_0x4cb245);if('revision-suggestion'!=_0x23303a||'insertion'!=_0x4c89a5&&'deletion'!=_0x4c89a5)continue;_0x655bb1[_0x4efbb0]['markersEnd']['splice'](_0x3cfa7a,0x1),_0x3cfa7a--;const _0x326c25=_0x3986d3['findIndex'](_0x2b989a=>_0x2b989a['name']==_0x4cb245);_0x326c25>-0x1&&_0x3986d3['splice'](_0x326c25,0x1);}}function _0xca90ad(_0xbc5acd){const _0x2a2d32=_0xbc5acd['split'](':');return{'group':_0x2a2d32[0x0],'type':_0x2a2d32[0x1],'subType':_0x2a2d32['length']>=0x5?_0x2a2d32[0x2]:null,'id':_0x2a2d32['length']<0x5?_0x2a2d32[0x2]:_0x2a2d32[0x3],'authorId':_0x2a2d32['length']<0x5?_0x2a2d32[0x3]:_0x2a2d32[0x4],'markerCount':0x6==_0x2a2d32['length']?_0x2a2d32[0x5]:null};}function _0x41f842(_0x37e45e){for(let _0x3fa14f=0x0;_0x3fa14f<_0x3986d3['length'];_0x3fa14f++){if(_0x37e45e['isAdded']&&'insertion'==_0x3986d3[_0x3fa14f]['type'])return _0x37e45e['isAddSuggestion']=_0x3986d3[_0x3fa14f],void delete _0x37e45e['isAdded'];if(!_0x37e45e['isAdded']&&!_0x37e45e['isRemoved']&&'deletion'==_0x3986d3[_0x3fa14f]['type'])return void(_0x37e45e['isRemoveSuggestion']=_0x3986d3[_0x3fa14f]);}}}['_setDistance'](_0x405ac1,_0x40fc7f){let _0x3fae07=0x0,_0x4c3744=!0x1;const _0x3968e1=new Map();for(const _0x57acf1 of _0x405ac1)_0x57acf1[_0x40fc7f]?_0x4c3744&&(_0x3fae07++,_0x4c3744=!0x1):(_0x3fae07++,_0x4c3744=!0x0),_0x3968e1['set'](_0x57acf1['id'],_0x3fae07);for(let _0x28e55d=0x0;_0x28e55d<_0x405ac1['length'];_0x28e55d++){if('isRemoved'==_0x40fc7f&&_0x405ac1[_0x28e55d]['isAdded']||'isAdded'==_0x40fc7f&&_0x405ac1[_0x28e55d]['isRemoved'])continue;if('text'==_0x405ac1[_0x28e55d]['type']){_0x405ac1[_0x28e55d]['distance']=0x0;continue;}const _0x16e75e=_0x3968e1['get'](_0x405ac1[_0x28e55d]['pairId']),_0x68026f=_0x3968e1['get'](_0x405ac1[_0x28e55d]['id']);_0x405ac1[_0x28e55d]['distance']=_0x16e75e-_0x68026f;}}['_getRevisionsRange'](_0x42342e,_0x1b81e0,_0x257fbe=!0x1){const _0x1afcb8=[];let _0x23db74=this['repository']['getIndex'](_0x42342e),_0x19bc3b=this['repository']['getIndex'](_0x1b81e0);for(-0x1==_0x19bc3b&&(_0x19bc3b=this['repository']['_revisions']['length'],_0x257fbe=!0x1);_0x23db74<_0x19bc3b;)_0x1afcb8['push'](this['repository']['getRevision'](_0x23db74)),_0x23db74++;return _0x257fbe&&_0x1afcb8['push'](this['repository']['getRevision'](_0x23db74)),_0x1afcb8;}['_threeWayMerge'](_0x3960e0,_0x211195,_0x38a294,_0x375ea3){const _0x384a21=this['editor']['model']['schema'];let _0x1d47c0=_0x211195;for(;_0x3960e0[_0x1d47c0]&&_0x3960e0[_0x1d47c0]['isAdded'];)_0x1d47c0++;let _0x545132=_0x375ea3;for(;_0x38a294[_0x545132]&&_0x38a294[_0x545132]['isRemoved'];)_0x545132++;_0x40c3a8(_0x3960e0,_0x211195,_0x1d47c0),_0x40c3a8(_0x38a294,_0x375ea3,_0x545132);const _0x27ae4a=_0x38a294['slice'](_0x375ea3,_0x545132)['concat'](_0x3960e0['slice'](_0x211195,_0x1d47c0));return _0x27ae4a['sort']((_0x4b5844,_0xa69398)=>_0x4b5844['side']!=_0xa69398['side']?_0x4b5844['side']-_0xa69398['side']:_0x4b5844['level']!=_0xa69398['level']?_0x4b5844['level']-_0xa69398['level']:_0x4b5844['distance']!=_0xa69398['distance']?_0xa69398['distance']-_0x4b5844['distance']:!!_0x4b5844['isAdded']!=!!_0xa69398['isAdded']?-0x1==_0x4b5844['side']||0x0==_0x4b5844['side']?_0x4b5844['isAdded']?-0x1:0x1:_0x4b5844['isAdded']?0x1:-0x1:_0x4b5844['index']-_0xa69398['index']),{'commonTape':_0x27ae4a,'iEnd':_0x1d47c0,'jEnd':_0x545132};function _0x40c3a8(_0x19ed2b,_0x5e8b76,_0x127785){let _0x39d0fa=-0x1,_0x17926c=Number['POSITIVE_INFINITY'],_0x3ba5b7=!0x0;for(let _0x7244ae=_0x5e8b76;_0x7244ae<_0x127785;_0x7244ae++)if(_0x384a21['isInline'](_0x19ed2b[_0x7244ae]['item'])||(_0x3ba5b7=!0x1),_0x19ed2b[_0x7244ae]['item']['startIndex']<_0x5e8b76&&(_0x39d0fa=_0x7244ae),_0x19ed2b[_0x7244ae]['item']['endIndex']>=_0x127785){_0x17926c=_0x7244ae;break;}_0x3ba5b7&&(_0x39d0fa=_0x127785-0x1);for(let _0x2de274=_0x5e8b76;_0x2de274<_0x127785;_0x2de274++)_0x19ed2b[_0x2de274]['side']=_0x2de274<=_0x39d0fa?-0x1:_0x2de274<_0x17926c?0x0:0x1,_0x19ed2b[_0x2de274]['index']=_0x2de274;let _0xf8c699=0x0;for(let _0x2d5041=_0x5e8b76;_0x2d5041<=_0x39d0fa;_0x2d5041++)0x0==_0x19ed2b[_0x2d5041]['distance']?_0x19ed2b[_0x2d5041]['level']=_0xf8c699:(_0xf8c699++,_0x19ed2b[_0x2d5041]['level']=_0xf8c699,_0xf8c699++);for(let _0x1a5d02=_0x5e8b76;_0x1a5d02<_0x127785;_0x1a5d02++)0x0==_0x19ed2b[_0x1a5d02]['side']&&(_0x19ed2b[_0x1a5d02]['level']=_0xf8c699);_0xf8c699=0x0;for(let _0x324b95=_0x127785-0x1;_0x324b95>=_0x17926c;_0x324b95--)0x0==_0x19ed2b[_0x324b95]['distance']?_0x19ed2b[_0x324b95]['level']=_0xf8c699:(_0xf8c699--,_0x19ed2b[_0x324b95]['level']=_0xf8c699,_0xf8c699--);}}['_fixObsoleteTags'](_0x471bd6){const _0x1197a7=new Map(),_0xb3267d=this['editor']['model']['schema'];for(let _0x3dcd2b=0x1;_0x3dcd2b<_0x471bd6['length'];_0x3dcd2b++){let _0x19a145,_0x3612b6,_0xef32de;const _0x93c5a5=_0x471bd6[_0x3dcd2b],_0xe13174=_0x471bd6[_0x3dcd2b-0x1];if('text'==_0x93c5a5['type'])continue;if(_0x93c5a5['type']!=_0xe13174['type'])continue;if(!_0xb3267d['isBlock'](_0xe13174['item'])||_0xb3267d['isLimit'](_0xe13174['item']))continue;if(!_0xb3267d['isBlock'](_0x93c5a5['item'])||_0xb3267d['isLimit'](_0x93c5a5['item']))continue;if((_0x471bd6[_0x3dcd2b]['isAdded']||_0x471bd6[_0x3dcd2b]['isAddSuggestion'])&&_0x471bd6[_0x3dcd2b-0x1]['isRemoved'])_0x19a145=_0x471bd6[_0x3dcd2b],_0x3612b6=_0x471bd6[_0x3dcd2b-0x1],_0xef32de=_0x3dcd2b-0x1;else{if(!_0x471bd6[_0x3dcd2b]['isRemoved']||!_0x471bd6[_0x3dcd2b-0x1]['isAdded']&&!_0x471bd6[_0x3dcd2b-0x1]['isAddSuggestion'])continue;_0x19a145=_0x471bd6[_0x3dcd2b-0x1],_0x3612b6=_0x471bd6[_0x3dcd2b],_0xef32de=_0x3dcd2b;}const _0x5621de=_0x19a145['level']==_0x3612b6['level'],_0x43d832=Math['abs'](_0x19a145['level'])<Math['abs'](_0x3612b6['level'])&&0x0==_0x3612b6['distance'];(_0x5621de||_0x43d832)&&(_0x1197a7['set'](_0x3612b6['id'],_0x19a145['id']),_0x471bd6['splice'](_0xef32de,0x1),_0x3dcd2b--,_0x19a145['isAdded']=!0x1);}for(let _0x176afe=0x0;_0x176afe<_0x471bd6['length'];_0x176afe++)_0x1197a7['has'](_0x471bd6[_0x176afe]['pairId'])&&(_0x471bd6[_0x176afe]['pairId']=_0x1197a7['get'](_0x471bd6[_0x176afe]['pairId']));}['_removeMissingPairs'](_0x4877b1){const _0x55c79e=new Set(_0x4877b1['map'](_0x44f0a5=>_0x44f0a5['id']));for(let _0x141146=0x0;_0x141146<_0x4877b1['length'];_0x141146++)_0x55c79e['has'](_0x4877b1[_0x141146]['pairId'])||0x0==_0x4877b1[_0x141146]['distance']||(_0x4877b1[_0x141146]['isIncorrect']=!0x0);return _0x4877b1['filter'](_0xfed910=>!_0xfed910['isIncorrect']);}['_markMismatchedRemovedTags'](_0x667c68){const _0x245991=new Set();for(let _0x383e18=0x0;_0x383e18<_0x667c68['length'];_0x383e18++){if(_0x245991['has'](_0x667c68[_0x383e18]['id'])&&_0x667c68[_0x383e18]['isRemoved']&&(_0x667c68[_0x383e18]['isIncorrect']=!0x0),_0x667c68[_0x383e18]['isIncorrect'])continue;if(0x0==_0x667c68[_0x383e18]['distance'])continue;if('elementStart'!=_0x667c68[_0x383e18]['type'])continue;if(null==_0x667c68[_0x383e18]['pairId'])continue;let _0x1c2bf3=_0x383e18+0x1,_0x553470=0x0;for(;_0x667c68[_0x1c2bf3]['id']!=_0x667c68[_0x383e18]['pairId'];)'elementStart'==_0x667c68[_0x1c2bf3]['type']?_0x553470++:'elementEnd'==_0x667c68[_0x1c2bf3]['type']&&_0x553470--,_0x1c2bf3++;if(0x0!=_0x553470){if(_0x667c68[_0x383e18]['isRemoved'])_0x667c68[_0x383e18]['isIncorrect']=!0x0;else{for(;_0x1c2bf3!=_0x383e18;)_0x667c68[_0x1c2bf3]['isRemoved']&&0x0!=_0x667c68[_0x1c2bf3]['distance']&&(_0x667c68[_0x1c2bf3]['isIncorrect']=!0x0,_0x245991['add'](_0x667c68[_0x1c2bf3]['pairId'])),_0x1c2bf3--;}}}return _0x667c68['filter'](_0x258f62=>!_0x258f62['isIncorrect']);}['_removeUnsupportedChanges'](_0x6ea771){const _0x5f3709=this['editor']['model']['schema'];for(let _0x39f993=0x0;_0x39f993<_0x6ea771['length'];_0x39f993++){if(!(_0x6ea771[_0x39f993]['isAdded']||_0x6ea771[_0x39f993]['isAddSuggestion']||_0x6ea771[_0x39f993]['isRemoved']||_0x6ea771[_0x39f993]['isRemoveSuggestion']))continue;if(0x0==_0x6ea771[_0x39f993]['distance'])continue;const _0x2da91c=_0x6ea771[_0x39f993]['item'];_0x5f3709['isBlock'](_0x2da91c)||_0x5f3709['isLimit'](_0x2da91c)||(_0x6ea771[_0x39f993]['isAdded']&&delete _0x6ea771[_0x39f993]['isAdded'],_0x6ea771[_0x39f993]['isAddSuggestion']&&delete _0x6ea771[_0x39f993]['isAddSuggestion'],_0x6ea771[_0x39f993]['isRemoveSuggestion']&&delete _0x6ea771[_0x39f993]['isRemoveSuggestion'],_0x6ea771[_0x39f993]['isRemoved']&&(_0x6ea771[_0x39f993]['isIncorrect']=!0x0));}return _0x6ea771['filter'](_0x266b68=>!_0x266b68['isIncorrect']);}['_makeModelFromTape'](_0x103cfa,_0x2afdf8,_0x1a534d){const _0x14bc21=new gt(),_0x45fe53=[],_0x3b6ef2=new Map(),_0x17c01d=this['editor']['model'],_0x560da5=_0x17c01d['schema'],_0x9f016d=[_0x14bc21],_0x2325d6={},_0x3a63c8={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x24279b=null;const _0x5ea19c=[0x0];for(let _0x289435=0x0;_0x289435<_0x103cfa['length'];_0x289435++)if('elementStart'===_0x103cfa[_0x289435]['type']){_0x103cfa[_0x289435]['previousPosition']=_0x17c01d['createPositionFromPath'](_0x14bc21,_0x5ea19c);const _0x246999=new ut(_0x103cfa[_0x289435]['item']['name'],_0x103cfa[_0x289435]['item']['getAttributes']());_0x9f016d[0x0]['_appendChild'](_0x246999),_0x5ea19c['push'](0x0),_0x9f016d['unshift'](_0x246999),_0x103cfa[_0x289435]['nextPosition']=_0x17c01d['createPositionFromPath'](_0x14bc21,_0x5ea19c);}else'elementEnd'===_0x103cfa[_0x289435]['type']?(_0x9f016d['shift'](),_0x103cfa[_0x289435]['previousPosition']=_0x17c01d['createPositionFromPath'](_0x14bc21,_0x5ea19c),_0x5ea19c['pop'](),_0x5ea19c[_0x5ea19c['length']-0x1]++,_0x103cfa[_0x289435]['nextPosition']=_0x17c01d['createPositionFromPath'](_0x14bc21,_0x5ea19c)):(_0x103cfa[_0x289435]['previousPosition']=_0x17c01d['createPositionFromPath'](_0x14bc21,_0x5ea19c),_0x24279b?_0x24279b['_data']+=_0x103cfa[_0x289435]['item']['data']:_0x24279b=new wt(_0x103cfa[_0x289435]['item']['data'],_0x103cfa[_0x289435]['item']['getAttributes']()),_0x103cfa[_0x289435+0x1]&&'text'===_0x103cfa[_0x289435+0x1]['type']&&_0x332e50(_0x24279b,_0x103cfa[_0x289435+0x1]['item'])||(_0x9f016d[0x0]['_appendChild'](_0x24279b),_0x24279b=null),_0x5ea19c[_0x5ea19c['length']-0x1]+=_0x103cfa[_0x289435]['item']['offsetSize'],_0x103cfa[_0x289435]['nextPosition']=_0x17c01d['createPositionFromPath'](_0x14bc21,_0x5ea19c));for(let _0x420b10=0x0;_0x420b10<_0x103cfa['length'];_0x420b10++){const _0x285f9f=_0x103cfa[_0x420b10]['previousPosition'],_0x471965=_0x103cfa[_0x420b10]['nextPosition'];for(const _0x4ce984 of _0x103cfa[_0x420b10]['markersStart'])_0x3b6ef2['set'](_0x4ce984,{'start':_0x285f9f,'end':null});_0x1cb2a9('isRemoveSuggestion',_0x420b10,_0x285f9f,_0x471965),_0x1cb2a9('isAddSuggestion',_0x420b10,_0x285f9f,_0x471965),_0x1cb2a9('isRemoved',_0x420b10,_0x285f9f,_0x471965),_0x1cb2a9('isAdded',_0x420b10,_0x285f9f,_0x471965);for(const _0x5a484b of _0x103cfa[_0x420b10]['markersEnd']){_0x3b6ef2['get'](_0x5a484b)['end']=_0x471965;}}for(const [_0x4d8aa3,_0x2c09fe]of _0x3b6ef2){const _0x479e5c=this['editor']['model']['createRange'](_0x2c09fe['start'],_0x2c09fe['end']);_0x14bc21['markers']['set'](_0x4d8aa3,_0x479e5c);}return _0x45fe53['sort']((_0x4209f2,_0x3081f3)=>{const _0x4a10d8=_0x14bc21['markers']['get']('revision:'+_0x4209f2['id']),_0x6638af=_0x14bc21['markers']['get']('revision:'+_0x3081f3['id']);return _0x4a10d8['start']['isBefore'](_0x6638af['start'])?-0x1:_0x4a10d8['start']['isAfter'](_0x6638af['start'])?0x1:_0x4a10d8['end']['isBefore'](_0x6638af['end'])?-0x1:_0x4a10d8['end']['isAfter'](_0x6638af['end'])?0x1:'add'===_0x4209f2['type']?-0x1:0x1;}),{'root':_0x14bc21,'changes':_0x45fe53};function _0x1cb2a9(_0x3c56a3,_0x1803b8,_0x1687fe,_0x5e4549){const _0x28268a=!!_0x103cfa[_0x1803b8][_0x3c56a3],_0x468963=_0x28268a?_0x103cfa[_0x1803b8][_0x3c56a3]['userId']:null,_0x1e29e4=_0x1803b8===_0x103cfa['length']-0x1,_0x18e51f=_0x3a63c8[_0x3c56a3][0x0],_0x3783db=_0x560da5['isObject'](_0x103cfa[_0x1803b8]['item']);!_0x2325d6[_0x3c56a3]&&_0x28268a?_0x2325d6[_0x3c56a3]={'start':_0x1687fe,'tapeItem':_0x103cfa[_0x1803b8],'userId':_0x468963,'type':_0x3c56a3}:_0x2325d6[_0x3c56a3]&&!_0x28268a?(_0x2325d6[_0x3c56a3]['end']=_0x1687fe,_0x4f69f6(_0x2325d6[_0x3c56a3]),_0x2325d6[_0x3c56a3]=null):_0x2325d6[_0x3c56a3]&&_0x28268a&&_0x2325d6[_0x3c56a3]['userId']!==_0x468963&&(_0x2325d6[_0x3c56a3]['end']=_0x1687fe,_0x18e51f&&_0x18e51f['userId']===_0x2325d6[_0x3c56a3]['userId']||_0x4f69f6(_0x2325d6[_0x3c56a3]),_0x2325d6[_0x3c56a3]={'start':_0x1687fe,'tapeItem':_0x103cfa[_0x1803b8],'userId':_0x468963,'type':_0x3c56a3}),_0x2325d6[_0x3c56a3]&&_0x3783db&&('elementStart'!==_0x103cfa[_0x1803b8]['type']||_0x18e51f&&_0x18e51f['userId']===_0x468963||_0x3a63c8[_0x3c56a3]['unshift']({'userId':_0x468963,'object':_0x103cfa[_0x1803b8]['item'],'change':_0x2325d6[_0x3c56a3]}),'elementEnd'===_0x103cfa[_0x1803b8]['type']&&_0x18e51f&&_0x18e51f['object']===_0x103cfa[_0x1803b8]['item']&&(_0x3a63c8[_0x3c56a3]['shift'](),_0x2325d6[_0x3c56a3]=_0x18e51f['change'])),_0x2325d6[_0x3c56a3]&&_0x1e29e4&&(_0x2325d6[_0x3c56a3]['end']=_0x5e4549,_0x4f69f6(_0x2325d6[_0x3c56a3]),_0x2325d6[_0x3c56a3]=null);}function _0x4f69f6({start:_0x52a307,end:_0x3f4751,tapeItem:_0x475ea5,userId:_0x405409,type:_0x16c604}){const _0x4d7702=_0x475ea5['item'],_0x15a962=_0x17c01d['schema']['isBlock'](_0x4d7702)&&!_0x17c01d['schema']['isLimit'](_0x4d7702),_0xfc3d44=_0x52a307['nodeAfter']==_0x3f4751['parent']&&_0x3f4751['isAtStart'];if(_0x15a962&&_0xfc3d44)return;const _0x59ce0f=_0x17c01d['createRange'](_0x52a307,_0x3f4751),_0x3c1c95=_0x2afdf8['get'](_0x405409),_0x21eeb9=new r({'author':_0x3c1c95,'type':'isAdded'==_0x16c604||'isAddSuggestion'==_0x16c604?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x16c604||'isRemoveSuggestion'==_0x16c604},'createdAt':new Date(),'rootName':_0x1a534d});_0x45fe53['push'](_0x21eeb9),_0x14bc21['markers']['set']('revision:'+_0x21eeb9['id'],_0x59ce0f);}function _0x332e50(_0x41285d,_0x5d30d1){const _0x14cb73=_0x41285d['getAttributes'](),_0x3b29e1=_0x5d30d1['getAttributes']();for(const _0x2811c4 of _0x14cb73){if(_0x2811c4[0x1]!==_0x5d30d1['getAttribute'](_0x2811c4[0x0]))return!0x1;_0x3b29e1['next']();}return _0x3b29e1['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x4e0654=>{const _0x292506=_0x4e0654['markerName']['split'](':')[0x1],_0x3c0b41=this['_getChangeFromId'](_0x292506);if(!_0x3c0b41)return null;const _0x2c7083='add'==_0x3c0b41['type']?'insertion':'deletion',_0x3113be=['ck-suggestion-marker','ck-suggestion-marker-'+_0x2c7083];return _0x3c0b41['data']['isSuggestion']&&_0x3113be['push']('ck-suggestion-marker-'+_0x2c7083+'-new'),this['activeChange']==_0x3c0b41&&_0x3113be['push']('ck-suggestion-marker--active'),{'classes':_0x3113be,'attributes':{'data-change-id':_0x292506}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x4ca8fe=>{_0x4ca8fe['on']('element:pre',(_0x33de65,_0x56c7ab,_0x144eab)=>{const _0xcf079f=_0x56c7ab['viewItem']['getChild'](0x0);if(!_0xcf079f||!_0xcf079f['is']('element','code'))return;if(!_0x144eab['consumable']['consume'](_0xcf079f,{'attributes':['vid_start','vid_end']}))return;const _0x1e80d7=_0x56c7ab['modelRange']['start']['nodeAfter'];_0x144eab['writer']['setAttribute']('vid_start',_0xcf079f['getAttribute']('vid_start'),_0x1e80d7),_0x144eab['writer']['setAttribute']('vid_end',_0xcf079f['getAttribute']('vid_end'),_0x1e80d7);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x18f711=>{_0x18f711['on']('element',(_0x323f42,_0xec6237,_0x386952)=>{if(!_0x386952['consumable']['consume'](_0xec6237['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0xec6237['modelRange']['isCollapsed'])return;const _0x447d2e=_0xec6237['modelRange']['start']['nodeAfter'];_0x447d2e['hasAttribute']('vid_start')||_0x447d2e['hasAttribute']('vid')||(_0x386952['writer']['setAttribute']('vid_start',_0xec6237['viewItem']['getAttribute']('vid_start'),_0x447d2e),_0x386952['writer']['setAttribute']('vid_end',_0xec6237['viewItem']['getAttribute']('vid_end'),_0x447d2e));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x5a83a7=>_0x5a83a7['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x128733,[,_0x2f4784])=>{['vid_start','vid_end','vid']['includes'](_0x2f4784)&&(_0x128733['return']=!0x0,_0x128733['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x24a781=>{_0x24a781['on']('attribute:vid',(_0x117776,_0x4cef7a,_0x3f0130)=>{if('\x20'!=_0x4cef7a['item']['data']||_0x4cef7a['item']['parent']['maxOffset']>0x1)return;if(!_0x3f0130['consumable']['consume'](_0x4cef7a['item'],_0x117776['name']))return;const _0x20ec2a=_0x3f0130['writer'],_0x1938cc=_0x3f0130['mapper']['toViewRange'](_0x4cef7a['range']);_0x20ec2a['wrap'](_0x1938cc,_0x20ec2a['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x2e11cb){const _0x47b6c2=_0x2e11cb['plugins']['get']('RevisionViewer');return(_0xf05925,_0x3c6351,_0x7d84bf)=>{const _0xaa31a2=_0x3c6351['markerName']['split'](':')[0x1],_0x2d4756=_0x47b6c2['_getChangeFromId'](_0xaa31a2);if(!_0x2d4756)return null;const _0x35be04='add'==_0x2d4756['type']?'split':'merge';if(!_0x7d84bf['consumable']['test'](_0x3c6351['markerRange'],_0xf05925['name']))return;const _0x409df7=_0x3c6351['markerRange']['getWalker'](),_0x43825a=_0x3c6351['markerRange']['start'],_0x330046=_0x2e11cb['model']['schema'];let _0x11cabc=null,_0x18303c=null,_0x41f305=!0x1,_0x3f644e=!0x1;for(const _0xaa2270 of _0x409df7){const _0x12a783=_0xaa2270['item'];_0x41f305=_0x41f305||_0x330046['isContent'](_0x12a783);const _0x18da95=_0x7d84bf['mapper']['toViewElement'](_0x12a783);if(_0x18da95&&_0x18da95['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xaa2270['type']&&(_0x330046['isBlock'](_0x12a783)&&!_0x330046['isLimit'](_0x12a783)&&(_0x12a783['nextSibling']||_0x43825a['isAtEnd']?_0x11cabc&&_0x11cabc['parent']==_0x12a783||(_0x11cabc=_0x12a783,_0x56304e(_0xaa2270['previousPosition']),_0x3f644e=!0x0):_0x18303c=_0x18303c||_0xaa2270['previousPosition']));}function _0x56304e(_0x4220fa){const _0x361930=_0x7d84bf['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x35be04}),_0x239633=_0x7d84bf['mapper']['toViewPosition'](_0x4220fa);_0x2d4756['data']['isSuggestion']&&_0x7d84bf['writer']['addClass']('ck-suggestion-marker-'+_0x35be04+'-new',_0x361930),_0x47b6c2['activeChange']==_0x2d4756&&_0x7d84bf['writer']['addClass']('ck-suggestion-marker--active',_0x361930),_0x7d84bf['writer']['insert'](_0x239633,_0x361930),_0x7d84bf['mapper']['bindElementToMarker'](_0x361930,_0x3c6351['markerName']);}_0x41f305||_0x3f644e||!_0x18303c||_0x56304e(_0x18303c);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x4892a2,_0x20b473,_0x26d130)=>{const _0x2d96a9=_0x26d130['mapper']['markerNameToElements'](_0x20b473['markerName']);if(_0x2d96a9){for(const _0x550a18 of _0x2d96a9)(_0x550a18['hasClass']('ck-suggestion-marker-split')||_0x550a18['hasClass']('ck-suggestion-marker-merge'))&&(_0x26d130['mapper']['unbindElementFromMarkerName'](_0x550a18,_0x20b473['markerName']),_0x26d130['writer']['remove'](_0x550a18));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x21df97,_0x40cb25,_0xe674ed)=>{const _0x2c00ba=_0x40cb25['markerName']['split'](':')[0x1],_0x35f693=this['_getChangeFromId'](_0x2c00ba);if(!_0x35f693)return null;const _0x1be3cb='add'==_0x35f693['type']?'split':'merge';if(_0xe674ed['consumable']['test'](_0x40cb25['markerRange'],_0x21df97['name']))for(const _0x583fed of _0x40cb25['markerRange']['getItems']()){if(!_0x583fed['is']('element','softBreak'))continue;const _0x1224b3=_0xe674ed['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1be3cb}),_0x4aca02=_0xe674ed['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x583fed));_0x35f693['data']['isSuggestion']&&_0xe674ed['writer']['addClass']('ck-suggestion-marker-'+_0x1be3cb+'-new',_0x1224b3),this['activeChange']==_0x35f693&&_0xe674ed['writer']['addClass']('ck-suggestion-marker--active',_0x1224b3),_0xe674ed['writer']['insert'](_0x4aca02,_0x1224b3),_0xe674ed['mapper']['bindElementToMarker'](_0x1224b3,_0x40cb25['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0xa7d50e=>{for(const _0x23674f of this['editor']['model']['document']['getRootNames']()){const _0x373271=this['editor']['model']['document']['getRoot'](_0x23674f),_0x52c1b5=this['editor']['editing']['view']['document']['getRoot'](_0x23674f);if(_0x52c1b5){const _0x1a5e40=_0x373271['getAttribute']('revisionHistoryAttachChange');if(_0xa7d50e['removeAttribute']('data-change-id',_0x52c1b5),_0xa7d50e['removeClass']('ck-revision-history-root-add',_0x52c1b5),_0xa7d50e['removeClass']('ck-revision-history-root-remove',_0x52c1b5),_0xa7d50e['removeClass']('ck-revision-history-root--active',_0x52c1b5),_0x1a5e40){const _0xd75cac=this['_getChangeFromId'](_0x1a5e40);if(!_0xd75cac)return null;_0xa7d50e['setAttribute']('data-change-id',_0x1a5e40,_0x52c1b5),_0xa7d50e['addClass']('ck-revision-history-root-'+_0xd75cac['type'],_0x52c1b5),this['activeChange']==_0xd75cac&&_0xa7d50e['addClass']('ck-revision-history-root--active',_0x52c1b5);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x2cafee=>'revision-comment:'+_0x2cafee,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0xcb3012=>'revision-suggestion:'+_0xcb3012,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x12d2ea=>({'name':'suggestion:'+_0x12d2ea,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x75fa85=>{const _0x248078=_0x75fa85['markerName']['split'](':')[0x1];return'insertion'!=_0x248078&&'deletion'!=_0x248078?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x248078]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x15035d,_0x57999a,_0x2a432b)=>{const _0x3e67c6=_0x2a432b['mapper']['markerNameToElements'](_0x57999a['markerName']);if(_0x3e67c6){for(const _0x4305c7 of _0x3e67c6)_0x4305c7['is']('uiElement')&&(_0x2a432b['mapper']['unbindElementFromMarkerName'](_0x4305c7,_0x57999a['markerName']),_0x2a432b['writer']['remove'](_0x4305c7));}},{'priority':'high'});}['_getChangeFromId'](_0x17c7b5){return this['_changeIdToChange']['get'](_0x17c7b5);}['_getViewForChange'](_0x5b3571){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x5b3571),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x8072dd,_0x4e36db,_0x48027d,_0xca5b75)=>{_0xca5b75&&this['_balloon']['remove'](_0xca5b75),_0x48027d&&(this['_balloon']['add']({'view':_0x48027d,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x5f57c9=this['editor']['editing'],_0x498d23=this['_getChangeFromId'](_0x48027d['changeId']);let _0x10ee07;if(_0x498d23['data']['isOnRoot']){const _0xccedd3=_0x5f57c9['view']['getDomRoot'](_0x498d23['rootName']);_0x10ee07=Array['from'](_0xccedd3['getClientRects']());}else{const _0x1ab143=this['editor']['model']['markers']['get']('revision:'+_0x48027d['changeId']);_0x10ee07=Array['from'](_0x5f57c9['mapper']['markerNameToElements'](_0x1ab143['name']))['map'](_0x37e214=>_0x5f57c9['view']['domConverter']['mapViewToDom'](_0x37e214))['map'](_0xd87475=>Array['from'](_0xd87475['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x10ee07[0x0];return _0x10ee07['find'](_0x36111f=>_0x36111f['top']-0x3<=this['_activeViewTarget']['y']&&_0x36111f['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x36111f['left']-0x3<=this['_activeViewTarget']['x']&&_0x36111f['right']+0x3>=this['_activeViewTarget']['x'])||_0x10ee07[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x4cefe6,_0x32cc81,_0x45ab43,_0x2bc7a5)=>{this['activeView']=_0x45ab43?this['_getViewForChange'](_0x45ab43):null,this['editor']['model']['change'](()=>{const _0x11370c=this['editor']['editing'];_0x2bc7a5&&(_0x2bc7a5['data']['isOnRoot']?_0x11370c['view']['change'](_0xd93728=>{_0xd93728['removeClass']('ck-revision-history-root--active',_0x11370c['view']['document']['getRoot'](_0x2bc7a5['rootName']));}):_0x11370c['reconvertMarker']('revision:'+_0x2bc7a5['id'])),_0x45ab43&&(_0x45ab43['data']['isOnRoot']?_0x11370c['view']['change'](_0x118f76=>{_0x118f76['addClass']('ck-revision-history-root--active',_0x11370c['view']['document']['getRoot'](_0x45ab43['rootName']));}):_0x11370c['reconvertMarker']('revision:'+_0x45ab43['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x38be51,_0x1190ee)=>{if(this['activeChange'])return;const _0x346035=this['_findChangeIdFromDomTarget'](_0x1190ee['target']),_0xf45878=this['_changeIdToChange']['get'](_0x346035);_0xf45878?(this['_activeViewTarget']={'x':_0x1190ee['domEvent']['x'],'y':_0x1190ee['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0xf45878)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x3aaf76,_0x22ac60)=>{const _0x29d922=this['_findChangeIdFromDomTarget'](_0x22ac60['target']),_0x548916=this['_changeIdToChange']['get'](_0x29d922);_0x548916?(this['_activeViewTarget']={'x':_0x22ac60['domEvent']['x'],'y':_0x22ac60['domEvent']['y']},_0x548916===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x548916):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x5b9de3){do{const _0xfb3208=_0x5b9de3['getAttribute']('data-change-id');if(_0xfb3208)return _0xfb3208;_0x5b9de3=_0x5b9de3['parent'];}while(_0x5b9de3);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x258f75=>{for(const _0xb3a901 of this['editor']['model']['markers'])_0x258f75['removeMarker'](_0xb3a901);});}}function Z(_0x4dd7b0,_0x2088e0){return(_0x3efe5a,_0x5f2f6b,_0xbcac41)=>{if(!_0xbcac41['consumable']['test'](_0x5f2f6b['markerRange'],_0x3efe5a['name']))return;const _0x1760e6=_0x5f2f6b['markerRange']['getWalker'](),_0x4c8930=_0x5f2f6b['markerRange']['start'],_0x37ac6f=_0x4dd7b0['model']['schema'];let _0xb15c80=null,_0x469e61=null,_0x16304f=!0x1,_0x1dcd1f=!0x1;for(const _0x2a36dd of _0x1760e6){const _0xd3af94=_0x2a36dd['item'];_0x16304f=_0x16304f||_0x37ac6f['isContent'](_0xd3af94);const _0x50958c=_0xbcac41['mapper']['toViewElement'](_0xd3af94);if(_0x50958c&&_0x50958c['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2a36dd['type']&&(_0x37ac6f['isBlock'](_0xd3af94)&&!_0x37ac6f['isLimit'](_0xd3af94)&&(_0xd3af94['nextSibling']||_0x4c8930['isAtEnd']?_0xb15c80&&_0xb15c80['parent']==_0xd3af94||(_0xb15c80=_0xd3af94,_0x4c0e2b(_0x2a36dd['previousPosition']),_0x1dcd1f=!0x0):_0x469e61=_0x469e61||_0x2a36dd['previousPosition']));}function _0x4c0e2b(_0xe3086a){const _0x6436b4=_0xbcac41['mapper']['toViewPosition'](_0xe3086a),_0x165abc=_0xbcac41['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x2088e0});_0xbcac41['writer']['insert'](_0x6436b4,_0x165abc),_0xbcac41['mapper']['bindElementToMarker'](_0x165abc,_0x5f2f6b['markerName']);}_0x16304f||_0x1dcd1f||!_0x469e61||_0x4c0e2b(_0x469e61);};}class _t extends _0x1cd2f9{constructor(_0x4360c0){super(_0x4360c0);const _0x3910fa=_0x4360c0['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x3910fa,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x3910fa,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0xfff9d8=this['editor'],_0x35a277=_0xfff9d8['plugins']['get'](d),_0x36ee39=_0x35a277['isReady']?_0x35a277['diff']['newRevisionId']:null;_0xfff9d8['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x36ee39);}['refresh'](){const {isReady:_0x528733,isEnabled:_0x3a78b9,repository:_0x497fa7,diff:_0x592bb9}=this['editor']['plugins']['get'](d),_0x5d01bf=_0x592bb9&&_0x497fa7['getLaterVisibleRevision'](_0x592bb9['newRevisionId']);this['isEnabled']=_0x528733&&_0x3a78b9&&Boolean(_0x5d01bf);}}class yt extends _0x1cd2f9{['_step'];constructor(_0x188423,{direction:_0x49adf1}){super(_0x188423);const _0x57258c=_0x188423['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x49adf1?0x1:-0x1,this['listenTo'](_0x57258c,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x57258c,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x57258c,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x20e2cd=this['editor'],_0x1f2174=_0x20e2cd['plugins']['get'](d),{isNavigationMode:_0x5230bb,currentChangeNumber:_0x370604}=_0x1f2174;let _0x2f5f53;if(_0x1f2174['activeChange']=_0x5230bb?_0x1f2174['diff']['changes']['get'](_0x370604+this['_step']):_0x1f2174['diff']['changes']['first'],_0x1f2174['activeChange']['data']['isOnRoot'])_0x2f5f53=_0x20e2cd['editing']['view']['getDomRoot'](_0x1f2174['activeChange']['rootName']);else{const _0x2c12d2=_0x20e2cd['model']['markers']['get']('revision:'+_0x1f2174['activeChange']['id']);_0x2f5f53=_0x4301f5(_0x20e2cd['editing'],_0x2c12d2);}_0x41b6f7({'target':_0x2f5f53,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x424ec5,currentChangeNumber:_0x398ce6,numberOfChanges:_0x2335e5,isReady:_0x997b65,isEnabled:_0x1cb5cf}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x1cb5cf&&_0x997b65&&_0x2335e5)&&(!_0x424ec5||(0x1===this['_step']?_0x398ce6<_0x2335e5-0x1:_0x398ce6>0x0));}}class _i extends _0x4d48fa{constructor(_0x326fe8){super(_0x326fe8);const _0x177fd6=this['bindTemplate'],_0x52c122=new _0x1bfe84(_0x326fe8),_0x5464ed=new _0x1bfe84(_0x326fe8);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',(_0x423bb3,_0x2f0209)=>_0x423bb3&&_0x2f0209>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x43e27c,_0xf34a87,_0x2f9096,_0x22cb7e)=>{if(!_0x43e27c)return m(_0x326fe8,'Loading...');if(!_0x2f9096)return m(_0x326fe8,'No\x20changes');const _0x49e163=m(_0x326fe8,'NUMBER_OF_CHANGES',_0x2f9096);return _0x22cb7e?m(_0x326fe8,'X_OF_Y_CHANGES',[_0xf34a87+0x1,_0x2f9096]):_0x49e163;}),_0x52c122['set']({'label':m(_0x326fe8,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x1b0d6d}),_0x5464ed['set']({'label':m(_0x326fe8,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x4dcd5b}),_0x52c122['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x5464ed['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x52c122['on']('execute',()=>this['fire']('execute','backward')),_0x5464ed['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',_0x177fd6['if']('_isStatusLabelVisible','ck-hidden',_0x4ce8ba=>!_0x4ce8ba)]},'children':[{'text':_0x177fd6['to']('isNavigationMode',_0x1ff59d=>_0x1ff59d?m(_0x326fe8,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x326fe8,'Total')+':\x20')}]},{'text':_0x177fd6['to']('_statusText')}]},new _0x120b08(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x52c122,_0x5464ed]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x3cb746{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x34915e=this['editor']['editing']['view'];_0x34915e['change'](_0x164665=>{for(const _0x2a9a9c of _0x34915e['document']['roots'])_0x164665['addClass'](ce,_0x2a9a9c);});}['hide'](){const _0x347992=this['editor']['editing']['view'];_0x347992['change'](_0x588a50=>{for(const _0x3ea789 of _0x347992['document']['roots'])_0x588a50['removeClass'](ce,_0x3ea789);});}}class w extends _0x3cb746{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,le];}['init'](){const _0x4672a7=this['editor'],_0x5b5dd8=_0x4672a7['plugins']['get'](d),_0x3189f5=_0x4672a7['plugins']['get'](le);_0x4672a7['ui']['componentFactory']['add']('exitToEditing',_0xd80804=>{const _0x53ff45=new _0x1bfe84(_0xd80804);return _0x53ff45['set']({'label':m(_0xd80804,'Back\x20to\x20editing'),'icon':_0x113421,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x53ff45,'execute',()=>{_0x4672a7['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x53ff45;}),_0x4672a7['ui']['componentFactory']['add']('restoreRevision',_0x3cf407=>{const _0x3af143=new _0x1bfe84(_0x3cf407);return _0x3af143['set']({'label':m(_0x3cf407,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x3af143['bind']('isEnabled')['to'](_0x4672a7['commands']['get']('restoreRevision')),this['listenTo'](_0x3af143,'execute',()=>_0x4672a7['execute']('restoreRevision')),_0x3af143;}),_0x4672a7['ui']['componentFactory']['add']('changesNavigation',_0x19e049=>{const _0x4143b9=new _i(_0x19e049),_0x3a97a6=_0x4672a7['commands']['get']('showPreviousChange'),_0xf430b9=_0x4672a7['commands']['get']('showNextChange');return _0x4143b9['bind']('isBackwardNavigationEnabled')['to'](_0x3a97a6,'isEnabled'),_0x4143b9['bind']('isForwardNavigationEnabled')['to'](_0xf430b9,'isEnabled'),_0x4143b9['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x5b5dd8),this['listenTo'](_0x4143b9,'execute',(_0x434b08,_0xa5b727)=>{_0x4672a7['execute']('forward'===_0xa5b727?'showNextChange':'showPreviousChange');}),_0x4143b9;}),_0x3189f5['show'](),_0x5b5dd8['on']('change:isReady',(_0x3f5374,_0x3d5b44,_0x30617d)=>{_0x30617d?_0x3189f5['hide']():_0x3189f5['show']();});}}class mt extends at{['_resizeObserver']=null;constructor(_0x1a0472,_0x2142a4){super(_0x1a0472,_0x2142a4);const _0x34c68f=this['bindTemplate'];this['set']({'label':m(_0x1a0472,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x1a0472,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x34c68f['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new pt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x51eb3a=this['fieldView']['element'];this['_tooltipString']=_0x51eb3a['scrollWidth']>_0x51eb3a['clientWidth']&&_0x51eb3a['value']||'';}}class oi extends _0x4d48fa{constructor(_0xaa4043,_0x1d0eee,_0x5678ba){super(_0xaa4043);const _0x2beb1e=new _0x6616f4();_0x2beb1e['set']({'content':_0x1ea804,'viewBox':'0\x200\x2011\x2010'});const _0x1f5d60=['ck','ck-revision-history-sidebar__revision-author'];_0x5678ba&&_0x1f5d60['push']('ck-revision-history-sidebar__revision-author_creator');const _0x37ca66=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0xaa4043,_0x5678ba?'Revision\x20creator':'Revision\x20author')},'children':[_0x2beb1e,_0x1d0eee['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x1f5d60},'children':_0x37ca66});}}function ni(_0x2c405d,_0x3a1436){const _0x4ee37b=_0x2c405d['bindTemplate'],_0x4f6ee1=_0x2c405d['locale'],_0x3d9718=_0x5bcb54(_0x4f6ee1);_0x3d9718['panelPosition']='sw';const _0x4f04d7=function(_0x54e75c,_0x908aed){const _0x379f5d=function(_0x4f6b93,_0x50a057){const _0x3a1946=_0x4f6b93['locale'],_0x313669={'Compare\x20against\x20selected':m(_0x3a1946,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x3a1946,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x3a1946,'Restore\x20this\x20revision')};return _0x50a057['map'](_0x56f207=>{const _0x4383f2=_0x313669[_0x56f207['name']];return _0x4383f2&&_0x4383f2!==_0x56f207['name']&&(_0x56f207['name']=_0x4383f2),_0x56f207;});}(_0x54e75c,_0x908aed),_0x3047c0=new _0x2818bf();for(const _0x3ab824 of _0x379f5d){const _0x3b3811={'type':'button','model':new to({'label':_0x3ab824['name'],'class':_0x3ab824['class'],'withText':!0x0,'role':'menuitem','_action':_0x3ab824['action']})};_0x3b3811['model']['bind']('isEnabled')['to'](_0x54e75c,'isActionsDropdownOpen',_0x4e2229=>'function'!=typeof _0x3ab824['isEnabled']||(!_0x4e2229||_0x3ab824['isEnabled'](_0x54e75c))),_0x3047c0['add'](_0x3b3811);}return _0x3047c0;}(_0x2c405d,_0x3a1436);return _0x2c405d['bind']('isActionsDropdownOpen')['to'](_0x3d9718,'isOpen'),_0x3d9718['buttonView']['set']({'label':m(_0x4f6ee1,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x2786d8}),_0x3d9718['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x4ee37b['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x4ee37b['to'](_0x290387=>_0x290387['stopPropagation']())}}),_0x3d9718['on']('execute',_0x14d338=>{_0x2c405d['isReady']&&'function'==typeof _0x14d338['source']['_action']&&_0x14d338['source']['_action'](_0x2c405d);}),_0x176f3a(_0x3d9718,_0x4f04d7,{'role':'menu'}),_0x3d9718['listenTo'](_0x2c405d,'change:isActionsDropdownOpen',(_0x48441b,_0x599481,_0x27507a)=>{if(_0x27507a)for(const _0x5aa4ac of _0x3d9718['listView']['items']){const _0x2d0b80=_0x5aa4ac['children']['first'],_0x231f35=_0x3a1436['find'](_0x533dfc=>_0x533dfc['action']===_0x2d0b80['_action'])['isVisible'];_0x5aa4ac['isVisible']=void 0x0===_0x231f35||_0x231f35(_0x2c405d);}}),_0x3d9718;}class ai extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x3dcb4a(_0x4d48fa){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0xd3dcc5,_0x57e5be,_0x86aa50,_0x18aa2a){super(_0xd3dcc5);const _0xf15170=this['bindTemplate'],_0x3b357a=function(_0x3263f9,_0x45a333){const _0x2e04a4=Array['from'](_0x45a333['authors'])['filter'](_0x1f90f1=>_0x1f90f1!=_0x45a333['creator']);return _0x45a333['creator']&&_0x2e04a4['unshift'](_0x45a333['creator']),_0x2e04a4['map'](_0x210d19=>new oi(_0x3263f9,_0x210d19,_0x210d19==_0x45a333['creator']));}(_0xd3dcc5,_0x57e5be);this['id']=_0x57e5be['id'],this['_revision']=_0x57e5be,this['_requireRevisionName']=_0x18aa2a,this['bind']('name','createdAt')['to'](_0x57e5be),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x35079c=>{return _0x3cd213=_0xd3dcc5['uiLanguage'],(_0x198b42=_0x35079c)['toLocaleDateString'](_0x3cd213,{'month':'long','day':'numeric'})+',\x20'+_0x198b42['toLocaleTimeString'](_0x3cd213,{'hour':'numeric','minute':'numeric'});var _0x3cd213,_0x198b42;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new mt(_0xd3dcc5,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x4c0e53=>_0x4c0e53||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x4d12d3,_0x32a2d5)=>_0x4d12d3&&_0x32a2d5),this['revisionActionsView']=_0x86aa50&&_0x86aa50['length']?ni(this,_0x86aa50):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0xf15170['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0xf15170['if']('isEnabled','ck-disabled',_0x2154a6=>!_0x2154a6),_0xf15170['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0xf15170['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0xf15170['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':_0xf15170['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':_0x3b357a}]},this['revisionActionsView']],'on':{'click':_0xf15170['to'](_0x3a65f7=>{_0x3a65f7['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x2e8c74=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x2e8c74,'change',()=>{this['_requireRevisionName']&&!_0x2e8c74['value']||this['fire']('setName',{'id':this['id'],'name':_0x2e8c74['value']}),_0x2e8c74['value']||(_0x2e8c74['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function vi(_0x360680,_0x53dc16){const _0x174f4c=_0x236cef['fromJSDate'](_0x360680)['setLocale'](_0x53dc16),_0x36a992=_0x236cef['local'](),_0x471615=_0x36a992['minus']({'days':0x1})['startOf']('day');let _0x23f778,_0x2030a1;return _0x174f4c['hasSame'](_0x36a992,'day')?(_0x23f778=_0x174f4c['startOf']('day')['toJSDate'](),_0x2030a1=_0x174f4c['toRelativeCalendar']()):_0x174f4c['hasSame'](_0x471615,'day')?(_0x23f778=_0x471615['toJSDate'](),_0x2030a1=_0x174f4c['toRelativeCalendar']()):_0x174f4c['hasSame'](_0x36a992,'week')?(_0x23f778=_0x174f4c['startOf']('week')['toJSDate'](),_0x2030a1=_0x174f4c['weekdayLong']||''):_0x174f4c['hasSame'](_0x36a992,'year')?(_0x23f778=_0x174f4c['startOf']('month')['toJSDate'](),_0x2030a1=_0x174f4c['monthLong']||''):(_0x23f778=_0x174f4c['startOf']('year')['toJSDate'](),_0x2030a1=String(_0x174f4c['year'])),{'startDate':_0x23f778,'localizedPeriodName':_0x2030a1};}class mi extends _0x4d48fa{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0xc4e9f1,_0x540403,_0x481436,_0x2f5505){super(_0xc4e9f1);const _0x5041a3=vi(_0x540403,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x540403,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x481436,this['_requireRevisionName']=_0x2f5505,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':_0x5041a3}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x34e476){const _0x4e3388=new ai(this['locale'],_0x34e476,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x4e3388);}['removeRevision'](_0x4e2691){const _0x3ea3ba=this['revisionViews']['find'](_0x150fac=>_0x150fac['id']===_0x4e2691['id']);this['revisionViews']['remove'](_0x3ea3ba);}}class as extends _0x4d48fa{constructor(_0xcbf692){super(_0xcbf692);const _0x1f35d7=new _0x6616f4();_0x1f35d7['content']=_0x51466b,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x1f35d7,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0xcbf692,'Revision\x20history')]}]});}}class di extends _0x4d48fa{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x403daa,_0x3052a1,_0x180a0a,_0x23246f){super(_0x403daa);const _0x28cbcc=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x3052a1,this['_revisionActions']=_0x180a0a,this['_requireRevisionName']=_0x23246f,this['on']('select',(_0x28a032,_0x341ab2)=>{this['fire']('revisionSelected',_0x341ab2);}),this['on']('setName',(_0x2a370f,_0x292dd7)=>{this['fire']('revisionSetName',_0x292dd7);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x403daa),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x28cbcc['if']('isEnabled','ck-disabled',_0x1617b4=>!_0x1617b4)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x29f8fe of this['_revisions'])this['_addRevision'](_0x29f8fe);this['_revisions']['on']('add',(_0x55c53e,_0x219bf0)=>{this['_addRevision'](_0x219bf0);}),this['_revisions']['on']('remove',(_0x11440a,_0x680e40)=>{this['_removeRevision'](_0x680e40);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x423172=>_0x423172['revisionViews']['map'](_0x50a8c9=>_0x50a8c9))['flat']();}['selectRevision'](_0x3087d6){for(const _0x36c7eb of this['revisionViews'])_0x3087d6&&_0x3087d6['id']===_0x36c7eb['id']?_0x36c7eb['select']():_0x36c7eb['deselect']();}['highlightRevisions'](_0x51b51b){for(const _0x3c00f7 of this['revisionViews'])_0x51b51b['some'](({id:_0x352cd5})=>_0x352cd5===_0x3c00f7['id'])?_0x3c00f7['highlight']():_0x3c00f7['unhighlight']();}['_addRevision'](_0x1ac13a){const _0x46adaf=vi(_0x1ac13a['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0xf24b1f=this['timePeriodViews']['get'](0x0);_0xf24b1f&&_0xf24b1f['startDate']['getTime']()===_0x46adaf['getTime']()||(_0xf24b1f=new mi(this['locale'],_0x46adaf,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0xf24b1f)),_0xf24b1f['addRevision'](_0x1ac13a);}['_removeRevision'](_0xcf1842){const _0x313daa=vi(_0xcf1842['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x313daa)['removeRevision'](_0xcf1842);}['_getTimePeriodViewByStartDate'](_0x527c1c){return this['timePeriodViews']['find'](_0x1dffef=>_0x1dffef['startDate']['getTime']()===_0x527c1c['getTime']());}}class g extends _0x3cb746{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
27
27
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
|
-
bt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(
|
|
29
|
-
it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x199934,_0x4f5905){super(_0x4f5905),this['sourceElement']=_0x199934,this['model']['document']['createRoot']();const _0x252263=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x252263);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x19fa75,_0xa8b708){const _0x1f9dd2=new this(_0x19fa75,_0xa8b708);return await _0x1f9dd2['initPlugins'](),await _0x1f9dd2['ui']['init'](_0x19fa75),await _0x1f9dd2['data']['init'](_0x1f9dd2['config']['get']('initialData')||''),_0x1f9dd2['fire']('ready'),_0x1f9dd2;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0x26a73c{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3079fc){function _0x2c0980(_0x20d170){return _0x20d170['map'](_0x93565c=>String['fromCharCode'](_0x93565c))['join']('');}super(_0x3079fc),this['result']='end',_0x3079fc[_0x2c0980([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2c0980([0x76,0x69,0x65,0x77])][_0x2c0980([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2c0980([0x61,0x75,0x74,0x6f]),_0x3079fc[_0x2c0980([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x2c0980([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2c0980([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x2c0980([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x2c0980([0x6f,0x6b])});}}class k extends _0x26a73c{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x44b56d){if(super(_0x44b56d),!this['editor']['config']['get']('revisionHistory'))throw new _0x1a2ef3('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x355a77=>this['_showRevisionViewer']({..._0x355a77,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x505f97=>this['_closeRevisionViewer'](_0x505f97)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x573f56=>this['_restoreRevision'](_0x573f56)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x29a8f4){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x29a8f4;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x3bdd0){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x3bdd0);}['getRevision'](_0x4103c4){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x4103c4);}['getRevisions'](_0x13d670){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x13d670||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0xb8d727=this['editor'],_0x8a0120=_0x2e045c(_0xb8d727,p),_0x232032=_0xb8d727['plugins']['get']('RevisionTracker'),_0x3e4ee4=_0xb8d727['plugins']['get']('Users')['users'];return _0x8a0120['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x8a0120['lazyRoots'],(_0x8a0120['plugins']['push'](Rt,d,g,class extends _0x26a73c{static get['requires'](){return[d,'Users'];}['init'](){const _0x487fae=this['editor']['plugins']['get']('Users');for(const _0x5be6f3 of _0x3e4ee4)_0x5be6f3['isAnonymous']||_0x487fae['getUser'](_0x5be6f3['id'])||_0x487fae['addUser'](_0x5be6f3);const _0x2e4def=_0x232032['repository']['getRevisions']();let _0x56ae2e=null;const _0xb17d91=this['editor']['plugins']['get']('RevisionViewer');_0xb17d91['adapter']=_0x232032['adapter'],_0xb17d91['bind']('isEnabled')['to'](_0x232032),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0xb8d727,'isReadOnly',_0x4fcced=>!_0x4fcced);for(const _0x2ac615 of _0x2e4def){const _0x55027b=null===_0x2ac615['creator'];if(_0x55027b&&_0x2ac615['toVersion']===_0x2ac615['fromVersion'])continue;const _0x3cc35c=_0x2ac615['toJSON']();_0xb17d91['addRevisionData'](_0x3cc35c,(_0xb90889,_0x48e401,_0x2e46fd)=>{if(_0x55027b){if(_0x56ae2e)_0x56ae2e['_update'](_0xb90889,_0x48e401);else{if(!_0x48e401){const _0x2e04e2=_0x2e46fd['toJSON']();_0x2e04e2['id']=_0x47f5e5(),_0x232032['saveRevision'](_0x2e04e2,_0x2e46fd['toVersion'])['then'](_0x5e4f0c=>{_0x56ae2e=_0x5e4f0c;});}}}else _0x2ac615['_update'](_0xb90889,_0x48e401);});}}},w),_0x8a0120);}['_enhanceShowRevisionViewerCallback'](){const _0x42d0d6=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x449600=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x5b6eb2=this['editor']['plugins']['get']('Autosave');await _0x5b6eb2['save']();}else await _0x449600['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x49ce74=this['editor']['plugins']['get']('Dialog');_0x49ce74['isOpen']&&_0x49ce74['hide']();}const _0x587635=this['_getRevisionViewerEditorConfig']();return _0x42d0d6(_0x587635)['then'](_0x3c21ff=>{return(this['_viewerEditor']=_0x3c21ff,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x3c21ff;})['catch'](_0x3a6206=>(console['error'](_0x3a6206),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x2d3dbe=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x2d3dbe(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x2f6656=this['editor']['plugins']['get']('Annotations');_0x2f6656['refreshVisibility'](),_0x2f6656['refreshPositioning']();}})));}['_showRevisionViewer'](_0x4320a2){const _0x41cafd=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x58257c=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x2ad523=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x2ad523,_0x4320a2)['then'](_0x1e9783=>(_0x58257c['style']['display']='block',_0x41cafd['style']['display']='none',_0x1e9783));}['_closeRevisionViewer'](_0x19d1d3){const _0x53170c=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x53170c['style']['display']='',_0x19d1d3['destroy']();}async['_restoreRevision'](_0x28f870){const _0x4f8716=this['editor'],_0x512a78=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x313631=_0x4f8716['plugins']['get']('RevisionTracker'),_0x353ba3=_0x512a78['repository']['getRevision'](_0x28f870);let _0x41605e,_0x45c66e,_0x2f40dd;try{_0x41605e=await _0x512a78['getRevisionData'](_0x353ba3),_0x45c66e=await _0x512a78['getRevisionRootsAttributes'](_0x353ba3);}catch(_0x4c19ed){return void console['error'](_0x4c19ed);}_0x4f8716['model']['change'](_0x2da2eb=>{for(const _0x40c774 of Array['from'](_0x4f8716['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x2da2eb['removeMarker'](_0x40c774);}),_0x512a78['isReady']=!0x1,_0x4f8716['model']['enqueueChange'](_0x50684f=>{_0x50684f['setSelection'](null),_0x50684f['removeSelectionAttribute'](_0x4f8716['model']['document']['selection']['getAttributeKeys']());const _0x12622b=Object['keys'](_0x41605e);for(const _0x4d47fa of _0x4f8716['model']['document']['roots'])'$graveyard'!=_0x4d47fa['rootName']&&_0x4d47fa['isAttached']()&&!_0x12622b['includes'](_0x4d47fa['rootName'])&&_0x50684f['detachRoot'](_0x4d47fa);for(const _0x7c0257 of _0x12622b){let _0x3265cc=_0x4f8716['model']['document']['getRoot'](_0x7c0257);_0x3265cc&&_0x3265cc['isAttached']()||(_0x3265cc=_0x50684f['addRoot'](_0x7c0257));const _0x1aa387=_0x45c66e[_0x7c0257],_0x2fc35e=Object['keys'](_0x1aa387),_0x3d4425=_0x41605e[_0x7c0257];for(const _0x338beb of _0x3265cc['getAttributeKeys']())_0x2fc35e['includes'](_0x338beb)||_0x50684f['removeAttribute'](_0x338beb,_0x3265cc);for(const _0x229ad3 of _0x2fc35e)_0x50684f['setAttribute'](_0x229ad3,_0x45c66e[_0x7c0257][_0x229ad3],_0x3265cc);_0x50684f['remove'](_0x50684f['createRangeIn'](_0x3265cc)),_0x50684f['insert'](_0x4f8716['data']['parse'](_0x3d4425,_0x3265cc),_0x3265cc,0x0);}});const _0x39187c=m(_0x4f8716['locale'],'Restored');if(_0x353ba3['name'])_0x2f40dd=-0x1==_0x353ba3['name']['indexOf'](_0x39187c)?_0x39187c+':\x20'+_0x353ba3['name']:_0x353ba3['name'];else _0x2f40dd=_0x39187c+':\x20'+(_0x353ba3['createdAt']['toLocaleDateString'](_0x4f8716['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x353ba3['createdAt']['toLocaleTimeString'](_0x4f8716['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x313631['saveRevision']({'name':_0x2f40dd}),_0x512a78['isReady']=!0x0,_0x4f8716['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,k as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,ae as RevisionViewerLoadingOverlay,g as RevisionViewerUI,j as RevisionsRepository,w as RevisionsSidebar};
|
|
28
|
+
bt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x364788){super(_0x364788),this['_revisionViewer']=_0x364788['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x40ea6c=this['_revisionsRepository']['_revisions'],_0x20e5d2=this['_createRevisionActions'](),_0x25d5db=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new di(this['editor']['locale'],_0x40ea6c,_0x20e5d2,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',(_0x566a3a,_0xf404eb)=>{_0xf404eb['revisionViews']['on']('add',(_0x5e644e,_0xf7923f)=>{_0xf7923f['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)),_0x25d5db['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x29e4b1=this['_revisionsRepository']['getRevision'](0x0);if(_0x29e4b1){const _0x340d85=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x29e4b1['id']);this['_revisionViewer']['compare'](_0x29e4b1,_0x340d85);}}['_handleRevisionSelected'](_0x3e030c,_0x25f01c){const _0xf3ef6c=this['_revisionsRepository']['getRevision'](_0x25f01c['id']),_0x44f07c=this['_revisionsRepository']['getEarlierVisibleRevision'](_0xf3ef6c['id']);this['_revisionViewer']['compare'](_0xf3ef6c,_0x44f07c);}['_handleRevisionSetName'](_0x582345,_0x44f0d3){this['_revisionsRepository']['getRevision'](_0x44f0d3['id'])['setName'](_0x44f0d3['name']);}['_handleDiffChange'](_0x1d5a90,_0x677bf6,_0x116704){const _0x50261f=this['_revisionsRepository']['getRevisionsInDiff'](_0x116704);_0x50261f['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x50261f),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x50261f[0x0]));}['_createRevisionActions'](){const _0x376588=this['editor'],_0x35a210=g['availableRevisionActions'],_0x466064=_0x376588['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x466064['length'])return _0x466064['map'](_0x375d20=>{const _0x4d546b='string'==typeof _0x375d20?Object['assign']({},_0x35a210[_0x375d20]):_0x375d20;return _0x4d546b['action']=_0x4d546b['action']['bind'](this,_0x376588),_0x4d546b['isVisible']&&(_0x4d546b['isVisible']=_0x4d546b['isVisible']['bind'](this,_0x376588)),_0x4d546b;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x25accd},_0xe04a95)=>{const _0x2447ac=_0x25accd['get'](d),_0x22c5da=_0x2447ac['repository'];let _0x5d07ca=_0x2447ac['diff']['newRevisionId'],_0x13f78c=_0xe04a95['id'];_0x22c5da['getIndex'](_0x5d07ca)>_0x22c5da['getIndex'](_0x13f78c)&&([_0x5d07ca,_0x13f78c]=[_0x13f78c,_0x5d07ca]),_0x2447ac['compare'](_0x5d07ca,_0x13f78c);},'isVisible':({plugins:_0x5bf145},_0x17e82c)=>{const _0x2ff816=_0x5bf145['get'](d);return!(_0x2ff816['repository']['getRevisionsInDiff'](_0x2ff816['diff'])['length']>0x2)&&!_0x17e82c['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x1f86e7,{id:_0x155c2d})=>{_0x1f86e7['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x155c2d);},'isVisible':({plugins:_0x442f5d},_0x202a71)=>!!_0x442f5d['get'](d)['repository']['getLaterVisibleRevision'](_0x202a71['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x2e3b06},{id:_0x54441b,revisionNameView:_0x278dfd})=>{const _0xb71ab9=_0x2e3b06['get'](d),_0x4720db=_0xb71ab9['repository']['getEarlierVisibleRevision'](_0x54441b);_0xb71ab9['compare'](_0x54441b,_0x4720db),_0x278dfd['focus'](),_0x278dfd['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0xd0d6e5,_0x28ed2a){super(_0xd0d6e5),this['_view']=_0x28ed2a,this['_toolbarConfig']=ot(_0xd0d6e5['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0xc9372){const _0x464b3c=this['editor'],_0x3345e9=this['view'],_0x49029=_0x464b3c['editing']['view'],_0x3b8770=_0x3345e9['editable'],_0x22b0d8=_0x49029['document']['getRoot']();_0x3b8770['name']=_0x22b0d8['rootName'],_0x3345e9['render']();const _0x1201fe=_0x3b8770['element'];this['setEditableElement'](_0x3b8770['name'],_0x1201fe),_0x3345e9['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x49029['attachDomRoot'](_0x1201fe),this['_elementReplacer']['replace'](_0xc9372,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x495b3f=this['view'],_0x4ac4e9=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x4ac4e9['detachDomRoot'](_0x495b3f['editable']['name']),_0x495b3f['destroy']();}['_initToolbar'](){const _0xd753b9=this['view'];_0xd753b9['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0xd753b9['stickyPanel']['limiterElement']=_0xd753b9['element'],_0xd753b9['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0xde6f5d})=>_0xde6f5d),_0xd753b9['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0xd753b9['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x110917,_0x42d93d,_0x4d5f4e={}){super(_0x110917),this['stickyPanel']=new lt(_0x110917),this['toolbar']=new nt(_0x110917,{'shouldGroupWhenFull':_0x4d5f4e['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x110917,_0x42d93d);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class R extends/* #__PURE__ -- @preserve */
|
|
29
|
+
it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x4b7a72,_0x3e1527){super(_0x3e1527),this['sourceElement']=_0x4b7a72,this['model']['document']['createRoot']();const _0x509cc9=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x509cc9);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x381ab5,_0x2c1509){const _0x164173=new this(_0x381ab5,_0x2c1509);return await _0x164173['initPlugins'](),await _0x164173['ui']['init'](_0x381ab5),await _0x164173['data']['init'](_0x164173['config']['get']('initialData')||''),_0x164173['fire']('ready'),_0x164173;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0x3cb746{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xea5803){function _0x503937(_0x421c9e){return _0x421c9e['map'](_0x5913b6=>String['fromCharCode'](_0x5913b6))['join']('');}super(_0xea5803),this['result']='end',_0xea5803[_0x503937([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x503937([0x76,0x69,0x65,0x77])][_0x503937([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x503937([0x61,0x75,0x74,0x6f]),_0xea5803[_0x503937([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x503937([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x503937([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x503937([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x503937([0x6f,0x6b])});}}class k extends _0x3cb746{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x599ba5){if(super(_0x599ba5),!this['editor']['config']['get']('revisionHistory'))throw new _0x3923b7('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x477f18=>this['_showRevisionViewer']({..._0x477f18,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0xa40713=>this['_closeRevisionViewer'](_0xa40713)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x3951ea=>this['_restoreRevision'](_0x3951ea)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x4e7fa6){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x4e7fa6;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x41f1f4){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x41f1f4);}['getRevision'](_0x9dde86){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x9dde86);}['getRevisions'](_0x23f841){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x23f841||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x530f56=this['editor'],_0x210d62=_0x7c0588(_0x530f56,p),_0xd9528c=_0x530f56['plugins']['get']('RevisionTracker'),_0x379015=_0x530f56['plugins']['get']('Users')['users'];return _0x210d62['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x210d62['lazyRoots'],(_0x210d62['plugins']['push'](Rt,d,w,class extends _0x3cb746{static get['requires'](){return[d,'Users'];}['init'](){const _0x28137a=this['editor']['plugins']['get']('Users');for(const _0x599925 of _0x379015)_0x599925['isAnonymous']||_0x28137a['getUser'](_0x599925['id'])||_0x28137a['addUser'](_0x599925);const _0x3badb8=_0xd9528c['repository']['getRevisions']();let _0x471f1b=null;const _0x5d64f8=this['editor']['plugins']['get']('RevisionViewer');_0x5d64f8['adapter']=_0xd9528c['adapter'],_0x5d64f8['bind']('isEnabled')['to'](_0xd9528c),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x530f56,'isReadOnly',_0x52779c=>!_0x52779c);for(const _0x2d82d9 of _0x3badb8){const _0x533254=null===_0x2d82d9['creator'];if(_0x533254&&_0x2d82d9['toVersion']===_0x2d82d9['fromVersion'])continue;const _0x8e72e3=_0x2d82d9['toJSON']();_0x5d64f8['addRevisionData'](_0x8e72e3,(_0x39cb16,_0x8518ef,_0x8f13db)=>{if(_0x533254){if(_0x471f1b)_0x471f1b['_update'](_0x39cb16,_0x8518ef);else{if(!_0x8518ef){const _0x5ace3e=_0x8f13db['toJSON']();_0x5ace3e['id']=_0x5e10e6(),_0xd9528c['saveRevision'](_0x5ace3e,_0x8f13db['toVersion'])['then'](_0x5af9e6=>{_0x471f1b=_0x5af9e6;});}}}else _0x2d82d9['_update'](_0x39cb16,_0x8518ef);});}}},g),_0x210d62);}['_enhanceShowRevisionViewerCallback'](){const _0x450a9d=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x1e4273=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x327728=this['editor']['plugins']['get']('Autosave');await _0x327728['save']();}else await _0x1e4273['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x2e4699=this['editor']['plugins']['get']('Dialog');_0x2e4699['isOpen']&&_0x2e4699['hide']();}const _0x5e94bf=this['_getRevisionViewerEditorConfig']();return _0x450a9d(_0x5e94bf)['then'](_0x1162b5=>{return(this['_viewerEditor']=_0x1162b5,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x1162b5;})['catch'](_0x18eb5a=>(console['error'](_0x18eb5a),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x4d8229=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x4d8229(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x5d5bce=this['editor']['plugins']['get']('Annotations');_0x5d5bce['refreshVisibility'](),_0x5d5bce['refreshPositioning']();}})));}['_showRevisionViewer'](_0x2c9571){const _0xac37d2=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x159693=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x458910=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x458910,_0x2c9571)['then'](_0x4e2e82=>(_0x159693['style']['display']='block',_0xac37d2['style']['display']='none',_0x4e2e82));}['_closeRevisionViewer'](_0x287c06){const _0x5aafb3=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x5aafb3['style']['display']='',_0x287c06['destroy']();}async['_restoreRevision'](_0x1b3a82){const _0x22d6b3=this['editor'],_0x5e9da2=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x40110c=_0x22d6b3['plugins']['get']('RevisionTracker'),_0x51bbe4=_0x5e9da2['repository']['getRevision'](_0x1b3a82);let _0x3f4354,_0x163475,_0x599d3c;try{_0x3f4354=await _0x5e9da2['getRevisionData'](_0x51bbe4),_0x163475=await _0x5e9da2['getRevisionRootsAttributes'](_0x51bbe4);}catch(_0x5b65b4){return void console['error'](_0x5b65b4);}_0x22d6b3['model']['change'](_0x5e490a=>{for(const _0x1cfd7d of Array['from'](_0x22d6b3['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x5e490a['removeMarker'](_0x1cfd7d);}),_0x5e9da2['isReady']=!0x1,_0x22d6b3['model']['enqueueChange'](_0x521d21=>{_0x521d21['setSelection'](null),_0x521d21['removeSelectionAttribute'](_0x22d6b3['model']['document']['selection']['getAttributeKeys']());const _0x5621c0=Object['keys'](_0x3f4354);for(const _0x1e41c2 of _0x22d6b3['model']['document']['roots'])'$graveyard'!=_0x1e41c2['rootName']&&_0x1e41c2['isAttached']()&&!_0x5621c0['includes'](_0x1e41c2['rootName'])&&_0x521d21['detachRoot'](_0x1e41c2);for(const _0x51d093 of _0x5621c0){let _0x472eeb=_0x22d6b3['model']['document']['getRoot'](_0x51d093);_0x472eeb&&_0x472eeb['isAttached']()||(_0x472eeb=_0x521d21['addRoot'](_0x51d093));const _0x724cd1=_0x163475[_0x51d093],_0x127141=Object['keys'](_0x724cd1),_0x2da24e=_0x3f4354[_0x51d093];for(const _0x1b169e of _0x472eeb['getAttributeKeys']())_0x127141['includes'](_0x1b169e)||_0x521d21['removeAttribute'](_0x1b169e,_0x472eeb);for(const _0x30ff4f of _0x127141)_0x521d21['setAttribute'](_0x30ff4f,_0x163475[_0x51d093][_0x30ff4f],_0x472eeb);_0x521d21['remove'](_0x521d21['createRangeIn'](_0x472eeb)),_0x521d21['insert'](_0x22d6b3['data']['parse'](_0x2da24e,_0x472eeb),_0x472eeb,0x0);}});const _0x22a7e5=m(_0x22d6b3['locale'],'Restored');if(_0x51bbe4['name'])_0x599d3c=-0x1==_0x51bbe4['name']['indexOf'](_0x22a7e5)?_0x22a7e5+':\x20'+_0x51bbe4['name']:_0x51bbe4['name'];else _0x599d3c=_0x22a7e5+':\x20'+(_0x51bbe4['createdAt']['toLocaleDateString'](_0x22d6b3['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x51bbe4['createdAt']['toLocaleTimeString'](_0x22d6b3['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x40110c['saveRevision']({'name':_0x599d3c}),_0x5e9da2['isReady']=!0x0,_0x22d6b3['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,u as RevisionTracker,d as RevisionViewer,le as RevisionViewerLoadingOverlay,w as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};
|