@ckeditor/ckeditor5-revision-history 44.2.0-alpha.8 → 44.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/dist/index.js +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 +10 -10
- package/src/changeitem.js +2 -2
- package/src/editor/revisionviewereditor.js +2 -2
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/index.js +1 -1
- package/src/revision.js +2 -2
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +2 -2
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ObservableMixin as
|
|
24
|
-
_0x3bce82(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x5c2bc2){super(),this['id']=_0x5c2bc2['id']||_0x584392(),this['creator']=_0x5c2bc2['creator']||null,this['authors']=_0x5c2bc2['authors']||[],this['diffData']=_0x5c2bc2['diffData']||null,this['toVersion']=_0x5c2bc2['toVersion']||0x0,this['fromVersion']=_0x5c2bc2['fromVersion']||0x0,this['set']('name',_0x5c2bc2['name']||''),this['set']('createdAt',_0x5c2bc2['createdAt']||new Date()),this['set']('attributes',_0x5c2bc2['attributes']||{});}['setName'](_0x159733){this['_update']({'name':_0x159733});}['setAttribute'](_0xc33dfa,_0x4013a4){const _0x596024=_0x307744(this['attributes']);_0x2cd63f(_0x596024,_0xc33dfa,_0x4013a4),this['_update']({'attributes':_0x596024});}['removeAttribute'](_0x4a4dc1){const _0x44fd69=_0x307744(this['attributes']);_0x1840b8(_0x44fd69,_0x4a4dc1),this['_update']({'attributes':_0x44fd69});}['_update'](_0x4b24f1,_0x4dba11=!0x1){let _0x276fdb=!0x1;const _0x147494={'id':this['id']},_0x2d6ddc=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0xcaf4f9 of _0x2d6ddc){const _0x726958=_0x4b24f1[_0xcaf4f9];void 0x0!==_0x726958&&_0x726958!==this[_0xcaf4f9]&&(this[_0xcaf4f9]=_0x726958,_0x147494[_0xcaf4f9]=_0x726958,_0x276fdb=!0x0);}_0x276fdb&&(_0x147494['authors']&&(_0x147494['authorsIds']=_0x147494['authors']['map'](_0x4cdfb9=>_0x4cdfb9['id']),delete _0x147494['authors']),this['fire']('_update',_0x147494,_0x4dba11));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x2c4d6d=>_0x2c4d6d['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x4302a3{['_revisions'];static get['requires'](){return[_0x52611a];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x68f55f){super(_0x68f55f),this['_revisions']=new _0x3d99fd();}['afterInit'](){!async function(_0x1b0ce2){const _0x98ff4b=_0x3588e0([0x43,0x66,0x54,0x49,0x45,0x79,0x61,0x51,0x55,0x70,0x4b,0x52,0x58,0x65,0x35,0x64,0x6a,0x4d,0x4c,0x53,0x7a,0x57,0x76,0x6c,0x71,0x47,0x68,0x41,0x33,0x75,0x6d,0x34,0x46,0x69,0x5a,0x32,0x56,0x4e,0x48,0x72,0x74,0x37,0x78,0x4f,0x42,0x6f,0x36,0x50,0x31,0x77,0x38,0x6e,0x39,0x30,0x59,0x73,0x4a,0x62,0x63,0x44,0x67,0x6b]),_0x3e6ec4=0xeb829,_0x372646=0x4469b893,_0x55aba9=0x446ee61b^_0x372646,_0x184f90=window[_0x3588e0([0x44,0x61,0x74,0x65])][_0x3588e0([0x6e,0x6f,0x77])](),_0x56692c=_0x1b0ce2[_0x3588e0([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x576721=new window[(_0x3588e0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x35f263=>{_0x56692c[_0x3588e0([0x6f,0x6e,0x63,0x65])](_0x3588e0([0x72,0x65,0x61,0x64,0x79]),_0x35f263);}),_0x3b1daf={[_0x3588e0([0x6b,0x74,0x79])]:_0x3588e0([0x45,0x43]),[_0x3588e0([0x75,0x73,0x65])]:_0x3588e0([0x73,0x69,0x67]),[_0x3588e0([0x63,0x72,0x76])]:_0x3588e0([0x50,0x2d,0x32,0x35,0x36]),[_0x3588e0([0x78])]:_0x3588e0([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]),[_0x3588e0([0x79])]:_0x3588e0([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]),[_0x3588e0([0x61,0x6c,0x67])]:_0x3588e0([0x45,0x53,0x32,0x35,0x36])},_0x26359d=_0x56692c[_0x3588e0([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3588e0([0x67,0x65,0x74])](_0x3588e0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5cdb46(){let _0xd7546e,_0x93df99=null,_0x19026c=null;try{if(_0x26359d==_0x3588e0([0x47,0x50,0x4c]))return _0x3588e0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xd7546e=_0x5b93e4(),!_0xd7546e)return _0x3588e0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xd7546e[_0x3588e0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x19026c=_0x1a826f(_0xd7546e[_0x3588e0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xd7546e[_0x3588e0([0x6a,0x74,0x69])])),await _0x20ecb9()?_0x53bbd4()?_0x2eb039()?_0x3588e0([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x352d4b()?(_0xd7546e[_0x3588e0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3588e0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x93df99=_0x524ea0(_0x3588e0([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xd7546e[_0x3588e0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3588e0([0x74,0x72,0x69,0x61,0x6c])&&(_0x93df99=_0x524ea0(_0x3588e0([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x51e5a5()):_0x3588e0([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3588e0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3588e0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x21c337){return _0x3588e0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2eb039(){const _0x365824=[_0x3588e0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3588e0([0x74,0x72,0x69,0x61,0x6c])][_0x3588e0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd7546e[_0x3588e0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x184f90/0x3e8:0xe10*_0x55aba9;return _0xd7546e[_0x3588e0([0x65,0x78,0x70])]<_0x365824;}function _0x53bbd4(){const _0x309f22=_0xd7546e[_0x3588e0([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x309f22)return!0x1;if(_0x309f22[_0x3588e0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3588e0([0x2a])))return!0x0;if(_0x309f22[_0x3588e0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3588e0([0x52,0x48])))return!0x0;if(_0x309f22[_0x3588e0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3588e0([0x52,0x52,0x48]))){if(_0x56a1fc())return!0x0;if(_0x27addb()||_0x5e5fef())return!0x0;}return!0x1;}function _0x352d4b(){const _0x587e33=_0xd7546e[_0x3588e0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x587e33||0x0==_0x587e33[_0x3588e0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4837b5}=new URL(window[_0x3588e0([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x587e33[_0x3588e0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4837b5))return!0x0;const _0xb47229=_0x4837b5[_0x3588e0([0x73,0x70,0x6c,0x69,0x74])](_0x3588e0([0x2e]));return _0x587e33[_0x3588e0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x13719c=>_0x13719c[_0x3588e0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3588e0([0x2a])))[_0x3588e0([0x6d,0x61,0x70])](_0x35c8a1=>_0x35c8a1[_0x3588e0([0x73,0x70,0x6c,0x69,0x74])](_0x3588e0([0x2e])))[_0x3588e0([0x73,0x6f,0x6d,0x65])](_0x5435a8=>_0xb47229[_0x3588e0([0x65,0x76,0x65,0x72,0x79])]((_0x198186,_0x1f8505)=>_0x5435a8[_0x1f8505]===_0x198186||_0x5435a8[_0x1f8505]===_0x3588e0([0x2a])));}function _0x51e5a5(){return _0x93df99&&_0x19026c?new window[(_0x3588e0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x225cd4,_0x1ab63e)=>{_0x93df99[_0x3588e0([0x74,0x68,0x65,0x6e])](_0x225cd4,_0x1ab63e),_0x19026c[_0x3588e0([0x74,0x68,0x65,0x6e])](_0x3ba9e3=>{_0x3ba9e3!=_0x3588e0([0x56,0x61,0x6c,0x69,0x64])&&_0x225cd4(_0x3ba9e3);},_0x1ab63e);}):_0x93df99||_0x19026c||_0x3588e0([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1a826f(_0x368594,_0x3cc35c){return new window[(_0x3588e0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x58585d=>{if(_0x14697a())return _0x58585d(_0x3588e0([0x56,0x61,0x6c,0x69,0x64]));_0x528943(),_0x56692c[_0x3588e0([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3588e0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5c1554=!0x1;const _0x3fec04=_0x584392();function _0x13f918(_0x32e5c6){return!!_0x32e5c6&&(typeof _0x32e5c6===_0x3588e0([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x32e5c6===_0x3588e0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x32e5c6[_0x3588e0([0x74,0x68,0x65,0x6e])]===_0x3588e0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x32e5c6[_0x3588e0([0x63,0x61,0x74,0x63,0x68])]===_0x3588e0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4718d3(_0x2cc226){_0x2d6b30(_0x2cc226)[_0x3588e0([0x74,0x68,0x65,0x6e])](_0x4df1a9=>{if(!_0x4df1a9||_0x4df1a9[_0x3588e0([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3588e0([0x6f,0x6b]))return _0x3588e0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x55afe0(_0x533475(_0x3fec04+_0x3cc35c))!=_0x4df1a9[_0x3588e0([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3588e0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3588e0([0x56,0x61,0x6c,0x69,0x64]);})[_0x3588e0([0x74,0x68,0x65,0x6e])](_0x102f3a=>(_0x366062(),_0x102f3a),()=>{const _0x4fec72=_0x549dd4();return null==_0x4fec72?(_0x366062(),_0x3588e0([0x56,0x61,0x6c,0x69,0x64])):_0x3588e0(_0x184f90-_0x4fec72>(0x60653c93^_0x372646)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3588e0([0x74,0x68,0x65,0x6e])](_0x58585d)[_0x3588e0([0x63,0x61,0x74,0x63,0x68])](()=>{_0x58585d(_0x3588e0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2b1a7f=0x445f5613^_0x372646;function _0x366062(){const _0x546393=_0x3588e0([0x6c,0x6c,0x63,0x74,0x2d])+_0x55afe0(_0x533475(_0x368594)),_0x285f2d=_0x4829a3(_0x55afe0(window[_0x3588e0([0x4d,0x61,0x74,0x68])][_0x3588e0([0x63,0x65,0x69,0x6c])](_0x184f90/_0x2b1a7f)));window[_0x3588e0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3588e0([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x546393,_0x285f2d);}function _0x549dd4(){const _0xa80a88=_0x3588e0([0x6c,0x6c,0x63,0x74,0x2d])+_0x55afe0(_0x533475(_0x368594)),_0xaee10c=window[_0x3588e0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3588e0([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xa80a88);return _0xaee10c?window[_0x3588e0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4829a3(_0xaee10c),0x10)*_0x2b1a7f:null;}function _0x2d6b30(_0x4e7845){return new window[(_0x3588e0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2664c5,_0x41dd12)=>{_0x4e7845[_0x3588e0([0x74,0x68,0x65,0x6e])](_0x2664c5,_0x41dd12),window[_0x3588e0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x41dd12,0x44686c53^_0x372646);});}}_0x56692c[_0x3588e0([0x6f,0x6e])](_0x3588e0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3455a8,_0x21c230)=>{if(_0x21c230[0x0]!=_0x368594)return _0x58585d(_0x3588e0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x21c230[0x1]={..._0x21c230[0x1],[_0x3588e0([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3fec04};},{[_0x3588e0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3588e0([0x68,0x69,0x67,0x68])}),_0x56692c[_0x3588e0([0x6f,0x6e])](_0x3588e0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4768a7=>{_0x13f918(_0x4768a7[_0x3588e0([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5c1554=!0x0,_0x4718d3(_0x4768a7[_0x3588e0([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3588e0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3588e0([0x6c,0x6f,0x77])}),_0x576721[_0x3588e0([0x74,0x68,0x65,0x6e])](()=>{_0x5c1554||_0x58585d(_0x3588e0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x14697a(){return _0x56692c[_0x3588e0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3588e0([0x76,0x69,0x65,0x77])][_0x3588e0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3588e0([0x61,0x75,0x74,0x6f]);}function _0x528943(){_0x56692c[_0x3588e0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3588e0([0x76,0x69,0x65,0x77])][_0x3588e0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3588e0([0x61,0x75,0x74,0x6f]);}}function _0x524ea0(_0x59de33){const _0xdb4c4a=[new window[(_0x3588e0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x216a93=>setTimeout(_0x216a93,0x4460865f^_0x372646)),_0x576721[_0x3588e0([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3588e0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x20260c=>{const _0x3f4b26=0x4469b894^_0x372646,_0x234411=_0x1b0ce2[_0x3588e0([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x36427c(){_0x234411[_0x3588e0([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x3f4b26&&_0x20260c();}_0x36427c(),_0x234411[_0x3588e0([0x6f,0x6e])](_0x3588e0([0x61,0x64,0x64]),_0x36427c);})),new window[(_0x3588e0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x41781c=>{function _0x4a20ec(){for(const _0x5f1981 in window)if(window[_0x3588e0([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x3588e0([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x5f1981))&&window[_0x5f1981]==_0x3e6ec4)return _0x41781c();_0x56692c[_0x3588e0([0x73,0x74,0x61,0x74,0x65])]!=_0x3588e0([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x3588e0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4a20ec,0x4469ab1b^_0x372646);}_0x2be878(_0x3588e0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x4a20ec();})];return window[_0x3588e0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3588e0([0x72,0x61,0x63,0x65])](_0xdb4c4a)[_0x3588e0([0x74,0x68,0x65,0x6e])](()=>_0x59de33);}async function _0x5e1923(){if(await _0x576721,_0x2be878(_0x3588e0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x18bdde=_0x1b0ce2[_0x3588e0([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x15af66=_0x1b0ce2[_0x3588e0([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])](_0x18bdde[_0x3588e0([0x69,0x64])]),_0x444d0d=_0x3125e2(_0x3588e0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x444d0d[_0x3588e0([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x18bdde['id'],_0x15af66?_0x15af66['id']:null,!0x0),_0x444d0d[_0x3588e0([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x3588e0([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x444d0d[_0x3588e0([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x444d0d[_0x3588e0([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x3c78b7,void(_0x444d0d[_0x3588e0([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x3c78b7);}if(_0x2be878(_0x3588e0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x3a3a82=_0x3125e2(_0x3588e0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x3a3a82[_0x3588e0([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x3588e0([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x3a3a82[_0x3588e0([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x3a3a82[_0x3588e0([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x3c78b7,_0x3a3a82[_0x3588e0([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x3c78b7;}_0x56692c[_0x3588e0([0x6d,0x6f,0x64,0x65,0x6c])][_0x3588e0([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3c78b7,_0x56692c[_0x3588e0([0x6d,0x6f,0x64,0x65,0x6c])][_0x3588e0([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3c78b7,_0x56692c[_0x3588e0([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3588e0([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x56a1fc(){return _0x2be878(_0x3588e0([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x3125e2(_0x3588e0([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3588e0([0x73,0x74,0x61,0x74,0x65])]==_0x3588e0([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x27addb(){return _0x2be878(_0x3588e0([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 _0x5e5fef(){return _0x2be878(_0x3588e0([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x290a87(_0x11d7f1){const _0x217901=_0x497f8b();_0x56692c[_0x217901]=_0x3588e0([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])+_0x11d7f1,_0x11d7f1[_0x3588e0([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x3588e0([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x497f8b()]=_0x3e6ec4),_0x11d7f1!=_0x3588e0([0x56,0x61,0x6c,0x69,0x64])&&_0x5e1923();}function _0x497f8b(){const _0x786704=window[_0x3588e0([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3588e0([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3588e0([0x6e,0x6f,0x77])]())[_0x3588e0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3588e0([0x2e]),'');let _0x34cae4=_0x3588e0([0x43]);for(let _0x3c5142=0x0;_0x3c5142<_0x786704[_0x3588e0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3c5142+=0x2){let _0x574f26=window[_0x3588e0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x786704[_0x3588e0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3c5142,_0x3c5142+0x2));_0x574f26>=_0x98ff4b[_0x3588e0([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x574f26-=_0x98ff4b[_0x3588e0([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x34cae4+=_0x98ff4b[_0x574f26];}return _0x34cae4;}function _0x5b93e4(){const _0x2f716f=_0x26359d[_0x3588e0([0x73,0x70,0x6c,0x69,0x74])](_0x3588e0([0x2e]));if(0x3!=_0x2f716f[_0x3588e0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x397470(_0x2f716f[0x1]);function _0x397470(_0x3f5589){const _0x2cec1d=_0x21b724(_0x3f5589);return _0x2cec1d&&_0x3c4aa6()?_0x2cec1d:null;function _0x3c4aa6(){const _0x308650=_0x2cec1d[_0x3588e0([0x6a,0x74,0x69])],_0x49d14a=window[_0x3588e0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x308650[_0x3588e0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x308650[_0x3588e0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x578d63={..._0x2cec1d,[_0x3588e0([0x6a,0x74,0x69])]:_0x308650[_0x3588e0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x308650[_0x3588e0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x578d63[_0x3588e0([0x76,0x63])],_0x533475(_0x578d63)==_0x49d14a;}}}async function _0x20ecb9(){let _0x2ff31e=!0x0;try{const _0x7def43=_0x26359d[_0x3588e0([0x73,0x70,0x6c,0x69,0x74])](_0x3588e0([0x2e])),[_0x3c0a57,_0x2c64a1,_0x69f826]=_0x7def43;return _0x54ee8f(_0x3c0a57),await _0x29c036(_0x3c0a57,_0x2c64a1,_0x69f826),_0x2ff31e;}catch(_0x46d39a){return!0x1;}function _0x54ee8f(_0x216ad3){const _0x405d73=_0x21b724(_0x216ad3);_0x405d73&&_0x405d73[_0x3588e0([0x61,0x6c,0x67])]==_0x3588e0([0x45,0x53,0x32,0x35,0x36])||(_0x2ff31e=!0x1);}async function _0x29c036(_0x1d0a2f,_0x38b3c4,_0xc5831f){const _0x447ccb=window[_0x3588e0([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3588e0([0x66,0x72,0x6f,0x6d])](_0x3a13be(_0xc5831f),_0x452026=>_0x452026[_0x3588e0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x399209=new window[(_0x3588e0([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3588e0([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1d0a2f+_0x3588e0([0x2e])+_0x38b3c4),_0x2165a9=window[_0x3588e0([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3588e0([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2165a9)return;const _0x37b430=await _0x2165a9[_0x3588e0([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3588e0([0x6a,0x77,0x6b]),_0x3b1daf,{[_0x3588e0([0x6e,0x61,0x6d,0x65])]:_0x3588e0([0x45,0x43,0x44,0x53,0x41]),[_0x3588e0([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3588e0([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3588e0([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2165a9[_0x3588e0([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3588e0([0x6e,0x61,0x6d,0x65])]:_0x3588e0([0x45,0x43,0x44,0x53,0x41]),[_0x3588e0([0x68,0x61,0x73,0x68])]:{[_0x3588e0([0x6e,0x61,0x6d,0x65])]:_0x3588e0([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x37b430,_0x447ccb,_0x399209)||(_0x2ff31e=!0x1);}}function _0x21b724(_0x13e68d){return _0x13e68d[_0x3588e0([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3588e0([0x65,0x79]))?JSON[_0x3588e0([0x70,0x61,0x72,0x73,0x65])](_0x3a13be(_0x13e68d)):null;}function _0x3a13be(_0x267c5f){return window[_0x3588e0([0x61,0x74,0x6f,0x62])](_0x267c5f[_0x3588e0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3588e0([0x2b]))[_0x3588e0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3588e0([0x2f])));}function _0x533475(_0x27eb80){let _0x3d31ad=0x1505;function _0x1e2fe0(_0xc4e9f7){for(let _0x1ecb70=0x0;_0x1ecb70<_0xc4e9f7[_0x3588e0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1ecb70++){const _0x4bb7b3=_0xc4e9f7[_0x3588e0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1ecb70);_0x3d31ad=(_0x3d31ad<<0x5)+_0x3d31ad+_0x4bb7b3,_0x3d31ad&=_0x3d31ad;}}function _0x239d2f(_0x38c767){Array[_0x3588e0([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x38c767)?_0x38c767[_0x3588e0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x239d2f):_0x38c767&&typeof _0x38c767==_0x3588e0([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3588e0([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x38c767)[_0x3588e0([0x73,0x6f,0x72,0x74])]()[_0x3588e0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x272085,_0x53aae3])=>{_0x1e2fe0(_0x272085),_0x239d2f(_0x53aae3);}):_0x1e2fe0(window[_0x3588e0([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x38c767));}return _0x239d2f(_0x27eb80),_0x3d31ad>>>0x0;}function _0x55afe0(_0x2327e6){return _0x2327e6[_0x3588e0([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3588e0([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3588e0([0x30]));}function _0x4829a3(_0x15b42f){return _0x15b42f[_0x3588e0([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3588e0([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3588e0([0x6a,0x6f,0x69,0x6e])]('');}function _0x2be878(_0x25aaec){return _0x56692c[_0x3588e0([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3588e0([0x68,0x61,0x73])](_0x25aaec);}function _0x3125e2(_0x186423){return _0x56692c[_0x3588e0([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3588e0([0x67,0x65,0x74])](_0x186423);}function _0x3c78b7(){}function _0x3588e0(_0x41210b){return _0x41210b['map'](_0x2ef21c=>String['fromCharCode'](_0x2ef21c))['join']('');}_0x290a87(await _0x5cdb46());}(this);}['createRevision'](_0x45a20e){const _0x808d0c=this['editor']['plugins']['get']('Users');return new a({'id':_0x45a20e['id'],'name':_0x45a20e['name'],'creator':_0x45a20e['creatorId']?_0x808d0c['getUser'](_0x45a20e['creatorId']):null,'diffData':_0x45a20e['diffData']||_0x45a20e['data'],'authors':_0x45a20e['authorsIds']['map'](_0x42222d=>_0x808d0c['getUser'](_0x42222d)),'createdAt':new Date(_0x45a20e['createdAt']),'attributes':_0x45a20e['attributes'],'fromVersion':_0x45a20e['fromVersion'],'toVersion':_0x45a20e['toVersion']});}['addRevision'](_0x645072,_0x2c220b=0x0){this['_revisions']['add'](_0x645072,_0x2c220b);}['getRevision'](_0xdb5674){return this['_revisions']['get'](_0xdb5674);}['getRevisions'](_0xb1a6e7={'toJSON':!0x1}){const _0x29e9f9=Array['from'](this['_revisions']);return _0x29e9f9['reverse'](),_0xb1a6e7['toJSON']?_0x29e9f9['map'](_0x2cbde8=>_0x2cbde8['toJSON']()):_0x29e9f9;}['getIndex'](_0xf0b074){return this['_revisions']['getIndex'](_0xf0b074);}['getEarlierVisibleRevision'](_0x61f4eb){const [,_0x597bfd]=this['getRevisionsIterator'](_0x61f4eb,{'direction':'earlier'});return _0x597bfd;}['getLaterVisibleRevision'](_0x48f7d2){const [,_0x1a2d8e]=this['getRevisionsIterator'](_0x48f7d2,{'direction':'later'});return _0x1a2d8e;}['getRevisionsInDiff'](_0x4e3fec){const _0x2933c0=[];for(const _0x1f8afb of this['getRevisionsIterator'](_0x4e3fec['newRevisionId']))if(_0x2933c0['push'](_0x1f8afb),_0x1f8afb['id']===_0x4e3fec['oldRevisionId'])break;return _0x2933c0;}*['getRevisionsIterator'](_0x15e974,{direction:_0x1aaae1='earlier',filter:_0x314684=()=>!0x0}={}){const _0x1171aa='earlier'===_0x1aaae1?0x1:-0x1;let _0x28698f=this['_revisions']['get'](_0x15e974),_0x2aee65=this['getIndex'](_0x28698f);for(yield _0x28698f;_0x28698f;){if(_0x2aee65+=_0x1171aa,_0x28698f=this['getRevision'](_0x2aee65),!_0x28698f)return;_0x314684(_0x28698f)&&(yield _0x28698f);}}}function m(_0x3a020e,_0x1084f3,_0x198f66){const t=_0x3a020e['t'];switch(_0x1084f3){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'},_0x198f66);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x198f66);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':_0x5b9de2,'a':_0x522ae0,'e':_0x430ab3,'r':_0x17b6b4,'u':_0x55f020};class l extends _0x4302a3{['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[_0x52611a,j,_0xad69a7];}constructor(_0x4d7b49){super(_0x4d7b49),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 _0x4b1cc8=_0x584392();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x4b1cc8},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 _0x924c75=this['repository']['getRevision'](0x0),_0x2a892c=_0x924c75&&null===_0x924c75['creator']?_0x924c75:null;if(this['_continueCurrentRevision']=!!_0x2a892c&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x49c553=this['_source']['getCurrentRevisionId'](),_0x33c47a=this['repository']['getRevision'](_0x49c553);if(_0x33c47a)this['_startingVersion']=_0x33c47a['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x23b785=this['_source']['history']['_operations']['find'](_0x129722=>!_0x129722['_isInit']),_0x4211da=_0x23b785?_0x23b785['baseVersion']:this['_source']['history']['version'];_0x924c75?(_0x924c75['toVersion']<_0x4211da&&_0x924c75['_update']({'toVersion':_0x4211da}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x2a892c['id'],this['_startingVersion']=_0x2a892c['fromVersion']):(this['_startingVersion']=_0x924c75['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x4211da,this['_continueCurrentRevision']=!0x1);}}else _0x2a892c&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x2a892c['toVersion'],this['editor']['model']['document']['history']['version']),_0x2a892c['fromVersion']===_0x2a892c['toVersion']?(0x0!==_0x2a892c['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x2a892c['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x2a892c['id'],this['_startingVersion']=_0x2a892c['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',_0x19082b=>!_0x19082b),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2dc9de=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x32675e;for(const _0x4909c7 in _0x2dc9de){const _0x355f5e=_0x4909c7,_0xf54bc1=_0x2dc9de[_0x355f5e];if('revisionHistoryLicenseKeyValid'==_0xf54bc1||'revisionHistoryLicenseKeyInvalid'==_0xf54bc1||'revisionHistoryLicenseKeyExpired'==_0xf54bc1||'revisionHistoryLicenseKeyDomainLimit'==_0xf54bc1||'revisionHistoryLicenseKeyNotAllowed'==_0xf54bc1||'revisionHistoryLicenseKeyEvaluationLimit'==_0xf54bc1||'revisionHistoryLicenseKeyTrialLimit'==_0xf54bc1||'revisionHistoryLicenseKeyUsageLimit'==_0xf54bc1){delete _0x2dc9de[_0x355f5e],_0x32675e=_0xf54bc1,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x32675e&&_0x2dc9de['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x32675e&&_0x2dc9de['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x32675e&&_0x2dc9de['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x32675e&&_0x2dc9de['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x32675e&&_0x2dc9de['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x32675e&&_0x2dc9de['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x32675e&&_0x2dc9de['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x1f30d8=this['repository']['getRevision'](0x0),_0x71aa0f=await this['getRevisionDocumentData'](_0x1f30d8),_0x2288e0=await this['getRevisionRootsAttributes'](_0x1f30d8);this['_replaceEditorDataWithRevisionData'](_0x71aa0f,_0x2288e0);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x33c928){this['_source']=_0x33c928;}async['update'](){const _0x21b90a=await this['_source']['getLatestVersion']();if(_0x21b90a>this['currentRevision']['toVersion']){await this['_loadState']();const _0x971d19=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x21b90a});_0x971d19['authors']=_0x971d19['authorsIds']['map'](_0x4e2bfe=>this['editor']['plugins']['get']('Users')['getUser'](_0x4e2bfe)),this['currentRevision']['_update'](_0x971d19);}}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'](_0x55115b={},_0x1b9af5=null){const _0x2bd552=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x1b9af5>this['currentRevision']['toVersion']&&(_0x1b9af5=null),null===_0x1b9af5&&(_0x1b9af5=await this['_source']['getLatestVersion']());const _0x368daa=this['_getFromVersion'](_0x1b9af5),_0xa5f333=this['buildRevisionData']({'from':_0x368daa,'to':_0x1b9af5});if(this['currentRevision']['toVersion']<_0x1b9af5){const _0x314854=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x1b9af5,'to':_0x1b9af5});_0x314854['authors']=[],_0x314854['authorsIds']=[],_0x314854['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x314854,!0x0),delete _0x314854['authors'],_0x2bd552['push'](_0x314854);}_0x55115b['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x55115b['name']=_0x55115b['name']||null,_0x55115b['id']=_0x55115b['id']||_0x584392(),_0x55115b={..._0x55115b,..._0xa5f333};const _0x1086e0=this['addRevisionData'](_0x55115b);_0x2bd552['push'](_0x55115b);const _0xe48927=this['repository']['getIndex'](_0x1086e0);if(0x0!==_0xe48927){const _0x1456a4=this['repository']['getRevision'](_0xe48927-0x1);if(_0x1456a4['fromVersion']!==_0x1b9af5){const _0x1869a0=this['_revisionDataBuilder']['getData'](_0x1b9af5,_0x1456a4['toVersion']),_0x2cccd0={'id':_0x1456a4['id'],'diffData':_0x1869a0['diffData'],'authorsIds':_0x1869a0['authorsIds'],'authors':_0x1869a0['authorsIds']['map'](_0x283db0=>this['editor']['plugins']['get']('Users')['getUser'](_0x283db0)),'fromVersion':_0x1b9af5};_0x1456a4===this['currentRevision']&&(_0x2cccd0['createdAt']=new Date(_0x55115b['createdAt']['getTime']()+0xa)),_0x1456a4['_update'](_0x2cccd0,!0x0),delete _0x2cccd0['authors'],_0x2bd552['push'](_0x2cccd0);}}if(this['adapter']){for(const _0x29df43 of _0x2bd552)this['_bufferUpdate'](_0x29df43['id'],_0x29df43,!0x0);this['sendBufferedUpdates']();}return _0x1086e0;}['addRevisionData'](_0x5c44bb){const _0x256bd3=this['repository']['createRevision'](_0x5c44bb);return this['adapter']&&_0x256bd3['on']('_update',(_0xaf4ff3,_0x11853e,_0x3f73e8)=>{_0x3f73e8||(this['_bufferUpdate'](_0x11853e['id'],_0x11853e,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x256bd3,this['_findInsertionIndex'](_0x256bd3)),_0x256bd3;}async['getRevisionDocumentData'](_0x2d0dba){await this['_loadRevisionData'](_0x2d0dba);const _0x50bb67={};for(const _0x17a7fb in _0x2d0dba['diffData']){if(_0x2d0dba['diffData'][_0x17a7fb]['attachChange']&&!_0x2d0dba['diffData'][_0x17a7fb]['attachChange']['isAttached'])continue;const _0xd48ab9=this['_removeRevisionMarkers'](JSON['parse'](_0x2d0dba['diffData'][_0x17a7fb]['insertions'])),_0x100ae3=this['editor']['editing']['view']['document'],_0x372c69=new _0x5848a3(_0x100ae3,_0xd48ab9['map'](_0x344143=>C(_0x344143,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x50bb67[_0x17a7fb]=this['editor']['data']['processor']['toData'](_0x372c69),this['editor']['data']['processor']['useFillerType']('default');}return _0x50bb67;}async['getRevisionRootsAttributes'](_0x12e1a5){await this['_loadRevisionData'](_0x12e1a5);const _0x33c539={};for(const _0xd3f5b4 in _0x12e1a5['diffData'])_0x12e1a5['diffData'][_0xd3f5b4]['attachChange']&&!_0x12e1a5['diffData'][_0xd3f5b4]['attachChange']['isAttached']||(_0x33c539[_0xd3f5b4]=_0x12e1a5['diffData'][_0xd3f5b4]['attributesAfter']||{});return _0x33c539;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x3d32a3=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x1371bd=0x0;_0x1371bd<_0x3d32a3['length'];_0x1371bd++){const _0x52852c=_0x3d32a3[_0x1371bd];let _0x3e21a4=!0x1;for(const _0x546947 of Object['keys'](_0x52852c))void 0x0===_0x52852c[_0x546947]?delete _0x52852c[_0x546947]:'id'!==_0x546947&&(_0x3e21a4=!0x0);_0x3e21a4||(_0x3d32a3[_0x1371bd]=null);}if(_0x3d32a3=_0x3d32a3['filter'](_0x219bcb=>null!==_0x219bcb),!_0x3d32a3['length'])return;for(let _0x551cfe=0x0;_0x551cfe<_0x3d32a3['length'];_0x551cfe++){const _0x440a87=_0x3d32a3[_0x551cfe];void 0x0!==_0x440a87['fromVersion']&&void 0x0===_0x440a87['toVersion']&&(_0x440a87['toVersion']=this['repository']['getRevision'](_0x440a87['id'])['toVersion']),void 0x0!==_0x440a87['toVersion']&&void 0x0===_0x440a87['fromVersion']&&(_0x440a87['fromVersion']=this['repository']['getRevision'](_0x440a87['id'])['fromVersion']);}const _0x3cdd65=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x3d32a3,_0x3cdd65)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x1edf44=>{if(_0x1edf44){for(const _0x17b5db of _0x1edf44)this['setRevisionData']({'id':_0x17b5db['id'],'createdAt':_0x17b5db['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x5410d4,_0x3fa06d){let _0x6ea272=this['editor']['config']['get']('initialData'),_0x42f194=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x6ea272){_0x6ea272={};for(const _0x115b66 of this['editor']['model']['document']['getRootNames']())_0x6ea272[_0x115b66]='';}if('string'==typeof _0x6ea272&&(_0x6ea272={'main':_0x6ea272}),void 0x0===_0x42f194){_0x42f194={};for(const _0x5bccd5 of this['editor']['model']['document']['getRootNames']())_0x42f194[_0x5bccd5]={};}let _0x3016f2=!0x1;const _0x4d5879=Object['keys'](_0x6ea272),_0x365d8c=Object['keys'](_0x5410d4);for(const _0x20e168 of _0x4d5879){if(_0x6ea272[_0x20e168]!==_0x5410d4[_0x20e168]&&''!==_0x6ea272[_0x20e168]['trim']()){_0x3016f2=!0x0;break;}if(!_0x50e5d7(_0x42f194[_0x20e168],_0x3fa06d[_0x20e168])&&Object['keys'](_0x42f194[_0x20e168])['length']>0x0){_0x3016f2=!0x0;break;}}_0x3016f2||(_0x3016f2=_0x365d8c['some'](_0x5637db=>!this['editor']['model']['document']['getRoot'](_0x5637db))),_0x3016f2&&_0x692ebe('editor-initial-data-replaced-with-revision-data',{'editorData':_0x6ea272,'editorRootsAttributes':_0x42f194,'revisionData':_0x5410d4,'revisionRootsAttributes':_0x3fa06d}),this['editor']['config']['set']('initialData',_0x5410d4),this['editor']['config']['set']('rootsAttributes',_0x3fa06d);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x462acc=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x462acc['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0xe7a188){const _0xef22a1=this['repository']['getRevisions']();_0xef22a1['reverse']();let _0x5a878e=0x0;for(;_0x5a878e<_0xef22a1['length'];){const _0x1cb447=_0xef22a1[_0x5a878e];if(_0x1cb447===this['currentRevision']){_0x5a878e++;continue;}if(_0x1cb447['id']===this['_initialRevisionId'])break;const _0x403c70=_0xe7a188['toVersion']-_0x1cb447['toVersion']||_0xe7a188['fromVersion']-_0x1cb447['fromVersion'];if(_0x403c70>0x0)break;if(_0x403c70<0x0)_0x5a878e++;else{if(!_0xe7a188['creator']&&_0x1cb447['creator'])break;if(_0x1cb447['creator']||!_0xe7a188['creator']){if(_0xe7a188['createdAt']>_0x1cb447['createdAt'])break;_0x5a878e++;}else _0x5a878e++;}}return _0x5a878e;}['setRevisionData'](_0x4016f6){const _0x432faf=this['repository']['getRevision'](_0x4016f6['id']);if(_0x4016f6['createdAt']&&(_0x4016f6['createdAt']=new Date(_0x4016f6['createdAt'])),_0x4016f6['authorsIds']){const _0x33619d=this['editor']['plugins']['get']('Users');_0x4016f6['authors']=_0x4016f6['authorsIds']['map'](_0x218c3f=>_0x33619d['getUser'](_0x218c3f));}_0x432faf['_update'](_0x4016f6,!0x0);}['buildRevisionData']({revision:_0x18dbe7=null,from:_0x5014d1=null,to:_0x4743ed=null}){_0x5014d1=null!==_0x5014d1?_0x5014d1:_0x18dbe7['fromVersion'],_0x4743ed=null!==_0x4743ed?_0x4743ed:_0x18dbe7['toVersion'];const _0x36e8af=this['_revisionDataBuilder']['getData'](_0x5014d1,_0x4743ed),_0x1070cc={'diffData':_0x36e8af['diffData'],'authorsIds':_0x36e8af['authorsIds'],'fromVersion':_0x5014d1,'toVersion':_0x4743ed};if(!_0x18dbe7||_0x4743ed!==_0x18dbe7['toVersion']){const _0x4c19ae=_0x4743ed-0x1,_0x596a1c=this['_source']['history']['getOperation'](_0x4c19ae);_0x1070cc['createdAt']=_0x596a1c&&_0x596a1c['createdAt']||new Date();}if(this['_loadedStateData']&&_0x5014d1===this['_loadedStateData']['fromVersion']){for(const _0x10363e of this['_loadedStateData']['authors'])_0x1070cc['authorsIds']['includes'](_0x10363e['id'])||_0x1070cc['authorsIds']['push'](_0x10363e['id']);}return _0x1070cc;}['_loadRevisionData'](_0xa0d882){if(!_0xa0d882||_0xa0d882['diffData'])return Promise['resolve']();{const _0x928e22=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x928e22,'revisionId':_0xa0d882['id']})['then'](_0x330524=>{_0xa0d882['diffData']=_0x330524['diffData'];});}}['_bufferUpdate'](_0x1112b8,_0x4b36c6,_0x4a0086){if(this['_bufferedUpdates']['has'](_0x1112b8)){const _0x1d6712=this['_bufferedUpdates']['get'](_0x1112b8);_0x4b36c6=_0x4a0086?{..._0x1d6712,..._0x4b36c6}:{..._0x4b36c6,..._0x1d6712};}this['_bufferedUpdates']['set'](_0x1112b8,_0x4b36c6);}['_getFromVersion'](_0x32227b){const _0x13cea0=this['repository']['getRevisions']();_0x13cea0['reverse'](),_0x13cea0['shift']();const _0x343e69=_0x13cea0['find'](_0xaea591=>_0xaea591['toVersion']<=_0x32227b)['toVersion'];return _0x343e69<this['_startingVersion']?this['_startingVersion']:_0x343e69;}['_createInitialRevision'](_0x5ddcc4){const _0x15d7f5=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x15d7f5)this['_initialRevisionId']=_0x15d7f5['id'];else{const _0x3fb8bb=!this['editor']['model']['document']['roots']['find'](_0x3f0dda=>this['editor']['model']['hasContent'](_0x3f0dda)),_0x306843=this['editor']['plugins']['get']('Users')['me']['id'],_0x4a894f=m(this['editor']['locale'],_0x3fb8bb?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x5ddcc4,'to':_0x5ddcc4,'id':this['_initialRevisionId'],'name':_0x4a894f,'creatorId':_0x306843});}}['_createCurrentRevision'](_0x293578){const _0x3377bc=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x3377bc),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x293578,'to':_0x293578,'id':_0x3377bc,'name':'','creatorId':null}));}['_makeRevision']({name:_0x428ba1,from:_0x115f8d,to:_0x587699,creatorId:_0x282eca,id:_0x5c08ba}){const _0x3ebd7c=this['buildRevisionData']({'from':_0x115f8d,'to':_0x587699});_0x3ebd7c['name']=_0x428ba1,_0x3ebd7c['creatorId']=_0x282eca,_0x3ebd7c['id']=_0x5c08ba;const _0xf838da=this['addRevisionData'](_0x3ebd7c);return this['adapter']&&this['_bufferUpdate'](_0x3ebd7c['id'],_0x3ebd7c,!0x0),_0xf838da;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x15ac04){return(_0x15ac04=_0x15ac04['filter'](_0x245420=>!_0x245420['name']||'revision-start'!==_0x245420['name']&&'revision-end'!==_0x245420['name']))['forEach'](_0x336262=>{'string'!=typeof _0x336262&&(_0x336262['children']=this['_removeRevisionMarkers'](_0x336262['children']),_0x336262['attributes']=_0x336262['attributes']['filter'](_0x3facd3=>!_0x3facd3[0x0]['startsWith']('data-revision-')));}),_0x15ac04;}}function C(_0x4e3e26,_0x5c1cf4){const _0x24061b=_0x5c1cf4['editing']['view']['document'];if('string'==typeof _0x4e3e26)return new _0x4b2d94(_0x24061b,_0x4e3e26);{const _0x50f092=_0x4e3e26['children']['map'](_0x24ee65=>C(_0x24ee65,_0x5c1cf4));return new(P[_0x4e3e26['type']]||_0x3ecfdc)(_0x24061b,_0x4e3e26['name'],_0x4e3e26['attributes'],_0x50f092);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x4a2fb9){this['editor']=_0x4a2fb9,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'](_0x2b6f3a){this['source']=_0x2b6f3a;const _0x33b77c=new Map(),_0x28a54e=new Map(),_0x4e85a9=this['editor']['model']['document']['roots']['map'](_0x179ebd=>_0x179ebd['rootName']);for(const _0x9155e8 of _0x4e85a9){const _0x504a83=this['editor']['model']['document']['getRoot'](_0x9155e8),_0x27ea89=T(_0x504a83);_0x33b77c['set'](_0x9155e8,_0x27ea89),_0x28a54e['set'](_0x9155e8,Object['fromEntries'](_0x504a83['getAttributes']()));}const _0x3a2ea3=Array['from'](this['editor']['model']['markers'])['map'](_0x4bfe33=>[_0x4bfe33['name'],_0x4bfe33['getRange']()]),_0x471e8a=this['source']['version'];this['_saveMetaData'](_0x471e8a,_0x33b77c,_0x3a2ea3,_0x28a54e),this['_startingRevisionId']=this['_revisionId'];const _0x239b43=new Map(),_0x2730e1=new Map();for(const _0xbfd0d2 of _0x4e85a9){const _0x5596cb=F(_0xbfd0d2);_0x239b43['set'](_0xbfd0d2,_0x5596cb),_0x2730e1['set'](_0xbfd0d2,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x239b43,[],_0x2730e1);}['getData'](_0x3cbbcc,_0x45dd7b){if(this['_lastFrom']===_0x3cbbcc&&this['_lastTo']<=_0x45dd7b)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x45dd7b,!0x0);else{if(!this['_savedMetaData']['has'](_0x3cbbcc)){const _0x817f3d=this['_getPreviousFrom'](_0x3cbbcc);this['_calculateMetaData'](_0x817f3d,_0x3cbbcc,!0x1);}this['_calculateMetaData'](_0x3cbbcc,_0x45dd7b,!0x0);}return this['_lastFrom']=_0x3cbbcc,this['_lastTo']=_0x45dd7b,this['_getState']();}['loadState'](_0x1e20cb){this['_reset'](),this['_lastFrom']=_0x1e20cb['fromVersion'],this['_lastTo']=_0x1e20cb['toVersion'];for(const _0x57c7bd in _0x1e20cb['diffData']){const _0x4cde6b=_0x1e20cb['diffData'][_0x57c7bd]['attachChange'],_0xfe0fb5=_0x307744(_0x1e20cb['diffData'][_0x57c7bd]['attributesBefore'])||{},_0x3387a3=this['_makeModelFromViewString'](_0x1e20cb['diffData'][_0x57c7bd]['deletions']);_0x3387a3['rootName']=_0x57c7bd,_0x3387a3['_isAttached']=!_0x4cde6b||!_0x4cde6b['isAttached'],_0x3387a3['isAttached']=()=>_0x3387a3['_isAttached'],this['_baseRoots']['set'](_0x57c7bd,_0x3387a3),this['_baseRootsAttributes']['set'](_0x57c7bd,_0xfe0fb5),_0x4cde6b&&this['_touchedRoots']['set'](_0x57c7bd,_0x4cde6b);const _0x15b2e1=this['_makeIdsRoot'](_0x3387a3);this['_baseIdsRoots']['set'](_0x57c7bd,_0x15b2e1);for(const [_0x4fce0f,_0x293fae]of _0x3387a3['markers']){if(!_0x4fce0f['startsWith']('revision:'))continue;const _0x4d0705=_0x4fce0f['split'](':')[0x2];for(const _0x45f495 of _0x293fae['getWalker']({'singleCharacters':!0x0})){const _0x4725cf=this['_getVidAttributeName'](_0x45f495),_0x2d8aaa='elementEnd'==_0x45f495['type']?_0x45f495['previousPosition']['path']['slice'](0x0,-0x1):_0x45f495['previousPosition']['path'],_0x3492c3=_0x15b2e1['getNodeByPath'](_0x2d8aaa)['getAttribute'](_0x4725cf);this['_touched']['set'](_0x3492c3,{'userId':_0x4d0705});}}}this['_startingRevisionId']=this['_revisionId'];const _0x39e344=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x3ba180=>!this['_touched']['has'](_0x3ba180));let _0x37baa9=0x0;const _0x36b42e=new Map();for(const _0x133de5 in _0x1e20cb['diffData']){const _0x1df5b3=_0x1e20cb['diffData'][_0x133de5]['attachChange'],_0x4a7684=_0x307744(_0x1e20cb['diffData'][_0x133de5]['attributesAfter'])||{},_0x49fe4f=this['_makeModelFromViewString'](_0x1e20cb['diffData'][_0x133de5]['insertions']);_0x49fe4f['rootName']=_0x133de5,_0x49fe4f['_isAttached']=!_0x1df5b3||_0x1df5b3['isAttached'],_0x49fe4f['isAttached']=()=>_0x49fe4f['_isAttached'],this['_diffRoots']['set'](_0x133de5,_0x49fe4f),this['_diffRootsAttributes']['set'](_0x133de5,_0x4a7684);const _0x3ba842=this['_makeIdsRoot'](_0x49fe4f,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x133de5,_0x3ba842),_0x36b42e['set'](_0x133de5,_0x49fe4f['isAttached']()?_0x4a7684:{});for(const [_0x2eb429,_0x4cdc94]of _0x49fe4f['markers']){if(!_0x2eb429['startsWith']('revision:'))continue;const _0x3f17e9=_0x2eb429['split'](':')[0x2];for(const _0x2ad746 of _0x4cdc94['getWalker']({'singleCharacters':!0x0})){const _0x2b7cd2=this['_getVidAttributeName'](_0x2ad746),_0xb07492=this['_revisionId']++,_0x2c49f4='elementEnd'==_0x2ad746['type']?_0x2ad746['previousPosition']['path']['slice'](0x0,-0x1):_0x2ad746['previousPosition']['path'];_0x3ba842['getNodeByPath'](_0x2c49f4)['_setAttribute'](_0x2b7cd2,_0xb07492),this['_touched']['set'](_0xb07492,{'userId':_0x3f17e9});}}for(const _0x20d994 of this['editor']['model']['createRangeIn'](_0x49fe4f)['getWalker']({'singleCharacters':!0x0})){const _0x5f155a=this['_getVidAttributeName'](_0x20d994),_0x4789f9='elementEnd'==_0x20d994['type']?_0x20d994['previousPosition']['path']['slice'](0x0,-0x1):_0x20d994['previousPosition']['path'],_0x26a782=_0x3ba842['getNodeByPath'](_0x4789f9);_0x26a782['getAttribute'](_0x5f155a)>0x0||_0x26a782['_setAttribute'](_0x5f155a,_0x39e344[_0x37baa9++]);}for(const [_0x5cda9f,_0x1ff60d]of _0x49fe4f['markers'])_0x5cda9f['startsWith']('revision:')||this['_markers']['set'](_0x5cda9f,_0x1ff60d);}const _0x2aa7e5=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x2aa7e5),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x2aa7e5,0x1));const _0x1e2a32=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x1e2a32),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x1e2a32,0x1));const _0x57bd37=Array['from'](this['_diffRoots'])['map'](([_0x53eba,_0x2e5493])=>[_0x53eba,T(_0x2e5493)]);this['_saveMetaData'](this['_lastTo'],_0x57bd37,this['_markers'],_0x36b42e);}['_makeModelFromViewString'](_0x3a7ad6){const _0x401264=JSON['parse'](_0x3a7ad6),_0x447888=this['editor']['editing']['view']['document'],_0x1f79fb=new _0x5848a3(_0x447888,_0x401264['map'](_0x4859d6=>C(_0x4859d6,this['editor'])));return this['editor']['data']['toModel'](_0x1f79fb);}['_saveMetaData'](_0x3af5ce,_0x5227d1,_0x1468b5,_0x2fbc72){const _0x5c34d9=new Map(_0x5227d1),_0x2e3601=new Map(_0x307744(_0x2fbc72)),_0x2e8133=new Map();for(const [_0x775c10,_0x3a3610]of _0x1468b5)_0x2e8133['set'](_0x775c10,{'start':_0x3a3610['start']['clone'](),'end':_0x3a3610['end']['clone'](),'rootName':_0x3a3610['root']['rootName']});this['_savedMetaData']['set'](_0x3af5ce,{'roots':_0x5c34d9,'markers':_0x2e8133,'rootsAttributes':_0x2e3601});}['_removeMetaData'](_0x12eb4e){this['_savedMetaData']['delete'](_0x12eb4e);}['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'](_0xc6b89,_0x5d11ec=null){let _0x3fa99f=null;_0xc6b89['is']('documentFragment')||(_0x3fa99f=new ft(_0xc6b89['name'],{'vid_start':null===_0x5d11ec?this['_revisionId']++:_0x5d11ec++}));const _0x5f29e0=[];for(const _0x121e47 of _0xc6b89['getChildren']())if(_0x121e47['is']('element')){_0x5f29e0['push'](this['_makeIdsRoot'](_0x121e47,_0x5d11ec));const _0x3220ff=_0x5f29e0[_0x5f29e0['length']-0x1];null!==_0x5d11ec&&(_0x5d11ec=_0x3220ff['is']('element','$text')?_0x3220ff['getAttribute']('vid')+0x1:_0x3220ff['getAttribute']('vid_end')+0x1);}else{for(let _0x3a948f=0x0;_0x3a948f<_0x121e47['offsetSize'];_0x3a948f++)_0x5f29e0['push'](new ft('$text',{'vid':null===_0x5d11ec?this['_revisionId']++:_0x5d11ec++}));}if(_0xc6b89['is']('documentFragment')){const _0x6088=F(_0xc6b89['rootName']);return _0x6088['_insertChild'](0x0,_0x5f29e0),_0x6088;}return _0x3fa99f['_setAttribute']('vid_end',null===_0x5d11ec?this['_revisionId']++:_0x5d11ec++),_0x3fa99f['_insertChild'](0x0,_0x5f29e0),_0x3fa99f;}['_calculateMetaData'](_0x1409a8,_0x152c1a,_0x406135){this['_reset']();const {roots:_0x5dd48d,markers:_0xcff2e2,rootsAttributes:_0x55eb1f}=this['_savedMetaData']['get'](_0x1409a8);this['_baseRoots']=new Map(_0x5dd48d),this['_baseRootsAttributes']=new Map(_0x307744(_0x55eb1f));for(const [_0x57b0cd,_0x21f570]of this['_baseRoots'])if('$graveyard'!==_0x57b0cd&&(this['_diffRoots']['set'](_0x57b0cd,T(_0x21f570)),this['_diffRootsAttributes']=new Map(_0x307744(_0x55eb1f)),_0x406135)){const _0xde3f8c=this['_revisionId'];this['_idsRoots']['set'](_0x57b0cd,this['_makeIdsRoot'](_0x21f570)),this['_baseIdsRoots']['set'](_0x57b0cd,this['_makeIdsRoot'](_0x21f570,_0xde3f8c));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x406135&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x384c1e,_0x35bbab]of _0xcff2e2){const _0x3805f4=this['_baseRoots']['get'](_0x35bbab['rootName']),_0x113653=this['_diffRoots']['get'](_0x35bbab['rootName']),_0x44a2a6=new vt(this['_fixPosition'](_0x35bbab['start'],_0x3805f4),this['_fixPosition'](_0x35bbab['end'],_0x3805f4)),_0x5a3e4b=this['_fixRange'](_0x44a2a6,_0x113653);_0x3805f4['markers']['set'](_0x384c1e,_0x44a2a6),this['_markers']['set'](_0x384c1e,_0x5a3e4b);}this['_applyOperations'](_0x1409a8,_0x152c1a,_0x406135);}['_applyOperations'](_0x30a14a,_0x2b0a54,_0x391ecc){for(const _0x2427d0 of this['source']['getOperations'](_0x30a14a,_0x2b0a54))this['_handleOperation'](_0x2427d0,_0x391ecc);for(const _0x201ac0 of this['_diffRoots']['values']())_0x201ac0['markers']['clear']();for(const [_0x38028f,_0x2ee0f6]of this['_markers']){this['_diffRoots']['get'](_0x2ee0f6['root']['rootName'])['markers']['set'](_0x38028f,_0x2ee0f6['clone']());}const _0x345d36=new Map(),_0x509e47=new Map();for(const [_0xfecb2a,_0x464104]of this['_diffRoots'])_0x345d36['set'](_0xfecb2a,T(_0x464104)),_0x509e47['set'](_0xfecb2a,this['_diffRootsAttributes']['get'](_0xfecb2a));this['_saveMetaData'](_0x2b0a54,_0x345d36,this['_markers'],_0x509e47);}['_getPreviousFrom'](_0x3053b2){const _0xdc575e=Array['from'](this['_savedMetaData']['keys']());_0xdc575e['sort']((_0x32a5c4,_0x3d8d4e)=>_0x32a5c4-_0x3d8d4e),_0xdc575e['reverse']();for(const _0x2cf68a of _0xdc575e)if(_0x2cf68a<_0x3053b2)return _0x2cf68a;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0xba93e7,_0x2bcc9f){const _0x45360a=Array['from'](_0x2bcc9f['markers'])['map'](([_0x446412,_0x33f8a0])=>[_0x446412,this['_fixRange'](_0x33f8a0,_0xba93e7)]);_0xba93e7['markers']=new Map(_0x45360a);}['_transformMarkers'](_0x5f0562){for(const _0x4301ae of this['_markers']['values']()){const _0x566164=_0x4301ae['getTransformedByOperation'](_0x5f0562),_0x3b9544=vt['_createFromRanges'](_0x566164);_0x4301ae['start']=_0x3b9544['start'],_0x4301ae['end']=_0x3b9544['end'];}}['_handleOperation'](_0x3e163f,_0x4a88c2){if('addRoot'!=_0x3e163f['type']&&'detachRoot'!=_0x3e163f['type']){if('insert'==_0x3e163f['type']){const _0x2eda46=_0x3e163f['position']['root']['rootName'];this['_diffRoots']['has'](_0x2eda46)||(this['_diffRoots']['set'](_0x2eda46,F(_0x2eda46,!0x0)),this['_diffRootsAttributes']['set'](_0x2eda46,{}),_0x4a88c2&&this['_idsRoots']['set'](_0x2eda46,F(_0x2eda46,!0x0)));}else{if('addRootAttribute'==_0x3e163f['type']||'removeRootAttribute'==_0x3e163f['type']||'changeRootAttribute'==_0x3e163f['type'])return void this['_handleRootAttributeOperation'](_0x3e163f);'marker'==_0x3e163f['type']&&this['_handleMarkerOperation'](_0x3e163f);}if('marker'!==_0x3e163f['type']){const _0x3e679b=this['_cloneOperation'](_0x3e163f,this['_diffRoots']);_0x3e679b['_execute'](),this['_transformMarkers'](_0x3e679b);}if(_0x4a88c2)switch(_0x3e163f['type']){case'insert':this['_handleInsertOperation'](_0x3e163f);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x3e163f);break;case'merge':this['_handleMergeOperation'](_0x3e163f);break;case'split':this['_handleSplitOperation'](_0x3e163f);}}else this['_handleRootOperation'](_0x3e163f,_0x4a88c2);}['_cloneOperation'](_0x3c49c1,_0x3297f7){const _0x2c5ec9=_0x3c49c1['clone']();return _0x2c5ec9['_authorId']=_0x3c49c1['_authorId'],this['_fixOperation'](_0x2c5ec9,_0x3297f7),_0x2c5ec9;}['_getBaseVids'](_0xbbb56b){return _0xbbb56b['map'](_0x9a72a8=>{const _0x1c2b1f=this['_getVidAttributeName'](_0x9a72a8);return Number(_0x9a72a8['item']['getAttribute'](_0x1c2b1f));});}['_generateTape'](_0x1fdbd2,_0x442019){if(_0x1fdbd2['is']('element','$text'))_0x442019['push']({'item':_0x1fdbd2,'type':'text'});else{_0x1fdbd2['is']('element')&&_0x442019['push']({'item':_0x1fdbd2,'type':'elementStart'});for(const _0x171280 of _0x1fdbd2['getChildren']())this['_generateTape'](_0x171280,_0x442019);_0x1fdbd2['is']('element')&&_0x442019['push']({'item':_0x1fdbd2,'type':'elementEnd'});}return _0x442019;}['_getState'](){const _0x3d4e69=new Map(this['_touched']),_0x514d76=new Map(_0x3d4e69),_0x10981c=new Map(),_0x51027a={'insertions':{},'deletions':{}},_0x2df163={'insertions':{},'deletions':{}},_0x456d28=new Map(),_0x32233e=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x32233e['delete']('$graveyard');for(const _0x248789 of _0x32233e){const _0x36bc3e=this['_diffRoots']['get'](_0x248789)||F(_0x248789,!0x1),_0x382ff3=this['_baseRoots']['get'](_0x248789)||F(_0x248789,!0x1);_0x36bc3e['isAttached']()||_0x382ff3['isAttached']()?(_0x51027a['insertions'][_0x248789]=T(_0x36bc3e),_0x51027a['deletions'][_0x248789]=T(_0x382ff3),this['_copyMarkers'](_0x51027a['deletions'][_0x248789],_0x382ff3),this['_copyMarkers'](_0x51027a['insertions'][_0x248789],_0x36bc3e),_0x2df163['insertions'][_0x248789]=this['_generateTape'](this['_idsRoots']['get'](_0x248789),[]),_0x2df163['deletions'][_0x248789]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x248789)||F(_0x248789,!0x1),[])):_0x32233e['delete'](_0x248789);}for(const _0x43b7e3 of _0x32233e){const _0x1a8e76=_0x2df163['insertions'][_0x43b7e3];for(const _0x45daf0 of _0x1a8e76){const _0x361ad8=this['_getVidAttributeName'](_0x45daf0),_0x4e10c9=_0x45daf0['item']['getAttribute'](_0x361ad8);_0x514d76['delete'](_0x4e10c9),_0x4e10c9>=this['_startingRevisionId']&&_0x10981c['set'](_0x4e10c9,_0x3d4e69['get'](_0x4e10c9));}}for(const _0x35a692 of _0x32233e){const _0x26b4af=_0x2df163['insertions'][_0x35a692],_0x29a95d=this['_getBaseVids'](_0x2df163['deletions'][_0x35a692]);let _0x3bd46d=0x0;for(const _0x514fe0 of _0x26b4af){const _0x4d9a74=this['_getVidAttributeName'](_0x514fe0),_0x5b262f=_0x514fe0['item']['getAttribute'](_0x4d9a74);if(!_0x10981c['has'](_0x5b262f)&&!_0x456d28['has'](_0x5b262f)){if(_0x514d76['has'](_0x5b262f))_0x3bd46d++;else{if(_0x5b262f!=_0x29a95d[_0x3bd46d]){const _0x3ac8f8=_0x3d4e69['get'](_0x5b262f)||_0x3d4e69['get'](_0x29a95d[_0x3bd46d]);for(;_0x5b262f!=_0x29a95d[_0x3bd46d];)_0x514d76['has'](_0x29a95d[_0x3bd46d])||(_0x456d28['set'](_0x29a95d[_0x3bd46d],_0x3ac8f8),_0x3d4e69['set'](_0x29a95d[_0x3bd46d],_0x3ac8f8)),_0x3bd46d++;}_0x3bd46d++;}}}}for(const _0x42451c of _0x32233e){const _0x2a783d=_0x2df163['insertions'][_0x42451c];for(const _0xc8930c of _0x2a783d){const _0x5a447a=this['_getVidAttributeName'](_0xc8930c),_0x201578=_0xc8930c['item']['getAttribute'](_0x5a447a);if(_0x456d28['has'](_0x201578)){const _0x5d96ff=_0x456d28['get'](_0x201578);_0x514d76['has'](_0x201578)||_0x514d76['set'](_0x201578,{..._0x5d96ff}),_0x10981c['set'](_0x201578,{..._0x5d96ff});}}}for(const _0x5c5ba1 of _0x514d76['keys']())_0x5c5ba1>=this['_startingRevisionId']&&_0x514d76['delete'](_0x5c5ba1);const _0x15ad2d=new Map();for(const _0x5a48dd of _0x32233e){let _0x364091=_0x2df163['insertions'][_0x5a48dd];for(const _0x19f63e of _0x364091)if(_0x19f63e['item']['is']('element','tableCell')){const _0x4a0aca=this['_getVidAttributeName'](_0x19f63e),_0x37e70c=_0x19f63e['item']['getAttribute'](_0x4a0aca);if(_0x10981c['has'](_0x37e70c)){const _0x464aa8=_0x19f63e['item']['parent']['parent']['getAttribute']('vid_start'),_0x417b6d=_0x15ad2d['get'](_0x464aa8)||new Set();_0x417b6d['add'](_0x10981c['get'](_0x37e70c)['userId']),_0x15ad2d['set'](_0x464aa8,_0x417b6d);}}_0x364091=_0x2df163['deletions'][_0x5a48dd];for(const _0x439bd9 of _0x364091)if(_0x439bd9['item']['is']('element','tableCell')){const _0xc5727b=this['_getVidAttributeName'](_0x439bd9),_0x354bc8=_0x439bd9['item']['getAttribute'](_0xc5727b);if(_0x514d76['has'](_0x354bc8)){const _0x34089c=_0x439bd9['item']['parent']['parent']['getAttribute']('vid_start'),_0x26db6a=_0x15ad2d['get'](_0x34089c)||new Set();_0x26db6a['add'](_0x514d76['get'](_0x354bc8)['userId']),_0x15ad2d['set'](_0x34089c,_0x26db6a);}}for(const _0x1b269b of _0x15ad2d['keys']())(_0x10981c['has'](_0x1b269b)||_0x514d76['has'](_0x1b269b))&&_0x15ad2d['delete'](_0x1b269b);}for(const _0x533f7f of _0x32233e){const _0x2416f5=_0x2df163['insertions'][_0x533f7f];let _0x3ba903=null,_0x43b9be=null;for(const _0x57a803 of _0x2416f5){const _0x4b18e4=this['_getVidAttributeName'](_0x57a803),_0x5b0b4c=_0x57a803['item']['getAttribute'](_0x4b18e4),_0x5906e5=_0x15ad2d['get'](_0x5b0b4c);_0x5906e5&&'elementStart'==_0x57a803['type']&&(_0x3ba903=Array['from'](_0x5906e5)[0x0],_0x43b9be=_0x57a803['item']['getAttribute']('vid_end')),_0x3ba903&&(_0x514d76['set'](_0x5b0b4c,{'userId':_0x3ba903}),_0x10981c['set'](_0x5b0b4c,{'userId':_0x3ba903})),_0x5b0b4c==_0x43b9be&&(_0x3ba903=null,_0x43b9be=null);}}const _0x37d3cc={},_0x26f65d=new Set();for(const _0x1f8c4e of _0x32233e){const _0x52684d=_0x51027a['deletions'][_0x1f8c4e],_0x4c7732=_0x51027a['insertions'][_0x1f8c4e];for(const {userId:_0x27b18a}of this['_touchedMarkers']['values']())null!==_0x27b18a&&_0x26f65d['add'](_0x27b18a);for(const {userId:_0x51caea}of this['_touchedRoots']['values']())null!==_0x51caea&&_0x26f65d['add'](_0x51caea);this['_markChanges'](_0x4c7732,_0x2df163['insertions'][_0x1f8c4e],_0x10981c,'insertion',_0x26f65d),this['_markChanges'](_0x52684d,_0x2df163['deletions'][_0x1f8c4e],_0x514d76,'deletion',_0x26f65d),_0x37d3cc[_0x1f8c4e]={'insertions':this['_prepareViewToSave'](_0x4c7732),'deletions':this['_prepareViewToSave'](_0x52684d),'attachChange':this['_touchedRoots']['get'](_0x1f8c4e)||null,'attributesBefore':_0x307744(this['_baseRootsAttributes']['get'](_0x1f8c4e))||{},'attributesAfter':_0x307744(this['_diffRootsAttributes']['get'](_0x1f8c4e))};}return{'diffData':_0x37d3cc,'authorsIds':Array['from'](_0x26f65d)};}['_processRootBeforeSave'](_0x522d1e){for(const [,_0x530aba]of _0x522d1e['markers']){const _0x215973=_0x530aba['start']['getAncestors']()['filter'](_0x57ecc3=>'tableCell'==_0x57ecc3['name']);for(const _0x226f1d of _0x215973)0x1==_0x226f1d['childCount']&&_0x226f1d['getChild'](0x0)['is']('element','paragraph')&&_0x226f1d['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x82aec){this['_processRootBeforeSave'](_0x82aec);const _0x1c6b94=this['editor']['data']['toView'](_0x82aec,{}),_0x1ff237=Array['from'](_0x1c6b94['getChildren']())['map'](_0x16775f=>this['_getViewJson'](_0x16775f));return JSON['stringify'](_0x1ff237);}['_getViewJson'](_0x45b3fe){if(_0x45b3fe['is']('$text'))return _0x45b3fe['data'];{const _0x4e9567=_0x45b3fe;return{'type':Object['keys'](P)['find'](_0x2721b1=>_0x45b3fe instanceof P[_0x2721b1]),'name':_0x4e9567['name'],'attributes':Array['from'](_0x4e9567['getAttributes']()),'children':Array['from'](_0x4e9567['getChildren']())['map'](_0x229f11=>this['_getViewJson'](_0x229f11))};}}['_markChanges'](_0x9a2549,_0x3d8692,_0x5dfe44,_0x5ceb1a,_0x3ecbbc){let _0x580d0f=null,_0x32c91e=null,_0x5ef453=0x0;const _0x54e94c=this['editor']['model'];for(let _0x234223=0x0;_0x234223<_0x3d8692['length'];_0x234223++){const _0x227f0d=this['_getVidAttributeName'](_0x3d8692[_0x234223]),_0x4d1868=_0x3d8692[_0x234223]['item']['getAttribute'](_0x227f0d),_0x2214bd=_0x5dfe44['get'](_0x4d1868),_0xfc4e68=_0x234223==_0x3d8692['length']-0x1;(!_0x580d0f&&_0x2214bd&&(_0x580d0f=_0x2214bd,_0x32c91e=_0x3d8692[_0x234223]),_0x580d0f&&(!_0x2214bd||_0x2214bd['userId']!=_0x580d0f['userId']))&&(_0x32b352(_0x2214bd,B(_0x32c91e,_0x9a2549,_0x54e94c),B(_0x3d8692[_0x234223],_0x9a2549,_0x54e94c)),_0x580d0f=_0x2214bd||null,_0x32c91e=_0x2214bd?_0x3d8692[_0x234223]:null),_0x580d0f&&_0xfc4e68&&_0x32b352(_0x2214bd,B(_0x32c91e,_0x9a2549,_0x54e94c),J(_0x3d8692[_0x234223],_0x9a2549,_0x54e94c));}function _0x32b352(_0x5d3c18,_0x8ee1cd,_0x31a26b){const _0x60d59f=_0x580d0f['userId'],_0x4eeae6='revision:'+_0x5ceb1a+':'+_0x60d59f+':'+_0x5ef453++,_0x3395c3=_0x54e94c['createRange'](_0x8ee1cd,_0x31a26b);_0x9a2549['markers']['set'](_0x4eeae6,_0x3395c3),null!==_0x60d59f&&_0x3ecbbc['add'](_0x60d59f);}}['_getVidAttributeName'](_0xba68a3){switch(_0xba68a3['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x356dd9,_0x1ba2ce){_0x356dd9['baseVersion']=null;for(const _0x34cd6a in _0x356dd9){const _0x585648=_0x356dd9[_0x34cd6a];if(_0x585648 instanceof gt){const _0x1aa516=_0x1ba2ce['get'](_0x585648['root']['rootName']);_0x356dd9[_0x34cd6a]=this['_fixPosition'](_0x585648,_0x1aa516);}if(_0x585648 instanceof vt){const _0x1bc780=_0x1ba2ce['get'](_0x585648['root']['rootName']);_0x356dd9[_0x34cd6a]=this['_fixRange'](_0x585648,_0x1bc780);}'root'===_0x34cd6a&&(_0x356dd9['root']=_0x1ba2ce['get'](_0x356dd9['root']['rootName']));}}['_fixRange'](_0x339625,_0x371dda){return this['editor']['model']['createRange'](this['_fixPosition'](_0x339625['start'],_0x371dda),this['_fixPosition'](_0x339625['end'],_0x371dda));}['_fixPosition'](_0x65434b,_0x4f37c0){return this['editor']['model']['createPositionFromPath'](_0x4f37c0,_0x65434b['path'],_0x65434b['stickiness']);}['_handleInsertOperation'](_0x4f1a28){const _0x5483f7=this['_idsRoots']['get'](_0x4f1a28['position']['root']['rootName']),_0x2d9e9b=this['_fixPosition'](_0x4f1a28['position'],_0x5483f7),_0x305a72=null===_0x4f1a28['_authorId']?null:_0x4f1a28['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x51054e=_0x2d9e9b['parent'],_0x9f7095=this['_revisionId'],_0xd498f3=[];for(const _0x5e0035 of _0x4f1a28['nodes'])if(_0x5e0035['is']('element'))_0xd498f3['push'](this['_makeIdsRoot'](_0x5e0035));else{for(let _0x367b92=0x0;_0x367b92<_0x5e0035['offsetSize'];_0x367b92++)_0xd498f3['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x2e549d=this['_revisionId'];for(let _0x5066b8=_0x9f7095;_0x5066b8<_0x2e549d;_0x5066b8++)this['_touched']['set'](_0x5066b8,{'userId':_0x305a72});_0x51054e['_insertChild'](_0x2d9e9b['offset'],_0xd498f3);}['_handleMoveOperation'](_0x3756c3){(_0x3756c3=this['_cloneOperation'](_0x3756c3,this['_idsRoots']))['_execute']();const _0x3c68fb=null===_0x3756c3['_authorId']?null:_0x3756c3['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4d7b58=_0x3756c3['getMovedRangeStart'](),_0x1695f4=_0x4d7b58['parent'],_0x1a3d5e=_0x4d7b58['offset'];!function _0x4c0709(_0xfd4c83,_0x36e653,_0x3c2762,_0x313da4){for(let _0x5279e1=_0x3c2762;_0x5279e1<_0x313da4;_0x5279e1++){const _0x245631=_0x36e653['getChild'](_0x5279e1);_0x245631['is']('element','$text')?_0xfd4c83['set'](_0x245631['getAttribute']('vid'),{'userId':_0x3c68fb}):(_0xfd4c83['set'](_0x245631['getAttribute']('vid_start'),{'userId':_0x3c68fb}),_0x4c0709(_0xfd4c83,_0x245631,0x0,_0x245631['childCount']),_0xfd4c83['set'](_0x245631['getAttribute']('vid_end'),{'userId':_0x3c68fb}));}}(this['_touched'],_0x1695f4,_0x1a3d5e,_0x1a3d5e+_0x3756c3['howMany']);}['_handleMergeOperation'](_0x38dcdd){const _0x330bfc=null===(_0x38dcdd=this['_cloneOperation'](_0x38dcdd,this['_idsRoots']))['_authorId']?null:_0x38dcdd['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x309045=_0x38dcdd['targetPosition']['parent'],_0x137e82=_0x38dcdd['sourcePosition']['parent'],_0x4d94ac=_0x309045['getAttribute']('vid_end'),_0x1315be=_0x137e82['getAttribute']('vid_start');_0x309045['_setAttribute']('vid_end',_0x137e82['getAttribute']('vid_end')),_0x137e82['_setAttribute']('vid_end',_0x4d94ac),this['_touched']['set'](_0x1315be,{'userId':_0x330bfc}),this['_touched']['set'](_0x4d94ac,{'userId':_0x330bfc}),_0x38dcdd['_execute']();}['_handleSplitOperation'](_0x497c6d){const _0x4fa0b0=null===(_0x497c6d=this['_cloneOperation'](_0x497c6d,this['_idsRoots']))['_authorId']?null:_0x497c6d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x23f495=_0x497c6d['graveyardPosition'],_0x598f58=_0x497c6d['splitPosition']['parent'];_0x497c6d['_execute']();const _0x391936=_0x598f58['getAttribute']('vid_end'),_0x5244bb=_0x497c6d['insertionPosition']['nodeAfter'];if(_0x23f495){const _0x6e62fe=_0x5244bb['getAttribute']('vid_end'),_0xa22cc6=_0x598f58['getAttribute']('vid_end');_0x598f58['_setAttribute']('vid_end',_0x6e62fe),_0x5244bb['_setAttribute']('vid_end',_0xa22cc6),this['_touched']['set'](_0x598f58['getAttribute']('vid_end'),{'userId':_0x4fa0b0}),this['_touched']['set'](_0x5244bb['getAttribute']('vid_start'),{'userId':_0x4fa0b0});}else{const _0x4c7e69=this['_revisionId']++,_0x357f7b=this['_revisionId']++;_0x598f58['_setAttribute']('vid_end',_0x4c7e69),_0x5244bb['_setAttribute']('vid_start',_0x357f7b),_0x5244bb['_setAttribute']('vid_end',_0x391936),this['_touched']['set'](_0x4c7e69,{'userId':_0x4fa0b0}),this['_touched']['set'](_0x357f7b,{'userId':_0x4fa0b0});}}['_handleMarkerOperation'](_0x2e1bd0){if(!_0x2e1bd0['affectsData'])return;const _0x551680=(_0x2e1bd0=this['_cloneOperation'](_0x2e1bd0,this['_diffRoots']))['oldRange']?_0x2e1bd0['oldRange']['root']:null,_0x7b88ca=_0x2e1bd0['newRange']?_0x2e1bd0['newRange']['root']:null;_0x551680&&this['_markers']['delete'](_0x2e1bd0['name']),_0x7b88ca&&this['_markers']['set'](_0x2e1bd0['name'],_0x2e1bd0['newRange']['clone']());const _0x2ab48b=null===_0x2e1bd0['_authorId']?null:_0x2e1bd0['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x32dbb8=_0x2e1bd0['name'];if(!this['_touchedMarkers']['has'](_0x32dbb8))return void this['_touchedMarkers']['set'](_0x32dbb8,{'range':_0x2e1bd0['oldRange'],'userId':_0x2ab48b});const _0x21fa8b=this['_touchedMarkers']['get'](_0x32dbb8),_0x173a6c=_0x21fa8b['range'],_0x26ebd4=_0x2e1bd0['newRange'];null==_0x173a6c&&null==_0x26ebd4||_0x173a6c&&_0x26ebd4&&_0x173a6c['isEqual'](_0x26ebd4)?this['_touchedMarkers']['delete'](_0x2e1bd0['name']):_0x21fa8b['userId']=_0x2ab48b;}['_handleRootOperation'](_0x2f8e8e,_0x282cb9){this['_diffRoots']['has'](_0x2f8e8e['rootName'])?this['_diffRoots']['get'](_0x2f8e8e['rootName'])['_isAttached']=_0x2f8e8e['isAdd']:(this['_diffRoots']['set'](_0x2f8e8e['rootName'],F(_0x2f8e8e['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x2f8e8e['rootName'],{}),_0x282cb9&&this['_idsRoots']['set'](_0x2f8e8e['rootName'],F(_0x2f8e8e['rootName'],!0x0)));const _0x48d3c3=null===_0x2f8e8e['_authorId']?null:_0x2f8e8e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x255ca5=this['_touchedRoots']['get'](_0x2f8e8e['rootName']);_0x255ca5&&_0x255ca5['userId']===_0x48d3c3?this['_touchedRoots']['delete'](_0x2f8e8e['rootName']):this['_touchedRoots']['set'](_0x2f8e8e['rootName'],{'userId':_0x48d3c3,'isAttached':_0x2f8e8e['isAdd']});}['_handleRootAttributeOperation'](_0x46bbaf){const _0x251c18=this['_diffRootsAttributes']['get'](_0x46bbaf['root']['rootName']);null===_0x46bbaf['newValue']?delete _0x251c18[_0x46bbaf['key']]:_0x251c18[_0x46bbaf['key']]=_0x46bbaf['newValue'];}}function T(_0x35ea8b){const _0x5df522=F(_0x35ea8b['rootName'],_0x35ea8b['isAttached']());for(const _0x3f839e of _0x35ea8b['getChildren']()){const _0x3dee7f=_0x3f839e['_clone'](!0x0);_0x5df522['_appendChild'](_0x3dee7f);}return _0x5df522;}function F(_0x1771ed,_0x3ed0fc=!0x0){const _0x6c1a46=new mt();return _0x6c1a46['rootName']=_0x1771ed,_0x6c1a46['_isAttached']=_0x3ed0fc,_0x6c1a46['isAttached']=()=>_0x6c1a46['_isAttached'],_0x6c1a46;}function B(_0x488f06,_0x108845,_0x4998d0){const _0x3755c8='elementEnd'==_0x488f06['type']?_0x4998d0['createPositionAt'](_0x488f06['item'],'end'):_0x4998d0['createPositionBefore'](_0x488f06['item']);return _0x4998d0['createPositionFromPath'](_0x108845,_0x3755c8['path'],_0x3755c8['stickiness']);}function J(_0x53ee7f,_0x21a65d,_0x157dc5){const _0x499b8c='elementStart'==_0x53ee7f['type']?_0x157dc5['createPositionAt'](_0x53ee7f['item'],0x0):_0x157dc5['createPositionAfter'](_0x53ee7f['item']);return _0x157dc5['createPositionFromPath'](_0x21a65d,_0x499b8c['path'],_0x499b8c['stickiness']);}class ns extends _0x25ec7b{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x55abc0,_0x3d76cb){super(_0x55abc0),this['focusTracker']=new _0x236bea(),this['keystrokes']=new _0x2065d8(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x3d76cb),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'](),_0x56c4e3({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x13d158=_0x629679=>_0x629679['stopPropagation']();this['keystrokes']['set']('arrowright',_0x13d158),this['keystrokes']['set']('arrowleft',_0x13d158),this['keystrokes']['set']('arrowup',_0x13d158),this['keystrokes']['set']('arrowdown',_0x13d158);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x169109){this['revisionNameInputView']['fieldView']['element']['value']=_0x169109['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x2d5a21){const _0x573e96=new nt(this['locale'],_0x197e2c),_0x2eac56=_0x573e96['fieldView'];_0x2eac56['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x2318c6=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x2d5a21&&(_0x2318c6+='\x20('+m(this['locale'],'optional')+')'),(_0x573e96['label']=_0x2318c6,_0x2eac56['on']('input',()=>{this['revisionNameInputValue']=_0x2eac56['element']['value']['trim']();}),_0x573e96);}}class u extends _0x4302a3{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x417191=this['editor'],_0x3b06cd=_0x417191['plugins']['get']('RevisionTracker');_0x417191['ui']['componentFactory']['add']('revisionHistory',_0x1ead72=>{const _0x3b3c58=_0x5c973c(_0x1ead72),_0x3cd322=_0x3b3c58['panelView']['children'],_0x57c9ee=new te(_0x1ead72),_0x577e40=new _0x1b8f07(_0x1ead72),_0x1e38e8=new _0x5c3975(_0x1ead72),_0x2fade4=new _0x1b8f07(_0x1ead72),_0x23639e=new _0x5c3975(_0x1ead72);return _0x3b3c58['bind']('isEnabled')['to'](_0x3b06cd,'isReady',_0x3b06cd,'isEnabled',_0x417191,'isReadOnly',(_0x3197d9,_0x10a95f,_0x2cdbe3)=>_0x3197d9&&_0x10a95f&&!_0x2cdbe3),_0x3b3c58['buttonView']['set']({'icon':_0x2eec3c['history'],'label':m(_0x1ead72,'Revision\x20history'),'tooltip':!0x0}),_0x1e38e8['set']({'label':m(_0x1ead72,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x1e38e8['bind']('isEnabled')['to'](_0x3b06cd,'isReady',_0x3b06cd,'isEnabled',_0x417191,'isReadOnly',(_0x4eca78,_0x2c2657,_0x487202)=>_0x4eca78&&_0x2c2657&&!_0x487202),_0x1e38e8['on']('execute',()=>this['_showDialog']()),_0x23639e['set']({'label':m(_0x1ead72,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x23639e['bind']('isEnabled')['to'](_0x3b06cd,'isReady',_0x417191,'isReadOnly',(_0x1fc59d,_0x31e362)=>_0x1fc59d&&!_0x31e362),_0x23639e['on']('execute',()=>{_0x417191['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x3b3c58['isOpen']=!0x1,_0x417191['editing']['view']['focus']();}),_0x577e40['children']['add'](_0x1e38e8),_0x2fade4['children']['add'](_0x23639e),_0x57c9ee['role']='menu',_0x57c9ee['items']['addMany']([_0x577e40,_0x2fade4]),_0x3cd322['add'](_0x57c9ee),_0x3b3c58;}),_0x417191['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x5d069b=this['editor'],_0xbc5564=_0x5d069b['locale'],_0x2b7e06=new _0x400ec2(_0xbc5564),_0x1c1869=new _0x372532(_0xbc5564);_0x2b7e06['buttonView']['set']({'icon':_0x2eec3c['history'],'label':m(_0xbc5564,'Revision\x20history')});const _0x288a92=new _0x191a22(_0xbc5564,_0x2b7e06),_0x1fe862=new _0x1323dc(_0xbc5564);_0x1fe862['set']({'label':m(_0xbc5564,'Save\x20current\x20revision')}),_0x1fe862['delegate']('execute')['to'](_0x2b7e06),_0x1fe862['on']('execute',()=>{this['_showDialog']();}),_0x288a92['children']['add'](_0x1fe862),_0x1c1869['items']['add'](_0x288a92);const _0x1ec53c=new _0x191a22(_0xbc5564,_0x2b7e06),_0x49920b=new _0x1323dc(_0xbc5564);return _0x49920b['set']({'label':m(_0xbc5564,'Open\x20revision\x20history')}),_0x49920b['delegate']('execute')['to'](_0x2b7e06),_0x49920b['on']('execute',()=>{_0x5d069b['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x1ec53c['children']['add'](_0x49920b),_0x1c1869['items']['add'](_0x1ec53c),_0x2b7e06['panelView']['children']['add'](_0x1c1869),_0x2b7e06;}['_showDialog'](){const _0x818594=this['editor'],_0x53fc0b=_0x818594['locale'],_0x3919a3=_0x818594['plugins']['get']('Dialog'),_0x2dc1b9=_0x818594['plugins']['get']('RevisionTracker');function _0x40ebc7(_0x1a617d){_0x818594['config']['get']('revisionHistory.requireRevisionName')&&''===_0x1a617d['revisionName']?_0x1a617d['revisionNameInputView']['errorText']=m(_0x53fc0b,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x818594['plugins']['get'](l)['saveRevision']({'name':_0x1a617d['revisionName']}),_0x3919a3['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x40ebc7(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x3919a3['show']({'id':'revisionSave','title':m(_0x53fc0b,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x818594['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x3919a3['hide']()},{'label':m(_0x818594['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x4cfe69){_0x4cfe69['bind']('isEnabled')['to'](_0x2dc1b9,'isReady',_0x2dc1b9,'isEnabled',_0x818594,'isReadOnly',(_0x28a4b1,_0x3e0bb2,_0x558978)=>_0x28a4b1&&_0x3e0bb2&&!_0x558978);},'onExecute':()=>_0x40ebc7(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x16b763=this['editor'],_0x57a83c=_0x16b763['locale'];this['_saveRevisionFormView']=new ns(_0x57a83c,_0x16b763['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0x25ec7b{['changeId'];['_model'];constructor(_0x25dc10,_0x3d0244){super(_0x25dc10),this['_model']=_0x3d0244,this['changeId']=_0x3d0244['id'];const _0x7460a3=this['bindTemplate'],_0x20f9e5=m(_0x25dc10,_0x3d0244['data']['isSuggestion']?'Suggested\x20by':'add'==_0x3d0244['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x3d0244['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x7460a3['to']('type',_0x588794=>'ck-revision-change__'+_0x588794)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x20f9e5}]},{'text':'\x20'+_0x3d0244['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x3bce82(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x440f50){super(),this['id']=_0x440f50['id']||_0x584392(),this['author']=_0x440f50['author'],this['type']=_0x440f50['type'],this['data']=_0x440f50['data']||{},this['rootName']=_0x440f50['rootName'],this['set']('createdAt',_0x440f50['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(_0x380b69,_0x51dace){this['newRevisionId']=_0x380b69,this['oldRevisionId']=_0x51dace,this['changes']=new _0x3d99fd();}['_setChanges'](_0x5f1e0a){for(const _0x381a68 of _0x5f1e0a)this['changes']['add'](_0x381a68);}}const Y={'c':_0x5b9de2,'a':_0x522ae0,'e':_0x430ab3,'r':_0x17b6b4,'u':_0x55f020};class d extends _0x4302a3{['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[_0x52611a,_0x4a67bc,j];}constructor(_0x20d45b){super(_0x20d45b),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',(_0x5bf967,_0x447a80,_0x3251a3)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x50c75d=>{for(const _0x1ff8e1 of this['editor']['editing']['view']['document']['roots'])_0x3251a3?_0x50c75d['removeClass']('ck-editor__editable__overlay',_0x1ff8e1):_0x50c75d['addClass']('ck-editor__editable__overlay',_0x1ff8e1);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x125ea3=>null!==_0x125ea3),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x44a327,_0x4cbb31,_0x9727c7)=>_0x44a327&&_0x9727c7?_0x4cbb31['changes']['getIndex'](_0x9727c7):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x47b78f,_0x1deea0)=>_0x47b78f?_0x1deea0['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x4a67bc);}['init'](){const _0x88250e=this['editor'],_0x1e86f9=new yt(_0x88250e,{'direction':'backward'}),_0x3db297=new yt(_0x88250e,{'direction':'forward'});(_0x88250e['commands']['add']('showPreviousChange',_0x1e86f9),_0x88250e['commands']['add']('showNextChange',_0x3db297),_0x88250e['commands']['add']('restoreRevision',new _t(_0x88250e)),this['on']('change:numberOfChanges',()=>{_0x1e86f9['refresh'](),_0x3db297['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x88250e['enableReadOnlyMode']('revision-viewer'),_0x88250e['plugins']['has']('WidgetToolbarRepository'))&&_0x88250e['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x491dfd){await this['loadRevisionData'](_0x491dfd);const _0x5d5808={};for(const _0x1ee652 in _0x491dfd['diffData']){if(_0x491dfd['diffData'][_0x1ee652]['attachChange']&&!_0x491dfd['diffData'][_0x1ee652]['attachChange']['isAttached'])continue;const _0x1d8c03=this['_removeRevisionMarkers'](JSON['parse'](_0x491dfd['diffData'][_0x1ee652]['insertions'])),_0x357b84=this['editor']['editing']['view']['document'],_0x1f4195=new _0x5848a3(_0x357b84,_0x1d8c03['map'](_0x1cd47e=>this['_getViewObj'](_0x1cd47e)));this['editor']['data']['processor']['useFillerType']('marked'),_0x5d5808[_0x1ee652]=this['editor']['data']['processor']['toData'](_0x1f4195),this['editor']['data']['processor']['useFillerType']('default');}return _0x5d5808;}async['getRevisionRootsAttributes'](_0x986aef){await this['loadRevisionData'](_0x986aef);const _0x2972af={};for(const _0x4f4e24 in _0x986aef['diffData'])_0x986aef['diffData'][_0x4f4e24]['attachChange']&&!_0x986aef['diffData'][_0x4f4e24]['attachChange']['isAttached']||(_0x2972af[_0x4f4e24]=_0x986aef['diffData'][_0x4f4e24]['attributesAfter']||{});return _0x2972af;}['_removeRevisionMarkers'](_0x38d83d){return(_0x38d83d=_0x38d83d['filter'](_0x38a7d3=>!_0x38a7d3['name']||'revision-start'!==_0x38a7d3['name']&&'revision-end'!==_0x38a7d3['name']))['forEach'](_0xcb9067=>{'string'!=typeof _0xcb9067&&(_0xcb9067['children']=this['_removeRevisionMarkers'](_0xcb9067['children']),_0xcb9067['attributes']=_0xcb9067['attributes']['filter'](_0x1525fd=>!_0x1525fd[0x0]['startsWith']('data-revision-')));}),_0x38d83d;}async['compare'](_0x3208b5,_0x28d7d7,_0x5c5a05=!0x1){if(!this['isEnabled'])return;const _0x14fd57=this['diff'],_0x3ea705=this['repository'],_0x5a5698='string'==typeof _0x3208b5?_0x3ea705['getRevision'](_0x3208b5):_0x3208b5,_0x46d7d2='string'==typeof _0x28d7d7?_0x3ea705['getRevision'](_0x28d7d7):_0x28d7d7,_0x577c72=_0x5a5698['id'],_0x24c623=_0x46d7d2?_0x46d7d2['id']:null;if(!_0x5c5a05&&this['diff']&&this['diff']['newRevisionId']===_0x577c72&&this['diff']['oldRevisionId']===_0x24c623)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x577c72,_0x24c623);const _0x4e7df1=this['_getRevisionsRange'](_0x5a5698,_0x46d7d2,!0x0)['map'](_0x82a337=>this['loadRevisionData'](_0x82a337));return _0x4e7df1['push'](new Promise(_0x2bc9a9=>{setTimeout(_0x2bc9a9,0x14);})),Promise['all'](_0x4e7df1)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x5890e1=this['_getDiff'](_0x577c72,_0x24c623);for(const _0x468e10 of _0x5890e1['changes'])this['_changeIdToChange']['set'](_0x468e10['id'],_0x468e10);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x19b65a=>{for(const _0x290e9e of this['editor']['model']['document']['getRootNames']())_0x19b65a['detachRoot'](_0x290e9e);for(const _0x2de40c of Object['keys'](_0x5890e1['model'])){const _0x44f7b4=_0x19b65a['addRoot'](_0x2de40c);for(const _0xd29e1d of Object['keys'](_0x5890e1['attributes'][_0x2de40c]))_0x19b65a['setAttribute'](_0xd29e1d,_0x5890e1['attributes'][_0x2de40c][_0xd29e1d],_0x44f7b4);_0x19b65a['insert'](_0x5890e1['model'][_0x2de40c],_0x44f7b4,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x5890e1['changes'])),this['isReady']=!0x0;})['catch'](_0x97c754=>{console['error'](_0x97c754),this['_cleanUp'](),_0x14fd57&&(this['diff']=_0x14fd57),this['isReady']=!0x0;});}['addRevisionData'](_0x4e9b6e,_0x4a490d){const _0x862325=this['repository']['createRevision'](_0x4e9b6e);return _0x862325['on']('_update',(_0x184d61,_0x6de9a,_0x3291bb)=>_0x4a490d(_0x6de9a,_0x3291bb,_0x862325)),this['repository']['addRevision'](_0x862325),_0x862325;}['loadRevisionData'](_0x5410f2){if(!_0x5410f2||_0x5410f2['diffData'])return Promise['resolve']();{const _0x5cdc6e=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x5cdc6e,'revisionId':_0x5410f2['id']})['then'](_0x49749e=>{_0x5410f2['_update']({'diffData':_0x49749e['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},_0x3252f5=>{for(const _0x3a1c2f of this['editor']['model']['document']['getRootNames']())_0x3252f5['detachRoot'](_0x3a1c2f);});}['_sortAndFilterDiffChanges'](_0x3e9eee){const _0x1fd54f=[],_0x1c95ec=new Map();for(const _0x1b7ba8 of this['editor']['model']['document']['getRootNames']()){const _0x300304=this['editor']['editing']['view']['getDomRoot'](_0x1b7ba8);if(!_0x300304)continue;const _0x1f6563=_0x300304['getClientRects']()['item'](0x0);_0x1f6563&&(_0x1fd54f['push'](_0x1b7ba8),_0x1c95ec['set'](_0x1b7ba8,_0x1f6563));}return _0x1fd54f['sort']((_0x3ce887,_0x32dc1b)=>{const _0x40aada=_0x1c95ec['get'](_0x3ce887),_0x2fa98a=_0x1c95ec['get'](_0x32dc1b);return _0x40aada['y']-_0x2fa98a['y']||_0x40aada['x']-_0x2fa98a['x'];}),(_0x3e9eee=_0x3e9eee['filter'](_0x443698=>_0x1fd54f['includes'](_0x443698['rootName'])))['sort']((_0x4043fb,_0x13c033)=>_0x1fd54f['indexOf'](_0x4043fb['rootName'])-_0x1fd54f['indexOf'](_0x13c033['rootName'])),_0x3e9eee;}['_makeTape'](_0x320ca6){const _0x17dd75=Array['from'](_0x320ca6['markers'])['filter'](([_0x5d5d50,_0x20eed6])=>_0x5d5d50['startsWith']('revision:')&&!_0x20eed6['isCollapsed']),_0x1160a0=Array['from'](this['editor']['model']['createRangeIn'](_0x320ca6)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x17dd75['length'])for(const _0x46a857 of _0x1160a0){const [_0x5f1845,_0x4c4d20]=_0x17dd75[0x0],[,_0x2deb62,_0x5c8476]=_0x5f1845['split'](':');if(_0x4c4d20['end']['isEqual'](_0x46a857['nextPosition'])&&_0x17dd75['shift'](),(_0x46a857['previousPosition']['isEqual'](_0x4c4d20['start'])||_0x46a857['previousPosition']['isAfter'](_0x4c4d20['start']))&&('insertion'==_0x2deb62?_0x46a857['isAdded']={'userId':_0x5c8476}:'deletion'==_0x2deb62&&(_0x46a857['isRemoved']={'userId':_0x5c8476})),0x0==_0x17dd75['length'])break;}return _0x1160a0;}['_refreshStartEndIndex'](_0x5d1a24){const _0x59a66c=new Map();for(let _0x1249cd=0x0;_0x1249cd<_0x5d1a24['length'];_0x1249cd++)'text'===_0x5d1a24[_0x1249cd]['type']?(_0x5d1a24[_0x1249cd]['item']['startIndex']=_0x1249cd,_0x5d1a24[_0x1249cd]['item']['endIndex']=_0x1249cd):('elementStart'===_0x5d1a24[_0x1249cd]['type']?_0x5d1a24[_0x1249cd]['item']['startIndex']=_0x1249cd:'elementEnd'===_0x5d1a24[_0x1249cd]['type']&&(_0x5d1a24[_0x1249cd]['item']['endIndex']=_0x1249cd),_0x59a66c['set'](_0x5d1a24[_0x1249cd]['id'],_0x1249cd));for(const _0x52b9f0 of _0x59a66c['values']())'elementStart'===_0x5d1a24[_0x52b9f0]['type']?_0x5d1a24[_0x52b9f0]['item']['endIndex']=_0x59a66c['get'](_0x5d1a24[_0x52b9f0]['pairId']):'elementEnd'===_0x5d1a24[_0x52b9f0]['type']&&(_0x5d1a24[_0x52b9f0]['item']['startIndex']=_0x59a66c['get'](_0x5d1a24[_0x52b9f0]['pairId']));}['_processTape'](_0x33b3c5){for(let _0xd4ae1a=0x0;_0xd4ae1a<_0x33b3c5['length'];_0xd4ae1a++){if('elementStart'===_0x33b3c5[_0xd4ae1a]['type'])_0x33b3c5[_0xd4ae1a]['item']['startIndex']=_0xd4ae1a;else{if('elementEnd'===_0x33b3c5[_0xd4ae1a]['type']){_0x33b3c5[_0xd4ae1a]['item']['endIndex']=_0xd4ae1a;const _0x459be2=_0x33b3c5[_0xd4ae1a]['item']['startIndex'];_0x33b3c5[_0x459be2]['pairId']=_0x33b3c5[_0xd4ae1a]['id'],_0x33b3c5[_0xd4ae1a]['pairId']=_0x33b3c5[_0x459be2]['id'];}else _0x33b3c5[_0xd4ae1a]['item']['startIndex']=_0xd4ae1a,_0x33b3c5[_0xd4ae1a]['item']['endIndex']=_0xd4ae1a,_0x33b3c5[_0xd4ae1a]['pairId']=null;}_0x33b3c5[_0xd4ae1a]['markersStart']||(_0x33b3c5[_0xd4ae1a]['markersStart']=[],_0x33b3c5[_0xd4ae1a]['markersEnd']=[]);}}['_markInsertions'](_0x23aad9,_0x3119a1){const _0x5b0395=_0x23aad9['filter'](_0x5bdff1=>!_0x5bdff1['isAdded']);for(let _0x39cb65=0x0;_0x39cb65<_0x3119a1['length'];_0x39cb65++)_0x3119a1[_0x39cb65]['isAdded']&&(_0x5b0395[_0x39cb65]['isAdded']=_0x3119a1[_0x39cb65]['isAdded']);}['_makeModelFromViewString'](_0x2f0c79){const _0x10d554=JSON['parse'](_0x2f0c79),_0x1256d7=this['editor']['editing']['view']['document'],_0x19c0a5=new _0x5848a3(_0x1256d7,_0x10d554['map'](_0x3dc7da=>this['_getViewObj'](_0x3dc7da)));return this['editor']['data']['toModel'](_0x19c0a5);}['_getViewObj'](_0x4f72be){const _0x48d250=this['editor']['editing']['view']['document'];if('string'==typeof _0x4f72be)return new _0x4b2d94(_0x48d250,_0x4f72be);{const _0x3ef983=_0x4f72be['children']['map'](_0x3a5ff8=>this['_getViewObj'](_0x3a5ff8));return new(Y[_0x4f72be['type']]||_0x3ecfdc)(_0x48d250,_0x4f72be['name'],_0x4f72be['attributes'],_0x3ef983);}}['_getDiff'](_0x32533d,_0x3bc5a9=null){const _0x3bb203=this['repository']['getRevision'](_0x32533d),_0x1dbfa0=_0x3bc5a9?this['repository']['getRevision'](_0x3bc5a9):null,_0x3774f1=this['_getRevisionsRange'](_0x3bb203,_0x1dbfa0),_0xb9202a=_0x3774f1[_0x3774f1['length']-0x1],_0x25a73b=new Map(),_0x2bf15b={'model':{},'attributes':{},'changes':[]},_0x121bf8=new Set(),_0x2db701=new Map();for(let _0x1404f8=_0x3774f1['length']-0x1;_0x1404f8>=0x0;_0x1404f8--){const _0x8fc21c=_0x3774f1[_0x1404f8];for(const _0x201e09 of Object['keys'](_0x8fc21c['diffData']))if(_0x8fc21c['diffData'][_0x201e09]['attachChange']){const _0x285aa4=_0x8fc21c['diffData'][_0x201e09]['attachChange'];_0x285aa4['isAttached']?(_0x121bf8['add'](_0x201e09),_0x2db701['has'](_0x201e09)&&_0x2db701['get'](_0x201e09)['userId']==_0x285aa4['userId']?_0x2db701['delete'](_0x201e09):_0x2db701['set'](_0x201e09,_0x285aa4)):_0x2db701['has'](_0x201e09)?(_0x121bf8['delete'](_0x201e09),_0x2db701['delete'](_0x201e09)):(_0x121bf8['add'](_0x201e09),_0x2db701['set'](_0x201e09,_0x285aa4));}else _0x121bf8['add'](_0x201e09);}for(const _0x2d8aa9 of _0x121bf8){const _0x39279d=_0x2db701['has'](_0x2d8aa9)&&!_0x2db701['get'](_0x2d8aa9)['isAttached'];let _0x3908db=_0x39279d?_0x3774f1['length']-0x1:0x0;const _0x51273c=_0x39279d?-0x1:0x1;for(;_0x3774f1[_0x3908db];){const _0x1828d0=_0x3774f1[_0x3908db];if(_0x1828d0['diffData'][_0x2d8aa9]){const _0x4ad7b7=_0x39279d?_0x1828d0['diffData'][_0x2d8aa9]['attributesBefore']:_0x1828d0['diffData'][_0x2d8aa9]['attributesAfter'];_0x2bf15b['attributes'][_0x2d8aa9]=_0x4ad7b7?_0x307744(_0x4ad7b7):{};break;}_0x3908db+=_0x51273c;}}for(const _0x14e16f of _0x3774f1){_0x14e16f['model']={};for(const _0x36065e of _0x14e16f['authors'])_0x25a73b['set'](_0x36065e['id'],_0x36065e);for(const _0x5a6c95 of _0x121bf8){const _0x514a05=_0x14e16f['diffData'][_0x5a6c95]?_0x14e16f['diffData'][_0x5a6c95]['insertions']:'[]',_0x535022=_0x14e16f['diffData'][_0x5a6c95]?_0x14e16f['diffData'][_0x5a6c95]['deletions']:'[]';_0x14e16f['model'][_0x5a6c95]={'insertions':this['_makeModelFromViewString'](_0x514a05),'deletions':this['_makeModelFromViewString'](_0x535022)};}}for(const _0x4d46bf of _0x121bf8){let _0x35dd2a=null,_0x5842c3=0x0;const _0x15cb94=new Map(Array['from'](_0x3bb203['model'][_0x4d46bf]['insertions']['markers'])['filter'](([_0x1dc003])=>!_0x1dc003['startsWith']('revision:')));let _0x3ce7ea=0x0;for(const _0x3ba8ac of _0x3774f1){const _0x299e90=this['_makeTape'](_0x3ba8ac['model'][_0x4d46bf]['insertions']);_0x3ba8ac==_0x3bb203?(_0x35dd2a=_0x299e90,_0x5842c3=_0x35dd2a['length'],_0x35dd2a['forEach'](_0x5efb5d=>{_0x5efb5d['id']=_0x3ce7ea++;}),this['_processTape'](_0x35dd2a)):this['_markInsertions'](_0x35dd2a,_0x299e90);const _0x4a587c=_0x35dd2a['filter'](_0x36fe14=>!_0x36fe14['isAdded'])['map'](_0x86b0=>_0x86b0['id']);let _0x4540da=0x0;const _0x210e6d=this['_makeTape'](_0x3ba8ac['model'][_0x4d46bf]['deletions']);_0x210e6d['forEach'](_0x5bbdba=>{_0x5bbdba['isRemoved']?_0x5bbdba['id']=_0x5842c3++:_0x5bbdba['id']=_0x4a587c[_0x4540da++];}),this['_processTape'](_0x210e6d),this['_setDistance'](_0x35dd2a,'isAdded'),this['_setDistance'](_0x210e6d,'isRemoved'),_0x3ba8ac==_0x3bb203&&this['_markMarkers'](_0x35dd2a,_0x15cb94),_0x35dd2a=this['_joinTapes'](_0x35dd2a,_0x210e6d),this['_refreshStartEndIndex'](_0x35dd2a),this['_setDistance'](_0x35dd2a,'isRemoved');}_0x35dd2a=_0x35dd2a['filter'](_0x519653=>!(_0x519653['isAdded']&&_0x519653['isRemoved']));const _0x116f3f=new Map(_0xb9202a['model'][_0x4d46bf]['deletions']['markers']),_0x25825a=new Set(_0x15cb94['keys']());for(const _0x44902d of _0x116f3f['keys']())_0x25825a['delete'](_0x44902d);this['_markSuggestions'](_0x35dd2a,_0x25825a),this['_fixObsoleteTags'](_0x35dd2a),_0x35dd2a=this['_removeMissingPairs'](_0x35dd2a),_0x35dd2a=this['_markMismatchedRemovedTags'](_0x35dd2a),_0x35dd2a=this['_removeUnsupportedChanges'](_0x35dd2a);const {root:_0x66ad1d,changes:_0x544006}=this['_makeModelFromTape'](_0x35dd2a,_0x25a73b,_0x4d46bf);_0x2bf15b['model'][_0x4d46bf]=_0x66ad1d;const _0x5abe46=_0x2db701['get'](_0x4d46bf);if(_0x5abe46){const _0x4803e3=_0x25a73b['get'](_0x5abe46['userId']),_0x24c808=new r({'author':_0x4803e3,'type':_0x5abe46['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x4d46bf});_0x544006['unshift'](_0x24c808),_0x2bf15b['attributes'][_0x4d46bf]['revisionHistoryAttachChange']=_0x24c808['id'];}_0x2bf15b['changes']=_0x2bf15b['changes']['concat'](_0x544006);}return _0x2bf15b;}['_markMarkers'](_0x13d295,_0x2ffe3c){for(let _0x4a5a49=0x0;_0x4a5a49<_0x13d295['length'];_0x4a5a49++)for(const [_0x259b0d,_0x3bddc1]of _0x2ffe3c)_0x3bddc1['start']['isEqual'](_0x13d295[_0x4a5a49]['previousPosition'])&&_0x13d295[_0x4a5a49]['markersStart']['push'](_0x259b0d),_0x3bddc1['end']['isEqual'](_0x13d295[_0x4a5a49]['nextPosition'])&&_0x13d295[_0x4a5a49]['markersEnd']['push'](_0x259b0d);}['_joinTapes'](_0x22891b,_0x46cb7c){let _0x3a1ba2=[],_0x55defe=0x0,_0x1531e4=0x0;for(;_0x55defe<_0x22891b['length']||_0x1531e4<_0x46cb7c['length'];){const _0x514cf7=_0x22891b[_0x55defe]||{},_0x259a69=_0x46cb7c[_0x1531e4]||{};if(_0x514cf7['id']==_0x259a69['id'])_0x55defe++,_0x1531e4++,_0x3a1ba2['push'](_0x514cf7);else{if(_0x259a69['isRemoved']&&_0x514cf7['isAdded']){const {commonTape:_0x2132bb,iEnd:_0x40f4a9,jEnd:_0x14833d}=this['_threeWayMerge'](_0x22891b,_0x55defe,_0x46cb7c,_0x1531e4);_0x3a1ba2=_0x3a1ba2['concat'](_0x2132bb),_0x55defe=_0x40f4a9,_0x1531e4=_0x14833d;}else _0x259a69['isRemoved']?(_0x1531e4++,_0x3a1ba2['push'](_0x259a69)):(_0x55defe++,_0x3a1ba2['push'](_0x514cf7));}}return _0x3a1ba2;}['_markSuggestions'](_0x2a08c7,_0x108873){const _0x585c47=[];for(let _0x189bde=0x0;_0x189bde<_0x2a08c7['length'];_0x189bde++){for(let _0x10f73f=0x0;_0x10f73f<_0x2a08c7[_0x189bde]['markersStart']['length'];_0x10f73f++){const _0x504cc9=_0x2a08c7[_0x189bde]['markersStart'][_0x10f73f];if(!_0x108873['has'](_0x504cc9))continue;const {group:_0x5ca303,type:_0x189608,authorId:_0xd373dd}=_0x44a0dc(_0x504cc9);'revision-suggestion'!=_0x5ca303||'insertion'!=_0x189608&&'deletion'!=_0x189608||(_0x585c47['unshift']({'type':_0x189608,'name':_0x504cc9,'userId':_0xd373dd}),_0x2a08c7[_0x189bde]['markersStart']['splice'](_0x10f73f,0x1),_0x10f73f--);}_0x5eb26b(_0x2a08c7[_0x189bde]);for(let _0x2d4460=0x0;_0x2d4460<_0x2a08c7[_0x189bde]['markersEnd']['length'];_0x2d4460++){const _0x3029a1=_0x2a08c7[_0x189bde]['markersEnd'][_0x2d4460];if(!_0x108873['has'](_0x3029a1))continue;const {group:_0x3f1317,type:_0x16e535}=_0x44a0dc(_0x3029a1);if('revision-suggestion'!=_0x3f1317||'insertion'!=_0x16e535&&'deletion'!=_0x16e535)continue;_0x2a08c7[_0x189bde]['markersEnd']['splice'](_0x2d4460,0x1),_0x2d4460--;const _0x30c4de=_0x585c47['findIndex'](_0x2b46b5=>_0x2b46b5['name']==_0x3029a1);_0x30c4de>-0x1&&_0x585c47['splice'](_0x30c4de,0x1);}}function _0x44a0dc(_0x1cc1eb){const _0x175087=_0x1cc1eb['split'](':');return{'group':_0x175087[0x0],'type':_0x175087[0x1],'subType':_0x175087['length']>=0x5?_0x175087[0x2]:null,'id':_0x175087['length']<0x5?_0x175087[0x2]:_0x175087[0x3],'authorId':_0x175087['length']<0x5?_0x175087[0x3]:_0x175087[0x4],'markerCount':0x6==_0x175087['length']?_0x175087[0x5]:null};}function _0x5eb26b(_0x60ac1){for(let _0x365d24=0x0;_0x365d24<_0x585c47['length'];_0x365d24++){if(_0x60ac1['isAdded']&&'insertion'==_0x585c47[_0x365d24]['type'])return _0x60ac1['isAddSuggestion']=_0x585c47[_0x365d24],void delete _0x60ac1['isAdded'];if(!_0x60ac1['isAdded']&&!_0x60ac1['isRemoved']&&'deletion'==_0x585c47[_0x365d24]['type'])return void(_0x60ac1['isRemoveSuggestion']=_0x585c47[_0x365d24]);}}}['_setDistance'](_0x570d55,_0x4f852a){let _0x5d7978=0x0,_0x1f580a=!0x1;const _0x3619e8=new Map();for(const _0x16306e of _0x570d55)_0x16306e[_0x4f852a]?_0x1f580a&&(_0x5d7978++,_0x1f580a=!0x1):(_0x5d7978++,_0x1f580a=!0x0),_0x3619e8['set'](_0x16306e['id'],_0x5d7978);for(let _0x15fa7b=0x0;_0x15fa7b<_0x570d55['length'];_0x15fa7b++){if('isRemoved'==_0x4f852a&&_0x570d55[_0x15fa7b]['isAdded']||'isAdded'==_0x4f852a&&_0x570d55[_0x15fa7b]['isRemoved'])continue;if('text'==_0x570d55[_0x15fa7b]['type']){_0x570d55[_0x15fa7b]['distance']=0x0;continue;}const _0x2a8b7a=_0x3619e8['get'](_0x570d55[_0x15fa7b]['pairId']),_0xbf60b0=_0x3619e8['get'](_0x570d55[_0x15fa7b]['id']);_0x570d55[_0x15fa7b]['distance']=_0x2a8b7a-_0xbf60b0;}}['_getRevisionsRange'](_0x2addbe,_0x480518,_0x16f9aa=!0x1){const _0x59781f=[];let _0xc330f3=this['repository']['getIndex'](_0x2addbe),_0x51252c=this['repository']['getIndex'](_0x480518);for(-0x1==_0x51252c&&(_0x51252c=this['repository']['_revisions']['length'],_0x16f9aa=!0x1);_0xc330f3<_0x51252c;)_0x59781f['push'](this['repository']['getRevision'](_0xc330f3)),_0xc330f3++;return _0x16f9aa&&_0x59781f['push'](this['repository']['getRevision'](_0xc330f3)),_0x59781f;}['_threeWayMerge'](_0x154fa9,_0x50f6c6,_0x1f8309,_0x5e2073){const _0x363dca=this['editor']['model']['schema'];let _0x3729b5=_0x50f6c6;for(;_0x154fa9[_0x3729b5]&&_0x154fa9[_0x3729b5]['isAdded'];)_0x3729b5++;let _0x5c1222=_0x5e2073;for(;_0x1f8309[_0x5c1222]&&_0x1f8309[_0x5c1222]['isRemoved'];)_0x5c1222++;_0x8849ec(_0x154fa9,_0x50f6c6,_0x3729b5),_0x8849ec(_0x1f8309,_0x5e2073,_0x5c1222);const _0x42a0c5=_0x1f8309['slice'](_0x5e2073,_0x5c1222)['concat'](_0x154fa9['slice'](_0x50f6c6,_0x3729b5));return _0x42a0c5['sort']((_0x129445,_0x1a0e61)=>_0x129445['side']!=_0x1a0e61['side']?_0x129445['side']-_0x1a0e61['side']:_0x129445['level']!=_0x1a0e61['level']?_0x129445['level']-_0x1a0e61['level']:_0x129445['distance']!=_0x1a0e61['distance']?_0x1a0e61['distance']-_0x129445['distance']:!!_0x129445['isAdded']!=!!_0x1a0e61['isAdded']?-0x1==_0x129445['side']||0x0==_0x129445['side']?_0x129445['isAdded']?-0x1:0x1:_0x129445['isAdded']?0x1:-0x1:_0x129445['index']-_0x1a0e61['index']),{'commonTape':_0x42a0c5,'iEnd':_0x3729b5,'jEnd':_0x5c1222};function _0x8849ec(_0x2e84cd,_0x2f982e,_0x286883){let _0xe50568=-0x1,_0x16179b=Number['POSITIVE_INFINITY'],_0xd6b313=!0x0;for(let _0x4b8552=_0x2f982e;_0x4b8552<_0x286883;_0x4b8552++)if(_0x363dca['isInline'](_0x2e84cd[_0x4b8552]['item'])||(_0xd6b313=!0x1),_0x2e84cd[_0x4b8552]['item']['startIndex']<_0x2f982e&&(_0xe50568=_0x4b8552),_0x2e84cd[_0x4b8552]['item']['endIndex']>=_0x286883){_0x16179b=_0x4b8552;break;}_0xd6b313&&(_0xe50568=_0x286883-0x1);for(let _0x32b18b=_0x2f982e;_0x32b18b<_0x286883;_0x32b18b++)_0x2e84cd[_0x32b18b]['side']=_0x32b18b<=_0xe50568?-0x1:_0x32b18b<_0x16179b?0x0:0x1,_0x2e84cd[_0x32b18b]['index']=_0x32b18b;let _0x2216c9=0x0;for(let _0x257be6=_0x2f982e;_0x257be6<=_0xe50568;_0x257be6++)0x0==_0x2e84cd[_0x257be6]['distance']?_0x2e84cd[_0x257be6]['level']=_0x2216c9:(_0x2216c9++,_0x2e84cd[_0x257be6]['level']=_0x2216c9,_0x2216c9++);for(let _0x4ff17a=_0x2f982e;_0x4ff17a<_0x286883;_0x4ff17a++)0x0==_0x2e84cd[_0x4ff17a]['side']&&(_0x2e84cd[_0x4ff17a]['level']=_0x2216c9);_0x2216c9=0x0;for(let _0x40e7f6=_0x286883-0x1;_0x40e7f6>=_0x16179b;_0x40e7f6--)0x0==_0x2e84cd[_0x40e7f6]['distance']?_0x2e84cd[_0x40e7f6]['level']=_0x2216c9:(_0x2216c9--,_0x2e84cd[_0x40e7f6]['level']=_0x2216c9,_0x2216c9--);}}['_fixObsoleteTags'](_0x1be779){const _0xeb61f0=new Map(),_0x31d683=this['editor']['model']['schema'];for(let _0x9e5b39=0x1;_0x9e5b39<_0x1be779['length'];_0x9e5b39++){let _0x221f8e,_0x13e0dd,_0x389da2;const _0x2858fb=_0x1be779[_0x9e5b39],_0x1c7609=_0x1be779[_0x9e5b39-0x1];if('text'==_0x2858fb['type'])continue;if(_0x2858fb['type']!=_0x1c7609['type'])continue;if(!_0x31d683['isBlock'](_0x1c7609['item'])||_0x31d683['isLimit'](_0x1c7609['item']))continue;if(!_0x31d683['isBlock'](_0x2858fb['item'])||_0x31d683['isLimit'](_0x2858fb['item']))continue;if((_0x1be779[_0x9e5b39]['isAdded']||_0x1be779[_0x9e5b39]['isAddSuggestion'])&&_0x1be779[_0x9e5b39-0x1]['isRemoved'])_0x221f8e=_0x1be779[_0x9e5b39],_0x13e0dd=_0x1be779[_0x9e5b39-0x1],_0x389da2=_0x9e5b39-0x1;else{if(!_0x1be779[_0x9e5b39]['isRemoved']||!_0x1be779[_0x9e5b39-0x1]['isAdded']&&!_0x1be779[_0x9e5b39-0x1]['isAddSuggestion'])continue;_0x221f8e=_0x1be779[_0x9e5b39-0x1],_0x13e0dd=_0x1be779[_0x9e5b39],_0x389da2=_0x9e5b39;}const _0x8f342=_0x221f8e['level']==_0x13e0dd['level'],_0x4e74cf=Math['abs'](_0x221f8e['level'])<Math['abs'](_0x13e0dd['level'])&&0x0==_0x13e0dd['distance'];(_0x8f342||_0x4e74cf)&&(_0xeb61f0['set'](_0x13e0dd['id'],_0x221f8e['id']),_0x1be779['splice'](_0x389da2,0x1),_0x9e5b39--,_0x221f8e['isAdded']=!0x1);}for(let _0xf1386d=0x0;_0xf1386d<_0x1be779['length'];_0xf1386d++)_0xeb61f0['has'](_0x1be779[_0xf1386d]['pairId'])&&(_0x1be779[_0xf1386d]['pairId']=_0xeb61f0['get'](_0x1be779[_0xf1386d]['pairId']));}['_removeMissingPairs'](_0x24edf0){const _0x47bf6f=new Set(_0x24edf0['map'](_0x1aa785=>_0x1aa785['id']));for(let _0x2e4c1a=0x0;_0x2e4c1a<_0x24edf0['length'];_0x2e4c1a++)_0x47bf6f['has'](_0x24edf0[_0x2e4c1a]['pairId'])||0x0==_0x24edf0[_0x2e4c1a]['distance']||(_0x24edf0[_0x2e4c1a]['isIncorrect']=!0x0);return _0x24edf0['filter'](_0x192af8=>!_0x192af8['isIncorrect']);}['_markMismatchedRemovedTags'](_0x46be7c){const _0x434b84=new Set();for(let _0x1f7a24=0x0;_0x1f7a24<_0x46be7c['length'];_0x1f7a24++){if(_0x434b84['has'](_0x46be7c[_0x1f7a24]['id'])&&_0x46be7c[_0x1f7a24]['isRemoved']&&(_0x46be7c[_0x1f7a24]['isIncorrect']=!0x0),_0x46be7c[_0x1f7a24]['isIncorrect'])continue;if(0x0==_0x46be7c[_0x1f7a24]['distance'])continue;if('elementStart'!=_0x46be7c[_0x1f7a24]['type'])continue;if(null==_0x46be7c[_0x1f7a24]['pairId'])continue;let _0x31616e=_0x1f7a24+0x1,_0x584186=0x0;for(;_0x46be7c[_0x31616e]['id']!=_0x46be7c[_0x1f7a24]['pairId'];)'elementStart'==_0x46be7c[_0x31616e]['type']?_0x584186++:'elementEnd'==_0x46be7c[_0x31616e]['type']&&_0x584186--,_0x31616e++;if(0x0!=_0x584186){if(_0x46be7c[_0x1f7a24]['isRemoved'])_0x46be7c[_0x1f7a24]['isIncorrect']=!0x0;else{for(;_0x31616e!=_0x1f7a24;)_0x46be7c[_0x31616e]['isRemoved']&&0x0!=_0x46be7c[_0x31616e]['distance']&&(_0x46be7c[_0x31616e]['isIncorrect']=!0x0,_0x434b84['add'](_0x46be7c[_0x31616e]['pairId'])),_0x31616e--;}}}return _0x46be7c['filter'](_0x43022f=>!_0x43022f['isIncorrect']);}['_removeUnsupportedChanges'](_0xe204f5){const _0x1c884c=this['editor']['model']['schema'];for(let _0xb759d0=0x0;_0xb759d0<_0xe204f5['length'];_0xb759d0++){if(!(_0xe204f5[_0xb759d0]['isAdded']||_0xe204f5[_0xb759d0]['isAddSuggestion']||_0xe204f5[_0xb759d0]['isRemoved']||_0xe204f5[_0xb759d0]['isRemoveSuggestion']))continue;if(0x0==_0xe204f5[_0xb759d0]['distance'])continue;const _0x491196=_0xe204f5[_0xb759d0]['item'];_0x1c884c['isBlock'](_0x491196)||_0x1c884c['isLimit'](_0x491196)||(_0xe204f5[_0xb759d0]['isAdded']&&delete _0xe204f5[_0xb759d0]['isAdded'],_0xe204f5[_0xb759d0]['isAddSuggestion']&&delete _0xe204f5[_0xb759d0]['isAddSuggestion'],_0xe204f5[_0xb759d0]['isRemoveSuggestion']&&delete _0xe204f5[_0xb759d0]['isRemoveSuggestion'],_0xe204f5[_0xb759d0]['isRemoved']&&(_0xe204f5[_0xb759d0]['isIncorrect']=!0x0));}return _0xe204f5['filter'](_0x5eadcb=>!_0x5eadcb['isIncorrect']);}['_makeModelFromTape'](_0x28eeae,_0x3fa3a8,_0x19c349){const _0x5b91bd=new mt(),_0xe153f6=[],_0x56d226=new Map(),_0x2cac15=this['editor']['model'],_0x12a78a=_0x2cac15['schema'],_0x1a7cb7=[_0x5b91bd],_0x3db2db={},_0x2e10ad={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x46e5da=null;const _0x409d20=[0x0];for(let _0x3e0e18=0x0;_0x3e0e18<_0x28eeae['length'];_0x3e0e18++)if('elementStart'===_0x28eeae[_0x3e0e18]['type']){_0x28eeae[_0x3e0e18]['previousPosition']=_0x2cac15['createPositionFromPath'](_0x5b91bd,_0x409d20);const _0xaf3b6d=new ft(_0x28eeae[_0x3e0e18]['item']['name'],_0x28eeae[_0x3e0e18]['item']['getAttributes']());_0x1a7cb7[0x0]['_appendChild'](_0xaf3b6d),_0x409d20['push'](0x0),_0x1a7cb7['unshift'](_0xaf3b6d),_0x28eeae[_0x3e0e18]['nextPosition']=_0x2cac15['createPositionFromPath'](_0x5b91bd,_0x409d20);}else'elementEnd'===_0x28eeae[_0x3e0e18]['type']?(_0x1a7cb7['shift'](),_0x28eeae[_0x3e0e18]['previousPosition']=_0x2cac15['createPositionFromPath'](_0x5b91bd,_0x409d20),_0x409d20['pop'](),_0x409d20[_0x409d20['length']-0x1]++,_0x28eeae[_0x3e0e18]['nextPosition']=_0x2cac15['createPositionFromPath'](_0x5b91bd,_0x409d20)):(_0x28eeae[_0x3e0e18]['previousPosition']=_0x2cac15['createPositionFromPath'](_0x5b91bd,_0x409d20),_0x46e5da?_0x46e5da['_data']+=_0x28eeae[_0x3e0e18]['item']['data']:_0x46e5da=new wt(_0x28eeae[_0x3e0e18]['item']['data'],_0x28eeae[_0x3e0e18]['item']['getAttributes']()),_0x28eeae[_0x3e0e18+0x1]&&'text'===_0x28eeae[_0x3e0e18+0x1]['type']&&_0x38229b(_0x46e5da,_0x28eeae[_0x3e0e18+0x1]['item'])||(_0x1a7cb7[0x0]['_appendChild'](_0x46e5da),_0x46e5da=null),_0x409d20[_0x409d20['length']-0x1]+=_0x28eeae[_0x3e0e18]['item']['offsetSize'],_0x28eeae[_0x3e0e18]['nextPosition']=_0x2cac15['createPositionFromPath'](_0x5b91bd,_0x409d20));for(let _0x5d0bc2=0x0;_0x5d0bc2<_0x28eeae['length'];_0x5d0bc2++){const _0x431f3a=_0x28eeae[_0x5d0bc2]['previousPosition'],_0x1c62be=_0x28eeae[_0x5d0bc2]['nextPosition'];for(const _0x477761 of _0x28eeae[_0x5d0bc2]['markersStart'])_0x56d226['set'](_0x477761,{'start':_0x431f3a,'end':null});_0x2353c1('isRemoveSuggestion',_0x5d0bc2,_0x431f3a,_0x1c62be),_0x2353c1('isAddSuggestion',_0x5d0bc2,_0x431f3a,_0x1c62be),_0x2353c1('isRemoved',_0x5d0bc2,_0x431f3a,_0x1c62be),_0x2353c1('isAdded',_0x5d0bc2,_0x431f3a,_0x1c62be);for(const _0x245de6 of _0x28eeae[_0x5d0bc2]['markersEnd']){_0x56d226['get'](_0x245de6)['end']=_0x1c62be;}}for(const [_0x542e16,_0x37014b]of _0x56d226){const _0x329a6c=this['editor']['model']['createRange'](_0x37014b['start'],_0x37014b['end']);_0x5b91bd['markers']['set'](_0x542e16,_0x329a6c);}return _0xe153f6['sort']((_0x3477a6,_0x3f597d)=>{const _0x15cd8e=_0x5b91bd['markers']['get']('revision:'+_0x3477a6['id']),_0x54b0a1=_0x5b91bd['markers']['get']('revision:'+_0x3f597d['id']);return _0x15cd8e['start']['isBefore'](_0x54b0a1['start'])?-0x1:_0x15cd8e['start']['isAfter'](_0x54b0a1['start'])?0x1:_0x15cd8e['end']['isBefore'](_0x54b0a1['end'])?-0x1:_0x15cd8e['end']['isAfter'](_0x54b0a1['end'])?0x1:'add'===_0x3477a6['type']?-0x1:0x1;}),{'root':_0x5b91bd,'changes':_0xe153f6};function _0x2353c1(_0x512b9b,_0x6f3ebb,_0x1b703d,_0x5895ac){const _0x1f23d4=!!_0x28eeae[_0x6f3ebb][_0x512b9b],_0x47e8e6=_0x1f23d4?_0x28eeae[_0x6f3ebb][_0x512b9b]['userId']:null,_0x380541=_0x6f3ebb===_0x28eeae['length']-0x1,_0x5ea8ec=_0x2e10ad[_0x512b9b][0x0],_0x38e8a8=_0x12a78a['isObject'](_0x28eeae[_0x6f3ebb]['item']);!_0x3db2db[_0x512b9b]&&_0x1f23d4?_0x3db2db[_0x512b9b]={'start':_0x1b703d,'tapeItem':_0x28eeae[_0x6f3ebb],'userId':_0x47e8e6,'type':_0x512b9b}:_0x3db2db[_0x512b9b]&&!_0x1f23d4?(_0x3db2db[_0x512b9b]['end']=_0x1b703d,_0x26562e(_0x3db2db[_0x512b9b]),_0x3db2db[_0x512b9b]=null):_0x3db2db[_0x512b9b]&&_0x1f23d4&&_0x3db2db[_0x512b9b]['userId']!==_0x47e8e6&&(_0x3db2db[_0x512b9b]['end']=_0x1b703d,_0x5ea8ec&&_0x5ea8ec['userId']===_0x3db2db[_0x512b9b]['userId']||_0x26562e(_0x3db2db[_0x512b9b]),_0x3db2db[_0x512b9b]={'start':_0x1b703d,'tapeItem':_0x28eeae[_0x6f3ebb],'userId':_0x47e8e6,'type':_0x512b9b}),_0x3db2db[_0x512b9b]&&_0x38e8a8&&('elementStart'!==_0x28eeae[_0x6f3ebb]['type']||_0x5ea8ec&&_0x5ea8ec['userId']===_0x47e8e6||_0x2e10ad[_0x512b9b]['unshift']({'userId':_0x47e8e6,'object':_0x28eeae[_0x6f3ebb]['item'],'change':_0x3db2db[_0x512b9b]}),'elementEnd'===_0x28eeae[_0x6f3ebb]['type']&&_0x5ea8ec&&_0x5ea8ec['object']===_0x28eeae[_0x6f3ebb]['item']&&(_0x2e10ad[_0x512b9b]['shift'](),_0x3db2db[_0x512b9b]=_0x5ea8ec['change'])),_0x3db2db[_0x512b9b]&&_0x380541&&(_0x3db2db[_0x512b9b]['end']=_0x5895ac,_0x26562e(_0x3db2db[_0x512b9b]),_0x3db2db[_0x512b9b]=null);}function _0x26562e({start:_0x3fac1c,end:_0x136840,tapeItem:_0x3e3b70,userId:_0x99b903,type:_0x2044df}){const _0x17f04b=_0x3e3b70['item'],_0x16b9d8=_0x2cac15['schema']['isBlock'](_0x17f04b)&&!_0x2cac15['schema']['isLimit'](_0x17f04b),_0x54e845=_0x3fac1c['nodeAfter']==_0x136840['parent']&&_0x136840['isAtStart'];if(_0x16b9d8&&_0x54e845)return;const _0x40b464=_0x2cac15['createRange'](_0x3fac1c,_0x136840),_0x4f15ad=_0x3fa3a8['get'](_0x99b903),_0xbff4d6=new r({'author':_0x4f15ad,'type':'isAdded'==_0x2044df||'isAddSuggestion'==_0x2044df?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x2044df||'isRemoveSuggestion'==_0x2044df},'createdAt':new Date(),'rootName':_0x19c349});_0xe153f6['push'](_0xbff4d6),_0x5b91bd['markers']['set']('revision:'+_0xbff4d6['id'],_0x40b464);}function _0x38229b(_0x9ec43f,_0x4c27e5){const _0x5ec81e=_0x9ec43f['getAttributes'](),_0x271ce6=_0x4c27e5['getAttributes']();for(const _0x14ae8d of _0x5ec81e){if(_0x14ae8d[0x1]!==_0x4c27e5['getAttribute'](_0x14ae8d[0x0]))return!0x1;_0x271ce6['next']();}return _0x271ce6['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x2a3cf6=>{const _0x575d08=_0x2a3cf6['markerName']['split'](':')[0x1],_0xb11940=this['_getChangeFromId'](_0x575d08);if(!_0xb11940)return null;const _0x2fe579='add'==_0xb11940['type']?'insertion':'deletion',_0x4c5d55=['ck-suggestion-marker','ck-suggestion-marker-'+_0x2fe579];return _0xb11940['data']['isSuggestion']&&_0x4c5d55['push']('ck-suggestion-marker-'+_0x2fe579+'-new'),this['activeChange']==_0xb11940&&_0x4c5d55['push']('ck-suggestion-marker--active'),{'classes':_0x4c5d55,'attributes':{'data-change-id':_0x575d08}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x4febca=>{_0x4febca['on']('element:pre',(_0x394917,_0x227753,_0x287b03)=>{const _0x3bd0e3=_0x227753['viewItem']['getChild'](0x0);if(!_0x3bd0e3||!_0x3bd0e3['is']('element','code'))return;if(!_0x287b03['consumable']['consume'](_0x3bd0e3,{'attributes':['vid_start','vid_end']}))return;const _0x410791=_0x227753['modelRange']['start']['nodeAfter'];_0x287b03['writer']['setAttribute']('vid_start',_0x3bd0e3['getAttribute']('vid_start'),_0x410791),_0x287b03['writer']['setAttribute']('vid_end',_0x3bd0e3['getAttribute']('vid_end'),_0x410791);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x45ad03=>{_0x45ad03['on']('element',(_0x61e0ea,_0x389d5a,_0x22c13f)=>{if(!_0x22c13f['consumable']['consume'](_0x389d5a['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x389d5a['modelRange']['isCollapsed'])return;const _0xb578eb=_0x389d5a['modelRange']['start']['nodeAfter'];_0xb578eb['hasAttribute']('vid_start')||_0xb578eb['hasAttribute']('vid')||(_0x22c13f['writer']['setAttribute']('vid_start',_0x389d5a['viewItem']['getAttribute']('vid_start'),_0xb578eb),_0x22c13f['writer']['setAttribute']('vid_end',_0x389d5a['viewItem']['getAttribute']('vid_end'),_0xb578eb));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x29a0ef=>_0x29a0ef['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x83c0dd,[,_0x1aafed])=>{['vid_start','vid_end','vid']['includes'](_0x1aafed)&&(_0x83c0dd['return']=!0x0,_0x83c0dd['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x1d5872=>{_0x1d5872['on']('attribute:vid',(_0x528066,_0x1591ea,_0x757236)=>{if('\x20'!=_0x1591ea['item']['data']||_0x1591ea['item']['parent']['maxOffset']>0x1)return;if(!_0x757236['consumable']['consume'](_0x1591ea['item'],_0x528066['name']))return;const _0x4eeb68=_0x757236['writer'],_0x273683=_0x757236['mapper']['toViewRange'](_0x1591ea['range']);_0x4eeb68['wrap'](_0x273683,_0x4eeb68['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x38358c){const _0xe2c8d1=_0x38358c['plugins']['get']('RevisionViewer');return(_0x502f77,_0x44a0c9,_0x53374b)=>{const _0x39b6af=_0x44a0c9['markerName']['split'](':')[0x1],_0x50e970=_0xe2c8d1['_getChangeFromId'](_0x39b6af);if(!_0x50e970)return null;const _0x19c4c8='add'==_0x50e970['type']?'split':'merge';if(!_0x53374b['consumable']['test'](_0x44a0c9['markerRange'],_0x502f77['name']))return;const _0x377c1a=_0x44a0c9['markerRange']['getWalker'](),_0x500212=_0x44a0c9['markerRange']['start'],_0xf250c4=_0x38358c['model']['schema'];let _0x2d9ead=null,_0x1b5929=null,_0x48de2a=!0x1,_0x58bc7=!0x1;for(const _0x105a97 of _0x377c1a){const _0x567a65=_0x105a97['item'];_0x48de2a=_0x48de2a||_0xf250c4['isContent'](_0x567a65);const _0x4cef5d=_0x53374b['mapper']['toViewElement'](_0x567a65);if(_0x4cef5d&&_0x4cef5d['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x105a97['type']&&(_0xf250c4['isBlock'](_0x567a65)&&!_0xf250c4['isLimit'](_0x567a65)&&(_0x567a65['nextSibling']||_0x500212['isAtEnd']?_0x2d9ead&&_0x2d9ead['parent']==_0x567a65||(_0x2d9ead=_0x567a65,_0x1b191c(_0x105a97['previousPosition']),_0x58bc7=!0x0):_0x1b5929=_0x1b5929||_0x105a97['previousPosition']));}function _0x1b191c(_0x3663fc){const _0x26a413=_0x53374b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x19c4c8}),_0x3818e3=_0x53374b['mapper']['toViewPosition'](_0x3663fc);_0x50e970['data']['isSuggestion']&&_0x53374b['writer']['addClass']('ck-suggestion-marker-'+_0x19c4c8+'-new',_0x26a413),_0xe2c8d1['activeChange']==_0x50e970&&_0x53374b['writer']['addClass']('ck-suggestion-marker--active',_0x26a413),_0x53374b['writer']['insert'](_0x3818e3,_0x26a413),_0x53374b['mapper']['bindElementToMarker'](_0x26a413,_0x44a0c9['markerName']);}_0x48de2a||_0x58bc7||!_0x1b5929||_0x1b191c(_0x1b5929);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x2967d3,_0x50c694,_0x1848dc)=>{const _0x40e41b=_0x1848dc['mapper']['markerNameToElements'](_0x50c694['markerName']);if(_0x40e41b){for(const _0x3f876a of _0x40e41b)(_0x3f876a['hasClass']('ck-suggestion-marker-split')||_0x3f876a['hasClass']('ck-suggestion-marker-merge'))&&(_0x1848dc['mapper']['unbindElementFromMarkerName'](_0x3f876a,_0x50c694['markerName']),_0x1848dc['writer']['remove'](_0x3f876a));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x45a977,_0xfd9142,_0x877035)=>{const _0x9a9ad6=_0xfd9142['markerName']['split'](':')[0x1],_0xe3a2c7=this['_getChangeFromId'](_0x9a9ad6);if(!_0xe3a2c7)return null;const _0x5236ea='add'==_0xe3a2c7['type']?'split':'merge';if(_0x877035['consumable']['test'](_0xfd9142['markerRange'],_0x45a977['name']))for(const _0x5457f4 of _0xfd9142['markerRange']['getItems']()){if(!_0x5457f4['is']('element','softBreak'))continue;const _0x95d14d=_0x877035['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5236ea}),_0x3322f1=_0x877035['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x5457f4));_0xe3a2c7['data']['isSuggestion']&&_0x877035['writer']['addClass']('ck-suggestion-marker-'+_0x5236ea+'-new',_0x95d14d),this['activeChange']==_0xe3a2c7&&_0x877035['writer']['addClass']('ck-suggestion-marker--active',_0x95d14d),_0x877035['writer']['insert'](_0x3322f1,_0x95d14d),_0x877035['mapper']['bindElementToMarker'](_0x95d14d,_0xfd9142['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x186263=>{for(const _0x46fbd2 of this['editor']['model']['document']['getRootNames']()){const _0x564736=this['editor']['model']['document']['getRoot'](_0x46fbd2),_0x2e5e41=this['editor']['editing']['view']['document']['getRoot'](_0x46fbd2);if(_0x2e5e41){const _0x3d2e18=_0x564736['getAttribute']('revisionHistoryAttachChange');if(_0x186263['removeAttribute']('data-change-id',_0x2e5e41),_0x186263['removeClass']('ck-revision-history-root-add',_0x2e5e41),_0x186263['removeClass']('ck-revision-history-root-remove',_0x2e5e41),_0x186263['removeClass']('ck-revision-history-root--active',_0x2e5e41),_0x3d2e18){const _0x8dc7c0=this['_getChangeFromId'](_0x3d2e18);if(!_0x8dc7c0)return null;_0x186263['setAttribute']('data-change-id',_0x3d2e18,_0x2e5e41),_0x186263['addClass']('ck-revision-history-root-'+_0x8dc7c0['type'],_0x2e5e41),this['activeChange']==_0x8dc7c0&&_0x186263['addClass']('ck-revision-history-root--active',_0x2e5e41);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x1c0727=>'revision-comment:'+_0x1c0727,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x43ec9d=>'revision-suggestion:'+_0x43ec9d,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x2dc278=>({'name':'suggestion:'+_0x2dc278,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x50f215=>{const _0xf2e915=_0x50f215['markerName']['split'](':')[0x1];return'insertion'!=_0xf2e915&&'deletion'!=_0xf2e915?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0xf2e915]};}}),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',(_0x55522b,_0x5a6918,_0x1c4821)=>{const _0x3b5924=_0x1c4821['mapper']['markerNameToElements'](_0x5a6918['markerName']);if(_0x3b5924){for(const _0x12e6af of _0x3b5924)_0x12e6af['is']('uiElement')&&(_0x1c4821['mapper']['unbindElementFromMarkerName'](_0x12e6af,_0x5a6918['markerName']),_0x1c4821['writer']['remove'](_0x12e6af));}},{'priority':'high'});}['_getChangeFromId'](_0x1d4387){return this['_changeIdToChange']['get'](_0x1d4387);}['_getViewForChange'](_0x136bf9){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x136bf9),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x3c2f99,_0x5bd3a3,_0x94db0a,_0x1bb989)=>{_0x1bb989&&this['_balloon']['remove'](_0x1bb989),_0x94db0a&&(this['_balloon']['add']({'view':_0x94db0a,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x327f3f=this['editor']['editing'],_0x2a47a3=this['_getChangeFromId'](_0x94db0a['changeId']);let _0x14d9ea;if(_0x2a47a3['data']['isOnRoot']){const _0x5842c5=_0x327f3f['view']['getDomRoot'](_0x2a47a3['rootName']);_0x14d9ea=Array['from'](_0x5842c5['getClientRects']());}else{const _0x2d14f2=this['editor']['model']['markers']['get']('revision:'+_0x94db0a['changeId']);_0x14d9ea=Array['from'](_0x327f3f['mapper']['markerNameToElements'](_0x2d14f2['name']))['map'](_0x44b7e0=>_0x327f3f['view']['domConverter']['mapViewToDom'](_0x44b7e0))['map'](_0x218231=>Array['from'](_0x218231['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x14d9ea[0x0];return _0x14d9ea['find'](_0x1b0d68=>_0x1b0d68['top']-0x3<=this['_activeViewTarget']['y']&&_0x1b0d68['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x1b0d68['left']-0x3<=this['_activeViewTarget']['x']&&_0x1b0d68['right']+0x3>=this['_activeViewTarget']['x'])||_0x14d9ea[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x5efc59,_0x2278e0,_0x39ca28,_0x41dc19)=>{this['activeView']=_0x39ca28?this['_getViewForChange'](_0x39ca28):null,this['editor']['model']['change'](()=>{const _0x427756=this['editor']['editing'];_0x41dc19&&(_0x41dc19['data']['isOnRoot']?_0x427756['view']['change'](_0x3c3ad1=>{_0x3c3ad1['removeClass']('ck-revision-history-root--active',_0x427756['view']['document']['getRoot'](_0x41dc19['rootName']));}):_0x427756['reconvertMarker']('revision:'+_0x41dc19['id'])),_0x39ca28&&(_0x39ca28['data']['isOnRoot']?_0x427756['view']['change'](_0x20954c=>{_0x20954c['addClass']('ck-revision-history-root--active',_0x427756['view']['document']['getRoot'](_0x39ca28['rootName']));}):_0x427756['reconvertMarker']('revision:'+_0x39ca28['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x36bb85,_0x494643)=>{if(this['activeChange'])return;const _0x3c50ef=this['_findChangeIdFromDomTarget'](_0x494643['target']),_0x529098=this['_changeIdToChange']['get'](_0x3c50ef);_0x529098?(this['_activeViewTarget']={'x':_0x494643['domEvent']['x'],'y':_0x494643['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x529098)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x3fd3e2,_0x4e662e)=>{const _0xb07fad=this['_findChangeIdFromDomTarget'](_0x4e662e['target']),_0x587ec5=this['_changeIdToChange']['get'](_0xb07fad);_0x587ec5?(this['_activeViewTarget']={'x':_0x4e662e['domEvent']['x'],'y':_0x4e662e['domEvent']['y']},_0x587ec5===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x587ec5):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0xb7833e){do{const _0x133d11=_0xb7833e['getAttribute']('data-change-id');if(_0x133d11)return _0x133d11;_0xb7833e=_0xb7833e['parent'];}while(_0xb7833e);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x2aac0=>{for(const _0x52eb34 of this['editor']['model']['markers'])_0x2aac0['removeMarker'](_0x52eb34);});}}function Z(_0x594283,_0x37a07c){return(_0x44a6d2,_0x502a54,_0x38341c)=>{if(!_0x38341c['consumable']['test'](_0x502a54['markerRange'],_0x44a6d2['name']))return;const _0x1be143=_0x502a54['markerRange']['getWalker'](),_0x2e84f1=_0x502a54['markerRange']['start'],_0x1d3b9a=_0x594283['model']['schema'];let _0x519e00=null,_0x531def=null,_0x436661=!0x1,_0x3e3c38=!0x1;for(const _0x4b40a1 of _0x1be143){const _0x135943=_0x4b40a1['item'];_0x436661=_0x436661||_0x1d3b9a['isContent'](_0x135943);const _0x437c61=_0x38341c['mapper']['toViewElement'](_0x135943);if(_0x437c61&&_0x437c61['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4b40a1['type']&&(_0x1d3b9a['isBlock'](_0x135943)&&!_0x1d3b9a['isLimit'](_0x135943)&&(_0x135943['nextSibling']||_0x2e84f1['isAtEnd']?_0x519e00&&_0x519e00['parent']==_0x135943||(_0x519e00=_0x135943,_0x2c2052(_0x4b40a1['previousPosition']),_0x3e3c38=!0x0):_0x531def=_0x531def||_0x4b40a1['previousPosition']));}function _0x2c2052(_0x55f378){const _0x1e9311=_0x38341c['mapper']['toViewPosition'](_0x55f378),_0x1fa682=_0x38341c['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x37a07c});_0x38341c['writer']['insert'](_0x1e9311,_0x1fa682),_0x38341c['mapper']['bindElementToMarker'](_0x1fa682,_0x502a54['markerName']);}_0x436661||_0x3e3c38||!_0x531def||_0x2c2052(_0x531def);};}class _t extends _0x527a9f{constructor(_0x22b82d){super(_0x22b82d);const _0x387cde=_0x22b82d['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x387cde,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x387cde,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x4a6367=this['editor'],_0x365ce5=_0x4a6367['plugins']['get'](d),_0x3cebc7=_0x365ce5['isReady']?_0x365ce5['diff']['newRevisionId']:null;_0x4a6367['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x3cebc7);}['refresh'](){const {isReady:_0x5f3571,isEnabled:_0x47ccf0,repository:_0x26d99f,diff:_0x3e1fe4}=this['editor']['plugins']['get'](d),_0x2b6e0c=_0x3e1fe4&&_0x26d99f['getLaterVisibleRevision'](_0x3e1fe4['newRevisionId']);this['isEnabled']=_0x5f3571&&_0x47ccf0&&Boolean(_0x2b6e0c);}}class yt extends _0x527a9f{['_step'];constructor(_0x5896a7,{direction:_0x4b7f35}){super(_0x5896a7);const _0x4c8463=_0x5896a7['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x4b7f35?0x1:-0x1,this['listenTo'](_0x4c8463,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x4c8463,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x4c8463,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x5aeabd=this['editor'],_0x5e74a8=_0x5aeabd['plugins']['get'](d),{isNavigationMode:_0x46b82f,currentChangeNumber:_0x2f5bdd}=_0x5e74a8;let _0x1d6af2;if(_0x5e74a8['activeChange']=_0x46b82f?_0x5e74a8['diff']['changes']['get'](_0x2f5bdd+this['_step']):_0x5e74a8['diff']['changes']['first'],_0x5e74a8['activeChange']['data']['isOnRoot'])_0x1d6af2=_0x5aeabd['editing']['view']['getDomRoot'](_0x5e74a8['activeChange']['rootName']);else{const _0x3582df=_0x5aeabd['model']['markers']['get']('revision:'+_0x5e74a8['activeChange']['id']);_0x1d6af2=_0x570081(_0x5aeabd['editing'],_0x3582df);}_0x51250b({'target':_0x1d6af2,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x21c0cb,currentChangeNumber:_0x31c97d,numberOfChanges:_0x31e426,isReady:_0x2a4227,isEnabled:_0xb29b7a}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0xb29b7a&&_0x2a4227&&_0x31e426)&&(!_0x21c0cb||(0x1===this['_step']?_0x31c97d<_0x31e426-0x1:_0x31c97d>0x0));}}class _i extends _0x25ec7b{constructor(_0x2b9d0c){super(_0x2b9d0c);const _0x4663e7=this['bindTemplate'],_0x5dbdb0=new _0x5c3975(_0x2b9d0c),_0x571e34=new _0x5c3975(_0x2b9d0c);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',(_0x131faf,_0x267d4d)=>_0x131faf&&_0x267d4d>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x54e34a,_0x2afe5d,_0xcadb8d,_0x428366)=>{if(!_0x54e34a)return m(_0x2b9d0c,'Loading...');if(!_0xcadb8d)return m(_0x2b9d0c,'No\x20changes');const _0x4f3965=m(_0x2b9d0c,'NUMBER_OF_CHANGES',_0xcadb8d);return _0x428366?m(_0x2b9d0c,'X_OF_Y_CHANGES',[_0x2afe5d+0x1,_0xcadb8d]):_0x4f3965;}),_0x5dbdb0['set']({'label':m(_0x2b9d0c,'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'}),_0x571e34['set']({'label':m(_0x2b9d0c,'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'}),_0x5dbdb0['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x571e34['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x5dbdb0['on']('execute',()=>this['fire']('execute','backward')),_0x571e34['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',_0x4663e7['if']('_isStatusLabelVisible','ck-hidden',_0x1cfc2a=>!_0x1cfc2a)]},'children':[{'text':_0x4663e7['to']('isNavigationMode',_0x59c6fa=>_0x59c6fa?m(_0x2b9d0c,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x2b9d0c,'Total')+':\x20')}]},{'text':_0x4663e7['to']('_statusText')}]},new _0x364a4c(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x5dbdb0,_0x571e34]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x4302a3{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x164dd6=this['editor']['editing']['view'];_0x164dd6['change'](_0x500ca5=>{for(const _0x1e2fe1 of _0x164dd6['document']['roots'])_0x500ca5['addClass'](ce,_0x1e2fe1);});}['hide'](){const _0x516d96=this['editor']['editing']['view'];_0x516d96['change'](_0x38e230=>{for(const _0x46be33 of _0x516d96['document']['roots'])_0x38e230['removeClass'](ce,_0x46be33);});}}class g extends _0x4302a3{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,le];}['init'](){const _0x25f00b=this['editor'],_0x371f65=_0x25f00b['plugins']['get'](d),_0x5d2178=_0x25f00b['plugins']['get'](le);_0x25f00b['ui']['componentFactory']['add']('exitToEditing',_0x4aae32=>{const _0x5d2d33=new _0x5c3975(_0x4aae32);return _0x5d2d33['set']({'label':m(_0x4aae32,'Back\x20to\x20editing'),'icon':_0x2eec3c['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x5d2d33,'execute',()=>{_0x25f00b['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x5d2d33;}),_0x25f00b['ui']['componentFactory']['add']('restoreRevision',_0x20c281=>{const _0x934bd2=new _0x5c3975(_0x20c281);return _0x934bd2['set']({'label':m(_0x20c281,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x934bd2['bind']('isEnabled')['to'](_0x25f00b['commands']['get']('restoreRevision')),this['listenTo'](_0x934bd2,'execute',()=>_0x25f00b['execute']('restoreRevision')),_0x934bd2;}),_0x25f00b['ui']['componentFactory']['add']('changesNavigation',_0x46c621=>{const _0x472ee7=new _i(_0x46c621),_0x39aa6f=_0x25f00b['commands']['get']('showPreviousChange'),_0x5114b1=_0x25f00b['commands']['get']('showNextChange');return _0x472ee7['bind']('isBackwardNavigationEnabled')['to'](_0x39aa6f,'isEnabled'),_0x472ee7['bind']('isForwardNavigationEnabled')['to'](_0x5114b1,'isEnabled'),_0x472ee7['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x371f65),this['listenTo'](_0x472ee7,'execute',(_0x384321,_0x596756)=>{_0x25f00b['execute']('forward'===_0x596756?'showNextChange':'showPreviousChange');}),_0x472ee7;}),_0x5d2178['show'](),_0x371f65['on']('change:isReady',(_0x5c829f,_0x34d187,_0x53e6cf)=>{_0x53e6cf?_0x5d2178['hide']():_0x5d2178['show']();});}}class pt extends nt{['_resizeObserver']=null;constructor(_0x295e1f,_0x4363d0){super(_0x295e1f,_0x4363d0);const _0x50fe1a=this['bindTemplate'];this['set']({'label':m(_0x295e1f,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x295e1f,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x50fe1a['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 _0x9ac24d=this['fieldView']['element'];this['_tooltipString']=_0x9ac24d['scrollWidth']>_0x9ac24d['clientWidth']&&_0x9ac24d['value']||'';}}class ti extends _0x25ec7b{constructor(_0x1d92c2,_0x7b3f2d,_0x2ca741){super(_0x1d92c2);const _0x1a81d2=new _0x5ee41d();_0x1a81d2['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 _0x2a09ec=['ck','ck-revision-history-sidebar__revision-author'];_0x2ca741&&_0x2a09ec['push']('ck-revision-history-sidebar__revision-author_creator');const _0x5bb0e9=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x1d92c2,_0x2ca741?'Revision\x20creator':'Revision\x20author')},'children':[_0x1a81d2,_0x7b3f2d['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x2a09ec},'children':_0x5bb0e9});}}function ni(_0x556786,_0x52c377){const _0x3fcc99=_0x556786['bindTemplate'],_0x3ca511=_0x556786['locale'],_0x14bebb=_0x5c973c(_0x3ca511);_0x14bebb['panelPosition']='sw';const _0xa4c4=function(_0x326c17,_0x210eca){const _0x9b27bc=function(_0x4c9a72,_0x25c8de){const _0x509fb1=_0x4c9a72['locale'],_0x59933a={'Compare\x20against\x20selected':m(_0x509fb1,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x509fb1,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x509fb1,'Restore\x20this\x20revision')};return _0x25c8de['map'](_0x52e57b=>{const _0x5465fd=_0x59933a[_0x52e57b['name']];return _0x5465fd&&_0x5465fd!==_0x52e57b['name']&&(_0x52e57b['name']=_0x5465fd),_0x52e57b;});}(_0x326c17,_0x210eca),_0x331fc2=new _0x3d99fd();for(const _0x1b36e6 of _0x9b27bc){const _0x1a3d19={'type':'button','model':new to({'label':_0x1b36e6['name'],'class':_0x1b36e6['class'],'withText':!0x0,'role':'menuitem','_action':_0x1b36e6['action']})};_0x1a3d19['model']['bind']('isEnabled')['to'](_0x326c17,'isActionsDropdownOpen',_0x46cb42=>'function'!=typeof _0x1b36e6['isEnabled']||(!_0x46cb42||_0x1b36e6['isEnabled'](_0x326c17))),_0x331fc2['add'](_0x1a3d19);}return _0x331fc2;}(_0x556786,_0x52c377);return _0x556786['bind']('isActionsDropdownOpen')['to'](_0x14bebb,'isOpen'),_0x14bebb['buttonView']['set']({'label':m(_0x3ca511,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x2eec3c['threeVerticalDots']}),_0x14bebb['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x3fcc99['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x3fcc99['to'](_0x5077a1=>_0x5077a1['stopPropagation']())}}),_0x14bebb['on']('execute',_0x51f881=>{_0x556786['isReady']&&'function'==typeof _0x51f881['source']['_action']&&_0x51f881['source']['_action'](_0x556786);}),_0x170675(_0x14bebb,_0xa4c4,{'role':'menu'}),_0x14bebb['listenTo'](_0x556786,'change:isActionsDropdownOpen',(_0x290543,_0x3c2ebe,_0x262cee)=>{if(_0x262cee)for(const _0x39fbd7 of _0x14bebb['listView']['items']){const _0x221978=_0x39fbd7['children']['first'],_0x5460e5=_0x52c377['find'](_0x4a7593=>_0x4a7593['action']===_0x221978['_action'])['isVisible'];_0x39fbd7['isVisible']=void 0x0===_0x5460e5||_0x5460e5(_0x556786);}}),_0x14bebb;}class ai extends/* #__PURE__ -- @preserve */
|
|
26
|
-
|
|
23
|
+
import{ObservableMixin as _0x5320d2,uid as _0x2a0190,Collection as _0x10516c,logWarning as _0x302d86,FocusTracker as _0x529518,KeystrokeHandler as _0x559742,scrollViewportToShowTarget as _0xd96e53,ResizeObserver as at,ElementReplacer as ht,CKEditorError as _0x3a09f3}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x582feb,set as _0x52a819,unset as _0x586896,isEqual as _0x30663f}from'lodash-es';import{Plugin as _0x417e25,PendingActions as _0x37e6c8,icons as _0x5aa4d3,Command as _0x5703f7,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0xce5c9b,getMarkerDomElement as _0x55db30,ConfirmMixin as _0x36f486,sanitizeEditorConfig as _0x1dce46}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x47c620,Element as ft,Range as vt,ViewUIElement as _0x1f63be,ViewRawElement as _0x2ff39b,ViewEmptyElement as _0x563432,ViewAttributeElement as _0x15c3ec,ViewContainerElement as _0x306303,Position as gt,ViewText as _0x468e6d,ViewElement as _0xd24324,DocumentFragment as mt,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as _0xe423a3,injectCssTransitionDisabler as ts,submitHandler as _0xce764,LabeledFieldView as nt,createLabeledInputText as _0x1e4dd9,createDropdown as _0x4c6b24,ListView as _0xf7138,ListItemView as _0x5931da,ButtonView as _0x5a62bb,MenuBarMenuView as _0x2ac09c,MenuBarMenuListView as _0x3d3595,MenuBarMenuListItemView as _0x1e773c,MenuBarMenuListItemButtonView as _0x320f1a,ContextualBalloon as _0x56df4e,ToolbarSeparatorView as _0x535beb,IconView as _0x5b866,addListToDropdown as _0x408539,ViewModel as to,EditorUI as st,normalizeToolbarConfig as ot,BoxedEditorUIView as ct,StickyPanelView as ut,ToolbarView as lt,InlineEditableUIView as dt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x50df41}from'luxon';class a extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x5320d2(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x567435){super(),this['id']=_0x567435['id']||_0x2a0190(),this['creator']=_0x567435['creator']||null,this['authors']=_0x567435['authors']||[],this['diffData']=_0x567435['diffData']||null,this['toVersion']=_0x567435['toVersion']||0x0,this['fromVersion']=_0x567435['fromVersion']||0x0,this['set']('name',_0x567435['name']||''),this['set']('createdAt',_0x567435['createdAt']||new Date()),this['set']('attributes',_0x567435['attributes']||{});}['setName'](_0x1eb82){this['_update']({'name':_0x1eb82});}['setAttribute'](_0x2620b3,_0xc9aa37){const _0x28a859=_0x582feb(this['attributes']);_0x52a819(_0x28a859,_0x2620b3,_0xc9aa37),this['_update']({'attributes':_0x28a859});}['removeAttribute'](_0x4f6f6c){const _0x57d64f=_0x582feb(this['attributes']);_0x586896(_0x57d64f,_0x4f6f6c),this['_update']({'attributes':_0x57d64f});}['_update'](_0xb0d798,_0x3aa777=!0x1){let _0x154f57=!0x1;const _0x3f4d9a={'id':this['id']},_0x182643=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x6dbd21 of _0x182643){const _0x457dfd=_0xb0d798[_0x6dbd21];void 0x0!==_0x457dfd&&_0x457dfd!==this[_0x6dbd21]&&(this[_0x6dbd21]=_0x457dfd,_0x3f4d9a[_0x6dbd21]=_0x457dfd,_0x154f57=!0x0);}_0x154f57&&(_0x3f4d9a['authors']&&(_0x3f4d9a['authorsIds']=_0x3f4d9a['authors']['map'](_0x16ece9=>_0x16ece9['id']),delete _0x3f4d9a['authors']),this['fire']('_update',_0x3f4d9a,_0x3aa777));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x55f871=>_0x55f871['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x417e25{['_revisions'];static get['requires'](){return[_0xce5c9b];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x53f7bf){super(_0x53f7bf),this['_revisions']=new _0x10516c();}['afterInit'](){!async function(_0xaeecf3){const _0x2905dc=_0x4b5ba2([0x51,0x6d,0x59,0x35,0x78,0x4e,0x71,0x6f,0x67,0x7a,0x39,0x31,0x30,0x76,0x47,0x55,0x48,0x65,0x70,0x52,0x54,0x46,0x45,0x34,0x50,0x49,0x61,0x5a,0x4b,0x56,0x6c,0x33,0x4c,0x6b,0x66,0x6a,0x64,0x68,0x4a,0x53,0x6e,0x77,0x36,0x69,0x41,0x37,0x58,0x42,0x73,0x79,0x43,0x4f,0x32,0x62,0x38,0x74,0x72,0x63,0x4d,0x75,0x57,0x44]),_0x13f5eb=0xeb829,_0x22510c=0x4981b689,_0x1539eb=0x4986e9c1^_0x22510c,_0x3b81d1=window[_0x4b5ba2([0x44,0x61,0x74,0x65])][_0x4b5ba2([0x6e,0x6f,0x77])](),_0x1199bc=_0xaeecf3[_0x4b5ba2([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3b95bc=new window[(_0x4b5ba2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5a4008=>{_0x1199bc[_0x4b5ba2([0x6f,0x6e,0x63,0x65])](_0x4b5ba2([0x72,0x65,0x61,0x64,0x79]),_0x5a4008);}),_0x12f5a4={[_0x4b5ba2([0x6b,0x74,0x79])]:_0x4b5ba2([0x45,0x43]),[_0x4b5ba2([0x75,0x73,0x65])]:_0x4b5ba2([0x73,0x69,0x67]),[_0x4b5ba2([0x63,0x72,0x76])]:_0x4b5ba2([0x50,0x2d,0x32,0x35,0x36]),[_0x4b5ba2([0x78])]:_0x4b5ba2([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]),[_0x4b5ba2([0x79])]:_0x4b5ba2([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]),[_0x4b5ba2([0x61,0x6c,0x67])]:_0x4b5ba2([0x45,0x53,0x32,0x35,0x36])},_0x3a72b0=_0x1199bc[_0x4b5ba2([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4b5ba2([0x67,0x65,0x74])](_0x4b5ba2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5ba9fe(){let _0x5ea99f,_0xc9d04=null,_0x288624=null;try{if(_0x3a72b0==_0x4b5ba2([0x47,0x50,0x4c]))return _0x4b5ba2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5ea99f=_0x3488c2(),!_0x5ea99f)return _0x4b5ba2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5ea99f[_0x4b5ba2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x288624=_0x1525aa(_0x5ea99f[_0x4b5ba2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5ea99f[_0x4b5ba2([0x6a,0x74,0x69])])),await _0x40e0c5()?_0x24ea18()?_0x506730()?_0x4b5ba2([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xd6637b()?(_0x5ea99f[_0x4b5ba2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4b5ba2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xc9d04=_0x1a4f0b(_0x4b5ba2([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5ea99f[_0x4b5ba2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4b5ba2([0x74,0x72,0x69,0x61,0x6c])&&(_0xc9d04=_0x1a4f0b(_0x4b5ba2([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x47892e()):_0x4b5ba2([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4b5ba2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4b5ba2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x127856){return _0x4b5ba2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x506730(){const _0x3b0bce=[_0x4b5ba2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4b5ba2([0x74,0x72,0x69,0x61,0x6c])][_0x4b5ba2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ea99f[_0x4b5ba2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3b81d1/0x3e8:0xe10*_0x1539eb;return _0x5ea99f[_0x4b5ba2([0x65,0x78,0x70])]<_0x3b0bce;}function _0x24ea18(){const _0x360e96=_0x5ea99f[_0x4b5ba2([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x360e96)return!0x1;if(_0x360e96[_0x4b5ba2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b5ba2([0x2a])))return!0x0;if(_0x360e96[_0x4b5ba2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b5ba2([0x52,0x48])))return!0x0;if(_0x360e96[_0x4b5ba2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b5ba2([0x52,0x52,0x48]))){if(_0x555f43())return!0x0;if(_0xcd072b()||_0x2a5a99())return!0x0;}return!0x1;}function _0xd6637b(){const _0x400f18=_0x5ea99f[_0x4b5ba2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x400f18||0x0==_0x400f18[_0x4b5ba2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x583740}=new URL(window[_0x4b5ba2([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x400f18[_0x4b5ba2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x583740))return!0x0;const _0x2a06c2=_0x583740[_0x4b5ba2([0x73,0x70,0x6c,0x69,0x74])](_0x4b5ba2([0x2e]));return _0x400f18[_0x4b5ba2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4c6f5a=>_0x4c6f5a[_0x4b5ba2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b5ba2([0x2a])))[_0x4b5ba2([0x6d,0x61,0x70])](_0x5ec55f=>_0x5ec55f[_0x4b5ba2([0x73,0x70,0x6c,0x69,0x74])](_0x4b5ba2([0x2e])))[_0x4b5ba2([0x73,0x6f,0x6d,0x65])](_0x577fbc=>_0x2a06c2[_0x4b5ba2([0x65,0x76,0x65,0x72,0x79])]((_0x8209fe,_0x565127)=>_0x577fbc[_0x565127]===_0x8209fe||_0x577fbc[_0x565127]===_0x4b5ba2([0x2a])));}function _0x47892e(){return _0xc9d04&&_0x288624?new window[(_0x4b5ba2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x12f134,_0x542389)=>{_0xc9d04[_0x4b5ba2([0x74,0x68,0x65,0x6e])](_0x12f134,_0x542389),_0x288624[_0x4b5ba2([0x74,0x68,0x65,0x6e])](_0x3f7b91=>{_0x3f7b91!=_0x4b5ba2([0x56,0x61,0x6c,0x69,0x64])&&_0x12f134(_0x3f7b91);},_0x542389);}):_0xc9d04||_0x288624||_0x4b5ba2([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1525aa(_0x32fa7f,_0x53346c){return new window[(_0x4b5ba2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x62e944=>{if(_0x917917())return _0x62e944(_0x4b5ba2([0x56,0x61,0x6c,0x69,0x64]));_0x17c5f7(),_0x1199bc[_0x4b5ba2([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4b5ba2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x364ced=!0x1;const _0x4d9c1e=_0x2a0190();function _0x4b6af7(_0x599c45){return!!_0x599c45&&(typeof _0x599c45===_0x4b5ba2([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x599c45===_0x4b5ba2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x599c45[_0x4b5ba2([0x74,0x68,0x65,0x6e])]===_0x4b5ba2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x599c45[_0x4b5ba2([0x63,0x61,0x74,0x63,0x68])]===_0x4b5ba2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x42a24b(_0x1ce627){_0x4f9aab(_0x1ce627)[_0x4b5ba2([0x74,0x68,0x65,0x6e])](_0x3ab6da=>{if(!_0x3ab6da||_0x3ab6da[_0x4b5ba2([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4b5ba2([0x6f,0x6b]))return _0x4b5ba2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x114328(_0x1f9339(_0x4d9c1e+_0x53346c))!=_0x3ab6da[_0x4b5ba2([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4b5ba2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4b5ba2([0x56,0x61,0x6c,0x69,0x64]);})[_0x4b5ba2([0x74,0x68,0x65,0x6e])](_0x8e0768=>(_0x4af6e3(),_0x8e0768),()=>{const _0xeb70d9=_0x4cfe64();return null==_0xeb70d9?(_0x4af6e3(),_0x4b5ba2([0x56,0x61,0x6c,0x69,0x64])):_0x4b5ba2(_0x3b81d1-_0xeb70d9>(0x6d8d3289^_0x22510c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4b5ba2([0x74,0x68,0x65,0x6e])](_0x62e944)[_0x4b5ba2([0x63,0x61,0x74,0x63,0x68])](()=>{_0x62e944(_0x4b5ba2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x196da9=0x49b75809^_0x22510c;function _0x4af6e3(){const _0x32106e=_0x4b5ba2([0x6c,0x6c,0x63,0x74,0x2d])+_0x114328(_0x1f9339(_0x32fa7f)),_0x508752=_0x590f18(_0x114328(window[_0x4b5ba2([0x4d,0x61,0x74,0x68])][_0x4b5ba2([0x63,0x65,0x69,0x6c])](_0x3b81d1/_0x196da9)));window[_0x4b5ba2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4b5ba2([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x32106e,_0x508752);}function _0x4cfe64(){const _0x3325f4=_0x4b5ba2([0x6c,0x6c,0x63,0x74,0x2d])+_0x114328(_0x1f9339(_0x32fa7f)),_0x1c3aaa=window[_0x4b5ba2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4b5ba2([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3325f4);return _0x1c3aaa?window[_0x4b5ba2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x590f18(_0x1c3aaa),0x10)*_0x196da9:null;}function _0x4f9aab(_0x2ae5ca){return new window[(_0x4b5ba2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x327824,_0x694d4)=>{_0x2ae5ca[_0x4b5ba2([0x74,0x68,0x65,0x6e])](_0x327824,_0x694d4),window[_0x4b5ba2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x694d4,0x49806249^_0x22510c);});}}_0x1199bc[_0x4b5ba2([0x6f,0x6e])](_0x4b5ba2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x28649f,_0x32d984)=>{if(_0x32d984[0x0]!=_0x32fa7f)return _0x62e944(_0x4b5ba2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x32d984[0x1]={..._0x32d984[0x1],[_0x4b5ba2([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4d9c1e};},{[_0x4b5ba2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4b5ba2([0x68,0x69,0x67,0x68])}),_0x1199bc[_0x4b5ba2([0x6f,0x6e])](_0x4b5ba2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x16e2fb=>{_0x4b6af7(_0x16e2fb[_0x4b5ba2([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x364ced=!0x0,_0x42a24b(_0x16e2fb[_0x4b5ba2([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4b5ba2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4b5ba2([0x6c,0x6f,0x77])}),_0x3b95bc[_0x4b5ba2([0x74,0x68,0x65,0x6e])](()=>{_0x364ced||_0x62e944(_0x4b5ba2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x917917(){return _0x1199bc[_0x4b5ba2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4b5ba2([0x76,0x69,0x65,0x77])][_0x4b5ba2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4b5ba2([0x61,0x75,0x74,0x6f]);}function _0x17c5f7(){_0x1199bc[_0x4b5ba2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4b5ba2([0x76,0x69,0x65,0x77])][_0x4b5ba2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4b5ba2([0x61,0x75,0x74,0x6f]);}}function _0x1a4f0b(_0x5692b9){const _0x3ac877=[new window[(_0x4b5ba2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x51348f=>setTimeout(_0x51348f,0x49888845^_0x22510c)),_0x3b95bc[_0x4b5ba2([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4b5ba2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2a449e=>{const _0x460a6c=0x4981b68e^_0x22510c,_0xd05392=_0xaeecf3[_0x4b5ba2([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x155d13(){_0xd05392[_0x4b5ba2([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x460a6c&&_0x2a449e();}_0x155d13(),_0xd05392[_0x4b5ba2([0x6f,0x6e])](_0x4b5ba2([0x61,0x64,0x64]),_0x155d13);})),new window[(_0x4b5ba2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2e585d=>{function _0x2d4926(){for(const _0x2bcaa3 in window)if(window[_0x4b5ba2([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x4b5ba2([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x2bcaa3))&&window[_0x2bcaa3]==_0x13f5eb)return _0x2e585d();_0x1199bc[_0x4b5ba2([0x73,0x74,0x61,0x74,0x65])]!=_0x4b5ba2([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x4b5ba2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2d4926,0x4981a501^_0x22510c);}_0x169929(_0x4b5ba2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x2d4926();})];return window[_0x4b5ba2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4b5ba2([0x72,0x61,0x63,0x65])](_0x3ac877)[_0x4b5ba2([0x74,0x68,0x65,0x6e])](()=>_0x5692b9);}async function _0x1f8562(){if(await _0x3b95bc,_0x169929(_0x4b5ba2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x4076a7=_0xaeecf3[_0x4b5ba2([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x833f53=_0xaeecf3[_0x4b5ba2([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])](_0x4076a7[_0x4b5ba2([0x69,0x64])]),_0x10f1bd=_0x1f9a87(_0x4b5ba2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x10f1bd[_0x4b5ba2([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x4076a7['id'],_0x833f53?_0x833f53['id']:null,!0x0),_0x10f1bd[_0x4b5ba2([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4b5ba2([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x10f1bd[_0x4b5ba2([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x10f1bd[_0x4b5ba2([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x261543,void(_0x10f1bd[_0x4b5ba2([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x261543);}if(_0x169929(_0x4b5ba2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x11a71f=_0x1f9a87(_0x4b5ba2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x11a71f[_0x4b5ba2([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4b5ba2([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x11a71f[_0x4b5ba2([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x11a71f[_0x4b5ba2([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x261543,_0x11a71f[_0x4b5ba2([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x261543;}_0x1199bc[_0x4b5ba2([0x6d,0x6f,0x64,0x65,0x6c])][_0x4b5ba2([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x261543,_0x1199bc[_0x4b5ba2([0x6d,0x6f,0x64,0x65,0x6c])][_0x4b5ba2([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x261543,_0x1199bc[_0x4b5ba2([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4b5ba2([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x555f43(){return _0x169929(_0x4b5ba2([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1f9a87(_0x4b5ba2([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4b5ba2([0x73,0x74,0x61,0x74,0x65])]==_0x4b5ba2([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0xcd072b(){return _0x169929(_0x4b5ba2([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 _0x2a5a99(){return _0x169929(_0x4b5ba2([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1f9702(_0x139574){const _0x1c1001=_0x5cf888();_0x1199bc[_0x1c1001]=_0x4b5ba2([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])+_0x139574,_0x139574[_0x4b5ba2([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x4b5ba2([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x5cf888()]=_0x13f5eb),_0x139574!=_0x4b5ba2([0x56,0x61,0x6c,0x69,0x64])&&_0x1f8562();}function _0x5cf888(){const _0x19a78b=window[_0x4b5ba2([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4b5ba2([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4b5ba2([0x6e,0x6f,0x77])]())[_0x4b5ba2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4b5ba2([0x2e]),'');let _0x105269=_0x4b5ba2([0x51]);for(let _0x443ebe=0x0;_0x443ebe<_0x19a78b[_0x4b5ba2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x443ebe+=0x2){let _0x1e9777=window[_0x4b5ba2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x19a78b[_0x4b5ba2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x443ebe,_0x443ebe+0x2));_0x1e9777>=_0x2905dc[_0x4b5ba2([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1e9777-=_0x2905dc[_0x4b5ba2([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x105269+=_0x2905dc[_0x1e9777];}return _0x105269;}function _0x3488c2(){const _0x365d83=_0x3a72b0[_0x4b5ba2([0x73,0x70,0x6c,0x69,0x74])](_0x4b5ba2([0x2e]));if(0x3!=_0x365d83[_0x4b5ba2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x447077(_0x365d83[0x1]);function _0x447077(_0x142b2b){const _0x526da5=_0x3a9c31(_0x142b2b);return _0x526da5&&_0x149a0f()?_0x526da5:null;function _0x149a0f(){const _0x4c2513=_0x526da5[_0x4b5ba2([0x6a,0x74,0x69])],_0x2270fb=window[_0x4b5ba2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4c2513[_0x4b5ba2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4c2513[_0x4b5ba2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x58d955={..._0x526da5,[_0x4b5ba2([0x6a,0x74,0x69])]:_0x4c2513[_0x4b5ba2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4c2513[_0x4b5ba2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x58d955[_0x4b5ba2([0x76,0x63])],_0x1f9339(_0x58d955)==_0x2270fb;}}}async function _0x40e0c5(){let _0x4dc270=!0x0;try{const _0x1000b6=_0x3a72b0[_0x4b5ba2([0x73,0x70,0x6c,0x69,0x74])](_0x4b5ba2([0x2e])),[_0x356ae2,_0x47334f,_0x338c81]=_0x1000b6;return _0xee93cd(_0x356ae2),await _0x83f51d(_0x356ae2,_0x47334f,_0x338c81),_0x4dc270;}catch(_0x3934d4){return!0x1;}function _0xee93cd(_0x1bde86){const _0x431dd0=_0x3a9c31(_0x1bde86);_0x431dd0&&_0x431dd0[_0x4b5ba2([0x61,0x6c,0x67])]==_0x4b5ba2([0x45,0x53,0x32,0x35,0x36])||(_0x4dc270=!0x1);}async function _0x83f51d(_0x3f46af,_0x4ff688,_0x5d9d2f){const _0x5c65df=window[_0x4b5ba2([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4b5ba2([0x66,0x72,0x6f,0x6d])](_0x2f1e2b(_0x5d9d2f),_0x36d17e=>_0x36d17e[_0x4b5ba2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x182ae3=new window[(_0x4b5ba2([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4b5ba2([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3f46af+_0x4b5ba2([0x2e])+_0x4ff688),_0x1444c2=window[_0x4b5ba2([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4b5ba2([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1444c2)return;const _0x127abf=await _0x1444c2[_0x4b5ba2([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4b5ba2([0x6a,0x77,0x6b]),_0x12f5a4,{[_0x4b5ba2([0x6e,0x61,0x6d,0x65])]:_0x4b5ba2([0x45,0x43,0x44,0x53,0x41]),[_0x4b5ba2([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4b5ba2([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4b5ba2([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1444c2[_0x4b5ba2([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4b5ba2([0x6e,0x61,0x6d,0x65])]:_0x4b5ba2([0x45,0x43,0x44,0x53,0x41]),[_0x4b5ba2([0x68,0x61,0x73,0x68])]:{[_0x4b5ba2([0x6e,0x61,0x6d,0x65])]:_0x4b5ba2([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x127abf,_0x5c65df,_0x182ae3)||(_0x4dc270=!0x1);}}function _0x3a9c31(_0x3c2faa){return _0x3c2faa[_0x4b5ba2([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4b5ba2([0x65,0x79]))?JSON[_0x4b5ba2([0x70,0x61,0x72,0x73,0x65])](_0x2f1e2b(_0x3c2faa)):null;}function _0x2f1e2b(_0x26bc27){return window[_0x4b5ba2([0x61,0x74,0x6f,0x62])](_0x26bc27[_0x4b5ba2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4b5ba2([0x2b]))[_0x4b5ba2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4b5ba2([0x2f])));}function _0x1f9339(_0x70120d){let _0x567350=0x1505;function _0x57747a(_0x559e08){for(let _0x4d3830=0x0;_0x4d3830<_0x559e08[_0x4b5ba2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4d3830++){const _0x50a0c9=_0x559e08[_0x4b5ba2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4d3830);_0x567350=(_0x567350<<0x5)+_0x567350+_0x50a0c9,_0x567350&=_0x567350;}}function _0x572d86(_0xfc3c0b){Array[_0x4b5ba2([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xfc3c0b)?_0xfc3c0b[_0x4b5ba2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x572d86):_0xfc3c0b&&typeof _0xfc3c0b==_0x4b5ba2([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4b5ba2([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xfc3c0b)[_0x4b5ba2([0x73,0x6f,0x72,0x74])]()[_0x4b5ba2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4539ef,_0x320412])=>{_0x57747a(_0x4539ef),_0x572d86(_0x320412);}):_0x57747a(window[_0x4b5ba2([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xfc3c0b));}return _0x572d86(_0x70120d),_0x567350>>>0x0;}function _0x114328(_0x11e125){return _0x11e125[_0x4b5ba2([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4b5ba2([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4b5ba2([0x30]));}function _0x590f18(_0x102402){return _0x102402[_0x4b5ba2([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4b5ba2([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4b5ba2([0x6a,0x6f,0x69,0x6e])]('');}function _0x169929(_0x19e02e){return _0x1199bc[_0x4b5ba2([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4b5ba2([0x68,0x61,0x73])](_0x19e02e);}function _0x1f9a87(_0x33286f){return _0x1199bc[_0x4b5ba2([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4b5ba2([0x67,0x65,0x74])](_0x33286f);}function _0x261543(){}function _0x4b5ba2(_0x53650a){return _0x53650a['map'](_0x206b6e=>String['fromCharCode'](_0x206b6e))['join']('');}_0x1f9702(await _0x5ba9fe());}(this);}['createRevision'](_0x2b3047){const _0xa3e473=this['editor']['plugins']['get']('Users');return new a({'id':_0x2b3047['id'],'name':_0x2b3047['name'],'creator':_0x2b3047['creatorId']?_0xa3e473['getUser'](_0x2b3047['creatorId']):null,'diffData':_0x2b3047['diffData']||_0x2b3047['data'],'authors':_0x2b3047['authorsIds']['map'](_0x4341cd=>_0xa3e473['getUser'](_0x4341cd)),'createdAt':new Date(_0x2b3047['createdAt']),'attributes':_0x2b3047['attributes'],'fromVersion':_0x2b3047['fromVersion'],'toVersion':_0x2b3047['toVersion']});}['addRevision'](_0x2125c7,_0x36a65b=0x0){this['_revisions']['add'](_0x2125c7,_0x36a65b);}['getRevision'](_0x380edd){return this['_revisions']['get'](_0x380edd);}['getRevisions'](_0x8b252f={'toJSON':!0x1}){const _0x4a28d3=Array['from'](this['_revisions']);return _0x4a28d3['reverse'](),_0x8b252f['toJSON']?_0x4a28d3['map'](_0x29ef04=>_0x29ef04['toJSON']()):_0x4a28d3;}['getIndex'](_0x226d3f){return this['_revisions']['getIndex'](_0x226d3f);}['getEarlierVisibleRevision'](_0x510afa){const [,_0x10a747]=this['getRevisionsIterator'](_0x510afa,{'direction':'earlier'});return _0x10a747;}['getLaterVisibleRevision'](_0x20dc06){const [,_0x137e64]=this['getRevisionsIterator'](_0x20dc06,{'direction':'later'});return _0x137e64;}['getRevisionsInDiff'](_0x77e835){const _0x4fb8cc=[];for(const _0x59fef1 of this['getRevisionsIterator'](_0x77e835['newRevisionId']))if(_0x4fb8cc['push'](_0x59fef1),_0x59fef1['id']===_0x77e835['oldRevisionId'])break;return _0x4fb8cc;}*['getRevisionsIterator'](_0x2d9aa7,{direction:_0x1bfe18='earlier',filter:_0x527152=()=>!0x0}={}){const _0x5810f1='earlier'===_0x1bfe18?0x1:-0x1;let _0x571f79=this['_revisions']['get'](_0x2d9aa7),_0x549f9f=this['getIndex'](_0x571f79);for(yield _0x571f79;_0x571f79;){if(_0x549f9f+=_0x5810f1,_0x571f79=this['getRevision'](_0x549f9f),!_0x571f79)return;_0x527152(_0x571f79)&&(yield _0x571f79);}}}function m(_0x3c0ed8,_0x1a8954,_0x32e891){const t=_0x3c0ed8['t'];switch(_0x1a8954){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'},_0x32e891);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x32e891);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':_0x306303,'a':_0x15c3ec,'e':_0x563432,'r':_0x2ff39b,'u':_0x1f63be};class l extends _0x417e25{['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[_0xce5c9b,j,_0x37e6c8];}constructor(_0x2ae8f0){super(_0x2ae8f0),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 _0x401e95=_0x2a0190();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x401e95},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 _0x3e40ea=this['repository']['getRevision'](0x0),_0x54f90c=_0x3e40ea&&null===_0x3e40ea['creator']?_0x3e40ea:null;if(this['_continueCurrentRevision']=!!_0x54f90c&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x21f17e=this['_source']['getCurrentRevisionId'](),_0x128aeb=this['repository']['getRevision'](_0x21f17e);if(_0x128aeb)this['_startingVersion']=_0x128aeb['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x1199db=this['_source']['history']['_operations']['find'](_0x43324f=>!_0x43324f['_isInit']),_0xe613e0=_0x1199db?_0x1199db['baseVersion']:this['_source']['history']['version'];_0x3e40ea?(_0x3e40ea['toVersion']<_0xe613e0&&_0x3e40ea['_update']({'toVersion':_0xe613e0}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x54f90c['id'],this['_startingVersion']=_0x54f90c['fromVersion']):(this['_startingVersion']=_0x3e40ea['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0xe613e0,this['_continueCurrentRevision']=!0x1);}}else _0x54f90c&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x54f90c['toVersion'],this['editor']['model']['document']['history']['version']),_0x54f90c['fromVersion']===_0x54f90c['toVersion']?(0x0!==_0x54f90c['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x54f90c['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x54f90c['id'],this['_startingVersion']=_0x54f90c['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',_0x4248a7=>!_0x4248a7),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x246d16=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x171672;for(const _0xe1d359 in _0x246d16){const _0x326caf=_0xe1d359,_0x572b61=_0x246d16[_0x326caf];if('revisionHistoryLicenseKeyValid'==_0x572b61||'revisionHistoryLicenseKeyInvalid'==_0x572b61||'revisionHistoryLicenseKeyExpired'==_0x572b61||'revisionHistoryLicenseKeyDomainLimit'==_0x572b61||'revisionHistoryLicenseKeyNotAllowed'==_0x572b61||'revisionHistoryLicenseKeyEvaluationLimit'==_0x572b61||'revisionHistoryLicenseKeyTrialLimit'==_0x572b61||'revisionHistoryLicenseKeyUsageLimit'==_0x572b61){delete _0x246d16[_0x326caf],_0x171672=_0x572b61,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x171672&&_0x246d16['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x171672&&_0x246d16['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x171672&&_0x246d16['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x171672&&_0x246d16['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x171672&&_0x246d16['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x171672&&_0x246d16['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x171672&&_0x246d16['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x13a2a9=this['repository']['getRevision'](0x0),_0x254ac5=await this['getRevisionDocumentData'](_0x13a2a9),_0x31dedc=await this['getRevisionRootsAttributes'](_0x13a2a9);this['_replaceEditorDataWithRevisionData'](_0x254ac5,_0x31dedc);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x10f3d6){this['_source']=_0x10f3d6;}async['update'](){const _0x261b44=await this['_source']['getLatestVersion']();if(_0x261b44>this['currentRevision']['toVersion']){await this['_loadState']();const _0x26512f=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x261b44});_0x26512f['authors']=_0x26512f['authorsIds']['map'](_0x58fed3=>this['editor']['plugins']['get']('Users')['getUser'](_0x58fed3)),this['currentRevision']['_update'](_0x26512f);}}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'](_0x592a1e={},_0x30534a=null){const _0x23636a=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x30534a>this['currentRevision']['toVersion']&&(_0x30534a=null),null===_0x30534a&&(_0x30534a=await this['_source']['getLatestVersion']());const _0x258c6f=this['_getFromVersion'](_0x30534a),_0x37b42e=this['buildRevisionData']({'from':_0x258c6f,'to':_0x30534a});if(this['currentRevision']['toVersion']<_0x30534a){const _0x5c47e0=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x30534a,'to':_0x30534a});_0x5c47e0['authors']=[],_0x5c47e0['authorsIds']=[],_0x5c47e0['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x5c47e0,!0x0),delete _0x5c47e0['authors'],_0x23636a['push'](_0x5c47e0);}_0x592a1e['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x592a1e['name']=_0x592a1e['name']||null,_0x592a1e['id']=_0x592a1e['id']||_0x2a0190(),_0x592a1e={..._0x592a1e,..._0x37b42e};const _0x459f92=this['addRevisionData'](_0x592a1e);_0x23636a['push'](_0x592a1e);const _0x5c4746=this['repository']['getIndex'](_0x459f92);if(0x0!==_0x5c4746){const _0x3a086d=this['repository']['getRevision'](_0x5c4746-0x1);if(_0x3a086d['fromVersion']!==_0x30534a){const _0x407ac5=this['_revisionDataBuilder']['getData'](_0x30534a,_0x3a086d['toVersion']),_0x562ee8={'id':_0x3a086d['id'],'diffData':_0x407ac5['diffData'],'authorsIds':_0x407ac5['authorsIds'],'authors':_0x407ac5['authorsIds']['map'](_0x14a5ff=>this['editor']['plugins']['get']('Users')['getUser'](_0x14a5ff)),'fromVersion':_0x30534a};_0x3a086d===this['currentRevision']&&(_0x562ee8['createdAt']=new Date(_0x592a1e['createdAt']['getTime']()+0xa)),_0x3a086d['_update'](_0x562ee8,!0x0),delete _0x562ee8['authors'],_0x23636a['push'](_0x562ee8);}}if(this['adapter']){for(const _0x50565a of _0x23636a)this['_bufferUpdate'](_0x50565a['id'],_0x50565a,!0x0);this['sendBufferedUpdates']();}return _0x459f92;}['addRevisionData'](_0x16f35f){const _0x59e93b=this['repository']['createRevision'](_0x16f35f);return this['adapter']&&_0x59e93b['on']('_update',(_0x4e9029,_0x49abcd,_0x21df6e)=>{_0x21df6e||(this['_bufferUpdate'](_0x49abcd['id'],_0x49abcd,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x59e93b,this['_findInsertionIndex'](_0x59e93b)),_0x59e93b;}async['getRevisionDocumentData'](_0x2fa378){await this['_loadRevisionData'](_0x2fa378);const _0x2f968d={};for(const _0x133e15 in _0x2fa378['diffData']){if(_0x2fa378['diffData'][_0x133e15]['attachChange']&&!_0x2fa378['diffData'][_0x133e15]['attachChange']['isAttached'])continue;const _0x4656ac=this['_removeRevisionMarkers'](JSON['parse'](_0x2fa378['diffData'][_0x133e15]['insertions'])),_0x18c4fc=this['editor']['editing']['view']['document'],_0x88d172=new _0x47c620(_0x18c4fc,_0x4656ac['map'](_0x1e2503=>C(_0x1e2503,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x2f968d[_0x133e15]=this['editor']['data']['processor']['toData'](_0x88d172),this['editor']['data']['processor']['useFillerType']('default');}return _0x2f968d;}async['getRevisionRootsAttributes'](_0x32b7b2){await this['_loadRevisionData'](_0x32b7b2);const _0x3b66ca={};for(const _0x166b47 in _0x32b7b2['diffData'])_0x32b7b2['diffData'][_0x166b47]['attachChange']&&!_0x32b7b2['diffData'][_0x166b47]['attachChange']['isAttached']||(_0x3b66ca[_0x166b47]=_0x32b7b2['diffData'][_0x166b47]['attributesAfter']||{});return _0x3b66ca;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0xefef34=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x5b0b6b=0x0;_0x5b0b6b<_0xefef34['length'];_0x5b0b6b++){const _0x18ea39=_0xefef34[_0x5b0b6b];let _0x2782d1=!0x1;for(const _0x6ca086 of Object['keys'](_0x18ea39))void 0x0===_0x18ea39[_0x6ca086]?delete _0x18ea39[_0x6ca086]:'id'!==_0x6ca086&&(_0x2782d1=!0x0);_0x2782d1||(_0xefef34[_0x5b0b6b]=null);}if(_0xefef34=_0xefef34['filter'](_0x1ec2ca=>null!==_0x1ec2ca),!_0xefef34['length'])return;for(let _0x4061c4=0x0;_0x4061c4<_0xefef34['length'];_0x4061c4++){const _0x35bb63=_0xefef34[_0x4061c4];void 0x0!==_0x35bb63['fromVersion']&&void 0x0===_0x35bb63['toVersion']&&(_0x35bb63['toVersion']=this['repository']['getRevision'](_0x35bb63['id'])['toVersion']),void 0x0!==_0x35bb63['toVersion']&&void 0x0===_0x35bb63['fromVersion']&&(_0x35bb63['fromVersion']=this['repository']['getRevision'](_0x35bb63['id'])['fromVersion']);}const _0x28bf5e=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0xefef34,_0x28bf5e)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x1ff3b3=>{if(_0x1ff3b3){for(const _0x495504 of _0x1ff3b3)this['setRevisionData']({'id':_0x495504['id'],'createdAt':_0x495504['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x20f88e,_0x1804a7){let _0x2fa237=this['editor']['config']['get']('initialData'),_0x48a3b3=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x2fa237){_0x2fa237={};for(const _0x570181 of this['editor']['model']['document']['getRootNames']())_0x2fa237[_0x570181]='';}if('string'==typeof _0x2fa237&&(_0x2fa237={'main':_0x2fa237}),void 0x0===_0x48a3b3){_0x48a3b3={};for(const _0x3878f5 of this['editor']['model']['document']['getRootNames']())_0x48a3b3[_0x3878f5]={};}let _0x21b4f4=!0x1;const _0x57bc34=Object['keys'](_0x2fa237),_0x421659=Object['keys'](_0x20f88e);for(const _0x2d9d4d of _0x57bc34){if(_0x2fa237[_0x2d9d4d]!==_0x20f88e[_0x2d9d4d]&&''!==_0x2fa237[_0x2d9d4d]['trim']()){_0x21b4f4=!0x0;break;}if(!_0x30663f(_0x48a3b3[_0x2d9d4d],_0x1804a7[_0x2d9d4d])&&Object['keys'](_0x48a3b3[_0x2d9d4d])['length']>0x0){_0x21b4f4=!0x0;break;}}_0x21b4f4||(_0x21b4f4=_0x421659['some'](_0x5bc37f=>!this['editor']['model']['document']['getRoot'](_0x5bc37f))),_0x21b4f4&&_0x302d86('editor-initial-data-replaced-with-revision-data',{'editorData':_0x2fa237,'editorRootsAttributes':_0x48a3b3,'revisionData':_0x20f88e,'revisionRootsAttributes':_0x1804a7}),this['editor']['config']['set']('initialData',_0x20f88e),this['editor']['config']['set']('rootsAttributes',_0x1804a7);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x29f58d=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x29f58d['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x541d3c){const _0x4fb62c=this['repository']['getRevisions']();_0x4fb62c['reverse']();let _0x2ad3ac=0x0;for(;_0x2ad3ac<_0x4fb62c['length'];){const _0x5a6152=_0x4fb62c[_0x2ad3ac];if(_0x5a6152===this['currentRevision']){_0x2ad3ac++;continue;}if(_0x5a6152['id']===this['_initialRevisionId'])break;const _0x446c1d=_0x541d3c['toVersion']-_0x5a6152['toVersion']||_0x541d3c['fromVersion']-_0x5a6152['fromVersion'];if(_0x446c1d>0x0)break;if(_0x446c1d<0x0)_0x2ad3ac++;else{if(!_0x541d3c['creator']&&_0x5a6152['creator'])break;if(_0x5a6152['creator']||!_0x541d3c['creator']){if(_0x541d3c['createdAt']>_0x5a6152['createdAt'])break;_0x2ad3ac++;}else _0x2ad3ac++;}}return _0x2ad3ac;}['setRevisionData'](_0xe47975){const _0x5416a4=this['repository']['getRevision'](_0xe47975['id']);if(_0xe47975['createdAt']&&(_0xe47975['createdAt']=new Date(_0xe47975['createdAt'])),_0xe47975['authorsIds']){const _0x325762=this['editor']['plugins']['get']('Users');_0xe47975['authors']=_0xe47975['authorsIds']['map'](_0x371f57=>_0x325762['getUser'](_0x371f57));}_0x5416a4['_update'](_0xe47975,!0x0);}['buildRevisionData']({revision:_0x3a246a=null,from:_0x5f9bec=null,to:_0x5cbf43=null}){_0x5f9bec=null!==_0x5f9bec?_0x5f9bec:_0x3a246a['fromVersion'],_0x5cbf43=null!==_0x5cbf43?_0x5cbf43:_0x3a246a['toVersion'];const _0x2a9434=this['_revisionDataBuilder']['getData'](_0x5f9bec,_0x5cbf43),_0x42901f={'diffData':_0x2a9434['diffData'],'authorsIds':_0x2a9434['authorsIds'],'fromVersion':_0x5f9bec,'toVersion':_0x5cbf43};if(!_0x3a246a||_0x5cbf43!==_0x3a246a['toVersion']){const _0x1114a2=_0x5cbf43-0x1,_0x9e4f13=this['_source']['history']['getOperation'](_0x1114a2);_0x42901f['createdAt']=_0x9e4f13&&_0x9e4f13['createdAt']||new Date();}if(this['_loadedStateData']&&_0x5f9bec===this['_loadedStateData']['fromVersion']){for(const _0x57376c of this['_loadedStateData']['authors'])_0x42901f['authorsIds']['includes'](_0x57376c['id'])||_0x42901f['authorsIds']['push'](_0x57376c['id']);}return _0x42901f;}['_loadRevisionData'](_0x4386f5){if(!_0x4386f5||_0x4386f5['diffData'])return Promise['resolve']();{const _0x2531d3=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x2531d3,'revisionId':_0x4386f5['id']})['then'](_0x25b89f=>{_0x4386f5['diffData']=_0x25b89f['diffData'];});}}['_bufferUpdate'](_0x370335,_0x48eaf9,_0x293030){if(this['_bufferedUpdates']['has'](_0x370335)){const _0x2cb379=this['_bufferedUpdates']['get'](_0x370335);_0x48eaf9=_0x293030?{..._0x2cb379,..._0x48eaf9}:{..._0x48eaf9,..._0x2cb379};}this['_bufferedUpdates']['set'](_0x370335,_0x48eaf9);}['_getFromVersion'](_0x55fdb4){const _0x460878=this['repository']['getRevisions']();_0x460878['reverse'](),_0x460878['shift']();const _0x31bf12=_0x460878['find'](_0x536574=>_0x536574['toVersion']<=_0x55fdb4)['toVersion'];return _0x31bf12<this['_startingVersion']?this['_startingVersion']:_0x31bf12;}['_createInitialRevision'](_0x51085b){const _0x4e0cab=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x4e0cab)this['_initialRevisionId']=_0x4e0cab['id'];else{const _0xf62e3e=!this['editor']['model']['document']['roots']['find'](_0xa6c859=>this['editor']['model']['hasContent'](_0xa6c859)),_0x205544=this['editor']['plugins']['get']('Users')['me']['id'],_0xb749f4=m(this['editor']['locale'],_0xf62e3e?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x51085b,'to':_0x51085b,'id':this['_initialRevisionId'],'name':_0xb749f4,'creatorId':_0x205544});}}['_createCurrentRevision'](_0x48943c){const _0x31f46d=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x31f46d),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x48943c,'to':_0x48943c,'id':_0x31f46d,'name':'','creatorId':null}));}['_makeRevision']({name:_0xc27f99,from:_0x4332ff,to:_0x35eae6,creatorId:_0x39b8ed,id:_0x57567a}){const _0x4a4525=this['buildRevisionData']({'from':_0x4332ff,'to':_0x35eae6});_0x4a4525['name']=_0xc27f99,_0x4a4525['creatorId']=_0x39b8ed,_0x4a4525['id']=_0x57567a;const _0x371a7c=this['addRevisionData'](_0x4a4525);return this['adapter']&&this['_bufferUpdate'](_0x4a4525['id'],_0x4a4525,!0x0),_0x371a7c;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0xa48f66){return(_0xa48f66=_0xa48f66['filter'](_0xa45f25=>!_0xa45f25['name']||'revision-start'!==_0xa45f25['name']&&'revision-end'!==_0xa45f25['name']))['forEach'](_0x2d46b3=>{'string'!=typeof _0x2d46b3&&(_0x2d46b3['children']=this['_removeRevisionMarkers'](_0x2d46b3['children']),_0x2d46b3['attributes']=_0x2d46b3['attributes']['filter'](_0xd501d7=>!_0xd501d7[0x0]['startsWith']('data-revision-')));}),_0xa48f66;}}function C(_0x448431,_0x2a74c2){const _0xe00187=_0x2a74c2['editing']['view']['document'];if('string'==typeof _0x448431)return new _0x468e6d(_0xe00187,_0x448431);{const _0x561c90=_0x448431['children']['map'](_0x36c15f=>C(_0x36c15f,_0x2a74c2));return new(P[_0x448431['type']]||_0xd24324)(_0xe00187,_0x448431['name'],_0x448431['attributes'],_0x561c90);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x27707c){this['editor']=_0x27707c,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'](_0x54ed66){this['source']=_0x54ed66;const _0x185b93=new Map(),_0x134361=new Map(),_0x45c95e=this['editor']['model']['document']['roots']['map'](_0x41c234=>_0x41c234['rootName']);for(const _0xcf47d6 of _0x45c95e){const _0x6bef32=this['editor']['model']['document']['getRoot'](_0xcf47d6),_0xa15755=T(_0x6bef32);_0x185b93['set'](_0xcf47d6,_0xa15755),_0x134361['set'](_0xcf47d6,Object['fromEntries'](_0x6bef32['getAttributes']()));}const _0x350381=Array['from'](this['editor']['model']['markers'])['map'](_0x20506b=>[_0x20506b['name'],_0x20506b['getRange']()]),_0x15b186=this['source']['version'];this['_saveMetaData'](_0x15b186,_0x185b93,_0x350381,_0x134361),this['_startingRevisionId']=this['_revisionId'];const _0xe97cdd=new Map(),_0x3e602a=new Map();for(const _0x1ee9a0 of _0x45c95e){const _0x447c99=F(_0x1ee9a0);_0xe97cdd['set'](_0x1ee9a0,_0x447c99),_0x3e602a['set'](_0x1ee9a0,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0xe97cdd,[],_0x3e602a);}['getData'](_0x28de56,_0x4c0284){if(this['_lastFrom']===_0x28de56&&this['_lastTo']<=_0x4c0284)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x4c0284,!0x0);else{if(!this['_savedMetaData']['has'](_0x28de56)){const _0xc205df=this['_getPreviousFrom'](_0x28de56);this['_calculateMetaData'](_0xc205df,_0x28de56,!0x1);}this['_calculateMetaData'](_0x28de56,_0x4c0284,!0x0);}return this['_lastFrom']=_0x28de56,this['_lastTo']=_0x4c0284,this['_getState']();}['loadState'](_0xc59c5c){this['_reset'](),this['_lastFrom']=_0xc59c5c['fromVersion'],this['_lastTo']=_0xc59c5c['toVersion'];for(const _0x13cd16 in _0xc59c5c['diffData']){const _0x4371ab=_0xc59c5c['diffData'][_0x13cd16]['attachChange'],_0x2938d2=_0x582feb(_0xc59c5c['diffData'][_0x13cd16]['attributesBefore'])||{},_0x413387=this['_makeModelFromViewString'](_0xc59c5c['diffData'][_0x13cd16]['deletions']);_0x413387['rootName']=_0x13cd16,_0x413387['_isAttached']=!_0x4371ab||!_0x4371ab['isAttached'],_0x413387['isAttached']=()=>_0x413387['_isAttached'],this['_baseRoots']['set'](_0x13cd16,_0x413387),this['_baseRootsAttributes']['set'](_0x13cd16,_0x2938d2),_0x4371ab&&this['_touchedRoots']['set'](_0x13cd16,_0x4371ab);const _0x2a2081=this['_makeIdsRoot'](_0x413387);this['_baseIdsRoots']['set'](_0x13cd16,_0x2a2081);for(const [_0x57eb31,_0x24f396]of _0x413387['markers']){if(!_0x57eb31['startsWith']('revision:'))continue;const _0x1e13ae=_0x57eb31['split'](':')[0x2];for(const _0x365289 of _0x24f396['getWalker']({'singleCharacters':!0x0})){const _0x50d60a=this['_getVidAttributeName'](_0x365289),_0x2e4e40='elementEnd'==_0x365289['type']?_0x365289['previousPosition']['path']['slice'](0x0,-0x1):_0x365289['previousPosition']['path'],_0x2db5e2=_0x2a2081['getNodeByPath'](_0x2e4e40)['getAttribute'](_0x50d60a);this['_touched']['set'](_0x2db5e2,{'userId':_0x1e13ae});}}}this['_startingRevisionId']=this['_revisionId'];const _0x57121f=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x168042=>!this['_touched']['has'](_0x168042));let _0x1b6ef2=0x0;const _0x5a451b=new Map();for(const _0x374aa5 in _0xc59c5c['diffData']){const _0x37b493=_0xc59c5c['diffData'][_0x374aa5]['attachChange'],_0x53b810=_0x582feb(_0xc59c5c['diffData'][_0x374aa5]['attributesAfter'])||{},_0x37ddcc=this['_makeModelFromViewString'](_0xc59c5c['diffData'][_0x374aa5]['insertions']);_0x37ddcc['rootName']=_0x374aa5,_0x37ddcc['_isAttached']=!_0x37b493||_0x37b493['isAttached'],_0x37ddcc['isAttached']=()=>_0x37ddcc['_isAttached'],this['_diffRoots']['set'](_0x374aa5,_0x37ddcc),this['_diffRootsAttributes']['set'](_0x374aa5,_0x53b810);const _0x370f37=this['_makeIdsRoot'](_0x37ddcc,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x374aa5,_0x370f37),_0x5a451b['set'](_0x374aa5,_0x37ddcc['isAttached']()?_0x53b810:{});for(const [_0x204f20,_0x302160]of _0x37ddcc['markers']){if(!_0x204f20['startsWith']('revision:'))continue;const _0x4e8258=_0x204f20['split'](':')[0x2];for(const _0x487a8a of _0x302160['getWalker']({'singleCharacters':!0x0})){const _0x1194a6=this['_getVidAttributeName'](_0x487a8a),_0x521cb4=this['_revisionId']++,_0x4be8a4='elementEnd'==_0x487a8a['type']?_0x487a8a['previousPosition']['path']['slice'](0x0,-0x1):_0x487a8a['previousPosition']['path'];_0x370f37['getNodeByPath'](_0x4be8a4)['_setAttribute'](_0x1194a6,_0x521cb4),this['_touched']['set'](_0x521cb4,{'userId':_0x4e8258});}}for(const _0x2de38a of this['editor']['model']['createRangeIn'](_0x37ddcc)['getWalker']({'singleCharacters':!0x0})){const _0xde4436=this['_getVidAttributeName'](_0x2de38a),_0x6b2b67='elementEnd'==_0x2de38a['type']?_0x2de38a['previousPosition']['path']['slice'](0x0,-0x1):_0x2de38a['previousPosition']['path'],_0x34ed60=_0x370f37['getNodeByPath'](_0x6b2b67);_0x34ed60['getAttribute'](_0xde4436)>0x0||_0x34ed60['_setAttribute'](_0xde4436,_0x57121f[_0x1b6ef2++]);}for(const [_0x35f2e3,_0x288800]of _0x37ddcc['markers'])_0x35f2e3['startsWith']('revision:')||this['_markers']['set'](_0x35f2e3,_0x288800);}const _0x20767c=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x20767c),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x20767c,0x1));const _0x41cac8=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x41cac8),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x41cac8,0x1));const _0x178e4e=Array['from'](this['_diffRoots'])['map'](([_0x4337f7,_0x427c27])=>[_0x4337f7,T(_0x427c27)]);this['_saveMetaData'](this['_lastTo'],_0x178e4e,this['_markers'],_0x5a451b);}['_makeModelFromViewString'](_0x25ad09){const _0x30513d=JSON['parse'](_0x25ad09),_0x35deb4=this['editor']['editing']['view']['document'],_0x3643fd=new _0x47c620(_0x35deb4,_0x30513d['map'](_0x4db6ba=>C(_0x4db6ba,this['editor'])));return this['editor']['data']['toModel'](_0x3643fd);}['_saveMetaData'](_0x250332,_0x4d2566,_0x250038,_0x2d0a2e){const _0x26ff99=new Map(_0x4d2566),_0x3926e3=new Map(_0x582feb(_0x2d0a2e)),_0xc98189=new Map();for(const [_0x59715d,_0x592845]of _0x250038)_0xc98189['set'](_0x59715d,{'start':_0x592845['start']['clone'](),'end':_0x592845['end']['clone'](),'rootName':_0x592845['root']['rootName']});this['_savedMetaData']['set'](_0x250332,{'roots':_0x26ff99,'markers':_0xc98189,'rootsAttributes':_0x3926e3});}['_removeMetaData'](_0xb7268a){this['_savedMetaData']['delete'](_0xb7268a);}['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'](_0x1b56b9,_0x4db590=null){let _0x27b1b2=null;_0x1b56b9['is']('documentFragment')||(_0x27b1b2=new ft(_0x1b56b9['name'],{'vid_start':null===_0x4db590?this['_revisionId']++:_0x4db590++}));const _0x2020b0=[];for(const _0x4cca4e of _0x1b56b9['getChildren']())if(_0x4cca4e['is']('element')){_0x2020b0['push'](this['_makeIdsRoot'](_0x4cca4e,_0x4db590));const _0x23df83=_0x2020b0[_0x2020b0['length']-0x1];null!==_0x4db590&&(_0x4db590=_0x23df83['is']('element','$text')?_0x23df83['getAttribute']('vid')+0x1:_0x23df83['getAttribute']('vid_end')+0x1);}else{for(let _0x55aef6=0x0;_0x55aef6<_0x4cca4e['offsetSize'];_0x55aef6++)_0x2020b0['push'](new ft('$text',{'vid':null===_0x4db590?this['_revisionId']++:_0x4db590++}));}if(_0x1b56b9['is']('documentFragment')){const _0x14ed4d=F(_0x1b56b9['rootName']);return _0x14ed4d['_insertChild'](0x0,_0x2020b0),_0x14ed4d;}return _0x27b1b2['_setAttribute']('vid_end',null===_0x4db590?this['_revisionId']++:_0x4db590++),_0x27b1b2['_insertChild'](0x0,_0x2020b0),_0x27b1b2;}['_calculateMetaData'](_0x4f6bbb,_0x3604ec,_0x37d9bb){this['_reset']();const {roots:_0x388b66,markers:_0x1f4b86,rootsAttributes:_0x1a3c94}=this['_savedMetaData']['get'](_0x4f6bbb);this['_baseRoots']=new Map(_0x388b66),this['_baseRootsAttributes']=new Map(_0x582feb(_0x1a3c94));for(const [_0x849aff,_0x2a4856]of this['_baseRoots'])if('$graveyard'!==_0x849aff&&(this['_diffRoots']['set'](_0x849aff,T(_0x2a4856)),this['_diffRootsAttributes']=new Map(_0x582feb(_0x1a3c94)),_0x37d9bb)){const _0x56ccf6=this['_revisionId'];this['_idsRoots']['set'](_0x849aff,this['_makeIdsRoot'](_0x2a4856)),this['_baseIdsRoots']['set'](_0x849aff,this['_makeIdsRoot'](_0x2a4856,_0x56ccf6));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x37d9bb&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x16c2bd,_0x1a752a]of _0x1f4b86){const _0x26de94=this['_baseRoots']['get'](_0x1a752a['rootName']),_0x359d22=this['_diffRoots']['get'](_0x1a752a['rootName']),_0x2ac894=new vt(this['_fixPosition'](_0x1a752a['start'],_0x26de94),this['_fixPosition'](_0x1a752a['end'],_0x26de94)),_0x177ab9=this['_fixRange'](_0x2ac894,_0x359d22);_0x26de94['markers']['set'](_0x16c2bd,_0x2ac894),this['_markers']['set'](_0x16c2bd,_0x177ab9);}this['_applyOperations'](_0x4f6bbb,_0x3604ec,_0x37d9bb);}['_applyOperations'](_0xb467a0,_0x7659db,_0x48ffe5){for(const _0x1f6aa1 of this['source']['getOperations'](_0xb467a0,_0x7659db))this['_handleOperation'](_0x1f6aa1,_0x48ffe5);for(const _0x3a7c54 of this['_diffRoots']['values']())_0x3a7c54['markers']['clear']();for(const [_0x49a407,_0x57f0f5]of this['_markers']){this['_diffRoots']['get'](_0x57f0f5['root']['rootName'])['markers']['set'](_0x49a407,_0x57f0f5['clone']());}const _0x3feea9=new Map(),_0xbc2d5c=new Map();for(const [_0x34ec4a,_0x32489e]of this['_diffRoots'])_0x3feea9['set'](_0x34ec4a,T(_0x32489e)),_0xbc2d5c['set'](_0x34ec4a,this['_diffRootsAttributes']['get'](_0x34ec4a));this['_saveMetaData'](_0x7659db,_0x3feea9,this['_markers'],_0xbc2d5c);}['_getPreviousFrom'](_0x313d54){const _0x2d4cd3=Array['from'](this['_savedMetaData']['keys']());_0x2d4cd3['sort']((_0x11dc7b,_0x127c06)=>_0x11dc7b-_0x127c06),_0x2d4cd3['reverse']();for(const _0x35ed72 of _0x2d4cd3)if(_0x35ed72<_0x313d54)return _0x35ed72;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x1c5a51,_0x56a192){const _0x59b92f=Array['from'](_0x56a192['markers'])['map'](([_0x298eb3,_0x50096a])=>[_0x298eb3,this['_fixRange'](_0x50096a,_0x1c5a51)]);_0x1c5a51['markers']=new Map(_0x59b92f);}['_transformMarkers'](_0x1d19e3){for(const _0x23b333 of this['_markers']['values']()){const _0x42a3ed=_0x23b333['getTransformedByOperation'](_0x1d19e3),_0x1964f9=vt['_createFromRanges'](_0x42a3ed);_0x23b333['start']=_0x1964f9['start'],_0x23b333['end']=_0x1964f9['end'];}}['_handleOperation'](_0x2e5262,_0x26dbbd){if('addRoot'!=_0x2e5262['type']&&'detachRoot'!=_0x2e5262['type']){if('insert'==_0x2e5262['type']){const _0x10a418=_0x2e5262['position']['root']['rootName'];this['_diffRoots']['has'](_0x10a418)||(this['_diffRoots']['set'](_0x10a418,F(_0x10a418,!0x0)),this['_diffRootsAttributes']['set'](_0x10a418,{}),_0x26dbbd&&this['_idsRoots']['set'](_0x10a418,F(_0x10a418,!0x0)));}else{if('addRootAttribute'==_0x2e5262['type']||'removeRootAttribute'==_0x2e5262['type']||'changeRootAttribute'==_0x2e5262['type'])return void this['_handleRootAttributeOperation'](_0x2e5262);'marker'==_0x2e5262['type']&&this['_handleMarkerOperation'](_0x2e5262);}if('marker'!==_0x2e5262['type']){const _0x22724a=this['_cloneOperation'](_0x2e5262,this['_diffRoots']);_0x22724a['_execute'](),this['_transformMarkers'](_0x22724a);}if(_0x26dbbd)switch(_0x2e5262['type']){case'insert':this['_handleInsertOperation'](_0x2e5262);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x2e5262);break;case'merge':this['_handleMergeOperation'](_0x2e5262);break;case'split':this['_handleSplitOperation'](_0x2e5262);}}else this['_handleRootOperation'](_0x2e5262,_0x26dbbd);}['_cloneOperation'](_0x243e46,_0x306efd){const _0x4c50c8=_0x243e46['clone']();return _0x4c50c8['_authorId']=_0x243e46['_authorId'],this['_fixOperation'](_0x4c50c8,_0x306efd),_0x4c50c8;}['_getBaseVids'](_0x6efc8e){return _0x6efc8e['map'](_0x5c5f03=>{const _0x4f0343=this['_getVidAttributeName'](_0x5c5f03);return Number(_0x5c5f03['item']['getAttribute'](_0x4f0343));});}['_generateTape'](_0x24367f,_0x4cd459){if(_0x24367f['is']('element','$text'))_0x4cd459['push']({'item':_0x24367f,'type':'text'});else{_0x24367f['is']('element')&&_0x4cd459['push']({'item':_0x24367f,'type':'elementStart'});for(const _0x22b65e of _0x24367f['getChildren']())this['_generateTape'](_0x22b65e,_0x4cd459);_0x24367f['is']('element')&&_0x4cd459['push']({'item':_0x24367f,'type':'elementEnd'});}return _0x4cd459;}['_getState'](){const _0x29595c=new Map(this['_touched']),_0x1d8ca2=new Map(_0x29595c),_0x1f9a3f=new Map(),_0x23ebf4={'insertions':{},'deletions':{}},_0x3866e0={'insertions':{},'deletions':{}},_0x4c6016=new Map(),_0x22dc72=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x22dc72['delete']('$graveyard');for(const _0x340cf3 of _0x22dc72){const _0x14cea4=this['_diffRoots']['get'](_0x340cf3)||F(_0x340cf3,!0x1),_0x42f979=this['_baseRoots']['get'](_0x340cf3)||F(_0x340cf3,!0x1);_0x14cea4['isAttached']()||_0x42f979['isAttached']()?(_0x23ebf4['insertions'][_0x340cf3]=T(_0x14cea4),_0x23ebf4['deletions'][_0x340cf3]=T(_0x42f979),this['_copyMarkers'](_0x23ebf4['deletions'][_0x340cf3],_0x42f979),this['_copyMarkers'](_0x23ebf4['insertions'][_0x340cf3],_0x14cea4),_0x3866e0['insertions'][_0x340cf3]=this['_generateTape'](this['_idsRoots']['get'](_0x340cf3),[]),_0x3866e0['deletions'][_0x340cf3]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x340cf3)||F(_0x340cf3,!0x1),[])):_0x22dc72['delete'](_0x340cf3);}for(const _0x501d22 of _0x22dc72){const _0x4e59ce=_0x3866e0['insertions'][_0x501d22];for(const _0x4f356d of _0x4e59ce){const _0x1e6436=this['_getVidAttributeName'](_0x4f356d),_0x4b04c2=_0x4f356d['item']['getAttribute'](_0x1e6436);_0x1d8ca2['delete'](_0x4b04c2),_0x4b04c2>=this['_startingRevisionId']&&_0x1f9a3f['set'](_0x4b04c2,_0x29595c['get'](_0x4b04c2));}}for(const _0x44dd8d of _0x22dc72){const _0x5b2b60=_0x3866e0['insertions'][_0x44dd8d],_0x202601=this['_getBaseVids'](_0x3866e0['deletions'][_0x44dd8d]);let _0x12754a=0x0;for(const _0x290e7c of _0x5b2b60){const _0x150504=this['_getVidAttributeName'](_0x290e7c),_0x11eeac=_0x290e7c['item']['getAttribute'](_0x150504);if(!_0x1f9a3f['has'](_0x11eeac)&&!_0x4c6016['has'](_0x11eeac)){if(_0x1d8ca2['has'](_0x11eeac))_0x12754a++;else{if(_0x11eeac!=_0x202601[_0x12754a]){const _0x5dca33=_0x29595c['get'](_0x11eeac)||_0x29595c['get'](_0x202601[_0x12754a]);for(;_0x11eeac!=_0x202601[_0x12754a];)_0x1d8ca2['has'](_0x202601[_0x12754a])||(_0x4c6016['set'](_0x202601[_0x12754a],_0x5dca33),_0x29595c['set'](_0x202601[_0x12754a],_0x5dca33)),_0x12754a++;}_0x12754a++;}}}}for(const _0x3b8abe of _0x22dc72){const _0x5a1e77=_0x3866e0['insertions'][_0x3b8abe];for(const _0x4d5d91 of _0x5a1e77){const _0x37e4c2=this['_getVidAttributeName'](_0x4d5d91),_0x4926a2=_0x4d5d91['item']['getAttribute'](_0x37e4c2);if(_0x4c6016['has'](_0x4926a2)){const _0x1fa772=_0x4c6016['get'](_0x4926a2);_0x1d8ca2['has'](_0x4926a2)||_0x1d8ca2['set'](_0x4926a2,{..._0x1fa772}),_0x1f9a3f['set'](_0x4926a2,{..._0x1fa772});}}}for(const _0x29004a of _0x1d8ca2['keys']())_0x29004a>=this['_startingRevisionId']&&_0x1d8ca2['delete'](_0x29004a);const _0x255a3a=new Map();for(const _0x331ff3 of _0x22dc72){let _0x70733=_0x3866e0['insertions'][_0x331ff3];for(const _0x1950cf of _0x70733)if(_0x1950cf['item']['is']('element','tableCell')){const _0x18a837=this['_getVidAttributeName'](_0x1950cf),_0x5dc7cd=_0x1950cf['item']['getAttribute'](_0x18a837);if(_0x1f9a3f['has'](_0x5dc7cd)){const _0x2ec209=_0x1950cf['item']['parent']['parent']['getAttribute']('vid_start'),_0x4f3958=_0x255a3a['get'](_0x2ec209)||new Set();_0x4f3958['add'](_0x1f9a3f['get'](_0x5dc7cd)['userId']),_0x255a3a['set'](_0x2ec209,_0x4f3958);}}_0x70733=_0x3866e0['deletions'][_0x331ff3];for(const _0x373d5a of _0x70733)if(_0x373d5a['item']['is']('element','tableCell')){const _0x312e3f=this['_getVidAttributeName'](_0x373d5a),_0xf362e=_0x373d5a['item']['getAttribute'](_0x312e3f);if(_0x1d8ca2['has'](_0xf362e)){const _0x2b3e93=_0x373d5a['item']['parent']['parent']['getAttribute']('vid_start'),_0xd90501=_0x255a3a['get'](_0x2b3e93)||new Set();_0xd90501['add'](_0x1d8ca2['get'](_0xf362e)['userId']),_0x255a3a['set'](_0x2b3e93,_0xd90501);}}for(const _0x59e2a1 of _0x255a3a['keys']())(_0x1f9a3f['has'](_0x59e2a1)||_0x1d8ca2['has'](_0x59e2a1))&&_0x255a3a['delete'](_0x59e2a1);}for(const _0x144e7b of _0x22dc72){const _0xc68ce2=_0x3866e0['insertions'][_0x144e7b];let _0x1453c0=null,_0x13716e=null;for(const _0x1c45d2 of _0xc68ce2){const _0xeb4eb8=this['_getVidAttributeName'](_0x1c45d2),_0x4237eb=_0x1c45d2['item']['getAttribute'](_0xeb4eb8),_0x359b28=_0x255a3a['get'](_0x4237eb);_0x359b28&&'elementStart'==_0x1c45d2['type']&&(_0x1453c0=Array['from'](_0x359b28)[0x0],_0x13716e=_0x1c45d2['item']['getAttribute']('vid_end')),_0x1453c0&&(_0x1d8ca2['set'](_0x4237eb,{'userId':_0x1453c0}),_0x1f9a3f['set'](_0x4237eb,{'userId':_0x1453c0})),_0x4237eb==_0x13716e&&(_0x1453c0=null,_0x13716e=null);}}const _0x5bd296={},_0x2c4a52=new Set();for(const _0x3795f7 of _0x22dc72){const _0x55e01a=_0x23ebf4['deletions'][_0x3795f7],_0x452cce=_0x23ebf4['insertions'][_0x3795f7];for(const {userId:_0x23c2e0}of this['_touchedMarkers']['values']())null!==_0x23c2e0&&_0x2c4a52['add'](_0x23c2e0);for(const {userId:_0x5a3a95}of this['_touchedRoots']['values']())null!==_0x5a3a95&&_0x2c4a52['add'](_0x5a3a95);this['_markChanges'](_0x452cce,_0x3866e0['insertions'][_0x3795f7],_0x1f9a3f,'insertion',_0x2c4a52),this['_markChanges'](_0x55e01a,_0x3866e0['deletions'][_0x3795f7],_0x1d8ca2,'deletion',_0x2c4a52),_0x5bd296[_0x3795f7]={'insertions':this['_prepareViewToSave'](_0x452cce),'deletions':this['_prepareViewToSave'](_0x55e01a),'attachChange':this['_touchedRoots']['get'](_0x3795f7)||null,'attributesBefore':_0x582feb(this['_baseRootsAttributes']['get'](_0x3795f7))||{},'attributesAfter':_0x582feb(this['_diffRootsAttributes']['get'](_0x3795f7))};}return{'diffData':_0x5bd296,'authorsIds':Array['from'](_0x2c4a52)};}['_processRootBeforeSave'](_0x3761fa){for(const [,_0x40639d]of _0x3761fa['markers']){const _0x429181=_0x40639d['start']['getAncestors']()['filter'](_0x41829f=>'tableCell'==_0x41829f['name']);for(const _0x50145b of _0x429181)0x1==_0x50145b['childCount']&&_0x50145b['getChild'](0x0)['is']('element','paragraph')&&_0x50145b['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x48de50){this['_processRootBeforeSave'](_0x48de50);const _0x5eb59b=this['editor']['data']['toView'](_0x48de50,{}),_0x12c289=Array['from'](_0x5eb59b['getChildren']())['map'](_0x1ff645=>this['_getViewJson'](_0x1ff645));return JSON['stringify'](_0x12c289);}['_getViewJson'](_0x1f2831){if(_0x1f2831['is']('$text'))return _0x1f2831['data'];{const _0x518693=_0x1f2831;return{'type':Object['keys'](P)['find'](_0x29bb52=>_0x1f2831 instanceof P[_0x29bb52]),'name':_0x518693['name'],'attributes':Array['from'](_0x518693['getAttributes']()),'children':Array['from'](_0x518693['getChildren']())['map'](_0x42cd0f=>this['_getViewJson'](_0x42cd0f))};}}['_markChanges'](_0xa759e1,_0x22831a,_0x4963fd,_0xdb94e5,_0x5cd12c){let _0x5246b0=null,_0x22230b=null,_0x3553a3=0x0;const _0x357600=this['editor']['model'];for(let _0x179614=0x0;_0x179614<_0x22831a['length'];_0x179614++){const _0x47fbb0=this['_getVidAttributeName'](_0x22831a[_0x179614]),_0x18ee81=_0x22831a[_0x179614]['item']['getAttribute'](_0x47fbb0),_0x4d6e76=_0x4963fd['get'](_0x18ee81),_0x3830b5=_0x179614==_0x22831a['length']-0x1;(!_0x5246b0&&_0x4d6e76&&(_0x5246b0=_0x4d6e76,_0x22230b=_0x22831a[_0x179614]),_0x5246b0&&(!_0x4d6e76||_0x4d6e76['userId']!=_0x5246b0['userId']))&&(_0x18673e(_0x4d6e76,B(_0x22230b,_0xa759e1,_0x357600),B(_0x22831a[_0x179614],_0xa759e1,_0x357600)),_0x5246b0=_0x4d6e76||null,_0x22230b=_0x4d6e76?_0x22831a[_0x179614]:null),_0x5246b0&&_0x3830b5&&_0x18673e(_0x4d6e76,B(_0x22230b,_0xa759e1,_0x357600),J(_0x22831a[_0x179614],_0xa759e1,_0x357600));}function _0x18673e(_0xce01af,_0x538962,_0xf89005){const _0x5b8055=_0x5246b0['userId'],_0x5f3862='revision:'+_0xdb94e5+':'+_0x5b8055+':'+_0x3553a3++,_0x111935=_0x357600['createRange'](_0x538962,_0xf89005);_0xa759e1['markers']['set'](_0x5f3862,_0x111935),null!==_0x5b8055&&_0x5cd12c['add'](_0x5b8055);}}['_getVidAttributeName'](_0x11b812){switch(_0x11b812['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x10bfac,_0x3e1b65){_0x10bfac['baseVersion']=null;for(const _0x3d9c5b in _0x10bfac){const _0x123477=_0x10bfac[_0x3d9c5b];if(_0x123477 instanceof gt){const _0x2cbd69=_0x3e1b65['get'](_0x123477['root']['rootName']);_0x10bfac[_0x3d9c5b]=this['_fixPosition'](_0x123477,_0x2cbd69);}if(_0x123477 instanceof vt){const _0x1abfe3=_0x3e1b65['get'](_0x123477['root']['rootName']);_0x10bfac[_0x3d9c5b]=this['_fixRange'](_0x123477,_0x1abfe3);}'root'===_0x3d9c5b&&(_0x10bfac['root']=_0x3e1b65['get'](_0x10bfac['root']['rootName']));}}['_fixRange'](_0x4391c5,_0x41b547){return this['editor']['model']['createRange'](this['_fixPosition'](_0x4391c5['start'],_0x41b547),this['_fixPosition'](_0x4391c5['end'],_0x41b547));}['_fixPosition'](_0x2c8e76,_0x3df525){return this['editor']['model']['createPositionFromPath'](_0x3df525,_0x2c8e76['path'],_0x2c8e76['stickiness']);}['_handleInsertOperation'](_0x5ef4b4){const _0x5f6b71=this['_idsRoots']['get'](_0x5ef4b4['position']['root']['rootName']),_0x25fb87=this['_fixPosition'](_0x5ef4b4['position'],_0x5f6b71),_0x20f277=null===_0x5ef4b4['_authorId']?null:_0x5ef4b4['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2697a1=_0x25fb87['parent'],_0x3cf896=this['_revisionId'],_0x5445c3=[];for(const _0x3a2af3 of _0x5ef4b4['nodes'])if(_0x3a2af3['is']('element'))_0x5445c3['push'](this['_makeIdsRoot'](_0x3a2af3));else{for(let _0x32fe4a=0x0;_0x32fe4a<_0x3a2af3['offsetSize'];_0x32fe4a++)_0x5445c3['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x164edf=this['_revisionId'];for(let _0x2cf17c=_0x3cf896;_0x2cf17c<_0x164edf;_0x2cf17c++)this['_touched']['set'](_0x2cf17c,{'userId':_0x20f277});_0x2697a1['_insertChild'](_0x25fb87['offset'],_0x5445c3);}['_handleMoveOperation'](_0x14b682){(_0x14b682=this['_cloneOperation'](_0x14b682,this['_idsRoots']))['_execute']();const _0x765329=null===_0x14b682['_authorId']?null:_0x14b682['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5a0b7e=_0x14b682['getMovedRangeStart'](),_0x1d5d21=_0x5a0b7e['parent'],_0x21bfe0=_0x5a0b7e['offset'];!function _0x4a3b56(_0x3f944e,_0x1f42ad,_0x2c1736,_0xb33b1b){for(let _0x648482=_0x2c1736;_0x648482<_0xb33b1b;_0x648482++){const _0x32706a=_0x1f42ad['getChild'](_0x648482);_0x32706a['is']('element','$text')?_0x3f944e['set'](_0x32706a['getAttribute']('vid'),{'userId':_0x765329}):(_0x3f944e['set'](_0x32706a['getAttribute']('vid_start'),{'userId':_0x765329}),_0x4a3b56(_0x3f944e,_0x32706a,0x0,_0x32706a['childCount']),_0x3f944e['set'](_0x32706a['getAttribute']('vid_end'),{'userId':_0x765329}));}}(this['_touched'],_0x1d5d21,_0x21bfe0,_0x21bfe0+_0x14b682['howMany']);}['_handleMergeOperation'](_0x47b4b8){const _0x48cd97=null===(_0x47b4b8=this['_cloneOperation'](_0x47b4b8,this['_idsRoots']))['_authorId']?null:_0x47b4b8['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x55bb3f=_0x47b4b8['targetPosition']['parent'],_0x2b1203=_0x47b4b8['sourcePosition']['parent'],_0x39b948=_0x55bb3f['getAttribute']('vid_end'),_0x4b00ff=_0x2b1203['getAttribute']('vid_start');_0x55bb3f['_setAttribute']('vid_end',_0x2b1203['getAttribute']('vid_end')),_0x2b1203['_setAttribute']('vid_end',_0x39b948),this['_touched']['set'](_0x4b00ff,{'userId':_0x48cd97}),this['_touched']['set'](_0x39b948,{'userId':_0x48cd97}),_0x47b4b8['_execute']();}['_handleSplitOperation'](_0x4ed291){const _0x529e3e=null===(_0x4ed291=this['_cloneOperation'](_0x4ed291,this['_idsRoots']))['_authorId']?null:_0x4ed291['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x112c32=_0x4ed291['graveyardPosition'],_0x2cc085=_0x4ed291['splitPosition']['parent'];_0x4ed291['_execute']();const _0x2b7614=_0x2cc085['getAttribute']('vid_end'),_0x5009b2=_0x4ed291['insertionPosition']['nodeAfter'];if(_0x112c32){const _0x415972=_0x5009b2['getAttribute']('vid_end'),_0x300cd1=_0x2cc085['getAttribute']('vid_end');_0x2cc085['_setAttribute']('vid_end',_0x415972),_0x5009b2['_setAttribute']('vid_end',_0x300cd1),this['_touched']['set'](_0x2cc085['getAttribute']('vid_end'),{'userId':_0x529e3e}),this['_touched']['set'](_0x5009b2['getAttribute']('vid_start'),{'userId':_0x529e3e});}else{const _0x24ec65=this['_revisionId']++,_0x42008b=this['_revisionId']++;_0x2cc085['_setAttribute']('vid_end',_0x24ec65),_0x5009b2['_setAttribute']('vid_start',_0x42008b),_0x5009b2['_setAttribute']('vid_end',_0x2b7614),this['_touched']['set'](_0x24ec65,{'userId':_0x529e3e}),this['_touched']['set'](_0x42008b,{'userId':_0x529e3e});}}['_handleMarkerOperation'](_0x2fca25){if(!_0x2fca25['affectsData'])return;const _0x5eb5b7=(_0x2fca25=this['_cloneOperation'](_0x2fca25,this['_diffRoots']))['oldRange']?_0x2fca25['oldRange']['root']:null,_0x4d79ce=_0x2fca25['newRange']?_0x2fca25['newRange']['root']:null;_0x5eb5b7&&this['_markers']['delete'](_0x2fca25['name']),_0x4d79ce&&this['_markers']['set'](_0x2fca25['name'],_0x2fca25['newRange']['clone']());const _0x21ce3a=null===_0x2fca25['_authorId']?null:_0x2fca25['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xe48c23=_0x2fca25['name'];if(!this['_touchedMarkers']['has'](_0xe48c23))return void this['_touchedMarkers']['set'](_0xe48c23,{'range':_0x2fca25['oldRange'],'userId':_0x21ce3a});const _0x8f9002=this['_touchedMarkers']['get'](_0xe48c23),_0x442a8b=_0x8f9002['range'],_0x2b65c6=_0x2fca25['newRange'];null==_0x442a8b&&null==_0x2b65c6||_0x442a8b&&_0x2b65c6&&_0x442a8b['isEqual'](_0x2b65c6)?this['_touchedMarkers']['delete'](_0x2fca25['name']):_0x8f9002['userId']=_0x21ce3a;}['_handleRootOperation'](_0x46c52b,_0x4faa0d){this['_diffRoots']['has'](_0x46c52b['rootName'])?this['_diffRoots']['get'](_0x46c52b['rootName'])['_isAttached']=_0x46c52b['isAdd']:(this['_diffRoots']['set'](_0x46c52b['rootName'],F(_0x46c52b['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x46c52b['rootName'],{}),_0x4faa0d&&this['_idsRoots']['set'](_0x46c52b['rootName'],F(_0x46c52b['rootName'],!0x0)));const _0x297cce=null===_0x46c52b['_authorId']?null:_0x46c52b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5cfeef=this['_touchedRoots']['get'](_0x46c52b['rootName']);_0x5cfeef&&_0x5cfeef['userId']===_0x297cce?this['_touchedRoots']['delete'](_0x46c52b['rootName']):this['_touchedRoots']['set'](_0x46c52b['rootName'],{'userId':_0x297cce,'isAttached':_0x46c52b['isAdd']});}['_handleRootAttributeOperation'](_0x54c9d2){const _0x486587=this['_diffRootsAttributes']['get'](_0x54c9d2['root']['rootName']);null===_0x54c9d2['newValue']?delete _0x486587[_0x54c9d2['key']]:_0x486587[_0x54c9d2['key']]=_0x54c9d2['newValue'];}}function T(_0x5a54c2){const _0x5ce59b=F(_0x5a54c2['rootName'],_0x5a54c2['isAttached']());for(const _0x58211c of _0x5a54c2['getChildren']()){const _0x15fe8e=_0x58211c['_clone'](!0x0);_0x5ce59b['_appendChild'](_0x15fe8e);}return _0x5ce59b;}function F(_0xe223f,_0x49b244=!0x0){const _0xc485ed=new mt();return _0xc485ed['rootName']=_0xe223f,_0xc485ed['_isAttached']=_0x49b244,_0xc485ed['isAttached']=()=>_0xc485ed['_isAttached'],_0xc485ed;}function B(_0x5eabcb,_0x10896b,_0x5c80c2){const _0xa7347d='elementEnd'==_0x5eabcb['type']?_0x5c80c2['createPositionAt'](_0x5eabcb['item'],'end'):_0x5c80c2['createPositionBefore'](_0x5eabcb['item']);return _0x5c80c2['createPositionFromPath'](_0x10896b,_0xa7347d['path'],_0xa7347d['stickiness']);}function J(_0x593b99,_0x55860c,_0x4eefc2){const _0xeb6ad5='elementStart'==_0x593b99['type']?_0x4eefc2['createPositionAt'](_0x593b99['item'],0x0):_0x4eefc2['createPositionAfter'](_0x593b99['item']);return _0x4eefc2['createPositionFromPath'](_0x55860c,_0xeb6ad5['path'],_0xeb6ad5['stickiness']);}class hs extends _0xe423a3{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x205e2d,_0x2341c1){super(_0x205e2d),this['focusTracker']=new _0x529518(),this['keystrokes']=new _0x559742(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x2341c1),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'](),_0xce764({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x569cb0=_0x3d6f74=>_0x3d6f74['stopPropagation']();this['keystrokes']['set']('arrowright',_0x569cb0),this['keystrokes']['set']('arrowleft',_0x569cb0),this['keystrokes']['set']('arrowup',_0x569cb0),this['keystrokes']['set']('arrowdown',_0x569cb0);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x345305){this['revisionNameInputView']['fieldView']['element']['value']=_0x345305['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x282c71){const _0x567c25=new nt(this['locale'],_0x1e4dd9),_0x5dbb50=_0x567c25['fieldView'];_0x5dbb50['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x2c75f7=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x282c71&&(_0x2c75f7+='\x20('+m(this['locale'],'optional')+')'),(_0x567c25['label']=_0x2c75f7,_0x5dbb50['on']('input',()=>{this['revisionNameInputValue']=_0x5dbb50['element']['value']['trim']();}),_0x567c25);}}class u extends _0x417e25{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x4a1663=this['editor'],_0x2e6fb8=_0x4a1663['plugins']['get']('RevisionTracker');_0x4a1663['ui']['componentFactory']['add']('revisionHistory',_0x49ae57=>{const _0x287f3c=_0x4c6b24(_0x49ae57),_0x5e844e=_0x287f3c['panelView']['children'],_0x7fdb94=new _0xf7138(_0x49ae57),_0x3889db=new _0x5931da(_0x49ae57),_0x2c2110=new _0x5a62bb(_0x49ae57),_0x44517f=new _0x5931da(_0x49ae57),_0x182b02=new _0x5a62bb(_0x49ae57);return _0x287f3c['bind']('isEnabled')['to'](_0x2e6fb8,'isReady',_0x2e6fb8,'isEnabled',_0x4a1663,'isReadOnly',(_0x50843c,_0x28fdc2,_0x369f26)=>_0x50843c&&_0x28fdc2&&!_0x369f26),_0x287f3c['buttonView']['set']({'icon':_0x5aa4d3['history'],'label':m(_0x49ae57,'Revision\x20history'),'tooltip':!0x0}),_0x2c2110['set']({'label':m(_0x49ae57,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x2c2110['bind']('isEnabled')['to'](_0x2e6fb8,'isReady',_0x2e6fb8,'isEnabled',_0x4a1663,'isReadOnly',(_0x14146f,_0x25c838,_0x570af4)=>_0x14146f&&_0x25c838&&!_0x570af4),_0x2c2110['on']('execute',()=>this['_showDialog']()),_0x182b02['set']({'label':m(_0x49ae57,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x182b02['bind']('isEnabled')['to'](_0x2e6fb8,'isReady',_0x4a1663,'isReadOnly',(_0x37ac53,_0xe1dbab)=>_0x37ac53&&!_0xe1dbab),_0x182b02['on']('execute',()=>{_0x4a1663['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x287f3c['isOpen']=!0x1,_0x4a1663['editing']['view']['focus']();}),_0x3889db['children']['add'](_0x2c2110),_0x44517f['children']['add'](_0x182b02),_0x7fdb94['role']='menu',_0x7fdb94['items']['addMany']([_0x3889db,_0x44517f]),_0x5e844e['add'](_0x7fdb94),_0x287f3c;}),_0x4a1663['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x3a24c3=this['editor'],_0x2573d7=_0x3a24c3['locale'],_0x195f2b=new _0x2ac09c(_0x2573d7),_0x3cbcf9=new _0x3d3595(_0x2573d7);_0x195f2b['buttonView']['set']({'icon':_0x5aa4d3['history'],'label':m(_0x2573d7,'Revision\x20history')});const _0x20fd51=new _0x1e773c(_0x2573d7,_0x195f2b),_0x2b2ede=new _0x320f1a(_0x2573d7);_0x2b2ede['set']({'label':m(_0x2573d7,'Save\x20current\x20revision')}),_0x2b2ede['delegate']('execute')['to'](_0x195f2b),_0x2b2ede['on']('execute',()=>{this['_showDialog']();}),_0x20fd51['children']['add'](_0x2b2ede),_0x3cbcf9['items']['add'](_0x20fd51);const _0xccc5d6=new _0x1e773c(_0x2573d7,_0x195f2b),_0x4fe038=new _0x320f1a(_0x2573d7);return _0x4fe038['set']({'label':m(_0x2573d7,'Open\x20revision\x20history')}),_0x4fe038['delegate']('execute')['to'](_0x195f2b),_0x4fe038['on']('execute',()=>{_0x3a24c3['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0xccc5d6['children']['add'](_0x4fe038),_0x3cbcf9['items']['add'](_0xccc5d6),_0x195f2b['panelView']['children']['add'](_0x3cbcf9),_0x195f2b;}['_showDialog'](){const _0x2f0883=this['editor'],_0x5c9ae2=_0x2f0883['locale'],_0x48d661=_0x2f0883['plugins']['get']('Dialog'),_0x482307=_0x2f0883['plugins']['get']('RevisionTracker');function _0x383493(_0x120496){_0x2f0883['config']['get']('revisionHistory.requireRevisionName')&&''===_0x120496['revisionName']?_0x120496['revisionNameInputView']['errorText']=m(_0x5c9ae2,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x2f0883['plugins']['get'](l)['saveRevision']({'name':_0x120496['revisionName']}),_0x48d661['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x383493(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x48d661['show']({'id':'revisionSave','title':m(_0x5c9ae2,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x2f0883['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x48d661['hide']()},{'label':m(_0x2f0883['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x1263f2){_0x1263f2['bind']('isEnabled')['to'](_0x482307,'isReady',_0x482307,'isEnabled',_0x2f0883,'isReadOnly',(_0x29ff1b,_0x5923ec,_0x22b91c)=>_0x29ff1b&&_0x5923ec&&!_0x22b91c);},'onExecute':()=>_0x383493(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x36e38e=this['editor'],_0x2349ed=_0x36e38e['locale'];this['_saveRevisionFormView']=new hs(_0x2349ed,_0x36e38e['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0xe423a3{['changeId'];['_model'];constructor(_0xe0b16b,_0x3e54be){super(_0xe0b16b),this['_model']=_0x3e54be,this['changeId']=_0x3e54be['id'];const _0xeb981d=this['bindTemplate'],_0x1860b8=m(_0xe0b16b,_0x3e54be['data']['isSuggestion']?'Suggested\x20by':'add'==_0x3e54be['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x3e54be['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0xeb981d['to']('type',_0x104254=>'ck-revision-change__'+_0x104254)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x1860b8}]},{'text':'\x20'+_0x3e54be['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x5320d2(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x22da73){super(),this['id']=_0x22da73['id']||_0x2a0190(),this['author']=_0x22da73['author'],this['type']=_0x22da73['type'],this['data']=_0x22da73['data']||{},this['rootName']=_0x22da73['rootName'],this['set']('createdAt',_0x22da73['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(_0x453479,_0x56a4ba){this['newRevisionId']=_0x453479,this['oldRevisionId']=_0x56a4ba,this['changes']=new _0x10516c();}['_setChanges'](_0x3536e7){for(const _0x304b8a of _0x3536e7)this['changes']['add'](_0x304b8a);}}const Y={'c':_0x306303,'a':_0x15c3ec,'e':_0x563432,'r':_0x2ff39b,'u':_0x1f63be};class d extends _0x417e25{['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[_0xce5c9b,_0x56df4e,j];}constructor(_0x33e651){super(_0x33e651),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',(_0x4f8a80,_0x332485,_0x39b5a6)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x341221=>{for(const _0x5e5908 of this['editor']['editing']['view']['document']['roots'])_0x39b5a6?_0x341221['removeClass']('ck-editor__editable__overlay',_0x5e5908):_0x341221['addClass']('ck-editor__editable__overlay',_0x5e5908);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x2af1db=>null!==_0x2af1db),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x2d7a78,_0x4b229a,_0x5f0b03)=>_0x2d7a78&&_0x5f0b03?_0x4b229a['changes']['getIndex'](_0x5f0b03):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x225ac5,_0x176033)=>_0x225ac5?_0x176033['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x56df4e);}['init'](){const _0x2fb971=this['editor'],_0x28e90a=new yt(_0x2fb971,{'direction':'backward'}),_0x1ecf82=new yt(_0x2fb971,{'direction':'forward'});(_0x2fb971['commands']['add']('showPreviousChange',_0x28e90a),_0x2fb971['commands']['add']('showNextChange',_0x1ecf82),_0x2fb971['commands']['add']('restoreRevision',new _t(_0x2fb971)),this['on']('change:numberOfChanges',()=>{_0x28e90a['refresh'](),_0x1ecf82['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x2fb971['enableReadOnlyMode']('revision-viewer'),_0x2fb971['plugins']['has']('WidgetToolbarRepository'))&&_0x2fb971['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x261b2c){await this['loadRevisionData'](_0x261b2c);const _0x1916dd={};for(const _0x528e8e in _0x261b2c['diffData']){if(_0x261b2c['diffData'][_0x528e8e]['attachChange']&&!_0x261b2c['diffData'][_0x528e8e]['attachChange']['isAttached'])continue;const _0x504c25=this['_removeRevisionMarkers'](JSON['parse'](_0x261b2c['diffData'][_0x528e8e]['insertions'])),_0x185cec=this['editor']['editing']['view']['document'],_0x463828=new _0x47c620(_0x185cec,_0x504c25['map'](_0x14c607=>this['_getViewObj'](_0x14c607)));this['editor']['data']['processor']['useFillerType']('marked'),_0x1916dd[_0x528e8e]=this['editor']['data']['processor']['toData'](_0x463828),this['editor']['data']['processor']['useFillerType']('default');}return _0x1916dd;}async['getRevisionRootsAttributes'](_0x5085d4){await this['loadRevisionData'](_0x5085d4);const _0x38f4d6={};for(const _0x353ab5 in _0x5085d4['diffData'])_0x5085d4['diffData'][_0x353ab5]['attachChange']&&!_0x5085d4['diffData'][_0x353ab5]['attachChange']['isAttached']||(_0x38f4d6[_0x353ab5]=_0x5085d4['diffData'][_0x353ab5]['attributesAfter']||{});return _0x38f4d6;}['_removeRevisionMarkers'](_0x488881){return(_0x488881=_0x488881['filter'](_0x5f0273=>!_0x5f0273['name']||'revision-start'!==_0x5f0273['name']&&'revision-end'!==_0x5f0273['name']))['forEach'](_0x16a8b6=>{'string'!=typeof _0x16a8b6&&(_0x16a8b6['children']=this['_removeRevisionMarkers'](_0x16a8b6['children']),_0x16a8b6['attributes']=_0x16a8b6['attributes']['filter'](_0x22af1d=>!_0x22af1d[0x0]['startsWith']('data-revision-')));}),_0x488881;}async['compare'](_0x23cb03,_0x34d832,_0x191ff5=!0x1){if(!this['isEnabled'])return;const _0x29c38c=this['diff'],_0x15d62c=this['repository'],_0x35a27c='string'==typeof _0x23cb03?_0x15d62c['getRevision'](_0x23cb03):_0x23cb03,_0x28b96f='string'==typeof _0x34d832?_0x15d62c['getRevision'](_0x34d832):_0x34d832,_0x2c7644=_0x35a27c['id'],_0x1444e2=_0x28b96f?_0x28b96f['id']:null;if(!_0x191ff5&&this['diff']&&this['diff']['newRevisionId']===_0x2c7644&&this['diff']['oldRevisionId']===_0x1444e2)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x2c7644,_0x1444e2);const _0x4b2bda=this['_getRevisionsRange'](_0x35a27c,_0x28b96f,!0x0)['map'](_0x17b586=>this['loadRevisionData'](_0x17b586));return _0x4b2bda['push'](new Promise(_0x5cf483=>{setTimeout(_0x5cf483,0x14);})),Promise['all'](_0x4b2bda)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x40b390=this['_getDiff'](_0x2c7644,_0x1444e2);for(const _0x47e02d of _0x40b390['changes'])this['_changeIdToChange']['set'](_0x47e02d['id'],_0x47e02d);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0xa2c098=>{for(const _0x15d86f of this['editor']['model']['document']['getRootNames']())_0xa2c098['detachRoot'](_0x15d86f);for(const _0x8fd9fa of Object['keys'](_0x40b390['model'])){const _0xe3371c=_0xa2c098['addRoot'](_0x8fd9fa);for(const _0x265788 of Object['keys'](_0x40b390['attributes'][_0x8fd9fa]))_0xa2c098['setAttribute'](_0x265788,_0x40b390['attributes'][_0x8fd9fa][_0x265788],_0xe3371c);_0xa2c098['insert'](_0x40b390['model'][_0x8fd9fa],_0xe3371c,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x40b390['changes'])),this['isReady']=!0x0;})['catch'](_0x429262=>{console['error'](_0x429262),this['_cleanUp'](),_0x29c38c&&(this['diff']=_0x29c38c),this['isReady']=!0x0;});}['addRevisionData'](_0x4d6389,_0x32ef75){const _0x288ace=this['repository']['createRevision'](_0x4d6389);return _0x288ace['on']('_update',(_0x51fe0c,_0x44743f,_0x5be911)=>_0x32ef75(_0x44743f,_0x5be911,_0x288ace)),this['repository']['addRevision'](_0x288ace),_0x288ace;}['loadRevisionData'](_0x5ca114){if(!_0x5ca114||_0x5ca114['diffData'])return Promise['resolve']();{const _0x1a6b82=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x1a6b82,'revisionId':_0x5ca114['id']})['then'](_0x2e7f2b=>{_0x5ca114['_update']({'diffData':_0x2e7f2b['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},_0x4d5903=>{for(const _0x890997 of this['editor']['model']['document']['getRootNames']())_0x4d5903['detachRoot'](_0x890997);});}['_sortAndFilterDiffChanges'](_0x50f64f){const _0x50c6e0=[],_0x13d747=new Map();for(const _0x553489 of this['editor']['model']['document']['getRootNames']()){const _0x5a9e59=this['editor']['editing']['view']['getDomRoot'](_0x553489);if(!_0x5a9e59)continue;const _0x3fdcea=_0x5a9e59['getClientRects']()['item'](0x0);_0x3fdcea&&(_0x50c6e0['push'](_0x553489),_0x13d747['set'](_0x553489,_0x3fdcea));}return _0x50c6e0['sort']((_0x524f6f,_0x37cf34)=>{const _0x14f2dd=_0x13d747['get'](_0x524f6f),_0x519b07=_0x13d747['get'](_0x37cf34);return _0x14f2dd['y']-_0x519b07['y']||_0x14f2dd['x']-_0x519b07['x'];}),(_0x50f64f=_0x50f64f['filter'](_0x3a7b2a=>_0x50c6e0['includes'](_0x3a7b2a['rootName'])))['sort']((_0x1a6fb4,_0x34684f)=>_0x50c6e0['indexOf'](_0x1a6fb4['rootName'])-_0x50c6e0['indexOf'](_0x34684f['rootName'])),_0x50f64f;}['_makeTape'](_0xdb5102){const _0x993f9e=Array['from'](_0xdb5102['markers'])['filter'](([_0x4922b7,_0x6a398d])=>_0x4922b7['startsWith']('revision:')&&!_0x6a398d['isCollapsed']),_0x5d5e3d=Array['from'](this['editor']['model']['createRangeIn'](_0xdb5102)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x993f9e['length'])for(const _0x3495ea of _0x5d5e3d){const [_0x492f65,_0x5ec379]=_0x993f9e[0x0],[,_0x58b0f9,_0x4cb646]=_0x492f65['split'](':');if(_0x5ec379['end']['isEqual'](_0x3495ea['nextPosition'])&&_0x993f9e['shift'](),(_0x3495ea['previousPosition']['isEqual'](_0x5ec379['start'])||_0x3495ea['previousPosition']['isAfter'](_0x5ec379['start']))&&('insertion'==_0x58b0f9?_0x3495ea['isAdded']={'userId':_0x4cb646}:'deletion'==_0x58b0f9&&(_0x3495ea['isRemoved']={'userId':_0x4cb646})),0x0==_0x993f9e['length'])break;}return _0x5d5e3d;}['_refreshStartEndIndex'](_0x114fe6){const _0x26fab6=new Map();for(let _0x2fe296=0x0;_0x2fe296<_0x114fe6['length'];_0x2fe296++)'text'===_0x114fe6[_0x2fe296]['type']?(_0x114fe6[_0x2fe296]['item']['startIndex']=_0x2fe296,_0x114fe6[_0x2fe296]['item']['endIndex']=_0x2fe296):('elementStart'===_0x114fe6[_0x2fe296]['type']?_0x114fe6[_0x2fe296]['item']['startIndex']=_0x2fe296:'elementEnd'===_0x114fe6[_0x2fe296]['type']&&(_0x114fe6[_0x2fe296]['item']['endIndex']=_0x2fe296),_0x26fab6['set'](_0x114fe6[_0x2fe296]['id'],_0x2fe296));for(const _0x527bff of _0x26fab6['values']())'elementStart'===_0x114fe6[_0x527bff]['type']?_0x114fe6[_0x527bff]['item']['endIndex']=_0x26fab6['get'](_0x114fe6[_0x527bff]['pairId']):'elementEnd'===_0x114fe6[_0x527bff]['type']&&(_0x114fe6[_0x527bff]['item']['startIndex']=_0x26fab6['get'](_0x114fe6[_0x527bff]['pairId']));}['_processTape'](_0x561fa9){for(let _0x25cccd=0x0;_0x25cccd<_0x561fa9['length'];_0x25cccd++){if('elementStart'===_0x561fa9[_0x25cccd]['type'])_0x561fa9[_0x25cccd]['item']['startIndex']=_0x25cccd;else{if('elementEnd'===_0x561fa9[_0x25cccd]['type']){_0x561fa9[_0x25cccd]['item']['endIndex']=_0x25cccd;const _0x52120e=_0x561fa9[_0x25cccd]['item']['startIndex'];_0x561fa9[_0x52120e]['pairId']=_0x561fa9[_0x25cccd]['id'],_0x561fa9[_0x25cccd]['pairId']=_0x561fa9[_0x52120e]['id'];}else _0x561fa9[_0x25cccd]['item']['startIndex']=_0x25cccd,_0x561fa9[_0x25cccd]['item']['endIndex']=_0x25cccd,_0x561fa9[_0x25cccd]['pairId']=null;}_0x561fa9[_0x25cccd]['markersStart']||(_0x561fa9[_0x25cccd]['markersStart']=[],_0x561fa9[_0x25cccd]['markersEnd']=[]);}}['_markInsertions'](_0x179e84,_0x426fa0){const _0x5cb29c=_0x179e84['filter'](_0x7e0c2c=>!_0x7e0c2c['isAdded']);for(let _0x4c0d93=0x0;_0x4c0d93<_0x426fa0['length'];_0x4c0d93++)_0x426fa0[_0x4c0d93]['isAdded']&&(_0x5cb29c[_0x4c0d93]['isAdded']=_0x426fa0[_0x4c0d93]['isAdded']);}['_makeModelFromViewString'](_0x4ca7fa){const _0xc2c62a=JSON['parse'](_0x4ca7fa),_0x1672b6=this['editor']['editing']['view']['document'],_0x4eb560=new _0x47c620(_0x1672b6,_0xc2c62a['map'](_0x1bd03a=>this['_getViewObj'](_0x1bd03a)));return this['editor']['data']['toModel'](_0x4eb560);}['_getViewObj'](_0x284c5d){const _0x16f0b4=this['editor']['editing']['view']['document'];if('string'==typeof _0x284c5d)return new _0x468e6d(_0x16f0b4,_0x284c5d);{const _0x3bf63a=_0x284c5d['children']['map'](_0x75f50e=>this['_getViewObj'](_0x75f50e));return new(Y[_0x284c5d['type']]||_0xd24324)(_0x16f0b4,_0x284c5d['name'],_0x284c5d['attributes'],_0x3bf63a);}}['_getDiff'](_0x2c382d,_0x3d1d40=null){const _0x3c00e7=this['repository']['getRevision'](_0x2c382d),_0x2c7158=_0x3d1d40?this['repository']['getRevision'](_0x3d1d40):null,_0x490110=this['_getRevisionsRange'](_0x3c00e7,_0x2c7158),_0x574425=_0x490110[_0x490110['length']-0x1],_0x466df4=new Map(),_0x5b8459={'model':{},'attributes':{},'changes':[]},_0x3e1864=new Set(),_0x40cc95=new Map();for(let _0x4be7f6=_0x490110['length']-0x1;_0x4be7f6>=0x0;_0x4be7f6--){const _0x3bd132=_0x490110[_0x4be7f6];for(const _0x2c0b5b of Object['keys'](_0x3bd132['diffData']))if(_0x3bd132['diffData'][_0x2c0b5b]['attachChange']){const _0x531154=_0x3bd132['diffData'][_0x2c0b5b]['attachChange'];_0x531154['isAttached']?(_0x3e1864['add'](_0x2c0b5b),_0x40cc95['has'](_0x2c0b5b)&&_0x40cc95['get'](_0x2c0b5b)['userId']==_0x531154['userId']?_0x40cc95['delete'](_0x2c0b5b):_0x40cc95['set'](_0x2c0b5b,_0x531154)):_0x40cc95['has'](_0x2c0b5b)?(_0x3e1864['delete'](_0x2c0b5b),_0x40cc95['delete'](_0x2c0b5b)):(_0x3e1864['add'](_0x2c0b5b),_0x40cc95['set'](_0x2c0b5b,_0x531154));}else _0x3e1864['add'](_0x2c0b5b);}for(const _0x4c12c1 of _0x3e1864){const _0x3282ff=_0x40cc95['has'](_0x4c12c1)&&!_0x40cc95['get'](_0x4c12c1)['isAttached'];let _0x18907c=_0x3282ff?_0x490110['length']-0x1:0x0;const _0x2514d7=_0x3282ff?-0x1:0x1;for(;_0x490110[_0x18907c];){const _0x57686b=_0x490110[_0x18907c];if(_0x57686b['diffData'][_0x4c12c1]){const _0x351c23=_0x3282ff?_0x57686b['diffData'][_0x4c12c1]['attributesBefore']:_0x57686b['diffData'][_0x4c12c1]['attributesAfter'];_0x5b8459['attributes'][_0x4c12c1]=_0x351c23?_0x582feb(_0x351c23):{};break;}_0x18907c+=_0x2514d7;}}for(const _0x126a14 of _0x490110){_0x126a14['model']={};for(const _0x12d25f of _0x126a14['authors'])_0x466df4['set'](_0x12d25f['id'],_0x12d25f);for(const _0x4651fc of _0x3e1864){const _0x37a181=_0x126a14['diffData'][_0x4651fc]?_0x126a14['diffData'][_0x4651fc]['insertions']:'[]',_0x30b2fb=_0x126a14['diffData'][_0x4651fc]?_0x126a14['diffData'][_0x4651fc]['deletions']:'[]';_0x126a14['model'][_0x4651fc]={'insertions':this['_makeModelFromViewString'](_0x37a181),'deletions':this['_makeModelFromViewString'](_0x30b2fb)};}}for(const _0x4d352c of _0x3e1864){let _0x986c0b=null,_0x4179e4=0x0;const _0x24a401=new Map(Array['from'](_0x3c00e7['model'][_0x4d352c]['insertions']['markers'])['filter'](([_0x27759f])=>!_0x27759f['startsWith']('revision:')));let _0x14ca23=0x0;for(const _0x52f44c of _0x490110){const _0x5f0d10=this['_makeTape'](_0x52f44c['model'][_0x4d352c]['insertions']);_0x52f44c==_0x3c00e7?(_0x986c0b=_0x5f0d10,_0x4179e4=_0x986c0b['length'],_0x986c0b['forEach'](_0x386b7c=>{_0x386b7c['id']=_0x14ca23++;}),this['_processTape'](_0x986c0b)):this['_markInsertions'](_0x986c0b,_0x5f0d10);const _0xd78c0e=_0x986c0b['filter'](_0x28f2c4=>!_0x28f2c4['isAdded'])['map'](_0x5b089e=>_0x5b089e['id']);let _0x239ae7=0x0;const _0x5c8f83=this['_makeTape'](_0x52f44c['model'][_0x4d352c]['deletions']);_0x5c8f83['forEach'](_0x2f1fc1=>{_0x2f1fc1['isRemoved']?_0x2f1fc1['id']=_0x4179e4++:_0x2f1fc1['id']=_0xd78c0e[_0x239ae7++];}),this['_processTape'](_0x5c8f83),this['_setDistance'](_0x986c0b,'isAdded'),this['_setDistance'](_0x5c8f83,'isRemoved'),_0x52f44c==_0x3c00e7&&this['_markMarkers'](_0x986c0b,_0x24a401),_0x986c0b=this['_joinTapes'](_0x986c0b,_0x5c8f83),this['_refreshStartEndIndex'](_0x986c0b),this['_setDistance'](_0x986c0b,'isRemoved');}_0x986c0b=_0x986c0b['filter'](_0x23d448=>!(_0x23d448['isAdded']&&_0x23d448['isRemoved']));const _0x59ba34=new Map(_0x574425['model'][_0x4d352c]['deletions']['markers']),_0x5d064b=new Set(_0x24a401['keys']());for(const _0x33cc7f of _0x59ba34['keys']())_0x5d064b['delete'](_0x33cc7f);this['_markSuggestions'](_0x986c0b,_0x5d064b),this['_fixObsoleteTags'](_0x986c0b),_0x986c0b=this['_removeMissingPairs'](_0x986c0b),_0x986c0b=this['_markMismatchedRemovedTags'](_0x986c0b),_0x986c0b=this['_removeUnsupportedChanges'](_0x986c0b);const {root:_0x254ca3,changes:_0x39907b}=this['_makeModelFromTape'](_0x986c0b,_0x466df4,_0x4d352c);_0x5b8459['model'][_0x4d352c]=_0x254ca3;const _0x37c7f8=_0x40cc95['get'](_0x4d352c);if(_0x37c7f8){const _0x4e7a51=_0x466df4['get'](_0x37c7f8['userId']),_0x5b902f=new r({'author':_0x4e7a51,'type':_0x37c7f8['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x4d352c});_0x39907b['unshift'](_0x5b902f),_0x5b8459['attributes'][_0x4d352c]['revisionHistoryAttachChange']=_0x5b902f['id'];}_0x5b8459['changes']=_0x5b8459['changes']['concat'](_0x39907b);}return _0x5b8459;}['_markMarkers'](_0x35b42a,_0x48df0f){for(let _0x411696=0x0;_0x411696<_0x35b42a['length'];_0x411696++)for(const [_0x428f3d,_0x87d7f]of _0x48df0f)_0x87d7f['start']['isEqual'](_0x35b42a[_0x411696]['previousPosition'])&&_0x35b42a[_0x411696]['markersStart']['push'](_0x428f3d),_0x87d7f['end']['isEqual'](_0x35b42a[_0x411696]['nextPosition'])&&_0x35b42a[_0x411696]['markersEnd']['push'](_0x428f3d);}['_joinTapes'](_0xa73429,_0x72e0ca){let _0x171ff8=[],_0x3c52f3=0x0,_0x5ab081=0x0;for(;_0x3c52f3<_0xa73429['length']||_0x5ab081<_0x72e0ca['length'];){const _0x304ba8=_0xa73429[_0x3c52f3]||{},_0x26725c=_0x72e0ca[_0x5ab081]||{};if(_0x304ba8['id']==_0x26725c['id'])_0x3c52f3++,_0x5ab081++,_0x171ff8['push'](_0x304ba8);else{if(_0x26725c['isRemoved']&&_0x304ba8['isAdded']){const {commonTape:_0xb77ce3,iEnd:_0x132555,jEnd:_0x4ba134}=this['_threeWayMerge'](_0xa73429,_0x3c52f3,_0x72e0ca,_0x5ab081);_0x171ff8=_0x171ff8['concat'](_0xb77ce3),_0x3c52f3=_0x132555,_0x5ab081=_0x4ba134;}else _0x26725c['isRemoved']?(_0x5ab081++,_0x171ff8['push'](_0x26725c)):(_0x3c52f3++,_0x171ff8['push'](_0x304ba8));}}return _0x171ff8;}['_markSuggestions'](_0x5f5088,_0x2db92e){const _0xb29239=[];for(let _0x14a69f=0x0;_0x14a69f<_0x5f5088['length'];_0x14a69f++){for(let _0x294306=0x0;_0x294306<_0x5f5088[_0x14a69f]['markersStart']['length'];_0x294306++){const _0x5d4df5=_0x5f5088[_0x14a69f]['markersStart'][_0x294306];if(!_0x2db92e['has'](_0x5d4df5))continue;const {group:_0x46f30d,type:_0x959747,authorId:_0x2e07a2}=_0x410bff(_0x5d4df5);'revision-suggestion'!=_0x46f30d||'insertion'!=_0x959747&&'deletion'!=_0x959747||(_0xb29239['unshift']({'type':_0x959747,'name':_0x5d4df5,'userId':_0x2e07a2}),_0x5f5088[_0x14a69f]['markersStart']['splice'](_0x294306,0x1),_0x294306--);}_0x2eca65(_0x5f5088[_0x14a69f]);for(let _0x2dcd0d=0x0;_0x2dcd0d<_0x5f5088[_0x14a69f]['markersEnd']['length'];_0x2dcd0d++){const _0xa73d92=_0x5f5088[_0x14a69f]['markersEnd'][_0x2dcd0d];if(!_0x2db92e['has'](_0xa73d92))continue;const {group:_0x5ef805,type:_0x1e157b}=_0x410bff(_0xa73d92);if('revision-suggestion'!=_0x5ef805||'insertion'!=_0x1e157b&&'deletion'!=_0x1e157b)continue;_0x5f5088[_0x14a69f]['markersEnd']['splice'](_0x2dcd0d,0x1),_0x2dcd0d--;const _0x36f69a=_0xb29239['findIndex'](_0x7544d0=>_0x7544d0['name']==_0xa73d92);_0x36f69a>-0x1&&_0xb29239['splice'](_0x36f69a,0x1);}}function _0x410bff(_0x228e48){const _0x23f758=_0x228e48['split'](':');return{'group':_0x23f758[0x0],'type':_0x23f758[0x1],'subType':_0x23f758['length']>=0x5?_0x23f758[0x2]:null,'id':_0x23f758['length']<0x5?_0x23f758[0x2]:_0x23f758[0x3],'authorId':_0x23f758['length']<0x5?_0x23f758[0x3]:_0x23f758[0x4],'markerCount':0x6==_0x23f758['length']?_0x23f758[0x5]:null};}function _0x2eca65(_0x1ebacb){for(let _0x1c85d6=0x0;_0x1c85d6<_0xb29239['length'];_0x1c85d6++){if(_0x1ebacb['isAdded']&&'insertion'==_0xb29239[_0x1c85d6]['type'])return _0x1ebacb['isAddSuggestion']=_0xb29239[_0x1c85d6],void delete _0x1ebacb['isAdded'];if(!_0x1ebacb['isAdded']&&!_0x1ebacb['isRemoved']&&'deletion'==_0xb29239[_0x1c85d6]['type'])return void(_0x1ebacb['isRemoveSuggestion']=_0xb29239[_0x1c85d6]);}}}['_setDistance'](_0x1c37a4,_0x583fef){let _0x365d11=0x0,_0x2c3014=!0x1;const _0x58afe1=new Map();for(const _0x2bd93d of _0x1c37a4)_0x2bd93d[_0x583fef]?_0x2c3014&&(_0x365d11++,_0x2c3014=!0x1):(_0x365d11++,_0x2c3014=!0x0),_0x58afe1['set'](_0x2bd93d['id'],_0x365d11);for(let _0x2be85d=0x0;_0x2be85d<_0x1c37a4['length'];_0x2be85d++){if('isRemoved'==_0x583fef&&_0x1c37a4[_0x2be85d]['isAdded']||'isAdded'==_0x583fef&&_0x1c37a4[_0x2be85d]['isRemoved'])continue;if('text'==_0x1c37a4[_0x2be85d]['type']){_0x1c37a4[_0x2be85d]['distance']=0x0;continue;}const _0x527055=_0x58afe1['get'](_0x1c37a4[_0x2be85d]['pairId']),_0x41e711=_0x58afe1['get'](_0x1c37a4[_0x2be85d]['id']);_0x1c37a4[_0x2be85d]['distance']=_0x527055-_0x41e711;}}['_getRevisionsRange'](_0x4e1621,_0x468b88,_0x2bc4f5=!0x1){const _0x979b7d=[];let _0xe0dd9=this['repository']['getIndex'](_0x4e1621),_0x5aa9ff=this['repository']['getIndex'](_0x468b88);for(-0x1==_0x5aa9ff&&(_0x5aa9ff=this['repository']['_revisions']['length'],_0x2bc4f5=!0x1);_0xe0dd9<_0x5aa9ff;)_0x979b7d['push'](this['repository']['getRevision'](_0xe0dd9)),_0xe0dd9++;return _0x2bc4f5&&_0x979b7d['push'](this['repository']['getRevision'](_0xe0dd9)),_0x979b7d;}['_threeWayMerge'](_0x24b592,_0x5e1efc,_0x52cf8f,_0x4f0764){const _0x3d75d3=this['editor']['model']['schema'];let _0x435c86=_0x5e1efc;for(;_0x24b592[_0x435c86]&&_0x24b592[_0x435c86]['isAdded'];)_0x435c86++;let _0x25676f=_0x4f0764;for(;_0x52cf8f[_0x25676f]&&_0x52cf8f[_0x25676f]['isRemoved'];)_0x25676f++;_0x5d6c17(_0x24b592,_0x5e1efc,_0x435c86),_0x5d6c17(_0x52cf8f,_0x4f0764,_0x25676f);const _0x13f335=_0x52cf8f['slice'](_0x4f0764,_0x25676f)['concat'](_0x24b592['slice'](_0x5e1efc,_0x435c86));return _0x13f335['sort']((_0x3e8227,_0x3cb3d8)=>_0x3e8227['side']!=_0x3cb3d8['side']?_0x3e8227['side']-_0x3cb3d8['side']:_0x3e8227['level']!=_0x3cb3d8['level']?_0x3e8227['level']-_0x3cb3d8['level']:_0x3e8227['distance']!=_0x3cb3d8['distance']?_0x3cb3d8['distance']-_0x3e8227['distance']:!!_0x3e8227['isAdded']!=!!_0x3cb3d8['isAdded']?-0x1==_0x3e8227['side']||0x0==_0x3e8227['side']?_0x3e8227['isAdded']?-0x1:0x1:_0x3e8227['isAdded']?0x1:-0x1:_0x3e8227['index']-_0x3cb3d8['index']),{'commonTape':_0x13f335,'iEnd':_0x435c86,'jEnd':_0x25676f};function _0x5d6c17(_0x5964c6,_0x47e3ed,_0x5280e7){let _0x5bf4c4=-0x1,_0x12fe79=Number['POSITIVE_INFINITY'],_0xe56776=!0x0;for(let _0x17802c=_0x47e3ed;_0x17802c<_0x5280e7;_0x17802c++)if(_0x3d75d3['isInline'](_0x5964c6[_0x17802c]['item'])||(_0xe56776=!0x1),_0x5964c6[_0x17802c]['item']['startIndex']<_0x47e3ed&&(_0x5bf4c4=_0x17802c),_0x5964c6[_0x17802c]['item']['endIndex']>=_0x5280e7){_0x12fe79=_0x17802c;break;}_0xe56776&&(_0x5bf4c4=_0x5280e7-0x1);for(let _0x5da591=_0x47e3ed;_0x5da591<_0x5280e7;_0x5da591++)_0x5964c6[_0x5da591]['side']=_0x5da591<=_0x5bf4c4?-0x1:_0x5da591<_0x12fe79?0x0:0x1,_0x5964c6[_0x5da591]['index']=_0x5da591;let _0x398d06=0x0;for(let _0x32999c=_0x47e3ed;_0x32999c<=_0x5bf4c4;_0x32999c++)0x0==_0x5964c6[_0x32999c]['distance']?_0x5964c6[_0x32999c]['level']=_0x398d06:(_0x398d06++,_0x5964c6[_0x32999c]['level']=_0x398d06,_0x398d06++);for(let _0x4a9f01=_0x47e3ed;_0x4a9f01<_0x5280e7;_0x4a9f01++)0x0==_0x5964c6[_0x4a9f01]['side']&&(_0x5964c6[_0x4a9f01]['level']=_0x398d06);_0x398d06=0x0;for(let _0x20f3c5=_0x5280e7-0x1;_0x20f3c5>=_0x12fe79;_0x20f3c5--)0x0==_0x5964c6[_0x20f3c5]['distance']?_0x5964c6[_0x20f3c5]['level']=_0x398d06:(_0x398d06--,_0x5964c6[_0x20f3c5]['level']=_0x398d06,_0x398d06--);}}['_fixObsoleteTags'](_0x7a89df){const _0x358295=new Map(),_0x2b44cf=this['editor']['model']['schema'];for(let _0x2d678d=0x1;_0x2d678d<_0x7a89df['length'];_0x2d678d++){let _0x35ad96,_0x59b895,_0x130ea9;const _0x603abc=_0x7a89df[_0x2d678d],_0x341878=_0x7a89df[_0x2d678d-0x1];if('text'==_0x603abc['type'])continue;if(_0x603abc['type']!=_0x341878['type'])continue;if(!_0x2b44cf['isBlock'](_0x341878['item'])||_0x2b44cf['isLimit'](_0x341878['item']))continue;if(!_0x2b44cf['isBlock'](_0x603abc['item'])||_0x2b44cf['isLimit'](_0x603abc['item']))continue;if((_0x7a89df[_0x2d678d]['isAdded']||_0x7a89df[_0x2d678d]['isAddSuggestion'])&&_0x7a89df[_0x2d678d-0x1]['isRemoved'])_0x35ad96=_0x7a89df[_0x2d678d],_0x59b895=_0x7a89df[_0x2d678d-0x1],_0x130ea9=_0x2d678d-0x1;else{if(!_0x7a89df[_0x2d678d]['isRemoved']||!_0x7a89df[_0x2d678d-0x1]['isAdded']&&!_0x7a89df[_0x2d678d-0x1]['isAddSuggestion'])continue;_0x35ad96=_0x7a89df[_0x2d678d-0x1],_0x59b895=_0x7a89df[_0x2d678d],_0x130ea9=_0x2d678d;}const _0x1e030d=_0x35ad96['level']==_0x59b895['level'],_0x5cdafd=Math['abs'](_0x35ad96['level'])<Math['abs'](_0x59b895['level'])&&0x0==_0x59b895['distance'];(_0x1e030d||_0x5cdafd)&&(_0x358295['set'](_0x59b895['id'],_0x35ad96['id']),_0x7a89df['splice'](_0x130ea9,0x1),_0x2d678d--,_0x35ad96['isAdded']=!0x1);}for(let _0x28d9a6=0x0;_0x28d9a6<_0x7a89df['length'];_0x28d9a6++)_0x358295['has'](_0x7a89df[_0x28d9a6]['pairId'])&&(_0x7a89df[_0x28d9a6]['pairId']=_0x358295['get'](_0x7a89df[_0x28d9a6]['pairId']));}['_removeMissingPairs'](_0x8a423b){const _0x1a39cb=new Set(_0x8a423b['map'](_0x477be4=>_0x477be4['id']));for(let _0x5dea14=0x0;_0x5dea14<_0x8a423b['length'];_0x5dea14++)_0x1a39cb['has'](_0x8a423b[_0x5dea14]['pairId'])||0x0==_0x8a423b[_0x5dea14]['distance']||(_0x8a423b[_0x5dea14]['isIncorrect']=!0x0);return _0x8a423b['filter'](_0x4e84db=>!_0x4e84db['isIncorrect']);}['_markMismatchedRemovedTags'](_0x2fbec4){const _0x26bc4f=new Set();for(let _0x3f351e=0x0;_0x3f351e<_0x2fbec4['length'];_0x3f351e++){if(_0x26bc4f['has'](_0x2fbec4[_0x3f351e]['id'])&&_0x2fbec4[_0x3f351e]['isRemoved']&&(_0x2fbec4[_0x3f351e]['isIncorrect']=!0x0),_0x2fbec4[_0x3f351e]['isIncorrect'])continue;if(0x0==_0x2fbec4[_0x3f351e]['distance'])continue;if('elementStart'!=_0x2fbec4[_0x3f351e]['type'])continue;if(null==_0x2fbec4[_0x3f351e]['pairId'])continue;let _0x483eb9=_0x3f351e+0x1,_0x17bb76=0x0;for(;_0x2fbec4[_0x483eb9]['id']!=_0x2fbec4[_0x3f351e]['pairId'];)'elementStart'==_0x2fbec4[_0x483eb9]['type']?_0x17bb76++:'elementEnd'==_0x2fbec4[_0x483eb9]['type']&&_0x17bb76--,_0x483eb9++;if(0x0!=_0x17bb76){if(_0x2fbec4[_0x3f351e]['isRemoved'])_0x2fbec4[_0x3f351e]['isIncorrect']=!0x0;else{for(;_0x483eb9!=_0x3f351e;)_0x2fbec4[_0x483eb9]['isRemoved']&&0x0!=_0x2fbec4[_0x483eb9]['distance']&&(_0x2fbec4[_0x483eb9]['isIncorrect']=!0x0,_0x26bc4f['add'](_0x2fbec4[_0x483eb9]['pairId'])),_0x483eb9--;}}}return _0x2fbec4['filter'](_0x2269bc=>!_0x2269bc['isIncorrect']);}['_removeUnsupportedChanges'](_0x43fcd1){const _0x1a859b=this['editor']['model']['schema'];for(let _0x273523=0x0;_0x273523<_0x43fcd1['length'];_0x273523++){if(!(_0x43fcd1[_0x273523]['isAdded']||_0x43fcd1[_0x273523]['isAddSuggestion']||_0x43fcd1[_0x273523]['isRemoved']||_0x43fcd1[_0x273523]['isRemoveSuggestion']))continue;if(0x0==_0x43fcd1[_0x273523]['distance'])continue;const _0x4a29c5=_0x43fcd1[_0x273523]['item'];_0x1a859b['isBlock'](_0x4a29c5)||_0x1a859b['isLimit'](_0x4a29c5)||(_0x43fcd1[_0x273523]['isAdded']&&delete _0x43fcd1[_0x273523]['isAdded'],_0x43fcd1[_0x273523]['isAddSuggestion']&&delete _0x43fcd1[_0x273523]['isAddSuggestion'],_0x43fcd1[_0x273523]['isRemoveSuggestion']&&delete _0x43fcd1[_0x273523]['isRemoveSuggestion'],_0x43fcd1[_0x273523]['isRemoved']&&(_0x43fcd1[_0x273523]['isIncorrect']=!0x0));}return _0x43fcd1['filter'](_0x2c9446=>!_0x2c9446['isIncorrect']);}['_makeModelFromTape'](_0x4944d9,_0x47ec96,_0x32e74a){const _0x111086=new mt(),_0x177797=[],_0x1c8e5c=new Map(),_0x2d2784=this['editor']['model'],_0x5b64e8=_0x2d2784['schema'],_0x3f33a4=[_0x111086],_0x5cb7d9={},_0x253ae7={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x56074f=null;const _0x3083bb=[0x0];for(let _0x11bb55=0x0;_0x11bb55<_0x4944d9['length'];_0x11bb55++)if('elementStart'===_0x4944d9[_0x11bb55]['type']){_0x4944d9[_0x11bb55]['previousPosition']=_0x2d2784['createPositionFromPath'](_0x111086,_0x3083bb);const _0x16de1b=new ft(_0x4944d9[_0x11bb55]['item']['name'],_0x4944d9[_0x11bb55]['item']['getAttributes']());_0x3f33a4[0x0]['_appendChild'](_0x16de1b),_0x3083bb['push'](0x0),_0x3f33a4['unshift'](_0x16de1b),_0x4944d9[_0x11bb55]['nextPosition']=_0x2d2784['createPositionFromPath'](_0x111086,_0x3083bb);}else'elementEnd'===_0x4944d9[_0x11bb55]['type']?(_0x3f33a4['shift'](),_0x4944d9[_0x11bb55]['previousPosition']=_0x2d2784['createPositionFromPath'](_0x111086,_0x3083bb),_0x3083bb['pop'](),_0x3083bb[_0x3083bb['length']-0x1]++,_0x4944d9[_0x11bb55]['nextPosition']=_0x2d2784['createPositionFromPath'](_0x111086,_0x3083bb)):(_0x4944d9[_0x11bb55]['previousPosition']=_0x2d2784['createPositionFromPath'](_0x111086,_0x3083bb),_0x56074f?_0x56074f['_data']+=_0x4944d9[_0x11bb55]['item']['data']:_0x56074f=new wt(_0x4944d9[_0x11bb55]['item']['data'],_0x4944d9[_0x11bb55]['item']['getAttributes']()),_0x4944d9[_0x11bb55+0x1]&&'text'===_0x4944d9[_0x11bb55+0x1]['type']&&_0x4885f9(_0x56074f,_0x4944d9[_0x11bb55+0x1]['item'])||(_0x3f33a4[0x0]['_appendChild'](_0x56074f),_0x56074f=null),_0x3083bb[_0x3083bb['length']-0x1]+=_0x4944d9[_0x11bb55]['item']['offsetSize'],_0x4944d9[_0x11bb55]['nextPosition']=_0x2d2784['createPositionFromPath'](_0x111086,_0x3083bb));for(let _0x3241d0=0x0;_0x3241d0<_0x4944d9['length'];_0x3241d0++){const _0x1f1ecc=_0x4944d9[_0x3241d0]['previousPosition'],_0x4d4719=_0x4944d9[_0x3241d0]['nextPosition'];for(const _0x283db0 of _0x4944d9[_0x3241d0]['markersStart'])_0x1c8e5c['set'](_0x283db0,{'start':_0x1f1ecc,'end':null});_0x43df24('isRemoveSuggestion',_0x3241d0,_0x1f1ecc,_0x4d4719),_0x43df24('isAddSuggestion',_0x3241d0,_0x1f1ecc,_0x4d4719),_0x43df24('isRemoved',_0x3241d0,_0x1f1ecc,_0x4d4719),_0x43df24('isAdded',_0x3241d0,_0x1f1ecc,_0x4d4719);for(const _0x3f3dfd of _0x4944d9[_0x3241d0]['markersEnd']){_0x1c8e5c['get'](_0x3f3dfd)['end']=_0x4d4719;}}for(const [_0x118935,_0x3f5d18]of _0x1c8e5c){const _0x5afc81=this['editor']['model']['createRange'](_0x3f5d18['start'],_0x3f5d18['end']);_0x111086['markers']['set'](_0x118935,_0x5afc81);}return _0x177797['sort']((_0xb4fa7,_0x573c9c)=>{const _0x40e29d=_0x111086['markers']['get']('revision:'+_0xb4fa7['id']),_0x516570=_0x111086['markers']['get']('revision:'+_0x573c9c['id']);return _0x40e29d['start']['isBefore'](_0x516570['start'])?-0x1:_0x40e29d['start']['isAfter'](_0x516570['start'])?0x1:_0x40e29d['end']['isBefore'](_0x516570['end'])?-0x1:_0x40e29d['end']['isAfter'](_0x516570['end'])?0x1:'add'===_0xb4fa7['type']?-0x1:0x1;}),{'root':_0x111086,'changes':_0x177797};function _0x43df24(_0x591343,_0x35d194,_0x5de9c3,_0x408386){const _0x37ae0f=!!_0x4944d9[_0x35d194][_0x591343],_0x179c0b=_0x37ae0f?_0x4944d9[_0x35d194][_0x591343]['userId']:null,_0x5d2670=_0x35d194===_0x4944d9['length']-0x1,_0x3ce3ff=_0x253ae7[_0x591343][0x0],_0x1e7c40=_0x5b64e8['isObject'](_0x4944d9[_0x35d194]['item']);!_0x5cb7d9[_0x591343]&&_0x37ae0f?_0x5cb7d9[_0x591343]={'start':_0x5de9c3,'tapeItem':_0x4944d9[_0x35d194],'userId':_0x179c0b,'type':_0x591343}:_0x5cb7d9[_0x591343]&&!_0x37ae0f?(_0x5cb7d9[_0x591343]['end']=_0x5de9c3,_0xe98729(_0x5cb7d9[_0x591343]),_0x5cb7d9[_0x591343]=null):_0x5cb7d9[_0x591343]&&_0x37ae0f&&_0x5cb7d9[_0x591343]['userId']!==_0x179c0b&&(_0x5cb7d9[_0x591343]['end']=_0x5de9c3,_0x3ce3ff&&_0x3ce3ff['userId']===_0x5cb7d9[_0x591343]['userId']||_0xe98729(_0x5cb7d9[_0x591343]),_0x5cb7d9[_0x591343]={'start':_0x5de9c3,'tapeItem':_0x4944d9[_0x35d194],'userId':_0x179c0b,'type':_0x591343}),_0x5cb7d9[_0x591343]&&_0x1e7c40&&('elementStart'!==_0x4944d9[_0x35d194]['type']||_0x3ce3ff&&_0x3ce3ff['userId']===_0x179c0b||_0x253ae7[_0x591343]['unshift']({'userId':_0x179c0b,'object':_0x4944d9[_0x35d194]['item'],'change':_0x5cb7d9[_0x591343]}),'elementEnd'===_0x4944d9[_0x35d194]['type']&&_0x3ce3ff&&_0x3ce3ff['object']===_0x4944d9[_0x35d194]['item']&&(_0x253ae7[_0x591343]['shift'](),_0x5cb7d9[_0x591343]=_0x3ce3ff['change'])),_0x5cb7d9[_0x591343]&&_0x5d2670&&(_0x5cb7d9[_0x591343]['end']=_0x408386,_0xe98729(_0x5cb7d9[_0x591343]),_0x5cb7d9[_0x591343]=null);}function _0xe98729({start:_0x51c9e3,end:_0x373a41,tapeItem:_0x54e24c,userId:_0x165f70,type:_0x341208}){const _0x47e3b4=_0x54e24c['item'],_0x24e9d0=_0x2d2784['schema']['isBlock'](_0x47e3b4)&&!_0x2d2784['schema']['isLimit'](_0x47e3b4),_0x32b7d8=_0x51c9e3['nodeAfter']==_0x373a41['parent']&&_0x373a41['isAtStart'];if(_0x24e9d0&&_0x32b7d8)return;const _0x5c2eb4=_0x2d2784['createRange'](_0x51c9e3,_0x373a41),_0x221962=_0x47ec96['get'](_0x165f70),_0xc3dddb=new r({'author':_0x221962,'type':'isAdded'==_0x341208||'isAddSuggestion'==_0x341208?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x341208||'isRemoveSuggestion'==_0x341208},'createdAt':new Date(),'rootName':_0x32e74a});_0x177797['push'](_0xc3dddb),_0x111086['markers']['set']('revision:'+_0xc3dddb['id'],_0x5c2eb4);}function _0x4885f9(_0x312149,_0x4d5d1b){const _0x17590b=_0x312149['getAttributes'](),_0x372782=_0x4d5d1b['getAttributes']();for(const _0x57248f of _0x17590b){if(_0x57248f[0x1]!==_0x4d5d1b['getAttribute'](_0x57248f[0x0]))return!0x1;_0x372782['next']();}return _0x372782['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x396c88=>{const _0x140d9d=_0x396c88['markerName']['split'](':')[0x1],_0x5a9672=this['_getChangeFromId'](_0x140d9d);if(!_0x5a9672)return null;const _0x5e7e99='add'==_0x5a9672['type']?'insertion':'deletion',_0x8f0c16=['ck-suggestion-marker','ck-suggestion-marker-'+_0x5e7e99];return _0x5a9672['data']['isSuggestion']&&_0x8f0c16['push']('ck-suggestion-marker-'+_0x5e7e99+'-new'),this['activeChange']==_0x5a9672&&_0x8f0c16['push']('ck-suggestion-marker--active'),{'classes':_0x8f0c16,'attributes':{'data-change-id':_0x140d9d}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x1bcf4a=>{_0x1bcf4a['on']('element:pre',(_0x1a74b8,_0x5906d0,_0x5141ec)=>{const _0x755efd=_0x5906d0['viewItem']['getChild'](0x0);if(!_0x755efd||!_0x755efd['is']('element','code'))return;if(!_0x5141ec['consumable']['consume'](_0x755efd,{'attributes':['vid_start','vid_end']}))return;const _0x1e1d57=_0x5906d0['modelRange']['start']['nodeAfter'];_0x5141ec['writer']['setAttribute']('vid_start',_0x755efd['getAttribute']('vid_start'),_0x1e1d57),_0x5141ec['writer']['setAttribute']('vid_end',_0x755efd['getAttribute']('vid_end'),_0x1e1d57);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x12332c=>{_0x12332c['on']('element',(_0x23d33e,_0x1acf46,_0x48ba88)=>{if(!_0x48ba88['consumable']['consume'](_0x1acf46['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x1acf46['modelRange']['isCollapsed'])return;const _0x1d7300=_0x1acf46['modelRange']['start']['nodeAfter'];_0x1d7300['hasAttribute']('vid_start')||_0x1d7300['hasAttribute']('vid')||(_0x48ba88['writer']['setAttribute']('vid_start',_0x1acf46['viewItem']['getAttribute']('vid_start'),_0x1d7300),_0x48ba88['writer']['setAttribute']('vid_end',_0x1acf46['viewItem']['getAttribute']('vid_end'),_0x1d7300));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0xf36f84=>_0xf36f84['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x36b181,[,_0x54952b])=>{['vid_start','vid_end','vid']['includes'](_0x54952b)&&(_0x36b181['return']=!0x0,_0x36b181['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x2dc53b=>{_0x2dc53b['on']('attribute:vid',(_0x20e2d8,_0x2c4a33,_0xd7e64e)=>{if('\x20'!=_0x2c4a33['item']['data']||_0x2c4a33['item']['parent']['maxOffset']>0x1)return;if(!_0xd7e64e['consumable']['consume'](_0x2c4a33['item'],_0x20e2d8['name']))return;const _0x3b3313=_0xd7e64e['writer'],_0x54c003=_0xd7e64e['mapper']['toViewRange'](_0x2c4a33['range']);_0x3b3313['wrap'](_0x54c003,_0x3b3313['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0xe31551){const _0x349a03=_0xe31551['plugins']['get']('RevisionViewer');return(_0x293fcb,_0xba2d13,_0xd5f8c7)=>{const _0x58b90=_0xba2d13['markerName']['split'](':')[0x1],_0x3a3d12=_0x349a03['_getChangeFromId'](_0x58b90);if(!_0x3a3d12)return null;const _0x5b1e31='add'==_0x3a3d12['type']?'split':'merge';if(!_0xd5f8c7['consumable']['test'](_0xba2d13['markerRange'],_0x293fcb['name']))return;const _0x479f51=_0xba2d13['markerRange']['getWalker'](),_0xc504c5=_0xba2d13['markerRange']['start'],_0x57b58c=_0xe31551['model']['schema'];let _0x4857cc=null,_0x3f88db=null,_0x2ea7d6=!0x1,_0x2364b9=!0x1;for(const _0x281061 of _0x479f51){const _0xb179f3=_0x281061['item'];_0x2ea7d6=_0x2ea7d6||_0x57b58c['isContent'](_0xb179f3);const _0x110cde=_0xd5f8c7['mapper']['toViewElement'](_0xb179f3);if(_0x110cde&&_0x110cde['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x281061['type']&&(_0x57b58c['isBlock'](_0xb179f3)&&!_0x57b58c['isLimit'](_0xb179f3)&&(_0xb179f3['nextSibling']||_0xc504c5['isAtEnd']?_0x4857cc&&_0x4857cc['parent']==_0xb179f3||(_0x4857cc=_0xb179f3,_0x37197d(_0x281061['previousPosition']),_0x2364b9=!0x0):_0x3f88db=_0x3f88db||_0x281061['previousPosition']));}function _0x37197d(_0x1339b3){const _0x482567=_0xd5f8c7['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5b1e31}),_0x141b16=_0xd5f8c7['mapper']['toViewPosition'](_0x1339b3);_0x3a3d12['data']['isSuggestion']&&_0xd5f8c7['writer']['addClass']('ck-suggestion-marker-'+_0x5b1e31+'-new',_0x482567),_0x349a03['activeChange']==_0x3a3d12&&_0xd5f8c7['writer']['addClass']('ck-suggestion-marker--active',_0x482567),_0xd5f8c7['writer']['insert'](_0x141b16,_0x482567),_0xd5f8c7['mapper']['bindElementToMarker'](_0x482567,_0xba2d13['markerName']);}_0x2ea7d6||_0x2364b9||!_0x3f88db||_0x37197d(_0x3f88db);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x4bf251,_0x9bd7c0,_0x2a1943)=>{const _0x45c0b=_0x2a1943['mapper']['markerNameToElements'](_0x9bd7c0['markerName']);if(_0x45c0b){for(const _0x4aff3e of _0x45c0b)(_0x4aff3e['hasClass']('ck-suggestion-marker-split')||_0x4aff3e['hasClass']('ck-suggestion-marker-merge'))&&(_0x2a1943['mapper']['unbindElementFromMarkerName'](_0x4aff3e,_0x9bd7c0['markerName']),_0x2a1943['writer']['remove'](_0x4aff3e));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x2f8959,_0x5df710,_0xb56e2f)=>{const _0x150da2=_0x5df710['markerName']['split'](':')[0x1],_0x570cf0=this['_getChangeFromId'](_0x150da2);if(!_0x570cf0)return null;const _0x474ab8='add'==_0x570cf0['type']?'split':'merge';if(_0xb56e2f['consumable']['test'](_0x5df710['markerRange'],_0x2f8959['name']))for(const _0x4e1e7c of _0x5df710['markerRange']['getItems']()){if(!_0x4e1e7c['is']('element','softBreak'))continue;const _0x4b8d1a=_0xb56e2f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x474ab8}),_0x1b77f5=_0xb56e2f['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x4e1e7c));_0x570cf0['data']['isSuggestion']&&_0xb56e2f['writer']['addClass']('ck-suggestion-marker-'+_0x474ab8+'-new',_0x4b8d1a),this['activeChange']==_0x570cf0&&_0xb56e2f['writer']['addClass']('ck-suggestion-marker--active',_0x4b8d1a),_0xb56e2f['writer']['insert'](_0x1b77f5,_0x4b8d1a),_0xb56e2f['mapper']['bindElementToMarker'](_0x4b8d1a,_0x5df710['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x41ac73=>{for(const _0x363303 of this['editor']['model']['document']['getRootNames']()){const _0x187c16=this['editor']['model']['document']['getRoot'](_0x363303),_0x805a27=this['editor']['editing']['view']['document']['getRoot'](_0x363303);if(_0x805a27){const _0x527b4e=_0x187c16['getAttribute']('revisionHistoryAttachChange');if(_0x41ac73['removeAttribute']('data-change-id',_0x805a27),_0x41ac73['removeClass']('ck-revision-history-root-add',_0x805a27),_0x41ac73['removeClass']('ck-revision-history-root-remove',_0x805a27),_0x41ac73['removeClass']('ck-revision-history-root--active',_0x805a27),_0x527b4e){const _0x464798=this['_getChangeFromId'](_0x527b4e);if(!_0x464798)return null;_0x41ac73['setAttribute']('data-change-id',_0x527b4e,_0x805a27),_0x41ac73['addClass']('ck-revision-history-root-'+_0x464798['type'],_0x805a27),this['activeChange']==_0x464798&&_0x41ac73['addClass']('ck-revision-history-root--active',_0x805a27);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0xc72e69=>'revision-comment:'+_0xc72e69,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x5d0e00=>'revision-suggestion:'+_0x5d0e00,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x5ae37a=>({'name':'suggestion:'+_0x5ae37a,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x4df5dd=>{const _0x49aed6=_0x4df5dd['markerName']['split'](':')[0x1];return'insertion'!=_0x49aed6&&'deletion'!=_0x49aed6?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x49aed6]};}}),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',(_0x25c794,_0x3b9425,_0x5e1af3)=>{const _0x54b209=_0x5e1af3['mapper']['markerNameToElements'](_0x3b9425['markerName']);if(_0x54b209){for(const _0x2b709b of _0x54b209)_0x2b709b['is']('uiElement')&&(_0x5e1af3['mapper']['unbindElementFromMarkerName'](_0x2b709b,_0x3b9425['markerName']),_0x5e1af3['writer']['remove'](_0x2b709b));}},{'priority':'high'});}['_getChangeFromId'](_0x10dcda){return this['_changeIdToChange']['get'](_0x10dcda);}['_getViewForChange'](_0x8befe3){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x8befe3),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x520b74,_0x407d5c,_0x3665f5,_0x51690c)=>{_0x51690c&&this['_balloon']['remove'](_0x51690c),_0x3665f5&&(this['_balloon']['add']({'view':_0x3665f5,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x41d8f9=this['editor']['editing'],_0x5667ab=this['_getChangeFromId'](_0x3665f5['changeId']);let _0x29170e;if(_0x5667ab['data']['isOnRoot']){const _0x31a74d=_0x41d8f9['view']['getDomRoot'](_0x5667ab['rootName']);_0x29170e=Array['from'](_0x31a74d['getClientRects']());}else{const _0x533c1e=this['editor']['model']['markers']['get']('revision:'+_0x3665f5['changeId']);_0x29170e=Array['from'](_0x41d8f9['mapper']['markerNameToElements'](_0x533c1e['name']))['map'](_0x3e931d=>_0x41d8f9['view']['domConverter']['mapViewToDom'](_0x3e931d))['map'](_0x1f33b5=>Array['from'](_0x1f33b5['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x29170e[0x0];return _0x29170e['find'](_0x1a4088=>_0x1a4088['top']-0x3<=this['_activeViewTarget']['y']&&_0x1a4088['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x1a4088['left']-0x3<=this['_activeViewTarget']['x']&&_0x1a4088['right']+0x3>=this['_activeViewTarget']['x'])||_0x29170e[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x7648c1,_0x282287,_0x522749,_0x259f8c)=>{this['activeView']=_0x522749?this['_getViewForChange'](_0x522749):null,this['editor']['model']['change'](()=>{const _0x47d39d=this['editor']['editing'];_0x259f8c&&(_0x259f8c['data']['isOnRoot']?_0x47d39d['view']['change'](_0x22297f=>{_0x22297f['removeClass']('ck-revision-history-root--active',_0x47d39d['view']['document']['getRoot'](_0x259f8c['rootName']));}):_0x47d39d['reconvertMarker']('revision:'+_0x259f8c['id'])),_0x522749&&(_0x522749['data']['isOnRoot']?_0x47d39d['view']['change'](_0xdf6f5d=>{_0xdf6f5d['addClass']('ck-revision-history-root--active',_0x47d39d['view']['document']['getRoot'](_0x522749['rootName']));}):_0x47d39d['reconvertMarker']('revision:'+_0x522749['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x693c36,_0x18cdf8)=>{if(this['activeChange'])return;const _0x55cf03=this['_findChangeIdFromDomTarget'](_0x18cdf8['target']),_0xe3f08d=this['_changeIdToChange']['get'](_0x55cf03);_0xe3f08d?(this['_activeViewTarget']={'x':_0x18cdf8['domEvent']['x'],'y':_0x18cdf8['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0xe3f08d)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x5acc51,_0x5c2236)=>{const _0x4e3321=this['_findChangeIdFromDomTarget'](_0x5c2236['target']),_0x42e6fb=this['_changeIdToChange']['get'](_0x4e3321);_0x42e6fb?(this['_activeViewTarget']={'x':_0x5c2236['domEvent']['x'],'y':_0x5c2236['domEvent']['y']},_0x42e6fb===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x42e6fb):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x2466b6){do{const _0x5ca482=_0x2466b6['getAttribute']('data-change-id');if(_0x5ca482)return _0x5ca482;_0x2466b6=_0x2466b6['parent'];}while(_0x2466b6);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x3e48fc=>{for(const _0x3a6446 of this['editor']['model']['markers'])_0x3e48fc['removeMarker'](_0x3a6446);});}}function Z(_0x44f6bd,_0x12c60a){return(_0x5c1474,_0x18fbbe,_0x4955bc)=>{if(!_0x4955bc['consumable']['test'](_0x18fbbe['markerRange'],_0x5c1474['name']))return;const _0x9e777e=_0x18fbbe['markerRange']['getWalker'](),_0x374a3e=_0x18fbbe['markerRange']['start'],_0x45e1fa=_0x44f6bd['model']['schema'];let _0x3e2194=null,_0x326ba7=null,_0x16f708=!0x1,_0x521348=!0x1;for(const _0x4f7b63 of _0x9e777e){const _0x130108=_0x4f7b63['item'];_0x16f708=_0x16f708||_0x45e1fa['isContent'](_0x130108);const _0x25d923=_0x4955bc['mapper']['toViewElement'](_0x130108);if(_0x25d923&&_0x25d923['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4f7b63['type']&&(_0x45e1fa['isBlock'](_0x130108)&&!_0x45e1fa['isLimit'](_0x130108)&&(_0x130108['nextSibling']||_0x374a3e['isAtEnd']?_0x3e2194&&_0x3e2194['parent']==_0x130108||(_0x3e2194=_0x130108,_0x909299(_0x4f7b63['previousPosition']),_0x521348=!0x0):_0x326ba7=_0x326ba7||_0x4f7b63['previousPosition']));}function _0x909299(_0x228e25){const _0x451f6b=_0x4955bc['mapper']['toViewPosition'](_0x228e25),_0x483520=_0x4955bc['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x12c60a});_0x4955bc['writer']['insert'](_0x451f6b,_0x483520),_0x4955bc['mapper']['bindElementToMarker'](_0x483520,_0x18fbbe['markerName']);}_0x16f708||_0x521348||!_0x326ba7||_0x909299(_0x326ba7);};}class _t extends _0x5703f7{constructor(_0x4fd855){super(_0x4fd855);const _0x5955e4=_0x4fd855['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x5955e4,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x5955e4,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x2dfde7=this['editor'],_0x2016b1=_0x2dfde7['plugins']['get'](d),_0x4f30d3=_0x2016b1['isReady']?_0x2016b1['diff']['newRevisionId']:null;_0x2dfde7['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x4f30d3);}['refresh'](){const {isReady:_0x289459,isEnabled:_0x363072,repository:_0x5c8a23,diff:_0x28853d}=this['editor']['plugins']['get'](d),_0x282ac8=_0x28853d&&_0x5c8a23['getLaterVisibleRevision'](_0x28853d['newRevisionId']);this['isEnabled']=_0x289459&&_0x363072&&Boolean(_0x282ac8);}}class yt extends _0x5703f7{['_step'];constructor(_0x2b55bd,{direction:_0x1ef0f0}){super(_0x2b55bd);const _0x592dd6=_0x2b55bd['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x1ef0f0?0x1:-0x1,this['listenTo'](_0x592dd6,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x592dd6,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x592dd6,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x1842db=this['editor'],_0x3b30ac=_0x1842db['plugins']['get'](d),{isNavigationMode:_0x5bdb06,currentChangeNumber:_0x2a22d7}=_0x3b30ac;let _0x3c40f0;if(_0x3b30ac['activeChange']=_0x5bdb06?_0x3b30ac['diff']['changes']['get'](_0x2a22d7+this['_step']):_0x3b30ac['diff']['changes']['first'],_0x3b30ac['activeChange']['data']['isOnRoot'])_0x3c40f0=_0x1842db['editing']['view']['getDomRoot'](_0x3b30ac['activeChange']['rootName']);else{const _0x4353ab=_0x1842db['model']['markers']['get']('revision:'+_0x3b30ac['activeChange']['id']);_0x3c40f0=_0x55db30(_0x1842db['editing'],_0x4353ab);}_0xd96e53({'target':_0x3c40f0,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x15daa7,currentChangeNumber:_0xe698b6,numberOfChanges:_0x261474,isReady:_0xb12c89,isEnabled:_0x5a7758}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x5a7758&&_0xb12c89&&_0x261474)&&(!_0x15daa7||(0x1===this['_step']?_0xe698b6<_0x261474-0x1:_0xe698b6>0x0));}}class bi extends _0xe423a3{constructor(_0x4ad392){super(_0x4ad392);const _0x366aa8=this['bindTemplate'],_0x4c55c2=new _0x5a62bb(_0x4ad392),_0x477ecc=new _0x5a62bb(_0x4ad392);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',(_0xe1164f,_0x58b097)=>_0xe1164f&&_0x58b097>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x1ed313,_0x10342c,_0xd64d1b,_0x15866e)=>{if(!_0x1ed313)return m(_0x4ad392,'Loading...');if(!_0xd64d1b)return m(_0x4ad392,'No\x20changes');const _0x324e0f=m(_0x4ad392,'NUMBER_OF_CHANGES',_0xd64d1b);return _0x15866e?m(_0x4ad392,'X_OF_Y_CHANGES',[_0x10342c+0x1,_0xd64d1b]):_0x324e0f;}),_0x4c55c2['set']({'label':m(_0x4ad392,'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'}),_0x477ecc['set']({'label':m(_0x4ad392,'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'}),_0x4c55c2['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x477ecc['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x4c55c2['on']('execute',()=>this['fire']('execute','backward')),_0x477ecc['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',_0x366aa8['if']('_isStatusLabelVisible','ck-hidden',_0x30c531=>!_0x30c531)]},'children':[{'text':_0x366aa8['to']('isNavigationMode',_0xa3e5fb=>_0xa3e5fb?m(_0x4ad392,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x4ad392,'Total')+':\x20')}]},{'text':_0x366aa8['to']('_statusText')}]},new _0x535beb(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x4c55c2,_0x477ecc]}]});}}const ie='ck-editor__editable__loading-overlay';class te extends _0x417e25{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x38abfc=this['editor']['editing']['view'];_0x38abfc['change'](_0x2e190f=>{for(const _0x4e8fd1 of _0x38abfc['document']['roots'])_0x2e190f['addClass'](ie,_0x4e8fd1);});}['hide'](){const _0x51aee3=this['editor']['editing']['view'];_0x51aee3['change'](_0x18678e=>{for(const _0x8f73fe of _0x51aee3['document']['roots'])_0x18678e['removeClass'](ie,_0x8f73fe);});}}class g extends _0x417e25{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,te];}['init'](){const _0x11fcd6=this['editor'],_0x288eef=_0x11fcd6['plugins']['get'](d),_0x29304c=_0x11fcd6['plugins']['get'](te);_0x11fcd6['ui']['componentFactory']['add']('exitToEditing',_0x3566ec=>{const _0x5a0139=new _0x5a62bb(_0x3566ec);return _0x5a0139['set']({'label':m(_0x3566ec,'Back\x20to\x20editing'),'icon':_0x5aa4d3['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x5a0139,'execute',()=>{_0x11fcd6['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x5a0139;}),_0x11fcd6['ui']['componentFactory']['add']('restoreRevision',_0x18668f=>{const _0x1d0037=new _0x5a62bb(_0x18668f);return _0x1d0037['set']({'label':m(_0x18668f,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x1d0037['bind']('isEnabled')['to'](_0x11fcd6['commands']['get']('restoreRevision')),this['listenTo'](_0x1d0037,'execute',()=>_0x11fcd6['execute']('restoreRevision')),_0x1d0037;}),_0x11fcd6['ui']['componentFactory']['add']('changesNavigation',_0x5ba944=>{const _0x5b29fa=new bi(_0x5ba944),_0x35b7e6=_0x11fcd6['commands']['get']('showPreviousChange'),_0x27b84f=_0x11fcd6['commands']['get']('showNextChange');return _0x5b29fa['bind']('isBackwardNavigationEnabled')['to'](_0x35b7e6,'isEnabled'),_0x5b29fa['bind']('isForwardNavigationEnabled')['to'](_0x27b84f,'isEnabled'),_0x5b29fa['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x288eef),this['listenTo'](_0x5b29fa,'execute',(_0xc6a0c7,_0x43142c)=>{_0x11fcd6['execute']('forward'===_0x43142c?'showNextChange':'showPreviousChange');}),_0x5b29fa;}),_0x29304c['show'](),_0x288eef['on']('change:isReady',(_0x16b541,_0x29ff7c,_0x429585)=>{_0x429585?_0x29304c['hide']():_0x29304c['show']();});}}class pt extends nt{['_resizeObserver']=null;constructor(_0x59fed2,_0xdab9e5){super(_0x59fed2,_0xdab9e5);const _0x25e9a9=this['bindTemplate'];this['set']({'label':m(_0x59fed2,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x59fed2,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x25e9a9['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 _0x3a4f91=this['fieldView']['element'];this['_tooltipString']=_0x3a4f91['scrollWidth']>_0x3a4f91['clientWidth']&&_0x3a4f91['value']||'';}}class ti extends _0xe423a3{constructor(_0x30af41,_0x54e2f8,_0x3cc86a){super(_0x30af41);const _0x4afb60=new _0x5b866();_0x4afb60['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 _0x487cd0=['ck','ck-revision-history-sidebar__revision-author'];_0x3cc86a&&_0x487cd0['push']('ck-revision-history-sidebar__revision-author_creator');const _0x429b4b=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x30af41,_0x3cc86a?'Revision\x20creator':'Revision\x20author')},'children':[_0x4afb60,_0x54e2f8['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x487cd0},'children':_0x429b4b});}}function ni(_0x553c5c,_0x56aa4c){const _0x5d7a7c=_0x553c5c['bindTemplate'],_0x7f6979=_0x553c5c['locale'],_0x3ee2f3=_0x4c6b24(_0x7f6979);_0x3ee2f3['panelPosition']='sw';const _0xe5cf73=function(_0x37ec02,_0x495d4f){const _0x986c48=function(_0x1cec2b,_0x35d99d){const _0x472451=_0x1cec2b['locale'],_0x576e47={'Compare\x20against\x20selected':m(_0x472451,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x472451,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x472451,'Restore\x20this\x20revision')};return _0x35d99d['map'](_0x5bd0b9=>{const _0x1698e7=_0x576e47[_0x5bd0b9['name']];return _0x1698e7&&_0x1698e7!==_0x5bd0b9['name']&&(_0x5bd0b9['name']=_0x1698e7),_0x5bd0b9;});}(_0x37ec02,_0x495d4f),_0xe4d72d=new _0x10516c();for(const _0xf0aa80 of _0x986c48){const _0x557c84={'type':'button','model':new to({'label':_0xf0aa80['name'],'class':_0xf0aa80['class'],'withText':!0x0,'role':'menuitem','_action':_0xf0aa80['action']})};_0x557c84['model']['bind']('isEnabled')['to'](_0x37ec02,'isActionsDropdownOpen',_0x2a2575=>'function'!=typeof _0xf0aa80['isEnabled']||(!_0x2a2575||_0xf0aa80['isEnabled'](_0x37ec02))),_0xe4d72d['add'](_0x557c84);}return _0xe4d72d;}(_0x553c5c,_0x56aa4c);return _0x553c5c['bind']('isActionsDropdownOpen')['to'](_0x3ee2f3,'isOpen'),_0x3ee2f3['buttonView']['set']({'label':m(_0x7f6979,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x5aa4d3['threeVerticalDots']}),_0x3ee2f3['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x5d7a7c['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x5d7a7c['to'](_0x5c18c2=>_0x5c18c2['stopPropagation']())}}),_0x3ee2f3['on']('execute',_0x2da411=>{_0x553c5c['isReady']&&'function'==typeof _0x2da411['source']['_action']&&_0x2da411['source']['_action'](_0x553c5c);}),_0x408539(_0x3ee2f3,_0xe5cf73,{'role':'menu'}),_0x3ee2f3['listenTo'](_0x553c5c,'change:isActionsDropdownOpen',(_0x32f75e,_0x353350,_0xb8737a)=>{if(_0xb8737a)for(const _0x1123bc of _0x3ee2f3['listView']['items']){const _0x1368e6=_0x1123bc['children']['first'],_0x35d0a6=_0x56aa4c['find'](_0x41757c=>_0x41757c['action']===_0x1368e6['_action'])['isVisible'];_0x1123bc['isVisible']=void 0x0===_0x35d0a6||_0x35d0a6(_0x553c5c);}}),_0x3ee2f3;}class ai extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x36f486(_0xe423a3){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x55b0a0,_0x3f6ab1,_0x2a13ee,_0xa93d2c){super(_0x55b0a0);const _0x16d2d3=this['bindTemplate'],_0x3cbf3d=function(_0xe2a622,_0x203f8c){const _0x57463a=Array['from'](_0x203f8c['authors'])['filter'](_0x406aa7=>_0x406aa7!=_0x203f8c['creator']);return _0x203f8c['creator']&&_0x57463a['unshift'](_0x203f8c['creator']),_0x57463a['map'](_0x517be4=>new ti(_0xe2a622,_0x517be4,_0x517be4==_0x203f8c['creator']));}(_0x55b0a0,_0x3f6ab1);this['id']=_0x3f6ab1['id'],this['_revision']=_0x3f6ab1,this['_requireRevisionName']=_0xa93d2c,this['bind']('name','createdAt')['to'](_0x3f6ab1),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x215afd=>{return _0x107603=_0x55b0a0['uiLanguage'],(_0x2b6c1b=_0x215afd)['toLocaleDateString'](_0x107603,{'month':'long','day':'numeric'})+',\x20'+_0x2b6c1b['toLocaleTimeString'](_0x107603,{'hour':'numeric','minute':'numeric'});var _0x107603,_0x2b6c1b;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new pt(_0x55b0a0,_0x1e4dd9),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x4c103b=>_0x4c103b||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x2b68da,_0x501840)=>_0x2b68da&&_0x501840),this['revisionActionsView']=_0x2a13ee&&_0x2a13ee['length']?ni(this,_0x2a13ee):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x16d2d3['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x16d2d3['if']('isEnabled','ck-disabled',_0x317662=>!_0x317662),_0x16d2d3['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x16d2d3['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x16d2d3['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':_0x16d2d3['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':_0x3cbf3d}]},this['revisionActionsView']],'on':{'click':_0x16d2d3['to'](_0x21cc74=>{_0x21cc74['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x3a766f=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x3a766f,'change',()=>{this['_requireRevisionName']&&!_0x3a766f['value']||this['fire']('setName',{'id':this['id'],'name':_0x3a766f['value']}),_0x3a766f['value']||(_0x3a766f['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function di(_0x485d18,_0xe5a76e){const _0x379ebc=_0x50df41['fromJSDate'](_0x485d18)['setLocale'](_0xe5a76e),_0x5992c6=_0x50df41['local'](),_0x4cb506=_0x5992c6['minus']({'days':0x1})['startOf']('day');let _0x364719,_0x3c10be;return _0x379ebc['hasSame'](_0x5992c6,'day')?(_0x364719=_0x379ebc['startOf']('day')['toJSDate'](),_0x3c10be=_0x379ebc['toRelativeCalendar']()):_0x379ebc['hasSame'](_0x4cb506,'day')?(_0x364719=_0x4cb506['toJSDate'](),_0x3c10be=_0x379ebc['toRelativeCalendar']()):_0x379ebc['hasSame'](_0x5992c6,'week')?(_0x364719=_0x379ebc['startOf']('week')['toJSDate'](),_0x3c10be=_0x379ebc['weekdayLong']||''):_0x379ebc['hasSame'](_0x5992c6,'year')?(_0x364719=_0x379ebc['startOf']('month')['toJSDate'](),_0x3c10be=_0x379ebc['monthLong']||''):(_0x364719=_0x379ebc['startOf']('year')['toJSDate'](),_0x3c10be=String(_0x379ebc['year'])),{'startDate':_0x364719,'localizedPeriodName':_0x3c10be};}class mi extends _0xe423a3{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x4c48da,_0x102b94,_0x24b066,_0x412de2){super(_0x4c48da);const _0x4ed49d=di(_0x102b94,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x102b94,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x24b066,this['_requireRevisionName']=_0x412de2,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':_0x4ed49d}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x1b0e38){const _0x2e7998=new ai(this['locale'],_0x1b0e38,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x2e7998);}['removeRevision'](_0x3be84d){const _0x30b034=this['revisionViews']['find'](_0x5e7484=>_0x5e7484['id']===_0x3be84d['id']);this['revisionViews']['remove'](_0x30b034);}}class rs extends _0xe423a3{constructor(_0x201642){super(_0x201642);const _0x4fefd6=new _0x5b866();_0x4fefd6['content']=_0x5aa4d3['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x4fefd6,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x201642,'Revision\x20history')]}]});}}class ci extends _0xe423a3{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x10ff46,_0xa28905,_0x5d63c6,_0x37faee){super(_0x10ff46);const _0x368a32=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0xa28905,this['_revisionActions']=_0x5d63c6,this['_requireRevisionName']=_0x37faee,this['on']('select',(_0x20567b,_0x46014a)=>{this['fire']('revisionSelected',_0x46014a);}),this['on']('setName',(_0xc239ce,_0x43ece1)=>{this['fire']('revisionSetName',_0x43ece1);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new rs(_0x10ff46),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x368a32['if']('isEnabled','ck-disabled',_0x2740f2=>!_0x2740f2)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x4d1be9 of this['_revisions'])this['_addRevision'](_0x4d1be9);this['_revisions']['on']('add',(_0x1bfc1e,_0x1b1af2)=>{this['_addRevision'](_0x1b1af2);}),this['_revisions']['on']('remove',(_0x5464f7,_0x451e05)=>{this['_removeRevision'](_0x451e05);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x372bb9=>_0x372bb9['revisionViews']['map'](_0x206856=>_0x206856))['flat']();}['selectRevision'](_0x2ecddf){for(const _0x35aaf9 of this['revisionViews'])_0x2ecddf&&_0x2ecddf['id']===_0x35aaf9['id']?_0x35aaf9['select']():_0x35aaf9['deselect']();}['highlightRevisions'](_0x13b21c){for(const _0x513521 of this['revisionViews'])_0x13b21c['some'](({id:_0x2280b1})=>_0x2280b1===_0x513521['id'])?_0x513521['highlight']():_0x513521['unhighlight']();}['_addRevision'](_0x36391f){const _0x2f6b61=di(_0x36391f['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x578054=this['timePeriodViews']['get'](0x0);_0x578054&&_0x578054['startDate']['getTime']()===_0x2f6b61['getTime']()||(_0x578054=new mi(this['locale'],_0x2f6b61,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x578054)),_0x578054['addRevision'](_0x36391f);}['_removeRevision'](_0x1ffcb8){const _0x48e678=di(_0x1ffcb8['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x48e678)['removeRevision'](_0x1ffcb8);}['_getTimePeriodViewByStartDate'](_0x5c1b34){return this['timePeriodViews']['find'](_0x57c40a=>_0x57c40a['startDate']['getTime']()===_0x5c1b34['getTime']());}}class w extends _0x417e25{['_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(_0x217061,_0x30c7e1){super(_0x30c7e1),this['sourceElement']=_0x217061,this['model']['document']['createRoot']();const _0x31c677=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x31c677);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x1ac9b0,_0x21f1c1){const _0x21dd5a=new this(_0x1ac9b0,_0x21f1c1);return await _0x21dd5a['initPlugins'](),await _0x21dd5a['ui']['init'](_0x1ac9b0),await _0x21dd5a['data']['init'](_0x21dd5a['config']['get']('initialData')||''),_0x21dd5a['fire']('ready'),_0x21dd5a;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0x4302a3{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x362e60){function _0x43a11a(_0x21668a){return _0x21668a['map'](_0x29e12e=>String['fromCharCode'](_0x29e12e))['join']('');}super(_0x362e60),this['result']='end',_0x362e60[_0x43a11a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x43a11a([0x76,0x69,0x65,0x77])][_0x43a11a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x43a11a([0x61,0x75,0x74,0x6f]),_0x362e60[_0x43a11a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x43a11a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x43a11a([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x43a11a([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x43a11a([0x6f,0x6b])});}}class k extends _0x4302a3{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x29755c){if(super(_0x29755c),!this['editor']['config']['get']('revisionHistory'))throw new _0x25b067('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x401122=>this['_showRevisionViewer']({..._0x401122,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x367e2d=>this['_closeRevisionViewer'](_0x367e2d)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x485c3b=>this['_restoreRevision'](_0x485c3b)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x27e98d){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x27e98d;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x24b8f2){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x24b8f2);}['getRevision'](_0x450028){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x450028);}['getRevisions'](_0x321e31){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x321e31||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x55826c=this['editor'],_0x3790c0=_0x2494d8(_0x55826c,p),_0x3b95fb=_0x55826c['plugins']['get']('RevisionTracker'),_0x2bfe72=_0x55826c['plugins']['get']('Users')['users'];return _0x3790c0['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x3790c0['lazyRoots'],(_0x3790c0['plugins']['push'](Rt,d,g,class extends _0x4302a3{static get['requires'](){return[d,'Users'];}['init'](){const _0x9e68ef=this['editor']['plugins']['get']('Users');for(const _0x2c7b98 of _0x2bfe72)_0x2c7b98['isAnonymous']||_0x9e68ef['getUser'](_0x2c7b98['id'])||_0x9e68ef['addUser'](_0x2c7b98);const _0x4fa517=_0x3b95fb['repository']['getRevisions']();let _0x314adf=null;const _0x190998=this['editor']['plugins']['get']('RevisionViewer');_0x190998['adapter']=_0x3b95fb['adapter'],_0x190998['bind']('isEnabled')['to'](_0x3b95fb),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x55826c,'isReadOnly',_0x4a4b68=>!_0x4a4b68);for(const _0x5ae64d of _0x4fa517){const _0x288fda=null===_0x5ae64d['creator'];if(_0x288fda&&_0x5ae64d['toVersion']===_0x5ae64d['fromVersion'])continue;const _0x51ecc4=_0x5ae64d['toJSON']();_0x190998['addRevisionData'](_0x51ecc4,(_0x532977,_0x186873,_0x3fe3ab)=>{if(_0x288fda){if(_0x314adf)_0x314adf['_update'](_0x532977,_0x186873);else{if(!_0x186873){const _0x20afca=_0x3fe3ab['toJSON']();_0x20afca['id']=_0x584392(),_0x3b95fb['saveRevision'](_0x20afca,_0x3fe3ab['toVersion'])['then'](_0x31e7a1=>{_0x314adf=_0x31e7a1;});}}}else _0x5ae64d['_update'](_0x532977,_0x186873);});}}},w),_0x3790c0);}['_enhanceShowRevisionViewerCallback'](){const _0x40218a=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x18b078=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x406f23=this['editor']['plugins']['get']('Autosave');await _0x406f23['save']();}else await _0x18b078['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x40f6b2=this['editor']['plugins']['get']('Dialog');_0x40f6b2['isOpen']&&_0x40f6b2['hide']();}const _0x1798a1=this['_getRevisionViewerEditorConfig']();return _0x40218a(_0x1798a1)['then'](_0x3c3349=>{return(this['_viewerEditor']=_0x3c3349,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x3c3349;})['catch'](_0x200c6b=>(console['error'](_0x200c6b),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x6d3138=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'](),_0x6d3138(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x126960=this['editor']['plugins']['get']('Annotations');_0x126960['refreshVisibility'](),_0x126960['refreshPositioning']();}})));}['_showRevisionViewer'](_0x240d56){const _0x420cd5=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x49b045=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x24ac60=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x24ac60,_0x240d56)['then'](_0x41267b=>(_0x49b045['style']['display']='block',_0x420cd5['style']['display']='none',_0x41267b));}['_closeRevisionViewer'](_0x4a43e8){const _0x5a3f2f=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x5a3f2f['style']['display']='',_0x4a43e8['destroy']();}async['_restoreRevision'](_0x33b2dc){const _0x2a08af=this['editor'],_0x1c25f5=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x599420=_0x2a08af['plugins']['get']('RevisionTracker'),_0x24f49d=_0x1c25f5['repository']['getRevision'](_0x33b2dc);let _0xc10fdd,_0x175cc1,_0x732a01;try{_0xc10fdd=await _0x1c25f5['getRevisionData'](_0x24f49d),_0x175cc1=await _0x1c25f5['getRevisionRootsAttributes'](_0x24f49d);}catch(_0x56e899){return void console['error'](_0x56e899);}_0x2a08af['model']['change'](_0x25d91e=>{for(const _0x41fe0c of Array['from'](_0x2a08af['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x25d91e['removeMarker'](_0x41fe0c);}),_0x1c25f5['isReady']=!0x1,_0x2a08af['model']['enqueueChange'](_0x18db9a=>{_0x18db9a['setSelection'](null),_0x18db9a['removeSelectionAttribute'](_0x2a08af['model']['document']['selection']['getAttributeKeys']());const _0x4e9478=Object['keys'](_0xc10fdd);for(const _0x62152c of _0x2a08af['model']['document']['roots'])'$graveyard'!=_0x62152c['rootName']&&_0x62152c['isAttached']()&&!_0x4e9478['includes'](_0x62152c['rootName'])&&_0x18db9a['detachRoot'](_0x62152c);for(const _0x19d9e4 of _0x4e9478){let _0x17d41c=_0x2a08af['model']['document']['getRoot'](_0x19d9e4);_0x17d41c&&_0x17d41c['isAttached']()||(_0x17d41c=_0x18db9a['addRoot'](_0x19d9e4));const _0x291262=_0x175cc1[_0x19d9e4],_0x466a4c=Object['keys'](_0x291262),_0x41425b=_0xc10fdd[_0x19d9e4];for(const _0x6bd148 of _0x17d41c['getAttributeKeys']())_0x466a4c['includes'](_0x6bd148)||_0x18db9a['removeAttribute'](_0x6bd148,_0x17d41c);for(const _0x1c66cb of _0x466a4c)_0x18db9a['setAttribute'](_0x1c66cb,_0x175cc1[_0x19d9e4][_0x1c66cb],_0x17d41c);_0x18db9a['remove'](_0x18db9a['createRangeIn'](_0x17d41c)),_0x18db9a['insert'](_0x2a08af['data']['parse'](_0x41425b,_0x17d41c),_0x17d41c,0x0);}});const _0x301ac0=m(_0x2a08af['locale'],'Restored');if(_0x24f49d['name'])_0x732a01=-0x1==_0x24f49d['name']['indexOf'](_0x301ac0)?_0x301ac0+':\x20'+_0x24f49d['name']:_0x24f49d['name'];else _0x732a01=_0x301ac0+':\x20'+(_0x24f49d['createdAt']['toLocaleDateString'](_0x2a08af['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x24f49d['createdAt']['toLocaleTimeString'](_0x2a08af['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x599420['saveRevision']({'name':_0x732a01}),_0x1c25f5['isReady']=!0x0,_0x2a08af['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,k as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,le as RevisionViewerLoadingOverlay,g as RevisionViewerUI,j as RevisionsRepository,w as RevisionsSidebar};
|
|
28
|
+
bt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x22f114){super(_0x22f114),this['_revisionViewer']=_0x22f114['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x48b8e4=this['_revisionsRepository']['_revisions'],_0x20e83d=this['_createRevisionActions'](),_0x23137e=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ci(this['editor']['locale'],_0x48b8e4,_0x20e83d,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',(_0x3d9aa0,_0x4e0616)=>{_0x4e0616['revisionViews']['on']('add',(_0x9b036e,_0x2f8412)=>{_0x2f8412['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)),_0x23137e['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x1f0680=this['_revisionsRepository']['getRevision'](0x0);if(_0x1f0680){const _0xa041d=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x1f0680['id']);this['_revisionViewer']['compare'](_0x1f0680,_0xa041d);}}['_handleRevisionSelected'](_0x202b02,_0x56ad5e){const _0x2bded3=this['_revisionsRepository']['getRevision'](_0x56ad5e['id']),_0x439b4e=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x2bded3['id']);this['_revisionViewer']['compare'](_0x2bded3,_0x439b4e);}['_handleRevisionSetName'](_0x2a3337,_0x5ee804){this['_revisionsRepository']['getRevision'](_0x5ee804['id'])['setName'](_0x5ee804['name']);}['_handleDiffChange'](_0x48257b,_0xb1b057,_0x348352){const _0x43c105=this['_revisionsRepository']['getRevisionsInDiff'](_0x348352);_0x43c105['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x43c105),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x43c105[0x0]));}['_createRevisionActions'](){const _0x119c25=this['editor'],_0x25c939=w['availableRevisionActions'],_0x2ccd10=_0x119c25['config']['get']('revisionHistory.revisionActions')||w['defaultRevisionActions'];if(_0x2ccd10['length'])return _0x2ccd10['map'](_0x44e645=>{const _0x4cf247='string'==typeof _0x44e645?Object['assign']({},_0x25c939[_0x44e645]):_0x44e645;return _0x4cf247['action']=_0x4cf247['action']['bind'](this,_0x119c25),_0x4cf247['isVisible']&&(_0x4cf247['isVisible']=_0x4cf247['isVisible']['bind'](this,_0x119c25)),_0x4cf247;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x2a15d9},_0x4a3772)=>{const _0x362aaf=_0x2a15d9['get'](d),_0x3ac4de=_0x362aaf['repository'];let _0x288cbb=_0x362aaf['diff']['newRevisionId'],_0x3b91a0=_0x4a3772['id'];_0x3ac4de['getIndex'](_0x288cbb)>_0x3ac4de['getIndex'](_0x3b91a0)&&([_0x288cbb,_0x3b91a0]=[_0x3b91a0,_0x288cbb]),_0x362aaf['compare'](_0x288cbb,_0x3b91a0);},'isVisible':({plugins:_0x51290a},_0x429af0)=>{const _0x226273=_0x51290a['get'](d);return!(_0x226273['repository']['getRevisionsInDiff'](_0x226273['diff'])['length']>0x2)&&!_0x429af0['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x1ea67c,{id:_0x2ada0e})=>{_0x1ea67c['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x2ada0e);},'isVisible':({plugins:_0x6f6ed4},_0x1e74f4)=>!!_0x6f6ed4['get'](d)['repository']['getLaterVisibleRevision'](_0x1e74f4['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x2687cf},{id:_0x203d69,revisionNameView:_0x521152})=>{const _0x3d06c2=_0x2687cf['get'](d),_0x597e91=_0x3d06c2['repository']['getEarlierVisibleRevision'](_0x203d69);_0x3d06c2['compare'](_0x203d69,_0x597e91),_0x521152['focus'](),_0x521152['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x19c838,_0x1b1846){super(_0x19c838),this['_view']=_0x1b1846,this['_toolbarConfig']=ot(_0x19c838['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x3f1a58){const _0x305461=this['editor'],_0x1c4e45=this['view'],_0x42e838=_0x305461['editing']['view'],_0x4ef411=_0x1c4e45['editable'],_0x56927b=_0x42e838['document']['getRoot']();_0x4ef411['name']=_0x56927b['rootName'],_0x1c4e45['render']();const _0x577fe4=_0x4ef411['element'];this['setEditableElement'](_0x4ef411['name'],_0x577fe4),_0x1c4e45['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x42e838['attachDomRoot'](_0x577fe4),this['_elementReplacer']['replace'](_0x3f1a58,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x56faec=this['view'],_0x496b5e=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x496b5e['detachDomRoot'](_0x56faec['editable']['name']),_0x56faec['destroy']();}['_initToolbar'](){const _0x8110ef=this['view'];_0x8110ef['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x8110ef['stickyPanel']['limiterElement']=_0x8110ef['element'],_0x8110ef['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x2d00e1})=>_0x2d00e1),_0x8110ef['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x8110ef['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x287bb8,_0x501319,_0x488b00={}){super(_0x287bb8),this['stickyPanel']=new ut(_0x287bb8),this['toolbar']=new lt(_0x287bb8,{'shouldGroupWhenFull':_0x488b00['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x287bb8,_0x501319);}['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(_0x2022a7,_0x5823a0){super(_0x5823a0),this['sourceElement']=_0x2022a7,this['model']['document']['createRoot']();const _0x40d1e5=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x40d1e5);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x1a232d,_0x2fffa9){const _0xf6feac=new this(_0x1a232d,_0x2fffa9);return await _0xf6feac['initPlugins'](),await _0xf6feac['ui']['init'](_0x1a232d),await _0xf6feac['data']['init'](_0xf6feac['config']['get']('initialData')||''),_0xf6feac['fire']('ready'),_0xf6feac;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0x417e25{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1b17a0){function _0x152f70(_0x3d2f44){return _0x3d2f44['map'](_0x4c443f=>String['fromCharCode'](_0x4c443f))['join']('');}super(_0x1b17a0),this['result']='end',_0x1b17a0[_0x152f70([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x152f70([0x76,0x69,0x65,0x77])][_0x152f70([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x152f70([0x61,0x75,0x74,0x6f]),_0x1b17a0[_0x152f70([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x152f70([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x152f70([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x152f70([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x152f70([0x6f,0x6b])});}}class k extends _0x417e25{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x1cae88){if(super(_0x1cae88),!this['editor']['config']['get']('revisionHistory'))throw new _0x3a09f3('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0xf75a32=>this['_showRevisionViewer']({..._0xf75a32,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x355fa6=>this['_closeRevisionViewer'](_0x355fa6)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x54a4e5=>this['_restoreRevision'](_0x54a4e5)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x6dabe7){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x6dabe7;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x458971){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x458971);}['getRevision'](_0xd19dcf){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0xd19dcf);}['getRevisions'](_0x3986b3){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x3986b3||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x47bee7=this['editor'],_0x51508f=_0x1dce46(_0x47bee7,p),_0x471891=_0x47bee7['plugins']['get']('RevisionTracker'),_0x108c5a=_0x47bee7['plugins']['get']('Users')['users'];return _0x51508f['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x51508f['lazyRoots'],(_0x51508f['plugins']['push'](Rt,d,g,class extends _0x417e25{static get['requires'](){return[d,'Users'];}['init'](){const _0x37d814=this['editor']['plugins']['get']('Users');for(const _0x3d37a2 of _0x108c5a)_0x3d37a2['isAnonymous']||_0x37d814['getUser'](_0x3d37a2['id'])||_0x37d814['addUser'](_0x3d37a2);const _0x23e824=_0x471891['repository']['getRevisions']();let _0x6c3b1a=null;const _0x4af80b=this['editor']['plugins']['get']('RevisionViewer');_0x4af80b['adapter']=_0x471891['adapter'],_0x4af80b['bind']('isEnabled')['to'](_0x471891),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x47bee7,'isReadOnly',_0x3e2c4a=>!_0x3e2c4a);for(const _0x1c5a90 of _0x23e824){const _0x171cfc=null===_0x1c5a90['creator'];if(_0x171cfc&&_0x1c5a90['toVersion']===_0x1c5a90['fromVersion'])continue;const _0x313c04=_0x1c5a90['toJSON']();_0x4af80b['addRevisionData'](_0x313c04,(_0x512aab,_0x3202bd,_0x334a15)=>{if(_0x171cfc){if(_0x6c3b1a)_0x6c3b1a['_update'](_0x512aab,_0x3202bd);else{if(!_0x3202bd){const _0x4ecb4b=_0x334a15['toJSON']();_0x4ecb4b['id']=_0x2a0190(),_0x471891['saveRevision'](_0x4ecb4b,_0x334a15['toVersion'])['then'](_0x59e84a=>{_0x6c3b1a=_0x59e84a;});}}}else _0x1c5a90['_update'](_0x512aab,_0x3202bd);});}}},w),_0x51508f);}['_enhanceShowRevisionViewerCallback'](){const _0x3daf68=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x3154fd=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x192424=this['editor']['plugins']['get']('Autosave');await _0x192424['save']();}else await _0x3154fd['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x36375a=this['editor']['plugins']['get']('Dialog');_0x36375a['isOpen']&&_0x36375a['hide']();}const _0x1ba7b=this['_getRevisionViewerEditorConfig']();return _0x3daf68(_0x1ba7b)['then'](_0x210452=>{return(this['_viewerEditor']=_0x210452,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x210452;})['catch'](_0x406088=>(console['error'](_0x406088),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x577387=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'](),_0x577387(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x2e26c0=this['editor']['plugins']['get']('Annotations');_0x2e26c0['refreshVisibility'](),_0x2e26c0['refreshPositioning']();}})));}['_showRevisionViewer'](_0x38ea38){const _0x112c96=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x4493d8=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x2e8e77=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x2e8e77,_0x38ea38)['then'](_0x229da2=>(_0x4493d8['style']['display']='block',_0x112c96['style']['display']='none',_0x229da2));}['_closeRevisionViewer'](_0x511742){const _0x3b2351=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x3b2351['style']['display']='',_0x511742['destroy']();}async['_restoreRevision'](_0x118334){const _0x554890=this['editor'],_0x202332=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x37b779=_0x554890['plugins']['get']('RevisionTracker'),_0x2fb782=_0x202332['repository']['getRevision'](_0x118334);let _0x13616b,_0x505d80,_0x5af923;try{_0x13616b=await _0x202332['getRevisionData'](_0x2fb782),_0x505d80=await _0x202332['getRevisionRootsAttributes'](_0x2fb782);}catch(_0x3e238b){return void console['error'](_0x3e238b);}_0x554890['model']['change'](_0x21160f=>{for(const _0x51384a of Array['from'](_0x554890['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x21160f['removeMarker'](_0x51384a);}),_0x202332['isReady']=!0x1,_0x554890['model']['enqueueChange'](_0x2bfc2b=>{_0x2bfc2b['setSelection'](null),_0x2bfc2b['removeSelectionAttribute'](_0x554890['model']['document']['selection']['getAttributeKeys']());const _0x2ff017=Object['keys'](_0x13616b);for(const _0x10df10 of _0x554890['model']['document']['roots'])'$graveyard'!=_0x10df10['rootName']&&_0x10df10['isAttached']()&&!_0x2ff017['includes'](_0x10df10['rootName'])&&_0x2bfc2b['detachRoot'](_0x10df10);for(const _0x45bc40 of _0x2ff017){let _0xde38dd=_0x554890['model']['document']['getRoot'](_0x45bc40);_0xde38dd&&_0xde38dd['isAttached']()||(_0xde38dd=_0x2bfc2b['addRoot'](_0x45bc40));const _0x5b6ff4=_0x505d80[_0x45bc40],_0x110eea=Object['keys'](_0x5b6ff4),_0x59cf98=_0x13616b[_0x45bc40];for(const _0x501574 of _0xde38dd['getAttributeKeys']())_0x110eea['includes'](_0x501574)||_0x2bfc2b['removeAttribute'](_0x501574,_0xde38dd);for(const _0x232abb of _0x110eea)_0x2bfc2b['setAttribute'](_0x232abb,_0x505d80[_0x45bc40][_0x232abb],_0xde38dd);_0x2bfc2b['remove'](_0x2bfc2b['createRangeIn'](_0xde38dd)),_0x2bfc2b['insert'](_0x554890['data']['parse'](_0x59cf98,_0xde38dd),_0xde38dd,0x0);}});const _0x18a392=m(_0x554890['locale'],'Restored');if(_0x2fb782['name'])_0x5af923=-0x1==_0x2fb782['name']['indexOf'](_0x18a392)?_0x18a392+':\x20'+_0x2fb782['name']:_0x2fb782['name'];else _0x5af923=_0x18a392+':\x20'+(_0x2fb782['createdAt']['toLocaleDateString'](_0x554890['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x2fb782['createdAt']['toLocaleTimeString'](_0x554890['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x37b779['saveRevision']({'name':_0x5af923}),_0x202332['isReady']=!0x0,_0x554890['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,k as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,te as RevisionViewerLoadingOverlay,g as RevisionViewerUI,j as RevisionsRepository,w as RevisionsSidebar};
|