@ckeditor/ckeditor5-revision-history 47.2.0-alpha.7 → 47.3.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +6 -6
- package/build/revision-history.js +1 -1
- package/dist/index.js +7 -7
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +12 -12
- package/src/changeitem.js +2 -2
- package/src/editor/revisionviewereditor.js +2 -2
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/index.js +1 -1
- package/src/revision.js +2 -2
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionhistoryutils.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +2 -2
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +2 -2
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ObservableMixin as
|
|
24
|
-
_0x1cee52(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x2bc8ce){super(),this['id']=_0x2bc8ce['id']||_0x31880b(),this['creator']=_0x2bc8ce['creator']||null,this['authors']=_0x2bc8ce['authors']||[],this['diffData']=_0x2bc8ce['diffData']||null,this['toVersion']=_0x2bc8ce['toVersion']||0x0,this['fromVersion']=_0x2bc8ce['fromVersion']||0x0,this['set']('name',_0x2bc8ce['name']||''),this['set']('createdAt',_0x2bc8ce['createdAt']||new Date()),this['set']('attributes',_0x2bc8ce['attributes']||{});}['setName'](_0x4441e7){this['_update']({'name':_0x4441e7});}['setAttribute'](_0x580533,_0x16434b){const _0x39a2b4=_0x151e36(this['attributes']);_0x4a3bc6(_0x39a2b4,_0x580533,_0x16434b),this['_update']({'attributes':_0x39a2b4});}['removeAttribute'](_0xf4e51d){const _0x146400=_0x151e36(this['attributes']);_0x542ac4(_0x146400,_0xf4e51d),this['_update']({'attributes':_0x146400});}['_update'](_0x494b21,_0x19eca2=!0x1){let _0x2a8f4f=!0x1;const _0x5c8f96={'id':this['id']},_0x4455c8=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x34a239 of _0x4455c8){const _0x24d90f=_0x494b21[_0x34a239];void 0x0!==_0x24d90f&&_0x24d90f!==this[_0x34a239]&&(this[_0x34a239]=_0x24d90f,_0x5c8f96[_0x34a239]=_0x24d90f,_0x2a8f4f=!0x0);}_0x2a8f4f&&(_0x5c8f96['authors']&&(_0x5c8f96['authorsIds']=_0x5c8f96['authors']['map'](_0x55a99e=>_0x55a99e['id']),delete _0x5c8f96['authors']),this['fire']('_update',_0x5c8f96,_0x19eca2));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x5dccf0=>_0x5dccf0['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x5579a2{['_revisions'];static get['requires'](){return[_0x2b195f];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x4e941e){super(_0x4e941e),this['_revisions']=new _0x5a6931();}['afterInit'](){!async function(_0x38acbc){const _0x50b6a6=_0x1cc0b5([0x76,0x73,0x6d,0x4c,0x34,0x54,0x50,0x70,0x75,0x52,0x35,0x33,0x4d,0x6c,0x71,0x53,0x6a,0x32,0x56,0x58,0x77,0x48,0x39,0x6f,0x45,0x41,0x4e,0x38,0x46,0x78,0x4a,0x74,0x47,0x55,0x4f,0x64,0x62,0x44,0x43,0x5a,0x30,0x31,0x69,0x68,0x79,0x66,0x6b,0x42,0x51,0x59,0x36,0x61,0x63,0x67,0x7a,0x37,0x72,0x49,0x65,0x57,0x4b,0x6e]),_0x4c613b=0xeb829,_0x2b0912=0x359e09b0,_0x48c6fe=0x35997188^_0x2b0912,_0x4d402a=window[_0x1cc0b5([0x44,0x61,0x74,0x65])][_0x1cc0b5([0x6e,0x6f,0x77])](),_0x6d1fbf=_0x38acbc[_0x1cc0b5([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x53528d=new window[(_0x1cc0b5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x280eca=>{_0x6d1fbf[_0x1cc0b5([0x6f,0x6e,0x63,0x65])](_0x1cc0b5([0x72,0x65,0x61,0x64,0x79]),_0x280eca);}),_0x135a66={[_0x1cc0b5([0x6b,0x74,0x79])]:_0x1cc0b5([0x45,0x43]),[_0x1cc0b5([0x75,0x73,0x65])]:_0x1cc0b5([0x73,0x69,0x67]),[_0x1cc0b5([0x63,0x72,0x76])]:_0x1cc0b5([0x50,0x2d,0x32,0x35,0x36]),[_0x1cc0b5([0x78])]:_0x1cc0b5([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]),[_0x1cc0b5([0x79])]:_0x1cc0b5([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]),[_0x1cc0b5([0x61,0x6c,0x67])]:_0x1cc0b5([0x45,0x53,0x32,0x35,0x36])},_0x4f80bd=_0x6d1fbf[_0x1cc0b5([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1cc0b5([0x67,0x65,0x74])](_0x1cc0b5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x231dc5(){let _0x228ca3,_0x2b16be=null,_0x34cdf1=null;try{if(_0x4f80bd==_0x1cc0b5([0x47,0x50,0x4c]))return _0x1cc0b5([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x228ca3=_0x37b40c(),!_0x228ca3)return _0x1cc0b5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x228ca3[_0x1cc0b5([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x34cdf1=_0x2613da(_0x228ca3[_0x1cc0b5([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x228ca3[_0x1cc0b5([0x6a,0x74,0x69])])),await _0x338162()?_0x29511b()?_0x3c263d()?_0x1cc0b5([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x532f02()?(_0x228ca3[_0x1cc0b5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1cc0b5([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2b16be=_0x34d36b(_0x1cc0b5([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x228ca3[_0x1cc0b5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1cc0b5([0x74,0x72,0x69,0x61,0x6c])&&(_0x2b16be=_0x34d36b(_0x1cc0b5([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1ad620()):_0x1cc0b5([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1cc0b5([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1cc0b5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1cc0b5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3c263d(){const _0x204950=[_0x1cc0b5([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1cc0b5([0x74,0x72,0x69,0x61,0x6c])][_0x1cc0b5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x228ca3[_0x1cc0b5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4d402a/0x3e8:0xe10*_0x48c6fe;return _0x228ca3[_0x1cc0b5([0x65,0x78,0x70])]<_0x204950;}function _0x29511b(){const _0x239812=_0x228ca3[_0x1cc0b5([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x239812)return!0x1;if(_0x239812[_0x1cc0b5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1cc0b5([0x2a])))return!0x0;if(_0x239812[_0x1cc0b5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1cc0b5([0x52,0x48])))return!0x0;if(_0x239812[_0x1cc0b5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1cc0b5([0x52,0x52,0x48]))){if(_0x35b03a())return!0x0;if(_0x3592a2()||_0x5cc889())return!0x0;}return!0x1;}function _0x532f02(){const _0x5493b4=_0x228ca3[_0x1cc0b5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5493b4||0x0==_0x5493b4[_0x1cc0b5([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x19989e}=new URL(window[_0x1cc0b5([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5493b4[_0x1cc0b5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x19989e))return!0x0;const _0x2165de=_0x19989e[_0x1cc0b5([0x73,0x70,0x6c,0x69,0x74])](_0x1cc0b5([0x2e]));return _0x5493b4[_0x1cc0b5([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2ea41e=>_0x2ea41e[_0x1cc0b5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1cc0b5([0x2a])))[_0x1cc0b5([0x6d,0x61,0x70])](_0x4f6978=>_0x4f6978[_0x1cc0b5([0x73,0x70,0x6c,0x69,0x74])](_0x1cc0b5([0x2e])))[_0x1cc0b5([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x17034c=>_0x17034c[_0x1cc0b5([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2165de[_0x1cc0b5([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1cc0b5([0x6d,0x61,0x70])](_0x1ed9ce=>Array(_0x2165de[_0x1cc0b5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1ed9ce[_0x1cc0b5([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1cc0b5([0x66,0x69,0x6c,0x6c])](_0x1ed9ce[0x0]===_0x1cc0b5([0x2a])?_0x1cc0b5([0x2a]):'')[_0x1cc0b5([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1ed9ce))[_0x1cc0b5([0x73,0x6f,0x6d,0x65])](_0x3a5f49=>_0x2165de[_0x1cc0b5([0x65,0x76,0x65,0x72,0x79])]((_0x2cf657,_0x2d31e0)=>_0x3a5f49[_0x2d31e0]===_0x2cf657||_0x3a5f49[_0x2d31e0]===_0x1cc0b5([0x2a])));}function _0x1ad620(){return _0x2b16be&&_0x34cdf1?new window[(_0x1cc0b5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x51fd61,_0x1b1aad)=>{_0x2b16be[_0x1cc0b5([0x74,0x68,0x65,0x6e])](_0x51fd61,_0x1b1aad),_0x34cdf1[_0x1cc0b5([0x74,0x68,0x65,0x6e])](_0x14cbdb=>{_0x14cbdb!=_0x1cc0b5([0x56,0x61,0x6c,0x69,0x64])&&_0x51fd61(_0x14cbdb);},_0x1b1aad);}):_0x2b16be||_0x34cdf1||_0x1cc0b5([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2613da(_0x5bd682,_0x5a01e5){return new window[(_0x1cc0b5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5d066e=>{if(_0x19e97c())return _0x5d066e(_0x1cc0b5([0x56,0x61,0x6c,0x69,0x64]));_0x522046(),_0x6d1fbf[_0x1cc0b5([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1cc0b5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x39df22=!0x1;const _0x16029e=_0x31880b();function _0x318a97(_0x4cfa53){return!!_0x4cfa53&&(typeof _0x4cfa53===_0x1cc0b5([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4cfa53===_0x1cc0b5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4cfa53[_0x1cc0b5([0x74,0x68,0x65,0x6e])]===_0x1cc0b5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4cfa53[_0x1cc0b5([0x63,0x61,0x74,0x63,0x68])]===_0x1cc0b5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x681068(_0x3977d5){_0x19942d(_0x3977d5)[_0x1cc0b5([0x74,0x68,0x65,0x6e])](_0x28b229=>{if(!_0x28b229||_0x28b229[_0x1cc0b5([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1cc0b5([0x6f,0x6b]))return _0x1cc0b5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x269af2(_0x5c51a5(_0x16029e+_0x5a01e5))!=_0x28b229[_0x1cc0b5([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1cc0b5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1cc0b5([0x56,0x61,0x6c,0x69,0x64]);})[_0x1cc0b5([0x74,0x68,0x65,0x6e])](_0x129548=>(_0x2237d4(),_0x129548),()=>{const _0x4a13c9=_0x50ad7b();return null==_0x4a13c9?(_0x2237d4(),_0x1cc0b5([0x56,0x61,0x6c,0x69,0x64])):_0x1cc0b5(_0x4d402a-_0x4a13c9>(0x11928db0^_0x2b0912)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1cc0b5([0x74,0x68,0x65,0x6e])](_0x5d066e)[_0x1cc0b5([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5d066e(_0x1cc0b5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x21276a=0x35a8e730^_0x2b0912;function _0x2237d4(){const _0x356ef5=_0x1cc0b5([0x6c,0x6c,0x63,0x74,0x2d])+_0x269af2(_0x5c51a5(_0x5bd682)),_0x537cbf=_0x5ca1df(_0x269af2(window[_0x1cc0b5([0x4d,0x61,0x74,0x68])][_0x1cc0b5([0x63,0x65,0x69,0x6c])](_0x4d402a/_0x21276a)));window[_0x1cc0b5([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1cc0b5([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x356ef5,_0x537cbf);}function _0x50ad7b(){const _0x44ef78=_0x1cc0b5([0x6c,0x6c,0x63,0x74,0x2d])+_0x269af2(_0x5c51a5(_0x5bd682)),_0x3d33c5=window[_0x1cc0b5([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1cc0b5([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x44ef78);return _0x3d33c5?window[_0x1cc0b5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5ca1df(_0x3d33c5),0x10)*_0x21276a:null;}function _0x19942d(_0x4000ad){return new window[(_0x1cc0b5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x50f100,_0x14802f)=>{_0x4000ad[_0x1cc0b5([0x74,0x68,0x65,0x6e])](_0x50f100,_0x14802f),window[_0x1cc0b5([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x14802f,0x359fdd70^_0x2b0912);});}}_0x6d1fbf[_0x1cc0b5([0x6f,0x6e])](_0x1cc0b5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x263c69,_0x6ce87e)=>{if(_0x6ce87e[0x0]!=_0x5bd682)return _0x5d066e(_0x1cc0b5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x6ce87e[0x1]={..._0x6ce87e[0x1],[_0x1cc0b5([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x16029e};},{[_0x1cc0b5([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1cc0b5([0x68,0x69,0x67,0x68])}),_0x6d1fbf[_0x1cc0b5([0x6f,0x6e])](_0x1cc0b5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3404a9=>{_0x318a97(_0x3404a9[_0x1cc0b5([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x39df22=!0x0,_0x681068(_0x3404a9[_0x1cc0b5([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1cc0b5([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1cc0b5([0x6c,0x6f,0x77])}),_0x53528d[_0x1cc0b5([0x74,0x68,0x65,0x6e])](()=>{_0x39df22||_0x5d066e(_0x1cc0b5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x19e97c(){return _0x6d1fbf[_0x1cc0b5([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1cc0b5([0x76,0x69,0x65,0x77])][_0x1cc0b5([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1cc0b5([0x61,0x75,0x74,0x6f]);}function _0x522046(){_0x6d1fbf[_0x1cc0b5([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1cc0b5([0x76,0x69,0x65,0x77])][_0x1cc0b5([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1cc0b5([0x61,0x75,0x74,0x6f]);}}function _0x34d36b(_0x5d93b6){const _0x3f09bd=[new window[(_0x1cc0b5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x66fe04=>setTimeout(_0x66fe04,0x3597377c^_0x2b0912)),_0x53528d[_0x1cc0b5([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1cc0b5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x364457=>{const _0x42da31=0x359e09b7^_0x2b0912,_0x31387d=_0x38acbc[_0x1cc0b5([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x1a2bc3(){_0x31387d[_0x1cc0b5([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x42da31&&_0x364457();}_0x1a2bc3(),_0x31387d[_0x1cc0b5([0x6f,0x6e])](_0x1cc0b5([0x61,0x64,0x64]),_0x1a2bc3);})),new window[(_0x1cc0b5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3efa41=>{function _0x37e672(){for(const _0x221a49 in window)if(window[_0x1cc0b5([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x1cc0b5([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x221a49))&&window[_0x221a49]==_0x4c613b)return _0x3efa41();_0x6d1fbf[_0x1cc0b5([0x73,0x74,0x61,0x74,0x65])]!=_0x1cc0b5([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x1cc0b5([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x37e672,0x359e1a38^_0x2b0912);}_0x4f2066(_0x1cc0b5([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x37e672();})];return window[_0x1cc0b5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1cc0b5([0x72,0x61,0x63,0x65])](_0x3f09bd)[_0x1cc0b5([0x74,0x68,0x65,0x6e])](()=>_0x5d93b6);}async function _0x5948fb(){if(await _0x53528d,_0x4f2066(_0x1cc0b5([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x3bfd14=_0x38acbc[_0x1cc0b5([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x3d58f4=_0x38acbc[_0x1cc0b5([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])](_0x3bfd14[_0x1cc0b5([0x69,0x64])]),_0x2aa47b=_0x2c92e5(_0x1cc0b5([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x2aa47b[_0x1cc0b5([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x3bfd14['id'],_0x3d58f4?_0x3d58f4['id']:null,!0x0),_0x2aa47b[_0x1cc0b5([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x1cc0b5([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x2aa47b[_0x1cc0b5([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x2aa47b[_0x1cc0b5([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x1bf4b5,void(_0x2aa47b[_0x1cc0b5([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x1bf4b5);}if(_0x4f2066(_0x1cc0b5([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x18a4ba=_0x2c92e5(_0x1cc0b5([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x18a4ba[_0x1cc0b5([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x1cc0b5([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x18a4ba[_0x1cc0b5([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x18a4ba[_0x1cc0b5([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x1bf4b5,_0x18a4ba[_0x1cc0b5([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x1bf4b5;}_0x6d1fbf[_0x1cc0b5([0x6d,0x6f,0x64,0x65,0x6c])][_0x1cc0b5([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1bf4b5,_0x6d1fbf[_0x1cc0b5([0x6d,0x6f,0x64,0x65,0x6c])][_0x1cc0b5([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1bf4b5,_0x6d1fbf[_0x1cc0b5([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1cc0b5([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x35b03a(){return _0x4f2066(_0x1cc0b5([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2c92e5(_0x1cc0b5([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x1cc0b5([0x73,0x74,0x61,0x74,0x65])]==_0x1cc0b5([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x3592a2(){return _0x4f2066(_0x1cc0b5([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 _0x5cc889(){return _0x4f2066(_0x1cc0b5([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x443abe(_0x13958){const _0x14a29c=_0x4199cd();_0x6d1fbf[_0x14a29c]=_0x1cc0b5([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])+_0x13958,_0x13958[_0x1cc0b5([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x1cc0b5([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x4199cd()]=_0x4c613b),_0x13958!=_0x1cc0b5([0x56,0x61,0x6c,0x69,0x64])&&_0x5948fb();}function _0x4199cd(){const _0x5638c9=window[_0x1cc0b5([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1cc0b5([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1cc0b5([0x6e,0x6f,0x77])]())[_0x1cc0b5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1cc0b5([0x2e]),'');let _0x43772c=_0x1cc0b5([0x76]);for(let _0x38c32f=0x0;_0x38c32f<_0x5638c9[_0x1cc0b5([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x38c32f+=0x2){let _0x4a5e18=window[_0x1cc0b5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5638c9[_0x1cc0b5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x38c32f,_0x38c32f+0x2));_0x4a5e18>=_0x50b6a6[_0x1cc0b5([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4a5e18-=_0x50b6a6[_0x1cc0b5([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x43772c+=_0x50b6a6[_0x4a5e18];}return _0x43772c;}function _0x37b40c(){const _0xb7609d=_0x4f80bd[_0x1cc0b5([0x73,0x70,0x6c,0x69,0x74])](_0x1cc0b5([0x2e]));if(0x3!=_0xb7609d[_0x1cc0b5([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3b148f(_0xb7609d[0x1]);function _0x3b148f(_0x1770e5){const _0x5d4ec8=_0x5b771a(_0x1770e5);return _0x5d4ec8&&_0x32a64b()?_0x5d4ec8:null;function _0x32a64b(){const _0x52281a=_0x5d4ec8[_0x1cc0b5([0x6a,0x74,0x69])],_0x5abd76=window[_0x1cc0b5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x52281a[_0x1cc0b5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x52281a[_0x1cc0b5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x113782={..._0x5d4ec8,[_0x1cc0b5([0x6a,0x74,0x69])]:_0x52281a[_0x1cc0b5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x52281a[_0x1cc0b5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x113782[_0x1cc0b5([0x76,0x63])],_0x5c51a5(_0x113782)==_0x5abd76;}}}async function _0x338162(){let _0x1da2fb=!0x0;try{const _0x490b4e=_0x4f80bd[_0x1cc0b5([0x73,0x70,0x6c,0x69,0x74])](_0x1cc0b5([0x2e])),[_0x53d53b,_0x96ead2,_0x52b255]=_0x490b4e;return _0x52c650(_0x53d53b),await _0x33a28a(_0x53d53b,_0x96ead2,_0x52b255),_0x1da2fb;}catch{return!0x1;}function _0x52c650(_0x10fdbe){const _0x508c47=_0x5b771a(_0x10fdbe);_0x508c47&&_0x508c47[_0x1cc0b5([0x61,0x6c,0x67])]==_0x1cc0b5([0x45,0x53,0x32,0x35,0x36])||(_0x1da2fb=!0x1);}async function _0x33a28a(_0x534b4f,_0x250f77,_0x4bc537){const _0x5b6f1c=window[_0x1cc0b5([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1cc0b5([0x66,0x72,0x6f,0x6d])](_0x3ba033(_0x4bc537),_0x56fe32=>_0x56fe32[_0x1cc0b5([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x238266=new window[(_0x1cc0b5([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1cc0b5([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x534b4f+_0x1cc0b5([0x2e])+_0x250f77),_0x245af8=window[_0x1cc0b5([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1cc0b5([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x245af8)return;const _0x5ae40b=await _0x245af8[_0x1cc0b5([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1cc0b5([0x6a,0x77,0x6b]),_0x135a66,{[_0x1cc0b5([0x6e,0x61,0x6d,0x65])]:_0x1cc0b5([0x45,0x43,0x44,0x53,0x41]),[_0x1cc0b5([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1cc0b5([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1cc0b5([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x245af8[_0x1cc0b5([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1cc0b5([0x6e,0x61,0x6d,0x65])]:_0x1cc0b5([0x45,0x43,0x44,0x53,0x41]),[_0x1cc0b5([0x68,0x61,0x73,0x68])]:{[_0x1cc0b5([0x6e,0x61,0x6d,0x65])]:_0x1cc0b5([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5ae40b,_0x5b6f1c,_0x238266)||(_0x1da2fb=!0x1);}}function _0x5b771a(_0x51b388){return _0x51b388[_0x1cc0b5([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1cc0b5([0x65,0x79]))?JSON[_0x1cc0b5([0x70,0x61,0x72,0x73,0x65])](_0x3ba033(_0x51b388)):null;}function _0x3ba033(_0x5d05cd){return window[_0x1cc0b5([0x61,0x74,0x6f,0x62])](_0x5d05cd[_0x1cc0b5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1cc0b5([0x2b]))[_0x1cc0b5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1cc0b5([0x2f])));}function _0x5c51a5(_0x25a9a6){let _0x5ab2f0=0x1505;function _0x2cf2d0(_0x4692c0){for(let _0x5c192e=0x0;_0x5c192e<_0x4692c0[_0x1cc0b5([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5c192e++){const _0x47c127=_0x4692c0[_0x1cc0b5([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5c192e);_0x5ab2f0=(_0x5ab2f0<<0x5)+_0x5ab2f0+_0x47c127,_0x5ab2f0&=_0x5ab2f0;}}function _0x2e6c10(_0x21d1e6){Array[_0x1cc0b5([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x21d1e6)?_0x21d1e6[_0x1cc0b5([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2e6c10):_0x21d1e6&&typeof _0x21d1e6==_0x1cc0b5([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1cc0b5([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x21d1e6)[_0x1cc0b5([0x73,0x6f,0x72,0x74])]()[_0x1cc0b5([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4bd64d,_0x1c49a4])=>{_0x2cf2d0(_0x4bd64d),_0x2e6c10(_0x1c49a4);}):_0x2cf2d0(window[_0x1cc0b5([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x21d1e6));}return _0x2e6c10(_0x25a9a6),_0x5ab2f0>>>0x0;}function _0x269af2(_0x46ed10){return _0x46ed10[_0x1cc0b5([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1cc0b5([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1cc0b5([0x30]));}function _0x5ca1df(_0x34ccce){return _0x34ccce[_0x1cc0b5([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1cc0b5([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1cc0b5([0x6a,0x6f,0x69,0x6e])]('');}function _0x4f2066(_0x5ede08){return _0x6d1fbf[_0x1cc0b5([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1cc0b5([0x68,0x61,0x73])](_0x5ede08);}function _0x2c92e5(_0x1df2c0){return _0x6d1fbf[_0x1cc0b5([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1cc0b5([0x67,0x65,0x74])](_0x1df2c0);}function _0x1bf4b5(){}function _0x1cc0b5(_0x4998ce){return _0x4998ce['map'](_0x2b67c4=>String['fromCharCode'](_0x2b67c4))['join']('');}_0x443abe(await _0x231dc5());}(this);}['createRevision'](_0x368926){const _0x187d10=this['editor']['plugins']['get']('Users');return new I({'id':_0x368926['id'],'name':_0x368926['name'],'creator':_0x368926['creatorId']?_0x187d10['getUser'](_0x368926['creatorId']):null,'diffData':_0x368926['diffData']||_0x368926['data'],'authors':_0x368926['authorsIds']['map'](_0x461866=>_0x187d10['getUser'](_0x461866)),'createdAt':new Date(_0x368926['createdAt']),'attributes':_0x368926['attributes'],'fromVersion':_0x368926['fromVersion'],'toVersion':_0x368926['toVersion']});}['addRevision'](_0x486a88,_0x1ab20a=0x0){this['_revisions']['add'](_0x486a88,_0x1ab20a);}['getRevision'](_0x5e3e49){return this['_revisions']['get'](_0x5e3e49);}['getRevisions'](_0x351c8c={'toJSON':!0x1}){const _0x8a332d=Array['from'](this['_revisions']);return _0x8a332d['reverse'](),_0x351c8c['toJSON']?_0x8a332d['map'](_0x5abe5c=>_0x5abe5c['toJSON']()):_0x8a332d;}['getIndex'](_0x21843c){return this['_revisions']['getIndex'](_0x21843c);}['getEarlierVisibleRevision'](_0x4475fb){const [,_0x2c78df]=this['getRevisionsIterator'](_0x4475fb,{'direction':'earlier'});return _0x2c78df;}['getLaterVisibleRevision'](_0x1174de){const [,_0x22a2d2]=this['getRevisionsIterator'](_0x1174de,{'direction':'later'});return _0x22a2d2;}['getRevisionsInDiff'](_0x3ace32){const _0x5c3a06=[];for(const _0x30966b of this['getRevisionsIterator'](_0x3ace32['newRevisionId']))if(_0x5c3a06['push'](_0x30966b),_0x30966b['id']===_0x3ace32['oldRevisionId'])break;return _0x5c3a06;}*['getRevisionsIterator'](_0x2ddd16,{direction:_0x21287e='earlier',filter:_0x572b91=()=>!0x0}={}){const _0x3c6950='earlier'===_0x21287e?0x1:-0x1;let _0x3987ec=this['_revisions']['get'](_0x2ddd16),_0x5257ef=this['getIndex'](_0x3987ec);for(yield _0x3987ec;_0x3987ec;){if(_0x5257ef+=_0x3c6950,_0x3987ec=this['getRevision'](_0x5257ef),!_0x3987ec)return;_0x572b91(_0x3987ec)&&(yield _0x3987ec);}}}class $ extends _0x5579a2{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x1332cc,'c'],[_0x3346cf,'a'],[_0x75f0c6,'e'],[_0x252888,'r'],[_0x516f3d,'u']]);['_typeCharToViewClass']=new Map([['c',_0x1332cc],['a',_0x3346cf],['e',_0x75f0c6],['r',_0x252888],['u',_0x516f3d]]);async['loadRevisionData'](_0x598e4e,_0x57de1c){if(_0x598e4e['diffData']||!_0x57de1c)return;const _0x2804c5=this['editor']['config']['get']('collaboration.channelId'),_0x35797c=await _0x57de1c['getRevision']({'channelId':_0x2804c5,'revisionId':_0x598e4e['id']});_0x598e4e['diffData']=_0x35797c['diffData'];}['getRevisionDocumentData'](_0x31eebd){const _0x22834a={};for(const _0x39cab4 in _0x31eebd['diffData']){if(_0x31eebd['diffData'][_0x39cab4]['attachChange']&&!_0x31eebd['diffData'][_0x39cab4]['attachChange']['isAttached'])continue;const _0x13ed02=this['_removeRevisionMarkers'](JSON['parse'](_0x31eebd['diffData'][_0x39cab4]['insertions'])),_0x22bdf3=this['editor']['editing']['view']['document'],_0x246a41=new _0x4e982d(_0x22bdf3,_0x13ed02['map'](_0x4b92f5=>this['_getViewFromDiffObj'](_0x4b92f5,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x22834a[_0x39cab4]=this['editor']['data']['processor']['toData'](_0x246a41),this['editor']['data']['processor']['useFillerType']('default');}return _0x22834a;}['getRevisionRootsAttributes'](_0x46f6a2){const _0x21055e={};for(const _0x112704 in _0x46f6a2['diffData'])_0x46f6a2['diffData'][_0x112704]['attachChange']&&!_0x46f6a2['diffData'][_0x112704]['attachChange']['isAttached']||(_0x21055e[_0x112704]=_0x46f6a2['diffData'][_0x112704]['attributesAfter']||{});return _0x21055e;}['_getTypeCharForViewElement'](_0x53a9b2){return this['_viewClassToTypeChar']['get'](_0x53a9b2['constructor']);}['_getViewFromDiffObj'](_0x4a405f,_0x395123){const _0x4a317d=this['editor']['editing']['view']['document'];if('string'==typeof _0x4a405f)return new _0x507924(_0x4a317d,_0x4a405f);{let _0x365da2,_0x4755d8;_0x4755d8='u'==_0x4a405f['type']||'r'==_0x4a405f['type']?[]:_0x4a405f['children']['map'](_0x54bee7=>this['_getViewFromDiffObj'](_0x54bee7,_0x395123));const _0x31d2e9=this['_typeCharToViewClass']['get'](_0x4a405f['type'])||_0x204fe9,_0x3d7b71=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x365da2=new _0x31d2e9(_0x4a317d,_0x4a405f['name'],_0x4a405f['attributes'],_0x4755d8),'u'==_0x4a405f['type']&&_0x4a405f['children'][0x0]){const _0xc3d366=_0x4a405f['children'][0x0];if(_0x365da2['render']=function(_0x450dc9){const _0x22ed78=_0x450dc9['createElement']('div');return _0x22ed78['innerHTML']=_0xc3d366,_0x22ed78['childNodes'][0x0];},_0x395123){const _0x1524f9=new _0x4e982d(_0x4a317d);_0x1524f9['_appendChild'](_0x365da2);const _0x226615=Array['from'](_0x3d7b71['viewChildrenToDom'](_0x1524f9,{'bind':!0x1})),_0x24c206=_0x3d7b71['domDocument']['createElement']('div');_0x24c206['append'](..._0x226615),_0x365da2=Array['from'](_0x3d7b71['domChildrenToView'](_0x24c206))[0x0];}}else{if('r'==_0x4a405f['type']&&_0x4a405f['children'][0x0]){const _0x32c0c2=_0x4a405f['children'][0x0];if(_0x365da2['render']=function(_0x2390b1){_0x2390b1['innerHTML']=_0x32c0c2;},_0x395123){const _0x1f171c=new _0x4e982d(_0x4a317d);_0x1f171c['_appendChild'](_0x365da2);const _0x546ba4=Array['from'](_0x3d7b71['viewChildrenToDom'](_0x1f171c,{'bind':!0x1})),_0x42284a=_0x3d7b71['domDocument']['createElement']('div');_0x42284a['append'](..._0x546ba4);const _0x3598f3=Array['from'](_0x3d7b71['domChildrenToView'](_0x42284a));_0x3598f3['length']>0x1?_0x365da2['_appendChild'](_0x3598f3):_0x365da2=_0x3598f3[0x0];}}}if(_0x4a405f['customProperties']){for(const [_0x201cfe,_0x359ec4]of _0x4a405f['customProperties'])_0x365da2['_setCustomProperty'](_0x201cfe,_0x359ec4);}const _0x4fced5=void 0x0===_0x4a405f['fillerOffset']?null:_0x4a405f['fillerOffset'];return null!==_0x4fced5&&(_0x365da2['getFillerOffset']=()=>_0x4fced5),_0x365da2;}}['_makeModelFromViewString'](_0x4c1985){const _0x42a6cb=JSON['parse'](_0x4c1985),_0x4869c6=this['editor']['editing']['view']['document'],_0x4aaba9=new _0x4e982d(_0x4869c6,_0x42a6cb['map'](_0x5d3143=>this['_getViewFromDiffObj'](_0x5d3143,!0x0)));return this['editor']['data']['toModel'](_0x4aaba9);}['_removeRevisionMarkers'](_0xa3a5cb){return(_0xa3a5cb=_0xa3a5cb['filter'](_0xf0ddc9=>!_0xf0ddc9['name']||'revision-start'!==_0xf0ddc9['name']&&'revision-end'!==_0xf0ddc9['name']))['forEach'](_0x44e54d=>{'string'!=typeof _0x44e54d&&(_0x44e54d['children']=this['_removeRevisionMarkers'](_0x44e54d['children']),_0x44e54d['attributes']=_0x44e54d['attributes']['filter'](_0x1bf3e5=>!_0x1bf3e5[0x0]['startsWith']('data-revision-')));}),_0xa3a5cb;}}function m(_0x177d89,_0x4af02f,_0x3073e4){const t=_0x177d89['t'];switch(_0x4af02f){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'},_0x3073e4);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x3073e4);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}class h extends _0x5579a2{['licenseKey'];['_licenseKeyCheckInterval'];['currentRevision']=null;['repository'];['adapter']=null;['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_utils'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x2b195f,S,$,_0x46cf21];}constructor(_0x461f74){super(_0x461f74),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new E(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x1efddf=_0x31880b();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x1efddf},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x193361=this['repository']['getRevision'](0x0),_0x16cec6=_0x193361&&null===_0x193361['creator']?_0x193361:null;if(this['_continueCurrentRevision']=!!_0x16cec6&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x53f391=this['_source']['getCurrentRevisionId'](),_0x31429f=this['repository']['getRevision'](_0x53f391);if(_0x31429f)this['_startingVersion']=_0x31429f['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0xcebe93=this['_source']['history']['_operations']['find'](_0x6e803a=>!_0x6e803a['_isInit']),_0x2c3f79=_0xcebe93?_0xcebe93['baseVersion']:this['_source']['history']['version'];_0x193361?(_0x193361['toVersion']<_0x2c3f79&&_0x193361['_update']({'toVersion':_0x2c3f79}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x16cec6['id'],this['_startingVersion']=_0x16cec6['fromVersion']):(this['_startingVersion']=_0x193361['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x2c3f79,this['_continueCurrentRevision']=!0x1);}}else _0x16cec6&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x16cec6['toVersion'],this['editor']['model']['document']['history']['version']),_0x16cec6['fromVersion']===_0x16cec6['toVersion']?(0x0!==_0x16cec6['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x16cec6['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x16cec6['id'],this['_startingVersion']=_0x16cec6['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',_0x299dac=>!_0x299dac),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x29b003=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x42a205;for(const _0x14d093 in _0x29b003){const _0x384481=_0x14d093,_0x2dcfd7=_0x29b003[_0x384481];if('revisionHistoryLicenseKeyValid'==_0x2dcfd7||'revisionHistoryLicenseKeyInvalid'==_0x2dcfd7||'revisionHistoryLicenseKeyExpired'==_0x2dcfd7||'revisionHistoryLicenseKeyDomainLimit'==_0x2dcfd7||'revisionHistoryLicenseKeyNotAllowed'==_0x2dcfd7||'revisionHistoryLicenseKeyEvaluationLimit'==_0x2dcfd7||'revisionHistoryLicenseKeyTrialLimit'==_0x2dcfd7||'revisionHistoryLicenseKeyUsageLimit'==_0x2dcfd7){delete _0x29b003[_0x384481],_0x42a205=_0x2dcfd7,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x42a205&&_0x29b003['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x42a205&&_0x29b003['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x42a205&&_0x29b003['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x42a205&&_0x29b003['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x42a205&&_0x29b003['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x42a205&&_0x29b003['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x42a205&&_0x29b003['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x18cb95=this['repository']['getRevision'](0x0),_0x59c632=await this['getRevisionDocumentData'](_0x18cb95),_0x315812=await this['getRevisionRootsAttributes'](_0x18cb95);this['_replaceEditorDataWithRevisionData'](_0x59c632,_0x315812);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x1473c5){this['_source']=_0x1473c5;}async['update'](){const _0x324ff8=await this['_source']['getLatestVersion']();if(_0x324ff8>this['currentRevision']['toVersion']){await this['_loadState']();const _0x4f212c=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x324ff8});_0x4f212c['authors']=_0x4f212c['authorsIds']['map'](_0x44084e=>this['editor']['plugins']['get']('Users')['getUser'](_0x44084e)),this['currentRevision']['_update'](_0x4f212c);}}async['saveRevision'](_0x7a02c9={},_0x1b7c61=null){const _0x245856=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x1b7c61>this['currentRevision']['toVersion']&&(_0x1b7c61=null),null===_0x1b7c61&&(_0x1b7c61=await this['_source']['getLatestVersion']());const _0x375cf4=this['_getFromVersion'](_0x1b7c61),_0x224294=this['buildRevisionData']({'from':_0x375cf4,'to':_0x1b7c61});if(this['currentRevision']['toVersion']<_0x1b7c61){const _0x3628d4=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x1b7c61,'to':_0x1b7c61});_0x3628d4['authors']=[],_0x3628d4['authorsIds']=[],_0x3628d4['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x3628d4,!0x0),delete _0x3628d4['authors'],_0x245856['push'](_0x3628d4);}_0x7a02c9['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x7a02c9['name']=_0x7a02c9['name']||null,_0x7a02c9['id']=_0x7a02c9['id']||_0x31880b(),_0x7a02c9={..._0x7a02c9,..._0x224294};const _0x1b79d2=this['addRevisionData'](_0x7a02c9);_0x245856['push'](_0x7a02c9);const _0x25f350=this['repository']['getIndex'](_0x1b79d2);if(0x0!==_0x25f350){const _0x4f68ab=this['repository']['getRevision'](_0x25f350-0x1);if(_0x4f68ab['fromVersion']!==_0x1b7c61){const _0x12fba7=this['_revisionDataBuilder']['getData'](_0x1b7c61,_0x4f68ab['toVersion']),_0x395cd3={'id':_0x4f68ab['id'],'diffData':_0x12fba7['diffData'],'authorsIds':_0x12fba7['authorsIds'],'authors':_0x12fba7['authorsIds']['map'](_0x40b867=>this['editor']['plugins']['get']('Users')['getUser'](_0x40b867)),'fromVersion':_0x1b7c61};_0x4f68ab===this['currentRevision']&&(_0x395cd3['createdAt']=new Date(_0x7a02c9['createdAt']['getTime']()+0xa)),_0x4f68ab['_update'](_0x395cd3,!0x0),delete _0x395cd3['authors'],_0x245856['push'](_0x395cd3);}}if(this['adapter']){for(const _0x33bffe of _0x245856)this['_bufferUpdate'](_0x33bffe['id'],_0x33bffe,!0x0);this['sendBufferedUpdates']();}return _0x1b79d2;}['addRevisionData'](_0x49fbd1){const _0x4cf991=this['repository']['createRevision'](_0x49fbd1);return this['adapter']&&_0x4cf991['on']('_update',(_0x5864d4,_0x5d5713,_0x4c9424)=>{_0x4c9424||(this['_bufferUpdate'](_0x5d5713['id'],_0x5d5713,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x4cf991,this['_findInsertionIndex'](_0x4cf991)),_0x4cf991;}async['getRevisionDocumentData'](_0x17ed0e){return await this['_utils']['loadRevisionData'](_0x17ed0e,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x17ed0e);}async['getRevisionRootsAttributes'](_0xb1c904){return await this['_utils']['loadRevisionData'](_0xb1c904,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0xb1c904);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x1c07a1=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x3203ab=0x0;_0x3203ab<_0x1c07a1['length'];_0x3203ab++){const _0x1fef85=_0x1c07a1[_0x3203ab];let _0x182b79=!0x1;for(const _0x263d10 of Object['keys'](_0x1fef85))void 0x0===_0x1fef85[_0x263d10]?delete _0x1fef85[_0x263d10]:'id'!==_0x263d10&&(_0x182b79=!0x0);_0x182b79||(_0x1c07a1[_0x3203ab]=null);}if(_0x1c07a1=_0x1c07a1['filter'](_0xb42865=>null!==_0xb42865),!_0x1c07a1['length'])return;for(let _0x1a7ac8=0x0;_0x1a7ac8<_0x1c07a1['length'];_0x1a7ac8++){const _0x282e8a=_0x1c07a1[_0x1a7ac8];void 0x0!==_0x282e8a['fromVersion']&&void 0x0===_0x282e8a['toVersion']&&(_0x282e8a['toVersion']=this['repository']['getRevision'](_0x282e8a['id'])['toVersion']),void 0x0!==_0x282e8a['toVersion']&&void 0x0===_0x282e8a['fromVersion']&&(_0x282e8a['fromVersion']=this['repository']['getRevision'](_0x282e8a['id'])['fromVersion']);}const _0x1d6ad6=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x1c07a1,_0x1d6ad6)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x4aa690=>{if(_0x4aa690){for(const _0x1aefd1 of _0x4aa690)this['setRevisionData']({'id':_0x1aefd1['id'],'createdAt':_0x1aefd1['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x3fefd5=null,from:_0x1a7e21=null,to:_0x1df708=null}){_0x1a7e21=null!==_0x1a7e21?_0x1a7e21:_0x3fefd5['fromVersion'],_0x1df708=null!==_0x1df708?_0x1df708:_0x3fefd5['toVersion'];const _0x587fe2=this['_revisionDataBuilder']['getData'](_0x1a7e21,_0x1df708),_0x1d84ea={'diffData':_0x587fe2['diffData'],'authorsIds':_0x587fe2['authorsIds'],'fromVersion':_0x1a7e21,'toVersion':_0x1df708};if(!_0x3fefd5||_0x1df708!==_0x3fefd5['toVersion']){const _0x47fb09=_0x1df708-0x1,_0x15dc10=this['_source']['history']['getOperation'](_0x47fb09);_0x1d84ea['createdAt']=_0x15dc10&&_0x15dc10['createdAt']||new Date();}if(this['_loadedStateData']&&_0x1a7e21===this['_loadedStateData']['fromVersion']){for(const _0x5b6a80 of this['_loadedStateData']['authors'])_0x1d84ea['authorsIds']['includes'](_0x5b6a80['id'])||_0x1d84ea['authorsIds']['push'](_0x5b6a80['id']);}return _0x1d84ea;}['_bufferUpdate'](_0x82983f,_0x2dc69d,_0x172238){if(this['_bufferedUpdates']['has'](_0x82983f)){const _0x40e761=this['_bufferedUpdates']['get'](_0x82983f);_0x2dc69d=_0x172238?{..._0x40e761,..._0x2dc69d}:{..._0x2dc69d,..._0x40e761};}this['_bufferedUpdates']['set'](_0x82983f,_0x2dc69d);}['setRevisionData'](_0x55f1a9){const _0x4c3cb8=this['repository']['getRevision'](_0x55f1a9['id']);if(_0x55f1a9['createdAt']&&(_0x55f1a9['createdAt']=new Date(_0x55f1a9['createdAt'])),_0x55f1a9['authorsIds']){const _0x10d150=this['editor']['plugins']['get']('Users');_0x55f1a9['authors']=_0x55f1a9['authorsIds']['map'](_0x5f4072=>_0x10d150['getUser'](_0x5f4072));}_0x4c3cb8['_update'](_0x55f1a9,!0x0);}['_createInitialRevision'](_0x4637d4){const _0x523a6e=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x523a6e)this['_initialRevisionId']=_0x523a6e['id'];else{const _0x45e91d=!this['editor']['model']['document']['roots']['find'](_0xf65808=>this['editor']['model']['hasContent'](_0xf65808)),_0x42deb7=this['editor']['plugins']['get']('Users')['me']['id'],_0x3dc629=m(this['editor']['locale'],_0x45e91d?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x4637d4,'to':_0x4637d4,'id':this['_initialRevisionId'],'name':_0x3dc629,'creatorId':_0x42deb7});}}['_createCurrentRevision'](_0x5b114f){const _0x174f93=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x174f93),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x5b114f,'to':_0x5b114f,'id':_0x174f93,'name':'','creatorId':null}));}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_utils']['loadRevisionData'](this['currentRevision'],this['adapter']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}['_replaceEditorDataWithRevisionData'](_0x276100,_0x2a9673){let _0x5c4a30=this['editor']['config']['get']('initialData'),_0x5b4413=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x5c4a30){_0x5c4a30={};for(const _0x1353f2 of this['editor']['model']['document']['getRootNames']())_0x5c4a30[_0x1353f2]='';}if('string'==typeof _0x5c4a30&&(_0x5c4a30={'main':_0x5c4a30}),void 0x0===_0x5b4413){_0x5b4413={};for(const _0x3ba926 of this['editor']['model']['document']['getRootNames']())_0x5b4413[_0x3ba926]={};}let _0x3c5ac2=!0x1;const _0xb9c357=Object['keys'](_0x5c4a30),_0x5b546a=Object['keys'](_0x276100);for(const _0x1c090d of _0xb9c357){if(_0x5c4a30[_0x1c090d]!==_0x276100[_0x1c090d]&&''!==_0x5c4a30[_0x1c090d]['trim']()){_0x3c5ac2=!0x0;break;}if(!_0x5da047(_0x5b4413[_0x1c090d],_0x2a9673[_0x1c090d])&&Object['keys'](_0x5b4413[_0x1c090d])['length']>0x0){_0x3c5ac2=!0x0;break;}}_0x3c5ac2||(_0x3c5ac2=_0x5b546a['some'](_0x483cc8=>!this['editor']['model']['document']['getRoot'](_0x483cc8))),_0x3c5ac2&&_0x5db29a('editor-initial-data-replaced-with-revision-data',{'editorData':_0x5c4a30,'editorRootsAttributes':_0x5b4413,'revisionData':_0x276100,'revisionRootsAttributes':_0x2a9673}),this['editor']['config']['set']('initialData',_0x276100),this['editor']['config']['set']('rootsAttributes',_0x2a9673);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x4b637c=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x4b637c['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x2e6692){const _0x57ac25=this['repository']['getRevisions']();_0x57ac25['reverse']();let _0x445288=0x0;for(;_0x445288<_0x57ac25['length'];){const _0xcb5a7=_0x57ac25[_0x445288];if(_0xcb5a7===this['currentRevision']){_0x445288++;continue;}if(_0xcb5a7['id']===this['_initialRevisionId'])break;const _0x150920=_0x2e6692['toVersion']-_0xcb5a7['toVersion']||_0x2e6692['fromVersion']-_0xcb5a7['fromVersion'];if(_0x150920>0x0)break;if(_0x150920<0x0)_0x445288++;else{if(!_0x2e6692['creator']&&_0xcb5a7['creator'])break;if(_0xcb5a7['creator']||!_0x2e6692['creator']){if(_0x2e6692['createdAt']>_0xcb5a7['createdAt'])break;_0x445288++;}else _0x445288++;}}return _0x445288;}['_getFromVersion'](_0x4fe58b){const _0x37b3ed=this['repository']['getRevisions']();_0x37b3ed['reverse'](),_0x37b3ed['shift']();const _0x1fefe7=_0x37b3ed['find'](_0xecccc5=>_0xecccc5['toVersion']<=_0x4fe58b)['toVersion'];return _0x1fefe7<this['_startingVersion']?this['_startingVersion']:_0x1fefe7;}['_makeRevision']({name:_0x435ff2,from:_0x5b76d9,to:_0x42de3e,creatorId:_0xcdf756,id:_0x509ff2}){const _0x13125d=this['buildRevisionData']({'from':_0x5b76d9,'to':_0x42de3e});_0x13125d['name']=_0x435ff2,_0x13125d['creatorId']=_0xcdf756,_0x13125d['id']=_0x509ff2;const _0x557ee6=this['addRevisionData'](_0x13125d);return this['adapter']&&this['_bufferUpdate'](_0x13125d['id'],_0x13125d,!0x0),_0x557ee6;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class E{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x16e488){this['editor']=_0x16e488,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'](_0x1b0a8d){this['source']=_0x1b0a8d;const _0x4a81c0=new Map(),_0x2644f1=new Map(),_0xf91724=this['editor']['model']['document']['roots']['map'](_0x213c51=>_0x213c51['rootName']);for(const _0x4f5bb0 of _0xf91724){const _0x3794ba=this['editor']['model']['document']['getRoot'](_0x4f5bb0),_0x533719=x(_0x3794ba);_0x4a81c0['set'](_0x4f5bb0,_0x533719),_0x2644f1['set'](_0x4f5bb0,Object['fromEntries'](_0x3794ba['getAttributes']()));}const _0x44dae8=Array['from'](this['editor']['model']['markers'])['map'](_0x199924=>[_0x199924['name'],_0x199924['getRange']()]),_0x419ebb=this['source']['version'];this['_saveMetaData'](_0x419ebb,_0x4a81c0,_0x44dae8,_0x2644f1),this['_startingRevisionId']=this['_revisionId'];const _0x5ce9ba=new Map(),_0x410ff7=new Map();for(const _0x2af01a of _0xf91724){const _0x1977e3=N(_0x2af01a);_0x5ce9ba['set'](_0x2af01a,_0x1977e3),_0x410ff7['set'](_0x2af01a,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x5ce9ba,[],_0x410ff7);}['getData'](_0x155e48,_0x39583d){if(this['_lastFrom']===_0x155e48&&this['_lastTo']<=_0x39583d)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x39583d,!0x0);else{if(!this['_savedMetaData']['has'](_0x155e48)){const _0x19fc94=this['_getPreviousFrom'](_0x155e48);this['_calculateMetaData'](_0x19fc94,_0x155e48,!0x1);}this['_calculateMetaData'](_0x155e48,_0x39583d,!0x0);}return this['_lastFrom']=_0x155e48,this['_lastTo']=_0x39583d,this['_getState']();}['loadState'](_0x26ead4){if(!this['_savedMetaData']['has'](_0x26ead4['fromVersion'])){const _0x393eae=this['_getPreviousFrom'](_0x26ead4['fromVersion']);this['_calculateMetaData'](_0x393eae,_0x26ead4['fromVersion'],!0x1);}this['_calculateMetaData'](_0x26ead4['fromVersion'],_0x26ead4['toVersion'],!0x1);const _0x3925cf=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x26ead4['fromVersion'],this['_lastTo']=_0x26ead4['toVersion'];for(const _0x4cc758 in _0x26ead4['diffData']){const _0x5abb17=_0x26ead4['diffData'][_0x4cc758]['attachChange'],_0x218a66=_0x151e36(_0x26ead4['diffData'][_0x4cc758]['attributesBefore'])||{},_0x1348ac=_0x3925cf['_makeModelFromViewString'](_0x26ead4['diffData'][_0x4cc758]['deletions']);_0x1348ac['rootName']=_0x4cc758,_0x1348ac['_isAttached']=!_0x5abb17||!_0x5abb17['isAttached'],_0x1348ac['isAttached']=()=>_0x1348ac['_isAttached'],this['_baseRoots']['set'](_0x4cc758,_0x1348ac),this['_baseRootsAttributes']['set'](_0x4cc758,_0x218a66),_0x5abb17&&this['_touchedRoots']['set'](_0x4cc758,_0x5abb17);const _0x4614b8=this['_makeIdsRoot'](_0x1348ac);this['_baseIdsRoots']['set'](_0x4cc758,_0x4614b8);for(const [_0x1cba56,_0x3bdbf5]of _0x1348ac['markers']){if(!_0x1cba56['startsWith']('revision:'))continue;const _0xd495cf=_0x1cba56['split'](':')[0x2];for(const _0x1b7d64 of _0x3bdbf5['getWalker']({'singleCharacters':!0x0})){const _0x25a62a=this['_getVidAttributeName'](_0x1b7d64),_0xc3bec9='elementEnd'==_0x1b7d64['type']?_0x1b7d64['previousPosition']['path']['slice'](0x0,-0x1):_0x1b7d64['previousPosition']['path'],_0x39ba54=_0x4614b8['getNodeByPath'](_0xc3bec9)['getAttribute'](_0x25a62a);this['_touched']['set'](_0x39ba54,{'userId':_0xd495cf});}_0x1348ac['markers']['delete'](_0x1cba56);}}this['_startingRevisionId']=this['_revisionId'];const _0x36bf5b=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x3c2bcb=>!this['_touched']['has'](_0x3c2bcb));let _0x4e653e=0x0;const _0xdc841e=new Map();for(const _0x1d98f0 in _0x26ead4['diffData']){const _0x14ce9b=_0x26ead4['diffData'][_0x1d98f0]['attachChange'],_0x550a2f=_0x151e36(_0x26ead4['diffData'][_0x1d98f0]['attributesAfter'])||{},_0x43b8df=_0x3925cf['_makeModelFromViewString'](_0x26ead4['diffData'][_0x1d98f0]['insertions']);_0x43b8df['rootName']=_0x1d98f0,_0x43b8df['_isAttached']=!_0x14ce9b||_0x14ce9b['isAttached'],_0x43b8df['isAttached']=()=>_0x43b8df['_isAttached'],this['_diffRoots']['set'](_0x1d98f0,_0x43b8df),this['_diffRootsAttributes']['set'](_0x1d98f0,_0x550a2f);const _0x53633f=this['_makeIdsRoot'](_0x43b8df,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x1d98f0,_0x53633f),_0xdc841e['set'](_0x1d98f0,_0x43b8df['isAttached']()?_0x550a2f:{});for(const [_0x57de2c,_0x1523a4]of _0x43b8df['markers']){if(!_0x57de2c['startsWith']('revision:'))continue;const _0x19cacb=_0x57de2c['split'](':')[0x2];for(const _0xc5efda of _0x1523a4['getWalker']({'singleCharacters':!0x0})){const _0x40f439=this['_getVidAttributeName'](_0xc5efda),_0x5a1c05=this['_revisionId']++,_0xe13186='elementEnd'==_0xc5efda['type']?_0xc5efda['previousPosition']['path']['slice'](0x0,-0x1):_0xc5efda['previousPosition']['path'];_0x53633f['getNodeByPath'](_0xe13186)['_setAttribute'](_0x40f439,_0x5a1c05),this['_touched']['set'](_0x5a1c05,{'userId':_0x19cacb});}_0x43b8df['markers']['delete'](_0x57de2c);}for(const _0x5ec1bb of this['editor']['model']['createRangeIn'](_0x43b8df)['getWalker']({'singleCharacters':!0x0})){const _0x28acab=this['_getVidAttributeName'](_0x5ec1bb),_0x442b20='elementEnd'==_0x5ec1bb['type']?_0x5ec1bb['previousPosition']['path']['slice'](0x0,-0x1):_0x5ec1bb['previousPosition']['path'],_0x200680=_0x53633f['getNodeByPath'](_0x442b20);_0x200680['getAttribute'](_0x28acab)>0x0||_0x200680['_setAttribute'](_0x28acab,_0x36bf5b[_0x4e653e++]);}for(const [_0x478763,_0x3ff079]of _0x43b8df['markers'])_0x478763['startsWith']('revision:')||this['_markers']['set'](_0x478763,_0x3ff079);}const {roots:_0x1fa0f7}=this['_savedMetaData']['get'](_0x26ead4['fromVersion']),{roots:_0x88abca}=this['_savedMetaData']['get'](_0x26ead4['toVersion']),_0x3e07ad=x(_0x1fa0f7['get']('$graveyard'));this['_baseRoots']['set']('$graveyard',_0x3e07ad),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x3e07ad,Number['NEGATIVE_INFINITY']));const _0x3ac819=x(_0x88abca['get']('$graveyard'));this['_diffRoots']['set']('$graveyard',_0x3ac819),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x3ac819));const _0x51c6d4=Array['from'](this['_diffRoots'])['map'](([_0x178670,_0x3bea7e])=>[_0x178670,x(_0x3bea7e)]);this['_saveMetaData'](this['_lastTo'],_0x51c6d4,this['_markers'],_0xdc841e);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x5868c6,_0x509ff5,_0x2f687c,_0x5971a2){const _0x2578f7=new Map(_0x509ff5),_0x5a6670=new Map(_0x151e36(_0x5971a2)),_0x3ae607=new Map();for(const [_0x56c2db,_0xd5d61b]of _0x2f687c)_0x3ae607['set'](_0x56c2db,{'start':_0xd5d61b['start']['clone'](),'end':_0xd5d61b['end']['clone'](),'rootName':_0xd5d61b['root']['rootName']});this['_savedMetaData']['set'](_0x5868c6,{'roots':_0x2578f7,'markers':_0x3ae607,'rootsAttributes':_0x5a6670});}['_removeMetaData'](_0x24d170){this['_savedMetaData']['delete'](_0x24d170);}['_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'](_0x39518a,_0x139a90=null){let _0x2093e6=null;_0x39518a['is']('documentFragment')||(_0x2093e6=new _0x5ca907(_0x39518a['name'],{'vid_start':null===_0x139a90?this['_revisionId']++:_0x139a90++}));const _0x31391b=[];for(const _0x26caf8 of _0x39518a['getChildren']())if(_0x26caf8['is']('element')){_0x31391b['push'](this['_makeIdsRoot'](_0x26caf8,_0x139a90));const _0xfdc82d=_0x31391b[_0x31391b['length']-0x1];null!==_0x139a90&&(_0x139a90=_0xfdc82d['is']('element','$text')?_0xfdc82d['getAttribute']('vid')+0x1:_0xfdc82d['getAttribute']('vid_end')+0x1);}else{for(let _0x5143ad=0x0;_0x5143ad<_0x26caf8['offsetSize'];_0x5143ad++)_0x31391b['push'](new _0x5ca907('$text',{'vid':null===_0x139a90?this['_revisionId']++:_0x139a90++}));}if(_0x39518a['is']('documentFragment')){const _0x2ce2f6=N(_0x39518a['rootName']);return _0x2ce2f6['_insertChild'](0x0,_0x31391b),_0x2ce2f6;}return _0x2093e6['_setAttribute']('vid_end',null===_0x139a90?this['_revisionId']++:_0x139a90++),_0x2093e6['_insertChild'](0x0,_0x31391b),_0x2093e6;}['_calculateMetaData'](_0xf053b2,_0x9139a1,_0x23c89a){this['_reset']();const {roots:_0x4e7c72,markers:_0x51f89a,rootsAttributes:_0x78db7b}=this['_savedMetaData']['get'](_0xf053b2);this['_baseRoots']=new Map(_0x4e7c72),this['_baseRootsAttributes']=new Map(_0x151e36(_0x78db7b));for(const [_0x30b8a7,_0x231695]of this['_baseRoots'])if('$graveyard'!==_0x30b8a7&&(this['_diffRoots']['set'](_0x30b8a7,x(_0x231695)),this['_diffRootsAttributes']=new Map(_0x151e36(_0x78db7b)),_0x23c89a)){const _0x1e7eb5=this['_revisionId'];this['_idsRoots']['set'](_0x30b8a7,this['_makeIdsRoot'](_0x231695)),this['_baseIdsRoots']['set'](_0x30b8a7,this['_makeIdsRoot'](_0x231695,_0x1e7eb5));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x23c89a&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x16bde2,_0x20eaa4]of _0x51f89a){const _0x3f6fd5=this['_baseRoots']['get'](_0x20eaa4['rootName']),_0x31addc=this['_diffRoots']['get'](_0x20eaa4['rootName']),_0x171668=new _0x177473(this['_fixPosition'](_0x20eaa4['start'],_0x3f6fd5),this['_fixPosition'](_0x20eaa4['end'],_0x3f6fd5)),_0x469bd8=this['_fixRange'](_0x171668,_0x31addc);_0x3f6fd5['markers']['set'](_0x16bde2,_0x171668),this['_markers']['set'](_0x16bde2,_0x469bd8);}this['_applyOperations'](_0xf053b2,_0x9139a1,_0x23c89a);}['_applyOperations'](_0x352851,_0x3bf380,_0x538848){for(const _0x5c1e74 of this['source']['getOperations'](_0x352851,_0x3bf380))this['_handleOperation'](_0x5c1e74,_0x538848);for(const _0x2287d2 of this['_diffRoots']['values']())_0x2287d2['markers']['clear']();for(const [_0xa647eb,_0x16b9b9]of this['_markers']){this['_diffRoots']['get'](_0x16b9b9['root']['rootName'])['markers']['set'](_0xa647eb,_0x16b9b9['clone']());}const _0xb2088a=new Map(),_0x105cb4=new Map();for(const [_0x1d488c,_0x28e2d2]of this['_diffRoots'])_0xb2088a['set'](_0x1d488c,x(_0x28e2d2)),_0x105cb4['set'](_0x1d488c,this['_diffRootsAttributes']['get'](_0x1d488c));this['_saveMetaData'](_0x3bf380,_0xb2088a,this['_markers'],_0x105cb4);}['_getPreviousFrom'](_0x1f50c8){const _0x2f06b5=Array['from'](this['_savedMetaData']['keys']());_0x2f06b5['sort']((_0x255926,_0x47f6b6)=>_0x255926-_0x47f6b6),_0x2f06b5['reverse']();for(const _0x24efe8 of _0x2f06b5)if(_0x24efe8<_0x1f50c8)return _0x24efe8;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x3b5bd9,_0x1aa7b6){const _0x69d8b7=Array['from'](_0x1aa7b6['markers'])['map'](([_0x1e1a98,_0x361b86])=>[_0x1e1a98,this['_fixRange'](_0x361b86,_0x3b5bd9)]);_0x3b5bd9['markers']=new Map(_0x69d8b7);}['_transformMarkers'](_0x4a180a){for(const _0x8c99bc of this['_markers']['values']()){const _0x1beadb=_0x8c99bc['getTransformedByOperation'](_0x4a180a),_0x46c6e9=_0x177473['_createFromRanges'](_0x1beadb);_0x8c99bc['start']=_0x46c6e9['start'],_0x8c99bc['end']=_0x46c6e9['end'];}}['_handleOperation'](_0x3dcb6e,_0x286a01){if('addRoot'!=_0x3dcb6e['type']&&'detachRoot'!=_0x3dcb6e['type']){if('insert'==_0x3dcb6e['type']){const _0x48746f=_0x3dcb6e['position']['root']['rootName'];this['_diffRoots']['has'](_0x48746f)||(this['_diffRoots']['set'](_0x48746f,N(_0x48746f,!0x0)),this['_diffRootsAttributes']['set'](_0x48746f,{}),_0x286a01&&this['_idsRoots']['set'](_0x48746f,N(_0x48746f,!0x0)));}else{if('addRootAttribute'==_0x3dcb6e['type']||'removeRootAttribute'==_0x3dcb6e['type']||'changeRootAttribute'==_0x3dcb6e['type'])return void this['_handleRootAttributeOperation'](_0x3dcb6e);'marker'==_0x3dcb6e['type']&&this['_handleMarkerOperation'](_0x3dcb6e);}if('marker'!==_0x3dcb6e['type']){const _0x2c0168=this['_cloneOperation'](_0x3dcb6e,this['_diffRoots']);_0x2c0168['_execute'](),this['_transformMarkers'](_0x2c0168);}if(_0x286a01)switch(_0x3dcb6e['type']){case'insert':this['_handleInsertOperation'](_0x3dcb6e);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x3dcb6e);break;case'merge':this['_handleMergeOperation'](_0x3dcb6e);break;case'split':this['_handleSplitOperation'](_0x3dcb6e);}}else this['_handleRootOperation'](_0x3dcb6e,_0x286a01);}['_cloneOperation'](_0x46ef05,_0x5730fa){const _0xfd9ce3=_0x46ef05['clone']();return _0xfd9ce3['_authorId']=_0x46ef05['_authorId'],this['_fixOperation'](_0xfd9ce3,_0x5730fa),_0xfd9ce3;}['_getBaseVids'](_0x31fb96){return _0x31fb96['map'](_0xd168b6=>{const _0x2e96c2=this['_getVidAttributeName'](_0xd168b6);return Number(_0xd168b6['item']['getAttribute'](_0x2e96c2));});}['_generateTape'](_0x254d54,_0x325f98){if(_0x254d54['is']('element','$text'))_0x325f98['push']({'item':_0x254d54,'type':'text'});else{_0x254d54['is']('element')&&_0x325f98['push']({'item':_0x254d54,'type':'elementStart'});for(const _0xc49b11 of _0x254d54['getChildren']())this['_generateTape'](_0xc49b11,_0x325f98);_0x254d54['is']('element')&&_0x325f98['push']({'item':_0x254d54,'type':'elementEnd'});}return _0x325f98;}['_getState'](){const _0x9dec4e=new Map(this['_touched']),_0x28160a=new Map(_0x9dec4e),_0x7ebe21=new Map(),_0x44a097={'insertions':{},'deletions':{}},_0x54b05f={'insertions':{},'deletions':{}},_0x3dfd43=new Map(),_0x735ba5=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x735ba5['delete']('$graveyard');for(const _0xdfd0d9 of _0x735ba5){const _0x35b053=this['_diffRoots']['get'](_0xdfd0d9)||N(_0xdfd0d9,!0x1),_0x1084de=this['_baseRoots']['get'](_0xdfd0d9)||N(_0xdfd0d9,!0x1);_0x35b053['isAttached']()||_0x1084de['isAttached']()?(_0x44a097['insertions'][_0xdfd0d9]=x(_0x35b053),_0x44a097['deletions'][_0xdfd0d9]=x(_0x1084de),this['_copyMarkers'](_0x44a097['deletions'][_0xdfd0d9],_0x1084de),this['_copyMarkers'](_0x44a097['insertions'][_0xdfd0d9],_0x35b053),_0x54b05f['insertions'][_0xdfd0d9]=this['_generateTape'](this['_idsRoots']['get'](_0xdfd0d9),[]),_0x54b05f['deletions'][_0xdfd0d9]=this['_generateTape'](this['_baseIdsRoots']['get'](_0xdfd0d9)||N(_0xdfd0d9,!0x1),[])):_0x735ba5['delete'](_0xdfd0d9);}for(const _0x1fc522 of _0x735ba5){const _0x5b6405=_0x54b05f['insertions'][_0x1fc522];for(const _0x1eb4de of _0x5b6405){const _0x2e0802=this['_getVidAttributeName'](_0x1eb4de),_0x2bbda9=_0x1eb4de['item']['getAttribute'](_0x2e0802);_0x28160a['delete'](_0x2bbda9),_0x2bbda9>=this['_startingRevisionId']&&_0x7ebe21['set'](_0x2bbda9,_0x9dec4e['get'](_0x2bbda9));}}for(const _0x4a54eb of _0x735ba5){const _0x5b20f4=_0x54b05f['insertions'][_0x4a54eb],_0x2098fa=this['_getBaseVids'](_0x54b05f['deletions'][_0x4a54eb]);let _0x2b40be=0x0;for(const _0x31fd5d of _0x5b20f4){const _0x3afef5=this['_getVidAttributeName'](_0x31fd5d),_0xb375bd=_0x31fd5d['item']['getAttribute'](_0x3afef5);if(!_0x7ebe21['has'](_0xb375bd)&&!_0x3dfd43['has'](_0xb375bd)){if(_0x28160a['has'](_0xb375bd))_0x2b40be++;else{if(_0xb375bd!=_0x2098fa[_0x2b40be]){const _0x20abeb=_0x9dec4e['get'](_0xb375bd)||_0x9dec4e['get'](_0x2098fa[_0x2b40be]);for(;_0xb375bd!=_0x2098fa[_0x2b40be];)_0x28160a['has'](_0x2098fa[_0x2b40be])||(_0x3dfd43['set'](_0x2098fa[_0x2b40be],_0x20abeb),_0x9dec4e['set'](_0x2098fa[_0x2b40be],_0x20abeb)),_0x2b40be++;}_0x2b40be++;}}}}for(const _0x49e754 of _0x735ba5){const _0x41e027=_0x54b05f['insertions'][_0x49e754];for(const _0xcb6f22 of _0x41e027){const _0x458193=this['_getVidAttributeName'](_0xcb6f22),_0x23406b=_0xcb6f22['item']['getAttribute'](_0x458193);if(_0x3dfd43['has'](_0x23406b)){const _0x2788d8=_0x3dfd43['get'](_0x23406b);_0x28160a['has'](_0x23406b)||_0x28160a['set'](_0x23406b,{..._0x2788d8}),_0x7ebe21['set'](_0x23406b,{..._0x2788d8});}}}for(const _0x173ab8 of _0x28160a['keys']())_0x173ab8>=this['_startingRevisionId']&&_0x28160a['delete'](_0x173ab8);const _0x2ceabe=new Map();for(const _0x57e156 of _0x735ba5){let _0x344e4f=_0x54b05f['insertions'][_0x57e156];for(const _0x20c84c of _0x344e4f)if(_0x20c84c['item']['is']('element','tableCell')){const _0x27ddbe=this['_getVidAttributeName'](_0x20c84c),_0x5d484f=_0x20c84c['item']['getAttribute'](_0x27ddbe);if(_0x7ebe21['has'](_0x5d484f)){const _0x450947=_0x20c84c['item']['parent']['parent']['getAttribute']('vid_start'),_0xd87e67=_0x2ceabe['get'](_0x450947)||new Set();_0xd87e67['add'](_0x7ebe21['get'](_0x5d484f)['userId']),_0x2ceabe['set'](_0x450947,_0xd87e67);}}_0x344e4f=_0x54b05f['deletions'][_0x57e156];for(const _0x52e128 of _0x344e4f)if(_0x52e128['item']['is']('element','tableCell')){const _0x408d35=this['_getVidAttributeName'](_0x52e128),_0x2c9383=_0x52e128['item']['getAttribute'](_0x408d35);if(_0x28160a['has'](_0x2c9383)){const _0x5d9636=_0x52e128['item']['parent']['parent']['getAttribute']('vid_start'),_0xee1b2c=_0x2ceabe['get'](_0x5d9636)||new Set();_0xee1b2c['add'](_0x28160a['get'](_0x2c9383)['userId']),_0x2ceabe['set'](_0x5d9636,_0xee1b2c);}}for(const _0x24a0f5 of _0x2ceabe['keys']())(_0x7ebe21['has'](_0x24a0f5)||_0x28160a['has'](_0x24a0f5))&&_0x2ceabe['delete'](_0x24a0f5);}for(const _0x4f28db of _0x735ba5){const _0x24002a=_0x54b05f['insertions'][_0x4f28db];let _0x40dfeb=null,_0x5bc164=null;for(const _0x49059a of _0x24002a){const _0x53dbf7=this['_getVidAttributeName'](_0x49059a),_0x25703d=_0x49059a['item']['getAttribute'](_0x53dbf7),_0x1994f3=_0x2ceabe['get'](_0x25703d);_0x1994f3&&'elementStart'==_0x49059a['type']&&(_0x40dfeb=Array['from'](_0x1994f3)[0x0],_0x5bc164=_0x49059a['item']['getAttribute']('vid_end')),_0x40dfeb&&(_0x28160a['set'](_0x25703d,{'userId':_0x40dfeb}),_0x7ebe21['set'](_0x25703d,{'userId':_0x40dfeb})),_0x25703d==_0x5bc164&&(_0x40dfeb=null,_0x5bc164=null);}}const _0x1ebcea={},_0x2f8c54=new Set();for(const _0x179fe5 of _0x735ba5){const _0x4de723=_0x44a097['deletions'][_0x179fe5],_0x1a7c07=_0x44a097['insertions'][_0x179fe5];for(const {userId:_0x5f23d0}of this['_touchedMarkers']['values']())null!==_0x5f23d0&&_0x2f8c54['add'](_0x5f23d0);for(const {userId:_0x4784ed}of this['_touchedRoots']['values']())null!==_0x4784ed&&_0x2f8c54['add'](_0x4784ed);this['_markChanges'](_0x1a7c07,_0x54b05f['insertions'][_0x179fe5],_0x7ebe21,'insertion',_0x2f8c54),this['_markChanges'](_0x4de723,_0x54b05f['deletions'][_0x179fe5],_0x28160a,'deletion',_0x2f8c54),_0x1ebcea[_0x179fe5]={'insertions':this['_prepareViewToSave'](_0x1a7c07),'deletions':this['_prepareViewToSave'](_0x4de723),'attachChange':this['_touchedRoots']['get'](_0x179fe5)||null,'attributesBefore':_0x151e36(this['_baseRootsAttributes']['get'](_0x179fe5))||{},'attributesAfter':_0x151e36(this['_diffRootsAttributes']['get'](_0x179fe5))};}return{'diffData':_0x1ebcea,'authorsIds':Array['from'](_0x2f8c54)};}['_processRootBeforeSave'](_0x588847){for(const [,_0xff7325]of _0x588847['markers']){const _0x4ae6b0=_0xff7325['start']['getAncestors']()['filter'](_0x2872d0=>'tableCell'==_0x2872d0['name']);for(const _0x17cca4 of _0x4ae6b0)0x1==_0x17cca4['childCount']&&_0x17cca4['getChild'](0x0)['is']('element','paragraph')&&_0x17cca4['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x2cabed){this['_processRootBeforeSave'](_0x2cabed);const _0x52b480=this['editor']['data']['toView'](_0x2cabed,{}),_0x441c07=Array['from'](_0x52b480['getChildren']())['map'](_0x9f06e0=>this['_getViewJson'](_0x9f06e0));return JSON['stringify'](_0x441c07);}['_getViewJson'](_0xd1c654){if(_0xd1c654['is']('$text'))return _0xd1c654['data'];{const _0x5498f0=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x1b6c35=_0xd1c654,_0x238e17=this['editor']['data']['htmlProcessor']['domConverter'],_0x4ab943={'type':_0x5498f0['_getTypeCharForViewElement'](_0x1b6c35),'name':_0x1b6c35['name'],'attributes':Array['from'](_0x1b6c35['getAttributes']()),'children':Array['from'](_0x1b6c35['getChildren']())['map'](_0x3225f6=>this['_getViewJson'](_0x3225f6))};if(_0xd1c654['is']('uiElement')&&'$comment'!=_0xd1c654['name']){const _0x28e82f=_0xd1c654['render'](_0x238e17['domDocument'],_0x238e17);_0x4ab943['children']['push'](_0x28e82f['outerHTML']);}else{if(_0xd1c654['is']('rawElement')){const _0x49cd7a=_0x238e17['domDocument']['createElement'](_0x1b6c35['name']);_0xd1c654['render'](_0x49cd7a,_0x238e17),_0x4ab943['children']['push'](_0x49cd7a['innerHTML']);}}const _0x4875cb=Array['from'](_0x1b6c35['getCustomProperties']());_0x4875cb['length']>0x0&&(_0x4ab943['customProperties']=_0x4875cb);const _0x462858=_0x1b6c35['getFillerOffset']();return null!==_0x462858&&(_0x4ab943['fillerOffset']=_0x462858),_0x4ab943;}}['_markChanges'](_0x3095cf,_0x53e65b,_0x5c8555,_0x1f722b,_0x32bdf1){let _0x1906e5=null,_0x50c288=null,_0x26125b=0x0;const _0x253dad=this['editor']['model'];for(let _0x528693=0x0;_0x528693<_0x53e65b['length'];_0x528693++){const _0x374868=this['_getVidAttributeName'](_0x53e65b[_0x528693]),_0x500a3b=_0x53e65b[_0x528693]['item']['getAttribute'](_0x374868),_0x42d70a=_0x5c8555['get'](_0x500a3b),_0x56f876=_0x528693==_0x53e65b['length']-0x1;(!_0x1906e5&&_0x42d70a&&(_0x1906e5=_0x42d70a,_0x50c288=_0x53e65b[_0x528693]),_0x1906e5&&(!_0x42d70a||_0x42d70a['userId']!=_0x1906e5['userId']))&&(_0x4d3753(_0x42d70a,P(_0x50c288,_0x3095cf,_0x253dad),P(_0x53e65b[_0x528693],_0x3095cf,_0x253dad)),_0x1906e5=_0x42d70a||null,_0x50c288=_0x42d70a?_0x53e65b[_0x528693]:null),_0x1906e5&&_0x56f876&&_0x4d3753(_0x42d70a,P(_0x50c288,_0x3095cf,_0x253dad),V(_0x53e65b[_0x528693],_0x3095cf,_0x253dad));}function _0x4d3753(_0x5b458a,_0x1e9917,_0x510b06){const _0x4e5f7a=_0x1906e5['userId'],_0xdff62f='revision:'+_0x1f722b+':'+_0x4e5f7a+':'+_0x26125b++,_0x299f05=_0x253dad['createRange'](_0x1e9917,_0x510b06);_0x3095cf['markers']['set'](_0xdff62f,_0x299f05),null!==_0x4e5f7a&&_0x32bdf1['add'](_0x4e5f7a);}}['_getVidAttributeName'](_0x1ca074){switch(_0x1ca074['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x439511,_0x27abdd){_0x439511['baseVersion']=null;for(const _0x1da796 in _0x439511){const _0x3a4606=_0x439511[_0x1da796];if(_0x3a4606 instanceof _0x2904be){const _0x39e255=_0x27abdd['get'](_0x3a4606['root']['rootName']);_0x439511[_0x1da796]=this['_fixPosition'](_0x3a4606,_0x39e255);}if(_0x3a4606 instanceof _0x177473){const _0x2c526a=_0x27abdd['get'](_0x3a4606['root']['rootName']);_0x439511[_0x1da796]=this['_fixRange'](_0x3a4606,_0x2c526a);}'root'===_0x1da796&&(_0x439511['root']=_0x27abdd['get'](_0x439511['root']['rootName']));}}['_fixRange'](_0x19e39f,_0x596514){return this['editor']['model']['createRange'](this['_fixPosition'](_0x19e39f['start'],_0x596514),this['_fixPosition'](_0x19e39f['end'],_0x596514));}['_fixPosition'](_0x168e21,_0x1eeca5){return this['editor']['model']['createPositionFromPath'](_0x1eeca5,_0x168e21['path'],_0x168e21['stickiness']);}['_handleInsertOperation'](_0x1aebae){const _0x282f87=this['_idsRoots']['get'](_0x1aebae['position']['root']['rootName']),_0x40745b=this['_fixPosition'](_0x1aebae['position'],_0x282f87),_0x1301ba=null===_0x1aebae['_authorId']?null:_0x1aebae['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x48e700=_0x40745b['parent'],_0x444988=this['_revisionId'],_0x4d29b2=[];for(const _0x2a8b9f of _0x1aebae['nodes'])if(_0x2a8b9f['is']('element'))_0x4d29b2['push'](this['_makeIdsRoot'](_0x2a8b9f));else{for(let _0x132fb8=0x0;_0x132fb8<_0x2a8b9f['offsetSize'];_0x132fb8++)_0x4d29b2['push'](new _0x5ca907('$text',{'vid':this['_revisionId']++}));}const _0xab302e=this['_revisionId'];for(let _0x497bb8=_0x444988;_0x497bb8<_0xab302e;_0x497bb8++)this['_touched']['set'](_0x497bb8,{'userId':_0x1301ba});_0x48e700['_insertChild'](_0x40745b['offset'],_0x4d29b2);}['_handleMoveOperation'](_0x463c32){(_0x463c32=this['_cloneOperation'](_0x463c32,this['_idsRoots']))['_execute']();const _0x1b94ed=null===_0x463c32['_authorId']?null:_0x463c32['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5d3826=_0x463c32['getMovedRangeStart'](),_0x302053=_0x5d3826['parent'],_0x48d41d=_0x5d3826['offset'];!function _0x55f706(_0x3ea480,_0x5ff46b,_0x3a4bdb,_0x29f5c2){for(let _0x47ccce=_0x3a4bdb;_0x47ccce<_0x29f5c2;_0x47ccce++){const _0x32dccc=_0x5ff46b['getChild'](_0x47ccce);_0x32dccc['is']('element','$text')?_0x3ea480['set'](_0x32dccc['getAttribute']('vid'),{'userId':_0x1b94ed}):(_0x3ea480['set'](_0x32dccc['getAttribute']('vid_start'),{'userId':_0x1b94ed}),_0x55f706(_0x3ea480,_0x32dccc,0x0,_0x32dccc['childCount']),_0x3ea480['set'](_0x32dccc['getAttribute']('vid_end'),{'userId':_0x1b94ed}));}}(this['_touched'],_0x302053,_0x48d41d,_0x48d41d+_0x463c32['howMany']);}['_handleMergeOperation'](_0x2c4bd1){const _0x1756af=null===(_0x2c4bd1=this['_cloneOperation'](_0x2c4bd1,this['_idsRoots']))['_authorId']?null:_0x2c4bd1['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5da707=_0x2c4bd1['targetPosition']['parent'],_0x29a132=_0x2c4bd1['sourcePosition']['parent'],_0x3f66ae=_0x5da707['getAttribute']('vid_end'),_0x5e46d2=_0x29a132['getAttribute']('vid_start');_0x5da707['_setAttribute']('vid_end',_0x29a132['getAttribute']('vid_end')),_0x29a132['_setAttribute']('vid_end',_0x3f66ae),this['_touched']['set'](_0x5e46d2,{'userId':_0x1756af}),this['_touched']['set'](_0x3f66ae,{'userId':_0x1756af}),_0x2c4bd1['_execute']();}['_handleSplitOperation'](_0xa68fe7){const _0x2bcad2=null===(_0xa68fe7=this['_cloneOperation'](_0xa68fe7,this['_idsRoots']))['_authorId']?null:_0xa68fe7['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x32ff64=_0xa68fe7['graveyardPosition'],_0x383403=_0xa68fe7['splitPosition']['parent'];_0xa68fe7['_execute']();const _0x297c5f=_0x383403['getAttribute']('vid_end'),_0x31bb1f=_0xa68fe7['insertionPosition']['nodeAfter'];if(_0x32ff64){const _0x5b63ec=_0x31bb1f['getAttribute']('vid_end'),_0x5c6e58=_0x383403['getAttribute']('vid_end');_0x383403['_setAttribute']('vid_end',_0x5b63ec),_0x31bb1f['_setAttribute']('vid_end',_0x5c6e58),this['_touched']['set'](_0x383403['getAttribute']('vid_end'),{'userId':_0x2bcad2}),this['_touched']['set'](_0x31bb1f['getAttribute']('vid_start'),{'userId':_0x2bcad2});}else{const _0x1f7fd0=this['_revisionId']++,_0x1a4631=this['_revisionId']++;_0x383403['_setAttribute']('vid_end',_0x1f7fd0),_0x31bb1f['_setAttribute']('vid_start',_0x1a4631),_0x31bb1f['_setAttribute']('vid_end',_0x297c5f),this['_touched']['set'](_0x1f7fd0,{'userId':_0x2bcad2}),this['_touched']['set'](_0x1a4631,{'userId':_0x2bcad2});}}['_handleMarkerOperation'](_0x4c87d8){if(!_0x4c87d8['affectsData'])return;const _0x4c4e91=(_0x4c87d8=this['_cloneOperation'](_0x4c87d8,this['_diffRoots']))['oldRange']?_0x4c87d8['oldRange']['root']:null,_0x5ab25f=_0x4c87d8['newRange']?_0x4c87d8['newRange']['root']:null;_0x4c4e91&&this['_markers']['delete'](_0x4c87d8['name']),_0x5ab25f&&this['_markers']['set'](_0x4c87d8['name'],_0x4c87d8['newRange']['clone']());const _0x41f6db=null===_0x4c87d8['_authorId']?null:_0x4c87d8['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x233e30=_0x4c87d8['name'];if(!this['_touchedMarkers']['has'](_0x233e30))return void this['_touchedMarkers']['set'](_0x233e30,{'range':_0x4c87d8['oldRange'],'userId':_0x41f6db});const _0x5aa400=this['_touchedMarkers']['get'](_0x233e30),_0x14f471=_0x5aa400['range'],_0x495a51=_0x4c87d8['newRange'];null==_0x14f471&&null==_0x495a51||_0x14f471&&_0x495a51&&_0x14f471['isEqual'](_0x495a51)?this['_touchedMarkers']['delete'](_0x4c87d8['name']):_0x5aa400['userId']=_0x41f6db;}['_handleRootOperation'](_0x1ae036,_0x4bd8a6){this['_diffRoots']['has'](_0x1ae036['rootName'])?this['_diffRoots']['get'](_0x1ae036['rootName'])['_isAttached']=_0x1ae036['isAdd']:(this['_diffRoots']['set'](_0x1ae036['rootName'],N(_0x1ae036['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x1ae036['rootName'],{}),_0x4bd8a6&&this['_idsRoots']['set'](_0x1ae036['rootName'],N(_0x1ae036['rootName'],!0x0)));const _0x22fa4b=null===_0x1ae036['_authorId']?null:_0x1ae036['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x12abb1=this['_touchedRoots']['get'](_0x1ae036['rootName']);_0x12abb1&&_0x12abb1['userId']===_0x22fa4b?this['_touchedRoots']['delete'](_0x1ae036['rootName']):this['_touchedRoots']['set'](_0x1ae036['rootName'],{'userId':_0x22fa4b,'isAttached':_0x1ae036['isAdd']});}['_handleRootAttributeOperation'](_0x4c5c35){const _0xd8e228=this['_diffRootsAttributes']['get'](_0x4c5c35['root']['rootName']);null===_0x4c5c35['newValue']?delete _0xd8e228[_0x4c5c35['key']]:_0xd8e228[_0x4c5c35['key']]=_0x4c5c35['newValue'];}}function x(_0x18557b){const _0x105deb=N(_0x18557b['rootName'],_0x18557b['isAttached']());for(const _0x15b288 of _0x18557b['getChildren']()){const _0x3ec464=_0x15b288['_clone'](!0x0);_0x105deb['_appendChild'](_0x3ec464);}return _0x105deb;}function N(_0x4f032a,_0x52de4f=!0x0){const _0xeaac84=new _0x22e141();return _0xeaac84['rootName']=_0x4f032a,_0xeaac84['_isAttached']=_0x52de4f,_0xeaac84['isAttached']=()=>_0xeaac84['_isAttached'],_0xeaac84;}function P(_0x5a9610,_0x942bea,_0x3514aa){const _0x43a76a='elementEnd'==_0x5a9610['type']?_0x3514aa['createPositionAt'](_0x5a9610['item'],'end'):_0x3514aa['createPositionBefore'](_0x5a9610['item']);return _0x3514aa['createPositionFromPath'](_0x942bea,_0x43a76a['path'],_0x43a76a['stickiness']);}function V(_0xefb1bd,_0xb79f6c,_0x503afc){const _0x4705a2='elementStart'==_0xefb1bd['type']?_0x503afc['createPositionAt'](_0xefb1bd['item'],0x0):_0x503afc['createPositionAfter'](_0xefb1bd['item']);return _0x503afc['createPositionFromPath'](_0xb79f6c,_0x4705a2['path'],_0x4705a2['stickiness']);}class he extends/* #__PURE__ -- @preserve */
|
|
25
|
-
|
|
26
|
-
_0x1cee52(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x4e4f96){super(),this['id']=_0x4e4f96['id']||_0x31880b(),this['author']=_0x4e4f96['author'],this['type']=_0x4e4f96['type'],this['data']=_0x4e4f96['data']||{},this['rootName']=_0x4e4f96['rootName'],this['set']('createdAt',_0x4e4f96['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class J{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x3bc0d7,_0x2f2b7c){this['newRevisionId']=_0x3bc0d7,this['oldRevisionId']=_0x2f2b7c,this['changes']=new _0x5a6931();}['_setChanges'](_0xa966eb){for(const _0x12b351 of _0xa966eb)this['changes']['add'](_0x12b351);}}class u extends _0x5579a2{['repository'];['adapter']=null;['_utils'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x2b195f,_0x58b8b2,S,$];}constructor(_0x5ce1d0){super(_0x5ce1d0),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x534304,_0x513e7f,_0x5f37d9)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x3697a5=>{for(const _0x19e9ae of this['editor']['editing']['view']['document']['roots'])_0x5f37d9?_0x3697a5['removeClass']('ck-editor__editable__overlay',_0x19e9ae):_0x3697a5['addClass']('ck-editor__editable__overlay',_0x19e9ae);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x18df54=>null!==_0x18df54),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x53eb08,_0x33ab8e,_0x1d4442)=>_0x53eb08&&_0x1d4442?_0x33ab8e['changes']['getIndex'](_0x1d4442):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x6e1e7c,_0x4336df)=>_0x6e1e7c?_0x4336df['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x58b8b2);}['init'](){const _0x10d367=this['editor'],_0x591173=new ot(_0x10d367,{'direction':'backward'}),_0x55e390=new ot(_0x10d367,{'direction':'forward'});(_0x10d367['commands']['add']('showPreviousChange',_0x591173),_0x10d367['commands']['add']('showNextChange',_0x55e390),_0x10d367['commands']['add']('restoreRevision',new nt(_0x10d367)),this['on']('change:numberOfChanges',()=>{_0x591173['refresh'](),_0x55e390['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x10d367['enableReadOnlyMode']('revision-viewer'),_0x10d367['plugins']['has']('WidgetToolbarRepository'))&&_0x10d367['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x10a0f){return await this['_utils']['loadRevisionData'](_0x10a0f,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x10a0f);}async['getRevisionRootsAttributes'](_0x267def){return await this['_utils']['loadRevisionData'](_0x267def,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x267def);}async['compare'](_0x6d0d48,_0x296ae8,_0x8359c0=!0x1){if(!this['isEnabled'])return;const _0x49429d=this['diff'],_0x99e1b8=this['repository'],_0x37f6a0='string'==typeof _0x6d0d48?_0x99e1b8['getRevision'](_0x6d0d48):_0x6d0d48,_0x592d2f='string'==typeof _0x296ae8?_0x99e1b8['getRevision'](_0x296ae8):_0x296ae8,_0x316d3d=_0x37f6a0['id'],_0x46712c=_0x592d2f?_0x592d2f['id']:null;if(!_0x8359c0&&this['diff']&&this['diff']['newRevisionId']===_0x316d3d&&this['diff']['oldRevisionId']===_0x46712c)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x316d3d,_0x46712c);const _0x14f1cf=this['_getRevisionsRange'](_0x37f6a0,_0x592d2f,!0x0)['map'](_0xea4800=>this['_utils']['loadRevisionData'](_0xea4800,this['adapter']));return _0x14f1cf['push'](new Promise(_0x3cb7a2=>{setTimeout(_0x3cb7a2,0x14);})),Promise['all'](_0x14f1cf)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x2e7a9c=this['_getDiff'](_0x316d3d,_0x46712c);for(const _0x1c9a9c of _0x2e7a9c['changes'])this['_changeIdToChange']['set'](_0x1c9a9c['id'],_0x1c9a9c);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x29f399=>{for(const _0xdb5687 of this['editor']['model']['document']['getRootNames']())_0x29f399['detachRoot'](_0xdb5687);for(const _0x410463 of Object['keys'](_0x2e7a9c['model'])){const _0x393fe3=_0x29f399['addRoot'](_0x410463);for(const _0x694ceb of Object['keys'](_0x2e7a9c['attributes'][_0x410463]))_0x29f399['setAttribute'](_0x694ceb,_0x2e7a9c['attributes'][_0x410463][_0x694ceb],_0x393fe3);_0x29f399['insert'](_0x2e7a9c['model'][_0x410463],_0x393fe3,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x2e7a9c['changes'])),this['isReady']=!0x0;})['catch'](_0x19354e=>{console['error'](_0x19354e),this['_cleanUp'](),_0x49429d&&(this['diff']=_0x49429d),this['isReady']=!0x0;});}['addRevisionData'](_0x4d2853,_0x6d55fa){const _0x1c0e26=this['repository']['createRevision'](_0x4d2853);return _0x1c0e26['on']('_update',(_0x4ead30,_0x2ea776,_0x3ca70e)=>_0x6d55fa(_0x2ea776,_0x3ca70e,_0x1c0e26)),this['repository']['addRevision'](_0x1c0e26),_0x1c0e26;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x2bad42=>{for(const _0x16e4b7 of this['editor']['model']['document']['getRootNames']())_0x2bad42['detachRoot'](_0x16e4b7);});}['_sortAndFilterDiffChanges'](_0x477a1f){const _0x1e9ccf=[],_0x3e63c9=new Map();for(const _0x1824c9 of this['editor']['model']['document']['getRootNames']()){const _0x2343fd=this['editor']['editing']['view']['getDomRoot'](_0x1824c9);if(!_0x2343fd)continue;const _0x534a04=_0x2343fd['getClientRects']()['item'](0x0);_0x534a04&&(_0x1e9ccf['push'](_0x1824c9),_0x3e63c9['set'](_0x1824c9,_0x534a04));}return _0x1e9ccf['sort']((_0x4e73ba,_0x4d37bb)=>{const _0x365edb=_0x3e63c9['get'](_0x4e73ba),_0x368c41=_0x3e63c9['get'](_0x4d37bb);return _0x365edb['y']-_0x368c41['y']||_0x365edb['x']-_0x368c41['x'];}),(_0x477a1f=_0x477a1f['filter'](_0x5c22a2=>_0x1e9ccf['includes'](_0x5c22a2['rootName'])))['sort']((_0xfc68a,_0x2215d6)=>_0x1e9ccf['indexOf'](_0xfc68a['rootName'])-_0x1e9ccf['indexOf'](_0x2215d6['rootName'])),_0x477a1f;}['_makeTape'](_0x4e684a){const _0x5a746b=Array['from'](_0x4e684a['markers'])['filter'](([_0x458358,_0x14ba86])=>_0x458358['startsWith']('revision:')&&!_0x14ba86['isCollapsed']),_0x3ba2db=Array['from'](this['editor']['model']['createRangeIn'](_0x4e684a)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x5a746b['length'])for(const _0x5e2c09 of _0x3ba2db){const [_0x359dfa,_0x46d760]=_0x5a746b[0x0],[,_0x51b833,_0x148ef1]=_0x359dfa['split'](':');if(_0x46d760['end']['isEqual'](_0x5e2c09['nextPosition'])&&_0x5a746b['shift'](),(_0x5e2c09['previousPosition']['isEqual'](_0x46d760['start'])||_0x5e2c09['previousPosition']['isAfter'](_0x46d760['start']))&&('insertion'==_0x51b833?_0x5e2c09['isAdded']={'userId':_0x148ef1}:'deletion'==_0x51b833&&(_0x5e2c09['isRemoved']={'userId':_0x148ef1})),0x0==_0x5a746b['length'])break;}return _0x3ba2db;}['_refreshStartEndIndex'](_0x8bcb6){const _0x15f715=new Map();for(let _0xbc3e6a=0x0;_0xbc3e6a<_0x8bcb6['length'];_0xbc3e6a++)'text'===_0x8bcb6[_0xbc3e6a]['type']?(_0x8bcb6[_0xbc3e6a]['item']['startIndex']=_0xbc3e6a,_0x8bcb6[_0xbc3e6a]['item']['endIndex']=_0xbc3e6a):('elementStart'===_0x8bcb6[_0xbc3e6a]['type']?_0x8bcb6[_0xbc3e6a]['item']['startIndex']=_0xbc3e6a:'elementEnd'===_0x8bcb6[_0xbc3e6a]['type']&&(_0x8bcb6[_0xbc3e6a]['item']['endIndex']=_0xbc3e6a),_0x15f715['set'](_0x8bcb6[_0xbc3e6a]['id'],_0xbc3e6a));for(const _0xec7287 of _0x15f715['values']())'elementStart'===_0x8bcb6[_0xec7287]['type']?_0x8bcb6[_0xec7287]['item']['endIndex']=_0x15f715['get'](_0x8bcb6[_0xec7287]['pairId']):'elementEnd'===_0x8bcb6[_0xec7287]['type']&&(_0x8bcb6[_0xec7287]['item']['startIndex']=_0x15f715['get'](_0x8bcb6[_0xec7287]['pairId']));}['_processTape'](_0x50f7bb){for(let _0x5683a2=0x0;_0x5683a2<_0x50f7bb['length'];_0x5683a2++){if('elementStart'===_0x50f7bb[_0x5683a2]['type'])_0x50f7bb[_0x5683a2]['item']['startIndex']=_0x5683a2;else{if('elementEnd'===_0x50f7bb[_0x5683a2]['type']){_0x50f7bb[_0x5683a2]['item']['endIndex']=_0x5683a2;const _0x1435f3=_0x50f7bb[_0x5683a2]['item']['startIndex'];_0x50f7bb[_0x1435f3]['pairId']=_0x50f7bb[_0x5683a2]['id'],_0x50f7bb[_0x5683a2]['pairId']=_0x50f7bb[_0x1435f3]['id'];}else _0x50f7bb[_0x5683a2]['item']['startIndex']=_0x5683a2,_0x50f7bb[_0x5683a2]['item']['endIndex']=_0x5683a2,_0x50f7bb[_0x5683a2]['pairId']=null;}_0x50f7bb[_0x5683a2]['markersStart']||(_0x50f7bb[_0x5683a2]['markersStart']=[],_0x50f7bb[_0x5683a2]['markersEnd']=[]);}}['_markInsertions'](_0x370b04,_0x48fea4){const _0x4a08f3=_0x370b04['filter'](_0x4d2bbf=>!_0x4d2bbf['isAdded']);for(let _0x3228cd=0x0;_0x3228cd<_0x48fea4['length'];_0x3228cd++)_0x48fea4[_0x3228cd]['isAdded']&&(_0x4a08f3[_0x3228cd]['isAdded']=_0x48fea4[_0x3228cd]['isAdded']);}['_getDiff'](_0x37f298,_0x4c3adf=null){const _0x11e3ac=this['repository']['getRevision'](_0x37f298),_0x1b148b=_0x4c3adf?this['repository']['getRevision'](_0x4c3adf):null,_0x148b97=this['_getRevisionsRange'](_0x11e3ac,_0x1b148b),_0x4ee3a8=_0x148b97[_0x148b97['length']-0x1],_0x1619cf=new Map(),_0x48b945={'model':{},'attributes':{},'changes':[]},_0x458d7a=new Set(),_0x6ec565=new Map();for(let _0x134c15=_0x148b97['length']-0x1;_0x134c15>=0x0;_0x134c15--){const _0xd29c7d=_0x148b97[_0x134c15];for(const _0x1f999f of Object['keys'](_0xd29c7d['diffData']))if(_0xd29c7d['diffData'][_0x1f999f]['attachChange']){const _0x478177=_0xd29c7d['diffData'][_0x1f999f]['attachChange'];_0x478177['isAttached']?(_0x458d7a['add'](_0x1f999f),_0x6ec565['has'](_0x1f999f)&&_0x6ec565['get'](_0x1f999f)['userId']==_0x478177['userId']?_0x6ec565['delete'](_0x1f999f):_0x6ec565['set'](_0x1f999f,_0x478177)):_0x6ec565['has'](_0x1f999f)?(_0x458d7a['delete'](_0x1f999f),_0x6ec565['delete'](_0x1f999f)):(_0x458d7a['add'](_0x1f999f),_0x6ec565['set'](_0x1f999f,_0x478177));}else _0x458d7a['add'](_0x1f999f);}for(const _0x52c2ad of _0x458d7a){const _0x3aa74a=_0x6ec565['has'](_0x52c2ad)&&!_0x6ec565['get'](_0x52c2ad)['isAttached'];let _0x661ba1=_0x3aa74a?_0x148b97['length']-0x1:0x0;const _0x112d0c=_0x3aa74a?-0x1:0x1;for(;_0x148b97[_0x661ba1];){const _0x91d45e=_0x148b97[_0x661ba1];if(_0x91d45e['diffData'][_0x52c2ad]){const _0x937628=_0x3aa74a?_0x91d45e['diffData'][_0x52c2ad]['attributesBefore']:_0x91d45e['diffData'][_0x52c2ad]['attributesAfter'];_0x48b945['attributes'][_0x52c2ad]=_0x937628?_0x151e36(_0x937628):{};break;}_0x661ba1+=_0x112d0c;}}for(const _0x3e0e98 of _0x148b97){_0x3e0e98['model']={};for(const _0x5c9064 of _0x3e0e98['authors'])_0x1619cf['set'](_0x5c9064['id'],_0x5c9064);for(const _0x33b17b of _0x458d7a){const _0xa9248a=_0x3e0e98['diffData'][_0x33b17b]?_0x3e0e98['diffData'][_0x33b17b]['insertions']:'[]',_0x55f58b=_0x3e0e98['diffData'][_0x33b17b]?_0x3e0e98['diffData'][_0x33b17b]['deletions']:'[]';_0x3e0e98['model'][_0x33b17b]={'insertions':this['_utils']['_makeModelFromViewString'](_0xa9248a),'deletions':this['_utils']['_makeModelFromViewString'](_0x55f58b)};}}for(const _0x3a2faa of _0x458d7a){let _0x2f41a9=null,_0x47a71d=0x0;const _0xa582fa=new Map(Array['from'](_0x11e3ac['model'][_0x3a2faa]['insertions']['markers'])['filter'](([_0x17a390])=>!_0x17a390['startsWith']('revision:')));let _0xf8dbbe=0x0;for(const _0x1be4d7 of _0x148b97){const _0x459586=this['_makeTape'](_0x1be4d7['model'][_0x3a2faa]['insertions']);_0x1be4d7==_0x11e3ac?(_0x2f41a9=_0x459586,_0x47a71d=_0x2f41a9['length'],_0x2f41a9['forEach'](_0x37ad92=>{_0x37ad92['id']=_0xf8dbbe++;}),this['_processTape'](_0x2f41a9)):this['_markInsertions'](_0x2f41a9,_0x459586);const _0x19876f=_0x2f41a9['filter'](_0x4e49cf=>!_0x4e49cf['isAdded'])['map'](_0x2e334b=>_0x2e334b['id']);let _0x1e21e9=0x0;const _0x1bbc1e=this['_makeTape'](_0x1be4d7['model'][_0x3a2faa]['deletions']);_0x1bbc1e['forEach'](_0x287065=>{_0x287065['isRemoved']?_0x287065['id']=_0x47a71d++:_0x287065['id']=_0x19876f[_0x1e21e9++];}),this['_processTape'](_0x1bbc1e),this['_setDistance'](_0x2f41a9,'isAdded'),this['_setDistance'](_0x1bbc1e,'isRemoved'),_0x1be4d7==_0x11e3ac&&this['_markMarkers'](_0x2f41a9,_0xa582fa),_0x2f41a9=this['_joinTapes'](_0x2f41a9,_0x1bbc1e),this['_refreshStartEndIndex'](_0x2f41a9),this['_setDistance'](_0x2f41a9,'isRemoved');}_0x2f41a9=_0x2f41a9['filter'](_0x9c715d=>!(_0x9c715d['isAdded']&&_0x9c715d['isRemoved']));const _0x3fdbfb=new Map(_0x4ee3a8['model'][_0x3a2faa]['deletions']['markers']),_0x41f0e3=new Set(_0xa582fa['keys']());for(const _0x1f03fa of _0x3fdbfb['keys']())_0x41f0e3['delete'](_0x1f03fa);this['_markSuggestions'](_0x2f41a9,_0x41f0e3),this['_fixObsoleteTags'](_0x2f41a9),_0x2f41a9=this['_removeMissingPairs'](_0x2f41a9),_0x2f41a9=this['_markMismatchedRemovedTags'](_0x2f41a9),_0x2f41a9=this['_removeUnsupportedChanges'](_0x2f41a9);const {root:_0x6557a7,changes:_0x4bba0c}=this['_makeModelFromTape'](_0x2f41a9,_0x1619cf,_0x3a2faa);_0x48b945['model'][_0x3a2faa]=_0x6557a7;const _0x93f2e9=_0x6ec565['get'](_0x3a2faa);if(_0x93f2e9){const _0x252009=_0x1619cf['get'](_0x93f2e9['userId']),_0x976d7e=new G({'author':_0x252009,'type':_0x93f2e9['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x3a2faa});_0x4bba0c['unshift'](_0x976d7e),_0x48b945['attributes'][_0x3a2faa]['revisionHistoryAttachChange']=_0x976d7e['id'];}_0x48b945['changes']=_0x48b945['changes']['concat'](_0x4bba0c);}return _0x48b945;}['_markMarkers'](_0x221865,_0x5dcce8){for(let _0x593f71=0x0;_0x593f71<_0x221865['length'];_0x593f71++)for(const [_0x359d77,_0x5ed703]of _0x5dcce8)!_0x5ed703['isCollapsed']&&_0x5ed703['start']['isEqual'](_0x221865[_0x593f71]['previousPosition'])&&_0x221865[_0x593f71]['markersStart']['push'](_0x359d77),_0x5ed703['end']['isEqual'](_0x221865[_0x593f71]['nextPosition'])&&_0x221865[_0x593f71]['markersEnd']['push'](_0x359d77);}['_joinTapes'](_0xc66029,_0x5dee7e){let _0x346056=[],_0x49d36c=0x0,_0x593761=0x0;for(;_0x49d36c<_0xc66029['length']||_0x593761<_0x5dee7e['length'];){const _0x215364=_0xc66029[_0x49d36c]||{},_0x3d919c=_0x5dee7e[_0x593761]||{};if(_0x215364['id']==_0x3d919c['id'])_0x49d36c++,_0x593761++,_0x346056['push'](_0x215364);else{if(_0x3d919c['isRemoved']&&_0x215364['isAdded']){const {commonTape:_0x746cc9,iEnd:_0x16bef4,jEnd:_0xb36b1f}=this['_threeWayMerge'](_0xc66029,_0x49d36c,_0x5dee7e,_0x593761);_0x346056=_0x346056['concat'](_0x746cc9),_0x49d36c=_0x16bef4,_0x593761=_0xb36b1f;}else _0x3d919c['isRemoved']?(_0x593761++,_0x346056['push'](_0x3d919c)):(_0x49d36c++,_0x346056['push'](_0x215364));}}return _0x346056;}['_markSuggestions'](_0x1d5e57,_0x18175c){const _0x125a78=[];for(let _0x4983e2=0x0;_0x4983e2<_0x1d5e57['length'];_0x4983e2++){for(let _0x529c93=0x0;_0x529c93<_0x1d5e57[_0x4983e2]['markersStart']['length'];_0x529c93++){const _0xac019e=_0x1d5e57[_0x4983e2]['markersStart'][_0x529c93];if(!_0x18175c['has'](_0xac019e))continue;const {group:_0x3c52ad,type:_0x34560c,authorId:_0x5f43e0}=_0x1f8328(_0xac019e);'revision-suggestion'!=_0x3c52ad||'insertion'!=_0x34560c&&'deletion'!=_0x34560c||(_0x125a78['unshift']({'type':_0x34560c,'name':_0xac019e,'userId':_0x5f43e0}),_0x1d5e57[_0x4983e2]['markersStart']['splice'](_0x529c93,0x1),_0x529c93--);}_0xbb8445(_0x1d5e57[_0x4983e2]);for(let _0x4fa307=0x0;_0x4fa307<_0x1d5e57[_0x4983e2]['markersEnd']['length'];_0x4fa307++){const _0x220629=_0x1d5e57[_0x4983e2]['markersEnd'][_0x4fa307];if(!_0x18175c['has'](_0x220629))continue;const {group:_0x5211a2,type:_0x1ed99d}=_0x1f8328(_0x220629);if('revision-suggestion'!=_0x5211a2||'insertion'!=_0x1ed99d&&'deletion'!=_0x1ed99d)continue;_0x1d5e57[_0x4983e2]['markersEnd']['splice'](_0x4fa307,0x1),_0x4fa307--;const _0x581f81=_0x125a78['findIndex'](_0x4d1796=>_0x4d1796['name']==_0x220629);_0x581f81>-0x1&&_0x125a78['splice'](_0x581f81,0x1);}}function _0x1f8328(_0x53c367){const _0x4e50c0=_0x53c367['split'](':');return{'group':_0x4e50c0[0x0],'type':_0x4e50c0[0x1],'subType':_0x4e50c0['length']>=0x5?_0x4e50c0[0x2]:null,'id':_0x4e50c0['length']<0x5?_0x4e50c0[0x2]:_0x4e50c0[0x3],'authorId':_0x4e50c0['length']<0x5?_0x4e50c0[0x3]:_0x4e50c0[0x4],'markerCount':0x6==_0x4e50c0['length']?_0x4e50c0[0x5]:null};}function _0xbb8445(_0x364554){for(let _0x562d14=0x0;_0x562d14<_0x125a78['length'];_0x562d14++){if(_0x364554['isAdded']&&'insertion'==_0x125a78[_0x562d14]['type']&&_0x364554['isAdded']['userId']==_0x125a78[_0x562d14]['userId'])return _0x364554['isAddSuggestion']=_0x125a78[_0x562d14],void delete _0x364554['isAdded'];if(!_0x364554['isAdded']&&!_0x364554['isRemoved']&&'deletion'==_0x125a78[_0x562d14]['type'])return void(_0x364554['isRemoveSuggestion']=_0x125a78[_0x562d14]);}}}['_setDistance'](_0x38c80c,_0xc82ed9){let _0xfc6009=0x0,_0x316c3e=!0x1;const _0x31f3d1=new Map();for(const _0xd93ca of _0x38c80c)_0xd93ca[_0xc82ed9]?_0x316c3e&&(_0xfc6009++,_0x316c3e=!0x1):(_0xfc6009++,_0x316c3e=!0x0),_0x31f3d1['set'](_0xd93ca['id'],_0xfc6009);for(let _0xffe1e4=0x0;_0xffe1e4<_0x38c80c['length'];_0xffe1e4++){if('isRemoved'==_0xc82ed9&&_0x38c80c[_0xffe1e4]['isAdded']||'isAdded'==_0xc82ed9&&_0x38c80c[_0xffe1e4]['isRemoved'])continue;if('text'==_0x38c80c[_0xffe1e4]['type']){_0x38c80c[_0xffe1e4]['distance']=0x0;continue;}const _0xb85caa=_0x31f3d1['get'](_0x38c80c[_0xffe1e4]['pairId']),_0x26e292=_0x31f3d1['get'](_0x38c80c[_0xffe1e4]['id']);_0x38c80c[_0xffe1e4]['distance']=_0xb85caa-_0x26e292;}}['_getRevisionsRange'](_0x296071,_0x43f3f3,_0x4f02d5=!0x1){const _0x5c7e75=[];let _0x477bf1=this['repository']['getIndex'](_0x296071),_0x3425fc=this['repository']['getIndex'](_0x43f3f3);for(-0x1==_0x3425fc&&(_0x3425fc=this['repository']['_revisions']['length'],_0x4f02d5=!0x1);_0x477bf1<_0x3425fc;)_0x5c7e75['push'](this['repository']['getRevision'](_0x477bf1)),_0x477bf1++;return _0x4f02d5&&_0x5c7e75['push'](this['repository']['getRevision'](_0x477bf1)),_0x5c7e75;}['_threeWayMerge'](_0xe62699,_0x4ce70e,_0x9976f0,_0x22579e){const _0x2ec4a7=this['editor']['model']['schema'];let _0x53a2b5=_0x4ce70e;for(;_0xe62699[_0x53a2b5]&&_0xe62699[_0x53a2b5]['isAdded'];)_0x53a2b5++;let _0xa8d318=_0x22579e;for(;_0x9976f0[_0xa8d318]&&_0x9976f0[_0xa8d318]['isRemoved'];)_0xa8d318++;_0x5629e8(_0xe62699,_0x4ce70e,_0x53a2b5),_0x5629e8(_0x9976f0,_0x22579e,_0xa8d318);const _0x24f063=_0x9976f0['slice'](_0x22579e,_0xa8d318)['concat'](_0xe62699['slice'](_0x4ce70e,_0x53a2b5));return _0x24f063['sort']((_0x4b1a62,_0x5bda59)=>_0x4b1a62['side']!=_0x5bda59['side']?_0x4b1a62['side']-_0x5bda59['side']:_0x4b1a62['level']!=_0x5bda59['level']?_0x4b1a62['level']-_0x5bda59['level']:_0x4b1a62['distance']!=_0x5bda59['distance']?_0x5bda59['distance']-_0x4b1a62['distance']:!!_0x4b1a62['isAdded']!=!!_0x5bda59['isAdded']?-0x1==_0x4b1a62['side']||0x0==_0x4b1a62['side']?_0x4b1a62['isAdded']?-0x1:0x1:_0x4b1a62['isAdded']?0x1:-0x1:_0x4b1a62['index']-_0x5bda59['index']),{'commonTape':_0x24f063,'iEnd':_0x53a2b5,'jEnd':_0xa8d318};function _0x5629e8(_0x5d09be,_0xd351a0,_0x440774){let _0x2333db=-0x1,_0x524c2e=Number['POSITIVE_INFINITY'],_0x479cf9=!0x0;for(let _0x13d984=_0xd351a0;_0x13d984<_0x440774;_0x13d984++)if(_0x2ec4a7['isInline'](_0x5d09be[_0x13d984]['item'])||(_0x479cf9=!0x1),_0x5d09be[_0x13d984]['item']['startIndex']<_0xd351a0&&(_0x2333db=_0x13d984),_0x5d09be[_0x13d984]['item']['endIndex']>=_0x440774){_0x524c2e=_0x13d984;break;}_0x479cf9&&(_0x2333db=_0x440774-0x1);for(let _0x3e4c40=_0xd351a0;_0x3e4c40<_0x440774;_0x3e4c40++)_0x5d09be[_0x3e4c40]['side']=_0x3e4c40<=_0x2333db?-0x1:_0x3e4c40<_0x524c2e?0x0:0x1,_0x5d09be[_0x3e4c40]['index']=_0x3e4c40;let _0x26fd5d=0x0;for(let _0x63c5c2=_0xd351a0;_0x63c5c2<=_0x2333db;_0x63c5c2++)0x0==_0x5d09be[_0x63c5c2]['distance']?_0x5d09be[_0x63c5c2]['level']=_0x26fd5d:(_0x26fd5d++,_0x5d09be[_0x63c5c2]['level']=_0x26fd5d,_0x26fd5d++);for(let _0x24cae3=_0xd351a0;_0x24cae3<_0x440774;_0x24cae3++)0x0==_0x5d09be[_0x24cae3]['side']&&(_0x5d09be[_0x24cae3]['level']=_0x26fd5d);_0x26fd5d=0x0;for(let _0x2e725b=_0x440774-0x1;_0x2e725b>=_0x524c2e;_0x2e725b--)0x0==_0x5d09be[_0x2e725b]['distance']?_0x5d09be[_0x2e725b]['level']=_0x26fd5d:(_0x26fd5d--,_0x5d09be[_0x2e725b]['level']=_0x26fd5d,_0x26fd5d--);}}['_fixObsoleteTags'](_0xb61262){const _0x15b21c=new Map(),_0x1a1921=this['editor']['model']['schema'];for(let _0x4952f9=0x1;_0x4952f9<_0xb61262['length'];_0x4952f9++){let _0x233941,_0xeae1b3,_0xaeea28;const _0x5eacb2=_0xb61262[_0x4952f9],_0x208989=_0xb61262[_0x4952f9-0x1];if('text'==_0x5eacb2['type'])continue;if(_0x5eacb2['type']!=_0x208989['type'])continue;if(!_0x1a1921['isBlock'](_0x208989['item'])||_0x1a1921['isLimit'](_0x208989['item']))continue;if(!_0x1a1921['isBlock'](_0x5eacb2['item'])||_0x1a1921['isLimit'](_0x5eacb2['item']))continue;if((_0xb61262[_0x4952f9]['isAdded']||_0xb61262[_0x4952f9]['isAddSuggestion'])&&_0xb61262[_0x4952f9-0x1]['isRemoved'])_0x233941=_0xb61262[_0x4952f9],_0xeae1b3=_0xb61262[_0x4952f9-0x1],_0xaeea28=_0x4952f9-0x1;else{if(!_0xb61262[_0x4952f9]['isRemoved']||!_0xb61262[_0x4952f9-0x1]['isAdded']&&!_0xb61262[_0x4952f9-0x1]['isAddSuggestion'])continue;_0x233941=_0xb61262[_0x4952f9-0x1],_0xeae1b3=_0xb61262[_0x4952f9],_0xaeea28=_0x4952f9;}const _0x38c6eb=_0x233941['level']==_0xeae1b3['level'],_0x49eec5=Math['abs'](_0x233941['level'])<Math['abs'](_0xeae1b3['level'])&&0x0==_0xeae1b3['distance'];(_0x38c6eb||_0x49eec5)&&(_0x15b21c['set'](_0xeae1b3['id'],_0x233941['id']),_0xb61262['splice'](_0xaeea28,0x1),_0x4952f9--,_0x233941['isAdded']=!0x1);}for(let _0x578cc4=0x0;_0x578cc4<_0xb61262['length'];_0x578cc4++)_0x15b21c['has'](_0xb61262[_0x578cc4]['pairId'])&&(_0xb61262[_0x578cc4]['pairId']=_0x15b21c['get'](_0xb61262[_0x578cc4]['pairId']));}['_removeMissingPairs'](_0x2a4756){const _0x449af1=new Set(_0x2a4756['map'](_0x435333=>_0x435333['id']));for(let _0x32de20=0x0;_0x32de20<_0x2a4756['length'];_0x32de20++)_0x449af1['has'](_0x2a4756[_0x32de20]['pairId'])||0x0==_0x2a4756[_0x32de20]['distance']||(_0x2a4756[_0x32de20]['isIncorrect']=!0x0);return _0x2a4756['filter'](_0x3e6995=>!_0x3e6995['isIncorrect']);}['_markMismatchedRemovedTags'](_0x2bd717){const _0x10c554=new Set();for(let _0x57de80=0x0;_0x57de80<_0x2bd717['length'];_0x57de80++){if(_0x10c554['has'](_0x2bd717[_0x57de80]['id'])&&_0x2bd717[_0x57de80]['isRemoved']&&(_0x2bd717[_0x57de80]['isIncorrect']=!0x0),_0x2bd717[_0x57de80]['isIncorrect'])continue;if(0x0==_0x2bd717[_0x57de80]['distance'])continue;if('elementStart'!=_0x2bd717[_0x57de80]['type'])continue;if(null==_0x2bd717[_0x57de80]['pairId'])continue;let _0xb0a4e7=_0x57de80+0x1,_0x2f7210=0x0;for(;_0x2bd717[_0xb0a4e7]['id']!=_0x2bd717[_0x57de80]['pairId'];)'elementStart'==_0x2bd717[_0xb0a4e7]['type']?_0x2f7210++:'elementEnd'==_0x2bd717[_0xb0a4e7]['type']&&_0x2f7210--,_0xb0a4e7++;if(0x0!=_0x2f7210){if(_0x2bd717[_0x57de80]['isRemoved'])_0x2bd717[_0x57de80]['isIncorrect']=!0x0;else{for(;_0xb0a4e7!=_0x57de80;)_0x2bd717[_0xb0a4e7]['isRemoved']&&0x0!=_0x2bd717[_0xb0a4e7]['distance']&&(_0x2bd717[_0xb0a4e7]['isIncorrect']=!0x0,_0x10c554['add'](_0x2bd717[_0xb0a4e7]['pairId'])),_0xb0a4e7--;}}}return _0x2bd717['filter'](_0x342898=>!_0x342898['isIncorrect']);}['_removeUnsupportedChanges'](_0xb9b07f){const _0x11c2b5=this['editor']['model']['schema'];for(let _0xbb619b=0x0;_0xbb619b<_0xb9b07f['length'];_0xbb619b++){if(!(_0xb9b07f[_0xbb619b]['isAdded']||_0xb9b07f[_0xbb619b]['isAddSuggestion']||_0xb9b07f[_0xbb619b]['isRemoved']||_0xb9b07f[_0xbb619b]['isRemoveSuggestion']))continue;if(0x0==_0xb9b07f[_0xbb619b]['distance'])continue;const _0x233c0d=_0xb9b07f[_0xbb619b]['item'];_0x11c2b5['isBlock'](_0x233c0d)||_0x11c2b5['isLimit'](_0x233c0d)||(_0xb9b07f[_0xbb619b]['isAdded']&&delete _0xb9b07f[_0xbb619b]['isAdded'],_0xb9b07f[_0xbb619b]['isAddSuggestion']&&delete _0xb9b07f[_0xbb619b]['isAddSuggestion'],_0xb9b07f[_0xbb619b]['isRemoveSuggestion']&&delete _0xb9b07f[_0xbb619b]['isRemoveSuggestion'],_0xb9b07f[_0xbb619b]['isRemoved']&&(_0xb9b07f[_0xbb619b]['isIncorrect']=!0x0));}return _0xb9b07f['filter'](_0x9a95bf=>!_0x9a95bf['isIncorrect']);}['_makeModelFromTape'](_0x1d94fe,_0x56e318,_0x3f9ac9){const _0x169e84=new _0x22e141(),_0x1013d1=[],_0x43e0f9=new Map(),_0x53a73b=this['editor']['model'],_0x3cb68d=_0x53a73b['schema'],_0x2a92d9=[_0x169e84],_0x566249={},_0x8f57b7={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x2f41b8=null;const _0x3a8f1d=[0x0];for(let _0x43804e=0x0;_0x43804e<_0x1d94fe['length'];_0x43804e++)if('elementStart'===_0x1d94fe[_0x43804e]['type']){_0x1d94fe[_0x43804e]['previousPosition']=_0x53a73b['createPositionFromPath'](_0x169e84,_0x3a8f1d);const _0x1eadb7=new _0x5ca907(_0x1d94fe[_0x43804e]['item']['name'],_0x1d94fe[_0x43804e]['item']['getAttributes']());_0x2a92d9[0x0]['_appendChild'](_0x1eadb7),_0x3a8f1d['push'](0x0),_0x2a92d9['unshift'](_0x1eadb7),_0x1d94fe[_0x43804e]['nextPosition']=_0x53a73b['createPositionFromPath'](_0x169e84,_0x3a8f1d);}else'elementEnd'===_0x1d94fe[_0x43804e]['type']?(_0x2a92d9['shift'](),_0x1d94fe[_0x43804e]['previousPosition']=_0x53a73b['createPositionFromPath'](_0x169e84,_0x3a8f1d),_0x3a8f1d['pop'](),_0x3a8f1d[_0x3a8f1d['length']-0x1]++,_0x1d94fe[_0x43804e]['nextPosition']=_0x53a73b['createPositionFromPath'](_0x169e84,_0x3a8f1d)):(_0x1d94fe[_0x43804e]['previousPosition']=_0x53a73b['createPositionFromPath'](_0x169e84,_0x3a8f1d),_0x2f41b8?_0x2f41b8['_data']+=_0x1d94fe[_0x43804e]['item']['data']:_0x2f41b8=new _0x23403f(_0x1d94fe[_0x43804e]['item']['data'],_0x1d94fe[_0x43804e]['item']['getAttributes']()),_0x1d94fe[_0x43804e+0x1]&&'text'===_0x1d94fe[_0x43804e+0x1]['type']&&_0x46c6ae(_0x2f41b8,_0x1d94fe[_0x43804e+0x1]['item'])||(_0x2a92d9[0x0]['_appendChild'](_0x2f41b8),_0x2f41b8=null),_0x3a8f1d[_0x3a8f1d['length']-0x1]+=_0x1d94fe[_0x43804e]['item']['offsetSize'],_0x1d94fe[_0x43804e]['nextPosition']=_0x53a73b['createPositionFromPath'](_0x169e84,_0x3a8f1d));for(let _0x34b829=0x0;_0x34b829<_0x1d94fe['length'];_0x34b829++){const _0x30c12d=_0x1d94fe[_0x34b829]['previousPosition'],_0x171b21=_0x1d94fe[_0x34b829]['nextPosition'];for(const _0x49d353 of _0x1d94fe[_0x34b829]['markersStart'])_0x43e0f9['set'](_0x49d353,{'start':_0x30c12d,'end':null});_0x7f0b05('isRemoveSuggestion',_0x34b829,_0x30c12d,_0x171b21),_0x7f0b05('isAddSuggestion',_0x34b829,_0x30c12d,_0x171b21),_0x7f0b05('isRemoved',_0x34b829,_0x30c12d,_0x171b21),_0x7f0b05('isAdded',_0x34b829,_0x30c12d,_0x171b21);for(const _0x53468d of _0x1d94fe[_0x34b829]['markersEnd']){const _0x22e4ae=_0x43e0f9['get'](_0x53468d);_0x22e4ae?_0x22e4ae['end']=_0x171b21:_0x43e0f9['set'](_0x53468d,{'start':_0x171b21,'end':_0x171b21});}}for(const [_0x1a8fc5,_0x114eec]of _0x43e0f9){const _0x242253=this['editor']['model']['createRange'](_0x114eec['start'],_0x114eec['end']);_0x169e84['markers']['set'](_0x1a8fc5,_0x242253);}return _0x1013d1['sort']((_0x56b433,_0x281716)=>{const _0x521be8=_0x169e84['markers']['get']('revision:'+_0x56b433['id']),_0x2ea2a7=_0x169e84['markers']['get']('revision:'+_0x281716['id']);return _0x521be8['start']['isBefore'](_0x2ea2a7['start'])?-0x1:_0x521be8['start']['isAfter'](_0x2ea2a7['start'])?0x1:_0x521be8['end']['isBefore'](_0x2ea2a7['end'])?-0x1:_0x521be8['end']['isAfter'](_0x2ea2a7['end'])?0x1:'add'===_0x56b433['type']?-0x1:0x1;}),{'root':_0x169e84,'changes':_0x1013d1};function _0x7f0b05(_0x3ee469,_0x16ac41,_0x461d09,_0x334ae4){const _0x1b22fc=!!_0x1d94fe[_0x16ac41][_0x3ee469],_0xbd478a=_0x1b22fc?_0x1d94fe[_0x16ac41][_0x3ee469]['userId']:null,_0x1e66eb=_0x16ac41===_0x1d94fe['length']-0x1,_0x9f21e2=_0x8f57b7[_0x3ee469][0x0],_0xac840a=_0x3cb68d['isObject'](_0x1d94fe[_0x16ac41]['item']);!_0x566249[_0x3ee469]&&_0x1b22fc?_0x566249[_0x3ee469]={'start':_0x461d09,'tapeItem':_0x1d94fe[_0x16ac41],'userId':_0xbd478a,'type':_0x3ee469}:_0x566249[_0x3ee469]&&!_0x1b22fc?(_0x566249[_0x3ee469]['end']=_0x461d09,_0x232e03(_0x566249[_0x3ee469]),_0x566249[_0x3ee469]=null):_0x566249[_0x3ee469]&&_0x1b22fc&&_0x566249[_0x3ee469]['userId']!==_0xbd478a&&(_0x566249[_0x3ee469]['end']=_0x461d09,_0x9f21e2&&_0x9f21e2['userId']===_0x566249[_0x3ee469]['userId']||_0x232e03(_0x566249[_0x3ee469]),_0x566249[_0x3ee469]={'start':_0x461d09,'tapeItem':_0x1d94fe[_0x16ac41],'userId':_0xbd478a,'type':_0x3ee469}),_0x566249[_0x3ee469]&&_0xac840a&&('elementStart'!==_0x1d94fe[_0x16ac41]['type']||_0x9f21e2&&_0x9f21e2['userId']===_0xbd478a||_0x8f57b7[_0x3ee469]['unshift']({'userId':_0xbd478a,'object':_0x1d94fe[_0x16ac41]['item'],'change':_0x566249[_0x3ee469]}),'elementEnd'===_0x1d94fe[_0x16ac41]['type']&&_0x9f21e2&&_0x9f21e2['object']===_0x1d94fe[_0x16ac41]['item']&&(_0x8f57b7[_0x3ee469]['shift'](),_0x566249[_0x3ee469]=_0x9f21e2['change'])),_0x566249[_0x3ee469]&&_0x1e66eb&&(_0x566249[_0x3ee469]['end']=_0x334ae4,_0x232e03(_0x566249[_0x3ee469]),_0x566249[_0x3ee469]=null);}function _0x232e03({start:_0x2da62b,end:_0x4a73e1,tapeItem:_0x1bafb6,userId:_0x295c14,type:_0x6d8cc2}){const _0x13aa93=_0x1bafb6['item'],_0x1aeded=_0x53a73b['schema']['isBlock'](_0x13aa93)&&!_0x53a73b['schema']['isLimit'](_0x13aa93),_0x36b16e=_0x2da62b['nodeAfter']==_0x4a73e1['parent']&&_0x4a73e1['isAtStart'];if(_0x1aeded&&_0x36b16e)return;const _0x346473=_0x53a73b['createRange'](_0x2da62b,_0x4a73e1),_0x214c3e=_0x56e318['get'](_0x295c14),_0x4ff233=new G({'author':_0x214c3e,'type':'isAdded'==_0x6d8cc2||'isAddSuggestion'==_0x6d8cc2?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x6d8cc2||'isRemoveSuggestion'==_0x6d8cc2},'createdAt':new Date(),'rootName':_0x3f9ac9});_0x1013d1['push'](_0x4ff233),_0x169e84['markers']['set']('revision:'+_0x4ff233['id'],_0x346473);}function _0x46c6ae(_0x3afac0,_0x4e0621){const _0x59d369=_0x3afac0['getAttributes'](),_0x28e8ff=_0x4e0621['getAttributes']();for(const _0x4e9e60 of _0x59d369){if(_0x4e9e60[0x1]!==_0x4e0621['getAttribute'](_0x4e9e60[0x0]))return!0x1;_0x28e8ff['next']();}return _0x28e8ff['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x1179d4=>{const _0x3cd22c=_0x1179d4['markerName']['split'](':')[0x1],_0x3dcd2f=this['_getChangeFromId'](_0x3cd22c);if(!_0x3dcd2f)return null;const _0x3eb457='add'==_0x3dcd2f['type']?'insertion':'deletion',_0x43d3be=['ck-suggestion-marker','ck-suggestion-marker-'+_0x3eb457];return _0x3dcd2f['data']['isSuggestion']&&_0x43d3be['push']('ck-suggestion-marker-'+_0x3eb457+'-new'),this['activeChange']==_0x3dcd2f&&_0x43d3be['push']('ck-suggestion-marker--active'),{'classes':_0x43d3be,'attributes':{'data-change-id':_0x3cd22c}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x877756=>{_0x877756['on']('element:pre',(_0x3cb33c,_0x2fe48a,_0x1249eb)=>{const _0x9059f8=_0x2fe48a['viewItem']['getChild'](0x0);if(!_0x9059f8||!_0x9059f8['is']('element','code'))return;if(!_0x1249eb['consumable']['consume'](_0x9059f8,{'attributes':['vid_start','vid_end']}))return;const _0x129d26=_0x2fe48a['modelRange']['start']['nodeAfter'];_0x1249eb['writer']['setAttribute']('vid_start',_0x9059f8['getAttribute']('vid_start'),_0x129d26),_0x1249eb['writer']['setAttribute']('vid_end',_0x9059f8['getAttribute']('vid_end'),_0x129d26);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x2a8136=>{_0x2a8136['on']('element',(_0x257278,_0x5b7d2d,_0x585448)=>{if(!_0x585448['consumable']['consume'](_0x5b7d2d['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x5b7d2d['modelRange']['isCollapsed'])return;const _0x1f92e2=_0x5b7d2d['modelRange']['start']['nodeAfter'];_0x1f92e2['hasAttribute']('vid_start')||_0x1f92e2['hasAttribute']('vid')||(_0x585448['writer']['setAttribute']('vid_start',_0x5b7d2d['viewItem']['getAttribute']('vid_start'),_0x1f92e2),_0x585448['writer']['setAttribute']('vid_end',_0x5b7d2d['viewItem']['getAttribute']('vid_end'),_0x1f92e2));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x36ed8b=>_0x36ed8b['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x597144,[,_0x1d2b53])=>{['vid_start','vid_end','vid']['includes'](_0x1d2b53)&&(_0x597144['return']=!0x0,_0x597144['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x4cae10=>{_0x4cae10['on']('attribute:vid',(_0x4cefcc,_0x17d116,_0x500cb6)=>{if('\x20'!=_0x17d116['item']['data']||_0x17d116['item']['parent']['maxOffset']>0x1)return;if(!_0x500cb6['consumable']['consume'](_0x17d116['item'],_0x4cefcc['name']))return;const _0x5c92dd=_0x500cb6['writer'],_0x2fb7c1=_0x500cb6['mapper']['toViewRange'](_0x17d116['range']);_0x5c92dd['wrap'](_0x2fb7c1,_0x5c92dd['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x49fbeb){const _0x40d8df=_0x49fbeb['plugins']['get']('RevisionViewer');return(_0x60a81b,_0x4fd0b4,_0x365a2d)=>{const _0x1a533d=_0x4fd0b4['markerName']['split'](':')[0x1],_0x34b0f9=_0x40d8df['_getChangeFromId'](_0x1a533d);if(!_0x34b0f9)return null;const _0x160fa9='add'==_0x34b0f9['type']?'split':'merge';if(!_0x365a2d['consumable']['test'](_0x4fd0b4['markerRange'],_0x60a81b['name']))return;const _0x58af9f=_0x4fd0b4['markerRange']['getWalker'](),_0x359644=_0x4fd0b4['markerRange']['start'],_0x4981ce=_0x49fbeb['model']['schema'];let _0x3b11cd=null,_0x2710b1=null,_0x3a4a9d=!0x1,_0xbdd9d8=!0x1;for(const _0x3d8f8a of _0x58af9f){const _0x268a98=_0x3d8f8a['item'];_0x3a4a9d=_0x3a4a9d||_0x4981ce['isContent'](_0x268a98);const _0x45fbae=_0x365a2d['mapper']['toViewElement'](_0x268a98);if(_0x45fbae&&_0x45fbae['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3d8f8a['type']&&(_0x4981ce['isBlock'](_0x268a98)&&!_0x4981ce['isLimit'](_0x268a98)&&(_0x268a98['nextSibling']||_0x359644['isAtEnd']?_0x3b11cd&&_0x3b11cd['parent']==_0x268a98||(_0x3b11cd=_0x268a98,_0x594956(_0x3d8f8a['previousPosition']),_0xbdd9d8=!0x0):_0x2710b1=_0x2710b1||_0x3d8f8a['previousPosition']));}function _0x594956(_0x1ae4a5){const _0x39c24d=_0x365a2d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x160fa9}),_0x73c0f8=_0x365a2d['mapper']['toViewPosition'](_0x1ae4a5);_0x34b0f9['data']['isSuggestion']&&_0x365a2d['writer']['addClass']('ck-suggestion-marker-'+_0x160fa9+'-new',_0x39c24d),_0x40d8df['activeChange']==_0x34b0f9&&_0x365a2d['writer']['addClass']('ck-suggestion-marker--active',_0x39c24d),_0x365a2d['writer']['insert'](_0x73c0f8,_0x39c24d),_0x365a2d['mapper']['bindElementToMarker'](_0x39c24d,_0x4fd0b4['markerName']);}_0x3a4a9d||_0xbdd9d8||!_0x2710b1||_0x594956(_0x2710b1);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0xa2d166,_0x50f272,_0x11f8ff)=>{const _0x28789d=_0x11f8ff['mapper']['markerNameToElements'](_0x50f272['markerName']);if(_0x28789d){for(const _0x35ea6a of _0x28789d)(_0x35ea6a['hasClass']('ck-suggestion-marker-split')||_0x35ea6a['hasClass']('ck-suggestion-marker-merge'))&&(_0x11f8ff['mapper']['unbindElementFromMarkerName'](_0x35ea6a,_0x50f272['markerName']),_0x11f8ff['writer']['remove'](_0x35ea6a));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0xdc3e69,_0x428f1f,_0x362aac)=>{const _0x415e5b=_0x428f1f['markerName']['split'](':')[0x1],_0x4019c8=this['_getChangeFromId'](_0x415e5b);if(!_0x4019c8)return null;const _0x20c8c1='add'==_0x4019c8['type']?'split':'merge';if(_0x362aac['consumable']['test'](_0x428f1f['markerRange'],_0xdc3e69['name']))for(const _0x409559 of _0x428f1f['markerRange']['getItems']()){if(!_0x409559['is']('element','softBreak'))continue;const _0x264b81=_0x362aac['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x20c8c1}),_0x1511cd=_0x362aac['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x409559));_0x4019c8['data']['isSuggestion']&&_0x362aac['writer']['addClass']('ck-suggestion-marker-'+_0x20c8c1+'-new',_0x264b81),this['activeChange']==_0x4019c8&&_0x362aac['writer']['addClass']('ck-suggestion-marker--active',_0x264b81),_0x362aac['writer']['insert'](_0x1511cd,_0x264b81),_0x362aac['mapper']['bindElementToMarker'](_0x264b81,_0x428f1f['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x4149b1=>{for(const _0x5a0d7a of this['editor']['model']['document']['getRootNames']()){const _0x1309c5=this['editor']['model']['document']['getRoot'](_0x5a0d7a),_0x60cbd1=this['editor']['editing']['view']['document']['getRoot'](_0x5a0d7a);if(_0x60cbd1){const _0x221934=_0x1309c5['getAttribute']('revisionHistoryAttachChange');if(_0x4149b1['removeAttribute']('data-change-id',_0x60cbd1),_0x4149b1['removeClass']('ck-revision-history-root-add',_0x60cbd1),_0x4149b1['removeClass']('ck-revision-history-root-remove',_0x60cbd1),_0x4149b1['removeClass']('ck-revision-history-root--active',_0x60cbd1),_0x221934){const _0x4819b=this['_getChangeFromId'](_0x221934);if(!_0x4819b)return null;_0x4149b1['setAttribute']('data-change-id',_0x221934,_0x60cbd1),_0x4149b1['addClass']('ck-revision-history-root-'+_0x4819b['type'],_0x60cbd1),this['activeChange']==_0x4819b&&_0x4149b1['addClass']('ck-revision-history-root--active',_0x60cbd1);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x68b517=>'revision-comment:'+_0x68b517,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0xe71807=>'revision-suggestion:'+_0xe71807,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0xea5514=>({'name':'suggestion:'+_0xea5514,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x32f0a5=>{const _0x5d8a80=_0x32f0a5['markerName']['split'](':')[0x1];return'insertion'!=_0x5d8a80&&'deletion'!=_0x5d8a80?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x5d8a80]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Q(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Q(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0xa0b02a,_0x261fa4,_0x10cac9)=>{const _0x30cd25=_0x10cac9['mapper']['markerNameToElements'](_0x261fa4['markerName']);if(_0x30cd25){for(const _0x2c1330 of _0x30cd25)_0x2c1330['is']('uiElement')&&(_0x10cac9['mapper']['unbindElementFromMarkerName'](_0x2c1330,_0x261fa4['markerName']),_0x10cac9['writer']['remove'](_0x2c1330));}},{'priority':'high'});}['_getChangeFromId'](_0x100334){return this['_changeIdToChange']['get'](_0x100334);}['_getViewForChange'](_0x5a5105){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x5a5105),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x4a0f08,_0x1978e7,_0x46a211,_0x304ec3)=>{_0x304ec3&&this['_balloon']['remove'](_0x304ec3),_0x46a211&&(this['_balloon']['add']({'view':_0x46a211,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x45f72c=this['editor']['editing'],_0x5e5f37=this['_getChangeFromId'](_0x46a211['changeId']);let _0x26361f;if(_0x5e5f37['data']['isOnRoot']){const _0x4bc2c2=_0x45f72c['view']['getDomRoot'](_0x5e5f37['rootName']);_0x26361f=Array['from'](_0x4bc2c2['getClientRects']());}else{const _0x5b71d9=this['editor']['model']['markers']['get']('revision:'+_0x46a211['changeId']);_0x26361f=Array['from'](_0x45f72c['mapper']['markerNameToElements'](_0x5b71d9['name']))['map'](_0x556b5a=>_0x45f72c['view']['domConverter']['mapViewToDom'](_0x556b5a))['map'](_0x4ece04=>Array['from'](_0x4ece04['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x26361f[0x0];return _0x26361f['find'](_0x370d87=>_0x370d87['top']-0x3<=this['_activeViewTarget']['y']&&_0x370d87['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x370d87['left']-0x3<=this['_activeViewTarget']['x']&&_0x370d87['right']+0x3>=this['_activeViewTarget']['x'])||_0x26361f[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x5c6b6a,_0x3ce96d,_0x667fec,_0x190a29)=>{this['activeView']=_0x667fec?this['_getViewForChange'](_0x667fec):null,this['editor']['model']['change'](()=>{const _0x2c4c8b=this['editor']['editing'];_0x190a29&&(_0x190a29['data']['isOnRoot']?_0x2c4c8b['view']['change'](_0x35bd9d=>{_0x35bd9d['removeClass']('ck-revision-history-root--active',_0x2c4c8b['view']['document']['getRoot'](_0x190a29['rootName']));}):_0x2c4c8b['reconvertMarker']('revision:'+_0x190a29['id'])),_0x667fec&&(_0x667fec['data']['isOnRoot']?_0x2c4c8b['view']['change'](_0x41dfca=>{_0x41dfca['addClass']('ck-revision-history-root--active',_0x2c4c8b['view']['document']['getRoot'](_0x667fec['rootName']));}):_0x2c4c8b['reconvertMarker']('revision:'+_0x667fec['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x39d331,_0x5f1785)=>{if(this['activeChange'])return;const _0x5ce1fd=this['_findChangeIdFromDomTarget'](_0x5f1785['target']),_0x331e61=this['_changeIdToChange']['get'](_0x5ce1fd);_0x331e61?(this['_activeViewTarget']={'x':_0x5f1785['domEvent']['x'],'y':_0x5f1785['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x331e61)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x2c21e3,_0x41ad8c)=>{const _0x27e220=this['_findChangeIdFromDomTarget'](_0x41ad8c['target']),_0x4787f3=this['_changeIdToChange']['get'](_0x27e220);_0x4787f3?(this['_activeViewTarget']={'x':_0x41ad8c['domEvent']['x'],'y':_0x41ad8c['domEvent']['y']},_0x4787f3===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x4787f3):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x17b7d3){do{const _0x38d673=_0x17b7d3['getAttribute']('data-change-id');if(_0x38d673)return _0x38d673;_0x17b7d3=_0x17b7d3['parent'];}while(_0x17b7d3);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x30b05c=>{for(const _0xd38f68 of this['editor']['model']['markers'])_0x30b05c['removeMarker'](_0xd38f68);});}}function Q(_0xc0a01d,_0x1a8124){return(_0x23449c,_0x3eccc9,_0x40b25d)=>{if(!_0x40b25d['consumable']['test'](_0x3eccc9['markerRange'],_0x23449c['name']))return;const _0x3893c7=_0x3eccc9['markerRange']['getWalker'](),_0x4f01e2=_0x3eccc9['markerRange']['start'],_0x155df8=_0xc0a01d['model']['schema'];let _0x439faf=null,_0x21c153=null,_0x56fbea=!0x1,_0x347482=!0x1;for(const _0x8f03c7 of _0x3893c7){const _0x20afc5=_0x8f03c7['item'];_0x56fbea=_0x56fbea||_0x155df8['isContent'](_0x20afc5);const _0x329bbe=_0x40b25d['mapper']['toViewElement'](_0x20afc5);if(_0x329bbe&&_0x329bbe['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x8f03c7['type']&&(_0x155df8['isBlock'](_0x20afc5)&&!_0x155df8['isLimit'](_0x20afc5)&&(_0x20afc5['nextSibling']||_0x4f01e2['isAtEnd']?_0x439faf&&_0x439faf['parent']==_0x20afc5||(_0x439faf=_0x20afc5,_0x21f0de(_0x8f03c7['previousPosition']),_0x347482=!0x0):_0x21c153=_0x21c153||_0x8f03c7['previousPosition']));}function _0x21f0de(_0xf44cbc){const _0x3e78bf=_0x40b25d['mapper']['toViewPosition'](_0xf44cbc),_0x13cc39=_0x40b25d['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x1a8124});_0x40b25d['writer']['insert'](_0x3e78bf,_0x13cc39),_0x40b25d['mapper']['bindElementToMarker'](_0x13cc39,_0x3eccc9['markerName']);}_0x56fbea||_0x347482||!_0x21c153||_0x21f0de(_0x21c153);};}class nt extends _0x51d866{constructor(_0x336826){super(_0x336826);const _0x455fe8=_0x336826['plugins']['get'](u);this['affectsData']=!0x1,this['listenTo'](_0x455fe8,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x455fe8,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x1b8755=this['editor'],_0x253aa0=_0x1b8755['plugins']['get'](u),_0xe0e795=_0x253aa0['isReady']?_0x253aa0['diff']['newRevisionId']:null;_0x1b8755['config']['get']('revisionHistory')['restoreRevisionCallback'](_0xe0e795);}['refresh'](){const {isReady:_0x1f5fbb,isEnabled:_0x52dfc0,repository:_0x2cc4d5,diff:_0x151922}=this['editor']['plugins']['get'](u),_0x370b22=_0x151922&&_0x2cc4d5['getLaterVisibleRevision'](_0x151922['newRevisionId']);this['isEnabled']=_0x1f5fbb&&_0x52dfc0&&Boolean(_0x370b22);}}class ot extends _0x51d866{['_step'];constructor(_0x356d4f,{direction:_0x5a849a}){super(_0x356d4f);const _0x3e4ad6=_0x356d4f['plugins']['get'](u);this['affectsData']=!0x1,this['_step']='forward'===_0x5a849a?0x1:-0x1,this['listenTo'](_0x3e4ad6,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x3e4ad6,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x3e4ad6,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x5cf68e=this['editor'],_0x1eb83a=_0x5cf68e['plugins']['get'](u),{isNavigationMode:_0x3394b1,currentChangeNumber:_0x10a5f1}=_0x1eb83a;let _0x49a62c;if(_0x1eb83a['activeChange']=_0x3394b1?_0x1eb83a['diff']['changes']['get'](_0x10a5f1+this['_step']):_0x1eb83a['diff']['changes']['first'],_0x1eb83a['activeChange']['data']['isOnRoot'])_0x49a62c=_0x5cf68e['editing']['view']['getDomRoot'](_0x1eb83a['activeChange']['rootName']);else{const _0x3c1df7=_0x5cf68e['model']['markers']['get']('revision:'+_0x1eb83a['activeChange']['id']);_0x49a62c=_0x592b4b(_0x5cf68e['editing'],_0x3c1df7);}_0x1412d0({'target':_0x49a62c,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x1644f4,currentChangeNumber:_0x2a4210,numberOfChanges:_0x12cf83,isReady:_0x15571a,isEnabled:_0x5ca4aa}=this['editor']['plugins']['get'](u);this['isEnabled']=!!(_0x5ca4aa&&_0x15571a&&_0x12cf83)&&(!_0x1644f4||(0x1===this['_step']?_0x2a4210<_0x12cf83-0x1:_0x2a4210>0x0));}}class pi extends _0x137fda{constructor(_0xa1d47d){super(_0xa1d47d);const _0x5e9c18=this['bindTemplate'],_0x331082=new _0x4a9295(_0xa1d47d),_0x3effa1=new _0x4a9295(_0xa1d47d);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',(_0x2329fa,_0x43270e)=>_0x2329fa&&_0x43270e>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x5d3818,_0x1595df,_0x5e316f,_0x5687b9)=>{if(!_0x5d3818)return m(_0xa1d47d,'Loading...');if(!_0x5e316f)return m(_0xa1d47d,'No\x20changes');const _0xbe2a3c=m(_0xa1d47d,'NUMBER_OF_CHANGES',_0x5e316f);return _0x5687b9?m(_0xa1d47d,'X_OF_Y_CHANGES',[_0x1595df+0x1,_0x5e316f]):_0xbe2a3c;}),_0x331082['set']({'label':m(_0xa1d47d,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x2c2a86}),_0x3effa1['set']({'label':m(_0xa1d47d,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x121cc9}),_0x331082['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x3effa1['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x331082['on']('execute',()=>this['fire']('execute','backward')),_0x3effa1['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',_0x5e9c18['if']('_isStatusLabelVisible','ck-hidden',_0x539c1a=>!_0x539c1a)]},'children':[{'text':_0x5e9c18['to']('isNavigationMode',_0x1d19ce=>_0x1d19ce?m(_0xa1d47d,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0xa1d47d,'Total')+':\x20')}]},{'text':_0x5e9c18['to']('_statusText')}]},new _0x1ed139(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x331082,_0x3effa1]}]});}}const ge='ck-editor__editable__loading-overlay';class fi extends _0x5579a2{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0xe1526b=this['editor']['editing']['view'];_0xe1526b['change'](_0x2e2ffd=>{for(const _0x28ac98 of _0xe1526b['document']['roots'])_0x2e2ffd['addClass'](ge,_0x28ac98);});}['hide'](){const _0x38b0cf=this['editor']['editing']['view'];_0x38b0cf['change'](_0x19b958=>{for(const _0x1c6055 of _0x38b0cf['document']['roots'])_0x19b958['removeClass'](ge,_0x1c6055);});}}class v extends _0x5579a2{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,fi];}['init'](){const _0x1de682=this['editor'],_0x2a12a0=_0x1de682['plugins']['get'](u),_0x517cd5=_0x1de682['plugins']['get'](fi);_0x1de682['ui']['componentFactory']['add']('exitToEditing',_0x20833a=>{const _0xd83881=new _0x4a9295(_0x20833a);return _0xd83881['set']({'label':m(_0x20833a,'Back\x20to\x20editing'),'icon':_0x18f0d1,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0xd83881,'execute',()=>{_0x1de682['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0xd83881;}),_0x1de682['ui']['componentFactory']['add']('restoreRevision',_0x5efa23=>{const _0x5676a3=new _0x4a9295(_0x5efa23);return _0x5676a3['set']({'label':m(_0x5efa23,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x5676a3['bind']('isEnabled')['to'](_0x1de682['commands']['get']('restoreRevision')),this['listenTo'](_0x5676a3,'execute',()=>_0x1de682['execute']('restoreRevision')),_0x5676a3;}),_0x1de682['ui']['componentFactory']['add']('changesNavigation',_0x19d8c6=>{const _0x3af360=new pi(_0x19d8c6),_0x443b66=_0x1de682['commands']['get']('showPreviousChange'),_0x449b35=_0x1de682['commands']['get']('showNextChange');return _0x3af360['bind']('isBackwardNavigationEnabled')['to'](_0x443b66,'isEnabled'),_0x3af360['bind']('isForwardNavigationEnabled')['to'](_0x449b35,'isEnabled'),_0x3af360['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x2a12a0),this['listenTo'](_0x3af360,'execute',(_0x93f48c,_0x275b9f)=>{_0x1de682['execute']('forward'===_0x275b9f?'showNextChange':'showPreviousChange');}),_0x3af360;}),_0x517cd5['show'](),_0x2a12a0['on']('change:isReady',(_0x2d9c1f,_0x2b4703,_0x4858ae)=>{_0x4858ae?_0x517cd5['hide']():_0x517cd5['show']();});}}class li extends ti{['_resizeObserver']=null;constructor(_0x5a0edd,_0x1f862c){super(_0x5a0edd,_0x1f862c);const _0x49359d=this['bindTemplate'];this['set']({'label':m(_0x5a0edd,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x5a0edd,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x49359d['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new et(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x5e99ef=this['fieldView']['element'];this['_tooltipString']=_0x5e99ef['scrollWidth']>_0x5e99ef['clientWidth']&&_0x5e99ef['value']||'';}}class vi extends _0x137fda{constructor(_0x22bd7f,_0x2fb6c0,_0x46e63b){super(_0x22bd7f);const _0x330d4a=new _0x5608aa();_0x330d4a['set']({'content':_0x7a4782,'viewBox':'0\x200\x2011\x2010'});const _0x2ea004=['ck','ck-revision-history-sidebar__revision-author'];_0x46e63b&&_0x2ea004['push']('ck-revision-history-sidebar__revision-author_creator');const _0xd1d14e=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x22bd7f,_0x46e63b?'Revision\x20creator':'Revision\x20author')},'children':[_0x330d4a,_0x2fb6c0['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x2ea004},'children':_0xd1d14e});}}function mi(_0x3f4248,_0x5c95b7){const _0x195691=_0x3f4248['bindTemplate'],_0x219e16=_0x3f4248['locale'],_0x1ee86f=_0x240720(_0x219e16);_0x1ee86f['panelPosition']='sw';const _0x3da476=function(_0x1d0829,_0x2ca8c6){const _0x51be0c=function(_0x929842,_0x540c9d){const _0x5be5ca=_0x929842['locale'],_0x1fa9bf={'Compare\x20against\x20selected':m(_0x5be5ca,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x5be5ca,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x5be5ca,'Restore\x20this\x20revision')};return _0x540c9d['map'](_0x55c186=>{const _0x2f04ae=_0x1fa9bf[_0x55c186['name']];return _0x2f04ae&&_0x2f04ae!==_0x55c186['name']&&(_0x55c186['name']=_0x2f04ae),_0x55c186;});}(_0x1d0829,_0x2ca8c6),_0x2d1580=new _0x5a6931();for(const _0x1b961a of _0x51be0c){const _0x16525d={'type':'button','model':new to({'label':_0x1b961a['name'],'class':_0x1b961a['class'],'withText':!0x0,'role':'menuitem','_action':_0x1b961a['action']})};_0x16525d['model']['bind']('isEnabled')['to'](_0x1d0829,'isActionsDropdownOpen',_0x764d33=>'function'!=typeof _0x1b961a['isEnabled']||(!_0x764d33||_0x1b961a['isEnabled'](_0x1d0829))),_0x2d1580['add'](_0x16525d);}return _0x2d1580;}(_0x3f4248,_0x5c95b7);return _0x3f4248['bind']('isActionsDropdownOpen')['to'](_0x1ee86f,'isOpen'),_0x1ee86f['buttonView']['set']({'label':m(_0x219e16,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x4c1234}),_0x1ee86f['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x195691['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x195691['to'](_0x374bdf=>_0x374bdf['stopPropagation']())}}),_0x1ee86f['on']('execute',_0x38d665=>{_0x3f4248['isReady']&&'function'==typeof _0x38d665['source']['_action']&&_0x38d665['source']['_action'](_0x3f4248);}),_0x6fe9c0(_0x1ee86f,_0x3da476,{'role':'menu'}),_0x1ee86f['listenTo'](_0x3f4248,'change:isActionsDropdownOpen',(_0x2ffe20,_0x3437b,_0x132b6f)=>{if(_0x132b6f)for(const _0x4d628a of _0x1ee86f['listView']['items']){const _0x2e39e=_0x4d628a['children']['first'],_0x5855f9=_0x5c95b7['find'](_0x53433d=>_0x53433d['action']===_0x2e39e['_action'])['isVisible'];_0x4d628a['isVisible']=void 0x0===_0x5855f9||_0x5855f9(_0x3f4248);}}),_0x1ee86f;}class ki extends/* #__PURE__ -- @preserve */
|
|
27
|
-
|
|
23
|
+
import{ObservableMixin as _0x5db0d3,uid as _0x13449a,Collection as _0x2df1dc,logWarning as _0x43e483,FocusTracker as _0x4bb686,KeystrokeHandler as _0x33ba21,scrollViewportToShowTarget as _0x7f380f,ResizeObserver as ot,ElementReplacer as it,CKEditorError as _0x15679c}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x580985,set as _0x370e9e,unset as _0x397051,isEqual as _0x4cdcc7}from'es-toolkit/compat';import{Plugin as _0x218037,PendingActions as _0x25306b,Command as _0x17b0d9,ElementApiMixin as _0x468417,Editor as _0x123e3b}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x12124b,getMarkerDomElement as _0x1c2c9f,ConfirmMixin as _0x2843a3,sanitizeEditorConfig as _0x5afd24}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x362551,ViewAttributeElement as _0x37a04b,ViewEmptyElement as _0x34ae0c,ViewRawElement as _0x113f4b,ViewUIElement as _0x32fbcb,ViewDocumentFragment as _0x1626fb,ViewText as _0x54dead,ViewElement as _0x362c50,ModelElement as _0x4c10e7,ModelRange as _0x5d6315,ModelPosition as _0x56ae4c,ModelDocumentFragment as _0x3321bc,ModelText as _0x5872fb}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x387529,IconChevronUp as _0x316839,IconChevronDown as _0x1f534e,IconUndo as _0xa53bdc,IconUser as _0x374f5e,IconThreeVerticalDots as _0x33ef6f}from'@ckeditor/ckeditor5-icons/dist/index.js';import{CssTransitionDisablerMixin as _0x11d054,View as _0x225925,submitHandler as _0x5c35aa,LabeledFieldView as et,createLabeledInputText as ti,createDropdown as _0x5a9ba8,ListView as _0x310d06,ListItemView as _0x1a6913,ButtonView as _0x220221,MenuBarMenuView as _0x5dbe5d,MenuBarMenuListView as _0x3547d7,MenuBarMenuListItemView as _0x2dfe78,MenuBarMenuListItemButtonView as _0x33b60c,ContextualBalloon as _0x4ee731,ToolbarSeparatorView as _0x3c0da6,IconView as _0x9797be,addListToDropdown as _0x2ea067,UIModel as to,EditorUI as tt,normalizeToolbarConfig as st,BoxedEditorUIView as _0x9cef13,StickyPanelView as _0x3b2c11,ToolbarView as _0xe37dc9,InlineEditableUIView as te}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x4b9911}from'luxon';class I extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x5db0d3(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x289c01){super(),this['id']=_0x289c01['id']||_0x13449a(),this['creator']=_0x289c01['creator']||null,this['authors']=_0x289c01['authors']||[],this['diffData']=_0x289c01['diffData']||null,this['toVersion']=_0x289c01['toVersion']||0x0,this['fromVersion']=_0x289c01['fromVersion']||0x0,this['set']('name',_0x289c01['name']||''),this['set']('createdAt',_0x289c01['createdAt']||new Date()),this['set']('attributes',_0x289c01['attributes']||{});}['setName'](_0xa3b774){this['_update']({'name':_0xa3b774});}['setAttribute'](_0xbd4cbf,_0x42df04){const _0x2de23e=_0x580985(this['attributes']);_0x370e9e(_0x2de23e,_0xbd4cbf,_0x42df04),this['_update']({'attributes':_0x2de23e});}['removeAttribute'](_0x514bef){const _0x1aac58=_0x580985(this['attributes']);_0x397051(_0x1aac58,_0x514bef),this['_update']({'attributes':_0x1aac58});}['_update'](_0x77820e,_0x15072f=!0x1){let _0x257a22=!0x1;const _0x13762c={'id':this['id']},_0x22bf5f=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x3de041 of _0x22bf5f){const _0x515c87=_0x77820e[_0x3de041];void 0x0!==_0x515c87&&_0x515c87!==this[_0x3de041]&&(this[_0x3de041]=_0x515c87,_0x13762c[_0x3de041]=_0x515c87,_0x257a22=!0x0);}_0x257a22&&(_0x13762c['authors']&&(_0x13762c['authorsIds']=_0x13762c['authors']['map'](_0x36b688=>_0x36b688['id']),delete _0x13762c['authors']),this['fire']('_update',_0x13762c,_0x15072f));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x553996=>_0x553996['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x218037{['_revisions'];static get['requires'](){return[_0x12124b];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x306977){super(_0x306977),this['_revisions']=new _0x2df1dc();}['afterInit'](){!async function(_0x94311){const _0x2f3f39=_0x3a4886([0x76,0x73,0x6d,0x4c,0x34,0x54,0x50,0x70,0x75,0x52,0x35,0x33,0x4d,0x6c,0x71,0x53,0x6a,0x32,0x56,0x58,0x77,0x48,0x39,0x6f,0x45,0x41,0x4e,0x38,0x46,0x78,0x4a,0x74,0x47,0x55,0x4f,0x64,0x62,0x44,0x43,0x5a,0x30,0x31,0x69,0x68,0x79,0x66,0x6b,0x42,0x51,0x59,0x36,0x61,0x63,0x67,0x7a,0x37,0x72,0x49,0x65,0x57,0x4b,0x6e]),_0x1c768b=0xeb829,_0x410735=0x359e09b0,_0x281d66=0x35997380^_0x410735,_0x135891=window[_0x3a4886([0x44,0x61,0x74,0x65])][_0x3a4886([0x6e,0x6f,0x77])](),_0x49f25c=_0x94311[_0x3a4886([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1a5943=new window[(_0x3a4886([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x291e74=>{_0x49f25c[_0x3a4886([0x6f,0x6e,0x63,0x65])](_0x3a4886([0x72,0x65,0x61,0x64,0x79]),_0x291e74);}),_0x5dac2a={[_0x3a4886([0x6b,0x74,0x79])]:_0x3a4886([0x45,0x43]),[_0x3a4886([0x75,0x73,0x65])]:_0x3a4886([0x73,0x69,0x67]),[_0x3a4886([0x63,0x72,0x76])]:_0x3a4886([0x50,0x2d,0x32,0x35,0x36]),[_0x3a4886([0x78])]:_0x3a4886([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]),[_0x3a4886([0x79])]:_0x3a4886([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]),[_0x3a4886([0x61,0x6c,0x67])]:_0x3a4886([0x45,0x53,0x32,0x35,0x36])},_0x146c45=_0x49f25c[_0x3a4886([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3a4886([0x67,0x65,0x74])](_0x3a4886([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x359d2a(){let _0x2b4475,_0x17e287=null,_0x45baf7=null;try{if(_0x146c45==_0x3a4886([0x47,0x50,0x4c]))return _0x3a4886([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2b4475=_0x813dcd(),!_0x2b4475)return _0x3a4886([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2b4475[_0x3a4886([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x45baf7=_0x34dc66(_0x2b4475[_0x3a4886([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2b4475[_0x3a4886([0x6a,0x74,0x69])])),await _0x479c37()?_0x4212a1()?_0x169e53()?_0x3a4886([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x8a76f8()?(_0x2b4475[_0x3a4886([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3a4886([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x17e287=_0x4e9e67(_0x3a4886([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2b4475[_0x3a4886([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3a4886([0x74,0x72,0x69,0x61,0x6c])&&(_0x17e287=_0x4e9e67(_0x3a4886([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x14fbe8()):_0x3a4886([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3a4886([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3a4886([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3a4886([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x169e53(){const _0x352c28=[_0x3a4886([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3a4886([0x74,0x72,0x69,0x61,0x6c])][_0x3a4886([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b4475[_0x3a4886([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x135891/0x3e8:0xe10*_0x281d66;return _0x2b4475[_0x3a4886([0x65,0x78,0x70])]<_0x352c28;}function _0x4212a1(){const _0x54596c=_0x2b4475[_0x3a4886([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x54596c)return!0x1;if(_0x54596c[_0x3a4886([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3a4886([0x2a])))return!0x0;if(_0x54596c[_0x3a4886([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3a4886([0x52,0x48])))return!0x0;if(_0x54596c[_0x3a4886([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3a4886([0x52,0x52,0x48]))){if(_0x55dddf())return!0x0;if(_0x11b12d()||_0x2afe96())return!0x0;}return!0x1;}function _0x8a76f8(){const _0x2a7d1f=_0x2b4475[_0x3a4886([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2a7d1f||0x0==_0x2a7d1f[_0x3a4886([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1271dd}=new URL(window[_0x3a4886([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2a7d1f[_0x3a4886([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1271dd))return!0x0;const _0x7747d7=_0x1271dd[_0x3a4886([0x73,0x70,0x6c,0x69,0x74])](_0x3a4886([0x2e]));return _0x2a7d1f[_0x3a4886([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2cefd4=>_0x2cefd4[_0x3a4886([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3a4886([0x2a])))[_0x3a4886([0x6d,0x61,0x70])](_0x3d3433=>_0x3d3433[_0x3a4886([0x73,0x70,0x6c,0x69,0x74])](_0x3a4886([0x2e])))[_0x3a4886([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x430a09=>_0x430a09[_0x3a4886([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x7747d7[_0x3a4886([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3a4886([0x6d,0x61,0x70])](_0x57f9c0=>Array(_0x7747d7[_0x3a4886([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x57f9c0[_0x3a4886([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3a4886([0x66,0x69,0x6c,0x6c])](_0x57f9c0[0x0]===_0x3a4886([0x2a])?_0x3a4886([0x2a]):'')[_0x3a4886([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x57f9c0))[_0x3a4886([0x73,0x6f,0x6d,0x65])](_0x128381=>_0x7747d7[_0x3a4886([0x65,0x76,0x65,0x72,0x79])]((_0x25490e,_0x17e37f)=>_0x128381[_0x17e37f]===_0x25490e||_0x128381[_0x17e37f]===_0x3a4886([0x2a])));}function _0x14fbe8(){return _0x17e287&&_0x45baf7?new window[(_0x3a4886([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x26cd6d,_0xef9a1c)=>{_0x17e287[_0x3a4886([0x74,0x68,0x65,0x6e])](_0x26cd6d,_0xef9a1c),_0x45baf7[_0x3a4886([0x74,0x68,0x65,0x6e])](_0x512d4b=>{_0x512d4b!=_0x3a4886([0x56,0x61,0x6c,0x69,0x64])&&_0x26cd6d(_0x512d4b);},_0xef9a1c);}):_0x17e287||_0x45baf7||_0x3a4886([0x56,0x61,0x6c,0x69,0x64]);}}function _0x34dc66(_0x390969,_0x2e7c4f){return new window[(_0x3a4886([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x56c53f=>{if(_0x6b005c())return _0x56c53f(_0x3a4886([0x56,0x61,0x6c,0x69,0x64]));_0x153b30(),_0x49f25c[_0x3a4886([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3a4886([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2fa430=!0x1;const _0x7eaa08=_0x13449a();function _0x1aaad6(_0x3f483c){return!!_0x3f483c&&(typeof _0x3f483c===_0x3a4886([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3f483c===_0x3a4886([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3f483c[_0x3a4886([0x74,0x68,0x65,0x6e])]===_0x3a4886([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3f483c[_0x3a4886([0x63,0x61,0x74,0x63,0x68])]===_0x3a4886([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4c5dba(_0x42ed59){_0x491f02(_0x42ed59)[_0x3a4886([0x74,0x68,0x65,0x6e])](_0x56fdee=>{if(!_0x56fdee||_0x56fdee[_0x3a4886([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3a4886([0x6f,0x6b]))return _0x3a4886([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5db00a(_0x4d179d(_0x7eaa08+_0x2e7c4f))!=_0x56fdee[_0x3a4886([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3a4886([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3a4886([0x56,0x61,0x6c,0x69,0x64]);})[_0x3a4886([0x74,0x68,0x65,0x6e])](_0x2e8ff0=>(_0x31a808(),_0x2e8ff0),()=>{const _0xcd33c9=_0x32d124();return null==_0xcd33c9?(_0x31a808(),_0x3a4886([0x56,0x61,0x6c,0x69,0x64])):_0x3a4886(_0x135891-_0xcd33c9>(0x11928db0^_0x410735)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3a4886([0x74,0x68,0x65,0x6e])](_0x56c53f)[_0x3a4886([0x63,0x61,0x74,0x63,0x68])](()=>{_0x56c53f(_0x3a4886([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x163ed5=0x35a8e730^_0x410735;function _0x31a808(){const _0x46f3fa=_0x3a4886([0x6c,0x6c,0x63,0x74,0x2d])+_0x5db00a(_0x4d179d(_0x390969)),_0x21c0b5=_0x4edc37(_0x5db00a(window[_0x3a4886([0x4d,0x61,0x74,0x68])][_0x3a4886([0x63,0x65,0x69,0x6c])](_0x135891/_0x163ed5)));window[_0x3a4886([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3a4886([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x46f3fa,_0x21c0b5);}function _0x32d124(){const _0x429f45=_0x3a4886([0x6c,0x6c,0x63,0x74,0x2d])+_0x5db00a(_0x4d179d(_0x390969)),_0x44116f=window[_0x3a4886([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3a4886([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x429f45);return _0x44116f?window[_0x3a4886([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4edc37(_0x44116f),0x10)*_0x163ed5:null;}function _0x491f02(_0x5d3e9f){return new window[(_0x3a4886([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3b5bc1,_0x5b1113)=>{_0x5d3e9f[_0x3a4886([0x74,0x68,0x65,0x6e])](_0x3b5bc1,_0x5b1113),window[_0x3a4886([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5b1113,0x359fdd70^_0x410735);});}}_0x49f25c[_0x3a4886([0x6f,0x6e])](_0x3a4886([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x24a285,_0x521246)=>{if(_0x521246[0x0]!=_0x390969)return _0x56c53f(_0x3a4886([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x521246[0x1]={..._0x521246[0x1],[_0x3a4886([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x7eaa08};},{[_0x3a4886([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3a4886([0x68,0x69,0x67,0x68])}),_0x49f25c[_0x3a4886([0x6f,0x6e])](_0x3a4886([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1da92a=>{_0x1aaad6(_0x1da92a[_0x3a4886([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2fa430=!0x0,_0x4c5dba(_0x1da92a[_0x3a4886([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3a4886([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3a4886([0x6c,0x6f,0x77])}),_0x1a5943[_0x3a4886([0x74,0x68,0x65,0x6e])](()=>{_0x2fa430||_0x56c53f(_0x3a4886([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x6b005c(){return _0x49f25c[_0x3a4886([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3a4886([0x76,0x69,0x65,0x77])][_0x3a4886([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3a4886([0x61,0x75,0x74,0x6f]);}function _0x153b30(){_0x49f25c[_0x3a4886([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3a4886([0x76,0x69,0x65,0x77])][_0x3a4886([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3a4886([0x61,0x75,0x74,0x6f]);}}function _0x4e9e67(_0x42de3c){const _0x5d15ff=[new window[(_0x3a4886([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3089de=>setTimeout(_0x3089de,0x3597377c^_0x410735)),_0x1a5943[_0x3a4886([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3a4886([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4fe579=>{const _0x2b2d00=0x359e09b7^_0x410735,_0x1d5818=_0x94311[_0x3a4886([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x61c666(){_0x1d5818[_0x3a4886([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x2b2d00&&_0x4fe579();}_0x61c666(),_0x1d5818[_0x3a4886([0x6f,0x6e])](_0x3a4886([0x61,0x64,0x64]),_0x61c666);})),new window[(_0x3a4886([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4c27a4=>{function _0xb3b01a(){for(const _0x5462a3 in window)if(window[_0x3a4886([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x3a4886([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x5462a3))&&window[_0x5462a3]==_0x1c768b)return _0x4c27a4();_0x49f25c[_0x3a4886([0x73,0x74,0x61,0x74,0x65])]!=_0x3a4886([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x3a4886([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xb3b01a,0x359e1a38^_0x410735);}_0x4be306(_0x3a4886([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0xb3b01a();})];return window[_0x3a4886([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3a4886([0x72,0x61,0x63,0x65])](_0x5d15ff)[_0x3a4886([0x74,0x68,0x65,0x6e])](()=>_0x42de3c);}async function _0x1f4103(){if(await _0x1a5943,_0x4be306(_0x3a4886([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x50a211=_0x94311[_0x3a4886([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x40615d=_0x94311[_0x3a4886([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])](_0x50a211[_0x3a4886([0x69,0x64])]),_0x13049d=_0x1000af(_0x3a4886([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x13049d[_0x3a4886([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x50a211['id'],_0x40615d?_0x40615d['id']:null,!0x0),_0x13049d[_0x3a4886([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x3a4886([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x13049d[_0x3a4886([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x13049d[_0x3a4886([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x567605,void(_0x13049d[_0x3a4886([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x567605);}if(_0x4be306(_0x3a4886([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x4eee9c=_0x1000af(_0x3a4886([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x4eee9c[_0x3a4886([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x3a4886([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x4eee9c[_0x3a4886([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x4eee9c[_0x3a4886([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x567605,_0x4eee9c[_0x3a4886([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x567605;}_0x49f25c[_0x3a4886([0x6d,0x6f,0x64,0x65,0x6c])][_0x3a4886([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x567605,_0x49f25c[_0x3a4886([0x6d,0x6f,0x64,0x65,0x6c])][_0x3a4886([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x567605,_0x49f25c[_0x3a4886([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3a4886([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x55dddf(){return _0x4be306(_0x3a4886([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1000af(_0x3a4886([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3a4886([0x73,0x74,0x61,0x74,0x65])]==_0x3a4886([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x11b12d(){return _0x4be306(_0x3a4886([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 _0x2afe96(){return _0x4be306(_0x3a4886([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x32e352(_0x18c9ee){const _0x2c654b=_0x5556c0();_0x49f25c[_0x2c654b]=_0x3a4886([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])+_0x18c9ee,_0x18c9ee[_0x3a4886([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x3a4886([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x5556c0()]=_0x1c768b),_0x18c9ee!=_0x3a4886([0x56,0x61,0x6c,0x69,0x64])&&_0x1f4103();}function _0x5556c0(){const _0x5bdc15=window[_0x3a4886([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3a4886([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3a4886([0x6e,0x6f,0x77])]())[_0x3a4886([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3a4886([0x2e]),'');let _0x1e4fe4=_0x3a4886([0x76]);for(let _0x7f4f42=0x0;_0x7f4f42<_0x5bdc15[_0x3a4886([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x7f4f42+=0x2){let _0x413284=window[_0x3a4886([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5bdc15[_0x3a4886([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x7f4f42,_0x7f4f42+0x2));_0x413284>=_0x2f3f39[_0x3a4886([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x413284-=_0x2f3f39[_0x3a4886([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1e4fe4+=_0x2f3f39[_0x413284];}return _0x1e4fe4;}function _0x813dcd(){const _0x4063db=_0x146c45[_0x3a4886([0x73,0x70,0x6c,0x69,0x74])](_0x3a4886([0x2e]));if(0x3!=_0x4063db[_0x3a4886([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x28a84b(_0x4063db[0x1]);function _0x28a84b(_0x27e448){const _0x521af3=_0x2e1487(_0x27e448);return _0x521af3&&_0x4f5e25()?_0x521af3:null;function _0x4f5e25(){const _0x148a7a=_0x521af3[_0x3a4886([0x6a,0x74,0x69])],_0x57a053=window[_0x3a4886([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x148a7a[_0x3a4886([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x148a7a[_0x3a4886([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x40e556={..._0x521af3,[_0x3a4886([0x6a,0x74,0x69])]:_0x148a7a[_0x3a4886([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x148a7a[_0x3a4886([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x40e556[_0x3a4886([0x76,0x63])],_0x4d179d(_0x40e556)==_0x57a053;}}}async function _0x479c37(){let _0x5b6ce7=!0x0;try{const _0x5d7615=_0x146c45[_0x3a4886([0x73,0x70,0x6c,0x69,0x74])](_0x3a4886([0x2e])),[_0x16382c,_0x4ecc0d,_0x529eca]=_0x5d7615;return _0x5ce23e(_0x16382c),await _0x5ff212(_0x16382c,_0x4ecc0d,_0x529eca),_0x5b6ce7;}catch{return!0x1;}function _0x5ce23e(_0x2eeca7){const _0xe041c8=_0x2e1487(_0x2eeca7);_0xe041c8&&_0xe041c8[_0x3a4886([0x61,0x6c,0x67])]==_0x3a4886([0x45,0x53,0x32,0x35,0x36])||(_0x5b6ce7=!0x1);}async function _0x5ff212(_0x1bbf2c,_0x22d9bf,_0x31420c){const _0x1e7ac4=window[_0x3a4886([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3a4886([0x66,0x72,0x6f,0x6d])](_0x49a37a(_0x31420c),_0x1a9ba5=>_0x1a9ba5[_0x3a4886([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2fb7e4=new window[(_0x3a4886([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3a4886([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1bbf2c+_0x3a4886([0x2e])+_0x22d9bf),_0x37936a=window[_0x3a4886([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3a4886([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x37936a)return;const _0x4e98c1=await _0x37936a[_0x3a4886([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3a4886([0x6a,0x77,0x6b]),_0x5dac2a,{[_0x3a4886([0x6e,0x61,0x6d,0x65])]:_0x3a4886([0x45,0x43,0x44,0x53,0x41]),[_0x3a4886([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3a4886([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3a4886([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x37936a[_0x3a4886([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3a4886([0x6e,0x61,0x6d,0x65])]:_0x3a4886([0x45,0x43,0x44,0x53,0x41]),[_0x3a4886([0x68,0x61,0x73,0x68])]:{[_0x3a4886([0x6e,0x61,0x6d,0x65])]:_0x3a4886([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4e98c1,_0x1e7ac4,_0x2fb7e4)||(_0x5b6ce7=!0x1);}}function _0x2e1487(_0xebb211){return _0xebb211[_0x3a4886([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3a4886([0x65,0x79]))?JSON[_0x3a4886([0x70,0x61,0x72,0x73,0x65])](_0x49a37a(_0xebb211)):null;}function _0x49a37a(_0x396fcd){return window[_0x3a4886([0x61,0x74,0x6f,0x62])](_0x396fcd[_0x3a4886([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3a4886([0x2b]))[_0x3a4886([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3a4886([0x2f])));}function _0x4d179d(_0x15f757){let _0x1c88cc=0x1505;function _0x415ae4(_0x22c29b){for(let _0x221417=0x0;_0x221417<_0x22c29b[_0x3a4886([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x221417++){const _0x180b85=_0x22c29b[_0x3a4886([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x221417);_0x1c88cc=(_0x1c88cc<<0x5)+_0x1c88cc+_0x180b85,_0x1c88cc&=_0x1c88cc;}}function _0x5b9294(_0x2d8f95){Array[_0x3a4886([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2d8f95)?_0x2d8f95[_0x3a4886([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5b9294):_0x2d8f95&&typeof _0x2d8f95==_0x3a4886([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3a4886([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2d8f95)[_0x3a4886([0x73,0x6f,0x72,0x74])]()[_0x3a4886([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5b731d,_0x5c2a12])=>{_0x415ae4(_0x5b731d),_0x5b9294(_0x5c2a12);}):_0x415ae4(window[_0x3a4886([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2d8f95));}return _0x5b9294(_0x15f757),_0x1c88cc>>>0x0;}function _0x5db00a(_0x28c42a){return _0x28c42a[_0x3a4886([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3a4886([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3a4886([0x30]));}function _0x4edc37(_0x2a8f54){return _0x2a8f54[_0x3a4886([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3a4886([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3a4886([0x6a,0x6f,0x69,0x6e])]('');}function _0x4be306(_0x3e2c65){return _0x49f25c[_0x3a4886([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3a4886([0x68,0x61,0x73])](_0x3e2c65);}function _0x1000af(_0xadfd07){return _0x49f25c[_0x3a4886([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3a4886([0x67,0x65,0x74])](_0xadfd07);}function _0x567605(){}function _0x3a4886(_0x4a89f8){return _0x4a89f8['map'](_0x4e51ab=>String['fromCharCode'](_0x4e51ab))['join']('');}_0x32e352(await _0x359d2a());}(this);}['createRevision'](_0x27ba0e){const _0x5752fb=this['editor']['plugins']['get']('Users');return new I({'id':_0x27ba0e['id'],'name':_0x27ba0e['name'],'creator':_0x27ba0e['creatorId']?_0x5752fb['getUser'](_0x27ba0e['creatorId']):null,'diffData':_0x27ba0e['diffData']||_0x27ba0e['data'],'authors':_0x27ba0e['authorsIds']['map'](_0x4ce598=>_0x5752fb['getUser'](_0x4ce598)),'createdAt':new Date(_0x27ba0e['createdAt']),'attributes':_0x27ba0e['attributes'],'fromVersion':_0x27ba0e['fromVersion'],'toVersion':_0x27ba0e['toVersion']});}['addRevision'](_0x3125e5,_0x15cc12=0x0){this['_revisions']['add'](_0x3125e5,_0x15cc12);}['getRevision'](_0xe2888b){return this['_revisions']['get'](_0xe2888b);}['getRevisions'](_0x596fdf={'toJSON':!0x1}){const _0x4b68f9=Array['from'](this['_revisions']);return _0x4b68f9['reverse'](),_0x596fdf['toJSON']?_0x4b68f9['map'](_0x31775d=>_0x31775d['toJSON']()):_0x4b68f9;}['getIndex'](_0x49e131){return this['_revisions']['getIndex'](_0x49e131);}['getEarlierVisibleRevision'](_0x3fad51){const [,_0x1fbcec]=this['getRevisionsIterator'](_0x3fad51,{'direction':'earlier'});return _0x1fbcec;}['getLaterVisibleRevision'](_0x53d178){const [,_0x162721]=this['getRevisionsIterator'](_0x53d178,{'direction':'later'});return _0x162721;}['getRevisionsInDiff'](_0x524282){const _0x10ec5d=[];for(const _0x43092e of this['getRevisionsIterator'](_0x524282['newRevisionId']))if(_0x10ec5d['push'](_0x43092e),_0x43092e['id']===_0x524282['oldRevisionId'])break;return _0x10ec5d;}*['getRevisionsIterator'](_0x5d6ecd,{direction:_0x24d152='earlier',filter:_0x4d893a=()=>!0x0}={}){const _0x1ab874='earlier'===_0x24d152?0x1:-0x1;let _0xc50f83=this['_revisions']['get'](_0x5d6ecd),_0x1a293e=this['getIndex'](_0xc50f83);for(yield _0xc50f83;_0xc50f83;){if(_0x1a293e+=_0x1ab874,_0xc50f83=this['getRevision'](_0x1a293e),!_0xc50f83)return;_0x4d893a(_0xc50f83)&&(yield _0xc50f83);}}}class $ extends _0x218037{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x362551,'c'],[_0x37a04b,'a'],[_0x34ae0c,'e'],[_0x113f4b,'r'],[_0x32fbcb,'u']]);['_typeCharToViewClass']=new Map([['c',_0x362551],['a',_0x37a04b],['e',_0x34ae0c],['r',_0x113f4b],['u',_0x32fbcb]]);async['loadRevisionData'](_0x3ba944,_0x82b9b4){if(_0x3ba944['diffData']||!_0x82b9b4)return;const _0x4899de=this['editor']['config']['get']('collaboration.channelId'),_0x5ddfb0=await _0x82b9b4['getRevision']({'channelId':_0x4899de,'revisionId':_0x3ba944['id']});_0x3ba944['diffData']=_0x5ddfb0['diffData'];}['getRevisionDocumentData'](_0x4f5a3c){const _0x2bae08={};for(const _0xbd964 in _0x4f5a3c['diffData']){if(_0x4f5a3c['diffData'][_0xbd964]['attachChange']&&!_0x4f5a3c['diffData'][_0xbd964]['attachChange']['isAttached'])continue;const _0x43e691=this['_removeRevisionMarkers'](JSON['parse'](_0x4f5a3c['diffData'][_0xbd964]['insertions'])),_0x1f0b33=this['editor']['editing']['view']['document'],_0x576a2c=new _0x1626fb(_0x1f0b33,_0x43e691['map'](_0x2d83e4=>this['_getViewFromDiffObj'](_0x2d83e4,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x2bae08[_0xbd964]=this['editor']['data']['processor']['toData'](_0x576a2c),this['editor']['data']['processor']['useFillerType']('default');}return _0x2bae08;}['getRevisionRootsAttributes'](_0x186596){const _0x3f0d11={};for(const _0x59a3fe in _0x186596['diffData'])_0x186596['diffData'][_0x59a3fe]['attachChange']&&!_0x186596['diffData'][_0x59a3fe]['attachChange']['isAttached']||(_0x3f0d11[_0x59a3fe]=_0x186596['diffData'][_0x59a3fe]['attributesAfter']||{});return _0x3f0d11;}['_getTypeCharForViewElement'](_0x3e7868){return this['_viewClassToTypeChar']['get'](_0x3e7868['constructor']);}['_getViewFromDiffObj'](_0x247185,_0x454513){const _0x553915=this['editor']['editing']['view']['document'];if('string'==typeof _0x247185)return new _0x54dead(_0x553915,_0x247185);{let _0x58a023,_0x2863e2;_0x2863e2='u'==_0x247185['type']||'r'==_0x247185['type']?[]:_0x247185['children']['map'](_0x13e708=>this['_getViewFromDiffObj'](_0x13e708,_0x454513));const _0x4ec506=this['_typeCharToViewClass']['get'](_0x247185['type'])||_0x362c50,_0x3a2978=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x58a023=new _0x4ec506(_0x553915,_0x247185['name'],_0x247185['attributes'],_0x2863e2),'u'==_0x247185['type']&&_0x247185['children'][0x0]){const _0x38df49=_0x247185['children'][0x0];if(_0x58a023['render']=function(_0x41c356){const _0x553814=_0x41c356['createElement']('div');return _0x553814['innerHTML']=_0x38df49,_0x553814['childNodes'][0x0];},_0x454513){const _0x124851=new _0x1626fb(_0x553915);_0x124851['_appendChild'](_0x58a023);const _0x75808=Array['from'](_0x3a2978['viewChildrenToDom'](_0x124851,{'bind':!0x1})),_0x475f9c=_0x3a2978['domDocument']['createElement']('div');_0x475f9c['append'](..._0x75808),_0x58a023=Array['from'](_0x3a2978['domChildrenToView'](_0x475f9c))[0x0];}}else{if('r'==_0x247185['type']&&_0x247185['children'][0x0]){const _0x32c2bf=_0x247185['children'][0x0];if(_0x58a023['render']=function(_0x589916){_0x589916['innerHTML']=_0x32c2bf;},_0x454513){const _0x4433e2=new _0x1626fb(_0x553915);_0x4433e2['_appendChild'](_0x58a023);const _0x10374c=Array['from'](_0x3a2978['viewChildrenToDom'](_0x4433e2,{'bind':!0x1})),_0x337fa4=_0x3a2978['domDocument']['createElement']('div');_0x337fa4['append'](..._0x10374c);const _0x37f2fc=Array['from'](_0x3a2978['domChildrenToView'](_0x337fa4));_0x37f2fc['length']>0x1?_0x58a023['_appendChild'](_0x37f2fc):_0x58a023=_0x37f2fc[0x0];}}}if(_0x247185['customProperties']){for(const [_0x19b786,_0x3e8947]of _0x247185['customProperties'])_0x58a023['_setCustomProperty'](_0x19b786,_0x3e8947);}const _0x187f52=void 0x0===_0x247185['fillerOffset']?null:_0x247185['fillerOffset'];return null!==_0x187f52&&(_0x58a023['getFillerOffset']=()=>_0x187f52),_0x58a023;}}['_makeModelFromViewString'](_0x3b91d5){const _0x3df46c=JSON['parse'](_0x3b91d5),_0x32e05d=this['editor']['editing']['view']['document'],_0x42abba=new _0x1626fb(_0x32e05d,_0x3df46c['map'](_0x191158=>this['_getViewFromDiffObj'](_0x191158,!0x0)));return this['editor']['data']['toModel'](_0x42abba);}['_removeRevisionMarkers'](_0x47e94b){return(_0x47e94b=_0x47e94b['filter'](_0x32a7c7=>!_0x32a7c7['name']||'revision-start'!==_0x32a7c7['name']&&'revision-end'!==_0x32a7c7['name']))['forEach'](_0x1b4321=>{'string'!=typeof _0x1b4321&&(_0x1b4321['children']=this['_removeRevisionMarkers'](_0x1b4321['children']),_0x1b4321['attributes']=_0x1b4321['attributes']['filter'](_0x29f40e=>!_0x29f40e[0x0]['startsWith']('data-revision-')));}),_0x47e94b;}}function m(_0x56483c,_0x374555,_0x5de5dd){const t=_0x56483c['t'];switch(_0x374555){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'},_0x5de5dd);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x5de5dd);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}class h extends _0x218037{['licenseKey'];['_licenseKeyCheckInterval'];['currentRevision']=null;['repository'];['adapter']=null;['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_utils'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x12124b,S,$,_0x25306b];}constructor(_0x4c525c){super(_0x4c525c),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new E(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x40ba74=_0x13449a();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x40ba74},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x280bd1=this['repository']['getRevision'](0x0),_0x3008b5=_0x280bd1&&null===_0x280bd1['creator']?_0x280bd1:null;if(this['_continueCurrentRevision']=!!_0x3008b5&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x383077=this['_source']['getCurrentRevisionId'](),_0x544a40=this['repository']['getRevision'](_0x383077);if(_0x544a40)this['_startingVersion']=_0x544a40['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x80ded=this['_source']['history']['_operations']['find'](_0x379e3f=>!_0x379e3f['_isInit']),_0x4b5fef=_0x80ded?_0x80ded['baseVersion']:this['_source']['history']['version'];_0x280bd1?(_0x280bd1['toVersion']<_0x4b5fef&&_0x280bd1['_update']({'toVersion':_0x4b5fef}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x3008b5['id'],this['_startingVersion']=_0x3008b5['fromVersion']):(this['_startingVersion']=_0x280bd1['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x4b5fef,this['_continueCurrentRevision']=!0x1);}}else _0x3008b5&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x3008b5['toVersion'],this['editor']['model']['document']['history']['version']),_0x3008b5['fromVersion']===_0x3008b5['toVersion']?(0x0!==_0x3008b5['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x3008b5['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x3008b5['id'],this['_startingVersion']=_0x3008b5['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',_0x5b2311=>!_0x5b2311),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x517887=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1923fa;for(const _0x2a039f in _0x517887){const _0xd02d76=_0x2a039f,_0x2f942b=_0x517887[_0xd02d76];if('revisionHistoryLicenseKeyValid'==_0x2f942b||'revisionHistoryLicenseKeyInvalid'==_0x2f942b||'revisionHistoryLicenseKeyExpired'==_0x2f942b||'revisionHistoryLicenseKeyDomainLimit'==_0x2f942b||'revisionHistoryLicenseKeyNotAllowed'==_0x2f942b||'revisionHistoryLicenseKeyEvaluationLimit'==_0x2f942b||'revisionHistoryLicenseKeyTrialLimit'==_0x2f942b||'revisionHistoryLicenseKeyUsageLimit'==_0x2f942b){delete _0x517887[_0xd02d76],_0x1923fa=_0x2f942b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x1923fa&&_0x517887['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x1923fa&&_0x517887['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x1923fa&&_0x517887['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x1923fa&&_0x517887['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x1923fa&&_0x517887['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x1923fa&&_0x517887['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x1923fa&&_0x517887['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x303453=this['repository']['getRevision'](0x0),_0x3a2e95=await this['getRevisionDocumentData'](_0x303453),_0x22b009=await this['getRevisionRootsAttributes'](_0x303453);this['_replaceEditorDataWithRevisionData'](_0x3a2e95,_0x22b009);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x3c4b89){this['_source']=_0x3c4b89;}async['update'](){const _0x142d83=await this['_source']['getLatestVersion']();if(_0x142d83>this['currentRevision']['toVersion']){await this['_loadState']();const _0x2ffa6d=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x142d83});_0x2ffa6d['authors']=_0x2ffa6d['authorsIds']['map'](_0x9d9bc5=>this['editor']['plugins']['get']('Users')['getUser'](_0x9d9bc5)),this['currentRevision']['_update'](_0x2ffa6d);}}async['saveRevision'](_0x1bc9d7={},_0x235230=null){const _0x2ae5e9=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x235230>this['currentRevision']['toVersion']&&(_0x235230=null),null===_0x235230&&(_0x235230=await this['_source']['getLatestVersion']());const _0x2c8a6a=this['_getFromVersion'](_0x235230),_0x34e524=this['buildRevisionData']({'from':_0x2c8a6a,'to':_0x235230});if(this['currentRevision']['toVersion']<_0x235230){const _0x2a6cf1=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x235230,'to':_0x235230});_0x2a6cf1['authors']=[],_0x2a6cf1['authorsIds']=[],_0x2a6cf1['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x2a6cf1,!0x0),delete _0x2a6cf1['authors'],_0x2ae5e9['push'](_0x2a6cf1);}_0x1bc9d7['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x1bc9d7['name']=_0x1bc9d7['name']||null,_0x1bc9d7['id']=_0x1bc9d7['id']||_0x13449a(),_0x1bc9d7={..._0x1bc9d7,..._0x34e524};const _0x2550e1=this['addRevisionData'](_0x1bc9d7);_0x2ae5e9['push'](_0x1bc9d7);const _0x2ecad2=this['repository']['getIndex'](_0x2550e1);if(0x0!==_0x2ecad2){const _0x20b348=this['repository']['getRevision'](_0x2ecad2-0x1);if(_0x20b348['fromVersion']!==_0x235230){const _0x20a1ed=this['_revisionDataBuilder']['getData'](_0x235230,_0x20b348['toVersion']),_0x4bb4ab={'id':_0x20b348['id'],'diffData':_0x20a1ed['diffData'],'authorsIds':_0x20a1ed['authorsIds'],'authors':_0x20a1ed['authorsIds']['map'](_0x2b50d3=>this['editor']['plugins']['get']('Users')['getUser'](_0x2b50d3)),'fromVersion':_0x235230};_0x20b348===this['currentRevision']&&(_0x4bb4ab['createdAt']=new Date(_0x1bc9d7['createdAt']['getTime']()+0xa)),_0x20b348['_update'](_0x4bb4ab,!0x0),delete _0x4bb4ab['authors'],_0x2ae5e9['push'](_0x4bb4ab);}}if(this['adapter']){for(const _0x3d12df of _0x2ae5e9)this['_bufferUpdate'](_0x3d12df['id'],_0x3d12df,!0x0);this['sendBufferedUpdates']();}return _0x2550e1;}['addRevisionData'](_0x1c9b48){const _0x55c73e=this['repository']['createRevision'](_0x1c9b48);return this['adapter']&&_0x55c73e['on']('_update',(_0xeaef25,_0x413d2a,_0x43fea1)=>{_0x43fea1||(this['_bufferUpdate'](_0x413d2a['id'],_0x413d2a,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x55c73e,this['_findInsertionIndex'](_0x55c73e)),_0x55c73e;}async['getRevisionDocumentData'](_0x521ce4){return await this['_utils']['loadRevisionData'](_0x521ce4,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x521ce4);}async['getRevisionRootsAttributes'](_0x55cabb){return await this['_utils']['loadRevisionData'](_0x55cabb,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x55cabb);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x80dde2=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x3032ff=0x0;_0x3032ff<_0x80dde2['length'];_0x3032ff++){const _0xd45de2=_0x80dde2[_0x3032ff];let _0x56b4c3=!0x1;for(const _0x98fcd8 of Object['keys'](_0xd45de2))void 0x0===_0xd45de2[_0x98fcd8]?delete _0xd45de2[_0x98fcd8]:'id'!==_0x98fcd8&&(_0x56b4c3=!0x0);_0x56b4c3||(_0x80dde2[_0x3032ff]=null);}if(_0x80dde2=_0x80dde2['filter'](_0x5ab706=>null!==_0x5ab706),!_0x80dde2['length'])return;for(let _0x2e0139=0x0;_0x2e0139<_0x80dde2['length'];_0x2e0139++){const _0xa7f9a6=_0x80dde2[_0x2e0139];void 0x0!==_0xa7f9a6['fromVersion']&&void 0x0===_0xa7f9a6['toVersion']&&(_0xa7f9a6['toVersion']=this['repository']['getRevision'](_0xa7f9a6['id'])['toVersion']),void 0x0!==_0xa7f9a6['toVersion']&&void 0x0===_0xa7f9a6['fromVersion']&&(_0xa7f9a6['fromVersion']=this['repository']['getRevision'](_0xa7f9a6['id'])['fromVersion']);}const _0x292f7b=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x80dde2,_0x292f7b)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x8d8ce0=>{if(_0x8d8ce0){for(const _0x441d7a of _0x8d8ce0)this['setRevisionData']({'id':_0x441d7a['id'],'createdAt':_0x441d7a['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x54e925=null,from:_0xb4c993=null,to:_0x10b823=null}){_0xb4c993=null!==_0xb4c993?_0xb4c993:_0x54e925['fromVersion'],_0x10b823=null!==_0x10b823?_0x10b823:_0x54e925['toVersion'];const _0x35660f=this['_revisionDataBuilder']['getData'](_0xb4c993,_0x10b823),_0x28eedb={'diffData':_0x35660f['diffData'],'authorsIds':_0x35660f['authorsIds'],'fromVersion':_0xb4c993,'toVersion':_0x10b823};if(!_0x54e925||_0x10b823!==_0x54e925['toVersion']){const _0x27d180=_0x10b823-0x1,_0x2897a3=this['_source']['history']['getOperation'](_0x27d180);_0x28eedb['createdAt']=_0x2897a3&&_0x2897a3['createdAt']||new Date();}if(this['_loadedStateData']&&_0xb4c993===this['_loadedStateData']['fromVersion']){for(const _0x24b242 of this['_loadedStateData']['authors'])_0x28eedb['authorsIds']['includes'](_0x24b242['id'])||_0x28eedb['authorsIds']['push'](_0x24b242['id']);}return _0x28eedb;}['_bufferUpdate'](_0x3d3612,_0x17f899,_0x38d158){if(this['_bufferedUpdates']['has'](_0x3d3612)){const _0x5a5be6=this['_bufferedUpdates']['get'](_0x3d3612);_0x17f899=_0x38d158?{..._0x5a5be6,..._0x17f899}:{..._0x17f899,..._0x5a5be6};}this['_bufferedUpdates']['set'](_0x3d3612,_0x17f899);}['setRevisionData'](_0x2de4a3){const _0x79f674=this['repository']['getRevision'](_0x2de4a3['id']);if(_0x2de4a3['createdAt']&&(_0x2de4a3['createdAt']=new Date(_0x2de4a3['createdAt'])),_0x2de4a3['authorsIds']){const _0x3a71fd=this['editor']['plugins']['get']('Users');_0x2de4a3['authors']=_0x2de4a3['authorsIds']['map'](_0x10fb30=>_0x3a71fd['getUser'](_0x10fb30));}_0x79f674['_update'](_0x2de4a3,!0x0);}['_createInitialRevision'](_0x3bb58d){const _0x3fad91=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x3fad91)this['_initialRevisionId']=_0x3fad91['id'];else{const _0x25e1c1=!this['editor']['model']['document']['roots']['find'](_0x43d66a=>this['editor']['model']['hasContent'](_0x43d66a)),_0x59dcc7=this['editor']['plugins']['get']('Users')['me']['id'],_0x246760=m(this['editor']['locale'],_0x25e1c1?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x3bb58d,'to':_0x3bb58d,'id':this['_initialRevisionId'],'name':_0x246760,'creatorId':_0x59dcc7});}}['_createCurrentRevision'](_0x4d1573){const _0x43520f=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x43520f),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x4d1573,'to':_0x4d1573,'id':_0x43520f,'name':'','creatorId':null}));}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_utils']['loadRevisionData'](this['currentRevision'],this['adapter']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}['_replaceEditorDataWithRevisionData'](_0x33b0d8,_0x5c3bc2){let _0x69f26f=this['editor']['config']['get']('initialData'),_0x384a0e=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x69f26f){_0x69f26f={};for(const _0x5c4374 of this['editor']['model']['document']['getRootNames']())_0x69f26f[_0x5c4374]='';}if('string'==typeof _0x69f26f&&(_0x69f26f={'main':_0x69f26f}),void 0x0===_0x384a0e){_0x384a0e={};for(const _0x1e4a9a of this['editor']['model']['document']['getRootNames']())_0x384a0e[_0x1e4a9a]={};}let _0x16936f=!0x1;const _0x877ebb=Object['keys'](_0x69f26f),_0x11a81f=Object['keys'](_0x33b0d8);for(const _0x4ebc02 of _0x877ebb){if(_0x69f26f[_0x4ebc02]!==_0x33b0d8[_0x4ebc02]&&''!==_0x69f26f[_0x4ebc02]['trim']()){_0x16936f=!0x0;break;}if(!_0x4cdcc7(_0x384a0e[_0x4ebc02],_0x5c3bc2[_0x4ebc02])&&Object['keys'](_0x384a0e[_0x4ebc02])['length']>0x0){_0x16936f=!0x0;break;}}_0x16936f||(_0x16936f=_0x11a81f['some'](_0x51438b=>!this['editor']['model']['document']['getRoot'](_0x51438b))),_0x16936f&&_0x43e483('editor-initial-data-replaced-with-revision-data',{'editorData':_0x69f26f,'editorRootsAttributes':_0x384a0e,'revisionData':_0x33b0d8,'revisionRootsAttributes':_0x5c3bc2}),this['editor']['config']['set']('initialData',_0x33b0d8),this['editor']['config']['set']('rootsAttributes',_0x5c3bc2);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x28381e=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x28381e['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x582478){const _0x212ec8=this['repository']['getRevisions']();_0x212ec8['reverse']();let _0x4de2d3=0x0;for(;_0x4de2d3<_0x212ec8['length'];){const _0x45b0db=_0x212ec8[_0x4de2d3];if(_0x45b0db===this['currentRevision']){_0x4de2d3++;continue;}if(_0x45b0db['id']===this['_initialRevisionId'])break;const _0x9d3b5d=_0x582478['toVersion']-_0x45b0db['toVersion']||_0x582478['fromVersion']-_0x45b0db['fromVersion'];if(_0x9d3b5d>0x0)break;if(_0x9d3b5d<0x0)_0x4de2d3++;else{if(!_0x582478['creator']&&_0x45b0db['creator'])break;if(_0x45b0db['creator']||!_0x582478['creator']){if(_0x582478['createdAt']>_0x45b0db['createdAt'])break;_0x4de2d3++;}else _0x4de2d3++;}}return _0x4de2d3;}['_getFromVersion'](_0x522666){const _0x55ab9c=this['repository']['getRevisions']();_0x55ab9c['reverse'](),_0x55ab9c['shift']();const _0x1336b3=_0x55ab9c['find'](_0x4b12b6=>_0x4b12b6['toVersion']<=_0x522666)['toVersion'];return _0x1336b3<this['_startingVersion']?this['_startingVersion']:_0x1336b3;}['_makeRevision']({name:_0x1f8990,from:_0x4ef979,to:_0x2bf6a8,creatorId:_0x416e85,id:_0x5e851d}){const _0x51d4e1=this['buildRevisionData']({'from':_0x4ef979,'to':_0x2bf6a8});_0x51d4e1['name']=_0x1f8990,_0x51d4e1['creatorId']=_0x416e85,_0x51d4e1['id']=_0x5e851d;const _0x3b2784=this['addRevisionData'](_0x51d4e1);return this['adapter']&&this['_bufferUpdate'](_0x51d4e1['id'],_0x51d4e1,!0x0),_0x3b2784;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class E{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x55b655){this['editor']=_0x55b655,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'](_0xc00141){this['source']=_0xc00141;const _0xda2a96=new Map(),_0xc0c3d2=new Map(),_0x40d9e3=this['editor']['model']['document']['roots']['map'](_0x2b7c0f=>_0x2b7c0f['rootName']);for(const _0x5f22a5 of _0x40d9e3){const _0x49fd4c=this['editor']['model']['document']['getRoot'](_0x5f22a5),_0x5c473f=x(_0x49fd4c);_0xda2a96['set'](_0x5f22a5,_0x5c473f),_0xc0c3d2['set'](_0x5f22a5,Object['fromEntries'](_0x49fd4c['getAttributes']()));}const _0x1ff314=Array['from'](this['editor']['model']['markers'])['map'](_0x5c9bb0=>[_0x5c9bb0['name'],_0x5c9bb0['getRange']()]),_0x4f5d1c=this['source']['version'];this['_saveMetaData'](_0x4f5d1c,_0xda2a96,_0x1ff314,_0xc0c3d2),this['_startingRevisionId']=this['_revisionId'];const _0x58b7ba=new Map(),_0x48cac0=new Map();for(const _0x2ad638 of _0x40d9e3){const _0x49795d=N(_0x2ad638);_0x58b7ba['set'](_0x2ad638,_0x49795d),_0x48cac0['set'](_0x2ad638,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x58b7ba,[],_0x48cac0);}['getData'](_0x54a6a3,_0x1df40a){if(this['_lastFrom']===_0x54a6a3&&this['_lastTo']<=_0x1df40a)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x1df40a,!0x0);else{if(!this['_savedMetaData']['has'](_0x54a6a3)){const _0x383556=this['_getPreviousFrom'](_0x54a6a3);this['_calculateMetaData'](_0x383556,_0x54a6a3,!0x1);}this['_calculateMetaData'](_0x54a6a3,_0x1df40a,!0x0);}return this['_lastFrom']=_0x54a6a3,this['_lastTo']=_0x1df40a,this['_getState']();}['loadState'](_0x8ee66d){if(!this['_savedMetaData']['has'](_0x8ee66d['fromVersion'])){const _0x96542f=this['_getPreviousFrom'](_0x8ee66d['fromVersion']);this['_calculateMetaData'](_0x96542f,_0x8ee66d['fromVersion'],!0x1);}this['_calculateMetaData'](_0x8ee66d['fromVersion'],_0x8ee66d['toVersion'],!0x1);const _0x1e0203=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x8ee66d['fromVersion'],this['_lastTo']=_0x8ee66d['toVersion'];for(const _0xdac12e in _0x8ee66d['diffData']){const _0x8e2b69=_0x8ee66d['diffData'][_0xdac12e]['attachChange'],_0x1b85b6=_0x580985(_0x8ee66d['diffData'][_0xdac12e]['attributesBefore'])||{},_0xb76cef=_0x1e0203['_makeModelFromViewString'](_0x8ee66d['diffData'][_0xdac12e]['deletions']);_0xb76cef['rootName']=_0xdac12e,_0xb76cef['_isAttached']=!_0x8e2b69||!_0x8e2b69['isAttached'],_0xb76cef['isAttached']=()=>_0xb76cef['_isAttached'],this['_baseRoots']['set'](_0xdac12e,_0xb76cef),this['_baseRootsAttributes']['set'](_0xdac12e,_0x1b85b6),_0x8e2b69&&this['_touchedRoots']['set'](_0xdac12e,_0x8e2b69);const _0x16131f=this['_makeIdsRoot'](_0xb76cef);this['_baseIdsRoots']['set'](_0xdac12e,_0x16131f);for(const [_0x3ad673,_0x413c40]of _0xb76cef['markers']){if(!_0x3ad673['startsWith']('revision:'))continue;const _0x290c91=_0x3ad673['split'](':')[0x2];for(const _0x4abcb3 of _0x413c40['getWalker']({'singleCharacters':!0x0})){const _0x5c9bbe=this['_getVidAttributeName'](_0x4abcb3),_0x410b30='elementEnd'==_0x4abcb3['type']?_0x4abcb3['previousPosition']['path']['slice'](0x0,-0x1):_0x4abcb3['previousPosition']['path'],_0x3b7e8e=_0x16131f['getNodeByPath'](_0x410b30)['getAttribute'](_0x5c9bbe);this['_touched']['set'](_0x3b7e8e,{'userId':_0x290c91});}_0xb76cef['markers']['delete'](_0x3ad673);}}this['_startingRevisionId']=this['_revisionId'];const _0x3ec7f1=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0xf6f167=>!this['_touched']['has'](_0xf6f167));let _0xc2b060=0x0;const _0x35c6cb=new Map();for(const _0x9d6b8e in _0x8ee66d['diffData']){const _0x29c018=_0x8ee66d['diffData'][_0x9d6b8e]['attachChange'],_0x1d3f12=_0x580985(_0x8ee66d['diffData'][_0x9d6b8e]['attributesAfter'])||{},_0x561aa8=_0x1e0203['_makeModelFromViewString'](_0x8ee66d['diffData'][_0x9d6b8e]['insertions']);_0x561aa8['rootName']=_0x9d6b8e,_0x561aa8['_isAttached']=!_0x29c018||_0x29c018['isAttached'],_0x561aa8['isAttached']=()=>_0x561aa8['_isAttached'],this['_diffRoots']['set'](_0x9d6b8e,_0x561aa8),this['_diffRootsAttributes']['set'](_0x9d6b8e,_0x1d3f12);const _0x362411=this['_makeIdsRoot'](_0x561aa8,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x9d6b8e,_0x362411),_0x35c6cb['set'](_0x9d6b8e,_0x561aa8['isAttached']()?_0x1d3f12:{});for(const [_0x3c3d97,_0x3e6414]of _0x561aa8['markers']){if(!_0x3c3d97['startsWith']('revision:'))continue;const _0x53d0d0=_0x3c3d97['split'](':')[0x2];for(const _0x2158d6 of _0x3e6414['getWalker']({'singleCharacters':!0x0})){const _0x63c145=this['_getVidAttributeName'](_0x2158d6),_0x46f964=this['_revisionId']++,_0x4c9882='elementEnd'==_0x2158d6['type']?_0x2158d6['previousPosition']['path']['slice'](0x0,-0x1):_0x2158d6['previousPosition']['path'];_0x362411['getNodeByPath'](_0x4c9882)['_setAttribute'](_0x63c145,_0x46f964),this['_touched']['set'](_0x46f964,{'userId':_0x53d0d0});}_0x561aa8['markers']['delete'](_0x3c3d97);}for(const _0x4c8c49 of this['editor']['model']['createRangeIn'](_0x561aa8)['getWalker']({'singleCharacters':!0x0})){const _0xdda3b8=this['_getVidAttributeName'](_0x4c8c49),_0x55c092='elementEnd'==_0x4c8c49['type']?_0x4c8c49['previousPosition']['path']['slice'](0x0,-0x1):_0x4c8c49['previousPosition']['path'],_0x19781a=_0x362411['getNodeByPath'](_0x55c092);_0x19781a['getAttribute'](_0xdda3b8)>0x0||_0x19781a['_setAttribute'](_0xdda3b8,_0x3ec7f1[_0xc2b060++]);}for(const [_0xce6644,_0x1cf3c0]of _0x561aa8['markers'])_0xce6644['startsWith']('revision:')||this['_markers']['set'](_0xce6644,_0x1cf3c0);}const {roots:_0x237994}=this['_savedMetaData']['get'](_0x8ee66d['fromVersion']),{roots:_0x1b6669}=this['_savedMetaData']['get'](_0x8ee66d['toVersion']),_0x11ea42=x(_0x237994['get']('$graveyard'));this['_baseRoots']['set']('$graveyard',_0x11ea42),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x11ea42,Number['NEGATIVE_INFINITY']));const _0x8b738c=x(_0x1b6669['get']('$graveyard'));this['_diffRoots']['set']('$graveyard',_0x8b738c),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x8b738c));const _0x3e1b80=Array['from'](this['_diffRoots'])['map'](([_0x462101,_0x725e0e])=>[_0x462101,x(_0x725e0e)]);this['_saveMetaData'](this['_lastTo'],_0x3e1b80,this['_markers'],_0x35c6cb);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x23e3ac,_0x183d57,_0x1cf119,_0x50ffb9){const _0x26ec7c=new Map(_0x183d57),_0x5273e5=new Map(_0x580985(_0x50ffb9)),_0x3f7607=new Map();for(const [_0x4cb5cc,_0x1ee24e]of _0x1cf119)_0x3f7607['set'](_0x4cb5cc,{'start':_0x1ee24e['start']['clone'](),'end':_0x1ee24e['end']['clone'](),'rootName':_0x1ee24e['root']['rootName']});this['_savedMetaData']['set'](_0x23e3ac,{'roots':_0x26ec7c,'markers':_0x3f7607,'rootsAttributes':_0x5273e5});}['_removeMetaData'](_0x46ce6e){this['_savedMetaData']['delete'](_0x46ce6e);}['_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'](_0x4231da,_0x30a91=null){let _0x3637fe=null;_0x4231da['is']('documentFragment')||(_0x3637fe=new _0x4c10e7(_0x4231da['name'],{'vid_start':null===_0x30a91?this['_revisionId']++:_0x30a91++}));const _0x547133=[];for(const _0xa56872 of _0x4231da['getChildren']())if(_0xa56872['is']('element')){_0x547133['push'](this['_makeIdsRoot'](_0xa56872,_0x30a91));const _0x4bf526=_0x547133[_0x547133['length']-0x1];null!==_0x30a91&&(_0x30a91=_0x4bf526['is']('element','$text')?_0x4bf526['getAttribute']('vid')+0x1:_0x4bf526['getAttribute']('vid_end')+0x1);}else{for(let _0xba26e5=0x0;_0xba26e5<_0xa56872['offsetSize'];_0xba26e5++)_0x547133['push'](new _0x4c10e7('$text',{'vid':null===_0x30a91?this['_revisionId']++:_0x30a91++}));}if(_0x4231da['is']('documentFragment')){const _0x236ff5=N(_0x4231da['rootName']);return _0x236ff5['_insertChild'](0x0,_0x547133),_0x236ff5;}return _0x3637fe['_setAttribute']('vid_end',null===_0x30a91?this['_revisionId']++:_0x30a91++),_0x3637fe['_insertChild'](0x0,_0x547133),_0x3637fe;}['_calculateMetaData'](_0x159c79,_0x4a29ff,_0x48b81f){this['_reset']();const {roots:_0x19d586,markers:_0x2681c8,rootsAttributes:_0x548197}=this['_savedMetaData']['get'](_0x159c79);this['_baseRoots']=new Map(_0x19d586),this['_baseRootsAttributes']=new Map(_0x580985(_0x548197));for(const [_0x3eba8c,_0x2c9cc3]of this['_baseRoots'])if('$graveyard'!==_0x3eba8c&&(this['_diffRoots']['set'](_0x3eba8c,x(_0x2c9cc3)),this['_diffRootsAttributes']=new Map(_0x580985(_0x548197)),_0x48b81f)){const _0x22b108=this['_revisionId'];this['_idsRoots']['set'](_0x3eba8c,this['_makeIdsRoot'](_0x2c9cc3)),this['_baseIdsRoots']['set'](_0x3eba8c,this['_makeIdsRoot'](_0x2c9cc3,_0x22b108));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x48b81f&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x3d29e3,_0x2eda27]of _0x2681c8){const _0xc3b9c5=this['_baseRoots']['get'](_0x2eda27['rootName']),_0xe8d8a1=this['_diffRoots']['get'](_0x2eda27['rootName']),_0x3a44ee=new _0x5d6315(this['_fixPosition'](_0x2eda27['start'],_0xc3b9c5),this['_fixPosition'](_0x2eda27['end'],_0xc3b9c5)),_0x4d7a0f=this['_fixRange'](_0x3a44ee,_0xe8d8a1);_0xc3b9c5['markers']['set'](_0x3d29e3,_0x3a44ee),this['_markers']['set'](_0x3d29e3,_0x4d7a0f);}this['_applyOperations'](_0x159c79,_0x4a29ff,_0x48b81f);}['_applyOperations'](_0xeecaec,_0x49af22,_0x51eef9){for(const _0x505d06 of this['source']['getOperations'](_0xeecaec,_0x49af22))this['_handleOperation'](_0x505d06,_0x51eef9);for(const _0x4b19ab of this['_diffRoots']['values']())_0x4b19ab['markers']['clear']();for(const [_0x330e2f,_0x71a766]of this['_markers']){this['_diffRoots']['get'](_0x71a766['root']['rootName'])['markers']['set'](_0x330e2f,_0x71a766['clone']());}const _0x30690d=new Map(),_0x16ccd0=new Map();for(const [_0x274086,_0x114efc]of this['_diffRoots'])_0x30690d['set'](_0x274086,x(_0x114efc)),_0x16ccd0['set'](_0x274086,this['_diffRootsAttributes']['get'](_0x274086));this['_saveMetaData'](_0x49af22,_0x30690d,this['_markers'],_0x16ccd0);}['_getPreviousFrom'](_0x20c63b){const _0x3c94c8=Array['from'](this['_savedMetaData']['keys']());_0x3c94c8['sort']((_0x7f132c,_0x1a30b8)=>_0x7f132c-_0x1a30b8),_0x3c94c8['reverse']();for(const _0xa7e416 of _0x3c94c8)if(_0xa7e416<_0x20c63b)return _0xa7e416;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x3c2792,_0x1eb543){const _0x51a71c=Array['from'](_0x1eb543['markers'])['map'](([_0x4b538f,_0x2a29ab])=>[_0x4b538f,this['_fixRange'](_0x2a29ab,_0x3c2792)]);_0x3c2792['markers']=new Map(_0x51a71c);}['_transformMarkers'](_0x2aee4a){for(const _0x43de79 of this['_markers']['values']()){const _0x13a2fe=_0x43de79['getTransformedByOperation'](_0x2aee4a),_0x1a7742=_0x5d6315['_createFromRanges'](_0x13a2fe);_0x43de79['start']=_0x1a7742['start'],_0x43de79['end']=_0x1a7742['end'];}}['_handleOperation'](_0x34ad1c,_0x2bac8a){if('addRoot'!=_0x34ad1c['type']&&'detachRoot'!=_0x34ad1c['type']){if('insert'==_0x34ad1c['type']){const _0x2e11b3=_0x34ad1c['position']['root']['rootName'];this['_diffRoots']['has'](_0x2e11b3)||(this['_diffRoots']['set'](_0x2e11b3,N(_0x2e11b3,!0x0)),this['_diffRootsAttributes']['set'](_0x2e11b3,{}),_0x2bac8a&&this['_idsRoots']['set'](_0x2e11b3,N(_0x2e11b3,!0x0)));}else{if('addRootAttribute'==_0x34ad1c['type']||'removeRootAttribute'==_0x34ad1c['type']||'changeRootAttribute'==_0x34ad1c['type'])return void this['_handleRootAttributeOperation'](_0x34ad1c);'marker'==_0x34ad1c['type']&&this['_handleMarkerOperation'](_0x34ad1c);}if('marker'!==_0x34ad1c['type']){const _0xe46615=this['_cloneOperation'](_0x34ad1c,this['_diffRoots']);_0xe46615['_execute'](),this['_transformMarkers'](_0xe46615);}if(_0x2bac8a)switch(_0x34ad1c['type']){case'insert':this['_handleInsertOperation'](_0x34ad1c);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x34ad1c);break;case'merge':this['_handleMergeOperation'](_0x34ad1c);break;case'split':this['_handleSplitOperation'](_0x34ad1c);}}else this['_handleRootOperation'](_0x34ad1c,_0x2bac8a);}['_cloneOperation'](_0x28f26d,_0x9dbb42){const _0x311df4=_0x28f26d['clone']();return _0x311df4['_authorId']=_0x28f26d['_authorId'],this['_fixOperation'](_0x311df4,_0x9dbb42),_0x311df4;}['_getBaseVids'](_0x5d2da5){return _0x5d2da5['map'](_0x14e63f=>{const _0x3816c3=this['_getVidAttributeName'](_0x14e63f);return Number(_0x14e63f['item']['getAttribute'](_0x3816c3));});}['_generateTape'](_0x24033f,_0x33905f){if(_0x24033f['is']('element','$text'))_0x33905f['push']({'item':_0x24033f,'type':'text'});else{_0x24033f['is']('element')&&_0x33905f['push']({'item':_0x24033f,'type':'elementStart'});for(const _0x56790d of _0x24033f['getChildren']())this['_generateTape'](_0x56790d,_0x33905f);_0x24033f['is']('element')&&_0x33905f['push']({'item':_0x24033f,'type':'elementEnd'});}return _0x33905f;}['_getState'](){const _0x345be7=new Map(this['_touched']),_0x2583f8=new Map(_0x345be7),_0x2c1c38=new Map(),_0x3c51a1={'insertions':{},'deletions':{}},_0x3f7633={'insertions':{},'deletions':{}},_0x17e644=new Map(),_0x4d3917=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x4d3917['delete']('$graveyard');for(const _0x1529cd of _0x4d3917){const _0x4307d3=this['_diffRoots']['get'](_0x1529cd)||N(_0x1529cd,!0x1),_0x17cccc=this['_baseRoots']['get'](_0x1529cd)||N(_0x1529cd,!0x1);_0x4307d3['isAttached']()||_0x17cccc['isAttached']()?(_0x3c51a1['insertions'][_0x1529cd]=x(_0x4307d3),_0x3c51a1['deletions'][_0x1529cd]=x(_0x17cccc),this['_copyMarkers'](_0x3c51a1['deletions'][_0x1529cd],_0x17cccc),this['_copyMarkers'](_0x3c51a1['insertions'][_0x1529cd],_0x4307d3),_0x3f7633['insertions'][_0x1529cd]=this['_generateTape'](this['_idsRoots']['get'](_0x1529cd),[]),_0x3f7633['deletions'][_0x1529cd]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x1529cd)||N(_0x1529cd,!0x1),[])):_0x4d3917['delete'](_0x1529cd);}for(const _0x16afab of _0x4d3917){const _0x20b1f7=_0x3f7633['insertions'][_0x16afab];for(const _0x449bec of _0x20b1f7){const _0x394a87=this['_getVidAttributeName'](_0x449bec),_0x395fae=_0x449bec['item']['getAttribute'](_0x394a87);_0x2583f8['delete'](_0x395fae),_0x395fae>=this['_startingRevisionId']&&_0x2c1c38['set'](_0x395fae,_0x345be7['get'](_0x395fae));}}for(const _0x24e205 of _0x4d3917){const _0xe48433=_0x3f7633['insertions'][_0x24e205],_0x4dc353=this['_getBaseVids'](_0x3f7633['deletions'][_0x24e205]);let _0x3f0d3e=0x0;for(const _0x5bad7a of _0xe48433){const _0x1b1540=this['_getVidAttributeName'](_0x5bad7a),_0x97faa9=_0x5bad7a['item']['getAttribute'](_0x1b1540);if(!_0x2c1c38['has'](_0x97faa9)&&!_0x17e644['has'](_0x97faa9)){if(_0x2583f8['has'](_0x97faa9))_0x3f0d3e++;else{if(_0x97faa9!=_0x4dc353[_0x3f0d3e]){const _0x244c7e=_0x345be7['get'](_0x97faa9)||_0x345be7['get'](_0x4dc353[_0x3f0d3e]);for(;_0x97faa9!=_0x4dc353[_0x3f0d3e];)_0x2583f8['has'](_0x4dc353[_0x3f0d3e])||(_0x17e644['set'](_0x4dc353[_0x3f0d3e],_0x244c7e),_0x345be7['set'](_0x4dc353[_0x3f0d3e],_0x244c7e)),_0x3f0d3e++;}_0x3f0d3e++;}}}}for(const _0x50157a of _0x4d3917){const _0x441999=_0x3f7633['insertions'][_0x50157a];for(const _0x5ae656 of _0x441999){const _0x16835d=this['_getVidAttributeName'](_0x5ae656),_0x647365=_0x5ae656['item']['getAttribute'](_0x16835d);if(_0x17e644['has'](_0x647365)){const _0x115ecb=_0x17e644['get'](_0x647365);_0x2583f8['has'](_0x647365)||_0x2583f8['set'](_0x647365,{..._0x115ecb}),_0x2c1c38['set'](_0x647365,{..._0x115ecb});}}}for(const _0x4bc13e of _0x2583f8['keys']())_0x4bc13e>=this['_startingRevisionId']&&_0x2583f8['delete'](_0x4bc13e);const _0x375479=new Map();for(const _0x12f193 of _0x4d3917){let _0x2aa3e7=_0x3f7633['insertions'][_0x12f193];for(const _0x141515 of _0x2aa3e7)if(_0x141515['item']['is']('element','tableCell')){const _0x2849d2=this['_getVidAttributeName'](_0x141515),_0x33476e=_0x141515['item']['getAttribute'](_0x2849d2);if(_0x2c1c38['has'](_0x33476e)){const _0x2c7c40=_0x141515['item']['parent']['parent']['getAttribute']('vid_start'),_0x1d42d4=_0x375479['get'](_0x2c7c40)||new Set();_0x1d42d4['add'](_0x2c1c38['get'](_0x33476e)['userId']),_0x375479['set'](_0x2c7c40,_0x1d42d4);}}_0x2aa3e7=_0x3f7633['deletions'][_0x12f193];for(const _0x20c8a2 of _0x2aa3e7)if(_0x20c8a2['item']['is']('element','tableCell')){const _0xe758a8=this['_getVidAttributeName'](_0x20c8a2),_0x7618d9=_0x20c8a2['item']['getAttribute'](_0xe758a8);if(_0x2583f8['has'](_0x7618d9)){const _0x51dc32=_0x20c8a2['item']['parent']['parent']['getAttribute']('vid_start'),_0x5a9bc0=_0x375479['get'](_0x51dc32)||new Set();_0x5a9bc0['add'](_0x2583f8['get'](_0x7618d9)['userId']),_0x375479['set'](_0x51dc32,_0x5a9bc0);}}for(const _0x30b5e4 of _0x375479['keys']())(_0x2c1c38['has'](_0x30b5e4)||_0x2583f8['has'](_0x30b5e4))&&_0x375479['delete'](_0x30b5e4);}for(const _0x4acac6 of _0x4d3917){const _0x551842=_0x3f7633['insertions'][_0x4acac6];let _0x1a8307=null,_0x14e6dd=null;for(const _0x225602 of _0x551842){const _0x52c3d2=this['_getVidAttributeName'](_0x225602),_0x3ec374=_0x225602['item']['getAttribute'](_0x52c3d2),_0x52be55=_0x375479['get'](_0x3ec374);_0x52be55&&'elementStart'==_0x225602['type']&&(_0x1a8307=Array['from'](_0x52be55)[0x0],_0x14e6dd=_0x225602['item']['getAttribute']('vid_end')),_0x1a8307&&(_0x2583f8['set'](_0x3ec374,{'userId':_0x1a8307}),_0x2c1c38['set'](_0x3ec374,{'userId':_0x1a8307})),_0x3ec374==_0x14e6dd&&(_0x1a8307=null,_0x14e6dd=null);}}const _0x37bf2e={},_0x5b854b=new Set();for(const _0x295626 of _0x4d3917){const _0x31d82a=_0x3c51a1['deletions'][_0x295626],_0x2c3b49=_0x3c51a1['insertions'][_0x295626];for(const {userId:_0x4a6045}of this['_touchedMarkers']['values']())null!==_0x4a6045&&_0x5b854b['add'](_0x4a6045);for(const {userId:_0x240308}of this['_touchedRoots']['values']())null!==_0x240308&&_0x5b854b['add'](_0x240308);this['_markChanges'](_0x2c3b49,_0x3f7633['insertions'][_0x295626],_0x2c1c38,'insertion',_0x5b854b),this['_markChanges'](_0x31d82a,_0x3f7633['deletions'][_0x295626],_0x2583f8,'deletion',_0x5b854b),_0x37bf2e[_0x295626]={'insertions':this['_prepareViewToSave'](_0x2c3b49),'deletions':this['_prepareViewToSave'](_0x31d82a),'attachChange':this['_touchedRoots']['get'](_0x295626)||null,'attributesBefore':_0x580985(this['_baseRootsAttributes']['get'](_0x295626))||{},'attributesAfter':_0x580985(this['_diffRootsAttributes']['get'](_0x295626))};}return{'diffData':_0x37bf2e,'authorsIds':Array['from'](_0x5b854b)};}['_processRootBeforeSave'](_0x5df88c){for(const [,_0x61b4fb]of _0x5df88c['markers']){const _0x329f7f=_0x61b4fb['start']['getAncestors']()['filter'](_0x44a9ae=>'tableCell'==_0x44a9ae['name']);for(const _0x94492d of _0x329f7f)0x1==_0x94492d['childCount']&&_0x94492d['getChild'](0x0)['is']('element','paragraph')&&_0x94492d['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x393d0c){this['_processRootBeforeSave'](_0x393d0c);const _0x4fd332=this['editor']['data']['toView'](_0x393d0c,{}),_0x51d3b8=Array['from'](_0x4fd332['getChildren']())['map'](_0x11f4e8=>this['_getViewJson'](_0x11f4e8));return JSON['stringify'](_0x51d3b8);}['_getViewJson'](_0x3a574d){if(_0x3a574d['is']('$text'))return _0x3a574d['data'];{const _0xf5ccb4=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x14cce8=_0x3a574d,_0x243ac7=this['editor']['data']['htmlProcessor']['domConverter'],_0xe70c5d={'type':_0xf5ccb4['_getTypeCharForViewElement'](_0x14cce8),'name':_0x14cce8['name'],'attributes':Array['from'](_0x14cce8['getAttributes']()),'children':Array['from'](_0x14cce8['getChildren']())['map'](_0x34a3cf=>this['_getViewJson'](_0x34a3cf))};if(_0x3a574d['is']('uiElement')&&'$comment'!=_0x3a574d['name']){const _0x4a33ce=_0x3a574d['render'](_0x243ac7['domDocument'],_0x243ac7);_0xe70c5d['children']['push'](_0x4a33ce['outerHTML']);}else{if(_0x3a574d['is']('rawElement')){const _0x82405b=_0x243ac7['domDocument']['createElement'](_0x14cce8['name']);_0x3a574d['render'](_0x82405b,_0x243ac7),_0xe70c5d['children']['push'](_0x82405b['innerHTML']);}}const _0x1393d0=Array['from'](_0x14cce8['getCustomProperties']());_0x1393d0['length']>0x0&&(_0xe70c5d['customProperties']=_0x1393d0);const _0x8de415=_0x14cce8['getFillerOffset']();return null!==_0x8de415&&(_0xe70c5d['fillerOffset']=_0x8de415),_0xe70c5d;}}['_markChanges'](_0x3571b7,_0x2e4d2d,_0x45d55f,_0xb99c73,_0x2e7a46){let _0x583993=null,_0x51f9f0=null,_0x4a878e=0x0;const _0x11af7f=this['editor']['model'];for(let _0x476013=0x0;_0x476013<_0x2e4d2d['length'];_0x476013++){const _0x59cef1=this['_getVidAttributeName'](_0x2e4d2d[_0x476013]),_0x4e5154=_0x2e4d2d[_0x476013]['item']['getAttribute'](_0x59cef1),_0x18bd75=_0x45d55f['get'](_0x4e5154),_0x40ea93=_0x476013==_0x2e4d2d['length']-0x1;(!_0x583993&&_0x18bd75&&(_0x583993=_0x18bd75,_0x51f9f0=_0x2e4d2d[_0x476013]),_0x583993&&(!_0x18bd75||_0x18bd75['userId']!=_0x583993['userId']))&&(_0x17ff6c(_0x18bd75,P(_0x51f9f0,_0x3571b7,_0x11af7f),P(_0x2e4d2d[_0x476013],_0x3571b7,_0x11af7f)),_0x583993=_0x18bd75||null,_0x51f9f0=_0x18bd75?_0x2e4d2d[_0x476013]:null),_0x583993&&_0x40ea93&&_0x17ff6c(_0x18bd75,P(_0x51f9f0,_0x3571b7,_0x11af7f),V(_0x2e4d2d[_0x476013],_0x3571b7,_0x11af7f));}function _0x17ff6c(_0x356f9d,_0x42b8d4,_0x41a399){const _0xfe5de5=_0x583993['userId'],_0x578dee='revision:'+_0xb99c73+':'+_0xfe5de5+':'+_0x4a878e++,_0x4d951f=_0x11af7f['createRange'](_0x42b8d4,_0x41a399);_0x3571b7['markers']['set'](_0x578dee,_0x4d951f),null!==_0xfe5de5&&_0x2e7a46['add'](_0xfe5de5);}}['_getVidAttributeName'](_0x59c84b){switch(_0x59c84b['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x4c00f7,_0x39232d){_0x4c00f7['baseVersion']=null;for(const _0x231cb9 in _0x4c00f7){const _0x369a41=_0x4c00f7[_0x231cb9];if(_0x369a41 instanceof _0x56ae4c){const _0x3a9861=_0x39232d['get'](_0x369a41['root']['rootName']);_0x4c00f7[_0x231cb9]=this['_fixPosition'](_0x369a41,_0x3a9861);}if(_0x369a41 instanceof _0x5d6315){const _0x44106d=_0x39232d['get'](_0x369a41['root']['rootName']);_0x4c00f7[_0x231cb9]=this['_fixRange'](_0x369a41,_0x44106d);}'root'===_0x231cb9&&(_0x4c00f7['root']=_0x39232d['get'](_0x4c00f7['root']['rootName']));}}['_fixRange'](_0x5253d4,_0x492813){return this['editor']['model']['createRange'](this['_fixPosition'](_0x5253d4['start'],_0x492813),this['_fixPosition'](_0x5253d4['end'],_0x492813));}['_fixPosition'](_0x5dbec2,_0x154155){return this['editor']['model']['createPositionFromPath'](_0x154155,_0x5dbec2['path'],_0x5dbec2['stickiness']);}['_handleInsertOperation'](_0x334cce){const _0x511720=this['_idsRoots']['get'](_0x334cce['position']['root']['rootName']),_0x28a489=this['_fixPosition'](_0x334cce['position'],_0x511720),_0xa8ba63=null===_0x334cce['_authorId']?null:_0x334cce['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3ef444=_0x28a489['parent'],_0x5ce73e=this['_revisionId'],_0x1be246=[];for(const _0x1c4dde of _0x334cce['nodes'])if(_0x1c4dde['is']('element'))_0x1be246['push'](this['_makeIdsRoot'](_0x1c4dde));else{for(let _0x5020c3=0x0;_0x5020c3<_0x1c4dde['offsetSize'];_0x5020c3++)_0x1be246['push'](new _0x4c10e7('$text',{'vid':this['_revisionId']++}));}const _0x574f48=this['_revisionId'];for(let _0x5c2c59=_0x5ce73e;_0x5c2c59<_0x574f48;_0x5c2c59++)this['_touched']['set'](_0x5c2c59,{'userId':_0xa8ba63});_0x3ef444['_insertChild'](_0x28a489['offset'],_0x1be246);}['_handleMoveOperation'](_0x521ab8){(_0x521ab8=this['_cloneOperation'](_0x521ab8,this['_idsRoots']))['_execute']();const _0x3a8c4c=null===_0x521ab8['_authorId']?null:_0x521ab8['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x15f336=_0x521ab8['getMovedRangeStart'](),_0x2f7360=_0x15f336['parent'],_0x562a0f=_0x15f336['offset'];!function _0x9ed65(_0x17f54a,_0x2acf0e,_0x491be0,_0x35f4bd){for(let _0x32bc11=_0x491be0;_0x32bc11<_0x35f4bd;_0x32bc11++){const _0x369238=_0x2acf0e['getChild'](_0x32bc11);_0x369238['is']('element','$text')?_0x17f54a['set'](_0x369238['getAttribute']('vid'),{'userId':_0x3a8c4c}):(_0x17f54a['set'](_0x369238['getAttribute']('vid_start'),{'userId':_0x3a8c4c}),_0x9ed65(_0x17f54a,_0x369238,0x0,_0x369238['childCount']),_0x17f54a['set'](_0x369238['getAttribute']('vid_end'),{'userId':_0x3a8c4c}));}}(this['_touched'],_0x2f7360,_0x562a0f,_0x562a0f+_0x521ab8['howMany']);}['_handleMergeOperation'](_0x543549){const _0x2dd7f9=null===(_0x543549=this['_cloneOperation'](_0x543549,this['_idsRoots']))['_authorId']?null:_0x543549['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x38a628=_0x543549['targetPosition']['parent'],_0x26386c=_0x543549['sourcePosition']['parent'],_0x3013c6=_0x38a628['getAttribute']('vid_end'),_0x5d7ff2=_0x26386c['getAttribute']('vid_start');_0x38a628['_setAttribute']('vid_end',_0x26386c['getAttribute']('vid_end')),_0x26386c['_setAttribute']('vid_end',_0x3013c6),this['_touched']['set'](_0x5d7ff2,{'userId':_0x2dd7f9}),this['_touched']['set'](_0x3013c6,{'userId':_0x2dd7f9}),_0x543549['_execute']();}['_handleSplitOperation'](_0x185342){const _0x262c2d=null===(_0x185342=this['_cloneOperation'](_0x185342,this['_idsRoots']))['_authorId']?null:_0x185342['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x18abd0=_0x185342['graveyardPosition'],_0xa8fa2a=_0x185342['splitPosition']['parent'];_0x185342['_execute']();const _0x2832ef=_0xa8fa2a['getAttribute']('vid_end'),_0x41a959=_0x185342['insertionPosition']['nodeAfter'];if(_0x18abd0){const _0x38dbbd=_0x41a959['getAttribute']('vid_end'),_0x34ff8b=_0xa8fa2a['getAttribute']('vid_end');_0xa8fa2a['_setAttribute']('vid_end',_0x38dbbd),_0x41a959['_setAttribute']('vid_end',_0x34ff8b),this['_touched']['set'](_0xa8fa2a['getAttribute']('vid_end'),{'userId':_0x262c2d}),this['_touched']['set'](_0x41a959['getAttribute']('vid_start'),{'userId':_0x262c2d});}else{const _0x5d45bf=this['_revisionId']++,_0x3fcea0=this['_revisionId']++;_0xa8fa2a['_setAttribute']('vid_end',_0x5d45bf),_0x41a959['_setAttribute']('vid_start',_0x3fcea0),_0x41a959['_setAttribute']('vid_end',_0x2832ef),this['_touched']['set'](_0x5d45bf,{'userId':_0x262c2d}),this['_touched']['set'](_0x3fcea0,{'userId':_0x262c2d});}}['_handleMarkerOperation'](_0x5ef672){if(!_0x5ef672['affectsData'])return;const _0x440f6b=(_0x5ef672=this['_cloneOperation'](_0x5ef672,this['_diffRoots']))['oldRange']?_0x5ef672['oldRange']['root']:null,_0x38c7a3=_0x5ef672['newRange']?_0x5ef672['newRange']['root']:null;_0x440f6b&&this['_markers']['delete'](_0x5ef672['name']),_0x38c7a3&&this['_markers']['set'](_0x5ef672['name'],_0x5ef672['newRange']['clone']());const _0x3b222b=null===_0x5ef672['_authorId']?null:_0x5ef672['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x599335=_0x5ef672['name'];if(!this['_touchedMarkers']['has'](_0x599335))return void this['_touchedMarkers']['set'](_0x599335,{'range':_0x5ef672['oldRange'],'userId':_0x3b222b});const _0x2bcac1=this['_touchedMarkers']['get'](_0x599335),_0x3bb0f3=_0x2bcac1['range'],_0x5b87ba=_0x5ef672['newRange'];null==_0x3bb0f3&&null==_0x5b87ba||_0x3bb0f3&&_0x5b87ba&&_0x3bb0f3['isEqual'](_0x5b87ba)?this['_touchedMarkers']['delete'](_0x5ef672['name']):_0x2bcac1['userId']=_0x3b222b;}['_handleRootOperation'](_0x5d757a,_0x5eebfd){this['_diffRoots']['has'](_0x5d757a['rootName'])?this['_diffRoots']['get'](_0x5d757a['rootName'])['_isAttached']=_0x5d757a['isAdd']:(this['_diffRoots']['set'](_0x5d757a['rootName'],N(_0x5d757a['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x5d757a['rootName'],{}),_0x5eebfd&&this['_idsRoots']['set'](_0x5d757a['rootName'],N(_0x5d757a['rootName'],!0x0)));const _0x3188b8=null===_0x5d757a['_authorId']?null:_0x5d757a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2bdc14=this['_touchedRoots']['get'](_0x5d757a['rootName']);_0x2bdc14&&_0x2bdc14['userId']===_0x3188b8?this['_touchedRoots']['delete'](_0x5d757a['rootName']):this['_touchedRoots']['set'](_0x5d757a['rootName'],{'userId':_0x3188b8,'isAttached':_0x5d757a['isAdd']});}['_handleRootAttributeOperation'](_0x3f0903){const _0x2672fb=this['_diffRootsAttributes']['get'](_0x3f0903['root']['rootName']);null===_0x3f0903['newValue']?delete _0x2672fb[_0x3f0903['key']]:_0x2672fb[_0x3f0903['key']]=_0x3f0903['newValue'];}}function x(_0x1a2570){const _0x5297c7=N(_0x1a2570['rootName'],_0x1a2570['isAttached']());for(const _0x1f2b71 of _0x1a2570['getChildren']()){const _0x669e32=_0x1f2b71['_clone'](!0x0);_0x5297c7['_appendChild'](_0x669e32);}return _0x5297c7;}function N(_0x5c9b95,_0x285a19=!0x0){const _0x948e3=new _0x3321bc();return _0x948e3['rootName']=_0x5c9b95,_0x948e3['_isAttached']=_0x285a19,_0x948e3['isAttached']=()=>_0x948e3['_isAttached'],_0x948e3;}function P(_0x5a7211,_0x531927,_0xb0a9d1){const _0x2b517b='elementEnd'==_0x5a7211['type']?_0xb0a9d1['createPositionAt'](_0x5a7211['item'],'end'):_0xb0a9d1['createPositionBefore'](_0x5a7211['item']);return _0xb0a9d1['createPositionFromPath'](_0x531927,_0x2b517b['path'],_0x2b517b['stickiness']);}function V(_0x18eac6,_0x301eb1,_0x52efc1){const _0x20df7a='elementStart'==_0x18eac6['type']?_0x52efc1['createPositionAt'](_0x18eac6['item'],0x0):_0x52efc1['createPositionAfter'](_0x18eac6['item']);return _0x52efc1['createPositionFromPath'](_0x301eb1,_0x20df7a['path'],_0x20df7a['stickiness']);}class he extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x11d054(_0x225925){['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x30316b,_0xf597e1){super(_0x30316b),this['focusTracker']=new _0x4bb686(),this['keystrokes']=new _0x33ba21(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0xf597e1),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),this['initializeCssTransitionDisablerMixin']();}['render'](){super['render'](),_0x5c35aa({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x9daf43=_0x42e3bd=>_0x42e3bd['stopPropagation']();this['keystrokes']['set']('arrowright',_0x9daf43),this['keystrokes']['set']('arrowleft',_0x9daf43),this['keystrokes']['set']('arrowup',_0x9daf43),this['keystrokes']['set']('arrowdown',_0x9daf43);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x416de3){this['revisionNameInputView']['fieldView']['element']['value']=_0x416de3['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x13288e){const _0x174c2f=new et(this['locale'],ti),_0x5ea7ca=_0x174c2f['fieldView'];_0x5ea7ca['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x463b9d=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x13288e&&(_0x463b9d+='\x20('+m(this['locale'],'optional')+')'),(_0x174c2f['label']=_0x463b9d,_0x5ea7ca['on']('input',()=>{this['revisionNameInputValue']=_0x5ea7ca['element']['value']['trim']();}),_0x174c2f);}}class l extends _0x218037{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h];}['_saveRevisionFormView'];['init'](){const _0x3681be=this['editor'],_0x2d9820=_0x3681be['plugins']['get']('RevisionTracker');_0x3681be['ui']['componentFactory']['add']('revisionHistory',_0xfd848f=>{const _0x3ede73=_0x5a9ba8(_0xfd848f),_0x145517=_0x3ede73['panelView']['children'],_0x369862=new _0x310d06(_0xfd848f),_0x23d5d4=new _0x1a6913(_0xfd848f),_0x146b24=this['_createSaveRevisionButton'](_0x220221),_0x489572=new _0x1a6913(_0xfd848f),_0x305ad7=this['_createOpenRevisionButton'](_0x220221);return _0x3ede73['bind']('isEnabled')['to'](_0x2d9820,'isReady',_0x2d9820,'isEnabled',_0x3681be,'isReadOnly',(_0x4a6021,_0x23d58d,_0x1e43ed)=>_0x4a6021&&_0x23d58d&&!_0x1e43ed),_0x3ede73['buttonView']['set']({'icon':_0x387529,'label':m(_0xfd848f,'Revision\x20history'),'tooltip':!0x0}),_0x146b24['set']({'withText':!0x0,'role':'menuitem'}),_0x305ad7['set']({'withText':!0x0,'role':'menuitem'}),this['listenTo'](_0x305ad7,'execute',()=>{_0x3ede73['isOpen']=!0x1,_0x3681be['editing']['view']['focus']();},{'priority':'low'}),_0x23d5d4['children']['add'](_0x146b24),_0x489572['children']['add'](_0x305ad7),_0x369862['role']='menu',_0x369862['items']['addMany']([_0x23d5d4,_0x489572]),_0x145517['add'](_0x369862),_0x3ede73;}),_0x3681be['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x413e7d=this['editor'],_0x227de2=_0x413e7d['locale'],_0x13dc46=_0x413e7d['plugins']['get']('RevisionTracker'),_0x4424ae=new _0x5dbe5d(_0x227de2),_0x599894=new _0x3547d7(_0x227de2);_0x4424ae['bind']('isEnabled')['to'](_0x13dc46,'isReady',_0x13dc46,'isEnabled',_0x413e7d,'isReadOnly',(_0x28b27f,_0x4f7f69,_0xe38f2)=>_0x28b27f&&_0x4f7f69&&!_0xe38f2),_0x4424ae['buttonView']['set']({'icon':_0x387529,'label':m(_0x227de2,'Revision\x20history')});const _0x5f5d38=new _0x2dfe78(_0x227de2,_0x4424ae),_0x4f19fa=this['_createSaveRevisionButton'](_0x33b60c);_0x4f19fa['delegate']('execute')['to'](_0x4424ae),_0x5f5d38['children']['add'](_0x4f19fa),_0x599894['items']['add'](_0x5f5d38);const _0x4fc415=new _0x2dfe78(_0x227de2,_0x4424ae),_0x5cdfe0=this['_createOpenRevisionButton'](_0x33b60c);return _0x5cdfe0['delegate']('execute')['to'](_0x4424ae),_0x4fc415['children']['add'](_0x5cdfe0),_0x599894['items']['add'](_0x4fc415),_0x4424ae['panelView']['children']['add'](_0x599894),_0x4424ae;}['_createSaveRevisionButton'](_0x2d75a1){const _0x869209=this['editor'],_0x21cab0=_0x869209['plugins']['get']('RevisionTracker'),_0x18c663=new _0x2d75a1(_0x869209['locale']);return _0x18c663['set']({'label':m(_0x869209['locale'],'Save\x20current\x20revision')}),_0x18c663['bind']('isEnabled')['to'](_0x21cab0,'isReady',_0x21cab0,'isEnabled',_0x869209,'isReadOnly',(_0x77e6c4,_0x52ba04,_0x1f52f9)=>_0x77e6c4&&_0x52ba04&&!_0x1f52f9),this['listenTo'](_0x18c663,'execute',()=>{this['_showDialog']();}),_0x18c663;}['_createOpenRevisionButton'](_0x4d451c){const _0x4b5222=this['editor'],_0x878a4b=_0x4b5222['plugins']['get']('RevisionTracker'),_0x5c5cdd=new _0x4d451c(_0x4b5222['locale']);return _0x5c5cdd['set']({'label':m(_0x4b5222['locale'],'Open\x20revision\x20history')}),_0x5c5cdd['bind']('isEnabled')['to'](_0x878a4b,'isReady',_0x4b5222,'isReadOnly',(_0x54d91d,_0x56bef1)=>_0x54d91d&&!_0x56bef1),this['listenTo'](_0x5c5cdd,'execute',()=>{_0x4b5222['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x5c5cdd;}['_showDialog'](){const _0x4ef83d=this['editor'],_0x39d5d0=_0x4ef83d['locale'],_0x6fe914=_0x4ef83d['plugins']['get']('Dialog'),_0x477166=_0x4ef83d['plugins']['get']('RevisionTracker');function _0x241da5(_0x556140){_0x4ef83d['config']['get']('revisionHistory.requireRevisionName')&&''===_0x556140['revisionName']?_0x556140['revisionNameInputView']['errorText']=m(_0x39d5d0,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x4ef83d['plugins']['get'](h)['saveRevision']({'name':_0x556140['revisionName']}),_0x6fe914['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x241da5(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x6fe914['show']({'id':'revisionSave','title':m(_0x39d5d0,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x4ef83d['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x6fe914['hide']()},{'label':m(_0x4ef83d['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x3d77a5){_0x3d77a5['bind']('isEnabled')['to'](_0x477166,'isReady',_0x477166,'isEnabled',_0x4ef83d,'isReadOnly',(_0x212b2a,_0x3e7f41,_0x3534cc)=>_0x212b2a&&_0x3e7f41&&!_0x3534cc);},'onExecute':()=>_0x241da5(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x1c6c22=this['editor'],_0x219d27=_0x1c6c22['locale'];this['_saveRevisionFormView']=new he(_0x219d27,_0x1c6c22['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class z extends _0x225925{['changeId'];['_model'];constructor(_0x179ac0,_0x2d5c5d){super(_0x179ac0),this['_model']=_0x2d5c5d,this['changeId']=_0x2d5c5d['id'];const _0xc47e90=this['bindTemplate'],_0x3b9125=m(_0x179ac0,_0x2d5c5d['data']['isSuggestion']?'Suggested\x20by':'add'==_0x2d5c5d['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x2d5c5d['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0xc47e90['to']('type',_0x1c8215=>'ck-revision-change__'+_0x1c8215)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x3b9125}]},{'text':'\x20'+_0x2d5c5d['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class G extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x5db0d3(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x42adb2){super(),this['id']=_0x42adb2['id']||_0x13449a(),this['author']=_0x42adb2['author'],this['type']=_0x42adb2['type'],this['data']=_0x42adb2['data']||{},this['rootName']=_0x42adb2['rootName'],this['set']('createdAt',_0x42adb2['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class J{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x93e504,_0x494e8b){this['newRevisionId']=_0x93e504,this['oldRevisionId']=_0x494e8b,this['changes']=new _0x2df1dc();}['_setChanges'](_0x67ea82){for(const _0x43b460 of _0x67ea82)this['changes']['add'](_0x43b460);}}class u extends _0x218037{['repository'];['adapter']=null;['_utils'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x12124b,_0x4ee731,S,$];}constructor(_0x102fb1){super(_0x102fb1),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x2d677b,_0x29bddf,_0x3c0066)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x32cedd=>{for(const _0x3ac3df of this['editor']['editing']['view']['document']['roots'])_0x3c0066?_0x32cedd['removeClass']('ck-editor__editable__overlay',_0x3ac3df):_0x32cedd['addClass']('ck-editor__editable__overlay',_0x3ac3df);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x16840f=>null!==_0x16840f),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0xdddb0d,_0xd17bc9,_0x5c01b2)=>_0xdddb0d&&_0x5c01b2?_0xd17bc9['changes']['getIndex'](_0x5c01b2):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x455de3,_0x4bb8bc)=>_0x455de3?_0x4bb8bc['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x4ee731);}['init'](){const _0x82eb11=this['editor'],_0x19c3d1=new rt(_0x82eb11,{'direction':'backward'}),_0x45fbe6=new rt(_0x82eb11,{'direction':'forward'});(_0x82eb11['commands']['add']('showPreviousChange',_0x19c3d1),_0x82eb11['commands']['add']('showNextChange',_0x45fbe6),_0x82eb11['commands']['add']('restoreRevision',new nt(_0x82eb11)),this['on']('change:numberOfChanges',()=>{_0x19c3d1['refresh'](),_0x45fbe6['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x82eb11['enableReadOnlyMode']('revision-viewer'),_0x82eb11['plugins']['has']('WidgetToolbarRepository'))&&_0x82eb11['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x52f78b){return await this['_utils']['loadRevisionData'](_0x52f78b,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x52f78b);}async['getRevisionRootsAttributes'](_0x30b7c6){return await this['_utils']['loadRevisionData'](_0x30b7c6,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x30b7c6);}async['compare'](_0x4ac2fb,_0x4879cf,_0x25bba5=!0x1){if(!this['isEnabled'])return;const _0x5ebb0b=this['diff'],_0x3cb3dd=this['repository'],_0x4c8e1e='string'==typeof _0x4ac2fb?_0x3cb3dd['getRevision'](_0x4ac2fb):_0x4ac2fb,_0x3bcd8e='string'==typeof _0x4879cf?_0x3cb3dd['getRevision'](_0x4879cf):_0x4879cf,_0x57f825=_0x4c8e1e['id'],_0x4e7e7b=_0x3bcd8e?_0x3bcd8e['id']:null;if(!_0x25bba5&&this['diff']&&this['diff']['newRevisionId']===_0x57f825&&this['diff']['oldRevisionId']===_0x4e7e7b)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x57f825,_0x4e7e7b);const _0x1429b3=this['_getRevisionsRange'](_0x4c8e1e,_0x3bcd8e,!0x0)['map'](_0x54fa48=>this['_utils']['loadRevisionData'](_0x54fa48,this['adapter']));return _0x1429b3['push'](new Promise(_0x19b735=>{setTimeout(_0x19b735,0x14);})),Promise['all'](_0x1429b3)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x4e0f07=this['_getDiff'](_0x57f825,_0x4e7e7b);for(const _0x1a74ea of _0x4e0f07['changes'])this['_changeIdToChange']['set'](_0x1a74ea['id'],_0x1a74ea);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x1dc8a3=>{for(const _0x45d4bb of this['editor']['model']['document']['getRootNames']())_0x1dc8a3['detachRoot'](_0x45d4bb);for(const _0x485443 of Object['keys'](_0x4e0f07['model'])){const _0x422684=_0x1dc8a3['addRoot'](_0x485443);for(const _0x4771fd of Object['keys'](_0x4e0f07['attributes'][_0x485443]))_0x1dc8a3['setAttribute'](_0x4771fd,_0x4e0f07['attributes'][_0x485443][_0x4771fd],_0x422684);_0x1dc8a3['insert'](_0x4e0f07['model'][_0x485443],_0x422684,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x4e0f07['changes'])),this['isReady']=!0x0;})['catch'](_0x291d3c=>{console['error'](_0x291d3c),this['_cleanUp'](),_0x5ebb0b&&(this['diff']=_0x5ebb0b),this['isReady']=!0x0;});}['addRevisionData'](_0x1cdab3,_0x14bde6){const _0x51c83f=this['repository']['createRevision'](_0x1cdab3);return _0x51c83f['on']('_update',(_0x6180c3,_0x103da3,_0x4c5421)=>_0x14bde6(_0x103da3,_0x4c5421,_0x51c83f)),this['repository']['addRevision'](_0x51c83f),_0x51c83f;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0xc8a12d=>{for(const _0x211513 of this['editor']['model']['document']['getRootNames']())_0xc8a12d['detachRoot'](_0x211513);});}['_sortAndFilterDiffChanges'](_0x18b097){const _0x2e834b=[],_0x578f4f=new Map();for(const _0x547c08 of this['editor']['model']['document']['getRootNames']()){const _0x5be9df=this['editor']['editing']['view']['getDomRoot'](_0x547c08);if(!_0x5be9df)continue;const _0x471eae=_0x5be9df['getClientRects']()['item'](0x0);_0x471eae&&(_0x2e834b['push'](_0x547c08),_0x578f4f['set'](_0x547c08,_0x471eae));}return _0x2e834b['sort']((_0x3a6854,_0x5d32d0)=>{const _0x4593d1=_0x578f4f['get'](_0x3a6854),_0x15c4d3=_0x578f4f['get'](_0x5d32d0);return _0x4593d1['y']-_0x15c4d3['y']||_0x4593d1['x']-_0x15c4d3['x'];}),(_0x18b097=_0x18b097['filter'](_0x1bc998=>_0x2e834b['includes'](_0x1bc998['rootName'])))['sort']((_0x56a685,_0xc09bbe)=>_0x2e834b['indexOf'](_0x56a685['rootName'])-_0x2e834b['indexOf'](_0xc09bbe['rootName'])),_0x18b097;}['_makeTape'](_0x4613ba){const _0x4883cd=Array['from'](_0x4613ba['markers'])['filter'](([_0xea0e39,_0x1a13ba])=>_0xea0e39['startsWith']('revision:')&&!_0x1a13ba['isCollapsed']),_0x3bf6fc=Array['from'](this['editor']['model']['createRangeIn'](_0x4613ba)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x4883cd['length'])for(const _0x2f6fc8 of _0x3bf6fc){const [_0x59a058,_0x4916c4]=_0x4883cd[0x0],[,_0x34b5a9,_0x30d9b9]=_0x59a058['split'](':');if(_0x4916c4['end']['isEqual'](_0x2f6fc8['nextPosition'])&&_0x4883cd['shift'](),(_0x2f6fc8['previousPosition']['isEqual'](_0x4916c4['start'])||_0x2f6fc8['previousPosition']['isAfter'](_0x4916c4['start']))&&('insertion'==_0x34b5a9?_0x2f6fc8['isAdded']={'userId':_0x30d9b9}:'deletion'==_0x34b5a9&&(_0x2f6fc8['isRemoved']={'userId':_0x30d9b9})),0x0==_0x4883cd['length'])break;}return _0x3bf6fc;}['_refreshStartEndIndex'](_0x27a8a6){const _0x183696=new Map();for(let _0x5ee6d8=0x0;_0x5ee6d8<_0x27a8a6['length'];_0x5ee6d8++)'text'===_0x27a8a6[_0x5ee6d8]['type']?(_0x27a8a6[_0x5ee6d8]['item']['startIndex']=_0x5ee6d8,_0x27a8a6[_0x5ee6d8]['item']['endIndex']=_0x5ee6d8):('elementStart'===_0x27a8a6[_0x5ee6d8]['type']?_0x27a8a6[_0x5ee6d8]['item']['startIndex']=_0x5ee6d8:'elementEnd'===_0x27a8a6[_0x5ee6d8]['type']&&(_0x27a8a6[_0x5ee6d8]['item']['endIndex']=_0x5ee6d8),_0x183696['set'](_0x27a8a6[_0x5ee6d8]['id'],_0x5ee6d8));for(const _0x4ce61d of _0x183696['values']())'elementStart'===_0x27a8a6[_0x4ce61d]['type']?_0x27a8a6[_0x4ce61d]['item']['endIndex']=_0x183696['get'](_0x27a8a6[_0x4ce61d]['pairId']):'elementEnd'===_0x27a8a6[_0x4ce61d]['type']&&(_0x27a8a6[_0x4ce61d]['item']['startIndex']=_0x183696['get'](_0x27a8a6[_0x4ce61d]['pairId']));}['_processTape'](_0x5b11ae){for(let _0x1c8d29=0x0;_0x1c8d29<_0x5b11ae['length'];_0x1c8d29++){if('elementStart'===_0x5b11ae[_0x1c8d29]['type'])_0x5b11ae[_0x1c8d29]['item']['startIndex']=_0x1c8d29;else{if('elementEnd'===_0x5b11ae[_0x1c8d29]['type']){_0x5b11ae[_0x1c8d29]['item']['endIndex']=_0x1c8d29;const _0x47b464=_0x5b11ae[_0x1c8d29]['item']['startIndex'];_0x5b11ae[_0x47b464]['pairId']=_0x5b11ae[_0x1c8d29]['id'],_0x5b11ae[_0x1c8d29]['pairId']=_0x5b11ae[_0x47b464]['id'];}else _0x5b11ae[_0x1c8d29]['item']['startIndex']=_0x1c8d29,_0x5b11ae[_0x1c8d29]['item']['endIndex']=_0x1c8d29,_0x5b11ae[_0x1c8d29]['pairId']=null;}_0x5b11ae[_0x1c8d29]['markersStart']||(_0x5b11ae[_0x1c8d29]['markersStart']=[],_0x5b11ae[_0x1c8d29]['markersEnd']=[]);}}['_markInsertions'](_0x35c053,_0x553cd7){const _0x285ebc=_0x35c053['filter'](_0x5cdfc9=>!_0x5cdfc9['isAdded']);for(let _0x2fc3c4=0x0;_0x2fc3c4<_0x553cd7['length'];_0x2fc3c4++)_0x553cd7[_0x2fc3c4]['isAdded']&&(_0x285ebc[_0x2fc3c4]['isAdded']=_0x553cd7[_0x2fc3c4]['isAdded']);}['_getDiff'](_0x465f1d,_0xe28174=null){const _0x4eb856=this['repository']['getRevision'](_0x465f1d),_0x34ef56=_0xe28174?this['repository']['getRevision'](_0xe28174):null,_0x2a9a53=this['_getRevisionsRange'](_0x4eb856,_0x34ef56),_0x592e12=_0x2a9a53[_0x2a9a53['length']-0x1],_0x2063d7=new Map(),_0x459cc8={'model':{},'attributes':{},'changes':[]},_0x3f471e=new Set(),_0x275fef=new Map();for(let _0x4c85da=_0x2a9a53['length']-0x1;_0x4c85da>=0x0;_0x4c85da--){const _0x90c282=_0x2a9a53[_0x4c85da];for(const _0x3f1e53 of Object['keys'](_0x90c282['diffData']))if(_0x90c282['diffData'][_0x3f1e53]['attachChange']){const _0x28f0b0=_0x90c282['diffData'][_0x3f1e53]['attachChange'];_0x28f0b0['isAttached']?(_0x3f471e['add'](_0x3f1e53),_0x275fef['has'](_0x3f1e53)&&_0x275fef['get'](_0x3f1e53)['userId']==_0x28f0b0['userId']?_0x275fef['delete'](_0x3f1e53):_0x275fef['set'](_0x3f1e53,_0x28f0b0)):_0x275fef['has'](_0x3f1e53)?(_0x3f471e['delete'](_0x3f1e53),_0x275fef['delete'](_0x3f1e53)):(_0x3f471e['add'](_0x3f1e53),_0x275fef['set'](_0x3f1e53,_0x28f0b0));}else _0x3f471e['add'](_0x3f1e53);}for(const _0xcb47b2 of _0x3f471e){const _0x365391=_0x275fef['has'](_0xcb47b2)&&!_0x275fef['get'](_0xcb47b2)['isAttached'];let _0x95ecd1=_0x365391?_0x2a9a53['length']-0x1:0x0;const _0x27ef93=_0x365391?-0x1:0x1;for(;_0x2a9a53[_0x95ecd1];){const _0x1a5a5c=_0x2a9a53[_0x95ecd1];if(_0x1a5a5c['diffData'][_0xcb47b2]){const _0x5df176=_0x365391?_0x1a5a5c['diffData'][_0xcb47b2]['attributesBefore']:_0x1a5a5c['diffData'][_0xcb47b2]['attributesAfter'];_0x459cc8['attributes'][_0xcb47b2]=_0x5df176?_0x580985(_0x5df176):{};break;}_0x95ecd1+=_0x27ef93;}}for(const _0x403e70 of _0x2a9a53){_0x403e70['model']={};for(const _0x25f3c2 of _0x403e70['authors'])_0x2063d7['set'](_0x25f3c2['id'],_0x25f3c2);for(const _0x43fdac of _0x3f471e){const _0x3a60a5=_0x403e70['diffData'][_0x43fdac]?_0x403e70['diffData'][_0x43fdac]['insertions']:'[]',_0x355148=_0x403e70['diffData'][_0x43fdac]?_0x403e70['diffData'][_0x43fdac]['deletions']:'[]';_0x403e70['model'][_0x43fdac]={'insertions':this['_utils']['_makeModelFromViewString'](_0x3a60a5),'deletions':this['_utils']['_makeModelFromViewString'](_0x355148)};}}for(const _0x14c7a8 of _0x3f471e){let _0x20d298=null,_0x296f3f=0x0;const _0x5cf352=new Map(Array['from'](_0x4eb856['model'][_0x14c7a8]['insertions']['markers'])['filter'](([_0x27e34e])=>!_0x27e34e['startsWith']('revision:')));let _0x58091d=0x0;for(const _0x577aa9 of _0x2a9a53){const _0x34418f=this['_makeTape'](_0x577aa9['model'][_0x14c7a8]['insertions']);_0x577aa9==_0x4eb856?(_0x20d298=_0x34418f,_0x296f3f=_0x20d298['length'],_0x20d298['forEach'](_0x4ce83f=>{_0x4ce83f['id']=_0x58091d++;}),this['_processTape'](_0x20d298)):this['_markInsertions'](_0x20d298,_0x34418f);const _0x3d4980=_0x20d298['filter'](_0x7a42f8=>!_0x7a42f8['isAdded'])['map'](_0x10d7a9=>_0x10d7a9['id']);let _0x101fed=0x0;const _0x3a7023=this['_makeTape'](_0x577aa9['model'][_0x14c7a8]['deletions']);_0x3a7023['forEach'](_0x4bf6a5=>{_0x4bf6a5['isRemoved']?_0x4bf6a5['id']=_0x296f3f++:_0x4bf6a5['id']=_0x3d4980[_0x101fed++];}),this['_processTape'](_0x3a7023),this['_setDistance'](_0x20d298,'isAdded'),this['_setDistance'](_0x3a7023,'isRemoved'),_0x577aa9==_0x4eb856&&this['_markMarkers'](_0x20d298,_0x5cf352),_0x20d298=this['_joinTapes'](_0x20d298,_0x3a7023),this['_refreshStartEndIndex'](_0x20d298),this['_setDistance'](_0x20d298,'isRemoved');}_0x20d298=_0x20d298['filter'](_0x4384d8=>!(_0x4384d8['isAdded']&&_0x4384d8['isRemoved']));const _0x437d38=new Map(_0x592e12['model'][_0x14c7a8]['deletions']['markers']),_0x7d840a=new Set(_0x5cf352['keys']());for(const _0x2fccb9 of _0x437d38['keys']())_0x7d840a['delete'](_0x2fccb9);this['_markSuggestions'](_0x20d298,_0x7d840a),this['_fixObsoleteTags'](_0x20d298),_0x20d298=this['_removeMissingPairs'](_0x20d298),_0x20d298=this['_markMismatchedRemovedTags'](_0x20d298),_0x20d298=this['_removeUnsupportedChanges'](_0x20d298);const {root:_0x5d3ecd,changes:_0x5f50a4}=this['_makeModelFromTape'](_0x20d298,_0x2063d7,_0x14c7a8);_0x459cc8['model'][_0x14c7a8]=_0x5d3ecd;const _0xac97ba=_0x275fef['get'](_0x14c7a8);if(_0xac97ba){const _0x5b0744=_0x2063d7['get'](_0xac97ba['userId']),_0x3fec66=new G({'author':_0x5b0744,'type':_0xac97ba['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x14c7a8});_0x5f50a4['unshift'](_0x3fec66),_0x459cc8['attributes'][_0x14c7a8]['revisionHistoryAttachChange']=_0x3fec66['id'];}_0x459cc8['changes']=_0x459cc8['changes']['concat'](_0x5f50a4);}return _0x459cc8;}['_markMarkers'](_0x450514,_0x5a380a){for(let _0x282774=0x0;_0x282774<_0x450514['length'];_0x282774++)for(const [_0x4261d0,_0x502252]of _0x5a380a)!_0x502252['isCollapsed']&&_0x502252['start']['isEqual'](_0x450514[_0x282774]['previousPosition'])&&_0x450514[_0x282774]['markersStart']['push'](_0x4261d0),_0x502252['end']['isEqual'](_0x450514[_0x282774]['nextPosition'])&&_0x450514[_0x282774]['markersEnd']['push'](_0x4261d0);}['_joinTapes'](_0x1e3ac4,_0x4036a0){let _0x448723=[],_0xf021b=0x0,_0x3095d1=0x0;for(;_0xf021b<_0x1e3ac4['length']||_0x3095d1<_0x4036a0['length'];){const _0x547a4e=_0x1e3ac4[_0xf021b]||{},_0x2c0ec5=_0x4036a0[_0x3095d1]||{};if(_0x547a4e['id']==_0x2c0ec5['id'])_0xf021b++,_0x3095d1++,_0x448723['push'](_0x547a4e);else{if(_0x2c0ec5['isRemoved']&&_0x547a4e['isAdded']){const {commonTape:_0x2941da,iEnd:_0x5e9c02,jEnd:_0x3c6ad9}=this['_threeWayMerge'](_0x1e3ac4,_0xf021b,_0x4036a0,_0x3095d1);_0x448723=_0x448723['concat'](_0x2941da),_0xf021b=_0x5e9c02,_0x3095d1=_0x3c6ad9;}else _0x2c0ec5['isRemoved']?(_0x3095d1++,_0x448723['push'](_0x2c0ec5)):(_0xf021b++,_0x448723['push'](_0x547a4e));}}return _0x448723;}['_markSuggestions'](_0x55b08e,_0x1c4a34){const _0x52b1c9=[];for(let _0xae65e2=0x0;_0xae65e2<_0x55b08e['length'];_0xae65e2++){for(let _0x2cf89a=0x0;_0x2cf89a<_0x55b08e[_0xae65e2]['markersStart']['length'];_0x2cf89a++){const _0x3e55ce=_0x55b08e[_0xae65e2]['markersStart'][_0x2cf89a];if(!_0x1c4a34['has'](_0x3e55ce))continue;const {group:_0x4121fd,type:_0x3dd742,authorId:_0x23314b}=_0x47a9a8(_0x3e55ce);'revision-suggestion'!=_0x4121fd||'insertion'!=_0x3dd742&&'deletion'!=_0x3dd742||(_0x52b1c9['unshift']({'type':_0x3dd742,'name':_0x3e55ce,'userId':_0x23314b}),_0x55b08e[_0xae65e2]['markersStart']['splice'](_0x2cf89a,0x1),_0x2cf89a--);}_0x224f39(_0x55b08e[_0xae65e2]);for(let _0x4c990b=0x0;_0x4c990b<_0x55b08e[_0xae65e2]['markersEnd']['length'];_0x4c990b++){const _0x53dc12=_0x55b08e[_0xae65e2]['markersEnd'][_0x4c990b];if(!_0x1c4a34['has'](_0x53dc12))continue;const {group:_0x468428,type:_0x163294}=_0x47a9a8(_0x53dc12);if('revision-suggestion'!=_0x468428||'insertion'!=_0x163294&&'deletion'!=_0x163294)continue;_0x55b08e[_0xae65e2]['markersEnd']['splice'](_0x4c990b,0x1),_0x4c990b--;const _0x119431=_0x52b1c9['findIndex'](_0x10e992=>_0x10e992['name']==_0x53dc12);_0x119431>-0x1&&_0x52b1c9['splice'](_0x119431,0x1);}}function _0x47a9a8(_0x3051df){const _0x37214a=_0x3051df['split'](':');return{'group':_0x37214a[0x0],'type':_0x37214a[0x1],'subType':_0x37214a['length']>=0x5?_0x37214a[0x2]:null,'id':_0x37214a['length']<0x5?_0x37214a[0x2]:_0x37214a[0x3],'authorId':_0x37214a['length']<0x5?_0x37214a[0x3]:_0x37214a[0x4],'markerCount':0x6==_0x37214a['length']?_0x37214a[0x5]:null};}function _0x224f39(_0x33b611){for(let _0x31b882=0x0;_0x31b882<_0x52b1c9['length'];_0x31b882++){if(_0x33b611['isAdded']&&'insertion'==_0x52b1c9[_0x31b882]['type']&&_0x33b611['isAdded']['userId']==_0x52b1c9[_0x31b882]['userId'])return _0x33b611['isAddSuggestion']=_0x52b1c9[_0x31b882],void delete _0x33b611['isAdded'];if(!_0x33b611['isAdded']&&!_0x33b611['isRemoved']&&'deletion'==_0x52b1c9[_0x31b882]['type'])return void(_0x33b611['isRemoveSuggestion']=_0x52b1c9[_0x31b882]);}}}['_setDistance'](_0x3d4c79,_0x588a73){let _0x11ce03=0x0,_0x32c323=!0x1;const _0x526df1=new Map();for(const _0x4a732c of _0x3d4c79)_0x4a732c[_0x588a73]?_0x32c323&&(_0x11ce03++,_0x32c323=!0x1):(_0x11ce03++,_0x32c323=!0x0),_0x526df1['set'](_0x4a732c['id'],_0x11ce03);for(let _0x2e504f=0x0;_0x2e504f<_0x3d4c79['length'];_0x2e504f++){if('isRemoved'==_0x588a73&&_0x3d4c79[_0x2e504f]['isAdded']||'isAdded'==_0x588a73&&_0x3d4c79[_0x2e504f]['isRemoved'])continue;if('text'==_0x3d4c79[_0x2e504f]['type']){_0x3d4c79[_0x2e504f]['distance']=0x0;continue;}const _0x261433=_0x526df1['get'](_0x3d4c79[_0x2e504f]['pairId']),_0x357d53=_0x526df1['get'](_0x3d4c79[_0x2e504f]['id']);_0x3d4c79[_0x2e504f]['distance']=_0x261433-_0x357d53;}}['_getRevisionsRange'](_0x307876,_0x553ed5,_0x543d01=!0x1){const _0x35a3a1=[];let _0x2d228a=this['repository']['getIndex'](_0x307876),_0x567c15=this['repository']['getIndex'](_0x553ed5);for(-0x1==_0x567c15&&(_0x567c15=this['repository']['_revisions']['length'],_0x543d01=!0x1);_0x2d228a<_0x567c15;)_0x35a3a1['push'](this['repository']['getRevision'](_0x2d228a)),_0x2d228a++;return _0x543d01&&_0x35a3a1['push'](this['repository']['getRevision'](_0x2d228a)),_0x35a3a1;}['_threeWayMerge'](_0x5bc40b,_0x1c2e3c,_0x2fc824,_0x2682a4){const _0x366b78=this['editor']['model']['schema'];let _0x479698=_0x1c2e3c;for(;_0x5bc40b[_0x479698]&&_0x5bc40b[_0x479698]['isAdded'];)_0x479698++;let _0x249ee4=_0x2682a4;for(;_0x2fc824[_0x249ee4]&&_0x2fc824[_0x249ee4]['isRemoved'];)_0x249ee4++;_0x13010b(_0x5bc40b,_0x1c2e3c,_0x479698),_0x13010b(_0x2fc824,_0x2682a4,_0x249ee4);const _0x195717=_0x2fc824['slice'](_0x2682a4,_0x249ee4)['concat'](_0x5bc40b['slice'](_0x1c2e3c,_0x479698));return _0x195717['sort']((_0x4788fc,_0x5ec16e)=>_0x4788fc['side']!=_0x5ec16e['side']?_0x4788fc['side']-_0x5ec16e['side']:_0x4788fc['level']!=_0x5ec16e['level']?_0x4788fc['level']-_0x5ec16e['level']:_0x4788fc['distance']!=_0x5ec16e['distance']?_0x5ec16e['distance']-_0x4788fc['distance']:!!_0x4788fc['isAdded']!=!!_0x5ec16e['isAdded']?-0x1==_0x4788fc['side']||0x0==_0x4788fc['side']?_0x4788fc['isAdded']?-0x1:0x1:_0x4788fc['isAdded']?0x1:-0x1:_0x4788fc['index']-_0x5ec16e['index']),{'commonTape':_0x195717,'iEnd':_0x479698,'jEnd':_0x249ee4};function _0x13010b(_0x51d1cf,_0x203bfb,_0x5c338e){let _0x49ae87=-0x1,_0x1032f5=Number['POSITIVE_INFINITY'],_0x22e27d=!0x0;for(let _0x56334d=_0x203bfb;_0x56334d<_0x5c338e;_0x56334d++)if(_0x366b78['isInline'](_0x51d1cf[_0x56334d]['item'])||(_0x22e27d=!0x1),_0x51d1cf[_0x56334d]['item']['startIndex']<_0x203bfb&&(_0x49ae87=_0x56334d),_0x51d1cf[_0x56334d]['item']['endIndex']>=_0x5c338e){_0x1032f5=_0x56334d;break;}_0x22e27d&&(_0x49ae87=_0x5c338e-0x1);for(let _0x5a5b0d=_0x203bfb;_0x5a5b0d<_0x5c338e;_0x5a5b0d++)_0x51d1cf[_0x5a5b0d]['side']=_0x5a5b0d<=_0x49ae87?-0x1:_0x5a5b0d<_0x1032f5?0x0:0x1,_0x51d1cf[_0x5a5b0d]['index']=_0x5a5b0d;let _0x33537e=0x0;for(let _0x5b6a7e=_0x203bfb;_0x5b6a7e<=_0x49ae87;_0x5b6a7e++)0x0==_0x51d1cf[_0x5b6a7e]['distance']?_0x51d1cf[_0x5b6a7e]['level']=_0x33537e:(_0x33537e++,_0x51d1cf[_0x5b6a7e]['level']=_0x33537e,_0x33537e++);for(let _0x156aea=_0x203bfb;_0x156aea<_0x5c338e;_0x156aea++)0x0==_0x51d1cf[_0x156aea]['side']&&(_0x51d1cf[_0x156aea]['level']=_0x33537e);_0x33537e=0x0;for(let _0x440054=_0x5c338e-0x1;_0x440054>=_0x1032f5;_0x440054--)0x0==_0x51d1cf[_0x440054]['distance']?_0x51d1cf[_0x440054]['level']=_0x33537e:(_0x33537e--,_0x51d1cf[_0x440054]['level']=_0x33537e,_0x33537e--);}}['_fixObsoleteTags'](_0x5f0619){const _0x1e9f63=new Map(),_0x4e9317=this['editor']['model']['schema'];for(let _0x5f0c4e=0x1;_0x5f0c4e<_0x5f0619['length'];_0x5f0c4e++){let _0x3f8b21,_0x49fe99,_0x45b44f;const _0x45f8d6=_0x5f0619[_0x5f0c4e],_0x38273c=_0x5f0619[_0x5f0c4e-0x1];if('text'==_0x45f8d6['type'])continue;if(_0x45f8d6['type']!=_0x38273c['type'])continue;if(!_0x4e9317['isBlock'](_0x38273c['item'])||_0x4e9317['isLimit'](_0x38273c['item']))continue;if(!_0x4e9317['isBlock'](_0x45f8d6['item'])||_0x4e9317['isLimit'](_0x45f8d6['item']))continue;if((_0x5f0619[_0x5f0c4e]['isAdded']||_0x5f0619[_0x5f0c4e]['isAddSuggestion'])&&_0x5f0619[_0x5f0c4e-0x1]['isRemoved'])_0x3f8b21=_0x5f0619[_0x5f0c4e],_0x49fe99=_0x5f0619[_0x5f0c4e-0x1],_0x45b44f=_0x5f0c4e-0x1;else{if(!_0x5f0619[_0x5f0c4e]['isRemoved']||!_0x5f0619[_0x5f0c4e-0x1]['isAdded']&&!_0x5f0619[_0x5f0c4e-0x1]['isAddSuggestion'])continue;_0x3f8b21=_0x5f0619[_0x5f0c4e-0x1],_0x49fe99=_0x5f0619[_0x5f0c4e],_0x45b44f=_0x5f0c4e;}const _0x2e5611=_0x3f8b21['level']==_0x49fe99['level'],_0x23ab80=Math['abs'](_0x3f8b21['level'])<Math['abs'](_0x49fe99['level'])&&0x0==_0x49fe99['distance'];(_0x2e5611||_0x23ab80)&&(_0x1e9f63['set'](_0x49fe99['id'],_0x3f8b21['id']),_0x5f0619['splice'](_0x45b44f,0x1),_0x5f0c4e--,_0x3f8b21['isAdded']=!0x1);}for(let _0x12f66c=0x0;_0x12f66c<_0x5f0619['length'];_0x12f66c++)_0x1e9f63['has'](_0x5f0619[_0x12f66c]['pairId'])&&(_0x5f0619[_0x12f66c]['pairId']=_0x1e9f63['get'](_0x5f0619[_0x12f66c]['pairId']));}['_removeMissingPairs'](_0x1eed4d){const _0x1e0347=new Set(_0x1eed4d['map'](_0x53b834=>_0x53b834['id']));for(let _0x34652a=0x0;_0x34652a<_0x1eed4d['length'];_0x34652a++)_0x1e0347['has'](_0x1eed4d[_0x34652a]['pairId'])||0x0==_0x1eed4d[_0x34652a]['distance']||(_0x1eed4d[_0x34652a]['isIncorrect']=!0x0);return _0x1eed4d['filter'](_0x23ec79=>!_0x23ec79['isIncorrect']);}['_markMismatchedRemovedTags'](_0x16c906){const _0x37b1ee=new Set();for(let _0x482325=0x0;_0x482325<_0x16c906['length'];_0x482325++){if(_0x37b1ee['has'](_0x16c906[_0x482325]['id'])&&_0x16c906[_0x482325]['isRemoved']&&(_0x16c906[_0x482325]['isIncorrect']=!0x0),_0x16c906[_0x482325]['isIncorrect'])continue;if(0x0==_0x16c906[_0x482325]['distance'])continue;if('elementStart'!=_0x16c906[_0x482325]['type'])continue;if(null==_0x16c906[_0x482325]['pairId'])continue;let _0x510b1a=_0x482325+0x1,_0x53eeba=0x0;for(;_0x16c906[_0x510b1a]['id']!=_0x16c906[_0x482325]['pairId'];)'elementStart'==_0x16c906[_0x510b1a]['type']?_0x53eeba++:'elementEnd'==_0x16c906[_0x510b1a]['type']&&_0x53eeba--,_0x510b1a++;if(0x0!=_0x53eeba){if(_0x16c906[_0x482325]['isRemoved'])_0x16c906[_0x482325]['isIncorrect']=!0x0;else{for(;_0x510b1a!=_0x482325;)_0x16c906[_0x510b1a]['isRemoved']&&0x0!=_0x16c906[_0x510b1a]['distance']&&(_0x16c906[_0x510b1a]['isIncorrect']=!0x0,_0x37b1ee['add'](_0x16c906[_0x510b1a]['pairId'])),_0x510b1a--;}}}return _0x16c906['filter'](_0x2668fd=>!_0x2668fd['isIncorrect']);}['_removeUnsupportedChanges'](_0x2f41f2){const _0x5e5221=this['editor']['model']['schema'];for(let _0x13ab57=0x0;_0x13ab57<_0x2f41f2['length'];_0x13ab57++){if(!(_0x2f41f2[_0x13ab57]['isAdded']||_0x2f41f2[_0x13ab57]['isAddSuggestion']||_0x2f41f2[_0x13ab57]['isRemoved']||_0x2f41f2[_0x13ab57]['isRemoveSuggestion']))continue;if(0x0==_0x2f41f2[_0x13ab57]['distance'])continue;const _0x26bbac=_0x2f41f2[_0x13ab57]['item'];_0x5e5221['isBlock'](_0x26bbac)||_0x5e5221['isLimit'](_0x26bbac)||(_0x2f41f2[_0x13ab57]['isAdded']&&delete _0x2f41f2[_0x13ab57]['isAdded'],_0x2f41f2[_0x13ab57]['isAddSuggestion']&&delete _0x2f41f2[_0x13ab57]['isAddSuggestion'],_0x2f41f2[_0x13ab57]['isRemoveSuggestion']&&delete _0x2f41f2[_0x13ab57]['isRemoveSuggestion'],_0x2f41f2[_0x13ab57]['isRemoved']&&(_0x2f41f2[_0x13ab57]['isIncorrect']=!0x0));}return _0x2f41f2['filter'](_0x26896a=>!_0x26896a['isIncorrect']);}['_makeModelFromTape'](_0x1859b1,_0xc275d3,_0x164f60){const _0xd907e1=new _0x3321bc(),_0x38e113=[],_0x4504da=new Map(),_0x31df55=this['editor']['model'],_0x29f31f=_0x31df55['schema'],_0x3e31d9=[_0xd907e1],_0x3662f5={},_0x48004c={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x1ca273=null;const _0x289b18=[0x0];for(let _0x1bb81a=0x0;_0x1bb81a<_0x1859b1['length'];_0x1bb81a++)if('elementStart'===_0x1859b1[_0x1bb81a]['type']){_0x1859b1[_0x1bb81a]['previousPosition']=_0x31df55['createPositionFromPath'](_0xd907e1,_0x289b18);const _0x1f4ef7=new _0x4c10e7(_0x1859b1[_0x1bb81a]['item']['name'],_0x1859b1[_0x1bb81a]['item']['getAttributes']());_0x3e31d9[0x0]['_appendChild'](_0x1f4ef7),_0x289b18['push'](0x0),_0x3e31d9['unshift'](_0x1f4ef7),_0x1859b1[_0x1bb81a]['nextPosition']=_0x31df55['createPositionFromPath'](_0xd907e1,_0x289b18);}else'elementEnd'===_0x1859b1[_0x1bb81a]['type']?(_0x3e31d9['shift'](),_0x1859b1[_0x1bb81a]['previousPosition']=_0x31df55['createPositionFromPath'](_0xd907e1,_0x289b18),_0x289b18['pop'](),_0x289b18[_0x289b18['length']-0x1]++,_0x1859b1[_0x1bb81a]['nextPosition']=_0x31df55['createPositionFromPath'](_0xd907e1,_0x289b18)):(_0x1859b1[_0x1bb81a]['previousPosition']=_0x31df55['createPositionFromPath'](_0xd907e1,_0x289b18),_0x1ca273?_0x1ca273['_data']+=_0x1859b1[_0x1bb81a]['item']['data']:_0x1ca273=new _0x5872fb(_0x1859b1[_0x1bb81a]['item']['data'],_0x1859b1[_0x1bb81a]['item']['getAttributes']()),_0x1859b1[_0x1bb81a+0x1]&&'text'===_0x1859b1[_0x1bb81a+0x1]['type']&&_0x1aa55a(_0x1ca273,_0x1859b1[_0x1bb81a+0x1]['item'])||(_0x3e31d9[0x0]['_appendChild'](_0x1ca273),_0x1ca273=null),_0x289b18[_0x289b18['length']-0x1]+=_0x1859b1[_0x1bb81a]['item']['offsetSize'],_0x1859b1[_0x1bb81a]['nextPosition']=_0x31df55['createPositionFromPath'](_0xd907e1,_0x289b18));for(let _0x5a10de=0x0;_0x5a10de<_0x1859b1['length'];_0x5a10de++){const _0xf96e1=_0x1859b1[_0x5a10de]['previousPosition'],_0x40aa4c=_0x1859b1[_0x5a10de]['nextPosition'];for(const _0x399262 of _0x1859b1[_0x5a10de]['markersStart'])_0x4504da['set'](_0x399262,{'start':_0xf96e1,'end':null});_0x207a80('isRemoveSuggestion',_0x5a10de,_0xf96e1,_0x40aa4c),_0x207a80('isAddSuggestion',_0x5a10de,_0xf96e1,_0x40aa4c),_0x207a80('isRemoved',_0x5a10de,_0xf96e1,_0x40aa4c),_0x207a80('isAdded',_0x5a10de,_0xf96e1,_0x40aa4c);for(const _0x3597f3 of _0x1859b1[_0x5a10de]['markersEnd']){const _0x281d90=_0x4504da['get'](_0x3597f3);_0x281d90?_0x281d90['end']=_0x40aa4c:_0x4504da['set'](_0x3597f3,{'start':_0x40aa4c,'end':_0x40aa4c});}}for(const [_0x32576e,_0xb3ef95]of _0x4504da){const _0x197985=this['editor']['model']['createRange'](_0xb3ef95['start'],_0xb3ef95['end']);_0xd907e1['markers']['set'](_0x32576e,_0x197985);}return _0x38e113['sort']((_0x2b32b5,_0x31d9aa)=>{const _0x477bcb=_0xd907e1['markers']['get']('revision:'+_0x2b32b5['id']),_0x54459d=_0xd907e1['markers']['get']('revision:'+_0x31d9aa['id']);return _0x477bcb['start']['isBefore'](_0x54459d['start'])?-0x1:_0x477bcb['start']['isAfter'](_0x54459d['start'])?0x1:_0x477bcb['end']['isBefore'](_0x54459d['end'])?-0x1:_0x477bcb['end']['isAfter'](_0x54459d['end'])?0x1:'add'===_0x2b32b5['type']?-0x1:0x1;}),{'root':_0xd907e1,'changes':_0x38e113};function _0x207a80(_0x2ebc7a,_0x237b4f,_0x3b4ee1,_0x3b1caf){const _0x1394ff=!!_0x1859b1[_0x237b4f][_0x2ebc7a],_0x461192=_0x1394ff?_0x1859b1[_0x237b4f][_0x2ebc7a]['userId']:null,_0x4dcdee=_0x237b4f===_0x1859b1['length']-0x1,_0x395ab4=_0x48004c[_0x2ebc7a][0x0],_0x541846=_0x29f31f['isObject'](_0x1859b1[_0x237b4f]['item']);!_0x3662f5[_0x2ebc7a]&&_0x1394ff?_0x3662f5[_0x2ebc7a]={'start':_0x3b4ee1,'tapeItem':_0x1859b1[_0x237b4f],'userId':_0x461192,'type':_0x2ebc7a}:_0x3662f5[_0x2ebc7a]&&!_0x1394ff?(_0x3662f5[_0x2ebc7a]['end']=_0x3b4ee1,_0x3163a0(_0x3662f5[_0x2ebc7a]),_0x3662f5[_0x2ebc7a]=null):_0x3662f5[_0x2ebc7a]&&_0x1394ff&&_0x3662f5[_0x2ebc7a]['userId']!==_0x461192&&(_0x3662f5[_0x2ebc7a]['end']=_0x3b4ee1,_0x395ab4&&_0x395ab4['userId']===_0x3662f5[_0x2ebc7a]['userId']||_0x3163a0(_0x3662f5[_0x2ebc7a]),_0x3662f5[_0x2ebc7a]={'start':_0x3b4ee1,'tapeItem':_0x1859b1[_0x237b4f],'userId':_0x461192,'type':_0x2ebc7a}),_0x3662f5[_0x2ebc7a]&&_0x541846&&('elementStart'!==_0x1859b1[_0x237b4f]['type']||_0x395ab4&&_0x395ab4['userId']===_0x461192||_0x48004c[_0x2ebc7a]['unshift']({'userId':_0x461192,'object':_0x1859b1[_0x237b4f]['item'],'change':_0x3662f5[_0x2ebc7a]}),'elementEnd'===_0x1859b1[_0x237b4f]['type']&&_0x395ab4&&_0x395ab4['object']===_0x1859b1[_0x237b4f]['item']&&(_0x48004c[_0x2ebc7a]['shift'](),_0x3662f5[_0x2ebc7a]=_0x395ab4['change'])),_0x3662f5[_0x2ebc7a]&&_0x4dcdee&&(_0x3662f5[_0x2ebc7a]['end']=_0x3b1caf,_0x3163a0(_0x3662f5[_0x2ebc7a]),_0x3662f5[_0x2ebc7a]=null);}function _0x3163a0({start:_0x5f0091,end:_0x1631b,tapeItem:_0x5e5bf5,userId:_0x400cd9,type:_0x19b2bc}){const _0x554e81=_0x5e5bf5['item'],_0xc3488e=_0x31df55['schema']['isBlock'](_0x554e81)&&!_0x31df55['schema']['isLimit'](_0x554e81),_0x3a0b63=_0x5f0091['nodeAfter']==_0x1631b['parent']&&_0x1631b['isAtStart'];if(_0xc3488e&&_0x3a0b63)return;const _0xa64c82=_0x31df55['createRange'](_0x5f0091,_0x1631b),_0x4e9acc=_0xc275d3['get'](_0x400cd9),_0x4716a5=new G({'author':_0x4e9acc,'type':'isAdded'==_0x19b2bc||'isAddSuggestion'==_0x19b2bc?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x19b2bc||'isRemoveSuggestion'==_0x19b2bc},'createdAt':new Date(),'rootName':_0x164f60});_0x38e113['push'](_0x4716a5),_0xd907e1['markers']['set']('revision:'+_0x4716a5['id'],_0xa64c82);}function _0x1aa55a(_0x2d0d8b,_0x75b31f){const _0xf97698=_0x2d0d8b['getAttributes'](),_0x9b36de=_0x75b31f['getAttributes']();for(const _0x1b1e39 of _0xf97698){if(_0x1b1e39[0x1]!==_0x75b31f['getAttribute'](_0x1b1e39[0x0]))return!0x1;_0x9b36de['next']();}return _0x9b36de['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x5480aa=>{const _0x3d1983=_0x5480aa['markerName']['split'](':')[0x1],_0x250b6c=this['_getChangeFromId'](_0x3d1983);if(!_0x250b6c)return null;const _0x1b7fa8='add'==_0x250b6c['type']?'insertion':'deletion',_0x3ac025=['ck-suggestion-marker','ck-suggestion-marker-'+_0x1b7fa8];return _0x250b6c['data']['isSuggestion']&&_0x3ac025['push']('ck-suggestion-marker-'+_0x1b7fa8+'-new'),this['activeChange']==_0x250b6c&&_0x3ac025['push']('ck-suggestion-marker--active'),{'classes':_0x3ac025,'attributes':{'data-change-id':_0x3d1983}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x1e583c=>{_0x1e583c['on']('element:pre',(_0x30b60c,_0x498461,_0x2eba30)=>{const _0x39b20e=_0x498461['viewItem']['getChild'](0x0);if(!_0x39b20e||!_0x39b20e['is']('element','code'))return;if(!_0x2eba30['consumable']['consume'](_0x39b20e,{'attributes':['vid_start','vid_end']}))return;const _0x44954b=_0x498461['modelRange']['start']['nodeAfter'];_0x2eba30['writer']['setAttribute']('vid_start',_0x39b20e['getAttribute']('vid_start'),_0x44954b),_0x2eba30['writer']['setAttribute']('vid_end',_0x39b20e['getAttribute']('vid_end'),_0x44954b);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x4c21d8=>{_0x4c21d8['on']('element',(_0x56a99c,_0x58fe5a,_0xf3971d)=>{if(!_0xf3971d['consumable']['consume'](_0x58fe5a['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x58fe5a['modelRange']['isCollapsed'])return;const _0x52505f=_0x58fe5a['modelRange']['start']['nodeAfter'];_0x52505f['hasAttribute']('vid_start')||_0x52505f['hasAttribute']('vid')||(_0xf3971d['writer']['setAttribute']('vid_start',_0x58fe5a['viewItem']['getAttribute']('vid_start'),_0x52505f),_0xf3971d['writer']['setAttribute']('vid_end',_0x58fe5a['viewItem']['getAttribute']('vid_end'),_0x52505f));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x3408f0=>_0x3408f0['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x151ec6,[,_0x5ea6ca])=>{['vid_start','vid_end','vid']['includes'](_0x5ea6ca)&&(_0x151ec6['return']=!0x0,_0x151ec6['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x2f0d05=>{_0x2f0d05['on']('attribute:vid',(_0x264635,_0x30db87,_0x41f477)=>{if('\x20'!=_0x30db87['item']['data']||_0x30db87['item']['parent']['maxOffset']>0x1)return;if(!_0x41f477['consumable']['consume'](_0x30db87['item'],_0x264635['name']))return;const _0xf19d24=_0x41f477['writer'],_0x4b8a37=_0x41f477['mapper']['toViewRange'](_0x30db87['range']);_0xf19d24['wrap'](_0x4b8a37,_0xf19d24['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x44eed4){const _0x5d58bc=_0x44eed4['plugins']['get']('RevisionViewer');return(_0x48315d,_0x1ecf43,_0x213980)=>{const _0x178b2a=_0x1ecf43['markerName']['split'](':')[0x1],_0x1ad5c2=_0x5d58bc['_getChangeFromId'](_0x178b2a);if(!_0x1ad5c2)return null;const _0x5490c8='add'==_0x1ad5c2['type']?'split':'merge';if(!_0x213980['consumable']['test'](_0x1ecf43['markerRange'],_0x48315d['name']))return;const _0x336298=_0x1ecf43['markerRange']['getWalker'](),_0x595ca0=_0x1ecf43['markerRange']['start'],_0x420dec=_0x44eed4['model']['schema'];let _0x4c08d1=null,_0x3cd752=null,_0x476ed0=!0x1,_0x51dfa0=!0x1;for(const _0x22e173 of _0x336298){const _0x193781=_0x22e173['item'];_0x476ed0=_0x476ed0||_0x420dec['isContent'](_0x193781);const _0x71bb01=_0x213980['mapper']['toViewElement'](_0x193781);if(_0x71bb01&&_0x71bb01['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x22e173['type']&&(_0x420dec['isBlock'](_0x193781)&&!_0x420dec['isLimit'](_0x193781)&&(_0x193781['nextSibling']||_0x595ca0['isAtEnd']?_0x4c08d1&&_0x4c08d1['parent']==_0x193781||(_0x4c08d1=_0x193781,_0x2185b6(_0x22e173['previousPosition']),_0x51dfa0=!0x0):_0x3cd752=_0x3cd752||_0x22e173['previousPosition']));}function _0x2185b6(_0x5cc547){const _0x34acc8=_0x213980['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5490c8}),_0x553bec=_0x213980['mapper']['toViewPosition'](_0x5cc547);_0x1ad5c2['data']['isSuggestion']&&_0x213980['writer']['addClass']('ck-suggestion-marker-'+_0x5490c8+'-new',_0x34acc8),_0x5d58bc['activeChange']==_0x1ad5c2&&_0x213980['writer']['addClass']('ck-suggestion-marker--active',_0x34acc8),_0x213980['writer']['insert'](_0x553bec,_0x34acc8),_0x213980['mapper']['bindElementToMarker'](_0x34acc8,_0x1ecf43['markerName']);}_0x476ed0||_0x51dfa0||!_0x3cd752||_0x2185b6(_0x3cd752);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x24bc88,_0x465f92,_0x452d28)=>{const _0x18b4ba=_0x452d28['mapper']['markerNameToElements'](_0x465f92['markerName']);if(_0x18b4ba){for(const _0x5e7066 of _0x18b4ba)(_0x5e7066['hasClass']('ck-suggestion-marker-split')||_0x5e7066['hasClass']('ck-suggestion-marker-merge'))&&(_0x452d28['mapper']['unbindElementFromMarkerName'](_0x5e7066,_0x465f92['markerName']),_0x452d28['writer']['remove'](_0x5e7066));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x213ff9,_0x583dfc,_0x55c73c)=>{const _0x1acfee=_0x583dfc['markerName']['split'](':')[0x1],_0xe64a87=this['_getChangeFromId'](_0x1acfee);if(!_0xe64a87)return null;const _0x239e91='add'==_0xe64a87['type']?'split':'merge';if(_0x55c73c['consumable']['test'](_0x583dfc['markerRange'],_0x213ff9['name']))for(const _0x4eacfd of _0x583dfc['markerRange']['getItems']()){if(!_0x4eacfd['is']('element','softBreak'))continue;const _0x4235de=_0x55c73c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x239e91}),_0x21128f=_0x55c73c['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x4eacfd));_0xe64a87['data']['isSuggestion']&&_0x55c73c['writer']['addClass']('ck-suggestion-marker-'+_0x239e91+'-new',_0x4235de),this['activeChange']==_0xe64a87&&_0x55c73c['writer']['addClass']('ck-suggestion-marker--active',_0x4235de),_0x55c73c['writer']['insert'](_0x21128f,_0x4235de),_0x55c73c['mapper']['bindElementToMarker'](_0x4235de,_0x583dfc['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x521fdd=>{for(const _0x5caf04 of this['editor']['model']['document']['getRootNames']()){const _0x2016a5=this['editor']['model']['document']['getRoot'](_0x5caf04),_0x5b14e2=this['editor']['editing']['view']['document']['getRoot'](_0x5caf04);if(_0x5b14e2){const _0x2b80e5=_0x2016a5['getAttribute']('revisionHistoryAttachChange');if(_0x521fdd['removeAttribute']('data-change-id',_0x5b14e2),_0x521fdd['removeClass']('ck-revision-history-root-add',_0x5b14e2),_0x521fdd['removeClass']('ck-revision-history-root-remove',_0x5b14e2),_0x521fdd['removeClass']('ck-revision-history-root--active',_0x5b14e2),_0x2b80e5){const _0x164a79=this['_getChangeFromId'](_0x2b80e5);if(!_0x164a79)return null;_0x521fdd['setAttribute']('data-change-id',_0x2b80e5,_0x5b14e2),_0x521fdd['addClass']('ck-revision-history-root-'+_0x164a79['type'],_0x5b14e2),this['activeChange']==_0x164a79&&_0x521fdd['addClass']('ck-revision-history-root--active',_0x5b14e2);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0xe75430=>'revision-comment:'+_0xe75430,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x5c5fda=>'revision-suggestion:'+_0x5c5fda,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x10642b=>({'name':'suggestion:'+_0x10642b,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x23afd9=>{const _0x4e6fe3=_0x23afd9['markerName']['split'](':')[0x1];return'insertion'!=_0x4e6fe3&&'deletion'!=_0x4e6fe3?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x4e6fe3]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Q(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Q(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x5eb4af,_0x2a5fd9,_0x3f2d77)=>{const _0xfbe090=_0x3f2d77['mapper']['markerNameToElements'](_0x2a5fd9['markerName']);if(_0xfbe090){for(const _0x4f5e2f of _0xfbe090)_0x4f5e2f['is']('uiElement')&&(_0x3f2d77['mapper']['unbindElementFromMarkerName'](_0x4f5e2f,_0x2a5fd9['markerName']),_0x3f2d77['writer']['remove'](_0x4f5e2f));}},{'priority':'high'});}['_getChangeFromId'](_0x3f8ec4){return this['_changeIdToChange']['get'](_0x3f8ec4);}['_getViewForChange'](_0x5da5c3){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x5da5c3),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x3acafd,_0x2d81bf,_0x53e54f,_0x3a4b92)=>{_0x3a4b92&&this['_balloon']['remove'](_0x3a4b92),_0x53e54f&&(this['_balloon']['add']({'view':_0x53e54f,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x5f2d5f=this['editor']['editing'],_0x470654=this['_getChangeFromId'](_0x53e54f['changeId']);let _0x9b7ba5;if(_0x470654['data']['isOnRoot']){const _0x15650e=_0x5f2d5f['view']['getDomRoot'](_0x470654['rootName']);_0x9b7ba5=Array['from'](_0x15650e['getClientRects']());}else{const _0xc81e3=this['editor']['model']['markers']['get']('revision:'+_0x53e54f['changeId']);_0x9b7ba5=Array['from'](_0x5f2d5f['mapper']['markerNameToElements'](_0xc81e3['name']))['map'](_0x32f4c6=>_0x5f2d5f['view']['domConverter']['mapViewToDom'](_0x32f4c6))['map'](_0x36367f=>Array['from'](_0x36367f['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x9b7ba5[0x0];return _0x9b7ba5['find'](_0x31ddac=>_0x31ddac['top']-0x3<=this['_activeViewTarget']['y']&&_0x31ddac['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x31ddac['left']-0x3<=this['_activeViewTarget']['x']&&_0x31ddac['right']+0x3>=this['_activeViewTarget']['x'])||_0x9b7ba5[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x212177,_0xa0246e,_0x34e221,_0x23c8e3)=>{this['activeView']=_0x34e221?this['_getViewForChange'](_0x34e221):null,this['editor']['model']['change'](()=>{const _0x5c2191=this['editor']['editing'];_0x23c8e3&&(_0x23c8e3['data']['isOnRoot']?_0x5c2191['view']['change'](_0x4aa4bb=>{_0x4aa4bb['removeClass']('ck-revision-history-root--active',_0x5c2191['view']['document']['getRoot'](_0x23c8e3['rootName']));}):_0x5c2191['reconvertMarker']('revision:'+_0x23c8e3['id'])),_0x34e221&&(_0x34e221['data']['isOnRoot']?_0x5c2191['view']['change'](_0x41abb5=>{_0x41abb5['addClass']('ck-revision-history-root--active',_0x5c2191['view']['document']['getRoot'](_0x34e221['rootName']));}):_0x5c2191['reconvertMarker']('revision:'+_0x34e221['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x29bb05,_0x5ebb60)=>{if(this['activeChange'])return;const _0x21ebb8=this['_findChangeIdFromDomTarget'](_0x5ebb60['target']),_0x211bd3=this['_changeIdToChange']['get'](_0x21ebb8);_0x211bd3?(this['_activeViewTarget']={'x':_0x5ebb60['domEvent']['x'],'y':_0x5ebb60['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x211bd3)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x5b1b29,_0xf4603c)=>{const _0x22eef4=this['_findChangeIdFromDomTarget'](_0xf4603c['target']),_0x4deb20=this['_changeIdToChange']['get'](_0x22eef4);_0x4deb20?(this['_activeViewTarget']={'x':_0xf4603c['domEvent']['x'],'y':_0xf4603c['domEvent']['y']},_0x4deb20===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x4deb20):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x3ca9ea){do{const _0x13bf6f=_0x3ca9ea['getAttribute']('data-change-id');if(_0x13bf6f)return _0x13bf6f;_0x3ca9ea=_0x3ca9ea['parent'];}while(_0x3ca9ea);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x1356ae=>{for(const _0x1542f5 of this['editor']['model']['markers'])_0x1356ae['removeMarker'](_0x1542f5);});}}function Q(_0x2a36cf,_0xae4b08){return(_0x1543e3,_0x370521,_0x25c8aa)=>{if(!_0x25c8aa['consumable']['test'](_0x370521['markerRange'],_0x1543e3['name']))return;const _0x5ef310=_0x370521['markerRange']['getWalker'](),_0x2b57f8=_0x370521['markerRange']['start'],_0x24d957=_0x2a36cf['model']['schema'];let _0x5c5ff5=null,_0x411ae0=null,_0x2973f5=!0x1,_0x4e2334=!0x1;for(const _0x452dad of _0x5ef310){const _0x245aac=_0x452dad['item'];_0x2973f5=_0x2973f5||_0x24d957['isContent'](_0x245aac);const _0x27f3ae=_0x25c8aa['mapper']['toViewElement'](_0x245aac);if(_0x27f3ae&&_0x27f3ae['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x452dad['type']&&(_0x24d957['isBlock'](_0x245aac)&&!_0x24d957['isLimit'](_0x245aac)&&(_0x245aac['nextSibling']||_0x2b57f8['isAtEnd']?_0x5c5ff5&&_0x5c5ff5['parent']==_0x245aac||(_0x5c5ff5=_0x245aac,_0x140ff6(_0x452dad['previousPosition']),_0x4e2334=!0x0):_0x411ae0=_0x411ae0||_0x452dad['previousPosition']));}function _0x140ff6(_0x5a26f6){const _0x382bb0=_0x25c8aa['mapper']['toViewPosition'](_0x5a26f6),_0x465028=_0x25c8aa['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0xae4b08});_0x25c8aa['writer']['insert'](_0x382bb0,_0x465028),_0x25c8aa['mapper']['bindElementToMarker'](_0x465028,_0x370521['markerName']);}_0x2973f5||_0x4e2334||!_0x411ae0||_0x140ff6(_0x411ae0);};}class nt extends _0x17b0d9{constructor(_0x1efe09){super(_0x1efe09);const _0x2bc13e=_0x1efe09['plugins']['get'](u);this['affectsData']=!0x1,this['listenTo'](_0x2bc13e,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x2bc13e,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x32e006=this['editor'],_0x439e95=_0x32e006['plugins']['get'](u),_0x52cefa=_0x439e95['isReady']?_0x439e95['diff']['newRevisionId']:null;_0x32e006['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x52cefa);}['refresh'](){const {isReady:_0x12859e,isEnabled:_0x19efdc,repository:_0x3026a4,diff:_0x466b83}=this['editor']['plugins']['get'](u),_0x4c6960=_0x466b83&&_0x3026a4['getLaterVisibleRevision'](_0x466b83['newRevisionId']);this['isEnabled']=_0x12859e&&_0x19efdc&&Boolean(_0x4c6960);}}class rt extends _0x17b0d9{['_step'];constructor(_0x475e25,{direction:_0x4c918f}){super(_0x475e25);const _0x1f21eb=_0x475e25['plugins']['get'](u);this['affectsData']=!0x1,this['_step']='forward'===_0x4c918f?0x1:-0x1,this['listenTo'](_0x1f21eb,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x1f21eb,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x1f21eb,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x33a99f=this['editor'],_0x19941f=_0x33a99f['plugins']['get'](u),{isNavigationMode:_0x49ff99,currentChangeNumber:_0x2edee0}=_0x19941f;let _0x140d9d;if(_0x19941f['activeChange']=_0x49ff99?_0x19941f['diff']['changes']['get'](_0x2edee0+this['_step']):_0x19941f['diff']['changes']['first'],_0x19941f['activeChange']['data']['isOnRoot'])_0x140d9d=_0x33a99f['editing']['view']['getDomRoot'](_0x19941f['activeChange']['rootName']);else{const _0x2c9d81=_0x33a99f['model']['markers']['get']('revision:'+_0x19941f['activeChange']['id']);_0x140d9d=_0x1c2c9f(_0x33a99f['editing'],_0x2c9d81);}_0x7f380f({'target':_0x140d9d,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0xfc643e,currentChangeNumber:_0x276c03,numberOfChanges:_0x1b6a59,isReady:_0x123ade,isEnabled:_0x57a440}=this['editor']['plugins']['get'](u);this['isEnabled']=!!(_0x57a440&&_0x123ade&&_0x1b6a59)&&(!_0xfc643e||(0x1===this['_step']?_0x276c03<_0x1b6a59-0x1:_0x276c03>0x0));}}class Ri extends _0x225925{constructor(_0x174e64){super(_0x174e64);const _0x31313b=this['bindTemplate'],_0xa2dcff=new _0x220221(_0x174e64),_0x428f06=new _0x220221(_0x174e64);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',(_0x2da6e2,_0x4d8da0)=>_0x2da6e2&&_0x4d8da0>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x3b3b70,_0x50df01,_0x4ccb54,_0x28578d)=>{if(!_0x3b3b70)return m(_0x174e64,'Loading...');if(!_0x4ccb54)return m(_0x174e64,'No\x20changes');const _0x2aea7=m(_0x174e64,'NUMBER_OF_CHANGES',_0x4ccb54);return _0x28578d?m(_0x174e64,'X_OF_Y_CHANGES',[_0x50df01+0x1,_0x4ccb54]):_0x2aea7;}),_0xa2dcff['set']({'label':m(_0x174e64,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x316839}),_0x428f06['set']({'label':m(_0x174e64,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x1f534e}),_0xa2dcff['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x428f06['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0xa2dcff['on']('execute',()=>this['fire']('execute','backward')),_0x428f06['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',_0x31313b['if']('_isStatusLabelVisible','ck-hidden',_0x3f39b7=>!_0x3f39b7)]},'children':[{'text':_0x31313b['to']('isNavigationMode',_0x483dfb=>_0x483dfb?m(_0x174e64,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x174e64,'Total')+':\x20')}]},{'text':_0x31313b['to']('_statusText')}]},new _0x3c0da6(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0xa2dcff,_0x428f06]}]});}}const ge='ck-editor__editable__loading-overlay';class ji extends _0x218037{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x34ef5a=this['editor']['editing']['view'];_0x34ef5a['change'](_0x5e2528=>{for(const _0x92d672 of _0x34ef5a['document']['roots'])_0x5e2528['addClass'](ge,_0x92d672);});}['hide'](){const _0x57a97d=this['editor']['editing']['view'];_0x57a97d['change'](_0x55855d=>{for(const _0x168d35 of _0x57a97d['document']['roots'])_0x55855d['removeClass'](ge,_0x168d35);});}}class v extends _0x218037{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,ji];}['init'](){const _0x545e4d=this['editor'],_0x4b3e94=_0x545e4d['plugins']['get'](u),_0x1a31e2=_0x545e4d['plugins']['get'](ji);_0x545e4d['ui']['componentFactory']['add']('exitToEditing',_0x525476=>{const _0x49761d=new _0x220221(_0x525476);return _0x49761d['set']({'label':m(_0x525476,'Back\x20to\x20editing'),'icon':_0xa53bdc,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x49761d,'execute',()=>{_0x545e4d['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x49761d;}),_0x545e4d['ui']['componentFactory']['add']('restoreRevision',_0x15640b=>{const _0x54d3bf=new _0x220221(_0x15640b);return _0x54d3bf['set']({'label':m(_0x15640b,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x54d3bf['bind']('isEnabled')['to'](_0x545e4d['commands']['get']('restoreRevision')),this['listenTo'](_0x54d3bf,'execute',()=>_0x545e4d['execute']('restoreRevision')),_0x54d3bf;}),_0x545e4d['ui']['componentFactory']['add']('changesNavigation',_0x17a465=>{const _0x2376ca=new Ri(_0x17a465),_0x3ccf1b=_0x545e4d['commands']['get']('showPreviousChange'),_0x509556=_0x545e4d['commands']['get']('showNextChange');return _0x2376ca['bind']('isBackwardNavigationEnabled')['to'](_0x3ccf1b,'isEnabled'),_0x2376ca['bind']('isForwardNavigationEnabled')['to'](_0x509556,'isEnabled'),_0x2376ca['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x4b3e94),this['listenTo'](_0x2376ca,'execute',(_0xa7dc61,_0x53c146)=>{_0x545e4d['execute']('forward'===_0x53c146?'showNextChange':'showPreviousChange');}),_0x2376ca;}),_0x1a31e2['show'](),_0x4b3e94['on']('change:isReady',(_0x4525af,_0x16a6e6,_0x2f5823)=>{_0x2f5823?_0x1a31e2['hide']():_0x1a31e2['show']();});}}class hi extends et{['_resizeObserver']=null;constructor(_0x1fd15c,_0x1f7102){super(_0x1fd15c,_0x1f7102);const _0x1cd0f5=this['bindTemplate'];this['set']({'label':m(_0x1fd15c,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x1fd15c,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x1cd0f5['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new ot(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x2ecec6=this['fieldView']['element'];this['_tooltipString']=_0x2ecec6['scrollWidth']>_0x2ecec6['clientWidth']&&_0x2ecec6['value']||'';}}class ni extends _0x225925{constructor(_0x3a5d9e,_0xf98e75,_0x38aa69){super(_0x3a5d9e);const _0x24683f=new _0x9797be();_0x24683f['set']({'content':_0x374f5e,'viewBox':'0\x200\x2011\x2010'});const _0x582ba6=['ck','ck-revision-history-sidebar__revision-author'];_0x38aa69&&_0x582ba6['push']('ck-revision-history-sidebar__revision-author_creator');const _0x4465d9=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x3a5d9e,_0x38aa69?'Revision\x20creator':'Revision\x20author')},'children':[_0x24683f,_0xf98e75['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x582ba6},'children':_0x4465d9});}}function ai(_0x515a47,_0x1e2c08){const _0x502039=_0x515a47['bindTemplate'],_0x2d9b4f=_0x515a47['locale'],_0x416dd4=_0x5a9ba8(_0x2d9b4f);_0x416dd4['panelPosition']='sw';const _0xb50489=function(_0xba74d,_0x1c8aae){const _0x48c0e5=function(_0x1cc53b,_0x2ff318){const _0x12f194=_0x1cc53b['locale'],_0x43fd4a={'Compare\x20against\x20selected':m(_0x12f194,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x12f194,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x12f194,'Restore\x20this\x20revision')};return _0x2ff318['map'](_0x26aa70=>{const _0x3a2c6b=_0x43fd4a[_0x26aa70['name']];return _0x3a2c6b&&_0x3a2c6b!==_0x26aa70['name']&&(_0x26aa70['name']=_0x3a2c6b),_0x26aa70;});}(_0xba74d,_0x1c8aae),_0x4ab1b0=new _0x2df1dc();for(const _0x38bc01 of _0x48c0e5){const _0x307164={'type':'button','model':new to({'label':_0x38bc01['name'],'class':_0x38bc01['class'],'withText':!0x0,'role':'menuitem','_action':_0x38bc01['action']})};_0x307164['model']['bind']('isEnabled')['to'](_0xba74d,'isActionsDropdownOpen',_0x44e3c4=>'function'!=typeof _0x38bc01['isEnabled']||(!_0x44e3c4||_0x38bc01['isEnabled'](_0xba74d))),_0x4ab1b0['add'](_0x307164);}return _0x4ab1b0;}(_0x515a47,_0x1e2c08);return _0x515a47['bind']('isActionsDropdownOpen')['to'](_0x416dd4,'isOpen'),_0x416dd4['buttonView']['set']({'label':m(_0x2d9b4f,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x33ef6f}),_0x416dd4['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x502039['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x502039['to'](_0x18abfe=>_0x18abfe['stopPropagation']())}}),_0x416dd4['on']('execute',_0x4fcebf=>{_0x515a47['isReady']&&'function'==typeof _0x4fcebf['source']['_action']&&_0x4fcebf['source']['_action'](_0x515a47);}),_0x2ea067(_0x416dd4,_0xb50489,{'role':'menu'}),_0x416dd4['listenTo'](_0x515a47,'change:isActionsDropdownOpen',(_0x28d082,_0xf455d4,_0x212a40)=>{if(_0x212a40)for(const _0x74de65 of _0x416dd4['listView']['items']){const _0x550320=_0x74de65['children']['first'],_0x24b4dd=_0x1e2c08['find'](_0x5d500c=>_0x5d500c['action']===_0x550320['_action'])['isVisible'];_0x74de65['isVisible']=void 0x0===_0x24b4dd||_0x24b4dd(_0x515a47);}}),_0x416dd4;}class vi extends/* #__PURE__ -- @preserve */
|
|
27
|
+
_0x2843a3(_0x225925){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0xf4a19,_0x353509,_0x4a517e,_0x4f2a8d){super(_0xf4a19);const _0x1da649=this['bindTemplate'],_0x119566=function(_0x2e5286,_0x45cd79){const _0x197f3d=Array['from'](_0x45cd79['authors'])['filter'](_0x2d625e=>_0x2d625e!=_0x45cd79['creator']);return _0x45cd79['creator']&&_0x197f3d['unshift'](_0x45cd79['creator']),_0x197f3d['map'](_0x513035=>new ni(_0x2e5286,_0x513035,_0x513035==_0x45cd79['creator']));}(_0xf4a19,_0x353509);this['id']=_0x353509['id'],this['_revision']=_0x353509,this['_requireRevisionName']=_0x4f2a8d,this['bind']('name','createdAt')['to'](_0x353509),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x1bba72=>{return _0x36e4ca=_0xf4a19['uiLanguage'],(_0x119667=_0x1bba72)['toLocaleDateString'](_0x36e4ca,{'month':'long','day':'numeric'})+',\x20'+_0x119667['toLocaleTimeString'](_0x36e4ca,{'hour':'numeric','minute':'numeric'});var _0x36e4ca,_0x119667;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new hi(_0xf4a19,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x554932=>_0x554932||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x2ff5f3,_0x5646ab)=>_0x2ff5f3&&_0x5646ab),this['revisionActionsView']=_0x4a517e&&_0x4a517e['length']?ai(this,_0x4a517e):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x1da649['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x1da649['if']('isEnabled','ck-disabled',_0x1c19bb=>!_0x1c19bb),_0x1da649['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x1da649['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x1da649['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':_0x1da649['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':_0x119566}]},this['revisionActionsView']],'on':{'click':_0x1da649['to'](_0x3b68ff=>{_0x3b68ff['srcElement']['closest']('.ck-confirm-view')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x3ba788=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x3ba788,'change',()=>{this['_requireRevisionName']&&!_0x3ba788['value']||this['fire']('setName',{'id':this['id'],'name':_0x3ba788['value']}),_0x3ba788['value']||(_0x3ba788['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function mi(_0x2d7520,_0x8156cd){const _0x231b74=_0x4b9911['fromJSDate'](_0x2d7520)['setLocale'](_0x8156cd),_0x4e2b75=_0x4b9911['local'](),_0x1d1b13=_0x4e2b75['minus']({'days':0x1})['startOf']('day');let _0x484a91,_0x36fac2;return _0x231b74['hasSame'](_0x4e2b75,'day')?(_0x484a91=_0x231b74['startOf']('day')['toJSDate'](),_0x36fac2=_0x231b74['toRelativeCalendar']()):_0x231b74['hasSame'](_0x1d1b13,'day')?(_0x484a91=_0x1d1b13['toJSDate'](),_0x36fac2=_0x231b74['toRelativeCalendar']()):_0x231b74['hasSame'](_0x4e2b75,'week')?(_0x484a91=_0x231b74['startOf']('week')['toJSDate'](),_0x36fac2=_0x231b74['weekdayLong']||''):_0x231b74['hasSame'](_0x4e2b75,'year')?(_0x484a91=_0x231b74['startOf']('month')['toJSDate'](),_0x36fac2=_0x231b74['monthLong']||''):(_0x484a91=_0x231b74['startOf']('year')['toJSDate'](),_0x36fac2=String(_0x231b74['year'])),{'startDate':_0x484a91,'localizedPeriodName':_0x36fac2};}class li extends _0x225925{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x380ae5,_0x351754,_0x41015d,_0x661e39){super(_0x380ae5);const _0x36c5e1=mi(_0x351754,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x351754,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x41015d,this['_requireRevisionName']=_0x661e39,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':_0x36c5e1}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x444038){const _0x571041=new vi(this['locale'],_0x444038,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x571041);}['removeRevision'](_0x4277fc){const _0xf97d15=this['revisionViews']['find'](_0x4b2c2a=>_0x4b2c2a['id']===_0x4277fc['id']);this['revisionViews']['remove'](_0xf97d15);}}class bi extends _0x225925{constructor(_0x36e343){super(_0x36e343);const _0x358838=new _0x9797be();_0x358838['content']=_0x387529,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x358838,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x36e343,'Revision\x20history')]}]});}}class di extends _0x225925{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x607365,_0x36003f,_0x1b5e66,_0x4e8e4a){super(_0x607365);const _0x3267cb=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x36003f,this['_revisionActions']=_0x1b5e66,this['_requireRevisionName']=_0x4e8e4a,this['on']('select',(_0xff0cb4,_0x22b6b4)=>{this['fire']('revisionSelected',_0x22b6b4);}),this['on']('setName',(_0x66222,_0x183cc3)=>{this['fire']('revisionSetName',_0x183cc3);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new bi(_0x607365),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x3267cb['if']('isEnabled','ck-disabled',_0x2099fd=>!_0x2099fd)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x45ad48 of this['_revisions'])this['_addRevision'](_0x45ad48);this['_revisions']['on']('add',(_0x2e3279,_0x441b80)=>{this['_addRevision'](_0x441b80);}),this['_revisions']['on']('remove',(_0x4ed00c,_0xc63f14)=>{this['_removeRevision'](_0xc63f14);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x92f252=>_0x92f252['revisionViews']['map'](_0x45ae8f=>_0x45ae8f))['flat']();}['selectRevision'](_0xb2529f){for(const _0x18967a of this['revisionViews'])_0xb2529f&&_0xb2529f['id']===_0x18967a['id']?_0x18967a['select']():_0x18967a['deselect']();}['highlightRevisions'](_0x88bd98){for(const _0x5b833f of this['revisionViews'])_0x88bd98['some'](({id:_0x1fd23})=>_0x1fd23===_0x5b833f['id'])?_0x5b833f['highlight']():_0x5b833f['unhighlight']();}['_addRevision'](_0x1c4726){const _0x25e2f4=mi(_0x1c4726['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0xf13c5c=this['timePeriodViews']['get'](0x0);_0xf13c5c&&_0xf13c5c['startDate']['getTime']()===_0x25e2f4['getTime']()||(_0xf13c5c=new li(this['locale'],_0x25e2f4,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0xf13c5c)),_0xf13c5c['addRevision'](_0x1c4726);}['_removeRevision'](_0x4f9bea){const _0x458919=mi(_0x4f9bea['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x458919)['removeRevision'](_0x4f9bea);}['_getTimePeriodViewByStartDate'](_0x3f7a6e){return this['timePeriodViews']['find'](_0x407532=>_0x407532['startDate']['getTime']()===_0x3f7a6e['getTime']());}}class d extends _0x218037{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
28
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
29
|
-
|
|
30
|
-
_0x54c1d7(_0x35e3d5){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x10a039,_0x4d626e){super(_0x4d626e),this['sourceElement']=_0x10a039,this['model']['document']['createRoot']();const _0x22ca69=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x22ca69);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x3ef662,_0x75c062){const _0x26956f=new this(_0x3ef662,_0x75c062);return await _0x26956f['initPlugins'](),await _0x26956f['ui']['init'](_0x3ef662),await _0x26956f['data']['init'](_0x26956f['config']['get']('initialData')||''),_0x26956f['fire']('ready'),_0x26956f;}}const p=['RevisionHistoryUI','RestrictedEditingMode','AIChat','AIReviewMode','AIBalloon','AIQuickActions','AIActions'];class at extends _0x5579a2{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x38320a){function _0x48288a(_0x366f13){return _0x366f13['map'](_0x156537=>String['fromCharCode'](_0x156537))['join']('');}super(_0x38320a),this['result']='end',_0x38320a[_0x48288a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x48288a([0x76,0x69,0x65,0x77])][_0x48288a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x48288a([0x61,0x75,0x74,0x6f]),_0x38320a[_0x48288a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x48288a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x48288a([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x48288a([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x48288a([0x6f,0x6b])});}}class ht extends _0x5579a2{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,l];}constructor(_0x30f147){if(super(_0x30f147),!this['editor']['config']['get']('revisionHistory'))throw new _0x4dc859('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x5eef5b=>this['_showRevisionViewer']({..._0x5eef5b,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0xbe3669=>this['_closeRevisionViewer'](_0xbe3669)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x3defed=>this['_restoreRevision'](_0x3defed)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x49607e){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x49607e;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x3b799f){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x3b799f);}['getRevision'](_0x2c2fad){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x2c2fad);}['getRevisions'](_0x5d471b){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x5d471b||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x810bd3=this['editor'],_0x19d53d=_0x1cd761(_0x810bd3,p),_0x833b2c=_0x810bd3['plugins']['get']('RevisionTracker'),_0x394b53=_0x810bd3['plugins']['get']('Users')['users'];return _0x19d53d['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x19d53d['lazyRoots'],(_0x19d53d['plugins']['push'](at,u,v,class extends _0x5579a2{static get['requires'](){return[u,'Users'];}['init'](){const _0x527b02=this['editor']['plugins']['get']('Users');for(const _0xaafbc3 of _0x394b53)_0xaafbc3['isAnonymous']||_0x527b02['getUser'](_0xaafbc3['id'])||_0x527b02['addUser'](_0xaafbc3);const _0x507ace=_0x833b2c['repository']['getRevisions']();let _0x3b030f=null;const _0x13478e=this['editor']['plugins']['get']('RevisionViewer');_0x13478e['adapter']=_0x833b2c['adapter'],_0x13478e['bind']('isEnabled')['to'](_0x833b2c),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x810bd3,'isReadOnly',_0x113eb7=>!_0x113eb7);for(const _0x1867df of _0x507ace){const _0x8bafb=null===_0x1867df['creator'];if(_0x8bafb&&_0x1867df['toVersion']===_0x1867df['fromVersion'])continue;const _0x4fe5f7=_0x1867df['toJSON']();_0x13478e['addRevisionData'](_0x4fe5f7,(_0x39f4a9,_0xaf8770,_0x4b840b)=>{if(_0x8bafb){if(_0x3b030f)_0x3b030f['_update'](_0x39f4a9,_0xaf8770);else{if(!_0xaf8770){const _0x31db87=_0x4b840b['toJSON']();_0x31db87['id']=_0x31880b(),_0x833b2c['saveRevision'](_0x31db87,_0x4b840b['toVersion'])['then'](_0x14f22d=>{_0x3b030f=_0x14f22d;});}}}else _0x1867df['_update'](_0x39f4a9,_0xaf8770);});}}},d),_0x19d53d);}['_enhanceShowRevisionViewerCallback'](){const _0x4205ee=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x5c29b0=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x2a5f5f=this['editor']['plugins']['get']('Autosave');await _0x2a5f5f['save']();}else await _0x5c29b0['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x30340f=this['editor']['plugins']['get']('Dialog');_0x30340f['isOpen']&&_0x30340f['hide']();}if(this['editor']['plugins']['has']('AITabs')){const _0x4a2bda=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x36b08b of _0x4a2bda)_0x36b08b['class']=_0x36b08b['class']?_0x36b08b['class']+'\x20ck-tab-panel_disabled':'ck-tab-panel_disabled';if(this['editor']['plugins']['has']('AIChat')){const _0x4f3497=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x4f3497&&_0x4f3497['setAttribute']('tabindex','-1');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x189042=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x189042&&_0x189042['setAttribute']('tabindex','-1');}}const _0x1fa79a=this['_getRevisionViewerEditorConfig']();return _0x4205ee(_0x1fa79a)['then'](_0x13042f=>{return(this['_viewerEditor']=_0x13042f,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),(this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']='none'),_0x13042f);})['catch'](_0x530c0d=>(console['error'](_0x530c0d),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x2bdf2b=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>{if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['editor']['plugins']['has']('AITabs')){const _0x598a07=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x3c0ea0 of _0x598a07)_0x3c0ea0['class']='ck-tab-panel_disabled'===_0x3c0ea0['class']?'':_0x3c0ea0['class']['replace']('\x20ck-tab-panel_disabled','');if(this['editor']['plugins']['has']('AIChat')){const _0x1e081c=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x1e081c&&_0x1e081c['removeAttribute']('tabindex');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x4d7e9c=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x4d7e9c&&_0x4d7e9c['removeAttribute']('tabindex');}}return this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x2bdf2b(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x2f85fd=this['editor']['plugins']['get']('Annotations');_0x2f85fd['refreshVisibility'](),_0x2f85fd['refreshPositioning']();}});});}['_showRevisionViewer'](_0x3f8703){const _0x5bb9f9=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x13420c=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x17fde7=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return f['create'](_0x17fde7,_0x3f8703)['then'](_0x204315=>(_0x13420c['style']['display']='block',_0x5bb9f9['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x204315));}['_closeRevisionViewer'](_0xcfc481){const _0x29ddc4=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x29ddc4['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0xcfc481['destroy']();}async['_restoreRevision'](_0x26d3b8){const _0x415caa=this['editor'],_0x5594e6=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x574946=_0x415caa['plugins']['get']('RevisionTracker'),_0x389764=_0x415caa['plugins']['get']('RevisionHistoryUtils'),_0x2cdaeb=_0x5594e6['repository']['getRevision'](_0x26d3b8);let _0x1296b3,_0x47d2c5,_0x5e5c60;try{await _0x389764['loadRevisionData'](_0x2cdaeb,this['adapter']),_0x1296b3=_0x389764['getRevisionDocumentData'](_0x2cdaeb),_0x47d2c5=_0x389764['getRevisionRootsAttributes'](_0x2cdaeb);}catch(_0x1ff29e){return void console['error'](_0x1ff29e);}_0x415caa['model']['change'](_0x1064b0=>{for(const _0x4f9591 of Array['from'](_0x415caa['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x1064b0['removeMarker'](_0x4f9591);}),_0x5594e6['isReady']=!0x1,_0x415caa['model']['enqueueChange'](_0x3cfab1=>{_0x3cfab1['setSelection'](null),_0x3cfab1['removeSelectionAttribute'](_0x415caa['model']['document']['selection']['getAttributeKeys']());const _0x5c2d3d=Object['keys'](_0x1296b3);for(const _0x2b7fe4 of _0x415caa['model']['document']['roots'])'$graveyard'!=_0x2b7fe4['rootName']&&_0x2b7fe4['isAttached']()&&!_0x5c2d3d['includes'](_0x2b7fe4['rootName'])&&_0x3cfab1['detachRoot'](_0x2b7fe4);for(const _0x24ea1c of _0x5c2d3d){let _0x5aebac=_0x415caa['model']['document']['getRoot'](_0x24ea1c);_0x5aebac&&_0x5aebac['isAttached']()||(_0x5aebac=_0x3cfab1['addRoot'](_0x24ea1c));const _0x47cdf9=_0x47d2c5[_0x24ea1c],_0x2bf89c=Object['keys'](_0x47cdf9),_0x3f2b97=_0x1296b3[_0x24ea1c];for(const _0x40b6cc of _0x5aebac['getAttributeKeys']())_0x2bf89c['includes'](_0x40b6cc)||_0x3cfab1['removeAttribute'](_0x40b6cc,_0x5aebac);for(const _0x41fd0d of _0x2bf89c)_0x3cfab1['setAttribute'](_0x41fd0d,_0x47d2c5[_0x24ea1c][_0x41fd0d],_0x5aebac);_0x3cfab1['remove'](_0x3cfab1['createRangeIn'](_0x5aebac)),_0x3cfab1['insert'](_0x415caa['data']['parse'](_0x3f2b97,_0x5aebac),_0x5aebac,0x0);}});const _0xd2e8=m(_0x415caa['locale'],'Restored');if(_0x2cdaeb['name'])_0x5e5c60=-0x1==_0x2cdaeb['name']['indexOf'](_0xd2e8)?_0xd2e8+':\x20'+_0x2cdaeb['name']:_0x2cdaeb['name'];else _0x5e5c60=_0xd2e8+':\x20'+(_0x2cdaeb['createdAt']['toLocaleDateString'](_0x415caa['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x2cdaeb['createdAt']['toLocaleTimeString'](_0x415caa['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x574946['saveRevision']({'name':_0x5e5c60}),_0x5594e6['isReady']=!0x0,_0x415caa['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{nt as RestoreRevisionCommand,I as Revision,ht as RevisionHistory,l as RevisionHistoryUI,$ as RevisionHistoryUtils,h as RevisionTracker,u as RevisionViewer,f as RevisionViewerEditor,at as RevisionViewerIntegration,fi as RevisionViewerLoadingOverlay,v as RevisionViewerUI,S as RevisionsRepository,d as RevisionsSidebar,ot as ShowChangeCommand};
|
|
29
|
+
at();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}constructor(_0x330223){super(_0x330223),this['_revisionViewer']=_0x330223['plugins']['get'](u),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x2d2cd7=this['_revisionsRepository']['_revisions'],_0x1ecec3=this['_createRevisionActions'](),_0x356a18=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new di(this['editor']['locale'],_0x2d2cd7,_0x1ecec3,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',(_0x3459f0,_0x588b49)=>{_0x588b49['revisionViews']['on']('add',(_0x483e45,_0x2e1e78)=>{_0x2e1e78['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)),_0x356a18['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x2dd63f=this['_revisionsRepository']['getRevision'](0x0);if(_0x2dd63f){const _0x1169d1=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x2dd63f['id']);this['_revisionViewer']['compare'](_0x2dd63f,_0x1169d1);}}['_handleRevisionSelected'](_0x330867,_0x3cd34d){const _0x55a131=this['_revisionsRepository']['getRevision'](_0x3cd34d['id']),_0x3497ed=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x55a131['id']);this['_revisionViewer']['compare'](_0x55a131,_0x3497ed);}['_handleRevisionSetName'](_0x18b3e8,_0x4fdd3c){this['_revisionsRepository']['getRevision'](_0x4fdd3c['id'])['setName'](_0x4fdd3c['name']);}['_handleDiffChange'](_0x57cbeb,_0xe8007c,_0x301f60){const _0x48357b=this['_revisionsRepository']['getRevisionsInDiff'](_0x301f60);_0x48357b['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x48357b),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x48357b[0x0]));}['_createRevisionActions'](){const _0x57ba01=this['editor'],_0x5e3b61=d['availableRevisionActions'],_0x18a8a0=_0x57ba01['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x18a8a0['length'])return _0x18a8a0['map'](_0x17c9e3=>{const _0x20dd4e='string'==typeof _0x17c9e3?Object['assign']({},_0x5e3b61[_0x17c9e3]):_0x17c9e3;return _0x20dd4e['action']=_0x20dd4e['action']['bind'](this,_0x57ba01),_0x20dd4e['isVisible']&&(_0x20dd4e['isVisible']=_0x20dd4e['isVisible']['bind'](this,_0x57ba01)),_0x20dd4e;});}}function at(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x563aee},_0x35be84)=>{const _0x2c2c53=_0x563aee['get'](u),_0xca4f57=_0x2c2c53['repository'];let _0xf41b16=_0x2c2c53['diff']['newRevisionId'],_0x20f502=_0x35be84['id'];_0xca4f57['getIndex'](_0xf41b16)>_0xca4f57['getIndex'](_0x20f502)&&([_0xf41b16,_0x20f502]=[_0x20f502,_0xf41b16]),_0x2c2c53['compare'](_0xf41b16,_0x20f502);},'isVisible':({plugins:_0xbd8432},_0x3b2d8b)=>{const _0x417933=_0xbd8432['get'](u);return!(_0x417933['repository']['getRevisionsInDiff'](_0x417933['diff'])['length']>0x2)&&!_0x3b2d8b['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x144a2d,{id:_0x995c4a})=>{_0x144a2d['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x995c4a);},'isVisible':({plugins:_0x428cbd},_0x3cc3e1)=>!!_0x428cbd['get'](u)['repository']['getLaterVisibleRevision'](_0x3cc3e1['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x35a6da},{id:_0x28d625,revisionNameView:_0x1f7619})=>{const _0x46774d=_0x35a6da['get'](u),_0x14920b=_0x46774d['repository']['getEarlierVisibleRevision'](_0x28d625);_0x46774d['compare'](_0x28d625,_0x14920b),_0x1f7619['focus'](),_0x1f7619['fieldView']['select']();}}};}class Z extends tt{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x514c4d,_0x4fba8e){super(_0x514c4d),this['_view']=_0x4fba8e,this['_toolbarConfig']=st(_0x514c4d['config']['get']('toolbar')),this['_elementReplacer']=new it();}get['element'](){return this['view']['element'];}['init'](_0x2ba0b7){const _0x4138c9=this['editor'],_0x466891=this['view'],_0x27edcb=_0x4138c9['editing']['view'],_0xe29779=_0x466891['editable'],_0x241d51=_0x27edcb['document']['getRoot']();_0xe29779['name']=_0x241d51['rootName'],_0x466891['render']();const _0x542425=_0xe29779['element'];this['setEditableElement'](_0xe29779['name'],_0x542425),_0x466891['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x27edcb['attachDomRoot'](_0x542425),this['_elementReplacer']['replace'](_0x2ba0b7,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x185b8a=this['view'],_0x373817=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x373817['detachDomRoot'](_0x185b8a['editable']['name']),_0x185b8a['destroy']();}['_initToolbar'](){const _0x55a5e7=this['view'];_0x55a5e7['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x55a5e7['stickyPanel']['limiterElement']=_0x55a5e7['element'],_0x55a5e7['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x248b34})=>_0x248b34),_0x55a5e7['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x55a5e7['toolbar']);}}class ii extends _0x9cef13{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x5c72d7,_0x80ef71,_0x5be8c5={}){super(_0x5c72d7),this['stickyPanel']=new _0x3b2c11(_0x5c72d7),this['toolbar']=new _0xe37dc9(_0x5c72d7,{'shouldGroupWhenFull':_0x5be8c5['shouldToolbarGroupWhenFull']}),this['_editable']=new te(_0x5c72d7,_0x80ef71);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class f extends/* #__PURE__ -- @preserve */
|
|
30
|
+
_0x468417(_0x123e3b){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x49d9fa,_0x3c9687){super(_0x3c9687),this['sourceElement']=_0x49d9fa,this['model']['document']['createRoot']();const _0x993bdf=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x993bdf);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x10afaa,_0x59c5e8){const _0x5be350=new this(_0x10afaa,_0x59c5e8);return await _0x5be350['initPlugins'](),await _0x5be350['ui']['init'](_0x10afaa),await _0x5be350['data']['init'](_0x5be350['config']['get']('initialData')||''),_0x5be350['fire']('ready'),_0x5be350;}}const p=['RevisionHistoryUI','RestrictedEditingMode','AIChat','AIReviewMode','AIBalloon','AIQuickActions','AIActions'];class ht extends _0x218037{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3e42a3){function _0x1b9b62(_0x575a8a){return _0x575a8a['map'](_0x202849=>String['fromCharCode'](_0x202849))['join']('');}super(_0x3e42a3),this['result']='end',_0x3e42a3[_0x1b9b62([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1b9b62([0x76,0x69,0x65,0x77])][_0x1b9b62([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1b9b62([0x61,0x75,0x74,0x6f]),_0x3e42a3[_0x1b9b62([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x1b9b62([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1b9b62([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x1b9b62([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x1b9b62([0x6f,0x6b])});}}class ct extends _0x218037{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,l];}constructor(_0xe201a1){if(super(_0xe201a1),!this['editor']['config']['get']('revisionHistory'))throw new _0x15679c('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x5936b2=>this['_showRevisionViewer']({..._0x5936b2,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x4fce8a=>this['_closeRevisionViewer'](_0x4fce8a)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x3902b9=>this['_restoreRevision'](_0x3902b9)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x33c81f){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x33c81f;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x477bfe){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x477bfe);}['getRevision'](_0x5b13f8){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x5b13f8);}['getRevisions'](_0x1a0ed5){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x1a0ed5||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x35143f=this['editor'],_0x2bc3a1=_0x5afd24(_0x35143f,p),_0x57aeaa=_0x35143f['plugins']['get']('RevisionTracker'),_0x2d4025=_0x35143f['plugins']['get']('Users')['users'];return _0x2bc3a1['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x2bc3a1['lazyRoots'],(_0x2bc3a1['plugins']['push'](ht,u,v,class extends _0x218037{static get['requires'](){return[u,'Users'];}['init'](){const _0x2165e3=this['editor']['plugins']['get']('Users');for(const _0x12cbff of _0x2d4025)_0x12cbff['isAnonymous']||_0x2165e3['getUser'](_0x12cbff['id'])||_0x2165e3['addUser'](_0x12cbff);const _0x559bf5=_0x57aeaa['repository']['getRevisions']();let _0x47ddc5=null;const _0x31da9b=this['editor']['plugins']['get']('RevisionViewer');_0x31da9b['adapter']=_0x57aeaa['adapter'],_0x31da9b['bind']('isEnabled')['to'](_0x57aeaa),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x35143f,'isReadOnly',_0x1222b4=>!_0x1222b4);for(const _0x52a235 of _0x559bf5){const _0x5430d4=null===_0x52a235['creator'];if(_0x5430d4&&_0x52a235['toVersion']===_0x52a235['fromVersion'])continue;const _0x43dda7=_0x52a235['toJSON']();_0x31da9b['addRevisionData'](_0x43dda7,(_0x3df3a5,_0x4c2409,_0x1c0f24)=>{if(_0x5430d4){if(_0x47ddc5)_0x47ddc5['_update'](_0x3df3a5,_0x4c2409);else{if(!_0x4c2409){const _0x2bc080=_0x1c0f24['toJSON']();_0x2bc080['id']=_0x13449a(),_0x57aeaa['saveRevision'](_0x2bc080,_0x1c0f24['toVersion'])['then'](_0x236602=>{_0x47ddc5=_0x236602;});}}}else _0x52a235['_update'](_0x3df3a5,_0x4c2409);});}}},d),_0x2bc3a1);}['_enhanceShowRevisionViewerCallback'](){const _0x934ef6=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x399334=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x9f4d1c=this['editor']['plugins']['get']('Autosave');await _0x9f4d1c['save']();}else await _0x399334['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x41041a=this['editor']['plugins']['get']('Dialog');_0x41041a['isOpen']&&_0x41041a['hide']();}if(this['editor']['plugins']['has']('AITabs')){const _0x40803b=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x3d17a6 of _0x40803b)_0x3d17a6['class']=_0x3d17a6['class']?_0x3d17a6['class']+'\x20ck-tab-panel_disabled':'ck-tab-panel_disabled';if(this['editor']['plugins']['has']('AIChat')){const _0x9742cf=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x9742cf&&_0x9742cf['setAttribute']('tabindex','-1');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x31a698=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x31a698&&_0x31a698['setAttribute']('tabindex','-1');}}const _0x14fb86=this['_getRevisionViewerEditorConfig']();return _0x934ef6(_0x14fb86)['then'](_0x5b4447=>{return(this['_viewerEditor']=_0x5b4447,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),(this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']='none'),_0x5b4447);})['catch'](_0x2500de=>(console['error'](_0x2500de),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0xcd0cc6=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>{if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['editor']['plugins']['has']('AITabs')){const _0x3b2db8=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x4b1200 of _0x3b2db8)_0x4b1200['class']='ck-tab-panel_disabled'===_0x4b1200['class']?'':_0x4b1200['class']['replace']('\x20ck-tab-panel_disabled','');if(this['editor']['plugins']['has']('AIChat')){const _0x348b7f=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x348b7f&&_0x348b7f['removeAttribute']('tabindex');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x3f517a=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x3f517a&&_0x3f517a['removeAttribute']('tabindex');}}return this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0xcd0cc6(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x3d5753=this['editor']['plugins']['get']('Annotations');_0x3d5753['refreshVisibility'](),_0x3d5753['refreshPositioning']();}});});}['_showRevisionViewer'](_0x1efd69){const _0x130d21=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x5db945=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x142f36=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return f['create'](_0x142f36,_0x1efd69)['then'](_0x1e8b80=>(_0x5db945['style']['display']='block',_0x130d21['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x1e8b80));}['_closeRevisionViewer'](_0x3a3ce5){const _0x556779=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x556779['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x3a3ce5['destroy']();}async['_restoreRevision'](_0x59b741){const _0x302377=this['editor'],_0xf56ec2=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x1c3a89=_0x302377['plugins']['get']('RevisionTracker'),_0x15f71a=_0x302377['plugins']['get']('RevisionHistoryUtils'),_0xd44711=_0xf56ec2['repository']['getRevision'](_0x59b741);let _0x59a073,_0x24ff5b,_0x494cb3;try{await _0x15f71a['loadRevisionData'](_0xd44711,this['adapter']),_0x59a073=_0x15f71a['getRevisionDocumentData'](_0xd44711),_0x24ff5b=_0x15f71a['getRevisionRootsAttributes'](_0xd44711);}catch(_0x1b6bc9){return void console['error'](_0x1b6bc9);}_0x302377['model']['change'](_0x3797bd=>{for(const _0x5437be of Array['from'](_0x302377['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x3797bd['removeMarker'](_0x5437be);}),_0xf56ec2['isReady']=!0x1,_0x302377['model']['enqueueChange'](_0x520455=>{_0x520455['setSelection'](null),_0x520455['removeSelectionAttribute'](_0x302377['model']['document']['selection']['getAttributeKeys']());const _0x4dbf0b=Object['keys'](_0x59a073);for(const _0x2c9649 of _0x302377['model']['document']['roots'])'$graveyard'!=_0x2c9649['rootName']&&_0x2c9649['isAttached']()&&!_0x4dbf0b['includes'](_0x2c9649['rootName'])&&_0x520455['detachRoot'](_0x2c9649);for(const _0x170091 of _0x4dbf0b){let _0xa43ba9=_0x302377['model']['document']['getRoot'](_0x170091);_0xa43ba9&&_0xa43ba9['isAttached']()||(_0xa43ba9=_0x520455['addRoot'](_0x170091));const _0x16e545=_0x24ff5b[_0x170091],_0x4edaba=Object['keys'](_0x16e545),_0x563a42=_0x59a073[_0x170091];for(const _0x355987 of _0xa43ba9['getAttributeKeys']())_0x4edaba['includes'](_0x355987)||_0x520455['removeAttribute'](_0x355987,_0xa43ba9);for(const _0x189173 of _0x4edaba)_0x520455['setAttribute'](_0x189173,_0x24ff5b[_0x170091][_0x189173],_0xa43ba9);_0x520455['remove'](_0x520455['createRangeIn'](_0xa43ba9)),_0x520455['insert'](_0x302377['data']['parse'](_0x563a42,_0xa43ba9),_0xa43ba9,0x0);}});const _0x379543=m(_0x302377['locale'],'Restored');if(_0xd44711['name'])_0x494cb3=-0x1==_0xd44711['name']['indexOf'](_0x379543)?_0x379543+':\x20'+_0xd44711['name']:_0xd44711['name'];else _0x494cb3=_0x379543+':\x20'+(_0xd44711['createdAt']['toLocaleDateString'](_0x302377['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0xd44711['createdAt']['toLocaleTimeString'](_0x302377['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x1c3a89['saveRevision']({'name':_0x494cb3}),_0xf56ec2['isReady']=!0x0,_0x302377['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{nt as RestoreRevisionCommand,I as Revision,ct as RevisionHistory,l as RevisionHistoryUI,$ as RevisionHistoryUtils,h as RevisionTracker,u as RevisionViewer,f as RevisionViewerEditor,ht as RevisionViewerIntegration,ji as RevisionViewerLoadingOverlay,v as RevisionViewerUI,S as RevisionsRepository,d as RevisionsSidebar,rt as ShowChangeCommand};
|