@ckeditor/ckeditor5-revision-history 47.3.0-alpha.4 → 47.3.0-alpha.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/dist/index.js +7 -7
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +12 -12
- package/src/changeitem.js +2 -2
- package/src/editor/revisionviewereditor.js +2 -2
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/index.js +1 -1
- package/src/revision.js +2 -2
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionhistoryutils.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +2 -2
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +2 -2
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ObservableMixin as
|
|
24
|
-
_0x402a4e(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x29a4f8){super(),this['id']=_0x29a4f8['id']||_0xc9fc17(),this['creator']=_0x29a4f8['creator']||null,this['authors']=_0x29a4f8['authors']||[],this['diffData']=_0x29a4f8['diffData']||null,this['toVersion']=_0x29a4f8['toVersion']||0x0,this['fromVersion']=_0x29a4f8['fromVersion']||0x0,this['set']('name',_0x29a4f8['name']||''),this['set']('createdAt',_0x29a4f8['createdAt']||new Date()),this['set']('attributes',_0x29a4f8['attributes']||{});}['setName'](_0x3a80e1){this['_update']({'name':_0x3a80e1});}['setAttribute'](_0x364407,_0x3f99b1){const _0x445d74=_0x3d9550(this['attributes']);_0x232104(_0x445d74,_0x364407,_0x3f99b1),this['_update']({'attributes':_0x445d74});}['removeAttribute'](_0x2df0e6){const _0x2cd274=_0x3d9550(this['attributes']);_0x1cb12e(_0x2cd274,_0x2df0e6),this['_update']({'attributes':_0x2cd274});}['_update'](_0x12faaf,_0x544fd6=!0x1){let _0x41b7b1=!0x1;const _0xb7cd60={'id':this['id']},_0x190c76=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x4c8c65 of _0x190c76){const _0x34551b=_0x12faaf[_0x4c8c65];void 0x0!==_0x34551b&&_0x34551b!==this[_0x4c8c65]&&(this[_0x4c8c65]=_0x34551b,_0xb7cd60[_0x4c8c65]=_0x34551b,_0x41b7b1=!0x0);}_0x41b7b1&&(_0xb7cd60['authors']&&(_0xb7cd60['authorsIds']=_0xb7cd60['authors']['map'](_0x555299=>_0x555299['id']),delete _0xb7cd60['authors']),this['fire']('_update',_0xb7cd60,_0x544fd6));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x53e27c=>_0x53e27c['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x1f6d35{['_revisions'];static get['requires'](){return[_0x3acc3];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x5eb49f){super(_0x5eb49f),this['_revisions']=new _0x56fe88();}['afterInit'](){!async function(_0x355963){const _0x2b50c4=_0x4044d3([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]),_0x28ae8d=0xeb829,_0x12ecab=0x359e09b0,_0x19571a=0x35997320^_0x12ecab,_0x1a47d0=window[_0x4044d3([0x44,0x61,0x74,0x65])][_0x4044d3([0x6e,0x6f,0x77])](),_0x5c2be4=_0x355963[_0x4044d3([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x538417=new window[(_0x4044d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x21a310=>{_0x5c2be4[_0x4044d3([0x6f,0x6e,0x63,0x65])](_0x4044d3([0x72,0x65,0x61,0x64,0x79]),_0x21a310);}),_0x58f364={[_0x4044d3([0x6b,0x74,0x79])]:_0x4044d3([0x45,0x43]),[_0x4044d3([0x75,0x73,0x65])]:_0x4044d3([0x73,0x69,0x67]),[_0x4044d3([0x63,0x72,0x76])]:_0x4044d3([0x50,0x2d,0x32,0x35,0x36]),[_0x4044d3([0x78])]:_0x4044d3([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]),[_0x4044d3([0x79])]:_0x4044d3([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]),[_0x4044d3([0x61,0x6c,0x67])]:_0x4044d3([0x45,0x53,0x32,0x35,0x36])},_0x47361f=_0x5c2be4[_0x4044d3([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4044d3([0x67,0x65,0x74])](_0x4044d3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5e778b(){let _0x102ff6,_0x71f061=null,_0x37550e=null;try{if(_0x47361f==_0x4044d3([0x47,0x50,0x4c]))return _0x4044d3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x102ff6=_0x327ebe(),!_0x102ff6)return _0x4044d3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x102ff6[_0x4044d3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x37550e=_0x317b5f(_0x102ff6[_0x4044d3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x102ff6[_0x4044d3([0x6a,0x74,0x69])])),await _0x8602a2()?_0x217f62()?_0x57ef2f()?_0x4044d3([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1a0e89()?(_0x102ff6[_0x4044d3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4044d3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x71f061=_0x42e577(_0x4044d3([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x102ff6[_0x4044d3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4044d3([0x74,0x72,0x69,0x61,0x6c])&&(_0x71f061=_0x42e577(_0x4044d3([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1caf4b()):_0x4044d3([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4044d3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4044d3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4044d3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x57ef2f(){const _0x1da1ab=[_0x4044d3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4044d3([0x74,0x72,0x69,0x61,0x6c])][_0x4044d3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x102ff6[_0x4044d3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1a47d0/0x3e8:0xe10*_0x19571a;return _0x102ff6[_0x4044d3([0x65,0x78,0x70])]<_0x1da1ab;}function _0x217f62(){const _0x37da6c=_0x102ff6[_0x4044d3([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x37da6c)return!0x1;if(_0x37da6c[_0x4044d3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4044d3([0x2a])))return!0x0;if(_0x37da6c[_0x4044d3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4044d3([0x52,0x48])))return!0x0;if(_0x37da6c[_0x4044d3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4044d3([0x52,0x52,0x48]))){if(_0x37b1e6())return!0x0;if(_0x5433e9()||_0x123d4a())return!0x0;}return!0x1;}function _0x1a0e89(){const _0x4236f4=_0x102ff6[_0x4044d3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4236f4||0x0==_0x4236f4[_0x4044d3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x14a548}=new URL(window[_0x4044d3([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4236f4[_0x4044d3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14a548))return!0x0;const _0x5301fc=_0x14a548[_0x4044d3([0x73,0x70,0x6c,0x69,0x74])](_0x4044d3([0x2e]));return _0x4236f4[_0x4044d3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x417404=>_0x417404[_0x4044d3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4044d3([0x2a])))[_0x4044d3([0x6d,0x61,0x70])](_0x27d6f3=>_0x27d6f3[_0x4044d3([0x73,0x70,0x6c,0x69,0x74])](_0x4044d3([0x2e])))[_0x4044d3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5b0097=>_0x5b0097[_0x4044d3([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5301fc[_0x4044d3([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4044d3([0x6d,0x61,0x70])](_0x38c431=>Array(_0x5301fc[_0x4044d3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x38c431[_0x4044d3([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4044d3([0x66,0x69,0x6c,0x6c])](_0x38c431[0x0]===_0x4044d3([0x2a])?_0x4044d3([0x2a]):'')[_0x4044d3([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x38c431))[_0x4044d3([0x73,0x6f,0x6d,0x65])](_0x2b0749=>_0x5301fc[_0x4044d3([0x65,0x76,0x65,0x72,0x79])]((_0x2360fc,_0x294c07)=>_0x2b0749[_0x294c07]===_0x2360fc||_0x2b0749[_0x294c07]===_0x4044d3([0x2a])));}function _0x1caf4b(){return _0x71f061&&_0x37550e?new window[(_0x4044d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2dbd14,_0x10e988)=>{_0x71f061[_0x4044d3([0x74,0x68,0x65,0x6e])](_0x2dbd14,_0x10e988),_0x37550e[_0x4044d3([0x74,0x68,0x65,0x6e])](_0xe28e67=>{_0xe28e67!=_0x4044d3([0x56,0x61,0x6c,0x69,0x64])&&_0x2dbd14(_0xe28e67);},_0x10e988);}):_0x71f061||_0x37550e||_0x4044d3([0x56,0x61,0x6c,0x69,0x64]);}}function _0x317b5f(_0x2d69ed,_0x2af3a3){return new window[(_0x4044d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b8c99=>{if(_0x38aa5c())return _0x3b8c99(_0x4044d3([0x56,0x61,0x6c,0x69,0x64]));_0x1a3311(),_0x5c2be4[_0x4044d3([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4044d3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5243a3=!0x1;const _0x3fdbbb=_0xc9fc17();function _0x3d3c4d(_0x591f08){return!!_0x591f08&&(typeof _0x591f08===_0x4044d3([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x591f08===_0x4044d3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x591f08[_0x4044d3([0x74,0x68,0x65,0x6e])]===_0x4044d3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x591f08[_0x4044d3([0x63,0x61,0x74,0x63,0x68])]===_0x4044d3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1da239(_0x22daa4){_0x47ae24(_0x22daa4)[_0x4044d3([0x74,0x68,0x65,0x6e])](_0x1b0c1b=>{if(!_0x1b0c1b||_0x1b0c1b[_0x4044d3([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4044d3([0x6f,0x6b]))return _0x4044d3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4cf689(_0xbc0ccf(_0x3fdbbb+_0x2af3a3))!=_0x1b0c1b[_0x4044d3([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4044d3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4044d3([0x56,0x61,0x6c,0x69,0x64]);})[_0x4044d3([0x74,0x68,0x65,0x6e])](_0xfdbcec=>(_0x21934d(),_0xfdbcec),()=>{const _0x20f618=_0x59d162();return null==_0x20f618?(_0x21934d(),_0x4044d3([0x56,0x61,0x6c,0x69,0x64])):_0x4044d3(_0x1a47d0-_0x20f618>(0x11928db0^_0x12ecab)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4044d3([0x74,0x68,0x65,0x6e])](_0x3b8c99)[_0x4044d3([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3b8c99(_0x4044d3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x538ad5=0x35a8e730^_0x12ecab;function _0x21934d(){const _0x4e896b=_0x4044d3([0x6c,0x6c,0x63,0x74,0x2d])+_0x4cf689(_0xbc0ccf(_0x2d69ed)),_0x2a0315=_0x3b5dec(_0x4cf689(window[_0x4044d3([0x4d,0x61,0x74,0x68])][_0x4044d3([0x63,0x65,0x69,0x6c])](_0x1a47d0/_0x538ad5)));window[_0x4044d3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4044d3([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4e896b,_0x2a0315);}function _0x59d162(){const _0x253199=_0x4044d3([0x6c,0x6c,0x63,0x74,0x2d])+_0x4cf689(_0xbc0ccf(_0x2d69ed)),_0x353072=window[_0x4044d3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4044d3([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x253199);return _0x353072?window[_0x4044d3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3b5dec(_0x353072),0x10)*_0x538ad5:null;}function _0x47ae24(_0x35dea9){return new window[(_0x4044d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x20e7c9,_0x50e8a1)=>{_0x35dea9[_0x4044d3([0x74,0x68,0x65,0x6e])](_0x20e7c9,_0x50e8a1),window[_0x4044d3([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x50e8a1,0x359fdd70^_0x12ecab);});}}_0x5c2be4[_0x4044d3([0x6f,0x6e])](_0x4044d3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2bf0ee,_0x3b6276)=>{if(_0x3b6276[0x0]!=_0x2d69ed)return _0x3b8c99(_0x4044d3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3b6276[0x1]={..._0x3b6276[0x1],[_0x4044d3([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3fdbbb};},{[_0x4044d3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4044d3([0x68,0x69,0x67,0x68])}),_0x5c2be4[_0x4044d3([0x6f,0x6e])](_0x4044d3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x119f2b=>{_0x3d3c4d(_0x119f2b[_0x4044d3([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5243a3=!0x0,_0x1da239(_0x119f2b[_0x4044d3([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4044d3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4044d3([0x6c,0x6f,0x77])}),_0x538417[_0x4044d3([0x74,0x68,0x65,0x6e])](()=>{_0x5243a3||_0x3b8c99(_0x4044d3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x38aa5c(){return _0x5c2be4[_0x4044d3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4044d3([0x76,0x69,0x65,0x77])][_0x4044d3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4044d3([0x61,0x75,0x74,0x6f]);}function _0x1a3311(){_0x5c2be4[_0x4044d3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4044d3([0x76,0x69,0x65,0x77])][_0x4044d3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4044d3([0x61,0x75,0x74,0x6f]);}}function _0x42e577(_0x266e45){const _0x5edb3f=[new window[(_0x4044d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x13eab5=>setTimeout(_0x13eab5,0x3597377c^_0x12ecab)),_0x538417[_0x4044d3([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4044d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3effd8=>{const _0xa5c96=0x359e09b7^_0x12ecab,_0x1fb12e=_0x355963[_0x4044d3([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x3fc127(){_0x1fb12e[_0x4044d3([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0xa5c96&&_0x3effd8();}_0x3fc127(),_0x1fb12e[_0x4044d3([0x6f,0x6e])](_0x4044d3([0x61,0x64,0x64]),_0x3fc127);})),new window[(_0x4044d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x6def2a=>{function _0x1230a4(){for(const _0x4695c2 in window)if(window[_0x4044d3([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x4044d3([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x4695c2))&&window[_0x4695c2]==_0x28ae8d)return _0x6def2a();_0x5c2be4[_0x4044d3([0x73,0x74,0x61,0x74,0x65])]!=_0x4044d3([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x4044d3([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1230a4,0x359e1a38^_0x12ecab);}_0x24831a(_0x4044d3([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x1230a4();})];return window[_0x4044d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4044d3([0x72,0x61,0x63,0x65])](_0x5edb3f)[_0x4044d3([0x74,0x68,0x65,0x6e])](()=>_0x266e45);}async function _0x154bbf(){if(await _0x538417,_0x24831a(_0x4044d3([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x10a4c4=_0x355963[_0x4044d3([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x2b7dbf=_0x355963[_0x4044d3([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])](_0x10a4c4[_0x4044d3([0x69,0x64])]),_0xa76e4e=_0x1d99c2(_0x4044d3([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0xa76e4e[_0x4044d3([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x10a4c4['id'],_0x2b7dbf?_0x2b7dbf['id']:null,!0x0),_0xa76e4e[_0x4044d3([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4044d3([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0xa76e4e[_0x4044d3([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0xa76e4e[_0x4044d3([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0xe32386,void(_0xa76e4e[_0x4044d3([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0xe32386);}if(_0x24831a(_0x4044d3([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x30a771=_0x1d99c2(_0x4044d3([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x30a771[_0x4044d3([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4044d3([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x30a771[_0x4044d3([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x30a771[_0x4044d3([0x75,0x70,0x64,0x61,0x74,0x65])]=_0xe32386,_0x30a771[_0x4044d3([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0xe32386;}_0x5c2be4[_0x4044d3([0x6d,0x6f,0x64,0x65,0x6c])][_0x4044d3([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xe32386,_0x5c2be4[_0x4044d3([0x6d,0x6f,0x64,0x65,0x6c])][_0x4044d3([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xe32386,_0x5c2be4[_0x4044d3([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4044d3([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x37b1e6(){return _0x24831a(_0x4044d3([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1d99c2(_0x4044d3([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4044d3([0x73,0x74,0x61,0x74,0x65])]==_0x4044d3([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x5433e9(){return _0x24831a(_0x4044d3([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 _0x123d4a(){return _0x24831a(_0x4044d3([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0xd93067(_0x34146a){const _0x3da87f=_0x2a5920();_0x5c2be4[_0x3da87f]=_0x4044d3([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])+_0x34146a,_0x34146a[_0x4044d3([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x4044d3([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x2a5920()]=_0x28ae8d),_0x34146a!=_0x4044d3([0x56,0x61,0x6c,0x69,0x64])&&_0x154bbf();}function _0x2a5920(){const _0x43a8f5=window[_0x4044d3([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4044d3([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4044d3([0x6e,0x6f,0x77])]())[_0x4044d3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4044d3([0x2e]),'');let _0x24db05=_0x4044d3([0x76]);for(let _0x2839ed=0x0;_0x2839ed<_0x43a8f5[_0x4044d3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2839ed+=0x2){let _0x51e33c=window[_0x4044d3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x43a8f5[_0x4044d3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2839ed,_0x2839ed+0x2));_0x51e33c>=_0x2b50c4[_0x4044d3([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x51e33c-=_0x2b50c4[_0x4044d3([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x24db05+=_0x2b50c4[_0x51e33c];}return _0x24db05;}function _0x327ebe(){const _0x3c8711=_0x47361f[_0x4044d3([0x73,0x70,0x6c,0x69,0x74])](_0x4044d3([0x2e]));if(0x3!=_0x3c8711[_0x4044d3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4c3cbb(_0x3c8711[0x1]);function _0x4c3cbb(_0x4e7589){const _0x5a1839=_0x540d09(_0x4e7589);return _0x5a1839&&_0xa9f6cc()?_0x5a1839:null;function _0xa9f6cc(){const _0x583098=_0x5a1839[_0x4044d3([0x6a,0x74,0x69])],_0x39ccb6=window[_0x4044d3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x583098[_0x4044d3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x583098[_0x4044d3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x272290={..._0x5a1839,[_0x4044d3([0x6a,0x74,0x69])]:_0x583098[_0x4044d3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x583098[_0x4044d3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x272290[_0x4044d3([0x76,0x63])],_0xbc0ccf(_0x272290)==_0x39ccb6;}}}async function _0x8602a2(){let _0x1b068f=!0x0;try{const _0x4d8fa5=_0x47361f[_0x4044d3([0x73,0x70,0x6c,0x69,0x74])](_0x4044d3([0x2e])),[_0x2b04df,_0x1e08df,_0x429f7c]=_0x4d8fa5;return _0xe403e3(_0x2b04df),await _0x2e1a1b(_0x2b04df,_0x1e08df,_0x429f7c),_0x1b068f;}catch{return!0x1;}function _0xe403e3(_0x377ad0){const _0x1c87b2=_0x540d09(_0x377ad0);_0x1c87b2&&_0x1c87b2[_0x4044d3([0x61,0x6c,0x67])]==_0x4044d3([0x45,0x53,0x32,0x35,0x36])||(_0x1b068f=!0x1);}async function _0x2e1a1b(_0x36c347,_0x3579bd,_0x48352e){const _0x4cd739=window[_0x4044d3([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4044d3([0x66,0x72,0x6f,0x6d])](_0x4a40bf(_0x48352e),_0x45a646=>_0x45a646[_0x4044d3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x187a58=new window[(_0x4044d3([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4044d3([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x36c347+_0x4044d3([0x2e])+_0x3579bd),_0x1d9fa2=window[_0x4044d3([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4044d3([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1d9fa2)return;const _0x4fe553=await _0x1d9fa2[_0x4044d3([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4044d3([0x6a,0x77,0x6b]),_0x58f364,{[_0x4044d3([0x6e,0x61,0x6d,0x65])]:_0x4044d3([0x45,0x43,0x44,0x53,0x41]),[_0x4044d3([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4044d3([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4044d3([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1d9fa2[_0x4044d3([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4044d3([0x6e,0x61,0x6d,0x65])]:_0x4044d3([0x45,0x43,0x44,0x53,0x41]),[_0x4044d3([0x68,0x61,0x73,0x68])]:{[_0x4044d3([0x6e,0x61,0x6d,0x65])]:_0x4044d3([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4fe553,_0x4cd739,_0x187a58)||(_0x1b068f=!0x1);}}function _0x540d09(_0x8dd2a2){return _0x8dd2a2[_0x4044d3([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4044d3([0x65,0x79]))?JSON[_0x4044d3([0x70,0x61,0x72,0x73,0x65])](_0x4a40bf(_0x8dd2a2)):null;}function _0x4a40bf(_0x16c4b7){return window[_0x4044d3([0x61,0x74,0x6f,0x62])](_0x16c4b7[_0x4044d3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4044d3([0x2b]))[_0x4044d3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4044d3([0x2f])));}function _0xbc0ccf(_0x5b0615){let _0x556f91=0x1505;function _0x4deedc(_0x5b1e71){for(let _0x3c9ca7=0x0;_0x3c9ca7<_0x5b1e71[_0x4044d3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3c9ca7++){const _0x5700b7=_0x5b1e71[_0x4044d3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3c9ca7);_0x556f91=(_0x556f91<<0x5)+_0x556f91+_0x5700b7,_0x556f91&=_0x556f91;}}function _0x1420ad(_0x3b01f6){Array[_0x4044d3([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3b01f6)?_0x3b01f6[_0x4044d3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1420ad):_0x3b01f6&&typeof _0x3b01f6==_0x4044d3([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4044d3([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3b01f6)[_0x4044d3([0x73,0x6f,0x72,0x74])]()[_0x4044d3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2650ce,_0x5981d5])=>{_0x4deedc(_0x2650ce),_0x1420ad(_0x5981d5);}):_0x4deedc(window[_0x4044d3([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3b01f6));}return _0x1420ad(_0x5b0615),_0x556f91>>>0x0;}function _0x4cf689(_0x47e3a8){return _0x47e3a8[_0x4044d3([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4044d3([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4044d3([0x30]));}function _0x3b5dec(_0x25d50f){return _0x25d50f[_0x4044d3([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4044d3([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4044d3([0x6a,0x6f,0x69,0x6e])]('');}function _0x24831a(_0x4dd31a){return _0x5c2be4[_0x4044d3([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4044d3([0x68,0x61,0x73])](_0x4dd31a);}function _0x1d99c2(_0x3d62aa){return _0x5c2be4[_0x4044d3([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4044d3([0x67,0x65,0x74])](_0x3d62aa);}function _0xe32386(){}function _0x4044d3(_0x572903){return _0x572903['map'](_0xfd896c=>String['fromCharCode'](_0xfd896c))['join']('');}_0xd93067(await _0x5e778b());}(this);}['createRevision'](_0x126c3c){const _0x5648e3=this['editor']['plugins']['get']('Users');return new I({'id':_0x126c3c['id'],'name':_0x126c3c['name'],'creator':_0x126c3c['creatorId']?_0x5648e3['getUser'](_0x126c3c['creatorId']):null,'diffData':_0x126c3c['diffData']||_0x126c3c['data'],'authors':_0x126c3c['authorsIds']['map'](_0x504698=>_0x5648e3['getUser'](_0x504698)),'createdAt':new Date(_0x126c3c['createdAt']),'attributes':_0x126c3c['attributes'],'fromVersion':_0x126c3c['fromVersion'],'toVersion':_0x126c3c['toVersion']});}['addRevision'](_0x548d6e,_0x38caf4=0x0){this['_revisions']['add'](_0x548d6e,_0x38caf4);}['getRevision'](_0x96d65c){return this['_revisions']['get'](_0x96d65c);}['getRevisions'](_0x385201={'toJSON':!0x1}){const _0x4b8e44=Array['from'](this['_revisions']);return _0x4b8e44['reverse'](),_0x385201['toJSON']?_0x4b8e44['map'](_0x1227df=>_0x1227df['toJSON']()):_0x4b8e44;}['getIndex'](_0x19577b){return this['_revisions']['getIndex'](_0x19577b);}['getEarlierVisibleRevision'](_0x2bd557){const [,_0x60cb4d]=this['getRevisionsIterator'](_0x2bd557,{'direction':'earlier'});return _0x60cb4d;}['getLaterVisibleRevision'](_0x11dac6){const [,_0x4a76ce]=this['getRevisionsIterator'](_0x11dac6,{'direction':'later'});return _0x4a76ce;}['getRevisionsInDiff'](_0x1a7452){const _0x37020e=[];for(const _0x38f623 of this['getRevisionsIterator'](_0x1a7452['newRevisionId']))if(_0x37020e['push'](_0x38f623),_0x38f623['id']===_0x1a7452['oldRevisionId'])break;return _0x37020e;}*['getRevisionsIterator'](_0x50fe2c,{direction:_0x2b8896='earlier',filter:_0x2b1d3e=()=>!0x0}={}){const _0x31c1ec='earlier'===_0x2b8896?0x1:-0x1;let _0x1dc2e4=this['_revisions']['get'](_0x50fe2c),_0x5df296=this['getIndex'](_0x1dc2e4);for(yield _0x1dc2e4;_0x1dc2e4;){if(_0x5df296+=_0x31c1ec,_0x1dc2e4=this['getRevision'](_0x5df296),!_0x1dc2e4)return;_0x2b1d3e(_0x1dc2e4)&&(yield _0x1dc2e4);}}}class $ extends _0x1f6d35{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x5cd719,'c'],[_0x2a6ed1,'a'],[_0x28b4e4,'e'],[_0x5abc1f,'r'],[_0x22d6d2,'u']]);['_typeCharToViewClass']=new Map([['c',_0x5cd719],['a',_0x2a6ed1],['e',_0x28b4e4],['r',_0x5abc1f],['u',_0x22d6d2]]);async['loadRevisionData'](_0x54be57,_0x18d205){if(_0x54be57['diffData']||!_0x18d205)return;const _0x2c116c=this['editor']['config']['get']('collaboration.channelId'),_0x38dcbc=await _0x18d205['getRevision']({'channelId':_0x2c116c,'revisionId':_0x54be57['id']});_0x54be57['diffData']=_0x38dcbc['diffData'];}['getRevisionDocumentData'](_0xa5b235){const _0x1628b4={};for(const _0x481026 in _0xa5b235['diffData']){if(_0xa5b235['diffData'][_0x481026]['attachChange']&&!_0xa5b235['diffData'][_0x481026]['attachChange']['isAttached'])continue;const _0x262103=this['_removeRevisionMarkers'](JSON['parse'](_0xa5b235['diffData'][_0x481026]['insertions'])),_0x4b6db3=this['editor']['editing']['view']['document'],_0x52ee8b=new _0x1e5014(_0x4b6db3,_0x262103['map'](_0x300c04=>this['_getViewFromDiffObj'](_0x300c04,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x1628b4[_0x481026]=this['editor']['data']['processor']['toData'](_0x52ee8b),this['editor']['data']['processor']['useFillerType']('default');}return _0x1628b4;}['getRevisionRootsAttributes'](_0x1ce8f0){const _0x3e2584={};for(const _0x27ac46 in _0x1ce8f0['diffData'])_0x1ce8f0['diffData'][_0x27ac46]['attachChange']&&!_0x1ce8f0['diffData'][_0x27ac46]['attachChange']['isAttached']||(_0x3e2584[_0x27ac46]=_0x1ce8f0['diffData'][_0x27ac46]['attributesAfter']||{});return _0x3e2584;}['_getTypeCharForViewElement'](_0x4bdbd7){return this['_viewClassToTypeChar']['get'](_0x4bdbd7['constructor']);}['_getViewFromDiffObj'](_0x7d8716,_0x3a8909){const _0x773754=this['editor']['editing']['view']['document'];if('string'==typeof _0x7d8716)return new _0x533eb7(_0x773754,_0x7d8716);{let _0x423d56,_0x5a6610;_0x5a6610='u'==_0x7d8716['type']||'r'==_0x7d8716['type']?[]:_0x7d8716['children']['map'](_0x230b3f=>this['_getViewFromDiffObj'](_0x230b3f,_0x3a8909));const _0xe068e5=this['_typeCharToViewClass']['get'](_0x7d8716['type'])||_0x28d30f,_0x3f8c91=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x423d56=new _0xe068e5(_0x773754,_0x7d8716['name'],_0x7d8716['attributes'],_0x5a6610),'u'==_0x7d8716['type']&&_0x7d8716['children'][0x0]){const _0x2226fb=_0x7d8716['children'][0x0];if(_0x423d56['render']=function(_0x2fc809){const _0x54e93c=_0x2fc809['createElement']('div');return _0x54e93c['innerHTML']=_0x2226fb,_0x54e93c['childNodes'][0x0];},_0x3a8909){const _0x3a3572=new _0x1e5014(_0x773754);_0x3a3572['_appendChild'](_0x423d56);const _0x253dc3=Array['from'](_0x3f8c91['viewChildrenToDom'](_0x3a3572,{'bind':!0x1})),_0x5050b9=_0x3f8c91['domDocument']['createElement']('div');_0x5050b9['append'](..._0x253dc3),_0x423d56=Array['from'](_0x3f8c91['domChildrenToView'](_0x5050b9))[0x0];}}else{if('r'==_0x7d8716['type']&&_0x7d8716['children'][0x0]){const _0x21354f=_0x7d8716['children'][0x0];if(_0x423d56['render']=function(_0x2f82cf){_0x2f82cf['innerHTML']=_0x21354f;},_0x3a8909){const _0x11d40d=new _0x1e5014(_0x773754);_0x11d40d['_appendChild'](_0x423d56);const _0x7d5b5e=Array['from'](_0x3f8c91['viewChildrenToDom'](_0x11d40d,{'bind':!0x1})),_0x52eabb=_0x3f8c91['domDocument']['createElement']('div');_0x52eabb['append'](..._0x7d5b5e);const _0x34c8d8=Array['from'](_0x3f8c91['domChildrenToView'](_0x52eabb));_0x34c8d8['length']>0x1?_0x423d56['_appendChild'](_0x34c8d8):_0x423d56=_0x34c8d8[0x0];}}}if(_0x7d8716['customProperties']){for(const [_0x481c53,_0x3f7194]of _0x7d8716['customProperties'])_0x423d56['_setCustomProperty'](_0x481c53,_0x3f7194);}const _0x41c3e7=void 0x0===_0x7d8716['fillerOffset']?null:_0x7d8716['fillerOffset'];return null!==_0x41c3e7&&(_0x423d56['getFillerOffset']=()=>_0x41c3e7),_0x423d56;}}['_makeModelFromViewString'](_0xff03be){const _0x1b9924=JSON['parse'](_0xff03be),_0x304a62=this['editor']['editing']['view']['document'],_0x2595c5=new _0x1e5014(_0x304a62,_0x1b9924['map'](_0x341010=>this['_getViewFromDiffObj'](_0x341010,!0x0)));return this['editor']['data']['toModel'](_0x2595c5);}['_removeRevisionMarkers'](_0x14b860){return(_0x14b860=_0x14b860['filter'](_0x4fc5c5=>!_0x4fc5c5['name']||'revision-start'!==_0x4fc5c5['name']&&'revision-end'!==_0x4fc5c5['name']))['forEach'](_0x309d53=>{'string'!=typeof _0x309d53&&(_0x309d53['children']=this['_removeRevisionMarkers'](_0x309d53['children']),_0x309d53['attributes']=_0x309d53['attributes']['filter'](_0x12b7da=>!_0x12b7da[0x0]['startsWith']('data-revision-')));}),_0x14b860;}}function m(_0x20a1fc,_0x1c8486,_0x3da6be){const t=_0x20a1fc['t'];switch(_0x1c8486){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'},_0x3da6be);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x3da6be);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 _0x1f6d35{['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[_0x3acc3,S,$,_0x463583];}constructor(_0x28984e){super(_0x28984e),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 _0x4d6fa4=_0xc9fc17();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x4d6fa4},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 _0x5c49ee=this['repository']['getRevision'](0x0),_0x3d8929=_0x5c49ee&&null===_0x5c49ee['creator']?_0x5c49ee:null;if(this['_continueCurrentRevision']=!!_0x3d8929&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x5642f4=this['_source']['getCurrentRevisionId'](),_0x4fff1a=this['repository']['getRevision'](_0x5642f4);if(_0x4fff1a)this['_startingVersion']=_0x4fff1a['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x10722a=this['_source']['history']['_operations']['find'](_0x4870d8=>!_0x4870d8['_isInit']),_0x3f6d6a=_0x10722a?_0x10722a['baseVersion']:this['_source']['history']['version'];_0x5c49ee?(_0x5c49ee['toVersion']<_0x3f6d6a&&_0x5c49ee['_update']({'toVersion':_0x3f6d6a}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x3d8929['id'],this['_startingVersion']=_0x3d8929['fromVersion']):(this['_startingVersion']=_0x5c49ee['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x3f6d6a,this['_continueCurrentRevision']=!0x1);}}else _0x3d8929&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x3d8929['toVersion'],this['editor']['model']['document']['history']['version']),_0x3d8929['fromVersion']===_0x3d8929['toVersion']?(0x0!==_0x3d8929['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x3d8929['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x3d8929['id'],this['_startingVersion']=_0x3d8929['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',_0x3d959f=>!_0x3d959f),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x29d562=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xa4bb9e;for(const _0x47de7c in _0x29d562){const _0x36bd18=_0x47de7c,_0x371d3c=_0x29d562[_0x36bd18];if('revisionHistoryLicenseKeyValid'==_0x371d3c||'revisionHistoryLicenseKeyInvalid'==_0x371d3c||'revisionHistoryLicenseKeyExpired'==_0x371d3c||'revisionHistoryLicenseKeyDomainLimit'==_0x371d3c||'revisionHistoryLicenseKeyNotAllowed'==_0x371d3c||'revisionHistoryLicenseKeyEvaluationLimit'==_0x371d3c||'revisionHistoryLicenseKeyTrialLimit'==_0x371d3c||'revisionHistoryLicenseKeyUsageLimit'==_0x371d3c){delete _0x29d562[_0x36bd18],_0xa4bb9e=_0x371d3c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0xa4bb9e&&_0x29d562['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0xa4bb9e&&_0x29d562['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0xa4bb9e&&_0x29d562['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0xa4bb9e&&_0x29d562['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0xa4bb9e&&_0x29d562['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0xa4bb9e&&_0x29d562['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0xa4bb9e&&_0x29d562['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x123d53=this['repository']['getRevision'](0x0),_0x268fa1=await this['getRevisionDocumentData'](_0x123d53),_0x5a1459=await this['getRevisionRootsAttributes'](_0x123d53);this['_replaceEditorDataWithRevisionData'](_0x268fa1,_0x5a1459);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x130daa){this['_source']=_0x130daa;}async['update'](){const _0x40ad09=await this['_source']['getLatestVersion']();if(_0x40ad09>this['currentRevision']['toVersion']){await this['_loadState']();const _0x49e80f=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x40ad09});_0x49e80f['authors']=_0x49e80f['authorsIds']['map'](_0x21b1b6=>this['editor']['plugins']['get']('Users')['getUser'](_0x21b1b6)),this['currentRevision']['_update'](_0x49e80f);}}async['saveRevision'](_0x252095={},_0x2e907a=null){const _0x11c788=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x2e907a>this['currentRevision']['toVersion']&&(_0x2e907a=null),null===_0x2e907a&&(_0x2e907a=await this['_source']['getLatestVersion']());const _0x7c3f83=this['_getFromVersion'](_0x2e907a),_0x15ae62=this['buildRevisionData']({'from':_0x7c3f83,'to':_0x2e907a});if(this['currentRevision']['toVersion']<_0x2e907a){const _0x32bedd=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x2e907a,'to':_0x2e907a});_0x32bedd['authors']=[],_0x32bedd['authorsIds']=[],_0x32bedd['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x32bedd,!0x0),delete _0x32bedd['authors'],_0x11c788['push'](_0x32bedd);}_0x252095['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x252095['name']=_0x252095['name']||null,_0x252095['id']=_0x252095['id']||_0xc9fc17(),_0x252095={..._0x252095,..._0x15ae62};const _0x38988e=this['addRevisionData'](_0x252095);_0x11c788['push'](_0x252095);const _0x335752=this['repository']['getIndex'](_0x38988e);if(0x0!==_0x335752){const _0xcf599b=this['repository']['getRevision'](_0x335752-0x1);if(_0xcf599b['fromVersion']!==_0x2e907a){const _0x27ae78=this['_revisionDataBuilder']['getData'](_0x2e907a,_0xcf599b['toVersion']),_0x34ab39={'id':_0xcf599b['id'],'diffData':_0x27ae78['diffData'],'authorsIds':_0x27ae78['authorsIds'],'authors':_0x27ae78['authorsIds']['map'](_0x4c78bf=>this['editor']['plugins']['get']('Users')['getUser'](_0x4c78bf)),'fromVersion':_0x2e907a};_0xcf599b===this['currentRevision']&&(_0x34ab39['createdAt']=new Date(_0x252095['createdAt']['getTime']()+0xa)),_0xcf599b['_update'](_0x34ab39,!0x0),delete _0x34ab39['authors'],_0x11c788['push'](_0x34ab39);}}if(this['adapter']){for(const _0x4c123a of _0x11c788)this['_bufferUpdate'](_0x4c123a['id'],_0x4c123a,!0x0);this['sendBufferedUpdates']();}return _0x38988e;}['addRevisionData'](_0x183d0a){const _0x358737=this['repository']['createRevision'](_0x183d0a);return this['adapter']&&_0x358737['on']('_update',(_0x4815c6,_0x4c6986,_0x3cf798)=>{_0x3cf798||(this['_bufferUpdate'](_0x4c6986['id'],_0x4c6986,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x358737,this['_findInsertionIndex'](_0x358737)),_0x358737;}async['getRevisionDocumentData'](_0x311940){return await this['_utils']['loadRevisionData'](_0x311940,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x311940);}async['getRevisionRootsAttributes'](_0xe03941){return await this['_utils']['loadRevisionData'](_0xe03941,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0xe03941);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x2d1d8f=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0xd499fd=0x0;_0xd499fd<_0x2d1d8f['length'];_0xd499fd++){const _0xb39e2f=_0x2d1d8f[_0xd499fd];let _0x16e0e4=!0x1;for(const _0x2ab6fc of Object['keys'](_0xb39e2f))void 0x0===_0xb39e2f[_0x2ab6fc]?delete _0xb39e2f[_0x2ab6fc]:'id'!==_0x2ab6fc&&(_0x16e0e4=!0x0);_0x16e0e4||(_0x2d1d8f[_0xd499fd]=null);}if(_0x2d1d8f=_0x2d1d8f['filter'](_0x52a246=>null!==_0x52a246),!_0x2d1d8f['length'])return;for(let _0x40cb69=0x0;_0x40cb69<_0x2d1d8f['length'];_0x40cb69++){const _0x48a59f=_0x2d1d8f[_0x40cb69];void 0x0!==_0x48a59f['fromVersion']&&void 0x0===_0x48a59f['toVersion']&&(_0x48a59f['toVersion']=this['repository']['getRevision'](_0x48a59f['id'])['toVersion']),void 0x0!==_0x48a59f['toVersion']&&void 0x0===_0x48a59f['fromVersion']&&(_0x48a59f['fromVersion']=this['repository']['getRevision'](_0x48a59f['id'])['fromVersion']);}const _0x39c0f0=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x2d1d8f,_0x39c0f0)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x22cac0=>{if(_0x22cac0){for(const _0x45fdbc of _0x22cac0)this['setRevisionData']({'id':_0x45fdbc['id'],'createdAt':_0x45fdbc['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x574373=null,from:_0x1357cb=null,to:_0x1baec0=null}){_0x1357cb=null!==_0x1357cb?_0x1357cb:_0x574373['fromVersion'],_0x1baec0=null!==_0x1baec0?_0x1baec0:_0x574373['toVersion'];const _0x150f6c=this['_revisionDataBuilder']['getData'](_0x1357cb,_0x1baec0),_0x50c0f7={'diffData':_0x150f6c['diffData'],'authorsIds':_0x150f6c['authorsIds'],'fromVersion':_0x1357cb,'toVersion':_0x1baec0};if(!_0x574373||_0x1baec0!==_0x574373['toVersion']){const _0xb2abfc=_0x1baec0-0x1,_0x17505c=this['_source']['history']['getOperation'](_0xb2abfc);_0x50c0f7['createdAt']=_0x17505c&&_0x17505c['createdAt']||new Date();}if(this['_loadedStateData']&&_0x1357cb===this['_loadedStateData']['fromVersion']){for(const _0x5a9a8b of this['_loadedStateData']['authors'])_0x50c0f7['authorsIds']['includes'](_0x5a9a8b['id'])||_0x50c0f7['authorsIds']['push'](_0x5a9a8b['id']);}return _0x50c0f7;}['_bufferUpdate'](_0x1e2f7c,_0x491551,_0x39df0e){if(this['_bufferedUpdates']['has'](_0x1e2f7c)){const _0x12bc50=this['_bufferedUpdates']['get'](_0x1e2f7c);_0x491551=_0x39df0e?{..._0x12bc50,..._0x491551}:{..._0x491551,..._0x12bc50};}this['_bufferedUpdates']['set'](_0x1e2f7c,_0x491551);}['setRevisionData'](_0x3fffa2){const _0x1678c3=this['repository']['getRevision'](_0x3fffa2['id']);if(_0x3fffa2['createdAt']&&(_0x3fffa2['createdAt']=new Date(_0x3fffa2['createdAt'])),_0x3fffa2['authorsIds']){const _0x19c0a4=this['editor']['plugins']['get']('Users');_0x3fffa2['authors']=_0x3fffa2['authorsIds']['map'](_0x47b799=>_0x19c0a4['getUser'](_0x47b799));}_0x1678c3['_update'](_0x3fffa2,!0x0);}['_createInitialRevision'](_0x2691eb){const _0x2f3c01=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x2f3c01)this['_initialRevisionId']=_0x2f3c01['id'];else{const _0x563358=!this['editor']['model']['document']['roots']['find'](_0x385bc0=>this['editor']['model']['hasContent'](_0x385bc0)),_0x7e3f2f=this['editor']['plugins']['get']('Users')['me']['id'],_0x595012=m(this['editor']['locale'],_0x563358?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x2691eb,'to':_0x2691eb,'id':this['_initialRevisionId'],'name':_0x595012,'creatorId':_0x7e3f2f});}}['_createCurrentRevision'](_0x15c0b5){const _0x351506=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x351506),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x15c0b5,'to':_0x15c0b5,'id':_0x351506,'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'](_0x3bcd30,_0x4ee0e6){let _0x2495c4=this['editor']['config']['get']('initialData'),_0xaef326=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x2495c4){_0x2495c4={};for(const _0x1b7f97 of this['editor']['model']['document']['getRootNames']())_0x2495c4[_0x1b7f97]='';}if('string'==typeof _0x2495c4&&(_0x2495c4={'main':_0x2495c4}),void 0x0===_0xaef326){_0xaef326={};for(const _0x46322a of this['editor']['model']['document']['getRootNames']())_0xaef326[_0x46322a]={};}let _0x429f1d=!0x1;const _0x1cdf52=Object['keys'](_0x2495c4),_0xe77d82=Object['keys'](_0x3bcd30);for(const _0x45b148 of _0x1cdf52){if(_0x2495c4[_0x45b148]!==_0x3bcd30[_0x45b148]&&''!==_0x2495c4[_0x45b148]['trim']()){_0x429f1d=!0x0;break;}if(!_0x51e433(_0xaef326[_0x45b148],_0x4ee0e6[_0x45b148])&&Object['keys'](_0xaef326[_0x45b148])['length']>0x0){_0x429f1d=!0x0;break;}}_0x429f1d||(_0x429f1d=_0xe77d82['some'](_0x1985af=>!this['editor']['model']['document']['getRoot'](_0x1985af))),_0x429f1d&&_0x38a3ce('editor-initial-data-replaced-with-revision-data',{'editorData':_0x2495c4,'editorRootsAttributes':_0xaef326,'revisionData':_0x3bcd30,'revisionRootsAttributes':_0x4ee0e6}),this['editor']['config']['set']('initialData',_0x3bcd30),this['editor']['config']['set']('rootsAttributes',_0x4ee0e6);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x41e839=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x41e839['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x45ba63){const _0x2330e1=this['repository']['getRevisions']();_0x2330e1['reverse']();let _0x1be738=0x0;for(;_0x1be738<_0x2330e1['length'];){const _0xef0af0=_0x2330e1[_0x1be738];if(_0xef0af0===this['currentRevision']){_0x1be738++;continue;}if(_0xef0af0['id']===this['_initialRevisionId'])break;const _0x41b956=_0x45ba63['toVersion']-_0xef0af0['toVersion']||_0x45ba63['fromVersion']-_0xef0af0['fromVersion'];if(_0x41b956>0x0)break;if(_0x41b956<0x0)_0x1be738++;else{if(!_0x45ba63['creator']&&_0xef0af0['creator'])break;if(_0xef0af0['creator']||!_0x45ba63['creator']){if(_0x45ba63['createdAt']>_0xef0af0['createdAt'])break;_0x1be738++;}else _0x1be738++;}}return _0x1be738;}['_getFromVersion'](_0x5179f1){const _0x10c14f=this['repository']['getRevisions']();_0x10c14f['reverse'](),_0x10c14f['shift']();const _0x706b1b=_0x10c14f['find'](_0x2681cd=>_0x2681cd['toVersion']<=_0x5179f1)['toVersion'];return _0x706b1b<this['_startingVersion']?this['_startingVersion']:_0x706b1b;}['_makeRevision']({name:_0x45b255,from:_0x421c5b,to:_0x3f23e3,creatorId:_0x10273d,id:_0x40e4d1}){const _0x461c63=this['buildRevisionData']({'from':_0x421c5b,'to':_0x3f23e3});_0x461c63['name']=_0x45b255,_0x461c63['creatorId']=_0x10273d,_0x461c63['id']=_0x40e4d1;const _0x15ed46=this['addRevisionData'](_0x461c63);return this['adapter']&&this['_bufferUpdate'](_0x461c63['id'],_0x461c63,!0x0),_0x15ed46;}['_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(_0x215cab){this['editor']=_0x215cab,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'](_0x50d36a){this['source']=_0x50d36a;const _0x1a1b43=new Map(),_0xd9777e=new Map(),_0x163dbc=this['editor']['model']['document']['roots']['map'](_0x58401e=>_0x58401e['rootName']);for(const _0x2cf10a of _0x163dbc){const _0x4c2117=this['editor']['model']['document']['getRoot'](_0x2cf10a),_0xa7232a=x(_0x4c2117);_0x1a1b43['set'](_0x2cf10a,_0xa7232a),_0xd9777e['set'](_0x2cf10a,Object['fromEntries'](_0x4c2117['getAttributes']()));}const _0x3188dd=Array['from'](this['editor']['model']['markers'])['map'](_0x1bb64e=>[_0x1bb64e['name'],_0x1bb64e['getRange']()]),_0x1c25d4=this['source']['version'];this['_saveMetaData'](_0x1c25d4,_0x1a1b43,_0x3188dd,_0xd9777e),this['_startingRevisionId']=this['_revisionId'];const _0x18c231=new Map(),_0x4bf208=new Map();for(const _0x351521 of _0x163dbc){const _0x2acce8=N(_0x351521);_0x18c231['set'](_0x351521,_0x2acce8),_0x4bf208['set'](_0x351521,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x18c231,[],_0x4bf208);}['getData'](_0x20dd73,_0x2db11a){if(this['_lastFrom']===_0x20dd73&&this['_lastTo']<=_0x2db11a)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x2db11a,!0x0);else{if(!this['_savedMetaData']['has'](_0x20dd73)){const _0x3b39b8=this['_getPreviousFrom'](_0x20dd73);this['_calculateMetaData'](_0x3b39b8,_0x20dd73,!0x1);}this['_calculateMetaData'](_0x20dd73,_0x2db11a,!0x0);}return this['_lastFrom']=_0x20dd73,this['_lastTo']=_0x2db11a,this['_getState']();}['loadState'](_0x11f65f){if(!this['_savedMetaData']['has'](_0x11f65f['fromVersion'])){const _0x1c0e86=this['_getPreviousFrom'](_0x11f65f['fromVersion']);this['_calculateMetaData'](_0x1c0e86,_0x11f65f['fromVersion'],!0x1);}this['_calculateMetaData'](_0x11f65f['fromVersion'],_0x11f65f['toVersion'],!0x1);const _0x3f555c=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x11f65f['fromVersion'],this['_lastTo']=_0x11f65f['toVersion'];for(const _0x58080a in _0x11f65f['diffData']){const _0x134513=_0x11f65f['diffData'][_0x58080a]['attachChange'],_0x4627a0=_0x3d9550(_0x11f65f['diffData'][_0x58080a]['attributesBefore'])||{},_0x70d6bf=_0x3f555c['_makeModelFromViewString'](_0x11f65f['diffData'][_0x58080a]['deletions']);_0x70d6bf['rootName']=_0x58080a,_0x70d6bf['_isAttached']=!_0x134513||!_0x134513['isAttached'],_0x70d6bf['isAttached']=()=>_0x70d6bf['_isAttached'],this['_baseRoots']['set'](_0x58080a,_0x70d6bf),this['_baseRootsAttributes']['set'](_0x58080a,_0x4627a0),_0x134513&&this['_touchedRoots']['set'](_0x58080a,_0x134513);const _0x1c56df=this['_makeIdsRoot'](_0x70d6bf);this['_baseIdsRoots']['set'](_0x58080a,_0x1c56df);for(const [_0x377f59,_0x6bbb2d]of _0x70d6bf['markers']){if(!_0x377f59['startsWith']('revision:'))continue;const _0x280b05=_0x377f59['split'](':')[0x2];for(const _0x42fa1a of _0x6bbb2d['getWalker']({'singleCharacters':!0x0})){const _0x592459=this['_getVidAttributeName'](_0x42fa1a),_0x104285='elementEnd'==_0x42fa1a['type']?_0x42fa1a['previousPosition']['path']['slice'](0x0,-0x1):_0x42fa1a['previousPosition']['path'],_0x198699=_0x1c56df['getNodeByPath'](_0x104285)['getAttribute'](_0x592459);this['_touched']['set'](_0x198699,{'userId':_0x280b05});}_0x70d6bf['markers']['delete'](_0x377f59);}}this['_startingRevisionId']=this['_revisionId'];const _0xccde6=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x2b5a5d=>!this['_touched']['has'](_0x2b5a5d));let _0x336947=0x0;const _0x234cb8=new Map();for(const _0x2b7f4a in _0x11f65f['diffData']){const _0x36569a=_0x11f65f['diffData'][_0x2b7f4a]['attachChange'],_0x176e3c=_0x3d9550(_0x11f65f['diffData'][_0x2b7f4a]['attributesAfter'])||{},_0x5ecfa0=_0x3f555c['_makeModelFromViewString'](_0x11f65f['diffData'][_0x2b7f4a]['insertions']);_0x5ecfa0['rootName']=_0x2b7f4a,_0x5ecfa0['_isAttached']=!_0x36569a||_0x36569a['isAttached'],_0x5ecfa0['isAttached']=()=>_0x5ecfa0['_isAttached'],this['_diffRoots']['set'](_0x2b7f4a,_0x5ecfa0),this['_diffRootsAttributes']['set'](_0x2b7f4a,_0x176e3c);const _0x519d58=this['_makeIdsRoot'](_0x5ecfa0,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x2b7f4a,_0x519d58),_0x234cb8['set'](_0x2b7f4a,_0x5ecfa0['isAttached']()?_0x176e3c:{});for(const [_0x4121a8,_0x2372dd]of _0x5ecfa0['markers']){if(!_0x4121a8['startsWith']('revision:'))continue;const _0x496251=_0x4121a8['split'](':')[0x2];for(const _0x564d85 of _0x2372dd['getWalker']({'singleCharacters':!0x0})){const _0x58eee5=this['_getVidAttributeName'](_0x564d85),_0xff118a=this['_revisionId']++,_0x22aca2='elementEnd'==_0x564d85['type']?_0x564d85['previousPosition']['path']['slice'](0x0,-0x1):_0x564d85['previousPosition']['path'];_0x519d58['getNodeByPath'](_0x22aca2)['_setAttribute'](_0x58eee5,_0xff118a),this['_touched']['set'](_0xff118a,{'userId':_0x496251});}_0x5ecfa0['markers']['delete'](_0x4121a8);}for(const _0x20e5d6 of this['editor']['model']['createRangeIn'](_0x5ecfa0)['getWalker']({'singleCharacters':!0x0})){const _0x169ae1=this['_getVidAttributeName'](_0x20e5d6),_0x1c229e='elementEnd'==_0x20e5d6['type']?_0x20e5d6['previousPosition']['path']['slice'](0x0,-0x1):_0x20e5d6['previousPosition']['path'],_0x38c9d2=_0x519d58['getNodeByPath'](_0x1c229e);_0x38c9d2['getAttribute'](_0x169ae1)>0x0||_0x38c9d2['_setAttribute'](_0x169ae1,_0xccde6[_0x336947++]);}for(const [_0x32256b,_0x17fc18]of _0x5ecfa0['markers'])_0x32256b['startsWith']('revision:')||this['_markers']['set'](_0x32256b,_0x17fc18);}const {roots:_0x5bbe25}=this['_savedMetaData']['get'](_0x11f65f['fromVersion']),{roots:_0x3da903}=this['_savedMetaData']['get'](_0x11f65f['toVersion']),_0x1773b3=x(_0x5bbe25['get']('$graveyard'));this['_baseRoots']['set']('$graveyard',_0x1773b3),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x1773b3,Number['NEGATIVE_INFINITY']));const _0x3b4855=x(_0x3da903['get']('$graveyard'));this['_diffRoots']['set']('$graveyard',_0x3b4855),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x3b4855));const _0x3c589b=Array['from'](this['_diffRoots'])['map'](([_0x2bb698,_0x2a87aa])=>[_0x2bb698,x(_0x2a87aa)]);this['_saveMetaData'](this['_lastTo'],_0x3c589b,this['_markers'],_0x234cb8);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x25dad5,_0x6d191f,_0x98797a,_0x2467b3){const _0x3d2a49=new Map(_0x6d191f),_0x42c137=new Map(_0x3d9550(_0x2467b3)),_0x11621c=new Map();for(const [_0x84b162,_0x2be837]of _0x98797a)_0x11621c['set'](_0x84b162,{'start':_0x2be837['start']['clone'](),'end':_0x2be837['end']['clone'](),'rootName':_0x2be837['root']['rootName']});this['_savedMetaData']['set'](_0x25dad5,{'roots':_0x3d2a49,'markers':_0x11621c,'rootsAttributes':_0x42c137});}['_removeMetaData'](_0xb1c34f){this['_savedMetaData']['delete'](_0xb1c34f);}['_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'](_0x4ec8d8,_0x4d83ff=null){let _0x5e67b9=null;_0x4ec8d8['is']('documentFragment')||(_0x5e67b9=new _0x19d0e1(_0x4ec8d8['name'],{'vid_start':null===_0x4d83ff?this['_revisionId']++:_0x4d83ff++}));const _0x379a21=[];for(const _0x2d0ac1 of _0x4ec8d8['getChildren']())if(_0x2d0ac1['is']('element')){_0x379a21['push'](this['_makeIdsRoot'](_0x2d0ac1,_0x4d83ff));const _0x306ec0=_0x379a21[_0x379a21['length']-0x1];null!==_0x4d83ff&&(_0x4d83ff=_0x306ec0['is']('element','$text')?_0x306ec0['getAttribute']('vid')+0x1:_0x306ec0['getAttribute']('vid_end')+0x1);}else{for(let _0x51badd=0x0;_0x51badd<_0x2d0ac1['offsetSize'];_0x51badd++)_0x379a21['push'](new _0x19d0e1('$text',{'vid':null===_0x4d83ff?this['_revisionId']++:_0x4d83ff++}));}if(_0x4ec8d8['is']('documentFragment')){const _0x2deeec=N(_0x4ec8d8['rootName']);return _0x2deeec['_insertChild'](0x0,_0x379a21),_0x2deeec;}return _0x5e67b9['_setAttribute']('vid_end',null===_0x4d83ff?this['_revisionId']++:_0x4d83ff++),_0x5e67b9['_insertChild'](0x0,_0x379a21),_0x5e67b9;}['_calculateMetaData'](_0x5b2729,_0x5ccf64,_0x2dd518){this['_reset']();const {roots:_0x5cb947,markers:_0x43c292,rootsAttributes:_0x5c4df8}=this['_savedMetaData']['get'](_0x5b2729);this['_baseRoots']=new Map(_0x5cb947),this['_baseRootsAttributes']=new Map(_0x3d9550(_0x5c4df8));for(const [_0x31a2f9,_0xb4a94f]of this['_baseRoots'])if('$graveyard'!==_0x31a2f9&&(this['_diffRoots']['set'](_0x31a2f9,x(_0xb4a94f)),this['_diffRootsAttributes']=new Map(_0x3d9550(_0x5c4df8)),_0x2dd518)){const _0x6ab72d=this['_revisionId'];this['_idsRoots']['set'](_0x31a2f9,this['_makeIdsRoot'](_0xb4a94f)),this['_baseIdsRoots']['set'](_0x31a2f9,this['_makeIdsRoot'](_0xb4a94f,_0x6ab72d));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x2dd518&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x243c34,_0x44963e]of _0x43c292){const _0x51d9d2=this['_baseRoots']['get'](_0x44963e['rootName']),_0x3c285a=this['_diffRoots']['get'](_0x44963e['rootName']),_0x3bcdb2=new _0x173a0b(this['_fixPosition'](_0x44963e['start'],_0x51d9d2),this['_fixPosition'](_0x44963e['end'],_0x51d9d2)),_0x47f433=this['_fixRange'](_0x3bcdb2,_0x3c285a);_0x51d9d2['markers']['set'](_0x243c34,_0x3bcdb2),this['_markers']['set'](_0x243c34,_0x47f433);}this['_applyOperations'](_0x5b2729,_0x5ccf64,_0x2dd518);}['_applyOperations'](_0x83ff1,_0x423863,_0x101895){for(const _0x22fe27 of this['source']['getOperations'](_0x83ff1,_0x423863))this['_handleOperation'](_0x22fe27,_0x101895);for(const _0x568932 of this['_diffRoots']['values']())_0x568932['markers']['clear']();for(const [_0xe228ec,_0x279930]of this['_markers']){this['_diffRoots']['get'](_0x279930['root']['rootName'])['markers']['set'](_0xe228ec,_0x279930['clone']());}const _0x2c76e5=new Map(),_0x4424fa=new Map();for(const [_0x4cbfa4,_0x25c4ea]of this['_diffRoots'])_0x2c76e5['set'](_0x4cbfa4,x(_0x25c4ea)),_0x4424fa['set'](_0x4cbfa4,this['_diffRootsAttributes']['get'](_0x4cbfa4));this['_saveMetaData'](_0x423863,_0x2c76e5,this['_markers'],_0x4424fa);}['_getPreviousFrom'](_0x2d5e2e){const _0x3480dc=Array['from'](this['_savedMetaData']['keys']());_0x3480dc['sort']((_0x42a014,_0x2583d4)=>_0x42a014-_0x2583d4),_0x3480dc['reverse']();for(const _0x52069f of _0x3480dc)if(_0x52069f<_0x2d5e2e)return _0x52069f;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0xd8ee1e,_0x2dc45c){const _0x29cd05=Array['from'](_0x2dc45c['markers'])['map'](([_0x525837,_0xe7831d])=>[_0x525837,this['_fixRange'](_0xe7831d,_0xd8ee1e)]);_0xd8ee1e['markers']=new Map(_0x29cd05);}['_transformMarkers'](_0x2515b0){for(const _0x7b35b6 of this['_markers']['values']()){const _0x1a7259=_0x7b35b6['getTransformedByOperation'](_0x2515b0),_0x37eaa3=_0x173a0b['_createFromRanges'](_0x1a7259);_0x7b35b6['start']=_0x37eaa3['start'],_0x7b35b6['end']=_0x37eaa3['end'];}}['_handleOperation'](_0x2ba92b,_0x321a7a){if('addRoot'!=_0x2ba92b['type']&&'detachRoot'!=_0x2ba92b['type']){if('insert'==_0x2ba92b['type']){const _0x4285d3=_0x2ba92b['position']['root']['rootName'];this['_diffRoots']['has'](_0x4285d3)||(this['_diffRoots']['set'](_0x4285d3,N(_0x4285d3,!0x0)),this['_diffRootsAttributes']['set'](_0x4285d3,{}),_0x321a7a&&this['_idsRoots']['set'](_0x4285d3,N(_0x4285d3,!0x0)));}else{if('addRootAttribute'==_0x2ba92b['type']||'removeRootAttribute'==_0x2ba92b['type']||'changeRootAttribute'==_0x2ba92b['type'])return void this['_handleRootAttributeOperation'](_0x2ba92b);'marker'==_0x2ba92b['type']&&this['_handleMarkerOperation'](_0x2ba92b);}if('marker'!==_0x2ba92b['type']){const _0x41b2d4=this['_cloneOperation'](_0x2ba92b,this['_diffRoots']);_0x41b2d4['_execute'](),this['_transformMarkers'](_0x41b2d4);}if(_0x321a7a)switch(_0x2ba92b['type']){case'insert':this['_handleInsertOperation'](_0x2ba92b);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x2ba92b);break;case'merge':this['_handleMergeOperation'](_0x2ba92b);break;case'split':this['_handleSplitOperation'](_0x2ba92b);}}else this['_handleRootOperation'](_0x2ba92b,_0x321a7a);}['_cloneOperation'](_0xe2d35f,_0x49d67d){const _0x51ea5e=_0xe2d35f['clone']();return _0x51ea5e['_authorId']=_0xe2d35f['_authorId'],this['_fixOperation'](_0x51ea5e,_0x49d67d),_0x51ea5e;}['_getBaseVids'](_0x199b79){return _0x199b79['map'](_0x5398f1=>{const _0x4fc9e7=this['_getVidAttributeName'](_0x5398f1);return Number(_0x5398f1['item']['getAttribute'](_0x4fc9e7));});}['_generateTape'](_0x580f7b,_0x51ac70){if(_0x580f7b['is']('element','$text'))_0x51ac70['push']({'item':_0x580f7b,'type':'text'});else{_0x580f7b['is']('element')&&_0x51ac70['push']({'item':_0x580f7b,'type':'elementStart'});for(const _0x1c59f4 of _0x580f7b['getChildren']())this['_generateTape'](_0x1c59f4,_0x51ac70);_0x580f7b['is']('element')&&_0x51ac70['push']({'item':_0x580f7b,'type':'elementEnd'});}return _0x51ac70;}['_getState'](){const _0x41e6a7=new Map(this['_touched']),_0x4c7b60=new Map(_0x41e6a7),_0x3eb43b=new Map(),_0x563097={'insertions':{},'deletions':{}},_0x3916ac={'insertions':{},'deletions':{}},_0x5ae320=new Map(),_0x30480c=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x30480c['delete']('$graveyard');for(const _0xe619d9 of _0x30480c){const _0x1e873f=this['_diffRoots']['get'](_0xe619d9)||N(_0xe619d9,!0x1),_0x84d080=this['_baseRoots']['get'](_0xe619d9)||N(_0xe619d9,!0x1);_0x1e873f['isAttached']()||_0x84d080['isAttached']()?(_0x563097['insertions'][_0xe619d9]=x(_0x1e873f),_0x563097['deletions'][_0xe619d9]=x(_0x84d080),this['_copyMarkers'](_0x563097['deletions'][_0xe619d9],_0x84d080),this['_copyMarkers'](_0x563097['insertions'][_0xe619d9],_0x1e873f),_0x3916ac['insertions'][_0xe619d9]=this['_generateTape'](this['_idsRoots']['get'](_0xe619d9),[]),_0x3916ac['deletions'][_0xe619d9]=this['_generateTape'](this['_baseIdsRoots']['get'](_0xe619d9)||N(_0xe619d9,!0x1),[])):_0x30480c['delete'](_0xe619d9);}for(const _0x1946a3 of _0x30480c){const _0x23cc72=_0x3916ac['insertions'][_0x1946a3];for(const _0x2bc4ac of _0x23cc72){const _0x454870=this['_getVidAttributeName'](_0x2bc4ac),_0x1403b9=_0x2bc4ac['item']['getAttribute'](_0x454870);_0x4c7b60['delete'](_0x1403b9),_0x1403b9>=this['_startingRevisionId']&&_0x3eb43b['set'](_0x1403b9,_0x41e6a7['get'](_0x1403b9));}}for(const _0x52a8e9 of _0x30480c){const _0x3e869a=_0x3916ac['insertions'][_0x52a8e9],_0x61ab3e=this['_getBaseVids'](_0x3916ac['deletions'][_0x52a8e9]);let _0x4a7e78=0x0;for(const _0x38ea67 of _0x3e869a){const _0xf29f=this['_getVidAttributeName'](_0x38ea67),_0x132543=_0x38ea67['item']['getAttribute'](_0xf29f);if(!_0x3eb43b['has'](_0x132543)&&!_0x5ae320['has'](_0x132543)){if(_0x4c7b60['has'](_0x132543))_0x4a7e78++;else{if(_0x132543!=_0x61ab3e[_0x4a7e78]){const _0x1fd0bc=_0x41e6a7['get'](_0x132543)||_0x41e6a7['get'](_0x61ab3e[_0x4a7e78]);for(;_0x132543!=_0x61ab3e[_0x4a7e78];)_0x4c7b60['has'](_0x61ab3e[_0x4a7e78])||(_0x5ae320['set'](_0x61ab3e[_0x4a7e78],_0x1fd0bc),_0x41e6a7['set'](_0x61ab3e[_0x4a7e78],_0x1fd0bc)),_0x4a7e78++;}_0x4a7e78++;}}}}for(const _0x4a069a of _0x30480c){const _0x535157=_0x3916ac['insertions'][_0x4a069a];for(const _0x311ed4 of _0x535157){const _0x3801d0=this['_getVidAttributeName'](_0x311ed4),_0x475883=_0x311ed4['item']['getAttribute'](_0x3801d0);if(_0x5ae320['has'](_0x475883)){const _0xfddee5=_0x5ae320['get'](_0x475883);_0x4c7b60['has'](_0x475883)||_0x4c7b60['set'](_0x475883,{..._0xfddee5}),_0x3eb43b['set'](_0x475883,{..._0xfddee5});}}}for(const _0x11ee1f of _0x4c7b60['keys']())_0x11ee1f>=this['_startingRevisionId']&&_0x4c7b60['delete'](_0x11ee1f);const _0x5740c9=new Map();for(const _0x1b61ef of _0x30480c){let _0x693020=_0x3916ac['insertions'][_0x1b61ef];for(const _0x4cb8ef of _0x693020)if(_0x4cb8ef['item']['is']('element','tableCell')){const _0x1bb529=this['_getVidAttributeName'](_0x4cb8ef),_0x5c7a38=_0x4cb8ef['item']['getAttribute'](_0x1bb529);if(_0x3eb43b['has'](_0x5c7a38)){const _0x1f1047=_0x4cb8ef['item']['parent']['parent']['getAttribute']('vid_start'),_0x4f0250=_0x5740c9['get'](_0x1f1047)||new Set();_0x4f0250['add'](_0x3eb43b['get'](_0x5c7a38)['userId']),_0x5740c9['set'](_0x1f1047,_0x4f0250);}}_0x693020=_0x3916ac['deletions'][_0x1b61ef];for(const _0xd827a of _0x693020)if(_0xd827a['item']['is']('element','tableCell')){const _0xf6a6b4=this['_getVidAttributeName'](_0xd827a),_0x302d4e=_0xd827a['item']['getAttribute'](_0xf6a6b4);if(_0x4c7b60['has'](_0x302d4e)){const _0x2e6da3=_0xd827a['item']['parent']['parent']['getAttribute']('vid_start'),_0x1ff6ca=_0x5740c9['get'](_0x2e6da3)||new Set();_0x1ff6ca['add'](_0x4c7b60['get'](_0x302d4e)['userId']),_0x5740c9['set'](_0x2e6da3,_0x1ff6ca);}}for(const _0x465c05 of _0x5740c9['keys']())(_0x3eb43b['has'](_0x465c05)||_0x4c7b60['has'](_0x465c05))&&_0x5740c9['delete'](_0x465c05);}for(const _0x4f971e of _0x30480c){const _0x1ab78e=_0x3916ac['insertions'][_0x4f971e];let _0xc6adbe=null,_0x5b4b1f=null;for(const _0x56728f of _0x1ab78e){const _0x4df7cb=this['_getVidAttributeName'](_0x56728f),_0x571b36=_0x56728f['item']['getAttribute'](_0x4df7cb),_0x543f18=_0x5740c9['get'](_0x571b36);_0x543f18&&'elementStart'==_0x56728f['type']&&(_0xc6adbe=Array['from'](_0x543f18)[0x0],_0x5b4b1f=_0x56728f['item']['getAttribute']('vid_end')),_0xc6adbe&&(_0x4c7b60['set'](_0x571b36,{'userId':_0xc6adbe}),_0x3eb43b['set'](_0x571b36,{'userId':_0xc6adbe})),_0x571b36==_0x5b4b1f&&(_0xc6adbe=null,_0x5b4b1f=null);}}const _0x301a4b={},_0xe97a92=new Set();for(const _0x143676 of _0x30480c){const _0x1e9620=_0x563097['deletions'][_0x143676],_0x20ef84=_0x563097['insertions'][_0x143676];for(const {userId:_0x54c497}of this['_touchedMarkers']['values']())null!==_0x54c497&&_0xe97a92['add'](_0x54c497);for(const {userId:_0x549ae6}of this['_touchedRoots']['values']())null!==_0x549ae6&&_0xe97a92['add'](_0x549ae6);this['_markChanges'](_0x20ef84,_0x3916ac['insertions'][_0x143676],_0x3eb43b,'insertion',_0xe97a92),this['_markChanges'](_0x1e9620,_0x3916ac['deletions'][_0x143676],_0x4c7b60,'deletion',_0xe97a92),_0x301a4b[_0x143676]={'insertions':this['_prepareViewToSave'](_0x20ef84),'deletions':this['_prepareViewToSave'](_0x1e9620),'attachChange':this['_touchedRoots']['get'](_0x143676)||null,'attributesBefore':_0x3d9550(this['_baseRootsAttributes']['get'](_0x143676))||{},'attributesAfter':_0x3d9550(this['_diffRootsAttributes']['get'](_0x143676))};}return{'diffData':_0x301a4b,'authorsIds':Array['from'](_0xe97a92)};}['_processRootBeforeSave'](_0x2efd4c){for(const [,_0x32a470]of _0x2efd4c['markers']){const _0x59ab76=_0x32a470['start']['getAncestors']()['filter'](_0x4fb93d=>'tableCell'==_0x4fb93d['name']);for(const _0x3166a9 of _0x59ab76)0x1==_0x3166a9['childCount']&&_0x3166a9['getChild'](0x0)['is']('element','paragraph')&&_0x3166a9['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x5f4edb){this['_processRootBeforeSave'](_0x5f4edb);const _0xc427e5=this['editor']['data']['toView'](_0x5f4edb,{}),_0x361d4=Array['from'](_0xc427e5['getChildren']())['map'](_0x3ccef5=>this['_getViewJson'](_0x3ccef5));return JSON['stringify'](_0x361d4);}['_getViewJson'](_0x37f089){if(_0x37f089['is']('$text'))return _0x37f089['data'];{const _0x8e5364=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x53576e=_0x37f089,_0x2873a8=this['editor']['data']['htmlProcessor']['domConverter'],_0xdacecc={'type':_0x8e5364['_getTypeCharForViewElement'](_0x53576e),'name':_0x53576e['name'],'attributes':Array['from'](_0x53576e['getAttributes']()),'children':Array['from'](_0x53576e['getChildren']())['map'](_0x246ebb=>this['_getViewJson'](_0x246ebb))};if(_0x37f089['is']('uiElement')&&'$comment'!=_0x37f089['name']){const _0x2baa41=_0x37f089['render'](_0x2873a8['domDocument'],_0x2873a8);_0xdacecc['children']['push'](_0x2baa41['outerHTML']);}else{if(_0x37f089['is']('rawElement')){const _0xc81c1a=_0x2873a8['domDocument']['createElement'](_0x53576e['name']);_0x37f089['render'](_0xc81c1a,_0x2873a8),_0xdacecc['children']['push'](_0xc81c1a['innerHTML']);}}const _0x230c80=Array['from'](_0x53576e['getCustomProperties']());_0x230c80['length']>0x0&&(_0xdacecc['customProperties']=_0x230c80);const _0x591d7c=_0x53576e['getFillerOffset']();return null!==_0x591d7c&&(_0xdacecc['fillerOffset']=_0x591d7c),_0xdacecc;}}['_markChanges'](_0x4f4041,_0x152e98,_0x5103d2,_0x422966,_0x31aba0){let _0x304adc=null,_0x4f5c3a=null,_0x483972=0x0;const _0x3787ed=this['editor']['model'];for(let _0x205e57=0x0;_0x205e57<_0x152e98['length'];_0x205e57++){const _0x349eb4=this['_getVidAttributeName'](_0x152e98[_0x205e57]),_0x2e08bb=_0x152e98[_0x205e57]['item']['getAttribute'](_0x349eb4),_0x56c5ad=_0x5103d2['get'](_0x2e08bb),_0x115bf9=_0x205e57==_0x152e98['length']-0x1;(!_0x304adc&&_0x56c5ad&&(_0x304adc=_0x56c5ad,_0x4f5c3a=_0x152e98[_0x205e57]),_0x304adc&&(!_0x56c5ad||_0x56c5ad['userId']!=_0x304adc['userId']))&&(_0x3a0ec1(_0x56c5ad,P(_0x4f5c3a,_0x4f4041,_0x3787ed),P(_0x152e98[_0x205e57],_0x4f4041,_0x3787ed)),_0x304adc=_0x56c5ad||null,_0x4f5c3a=_0x56c5ad?_0x152e98[_0x205e57]:null),_0x304adc&&_0x115bf9&&_0x3a0ec1(_0x56c5ad,P(_0x4f5c3a,_0x4f4041,_0x3787ed),V(_0x152e98[_0x205e57],_0x4f4041,_0x3787ed));}function _0x3a0ec1(_0x119a00,_0x564a7c,_0x45b925){const _0x3bf2a3=_0x304adc['userId'],_0x4cdfd0='revision:'+_0x422966+':'+_0x3bf2a3+':'+_0x483972++,_0x2641b7=_0x3787ed['createRange'](_0x564a7c,_0x45b925);_0x4f4041['markers']['set'](_0x4cdfd0,_0x2641b7),null!==_0x3bf2a3&&_0x31aba0['add'](_0x3bf2a3);}}['_getVidAttributeName'](_0x166cf1){switch(_0x166cf1['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0xfa9c2c,_0x558761){_0xfa9c2c['baseVersion']=null;for(const _0x3164ca in _0xfa9c2c){const _0xa3b7d8=_0xfa9c2c[_0x3164ca];if(_0xa3b7d8 instanceof _0x5ddace){const _0x434559=_0x558761['get'](_0xa3b7d8['root']['rootName']);_0xfa9c2c[_0x3164ca]=this['_fixPosition'](_0xa3b7d8,_0x434559);}if(_0xa3b7d8 instanceof _0x173a0b){const _0x24fb3b=_0x558761['get'](_0xa3b7d8['root']['rootName']);_0xfa9c2c[_0x3164ca]=this['_fixRange'](_0xa3b7d8,_0x24fb3b);}'root'===_0x3164ca&&(_0xfa9c2c['root']=_0x558761['get'](_0xfa9c2c['root']['rootName']));}}['_fixRange'](_0x33cde9,_0x2c1077){return this['editor']['model']['createRange'](this['_fixPosition'](_0x33cde9['start'],_0x2c1077),this['_fixPosition'](_0x33cde9['end'],_0x2c1077));}['_fixPosition'](_0x10b331,_0x4731f4){return this['editor']['model']['createPositionFromPath'](_0x4731f4,_0x10b331['path'],_0x10b331['stickiness']);}['_handleInsertOperation'](_0x1153c7){const _0x442123=this['_idsRoots']['get'](_0x1153c7['position']['root']['rootName']),_0x255997=this['_fixPosition'](_0x1153c7['position'],_0x442123),_0x274147=null===_0x1153c7['_authorId']?null:_0x1153c7['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x315eda=_0x255997['parent'],_0x2eddd7=this['_revisionId'],_0x924e8b=[];for(const _0x22fb8b of _0x1153c7['nodes'])if(_0x22fb8b['is']('element'))_0x924e8b['push'](this['_makeIdsRoot'](_0x22fb8b));else{for(let _0x4e3394=0x0;_0x4e3394<_0x22fb8b['offsetSize'];_0x4e3394++)_0x924e8b['push'](new _0x19d0e1('$text',{'vid':this['_revisionId']++}));}const _0x38ec37=this['_revisionId'];for(let _0x14133c=_0x2eddd7;_0x14133c<_0x38ec37;_0x14133c++)this['_touched']['set'](_0x14133c,{'userId':_0x274147});_0x315eda['_insertChild'](_0x255997['offset'],_0x924e8b);}['_handleMoveOperation'](_0x48bf29){(_0x48bf29=this['_cloneOperation'](_0x48bf29,this['_idsRoots']))['_execute']();const _0x21a800=null===_0x48bf29['_authorId']?null:_0x48bf29['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5cab35=_0x48bf29['getMovedRangeStart'](),_0xd31c80=_0x5cab35['parent'],_0xd7f42=_0x5cab35['offset'];!function _0x55c063(_0xc6ed31,_0x9cf7cc,_0x36072f,_0x513c32){for(let _0x4eb1e1=_0x36072f;_0x4eb1e1<_0x513c32;_0x4eb1e1++){const _0x58b178=_0x9cf7cc['getChild'](_0x4eb1e1);_0x58b178['is']('element','$text')?_0xc6ed31['set'](_0x58b178['getAttribute']('vid'),{'userId':_0x21a800}):(_0xc6ed31['set'](_0x58b178['getAttribute']('vid_start'),{'userId':_0x21a800}),_0x55c063(_0xc6ed31,_0x58b178,0x0,_0x58b178['childCount']),_0xc6ed31['set'](_0x58b178['getAttribute']('vid_end'),{'userId':_0x21a800}));}}(this['_touched'],_0xd31c80,_0xd7f42,_0xd7f42+_0x48bf29['howMany']);}['_handleMergeOperation'](_0x5da72b){const _0x5791b5=null===(_0x5da72b=this['_cloneOperation'](_0x5da72b,this['_idsRoots']))['_authorId']?null:_0x5da72b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x216ef2=_0x5da72b['targetPosition']['parent'],_0x2bf743=_0x5da72b['sourcePosition']['parent'],_0x174b24=_0x216ef2['getAttribute']('vid_end'),_0x453e49=_0x2bf743['getAttribute']('vid_start');_0x216ef2['_setAttribute']('vid_end',_0x2bf743['getAttribute']('vid_end')),_0x2bf743['_setAttribute']('vid_end',_0x174b24),this['_touched']['set'](_0x453e49,{'userId':_0x5791b5}),this['_touched']['set'](_0x174b24,{'userId':_0x5791b5}),_0x5da72b['_execute']();}['_handleSplitOperation'](_0x52e967){const _0x3fcbc6=null===(_0x52e967=this['_cloneOperation'](_0x52e967,this['_idsRoots']))['_authorId']?null:_0x52e967['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x800dce=_0x52e967['graveyardPosition'],_0x35856a=_0x52e967['splitPosition']['parent'];_0x52e967['_execute']();const _0x19e5fc=_0x35856a['getAttribute']('vid_end'),_0x408e94=_0x52e967['insertionPosition']['nodeAfter'];if(_0x800dce){const _0x3e54f3=_0x408e94['getAttribute']('vid_end'),_0x411d38=_0x35856a['getAttribute']('vid_end');_0x35856a['_setAttribute']('vid_end',_0x3e54f3),_0x408e94['_setAttribute']('vid_end',_0x411d38),this['_touched']['set'](_0x35856a['getAttribute']('vid_end'),{'userId':_0x3fcbc6}),this['_touched']['set'](_0x408e94['getAttribute']('vid_start'),{'userId':_0x3fcbc6});}else{const _0x2a2270=this['_revisionId']++,_0x27866a=this['_revisionId']++;_0x35856a['_setAttribute']('vid_end',_0x2a2270),_0x408e94['_setAttribute']('vid_start',_0x27866a),_0x408e94['_setAttribute']('vid_end',_0x19e5fc),this['_touched']['set'](_0x2a2270,{'userId':_0x3fcbc6}),this['_touched']['set'](_0x27866a,{'userId':_0x3fcbc6});}}['_handleMarkerOperation'](_0x21a6c5){if(!_0x21a6c5['affectsData'])return;const _0x49a4a8=(_0x21a6c5=this['_cloneOperation'](_0x21a6c5,this['_diffRoots']))['oldRange']?_0x21a6c5['oldRange']['root']:null,_0x1ea242=_0x21a6c5['newRange']?_0x21a6c5['newRange']['root']:null;_0x49a4a8&&this['_markers']['delete'](_0x21a6c5['name']),_0x1ea242&&this['_markers']['set'](_0x21a6c5['name'],_0x21a6c5['newRange']['clone']());const _0x520fa0=null===_0x21a6c5['_authorId']?null:_0x21a6c5['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1dc24c=_0x21a6c5['name'];if(!this['_touchedMarkers']['has'](_0x1dc24c))return void this['_touchedMarkers']['set'](_0x1dc24c,{'range':_0x21a6c5['oldRange'],'userId':_0x520fa0});const _0x122ae5=this['_touchedMarkers']['get'](_0x1dc24c),_0x4950d4=_0x122ae5['range'],_0x10ebda=_0x21a6c5['newRange'];null==_0x4950d4&&null==_0x10ebda||_0x4950d4&&_0x10ebda&&_0x4950d4['isEqual'](_0x10ebda)?this['_touchedMarkers']['delete'](_0x21a6c5['name']):_0x122ae5['userId']=_0x520fa0;}['_handleRootOperation'](_0x484ac5,_0x6d3e9a){this['_diffRoots']['has'](_0x484ac5['rootName'])?this['_diffRoots']['get'](_0x484ac5['rootName'])['_isAttached']=_0x484ac5['isAdd']:(this['_diffRoots']['set'](_0x484ac5['rootName'],N(_0x484ac5['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x484ac5['rootName'],{}),_0x6d3e9a&&this['_idsRoots']['set'](_0x484ac5['rootName'],N(_0x484ac5['rootName'],!0x0)));const _0x55a1f6=null===_0x484ac5['_authorId']?null:_0x484ac5['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x47560c=this['_touchedRoots']['get'](_0x484ac5['rootName']);_0x47560c&&_0x47560c['userId']===_0x55a1f6?this['_touchedRoots']['delete'](_0x484ac5['rootName']):this['_touchedRoots']['set'](_0x484ac5['rootName'],{'userId':_0x55a1f6,'isAttached':_0x484ac5['isAdd']});}['_handleRootAttributeOperation'](_0x183f71){const _0x22a558=this['_diffRootsAttributes']['get'](_0x183f71['root']['rootName']);null===_0x183f71['newValue']?delete _0x22a558[_0x183f71['key']]:_0x22a558[_0x183f71['key']]=_0x183f71['newValue'];}}function x(_0x2c84aa){const _0x44c9f5=N(_0x2c84aa['rootName'],_0x2c84aa['isAttached']());for(const _0x512c5d of _0x2c84aa['getChildren']()){const _0x4c33bd=_0x512c5d['_clone'](!0x0);_0x44c9f5['_appendChild'](_0x4c33bd);}return _0x44c9f5;}function N(_0x383444,_0x4a7484=!0x0){const _0xa68d68=new _0x274a40();return _0xa68d68['rootName']=_0x383444,_0xa68d68['_isAttached']=_0x4a7484,_0xa68d68['isAttached']=()=>_0xa68d68['_isAttached'],_0xa68d68;}function P(_0x5493f5,_0x11b059,_0x23b91c){const _0x58d5f5='elementEnd'==_0x5493f5['type']?_0x23b91c['createPositionAt'](_0x5493f5['item'],'end'):_0x23b91c['createPositionBefore'](_0x5493f5['item']);return _0x23b91c['createPositionFromPath'](_0x11b059,_0x58d5f5['path'],_0x58d5f5['stickiness']);}function V(_0x2bf066,_0x632d40,_0x161f5c){const _0x16da21='elementStart'==_0x2bf066['type']?_0x161f5c['createPositionAt'](_0x2bf066['item'],0x0):_0x161f5c['createPositionAfter'](_0x2bf066['item']);return _0x161f5c['createPositionFromPath'](_0x632d40,_0x16da21['path'],_0x16da21['stickiness']);}class he extends/* #__PURE__ -- @preserve */
|
|
25
|
-
|
|
26
|
-
_0x402a4e(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x17aa2d){super(),this['id']=_0x17aa2d['id']||_0xc9fc17(),this['author']=_0x17aa2d['author'],this['type']=_0x17aa2d['type'],this['data']=_0x17aa2d['data']||{},this['rootName']=_0x17aa2d['rootName'],this['set']('createdAt',_0x17aa2d['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(_0x54fffb,_0x6d728e){this['newRevisionId']=_0x54fffb,this['oldRevisionId']=_0x6d728e,this['changes']=new _0x56fe88();}['_setChanges'](_0x4b9def){for(const _0x287def of _0x4b9def)this['changes']['add'](_0x287def);}}class u extends _0x1f6d35{['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[_0x3acc3,_0x385662,S,$];}constructor(_0x2002d9){super(_0x2002d9),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',(_0x2be65f,_0x1ac7a8,_0x4968e2)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x507ae4=>{for(const _0x1fa0ae of this['editor']['editing']['view']['document']['roots'])_0x4968e2?_0x507ae4['removeClass']('ck-editor__editable__overlay',_0x1fa0ae):_0x507ae4['addClass']('ck-editor__editable__overlay',_0x1fa0ae);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x2615dc=>null!==_0x2615dc),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x271f7c,_0x3be69a,_0x224b6d)=>_0x271f7c&&_0x224b6d?_0x3be69a['changes']['getIndex'](_0x224b6d):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x135b87,_0x543b9b)=>_0x135b87?_0x543b9b['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x385662);}['init'](){const _0x4bdff3=this['editor'],_0x518182=new rt(_0x4bdff3,{'direction':'backward'}),_0x5487f3=new rt(_0x4bdff3,{'direction':'forward'});(_0x4bdff3['commands']['add']('showPreviousChange',_0x518182),_0x4bdff3['commands']['add']('showNextChange',_0x5487f3),_0x4bdff3['commands']['add']('restoreRevision',new nt(_0x4bdff3)),this['on']('change:numberOfChanges',()=>{_0x518182['refresh'](),_0x5487f3['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x4bdff3['enableReadOnlyMode']('revision-viewer'),_0x4bdff3['plugins']['has']('WidgetToolbarRepository'))&&_0x4bdff3['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x31c583){return await this['_utils']['loadRevisionData'](_0x31c583,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x31c583);}async['getRevisionRootsAttributes'](_0x1333f4){return await this['_utils']['loadRevisionData'](_0x1333f4,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x1333f4);}async['compare'](_0x2a7c19,_0x32cf8e,_0x352f3e=!0x1){if(!this['isEnabled'])return;const _0x54941=this['diff'],_0x328bb3=this['repository'],_0x515667='string'==typeof _0x2a7c19?_0x328bb3['getRevision'](_0x2a7c19):_0x2a7c19,_0x74690c='string'==typeof _0x32cf8e?_0x328bb3['getRevision'](_0x32cf8e):_0x32cf8e,_0x2f1ace=_0x515667['id'],_0x437a0c=_0x74690c?_0x74690c['id']:null;if(!_0x352f3e&&this['diff']&&this['diff']['newRevisionId']===_0x2f1ace&&this['diff']['oldRevisionId']===_0x437a0c)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x2f1ace,_0x437a0c);const _0xbeacd6=this['_getRevisionsRange'](_0x515667,_0x74690c,!0x0)['map'](_0x1cdf18=>this['_utils']['loadRevisionData'](_0x1cdf18,this['adapter']));return _0xbeacd6['push'](new Promise(_0x3adaa1=>{setTimeout(_0x3adaa1,0x14);})),Promise['all'](_0xbeacd6)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x4210b4=this['_getDiff'](_0x2f1ace,_0x437a0c);for(const _0x45b45f of _0x4210b4['changes'])this['_changeIdToChange']['set'](_0x45b45f['id'],_0x45b45f);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x1e587f=>{for(const _0x14e5ae of this['editor']['model']['document']['getRootNames']())_0x1e587f['detachRoot'](_0x14e5ae);for(const _0x3dbbad of Object['keys'](_0x4210b4['model'])){const _0x1112a7=_0x1e587f['addRoot'](_0x3dbbad);for(const _0x46da72 of Object['keys'](_0x4210b4['attributes'][_0x3dbbad]))_0x1e587f['setAttribute'](_0x46da72,_0x4210b4['attributes'][_0x3dbbad][_0x46da72],_0x1112a7);_0x1e587f['insert'](_0x4210b4['model'][_0x3dbbad],_0x1112a7,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x4210b4['changes'])),this['isReady']=!0x0;})['catch'](_0x46d88e=>{console['error'](_0x46d88e),this['_cleanUp'](),_0x54941&&(this['diff']=_0x54941),this['isReady']=!0x0;});}['addRevisionData'](_0x4c4d44,_0x1bc765){const _0x6d8884=this['repository']['createRevision'](_0x4c4d44);return _0x6d8884['on']('_update',(_0x2ca650,_0x45b0b1,_0x2796aa)=>_0x1bc765(_0x45b0b1,_0x2796aa,_0x6d8884)),this['repository']['addRevision'](_0x6d8884),_0x6d8884;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x28c842=>{for(const _0x2bf562 of this['editor']['model']['document']['getRootNames']())_0x28c842['detachRoot'](_0x2bf562);});}['_sortAndFilterDiffChanges'](_0x27492c){const _0x1b8328=[],_0xb55706=new Map();for(const _0x2f7f2e of this['editor']['model']['document']['getRootNames']()){const _0x217bdd=this['editor']['editing']['view']['getDomRoot'](_0x2f7f2e);if(!_0x217bdd)continue;const _0x4e6287=_0x217bdd['getClientRects']()['item'](0x0);_0x4e6287&&(_0x1b8328['push'](_0x2f7f2e),_0xb55706['set'](_0x2f7f2e,_0x4e6287));}return _0x1b8328['sort']((_0x28e384,_0x5e84ac)=>{const _0x8c7f09=_0xb55706['get'](_0x28e384),_0xe9ad47=_0xb55706['get'](_0x5e84ac);return _0x8c7f09['y']-_0xe9ad47['y']||_0x8c7f09['x']-_0xe9ad47['x'];}),(_0x27492c=_0x27492c['filter'](_0x3bca7b=>_0x1b8328['includes'](_0x3bca7b['rootName'])))['sort']((_0x2624bf,_0x30fd5b)=>_0x1b8328['indexOf'](_0x2624bf['rootName'])-_0x1b8328['indexOf'](_0x30fd5b['rootName'])),_0x27492c;}['_makeTape'](_0x1c520a){const _0x56cd80=Array['from'](_0x1c520a['markers'])['filter'](([_0x40caa0,_0x1eb241])=>_0x40caa0['startsWith']('revision:')&&!_0x1eb241['isCollapsed']),_0x156676=Array['from'](this['editor']['model']['createRangeIn'](_0x1c520a)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x56cd80['length'])for(const _0xd1c379 of _0x156676){const [_0xcf46c1,_0x1faafe]=_0x56cd80[0x0],[,_0x306ab1,_0x272d8f]=_0xcf46c1['split'](':');if(_0x1faafe['end']['isEqual'](_0xd1c379['nextPosition'])&&_0x56cd80['shift'](),(_0xd1c379['previousPosition']['isEqual'](_0x1faafe['start'])||_0xd1c379['previousPosition']['isAfter'](_0x1faafe['start']))&&('insertion'==_0x306ab1?_0xd1c379['isAdded']={'userId':_0x272d8f}:'deletion'==_0x306ab1&&(_0xd1c379['isRemoved']={'userId':_0x272d8f})),0x0==_0x56cd80['length'])break;}return _0x156676;}['_refreshStartEndIndex'](_0x3cbc2c){const _0x92f275=new Map();for(let _0x4c4150=0x0;_0x4c4150<_0x3cbc2c['length'];_0x4c4150++)'text'===_0x3cbc2c[_0x4c4150]['type']?(_0x3cbc2c[_0x4c4150]['item']['startIndex']=_0x4c4150,_0x3cbc2c[_0x4c4150]['item']['endIndex']=_0x4c4150):('elementStart'===_0x3cbc2c[_0x4c4150]['type']?_0x3cbc2c[_0x4c4150]['item']['startIndex']=_0x4c4150:'elementEnd'===_0x3cbc2c[_0x4c4150]['type']&&(_0x3cbc2c[_0x4c4150]['item']['endIndex']=_0x4c4150),_0x92f275['set'](_0x3cbc2c[_0x4c4150]['id'],_0x4c4150));for(const _0x1a05fc of _0x92f275['values']())'elementStart'===_0x3cbc2c[_0x1a05fc]['type']?_0x3cbc2c[_0x1a05fc]['item']['endIndex']=_0x92f275['get'](_0x3cbc2c[_0x1a05fc]['pairId']):'elementEnd'===_0x3cbc2c[_0x1a05fc]['type']&&(_0x3cbc2c[_0x1a05fc]['item']['startIndex']=_0x92f275['get'](_0x3cbc2c[_0x1a05fc]['pairId']));}['_processTape'](_0x5573b1){for(let _0x111207=0x0;_0x111207<_0x5573b1['length'];_0x111207++){if('elementStart'===_0x5573b1[_0x111207]['type'])_0x5573b1[_0x111207]['item']['startIndex']=_0x111207;else{if('elementEnd'===_0x5573b1[_0x111207]['type']){_0x5573b1[_0x111207]['item']['endIndex']=_0x111207;const _0x24fb57=_0x5573b1[_0x111207]['item']['startIndex'];_0x5573b1[_0x24fb57]['pairId']=_0x5573b1[_0x111207]['id'],_0x5573b1[_0x111207]['pairId']=_0x5573b1[_0x24fb57]['id'];}else _0x5573b1[_0x111207]['item']['startIndex']=_0x111207,_0x5573b1[_0x111207]['item']['endIndex']=_0x111207,_0x5573b1[_0x111207]['pairId']=null;}_0x5573b1[_0x111207]['markersStart']||(_0x5573b1[_0x111207]['markersStart']=[],_0x5573b1[_0x111207]['markersEnd']=[]);}}['_markInsertions'](_0x6fbe64,_0x5d5f57){const _0x130831=_0x6fbe64['filter'](_0x27e0aa=>!_0x27e0aa['isAdded']);for(let _0x30deb6=0x0;_0x30deb6<_0x5d5f57['length'];_0x30deb6++)_0x5d5f57[_0x30deb6]['isAdded']&&(_0x130831[_0x30deb6]['isAdded']=_0x5d5f57[_0x30deb6]['isAdded']);}['_getDiff'](_0x22774b,_0x31e119=null){const _0x4421af=this['repository']['getRevision'](_0x22774b),_0x29de08=_0x31e119?this['repository']['getRevision'](_0x31e119):null,_0x14662f=this['_getRevisionsRange'](_0x4421af,_0x29de08),_0x44187d=_0x14662f[_0x14662f['length']-0x1],_0xa74e98=new Map(),_0x31b79b={'model':{},'attributes':{},'changes':[]},_0x3d8bec=new Set(),_0x163ab4=new Map();for(let _0x20c123=_0x14662f['length']-0x1;_0x20c123>=0x0;_0x20c123--){const _0x59543b=_0x14662f[_0x20c123];for(const _0x36a35a of Object['keys'](_0x59543b['diffData']))if(_0x59543b['diffData'][_0x36a35a]['attachChange']){const _0x14cc2d=_0x59543b['diffData'][_0x36a35a]['attachChange'];_0x14cc2d['isAttached']?(_0x3d8bec['add'](_0x36a35a),_0x163ab4['has'](_0x36a35a)&&_0x163ab4['get'](_0x36a35a)['userId']==_0x14cc2d['userId']?_0x163ab4['delete'](_0x36a35a):_0x163ab4['set'](_0x36a35a,_0x14cc2d)):_0x163ab4['has'](_0x36a35a)?(_0x3d8bec['delete'](_0x36a35a),_0x163ab4['delete'](_0x36a35a)):(_0x3d8bec['add'](_0x36a35a),_0x163ab4['set'](_0x36a35a,_0x14cc2d));}else _0x3d8bec['add'](_0x36a35a);}for(const _0x2121ed of _0x3d8bec){const _0x2f9214=_0x163ab4['has'](_0x2121ed)&&!_0x163ab4['get'](_0x2121ed)['isAttached'];let _0x88e79e=_0x2f9214?_0x14662f['length']-0x1:0x0;const _0x119d41=_0x2f9214?-0x1:0x1;for(;_0x14662f[_0x88e79e];){const _0x492eca=_0x14662f[_0x88e79e];if(_0x492eca['diffData'][_0x2121ed]){const _0x4409b2=_0x2f9214?_0x492eca['diffData'][_0x2121ed]['attributesBefore']:_0x492eca['diffData'][_0x2121ed]['attributesAfter'];_0x31b79b['attributes'][_0x2121ed]=_0x4409b2?_0x3d9550(_0x4409b2):{};break;}_0x88e79e+=_0x119d41;}}for(const _0x5d90d0 of _0x14662f){_0x5d90d0['model']={};for(const _0x523ee3 of _0x5d90d0['authors'])_0xa74e98['set'](_0x523ee3['id'],_0x523ee3);for(const _0x39a50c of _0x3d8bec){const _0x2bb91c=_0x5d90d0['diffData'][_0x39a50c]?_0x5d90d0['diffData'][_0x39a50c]['insertions']:'[]',_0x16e58f=_0x5d90d0['diffData'][_0x39a50c]?_0x5d90d0['diffData'][_0x39a50c]['deletions']:'[]';_0x5d90d0['model'][_0x39a50c]={'insertions':this['_utils']['_makeModelFromViewString'](_0x2bb91c),'deletions':this['_utils']['_makeModelFromViewString'](_0x16e58f)};}}for(const _0x4e0a39 of _0x3d8bec){let _0x594aff=null,_0x11925d=0x0;const _0x472784=new Map(Array['from'](_0x4421af['model'][_0x4e0a39]['insertions']['markers'])['filter'](([_0x2f2da3])=>!_0x2f2da3['startsWith']('revision:')));let _0x4adbce=0x0;for(const _0x4789e3 of _0x14662f){const _0xfc3855=this['_makeTape'](_0x4789e3['model'][_0x4e0a39]['insertions']);_0x4789e3==_0x4421af?(_0x594aff=_0xfc3855,_0x11925d=_0x594aff['length'],_0x594aff['forEach'](_0x1f6ccd=>{_0x1f6ccd['id']=_0x4adbce++;}),this['_processTape'](_0x594aff)):this['_markInsertions'](_0x594aff,_0xfc3855);const _0xddd7a=_0x594aff['filter'](_0x57996f=>!_0x57996f['isAdded'])['map'](_0x16a36a=>_0x16a36a['id']);let _0x6f7e63=0x0;const _0x514dcd=this['_makeTape'](_0x4789e3['model'][_0x4e0a39]['deletions']);_0x514dcd['forEach'](_0x3ba3a1=>{_0x3ba3a1['isRemoved']?_0x3ba3a1['id']=_0x11925d++:_0x3ba3a1['id']=_0xddd7a[_0x6f7e63++];}),this['_processTape'](_0x514dcd),this['_setDistance'](_0x594aff,'isAdded'),this['_setDistance'](_0x514dcd,'isRemoved'),_0x4789e3==_0x4421af&&this['_markMarkers'](_0x594aff,_0x472784),_0x594aff=this['_joinTapes'](_0x594aff,_0x514dcd),this['_refreshStartEndIndex'](_0x594aff),this['_setDistance'](_0x594aff,'isRemoved');}_0x594aff=_0x594aff['filter'](_0xc3b813=>!(_0xc3b813['isAdded']&&_0xc3b813['isRemoved']));const _0x23685e=new Map(_0x44187d['model'][_0x4e0a39]['deletions']['markers']),_0x3e1fc3=new Set(_0x472784['keys']());for(const _0x4e8ede of _0x23685e['keys']())_0x3e1fc3['delete'](_0x4e8ede);this['_markSuggestions'](_0x594aff,_0x3e1fc3),this['_fixObsoleteTags'](_0x594aff),_0x594aff=this['_removeMissingPairs'](_0x594aff),_0x594aff=this['_markMismatchedRemovedTags'](_0x594aff),_0x594aff=this['_removeUnsupportedChanges'](_0x594aff);const {root:_0x51e1fa,changes:_0x582347}=this['_makeModelFromTape'](_0x594aff,_0xa74e98,_0x4e0a39);_0x31b79b['model'][_0x4e0a39]=_0x51e1fa;const _0x2b5329=_0x163ab4['get'](_0x4e0a39);if(_0x2b5329){const _0x5dad17=_0xa74e98['get'](_0x2b5329['userId']),_0x563da1=new G({'author':_0x5dad17,'type':_0x2b5329['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x4e0a39});_0x582347['unshift'](_0x563da1),_0x31b79b['attributes'][_0x4e0a39]['revisionHistoryAttachChange']=_0x563da1['id'];}_0x31b79b['changes']=_0x31b79b['changes']['concat'](_0x582347);}return _0x31b79b;}['_markMarkers'](_0x158cd0,_0x5763f2){for(let _0x5151b9=0x0;_0x5151b9<_0x158cd0['length'];_0x5151b9++)for(const [_0x416c05,_0x32c82a]of _0x5763f2)!_0x32c82a['isCollapsed']&&_0x32c82a['start']['isEqual'](_0x158cd0[_0x5151b9]['previousPosition'])&&_0x158cd0[_0x5151b9]['markersStart']['push'](_0x416c05),_0x32c82a['end']['isEqual'](_0x158cd0[_0x5151b9]['nextPosition'])&&_0x158cd0[_0x5151b9]['markersEnd']['push'](_0x416c05);}['_joinTapes'](_0x3c11f5,_0x374eb1){let _0x102b79=[],_0x41eca3=0x0,_0xc9a529=0x0;for(;_0x41eca3<_0x3c11f5['length']||_0xc9a529<_0x374eb1['length'];){const _0x27dca4=_0x3c11f5[_0x41eca3]||{},_0x13114e=_0x374eb1[_0xc9a529]||{};if(_0x27dca4['id']==_0x13114e['id'])_0x41eca3++,_0xc9a529++,_0x102b79['push'](_0x27dca4);else{if(_0x13114e['isRemoved']&&_0x27dca4['isAdded']){const {commonTape:_0x558220,iEnd:_0xd91ccb,jEnd:_0x106b68}=this['_threeWayMerge'](_0x3c11f5,_0x41eca3,_0x374eb1,_0xc9a529);_0x102b79=_0x102b79['concat'](_0x558220),_0x41eca3=_0xd91ccb,_0xc9a529=_0x106b68;}else _0x13114e['isRemoved']?(_0xc9a529++,_0x102b79['push'](_0x13114e)):(_0x41eca3++,_0x102b79['push'](_0x27dca4));}}return _0x102b79;}['_markSuggestions'](_0x21951e,_0x231748){const _0xb0d590=[];for(let _0x4c2bc2=0x0;_0x4c2bc2<_0x21951e['length'];_0x4c2bc2++){for(let _0x59406f=0x0;_0x59406f<_0x21951e[_0x4c2bc2]['markersStart']['length'];_0x59406f++){const _0x499eb6=_0x21951e[_0x4c2bc2]['markersStart'][_0x59406f];if(!_0x231748['has'](_0x499eb6))continue;const {group:_0x10bc7d,type:_0x5371e0,authorId:_0x16014a}=_0x1405a5(_0x499eb6);'revision-suggestion'!=_0x10bc7d||'insertion'!=_0x5371e0&&'deletion'!=_0x5371e0||(_0xb0d590['unshift']({'type':_0x5371e0,'name':_0x499eb6,'userId':_0x16014a}),_0x21951e[_0x4c2bc2]['markersStart']['splice'](_0x59406f,0x1),_0x59406f--);}_0x2d0b50(_0x21951e[_0x4c2bc2]);for(let _0x15ecd1=0x0;_0x15ecd1<_0x21951e[_0x4c2bc2]['markersEnd']['length'];_0x15ecd1++){const _0x262402=_0x21951e[_0x4c2bc2]['markersEnd'][_0x15ecd1];if(!_0x231748['has'](_0x262402))continue;const {group:_0x12608d,type:_0x39168e}=_0x1405a5(_0x262402);if('revision-suggestion'!=_0x12608d||'insertion'!=_0x39168e&&'deletion'!=_0x39168e)continue;_0x21951e[_0x4c2bc2]['markersEnd']['splice'](_0x15ecd1,0x1),_0x15ecd1--;const _0x3787fb=_0xb0d590['findIndex'](_0x31c5ac=>_0x31c5ac['name']==_0x262402);_0x3787fb>-0x1&&_0xb0d590['splice'](_0x3787fb,0x1);}}function _0x1405a5(_0xfd20ae){const _0x43cee8=_0xfd20ae['split'](':');return{'group':_0x43cee8[0x0],'type':_0x43cee8[0x1],'subType':_0x43cee8['length']>=0x5?_0x43cee8[0x2]:null,'id':_0x43cee8['length']<0x5?_0x43cee8[0x2]:_0x43cee8[0x3],'authorId':_0x43cee8['length']<0x5?_0x43cee8[0x3]:_0x43cee8[0x4],'markerCount':0x6==_0x43cee8['length']?_0x43cee8[0x5]:null};}function _0x2d0b50(_0x3cf5b7){for(let _0x5c0d37=0x0;_0x5c0d37<_0xb0d590['length'];_0x5c0d37++){if(_0x3cf5b7['isAdded']&&'insertion'==_0xb0d590[_0x5c0d37]['type']&&_0x3cf5b7['isAdded']['userId']==_0xb0d590[_0x5c0d37]['userId'])return _0x3cf5b7['isAddSuggestion']=_0xb0d590[_0x5c0d37],void delete _0x3cf5b7['isAdded'];if(!_0x3cf5b7['isAdded']&&!_0x3cf5b7['isRemoved']&&'deletion'==_0xb0d590[_0x5c0d37]['type'])return void(_0x3cf5b7['isRemoveSuggestion']=_0xb0d590[_0x5c0d37]);}}}['_setDistance'](_0x2f6118,_0x49ce4c){let _0x399527=0x0,_0xc73ae3=!0x1;const _0x3d9013=new Map();for(const _0x41bf71 of _0x2f6118)_0x41bf71[_0x49ce4c]?_0xc73ae3&&(_0x399527++,_0xc73ae3=!0x1):(_0x399527++,_0xc73ae3=!0x0),_0x3d9013['set'](_0x41bf71['id'],_0x399527);for(let _0x22ac71=0x0;_0x22ac71<_0x2f6118['length'];_0x22ac71++){if('isRemoved'==_0x49ce4c&&_0x2f6118[_0x22ac71]['isAdded']||'isAdded'==_0x49ce4c&&_0x2f6118[_0x22ac71]['isRemoved'])continue;if('text'==_0x2f6118[_0x22ac71]['type']){_0x2f6118[_0x22ac71]['distance']=0x0;continue;}const _0xb18993=_0x3d9013['get'](_0x2f6118[_0x22ac71]['pairId']),_0x23dc09=_0x3d9013['get'](_0x2f6118[_0x22ac71]['id']);_0x2f6118[_0x22ac71]['distance']=_0xb18993-_0x23dc09;}}['_getRevisionsRange'](_0x4bc3c1,_0xfec466,_0x2b4632=!0x1){const _0x38677c=[];let _0x47b49c=this['repository']['getIndex'](_0x4bc3c1),_0x3bc965=this['repository']['getIndex'](_0xfec466);for(-0x1==_0x3bc965&&(_0x3bc965=this['repository']['_revisions']['length'],_0x2b4632=!0x1);_0x47b49c<_0x3bc965;)_0x38677c['push'](this['repository']['getRevision'](_0x47b49c)),_0x47b49c++;return _0x2b4632&&_0x38677c['push'](this['repository']['getRevision'](_0x47b49c)),_0x38677c;}['_threeWayMerge'](_0x544045,_0x12dcf8,_0x3fc719,_0x389427){const _0x4ad019=this['editor']['model']['schema'];let _0x4e52ad=_0x12dcf8;for(;_0x544045[_0x4e52ad]&&_0x544045[_0x4e52ad]['isAdded'];)_0x4e52ad++;let _0x162de4=_0x389427;for(;_0x3fc719[_0x162de4]&&_0x3fc719[_0x162de4]['isRemoved'];)_0x162de4++;_0x39b3b8(_0x544045,_0x12dcf8,_0x4e52ad),_0x39b3b8(_0x3fc719,_0x389427,_0x162de4);const _0x40dcf0=_0x3fc719['slice'](_0x389427,_0x162de4)['concat'](_0x544045['slice'](_0x12dcf8,_0x4e52ad));return _0x40dcf0['sort']((_0x44db73,_0xedd79d)=>_0x44db73['side']!=_0xedd79d['side']?_0x44db73['side']-_0xedd79d['side']:_0x44db73['level']!=_0xedd79d['level']?_0x44db73['level']-_0xedd79d['level']:_0x44db73['distance']!=_0xedd79d['distance']?_0xedd79d['distance']-_0x44db73['distance']:!!_0x44db73['isAdded']!=!!_0xedd79d['isAdded']?-0x1==_0x44db73['side']||0x0==_0x44db73['side']?_0x44db73['isAdded']?-0x1:0x1:_0x44db73['isAdded']?0x1:-0x1:_0x44db73['index']-_0xedd79d['index']),{'commonTape':_0x40dcf0,'iEnd':_0x4e52ad,'jEnd':_0x162de4};function _0x39b3b8(_0xe138b3,_0x3a2268,_0x56091c){let _0x3425ab=-0x1,_0x3c5872=Number['POSITIVE_INFINITY'],_0x4582ac=!0x0;for(let _0x4c8e25=_0x3a2268;_0x4c8e25<_0x56091c;_0x4c8e25++)if(_0x4ad019['isInline'](_0xe138b3[_0x4c8e25]['item'])||(_0x4582ac=!0x1),_0xe138b3[_0x4c8e25]['item']['startIndex']<_0x3a2268&&(_0x3425ab=_0x4c8e25),_0xe138b3[_0x4c8e25]['item']['endIndex']>=_0x56091c){_0x3c5872=_0x4c8e25;break;}_0x4582ac&&(_0x3425ab=_0x56091c-0x1);for(let _0x455342=_0x3a2268;_0x455342<_0x56091c;_0x455342++)_0xe138b3[_0x455342]['side']=_0x455342<=_0x3425ab?-0x1:_0x455342<_0x3c5872?0x0:0x1,_0xe138b3[_0x455342]['index']=_0x455342;let _0x496725=0x0;for(let _0x4f8c48=_0x3a2268;_0x4f8c48<=_0x3425ab;_0x4f8c48++)0x0==_0xe138b3[_0x4f8c48]['distance']?_0xe138b3[_0x4f8c48]['level']=_0x496725:(_0x496725++,_0xe138b3[_0x4f8c48]['level']=_0x496725,_0x496725++);for(let _0x1affef=_0x3a2268;_0x1affef<_0x56091c;_0x1affef++)0x0==_0xe138b3[_0x1affef]['side']&&(_0xe138b3[_0x1affef]['level']=_0x496725);_0x496725=0x0;for(let _0x5de3fb=_0x56091c-0x1;_0x5de3fb>=_0x3c5872;_0x5de3fb--)0x0==_0xe138b3[_0x5de3fb]['distance']?_0xe138b3[_0x5de3fb]['level']=_0x496725:(_0x496725--,_0xe138b3[_0x5de3fb]['level']=_0x496725,_0x496725--);}}['_fixObsoleteTags'](_0x4e50ac){const _0xb4a128=new Map(),_0x17856a=this['editor']['model']['schema'];for(let _0x40eb2a=0x1;_0x40eb2a<_0x4e50ac['length'];_0x40eb2a++){let _0x30c6e9,_0x496c5f,_0x556c63;const _0x592bc6=_0x4e50ac[_0x40eb2a],_0xeefb6b=_0x4e50ac[_0x40eb2a-0x1];if('text'==_0x592bc6['type'])continue;if(_0x592bc6['type']!=_0xeefb6b['type'])continue;if(!_0x17856a['isBlock'](_0xeefb6b['item'])||_0x17856a['isLimit'](_0xeefb6b['item']))continue;if(!_0x17856a['isBlock'](_0x592bc6['item'])||_0x17856a['isLimit'](_0x592bc6['item']))continue;if((_0x4e50ac[_0x40eb2a]['isAdded']||_0x4e50ac[_0x40eb2a]['isAddSuggestion'])&&_0x4e50ac[_0x40eb2a-0x1]['isRemoved'])_0x30c6e9=_0x4e50ac[_0x40eb2a],_0x496c5f=_0x4e50ac[_0x40eb2a-0x1],_0x556c63=_0x40eb2a-0x1;else{if(!_0x4e50ac[_0x40eb2a]['isRemoved']||!_0x4e50ac[_0x40eb2a-0x1]['isAdded']&&!_0x4e50ac[_0x40eb2a-0x1]['isAddSuggestion'])continue;_0x30c6e9=_0x4e50ac[_0x40eb2a-0x1],_0x496c5f=_0x4e50ac[_0x40eb2a],_0x556c63=_0x40eb2a;}const _0x3085c5=_0x30c6e9['level']==_0x496c5f['level'],_0x3f045e=Math['abs'](_0x30c6e9['level'])<Math['abs'](_0x496c5f['level'])&&0x0==_0x496c5f['distance'];(_0x3085c5||_0x3f045e)&&(_0xb4a128['set'](_0x496c5f['id'],_0x30c6e9['id']),_0x4e50ac['splice'](_0x556c63,0x1),_0x40eb2a--,_0x30c6e9['isAdded']=!0x1);}for(let _0x5ea7f9=0x0;_0x5ea7f9<_0x4e50ac['length'];_0x5ea7f9++)_0xb4a128['has'](_0x4e50ac[_0x5ea7f9]['pairId'])&&(_0x4e50ac[_0x5ea7f9]['pairId']=_0xb4a128['get'](_0x4e50ac[_0x5ea7f9]['pairId']));}['_removeMissingPairs'](_0xf30ad6){const _0x35062c=new Set(_0xf30ad6['map'](_0x37ef28=>_0x37ef28['id']));for(let _0xd7b96e=0x0;_0xd7b96e<_0xf30ad6['length'];_0xd7b96e++)_0x35062c['has'](_0xf30ad6[_0xd7b96e]['pairId'])||0x0==_0xf30ad6[_0xd7b96e]['distance']||(_0xf30ad6[_0xd7b96e]['isIncorrect']=!0x0);return _0xf30ad6['filter'](_0x15d5cd=>!_0x15d5cd['isIncorrect']);}['_markMismatchedRemovedTags'](_0x33d499){const _0x4a7eeb=new Set();for(let _0x1a1f85=0x0;_0x1a1f85<_0x33d499['length'];_0x1a1f85++){if(_0x4a7eeb['has'](_0x33d499[_0x1a1f85]['id'])&&_0x33d499[_0x1a1f85]['isRemoved']&&(_0x33d499[_0x1a1f85]['isIncorrect']=!0x0),_0x33d499[_0x1a1f85]['isIncorrect'])continue;if(0x0==_0x33d499[_0x1a1f85]['distance'])continue;if('elementStart'!=_0x33d499[_0x1a1f85]['type'])continue;if(null==_0x33d499[_0x1a1f85]['pairId'])continue;let _0x15dff3=_0x1a1f85+0x1,_0x265225=0x0;for(;_0x33d499[_0x15dff3]['id']!=_0x33d499[_0x1a1f85]['pairId'];)'elementStart'==_0x33d499[_0x15dff3]['type']?_0x265225++:'elementEnd'==_0x33d499[_0x15dff3]['type']&&_0x265225--,_0x15dff3++;if(0x0!=_0x265225){if(_0x33d499[_0x1a1f85]['isRemoved'])_0x33d499[_0x1a1f85]['isIncorrect']=!0x0;else{for(;_0x15dff3!=_0x1a1f85;)_0x33d499[_0x15dff3]['isRemoved']&&0x0!=_0x33d499[_0x15dff3]['distance']&&(_0x33d499[_0x15dff3]['isIncorrect']=!0x0,_0x4a7eeb['add'](_0x33d499[_0x15dff3]['pairId'])),_0x15dff3--;}}}return _0x33d499['filter'](_0x22617f=>!_0x22617f['isIncorrect']);}['_removeUnsupportedChanges'](_0x1d7c7d){const _0x51c027=this['editor']['model']['schema'];for(let _0x33eb28=0x0;_0x33eb28<_0x1d7c7d['length'];_0x33eb28++){if(!(_0x1d7c7d[_0x33eb28]['isAdded']||_0x1d7c7d[_0x33eb28]['isAddSuggestion']||_0x1d7c7d[_0x33eb28]['isRemoved']||_0x1d7c7d[_0x33eb28]['isRemoveSuggestion']))continue;if(0x0==_0x1d7c7d[_0x33eb28]['distance'])continue;const _0x4b6a94=_0x1d7c7d[_0x33eb28]['item'];_0x51c027['isBlock'](_0x4b6a94)||_0x51c027['isLimit'](_0x4b6a94)||(_0x1d7c7d[_0x33eb28]['isAdded']&&delete _0x1d7c7d[_0x33eb28]['isAdded'],_0x1d7c7d[_0x33eb28]['isAddSuggestion']&&delete _0x1d7c7d[_0x33eb28]['isAddSuggestion'],_0x1d7c7d[_0x33eb28]['isRemoveSuggestion']&&delete _0x1d7c7d[_0x33eb28]['isRemoveSuggestion'],_0x1d7c7d[_0x33eb28]['isRemoved']&&(_0x1d7c7d[_0x33eb28]['isIncorrect']=!0x0));}return _0x1d7c7d['filter'](_0xaa7954=>!_0xaa7954['isIncorrect']);}['_makeModelFromTape'](_0x5839bd,_0x4d3037,_0x519c7d){const _0x125307=new _0x274a40(),_0x485e65=[],_0x4cf407=new Map(),_0x3e60f1=this['editor']['model'],_0xbeb97c=_0x3e60f1['schema'],_0x556b01=[_0x125307],_0x428906={},_0x255e86={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x44df58=null;const _0x4d104a=[0x0];for(let _0x3022bf=0x0;_0x3022bf<_0x5839bd['length'];_0x3022bf++)if('elementStart'===_0x5839bd[_0x3022bf]['type']){_0x5839bd[_0x3022bf]['previousPosition']=_0x3e60f1['createPositionFromPath'](_0x125307,_0x4d104a);const _0x479c30=new _0x19d0e1(_0x5839bd[_0x3022bf]['item']['name'],_0x5839bd[_0x3022bf]['item']['getAttributes']());_0x556b01[0x0]['_appendChild'](_0x479c30),_0x4d104a['push'](0x0),_0x556b01['unshift'](_0x479c30),_0x5839bd[_0x3022bf]['nextPosition']=_0x3e60f1['createPositionFromPath'](_0x125307,_0x4d104a);}else'elementEnd'===_0x5839bd[_0x3022bf]['type']?(_0x556b01['shift'](),_0x5839bd[_0x3022bf]['previousPosition']=_0x3e60f1['createPositionFromPath'](_0x125307,_0x4d104a),_0x4d104a['pop'](),_0x4d104a[_0x4d104a['length']-0x1]++,_0x5839bd[_0x3022bf]['nextPosition']=_0x3e60f1['createPositionFromPath'](_0x125307,_0x4d104a)):(_0x5839bd[_0x3022bf]['previousPosition']=_0x3e60f1['createPositionFromPath'](_0x125307,_0x4d104a),_0x44df58?_0x44df58['_data']+=_0x5839bd[_0x3022bf]['item']['data']:_0x44df58=new _0x2fe560(_0x5839bd[_0x3022bf]['item']['data'],_0x5839bd[_0x3022bf]['item']['getAttributes']()),_0x5839bd[_0x3022bf+0x1]&&'text'===_0x5839bd[_0x3022bf+0x1]['type']&&_0x25b35c(_0x44df58,_0x5839bd[_0x3022bf+0x1]['item'])||(_0x556b01[0x0]['_appendChild'](_0x44df58),_0x44df58=null),_0x4d104a[_0x4d104a['length']-0x1]+=_0x5839bd[_0x3022bf]['item']['offsetSize'],_0x5839bd[_0x3022bf]['nextPosition']=_0x3e60f1['createPositionFromPath'](_0x125307,_0x4d104a));for(let _0x17124e=0x0;_0x17124e<_0x5839bd['length'];_0x17124e++){const _0x19bf51=_0x5839bd[_0x17124e]['previousPosition'],_0x593937=_0x5839bd[_0x17124e]['nextPosition'];for(const _0x1f3ffd of _0x5839bd[_0x17124e]['markersStart'])_0x4cf407['set'](_0x1f3ffd,{'start':_0x19bf51,'end':null});_0x18cbe4('isRemoveSuggestion',_0x17124e,_0x19bf51,_0x593937),_0x18cbe4('isAddSuggestion',_0x17124e,_0x19bf51,_0x593937),_0x18cbe4('isRemoved',_0x17124e,_0x19bf51,_0x593937),_0x18cbe4('isAdded',_0x17124e,_0x19bf51,_0x593937);for(const _0x49d7bb of _0x5839bd[_0x17124e]['markersEnd']){const _0x160de9=_0x4cf407['get'](_0x49d7bb);_0x160de9?_0x160de9['end']=_0x593937:_0x4cf407['set'](_0x49d7bb,{'start':_0x593937,'end':_0x593937});}}for(const [_0x528865,_0x1f4486]of _0x4cf407){const _0x2731f4=this['editor']['model']['createRange'](_0x1f4486['start'],_0x1f4486['end']);_0x125307['markers']['set'](_0x528865,_0x2731f4);}return _0x485e65['sort']((_0x31682d,_0x43064b)=>{const _0x30ac27=_0x125307['markers']['get']('revision:'+_0x31682d['id']),_0x260343=_0x125307['markers']['get']('revision:'+_0x43064b['id']);return _0x30ac27['start']['isBefore'](_0x260343['start'])?-0x1:_0x30ac27['start']['isAfter'](_0x260343['start'])?0x1:_0x30ac27['end']['isBefore'](_0x260343['end'])?-0x1:_0x30ac27['end']['isAfter'](_0x260343['end'])?0x1:'add'===_0x31682d['type']?-0x1:0x1;}),{'root':_0x125307,'changes':_0x485e65};function _0x18cbe4(_0x1dd036,_0x4fcea7,_0x14b5d8,_0x5d7211){const _0x3df0d1=!!_0x5839bd[_0x4fcea7][_0x1dd036],_0x318be6=_0x3df0d1?_0x5839bd[_0x4fcea7][_0x1dd036]['userId']:null,_0x56e0ee=_0x4fcea7===_0x5839bd['length']-0x1,_0x1d1c9a=_0x255e86[_0x1dd036][0x0],_0xdac15b=_0xbeb97c['isObject'](_0x5839bd[_0x4fcea7]['item']);!_0x428906[_0x1dd036]&&_0x3df0d1?_0x428906[_0x1dd036]={'start':_0x14b5d8,'tapeItem':_0x5839bd[_0x4fcea7],'userId':_0x318be6,'type':_0x1dd036}:_0x428906[_0x1dd036]&&!_0x3df0d1?(_0x428906[_0x1dd036]['end']=_0x14b5d8,_0x22df99(_0x428906[_0x1dd036]),_0x428906[_0x1dd036]=null):_0x428906[_0x1dd036]&&_0x3df0d1&&_0x428906[_0x1dd036]['userId']!==_0x318be6&&(_0x428906[_0x1dd036]['end']=_0x14b5d8,_0x1d1c9a&&_0x1d1c9a['userId']===_0x428906[_0x1dd036]['userId']||_0x22df99(_0x428906[_0x1dd036]),_0x428906[_0x1dd036]={'start':_0x14b5d8,'tapeItem':_0x5839bd[_0x4fcea7],'userId':_0x318be6,'type':_0x1dd036}),_0x428906[_0x1dd036]&&_0xdac15b&&('elementStart'!==_0x5839bd[_0x4fcea7]['type']||_0x1d1c9a&&_0x1d1c9a['userId']===_0x318be6||_0x255e86[_0x1dd036]['unshift']({'userId':_0x318be6,'object':_0x5839bd[_0x4fcea7]['item'],'change':_0x428906[_0x1dd036]}),'elementEnd'===_0x5839bd[_0x4fcea7]['type']&&_0x1d1c9a&&_0x1d1c9a['object']===_0x5839bd[_0x4fcea7]['item']&&(_0x255e86[_0x1dd036]['shift'](),_0x428906[_0x1dd036]=_0x1d1c9a['change'])),_0x428906[_0x1dd036]&&_0x56e0ee&&(_0x428906[_0x1dd036]['end']=_0x5d7211,_0x22df99(_0x428906[_0x1dd036]),_0x428906[_0x1dd036]=null);}function _0x22df99({start:_0x21cc36,end:_0x5d793c,tapeItem:_0x301db6,userId:_0x1d95fb,type:_0x58b912}){const _0x44dd97=_0x301db6['item'],_0xd2d7db=_0x3e60f1['schema']['isBlock'](_0x44dd97)&&!_0x3e60f1['schema']['isLimit'](_0x44dd97),_0x2b0737=_0x21cc36['nodeAfter']==_0x5d793c['parent']&&_0x5d793c['isAtStart'];if(_0xd2d7db&&_0x2b0737)return;const _0x308ac6=_0x3e60f1['createRange'](_0x21cc36,_0x5d793c),_0x34600c=_0x4d3037['get'](_0x1d95fb),_0xdc1649=new G({'author':_0x34600c,'type':'isAdded'==_0x58b912||'isAddSuggestion'==_0x58b912?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x58b912||'isRemoveSuggestion'==_0x58b912},'createdAt':new Date(),'rootName':_0x519c7d});_0x485e65['push'](_0xdc1649),_0x125307['markers']['set']('revision:'+_0xdc1649['id'],_0x308ac6);}function _0x25b35c(_0x2e6668,_0x3ddfca){const _0x5406c7=_0x2e6668['getAttributes'](),_0x19637b=_0x3ddfca['getAttributes']();for(const _0x3b62e8 of _0x5406c7){if(_0x3b62e8[0x1]!==_0x3ddfca['getAttribute'](_0x3b62e8[0x0]))return!0x1;_0x19637b['next']();}return _0x19637b['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x148c38=>{const _0x73cfd9=_0x148c38['markerName']['split'](':')[0x1],_0x515039=this['_getChangeFromId'](_0x73cfd9);if(!_0x515039)return null;const _0x47ba9d='add'==_0x515039['type']?'insertion':'deletion',_0x592169=['ck-suggestion-marker','ck-suggestion-marker-'+_0x47ba9d];return _0x515039['data']['isSuggestion']&&_0x592169['push']('ck-suggestion-marker-'+_0x47ba9d+'-new'),this['activeChange']==_0x515039&&_0x592169['push']('ck-suggestion-marker--active'),{'classes':_0x592169,'attributes':{'data-change-id':_0x73cfd9}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x1c66ea=>{_0x1c66ea['on']('element:pre',(_0x4ddf08,_0x4c3b90,_0x40775c)=>{const _0x580f79=_0x4c3b90['viewItem']['getChild'](0x0);if(!_0x580f79||!_0x580f79['is']('element','code'))return;if(!_0x40775c['consumable']['consume'](_0x580f79,{'attributes':['vid_start','vid_end']}))return;const _0x32371c=_0x4c3b90['modelRange']['start']['nodeAfter'];_0x40775c['writer']['setAttribute']('vid_start',_0x580f79['getAttribute']('vid_start'),_0x32371c),_0x40775c['writer']['setAttribute']('vid_end',_0x580f79['getAttribute']('vid_end'),_0x32371c);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x3987e6=>{_0x3987e6['on']('element',(_0x20820d,_0x5219b7,_0x36b0ae)=>{if(!_0x36b0ae['consumable']['consume'](_0x5219b7['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x5219b7['modelRange']['isCollapsed'])return;const _0xdcbe9e=_0x5219b7['modelRange']['start']['nodeAfter'];_0xdcbe9e['hasAttribute']('vid_start')||_0xdcbe9e['hasAttribute']('vid')||(_0x36b0ae['writer']['setAttribute']('vid_start',_0x5219b7['viewItem']['getAttribute']('vid_start'),_0xdcbe9e),_0x36b0ae['writer']['setAttribute']('vid_end',_0x5219b7['viewItem']['getAttribute']('vid_end'),_0xdcbe9e));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x4639ed=>_0x4639ed['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x59ed4d,[,_0x460ede])=>{['vid_start','vid_end','vid']['includes'](_0x460ede)&&(_0x59ed4d['return']=!0x0,_0x59ed4d['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x3c705c=>{_0x3c705c['on']('attribute:vid',(_0x285c78,_0x2d131e,_0xe6146c)=>{if('\x20'!=_0x2d131e['item']['data']||_0x2d131e['item']['parent']['maxOffset']>0x1)return;if(!_0xe6146c['consumable']['consume'](_0x2d131e['item'],_0x285c78['name']))return;const _0x5d1726=_0xe6146c['writer'],_0x287b4f=_0xe6146c['mapper']['toViewRange'](_0x2d131e['range']);_0x5d1726['wrap'](_0x287b4f,_0x5d1726['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x456965){const _0x1deef7=_0x456965['plugins']['get']('RevisionViewer');return(_0x449c51,_0x425ae2,_0x590584)=>{const _0x35177d=_0x425ae2['markerName']['split'](':')[0x1],_0x16251e=_0x1deef7['_getChangeFromId'](_0x35177d);if(!_0x16251e)return null;const _0x18f966='add'==_0x16251e['type']?'split':'merge';if(!_0x590584['consumable']['test'](_0x425ae2['markerRange'],_0x449c51['name']))return;const _0x5ae975=_0x425ae2['markerRange']['getWalker'](),_0x152e15=_0x425ae2['markerRange']['start'],_0x45e011=_0x456965['model']['schema'];let _0x2fb25e=null,_0x55937c=null,_0x5cf8ab=!0x1,_0x44f23b=!0x1;for(const _0x1d21bf of _0x5ae975){const _0x53e6d5=_0x1d21bf['item'];_0x5cf8ab=_0x5cf8ab||_0x45e011['isContent'](_0x53e6d5);const _0x370da8=_0x590584['mapper']['toViewElement'](_0x53e6d5);if(_0x370da8&&_0x370da8['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1d21bf['type']&&(_0x45e011['isBlock'](_0x53e6d5)&&!_0x45e011['isLimit'](_0x53e6d5)&&(_0x53e6d5['nextSibling']||_0x152e15['isAtEnd']?_0x2fb25e&&_0x2fb25e['parent']==_0x53e6d5||(_0x2fb25e=_0x53e6d5,_0xe68fe2(_0x1d21bf['previousPosition']),_0x44f23b=!0x0):_0x55937c=_0x55937c||_0x1d21bf['previousPosition']));}function _0xe68fe2(_0xdec079){const _0x123e82=_0x590584['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x18f966}),_0x4409e4=_0x590584['mapper']['toViewPosition'](_0xdec079);_0x16251e['data']['isSuggestion']&&_0x590584['writer']['addClass']('ck-suggestion-marker-'+_0x18f966+'-new',_0x123e82),_0x1deef7['activeChange']==_0x16251e&&_0x590584['writer']['addClass']('ck-suggestion-marker--active',_0x123e82),_0x590584['writer']['insert'](_0x4409e4,_0x123e82),_0x590584['mapper']['bindElementToMarker'](_0x123e82,_0x425ae2['markerName']);}_0x5cf8ab||_0x44f23b||!_0x55937c||_0xe68fe2(_0x55937c);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x521e02,_0x4cbfe4,_0x535bb4)=>{const _0x290c3b=_0x535bb4['mapper']['markerNameToElements'](_0x4cbfe4['markerName']);if(_0x290c3b){for(const _0x31410d of _0x290c3b)(_0x31410d['hasClass']('ck-suggestion-marker-split')||_0x31410d['hasClass']('ck-suggestion-marker-merge'))&&(_0x535bb4['mapper']['unbindElementFromMarkerName'](_0x31410d,_0x4cbfe4['markerName']),_0x535bb4['writer']['remove'](_0x31410d));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x338592,_0xbaa92f,_0x454827)=>{const _0x3d1fe7=_0xbaa92f['markerName']['split'](':')[0x1],_0x54638b=this['_getChangeFromId'](_0x3d1fe7);if(!_0x54638b)return null;const _0x2291b8='add'==_0x54638b['type']?'split':'merge';if(_0x454827['consumable']['test'](_0xbaa92f['markerRange'],_0x338592['name']))for(const _0x2348e7 of _0xbaa92f['markerRange']['getItems']()){if(!_0x2348e7['is']('element','softBreak'))continue;const _0x5523c0=_0x454827['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2291b8}),_0x4d8be2=_0x454827['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x2348e7));_0x54638b['data']['isSuggestion']&&_0x454827['writer']['addClass']('ck-suggestion-marker-'+_0x2291b8+'-new',_0x5523c0),this['activeChange']==_0x54638b&&_0x454827['writer']['addClass']('ck-suggestion-marker--active',_0x5523c0),_0x454827['writer']['insert'](_0x4d8be2,_0x5523c0),_0x454827['mapper']['bindElementToMarker'](_0x5523c0,_0xbaa92f['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0xee0565=>{for(const _0x5c7c3e of this['editor']['model']['document']['getRootNames']()){const _0xa52b20=this['editor']['model']['document']['getRoot'](_0x5c7c3e),_0x30f73f=this['editor']['editing']['view']['document']['getRoot'](_0x5c7c3e);if(_0x30f73f){const _0x42e240=_0xa52b20['getAttribute']('revisionHistoryAttachChange');if(_0xee0565['removeAttribute']('data-change-id',_0x30f73f),_0xee0565['removeClass']('ck-revision-history-root-add',_0x30f73f),_0xee0565['removeClass']('ck-revision-history-root-remove',_0x30f73f),_0xee0565['removeClass']('ck-revision-history-root--active',_0x30f73f),_0x42e240){const _0x3d6c4c=this['_getChangeFromId'](_0x42e240);if(!_0x3d6c4c)return null;_0xee0565['setAttribute']('data-change-id',_0x42e240,_0x30f73f),_0xee0565['addClass']('ck-revision-history-root-'+_0x3d6c4c['type'],_0x30f73f),this['activeChange']==_0x3d6c4c&&_0xee0565['addClass']('ck-revision-history-root--active',_0x30f73f);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0xdf439f=>'revision-comment:'+_0xdf439f,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x244131=>'revision-suggestion:'+_0x244131,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0xeecf07=>({'name':'suggestion:'+_0xeecf07,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x4f2313=>{const _0x48a8ed=_0x4f2313['markerName']['split'](':')[0x1];return'insertion'!=_0x48a8ed&&'deletion'!=_0x48a8ed?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x48a8ed]};}}),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',(_0x1a0123,_0x1d90e6,_0x2e0307)=>{const _0x2b444c=_0x2e0307['mapper']['markerNameToElements'](_0x1d90e6['markerName']);if(_0x2b444c){for(const _0x2fee8c of _0x2b444c)_0x2fee8c['is']('uiElement')&&(_0x2e0307['mapper']['unbindElementFromMarkerName'](_0x2fee8c,_0x1d90e6['markerName']),_0x2e0307['writer']['remove'](_0x2fee8c));}},{'priority':'high'});}['_getChangeFromId'](_0x501671){return this['_changeIdToChange']['get'](_0x501671);}['_getViewForChange'](_0x241b2e){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x241b2e),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x29a13d,_0x40b6cd,_0x9159e6,_0x5e7e2f)=>{_0x5e7e2f&&this['_balloon']['remove'](_0x5e7e2f),_0x9159e6&&(this['_balloon']['add']({'view':_0x9159e6,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0xe13f87=this['editor']['editing'],_0x534050=this['_getChangeFromId'](_0x9159e6['changeId']);let _0x5cc124;if(_0x534050['data']['isOnRoot']){const _0x1300ca=_0xe13f87['view']['getDomRoot'](_0x534050['rootName']);_0x5cc124=Array['from'](_0x1300ca['getClientRects']());}else{const _0x1725b8=this['editor']['model']['markers']['get']('revision:'+_0x9159e6['changeId']);_0x5cc124=Array['from'](_0xe13f87['mapper']['markerNameToElements'](_0x1725b8['name']))['map'](_0x5237db=>_0xe13f87['view']['domConverter']['mapViewToDom'](_0x5237db))['map'](_0x3a5215=>Array['from'](_0x3a5215['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x5cc124[0x0];return _0x5cc124['find'](_0x5de1ad=>_0x5de1ad['top']-0x3<=this['_activeViewTarget']['y']&&_0x5de1ad['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x5de1ad['left']-0x3<=this['_activeViewTarget']['x']&&_0x5de1ad['right']+0x3>=this['_activeViewTarget']['x'])||_0x5cc124[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x1b318e,_0x3ce53a,_0x34c2f2,_0x9af1d0)=>{this['activeView']=_0x34c2f2?this['_getViewForChange'](_0x34c2f2):null,this['editor']['model']['change'](()=>{const _0x1584c8=this['editor']['editing'];_0x9af1d0&&(_0x9af1d0['data']['isOnRoot']?_0x1584c8['view']['change'](_0x2ba2a5=>{_0x2ba2a5['removeClass']('ck-revision-history-root--active',_0x1584c8['view']['document']['getRoot'](_0x9af1d0['rootName']));}):_0x1584c8['reconvertMarker']('revision:'+_0x9af1d0['id'])),_0x34c2f2&&(_0x34c2f2['data']['isOnRoot']?_0x1584c8['view']['change'](_0x17e9aa=>{_0x17e9aa['addClass']('ck-revision-history-root--active',_0x1584c8['view']['document']['getRoot'](_0x34c2f2['rootName']));}):_0x1584c8['reconvertMarker']('revision:'+_0x34c2f2['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0xe99e22,_0x14f2e9)=>{if(this['activeChange'])return;const _0x156679=this['_findChangeIdFromDomTarget'](_0x14f2e9['target']),_0x155b35=this['_changeIdToChange']['get'](_0x156679);_0x155b35?(this['_activeViewTarget']={'x':_0x14f2e9['domEvent']['x'],'y':_0x14f2e9['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x155b35)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x5cc2a5,_0x50ea29)=>{const _0x47478c=this['_findChangeIdFromDomTarget'](_0x50ea29['target']),_0x61ddc=this['_changeIdToChange']['get'](_0x47478c);_0x61ddc?(this['_activeViewTarget']={'x':_0x50ea29['domEvent']['x'],'y':_0x50ea29['domEvent']['y']},_0x61ddc===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x61ddc):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x198e35){do{const _0x5e7e68=_0x198e35['getAttribute']('data-change-id');if(_0x5e7e68)return _0x5e7e68;_0x198e35=_0x198e35['parent'];}while(_0x198e35);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x5a6876=>{for(const _0x3b9c28 of this['editor']['model']['markers'])_0x5a6876['removeMarker'](_0x3b9c28);});}}function Q(_0x5aecc0,_0x1c4f25){return(_0xd397d7,_0x595034,_0x7dd3e5)=>{if(!_0x7dd3e5['consumable']['test'](_0x595034['markerRange'],_0xd397d7['name']))return;const _0x2b5873=_0x595034['markerRange']['getWalker'](),_0x435644=_0x595034['markerRange']['start'],_0x3d2bad=_0x5aecc0['model']['schema'];let _0x4fe74e=null,_0x556f67=null,_0x33a3bb=!0x1,_0x41ac2f=!0x1;for(const _0x21cfce of _0x2b5873){const _0x4d76cf=_0x21cfce['item'];_0x33a3bb=_0x33a3bb||_0x3d2bad['isContent'](_0x4d76cf);const _0x4c6e0b=_0x7dd3e5['mapper']['toViewElement'](_0x4d76cf);if(_0x4c6e0b&&_0x4c6e0b['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x21cfce['type']&&(_0x3d2bad['isBlock'](_0x4d76cf)&&!_0x3d2bad['isLimit'](_0x4d76cf)&&(_0x4d76cf['nextSibling']||_0x435644['isAtEnd']?_0x4fe74e&&_0x4fe74e['parent']==_0x4d76cf||(_0x4fe74e=_0x4d76cf,_0xa6c33b(_0x21cfce['previousPosition']),_0x41ac2f=!0x0):_0x556f67=_0x556f67||_0x21cfce['previousPosition']));}function _0xa6c33b(_0x3608ba){const _0x1f0c8a=_0x7dd3e5['mapper']['toViewPosition'](_0x3608ba),_0x117269=_0x7dd3e5['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x1c4f25});_0x7dd3e5['writer']['insert'](_0x1f0c8a,_0x117269),_0x7dd3e5['mapper']['bindElementToMarker'](_0x117269,_0x595034['markerName']);}_0x33a3bb||_0x41ac2f||!_0x556f67||_0xa6c33b(_0x556f67);};}class nt extends _0x4772{constructor(_0x34bf1a){super(_0x34bf1a);const _0x1f113e=_0x34bf1a['plugins']['get'](u);this['affectsData']=!0x1,this['listenTo'](_0x1f113e,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x1f113e,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x3ef932=this['editor'],_0x180e15=_0x3ef932['plugins']['get'](u),_0x15632b=_0x180e15['isReady']?_0x180e15['diff']['newRevisionId']:null;_0x3ef932['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x15632b);}['refresh'](){const {isReady:_0x4fbf44,isEnabled:_0x3e6599,repository:_0x1a51c9,diff:_0x36f870}=this['editor']['plugins']['get'](u),_0x113a59=_0x36f870&&_0x1a51c9['getLaterVisibleRevision'](_0x36f870['newRevisionId']);this['isEnabled']=_0x4fbf44&&_0x3e6599&&Boolean(_0x113a59);}}class rt extends _0x4772{['_step'];constructor(_0x30fe8c,{direction:_0x210e79}){super(_0x30fe8c);const _0x42af17=_0x30fe8c['plugins']['get'](u);this['affectsData']=!0x1,this['_step']='forward'===_0x210e79?0x1:-0x1,this['listenTo'](_0x42af17,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x42af17,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x42af17,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x22ba3d=this['editor'],_0x2a77ce=_0x22ba3d['plugins']['get'](u),{isNavigationMode:_0x3e4cac,currentChangeNumber:_0x46720c}=_0x2a77ce;let _0x419106;if(_0x2a77ce['activeChange']=_0x3e4cac?_0x2a77ce['diff']['changes']['get'](_0x46720c+this['_step']):_0x2a77ce['diff']['changes']['first'],_0x2a77ce['activeChange']['data']['isOnRoot'])_0x419106=_0x22ba3d['editing']['view']['getDomRoot'](_0x2a77ce['activeChange']['rootName']);else{const _0x146f84=_0x22ba3d['model']['markers']['get']('revision:'+_0x2a77ce['activeChange']['id']);_0x419106=_0x5b8a31(_0x22ba3d['editing'],_0x146f84);}_0x17a8c4({'target':_0x419106,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x512ea4,currentChangeNumber:_0x271639,numberOfChanges:_0x18c666,isReady:_0x151b46,isEnabled:_0x29fa6e}=this['editor']['plugins']['get'](u);this['isEnabled']=!!(_0x29fa6e&&_0x151b46&&_0x18c666)&&(!_0x512ea4||(0x1===this['_step']?_0x271639<_0x18c666-0x1:_0x271639>0x0));}}class Ri extends _0x25a7ca{constructor(_0x8befce){super(_0x8befce);const _0x4607b5=this['bindTemplate'],_0x30a4d9=new _0x405528(_0x8befce),_0x3d5c1b=new _0x405528(_0x8befce);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',(_0x4a2ae4,_0x18ccfb)=>_0x4a2ae4&&_0x18ccfb>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x50a1c6,_0x3a2168,_0x347466,_0x1f156a)=>{if(!_0x50a1c6)return m(_0x8befce,'Loading...');if(!_0x347466)return m(_0x8befce,'No\x20changes');const _0x369610=m(_0x8befce,'NUMBER_OF_CHANGES',_0x347466);return _0x1f156a?m(_0x8befce,'X_OF_Y_CHANGES',[_0x3a2168+0x1,_0x347466]):_0x369610;}),_0x30a4d9['set']({'label':m(_0x8befce,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x4e6048}),_0x3d5c1b['set']({'label':m(_0x8befce,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x40b597}),_0x30a4d9['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x3d5c1b['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x30a4d9['on']('execute',()=>this['fire']('execute','backward')),_0x3d5c1b['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',_0x4607b5['if']('_isStatusLabelVisible','ck-hidden',_0x20c59a=>!_0x20c59a)]},'children':[{'text':_0x4607b5['to']('isNavigationMode',_0x39871a=>_0x39871a?m(_0x8befce,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x8befce,'Total')+':\x20')}]},{'text':_0x4607b5['to']('_statusText')}]},new _0x6b436f(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x30a4d9,_0x3d5c1b]}]});}}const ge='ck-editor__editable__loading-overlay';class ji extends _0x1f6d35{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x549ce9=this['editor']['editing']['view'];_0x549ce9['change'](_0x39b8f8=>{for(const _0x4a523d of _0x549ce9['document']['roots'])_0x39b8f8['addClass'](ge,_0x4a523d);});}['hide'](){const _0x4b38ef=this['editor']['editing']['view'];_0x4b38ef['change'](_0x8734a9=>{for(const _0x512d95 of _0x4b38ef['document']['roots'])_0x8734a9['removeClass'](ge,_0x512d95);});}}class v extends _0x1f6d35{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,ji];}['init'](){const _0x2c98e0=this['editor'],_0x2722fb=_0x2c98e0['plugins']['get'](u),_0x395b0e=_0x2c98e0['plugins']['get'](ji);_0x2c98e0['ui']['componentFactory']['add']('exitToEditing',_0x2ab6dc=>{const _0x5b1fd3=new _0x405528(_0x2ab6dc);return _0x5b1fd3['set']({'label':m(_0x2ab6dc,'Back\x20to\x20editing'),'icon':_0x387e9c,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x5b1fd3,'execute',()=>{_0x2c98e0['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x5b1fd3;}),_0x2c98e0['ui']['componentFactory']['add']('restoreRevision',_0x514742=>{const _0x4ec478=new _0x405528(_0x514742);return _0x4ec478['set']({'label':m(_0x514742,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x4ec478['bind']('isEnabled')['to'](_0x2c98e0['commands']['get']('restoreRevision')),this['listenTo'](_0x4ec478,'execute',()=>_0x2c98e0['execute']('restoreRevision')),_0x4ec478;}),_0x2c98e0['ui']['componentFactory']['add']('changesNavigation',_0x243be7=>{const _0x24b8fd=new Ri(_0x243be7),_0x4d1b0d=_0x2c98e0['commands']['get']('showPreviousChange'),_0x5e79a3=_0x2c98e0['commands']['get']('showNextChange');return _0x24b8fd['bind']('isBackwardNavigationEnabled')['to'](_0x4d1b0d,'isEnabled'),_0x24b8fd['bind']('isForwardNavigationEnabled')['to'](_0x5e79a3,'isEnabled'),_0x24b8fd['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x2722fb),this['listenTo'](_0x24b8fd,'execute',(_0x106c70,_0x39456d)=>{_0x2c98e0['execute']('forward'===_0x39456d?'showNextChange':'showPreviousChange');}),_0x24b8fd;}),_0x395b0e['show'](),_0x2722fb['on']('change:isReady',(_0x5b57b0,_0x126308,_0x215981)=>{_0x215981?_0x395b0e['hide']():_0x395b0e['show']();});}}class hi extends et{['_resizeObserver']=null;constructor(_0x5a6c7d,_0x2ddb80){super(_0x5a6c7d,_0x2ddb80);const _0x2bc70b=this['bindTemplate'];this['set']({'label':m(_0x5a6c7d,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x5a6c7d,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x2bc70b['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 _0x35087c=this['fieldView']['element'];this['_tooltipString']=_0x35087c['scrollWidth']>_0x35087c['clientWidth']&&_0x35087c['value']||'';}}class ni extends _0x25a7ca{constructor(_0x315c7f,_0x29e85c,_0x2e7489){super(_0x315c7f);const _0x3b2b2b=new _0x2444d4();_0x3b2b2b['set']({'content':_0x4e13ee,'viewBox':'0\x200\x2011\x2010'});const _0x18bbcc=['ck','ck-revision-history-sidebar__revision-author'];_0x2e7489&&_0x18bbcc['push']('ck-revision-history-sidebar__revision-author_creator');const _0x4f2c26=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x315c7f,_0x2e7489?'Revision\x20creator':'Revision\x20author')},'children':[_0x3b2b2b,_0x29e85c['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x18bbcc},'children':_0x4f2c26});}}function ai(_0x16b6c6,_0x5a13af){const _0x199eeb=_0x16b6c6['bindTemplate'],_0x198ab1=_0x16b6c6['locale'],_0x4b9c30=_0x523ca4(_0x198ab1);_0x4b9c30['panelPosition']='sw';const _0x569862=function(_0x19e144,_0x2f7706){const _0x1e06af=function(_0x59dd87,_0x21c5dd){const _0x51bca4=_0x59dd87['locale'],_0xacbbf8={'Compare\x20against\x20selected':m(_0x51bca4,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x51bca4,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x51bca4,'Restore\x20this\x20revision')};return _0x21c5dd['map'](_0x495438=>{const _0x514ad7=_0xacbbf8[_0x495438['name']];return _0x514ad7&&_0x514ad7!==_0x495438['name']&&(_0x495438['name']=_0x514ad7),_0x495438;});}(_0x19e144,_0x2f7706),_0x1a6386=new _0x56fe88();for(const _0x46553e of _0x1e06af){const _0x3f9772={'type':'button','model':new to({'label':_0x46553e['name'],'class':_0x46553e['class'],'withText':!0x0,'role':'menuitem','_action':_0x46553e['action']})};_0x3f9772['model']['bind']('isEnabled')['to'](_0x19e144,'isActionsDropdownOpen',_0x22b410=>'function'!=typeof _0x46553e['isEnabled']||(!_0x22b410||_0x46553e['isEnabled'](_0x19e144))),_0x1a6386['add'](_0x3f9772);}return _0x1a6386;}(_0x16b6c6,_0x5a13af);return _0x16b6c6['bind']('isActionsDropdownOpen')['to'](_0x4b9c30,'isOpen'),_0x4b9c30['buttonView']['set']({'label':m(_0x198ab1,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x51d5d0}),_0x4b9c30['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x199eeb['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x199eeb['to'](_0x1b0f36=>_0x1b0f36['stopPropagation']())}}),_0x4b9c30['on']('execute',_0x36dc14=>{_0x16b6c6['isReady']&&'function'==typeof _0x36dc14['source']['_action']&&_0x36dc14['source']['_action'](_0x16b6c6);}),_0x3d4656(_0x4b9c30,_0x569862,{'role':'menu'}),_0x4b9c30['listenTo'](_0x16b6c6,'change:isActionsDropdownOpen',(_0x106344,_0x25f1de,_0x5ef685)=>{if(_0x5ef685)for(const _0x438b3b of _0x4b9c30['listView']['items']){const _0x15f723=_0x438b3b['children']['first'],_0x55436c=_0x5a13af['find'](_0x1be604=>_0x1be604['action']===_0x15f723['_action'])['isVisible'];_0x438b3b['isVisible']=void 0x0===_0x55436c||_0x55436c(_0x16b6c6);}}),_0x4b9c30;}class _i extends/* #__PURE__ -- @preserve */
|
|
27
|
-
|
|
23
|
+
import{ObservableMixin as _0x55ca03,uid as _0x118ae2,Collection as _0x4658e5,logWarning as _0x88625c,FocusTracker as _0x396f50,KeystrokeHandler as _0x2e51cc,scrollViewportToShowTarget as _0xd0b7de,ResizeObserver as ot,ElementReplacer as it,CKEditorError as _0x2520ea}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x3f9059,set as _0x5785c6,unset as _0x13eafe,isEqual as _0xb75ec2}from'es-toolkit/compat';import{Plugin as _0x4b71e4,PendingActions as _0xbbae3a,Command as _0x518bfa,ElementApiMixin as _0x57ec93,Editor as _0x18abd4}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x3ecf8d,getMarkerDomElement as _0x4ba0e4,ConfirmMixin as _0x5eb75f,sanitizeEditorConfig as _0x1498a0}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x5c53e0,ViewAttributeElement as _0x29027f,ViewEmptyElement as _0xb86252,ViewRawElement as _0x4fb903,ViewUIElement as _0x553147,ViewDocumentFragment as _0x28c8b2,ViewText as _0x39d77d,ViewElement as _0x4578d7,ModelElement as _0x10b403,ModelRange as _0x10fc72,ModelPosition as _0x11d7f2,ModelDocumentFragment as _0x3b75f6,ModelText as _0x5eda90}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x31711b,IconChevronUp as _0x54e670,IconChevronDown as _0x1fe749,IconUndo as _0x90f4af,IconUser as _0x2d4ff3,IconThreeVerticalDots as _0x170036}from'@ckeditor/ckeditor5-icons/dist/index.js';import{CssTransitionDisablerMixin as _0x31d8fc,View as _0x3ee578,submitHandler as _0x4b40dc,LabeledFieldView as et,createLabeledInputText as ti,createDropdown as _0x5925fb,ListView as _0x3a0269,ListItemView as _0x574af4,ButtonView as _0x235a06,MenuBarMenuView as _0x59831c,MenuBarMenuListView as _0x496b67,MenuBarMenuListItemView as _0x1465f4,MenuBarMenuListItemButtonView as _0x59c301,ContextualBalloon as _0x3c59fb,ToolbarSeparatorView as _0x5652f5,IconView as _0x468b2c,addListToDropdown as _0x2c6bad,UIModel as to,EditorUI as tt,normalizeToolbarConfig as st,BoxedEditorUIView as _0x10dfd8,StickyPanelView as _0x474490,ToolbarView as _0x2f00f8,InlineEditableUIView as te}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x1fdea2}from'luxon';class I extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x55ca03(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x584af9){super(),this['id']=_0x584af9['id']||_0x118ae2(),this['creator']=_0x584af9['creator']||null,this['authors']=_0x584af9['authors']||[],this['diffData']=_0x584af9['diffData']||null,this['toVersion']=_0x584af9['toVersion']||0x0,this['fromVersion']=_0x584af9['fromVersion']||0x0,this['set']('name',_0x584af9['name']||''),this['set']('createdAt',_0x584af9['createdAt']||new Date()),this['set']('attributes',_0x584af9['attributes']||{});}['setName'](_0x539c66){this['_update']({'name':_0x539c66});}['setAttribute'](_0x1d86ea,_0x9c0d45){const _0x59087d=_0x3f9059(this['attributes']);_0x5785c6(_0x59087d,_0x1d86ea,_0x9c0d45),this['_update']({'attributes':_0x59087d});}['removeAttribute'](_0x25c48b){const _0x4b8b12=_0x3f9059(this['attributes']);_0x13eafe(_0x4b8b12,_0x25c48b),this['_update']({'attributes':_0x4b8b12});}['_update'](_0x333748,_0x1d3115=!0x1){let _0x16ab5f=!0x1;const _0x50678c={'id':this['id']},_0x20520f=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x516ef6 of _0x20520f){const _0x162799=_0x333748[_0x516ef6];void 0x0!==_0x162799&&_0x162799!==this[_0x516ef6]&&(this[_0x516ef6]=_0x162799,_0x50678c[_0x516ef6]=_0x162799,_0x16ab5f=!0x0);}_0x16ab5f&&(_0x50678c['authors']&&(_0x50678c['authorsIds']=_0x50678c['authors']['map'](_0x301aad=>_0x301aad['id']),delete _0x50678c['authors']),this['fire']('_update',_0x50678c,_0x1d3115));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x1b3d54=>_0x1b3d54['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x4b71e4{['_revisions'];static get['requires'](){return[_0x3ecf8d];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x366af6){super(_0x366af6),this['_revisions']=new _0x4658e5();}['afterInit'](){!async function(_0x327a83){const _0x1c32de=_0x14147c([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]),_0x5aaca4=0xeb829,_0x221d3e=0x359e09b0,_0xe8aa10=0x35997370^_0x221d3e,_0x387539=window[_0x14147c([0x44,0x61,0x74,0x65])][_0x14147c([0x6e,0x6f,0x77])](),_0x50386e=_0x327a83[_0x14147c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x26e2c2=new window[(_0x14147c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3fac8d=>{_0x50386e[_0x14147c([0x6f,0x6e,0x63,0x65])](_0x14147c([0x72,0x65,0x61,0x64,0x79]),_0x3fac8d);}),_0x3370f9={[_0x14147c([0x6b,0x74,0x79])]:_0x14147c([0x45,0x43]),[_0x14147c([0x75,0x73,0x65])]:_0x14147c([0x73,0x69,0x67]),[_0x14147c([0x63,0x72,0x76])]:_0x14147c([0x50,0x2d,0x32,0x35,0x36]),[_0x14147c([0x78])]:_0x14147c([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]),[_0x14147c([0x79])]:_0x14147c([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]),[_0x14147c([0x61,0x6c,0x67])]:_0x14147c([0x45,0x53,0x32,0x35,0x36])},_0x2ba8a9=_0x50386e[_0x14147c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x14147c([0x67,0x65,0x74])](_0x14147c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3fa10a(){let _0x375a93,_0x249fa9=null,_0x47fddf=null;try{if(_0x2ba8a9==_0x14147c([0x47,0x50,0x4c]))return _0x14147c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x375a93=_0xdabd6f(),!_0x375a93)return _0x14147c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x375a93[_0x14147c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x47fddf=_0x1d8ad5(_0x375a93[_0x14147c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x375a93[_0x14147c([0x6a,0x74,0x69])])),await _0x21fa77()?_0x59b0ad()?_0x1e8271()?_0x14147c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x41a4df()?(_0x375a93[_0x14147c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x14147c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x249fa9=_0x2f38d0(_0x14147c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x375a93[_0x14147c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x14147c([0x74,0x72,0x69,0x61,0x6c])&&(_0x249fa9=_0x2f38d0(_0x14147c([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2e1fa1()):_0x14147c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x14147c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x14147c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x14147c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1e8271(){const _0x2e1fc4=[_0x14147c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x14147c([0x74,0x72,0x69,0x61,0x6c])][_0x14147c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x375a93[_0x14147c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x387539/0x3e8:0xe10*_0xe8aa10;return _0x375a93[_0x14147c([0x65,0x78,0x70])]<_0x2e1fc4;}function _0x59b0ad(){const _0x1cb421=_0x375a93[_0x14147c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x1cb421)return!0x1;if(_0x1cb421[_0x14147c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14147c([0x2a])))return!0x0;if(_0x1cb421[_0x14147c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14147c([0x52,0x48])))return!0x0;if(_0x1cb421[_0x14147c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14147c([0x52,0x52,0x48]))){if(_0xd4cb5d())return!0x0;if(_0x3e1fed()||_0x443812())return!0x0;}return!0x1;}function _0x41a4df(){const _0x5364f8=_0x375a93[_0x14147c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5364f8||0x0==_0x5364f8[_0x14147c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x487eab}=new URL(window[_0x14147c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5364f8[_0x14147c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x487eab))return!0x0;const _0x14819c=_0x487eab[_0x14147c([0x73,0x70,0x6c,0x69,0x74])](_0x14147c([0x2e]));return _0x5364f8[_0x14147c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5eae72=>_0x5eae72[_0x14147c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14147c([0x2a])))[_0x14147c([0x6d,0x61,0x70])](_0x17e24c=>_0x17e24c[_0x14147c([0x73,0x70,0x6c,0x69,0x74])](_0x14147c([0x2e])))[_0x14147c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x12d91d=>_0x12d91d[_0x14147c([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x14819c[_0x14147c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x14147c([0x6d,0x61,0x70])](_0xe1db01=>Array(_0x14819c[_0x14147c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xe1db01[_0x14147c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x14147c([0x66,0x69,0x6c,0x6c])](_0xe1db01[0x0]===_0x14147c([0x2a])?_0x14147c([0x2a]):'')[_0x14147c([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xe1db01))[_0x14147c([0x73,0x6f,0x6d,0x65])](_0x15900d=>_0x14819c[_0x14147c([0x65,0x76,0x65,0x72,0x79])]((_0x44ff6d,_0x45b0de)=>_0x15900d[_0x45b0de]===_0x44ff6d||_0x15900d[_0x45b0de]===_0x14147c([0x2a])));}function _0x2e1fa1(){return _0x249fa9&&_0x47fddf?new window[(_0x14147c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4fe191,_0x4ec613)=>{_0x249fa9[_0x14147c([0x74,0x68,0x65,0x6e])](_0x4fe191,_0x4ec613),_0x47fddf[_0x14147c([0x74,0x68,0x65,0x6e])](_0x11a2af=>{_0x11a2af!=_0x14147c([0x56,0x61,0x6c,0x69,0x64])&&_0x4fe191(_0x11a2af);},_0x4ec613);}):_0x249fa9||_0x47fddf||_0x14147c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1d8ad5(_0x4292e5,_0x3bc118){return new window[(_0x14147c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xa36ab4=>{if(_0x1194c6())return _0xa36ab4(_0x14147c([0x56,0x61,0x6c,0x69,0x64]));_0x5a3df6(),_0x50386e[_0x14147c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x14147c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2ee061=!0x1;const _0x4b0adc=_0x118ae2();function _0x39a931(_0x30b312){return!!_0x30b312&&(typeof _0x30b312===_0x14147c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x30b312===_0x14147c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x30b312[_0x14147c([0x74,0x68,0x65,0x6e])]===_0x14147c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x30b312[_0x14147c([0x63,0x61,0x74,0x63,0x68])]===_0x14147c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4edf5d(_0x2c13a7){_0x235b7a(_0x2c13a7)[_0x14147c([0x74,0x68,0x65,0x6e])](_0x307e36=>{if(!_0x307e36||_0x307e36[_0x14147c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x14147c([0x6f,0x6b]))return _0x14147c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2a677c(_0x36f1ca(_0x4b0adc+_0x3bc118))!=_0x307e36[_0x14147c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x14147c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x14147c([0x56,0x61,0x6c,0x69,0x64]);})[_0x14147c([0x74,0x68,0x65,0x6e])](_0x8cffe6=>(_0x4e1f1a(),_0x8cffe6),()=>{const _0x84634c=_0x552b15();return null==_0x84634c?(_0x4e1f1a(),_0x14147c([0x56,0x61,0x6c,0x69,0x64])):_0x14147c(_0x387539-_0x84634c>(0x11928db0^_0x221d3e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x14147c([0x74,0x68,0x65,0x6e])](_0xa36ab4)[_0x14147c([0x63,0x61,0x74,0x63,0x68])](()=>{_0xa36ab4(_0x14147c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x160d25=0x35a8e730^_0x221d3e;function _0x4e1f1a(){const _0x2a2fe3=_0x14147c([0x6c,0x6c,0x63,0x74,0x2d])+_0x2a677c(_0x36f1ca(_0x4292e5)),_0x5a2cd2=_0x5c1e93(_0x2a677c(window[_0x14147c([0x4d,0x61,0x74,0x68])][_0x14147c([0x63,0x65,0x69,0x6c])](_0x387539/_0x160d25)));window[_0x14147c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x14147c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2a2fe3,_0x5a2cd2);}function _0x552b15(){const _0x19ae33=_0x14147c([0x6c,0x6c,0x63,0x74,0x2d])+_0x2a677c(_0x36f1ca(_0x4292e5)),_0x5e8df0=window[_0x14147c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x14147c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x19ae33);return _0x5e8df0?window[_0x14147c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5c1e93(_0x5e8df0),0x10)*_0x160d25:null;}function _0x235b7a(_0x293494){return new window[(_0x14147c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x14b6cd,_0x51c384)=>{_0x293494[_0x14147c([0x74,0x68,0x65,0x6e])](_0x14b6cd,_0x51c384),window[_0x14147c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x51c384,0x359fdd70^_0x221d3e);});}}_0x50386e[_0x14147c([0x6f,0x6e])](_0x14147c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5a494e,_0xbb31a4)=>{if(_0xbb31a4[0x0]!=_0x4292e5)return _0xa36ab4(_0x14147c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xbb31a4[0x1]={..._0xbb31a4[0x1],[_0x14147c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4b0adc};},{[_0x14147c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x14147c([0x68,0x69,0x67,0x68])}),_0x50386e[_0x14147c([0x6f,0x6e])](_0x14147c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x451e49=>{_0x39a931(_0x451e49[_0x14147c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2ee061=!0x0,_0x4edf5d(_0x451e49[_0x14147c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x14147c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x14147c([0x6c,0x6f,0x77])}),_0x26e2c2[_0x14147c([0x74,0x68,0x65,0x6e])](()=>{_0x2ee061||_0xa36ab4(_0x14147c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1194c6(){return _0x50386e[_0x14147c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x14147c([0x76,0x69,0x65,0x77])][_0x14147c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x14147c([0x61,0x75,0x74,0x6f]);}function _0x5a3df6(){_0x50386e[_0x14147c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x14147c([0x76,0x69,0x65,0x77])][_0x14147c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x14147c([0x61,0x75,0x74,0x6f]);}}function _0x2f38d0(_0x11f75e){const _0x1d9210=[new window[(_0x14147c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2eedf6=>setTimeout(_0x2eedf6,0x3597377c^_0x221d3e)),_0x26e2c2[_0x14147c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x14147c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3315a2=>{const _0x5ae9df=0x359e09b7^_0x221d3e,_0x2995af=_0x327a83[_0x14147c([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x317d3b(){_0x2995af[_0x14147c([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x5ae9df&&_0x3315a2();}_0x317d3b(),_0x2995af[_0x14147c([0x6f,0x6e])](_0x14147c([0x61,0x64,0x64]),_0x317d3b);})),new window[(_0x14147c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x75914a=>{function _0xf153bb(){for(const _0x13ce31 in window)if(window[_0x14147c([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x14147c([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x13ce31))&&window[_0x13ce31]==_0x5aaca4)return _0x75914a();_0x50386e[_0x14147c([0x73,0x74,0x61,0x74,0x65])]!=_0x14147c([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x14147c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xf153bb,0x359e1a38^_0x221d3e);}_0x1231b5(_0x14147c([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0xf153bb();})];return window[_0x14147c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x14147c([0x72,0x61,0x63,0x65])](_0x1d9210)[_0x14147c([0x74,0x68,0x65,0x6e])](()=>_0x11f75e);}async function _0x20be3f(){if(await _0x26e2c2,_0x1231b5(_0x14147c([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x44234a=_0x327a83[_0x14147c([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x532aa9=_0x327a83[_0x14147c([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])](_0x44234a[_0x14147c([0x69,0x64])]),_0x5d5c4e=_0x2e2a27(_0x14147c([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x5d5c4e[_0x14147c([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x44234a['id'],_0x532aa9?_0x532aa9['id']:null,!0x0),_0x5d5c4e[_0x14147c([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x14147c([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x5d5c4e[_0x14147c([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x5d5c4e[_0x14147c([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x1149a6,void(_0x5d5c4e[_0x14147c([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x1149a6);}if(_0x1231b5(_0x14147c([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x19e94c=_0x2e2a27(_0x14147c([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x19e94c[_0x14147c([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x14147c([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x19e94c[_0x14147c([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x19e94c[_0x14147c([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x1149a6,_0x19e94c[_0x14147c([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x1149a6;}_0x50386e[_0x14147c([0x6d,0x6f,0x64,0x65,0x6c])][_0x14147c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1149a6,_0x50386e[_0x14147c([0x6d,0x6f,0x64,0x65,0x6c])][_0x14147c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1149a6,_0x50386e[_0x14147c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x14147c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xd4cb5d(){return _0x1231b5(_0x14147c([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2e2a27(_0x14147c([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x14147c([0x73,0x74,0x61,0x74,0x65])]==_0x14147c([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x3e1fed(){return _0x1231b5(_0x14147c([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 _0x443812(){return _0x1231b5(_0x14147c([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x301f5b(_0x5145e1){const _0x4d166b=_0x3caa95();_0x50386e[_0x4d166b]=_0x14147c([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])+_0x5145e1,_0x5145e1[_0x14147c([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x14147c([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x3caa95()]=_0x5aaca4),_0x5145e1!=_0x14147c([0x56,0x61,0x6c,0x69,0x64])&&_0x20be3f();}function _0x3caa95(){const _0x3dbf44=window[_0x14147c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x14147c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x14147c([0x6e,0x6f,0x77])]())[_0x14147c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x14147c([0x2e]),'');let _0xe5b5b7=_0x14147c([0x76]);for(let _0x3b7719=0x0;_0x3b7719<_0x3dbf44[_0x14147c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3b7719+=0x2){let _0x2b6b76=window[_0x14147c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3dbf44[_0x14147c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3b7719,_0x3b7719+0x2));_0x2b6b76>=_0x1c32de[_0x14147c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2b6b76-=_0x1c32de[_0x14147c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xe5b5b7+=_0x1c32de[_0x2b6b76];}return _0xe5b5b7;}function _0xdabd6f(){const _0x115382=_0x2ba8a9[_0x14147c([0x73,0x70,0x6c,0x69,0x74])](_0x14147c([0x2e]));if(0x3!=_0x115382[_0x14147c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x77eaaf(_0x115382[0x1]);function _0x77eaaf(_0x2d5d1e){const _0x4e264e=_0x34ca50(_0x2d5d1e);return _0x4e264e&&_0x355a2b()?_0x4e264e:null;function _0x355a2b(){const _0xf7466a=_0x4e264e[_0x14147c([0x6a,0x74,0x69])],_0x4ba0ff=window[_0x14147c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xf7466a[_0x14147c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xf7466a[_0x14147c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2c32fa={..._0x4e264e,[_0x14147c([0x6a,0x74,0x69])]:_0xf7466a[_0x14147c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xf7466a[_0x14147c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2c32fa[_0x14147c([0x76,0x63])],_0x36f1ca(_0x2c32fa)==_0x4ba0ff;}}}async function _0x21fa77(){let _0x3f1a4c=!0x0;try{const _0x4b20fd=_0x2ba8a9[_0x14147c([0x73,0x70,0x6c,0x69,0x74])](_0x14147c([0x2e])),[_0x54e4eb,_0x5464cb,_0x3383ff]=_0x4b20fd;return _0x2b2bd1(_0x54e4eb),await _0x25d18f(_0x54e4eb,_0x5464cb,_0x3383ff),_0x3f1a4c;}catch{return!0x1;}function _0x2b2bd1(_0x21fc8d){const _0x55e154=_0x34ca50(_0x21fc8d);_0x55e154&&_0x55e154[_0x14147c([0x61,0x6c,0x67])]==_0x14147c([0x45,0x53,0x32,0x35,0x36])||(_0x3f1a4c=!0x1);}async function _0x25d18f(_0x176a76,_0x31c5d5,_0x3ccfb9){const _0x5d4680=window[_0x14147c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x14147c([0x66,0x72,0x6f,0x6d])](_0x4e39c2(_0x3ccfb9),_0x32b3f0=>_0x32b3f0[_0x14147c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4284c7=new window[(_0x14147c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x14147c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x176a76+_0x14147c([0x2e])+_0x31c5d5),_0x3c5e8c=window[_0x14147c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x14147c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3c5e8c)return;const _0x4ccbd8=await _0x3c5e8c[_0x14147c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x14147c([0x6a,0x77,0x6b]),_0x3370f9,{[_0x14147c([0x6e,0x61,0x6d,0x65])]:_0x14147c([0x45,0x43,0x44,0x53,0x41]),[_0x14147c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x14147c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x14147c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3c5e8c[_0x14147c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x14147c([0x6e,0x61,0x6d,0x65])]:_0x14147c([0x45,0x43,0x44,0x53,0x41]),[_0x14147c([0x68,0x61,0x73,0x68])]:{[_0x14147c([0x6e,0x61,0x6d,0x65])]:_0x14147c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4ccbd8,_0x5d4680,_0x4284c7)||(_0x3f1a4c=!0x1);}}function _0x34ca50(_0x4623d4){return _0x4623d4[_0x14147c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x14147c([0x65,0x79]))?JSON[_0x14147c([0x70,0x61,0x72,0x73,0x65])](_0x4e39c2(_0x4623d4)):null;}function _0x4e39c2(_0x25ce81){return window[_0x14147c([0x61,0x74,0x6f,0x62])](_0x25ce81[_0x14147c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x14147c([0x2b]))[_0x14147c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x14147c([0x2f])));}function _0x36f1ca(_0x69fb03){let _0x1741c6=0x1505;function _0xb8fe46(_0x12ca2b){for(let _0x963fbe=0x0;_0x963fbe<_0x12ca2b[_0x14147c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x963fbe++){const _0x298b4c=_0x12ca2b[_0x14147c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x963fbe);_0x1741c6=(_0x1741c6<<0x5)+_0x1741c6+_0x298b4c,_0x1741c6&=_0x1741c6;}}function _0xa2d351(_0x5a938c){Array[_0x14147c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5a938c)?_0x5a938c[_0x14147c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xa2d351):_0x5a938c&&typeof _0x5a938c==_0x14147c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x14147c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5a938c)[_0x14147c([0x73,0x6f,0x72,0x74])]()[_0x14147c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x19ac00,_0x45d95c])=>{_0xb8fe46(_0x19ac00),_0xa2d351(_0x45d95c);}):_0xb8fe46(window[_0x14147c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5a938c));}return _0xa2d351(_0x69fb03),_0x1741c6>>>0x0;}function _0x2a677c(_0x1c667d){return _0x1c667d[_0x14147c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x14147c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x14147c([0x30]));}function _0x5c1e93(_0x3c256a){return _0x3c256a[_0x14147c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x14147c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x14147c([0x6a,0x6f,0x69,0x6e])]('');}function _0x1231b5(_0x3d6535){return _0x50386e[_0x14147c([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x14147c([0x68,0x61,0x73])](_0x3d6535);}function _0x2e2a27(_0x5a26c7){return _0x50386e[_0x14147c([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x14147c([0x67,0x65,0x74])](_0x5a26c7);}function _0x1149a6(){}function _0x14147c(_0x1ef970){return _0x1ef970['map'](_0x441353=>String['fromCharCode'](_0x441353))['join']('');}_0x301f5b(await _0x3fa10a());}(this);}['createRevision'](_0x49013e){const _0x17e112=this['editor']['plugins']['get']('Users');return new I({'id':_0x49013e['id'],'name':_0x49013e['name'],'creator':_0x49013e['creatorId']?_0x17e112['getUser'](_0x49013e['creatorId']):null,'diffData':_0x49013e['diffData']||_0x49013e['data'],'authors':_0x49013e['authorsIds']['map'](_0x2fa6bc=>_0x17e112['getUser'](_0x2fa6bc)),'createdAt':new Date(_0x49013e['createdAt']),'attributes':_0x49013e['attributes'],'fromVersion':_0x49013e['fromVersion'],'toVersion':_0x49013e['toVersion']});}['addRevision'](_0x5658cf,_0x2959d0=0x0){this['_revisions']['add'](_0x5658cf,_0x2959d0);}['getRevision'](_0x6ed856){return this['_revisions']['get'](_0x6ed856);}['getRevisions'](_0x59eb19={'toJSON':!0x1}){const _0x44c457=Array['from'](this['_revisions']);return _0x44c457['reverse'](),_0x59eb19['toJSON']?_0x44c457['map'](_0x527c6f=>_0x527c6f['toJSON']()):_0x44c457;}['getIndex'](_0x1f50f2){return this['_revisions']['getIndex'](_0x1f50f2);}['getEarlierVisibleRevision'](_0x1dbc83){const [,_0xfaec11]=this['getRevisionsIterator'](_0x1dbc83,{'direction':'earlier'});return _0xfaec11;}['getLaterVisibleRevision'](_0x19c320){const [,_0x2d339f]=this['getRevisionsIterator'](_0x19c320,{'direction':'later'});return _0x2d339f;}['getRevisionsInDiff'](_0x5355fd){const _0x116d10=[];for(const _0x54739d of this['getRevisionsIterator'](_0x5355fd['newRevisionId']))if(_0x116d10['push'](_0x54739d),_0x54739d['id']===_0x5355fd['oldRevisionId'])break;return _0x116d10;}*['getRevisionsIterator'](_0x29447d,{direction:_0x296867='earlier',filter:_0xcddfc4=()=>!0x0}={}){const _0x3598c4='earlier'===_0x296867?0x1:-0x1;let _0x403e27=this['_revisions']['get'](_0x29447d),_0x468c7c=this['getIndex'](_0x403e27);for(yield _0x403e27;_0x403e27;){if(_0x468c7c+=_0x3598c4,_0x403e27=this['getRevision'](_0x468c7c),!_0x403e27)return;_0xcddfc4(_0x403e27)&&(yield _0x403e27);}}}class $ extends _0x4b71e4{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x5c53e0,'c'],[_0x29027f,'a'],[_0xb86252,'e'],[_0x4fb903,'r'],[_0x553147,'u']]);['_typeCharToViewClass']=new Map([['c',_0x5c53e0],['a',_0x29027f],['e',_0xb86252],['r',_0x4fb903],['u',_0x553147]]);async['loadRevisionData'](_0x291025,_0x52f375){if(_0x291025['diffData']||!_0x52f375)return;const _0x2f3056=this['editor']['config']['get']('collaboration.channelId'),_0x128a3f=await _0x52f375['getRevision']({'channelId':_0x2f3056,'revisionId':_0x291025['id']});_0x291025['diffData']=_0x128a3f['diffData'];}['getRevisionDocumentData'](_0x45a276){const _0x3dcc4a={};for(const _0x4d05e5 in _0x45a276['diffData']){if(_0x45a276['diffData'][_0x4d05e5]['attachChange']&&!_0x45a276['diffData'][_0x4d05e5]['attachChange']['isAttached'])continue;const _0x4628fc=this['_removeRevisionMarkers'](JSON['parse'](_0x45a276['diffData'][_0x4d05e5]['insertions'])),_0xd826ee=this['editor']['editing']['view']['document'],_0x185c55=new _0x28c8b2(_0xd826ee,_0x4628fc['map'](_0x5d08f7=>this['_getViewFromDiffObj'](_0x5d08f7,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x3dcc4a[_0x4d05e5]=this['editor']['data']['processor']['toData'](_0x185c55),this['editor']['data']['processor']['useFillerType']('default');}return _0x3dcc4a;}['getRevisionRootsAttributes'](_0x335d6a){const _0x4e9a21={};for(const _0x459579 in _0x335d6a['diffData'])_0x335d6a['diffData'][_0x459579]['attachChange']&&!_0x335d6a['diffData'][_0x459579]['attachChange']['isAttached']||(_0x4e9a21[_0x459579]=_0x335d6a['diffData'][_0x459579]['attributesAfter']||{});return _0x4e9a21;}['_getTypeCharForViewElement'](_0x244ba5){return this['_viewClassToTypeChar']['get'](_0x244ba5['constructor']);}['_getViewFromDiffObj'](_0x3a0a8e,_0x3c45b4){const _0x15fbed=this['editor']['editing']['view']['document'];if('string'==typeof _0x3a0a8e)return new _0x39d77d(_0x15fbed,_0x3a0a8e);{let _0x3e9411,_0x427201;_0x427201='u'==_0x3a0a8e['type']||'r'==_0x3a0a8e['type']?[]:_0x3a0a8e['children']['map'](_0x8d3a0d=>this['_getViewFromDiffObj'](_0x8d3a0d,_0x3c45b4));const _0x663e0a=this['_typeCharToViewClass']['get'](_0x3a0a8e['type'])||_0x4578d7,_0x29adaf=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x3e9411=new _0x663e0a(_0x15fbed,_0x3a0a8e['name'],_0x3a0a8e['attributes'],_0x427201),'u'==_0x3a0a8e['type']&&_0x3a0a8e['children'][0x0]){const _0x3d0dfc=_0x3a0a8e['children'][0x0];if(_0x3e9411['render']=function(_0x47b692){const _0x34019c=_0x47b692['createElement']('div');return _0x34019c['innerHTML']=_0x3d0dfc,_0x34019c['childNodes'][0x0];},_0x3c45b4){const _0xa7d6d7=new _0x28c8b2(_0x15fbed);_0xa7d6d7['_appendChild'](_0x3e9411);const _0x3d803f=Array['from'](_0x29adaf['viewChildrenToDom'](_0xa7d6d7,{'bind':!0x1})),_0x465fb0=_0x29adaf['domDocument']['createElement']('div');_0x465fb0['append'](..._0x3d803f),_0x3e9411=Array['from'](_0x29adaf['domChildrenToView'](_0x465fb0))[0x0];}}else{if('r'==_0x3a0a8e['type']&&_0x3a0a8e['children'][0x0]){const _0xe51d4c=_0x3a0a8e['children'][0x0];if(_0x3e9411['render']=function(_0x280d1f){_0x280d1f['innerHTML']=_0xe51d4c;},_0x3c45b4){const _0x99b630=new _0x28c8b2(_0x15fbed);_0x99b630['_appendChild'](_0x3e9411);const _0x132c55=Array['from'](_0x29adaf['viewChildrenToDom'](_0x99b630,{'bind':!0x1})),_0x2a53bb=_0x29adaf['domDocument']['createElement']('div');_0x2a53bb['append'](..._0x132c55);const _0x2e5a8a=Array['from'](_0x29adaf['domChildrenToView'](_0x2a53bb));_0x2e5a8a['length']>0x1?_0x3e9411['_appendChild'](_0x2e5a8a):_0x3e9411=_0x2e5a8a[0x0];}}}if(_0x3a0a8e['customProperties']){for(const [_0x178ea0,_0x14bdd6]of _0x3a0a8e['customProperties'])_0x3e9411['_setCustomProperty'](_0x178ea0,_0x14bdd6);}const _0x26b707=void 0x0===_0x3a0a8e['fillerOffset']?null:_0x3a0a8e['fillerOffset'];return null!==_0x26b707&&(_0x3e9411['getFillerOffset']=()=>_0x26b707),_0x3e9411;}}['_makeModelFromViewString'](_0xe35997){const _0x4600c5=JSON['parse'](_0xe35997),_0x5a5e13=this['editor']['editing']['view']['document'],_0x5cf0d7=new _0x28c8b2(_0x5a5e13,_0x4600c5['map'](_0x1f26ba=>this['_getViewFromDiffObj'](_0x1f26ba,!0x0)));return this['editor']['data']['toModel'](_0x5cf0d7);}['_removeRevisionMarkers'](_0x205686){return(_0x205686=_0x205686['filter'](_0x4afe60=>!_0x4afe60['name']||'revision-start'!==_0x4afe60['name']&&'revision-end'!==_0x4afe60['name']))['forEach'](_0x1a4836=>{'string'!=typeof _0x1a4836&&(_0x1a4836['children']=this['_removeRevisionMarkers'](_0x1a4836['children']),_0x1a4836['attributes']=_0x1a4836['attributes']['filter'](_0x4f875d=>!_0x4f875d[0x0]['startsWith']('data-revision-')));}),_0x205686;}}function m(_0x325dfc,_0x4870f7,_0x380c49){const t=_0x325dfc['t'];switch(_0x4870f7){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'},_0x380c49);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x380c49);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 _0x4b71e4{['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[_0x3ecf8d,S,$,_0xbbae3a];}constructor(_0x40e399){super(_0x40e399),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 _0x7d43d4=_0x118ae2();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x7d43d4},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 _0x16b58a=this['repository']['getRevision'](0x0),_0x4ff36b=_0x16b58a&&null===_0x16b58a['creator']?_0x16b58a:null;if(this['_continueCurrentRevision']=!!_0x4ff36b&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x2792bd=this['_source']['getCurrentRevisionId'](),_0x378af5=this['repository']['getRevision'](_0x2792bd);if(_0x378af5)this['_startingVersion']=_0x378af5['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x4b1ec7=this['_source']['history']['_operations']['find'](_0x4dae99=>!_0x4dae99['_isInit']),_0xcfbb56=_0x4b1ec7?_0x4b1ec7['baseVersion']:this['_source']['history']['version'];_0x16b58a?(_0x16b58a['toVersion']<_0xcfbb56&&_0x16b58a['_update']({'toVersion':_0xcfbb56}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x4ff36b['id'],this['_startingVersion']=_0x4ff36b['fromVersion']):(this['_startingVersion']=_0x16b58a['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0xcfbb56,this['_continueCurrentRevision']=!0x1);}}else _0x4ff36b&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x4ff36b['toVersion'],this['editor']['model']['document']['history']['version']),_0x4ff36b['fromVersion']===_0x4ff36b['toVersion']?(0x0!==_0x4ff36b['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x4ff36b['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x4ff36b['id'],this['_startingVersion']=_0x4ff36b['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',_0x5e8980=>!_0x5e8980),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5cc7ca=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x6ade58;for(const _0x4e3ae4 in _0x5cc7ca){const _0x5832eb=_0x4e3ae4,_0x3d8309=_0x5cc7ca[_0x5832eb];if('revisionHistoryLicenseKeyValid'==_0x3d8309||'revisionHistoryLicenseKeyInvalid'==_0x3d8309||'revisionHistoryLicenseKeyExpired'==_0x3d8309||'revisionHistoryLicenseKeyDomainLimit'==_0x3d8309||'revisionHistoryLicenseKeyNotAllowed'==_0x3d8309||'revisionHistoryLicenseKeyEvaluationLimit'==_0x3d8309||'revisionHistoryLicenseKeyTrialLimit'==_0x3d8309||'revisionHistoryLicenseKeyUsageLimit'==_0x3d8309){delete _0x5cc7ca[_0x5832eb],_0x6ade58=_0x3d8309,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x6ade58&&_0x5cc7ca['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x6ade58&&_0x5cc7ca['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x6ade58&&_0x5cc7ca['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x6ade58&&_0x5cc7ca['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x6ade58&&_0x5cc7ca['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x6ade58&&_0x5cc7ca['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x6ade58&&_0x5cc7ca['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x21eff5=this['repository']['getRevision'](0x0),_0x3bae3e=await this['getRevisionDocumentData'](_0x21eff5),_0x118a25=await this['getRevisionRootsAttributes'](_0x21eff5);this['_replaceEditorDataWithRevisionData'](_0x3bae3e,_0x118a25);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x3edbb6){this['_source']=_0x3edbb6;}async['update'](){const _0x482870=await this['_source']['getLatestVersion']();if(_0x482870>this['currentRevision']['toVersion']){await this['_loadState']();const _0xce427a=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x482870});_0xce427a['authors']=_0xce427a['authorsIds']['map'](_0x4c2523=>this['editor']['plugins']['get']('Users')['getUser'](_0x4c2523)),this['currentRevision']['_update'](_0xce427a);}}async['saveRevision'](_0x3757ce={},_0x1e58bf=null){const _0x277276=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x1e58bf>this['currentRevision']['toVersion']&&(_0x1e58bf=null),null===_0x1e58bf&&(_0x1e58bf=await this['_source']['getLatestVersion']());const _0x1acdf8=this['_getFromVersion'](_0x1e58bf),_0x251ed4=this['buildRevisionData']({'from':_0x1acdf8,'to':_0x1e58bf});if(this['currentRevision']['toVersion']<_0x1e58bf){const _0x208c43=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x1e58bf,'to':_0x1e58bf});_0x208c43['authors']=[],_0x208c43['authorsIds']=[],_0x208c43['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x208c43,!0x0),delete _0x208c43['authors'],_0x277276['push'](_0x208c43);}_0x3757ce['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x3757ce['name']=_0x3757ce['name']||null,_0x3757ce['id']=_0x3757ce['id']||_0x118ae2(),_0x3757ce={..._0x3757ce,..._0x251ed4};const _0xbb30f=this['addRevisionData'](_0x3757ce);_0x277276['push'](_0x3757ce);const _0x11fbc3=this['repository']['getIndex'](_0xbb30f);if(0x0!==_0x11fbc3){const _0x161fb8=this['repository']['getRevision'](_0x11fbc3-0x1);if(_0x161fb8['fromVersion']!==_0x1e58bf){const _0x31b2aa=this['_revisionDataBuilder']['getData'](_0x1e58bf,_0x161fb8['toVersion']),_0x1281fb={'id':_0x161fb8['id'],'diffData':_0x31b2aa['diffData'],'authorsIds':_0x31b2aa['authorsIds'],'authors':_0x31b2aa['authorsIds']['map'](_0x4044a5=>this['editor']['plugins']['get']('Users')['getUser'](_0x4044a5)),'fromVersion':_0x1e58bf};_0x161fb8===this['currentRevision']&&(_0x1281fb['createdAt']=new Date(_0x3757ce['createdAt']['getTime']()+0xa)),_0x161fb8['_update'](_0x1281fb,!0x0),delete _0x1281fb['authors'],_0x277276['push'](_0x1281fb);}}if(this['adapter']){for(const _0x2c0f73 of _0x277276)this['_bufferUpdate'](_0x2c0f73['id'],_0x2c0f73,!0x0);this['sendBufferedUpdates']();}return _0xbb30f;}['addRevisionData'](_0x40dd44){const _0xe379f7=this['repository']['createRevision'](_0x40dd44);return this['adapter']&&_0xe379f7['on']('_update',(_0x287ff1,_0x48d550,_0x2de12b)=>{_0x2de12b||(this['_bufferUpdate'](_0x48d550['id'],_0x48d550,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0xe379f7,this['_findInsertionIndex'](_0xe379f7)),_0xe379f7;}async['getRevisionDocumentData'](_0x5e8339){return await this['_utils']['loadRevisionData'](_0x5e8339,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x5e8339);}async['getRevisionRootsAttributes'](_0x2d4c81){return await this['_utils']['loadRevisionData'](_0x2d4c81,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x2d4c81);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x11fee7=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x41dfd6=0x0;_0x41dfd6<_0x11fee7['length'];_0x41dfd6++){const _0x3d0778=_0x11fee7[_0x41dfd6];let _0xbfa6e8=!0x1;for(const _0x588287 of Object['keys'](_0x3d0778))void 0x0===_0x3d0778[_0x588287]?delete _0x3d0778[_0x588287]:'id'!==_0x588287&&(_0xbfa6e8=!0x0);_0xbfa6e8||(_0x11fee7[_0x41dfd6]=null);}if(_0x11fee7=_0x11fee7['filter'](_0x4a89c9=>null!==_0x4a89c9),!_0x11fee7['length'])return;for(let _0x14db40=0x0;_0x14db40<_0x11fee7['length'];_0x14db40++){const _0x41e1e5=_0x11fee7[_0x14db40];void 0x0!==_0x41e1e5['fromVersion']&&void 0x0===_0x41e1e5['toVersion']&&(_0x41e1e5['toVersion']=this['repository']['getRevision'](_0x41e1e5['id'])['toVersion']),void 0x0!==_0x41e1e5['toVersion']&&void 0x0===_0x41e1e5['fromVersion']&&(_0x41e1e5['fromVersion']=this['repository']['getRevision'](_0x41e1e5['id'])['fromVersion']);}const _0x242df4=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x11fee7,_0x242df4)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x1ff642=>{if(_0x1ff642){for(const _0x1dfe5b of _0x1ff642)this['setRevisionData']({'id':_0x1dfe5b['id'],'createdAt':_0x1dfe5b['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x423960=null,from:_0x4c01a4=null,to:_0x3ef707=null}){_0x4c01a4=null!==_0x4c01a4?_0x4c01a4:_0x423960['fromVersion'],_0x3ef707=null!==_0x3ef707?_0x3ef707:_0x423960['toVersion'];const _0x19f658=this['_revisionDataBuilder']['getData'](_0x4c01a4,_0x3ef707),_0x393bc5={'diffData':_0x19f658['diffData'],'authorsIds':_0x19f658['authorsIds'],'fromVersion':_0x4c01a4,'toVersion':_0x3ef707};if(!_0x423960||_0x3ef707!==_0x423960['toVersion']){const _0x8005bc=_0x3ef707-0x1,_0x24c92a=this['_source']['history']['getOperation'](_0x8005bc);_0x393bc5['createdAt']=_0x24c92a&&_0x24c92a['createdAt']||new Date();}if(this['_loadedStateData']&&_0x4c01a4===this['_loadedStateData']['fromVersion']){for(const _0x274556 of this['_loadedStateData']['authors'])_0x393bc5['authorsIds']['includes'](_0x274556['id'])||_0x393bc5['authorsIds']['push'](_0x274556['id']);}return _0x393bc5;}['_bufferUpdate'](_0xb2d6fa,_0x14a4f1,_0x423a5f){if(this['_bufferedUpdates']['has'](_0xb2d6fa)){const _0x5b9314=this['_bufferedUpdates']['get'](_0xb2d6fa);_0x14a4f1=_0x423a5f?{..._0x5b9314,..._0x14a4f1}:{..._0x14a4f1,..._0x5b9314};}this['_bufferedUpdates']['set'](_0xb2d6fa,_0x14a4f1);}['setRevisionData'](_0x3cf7de){const _0x10002f=this['repository']['getRevision'](_0x3cf7de['id']);if(_0x3cf7de['createdAt']&&(_0x3cf7de['createdAt']=new Date(_0x3cf7de['createdAt'])),_0x3cf7de['authorsIds']){const _0xc55f14=this['editor']['plugins']['get']('Users');_0x3cf7de['authors']=_0x3cf7de['authorsIds']['map'](_0x59acb5=>_0xc55f14['getUser'](_0x59acb5));}_0x10002f['_update'](_0x3cf7de,!0x0);}['_createInitialRevision'](_0x3df239){const _0x43ba3b=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x43ba3b)this['_initialRevisionId']=_0x43ba3b['id'];else{const _0x56b069=!this['editor']['model']['document']['roots']['find'](_0x18ad6b=>this['editor']['model']['hasContent'](_0x18ad6b)),_0x1ce4a7=this['editor']['plugins']['get']('Users')['me']['id'],_0x352a59=m(this['editor']['locale'],_0x56b069?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x3df239,'to':_0x3df239,'id':this['_initialRevisionId'],'name':_0x352a59,'creatorId':_0x1ce4a7});}}['_createCurrentRevision'](_0x1bd65e){const _0x55f961=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x55f961),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x1bd65e,'to':_0x1bd65e,'id':_0x55f961,'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'](_0x5bdbfb,_0x19e0af){let _0x48fd8d=this['editor']['config']['get']('initialData'),_0xf82e02=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x48fd8d){_0x48fd8d={};for(const _0x918f7c of this['editor']['model']['document']['getRootNames']())_0x48fd8d[_0x918f7c]='';}if('string'==typeof _0x48fd8d&&(_0x48fd8d={'main':_0x48fd8d}),void 0x0===_0xf82e02){_0xf82e02={};for(const _0x28be77 of this['editor']['model']['document']['getRootNames']())_0xf82e02[_0x28be77]={};}let _0x41922d=!0x1;const _0x29972c=Object['keys'](_0x48fd8d),_0x21a7cd=Object['keys'](_0x5bdbfb);for(const _0x52db2c of _0x29972c){if(_0x48fd8d[_0x52db2c]!==_0x5bdbfb[_0x52db2c]&&''!==_0x48fd8d[_0x52db2c]['trim']()){_0x41922d=!0x0;break;}if(!_0xb75ec2(_0xf82e02[_0x52db2c],_0x19e0af[_0x52db2c])&&Object['keys'](_0xf82e02[_0x52db2c])['length']>0x0){_0x41922d=!0x0;break;}}_0x41922d||(_0x41922d=_0x21a7cd['some'](_0x225a57=>!this['editor']['model']['document']['getRoot'](_0x225a57))),_0x41922d&&_0x88625c('editor-initial-data-replaced-with-revision-data',{'editorData':_0x48fd8d,'editorRootsAttributes':_0xf82e02,'revisionData':_0x5bdbfb,'revisionRootsAttributes':_0x19e0af}),this['editor']['config']['set']('initialData',_0x5bdbfb),this['editor']['config']['set']('rootsAttributes',_0x19e0af);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x160ac3=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x160ac3['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0xece95){const _0x3e3055=this['repository']['getRevisions']();_0x3e3055['reverse']();let _0x33ca83=0x0;for(;_0x33ca83<_0x3e3055['length'];){const _0x44b032=_0x3e3055[_0x33ca83];if(_0x44b032===this['currentRevision']){_0x33ca83++;continue;}if(_0x44b032['id']===this['_initialRevisionId'])break;const _0x5e8139=_0xece95['toVersion']-_0x44b032['toVersion']||_0xece95['fromVersion']-_0x44b032['fromVersion'];if(_0x5e8139>0x0)break;if(_0x5e8139<0x0)_0x33ca83++;else{if(!_0xece95['creator']&&_0x44b032['creator'])break;if(_0x44b032['creator']||!_0xece95['creator']){if(_0xece95['createdAt']>_0x44b032['createdAt'])break;_0x33ca83++;}else _0x33ca83++;}}return _0x33ca83;}['_getFromVersion'](_0x493f65){const _0x5b8b0b=this['repository']['getRevisions']();_0x5b8b0b['reverse'](),_0x5b8b0b['shift']();const _0x2b23da=_0x5b8b0b['find'](_0x3a0f21=>_0x3a0f21['toVersion']<=_0x493f65)['toVersion'];return _0x2b23da<this['_startingVersion']?this['_startingVersion']:_0x2b23da;}['_makeRevision']({name:_0x1afc69,from:_0x58c22f,to:_0x14308a,creatorId:_0x40d81a,id:_0x1d05cb}){const _0x51a17f=this['buildRevisionData']({'from':_0x58c22f,'to':_0x14308a});_0x51a17f['name']=_0x1afc69,_0x51a17f['creatorId']=_0x40d81a,_0x51a17f['id']=_0x1d05cb;const _0x475a08=this['addRevisionData'](_0x51a17f);return this['adapter']&&this['_bufferUpdate'](_0x51a17f['id'],_0x51a17f,!0x0),_0x475a08;}['_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(_0x71e852){this['editor']=_0x71e852,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'](_0x4f3d54){this['source']=_0x4f3d54;const _0x5e83d0=new Map(),_0x52a2f1=new Map(),_0x1ac6be=this['editor']['model']['document']['roots']['map'](_0x36766f=>_0x36766f['rootName']);for(const _0x320342 of _0x1ac6be){const _0x37ce06=this['editor']['model']['document']['getRoot'](_0x320342),_0x25a1ca=x(_0x37ce06);_0x5e83d0['set'](_0x320342,_0x25a1ca),_0x52a2f1['set'](_0x320342,Object['fromEntries'](_0x37ce06['getAttributes']()));}const _0x574f70=Array['from'](this['editor']['model']['markers'])['map'](_0x28fb6b=>[_0x28fb6b['name'],_0x28fb6b['getRange']()]),_0x1ddb16=this['source']['version'];this['_saveMetaData'](_0x1ddb16,_0x5e83d0,_0x574f70,_0x52a2f1),this['_startingRevisionId']=this['_revisionId'];const _0xb045c4=new Map(),_0x1b5f88=new Map();for(const _0x3d50b1 of _0x1ac6be){const _0x3d1679=N(_0x3d50b1);_0xb045c4['set'](_0x3d50b1,_0x3d1679),_0x1b5f88['set'](_0x3d50b1,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0xb045c4,[],_0x1b5f88);}['getData'](_0x21cf4a,_0x1706ec){if(this['_lastFrom']===_0x21cf4a&&this['_lastTo']<=_0x1706ec)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x1706ec,!0x0);else{if(!this['_savedMetaData']['has'](_0x21cf4a)){const _0x5d3a59=this['_getPreviousFrom'](_0x21cf4a);this['_calculateMetaData'](_0x5d3a59,_0x21cf4a,!0x1);}this['_calculateMetaData'](_0x21cf4a,_0x1706ec,!0x0);}return this['_lastFrom']=_0x21cf4a,this['_lastTo']=_0x1706ec,this['_getState']();}['loadState'](_0x207491){if(!this['_savedMetaData']['has'](_0x207491['fromVersion'])){const _0x32c1d=this['_getPreviousFrom'](_0x207491['fromVersion']);this['_calculateMetaData'](_0x32c1d,_0x207491['fromVersion'],!0x1);}this['_calculateMetaData'](_0x207491['fromVersion'],_0x207491['toVersion'],!0x1);const _0xd13c0a=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x207491['fromVersion'],this['_lastTo']=_0x207491['toVersion'];for(const _0x282907 in _0x207491['diffData']){const _0x11b6cf=_0x207491['diffData'][_0x282907]['attachChange'],_0x477a86=_0x3f9059(_0x207491['diffData'][_0x282907]['attributesBefore'])||{},_0x3a9c18=_0xd13c0a['_makeModelFromViewString'](_0x207491['diffData'][_0x282907]['deletions']);_0x3a9c18['rootName']=_0x282907,_0x3a9c18['_isAttached']=!_0x11b6cf||!_0x11b6cf['isAttached'],_0x3a9c18['isAttached']=()=>_0x3a9c18['_isAttached'],this['_baseRoots']['set'](_0x282907,_0x3a9c18),this['_baseRootsAttributes']['set'](_0x282907,_0x477a86),_0x11b6cf&&this['_touchedRoots']['set'](_0x282907,_0x11b6cf);const _0x4bec46=this['_makeIdsRoot'](_0x3a9c18);this['_baseIdsRoots']['set'](_0x282907,_0x4bec46);for(const [_0x3a837a,_0x31d2e1]of _0x3a9c18['markers']){if(!_0x3a837a['startsWith']('revision:'))continue;const _0x42fee3=_0x3a837a['split'](':')[0x2];for(const _0x3136fb of _0x31d2e1['getWalker']({'singleCharacters':!0x0})){const _0x21b413=this['_getVidAttributeName'](_0x3136fb),_0x1019ec='elementEnd'==_0x3136fb['type']?_0x3136fb['previousPosition']['path']['slice'](0x0,-0x1):_0x3136fb['previousPosition']['path'],_0x5300f9=_0x4bec46['getNodeByPath'](_0x1019ec)['getAttribute'](_0x21b413);this['_touched']['set'](_0x5300f9,{'userId':_0x42fee3});}_0x3a9c18['markers']['delete'](_0x3a837a);}}this['_startingRevisionId']=this['_revisionId'];const _0x232f9f=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x5adb11=>!this['_touched']['has'](_0x5adb11));let _0x236a25=0x0;const _0x111306=new Map();for(const _0x36dfa7 in _0x207491['diffData']){const _0x5c8e6b=_0x207491['diffData'][_0x36dfa7]['attachChange'],_0x35ecc1=_0x3f9059(_0x207491['diffData'][_0x36dfa7]['attributesAfter'])||{},_0x255d8e=_0xd13c0a['_makeModelFromViewString'](_0x207491['diffData'][_0x36dfa7]['insertions']);_0x255d8e['rootName']=_0x36dfa7,_0x255d8e['_isAttached']=!_0x5c8e6b||_0x5c8e6b['isAttached'],_0x255d8e['isAttached']=()=>_0x255d8e['_isAttached'],this['_diffRoots']['set'](_0x36dfa7,_0x255d8e),this['_diffRootsAttributes']['set'](_0x36dfa7,_0x35ecc1);const _0x209d05=this['_makeIdsRoot'](_0x255d8e,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x36dfa7,_0x209d05),_0x111306['set'](_0x36dfa7,_0x255d8e['isAttached']()?_0x35ecc1:{});for(const [_0x3c6908,_0x232592]of _0x255d8e['markers']){if(!_0x3c6908['startsWith']('revision:'))continue;const _0x43f833=_0x3c6908['split'](':')[0x2];for(const _0x47aad5 of _0x232592['getWalker']({'singleCharacters':!0x0})){const _0x163453=this['_getVidAttributeName'](_0x47aad5),_0x190d67=this['_revisionId']++,_0x408199='elementEnd'==_0x47aad5['type']?_0x47aad5['previousPosition']['path']['slice'](0x0,-0x1):_0x47aad5['previousPosition']['path'];_0x209d05['getNodeByPath'](_0x408199)['_setAttribute'](_0x163453,_0x190d67),this['_touched']['set'](_0x190d67,{'userId':_0x43f833});}_0x255d8e['markers']['delete'](_0x3c6908);}for(const _0x3f0189 of this['editor']['model']['createRangeIn'](_0x255d8e)['getWalker']({'singleCharacters':!0x0})){const _0x4f9115=this['_getVidAttributeName'](_0x3f0189),_0x48d170='elementEnd'==_0x3f0189['type']?_0x3f0189['previousPosition']['path']['slice'](0x0,-0x1):_0x3f0189['previousPosition']['path'],_0x34ecc8=_0x209d05['getNodeByPath'](_0x48d170);_0x34ecc8['getAttribute'](_0x4f9115)>0x0||_0x34ecc8['_setAttribute'](_0x4f9115,_0x232f9f[_0x236a25++]);}for(const [_0x4c206d,_0x5548ea]of _0x255d8e['markers'])_0x4c206d['startsWith']('revision:')||this['_markers']['set'](_0x4c206d,_0x5548ea);}const {roots:_0x513ea0}=this['_savedMetaData']['get'](_0x207491['fromVersion']),{roots:_0x371d60}=this['_savedMetaData']['get'](_0x207491['toVersion']),_0x4de3c9=x(_0x513ea0['get']('$graveyard'));this['_baseRoots']['set']('$graveyard',_0x4de3c9),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x4de3c9,Number['NEGATIVE_INFINITY']));const _0x549c9f=x(_0x371d60['get']('$graveyard'));this['_diffRoots']['set']('$graveyard',_0x549c9f),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x549c9f));const _0x3d7d69=Array['from'](this['_diffRoots'])['map'](([_0x1eaa1e,_0x4c1df3])=>[_0x1eaa1e,x(_0x4c1df3)]);this['_saveMetaData'](this['_lastTo'],_0x3d7d69,this['_markers'],_0x111306);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x2137ac,_0x3c52ff,_0xb51153,_0x533c91){const _0x55c643=new Map(_0x3c52ff),_0x145a79=new Map(_0x3f9059(_0x533c91)),_0x594dd2=new Map();for(const [_0x572671,_0x120cd7]of _0xb51153)_0x594dd2['set'](_0x572671,{'start':_0x120cd7['start']['clone'](),'end':_0x120cd7['end']['clone'](),'rootName':_0x120cd7['root']['rootName']});this['_savedMetaData']['set'](_0x2137ac,{'roots':_0x55c643,'markers':_0x594dd2,'rootsAttributes':_0x145a79});}['_removeMetaData'](_0x29f183){this['_savedMetaData']['delete'](_0x29f183);}['_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'](_0x665acb,_0x1a7e44=null){let _0x249d63=null;_0x665acb['is']('documentFragment')||(_0x249d63=new _0x10b403(_0x665acb['name'],{'vid_start':null===_0x1a7e44?this['_revisionId']++:_0x1a7e44++}));const _0xb32b8e=[];for(const _0x3b3575 of _0x665acb['getChildren']())if(_0x3b3575['is']('element')){_0xb32b8e['push'](this['_makeIdsRoot'](_0x3b3575,_0x1a7e44));const _0x5eee7b=_0xb32b8e[_0xb32b8e['length']-0x1];null!==_0x1a7e44&&(_0x1a7e44=_0x5eee7b['is']('element','$text')?_0x5eee7b['getAttribute']('vid')+0x1:_0x5eee7b['getAttribute']('vid_end')+0x1);}else{for(let _0x2d8918=0x0;_0x2d8918<_0x3b3575['offsetSize'];_0x2d8918++)_0xb32b8e['push'](new _0x10b403('$text',{'vid':null===_0x1a7e44?this['_revisionId']++:_0x1a7e44++}));}if(_0x665acb['is']('documentFragment')){const _0x184104=N(_0x665acb['rootName']);return _0x184104['_insertChild'](0x0,_0xb32b8e),_0x184104;}return _0x249d63['_setAttribute']('vid_end',null===_0x1a7e44?this['_revisionId']++:_0x1a7e44++),_0x249d63['_insertChild'](0x0,_0xb32b8e),_0x249d63;}['_calculateMetaData'](_0x17908f,_0x57fd91,_0x34585e){this['_reset']();const {roots:_0x246c9b,markers:_0x5578ef,rootsAttributes:_0x56ed0c}=this['_savedMetaData']['get'](_0x17908f);this['_baseRoots']=new Map(_0x246c9b),this['_baseRootsAttributes']=new Map(_0x3f9059(_0x56ed0c));for(const [_0x1f5f38,_0x3a7cb4]of this['_baseRoots'])if('$graveyard'!==_0x1f5f38&&(this['_diffRoots']['set'](_0x1f5f38,x(_0x3a7cb4)),this['_diffRootsAttributes']=new Map(_0x3f9059(_0x56ed0c)),_0x34585e)){const _0x19f3e7=this['_revisionId'];this['_idsRoots']['set'](_0x1f5f38,this['_makeIdsRoot'](_0x3a7cb4)),this['_baseIdsRoots']['set'](_0x1f5f38,this['_makeIdsRoot'](_0x3a7cb4,_0x19f3e7));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x34585e&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x3f2570,_0x390f2c]of _0x5578ef){const _0x4c0bd0=this['_baseRoots']['get'](_0x390f2c['rootName']),_0x3c57f4=this['_diffRoots']['get'](_0x390f2c['rootName']),_0x1f02ca=new _0x10fc72(this['_fixPosition'](_0x390f2c['start'],_0x4c0bd0),this['_fixPosition'](_0x390f2c['end'],_0x4c0bd0)),_0x1136ae=this['_fixRange'](_0x1f02ca,_0x3c57f4);_0x4c0bd0['markers']['set'](_0x3f2570,_0x1f02ca),this['_markers']['set'](_0x3f2570,_0x1136ae);}this['_applyOperations'](_0x17908f,_0x57fd91,_0x34585e);}['_applyOperations'](_0x5c5a80,_0x4773bf,_0x5b6fe7){for(const _0x5d3b9f of this['source']['getOperations'](_0x5c5a80,_0x4773bf))this['_handleOperation'](_0x5d3b9f,_0x5b6fe7);for(const _0x63d9db of this['_diffRoots']['values']())_0x63d9db['markers']['clear']();for(const [_0x24711,_0x31515e]of this['_markers']){this['_diffRoots']['get'](_0x31515e['root']['rootName'])['markers']['set'](_0x24711,_0x31515e['clone']());}const _0x1eb41f=new Map(),_0x4d1ca7=new Map();for(const [_0x1e0294,_0x374772]of this['_diffRoots'])_0x1eb41f['set'](_0x1e0294,x(_0x374772)),_0x4d1ca7['set'](_0x1e0294,this['_diffRootsAttributes']['get'](_0x1e0294));this['_saveMetaData'](_0x4773bf,_0x1eb41f,this['_markers'],_0x4d1ca7);}['_getPreviousFrom'](_0x48d4ab){const _0x3cf356=Array['from'](this['_savedMetaData']['keys']());_0x3cf356['sort']((_0xd00ce6,_0x19dee1)=>_0xd00ce6-_0x19dee1),_0x3cf356['reverse']();for(const _0x40647a of _0x3cf356)if(_0x40647a<_0x48d4ab)return _0x40647a;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x5a9e06,_0x1b3627){const _0x4903e8=Array['from'](_0x1b3627['markers'])['map'](([_0x5e0e03,_0x4630f8])=>[_0x5e0e03,this['_fixRange'](_0x4630f8,_0x5a9e06)]);_0x5a9e06['markers']=new Map(_0x4903e8);}['_transformMarkers'](_0x138d68){for(const _0x28e5f2 of this['_markers']['values']()){const _0x6f8751=_0x28e5f2['getTransformedByOperation'](_0x138d68),_0x4c39cf=_0x10fc72['_createFromRanges'](_0x6f8751);_0x28e5f2['start']=_0x4c39cf['start'],_0x28e5f2['end']=_0x4c39cf['end'];}}['_handleOperation'](_0x26228b,_0x214dd4){if('addRoot'!=_0x26228b['type']&&'detachRoot'!=_0x26228b['type']){if('insert'==_0x26228b['type']){const _0x1c7043=_0x26228b['position']['root']['rootName'];this['_diffRoots']['has'](_0x1c7043)||(this['_diffRoots']['set'](_0x1c7043,N(_0x1c7043,!0x0)),this['_diffRootsAttributes']['set'](_0x1c7043,{}),_0x214dd4&&this['_idsRoots']['set'](_0x1c7043,N(_0x1c7043,!0x0)));}else{if('addRootAttribute'==_0x26228b['type']||'removeRootAttribute'==_0x26228b['type']||'changeRootAttribute'==_0x26228b['type'])return void this['_handleRootAttributeOperation'](_0x26228b);'marker'==_0x26228b['type']&&this['_handleMarkerOperation'](_0x26228b);}if('marker'!==_0x26228b['type']){const _0x35991c=this['_cloneOperation'](_0x26228b,this['_diffRoots']);_0x35991c['_execute'](),this['_transformMarkers'](_0x35991c);}if(_0x214dd4)switch(_0x26228b['type']){case'insert':this['_handleInsertOperation'](_0x26228b);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x26228b);break;case'merge':this['_handleMergeOperation'](_0x26228b);break;case'split':this['_handleSplitOperation'](_0x26228b);}}else this['_handleRootOperation'](_0x26228b,_0x214dd4);}['_cloneOperation'](_0x4305fa,_0x5e08fb){const _0x280295=_0x4305fa['clone']();return _0x280295['_authorId']=_0x4305fa['_authorId'],this['_fixOperation'](_0x280295,_0x5e08fb),_0x280295;}['_getBaseVids'](_0x5b1083){return _0x5b1083['map'](_0x2d3704=>{const _0x50f248=this['_getVidAttributeName'](_0x2d3704);return Number(_0x2d3704['item']['getAttribute'](_0x50f248));});}['_generateTape'](_0x4ebf4b,_0x34fc48){if(_0x4ebf4b['is']('element','$text'))_0x34fc48['push']({'item':_0x4ebf4b,'type':'text'});else{_0x4ebf4b['is']('element')&&_0x34fc48['push']({'item':_0x4ebf4b,'type':'elementStart'});for(const _0x404de4 of _0x4ebf4b['getChildren']())this['_generateTape'](_0x404de4,_0x34fc48);_0x4ebf4b['is']('element')&&_0x34fc48['push']({'item':_0x4ebf4b,'type':'elementEnd'});}return _0x34fc48;}['_getState'](){const _0xc0a8fd=new Map(this['_touched']),_0x1e7135=new Map(_0xc0a8fd),_0x5f0ab3=new Map(),_0x53e654={'insertions':{},'deletions':{}},_0x466de6={'insertions':{},'deletions':{}},_0x3749ee=new Map(),_0x2fe7de=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x2fe7de['delete']('$graveyard');for(const _0x48e929 of _0x2fe7de){const _0x4af4a9=this['_diffRoots']['get'](_0x48e929)||N(_0x48e929,!0x1),_0x56f17d=this['_baseRoots']['get'](_0x48e929)||N(_0x48e929,!0x1);_0x4af4a9['isAttached']()||_0x56f17d['isAttached']()?(_0x53e654['insertions'][_0x48e929]=x(_0x4af4a9),_0x53e654['deletions'][_0x48e929]=x(_0x56f17d),this['_copyMarkers'](_0x53e654['deletions'][_0x48e929],_0x56f17d),this['_copyMarkers'](_0x53e654['insertions'][_0x48e929],_0x4af4a9),_0x466de6['insertions'][_0x48e929]=this['_generateTape'](this['_idsRoots']['get'](_0x48e929),[]),_0x466de6['deletions'][_0x48e929]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x48e929)||N(_0x48e929,!0x1),[])):_0x2fe7de['delete'](_0x48e929);}for(const _0x301630 of _0x2fe7de){const _0x4ba2b1=_0x466de6['insertions'][_0x301630];for(const _0x31def2 of _0x4ba2b1){const _0x208c4c=this['_getVidAttributeName'](_0x31def2),_0x479273=_0x31def2['item']['getAttribute'](_0x208c4c);_0x1e7135['delete'](_0x479273),_0x479273>=this['_startingRevisionId']&&_0x5f0ab3['set'](_0x479273,_0xc0a8fd['get'](_0x479273));}}for(const _0x40ecb5 of _0x2fe7de){const _0x1624ed=_0x466de6['insertions'][_0x40ecb5],_0x1dda15=this['_getBaseVids'](_0x466de6['deletions'][_0x40ecb5]);let _0x501fbd=0x0;for(const _0x3f84c5 of _0x1624ed){const _0x2c33c9=this['_getVidAttributeName'](_0x3f84c5),_0x2377d8=_0x3f84c5['item']['getAttribute'](_0x2c33c9);if(!_0x5f0ab3['has'](_0x2377d8)&&!_0x3749ee['has'](_0x2377d8)){if(_0x1e7135['has'](_0x2377d8))_0x501fbd++;else{if(_0x2377d8!=_0x1dda15[_0x501fbd]){const _0x5bf071=_0xc0a8fd['get'](_0x2377d8)||_0xc0a8fd['get'](_0x1dda15[_0x501fbd]);for(;_0x2377d8!=_0x1dda15[_0x501fbd];)_0x1e7135['has'](_0x1dda15[_0x501fbd])||(_0x3749ee['set'](_0x1dda15[_0x501fbd],_0x5bf071),_0xc0a8fd['set'](_0x1dda15[_0x501fbd],_0x5bf071)),_0x501fbd++;}_0x501fbd++;}}}}for(const _0x3bae32 of _0x2fe7de){const _0x1a314f=_0x466de6['insertions'][_0x3bae32];for(const _0x5fcc2d of _0x1a314f){const _0x470488=this['_getVidAttributeName'](_0x5fcc2d),_0x3e4240=_0x5fcc2d['item']['getAttribute'](_0x470488);if(_0x3749ee['has'](_0x3e4240)){const _0x2dc179=_0x3749ee['get'](_0x3e4240);_0x1e7135['has'](_0x3e4240)||_0x1e7135['set'](_0x3e4240,{..._0x2dc179}),_0x5f0ab3['set'](_0x3e4240,{..._0x2dc179});}}}for(const _0x16654c of _0x1e7135['keys']())_0x16654c>=this['_startingRevisionId']&&_0x1e7135['delete'](_0x16654c);const _0x500ab5=new Map();for(const _0x4bd3af of _0x2fe7de){let _0x4c0279=_0x466de6['insertions'][_0x4bd3af];for(const _0x2510ab of _0x4c0279)if(_0x2510ab['item']['is']('element','tableCell')){const _0x5a740d=this['_getVidAttributeName'](_0x2510ab),_0x2b2a50=_0x2510ab['item']['getAttribute'](_0x5a740d);if(_0x5f0ab3['has'](_0x2b2a50)){const _0x2e3df8=_0x2510ab['item']['parent']['parent']['getAttribute']('vid_start'),_0x57248f=_0x500ab5['get'](_0x2e3df8)||new Set();_0x57248f['add'](_0x5f0ab3['get'](_0x2b2a50)['userId']),_0x500ab5['set'](_0x2e3df8,_0x57248f);}}_0x4c0279=_0x466de6['deletions'][_0x4bd3af];for(const _0x5897b1 of _0x4c0279)if(_0x5897b1['item']['is']('element','tableCell')){const _0x47a0cd=this['_getVidAttributeName'](_0x5897b1),_0x16fb0c=_0x5897b1['item']['getAttribute'](_0x47a0cd);if(_0x1e7135['has'](_0x16fb0c)){const _0xbf0419=_0x5897b1['item']['parent']['parent']['getAttribute']('vid_start'),_0x548b2c=_0x500ab5['get'](_0xbf0419)||new Set();_0x548b2c['add'](_0x1e7135['get'](_0x16fb0c)['userId']),_0x500ab5['set'](_0xbf0419,_0x548b2c);}}for(const _0x3e3a03 of _0x500ab5['keys']())(_0x5f0ab3['has'](_0x3e3a03)||_0x1e7135['has'](_0x3e3a03))&&_0x500ab5['delete'](_0x3e3a03);}for(const _0xa1b853 of _0x2fe7de){const _0x211c66=_0x466de6['insertions'][_0xa1b853];let _0x14bee4=null,_0x1d6447=null;for(const _0x35b2d1 of _0x211c66){const _0x221bb8=this['_getVidAttributeName'](_0x35b2d1),_0x368c82=_0x35b2d1['item']['getAttribute'](_0x221bb8),_0x50bca3=_0x500ab5['get'](_0x368c82);_0x50bca3&&'elementStart'==_0x35b2d1['type']&&(_0x14bee4=Array['from'](_0x50bca3)[0x0],_0x1d6447=_0x35b2d1['item']['getAttribute']('vid_end')),_0x14bee4&&(_0x1e7135['set'](_0x368c82,{'userId':_0x14bee4}),_0x5f0ab3['set'](_0x368c82,{'userId':_0x14bee4})),_0x368c82==_0x1d6447&&(_0x14bee4=null,_0x1d6447=null);}}const _0xf8308f={},_0x5a127c=new Set();for(const _0x11e8fb of _0x2fe7de){const _0x4f499c=_0x53e654['deletions'][_0x11e8fb],_0x34a70a=_0x53e654['insertions'][_0x11e8fb];for(const {userId:_0x2d5f71}of this['_touchedMarkers']['values']())null!==_0x2d5f71&&_0x5a127c['add'](_0x2d5f71);for(const {userId:_0xaa9361}of this['_touchedRoots']['values']())null!==_0xaa9361&&_0x5a127c['add'](_0xaa9361);this['_markChanges'](_0x34a70a,_0x466de6['insertions'][_0x11e8fb],_0x5f0ab3,'insertion',_0x5a127c),this['_markChanges'](_0x4f499c,_0x466de6['deletions'][_0x11e8fb],_0x1e7135,'deletion',_0x5a127c),_0xf8308f[_0x11e8fb]={'insertions':this['_prepareViewToSave'](_0x34a70a),'deletions':this['_prepareViewToSave'](_0x4f499c),'attachChange':this['_touchedRoots']['get'](_0x11e8fb)||null,'attributesBefore':_0x3f9059(this['_baseRootsAttributes']['get'](_0x11e8fb))||{},'attributesAfter':_0x3f9059(this['_diffRootsAttributes']['get'](_0x11e8fb))};}return{'diffData':_0xf8308f,'authorsIds':Array['from'](_0x5a127c)};}['_processRootBeforeSave'](_0xa9b71e){for(const [,_0x54b75c]of _0xa9b71e['markers']){const _0x34d5c5=_0x54b75c['start']['getAncestors']()['filter'](_0x517177=>'tableCell'==_0x517177['name']);for(const _0x51149b of _0x34d5c5)0x1==_0x51149b['childCount']&&_0x51149b['getChild'](0x0)['is']('element','paragraph')&&_0x51149b['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x5b2015){this['_processRootBeforeSave'](_0x5b2015);const _0x52dfd8=this['editor']['data']['toView'](_0x5b2015,{}),_0x50a3c6=Array['from'](_0x52dfd8['getChildren']())['map'](_0x2edc46=>this['_getViewJson'](_0x2edc46));return JSON['stringify'](_0x50a3c6);}['_getViewJson'](_0x245528){if(_0x245528['is']('$text'))return _0x245528['data'];{const _0x3ffca0=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x16e7d8=_0x245528,_0x172439=this['editor']['data']['htmlProcessor']['domConverter'],_0x6ec4b8={'type':_0x3ffca0['_getTypeCharForViewElement'](_0x16e7d8),'name':_0x16e7d8['name'],'attributes':Array['from'](_0x16e7d8['getAttributes']()),'children':Array['from'](_0x16e7d8['getChildren']())['map'](_0x3088ed=>this['_getViewJson'](_0x3088ed))};if(_0x245528['is']('uiElement')&&'$comment'!=_0x245528['name']){const _0x175a10=_0x245528['render'](_0x172439['domDocument'],_0x172439);_0x6ec4b8['children']['push'](_0x175a10['outerHTML']);}else{if(_0x245528['is']('rawElement')){const _0x3e503a=_0x172439['domDocument']['createElement'](_0x16e7d8['name']);_0x245528['render'](_0x3e503a,_0x172439),_0x6ec4b8['children']['push'](_0x3e503a['innerHTML']);}}const _0x3be95f=Array['from'](_0x16e7d8['getCustomProperties']());_0x3be95f['length']>0x0&&(_0x6ec4b8['customProperties']=_0x3be95f);const _0x275605=_0x16e7d8['getFillerOffset']();return null!==_0x275605&&(_0x6ec4b8['fillerOffset']=_0x275605),_0x6ec4b8;}}['_markChanges'](_0x403ab1,_0x45b043,_0x57c3ee,_0x5f72e,_0x3016ec){let _0x503647=null,_0x58a3e0=null,_0x770343=0x0;const _0x353606=this['editor']['model'];for(let _0x246a77=0x0;_0x246a77<_0x45b043['length'];_0x246a77++){const _0x308669=this['_getVidAttributeName'](_0x45b043[_0x246a77]),_0x12339b=_0x45b043[_0x246a77]['item']['getAttribute'](_0x308669),_0x38c8ee=_0x57c3ee['get'](_0x12339b),_0x57a662=_0x246a77==_0x45b043['length']-0x1;(!_0x503647&&_0x38c8ee&&(_0x503647=_0x38c8ee,_0x58a3e0=_0x45b043[_0x246a77]),_0x503647&&(!_0x38c8ee||_0x38c8ee['userId']!=_0x503647['userId']))&&(_0x378c5e(_0x38c8ee,P(_0x58a3e0,_0x403ab1,_0x353606),P(_0x45b043[_0x246a77],_0x403ab1,_0x353606)),_0x503647=_0x38c8ee||null,_0x58a3e0=_0x38c8ee?_0x45b043[_0x246a77]:null),_0x503647&&_0x57a662&&_0x378c5e(_0x38c8ee,P(_0x58a3e0,_0x403ab1,_0x353606),V(_0x45b043[_0x246a77],_0x403ab1,_0x353606));}function _0x378c5e(_0x2fc0cd,_0x2610c5,_0x404eb7){const _0x5f1081=_0x503647['userId'],_0x480960='revision:'+_0x5f72e+':'+_0x5f1081+':'+_0x770343++,_0x4e6b38=_0x353606['createRange'](_0x2610c5,_0x404eb7);_0x403ab1['markers']['set'](_0x480960,_0x4e6b38),null!==_0x5f1081&&_0x3016ec['add'](_0x5f1081);}}['_getVidAttributeName'](_0x4315ee){switch(_0x4315ee['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x44655c,_0x32bd00){_0x44655c['baseVersion']=null;for(const _0x42895e in _0x44655c){const _0x3c140c=_0x44655c[_0x42895e];if(_0x3c140c instanceof _0x11d7f2){const _0x1914e5=_0x32bd00['get'](_0x3c140c['root']['rootName']);_0x44655c[_0x42895e]=this['_fixPosition'](_0x3c140c,_0x1914e5);}if(_0x3c140c instanceof _0x10fc72){const _0x1541a6=_0x32bd00['get'](_0x3c140c['root']['rootName']);_0x44655c[_0x42895e]=this['_fixRange'](_0x3c140c,_0x1541a6);}'root'===_0x42895e&&(_0x44655c['root']=_0x32bd00['get'](_0x44655c['root']['rootName']));}}['_fixRange'](_0x228f34,_0x56d8db){return this['editor']['model']['createRange'](this['_fixPosition'](_0x228f34['start'],_0x56d8db),this['_fixPosition'](_0x228f34['end'],_0x56d8db));}['_fixPosition'](_0x48b37f,_0x136b1f){return this['editor']['model']['createPositionFromPath'](_0x136b1f,_0x48b37f['path'],_0x48b37f['stickiness']);}['_handleInsertOperation'](_0x4846eb){const _0x2f27bd=this['_idsRoots']['get'](_0x4846eb['position']['root']['rootName']),_0x29b741=this['_fixPosition'](_0x4846eb['position'],_0x2f27bd),_0x574244=null===_0x4846eb['_authorId']?null:_0x4846eb['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4b4e2f=_0x29b741['parent'],_0x19e224=this['_revisionId'],_0x45ccee=[];for(const _0x32cc53 of _0x4846eb['nodes'])if(_0x32cc53['is']('element'))_0x45ccee['push'](this['_makeIdsRoot'](_0x32cc53));else{for(let _0x276d11=0x0;_0x276d11<_0x32cc53['offsetSize'];_0x276d11++)_0x45ccee['push'](new _0x10b403('$text',{'vid':this['_revisionId']++}));}const _0x381a26=this['_revisionId'];for(let _0x516903=_0x19e224;_0x516903<_0x381a26;_0x516903++)this['_touched']['set'](_0x516903,{'userId':_0x574244});_0x4b4e2f['_insertChild'](_0x29b741['offset'],_0x45ccee);}['_handleMoveOperation'](_0x32ae0d){(_0x32ae0d=this['_cloneOperation'](_0x32ae0d,this['_idsRoots']))['_execute']();const _0x474da9=null===_0x32ae0d['_authorId']?null:_0x32ae0d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x387a2e=_0x32ae0d['getMovedRangeStart'](),_0x90af3=_0x387a2e['parent'],_0x15abc5=_0x387a2e['offset'];!function _0x3d58fe(_0x18b4f2,_0x464439,_0x616ae9,_0x40d1a2){for(let _0x5571d4=_0x616ae9;_0x5571d4<_0x40d1a2;_0x5571d4++){const _0x29353f=_0x464439['getChild'](_0x5571d4);_0x29353f['is']('element','$text')?_0x18b4f2['set'](_0x29353f['getAttribute']('vid'),{'userId':_0x474da9}):(_0x18b4f2['set'](_0x29353f['getAttribute']('vid_start'),{'userId':_0x474da9}),_0x3d58fe(_0x18b4f2,_0x29353f,0x0,_0x29353f['childCount']),_0x18b4f2['set'](_0x29353f['getAttribute']('vid_end'),{'userId':_0x474da9}));}}(this['_touched'],_0x90af3,_0x15abc5,_0x15abc5+_0x32ae0d['howMany']);}['_handleMergeOperation'](_0x401938){const _0x2c27bc=null===(_0x401938=this['_cloneOperation'](_0x401938,this['_idsRoots']))['_authorId']?null:_0x401938['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x167184=_0x401938['targetPosition']['parent'],_0x6dd499=_0x401938['sourcePosition']['parent'],_0x51d8e6=_0x167184['getAttribute']('vid_end'),_0x3a15b5=_0x6dd499['getAttribute']('vid_start');_0x167184['_setAttribute']('vid_end',_0x6dd499['getAttribute']('vid_end')),_0x6dd499['_setAttribute']('vid_end',_0x51d8e6),this['_touched']['set'](_0x3a15b5,{'userId':_0x2c27bc}),this['_touched']['set'](_0x51d8e6,{'userId':_0x2c27bc}),_0x401938['_execute']();}['_handleSplitOperation'](_0x5f2b03){const _0x1a90c9=null===(_0x5f2b03=this['_cloneOperation'](_0x5f2b03,this['_idsRoots']))['_authorId']?null:_0x5f2b03['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1f259b=_0x5f2b03['graveyardPosition'],_0xe303df=_0x5f2b03['splitPosition']['parent'];_0x5f2b03['_execute']();const _0x283145=_0xe303df['getAttribute']('vid_end'),_0x2965c1=_0x5f2b03['insertionPosition']['nodeAfter'];if(_0x1f259b){const _0x45c319=_0x2965c1['getAttribute']('vid_end'),_0x5dfcf9=_0xe303df['getAttribute']('vid_end');_0xe303df['_setAttribute']('vid_end',_0x45c319),_0x2965c1['_setAttribute']('vid_end',_0x5dfcf9),this['_touched']['set'](_0xe303df['getAttribute']('vid_end'),{'userId':_0x1a90c9}),this['_touched']['set'](_0x2965c1['getAttribute']('vid_start'),{'userId':_0x1a90c9});}else{const _0x4e376d=this['_revisionId']++,_0x1f2f19=this['_revisionId']++;_0xe303df['_setAttribute']('vid_end',_0x4e376d),_0x2965c1['_setAttribute']('vid_start',_0x1f2f19),_0x2965c1['_setAttribute']('vid_end',_0x283145),this['_touched']['set'](_0x4e376d,{'userId':_0x1a90c9}),this['_touched']['set'](_0x1f2f19,{'userId':_0x1a90c9});}}['_handleMarkerOperation'](_0x2a4516){if(!_0x2a4516['affectsData'])return;const _0x371846=(_0x2a4516=this['_cloneOperation'](_0x2a4516,this['_diffRoots']))['oldRange']?_0x2a4516['oldRange']['root']:null,_0x1e299e=_0x2a4516['newRange']?_0x2a4516['newRange']['root']:null;_0x371846&&this['_markers']['delete'](_0x2a4516['name']),_0x1e299e&&this['_markers']['set'](_0x2a4516['name'],_0x2a4516['newRange']['clone']());const _0x54ff87=null===_0x2a4516['_authorId']?null:_0x2a4516['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x39a4c0=_0x2a4516['name'];if(!this['_touchedMarkers']['has'](_0x39a4c0))return void this['_touchedMarkers']['set'](_0x39a4c0,{'range':_0x2a4516['oldRange'],'userId':_0x54ff87});const _0x2b710e=this['_touchedMarkers']['get'](_0x39a4c0),_0x350a3d=_0x2b710e['range'],_0x194d19=_0x2a4516['newRange'];null==_0x350a3d&&null==_0x194d19||_0x350a3d&&_0x194d19&&_0x350a3d['isEqual'](_0x194d19)?this['_touchedMarkers']['delete'](_0x2a4516['name']):_0x2b710e['userId']=_0x54ff87;}['_handleRootOperation'](_0x4cb46e,_0x51a08a){this['_diffRoots']['has'](_0x4cb46e['rootName'])?this['_diffRoots']['get'](_0x4cb46e['rootName'])['_isAttached']=_0x4cb46e['isAdd']:(this['_diffRoots']['set'](_0x4cb46e['rootName'],N(_0x4cb46e['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x4cb46e['rootName'],{}),_0x51a08a&&this['_idsRoots']['set'](_0x4cb46e['rootName'],N(_0x4cb46e['rootName'],!0x0)));const _0x59b7eb=null===_0x4cb46e['_authorId']?null:_0x4cb46e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x40e2f0=this['_touchedRoots']['get'](_0x4cb46e['rootName']);_0x40e2f0&&_0x40e2f0['userId']===_0x59b7eb?this['_touchedRoots']['delete'](_0x4cb46e['rootName']):this['_touchedRoots']['set'](_0x4cb46e['rootName'],{'userId':_0x59b7eb,'isAttached':_0x4cb46e['isAdd']});}['_handleRootAttributeOperation'](_0x511cd3){const _0x4f47a6=this['_diffRootsAttributes']['get'](_0x511cd3['root']['rootName']);null===_0x511cd3['newValue']?delete _0x4f47a6[_0x511cd3['key']]:_0x4f47a6[_0x511cd3['key']]=_0x511cd3['newValue'];}}function x(_0x2a6bf8){const _0xb7724d=N(_0x2a6bf8['rootName'],_0x2a6bf8['isAttached']());for(const _0x54f97f of _0x2a6bf8['getChildren']()){const _0x178c8b=_0x54f97f['_clone'](!0x0);_0xb7724d['_appendChild'](_0x178c8b);}return _0xb7724d;}function N(_0x1927b1,_0x4630dc=!0x0){const _0x129f23=new _0x3b75f6();return _0x129f23['rootName']=_0x1927b1,_0x129f23['_isAttached']=_0x4630dc,_0x129f23['isAttached']=()=>_0x129f23['_isAttached'],_0x129f23;}function P(_0x34b82b,_0xd631c9,_0x58465a){const _0x3dce85='elementEnd'==_0x34b82b['type']?_0x58465a['createPositionAt'](_0x34b82b['item'],'end'):_0x58465a['createPositionBefore'](_0x34b82b['item']);return _0x58465a['createPositionFromPath'](_0xd631c9,_0x3dce85['path'],_0x3dce85['stickiness']);}function V(_0x43446a,_0x45dec4,_0x37d9ac){const _0x365390='elementStart'==_0x43446a['type']?_0x37d9ac['createPositionAt'](_0x43446a['item'],0x0):_0x37d9ac['createPositionAfter'](_0x43446a['item']);return _0x37d9ac['createPositionFromPath'](_0x45dec4,_0x365390['path'],_0x365390['stickiness']);}class he extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x31d8fc(_0x3ee578){['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x3e9141,_0x2013e9){super(_0x3e9141),this['focusTracker']=new _0x396f50(),this['keystrokes']=new _0x2e51cc(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x2013e9),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'](),_0x4b40dc({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x1e3ea2=_0x771803=>_0x771803['stopPropagation']();this['keystrokes']['set']('arrowright',_0x1e3ea2),this['keystrokes']['set']('arrowleft',_0x1e3ea2),this['keystrokes']['set']('arrowup',_0x1e3ea2),this['keystrokes']['set']('arrowdown',_0x1e3ea2);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x229256){this['revisionNameInputView']['fieldView']['element']['value']=_0x229256['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x4cb004){const _0x135aa4=new et(this['locale'],ti),_0x5d3c75=_0x135aa4['fieldView'];_0x5d3c75['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x35ec93=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x4cb004&&(_0x35ec93+='\x20('+m(this['locale'],'optional')+')'),(_0x135aa4['label']=_0x35ec93,_0x5d3c75['on']('input',()=>{this['revisionNameInputValue']=_0x5d3c75['element']['value']['trim']();}),_0x135aa4);}}class l extends _0x4b71e4{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h];}['_saveRevisionFormView'];['init'](){const _0x25643c=this['editor'],_0x10b3d8=_0x25643c['plugins']['get']('RevisionTracker');_0x25643c['ui']['componentFactory']['add']('revisionHistory',_0x388072=>{const _0x21360f=_0x5925fb(_0x388072),_0x2a7ee3=_0x21360f['panelView']['children'],_0x551f0c=new _0x3a0269(_0x388072),_0xd8ddeb=new _0x574af4(_0x388072),_0xc8940d=this['_createSaveRevisionButton'](_0x235a06),_0xa200f1=new _0x574af4(_0x388072),_0x573d72=this['_createOpenRevisionButton'](_0x235a06);return _0x21360f['bind']('isEnabled')['to'](_0x10b3d8,'isReady',_0x10b3d8,'isEnabled',_0x25643c,'isReadOnly',(_0x110517,_0x225ce5,_0xf91f14)=>_0x110517&&_0x225ce5&&!_0xf91f14),_0x21360f['buttonView']['set']({'icon':_0x31711b,'label':m(_0x388072,'Revision\x20history'),'tooltip':!0x0}),_0xc8940d['set']({'withText':!0x0,'role':'menuitem'}),_0x573d72['set']({'withText':!0x0,'role':'menuitem'}),this['listenTo'](_0x573d72,'execute',()=>{_0x21360f['isOpen']=!0x1,_0x25643c['editing']['view']['focus']();},{'priority':'low'}),_0xd8ddeb['children']['add'](_0xc8940d),_0xa200f1['children']['add'](_0x573d72),_0x551f0c['role']='menu',_0x551f0c['items']['addMany']([_0xd8ddeb,_0xa200f1]),_0x2a7ee3['add'](_0x551f0c),_0x21360f;}),_0x25643c['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x2a04df=this['editor'],_0xa2d8ea=_0x2a04df['locale'],_0xe0a5d6=_0x2a04df['plugins']['get']('RevisionTracker'),_0x1c6997=new _0x59831c(_0xa2d8ea),_0x3dfafb=new _0x496b67(_0xa2d8ea);_0x1c6997['bind']('isEnabled')['to'](_0xe0a5d6,'isReady',_0xe0a5d6,'isEnabled',_0x2a04df,'isReadOnly',(_0x5f103d,_0x40d801,_0xcd6e6d)=>_0x5f103d&&_0x40d801&&!_0xcd6e6d),_0x1c6997['buttonView']['set']({'icon':_0x31711b,'label':m(_0xa2d8ea,'Revision\x20history')});const _0x413dff=new _0x1465f4(_0xa2d8ea,_0x1c6997),_0x5eef6c=this['_createSaveRevisionButton'](_0x59c301);_0x5eef6c['delegate']('execute')['to'](_0x1c6997),_0x413dff['children']['add'](_0x5eef6c),_0x3dfafb['items']['add'](_0x413dff);const _0x546c74=new _0x1465f4(_0xa2d8ea,_0x1c6997),_0x33a695=this['_createOpenRevisionButton'](_0x59c301);return _0x33a695['delegate']('execute')['to'](_0x1c6997),_0x546c74['children']['add'](_0x33a695),_0x3dfafb['items']['add'](_0x546c74),_0x1c6997['panelView']['children']['add'](_0x3dfafb),_0x1c6997;}['_createSaveRevisionButton'](_0x4cf793){const _0x5bb317=this['editor'],_0xf5da6a=_0x5bb317['plugins']['get']('RevisionTracker'),_0x5e8be5=new _0x4cf793(_0x5bb317['locale']);return _0x5e8be5['set']({'label':m(_0x5bb317['locale'],'Save\x20current\x20revision')}),_0x5e8be5['bind']('isEnabled')['to'](_0xf5da6a,'isReady',_0xf5da6a,'isEnabled',_0x5bb317,'isReadOnly',(_0x274cf1,_0x4647a0,_0x525369)=>_0x274cf1&&_0x4647a0&&!_0x525369),this['listenTo'](_0x5e8be5,'execute',()=>{this['_showDialog']();}),_0x5e8be5;}['_createOpenRevisionButton'](_0x3705f8){const _0x22e25c=this['editor'],_0x272962=_0x22e25c['plugins']['get']('RevisionTracker'),_0x51b9a8=new _0x3705f8(_0x22e25c['locale']);return _0x51b9a8['set']({'label':m(_0x22e25c['locale'],'Open\x20revision\x20history')}),_0x51b9a8['bind']('isEnabled')['to'](_0x272962,'isReady',_0x22e25c,'isReadOnly',(_0x2c57dc,_0x37db65)=>_0x2c57dc&&!_0x37db65),this['listenTo'](_0x51b9a8,'execute',()=>{_0x22e25c['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x51b9a8;}['_showDialog'](){const _0x16012b=this['editor'],_0x41516d=_0x16012b['locale'],_0xdfeaac=_0x16012b['plugins']['get']('Dialog'),_0x2d2475=_0x16012b['plugins']['get']('RevisionTracker');function _0x1e0d57(_0x421c6a){_0x16012b['config']['get']('revisionHistory.requireRevisionName')&&''===_0x421c6a['revisionName']?_0x421c6a['revisionNameInputView']['errorText']=m(_0x41516d,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x16012b['plugins']['get'](h)['saveRevision']({'name':_0x421c6a['revisionName']}),_0xdfeaac['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x1e0d57(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0xdfeaac['show']({'id':'revisionSave','title':m(_0x41516d,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x16012b['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0xdfeaac['hide']()},{'label':m(_0x16012b['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x44c2f1){_0x44c2f1['bind']('isEnabled')['to'](_0x2d2475,'isReady',_0x2d2475,'isEnabled',_0x16012b,'isReadOnly',(_0x314033,_0x45bb32,_0x7fd947)=>_0x314033&&_0x45bb32&&!_0x7fd947);},'onExecute':()=>_0x1e0d57(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x5bbf42=this['editor'],_0x52b885=_0x5bbf42['locale'];this['_saveRevisionFormView']=new he(_0x52b885,_0x5bbf42['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class z extends _0x3ee578{['changeId'];['_model'];constructor(_0x16e3b0,_0x4f4a3b){super(_0x16e3b0),this['_model']=_0x4f4a3b,this['changeId']=_0x4f4a3b['id'];const _0x4755aa=this['bindTemplate'],_0x400d5b=m(_0x16e3b0,_0x4f4a3b['data']['isSuggestion']?'Suggested\x20by':'add'==_0x4f4a3b['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x4f4a3b['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x4755aa['to']('type',_0x1464d3=>'ck-revision-change__'+_0x1464d3)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x400d5b}]},{'text':'\x20'+_0x4f4a3b['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class G extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x55ca03(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x460cde){super(),this['id']=_0x460cde['id']||_0x118ae2(),this['author']=_0x460cde['author'],this['type']=_0x460cde['type'],this['data']=_0x460cde['data']||{},this['rootName']=_0x460cde['rootName'],this['set']('createdAt',_0x460cde['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(_0xdec2ee,_0x23b9ed){this['newRevisionId']=_0xdec2ee,this['oldRevisionId']=_0x23b9ed,this['changes']=new _0x4658e5();}['_setChanges'](_0xdc76d6){for(const _0x356595 of _0xdc76d6)this['changes']['add'](_0x356595);}}class u extends _0x4b71e4{['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[_0x3ecf8d,_0x3c59fb,S,$];}constructor(_0x4e84f7){super(_0x4e84f7),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',(_0x38eeee,_0x4ba487,_0x4555bb)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x3c1f4b=>{for(const _0x27c0df of this['editor']['editing']['view']['document']['roots'])_0x4555bb?_0x3c1f4b['removeClass']('ck-editor__editable__overlay',_0x27c0df):_0x3c1f4b['addClass']('ck-editor__editable__overlay',_0x27c0df);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x3627cf=>null!==_0x3627cf),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x3be9bc,_0x21b139,_0x459a9a)=>_0x3be9bc&&_0x459a9a?_0x21b139['changes']['getIndex'](_0x459a9a):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x5ad3e5,_0x47e07c)=>_0x5ad3e5?_0x47e07c['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x3c59fb);}['init'](){const _0x4ed7a4=this['editor'],_0x2fecd1=new rt(_0x4ed7a4,{'direction':'backward'}),_0x48c036=new rt(_0x4ed7a4,{'direction':'forward'});(_0x4ed7a4['commands']['add']('showPreviousChange',_0x2fecd1),_0x4ed7a4['commands']['add']('showNextChange',_0x48c036),_0x4ed7a4['commands']['add']('restoreRevision',new nt(_0x4ed7a4)),this['on']('change:numberOfChanges',()=>{_0x2fecd1['refresh'](),_0x48c036['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x4ed7a4['enableReadOnlyMode']('revision-viewer'),_0x4ed7a4['plugins']['has']('WidgetToolbarRepository'))&&_0x4ed7a4['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x3b4f1f){return await this['_utils']['loadRevisionData'](_0x3b4f1f,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x3b4f1f);}async['getRevisionRootsAttributes'](_0x29c856){return await this['_utils']['loadRevisionData'](_0x29c856,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x29c856);}async['compare'](_0x46dc6a,_0x50f813,_0x4eae03=!0x1){if(!this['isEnabled'])return;const _0x5f3408=this['diff'],_0x2861f8=this['repository'],_0x57ef45='string'==typeof _0x46dc6a?_0x2861f8['getRevision'](_0x46dc6a):_0x46dc6a,_0xd49ae5='string'==typeof _0x50f813?_0x2861f8['getRevision'](_0x50f813):_0x50f813,_0x40b791=_0x57ef45['id'],_0x37cead=_0xd49ae5?_0xd49ae5['id']:null;if(!_0x4eae03&&this['diff']&&this['diff']['newRevisionId']===_0x40b791&&this['diff']['oldRevisionId']===_0x37cead)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x40b791,_0x37cead);const _0x5b1d68=this['_getRevisionsRange'](_0x57ef45,_0xd49ae5,!0x0)['map'](_0x2dc8d9=>this['_utils']['loadRevisionData'](_0x2dc8d9,this['adapter']));return _0x5b1d68['push'](new Promise(_0x28dfc1=>{setTimeout(_0x28dfc1,0x14);})),Promise['all'](_0x5b1d68)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x487ee9=this['_getDiff'](_0x40b791,_0x37cead);for(const _0x1e63c5 of _0x487ee9['changes'])this['_changeIdToChange']['set'](_0x1e63c5['id'],_0x1e63c5);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x42e596=>{for(const _0x531559 of this['editor']['model']['document']['getRootNames']())_0x42e596['detachRoot'](_0x531559);for(const _0x574902 of Object['keys'](_0x487ee9['model'])){const _0xdd84a2=_0x42e596['addRoot'](_0x574902);for(const _0x407242 of Object['keys'](_0x487ee9['attributes'][_0x574902]))_0x42e596['setAttribute'](_0x407242,_0x487ee9['attributes'][_0x574902][_0x407242],_0xdd84a2);_0x42e596['insert'](_0x487ee9['model'][_0x574902],_0xdd84a2,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x487ee9['changes'])),this['isReady']=!0x0;})['catch'](_0x4538a0=>{console['error'](_0x4538a0),this['_cleanUp'](),_0x5f3408&&(this['diff']=_0x5f3408),this['isReady']=!0x0;});}['addRevisionData'](_0xb05111,_0x18ef03){const _0x4a6400=this['repository']['createRevision'](_0xb05111);return _0x4a6400['on']('_update',(_0x1ac876,_0x7de02d,_0x31aa47)=>_0x18ef03(_0x7de02d,_0x31aa47,_0x4a6400)),this['repository']['addRevision'](_0x4a6400),_0x4a6400;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x3218fb=>{for(const _0x2f0e43 of this['editor']['model']['document']['getRootNames']())_0x3218fb['detachRoot'](_0x2f0e43);});}['_sortAndFilterDiffChanges'](_0x350720){const _0x1219f2=[],_0x59d26e=new Map();for(const _0x512ed5 of this['editor']['model']['document']['getRootNames']()){const _0x4370ff=this['editor']['editing']['view']['getDomRoot'](_0x512ed5);if(!_0x4370ff)continue;const _0x2c9f56=_0x4370ff['getClientRects']()['item'](0x0);_0x2c9f56&&(_0x1219f2['push'](_0x512ed5),_0x59d26e['set'](_0x512ed5,_0x2c9f56));}return _0x1219f2['sort']((_0x242a9e,_0x59f94d)=>{const _0x269c79=_0x59d26e['get'](_0x242a9e),_0x1fc895=_0x59d26e['get'](_0x59f94d);return _0x269c79['y']-_0x1fc895['y']||_0x269c79['x']-_0x1fc895['x'];}),(_0x350720=_0x350720['filter'](_0x30ee81=>_0x1219f2['includes'](_0x30ee81['rootName'])))['sort']((_0x4d9555,_0x3ecbbb)=>_0x1219f2['indexOf'](_0x4d9555['rootName'])-_0x1219f2['indexOf'](_0x3ecbbb['rootName'])),_0x350720;}['_makeTape'](_0x5f35a4){const _0x965b5c=Array['from'](_0x5f35a4['markers'])['filter'](([_0x5e26ed,_0x56b7ad])=>_0x5e26ed['startsWith']('revision:')&&!_0x56b7ad['isCollapsed']),_0x547065=Array['from'](this['editor']['model']['createRangeIn'](_0x5f35a4)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x965b5c['length'])for(const _0x16afa3 of _0x547065){const [_0x295aea,_0x4c6179]=_0x965b5c[0x0],[,_0x5d2b35,_0x357d8a]=_0x295aea['split'](':');if(_0x4c6179['end']['isEqual'](_0x16afa3['nextPosition'])&&_0x965b5c['shift'](),(_0x16afa3['previousPosition']['isEqual'](_0x4c6179['start'])||_0x16afa3['previousPosition']['isAfter'](_0x4c6179['start']))&&('insertion'==_0x5d2b35?_0x16afa3['isAdded']={'userId':_0x357d8a}:'deletion'==_0x5d2b35&&(_0x16afa3['isRemoved']={'userId':_0x357d8a})),0x0==_0x965b5c['length'])break;}return _0x547065;}['_refreshStartEndIndex'](_0x4a6137){const _0xbcbe29=new Map();for(let _0x3ee31b=0x0;_0x3ee31b<_0x4a6137['length'];_0x3ee31b++)'text'===_0x4a6137[_0x3ee31b]['type']?(_0x4a6137[_0x3ee31b]['item']['startIndex']=_0x3ee31b,_0x4a6137[_0x3ee31b]['item']['endIndex']=_0x3ee31b):('elementStart'===_0x4a6137[_0x3ee31b]['type']?_0x4a6137[_0x3ee31b]['item']['startIndex']=_0x3ee31b:'elementEnd'===_0x4a6137[_0x3ee31b]['type']&&(_0x4a6137[_0x3ee31b]['item']['endIndex']=_0x3ee31b),_0xbcbe29['set'](_0x4a6137[_0x3ee31b]['id'],_0x3ee31b));for(const _0x88e550 of _0xbcbe29['values']())'elementStart'===_0x4a6137[_0x88e550]['type']?_0x4a6137[_0x88e550]['item']['endIndex']=_0xbcbe29['get'](_0x4a6137[_0x88e550]['pairId']):'elementEnd'===_0x4a6137[_0x88e550]['type']&&(_0x4a6137[_0x88e550]['item']['startIndex']=_0xbcbe29['get'](_0x4a6137[_0x88e550]['pairId']));}['_processTape'](_0x44415f){for(let _0xfc2b99=0x0;_0xfc2b99<_0x44415f['length'];_0xfc2b99++){if('elementStart'===_0x44415f[_0xfc2b99]['type'])_0x44415f[_0xfc2b99]['item']['startIndex']=_0xfc2b99;else{if('elementEnd'===_0x44415f[_0xfc2b99]['type']){_0x44415f[_0xfc2b99]['item']['endIndex']=_0xfc2b99;const _0x442f90=_0x44415f[_0xfc2b99]['item']['startIndex'];_0x44415f[_0x442f90]['pairId']=_0x44415f[_0xfc2b99]['id'],_0x44415f[_0xfc2b99]['pairId']=_0x44415f[_0x442f90]['id'];}else _0x44415f[_0xfc2b99]['item']['startIndex']=_0xfc2b99,_0x44415f[_0xfc2b99]['item']['endIndex']=_0xfc2b99,_0x44415f[_0xfc2b99]['pairId']=null;}_0x44415f[_0xfc2b99]['markersStart']||(_0x44415f[_0xfc2b99]['markersStart']=[],_0x44415f[_0xfc2b99]['markersEnd']=[]);}}['_markInsertions'](_0x205e27,_0x2e3fc5){const _0xc80768=_0x205e27['filter'](_0x1beed0=>!_0x1beed0['isAdded']);for(let _0x54b594=0x0;_0x54b594<_0x2e3fc5['length'];_0x54b594++)_0x2e3fc5[_0x54b594]['isAdded']&&(_0xc80768[_0x54b594]['isAdded']=_0x2e3fc5[_0x54b594]['isAdded']);}['_getDiff'](_0x163b6b,_0x30a07f=null){const _0x9fe3f7=this['repository']['getRevision'](_0x163b6b),_0x23e144=_0x30a07f?this['repository']['getRevision'](_0x30a07f):null,_0x20569a=this['_getRevisionsRange'](_0x9fe3f7,_0x23e144),_0x3e744c=_0x20569a[_0x20569a['length']-0x1],_0x196c51=new Map(),_0x52e2b4={'model':{},'attributes':{},'changes':[]},_0x1c05ef=new Set(),_0x5e5ba1=new Map();for(let _0x27e957=_0x20569a['length']-0x1;_0x27e957>=0x0;_0x27e957--){const _0x31f82a=_0x20569a[_0x27e957];for(const _0x5f002d of Object['keys'](_0x31f82a['diffData']))if(_0x31f82a['diffData'][_0x5f002d]['attachChange']){const _0x306fc4=_0x31f82a['diffData'][_0x5f002d]['attachChange'];_0x306fc4['isAttached']?(_0x1c05ef['add'](_0x5f002d),_0x5e5ba1['has'](_0x5f002d)&&_0x5e5ba1['get'](_0x5f002d)['userId']==_0x306fc4['userId']?_0x5e5ba1['delete'](_0x5f002d):_0x5e5ba1['set'](_0x5f002d,_0x306fc4)):_0x5e5ba1['has'](_0x5f002d)?(_0x1c05ef['delete'](_0x5f002d),_0x5e5ba1['delete'](_0x5f002d)):(_0x1c05ef['add'](_0x5f002d),_0x5e5ba1['set'](_0x5f002d,_0x306fc4));}else _0x1c05ef['add'](_0x5f002d);}for(const _0x180ae1 of _0x1c05ef){const _0x581c91=_0x5e5ba1['has'](_0x180ae1)&&!_0x5e5ba1['get'](_0x180ae1)['isAttached'];let _0x5b1a93=_0x581c91?_0x20569a['length']-0x1:0x0;const _0x1434a0=_0x581c91?-0x1:0x1;for(;_0x20569a[_0x5b1a93];){const _0x19213c=_0x20569a[_0x5b1a93];if(_0x19213c['diffData'][_0x180ae1]){const _0x2cfa5e=_0x581c91?_0x19213c['diffData'][_0x180ae1]['attributesBefore']:_0x19213c['diffData'][_0x180ae1]['attributesAfter'];_0x52e2b4['attributes'][_0x180ae1]=_0x2cfa5e?_0x3f9059(_0x2cfa5e):{};break;}_0x5b1a93+=_0x1434a0;}}for(const _0x407845 of _0x20569a){_0x407845['model']={};for(const _0x485b58 of _0x407845['authors'])_0x196c51['set'](_0x485b58['id'],_0x485b58);for(const _0x1ce350 of _0x1c05ef){const _0x2f1aac=_0x407845['diffData'][_0x1ce350]?_0x407845['diffData'][_0x1ce350]['insertions']:'[]',_0x3df191=_0x407845['diffData'][_0x1ce350]?_0x407845['diffData'][_0x1ce350]['deletions']:'[]';_0x407845['model'][_0x1ce350]={'insertions':this['_utils']['_makeModelFromViewString'](_0x2f1aac),'deletions':this['_utils']['_makeModelFromViewString'](_0x3df191)};}}for(const _0x44ea0e of _0x1c05ef){let _0x246919=null,_0x3f9f89=0x0;const _0x38e106=new Map(Array['from'](_0x9fe3f7['model'][_0x44ea0e]['insertions']['markers'])['filter'](([_0x3a2c2c])=>!_0x3a2c2c['startsWith']('revision:')));let _0x2c9b87=0x0;for(const _0x5863d4 of _0x20569a){const _0x49b218=this['_makeTape'](_0x5863d4['model'][_0x44ea0e]['insertions']);_0x5863d4==_0x9fe3f7?(_0x246919=_0x49b218,_0x3f9f89=_0x246919['length'],_0x246919['forEach'](_0x2ba3cf=>{_0x2ba3cf['id']=_0x2c9b87++;}),this['_processTape'](_0x246919)):this['_markInsertions'](_0x246919,_0x49b218);const _0x10ac76=_0x246919['filter'](_0x9ca0d6=>!_0x9ca0d6['isAdded'])['map'](_0x4bc1a6=>_0x4bc1a6['id']);let _0x295fb1=0x0;const _0x3b4fa3=this['_makeTape'](_0x5863d4['model'][_0x44ea0e]['deletions']);_0x3b4fa3['forEach'](_0x13a43c=>{_0x13a43c['isRemoved']?_0x13a43c['id']=_0x3f9f89++:_0x13a43c['id']=_0x10ac76[_0x295fb1++];}),this['_processTape'](_0x3b4fa3),this['_setDistance'](_0x246919,'isAdded'),this['_setDistance'](_0x3b4fa3,'isRemoved'),_0x5863d4==_0x9fe3f7&&this['_markMarkers'](_0x246919,_0x38e106),_0x246919=this['_joinTapes'](_0x246919,_0x3b4fa3),this['_refreshStartEndIndex'](_0x246919),this['_setDistance'](_0x246919,'isRemoved');}_0x246919=_0x246919['filter'](_0x3e9184=>!(_0x3e9184['isAdded']&&_0x3e9184['isRemoved']));const _0x4e1ce2=new Map(_0x3e744c['model'][_0x44ea0e]['deletions']['markers']),_0x3cd2b2=new Set(_0x38e106['keys']());for(const _0x2d4554 of _0x4e1ce2['keys']())_0x3cd2b2['delete'](_0x2d4554);this['_markSuggestions'](_0x246919,_0x3cd2b2),this['_fixObsoleteTags'](_0x246919),_0x246919=this['_removeMissingPairs'](_0x246919),_0x246919=this['_markMismatchedRemovedTags'](_0x246919),_0x246919=this['_removeUnsupportedChanges'](_0x246919);const {root:_0x53232a,changes:_0x12604c}=this['_makeModelFromTape'](_0x246919,_0x196c51,_0x44ea0e);_0x52e2b4['model'][_0x44ea0e]=_0x53232a;const _0xce7f50=_0x5e5ba1['get'](_0x44ea0e);if(_0xce7f50){const _0x10a20f=_0x196c51['get'](_0xce7f50['userId']),_0x30ccd2=new G({'author':_0x10a20f,'type':_0xce7f50['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x44ea0e});_0x12604c['unshift'](_0x30ccd2),_0x52e2b4['attributes'][_0x44ea0e]['revisionHistoryAttachChange']=_0x30ccd2['id'];}_0x52e2b4['changes']=_0x52e2b4['changes']['concat'](_0x12604c);}return _0x52e2b4;}['_markMarkers'](_0x408b1b,_0x296686){for(let _0x2a4394=0x0;_0x2a4394<_0x408b1b['length'];_0x2a4394++)for(const [_0x124bd5,_0x4733ca]of _0x296686)!_0x4733ca['isCollapsed']&&_0x4733ca['start']['isEqual'](_0x408b1b[_0x2a4394]['previousPosition'])&&_0x408b1b[_0x2a4394]['markersStart']['push'](_0x124bd5),_0x4733ca['end']['isEqual'](_0x408b1b[_0x2a4394]['nextPosition'])&&_0x408b1b[_0x2a4394]['markersEnd']['push'](_0x124bd5);}['_joinTapes'](_0x17cc5f,_0x1f7e88){let _0x354bf1=[],_0x1f5f6c=0x0,_0x3b9568=0x0;for(;_0x1f5f6c<_0x17cc5f['length']||_0x3b9568<_0x1f7e88['length'];){const _0xeb4c4d=_0x17cc5f[_0x1f5f6c]||{},_0xc1dbb2=_0x1f7e88[_0x3b9568]||{};if(_0xeb4c4d['id']==_0xc1dbb2['id'])_0x1f5f6c++,_0x3b9568++,_0x354bf1['push'](_0xeb4c4d);else{if(_0xc1dbb2['isRemoved']&&_0xeb4c4d['isAdded']){const {commonTape:_0x561b7b,iEnd:_0x5dfeb8,jEnd:_0x470f9a}=this['_threeWayMerge'](_0x17cc5f,_0x1f5f6c,_0x1f7e88,_0x3b9568);_0x354bf1=_0x354bf1['concat'](_0x561b7b),_0x1f5f6c=_0x5dfeb8,_0x3b9568=_0x470f9a;}else _0xc1dbb2['isRemoved']?(_0x3b9568++,_0x354bf1['push'](_0xc1dbb2)):(_0x1f5f6c++,_0x354bf1['push'](_0xeb4c4d));}}return _0x354bf1;}['_markSuggestions'](_0x2db00a,_0x374f70){const _0x2994cb=[];for(let _0xfdc6c1=0x0;_0xfdc6c1<_0x2db00a['length'];_0xfdc6c1++){for(let _0x3a63bb=0x0;_0x3a63bb<_0x2db00a[_0xfdc6c1]['markersStart']['length'];_0x3a63bb++){const _0x286c58=_0x2db00a[_0xfdc6c1]['markersStart'][_0x3a63bb];if(!_0x374f70['has'](_0x286c58))continue;const {group:_0x342148,type:_0x503913,authorId:_0xa0b451}=_0x36d2c1(_0x286c58);'revision-suggestion'!=_0x342148||'insertion'!=_0x503913&&'deletion'!=_0x503913||(_0x2994cb['unshift']({'type':_0x503913,'name':_0x286c58,'userId':_0xa0b451}),_0x2db00a[_0xfdc6c1]['markersStart']['splice'](_0x3a63bb,0x1),_0x3a63bb--);}_0x5bd564(_0x2db00a[_0xfdc6c1]);for(let _0x11a13c=0x0;_0x11a13c<_0x2db00a[_0xfdc6c1]['markersEnd']['length'];_0x11a13c++){const _0x2b66fb=_0x2db00a[_0xfdc6c1]['markersEnd'][_0x11a13c];if(!_0x374f70['has'](_0x2b66fb))continue;const {group:_0x107dc7,type:_0x3d1d8c}=_0x36d2c1(_0x2b66fb);if('revision-suggestion'!=_0x107dc7||'insertion'!=_0x3d1d8c&&'deletion'!=_0x3d1d8c)continue;_0x2db00a[_0xfdc6c1]['markersEnd']['splice'](_0x11a13c,0x1),_0x11a13c--;const _0x79bac5=_0x2994cb['findIndex'](_0x4d17ff=>_0x4d17ff['name']==_0x2b66fb);_0x79bac5>-0x1&&_0x2994cb['splice'](_0x79bac5,0x1);}}function _0x36d2c1(_0x5aea27){const _0x111595=_0x5aea27['split'](':');return{'group':_0x111595[0x0],'type':_0x111595[0x1],'subType':_0x111595['length']>=0x5?_0x111595[0x2]:null,'id':_0x111595['length']<0x5?_0x111595[0x2]:_0x111595[0x3],'authorId':_0x111595['length']<0x5?_0x111595[0x3]:_0x111595[0x4],'markerCount':0x6==_0x111595['length']?_0x111595[0x5]:null};}function _0x5bd564(_0x4d06af){for(let _0x5bbcf3=0x0;_0x5bbcf3<_0x2994cb['length'];_0x5bbcf3++){if(_0x4d06af['isAdded']&&'insertion'==_0x2994cb[_0x5bbcf3]['type']&&_0x4d06af['isAdded']['userId']==_0x2994cb[_0x5bbcf3]['userId'])return _0x4d06af['isAddSuggestion']=_0x2994cb[_0x5bbcf3],void delete _0x4d06af['isAdded'];if(!_0x4d06af['isAdded']&&!_0x4d06af['isRemoved']&&'deletion'==_0x2994cb[_0x5bbcf3]['type'])return void(_0x4d06af['isRemoveSuggestion']=_0x2994cb[_0x5bbcf3]);}}}['_setDistance'](_0xa27f10,_0x1f3b7c){let _0x253998=0x0,_0x463965=!0x1;const _0x222828=new Map();for(const _0x39bf81 of _0xa27f10)_0x39bf81[_0x1f3b7c]?_0x463965&&(_0x253998++,_0x463965=!0x1):(_0x253998++,_0x463965=!0x0),_0x222828['set'](_0x39bf81['id'],_0x253998);for(let _0x1e9dbc=0x0;_0x1e9dbc<_0xa27f10['length'];_0x1e9dbc++){if('isRemoved'==_0x1f3b7c&&_0xa27f10[_0x1e9dbc]['isAdded']||'isAdded'==_0x1f3b7c&&_0xa27f10[_0x1e9dbc]['isRemoved'])continue;if('text'==_0xa27f10[_0x1e9dbc]['type']){_0xa27f10[_0x1e9dbc]['distance']=0x0;continue;}const _0x32cba4=_0x222828['get'](_0xa27f10[_0x1e9dbc]['pairId']),_0x22cc57=_0x222828['get'](_0xa27f10[_0x1e9dbc]['id']);_0xa27f10[_0x1e9dbc]['distance']=_0x32cba4-_0x22cc57;}}['_getRevisionsRange'](_0x5dc7cd,_0x35a747,_0x55e018=!0x1){const _0x5dfde5=[];let _0x593c0c=this['repository']['getIndex'](_0x5dc7cd),_0x57340e=this['repository']['getIndex'](_0x35a747);for(-0x1==_0x57340e&&(_0x57340e=this['repository']['_revisions']['length'],_0x55e018=!0x1);_0x593c0c<_0x57340e;)_0x5dfde5['push'](this['repository']['getRevision'](_0x593c0c)),_0x593c0c++;return _0x55e018&&_0x5dfde5['push'](this['repository']['getRevision'](_0x593c0c)),_0x5dfde5;}['_threeWayMerge'](_0x553307,_0xf01910,_0x37c298,_0x17fbd4){const _0x4839c0=this['editor']['model']['schema'];let _0x46a728=_0xf01910;for(;_0x553307[_0x46a728]&&_0x553307[_0x46a728]['isAdded'];)_0x46a728++;let _0x39914b=_0x17fbd4;for(;_0x37c298[_0x39914b]&&_0x37c298[_0x39914b]['isRemoved'];)_0x39914b++;_0x5ae8e3(_0x553307,_0xf01910,_0x46a728),_0x5ae8e3(_0x37c298,_0x17fbd4,_0x39914b);const _0x25dae6=_0x37c298['slice'](_0x17fbd4,_0x39914b)['concat'](_0x553307['slice'](_0xf01910,_0x46a728));return _0x25dae6['sort']((_0x4a0e61,_0x3342f4)=>_0x4a0e61['side']!=_0x3342f4['side']?_0x4a0e61['side']-_0x3342f4['side']:_0x4a0e61['level']!=_0x3342f4['level']?_0x4a0e61['level']-_0x3342f4['level']:_0x4a0e61['distance']!=_0x3342f4['distance']?_0x3342f4['distance']-_0x4a0e61['distance']:!!_0x4a0e61['isAdded']!=!!_0x3342f4['isAdded']?-0x1==_0x4a0e61['side']||0x0==_0x4a0e61['side']?_0x4a0e61['isAdded']?-0x1:0x1:_0x4a0e61['isAdded']?0x1:-0x1:_0x4a0e61['index']-_0x3342f4['index']),{'commonTape':_0x25dae6,'iEnd':_0x46a728,'jEnd':_0x39914b};function _0x5ae8e3(_0x315db0,_0x3cc417,_0x500bcd){let _0x5a22d0=-0x1,_0x41ea51=Number['POSITIVE_INFINITY'],_0x3fe1b2=!0x0;for(let _0x1eb5a0=_0x3cc417;_0x1eb5a0<_0x500bcd;_0x1eb5a0++)if(_0x4839c0['isInline'](_0x315db0[_0x1eb5a0]['item'])||(_0x3fe1b2=!0x1),_0x315db0[_0x1eb5a0]['item']['startIndex']<_0x3cc417&&(_0x5a22d0=_0x1eb5a0),_0x315db0[_0x1eb5a0]['item']['endIndex']>=_0x500bcd){_0x41ea51=_0x1eb5a0;break;}_0x3fe1b2&&(_0x5a22d0=_0x500bcd-0x1);for(let _0x413717=_0x3cc417;_0x413717<_0x500bcd;_0x413717++)_0x315db0[_0x413717]['side']=_0x413717<=_0x5a22d0?-0x1:_0x413717<_0x41ea51?0x0:0x1,_0x315db0[_0x413717]['index']=_0x413717;let _0x2de248=0x0;for(let _0x4324a7=_0x3cc417;_0x4324a7<=_0x5a22d0;_0x4324a7++)0x0==_0x315db0[_0x4324a7]['distance']?_0x315db0[_0x4324a7]['level']=_0x2de248:(_0x2de248++,_0x315db0[_0x4324a7]['level']=_0x2de248,_0x2de248++);for(let _0x29803d=_0x3cc417;_0x29803d<_0x500bcd;_0x29803d++)0x0==_0x315db0[_0x29803d]['side']&&(_0x315db0[_0x29803d]['level']=_0x2de248);_0x2de248=0x0;for(let _0x41fd1b=_0x500bcd-0x1;_0x41fd1b>=_0x41ea51;_0x41fd1b--)0x0==_0x315db0[_0x41fd1b]['distance']?_0x315db0[_0x41fd1b]['level']=_0x2de248:(_0x2de248--,_0x315db0[_0x41fd1b]['level']=_0x2de248,_0x2de248--);}}['_fixObsoleteTags'](_0x2262a1){const _0x5e5bc3=new Map(),_0x3e5704=this['editor']['model']['schema'];for(let _0x221ecc=0x1;_0x221ecc<_0x2262a1['length'];_0x221ecc++){let _0x4a14a6,_0x55e091,_0x23e3ab;const _0xdd290b=_0x2262a1[_0x221ecc],_0x33f4ab=_0x2262a1[_0x221ecc-0x1];if('text'==_0xdd290b['type'])continue;if(_0xdd290b['type']!=_0x33f4ab['type'])continue;if(!_0x3e5704['isBlock'](_0x33f4ab['item'])||_0x3e5704['isLimit'](_0x33f4ab['item']))continue;if(!_0x3e5704['isBlock'](_0xdd290b['item'])||_0x3e5704['isLimit'](_0xdd290b['item']))continue;if((_0x2262a1[_0x221ecc]['isAdded']||_0x2262a1[_0x221ecc]['isAddSuggestion'])&&_0x2262a1[_0x221ecc-0x1]['isRemoved'])_0x4a14a6=_0x2262a1[_0x221ecc],_0x55e091=_0x2262a1[_0x221ecc-0x1],_0x23e3ab=_0x221ecc-0x1;else{if(!_0x2262a1[_0x221ecc]['isRemoved']||!_0x2262a1[_0x221ecc-0x1]['isAdded']&&!_0x2262a1[_0x221ecc-0x1]['isAddSuggestion'])continue;_0x4a14a6=_0x2262a1[_0x221ecc-0x1],_0x55e091=_0x2262a1[_0x221ecc],_0x23e3ab=_0x221ecc;}const _0x27d14d=_0x4a14a6['level']==_0x55e091['level'],_0xf2a99e=Math['abs'](_0x4a14a6['level'])<Math['abs'](_0x55e091['level'])&&0x0==_0x55e091['distance'];(_0x27d14d||_0xf2a99e)&&(_0x5e5bc3['set'](_0x55e091['id'],_0x4a14a6['id']),_0x2262a1['splice'](_0x23e3ab,0x1),_0x221ecc--,_0x4a14a6['isAdded']=!0x1);}for(let _0x4f1db6=0x0;_0x4f1db6<_0x2262a1['length'];_0x4f1db6++)_0x5e5bc3['has'](_0x2262a1[_0x4f1db6]['pairId'])&&(_0x2262a1[_0x4f1db6]['pairId']=_0x5e5bc3['get'](_0x2262a1[_0x4f1db6]['pairId']));}['_removeMissingPairs'](_0x3a1e00){const _0x2e2612=new Set(_0x3a1e00['map'](_0x3f62fd=>_0x3f62fd['id']));for(let _0x240463=0x0;_0x240463<_0x3a1e00['length'];_0x240463++)_0x2e2612['has'](_0x3a1e00[_0x240463]['pairId'])||0x0==_0x3a1e00[_0x240463]['distance']||(_0x3a1e00[_0x240463]['isIncorrect']=!0x0);return _0x3a1e00['filter'](_0x380d0b=>!_0x380d0b['isIncorrect']);}['_markMismatchedRemovedTags'](_0x2d00ff){const _0x214800=new Set();for(let _0x539ec6=0x0;_0x539ec6<_0x2d00ff['length'];_0x539ec6++){if(_0x214800['has'](_0x2d00ff[_0x539ec6]['id'])&&_0x2d00ff[_0x539ec6]['isRemoved']&&(_0x2d00ff[_0x539ec6]['isIncorrect']=!0x0),_0x2d00ff[_0x539ec6]['isIncorrect'])continue;if(0x0==_0x2d00ff[_0x539ec6]['distance'])continue;if('elementStart'!=_0x2d00ff[_0x539ec6]['type'])continue;if(null==_0x2d00ff[_0x539ec6]['pairId'])continue;let _0x2f0e4a=_0x539ec6+0x1,_0x369486=0x0;for(;_0x2d00ff[_0x2f0e4a]['id']!=_0x2d00ff[_0x539ec6]['pairId'];)'elementStart'==_0x2d00ff[_0x2f0e4a]['type']?_0x369486++:'elementEnd'==_0x2d00ff[_0x2f0e4a]['type']&&_0x369486--,_0x2f0e4a++;if(0x0!=_0x369486){if(_0x2d00ff[_0x539ec6]['isRemoved'])_0x2d00ff[_0x539ec6]['isIncorrect']=!0x0;else{for(;_0x2f0e4a!=_0x539ec6;)_0x2d00ff[_0x2f0e4a]['isRemoved']&&0x0!=_0x2d00ff[_0x2f0e4a]['distance']&&(_0x2d00ff[_0x2f0e4a]['isIncorrect']=!0x0,_0x214800['add'](_0x2d00ff[_0x2f0e4a]['pairId'])),_0x2f0e4a--;}}}return _0x2d00ff['filter'](_0x4916b3=>!_0x4916b3['isIncorrect']);}['_removeUnsupportedChanges'](_0x327313){const _0x3ab173=this['editor']['model']['schema'];for(let _0x2b167f=0x0;_0x2b167f<_0x327313['length'];_0x2b167f++){if(!(_0x327313[_0x2b167f]['isAdded']||_0x327313[_0x2b167f]['isAddSuggestion']||_0x327313[_0x2b167f]['isRemoved']||_0x327313[_0x2b167f]['isRemoveSuggestion']))continue;if(0x0==_0x327313[_0x2b167f]['distance'])continue;const _0x1505d5=_0x327313[_0x2b167f]['item'];_0x3ab173['isBlock'](_0x1505d5)||_0x3ab173['isLimit'](_0x1505d5)||(_0x327313[_0x2b167f]['isAdded']&&delete _0x327313[_0x2b167f]['isAdded'],_0x327313[_0x2b167f]['isAddSuggestion']&&delete _0x327313[_0x2b167f]['isAddSuggestion'],_0x327313[_0x2b167f]['isRemoveSuggestion']&&delete _0x327313[_0x2b167f]['isRemoveSuggestion'],_0x327313[_0x2b167f]['isRemoved']&&(_0x327313[_0x2b167f]['isIncorrect']=!0x0));}return _0x327313['filter'](_0x2295f0=>!_0x2295f0['isIncorrect']);}['_makeModelFromTape'](_0xda4198,_0x5674cf,_0x527bd9){const _0x3e306f=new _0x3b75f6(),_0x52594b=[],_0x5e4729=new Map(),_0x35c7fc=this['editor']['model'],_0x410605=_0x35c7fc['schema'],_0x122dd5=[_0x3e306f],_0x1c005d={},_0x3d2ed7={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x1cf03c=null;const _0x1f2c6d=[0x0];for(let _0x59827b=0x0;_0x59827b<_0xda4198['length'];_0x59827b++)if('elementStart'===_0xda4198[_0x59827b]['type']){_0xda4198[_0x59827b]['previousPosition']=_0x35c7fc['createPositionFromPath'](_0x3e306f,_0x1f2c6d);const _0x3526dd=new _0x10b403(_0xda4198[_0x59827b]['item']['name'],_0xda4198[_0x59827b]['item']['getAttributes']());_0x122dd5[0x0]['_appendChild'](_0x3526dd),_0x1f2c6d['push'](0x0),_0x122dd5['unshift'](_0x3526dd),_0xda4198[_0x59827b]['nextPosition']=_0x35c7fc['createPositionFromPath'](_0x3e306f,_0x1f2c6d);}else'elementEnd'===_0xda4198[_0x59827b]['type']?(_0x122dd5['shift'](),_0xda4198[_0x59827b]['previousPosition']=_0x35c7fc['createPositionFromPath'](_0x3e306f,_0x1f2c6d),_0x1f2c6d['pop'](),_0x1f2c6d[_0x1f2c6d['length']-0x1]++,_0xda4198[_0x59827b]['nextPosition']=_0x35c7fc['createPositionFromPath'](_0x3e306f,_0x1f2c6d)):(_0xda4198[_0x59827b]['previousPosition']=_0x35c7fc['createPositionFromPath'](_0x3e306f,_0x1f2c6d),_0x1cf03c?_0x1cf03c['_data']+=_0xda4198[_0x59827b]['item']['data']:_0x1cf03c=new _0x5eda90(_0xda4198[_0x59827b]['item']['data'],_0xda4198[_0x59827b]['item']['getAttributes']()),_0xda4198[_0x59827b+0x1]&&'text'===_0xda4198[_0x59827b+0x1]['type']&&_0x56c64d(_0x1cf03c,_0xda4198[_0x59827b+0x1]['item'])||(_0x122dd5[0x0]['_appendChild'](_0x1cf03c),_0x1cf03c=null),_0x1f2c6d[_0x1f2c6d['length']-0x1]+=_0xda4198[_0x59827b]['item']['offsetSize'],_0xda4198[_0x59827b]['nextPosition']=_0x35c7fc['createPositionFromPath'](_0x3e306f,_0x1f2c6d));for(let _0x58d6ef=0x0;_0x58d6ef<_0xda4198['length'];_0x58d6ef++){const _0x1276ae=_0xda4198[_0x58d6ef]['previousPosition'],_0x8c5a27=_0xda4198[_0x58d6ef]['nextPosition'];for(const _0x1a63e6 of _0xda4198[_0x58d6ef]['markersStart'])_0x5e4729['set'](_0x1a63e6,{'start':_0x1276ae,'end':null});_0x2a7f80('isRemoveSuggestion',_0x58d6ef,_0x1276ae,_0x8c5a27),_0x2a7f80('isAddSuggestion',_0x58d6ef,_0x1276ae,_0x8c5a27),_0x2a7f80('isRemoved',_0x58d6ef,_0x1276ae,_0x8c5a27),_0x2a7f80('isAdded',_0x58d6ef,_0x1276ae,_0x8c5a27);for(const _0x3424d3 of _0xda4198[_0x58d6ef]['markersEnd']){const _0x277f54=_0x5e4729['get'](_0x3424d3);_0x277f54?_0x277f54['end']=_0x8c5a27:_0x5e4729['set'](_0x3424d3,{'start':_0x8c5a27,'end':_0x8c5a27});}}for(const [_0xc19eec,_0x244042]of _0x5e4729){const _0x375271=this['editor']['model']['createRange'](_0x244042['start'],_0x244042['end']);_0x3e306f['markers']['set'](_0xc19eec,_0x375271);}return _0x52594b['sort']((_0x57b24a,_0x24bf74)=>{const _0xa3b0d1=_0x3e306f['markers']['get']('revision:'+_0x57b24a['id']),_0x3da44c=_0x3e306f['markers']['get']('revision:'+_0x24bf74['id']);return _0xa3b0d1['start']['isBefore'](_0x3da44c['start'])?-0x1:_0xa3b0d1['start']['isAfter'](_0x3da44c['start'])?0x1:_0xa3b0d1['end']['isBefore'](_0x3da44c['end'])?-0x1:_0xa3b0d1['end']['isAfter'](_0x3da44c['end'])?0x1:'add'===_0x57b24a['type']?-0x1:0x1;}),{'root':_0x3e306f,'changes':_0x52594b};function _0x2a7f80(_0x318b74,_0x512016,_0x3d4344,_0x147584){const _0x1bac69=!!_0xda4198[_0x512016][_0x318b74],_0x4711c9=_0x1bac69?_0xda4198[_0x512016][_0x318b74]['userId']:null,_0x719cfc=_0x512016===_0xda4198['length']-0x1,_0x121288=_0x3d2ed7[_0x318b74][0x0],_0x4e810b=_0x410605['isObject'](_0xda4198[_0x512016]['item']);!_0x1c005d[_0x318b74]&&_0x1bac69?_0x1c005d[_0x318b74]={'start':_0x3d4344,'tapeItem':_0xda4198[_0x512016],'userId':_0x4711c9,'type':_0x318b74}:_0x1c005d[_0x318b74]&&!_0x1bac69?(_0x1c005d[_0x318b74]['end']=_0x3d4344,_0x2a64cd(_0x1c005d[_0x318b74]),_0x1c005d[_0x318b74]=null):_0x1c005d[_0x318b74]&&_0x1bac69&&_0x1c005d[_0x318b74]['userId']!==_0x4711c9&&(_0x1c005d[_0x318b74]['end']=_0x3d4344,_0x121288&&_0x121288['userId']===_0x1c005d[_0x318b74]['userId']||_0x2a64cd(_0x1c005d[_0x318b74]),_0x1c005d[_0x318b74]={'start':_0x3d4344,'tapeItem':_0xda4198[_0x512016],'userId':_0x4711c9,'type':_0x318b74}),_0x1c005d[_0x318b74]&&_0x4e810b&&('elementStart'!==_0xda4198[_0x512016]['type']||_0x121288&&_0x121288['userId']===_0x4711c9||_0x3d2ed7[_0x318b74]['unshift']({'userId':_0x4711c9,'object':_0xda4198[_0x512016]['item'],'change':_0x1c005d[_0x318b74]}),'elementEnd'===_0xda4198[_0x512016]['type']&&_0x121288&&_0x121288['object']===_0xda4198[_0x512016]['item']&&(_0x3d2ed7[_0x318b74]['shift'](),_0x1c005d[_0x318b74]=_0x121288['change'])),_0x1c005d[_0x318b74]&&_0x719cfc&&(_0x1c005d[_0x318b74]['end']=_0x147584,_0x2a64cd(_0x1c005d[_0x318b74]),_0x1c005d[_0x318b74]=null);}function _0x2a64cd({start:_0x5f3120,end:_0x26e420,tapeItem:_0x570d4b,userId:_0x3715b5,type:_0x50cac0}){const _0x4558ab=_0x570d4b['item'],_0x82825d=_0x35c7fc['schema']['isBlock'](_0x4558ab)&&!_0x35c7fc['schema']['isLimit'](_0x4558ab),_0x29d4eb=_0x5f3120['nodeAfter']==_0x26e420['parent']&&_0x26e420['isAtStart'];if(_0x82825d&&_0x29d4eb)return;const _0x194b76=_0x35c7fc['createRange'](_0x5f3120,_0x26e420),_0x8803d=_0x5674cf['get'](_0x3715b5),_0x3d795e=new G({'author':_0x8803d,'type':'isAdded'==_0x50cac0||'isAddSuggestion'==_0x50cac0?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x50cac0||'isRemoveSuggestion'==_0x50cac0},'createdAt':new Date(),'rootName':_0x527bd9});_0x52594b['push'](_0x3d795e),_0x3e306f['markers']['set']('revision:'+_0x3d795e['id'],_0x194b76);}function _0x56c64d(_0x320968,_0x49840e){const _0x35e493=_0x320968['getAttributes'](),_0x4070ea=_0x49840e['getAttributes']();for(const _0x267286 of _0x35e493){if(_0x267286[0x1]!==_0x49840e['getAttribute'](_0x267286[0x0]))return!0x1;_0x4070ea['next']();}return _0x4070ea['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x349d84=>{const _0x2b26a3=_0x349d84['markerName']['split'](':')[0x1],_0x158ae5=this['_getChangeFromId'](_0x2b26a3);if(!_0x158ae5)return null;const _0x2fe797='add'==_0x158ae5['type']?'insertion':'deletion',_0x534f3d=['ck-suggestion-marker','ck-suggestion-marker-'+_0x2fe797];return _0x158ae5['data']['isSuggestion']&&_0x534f3d['push']('ck-suggestion-marker-'+_0x2fe797+'-new'),this['activeChange']==_0x158ae5&&_0x534f3d['push']('ck-suggestion-marker--active'),{'classes':_0x534f3d,'attributes':{'data-change-id':_0x2b26a3}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x456919=>{_0x456919['on']('element:pre',(_0x35bced,_0x578443,_0x17e402)=>{const _0x335176=_0x578443['viewItem']['getChild'](0x0);if(!_0x335176||!_0x335176['is']('element','code'))return;if(!_0x17e402['consumable']['consume'](_0x335176,{'attributes':['vid_start','vid_end']}))return;const _0x5829dd=_0x578443['modelRange']['start']['nodeAfter'];_0x17e402['writer']['setAttribute']('vid_start',_0x335176['getAttribute']('vid_start'),_0x5829dd),_0x17e402['writer']['setAttribute']('vid_end',_0x335176['getAttribute']('vid_end'),_0x5829dd);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0xa5d28c=>{_0xa5d28c['on']('element',(_0x506be4,_0x91292b,_0xbdfb9a)=>{if(!_0xbdfb9a['consumable']['consume'](_0x91292b['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x91292b['modelRange']['isCollapsed'])return;const _0x47f903=_0x91292b['modelRange']['start']['nodeAfter'];_0x47f903['hasAttribute']('vid_start')||_0x47f903['hasAttribute']('vid')||(_0xbdfb9a['writer']['setAttribute']('vid_start',_0x91292b['viewItem']['getAttribute']('vid_start'),_0x47f903),_0xbdfb9a['writer']['setAttribute']('vid_end',_0x91292b['viewItem']['getAttribute']('vid_end'),_0x47f903));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x1f5b50=>_0x1f5b50['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x1e726a,[,_0x1dd57b])=>{['vid_start','vid_end','vid']['includes'](_0x1dd57b)&&(_0x1e726a['return']=!0x0,_0x1e726a['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x1b6210=>{_0x1b6210['on']('attribute:vid',(_0x4a6539,_0x378529,_0x5eeedb)=>{if('\x20'!=_0x378529['item']['data']||_0x378529['item']['parent']['maxOffset']>0x1)return;if(!_0x5eeedb['consumable']['consume'](_0x378529['item'],_0x4a6539['name']))return;const _0x338790=_0x5eeedb['writer'],_0x4fa9bb=_0x5eeedb['mapper']['toViewRange'](_0x378529['range']);_0x338790['wrap'](_0x4fa9bb,_0x338790['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x5e86a2){const _0x5f62fa=_0x5e86a2['plugins']['get']('RevisionViewer');return(_0x3f8a45,_0x28560b,_0x2e71ad)=>{const _0x3e3cc5=_0x28560b['markerName']['split'](':')[0x1],_0x345680=_0x5f62fa['_getChangeFromId'](_0x3e3cc5);if(!_0x345680)return null;const _0x55c9fd='add'==_0x345680['type']?'split':'merge';if(!_0x2e71ad['consumable']['test'](_0x28560b['markerRange'],_0x3f8a45['name']))return;const _0x2d88ad=_0x28560b['markerRange']['getWalker'](),_0xcf638=_0x28560b['markerRange']['start'],_0x539572=_0x5e86a2['model']['schema'];let _0x3e05de=null,_0x33be4c=null,_0x4b5913=!0x1,_0x7945d7=!0x1;for(const _0x1054bf of _0x2d88ad){const _0x3b600c=_0x1054bf['item'];_0x4b5913=_0x4b5913||_0x539572['isContent'](_0x3b600c);const _0x2262d7=_0x2e71ad['mapper']['toViewElement'](_0x3b600c);if(_0x2262d7&&_0x2262d7['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1054bf['type']&&(_0x539572['isBlock'](_0x3b600c)&&!_0x539572['isLimit'](_0x3b600c)&&(_0x3b600c['nextSibling']||_0xcf638['isAtEnd']?_0x3e05de&&_0x3e05de['parent']==_0x3b600c||(_0x3e05de=_0x3b600c,_0x53d890(_0x1054bf['previousPosition']),_0x7945d7=!0x0):_0x33be4c=_0x33be4c||_0x1054bf['previousPosition']));}function _0x53d890(_0xdfe485){const _0x4f9e3f=_0x2e71ad['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x55c9fd}),_0x33f8f8=_0x2e71ad['mapper']['toViewPosition'](_0xdfe485);_0x345680['data']['isSuggestion']&&_0x2e71ad['writer']['addClass']('ck-suggestion-marker-'+_0x55c9fd+'-new',_0x4f9e3f),_0x5f62fa['activeChange']==_0x345680&&_0x2e71ad['writer']['addClass']('ck-suggestion-marker--active',_0x4f9e3f),_0x2e71ad['writer']['insert'](_0x33f8f8,_0x4f9e3f),_0x2e71ad['mapper']['bindElementToMarker'](_0x4f9e3f,_0x28560b['markerName']);}_0x4b5913||_0x7945d7||!_0x33be4c||_0x53d890(_0x33be4c);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x20a859,_0x30632b,_0x107d61)=>{const _0x3fe3d3=_0x107d61['mapper']['markerNameToElements'](_0x30632b['markerName']);if(_0x3fe3d3){for(const _0x12729f of _0x3fe3d3)(_0x12729f['hasClass']('ck-suggestion-marker-split')||_0x12729f['hasClass']('ck-suggestion-marker-merge'))&&(_0x107d61['mapper']['unbindElementFromMarkerName'](_0x12729f,_0x30632b['markerName']),_0x107d61['writer']['remove'](_0x12729f));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x5d3fa5,_0x447ef0,_0x5f2ac1)=>{const _0x26528c=_0x447ef0['markerName']['split'](':')[0x1],_0x290b33=this['_getChangeFromId'](_0x26528c);if(!_0x290b33)return null;const _0x1725a5='add'==_0x290b33['type']?'split':'merge';if(_0x5f2ac1['consumable']['test'](_0x447ef0['markerRange'],_0x5d3fa5['name']))for(const _0x4923fa of _0x447ef0['markerRange']['getItems']()){if(!_0x4923fa['is']('element','softBreak'))continue;const _0x109fd8=_0x5f2ac1['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1725a5}),_0x1d8c14=_0x5f2ac1['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x4923fa));_0x290b33['data']['isSuggestion']&&_0x5f2ac1['writer']['addClass']('ck-suggestion-marker-'+_0x1725a5+'-new',_0x109fd8),this['activeChange']==_0x290b33&&_0x5f2ac1['writer']['addClass']('ck-suggestion-marker--active',_0x109fd8),_0x5f2ac1['writer']['insert'](_0x1d8c14,_0x109fd8),_0x5f2ac1['mapper']['bindElementToMarker'](_0x109fd8,_0x447ef0['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x319816=>{for(const _0xf49f1b of this['editor']['model']['document']['getRootNames']()){const _0x449cbf=this['editor']['model']['document']['getRoot'](_0xf49f1b),_0x1583c8=this['editor']['editing']['view']['document']['getRoot'](_0xf49f1b);if(_0x1583c8){const _0x149768=_0x449cbf['getAttribute']('revisionHistoryAttachChange');if(_0x319816['removeAttribute']('data-change-id',_0x1583c8),_0x319816['removeClass']('ck-revision-history-root-add',_0x1583c8),_0x319816['removeClass']('ck-revision-history-root-remove',_0x1583c8),_0x319816['removeClass']('ck-revision-history-root--active',_0x1583c8),_0x149768){const _0x212477=this['_getChangeFromId'](_0x149768);if(!_0x212477)return null;_0x319816['setAttribute']('data-change-id',_0x149768,_0x1583c8),_0x319816['addClass']('ck-revision-history-root-'+_0x212477['type'],_0x1583c8),this['activeChange']==_0x212477&&_0x319816['addClass']('ck-revision-history-root--active',_0x1583c8);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x8737fc=>'revision-comment:'+_0x8737fc,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x5c4bef=>'revision-suggestion:'+_0x5c4bef,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x50db22=>({'name':'suggestion:'+_0x50db22,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x2ebbf4=>{const _0x2ec87e=_0x2ebbf4['markerName']['split'](':')[0x1];return'insertion'!=_0x2ec87e&&'deletion'!=_0x2ec87e?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x2ec87e]};}}),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',(_0x8af211,_0x5954f0,_0x320512)=>{const _0x1dbe1b=_0x320512['mapper']['markerNameToElements'](_0x5954f0['markerName']);if(_0x1dbe1b){for(const _0x43e3b3 of _0x1dbe1b)_0x43e3b3['is']('uiElement')&&(_0x320512['mapper']['unbindElementFromMarkerName'](_0x43e3b3,_0x5954f0['markerName']),_0x320512['writer']['remove'](_0x43e3b3));}},{'priority':'high'});}['_getChangeFromId'](_0x320b82){return this['_changeIdToChange']['get'](_0x320b82);}['_getViewForChange'](_0x38f19c){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x38f19c),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x25ce69,_0x34da19,_0x10f89b,_0xb7a755)=>{_0xb7a755&&this['_balloon']['remove'](_0xb7a755),_0x10f89b&&(this['_balloon']['add']({'view':_0x10f89b,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x425925=this['editor']['editing'],_0x183ca2=this['_getChangeFromId'](_0x10f89b['changeId']);let _0x343757;if(_0x183ca2['data']['isOnRoot']){const _0x24f3b7=_0x425925['view']['getDomRoot'](_0x183ca2['rootName']);_0x343757=Array['from'](_0x24f3b7['getClientRects']());}else{const _0x30993c=this['editor']['model']['markers']['get']('revision:'+_0x10f89b['changeId']);_0x343757=Array['from'](_0x425925['mapper']['markerNameToElements'](_0x30993c['name']))['map'](_0x23f28b=>_0x425925['view']['domConverter']['mapViewToDom'](_0x23f28b))['map'](_0x5f4e95=>Array['from'](_0x5f4e95['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x343757[0x0];return _0x343757['find'](_0x4c64db=>_0x4c64db['top']-0x3<=this['_activeViewTarget']['y']&&_0x4c64db['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x4c64db['left']-0x3<=this['_activeViewTarget']['x']&&_0x4c64db['right']+0x3>=this['_activeViewTarget']['x'])||_0x343757[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x2071ca,_0x3306f2,_0x2dcc4d,_0x3e01ca)=>{this['activeView']=_0x2dcc4d?this['_getViewForChange'](_0x2dcc4d):null,this['editor']['model']['change'](()=>{const _0x16da57=this['editor']['editing'];_0x3e01ca&&(_0x3e01ca['data']['isOnRoot']?_0x16da57['view']['change'](_0x49256a=>{_0x49256a['removeClass']('ck-revision-history-root--active',_0x16da57['view']['document']['getRoot'](_0x3e01ca['rootName']));}):_0x16da57['reconvertMarker']('revision:'+_0x3e01ca['id'])),_0x2dcc4d&&(_0x2dcc4d['data']['isOnRoot']?_0x16da57['view']['change'](_0x57ce80=>{_0x57ce80['addClass']('ck-revision-history-root--active',_0x16da57['view']['document']['getRoot'](_0x2dcc4d['rootName']));}):_0x16da57['reconvertMarker']('revision:'+_0x2dcc4d['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x2b2491,_0x16c503)=>{if(this['activeChange'])return;const _0x741190=this['_findChangeIdFromDomTarget'](_0x16c503['target']),_0x5e271d=this['_changeIdToChange']['get'](_0x741190);_0x5e271d?(this['_activeViewTarget']={'x':_0x16c503['domEvent']['x'],'y':_0x16c503['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x5e271d)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x524b8f,_0x956f14)=>{const _0x440d92=this['_findChangeIdFromDomTarget'](_0x956f14['target']),_0x56d2cc=this['_changeIdToChange']['get'](_0x440d92);_0x56d2cc?(this['_activeViewTarget']={'x':_0x956f14['domEvent']['x'],'y':_0x956f14['domEvent']['y']},_0x56d2cc===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x56d2cc):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x5977bb){do{const _0x8ac38a=_0x5977bb['getAttribute']('data-change-id');if(_0x8ac38a)return _0x8ac38a;_0x5977bb=_0x5977bb['parent'];}while(_0x5977bb);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x4303cf=>{for(const _0xdc5057 of this['editor']['model']['markers'])_0x4303cf['removeMarker'](_0xdc5057);});}}function Q(_0x74f221,_0x52c2a9){return(_0x11e2ce,_0x24bf9f,_0x3a1aa3)=>{if(!_0x3a1aa3['consumable']['test'](_0x24bf9f['markerRange'],_0x11e2ce['name']))return;const _0x47644b=_0x24bf9f['markerRange']['getWalker'](),_0x298d0d=_0x24bf9f['markerRange']['start'],_0x5cd925=_0x74f221['model']['schema'];let _0xffa708=null,_0x5d78b4=null,_0x169fa2=!0x1,_0x56217e=!0x1;for(const _0x4a3d0c of _0x47644b){const _0x1e6913=_0x4a3d0c['item'];_0x169fa2=_0x169fa2||_0x5cd925['isContent'](_0x1e6913);const _0x4e25c1=_0x3a1aa3['mapper']['toViewElement'](_0x1e6913);if(_0x4e25c1&&_0x4e25c1['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4a3d0c['type']&&(_0x5cd925['isBlock'](_0x1e6913)&&!_0x5cd925['isLimit'](_0x1e6913)&&(_0x1e6913['nextSibling']||_0x298d0d['isAtEnd']?_0xffa708&&_0xffa708['parent']==_0x1e6913||(_0xffa708=_0x1e6913,_0x42dff9(_0x4a3d0c['previousPosition']),_0x56217e=!0x0):_0x5d78b4=_0x5d78b4||_0x4a3d0c['previousPosition']));}function _0x42dff9(_0x27d23c){const _0x309788=_0x3a1aa3['mapper']['toViewPosition'](_0x27d23c),_0x571ace=_0x3a1aa3['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x52c2a9});_0x3a1aa3['writer']['insert'](_0x309788,_0x571ace),_0x3a1aa3['mapper']['bindElementToMarker'](_0x571ace,_0x24bf9f['markerName']);}_0x169fa2||_0x56217e||!_0x5d78b4||_0x42dff9(_0x5d78b4);};}class nt extends _0x518bfa{constructor(_0x5928ab){super(_0x5928ab);const _0x2a0f0a=_0x5928ab['plugins']['get'](u);this['affectsData']=!0x1,this['listenTo'](_0x2a0f0a,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x2a0f0a,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x144894=this['editor'],_0x3f312d=_0x144894['plugins']['get'](u),_0x26f2e4=_0x3f312d['isReady']?_0x3f312d['diff']['newRevisionId']:null;_0x144894['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x26f2e4);}['refresh'](){const {isReady:_0x53f6ca,isEnabled:_0x3dd3ea,repository:_0x5dd3d1,diff:_0x53883f}=this['editor']['plugins']['get'](u),_0x4c4ae1=_0x53883f&&_0x5dd3d1['getLaterVisibleRevision'](_0x53883f['newRevisionId']);this['isEnabled']=_0x53f6ca&&_0x3dd3ea&&Boolean(_0x4c4ae1);}}class rt extends _0x518bfa{['_step'];constructor(_0x5e53aa,{direction:_0x1df5b9}){super(_0x5e53aa);const _0x5bf7e3=_0x5e53aa['plugins']['get'](u);this['affectsData']=!0x1,this['_step']='forward'===_0x1df5b9?0x1:-0x1,this['listenTo'](_0x5bf7e3,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x5bf7e3,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x5bf7e3,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x9fabe0=this['editor'],_0x3aa3e6=_0x9fabe0['plugins']['get'](u),{isNavigationMode:_0x3b7935,currentChangeNumber:_0xa65cb8}=_0x3aa3e6;let _0x4b4dc7;if(_0x3aa3e6['activeChange']=_0x3b7935?_0x3aa3e6['diff']['changes']['get'](_0xa65cb8+this['_step']):_0x3aa3e6['diff']['changes']['first'],_0x3aa3e6['activeChange']['data']['isOnRoot'])_0x4b4dc7=_0x9fabe0['editing']['view']['getDomRoot'](_0x3aa3e6['activeChange']['rootName']);else{const _0x20bb2c=_0x9fabe0['model']['markers']['get']('revision:'+_0x3aa3e6['activeChange']['id']);_0x4b4dc7=_0x4ba0e4(_0x9fabe0['editing'],_0x20bb2c);}_0xd0b7de({'target':_0x4b4dc7,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x4cd392,currentChangeNumber:_0x53ad63,numberOfChanges:_0x2a19c4,isReady:_0x41f5b6,isEnabled:_0x13b04e}=this['editor']['plugins']['get'](u);this['isEnabled']=!!(_0x13b04e&&_0x41f5b6&&_0x2a19c4)&&(!_0x4cd392||(0x1===this['_step']?_0x53ad63<_0x2a19c4-0x1:_0x53ad63>0x0));}}class Ri extends _0x3ee578{constructor(_0x4ca33a){super(_0x4ca33a);const _0x5d89ce=this['bindTemplate'],_0x33c5ac=new _0x235a06(_0x4ca33a),_0x5937ab=new _0x235a06(_0x4ca33a);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',(_0x45408c,_0xa1aa3c)=>_0x45408c&&_0xa1aa3c>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x9e8a40,_0x1eab2a,_0x240e06,_0x4a4e17)=>{if(!_0x9e8a40)return m(_0x4ca33a,'Loading...');if(!_0x240e06)return m(_0x4ca33a,'No\x20changes');const _0x4c4d70=m(_0x4ca33a,'NUMBER_OF_CHANGES',_0x240e06);return _0x4a4e17?m(_0x4ca33a,'X_OF_Y_CHANGES',[_0x1eab2a+0x1,_0x240e06]):_0x4c4d70;}),_0x33c5ac['set']({'label':m(_0x4ca33a,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x54e670}),_0x5937ab['set']({'label':m(_0x4ca33a,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x1fe749}),_0x33c5ac['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x5937ab['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x33c5ac['on']('execute',()=>this['fire']('execute','backward')),_0x5937ab['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',_0x5d89ce['if']('_isStatusLabelVisible','ck-hidden',_0x4d8644=>!_0x4d8644)]},'children':[{'text':_0x5d89ce['to']('isNavigationMode',_0x45d7fc=>_0x45d7fc?m(_0x4ca33a,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x4ca33a,'Total')+':\x20')}]},{'text':_0x5d89ce['to']('_statusText')}]},new _0x5652f5(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x33c5ac,_0x5937ab]}]});}}const ge='ck-editor__editable__loading-overlay';class ji extends _0x4b71e4{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x246a2c=this['editor']['editing']['view'];_0x246a2c['change'](_0xd8596f=>{for(const _0xc44441 of _0x246a2c['document']['roots'])_0xd8596f['addClass'](ge,_0xc44441);});}['hide'](){const _0x663880=this['editor']['editing']['view'];_0x663880['change'](_0x3eaaa1=>{for(const _0x92c01b of _0x663880['document']['roots'])_0x3eaaa1['removeClass'](ge,_0x92c01b);});}}class v extends _0x4b71e4{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,ji];}['init'](){const _0x14e739=this['editor'],_0x5da3b2=_0x14e739['plugins']['get'](u),_0x24193a=_0x14e739['plugins']['get'](ji);_0x14e739['ui']['componentFactory']['add']('exitToEditing',_0x2bef4d=>{const _0x2896f6=new _0x235a06(_0x2bef4d);return _0x2896f6['set']({'label':m(_0x2bef4d,'Back\x20to\x20editing'),'icon':_0x90f4af,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x2896f6,'execute',()=>{_0x14e739['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x2896f6;}),_0x14e739['ui']['componentFactory']['add']('restoreRevision',_0x2228fa=>{const _0x162641=new _0x235a06(_0x2228fa);return _0x162641['set']({'label':m(_0x2228fa,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x162641['bind']('isEnabled')['to'](_0x14e739['commands']['get']('restoreRevision')),this['listenTo'](_0x162641,'execute',()=>_0x14e739['execute']('restoreRevision')),_0x162641;}),_0x14e739['ui']['componentFactory']['add']('changesNavigation',_0x10fc49=>{const _0x5350c2=new Ri(_0x10fc49),_0x34971e=_0x14e739['commands']['get']('showPreviousChange'),_0x37eaca=_0x14e739['commands']['get']('showNextChange');return _0x5350c2['bind']('isBackwardNavigationEnabled')['to'](_0x34971e,'isEnabled'),_0x5350c2['bind']('isForwardNavigationEnabled')['to'](_0x37eaca,'isEnabled'),_0x5350c2['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x5da3b2),this['listenTo'](_0x5350c2,'execute',(_0x1f9532,_0x5a8849)=>{_0x14e739['execute']('forward'===_0x5a8849?'showNextChange':'showPreviousChange');}),_0x5350c2;}),_0x24193a['show'](),_0x5da3b2['on']('change:isReady',(_0x4c6c55,_0x5b7963,_0x3e7545)=>{_0x3e7545?_0x24193a['hide']():_0x24193a['show']();});}}class hi extends et{['_resizeObserver']=null;constructor(_0x3b6662,_0x4855ff){super(_0x3b6662,_0x4855ff);const _0x2b0756=this['bindTemplate'];this['set']({'label':m(_0x3b6662,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x3b6662,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x2b0756['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 _0x4e6f4b=this['fieldView']['element'];this['_tooltipString']=_0x4e6f4b['scrollWidth']>_0x4e6f4b['clientWidth']&&_0x4e6f4b['value']||'';}}class ni extends _0x3ee578{constructor(_0x3447a1,_0x15a9eb,_0x27c65a){super(_0x3447a1);const _0x2f8dda=new _0x468b2c();_0x2f8dda['set']({'content':_0x2d4ff3,'viewBox':'0\x200\x2011\x2010'});const _0x450534=['ck','ck-revision-history-sidebar__revision-author'];_0x27c65a&&_0x450534['push']('ck-revision-history-sidebar__revision-author_creator');const _0x1c2407=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x3447a1,_0x27c65a?'Revision\x20creator':'Revision\x20author')},'children':[_0x2f8dda,_0x15a9eb['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x450534},'children':_0x1c2407});}}function ai(_0x5212c6,_0x37fe46){const _0x3e3990=_0x5212c6['bindTemplate'],_0x68f4d9=_0x5212c6['locale'],_0x278bd0=_0x5925fb(_0x68f4d9);_0x278bd0['panelPosition']='sw';const _0x27de38=function(_0x16215a,_0x16bcf0){const _0x3ddf88=function(_0x134a16,_0x4466c5){const _0x5913aa=_0x134a16['locale'],_0x3ae580={'Compare\x20against\x20selected':m(_0x5913aa,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x5913aa,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x5913aa,'Restore\x20this\x20revision')};return _0x4466c5['map'](_0x57f2c8=>{const _0x1eca90=_0x3ae580[_0x57f2c8['name']];return _0x1eca90&&_0x1eca90!==_0x57f2c8['name']&&(_0x57f2c8['name']=_0x1eca90),_0x57f2c8;});}(_0x16215a,_0x16bcf0),_0x375861=new _0x4658e5();for(const _0x47124f of _0x3ddf88){const _0x2adc00={'type':'button','model':new to({'label':_0x47124f['name'],'class':_0x47124f['class'],'withText':!0x0,'role':'menuitem','_action':_0x47124f['action']})};_0x2adc00['model']['bind']('isEnabled')['to'](_0x16215a,'isActionsDropdownOpen',_0x5df732=>'function'!=typeof _0x47124f['isEnabled']||(!_0x5df732||_0x47124f['isEnabled'](_0x16215a))),_0x375861['add'](_0x2adc00);}return _0x375861;}(_0x5212c6,_0x37fe46);return _0x5212c6['bind']('isActionsDropdownOpen')['to'](_0x278bd0,'isOpen'),_0x278bd0['buttonView']['set']({'label':m(_0x68f4d9,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x170036}),_0x278bd0['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x3e3990['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x3e3990['to'](_0x715094=>_0x715094['stopPropagation']())}}),_0x278bd0['on']('execute',_0x20e9c5=>{_0x5212c6['isReady']&&'function'==typeof _0x20e9c5['source']['_action']&&_0x20e9c5['source']['_action'](_0x5212c6);}),_0x2c6bad(_0x278bd0,_0x27de38,{'role':'menu'}),_0x278bd0['listenTo'](_0x5212c6,'change:isActionsDropdownOpen',(_0x297447,_0x5db434,_0x58ad7a)=>{if(_0x58ad7a)for(const _0x6cb7c5 of _0x278bd0['listView']['items']){const _0x2d688c=_0x6cb7c5['children']['first'],_0x517fd4=_0x37fe46['find'](_0x84de01=>_0x84de01['action']===_0x2d688c['_action'])['isVisible'];_0x6cb7c5['isVisible']=void 0x0===_0x517fd4||_0x517fd4(_0x5212c6);}}),_0x278bd0;}class _i extends/* #__PURE__ -- @preserve */
|
|
27
|
+
_0x5eb75f(_0x3ee578){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x136ed9,_0x253f33,_0x3b672a,_0x155215){super(_0x136ed9);const _0x52dfbb=this['bindTemplate'],_0xe3c2bc=function(_0x4bc162,_0x396301){const _0x597dec=Array['from'](_0x396301['authors'])['filter'](_0x44366f=>_0x44366f!=_0x396301['creator']);return _0x396301['creator']&&_0x597dec['unshift'](_0x396301['creator']),_0x597dec['map'](_0x5f583b=>new ni(_0x4bc162,_0x5f583b,_0x5f583b==_0x396301['creator']));}(_0x136ed9,_0x253f33);this['id']=_0x253f33['id'],this['_revision']=_0x253f33,this['_requireRevisionName']=_0x155215,this['bind']('name','createdAt')['to'](_0x253f33),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x3fa582=>{return _0x22cf70=_0x136ed9['uiLanguage'],(_0x51f1e1=_0x3fa582)['toLocaleDateString'](_0x22cf70,{'month':'long','day':'numeric'})+',\x20'+_0x51f1e1['toLocaleTimeString'](_0x22cf70,{'hour':'numeric','minute':'numeric'});var _0x22cf70,_0x51f1e1;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new hi(_0x136ed9,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x213dc0=>_0x213dc0||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x4232f2,_0x3d2b65)=>_0x4232f2&&_0x3d2b65),this['revisionActionsView']=_0x3b672a&&_0x3b672a['length']?ai(this,_0x3b672a):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x52dfbb['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x52dfbb['if']('isEnabled','ck-disabled',_0x34ab54=>!_0x34ab54),_0x52dfbb['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x52dfbb['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x52dfbb['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':_0x52dfbb['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':_0xe3c2bc}]},this['revisionActionsView']],'on':{'click':_0x52dfbb['to'](_0x111bf5=>{_0x111bf5['srcElement']['closest']('.ck-confirm-view')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x2327b8=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x2327b8,'change',()=>{this['_requireRevisionName']&&!_0x2327b8['value']||this['fire']('setName',{'id':this['id'],'name':_0x2327b8['value']}),_0x2327b8['value']||(_0x2327b8['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function li(_0x5cb413,_0x2907f7){const _0xf6d313=_0x1fdea2['fromJSDate'](_0x5cb413)['setLocale'](_0x2907f7),_0x159ee4=_0x1fdea2['local'](),_0x247baa=_0x159ee4['minus']({'days':0x1})['startOf']('day');let _0x33115c,_0x21375;return _0xf6d313['hasSame'](_0x159ee4,'day')?(_0x33115c=_0xf6d313['startOf']('day')['toJSDate'](),_0x21375=_0xf6d313['toRelativeCalendar']()):_0xf6d313['hasSame'](_0x247baa,'day')?(_0x33115c=_0x247baa['toJSDate'](),_0x21375=_0xf6d313['toRelativeCalendar']()):_0xf6d313['hasSame'](_0x159ee4,'week')?(_0x33115c=_0xf6d313['startOf']('week')['toJSDate'](),_0x21375=_0xf6d313['weekdayLong']||''):_0xf6d313['hasSame'](_0x159ee4,'year')?(_0x33115c=_0xf6d313['startOf']('month')['toJSDate'](),_0x21375=_0xf6d313['monthLong']||''):(_0x33115c=_0xf6d313['startOf']('year')['toJSDate'](),_0x21375=String(_0xf6d313['year'])),{'startDate':_0x33115c,'localizedPeriodName':_0x21375};}class bi extends _0x3ee578{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x2cc61f,_0x7daaea,_0x21c2eb,_0x14029c){super(_0x2cc61f);const _0x16570b=li(_0x7daaea,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x7daaea,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x21c2eb,this['_requireRevisionName']=_0x14029c,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':_0x16570b}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0xc98e6c){const _0x4536d7=new _i(this['locale'],_0xc98e6c,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x4536d7);}['removeRevision'](_0x24c6dd){const _0xb12e0e=this['revisionViews']['find'](_0x31216e=>_0x31216e['id']===_0x24c6dd['id']);this['revisionViews']['remove'](_0xb12e0e);}}class fi extends _0x3ee578{constructor(_0x20060e){super(_0x20060e);const _0x47287e=new _0x468b2c();_0x47287e['content']=_0x31711b,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x47287e,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x20060e,'Revision\x20history')]}]});}}class di extends _0x3ee578{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x18552f,_0x3a830f,_0x2ad2ce,_0x539954){super(_0x18552f);const _0x1f544b=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x3a830f,this['_revisionActions']=_0x2ad2ce,this['_requireRevisionName']=_0x539954,this['on']('select',(_0x7fc78c,_0x34438e)=>{this['fire']('revisionSelected',_0x34438e);}),this['on']('setName',(_0xf71b9e,_0x11fd58)=>{this['fire']('revisionSetName',_0x11fd58);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new fi(_0x18552f),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x1f544b['if']('isEnabled','ck-disabled',_0x22d3e0=>!_0x22d3e0)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x59cbec of this['_revisions'])this['_addRevision'](_0x59cbec);this['_revisions']['on']('add',(_0x3cc025,_0xb7d523)=>{this['_addRevision'](_0xb7d523);}),this['_revisions']['on']('remove',(_0x1f320f,_0x5a5f96)=>{this['_removeRevision'](_0x5a5f96);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x36b234=>_0x36b234['revisionViews']['map'](_0x4a7875=>_0x4a7875))['flat']();}['selectRevision'](_0x202404){for(const _0xd3e3eb of this['revisionViews'])_0x202404&&_0x202404['id']===_0xd3e3eb['id']?_0xd3e3eb['select']():_0xd3e3eb['deselect']();}['highlightRevisions'](_0x4e86cd){for(const _0x39608a of this['revisionViews'])_0x4e86cd['some'](({id:_0x1a00fd})=>_0x1a00fd===_0x39608a['id'])?_0x39608a['highlight']():_0x39608a['unhighlight']();}['_addRevision'](_0x3dcad7){const _0x2699da=li(_0x3dcad7['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x50230c=this['timePeriodViews']['get'](0x0);_0x50230c&&_0x50230c['startDate']['getTime']()===_0x2699da['getTime']()||(_0x50230c=new bi(this['locale'],_0x2699da,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x50230c)),_0x50230c['addRevision'](_0x3dcad7);}['_removeRevision'](_0x42839d){const _0x55eaf8=li(_0x42839d['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x55eaf8)['removeRevision'](_0x42839d);}['_getTimePeriodViewByStartDate'](_0x20808f){return this['timePeriodViews']['find'](_0x3acd91=>_0x3acd91['startDate']['getTime']()===_0x20808f['getTime']());}}class d extends _0x4b71e4{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
28
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
29
|
-
at();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}constructor(
|
|
30
|
-
_0x4ac363(_0xa86a0b){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x2440f8,_0x270cef){super(_0x270cef),this['sourceElement']=_0x2440f8,this['model']['document']['createRoot']();const _0x4492a6=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x4492a6);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x1e5754,_0x40224f){const _0x5b0293=new this(_0x1e5754,_0x40224f);return await _0x5b0293['initPlugins'](),await _0x5b0293['ui']['init'](_0x1e5754),await _0x5b0293['data']['init'](_0x5b0293['config']['get']('initialData')||''),_0x5b0293['fire']('ready'),_0x5b0293;}}const p=['RevisionHistoryUI','RestrictedEditingMode','AIChat','AIReviewMode','AIBalloon','AIQuickActions','AIActions'];class ht extends _0x1f6d35{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x145865){function _0x504c8f(_0x340f20){return _0x340f20['map'](_0x28a3a6=>String['fromCharCode'](_0x28a3a6))['join']('');}super(_0x145865),this['result']='end',_0x145865[_0x504c8f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x504c8f([0x76,0x69,0x65,0x77])][_0x504c8f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x504c8f([0x61,0x75,0x74,0x6f]),_0x145865[_0x504c8f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x504c8f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x504c8f([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x504c8f([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x504c8f([0x6f,0x6b])});}}class ct extends _0x1f6d35{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,l];}constructor(_0x2e8e78){if(super(_0x2e8e78),!this['editor']['config']['get']('revisionHistory'))throw new _0x3b36ab('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x3634ce=>this['_showRevisionViewer']({..._0x3634ce,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x459144=>this['_closeRevisionViewer'](_0x459144)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x1950e4=>this['_restoreRevision'](_0x1950e4)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x43dfb2){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x43dfb2;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x582de2){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x582de2);}['getRevision'](_0x3b3bc3){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x3b3bc3);}['getRevisions'](_0x76593b){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x76593b||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0xacc44=this['editor'],_0x40320a=_0x2c9923(_0xacc44,p),_0x4f93a8=_0xacc44['plugins']['get']('RevisionTracker'),_0x3f9983=_0xacc44['plugins']['get']('Users')['users'];return _0x40320a['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x40320a['lazyRoots'],(_0x40320a['plugins']['push'](ht,u,v,class extends _0x1f6d35{static get['requires'](){return[u,'Users'];}['init'](){const _0x33b314=this['editor']['plugins']['get']('Users');for(const _0x4cbe49 of _0x3f9983)_0x4cbe49['isAnonymous']||_0x33b314['getUser'](_0x4cbe49['id'])||_0x33b314['addUser'](_0x4cbe49);const _0x4bbe4d=_0x4f93a8['repository']['getRevisions']();let _0x4832f7=null;const _0x3bdc10=this['editor']['plugins']['get']('RevisionViewer');_0x3bdc10['adapter']=_0x4f93a8['adapter'],_0x3bdc10['bind']('isEnabled')['to'](_0x4f93a8),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0xacc44,'isReadOnly',_0x619a04=>!_0x619a04);for(const _0x366cef of _0x4bbe4d){const _0x202c67=null===_0x366cef['creator'];if(_0x202c67&&_0x366cef['toVersion']===_0x366cef['fromVersion'])continue;const _0x56174d=_0x366cef['toJSON']();_0x3bdc10['addRevisionData'](_0x56174d,(_0x243abd,_0x56bd28,_0xa1abc3)=>{if(_0x202c67){if(_0x4832f7)_0x4832f7['_update'](_0x243abd,_0x56bd28);else{if(!_0x56bd28){const _0x163147=_0xa1abc3['toJSON']();_0x163147['id']=_0xc9fc17(),_0x4f93a8['saveRevision'](_0x163147,_0xa1abc3['toVersion'])['then'](_0x46960b=>{_0x4832f7=_0x46960b;});}}}else _0x366cef['_update'](_0x243abd,_0x56bd28);});}}},d),_0x40320a);}['_enhanceShowRevisionViewerCallback'](){const _0x297945=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x2f556e=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x5a9f62=this['editor']['plugins']['get']('Autosave');await _0x5a9f62['save']();}else await _0x2f556e['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x4178a8=this['editor']['plugins']['get']('Dialog');_0x4178a8['isOpen']&&_0x4178a8['hide']();}if(this['editor']['plugins']['has']('AITabs')){const _0x2926b0=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x488bbc of _0x2926b0)_0x488bbc['class']=_0x488bbc['class']?_0x488bbc['class']+'\x20ck-tab-panel_disabled':'ck-tab-panel_disabled';if(this['editor']['plugins']['has']('AIChat')){const _0xe0730e=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0xe0730e&&_0xe0730e['setAttribute']('tabindex','-1');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x5bc64b=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x5bc64b&&_0x5bc64b['setAttribute']('tabindex','-1');}}const _0x3435a0=this['_getRevisionViewerEditorConfig']();return _0x297945(_0x3435a0)['then'](_0x2362ac=>{return(this['_viewerEditor']=_0x2362ac,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'),_0x2362ac);})['catch'](_0x339a93=>(console['error'](_0x339a93),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x292403=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 _0x3fb4db=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x36b8d2 of _0x3fb4db)_0x36b8d2['class']='ck-tab-panel_disabled'===_0x36b8d2['class']?'':_0x36b8d2['class']['replace']('\x20ck-tab-panel_disabled','');if(this['editor']['plugins']['has']('AIChat')){const _0x1ca843=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x1ca843&&_0x1ca843['removeAttribute']('tabindex');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0xd4f616=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0xd4f616&&_0xd4f616['removeAttribute']('tabindex');}}return this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x292403(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x1640ca=this['editor']['plugins']['get']('Annotations');_0x1640ca['refreshVisibility'](),_0x1640ca['refreshPositioning']();}});});}['_showRevisionViewer'](_0x1092db){const _0x2bd283=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x6d7e77=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x3c8d5c=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return f['create'](_0x3c8d5c,_0x1092db)['then'](_0xf92c2e=>(_0x6d7e77['style']['display']='block',_0x2bd283['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0xf92c2e));}['_closeRevisionViewer'](_0x808892){const _0x875f47=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x875f47['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x808892['destroy']();}async['_restoreRevision'](_0x24590c){const _0x2672a4=this['editor'],_0xa65332=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x583ec6=_0x2672a4['plugins']['get']('RevisionTracker'),_0x505172=_0x2672a4['plugins']['get']('RevisionHistoryUtils'),_0x50594c=_0xa65332['repository']['getRevision'](_0x24590c);let _0x25df1b,_0x3498a5,_0x191937;try{await _0x505172['loadRevisionData'](_0x50594c,this['adapter']),_0x25df1b=_0x505172['getRevisionDocumentData'](_0x50594c),_0x3498a5=_0x505172['getRevisionRootsAttributes'](_0x50594c);}catch(_0x170ec2){return void console['error'](_0x170ec2);}_0x2672a4['model']['change'](_0x1b9b7e=>{for(const _0x3df498 of Array['from'](_0x2672a4['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x1b9b7e['removeMarker'](_0x3df498);}),_0xa65332['isReady']=!0x1,_0x2672a4['model']['enqueueChange'](_0x5c76ae=>{_0x5c76ae['setSelection'](null),_0x5c76ae['removeSelectionAttribute'](_0x2672a4['model']['document']['selection']['getAttributeKeys']());const _0x53bd43=Object['keys'](_0x25df1b);for(const _0x10ed99 of _0x2672a4['model']['document']['roots'])'$graveyard'!=_0x10ed99['rootName']&&_0x10ed99['isAttached']()&&!_0x53bd43['includes'](_0x10ed99['rootName'])&&_0x5c76ae['detachRoot'](_0x10ed99);for(const _0x3e08b0 of _0x53bd43){let _0x53bbef=_0x2672a4['model']['document']['getRoot'](_0x3e08b0);_0x53bbef&&_0x53bbef['isAttached']()||(_0x53bbef=_0x5c76ae['addRoot'](_0x3e08b0));const _0x25251c=_0x3498a5[_0x3e08b0],_0x216cb8=Object['keys'](_0x25251c),_0x180dd2=_0x25df1b[_0x3e08b0];for(const _0xa8c53 of _0x53bbef['getAttributeKeys']())_0x216cb8['includes'](_0xa8c53)||_0x5c76ae['removeAttribute'](_0xa8c53,_0x53bbef);for(const _0x5d4910 of _0x216cb8)_0x5c76ae['setAttribute'](_0x5d4910,_0x3498a5[_0x3e08b0][_0x5d4910],_0x53bbef);_0x5c76ae['remove'](_0x5c76ae['createRangeIn'](_0x53bbef)),_0x5c76ae['insert'](_0x2672a4['data']['parse'](_0x180dd2,_0x53bbef),_0x53bbef,0x0);}});const _0x4fb299=m(_0x2672a4['locale'],'Restored');if(_0x50594c['name'])_0x191937=-0x1==_0x50594c['name']['indexOf'](_0x4fb299)?_0x4fb299+':\x20'+_0x50594c['name']:_0x50594c['name'];else _0x191937=_0x4fb299+':\x20'+(_0x50594c['createdAt']['toLocaleDateString'](_0x2672a4['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x50594c['createdAt']['toLocaleTimeString'](_0x2672a4['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x583ec6['saveRevision']({'name':_0x191937}),_0xa65332['isReady']=!0x0,_0x2672a4['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{nt as RestoreRevisionCommand,I as Revision,ct as RevisionHistory,l as RevisionHistoryUI,$ as RevisionHistoryUtils,h as RevisionTracker,u as RevisionViewer,f as RevisionViewerEditor,ht as RevisionViewerIntegration,ji as RevisionViewerLoadingOverlay,v as RevisionViewerUI,S as RevisionsRepository,d as RevisionsSidebar,rt as ShowChangeCommand};
|
|
29
|
+
at();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}constructor(_0x372643){super(_0x372643),this['_revisionViewer']=_0x372643['plugins']['get'](u),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x410ec4=this['_revisionsRepository']['_revisions'],_0xca5cc8=this['_createRevisionActions'](),_0xb2da05=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new di(this['editor']['locale'],_0x410ec4,_0xca5cc8,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',(_0x184efe,_0x4bcf0f)=>{_0x4bcf0f['revisionViews']['on']('add',(_0x2dd409,_0x22bf00)=>{_0x22bf00['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)),_0xb2da05['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x3d51dc=this['_revisionsRepository']['getRevision'](0x0);if(_0x3d51dc){const _0x257f88=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x3d51dc['id']);this['_revisionViewer']['compare'](_0x3d51dc,_0x257f88);}}['_handleRevisionSelected'](_0xb72c9e,_0xe21a22){const _0x5e7e5e=this['_revisionsRepository']['getRevision'](_0xe21a22['id']),_0x44a599=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x5e7e5e['id']);this['_revisionViewer']['compare'](_0x5e7e5e,_0x44a599);}['_handleRevisionSetName'](_0xaf51f3,_0x403c3f){this['_revisionsRepository']['getRevision'](_0x403c3f['id'])['setName'](_0x403c3f['name']);}['_handleDiffChange'](_0x5dd7b,_0x1a4b21,_0x42f639){const _0x13ac3a=this['_revisionsRepository']['getRevisionsInDiff'](_0x42f639);_0x13ac3a['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x13ac3a),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x13ac3a[0x0]));}['_createRevisionActions'](){const _0x2dffa9=this['editor'],_0x2fe4fc=d['availableRevisionActions'],_0x365448=_0x2dffa9['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x365448['length'])return _0x365448['map'](_0x440d1b=>{const _0x3351d1='string'==typeof _0x440d1b?Object['assign']({},_0x2fe4fc[_0x440d1b]):_0x440d1b;return _0x3351d1['action']=_0x3351d1['action']['bind'](this,_0x2dffa9),_0x3351d1['isVisible']&&(_0x3351d1['isVisible']=_0x3351d1['isVisible']['bind'](this,_0x2dffa9)),_0x3351d1;});}}function at(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0xc8c1fc},_0x17b2a0)=>{const _0x5aba86=_0xc8c1fc['get'](u),_0x6afaea=_0x5aba86['repository'];let _0x231f17=_0x5aba86['diff']['newRevisionId'],_0xca5856=_0x17b2a0['id'];_0x6afaea['getIndex'](_0x231f17)>_0x6afaea['getIndex'](_0xca5856)&&([_0x231f17,_0xca5856]=[_0xca5856,_0x231f17]),_0x5aba86['compare'](_0x231f17,_0xca5856);},'isVisible':({plugins:_0x266f37},_0x370f50)=>{const _0x30c930=_0x266f37['get'](u);return!(_0x30c930['repository']['getRevisionsInDiff'](_0x30c930['diff'])['length']>0x2)&&!_0x370f50['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x4c771e,{id:_0x2b0a20})=>{_0x4c771e['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x2b0a20);},'isVisible':({plugins:_0x1172dc},_0x3f6216)=>!!_0x1172dc['get'](u)['repository']['getLaterVisibleRevision'](_0x3f6216['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x5138c3},{id:_0x42c1e2,revisionNameView:_0x919c3f})=>{const _0x38c180=_0x5138c3['get'](u),_0x521710=_0x38c180['repository']['getEarlierVisibleRevision'](_0x42c1e2);_0x38c180['compare'](_0x42c1e2,_0x521710),_0x919c3f['focus'](),_0x919c3f['fieldView']['select']();}}};}class Z extends tt{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x53e0b5,_0x19dc3f){super(_0x53e0b5),this['_view']=_0x19dc3f,this['_toolbarConfig']=st(_0x53e0b5['config']['get']('toolbar')),this['_elementReplacer']=new it();}get['element'](){return this['view']['element'];}['init'](_0x58593a){const _0x2344ac=this['editor'],_0x3630ec=this['view'],_0x519a10=_0x2344ac['editing']['view'],_0x1f6849=_0x3630ec['editable'],_0x55b6c8=_0x519a10['document']['getRoot']();_0x1f6849['name']=_0x55b6c8['rootName'],_0x3630ec['render']();const _0x487788=_0x1f6849['element'];this['setEditableElement'](_0x1f6849['name'],_0x487788),_0x3630ec['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x519a10['attachDomRoot'](_0x487788),this['_elementReplacer']['replace'](_0x58593a,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0xaadb9a=this['view'],_0x5a7f88=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x5a7f88['detachDomRoot'](_0xaadb9a['editable']['name']),_0xaadb9a['destroy']();}['_initToolbar'](){const _0x2cd2e2=this['view'];_0x2cd2e2['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x2cd2e2['stickyPanel']['limiterElement']=_0x2cd2e2['element'],_0x2cd2e2['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x20d7bf})=>_0x20d7bf),_0x2cd2e2['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x2cd2e2['toolbar']);}}class ii extends _0x10dfd8{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x53b8fe,_0x28646f,_0x298453={}){super(_0x53b8fe),this['stickyPanel']=new _0x474490(_0x53b8fe),this['toolbar']=new _0x2f00f8(_0x53b8fe,{'shouldGroupWhenFull':_0x298453['shouldToolbarGroupWhenFull']}),this['_editable']=new te(_0x53b8fe,_0x28646f);}['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
|
+
_0x57ec93(_0x18abd4){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x3fd2f7,_0x27b4a9){super(_0x27b4a9),this['sourceElement']=_0x3fd2f7,this['model']['document']['createRoot']();const _0x569a8c=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x569a8c);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x577861,_0x489649){const _0x19886d=new this(_0x577861,_0x489649);return await _0x19886d['initPlugins'](),await _0x19886d['ui']['init'](_0x577861),await _0x19886d['data']['init'](_0x19886d['config']['get']('initialData')||''),_0x19886d['fire']('ready'),_0x19886d;}}const p=['RevisionHistoryUI','RestrictedEditingMode','AIChat','AIReviewMode','AIBalloon','AIQuickActions','AIActions'];class ht extends _0x4b71e4{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xc4dc27){function _0xa42d42(_0x565fe4){return _0x565fe4['map'](_0x1d6d51=>String['fromCharCode'](_0x1d6d51))['join']('');}super(_0xc4dc27),this['result']='end',_0xc4dc27[_0xa42d42([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xa42d42([0x76,0x69,0x65,0x77])][_0xa42d42([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xa42d42([0x61,0x75,0x74,0x6f]),_0xc4dc27[_0xa42d42([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0xa42d42([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xa42d42([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0xa42d42([0x73,0x74,0x61,0x74,0x75,0x73])]:_0xa42d42([0x6f,0x6b])});}}class ct extends _0x4b71e4{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,l];}constructor(_0x5b3cd4){if(super(_0x5b3cd4),!this['editor']['config']['get']('revisionHistory'))throw new _0x2520ea('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x142023=>this['_showRevisionViewer']({..._0x142023,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x322230=>this['_closeRevisionViewer'](_0x322230)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x39e880=>this['_restoreRevision'](_0x39e880)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x4d2491){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x4d2491;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x37bcb6){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x37bcb6);}['getRevision'](_0x46fb3b){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x46fb3b);}['getRevisions'](_0x4a6d1c){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x4a6d1c||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x398f89=this['editor'],_0x5e3678=_0x1498a0(_0x398f89,p),_0x499d97=_0x398f89['plugins']['get']('RevisionTracker'),_0x274b2c=_0x398f89['plugins']['get']('Users')['users'];return _0x5e3678['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x5e3678['lazyRoots'],(_0x5e3678['plugins']['push'](ht,u,v,class extends _0x4b71e4{static get['requires'](){return[u,'Users'];}['init'](){const _0x5b6939=this['editor']['plugins']['get']('Users');for(const _0x31298d of _0x274b2c)_0x31298d['isAnonymous']||_0x5b6939['getUser'](_0x31298d['id'])||_0x5b6939['addUser'](_0x31298d);const _0x12fb07=_0x499d97['repository']['getRevisions']();let _0x35709f=null;const _0x11bfd9=this['editor']['plugins']['get']('RevisionViewer');_0x11bfd9['adapter']=_0x499d97['adapter'],_0x11bfd9['bind']('isEnabled')['to'](_0x499d97),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x398f89,'isReadOnly',_0x48efd5=>!_0x48efd5);for(const _0x120e17 of _0x12fb07){const _0x5e9c68=null===_0x120e17['creator'];if(_0x5e9c68&&_0x120e17['toVersion']===_0x120e17['fromVersion'])continue;const _0x5acb11=_0x120e17['toJSON']();_0x11bfd9['addRevisionData'](_0x5acb11,(_0x3383cb,_0x3f1fc9,_0x17bef9)=>{if(_0x5e9c68){if(_0x35709f)_0x35709f['_update'](_0x3383cb,_0x3f1fc9);else{if(!_0x3f1fc9){const _0x31d2b7=_0x17bef9['toJSON']();_0x31d2b7['id']=_0x118ae2(),_0x499d97['saveRevision'](_0x31d2b7,_0x17bef9['toVersion'])['then'](_0x502360=>{_0x35709f=_0x502360;});}}}else _0x120e17['_update'](_0x3383cb,_0x3f1fc9);});}}},d),_0x5e3678);}['_enhanceShowRevisionViewerCallback'](){const _0x34219a=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x27868a=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x51b31a=this['editor']['plugins']['get']('Autosave');await _0x51b31a['save']();}else await _0x27868a['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x3531e2=this['editor']['plugins']['get']('Dialog');_0x3531e2['isOpen']&&_0x3531e2['hide']();}if(this['editor']['plugins']['has']('AITabs')){const _0x74f720=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x380ff0 of _0x74f720)_0x380ff0['class']=_0x380ff0['class']?_0x380ff0['class']+'\x20ck-tab-panel_disabled':'ck-tab-panel_disabled';if(this['editor']['plugins']['has']('AIChat')){const _0x586906=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x586906&&_0x586906['setAttribute']('tabindex','-1');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x31d4a2=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x31d4a2&&_0x31d4a2['setAttribute']('tabindex','-1');}}const _0x3d235a=this['_getRevisionViewerEditorConfig']();return _0x34219a(_0x3d235a)['then'](_0x4f8665=>{return(this['_viewerEditor']=_0x4f8665,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'),_0x4f8665);})['catch'](_0x11f883=>(console['error'](_0x11f883),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x2b8731=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 _0x3c187c=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x18d905 of _0x3c187c)_0x18d905['class']='ck-tab-panel_disabled'===_0x18d905['class']?'':_0x18d905['class']['replace']('\x20ck-tab-panel_disabled','');if(this['editor']['plugins']['has']('AIChat')){const _0x16d6fa=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x16d6fa&&_0x16d6fa['removeAttribute']('tabindex');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x210e12=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x210e12&&_0x210e12['removeAttribute']('tabindex');}}return this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x2b8731(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0xdb1fd4=this['editor']['plugins']['get']('Annotations');_0xdb1fd4['refreshVisibility'](),_0xdb1fd4['refreshPositioning']();}});});}['_showRevisionViewer'](_0x22cc53){const _0xf4f987=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x5edcaf=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x3a68e3=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return f['create'](_0x3a68e3,_0x22cc53)['then'](_0x145d2f=>(_0x5edcaf['style']['display']='block',_0xf4f987['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x145d2f));}['_closeRevisionViewer'](_0x2265e1){const _0x56fb4b=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x56fb4b['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x2265e1['destroy']();}async['_restoreRevision'](_0x2d5c12){const _0x1e527b=this['editor'],_0x22ee1e=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x214ebf=_0x1e527b['plugins']['get']('RevisionTracker'),_0x3115cc=_0x1e527b['plugins']['get']('RevisionHistoryUtils'),_0x57b4c5=_0x22ee1e['repository']['getRevision'](_0x2d5c12);let _0x213d0e,_0x1a2f0c,_0xd7bbd4;try{await _0x3115cc['loadRevisionData'](_0x57b4c5,this['adapter']),_0x213d0e=_0x3115cc['getRevisionDocumentData'](_0x57b4c5),_0x1a2f0c=_0x3115cc['getRevisionRootsAttributes'](_0x57b4c5);}catch(_0x4f935f){return void console['error'](_0x4f935f);}_0x1e527b['model']['change'](_0x1d6848=>{for(const _0x3850d1 of Array['from'](_0x1e527b['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x1d6848['removeMarker'](_0x3850d1);}),_0x22ee1e['isReady']=!0x1,_0x1e527b['model']['enqueueChange'](_0x106b19=>{_0x106b19['setSelection'](null),_0x106b19['removeSelectionAttribute'](_0x1e527b['model']['document']['selection']['getAttributeKeys']());const _0x3b3c86=Object['keys'](_0x213d0e);for(const _0x6162be of _0x1e527b['model']['document']['roots'])'$graveyard'!=_0x6162be['rootName']&&_0x6162be['isAttached']()&&!_0x3b3c86['includes'](_0x6162be['rootName'])&&_0x106b19['detachRoot'](_0x6162be);for(const _0x348dc6 of _0x3b3c86){let _0x259722=_0x1e527b['model']['document']['getRoot'](_0x348dc6);_0x259722&&_0x259722['isAttached']()||(_0x259722=_0x106b19['addRoot'](_0x348dc6));const _0x3e16a4=_0x1a2f0c[_0x348dc6],_0x32a065=Object['keys'](_0x3e16a4),_0x1d8dbf=_0x213d0e[_0x348dc6];for(const _0xca6e9c of _0x259722['getAttributeKeys']())_0x32a065['includes'](_0xca6e9c)||_0x106b19['removeAttribute'](_0xca6e9c,_0x259722);for(const _0x6347a1 of _0x32a065)_0x106b19['setAttribute'](_0x6347a1,_0x1a2f0c[_0x348dc6][_0x6347a1],_0x259722);_0x106b19['remove'](_0x106b19['createRangeIn'](_0x259722)),_0x106b19['insert'](_0x1e527b['data']['parse'](_0x1d8dbf,_0x259722),_0x259722,0x0);}});const _0x137dfc=m(_0x1e527b['locale'],'Restored');if(_0x57b4c5['name'])_0xd7bbd4=-0x1==_0x57b4c5['name']['indexOf'](_0x137dfc)?_0x137dfc+':\x20'+_0x57b4c5['name']:_0x57b4c5['name'];else _0xd7bbd4=_0x137dfc+':\x20'+(_0x57b4c5['createdAt']['toLocaleDateString'](_0x1e527b['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x57b4c5['createdAt']['toLocaleTimeString'](_0x1e527b['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x214ebf['saveRevision']({'name':_0xd7bbd4}),_0x22ee1e['isReady']=!0x0,_0x1e527b['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};
|