@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20250825.0 → 0.0.0-nightly-20250826.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/dist/index.js +7 -7
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +11 -11
- package/src/changeitem.js +2 -2
- package/src/editor/revisionviewereditor.js +2 -2
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/index.js +1 -1
- package/src/revision.js +2 -2
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/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
|
-
_0x3d728e(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x4fa01f){super(),this['id']=_0x4fa01f['id']||_0x42f13a(),this['creator']=_0x4fa01f['creator']||null,this['authors']=_0x4fa01f['authors']||[],this['diffData']=_0x4fa01f['diffData']||null,this['toVersion']=_0x4fa01f['toVersion']||0x0,this['fromVersion']=_0x4fa01f['fromVersion']||0x0,this['set']('name',_0x4fa01f['name']||''),this['set']('createdAt',_0x4fa01f['createdAt']||new Date()),this['set']('attributes',_0x4fa01f['attributes']||{});}['setName'](_0x172127){this['_update']({'name':_0x172127});}['setAttribute'](_0x32cc65,_0x20ebc6){const _0x39dcfc=_0x5e8bc8(this['attributes']);_0x5b0661(_0x39dcfc,_0x32cc65,_0x20ebc6),this['_update']({'attributes':_0x39dcfc});}['removeAttribute'](_0x26762b){const _0x45f9d5=_0x5e8bc8(this['attributes']);_0x11af98(_0x45f9d5,_0x26762b),this['_update']({'attributes':_0x45f9d5});}['_update'](_0x3d468d,_0x5842ff=!0x1){let _0x5bf742=!0x1;const _0x5dd436={'id':this['id']},_0x4b9529=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x158fbf of _0x4b9529){const _0x54239e=_0x3d468d[_0x158fbf];void 0x0!==_0x54239e&&_0x54239e!==this[_0x158fbf]&&(this[_0x158fbf]=_0x54239e,_0x5dd436[_0x158fbf]=_0x54239e,_0x5bf742=!0x0);}_0x5bf742&&(_0x5dd436['authors']&&(_0x5dd436['authorsIds']=_0x5dd436['authors']['map'](_0x4e2e38=>_0x4e2e38['id']),delete _0x5dd436['authors']),this['fire']('_update',_0x5dd436,_0x5842ff));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x2c6804=>_0x2c6804['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x596849{['_revisions'];static get['requires'](){return[_0x4ea576];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x26574b){super(_0x26574b),this['_revisions']=new _0x1a0ead();}['afterInit'](){!async function(_0x7ec589){const _0x5b1950=_0x2fff9b([0x73,0x47,0x36,0x35,0x43,0x72,0x6b,0x31,0x63,0x64,0x32,0x69,0x67,0x4c,0x4e,0x37,0x7a,0x49,0x45,0x41,0x59,0x6a,0x75,0x39,0x4a,0x33,0x68,0x62,0x50,0x42,0x74,0x6e,0x46,0x4d,0x78,0x51,0x66,0x34,0x48,0x77,0x5a,0x61,0x6c,0x30,0x71,0x54,0x53,0x56,0x4b,0x79,0x44,0x6d,0x6f,0x52,0x76,0x55,0x58,0x65,0x70,0x57,0x4f,0x38]),_0x1bc1b6=0xeb829,_0x42749b=0x7374585f,_0x2229b5=0x73732927^_0x42749b,_0x3da55a=window[_0x2fff9b([0x44,0x61,0x74,0x65])][_0x2fff9b([0x6e,0x6f,0x77])](),_0x4510a7=_0x7ec589[_0x2fff9b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x47370a=new window[(_0x2fff9b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1877c8=>{_0x4510a7[_0x2fff9b([0x6f,0x6e,0x63,0x65])](_0x2fff9b([0x72,0x65,0x61,0x64,0x79]),_0x1877c8);}),_0x58038b={[_0x2fff9b([0x6b,0x74,0x79])]:_0x2fff9b([0x45,0x43]),[_0x2fff9b([0x75,0x73,0x65])]:_0x2fff9b([0x73,0x69,0x67]),[_0x2fff9b([0x63,0x72,0x76])]:_0x2fff9b([0x50,0x2d,0x32,0x35,0x36]),[_0x2fff9b([0x78])]:_0x2fff9b([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]),[_0x2fff9b([0x79])]:_0x2fff9b([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]),[_0x2fff9b([0x61,0x6c,0x67])]:_0x2fff9b([0x45,0x53,0x32,0x35,0x36])},_0x323aea=_0x4510a7[_0x2fff9b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2fff9b([0x67,0x65,0x74])](_0x2fff9b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xb1cde8(){let _0x519f07,_0x570f02=null,_0x286ba6=null;try{if(_0x323aea==_0x2fff9b([0x47,0x50,0x4c]))return _0x2fff9b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x519f07=_0x30ead8(),!_0x519f07)return _0x2fff9b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x519f07[_0x2fff9b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x286ba6=_0x3287e2(_0x519f07[_0x2fff9b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x519f07[_0x2fff9b([0x6a,0x74,0x69])])),await _0x6777e1()?_0x4a4fc7()?_0x4d9d25()?_0x2fff9b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1d7531()?(_0x519f07[_0x2fff9b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2fff9b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x570f02=_0x53c675(_0x2fff9b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x519f07[_0x2fff9b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2fff9b([0x74,0x72,0x69,0x61,0x6c])&&(_0x570f02=_0x53c675(_0x2fff9b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x197769()):_0x2fff9b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2fff9b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2fff9b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2fff9b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4d9d25(){const _0x3e7187=[_0x2fff9b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2fff9b([0x74,0x72,0x69,0x61,0x6c])][_0x2fff9b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x519f07[_0x2fff9b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3da55a/0x3e8:0xe10*_0x2229b5;return _0x519f07[_0x2fff9b([0x65,0x78,0x70])]<_0x3e7187;}function _0x4a4fc7(){const _0x574151=_0x519f07[_0x2fff9b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x574151)return!0x1;if(_0x574151[_0x2fff9b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2fff9b([0x2a])))return!0x0;if(_0x574151[_0x2fff9b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2fff9b([0x52,0x48])))return!0x0;if(_0x574151[_0x2fff9b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2fff9b([0x52,0x52,0x48]))){if(_0x19e60d())return!0x0;if(_0x3b11b8()||_0x5ffaec())return!0x0;}return!0x1;}function _0x1d7531(){const _0x169ddf=_0x519f07[_0x2fff9b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x169ddf||0x0==_0x169ddf[_0x2fff9b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x26b9ed}=new URL(window[_0x2fff9b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x169ddf[_0x2fff9b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x26b9ed))return!0x0;const _0x3c6f23=_0x26b9ed[_0x2fff9b([0x73,0x70,0x6c,0x69,0x74])](_0x2fff9b([0x2e]));return _0x169ddf[_0x2fff9b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x40b1d0=>_0x40b1d0[_0x2fff9b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2fff9b([0x2a])))[_0x2fff9b([0x6d,0x61,0x70])](_0xe55ab=>_0xe55ab[_0x2fff9b([0x73,0x70,0x6c,0x69,0x74])](_0x2fff9b([0x2e])))[_0x2fff9b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2a9312=>_0x2a9312[_0x2fff9b([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3c6f23[_0x2fff9b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2fff9b([0x6d,0x61,0x70])](_0x2a37b1=>Array(_0x3c6f23[_0x2fff9b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2a37b1[_0x2fff9b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2fff9b([0x66,0x69,0x6c,0x6c])](_0x2a37b1[0x0]===_0x2fff9b([0x2a])?_0x2fff9b([0x2a]):'')[_0x2fff9b([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2a37b1))[_0x2fff9b([0x73,0x6f,0x6d,0x65])](_0x4cd81f=>_0x3c6f23[_0x2fff9b([0x65,0x76,0x65,0x72,0x79])]((_0x2f04ad,_0x53372b)=>_0x4cd81f[_0x53372b]===_0x2f04ad||_0x4cd81f[_0x53372b]===_0x2fff9b([0x2a])));}function _0x197769(){return _0x570f02&&_0x286ba6?new window[(_0x2fff9b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3c178d,_0xbfc833)=>{_0x570f02[_0x2fff9b([0x74,0x68,0x65,0x6e])](_0x3c178d,_0xbfc833),_0x286ba6[_0x2fff9b([0x74,0x68,0x65,0x6e])](_0xaf730e=>{_0xaf730e!=_0x2fff9b([0x56,0x61,0x6c,0x69,0x64])&&_0x3c178d(_0xaf730e);},_0xbfc833);}):_0x570f02||_0x286ba6||_0x2fff9b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3287e2(_0x12b1f0,_0x5bfafa){return new window[(_0x2fff9b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x231571=>{if(_0x2cae61())return _0x231571(_0x2fff9b([0x56,0x61,0x6c,0x69,0x64]));_0x5d6e8f(),_0x4510a7[_0x2fff9b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2fff9b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x522a61=!0x1;const _0x17e361=_0x42f13a();function _0x41443f(_0x3a21d){return!!_0x3a21d&&(typeof _0x3a21d===_0x2fff9b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3a21d===_0x2fff9b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3a21d[_0x2fff9b([0x74,0x68,0x65,0x6e])]===_0x2fff9b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3a21d[_0x2fff9b([0x63,0x61,0x74,0x63,0x68])]===_0x2fff9b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x44b5c9(_0x4e0591){_0x4d83ac(_0x4e0591)[_0x2fff9b([0x74,0x68,0x65,0x6e])](_0xafb632=>{if(!_0xafb632||_0xafb632[_0x2fff9b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2fff9b([0x6f,0x6b]))return _0x2fff9b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x28ecfa(_0x11160d(_0x17e361+_0x5bfafa))!=_0xafb632[_0x2fff9b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2fff9b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2fff9b([0x56,0x61,0x6c,0x69,0x64]);})[_0x2fff9b([0x74,0x68,0x65,0x6e])](_0x3aab59=>(_0x36ca2b(),_0x3aab59),()=>{const _0x54af9c=_0x1ad4ca();return null==_0x54af9c?(_0x36ca2b(),_0x2fff9b([0x56,0x61,0x6c,0x69,0x64])):_0x2fff9b(_0x3da55a-_0x54af9c>(0x5778dc5f^_0x42749b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2fff9b([0x74,0x68,0x65,0x6e])](_0x231571)[_0x2fff9b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x231571(_0x2fff9b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x22cade=0x7342b6df^_0x42749b;function _0x36ca2b(){const _0x256e44=_0x2fff9b([0x6c,0x6c,0x63,0x74,0x2d])+_0x28ecfa(_0x11160d(_0x12b1f0)),_0x4753e6=_0x3faf8b(_0x28ecfa(window[_0x2fff9b([0x4d,0x61,0x74,0x68])][_0x2fff9b([0x63,0x65,0x69,0x6c])](_0x3da55a/_0x22cade)));window[_0x2fff9b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2fff9b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x256e44,_0x4753e6);}function _0x1ad4ca(){const _0x24bbd3=_0x2fff9b([0x6c,0x6c,0x63,0x74,0x2d])+_0x28ecfa(_0x11160d(_0x12b1f0)),_0x3b9bc5=window[_0x2fff9b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2fff9b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x24bbd3);return _0x3b9bc5?window[_0x2fff9b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3faf8b(_0x3b9bc5),0x10)*_0x22cade:null;}function _0x4d83ac(_0x845e66){return new window[(_0x2fff9b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2976c7,_0x12b28b)=>{_0x845e66[_0x2fff9b([0x74,0x68,0x65,0x6e])](_0x2976c7,_0x12b28b),window[_0x2fff9b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x12b28b,0x73758c9f^_0x42749b);});}}_0x4510a7[_0x2fff9b([0x6f,0x6e])](_0x2fff9b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x148d53,_0x3d5859)=>{if(_0x3d5859[0x0]!=_0x12b1f0)return _0x231571(_0x2fff9b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3d5859[0x1]={..._0x3d5859[0x1],[_0x2fff9b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x17e361};},{[_0x2fff9b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2fff9b([0x68,0x69,0x67,0x68])}),_0x4510a7[_0x2fff9b([0x6f,0x6e])](_0x2fff9b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x15b5b7=>{_0x41443f(_0x15b5b7[_0x2fff9b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x522a61=!0x0,_0x44b5c9(_0x15b5b7[_0x2fff9b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2fff9b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2fff9b([0x6c,0x6f,0x77])}),_0x47370a[_0x2fff9b([0x74,0x68,0x65,0x6e])](()=>{_0x522a61||_0x231571(_0x2fff9b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2cae61(){return _0x4510a7[_0x2fff9b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2fff9b([0x76,0x69,0x65,0x77])][_0x2fff9b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2fff9b([0x61,0x75,0x74,0x6f]);}function _0x5d6e8f(){_0x4510a7[_0x2fff9b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2fff9b([0x76,0x69,0x65,0x77])][_0x2fff9b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2fff9b([0x61,0x75,0x74,0x6f]);}}function _0x53c675(_0x39215a){const _0x526c20=[new window[(_0x2fff9b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x334437=>setTimeout(_0x334437,0x737d6693^_0x42749b)),_0x47370a[_0x2fff9b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2fff9b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x36c037=>{const _0x1d6a78=0x73745858^_0x42749b,_0x3fa57a=_0x7ec589[_0x2fff9b([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x4c1ebc(){_0x3fa57a[_0x2fff9b([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x1d6a78&&_0x36c037();}_0x4c1ebc(),_0x3fa57a[_0x2fff9b([0x6f,0x6e])](_0x2fff9b([0x61,0x64,0x64]),_0x4c1ebc);})),new window[(_0x2fff9b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5674c9=>{function _0x1fcd97(){for(const _0x405445 in window)if(window[_0x2fff9b([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x2fff9b([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x405445))&&window[_0x405445]==_0x1bc1b6)return _0x5674c9();_0x4510a7[_0x2fff9b([0x73,0x74,0x61,0x74,0x65])]!=_0x2fff9b([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x2fff9b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1fcd97,0x73744bd7^_0x42749b);}_0x2333d5(_0x2fff9b([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x1fcd97();})];return window[_0x2fff9b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2fff9b([0x72,0x61,0x63,0x65])](_0x526c20)[_0x2fff9b([0x74,0x68,0x65,0x6e])](()=>_0x39215a);}async function _0x33fb1f(){if(await _0x47370a,_0x2333d5(_0x2fff9b([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x221c62=_0x7ec589[_0x2fff9b([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x479a7b=_0x7ec589[_0x2fff9b([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])](_0x221c62[_0x2fff9b([0x69,0x64])]),_0x3973a5=_0x16ee50(_0x2fff9b([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x3973a5[_0x2fff9b([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x221c62['id'],_0x479a7b?_0x479a7b['id']:null,!0x0),_0x3973a5[_0x2fff9b([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x2fff9b([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x3973a5[_0x2fff9b([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x3973a5[_0x2fff9b([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x2f1921,void(_0x3973a5[_0x2fff9b([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x2f1921);}if(_0x2333d5(_0x2fff9b([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x318aa9=_0x16ee50(_0x2fff9b([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x318aa9[_0x2fff9b([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x2fff9b([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x318aa9[_0x2fff9b([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x318aa9[_0x2fff9b([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x2f1921,_0x318aa9[_0x2fff9b([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x2f1921;}_0x4510a7[_0x2fff9b([0x6d,0x6f,0x64,0x65,0x6c])][_0x2fff9b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2f1921,_0x4510a7[_0x2fff9b([0x6d,0x6f,0x64,0x65,0x6c])][_0x2fff9b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2f1921,_0x4510a7[_0x2fff9b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2fff9b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x19e60d(){return _0x2333d5(_0x2fff9b([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x16ee50(_0x2fff9b([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x2fff9b([0x73,0x74,0x61,0x74,0x65])]==_0x2fff9b([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x3b11b8(){return _0x2333d5(_0x2fff9b([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 _0x5ffaec(){return _0x2333d5(_0x2fff9b([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x54c0f8(_0x1aacbf){const _0x56864e=_0x415994();_0x4510a7[_0x56864e]=_0x2fff9b([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])+_0x1aacbf,_0x1aacbf[_0x2fff9b([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x2fff9b([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x415994()]=_0x1bc1b6),_0x1aacbf!=_0x2fff9b([0x56,0x61,0x6c,0x69,0x64])&&_0x33fb1f();}function _0x415994(){const _0x4ec84f=window[_0x2fff9b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2fff9b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2fff9b([0x6e,0x6f,0x77])]())[_0x2fff9b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2fff9b([0x2e]),'');let _0x5b9877=_0x2fff9b([0x73]);for(let _0x57ff98=0x0;_0x57ff98<_0x4ec84f[_0x2fff9b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x57ff98+=0x2){let _0x24328b=window[_0x2fff9b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4ec84f[_0x2fff9b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x57ff98,_0x57ff98+0x2));_0x24328b>=_0x5b1950[_0x2fff9b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x24328b-=_0x5b1950[_0x2fff9b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5b9877+=_0x5b1950[_0x24328b];}return _0x5b9877;}function _0x30ead8(){const _0x2a4978=_0x323aea[_0x2fff9b([0x73,0x70,0x6c,0x69,0x74])](_0x2fff9b([0x2e]));if(0x3!=_0x2a4978[_0x2fff9b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x14c6dd(_0x2a4978[0x1]);function _0x14c6dd(_0x2c085d){const _0x463e4d=_0x40f5eb(_0x2c085d);return _0x463e4d&&_0x13cd79()?_0x463e4d:null;function _0x13cd79(){const _0x54513f=_0x463e4d[_0x2fff9b([0x6a,0x74,0x69])],_0x408c3d=window[_0x2fff9b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x54513f[_0x2fff9b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x54513f[_0x2fff9b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x388462={..._0x463e4d,[_0x2fff9b([0x6a,0x74,0x69])]:_0x54513f[_0x2fff9b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x54513f[_0x2fff9b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x388462[_0x2fff9b([0x76,0x63])],_0x11160d(_0x388462)==_0x408c3d;}}}async function _0x6777e1(){let _0x395dd0=!0x0;try{const _0x3b70a5=_0x323aea[_0x2fff9b([0x73,0x70,0x6c,0x69,0x74])](_0x2fff9b([0x2e])),[_0x1d864e,_0x5aa05d,_0x74592a]=_0x3b70a5;return _0xfddb93(_0x1d864e),await _0x9c201(_0x1d864e,_0x5aa05d,_0x74592a),_0x395dd0;}catch{return!0x1;}function _0xfddb93(_0x49b136){const _0x5eb124=_0x40f5eb(_0x49b136);_0x5eb124&&_0x5eb124[_0x2fff9b([0x61,0x6c,0x67])]==_0x2fff9b([0x45,0x53,0x32,0x35,0x36])||(_0x395dd0=!0x1);}async function _0x9c201(_0x4cb2b6,_0x245070,_0xf17ba9){const _0x3c0619=window[_0x2fff9b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2fff9b([0x66,0x72,0x6f,0x6d])](_0x4c3691(_0xf17ba9),_0x1f4ec2=>_0x1f4ec2[_0x2fff9b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x550351=new window[(_0x2fff9b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2fff9b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4cb2b6+_0x2fff9b([0x2e])+_0x245070),_0x2ee583=window[_0x2fff9b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2fff9b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2ee583)return;const _0x31fd85=await _0x2ee583[_0x2fff9b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2fff9b([0x6a,0x77,0x6b]),_0x58038b,{[_0x2fff9b([0x6e,0x61,0x6d,0x65])]:_0x2fff9b([0x45,0x43,0x44,0x53,0x41]),[_0x2fff9b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2fff9b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2fff9b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2ee583[_0x2fff9b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2fff9b([0x6e,0x61,0x6d,0x65])]:_0x2fff9b([0x45,0x43,0x44,0x53,0x41]),[_0x2fff9b([0x68,0x61,0x73,0x68])]:{[_0x2fff9b([0x6e,0x61,0x6d,0x65])]:_0x2fff9b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x31fd85,_0x3c0619,_0x550351)||(_0x395dd0=!0x1);}}function _0x40f5eb(_0x429579){return _0x429579[_0x2fff9b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2fff9b([0x65,0x79]))?JSON[_0x2fff9b([0x70,0x61,0x72,0x73,0x65])](_0x4c3691(_0x429579)):null;}function _0x4c3691(_0x2d940c){return window[_0x2fff9b([0x61,0x74,0x6f,0x62])](_0x2d940c[_0x2fff9b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2fff9b([0x2b]))[_0x2fff9b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2fff9b([0x2f])));}function _0x11160d(_0x509a5){let _0x2d5806=0x1505;function _0x251559(_0x5a9414){for(let _0x253d6f=0x0;_0x253d6f<_0x5a9414[_0x2fff9b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x253d6f++){const _0x76288=_0x5a9414[_0x2fff9b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x253d6f);_0x2d5806=(_0x2d5806<<0x5)+_0x2d5806+_0x76288,_0x2d5806&=_0x2d5806;}}function _0x2d28f9(_0x19d1ba){Array[_0x2fff9b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x19d1ba)?_0x19d1ba[_0x2fff9b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2d28f9):_0x19d1ba&&typeof _0x19d1ba==_0x2fff9b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2fff9b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x19d1ba)[_0x2fff9b([0x73,0x6f,0x72,0x74])]()[_0x2fff9b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x442ee2,_0x45677e])=>{_0x251559(_0x442ee2),_0x2d28f9(_0x45677e);}):_0x251559(window[_0x2fff9b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x19d1ba));}return _0x2d28f9(_0x509a5),_0x2d5806>>>0x0;}function _0x28ecfa(_0x506956){return _0x506956[_0x2fff9b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2fff9b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2fff9b([0x30]));}function _0x3faf8b(_0x2b3cad){return _0x2b3cad[_0x2fff9b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2fff9b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2fff9b([0x6a,0x6f,0x69,0x6e])]('');}function _0x2333d5(_0x2f7fab){return _0x4510a7[_0x2fff9b([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2fff9b([0x68,0x61,0x73])](_0x2f7fab);}function _0x16ee50(_0x36af48){return _0x4510a7[_0x2fff9b([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2fff9b([0x67,0x65,0x74])](_0x36af48);}function _0x2f1921(){}function _0x2fff9b(_0x54a0e1){return _0x54a0e1['map'](_0x42c55a=>String['fromCharCode'](_0x42c55a))['join']('');}_0x54c0f8(await _0xb1cde8());}(this);}['createRevision'](_0x5dad16){const _0x564b41=this['editor']['plugins']['get']('Users');return new I({'id':_0x5dad16['id'],'name':_0x5dad16['name'],'creator':_0x5dad16['creatorId']?_0x564b41['getUser'](_0x5dad16['creatorId']):null,'diffData':_0x5dad16['diffData']||_0x5dad16['data'],'authors':_0x5dad16['authorsIds']['map'](_0x3db1e8=>_0x564b41['getUser'](_0x3db1e8)),'createdAt':new Date(_0x5dad16['createdAt']),'attributes':_0x5dad16['attributes'],'fromVersion':_0x5dad16['fromVersion'],'toVersion':_0x5dad16['toVersion']});}['addRevision'](_0xc7e314,_0x4def45=0x0){this['_revisions']['add'](_0xc7e314,_0x4def45);}['getRevision'](_0x5e4dff){return this['_revisions']['get'](_0x5e4dff);}['getRevisions'](_0x72e3e2={'toJSON':!0x1}){const _0x4de4bf=Array['from'](this['_revisions']);return _0x4de4bf['reverse'](),_0x72e3e2['toJSON']?_0x4de4bf['map'](_0x1d300f=>_0x1d300f['toJSON']()):_0x4de4bf;}['getIndex'](_0x48e75b){return this['_revisions']['getIndex'](_0x48e75b);}['getEarlierVisibleRevision'](_0x3f66a7){const [,_0xab9671]=this['getRevisionsIterator'](_0x3f66a7,{'direction':'earlier'});return _0xab9671;}['getLaterVisibleRevision'](_0x2ac932){const [,_0x344292]=this['getRevisionsIterator'](_0x2ac932,{'direction':'later'});return _0x344292;}['getRevisionsInDiff'](_0x64f6d1){const _0x1d9816=[];for(const _0x4e3a52 of this['getRevisionsIterator'](_0x64f6d1['newRevisionId']))if(_0x1d9816['push'](_0x4e3a52),_0x4e3a52['id']===_0x64f6d1['oldRevisionId'])break;return _0x1d9816;}*['getRevisionsIterator'](_0x11d32b,{direction:_0x255034='earlier',filter:_0x5f2e84=()=>!0x0}={}){const _0x542884='earlier'===_0x255034?0x1:-0x1;let _0x2e0def=this['_revisions']['get'](_0x11d32b),_0x556551=this['getIndex'](_0x2e0def);for(yield _0x2e0def;_0x2e0def;){if(_0x556551+=_0x542884,_0x2e0def=this['getRevision'](_0x556551),!_0x2e0def)return;_0x5f2e84(_0x2e0def)&&(yield _0x2e0def);}}}class $ extends _0x596849{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x4362a6,'c'],[_0x39349b,'a'],[_0x399d1a,'e'],[_0x3dc40f,'r'],[_0x1e7cdf,'u']]);['_typeCharToViewClass']=new Map([['c',_0x4362a6],['a',_0x39349b],['e',_0x399d1a],['r',_0x3dc40f],['u',_0x1e7cdf]]);async['loadRevisionData'](_0x3a07bc,_0x11cfe0){if(_0x3a07bc['diffData']||!_0x11cfe0)return;const _0x321560=this['editor']['config']['get']('collaboration.channelId'),_0x462f56=await _0x11cfe0['getRevision']({'channelId':_0x321560,'revisionId':_0x3a07bc['id']});_0x3a07bc['diffData']=_0x462f56['diffData'];}['getRevisionDocumentData'](_0x46e5ad){const _0x4a9b73={};for(const _0x5dc378 in _0x46e5ad['diffData']){if(_0x46e5ad['diffData'][_0x5dc378]['attachChange']&&!_0x46e5ad['diffData'][_0x5dc378]['attachChange']['isAttached'])continue;const _0x49a637=this['_removeRevisionMarkers'](JSON['parse'](_0x46e5ad['diffData'][_0x5dc378]['insertions'])),_0x2cf058=this['editor']['editing']['view']['document'],_0xf756cc=new _0x3a5ba0(_0x2cf058,_0x49a637['map'](_0x47b65a=>this['_getViewFromDiffObj'](_0x47b65a,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x4a9b73[_0x5dc378]=this['editor']['data']['processor']['toData'](_0xf756cc),this['editor']['data']['processor']['useFillerType']('default');}return _0x4a9b73;}['getRevisionRootsAttributes'](_0x7479be){const _0x222258={};for(const _0x48f525 in _0x7479be['diffData'])_0x7479be['diffData'][_0x48f525]['attachChange']&&!_0x7479be['diffData'][_0x48f525]['attachChange']['isAttached']||(_0x222258[_0x48f525]=_0x7479be['diffData'][_0x48f525]['attributesAfter']||{});return _0x222258;}['_getTypeCharForViewElement'](_0x5bd264){return this['_viewClassToTypeChar']['get'](_0x5bd264['constructor']);}['_getViewFromDiffObj'](_0x523c2b,_0x244745){const _0x471bc3=this['editor']['editing']['view']['document'];if('string'==typeof _0x523c2b)return new _0x181d37(_0x471bc3,_0x523c2b);{let _0x403a1f,_0x28a022;_0x28a022='u'==_0x523c2b['type']||'r'==_0x523c2b['type']?[]:_0x523c2b['children']['map'](_0x7e81e1=>this['_getViewFromDiffObj'](_0x7e81e1,_0x244745));const _0x37e949=this['_typeCharToViewClass']['get'](_0x523c2b['type'])||_0x54cbe9,_0x6bcc3f=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x403a1f=new _0x37e949(_0x471bc3,_0x523c2b['name'],_0x523c2b['attributes'],_0x28a022),'u'==_0x523c2b['type']&&_0x523c2b['children'][0x0]){const _0x9f9bf0=_0x523c2b['children'][0x0];if(_0x403a1f['render']=function(_0x24c7b4){const _0x18a06d=_0x24c7b4['createElement']('div');return _0x18a06d['innerHTML']=_0x9f9bf0,_0x18a06d['childNodes'][0x0];},_0x244745){const _0x2c9477=new _0x3a5ba0(_0x471bc3);_0x2c9477['_appendChild'](_0x403a1f);const _0x502c70=Array['from'](_0x6bcc3f['viewChildrenToDom'](_0x2c9477,{'bind':!0x1})),_0x5b87b1=_0x6bcc3f['domDocument']['createElement']('div');_0x5b87b1['append'](..._0x502c70),_0x403a1f=Array['from'](_0x6bcc3f['domChildrenToView'](_0x5b87b1))[0x0];}}else{if('r'==_0x523c2b['type']&&_0x523c2b['children'][0x0]){const _0x4e775a=_0x523c2b['children'][0x0];if(_0x403a1f['render']=function(_0x44d97e){_0x44d97e['innerHTML']=_0x4e775a;},_0x244745){const _0x4cc18e=new _0x3a5ba0(_0x471bc3);_0x4cc18e['_appendChild'](_0x403a1f);const _0x3f0ab1=Array['from'](_0x6bcc3f['viewChildrenToDom'](_0x4cc18e,{'bind':!0x1})),_0x4d7310=_0x6bcc3f['domDocument']['createElement']('div');_0x4d7310['append'](..._0x3f0ab1);const _0x34080f=Array['from'](_0x6bcc3f['domChildrenToView'](_0x4d7310));_0x34080f['length']>0x1?_0x403a1f['_appendChild'](_0x34080f):_0x403a1f=_0x34080f[0x0];}}}if(_0x523c2b['customProperties']){for(const [_0x3abc16,_0x26cef4]of _0x523c2b['customProperties'])_0x403a1f['_setCustomProperty'](_0x3abc16,_0x26cef4);}const _0x2b39ed=void 0x0===_0x523c2b['fillerOffset']?null:_0x523c2b['fillerOffset'];return null!==_0x2b39ed&&(_0x403a1f['getFillerOffset']=()=>_0x2b39ed),_0x403a1f;}}['_makeModelFromViewString'](_0x372208){const _0x330845=JSON['parse'](_0x372208),_0x3292c5=this['editor']['editing']['view']['document'],_0x39cb41=new _0x3a5ba0(_0x3292c5,_0x330845['map'](_0x290e98=>this['_getViewFromDiffObj'](_0x290e98,!0x0)));return this['editor']['data']['toModel'](_0x39cb41);}['_removeRevisionMarkers'](_0x532163){return(_0x532163=_0x532163['filter'](_0x349182=>!_0x349182['name']||'revision-start'!==_0x349182['name']&&'revision-end'!==_0x349182['name']))['forEach'](_0x24b017=>{'string'!=typeof _0x24b017&&(_0x24b017['children']=this['_removeRevisionMarkers'](_0x24b017['children']),_0x24b017['attributes']=_0x24b017['attributes']['filter'](_0x2d942b=>!_0x2d942b[0x0]['startsWith']('data-revision-')));}),_0x532163;}}function R(_0x53f509,_0x8ebb41,_0xe55179){const t=_0x53f509['t'];switch(_0x8ebb41){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'},_0xe55179);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0xe55179);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 _0x596849{['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[_0x4ea576,S,$,_0x1d59c0];}constructor(_0x461830){super(_0x461830),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 _0x3f7357=_0x42f13a();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x3f7357},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 _0x31477b=this['repository']['getRevision'](0x0),_0x283498=_0x31477b&&null===_0x31477b['creator']?_0x31477b:null;if(this['_continueCurrentRevision']=!!_0x283498&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x180d3a=this['_source']['getCurrentRevisionId'](),_0x3c38c0=this['repository']['getRevision'](_0x180d3a);if(_0x3c38c0)this['_startingVersion']=_0x3c38c0['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x494e1e=this['_source']['history']['_operations']['find'](_0x335949=>!_0x335949['_isInit']),_0x294880=_0x494e1e?_0x494e1e['baseVersion']:this['_source']['history']['version'];_0x31477b?(_0x31477b['toVersion']<_0x294880&&_0x31477b['_update']({'toVersion':_0x294880}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x283498['id'],this['_startingVersion']=_0x283498['fromVersion']):(this['_startingVersion']=_0x31477b['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x294880,this['_continueCurrentRevision']=!0x1);}}else _0x283498&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x283498['toVersion'],this['editor']['model']['document']['history']['version']),_0x283498['fromVersion']===_0x283498['toVersion']?(0x0!==_0x283498['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x283498['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x283498['id'],this['_startingVersion']=_0x283498['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',_0x575ca5=>!_0x575ca5),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1dfe3f=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x11a28a;for(const _0x801639 in _0x1dfe3f){const _0x4fd293=_0x801639,_0x446184=_0x1dfe3f[_0x4fd293];if('revisionHistoryLicenseKeyValid'==_0x446184||'revisionHistoryLicenseKeyInvalid'==_0x446184||'revisionHistoryLicenseKeyExpired'==_0x446184||'revisionHistoryLicenseKeyDomainLimit'==_0x446184||'revisionHistoryLicenseKeyNotAllowed'==_0x446184||'revisionHistoryLicenseKeyEvaluationLimit'==_0x446184||'revisionHistoryLicenseKeyTrialLimit'==_0x446184||'revisionHistoryLicenseKeyUsageLimit'==_0x446184){delete _0x1dfe3f[_0x4fd293],_0x11a28a=_0x446184,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x11a28a&&_0x1dfe3f['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x11a28a&&_0x1dfe3f['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x11a28a&&_0x1dfe3f['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x11a28a&&_0x1dfe3f['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x11a28a&&_0x1dfe3f['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x11a28a&&_0x1dfe3f['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x11a28a&&_0x1dfe3f['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x3a9cdb=this['repository']['getRevision'](0x0),_0x1c6474=await this['getRevisionDocumentData'](_0x3a9cdb),_0x12f944=await this['getRevisionRootsAttributes'](_0x3a9cdb);this['_replaceEditorDataWithRevisionData'](_0x1c6474,_0x12f944);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x230d45){this['_source']=_0x230d45;}async['update'](){const _0x47218a=await this['_source']['getLatestVersion']();if(_0x47218a>this['currentRevision']['toVersion']){await this['_loadState']();const _0x4260d6=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x47218a});_0x4260d6['authors']=_0x4260d6['authorsIds']['map'](_0x1510ed=>this['editor']['plugins']['get']('Users')['getUser'](_0x1510ed)),this['currentRevision']['_update'](_0x4260d6);}}async['saveRevision'](_0x4d077e={},_0xf9e768=null){const _0xed102=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0xf9e768>this['currentRevision']['toVersion']&&(_0xf9e768=null),null===_0xf9e768&&(_0xf9e768=await this['_source']['getLatestVersion']());const _0x198c1a=this['_getFromVersion'](_0xf9e768),_0x22f59b=this['buildRevisionData']({'from':_0x198c1a,'to':_0xf9e768});if(this['currentRevision']['toVersion']<_0xf9e768){const _0xb3799f=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0xf9e768,'to':_0xf9e768});_0xb3799f['authors']=[],_0xb3799f['authorsIds']=[],_0xb3799f['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0xb3799f,!0x0),delete _0xb3799f['authors'],_0xed102['push'](_0xb3799f);}_0x4d077e['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x4d077e['name']=_0x4d077e['name']||null,_0x4d077e['id']=_0x4d077e['id']||_0x42f13a(),_0x4d077e={..._0x4d077e,..._0x22f59b};const _0x362c8c=this['addRevisionData'](_0x4d077e);_0xed102['push'](_0x4d077e);const _0x44027=this['repository']['getIndex'](_0x362c8c);if(0x0!==_0x44027){const _0x458daf=this['repository']['getRevision'](_0x44027-0x1);if(_0x458daf['fromVersion']!==_0xf9e768){const _0x46124d=this['_revisionDataBuilder']['getData'](_0xf9e768,_0x458daf['toVersion']),_0x47216e={'id':_0x458daf['id'],'diffData':_0x46124d['diffData'],'authorsIds':_0x46124d['authorsIds'],'authors':_0x46124d['authorsIds']['map'](_0x5fdba0=>this['editor']['plugins']['get']('Users')['getUser'](_0x5fdba0)),'fromVersion':_0xf9e768};_0x458daf===this['currentRevision']&&(_0x47216e['createdAt']=new Date(_0x4d077e['createdAt']['getTime']()+0xa)),_0x458daf['_update'](_0x47216e,!0x0),delete _0x47216e['authors'],_0xed102['push'](_0x47216e);}}if(this['adapter']){for(const _0x4d79f3 of _0xed102)this['_bufferUpdate'](_0x4d79f3['id'],_0x4d79f3,!0x0);this['sendBufferedUpdates']();}return _0x362c8c;}['addRevisionData'](_0x4b46c9){const _0x4a5831=this['repository']['createRevision'](_0x4b46c9);return this['adapter']&&_0x4a5831['on']('_update',(_0x2a418b,_0x4e4ad3,_0x542921)=>{_0x542921||(this['_bufferUpdate'](_0x4e4ad3['id'],_0x4e4ad3,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x4a5831,this['_findInsertionIndex'](_0x4a5831)),_0x4a5831;}async['getRevisionDocumentData'](_0x22a6a3){return await this['_utils']['loadRevisionData'](_0x22a6a3,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x22a6a3);}async['getRevisionRootsAttributes'](_0x39b672){return await this['_utils']['loadRevisionData'](_0x39b672,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x39b672);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x1ed05f=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x17318b=0x0;_0x17318b<_0x1ed05f['length'];_0x17318b++){const _0x4c4f3d=_0x1ed05f[_0x17318b];let _0x58d8d9=!0x1;for(const _0x21b9bc of Object['keys'](_0x4c4f3d))void 0x0===_0x4c4f3d[_0x21b9bc]?delete _0x4c4f3d[_0x21b9bc]:'id'!==_0x21b9bc&&(_0x58d8d9=!0x0);_0x58d8d9||(_0x1ed05f[_0x17318b]=null);}if(_0x1ed05f=_0x1ed05f['filter'](_0x8f3752=>null!==_0x8f3752),!_0x1ed05f['length'])return;for(let _0x53fb2c=0x0;_0x53fb2c<_0x1ed05f['length'];_0x53fb2c++){const _0x1af957=_0x1ed05f[_0x53fb2c];void 0x0!==_0x1af957['fromVersion']&&void 0x0===_0x1af957['toVersion']&&(_0x1af957['toVersion']=this['repository']['getRevision'](_0x1af957['id'])['toVersion']),void 0x0!==_0x1af957['toVersion']&&void 0x0===_0x1af957['fromVersion']&&(_0x1af957['fromVersion']=this['repository']['getRevision'](_0x1af957['id'])['fromVersion']);}const _0x1bfc4e=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x1ed05f,_0x1bfc4e)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x39dfa9=>{if(_0x39dfa9){for(const _0x3840b4 of _0x39dfa9)this['setRevisionData']({'id':_0x3840b4['id'],'createdAt':_0x3840b4['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x472692=null,from:_0x5a1633=null,to:_0x2cb7b2=null}){_0x5a1633=null!==_0x5a1633?_0x5a1633:_0x472692['fromVersion'],_0x2cb7b2=null!==_0x2cb7b2?_0x2cb7b2:_0x472692['toVersion'];const _0x590c00=this['_revisionDataBuilder']['getData'](_0x5a1633,_0x2cb7b2),_0x236bff={'diffData':_0x590c00['diffData'],'authorsIds':_0x590c00['authorsIds'],'fromVersion':_0x5a1633,'toVersion':_0x2cb7b2};if(!_0x472692||_0x2cb7b2!==_0x472692['toVersion']){const _0x5bac5a=_0x2cb7b2-0x1,_0x4a1d3d=this['_source']['history']['getOperation'](_0x5bac5a);_0x236bff['createdAt']=_0x4a1d3d&&_0x4a1d3d['createdAt']||new Date();}if(this['_loadedStateData']&&_0x5a1633===this['_loadedStateData']['fromVersion']){for(const _0x15850f of this['_loadedStateData']['authors'])_0x236bff['authorsIds']['includes'](_0x15850f['id'])||_0x236bff['authorsIds']['push'](_0x15850f['id']);}return _0x236bff;}['_bufferUpdate'](_0x1992af,_0x5cbb79,_0x3ea576){if(this['_bufferedUpdates']['has'](_0x1992af)){const _0x26e422=this['_bufferedUpdates']['get'](_0x1992af);_0x5cbb79=_0x3ea576?{..._0x26e422,..._0x5cbb79}:{..._0x5cbb79,..._0x26e422};}this['_bufferedUpdates']['set'](_0x1992af,_0x5cbb79);}['setRevisionData'](_0x10be36){const _0x20cc9a=this['repository']['getRevision'](_0x10be36['id']);if(_0x10be36['createdAt']&&(_0x10be36['createdAt']=new Date(_0x10be36['createdAt'])),_0x10be36['authorsIds']){const _0x5790a2=this['editor']['plugins']['get']('Users');_0x10be36['authors']=_0x10be36['authorsIds']['map'](_0x58050b=>_0x5790a2['getUser'](_0x58050b));}_0x20cc9a['_update'](_0x10be36,!0x0);}['_createInitialRevision'](_0x23e058){const _0x243dfe=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x243dfe)this['_initialRevisionId']=_0x243dfe['id'];else{const _0x2fe844=!this['editor']['model']['document']['roots']['find'](_0x3c0000=>this['editor']['model']['hasContent'](_0x3c0000)),_0xde16a2=this['editor']['plugins']['get']('Users')['me']['id'],_0x1081cb=R(this['editor']['locale'],_0x2fe844?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x23e058,'to':_0x23e058,'id':this['_initialRevisionId'],'name':_0x1081cb,'creatorId':_0xde16a2});}}['_createCurrentRevision'](_0x746d88){const _0x8fa3a1=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x8fa3a1),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x746d88,'to':_0x746d88,'id':_0x8fa3a1,'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'](_0xb68ecb,_0x51f003){let _0x483c8d=this['editor']['config']['get']('initialData'),_0x408725=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x483c8d){_0x483c8d={};for(const _0x2ddf73 of this['editor']['model']['document']['getRootNames']())_0x483c8d[_0x2ddf73]='';}if('string'==typeof _0x483c8d&&(_0x483c8d={'main':_0x483c8d}),void 0x0===_0x408725){_0x408725={};for(const _0x335c43 of this['editor']['model']['document']['getRootNames']())_0x408725[_0x335c43]={};}let _0x515e90=!0x1;const _0x36eb34=Object['keys'](_0x483c8d),_0x12b6bb=Object['keys'](_0xb68ecb);for(const _0x98cf9c of _0x36eb34){if(_0x483c8d[_0x98cf9c]!==_0xb68ecb[_0x98cf9c]&&''!==_0x483c8d[_0x98cf9c]['trim']()){_0x515e90=!0x0;break;}if(!_0x54354e(_0x408725[_0x98cf9c],_0x51f003[_0x98cf9c])&&Object['keys'](_0x408725[_0x98cf9c])['length']>0x0){_0x515e90=!0x0;break;}}_0x515e90||(_0x515e90=_0x12b6bb['some'](_0xca59f1=>!this['editor']['model']['document']['getRoot'](_0xca59f1))),_0x515e90&&_0x27e982('editor-initial-data-replaced-with-revision-data',{'editorData':_0x483c8d,'editorRootsAttributes':_0x408725,'revisionData':_0xb68ecb,'revisionRootsAttributes':_0x51f003}),this['editor']['config']['set']('initialData',_0xb68ecb),this['editor']['config']['set']('rootsAttributes',_0x51f003);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x225883=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x225883['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x56cb97){const _0x3a2435=this['repository']['getRevisions']();_0x3a2435['reverse']();let _0x4a777c=0x0;for(;_0x4a777c<_0x3a2435['length'];){const _0x35cf76=_0x3a2435[_0x4a777c];if(_0x35cf76===this['currentRevision']){_0x4a777c++;continue;}if(_0x35cf76['id']===this['_initialRevisionId'])break;const _0x4b38d1=_0x56cb97['toVersion']-_0x35cf76['toVersion']||_0x56cb97['fromVersion']-_0x35cf76['fromVersion'];if(_0x4b38d1>0x0)break;if(_0x4b38d1<0x0)_0x4a777c++;else{if(!_0x56cb97['creator']&&_0x35cf76['creator'])break;if(_0x35cf76['creator']||!_0x56cb97['creator']){if(_0x56cb97['createdAt']>_0x35cf76['createdAt'])break;_0x4a777c++;}else _0x4a777c++;}}return _0x4a777c;}['_getFromVersion'](_0x8f6a1c){const _0x2b05f2=this['repository']['getRevisions']();_0x2b05f2['reverse'](),_0x2b05f2['shift']();const _0x5e5d2c=_0x2b05f2['find'](_0x4a605c=>_0x4a605c['toVersion']<=_0x8f6a1c)['toVersion'];return _0x5e5d2c<this['_startingVersion']?this['_startingVersion']:_0x5e5d2c;}['_makeRevision']({name:_0x3a3b82,from:_0x416b45,to:_0x561ac9,creatorId:_0x56929d,id:_0x5d78b0}){const _0x203a69=this['buildRevisionData']({'from':_0x416b45,'to':_0x561ac9});_0x203a69['name']=_0x3a3b82,_0x203a69['creatorId']=_0x56929d,_0x203a69['id']=_0x5d78b0;const _0x3e83c4=this['addRevisionData'](_0x203a69);return this['adapter']&&this['_bufferUpdate'](_0x203a69['id'],_0x203a69,!0x0),_0x3e83c4;}['_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(_0x16742c){this['editor']=_0x16742c,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'](_0x2c62c4){this['source']=_0x2c62c4;const _0x1405dd=new Map(),_0x2f26ca=new Map(),_0x3ce0e7=this['editor']['model']['document']['roots']['map'](_0x21d0fc=>_0x21d0fc['rootName']);for(const _0x158847 of _0x3ce0e7){const _0x684bd6=this['editor']['model']['document']['getRoot'](_0x158847),_0x4014fa=x(_0x684bd6);_0x1405dd['set'](_0x158847,_0x4014fa),_0x2f26ca['set'](_0x158847,Object['fromEntries'](_0x684bd6['getAttributes']()));}const _0x138237=Array['from'](this['editor']['model']['markers'])['map'](_0x19cdd4=>[_0x19cdd4['name'],_0x19cdd4['getRange']()]),_0x144fd1=this['source']['version'];this['_saveMetaData'](_0x144fd1,_0x1405dd,_0x138237,_0x2f26ca),this['_startingRevisionId']=this['_revisionId'];const _0x58f0fd=new Map(),_0x860c9a=new Map();for(const _0x13bd2c of _0x3ce0e7){const _0x36f252=N(_0x13bd2c);_0x58f0fd['set'](_0x13bd2c,_0x36f252),_0x860c9a['set'](_0x13bd2c,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x58f0fd,[],_0x860c9a);}['getData'](_0x1f169e,_0x170fa1){if(this['_lastFrom']===_0x1f169e&&this['_lastTo']<=_0x170fa1)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x170fa1,!0x0);else{if(!this['_savedMetaData']['has'](_0x1f169e)){const _0x2676c5=this['_getPreviousFrom'](_0x1f169e);this['_calculateMetaData'](_0x2676c5,_0x1f169e,!0x1);}this['_calculateMetaData'](_0x1f169e,_0x170fa1,!0x0);}return this['_lastFrom']=_0x1f169e,this['_lastTo']=_0x170fa1,this['_getState']();}['loadState'](_0x189dce){const _0x1861c7=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x189dce['fromVersion'],this['_lastTo']=_0x189dce['toVersion'];for(const _0x4a6638 in _0x189dce['diffData']){const _0x1da28f=_0x189dce['diffData'][_0x4a6638]['attachChange'],_0x2a692d=_0x5e8bc8(_0x189dce['diffData'][_0x4a6638]['attributesBefore'])||{},_0x20df6d=_0x1861c7['_makeModelFromViewString'](_0x189dce['diffData'][_0x4a6638]['deletions']);_0x20df6d['rootName']=_0x4a6638,_0x20df6d['_isAttached']=!_0x1da28f||!_0x1da28f['isAttached'],_0x20df6d['isAttached']=()=>_0x20df6d['_isAttached'],this['_baseRoots']['set'](_0x4a6638,_0x20df6d),this['_baseRootsAttributes']['set'](_0x4a6638,_0x2a692d),_0x1da28f&&this['_touchedRoots']['set'](_0x4a6638,_0x1da28f);const _0x311edd=this['_makeIdsRoot'](_0x20df6d);this['_baseIdsRoots']['set'](_0x4a6638,_0x311edd);for(const [_0x3db831,_0x13d24f]of _0x20df6d['markers']){if(!_0x3db831['startsWith']('revision:'))continue;const _0x123c23=_0x3db831['split'](':')[0x2];for(const _0x4c89bd of _0x13d24f['getWalker']({'singleCharacters':!0x0})){const _0x46d745=this['_getVidAttributeName'](_0x4c89bd),_0x45a313='elementEnd'==_0x4c89bd['type']?_0x4c89bd['previousPosition']['path']['slice'](0x0,-0x1):_0x4c89bd['previousPosition']['path'],_0x6bb691=_0x311edd['getNodeByPath'](_0x45a313)['getAttribute'](_0x46d745);this['_touched']['set'](_0x6bb691,{'userId':_0x123c23});}}}this['_startingRevisionId']=this['_revisionId'];const _0xcadbb2=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x25341e=>!this['_touched']['has'](_0x25341e));let _0xbcbdb4=0x0;const _0x30f16c=new Map();for(const _0x1f3358 in _0x189dce['diffData']){const _0x488255=_0x189dce['diffData'][_0x1f3358]['attachChange'],_0x1dfb35=_0x5e8bc8(_0x189dce['diffData'][_0x1f3358]['attributesAfter'])||{},_0x1a8ee7=_0x1861c7['_makeModelFromViewString'](_0x189dce['diffData'][_0x1f3358]['insertions']);_0x1a8ee7['rootName']=_0x1f3358,_0x1a8ee7['_isAttached']=!_0x488255||_0x488255['isAttached'],_0x1a8ee7['isAttached']=()=>_0x1a8ee7['_isAttached'],this['_diffRoots']['set'](_0x1f3358,_0x1a8ee7),this['_diffRootsAttributes']['set'](_0x1f3358,_0x1dfb35);const _0x1e660b=this['_makeIdsRoot'](_0x1a8ee7,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x1f3358,_0x1e660b),_0x30f16c['set'](_0x1f3358,_0x1a8ee7['isAttached']()?_0x1dfb35:{});for(const [_0x302c3f,_0xa0660a]of _0x1a8ee7['markers']){if(!_0x302c3f['startsWith']('revision:'))continue;const _0x4dbf01=_0x302c3f['split'](':')[0x2];for(const _0x2a74cc of _0xa0660a['getWalker']({'singleCharacters':!0x0})){const _0x5c1e2f=this['_getVidAttributeName'](_0x2a74cc),_0x1f0550=this['_revisionId']++,_0x4c48fe='elementEnd'==_0x2a74cc['type']?_0x2a74cc['previousPosition']['path']['slice'](0x0,-0x1):_0x2a74cc['previousPosition']['path'];_0x1e660b['getNodeByPath'](_0x4c48fe)['_setAttribute'](_0x5c1e2f,_0x1f0550),this['_touched']['set'](_0x1f0550,{'userId':_0x4dbf01});}}for(const _0x3c4561 of this['editor']['model']['createRangeIn'](_0x1a8ee7)['getWalker']({'singleCharacters':!0x0})){const _0xbe79f2=this['_getVidAttributeName'](_0x3c4561),_0x3f79a9='elementEnd'==_0x3c4561['type']?_0x3c4561['previousPosition']['path']['slice'](0x0,-0x1):_0x3c4561['previousPosition']['path'],_0xf52433=_0x1e660b['getNodeByPath'](_0x3f79a9);_0xf52433['getAttribute'](_0xbe79f2)>0x0||_0xf52433['_setAttribute'](_0xbe79f2,_0xcadbb2[_0xbcbdb4++]);}for(const [_0x50098f,_0x392f65]of _0x1a8ee7['markers'])_0x50098f['startsWith']('revision:')||this['_markers']['set'](_0x50098f,_0x392f65);}const _0x1ad3b5=N('$graveyard');this['_baseRoots']['set']('$graveyard',_0x1ad3b5),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x1ad3b5,0x1));const _0x40d638=N('$graveyard');this['_diffRoots']['set']('$graveyard',_0x40d638),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x40d638,0x1));const _0x167e60=Array['from'](this['_diffRoots'])['map'](([_0x396e54,_0xf780cc])=>[_0x396e54,x(_0xf780cc)]);this['_saveMetaData'](this['_lastTo'],_0x167e60,this['_markers'],_0x30f16c);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x186b5f,_0x5d681a,_0x43cc2c,_0x69f0a6){const _0x6a3081=new Map(_0x5d681a),_0x443351=new Map(_0x5e8bc8(_0x69f0a6)),_0x4d2de3=new Map();for(const [_0x38066d,_0x4abec2]of _0x43cc2c)_0x4d2de3['set'](_0x38066d,{'start':_0x4abec2['start']['clone'](),'end':_0x4abec2['end']['clone'](),'rootName':_0x4abec2['root']['rootName']});this['_savedMetaData']['set'](_0x186b5f,{'roots':_0x6a3081,'markers':_0x4d2de3,'rootsAttributes':_0x443351});}['_removeMetaData'](_0x177757){this['_savedMetaData']['delete'](_0x177757);}['_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'](_0x557f51,_0x5ccb23=null){let _0x2d348b=null;_0x557f51['is']('documentFragment')||(_0x2d348b=new _0x21f743(_0x557f51['name'],{'vid_start':null===_0x5ccb23?this['_revisionId']++:_0x5ccb23++}));const _0x25fa43=[];for(const _0x2180e1 of _0x557f51['getChildren']())if(_0x2180e1['is']('element')){_0x25fa43['push'](this['_makeIdsRoot'](_0x2180e1,_0x5ccb23));const _0x47437e=_0x25fa43[_0x25fa43['length']-0x1];null!==_0x5ccb23&&(_0x5ccb23=_0x47437e['is']('element','$text')?_0x47437e['getAttribute']('vid')+0x1:_0x47437e['getAttribute']('vid_end')+0x1);}else{for(let _0x31d8b7=0x0;_0x31d8b7<_0x2180e1['offsetSize'];_0x31d8b7++)_0x25fa43['push'](new _0x21f743('$text',{'vid':null===_0x5ccb23?this['_revisionId']++:_0x5ccb23++}));}if(_0x557f51['is']('documentFragment')){const _0xfd44c0=N(_0x557f51['rootName']);return _0xfd44c0['_insertChild'](0x0,_0x25fa43),_0xfd44c0;}return _0x2d348b['_setAttribute']('vid_end',null===_0x5ccb23?this['_revisionId']++:_0x5ccb23++),_0x2d348b['_insertChild'](0x0,_0x25fa43),_0x2d348b;}['_calculateMetaData'](_0x2388d3,_0x5462bc,_0x2b646a){this['_reset']();const {roots:_0x1543a1,markers:_0x511f83,rootsAttributes:_0x385b0e}=this['_savedMetaData']['get'](_0x2388d3);this['_baseRoots']=new Map(_0x1543a1),this['_baseRootsAttributes']=new Map(_0x5e8bc8(_0x385b0e));for(const [_0x384a62,_0x149ba5]of this['_baseRoots'])if('$graveyard'!==_0x384a62&&(this['_diffRoots']['set'](_0x384a62,x(_0x149ba5)),this['_diffRootsAttributes']=new Map(_0x5e8bc8(_0x385b0e)),_0x2b646a)){const _0x310574=this['_revisionId'];this['_idsRoots']['set'](_0x384a62,this['_makeIdsRoot'](_0x149ba5)),this['_baseIdsRoots']['set'](_0x384a62,this['_makeIdsRoot'](_0x149ba5,_0x310574));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x2b646a&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x5669e6,_0x3a0f92]of _0x511f83){const _0x1005a5=this['_baseRoots']['get'](_0x3a0f92['rootName']),_0x5ef86a=this['_diffRoots']['get'](_0x3a0f92['rootName']),_0x241aa0=new _0x7fe54c(this['_fixPosition'](_0x3a0f92['start'],_0x1005a5),this['_fixPosition'](_0x3a0f92['end'],_0x1005a5)),_0xc84504=this['_fixRange'](_0x241aa0,_0x5ef86a);_0x1005a5['markers']['set'](_0x5669e6,_0x241aa0),this['_markers']['set'](_0x5669e6,_0xc84504);}this['_applyOperations'](_0x2388d3,_0x5462bc,_0x2b646a);}['_applyOperations'](_0x2cb5d9,_0x1f750a,_0x1033b8){for(const _0x47ce42 of this['source']['getOperations'](_0x2cb5d9,_0x1f750a))this['_handleOperation'](_0x47ce42,_0x1033b8);for(const _0x49251e of this['_diffRoots']['values']())_0x49251e['markers']['clear']();for(const [_0xfaa818,_0xad549f]of this['_markers']){this['_diffRoots']['get'](_0xad549f['root']['rootName'])['markers']['set'](_0xfaa818,_0xad549f['clone']());}const _0x54a45f=new Map(),_0x456c21=new Map();for(const [_0x47107f,_0x42b32b]of this['_diffRoots'])_0x54a45f['set'](_0x47107f,x(_0x42b32b)),_0x456c21['set'](_0x47107f,this['_diffRootsAttributes']['get'](_0x47107f));this['_saveMetaData'](_0x1f750a,_0x54a45f,this['_markers'],_0x456c21);}['_getPreviousFrom'](_0x46a14d){const _0x5de93f=Array['from'](this['_savedMetaData']['keys']());_0x5de93f['sort']((_0x378c07,_0x57b920)=>_0x378c07-_0x57b920),_0x5de93f['reverse']();for(const _0x44da14 of _0x5de93f)if(_0x44da14<_0x46a14d)return _0x44da14;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x5772ed,_0x4f9654){const _0x27691e=Array['from'](_0x4f9654['markers'])['map'](([_0x32cba1,_0x2b4e5b])=>[_0x32cba1,this['_fixRange'](_0x2b4e5b,_0x5772ed)]);_0x5772ed['markers']=new Map(_0x27691e);}['_transformMarkers'](_0x392e30){for(const _0x412cbb of this['_markers']['values']()){const _0x1bfa00=_0x412cbb['getTransformedByOperation'](_0x392e30),_0x39b91b=_0x7fe54c['_createFromRanges'](_0x1bfa00);_0x412cbb['start']=_0x39b91b['start'],_0x412cbb['end']=_0x39b91b['end'];}}['_handleOperation'](_0x3fbb5a,_0x17b83d){if('addRoot'!=_0x3fbb5a['type']&&'detachRoot'!=_0x3fbb5a['type']){if('insert'==_0x3fbb5a['type']){const _0x87699a=_0x3fbb5a['position']['root']['rootName'];this['_diffRoots']['has'](_0x87699a)||(this['_diffRoots']['set'](_0x87699a,N(_0x87699a,!0x0)),this['_diffRootsAttributes']['set'](_0x87699a,{}),_0x17b83d&&this['_idsRoots']['set'](_0x87699a,N(_0x87699a,!0x0)));}else{if('addRootAttribute'==_0x3fbb5a['type']||'removeRootAttribute'==_0x3fbb5a['type']||'changeRootAttribute'==_0x3fbb5a['type'])return void this['_handleRootAttributeOperation'](_0x3fbb5a);'marker'==_0x3fbb5a['type']&&this['_handleMarkerOperation'](_0x3fbb5a);}if('marker'!==_0x3fbb5a['type']){const _0x26c2c9=this['_cloneOperation'](_0x3fbb5a,this['_diffRoots']);_0x26c2c9['_execute'](),this['_transformMarkers'](_0x26c2c9);}if(_0x17b83d)switch(_0x3fbb5a['type']){case'insert':this['_handleInsertOperation'](_0x3fbb5a);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x3fbb5a);break;case'merge':this['_handleMergeOperation'](_0x3fbb5a);break;case'split':this['_handleSplitOperation'](_0x3fbb5a);}}else this['_handleRootOperation'](_0x3fbb5a,_0x17b83d);}['_cloneOperation'](_0x3eba58,_0x15509a){const _0x494b38=_0x3eba58['clone']();return _0x494b38['_authorId']=_0x3eba58['_authorId'],this['_fixOperation'](_0x494b38,_0x15509a),_0x494b38;}['_getBaseVids'](_0x339605){return _0x339605['map'](_0x2e81ad=>{const _0x18b377=this['_getVidAttributeName'](_0x2e81ad);return Number(_0x2e81ad['item']['getAttribute'](_0x18b377));});}['_generateTape'](_0x1dac21,_0x517544){if(_0x1dac21['is']('element','$text'))_0x517544['push']({'item':_0x1dac21,'type':'text'});else{_0x1dac21['is']('element')&&_0x517544['push']({'item':_0x1dac21,'type':'elementStart'});for(const _0x261e6f of _0x1dac21['getChildren']())this['_generateTape'](_0x261e6f,_0x517544);_0x1dac21['is']('element')&&_0x517544['push']({'item':_0x1dac21,'type':'elementEnd'});}return _0x517544;}['_getState'](){const _0x39ed64=new Map(this['_touched']),_0x9a7c18=new Map(_0x39ed64),_0x2d104e=new Map(),_0x57dd97={'insertions':{},'deletions':{}},_0x23d89a={'insertions':{},'deletions':{}},_0x32fc2d=new Map(),_0x1c6777=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x1c6777['delete']('$graveyard');for(const _0x2b796a of _0x1c6777){const _0x317192=this['_diffRoots']['get'](_0x2b796a)||N(_0x2b796a,!0x1),_0x15234d=this['_baseRoots']['get'](_0x2b796a)||N(_0x2b796a,!0x1);_0x317192['isAttached']()||_0x15234d['isAttached']()?(_0x57dd97['insertions'][_0x2b796a]=x(_0x317192),_0x57dd97['deletions'][_0x2b796a]=x(_0x15234d),this['_copyMarkers'](_0x57dd97['deletions'][_0x2b796a],_0x15234d),this['_copyMarkers'](_0x57dd97['insertions'][_0x2b796a],_0x317192),_0x23d89a['insertions'][_0x2b796a]=this['_generateTape'](this['_idsRoots']['get'](_0x2b796a),[]),_0x23d89a['deletions'][_0x2b796a]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x2b796a)||N(_0x2b796a,!0x1),[])):_0x1c6777['delete'](_0x2b796a);}for(const _0x512c89 of _0x1c6777){const _0x16d394=_0x23d89a['insertions'][_0x512c89];for(const _0x291fb3 of _0x16d394){const _0x58a623=this['_getVidAttributeName'](_0x291fb3),_0x19a479=_0x291fb3['item']['getAttribute'](_0x58a623);_0x9a7c18['delete'](_0x19a479),_0x19a479>=this['_startingRevisionId']&&_0x2d104e['set'](_0x19a479,_0x39ed64['get'](_0x19a479));}}for(const _0x29d3f5 of _0x1c6777){const _0x5f451f=_0x23d89a['insertions'][_0x29d3f5],_0x225bce=this['_getBaseVids'](_0x23d89a['deletions'][_0x29d3f5]);let _0x4e6c9c=0x0;for(const _0x153b14 of _0x5f451f){const _0x4a90ef=this['_getVidAttributeName'](_0x153b14),_0x1b50f4=_0x153b14['item']['getAttribute'](_0x4a90ef);if(!_0x2d104e['has'](_0x1b50f4)&&!_0x32fc2d['has'](_0x1b50f4)){if(_0x9a7c18['has'](_0x1b50f4))_0x4e6c9c++;else{if(_0x1b50f4!=_0x225bce[_0x4e6c9c]){const _0x3372c5=_0x39ed64['get'](_0x1b50f4)||_0x39ed64['get'](_0x225bce[_0x4e6c9c]);for(;_0x1b50f4!=_0x225bce[_0x4e6c9c];)_0x9a7c18['has'](_0x225bce[_0x4e6c9c])||(_0x32fc2d['set'](_0x225bce[_0x4e6c9c],_0x3372c5),_0x39ed64['set'](_0x225bce[_0x4e6c9c],_0x3372c5)),_0x4e6c9c++;}_0x4e6c9c++;}}}}for(const _0x44347b of _0x1c6777){const _0x319030=_0x23d89a['insertions'][_0x44347b];for(const _0x2d2626 of _0x319030){const _0x547100=this['_getVidAttributeName'](_0x2d2626),_0x49859c=_0x2d2626['item']['getAttribute'](_0x547100);if(_0x32fc2d['has'](_0x49859c)){const _0x4bd740=_0x32fc2d['get'](_0x49859c);_0x9a7c18['has'](_0x49859c)||_0x9a7c18['set'](_0x49859c,{..._0x4bd740}),_0x2d104e['set'](_0x49859c,{..._0x4bd740});}}}for(const _0x12629b of _0x9a7c18['keys']())_0x12629b>=this['_startingRevisionId']&&_0x9a7c18['delete'](_0x12629b);const _0x543f37=new Map();for(const _0x5a5847 of _0x1c6777){let _0x3d070b=_0x23d89a['insertions'][_0x5a5847];for(const _0x2cb002 of _0x3d070b)if(_0x2cb002['item']['is']('element','tableCell')){const _0x3e18bd=this['_getVidAttributeName'](_0x2cb002),_0x29cf4c=_0x2cb002['item']['getAttribute'](_0x3e18bd);if(_0x2d104e['has'](_0x29cf4c)){const _0x1984af=_0x2cb002['item']['parent']['parent']['getAttribute']('vid_start'),_0x34385f=_0x543f37['get'](_0x1984af)||new Set();_0x34385f['add'](_0x2d104e['get'](_0x29cf4c)['userId']),_0x543f37['set'](_0x1984af,_0x34385f);}}_0x3d070b=_0x23d89a['deletions'][_0x5a5847];for(const _0x1e4053 of _0x3d070b)if(_0x1e4053['item']['is']('element','tableCell')){const _0x4f1349=this['_getVidAttributeName'](_0x1e4053),_0x19c03b=_0x1e4053['item']['getAttribute'](_0x4f1349);if(_0x9a7c18['has'](_0x19c03b)){const _0x46018c=_0x1e4053['item']['parent']['parent']['getAttribute']('vid_start'),_0x4ccb93=_0x543f37['get'](_0x46018c)||new Set();_0x4ccb93['add'](_0x9a7c18['get'](_0x19c03b)['userId']),_0x543f37['set'](_0x46018c,_0x4ccb93);}}for(const _0x18b6f3 of _0x543f37['keys']())(_0x2d104e['has'](_0x18b6f3)||_0x9a7c18['has'](_0x18b6f3))&&_0x543f37['delete'](_0x18b6f3);}for(const _0x5adc81 of _0x1c6777){const _0x1a8f9d=_0x23d89a['insertions'][_0x5adc81];let _0x50a921=null,_0x23c8d1=null;for(const _0x19ff0a of _0x1a8f9d){const _0x37b8b2=this['_getVidAttributeName'](_0x19ff0a),_0x207763=_0x19ff0a['item']['getAttribute'](_0x37b8b2),_0x53468e=_0x543f37['get'](_0x207763);_0x53468e&&'elementStart'==_0x19ff0a['type']&&(_0x50a921=Array['from'](_0x53468e)[0x0],_0x23c8d1=_0x19ff0a['item']['getAttribute']('vid_end')),_0x50a921&&(_0x9a7c18['set'](_0x207763,{'userId':_0x50a921}),_0x2d104e['set'](_0x207763,{'userId':_0x50a921})),_0x207763==_0x23c8d1&&(_0x50a921=null,_0x23c8d1=null);}}const _0x3bf4b5={},_0x87346b=new Set();for(const _0x2a1c25 of _0x1c6777){const _0x40dbad=_0x57dd97['deletions'][_0x2a1c25],_0x222f95=_0x57dd97['insertions'][_0x2a1c25];for(const {userId:_0xd92a68}of this['_touchedMarkers']['values']())null!==_0xd92a68&&_0x87346b['add'](_0xd92a68);for(const {userId:_0x1e1f1d}of this['_touchedRoots']['values']())null!==_0x1e1f1d&&_0x87346b['add'](_0x1e1f1d);this['_markChanges'](_0x222f95,_0x23d89a['insertions'][_0x2a1c25],_0x2d104e,'insertion',_0x87346b),this['_markChanges'](_0x40dbad,_0x23d89a['deletions'][_0x2a1c25],_0x9a7c18,'deletion',_0x87346b),_0x3bf4b5[_0x2a1c25]={'insertions':this['_prepareViewToSave'](_0x222f95),'deletions':this['_prepareViewToSave'](_0x40dbad),'attachChange':this['_touchedRoots']['get'](_0x2a1c25)||null,'attributesBefore':_0x5e8bc8(this['_baseRootsAttributes']['get'](_0x2a1c25))||{},'attributesAfter':_0x5e8bc8(this['_diffRootsAttributes']['get'](_0x2a1c25))};}return{'diffData':_0x3bf4b5,'authorsIds':Array['from'](_0x87346b)};}['_processRootBeforeSave'](_0x5c083a){for(const [,_0x1196b3]of _0x5c083a['markers']){const _0x30a850=_0x1196b3['start']['getAncestors']()['filter'](_0x4b3aaf=>'tableCell'==_0x4b3aaf['name']);for(const _0x3eccfe of _0x30a850)0x1==_0x3eccfe['childCount']&&_0x3eccfe['getChild'](0x0)['is']('element','paragraph')&&_0x3eccfe['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x5b17f2){this['_processRootBeforeSave'](_0x5b17f2);const _0x205404=this['editor']['data']['toView'](_0x5b17f2,{}),_0x1ea169=Array['from'](_0x205404['getChildren']())['map'](_0x338909=>this['_getViewJson'](_0x338909));return JSON['stringify'](_0x1ea169);}['_getViewJson'](_0x182c13){if(_0x182c13['is']('$text'))return _0x182c13['data'];{const _0x3bbeae=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x2e1dca=_0x182c13,_0xf75268=this['editor']['data']['htmlProcessor']['domConverter'],_0x10f70a={'type':_0x3bbeae['_getTypeCharForViewElement'](_0x2e1dca),'name':_0x2e1dca['name'],'attributes':Array['from'](_0x2e1dca['getAttributes']()),'children':Array['from'](_0x2e1dca['getChildren']())['map'](_0x444d36=>this['_getViewJson'](_0x444d36))};if(_0x182c13['is']('uiElement')&&'$comment'!=_0x182c13['name']){const _0x1b1211=_0x182c13['render'](_0xf75268['domDocument'],_0xf75268);_0x10f70a['children']['push'](_0x1b1211['outerHTML']);}else{if(_0x182c13['is']('rawElement')){const _0x5db2ca=_0xf75268['domDocument']['createElement'](_0x2e1dca['name']);_0x182c13['render'](_0x5db2ca,_0xf75268),_0x10f70a['children']['push'](_0x5db2ca['innerHTML']);}}const _0x1d2ec4=Array['from'](_0x2e1dca['getCustomProperties']());_0x1d2ec4['length']>0x0&&(_0x10f70a['customProperties']=_0x1d2ec4);const _0x29939b=_0x2e1dca['getFillerOffset']();return null!==_0x29939b&&(_0x10f70a['fillerOffset']=_0x29939b),_0x10f70a;}}['_markChanges'](_0x30c906,_0x471569,_0x34a942,_0x3555f4,_0x8d24fb){let _0x320558=null,_0x1310f1=null,_0x301d19=0x0;const _0x28a415=this['editor']['model'];for(let _0x202edb=0x0;_0x202edb<_0x471569['length'];_0x202edb++){const _0x10f07a=this['_getVidAttributeName'](_0x471569[_0x202edb]),_0x4380c7=_0x471569[_0x202edb]['item']['getAttribute'](_0x10f07a),_0x6a1e09=_0x34a942['get'](_0x4380c7),_0x5d6c58=_0x202edb==_0x471569['length']-0x1;(!_0x320558&&_0x6a1e09&&(_0x320558=_0x6a1e09,_0x1310f1=_0x471569[_0x202edb]),_0x320558&&(!_0x6a1e09||_0x6a1e09['userId']!=_0x320558['userId']))&&(_0x29d478(_0x6a1e09,P(_0x1310f1,_0x30c906,_0x28a415),P(_0x471569[_0x202edb],_0x30c906,_0x28a415)),_0x320558=_0x6a1e09||null,_0x1310f1=_0x6a1e09?_0x471569[_0x202edb]:null),_0x320558&&_0x5d6c58&&_0x29d478(_0x6a1e09,P(_0x1310f1,_0x30c906,_0x28a415),V(_0x471569[_0x202edb],_0x30c906,_0x28a415));}function _0x29d478(_0x272e88,_0x5b4245,_0x197724){const _0x3ca350=_0x320558['userId'],_0x452d12='revision:'+_0x3555f4+':'+_0x3ca350+':'+_0x301d19++,_0x583875=_0x28a415['createRange'](_0x5b4245,_0x197724);_0x30c906['markers']['set'](_0x452d12,_0x583875),null!==_0x3ca350&&_0x8d24fb['add'](_0x3ca350);}}['_getVidAttributeName'](_0xd672d9){switch(_0xd672d9['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x3e4701,_0x1ed246){_0x3e4701['baseVersion']=null;for(const _0x376d0d in _0x3e4701){const _0x5dc464=_0x3e4701[_0x376d0d];if(_0x5dc464 instanceof _0x1bf912){const _0x61b238=_0x1ed246['get'](_0x5dc464['root']['rootName']);_0x3e4701[_0x376d0d]=this['_fixPosition'](_0x5dc464,_0x61b238);}if(_0x5dc464 instanceof _0x7fe54c){const _0x1ee16b=_0x1ed246['get'](_0x5dc464['root']['rootName']);_0x3e4701[_0x376d0d]=this['_fixRange'](_0x5dc464,_0x1ee16b);}'root'===_0x376d0d&&(_0x3e4701['root']=_0x1ed246['get'](_0x3e4701['root']['rootName']));}}['_fixRange'](_0x56f793,_0x4f94f8){return this['editor']['model']['createRange'](this['_fixPosition'](_0x56f793['start'],_0x4f94f8),this['_fixPosition'](_0x56f793['end'],_0x4f94f8));}['_fixPosition'](_0x2059b2,_0x324c4a){return this['editor']['model']['createPositionFromPath'](_0x324c4a,_0x2059b2['path'],_0x2059b2['stickiness']);}['_handleInsertOperation'](_0x297158){const _0xc0dfa9=this['_idsRoots']['get'](_0x297158['position']['root']['rootName']),_0x6c5e2e=this['_fixPosition'](_0x297158['position'],_0xc0dfa9),_0x407a7b=null===_0x297158['_authorId']?null:_0x297158['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3738f7=_0x6c5e2e['parent'],_0x436d11=this['_revisionId'],_0x5d5f25=[];for(const _0x75fe79 of _0x297158['nodes'])if(_0x75fe79['is']('element'))_0x5d5f25['push'](this['_makeIdsRoot'](_0x75fe79));else{for(let _0x5246c7=0x0;_0x5246c7<_0x75fe79['offsetSize'];_0x5246c7++)_0x5d5f25['push'](new _0x21f743('$text',{'vid':this['_revisionId']++}));}const _0x374cb4=this['_revisionId'];for(let _0x59540c=_0x436d11;_0x59540c<_0x374cb4;_0x59540c++)this['_touched']['set'](_0x59540c,{'userId':_0x407a7b});_0x3738f7['_insertChild'](_0x6c5e2e['offset'],_0x5d5f25);}['_handleMoveOperation'](_0x2be4bc){(_0x2be4bc=this['_cloneOperation'](_0x2be4bc,this['_idsRoots']))['_execute']();const _0x1d8c7a=null===_0x2be4bc['_authorId']?null:_0x2be4bc['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2a3f34=_0x2be4bc['getMovedRangeStart'](),_0x9cd23e=_0x2a3f34['parent'],_0x497be3=_0x2a3f34['offset'];!function _0x6e0f17(_0x4c9e73,_0x3255a8,_0xafe971,_0x4f5d0b){for(let _0x278125=_0xafe971;_0x278125<_0x4f5d0b;_0x278125++){const _0x3649b4=_0x3255a8['getChild'](_0x278125);_0x3649b4['is']('element','$text')?_0x4c9e73['set'](_0x3649b4['getAttribute']('vid'),{'userId':_0x1d8c7a}):(_0x4c9e73['set'](_0x3649b4['getAttribute']('vid_start'),{'userId':_0x1d8c7a}),_0x6e0f17(_0x4c9e73,_0x3649b4,0x0,_0x3649b4['childCount']),_0x4c9e73['set'](_0x3649b4['getAttribute']('vid_end'),{'userId':_0x1d8c7a}));}}(this['_touched'],_0x9cd23e,_0x497be3,_0x497be3+_0x2be4bc['howMany']);}['_handleMergeOperation'](_0x1a6d18){const _0x5eaded=null===(_0x1a6d18=this['_cloneOperation'](_0x1a6d18,this['_idsRoots']))['_authorId']?null:_0x1a6d18['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x41174a=_0x1a6d18['targetPosition']['parent'],_0x1fb431=_0x1a6d18['sourcePosition']['parent'],_0x1091e6=_0x41174a['getAttribute']('vid_end'),_0x192e0d=_0x1fb431['getAttribute']('vid_start');_0x41174a['_setAttribute']('vid_end',_0x1fb431['getAttribute']('vid_end')),_0x1fb431['_setAttribute']('vid_end',_0x1091e6),this['_touched']['set'](_0x192e0d,{'userId':_0x5eaded}),this['_touched']['set'](_0x1091e6,{'userId':_0x5eaded}),_0x1a6d18['_execute']();}['_handleSplitOperation'](_0x3b1046){const _0x163455=null===(_0x3b1046=this['_cloneOperation'](_0x3b1046,this['_idsRoots']))['_authorId']?null:_0x3b1046['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3d2c86=_0x3b1046['graveyardPosition'],_0x2e3030=_0x3b1046['splitPosition']['parent'];_0x3b1046['_execute']();const _0x1ccb13=_0x2e3030['getAttribute']('vid_end'),_0x3659a5=_0x3b1046['insertionPosition']['nodeAfter'];if(_0x3d2c86){const _0xad1577=_0x3659a5['getAttribute']('vid_end'),_0x542f55=_0x2e3030['getAttribute']('vid_end');_0x2e3030['_setAttribute']('vid_end',_0xad1577),_0x3659a5['_setAttribute']('vid_end',_0x542f55),this['_touched']['set'](_0x2e3030['getAttribute']('vid_end'),{'userId':_0x163455}),this['_touched']['set'](_0x3659a5['getAttribute']('vid_start'),{'userId':_0x163455});}else{const _0x447067=this['_revisionId']++,_0x512fe8=this['_revisionId']++;_0x2e3030['_setAttribute']('vid_end',_0x447067),_0x3659a5['_setAttribute']('vid_start',_0x512fe8),_0x3659a5['_setAttribute']('vid_end',_0x1ccb13),this['_touched']['set'](_0x447067,{'userId':_0x163455}),this['_touched']['set'](_0x512fe8,{'userId':_0x163455});}}['_handleMarkerOperation'](_0x46bac1){if(!_0x46bac1['affectsData'])return;const _0x15db8b=(_0x46bac1=this['_cloneOperation'](_0x46bac1,this['_diffRoots']))['oldRange']?_0x46bac1['oldRange']['root']:null,_0x34799e=_0x46bac1['newRange']?_0x46bac1['newRange']['root']:null;_0x15db8b&&this['_markers']['delete'](_0x46bac1['name']),_0x34799e&&this['_markers']['set'](_0x46bac1['name'],_0x46bac1['newRange']['clone']());const _0x33b580=null===_0x46bac1['_authorId']?null:_0x46bac1['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x22c2a6=_0x46bac1['name'];if(!this['_touchedMarkers']['has'](_0x22c2a6))return void this['_touchedMarkers']['set'](_0x22c2a6,{'range':_0x46bac1['oldRange'],'userId':_0x33b580});const _0x4071c5=this['_touchedMarkers']['get'](_0x22c2a6),_0x52ead4=_0x4071c5['range'],_0x45349c=_0x46bac1['newRange'];null==_0x52ead4&&null==_0x45349c||_0x52ead4&&_0x45349c&&_0x52ead4['isEqual'](_0x45349c)?this['_touchedMarkers']['delete'](_0x46bac1['name']):_0x4071c5['userId']=_0x33b580;}['_handleRootOperation'](_0x596f1b,_0x1584a9){this['_diffRoots']['has'](_0x596f1b['rootName'])?this['_diffRoots']['get'](_0x596f1b['rootName'])['_isAttached']=_0x596f1b['isAdd']:(this['_diffRoots']['set'](_0x596f1b['rootName'],N(_0x596f1b['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x596f1b['rootName'],{}),_0x1584a9&&this['_idsRoots']['set'](_0x596f1b['rootName'],N(_0x596f1b['rootName'],!0x0)));const _0x46f2e6=null===_0x596f1b['_authorId']?null:_0x596f1b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x33bca1=this['_touchedRoots']['get'](_0x596f1b['rootName']);_0x33bca1&&_0x33bca1['userId']===_0x46f2e6?this['_touchedRoots']['delete'](_0x596f1b['rootName']):this['_touchedRoots']['set'](_0x596f1b['rootName'],{'userId':_0x46f2e6,'isAttached':_0x596f1b['isAdd']});}['_handleRootAttributeOperation'](_0x171aab){const _0x3648f7=this['_diffRootsAttributes']['get'](_0x171aab['root']['rootName']);null===_0x171aab['newValue']?delete _0x3648f7[_0x171aab['key']]:_0x3648f7[_0x171aab['key']]=_0x171aab['newValue'];}}function x(_0x376fc8){const _0x38ea70=N(_0x376fc8['rootName'],_0x376fc8['isAttached']());for(const _0x489d36 of _0x376fc8['getChildren']()){const _0x111b54=_0x489d36['_clone'](!0x0);_0x38ea70['_appendChild'](_0x111b54);}return _0x38ea70;}function N(_0x2dfb4f,_0x5ed4fc=!0x0){const _0x418238=new _0x4ed160();return _0x418238['rootName']=_0x2dfb4f,_0x418238['_isAttached']=_0x5ed4fc,_0x418238['isAttached']=()=>_0x418238['_isAttached'],_0x418238;}function P(_0xa90098,_0x1bd64c,_0x4aa151){const _0x3d010e='elementEnd'==_0xa90098['type']?_0x4aa151['createPositionAt'](_0xa90098['item'],'end'):_0x4aa151['createPositionBefore'](_0xa90098['item']);return _0x4aa151['createPositionFromPath'](_0x1bd64c,_0x3d010e['path'],_0x3d010e['stickiness']);}function V(_0x20a6d0,_0x278789,_0x3f16fd){const _0x46744a='elementStart'==_0x20a6d0['type']?_0x3f16fd['createPositionAt'](_0x20a6d0['item'],0x0):_0x3f16fd['createPositionAfter'](_0x20a6d0['item']);return _0x3f16fd['createPositionFromPath'](_0x278789,_0x46744a['path'],_0x46744a['stickiness']);}class me extends/* #__PURE__ -- @preserve */
|
|
25
|
-
|
|
26
|
-
_0x3d728e(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x111326){super(),this['id']=_0x111326['id']||_0x42f13a(),this['author']=_0x111326['author'],this['type']=_0x111326['type'],this['data']=_0x111326['data']||{},this['rootName']=_0x111326['rootName'],this['set']('createdAt',_0x111326['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(_0x43f98a,_0x2f65f4){this['newRevisionId']=_0x43f98a,this['oldRevisionId']=_0x2f65f4,this['changes']=new _0x1a0ead();}['_setChanges'](_0x7b25f2){for(const _0x53cff3 of _0x7b25f2)this['changes']['add'](_0x53cff3);}}class l extends _0x596849{['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[_0x4ea576,_0x3e9267,S,$];}constructor(_0x13e477){super(_0x13e477),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',(_0x168743,_0x51d114,_0x71b296)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x4dd3e6=>{for(const _0x33c010 of this['editor']['editing']['view']['document']['roots'])_0x71b296?_0x4dd3e6['removeClass']('ck-editor__editable__overlay',_0x33c010):_0x4dd3e6['addClass']('ck-editor__editable__overlay',_0x33c010);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x4c8766=>null!==_0x4c8766),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x180e77,_0x2ec077,_0x1cb015)=>_0x180e77&&_0x1cb015?_0x2ec077['changes']['getIndex'](_0x1cb015):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x32ca6f,_0x21d8cd)=>_0x32ca6f?_0x21d8cd['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x3e9267);}['init'](){const _0x47fb45=this['editor'],_0xc56b0c=new rt(_0x47fb45,{'direction':'backward'}),_0x57a0bb=new rt(_0x47fb45,{'direction':'forward'});(_0x47fb45['commands']['add']('showPreviousChange',_0xc56b0c),_0x47fb45['commands']['add']('showNextChange',_0x57a0bb),_0x47fb45['commands']['add']('restoreRevision',new nt(_0x47fb45)),this['on']('change:numberOfChanges',()=>{_0xc56b0c['refresh'](),_0x57a0bb['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x47fb45['enableReadOnlyMode']('revision-viewer'),_0x47fb45['plugins']['has']('WidgetToolbarRepository'))&&_0x47fb45['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x23aa7b){return await this['_utils']['loadRevisionData'](_0x23aa7b,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x23aa7b);}async['getRevisionRootsAttributes'](_0x347b62){return await this['_utils']['loadRevisionData'](_0x347b62,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x347b62);}async['compare'](_0x25b64a,_0x59ae29,_0x11b76a=!0x1){if(!this['isEnabled'])return;const _0x3cb051=this['diff'],_0x59a9d4=this['repository'],_0x286325='string'==typeof _0x25b64a?_0x59a9d4['getRevision'](_0x25b64a):_0x25b64a,_0x3d95e7='string'==typeof _0x59ae29?_0x59a9d4['getRevision'](_0x59ae29):_0x59ae29,_0x4e13ce=_0x286325['id'],_0x4ec6ba=_0x3d95e7?_0x3d95e7['id']:null;if(!_0x11b76a&&this['diff']&&this['diff']['newRevisionId']===_0x4e13ce&&this['diff']['oldRevisionId']===_0x4ec6ba)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x4e13ce,_0x4ec6ba);const _0x4fa052=this['_getRevisionsRange'](_0x286325,_0x3d95e7,!0x0)['map'](_0x2ac80b=>this['_utils']['loadRevisionData'](_0x2ac80b,this['adapter']));return _0x4fa052['push'](new Promise(_0x41e3e7=>{setTimeout(_0x41e3e7,0x14);})),Promise['all'](_0x4fa052)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x3d9cb4=this['_getDiff'](_0x4e13ce,_0x4ec6ba);for(const _0x2f5f86 of _0x3d9cb4['changes'])this['_changeIdToChange']['set'](_0x2f5f86['id'],_0x2f5f86);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x3fbf54=>{for(const _0x2e732e of this['editor']['model']['document']['getRootNames']())_0x3fbf54['detachRoot'](_0x2e732e);for(const _0x8554db of Object['keys'](_0x3d9cb4['model'])){const _0x585a63=_0x3fbf54['addRoot'](_0x8554db);for(const _0x33600 of Object['keys'](_0x3d9cb4['attributes'][_0x8554db]))_0x3fbf54['setAttribute'](_0x33600,_0x3d9cb4['attributes'][_0x8554db][_0x33600],_0x585a63);_0x3fbf54['insert'](_0x3d9cb4['model'][_0x8554db],_0x585a63,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x3d9cb4['changes'])),this['isReady']=!0x0;})['catch'](_0x6b883e=>{console['error'](_0x6b883e),this['_cleanUp'](),_0x3cb051&&(this['diff']=_0x3cb051),this['isReady']=!0x0;});}['addRevisionData'](_0x1148d7,_0x182f6e){const _0x563a15=this['repository']['createRevision'](_0x1148d7);return _0x563a15['on']('_update',(_0x3af56c,_0x4afa0a,_0x923d1e)=>_0x182f6e(_0x4afa0a,_0x923d1e,_0x563a15)),this['repository']['addRevision'](_0x563a15),_0x563a15;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0xc2796a=>{for(const _0x44d0e9 of this['editor']['model']['document']['getRootNames']())_0xc2796a['detachRoot'](_0x44d0e9);});}['_sortAndFilterDiffChanges'](_0x25ac37){const _0x1ee619=[],_0x381498=new Map();for(const _0x4ff0cc of this['editor']['model']['document']['getRootNames']()){const _0x549a44=this['editor']['editing']['view']['getDomRoot'](_0x4ff0cc);if(!_0x549a44)continue;const _0x5b9789=_0x549a44['getClientRects']()['item'](0x0);_0x5b9789&&(_0x1ee619['push'](_0x4ff0cc),_0x381498['set'](_0x4ff0cc,_0x5b9789));}return _0x1ee619['sort']((_0x2baa51,_0x1db753)=>{const _0x5c962c=_0x381498['get'](_0x2baa51),_0x4ddcc0=_0x381498['get'](_0x1db753);return _0x5c962c['y']-_0x4ddcc0['y']||_0x5c962c['x']-_0x4ddcc0['x'];}),(_0x25ac37=_0x25ac37['filter'](_0x7dfde5=>_0x1ee619['includes'](_0x7dfde5['rootName'])))['sort']((_0x5f4513,_0x80575)=>_0x1ee619['indexOf'](_0x5f4513['rootName'])-_0x1ee619['indexOf'](_0x80575['rootName'])),_0x25ac37;}['_makeTape'](_0x39e67d){const _0x209ad4=Array['from'](_0x39e67d['markers'])['filter'](([_0x5a94ad,_0x38b845])=>_0x5a94ad['startsWith']('revision:')&&!_0x38b845['isCollapsed']),_0x5120da=Array['from'](this['editor']['model']['createRangeIn'](_0x39e67d)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x209ad4['length'])for(const _0x253326 of _0x5120da){const [_0x5afa97,_0x3614aa]=_0x209ad4[0x0],[,_0x3cf2b7,_0x5710da]=_0x5afa97['split'](':');if(_0x3614aa['end']['isEqual'](_0x253326['nextPosition'])&&_0x209ad4['shift'](),(_0x253326['previousPosition']['isEqual'](_0x3614aa['start'])||_0x253326['previousPosition']['isAfter'](_0x3614aa['start']))&&('insertion'==_0x3cf2b7?_0x253326['isAdded']={'userId':_0x5710da}:'deletion'==_0x3cf2b7&&(_0x253326['isRemoved']={'userId':_0x5710da})),0x0==_0x209ad4['length'])break;}return _0x5120da;}['_refreshStartEndIndex'](_0x18e3a4){const _0x1963ee=new Map();for(let _0x5470a1=0x0;_0x5470a1<_0x18e3a4['length'];_0x5470a1++)'text'===_0x18e3a4[_0x5470a1]['type']?(_0x18e3a4[_0x5470a1]['item']['startIndex']=_0x5470a1,_0x18e3a4[_0x5470a1]['item']['endIndex']=_0x5470a1):('elementStart'===_0x18e3a4[_0x5470a1]['type']?_0x18e3a4[_0x5470a1]['item']['startIndex']=_0x5470a1:'elementEnd'===_0x18e3a4[_0x5470a1]['type']&&(_0x18e3a4[_0x5470a1]['item']['endIndex']=_0x5470a1),_0x1963ee['set'](_0x18e3a4[_0x5470a1]['id'],_0x5470a1));for(const _0x4907bd of _0x1963ee['values']())'elementStart'===_0x18e3a4[_0x4907bd]['type']?_0x18e3a4[_0x4907bd]['item']['endIndex']=_0x1963ee['get'](_0x18e3a4[_0x4907bd]['pairId']):'elementEnd'===_0x18e3a4[_0x4907bd]['type']&&(_0x18e3a4[_0x4907bd]['item']['startIndex']=_0x1963ee['get'](_0x18e3a4[_0x4907bd]['pairId']));}['_processTape'](_0x102739){for(let _0x2494b9=0x0;_0x2494b9<_0x102739['length'];_0x2494b9++){if('elementStart'===_0x102739[_0x2494b9]['type'])_0x102739[_0x2494b9]['item']['startIndex']=_0x2494b9;else{if('elementEnd'===_0x102739[_0x2494b9]['type']){_0x102739[_0x2494b9]['item']['endIndex']=_0x2494b9;const _0x1ede6b=_0x102739[_0x2494b9]['item']['startIndex'];_0x102739[_0x1ede6b]['pairId']=_0x102739[_0x2494b9]['id'],_0x102739[_0x2494b9]['pairId']=_0x102739[_0x1ede6b]['id'];}else _0x102739[_0x2494b9]['item']['startIndex']=_0x2494b9,_0x102739[_0x2494b9]['item']['endIndex']=_0x2494b9,_0x102739[_0x2494b9]['pairId']=null;}_0x102739[_0x2494b9]['markersStart']||(_0x102739[_0x2494b9]['markersStart']=[],_0x102739[_0x2494b9]['markersEnd']=[]);}}['_markInsertions'](_0x2bfd43,_0x26a0e0){const _0x369545=_0x2bfd43['filter'](_0x344558=>!_0x344558['isAdded']);for(let _0x2585ba=0x0;_0x2585ba<_0x26a0e0['length'];_0x2585ba++)_0x26a0e0[_0x2585ba]['isAdded']&&(_0x369545[_0x2585ba]['isAdded']=_0x26a0e0[_0x2585ba]['isAdded']);}['_getDiff'](_0x1ed3bc,_0x5ad081=null){const _0x57cdd7=this['repository']['getRevision'](_0x1ed3bc),_0xba59b7=_0x5ad081?this['repository']['getRevision'](_0x5ad081):null,_0x28caca=this['_getRevisionsRange'](_0x57cdd7,_0xba59b7),_0x5639b5=_0x28caca[_0x28caca['length']-0x1],_0x4c100e=new Map(),_0x369c74={'model':{},'attributes':{},'changes':[]},_0x30a9c2=new Set(),_0x33c04e=new Map();for(let _0x53794f=_0x28caca['length']-0x1;_0x53794f>=0x0;_0x53794f--){const _0x3daf5e=_0x28caca[_0x53794f];for(const _0x1b6dc7 of Object['keys'](_0x3daf5e['diffData']))if(_0x3daf5e['diffData'][_0x1b6dc7]['attachChange']){const _0x694c90=_0x3daf5e['diffData'][_0x1b6dc7]['attachChange'];_0x694c90['isAttached']?(_0x30a9c2['add'](_0x1b6dc7),_0x33c04e['has'](_0x1b6dc7)&&_0x33c04e['get'](_0x1b6dc7)['userId']==_0x694c90['userId']?_0x33c04e['delete'](_0x1b6dc7):_0x33c04e['set'](_0x1b6dc7,_0x694c90)):_0x33c04e['has'](_0x1b6dc7)?(_0x30a9c2['delete'](_0x1b6dc7),_0x33c04e['delete'](_0x1b6dc7)):(_0x30a9c2['add'](_0x1b6dc7),_0x33c04e['set'](_0x1b6dc7,_0x694c90));}else _0x30a9c2['add'](_0x1b6dc7);}for(const _0x162a8f of _0x30a9c2){const _0x334254=_0x33c04e['has'](_0x162a8f)&&!_0x33c04e['get'](_0x162a8f)['isAttached'];let _0x532471=_0x334254?_0x28caca['length']-0x1:0x0;const _0x3622ab=_0x334254?-0x1:0x1;for(;_0x28caca[_0x532471];){const _0x495b20=_0x28caca[_0x532471];if(_0x495b20['diffData'][_0x162a8f]){const _0x1fafb8=_0x334254?_0x495b20['diffData'][_0x162a8f]['attributesBefore']:_0x495b20['diffData'][_0x162a8f]['attributesAfter'];_0x369c74['attributes'][_0x162a8f]=_0x1fafb8?_0x5e8bc8(_0x1fafb8):{};break;}_0x532471+=_0x3622ab;}}for(const _0x67e738 of _0x28caca){_0x67e738['model']={};for(const _0xc5c3dc of _0x67e738['authors'])_0x4c100e['set'](_0xc5c3dc['id'],_0xc5c3dc);for(const _0x4801d2 of _0x30a9c2){const _0x97a36=_0x67e738['diffData'][_0x4801d2]?_0x67e738['diffData'][_0x4801d2]['insertions']:'[]',_0xe77359=_0x67e738['diffData'][_0x4801d2]?_0x67e738['diffData'][_0x4801d2]['deletions']:'[]';_0x67e738['model'][_0x4801d2]={'insertions':this['_utils']['_makeModelFromViewString'](_0x97a36),'deletions':this['_utils']['_makeModelFromViewString'](_0xe77359)};}}for(const _0x1c8bde of _0x30a9c2){let _0x1a65e0=null,_0x2a8fae=0x0;const _0x17f6a2=new Map(Array['from'](_0x57cdd7['model'][_0x1c8bde]['insertions']['markers'])['filter'](([_0xcf9eb0])=>!_0xcf9eb0['startsWith']('revision:')));let _0x49eab4=0x0;for(const _0x175ac5 of _0x28caca){const _0x37b275=this['_makeTape'](_0x175ac5['model'][_0x1c8bde]['insertions']);_0x175ac5==_0x57cdd7?(_0x1a65e0=_0x37b275,_0x2a8fae=_0x1a65e0['length'],_0x1a65e0['forEach'](_0x25e8d7=>{_0x25e8d7['id']=_0x49eab4++;}),this['_processTape'](_0x1a65e0)):this['_markInsertions'](_0x1a65e0,_0x37b275);const _0x26b4a9=_0x1a65e0['filter'](_0x420326=>!_0x420326['isAdded'])['map'](_0x339235=>_0x339235['id']);let _0x40bfb3=0x0;const _0x296854=this['_makeTape'](_0x175ac5['model'][_0x1c8bde]['deletions']);_0x296854['forEach'](_0x28d102=>{_0x28d102['isRemoved']?_0x28d102['id']=_0x2a8fae++:_0x28d102['id']=_0x26b4a9[_0x40bfb3++];}),this['_processTape'](_0x296854),this['_setDistance'](_0x1a65e0,'isAdded'),this['_setDistance'](_0x296854,'isRemoved'),_0x175ac5==_0x57cdd7&&this['_markMarkers'](_0x1a65e0,_0x17f6a2),_0x1a65e0=this['_joinTapes'](_0x1a65e0,_0x296854),this['_refreshStartEndIndex'](_0x1a65e0),this['_setDistance'](_0x1a65e0,'isRemoved');}_0x1a65e0=_0x1a65e0['filter'](_0xcea0d=>!(_0xcea0d['isAdded']&&_0xcea0d['isRemoved']));const _0x518daa=new Map(_0x5639b5['model'][_0x1c8bde]['deletions']['markers']),_0x40844e=new Set(_0x17f6a2['keys']());for(const _0x1b6d10 of _0x518daa['keys']())_0x40844e['delete'](_0x1b6d10);this['_markSuggestions'](_0x1a65e0,_0x40844e),this['_fixObsoleteTags'](_0x1a65e0),_0x1a65e0=this['_removeMissingPairs'](_0x1a65e0),_0x1a65e0=this['_markMismatchedRemovedTags'](_0x1a65e0),_0x1a65e0=this['_removeUnsupportedChanges'](_0x1a65e0);const {root:_0x3a5ed6,changes:_0x4321b3}=this['_makeModelFromTape'](_0x1a65e0,_0x4c100e,_0x1c8bde);_0x369c74['model'][_0x1c8bde]=_0x3a5ed6;const _0xb5b649=_0x33c04e['get'](_0x1c8bde);if(_0xb5b649){const _0x1f976a=_0x4c100e['get'](_0xb5b649['userId']),_0x21dda2=new G({'author':_0x1f976a,'type':_0xb5b649['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x1c8bde});_0x4321b3['unshift'](_0x21dda2),_0x369c74['attributes'][_0x1c8bde]['revisionHistoryAttachChange']=_0x21dda2['id'];}_0x369c74['changes']=_0x369c74['changes']['concat'](_0x4321b3);}return _0x369c74;}['_markMarkers'](_0x446907,_0x29416f){for(let _0x5b528d=0x0;_0x5b528d<_0x446907['length'];_0x5b528d++)for(const [_0x19dd40,_0x1b3778]of _0x29416f)!_0x1b3778['isCollapsed']&&_0x1b3778['start']['isEqual'](_0x446907[_0x5b528d]['previousPosition'])&&_0x446907[_0x5b528d]['markersStart']['push'](_0x19dd40),_0x1b3778['end']['isEqual'](_0x446907[_0x5b528d]['nextPosition'])&&_0x446907[_0x5b528d]['markersEnd']['push'](_0x19dd40);}['_joinTapes'](_0x499488,_0x5562a7){let _0x2b77b4=[],_0x3834fb=0x0,_0x3225c5=0x0;for(;_0x3834fb<_0x499488['length']||_0x3225c5<_0x5562a7['length'];){const _0x1f5a3f=_0x499488[_0x3834fb]||{},_0xa69502=_0x5562a7[_0x3225c5]||{};if(_0x1f5a3f['id']==_0xa69502['id'])_0x3834fb++,_0x3225c5++,_0x2b77b4['push'](_0x1f5a3f);else{if(_0xa69502['isRemoved']&&_0x1f5a3f['isAdded']){const {commonTape:_0x44979e,iEnd:_0x5cd6f0,jEnd:_0xd108c5}=this['_threeWayMerge'](_0x499488,_0x3834fb,_0x5562a7,_0x3225c5);_0x2b77b4=_0x2b77b4['concat'](_0x44979e),_0x3834fb=_0x5cd6f0,_0x3225c5=_0xd108c5;}else _0xa69502['isRemoved']?(_0x3225c5++,_0x2b77b4['push'](_0xa69502)):(_0x3834fb++,_0x2b77b4['push'](_0x1f5a3f));}}return _0x2b77b4;}['_markSuggestions'](_0x7610dd,_0x1de40b){const _0x52bec3=[];for(let _0x37b351=0x0;_0x37b351<_0x7610dd['length'];_0x37b351++){for(let _0x344dea=0x0;_0x344dea<_0x7610dd[_0x37b351]['markersStart']['length'];_0x344dea++){const _0x54e2fb=_0x7610dd[_0x37b351]['markersStart'][_0x344dea];if(!_0x1de40b['has'](_0x54e2fb))continue;const {group:_0x46478a,type:_0x5c3c35,authorId:_0x21910d}=_0x182c26(_0x54e2fb);'revision-suggestion'!=_0x46478a||'insertion'!=_0x5c3c35&&'deletion'!=_0x5c3c35||(_0x52bec3['unshift']({'type':_0x5c3c35,'name':_0x54e2fb,'userId':_0x21910d}),_0x7610dd[_0x37b351]['markersStart']['splice'](_0x344dea,0x1),_0x344dea--);}_0x13ad71(_0x7610dd[_0x37b351]);for(let _0x58f2a0=0x0;_0x58f2a0<_0x7610dd[_0x37b351]['markersEnd']['length'];_0x58f2a0++){const _0x643c13=_0x7610dd[_0x37b351]['markersEnd'][_0x58f2a0];if(!_0x1de40b['has'](_0x643c13))continue;const {group:_0x5cfd2f,type:_0x3eea86}=_0x182c26(_0x643c13);if('revision-suggestion'!=_0x5cfd2f||'insertion'!=_0x3eea86&&'deletion'!=_0x3eea86)continue;_0x7610dd[_0x37b351]['markersEnd']['splice'](_0x58f2a0,0x1),_0x58f2a0--;const _0x39c081=_0x52bec3['findIndex'](_0x4550a0=>_0x4550a0['name']==_0x643c13);_0x39c081>-0x1&&_0x52bec3['splice'](_0x39c081,0x1);}}function _0x182c26(_0x490624){const _0x4ef133=_0x490624['split'](':');return{'group':_0x4ef133[0x0],'type':_0x4ef133[0x1],'subType':_0x4ef133['length']>=0x5?_0x4ef133[0x2]:null,'id':_0x4ef133['length']<0x5?_0x4ef133[0x2]:_0x4ef133[0x3],'authorId':_0x4ef133['length']<0x5?_0x4ef133[0x3]:_0x4ef133[0x4],'markerCount':0x6==_0x4ef133['length']?_0x4ef133[0x5]:null};}function _0x13ad71(_0x222df2){for(let _0x5252b2=0x0;_0x5252b2<_0x52bec3['length'];_0x5252b2++){if(_0x222df2['isAdded']&&'insertion'==_0x52bec3[_0x5252b2]['type']&&_0x222df2['isAdded']['userId']==_0x52bec3[_0x5252b2]['userId'])return _0x222df2['isAddSuggestion']=_0x52bec3[_0x5252b2],void delete _0x222df2['isAdded'];if(!_0x222df2['isAdded']&&!_0x222df2['isRemoved']&&'deletion'==_0x52bec3[_0x5252b2]['type'])return void(_0x222df2['isRemoveSuggestion']=_0x52bec3[_0x5252b2]);}}}['_setDistance'](_0x205457,_0x58735b){let _0x1e7cec=0x0,_0x2aae1c=!0x1;const _0x2facb4=new Map();for(const _0xa2087b of _0x205457)_0xa2087b[_0x58735b]?_0x2aae1c&&(_0x1e7cec++,_0x2aae1c=!0x1):(_0x1e7cec++,_0x2aae1c=!0x0),_0x2facb4['set'](_0xa2087b['id'],_0x1e7cec);for(let _0x1f37f1=0x0;_0x1f37f1<_0x205457['length'];_0x1f37f1++){if('isRemoved'==_0x58735b&&_0x205457[_0x1f37f1]['isAdded']||'isAdded'==_0x58735b&&_0x205457[_0x1f37f1]['isRemoved'])continue;if('text'==_0x205457[_0x1f37f1]['type']){_0x205457[_0x1f37f1]['distance']=0x0;continue;}const _0x20b77c=_0x2facb4['get'](_0x205457[_0x1f37f1]['pairId']),_0x336a27=_0x2facb4['get'](_0x205457[_0x1f37f1]['id']);_0x205457[_0x1f37f1]['distance']=_0x20b77c-_0x336a27;}}['_getRevisionsRange'](_0xfa0ade,_0xaee783,_0x4f8800=!0x1){const _0x4b3840=[];let _0x16ff43=this['repository']['getIndex'](_0xfa0ade),_0x361f87=this['repository']['getIndex'](_0xaee783);for(-0x1==_0x361f87&&(_0x361f87=this['repository']['_revisions']['length'],_0x4f8800=!0x1);_0x16ff43<_0x361f87;)_0x4b3840['push'](this['repository']['getRevision'](_0x16ff43)),_0x16ff43++;return _0x4f8800&&_0x4b3840['push'](this['repository']['getRevision'](_0x16ff43)),_0x4b3840;}['_threeWayMerge'](_0x2f96d9,_0x3a65aa,_0x385f04,_0x4e0d7b){const _0x5b4277=this['editor']['model']['schema'];let _0x4032d2=_0x3a65aa;for(;_0x2f96d9[_0x4032d2]&&_0x2f96d9[_0x4032d2]['isAdded'];)_0x4032d2++;let _0xae9ac2=_0x4e0d7b;for(;_0x385f04[_0xae9ac2]&&_0x385f04[_0xae9ac2]['isRemoved'];)_0xae9ac2++;_0x5abee3(_0x2f96d9,_0x3a65aa,_0x4032d2),_0x5abee3(_0x385f04,_0x4e0d7b,_0xae9ac2);const _0x2a13bb=_0x385f04['slice'](_0x4e0d7b,_0xae9ac2)['concat'](_0x2f96d9['slice'](_0x3a65aa,_0x4032d2));return _0x2a13bb['sort']((_0x4ac9b7,_0x54cba7)=>_0x4ac9b7['side']!=_0x54cba7['side']?_0x4ac9b7['side']-_0x54cba7['side']:_0x4ac9b7['level']!=_0x54cba7['level']?_0x4ac9b7['level']-_0x54cba7['level']:_0x4ac9b7['distance']!=_0x54cba7['distance']?_0x54cba7['distance']-_0x4ac9b7['distance']:!!_0x4ac9b7['isAdded']!=!!_0x54cba7['isAdded']?-0x1==_0x4ac9b7['side']||0x0==_0x4ac9b7['side']?_0x4ac9b7['isAdded']?-0x1:0x1:_0x4ac9b7['isAdded']?0x1:-0x1:_0x4ac9b7['index']-_0x54cba7['index']),{'commonTape':_0x2a13bb,'iEnd':_0x4032d2,'jEnd':_0xae9ac2};function _0x5abee3(_0x1ec436,_0x4694fd,_0x3893b8){let _0x325047=-0x1,_0xf26821=Number['POSITIVE_INFINITY'],_0x3b9980=!0x0;for(let _0x1e094f=_0x4694fd;_0x1e094f<_0x3893b8;_0x1e094f++)if(_0x5b4277['isInline'](_0x1ec436[_0x1e094f]['item'])||(_0x3b9980=!0x1),_0x1ec436[_0x1e094f]['item']['startIndex']<_0x4694fd&&(_0x325047=_0x1e094f),_0x1ec436[_0x1e094f]['item']['endIndex']>=_0x3893b8){_0xf26821=_0x1e094f;break;}_0x3b9980&&(_0x325047=_0x3893b8-0x1);for(let _0x11ddfe=_0x4694fd;_0x11ddfe<_0x3893b8;_0x11ddfe++)_0x1ec436[_0x11ddfe]['side']=_0x11ddfe<=_0x325047?-0x1:_0x11ddfe<_0xf26821?0x0:0x1,_0x1ec436[_0x11ddfe]['index']=_0x11ddfe;let _0x47608e=0x0;for(let _0x3b40dc=_0x4694fd;_0x3b40dc<=_0x325047;_0x3b40dc++)0x0==_0x1ec436[_0x3b40dc]['distance']?_0x1ec436[_0x3b40dc]['level']=_0x47608e:(_0x47608e++,_0x1ec436[_0x3b40dc]['level']=_0x47608e,_0x47608e++);for(let _0x4e05bd=_0x4694fd;_0x4e05bd<_0x3893b8;_0x4e05bd++)0x0==_0x1ec436[_0x4e05bd]['side']&&(_0x1ec436[_0x4e05bd]['level']=_0x47608e);_0x47608e=0x0;for(let _0x2bf9d7=_0x3893b8-0x1;_0x2bf9d7>=_0xf26821;_0x2bf9d7--)0x0==_0x1ec436[_0x2bf9d7]['distance']?_0x1ec436[_0x2bf9d7]['level']=_0x47608e:(_0x47608e--,_0x1ec436[_0x2bf9d7]['level']=_0x47608e,_0x47608e--);}}['_fixObsoleteTags'](_0x531350){const _0x5c43e4=new Map(),_0x3de9bc=this['editor']['model']['schema'];for(let _0x450d73=0x1;_0x450d73<_0x531350['length'];_0x450d73++){let _0x3b33f9,_0x42ba84,_0x2fdf07;const _0x23a8d5=_0x531350[_0x450d73],_0x147a9c=_0x531350[_0x450d73-0x1];if('text'==_0x23a8d5['type'])continue;if(_0x23a8d5['type']!=_0x147a9c['type'])continue;if(!_0x3de9bc['isBlock'](_0x147a9c['item'])||_0x3de9bc['isLimit'](_0x147a9c['item']))continue;if(!_0x3de9bc['isBlock'](_0x23a8d5['item'])||_0x3de9bc['isLimit'](_0x23a8d5['item']))continue;if((_0x531350[_0x450d73]['isAdded']||_0x531350[_0x450d73]['isAddSuggestion'])&&_0x531350[_0x450d73-0x1]['isRemoved'])_0x3b33f9=_0x531350[_0x450d73],_0x42ba84=_0x531350[_0x450d73-0x1],_0x2fdf07=_0x450d73-0x1;else{if(!_0x531350[_0x450d73]['isRemoved']||!_0x531350[_0x450d73-0x1]['isAdded']&&!_0x531350[_0x450d73-0x1]['isAddSuggestion'])continue;_0x3b33f9=_0x531350[_0x450d73-0x1],_0x42ba84=_0x531350[_0x450d73],_0x2fdf07=_0x450d73;}const _0xa6894=_0x3b33f9['level']==_0x42ba84['level'],_0x5c80fe=Math['abs'](_0x3b33f9['level'])<Math['abs'](_0x42ba84['level'])&&0x0==_0x42ba84['distance'];(_0xa6894||_0x5c80fe)&&(_0x5c43e4['set'](_0x42ba84['id'],_0x3b33f9['id']),_0x531350['splice'](_0x2fdf07,0x1),_0x450d73--,_0x3b33f9['isAdded']=!0x1);}for(let _0x45eb7b=0x0;_0x45eb7b<_0x531350['length'];_0x45eb7b++)_0x5c43e4['has'](_0x531350[_0x45eb7b]['pairId'])&&(_0x531350[_0x45eb7b]['pairId']=_0x5c43e4['get'](_0x531350[_0x45eb7b]['pairId']));}['_removeMissingPairs'](_0x1b0934){const _0x1c0fd0=new Set(_0x1b0934['map'](_0x5a6349=>_0x5a6349['id']));for(let _0x4cfaec=0x0;_0x4cfaec<_0x1b0934['length'];_0x4cfaec++)_0x1c0fd0['has'](_0x1b0934[_0x4cfaec]['pairId'])||0x0==_0x1b0934[_0x4cfaec]['distance']||(_0x1b0934[_0x4cfaec]['isIncorrect']=!0x0);return _0x1b0934['filter'](_0x1ad60b=>!_0x1ad60b['isIncorrect']);}['_markMismatchedRemovedTags'](_0x36b0c7){const _0x1c840f=new Set();for(let _0x85e77f=0x0;_0x85e77f<_0x36b0c7['length'];_0x85e77f++){if(_0x1c840f['has'](_0x36b0c7[_0x85e77f]['id'])&&_0x36b0c7[_0x85e77f]['isRemoved']&&(_0x36b0c7[_0x85e77f]['isIncorrect']=!0x0),_0x36b0c7[_0x85e77f]['isIncorrect'])continue;if(0x0==_0x36b0c7[_0x85e77f]['distance'])continue;if('elementStart'!=_0x36b0c7[_0x85e77f]['type'])continue;if(null==_0x36b0c7[_0x85e77f]['pairId'])continue;let _0x1c8f32=_0x85e77f+0x1,_0x4bcd63=0x0;for(;_0x36b0c7[_0x1c8f32]['id']!=_0x36b0c7[_0x85e77f]['pairId'];)'elementStart'==_0x36b0c7[_0x1c8f32]['type']?_0x4bcd63++:'elementEnd'==_0x36b0c7[_0x1c8f32]['type']&&_0x4bcd63--,_0x1c8f32++;if(0x0!=_0x4bcd63){if(_0x36b0c7[_0x85e77f]['isRemoved'])_0x36b0c7[_0x85e77f]['isIncorrect']=!0x0;else{for(;_0x1c8f32!=_0x85e77f;)_0x36b0c7[_0x1c8f32]['isRemoved']&&0x0!=_0x36b0c7[_0x1c8f32]['distance']&&(_0x36b0c7[_0x1c8f32]['isIncorrect']=!0x0,_0x1c840f['add'](_0x36b0c7[_0x1c8f32]['pairId'])),_0x1c8f32--;}}}return _0x36b0c7['filter'](_0x1e2bb8=>!_0x1e2bb8['isIncorrect']);}['_removeUnsupportedChanges'](_0x5eaa87){const _0x474238=this['editor']['model']['schema'];for(let _0x27e076=0x0;_0x27e076<_0x5eaa87['length'];_0x27e076++){if(!(_0x5eaa87[_0x27e076]['isAdded']||_0x5eaa87[_0x27e076]['isAddSuggestion']||_0x5eaa87[_0x27e076]['isRemoved']||_0x5eaa87[_0x27e076]['isRemoveSuggestion']))continue;if(0x0==_0x5eaa87[_0x27e076]['distance'])continue;const _0x15023a=_0x5eaa87[_0x27e076]['item'];_0x474238['isBlock'](_0x15023a)||_0x474238['isLimit'](_0x15023a)||(_0x5eaa87[_0x27e076]['isAdded']&&delete _0x5eaa87[_0x27e076]['isAdded'],_0x5eaa87[_0x27e076]['isAddSuggestion']&&delete _0x5eaa87[_0x27e076]['isAddSuggestion'],_0x5eaa87[_0x27e076]['isRemoveSuggestion']&&delete _0x5eaa87[_0x27e076]['isRemoveSuggestion'],_0x5eaa87[_0x27e076]['isRemoved']&&(_0x5eaa87[_0x27e076]['isIncorrect']=!0x0));}return _0x5eaa87['filter'](_0x238239=>!_0x238239['isIncorrect']);}['_makeModelFromTape'](_0x49a0f8,_0x3e51d4,_0x509a51){const _0x204534=new _0x4ed160(),_0x3b2508=[],_0x39cd08=new Map(),_0x28278a=this['editor']['model'],_0x5342c9=_0x28278a['schema'],_0x38bfa7=[_0x204534],_0x34131c={},_0x3ec333={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x59c5a2=null;const _0x4f61d6=[0x0];for(let _0x432ade=0x0;_0x432ade<_0x49a0f8['length'];_0x432ade++)if('elementStart'===_0x49a0f8[_0x432ade]['type']){_0x49a0f8[_0x432ade]['previousPosition']=_0x28278a['createPositionFromPath'](_0x204534,_0x4f61d6);const _0x4d66da=new _0x21f743(_0x49a0f8[_0x432ade]['item']['name'],_0x49a0f8[_0x432ade]['item']['getAttributes']());_0x38bfa7[0x0]['_appendChild'](_0x4d66da),_0x4f61d6['push'](0x0),_0x38bfa7['unshift'](_0x4d66da),_0x49a0f8[_0x432ade]['nextPosition']=_0x28278a['createPositionFromPath'](_0x204534,_0x4f61d6);}else'elementEnd'===_0x49a0f8[_0x432ade]['type']?(_0x38bfa7['shift'](),_0x49a0f8[_0x432ade]['previousPosition']=_0x28278a['createPositionFromPath'](_0x204534,_0x4f61d6),_0x4f61d6['pop'](),_0x4f61d6[_0x4f61d6['length']-0x1]++,_0x49a0f8[_0x432ade]['nextPosition']=_0x28278a['createPositionFromPath'](_0x204534,_0x4f61d6)):(_0x49a0f8[_0x432ade]['previousPosition']=_0x28278a['createPositionFromPath'](_0x204534,_0x4f61d6),_0x59c5a2?_0x59c5a2['_data']+=_0x49a0f8[_0x432ade]['item']['data']:_0x59c5a2=new _0x1c8dfc(_0x49a0f8[_0x432ade]['item']['data'],_0x49a0f8[_0x432ade]['item']['getAttributes']()),_0x49a0f8[_0x432ade+0x1]&&'text'===_0x49a0f8[_0x432ade+0x1]['type']&&_0x5ad9ad(_0x59c5a2,_0x49a0f8[_0x432ade+0x1]['item'])||(_0x38bfa7[0x0]['_appendChild'](_0x59c5a2),_0x59c5a2=null),_0x4f61d6[_0x4f61d6['length']-0x1]+=_0x49a0f8[_0x432ade]['item']['offsetSize'],_0x49a0f8[_0x432ade]['nextPosition']=_0x28278a['createPositionFromPath'](_0x204534,_0x4f61d6));for(let _0x1717ea=0x0;_0x1717ea<_0x49a0f8['length'];_0x1717ea++){const _0x1897f3=_0x49a0f8[_0x1717ea]['previousPosition'],_0x30a8d3=_0x49a0f8[_0x1717ea]['nextPosition'];for(const _0xa0e446 of _0x49a0f8[_0x1717ea]['markersStart'])_0x39cd08['set'](_0xa0e446,{'start':_0x1897f3,'end':null});_0x3a1aa5('isRemoveSuggestion',_0x1717ea,_0x1897f3,_0x30a8d3),_0x3a1aa5('isAddSuggestion',_0x1717ea,_0x1897f3,_0x30a8d3),_0x3a1aa5('isRemoved',_0x1717ea,_0x1897f3,_0x30a8d3),_0x3a1aa5('isAdded',_0x1717ea,_0x1897f3,_0x30a8d3);for(const _0x1c2e87 of _0x49a0f8[_0x1717ea]['markersEnd']){const _0x39e65f=_0x39cd08['get'](_0x1c2e87);_0x39e65f?_0x39e65f['end']=_0x30a8d3:_0x39cd08['set'](_0x1c2e87,{'start':_0x30a8d3,'end':_0x30a8d3});}}for(const [_0x417186,_0x52ff09]of _0x39cd08){const _0x373edf=this['editor']['model']['createRange'](_0x52ff09['start'],_0x52ff09['end']);_0x204534['markers']['set'](_0x417186,_0x373edf);}return _0x3b2508['sort']((_0x3dd23c,_0x54cc41)=>{const _0x2142a8=_0x204534['markers']['get']('revision:'+_0x3dd23c['id']),_0x35fbe7=_0x204534['markers']['get']('revision:'+_0x54cc41['id']);return _0x2142a8['start']['isBefore'](_0x35fbe7['start'])?-0x1:_0x2142a8['start']['isAfter'](_0x35fbe7['start'])?0x1:_0x2142a8['end']['isBefore'](_0x35fbe7['end'])?-0x1:_0x2142a8['end']['isAfter'](_0x35fbe7['end'])?0x1:'add'===_0x3dd23c['type']?-0x1:0x1;}),{'root':_0x204534,'changes':_0x3b2508};function _0x3a1aa5(_0x4bfc63,_0x172ef0,_0x25bfe5,_0x5df4be){const _0x1c6d13=!!_0x49a0f8[_0x172ef0][_0x4bfc63],_0x25e89b=_0x1c6d13?_0x49a0f8[_0x172ef0][_0x4bfc63]['userId']:null,_0x5df772=_0x172ef0===_0x49a0f8['length']-0x1,_0x94ec01=_0x3ec333[_0x4bfc63][0x0],_0x527ff2=_0x5342c9['isObject'](_0x49a0f8[_0x172ef0]['item']);!_0x34131c[_0x4bfc63]&&_0x1c6d13?_0x34131c[_0x4bfc63]={'start':_0x25bfe5,'tapeItem':_0x49a0f8[_0x172ef0],'userId':_0x25e89b,'type':_0x4bfc63}:_0x34131c[_0x4bfc63]&&!_0x1c6d13?(_0x34131c[_0x4bfc63]['end']=_0x25bfe5,_0x3c36ce(_0x34131c[_0x4bfc63]),_0x34131c[_0x4bfc63]=null):_0x34131c[_0x4bfc63]&&_0x1c6d13&&_0x34131c[_0x4bfc63]['userId']!==_0x25e89b&&(_0x34131c[_0x4bfc63]['end']=_0x25bfe5,_0x94ec01&&_0x94ec01['userId']===_0x34131c[_0x4bfc63]['userId']||_0x3c36ce(_0x34131c[_0x4bfc63]),_0x34131c[_0x4bfc63]={'start':_0x25bfe5,'tapeItem':_0x49a0f8[_0x172ef0],'userId':_0x25e89b,'type':_0x4bfc63}),_0x34131c[_0x4bfc63]&&_0x527ff2&&('elementStart'!==_0x49a0f8[_0x172ef0]['type']||_0x94ec01&&_0x94ec01['userId']===_0x25e89b||_0x3ec333[_0x4bfc63]['unshift']({'userId':_0x25e89b,'object':_0x49a0f8[_0x172ef0]['item'],'change':_0x34131c[_0x4bfc63]}),'elementEnd'===_0x49a0f8[_0x172ef0]['type']&&_0x94ec01&&_0x94ec01['object']===_0x49a0f8[_0x172ef0]['item']&&(_0x3ec333[_0x4bfc63]['shift'](),_0x34131c[_0x4bfc63]=_0x94ec01['change'])),_0x34131c[_0x4bfc63]&&_0x5df772&&(_0x34131c[_0x4bfc63]['end']=_0x5df4be,_0x3c36ce(_0x34131c[_0x4bfc63]),_0x34131c[_0x4bfc63]=null);}function _0x3c36ce({start:_0xc6b53e,end:_0x5f5189,tapeItem:_0x342df0,userId:_0x48ae7e,type:_0x5a43a0}){const _0x2dfe21=_0x342df0['item'],_0x391a1c=_0x28278a['schema']['isBlock'](_0x2dfe21)&&!_0x28278a['schema']['isLimit'](_0x2dfe21),_0x54d14f=_0xc6b53e['nodeAfter']==_0x5f5189['parent']&&_0x5f5189['isAtStart'];if(_0x391a1c&&_0x54d14f)return;const _0x10b21a=_0x28278a['createRange'](_0xc6b53e,_0x5f5189),_0xabcb44=_0x3e51d4['get'](_0x48ae7e),_0x17ab6f=new G({'author':_0xabcb44,'type':'isAdded'==_0x5a43a0||'isAddSuggestion'==_0x5a43a0?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x5a43a0||'isRemoveSuggestion'==_0x5a43a0},'createdAt':new Date(),'rootName':_0x509a51});_0x3b2508['push'](_0x17ab6f),_0x204534['markers']['set']('revision:'+_0x17ab6f['id'],_0x10b21a);}function _0x5ad9ad(_0x17ec54,_0x219108){const _0x50e882=_0x17ec54['getAttributes'](),_0x376c1b=_0x219108['getAttributes']();for(const _0x1070f9 of _0x50e882){if(_0x1070f9[0x1]!==_0x219108['getAttribute'](_0x1070f9[0x0]))return!0x1;_0x376c1b['next']();}return _0x376c1b['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x23f2e2=>{const _0xf306ed=_0x23f2e2['markerName']['split'](':')[0x1],_0x4ed630=this['_getChangeFromId'](_0xf306ed);if(!_0x4ed630)return null;const _0x4d0745='add'==_0x4ed630['type']?'insertion':'deletion',_0x523ff9=['ck-suggestion-marker','ck-suggestion-marker-'+_0x4d0745];return _0x4ed630['data']['isSuggestion']&&_0x523ff9['push']('ck-suggestion-marker-'+_0x4d0745+'-new'),this['activeChange']==_0x4ed630&&_0x523ff9['push']('ck-suggestion-marker--active'),{'classes':_0x523ff9,'attributes':{'data-change-id':_0xf306ed}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x47fd99=>{_0x47fd99['on']('element:pre',(_0xb2c8e5,_0xd0347a,_0x5a067e)=>{const _0x126df8=_0xd0347a['viewItem']['getChild'](0x0);if(!_0x126df8||!_0x126df8['is']('element','code'))return;if(!_0x5a067e['consumable']['consume'](_0x126df8,{'attributes':['vid_start','vid_end']}))return;const _0x4d8e51=_0xd0347a['modelRange']['start']['nodeAfter'];_0x5a067e['writer']['setAttribute']('vid_start',_0x126df8['getAttribute']('vid_start'),_0x4d8e51),_0x5a067e['writer']['setAttribute']('vid_end',_0x126df8['getAttribute']('vid_end'),_0x4d8e51);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x5cacae=>{_0x5cacae['on']('element',(_0x2aea8a,_0x19d0b6,_0x500aa7)=>{if(!_0x500aa7['consumable']['consume'](_0x19d0b6['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x19d0b6['modelRange']['isCollapsed'])return;const _0x1c744e=_0x19d0b6['modelRange']['start']['nodeAfter'];_0x1c744e['hasAttribute']('vid_start')||_0x1c744e['hasAttribute']('vid')||(_0x500aa7['writer']['setAttribute']('vid_start',_0x19d0b6['viewItem']['getAttribute']('vid_start'),_0x1c744e),_0x500aa7['writer']['setAttribute']('vid_end',_0x19d0b6['viewItem']['getAttribute']('vid_end'),_0x1c744e));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x251544=>_0x251544['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x30fd01,[,_0x426797])=>{['vid_start','vid_end','vid']['includes'](_0x426797)&&(_0x30fd01['return']=!0x0,_0x30fd01['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x5a1182=>{_0x5a1182['on']('attribute:vid',(_0x2f1c8f,_0x9f431b,_0x51d9cd)=>{if('\x20'!=_0x9f431b['item']['data']||_0x9f431b['item']['parent']['maxOffset']>0x1)return;if(!_0x51d9cd['consumable']['consume'](_0x9f431b['item'],_0x2f1c8f['name']))return;const _0x270114=_0x51d9cd['writer'],_0x517d55=_0x51d9cd['mapper']['toViewRange'](_0x9f431b['range']);_0x270114['wrap'](_0x517d55,_0x270114['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x12ccb2){const _0x16b800=_0x12ccb2['plugins']['get']('RevisionViewer');return(_0x2f6eb1,_0x577b12,_0xcd35f8)=>{const _0x1b4b31=_0x577b12['markerName']['split'](':')[0x1],_0x47b4ed=_0x16b800['_getChangeFromId'](_0x1b4b31);if(!_0x47b4ed)return null;const _0x21ef43='add'==_0x47b4ed['type']?'split':'merge';if(!_0xcd35f8['consumable']['test'](_0x577b12['markerRange'],_0x2f6eb1['name']))return;const _0x5f5d3b=_0x577b12['markerRange']['getWalker'](),_0x4af4d0=_0x577b12['markerRange']['start'],_0x32dffb=_0x12ccb2['model']['schema'];let _0x1fd9c1=null,_0x594c4f=null,_0x545cff=!0x1,_0x1ddfe7=!0x1;for(const _0x5e29c9 of _0x5f5d3b){const _0x4ce6d4=_0x5e29c9['item'];_0x545cff=_0x545cff||_0x32dffb['isContent'](_0x4ce6d4);const _0x72d10f=_0xcd35f8['mapper']['toViewElement'](_0x4ce6d4);if(_0x72d10f&&_0x72d10f['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5e29c9['type']&&(_0x32dffb['isBlock'](_0x4ce6d4)&&!_0x32dffb['isLimit'](_0x4ce6d4)&&(_0x4ce6d4['nextSibling']||_0x4af4d0['isAtEnd']?_0x1fd9c1&&_0x1fd9c1['parent']==_0x4ce6d4||(_0x1fd9c1=_0x4ce6d4,_0x3104e6(_0x5e29c9['previousPosition']),_0x1ddfe7=!0x0):_0x594c4f=_0x594c4f||_0x5e29c9['previousPosition']));}function _0x3104e6(_0x13035c){const _0x7b2966=_0xcd35f8['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x21ef43}),_0x9bd9fc=_0xcd35f8['mapper']['toViewPosition'](_0x13035c);_0x47b4ed['data']['isSuggestion']&&_0xcd35f8['writer']['addClass']('ck-suggestion-marker-'+_0x21ef43+'-new',_0x7b2966),_0x16b800['activeChange']==_0x47b4ed&&_0xcd35f8['writer']['addClass']('ck-suggestion-marker--active',_0x7b2966),_0xcd35f8['writer']['insert'](_0x9bd9fc,_0x7b2966),_0xcd35f8['mapper']['bindElementToMarker'](_0x7b2966,_0x577b12['markerName']);}_0x545cff||_0x1ddfe7||!_0x594c4f||_0x3104e6(_0x594c4f);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x41e276,_0x2160dd,_0x2b3f9b)=>{const _0x300de6=_0x2b3f9b['mapper']['markerNameToElements'](_0x2160dd['markerName']);if(_0x300de6){for(const _0xaaca74 of _0x300de6)(_0xaaca74['hasClass']('ck-suggestion-marker-split')||_0xaaca74['hasClass']('ck-suggestion-marker-merge'))&&(_0x2b3f9b['mapper']['unbindElementFromMarkerName'](_0xaaca74,_0x2160dd['markerName']),_0x2b3f9b['writer']['remove'](_0xaaca74));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x1c462c,_0x3b4cb3,_0x518204)=>{const _0x3cf87d=_0x3b4cb3['markerName']['split'](':')[0x1],_0x2deb68=this['_getChangeFromId'](_0x3cf87d);if(!_0x2deb68)return null;const _0x39f5ea='add'==_0x2deb68['type']?'split':'merge';if(_0x518204['consumable']['test'](_0x3b4cb3['markerRange'],_0x1c462c['name']))for(const _0x5a92b4 of _0x3b4cb3['markerRange']['getItems']()){if(!_0x5a92b4['is']('element','softBreak'))continue;const _0x1645d5=_0x518204['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x39f5ea}),_0x2dd5b3=_0x518204['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x5a92b4));_0x2deb68['data']['isSuggestion']&&_0x518204['writer']['addClass']('ck-suggestion-marker-'+_0x39f5ea+'-new',_0x1645d5),this['activeChange']==_0x2deb68&&_0x518204['writer']['addClass']('ck-suggestion-marker--active',_0x1645d5),_0x518204['writer']['insert'](_0x2dd5b3,_0x1645d5),_0x518204['mapper']['bindElementToMarker'](_0x1645d5,_0x3b4cb3['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x4c6fd9=>{for(const _0x2d6fa2 of this['editor']['model']['document']['getRootNames']()){const _0x111bc4=this['editor']['model']['document']['getRoot'](_0x2d6fa2),_0x7f3172=this['editor']['editing']['view']['document']['getRoot'](_0x2d6fa2);if(_0x7f3172){const _0x2f285a=_0x111bc4['getAttribute']('revisionHistoryAttachChange');if(_0x4c6fd9['removeAttribute']('data-change-id',_0x7f3172),_0x4c6fd9['removeClass']('ck-revision-history-root-add',_0x7f3172),_0x4c6fd9['removeClass']('ck-revision-history-root-remove',_0x7f3172),_0x4c6fd9['removeClass']('ck-revision-history-root--active',_0x7f3172),_0x2f285a){const _0x3f4314=this['_getChangeFromId'](_0x2f285a);if(!_0x3f4314)return null;_0x4c6fd9['setAttribute']('data-change-id',_0x2f285a,_0x7f3172),_0x4c6fd9['addClass']('ck-revision-history-root-'+_0x3f4314['type'],_0x7f3172),this['activeChange']==_0x3f4314&&_0x4c6fd9['addClass']('ck-revision-history-root--active',_0x7f3172);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x110ef0=>'revision-comment:'+_0x110ef0,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x22db1e=>'revision-suggestion:'+_0x22db1e,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x2ace8c=>({'name':'suggestion:'+_0x2ace8c,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x201085=>{const _0x20ad2c=_0x201085['markerName']['split'](':')[0x1];return'insertion'!=_0x20ad2c&&'deletion'!=_0x20ad2c?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x20ad2c]};}}),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',(_0x37d1b9,_0x487132,_0xee4887)=>{const _0x385772=_0xee4887['mapper']['markerNameToElements'](_0x487132['markerName']);if(_0x385772){for(const _0x2be4b9 of _0x385772)_0x2be4b9['is']('uiElement')&&(_0xee4887['mapper']['unbindElementFromMarkerName'](_0x2be4b9,_0x487132['markerName']),_0xee4887['writer']['remove'](_0x2be4b9));}},{'priority':'high'});}['_getChangeFromId'](_0x1b126d){return this['_changeIdToChange']['get'](_0x1b126d);}['_getViewForChange'](_0x2c60ac){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x2c60ac),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x19214a,_0x1e2f4a,_0x420630,_0x38c66e)=>{_0x38c66e&&this['_balloon']['remove'](_0x38c66e),_0x420630&&(this['_balloon']['add']({'view':_0x420630,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x231ff8=this['editor']['editing'],_0x114940=this['_getChangeFromId'](_0x420630['changeId']);let _0x2e26a9;if(_0x114940['data']['isOnRoot']){const _0x5c7c1e=_0x231ff8['view']['getDomRoot'](_0x114940['rootName']);_0x2e26a9=Array['from'](_0x5c7c1e['getClientRects']());}else{const _0x44a10b=this['editor']['model']['markers']['get']('revision:'+_0x420630['changeId']);_0x2e26a9=Array['from'](_0x231ff8['mapper']['markerNameToElements'](_0x44a10b['name']))['map'](_0x4ea144=>_0x231ff8['view']['domConverter']['mapViewToDom'](_0x4ea144))['map'](_0x1a62b1=>Array['from'](_0x1a62b1['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x2e26a9[0x0];return _0x2e26a9['find'](_0x186181=>_0x186181['top']-0x3<=this['_activeViewTarget']['y']&&_0x186181['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x186181['left']-0x3<=this['_activeViewTarget']['x']&&_0x186181['right']+0x3>=this['_activeViewTarget']['x'])||_0x2e26a9[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x53e55f,_0xbb5d50,_0x1339b0,_0x396bf1)=>{this['activeView']=_0x1339b0?this['_getViewForChange'](_0x1339b0):null,this['editor']['model']['change'](()=>{const _0xd0c95=this['editor']['editing'];_0x396bf1&&(_0x396bf1['data']['isOnRoot']?_0xd0c95['view']['change'](_0x2b3053=>{_0x2b3053['removeClass']('ck-revision-history-root--active',_0xd0c95['view']['document']['getRoot'](_0x396bf1['rootName']));}):_0xd0c95['reconvertMarker']('revision:'+_0x396bf1['id'])),_0x1339b0&&(_0x1339b0['data']['isOnRoot']?_0xd0c95['view']['change'](_0x7ad10=>{_0x7ad10['addClass']('ck-revision-history-root--active',_0xd0c95['view']['document']['getRoot'](_0x1339b0['rootName']));}):_0xd0c95['reconvertMarker']('revision:'+_0x1339b0['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x453c2b,_0x50c287)=>{if(this['activeChange'])return;const _0x4436b9=this['_findChangeIdFromDomTarget'](_0x50c287['target']),_0x7bc7b6=this['_changeIdToChange']['get'](_0x4436b9);_0x7bc7b6?(this['_activeViewTarget']={'x':_0x50c287['domEvent']['x'],'y':_0x50c287['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x7bc7b6)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x43f885,_0x5b5184)=>{const _0x47c48a=this['_findChangeIdFromDomTarget'](_0x5b5184['target']),_0x4b5305=this['_changeIdToChange']['get'](_0x47c48a);_0x4b5305?(this['_activeViewTarget']={'x':_0x5b5184['domEvent']['x'],'y':_0x5b5184['domEvent']['y']},_0x4b5305===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x4b5305):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x9619d7){do{const _0x868d77=_0x9619d7['getAttribute']('data-change-id');if(_0x868d77)return _0x868d77;_0x9619d7=_0x9619d7['parent'];}while(_0x9619d7);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x33c2a0=>{for(const _0x1c8c1e of this['editor']['model']['markers'])_0x33c2a0['removeMarker'](_0x1c8c1e);});}}function Q(_0x5eb4c8,_0x32d623){return(_0x27ddbd,_0x3166c1,_0x4e890e)=>{if(!_0x4e890e['consumable']['test'](_0x3166c1['markerRange'],_0x27ddbd['name']))return;const _0x524176=_0x3166c1['markerRange']['getWalker'](),_0xb546eb=_0x3166c1['markerRange']['start'],_0x35655f=_0x5eb4c8['model']['schema'];let _0x4e63f8=null,_0x524ec7=null,_0x3b1052=!0x1,_0x15301e=!0x1;for(const _0x2ba9ce of _0x524176){const _0x241bee=_0x2ba9ce['item'];_0x3b1052=_0x3b1052||_0x35655f['isContent'](_0x241bee);const _0x21b424=_0x4e890e['mapper']['toViewElement'](_0x241bee);if(_0x21b424&&_0x21b424['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2ba9ce['type']&&(_0x35655f['isBlock'](_0x241bee)&&!_0x35655f['isLimit'](_0x241bee)&&(_0x241bee['nextSibling']||_0xb546eb['isAtEnd']?_0x4e63f8&&_0x4e63f8['parent']==_0x241bee||(_0x4e63f8=_0x241bee,_0x58c150(_0x2ba9ce['previousPosition']),_0x15301e=!0x0):_0x524ec7=_0x524ec7||_0x2ba9ce['previousPosition']));}function _0x58c150(_0x4d0ba4){const _0xd2518a=_0x4e890e['mapper']['toViewPosition'](_0x4d0ba4),_0xd4c17f=_0x4e890e['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x32d623});_0x4e890e['writer']['insert'](_0xd2518a,_0xd4c17f),_0x4e890e['mapper']['bindElementToMarker'](_0xd4c17f,_0x3166c1['markerName']);}_0x3b1052||_0x15301e||!_0x524ec7||_0x58c150(_0x524ec7);};}class nt extends _0x3e59d4{constructor(_0x42adb3){super(_0x42adb3);const _0x42cc49=_0x42adb3['plugins']['get'](l);this['affectsData']=!0x1,this['listenTo'](_0x42cc49,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x42cc49,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x20e4ab=this['editor'],_0x28ef64=_0x20e4ab['plugins']['get'](l),_0x542ee0=_0x28ef64['isReady']?_0x28ef64['diff']['newRevisionId']:null;_0x20e4ab['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x542ee0);}['refresh'](){const {isReady:_0x24133a,isEnabled:_0x5263a5,repository:_0x92a384,diff:_0x44688c}=this['editor']['plugins']['get'](l),_0x120c11=_0x44688c&&_0x92a384['getLaterVisibleRevision'](_0x44688c['newRevisionId']);this['isEnabled']=_0x24133a&&_0x5263a5&&Boolean(_0x120c11);}}class rt extends _0x3e59d4{['_step'];constructor(_0x1dbc64,{direction:_0x364986}){super(_0x1dbc64);const _0x448079=_0x1dbc64['plugins']['get'](l);this['affectsData']=!0x1,this['_step']='forward'===_0x364986?0x1:-0x1,this['listenTo'](_0x448079,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x448079,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x448079,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x11f1be=this['editor'],_0x3a00a4=_0x11f1be['plugins']['get'](l),{isNavigationMode:_0x253c3e,currentChangeNumber:_0x629500}=_0x3a00a4;let _0x2f854a;if(_0x3a00a4['activeChange']=_0x253c3e?_0x3a00a4['diff']['changes']['get'](_0x629500+this['_step']):_0x3a00a4['diff']['changes']['first'],_0x3a00a4['activeChange']['data']['isOnRoot'])_0x2f854a=_0x11f1be['editing']['view']['getDomRoot'](_0x3a00a4['activeChange']['rootName']);else{const _0x279d21=_0x11f1be['model']['markers']['get']('revision:'+_0x3a00a4['activeChange']['id']);_0x2f854a=_0xeccd24(_0x11f1be['editing'],_0x279d21);}_0x19a27f({'target':_0x2f854a,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x8eb925,currentChangeNumber:_0xba645c,numberOfChanges:_0x27aedc,isReady:_0x2916f9,isEnabled:_0x35d207}=this['editor']['plugins']['get'](l);this['isEnabled']=!!(_0x35d207&&_0x2916f9&&_0x27aedc)&&(!_0x8eb925||(0x1===this['_step']?_0xba645c<_0x27aedc-0x1:_0xba645c>0x0));}}class Ri extends _0x27d225{constructor(_0x508693){super(_0x508693);const _0x1a2ac2=this['bindTemplate'],_0x308d07=new _0x1f4689(_0x508693),_0x1b0c5f=new _0x1f4689(_0x508693);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',(_0x2266ae,_0x4775dc)=>_0x2266ae&&_0x4775dc>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x3fc519,_0x1d9519,_0x3a091b,_0x53d29c)=>{if(!_0x3fc519)return R(_0x508693,'Loading...');if(!_0x3a091b)return R(_0x508693,'No\x20changes');const _0x407ad9=R(_0x508693,'NUMBER_OF_CHANGES',_0x3a091b);return _0x53d29c?R(_0x508693,'X_OF_Y_CHANGES',[_0x1d9519+0x1,_0x3a091b]):_0x407ad9;}),_0x308d07['set']({'label':R(_0x508693,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x50aad3}),_0x1b0c5f['set']({'label':R(_0x508693,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x4f258c}),_0x308d07['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x1b0c5f['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x308d07['on']('execute',()=>this['fire']('execute','backward')),_0x1b0c5f['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',_0x1a2ac2['if']('_isStatusLabelVisible','ck-hidden',_0x54ee71=>!_0x54ee71)]},'children':[{'text':_0x1a2ac2['to']('isNavigationMode',_0x2ac620=>_0x2ac620?R(_0x508693,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x508693,'Total')+':\x20')}]},{'text':_0x1a2ac2['to']('_statusText')}]},new _0x20ef3a(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x308d07,_0x1b0c5f]}]});}}const ge='ck-editor__editable__loading-overlay';class ji extends _0x596849{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x2576ab=this['editor']['editing']['view'];_0x2576ab['change'](_0x680bea=>{for(const _0x2ed398 of _0x2576ab['document']['roots'])_0x680bea['addClass'](ge,_0x2ed398);});}['hide'](){const _0x497e87=this['editor']['editing']['view'];_0x497e87['change'](_0x966090=>{for(const _0x175342 of _0x497e87['document']['roots'])_0x966090['removeClass'](ge,_0x175342);});}}class u extends _0x596849{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,ji];}['init'](){const _0x1083d3=this['editor'],_0x40f6fb=_0x1083d3['plugins']['get'](l),_0x59a9af=_0x1083d3['plugins']['get'](ji);_0x1083d3['ui']['componentFactory']['add']('exitToEditing',_0x452655=>{const _0x93d3b2=new _0x1f4689(_0x452655);return _0x93d3b2['set']({'label':R(_0x452655,'Back\x20to\x20editing'),'icon':_0x18eb98,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x93d3b2,'execute',()=>{_0x1083d3['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x93d3b2;}),_0x1083d3['ui']['componentFactory']['add']('restoreRevision',_0x4c699d=>{const _0x2da1c5=new _0x1f4689(_0x4c699d);return _0x2da1c5['set']({'label':R(_0x4c699d,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x2da1c5['bind']('isEnabled')['to'](_0x1083d3['commands']['get']('restoreRevision')),this['listenTo'](_0x2da1c5,'execute',()=>_0x1083d3['execute']('restoreRevision')),_0x2da1c5;}),_0x1083d3['ui']['componentFactory']['add']('changesNavigation',_0x1c00e9=>{const _0x144469=new Ri(_0x1c00e9),_0x3deabb=_0x1083d3['commands']['get']('showPreviousChange'),_0x58a66c=_0x1083d3['commands']['get']('showNextChange');return _0x144469['bind']('isBackwardNavigationEnabled')['to'](_0x3deabb,'isEnabled'),_0x144469['bind']('isForwardNavigationEnabled')['to'](_0x58a66c,'isEnabled'),_0x144469['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x40f6fb),this['listenTo'](_0x144469,'execute',(_0x2aa774,_0x1f01b3)=>{_0x1083d3['execute']('forward'===_0x1f01b3?'showNextChange':'showPreviousChange');}),_0x144469;}),_0x59a9af['show'](),_0x40f6fb['on']('change:isReady',(_0x3b73c6,_0x2d6098,_0x508c19)=>{_0x508c19?_0x59a9af['hide']():_0x59a9af['show']();});}}class hi extends et{['_resizeObserver']=null;constructor(_0xaea931,_0x1d26e1){super(_0xaea931,_0x1d26e1);const _0x13fafd=this['bindTemplate'];this['set']({'label':R(_0xaea931,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0xaea931,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x13fafd['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 _0x3d9f87=this['fieldView']['element'];this['_tooltipString']=_0x3d9f87['scrollWidth']>_0x3d9f87['clientWidth']&&_0x3d9f87['value']||'';}}class ni extends _0x27d225{constructor(_0x1f6286,_0x2f0563,_0x20aa6e){super(_0x1f6286);const _0x5575fa=new _0x463106();_0x5575fa['set']({'content':_0x128921,'viewBox':'0\x200\x2011\x2010'});const _0x4158c5=['ck','ck-revision-history-sidebar__revision-author'];_0x20aa6e&&_0x4158c5['push']('ck-revision-history-sidebar__revision-author_creator');const _0x34a305=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x1f6286,_0x20aa6e?'Revision\x20creator':'Revision\x20author')},'children':[_0x5575fa,_0x2f0563['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x4158c5},'children':_0x34a305});}}function ci(_0x55ac2b,_0x46a076){const _0x50e237=_0x55ac2b['bindTemplate'],_0x149fae=_0x55ac2b['locale'],_0x3d4c72=_0xd63cde(_0x149fae);_0x3d4c72['panelPosition']='sw';const _0x46810e=function(_0x6492c4,_0x2a3163){const _0x4f173f=function(_0x32a9cc,_0x2f50d5){const _0x336b29=_0x32a9cc['locale'],_0x539f6f={'Compare\x20against\x20selected':R(_0x336b29,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x336b29,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x336b29,'Restore\x20this\x20revision')};return _0x2f50d5['map'](_0x248db6=>{const _0x262b11=_0x539f6f[_0x248db6['name']];return _0x262b11&&_0x262b11!==_0x248db6['name']&&(_0x248db6['name']=_0x262b11),_0x248db6;});}(_0x6492c4,_0x2a3163),_0x218480=new _0x1a0ead();for(const _0x12e189 of _0x4f173f){const _0x43f338={'type':'button','model':new to({'label':_0x12e189['name'],'class':_0x12e189['class'],'withText':!0x0,'role':'menuitem','_action':_0x12e189['action']})};_0x43f338['model']['bind']('isEnabled')['to'](_0x6492c4,'isActionsDropdownOpen',_0x3534d9=>'function'!=typeof _0x12e189['isEnabled']||(!_0x3534d9||_0x12e189['isEnabled'](_0x6492c4))),_0x218480['add'](_0x43f338);}return _0x218480;}(_0x55ac2b,_0x46a076);return _0x55ac2b['bind']('isActionsDropdownOpen')['to'](_0x3d4c72,'isOpen'),_0x3d4c72['buttonView']['set']({'label':R(_0x149fae,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x54a51e}),_0x3d4c72['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x50e237['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x50e237['to'](_0x59705d=>_0x59705d['stopPropagation']())}}),_0x3d4c72['on']('execute',_0x15b853=>{_0x55ac2b['isReady']&&'function'==typeof _0x15b853['source']['_action']&&_0x15b853['source']['_action'](_0x55ac2b);}),_0x4a4952(_0x3d4c72,_0x46810e,{'role':'menu'}),_0x3d4c72['listenTo'](_0x55ac2b,'change:isActionsDropdownOpen',(_0x3122ce,_0x2b7de1,_0x3a9b9d)=>{if(_0x3a9b9d)for(const _0x24dfb6 of _0x3d4c72['listView']['items']){const _0x3f9194=_0x24dfb6['children']['first'],_0x498539=_0x46a076['find'](_0x1db78a=>_0x1db78a['action']===_0x3f9194['_action'])['isVisible'];_0x24dfb6['isVisible']=void 0x0===_0x498539||_0x498539(_0x55ac2b);}}),_0x3d4c72;}class vi extends/* #__PURE__ -- @preserve */
|
|
27
|
-
|
|
23
|
+
import{ObservableMixin as _0x384c6d,uid as _0x2df4cd,Collection as _0x5ed036,logWarning as _0x1a3ba3,FocusTracker as _0x347749,KeystrokeHandler as _0x1186ba,scrollViewportToShowTarget as _0x597347,ResizeObserver as ot,ElementReplacer as it,CKEditorError as _0x26464b}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x421307,set as _0x6bcac3,unset as _0x59e2a0,isEqual as _0xef62c8}from'es-toolkit/compat';import{Plugin as _0x5b4548,PendingActions as _0x102757,Command as _0x113a4d,ElementApiMixin as _0x85f989,Editor as _0x3f1bb1}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x2de8d3,getMarkerDomElement as _0x26b1f0,ConfirmMixin as _0x814b36,sanitizeEditorConfig as _0x33d67b}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x4c65ff,ViewAttributeElement as _0x43357c,ViewEmptyElement as _0x2af8e9,ViewRawElement as _0x119c51,ViewUIElement as _0x856ea5,ViewDocumentFragment as _0x4625d2,ViewText as _0x6c00e8,ViewElement as _0x2e196b,ModelElement as _0x55a91c,ModelRange as _0x286e6f,ModelPosition as _0x45fcbc,ModelDocumentFragment as _0x223a9b,ModelText as _0x52cb99}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x659fc6,IconChevronUp as _0x4daf79,IconChevronDown as _0x1105ce,IconUndo as _0x28316f,IconUser as _0x34d935,IconThreeVerticalDots as _0x50a9fd}from'@ckeditor/ckeditor5-icons/dist/index.js';import{CssTransitionDisablerMixin as _0x274bcc,View as _0x5bb4f2,submitHandler as _0x89b1ec,LabeledFieldView as et,createLabeledInputText as ti,createDropdown as _0x46906e,ListView as _0x310671,ListItemView as _0x3d8754,ButtonView as _0x1cd6d8,MenuBarMenuView as _0x43eb01,MenuBarMenuListView as _0x4725ff,MenuBarMenuListItemView as _0x305428,MenuBarMenuListItemButtonView as _0x475000,ContextualBalloon as _0x58509e,ToolbarSeparatorView as _0x4e6708,IconView as _0x5d2f47,addListToDropdown as _0xd4033e,UIModel as to,EditorUI as tt,normalizeToolbarConfig as st,BoxedEditorUIView as _0x230bfc,StickyPanelView as _0x3dbd0e,ToolbarView as _0x3b3b98,InlineEditableUIView as te}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x55dccf}from'luxon';class I extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x384c6d(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x51f9ec){super(),this['id']=_0x51f9ec['id']||_0x2df4cd(),this['creator']=_0x51f9ec['creator']||null,this['authors']=_0x51f9ec['authors']||[],this['diffData']=_0x51f9ec['diffData']||null,this['toVersion']=_0x51f9ec['toVersion']||0x0,this['fromVersion']=_0x51f9ec['fromVersion']||0x0,this['set']('name',_0x51f9ec['name']||''),this['set']('createdAt',_0x51f9ec['createdAt']||new Date()),this['set']('attributes',_0x51f9ec['attributes']||{});}['setName'](_0x4a26d2){this['_update']({'name':_0x4a26d2});}['setAttribute'](_0x2d7e5d,_0x53f561){const _0x30b14e=_0x421307(this['attributes']);_0x6bcac3(_0x30b14e,_0x2d7e5d,_0x53f561),this['_update']({'attributes':_0x30b14e});}['removeAttribute'](_0x279a1d){const _0x59f024=_0x421307(this['attributes']);_0x59e2a0(_0x59f024,_0x279a1d),this['_update']({'attributes':_0x59f024});}['_update'](_0x13b345,_0x1a8427=!0x1){let _0x6b8150=!0x1;const _0x41162f={'id':this['id']},_0x5ce3d9=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x257e2e of _0x5ce3d9){const _0x47752a=_0x13b345[_0x257e2e];void 0x0!==_0x47752a&&_0x47752a!==this[_0x257e2e]&&(this[_0x257e2e]=_0x47752a,_0x41162f[_0x257e2e]=_0x47752a,_0x6b8150=!0x0);}_0x6b8150&&(_0x41162f['authors']&&(_0x41162f['authorsIds']=_0x41162f['authors']['map'](_0xedf8c7=>_0xedf8c7['id']),delete _0x41162f['authors']),this['fire']('_update',_0x41162f,_0x1a8427));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x3fb185=>_0x3fb185['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x5b4548{['_revisions'];static get['requires'](){return[_0x2de8d3];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x558f21){super(_0x558f21),this['_revisions']=new _0x5ed036();}['afterInit'](){!async function(_0x42fc93){const _0x2b9a58=_0x104ba9([0x73,0x47,0x36,0x35,0x43,0x72,0x6b,0x31,0x63,0x64,0x32,0x69,0x67,0x4c,0x4e,0x37,0x7a,0x49,0x45,0x41,0x59,0x6a,0x75,0x39,0x4a,0x33,0x68,0x62,0x50,0x42,0x74,0x6e,0x46,0x4d,0x78,0x51,0x66,0x34,0x48,0x77,0x5a,0x61,0x6c,0x30,0x71,0x54,0x53,0x56,0x4b,0x79,0x44,0x6d,0x6f,0x52,0x76,0x55,0x58,0x65,0x70,0x57,0x4f,0x38]),_0x4983ac=0xeb829,_0x126d62=0x7374585f,_0x2df326=0x737329cf^_0x126d62,_0x3a4e4a=window[_0x104ba9([0x44,0x61,0x74,0x65])][_0x104ba9([0x6e,0x6f,0x77])](),_0x34d082=_0x42fc93[_0x104ba9([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x383583=new window[(_0x104ba9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5ab12a=>{_0x34d082[_0x104ba9([0x6f,0x6e,0x63,0x65])](_0x104ba9([0x72,0x65,0x61,0x64,0x79]),_0x5ab12a);}),_0x472d5b={[_0x104ba9([0x6b,0x74,0x79])]:_0x104ba9([0x45,0x43]),[_0x104ba9([0x75,0x73,0x65])]:_0x104ba9([0x73,0x69,0x67]),[_0x104ba9([0x63,0x72,0x76])]:_0x104ba9([0x50,0x2d,0x32,0x35,0x36]),[_0x104ba9([0x78])]:_0x104ba9([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]),[_0x104ba9([0x79])]:_0x104ba9([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]),[_0x104ba9([0x61,0x6c,0x67])]:_0x104ba9([0x45,0x53,0x32,0x35,0x36])},_0x3bc25b=_0x34d082[_0x104ba9([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x104ba9([0x67,0x65,0x74])](_0x104ba9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x397d1a(){let _0x4b24c2,_0x2fa3aa=null,_0x55642e=null;try{if(_0x3bc25b==_0x104ba9([0x47,0x50,0x4c]))return _0x104ba9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4b24c2=_0x67c026(),!_0x4b24c2)return _0x104ba9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4b24c2[_0x104ba9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x55642e=_0x1da983(_0x4b24c2[_0x104ba9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4b24c2[_0x104ba9([0x6a,0x74,0x69])])),await _0x4031a1()?_0x5cd9cd()?_0x2b2fe7()?_0x104ba9([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x35f06b()?(_0x4b24c2[_0x104ba9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x104ba9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2fa3aa=_0x12e6b6(_0x104ba9([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4b24c2[_0x104ba9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x104ba9([0x74,0x72,0x69,0x61,0x6c])&&(_0x2fa3aa=_0x12e6b6(_0x104ba9([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x45ef45()):_0x104ba9([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x104ba9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x104ba9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x104ba9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2b2fe7(){const _0x5bd2f7=[_0x104ba9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x104ba9([0x74,0x72,0x69,0x61,0x6c])][_0x104ba9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b24c2[_0x104ba9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3a4e4a/0x3e8:0xe10*_0x2df326;return _0x4b24c2[_0x104ba9([0x65,0x78,0x70])]<_0x5bd2f7;}function _0x5cd9cd(){const _0x2aa3b1=_0x4b24c2[_0x104ba9([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x2aa3b1)return!0x1;if(_0x2aa3b1[_0x104ba9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x104ba9([0x2a])))return!0x0;if(_0x2aa3b1[_0x104ba9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x104ba9([0x52,0x48])))return!0x0;if(_0x2aa3b1[_0x104ba9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x104ba9([0x52,0x52,0x48]))){if(_0x58c854())return!0x0;if(_0x40d6d8()||_0x4a34e8())return!0x0;}return!0x1;}function _0x35f06b(){const _0x1606f2=_0x4b24c2[_0x104ba9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1606f2||0x0==_0x1606f2[_0x104ba9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x35280e}=new URL(window[_0x104ba9([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1606f2[_0x104ba9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x35280e))return!0x0;const _0x4e06a9=_0x35280e[_0x104ba9([0x73,0x70,0x6c,0x69,0x74])](_0x104ba9([0x2e]));return _0x1606f2[_0x104ba9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3fa05b=>_0x3fa05b[_0x104ba9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x104ba9([0x2a])))[_0x104ba9([0x6d,0x61,0x70])](_0x1a538d=>_0x1a538d[_0x104ba9([0x73,0x70,0x6c,0x69,0x74])](_0x104ba9([0x2e])))[_0x104ba9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5651cc=>_0x5651cc[_0x104ba9([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4e06a9[_0x104ba9([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x104ba9([0x6d,0x61,0x70])](_0x548bc7=>Array(_0x4e06a9[_0x104ba9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x548bc7[_0x104ba9([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x104ba9([0x66,0x69,0x6c,0x6c])](_0x548bc7[0x0]===_0x104ba9([0x2a])?_0x104ba9([0x2a]):'')[_0x104ba9([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x548bc7))[_0x104ba9([0x73,0x6f,0x6d,0x65])](_0x5b74da=>_0x4e06a9[_0x104ba9([0x65,0x76,0x65,0x72,0x79])]((_0x28bd87,_0x3883a3)=>_0x5b74da[_0x3883a3]===_0x28bd87||_0x5b74da[_0x3883a3]===_0x104ba9([0x2a])));}function _0x45ef45(){return _0x2fa3aa&&_0x55642e?new window[(_0x104ba9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3ecf02,_0x441973)=>{_0x2fa3aa[_0x104ba9([0x74,0x68,0x65,0x6e])](_0x3ecf02,_0x441973),_0x55642e[_0x104ba9([0x74,0x68,0x65,0x6e])](_0xa3c40b=>{_0xa3c40b!=_0x104ba9([0x56,0x61,0x6c,0x69,0x64])&&_0x3ecf02(_0xa3c40b);},_0x441973);}):_0x2fa3aa||_0x55642e||_0x104ba9([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1da983(_0x3c5708,_0x2ebd7d){return new window[(_0x104ba9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x512a0e=>{if(_0xa22c0())return _0x512a0e(_0x104ba9([0x56,0x61,0x6c,0x69,0x64]));_0x1fe27c(),_0x34d082[_0x104ba9([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x104ba9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1196fb=!0x1;const _0x25de58=_0x2df4cd();function _0x2876be(_0x33233a){return!!_0x33233a&&(typeof _0x33233a===_0x104ba9([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x33233a===_0x104ba9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x33233a[_0x104ba9([0x74,0x68,0x65,0x6e])]===_0x104ba9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x33233a[_0x104ba9([0x63,0x61,0x74,0x63,0x68])]===_0x104ba9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x752cc2(_0x41eae0){_0x41a5b7(_0x41eae0)[_0x104ba9([0x74,0x68,0x65,0x6e])](_0x59691d=>{if(!_0x59691d||_0x59691d[_0x104ba9([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x104ba9([0x6f,0x6b]))return _0x104ba9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x16cfac(_0x213ed3(_0x25de58+_0x2ebd7d))!=_0x59691d[_0x104ba9([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x104ba9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x104ba9([0x56,0x61,0x6c,0x69,0x64]);})[_0x104ba9([0x74,0x68,0x65,0x6e])](_0xfd6253=>(_0x3c260e(),_0xfd6253),()=>{const _0x4a1979=_0x4aefb9();return null==_0x4a1979?(_0x3c260e(),_0x104ba9([0x56,0x61,0x6c,0x69,0x64])):_0x104ba9(_0x3a4e4a-_0x4a1979>(0x5778dc5f^_0x126d62)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x104ba9([0x74,0x68,0x65,0x6e])](_0x512a0e)[_0x104ba9([0x63,0x61,0x74,0x63,0x68])](()=>{_0x512a0e(_0x104ba9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4f158e=0x7342b6df^_0x126d62;function _0x3c260e(){const _0x1f5bc9=_0x104ba9([0x6c,0x6c,0x63,0x74,0x2d])+_0x16cfac(_0x213ed3(_0x3c5708)),_0xfc93b=_0x38c98f(_0x16cfac(window[_0x104ba9([0x4d,0x61,0x74,0x68])][_0x104ba9([0x63,0x65,0x69,0x6c])](_0x3a4e4a/_0x4f158e)));window[_0x104ba9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x104ba9([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1f5bc9,_0xfc93b);}function _0x4aefb9(){const _0x22743f=_0x104ba9([0x6c,0x6c,0x63,0x74,0x2d])+_0x16cfac(_0x213ed3(_0x3c5708)),_0xc9f4fa=window[_0x104ba9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x104ba9([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x22743f);return _0xc9f4fa?window[_0x104ba9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x38c98f(_0xc9f4fa),0x10)*_0x4f158e:null;}function _0x41a5b7(_0x4b95a1){return new window[(_0x104ba9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x58fec0,_0x4734c8)=>{_0x4b95a1[_0x104ba9([0x74,0x68,0x65,0x6e])](_0x58fec0,_0x4734c8),window[_0x104ba9([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4734c8,0x73758c9f^_0x126d62);});}}_0x34d082[_0x104ba9([0x6f,0x6e])](_0x104ba9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xcbeffe,_0x3614f3)=>{if(_0x3614f3[0x0]!=_0x3c5708)return _0x512a0e(_0x104ba9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3614f3[0x1]={..._0x3614f3[0x1],[_0x104ba9([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x25de58};},{[_0x104ba9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x104ba9([0x68,0x69,0x67,0x68])}),_0x34d082[_0x104ba9([0x6f,0x6e])](_0x104ba9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2ced1b=>{_0x2876be(_0x2ced1b[_0x104ba9([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1196fb=!0x0,_0x752cc2(_0x2ced1b[_0x104ba9([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x104ba9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x104ba9([0x6c,0x6f,0x77])}),_0x383583[_0x104ba9([0x74,0x68,0x65,0x6e])](()=>{_0x1196fb||_0x512a0e(_0x104ba9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xa22c0(){return _0x34d082[_0x104ba9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x104ba9([0x76,0x69,0x65,0x77])][_0x104ba9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x104ba9([0x61,0x75,0x74,0x6f]);}function _0x1fe27c(){_0x34d082[_0x104ba9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x104ba9([0x76,0x69,0x65,0x77])][_0x104ba9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x104ba9([0x61,0x75,0x74,0x6f]);}}function _0x12e6b6(_0xe273){const _0xa9ebd4=[new window[(_0x104ba9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5d4adf=>setTimeout(_0x5d4adf,0x737d6693^_0x126d62)),_0x383583[_0x104ba9([0x74,0x68,0x65,0x6e])](()=>new window[(_0x104ba9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3ad729=>{const _0xc4629=0x73745858^_0x126d62,_0x2d44f4=_0x42fc93[_0x104ba9([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x141f0e(){_0x2d44f4[_0x104ba9([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0xc4629&&_0x3ad729();}_0x141f0e(),_0x2d44f4[_0x104ba9([0x6f,0x6e])](_0x104ba9([0x61,0x64,0x64]),_0x141f0e);})),new window[(_0x104ba9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x16829c=>{function _0x55542a(){for(const _0x8dde88 in window)if(window[_0x104ba9([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x104ba9([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x8dde88))&&window[_0x8dde88]==_0x4983ac)return _0x16829c();_0x34d082[_0x104ba9([0x73,0x74,0x61,0x74,0x65])]!=_0x104ba9([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x104ba9([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x55542a,0x73744bd7^_0x126d62);}_0x35da9a(_0x104ba9([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x55542a();})];return window[_0x104ba9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x104ba9([0x72,0x61,0x63,0x65])](_0xa9ebd4)[_0x104ba9([0x74,0x68,0x65,0x6e])](()=>_0xe273);}async function _0x15734b(){if(await _0x383583,_0x35da9a(_0x104ba9([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x496aea=_0x42fc93[_0x104ba9([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x507a27=_0x42fc93[_0x104ba9([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])](_0x496aea[_0x104ba9([0x69,0x64])]),_0x415c19=_0x2ce62a(_0x104ba9([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x415c19[_0x104ba9([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x496aea['id'],_0x507a27?_0x507a27['id']:null,!0x0),_0x415c19[_0x104ba9([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x104ba9([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x415c19[_0x104ba9([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x415c19[_0x104ba9([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x328b75,void(_0x415c19[_0x104ba9([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x328b75);}if(_0x35da9a(_0x104ba9([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x862452=_0x2ce62a(_0x104ba9([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x862452[_0x104ba9([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x104ba9([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x862452[_0x104ba9([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x862452[_0x104ba9([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x328b75,_0x862452[_0x104ba9([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x328b75;}_0x34d082[_0x104ba9([0x6d,0x6f,0x64,0x65,0x6c])][_0x104ba9([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x328b75,_0x34d082[_0x104ba9([0x6d,0x6f,0x64,0x65,0x6c])][_0x104ba9([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x328b75,_0x34d082[_0x104ba9([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x104ba9([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x58c854(){return _0x35da9a(_0x104ba9([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2ce62a(_0x104ba9([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x104ba9([0x73,0x74,0x61,0x74,0x65])]==_0x104ba9([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x40d6d8(){return _0x35da9a(_0x104ba9([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 _0x4a34e8(){return _0x35da9a(_0x104ba9([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x274bfd(_0x42a686){const _0x1d11d3=_0x7beb16();_0x34d082[_0x1d11d3]=_0x104ba9([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])+_0x42a686,_0x42a686[_0x104ba9([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x104ba9([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x7beb16()]=_0x4983ac),_0x42a686!=_0x104ba9([0x56,0x61,0x6c,0x69,0x64])&&_0x15734b();}function _0x7beb16(){const _0x4c9089=window[_0x104ba9([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x104ba9([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x104ba9([0x6e,0x6f,0x77])]())[_0x104ba9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x104ba9([0x2e]),'');let _0x51a8bd=_0x104ba9([0x73]);for(let _0x3f8a03=0x0;_0x3f8a03<_0x4c9089[_0x104ba9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3f8a03+=0x2){let _0x2df851=window[_0x104ba9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4c9089[_0x104ba9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3f8a03,_0x3f8a03+0x2));_0x2df851>=_0x2b9a58[_0x104ba9([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2df851-=_0x2b9a58[_0x104ba9([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x51a8bd+=_0x2b9a58[_0x2df851];}return _0x51a8bd;}function _0x67c026(){const _0x1bb48f=_0x3bc25b[_0x104ba9([0x73,0x70,0x6c,0x69,0x74])](_0x104ba9([0x2e]));if(0x3!=_0x1bb48f[_0x104ba9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xf575b6(_0x1bb48f[0x1]);function _0xf575b6(_0x50ab76){const _0x134371=_0x4c9d0b(_0x50ab76);return _0x134371&&_0x59c5cb()?_0x134371:null;function _0x59c5cb(){const _0x502fe1=_0x134371[_0x104ba9([0x6a,0x74,0x69])],_0x3094b9=window[_0x104ba9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x502fe1[_0x104ba9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x502fe1[_0x104ba9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xdea08d={..._0x134371,[_0x104ba9([0x6a,0x74,0x69])]:_0x502fe1[_0x104ba9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x502fe1[_0x104ba9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xdea08d[_0x104ba9([0x76,0x63])],_0x213ed3(_0xdea08d)==_0x3094b9;}}}async function _0x4031a1(){let _0x1d8fe7=!0x0;try{const _0x6ee278=_0x3bc25b[_0x104ba9([0x73,0x70,0x6c,0x69,0x74])](_0x104ba9([0x2e])),[_0x317df3,_0x606dd4,_0x54ba4b]=_0x6ee278;return _0x2c4dc7(_0x317df3),await _0x47b04f(_0x317df3,_0x606dd4,_0x54ba4b),_0x1d8fe7;}catch{return!0x1;}function _0x2c4dc7(_0x5331e5){const _0x3ec6c4=_0x4c9d0b(_0x5331e5);_0x3ec6c4&&_0x3ec6c4[_0x104ba9([0x61,0x6c,0x67])]==_0x104ba9([0x45,0x53,0x32,0x35,0x36])||(_0x1d8fe7=!0x1);}async function _0x47b04f(_0x1f1737,_0x2e78b3,_0x1d157e){const _0x4728fc=window[_0x104ba9([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x104ba9([0x66,0x72,0x6f,0x6d])](_0xbd818e(_0x1d157e),_0xe87c45=>_0xe87c45[_0x104ba9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x44a435=new window[(_0x104ba9([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x104ba9([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1f1737+_0x104ba9([0x2e])+_0x2e78b3),_0x4cbf81=window[_0x104ba9([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x104ba9([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4cbf81)return;const _0x44530c=await _0x4cbf81[_0x104ba9([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x104ba9([0x6a,0x77,0x6b]),_0x472d5b,{[_0x104ba9([0x6e,0x61,0x6d,0x65])]:_0x104ba9([0x45,0x43,0x44,0x53,0x41]),[_0x104ba9([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x104ba9([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x104ba9([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4cbf81[_0x104ba9([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x104ba9([0x6e,0x61,0x6d,0x65])]:_0x104ba9([0x45,0x43,0x44,0x53,0x41]),[_0x104ba9([0x68,0x61,0x73,0x68])]:{[_0x104ba9([0x6e,0x61,0x6d,0x65])]:_0x104ba9([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x44530c,_0x4728fc,_0x44a435)||(_0x1d8fe7=!0x1);}}function _0x4c9d0b(_0xbedf7b){return _0xbedf7b[_0x104ba9([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x104ba9([0x65,0x79]))?JSON[_0x104ba9([0x70,0x61,0x72,0x73,0x65])](_0xbd818e(_0xbedf7b)):null;}function _0xbd818e(_0x1132c7){return window[_0x104ba9([0x61,0x74,0x6f,0x62])](_0x1132c7[_0x104ba9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x104ba9([0x2b]))[_0x104ba9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x104ba9([0x2f])));}function _0x213ed3(_0x136662){let _0x3b4e0e=0x1505;function _0x2e1f65(_0x5b2de5){for(let _0x41d4d8=0x0;_0x41d4d8<_0x5b2de5[_0x104ba9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x41d4d8++){const _0x2880c4=_0x5b2de5[_0x104ba9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x41d4d8);_0x3b4e0e=(_0x3b4e0e<<0x5)+_0x3b4e0e+_0x2880c4,_0x3b4e0e&=_0x3b4e0e;}}function _0x56bbed(_0x38604f){Array[_0x104ba9([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x38604f)?_0x38604f[_0x104ba9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x56bbed):_0x38604f&&typeof _0x38604f==_0x104ba9([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x104ba9([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x38604f)[_0x104ba9([0x73,0x6f,0x72,0x74])]()[_0x104ba9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x9c4ed5,_0x7e0590])=>{_0x2e1f65(_0x9c4ed5),_0x56bbed(_0x7e0590);}):_0x2e1f65(window[_0x104ba9([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x38604f));}return _0x56bbed(_0x136662),_0x3b4e0e>>>0x0;}function _0x16cfac(_0x37df30){return _0x37df30[_0x104ba9([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x104ba9([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x104ba9([0x30]));}function _0x38c98f(_0x16492f){return _0x16492f[_0x104ba9([0x73,0x70,0x6c,0x69,0x74])]('')[_0x104ba9([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x104ba9([0x6a,0x6f,0x69,0x6e])]('');}function _0x35da9a(_0x5a7ded){return _0x34d082[_0x104ba9([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x104ba9([0x68,0x61,0x73])](_0x5a7ded);}function _0x2ce62a(_0x4b53ce){return _0x34d082[_0x104ba9([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x104ba9([0x67,0x65,0x74])](_0x4b53ce);}function _0x328b75(){}function _0x104ba9(_0x54f31c){return _0x54f31c['map'](_0x2a616d=>String['fromCharCode'](_0x2a616d))['join']('');}_0x274bfd(await _0x397d1a());}(this);}['createRevision'](_0x1570ec){const _0x23f334=this['editor']['plugins']['get']('Users');return new I({'id':_0x1570ec['id'],'name':_0x1570ec['name'],'creator':_0x1570ec['creatorId']?_0x23f334['getUser'](_0x1570ec['creatorId']):null,'diffData':_0x1570ec['diffData']||_0x1570ec['data'],'authors':_0x1570ec['authorsIds']['map'](_0x40fec0=>_0x23f334['getUser'](_0x40fec0)),'createdAt':new Date(_0x1570ec['createdAt']),'attributes':_0x1570ec['attributes'],'fromVersion':_0x1570ec['fromVersion'],'toVersion':_0x1570ec['toVersion']});}['addRevision'](_0x2e8f65,_0x1139bb=0x0){this['_revisions']['add'](_0x2e8f65,_0x1139bb);}['getRevision'](_0x26df0d){return this['_revisions']['get'](_0x26df0d);}['getRevisions'](_0x337ab6={'toJSON':!0x1}){const _0xe7e319=Array['from'](this['_revisions']);return _0xe7e319['reverse'](),_0x337ab6['toJSON']?_0xe7e319['map'](_0x54534d=>_0x54534d['toJSON']()):_0xe7e319;}['getIndex'](_0x4b5d6e){return this['_revisions']['getIndex'](_0x4b5d6e);}['getEarlierVisibleRevision'](_0x1d2d5b){const [,_0x204e43]=this['getRevisionsIterator'](_0x1d2d5b,{'direction':'earlier'});return _0x204e43;}['getLaterVisibleRevision'](_0x43e7ca){const [,_0x53a8d4]=this['getRevisionsIterator'](_0x43e7ca,{'direction':'later'});return _0x53a8d4;}['getRevisionsInDiff'](_0x6dffec){const _0xe36ccb=[];for(const _0x3f41e8 of this['getRevisionsIterator'](_0x6dffec['newRevisionId']))if(_0xe36ccb['push'](_0x3f41e8),_0x3f41e8['id']===_0x6dffec['oldRevisionId'])break;return _0xe36ccb;}*['getRevisionsIterator'](_0x54e2a4,{direction:_0x3a052c='earlier',filter:_0x4d412e=()=>!0x0}={}){const _0x100a71='earlier'===_0x3a052c?0x1:-0x1;let _0x1395b8=this['_revisions']['get'](_0x54e2a4),_0x4df317=this['getIndex'](_0x1395b8);for(yield _0x1395b8;_0x1395b8;){if(_0x4df317+=_0x100a71,_0x1395b8=this['getRevision'](_0x4df317),!_0x1395b8)return;_0x4d412e(_0x1395b8)&&(yield _0x1395b8);}}}class $ extends _0x5b4548{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x4c65ff,'c'],[_0x43357c,'a'],[_0x2af8e9,'e'],[_0x119c51,'r'],[_0x856ea5,'u']]);['_typeCharToViewClass']=new Map([['c',_0x4c65ff],['a',_0x43357c],['e',_0x2af8e9],['r',_0x119c51],['u',_0x856ea5]]);async['loadRevisionData'](_0x534341,_0x4af351){if(_0x534341['diffData']||!_0x4af351)return;const _0x32de66=this['editor']['config']['get']('collaboration.channelId'),_0x480bf1=await _0x4af351['getRevision']({'channelId':_0x32de66,'revisionId':_0x534341['id']});_0x534341['diffData']=_0x480bf1['diffData'];}['getRevisionDocumentData'](_0x941ca3){const _0xefde2={};for(const _0x670166 in _0x941ca3['diffData']){if(_0x941ca3['diffData'][_0x670166]['attachChange']&&!_0x941ca3['diffData'][_0x670166]['attachChange']['isAttached'])continue;const _0x514ffc=this['_removeRevisionMarkers'](JSON['parse'](_0x941ca3['diffData'][_0x670166]['insertions'])),_0xa8cbe8=this['editor']['editing']['view']['document'],_0xe7323f=new _0x4625d2(_0xa8cbe8,_0x514ffc['map'](_0x3d970d=>this['_getViewFromDiffObj'](_0x3d970d,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0xefde2[_0x670166]=this['editor']['data']['processor']['toData'](_0xe7323f),this['editor']['data']['processor']['useFillerType']('default');}return _0xefde2;}['getRevisionRootsAttributes'](_0x3cafca){const _0x1cdfc1={};for(const _0x2bdc2b in _0x3cafca['diffData'])_0x3cafca['diffData'][_0x2bdc2b]['attachChange']&&!_0x3cafca['diffData'][_0x2bdc2b]['attachChange']['isAttached']||(_0x1cdfc1[_0x2bdc2b]=_0x3cafca['diffData'][_0x2bdc2b]['attributesAfter']||{});return _0x1cdfc1;}['_getTypeCharForViewElement'](_0x492aad){return this['_viewClassToTypeChar']['get'](_0x492aad['constructor']);}['_getViewFromDiffObj'](_0xe801d9,_0x1cdc14){const _0x40d607=this['editor']['editing']['view']['document'];if('string'==typeof _0xe801d9)return new _0x6c00e8(_0x40d607,_0xe801d9);{let _0x57780d,_0x118433;_0x118433='u'==_0xe801d9['type']||'r'==_0xe801d9['type']?[]:_0xe801d9['children']['map'](_0x213162=>this['_getViewFromDiffObj'](_0x213162,_0x1cdc14));const _0x33d864=this['_typeCharToViewClass']['get'](_0xe801d9['type'])||_0x2e196b,_0x56bfe7=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x57780d=new _0x33d864(_0x40d607,_0xe801d9['name'],_0xe801d9['attributes'],_0x118433),'u'==_0xe801d9['type']&&_0xe801d9['children'][0x0]){const _0x20bab0=_0xe801d9['children'][0x0];if(_0x57780d['render']=function(_0x2420de){const _0x45256a=_0x2420de['createElement']('div');return _0x45256a['innerHTML']=_0x20bab0,_0x45256a['childNodes'][0x0];},_0x1cdc14){const _0xd5fc3=new _0x4625d2(_0x40d607);_0xd5fc3['_appendChild'](_0x57780d);const _0x1b3900=Array['from'](_0x56bfe7['viewChildrenToDom'](_0xd5fc3,{'bind':!0x1})),_0xe6e98d=_0x56bfe7['domDocument']['createElement']('div');_0xe6e98d['append'](..._0x1b3900),_0x57780d=Array['from'](_0x56bfe7['domChildrenToView'](_0xe6e98d))[0x0];}}else{if('r'==_0xe801d9['type']&&_0xe801d9['children'][0x0]){const _0x10fd82=_0xe801d9['children'][0x0];if(_0x57780d['render']=function(_0x3b3720){_0x3b3720['innerHTML']=_0x10fd82;},_0x1cdc14){const _0xc539aa=new _0x4625d2(_0x40d607);_0xc539aa['_appendChild'](_0x57780d);const _0x2fc600=Array['from'](_0x56bfe7['viewChildrenToDom'](_0xc539aa,{'bind':!0x1})),_0x4b43c9=_0x56bfe7['domDocument']['createElement']('div');_0x4b43c9['append'](..._0x2fc600);const _0x353aa8=Array['from'](_0x56bfe7['domChildrenToView'](_0x4b43c9));_0x353aa8['length']>0x1?_0x57780d['_appendChild'](_0x353aa8):_0x57780d=_0x353aa8[0x0];}}}if(_0xe801d9['customProperties']){for(const [_0x1e8668,_0x4726ac]of _0xe801d9['customProperties'])_0x57780d['_setCustomProperty'](_0x1e8668,_0x4726ac);}const _0x240d60=void 0x0===_0xe801d9['fillerOffset']?null:_0xe801d9['fillerOffset'];return null!==_0x240d60&&(_0x57780d['getFillerOffset']=()=>_0x240d60),_0x57780d;}}['_makeModelFromViewString'](_0x59456d){const _0x263dbe=JSON['parse'](_0x59456d),_0x5618ae=this['editor']['editing']['view']['document'],_0x24856f=new _0x4625d2(_0x5618ae,_0x263dbe['map'](_0x229c96=>this['_getViewFromDiffObj'](_0x229c96,!0x0)));return this['editor']['data']['toModel'](_0x24856f);}['_removeRevisionMarkers'](_0x5401f2){return(_0x5401f2=_0x5401f2['filter'](_0x435cd6=>!_0x435cd6['name']||'revision-start'!==_0x435cd6['name']&&'revision-end'!==_0x435cd6['name']))['forEach'](_0x4053a7=>{'string'!=typeof _0x4053a7&&(_0x4053a7['children']=this['_removeRevisionMarkers'](_0x4053a7['children']),_0x4053a7['attributes']=_0x4053a7['attributes']['filter'](_0x179b04=>!_0x179b04[0x0]['startsWith']('data-revision-')));}),_0x5401f2;}}function R(_0xbd0c36,_0x3ec75f,_0x539d84){const t=_0xbd0c36['t'];switch(_0x3ec75f){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'},_0x539d84);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x539d84);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 _0x5b4548{['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[_0x2de8d3,S,$,_0x102757];}constructor(_0x3e50d6){super(_0x3e50d6),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 _0x29dc26=_0x2df4cd();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x29dc26},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 _0x146555=this['repository']['getRevision'](0x0),_0xad8732=_0x146555&&null===_0x146555['creator']?_0x146555:null;if(this['_continueCurrentRevision']=!!_0xad8732&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x1e9137=this['_source']['getCurrentRevisionId'](),_0x488697=this['repository']['getRevision'](_0x1e9137);if(_0x488697)this['_startingVersion']=_0x488697['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x4a8c7f=this['_source']['history']['_operations']['find'](_0x21b1d5=>!_0x21b1d5['_isInit']),_0x49afd4=_0x4a8c7f?_0x4a8c7f['baseVersion']:this['_source']['history']['version'];_0x146555?(_0x146555['toVersion']<_0x49afd4&&_0x146555['_update']({'toVersion':_0x49afd4}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0xad8732['id'],this['_startingVersion']=_0xad8732['fromVersion']):(this['_startingVersion']=_0x146555['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x49afd4,this['_continueCurrentRevision']=!0x1);}}else _0xad8732&&(this['editor']['model']['document']['history']['version']=Math['max'](_0xad8732['toVersion'],this['editor']['model']['document']['history']['version']),_0xad8732['fromVersion']===_0xad8732['toVersion']?(0x0!==_0xad8732['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0xad8732['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0xad8732['id'],this['_startingVersion']=_0xad8732['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',_0x18d140=>!_0x18d140),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4377c3=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x185761;for(const _0x46eb48 in _0x4377c3){const _0xe874b2=_0x46eb48,_0x372ca2=_0x4377c3[_0xe874b2];if('revisionHistoryLicenseKeyValid'==_0x372ca2||'revisionHistoryLicenseKeyInvalid'==_0x372ca2||'revisionHistoryLicenseKeyExpired'==_0x372ca2||'revisionHistoryLicenseKeyDomainLimit'==_0x372ca2||'revisionHistoryLicenseKeyNotAllowed'==_0x372ca2||'revisionHistoryLicenseKeyEvaluationLimit'==_0x372ca2||'revisionHistoryLicenseKeyTrialLimit'==_0x372ca2||'revisionHistoryLicenseKeyUsageLimit'==_0x372ca2){delete _0x4377c3[_0xe874b2],_0x185761=_0x372ca2,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x185761&&_0x4377c3['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x185761&&_0x4377c3['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x185761&&_0x4377c3['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x185761&&_0x4377c3['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x185761&&_0x4377c3['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x185761&&_0x4377c3['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x185761&&_0x4377c3['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x57a2dc=this['repository']['getRevision'](0x0),_0x1d3760=await this['getRevisionDocumentData'](_0x57a2dc),_0x25f558=await this['getRevisionRootsAttributes'](_0x57a2dc);this['_replaceEditorDataWithRevisionData'](_0x1d3760,_0x25f558);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0xe910db){this['_source']=_0xe910db;}async['update'](){const _0x47c506=await this['_source']['getLatestVersion']();if(_0x47c506>this['currentRevision']['toVersion']){await this['_loadState']();const _0x23a41d=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x47c506});_0x23a41d['authors']=_0x23a41d['authorsIds']['map'](_0x2521c6=>this['editor']['plugins']['get']('Users')['getUser'](_0x2521c6)),this['currentRevision']['_update'](_0x23a41d);}}async['saveRevision'](_0x2a4187={},_0x570135=null){const _0x9c33e9=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x570135>this['currentRevision']['toVersion']&&(_0x570135=null),null===_0x570135&&(_0x570135=await this['_source']['getLatestVersion']());const _0x1a2c3e=this['_getFromVersion'](_0x570135),_0xfd8b3b=this['buildRevisionData']({'from':_0x1a2c3e,'to':_0x570135});if(this['currentRevision']['toVersion']<_0x570135){const _0x266433=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x570135,'to':_0x570135});_0x266433['authors']=[],_0x266433['authorsIds']=[],_0x266433['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x266433,!0x0),delete _0x266433['authors'],_0x9c33e9['push'](_0x266433);}_0x2a4187['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x2a4187['name']=_0x2a4187['name']||null,_0x2a4187['id']=_0x2a4187['id']||_0x2df4cd(),_0x2a4187={..._0x2a4187,..._0xfd8b3b};const _0x4ab6b5=this['addRevisionData'](_0x2a4187);_0x9c33e9['push'](_0x2a4187);const _0x16757f=this['repository']['getIndex'](_0x4ab6b5);if(0x0!==_0x16757f){const _0xc57da0=this['repository']['getRevision'](_0x16757f-0x1);if(_0xc57da0['fromVersion']!==_0x570135){const _0x383d52=this['_revisionDataBuilder']['getData'](_0x570135,_0xc57da0['toVersion']),_0x4d67ed={'id':_0xc57da0['id'],'diffData':_0x383d52['diffData'],'authorsIds':_0x383d52['authorsIds'],'authors':_0x383d52['authorsIds']['map'](_0x235f83=>this['editor']['plugins']['get']('Users')['getUser'](_0x235f83)),'fromVersion':_0x570135};_0xc57da0===this['currentRevision']&&(_0x4d67ed['createdAt']=new Date(_0x2a4187['createdAt']['getTime']()+0xa)),_0xc57da0['_update'](_0x4d67ed,!0x0),delete _0x4d67ed['authors'],_0x9c33e9['push'](_0x4d67ed);}}if(this['adapter']){for(const _0x54cda7 of _0x9c33e9)this['_bufferUpdate'](_0x54cda7['id'],_0x54cda7,!0x0);this['sendBufferedUpdates']();}return _0x4ab6b5;}['addRevisionData'](_0x511d90){const _0x275d1f=this['repository']['createRevision'](_0x511d90);return this['adapter']&&_0x275d1f['on']('_update',(_0x5bc07a,_0x52ef89,_0xd06dc7)=>{_0xd06dc7||(this['_bufferUpdate'](_0x52ef89['id'],_0x52ef89,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x275d1f,this['_findInsertionIndex'](_0x275d1f)),_0x275d1f;}async['getRevisionDocumentData'](_0x2c2c8f){return await this['_utils']['loadRevisionData'](_0x2c2c8f,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x2c2c8f);}async['getRevisionRootsAttributes'](_0x235238){return await this['_utils']['loadRevisionData'](_0x235238,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x235238);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0xb6e977=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x1169f4=0x0;_0x1169f4<_0xb6e977['length'];_0x1169f4++){const _0x374e94=_0xb6e977[_0x1169f4];let _0x3f5186=!0x1;for(const _0x45afd2 of Object['keys'](_0x374e94))void 0x0===_0x374e94[_0x45afd2]?delete _0x374e94[_0x45afd2]:'id'!==_0x45afd2&&(_0x3f5186=!0x0);_0x3f5186||(_0xb6e977[_0x1169f4]=null);}if(_0xb6e977=_0xb6e977['filter'](_0x34e0cb=>null!==_0x34e0cb),!_0xb6e977['length'])return;for(let _0x42d023=0x0;_0x42d023<_0xb6e977['length'];_0x42d023++){const _0x57553b=_0xb6e977[_0x42d023];void 0x0!==_0x57553b['fromVersion']&&void 0x0===_0x57553b['toVersion']&&(_0x57553b['toVersion']=this['repository']['getRevision'](_0x57553b['id'])['toVersion']),void 0x0!==_0x57553b['toVersion']&&void 0x0===_0x57553b['fromVersion']&&(_0x57553b['fromVersion']=this['repository']['getRevision'](_0x57553b['id'])['fromVersion']);}const _0x579f53=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0xb6e977,_0x579f53)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x3af89a=>{if(_0x3af89a){for(const _0x5f56b8 of _0x3af89a)this['setRevisionData']({'id':_0x5f56b8['id'],'createdAt':_0x5f56b8['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x4e8906=null,from:_0x411b6d=null,to:_0x27144f=null}){_0x411b6d=null!==_0x411b6d?_0x411b6d:_0x4e8906['fromVersion'],_0x27144f=null!==_0x27144f?_0x27144f:_0x4e8906['toVersion'];const _0x39b95d=this['_revisionDataBuilder']['getData'](_0x411b6d,_0x27144f),_0x1a161b={'diffData':_0x39b95d['diffData'],'authorsIds':_0x39b95d['authorsIds'],'fromVersion':_0x411b6d,'toVersion':_0x27144f};if(!_0x4e8906||_0x27144f!==_0x4e8906['toVersion']){const _0x3dce1d=_0x27144f-0x1,_0x30c105=this['_source']['history']['getOperation'](_0x3dce1d);_0x1a161b['createdAt']=_0x30c105&&_0x30c105['createdAt']||new Date();}if(this['_loadedStateData']&&_0x411b6d===this['_loadedStateData']['fromVersion']){for(const _0x52c726 of this['_loadedStateData']['authors'])_0x1a161b['authorsIds']['includes'](_0x52c726['id'])||_0x1a161b['authorsIds']['push'](_0x52c726['id']);}return _0x1a161b;}['_bufferUpdate'](_0x2d8471,_0x52f25e,_0x112708){if(this['_bufferedUpdates']['has'](_0x2d8471)){const _0x2904cd=this['_bufferedUpdates']['get'](_0x2d8471);_0x52f25e=_0x112708?{..._0x2904cd,..._0x52f25e}:{..._0x52f25e,..._0x2904cd};}this['_bufferedUpdates']['set'](_0x2d8471,_0x52f25e);}['setRevisionData'](_0x1cbc97){const _0x35d9fb=this['repository']['getRevision'](_0x1cbc97['id']);if(_0x1cbc97['createdAt']&&(_0x1cbc97['createdAt']=new Date(_0x1cbc97['createdAt'])),_0x1cbc97['authorsIds']){const _0x5cb0b9=this['editor']['plugins']['get']('Users');_0x1cbc97['authors']=_0x1cbc97['authorsIds']['map'](_0x50e7ed=>_0x5cb0b9['getUser'](_0x50e7ed));}_0x35d9fb['_update'](_0x1cbc97,!0x0);}['_createInitialRevision'](_0x203d47){const _0x237932=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x237932)this['_initialRevisionId']=_0x237932['id'];else{const _0x40917a=!this['editor']['model']['document']['roots']['find'](_0x561bc3=>this['editor']['model']['hasContent'](_0x561bc3)),_0x522e58=this['editor']['plugins']['get']('Users')['me']['id'],_0x143532=R(this['editor']['locale'],_0x40917a?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x203d47,'to':_0x203d47,'id':this['_initialRevisionId'],'name':_0x143532,'creatorId':_0x522e58});}}['_createCurrentRevision'](_0x2eb0c1){const _0x48a67b=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x48a67b),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x2eb0c1,'to':_0x2eb0c1,'id':_0x48a67b,'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'](_0x3ddb86,_0x30847b){let _0x572f00=this['editor']['config']['get']('initialData'),_0x2b7204=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x572f00){_0x572f00={};for(const _0x408bf5 of this['editor']['model']['document']['getRootNames']())_0x572f00[_0x408bf5]='';}if('string'==typeof _0x572f00&&(_0x572f00={'main':_0x572f00}),void 0x0===_0x2b7204){_0x2b7204={};for(const _0x565623 of this['editor']['model']['document']['getRootNames']())_0x2b7204[_0x565623]={};}let _0x15d5a8=!0x1;const _0x15bb4c=Object['keys'](_0x572f00),_0x3513ff=Object['keys'](_0x3ddb86);for(const _0x45a7e9 of _0x15bb4c){if(_0x572f00[_0x45a7e9]!==_0x3ddb86[_0x45a7e9]&&''!==_0x572f00[_0x45a7e9]['trim']()){_0x15d5a8=!0x0;break;}if(!_0xef62c8(_0x2b7204[_0x45a7e9],_0x30847b[_0x45a7e9])&&Object['keys'](_0x2b7204[_0x45a7e9])['length']>0x0){_0x15d5a8=!0x0;break;}}_0x15d5a8||(_0x15d5a8=_0x3513ff['some'](_0x1d0c78=>!this['editor']['model']['document']['getRoot'](_0x1d0c78))),_0x15d5a8&&_0x1a3ba3('editor-initial-data-replaced-with-revision-data',{'editorData':_0x572f00,'editorRootsAttributes':_0x2b7204,'revisionData':_0x3ddb86,'revisionRootsAttributes':_0x30847b}),this['editor']['config']['set']('initialData',_0x3ddb86),this['editor']['config']['set']('rootsAttributes',_0x30847b);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x3b2646=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x3b2646['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x449e67){const _0x2db8cc=this['repository']['getRevisions']();_0x2db8cc['reverse']();let _0x4bcc09=0x0;for(;_0x4bcc09<_0x2db8cc['length'];){const _0x14eaeb=_0x2db8cc[_0x4bcc09];if(_0x14eaeb===this['currentRevision']){_0x4bcc09++;continue;}if(_0x14eaeb['id']===this['_initialRevisionId'])break;const _0x29982d=_0x449e67['toVersion']-_0x14eaeb['toVersion']||_0x449e67['fromVersion']-_0x14eaeb['fromVersion'];if(_0x29982d>0x0)break;if(_0x29982d<0x0)_0x4bcc09++;else{if(!_0x449e67['creator']&&_0x14eaeb['creator'])break;if(_0x14eaeb['creator']||!_0x449e67['creator']){if(_0x449e67['createdAt']>_0x14eaeb['createdAt'])break;_0x4bcc09++;}else _0x4bcc09++;}}return _0x4bcc09;}['_getFromVersion'](_0x594e5c){const _0x470a82=this['repository']['getRevisions']();_0x470a82['reverse'](),_0x470a82['shift']();const _0xbb134=_0x470a82['find'](_0x5e4b42=>_0x5e4b42['toVersion']<=_0x594e5c)['toVersion'];return _0xbb134<this['_startingVersion']?this['_startingVersion']:_0xbb134;}['_makeRevision']({name:_0x526889,from:_0x2f41f5,to:_0x53112a,creatorId:_0x41ddd0,id:_0x91a36b}){const _0x5ea880=this['buildRevisionData']({'from':_0x2f41f5,'to':_0x53112a});_0x5ea880['name']=_0x526889,_0x5ea880['creatorId']=_0x41ddd0,_0x5ea880['id']=_0x91a36b;const _0x317bbc=this['addRevisionData'](_0x5ea880);return this['adapter']&&this['_bufferUpdate'](_0x5ea880['id'],_0x5ea880,!0x0),_0x317bbc;}['_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(_0x3821c5){this['editor']=_0x3821c5,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'](_0x58c2ed){this['source']=_0x58c2ed;const _0x1fe58a=new Map(),_0x2959b7=new Map(),_0x21fb99=this['editor']['model']['document']['roots']['map'](_0xd5a4ba=>_0xd5a4ba['rootName']);for(const _0x5335ae of _0x21fb99){const _0xa876f=this['editor']['model']['document']['getRoot'](_0x5335ae),_0x10102=x(_0xa876f);_0x1fe58a['set'](_0x5335ae,_0x10102),_0x2959b7['set'](_0x5335ae,Object['fromEntries'](_0xa876f['getAttributes']()));}const _0x122c36=Array['from'](this['editor']['model']['markers'])['map'](_0x220f6c=>[_0x220f6c['name'],_0x220f6c['getRange']()]),_0x1e165b=this['source']['version'];this['_saveMetaData'](_0x1e165b,_0x1fe58a,_0x122c36,_0x2959b7),this['_startingRevisionId']=this['_revisionId'];const _0x358654=new Map(),_0x2f4cd3=new Map();for(const _0x2f0275 of _0x21fb99){const _0x31aea3=N(_0x2f0275);_0x358654['set'](_0x2f0275,_0x31aea3),_0x2f4cd3['set'](_0x2f0275,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x358654,[],_0x2f4cd3);}['getData'](_0x108184,_0x4c28cb){if(this['_lastFrom']===_0x108184&&this['_lastTo']<=_0x4c28cb)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x4c28cb,!0x0);else{if(!this['_savedMetaData']['has'](_0x108184)){const _0x54e710=this['_getPreviousFrom'](_0x108184);this['_calculateMetaData'](_0x54e710,_0x108184,!0x1);}this['_calculateMetaData'](_0x108184,_0x4c28cb,!0x0);}return this['_lastFrom']=_0x108184,this['_lastTo']=_0x4c28cb,this['_getState']();}['loadState'](_0x48e2da){const _0x30fd5c=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x48e2da['fromVersion'],this['_lastTo']=_0x48e2da['toVersion'];for(const _0x586e1b in _0x48e2da['diffData']){const _0x524a6f=_0x48e2da['diffData'][_0x586e1b]['attachChange'],_0x32f30e=_0x421307(_0x48e2da['diffData'][_0x586e1b]['attributesBefore'])||{},_0x291a95=_0x30fd5c['_makeModelFromViewString'](_0x48e2da['diffData'][_0x586e1b]['deletions']);_0x291a95['rootName']=_0x586e1b,_0x291a95['_isAttached']=!_0x524a6f||!_0x524a6f['isAttached'],_0x291a95['isAttached']=()=>_0x291a95['_isAttached'],this['_baseRoots']['set'](_0x586e1b,_0x291a95),this['_baseRootsAttributes']['set'](_0x586e1b,_0x32f30e),_0x524a6f&&this['_touchedRoots']['set'](_0x586e1b,_0x524a6f);const _0x22944e=this['_makeIdsRoot'](_0x291a95);this['_baseIdsRoots']['set'](_0x586e1b,_0x22944e);for(const [_0x434255,_0x3c5179]of _0x291a95['markers']){if(!_0x434255['startsWith']('revision:'))continue;const _0x26c736=_0x434255['split'](':')[0x2];for(const _0x47b8d3 of _0x3c5179['getWalker']({'singleCharacters':!0x0})){const _0x2861dc=this['_getVidAttributeName'](_0x47b8d3),_0x3b6232='elementEnd'==_0x47b8d3['type']?_0x47b8d3['previousPosition']['path']['slice'](0x0,-0x1):_0x47b8d3['previousPosition']['path'],_0x4216a8=_0x22944e['getNodeByPath'](_0x3b6232)['getAttribute'](_0x2861dc);this['_touched']['set'](_0x4216a8,{'userId':_0x26c736});}}}this['_startingRevisionId']=this['_revisionId'];const _0x319673=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x511390=>!this['_touched']['has'](_0x511390));let _0x1d1bd8=0x0;const _0x3b6981=new Map();for(const _0x2954c4 in _0x48e2da['diffData']){const _0x2a9214=_0x48e2da['diffData'][_0x2954c4]['attachChange'],_0x301714=_0x421307(_0x48e2da['diffData'][_0x2954c4]['attributesAfter'])||{},_0x674ab0=_0x30fd5c['_makeModelFromViewString'](_0x48e2da['diffData'][_0x2954c4]['insertions']);_0x674ab0['rootName']=_0x2954c4,_0x674ab0['_isAttached']=!_0x2a9214||_0x2a9214['isAttached'],_0x674ab0['isAttached']=()=>_0x674ab0['_isAttached'],this['_diffRoots']['set'](_0x2954c4,_0x674ab0),this['_diffRootsAttributes']['set'](_0x2954c4,_0x301714);const _0x36f2e4=this['_makeIdsRoot'](_0x674ab0,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x2954c4,_0x36f2e4),_0x3b6981['set'](_0x2954c4,_0x674ab0['isAttached']()?_0x301714:{});for(const [_0x2ebf0b,_0x26d1de]of _0x674ab0['markers']){if(!_0x2ebf0b['startsWith']('revision:'))continue;const _0x2e3665=_0x2ebf0b['split'](':')[0x2];for(const _0x391572 of _0x26d1de['getWalker']({'singleCharacters':!0x0})){const _0x5118bc=this['_getVidAttributeName'](_0x391572),_0x467bc1=this['_revisionId']++,_0x4a75b8='elementEnd'==_0x391572['type']?_0x391572['previousPosition']['path']['slice'](0x0,-0x1):_0x391572['previousPosition']['path'];_0x36f2e4['getNodeByPath'](_0x4a75b8)['_setAttribute'](_0x5118bc,_0x467bc1),this['_touched']['set'](_0x467bc1,{'userId':_0x2e3665});}}for(const _0x1f72ae of this['editor']['model']['createRangeIn'](_0x674ab0)['getWalker']({'singleCharacters':!0x0})){const _0x4865bb=this['_getVidAttributeName'](_0x1f72ae),_0x2367bc='elementEnd'==_0x1f72ae['type']?_0x1f72ae['previousPosition']['path']['slice'](0x0,-0x1):_0x1f72ae['previousPosition']['path'],_0x52d0ab=_0x36f2e4['getNodeByPath'](_0x2367bc);_0x52d0ab['getAttribute'](_0x4865bb)>0x0||_0x52d0ab['_setAttribute'](_0x4865bb,_0x319673[_0x1d1bd8++]);}for(const [_0x5f37f2,_0x201dfb]of _0x674ab0['markers'])_0x5f37f2['startsWith']('revision:')||this['_markers']['set'](_0x5f37f2,_0x201dfb);}const _0x57b421=N('$graveyard');this['_baseRoots']['set']('$graveyard',_0x57b421),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x57b421,0x1));const _0x2c022f=N('$graveyard');this['_diffRoots']['set']('$graveyard',_0x2c022f),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x2c022f,0x1));const _0xab9b40=Array['from'](this['_diffRoots'])['map'](([_0x755dfd,_0x483dab])=>[_0x755dfd,x(_0x483dab)]);this['_saveMetaData'](this['_lastTo'],_0xab9b40,this['_markers'],_0x3b6981);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x375843,_0x1de29d,_0x389683,_0x47ea8b){const _0x17debd=new Map(_0x1de29d),_0x5afb31=new Map(_0x421307(_0x47ea8b)),_0x29c54e=new Map();for(const [_0x5ecc17,_0x4c12d7]of _0x389683)_0x29c54e['set'](_0x5ecc17,{'start':_0x4c12d7['start']['clone'](),'end':_0x4c12d7['end']['clone'](),'rootName':_0x4c12d7['root']['rootName']});this['_savedMetaData']['set'](_0x375843,{'roots':_0x17debd,'markers':_0x29c54e,'rootsAttributes':_0x5afb31});}['_removeMetaData'](_0x43b151){this['_savedMetaData']['delete'](_0x43b151);}['_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'](_0x79c4a2,_0x1ba64a=null){let _0x579e69=null;_0x79c4a2['is']('documentFragment')||(_0x579e69=new _0x55a91c(_0x79c4a2['name'],{'vid_start':null===_0x1ba64a?this['_revisionId']++:_0x1ba64a++}));const _0x5aa1ce=[];for(const _0x24b29e of _0x79c4a2['getChildren']())if(_0x24b29e['is']('element')){_0x5aa1ce['push'](this['_makeIdsRoot'](_0x24b29e,_0x1ba64a));const _0x4e9d1c=_0x5aa1ce[_0x5aa1ce['length']-0x1];null!==_0x1ba64a&&(_0x1ba64a=_0x4e9d1c['is']('element','$text')?_0x4e9d1c['getAttribute']('vid')+0x1:_0x4e9d1c['getAttribute']('vid_end')+0x1);}else{for(let _0x14dba5=0x0;_0x14dba5<_0x24b29e['offsetSize'];_0x14dba5++)_0x5aa1ce['push'](new _0x55a91c('$text',{'vid':null===_0x1ba64a?this['_revisionId']++:_0x1ba64a++}));}if(_0x79c4a2['is']('documentFragment')){const _0x5a0367=N(_0x79c4a2['rootName']);return _0x5a0367['_insertChild'](0x0,_0x5aa1ce),_0x5a0367;}return _0x579e69['_setAttribute']('vid_end',null===_0x1ba64a?this['_revisionId']++:_0x1ba64a++),_0x579e69['_insertChild'](0x0,_0x5aa1ce),_0x579e69;}['_calculateMetaData'](_0x58e98d,_0xaa35c8,_0x15bcd3){this['_reset']();const {roots:_0x46c5af,markers:_0x3d3067,rootsAttributes:_0xcb38cb}=this['_savedMetaData']['get'](_0x58e98d);this['_baseRoots']=new Map(_0x46c5af),this['_baseRootsAttributes']=new Map(_0x421307(_0xcb38cb));for(const [_0x197a65,_0x6fe7cb]of this['_baseRoots'])if('$graveyard'!==_0x197a65&&(this['_diffRoots']['set'](_0x197a65,x(_0x6fe7cb)),this['_diffRootsAttributes']=new Map(_0x421307(_0xcb38cb)),_0x15bcd3)){const _0x5c2c0c=this['_revisionId'];this['_idsRoots']['set'](_0x197a65,this['_makeIdsRoot'](_0x6fe7cb)),this['_baseIdsRoots']['set'](_0x197a65,this['_makeIdsRoot'](_0x6fe7cb,_0x5c2c0c));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x15bcd3&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x51d879,_0xd6d6aa]of _0x3d3067){const _0x313d63=this['_baseRoots']['get'](_0xd6d6aa['rootName']),_0x43cc63=this['_diffRoots']['get'](_0xd6d6aa['rootName']),_0x465882=new _0x286e6f(this['_fixPosition'](_0xd6d6aa['start'],_0x313d63),this['_fixPosition'](_0xd6d6aa['end'],_0x313d63)),_0x33286a=this['_fixRange'](_0x465882,_0x43cc63);_0x313d63['markers']['set'](_0x51d879,_0x465882),this['_markers']['set'](_0x51d879,_0x33286a);}this['_applyOperations'](_0x58e98d,_0xaa35c8,_0x15bcd3);}['_applyOperations'](_0x433146,_0x13bc0f,_0x55dda8){for(const _0x20a516 of this['source']['getOperations'](_0x433146,_0x13bc0f))this['_handleOperation'](_0x20a516,_0x55dda8);for(const _0x28bfb1 of this['_diffRoots']['values']())_0x28bfb1['markers']['clear']();for(const [_0x58dafd,_0x3621d5]of this['_markers']){this['_diffRoots']['get'](_0x3621d5['root']['rootName'])['markers']['set'](_0x58dafd,_0x3621d5['clone']());}const _0x51b9d3=new Map(),_0x48e327=new Map();for(const [_0x16ad05,_0x1a1a6a]of this['_diffRoots'])_0x51b9d3['set'](_0x16ad05,x(_0x1a1a6a)),_0x48e327['set'](_0x16ad05,this['_diffRootsAttributes']['get'](_0x16ad05));this['_saveMetaData'](_0x13bc0f,_0x51b9d3,this['_markers'],_0x48e327);}['_getPreviousFrom'](_0x347b22){const _0x7ee60a=Array['from'](this['_savedMetaData']['keys']());_0x7ee60a['sort']((_0x24c00d,_0x231522)=>_0x24c00d-_0x231522),_0x7ee60a['reverse']();for(const _0x4c25c2 of _0x7ee60a)if(_0x4c25c2<_0x347b22)return _0x4c25c2;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x1331cc,_0x2bb86a){const _0x3acaf5=Array['from'](_0x2bb86a['markers'])['map'](([_0xe00c93,_0x3e788c])=>[_0xe00c93,this['_fixRange'](_0x3e788c,_0x1331cc)]);_0x1331cc['markers']=new Map(_0x3acaf5);}['_transformMarkers'](_0x301919){for(const _0x2e0d16 of this['_markers']['values']()){const _0x234951=_0x2e0d16['getTransformedByOperation'](_0x301919),_0x3d0624=_0x286e6f['_createFromRanges'](_0x234951);_0x2e0d16['start']=_0x3d0624['start'],_0x2e0d16['end']=_0x3d0624['end'];}}['_handleOperation'](_0x42afa8,_0x3d2c28){if('addRoot'!=_0x42afa8['type']&&'detachRoot'!=_0x42afa8['type']){if('insert'==_0x42afa8['type']){const _0x545775=_0x42afa8['position']['root']['rootName'];this['_diffRoots']['has'](_0x545775)||(this['_diffRoots']['set'](_0x545775,N(_0x545775,!0x0)),this['_diffRootsAttributes']['set'](_0x545775,{}),_0x3d2c28&&this['_idsRoots']['set'](_0x545775,N(_0x545775,!0x0)));}else{if('addRootAttribute'==_0x42afa8['type']||'removeRootAttribute'==_0x42afa8['type']||'changeRootAttribute'==_0x42afa8['type'])return void this['_handleRootAttributeOperation'](_0x42afa8);'marker'==_0x42afa8['type']&&this['_handleMarkerOperation'](_0x42afa8);}if('marker'!==_0x42afa8['type']){const _0x46fd87=this['_cloneOperation'](_0x42afa8,this['_diffRoots']);_0x46fd87['_execute'](),this['_transformMarkers'](_0x46fd87);}if(_0x3d2c28)switch(_0x42afa8['type']){case'insert':this['_handleInsertOperation'](_0x42afa8);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x42afa8);break;case'merge':this['_handleMergeOperation'](_0x42afa8);break;case'split':this['_handleSplitOperation'](_0x42afa8);}}else this['_handleRootOperation'](_0x42afa8,_0x3d2c28);}['_cloneOperation'](_0x3ca60b,_0x1bb797){const _0x124333=_0x3ca60b['clone']();return _0x124333['_authorId']=_0x3ca60b['_authorId'],this['_fixOperation'](_0x124333,_0x1bb797),_0x124333;}['_getBaseVids'](_0x270042){return _0x270042['map'](_0x10fd70=>{const _0x4a8b23=this['_getVidAttributeName'](_0x10fd70);return Number(_0x10fd70['item']['getAttribute'](_0x4a8b23));});}['_generateTape'](_0x22c998,_0x1fc538){if(_0x22c998['is']('element','$text'))_0x1fc538['push']({'item':_0x22c998,'type':'text'});else{_0x22c998['is']('element')&&_0x1fc538['push']({'item':_0x22c998,'type':'elementStart'});for(const _0x3a15a8 of _0x22c998['getChildren']())this['_generateTape'](_0x3a15a8,_0x1fc538);_0x22c998['is']('element')&&_0x1fc538['push']({'item':_0x22c998,'type':'elementEnd'});}return _0x1fc538;}['_getState'](){const _0x3e98fa=new Map(this['_touched']),_0xebbeed=new Map(_0x3e98fa),_0x2e37b4=new Map(),_0x46c3e9={'insertions':{},'deletions':{}},_0x2be5a6={'insertions':{},'deletions':{}},_0x4dd875=new Map(),_0x3c1a98=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x3c1a98['delete']('$graveyard');for(const _0x2bfa5e of _0x3c1a98){const _0x326cde=this['_diffRoots']['get'](_0x2bfa5e)||N(_0x2bfa5e,!0x1),_0x2d3948=this['_baseRoots']['get'](_0x2bfa5e)||N(_0x2bfa5e,!0x1);_0x326cde['isAttached']()||_0x2d3948['isAttached']()?(_0x46c3e9['insertions'][_0x2bfa5e]=x(_0x326cde),_0x46c3e9['deletions'][_0x2bfa5e]=x(_0x2d3948),this['_copyMarkers'](_0x46c3e9['deletions'][_0x2bfa5e],_0x2d3948),this['_copyMarkers'](_0x46c3e9['insertions'][_0x2bfa5e],_0x326cde),_0x2be5a6['insertions'][_0x2bfa5e]=this['_generateTape'](this['_idsRoots']['get'](_0x2bfa5e),[]),_0x2be5a6['deletions'][_0x2bfa5e]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x2bfa5e)||N(_0x2bfa5e,!0x1),[])):_0x3c1a98['delete'](_0x2bfa5e);}for(const _0x219799 of _0x3c1a98){const _0x40846b=_0x2be5a6['insertions'][_0x219799];for(const _0x5df8cc of _0x40846b){const _0x508f9b=this['_getVidAttributeName'](_0x5df8cc),_0x2a7136=_0x5df8cc['item']['getAttribute'](_0x508f9b);_0xebbeed['delete'](_0x2a7136),_0x2a7136>=this['_startingRevisionId']&&_0x2e37b4['set'](_0x2a7136,_0x3e98fa['get'](_0x2a7136));}}for(const _0x170ffe of _0x3c1a98){const _0x2bead8=_0x2be5a6['insertions'][_0x170ffe],_0x547631=this['_getBaseVids'](_0x2be5a6['deletions'][_0x170ffe]);let _0xd4dcd0=0x0;for(const _0x594eef of _0x2bead8){const _0x35a66a=this['_getVidAttributeName'](_0x594eef),_0x2acadc=_0x594eef['item']['getAttribute'](_0x35a66a);if(!_0x2e37b4['has'](_0x2acadc)&&!_0x4dd875['has'](_0x2acadc)){if(_0xebbeed['has'](_0x2acadc))_0xd4dcd0++;else{if(_0x2acadc!=_0x547631[_0xd4dcd0]){const _0x37d284=_0x3e98fa['get'](_0x2acadc)||_0x3e98fa['get'](_0x547631[_0xd4dcd0]);for(;_0x2acadc!=_0x547631[_0xd4dcd0];)_0xebbeed['has'](_0x547631[_0xd4dcd0])||(_0x4dd875['set'](_0x547631[_0xd4dcd0],_0x37d284),_0x3e98fa['set'](_0x547631[_0xd4dcd0],_0x37d284)),_0xd4dcd0++;}_0xd4dcd0++;}}}}for(const _0x1eb4fd of _0x3c1a98){const _0x3252e7=_0x2be5a6['insertions'][_0x1eb4fd];for(const _0x145f57 of _0x3252e7){const _0xa951c=this['_getVidAttributeName'](_0x145f57),_0x1ae956=_0x145f57['item']['getAttribute'](_0xa951c);if(_0x4dd875['has'](_0x1ae956)){const _0x3977dd=_0x4dd875['get'](_0x1ae956);_0xebbeed['has'](_0x1ae956)||_0xebbeed['set'](_0x1ae956,{..._0x3977dd}),_0x2e37b4['set'](_0x1ae956,{..._0x3977dd});}}}for(const _0x32051a of _0xebbeed['keys']())_0x32051a>=this['_startingRevisionId']&&_0xebbeed['delete'](_0x32051a);const _0x4d4f7c=new Map();for(const _0x41f43b of _0x3c1a98){let _0x3cd23b=_0x2be5a6['insertions'][_0x41f43b];for(const _0x29be07 of _0x3cd23b)if(_0x29be07['item']['is']('element','tableCell')){const _0x1fba21=this['_getVidAttributeName'](_0x29be07),_0x3e636c=_0x29be07['item']['getAttribute'](_0x1fba21);if(_0x2e37b4['has'](_0x3e636c)){const _0x13f92a=_0x29be07['item']['parent']['parent']['getAttribute']('vid_start'),_0x154063=_0x4d4f7c['get'](_0x13f92a)||new Set();_0x154063['add'](_0x2e37b4['get'](_0x3e636c)['userId']),_0x4d4f7c['set'](_0x13f92a,_0x154063);}}_0x3cd23b=_0x2be5a6['deletions'][_0x41f43b];for(const _0x35b51f of _0x3cd23b)if(_0x35b51f['item']['is']('element','tableCell')){const _0x5e831c=this['_getVidAttributeName'](_0x35b51f),_0x33e4af=_0x35b51f['item']['getAttribute'](_0x5e831c);if(_0xebbeed['has'](_0x33e4af)){const _0x2fa01e=_0x35b51f['item']['parent']['parent']['getAttribute']('vid_start'),_0x31fb46=_0x4d4f7c['get'](_0x2fa01e)||new Set();_0x31fb46['add'](_0xebbeed['get'](_0x33e4af)['userId']),_0x4d4f7c['set'](_0x2fa01e,_0x31fb46);}}for(const _0x24d426 of _0x4d4f7c['keys']())(_0x2e37b4['has'](_0x24d426)||_0xebbeed['has'](_0x24d426))&&_0x4d4f7c['delete'](_0x24d426);}for(const _0x192af4 of _0x3c1a98){const _0x437014=_0x2be5a6['insertions'][_0x192af4];let _0x34e8f6=null,_0x359678=null;for(const _0x45a84b of _0x437014){const _0x5dd15b=this['_getVidAttributeName'](_0x45a84b),_0x32becf=_0x45a84b['item']['getAttribute'](_0x5dd15b),_0x50f2c8=_0x4d4f7c['get'](_0x32becf);_0x50f2c8&&'elementStart'==_0x45a84b['type']&&(_0x34e8f6=Array['from'](_0x50f2c8)[0x0],_0x359678=_0x45a84b['item']['getAttribute']('vid_end')),_0x34e8f6&&(_0xebbeed['set'](_0x32becf,{'userId':_0x34e8f6}),_0x2e37b4['set'](_0x32becf,{'userId':_0x34e8f6})),_0x32becf==_0x359678&&(_0x34e8f6=null,_0x359678=null);}}const _0x175234={},_0x491100=new Set();for(const _0x1ed04e of _0x3c1a98){const _0x42f783=_0x46c3e9['deletions'][_0x1ed04e],_0x28847a=_0x46c3e9['insertions'][_0x1ed04e];for(const {userId:_0x22c8ae}of this['_touchedMarkers']['values']())null!==_0x22c8ae&&_0x491100['add'](_0x22c8ae);for(const {userId:_0x681a61}of this['_touchedRoots']['values']())null!==_0x681a61&&_0x491100['add'](_0x681a61);this['_markChanges'](_0x28847a,_0x2be5a6['insertions'][_0x1ed04e],_0x2e37b4,'insertion',_0x491100),this['_markChanges'](_0x42f783,_0x2be5a6['deletions'][_0x1ed04e],_0xebbeed,'deletion',_0x491100),_0x175234[_0x1ed04e]={'insertions':this['_prepareViewToSave'](_0x28847a),'deletions':this['_prepareViewToSave'](_0x42f783),'attachChange':this['_touchedRoots']['get'](_0x1ed04e)||null,'attributesBefore':_0x421307(this['_baseRootsAttributes']['get'](_0x1ed04e))||{},'attributesAfter':_0x421307(this['_diffRootsAttributes']['get'](_0x1ed04e))};}return{'diffData':_0x175234,'authorsIds':Array['from'](_0x491100)};}['_processRootBeforeSave'](_0x495a9f){for(const [,_0x43b81a]of _0x495a9f['markers']){const _0x3c1e65=_0x43b81a['start']['getAncestors']()['filter'](_0x31ac12=>'tableCell'==_0x31ac12['name']);for(const _0x38a456 of _0x3c1e65)0x1==_0x38a456['childCount']&&_0x38a456['getChild'](0x0)['is']('element','paragraph')&&_0x38a456['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x56e0fa){this['_processRootBeforeSave'](_0x56e0fa);const _0x535265=this['editor']['data']['toView'](_0x56e0fa,{}),_0x50f394=Array['from'](_0x535265['getChildren']())['map'](_0x41ae32=>this['_getViewJson'](_0x41ae32));return JSON['stringify'](_0x50f394);}['_getViewJson'](_0x18b2dc){if(_0x18b2dc['is']('$text'))return _0x18b2dc['data'];{const _0x4946aa=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x442bba=_0x18b2dc,_0x486d2a=this['editor']['data']['htmlProcessor']['domConverter'],_0x2a1c65={'type':_0x4946aa['_getTypeCharForViewElement'](_0x442bba),'name':_0x442bba['name'],'attributes':Array['from'](_0x442bba['getAttributes']()),'children':Array['from'](_0x442bba['getChildren']())['map'](_0xf1a649=>this['_getViewJson'](_0xf1a649))};if(_0x18b2dc['is']('uiElement')&&'$comment'!=_0x18b2dc['name']){const _0x55ba1a=_0x18b2dc['render'](_0x486d2a['domDocument'],_0x486d2a);_0x2a1c65['children']['push'](_0x55ba1a['outerHTML']);}else{if(_0x18b2dc['is']('rawElement')){const _0x252736=_0x486d2a['domDocument']['createElement'](_0x442bba['name']);_0x18b2dc['render'](_0x252736,_0x486d2a),_0x2a1c65['children']['push'](_0x252736['innerHTML']);}}const _0xde22b2=Array['from'](_0x442bba['getCustomProperties']());_0xde22b2['length']>0x0&&(_0x2a1c65['customProperties']=_0xde22b2);const _0x30bb82=_0x442bba['getFillerOffset']();return null!==_0x30bb82&&(_0x2a1c65['fillerOffset']=_0x30bb82),_0x2a1c65;}}['_markChanges'](_0x344dbf,_0x51e239,_0x5498e7,_0x227fa6,_0x52b68f){let _0x3d0457=null,_0x43f988=null,_0x360e48=0x0;const _0x580838=this['editor']['model'];for(let _0x54fac8=0x0;_0x54fac8<_0x51e239['length'];_0x54fac8++){const _0x47e5a0=this['_getVidAttributeName'](_0x51e239[_0x54fac8]),_0x9bc0f3=_0x51e239[_0x54fac8]['item']['getAttribute'](_0x47e5a0),_0x3fa4d4=_0x5498e7['get'](_0x9bc0f3),_0x287e7e=_0x54fac8==_0x51e239['length']-0x1;(!_0x3d0457&&_0x3fa4d4&&(_0x3d0457=_0x3fa4d4,_0x43f988=_0x51e239[_0x54fac8]),_0x3d0457&&(!_0x3fa4d4||_0x3fa4d4['userId']!=_0x3d0457['userId']))&&(_0x512b1e(_0x3fa4d4,P(_0x43f988,_0x344dbf,_0x580838),P(_0x51e239[_0x54fac8],_0x344dbf,_0x580838)),_0x3d0457=_0x3fa4d4||null,_0x43f988=_0x3fa4d4?_0x51e239[_0x54fac8]:null),_0x3d0457&&_0x287e7e&&_0x512b1e(_0x3fa4d4,P(_0x43f988,_0x344dbf,_0x580838),V(_0x51e239[_0x54fac8],_0x344dbf,_0x580838));}function _0x512b1e(_0x14a11a,_0x2087a0,_0x4db49e){const _0x3415d3=_0x3d0457['userId'],_0x554a17='revision:'+_0x227fa6+':'+_0x3415d3+':'+_0x360e48++,_0x4a4341=_0x580838['createRange'](_0x2087a0,_0x4db49e);_0x344dbf['markers']['set'](_0x554a17,_0x4a4341),null!==_0x3415d3&&_0x52b68f['add'](_0x3415d3);}}['_getVidAttributeName'](_0x23dde2){switch(_0x23dde2['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x18f9d3,_0x1d3413){_0x18f9d3['baseVersion']=null;for(const _0x381f09 in _0x18f9d3){const _0x31f54d=_0x18f9d3[_0x381f09];if(_0x31f54d instanceof _0x45fcbc){const _0x20ddb0=_0x1d3413['get'](_0x31f54d['root']['rootName']);_0x18f9d3[_0x381f09]=this['_fixPosition'](_0x31f54d,_0x20ddb0);}if(_0x31f54d instanceof _0x286e6f){const _0x37b133=_0x1d3413['get'](_0x31f54d['root']['rootName']);_0x18f9d3[_0x381f09]=this['_fixRange'](_0x31f54d,_0x37b133);}'root'===_0x381f09&&(_0x18f9d3['root']=_0x1d3413['get'](_0x18f9d3['root']['rootName']));}}['_fixRange'](_0xa226ed,_0x4cbc57){return this['editor']['model']['createRange'](this['_fixPosition'](_0xa226ed['start'],_0x4cbc57),this['_fixPosition'](_0xa226ed['end'],_0x4cbc57));}['_fixPosition'](_0x5efa8f,_0x583e69){return this['editor']['model']['createPositionFromPath'](_0x583e69,_0x5efa8f['path'],_0x5efa8f['stickiness']);}['_handleInsertOperation'](_0x57f988){const _0x37deb3=this['_idsRoots']['get'](_0x57f988['position']['root']['rootName']),_0xe94cd=this['_fixPosition'](_0x57f988['position'],_0x37deb3),_0x392ac4=null===_0x57f988['_authorId']?null:_0x57f988['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x101955=_0xe94cd['parent'],_0x3fdb7a=this['_revisionId'],_0x256e07=[];for(const _0x4b5542 of _0x57f988['nodes'])if(_0x4b5542['is']('element'))_0x256e07['push'](this['_makeIdsRoot'](_0x4b5542));else{for(let _0x57f30c=0x0;_0x57f30c<_0x4b5542['offsetSize'];_0x57f30c++)_0x256e07['push'](new _0x55a91c('$text',{'vid':this['_revisionId']++}));}const _0x54b65d=this['_revisionId'];for(let _0x48fd37=_0x3fdb7a;_0x48fd37<_0x54b65d;_0x48fd37++)this['_touched']['set'](_0x48fd37,{'userId':_0x392ac4});_0x101955['_insertChild'](_0xe94cd['offset'],_0x256e07);}['_handleMoveOperation'](_0x4e899e){(_0x4e899e=this['_cloneOperation'](_0x4e899e,this['_idsRoots']))['_execute']();const _0x107680=null===_0x4e899e['_authorId']?null:_0x4e899e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5581b3=_0x4e899e['getMovedRangeStart'](),_0x674a50=_0x5581b3['parent'],_0x333ccd=_0x5581b3['offset'];!function _0x132f02(_0xa825d5,_0x4e4529,_0x3a05f4,_0x14783f){for(let _0x1dc966=_0x3a05f4;_0x1dc966<_0x14783f;_0x1dc966++){const _0x405125=_0x4e4529['getChild'](_0x1dc966);_0x405125['is']('element','$text')?_0xa825d5['set'](_0x405125['getAttribute']('vid'),{'userId':_0x107680}):(_0xa825d5['set'](_0x405125['getAttribute']('vid_start'),{'userId':_0x107680}),_0x132f02(_0xa825d5,_0x405125,0x0,_0x405125['childCount']),_0xa825d5['set'](_0x405125['getAttribute']('vid_end'),{'userId':_0x107680}));}}(this['_touched'],_0x674a50,_0x333ccd,_0x333ccd+_0x4e899e['howMany']);}['_handleMergeOperation'](_0x370b19){const _0x28fa3a=null===(_0x370b19=this['_cloneOperation'](_0x370b19,this['_idsRoots']))['_authorId']?null:_0x370b19['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4e2672=_0x370b19['targetPosition']['parent'],_0x5ad5e=_0x370b19['sourcePosition']['parent'],_0x56ebb7=_0x4e2672['getAttribute']('vid_end'),_0x1ce74b=_0x5ad5e['getAttribute']('vid_start');_0x4e2672['_setAttribute']('vid_end',_0x5ad5e['getAttribute']('vid_end')),_0x5ad5e['_setAttribute']('vid_end',_0x56ebb7),this['_touched']['set'](_0x1ce74b,{'userId':_0x28fa3a}),this['_touched']['set'](_0x56ebb7,{'userId':_0x28fa3a}),_0x370b19['_execute']();}['_handleSplitOperation'](_0x326c7c){const _0x44d5b8=null===(_0x326c7c=this['_cloneOperation'](_0x326c7c,this['_idsRoots']))['_authorId']?null:_0x326c7c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x476864=_0x326c7c['graveyardPosition'],_0x111323=_0x326c7c['splitPosition']['parent'];_0x326c7c['_execute']();const _0x543867=_0x111323['getAttribute']('vid_end'),_0x2d74b8=_0x326c7c['insertionPosition']['nodeAfter'];if(_0x476864){const _0x492c5d=_0x2d74b8['getAttribute']('vid_end'),_0x5a07fc=_0x111323['getAttribute']('vid_end');_0x111323['_setAttribute']('vid_end',_0x492c5d),_0x2d74b8['_setAttribute']('vid_end',_0x5a07fc),this['_touched']['set'](_0x111323['getAttribute']('vid_end'),{'userId':_0x44d5b8}),this['_touched']['set'](_0x2d74b8['getAttribute']('vid_start'),{'userId':_0x44d5b8});}else{const _0x2ffa50=this['_revisionId']++,_0x5c3806=this['_revisionId']++;_0x111323['_setAttribute']('vid_end',_0x2ffa50),_0x2d74b8['_setAttribute']('vid_start',_0x5c3806),_0x2d74b8['_setAttribute']('vid_end',_0x543867),this['_touched']['set'](_0x2ffa50,{'userId':_0x44d5b8}),this['_touched']['set'](_0x5c3806,{'userId':_0x44d5b8});}}['_handleMarkerOperation'](_0x2af773){if(!_0x2af773['affectsData'])return;const _0x131d97=(_0x2af773=this['_cloneOperation'](_0x2af773,this['_diffRoots']))['oldRange']?_0x2af773['oldRange']['root']:null,_0x31bde0=_0x2af773['newRange']?_0x2af773['newRange']['root']:null;_0x131d97&&this['_markers']['delete'](_0x2af773['name']),_0x31bde0&&this['_markers']['set'](_0x2af773['name'],_0x2af773['newRange']['clone']());const _0x123aaa=null===_0x2af773['_authorId']?null:_0x2af773['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x575414=_0x2af773['name'];if(!this['_touchedMarkers']['has'](_0x575414))return void this['_touchedMarkers']['set'](_0x575414,{'range':_0x2af773['oldRange'],'userId':_0x123aaa});const _0x3b95c4=this['_touchedMarkers']['get'](_0x575414),_0x333336=_0x3b95c4['range'],_0x5ca04b=_0x2af773['newRange'];null==_0x333336&&null==_0x5ca04b||_0x333336&&_0x5ca04b&&_0x333336['isEqual'](_0x5ca04b)?this['_touchedMarkers']['delete'](_0x2af773['name']):_0x3b95c4['userId']=_0x123aaa;}['_handleRootOperation'](_0x3e54f8,_0x43a722){this['_diffRoots']['has'](_0x3e54f8['rootName'])?this['_diffRoots']['get'](_0x3e54f8['rootName'])['_isAttached']=_0x3e54f8['isAdd']:(this['_diffRoots']['set'](_0x3e54f8['rootName'],N(_0x3e54f8['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x3e54f8['rootName'],{}),_0x43a722&&this['_idsRoots']['set'](_0x3e54f8['rootName'],N(_0x3e54f8['rootName'],!0x0)));const _0x5a90e6=null===_0x3e54f8['_authorId']?null:_0x3e54f8['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x7f76f0=this['_touchedRoots']['get'](_0x3e54f8['rootName']);_0x7f76f0&&_0x7f76f0['userId']===_0x5a90e6?this['_touchedRoots']['delete'](_0x3e54f8['rootName']):this['_touchedRoots']['set'](_0x3e54f8['rootName'],{'userId':_0x5a90e6,'isAttached':_0x3e54f8['isAdd']});}['_handleRootAttributeOperation'](_0x73086e){const _0x5454af=this['_diffRootsAttributes']['get'](_0x73086e['root']['rootName']);null===_0x73086e['newValue']?delete _0x5454af[_0x73086e['key']]:_0x5454af[_0x73086e['key']]=_0x73086e['newValue'];}}function x(_0x46c814){const _0x2a950b=N(_0x46c814['rootName'],_0x46c814['isAttached']());for(const _0x39881b of _0x46c814['getChildren']()){const _0x45bbad=_0x39881b['_clone'](!0x0);_0x2a950b['_appendChild'](_0x45bbad);}return _0x2a950b;}function N(_0x5b2bfe,_0x54eeae=!0x0){const _0x8593c7=new _0x223a9b();return _0x8593c7['rootName']=_0x5b2bfe,_0x8593c7['_isAttached']=_0x54eeae,_0x8593c7['isAttached']=()=>_0x8593c7['_isAttached'],_0x8593c7;}function P(_0x26e085,_0x5ca8d3,_0x183f67){const _0x2933b3='elementEnd'==_0x26e085['type']?_0x183f67['createPositionAt'](_0x26e085['item'],'end'):_0x183f67['createPositionBefore'](_0x26e085['item']);return _0x183f67['createPositionFromPath'](_0x5ca8d3,_0x2933b3['path'],_0x2933b3['stickiness']);}function V(_0x44026b,_0xc2f538,_0x1a484d){const _0x26409d='elementStart'==_0x44026b['type']?_0x1a484d['createPositionAt'](_0x44026b['item'],0x0):_0x1a484d['createPositionAfter'](_0x44026b['item']);return _0x1a484d['createPositionFromPath'](_0xc2f538,_0x26409d['path'],_0x26409d['stickiness']);}class me extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x274bcc(_0x5bb4f2){['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x2d3be8,_0x2aeb34){super(_0x2d3be8),this['focusTracker']=new _0x347749(),this['keystrokes']=new _0x1186ba(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x2aeb34),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'](),_0x89b1ec({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0xe81965=_0x573231=>_0x573231['stopPropagation']();this['keystrokes']['set']('arrowright',_0xe81965),this['keystrokes']['set']('arrowleft',_0xe81965),this['keystrokes']['set']('arrowup',_0xe81965),this['keystrokes']['set']('arrowdown',_0xe81965);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0xd90cb0){this['revisionNameInputView']['fieldView']['element']['value']=_0xd90cb0['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x589602){const _0x4919df=new et(this['locale'],ti),_0x4f99bc=_0x4919df['fieldView'];_0x4f99bc['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x267b1e=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x589602&&(_0x267b1e+='\x20('+R(this['locale'],'optional')+')'),(_0x4919df['label']=_0x267b1e,_0x4f99bc['on']('input',()=>{this['revisionNameInputValue']=_0x4f99bc['element']['value']['trim']();}),_0x4919df);}}class v extends _0x5b4548{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h];}['_saveRevisionFormView'];['init'](){const _0x45a940=this['editor'],_0x4e2b27=_0x45a940['plugins']['get']('RevisionTracker');_0x45a940['ui']['componentFactory']['add']('revisionHistory',_0x23776a=>{const _0x110305=_0x46906e(_0x23776a),_0xbcad56=_0x110305['panelView']['children'],_0x50aee7=new _0x310671(_0x23776a),_0x4b17cd=new _0x3d8754(_0x23776a),_0x4ccf9e=new _0x1cd6d8(_0x23776a),_0x1135b2=new _0x3d8754(_0x23776a),_0x3411a9=new _0x1cd6d8(_0x23776a);return _0x110305['bind']('isEnabled')['to'](_0x4e2b27,'isReady',_0x4e2b27,'isEnabled',_0x45a940,'isReadOnly',(_0x5de12a,_0x2598ba,_0x39f0a0)=>_0x5de12a&&_0x2598ba&&!_0x39f0a0),_0x110305['buttonView']['set']({'icon':_0x659fc6,'label':R(_0x23776a,'Revision\x20history'),'tooltip':!0x0}),_0x4ccf9e['set']({'label':R(_0x23776a,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x4ccf9e['bind']('isEnabled')['to'](_0x4e2b27,'isReady',_0x4e2b27,'isEnabled',_0x45a940,'isReadOnly',(_0x100d47,_0x3f33e7,_0x57b0e4)=>_0x100d47&&_0x3f33e7&&!_0x57b0e4),_0x4ccf9e['on']('execute',()=>this['_showDialog']()),_0x3411a9['set']({'label':R(_0x23776a,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x3411a9['bind']('isEnabled')['to'](_0x4e2b27,'isReady',_0x45a940,'isReadOnly',(_0x3d6228,_0x404907)=>_0x3d6228&&!_0x404907),_0x3411a9['on']('execute',()=>{_0x45a940['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x110305['isOpen']=!0x1,_0x45a940['editing']['view']['focus']();}),_0x4b17cd['children']['add'](_0x4ccf9e),_0x1135b2['children']['add'](_0x3411a9),_0x50aee7['role']='menu',_0x50aee7['items']['addMany']([_0x4b17cd,_0x1135b2]),_0xbcad56['add'](_0x50aee7),_0x110305;}),_0x45a940['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x2c046b=this['editor'],_0x5cf6bc=_0x2c046b['locale'],_0x57cc06=new _0x43eb01(_0x5cf6bc),_0xe2f137=new _0x4725ff(_0x5cf6bc);_0x57cc06['buttonView']['set']({'icon':_0x659fc6,'label':R(_0x5cf6bc,'Revision\x20history')});const _0x29488a=new _0x305428(_0x5cf6bc,_0x57cc06),_0x8d8443=new _0x475000(_0x5cf6bc);_0x8d8443['set']({'label':R(_0x5cf6bc,'Save\x20current\x20revision')}),_0x8d8443['delegate']('execute')['to'](_0x57cc06),_0x8d8443['on']('execute',()=>{this['_showDialog']();}),_0x29488a['children']['add'](_0x8d8443),_0xe2f137['items']['add'](_0x29488a);const _0x35892e=new _0x305428(_0x5cf6bc,_0x57cc06),_0x2253ff=new _0x475000(_0x5cf6bc);return _0x2253ff['set']({'label':R(_0x5cf6bc,'Open\x20revision\x20history')}),_0x2253ff['delegate']('execute')['to'](_0x57cc06),_0x2253ff['on']('execute',()=>{_0x2c046b['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x35892e['children']['add'](_0x2253ff),_0xe2f137['items']['add'](_0x35892e),_0x57cc06['panelView']['children']['add'](_0xe2f137),_0x57cc06;}['_showDialog'](){const _0x1a0435=this['editor'],_0x58b9f7=_0x1a0435['locale'],_0x57f260=_0x1a0435['plugins']['get']('Dialog'),_0x102c10=_0x1a0435['plugins']['get']('RevisionTracker');function _0xdea42c(_0x4661e6){_0x1a0435['config']['get']('revisionHistory.requireRevisionName')&&''===_0x4661e6['revisionName']?_0x4661e6['revisionNameInputView']['errorText']=R(_0x58b9f7,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x1a0435['plugins']['get'](h)['saveRevision']({'name':_0x4661e6['revisionName']}),_0x57f260['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0xdea42c(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x57f260['show']({'id':'revisionSave','title':R(_0x58b9f7,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x1a0435['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x57f260['hide']()},{'label':R(_0x1a0435['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x585a66){_0x585a66['bind']('isEnabled')['to'](_0x102c10,'isReady',_0x102c10,'isEnabled',_0x1a0435,'isReadOnly',(_0x5dcad,_0x563b6c,_0x479792)=>_0x5dcad&&_0x563b6c&&!_0x479792);},'onExecute':()=>_0xdea42c(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x42716d=this['editor'],_0x1cb037=_0x42716d['locale'];this['_saveRevisionFormView']=new me(_0x1cb037,_0x42716d['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class z extends _0x5bb4f2{['changeId'];['_model'];constructor(_0x86663b,_0x229284){super(_0x86663b),this['_model']=_0x229284,this['changeId']=_0x229284['id'];const _0x4e5e41=this['bindTemplate'],_0x48d7e0=R(_0x86663b,_0x229284['data']['isSuggestion']?'Suggested\x20by':'add'==_0x229284['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x229284['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x4e5e41['to']('type',_0x59b827=>'ck-revision-change__'+_0x59b827)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x48d7e0}]},{'text':'\x20'+_0x229284['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class G extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x384c6d(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x431307){super(),this['id']=_0x431307['id']||_0x2df4cd(),this['author']=_0x431307['author'],this['type']=_0x431307['type'],this['data']=_0x431307['data']||{},this['rootName']=_0x431307['rootName'],this['set']('createdAt',_0x431307['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(_0xa2dc40,_0x532b79){this['newRevisionId']=_0xa2dc40,this['oldRevisionId']=_0x532b79,this['changes']=new _0x5ed036();}['_setChanges'](_0x30217a){for(const _0x2208f0 of _0x30217a)this['changes']['add'](_0x2208f0);}}class l extends _0x5b4548{['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[_0x2de8d3,_0x58509e,S,$];}constructor(_0x5d4c2a){super(_0x5d4c2a),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',(_0x35a5c4,_0x2a51bf,_0x544dc7)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x5dae9e=>{for(const _0x3c0470 of this['editor']['editing']['view']['document']['roots'])_0x544dc7?_0x5dae9e['removeClass']('ck-editor__editable__overlay',_0x3c0470):_0x5dae9e['addClass']('ck-editor__editable__overlay',_0x3c0470);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x2d7a1c=>null!==_0x2d7a1c),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x1da09b,_0x42f73d,_0x53d693)=>_0x1da09b&&_0x53d693?_0x42f73d['changes']['getIndex'](_0x53d693):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x30eb42,_0xdf08f4)=>_0x30eb42?_0xdf08f4['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x58509e);}['init'](){const _0x4de499=this['editor'],_0x3dbefb=new rt(_0x4de499,{'direction':'backward'}),_0x56943d=new rt(_0x4de499,{'direction':'forward'});(_0x4de499['commands']['add']('showPreviousChange',_0x3dbefb),_0x4de499['commands']['add']('showNextChange',_0x56943d),_0x4de499['commands']['add']('restoreRevision',new nt(_0x4de499)),this['on']('change:numberOfChanges',()=>{_0x3dbefb['refresh'](),_0x56943d['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x4de499['enableReadOnlyMode']('revision-viewer'),_0x4de499['plugins']['has']('WidgetToolbarRepository'))&&_0x4de499['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0xda74ce){return await this['_utils']['loadRevisionData'](_0xda74ce,this['adapter']),this['_utils']['getRevisionDocumentData'](_0xda74ce);}async['getRevisionRootsAttributes'](_0x435a27){return await this['_utils']['loadRevisionData'](_0x435a27,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x435a27);}async['compare'](_0x589e8a,_0x14004a,_0x2c8f30=!0x1){if(!this['isEnabled'])return;const _0x21572b=this['diff'],_0x3e5719=this['repository'],_0x451e1f='string'==typeof _0x589e8a?_0x3e5719['getRevision'](_0x589e8a):_0x589e8a,_0x30f2d7='string'==typeof _0x14004a?_0x3e5719['getRevision'](_0x14004a):_0x14004a,_0x107020=_0x451e1f['id'],_0x50b024=_0x30f2d7?_0x30f2d7['id']:null;if(!_0x2c8f30&&this['diff']&&this['diff']['newRevisionId']===_0x107020&&this['diff']['oldRevisionId']===_0x50b024)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x107020,_0x50b024);const _0x16bbdb=this['_getRevisionsRange'](_0x451e1f,_0x30f2d7,!0x0)['map'](_0x3dc841=>this['_utils']['loadRevisionData'](_0x3dc841,this['adapter']));return _0x16bbdb['push'](new Promise(_0x47c441=>{setTimeout(_0x47c441,0x14);})),Promise['all'](_0x16bbdb)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x31bcb0=this['_getDiff'](_0x107020,_0x50b024);for(const _0x103f26 of _0x31bcb0['changes'])this['_changeIdToChange']['set'](_0x103f26['id'],_0x103f26);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x18423f=>{for(const _0x58c1bf of this['editor']['model']['document']['getRootNames']())_0x18423f['detachRoot'](_0x58c1bf);for(const _0xc9a5c8 of Object['keys'](_0x31bcb0['model'])){const _0x2b0043=_0x18423f['addRoot'](_0xc9a5c8);for(const _0x879e13 of Object['keys'](_0x31bcb0['attributes'][_0xc9a5c8]))_0x18423f['setAttribute'](_0x879e13,_0x31bcb0['attributes'][_0xc9a5c8][_0x879e13],_0x2b0043);_0x18423f['insert'](_0x31bcb0['model'][_0xc9a5c8],_0x2b0043,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x31bcb0['changes'])),this['isReady']=!0x0;})['catch'](_0x23fac9=>{console['error'](_0x23fac9),this['_cleanUp'](),_0x21572b&&(this['diff']=_0x21572b),this['isReady']=!0x0;});}['addRevisionData'](_0x218c41,_0x133c08){const _0x342bb4=this['repository']['createRevision'](_0x218c41);return _0x342bb4['on']('_update',(_0xe426d6,_0x4563bd,_0x2be938)=>_0x133c08(_0x4563bd,_0x2be938,_0x342bb4)),this['repository']['addRevision'](_0x342bb4),_0x342bb4;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x665922=>{for(const _0x38dd55 of this['editor']['model']['document']['getRootNames']())_0x665922['detachRoot'](_0x38dd55);});}['_sortAndFilterDiffChanges'](_0x5c32fa){const _0x1b21cd=[],_0x474647=new Map();for(const _0x3ac5d7 of this['editor']['model']['document']['getRootNames']()){const _0x519318=this['editor']['editing']['view']['getDomRoot'](_0x3ac5d7);if(!_0x519318)continue;const _0x550b34=_0x519318['getClientRects']()['item'](0x0);_0x550b34&&(_0x1b21cd['push'](_0x3ac5d7),_0x474647['set'](_0x3ac5d7,_0x550b34));}return _0x1b21cd['sort']((_0x492a3b,_0x387b93)=>{const _0x5175fa=_0x474647['get'](_0x492a3b),_0x10f813=_0x474647['get'](_0x387b93);return _0x5175fa['y']-_0x10f813['y']||_0x5175fa['x']-_0x10f813['x'];}),(_0x5c32fa=_0x5c32fa['filter'](_0x2bf741=>_0x1b21cd['includes'](_0x2bf741['rootName'])))['sort']((_0x4b440d,_0x302276)=>_0x1b21cd['indexOf'](_0x4b440d['rootName'])-_0x1b21cd['indexOf'](_0x302276['rootName'])),_0x5c32fa;}['_makeTape'](_0x290db8){const _0x10b58c=Array['from'](_0x290db8['markers'])['filter'](([_0x1b6723,_0x10732d])=>_0x1b6723['startsWith']('revision:')&&!_0x10732d['isCollapsed']),_0x4c2664=Array['from'](this['editor']['model']['createRangeIn'](_0x290db8)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x10b58c['length'])for(const _0x1645f1 of _0x4c2664){const [_0x4b1f10,_0x3dcb82]=_0x10b58c[0x0],[,_0x590584,_0x5de415]=_0x4b1f10['split'](':');if(_0x3dcb82['end']['isEqual'](_0x1645f1['nextPosition'])&&_0x10b58c['shift'](),(_0x1645f1['previousPosition']['isEqual'](_0x3dcb82['start'])||_0x1645f1['previousPosition']['isAfter'](_0x3dcb82['start']))&&('insertion'==_0x590584?_0x1645f1['isAdded']={'userId':_0x5de415}:'deletion'==_0x590584&&(_0x1645f1['isRemoved']={'userId':_0x5de415})),0x0==_0x10b58c['length'])break;}return _0x4c2664;}['_refreshStartEndIndex'](_0x2cd3a3){const _0xc2b50f=new Map();for(let _0x48ed25=0x0;_0x48ed25<_0x2cd3a3['length'];_0x48ed25++)'text'===_0x2cd3a3[_0x48ed25]['type']?(_0x2cd3a3[_0x48ed25]['item']['startIndex']=_0x48ed25,_0x2cd3a3[_0x48ed25]['item']['endIndex']=_0x48ed25):('elementStart'===_0x2cd3a3[_0x48ed25]['type']?_0x2cd3a3[_0x48ed25]['item']['startIndex']=_0x48ed25:'elementEnd'===_0x2cd3a3[_0x48ed25]['type']&&(_0x2cd3a3[_0x48ed25]['item']['endIndex']=_0x48ed25),_0xc2b50f['set'](_0x2cd3a3[_0x48ed25]['id'],_0x48ed25));for(const _0x5592a1 of _0xc2b50f['values']())'elementStart'===_0x2cd3a3[_0x5592a1]['type']?_0x2cd3a3[_0x5592a1]['item']['endIndex']=_0xc2b50f['get'](_0x2cd3a3[_0x5592a1]['pairId']):'elementEnd'===_0x2cd3a3[_0x5592a1]['type']&&(_0x2cd3a3[_0x5592a1]['item']['startIndex']=_0xc2b50f['get'](_0x2cd3a3[_0x5592a1]['pairId']));}['_processTape'](_0x338030){for(let _0x5c1745=0x0;_0x5c1745<_0x338030['length'];_0x5c1745++){if('elementStart'===_0x338030[_0x5c1745]['type'])_0x338030[_0x5c1745]['item']['startIndex']=_0x5c1745;else{if('elementEnd'===_0x338030[_0x5c1745]['type']){_0x338030[_0x5c1745]['item']['endIndex']=_0x5c1745;const _0x57af06=_0x338030[_0x5c1745]['item']['startIndex'];_0x338030[_0x57af06]['pairId']=_0x338030[_0x5c1745]['id'],_0x338030[_0x5c1745]['pairId']=_0x338030[_0x57af06]['id'];}else _0x338030[_0x5c1745]['item']['startIndex']=_0x5c1745,_0x338030[_0x5c1745]['item']['endIndex']=_0x5c1745,_0x338030[_0x5c1745]['pairId']=null;}_0x338030[_0x5c1745]['markersStart']||(_0x338030[_0x5c1745]['markersStart']=[],_0x338030[_0x5c1745]['markersEnd']=[]);}}['_markInsertions'](_0x4dacc5,_0x13ba0b){const _0x3ef2d7=_0x4dacc5['filter'](_0x13c241=>!_0x13c241['isAdded']);for(let _0x1bc933=0x0;_0x1bc933<_0x13ba0b['length'];_0x1bc933++)_0x13ba0b[_0x1bc933]['isAdded']&&(_0x3ef2d7[_0x1bc933]['isAdded']=_0x13ba0b[_0x1bc933]['isAdded']);}['_getDiff'](_0x2e67cf,_0x4ae668=null){const _0x5a28d8=this['repository']['getRevision'](_0x2e67cf),_0x28ef24=_0x4ae668?this['repository']['getRevision'](_0x4ae668):null,_0x32b301=this['_getRevisionsRange'](_0x5a28d8,_0x28ef24),_0x1c259c=_0x32b301[_0x32b301['length']-0x1],_0xd746c8=new Map(),_0x3f9769={'model':{},'attributes':{},'changes':[]},_0xfcc9f7=new Set(),_0x34dfee=new Map();for(let _0x33d5f7=_0x32b301['length']-0x1;_0x33d5f7>=0x0;_0x33d5f7--){const _0x43202f=_0x32b301[_0x33d5f7];for(const _0x16322d of Object['keys'](_0x43202f['diffData']))if(_0x43202f['diffData'][_0x16322d]['attachChange']){const _0x20bdad=_0x43202f['diffData'][_0x16322d]['attachChange'];_0x20bdad['isAttached']?(_0xfcc9f7['add'](_0x16322d),_0x34dfee['has'](_0x16322d)&&_0x34dfee['get'](_0x16322d)['userId']==_0x20bdad['userId']?_0x34dfee['delete'](_0x16322d):_0x34dfee['set'](_0x16322d,_0x20bdad)):_0x34dfee['has'](_0x16322d)?(_0xfcc9f7['delete'](_0x16322d),_0x34dfee['delete'](_0x16322d)):(_0xfcc9f7['add'](_0x16322d),_0x34dfee['set'](_0x16322d,_0x20bdad));}else _0xfcc9f7['add'](_0x16322d);}for(const _0x3ae543 of _0xfcc9f7){const _0x3e9520=_0x34dfee['has'](_0x3ae543)&&!_0x34dfee['get'](_0x3ae543)['isAttached'];let _0xe85343=_0x3e9520?_0x32b301['length']-0x1:0x0;const _0x2cad29=_0x3e9520?-0x1:0x1;for(;_0x32b301[_0xe85343];){const _0x52aa54=_0x32b301[_0xe85343];if(_0x52aa54['diffData'][_0x3ae543]){const _0x25ce3a=_0x3e9520?_0x52aa54['diffData'][_0x3ae543]['attributesBefore']:_0x52aa54['diffData'][_0x3ae543]['attributesAfter'];_0x3f9769['attributes'][_0x3ae543]=_0x25ce3a?_0x421307(_0x25ce3a):{};break;}_0xe85343+=_0x2cad29;}}for(const _0x3d15ea of _0x32b301){_0x3d15ea['model']={};for(const _0x238f6c of _0x3d15ea['authors'])_0xd746c8['set'](_0x238f6c['id'],_0x238f6c);for(const _0x597d90 of _0xfcc9f7){const _0x46ddcd=_0x3d15ea['diffData'][_0x597d90]?_0x3d15ea['diffData'][_0x597d90]['insertions']:'[]',_0xd42814=_0x3d15ea['diffData'][_0x597d90]?_0x3d15ea['diffData'][_0x597d90]['deletions']:'[]';_0x3d15ea['model'][_0x597d90]={'insertions':this['_utils']['_makeModelFromViewString'](_0x46ddcd),'deletions':this['_utils']['_makeModelFromViewString'](_0xd42814)};}}for(const _0x3fa7a2 of _0xfcc9f7){let _0x2d88f4=null,_0x9c49f2=0x0;const _0x537ad4=new Map(Array['from'](_0x5a28d8['model'][_0x3fa7a2]['insertions']['markers'])['filter'](([_0x2ecd76])=>!_0x2ecd76['startsWith']('revision:')));let _0x4ad7a9=0x0;for(const _0x33dc07 of _0x32b301){const _0x18c9e9=this['_makeTape'](_0x33dc07['model'][_0x3fa7a2]['insertions']);_0x33dc07==_0x5a28d8?(_0x2d88f4=_0x18c9e9,_0x9c49f2=_0x2d88f4['length'],_0x2d88f4['forEach'](_0x4d3c51=>{_0x4d3c51['id']=_0x4ad7a9++;}),this['_processTape'](_0x2d88f4)):this['_markInsertions'](_0x2d88f4,_0x18c9e9);const _0x48de84=_0x2d88f4['filter'](_0x401f20=>!_0x401f20['isAdded'])['map'](_0xbb73c6=>_0xbb73c6['id']);let _0x3e3b4a=0x0;const _0x7dc2e2=this['_makeTape'](_0x33dc07['model'][_0x3fa7a2]['deletions']);_0x7dc2e2['forEach'](_0x2a6f21=>{_0x2a6f21['isRemoved']?_0x2a6f21['id']=_0x9c49f2++:_0x2a6f21['id']=_0x48de84[_0x3e3b4a++];}),this['_processTape'](_0x7dc2e2),this['_setDistance'](_0x2d88f4,'isAdded'),this['_setDistance'](_0x7dc2e2,'isRemoved'),_0x33dc07==_0x5a28d8&&this['_markMarkers'](_0x2d88f4,_0x537ad4),_0x2d88f4=this['_joinTapes'](_0x2d88f4,_0x7dc2e2),this['_refreshStartEndIndex'](_0x2d88f4),this['_setDistance'](_0x2d88f4,'isRemoved');}_0x2d88f4=_0x2d88f4['filter'](_0x52618f=>!(_0x52618f['isAdded']&&_0x52618f['isRemoved']));const _0x45a01b=new Map(_0x1c259c['model'][_0x3fa7a2]['deletions']['markers']),_0x52f9f0=new Set(_0x537ad4['keys']());for(const _0x2c9fd1 of _0x45a01b['keys']())_0x52f9f0['delete'](_0x2c9fd1);this['_markSuggestions'](_0x2d88f4,_0x52f9f0),this['_fixObsoleteTags'](_0x2d88f4),_0x2d88f4=this['_removeMissingPairs'](_0x2d88f4),_0x2d88f4=this['_markMismatchedRemovedTags'](_0x2d88f4),_0x2d88f4=this['_removeUnsupportedChanges'](_0x2d88f4);const {root:_0x3d63e0,changes:_0x63850b}=this['_makeModelFromTape'](_0x2d88f4,_0xd746c8,_0x3fa7a2);_0x3f9769['model'][_0x3fa7a2]=_0x3d63e0;const _0x8721b2=_0x34dfee['get'](_0x3fa7a2);if(_0x8721b2){const _0x1ca333=_0xd746c8['get'](_0x8721b2['userId']),_0x405fb4=new G({'author':_0x1ca333,'type':_0x8721b2['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x3fa7a2});_0x63850b['unshift'](_0x405fb4),_0x3f9769['attributes'][_0x3fa7a2]['revisionHistoryAttachChange']=_0x405fb4['id'];}_0x3f9769['changes']=_0x3f9769['changes']['concat'](_0x63850b);}return _0x3f9769;}['_markMarkers'](_0xe21b80,_0x58f137){for(let _0x19e899=0x0;_0x19e899<_0xe21b80['length'];_0x19e899++)for(const [_0x29cfa0,_0x30e1f4]of _0x58f137)!_0x30e1f4['isCollapsed']&&_0x30e1f4['start']['isEqual'](_0xe21b80[_0x19e899]['previousPosition'])&&_0xe21b80[_0x19e899]['markersStart']['push'](_0x29cfa0),_0x30e1f4['end']['isEqual'](_0xe21b80[_0x19e899]['nextPosition'])&&_0xe21b80[_0x19e899]['markersEnd']['push'](_0x29cfa0);}['_joinTapes'](_0x4a0a98,_0x5b640a){let _0x515bf9=[],_0x31d3e4=0x0,_0x4ed549=0x0;for(;_0x31d3e4<_0x4a0a98['length']||_0x4ed549<_0x5b640a['length'];){const _0xfe442=_0x4a0a98[_0x31d3e4]||{},_0x565efb=_0x5b640a[_0x4ed549]||{};if(_0xfe442['id']==_0x565efb['id'])_0x31d3e4++,_0x4ed549++,_0x515bf9['push'](_0xfe442);else{if(_0x565efb['isRemoved']&&_0xfe442['isAdded']){const {commonTape:_0x233d83,iEnd:_0x1e85b4,jEnd:_0x21438a}=this['_threeWayMerge'](_0x4a0a98,_0x31d3e4,_0x5b640a,_0x4ed549);_0x515bf9=_0x515bf9['concat'](_0x233d83),_0x31d3e4=_0x1e85b4,_0x4ed549=_0x21438a;}else _0x565efb['isRemoved']?(_0x4ed549++,_0x515bf9['push'](_0x565efb)):(_0x31d3e4++,_0x515bf9['push'](_0xfe442));}}return _0x515bf9;}['_markSuggestions'](_0x10b64b,_0x3a1656){const _0x58bf29=[];for(let _0x539035=0x0;_0x539035<_0x10b64b['length'];_0x539035++){for(let _0x409bae=0x0;_0x409bae<_0x10b64b[_0x539035]['markersStart']['length'];_0x409bae++){const _0x37ca3f=_0x10b64b[_0x539035]['markersStart'][_0x409bae];if(!_0x3a1656['has'](_0x37ca3f))continue;const {group:_0x572b44,type:_0x26f7ec,authorId:_0x403cbb}=_0x3e3eb3(_0x37ca3f);'revision-suggestion'!=_0x572b44||'insertion'!=_0x26f7ec&&'deletion'!=_0x26f7ec||(_0x58bf29['unshift']({'type':_0x26f7ec,'name':_0x37ca3f,'userId':_0x403cbb}),_0x10b64b[_0x539035]['markersStart']['splice'](_0x409bae,0x1),_0x409bae--);}_0x45006c(_0x10b64b[_0x539035]);for(let _0x448984=0x0;_0x448984<_0x10b64b[_0x539035]['markersEnd']['length'];_0x448984++){const _0x43de75=_0x10b64b[_0x539035]['markersEnd'][_0x448984];if(!_0x3a1656['has'](_0x43de75))continue;const {group:_0x4a5aa,type:_0x3c363b}=_0x3e3eb3(_0x43de75);if('revision-suggestion'!=_0x4a5aa||'insertion'!=_0x3c363b&&'deletion'!=_0x3c363b)continue;_0x10b64b[_0x539035]['markersEnd']['splice'](_0x448984,0x1),_0x448984--;const _0x3f8d76=_0x58bf29['findIndex'](_0x326498=>_0x326498['name']==_0x43de75);_0x3f8d76>-0x1&&_0x58bf29['splice'](_0x3f8d76,0x1);}}function _0x3e3eb3(_0x1fc994){const _0x247cb2=_0x1fc994['split'](':');return{'group':_0x247cb2[0x0],'type':_0x247cb2[0x1],'subType':_0x247cb2['length']>=0x5?_0x247cb2[0x2]:null,'id':_0x247cb2['length']<0x5?_0x247cb2[0x2]:_0x247cb2[0x3],'authorId':_0x247cb2['length']<0x5?_0x247cb2[0x3]:_0x247cb2[0x4],'markerCount':0x6==_0x247cb2['length']?_0x247cb2[0x5]:null};}function _0x45006c(_0x189aab){for(let _0x386621=0x0;_0x386621<_0x58bf29['length'];_0x386621++){if(_0x189aab['isAdded']&&'insertion'==_0x58bf29[_0x386621]['type']&&_0x189aab['isAdded']['userId']==_0x58bf29[_0x386621]['userId'])return _0x189aab['isAddSuggestion']=_0x58bf29[_0x386621],void delete _0x189aab['isAdded'];if(!_0x189aab['isAdded']&&!_0x189aab['isRemoved']&&'deletion'==_0x58bf29[_0x386621]['type'])return void(_0x189aab['isRemoveSuggestion']=_0x58bf29[_0x386621]);}}}['_setDistance'](_0x28bc8e,_0x1817db){let _0x4f9cd4=0x0,_0x320b8b=!0x1;const _0x3d9f94=new Map();for(const _0x351d43 of _0x28bc8e)_0x351d43[_0x1817db]?_0x320b8b&&(_0x4f9cd4++,_0x320b8b=!0x1):(_0x4f9cd4++,_0x320b8b=!0x0),_0x3d9f94['set'](_0x351d43['id'],_0x4f9cd4);for(let _0x3629e1=0x0;_0x3629e1<_0x28bc8e['length'];_0x3629e1++){if('isRemoved'==_0x1817db&&_0x28bc8e[_0x3629e1]['isAdded']||'isAdded'==_0x1817db&&_0x28bc8e[_0x3629e1]['isRemoved'])continue;if('text'==_0x28bc8e[_0x3629e1]['type']){_0x28bc8e[_0x3629e1]['distance']=0x0;continue;}const _0x32a84c=_0x3d9f94['get'](_0x28bc8e[_0x3629e1]['pairId']),_0x4bdb52=_0x3d9f94['get'](_0x28bc8e[_0x3629e1]['id']);_0x28bc8e[_0x3629e1]['distance']=_0x32a84c-_0x4bdb52;}}['_getRevisionsRange'](_0x50e78a,_0x1c6c0e,_0x41fb24=!0x1){const _0x17ce4c=[];let _0x544e1a=this['repository']['getIndex'](_0x50e78a),_0x4476b0=this['repository']['getIndex'](_0x1c6c0e);for(-0x1==_0x4476b0&&(_0x4476b0=this['repository']['_revisions']['length'],_0x41fb24=!0x1);_0x544e1a<_0x4476b0;)_0x17ce4c['push'](this['repository']['getRevision'](_0x544e1a)),_0x544e1a++;return _0x41fb24&&_0x17ce4c['push'](this['repository']['getRevision'](_0x544e1a)),_0x17ce4c;}['_threeWayMerge'](_0x1d2cc2,_0x38d6e0,_0xdf4e36,_0x2fdacb){const _0x550400=this['editor']['model']['schema'];let _0x781516=_0x38d6e0;for(;_0x1d2cc2[_0x781516]&&_0x1d2cc2[_0x781516]['isAdded'];)_0x781516++;let _0x2e6755=_0x2fdacb;for(;_0xdf4e36[_0x2e6755]&&_0xdf4e36[_0x2e6755]['isRemoved'];)_0x2e6755++;_0xe86e2(_0x1d2cc2,_0x38d6e0,_0x781516),_0xe86e2(_0xdf4e36,_0x2fdacb,_0x2e6755);const _0x46cd69=_0xdf4e36['slice'](_0x2fdacb,_0x2e6755)['concat'](_0x1d2cc2['slice'](_0x38d6e0,_0x781516));return _0x46cd69['sort']((_0x46ec7c,_0x5b29c7)=>_0x46ec7c['side']!=_0x5b29c7['side']?_0x46ec7c['side']-_0x5b29c7['side']:_0x46ec7c['level']!=_0x5b29c7['level']?_0x46ec7c['level']-_0x5b29c7['level']:_0x46ec7c['distance']!=_0x5b29c7['distance']?_0x5b29c7['distance']-_0x46ec7c['distance']:!!_0x46ec7c['isAdded']!=!!_0x5b29c7['isAdded']?-0x1==_0x46ec7c['side']||0x0==_0x46ec7c['side']?_0x46ec7c['isAdded']?-0x1:0x1:_0x46ec7c['isAdded']?0x1:-0x1:_0x46ec7c['index']-_0x5b29c7['index']),{'commonTape':_0x46cd69,'iEnd':_0x781516,'jEnd':_0x2e6755};function _0xe86e2(_0x5bd159,_0x28aadc,_0x117daa){let _0x4f3f4e=-0x1,_0x131d06=Number['POSITIVE_INFINITY'],_0xd70af=!0x0;for(let _0x342426=_0x28aadc;_0x342426<_0x117daa;_0x342426++)if(_0x550400['isInline'](_0x5bd159[_0x342426]['item'])||(_0xd70af=!0x1),_0x5bd159[_0x342426]['item']['startIndex']<_0x28aadc&&(_0x4f3f4e=_0x342426),_0x5bd159[_0x342426]['item']['endIndex']>=_0x117daa){_0x131d06=_0x342426;break;}_0xd70af&&(_0x4f3f4e=_0x117daa-0x1);for(let _0xb9463d=_0x28aadc;_0xb9463d<_0x117daa;_0xb9463d++)_0x5bd159[_0xb9463d]['side']=_0xb9463d<=_0x4f3f4e?-0x1:_0xb9463d<_0x131d06?0x0:0x1,_0x5bd159[_0xb9463d]['index']=_0xb9463d;let _0x26def2=0x0;for(let _0x256db4=_0x28aadc;_0x256db4<=_0x4f3f4e;_0x256db4++)0x0==_0x5bd159[_0x256db4]['distance']?_0x5bd159[_0x256db4]['level']=_0x26def2:(_0x26def2++,_0x5bd159[_0x256db4]['level']=_0x26def2,_0x26def2++);for(let _0x55d28d=_0x28aadc;_0x55d28d<_0x117daa;_0x55d28d++)0x0==_0x5bd159[_0x55d28d]['side']&&(_0x5bd159[_0x55d28d]['level']=_0x26def2);_0x26def2=0x0;for(let _0x10ee4f=_0x117daa-0x1;_0x10ee4f>=_0x131d06;_0x10ee4f--)0x0==_0x5bd159[_0x10ee4f]['distance']?_0x5bd159[_0x10ee4f]['level']=_0x26def2:(_0x26def2--,_0x5bd159[_0x10ee4f]['level']=_0x26def2,_0x26def2--);}}['_fixObsoleteTags'](_0x46c7fa){const _0x316f22=new Map(),_0x338e8d=this['editor']['model']['schema'];for(let _0x4fcd86=0x1;_0x4fcd86<_0x46c7fa['length'];_0x4fcd86++){let _0x2302f4,_0x4b1ccc,_0x4e7d63;const _0x4b9ed5=_0x46c7fa[_0x4fcd86],_0x31a690=_0x46c7fa[_0x4fcd86-0x1];if('text'==_0x4b9ed5['type'])continue;if(_0x4b9ed5['type']!=_0x31a690['type'])continue;if(!_0x338e8d['isBlock'](_0x31a690['item'])||_0x338e8d['isLimit'](_0x31a690['item']))continue;if(!_0x338e8d['isBlock'](_0x4b9ed5['item'])||_0x338e8d['isLimit'](_0x4b9ed5['item']))continue;if((_0x46c7fa[_0x4fcd86]['isAdded']||_0x46c7fa[_0x4fcd86]['isAddSuggestion'])&&_0x46c7fa[_0x4fcd86-0x1]['isRemoved'])_0x2302f4=_0x46c7fa[_0x4fcd86],_0x4b1ccc=_0x46c7fa[_0x4fcd86-0x1],_0x4e7d63=_0x4fcd86-0x1;else{if(!_0x46c7fa[_0x4fcd86]['isRemoved']||!_0x46c7fa[_0x4fcd86-0x1]['isAdded']&&!_0x46c7fa[_0x4fcd86-0x1]['isAddSuggestion'])continue;_0x2302f4=_0x46c7fa[_0x4fcd86-0x1],_0x4b1ccc=_0x46c7fa[_0x4fcd86],_0x4e7d63=_0x4fcd86;}const _0x57a2e3=_0x2302f4['level']==_0x4b1ccc['level'],_0x30e24d=Math['abs'](_0x2302f4['level'])<Math['abs'](_0x4b1ccc['level'])&&0x0==_0x4b1ccc['distance'];(_0x57a2e3||_0x30e24d)&&(_0x316f22['set'](_0x4b1ccc['id'],_0x2302f4['id']),_0x46c7fa['splice'](_0x4e7d63,0x1),_0x4fcd86--,_0x2302f4['isAdded']=!0x1);}for(let _0xcd2162=0x0;_0xcd2162<_0x46c7fa['length'];_0xcd2162++)_0x316f22['has'](_0x46c7fa[_0xcd2162]['pairId'])&&(_0x46c7fa[_0xcd2162]['pairId']=_0x316f22['get'](_0x46c7fa[_0xcd2162]['pairId']));}['_removeMissingPairs'](_0x4d981b){const _0xa038c5=new Set(_0x4d981b['map'](_0x33b078=>_0x33b078['id']));for(let _0x105b48=0x0;_0x105b48<_0x4d981b['length'];_0x105b48++)_0xa038c5['has'](_0x4d981b[_0x105b48]['pairId'])||0x0==_0x4d981b[_0x105b48]['distance']||(_0x4d981b[_0x105b48]['isIncorrect']=!0x0);return _0x4d981b['filter'](_0x33ac52=>!_0x33ac52['isIncorrect']);}['_markMismatchedRemovedTags'](_0x3f12b0){const _0xb7c2a2=new Set();for(let _0x5d2745=0x0;_0x5d2745<_0x3f12b0['length'];_0x5d2745++){if(_0xb7c2a2['has'](_0x3f12b0[_0x5d2745]['id'])&&_0x3f12b0[_0x5d2745]['isRemoved']&&(_0x3f12b0[_0x5d2745]['isIncorrect']=!0x0),_0x3f12b0[_0x5d2745]['isIncorrect'])continue;if(0x0==_0x3f12b0[_0x5d2745]['distance'])continue;if('elementStart'!=_0x3f12b0[_0x5d2745]['type'])continue;if(null==_0x3f12b0[_0x5d2745]['pairId'])continue;let _0x5167cb=_0x5d2745+0x1,_0xdf83d9=0x0;for(;_0x3f12b0[_0x5167cb]['id']!=_0x3f12b0[_0x5d2745]['pairId'];)'elementStart'==_0x3f12b0[_0x5167cb]['type']?_0xdf83d9++:'elementEnd'==_0x3f12b0[_0x5167cb]['type']&&_0xdf83d9--,_0x5167cb++;if(0x0!=_0xdf83d9){if(_0x3f12b0[_0x5d2745]['isRemoved'])_0x3f12b0[_0x5d2745]['isIncorrect']=!0x0;else{for(;_0x5167cb!=_0x5d2745;)_0x3f12b0[_0x5167cb]['isRemoved']&&0x0!=_0x3f12b0[_0x5167cb]['distance']&&(_0x3f12b0[_0x5167cb]['isIncorrect']=!0x0,_0xb7c2a2['add'](_0x3f12b0[_0x5167cb]['pairId'])),_0x5167cb--;}}}return _0x3f12b0['filter'](_0x150ab5=>!_0x150ab5['isIncorrect']);}['_removeUnsupportedChanges'](_0x313b8c){const _0x193133=this['editor']['model']['schema'];for(let _0x5d608b=0x0;_0x5d608b<_0x313b8c['length'];_0x5d608b++){if(!(_0x313b8c[_0x5d608b]['isAdded']||_0x313b8c[_0x5d608b]['isAddSuggestion']||_0x313b8c[_0x5d608b]['isRemoved']||_0x313b8c[_0x5d608b]['isRemoveSuggestion']))continue;if(0x0==_0x313b8c[_0x5d608b]['distance'])continue;const _0x4cc059=_0x313b8c[_0x5d608b]['item'];_0x193133['isBlock'](_0x4cc059)||_0x193133['isLimit'](_0x4cc059)||(_0x313b8c[_0x5d608b]['isAdded']&&delete _0x313b8c[_0x5d608b]['isAdded'],_0x313b8c[_0x5d608b]['isAddSuggestion']&&delete _0x313b8c[_0x5d608b]['isAddSuggestion'],_0x313b8c[_0x5d608b]['isRemoveSuggestion']&&delete _0x313b8c[_0x5d608b]['isRemoveSuggestion'],_0x313b8c[_0x5d608b]['isRemoved']&&(_0x313b8c[_0x5d608b]['isIncorrect']=!0x0));}return _0x313b8c['filter'](_0x43cd4c=>!_0x43cd4c['isIncorrect']);}['_makeModelFromTape'](_0x271fca,_0x18747d,_0x566749){const _0x393bb5=new _0x223a9b(),_0xe9ce18=[],_0x1654e0=new Map(),_0x1157cf=this['editor']['model'],_0x5277b4=_0x1157cf['schema'],_0x4812b3=[_0x393bb5],_0x40ff8c={},_0x4bdf33={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x148544=null;const _0x8cc8c4=[0x0];for(let _0x11e42d=0x0;_0x11e42d<_0x271fca['length'];_0x11e42d++)if('elementStart'===_0x271fca[_0x11e42d]['type']){_0x271fca[_0x11e42d]['previousPosition']=_0x1157cf['createPositionFromPath'](_0x393bb5,_0x8cc8c4);const _0x152722=new _0x55a91c(_0x271fca[_0x11e42d]['item']['name'],_0x271fca[_0x11e42d]['item']['getAttributes']());_0x4812b3[0x0]['_appendChild'](_0x152722),_0x8cc8c4['push'](0x0),_0x4812b3['unshift'](_0x152722),_0x271fca[_0x11e42d]['nextPosition']=_0x1157cf['createPositionFromPath'](_0x393bb5,_0x8cc8c4);}else'elementEnd'===_0x271fca[_0x11e42d]['type']?(_0x4812b3['shift'](),_0x271fca[_0x11e42d]['previousPosition']=_0x1157cf['createPositionFromPath'](_0x393bb5,_0x8cc8c4),_0x8cc8c4['pop'](),_0x8cc8c4[_0x8cc8c4['length']-0x1]++,_0x271fca[_0x11e42d]['nextPosition']=_0x1157cf['createPositionFromPath'](_0x393bb5,_0x8cc8c4)):(_0x271fca[_0x11e42d]['previousPosition']=_0x1157cf['createPositionFromPath'](_0x393bb5,_0x8cc8c4),_0x148544?_0x148544['_data']+=_0x271fca[_0x11e42d]['item']['data']:_0x148544=new _0x52cb99(_0x271fca[_0x11e42d]['item']['data'],_0x271fca[_0x11e42d]['item']['getAttributes']()),_0x271fca[_0x11e42d+0x1]&&'text'===_0x271fca[_0x11e42d+0x1]['type']&&_0x2702e0(_0x148544,_0x271fca[_0x11e42d+0x1]['item'])||(_0x4812b3[0x0]['_appendChild'](_0x148544),_0x148544=null),_0x8cc8c4[_0x8cc8c4['length']-0x1]+=_0x271fca[_0x11e42d]['item']['offsetSize'],_0x271fca[_0x11e42d]['nextPosition']=_0x1157cf['createPositionFromPath'](_0x393bb5,_0x8cc8c4));for(let _0x4f5745=0x0;_0x4f5745<_0x271fca['length'];_0x4f5745++){const _0x5e111c=_0x271fca[_0x4f5745]['previousPosition'],_0x20fa40=_0x271fca[_0x4f5745]['nextPosition'];for(const _0x57a9bc of _0x271fca[_0x4f5745]['markersStart'])_0x1654e0['set'](_0x57a9bc,{'start':_0x5e111c,'end':null});_0x5b16e6('isRemoveSuggestion',_0x4f5745,_0x5e111c,_0x20fa40),_0x5b16e6('isAddSuggestion',_0x4f5745,_0x5e111c,_0x20fa40),_0x5b16e6('isRemoved',_0x4f5745,_0x5e111c,_0x20fa40),_0x5b16e6('isAdded',_0x4f5745,_0x5e111c,_0x20fa40);for(const _0x294d45 of _0x271fca[_0x4f5745]['markersEnd']){const _0x55375c=_0x1654e0['get'](_0x294d45);_0x55375c?_0x55375c['end']=_0x20fa40:_0x1654e0['set'](_0x294d45,{'start':_0x20fa40,'end':_0x20fa40});}}for(const [_0xfc6e29,_0x5a805e]of _0x1654e0){const _0x1d905b=this['editor']['model']['createRange'](_0x5a805e['start'],_0x5a805e['end']);_0x393bb5['markers']['set'](_0xfc6e29,_0x1d905b);}return _0xe9ce18['sort']((_0x78b0f9,_0x131021)=>{const _0x46fe2f=_0x393bb5['markers']['get']('revision:'+_0x78b0f9['id']),_0xc97846=_0x393bb5['markers']['get']('revision:'+_0x131021['id']);return _0x46fe2f['start']['isBefore'](_0xc97846['start'])?-0x1:_0x46fe2f['start']['isAfter'](_0xc97846['start'])?0x1:_0x46fe2f['end']['isBefore'](_0xc97846['end'])?-0x1:_0x46fe2f['end']['isAfter'](_0xc97846['end'])?0x1:'add'===_0x78b0f9['type']?-0x1:0x1;}),{'root':_0x393bb5,'changes':_0xe9ce18};function _0x5b16e6(_0x46564a,_0x4743eb,_0x3222f,_0x2d4123){const _0x4680c7=!!_0x271fca[_0x4743eb][_0x46564a],_0x52ad52=_0x4680c7?_0x271fca[_0x4743eb][_0x46564a]['userId']:null,_0x1dbaf1=_0x4743eb===_0x271fca['length']-0x1,_0x187344=_0x4bdf33[_0x46564a][0x0],_0x1967f0=_0x5277b4['isObject'](_0x271fca[_0x4743eb]['item']);!_0x40ff8c[_0x46564a]&&_0x4680c7?_0x40ff8c[_0x46564a]={'start':_0x3222f,'tapeItem':_0x271fca[_0x4743eb],'userId':_0x52ad52,'type':_0x46564a}:_0x40ff8c[_0x46564a]&&!_0x4680c7?(_0x40ff8c[_0x46564a]['end']=_0x3222f,_0x2afcf4(_0x40ff8c[_0x46564a]),_0x40ff8c[_0x46564a]=null):_0x40ff8c[_0x46564a]&&_0x4680c7&&_0x40ff8c[_0x46564a]['userId']!==_0x52ad52&&(_0x40ff8c[_0x46564a]['end']=_0x3222f,_0x187344&&_0x187344['userId']===_0x40ff8c[_0x46564a]['userId']||_0x2afcf4(_0x40ff8c[_0x46564a]),_0x40ff8c[_0x46564a]={'start':_0x3222f,'tapeItem':_0x271fca[_0x4743eb],'userId':_0x52ad52,'type':_0x46564a}),_0x40ff8c[_0x46564a]&&_0x1967f0&&('elementStart'!==_0x271fca[_0x4743eb]['type']||_0x187344&&_0x187344['userId']===_0x52ad52||_0x4bdf33[_0x46564a]['unshift']({'userId':_0x52ad52,'object':_0x271fca[_0x4743eb]['item'],'change':_0x40ff8c[_0x46564a]}),'elementEnd'===_0x271fca[_0x4743eb]['type']&&_0x187344&&_0x187344['object']===_0x271fca[_0x4743eb]['item']&&(_0x4bdf33[_0x46564a]['shift'](),_0x40ff8c[_0x46564a]=_0x187344['change'])),_0x40ff8c[_0x46564a]&&_0x1dbaf1&&(_0x40ff8c[_0x46564a]['end']=_0x2d4123,_0x2afcf4(_0x40ff8c[_0x46564a]),_0x40ff8c[_0x46564a]=null);}function _0x2afcf4({start:_0x53dd59,end:_0x5d21de,tapeItem:_0x12cd54,userId:_0x54ba40,type:_0x36c0b6}){const _0x274ea2=_0x12cd54['item'],_0x2df3aa=_0x1157cf['schema']['isBlock'](_0x274ea2)&&!_0x1157cf['schema']['isLimit'](_0x274ea2),_0x2d6a72=_0x53dd59['nodeAfter']==_0x5d21de['parent']&&_0x5d21de['isAtStart'];if(_0x2df3aa&&_0x2d6a72)return;const _0x325999=_0x1157cf['createRange'](_0x53dd59,_0x5d21de),_0x3b1912=_0x18747d['get'](_0x54ba40),_0x53f9dc=new G({'author':_0x3b1912,'type':'isAdded'==_0x36c0b6||'isAddSuggestion'==_0x36c0b6?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x36c0b6||'isRemoveSuggestion'==_0x36c0b6},'createdAt':new Date(),'rootName':_0x566749});_0xe9ce18['push'](_0x53f9dc),_0x393bb5['markers']['set']('revision:'+_0x53f9dc['id'],_0x325999);}function _0x2702e0(_0x465f7e,_0x2dbf0d){const _0x4a6a7d=_0x465f7e['getAttributes'](),_0x2c0fa6=_0x2dbf0d['getAttributes']();for(const _0x53f0a4 of _0x4a6a7d){if(_0x53f0a4[0x1]!==_0x2dbf0d['getAttribute'](_0x53f0a4[0x0]))return!0x1;_0x2c0fa6['next']();}return _0x2c0fa6['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x5ede8d=>{const _0x889ee=_0x5ede8d['markerName']['split'](':')[0x1],_0xaf0aa8=this['_getChangeFromId'](_0x889ee);if(!_0xaf0aa8)return null;const _0x5195f6='add'==_0xaf0aa8['type']?'insertion':'deletion',_0x33d9f7=['ck-suggestion-marker','ck-suggestion-marker-'+_0x5195f6];return _0xaf0aa8['data']['isSuggestion']&&_0x33d9f7['push']('ck-suggestion-marker-'+_0x5195f6+'-new'),this['activeChange']==_0xaf0aa8&&_0x33d9f7['push']('ck-suggestion-marker--active'),{'classes':_0x33d9f7,'attributes':{'data-change-id':_0x889ee}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x2c67ae=>{_0x2c67ae['on']('element:pre',(_0xd44a1,_0x4036c7,_0x34cfbf)=>{const _0x59bcd7=_0x4036c7['viewItem']['getChild'](0x0);if(!_0x59bcd7||!_0x59bcd7['is']('element','code'))return;if(!_0x34cfbf['consumable']['consume'](_0x59bcd7,{'attributes':['vid_start','vid_end']}))return;const _0x11a82d=_0x4036c7['modelRange']['start']['nodeAfter'];_0x34cfbf['writer']['setAttribute']('vid_start',_0x59bcd7['getAttribute']('vid_start'),_0x11a82d),_0x34cfbf['writer']['setAttribute']('vid_end',_0x59bcd7['getAttribute']('vid_end'),_0x11a82d);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x255e24=>{_0x255e24['on']('element',(_0x12fd0b,_0x71a065,_0x50cd27)=>{if(!_0x50cd27['consumable']['consume'](_0x71a065['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x71a065['modelRange']['isCollapsed'])return;const _0xc0c8a3=_0x71a065['modelRange']['start']['nodeAfter'];_0xc0c8a3['hasAttribute']('vid_start')||_0xc0c8a3['hasAttribute']('vid')||(_0x50cd27['writer']['setAttribute']('vid_start',_0x71a065['viewItem']['getAttribute']('vid_start'),_0xc0c8a3),_0x50cd27['writer']['setAttribute']('vid_end',_0x71a065['viewItem']['getAttribute']('vid_end'),_0xc0c8a3));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x3a4b43=>_0x3a4b43['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x4bae47,[,_0x15e87b])=>{['vid_start','vid_end','vid']['includes'](_0x15e87b)&&(_0x4bae47['return']=!0x0,_0x4bae47['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x137a50=>{_0x137a50['on']('attribute:vid',(_0x422a42,_0x3b18ed,_0x266a4a)=>{if('\x20'!=_0x3b18ed['item']['data']||_0x3b18ed['item']['parent']['maxOffset']>0x1)return;if(!_0x266a4a['consumable']['consume'](_0x3b18ed['item'],_0x422a42['name']))return;const _0x1c49bc=_0x266a4a['writer'],_0x38bfd9=_0x266a4a['mapper']['toViewRange'](_0x3b18ed['range']);_0x1c49bc['wrap'](_0x38bfd9,_0x1c49bc['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x1ef8b5){const _0x28f35a=_0x1ef8b5['plugins']['get']('RevisionViewer');return(_0x180c12,_0x55f652,_0xdba106)=>{const _0x5974b2=_0x55f652['markerName']['split'](':')[0x1],_0x4585ad=_0x28f35a['_getChangeFromId'](_0x5974b2);if(!_0x4585ad)return null;const _0x2fca21='add'==_0x4585ad['type']?'split':'merge';if(!_0xdba106['consumable']['test'](_0x55f652['markerRange'],_0x180c12['name']))return;const _0x1fd6d1=_0x55f652['markerRange']['getWalker'](),_0x2a2327=_0x55f652['markerRange']['start'],_0x4c4ef5=_0x1ef8b5['model']['schema'];let _0x47252e=null,_0x286d48=null,_0x3e3a3f=!0x1,_0x4889c4=!0x1;for(const _0x5b5cf0 of _0x1fd6d1){const _0x41045d=_0x5b5cf0['item'];_0x3e3a3f=_0x3e3a3f||_0x4c4ef5['isContent'](_0x41045d);const _0x1cd766=_0xdba106['mapper']['toViewElement'](_0x41045d);if(_0x1cd766&&_0x1cd766['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5b5cf0['type']&&(_0x4c4ef5['isBlock'](_0x41045d)&&!_0x4c4ef5['isLimit'](_0x41045d)&&(_0x41045d['nextSibling']||_0x2a2327['isAtEnd']?_0x47252e&&_0x47252e['parent']==_0x41045d||(_0x47252e=_0x41045d,_0x32d26b(_0x5b5cf0['previousPosition']),_0x4889c4=!0x0):_0x286d48=_0x286d48||_0x5b5cf0['previousPosition']));}function _0x32d26b(_0x58f02f){const _0x5a54ec=_0xdba106['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2fca21}),_0x41850b=_0xdba106['mapper']['toViewPosition'](_0x58f02f);_0x4585ad['data']['isSuggestion']&&_0xdba106['writer']['addClass']('ck-suggestion-marker-'+_0x2fca21+'-new',_0x5a54ec),_0x28f35a['activeChange']==_0x4585ad&&_0xdba106['writer']['addClass']('ck-suggestion-marker--active',_0x5a54ec),_0xdba106['writer']['insert'](_0x41850b,_0x5a54ec),_0xdba106['mapper']['bindElementToMarker'](_0x5a54ec,_0x55f652['markerName']);}_0x3e3a3f||_0x4889c4||!_0x286d48||_0x32d26b(_0x286d48);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x1a8997,_0x228dfb,_0x5f1a04)=>{const _0x308bc5=_0x5f1a04['mapper']['markerNameToElements'](_0x228dfb['markerName']);if(_0x308bc5){for(const _0x2edc36 of _0x308bc5)(_0x2edc36['hasClass']('ck-suggestion-marker-split')||_0x2edc36['hasClass']('ck-suggestion-marker-merge'))&&(_0x5f1a04['mapper']['unbindElementFromMarkerName'](_0x2edc36,_0x228dfb['markerName']),_0x5f1a04['writer']['remove'](_0x2edc36));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x45990b,_0x39ffc8,_0x46ccfa)=>{const _0x571a95=_0x39ffc8['markerName']['split'](':')[0x1],_0x5fce5d=this['_getChangeFromId'](_0x571a95);if(!_0x5fce5d)return null;const _0x58b7b0='add'==_0x5fce5d['type']?'split':'merge';if(_0x46ccfa['consumable']['test'](_0x39ffc8['markerRange'],_0x45990b['name']))for(const _0x3867a4 of _0x39ffc8['markerRange']['getItems']()){if(!_0x3867a4['is']('element','softBreak'))continue;const _0x2bcf0c=_0x46ccfa['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x58b7b0}),_0x3e564f=_0x46ccfa['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x3867a4));_0x5fce5d['data']['isSuggestion']&&_0x46ccfa['writer']['addClass']('ck-suggestion-marker-'+_0x58b7b0+'-new',_0x2bcf0c),this['activeChange']==_0x5fce5d&&_0x46ccfa['writer']['addClass']('ck-suggestion-marker--active',_0x2bcf0c),_0x46ccfa['writer']['insert'](_0x3e564f,_0x2bcf0c),_0x46ccfa['mapper']['bindElementToMarker'](_0x2bcf0c,_0x39ffc8['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x50b2d9=>{for(const _0x3bb564 of this['editor']['model']['document']['getRootNames']()){const _0x2ca2fc=this['editor']['model']['document']['getRoot'](_0x3bb564),_0x788165=this['editor']['editing']['view']['document']['getRoot'](_0x3bb564);if(_0x788165){const _0x2a6971=_0x2ca2fc['getAttribute']('revisionHistoryAttachChange');if(_0x50b2d9['removeAttribute']('data-change-id',_0x788165),_0x50b2d9['removeClass']('ck-revision-history-root-add',_0x788165),_0x50b2d9['removeClass']('ck-revision-history-root-remove',_0x788165),_0x50b2d9['removeClass']('ck-revision-history-root--active',_0x788165),_0x2a6971){const _0x123af0=this['_getChangeFromId'](_0x2a6971);if(!_0x123af0)return null;_0x50b2d9['setAttribute']('data-change-id',_0x2a6971,_0x788165),_0x50b2d9['addClass']('ck-revision-history-root-'+_0x123af0['type'],_0x788165),this['activeChange']==_0x123af0&&_0x50b2d9['addClass']('ck-revision-history-root--active',_0x788165);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x1c11a1=>'revision-comment:'+_0x1c11a1,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x4893d8=>'revision-suggestion:'+_0x4893d8,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x5c7ea2=>({'name':'suggestion:'+_0x5c7ea2,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x1e5009=>{const _0x22e0d9=_0x1e5009['markerName']['split'](':')[0x1];return'insertion'!=_0x22e0d9&&'deletion'!=_0x22e0d9?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x22e0d9]};}}),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',(_0x2bd03b,_0x3d1d41,_0x3f0bf9)=>{const _0x3d9ba6=_0x3f0bf9['mapper']['markerNameToElements'](_0x3d1d41['markerName']);if(_0x3d9ba6){for(const _0x2dd2c5 of _0x3d9ba6)_0x2dd2c5['is']('uiElement')&&(_0x3f0bf9['mapper']['unbindElementFromMarkerName'](_0x2dd2c5,_0x3d1d41['markerName']),_0x3f0bf9['writer']['remove'](_0x2dd2c5));}},{'priority':'high'});}['_getChangeFromId'](_0x50351e){return this['_changeIdToChange']['get'](_0x50351e);}['_getViewForChange'](_0x12b0fe){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x12b0fe),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x2f3d21,_0x2aa729,_0x2e020a,_0x33c650)=>{_0x33c650&&this['_balloon']['remove'](_0x33c650),_0x2e020a&&(this['_balloon']['add']({'view':_0x2e020a,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x375fb2=this['editor']['editing'],_0x7f1325=this['_getChangeFromId'](_0x2e020a['changeId']);let _0x41c876;if(_0x7f1325['data']['isOnRoot']){const _0x107def=_0x375fb2['view']['getDomRoot'](_0x7f1325['rootName']);_0x41c876=Array['from'](_0x107def['getClientRects']());}else{const _0x6ae6b3=this['editor']['model']['markers']['get']('revision:'+_0x2e020a['changeId']);_0x41c876=Array['from'](_0x375fb2['mapper']['markerNameToElements'](_0x6ae6b3['name']))['map'](_0x4616c6=>_0x375fb2['view']['domConverter']['mapViewToDom'](_0x4616c6))['map'](_0x2b0ea0=>Array['from'](_0x2b0ea0['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x41c876[0x0];return _0x41c876['find'](_0x86a0c3=>_0x86a0c3['top']-0x3<=this['_activeViewTarget']['y']&&_0x86a0c3['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x86a0c3['left']-0x3<=this['_activeViewTarget']['x']&&_0x86a0c3['right']+0x3>=this['_activeViewTarget']['x'])||_0x41c876[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x300221,_0x42c751,_0x55ba71,_0x5b263f)=>{this['activeView']=_0x55ba71?this['_getViewForChange'](_0x55ba71):null,this['editor']['model']['change'](()=>{const _0x139988=this['editor']['editing'];_0x5b263f&&(_0x5b263f['data']['isOnRoot']?_0x139988['view']['change'](_0x3d292e=>{_0x3d292e['removeClass']('ck-revision-history-root--active',_0x139988['view']['document']['getRoot'](_0x5b263f['rootName']));}):_0x139988['reconvertMarker']('revision:'+_0x5b263f['id'])),_0x55ba71&&(_0x55ba71['data']['isOnRoot']?_0x139988['view']['change'](_0x42afdb=>{_0x42afdb['addClass']('ck-revision-history-root--active',_0x139988['view']['document']['getRoot'](_0x55ba71['rootName']));}):_0x139988['reconvertMarker']('revision:'+_0x55ba71['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x516a58,_0x168108)=>{if(this['activeChange'])return;const _0x135ec5=this['_findChangeIdFromDomTarget'](_0x168108['target']),_0x41ce77=this['_changeIdToChange']['get'](_0x135ec5);_0x41ce77?(this['_activeViewTarget']={'x':_0x168108['domEvent']['x'],'y':_0x168108['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x41ce77)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x50710f,_0x2c5826)=>{const _0xeca34d=this['_findChangeIdFromDomTarget'](_0x2c5826['target']),_0x3d8a02=this['_changeIdToChange']['get'](_0xeca34d);_0x3d8a02?(this['_activeViewTarget']={'x':_0x2c5826['domEvent']['x'],'y':_0x2c5826['domEvent']['y']},_0x3d8a02===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x3d8a02):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x30e361){do{const _0x436276=_0x30e361['getAttribute']('data-change-id');if(_0x436276)return _0x436276;_0x30e361=_0x30e361['parent'];}while(_0x30e361);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x41cdb1=>{for(const _0x4b5ba7 of this['editor']['model']['markers'])_0x41cdb1['removeMarker'](_0x4b5ba7);});}}function Q(_0x17c4ec,_0x2dd8a4){return(_0x379b55,_0x33b6cb,_0x16ff80)=>{if(!_0x16ff80['consumable']['test'](_0x33b6cb['markerRange'],_0x379b55['name']))return;const _0xd4e2d=_0x33b6cb['markerRange']['getWalker'](),_0x3edf95=_0x33b6cb['markerRange']['start'],_0x134b3a=_0x17c4ec['model']['schema'];let _0x3e30ed=null,_0x5be7db=null,_0x11ca63=!0x1,_0x219e1f=!0x1;for(const _0x1ae183 of _0xd4e2d){const _0xbd4de1=_0x1ae183['item'];_0x11ca63=_0x11ca63||_0x134b3a['isContent'](_0xbd4de1);const _0x20469f=_0x16ff80['mapper']['toViewElement'](_0xbd4de1);if(_0x20469f&&_0x20469f['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1ae183['type']&&(_0x134b3a['isBlock'](_0xbd4de1)&&!_0x134b3a['isLimit'](_0xbd4de1)&&(_0xbd4de1['nextSibling']||_0x3edf95['isAtEnd']?_0x3e30ed&&_0x3e30ed['parent']==_0xbd4de1||(_0x3e30ed=_0xbd4de1,_0x4b927e(_0x1ae183['previousPosition']),_0x219e1f=!0x0):_0x5be7db=_0x5be7db||_0x1ae183['previousPosition']));}function _0x4b927e(_0x2309ae){const _0xccef1=_0x16ff80['mapper']['toViewPosition'](_0x2309ae),_0x30027a=_0x16ff80['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x2dd8a4});_0x16ff80['writer']['insert'](_0xccef1,_0x30027a),_0x16ff80['mapper']['bindElementToMarker'](_0x30027a,_0x33b6cb['markerName']);}_0x11ca63||_0x219e1f||!_0x5be7db||_0x4b927e(_0x5be7db);};}class nt extends _0x113a4d{constructor(_0x13ae04){super(_0x13ae04);const _0x4ab870=_0x13ae04['plugins']['get'](l);this['affectsData']=!0x1,this['listenTo'](_0x4ab870,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x4ab870,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x14249f=this['editor'],_0x122b4c=_0x14249f['plugins']['get'](l),_0x3a6c41=_0x122b4c['isReady']?_0x122b4c['diff']['newRevisionId']:null;_0x14249f['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x3a6c41);}['refresh'](){const {isReady:_0x3bebd3,isEnabled:_0x2b086b,repository:_0x61e83f,diff:_0x218288}=this['editor']['plugins']['get'](l),_0x4823c2=_0x218288&&_0x61e83f['getLaterVisibleRevision'](_0x218288['newRevisionId']);this['isEnabled']=_0x3bebd3&&_0x2b086b&&Boolean(_0x4823c2);}}class rt extends _0x113a4d{['_step'];constructor(_0x22dcd0,{direction:_0x2087e0}){super(_0x22dcd0);const _0x4e4d46=_0x22dcd0['plugins']['get'](l);this['affectsData']=!0x1,this['_step']='forward'===_0x2087e0?0x1:-0x1,this['listenTo'](_0x4e4d46,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x4e4d46,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x4e4d46,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x4a644c=this['editor'],_0xe5775=_0x4a644c['plugins']['get'](l),{isNavigationMode:_0x349823,currentChangeNumber:_0x4d8472}=_0xe5775;let _0x36a5a9;if(_0xe5775['activeChange']=_0x349823?_0xe5775['diff']['changes']['get'](_0x4d8472+this['_step']):_0xe5775['diff']['changes']['first'],_0xe5775['activeChange']['data']['isOnRoot'])_0x36a5a9=_0x4a644c['editing']['view']['getDomRoot'](_0xe5775['activeChange']['rootName']);else{const _0x147256=_0x4a644c['model']['markers']['get']('revision:'+_0xe5775['activeChange']['id']);_0x36a5a9=_0x26b1f0(_0x4a644c['editing'],_0x147256);}_0x597347({'target':_0x36a5a9,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x3eb0c5,currentChangeNumber:_0x58cf85,numberOfChanges:_0xe3b886,isReady:_0x36aa09,isEnabled:_0x50ff43}=this['editor']['plugins']['get'](l);this['isEnabled']=!!(_0x50ff43&&_0x36aa09&&_0xe3b886)&&(!_0x3eb0c5||(0x1===this['_step']?_0x58cf85<_0xe3b886-0x1:_0x58cf85>0x0));}}class fi extends _0x5bb4f2{constructor(_0xb99dff){super(_0xb99dff);const _0x137616=this['bindTemplate'],_0x4f6540=new _0x1cd6d8(_0xb99dff),_0x5e913d=new _0x1cd6d8(_0xb99dff);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',(_0x46a83a,_0x37e72d)=>_0x46a83a&&_0x37e72d>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x5374e4,_0x16bde4,_0x536364,_0x4d0d6a)=>{if(!_0x5374e4)return R(_0xb99dff,'Loading...');if(!_0x536364)return R(_0xb99dff,'No\x20changes');const _0x1065d3=R(_0xb99dff,'NUMBER_OF_CHANGES',_0x536364);return _0x4d0d6a?R(_0xb99dff,'X_OF_Y_CHANGES',[_0x16bde4+0x1,_0x536364]):_0x1065d3;}),_0x4f6540['set']({'label':R(_0xb99dff,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x4daf79}),_0x5e913d['set']({'label':R(_0xb99dff,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x1105ce}),_0x4f6540['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x5e913d['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x4f6540['on']('execute',()=>this['fire']('execute','backward')),_0x5e913d['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',_0x137616['if']('_isStatusLabelVisible','ck-hidden',_0x578f29=>!_0x578f29)]},'children':[{'text':_0x137616['to']('isNavigationMode',_0x4d0991=>_0x4d0991?R(_0xb99dff,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0xb99dff,'Total')+':\x20')}]},{'text':_0x137616['to']('_statusText')}]},new _0x4e6708(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x4f6540,_0x5e913d]}]});}}const ge='ck-editor__editable__loading-overlay';class bi extends _0x5b4548{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x388b13=this['editor']['editing']['view'];_0x388b13['change'](_0x2c646a=>{for(const _0x1dcf73 of _0x388b13['document']['roots'])_0x2c646a['addClass'](ge,_0x1dcf73);});}['hide'](){const _0x1cb728=this['editor']['editing']['view'];_0x1cb728['change'](_0x5a28d2=>{for(const _0x2b5ee0 of _0x1cb728['document']['roots'])_0x5a28d2['removeClass'](ge,_0x2b5ee0);});}}class u extends _0x5b4548{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,bi];}['init'](){const _0x3f6c7c=this['editor'],_0x43ce2e=_0x3f6c7c['plugins']['get'](l),_0x1870a9=_0x3f6c7c['plugins']['get'](bi);_0x3f6c7c['ui']['componentFactory']['add']('exitToEditing',_0x578bb2=>{const _0x589f7d=new _0x1cd6d8(_0x578bb2);return _0x589f7d['set']({'label':R(_0x578bb2,'Back\x20to\x20editing'),'icon':_0x28316f,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x589f7d,'execute',()=>{_0x3f6c7c['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x589f7d;}),_0x3f6c7c['ui']['componentFactory']['add']('restoreRevision',_0x326398=>{const _0x5325df=new _0x1cd6d8(_0x326398);return _0x5325df['set']({'label':R(_0x326398,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x5325df['bind']('isEnabled')['to'](_0x3f6c7c['commands']['get']('restoreRevision')),this['listenTo'](_0x5325df,'execute',()=>_0x3f6c7c['execute']('restoreRevision')),_0x5325df;}),_0x3f6c7c['ui']['componentFactory']['add']('changesNavigation',_0x255a18=>{const _0x4e974c=new fi(_0x255a18),_0x553036=_0x3f6c7c['commands']['get']('showPreviousChange'),_0x302993=_0x3f6c7c['commands']['get']('showNextChange');return _0x4e974c['bind']('isBackwardNavigationEnabled')['to'](_0x553036,'isEnabled'),_0x4e974c['bind']('isForwardNavigationEnabled')['to'](_0x302993,'isEnabled'),_0x4e974c['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x43ce2e),this['listenTo'](_0x4e974c,'execute',(_0x1c33e8,_0x3b919d)=>{_0x3f6c7c['execute']('forward'===_0x3b919d?'showNextChange':'showPreviousChange');}),_0x4e974c;}),_0x1870a9['show'](),_0x43ce2e['on']('change:isReady',(_0x3a40eb,_0x2b3794,_0x25085b)=>{_0x25085b?_0x1870a9['hide']():_0x1870a9['show']();});}}class hi extends et{['_resizeObserver']=null;constructor(_0x4a269f,_0x549075){super(_0x4a269f,_0x549075);const _0x33d0ec=this['bindTemplate'];this['set']({'label':R(_0x4a269f,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x4a269f,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x33d0ec['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 _0x1db913=this['fieldView']['element'];this['_tooltipString']=_0x1db913['scrollWidth']>_0x1db913['clientWidth']&&_0x1db913['value']||'';}}class ni extends _0x5bb4f2{constructor(_0x59df0f,_0xe98490,_0x45ec0a){super(_0x59df0f);const _0x4ebba=new _0x5d2f47();_0x4ebba['set']({'content':_0x34d935,'viewBox':'0\x200\x2011\x2010'});const _0x5bbaa2=['ck','ck-revision-history-sidebar__revision-author'];_0x45ec0a&&_0x5bbaa2['push']('ck-revision-history-sidebar__revision-author_creator');const _0x46c871=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x59df0f,_0x45ec0a?'Revision\x20creator':'Revision\x20author')},'children':[_0x4ebba,_0xe98490['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x5bbaa2},'children':_0x46c871});}}function ci(_0x225802,_0x114dbe){const _0x3e4f68=_0x225802['bindTemplate'],_0x590418=_0x225802['locale'],_0x2b4c18=_0x46906e(_0x590418);_0x2b4c18['panelPosition']='sw';const _0x40f033=function(_0x1e3a89,_0x36da9e){const _0x5059a3=function(_0x4aa138,_0x38f0eb){const _0x8a56b4=_0x4aa138['locale'],_0x1d1239={'Compare\x20against\x20selected':R(_0x8a56b4,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x8a56b4,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x8a56b4,'Restore\x20this\x20revision')};return _0x38f0eb['map'](_0x1b0cfc=>{const _0x2a8bd1=_0x1d1239[_0x1b0cfc['name']];return _0x2a8bd1&&_0x2a8bd1!==_0x1b0cfc['name']&&(_0x1b0cfc['name']=_0x2a8bd1),_0x1b0cfc;});}(_0x1e3a89,_0x36da9e),_0x5d12d6=new _0x5ed036();for(const _0x3d32be of _0x5059a3){const _0x5457d7={'type':'button','model':new to({'label':_0x3d32be['name'],'class':_0x3d32be['class'],'withText':!0x0,'role':'menuitem','_action':_0x3d32be['action']})};_0x5457d7['model']['bind']('isEnabled')['to'](_0x1e3a89,'isActionsDropdownOpen',_0x2a5efc=>'function'!=typeof _0x3d32be['isEnabled']||(!_0x2a5efc||_0x3d32be['isEnabled'](_0x1e3a89))),_0x5d12d6['add'](_0x5457d7);}return _0x5d12d6;}(_0x225802,_0x114dbe);return _0x225802['bind']('isActionsDropdownOpen')['to'](_0x2b4c18,'isOpen'),_0x2b4c18['buttonView']['set']({'label':R(_0x590418,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x50a9fd}),_0x2b4c18['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x3e4f68['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x3e4f68['to'](_0x3c5e73=>_0x3c5e73['stopPropagation']())}}),_0x2b4c18['on']('execute',_0x2194f6=>{_0x225802['isReady']&&'function'==typeof _0x2194f6['source']['_action']&&_0x2194f6['source']['_action'](_0x225802);}),_0xd4033e(_0x2b4c18,_0x40f033,{'role':'menu'}),_0x2b4c18['listenTo'](_0x225802,'change:isActionsDropdownOpen',(_0x42dfdc,_0x5a4d57,_0x487a20)=>{if(_0x487a20)for(const _0xf6b37 of _0x2b4c18['listView']['items']){const _0x56d993=_0xf6b37['children']['first'],_0x198f82=_0x114dbe['find'](_0x3e85b2=>_0x3e85b2['action']===_0x56d993['_action'])['isVisible'];_0xf6b37['isVisible']=void 0x0===_0x198f82||_0x198f82(_0x225802);}}),_0x2b4c18;}class _i extends/* #__PURE__ -- @preserve */
|
|
27
|
+
_0x814b36(_0x5bb4f2){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x599e79,_0x14ba36,_0x2e20ac,_0x6a695a){super(_0x599e79);const _0x59fb27=this['bindTemplate'],_0x500726=function(_0x5b2ad0,_0x1a094b){const _0x5bed4b=Array['from'](_0x1a094b['authors'])['filter'](_0x24ff54=>_0x24ff54!=_0x1a094b['creator']);return _0x1a094b['creator']&&_0x5bed4b['unshift'](_0x1a094b['creator']),_0x5bed4b['map'](_0x57c3f4=>new ni(_0x5b2ad0,_0x57c3f4,_0x57c3f4==_0x1a094b['creator']));}(_0x599e79,_0x14ba36);this['id']=_0x14ba36['id'],this['_revision']=_0x14ba36,this['_requireRevisionName']=_0x6a695a,this['bind']('name','createdAt')['to'](_0x14ba36),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x173d87=>{return _0x270226=_0x599e79['uiLanguage'],(_0x1b63db=_0x173d87)['toLocaleDateString'](_0x270226,{'month':'long','day':'numeric'})+',\x20'+_0x1b63db['toLocaleTimeString'](_0x270226,{'hour':'numeric','minute':'numeric'});var _0x270226,_0x1b63db;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new hi(_0x599e79,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x2fda2a=>_0x2fda2a||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x59fb9f,_0x443693)=>_0x59fb9f&&_0x443693),this['revisionActionsView']=_0x2e20ac&&_0x2e20ac['length']?ci(this,_0x2e20ac):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x59fb27['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x59fb27['if']('isEnabled','ck-disabled',_0x391a0a=>!_0x391a0a),_0x59fb27['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x59fb27['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x59fb27['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':_0x59fb27['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':_0x500726}]},this['revisionActionsView']],'on':{'click':_0x59fb27['to'](_0x2c6a4f=>{_0x2c6a4f['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x10406a=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x10406a,'change',()=>{this['_requireRevisionName']&&!_0x10406a['value']||this['fire']('setName',{'id':this['id'],'name':_0x10406a['value']}),_0x10406a['value']||(_0x10406a['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function ki(_0x28e8f8,_0x6f7b5d){const _0x5aa697=_0x55dccf['fromJSDate'](_0x28e8f8)['setLocale'](_0x6f7b5d),_0x5e7e58=_0x55dccf['local'](),_0x1bcd83=_0x5e7e58['minus']({'days':0x1})['startOf']('day');let _0x3bf34d,_0x1f5f94;return _0x5aa697['hasSame'](_0x5e7e58,'day')?(_0x3bf34d=_0x5aa697['startOf']('day')['toJSDate'](),_0x1f5f94=_0x5aa697['toRelativeCalendar']()):_0x5aa697['hasSame'](_0x1bcd83,'day')?(_0x3bf34d=_0x1bcd83['toJSDate'](),_0x1f5f94=_0x5aa697['toRelativeCalendar']()):_0x5aa697['hasSame'](_0x5e7e58,'week')?(_0x3bf34d=_0x5aa697['startOf']('week')['toJSDate'](),_0x1f5f94=_0x5aa697['weekdayLong']||''):_0x5aa697['hasSame'](_0x5e7e58,'year')?(_0x3bf34d=_0x5aa697['startOf']('month')['toJSDate'](),_0x1f5f94=_0x5aa697['monthLong']||''):(_0x3bf34d=_0x5aa697['startOf']('year')['toJSDate'](),_0x1f5f94=String(_0x5aa697['year'])),{'startDate':_0x3bf34d,'localizedPeriodName':_0x1f5f94};}class ji extends _0x5bb4f2{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x9b0bf2,_0x4940c7,_0x1bc60a,_0xf2721c){super(_0x9b0bf2);const _0x5c2848=ki(_0x4940c7,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x4940c7,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x1bc60a,this['_requireRevisionName']=_0xf2721c,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':_0x5c2848}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x4dee53){const _0x502a43=new _i(this['locale'],_0x4dee53,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x502a43);}['removeRevision'](_0x2af8a3){const _0x4f08ad=this['revisionViews']['find'](_0x45337d=>_0x45337d['id']===_0x2af8a3['id']);this['revisionViews']['remove'](_0x4f08ad);}}class Ni extends _0x5bb4f2{constructor(_0xe76b86){super(_0xe76b86);const _0x5c50fc=new _0x5d2f47();_0x5c50fc['content']=_0x659fc6,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x5c50fc,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0xe76b86,'Revision\x20history')]}]});}}class Ri extends _0x5bb4f2{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x220ba6,_0x17701f,_0x3fb058,_0x36b5f2){super(_0x220ba6);const _0x106c50=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x17701f,this['_revisionActions']=_0x3fb058,this['_requireRevisionName']=_0x36b5f2,this['on']('select',(_0x5c66a2,_0x2bb8c7)=>{this['fire']('revisionSelected',_0x2bb8c7);}),this['on']('setName',(_0x1c4b43,_0x108222)=>{this['fire']('revisionSetName',_0x108222);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new Ni(_0x220ba6),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x106c50['if']('isEnabled','ck-disabled',_0x18dab2=>!_0x18dab2)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x9db100 of this['_revisions'])this['_addRevision'](_0x9db100);this['_revisions']['on']('add',(_0x728a11,_0x1b0fe5)=>{this['_addRevision'](_0x1b0fe5);}),this['_revisions']['on']('remove',(_0x339549,_0x1a6ec1)=>{this['_removeRevision'](_0x1a6ec1);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x1d5c91=>_0x1d5c91['revisionViews']['map'](_0x4cf3c8=>_0x4cf3c8))['flat']();}['selectRevision'](_0x18cf23){for(const _0x271bbc of this['revisionViews'])_0x18cf23&&_0x18cf23['id']===_0x271bbc['id']?_0x271bbc['select']():_0x271bbc['deselect']();}['highlightRevisions'](_0x337c08){for(const _0x563657 of this['revisionViews'])_0x337c08['some'](({id:_0x786f74})=>_0x786f74===_0x563657['id'])?_0x563657['highlight']():_0x563657['unhighlight']();}['_addRevision'](_0x37ffba){const _0x5cfc7e=ki(_0x37ffba['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x2ed5a5=this['timePeriodViews']['get'](0x0);_0x2ed5a5&&_0x2ed5a5['startDate']['getTime']()===_0x5cfc7e['getTime']()||(_0x2ed5a5=new ji(this['locale'],_0x5cfc7e,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x2ed5a5)),_0x2ed5a5['addRevision'](_0x37ffba);}['_removeRevision'](_0x17dde0){const _0x4e59f5=ki(_0x17dde0['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x4e59f5)['removeRevision'](_0x17dde0);}['_getTimePeriodViewByStartDate'](_0xa2d436){return this['timePeriodViews']['find'](_0xd50b1d=>_0xd50b1d['startDate']['getTime']()===_0xa2d436['getTime']());}}class f extends _0x5b4548{['_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[l];}constructor(
|
|
30
|
-
_0x52d9a4(_0x176fc2){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x45a28c,_0x4666b2){super(_0x4666b2),this['sourceElement']=_0x45a28c,this['model']['document']['createRoot']();const _0x2d6a0c=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x2d6a0c);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x126d35,_0x577b75){const _0x254fed=new this(_0x126d35,_0x577b75);return await _0x254fed['initPlugins'](),await _0x254fed['ui']['init'](_0x126d35),await _0x254fed['data']['init'](_0x254fed['config']['get']('initialData')||''),_0x254fed['fire']('ready'),_0x254fed;}}const d=['RevisionHistoryUI','RestrictedEditingMode'];class ht extends _0x596849{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5d0e83){function _0x276c22(_0x5aa918){return _0x5aa918['map'](_0x4bbc3a=>String['fromCharCode'](_0x4bbc3a))['join']('');}super(_0x5d0e83),this['result']='end',_0x5d0e83[_0x276c22([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x276c22([0x76,0x69,0x65,0x77])][_0x276c22([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x276c22([0x61,0x75,0x74,0x6f]),_0x5d0e83[_0x276c22([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x276c22([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x276c22([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x276c22([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x276c22([0x6f,0x6b])});}}class ct extends _0x596849{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,v];}constructor(_0x2c542d){if(super(_0x2c542d),!this['editor']['config']['get']('revisionHistory'))throw new _0x245d8d('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x145ddb=>this['_showRevisionViewer']({..._0x145ddb,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x30175f=>this['_closeRevisionViewer'](_0x30175f)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x20c232=>this['_restoreRevision'](_0x20c232)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x478813){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x478813;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x183d69){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x183d69);}['getRevision'](_0x58b9d9){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x58b9d9);}['getRevisions'](_0x46500f){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x46500f||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x2f6177=this['editor'],_0x5e26ee=_0x4cd4e0(_0x2f6177,d),_0x375c53=_0x2f6177['plugins']['get']('RevisionTracker'),_0x1ea8df=_0x2f6177['plugins']['get']('Users')['users'];return _0x5e26ee['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x5e26ee['lazyRoots'],(_0x5e26ee['plugins']['push'](ht,l,u,class extends _0x596849{static get['requires'](){return[l,'Users'];}['init'](){const _0x362a3f=this['editor']['plugins']['get']('Users');for(const _0x5b335f of _0x1ea8df)_0x5b335f['isAnonymous']||_0x362a3f['getUser'](_0x5b335f['id'])||_0x362a3f['addUser'](_0x5b335f);const _0x52149b=_0x375c53['repository']['getRevisions']();let _0x1ab01e=null;const _0x53f748=this['editor']['plugins']['get']('RevisionViewer');_0x53f748['adapter']=_0x375c53['adapter'],_0x53f748['bind']('isEnabled')['to'](_0x375c53),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x2f6177,'isReadOnly',_0x4082e2=>!_0x4082e2);for(const _0x491dcf of _0x52149b){const _0x6a242=null===_0x491dcf['creator'];if(_0x6a242&&_0x491dcf['toVersion']===_0x491dcf['fromVersion'])continue;const _0x1eb146=_0x491dcf['toJSON']();_0x53f748['addRevisionData'](_0x1eb146,(_0xb99cb9,_0x2d149b,_0xe01c61)=>{if(_0x6a242){if(_0x1ab01e)_0x1ab01e['_update'](_0xb99cb9,_0x2d149b);else{if(!_0x2d149b){const _0x5af61a=_0xe01c61['toJSON']();_0x5af61a['id']=_0x42f13a(),_0x375c53['saveRevision'](_0x5af61a,_0xe01c61['toVersion'])['then'](_0x3e2ffc=>{_0x1ab01e=_0x3e2ffc;});}}}else _0x491dcf['_update'](_0xb99cb9,_0x2d149b);});}}},f),_0x5e26ee);}['_enhanceShowRevisionViewerCallback'](){const _0x4990ee=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x2179a4=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0xdcfa1f=this['editor']['plugins']['get']('Autosave');await _0xdcfa1f['save']();}else await _0x2179a4['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x4ed566=this['editor']['plugins']['get']('Dialog');_0x4ed566['isOpen']&&_0x4ed566['hide']();}const _0x41e0a1=this['_getRevisionViewerEditorConfig']();return _0x4990ee(_0x41e0a1)['then'](_0xb41af6=>{return(this['_viewerEditor']=_0xb41af6,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'),_0xb41af6);})['catch'](_0x48bbb5=>(console['error'](_0x48bbb5),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x3f0832=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(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['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x3f0832(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x5c7913=this['editor']['plugins']['get']('Annotations');_0x5c7913['refreshVisibility'](),_0x5c7913['refreshPositioning']();}})));}['_showRevisionViewer'](_0x251c55){const _0x12180b=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x411e4b=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x30077a=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return m['create'](_0x30077a,_0x251c55)['then'](_0x1f15f4=>(_0x411e4b['style']['display']='block',_0x12180b['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x1f15f4));}['_closeRevisionViewer'](_0x5d14fb){const _0x5ca836=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x5ca836['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x5d14fb['destroy']();}async['_restoreRevision'](_0x5bed01){const _0x28463b=this['editor'],_0x5702bf=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x2feb15=_0x28463b['plugins']['get']('RevisionTracker'),_0xd68ec5=_0x28463b['plugins']['get']('RevisionHistoryUtils'),_0x2eccde=_0x5702bf['repository']['getRevision'](_0x5bed01);let _0x4d3897,_0x5f2244,_0x4e1146;try{await _0xd68ec5['loadRevisionData'](_0x2eccde,this['adapter']),_0x4d3897=_0xd68ec5['getRevisionDocumentData'](_0x2eccde),_0x5f2244=_0xd68ec5['getRevisionRootsAttributes'](_0x2eccde);}catch(_0x5ab9cb){return void console['error'](_0x5ab9cb);}_0x28463b['model']['change'](_0x40b1c7=>{for(const _0x2e55d0 of Array['from'](_0x28463b['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x40b1c7['removeMarker'](_0x2e55d0);}),_0x5702bf['isReady']=!0x1,_0x28463b['model']['enqueueChange'](_0x373c90=>{_0x373c90['setSelection'](null),_0x373c90['removeSelectionAttribute'](_0x28463b['model']['document']['selection']['getAttributeKeys']());const _0x45913e=Object['keys'](_0x4d3897);for(const _0x3f688c of _0x28463b['model']['document']['roots'])'$graveyard'!=_0x3f688c['rootName']&&_0x3f688c['isAttached']()&&!_0x45913e['includes'](_0x3f688c['rootName'])&&_0x373c90['detachRoot'](_0x3f688c);for(const _0x4f3eea of _0x45913e){let _0x2bd68a=_0x28463b['model']['document']['getRoot'](_0x4f3eea);_0x2bd68a&&_0x2bd68a['isAttached']()||(_0x2bd68a=_0x373c90['addRoot'](_0x4f3eea));const _0x578bfc=_0x5f2244[_0x4f3eea],_0x2f8bbb=Object['keys'](_0x578bfc),_0x133290=_0x4d3897[_0x4f3eea];for(const _0x4acb85 of _0x2bd68a['getAttributeKeys']())_0x2f8bbb['includes'](_0x4acb85)||_0x373c90['removeAttribute'](_0x4acb85,_0x2bd68a);for(const _0x366272 of _0x2f8bbb)_0x373c90['setAttribute'](_0x366272,_0x5f2244[_0x4f3eea][_0x366272],_0x2bd68a);_0x373c90['remove'](_0x373c90['createRangeIn'](_0x2bd68a)),_0x373c90['insert'](_0x28463b['data']['parse'](_0x133290,_0x2bd68a),_0x2bd68a,0x0);}});const _0x8f2e5a=R(_0x28463b['locale'],'Restored');if(_0x2eccde['name'])_0x4e1146=-0x1==_0x2eccde['name']['indexOf'](_0x8f2e5a)?_0x8f2e5a+':\x20'+_0x2eccde['name']:_0x2eccde['name'];else _0x4e1146=_0x8f2e5a+':\x20'+(_0x2eccde['createdAt']['toLocaleDateString'](_0x28463b['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x2eccde['createdAt']['toLocaleTimeString'](_0x28463b['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x2feb15['saveRevision']({'name':_0x4e1146}),_0x5702bf['isReady']=!0x0,_0x28463b['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{nt as RestoreRevisionCommand,I as Revision,ct as RevisionHistory,v as RevisionHistoryUI,$ as RevisionHistoryUtils,h as RevisionTracker,l as RevisionViewer,m as RevisionViewerEditor,ht as RevisionViewerIntegration,ji as RevisionViewerLoadingOverlay,u as RevisionViewerUI,S as RevisionsRepository,f 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[l];}constructor(_0x4636bc){super(_0x4636bc),this['_revisionViewer']=_0x4636bc['plugins']['get'](l),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x349a16=this['_revisionsRepository']['_revisions'],_0x3cbc6d=this['_createRevisionActions'](),_0x4e2587=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new Ri(this['editor']['locale'],_0x349a16,_0x3cbc6d,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',(_0x292897,_0x1c9df4)=>{_0x1c9df4['revisionViews']['on']('add',(_0x5de737,_0x5061f1)=>{_0x5061f1['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)),_0x4e2587['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x11465a=this['_revisionsRepository']['getRevision'](0x0);if(_0x11465a){const _0x48b5aa=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x11465a['id']);this['_revisionViewer']['compare'](_0x11465a,_0x48b5aa);}}['_handleRevisionSelected'](_0x29a142,_0x139270){const _0x95ef3d=this['_revisionsRepository']['getRevision'](_0x139270['id']),_0x519eed=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x95ef3d['id']);this['_revisionViewer']['compare'](_0x95ef3d,_0x519eed);}['_handleRevisionSetName'](_0x2957d6,_0x19c3b7){this['_revisionsRepository']['getRevision'](_0x19c3b7['id'])['setName'](_0x19c3b7['name']);}['_handleDiffChange'](_0x9d6f8f,_0xe632a4,_0x5bc821){const _0x2d15b9=this['_revisionsRepository']['getRevisionsInDiff'](_0x5bc821);_0x2d15b9['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x2d15b9),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x2d15b9[0x0]));}['_createRevisionActions'](){const _0x2b1250=this['editor'],_0x1f5a5f=f['availableRevisionActions'],_0x520064=_0x2b1250['config']['get']('revisionHistory.revisionActions')||f['defaultRevisionActions'];if(_0x520064['length'])return _0x520064['map'](_0x1a31ef=>{const _0x5f127f='string'==typeof _0x1a31ef?Object['assign']({},_0x1f5a5f[_0x1a31ef]):_0x1a31ef;return _0x5f127f['action']=_0x5f127f['action']['bind'](this,_0x2b1250),_0x5f127f['isVisible']&&(_0x5f127f['isVisible']=_0x5f127f['isVisible']['bind'](this,_0x2b1250)),_0x5f127f;});}}function at(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0xfa4e6b},_0x5262c2)=>{const _0x234644=_0xfa4e6b['get'](l),_0x1f4df3=_0x234644['repository'];let _0x352e42=_0x234644['diff']['newRevisionId'],_0x8c5210=_0x5262c2['id'];_0x1f4df3['getIndex'](_0x352e42)>_0x1f4df3['getIndex'](_0x8c5210)&&([_0x352e42,_0x8c5210]=[_0x8c5210,_0x352e42]),_0x234644['compare'](_0x352e42,_0x8c5210);},'isVisible':({plugins:_0x5d7b56},_0x141aad)=>{const _0x12f36a=_0x5d7b56['get'](l);return!(_0x12f36a['repository']['getRevisionsInDiff'](_0x12f36a['diff'])['length']>0x2)&&!_0x141aad['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x2d2a1d,{id:_0x1968a7})=>{_0x2d2a1d['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x1968a7);},'isVisible':({plugins:_0x3fbdb0},_0x3e05ba)=>!!_0x3fbdb0['get'](l)['repository']['getLaterVisibleRevision'](_0x3e05ba['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x17ee00},{id:_0x364f32,revisionNameView:_0x421f7f})=>{const _0x496b65=_0x17ee00['get'](l),_0x1a3fd6=_0x496b65['repository']['getEarlierVisibleRevision'](_0x364f32);_0x496b65['compare'](_0x364f32,_0x1a3fd6),_0x421f7f['focus'](),_0x421f7f['fieldView']['select']();}}};}class Z extends tt{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x5b1a12,_0x43e7e2){super(_0x5b1a12),this['_view']=_0x43e7e2,this['_toolbarConfig']=st(_0x5b1a12['config']['get']('toolbar')),this['_elementReplacer']=new it();}get['element'](){return this['view']['element'];}['init'](_0x59c563){const _0x570b65=this['editor'],_0x127a13=this['view'],_0x272a51=_0x570b65['editing']['view'],_0x4e262c=_0x127a13['editable'],_0x3b4108=_0x272a51['document']['getRoot']();_0x4e262c['name']=_0x3b4108['rootName'],_0x127a13['render']();const _0x41a0c2=_0x4e262c['element'];this['setEditableElement'](_0x4e262c['name'],_0x41a0c2),_0x127a13['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x272a51['attachDomRoot'](_0x41a0c2),this['_elementReplacer']['replace'](_0x59c563,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x32403f=this['view'],_0x2cd2b1=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x2cd2b1['detachDomRoot'](_0x32403f['editable']['name']),_0x32403f['destroy']();}['_initToolbar'](){const _0x57862f=this['view'];_0x57862f['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x57862f['stickyPanel']['limiterElement']=_0x57862f['element'],_0x57862f['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x589270})=>_0x589270),_0x57862f['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x57862f['toolbar']);}}class ii extends _0x230bfc{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x14c63c,_0x1c3548,_0x2233ca={}){super(_0x14c63c),this['stickyPanel']=new _0x3dbd0e(_0x14c63c),this['toolbar']=new _0x3b3b98(_0x14c63c,{'shouldGroupWhenFull':_0x2233ca['shouldToolbarGroupWhenFull']}),this['_editable']=new te(_0x14c63c,_0x1c3548);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class m extends/* #__PURE__ -- @preserve */
|
|
30
|
+
_0x85f989(_0x3f1bb1){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x30131e,_0x4219cc){super(_0x4219cc),this['sourceElement']=_0x30131e,this['model']['document']['createRoot']();const _0x526ad3=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x526ad3);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x327ed3,_0x194ddf){const _0xbf64de=new this(_0x327ed3,_0x194ddf);return await _0xbf64de['initPlugins'](),await _0xbf64de['ui']['init'](_0x327ed3),await _0xbf64de['data']['init'](_0xbf64de['config']['get']('initialData')||''),_0xbf64de['fire']('ready'),_0xbf64de;}}const d=['RevisionHistoryUI','RestrictedEditingMode'];class ht extends _0x5b4548{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x463561){function _0x3f9c6e(_0x277b19){return _0x277b19['map'](_0x29ef01=>String['fromCharCode'](_0x29ef01))['join']('');}super(_0x463561),this['result']='end',_0x463561[_0x3f9c6e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3f9c6e([0x76,0x69,0x65,0x77])][_0x3f9c6e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3f9c6e([0x61,0x75,0x74,0x6f]),_0x463561[_0x3f9c6e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3f9c6e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3f9c6e([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3f9c6e([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3f9c6e([0x6f,0x6b])});}}class ct extends _0x5b4548{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,v];}constructor(_0xd4490e){if(super(_0xd4490e),!this['editor']['config']['get']('revisionHistory'))throw new _0x26464b('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x3dd259=>this['_showRevisionViewer']({..._0x3dd259,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x511683=>this['_closeRevisionViewer'](_0x511683)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x5a6f46=>this['_restoreRevision'](_0x5a6f46)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x3432a9){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x3432a9;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x4411a4){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x4411a4);}['getRevision'](_0x227430){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x227430);}['getRevisions'](_0x514ce4){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x514ce4||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x49ce5e=this['editor'],_0x46d6d1=_0x33d67b(_0x49ce5e,d),_0x57e43f=_0x49ce5e['plugins']['get']('RevisionTracker'),_0x13dfaf=_0x49ce5e['plugins']['get']('Users')['users'];return _0x46d6d1['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x46d6d1['lazyRoots'],(_0x46d6d1['plugins']['push'](ht,l,u,class extends _0x5b4548{static get['requires'](){return[l,'Users'];}['init'](){const _0x16953f=this['editor']['plugins']['get']('Users');for(const _0x498056 of _0x13dfaf)_0x498056['isAnonymous']||_0x16953f['getUser'](_0x498056['id'])||_0x16953f['addUser'](_0x498056);const _0x2ad433=_0x57e43f['repository']['getRevisions']();let _0x5179c6=null;const _0x240614=this['editor']['plugins']['get']('RevisionViewer');_0x240614['adapter']=_0x57e43f['adapter'],_0x240614['bind']('isEnabled')['to'](_0x57e43f),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x49ce5e,'isReadOnly',_0x38065c=>!_0x38065c);for(const _0x19aade of _0x2ad433){const _0x2cd6c2=null===_0x19aade['creator'];if(_0x2cd6c2&&_0x19aade['toVersion']===_0x19aade['fromVersion'])continue;const _0x24a095=_0x19aade['toJSON']();_0x240614['addRevisionData'](_0x24a095,(_0x5d8744,_0x12b6c6,_0x48dc29)=>{if(_0x2cd6c2){if(_0x5179c6)_0x5179c6['_update'](_0x5d8744,_0x12b6c6);else{if(!_0x12b6c6){const _0x688aa8=_0x48dc29['toJSON']();_0x688aa8['id']=_0x2df4cd(),_0x57e43f['saveRevision'](_0x688aa8,_0x48dc29['toVersion'])['then'](_0x59abc7=>{_0x5179c6=_0x59abc7;});}}}else _0x19aade['_update'](_0x5d8744,_0x12b6c6);});}}},f),_0x46d6d1);}['_enhanceShowRevisionViewerCallback'](){const _0x42c0b4=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x359a5a=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x3e8a13=this['editor']['plugins']['get']('Autosave');await _0x3e8a13['save']();}else await _0x359a5a['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x5f593c=this['editor']['plugins']['get']('Dialog');_0x5f593c['isOpen']&&_0x5f593c['hide']();}const _0x4fed39=this['_getRevisionViewerEditorConfig']();return _0x42c0b4(_0x4fed39)['then'](_0x4ce08f=>{return(this['_viewerEditor']=_0x4ce08f,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'),_0x4ce08f);})['catch'](_0x5b958b=>(console['error'](_0x5b958b),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x49d4b5=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(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['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x49d4b5(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x7276db=this['editor']['plugins']['get']('Annotations');_0x7276db['refreshVisibility'](),_0x7276db['refreshPositioning']();}})));}['_showRevisionViewer'](_0x3a2c29){const _0x2bc4c5=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x395a0c=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x55e16f=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return m['create'](_0x55e16f,_0x3a2c29)['then'](_0x37a7a4=>(_0x395a0c['style']['display']='block',_0x2bc4c5['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x37a7a4));}['_closeRevisionViewer'](_0x5eaae6){const _0x134635=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x134635['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x5eaae6['destroy']();}async['_restoreRevision'](_0x57f388){const _0x5b371f=this['editor'],_0xc27db8=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x231000=_0x5b371f['plugins']['get']('RevisionTracker'),_0x5b18ab=_0x5b371f['plugins']['get']('RevisionHistoryUtils'),_0x4c3b52=_0xc27db8['repository']['getRevision'](_0x57f388);let _0x362862,_0x5c570b,_0xca2e25;try{await _0x5b18ab['loadRevisionData'](_0x4c3b52,this['adapter']),_0x362862=_0x5b18ab['getRevisionDocumentData'](_0x4c3b52),_0x5c570b=_0x5b18ab['getRevisionRootsAttributes'](_0x4c3b52);}catch(_0xf752bb){return void console['error'](_0xf752bb);}_0x5b371f['model']['change'](_0x22bd63=>{for(const _0x1ba7c5 of Array['from'](_0x5b371f['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x22bd63['removeMarker'](_0x1ba7c5);}),_0xc27db8['isReady']=!0x1,_0x5b371f['model']['enqueueChange'](_0x163630=>{_0x163630['setSelection'](null),_0x163630['removeSelectionAttribute'](_0x5b371f['model']['document']['selection']['getAttributeKeys']());const _0xff993a=Object['keys'](_0x362862);for(const _0x323674 of _0x5b371f['model']['document']['roots'])'$graveyard'!=_0x323674['rootName']&&_0x323674['isAttached']()&&!_0xff993a['includes'](_0x323674['rootName'])&&_0x163630['detachRoot'](_0x323674);for(const _0x261aca of _0xff993a){let _0x53b1bc=_0x5b371f['model']['document']['getRoot'](_0x261aca);_0x53b1bc&&_0x53b1bc['isAttached']()||(_0x53b1bc=_0x163630['addRoot'](_0x261aca));const _0x261fe9=_0x5c570b[_0x261aca],_0x2b5a12=Object['keys'](_0x261fe9),_0x2335f6=_0x362862[_0x261aca];for(const _0x585497 of _0x53b1bc['getAttributeKeys']())_0x2b5a12['includes'](_0x585497)||_0x163630['removeAttribute'](_0x585497,_0x53b1bc);for(const _0x4e8516 of _0x2b5a12)_0x163630['setAttribute'](_0x4e8516,_0x5c570b[_0x261aca][_0x4e8516],_0x53b1bc);_0x163630['remove'](_0x163630['createRangeIn'](_0x53b1bc)),_0x163630['insert'](_0x5b371f['data']['parse'](_0x2335f6,_0x53b1bc),_0x53b1bc,0x0);}});const _0x126b2f=R(_0x5b371f['locale'],'Restored');if(_0x4c3b52['name'])_0xca2e25=-0x1==_0x4c3b52['name']['indexOf'](_0x126b2f)?_0x126b2f+':\x20'+_0x4c3b52['name']:_0x4c3b52['name'];else _0xca2e25=_0x126b2f+':\x20'+(_0x4c3b52['createdAt']['toLocaleDateString'](_0x5b371f['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x4c3b52['createdAt']['toLocaleTimeString'](_0x5b371f['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x231000['saveRevision']({'name':_0xca2e25}),_0xc27db8['isReady']=!0x0,_0x5b371f['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{nt as RestoreRevisionCommand,I as Revision,ct as RevisionHistory,v as RevisionHistoryUI,$ as RevisionHistoryUtils,h as RevisionTracker,l as RevisionViewer,m as RevisionViewerEditor,ht as RevisionViewerIntegration,bi as RevisionViewerLoadingOverlay,u as RevisionViewerUI,S as RevisionsRepository,f as RevisionsSidebar,rt as ShowChangeCommand};
|