@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20250214.0 → 0.0.0-nightly-20250215.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/dist/index.js +6 -6
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +10 -10
- package/src/changeitem.js +2 -2
- package/src/editor/revisionviewereditor.js +2 -2
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/index.js +1 -1
- package/src/revision.js +2 -2
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +2 -2
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ObservableMixin as
|
|
24
|
-
_0x2d9680(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x1ae52d){super(),this['id']=_0x1ae52d['id']||_0x358749(),this['creator']=_0x1ae52d['creator']||null,this['authors']=_0x1ae52d['authors']||[],this['diffData']=_0x1ae52d['diffData']||null,this['toVersion']=_0x1ae52d['toVersion']||0x0,this['fromVersion']=_0x1ae52d['fromVersion']||0x0,this['set']('name',_0x1ae52d['name']||''),this['set']('createdAt',_0x1ae52d['createdAt']||new Date()),this['set']('attributes',_0x1ae52d['attributes']||{});}['setName'](_0x54295b){this['_update']({'name':_0x54295b});}['setAttribute'](_0x41d357,_0x2c1f26){const _0x43e069=_0x49c00c(this['attributes']);_0x3ee33f(_0x43e069,_0x41d357,_0x2c1f26),this['_update']({'attributes':_0x43e069});}['removeAttribute'](_0x213254){const _0x296243=_0x49c00c(this['attributes']);_0x1b0d3c(_0x296243,_0x213254),this['_update']({'attributes':_0x296243});}['_update'](_0xcfb2ca,_0x41d94f=!0x1){let _0xf0de75=!0x1;const _0x7081e1={'id':this['id']},_0x138886=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x7f2046 of _0x138886){const _0x46295a=_0xcfb2ca[_0x7f2046];void 0x0!==_0x46295a&&_0x46295a!==this[_0x7f2046]&&(this[_0x7f2046]=_0x46295a,_0x7081e1[_0x7f2046]=_0x46295a,_0xf0de75=!0x0);}_0xf0de75&&(_0x7081e1['authors']&&(_0x7081e1['authorsIds']=_0x7081e1['authors']['map'](_0x246c92=>_0x246c92['id']),delete _0x7081e1['authors']),this['fire']('_update',_0x7081e1,_0x41d94f));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x5c06bf=>_0x5c06bf['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x38c4e4{['_revisions'];static get['requires'](){return[_0x25c78c];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x4695aa){super(_0x4695aa),this['_revisions']=new _0x42ce0a();}['afterInit'](){!async function(_0x2cef2e){const _0x1f242c=_0x57046b([0x65,0x6e,0x75,0x37,0x34,0x30,0x73,0x4a,0x74,0x6d,0x6a,0x69,0x39,0x68,0x76,0x63,0x4b,0x52,0x70,0x48,0x55,0x59,0x71,0x42,0x4d,0x38,0x58,0x43,0x6c,0x4c,0x33,0x64,0x53,0x79,0x31,0x36,0x45,0x78,0x4e,0x47,0x77,0x41,0x61,0x49,0x72,0x32,0x62,0x35,0x6b,0x54,0x51,0x50,0x56,0x5a,0x6f,0x44,0x7a,0x46,0x57,0x4f,0x67,0x66]),_0x9286e6=0xeb829,_0x28cc5e=0x485a3396,_0x2edb87=0x485d6cee^_0x28cc5e,_0x533119=window[_0x57046b([0x44,0x61,0x74,0x65])][_0x57046b([0x6e,0x6f,0x77])](),_0xf3340a=_0x2cef2e[_0x57046b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x40c578=new window[(_0x57046b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x175cc0=>{_0xf3340a[_0x57046b([0x6f,0x6e,0x63,0x65])](_0x57046b([0x72,0x65,0x61,0x64,0x79]),_0x175cc0);}),_0x43775d={[_0x57046b([0x6b,0x74,0x79])]:_0x57046b([0x45,0x43]),[_0x57046b([0x75,0x73,0x65])]:_0x57046b([0x73,0x69,0x67]),[_0x57046b([0x63,0x72,0x76])]:_0x57046b([0x50,0x2d,0x32,0x35,0x36]),[_0x57046b([0x78])]:_0x57046b([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]),[_0x57046b([0x79])]:_0x57046b([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]),[_0x57046b([0x61,0x6c,0x67])]:_0x57046b([0x45,0x53,0x32,0x35,0x36])},_0x1aeeaa=_0xf3340a[_0x57046b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x57046b([0x67,0x65,0x74])](_0x57046b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1513c6(){let _0x333444,_0x473774=null,_0x5353c6=null;try{if(_0x1aeeaa==_0x57046b([0x47,0x50,0x4c]))return _0x57046b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x333444=_0x33b3bc(),!_0x333444)return _0x57046b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x333444[_0x57046b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5353c6=_0x11c754(_0x333444[_0x57046b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x333444[_0x57046b([0x6a,0x74,0x69])])),await _0x1406ed()?_0x4418e4()?_0x5f5928()?_0x57046b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x168d87()?(_0x333444[_0x57046b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x57046b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x473774=_0x339e81(_0x57046b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x333444[_0x57046b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x57046b([0x74,0x72,0x69,0x61,0x6c])&&(_0x473774=_0x339e81(_0x57046b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1495dd()):_0x57046b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x57046b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x57046b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x2f0034){return _0x57046b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5f5928(){const _0x47f9b3=[_0x57046b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x57046b([0x74,0x72,0x69,0x61,0x6c])][_0x57046b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x333444[_0x57046b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x533119/0x3e8:0xe10*_0x2edb87;return _0x333444[_0x57046b([0x65,0x78,0x70])]<_0x47f9b3;}function _0x4418e4(){const _0x39cb00=_0x333444[_0x57046b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x39cb00)return!0x1;if(_0x39cb00[_0x57046b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x57046b([0x2a])))return!0x0;if(_0x39cb00[_0x57046b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x57046b([0x52,0x48])))return!0x0;if(_0x39cb00[_0x57046b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x57046b([0x52,0x52,0x48]))){if(_0x4888bf())return!0x0;if(_0x179126()||_0x4b20e3())return!0x0;}return!0x1;}function _0x168d87(){const _0x56a7b3=_0x333444[_0x57046b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x56a7b3||0x0==_0x56a7b3[_0x57046b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4264e8}=new URL(window[_0x57046b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x56a7b3[_0x57046b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4264e8))return!0x0;const _0x5f0b76=_0x4264e8[_0x57046b([0x73,0x70,0x6c,0x69,0x74])](_0x57046b([0x2e]));return _0x56a7b3[_0x57046b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x456d31=>_0x456d31[_0x57046b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x57046b([0x2a])))[_0x57046b([0x6d,0x61,0x70])](_0x3f560c=>_0x3f560c[_0x57046b([0x73,0x70,0x6c,0x69,0x74])](_0x57046b([0x2e])))[_0x57046b([0x73,0x6f,0x6d,0x65])](_0x5a9ed5=>_0x5f0b76[_0x57046b([0x65,0x76,0x65,0x72,0x79])]((_0x50c6b8,_0x3d3896)=>_0x5a9ed5[_0x3d3896]===_0x50c6b8||_0x5a9ed5[_0x3d3896]===_0x57046b([0x2a])));}function _0x1495dd(){return _0x473774&&_0x5353c6?new window[(_0x57046b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3a4135,_0x2c83de)=>{_0x473774[_0x57046b([0x74,0x68,0x65,0x6e])](_0x3a4135,_0x2c83de),_0x5353c6[_0x57046b([0x74,0x68,0x65,0x6e])](_0x3854c3=>{_0x3854c3!=_0x57046b([0x56,0x61,0x6c,0x69,0x64])&&_0x3a4135(_0x3854c3);},_0x2c83de);}):_0x473774||_0x5353c6||_0x57046b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x11c754(_0x2d12fc,_0x393152){return new window[(_0x57046b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f8537=>{if(_0x538a29())return _0x4f8537(_0x57046b([0x56,0x61,0x6c,0x69,0x64]));_0x75e90b(),_0xf3340a[_0x57046b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x57046b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x14ede4=!0x1;const _0x9b8b5d=_0x358749();function _0x1113e6(_0x2c9426){return!!_0x2c9426&&(typeof _0x2c9426===_0x57046b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2c9426===_0x57046b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2c9426[_0x57046b([0x74,0x68,0x65,0x6e])]===_0x57046b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2c9426[_0x57046b([0x63,0x61,0x74,0x63,0x68])]===_0x57046b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x10a85b(_0x4adfb2){_0x1271c1(_0x4adfb2)[_0x57046b([0x74,0x68,0x65,0x6e])](_0x3ec7b5=>{if(!_0x3ec7b5||_0x3ec7b5[_0x57046b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x57046b([0x6f,0x6b]))return _0x57046b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x127619(_0x339c27(_0x9b8b5d+_0x393152))!=_0x3ec7b5[_0x57046b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x57046b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x57046b([0x56,0x61,0x6c,0x69,0x64]);})[_0x57046b([0x74,0x68,0x65,0x6e])](_0x443e9b=>(_0x567192(),_0x443e9b),()=>{const _0x5a1c9e=_0x2d18f1();return null==_0x5a1c9e?(_0x567192(),_0x57046b([0x56,0x61,0x6c,0x69,0x64])):_0x57046b(_0x533119-_0x5a1c9e>(0x6c56b796^_0x28cc5e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x57046b([0x74,0x68,0x65,0x6e])](_0x4f8537)[_0x57046b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4f8537(_0x57046b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x361f65=0x486cdd16^_0x28cc5e;function _0x567192(){const _0x577797=_0x57046b([0x6c,0x6c,0x63,0x74,0x2d])+_0x127619(_0x339c27(_0x2d12fc)),_0x140f4c=_0x5e91fb(_0x127619(window[_0x57046b([0x4d,0x61,0x74,0x68])][_0x57046b([0x63,0x65,0x69,0x6c])](_0x533119/_0x361f65)));window[_0x57046b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x57046b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x577797,_0x140f4c);}function _0x2d18f1(){const _0x6a1194=_0x57046b([0x6c,0x6c,0x63,0x74,0x2d])+_0x127619(_0x339c27(_0x2d12fc)),_0x3ee4c6=window[_0x57046b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x57046b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x6a1194);return _0x3ee4c6?window[_0x57046b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5e91fb(_0x3ee4c6),0x10)*_0x361f65:null;}function _0x1271c1(_0x53777c){return new window[(_0x57046b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1d7e0d,_0x39684d)=>{_0x53777c[_0x57046b([0x74,0x68,0x65,0x6e])](_0x1d7e0d,_0x39684d),window[_0x57046b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x39684d,0x485be756^_0x28cc5e);});}}_0xf3340a[_0x57046b([0x6f,0x6e])](_0x57046b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x57fb63,_0x17ffd0)=>{if(_0x17ffd0[0x0]!=_0x2d12fc)return _0x4f8537(_0x57046b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x17ffd0[0x1]={..._0x17ffd0[0x1],[_0x57046b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x9b8b5d};},{[_0x57046b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x57046b([0x68,0x69,0x67,0x68])}),_0xf3340a[_0x57046b([0x6f,0x6e])](_0x57046b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x44ec76=>{_0x1113e6(_0x44ec76[_0x57046b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x14ede4=!0x0,_0x10a85b(_0x44ec76[_0x57046b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x57046b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x57046b([0x6c,0x6f,0x77])}),_0x40c578[_0x57046b([0x74,0x68,0x65,0x6e])](()=>{_0x14ede4||_0x4f8537(_0x57046b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x538a29(){return _0xf3340a[_0x57046b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x57046b([0x76,0x69,0x65,0x77])][_0x57046b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x57046b([0x61,0x75,0x74,0x6f]);}function _0x75e90b(){_0xf3340a[_0x57046b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x57046b([0x76,0x69,0x65,0x77])][_0x57046b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x57046b([0x61,0x75,0x74,0x6f]);}}function _0x339e81(_0x35707c){const _0x1b01da=[new window[(_0x57046b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x21e991=>setTimeout(_0x21e991,0x48530d5a^_0x28cc5e)),_0x40c578[_0x57046b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x57046b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3a37ba=>{const _0x56013e=0x485a3391^_0x28cc5e,_0x4b1c82=_0x2cef2e[_0x57046b([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x1a4820(){_0x4b1c82[_0x57046b([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x56013e&&_0x3a37ba();}_0x1a4820(),_0x4b1c82[_0x57046b([0x6f,0x6e])](_0x57046b([0x61,0x64,0x64]),_0x1a4820);})),new window[(_0x57046b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x36a1d7=>{function _0x471e59(){for(const _0x1813e6 in window)if(window[_0x57046b([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x57046b([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x1813e6))&&window[_0x1813e6]==_0x9286e6)return _0x36a1d7();_0xf3340a[_0x57046b([0x73,0x74,0x61,0x74,0x65])]!=_0x57046b([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x57046b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x471e59,0x485a201e^_0x28cc5e);}_0x9a30ab(_0x57046b([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x471e59();})];return window[_0x57046b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x57046b([0x72,0x61,0x63,0x65])](_0x1b01da)[_0x57046b([0x74,0x68,0x65,0x6e])](()=>_0x35707c);}async function _0x87122e(){if(await _0x40c578,_0x9a30ab(_0x57046b([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x11ada1=_0x2cef2e[_0x57046b([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x2f23c8=_0x2cef2e[_0x57046b([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])](_0x11ada1[_0x57046b([0x69,0x64])]),_0x5096d1=_0x4aba69(_0x57046b([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x5096d1[_0x57046b([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x11ada1['id'],_0x2f23c8?_0x2f23c8['id']:null,!0x0),_0x5096d1[_0x57046b([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x57046b([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x5096d1[_0x57046b([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x5096d1[_0x57046b([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x43a8f0,void(_0x5096d1[_0x57046b([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x43a8f0);}if(_0x9a30ab(_0x57046b([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x129b06=_0x4aba69(_0x57046b([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x129b06[_0x57046b([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x57046b([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x129b06[_0x57046b([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x129b06[_0x57046b([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x43a8f0,_0x129b06[_0x57046b([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x43a8f0;}_0xf3340a[_0x57046b([0x6d,0x6f,0x64,0x65,0x6c])][_0x57046b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x43a8f0,_0xf3340a[_0x57046b([0x6d,0x6f,0x64,0x65,0x6c])][_0x57046b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x43a8f0,_0xf3340a[_0x57046b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x57046b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4888bf(){return _0x9a30ab(_0x57046b([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4aba69(_0x57046b([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x57046b([0x73,0x74,0x61,0x74,0x65])]==_0x57046b([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x179126(){return _0x9a30ab(_0x57046b([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 _0x4b20e3(){return _0x9a30ab(_0x57046b([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0xa2b783(_0x339481){const _0x3cccb9=_0x153735();_0xf3340a[_0x3cccb9]=_0x57046b([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])+_0x339481,_0x339481[_0x57046b([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x57046b([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x153735()]=_0x9286e6),_0x339481!=_0x57046b([0x56,0x61,0x6c,0x69,0x64])&&_0x87122e();}function _0x153735(){const _0x2473e4=window[_0x57046b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x57046b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x57046b([0x6e,0x6f,0x77])]())[_0x57046b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x57046b([0x2e]),'');let _0x283e27=_0x57046b([0x65]);for(let _0xeb6713=0x0;_0xeb6713<_0x2473e4[_0x57046b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xeb6713+=0x2){let _0x519b5f=window[_0x57046b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2473e4[_0x57046b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xeb6713,_0xeb6713+0x2));_0x519b5f>=_0x1f242c[_0x57046b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x519b5f-=_0x1f242c[_0x57046b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x283e27+=_0x1f242c[_0x519b5f];}return _0x283e27;}function _0x33b3bc(){const _0x57e801=_0x1aeeaa[_0x57046b([0x73,0x70,0x6c,0x69,0x74])](_0x57046b([0x2e]));if(0x3!=_0x57e801[_0x57046b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x39b9b9(_0x57e801[0x1]);function _0x39b9b9(_0x2f2f97){const _0x29251f=_0x205b21(_0x2f2f97);return _0x29251f&&_0x18875b()?_0x29251f:null;function _0x18875b(){const _0x106413=_0x29251f[_0x57046b([0x6a,0x74,0x69])],_0x30a335=window[_0x57046b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x106413[_0x57046b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x106413[_0x57046b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2976a4={..._0x29251f,[_0x57046b([0x6a,0x74,0x69])]:_0x106413[_0x57046b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x106413[_0x57046b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2976a4[_0x57046b([0x76,0x63])],_0x339c27(_0x2976a4)==_0x30a335;}}}async function _0x1406ed(){let _0x45c440=!0x0;try{const _0x526a5d=_0x1aeeaa[_0x57046b([0x73,0x70,0x6c,0x69,0x74])](_0x57046b([0x2e])),[_0x1aa3b7,_0x29b5ac,_0x14a3d7]=_0x526a5d;return _0x44dbb4(_0x1aa3b7),await _0x46426e(_0x1aa3b7,_0x29b5ac,_0x14a3d7),_0x45c440;}catch(_0x774b05){return!0x1;}function _0x44dbb4(_0x5c991d){const _0x1c028a=_0x205b21(_0x5c991d);_0x1c028a&&_0x1c028a[_0x57046b([0x61,0x6c,0x67])]==_0x57046b([0x45,0x53,0x32,0x35,0x36])||(_0x45c440=!0x1);}async function _0x46426e(_0x1f35fe,_0x3dedd4,_0x27561d){const _0x3747ed=window[_0x57046b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x57046b([0x66,0x72,0x6f,0x6d])](_0x15b33a(_0x27561d),_0x4cf308=>_0x4cf308[_0x57046b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x511b59=new window[(_0x57046b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x57046b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1f35fe+_0x57046b([0x2e])+_0x3dedd4),_0x431dc0=window[_0x57046b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x57046b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x431dc0)return;const _0x2d67b8=await _0x431dc0[_0x57046b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x57046b([0x6a,0x77,0x6b]),_0x43775d,{[_0x57046b([0x6e,0x61,0x6d,0x65])]:_0x57046b([0x45,0x43,0x44,0x53,0x41]),[_0x57046b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x57046b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x57046b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x431dc0[_0x57046b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x57046b([0x6e,0x61,0x6d,0x65])]:_0x57046b([0x45,0x43,0x44,0x53,0x41]),[_0x57046b([0x68,0x61,0x73,0x68])]:{[_0x57046b([0x6e,0x61,0x6d,0x65])]:_0x57046b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2d67b8,_0x3747ed,_0x511b59)||(_0x45c440=!0x1);}}function _0x205b21(_0x2104b4){return _0x2104b4[_0x57046b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x57046b([0x65,0x79]))?JSON[_0x57046b([0x70,0x61,0x72,0x73,0x65])](_0x15b33a(_0x2104b4)):null;}function _0x15b33a(_0x30cbbf){return window[_0x57046b([0x61,0x74,0x6f,0x62])](_0x30cbbf[_0x57046b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x57046b([0x2b]))[_0x57046b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x57046b([0x2f])));}function _0x339c27(_0x225c2a){let _0x3727e8=0x1505;function _0x3870e5(_0x348fe1){for(let _0x1f8dd2=0x0;_0x1f8dd2<_0x348fe1[_0x57046b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1f8dd2++){const _0x5aad66=_0x348fe1[_0x57046b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1f8dd2);_0x3727e8=(_0x3727e8<<0x5)+_0x3727e8+_0x5aad66,_0x3727e8&=_0x3727e8;}}function _0x2bb10a(_0x31fc59){Array[_0x57046b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x31fc59)?_0x31fc59[_0x57046b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2bb10a):_0x31fc59&&typeof _0x31fc59==_0x57046b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x57046b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x31fc59)[_0x57046b([0x73,0x6f,0x72,0x74])]()[_0x57046b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4f16ee,_0x377730])=>{_0x3870e5(_0x4f16ee),_0x2bb10a(_0x377730);}):_0x3870e5(window[_0x57046b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x31fc59));}return _0x2bb10a(_0x225c2a),_0x3727e8>>>0x0;}function _0x127619(_0x113b22){return _0x113b22[_0x57046b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x57046b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x57046b([0x30]));}function _0x5e91fb(_0x18bb99){return _0x18bb99[_0x57046b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x57046b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x57046b([0x6a,0x6f,0x69,0x6e])]('');}function _0x9a30ab(_0x3e3294){return _0xf3340a[_0x57046b([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x57046b([0x68,0x61,0x73])](_0x3e3294);}function _0x4aba69(_0x63d2c9){return _0xf3340a[_0x57046b([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x57046b([0x67,0x65,0x74])](_0x63d2c9);}function _0x43a8f0(){}function _0x57046b(_0x5ed014){return _0x5ed014['map'](_0x79cd97=>String['fromCharCode'](_0x79cd97))['join']('');}_0xa2b783(await _0x1513c6());}(this);}['createRevision'](_0x1f665c){const _0x11b228=this['editor']['plugins']['get']('Users');return new a({'id':_0x1f665c['id'],'name':_0x1f665c['name'],'creator':_0x1f665c['creatorId']?_0x11b228['getUser'](_0x1f665c['creatorId']):null,'diffData':_0x1f665c['diffData']||_0x1f665c['data'],'authors':_0x1f665c['authorsIds']['map'](_0x32ce3c=>_0x11b228['getUser'](_0x32ce3c)),'createdAt':new Date(_0x1f665c['createdAt']),'attributes':_0x1f665c['attributes'],'fromVersion':_0x1f665c['fromVersion'],'toVersion':_0x1f665c['toVersion']});}['addRevision'](_0x17d660,_0x40393d=0x0){this['_revisions']['add'](_0x17d660,_0x40393d);}['getRevision'](_0x3a327a){return this['_revisions']['get'](_0x3a327a);}['getRevisions'](_0x582f61={'toJSON':!0x1}){const _0x3bd789=Array['from'](this['_revisions']);return _0x3bd789['reverse'](),_0x582f61['toJSON']?_0x3bd789['map'](_0x4e143f=>_0x4e143f['toJSON']()):_0x3bd789;}['getIndex'](_0x39dd01){return this['_revisions']['getIndex'](_0x39dd01);}['getEarlierVisibleRevision'](_0x5c75c2){const [,_0x2ed04e]=this['getRevisionsIterator'](_0x5c75c2,{'direction':'earlier'});return _0x2ed04e;}['getLaterVisibleRevision'](_0x5cbaca){const [,_0xf9d12]=this['getRevisionsIterator'](_0x5cbaca,{'direction':'later'});return _0xf9d12;}['getRevisionsInDiff'](_0x5c7cde){const _0x542575=[];for(const _0x3b11f1 of this['getRevisionsIterator'](_0x5c7cde['newRevisionId']))if(_0x542575['push'](_0x3b11f1),_0x3b11f1['id']===_0x5c7cde['oldRevisionId'])break;return _0x542575;}*['getRevisionsIterator'](_0x4f5362,{direction:_0x3dfb29='earlier',filter:_0x4ee31a=()=>!0x0}={}){const _0x2be090='earlier'===_0x3dfb29?0x1:-0x1;let _0x14fea7=this['_revisions']['get'](_0x4f5362),_0x40a96d=this['getIndex'](_0x14fea7);for(yield _0x14fea7;_0x14fea7;){if(_0x40a96d+=_0x2be090,_0x14fea7=this['getRevision'](_0x40a96d),!_0x14fea7)return;_0x4ee31a(_0x14fea7)&&(yield _0x14fea7);}}}function m(_0x2e6b2d,_0x5e1234,_0x41e7a9){const t=_0x2e6b2d['t'];switch(_0x5e1234){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'},_0x41e7a9);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x41e7a9);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const P={'c':_0x73e509,'a':_0x2053cd,'e':_0x48c1f7,'r':_0x11a6f7,'u':_0x2dca08};class l extends _0x38c4e4{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x25c78c,j,_0x26d8a9];}constructor(_0x1aa353){super(_0x1aa353),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x396517=_0x358749();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x396517},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x59e56d=this['repository']['getRevision'](0x0),_0x31e3f9=_0x59e56d&&null===_0x59e56d['creator']?_0x59e56d:null;if(this['_continueCurrentRevision']=!!_0x31e3f9&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x3c1bc3=this['_source']['getCurrentRevisionId'](),_0x5a6075=this['repository']['getRevision'](_0x3c1bc3);if(_0x5a6075)this['_startingVersion']=_0x5a6075['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0xd5650b=this['_source']['history']['_operations']['find'](_0x46c82d=>!_0x46c82d['_isInit']),_0x14a87d=_0xd5650b?_0xd5650b['baseVersion']:this['_source']['history']['version'];_0x59e56d?(_0x59e56d['toVersion']<_0x14a87d&&_0x59e56d['_update']({'toVersion':_0x14a87d}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x31e3f9['id'],this['_startingVersion']=_0x31e3f9['fromVersion']):(this['_startingVersion']=_0x59e56d['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x14a87d,this['_continueCurrentRevision']=!0x1);}}else _0x31e3f9&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x31e3f9['toVersion'],this['editor']['model']['document']['history']['version']),_0x31e3f9['fromVersion']===_0x31e3f9['toVersion']?(0x0!==_0x31e3f9['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x31e3f9['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x31e3f9['id'],this['_startingVersion']=_0x31e3f9['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',_0x2b082f=>!_0x2b082f),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x151787=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x50d284;for(const _0x183023 in _0x151787){const _0x76851f=_0x183023,_0xfdc778=_0x151787[_0x76851f];if('revisionHistoryLicenseKeyValid'==_0xfdc778||'revisionHistoryLicenseKeyInvalid'==_0xfdc778||'revisionHistoryLicenseKeyExpired'==_0xfdc778||'revisionHistoryLicenseKeyDomainLimit'==_0xfdc778||'revisionHistoryLicenseKeyNotAllowed'==_0xfdc778||'revisionHistoryLicenseKeyEvaluationLimit'==_0xfdc778||'revisionHistoryLicenseKeyTrialLimit'==_0xfdc778||'revisionHistoryLicenseKeyUsageLimit'==_0xfdc778){delete _0x151787[_0x76851f],_0x50d284=_0xfdc778,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x50d284&&_0x151787['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x50d284&&_0x151787['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x50d284&&_0x151787['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x50d284&&_0x151787['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x50d284&&_0x151787['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x50d284&&_0x151787['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x50d284&&_0x151787['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x336705=this['repository']['getRevision'](0x0),_0x2564ae=await this['getRevisionDocumentData'](_0x336705),_0x33f9a0=await this['getRevisionRootsAttributes'](_0x336705);this['_replaceEditorDataWithRevisionData'](_0x2564ae,_0x33f9a0);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x276e8d){this['_source']=_0x276e8d;}async['update'](){const _0x26980c=await this['_source']['getLatestVersion']();if(_0x26980c>this['currentRevision']['toVersion']){await this['_loadState']();const _0x586835=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x26980c});_0x586835['authors']=_0x586835['authorsIds']['map'](_0x206912=>this['editor']['plugins']['get']('Users')['getUser'](_0x206912)),this['currentRevision']['_update'](_0x586835);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0x197a6b={},_0x4335fd=null){const _0x16e7dc=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x4335fd>this['currentRevision']['toVersion']&&(_0x4335fd=null),null===_0x4335fd&&(_0x4335fd=await this['_source']['getLatestVersion']());const _0x3f8c4e=this['_getFromVersion'](_0x4335fd),_0x56b0cc=this['buildRevisionData']({'from':_0x3f8c4e,'to':_0x4335fd});if(this['currentRevision']['toVersion']<_0x4335fd){const _0x35a98a=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x4335fd,'to':_0x4335fd});_0x35a98a['authors']=[],_0x35a98a['authorsIds']=[],_0x35a98a['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x35a98a,!0x0),delete _0x35a98a['authors'],_0x16e7dc['push'](_0x35a98a);}_0x197a6b['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x197a6b['name']=_0x197a6b['name']||null,_0x197a6b['id']=_0x197a6b['id']||_0x358749(),_0x197a6b={..._0x197a6b,..._0x56b0cc};const _0x5f3f82=this['addRevisionData'](_0x197a6b);_0x16e7dc['push'](_0x197a6b);const _0x12da5e=this['repository']['getIndex'](_0x5f3f82);if(0x0!==_0x12da5e){const _0x53d9c6=this['repository']['getRevision'](_0x12da5e-0x1);if(_0x53d9c6['fromVersion']!==_0x4335fd){const _0x37cf45=this['_revisionDataBuilder']['getData'](_0x4335fd,_0x53d9c6['toVersion']),_0x3c1ef7={'id':_0x53d9c6['id'],'diffData':_0x37cf45['diffData'],'authorsIds':_0x37cf45['authorsIds'],'authors':_0x37cf45['authorsIds']['map'](_0x4401eb=>this['editor']['plugins']['get']('Users')['getUser'](_0x4401eb)),'fromVersion':_0x4335fd};_0x53d9c6===this['currentRevision']&&(_0x3c1ef7['createdAt']=new Date(_0x197a6b['createdAt']['getTime']()+0xa)),_0x53d9c6['_update'](_0x3c1ef7,!0x0),delete _0x3c1ef7['authors'],_0x16e7dc['push'](_0x3c1ef7);}}if(this['adapter']){for(const _0x55ee45 of _0x16e7dc)this['_bufferUpdate'](_0x55ee45['id'],_0x55ee45,!0x0);this['sendBufferedUpdates']();}return _0x5f3f82;}['addRevisionData'](_0x2d547d){const _0x5658e9=this['repository']['createRevision'](_0x2d547d);return this['adapter']&&_0x5658e9['on']('_update',(_0xfc598c,_0x1eb4a3,_0x2db94e)=>{_0x2db94e||(this['_bufferUpdate'](_0x1eb4a3['id'],_0x1eb4a3,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x5658e9,this['_findInsertionIndex'](_0x5658e9)),_0x5658e9;}async['getRevisionDocumentData'](_0x3ce1bf){await this['_loadRevisionData'](_0x3ce1bf);const _0x4b1bda={};for(const _0x1f2d06 in _0x3ce1bf['diffData']){if(_0x3ce1bf['diffData'][_0x1f2d06]['attachChange']&&!_0x3ce1bf['diffData'][_0x1f2d06]['attachChange']['isAttached'])continue;const _0x56ce61=this['_removeRevisionMarkers'](JSON['parse'](_0x3ce1bf['diffData'][_0x1f2d06]['insertions'])),_0x3fee00=this['editor']['editing']['view']['document'],_0x5d4d0e=new _0xe0cd86(_0x3fee00,_0x56ce61['map'](_0x17efe8=>C(_0x17efe8,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x4b1bda[_0x1f2d06]=this['editor']['data']['processor']['toData'](_0x5d4d0e),this['editor']['data']['processor']['useFillerType']('default');}return _0x4b1bda;}async['getRevisionRootsAttributes'](_0x2f4129){await this['_loadRevisionData'](_0x2f4129);const _0x86b8fd={};for(const _0x45ba8a in _0x2f4129['diffData'])_0x2f4129['diffData'][_0x45ba8a]['attachChange']&&!_0x2f4129['diffData'][_0x45ba8a]['attachChange']['isAttached']||(_0x86b8fd[_0x45ba8a]=_0x2f4129['diffData'][_0x45ba8a]['attributesAfter']||{});return _0x86b8fd;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x421170=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x334047=0x0;_0x334047<_0x421170['length'];_0x334047++){const _0x712c5d=_0x421170[_0x334047];let _0x3d540a=!0x1;for(const _0x3478fd of Object['keys'](_0x712c5d))void 0x0===_0x712c5d[_0x3478fd]?delete _0x712c5d[_0x3478fd]:'id'!==_0x3478fd&&(_0x3d540a=!0x0);_0x3d540a||(_0x421170[_0x334047]=null);}if(_0x421170=_0x421170['filter'](_0x4c29e0=>null!==_0x4c29e0),!_0x421170['length'])return;for(let _0x334f72=0x0;_0x334f72<_0x421170['length'];_0x334f72++){const _0x54247f=_0x421170[_0x334f72];void 0x0!==_0x54247f['fromVersion']&&void 0x0===_0x54247f['toVersion']&&(_0x54247f['toVersion']=this['repository']['getRevision'](_0x54247f['id'])['toVersion']),void 0x0!==_0x54247f['toVersion']&&void 0x0===_0x54247f['fromVersion']&&(_0x54247f['fromVersion']=this['repository']['getRevision'](_0x54247f['id'])['fromVersion']);}const _0x37df33=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x421170,_0x37df33)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x193bcb=>{if(_0x193bcb){for(const _0x15d5f8 of _0x193bcb)this['setRevisionData']({'id':_0x15d5f8['id'],'createdAt':_0x15d5f8['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x57b5e6,_0x4d5f8d){let _0x339644=this['editor']['config']['get']('initialData'),_0x4fbd49=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x339644){_0x339644={};for(const _0x57fea9 of this['editor']['model']['document']['getRootNames']())_0x339644[_0x57fea9]='';}if('string'==typeof _0x339644&&(_0x339644={'main':_0x339644}),void 0x0===_0x4fbd49){_0x4fbd49={};for(const _0x598194 of this['editor']['model']['document']['getRootNames']())_0x4fbd49[_0x598194]={};}let _0x23cc32=!0x1;const _0x35a309=Object['keys'](_0x339644),_0x3b3bf5=Object['keys'](_0x57b5e6);for(const _0x553b02 of _0x35a309){if(_0x339644[_0x553b02]!==_0x57b5e6[_0x553b02]&&''!==_0x339644[_0x553b02]['trim']()){_0x23cc32=!0x0;break;}if(!_0x31d3ce(_0x4fbd49[_0x553b02],_0x4d5f8d[_0x553b02])&&Object['keys'](_0x4fbd49[_0x553b02])['length']>0x0){_0x23cc32=!0x0;break;}}_0x23cc32||(_0x23cc32=_0x3b3bf5['some'](_0x44cad2=>!this['editor']['model']['document']['getRoot'](_0x44cad2))),_0x23cc32&&_0x13b4f9('editor-initial-data-replaced-with-revision-data',{'editorData':_0x339644,'editorRootsAttributes':_0x4fbd49,'revisionData':_0x57b5e6,'revisionRootsAttributes':_0x4d5f8d}),this['editor']['config']['set']('initialData',_0x57b5e6),this['editor']['config']['set']('rootsAttributes',_0x4d5f8d);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x33b85b=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x33b85b['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x371d8c){const _0x2afef7=this['repository']['getRevisions']();_0x2afef7['reverse']();let _0x1510c6=0x0;for(;_0x1510c6<_0x2afef7['length'];){const _0x10b51c=_0x2afef7[_0x1510c6];if(_0x10b51c===this['currentRevision']){_0x1510c6++;continue;}if(_0x10b51c['id']===this['_initialRevisionId'])break;const _0x10a36a=_0x371d8c['toVersion']-_0x10b51c['toVersion']||_0x371d8c['fromVersion']-_0x10b51c['fromVersion'];if(_0x10a36a>0x0)break;if(_0x10a36a<0x0)_0x1510c6++;else{if(!_0x371d8c['creator']&&_0x10b51c['creator'])break;if(_0x10b51c['creator']||!_0x371d8c['creator']){if(_0x371d8c['createdAt']>_0x10b51c['createdAt'])break;_0x1510c6++;}else _0x1510c6++;}}return _0x1510c6;}['setRevisionData'](_0x500044){const _0x2f07ba=this['repository']['getRevision'](_0x500044['id']);if(_0x500044['createdAt']&&(_0x500044['createdAt']=new Date(_0x500044['createdAt'])),_0x500044['authorsIds']){const _0x13a03d=this['editor']['plugins']['get']('Users');_0x500044['authors']=_0x500044['authorsIds']['map'](_0xf4055b=>_0x13a03d['getUser'](_0xf4055b));}_0x2f07ba['_update'](_0x500044,!0x0);}['buildRevisionData']({revision:_0x42f3c9=null,from:_0x2140de=null,to:_0x2b1431=null}){_0x2140de=null!==_0x2140de?_0x2140de:_0x42f3c9['fromVersion'],_0x2b1431=null!==_0x2b1431?_0x2b1431:_0x42f3c9['toVersion'];const _0x4030d3=this['_revisionDataBuilder']['getData'](_0x2140de,_0x2b1431),_0xbe26eb={'diffData':_0x4030d3['diffData'],'authorsIds':_0x4030d3['authorsIds'],'fromVersion':_0x2140de,'toVersion':_0x2b1431};if(!_0x42f3c9||_0x2b1431!==_0x42f3c9['toVersion']){const _0x59ce7f=_0x2b1431-0x1,_0xbf998d=this['_source']['history']['getOperation'](_0x59ce7f);_0xbe26eb['createdAt']=_0xbf998d&&_0xbf998d['createdAt']||new Date();}if(this['_loadedStateData']&&_0x2140de===this['_loadedStateData']['fromVersion']){for(const _0x59929e of this['_loadedStateData']['authors'])_0xbe26eb['authorsIds']['includes'](_0x59929e['id'])||_0xbe26eb['authorsIds']['push'](_0x59929e['id']);}return _0xbe26eb;}['_loadRevisionData'](_0x423322){if(!_0x423322||_0x423322['diffData'])return Promise['resolve']();{const _0x1976be=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x1976be,'revisionId':_0x423322['id']})['then'](_0x2acabf=>{_0x423322['diffData']=_0x2acabf['diffData'];});}}['_bufferUpdate'](_0x38d7dd,_0xb163f7,_0xd7fa7c){if(this['_bufferedUpdates']['has'](_0x38d7dd)){const _0xdfb099=this['_bufferedUpdates']['get'](_0x38d7dd);_0xb163f7=_0xd7fa7c?{..._0xdfb099,..._0xb163f7}:{..._0xb163f7,..._0xdfb099};}this['_bufferedUpdates']['set'](_0x38d7dd,_0xb163f7);}['_getFromVersion'](_0x4685c9){const _0x5b4984=this['repository']['getRevisions']();_0x5b4984['reverse'](),_0x5b4984['shift']();const _0x4e1241=_0x5b4984['find'](_0x1f1903=>_0x1f1903['toVersion']<=_0x4685c9)['toVersion'];return _0x4e1241<this['_startingVersion']?this['_startingVersion']:_0x4e1241;}['_createInitialRevision'](_0x1255b4){const _0x27dd8a=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x27dd8a)this['_initialRevisionId']=_0x27dd8a['id'];else{const _0x54fd3f=!this['editor']['model']['document']['roots']['find'](_0x26fc58=>this['editor']['model']['hasContent'](_0x26fc58)),_0x181597=this['editor']['plugins']['get']('Users')['me']['id'],_0x3cdf61=m(this['editor']['locale'],_0x54fd3f?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x1255b4,'to':_0x1255b4,'id':this['_initialRevisionId'],'name':_0x3cdf61,'creatorId':_0x181597});}}['_createCurrentRevision'](_0x18f463){const _0x9d2e07=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x9d2e07),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x18f463,'to':_0x18f463,'id':_0x9d2e07,'name':'','creatorId':null}));}['_makeRevision']({name:_0x4a064c,from:_0x2c00b6,to:_0x28c0c1,creatorId:_0x27ed7b,id:_0x52c57f}){const _0x590c5b=this['buildRevisionData']({'from':_0x2c00b6,'to':_0x28c0c1});_0x590c5b['name']=_0x4a064c,_0x590c5b['creatorId']=_0x27ed7b,_0x590c5b['id']=_0x52c57f;const _0x368a56=this['addRevisionData'](_0x590c5b);return this['adapter']&&this['_bufferUpdate'](_0x590c5b['id'],_0x590c5b,!0x0),_0x368a56;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x331ac1){return(_0x331ac1=_0x331ac1['filter'](_0x2ffe28=>!_0x2ffe28['name']||'revision-start'!==_0x2ffe28['name']&&'revision-end'!==_0x2ffe28['name']))['forEach'](_0x7aa3e3=>{'string'!=typeof _0x7aa3e3&&(_0x7aa3e3['children']=this['_removeRevisionMarkers'](_0x7aa3e3['children']),_0x7aa3e3['attributes']=_0x7aa3e3['attributes']['filter'](_0x1ffae2=>!_0x1ffae2[0x0]['startsWith']('data-revision-')));}),_0x331ac1;}}function C(_0x4100d0,_0xfe8188){const _0x485816=_0xfe8188['editing']['view']['document'];if('string'==typeof _0x4100d0)return new _0x293831(_0x485816,_0x4100d0);{const _0x2b527d=_0x4100d0['children']['map'](_0xc252e3=>C(_0xc252e3,_0xfe8188));return new(P[_0x4100d0['type']]||_0x1faa4b)(_0x485816,_0x4100d0['name'],_0x4100d0['attributes'],_0x2b527d);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0xd9957d){this['editor']=_0xd9957d,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'](_0xb6f5f8){this['source']=_0xb6f5f8;const _0x148104=new Map(),_0x1fcc6b=new Map(),_0x4a877c=this['editor']['model']['document']['roots']['map'](_0x586207=>_0x586207['rootName']);for(const _0xafe297 of _0x4a877c){const _0x4349c2=this['editor']['model']['document']['getRoot'](_0xafe297),_0x308dab=T(_0x4349c2);_0x148104['set'](_0xafe297,_0x308dab),_0x1fcc6b['set'](_0xafe297,Object['fromEntries'](_0x4349c2['getAttributes']()));}const _0x333134=Array['from'](this['editor']['model']['markers'])['map'](_0x1fc47b=>[_0x1fc47b['name'],_0x1fc47b['getRange']()]),_0x2788ff=this['source']['version'];this['_saveMetaData'](_0x2788ff,_0x148104,_0x333134,_0x1fcc6b),this['_startingRevisionId']=this['_revisionId'];const _0x7b4629=new Map(),_0x47fe83=new Map();for(const _0xe27cc2 of _0x4a877c){const _0x310593=F(_0xe27cc2);_0x7b4629['set'](_0xe27cc2,_0x310593),_0x47fe83['set'](_0xe27cc2,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x7b4629,[],_0x47fe83);}['getData'](_0xe576c7,_0x30d45b){if(this['_lastFrom']===_0xe576c7&&this['_lastTo']<=_0x30d45b)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x30d45b,!0x0);else{if(!this['_savedMetaData']['has'](_0xe576c7)){const _0x4af291=this['_getPreviousFrom'](_0xe576c7);this['_calculateMetaData'](_0x4af291,_0xe576c7,!0x1);}this['_calculateMetaData'](_0xe576c7,_0x30d45b,!0x0);}return this['_lastFrom']=_0xe576c7,this['_lastTo']=_0x30d45b,this['_getState']();}['loadState'](_0x5d8267){this['_reset'](),this['_lastFrom']=_0x5d8267['fromVersion'],this['_lastTo']=_0x5d8267['toVersion'];for(const _0x22d0db in _0x5d8267['diffData']){const _0x2fb37f=_0x5d8267['diffData'][_0x22d0db]['attachChange'],_0x1a5ba1=_0x49c00c(_0x5d8267['diffData'][_0x22d0db]['attributesBefore'])||{},_0x9ef78e=this['_makeModelFromViewString'](_0x5d8267['diffData'][_0x22d0db]['deletions']);_0x9ef78e['rootName']=_0x22d0db,_0x9ef78e['_isAttached']=!_0x2fb37f||!_0x2fb37f['isAttached'],_0x9ef78e['isAttached']=()=>_0x9ef78e['_isAttached'],this['_baseRoots']['set'](_0x22d0db,_0x9ef78e),this['_baseRootsAttributes']['set'](_0x22d0db,_0x1a5ba1),_0x2fb37f&&this['_touchedRoots']['set'](_0x22d0db,_0x2fb37f);const _0x4946bb=this['_makeIdsRoot'](_0x9ef78e);this['_baseIdsRoots']['set'](_0x22d0db,_0x4946bb);for(const [_0xe4f72e,_0x54b34c]of _0x9ef78e['markers']){if(!_0xe4f72e['startsWith']('revision:'))continue;const _0x4fcf93=_0xe4f72e['split'](':')[0x2];for(const _0x5691ff of _0x54b34c['getWalker']({'singleCharacters':!0x0})){const _0x5dbb65=this['_getVidAttributeName'](_0x5691ff),_0x3e86a7='elementEnd'==_0x5691ff['type']?_0x5691ff['previousPosition']['path']['slice'](0x0,-0x1):_0x5691ff['previousPosition']['path'],_0x4763b6=_0x4946bb['getNodeByPath'](_0x3e86a7)['getAttribute'](_0x5dbb65);this['_touched']['set'](_0x4763b6,{'userId':_0x4fcf93});}}}this['_startingRevisionId']=this['_revisionId'];const _0x43522b=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x1552a2=>!this['_touched']['has'](_0x1552a2));let _0x336120=0x0;const _0x2836e7=new Map();for(const _0x552572 in _0x5d8267['diffData']){const _0x1caefb=_0x5d8267['diffData'][_0x552572]['attachChange'],_0x17c33f=_0x49c00c(_0x5d8267['diffData'][_0x552572]['attributesAfter'])||{},_0x31e727=this['_makeModelFromViewString'](_0x5d8267['diffData'][_0x552572]['insertions']);_0x31e727['rootName']=_0x552572,_0x31e727['_isAttached']=!_0x1caefb||_0x1caefb['isAttached'],_0x31e727['isAttached']=()=>_0x31e727['_isAttached'],this['_diffRoots']['set'](_0x552572,_0x31e727),this['_diffRootsAttributes']['set'](_0x552572,_0x17c33f);const _0x245010=this['_makeIdsRoot'](_0x31e727,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x552572,_0x245010),_0x2836e7['set'](_0x552572,_0x31e727['isAttached']()?_0x17c33f:{});for(const [_0x1c2d9b,_0x5dd2d0]of _0x31e727['markers']){if(!_0x1c2d9b['startsWith']('revision:'))continue;const _0x9454c=_0x1c2d9b['split'](':')[0x2];for(const _0xf7d61d of _0x5dd2d0['getWalker']({'singleCharacters':!0x0})){const _0x56c344=this['_getVidAttributeName'](_0xf7d61d),_0x12c808=this['_revisionId']++,_0x434227='elementEnd'==_0xf7d61d['type']?_0xf7d61d['previousPosition']['path']['slice'](0x0,-0x1):_0xf7d61d['previousPosition']['path'];_0x245010['getNodeByPath'](_0x434227)['_setAttribute'](_0x56c344,_0x12c808),this['_touched']['set'](_0x12c808,{'userId':_0x9454c});}}for(const _0xd1a5f0 of this['editor']['model']['createRangeIn'](_0x31e727)['getWalker']({'singleCharacters':!0x0})){const _0x57bdc4=this['_getVidAttributeName'](_0xd1a5f0),_0x1b6108='elementEnd'==_0xd1a5f0['type']?_0xd1a5f0['previousPosition']['path']['slice'](0x0,-0x1):_0xd1a5f0['previousPosition']['path'],_0x5e5a9a=_0x245010['getNodeByPath'](_0x1b6108);_0x5e5a9a['getAttribute'](_0x57bdc4)>0x0||_0x5e5a9a['_setAttribute'](_0x57bdc4,_0x43522b[_0x336120++]);}for(const [_0x4c2d84,_0x462538]of _0x31e727['markers'])_0x4c2d84['startsWith']('revision:')||this['_markers']['set'](_0x4c2d84,_0x462538);}const _0x56ecb0=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x56ecb0),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x56ecb0,0x1));const _0x42e869=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x42e869),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x42e869,0x1));const _0x3c0013=Array['from'](this['_diffRoots'])['map'](([_0x280af8,_0x2742cd])=>[_0x280af8,T(_0x2742cd)]);this['_saveMetaData'](this['_lastTo'],_0x3c0013,this['_markers'],_0x2836e7);}['_makeModelFromViewString'](_0x3606d0){const _0x5456c5=JSON['parse'](_0x3606d0),_0x3b383=this['editor']['editing']['view']['document'],_0x44e747=new _0xe0cd86(_0x3b383,_0x5456c5['map'](_0x13d52e=>C(_0x13d52e,this['editor'])));return this['editor']['data']['toModel'](_0x44e747);}['_saveMetaData'](_0x138823,_0xf6aa99,_0x3a3aad,_0x44771d){const _0x2a3976=new Map(_0xf6aa99),_0x5c0870=new Map(_0x49c00c(_0x44771d)),_0x58a5f3=new Map();for(const [_0x4c7c0e,_0x2f3727]of _0x3a3aad)_0x58a5f3['set'](_0x4c7c0e,{'start':_0x2f3727['start']['clone'](),'end':_0x2f3727['end']['clone'](),'rootName':_0x2f3727['root']['rootName']});this['_savedMetaData']['set'](_0x138823,{'roots':_0x2a3976,'markers':_0x58a5f3,'rootsAttributes':_0x5c0870});}['_removeMetaData'](_0x5c83d2){this['_savedMetaData']['delete'](_0x5c83d2);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x35e3c7,_0x232f13=null){let _0x65e899=null;_0x35e3c7['is']('documentFragment')||(_0x65e899=new ft(_0x35e3c7['name'],{'vid_start':null===_0x232f13?this['_revisionId']++:_0x232f13++}));const _0x103b39=[];for(const _0xea48bf of _0x35e3c7['getChildren']())if(_0xea48bf['is']('element')){_0x103b39['push'](this['_makeIdsRoot'](_0xea48bf,_0x232f13));const _0x29ed32=_0x103b39[_0x103b39['length']-0x1];null!==_0x232f13&&(_0x232f13=_0x29ed32['is']('element','$text')?_0x29ed32['getAttribute']('vid')+0x1:_0x29ed32['getAttribute']('vid_end')+0x1);}else{for(let _0x7ab58=0x0;_0x7ab58<_0xea48bf['offsetSize'];_0x7ab58++)_0x103b39['push'](new ft('$text',{'vid':null===_0x232f13?this['_revisionId']++:_0x232f13++}));}if(_0x35e3c7['is']('documentFragment')){const _0x151351=F(_0x35e3c7['rootName']);return _0x151351['_insertChild'](0x0,_0x103b39),_0x151351;}return _0x65e899['_setAttribute']('vid_end',null===_0x232f13?this['_revisionId']++:_0x232f13++),_0x65e899['_insertChild'](0x0,_0x103b39),_0x65e899;}['_calculateMetaData'](_0x1edb12,_0x370d8c,_0x389679){this['_reset']();const {roots:_0x10a308,markers:_0x237288,rootsAttributes:_0x5d28da}=this['_savedMetaData']['get'](_0x1edb12);this['_baseRoots']=new Map(_0x10a308),this['_baseRootsAttributes']=new Map(_0x49c00c(_0x5d28da));for(const [_0x3286cd,_0x346f7b]of this['_baseRoots'])if('$graveyard'!==_0x3286cd&&(this['_diffRoots']['set'](_0x3286cd,T(_0x346f7b)),this['_diffRootsAttributes']=new Map(_0x49c00c(_0x5d28da)),_0x389679)){const _0x54380f=this['_revisionId'];this['_idsRoots']['set'](_0x3286cd,this['_makeIdsRoot'](_0x346f7b)),this['_baseIdsRoots']['set'](_0x3286cd,this['_makeIdsRoot'](_0x346f7b,_0x54380f));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x389679&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x145698,_0x50567f]of _0x237288){const _0x3a84d2=this['_baseRoots']['get'](_0x50567f['rootName']),_0x363a02=this['_diffRoots']['get'](_0x50567f['rootName']),_0x52cee4=new vt(this['_fixPosition'](_0x50567f['start'],_0x3a84d2),this['_fixPosition'](_0x50567f['end'],_0x3a84d2)),_0x4fdacc=this['_fixRange'](_0x52cee4,_0x363a02);_0x3a84d2['markers']['set'](_0x145698,_0x52cee4),this['_markers']['set'](_0x145698,_0x4fdacc);}this['_applyOperations'](_0x1edb12,_0x370d8c,_0x389679);}['_applyOperations'](_0x3f0824,_0x54ef35,_0x1b9195){for(const _0x5196d4 of this['source']['getOperations'](_0x3f0824,_0x54ef35))this['_handleOperation'](_0x5196d4,_0x1b9195);for(const _0x4fed6b of this['_diffRoots']['values']())_0x4fed6b['markers']['clear']();for(const [_0x32095a,_0x513a41]of this['_markers']){this['_diffRoots']['get'](_0x513a41['root']['rootName'])['markers']['set'](_0x32095a,_0x513a41['clone']());}const _0x2242cb=new Map(),_0x15b7c0=new Map();for(const [_0x19555a,_0x285ec0]of this['_diffRoots'])_0x2242cb['set'](_0x19555a,T(_0x285ec0)),_0x15b7c0['set'](_0x19555a,this['_diffRootsAttributes']['get'](_0x19555a));this['_saveMetaData'](_0x54ef35,_0x2242cb,this['_markers'],_0x15b7c0);}['_getPreviousFrom'](_0x700416){const _0x287274=Array['from'](this['_savedMetaData']['keys']());_0x287274['sort']((_0x406b1f,_0x361d4d)=>_0x406b1f-_0x361d4d),_0x287274['reverse']();for(const _0x38db5b of _0x287274)if(_0x38db5b<_0x700416)return _0x38db5b;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x2e7cd8,_0x44707e){const _0x44c033=Array['from'](_0x44707e['markers'])['map'](([_0x33d8e6,_0x398973])=>[_0x33d8e6,this['_fixRange'](_0x398973,_0x2e7cd8)]);_0x2e7cd8['markers']=new Map(_0x44c033);}['_transformMarkers'](_0x58d2b9){for(const _0x36fd02 of this['_markers']['values']()){const _0x55400d=_0x36fd02['getTransformedByOperation'](_0x58d2b9),_0x51faf6=vt['_createFromRanges'](_0x55400d);_0x36fd02['start']=_0x51faf6['start'],_0x36fd02['end']=_0x51faf6['end'];}}['_handleOperation'](_0x131b21,_0x16b8b7){if('addRoot'!=_0x131b21['type']&&'detachRoot'!=_0x131b21['type']){if('insert'==_0x131b21['type']){const _0xe6625c=_0x131b21['position']['root']['rootName'];this['_diffRoots']['has'](_0xe6625c)||(this['_diffRoots']['set'](_0xe6625c,F(_0xe6625c,!0x0)),this['_diffRootsAttributes']['set'](_0xe6625c,{}),_0x16b8b7&&this['_idsRoots']['set'](_0xe6625c,F(_0xe6625c,!0x0)));}else{if('addRootAttribute'==_0x131b21['type']||'removeRootAttribute'==_0x131b21['type']||'changeRootAttribute'==_0x131b21['type'])return void this['_handleRootAttributeOperation'](_0x131b21);'marker'==_0x131b21['type']&&this['_handleMarkerOperation'](_0x131b21);}if('marker'!==_0x131b21['type']){const _0xedc831=this['_cloneOperation'](_0x131b21,this['_diffRoots']);_0xedc831['_execute'](),this['_transformMarkers'](_0xedc831);}if(_0x16b8b7)switch(_0x131b21['type']){case'insert':this['_handleInsertOperation'](_0x131b21);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x131b21);break;case'merge':this['_handleMergeOperation'](_0x131b21);break;case'split':this['_handleSplitOperation'](_0x131b21);}}else this['_handleRootOperation'](_0x131b21,_0x16b8b7);}['_cloneOperation'](_0x16f6fc,_0x3eccf7){const _0x2ae636=_0x16f6fc['clone']();return _0x2ae636['_authorId']=_0x16f6fc['_authorId'],this['_fixOperation'](_0x2ae636,_0x3eccf7),_0x2ae636;}['_getBaseVids'](_0x54291d){return _0x54291d['map'](_0x4d543f=>{const _0x5d5ab8=this['_getVidAttributeName'](_0x4d543f);return Number(_0x4d543f['item']['getAttribute'](_0x5d5ab8));});}['_generateTape'](_0x382099,_0x592828){if(_0x382099['is']('element','$text'))_0x592828['push']({'item':_0x382099,'type':'text'});else{_0x382099['is']('element')&&_0x592828['push']({'item':_0x382099,'type':'elementStart'});for(const _0x551e31 of _0x382099['getChildren']())this['_generateTape'](_0x551e31,_0x592828);_0x382099['is']('element')&&_0x592828['push']({'item':_0x382099,'type':'elementEnd'});}return _0x592828;}['_getState'](){const _0x2e606a=new Map(this['_touched']),_0x2347bc=new Map(_0x2e606a),_0x47e7d3=new Map(),_0x51febf={'insertions':{},'deletions':{}},_0x34830b={'insertions':{},'deletions':{}},_0x3e7577=new Map(),_0x450f6d=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x450f6d['delete']('$graveyard');for(const _0x198a2c of _0x450f6d){const _0x3ec0bf=this['_diffRoots']['get'](_0x198a2c)||F(_0x198a2c,!0x1),_0x274a2c=this['_baseRoots']['get'](_0x198a2c)||F(_0x198a2c,!0x1);_0x3ec0bf['isAttached']()||_0x274a2c['isAttached']()?(_0x51febf['insertions'][_0x198a2c]=T(_0x3ec0bf),_0x51febf['deletions'][_0x198a2c]=T(_0x274a2c),this['_copyMarkers'](_0x51febf['deletions'][_0x198a2c],_0x274a2c),this['_copyMarkers'](_0x51febf['insertions'][_0x198a2c],_0x3ec0bf),_0x34830b['insertions'][_0x198a2c]=this['_generateTape'](this['_idsRoots']['get'](_0x198a2c),[]),_0x34830b['deletions'][_0x198a2c]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x198a2c)||F(_0x198a2c,!0x1),[])):_0x450f6d['delete'](_0x198a2c);}for(const _0x38ecfb of _0x450f6d){const _0x16c372=_0x34830b['insertions'][_0x38ecfb];for(const _0x462f28 of _0x16c372){const _0x503e7f=this['_getVidAttributeName'](_0x462f28),_0x493dc3=_0x462f28['item']['getAttribute'](_0x503e7f);_0x2347bc['delete'](_0x493dc3),_0x493dc3>=this['_startingRevisionId']&&_0x47e7d3['set'](_0x493dc3,_0x2e606a['get'](_0x493dc3));}}for(const _0x290cb3 of _0x450f6d){const _0x593197=_0x34830b['insertions'][_0x290cb3],_0x38e3aa=this['_getBaseVids'](_0x34830b['deletions'][_0x290cb3]);let _0x2afeef=0x0;for(const _0x5f6182 of _0x593197){const _0x5dd3f3=this['_getVidAttributeName'](_0x5f6182),_0x12103b=_0x5f6182['item']['getAttribute'](_0x5dd3f3);if(!_0x47e7d3['has'](_0x12103b)&&!_0x3e7577['has'](_0x12103b)){if(_0x2347bc['has'](_0x12103b))_0x2afeef++;else{if(_0x12103b!=_0x38e3aa[_0x2afeef]){const _0x7a1f02=_0x2e606a['get'](_0x12103b)||_0x2e606a['get'](_0x38e3aa[_0x2afeef]);for(;_0x12103b!=_0x38e3aa[_0x2afeef];)_0x2347bc['has'](_0x38e3aa[_0x2afeef])||(_0x3e7577['set'](_0x38e3aa[_0x2afeef],_0x7a1f02),_0x2e606a['set'](_0x38e3aa[_0x2afeef],_0x7a1f02)),_0x2afeef++;}_0x2afeef++;}}}}for(const _0x3d8006 of _0x450f6d){const _0x43ca3b=_0x34830b['insertions'][_0x3d8006];for(const _0x2001de of _0x43ca3b){const _0x3162a4=this['_getVidAttributeName'](_0x2001de),_0x4c3ad6=_0x2001de['item']['getAttribute'](_0x3162a4);if(_0x3e7577['has'](_0x4c3ad6)){const _0x3b0ce6=_0x3e7577['get'](_0x4c3ad6);_0x2347bc['has'](_0x4c3ad6)||_0x2347bc['set'](_0x4c3ad6,{..._0x3b0ce6}),_0x47e7d3['set'](_0x4c3ad6,{..._0x3b0ce6});}}}for(const _0x4310bc of _0x2347bc['keys']())_0x4310bc>=this['_startingRevisionId']&&_0x2347bc['delete'](_0x4310bc);const _0x283fc2=new Map();for(const _0x585855 of _0x450f6d){let _0x26aea5=_0x34830b['insertions'][_0x585855];for(const _0x3979e9 of _0x26aea5)if(_0x3979e9['item']['is']('element','tableCell')){const _0x1e70eb=this['_getVidAttributeName'](_0x3979e9),_0x386de8=_0x3979e9['item']['getAttribute'](_0x1e70eb);if(_0x47e7d3['has'](_0x386de8)){const _0x49e273=_0x3979e9['item']['parent']['parent']['getAttribute']('vid_start'),_0x13e189=_0x283fc2['get'](_0x49e273)||new Set();_0x13e189['add'](_0x47e7d3['get'](_0x386de8)['userId']),_0x283fc2['set'](_0x49e273,_0x13e189);}}_0x26aea5=_0x34830b['deletions'][_0x585855];for(const _0xac8d02 of _0x26aea5)if(_0xac8d02['item']['is']('element','tableCell')){const _0x38628d=this['_getVidAttributeName'](_0xac8d02),_0x204606=_0xac8d02['item']['getAttribute'](_0x38628d);if(_0x2347bc['has'](_0x204606)){const _0x12c5bd=_0xac8d02['item']['parent']['parent']['getAttribute']('vid_start'),_0x1901c5=_0x283fc2['get'](_0x12c5bd)||new Set();_0x1901c5['add'](_0x2347bc['get'](_0x204606)['userId']),_0x283fc2['set'](_0x12c5bd,_0x1901c5);}}for(const _0x5de2ac of _0x283fc2['keys']())(_0x47e7d3['has'](_0x5de2ac)||_0x2347bc['has'](_0x5de2ac))&&_0x283fc2['delete'](_0x5de2ac);}for(const _0x4cff28 of _0x450f6d){const _0x4e8d6e=_0x34830b['insertions'][_0x4cff28];let _0x47035b=null,_0x3197df=null;for(const _0x411f38 of _0x4e8d6e){const _0x3c7b03=this['_getVidAttributeName'](_0x411f38),_0x87b92=_0x411f38['item']['getAttribute'](_0x3c7b03),_0x291d67=_0x283fc2['get'](_0x87b92);_0x291d67&&'elementStart'==_0x411f38['type']&&(_0x47035b=Array['from'](_0x291d67)[0x0],_0x3197df=_0x411f38['item']['getAttribute']('vid_end')),_0x47035b&&(_0x2347bc['set'](_0x87b92,{'userId':_0x47035b}),_0x47e7d3['set'](_0x87b92,{'userId':_0x47035b})),_0x87b92==_0x3197df&&(_0x47035b=null,_0x3197df=null);}}const _0x2e33b1={},_0x355271=new Set();for(const _0x9b9b29 of _0x450f6d){const _0x275373=_0x51febf['deletions'][_0x9b9b29],_0x2233fe=_0x51febf['insertions'][_0x9b9b29];for(const {userId:_0x2dceff}of this['_touchedMarkers']['values']())null!==_0x2dceff&&_0x355271['add'](_0x2dceff);for(const {userId:_0x3a10a4}of this['_touchedRoots']['values']())null!==_0x3a10a4&&_0x355271['add'](_0x3a10a4);this['_markChanges'](_0x2233fe,_0x34830b['insertions'][_0x9b9b29],_0x47e7d3,'insertion',_0x355271),this['_markChanges'](_0x275373,_0x34830b['deletions'][_0x9b9b29],_0x2347bc,'deletion',_0x355271),_0x2e33b1[_0x9b9b29]={'insertions':this['_prepareViewToSave'](_0x2233fe),'deletions':this['_prepareViewToSave'](_0x275373),'attachChange':this['_touchedRoots']['get'](_0x9b9b29)||null,'attributesBefore':_0x49c00c(this['_baseRootsAttributes']['get'](_0x9b9b29))||{},'attributesAfter':_0x49c00c(this['_diffRootsAttributes']['get'](_0x9b9b29))};}return{'diffData':_0x2e33b1,'authorsIds':Array['from'](_0x355271)};}['_processRootBeforeSave'](_0x57d30c){for(const [,_0x42c7c7]of _0x57d30c['markers']){const _0x5793dc=_0x42c7c7['start']['getAncestors']()['filter'](_0x32af7f=>'tableCell'==_0x32af7f['name']);for(const _0x1a33d0 of _0x5793dc)0x1==_0x1a33d0['childCount']&&_0x1a33d0['getChild'](0x0)['is']('element','paragraph')&&_0x1a33d0['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x260d1b){this['_processRootBeforeSave'](_0x260d1b);const _0x32ef48=this['editor']['data']['toView'](_0x260d1b,{}),_0x5d4ce0=Array['from'](_0x32ef48['getChildren']())['map'](_0x16e445=>this['_getViewJson'](_0x16e445));return JSON['stringify'](_0x5d4ce0);}['_getViewJson'](_0x460f01){if(_0x460f01['is']('$text'))return _0x460f01['data'];{const _0x133bac=_0x460f01;return{'type':Object['keys'](P)['find'](_0x1691cb=>_0x460f01 instanceof P[_0x1691cb]),'name':_0x133bac['name'],'attributes':Array['from'](_0x133bac['getAttributes']()),'children':Array['from'](_0x133bac['getChildren']())['map'](_0x2ee5d9=>this['_getViewJson'](_0x2ee5d9))};}}['_markChanges'](_0x55745f,_0x503b6d,_0x1960db,_0x2ca6a0,_0x3f4432){let _0x2a8a24=null,_0x3950dd=null,_0x375247=0x0;const _0x26af40=this['editor']['model'];for(let _0xfe9d0d=0x0;_0xfe9d0d<_0x503b6d['length'];_0xfe9d0d++){const _0x39b9bb=this['_getVidAttributeName'](_0x503b6d[_0xfe9d0d]),_0x5a43e2=_0x503b6d[_0xfe9d0d]['item']['getAttribute'](_0x39b9bb),_0x588575=_0x1960db['get'](_0x5a43e2),_0x5ddb41=_0xfe9d0d==_0x503b6d['length']-0x1;(!_0x2a8a24&&_0x588575&&(_0x2a8a24=_0x588575,_0x3950dd=_0x503b6d[_0xfe9d0d]),_0x2a8a24&&(!_0x588575||_0x588575['userId']!=_0x2a8a24['userId']))&&(_0x44e53d(_0x588575,B(_0x3950dd,_0x55745f,_0x26af40),B(_0x503b6d[_0xfe9d0d],_0x55745f,_0x26af40)),_0x2a8a24=_0x588575||null,_0x3950dd=_0x588575?_0x503b6d[_0xfe9d0d]:null),_0x2a8a24&&_0x5ddb41&&_0x44e53d(_0x588575,B(_0x3950dd,_0x55745f,_0x26af40),J(_0x503b6d[_0xfe9d0d],_0x55745f,_0x26af40));}function _0x44e53d(_0x5a1577,_0x3ed57c,_0x4d1f8a){const _0x2c9142=_0x2a8a24['userId'],_0x4ffb78='revision:'+_0x2ca6a0+':'+_0x2c9142+':'+_0x375247++,_0x3036cb=_0x26af40['createRange'](_0x3ed57c,_0x4d1f8a);_0x55745f['markers']['set'](_0x4ffb78,_0x3036cb),null!==_0x2c9142&&_0x3f4432['add'](_0x2c9142);}}['_getVidAttributeName'](_0x21b3e3){switch(_0x21b3e3['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x30dfc5,_0x46ba5a){_0x30dfc5['baseVersion']=null;for(const _0x3f87c7 in _0x30dfc5){const _0x137478=_0x30dfc5[_0x3f87c7];if(_0x137478 instanceof gt){const _0x538877=_0x46ba5a['get'](_0x137478['root']['rootName']);_0x30dfc5[_0x3f87c7]=this['_fixPosition'](_0x137478,_0x538877);}if(_0x137478 instanceof vt){const _0x2d9b16=_0x46ba5a['get'](_0x137478['root']['rootName']);_0x30dfc5[_0x3f87c7]=this['_fixRange'](_0x137478,_0x2d9b16);}'root'===_0x3f87c7&&(_0x30dfc5['root']=_0x46ba5a['get'](_0x30dfc5['root']['rootName']));}}['_fixRange'](_0x44bfff,_0x47c7e2){return this['editor']['model']['createRange'](this['_fixPosition'](_0x44bfff['start'],_0x47c7e2),this['_fixPosition'](_0x44bfff['end'],_0x47c7e2));}['_fixPosition'](_0x5837e5,_0x3a7945){return this['editor']['model']['createPositionFromPath'](_0x3a7945,_0x5837e5['path'],_0x5837e5['stickiness']);}['_handleInsertOperation'](_0xd1a81f){const _0x13e4cf=this['_idsRoots']['get'](_0xd1a81f['position']['root']['rootName']),_0x280980=this['_fixPosition'](_0xd1a81f['position'],_0x13e4cf),_0x43b02b=null===_0xd1a81f['_authorId']?null:_0xd1a81f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5c339f=_0x280980['parent'],_0x27e931=this['_revisionId'],_0x3fac47=[];for(const _0x53ec3d of _0xd1a81f['nodes'])if(_0x53ec3d['is']('element'))_0x3fac47['push'](this['_makeIdsRoot'](_0x53ec3d));else{for(let _0x4726a0=0x0;_0x4726a0<_0x53ec3d['offsetSize'];_0x4726a0++)_0x3fac47['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x101302=this['_revisionId'];for(let _0x3cb430=_0x27e931;_0x3cb430<_0x101302;_0x3cb430++)this['_touched']['set'](_0x3cb430,{'userId':_0x43b02b});_0x5c339f['_insertChild'](_0x280980['offset'],_0x3fac47);}['_handleMoveOperation'](_0x4db02e){(_0x4db02e=this['_cloneOperation'](_0x4db02e,this['_idsRoots']))['_execute']();const _0x15c41=null===_0x4db02e['_authorId']?null:_0x4db02e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x118080=_0x4db02e['getMovedRangeStart'](),_0x426d87=_0x118080['parent'],_0x2b94df=_0x118080['offset'];!function _0x1057e4(_0x4eec27,_0x71f8ec,_0x4421e2,_0x2b1c2c){for(let _0x377a87=_0x4421e2;_0x377a87<_0x2b1c2c;_0x377a87++){const _0x3c4616=_0x71f8ec['getChild'](_0x377a87);_0x3c4616['is']('element','$text')?_0x4eec27['set'](_0x3c4616['getAttribute']('vid'),{'userId':_0x15c41}):(_0x4eec27['set'](_0x3c4616['getAttribute']('vid_start'),{'userId':_0x15c41}),_0x1057e4(_0x4eec27,_0x3c4616,0x0,_0x3c4616['childCount']),_0x4eec27['set'](_0x3c4616['getAttribute']('vid_end'),{'userId':_0x15c41}));}}(this['_touched'],_0x426d87,_0x2b94df,_0x2b94df+_0x4db02e['howMany']);}['_handleMergeOperation'](_0x3335b5){const _0x4e3613=null===(_0x3335b5=this['_cloneOperation'](_0x3335b5,this['_idsRoots']))['_authorId']?null:_0x3335b5['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3d89a8=_0x3335b5['targetPosition']['parent'],_0x3fb572=_0x3335b5['sourcePosition']['parent'],_0x1e9d78=_0x3d89a8['getAttribute']('vid_end'),_0x1a4b02=_0x3fb572['getAttribute']('vid_start');_0x3d89a8['_setAttribute']('vid_end',_0x3fb572['getAttribute']('vid_end')),_0x3fb572['_setAttribute']('vid_end',_0x1e9d78),this['_touched']['set'](_0x1a4b02,{'userId':_0x4e3613}),this['_touched']['set'](_0x1e9d78,{'userId':_0x4e3613}),_0x3335b5['_execute']();}['_handleSplitOperation'](_0x5397e2){const _0x2d9df7=null===(_0x5397e2=this['_cloneOperation'](_0x5397e2,this['_idsRoots']))['_authorId']?null:_0x5397e2['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2b674a=_0x5397e2['graveyardPosition'],_0x1793bf=_0x5397e2['splitPosition']['parent'];_0x5397e2['_execute']();const _0x3fb8d5=_0x1793bf['getAttribute']('vid_end'),_0x30bbe7=_0x5397e2['insertionPosition']['nodeAfter'];if(_0x2b674a){const _0x3f419b=_0x30bbe7['getAttribute']('vid_end'),_0x384bee=_0x1793bf['getAttribute']('vid_end');_0x1793bf['_setAttribute']('vid_end',_0x3f419b),_0x30bbe7['_setAttribute']('vid_end',_0x384bee),this['_touched']['set'](_0x1793bf['getAttribute']('vid_end'),{'userId':_0x2d9df7}),this['_touched']['set'](_0x30bbe7['getAttribute']('vid_start'),{'userId':_0x2d9df7});}else{const _0xcdac79=this['_revisionId']++,_0x5a7bc2=this['_revisionId']++;_0x1793bf['_setAttribute']('vid_end',_0xcdac79),_0x30bbe7['_setAttribute']('vid_start',_0x5a7bc2),_0x30bbe7['_setAttribute']('vid_end',_0x3fb8d5),this['_touched']['set'](_0xcdac79,{'userId':_0x2d9df7}),this['_touched']['set'](_0x5a7bc2,{'userId':_0x2d9df7});}}['_handleMarkerOperation'](_0x364b2f){if(!_0x364b2f['affectsData'])return;const _0x3e58c3=(_0x364b2f=this['_cloneOperation'](_0x364b2f,this['_diffRoots']))['oldRange']?_0x364b2f['oldRange']['root']:null,_0x24b221=_0x364b2f['newRange']?_0x364b2f['newRange']['root']:null;_0x3e58c3&&this['_markers']['delete'](_0x364b2f['name']),_0x24b221&&this['_markers']['set'](_0x364b2f['name'],_0x364b2f['newRange']['clone']());const _0x3b46ea=null===_0x364b2f['_authorId']?null:_0x364b2f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x191be4=_0x364b2f['name'];if(!this['_touchedMarkers']['has'](_0x191be4))return void this['_touchedMarkers']['set'](_0x191be4,{'range':_0x364b2f['oldRange'],'userId':_0x3b46ea});const _0x4d55fd=this['_touchedMarkers']['get'](_0x191be4),_0x5e41a7=_0x4d55fd['range'],_0x4f0cbd=_0x364b2f['newRange'];null==_0x5e41a7&&null==_0x4f0cbd||_0x5e41a7&&_0x4f0cbd&&_0x5e41a7['isEqual'](_0x4f0cbd)?this['_touchedMarkers']['delete'](_0x364b2f['name']):_0x4d55fd['userId']=_0x3b46ea;}['_handleRootOperation'](_0x36b2ca,_0x344da2){this['_diffRoots']['has'](_0x36b2ca['rootName'])?this['_diffRoots']['get'](_0x36b2ca['rootName'])['_isAttached']=_0x36b2ca['isAdd']:(this['_diffRoots']['set'](_0x36b2ca['rootName'],F(_0x36b2ca['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x36b2ca['rootName'],{}),_0x344da2&&this['_idsRoots']['set'](_0x36b2ca['rootName'],F(_0x36b2ca['rootName'],!0x0)));const _0x408cfd=null===_0x36b2ca['_authorId']?null:_0x36b2ca['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3b14b4=this['_touchedRoots']['get'](_0x36b2ca['rootName']);_0x3b14b4&&_0x3b14b4['userId']===_0x408cfd?this['_touchedRoots']['delete'](_0x36b2ca['rootName']):this['_touchedRoots']['set'](_0x36b2ca['rootName'],{'userId':_0x408cfd,'isAttached':_0x36b2ca['isAdd']});}['_handleRootAttributeOperation'](_0x2d4490){const _0x5647ea=this['_diffRootsAttributes']['get'](_0x2d4490['root']['rootName']);null===_0x2d4490['newValue']?delete _0x5647ea[_0x2d4490['key']]:_0x5647ea[_0x2d4490['key']]=_0x2d4490['newValue'];}}function T(_0x44e413){const _0x27c7c3=F(_0x44e413['rootName'],_0x44e413['isAttached']());for(const _0x3b8e81 of _0x44e413['getChildren']()){const _0x26e11b=_0x3b8e81['_clone'](!0x0);_0x27c7c3['_appendChild'](_0x26e11b);}return _0x27c7c3;}function F(_0x4ab756,_0x50c57b=!0x0){const _0x2767dc=new mt();return _0x2767dc['rootName']=_0x4ab756,_0x2767dc['_isAttached']=_0x50c57b,_0x2767dc['isAttached']=()=>_0x2767dc['_isAttached'],_0x2767dc;}function B(_0x22acfc,_0x7c5176,_0x31d993){const _0x5a9526='elementEnd'==_0x22acfc['type']?_0x31d993['createPositionAt'](_0x22acfc['item'],'end'):_0x31d993['createPositionBefore'](_0x22acfc['item']);return _0x31d993['createPositionFromPath'](_0x7c5176,_0x5a9526['path'],_0x5a9526['stickiness']);}function J(_0x2c68c9,_0x4ef0fa,_0x181ba7){const _0x52fd62='elementStart'==_0x2c68c9['type']?_0x181ba7['createPositionAt'](_0x2c68c9['item'],0x0):_0x181ba7['createPositionAfter'](_0x2c68c9['item']);return _0x181ba7['createPositionFromPath'](_0x4ef0fa,_0x52fd62['path'],_0x52fd62['stickiness']);}class ns extends _0x3f0f05{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x2a9518,_0x58a1e9){super(_0x2a9518),this['focusTracker']=new _0x14a05e(),this['keystrokes']=new _0x593668(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x58a1e9),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),ts(this);}['render'](){super['render'](),_0x6652f9({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x3f6750=_0x19ddc2=>_0x19ddc2['stopPropagation']();this['keystrokes']['set']('arrowright',_0x3f6750),this['keystrokes']['set']('arrowleft',_0x3f6750),this['keystrokes']['set']('arrowup',_0x3f6750),this['keystrokes']['set']('arrowdown',_0x3f6750);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x247974){this['revisionNameInputView']['fieldView']['element']['value']=_0x247974['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x4f65de){const _0x1ff2eb=new nt(this['locale'],_0x1d572c),_0x45cb5b=_0x1ff2eb['fieldView'];_0x45cb5b['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x3ed297=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x4f65de&&(_0x3ed297+='\x20('+m(this['locale'],'optional')+')'),(_0x1ff2eb['label']=_0x3ed297,_0x45cb5b['on']('input',()=>{this['revisionNameInputValue']=_0x45cb5b['element']['value']['trim']();}),_0x1ff2eb);}}class u extends _0x38c4e4{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x25369f=this['editor'],_0x595b11=_0x25369f['plugins']['get']('RevisionTracker');_0x25369f['ui']['componentFactory']['add']('revisionHistory',_0x3f1969=>{const _0x37b6e8=_0x2a9d1c(_0x3f1969),_0x3971d0=_0x37b6e8['panelView']['children'],_0x3538d0=new te(_0x3f1969),_0x227dd1=new _0x451921(_0x3f1969),_0x2381fe=new _0x13b3b7(_0x3f1969),_0x403330=new _0x451921(_0x3f1969),_0x1c641e=new _0x13b3b7(_0x3f1969);return _0x37b6e8['bind']('isEnabled')['to'](_0x595b11,'isReady',_0x595b11,'isEnabled',_0x25369f,'isReadOnly',(_0x5a87ea,_0x12f695,_0x10713d)=>_0x5a87ea&&_0x12f695&&!_0x10713d),_0x37b6e8['buttonView']['set']({'icon':_0x226c5d['history'],'label':m(_0x3f1969,'Revision\x20history'),'tooltip':!0x0}),_0x2381fe['set']({'label':m(_0x3f1969,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x2381fe['bind']('isEnabled')['to'](_0x595b11,'isReady',_0x595b11,'isEnabled',_0x25369f,'isReadOnly',(_0x45d437,_0x5b8db4,_0x5dc08e)=>_0x45d437&&_0x5b8db4&&!_0x5dc08e),_0x2381fe['on']('execute',()=>this['_showDialog']()),_0x1c641e['set']({'label':m(_0x3f1969,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x1c641e['bind']('isEnabled')['to'](_0x595b11,'isReady',_0x25369f,'isReadOnly',(_0x4be990,_0x3f2b69)=>_0x4be990&&!_0x3f2b69),_0x1c641e['on']('execute',()=>{_0x25369f['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x37b6e8['isOpen']=!0x1,_0x25369f['editing']['view']['focus']();}),_0x227dd1['children']['add'](_0x2381fe),_0x403330['children']['add'](_0x1c641e),_0x3538d0['role']='menu',_0x3538d0['items']['addMany']([_0x227dd1,_0x403330]),_0x3971d0['add'](_0x3538d0),_0x37b6e8;}),_0x25369f['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x12725c=this['editor'],_0x275877=_0x12725c['locale'],_0x183e64=new _0x1b77ca(_0x275877),_0x22c74e=new _0x3b79b8(_0x275877);_0x183e64['buttonView']['set']({'icon':_0x226c5d['history'],'label':m(_0x275877,'Revision\x20history')});const _0x41eb73=new _0x50d7f2(_0x275877,_0x183e64),_0x4cfe22=new _0x37066d(_0x275877);_0x4cfe22['set']({'label':m(_0x275877,'Save\x20current\x20revision')}),_0x4cfe22['delegate']('execute')['to'](_0x183e64),_0x4cfe22['on']('execute',()=>{this['_showDialog']();}),_0x41eb73['children']['add'](_0x4cfe22),_0x22c74e['items']['add'](_0x41eb73);const _0x32b75f=new _0x50d7f2(_0x275877,_0x183e64),_0x3a8072=new _0x37066d(_0x275877);return _0x3a8072['set']({'label':m(_0x275877,'Open\x20revision\x20history')}),_0x3a8072['delegate']('execute')['to'](_0x183e64),_0x3a8072['on']('execute',()=>{_0x12725c['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x32b75f['children']['add'](_0x3a8072),_0x22c74e['items']['add'](_0x32b75f),_0x183e64['panelView']['children']['add'](_0x22c74e),_0x183e64;}['_showDialog'](){const _0x4be217=this['editor'],_0x22e1d0=_0x4be217['locale'],_0x5b993f=_0x4be217['plugins']['get']('Dialog'),_0x4c6fad=_0x4be217['plugins']['get']('RevisionTracker');function _0x9d5cc2(_0x358e85){_0x4be217['config']['get']('revisionHistory.requireRevisionName')&&''===_0x358e85['revisionName']?_0x358e85['revisionNameInputView']['errorText']=m(_0x22e1d0,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x4be217['plugins']['get'](l)['saveRevision']({'name':_0x358e85['revisionName']}),_0x5b993f['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x9d5cc2(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x5b993f['show']({'id':'revisionSave','title':m(_0x22e1d0,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x4be217['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x5b993f['hide']()},{'label':m(_0x4be217['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x1291c0){_0x1291c0['bind']('isEnabled')['to'](_0x4c6fad,'isReady',_0x4c6fad,'isEnabled',_0x4be217,'isReadOnly',(_0x5ea6fc,_0x7baaa7,_0x341957)=>_0x5ea6fc&&_0x7baaa7&&!_0x341957);},'onExecute':()=>_0x9d5cc2(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x2126d2=this['editor'],_0x2ca0da=_0x2126d2['locale'];this['_saveRevisionFormView']=new ns(_0x2ca0da,_0x2126d2['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0x3f0f05{['changeId'];['_model'];constructor(_0xe7867,_0x534d07){super(_0xe7867),this['_model']=_0x534d07,this['changeId']=_0x534d07['id'];const _0x4295b1=this['bindTemplate'],_0x36e3c3=m(_0xe7867,_0x534d07['data']['isSuggestion']?'Suggested\x20by':'add'==_0x534d07['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x534d07['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x4295b1['to']('type',_0x3251ed=>'ck-revision-change__'+_0x3251ed)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x36e3c3}]},{'text':'\x20'+_0x534d07['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x2d9680(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x3698ed){super(),this['id']=_0x3698ed['id']||_0x358749(),this['author']=_0x3698ed['author'],this['type']=_0x3698ed['type'],this['data']=_0x3698ed['data']||{},this['rootName']=_0x3698ed['rootName'],this['set']('createdAt',_0x3698ed['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class f{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x2f31a8,_0x482247){this['newRevisionId']=_0x2f31a8,this['oldRevisionId']=_0x482247,this['changes']=new _0x42ce0a();}['_setChanges'](_0x18c523){for(const _0x36c33e of _0x18c523)this['changes']['add'](_0x36c33e);}}const Y={'c':_0x73e509,'a':_0x2053cd,'e':_0x48c1f7,'r':_0x11a6f7,'u':_0x2dca08};class d extends _0x38c4e4{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x25c78c,_0x377694,j];}constructor(_0x11bd9d){super(_0x11bd9d),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x343923,_0x12e025,_0xbd5a1b)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x80a50d=>{for(const _0x2917e3 of this['editor']['editing']['view']['document']['roots'])_0xbd5a1b?_0x80a50d['removeClass']('ck-editor__editable__overlay',_0x2917e3):_0x80a50d['addClass']('ck-editor__editable__overlay',_0x2917e3);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x4ca113=>null!==_0x4ca113),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x45725c,_0x170024,_0x5d66df)=>_0x45725c&&_0x5d66df?_0x170024['changes']['getIndex'](_0x5d66df):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x44fe98,_0x2c23ae)=>_0x44fe98?_0x2c23ae['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x377694);}['init'](){const _0x34d14b=this['editor'],_0x2b0410=new yt(_0x34d14b,{'direction':'backward'}),_0x5b21e0=new yt(_0x34d14b,{'direction':'forward'});(_0x34d14b['commands']['add']('showPreviousChange',_0x2b0410),_0x34d14b['commands']['add']('showNextChange',_0x5b21e0),_0x34d14b['commands']['add']('restoreRevision',new _t(_0x34d14b)),this['on']('change:numberOfChanges',()=>{_0x2b0410['refresh'](),_0x5b21e0['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x34d14b['enableReadOnlyMode']('revision-viewer'),_0x34d14b['plugins']['has']('WidgetToolbarRepository'))&&_0x34d14b['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x4a6b51){await this['loadRevisionData'](_0x4a6b51);const _0x521c0e={};for(const _0x4bc531 in _0x4a6b51['diffData']){if(_0x4a6b51['diffData'][_0x4bc531]['attachChange']&&!_0x4a6b51['diffData'][_0x4bc531]['attachChange']['isAttached'])continue;const _0x37fc18=this['_removeRevisionMarkers'](JSON['parse'](_0x4a6b51['diffData'][_0x4bc531]['insertions'])),_0x133531=this['editor']['editing']['view']['document'],_0x5b8696=new _0xe0cd86(_0x133531,_0x37fc18['map'](_0x1f86af=>this['_getViewObj'](_0x1f86af)));this['editor']['data']['processor']['useFillerType']('marked'),_0x521c0e[_0x4bc531]=this['editor']['data']['processor']['toData'](_0x5b8696),this['editor']['data']['processor']['useFillerType']('default');}return _0x521c0e;}async['getRevisionRootsAttributes'](_0x2236eb){await this['loadRevisionData'](_0x2236eb);const _0x3127e8={};for(const _0x1c5a7c in _0x2236eb['diffData'])_0x2236eb['diffData'][_0x1c5a7c]['attachChange']&&!_0x2236eb['diffData'][_0x1c5a7c]['attachChange']['isAttached']||(_0x3127e8[_0x1c5a7c]=_0x2236eb['diffData'][_0x1c5a7c]['attributesAfter']||{});return _0x3127e8;}['_removeRevisionMarkers'](_0x54f523){return(_0x54f523=_0x54f523['filter'](_0x57e4b5=>!_0x57e4b5['name']||'revision-start'!==_0x57e4b5['name']&&'revision-end'!==_0x57e4b5['name']))['forEach'](_0x4f2162=>{'string'!=typeof _0x4f2162&&(_0x4f2162['children']=this['_removeRevisionMarkers'](_0x4f2162['children']),_0x4f2162['attributes']=_0x4f2162['attributes']['filter'](_0x2889ee=>!_0x2889ee[0x0]['startsWith']('data-revision-')));}),_0x54f523;}async['compare'](_0x1a2f8f,_0x25c03a,_0x26738f=!0x1){if(!this['isEnabled'])return;const _0x44c958=this['diff'],_0x5e6d99=this['repository'],_0x374240='string'==typeof _0x1a2f8f?_0x5e6d99['getRevision'](_0x1a2f8f):_0x1a2f8f,_0x14a162='string'==typeof _0x25c03a?_0x5e6d99['getRevision'](_0x25c03a):_0x25c03a,_0x10e2d6=_0x374240['id'],_0x4a3e5f=_0x14a162?_0x14a162['id']:null;if(!_0x26738f&&this['diff']&&this['diff']['newRevisionId']===_0x10e2d6&&this['diff']['oldRevisionId']===_0x4a3e5f)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x10e2d6,_0x4a3e5f);const _0x4aeb8b=this['_getRevisionsRange'](_0x374240,_0x14a162,!0x0)['map'](_0x2fc848=>this['loadRevisionData'](_0x2fc848));return _0x4aeb8b['push'](new Promise(_0x155315=>{setTimeout(_0x155315,0x14);})),Promise['all'](_0x4aeb8b)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0xac6078=this['_getDiff'](_0x10e2d6,_0x4a3e5f);for(const _0x3bffe1 of _0xac6078['changes'])this['_changeIdToChange']['set'](_0x3bffe1['id'],_0x3bffe1);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0xb9d785=>{for(const _0x539433 of this['editor']['model']['document']['getRootNames']())_0xb9d785['detachRoot'](_0x539433);for(const _0x443b0d of Object['keys'](_0xac6078['model'])){const _0x4d8101=_0xb9d785['addRoot'](_0x443b0d);for(const _0x3a8938 of Object['keys'](_0xac6078['attributes'][_0x443b0d]))_0xb9d785['setAttribute'](_0x3a8938,_0xac6078['attributes'][_0x443b0d][_0x3a8938],_0x4d8101);_0xb9d785['insert'](_0xac6078['model'][_0x443b0d],_0x4d8101,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0xac6078['changes'])),this['isReady']=!0x0;})['catch'](_0x298789=>{console['error'](_0x298789),this['_cleanUp'](),_0x44c958&&(this['diff']=_0x44c958),this['isReady']=!0x0;});}['addRevisionData'](_0x6f788e,_0x219a81){const _0x49024d=this['repository']['createRevision'](_0x6f788e);return _0x49024d['on']('_update',(_0x1f8738,_0x54652c,_0x1e6a82)=>_0x219a81(_0x54652c,_0x1e6a82,_0x49024d)),this['repository']['addRevision'](_0x49024d),_0x49024d;}['loadRevisionData'](_0x4b1d47){if(!_0x4b1d47||_0x4b1d47['diffData'])return Promise['resolve']();{const _0x348c9a=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x348c9a,'revisionId':_0x4b1d47['id']})['then'](_0x4a33b2=>{_0x4b1d47['_update']({'diffData':_0x4a33b2['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x4b0622=>{for(const _0x49ef69 of this['editor']['model']['document']['getRootNames']())_0x4b0622['detachRoot'](_0x49ef69);});}['_sortAndFilterDiffChanges'](_0x432fda){const _0x1bd203=[],_0x33bc5b=new Map();for(const _0x4c7913 of this['editor']['model']['document']['getRootNames']()){const _0x247923=this['editor']['editing']['view']['getDomRoot'](_0x4c7913);if(!_0x247923)continue;const _0x206109=_0x247923['getClientRects']()['item'](0x0);_0x206109&&(_0x1bd203['push'](_0x4c7913),_0x33bc5b['set'](_0x4c7913,_0x206109));}return _0x1bd203['sort']((_0x5377b8,_0x380b07)=>{const _0x359a1c=_0x33bc5b['get'](_0x5377b8),_0x3280fd=_0x33bc5b['get'](_0x380b07);return _0x359a1c['y']-_0x3280fd['y']||_0x359a1c['x']-_0x3280fd['x'];}),(_0x432fda=_0x432fda['filter'](_0x20af5c=>_0x1bd203['includes'](_0x20af5c['rootName'])))['sort']((_0x44fc28,_0x464efc)=>_0x1bd203['indexOf'](_0x44fc28['rootName'])-_0x1bd203['indexOf'](_0x464efc['rootName'])),_0x432fda;}['_makeTape'](_0xda741d){const _0x3fff92=Array['from'](_0xda741d['markers'])['filter'](([_0x13586b,_0x5b0245])=>_0x13586b['startsWith']('revision:')&&!_0x5b0245['isCollapsed']),_0x3a7ec3=Array['from'](this['editor']['model']['createRangeIn'](_0xda741d)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x3fff92['length'])for(const _0x46487e of _0x3a7ec3){const [_0x2a9c53,_0x2421ec]=_0x3fff92[0x0],[,_0x4af7b2,_0x3adc13]=_0x2a9c53['split'](':');if(_0x2421ec['end']['isEqual'](_0x46487e['nextPosition'])&&_0x3fff92['shift'](),(_0x46487e['previousPosition']['isEqual'](_0x2421ec['start'])||_0x46487e['previousPosition']['isAfter'](_0x2421ec['start']))&&('insertion'==_0x4af7b2?_0x46487e['isAdded']={'userId':_0x3adc13}:'deletion'==_0x4af7b2&&(_0x46487e['isRemoved']={'userId':_0x3adc13})),0x0==_0x3fff92['length'])break;}return _0x3a7ec3;}['_refreshStartEndIndex'](_0x5400a5){const _0x8be168=new Map();for(let _0x615757=0x0;_0x615757<_0x5400a5['length'];_0x615757++)'text'===_0x5400a5[_0x615757]['type']?(_0x5400a5[_0x615757]['item']['startIndex']=_0x615757,_0x5400a5[_0x615757]['item']['endIndex']=_0x615757):('elementStart'===_0x5400a5[_0x615757]['type']?_0x5400a5[_0x615757]['item']['startIndex']=_0x615757:'elementEnd'===_0x5400a5[_0x615757]['type']&&(_0x5400a5[_0x615757]['item']['endIndex']=_0x615757),_0x8be168['set'](_0x5400a5[_0x615757]['id'],_0x615757));for(const _0x476aca of _0x8be168['values']())'elementStart'===_0x5400a5[_0x476aca]['type']?_0x5400a5[_0x476aca]['item']['endIndex']=_0x8be168['get'](_0x5400a5[_0x476aca]['pairId']):'elementEnd'===_0x5400a5[_0x476aca]['type']&&(_0x5400a5[_0x476aca]['item']['startIndex']=_0x8be168['get'](_0x5400a5[_0x476aca]['pairId']));}['_processTape'](_0x55529d){for(let _0x262a1b=0x0;_0x262a1b<_0x55529d['length'];_0x262a1b++){if('elementStart'===_0x55529d[_0x262a1b]['type'])_0x55529d[_0x262a1b]['item']['startIndex']=_0x262a1b;else{if('elementEnd'===_0x55529d[_0x262a1b]['type']){_0x55529d[_0x262a1b]['item']['endIndex']=_0x262a1b;const _0x493056=_0x55529d[_0x262a1b]['item']['startIndex'];_0x55529d[_0x493056]['pairId']=_0x55529d[_0x262a1b]['id'],_0x55529d[_0x262a1b]['pairId']=_0x55529d[_0x493056]['id'];}else _0x55529d[_0x262a1b]['item']['startIndex']=_0x262a1b,_0x55529d[_0x262a1b]['item']['endIndex']=_0x262a1b,_0x55529d[_0x262a1b]['pairId']=null;}_0x55529d[_0x262a1b]['markersStart']||(_0x55529d[_0x262a1b]['markersStart']=[],_0x55529d[_0x262a1b]['markersEnd']=[]);}}['_markInsertions'](_0x3adbf5,_0x49810f){const _0xe46394=_0x3adbf5['filter'](_0x622f90=>!_0x622f90['isAdded']);for(let _0x57a6f5=0x0;_0x57a6f5<_0x49810f['length'];_0x57a6f5++)_0x49810f[_0x57a6f5]['isAdded']&&(_0xe46394[_0x57a6f5]['isAdded']=_0x49810f[_0x57a6f5]['isAdded']);}['_makeModelFromViewString'](_0xea873d){const _0x8771d3=JSON['parse'](_0xea873d),_0x43c04a=this['editor']['editing']['view']['document'],_0xd931bd=new _0xe0cd86(_0x43c04a,_0x8771d3['map'](_0x4d994=>this['_getViewObj'](_0x4d994)));return this['editor']['data']['toModel'](_0xd931bd);}['_getViewObj'](_0x7797c5){const _0x1ac49b=this['editor']['editing']['view']['document'];if('string'==typeof _0x7797c5)return new _0x293831(_0x1ac49b,_0x7797c5);{const _0x539382=_0x7797c5['children']['map'](_0x302937=>this['_getViewObj'](_0x302937));return new(Y[_0x7797c5['type']]||_0x1faa4b)(_0x1ac49b,_0x7797c5['name'],_0x7797c5['attributes'],_0x539382);}}['_getDiff'](_0x452120,_0x25c090=null){const _0x358754=this['repository']['getRevision'](_0x452120),_0x4f4035=_0x25c090?this['repository']['getRevision'](_0x25c090):null,_0x7f7188=this['_getRevisionsRange'](_0x358754,_0x4f4035),_0x3207d3=_0x7f7188[_0x7f7188['length']-0x1],_0x4f91e3=new Map(),_0x320009={'model':{},'attributes':{},'changes':[]},_0x39a81d=new Set(),_0x4c6fcd=new Map();for(let _0x13b844=_0x7f7188['length']-0x1;_0x13b844>=0x0;_0x13b844--){const _0x5c10ed=_0x7f7188[_0x13b844];for(const _0x168d86 of Object['keys'](_0x5c10ed['diffData']))if(_0x5c10ed['diffData'][_0x168d86]['attachChange']){const _0x5c8ac3=_0x5c10ed['diffData'][_0x168d86]['attachChange'];_0x5c8ac3['isAttached']?(_0x39a81d['add'](_0x168d86),_0x4c6fcd['has'](_0x168d86)&&_0x4c6fcd['get'](_0x168d86)['userId']==_0x5c8ac3['userId']?_0x4c6fcd['delete'](_0x168d86):_0x4c6fcd['set'](_0x168d86,_0x5c8ac3)):_0x4c6fcd['has'](_0x168d86)?(_0x39a81d['delete'](_0x168d86),_0x4c6fcd['delete'](_0x168d86)):(_0x39a81d['add'](_0x168d86),_0x4c6fcd['set'](_0x168d86,_0x5c8ac3));}else _0x39a81d['add'](_0x168d86);}for(const _0x39ccfd of _0x39a81d){const _0x29854d=_0x4c6fcd['has'](_0x39ccfd)&&!_0x4c6fcd['get'](_0x39ccfd)['isAttached'];let _0x415752=_0x29854d?_0x7f7188['length']-0x1:0x0;const _0xa77c7b=_0x29854d?-0x1:0x1;for(;_0x7f7188[_0x415752];){const _0xaf9c14=_0x7f7188[_0x415752];if(_0xaf9c14['diffData'][_0x39ccfd]){const _0x26ae51=_0x29854d?_0xaf9c14['diffData'][_0x39ccfd]['attributesBefore']:_0xaf9c14['diffData'][_0x39ccfd]['attributesAfter'];_0x320009['attributes'][_0x39ccfd]=_0x26ae51?_0x49c00c(_0x26ae51):{};break;}_0x415752+=_0xa77c7b;}}for(const _0x430172 of _0x7f7188){_0x430172['model']={};for(const _0x53d2c8 of _0x430172['authors'])_0x4f91e3['set'](_0x53d2c8['id'],_0x53d2c8);for(const _0x2385f9 of _0x39a81d){const _0x337b81=_0x430172['diffData'][_0x2385f9]?_0x430172['diffData'][_0x2385f9]['insertions']:'[]',_0x2a91b6=_0x430172['diffData'][_0x2385f9]?_0x430172['diffData'][_0x2385f9]['deletions']:'[]';_0x430172['model'][_0x2385f9]={'insertions':this['_makeModelFromViewString'](_0x337b81),'deletions':this['_makeModelFromViewString'](_0x2a91b6)};}}for(const _0x3896dc of _0x39a81d){let _0x43f90d=null,_0x54c8be=0x0;const _0x555ee8=new Map(Array['from'](_0x358754['model'][_0x3896dc]['insertions']['markers'])['filter'](([_0x59a1f4])=>!_0x59a1f4['startsWith']('revision:')));let _0xeafdb7=0x0;for(const _0x12da58 of _0x7f7188){const _0xa9caf=this['_makeTape'](_0x12da58['model'][_0x3896dc]['insertions']);_0x12da58==_0x358754?(_0x43f90d=_0xa9caf,_0x54c8be=_0x43f90d['length'],_0x43f90d['forEach'](_0x4de588=>{_0x4de588['id']=_0xeafdb7++;}),this['_processTape'](_0x43f90d)):this['_markInsertions'](_0x43f90d,_0xa9caf);const _0x382783=_0x43f90d['filter'](_0x4532db=>!_0x4532db['isAdded'])['map'](_0x7b911a=>_0x7b911a['id']);let _0x298ada=0x0;const _0x25e8c3=this['_makeTape'](_0x12da58['model'][_0x3896dc]['deletions']);_0x25e8c3['forEach'](_0x3c0fbe=>{_0x3c0fbe['isRemoved']?_0x3c0fbe['id']=_0x54c8be++:_0x3c0fbe['id']=_0x382783[_0x298ada++];}),this['_processTape'](_0x25e8c3),this['_setDistance'](_0x43f90d,'isAdded'),this['_setDistance'](_0x25e8c3,'isRemoved'),_0x12da58==_0x358754&&this['_markMarkers'](_0x43f90d,_0x555ee8),_0x43f90d=this['_joinTapes'](_0x43f90d,_0x25e8c3),this['_refreshStartEndIndex'](_0x43f90d),this['_setDistance'](_0x43f90d,'isRemoved');}_0x43f90d=_0x43f90d['filter'](_0x354b5a=>!(_0x354b5a['isAdded']&&_0x354b5a['isRemoved']));const _0x1919f9=new Map(_0x3207d3['model'][_0x3896dc]['deletions']['markers']),_0x2bb2bd=new Set(_0x555ee8['keys']());for(const _0x47d112 of _0x1919f9['keys']())_0x2bb2bd['delete'](_0x47d112);this['_markSuggestions'](_0x43f90d,_0x2bb2bd),this['_fixObsoleteTags'](_0x43f90d),_0x43f90d=this['_removeMissingPairs'](_0x43f90d),_0x43f90d=this['_markMismatchedRemovedTags'](_0x43f90d),_0x43f90d=this['_removeUnsupportedChanges'](_0x43f90d);const {root:_0x59117a,changes:_0x559368}=this['_makeModelFromTape'](_0x43f90d,_0x4f91e3,_0x3896dc);_0x320009['model'][_0x3896dc]=_0x59117a;const _0x2632da=_0x4c6fcd['get'](_0x3896dc);if(_0x2632da){const _0x299fd8=_0x4f91e3['get'](_0x2632da['userId']),_0x3944a4=new r({'author':_0x299fd8,'type':_0x2632da['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x3896dc});_0x559368['unshift'](_0x3944a4),_0x320009['attributes'][_0x3896dc]['revisionHistoryAttachChange']=_0x3944a4['id'];}_0x320009['changes']=_0x320009['changes']['concat'](_0x559368);}return _0x320009;}['_markMarkers'](_0x1ded16,_0x439692){for(let _0xbee46=0x0;_0xbee46<_0x1ded16['length'];_0xbee46++)for(const [_0x3b081d,_0x234c27]of _0x439692)_0x234c27['start']['isEqual'](_0x1ded16[_0xbee46]['previousPosition'])&&_0x1ded16[_0xbee46]['markersStart']['push'](_0x3b081d),_0x234c27['end']['isEqual'](_0x1ded16[_0xbee46]['nextPosition'])&&_0x1ded16[_0xbee46]['markersEnd']['push'](_0x3b081d);}['_joinTapes'](_0x10a324,_0x5eda9e){let _0x322964=[],_0x270b7e=0x0,_0x1912b4=0x0;for(;_0x270b7e<_0x10a324['length']||_0x1912b4<_0x5eda9e['length'];){const _0x22ea0c=_0x10a324[_0x270b7e]||{},_0x59e411=_0x5eda9e[_0x1912b4]||{};if(_0x22ea0c['id']==_0x59e411['id'])_0x270b7e++,_0x1912b4++,_0x322964['push'](_0x22ea0c);else{if(_0x59e411['isRemoved']&&_0x22ea0c['isAdded']){const {commonTape:_0xfe7fa5,iEnd:_0x300294,jEnd:_0x130c3c}=this['_threeWayMerge'](_0x10a324,_0x270b7e,_0x5eda9e,_0x1912b4);_0x322964=_0x322964['concat'](_0xfe7fa5),_0x270b7e=_0x300294,_0x1912b4=_0x130c3c;}else _0x59e411['isRemoved']?(_0x1912b4++,_0x322964['push'](_0x59e411)):(_0x270b7e++,_0x322964['push'](_0x22ea0c));}}return _0x322964;}['_markSuggestions'](_0x27a8a5,_0x2990be){const _0x30ff62=[];for(let _0x4abe2b=0x0;_0x4abe2b<_0x27a8a5['length'];_0x4abe2b++){for(let _0x45e1fe=0x0;_0x45e1fe<_0x27a8a5[_0x4abe2b]['markersStart']['length'];_0x45e1fe++){const _0x440afe=_0x27a8a5[_0x4abe2b]['markersStart'][_0x45e1fe];if(!_0x2990be['has'](_0x440afe))continue;const {group:_0x5f0ea5,type:_0x192feb,authorId:_0x12dbd5}=_0x1d8062(_0x440afe);'revision-suggestion'!=_0x5f0ea5||'insertion'!=_0x192feb&&'deletion'!=_0x192feb||(_0x30ff62['unshift']({'type':_0x192feb,'name':_0x440afe,'userId':_0x12dbd5}),_0x27a8a5[_0x4abe2b]['markersStart']['splice'](_0x45e1fe,0x1),_0x45e1fe--);}_0x905d61(_0x27a8a5[_0x4abe2b]);for(let _0x39634f=0x0;_0x39634f<_0x27a8a5[_0x4abe2b]['markersEnd']['length'];_0x39634f++){const _0x16ec31=_0x27a8a5[_0x4abe2b]['markersEnd'][_0x39634f];if(!_0x2990be['has'](_0x16ec31))continue;const {group:_0x199ec0,type:_0x3cce53}=_0x1d8062(_0x16ec31);if('revision-suggestion'!=_0x199ec0||'insertion'!=_0x3cce53&&'deletion'!=_0x3cce53)continue;_0x27a8a5[_0x4abe2b]['markersEnd']['splice'](_0x39634f,0x1),_0x39634f--;const _0x1ad091=_0x30ff62['findIndex'](_0x430cc6=>_0x430cc6['name']==_0x16ec31);_0x1ad091>-0x1&&_0x30ff62['splice'](_0x1ad091,0x1);}}function _0x1d8062(_0x2554f8){const _0x5ce60b=_0x2554f8['split'](':');return{'group':_0x5ce60b[0x0],'type':_0x5ce60b[0x1],'subType':_0x5ce60b['length']>=0x5?_0x5ce60b[0x2]:null,'id':_0x5ce60b['length']<0x5?_0x5ce60b[0x2]:_0x5ce60b[0x3],'authorId':_0x5ce60b['length']<0x5?_0x5ce60b[0x3]:_0x5ce60b[0x4],'markerCount':0x6==_0x5ce60b['length']?_0x5ce60b[0x5]:null};}function _0x905d61(_0x22b960){for(let _0x57e1a2=0x0;_0x57e1a2<_0x30ff62['length'];_0x57e1a2++){if(_0x22b960['isAdded']&&'insertion'==_0x30ff62[_0x57e1a2]['type'])return _0x22b960['isAddSuggestion']=_0x30ff62[_0x57e1a2],void delete _0x22b960['isAdded'];if(!_0x22b960['isAdded']&&!_0x22b960['isRemoved']&&'deletion'==_0x30ff62[_0x57e1a2]['type'])return void(_0x22b960['isRemoveSuggestion']=_0x30ff62[_0x57e1a2]);}}}['_setDistance'](_0x576079,_0x117543){let _0x1bbe50=0x0,_0x1bfe41=!0x1;const _0x124826=new Map();for(const _0x4bb4a8 of _0x576079)_0x4bb4a8[_0x117543]?_0x1bfe41&&(_0x1bbe50++,_0x1bfe41=!0x1):(_0x1bbe50++,_0x1bfe41=!0x0),_0x124826['set'](_0x4bb4a8['id'],_0x1bbe50);for(let _0x55a945=0x0;_0x55a945<_0x576079['length'];_0x55a945++){if('isRemoved'==_0x117543&&_0x576079[_0x55a945]['isAdded']||'isAdded'==_0x117543&&_0x576079[_0x55a945]['isRemoved'])continue;if('text'==_0x576079[_0x55a945]['type']){_0x576079[_0x55a945]['distance']=0x0;continue;}const _0x1ce2c8=_0x124826['get'](_0x576079[_0x55a945]['pairId']),_0x802314=_0x124826['get'](_0x576079[_0x55a945]['id']);_0x576079[_0x55a945]['distance']=_0x1ce2c8-_0x802314;}}['_getRevisionsRange'](_0x257c15,_0x1d32c3,_0x1339a5=!0x1){const _0x5d51b9=[];let _0xa57ffd=this['repository']['getIndex'](_0x257c15),_0x4f11ef=this['repository']['getIndex'](_0x1d32c3);for(-0x1==_0x4f11ef&&(_0x4f11ef=this['repository']['_revisions']['length'],_0x1339a5=!0x1);_0xa57ffd<_0x4f11ef;)_0x5d51b9['push'](this['repository']['getRevision'](_0xa57ffd)),_0xa57ffd++;return _0x1339a5&&_0x5d51b9['push'](this['repository']['getRevision'](_0xa57ffd)),_0x5d51b9;}['_threeWayMerge'](_0x17ee53,_0x4e8e10,_0x40aa93,_0x1ca163){const _0x70525f=this['editor']['model']['schema'];let _0x344771=_0x4e8e10;for(;_0x17ee53[_0x344771]&&_0x17ee53[_0x344771]['isAdded'];)_0x344771++;let _0x1f567a=_0x1ca163;for(;_0x40aa93[_0x1f567a]&&_0x40aa93[_0x1f567a]['isRemoved'];)_0x1f567a++;_0x4f7180(_0x17ee53,_0x4e8e10,_0x344771),_0x4f7180(_0x40aa93,_0x1ca163,_0x1f567a);const _0x95f49c=_0x40aa93['slice'](_0x1ca163,_0x1f567a)['concat'](_0x17ee53['slice'](_0x4e8e10,_0x344771));return _0x95f49c['sort']((_0x54ebf5,_0x46c610)=>_0x54ebf5['side']!=_0x46c610['side']?_0x54ebf5['side']-_0x46c610['side']:_0x54ebf5['level']!=_0x46c610['level']?_0x54ebf5['level']-_0x46c610['level']:_0x54ebf5['distance']!=_0x46c610['distance']?_0x46c610['distance']-_0x54ebf5['distance']:!!_0x54ebf5['isAdded']!=!!_0x46c610['isAdded']?-0x1==_0x54ebf5['side']||0x0==_0x54ebf5['side']?_0x54ebf5['isAdded']?-0x1:0x1:_0x54ebf5['isAdded']?0x1:-0x1:_0x54ebf5['index']-_0x46c610['index']),{'commonTape':_0x95f49c,'iEnd':_0x344771,'jEnd':_0x1f567a};function _0x4f7180(_0x19854c,_0x246ea8,_0x221740){let _0x5c2108=-0x1,_0x7333f3=Number['POSITIVE_INFINITY'],_0x3aeaca=!0x0;for(let _0x21844b=_0x246ea8;_0x21844b<_0x221740;_0x21844b++)if(_0x70525f['isInline'](_0x19854c[_0x21844b]['item'])||(_0x3aeaca=!0x1),_0x19854c[_0x21844b]['item']['startIndex']<_0x246ea8&&(_0x5c2108=_0x21844b),_0x19854c[_0x21844b]['item']['endIndex']>=_0x221740){_0x7333f3=_0x21844b;break;}_0x3aeaca&&(_0x5c2108=_0x221740-0x1);for(let _0x300c16=_0x246ea8;_0x300c16<_0x221740;_0x300c16++)_0x19854c[_0x300c16]['side']=_0x300c16<=_0x5c2108?-0x1:_0x300c16<_0x7333f3?0x0:0x1,_0x19854c[_0x300c16]['index']=_0x300c16;let _0x57ffc8=0x0;for(let _0x57c141=_0x246ea8;_0x57c141<=_0x5c2108;_0x57c141++)0x0==_0x19854c[_0x57c141]['distance']?_0x19854c[_0x57c141]['level']=_0x57ffc8:(_0x57ffc8++,_0x19854c[_0x57c141]['level']=_0x57ffc8,_0x57ffc8++);for(let _0x4d910f=_0x246ea8;_0x4d910f<_0x221740;_0x4d910f++)0x0==_0x19854c[_0x4d910f]['side']&&(_0x19854c[_0x4d910f]['level']=_0x57ffc8);_0x57ffc8=0x0;for(let _0x2743ba=_0x221740-0x1;_0x2743ba>=_0x7333f3;_0x2743ba--)0x0==_0x19854c[_0x2743ba]['distance']?_0x19854c[_0x2743ba]['level']=_0x57ffc8:(_0x57ffc8--,_0x19854c[_0x2743ba]['level']=_0x57ffc8,_0x57ffc8--);}}['_fixObsoleteTags'](_0x52ad21){const _0x54efcb=new Map(),_0x322d54=this['editor']['model']['schema'];for(let _0x4ff0d5=0x1;_0x4ff0d5<_0x52ad21['length'];_0x4ff0d5++){let _0x146fff,_0x1e122d,_0x1872af;const _0x2f11b3=_0x52ad21[_0x4ff0d5],_0x477fa6=_0x52ad21[_0x4ff0d5-0x1];if('text'==_0x2f11b3['type'])continue;if(_0x2f11b3['type']!=_0x477fa6['type'])continue;if(!_0x322d54['isBlock'](_0x477fa6['item'])||_0x322d54['isLimit'](_0x477fa6['item']))continue;if(!_0x322d54['isBlock'](_0x2f11b3['item'])||_0x322d54['isLimit'](_0x2f11b3['item']))continue;if((_0x52ad21[_0x4ff0d5]['isAdded']||_0x52ad21[_0x4ff0d5]['isAddSuggestion'])&&_0x52ad21[_0x4ff0d5-0x1]['isRemoved'])_0x146fff=_0x52ad21[_0x4ff0d5],_0x1e122d=_0x52ad21[_0x4ff0d5-0x1],_0x1872af=_0x4ff0d5-0x1;else{if(!_0x52ad21[_0x4ff0d5]['isRemoved']||!_0x52ad21[_0x4ff0d5-0x1]['isAdded']&&!_0x52ad21[_0x4ff0d5-0x1]['isAddSuggestion'])continue;_0x146fff=_0x52ad21[_0x4ff0d5-0x1],_0x1e122d=_0x52ad21[_0x4ff0d5],_0x1872af=_0x4ff0d5;}const _0x4ae3dd=_0x146fff['level']==_0x1e122d['level'],_0x3ce002=Math['abs'](_0x146fff['level'])<Math['abs'](_0x1e122d['level'])&&0x0==_0x1e122d['distance'];(_0x4ae3dd||_0x3ce002)&&(_0x54efcb['set'](_0x1e122d['id'],_0x146fff['id']),_0x52ad21['splice'](_0x1872af,0x1),_0x4ff0d5--,_0x146fff['isAdded']=!0x1);}for(let _0x3a13f9=0x0;_0x3a13f9<_0x52ad21['length'];_0x3a13f9++)_0x54efcb['has'](_0x52ad21[_0x3a13f9]['pairId'])&&(_0x52ad21[_0x3a13f9]['pairId']=_0x54efcb['get'](_0x52ad21[_0x3a13f9]['pairId']));}['_removeMissingPairs'](_0x90e54c){const _0xa5ee03=new Set(_0x90e54c['map'](_0x57e4ae=>_0x57e4ae['id']));for(let _0x1810d8=0x0;_0x1810d8<_0x90e54c['length'];_0x1810d8++)_0xa5ee03['has'](_0x90e54c[_0x1810d8]['pairId'])||0x0==_0x90e54c[_0x1810d8]['distance']||(_0x90e54c[_0x1810d8]['isIncorrect']=!0x0);return _0x90e54c['filter'](_0x5c0a38=>!_0x5c0a38['isIncorrect']);}['_markMismatchedRemovedTags'](_0x1de930){const _0x1218f8=new Set();for(let _0x1dcdad=0x0;_0x1dcdad<_0x1de930['length'];_0x1dcdad++){if(_0x1218f8['has'](_0x1de930[_0x1dcdad]['id'])&&_0x1de930[_0x1dcdad]['isRemoved']&&(_0x1de930[_0x1dcdad]['isIncorrect']=!0x0),_0x1de930[_0x1dcdad]['isIncorrect'])continue;if(0x0==_0x1de930[_0x1dcdad]['distance'])continue;if('elementStart'!=_0x1de930[_0x1dcdad]['type'])continue;if(null==_0x1de930[_0x1dcdad]['pairId'])continue;let _0x4856a5=_0x1dcdad+0x1,_0x4a0203=0x0;for(;_0x1de930[_0x4856a5]['id']!=_0x1de930[_0x1dcdad]['pairId'];)'elementStart'==_0x1de930[_0x4856a5]['type']?_0x4a0203++:'elementEnd'==_0x1de930[_0x4856a5]['type']&&_0x4a0203--,_0x4856a5++;if(0x0!=_0x4a0203){if(_0x1de930[_0x1dcdad]['isRemoved'])_0x1de930[_0x1dcdad]['isIncorrect']=!0x0;else{for(;_0x4856a5!=_0x1dcdad;)_0x1de930[_0x4856a5]['isRemoved']&&0x0!=_0x1de930[_0x4856a5]['distance']&&(_0x1de930[_0x4856a5]['isIncorrect']=!0x0,_0x1218f8['add'](_0x1de930[_0x4856a5]['pairId'])),_0x4856a5--;}}}return _0x1de930['filter'](_0x37a730=>!_0x37a730['isIncorrect']);}['_removeUnsupportedChanges'](_0x107490){const _0x16cc80=this['editor']['model']['schema'];for(let _0x257992=0x0;_0x257992<_0x107490['length'];_0x257992++){if(!(_0x107490[_0x257992]['isAdded']||_0x107490[_0x257992]['isAddSuggestion']||_0x107490[_0x257992]['isRemoved']||_0x107490[_0x257992]['isRemoveSuggestion']))continue;if(0x0==_0x107490[_0x257992]['distance'])continue;const _0x294ebf=_0x107490[_0x257992]['item'];_0x16cc80['isBlock'](_0x294ebf)||_0x16cc80['isLimit'](_0x294ebf)||(_0x107490[_0x257992]['isAdded']&&delete _0x107490[_0x257992]['isAdded'],_0x107490[_0x257992]['isAddSuggestion']&&delete _0x107490[_0x257992]['isAddSuggestion'],_0x107490[_0x257992]['isRemoveSuggestion']&&delete _0x107490[_0x257992]['isRemoveSuggestion'],_0x107490[_0x257992]['isRemoved']&&(_0x107490[_0x257992]['isIncorrect']=!0x0));}return _0x107490['filter'](_0x33b259=>!_0x33b259['isIncorrect']);}['_makeModelFromTape'](_0x501b13,_0xe0a6f4,_0x441846){const _0x2509d2=new mt(),_0x54112c=[],_0x3cdfc3=new Map(),_0x67433e=this['editor']['model'],_0x427e77=_0x67433e['schema'],_0x22238b=[_0x2509d2],_0x2bc102={},_0x28f080={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x24345d=null;const _0x2f00c0=[0x0];for(let _0x11048e=0x0;_0x11048e<_0x501b13['length'];_0x11048e++)if('elementStart'===_0x501b13[_0x11048e]['type']){_0x501b13[_0x11048e]['previousPosition']=_0x67433e['createPositionFromPath'](_0x2509d2,_0x2f00c0);const _0x686158=new ft(_0x501b13[_0x11048e]['item']['name'],_0x501b13[_0x11048e]['item']['getAttributes']());_0x22238b[0x0]['_appendChild'](_0x686158),_0x2f00c0['push'](0x0),_0x22238b['unshift'](_0x686158),_0x501b13[_0x11048e]['nextPosition']=_0x67433e['createPositionFromPath'](_0x2509d2,_0x2f00c0);}else'elementEnd'===_0x501b13[_0x11048e]['type']?(_0x22238b['shift'](),_0x501b13[_0x11048e]['previousPosition']=_0x67433e['createPositionFromPath'](_0x2509d2,_0x2f00c0),_0x2f00c0['pop'](),_0x2f00c0[_0x2f00c0['length']-0x1]++,_0x501b13[_0x11048e]['nextPosition']=_0x67433e['createPositionFromPath'](_0x2509d2,_0x2f00c0)):(_0x501b13[_0x11048e]['previousPosition']=_0x67433e['createPositionFromPath'](_0x2509d2,_0x2f00c0),_0x24345d?_0x24345d['_data']+=_0x501b13[_0x11048e]['item']['data']:_0x24345d=new wt(_0x501b13[_0x11048e]['item']['data'],_0x501b13[_0x11048e]['item']['getAttributes']()),_0x501b13[_0x11048e+0x1]&&'text'===_0x501b13[_0x11048e+0x1]['type']&&_0x33ccbf(_0x24345d,_0x501b13[_0x11048e+0x1]['item'])||(_0x22238b[0x0]['_appendChild'](_0x24345d),_0x24345d=null),_0x2f00c0[_0x2f00c0['length']-0x1]+=_0x501b13[_0x11048e]['item']['offsetSize'],_0x501b13[_0x11048e]['nextPosition']=_0x67433e['createPositionFromPath'](_0x2509d2,_0x2f00c0));for(let _0x51796d=0x0;_0x51796d<_0x501b13['length'];_0x51796d++){const _0x2c1296=_0x501b13[_0x51796d]['previousPosition'],_0x19566c=_0x501b13[_0x51796d]['nextPosition'];for(const _0x38b05b of _0x501b13[_0x51796d]['markersStart'])_0x3cdfc3['set'](_0x38b05b,{'start':_0x2c1296,'end':null});_0x24c477('isRemoveSuggestion',_0x51796d,_0x2c1296,_0x19566c),_0x24c477('isAddSuggestion',_0x51796d,_0x2c1296,_0x19566c),_0x24c477('isRemoved',_0x51796d,_0x2c1296,_0x19566c),_0x24c477('isAdded',_0x51796d,_0x2c1296,_0x19566c);for(const _0x54ee5b of _0x501b13[_0x51796d]['markersEnd']){_0x3cdfc3['get'](_0x54ee5b)['end']=_0x19566c;}}for(const [_0x479300,_0x37cf39]of _0x3cdfc3){const _0x3cc6ea=this['editor']['model']['createRange'](_0x37cf39['start'],_0x37cf39['end']);_0x2509d2['markers']['set'](_0x479300,_0x3cc6ea);}return _0x54112c['sort']((_0x4ddd6b,_0xfc42bf)=>{const _0x2d8309=_0x2509d2['markers']['get']('revision:'+_0x4ddd6b['id']),_0x58af1e=_0x2509d2['markers']['get']('revision:'+_0xfc42bf['id']);return _0x2d8309['start']['isBefore'](_0x58af1e['start'])?-0x1:_0x2d8309['start']['isAfter'](_0x58af1e['start'])?0x1:_0x2d8309['end']['isBefore'](_0x58af1e['end'])?-0x1:_0x2d8309['end']['isAfter'](_0x58af1e['end'])?0x1:'add'===_0x4ddd6b['type']?-0x1:0x1;}),{'root':_0x2509d2,'changes':_0x54112c};function _0x24c477(_0x12937a,_0x2de933,_0x15137b,_0x23834c){const _0x396cd8=!!_0x501b13[_0x2de933][_0x12937a],_0x167184=_0x396cd8?_0x501b13[_0x2de933][_0x12937a]['userId']:null,_0x21759a=_0x2de933===_0x501b13['length']-0x1,_0x123dee=_0x28f080[_0x12937a][0x0],_0x598d05=_0x427e77['isObject'](_0x501b13[_0x2de933]['item']);!_0x2bc102[_0x12937a]&&_0x396cd8?_0x2bc102[_0x12937a]={'start':_0x15137b,'tapeItem':_0x501b13[_0x2de933],'userId':_0x167184,'type':_0x12937a}:_0x2bc102[_0x12937a]&&!_0x396cd8?(_0x2bc102[_0x12937a]['end']=_0x15137b,_0x319185(_0x2bc102[_0x12937a]),_0x2bc102[_0x12937a]=null):_0x2bc102[_0x12937a]&&_0x396cd8&&_0x2bc102[_0x12937a]['userId']!==_0x167184&&(_0x2bc102[_0x12937a]['end']=_0x15137b,_0x123dee&&_0x123dee['userId']===_0x2bc102[_0x12937a]['userId']||_0x319185(_0x2bc102[_0x12937a]),_0x2bc102[_0x12937a]={'start':_0x15137b,'tapeItem':_0x501b13[_0x2de933],'userId':_0x167184,'type':_0x12937a}),_0x2bc102[_0x12937a]&&_0x598d05&&('elementStart'!==_0x501b13[_0x2de933]['type']||_0x123dee&&_0x123dee['userId']===_0x167184||_0x28f080[_0x12937a]['unshift']({'userId':_0x167184,'object':_0x501b13[_0x2de933]['item'],'change':_0x2bc102[_0x12937a]}),'elementEnd'===_0x501b13[_0x2de933]['type']&&_0x123dee&&_0x123dee['object']===_0x501b13[_0x2de933]['item']&&(_0x28f080[_0x12937a]['shift'](),_0x2bc102[_0x12937a]=_0x123dee['change'])),_0x2bc102[_0x12937a]&&_0x21759a&&(_0x2bc102[_0x12937a]['end']=_0x23834c,_0x319185(_0x2bc102[_0x12937a]),_0x2bc102[_0x12937a]=null);}function _0x319185({start:_0x1ca794,end:_0x42f4f4,tapeItem:_0x22726c,userId:_0x166da7,type:_0x537c57}){const _0x43b228=_0x22726c['item'],_0x5196f=_0x67433e['schema']['isBlock'](_0x43b228)&&!_0x67433e['schema']['isLimit'](_0x43b228),_0x770d6c=_0x1ca794['nodeAfter']==_0x42f4f4['parent']&&_0x42f4f4['isAtStart'];if(_0x5196f&&_0x770d6c)return;const _0x2fc55e=_0x67433e['createRange'](_0x1ca794,_0x42f4f4),_0x114343=_0xe0a6f4['get'](_0x166da7),_0x4ec205=new r({'author':_0x114343,'type':'isAdded'==_0x537c57||'isAddSuggestion'==_0x537c57?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x537c57||'isRemoveSuggestion'==_0x537c57},'createdAt':new Date(),'rootName':_0x441846});_0x54112c['push'](_0x4ec205),_0x2509d2['markers']['set']('revision:'+_0x4ec205['id'],_0x2fc55e);}function _0x33ccbf(_0x11df9f,_0x267d93){const _0x2bdc22=_0x11df9f['getAttributes'](),_0x3607fa=_0x267d93['getAttributes']();for(const _0x1f06d8 of _0x2bdc22){if(_0x1f06d8[0x1]!==_0x267d93['getAttribute'](_0x1f06d8[0x0]))return!0x1;_0x3607fa['next']();}return _0x3607fa['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x471c23=>{const _0x396935=_0x471c23['markerName']['split'](':')[0x1],_0x2e8ed7=this['_getChangeFromId'](_0x396935);if(!_0x2e8ed7)return null;const _0x20abdc='add'==_0x2e8ed7['type']?'insertion':'deletion',_0x534e46=['ck-suggestion-marker','ck-suggestion-marker-'+_0x20abdc];return _0x2e8ed7['data']['isSuggestion']&&_0x534e46['push']('ck-suggestion-marker-'+_0x20abdc+'-new'),this['activeChange']==_0x2e8ed7&&_0x534e46['push']('ck-suggestion-marker--active'),{'classes':_0x534e46,'attributes':{'data-change-id':_0x396935}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x201a23=>{_0x201a23['on']('element:pre',(_0x2094b3,_0x18838e,_0x36166e)=>{const _0xbb41ae=_0x18838e['viewItem']['getChild'](0x0);if(!_0xbb41ae||!_0xbb41ae['is']('element','code'))return;if(!_0x36166e['consumable']['consume'](_0xbb41ae,{'attributes':['vid_start','vid_end']}))return;const _0x17850e=_0x18838e['modelRange']['start']['nodeAfter'];_0x36166e['writer']['setAttribute']('vid_start',_0xbb41ae['getAttribute']('vid_start'),_0x17850e),_0x36166e['writer']['setAttribute']('vid_end',_0xbb41ae['getAttribute']('vid_end'),_0x17850e);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x5f4b73=>{_0x5f4b73['on']('element',(_0xbfac30,_0x3e34b3,_0x385d9a)=>{if(!_0x385d9a['consumable']['consume'](_0x3e34b3['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x3e34b3['modelRange']['isCollapsed'])return;const _0x24197f=_0x3e34b3['modelRange']['start']['nodeAfter'];_0x24197f['hasAttribute']('vid_start')||_0x24197f['hasAttribute']('vid')||(_0x385d9a['writer']['setAttribute']('vid_start',_0x3e34b3['viewItem']['getAttribute']('vid_start'),_0x24197f),_0x385d9a['writer']['setAttribute']('vid_end',_0x3e34b3['viewItem']['getAttribute']('vid_end'),_0x24197f));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x1a560c=>_0x1a560c['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x4230e4,[,_0x4e122a])=>{['vid_start','vid_end','vid']['includes'](_0x4e122a)&&(_0x4230e4['return']=!0x0,_0x4230e4['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x1d951b=>{_0x1d951b['on']('attribute:vid',(_0x161b71,_0x452695,_0x56a884)=>{if('\x20'!=_0x452695['item']['data']||_0x452695['item']['parent']['maxOffset']>0x1)return;if(!_0x56a884['consumable']['consume'](_0x452695['item'],_0x161b71['name']))return;const _0x499dc4=_0x56a884['writer'],_0x4ada06=_0x56a884['mapper']['toViewRange'](_0x452695['range']);_0x499dc4['wrap'](_0x4ada06,_0x499dc4['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x21a308){const _0x564f6c=_0x21a308['plugins']['get']('RevisionViewer');return(_0xa203ec,_0x496c21,_0x397707)=>{const _0x1b10d6=_0x496c21['markerName']['split'](':')[0x1],_0x3c21b6=_0x564f6c['_getChangeFromId'](_0x1b10d6);if(!_0x3c21b6)return null;const _0x11c48d='add'==_0x3c21b6['type']?'split':'merge';if(!_0x397707['consumable']['test'](_0x496c21['markerRange'],_0xa203ec['name']))return;const _0x4b9247=_0x496c21['markerRange']['getWalker'](),_0x15bbca=_0x496c21['markerRange']['start'],_0x2a8d29=_0x21a308['model']['schema'];let _0x4cf777=null,_0x2c877e=null,_0x1cd4cc=!0x1,_0x2c28dc=!0x1;for(const _0x21a9d1 of _0x4b9247){const _0x48f21a=_0x21a9d1['item'];_0x1cd4cc=_0x1cd4cc||_0x2a8d29['isContent'](_0x48f21a);const _0x4b31cd=_0x397707['mapper']['toViewElement'](_0x48f21a);if(_0x4b31cd&&_0x4b31cd['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x21a9d1['type']&&(_0x2a8d29['isBlock'](_0x48f21a)&&!_0x2a8d29['isLimit'](_0x48f21a)&&(_0x48f21a['nextSibling']||_0x15bbca['isAtEnd']?_0x4cf777&&_0x4cf777['parent']==_0x48f21a||(_0x4cf777=_0x48f21a,_0x145ee5(_0x21a9d1['previousPosition']),_0x2c28dc=!0x0):_0x2c877e=_0x2c877e||_0x21a9d1['previousPosition']));}function _0x145ee5(_0x5eb4b5){const _0x1fb2ba=_0x397707['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x11c48d}),_0x4ef7a2=_0x397707['mapper']['toViewPosition'](_0x5eb4b5);_0x3c21b6['data']['isSuggestion']&&_0x397707['writer']['addClass']('ck-suggestion-marker-'+_0x11c48d+'-new',_0x1fb2ba),_0x564f6c['activeChange']==_0x3c21b6&&_0x397707['writer']['addClass']('ck-suggestion-marker--active',_0x1fb2ba),_0x397707['writer']['insert'](_0x4ef7a2,_0x1fb2ba),_0x397707['mapper']['bindElementToMarker'](_0x1fb2ba,_0x496c21['markerName']);}_0x1cd4cc||_0x2c28dc||!_0x2c877e||_0x145ee5(_0x2c877e);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x5b7dbf,_0x5b22a2,_0xd093d6)=>{const _0x5629c0=_0xd093d6['mapper']['markerNameToElements'](_0x5b22a2['markerName']);if(_0x5629c0){for(const _0x1bb422 of _0x5629c0)(_0x1bb422['hasClass']('ck-suggestion-marker-split')||_0x1bb422['hasClass']('ck-suggestion-marker-merge'))&&(_0xd093d6['mapper']['unbindElementFromMarkerName'](_0x1bb422,_0x5b22a2['markerName']),_0xd093d6['writer']['remove'](_0x1bb422));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x6fe920,_0xd04bc3,_0x4662da)=>{const _0x3015db=_0xd04bc3['markerName']['split'](':')[0x1],_0x372d5d=this['_getChangeFromId'](_0x3015db);if(!_0x372d5d)return null;const _0x1fef7a='add'==_0x372d5d['type']?'split':'merge';if(_0x4662da['consumable']['test'](_0xd04bc3['markerRange'],_0x6fe920['name']))for(const _0x1d4d20 of _0xd04bc3['markerRange']['getItems']()){if(!_0x1d4d20['is']('element','softBreak'))continue;const _0x76860b=_0x4662da['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1fef7a}),_0x5718ac=_0x4662da['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x1d4d20));_0x372d5d['data']['isSuggestion']&&_0x4662da['writer']['addClass']('ck-suggestion-marker-'+_0x1fef7a+'-new',_0x76860b),this['activeChange']==_0x372d5d&&_0x4662da['writer']['addClass']('ck-suggestion-marker--active',_0x76860b),_0x4662da['writer']['insert'](_0x5718ac,_0x76860b),_0x4662da['mapper']['bindElementToMarker'](_0x76860b,_0xd04bc3['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x390ca3=>{for(const _0x95fe6b of this['editor']['model']['document']['getRootNames']()){const _0x2d8817=this['editor']['model']['document']['getRoot'](_0x95fe6b),_0x138933=this['editor']['editing']['view']['document']['getRoot'](_0x95fe6b);if(_0x138933){const _0x332190=_0x2d8817['getAttribute']('revisionHistoryAttachChange');if(_0x390ca3['removeAttribute']('data-change-id',_0x138933),_0x390ca3['removeClass']('ck-revision-history-root-add',_0x138933),_0x390ca3['removeClass']('ck-revision-history-root-remove',_0x138933),_0x390ca3['removeClass']('ck-revision-history-root--active',_0x138933),_0x332190){const _0x46ca3c=this['_getChangeFromId'](_0x332190);if(!_0x46ca3c)return null;_0x390ca3['setAttribute']('data-change-id',_0x332190,_0x138933),_0x390ca3['addClass']('ck-revision-history-root-'+_0x46ca3c['type'],_0x138933),this['activeChange']==_0x46ca3c&&_0x390ca3['addClass']('ck-revision-history-root--active',_0x138933);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x555764=>'revision-comment:'+_0x555764,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x448fa4=>'revision-suggestion:'+_0x448fa4,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x1ee9e2=>({'name':'suggestion:'+_0x1ee9e2,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x11bf36=>{const _0x5a89be=_0x11bf36['markerName']['split'](':')[0x1];return'insertion'!=_0x5a89be&&'deletion'!=_0x5a89be?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x5a89be]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x456671,_0x558cce,_0x2158b1)=>{const _0x355520=_0x2158b1['mapper']['markerNameToElements'](_0x558cce['markerName']);if(_0x355520){for(const _0x442017 of _0x355520)_0x442017['is']('uiElement')&&(_0x2158b1['mapper']['unbindElementFromMarkerName'](_0x442017,_0x558cce['markerName']),_0x2158b1['writer']['remove'](_0x442017));}},{'priority':'high'});}['_getChangeFromId'](_0x5f45f7){return this['_changeIdToChange']['get'](_0x5f45f7);}['_getViewForChange'](_0xb704ac){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0xb704ac),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x37917a,_0x875523,_0x5d822a,_0x1f1161)=>{_0x1f1161&&this['_balloon']['remove'](_0x1f1161),_0x5d822a&&(this['_balloon']['add']({'view':_0x5d822a,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x4a702e=this['editor']['editing'],_0xb9ee36=this['_getChangeFromId'](_0x5d822a['changeId']);let _0x6cdb30;if(_0xb9ee36['data']['isOnRoot']){const _0x2a4ee1=_0x4a702e['view']['getDomRoot'](_0xb9ee36['rootName']);_0x6cdb30=Array['from'](_0x2a4ee1['getClientRects']());}else{const _0x2f40aa=this['editor']['model']['markers']['get']('revision:'+_0x5d822a['changeId']);_0x6cdb30=Array['from'](_0x4a702e['mapper']['markerNameToElements'](_0x2f40aa['name']))['map'](_0x5dabd8=>_0x4a702e['view']['domConverter']['mapViewToDom'](_0x5dabd8))['map'](_0xaef0a4=>Array['from'](_0xaef0a4['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x6cdb30[0x0];return _0x6cdb30['find'](_0x5acf52=>_0x5acf52['top']-0x3<=this['_activeViewTarget']['y']&&_0x5acf52['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x5acf52['left']-0x3<=this['_activeViewTarget']['x']&&_0x5acf52['right']+0x3>=this['_activeViewTarget']['x'])||_0x6cdb30[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x2fee32,_0x2b61ee,_0x45eda4,_0x351375)=>{this['activeView']=_0x45eda4?this['_getViewForChange'](_0x45eda4):null,this['editor']['model']['change'](()=>{const _0x2c5483=this['editor']['editing'];_0x351375&&(_0x351375['data']['isOnRoot']?_0x2c5483['view']['change'](_0x455f6d=>{_0x455f6d['removeClass']('ck-revision-history-root--active',_0x2c5483['view']['document']['getRoot'](_0x351375['rootName']));}):_0x2c5483['reconvertMarker']('revision:'+_0x351375['id'])),_0x45eda4&&(_0x45eda4['data']['isOnRoot']?_0x2c5483['view']['change'](_0x132444=>{_0x132444['addClass']('ck-revision-history-root--active',_0x2c5483['view']['document']['getRoot'](_0x45eda4['rootName']));}):_0x2c5483['reconvertMarker']('revision:'+_0x45eda4['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x321ee4,_0x2f6bbf)=>{if(this['activeChange'])return;const _0x519243=this['_findChangeIdFromDomTarget'](_0x2f6bbf['target']),_0x465ad1=this['_changeIdToChange']['get'](_0x519243);_0x465ad1?(this['_activeViewTarget']={'x':_0x2f6bbf['domEvent']['x'],'y':_0x2f6bbf['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x465ad1)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x5193c1,_0x3fdd50)=>{const _0xc915f7=this['_findChangeIdFromDomTarget'](_0x3fdd50['target']),_0x165903=this['_changeIdToChange']['get'](_0xc915f7);_0x165903?(this['_activeViewTarget']={'x':_0x3fdd50['domEvent']['x'],'y':_0x3fdd50['domEvent']['y']},_0x165903===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x165903):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x23b91c){do{const _0x366a73=_0x23b91c['getAttribute']('data-change-id');if(_0x366a73)return _0x366a73;_0x23b91c=_0x23b91c['parent'];}while(_0x23b91c);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x1e7332=>{for(const _0xa9e47d of this['editor']['model']['markers'])_0x1e7332['removeMarker'](_0xa9e47d);});}}function Z(_0x20aa8a,_0x7e1d33){return(_0x51c81e,_0x265ba0,_0x377477)=>{if(!_0x377477['consumable']['test'](_0x265ba0['markerRange'],_0x51c81e['name']))return;const _0x4754b1=_0x265ba0['markerRange']['getWalker'](),_0xea112d=_0x265ba0['markerRange']['start'],_0x41377e=_0x20aa8a['model']['schema'];let _0x3dd317=null,_0x1f902d=null,_0x282d9e=!0x1,_0x532854=!0x1;for(const _0x51b1cd of _0x4754b1){const _0x47fab7=_0x51b1cd['item'];_0x282d9e=_0x282d9e||_0x41377e['isContent'](_0x47fab7);const _0x1054f5=_0x377477['mapper']['toViewElement'](_0x47fab7);if(_0x1054f5&&_0x1054f5['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x51b1cd['type']&&(_0x41377e['isBlock'](_0x47fab7)&&!_0x41377e['isLimit'](_0x47fab7)&&(_0x47fab7['nextSibling']||_0xea112d['isAtEnd']?_0x3dd317&&_0x3dd317['parent']==_0x47fab7||(_0x3dd317=_0x47fab7,_0x2e0122(_0x51b1cd['previousPosition']),_0x532854=!0x0):_0x1f902d=_0x1f902d||_0x51b1cd['previousPosition']));}function _0x2e0122(_0x1ffcaa){const _0x3afa66=_0x377477['mapper']['toViewPosition'](_0x1ffcaa),_0x1b94dc=_0x377477['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x7e1d33});_0x377477['writer']['insert'](_0x3afa66,_0x1b94dc),_0x377477['mapper']['bindElementToMarker'](_0x1b94dc,_0x265ba0['markerName']);}_0x282d9e||_0x532854||!_0x1f902d||_0x2e0122(_0x1f902d);};}class _t extends _0x56d2a8{constructor(_0x47110c){super(_0x47110c);const _0xb63246=_0x47110c['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0xb63246,'change:isReady',()=>this['refresh']()),this['listenTo'](_0xb63246,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x541ad0=this['editor'],_0x3cf3b3=_0x541ad0['plugins']['get'](d),_0x12b3b4=_0x3cf3b3['isReady']?_0x3cf3b3['diff']['newRevisionId']:null;_0x541ad0['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x12b3b4);}['refresh'](){const {isReady:_0x4d59db,isEnabled:_0x1a6e08,repository:_0x36d455,diff:_0x54348c}=this['editor']['plugins']['get'](d),_0x5c0f05=_0x54348c&&_0x36d455['getLaterVisibleRevision'](_0x54348c['newRevisionId']);this['isEnabled']=_0x4d59db&&_0x1a6e08&&Boolean(_0x5c0f05);}}class yt extends _0x56d2a8{['_step'];constructor(_0x535745,{direction:_0x2ba5cc}){super(_0x535745);const _0x547013=_0x535745['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x2ba5cc?0x1:-0x1,this['listenTo'](_0x547013,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x547013,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x547013,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x552220=this['editor'],_0x42fd8b=_0x552220['plugins']['get'](d),{isNavigationMode:_0x130c22,currentChangeNumber:_0x319359}=_0x42fd8b;let _0x3c8837;if(_0x42fd8b['activeChange']=_0x130c22?_0x42fd8b['diff']['changes']['get'](_0x319359+this['_step']):_0x42fd8b['diff']['changes']['first'],_0x42fd8b['activeChange']['data']['isOnRoot'])_0x3c8837=_0x552220['editing']['view']['getDomRoot'](_0x42fd8b['activeChange']['rootName']);else{const _0x4009a3=_0x552220['model']['markers']['get']('revision:'+_0x42fd8b['activeChange']['id']);_0x3c8837=_0x3ac489(_0x552220['editing'],_0x4009a3);}_0x182fa2({'target':_0x3c8837,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x3996c4,currentChangeNumber:_0x243d13,numberOfChanges:_0x1e5846,isReady:_0x5204c4,isEnabled:_0x36c91b}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x36c91b&&_0x5204c4&&_0x1e5846)&&(!_0x3996c4||(0x1===this['_step']?_0x243d13<_0x1e5846-0x1:_0x243d13>0x0));}}class _i extends _0x3f0f05{constructor(_0x86132c){super(_0x86132c);const _0x394588=this['bindTemplate'],_0x1ab82e=new _0x13b3b7(_0x86132c),_0x136402=new _0x13b3b7(_0x86132c);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',(_0x1b749f,_0xa31168)=>_0x1b749f&&_0xa31168>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x3a6e0a,_0x32ab4a,_0x5577d2,_0x54e6b6)=>{if(!_0x3a6e0a)return m(_0x86132c,'Loading...');if(!_0x5577d2)return m(_0x86132c,'No\x20changes');const _0x33c990=m(_0x86132c,'NUMBER_OF_CHANGES',_0x5577d2);return _0x54e6b6?m(_0x86132c,'X_OF_Y_CHANGES',[_0x32ab4a+0x1,_0x5577d2]):_0x33c990;}),_0x1ab82e['set']({'label':m(_0x86132c,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x2014.494a.75.75\x200\x200\x200\x201.197-.899l-.067-.089-6.992-8a.75.75\x200\x200\x200-1.05-.078l-.079.078-7.008\x208a.75.75\x200\x200\x200\x201.049\x201.066l.08-.078\x206.442-7.354\x206.428\x207.354z\x22/></svg>\x0a'}),_0x136402['set']({'label':m(_0x86132c,'Show\x20next\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x205.506a.75.75\x200\x200\x201\x201.197.899l-.067.089-6.992\x208a.75.75\x200\x200\x201-1.05.078l-.079-.078-7.008-8a.75.75\x200\x200\x201\x201.049-1.066l.08.078\x206.442\x207.354\x206.428-7.354z\x22/></svg>\x0a'}),_0x1ab82e['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x136402['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x1ab82e['on']('execute',()=>this['fire']('execute','backward')),_0x136402['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',_0x394588['if']('_isStatusLabelVisible','ck-hidden',_0x1791be=>!_0x1791be)]},'children':[{'text':_0x394588['to']('isNavigationMode',_0x41314b=>_0x41314b?m(_0x86132c,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x86132c,'Total')+':\x20')}]},{'text':_0x394588['to']('_statusText')}]},new _0x492e02(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x1ab82e,_0x136402]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x38c4e4{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x42da06=this['editor']['editing']['view'];_0x42da06['change'](_0x4465e4=>{for(const _0x266c21 of _0x42da06['document']['roots'])_0x4465e4['addClass'](ce,_0x266c21);});}['hide'](){const _0x4cfb2a=this['editor']['editing']['view'];_0x4cfb2a['change'](_0x20799f=>{for(const _0x2203c6 of _0x4cfb2a['document']['roots'])_0x20799f['removeClass'](ce,_0x2203c6);});}}class g extends _0x38c4e4{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,le];}['init'](){const _0x7615e3=this['editor'],_0x1016e0=_0x7615e3['plugins']['get'](d),_0x400541=_0x7615e3['plugins']['get'](le);_0x7615e3['ui']['componentFactory']['add']('exitToEditing',_0x21d007=>{const _0xf0c93b=new _0x13b3b7(_0x21d007);return _0xf0c93b['set']({'label':m(_0x21d007,'Back\x20to\x20editing'),'icon':_0x226c5d['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0xf0c93b,'execute',()=>{_0x7615e3['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0xf0c93b;}),_0x7615e3['ui']['componentFactory']['add']('restoreRevision',_0x3d7817=>{const _0xcd2edf=new _0x13b3b7(_0x3d7817);return _0xcd2edf['set']({'label':m(_0x3d7817,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0xcd2edf['bind']('isEnabled')['to'](_0x7615e3['commands']['get']('restoreRevision')),this['listenTo'](_0xcd2edf,'execute',()=>_0x7615e3['execute']('restoreRevision')),_0xcd2edf;}),_0x7615e3['ui']['componentFactory']['add']('changesNavigation',_0x67437e=>{const _0x4f5c4b=new _i(_0x67437e),_0x53bc1d=_0x7615e3['commands']['get']('showPreviousChange'),_0x15e105=_0x7615e3['commands']['get']('showNextChange');return _0x4f5c4b['bind']('isBackwardNavigationEnabled')['to'](_0x53bc1d,'isEnabled'),_0x4f5c4b['bind']('isForwardNavigationEnabled')['to'](_0x15e105,'isEnabled'),_0x4f5c4b['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x1016e0),this['listenTo'](_0x4f5c4b,'execute',(_0x3caeab,_0x533e3c)=>{_0x7615e3['execute']('forward'===_0x533e3c?'showNextChange':'showPreviousChange');}),_0x4f5c4b;}),_0x400541['show'](),_0x1016e0['on']('change:isReady',(_0x50effd,_0x1ce11a,_0x2228e2)=>{_0x2228e2?_0x400541['hide']():_0x400541['show']();});}}class pt extends nt{['_resizeObserver']=null;constructor(_0x2bdb58,_0x2761b7){super(_0x2bdb58,_0x2761b7);const _0x4fc9d5=this['bindTemplate'];this['set']({'label':m(_0x2bdb58,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x2bdb58,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x4fc9d5['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new at(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x476eac=this['fieldView']['element'];this['_tooltipString']=_0x476eac['scrollWidth']>_0x476eac['clientWidth']&&_0x476eac['value']||'';}}class ti extends _0x3f0f05{constructor(_0x21a6c4,_0x5d23c4,_0x29f12b){super(_0x21a6c4);const _0x2073c8=new _0x5787b7();_0x2073c8['set']({'content':'<svg\x20viewBox=\x220\x200\x2011\x2010\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20xmlns:xlink=\x22http://www.w3.org/1999/xlink\x22><path\x20d=\x22M5.5\x205C8.538\x205\x2011\x207.015\x2011\x209.5c0\x20.17-.011.336-.034.5H.034A3.732\x203.732\x200\x200\x201\x200\x209.5C0\x207.015\x202.462\x205\x205.5\x205zm0-5a2.5\x202.5\x200\x201\x201\x200\x205\x202.5\x202.5\x200\x200\x201\x200-5z\x22\x20/></svg>\x0a','viewBox':'0\x200\x2011\x2010'});const _0x375331=['ck','ck-revision-history-sidebar__revision-author'];_0x29f12b&&_0x375331['push']('ck-revision-history-sidebar__revision-author_creator');const _0x457697=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x21a6c4,_0x29f12b?'Revision\x20creator':'Revision\x20author')},'children':[_0x2073c8,_0x5d23c4['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x375331},'children':_0x457697});}}function ni(_0x306b2d,_0x59aed1){const _0x4a6ac0=_0x306b2d['bindTemplate'],_0x36239a=_0x306b2d['locale'],_0x1f1572=_0x2a9d1c(_0x36239a);_0x1f1572['panelPosition']='sw';const _0x544f56=function(_0x485da1,_0x5e759d){const _0x364696=function(_0x52b801,_0x58d1eb){const _0x12fa27=_0x52b801['locale'],_0x4c304a={'Compare\x20against\x20selected':m(_0x12fa27,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x12fa27,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x12fa27,'Restore\x20this\x20revision')};return _0x58d1eb['map'](_0x51834a=>{const _0x5339e4=_0x4c304a[_0x51834a['name']];return _0x5339e4&&_0x5339e4!==_0x51834a['name']&&(_0x51834a['name']=_0x5339e4),_0x51834a;});}(_0x485da1,_0x5e759d),_0x4cadae=new _0x42ce0a();for(const _0x59c912 of _0x364696){const _0x565eb8={'type':'button','model':new to({'label':_0x59c912['name'],'class':_0x59c912['class'],'withText':!0x0,'role':'menuitem','_action':_0x59c912['action']})};_0x565eb8['model']['bind']('isEnabled')['to'](_0x485da1,'isActionsDropdownOpen',_0x76b8eb=>'function'!=typeof _0x59c912['isEnabled']||(!_0x76b8eb||_0x59c912['isEnabled'](_0x485da1))),_0x4cadae['add'](_0x565eb8);}return _0x4cadae;}(_0x306b2d,_0x59aed1);return _0x306b2d['bind']('isActionsDropdownOpen')['to'](_0x1f1572,'isOpen'),_0x1f1572['buttonView']['set']({'label':m(_0x36239a,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x226c5d['threeVerticalDots']}),_0x1f1572['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x4a6ac0['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x4a6ac0['to'](_0x32b930=>_0x32b930['stopPropagation']())}}),_0x1f1572['on']('execute',_0x1d47f5=>{_0x306b2d['isReady']&&'function'==typeof _0x1d47f5['source']['_action']&&_0x1d47f5['source']['_action'](_0x306b2d);}),_0x546d70(_0x1f1572,_0x544f56,{'role':'menu'}),_0x1f1572['listenTo'](_0x306b2d,'change:isActionsDropdownOpen',(_0x30b700,_0x13b305,_0x515cec)=>{if(_0x515cec)for(const _0x5df475 of _0x1f1572['listView']['items']){const _0x4fb66a=_0x5df475['children']['first'],_0x2c63cf=_0x59aed1['find'](_0x556c9c=>_0x556c9c['action']===_0x4fb66a['_action'])['isVisible'];_0x5df475['isVisible']=void 0x0===_0x2c63cf||_0x2c63cf(_0x306b2d);}}),_0x1f1572;}class ai extends/* #__PURE__ -- @preserve */
|
|
26
|
-
|
|
23
|
+
import{ObservableMixin as _0x4a7a66,uid as _0x47f5e5,Collection as _0x416362,logWarning as _0x199978,FocusTracker as _0x42422a,KeystrokeHandler as _0x4e13fb,scrollViewportToShowTarget as _0x4b5b86,ResizeObserver as at,ElementReplacer as ht,CKEditorError as _0x1a2ef3}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x5035cd,set as _0x45e4cd,unset as _0x38365c,isEqual as _0x402b9d}from'lodash-es';import{Plugin as _0x26a73c,PendingActions as _0x5f5c81,icons as _0x3937f1,Command as _0x2c8a7b,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x21aeb9,getMarkerDomElement as _0x30b6a5,ConfirmMixin as _0x714008,sanitizeEditorConfig as _0x2e045c}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x526c1d,Element as ft,Range as vt,ViewUIElement as _0x2d717c,ViewRawElement as _0x2aad15,ViewEmptyElement as _0x448a9b,ViewAttributeElement as _0xa1158c,ViewContainerElement as _0x2833cc,Position as gt,ViewText as _0x4d5cb1,ViewElement as _0x40b1e7,DocumentFragment as mt,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as _0x4aaa2b,injectCssTransitionDisabler as ts,submitHandler as _0x29fc1f,LabeledFieldView as nt,createLabeledInputText as _0x2b21b7,createDropdown as _0x298fc1,ListView as te,ListItemView as _0x33ed46,ButtonView as _0x4f5614,MenuBarMenuView as _0xb366d7,MenuBarMenuListView as _0x2d1c14,MenuBarMenuListItemView as _0x16248e,MenuBarMenuListItemButtonView as _0x145511,ContextualBalloon as _0x3e281e,ToolbarSeparatorView as _0x2dcfa0,IconView as _0x355ac1,addListToDropdown as _0x3a39f7,ViewModel as to,EditorUI as st,normalizeToolbarConfig as ot,BoxedEditorUIView as ct,StickyPanelView as ut,ToolbarView as lt,InlineEditableUIView as dt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x11acc7}from'luxon';class a extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x4a7a66(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x321c3a){super(),this['id']=_0x321c3a['id']||_0x47f5e5(),this['creator']=_0x321c3a['creator']||null,this['authors']=_0x321c3a['authors']||[],this['diffData']=_0x321c3a['diffData']||null,this['toVersion']=_0x321c3a['toVersion']||0x0,this['fromVersion']=_0x321c3a['fromVersion']||0x0,this['set']('name',_0x321c3a['name']||''),this['set']('createdAt',_0x321c3a['createdAt']||new Date()),this['set']('attributes',_0x321c3a['attributes']||{});}['setName'](_0x196d44){this['_update']({'name':_0x196d44});}['setAttribute'](_0x3f8f86,_0x53c56c){const _0x278129=_0x5035cd(this['attributes']);_0x45e4cd(_0x278129,_0x3f8f86,_0x53c56c),this['_update']({'attributes':_0x278129});}['removeAttribute'](_0x2f838f){const _0x7b3544=_0x5035cd(this['attributes']);_0x38365c(_0x7b3544,_0x2f838f),this['_update']({'attributes':_0x7b3544});}['_update'](_0x1bdeeb,_0x2bdba0=!0x1){let _0x3d2b02=!0x1;const _0x4860ff={'id':this['id']},_0xcf3f9=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x397caa of _0xcf3f9){const _0x113e6a=_0x1bdeeb[_0x397caa];void 0x0!==_0x113e6a&&_0x113e6a!==this[_0x397caa]&&(this[_0x397caa]=_0x113e6a,_0x4860ff[_0x397caa]=_0x113e6a,_0x3d2b02=!0x0);}_0x3d2b02&&(_0x4860ff['authors']&&(_0x4860ff['authorsIds']=_0x4860ff['authors']['map'](_0x2c6cf6=>_0x2c6cf6['id']),delete _0x4860ff['authors']),this['fire']('_update',_0x4860ff,_0x2bdba0));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x381e45=>_0x381e45['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x26a73c{['_revisions'];static get['requires'](){return[_0x21aeb9];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x2724de){super(_0x2724de),this['_revisions']=new _0x416362();}['afterInit'](){!async function(_0x5ddfee){const _0x40016f=_0x586f76([0x4d,0x71,0x32,0x34,0x37,0x39,0x53,0x6a,0x44,0x59,0x49,0x54,0x46,0x33,0x62,0x68,0x48,0x4e,0x55,0x50,0x4c,0x70,0x6d,0x65,0x6c,0x5a,0x52,0x6e,0x78,0x75,0x69,0x4f,0x51,0x76,0x31,0x35,0x45,0x43,0x7a,0x74,0x47,0x58,0x64,0x6f,0x56,0x42,0x67,0x36,0x38,0x77,0x4b,0x4a,0x30,0x79,0x72,0x61,0x63,0x6b,0x73,0x66,0x41,0x57]),_0x120a38=0xeb829,_0x3d8938=0x11fb594,_0x23148d=0x118ea04^_0x3d8938,_0x1ecd9d=window[_0x586f76([0x44,0x61,0x74,0x65])][_0x586f76([0x6e,0x6f,0x77])](),_0x585e5b=_0x5ddfee[_0x586f76([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x28d93c=new window[(_0x586f76([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x81c8e9=>{_0x585e5b[_0x586f76([0x6f,0x6e,0x63,0x65])](_0x586f76([0x72,0x65,0x61,0x64,0x79]),_0x81c8e9);}),_0x295bbd={[_0x586f76([0x6b,0x74,0x79])]:_0x586f76([0x45,0x43]),[_0x586f76([0x75,0x73,0x65])]:_0x586f76([0x73,0x69,0x67]),[_0x586f76([0x63,0x72,0x76])]:_0x586f76([0x50,0x2d,0x32,0x35,0x36]),[_0x586f76([0x78])]:_0x586f76([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x586f76([0x79])]:_0x586f76([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x586f76([0x61,0x6c,0x67])]:_0x586f76([0x45,0x53,0x32,0x35,0x36])},_0x5ebe02=_0x585e5b[_0x586f76([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x586f76([0x67,0x65,0x74])](_0x586f76([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x49a890(){let _0x366d1f,_0x280aba=null,_0xfe804b=null;try{if(_0x5ebe02==_0x586f76([0x47,0x50,0x4c]))return _0x586f76([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x366d1f=_0x384b19(),!_0x366d1f)return _0x586f76([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x366d1f[_0x586f76([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xfe804b=_0x1e31d2(_0x366d1f[_0x586f76([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x366d1f[_0x586f76([0x6a,0x74,0x69])])),await _0x3f27b2()?_0x1258eb()?_0x50051d()?_0x586f76([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x25320b()?(_0x366d1f[_0x586f76([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x586f76([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x280aba=_0x3b3fcb(_0x586f76([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x366d1f[_0x586f76([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x586f76([0x74,0x72,0x69,0x61,0x6c])&&(_0x280aba=_0x3b3fcb(_0x586f76([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x392cd3()):_0x586f76([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x586f76([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x586f76([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x249193){return _0x586f76([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x50051d(){const _0x4c2b3f=[_0x586f76([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x586f76([0x74,0x72,0x69,0x61,0x6c])][_0x586f76([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x366d1f[_0x586f76([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1ecd9d/0x3e8:0xe10*_0x23148d;return _0x366d1f[_0x586f76([0x65,0x78,0x70])]<_0x4c2b3f;}function _0x1258eb(){const _0x1241a7=_0x366d1f[_0x586f76([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x1241a7)return!0x1;if(_0x1241a7[_0x586f76([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x586f76([0x2a])))return!0x0;if(_0x1241a7[_0x586f76([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x586f76([0x52,0x48])))return!0x0;if(_0x1241a7[_0x586f76([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x586f76([0x52,0x52,0x48]))){if(_0x436e97())return!0x0;if(_0x43c89e()||_0x161cc0())return!0x0;}return!0x1;}function _0x25320b(){const _0x3784f2=_0x366d1f[_0x586f76([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3784f2||0x0==_0x3784f2[_0x586f76([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x10e2b2}=new URL(window[_0x586f76([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3784f2[_0x586f76([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x10e2b2))return!0x0;const _0x10c465=_0x10e2b2[_0x586f76([0x73,0x70,0x6c,0x69,0x74])](_0x586f76([0x2e]));return _0x3784f2[_0x586f76([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5b4a98=>_0x5b4a98[_0x586f76([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x586f76([0x2a])))[_0x586f76([0x6d,0x61,0x70])](_0x4499c3=>_0x4499c3[_0x586f76([0x73,0x70,0x6c,0x69,0x74])](_0x586f76([0x2e])))[_0x586f76([0x73,0x6f,0x6d,0x65])](_0x1e4656=>_0x10c465[_0x586f76([0x65,0x76,0x65,0x72,0x79])]((_0x5e1ac8,_0x309d7a)=>_0x1e4656[_0x309d7a]===_0x5e1ac8||_0x1e4656[_0x309d7a]===_0x586f76([0x2a])));}function _0x392cd3(){return _0x280aba&&_0xfe804b?new window[(_0x586f76([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5dc9c5,_0x174455)=>{_0x280aba[_0x586f76([0x74,0x68,0x65,0x6e])](_0x5dc9c5,_0x174455),_0xfe804b[_0x586f76([0x74,0x68,0x65,0x6e])](_0x1f4133=>{_0x1f4133!=_0x586f76([0x56,0x61,0x6c,0x69,0x64])&&_0x5dc9c5(_0x1f4133);},_0x174455);}):_0x280aba||_0xfe804b||_0x586f76([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1e31d2(_0x5c6c73,_0x50b36f){return new window[(_0x586f76([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2c2305=>{if(_0x179af0())return _0x2c2305(_0x586f76([0x56,0x61,0x6c,0x69,0x64]));_0x19aa32(),_0x585e5b[_0x586f76([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x586f76([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x361033=!0x1;const _0x36d719=_0x47f5e5();function _0x45f76e(_0x228575){return!!_0x228575&&(typeof _0x228575===_0x586f76([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x228575===_0x586f76([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x228575[_0x586f76([0x74,0x68,0x65,0x6e])]===_0x586f76([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x228575[_0x586f76([0x63,0x61,0x74,0x63,0x68])]===_0x586f76([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4ce182(_0x8dad59){_0x3d3740(_0x8dad59)[_0x586f76([0x74,0x68,0x65,0x6e])](_0x51c824=>{if(!_0x51c824||_0x51c824[_0x586f76([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x586f76([0x6f,0x6b]))return _0x586f76([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x219985(_0x1783ba(_0x36d719+_0x50b36f))!=_0x51c824[_0x586f76([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x586f76([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x586f76([0x56,0x61,0x6c,0x69,0x64]);})[_0x586f76([0x74,0x68,0x65,0x6e])](_0x24b08=>(_0x27f7b5(),_0x24b08),()=>{const _0x4532bb=_0x55d43f();return null==_0x4532bb?(_0x27f7b5(),_0x586f76([0x56,0x61,0x6c,0x69,0x64])):_0x586f76(_0x1ecd9d-_0x4532bb>(0x25133194^_0x3d8938)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x586f76([0x74,0x68,0x65,0x6e])](_0x2c2305)[_0x586f76([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2c2305(_0x586f76([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x32a9ee=0x1295b14^_0x3d8938;function _0x27f7b5(){const _0x15be5e=_0x586f76([0x6c,0x6c,0x63,0x74,0x2d])+_0x219985(_0x1783ba(_0x5c6c73)),_0x46e145=_0x4902ba(_0x219985(window[_0x586f76([0x4d,0x61,0x74,0x68])][_0x586f76([0x63,0x65,0x69,0x6c])](_0x1ecd9d/_0x32a9ee)));window[_0x586f76([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x586f76([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x15be5e,_0x46e145);}function _0x55d43f(){const _0x3c3cbf=_0x586f76([0x6c,0x6c,0x63,0x74,0x2d])+_0x219985(_0x1783ba(_0x5c6c73)),_0x346102=window[_0x586f76([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x586f76([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3c3cbf);return _0x346102?window[_0x586f76([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4902ba(_0x346102),0x10)*_0x32a9ee:null;}function _0x3d3740(_0x23f1df){return new window[(_0x586f76([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x16bba8,_0x46eee1)=>{_0x23f1df[_0x586f76([0x74,0x68,0x65,0x6e])](_0x16bba8,_0x46eee1),window[_0x586f76([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x46eee1,0x11e6154^_0x3d8938);});}}_0x585e5b[_0x586f76([0x6f,0x6e])](_0x586f76([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x518ec2,_0x51032c)=>{if(_0x51032c[0x0]!=_0x5c6c73)return _0x2c2305(_0x586f76([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x51032c[0x1]={..._0x51032c[0x1],[_0x586f76([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x36d719};},{[_0x586f76([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x586f76([0x68,0x69,0x67,0x68])}),_0x585e5b[_0x586f76([0x6f,0x6e])](_0x586f76([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1248e1=>{_0x45f76e(_0x1248e1[_0x586f76([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x361033=!0x0,_0x4ce182(_0x1248e1[_0x586f76([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x586f76([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x586f76([0x6c,0x6f,0x77])}),_0x28d93c[_0x586f76([0x74,0x68,0x65,0x6e])](()=>{_0x361033||_0x2c2305(_0x586f76([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x179af0(){return _0x585e5b[_0x586f76([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x586f76([0x76,0x69,0x65,0x77])][_0x586f76([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x586f76([0x61,0x75,0x74,0x6f]);}function _0x19aa32(){_0x585e5b[_0x586f76([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x586f76([0x76,0x69,0x65,0x77])][_0x586f76([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x586f76([0x61,0x75,0x74,0x6f]);}}function _0x3b3fcb(_0xf8e8e3){const _0x48025b=[new window[(_0x586f76([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x38f201=>setTimeout(_0x38f201,0x1168b58^_0x3d8938)),_0x28d93c[_0x586f76([0x74,0x68,0x65,0x6e])](()=>new window[(_0x586f76([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x19d014=>{const _0x587223=0x11fb593^_0x3d8938,_0x392bd0=_0x5ddfee[_0x586f76([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x508c1e(){_0x392bd0[_0x586f76([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x587223&&_0x19d014();}_0x508c1e(),_0x392bd0[_0x586f76([0x6f,0x6e])](_0x586f76([0x61,0x64,0x64]),_0x508c1e);})),new window[(_0x586f76([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2417de=>{function _0x3a37b6(){for(const _0x28ba41 in window)if(window[_0x586f76([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x586f76([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x28ba41))&&window[_0x28ba41]==_0x120a38)return _0x2417de();_0x585e5b[_0x586f76([0x73,0x74,0x61,0x74,0x65])]!=_0x586f76([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x586f76([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3a37b6,0x11fa61c^_0x3d8938);}_0x2f7b4d(_0x586f76([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x3a37b6();})];return window[_0x586f76([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x586f76([0x72,0x61,0x63,0x65])](_0x48025b)[_0x586f76([0x74,0x68,0x65,0x6e])](()=>_0xf8e8e3);}async function _0x697082(){if(await _0x28d93c,_0x2f7b4d(_0x586f76([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0xe254c5=_0x5ddfee[_0x586f76([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x25b5ad=_0x5ddfee[_0x586f76([0x67,0x65,0x74,0x45,0x61,0x72,0x6c,0x69,0x65,0x72,0x56,0x69,0x73,0x69,0x62,0x6c,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](_0xe254c5[_0x586f76([0x69,0x64])]),_0x3933c0=_0x3c75d4(_0x586f76([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x3933c0[_0x586f76([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0xe254c5['id'],_0x25b5ad?_0x25b5ad['id']:null,!0x0),_0x3933c0[_0x586f76([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x586f76([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x3933c0[_0x586f76([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x3933c0[_0x586f76([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0xb0dee,void(_0x3933c0[_0x586f76([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0xb0dee);}if(_0x2f7b4d(_0x586f76([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x181f48=_0x3c75d4(_0x586f76([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x181f48[_0x586f76([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x586f76([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x181f48[_0x586f76([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x181f48[_0x586f76([0x75,0x70,0x64,0x61,0x74,0x65])]=_0xb0dee,_0x181f48[_0x586f76([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0xb0dee;}_0x585e5b[_0x586f76([0x6d,0x6f,0x64,0x65,0x6c])][_0x586f76([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xb0dee,_0x585e5b[_0x586f76([0x6d,0x6f,0x64,0x65,0x6c])][_0x586f76([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xb0dee,_0x585e5b[_0x586f76([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x586f76([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x436e97(){return _0x2f7b4d(_0x586f76([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x3c75d4(_0x586f76([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x586f76([0x73,0x74,0x61,0x74,0x65])]==_0x586f76([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x43c89e(){return _0x2f7b4d(_0x586f76([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x161cc0(){return _0x2f7b4d(_0x586f76([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x3b3482(_0x253c58){const _0x1953fc=_0x50a64c();_0x585e5b[_0x1953fc]=_0x586f76([0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x48,0x69,0x73,0x74,0x6f,0x72,0x79,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x253c58,_0x253c58[_0x586f76([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x586f76([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x50a64c()]=_0x120a38),_0x253c58!=_0x586f76([0x56,0x61,0x6c,0x69,0x64])&&_0x697082();}function _0x50a64c(){const _0x3550e8=window[_0x586f76([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x586f76([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x586f76([0x6e,0x6f,0x77])]())[_0x586f76([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x586f76([0x2e]),'');let _0x15aa37=_0x586f76([0x4d]);for(let _0x58d91a=0x0;_0x58d91a<_0x3550e8[_0x586f76([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x58d91a+=0x2){let _0x60ca4d=window[_0x586f76([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3550e8[_0x586f76([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x58d91a,_0x58d91a+0x2));_0x60ca4d>=_0x40016f[_0x586f76([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x60ca4d-=_0x40016f[_0x586f76([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x15aa37+=_0x40016f[_0x60ca4d];}return _0x15aa37;}function _0x384b19(){const _0x59a4bf=_0x5ebe02[_0x586f76([0x73,0x70,0x6c,0x69,0x74])](_0x586f76([0x2e]));if(0x3!=_0x59a4bf[_0x586f76([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x8dd9bb(_0x59a4bf[0x1]);function _0x8dd9bb(_0xea039e){const _0x7eca94=_0x5d5f44(_0xea039e);return _0x7eca94&&_0x196a85()?_0x7eca94:null;function _0x196a85(){const _0x4d6735=_0x7eca94[_0x586f76([0x6a,0x74,0x69])],_0x47e247=window[_0x586f76([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4d6735[_0x586f76([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4d6735[_0x586f76([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x44f7f7={..._0x7eca94,[_0x586f76([0x6a,0x74,0x69])]:_0x4d6735[_0x586f76([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4d6735[_0x586f76([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x44f7f7[_0x586f76([0x76,0x63])],_0x1783ba(_0x44f7f7)==_0x47e247;}}}async function _0x3f27b2(){let _0x2cac12=!0x0;try{const _0x5f0238=_0x5ebe02[_0x586f76([0x73,0x70,0x6c,0x69,0x74])](_0x586f76([0x2e])),[_0x400cb9,_0x20feae,_0x33ce10]=_0x5f0238;return _0x4c1a02(_0x400cb9),await _0x1bb5d6(_0x400cb9,_0x20feae,_0x33ce10),_0x2cac12;}catch(_0x5a9ad3){return!0x1;}function _0x4c1a02(_0x4e1786){const _0x9cac65=_0x5d5f44(_0x4e1786);_0x9cac65&&_0x9cac65[_0x586f76([0x61,0x6c,0x67])]==_0x586f76([0x45,0x53,0x32,0x35,0x36])||(_0x2cac12=!0x1);}async function _0x1bb5d6(_0x2e675c,_0x1bd836,_0x3e6242){const _0x3f7ec3=window[_0x586f76([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x586f76([0x66,0x72,0x6f,0x6d])](_0x4eb28c(_0x3e6242),_0x539b6e=>_0x539b6e[_0x586f76([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x382cae=new window[(_0x586f76([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x586f76([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2e675c+_0x586f76([0x2e])+_0x1bd836),_0x138fd2=window[_0x586f76([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x586f76([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x138fd2)return;const _0xb5dda4=await _0x138fd2[_0x586f76([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x586f76([0x6a,0x77,0x6b]),_0x295bbd,{[_0x586f76([0x6e,0x61,0x6d,0x65])]:_0x586f76([0x45,0x43,0x44,0x53,0x41]),[_0x586f76([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x586f76([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x586f76([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x138fd2[_0x586f76([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x586f76([0x6e,0x61,0x6d,0x65])]:_0x586f76([0x45,0x43,0x44,0x53,0x41]),[_0x586f76([0x68,0x61,0x73,0x68])]:{[_0x586f76([0x6e,0x61,0x6d,0x65])]:_0x586f76([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xb5dda4,_0x3f7ec3,_0x382cae)||(_0x2cac12=!0x1);}}function _0x5d5f44(_0x690d45){return _0x690d45[_0x586f76([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x586f76([0x65,0x79]))?JSON[_0x586f76([0x70,0x61,0x72,0x73,0x65])](_0x4eb28c(_0x690d45)):null;}function _0x4eb28c(_0x15e362){return window[_0x586f76([0x61,0x74,0x6f,0x62])](_0x15e362[_0x586f76([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x586f76([0x2b]))[_0x586f76([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x586f76([0x2f])));}function _0x1783ba(_0xc7a4e8){let _0x190236=0x1505;function _0x560d43(_0x391e7b){for(let _0x378557=0x0;_0x378557<_0x391e7b[_0x586f76([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x378557++){const _0x395cda=_0x391e7b[_0x586f76([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x378557);_0x190236=(_0x190236<<0x5)+_0x190236+_0x395cda,_0x190236&=_0x190236;}}function _0x172648(_0x289766){Array[_0x586f76([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x289766)?_0x289766[_0x586f76([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x172648):_0x289766&&typeof _0x289766==_0x586f76([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x586f76([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x289766)[_0x586f76([0x73,0x6f,0x72,0x74])]()[_0x586f76([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x47e24e,_0x1b75f7])=>{_0x560d43(_0x47e24e),_0x172648(_0x1b75f7);}):_0x560d43(window[_0x586f76([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x289766));}return _0x172648(_0xc7a4e8),_0x190236>>>0x0;}function _0x219985(_0x202f14){return _0x202f14[_0x586f76([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x586f76([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x586f76([0x30]));}function _0x4902ba(_0x1291c8){return _0x1291c8[_0x586f76([0x73,0x70,0x6c,0x69,0x74])]('')[_0x586f76([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x586f76([0x6a,0x6f,0x69,0x6e])]('');}function _0x2f7b4d(_0x4663d1){return _0x585e5b[_0x586f76([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x586f76([0x68,0x61,0x73])](_0x4663d1);}function _0x3c75d4(_0x59560e){return _0x585e5b[_0x586f76([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x586f76([0x67,0x65,0x74])](_0x59560e);}function _0xb0dee(){}function _0x586f76(_0x2b89de){return _0x2b89de['map'](_0x436186=>String['fromCharCode'](_0x436186))['join']('');}_0x3b3482(await _0x49a890());}(this);}['createRevision'](_0x4385de){const _0x5b0240=this['editor']['plugins']['get']('Users');return new a({'id':_0x4385de['id'],'name':_0x4385de['name'],'creator':_0x4385de['creatorId']?_0x5b0240['getUser'](_0x4385de['creatorId']):null,'diffData':_0x4385de['diffData']||_0x4385de['data'],'authors':_0x4385de['authorsIds']['map'](_0x275532=>_0x5b0240['getUser'](_0x275532)),'createdAt':new Date(_0x4385de['createdAt']),'attributes':_0x4385de['attributes'],'fromVersion':_0x4385de['fromVersion'],'toVersion':_0x4385de['toVersion']});}['addRevision'](_0x18377f,_0x471ac4=0x0){this['_revisions']['add'](_0x18377f,_0x471ac4);}['getRevision'](_0x10f21d){return this['_revisions']['get'](_0x10f21d);}['getRevisions'](_0x37e651={'toJSON':!0x1}){const _0x1ceaf1=Array['from'](this['_revisions']);return _0x1ceaf1['reverse'](),_0x37e651['toJSON']?_0x1ceaf1['map'](_0x353302=>_0x353302['toJSON']()):_0x1ceaf1;}['getIndex'](_0x157d32){return this['_revisions']['getIndex'](_0x157d32);}['getEarlierVisibleRevision'](_0x31ec77){const [,_0x5d91d7]=this['getRevisionsIterator'](_0x31ec77,{'direction':'earlier'});return _0x5d91d7;}['getLaterVisibleRevision'](_0x57e0de){const [,_0xad17f4]=this['getRevisionsIterator'](_0x57e0de,{'direction':'later'});return _0xad17f4;}['getRevisionsInDiff'](_0x5ac5bb){const _0x26df06=[];for(const _0x3bf3a1 of this['getRevisionsIterator'](_0x5ac5bb['newRevisionId']))if(_0x26df06['push'](_0x3bf3a1),_0x3bf3a1['id']===_0x5ac5bb['oldRevisionId'])break;return _0x26df06;}*['getRevisionsIterator'](_0x30ae2b,{direction:_0x4bc1a4='earlier',filter:_0x4c7848=()=>!0x0}={}){const _0x1e3833='earlier'===_0x4bc1a4?0x1:-0x1;let _0x50a0fa=this['_revisions']['get'](_0x30ae2b),_0x144fd4=this['getIndex'](_0x50a0fa);for(yield _0x50a0fa;_0x50a0fa;){if(_0x144fd4+=_0x1e3833,_0x50a0fa=this['getRevision'](_0x144fd4),!_0x50a0fa)return;_0x4c7848(_0x50a0fa)&&(yield _0x50a0fa);}}}function m(_0x24ee62,_0xa25f62,_0x20b149){const t=_0x24ee62['t'];switch(_0xa25f62){case'Revision\x20history':return t('Revision\x20history');case'Open\x20revision\x20history':return t('Open\x20revision\x20history');case'Restored':return t('Restored');case'Empty\x20document':return t('Empty\x20document');case'Initial\x20revision':return t('Initial\x20revision');case'Suggested\x20by':return t('Suggested\x20by');case'Added\x20by':return t('Added\x20by');case'Removed\x20by':return t('Removed\x20by');case'Show\x20more\x20items':return t('Show\x20more\x20items');case'Compare\x20against\x20selected':return t('Compare\x20against\x20selected');case'Name\x20this\x20revision':return t('Name\x20this\x20revision');case'Restore\x20this\x20revision':return t('Restore\x20this\x20revision');case'Back\x20to\x20editing':return t('Back\x20to\x20editing');case'Loading...':return t('Loading...');case'No\x20changes':return t('No\x20changes');case'NUMBER_OF_CHANGES':return t({'string':'%0\x20change','plural':'%0\x20changes','id':'NUMBER_OF_CHANGES'},_0x20b149);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x20b149);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const P={'c':_0x2833cc,'a':_0xa1158c,'e':_0x448a9b,'r':_0x2aad15,'u':_0x2d717c};class l extends _0x26a73c{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x21aeb9,j,_0x5f5c81];}constructor(_0x54efe0){super(_0x54efe0),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x27700b=_0x47f5e5();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x27700b},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x223ec9=this['repository']['getRevision'](0x0),_0x3862ea=_0x223ec9&&null===_0x223ec9['creator']?_0x223ec9:null;if(this['_continueCurrentRevision']=!!_0x3862ea&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x3349e4=this['_source']['getCurrentRevisionId'](),_0x48f203=this['repository']['getRevision'](_0x3349e4);if(_0x48f203)this['_startingVersion']=_0x48f203['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x1c2597=this['_source']['history']['_operations']['find'](_0x343bca=>!_0x343bca['_isInit']),_0xc7eb3b=_0x1c2597?_0x1c2597['baseVersion']:this['_source']['history']['version'];_0x223ec9?(_0x223ec9['toVersion']<_0xc7eb3b&&_0x223ec9['_update']({'toVersion':_0xc7eb3b}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x3862ea['id'],this['_startingVersion']=_0x3862ea['fromVersion']):(this['_startingVersion']=_0x223ec9['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0xc7eb3b,this['_continueCurrentRevision']=!0x1);}}else _0x3862ea&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x3862ea['toVersion'],this['editor']['model']['document']['history']['version']),_0x3862ea['fromVersion']===_0x3862ea['toVersion']?(0x0!==_0x3862ea['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x3862ea['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x3862ea['id'],this['_startingVersion']=_0x3862ea['fromVersion'])),this['_continueCurrentRevision']||(this['_startingVersion']=this['editor']['model']['document']['version']);this['_revisionDataBuilder']['init'](this['_source']['history']),this['_createInitialRevision'](this['_startingVersion']),this['_createCurrentRevision'](this['_startingVersion']),this['adapter']&&this['sendBufferedUpdates']();}),this['bind']('isReady')['to'](this,'_isPendingUpdate',_0x5a2a40=>!_0x5a2a40),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5bdbe0=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x32f287;for(const _0x5d9cac in _0x5bdbe0){const _0x148aa6=_0x5d9cac,_0x493c41=_0x5bdbe0[_0x148aa6];if('revisionHistoryLicenseKeyValid'==_0x493c41||'revisionHistoryLicenseKeyInvalid'==_0x493c41||'revisionHistoryLicenseKeyExpired'==_0x493c41||'revisionHistoryLicenseKeyDomainLimit'==_0x493c41||'revisionHistoryLicenseKeyNotAllowed'==_0x493c41||'revisionHistoryLicenseKeyEvaluationLimit'==_0x493c41||'revisionHistoryLicenseKeyTrialLimit'==_0x493c41||'revisionHistoryLicenseKeyUsageLimit'==_0x493c41){delete _0x5bdbe0[_0x148aa6],_0x32f287=_0x493c41,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x32f287&&_0x5bdbe0['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x32f287&&_0x5bdbe0['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x32f287&&_0x5bdbe0['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x32f287&&_0x5bdbe0['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x32f287&&_0x5bdbe0['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x32f287&&_0x5bdbe0['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x32f287&&_0x5bdbe0['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x23fdc3=this['repository']['getRevision'](0x0),_0x107d90=await this['getRevisionDocumentData'](_0x23fdc3),_0x3fbe7c=await this['getRevisionRootsAttributes'](_0x23fdc3);this['_replaceEditorDataWithRevisionData'](_0x107d90,_0x3fbe7c);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x51fcdc){this['_source']=_0x51fcdc;}async['update'](){const _0x1b25ec=await this['_source']['getLatestVersion']();if(_0x1b25ec>this['currentRevision']['toVersion']){await this['_loadState']();const _0x39b44d=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x1b25ec});_0x39b44d['authors']=_0x39b44d['authorsIds']['map'](_0x1e8170=>this['editor']['plugins']['get']('Users')['getUser'](_0x1e8170)),this['currentRevision']['_update'](_0x39b44d);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0x17bf2d={},_0x5ba1e2=null){const _0x21acf7=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x5ba1e2>this['currentRevision']['toVersion']&&(_0x5ba1e2=null),null===_0x5ba1e2&&(_0x5ba1e2=await this['_source']['getLatestVersion']());const _0x5a7a66=this['_getFromVersion'](_0x5ba1e2),_0x44aec7=this['buildRevisionData']({'from':_0x5a7a66,'to':_0x5ba1e2});if(this['currentRevision']['toVersion']<_0x5ba1e2){const _0xeffde=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x5ba1e2,'to':_0x5ba1e2});_0xeffde['authors']=[],_0xeffde['authorsIds']=[],_0xeffde['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0xeffde,!0x0),delete _0xeffde['authors'],_0x21acf7['push'](_0xeffde);}_0x17bf2d['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x17bf2d['name']=_0x17bf2d['name']||null,_0x17bf2d['id']=_0x17bf2d['id']||_0x47f5e5(),_0x17bf2d={..._0x17bf2d,..._0x44aec7};const _0xefc56e=this['addRevisionData'](_0x17bf2d);_0x21acf7['push'](_0x17bf2d);const _0x3e58cc=this['repository']['getIndex'](_0xefc56e);if(0x0!==_0x3e58cc){const _0x7de32f=this['repository']['getRevision'](_0x3e58cc-0x1);if(_0x7de32f['fromVersion']!==_0x5ba1e2){const _0x5e6fa1=this['_revisionDataBuilder']['getData'](_0x5ba1e2,_0x7de32f['toVersion']),_0x56aa02={'id':_0x7de32f['id'],'diffData':_0x5e6fa1['diffData'],'authorsIds':_0x5e6fa1['authorsIds'],'authors':_0x5e6fa1['authorsIds']['map'](_0x569763=>this['editor']['plugins']['get']('Users')['getUser'](_0x569763)),'fromVersion':_0x5ba1e2};_0x7de32f===this['currentRevision']&&(_0x56aa02['createdAt']=new Date(_0x17bf2d['createdAt']['getTime']()+0xa)),_0x7de32f['_update'](_0x56aa02,!0x0),delete _0x56aa02['authors'],_0x21acf7['push'](_0x56aa02);}}if(this['adapter']){for(const _0x15d283 of _0x21acf7)this['_bufferUpdate'](_0x15d283['id'],_0x15d283,!0x0);this['sendBufferedUpdates']();}return _0xefc56e;}['addRevisionData'](_0x201f14){const _0x2d8a61=this['repository']['createRevision'](_0x201f14);return this['adapter']&&_0x2d8a61['on']('_update',(_0x57ee8c,_0x2a6e84,_0x2d3f6e)=>{_0x2d3f6e||(this['_bufferUpdate'](_0x2a6e84['id'],_0x2a6e84,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x2d8a61,this['_findInsertionIndex'](_0x2d8a61)),_0x2d8a61;}async['getRevisionDocumentData'](_0x531c52){await this['_loadRevisionData'](_0x531c52);const _0x2f1295={};for(const _0x18f5a8 in _0x531c52['diffData']){if(_0x531c52['diffData'][_0x18f5a8]['attachChange']&&!_0x531c52['diffData'][_0x18f5a8]['attachChange']['isAttached'])continue;const _0x4a91df=this['_removeRevisionMarkers'](JSON['parse'](_0x531c52['diffData'][_0x18f5a8]['insertions'])),_0x3dcb33=this['editor']['editing']['view']['document'],_0x1d6b24=new _0x526c1d(_0x3dcb33,_0x4a91df['map'](_0x4f0317=>C(_0x4f0317,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x2f1295[_0x18f5a8]=this['editor']['data']['processor']['toData'](_0x1d6b24),this['editor']['data']['processor']['useFillerType']('default');}return _0x2f1295;}async['getRevisionRootsAttributes'](_0x13a1e2){await this['_loadRevisionData'](_0x13a1e2);const _0x38d6e7={};for(const _0x245293 in _0x13a1e2['diffData'])_0x13a1e2['diffData'][_0x245293]['attachChange']&&!_0x13a1e2['diffData'][_0x245293]['attachChange']['isAttached']||(_0x38d6e7[_0x245293]=_0x13a1e2['diffData'][_0x245293]['attributesAfter']||{});return _0x38d6e7;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x332502=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x7ed578=0x0;_0x7ed578<_0x332502['length'];_0x7ed578++){const _0x17cf87=_0x332502[_0x7ed578];let _0x5c91a0=!0x1;for(const _0x530f6c of Object['keys'](_0x17cf87))void 0x0===_0x17cf87[_0x530f6c]?delete _0x17cf87[_0x530f6c]:'id'!==_0x530f6c&&(_0x5c91a0=!0x0);_0x5c91a0||(_0x332502[_0x7ed578]=null);}if(_0x332502=_0x332502['filter'](_0x37fb56=>null!==_0x37fb56),!_0x332502['length'])return;for(let _0x429132=0x0;_0x429132<_0x332502['length'];_0x429132++){const _0x194357=_0x332502[_0x429132];void 0x0!==_0x194357['fromVersion']&&void 0x0===_0x194357['toVersion']&&(_0x194357['toVersion']=this['repository']['getRevision'](_0x194357['id'])['toVersion']),void 0x0!==_0x194357['toVersion']&&void 0x0===_0x194357['fromVersion']&&(_0x194357['fromVersion']=this['repository']['getRevision'](_0x194357['id'])['fromVersion']);}const _0x55fc96=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x332502,_0x55fc96)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x20b204=>{if(_0x20b204){for(const _0x24dbca of _0x20b204)this['setRevisionData']({'id':_0x24dbca['id'],'createdAt':_0x24dbca['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x501d56,_0x8a5632){let _0x5cbdd4=this['editor']['config']['get']('initialData'),_0x32891b=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x5cbdd4){_0x5cbdd4={};for(const _0x47116c of this['editor']['model']['document']['getRootNames']())_0x5cbdd4[_0x47116c]='';}if('string'==typeof _0x5cbdd4&&(_0x5cbdd4={'main':_0x5cbdd4}),void 0x0===_0x32891b){_0x32891b={};for(const _0x16e6f0 of this['editor']['model']['document']['getRootNames']())_0x32891b[_0x16e6f0]={};}let _0x524a60=!0x1;const _0x59ae49=Object['keys'](_0x5cbdd4),_0xef09b5=Object['keys'](_0x501d56);for(const _0x448cff of _0x59ae49){if(_0x5cbdd4[_0x448cff]!==_0x501d56[_0x448cff]&&''!==_0x5cbdd4[_0x448cff]['trim']()){_0x524a60=!0x0;break;}if(!_0x402b9d(_0x32891b[_0x448cff],_0x8a5632[_0x448cff])&&Object['keys'](_0x32891b[_0x448cff])['length']>0x0){_0x524a60=!0x0;break;}}_0x524a60||(_0x524a60=_0xef09b5['some'](_0x24ce85=>!this['editor']['model']['document']['getRoot'](_0x24ce85))),_0x524a60&&_0x199978('editor-initial-data-replaced-with-revision-data',{'editorData':_0x5cbdd4,'editorRootsAttributes':_0x32891b,'revisionData':_0x501d56,'revisionRootsAttributes':_0x8a5632}),this['editor']['config']['set']('initialData',_0x501d56),this['editor']['config']['set']('rootsAttributes',_0x8a5632);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x1b0e01=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x1b0e01['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x275799){const _0x22fda5=this['repository']['getRevisions']();_0x22fda5['reverse']();let _0x39547f=0x0;for(;_0x39547f<_0x22fda5['length'];){const _0x1e87ea=_0x22fda5[_0x39547f];if(_0x1e87ea===this['currentRevision']){_0x39547f++;continue;}if(_0x1e87ea['id']===this['_initialRevisionId'])break;const _0x381c2b=_0x275799['toVersion']-_0x1e87ea['toVersion']||_0x275799['fromVersion']-_0x1e87ea['fromVersion'];if(_0x381c2b>0x0)break;if(_0x381c2b<0x0)_0x39547f++;else{if(!_0x275799['creator']&&_0x1e87ea['creator'])break;if(_0x1e87ea['creator']||!_0x275799['creator']){if(_0x275799['createdAt']>_0x1e87ea['createdAt'])break;_0x39547f++;}else _0x39547f++;}}return _0x39547f;}['setRevisionData'](_0xc5a64c){const _0x4cde2c=this['repository']['getRevision'](_0xc5a64c['id']);if(_0xc5a64c['createdAt']&&(_0xc5a64c['createdAt']=new Date(_0xc5a64c['createdAt'])),_0xc5a64c['authorsIds']){const _0x1aab5e=this['editor']['plugins']['get']('Users');_0xc5a64c['authors']=_0xc5a64c['authorsIds']['map'](_0x541407=>_0x1aab5e['getUser'](_0x541407));}_0x4cde2c['_update'](_0xc5a64c,!0x0);}['buildRevisionData']({revision:_0x215ec=null,from:_0x413a3d=null,to:_0x5dc519=null}){_0x413a3d=null!==_0x413a3d?_0x413a3d:_0x215ec['fromVersion'],_0x5dc519=null!==_0x5dc519?_0x5dc519:_0x215ec['toVersion'];const _0x431682=this['_revisionDataBuilder']['getData'](_0x413a3d,_0x5dc519),_0x5d0a74={'diffData':_0x431682['diffData'],'authorsIds':_0x431682['authorsIds'],'fromVersion':_0x413a3d,'toVersion':_0x5dc519};if(!_0x215ec||_0x5dc519!==_0x215ec['toVersion']){const _0x17a12c=_0x5dc519-0x1,_0x26dd73=this['_source']['history']['getOperation'](_0x17a12c);_0x5d0a74['createdAt']=_0x26dd73&&_0x26dd73['createdAt']||new Date();}if(this['_loadedStateData']&&_0x413a3d===this['_loadedStateData']['fromVersion']){for(const _0x1d416a of this['_loadedStateData']['authors'])_0x5d0a74['authorsIds']['includes'](_0x1d416a['id'])||_0x5d0a74['authorsIds']['push'](_0x1d416a['id']);}return _0x5d0a74;}['_loadRevisionData'](_0x124015){if(!_0x124015||_0x124015['diffData'])return Promise['resolve']();{const _0x5b0086=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x5b0086,'revisionId':_0x124015['id']})['then'](_0x1ef665=>{_0x124015['diffData']=_0x1ef665['diffData'];});}}['_bufferUpdate'](_0x2729a6,_0x3b5e1b,_0xd549d){if(this['_bufferedUpdates']['has'](_0x2729a6)){const _0x96d81=this['_bufferedUpdates']['get'](_0x2729a6);_0x3b5e1b=_0xd549d?{..._0x96d81,..._0x3b5e1b}:{..._0x3b5e1b,..._0x96d81};}this['_bufferedUpdates']['set'](_0x2729a6,_0x3b5e1b);}['_getFromVersion'](_0x20d789){const _0x1cd8d6=this['repository']['getRevisions']();_0x1cd8d6['reverse'](),_0x1cd8d6['shift']();const _0x5da92d=_0x1cd8d6['find'](_0x1c984b=>_0x1c984b['toVersion']<=_0x20d789)['toVersion'];return _0x5da92d<this['_startingVersion']?this['_startingVersion']:_0x5da92d;}['_createInitialRevision'](_0x2e0e89){const _0x3ba987=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x3ba987)this['_initialRevisionId']=_0x3ba987['id'];else{const _0x236b92=!this['editor']['model']['document']['roots']['find'](_0x23ee05=>this['editor']['model']['hasContent'](_0x23ee05)),_0x157656=this['editor']['plugins']['get']('Users')['me']['id'],_0x85ecb8=m(this['editor']['locale'],_0x236b92?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x2e0e89,'to':_0x2e0e89,'id':this['_initialRevisionId'],'name':_0x85ecb8,'creatorId':_0x157656});}}['_createCurrentRevision'](_0x4fdb40){const _0x5f0eaf=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x5f0eaf),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x4fdb40,'to':_0x4fdb40,'id':_0x5f0eaf,'name':'','creatorId':null}));}['_makeRevision']({name:_0x183b2b,from:_0x21a7ee,to:_0x874687,creatorId:_0x417276,id:_0x5e0c87}){const _0x579003=this['buildRevisionData']({'from':_0x21a7ee,'to':_0x874687});_0x579003['name']=_0x183b2b,_0x579003['creatorId']=_0x417276,_0x579003['id']=_0x5e0c87;const _0x2ab820=this['addRevisionData'](_0x579003);return this['adapter']&&this['_bufferUpdate'](_0x579003['id'],_0x579003,!0x0),_0x2ab820;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x64df6){return(_0x64df6=_0x64df6['filter'](_0x38252c=>!_0x38252c['name']||'revision-start'!==_0x38252c['name']&&'revision-end'!==_0x38252c['name']))['forEach'](_0x1fec50=>{'string'!=typeof _0x1fec50&&(_0x1fec50['children']=this['_removeRevisionMarkers'](_0x1fec50['children']),_0x1fec50['attributes']=_0x1fec50['attributes']['filter'](_0x4113ce=>!_0x4113ce[0x0]['startsWith']('data-revision-')));}),_0x64df6;}}function C(_0x54cd2a,_0x298477){const _0x1bd156=_0x298477['editing']['view']['document'];if('string'==typeof _0x54cd2a)return new _0x4d5cb1(_0x1bd156,_0x54cd2a);{const _0x21b240=_0x54cd2a['children']['map'](_0x14167c=>C(_0x14167c,_0x298477));return new(P[_0x54cd2a['type']]||_0x40b1e7)(_0x1bd156,_0x54cd2a['name'],_0x54cd2a['attributes'],_0x21b240);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x19e913){this['editor']=_0x19e913,this['_savedMetaData']=new Map(),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_markers']=new Map(),this['_diffRoots']=new Map(),this['_diffRootsAttributes']=new Map(),this['_baseRoots']=new Map(),this['_baseRootsAttributes']=new Map(),this['_idsRoots']=new Map(),this['_baseIdsRoots']=new Map(),this['_touched']=new Map(),this['_touchedMarkers']=new Map(),this['_touchedRoots']=new Map(),this['_revisionId']=0x1;}['init'](_0x383e92){this['source']=_0x383e92;const _0x1aeb3f=new Map(),_0x201542=new Map(),_0x41d50e=this['editor']['model']['document']['roots']['map'](_0x1f8a24=>_0x1f8a24['rootName']);for(const _0x58b1d9 of _0x41d50e){const _0x505fc3=this['editor']['model']['document']['getRoot'](_0x58b1d9),_0x1bfe7d=T(_0x505fc3);_0x1aeb3f['set'](_0x58b1d9,_0x1bfe7d),_0x201542['set'](_0x58b1d9,Object['fromEntries'](_0x505fc3['getAttributes']()));}const _0x397e4d=Array['from'](this['editor']['model']['markers'])['map'](_0x2d8379=>[_0x2d8379['name'],_0x2d8379['getRange']()]),_0x180fae=this['source']['version'];this['_saveMetaData'](_0x180fae,_0x1aeb3f,_0x397e4d,_0x201542),this['_startingRevisionId']=this['_revisionId'];const _0x1f0ce5=new Map(),_0x40ea2a=new Map();for(const _0x239409 of _0x41d50e){const _0x5e729a=F(_0x239409);_0x1f0ce5['set'](_0x239409,_0x5e729a),_0x40ea2a['set'](_0x239409,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x1f0ce5,[],_0x40ea2a);}['getData'](_0x5a0271,_0x1399f5){if(this['_lastFrom']===_0x5a0271&&this['_lastTo']<=_0x1399f5)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x1399f5,!0x0);else{if(!this['_savedMetaData']['has'](_0x5a0271)){const _0x42c9fb=this['_getPreviousFrom'](_0x5a0271);this['_calculateMetaData'](_0x42c9fb,_0x5a0271,!0x1);}this['_calculateMetaData'](_0x5a0271,_0x1399f5,!0x0);}return this['_lastFrom']=_0x5a0271,this['_lastTo']=_0x1399f5,this['_getState']();}['loadState'](_0x341a22){this['_reset'](),this['_lastFrom']=_0x341a22['fromVersion'],this['_lastTo']=_0x341a22['toVersion'];for(const _0x1daca6 in _0x341a22['diffData']){const _0x3a8a43=_0x341a22['diffData'][_0x1daca6]['attachChange'],_0x502ede=_0x5035cd(_0x341a22['diffData'][_0x1daca6]['attributesBefore'])||{},_0x4294b8=this['_makeModelFromViewString'](_0x341a22['diffData'][_0x1daca6]['deletions']);_0x4294b8['rootName']=_0x1daca6,_0x4294b8['_isAttached']=!_0x3a8a43||!_0x3a8a43['isAttached'],_0x4294b8['isAttached']=()=>_0x4294b8['_isAttached'],this['_baseRoots']['set'](_0x1daca6,_0x4294b8),this['_baseRootsAttributes']['set'](_0x1daca6,_0x502ede),_0x3a8a43&&this['_touchedRoots']['set'](_0x1daca6,_0x3a8a43);const _0x3ab123=this['_makeIdsRoot'](_0x4294b8);this['_baseIdsRoots']['set'](_0x1daca6,_0x3ab123);for(const [_0xfaa1b8,_0x1a3def]of _0x4294b8['markers']){if(!_0xfaa1b8['startsWith']('revision:'))continue;const _0x234560=_0xfaa1b8['split'](':')[0x2];for(const _0x144f01 of _0x1a3def['getWalker']({'singleCharacters':!0x0})){const _0x2e9bfa=this['_getVidAttributeName'](_0x144f01),_0x3408f7='elementEnd'==_0x144f01['type']?_0x144f01['previousPosition']['path']['slice'](0x0,-0x1):_0x144f01['previousPosition']['path'],_0x3d1b5f=_0x3ab123['getNodeByPath'](_0x3408f7)['getAttribute'](_0x2e9bfa);this['_touched']['set'](_0x3d1b5f,{'userId':_0x234560});}}}this['_startingRevisionId']=this['_revisionId'];const _0x259946=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x21268b=>!this['_touched']['has'](_0x21268b));let _0x4ad067=0x0;const _0x2edaec=new Map();for(const _0x2dc53c in _0x341a22['diffData']){const _0x1bc2a0=_0x341a22['diffData'][_0x2dc53c]['attachChange'],_0x518033=_0x5035cd(_0x341a22['diffData'][_0x2dc53c]['attributesAfter'])||{},_0xf608d0=this['_makeModelFromViewString'](_0x341a22['diffData'][_0x2dc53c]['insertions']);_0xf608d0['rootName']=_0x2dc53c,_0xf608d0['_isAttached']=!_0x1bc2a0||_0x1bc2a0['isAttached'],_0xf608d0['isAttached']=()=>_0xf608d0['_isAttached'],this['_diffRoots']['set'](_0x2dc53c,_0xf608d0),this['_diffRootsAttributes']['set'](_0x2dc53c,_0x518033);const _0x2c9efc=this['_makeIdsRoot'](_0xf608d0,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x2dc53c,_0x2c9efc),_0x2edaec['set'](_0x2dc53c,_0xf608d0['isAttached']()?_0x518033:{});for(const [_0x1a486c,_0x498c34]of _0xf608d0['markers']){if(!_0x1a486c['startsWith']('revision:'))continue;const _0x5c7336=_0x1a486c['split'](':')[0x2];for(const _0x41b708 of _0x498c34['getWalker']({'singleCharacters':!0x0})){const _0x2a949f=this['_getVidAttributeName'](_0x41b708),_0x4b7a28=this['_revisionId']++,_0xf1420e='elementEnd'==_0x41b708['type']?_0x41b708['previousPosition']['path']['slice'](0x0,-0x1):_0x41b708['previousPosition']['path'];_0x2c9efc['getNodeByPath'](_0xf1420e)['_setAttribute'](_0x2a949f,_0x4b7a28),this['_touched']['set'](_0x4b7a28,{'userId':_0x5c7336});}}for(const _0x1ebe65 of this['editor']['model']['createRangeIn'](_0xf608d0)['getWalker']({'singleCharacters':!0x0})){const _0x500512=this['_getVidAttributeName'](_0x1ebe65),_0x5663bf='elementEnd'==_0x1ebe65['type']?_0x1ebe65['previousPosition']['path']['slice'](0x0,-0x1):_0x1ebe65['previousPosition']['path'],_0x138f21=_0x2c9efc['getNodeByPath'](_0x5663bf);_0x138f21['getAttribute'](_0x500512)>0x0||_0x138f21['_setAttribute'](_0x500512,_0x259946[_0x4ad067++]);}for(const [_0x2bec18,_0x2c919f]of _0xf608d0['markers'])_0x2bec18['startsWith']('revision:')||this['_markers']['set'](_0x2bec18,_0x2c919f);}const _0x365761=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x365761),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x365761,0x1));const _0x5205d7=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x5205d7),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x5205d7,0x1));const _0x34be4d=Array['from'](this['_diffRoots'])['map'](([_0x7477a5,_0x169aef])=>[_0x7477a5,T(_0x169aef)]);this['_saveMetaData'](this['_lastTo'],_0x34be4d,this['_markers'],_0x2edaec);}['_makeModelFromViewString'](_0x52e258){const _0x29881f=JSON['parse'](_0x52e258),_0x420318=this['editor']['editing']['view']['document'],_0x51fcd0=new _0x526c1d(_0x420318,_0x29881f['map'](_0x280e3b=>C(_0x280e3b,this['editor'])));return this['editor']['data']['toModel'](_0x51fcd0);}['_saveMetaData'](_0x4d6ed4,_0x293af7,_0x4d000d,_0xcd7374){const _0x15ee24=new Map(_0x293af7),_0x2fa7b2=new Map(_0x5035cd(_0xcd7374)),_0x83a09a=new Map();for(const [_0x10cc74,_0x4a32e5]of _0x4d000d)_0x83a09a['set'](_0x10cc74,{'start':_0x4a32e5['start']['clone'](),'end':_0x4a32e5['end']['clone'](),'rootName':_0x4a32e5['root']['rootName']});this['_savedMetaData']['set'](_0x4d6ed4,{'roots':_0x15ee24,'markers':_0x83a09a,'rootsAttributes':_0x2fa7b2});}['_removeMetaData'](_0x5063f3){this['_savedMetaData']['delete'](_0x5063f3);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x43ffea,_0x5d132=null){let _0x17014f=null;_0x43ffea['is']('documentFragment')||(_0x17014f=new ft(_0x43ffea['name'],{'vid_start':null===_0x5d132?this['_revisionId']++:_0x5d132++}));const _0x1cde54=[];for(const _0x5e6484 of _0x43ffea['getChildren']())if(_0x5e6484['is']('element')){_0x1cde54['push'](this['_makeIdsRoot'](_0x5e6484,_0x5d132));const _0x1bd6d8=_0x1cde54[_0x1cde54['length']-0x1];null!==_0x5d132&&(_0x5d132=_0x1bd6d8['is']('element','$text')?_0x1bd6d8['getAttribute']('vid')+0x1:_0x1bd6d8['getAttribute']('vid_end')+0x1);}else{for(let _0x378417=0x0;_0x378417<_0x5e6484['offsetSize'];_0x378417++)_0x1cde54['push'](new ft('$text',{'vid':null===_0x5d132?this['_revisionId']++:_0x5d132++}));}if(_0x43ffea['is']('documentFragment')){const _0x27cbb5=F(_0x43ffea['rootName']);return _0x27cbb5['_insertChild'](0x0,_0x1cde54),_0x27cbb5;}return _0x17014f['_setAttribute']('vid_end',null===_0x5d132?this['_revisionId']++:_0x5d132++),_0x17014f['_insertChild'](0x0,_0x1cde54),_0x17014f;}['_calculateMetaData'](_0x4285d9,_0x5bad6e,_0x424e48){this['_reset']();const {roots:_0x3444e5,markers:_0x73a916,rootsAttributes:_0xa772d4}=this['_savedMetaData']['get'](_0x4285d9);this['_baseRoots']=new Map(_0x3444e5),this['_baseRootsAttributes']=new Map(_0x5035cd(_0xa772d4));for(const [_0x4639c6,_0x393b5c]of this['_baseRoots'])if('$graveyard'!==_0x4639c6&&(this['_diffRoots']['set'](_0x4639c6,T(_0x393b5c)),this['_diffRootsAttributes']=new Map(_0x5035cd(_0xa772d4)),_0x424e48)){const _0x43f20c=this['_revisionId'];this['_idsRoots']['set'](_0x4639c6,this['_makeIdsRoot'](_0x393b5c)),this['_baseIdsRoots']['set'](_0x4639c6,this['_makeIdsRoot'](_0x393b5c,_0x43f20c));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x424e48&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x4484a9,_0x488e9]of _0x73a916){const _0x7cb19e=this['_baseRoots']['get'](_0x488e9['rootName']),_0x5ffafd=this['_diffRoots']['get'](_0x488e9['rootName']),_0x4471e4=new vt(this['_fixPosition'](_0x488e9['start'],_0x7cb19e),this['_fixPosition'](_0x488e9['end'],_0x7cb19e)),_0x2118c7=this['_fixRange'](_0x4471e4,_0x5ffafd);_0x7cb19e['markers']['set'](_0x4484a9,_0x4471e4),this['_markers']['set'](_0x4484a9,_0x2118c7);}this['_applyOperations'](_0x4285d9,_0x5bad6e,_0x424e48);}['_applyOperations'](_0x4a7ddc,_0x7ce3e8,_0x3546fa){for(const _0x273be3 of this['source']['getOperations'](_0x4a7ddc,_0x7ce3e8))this['_handleOperation'](_0x273be3,_0x3546fa);for(const _0x5b3716 of this['_diffRoots']['values']())_0x5b3716['markers']['clear']();for(const [_0x3d6dcf,_0x3bf3ba]of this['_markers']){this['_diffRoots']['get'](_0x3bf3ba['root']['rootName'])['markers']['set'](_0x3d6dcf,_0x3bf3ba['clone']());}const _0x4f69e5=new Map(),_0x2f682a=new Map();for(const [_0x45835c,_0x3bc3f3]of this['_diffRoots'])_0x4f69e5['set'](_0x45835c,T(_0x3bc3f3)),_0x2f682a['set'](_0x45835c,this['_diffRootsAttributes']['get'](_0x45835c));this['_saveMetaData'](_0x7ce3e8,_0x4f69e5,this['_markers'],_0x2f682a);}['_getPreviousFrom'](_0x5db5d9){const _0x25e5d0=Array['from'](this['_savedMetaData']['keys']());_0x25e5d0['sort']((_0x3b15e8,_0x54c1f1)=>_0x3b15e8-_0x54c1f1),_0x25e5d0['reverse']();for(const _0x3e4ed9 of _0x25e5d0)if(_0x3e4ed9<_0x5db5d9)return _0x3e4ed9;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x4fcfc8,_0x567eb4){const _0x4d979d=Array['from'](_0x567eb4['markers'])['map'](([_0x56f50a,_0x2ff652])=>[_0x56f50a,this['_fixRange'](_0x2ff652,_0x4fcfc8)]);_0x4fcfc8['markers']=new Map(_0x4d979d);}['_transformMarkers'](_0x157aa9){for(const _0x33a8f9 of this['_markers']['values']()){const _0x2fd270=_0x33a8f9['getTransformedByOperation'](_0x157aa9),_0x2ad54f=vt['_createFromRanges'](_0x2fd270);_0x33a8f9['start']=_0x2ad54f['start'],_0x33a8f9['end']=_0x2ad54f['end'];}}['_handleOperation'](_0x401ff1,_0x1e6495){if('addRoot'!=_0x401ff1['type']&&'detachRoot'!=_0x401ff1['type']){if('insert'==_0x401ff1['type']){const _0x373b63=_0x401ff1['position']['root']['rootName'];this['_diffRoots']['has'](_0x373b63)||(this['_diffRoots']['set'](_0x373b63,F(_0x373b63,!0x0)),this['_diffRootsAttributes']['set'](_0x373b63,{}),_0x1e6495&&this['_idsRoots']['set'](_0x373b63,F(_0x373b63,!0x0)));}else{if('addRootAttribute'==_0x401ff1['type']||'removeRootAttribute'==_0x401ff1['type']||'changeRootAttribute'==_0x401ff1['type'])return void this['_handleRootAttributeOperation'](_0x401ff1);'marker'==_0x401ff1['type']&&this['_handleMarkerOperation'](_0x401ff1);}if('marker'!==_0x401ff1['type']){const _0x333adf=this['_cloneOperation'](_0x401ff1,this['_diffRoots']);_0x333adf['_execute'](),this['_transformMarkers'](_0x333adf);}if(_0x1e6495)switch(_0x401ff1['type']){case'insert':this['_handleInsertOperation'](_0x401ff1);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x401ff1);break;case'merge':this['_handleMergeOperation'](_0x401ff1);break;case'split':this['_handleSplitOperation'](_0x401ff1);}}else this['_handleRootOperation'](_0x401ff1,_0x1e6495);}['_cloneOperation'](_0x4c9e8a,_0x2d1cc2){const _0x249591=_0x4c9e8a['clone']();return _0x249591['_authorId']=_0x4c9e8a['_authorId'],this['_fixOperation'](_0x249591,_0x2d1cc2),_0x249591;}['_getBaseVids'](_0x1d416c){return _0x1d416c['map'](_0x2ee70f=>{const _0x36a1b3=this['_getVidAttributeName'](_0x2ee70f);return Number(_0x2ee70f['item']['getAttribute'](_0x36a1b3));});}['_generateTape'](_0x4f859d,_0x3bf37f){if(_0x4f859d['is']('element','$text'))_0x3bf37f['push']({'item':_0x4f859d,'type':'text'});else{_0x4f859d['is']('element')&&_0x3bf37f['push']({'item':_0x4f859d,'type':'elementStart'});for(const _0x232cbf of _0x4f859d['getChildren']())this['_generateTape'](_0x232cbf,_0x3bf37f);_0x4f859d['is']('element')&&_0x3bf37f['push']({'item':_0x4f859d,'type':'elementEnd'});}return _0x3bf37f;}['_getState'](){const _0x45da1f=new Map(this['_touched']),_0x52c207=new Map(_0x45da1f),_0x4d8f46=new Map(),_0x7fa734={'insertions':{},'deletions':{}},_0x28a3dc={'insertions':{},'deletions':{}},_0x17783f=new Map(),_0x189612=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x189612['delete']('$graveyard');for(const _0x3da68a of _0x189612){const _0x5f202d=this['_diffRoots']['get'](_0x3da68a)||F(_0x3da68a,!0x1),_0x31304b=this['_baseRoots']['get'](_0x3da68a)||F(_0x3da68a,!0x1);_0x5f202d['isAttached']()||_0x31304b['isAttached']()?(_0x7fa734['insertions'][_0x3da68a]=T(_0x5f202d),_0x7fa734['deletions'][_0x3da68a]=T(_0x31304b),this['_copyMarkers'](_0x7fa734['deletions'][_0x3da68a],_0x31304b),this['_copyMarkers'](_0x7fa734['insertions'][_0x3da68a],_0x5f202d),_0x28a3dc['insertions'][_0x3da68a]=this['_generateTape'](this['_idsRoots']['get'](_0x3da68a),[]),_0x28a3dc['deletions'][_0x3da68a]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x3da68a)||F(_0x3da68a,!0x1),[])):_0x189612['delete'](_0x3da68a);}for(const _0x43a5cd of _0x189612){const _0x4a7aba=_0x28a3dc['insertions'][_0x43a5cd];for(const _0x4b1c47 of _0x4a7aba){const _0x3504e2=this['_getVidAttributeName'](_0x4b1c47),_0x2425aa=_0x4b1c47['item']['getAttribute'](_0x3504e2);_0x52c207['delete'](_0x2425aa),_0x2425aa>=this['_startingRevisionId']&&_0x4d8f46['set'](_0x2425aa,_0x45da1f['get'](_0x2425aa));}}for(const _0x1dbbf5 of _0x189612){const _0x282ce6=_0x28a3dc['insertions'][_0x1dbbf5],_0x2a510b=this['_getBaseVids'](_0x28a3dc['deletions'][_0x1dbbf5]);let _0x4c6b54=0x0;for(const _0x438fb4 of _0x282ce6){const _0xad4db1=this['_getVidAttributeName'](_0x438fb4),_0x2ce4fa=_0x438fb4['item']['getAttribute'](_0xad4db1);if(!_0x4d8f46['has'](_0x2ce4fa)&&!_0x17783f['has'](_0x2ce4fa)){if(_0x52c207['has'](_0x2ce4fa))_0x4c6b54++;else{if(_0x2ce4fa!=_0x2a510b[_0x4c6b54]){const _0x3ae6ac=_0x45da1f['get'](_0x2ce4fa)||_0x45da1f['get'](_0x2a510b[_0x4c6b54]);for(;_0x2ce4fa!=_0x2a510b[_0x4c6b54];)_0x52c207['has'](_0x2a510b[_0x4c6b54])||(_0x17783f['set'](_0x2a510b[_0x4c6b54],_0x3ae6ac),_0x45da1f['set'](_0x2a510b[_0x4c6b54],_0x3ae6ac)),_0x4c6b54++;}_0x4c6b54++;}}}}for(const _0x8de744 of _0x189612){const _0x4372a5=_0x28a3dc['insertions'][_0x8de744];for(const _0x4738f5 of _0x4372a5){const _0x139b85=this['_getVidAttributeName'](_0x4738f5),_0x8fa96e=_0x4738f5['item']['getAttribute'](_0x139b85);if(_0x17783f['has'](_0x8fa96e)){const _0x188f27=_0x17783f['get'](_0x8fa96e);_0x52c207['has'](_0x8fa96e)||_0x52c207['set'](_0x8fa96e,{..._0x188f27}),_0x4d8f46['set'](_0x8fa96e,{..._0x188f27});}}}for(const _0x5d4f8d of _0x52c207['keys']())_0x5d4f8d>=this['_startingRevisionId']&&_0x52c207['delete'](_0x5d4f8d);const _0x2fc5a1=new Map();for(const _0x24d522 of _0x189612){let _0x1e4cba=_0x28a3dc['insertions'][_0x24d522];for(const _0x241fab of _0x1e4cba)if(_0x241fab['item']['is']('element','tableCell')){const _0x3d2353=this['_getVidAttributeName'](_0x241fab),_0x149826=_0x241fab['item']['getAttribute'](_0x3d2353);if(_0x4d8f46['has'](_0x149826)){const _0x3dc7b3=_0x241fab['item']['parent']['parent']['getAttribute']('vid_start'),_0x1248dd=_0x2fc5a1['get'](_0x3dc7b3)||new Set();_0x1248dd['add'](_0x4d8f46['get'](_0x149826)['userId']),_0x2fc5a1['set'](_0x3dc7b3,_0x1248dd);}}_0x1e4cba=_0x28a3dc['deletions'][_0x24d522];for(const _0x4ef7d1 of _0x1e4cba)if(_0x4ef7d1['item']['is']('element','tableCell')){const _0x23bc38=this['_getVidAttributeName'](_0x4ef7d1),_0x1268a2=_0x4ef7d1['item']['getAttribute'](_0x23bc38);if(_0x52c207['has'](_0x1268a2)){const _0x49a0eb=_0x4ef7d1['item']['parent']['parent']['getAttribute']('vid_start'),_0x45bf40=_0x2fc5a1['get'](_0x49a0eb)||new Set();_0x45bf40['add'](_0x52c207['get'](_0x1268a2)['userId']),_0x2fc5a1['set'](_0x49a0eb,_0x45bf40);}}for(const _0x8c45be of _0x2fc5a1['keys']())(_0x4d8f46['has'](_0x8c45be)||_0x52c207['has'](_0x8c45be))&&_0x2fc5a1['delete'](_0x8c45be);}for(const _0x2e8163 of _0x189612){const _0x2d8b13=_0x28a3dc['insertions'][_0x2e8163];let _0x4ca4d=null,_0x6efc80=null;for(const _0x2eb222 of _0x2d8b13){const _0x469522=this['_getVidAttributeName'](_0x2eb222),_0x25fd11=_0x2eb222['item']['getAttribute'](_0x469522),_0x5c260a=_0x2fc5a1['get'](_0x25fd11);_0x5c260a&&'elementStart'==_0x2eb222['type']&&(_0x4ca4d=Array['from'](_0x5c260a)[0x0],_0x6efc80=_0x2eb222['item']['getAttribute']('vid_end')),_0x4ca4d&&(_0x52c207['set'](_0x25fd11,{'userId':_0x4ca4d}),_0x4d8f46['set'](_0x25fd11,{'userId':_0x4ca4d})),_0x25fd11==_0x6efc80&&(_0x4ca4d=null,_0x6efc80=null);}}const _0x33481e={},_0x336002=new Set();for(const _0x44b869 of _0x189612){const _0x40f0bc=_0x7fa734['deletions'][_0x44b869],_0x280091=_0x7fa734['insertions'][_0x44b869];for(const {userId:_0x3a7173}of this['_touchedMarkers']['values']())null!==_0x3a7173&&_0x336002['add'](_0x3a7173);for(const {userId:_0x2cb4c8}of this['_touchedRoots']['values']())null!==_0x2cb4c8&&_0x336002['add'](_0x2cb4c8);this['_markChanges'](_0x280091,_0x28a3dc['insertions'][_0x44b869],_0x4d8f46,'insertion',_0x336002),this['_markChanges'](_0x40f0bc,_0x28a3dc['deletions'][_0x44b869],_0x52c207,'deletion',_0x336002),_0x33481e[_0x44b869]={'insertions':this['_prepareViewToSave'](_0x280091),'deletions':this['_prepareViewToSave'](_0x40f0bc),'attachChange':this['_touchedRoots']['get'](_0x44b869)||null,'attributesBefore':_0x5035cd(this['_baseRootsAttributes']['get'](_0x44b869))||{},'attributesAfter':_0x5035cd(this['_diffRootsAttributes']['get'](_0x44b869))};}return{'diffData':_0x33481e,'authorsIds':Array['from'](_0x336002)};}['_processRootBeforeSave'](_0x31b472){for(const [,_0x4fb006]of _0x31b472['markers']){const _0xed48ec=_0x4fb006['start']['getAncestors']()['filter'](_0x2a1fc=>'tableCell'==_0x2a1fc['name']);for(const _0x1cc29d of _0xed48ec)0x1==_0x1cc29d['childCount']&&_0x1cc29d['getChild'](0x0)['is']('element','paragraph')&&_0x1cc29d['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x278c83){this['_processRootBeforeSave'](_0x278c83);const _0xa7b9fb=this['editor']['data']['toView'](_0x278c83,{}),_0x5f2d55=Array['from'](_0xa7b9fb['getChildren']())['map'](_0x6317=>this['_getViewJson'](_0x6317));return JSON['stringify'](_0x5f2d55);}['_getViewJson'](_0x48510d){if(_0x48510d['is']('$text'))return _0x48510d['data'];{const _0x14d2b7=_0x48510d;return{'type':Object['keys'](P)['find'](_0x2b4b3d=>_0x48510d instanceof P[_0x2b4b3d]),'name':_0x14d2b7['name'],'attributes':Array['from'](_0x14d2b7['getAttributes']()),'children':Array['from'](_0x14d2b7['getChildren']())['map'](_0x44e98e=>this['_getViewJson'](_0x44e98e))};}}['_markChanges'](_0x201946,_0x377680,_0x822ace,_0x2d1197,_0x4441bb){let _0x4bd91b=null,_0x446630=null,_0x4cd45d=0x0;const _0x521264=this['editor']['model'];for(let _0x4bb0c2=0x0;_0x4bb0c2<_0x377680['length'];_0x4bb0c2++){const _0x51df33=this['_getVidAttributeName'](_0x377680[_0x4bb0c2]),_0x3599da=_0x377680[_0x4bb0c2]['item']['getAttribute'](_0x51df33),_0x1cd292=_0x822ace['get'](_0x3599da),_0x38a05e=_0x4bb0c2==_0x377680['length']-0x1;(!_0x4bd91b&&_0x1cd292&&(_0x4bd91b=_0x1cd292,_0x446630=_0x377680[_0x4bb0c2]),_0x4bd91b&&(!_0x1cd292||_0x1cd292['userId']!=_0x4bd91b['userId']))&&(_0x57e853(_0x1cd292,B(_0x446630,_0x201946,_0x521264),B(_0x377680[_0x4bb0c2],_0x201946,_0x521264)),_0x4bd91b=_0x1cd292||null,_0x446630=_0x1cd292?_0x377680[_0x4bb0c2]:null),_0x4bd91b&&_0x38a05e&&_0x57e853(_0x1cd292,B(_0x446630,_0x201946,_0x521264),J(_0x377680[_0x4bb0c2],_0x201946,_0x521264));}function _0x57e853(_0x1e5001,_0x1eff5d,_0x2b32f0){const _0x430099=_0x4bd91b['userId'],_0x278cb6='revision:'+_0x2d1197+':'+_0x430099+':'+_0x4cd45d++,_0x1d1bc2=_0x521264['createRange'](_0x1eff5d,_0x2b32f0);_0x201946['markers']['set'](_0x278cb6,_0x1d1bc2),null!==_0x430099&&_0x4441bb['add'](_0x430099);}}['_getVidAttributeName'](_0x41d982){switch(_0x41d982['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x2986b7,_0x4abe8e){_0x2986b7['baseVersion']=null;for(const _0x6c115e in _0x2986b7){const _0xdc870f=_0x2986b7[_0x6c115e];if(_0xdc870f instanceof gt){const _0x220cef=_0x4abe8e['get'](_0xdc870f['root']['rootName']);_0x2986b7[_0x6c115e]=this['_fixPosition'](_0xdc870f,_0x220cef);}if(_0xdc870f instanceof vt){const _0x4e3f1d=_0x4abe8e['get'](_0xdc870f['root']['rootName']);_0x2986b7[_0x6c115e]=this['_fixRange'](_0xdc870f,_0x4e3f1d);}'root'===_0x6c115e&&(_0x2986b7['root']=_0x4abe8e['get'](_0x2986b7['root']['rootName']));}}['_fixRange'](_0x5c1a4b,_0x177d5a){return this['editor']['model']['createRange'](this['_fixPosition'](_0x5c1a4b['start'],_0x177d5a),this['_fixPosition'](_0x5c1a4b['end'],_0x177d5a));}['_fixPosition'](_0x1f55f8,_0xd4d4c7){return this['editor']['model']['createPositionFromPath'](_0xd4d4c7,_0x1f55f8['path'],_0x1f55f8['stickiness']);}['_handleInsertOperation'](_0x2d2b7e){const _0x551e9d=this['_idsRoots']['get'](_0x2d2b7e['position']['root']['rootName']),_0x433049=this['_fixPosition'](_0x2d2b7e['position'],_0x551e9d),_0x5f1a98=null===_0x2d2b7e['_authorId']?null:_0x2d2b7e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x18211c=_0x433049['parent'],_0x459bc6=this['_revisionId'],_0x345ff0=[];for(const _0x494d3b of _0x2d2b7e['nodes'])if(_0x494d3b['is']('element'))_0x345ff0['push'](this['_makeIdsRoot'](_0x494d3b));else{for(let _0x2e5939=0x0;_0x2e5939<_0x494d3b['offsetSize'];_0x2e5939++)_0x345ff0['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x4e53aa=this['_revisionId'];for(let _0x1e9499=_0x459bc6;_0x1e9499<_0x4e53aa;_0x1e9499++)this['_touched']['set'](_0x1e9499,{'userId':_0x5f1a98});_0x18211c['_insertChild'](_0x433049['offset'],_0x345ff0);}['_handleMoveOperation'](_0xaa23b7){(_0xaa23b7=this['_cloneOperation'](_0xaa23b7,this['_idsRoots']))['_execute']();const _0x30268d=null===_0xaa23b7['_authorId']?null:_0xaa23b7['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x24d2f4=_0xaa23b7['getMovedRangeStart'](),_0x381682=_0x24d2f4['parent'],_0x459ff9=_0x24d2f4['offset'];!function _0x344f5e(_0x5f3e72,_0xef196d,_0x284050,_0x42217c){for(let _0x32b041=_0x284050;_0x32b041<_0x42217c;_0x32b041++){const _0x502326=_0xef196d['getChild'](_0x32b041);_0x502326['is']('element','$text')?_0x5f3e72['set'](_0x502326['getAttribute']('vid'),{'userId':_0x30268d}):(_0x5f3e72['set'](_0x502326['getAttribute']('vid_start'),{'userId':_0x30268d}),_0x344f5e(_0x5f3e72,_0x502326,0x0,_0x502326['childCount']),_0x5f3e72['set'](_0x502326['getAttribute']('vid_end'),{'userId':_0x30268d}));}}(this['_touched'],_0x381682,_0x459ff9,_0x459ff9+_0xaa23b7['howMany']);}['_handleMergeOperation'](_0x196492){const _0x5bdcbb=null===(_0x196492=this['_cloneOperation'](_0x196492,this['_idsRoots']))['_authorId']?null:_0x196492['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x52bede=_0x196492['targetPosition']['parent'],_0x47bda6=_0x196492['sourcePosition']['parent'],_0x275c25=_0x52bede['getAttribute']('vid_end'),_0x57109b=_0x47bda6['getAttribute']('vid_start');_0x52bede['_setAttribute']('vid_end',_0x47bda6['getAttribute']('vid_end')),_0x47bda6['_setAttribute']('vid_end',_0x275c25),this['_touched']['set'](_0x57109b,{'userId':_0x5bdcbb}),this['_touched']['set'](_0x275c25,{'userId':_0x5bdcbb}),_0x196492['_execute']();}['_handleSplitOperation'](_0x249049){const _0x2706e8=null===(_0x249049=this['_cloneOperation'](_0x249049,this['_idsRoots']))['_authorId']?null:_0x249049['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4d2ad1=_0x249049['graveyardPosition'],_0x19f68f=_0x249049['splitPosition']['parent'];_0x249049['_execute']();const _0x5ee5ae=_0x19f68f['getAttribute']('vid_end'),_0x3ed553=_0x249049['insertionPosition']['nodeAfter'];if(_0x4d2ad1){const _0x2cd49f=_0x3ed553['getAttribute']('vid_end'),_0xe92b4a=_0x19f68f['getAttribute']('vid_end');_0x19f68f['_setAttribute']('vid_end',_0x2cd49f),_0x3ed553['_setAttribute']('vid_end',_0xe92b4a),this['_touched']['set'](_0x19f68f['getAttribute']('vid_end'),{'userId':_0x2706e8}),this['_touched']['set'](_0x3ed553['getAttribute']('vid_start'),{'userId':_0x2706e8});}else{const _0x54a6f0=this['_revisionId']++,_0x3bbfa8=this['_revisionId']++;_0x19f68f['_setAttribute']('vid_end',_0x54a6f0),_0x3ed553['_setAttribute']('vid_start',_0x3bbfa8),_0x3ed553['_setAttribute']('vid_end',_0x5ee5ae),this['_touched']['set'](_0x54a6f0,{'userId':_0x2706e8}),this['_touched']['set'](_0x3bbfa8,{'userId':_0x2706e8});}}['_handleMarkerOperation'](_0x22fa88){if(!_0x22fa88['affectsData'])return;const _0x3e85f1=(_0x22fa88=this['_cloneOperation'](_0x22fa88,this['_diffRoots']))['oldRange']?_0x22fa88['oldRange']['root']:null,_0x1f71dc=_0x22fa88['newRange']?_0x22fa88['newRange']['root']:null;_0x3e85f1&&this['_markers']['delete'](_0x22fa88['name']),_0x1f71dc&&this['_markers']['set'](_0x22fa88['name'],_0x22fa88['newRange']['clone']());const _0x55e6dd=null===_0x22fa88['_authorId']?null:_0x22fa88['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x54fe09=_0x22fa88['name'];if(!this['_touchedMarkers']['has'](_0x54fe09))return void this['_touchedMarkers']['set'](_0x54fe09,{'range':_0x22fa88['oldRange'],'userId':_0x55e6dd});const _0x3acca7=this['_touchedMarkers']['get'](_0x54fe09),_0x17d106=_0x3acca7['range'],_0x4500b5=_0x22fa88['newRange'];null==_0x17d106&&null==_0x4500b5||_0x17d106&&_0x4500b5&&_0x17d106['isEqual'](_0x4500b5)?this['_touchedMarkers']['delete'](_0x22fa88['name']):_0x3acca7['userId']=_0x55e6dd;}['_handleRootOperation'](_0x7657d3,_0xa183cb){this['_diffRoots']['has'](_0x7657d3['rootName'])?this['_diffRoots']['get'](_0x7657d3['rootName'])['_isAttached']=_0x7657d3['isAdd']:(this['_diffRoots']['set'](_0x7657d3['rootName'],F(_0x7657d3['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x7657d3['rootName'],{}),_0xa183cb&&this['_idsRoots']['set'](_0x7657d3['rootName'],F(_0x7657d3['rootName'],!0x0)));const _0x2f3287=null===_0x7657d3['_authorId']?null:_0x7657d3['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4565ad=this['_touchedRoots']['get'](_0x7657d3['rootName']);_0x4565ad&&_0x4565ad['userId']===_0x2f3287?this['_touchedRoots']['delete'](_0x7657d3['rootName']):this['_touchedRoots']['set'](_0x7657d3['rootName'],{'userId':_0x2f3287,'isAttached':_0x7657d3['isAdd']});}['_handleRootAttributeOperation'](_0x321416){const _0x55d412=this['_diffRootsAttributes']['get'](_0x321416['root']['rootName']);null===_0x321416['newValue']?delete _0x55d412[_0x321416['key']]:_0x55d412[_0x321416['key']]=_0x321416['newValue'];}}function T(_0x5daa3b){const _0x1d631e=F(_0x5daa3b['rootName'],_0x5daa3b['isAttached']());for(const _0x2d55e7 of _0x5daa3b['getChildren']()){const _0x1887a0=_0x2d55e7['_clone'](!0x0);_0x1d631e['_appendChild'](_0x1887a0);}return _0x1d631e;}function F(_0x20d74f,_0x8e1634=!0x0){const _0x48f476=new mt();return _0x48f476['rootName']=_0x20d74f,_0x48f476['_isAttached']=_0x8e1634,_0x48f476['isAttached']=()=>_0x48f476['_isAttached'],_0x48f476;}function B(_0x403aa1,_0x507539,_0x162ce4){const _0x3bfddf='elementEnd'==_0x403aa1['type']?_0x162ce4['createPositionAt'](_0x403aa1['item'],'end'):_0x162ce4['createPositionBefore'](_0x403aa1['item']);return _0x162ce4['createPositionFromPath'](_0x507539,_0x3bfddf['path'],_0x3bfddf['stickiness']);}function J(_0x4d8414,_0x22467c,_0x499930){const _0x2807ad='elementStart'==_0x4d8414['type']?_0x499930['createPositionAt'](_0x4d8414['item'],0x0):_0x499930['createPositionAfter'](_0x4d8414['item']);return _0x499930['createPositionFromPath'](_0x22467c,_0x2807ad['path'],_0x2807ad['stickiness']);}class ns extends _0x4aaa2b{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x2e5309,_0x391832){super(_0x2e5309),this['focusTracker']=new _0x42422a(),this['keystrokes']=new _0x4e13fb(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x391832),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),ts(this);}['render'](){super['render'](),_0x29fc1f({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x3a08a1=_0x245bc5=>_0x245bc5['stopPropagation']();this['keystrokes']['set']('arrowright',_0x3a08a1),this['keystrokes']['set']('arrowleft',_0x3a08a1),this['keystrokes']['set']('arrowup',_0x3a08a1),this['keystrokes']['set']('arrowdown',_0x3a08a1);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x457362){this['revisionNameInputView']['fieldView']['element']['value']=_0x457362['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x434da2){const _0x18a381=new nt(this['locale'],_0x2b21b7),_0x2d0086=_0x18a381['fieldView'];_0x2d0086['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x5a6abe=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x434da2&&(_0x5a6abe+='\x20('+m(this['locale'],'optional')+')'),(_0x18a381['label']=_0x5a6abe,_0x2d0086['on']('input',()=>{this['revisionNameInputValue']=_0x2d0086['element']['value']['trim']();}),_0x18a381);}}class u extends _0x26a73c{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x3c151d=this['editor'],_0x1f02dd=_0x3c151d['plugins']['get']('RevisionTracker');_0x3c151d['ui']['componentFactory']['add']('revisionHistory',_0x35717f=>{const _0x362d5b=_0x298fc1(_0x35717f),_0x15935e=_0x362d5b['panelView']['children'],_0x4edec6=new te(_0x35717f),_0x4a366c=new _0x33ed46(_0x35717f),_0x45ea2d=new _0x4f5614(_0x35717f),_0x23a15c=new _0x33ed46(_0x35717f),_0x158b38=new _0x4f5614(_0x35717f);return _0x362d5b['bind']('isEnabled')['to'](_0x1f02dd,'isReady',_0x1f02dd,'isEnabled',_0x3c151d,'isReadOnly',(_0x36fc12,_0x41166c,_0x855927)=>_0x36fc12&&_0x41166c&&!_0x855927),_0x362d5b['buttonView']['set']({'icon':_0x3937f1['history'],'label':m(_0x35717f,'Revision\x20history'),'tooltip':!0x0}),_0x45ea2d['set']({'label':m(_0x35717f,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x45ea2d['bind']('isEnabled')['to'](_0x1f02dd,'isReady',_0x1f02dd,'isEnabled',_0x3c151d,'isReadOnly',(_0x35c7f5,_0x2eab06,_0x514c34)=>_0x35c7f5&&_0x2eab06&&!_0x514c34),_0x45ea2d['on']('execute',()=>this['_showDialog']()),_0x158b38['set']({'label':m(_0x35717f,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x158b38['bind']('isEnabled')['to'](_0x1f02dd,'isReady',_0x3c151d,'isReadOnly',(_0x1ad059,_0x527bf0)=>_0x1ad059&&!_0x527bf0),_0x158b38['on']('execute',()=>{_0x3c151d['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x362d5b['isOpen']=!0x1,_0x3c151d['editing']['view']['focus']();}),_0x4a366c['children']['add'](_0x45ea2d),_0x23a15c['children']['add'](_0x158b38),_0x4edec6['role']='menu',_0x4edec6['items']['addMany']([_0x4a366c,_0x23a15c]),_0x15935e['add'](_0x4edec6),_0x362d5b;}),_0x3c151d['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x5816e8=this['editor'],_0x294cee=_0x5816e8['locale'],_0x188ac3=new _0xb366d7(_0x294cee),_0x3ee2af=new _0x2d1c14(_0x294cee);_0x188ac3['buttonView']['set']({'icon':_0x3937f1['history'],'label':m(_0x294cee,'Revision\x20history')});const _0x5b80ac=new _0x16248e(_0x294cee,_0x188ac3),_0x329f7a=new _0x145511(_0x294cee);_0x329f7a['set']({'label':m(_0x294cee,'Save\x20current\x20revision')}),_0x329f7a['delegate']('execute')['to'](_0x188ac3),_0x329f7a['on']('execute',()=>{this['_showDialog']();}),_0x5b80ac['children']['add'](_0x329f7a),_0x3ee2af['items']['add'](_0x5b80ac);const _0x40d541=new _0x16248e(_0x294cee,_0x188ac3),_0x459990=new _0x145511(_0x294cee);return _0x459990['set']({'label':m(_0x294cee,'Open\x20revision\x20history')}),_0x459990['delegate']('execute')['to'](_0x188ac3),_0x459990['on']('execute',()=>{_0x5816e8['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x40d541['children']['add'](_0x459990),_0x3ee2af['items']['add'](_0x40d541),_0x188ac3['panelView']['children']['add'](_0x3ee2af),_0x188ac3;}['_showDialog'](){const _0x1652b9=this['editor'],_0x33b362=_0x1652b9['locale'],_0x405b43=_0x1652b9['plugins']['get']('Dialog'),_0x52ea33=_0x1652b9['plugins']['get']('RevisionTracker');function _0x575a46(_0x2cf4d7){_0x1652b9['config']['get']('revisionHistory.requireRevisionName')&&''===_0x2cf4d7['revisionName']?_0x2cf4d7['revisionNameInputView']['errorText']=m(_0x33b362,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x1652b9['plugins']['get'](l)['saveRevision']({'name':_0x2cf4d7['revisionName']}),_0x405b43['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x575a46(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x405b43['show']({'id':'revisionSave','title':m(_0x33b362,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x1652b9['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x405b43['hide']()},{'label':m(_0x1652b9['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x5a774a){_0x5a774a['bind']('isEnabled')['to'](_0x52ea33,'isReady',_0x52ea33,'isEnabled',_0x1652b9,'isReadOnly',(_0x4c26be,_0x3d43f3,_0x5b7ce0)=>_0x4c26be&&_0x3d43f3&&!_0x5b7ce0);},'onExecute':()=>_0x575a46(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x5d108c=this['editor'],_0x40686b=_0x5d108c['locale'];this['_saveRevisionFormView']=new ns(_0x40686b,_0x5d108c['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0x4aaa2b{['changeId'];['_model'];constructor(_0x3b8ca9,_0x5562a0){super(_0x3b8ca9),this['_model']=_0x5562a0,this['changeId']=_0x5562a0['id'];const _0x21a0c4=this['bindTemplate'],_0x15c743=m(_0x3b8ca9,_0x5562a0['data']['isSuggestion']?'Suggested\x20by':'add'==_0x5562a0['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x5562a0['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x21a0c4['to']('type',_0x596447=>'ck-revision-change__'+_0x596447)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x15c743}]},{'text':'\x20'+_0x5562a0['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x4a7a66(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x4ba7f4){super(),this['id']=_0x4ba7f4['id']||_0x47f5e5(),this['author']=_0x4ba7f4['author'],this['type']=_0x4ba7f4['type'],this['data']=_0x4ba7f4['data']||{},this['rootName']=_0x4ba7f4['rootName'],this['set']('createdAt',_0x4ba7f4['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class f{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x4fc4ae,_0x3365aa){this['newRevisionId']=_0x4fc4ae,this['oldRevisionId']=_0x3365aa,this['changes']=new _0x416362();}['_setChanges'](_0x2e712a){for(const _0x1d7b7b of _0x2e712a)this['changes']['add'](_0x1d7b7b);}}const Y={'c':_0x2833cc,'a':_0xa1158c,'e':_0x448a9b,'r':_0x2aad15,'u':_0x2d717c};class d extends _0x26a73c{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x21aeb9,_0x3e281e,j];}constructor(_0x1b2b0e){super(_0x1b2b0e),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x2a3f25,_0x5403e1,_0x1fe69a)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x512590=>{for(const _0x5160f4 of this['editor']['editing']['view']['document']['roots'])_0x1fe69a?_0x512590['removeClass']('ck-editor__editable__overlay',_0x5160f4):_0x512590['addClass']('ck-editor__editable__overlay',_0x5160f4);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x54a2fb=>null!==_0x54a2fb),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x57ed04,_0x53a167,_0x3c13ef)=>_0x57ed04&&_0x3c13ef?_0x53a167['changes']['getIndex'](_0x3c13ef):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x5c0831,_0x485856)=>_0x5c0831?_0x485856['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x3e281e);}['init'](){const _0x252374=this['editor'],_0x349f44=new yt(_0x252374,{'direction':'backward'}),_0x41b6e2=new yt(_0x252374,{'direction':'forward'});(_0x252374['commands']['add']('showPreviousChange',_0x349f44),_0x252374['commands']['add']('showNextChange',_0x41b6e2),_0x252374['commands']['add']('restoreRevision',new _t(_0x252374)),this['on']('change:numberOfChanges',()=>{_0x349f44['refresh'](),_0x41b6e2['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x252374['enableReadOnlyMode']('revision-viewer'),_0x252374['plugins']['has']('WidgetToolbarRepository'))&&_0x252374['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x557095){await this['loadRevisionData'](_0x557095);const _0x1933ff={};for(const _0x3adccf in _0x557095['diffData']){if(_0x557095['diffData'][_0x3adccf]['attachChange']&&!_0x557095['diffData'][_0x3adccf]['attachChange']['isAttached'])continue;const _0x422e27=this['_removeRevisionMarkers'](JSON['parse'](_0x557095['diffData'][_0x3adccf]['insertions'])),_0x18b01a=this['editor']['editing']['view']['document'],_0x200686=new _0x526c1d(_0x18b01a,_0x422e27['map'](_0x420717=>this['_getViewObj'](_0x420717)));this['editor']['data']['processor']['useFillerType']('marked'),_0x1933ff[_0x3adccf]=this['editor']['data']['processor']['toData'](_0x200686),this['editor']['data']['processor']['useFillerType']('default');}return _0x1933ff;}async['getRevisionRootsAttributes'](_0x1d8bb0){await this['loadRevisionData'](_0x1d8bb0);const _0x3e9bb2={};for(const _0x505893 in _0x1d8bb0['diffData'])_0x1d8bb0['diffData'][_0x505893]['attachChange']&&!_0x1d8bb0['diffData'][_0x505893]['attachChange']['isAttached']||(_0x3e9bb2[_0x505893]=_0x1d8bb0['diffData'][_0x505893]['attributesAfter']||{});return _0x3e9bb2;}['_removeRevisionMarkers'](_0x302244){return(_0x302244=_0x302244['filter'](_0x263e79=>!_0x263e79['name']||'revision-start'!==_0x263e79['name']&&'revision-end'!==_0x263e79['name']))['forEach'](_0x3454c6=>{'string'!=typeof _0x3454c6&&(_0x3454c6['children']=this['_removeRevisionMarkers'](_0x3454c6['children']),_0x3454c6['attributes']=_0x3454c6['attributes']['filter'](_0x3b486d=>!_0x3b486d[0x0]['startsWith']('data-revision-')));}),_0x302244;}async['compare'](_0x1c1291,_0x585eac,_0x56bbae=!0x1){if(!this['isEnabled'])return;const _0x7441de=this['diff'],_0x270d0b=this['repository'],_0x5c5abf='string'==typeof _0x1c1291?_0x270d0b['getRevision'](_0x1c1291):_0x1c1291,_0x28bf73='string'==typeof _0x585eac?_0x270d0b['getRevision'](_0x585eac):_0x585eac,_0x18b0f9=_0x5c5abf['id'],_0x56da12=_0x28bf73?_0x28bf73['id']:null;if(!_0x56bbae&&this['diff']&&this['diff']['newRevisionId']===_0x18b0f9&&this['diff']['oldRevisionId']===_0x56da12)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x18b0f9,_0x56da12);const _0x3eefe1=this['_getRevisionsRange'](_0x5c5abf,_0x28bf73,!0x0)['map'](_0x55d58a=>this['loadRevisionData'](_0x55d58a));return _0x3eefe1['push'](new Promise(_0x3e90da=>{setTimeout(_0x3e90da,0x14);})),Promise['all'](_0x3eefe1)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x590434=this['_getDiff'](_0x18b0f9,_0x56da12);for(const _0x264d3a of _0x590434['changes'])this['_changeIdToChange']['set'](_0x264d3a['id'],_0x264d3a);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x22465c=>{for(const _0x15ea40 of this['editor']['model']['document']['getRootNames']())_0x22465c['detachRoot'](_0x15ea40);for(const _0x2f3795 of Object['keys'](_0x590434['model'])){const _0x387f9d=_0x22465c['addRoot'](_0x2f3795);for(const _0x2b020a of Object['keys'](_0x590434['attributes'][_0x2f3795]))_0x22465c['setAttribute'](_0x2b020a,_0x590434['attributes'][_0x2f3795][_0x2b020a],_0x387f9d);_0x22465c['insert'](_0x590434['model'][_0x2f3795],_0x387f9d,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x590434['changes'])),this['isReady']=!0x0;})['catch'](_0x29cc7d=>{console['error'](_0x29cc7d),this['_cleanUp'](),_0x7441de&&(this['diff']=_0x7441de),this['isReady']=!0x0;});}['addRevisionData'](_0x519196,_0x465617){const _0x3eced5=this['repository']['createRevision'](_0x519196);return _0x3eced5['on']('_update',(_0x31aefb,_0x43a662,_0x3ef09b)=>_0x465617(_0x43a662,_0x3ef09b,_0x3eced5)),this['repository']['addRevision'](_0x3eced5),_0x3eced5;}['loadRevisionData'](_0x56b448){if(!_0x56b448||_0x56b448['diffData'])return Promise['resolve']();{const _0x2c66c7=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x2c66c7,'revisionId':_0x56b448['id']})['then'](_0x400a04=>{_0x56b448['_update']({'diffData':_0x400a04['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x2abc0c=>{for(const _0x196771 of this['editor']['model']['document']['getRootNames']())_0x2abc0c['detachRoot'](_0x196771);});}['_sortAndFilterDiffChanges'](_0x35f667){const _0x831be0=[],_0x14d067=new Map();for(const _0x550924 of this['editor']['model']['document']['getRootNames']()){const _0x21aee9=this['editor']['editing']['view']['getDomRoot'](_0x550924);if(!_0x21aee9)continue;const _0x25f43a=_0x21aee9['getClientRects']()['item'](0x0);_0x25f43a&&(_0x831be0['push'](_0x550924),_0x14d067['set'](_0x550924,_0x25f43a));}return _0x831be0['sort']((_0x5e3ac1,_0x496d08)=>{const _0x107fe6=_0x14d067['get'](_0x5e3ac1),_0x47ebcc=_0x14d067['get'](_0x496d08);return _0x107fe6['y']-_0x47ebcc['y']||_0x107fe6['x']-_0x47ebcc['x'];}),(_0x35f667=_0x35f667['filter'](_0x47bb57=>_0x831be0['includes'](_0x47bb57['rootName'])))['sort']((_0x5cfc04,_0x53de07)=>_0x831be0['indexOf'](_0x5cfc04['rootName'])-_0x831be0['indexOf'](_0x53de07['rootName'])),_0x35f667;}['_makeTape'](_0xbced30){const _0xc64e53=Array['from'](_0xbced30['markers'])['filter'](([_0xf9659d,_0x500240])=>_0xf9659d['startsWith']('revision:')&&!_0x500240['isCollapsed']),_0x4d71d4=Array['from'](this['editor']['model']['createRangeIn'](_0xbced30)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0xc64e53['length'])for(const _0xb8fcb7 of _0x4d71d4){const [_0x57b870,_0x382523]=_0xc64e53[0x0],[,_0x19ccb1,_0x19be62]=_0x57b870['split'](':');if(_0x382523['end']['isEqual'](_0xb8fcb7['nextPosition'])&&_0xc64e53['shift'](),(_0xb8fcb7['previousPosition']['isEqual'](_0x382523['start'])||_0xb8fcb7['previousPosition']['isAfter'](_0x382523['start']))&&('insertion'==_0x19ccb1?_0xb8fcb7['isAdded']={'userId':_0x19be62}:'deletion'==_0x19ccb1&&(_0xb8fcb7['isRemoved']={'userId':_0x19be62})),0x0==_0xc64e53['length'])break;}return _0x4d71d4;}['_refreshStartEndIndex'](_0x2db55b){const _0x99290e=new Map();for(let _0x15c6a7=0x0;_0x15c6a7<_0x2db55b['length'];_0x15c6a7++)'text'===_0x2db55b[_0x15c6a7]['type']?(_0x2db55b[_0x15c6a7]['item']['startIndex']=_0x15c6a7,_0x2db55b[_0x15c6a7]['item']['endIndex']=_0x15c6a7):('elementStart'===_0x2db55b[_0x15c6a7]['type']?_0x2db55b[_0x15c6a7]['item']['startIndex']=_0x15c6a7:'elementEnd'===_0x2db55b[_0x15c6a7]['type']&&(_0x2db55b[_0x15c6a7]['item']['endIndex']=_0x15c6a7),_0x99290e['set'](_0x2db55b[_0x15c6a7]['id'],_0x15c6a7));for(const _0x17a049 of _0x99290e['values']())'elementStart'===_0x2db55b[_0x17a049]['type']?_0x2db55b[_0x17a049]['item']['endIndex']=_0x99290e['get'](_0x2db55b[_0x17a049]['pairId']):'elementEnd'===_0x2db55b[_0x17a049]['type']&&(_0x2db55b[_0x17a049]['item']['startIndex']=_0x99290e['get'](_0x2db55b[_0x17a049]['pairId']));}['_processTape'](_0x2d16f3){for(let _0x47b672=0x0;_0x47b672<_0x2d16f3['length'];_0x47b672++){if('elementStart'===_0x2d16f3[_0x47b672]['type'])_0x2d16f3[_0x47b672]['item']['startIndex']=_0x47b672;else{if('elementEnd'===_0x2d16f3[_0x47b672]['type']){_0x2d16f3[_0x47b672]['item']['endIndex']=_0x47b672;const _0x33ed91=_0x2d16f3[_0x47b672]['item']['startIndex'];_0x2d16f3[_0x33ed91]['pairId']=_0x2d16f3[_0x47b672]['id'],_0x2d16f3[_0x47b672]['pairId']=_0x2d16f3[_0x33ed91]['id'];}else _0x2d16f3[_0x47b672]['item']['startIndex']=_0x47b672,_0x2d16f3[_0x47b672]['item']['endIndex']=_0x47b672,_0x2d16f3[_0x47b672]['pairId']=null;}_0x2d16f3[_0x47b672]['markersStart']||(_0x2d16f3[_0x47b672]['markersStart']=[],_0x2d16f3[_0x47b672]['markersEnd']=[]);}}['_markInsertions'](_0x19415a,_0x4d5d93){const _0x5b2b52=_0x19415a['filter'](_0x95366a=>!_0x95366a['isAdded']);for(let _0x188237=0x0;_0x188237<_0x4d5d93['length'];_0x188237++)_0x4d5d93[_0x188237]['isAdded']&&(_0x5b2b52[_0x188237]['isAdded']=_0x4d5d93[_0x188237]['isAdded']);}['_makeModelFromViewString'](_0x47c2a5){const _0x3ff0c4=JSON['parse'](_0x47c2a5),_0x202670=this['editor']['editing']['view']['document'],_0x43d9bf=new _0x526c1d(_0x202670,_0x3ff0c4['map'](_0x4f1fcd=>this['_getViewObj'](_0x4f1fcd)));return this['editor']['data']['toModel'](_0x43d9bf);}['_getViewObj'](_0x3fbb6a){const _0x1132f1=this['editor']['editing']['view']['document'];if('string'==typeof _0x3fbb6a)return new _0x4d5cb1(_0x1132f1,_0x3fbb6a);{const _0x3605c6=_0x3fbb6a['children']['map'](_0x368d00=>this['_getViewObj'](_0x368d00));return new(Y[_0x3fbb6a['type']]||_0x40b1e7)(_0x1132f1,_0x3fbb6a['name'],_0x3fbb6a['attributes'],_0x3605c6);}}['_getDiff'](_0x44bffd,_0x293ba9=null){const _0x40cf0b=this['repository']['getRevision'](_0x44bffd),_0x1cc7a8=_0x293ba9?this['repository']['getRevision'](_0x293ba9):null,_0x3ce6d6=this['_getRevisionsRange'](_0x40cf0b,_0x1cc7a8),_0x218cba=_0x3ce6d6[_0x3ce6d6['length']-0x1],_0x4cf04a=new Map(),_0x2b0f99={'model':{},'attributes':{},'changes':[]},_0x2d4eec=new Set(),_0x2ea50b=new Map();for(let _0x110eb0=_0x3ce6d6['length']-0x1;_0x110eb0>=0x0;_0x110eb0--){const _0x3e5291=_0x3ce6d6[_0x110eb0];for(const _0x3ddf08 of Object['keys'](_0x3e5291['diffData']))if(_0x3e5291['diffData'][_0x3ddf08]['attachChange']){const _0x5a70de=_0x3e5291['diffData'][_0x3ddf08]['attachChange'];_0x5a70de['isAttached']?(_0x2d4eec['add'](_0x3ddf08),_0x2ea50b['has'](_0x3ddf08)&&_0x2ea50b['get'](_0x3ddf08)['userId']==_0x5a70de['userId']?_0x2ea50b['delete'](_0x3ddf08):_0x2ea50b['set'](_0x3ddf08,_0x5a70de)):_0x2ea50b['has'](_0x3ddf08)?(_0x2d4eec['delete'](_0x3ddf08),_0x2ea50b['delete'](_0x3ddf08)):(_0x2d4eec['add'](_0x3ddf08),_0x2ea50b['set'](_0x3ddf08,_0x5a70de));}else _0x2d4eec['add'](_0x3ddf08);}for(const _0x11ed8b of _0x2d4eec){const _0x3c9590=_0x2ea50b['has'](_0x11ed8b)&&!_0x2ea50b['get'](_0x11ed8b)['isAttached'];let _0x4a2c92=_0x3c9590?_0x3ce6d6['length']-0x1:0x0;const _0x2e9e9a=_0x3c9590?-0x1:0x1;for(;_0x3ce6d6[_0x4a2c92];){const _0x2d3950=_0x3ce6d6[_0x4a2c92];if(_0x2d3950['diffData'][_0x11ed8b]){const _0xcb8e38=_0x3c9590?_0x2d3950['diffData'][_0x11ed8b]['attributesBefore']:_0x2d3950['diffData'][_0x11ed8b]['attributesAfter'];_0x2b0f99['attributes'][_0x11ed8b]=_0xcb8e38?_0x5035cd(_0xcb8e38):{};break;}_0x4a2c92+=_0x2e9e9a;}}for(const _0xd134fb of _0x3ce6d6){_0xd134fb['model']={};for(const _0x375819 of _0xd134fb['authors'])_0x4cf04a['set'](_0x375819['id'],_0x375819);for(const _0xde3413 of _0x2d4eec){const _0x2818b5=_0xd134fb['diffData'][_0xde3413]?_0xd134fb['diffData'][_0xde3413]['insertions']:'[]',_0x1f09b6=_0xd134fb['diffData'][_0xde3413]?_0xd134fb['diffData'][_0xde3413]['deletions']:'[]';_0xd134fb['model'][_0xde3413]={'insertions':this['_makeModelFromViewString'](_0x2818b5),'deletions':this['_makeModelFromViewString'](_0x1f09b6)};}}for(const _0x49156d of _0x2d4eec){let _0x4ad180=null,_0x5da950=0x0;const _0x57e1dc=new Map(Array['from'](_0x40cf0b['model'][_0x49156d]['insertions']['markers'])['filter'](([_0x3d772b])=>!_0x3d772b['startsWith']('revision:')));let _0xe096dc=0x0;for(const _0x619e5c of _0x3ce6d6){const _0x52d5f6=this['_makeTape'](_0x619e5c['model'][_0x49156d]['insertions']);_0x619e5c==_0x40cf0b?(_0x4ad180=_0x52d5f6,_0x5da950=_0x4ad180['length'],_0x4ad180['forEach'](_0x3399f8=>{_0x3399f8['id']=_0xe096dc++;}),this['_processTape'](_0x4ad180)):this['_markInsertions'](_0x4ad180,_0x52d5f6);const _0x1b62ab=_0x4ad180['filter'](_0xcc2e24=>!_0xcc2e24['isAdded'])['map'](_0x5db13c=>_0x5db13c['id']);let _0x1fd29d=0x0;const _0x286ff9=this['_makeTape'](_0x619e5c['model'][_0x49156d]['deletions']);_0x286ff9['forEach'](_0x58140e=>{_0x58140e['isRemoved']?_0x58140e['id']=_0x5da950++:_0x58140e['id']=_0x1b62ab[_0x1fd29d++];}),this['_processTape'](_0x286ff9),this['_setDistance'](_0x4ad180,'isAdded'),this['_setDistance'](_0x286ff9,'isRemoved'),_0x619e5c==_0x40cf0b&&this['_markMarkers'](_0x4ad180,_0x57e1dc),_0x4ad180=this['_joinTapes'](_0x4ad180,_0x286ff9),this['_refreshStartEndIndex'](_0x4ad180),this['_setDistance'](_0x4ad180,'isRemoved');}_0x4ad180=_0x4ad180['filter'](_0xcd47a3=>!(_0xcd47a3['isAdded']&&_0xcd47a3['isRemoved']));const _0x2e3efb=new Map(_0x218cba['model'][_0x49156d]['deletions']['markers']),_0x35dc44=new Set(_0x57e1dc['keys']());for(const _0x4d2b4b of _0x2e3efb['keys']())_0x35dc44['delete'](_0x4d2b4b);this['_markSuggestions'](_0x4ad180,_0x35dc44),this['_fixObsoleteTags'](_0x4ad180),_0x4ad180=this['_removeMissingPairs'](_0x4ad180),_0x4ad180=this['_markMismatchedRemovedTags'](_0x4ad180),_0x4ad180=this['_removeUnsupportedChanges'](_0x4ad180);const {root:_0xdd39,changes:_0x16207d}=this['_makeModelFromTape'](_0x4ad180,_0x4cf04a,_0x49156d);_0x2b0f99['model'][_0x49156d]=_0xdd39;const _0x226632=_0x2ea50b['get'](_0x49156d);if(_0x226632){const _0x33bb79=_0x4cf04a['get'](_0x226632['userId']),_0x137096=new r({'author':_0x33bb79,'type':_0x226632['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x49156d});_0x16207d['unshift'](_0x137096),_0x2b0f99['attributes'][_0x49156d]['revisionHistoryAttachChange']=_0x137096['id'];}_0x2b0f99['changes']=_0x2b0f99['changes']['concat'](_0x16207d);}return _0x2b0f99;}['_markMarkers'](_0x15bd82,_0x31d4c0){for(let _0x1ec90e=0x0;_0x1ec90e<_0x15bd82['length'];_0x1ec90e++)for(const [_0x434ae2,_0x69d1e0]of _0x31d4c0)_0x69d1e0['start']['isEqual'](_0x15bd82[_0x1ec90e]['previousPosition'])&&_0x15bd82[_0x1ec90e]['markersStart']['push'](_0x434ae2),_0x69d1e0['end']['isEqual'](_0x15bd82[_0x1ec90e]['nextPosition'])&&_0x15bd82[_0x1ec90e]['markersEnd']['push'](_0x434ae2);}['_joinTapes'](_0xd13019,_0x250443){let _0x4adc1c=[],_0x585fef=0x0,_0x2e0127=0x0;for(;_0x585fef<_0xd13019['length']||_0x2e0127<_0x250443['length'];){const _0x85c53e=_0xd13019[_0x585fef]||{},_0x22a42b=_0x250443[_0x2e0127]||{};if(_0x85c53e['id']==_0x22a42b['id'])_0x585fef++,_0x2e0127++,_0x4adc1c['push'](_0x85c53e);else{if(_0x22a42b['isRemoved']&&_0x85c53e['isAdded']){const {commonTape:_0x42b52c,iEnd:_0x2f94f4,jEnd:_0x14de9d}=this['_threeWayMerge'](_0xd13019,_0x585fef,_0x250443,_0x2e0127);_0x4adc1c=_0x4adc1c['concat'](_0x42b52c),_0x585fef=_0x2f94f4,_0x2e0127=_0x14de9d;}else _0x22a42b['isRemoved']?(_0x2e0127++,_0x4adc1c['push'](_0x22a42b)):(_0x585fef++,_0x4adc1c['push'](_0x85c53e));}}return _0x4adc1c;}['_markSuggestions'](_0x44ce21,_0x10465f){const _0xab7d19=[];for(let _0x4191b6=0x0;_0x4191b6<_0x44ce21['length'];_0x4191b6++){for(let _0x54723a=0x0;_0x54723a<_0x44ce21[_0x4191b6]['markersStart']['length'];_0x54723a++){const _0x4f99a8=_0x44ce21[_0x4191b6]['markersStart'][_0x54723a];if(!_0x10465f['has'](_0x4f99a8))continue;const {group:_0x1817b9,type:_0xcc6e7c,authorId:_0x5bcd29}=_0x394b2c(_0x4f99a8);'revision-suggestion'!=_0x1817b9||'insertion'!=_0xcc6e7c&&'deletion'!=_0xcc6e7c||(_0xab7d19['unshift']({'type':_0xcc6e7c,'name':_0x4f99a8,'userId':_0x5bcd29}),_0x44ce21[_0x4191b6]['markersStart']['splice'](_0x54723a,0x1),_0x54723a--);}_0x4160f5(_0x44ce21[_0x4191b6]);for(let _0x415029=0x0;_0x415029<_0x44ce21[_0x4191b6]['markersEnd']['length'];_0x415029++){const _0xcd4d84=_0x44ce21[_0x4191b6]['markersEnd'][_0x415029];if(!_0x10465f['has'](_0xcd4d84))continue;const {group:_0x19ddd2,type:_0x38c788}=_0x394b2c(_0xcd4d84);if('revision-suggestion'!=_0x19ddd2||'insertion'!=_0x38c788&&'deletion'!=_0x38c788)continue;_0x44ce21[_0x4191b6]['markersEnd']['splice'](_0x415029,0x1),_0x415029--;const _0x5df0d7=_0xab7d19['findIndex'](_0x13822b=>_0x13822b['name']==_0xcd4d84);_0x5df0d7>-0x1&&_0xab7d19['splice'](_0x5df0d7,0x1);}}function _0x394b2c(_0x4714bb){const _0x4c112a=_0x4714bb['split'](':');return{'group':_0x4c112a[0x0],'type':_0x4c112a[0x1],'subType':_0x4c112a['length']>=0x5?_0x4c112a[0x2]:null,'id':_0x4c112a['length']<0x5?_0x4c112a[0x2]:_0x4c112a[0x3],'authorId':_0x4c112a['length']<0x5?_0x4c112a[0x3]:_0x4c112a[0x4],'markerCount':0x6==_0x4c112a['length']?_0x4c112a[0x5]:null};}function _0x4160f5(_0x30389f){for(let _0x2469ad=0x0;_0x2469ad<_0xab7d19['length'];_0x2469ad++){if(_0x30389f['isAdded']&&'insertion'==_0xab7d19[_0x2469ad]['type'])return _0x30389f['isAddSuggestion']=_0xab7d19[_0x2469ad],void delete _0x30389f['isAdded'];if(!_0x30389f['isAdded']&&!_0x30389f['isRemoved']&&'deletion'==_0xab7d19[_0x2469ad]['type'])return void(_0x30389f['isRemoveSuggestion']=_0xab7d19[_0x2469ad]);}}}['_setDistance'](_0xec9e3a,_0x122c22){let _0x3c3e3b=0x0,_0x42112f=!0x1;const _0x1ac5a0=new Map();for(const _0x2b3864 of _0xec9e3a)_0x2b3864[_0x122c22]?_0x42112f&&(_0x3c3e3b++,_0x42112f=!0x1):(_0x3c3e3b++,_0x42112f=!0x0),_0x1ac5a0['set'](_0x2b3864['id'],_0x3c3e3b);for(let _0x59ab9e=0x0;_0x59ab9e<_0xec9e3a['length'];_0x59ab9e++){if('isRemoved'==_0x122c22&&_0xec9e3a[_0x59ab9e]['isAdded']||'isAdded'==_0x122c22&&_0xec9e3a[_0x59ab9e]['isRemoved'])continue;if('text'==_0xec9e3a[_0x59ab9e]['type']){_0xec9e3a[_0x59ab9e]['distance']=0x0;continue;}const _0x3c82d2=_0x1ac5a0['get'](_0xec9e3a[_0x59ab9e]['pairId']),_0x598f2e=_0x1ac5a0['get'](_0xec9e3a[_0x59ab9e]['id']);_0xec9e3a[_0x59ab9e]['distance']=_0x3c82d2-_0x598f2e;}}['_getRevisionsRange'](_0x1ce430,_0x463c76,_0x5a66dc=!0x1){const _0x5cff6c=[];let _0x326878=this['repository']['getIndex'](_0x1ce430),_0x28d9a8=this['repository']['getIndex'](_0x463c76);for(-0x1==_0x28d9a8&&(_0x28d9a8=this['repository']['_revisions']['length'],_0x5a66dc=!0x1);_0x326878<_0x28d9a8;)_0x5cff6c['push'](this['repository']['getRevision'](_0x326878)),_0x326878++;return _0x5a66dc&&_0x5cff6c['push'](this['repository']['getRevision'](_0x326878)),_0x5cff6c;}['_threeWayMerge'](_0xb399b3,_0x3e24d2,_0xe24305,_0x265166){const _0x1af79e=this['editor']['model']['schema'];let _0x5b023a=_0x3e24d2;for(;_0xb399b3[_0x5b023a]&&_0xb399b3[_0x5b023a]['isAdded'];)_0x5b023a++;let _0x2095e8=_0x265166;for(;_0xe24305[_0x2095e8]&&_0xe24305[_0x2095e8]['isRemoved'];)_0x2095e8++;_0x2e9c74(_0xb399b3,_0x3e24d2,_0x5b023a),_0x2e9c74(_0xe24305,_0x265166,_0x2095e8);const _0xdb3390=_0xe24305['slice'](_0x265166,_0x2095e8)['concat'](_0xb399b3['slice'](_0x3e24d2,_0x5b023a));return _0xdb3390['sort']((_0x136259,_0x2c93c8)=>_0x136259['side']!=_0x2c93c8['side']?_0x136259['side']-_0x2c93c8['side']:_0x136259['level']!=_0x2c93c8['level']?_0x136259['level']-_0x2c93c8['level']:_0x136259['distance']!=_0x2c93c8['distance']?_0x2c93c8['distance']-_0x136259['distance']:!!_0x136259['isAdded']!=!!_0x2c93c8['isAdded']?-0x1==_0x136259['side']||0x0==_0x136259['side']?_0x136259['isAdded']?-0x1:0x1:_0x136259['isAdded']?0x1:-0x1:_0x136259['index']-_0x2c93c8['index']),{'commonTape':_0xdb3390,'iEnd':_0x5b023a,'jEnd':_0x2095e8};function _0x2e9c74(_0x16ed73,_0x4c3031,_0x3b7070){let _0x35a1b5=-0x1,_0x5a0d61=Number['POSITIVE_INFINITY'],_0x2a54d4=!0x0;for(let _0xaba097=_0x4c3031;_0xaba097<_0x3b7070;_0xaba097++)if(_0x1af79e['isInline'](_0x16ed73[_0xaba097]['item'])||(_0x2a54d4=!0x1),_0x16ed73[_0xaba097]['item']['startIndex']<_0x4c3031&&(_0x35a1b5=_0xaba097),_0x16ed73[_0xaba097]['item']['endIndex']>=_0x3b7070){_0x5a0d61=_0xaba097;break;}_0x2a54d4&&(_0x35a1b5=_0x3b7070-0x1);for(let _0x75197d=_0x4c3031;_0x75197d<_0x3b7070;_0x75197d++)_0x16ed73[_0x75197d]['side']=_0x75197d<=_0x35a1b5?-0x1:_0x75197d<_0x5a0d61?0x0:0x1,_0x16ed73[_0x75197d]['index']=_0x75197d;let _0x1a0caf=0x0;for(let _0x45ef87=_0x4c3031;_0x45ef87<=_0x35a1b5;_0x45ef87++)0x0==_0x16ed73[_0x45ef87]['distance']?_0x16ed73[_0x45ef87]['level']=_0x1a0caf:(_0x1a0caf++,_0x16ed73[_0x45ef87]['level']=_0x1a0caf,_0x1a0caf++);for(let _0x13600a=_0x4c3031;_0x13600a<_0x3b7070;_0x13600a++)0x0==_0x16ed73[_0x13600a]['side']&&(_0x16ed73[_0x13600a]['level']=_0x1a0caf);_0x1a0caf=0x0;for(let _0x4baf6f=_0x3b7070-0x1;_0x4baf6f>=_0x5a0d61;_0x4baf6f--)0x0==_0x16ed73[_0x4baf6f]['distance']?_0x16ed73[_0x4baf6f]['level']=_0x1a0caf:(_0x1a0caf--,_0x16ed73[_0x4baf6f]['level']=_0x1a0caf,_0x1a0caf--);}}['_fixObsoleteTags'](_0x5343a3){const _0x2f56ff=new Map(),_0x39e464=this['editor']['model']['schema'];for(let _0x29fba8=0x1;_0x29fba8<_0x5343a3['length'];_0x29fba8++){let _0x3117f7,_0x976f17,_0x4dc94c;const _0x3f42ed=_0x5343a3[_0x29fba8],_0x17bd0b=_0x5343a3[_0x29fba8-0x1];if('text'==_0x3f42ed['type'])continue;if(_0x3f42ed['type']!=_0x17bd0b['type'])continue;if(!_0x39e464['isBlock'](_0x17bd0b['item'])||_0x39e464['isLimit'](_0x17bd0b['item']))continue;if(!_0x39e464['isBlock'](_0x3f42ed['item'])||_0x39e464['isLimit'](_0x3f42ed['item']))continue;if((_0x5343a3[_0x29fba8]['isAdded']||_0x5343a3[_0x29fba8]['isAddSuggestion'])&&_0x5343a3[_0x29fba8-0x1]['isRemoved'])_0x3117f7=_0x5343a3[_0x29fba8],_0x976f17=_0x5343a3[_0x29fba8-0x1],_0x4dc94c=_0x29fba8-0x1;else{if(!_0x5343a3[_0x29fba8]['isRemoved']||!_0x5343a3[_0x29fba8-0x1]['isAdded']&&!_0x5343a3[_0x29fba8-0x1]['isAddSuggestion'])continue;_0x3117f7=_0x5343a3[_0x29fba8-0x1],_0x976f17=_0x5343a3[_0x29fba8],_0x4dc94c=_0x29fba8;}const _0x256f19=_0x3117f7['level']==_0x976f17['level'],_0x3a3f21=Math['abs'](_0x3117f7['level'])<Math['abs'](_0x976f17['level'])&&0x0==_0x976f17['distance'];(_0x256f19||_0x3a3f21)&&(_0x2f56ff['set'](_0x976f17['id'],_0x3117f7['id']),_0x5343a3['splice'](_0x4dc94c,0x1),_0x29fba8--,_0x3117f7['isAdded']=!0x1);}for(let _0x1b1544=0x0;_0x1b1544<_0x5343a3['length'];_0x1b1544++)_0x2f56ff['has'](_0x5343a3[_0x1b1544]['pairId'])&&(_0x5343a3[_0x1b1544]['pairId']=_0x2f56ff['get'](_0x5343a3[_0x1b1544]['pairId']));}['_removeMissingPairs'](_0x4dfc50){const _0x4cc4ee=new Set(_0x4dfc50['map'](_0x411fd0=>_0x411fd0['id']));for(let _0x5d3a86=0x0;_0x5d3a86<_0x4dfc50['length'];_0x5d3a86++)_0x4cc4ee['has'](_0x4dfc50[_0x5d3a86]['pairId'])||0x0==_0x4dfc50[_0x5d3a86]['distance']||(_0x4dfc50[_0x5d3a86]['isIncorrect']=!0x0);return _0x4dfc50['filter'](_0xfc9b8=>!_0xfc9b8['isIncorrect']);}['_markMismatchedRemovedTags'](_0x5b5491){const _0xacfc45=new Set();for(let _0x2b5d39=0x0;_0x2b5d39<_0x5b5491['length'];_0x2b5d39++){if(_0xacfc45['has'](_0x5b5491[_0x2b5d39]['id'])&&_0x5b5491[_0x2b5d39]['isRemoved']&&(_0x5b5491[_0x2b5d39]['isIncorrect']=!0x0),_0x5b5491[_0x2b5d39]['isIncorrect'])continue;if(0x0==_0x5b5491[_0x2b5d39]['distance'])continue;if('elementStart'!=_0x5b5491[_0x2b5d39]['type'])continue;if(null==_0x5b5491[_0x2b5d39]['pairId'])continue;let _0x267d64=_0x2b5d39+0x1,_0x276853=0x0;for(;_0x5b5491[_0x267d64]['id']!=_0x5b5491[_0x2b5d39]['pairId'];)'elementStart'==_0x5b5491[_0x267d64]['type']?_0x276853++:'elementEnd'==_0x5b5491[_0x267d64]['type']&&_0x276853--,_0x267d64++;if(0x0!=_0x276853){if(_0x5b5491[_0x2b5d39]['isRemoved'])_0x5b5491[_0x2b5d39]['isIncorrect']=!0x0;else{for(;_0x267d64!=_0x2b5d39;)_0x5b5491[_0x267d64]['isRemoved']&&0x0!=_0x5b5491[_0x267d64]['distance']&&(_0x5b5491[_0x267d64]['isIncorrect']=!0x0,_0xacfc45['add'](_0x5b5491[_0x267d64]['pairId'])),_0x267d64--;}}}return _0x5b5491['filter'](_0x25549c=>!_0x25549c['isIncorrect']);}['_removeUnsupportedChanges'](_0x354f30){const _0x2ac850=this['editor']['model']['schema'];for(let _0x42119d=0x0;_0x42119d<_0x354f30['length'];_0x42119d++){if(!(_0x354f30[_0x42119d]['isAdded']||_0x354f30[_0x42119d]['isAddSuggestion']||_0x354f30[_0x42119d]['isRemoved']||_0x354f30[_0x42119d]['isRemoveSuggestion']))continue;if(0x0==_0x354f30[_0x42119d]['distance'])continue;const _0x143edd=_0x354f30[_0x42119d]['item'];_0x2ac850['isBlock'](_0x143edd)||_0x2ac850['isLimit'](_0x143edd)||(_0x354f30[_0x42119d]['isAdded']&&delete _0x354f30[_0x42119d]['isAdded'],_0x354f30[_0x42119d]['isAddSuggestion']&&delete _0x354f30[_0x42119d]['isAddSuggestion'],_0x354f30[_0x42119d]['isRemoveSuggestion']&&delete _0x354f30[_0x42119d]['isRemoveSuggestion'],_0x354f30[_0x42119d]['isRemoved']&&(_0x354f30[_0x42119d]['isIncorrect']=!0x0));}return _0x354f30['filter'](_0x108cd6=>!_0x108cd6['isIncorrect']);}['_makeModelFromTape'](_0x4dc038,_0x1aa342,_0x51d291){const _0x4e6528=new mt(),_0x372811=[],_0x35058=new Map(),_0x1f4d79=this['editor']['model'],_0xa75c16=_0x1f4d79['schema'],_0x374d93=[_0x4e6528],_0x19ea89={},_0x41459a={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x2017e4=null;const _0x50e343=[0x0];for(let _0xea5ff=0x0;_0xea5ff<_0x4dc038['length'];_0xea5ff++)if('elementStart'===_0x4dc038[_0xea5ff]['type']){_0x4dc038[_0xea5ff]['previousPosition']=_0x1f4d79['createPositionFromPath'](_0x4e6528,_0x50e343);const _0x1ca385=new ft(_0x4dc038[_0xea5ff]['item']['name'],_0x4dc038[_0xea5ff]['item']['getAttributes']());_0x374d93[0x0]['_appendChild'](_0x1ca385),_0x50e343['push'](0x0),_0x374d93['unshift'](_0x1ca385),_0x4dc038[_0xea5ff]['nextPosition']=_0x1f4d79['createPositionFromPath'](_0x4e6528,_0x50e343);}else'elementEnd'===_0x4dc038[_0xea5ff]['type']?(_0x374d93['shift'](),_0x4dc038[_0xea5ff]['previousPosition']=_0x1f4d79['createPositionFromPath'](_0x4e6528,_0x50e343),_0x50e343['pop'](),_0x50e343[_0x50e343['length']-0x1]++,_0x4dc038[_0xea5ff]['nextPosition']=_0x1f4d79['createPositionFromPath'](_0x4e6528,_0x50e343)):(_0x4dc038[_0xea5ff]['previousPosition']=_0x1f4d79['createPositionFromPath'](_0x4e6528,_0x50e343),_0x2017e4?_0x2017e4['_data']+=_0x4dc038[_0xea5ff]['item']['data']:_0x2017e4=new wt(_0x4dc038[_0xea5ff]['item']['data'],_0x4dc038[_0xea5ff]['item']['getAttributes']()),_0x4dc038[_0xea5ff+0x1]&&'text'===_0x4dc038[_0xea5ff+0x1]['type']&&_0x12db37(_0x2017e4,_0x4dc038[_0xea5ff+0x1]['item'])||(_0x374d93[0x0]['_appendChild'](_0x2017e4),_0x2017e4=null),_0x50e343[_0x50e343['length']-0x1]+=_0x4dc038[_0xea5ff]['item']['offsetSize'],_0x4dc038[_0xea5ff]['nextPosition']=_0x1f4d79['createPositionFromPath'](_0x4e6528,_0x50e343));for(let _0x5609fc=0x0;_0x5609fc<_0x4dc038['length'];_0x5609fc++){const _0x438900=_0x4dc038[_0x5609fc]['previousPosition'],_0x4295f4=_0x4dc038[_0x5609fc]['nextPosition'];for(const _0x25ff45 of _0x4dc038[_0x5609fc]['markersStart'])_0x35058['set'](_0x25ff45,{'start':_0x438900,'end':null});_0x58b72a('isRemoveSuggestion',_0x5609fc,_0x438900,_0x4295f4),_0x58b72a('isAddSuggestion',_0x5609fc,_0x438900,_0x4295f4),_0x58b72a('isRemoved',_0x5609fc,_0x438900,_0x4295f4),_0x58b72a('isAdded',_0x5609fc,_0x438900,_0x4295f4);for(const _0x3961f7 of _0x4dc038[_0x5609fc]['markersEnd']){_0x35058['get'](_0x3961f7)['end']=_0x4295f4;}}for(const [_0x2a31ea,_0x9e94c9]of _0x35058){const _0x5e2ac3=this['editor']['model']['createRange'](_0x9e94c9['start'],_0x9e94c9['end']);_0x4e6528['markers']['set'](_0x2a31ea,_0x5e2ac3);}return _0x372811['sort']((_0x209549,_0x45769e)=>{const _0x1626ae=_0x4e6528['markers']['get']('revision:'+_0x209549['id']),_0x19b297=_0x4e6528['markers']['get']('revision:'+_0x45769e['id']);return _0x1626ae['start']['isBefore'](_0x19b297['start'])?-0x1:_0x1626ae['start']['isAfter'](_0x19b297['start'])?0x1:_0x1626ae['end']['isBefore'](_0x19b297['end'])?-0x1:_0x1626ae['end']['isAfter'](_0x19b297['end'])?0x1:'add'===_0x209549['type']?-0x1:0x1;}),{'root':_0x4e6528,'changes':_0x372811};function _0x58b72a(_0x1f7d83,_0x4ff105,_0x408e27,_0x422aa4){const _0x2cd071=!!_0x4dc038[_0x4ff105][_0x1f7d83],_0x29f31e=_0x2cd071?_0x4dc038[_0x4ff105][_0x1f7d83]['userId']:null,_0x61396c=_0x4ff105===_0x4dc038['length']-0x1,_0xdb82e4=_0x41459a[_0x1f7d83][0x0],_0x4f41a3=_0xa75c16['isObject'](_0x4dc038[_0x4ff105]['item']);!_0x19ea89[_0x1f7d83]&&_0x2cd071?_0x19ea89[_0x1f7d83]={'start':_0x408e27,'tapeItem':_0x4dc038[_0x4ff105],'userId':_0x29f31e,'type':_0x1f7d83}:_0x19ea89[_0x1f7d83]&&!_0x2cd071?(_0x19ea89[_0x1f7d83]['end']=_0x408e27,_0x2166ed(_0x19ea89[_0x1f7d83]),_0x19ea89[_0x1f7d83]=null):_0x19ea89[_0x1f7d83]&&_0x2cd071&&_0x19ea89[_0x1f7d83]['userId']!==_0x29f31e&&(_0x19ea89[_0x1f7d83]['end']=_0x408e27,_0xdb82e4&&_0xdb82e4['userId']===_0x19ea89[_0x1f7d83]['userId']||_0x2166ed(_0x19ea89[_0x1f7d83]),_0x19ea89[_0x1f7d83]={'start':_0x408e27,'tapeItem':_0x4dc038[_0x4ff105],'userId':_0x29f31e,'type':_0x1f7d83}),_0x19ea89[_0x1f7d83]&&_0x4f41a3&&('elementStart'!==_0x4dc038[_0x4ff105]['type']||_0xdb82e4&&_0xdb82e4['userId']===_0x29f31e||_0x41459a[_0x1f7d83]['unshift']({'userId':_0x29f31e,'object':_0x4dc038[_0x4ff105]['item'],'change':_0x19ea89[_0x1f7d83]}),'elementEnd'===_0x4dc038[_0x4ff105]['type']&&_0xdb82e4&&_0xdb82e4['object']===_0x4dc038[_0x4ff105]['item']&&(_0x41459a[_0x1f7d83]['shift'](),_0x19ea89[_0x1f7d83]=_0xdb82e4['change'])),_0x19ea89[_0x1f7d83]&&_0x61396c&&(_0x19ea89[_0x1f7d83]['end']=_0x422aa4,_0x2166ed(_0x19ea89[_0x1f7d83]),_0x19ea89[_0x1f7d83]=null);}function _0x2166ed({start:_0x414a0c,end:_0x257892,tapeItem:_0x459c51,userId:_0x8bf7b0,type:_0x10b63f}){const _0x171131=_0x459c51['item'],_0xf54c15=_0x1f4d79['schema']['isBlock'](_0x171131)&&!_0x1f4d79['schema']['isLimit'](_0x171131),_0x5730af=_0x414a0c['nodeAfter']==_0x257892['parent']&&_0x257892['isAtStart'];if(_0xf54c15&&_0x5730af)return;const _0x460d2b=_0x1f4d79['createRange'](_0x414a0c,_0x257892),_0x561216=_0x1aa342['get'](_0x8bf7b0),_0xeb925d=new r({'author':_0x561216,'type':'isAdded'==_0x10b63f||'isAddSuggestion'==_0x10b63f?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x10b63f||'isRemoveSuggestion'==_0x10b63f},'createdAt':new Date(),'rootName':_0x51d291});_0x372811['push'](_0xeb925d),_0x4e6528['markers']['set']('revision:'+_0xeb925d['id'],_0x460d2b);}function _0x12db37(_0x595448,_0x45fc0c){const _0xddf12f=_0x595448['getAttributes'](),_0x21c196=_0x45fc0c['getAttributes']();for(const _0x5060e5 of _0xddf12f){if(_0x5060e5[0x1]!==_0x45fc0c['getAttribute'](_0x5060e5[0x0]))return!0x1;_0x21c196['next']();}return _0x21c196['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x42c956=>{const _0x566bde=_0x42c956['markerName']['split'](':')[0x1],_0x23c4e7=this['_getChangeFromId'](_0x566bde);if(!_0x23c4e7)return null;const _0x57f84f='add'==_0x23c4e7['type']?'insertion':'deletion',_0x5a805f=['ck-suggestion-marker','ck-suggestion-marker-'+_0x57f84f];return _0x23c4e7['data']['isSuggestion']&&_0x5a805f['push']('ck-suggestion-marker-'+_0x57f84f+'-new'),this['activeChange']==_0x23c4e7&&_0x5a805f['push']('ck-suggestion-marker--active'),{'classes':_0x5a805f,'attributes':{'data-change-id':_0x566bde}};}}),this['editor']['conversion']['for']('upcast')['add'](_0xe22137=>{_0xe22137['on']('element:pre',(_0x15b4ce,_0x18775d,_0x35c095)=>{const _0x13f7ec=_0x18775d['viewItem']['getChild'](0x0);if(!_0x13f7ec||!_0x13f7ec['is']('element','code'))return;if(!_0x35c095['consumable']['consume'](_0x13f7ec,{'attributes':['vid_start','vid_end']}))return;const _0x2249e1=_0x18775d['modelRange']['start']['nodeAfter'];_0x35c095['writer']['setAttribute']('vid_start',_0x13f7ec['getAttribute']('vid_start'),_0x2249e1),_0x35c095['writer']['setAttribute']('vid_end',_0x13f7ec['getAttribute']('vid_end'),_0x2249e1);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x8a3f40=>{_0x8a3f40['on']('element',(_0x5f2e95,_0x4f138e,_0x41af93)=>{if(!_0x41af93['consumable']['consume'](_0x4f138e['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x4f138e['modelRange']['isCollapsed'])return;const _0x2bbcd4=_0x4f138e['modelRange']['start']['nodeAfter'];_0x2bbcd4['hasAttribute']('vid_start')||_0x2bbcd4['hasAttribute']('vid')||(_0x41af93['writer']['setAttribute']('vid_start',_0x4f138e['viewItem']['getAttribute']('vid_start'),_0x2bbcd4),_0x41af93['writer']['setAttribute']('vid_end',_0x4f138e['viewItem']['getAttribute']('vid_end'),_0x2bbcd4));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x5836d3=>_0x5836d3['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x3c61be,[,_0x439138])=>{['vid_start','vid_end','vid']['includes'](_0x439138)&&(_0x3c61be['return']=!0x0,_0x3c61be['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x5091db=>{_0x5091db['on']('attribute:vid',(_0x250b53,_0x32e2ff,_0x41e213)=>{if('\x20'!=_0x32e2ff['item']['data']||_0x32e2ff['item']['parent']['maxOffset']>0x1)return;if(!_0x41e213['consumable']['consume'](_0x32e2ff['item'],_0x250b53['name']))return;const _0xe6a7cf=_0x41e213['writer'],_0x37fb64=_0x41e213['mapper']['toViewRange'](_0x32e2ff['range']);_0xe6a7cf['wrap'](_0x37fb64,_0xe6a7cf['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x456cb6){const _0x4eff73=_0x456cb6['plugins']['get']('RevisionViewer');return(_0x48ec35,_0xbc556d,_0x2656a3)=>{const _0x10af9b=_0xbc556d['markerName']['split'](':')[0x1],_0x5e08cc=_0x4eff73['_getChangeFromId'](_0x10af9b);if(!_0x5e08cc)return null;const _0x5ba049='add'==_0x5e08cc['type']?'split':'merge';if(!_0x2656a3['consumable']['test'](_0xbc556d['markerRange'],_0x48ec35['name']))return;const _0xbcd660=_0xbc556d['markerRange']['getWalker'](),_0x54a8b9=_0xbc556d['markerRange']['start'],_0x1b6bd9=_0x456cb6['model']['schema'];let _0x3d5adf=null,_0x56b686=null,_0x56ece0=!0x1,_0x4dbee0=!0x1;for(const _0xfa4ee9 of _0xbcd660){const _0x253403=_0xfa4ee9['item'];_0x56ece0=_0x56ece0||_0x1b6bd9['isContent'](_0x253403);const _0x271a51=_0x2656a3['mapper']['toViewElement'](_0x253403);if(_0x271a51&&_0x271a51['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xfa4ee9['type']&&(_0x1b6bd9['isBlock'](_0x253403)&&!_0x1b6bd9['isLimit'](_0x253403)&&(_0x253403['nextSibling']||_0x54a8b9['isAtEnd']?_0x3d5adf&&_0x3d5adf['parent']==_0x253403||(_0x3d5adf=_0x253403,_0x48b85a(_0xfa4ee9['previousPosition']),_0x4dbee0=!0x0):_0x56b686=_0x56b686||_0xfa4ee9['previousPosition']));}function _0x48b85a(_0x15b678){const _0x1bbaff=_0x2656a3['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5ba049}),_0x26e0c8=_0x2656a3['mapper']['toViewPosition'](_0x15b678);_0x5e08cc['data']['isSuggestion']&&_0x2656a3['writer']['addClass']('ck-suggestion-marker-'+_0x5ba049+'-new',_0x1bbaff),_0x4eff73['activeChange']==_0x5e08cc&&_0x2656a3['writer']['addClass']('ck-suggestion-marker--active',_0x1bbaff),_0x2656a3['writer']['insert'](_0x26e0c8,_0x1bbaff),_0x2656a3['mapper']['bindElementToMarker'](_0x1bbaff,_0xbc556d['markerName']);}_0x56ece0||_0x4dbee0||!_0x56b686||_0x48b85a(_0x56b686);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0xe75807,_0x1777ce,_0x26930e)=>{const _0x5b27e3=_0x26930e['mapper']['markerNameToElements'](_0x1777ce['markerName']);if(_0x5b27e3){for(const _0x1ea932 of _0x5b27e3)(_0x1ea932['hasClass']('ck-suggestion-marker-split')||_0x1ea932['hasClass']('ck-suggestion-marker-merge'))&&(_0x26930e['mapper']['unbindElementFromMarkerName'](_0x1ea932,_0x1777ce['markerName']),_0x26930e['writer']['remove'](_0x1ea932));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x50111a,_0x1867d7,_0x33d2ea)=>{const _0x4fe13a=_0x1867d7['markerName']['split'](':')[0x1],_0x17831=this['_getChangeFromId'](_0x4fe13a);if(!_0x17831)return null;const _0x4251e4='add'==_0x17831['type']?'split':'merge';if(_0x33d2ea['consumable']['test'](_0x1867d7['markerRange'],_0x50111a['name']))for(const _0x1b4d20 of _0x1867d7['markerRange']['getItems']()){if(!_0x1b4d20['is']('element','softBreak'))continue;const _0xcfb7da=_0x33d2ea['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4251e4}),_0x4ec3db=_0x33d2ea['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x1b4d20));_0x17831['data']['isSuggestion']&&_0x33d2ea['writer']['addClass']('ck-suggestion-marker-'+_0x4251e4+'-new',_0xcfb7da),this['activeChange']==_0x17831&&_0x33d2ea['writer']['addClass']('ck-suggestion-marker--active',_0xcfb7da),_0x33d2ea['writer']['insert'](_0x4ec3db,_0xcfb7da),_0x33d2ea['mapper']['bindElementToMarker'](_0xcfb7da,_0x1867d7['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x3b6007=>{for(const _0x5cc44d of this['editor']['model']['document']['getRootNames']()){const _0x426fd=this['editor']['model']['document']['getRoot'](_0x5cc44d),_0x138bda=this['editor']['editing']['view']['document']['getRoot'](_0x5cc44d);if(_0x138bda){const _0x4676ca=_0x426fd['getAttribute']('revisionHistoryAttachChange');if(_0x3b6007['removeAttribute']('data-change-id',_0x138bda),_0x3b6007['removeClass']('ck-revision-history-root-add',_0x138bda),_0x3b6007['removeClass']('ck-revision-history-root-remove',_0x138bda),_0x3b6007['removeClass']('ck-revision-history-root--active',_0x138bda),_0x4676ca){const _0xd5708b=this['_getChangeFromId'](_0x4676ca);if(!_0xd5708b)return null;_0x3b6007['setAttribute']('data-change-id',_0x4676ca,_0x138bda),_0x3b6007['addClass']('ck-revision-history-root-'+_0xd5708b['type'],_0x138bda),this['activeChange']==_0xd5708b&&_0x3b6007['addClass']('ck-revision-history-root--active',_0x138bda);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x572d06=>'revision-comment:'+_0x572d06,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x1f1f57=>'revision-suggestion:'+_0x1f1f57,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x2cb51c=>({'name':'suggestion:'+_0x2cb51c,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x34fa77=>{const _0x32eab6=_0x34fa77['markerName']['split'](':')[0x1];return'insertion'!=_0x32eab6&&'deletion'!=_0x32eab6?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x32eab6]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x1a0e24,_0x1497f5,_0x1d7a8d)=>{const _0x43c17d=_0x1d7a8d['mapper']['markerNameToElements'](_0x1497f5['markerName']);if(_0x43c17d){for(const _0xc97c4d of _0x43c17d)_0xc97c4d['is']('uiElement')&&(_0x1d7a8d['mapper']['unbindElementFromMarkerName'](_0xc97c4d,_0x1497f5['markerName']),_0x1d7a8d['writer']['remove'](_0xc97c4d));}},{'priority':'high'});}['_getChangeFromId'](_0x4e6442){return this['_changeIdToChange']['get'](_0x4e6442);}['_getViewForChange'](_0x212a27){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x212a27),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x307d9c,_0x3294ac,_0x11900e,_0x2f9eaf)=>{_0x2f9eaf&&this['_balloon']['remove'](_0x2f9eaf),_0x11900e&&(this['_balloon']['add']({'view':_0x11900e,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x2c806c=this['editor']['editing'],_0x3f0b20=this['_getChangeFromId'](_0x11900e['changeId']);let _0x553fc6;if(_0x3f0b20['data']['isOnRoot']){const _0x2c1a83=_0x2c806c['view']['getDomRoot'](_0x3f0b20['rootName']);_0x553fc6=Array['from'](_0x2c1a83['getClientRects']());}else{const _0x36e6a1=this['editor']['model']['markers']['get']('revision:'+_0x11900e['changeId']);_0x553fc6=Array['from'](_0x2c806c['mapper']['markerNameToElements'](_0x36e6a1['name']))['map'](_0x592fce=>_0x2c806c['view']['domConverter']['mapViewToDom'](_0x592fce))['map'](_0x30cab0=>Array['from'](_0x30cab0['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x553fc6[0x0];return _0x553fc6['find'](_0x584af7=>_0x584af7['top']-0x3<=this['_activeViewTarget']['y']&&_0x584af7['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x584af7['left']-0x3<=this['_activeViewTarget']['x']&&_0x584af7['right']+0x3>=this['_activeViewTarget']['x'])||_0x553fc6[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x2227ac,_0x1928ec,_0x11db83,_0xbc0464)=>{this['activeView']=_0x11db83?this['_getViewForChange'](_0x11db83):null,this['editor']['model']['change'](()=>{const _0x3406fb=this['editor']['editing'];_0xbc0464&&(_0xbc0464['data']['isOnRoot']?_0x3406fb['view']['change'](_0x1b0005=>{_0x1b0005['removeClass']('ck-revision-history-root--active',_0x3406fb['view']['document']['getRoot'](_0xbc0464['rootName']));}):_0x3406fb['reconvertMarker']('revision:'+_0xbc0464['id'])),_0x11db83&&(_0x11db83['data']['isOnRoot']?_0x3406fb['view']['change'](_0x1b8168=>{_0x1b8168['addClass']('ck-revision-history-root--active',_0x3406fb['view']['document']['getRoot'](_0x11db83['rootName']));}):_0x3406fb['reconvertMarker']('revision:'+_0x11db83['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x3844a3,_0x344a46)=>{if(this['activeChange'])return;const _0x58a430=this['_findChangeIdFromDomTarget'](_0x344a46['target']),_0x16c49f=this['_changeIdToChange']['get'](_0x58a430);_0x16c49f?(this['_activeViewTarget']={'x':_0x344a46['domEvent']['x'],'y':_0x344a46['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x16c49f)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x451f32,_0x1ca90b)=>{const _0x40e4cd=this['_findChangeIdFromDomTarget'](_0x1ca90b['target']),_0x1bfa39=this['_changeIdToChange']['get'](_0x40e4cd);_0x1bfa39?(this['_activeViewTarget']={'x':_0x1ca90b['domEvent']['x'],'y':_0x1ca90b['domEvent']['y']},_0x1bfa39===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x1bfa39):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x37511c){do{const _0x446113=_0x37511c['getAttribute']('data-change-id');if(_0x446113)return _0x446113;_0x37511c=_0x37511c['parent'];}while(_0x37511c);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x72b4d3=>{for(const _0x481d93 of this['editor']['model']['markers'])_0x72b4d3['removeMarker'](_0x481d93);});}}function Z(_0x30cdfe,_0x13e6bf){return(_0x91e02a,_0x5283f4,_0x48d947)=>{if(!_0x48d947['consumable']['test'](_0x5283f4['markerRange'],_0x91e02a['name']))return;const _0x54aa8d=_0x5283f4['markerRange']['getWalker'](),_0x58d902=_0x5283f4['markerRange']['start'],_0x4d4bb2=_0x30cdfe['model']['schema'];let _0x4743fd=null,_0x449a2e=null,_0x220791=!0x1,_0x6c3ac3=!0x1;for(const _0x18a591 of _0x54aa8d){const _0x11bc64=_0x18a591['item'];_0x220791=_0x220791||_0x4d4bb2['isContent'](_0x11bc64);const _0x58c10e=_0x48d947['mapper']['toViewElement'](_0x11bc64);if(_0x58c10e&&_0x58c10e['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x18a591['type']&&(_0x4d4bb2['isBlock'](_0x11bc64)&&!_0x4d4bb2['isLimit'](_0x11bc64)&&(_0x11bc64['nextSibling']||_0x58d902['isAtEnd']?_0x4743fd&&_0x4743fd['parent']==_0x11bc64||(_0x4743fd=_0x11bc64,_0xb7842d(_0x18a591['previousPosition']),_0x6c3ac3=!0x0):_0x449a2e=_0x449a2e||_0x18a591['previousPosition']));}function _0xb7842d(_0x21a79e){const _0x59e96e=_0x48d947['mapper']['toViewPosition'](_0x21a79e),_0x315253=_0x48d947['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x13e6bf});_0x48d947['writer']['insert'](_0x59e96e,_0x315253),_0x48d947['mapper']['bindElementToMarker'](_0x315253,_0x5283f4['markerName']);}_0x220791||_0x6c3ac3||!_0x449a2e||_0xb7842d(_0x449a2e);};}class _t extends _0x2c8a7b{constructor(_0x4a44d4){super(_0x4a44d4);const _0x235a51=_0x4a44d4['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x235a51,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x235a51,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x4084cb=this['editor'],_0x4c76f2=_0x4084cb['plugins']['get'](d),_0x213ef7=_0x4c76f2['isReady']?_0x4c76f2['diff']['newRevisionId']:null;_0x4084cb['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x213ef7);}['refresh'](){const {isReady:_0x15e904,isEnabled:_0x2480a9,repository:_0x1d72a8,diff:_0x14e64e}=this['editor']['plugins']['get'](d),_0x2912ef=_0x14e64e&&_0x1d72a8['getLaterVisibleRevision'](_0x14e64e['newRevisionId']);this['isEnabled']=_0x15e904&&_0x2480a9&&Boolean(_0x2912ef);}}class yt extends _0x2c8a7b{['_step'];constructor(_0x1731be,{direction:_0x2df532}){super(_0x1731be);const _0x27c6d4=_0x1731be['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x2df532?0x1:-0x1,this['listenTo'](_0x27c6d4,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x27c6d4,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x27c6d4,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x2251bf=this['editor'],_0x334bf7=_0x2251bf['plugins']['get'](d),{isNavigationMode:_0xc0f514,currentChangeNumber:_0x24b89f}=_0x334bf7;let _0x254898;if(_0x334bf7['activeChange']=_0xc0f514?_0x334bf7['diff']['changes']['get'](_0x24b89f+this['_step']):_0x334bf7['diff']['changes']['first'],_0x334bf7['activeChange']['data']['isOnRoot'])_0x254898=_0x2251bf['editing']['view']['getDomRoot'](_0x334bf7['activeChange']['rootName']);else{const _0x3dd313=_0x2251bf['model']['markers']['get']('revision:'+_0x334bf7['activeChange']['id']);_0x254898=_0x30b6a5(_0x2251bf['editing'],_0x3dd313);}_0x4b5b86({'target':_0x254898,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x50a568,currentChangeNumber:_0x4b242a,numberOfChanges:_0x5b0d7b,isReady:_0x18d5af,isEnabled:_0x50ee46}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x50ee46&&_0x18d5af&&_0x5b0d7b)&&(!_0x50a568||(0x1===this['_step']?_0x4b242a<_0x5b0d7b-0x1:_0x4b242a>0x0));}}class di extends _0x4aaa2b{constructor(_0x5e71a7){super(_0x5e71a7);const _0x4251c3=this['bindTemplate'],_0x3ca747=new _0x4f5614(_0x5e71a7),_0x5d34e7=new _0x4f5614(_0x5e71a7);this['set']('isNavigationMode',!0x1),this['set']('isReady',!0x1),this['set']('currentChangeNumber',0x0),this['set']('numberOfChanges',0x0),this['set']('isForwardNavigationEnabled',!0x1),this['set']('isBackwardNavigationEnabled',!0x1),this['bind']('_isStatusLabelVisible')['to'](this,'isReady',this,'numberOfChanges',(_0x539a9c,_0x12ff21)=>_0x539a9c&&_0x12ff21>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x4fa4e5,_0x62a30c,_0x446fd2,_0x1e785f)=>{if(!_0x4fa4e5)return m(_0x5e71a7,'Loading...');if(!_0x446fd2)return m(_0x5e71a7,'No\x20changes');const _0x1f790c=m(_0x5e71a7,'NUMBER_OF_CHANGES',_0x446fd2);return _0x1e785f?m(_0x5e71a7,'X_OF_Y_CHANGES',[_0x62a30c+0x1,_0x446fd2]):_0x1f790c;}),_0x3ca747['set']({'label':m(_0x5e71a7,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x2014.494a.75.75\x200\x200\x200\x201.197-.899l-.067-.089-6.992-8a.75.75\x200\x200\x200-1.05-.078l-.079.078-7.008\x208a.75.75\x200\x200\x200\x201.049\x201.066l.08-.078\x206.442-7.354\x206.428\x207.354z\x22/></svg>\x0a'}),_0x5d34e7['set']({'label':m(_0x5e71a7,'Show\x20next\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x205.506a.75.75\x200\x200\x201\x201.197.899l-.067.089-6.992\x208a.75.75\x200\x200\x201-1.05.078l-.079-.078-7.008-8a.75.75\x200\x200\x201\x201.049-1.066l.08.078\x206.442\x207.354\x206.428-7.354z\x22/></svg>\x0a'}),_0x3ca747['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x5d34e7['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x3ca747['on']('execute',()=>this['fire']('execute','backward')),_0x5d34e7['on']('execute',()=>this['fire']('execute','forward')),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-revision-history-ui','ck-revision-history-ui__changes-navigation']},'children':[{'tag':'span','attributes':{'class':['ck-revision-history-ui__changes-navigation__wrapper']},'children':[{'tag':'span','attributes':{'class':['ck-revision-history-ui__changes-navigation__label',_0x4251c3['if']('_isStatusLabelVisible','ck-hidden',_0x3dd9d2=>!_0x3dd9d2)]},'children':[{'text':_0x4251c3['to']('isNavigationMode',_0x3f8ffc=>_0x3f8ffc?m(_0x5e71a7,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x5e71a7,'Total')+':\x20')}]},{'text':_0x4251c3['to']('_statusText')}]},new _0x2dcfa0(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x3ca747,_0x5d34e7]}]});}}const ce='ck-editor__editable__loading-overlay';class ae extends _0x26a73c{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x4fb615=this['editor']['editing']['view'];_0x4fb615['change'](_0x2cb7ae=>{for(const _0x3824b5 of _0x4fb615['document']['roots'])_0x2cb7ae['addClass'](ce,_0x3824b5);});}['hide'](){const _0x207da9=this['editor']['editing']['view'];_0x207da9['change'](_0x5e899b=>{for(const _0x5743dc of _0x207da9['document']['roots'])_0x5e899b['removeClass'](ce,_0x5743dc);});}}class g extends _0x26a73c{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,ae];}['init'](){const _0x1e3bd5=this['editor'],_0x45422d=_0x1e3bd5['plugins']['get'](d),_0x370f71=_0x1e3bd5['plugins']['get'](ae);_0x1e3bd5['ui']['componentFactory']['add']('exitToEditing',_0x5cc7c5=>{const _0x4b6b36=new _0x4f5614(_0x5cc7c5);return _0x4b6b36['set']({'label':m(_0x5cc7c5,'Back\x20to\x20editing'),'icon':_0x3937f1['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x4b6b36,'execute',()=>{_0x1e3bd5['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x4b6b36;}),_0x1e3bd5['ui']['componentFactory']['add']('restoreRevision',_0x4686ca=>{const _0x272c64=new _0x4f5614(_0x4686ca);return _0x272c64['set']({'label':m(_0x4686ca,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x272c64['bind']('isEnabled')['to'](_0x1e3bd5['commands']['get']('restoreRevision')),this['listenTo'](_0x272c64,'execute',()=>_0x1e3bd5['execute']('restoreRevision')),_0x272c64;}),_0x1e3bd5['ui']['componentFactory']['add']('changesNavigation',_0x1ed1ac=>{const _0x49dc58=new di(_0x1ed1ac),_0x253c55=_0x1e3bd5['commands']['get']('showPreviousChange'),_0x5d7785=_0x1e3bd5['commands']['get']('showNextChange');return _0x49dc58['bind']('isBackwardNavigationEnabled')['to'](_0x253c55,'isEnabled'),_0x49dc58['bind']('isForwardNavigationEnabled')['to'](_0x5d7785,'isEnabled'),_0x49dc58['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x45422d),this['listenTo'](_0x49dc58,'execute',(_0x5521ff,_0x1334ea)=>{_0x1e3bd5['execute']('forward'===_0x1334ea?'showNextChange':'showPreviousChange');}),_0x49dc58;}),_0x370f71['show'](),_0x45422d['on']('change:isReady',(_0x3fa8b4,_0x308a3a,_0xfc39a4)=>{_0xfc39a4?_0x370f71['hide']():_0x370f71['show']();});}}class pt extends nt{['_resizeObserver']=null;constructor(_0x13a242,_0x1ed752){super(_0x13a242,_0x1ed752);const _0x538d54=this['bindTemplate'];this['set']({'label':m(_0x13a242,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x13a242,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x538d54['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new at(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x53f1ec=this['fieldView']['element'];this['_tooltipString']=_0x53f1ec['scrollWidth']>_0x53f1ec['clientWidth']&&_0x53f1ec['value']||'';}}class ti extends _0x4aaa2b{constructor(_0x46bfb9,_0x2a5636,_0x17663c){super(_0x46bfb9);const _0x35f937=new _0x355ac1();_0x35f937['set']({'content':'<svg\x20viewBox=\x220\x200\x2011\x2010\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20xmlns:xlink=\x22http://www.w3.org/1999/xlink\x22><path\x20d=\x22M5.5\x205C8.538\x205\x2011\x207.015\x2011\x209.5c0\x20.17-.011.336-.034.5H.034A3.732\x203.732\x200\x200\x201\x200\x209.5C0\x207.015\x202.462\x205\x205.5\x205zm0-5a2.5\x202.5\x200\x201\x201\x200\x205\x202.5\x202.5\x200\x200\x201\x200-5z\x22\x20/></svg>\x0a','viewBox':'0\x200\x2011\x2010'});const _0x9f137f=['ck','ck-revision-history-sidebar__revision-author'];_0x17663c&&_0x9f137f['push']('ck-revision-history-sidebar__revision-author_creator');const _0x50ab31=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x46bfb9,_0x17663c?'Revision\x20creator':'Revision\x20author')},'children':[_0x35f937,_0x2a5636['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x9f137f},'children':_0x50ab31});}}function ni(_0x476a1b,_0x4c0c02){const _0x599e4c=_0x476a1b['bindTemplate'],_0x3ff4b1=_0x476a1b['locale'],_0x2fd7de=_0x298fc1(_0x3ff4b1);_0x2fd7de['panelPosition']='sw';const _0x37ddcd=function(_0x37da1e,_0x4933fe){const _0x3d231a=function(_0x2b8c97,_0x280371){const _0xd0f09c=_0x2b8c97['locale'],_0x435cc5={'Compare\x20against\x20selected':m(_0xd0f09c,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0xd0f09c,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0xd0f09c,'Restore\x20this\x20revision')};return _0x280371['map'](_0xe912e3=>{const _0x3553c9=_0x435cc5[_0xe912e3['name']];return _0x3553c9&&_0x3553c9!==_0xe912e3['name']&&(_0xe912e3['name']=_0x3553c9),_0xe912e3;});}(_0x37da1e,_0x4933fe),_0xfcfbf=new _0x416362();for(const _0x4b46d1 of _0x3d231a){const _0x32f57c={'type':'button','model':new to({'label':_0x4b46d1['name'],'class':_0x4b46d1['class'],'withText':!0x0,'role':'menuitem','_action':_0x4b46d1['action']})};_0x32f57c['model']['bind']('isEnabled')['to'](_0x37da1e,'isActionsDropdownOpen',_0x1323ad=>'function'!=typeof _0x4b46d1['isEnabled']||(!_0x1323ad||_0x4b46d1['isEnabled'](_0x37da1e))),_0xfcfbf['add'](_0x32f57c);}return _0xfcfbf;}(_0x476a1b,_0x4c0c02);return _0x476a1b['bind']('isActionsDropdownOpen')['to'](_0x2fd7de,'isOpen'),_0x2fd7de['buttonView']['set']({'label':m(_0x3ff4b1,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x3937f1['threeVerticalDots']}),_0x2fd7de['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x599e4c['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x599e4c['to'](_0x3f713b=>_0x3f713b['stopPropagation']())}}),_0x2fd7de['on']('execute',_0x389ff4=>{_0x476a1b['isReady']&&'function'==typeof _0x389ff4['source']['_action']&&_0x389ff4['source']['_action'](_0x476a1b);}),_0x3a39f7(_0x2fd7de,_0x37ddcd,{'role':'menu'}),_0x2fd7de['listenTo'](_0x476a1b,'change:isActionsDropdownOpen',(_0x12af3f,_0x3ce157,_0x5abf67)=>{if(_0x5abf67)for(const _0x33f048 of _0x2fd7de['listView']['items']){const _0x3edb48=_0x33f048['children']['first'],_0x5895e0=_0x4c0c02['find'](_0x4d2e38=>_0x4d2e38['action']===_0x3edb48['_action'])['isVisible'];_0x33f048['isVisible']=void 0x0===_0x5895e0||_0x5895e0(_0x476a1b);}}),_0x2fd7de;}class ai extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x714008(_0x4aaa2b){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x596601,_0x4c625d,_0x27ad0b,_0x3be731){super(_0x596601);const _0x538d29=this['bindTemplate'],_0x44a945=function(_0x46e852,_0xd7d9b0){const _0x26722c=Array['from'](_0xd7d9b0['authors'])['filter'](_0x14ee78=>_0x14ee78!=_0xd7d9b0['creator']);return _0xd7d9b0['creator']&&_0x26722c['unshift'](_0xd7d9b0['creator']),_0x26722c['map'](_0xf2c036=>new ti(_0x46e852,_0xf2c036,_0xf2c036==_0xd7d9b0['creator']));}(_0x596601,_0x4c625d);this['id']=_0x4c625d['id'],this['_revision']=_0x4c625d,this['_requireRevisionName']=_0x3be731,this['bind']('name','createdAt')['to'](_0x4c625d),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x1ad992=>{return _0x551ab8=_0x596601['uiLanguage'],(_0x51cb85=_0x1ad992)['toLocaleDateString'](_0x551ab8,{'month':'long','day':'numeric'})+',\x20'+_0x51cb85['toLocaleTimeString'](_0x551ab8,{'hour':'numeric','minute':'numeric'});var _0x551ab8,_0x51cb85;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new pt(_0x596601,_0x2b21b7),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x544e55=>_0x544e55||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x3341fd,_0x2def22)=>_0x3341fd&&_0x2def22),this['revisionActionsView']=_0x27ad0b&&_0x27ad0b['length']?ni(this,_0x27ad0b):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x538d29['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x538d29['if']('isEnabled','ck-disabled',_0x3d7cb0=>!_0x3d7cb0),_0x538d29['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x538d29['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x538d29['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':_0x538d29['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':_0x44a945}]},this['revisionActionsView']],'on':{'click':_0x538d29['to'](_0x1a7238=>{_0x1a7238['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0xc573ce=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0xc573ce,'change',()=>{this['_requireRevisionName']&&!_0xc573ce['value']||this['fire']('setName',{'id':this['id'],'name':_0xc573ce['value']}),_0xc573ce['value']||(_0xc573ce['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function mi(_0x3bee76,_0xb50163){const _0x32697d=_0x11acc7['fromJSDate'](_0x3bee76)['setLocale'](_0xb50163),_0x26cfde=_0x11acc7['local'](),_0x7fa105=_0x26cfde['minus']({'days':0x1})['startOf']('day');let _0x422d7d,_0x3d64f7;return _0x32697d['hasSame'](_0x26cfde,'day')?(_0x422d7d=_0x32697d['startOf']('day')['toJSDate'](),_0x3d64f7=_0x32697d['toRelativeCalendar']()):_0x32697d['hasSame'](_0x7fa105,'day')?(_0x422d7d=_0x7fa105['toJSDate'](),_0x3d64f7=_0x32697d['toRelativeCalendar']()):_0x32697d['hasSame'](_0x26cfde,'week')?(_0x422d7d=_0x32697d['startOf']('week')['toJSDate'](),_0x3d64f7=_0x32697d['weekdayLong']||''):_0x32697d['hasSame'](_0x26cfde,'year')?(_0x422d7d=_0x32697d['startOf']('month')['toJSDate'](),_0x3d64f7=_0x32697d['monthLong']||''):(_0x422d7d=_0x32697d['startOf']('year')['toJSDate'](),_0x3d64f7=String(_0x32697d['year'])),{'startDate':_0x422d7d,'localizedPeriodName':_0x3d64f7};}class vi extends _0x4aaa2b{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0xd9250e,_0x514bc8,_0x3ac43a,_0xf00ce9){super(_0xd9250e);const _0x1547f4=mi(_0x514bc8,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x514bc8,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x3ac43a,this['_requireRevisionName']=_0xf00ce9,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':_0x1547f4}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x3379d4){const _0x1d2d7a=new ai(this['locale'],_0x3379d4,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x1d2d7a);}['removeRevision'](_0x5c9f5b){const _0x4a3d00=this['revisionViews']['find'](_0xc14122=>_0xc14122['id']===_0x5c9f5b['id']);this['revisionViews']['remove'](_0x4a3d00);}}class as extends _0x4aaa2b{constructor(_0x3892f0){super(_0x3892f0);const _0x294f1d=new _0x355ac1();_0x294f1d['content']=_0x3937f1['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x294f1d,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x3892f0,'Revision\x20history')]}]});}}class li extends _0x4aaa2b{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x5c391a,_0x3b576a,_0x36059f,_0x10d95b){super(_0x5c391a);const _0x17e50b=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x3b576a,this['_revisionActions']=_0x36059f,this['_requireRevisionName']=_0x10d95b,this['on']('select',(_0x1baa35,_0x4e6c24)=>{this['fire']('revisionSelected',_0x4e6c24);}),this['on']('setName',(_0x5f8fb0,_0x35d0f8)=>{this['fire']('revisionSetName',_0x35d0f8);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x5c391a),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x17e50b['if']('isEnabled','ck-disabled',_0x286cb0=>!_0x286cb0)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x18df1f of this['_revisions'])this['_addRevision'](_0x18df1f);this['_revisions']['on']('add',(_0x5e764d,_0x9c42d)=>{this['_addRevision'](_0x9c42d);}),this['_revisions']['on']('remove',(_0x2030b8,_0x3bac51)=>{this['_removeRevision'](_0x3bac51);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x537f4f=>_0x537f4f['revisionViews']['map'](_0x4f6fec=>_0x4f6fec))['flat']();}['selectRevision'](_0x41245f){for(const _0x3d870e of this['revisionViews'])_0x41245f&&_0x41245f['id']===_0x3d870e['id']?_0x3d870e['select']():_0x3d870e['deselect']();}['highlightRevisions'](_0x27c502){for(const _0x31eb9a of this['revisionViews'])_0x27c502['some'](({id:_0x31b783})=>_0x31b783===_0x31eb9a['id'])?_0x31eb9a['highlight']():_0x31eb9a['unhighlight']();}['_addRevision'](_0x10f307){const _0x5decbb=mi(_0x10f307['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x1b0596=this['timePeriodViews']['get'](0x0);_0x1b0596&&_0x1b0596['startDate']['getTime']()===_0x5decbb['getTime']()||(_0x1b0596=new vi(this['locale'],_0x5decbb,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x1b0596)),_0x1b0596['addRevision'](_0x10f307);}['_removeRevision'](_0x64b429){const _0x479147=mi(_0x64b429['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x479147)['removeRevision'](_0x64b429);}['_getTimePeriodViewByStartDate'](_0x31fd92){return this['timePeriodViews']['find'](_0x17f921=>_0x17f921['startDate']['getTime']()===_0x31fd92['getTime']());}}class w extends _0x26a73c{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
27
27
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
|
-
bt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(
|
|
29
|
-
it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x4d3c96,_0x2aaa54){super(_0x2aaa54),this['sourceElement']=_0x4d3c96,this['model']['document']['createRoot']();const _0x4ec558=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x4ec558);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x449537,_0x3d8445){const _0x3ad8c7=new this(_0x449537,_0x3d8445);return await _0x3ad8c7['initPlugins'](),await _0x3ad8c7['ui']['init'](_0x449537),await _0x3ad8c7['data']['init'](_0x3ad8c7['config']['get']('initialData')||''),_0x3ad8c7['fire']('ready'),_0x3ad8c7;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0x38c4e4{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x8c1934){function _0x3a70f3(_0x5cdf98){return _0x5cdf98['map'](_0x57fe89=>String['fromCharCode'](_0x57fe89))['join']('');}super(_0x8c1934),this['result']='end',_0x8c1934[_0x3a70f3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3a70f3([0x76,0x69,0x65,0x77])][_0x3a70f3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3a70f3([0x61,0x75,0x74,0x6f]),_0x8c1934[_0x3a70f3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3a70f3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3a70f3([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3a70f3([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3a70f3([0x6f,0x6b])});}}class k extends _0x38c4e4{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x5757b0){if(super(_0x5757b0),!this['editor']['config']['get']('revisionHistory'))throw new _0x5f4f1d('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x211ea8=>this['_showRevisionViewer']({..._0x211ea8,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x227a1b=>this['_closeRevisionViewer'](_0x227a1b)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x56f289=>this['_restoreRevision'](_0x56f289)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x522f66){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x522f66;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0xc7736d){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0xc7736d);}['getRevision'](_0x2a767a){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x2a767a);}['getRevisions'](_0x15b278){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x15b278||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x35f659=this['editor'],_0x33149a=_0x1e169a(_0x35f659,p),_0x3b99f7=_0x35f659['plugins']['get']('RevisionTracker'),_0x40670e=_0x35f659['plugins']['get']('Users')['users'];return _0x33149a['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x33149a['lazyRoots'],(_0x33149a['plugins']['push'](Rt,d,g,class extends _0x38c4e4{static get['requires'](){return[d,'Users'];}['init'](){const _0x5d1f2e=this['editor']['plugins']['get']('Users');for(const _0x1ae7ff of _0x40670e)_0x1ae7ff['isAnonymous']||_0x5d1f2e['getUser'](_0x1ae7ff['id'])||_0x5d1f2e['addUser'](_0x1ae7ff);const _0x1485c2=_0x3b99f7['repository']['getRevisions']();let _0x30d3ba=null;const _0x3e5587=this['editor']['plugins']['get']('RevisionViewer');_0x3e5587['adapter']=_0x3b99f7['adapter'],_0x3e5587['bind']('isEnabled')['to'](_0x3b99f7),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x35f659,'isReadOnly',_0x2e6b38=>!_0x2e6b38);for(const _0x40b71e of _0x1485c2){const _0xa28a40=null===_0x40b71e['creator'];if(_0xa28a40&&_0x40b71e['toVersion']===_0x40b71e['fromVersion'])continue;const _0x14882b=_0x40b71e['toJSON']();_0x3e5587['addRevisionData'](_0x14882b,(_0x750814,_0x310efa,_0x232083)=>{if(_0xa28a40){if(_0x30d3ba)_0x30d3ba['_update'](_0x750814,_0x310efa);else{if(!_0x310efa){const _0x483a73=_0x232083['toJSON']();_0x483a73['id']=_0x358749(),_0x3b99f7['saveRevision'](_0x483a73,_0x232083['toVersion'])['then'](_0x11bd28=>{_0x30d3ba=_0x11bd28;});}}}else _0x40b71e['_update'](_0x750814,_0x310efa);});}}},w),_0x33149a);}['_enhanceShowRevisionViewerCallback'](){const _0xd02b09=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0xf053cd=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x17a3eb=this['editor']['plugins']['get']('Autosave');await _0x17a3eb['save']();}else await _0xf053cd['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x4d7282=this['editor']['plugins']['get']('Dialog');_0x4d7282['isOpen']&&_0x4d7282['hide']();}const _0x187b21=this['_getRevisionViewerEditorConfig']();return _0xd02b09(_0x187b21)['then'](_0x16cc68=>{return(this['_viewerEditor']=_0x16cc68,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x16cc68;})['catch'](_0x10832b=>(console['error'](_0x10832b),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x55d3cf=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x55d3cf(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x27b26f=this['editor']['plugins']['get']('Annotations');_0x27b26f['refreshVisibility'](),_0x27b26f['refreshPositioning']();}})));}['_showRevisionViewer'](_0x3bc640){const _0x2576c5=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x202005=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x2dcc0d=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x2dcc0d,_0x3bc640)['then'](_0x3c5d40=>(_0x202005['style']['display']='block',_0x2576c5['style']['display']='none',_0x3c5d40));}['_closeRevisionViewer'](_0x988651){const _0x57b6b=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x57b6b['style']['display']='',_0x988651['destroy']();}async['_restoreRevision'](_0x2f6659){const _0x234e85=this['editor'],_0x5a508d=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x1651d5=_0x234e85['plugins']['get']('RevisionTracker'),_0x321a2a=_0x5a508d['repository']['getRevision'](_0x2f6659);let _0x522d6a,_0x24fcef,_0x185d4d;try{_0x522d6a=await _0x5a508d['getRevisionData'](_0x321a2a),_0x24fcef=await _0x5a508d['getRevisionRootsAttributes'](_0x321a2a);}catch(_0x278d79){return void console['error'](_0x278d79);}_0x234e85['model']['change'](_0x240c9d=>{for(const _0x499b04 of Array['from'](_0x234e85['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x240c9d['removeMarker'](_0x499b04);}),_0x5a508d['isReady']=!0x1,_0x234e85['model']['enqueueChange'](_0x4d5b29=>{_0x4d5b29['setSelection'](null),_0x4d5b29['removeSelectionAttribute'](_0x234e85['model']['document']['selection']['getAttributeKeys']());const _0x3e5093=Object['keys'](_0x522d6a);for(const _0x1ce743 of _0x234e85['model']['document']['roots'])'$graveyard'!=_0x1ce743['rootName']&&_0x1ce743['isAttached']()&&!_0x3e5093['includes'](_0x1ce743['rootName'])&&_0x4d5b29['detachRoot'](_0x1ce743);for(const _0x366226 of _0x3e5093){let _0x353172=_0x234e85['model']['document']['getRoot'](_0x366226);_0x353172&&_0x353172['isAttached']()||(_0x353172=_0x4d5b29['addRoot'](_0x366226));const _0x31429c=_0x24fcef[_0x366226],_0x3008ac=Object['keys'](_0x31429c),_0x2a7934=_0x522d6a[_0x366226];for(const _0x1bc5a3 of _0x353172['getAttributeKeys']())_0x3008ac['includes'](_0x1bc5a3)||_0x4d5b29['removeAttribute'](_0x1bc5a3,_0x353172);for(const _0x48973e of _0x3008ac)_0x4d5b29['setAttribute'](_0x48973e,_0x24fcef[_0x366226][_0x48973e],_0x353172);_0x4d5b29['remove'](_0x4d5b29['createRangeIn'](_0x353172)),_0x4d5b29['insert'](_0x234e85['data']['parse'](_0x2a7934,_0x353172),_0x353172,0x0);}});const _0x546452=m(_0x234e85['locale'],'Restored');if(_0x321a2a['name'])_0x185d4d=-0x1==_0x321a2a['name']['indexOf'](_0x546452)?_0x546452+':\x20'+_0x321a2a['name']:_0x321a2a['name'];else _0x185d4d=_0x546452+':\x20'+(_0x321a2a['createdAt']['toLocaleDateString'](_0x234e85['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x321a2a['createdAt']['toLocaleTimeString'](_0x234e85['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x1651d5['saveRevision']({'name':_0x185d4d}),_0x5a508d['isReady']=!0x0,_0x234e85['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,k as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,le as RevisionViewerLoadingOverlay,g as RevisionViewerUI,j as RevisionsRepository,w as RevisionsSidebar};
|
|
28
|
+
bt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x4473bc){super(_0x4473bc),this['_revisionViewer']=_0x4473bc['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x50709d=this['_revisionsRepository']['_revisions'],_0x32f1dd=this['_createRevisionActions'](),_0x313518=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new li(this['editor']['locale'],_0x50709d,_0x32f1dd,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',(_0x272be4,_0x4cbf52)=>{_0x4cbf52['revisionViews']['on']('add',(_0x18eba8,_0x165eee)=>{_0x165eee['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)),_0x313518['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x9b6d8b=this['_revisionsRepository']['getRevision'](0x0);if(_0x9b6d8b){const _0x52269b=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x9b6d8b['id']);this['_revisionViewer']['compare'](_0x9b6d8b,_0x52269b);}}['_handleRevisionSelected'](_0x54987a,_0x183da4){const _0x18f388=this['_revisionsRepository']['getRevision'](_0x183da4['id']),_0x4853c3=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x18f388['id']);this['_revisionViewer']['compare'](_0x18f388,_0x4853c3);}['_handleRevisionSetName'](_0x565866,_0x2f3d3d){this['_revisionsRepository']['getRevision'](_0x2f3d3d['id'])['setName'](_0x2f3d3d['name']);}['_handleDiffChange'](_0x426115,_0x3d9982,_0x158d6c){const _0xd33e16=this['_revisionsRepository']['getRevisionsInDiff'](_0x158d6c);_0xd33e16['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0xd33e16),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0xd33e16[0x0]));}['_createRevisionActions'](){const _0x5663ce=this['editor'],_0x38bf2a=w['availableRevisionActions'],_0x1d90b3=_0x5663ce['config']['get']('revisionHistory.revisionActions')||w['defaultRevisionActions'];if(_0x1d90b3['length'])return _0x1d90b3['map'](_0x30e366=>{const _0x4f8c55='string'==typeof _0x30e366?Object['assign']({},_0x38bf2a[_0x30e366]):_0x30e366;return _0x4f8c55['action']=_0x4f8c55['action']['bind'](this,_0x5663ce),_0x4f8c55['isVisible']&&(_0x4f8c55['isVisible']=_0x4f8c55['isVisible']['bind'](this,_0x5663ce)),_0x4f8c55;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x1656fc},_0x221175)=>{const _0x110682=_0x1656fc['get'](d),_0x49d540=_0x110682['repository'];let _0x570194=_0x110682['diff']['newRevisionId'],_0xf62c0b=_0x221175['id'];_0x49d540['getIndex'](_0x570194)>_0x49d540['getIndex'](_0xf62c0b)&&([_0x570194,_0xf62c0b]=[_0xf62c0b,_0x570194]),_0x110682['compare'](_0x570194,_0xf62c0b);},'isVisible':({plugins:_0x58b54c},_0x50baed)=>{const _0x463828=_0x58b54c['get'](d);return!(_0x463828['repository']['getRevisionsInDiff'](_0x463828['diff'])['length']>0x2)&&!_0x50baed['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x5c61b2,{id:_0x3a78d9})=>{_0x5c61b2['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x3a78d9);},'isVisible':({plugins:_0x2e4baa},_0x1dafad)=>!!_0x2e4baa['get'](d)['repository']['getLaterVisibleRevision'](_0x1dafad['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x1f0bcd},{id:_0xfdc414,revisionNameView:_0xb381cc})=>{const _0x1d9fd3=_0x1f0bcd['get'](d),_0x5cf90d=_0x1d9fd3['repository']['getEarlierVisibleRevision'](_0xfdc414);_0x1d9fd3['compare'](_0xfdc414,_0x5cf90d),_0xb381cc['focus'](),_0xb381cc['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x265fd5,_0x1120ef){super(_0x265fd5),this['_view']=_0x1120ef,this['_toolbarConfig']=ot(_0x265fd5['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x3434ab){const _0x3339ba=this['editor'],_0x49778d=this['view'],_0x30206b=_0x3339ba['editing']['view'],_0x2903b8=_0x49778d['editable'],_0x47a215=_0x30206b['document']['getRoot']();_0x2903b8['name']=_0x47a215['rootName'],_0x49778d['render']();const _0x2fe74d=_0x2903b8['element'];this['setEditableElement'](_0x2903b8['name'],_0x2fe74d),_0x49778d['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x30206b['attachDomRoot'](_0x2fe74d),this['_elementReplacer']['replace'](_0x3434ab,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x43b559=this['view'],_0x50aea6=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x50aea6['detachDomRoot'](_0x43b559['editable']['name']),_0x43b559['destroy']();}['_initToolbar'](){const _0x307697=this['view'];_0x307697['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x307697['stickyPanel']['limiterElement']=_0x307697['element'],_0x307697['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x7216ce})=>_0x7216ce),_0x307697['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x307697['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x6b2354,_0x38fa6f,_0x5c3c8d={}){super(_0x6b2354),this['stickyPanel']=new ut(_0x6b2354),this['toolbar']=new lt(_0x6b2354,{'shouldGroupWhenFull':_0x5c3c8d['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x6b2354,_0x38fa6f);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class R extends/* #__PURE__ -- @preserve */
|
|
29
|
+
it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x199934,_0x4f5905){super(_0x4f5905),this['sourceElement']=_0x199934,this['model']['document']['createRoot']();const _0x252263=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x252263);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x19fa75,_0xa8b708){const _0x1f9dd2=new this(_0x19fa75,_0xa8b708);return await _0x1f9dd2['initPlugins'](),await _0x1f9dd2['ui']['init'](_0x19fa75),await _0x1f9dd2['data']['init'](_0x1f9dd2['config']['get']('initialData')||''),_0x1f9dd2['fire']('ready'),_0x1f9dd2;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0x26a73c{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3079fc){function _0x2c0980(_0x20d170){return _0x20d170['map'](_0x93565c=>String['fromCharCode'](_0x93565c))['join']('');}super(_0x3079fc),this['result']='end',_0x3079fc[_0x2c0980([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2c0980([0x76,0x69,0x65,0x77])][_0x2c0980([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2c0980([0x61,0x75,0x74,0x6f]),_0x3079fc[_0x2c0980([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x2c0980([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2c0980([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x2c0980([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x2c0980([0x6f,0x6b])});}}class k extends _0x26a73c{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x44b56d){if(super(_0x44b56d),!this['editor']['config']['get']('revisionHistory'))throw new _0x1a2ef3('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x355a77=>this['_showRevisionViewer']({..._0x355a77,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x505f97=>this['_closeRevisionViewer'](_0x505f97)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x573f56=>this['_restoreRevision'](_0x573f56)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x29a8f4){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x29a8f4;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x3bdd0){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x3bdd0);}['getRevision'](_0x4103c4){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x4103c4);}['getRevisions'](_0x13d670){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x13d670||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0xb8d727=this['editor'],_0x8a0120=_0x2e045c(_0xb8d727,p),_0x232032=_0xb8d727['plugins']['get']('RevisionTracker'),_0x3e4ee4=_0xb8d727['plugins']['get']('Users')['users'];return _0x8a0120['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x8a0120['lazyRoots'],(_0x8a0120['plugins']['push'](Rt,d,g,class extends _0x26a73c{static get['requires'](){return[d,'Users'];}['init'](){const _0x487fae=this['editor']['plugins']['get']('Users');for(const _0x5be6f3 of _0x3e4ee4)_0x5be6f3['isAnonymous']||_0x487fae['getUser'](_0x5be6f3['id'])||_0x487fae['addUser'](_0x5be6f3);const _0x2e4def=_0x232032['repository']['getRevisions']();let _0x56ae2e=null;const _0xb17d91=this['editor']['plugins']['get']('RevisionViewer');_0xb17d91['adapter']=_0x232032['adapter'],_0xb17d91['bind']('isEnabled')['to'](_0x232032),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0xb8d727,'isReadOnly',_0x4fcced=>!_0x4fcced);for(const _0x2ac615 of _0x2e4def){const _0x55027b=null===_0x2ac615['creator'];if(_0x55027b&&_0x2ac615['toVersion']===_0x2ac615['fromVersion'])continue;const _0x3cc35c=_0x2ac615['toJSON']();_0xb17d91['addRevisionData'](_0x3cc35c,(_0xb90889,_0x48e401,_0x2e46fd)=>{if(_0x55027b){if(_0x56ae2e)_0x56ae2e['_update'](_0xb90889,_0x48e401);else{if(!_0x48e401){const _0x2e04e2=_0x2e46fd['toJSON']();_0x2e04e2['id']=_0x47f5e5(),_0x232032['saveRevision'](_0x2e04e2,_0x2e46fd['toVersion'])['then'](_0x5e4f0c=>{_0x56ae2e=_0x5e4f0c;});}}}else _0x2ac615['_update'](_0xb90889,_0x48e401);});}}},w),_0x8a0120);}['_enhanceShowRevisionViewerCallback'](){const _0x42d0d6=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x449600=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x5b6eb2=this['editor']['plugins']['get']('Autosave');await _0x5b6eb2['save']();}else await _0x449600['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x49ce74=this['editor']['plugins']['get']('Dialog');_0x49ce74['isOpen']&&_0x49ce74['hide']();}const _0x587635=this['_getRevisionViewerEditorConfig']();return _0x42d0d6(_0x587635)['then'](_0x3c21ff=>{return(this['_viewerEditor']=_0x3c21ff,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x3c21ff;})['catch'](_0x3a6206=>(console['error'](_0x3a6206),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x2d3dbe=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x2d3dbe(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x2f6656=this['editor']['plugins']['get']('Annotations');_0x2f6656['refreshVisibility'](),_0x2f6656['refreshPositioning']();}})));}['_showRevisionViewer'](_0x4320a2){const _0x41cafd=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x58257c=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x2ad523=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x2ad523,_0x4320a2)['then'](_0x1e9783=>(_0x58257c['style']['display']='block',_0x41cafd['style']['display']='none',_0x1e9783));}['_closeRevisionViewer'](_0x19d1d3){const _0x53170c=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x53170c['style']['display']='',_0x19d1d3['destroy']();}async['_restoreRevision'](_0x28f870){const _0x4f8716=this['editor'],_0x512a78=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x313631=_0x4f8716['plugins']['get']('RevisionTracker'),_0x353ba3=_0x512a78['repository']['getRevision'](_0x28f870);let _0x41605e,_0x45c66e,_0x2f40dd;try{_0x41605e=await _0x512a78['getRevisionData'](_0x353ba3),_0x45c66e=await _0x512a78['getRevisionRootsAttributes'](_0x353ba3);}catch(_0x4c19ed){return void console['error'](_0x4c19ed);}_0x4f8716['model']['change'](_0x2da2eb=>{for(const _0x40c774 of Array['from'](_0x4f8716['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x2da2eb['removeMarker'](_0x40c774);}),_0x512a78['isReady']=!0x1,_0x4f8716['model']['enqueueChange'](_0x50684f=>{_0x50684f['setSelection'](null),_0x50684f['removeSelectionAttribute'](_0x4f8716['model']['document']['selection']['getAttributeKeys']());const _0x12622b=Object['keys'](_0x41605e);for(const _0x4d47fa of _0x4f8716['model']['document']['roots'])'$graveyard'!=_0x4d47fa['rootName']&&_0x4d47fa['isAttached']()&&!_0x12622b['includes'](_0x4d47fa['rootName'])&&_0x50684f['detachRoot'](_0x4d47fa);for(const _0x7c0257 of _0x12622b){let _0x3265cc=_0x4f8716['model']['document']['getRoot'](_0x7c0257);_0x3265cc&&_0x3265cc['isAttached']()||(_0x3265cc=_0x50684f['addRoot'](_0x7c0257));const _0x1aa387=_0x45c66e[_0x7c0257],_0x2fc35e=Object['keys'](_0x1aa387),_0x3d4425=_0x41605e[_0x7c0257];for(const _0x338beb of _0x3265cc['getAttributeKeys']())_0x2fc35e['includes'](_0x338beb)||_0x50684f['removeAttribute'](_0x338beb,_0x3265cc);for(const _0x229ad3 of _0x2fc35e)_0x50684f['setAttribute'](_0x229ad3,_0x45c66e[_0x7c0257][_0x229ad3],_0x3265cc);_0x50684f['remove'](_0x50684f['createRangeIn'](_0x3265cc)),_0x50684f['insert'](_0x4f8716['data']['parse'](_0x3d4425,_0x3265cc),_0x3265cc,0x0);}});const _0x39187c=m(_0x4f8716['locale'],'Restored');if(_0x353ba3['name'])_0x2f40dd=-0x1==_0x353ba3['name']['indexOf'](_0x39187c)?_0x39187c+':\x20'+_0x353ba3['name']:_0x353ba3['name'];else _0x2f40dd=_0x39187c+':\x20'+(_0x353ba3['createdAt']['toLocaleDateString'](_0x4f8716['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x353ba3['createdAt']['toLocaleTimeString'](_0x4f8716['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x313631['saveRevision']({'name':_0x2f40dd}),_0x512a78['isReady']=!0x0,_0x4f8716['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,k as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,ae as RevisionViewerLoadingOverlay,g as RevisionViewerUI,j as RevisionsRepository,w as RevisionsSidebar};
|