@ckeditor/ckeditor5-revision-history 45.0.0-alpha.5 → 45.0.0-alpha.7
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/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +11 -11
- package/src/changeitem.js +2 -2
- package/src/editor/revisionviewereditor.js +2 -2
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/index.js +1 -1
- package/src/revision.js +2 -2
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionhistoryutils.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +2 -2
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +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
|
-
_0x3660f6(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x2769fd){super(),this['id']=_0x2769fd['id']||_0x1fadd2(),this['creator']=_0x2769fd['creator']||null,this['authors']=_0x2769fd['authors']||[],this['diffData']=_0x2769fd['diffData']||null,this['toVersion']=_0x2769fd['toVersion']||0x0,this['fromVersion']=_0x2769fd['fromVersion']||0x0,this['set']('name',_0x2769fd['name']||''),this['set']('createdAt',_0x2769fd['createdAt']||new Date()),this['set']('attributes',_0x2769fd['attributes']||{});}['setName'](_0x500076){this['_update']({'name':_0x500076});}['setAttribute'](_0x316210,_0x363575){const _0x2dd6c3=_0x344f71(this['attributes']);_0x17dcb5(_0x2dd6c3,_0x316210,_0x363575),this['_update']({'attributes':_0x2dd6c3});}['removeAttribute'](_0x5d1c0d){const _0x32c718=_0x344f71(this['attributes']);_0x2c6ad4(_0x32c718,_0x5d1c0d),this['_update']({'attributes':_0x32c718});}['_update'](_0x2c0c30,_0x2b40b9=!0x1){let _0xf48ba=!0x1;const _0xf364bd={'id':this['id']},_0xb6bec5=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x374b98 of _0xb6bec5){const _0x411d10=_0x2c0c30[_0x374b98];void 0x0!==_0x411d10&&_0x411d10!==this[_0x374b98]&&(this[_0x374b98]=_0x411d10,_0xf364bd[_0x374b98]=_0x411d10,_0xf48ba=!0x0);}_0xf48ba&&(_0xf364bd['authors']&&(_0xf364bd['authorsIds']=_0xf364bd['authors']['map'](_0x5891b4=>_0x5891b4['id']),delete _0xf364bd['authors']),this['fire']('_update',_0xf364bd,_0x2b40b9));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x21a154=>_0x21a154['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x365de9{['_revisions'];static get['requires'](){return[_0x5b69eb];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x2319b7){super(_0x2319b7),this['_revisions']=new _0x1d0d98();}['afterInit'](){!async function(_0x3d5cc3){const _0xf4d799=_0x367ba0([0x68,0x30,0x4a,0x72,0x53,0x6a,0x6d,0x45,0x35,0x56,0x57,0x4f,0x6f,0x70,0x79,0x52,0x48,0x37,0x39,0x6e,0x47,0x6c,0x71,0x4e,0x63,0x77,0x69,0x62,0x43,0x46,0x5a,0x51,0x34,0x66,0x4d,0x61,0x49,0x38,0x78,0x31,0x7a,0x76,0x64,0x55,0x4c,0x41,0x73,0x59,0x33,0x36,0x75,0x44,0x58,0x65,0x67,0x6b,0x54,0x32,0x50,0x42,0x4b,0x74]),_0x4f0dea=0xeb829,_0x3b6b52=0x3f58798f,_0x3c94c1=0x3f5f1a3f^_0x3b6b52,_0x14d0ac=window[_0x367ba0([0x44,0x61,0x74,0x65])][_0x367ba0([0x6e,0x6f,0x77])](),_0x5432a3=_0x3d5cc3[_0x367ba0([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x307170=new window[(_0x367ba0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x56b7a9=>{_0x5432a3[_0x367ba0([0x6f,0x6e,0x63,0x65])](_0x367ba0([0x72,0x65,0x61,0x64,0x79]),_0x56b7a9);}),_0x32aa0a={[_0x367ba0([0x6b,0x74,0x79])]:_0x367ba0([0x45,0x43]),[_0x367ba0([0x75,0x73,0x65])]:_0x367ba0([0x73,0x69,0x67]),[_0x367ba0([0x63,0x72,0x76])]:_0x367ba0([0x50,0x2d,0x32,0x35,0x36]),[_0x367ba0([0x78])]:_0x367ba0([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]),[_0x367ba0([0x79])]:_0x367ba0([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]),[_0x367ba0([0x61,0x6c,0x67])]:_0x367ba0([0x45,0x53,0x32,0x35,0x36])},_0x110b58=_0x5432a3[_0x367ba0([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x367ba0([0x67,0x65,0x74])](_0x367ba0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3339d9(){let _0x2c7746,_0x58ecaa=null,_0x4d0743=null;try{if(_0x110b58==_0x367ba0([0x47,0x50,0x4c]))return _0x367ba0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2c7746=_0x2de8c3(),!_0x2c7746)return _0x367ba0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2c7746[_0x367ba0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4d0743=_0x4d9408(_0x2c7746[_0x367ba0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2c7746[_0x367ba0([0x6a,0x74,0x69])])),await _0x3b37e2()?_0x44425e()?_0x354d4e()?_0x367ba0([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xa0ee43()?(_0x2c7746[_0x367ba0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x367ba0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x58ecaa=_0x2fbde8(_0x367ba0([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2c7746[_0x367ba0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x367ba0([0x74,0x72,0x69,0x61,0x6c])&&(_0x58ecaa=_0x2fbde8(_0x367ba0([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x122b58()):_0x367ba0([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x367ba0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x367ba0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x5483a6){return _0x367ba0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x354d4e(){const _0x28c844=[_0x367ba0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x367ba0([0x74,0x72,0x69,0x61,0x6c])][_0x367ba0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c7746[_0x367ba0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x14d0ac/0x3e8:0xe10*_0x3c94c1;return _0x2c7746[_0x367ba0([0x65,0x78,0x70])]<_0x28c844;}function _0x44425e(){const _0x25d0a8=_0x2c7746[_0x367ba0([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x25d0a8)return!0x1;if(_0x25d0a8[_0x367ba0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x367ba0([0x2a])))return!0x0;if(_0x25d0a8[_0x367ba0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x367ba0([0x52,0x48])))return!0x0;if(_0x25d0a8[_0x367ba0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x367ba0([0x52,0x52,0x48]))){if(_0x1d9d68())return!0x0;if(_0x56777d()||_0x4dbe18())return!0x0;}return!0x1;}function _0xa0ee43(){const _0x5de64b=_0x2c7746[_0x367ba0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5de64b||0x0==_0x5de64b[_0x367ba0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2b078c}=new URL(window[_0x367ba0([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5de64b[_0x367ba0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b078c))return!0x0;const _0x17326e=_0x2b078c[_0x367ba0([0x73,0x70,0x6c,0x69,0x74])](_0x367ba0([0x2e]));return _0x5de64b[_0x367ba0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4f9492=>_0x4f9492[_0x367ba0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x367ba0([0x2a])))[_0x367ba0([0x6d,0x61,0x70])](_0x1da743=>_0x1da743[_0x367ba0([0x73,0x70,0x6c,0x69,0x74])](_0x367ba0([0x2e])))[_0x367ba0([0x73,0x6f,0x6d,0x65])](_0x1ff259=>_0x17326e[_0x367ba0([0x65,0x76,0x65,0x72,0x79])]((_0x138947,_0x47d8a3)=>_0x1ff259[_0x47d8a3]===_0x138947||_0x1ff259[_0x47d8a3]===_0x367ba0([0x2a])));}function _0x122b58(){return _0x58ecaa&&_0x4d0743?new window[(_0x367ba0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x345a1d,_0x2623c5)=>{_0x58ecaa[_0x367ba0([0x74,0x68,0x65,0x6e])](_0x345a1d,_0x2623c5),_0x4d0743[_0x367ba0([0x74,0x68,0x65,0x6e])](_0x2f6531=>{_0x2f6531!=_0x367ba0([0x56,0x61,0x6c,0x69,0x64])&&_0x345a1d(_0x2f6531);},_0x2623c5);}):_0x58ecaa||_0x4d0743||_0x367ba0([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4d9408(_0x6b1a89,_0x3ece1a){return new window[(_0x367ba0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1ee1c1=>{if(_0x26f1f3())return _0x1ee1c1(_0x367ba0([0x56,0x61,0x6c,0x69,0x64]));_0x467108(),_0x5432a3[_0x367ba0([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x367ba0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x39d6c7=!0x1;const _0x237417=_0x1fadd2();function _0x48a07b(_0x54005b){return!!_0x54005b&&(typeof _0x54005b===_0x367ba0([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x54005b===_0x367ba0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x54005b[_0x367ba0([0x74,0x68,0x65,0x6e])]===_0x367ba0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x54005b[_0x367ba0([0x63,0x61,0x74,0x63,0x68])]===_0x367ba0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x217065(_0xb10ab9){_0x532ee9(_0xb10ab9)[_0x367ba0([0x74,0x68,0x65,0x6e])](_0x25b8b3=>{if(!_0x25b8b3||_0x25b8b3[_0x367ba0([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x367ba0([0x6f,0x6b]))return _0x367ba0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x8a25b0(_0x40d879(_0x237417+_0x3ece1a))!=_0x25b8b3[_0x367ba0([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x367ba0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x367ba0([0x56,0x61,0x6c,0x69,0x64]);})[_0x367ba0([0x74,0x68,0x65,0x6e])](_0x5719e0=>(_0xbd76cf(),_0x5719e0),()=>{const _0x13cb97=_0x3fab3e();return null==_0x13cb97?(_0xbd76cf(),_0x367ba0([0x56,0x61,0x6c,0x69,0x64])):_0x367ba0(_0x14d0ac-_0x13cb97>(0x1b54fd8f^_0x3b6b52)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x367ba0([0x74,0x68,0x65,0x6e])](_0x1ee1c1)[_0x367ba0([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1ee1c1(_0x367ba0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x34c10f=0x3f6e970f^_0x3b6b52;function _0xbd76cf(){const _0x53c4e4=_0x367ba0([0x6c,0x6c,0x63,0x74,0x2d])+_0x8a25b0(_0x40d879(_0x6b1a89)),_0x18cd9f=_0x517654(_0x8a25b0(window[_0x367ba0([0x4d,0x61,0x74,0x68])][_0x367ba0([0x63,0x65,0x69,0x6c])](_0x14d0ac/_0x34c10f)));window[_0x367ba0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x367ba0([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x53c4e4,_0x18cd9f);}function _0x3fab3e(){const _0x378524=_0x367ba0([0x6c,0x6c,0x63,0x74,0x2d])+_0x8a25b0(_0x40d879(_0x6b1a89)),_0x13f511=window[_0x367ba0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x367ba0([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x378524);return _0x13f511?window[_0x367ba0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x517654(_0x13f511),0x10)*_0x34c10f:null;}function _0x532ee9(_0x50d28f){return new window[(_0x367ba0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x46356e,_0x4610e4)=>{_0x50d28f[_0x367ba0([0x74,0x68,0x65,0x6e])](_0x46356e,_0x4610e4),window[_0x367ba0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4610e4,0x3f59ad4f^_0x3b6b52);});}}_0x5432a3[_0x367ba0([0x6f,0x6e])](_0x367ba0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1a4bed,_0x4a14b0)=>{if(_0x4a14b0[0x0]!=_0x6b1a89)return _0x1ee1c1(_0x367ba0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4a14b0[0x1]={..._0x4a14b0[0x1],[_0x367ba0([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x237417};},{[_0x367ba0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x367ba0([0x68,0x69,0x67,0x68])}),_0x5432a3[_0x367ba0([0x6f,0x6e])](_0x367ba0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xea474c=>{_0x48a07b(_0xea474c[_0x367ba0([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x39d6c7=!0x0,_0x217065(_0xea474c[_0x367ba0([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x367ba0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x367ba0([0x6c,0x6f,0x77])}),_0x307170[_0x367ba0([0x74,0x68,0x65,0x6e])](()=>{_0x39d6c7||_0x1ee1c1(_0x367ba0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x26f1f3(){return _0x5432a3[_0x367ba0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x367ba0([0x76,0x69,0x65,0x77])][_0x367ba0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x367ba0([0x61,0x75,0x74,0x6f]);}function _0x467108(){_0x5432a3[_0x367ba0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x367ba0([0x76,0x69,0x65,0x77])][_0x367ba0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x367ba0([0x61,0x75,0x74,0x6f]);}}function _0x2fbde8(_0x4631c9){const _0x1386f4=[new window[(_0x367ba0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3e25b2=>setTimeout(_0x3e25b2,0x3f514743^_0x3b6b52)),_0x307170[_0x367ba0([0x74,0x68,0x65,0x6e])](()=>new window[(_0x367ba0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3c1438=>{const _0x5496b1=0x3f587988^_0x3b6b52,_0x5a2fcf=_0x3d5cc3[_0x367ba0([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x588b72(){_0x5a2fcf[_0x367ba0([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x5496b1&&_0x3c1438();}_0x588b72(),_0x5a2fcf[_0x367ba0([0x6f,0x6e])](_0x367ba0([0x61,0x64,0x64]),_0x588b72);})),new window[(_0x367ba0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x245ac5=>{function _0x3726fd(){for(const _0x40b4f7 in window)if(window[_0x367ba0([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x367ba0([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x40b4f7))&&window[_0x40b4f7]==_0x4f0dea)return _0x245ac5();_0x5432a3[_0x367ba0([0x73,0x74,0x61,0x74,0x65])]!=_0x367ba0([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x367ba0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3726fd,0x3f586a07^_0x3b6b52);}_0x53a660(_0x367ba0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x3726fd();})];return window[_0x367ba0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x367ba0([0x72,0x61,0x63,0x65])](_0x1386f4)[_0x367ba0([0x74,0x68,0x65,0x6e])](()=>_0x4631c9);}async function _0x21bd4c(){if(await _0x307170,_0x53a660(_0x367ba0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x137c07=_0x3d5cc3[_0x367ba0([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x390d41=_0x3d5cc3[_0x367ba0([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])](_0x137c07[_0x367ba0([0x69,0x64])]),_0x38a7d0=_0x4a81cd(_0x367ba0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x38a7d0[_0x367ba0([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x137c07['id'],_0x390d41?_0x390d41['id']:null,!0x0),_0x38a7d0[_0x367ba0([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x367ba0([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x38a7d0[_0x367ba0([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x38a7d0[_0x367ba0([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x34a188,void(_0x38a7d0[_0x367ba0([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x34a188);}if(_0x53a660(_0x367ba0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x375944=_0x4a81cd(_0x367ba0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x375944[_0x367ba0([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x367ba0([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x375944[_0x367ba0([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x375944[_0x367ba0([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x34a188,_0x375944[_0x367ba0([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x34a188;}_0x5432a3[_0x367ba0([0x6d,0x6f,0x64,0x65,0x6c])][_0x367ba0([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x34a188,_0x5432a3[_0x367ba0([0x6d,0x6f,0x64,0x65,0x6c])][_0x367ba0([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x34a188,_0x5432a3[_0x367ba0([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x367ba0([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1d9d68(){return _0x53a660(_0x367ba0([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4a81cd(_0x367ba0([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x367ba0([0x73,0x74,0x61,0x74,0x65])]==_0x367ba0([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x56777d(){return _0x53a660(_0x367ba0([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 _0x4dbe18(){return _0x53a660(_0x367ba0([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x20d975(_0x3d080a){const _0x35013f=_0x390d94();_0x5432a3[_0x35013f]=_0x367ba0([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])+_0x3d080a,_0x3d080a[_0x367ba0([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x367ba0([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x390d94()]=_0x4f0dea),_0x3d080a!=_0x367ba0([0x56,0x61,0x6c,0x69,0x64])&&_0x21bd4c();}function _0x390d94(){const _0x531c03=window[_0x367ba0([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x367ba0([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x367ba0([0x6e,0x6f,0x77])]())[_0x367ba0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x367ba0([0x2e]),'');let _0xaab533=_0x367ba0([0x68]);for(let _0x395d45=0x0;_0x395d45<_0x531c03[_0x367ba0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x395d45+=0x2){let _0x192aff=window[_0x367ba0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x531c03[_0x367ba0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x395d45,_0x395d45+0x2));_0x192aff>=_0xf4d799[_0x367ba0([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x192aff-=_0xf4d799[_0x367ba0([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xaab533+=_0xf4d799[_0x192aff];}return _0xaab533;}function _0x2de8c3(){const _0x12f95e=_0x110b58[_0x367ba0([0x73,0x70,0x6c,0x69,0x74])](_0x367ba0([0x2e]));if(0x3!=_0x12f95e[_0x367ba0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x50f927(_0x12f95e[0x1]);function _0x50f927(_0x884e){const _0x188ce3=_0x117bdc(_0x884e);return _0x188ce3&&_0x5d0dfe()?_0x188ce3:null;function _0x5d0dfe(){const _0x3a1982=_0x188ce3[_0x367ba0([0x6a,0x74,0x69])],_0x7e1203=window[_0x367ba0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3a1982[_0x367ba0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3a1982[_0x367ba0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xb45455={..._0x188ce3,[_0x367ba0([0x6a,0x74,0x69])]:_0x3a1982[_0x367ba0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3a1982[_0x367ba0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xb45455[_0x367ba0([0x76,0x63])],_0x40d879(_0xb45455)==_0x7e1203;}}}async function _0x3b37e2(){let _0x2c2bb7=!0x0;try{const _0x237b7b=_0x110b58[_0x367ba0([0x73,0x70,0x6c,0x69,0x74])](_0x367ba0([0x2e])),[_0xcff72f,_0x553583,_0x3d459d]=_0x237b7b;return _0x50871a(_0xcff72f),await _0x2dc5c6(_0xcff72f,_0x553583,_0x3d459d),_0x2c2bb7;}catch(_0x3aa4c7){return!0x1;}function _0x50871a(_0x4885e3){const _0x26aec4=_0x117bdc(_0x4885e3);_0x26aec4&&_0x26aec4[_0x367ba0([0x61,0x6c,0x67])]==_0x367ba0([0x45,0x53,0x32,0x35,0x36])||(_0x2c2bb7=!0x1);}async function _0x2dc5c6(_0x32db5f,_0x44e013,_0x1de624){const _0x3d206d=window[_0x367ba0([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x367ba0([0x66,0x72,0x6f,0x6d])](_0x3c1ccf(_0x1de624),_0x3dab8e=>_0x3dab8e[_0x367ba0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5d1f53=new window[(_0x367ba0([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x367ba0([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x32db5f+_0x367ba0([0x2e])+_0x44e013),_0x399ebd=window[_0x367ba0([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x367ba0([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x399ebd)return;const _0x497182=await _0x399ebd[_0x367ba0([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x367ba0([0x6a,0x77,0x6b]),_0x32aa0a,{[_0x367ba0([0x6e,0x61,0x6d,0x65])]:_0x367ba0([0x45,0x43,0x44,0x53,0x41]),[_0x367ba0([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x367ba0([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x367ba0([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x399ebd[_0x367ba0([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x367ba0([0x6e,0x61,0x6d,0x65])]:_0x367ba0([0x45,0x43,0x44,0x53,0x41]),[_0x367ba0([0x68,0x61,0x73,0x68])]:{[_0x367ba0([0x6e,0x61,0x6d,0x65])]:_0x367ba0([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x497182,_0x3d206d,_0x5d1f53)||(_0x2c2bb7=!0x1);}}function _0x117bdc(_0x311d85){return _0x311d85[_0x367ba0([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x367ba0([0x65,0x79]))?JSON[_0x367ba0([0x70,0x61,0x72,0x73,0x65])](_0x3c1ccf(_0x311d85)):null;}function _0x3c1ccf(_0x35cf25){return window[_0x367ba0([0x61,0x74,0x6f,0x62])](_0x35cf25[_0x367ba0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x367ba0([0x2b]))[_0x367ba0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x367ba0([0x2f])));}function _0x40d879(_0x1ea152){let _0x29eece=0x1505;function _0x58b5c0(_0xb3f793){for(let _0x4ff746=0x0;_0x4ff746<_0xb3f793[_0x367ba0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4ff746++){const _0x26bc5b=_0xb3f793[_0x367ba0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4ff746);_0x29eece=(_0x29eece<<0x5)+_0x29eece+_0x26bc5b,_0x29eece&=_0x29eece;}}function _0x52a91a(_0x4dd408){Array[_0x367ba0([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4dd408)?_0x4dd408[_0x367ba0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x52a91a):_0x4dd408&&typeof _0x4dd408==_0x367ba0([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x367ba0([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4dd408)[_0x367ba0([0x73,0x6f,0x72,0x74])]()[_0x367ba0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3dde7a,_0x144ed3])=>{_0x58b5c0(_0x3dde7a),_0x52a91a(_0x144ed3);}):_0x58b5c0(window[_0x367ba0([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4dd408));}return _0x52a91a(_0x1ea152),_0x29eece>>>0x0;}function _0x8a25b0(_0x40e6df){return _0x40e6df[_0x367ba0([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x367ba0([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x367ba0([0x30]));}function _0x517654(_0xc839b3){return _0xc839b3[_0x367ba0([0x73,0x70,0x6c,0x69,0x74])]('')[_0x367ba0([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x367ba0([0x6a,0x6f,0x69,0x6e])]('');}function _0x53a660(_0x21c4e7){return _0x5432a3[_0x367ba0([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x367ba0([0x68,0x61,0x73])](_0x21c4e7);}function _0x4a81cd(_0x1da40c){return _0x5432a3[_0x367ba0([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x367ba0([0x67,0x65,0x74])](_0x1da40c);}function _0x34a188(){}function _0x367ba0(_0x4991e6){return _0x4991e6['map'](_0x81b65b=>String['fromCharCode'](_0x81b65b))['join']('');}_0x20d975(await _0x3339d9());}(this);}['createRevision'](_0x543e02){const _0x8ad09b=this['editor']['plugins']['get']('Users');return new h({'id':_0x543e02['id'],'name':_0x543e02['name'],'creator':_0x543e02['creatorId']?_0x8ad09b['getUser'](_0x543e02['creatorId']):null,'diffData':_0x543e02['diffData']||_0x543e02['data'],'authors':_0x543e02['authorsIds']['map'](_0x247a4a=>_0x8ad09b['getUser'](_0x247a4a)),'createdAt':new Date(_0x543e02['createdAt']),'attributes':_0x543e02['attributes'],'fromVersion':_0x543e02['fromVersion'],'toVersion':_0x543e02['toVersion']});}['addRevision'](_0x4ca36b,_0x22c465=0x0){this['_revisions']['add'](_0x4ca36b,_0x22c465);}['getRevision'](_0x5f1970){return this['_revisions']['get'](_0x5f1970);}['getRevisions'](_0x224d9c={'toJSON':!0x1}){const _0x599958=Array['from'](this['_revisions']);return _0x599958['reverse'](),_0x224d9c['toJSON']?_0x599958['map'](_0x2688fc=>_0x2688fc['toJSON']()):_0x599958;}['getIndex'](_0x505ef2){return this['_revisions']['getIndex'](_0x505ef2);}['getEarlierVisibleRevision'](_0x1a0240){const [,_0x2db6bc]=this['getRevisionsIterator'](_0x1a0240,{'direction':'earlier'});return _0x2db6bc;}['getLaterVisibleRevision'](_0x2fa1f1){const [,_0x17c9fd]=this['getRevisionsIterator'](_0x2fa1f1,{'direction':'later'});return _0x17c9fd;}['getRevisionsInDiff'](_0x56705e){const _0x4006de=[];for(const _0xe2e4d3 of this['getRevisionsIterator'](_0x56705e['newRevisionId']))if(_0x4006de['push'](_0xe2e4d3),_0xe2e4d3['id']===_0x56705e['oldRevisionId'])break;return _0x4006de;}*['getRevisionsIterator'](_0x2ad099,{direction:_0x5b137c='earlier',filter:_0x5ab93b=()=>!0x0}={}){const _0x2b163d='earlier'===_0x5b137c?0x1:-0x1;let _0x4e8c79=this['_revisions']['get'](_0x2ad099),_0x5de512=this['getIndex'](_0x4e8c79);for(yield _0x4e8c79;_0x4e8c79;){if(_0x5de512+=_0x2b163d,_0x4e8c79=this['getRevision'](_0x5de512),!_0x4e8c79)return;_0x5ab93b(_0x4e8c79)&&(yield _0x4e8c79);}}}class V extends _0x365de9{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x403b02,'c'],[_0x4383c7,'a'],[_0x53b123,'e'],[_0x155b85,'r'],[_0x322b8c,'u']]);['_typeCharToViewClass']=new Map([['c',_0x403b02],['a',_0x4383c7],['e',_0x53b123],['r',_0x155b85],['u',_0x322b8c]]);async['loadRevisionData'](_0x2fdee0,_0xa4f0b3){if(_0x2fdee0['diffData']||!_0xa4f0b3)return;const _0x1af947=this['editor']['config']['get']('collaboration.channelId'),_0xa2bdb7=await _0xa4f0b3['getRevision']({'channelId':_0x1af947,'revisionId':_0x2fdee0['id']});_0x2fdee0['diffData']=_0xa2bdb7['diffData'];}['getRevisionDocumentData'](_0x4e00cb){const _0x511612={};for(const _0x316c15 in _0x4e00cb['diffData']){if(_0x4e00cb['diffData'][_0x316c15]['attachChange']&&!_0x4e00cb['diffData'][_0x316c15]['attachChange']['isAttached'])continue;const _0x34e79a=this['_removeRevisionMarkers'](JSON['parse'](_0x4e00cb['diffData'][_0x316c15]['insertions'])),_0x5a2bc9=this['editor']['editing']['view']['document'],_0x51dd26=new _0xd22d4b(_0x5a2bc9,_0x34e79a['map'](_0x17ac78=>this['_getViewFromDiffObj'](_0x17ac78,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x511612[_0x316c15]=this['editor']['data']['processor']['toData'](_0x51dd26),this['editor']['data']['processor']['useFillerType']('default');}return _0x511612;}['getRevisionRootsAttributes'](_0x315b9b){const _0x3fd8cb={};for(const _0x3b25d3 in _0x315b9b['diffData'])_0x315b9b['diffData'][_0x3b25d3]['attachChange']&&!_0x315b9b['diffData'][_0x3b25d3]['attachChange']['isAttached']||(_0x3fd8cb[_0x3b25d3]=_0x315b9b['diffData'][_0x3b25d3]['attributesAfter']||{});return _0x3fd8cb;}['_getTypeCharForViewElement'](_0x1c8a2a){return this['_viewClassToTypeChar']['get'](_0x1c8a2a['constructor']);}['_getViewFromDiffObj'](_0x57fc2a,_0x1914c0){const _0x2ad6d2=this['editor']['editing']['view']['document'];if('string'==typeof _0x57fc2a)return new _0x10e066(_0x2ad6d2,_0x57fc2a);{let _0x2ce483,_0x131f25;_0x131f25='u'==_0x57fc2a['type']||'r'==_0x57fc2a['type']?[]:_0x57fc2a['children']['map'](_0x559c75=>this['_getViewFromDiffObj'](_0x559c75,_0x1914c0));const _0x7d6eb5=this['_typeCharToViewClass']['get'](_0x57fc2a['type'])||_0x6132e9,_0xae2d38=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x2ce483=new _0x7d6eb5(_0x2ad6d2,_0x57fc2a['name'],_0x57fc2a['attributes'],_0x131f25),'u'==_0x57fc2a['type']){const _0x6207a4=_0x57fc2a['children'][0x0];if(_0x2ce483['render']=function(_0x3ef134){const _0x3eb289=_0x3ef134['createElement']('div');return _0x3eb289['innerHTML']=_0x6207a4,_0x3eb289['childNodes'][0x0];},_0x1914c0){const _0x464df5=new _0xd22d4b(_0x2ad6d2);_0x464df5['_appendChild'](_0x2ce483);const _0x372e2f=Array['from'](_0xae2d38['viewChildrenToDom'](_0x464df5,{'bind':!0x1})),_0xe5912b=_0xae2d38['domDocument']['createElement']('div');_0xe5912b['append'](..._0x372e2f),_0x2ce483=Array['from'](_0xae2d38['domChildrenToView'](_0xe5912b))[0x0];}}else{if('r'==_0x57fc2a['type']){const _0x1a03f9=_0x57fc2a['children'][0x0];if(_0x2ce483['render']=function(_0x5a05c6){_0x5a05c6['innerHTML']=_0x1a03f9;},_0x1914c0){const _0x254ca8=new _0xd22d4b(_0x2ad6d2);_0x254ca8['_appendChild'](_0x2ce483);const _0x1d0bbb=Array['from'](_0xae2d38['viewChildrenToDom'](_0x254ca8,{'bind':!0x1})),_0x589db0=_0xae2d38['domDocument']['createElement']('div');_0x589db0['append'](..._0x1d0bbb);const _0x14fb62=Array['from'](_0xae2d38['domChildrenToView'](_0x589db0));_0x14fb62['length']>0x1?_0x2ce483['_appendChild'](_0x14fb62):_0x2ce483=_0x14fb62[0x0];}}}if(_0x57fc2a['customProperties']){for(const [_0x230ed4,_0x4afd63]of _0x57fc2a['customProperties'])_0x2ce483['_setCustomProperty'](_0x230ed4,_0x4afd63);}const _0x3abc58=_0x57fc2a['fillerOffset']||null;return _0x2ce483['getFillerOffset']=()=>_0x3abc58,_0x2ce483;}}['_makeModelFromViewString'](_0x73889b){const _0x216232=JSON['parse'](_0x73889b),_0x411340=this['editor']['editing']['view']['document'],_0x47f181=new _0xd22d4b(_0x411340,_0x216232['map'](_0xe31847=>this['_getViewFromDiffObj'](_0xe31847,!0x0)));return this['editor']['data']['toModel'](_0x47f181);}['_removeRevisionMarkers'](_0x24003d){return(_0x24003d=_0x24003d['filter'](_0x512509=>!_0x512509['name']||'revision-start'!==_0x512509['name']&&'revision-end'!==_0x512509['name']))['forEach'](_0x528bbd=>{'string'!=typeof _0x528bbd&&(_0x528bbd['children']=this['_removeRevisionMarkers'](_0x528bbd['children']),_0x528bbd['attributes']=_0x528bbd['attributes']['filter'](_0x28b956=>!_0x28b956[0x0]['startsWith']('data-revision-')));}),_0x24003d;}}function g(_0x58ef28,_0x4fe93d,_0xd1bffd){const t=_0x58ef28['t'];switch(_0x4fe93d){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'},_0xd1bffd);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0xd1bffd);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}class u extends _0x365de9{['licenseKey'];['_licenseKeyCheckInterval'];['currentRevision']=null;['repository'];['adapter']=null;['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_utils'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x5b69eb,I,V,_0xb7f2c2];}constructor(_0x490546){super(_0x490546),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new x(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x1ce8d4=_0x1fadd2();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x1ce8d4},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x39c2c6=this['repository']['getRevision'](0x0),_0x1e79e2=_0x39c2c6&&null===_0x39c2c6['creator']?_0x39c2c6:null;if(this['_continueCurrentRevision']=!!_0x1e79e2&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0xd80478=this['_source']['getCurrentRevisionId'](),_0x42434f=this['repository']['getRevision'](_0xd80478);if(_0x42434f)this['_startingVersion']=_0x42434f['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x176e8c=this['_source']['history']['_operations']['find'](_0x202f3d=>!_0x202f3d['_isInit']),_0x276f0c=_0x176e8c?_0x176e8c['baseVersion']:this['_source']['history']['version'];_0x39c2c6?(_0x39c2c6['toVersion']<_0x276f0c&&_0x39c2c6['_update']({'toVersion':_0x276f0c}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x1e79e2['id'],this['_startingVersion']=_0x1e79e2['fromVersion']):(this['_startingVersion']=_0x39c2c6['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x276f0c,this['_continueCurrentRevision']=!0x1);}}else _0x1e79e2&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x1e79e2['toVersion'],this['editor']['model']['document']['history']['version']),_0x1e79e2['fromVersion']===_0x1e79e2['toVersion']?(0x0!==_0x1e79e2['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x1e79e2['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x1e79e2['id'],this['_startingVersion']=_0x1e79e2['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',_0x4cddde=>!_0x4cddde),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2ae215=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5bcce7;for(const _0x1898d8 in _0x2ae215){const _0x42e5fe=_0x1898d8,_0x524e13=_0x2ae215[_0x42e5fe];if('revisionHistoryLicenseKeyValid'==_0x524e13||'revisionHistoryLicenseKeyInvalid'==_0x524e13||'revisionHistoryLicenseKeyExpired'==_0x524e13||'revisionHistoryLicenseKeyDomainLimit'==_0x524e13||'revisionHistoryLicenseKeyNotAllowed'==_0x524e13||'revisionHistoryLicenseKeyEvaluationLimit'==_0x524e13||'revisionHistoryLicenseKeyTrialLimit'==_0x524e13||'revisionHistoryLicenseKeyUsageLimit'==_0x524e13){delete _0x2ae215[_0x42e5fe],_0x5bcce7=_0x524e13,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x5bcce7&&_0x2ae215['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x5bcce7&&_0x2ae215['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x5bcce7&&_0x2ae215['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x5bcce7&&_0x2ae215['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x5bcce7&&_0x2ae215['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x5bcce7&&_0x2ae215['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x5bcce7&&_0x2ae215['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x94f087=this['repository']['getRevision'](0x0),_0x1b4d61=await this['getRevisionDocumentData'](_0x94f087),_0x1f554b=await this['getRevisionRootsAttributes'](_0x94f087);this['_replaceEditorDataWithRevisionData'](_0x1b4d61,_0x1f554b);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x4c0d24){this['_source']=_0x4c0d24;}async['update'](){const _0x7eec8c=await this['_source']['getLatestVersion']();if(_0x7eec8c>this['currentRevision']['toVersion']){await this['_loadState']();const _0xa8e929=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x7eec8c});_0xa8e929['authors']=_0xa8e929['authorsIds']['map'](_0x1bfd58=>this['editor']['plugins']['get']('Users')['getUser'](_0x1bfd58)),this['currentRevision']['_update'](_0xa8e929);}}async['saveRevision'](_0x4cb4c3={},_0x449a62=null){const _0x4176c1=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x449a62>this['currentRevision']['toVersion']&&(_0x449a62=null),null===_0x449a62&&(_0x449a62=await this['_source']['getLatestVersion']());const _0x4bb22a=this['_getFromVersion'](_0x449a62),_0x5586f8=this['buildRevisionData']({'from':_0x4bb22a,'to':_0x449a62});if(this['currentRevision']['toVersion']<_0x449a62){const _0x21c678=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x449a62,'to':_0x449a62});_0x21c678['authors']=[],_0x21c678['authorsIds']=[],_0x21c678['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x21c678,!0x0),delete _0x21c678['authors'],_0x4176c1['push'](_0x21c678);}_0x4cb4c3['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x4cb4c3['name']=_0x4cb4c3['name']||null,_0x4cb4c3['id']=_0x4cb4c3['id']||_0x1fadd2(),_0x4cb4c3={..._0x4cb4c3,..._0x5586f8};const _0x4df6ad=this['addRevisionData'](_0x4cb4c3);_0x4176c1['push'](_0x4cb4c3);const _0x9a0ddc=this['repository']['getIndex'](_0x4df6ad);if(0x0!==_0x9a0ddc){const _0x2ea19c=this['repository']['getRevision'](_0x9a0ddc-0x1);if(_0x2ea19c['fromVersion']!==_0x449a62){const _0x38e2a8=this['_revisionDataBuilder']['getData'](_0x449a62,_0x2ea19c['toVersion']),_0x27fac7={'id':_0x2ea19c['id'],'diffData':_0x38e2a8['diffData'],'authorsIds':_0x38e2a8['authorsIds'],'authors':_0x38e2a8['authorsIds']['map'](_0x482c38=>this['editor']['plugins']['get']('Users')['getUser'](_0x482c38)),'fromVersion':_0x449a62};_0x2ea19c===this['currentRevision']&&(_0x27fac7['createdAt']=new Date(_0x4cb4c3['createdAt']['getTime']()+0xa)),_0x2ea19c['_update'](_0x27fac7,!0x0),delete _0x27fac7['authors'],_0x4176c1['push'](_0x27fac7);}}if(this['adapter']){for(const _0x3faa38 of _0x4176c1)this['_bufferUpdate'](_0x3faa38['id'],_0x3faa38,!0x0);this['sendBufferedUpdates']();}return _0x4df6ad;}['addRevisionData'](_0x45413d){const _0x2ea1d1=this['repository']['createRevision'](_0x45413d);return this['adapter']&&_0x2ea1d1['on']('_update',(_0xb56dfe,_0x3a2afa,_0x5c263e)=>{_0x5c263e||(this['_bufferUpdate'](_0x3a2afa['id'],_0x3a2afa,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x2ea1d1,this['_findInsertionIndex'](_0x2ea1d1)),_0x2ea1d1;}async['getRevisionDocumentData'](_0xd2ba56){return await this['_utils']['loadRevisionData'](_0xd2ba56,this['adapter']),this['_utils']['getRevisionDocumentData'](_0xd2ba56);}async['getRevisionRootsAttributes'](_0x54aeed){return await this['_utils']['loadRevisionData'](_0x54aeed,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x54aeed);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x32e808=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x41a22b=0x0;_0x41a22b<_0x32e808['length'];_0x41a22b++){const _0x4380ba=_0x32e808[_0x41a22b];let _0x755782=!0x1;for(const _0x4d736f of Object['keys'](_0x4380ba))void 0x0===_0x4380ba[_0x4d736f]?delete _0x4380ba[_0x4d736f]:'id'!==_0x4d736f&&(_0x755782=!0x0);_0x755782||(_0x32e808[_0x41a22b]=null);}if(_0x32e808=_0x32e808['filter'](_0xd9da25=>null!==_0xd9da25),!_0x32e808['length'])return;for(let _0x1f1829=0x0;_0x1f1829<_0x32e808['length'];_0x1f1829++){const _0x9f4b11=_0x32e808[_0x1f1829];void 0x0!==_0x9f4b11['fromVersion']&&void 0x0===_0x9f4b11['toVersion']&&(_0x9f4b11['toVersion']=this['repository']['getRevision'](_0x9f4b11['id'])['toVersion']),void 0x0!==_0x9f4b11['toVersion']&&void 0x0===_0x9f4b11['fromVersion']&&(_0x9f4b11['fromVersion']=this['repository']['getRevision'](_0x9f4b11['id'])['fromVersion']);}const _0x54d5fc=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x32e808,_0x54d5fc)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x4cb4fa=>{if(_0x4cb4fa){for(const _0x351fa5 of _0x4cb4fa)this['setRevisionData']({'id':_0x351fa5['id'],'createdAt':_0x351fa5['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x31dc2a=null,from:_0x4109c8=null,to:_0x5cee30=null}){_0x4109c8=null!==_0x4109c8?_0x4109c8:_0x31dc2a['fromVersion'],_0x5cee30=null!==_0x5cee30?_0x5cee30:_0x31dc2a['toVersion'];const _0x3d13c9=this['_revisionDataBuilder']['getData'](_0x4109c8,_0x5cee30),_0x4763a3={'diffData':_0x3d13c9['diffData'],'authorsIds':_0x3d13c9['authorsIds'],'fromVersion':_0x4109c8,'toVersion':_0x5cee30};if(!_0x31dc2a||_0x5cee30!==_0x31dc2a['toVersion']){const _0x56362d=_0x5cee30-0x1,_0x531422=this['_source']['history']['getOperation'](_0x56362d);_0x4763a3['createdAt']=_0x531422&&_0x531422['createdAt']||new Date();}if(this['_loadedStateData']&&_0x4109c8===this['_loadedStateData']['fromVersion']){for(const _0x536fe8 of this['_loadedStateData']['authors'])_0x4763a3['authorsIds']['includes'](_0x536fe8['id'])||_0x4763a3['authorsIds']['push'](_0x536fe8['id']);}return _0x4763a3;}['_bufferUpdate'](_0x2c9f45,_0x419278,_0x497c64){if(this['_bufferedUpdates']['has'](_0x2c9f45)){const _0x4a9050=this['_bufferedUpdates']['get'](_0x2c9f45);_0x419278=_0x497c64?{..._0x4a9050,..._0x419278}:{..._0x419278,..._0x4a9050};}this['_bufferedUpdates']['set'](_0x2c9f45,_0x419278);}['setRevisionData'](_0x4051d5){const _0x32d630=this['repository']['getRevision'](_0x4051d5['id']);if(_0x4051d5['createdAt']&&(_0x4051d5['createdAt']=new Date(_0x4051d5['createdAt'])),_0x4051d5['authorsIds']){const _0x9df6a2=this['editor']['plugins']['get']('Users');_0x4051d5['authors']=_0x4051d5['authorsIds']['map'](_0x4e21d2=>_0x9df6a2['getUser'](_0x4e21d2));}_0x32d630['_update'](_0x4051d5,!0x0);}['_createInitialRevision'](_0x5866f2){const _0x325f33=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x325f33)this['_initialRevisionId']=_0x325f33['id'];else{const _0x766106=!this['editor']['model']['document']['roots']['find'](_0x564d72=>this['editor']['model']['hasContent'](_0x564d72)),_0x34df5d=this['editor']['plugins']['get']('Users')['me']['id'],_0x596df1=g(this['editor']['locale'],_0x766106?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x5866f2,'to':_0x5866f2,'id':this['_initialRevisionId'],'name':_0x596df1,'creatorId':_0x34df5d});}}['_createCurrentRevision'](_0x4bb640){const _0x594cfe=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x594cfe),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x4bb640,'to':_0x4bb640,'id':_0x594cfe,'name':'','creatorId':null}));}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_utils']['loadRevisionData'](this['currentRevision'],this['adapter']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}['_replaceEditorDataWithRevisionData'](_0x219dd6,_0x337436){let _0x2dee6a=this['editor']['config']['get']('initialData'),_0x53acbe=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x2dee6a){_0x2dee6a={};for(const _0x23147e of this['editor']['model']['document']['getRootNames']())_0x2dee6a[_0x23147e]='';}if('string'==typeof _0x2dee6a&&(_0x2dee6a={'main':_0x2dee6a}),void 0x0===_0x53acbe){_0x53acbe={};for(const _0x1438c6 of this['editor']['model']['document']['getRootNames']())_0x53acbe[_0x1438c6]={};}let _0x5b03a9=!0x1;const _0x401f6e=Object['keys'](_0x2dee6a),_0x1bf145=Object['keys'](_0x219dd6);for(const _0x35e52b of _0x401f6e){if(_0x2dee6a[_0x35e52b]!==_0x219dd6[_0x35e52b]&&''!==_0x2dee6a[_0x35e52b]['trim']()){_0x5b03a9=!0x0;break;}if(!_0x18b03f(_0x53acbe[_0x35e52b],_0x337436[_0x35e52b])&&Object['keys'](_0x53acbe[_0x35e52b])['length']>0x0){_0x5b03a9=!0x0;break;}}_0x5b03a9||(_0x5b03a9=_0x1bf145['some'](_0x4a06c9=>!this['editor']['model']['document']['getRoot'](_0x4a06c9))),_0x5b03a9&&_0x29b35b('editor-initial-data-replaced-with-revision-data',{'editorData':_0x2dee6a,'editorRootsAttributes':_0x53acbe,'revisionData':_0x219dd6,'revisionRootsAttributes':_0x337436}),this['editor']['config']['set']('initialData',_0x219dd6),this['editor']['config']['set']('rootsAttributes',_0x337436);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x1ac69e=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x1ac69e['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x2c0b68){const _0x5e0862=this['repository']['getRevisions']();_0x5e0862['reverse']();let _0x5a246a=0x0;for(;_0x5a246a<_0x5e0862['length'];){const _0x5647d9=_0x5e0862[_0x5a246a];if(_0x5647d9===this['currentRevision']){_0x5a246a++;continue;}if(_0x5647d9['id']===this['_initialRevisionId'])break;const _0x47b748=_0x2c0b68['toVersion']-_0x5647d9['toVersion']||_0x2c0b68['fromVersion']-_0x5647d9['fromVersion'];if(_0x47b748>0x0)break;if(_0x47b748<0x0)_0x5a246a++;else{if(!_0x2c0b68['creator']&&_0x5647d9['creator'])break;if(_0x5647d9['creator']||!_0x2c0b68['creator']){if(_0x2c0b68['createdAt']>_0x5647d9['createdAt'])break;_0x5a246a++;}else _0x5a246a++;}}return _0x5a246a;}['_getFromVersion'](_0x2383d7){const _0x502257=this['repository']['getRevisions']();_0x502257['reverse'](),_0x502257['shift']();const _0x2cd34a=_0x502257['find'](_0x2dfe72=>_0x2dfe72['toVersion']<=_0x2383d7)['toVersion'];return _0x2cd34a<this['_startingVersion']?this['_startingVersion']:_0x2cd34a;}['_makeRevision']({name:_0x5409c8,from:_0x15df94,to:_0x488a28,creatorId:_0x3c81a8,id:_0x285241}){const _0x3c2b84=this['buildRevisionData']({'from':_0x15df94,'to':_0x488a28});_0x3c2b84['name']=_0x5409c8,_0x3c2b84['creatorId']=_0x3c81a8,_0x3c2b84['id']=_0x285241;const _0x1e7ff1=this['addRevisionData'](_0x3c2b84);return this['adapter']&&this['_bufferUpdate'](_0x3c2b84['id'],_0x3c2b84,!0x0),_0x1e7ff1;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class x{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x379881){this['editor']=_0x379881,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'](_0x4768c1){this['source']=_0x4768c1;const _0x2fcd7c=new Map(),_0x3c1766=new Map(),_0x4419b4=this['editor']['model']['document']['roots']['map'](_0x54b53f=>_0x54b53f['rootName']);for(const _0x5b9dc1 of _0x4419b4){const _0x3eb9f2=this['editor']['model']['document']['getRoot'](_0x5b9dc1),_0x1942e3=N(_0x3eb9f2);_0x2fcd7c['set'](_0x5b9dc1,_0x1942e3),_0x3c1766['set'](_0x5b9dc1,Object['fromEntries'](_0x3eb9f2['getAttributes']()));}const _0x1af1d0=Array['from'](this['editor']['model']['markers'])['map'](_0x3d172d=>[_0x3d172d['name'],_0x3d172d['getRange']()]),_0x3179fb=this['source']['version'];this['_saveMetaData'](_0x3179fb,_0x2fcd7c,_0x1af1d0,_0x3c1766),this['_startingRevisionId']=this['_revisionId'];const _0x1dcddd=new Map(),_0x252814=new Map();for(const _0x5a51eb of _0x4419b4){const _0xec6e5a=P(_0x5a51eb);_0x1dcddd['set'](_0x5a51eb,_0xec6e5a),_0x252814['set'](_0x5a51eb,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x1dcddd,[],_0x252814);}['getData'](_0x445297,_0x35fe19){if(this['_lastFrom']===_0x445297&&this['_lastTo']<=_0x35fe19)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x35fe19,!0x0);else{if(!this['_savedMetaData']['has'](_0x445297)){const _0x43bd1f=this['_getPreviousFrom'](_0x445297);this['_calculateMetaData'](_0x43bd1f,_0x445297,!0x1);}this['_calculateMetaData'](_0x445297,_0x35fe19,!0x0);}return this['_lastFrom']=_0x445297,this['_lastTo']=_0x35fe19,this['_getState']();}['loadState'](_0x3cf77f){const _0x24fd27=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x3cf77f['fromVersion'],this['_lastTo']=_0x3cf77f['toVersion'];for(const _0x4b1d5f in _0x3cf77f['diffData']){const _0x30ffcf=_0x3cf77f['diffData'][_0x4b1d5f]['attachChange'],_0xe3e917=_0x344f71(_0x3cf77f['diffData'][_0x4b1d5f]['attributesBefore'])||{},_0x3f46fc=_0x24fd27['_makeModelFromViewString'](_0x3cf77f['diffData'][_0x4b1d5f]['deletions']);_0x3f46fc['rootName']=_0x4b1d5f,_0x3f46fc['_isAttached']=!_0x30ffcf||!_0x30ffcf['isAttached'],_0x3f46fc['isAttached']=()=>_0x3f46fc['_isAttached'],this['_baseRoots']['set'](_0x4b1d5f,_0x3f46fc),this['_baseRootsAttributes']['set'](_0x4b1d5f,_0xe3e917),_0x30ffcf&&this['_touchedRoots']['set'](_0x4b1d5f,_0x30ffcf);const _0x4fd316=this['_makeIdsRoot'](_0x3f46fc);this['_baseIdsRoots']['set'](_0x4b1d5f,_0x4fd316);for(const [_0x1a95ef,_0x3feabc]of _0x3f46fc['markers']){if(!_0x1a95ef['startsWith']('revision:'))continue;const _0xc438f3=_0x1a95ef['split'](':')[0x2];for(const _0x5e473f of _0x3feabc['getWalker']({'singleCharacters':!0x0})){const _0x458c4e=this['_getVidAttributeName'](_0x5e473f),_0x47473b='elementEnd'==_0x5e473f['type']?_0x5e473f['previousPosition']['path']['slice'](0x0,-0x1):_0x5e473f['previousPosition']['path'],_0x919f90=_0x4fd316['getNodeByPath'](_0x47473b)['getAttribute'](_0x458c4e);this['_touched']['set'](_0x919f90,{'userId':_0xc438f3});}}}this['_startingRevisionId']=this['_revisionId'];const _0x6fbd01=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x5522a1=>!this['_touched']['has'](_0x5522a1));let _0x655431=0x0;const _0x7edec6=new Map();for(const _0x51cc15 in _0x3cf77f['diffData']){const _0x2dac46=_0x3cf77f['diffData'][_0x51cc15]['attachChange'],_0x21c421=_0x344f71(_0x3cf77f['diffData'][_0x51cc15]['attributesAfter'])||{},_0x35fe57=_0x24fd27['_makeModelFromViewString'](_0x3cf77f['diffData'][_0x51cc15]['insertions']);_0x35fe57['rootName']=_0x51cc15,_0x35fe57['_isAttached']=!_0x2dac46||_0x2dac46['isAttached'],_0x35fe57['isAttached']=()=>_0x35fe57['_isAttached'],this['_diffRoots']['set'](_0x51cc15,_0x35fe57),this['_diffRootsAttributes']['set'](_0x51cc15,_0x21c421);const _0x47b740=this['_makeIdsRoot'](_0x35fe57,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x51cc15,_0x47b740),_0x7edec6['set'](_0x51cc15,_0x35fe57['isAttached']()?_0x21c421:{});for(const [_0x1d5f2a,_0x186030]of _0x35fe57['markers']){if(!_0x1d5f2a['startsWith']('revision:'))continue;const _0x1ae549=_0x1d5f2a['split'](':')[0x2];for(const _0x500963 of _0x186030['getWalker']({'singleCharacters':!0x0})){const _0x3fde9a=this['_getVidAttributeName'](_0x500963),_0x1510ee=this['_revisionId']++,_0x7f0968='elementEnd'==_0x500963['type']?_0x500963['previousPosition']['path']['slice'](0x0,-0x1):_0x500963['previousPosition']['path'];_0x47b740['getNodeByPath'](_0x7f0968)['_setAttribute'](_0x3fde9a,_0x1510ee),this['_touched']['set'](_0x1510ee,{'userId':_0x1ae549});}}for(const _0x52689d of this['editor']['model']['createRangeIn'](_0x35fe57)['getWalker']({'singleCharacters':!0x0})){const _0x5e0800=this['_getVidAttributeName'](_0x52689d),_0x306af8='elementEnd'==_0x52689d['type']?_0x52689d['previousPosition']['path']['slice'](0x0,-0x1):_0x52689d['previousPosition']['path'],_0x18fded=_0x47b740['getNodeByPath'](_0x306af8);_0x18fded['getAttribute'](_0x5e0800)>0x0||_0x18fded['_setAttribute'](_0x5e0800,_0x6fbd01[_0x655431++]);}for(const [_0xa64252,_0x4905cd]of _0x35fe57['markers'])_0xa64252['startsWith']('revision:')||this['_markers']['set'](_0xa64252,_0x4905cd);}const _0x4a9b46=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0x4a9b46),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x4a9b46,0x1));const _0xf7f520=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0xf7f520),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0xf7f520,0x1));const _0x491c65=Array['from'](this['_diffRoots'])['map'](([_0x5f51ed,_0x413cbd])=>[_0x5f51ed,N(_0x413cbd)]);this['_saveMetaData'](this['_lastTo'],_0x491c65,this['_markers'],_0x7edec6);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x53a8d8,_0x27750b,_0x1adc30,_0x522b9d){const _0xa1e04a=new Map(_0x27750b),_0x220221=new Map(_0x344f71(_0x522b9d)),_0x128979=new Map();for(const [_0x173c06,_0x387849]of _0x1adc30)_0x128979['set'](_0x173c06,{'start':_0x387849['start']['clone'](),'end':_0x387849['end']['clone'](),'rootName':_0x387849['root']['rootName']});this['_savedMetaData']['set'](_0x53a8d8,{'roots':_0xa1e04a,'markers':_0x128979,'rootsAttributes':_0x220221});}['_removeMetaData'](_0x4150d5){this['_savedMetaData']['delete'](_0x4150d5);}['_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'](_0x1ac02b,_0x1fc4fb=null){let _0x4cb292=null;_0x1ac02b['is']('documentFragment')||(_0x4cb292=new ut(_0x1ac02b['name'],{'vid_start':null===_0x1fc4fb?this['_revisionId']++:_0x1fc4fb++}));const _0x2eef64=[];for(const _0x47c2ef of _0x1ac02b['getChildren']())if(_0x47c2ef['is']('element')){_0x2eef64['push'](this['_makeIdsRoot'](_0x47c2ef,_0x1fc4fb));const _0x3e13a3=_0x2eef64[_0x2eef64['length']-0x1];null!==_0x1fc4fb&&(_0x1fc4fb=_0x3e13a3['is']('element','$text')?_0x3e13a3['getAttribute']('vid')+0x1:_0x3e13a3['getAttribute']('vid_end')+0x1);}else{for(let _0x4c3505=0x0;_0x4c3505<_0x47c2ef['offsetSize'];_0x4c3505++)_0x2eef64['push'](new ut('$text',{'vid':null===_0x1fc4fb?this['_revisionId']++:_0x1fc4fb++}));}if(_0x1ac02b['is']('documentFragment')){const _0x29afad=P(_0x1ac02b['rootName']);return _0x29afad['_insertChild'](0x0,_0x2eef64),_0x29afad;}return _0x4cb292['_setAttribute']('vid_end',null===_0x1fc4fb?this['_revisionId']++:_0x1fc4fb++),_0x4cb292['_insertChild'](0x0,_0x2eef64),_0x4cb292;}['_calculateMetaData'](_0xb7f379,_0x54a1cd,_0x632830){this['_reset']();const {roots:_0x571a53,markers:_0x4af947,rootsAttributes:_0x59f61e}=this['_savedMetaData']['get'](_0xb7f379);this['_baseRoots']=new Map(_0x571a53),this['_baseRootsAttributes']=new Map(_0x344f71(_0x59f61e));for(const [_0xf51f40,_0x1f277f]of this['_baseRoots'])if('$graveyard'!==_0xf51f40&&(this['_diffRoots']['set'](_0xf51f40,N(_0x1f277f)),this['_diffRootsAttributes']=new Map(_0x344f71(_0x59f61e)),_0x632830)){const _0x10537b=this['_revisionId'];this['_idsRoots']['set'](_0xf51f40,this['_makeIdsRoot'](_0x1f277f)),this['_baseIdsRoots']['set'](_0xf51f40,this['_makeIdsRoot'](_0x1f277f,_0x10537b));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x632830&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x5baea4,_0x3f2c41]of _0x4af947){const _0x3fe374=this['_baseRoots']['get'](_0x3f2c41['rootName']),_0x35324e=this['_diffRoots']['get'](_0x3f2c41['rootName']),_0x4e6bff=new ft(this['_fixPosition'](_0x3f2c41['start'],_0x3fe374),this['_fixPosition'](_0x3f2c41['end'],_0x3fe374)),_0x37441a=this['_fixRange'](_0x4e6bff,_0x35324e);_0x3fe374['markers']['set'](_0x5baea4,_0x4e6bff),this['_markers']['set'](_0x5baea4,_0x37441a);}this['_applyOperations'](_0xb7f379,_0x54a1cd,_0x632830);}['_applyOperations'](_0x5e3699,_0x5207f8,_0x3b4128){for(const _0xf17ae1 of this['source']['getOperations'](_0x5e3699,_0x5207f8))this['_handleOperation'](_0xf17ae1,_0x3b4128);for(const _0x4f0744 of this['_diffRoots']['values']())_0x4f0744['markers']['clear']();for(const [_0x5a2410,_0x2761d4]of this['_markers']){this['_diffRoots']['get'](_0x2761d4['root']['rootName'])['markers']['set'](_0x5a2410,_0x2761d4['clone']());}const _0x5df46e=new Map(),_0x5084f9=new Map();for(const [_0x3c4fe,_0x4b70b8]of this['_diffRoots'])_0x5df46e['set'](_0x3c4fe,N(_0x4b70b8)),_0x5084f9['set'](_0x3c4fe,this['_diffRootsAttributes']['get'](_0x3c4fe));this['_saveMetaData'](_0x5207f8,_0x5df46e,this['_markers'],_0x5084f9);}['_getPreviousFrom'](_0x36964b){const _0x4d59dd=Array['from'](this['_savedMetaData']['keys']());_0x4d59dd['sort']((_0x1d090b,_0x18b56e)=>_0x1d090b-_0x18b56e),_0x4d59dd['reverse']();for(const _0x123e48 of _0x4d59dd)if(_0x123e48<_0x36964b)return _0x123e48;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0xbf99d6,_0x27d4c0){const _0x4f4ca3=Array['from'](_0x27d4c0['markers'])['map'](([_0x18d460,_0x1038b9])=>[_0x18d460,this['_fixRange'](_0x1038b9,_0xbf99d6)]);_0xbf99d6['markers']=new Map(_0x4f4ca3);}['_transformMarkers'](_0x3d6e0f){for(const _0x155b2d of this['_markers']['values']()){const _0x520151=_0x155b2d['getTransformedByOperation'](_0x3d6e0f),_0xf902e4=ft['_createFromRanges'](_0x520151);_0x155b2d['start']=_0xf902e4['start'],_0x155b2d['end']=_0xf902e4['end'];}}['_handleOperation'](_0x3a1274,_0x5c51a3){if('addRoot'!=_0x3a1274['type']&&'detachRoot'!=_0x3a1274['type']){if('insert'==_0x3a1274['type']){const _0x753e68=_0x3a1274['position']['root']['rootName'];this['_diffRoots']['has'](_0x753e68)||(this['_diffRoots']['set'](_0x753e68,P(_0x753e68,!0x0)),this['_diffRootsAttributes']['set'](_0x753e68,{}),_0x5c51a3&&this['_idsRoots']['set'](_0x753e68,P(_0x753e68,!0x0)));}else{if('addRootAttribute'==_0x3a1274['type']||'removeRootAttribute'==_0x3a1274['type']||'changeRootAttribute'==_0x3a1274['type'])return void this['_handleRootAttributeOperation'](_0x3a1274);'marker'==_0x3a1274['type']&&this['_handleMarkerOperation'](_0x3a1274);}if('marker'!==_0x3a1274['type']){const _0x633bdd=this['_cloneOperation'](_0x3a1274,this['_diffRoots']);_0x633bdd['_execute'](),this['_transformMarkers'](_0x633bdd);}if(_0x5c51a3)switch(_0x3a1274['type']){case'insert':this['_handleInsertOperation'](_0x3a1274);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x3a1274);break;case'merge':this['_handleMergeOperation'](_0x3a1274);break;case'split':this['_handleSplitOperation'](_0x3a1274);}}else this['_handleRootOperation'](_0x3a1274,_0x5c51a3);}['_cloneOperation'](_0x4813d3,_0x440593){const _0x39b4bc=_0x4813d3['clone']();return _0x39b4bc['_authorId']=_0x4813d3['_authorId'],this['_fixOperation'](_0x39b4bc,_0x440593),_0x39b4bc;}['_getBaseVids'](_0x3086b9){return _0x3086b9['map'](_0x3923ee=>{const _0x23f54f=this['_getVidAttributeName'](_0x3923ee);return Number(_0x3923ee['item']['getAttribute'](_0x23f54f));});}['_generateTape'](_0xe6598c,_0x6f517){if(_0xe6598c['is']('element','$text'))_0x6f517['push']({'item':_0xe6598c,'type':'text'});else{_0xe6598c['is']('element')&&_0x6f517['push']({'item':_0xe6598c,'type':'elementStart'});for(const _0x2b92fb of _0xe6598c['getChildren']())this['_generateTape'](_0x2b92fb,_0x6f517);_0xe6598c['is']('element')&&_0x6f517['push']({'item':_0xe6598c,'type':'elementEnd'});}return _0x6f517;}['_getState'](){const _0x103d93=new Map(this['_touched']),_0x3fff08=new Map(_0x103d93),_0x5a9f0c=new Map(),_0x52d7e5={'insertions':{},'deletions':{}},_0xf83720={'insertions':{},'deletions':{}},_0x19625a=new Map(),_0x3d43d7=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x3d43d7['delete']('$graveyard');for(const _0x866bd of _0x3d43d7){const _0x29d813=this['_diffRoots']['get'](_0x866bd)||P(_0x866bd,!0x1),_0x22f1c0=this['_baseRoots']['get'](_0x866bd)||P(_0x866bd,!0x1);_0x29d813['isAttached']()||_0x22f1c0['isAttached']()?(_0x52d7e5['insertions'][_0x866bd]=N(_0x29d813),_0x52d7e5['deletions'][_0x866bd]=N(_0x22f1c0),this['_copyMarkers'](_0x52d7e5['deletions'][_0x866bd],_0x22f1c0),this['_copyMarkers'](_0x52d7e5['insertions'][_0x866bd],_0x29d813),_0xf83720['insertions'][_0x866bd]=this['_generateTape'](this['_idsRoots']['get'](_0x866bd),[]),_0xf83720['deletions'][_0x866bd]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x866bd)||P(_0x866bd,!0x1),[])):_0x3d43d7['delete'](_0x866bd);}for(const _0xd4b215 of _0x3d43d7){const _0x5242de=_0xf83720['insertions'][_0xd4b215];for(const _0x3298a1 of _0x5242de){const _0x25b341=this['_getVidAttributeName'](_0x3298a1),_0x2be22d=_0x3298a1['item']['getAttribute'](_0x25b341);_0x3fff08['delete'](_0x2be22d),_0x2be22d>=this['_startingRevisionId']&&_0x5a9f0c['set'](_0x2be22d,_0x103d93['get'](_0x2be22d));}}for(const _0x3f4fbb of _0x3d43d7){const _0x3ba87b=_0xf83720['insertions'][_0x3f4fbb],_0x3869b4=this['_getBaseVids'](_0xf83720['deletions'][_0x3f4fbb]);let _0x204726=0x0;for(const _0x58289e of _0x3ba87b){const _0x1534b8=this['_getVidAttributeName'](_0x58289e),_0x19e77a=_0x58289e['item']['getAttribute'](_0x1534b8);if(!_0x5a9f0c['has'](_0x19e77a)&&!_0x19625a['has'](_0x19e77a)){if(_0x3fff08['has'](_0x19e77a))_0x204726++;else{if(_0x19e77a!=_0x3869b4[_0x204726]){const _0x2ffb07=_0x103d93['get'](_0x19e77a)||_0x103d93['get'](_0x3869b4[_0x204726]);for(;_0x19e77a!=_0x3869b4[_0x204726];)_0x3fff08['has'](_0x3869b4[_0x204726])||(_0x19625a['set'](_0x3869b4[_0x204726],_0x2ffb07),_0x103d93['set'](_0x3869b4[_0x204726],_0x2ffb07)),_0x204726++;}_0x204726++;}}}}for(const _0x2b12ba of _0x3d43d7){const _0xfd69f4=_0xf83720['insertions'][_0x2b12ba];for(const _0x1d0e06 of _0xfd69f4){const _0x13be9d=this['_getVidAttributeName'](_0x1d0e06),_0x14c70d=_0x1d0e06['item']['getAttribute'](_0x13be9d);if(_0x19625a['has'](_0x14c70d)){const _0x580fe9=_0x19625a['get'](_0x14c70d);_0x3fff08['has'](_0x14c70d)||_0x3fff08['set'](_0x14c70d,{..._0x580fe9}),_0x5a9f0c['set'](_0x14c70d,{..._0x580fe9});}}}for(const _0x47c009 of _0x3fff08['keys']())_0x47c009>=this['_startingRevisionId']&&_0x3fff08['delete'](_0x47c009);const _0x18b521=new Map();for(const _0x528242 of _0x3d43d7){let _0x160b43=_0xf83720['insertions'][_0x528242];for(const _0x1be4f2 of _0x160b43)if(_0x1be4f2['item']['is']('element','tableCell')){const _0x44af19=this['_getVidAttributeName'](_0x1be4f2),_0x1fc172=_0x1be4f2['item']['getAttribute'](_0x44af19);if(_0x5a9f0c['has'](_0x1fc172)){const _0x5b94a9=_0x1be4f2['item']['parent']['parent']['getAttribute']('vid_start'),_0x5987e4=_0x18b521['get'](_0x5b94a9)||new Set();_0x5987e4['add'](_0x5a9f0c['get'](_0x1fc172)['userId']),_0x18b521['set'](_0x5b94a9,_0x5987e4);}}_0x160b43=_0xf83720['deletions'][_0x528242];for(const _0x5a9ae3 of _0x160b43)if(_0x5a9ae3['item']['is']('element','tableCell')){const _0x16a9da=this['_getVidAttributeName'](_0x5a9ae3),_0x5d87ee=_0x5a9ae3['item']['getAttribute'](_0x16a9da);if(_0x3fff08['has'](_0x5d87ee)){const _0x522633=_0x5a9ae3['item']['parent']['parent']['getAttribute']('vid_start'),_0x2b9ac3=_0x18b521['get'](_0x522633)||new Set();_0x2b9ac3['add'](_0x3fff08['get'](_0x5d87ee)['userId']),_0x18b521['set'](_0x522633,_0x2b9ac3);}}for(const _0x411172 of _0x18b521['keys']())(_0x5a9f0c['has'](_0x411172)||_0x3fff08['has'](_0x411172))&&_0x18b521['delete'](_0x411172);}for(const _0xb5d41f of _0x3d43d7){const _0x4ce010=_0xf83720['insertions'][_0xb5d41f];let _0x54fc51=null,_0x51b485=null;for(const _0x10b5cf of _0x4ce010){const _0x4fb6ff=this['_getVidAttributeName'](_0x10b5cf),_0x5960ca=_0x10b5cf['item']['getAttribute'](_0x4fb6ff),_0x3eb33c=_0x18b521['get'](_0x5960ca);_0x3eb33c&&'elementStart'==_0x10b5cf['type']&&(_0x54fc51=Array['from'](_0x3eb33c)[0x0],_0x51b485=_0x10b5cf['item']['getAttribute']('vid_end')),_0x54fc51&&(_0x3fff08['set'](_0x5960ca,{'userId':_0x54fc51}),_0x5a9f0c['set'](_0x5960ca,{'userId':_0x54fc51})),_0x5960ca==_0x51b485&&(_0x54fc51=null,_0x51b485=null);}}const _0xfb630f={},_0x1b6948=new Set();for(const _0x238545 of _0x3d43d7){const _0x245559=_0x52d7e5['deletions'][_0x238545],_0x47c876=_0x52d7e5['insertions'][_0x238545];for(const {userId:_0x1b3000}of this['_touchedMarkers']['values']())null!==_0x1b3000&&_0x1b6948['add'](_0x1b3000);for(const {userId:_0x314dea}of this['_touchedRoots']['values']())null!==_0x314dea&&_0x1b6948['add'](_0x314dea);this['_markChanges'](_0x47c876,_0xf83720['insertions'][_0x238545],_0x5a9f0c,'insertion',_0x1b6948),this['_markChanges'](_0x245559,_0xf83720['deletions'][_0x238545],_0x3fff08,'deletion',_0x1b6948),_0xfb630f[_0x238545]={'insertions':this['_prepareViewToSave'](_0x47c876),'deletions':this['_prepareViewToSave'](_0x245559),'attachChange':this['_touchedRoots']['get'](_0x238545)||null,'attributesBefore':_0x344f71(this['_baseRootsAttributes']['get'](_0x238545))||{},'attributesAfter':_0x344f71(this['_diffRootsAttributes']['get'](_0x238545))};}return{'diffData':_0xfb630f,'authorsIds':Array['from'](_0x1b6948)};}['_processRootBeforeSave'](_0x1e03c6){for(const [,_0x55cd0c]of _0x1e03c6['markers']){const _0x25868d=_0x55cd0c['start']['getAncestors']()['filter'](_0x1cbf09=>'tableCell'==_0x1cbf09['name']);for(const _0x308f1f of _0x25868d)0x1==_0x308f1f['childCount']&&_0x308f1f['getChild'](0x0)['is']('element','paragraph')&&_0x308f1f['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x34e99a){this['_processRootBeforeSave'](_0x34e99a);const _0x1fb745=this['editor']['data']['toView'](_0x34e99a,{}),_0xa6c1a=Array['from'](_0x1fb745['getChildren']())['map'](_0x58497c=>this['_getViewJson'](_0x58497c));return JSON['stringify'](_0xa6c1a);}['_getViewJson'](_0x26756f){if(_0x26756f['is']('$text'))return _0x26756f['data'];{const _0x34e661=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x1ced82=_0x26756f,_0x4931e2=this['editor']['data']['htmlProcessor']['domConverter'],_0x567eec={'type':_0x34e661['_getTypeCharForViewElement'](_0x1ced82),'name':_0x1ced82['name'],'attributes':Array['from'](_0x1ced82['getAttributes']()),'children':Array['from'](_0x1ced82['getChildren']())['map'](_0x3a33d9=>this['_getViewJson'](_0x3a33d9))};if(_0x26756f['is']('uiElement')&&'$comment'!=_0x26756f['name']){const _0x36e5e4=_0x26756f['render'](_0x4931e2['domDocument'],_0x4931e2);_0x567eec['children']['push'](_0x36e5e4['outerHTML']);}else{if(_0x26756f['is']('rawElement')){const _0x2f4af9=_0x4931e2['domDocument']['createElement'](_0x1ced82['name']);_0x26756f['render'](_0x2f4af9,_0x4931e2),_0x567eec['children']['push'](_0x2f4af9['innerHTML']);}}const _0xc5ec07=Array['from'](_0x1ced82['getCustomProperties']());_0xc5ec07['length']>0x0&&(_0x567eec['customProperties']=_0xc5ec07);const _0x609187=_0x1ced82['getFillerOffset']();return null!==_0x609187&&(_0x567eec['fillerOffset']=_0x609187),_0x567eec;}}['_markChanges'](_0x5c8a01,_0x514892,_0x3b945a,_0x53cdf0,_0xe564a8){let _0x1fea51=null,_0x1f884f=null,_0x3674c2=0x0;const _0x2a601a=this['editor']['model'];for(let _0xe6c736=0x0;_0xe6c736<_0x514892['length'];_0xe6c736++){const _0x40b519=this['_getVidAttributeName'](_0x514892[_0xe6c736]),_0x1ffd32=_0x514892[_0xe6c736]['item']['getAttribute'](_0x40b519),_0x5c74a0=_0x3b945a['get'](_0x1ffd32),_0x57d26f=_0xe6c736==_0x514892['length']-0x1;(!_0x1fea51&&_0x5c74a0&&(_0x1fea51=_0x5c74a0,_0x1f884f=_0x514892[_0xe6c736]),_0x1fea51&&(!_0x5c74a0||_0x5c74a0['userId']!=_0x1fea51['userId']))&&(_0x4ee080(_0x5c74a0,F(_0x1f884f,_0x5c8a01,_0x2a601a),F(_0x514892[_0xe6c736],_0x5c8a01,_0x2a601a)),_0x1fea51=_0x5c74a0||null,_0x1f884f=_0x5c74a0?_0x514892[_0xe6c736]:null),_0x1fea51&&_0x57d26f&&_0x4ee080(_0x5c74a0,F(_0x1f884f,_0x5c8a01,_0x2a601a),B(_0x514892[_0xe6c736],_0x5c8a01,_0x2a601a));}function _0x4ee080(_0x3cc582,_0x2f747a,_0x265c53){const _0x3974dc=_0x1fea51['userId'],_0x3dbb57='revision:'+_0x53cdf0+':'+_0x3974dc+':'+_0x3674c2++,_0x5a3afb=_0x2a601a['createRange'](_0x2f747a,_0x265c53);_0x5c8a01['markers']['set'](_0x3dbb57,_0x5a3afb),null!==_0x3974dc&&_0xe564a8['add'](_0x3974dc);}}['_getVidAttributeName'](_0xb5fd42){switch(_0xb5fd42['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x1cad4e,_0x212bf5){_0x1cad4e['baseVersion']=null;for(const _0x393261 in _0x1cad4e){const _0x5b854e=_0x1cad4e[_0x393261];if(_0x5b854e instanceof vt){const _0x1a6585=_0x212bf5['get'](_0x5b854e['root']['rootName']);_0x1cad4e[_0x393261]=this['_fixPosition'](_0x5b854e,_0x1a6585);}if(_0x5b854e instanceof ft){const _0x1464a3=_0x212bf5['get'](_0x5b854e['root']['rootName']);_0x1cad4e[_0x393261]=this['_fixRange'](_0x5b854e,_0x1464a3);}'root'===_0x393261&&(_0x1cad4e['root']=_0x212bf5['get'](_0x1cad4e['root']['rootName']));}}['_fixRange'](_0x570061,_0x24a2ef){return this['editor']['model']['createRange'](this['_fixPosition'](_0x570061['start'],_0x24a2ef),this['_fixPosition'](_0x570061['end'],_0x24a2ef));}['_fixPosition'](_0x26caa6,_0xdd3b3){return this['editor']['model']['createPositionFromPath'](_0xdd3b3,_0x26caa6['path'],_0x26caa6['stickiness']);}['_handleInsertOperation'](_0x2a19fb){const _0x29e9e6=this['_idsRoots']['get'](_0x2a19fb['position']['root']['rootName']),_0x5580c6=this['_fixPosition'](_0x2a19fb['position'],_0x29e9e6),_0x5235bf=null===_0x2a19fb['_authorId']?null:_0x2a19fb['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4a6df1=_0x5580c6['parent'],_0x39afef=this['_revisionId'],_0x4e31f3=[];for(const _0x375e19 of _0x2a19fb['nodes'])if(_0x375e19['is']('element'))_0x4e31f3['push'](this['_makeIdsRoot'](_0x375e19));else{for(let _0x86e3d1=0x0;_0x86e3d1<_0x375e19['offsetSize'];_0x86e3d1++)_0x4e31f3['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x2a5023=this['_revisionId'];for(let _0x2cdd70=_0x39afef;_0x2cdd70<_0x2a5023;_0x2cdd70++)this['_touched']['set'](_0x2cdd70,{'userId':_0x5235bf});_0x4a6df1['_insertChild'](_0x5580c6['offset'],_0x4e31f3);}['_handleMoveOperation'](_0x477aea){(_0x477aea=this['_cloneOperation'](_0x477aea,this['_idsRoots']))['_execute']();const _0x94b5df=null===_0x477aea['_authorId']?null:_0x477aea['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5cfcf0=_0x477aea['getMovedRangeStart'](),_0xfc81f3=_0x5cfcf0['parent'],_0x236191=_0x5cfcf0['offset'];!function _0x1591ef(_0x3a1634,_0x5b7703,_0x2775bc,_0x280c16){for(let _0x54fcab=_0x2775bc;_0x54fcab<_0x280c16;_0x54fcab++){const _0xd73026=_0x5b7703['getChild'](_0x54fcab);_0xd73026['is']('element','$text')?_0x3a1634['set'](_0xd73026['getAttribute']('vid'),{'userId':_0x94b5df}):(_0x3a1634['set'](_0xd73026['getAttribute']('vid_start'),{'userId':_0x94b5df}),_0x1591ef(_0x3a1634,_0xd73026,0x0,_0xd73026['childCount']),_0x3a1634['set'](_0xd73026['getAttribute']('vid_end'),{'userId':_0x94b5df}));}}(this['_touched'],_0xfc81f3,_0x236191,_0x236191+_0x477aea['howMany']);}['_handleMergeOperation'](_0x46438){const _0x191b95=null===(_0x46438=this['_cloneOperation'](_0x46438,this['_idsRoots']))['_authorId']?null:_0x46438['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1fc330=_0x46438['targetPosition']['parent'],_0x40acb2=_0x46438['sourcePosition']['parent'],_0x2cb8ca=_0x1fc330['getAttribute']('vid_end'),_0x53b605=_0x40acb2['getAttribute']('vid_start');_0x1fc330['_setAttribute']('vid_end',_0x40acb2['getAttribute']('vid_end')),_0x40acb2['_setAttribute']('vid_end',_0x2cb8ca),this['_touched']['set'](_0x53b605,{'userId':_0x191b95}),this['_touched']['set'](_0x2cb8ca,{'userId':_0x191b95}),_0x46438['_execute']();}['_handleSplitOperation'](_0x433ca8){const _0x574249=null===(_0x433ca8=this['_cloneOperation'](_0x433ca8,this['_idsRoots']))['_authorId']?null:_0x433ca8['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4e95a6=_0x433ca8['graveyardPosition'],_0x30a6aa=_0x433ca8['splitPosition']['parent'];_0x433ca8['_execute']();const _0x45df23=_0x30a6aa['getAttribute']('vid_end'),_0x3aa85b=_0x433ca8['insertionPosition']['nodeAfter'];if(_0x4e95a6){const _0x33d6a5=_0x3aa85b['getAttribute']('vid_end'),_0x19d751=_0x30a6aa['getAttribute']('vid_end');_0x30a6aa['_setAttribute']('vid_end',_0x33d6a5),_0x3aa85b['_setAttribute']('vid_end',_0x19d751),this['_touched']['set'](_0x30a6aa['getAttribute']('vid_end'),{'userId':_0x574249}),this['_touched']['set'](_0x3aa85b['getAttribute']('vid_start'),{'userId':_0x574249});}else{const _0x584d47=this['_revisionId']++,_0x15bee4=this['_revisionId']++;_0x30a6aa['_setAttribute']('vid_end',_0x584d47),_0x3aa85b['_setAttribute']('vid_start',_0x15bee4),_0x3aa85b['_setAttribute']('vid_end',_0x45df23),this['_touched']['set'](_0x584d47,{'userId':_0x574249}),this['_touched']['set'](_0x15bee4,{'userId':_0x574249});}}['_handleMarkerOperation'](_0x491b6c){if(!_0x491b6c['affectsData'])return;const _0x2391d5=(_0x491b6c=this['_cloneOperation'](_0x491b6c,this['_diffRoots']))['oldRange']?_0x491b6c['oldRange']['root']:null,_0x20106c=_0x491b6c['newRange']?_0x491b6c['newRange']['root']:null;_0x2391d5&&this['_markers']['delete'](_0x491b6c['name']),_0x20106c&&this['_markers']['set'](_0x491b6c['name'],_0x491b6c['newRange']['clone']());const _0x5c8db4=null===_0x491b6c['_authorId']?null:_0x491b6c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xe59294=_0x491b6c['name'];if(!this['_touchedMarkers']['has'](_0xe59294))return void this['_touchedMarkers']['set'](_0xe59294,{'range':_0x491b6c['oldRange'],'userId':_0x5c8db4});const _0x32760f=this['_touchedMarkers']['get'](_0xe59294),_0x4a487a=_0x32760f['range'],_0x3c38bc=_0x491b6c['newRange'];null==_0x4a487a&&null==_0x3c38bc||_0x4a487a&&_0x3c38bc&&_0x4a487a['isEqual'](_0x3c38bc)?this['_touchedMarkers']['delete'](_0x491b6c['name']):_0x32760f['userId']=_0x5c8db4;}['_handleRootOperation'](_0x3f194c,_0x41f76f){this['_diffRoots']['has'](_0x3f194c['rootName'])?this['_diffRoots']['get'](_0x3f194c['rootName'])['_isAttached']=_0x3f194c['isAdd']:(this['_diffRoots']['set'](_0x3f194c['rootName'],P(_0x3f194c['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x3f194c['rootName'],{}),_0x41f76f&&this['_idsRoots']['set'](_0x3f194c['rootName'],P(_0x3f194c['rootName'],!0x0)));const _0x236346=null===_0x3f194c['_authorId']?null:_0x3f194c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x159a2b=this['_touchedRoots']['get'](_0x3f194c['rootName']);_0x159a2b&&_0x159a2b['userId']===_0x236346?this['_touchedRoots']['delete'](_0x3f194c['rootName']):this['_touchedRoots']['set'](_0x3f194c['rootName'],{'userId':_0x236346,'isAttached':_0x3f194c['isAdd']});}['_handleRootAttributeOperation'](_0x3e9775){const _0x1e6f3e=this['_diffRootsAttributes']['get'](_0x3e9775['root']['rootName']);null===_0x3e9775['newValue']?delete _0x1e6f3e[_0x3e9775['key']]:_0x1e6f3e[_0x3e9775['key']]=_0x3e9775['newValue'];}}function N(_0x1391ef){const _0x3e080e=P(_0x1391ef['rootName'],_0x1391ef['isAttached']());for(const _0x1fecb9 of _0x1391ef['getChildren']()){const _0x2b0762=_0x1fecb9['_clone'](!0x0);_0x3e080e['_appendChild'](_0x2b0762);}return _0x3e080e;}function P(_0x47c69c,_0x25d45d=!0x0){const _0x53ca2d=new gt();return _0x53ca2d['rootName']=_0x47c69c,_0x53ca2d['_isAttached']=_0x25d45d,_0x53ca2d['isAttached']=()=>_0x53ca2d['_isAttached'],_0x53ca2d;}function F(_0x5891be,_0x370d56,_0x4cd800){const _0x590773='elementEnd'==_0x5891be['type']?_0x4cd800['createPositionAt'](_0x5891be['item'],'end'):_0x4cd800['createPositionBefore'](_0x5891be['item']);return _0x4cd800['createPositionFromPath'](_0x370d56,_0x590773['path'],_0x590773['stickiness']);}function B(_0x41bd7e,_0x2e0455,_0x51b054){const _0x4d4861='elementStart'==_0x41bd7e['type']?_0x51b054['createPositionAt'](_0x41bd7e['item'],0x0):_0x51b054['createPositionAfter'](_0x41bd7e['item']);return _0x51b054['createPositionFromPath'](_0x2e0455,_0x4d4861['path'],_0x4d4861['stickiness']);}class hs extends _0x17ef9f{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x1def90,_0xa3794d){super(_0x1def90),this['focusTracker']=new _0xbc196c(),this['keystrokes']=new _0x4c2f01(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0xa3794d),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'](),_0x5ae7d3({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x787600=_0x4425eb=>_0x4425eb['stopPropagation']();this['keystrokes']['set']('arrowright',_0x787600),this['keystrokes']['set']('arrowleft',_0x787600),this['keystrokes']['set']('arrowup',_0x787600),this['keystrokes']['set']('arrowdown',_0x787600);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x510896){this['revisionNameInputView']['fieldView']['element']['value']=_0x510896['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x4825f6){const _0x288088=new nt(this['locale'],ti),_0xc3b233=_0x288088['fieldView'];_0xc3b233['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x54b10d=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x4825f6&&(_0x54b10d+='\x20('+g(this['locale'],'optional')+')'),(_0x288088['label']=_0x54b10d,_0xc3b233['on']('input',()=>{this['revisionNameInputValue']=_0xc3b233['element']['value']['trim']();}),_0x288088);}}class f extends _0x365de9{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x26cf23=this['editor'],_0x20d77e=_0x26cf23['plugins']['get']('RevisionTracker');_0x26cf23['ui']['componentFactory']['add']('revisionHistory',_0x57c1d3=>{const _0x358e22=_0x5b51c1(_0x57c1d3),_0x471889=_0x358e22['panelView']['children'],_0x20fa8e=new _0x4e5243(_0x57c1d3),_0x212128=new te(_0x57c1d3),_0x20f29f=new _0x3e98f4(_0x57c1d3),_0x287c87=new te(_0x57c1d3),_0x2367ed=new _0x3e98f4(_0x57c1d3);return _0x358e22['bind']('isEnabled')['to'](_0x20d77e,'isReady',_0x20d77e,'isEnabled',_0x26cf23,'isReadOnly',(_0x4fbf82,_0x1ccca2,_0x3b2b3d)=>_0x4fbf82&&_0x1ccca2&&!_0x3b2b3d),_0x358e22['buttonView']['set']({'icon':_0x4ad913,'label':g(_0x57c1d3,'Revision\x20history'),'tooltip':!0x0}),_0x20f29f['set']({'label':g(_0x57c1d3,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x20f29f['bind']('isEnabled')['to'](_0x20d77e,'isReady',_0x20d77e,'isEnabled',_0x26cf23,'isReadOnly',(_0x32efd4,_0x2aeb09,_0x478c4a)=>_0x32efd4&&_0x2aeb09&&!_0x478c4a),_0x20f29f['on']('execute',()=>this['_showDialog']()),_0x2367ed['set']({'label':g(_0x57c1d3,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x2367ed['bind']('isEnabled')['to'](_0x20d77e,'isReady',_0x26cf23,'isReadOnly',(_0x39f1fd,_0x2cde8d)=>_0x39f1fd&&!_0x2cde8d),_0x2367ed['on']('execute',()=>{_0x26cf23['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x358e22['isOpen']=!0x1,_0x26cf23['editing']['view']['focus']();}),_0x212128['children']['add'](_0x20f29f),_0x287c87['children']['add'](_0x2367ed),_0x20fa8e['role']='menu',_0x20fa8e['items']['addMany']([_0x212128,_0x287c87]),_0x471889['add'](_0x20fa8e),_0x358e22;}),_0x26cf23['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x2c947f=this['editor'],_0x135a43=_0x2c947f['locale'],_0x41c484=new _0x19d5ae(_0x135a43),_0x235e0f=new _0x347b6d(_0x135a43);_0x41c484['buttonView']['set']({'icon':_0x4ad913,'label':g(_0x135a43,'Revision\x20history')});const _0x4119db=new _0x3aa705(_0x135a43,_0x41c484),_0x1fe6a0=new _0x529e63(_0x135a43);_0x1fe6a0['set']({'label':g(_0x135a43,'Save\x20current\x20revision')}),_0x1fe6a0['delegate']('execute')['to'](_0x41c484),_0x1fe6a0['on']('execute',()=>{this['_showDialog']();}),_0x4119db['children']['add'](_0x1fe6a0),_0x235e0f['items']['add'](_0x4119db);const _0x1b5f10=new _0x3aa705(_0x135a43,_0x41c484),_0x5ba878=new _0x529e63(_0x135a43);return _0x5ba878['set']({'label':g(_0x135a43,'Open\x20revision\x20history')}),_0x5ba878['delegate']('execute')['to'](_0x41c484),_0x5ba878['on']('execute',()=>{_0x2c947f['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x1b5f10['children']['add'](_0x5ba878),_0x235e0f['items']['add'](_0x1b5f10),_0x41c484['panelView']['children']['add'](_0x235e0f),_0x41c484;}['_showDialog'](){const _0x335c33=this['editor'],_0x58df66=_0x335c33['locale'],_0x42f32c=_0x335c33['plugins']['get']('Dialog'),_0x34e8da=_0x335c33['plugins']['get']('RevisionTracker');function _0x2a9fd5(_0x7884c0){_0x335c33['config']['get']('revisionHistory.requireRevisionName')&&''===_0x7884c0['revisionName']?_0x7884c0['revisionNameInputView']['errorText']=g(_0x58df66,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x335c33['plugins']['get'](u)['saveRevision']({'name':_0x7884c0['revisionName']}),_0x42f32c['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x2a9fd5(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x42f32c['show']({'id':'revisionSave','title':g(_0x58df66,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x335c33['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x42f32c['hide']()},{'label':g(_0x335c33['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x5d970b){_0x5d970b['bind']('isEnabled')['to'](_0x34e8da,'isReady',_0x34e8da,'isEnabled',_0x335c33,'isReadOnly',(_0x2ef22c,_0x23802b,_0x3569e6)=>_0x2ef22c&&_0x23802b&&!_0x3569e6);},'onExecute':()=>_0x2a9fd5(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x7c7769=this['editor'],_0x2b14d9=_0x7c7769['locale'];this['_saveRevisionFormView']=new hs(_0x2b14d9,_0x7c7769['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends _0x17ef9f{['changeId'];['_model'];constructor(_0x4d71af,_0x599576){super(_0x4d71af),this['_model']=_0x599576,this['changeId']=_0x599576['id'];const _0x548d1a=this['bindTemplate'],_0x232627=g(_0x4d71af,_0x599576['data']['isSuggestion']?'Suggested\x20by':'add'==_0x599576['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x599576['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x548d1a['to']('type',_0x6d4c52=>'ck-revision-change__'+_0x6d4c52)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x232627}]},{'text':'\x20'+_0x599576['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x3660f6(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x16c9c2){super(),this['id']=_0x16c9c2['id']||_0x1fadd2(),this['author']=_0x16c9c2['author'],this['type']=_0x16c9c2['type'],this['data']=_0x16c9c2['data']||{},this['rootName']=_0x16c9c2['rootName'],this['set']('createdAt',_0x16c9c2['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class c{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x4584b4,_0x181c9a){this['newRevisionId']=_0x4584b4,this['oldRevisionId']=_0x181c9a,this['changes']=new _0x1d0d98();}['_setChanges'](_0x35bd28){for(const _0xf70eeb of _0x35bd28)this['changes']['add'](_0xf70eeb);}}class m extends _0x365de9{['repository'];['adapter']=null;['_utils'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x5b69eb,_0x5923f4,I,V];}constructor(_0x2944ce){super(_0x2944ce),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x2760a2,_0x49d8b,_0x193935)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x45a770=>{for(const _0x4a96b0 of this['editor']['editing']['view']['document']['roots'])_0x193935?_0x45a770['removeClass']('ck-editor__editable__overlay',_0x4a96b0):_0x45a770['addClass']('ck-editor__editable__overlay',_0x4a96b0);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x2b1b2e=>null!==_0x2b1b2e),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x1adb3c,_0x566ad9,_0x53df83)=>_0x1adb3c&&_0x53df83?_0x566ad9['changes']['getIndex'](_0x53df83):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x2b859f,_0x47cfa0)=>_0x2b859f?_0x47cfa0['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x5923f4);}['init'](){const _0x2cf3ea=this['editor'],_0x4ab199=new pt(_0x2cf3ea,{'direction':'backward'}),_0x340d4=new pt(_0x2cf3ea,{'direction':'forward'});(_0x2cf3ea['commands']['add']('showPreviousChange',_0x4ab199),_0x2cf3ea['commands']['add']('showNextChange',_0x340d4),_0x2cf3ea['commands']['add']('restoreRevision',new wt(_0x2cf3ea)),this['on']('change:numberOfChanges',()=>{_0x4ab199['refresh'](),_0x340d4['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x2cf3ea['enableReadOnlyMode']('revision-viewer'),_0x2cf3ea['plugins']['has']('WidgetToolbarRepository'))&&_0x2cf3ea['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x40d399){return await this['_utils']['loadRevisionData'](_0x40d399,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x40d399);}async['getRevisionRootsAttributes'](_0x26eab7){return await this['_utils']['loadRevisionData'](_0x26eab7,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x26eab7);}async['compare'](_0x2c1e93,_0x414e27,_0x135a4d=!0x1){if(!this['isEnabled'])return;const _0x52cd48=this['diff'],_0x940a34=this['repository'],_0x53c974='string'==typeof _0x2c1e93?_0x940a34['getRevision'](_0x2c1e93):_0x2c1e93,_0x522116='string'==typeof _0x414e27?_0x940a34['getRevision'](_0x414e27):_0x414e27,_0x1f6eac=_0x53c974['id'],_0x1db4b1=_0x522116?_0x522116['id']:null;if(!_0x135a4d&&this['diff']&&this['diff']['newRevisionId']===_0x1f6eac&&this['diff']['oldRevisionId']===_0x1db4b1)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x1f6eac,_0x1db4b1);const _0x33a04d=this['_getRevisionsRange'](_0x53c974,_0x522116,!0x0)['map'](_0x549eed=>this['_utils']['loadRevisionData'](_0x549eed,this['adapter']));return _0x33a04d['push'](new Promise(_0x91cdf3=>{setTimeout(_0x91cdf3,0x14);})),Promise['all'](_0x33a04d)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x1bc67d=this['_getDiff'](_0x1f6eac,_0x1db4b1);for(const _0x5b20bc of _0x1bc67d['changes'])this['_changeIdToChange']['set'](_0x5b20bc['id'],_0x5b20bc);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x405a99=>{for(const _0x23c0ee of this['editor']['model']['document']['getRootNames']())_0x405a99['detachRoot'](_0x23c0ee);for(const _0x1a5008 of Object['keys'](_0x1bc67d['model'])){const _0x32e96a=_0x405a99['addRoot'](_0x1a5008);for(const _0x560832 of Object['keys'](_0x1bc67d['attributes'][_0x1a5008]))_0x405a99['setAttribute'](_0x560832,_0x1bc67d['attributes'][_0x1a5008][_0x560832],_0x32e96a);_0x405a99['insert'](_0x1bc67d['model'][_0x1a5008],_0x32e96a,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x1bc67d['changes'])),this['isReady']=!0x0;})['catch'](_0x3de09b=>{console['error'](_0x3de09b),this['_cleanUp'](),_0x52cd48&&(this['diff']=_0x52cd48),this['isReady']=!0x0;});}['addRevisionData'](_0x24b020,_0x5a0310){const _0x10cd27=this['repository']['createRevision'](_0x24b020);return _0x10cd27['on']('_update',(_0x48362d,_0x404e97,_0x40fac0)=>_0x5a0310(_0x404e97,_0x40fac0,_0x10cd27)),this['repository']['addRevision'](_0x10cd27),_0x10cd27;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x15b491=>{for(const _0x1ddf50 of this['editor']['model']['document']['getRootNames']())_0x15b491['detachRoot'](_0x1ddf50);});}['_sortAndFilterDiffChanges'](_0x1e8a97){const _0x41b4c9=[],_0x21d8ae=new Map();for(const _0x307e66 of this['editor']['model']['document']['getRootNames']()){const _0x56e7b6=this['editor']['editing']['view']['getDomRoot'](_0x307e66);if(!_0x56e7b6)continue;const _0x123bb1=_0x56e7b6['getClientRects']()['item'](0x0);_0x123bb1&&(_0x41b4c9['push'](_0x307e66),_0x21d8ae['set'](_0x307e66,_0x123bb1));}return _0x41b4c9['sort']((_0x2e9df7,_0x4fd08a)=>{const _0x5a8994=_0x21d8ae['get'](_0x2e9df7),_0x4ac94f=_0x21d8ae['get'](_0x4fd08a);return _0x5a8994['y']-_0x4ac94f['y']||_0x5a8994['x']-_0x4ac94f['x'];}),(_0x1e8a97=_0x1e8a97['filter'](_0xfe4f87=>_0x41b4c9['includes'](_0xfe4f87['rootName'])))['sort']((_0x5d8024,_0x2066fd)=>_0x41b4c9['indexOf'](_0x5d8024['rootName'])-_0x41b4c9['indexOf'](_0x2066fd['rootName'])),_0x1e8a97;}['_makeTape'](_0x24d4fe){const _0x50c07c=Array['from'](_0x24d4fe['markers'])['filter'](([_0x24a47e,_0x52a1d9])=>_0x24a47e['startsWith']('revision:')&&!_0x52a1d9['isCollapsed']),_0x55bddd=Array['from'](this['editor']['model']['createRangeIn'](_0x24d4fe)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x50c07c['length'])for(const _0x35603e of _0x55bddd){const [_0x44600a,_0x2cb90f]=_0x50c07c[0x0],[,_0x1f147c,_0x3a3300]=_0x44600a['split'](':');if(_0x2cb90f['end']['isEqual'](_0x35603e['nextPosition'])&&_0x50c07c['shift'](),(_0x35603e['previousPosition']['isEqual'](_0x2cb90f['start'])||_0x35603e['previousPosition']['isAfter'](_0x2cb90f['start']))&&('insertion'==_0x1f147c?_0x35603e['isAdded']={'userId':_0x3a3300}:'deletion'==_0x1f147c&&(_0x35603e['isRemoved']={'userId':_0x3a3300})),0x0==_0x50c07c['length'])break;}return _0x55bddd;}['_refreshStartEndIndex'](_0x4e092b){const _0x136b77=new Map();for(let _0x1d0d2e=0x0;_0x1d0d2e<_0x4e092b['length'];_0x1d0d2e++)'text'===_0x4e092b[_0x1d0d2e]['type']?(_0x4e092b[_0x1d0d2e]['item']['startIndex']=_0x1d0d2e,_0x4e092b[_0x1d0d2e]['item']['endIndex']=_0x1d0d2e):('elementStart'===_0x4e092b[_0x1d0d2e]['type']?_0x4e092b[_0x1d0d2e]['item']['startIndex']=_0x1d0d2e:'elementEnd'===_0x4e092b[_0x1d0d2e]['type']&&(_0x4e092b[_0x1d0d2e]['item']['endIndex']=_0x1d0d2e),_0x136b77['set'](_0x4e092b[_0x1d0d2e]['id'],_0x1d0d2e));for(const _0x1cc719 of _0x136b77['values']())'elementStart'===_0x4e092b[_0x1cc719]['type']?_0x4e092b[_0x1cc719]['item']['endIndex']=_0x136b77['get'](_0x4e092b[_0x1cc719]['pairId']):'elementEnd'===_0x4e092b[_0x1cc719]['type']&&(_0x4e092b[_0x1cc719]['item']['startIndex']=_0x136b77['get'](_0x4e092b[_0x1cc719]['pairId']));}['_processTape'](_0x4e826d){for(let _0x4abfc2=0x0;_0x4abfc2<_0x4e826d['length'];_0x4abfc2++){if('elementStart'===_0x4e826d[_0x4abfc2]['type'])_0x4e826d[_0x4abfc2]['item']['startIndex']=_0x4abfc2;else{if('elementEnd'===_0x4e826d[_0x4abfc2]['type']){_0x4e826d[_0x4abfc2]['item']['endIndex']=_0x4abfc2;const _0x579993=_0x4e826d[_0x4abfc2]['item']['startIndex'];_0x4e826d[_0x579993]['pairId']=_0x4e826d[_0x4abfc2]['id'],_0x4e826d[_0x4abfc2]['pairId']=_0x4e826d[_0x579993]['id'];}else _0x4e826d[_0x4abfc2]['item']['startIndex']=_0x4abfc2,_0x4e826d[_0x4abfc2]['item']['endIndex']=_0x4abfc2,_0x4e826d[_0x4abfc2]['pairId']=null;}_0x4e826d[_0x4abfc2]['markersStart']||(_0x4e826d[_0x4abfc2]['markersStart']=[],_0x4e826d[_0x4abfc2]['markersEnd']=[]);}}['_markInsertions'](_0x2cf6ac,_0x5210ba){const _0x260eff=_0x2cf6ac['filter'](_0x1c1516=>!_0x1c1516['isAdded']);for(let _0x39faa3=0x0;_0x39faa3<_0x5210ba['length'];_0x39faa3++)_0x5210ba[_0x39faa3]['isAdded']&&(_0x260eff[_0x39faa3]['isAdded']=_0x5210ba[_0x39faa3]['isAdded']);}['_getDiff'](_0x5c7beb,_0x49d6d6=null){const _0x486b3f=this['repository']['getRevision'](_0x5c7beb),_0x17597f=_0x49d6d6?this['repository']['getRevision'](_0x49d6d6):null,_0x4c3357=this['_getRevisionsRange'](_0x486b3f,_0x17597f),_0x5f2eba=_0x4c3357[_0x4c3357['length']-0x1],_0x352614=new Map(),_0x101f42={'model':{},'attributes':{},'changes':[]},_0x39332f=new Set(),_0x512721=new Map();for(let _0x1a56ab=_0x4c3357['length']-0x1;_0x1a56ab>=0x0;_0x1a56ab--){const _0xfcbb82=_0x4c3357[_0x1a56ab];for(const _0x4431a8 of Object['keys'](_0xfcbb82['diffData']))if(_0xfcbb82['diffData'][_0x4431a8]['attachChange']){const _0xeba2a3=_0xfcbb82['diffData'][_0x4431a8]['attachChange'];_0xeba2a3['isAttached']?(_0x39332f['add'](_0x4431a8),_0x512721['has'](_0x4431a8)&&_0x512721['get'](_0x4431a8)['userId']==_0xeba2a3['userId']?_0x512721['delete'](_0x4431a8):_0x512721['set'](_0x4431a8,_0xeba2a3)):_0x512721['has'](_0x4431a8)?(_0x39332f['delete'](_0x4431a8),_0x512721['delete'](_0x4431a8)):(_0x39332f['add'](_0x4431a8),_0x512721['set'](_0x4431a8,_0xeba2a3));}else _0x39332f['add'](_0x4431a8);}for(const _0x2cc06f of _0x39332f){const _0x5afc72=_0x512721['has'](_0x2cc06f)&&!_0x512721['get'](_0x2cc06f)['isAttached'];let _0x24e66d=_0x5afc72?_0x4c3357['length']-0x1:0x0;const _0x3ef12f=_0x5afc72?-0x1:0x1;for(;_0x4c3357[_0x24e66d];){const _0x211935=_0x4c3357[_0x24e66d];if(_0x211935['diffData'][_0x2cc06f]){const _0x29718e=_0x5afc72?_0x211935['diffData'][_0x2cc06f]['attributesBefore']:_0x211935['diffData'][_0x2cc06f]['attributesAfter'];_0x101f42['attributes'][_0x2cc06f]=_0x29718e?_0x344f71(_0x29718e):{};break;}_0x24e66d+=_0x3ef12f;}}for(const _0x43fd12 of _0x4c3357){_0x43fd12['model']={};for(const _0x106f86 of _0x43fd12['authors'])_0x352614['set'](_0x106f86['id'],_0x106f86);for(const _0x1138ed of _0x39332f){const _0xc1453c=_0x43fd12['diffData'][_0x1138ed]?_0x43fd12['diffData'][_0x1138ed]['insertions']:'[]',_0x466c1e=_0x43fd12['diffData'][_0x1138ed]?_0x43fd12['diffData'][_0x1138ed]['deletions']:'[]';_0x43fd12['model'][_0x1138ed]={'insertions':this['_utils']['_makeModelFromViewString'](_0xc1453c),'deletions':this['_utils']['_makeModelFromViewString'](_0x466c1e)};}}for(const _0x1c276c of _0x39332f){let _0x405e05=null,_0x5da40e=0x0;const _0x119964=new Map(Array['from'](_0x486b3f['model'][_0x1c276c]['insertions']['markers'])['filter'](([_0x3accd3])=>!_0x3accd3['startsWith']('revision:')));let _0x3b5024=0x0;for(const _0x1d2a09 of _0x4c3357){const _0x1c7ff5=this['_makeTape'](_0x1d2a09['model'][_0x1c276c]['insertions']);_0x1d2a09==_0x486b3f?(_0x405e05=_0x1c7ff5,_0x5da40e=_0x405e05['length'],_0x405e05['forEach'](_0x42c8c3=>{_0x42c8c3['id']=_0x3b5024++;}),this['_processTape'](_0x405e05)):this['_markInsertions'](_0x405e05,_0x1c7ff5);const _0x510a08=_0x405e05['filter'](_0x8ec85a=>!_0x8ec85a['isAdded'])['map'](_0x2dd30f=>_0x2dd30f['id']);let _0x2c30be=0x0;const _0x4d48fb=this['_makeTape'](_0x1d2a09['model'][_0x1c276c]['deletions']);_0x4d48fb['forEach'](_0x45f62f=>{_0x45f62f['isRemoved']?_0x45f62f['id']=_0x5da40e++:_0x45f62f['id']=_0x510a08[_0x2c30be++];}),this['_processTape'](_0x4d48fb),this['_setDistance'](_0x405e05,'isAdded'),this['_setDistance'](_0x4d48fb,'isRemoved'),_0x1d2a09==_0x486b3f&&this['_markMarkers'](_0x405e05,_0x119964),_0x405e05=this['_joinTapes'](_0x405e05,_0x4d48fb),this['_refreshStartEndIndex'](_0x405e05),this['_setDistance'](_0x405e05,'isRemoved');}_0x405e05=_0x405e05['filter'](_0x9a8205=>!(_0x9a8205['isAdded']&&_0x9a8205['isRemoved']));const _0x57efa=new Map(_0x5f2eba['model'][_0x1c276c]['deletions']['markers']),_0x4c9882=new Set(_0x119964['keys']());for(const _0xb6fd14 of _0x57efa['keys']())_0x4c9882['delete'](_0xb6fd14);this['_markSuggestions'](_0x405e05,_0x4c9882),this['_fixObsoleteTags'](_0x405e05),_0x405e05=this['_removeMissingPairs'](_0x405e05),_0x405e05=this['_markMismatchedRemovedTags'](_0x405e05),_0x405e05=this['_removeUnsupportedChanges'](_0x405e05);const {root:_0x4ac437,changes:_0x2e24b0}=this['_makeModelFromTape'](_0x405e05,_0x352614,_0x1c276c);_0x101f42['model'][_0x1c276c]=_0x4ac437;const _0x108c1a=_0x512721['get'](_0x1c276c);if(_0x108c1a){const _0x4bce27=_0x352614['get'](_0x108c1a['userId']),_0xa6e19d=new r({'author':_0x4bce27,'type':_0x108c1a['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x1c276c});_0x2e24b0['unshift'](_0xa6e19d),_0x101f42['attributes'][_0x1c276c]['revisionHistoryAttachChange']=_0xa6e19d['id'];}_0x101f42['changes']=_0x101f42['changes']['concat'](_0x2e24b0);}return _0x101f42;}['_markMarkers'](_0x33db3a,_0x2aed26){for(let _0x43ca89=0x0;_0x43ca89<_0x33db3a['length'];_0x43ca89++)for(const [_0x67c4c7,_0x3dc419]of _0x2aed26)!_0x3dc419['isCollapsed']&&_0x3dc419['start']['isEqual'](_0x33db3a[_0x43ca89]['previousPosition'])&&_0x33db3a[_0x43ca89]['markersStart']['push'](_0x67c4c7),_0x3dc419['end']['isEqual'](_0x33db3a[_0x43ca89]['nextPosition'])&&_0x33db3a[_0x43ca89]['markersEnd']['push'](_0x67c4c7);}['_joinTapes'](_0x3b78e7,_0x49f314){let _0x12e9cf=[],_0x103c2e=0x0,_0x5422da=0x0;for(;_0x103c2e<_0x3b78e7['length']||_0x5422da<_0x49f314['length'];){const _0x3bbb58=_0x3b78e7[_0x103c2e]||{},_0x5425ef=_0x49f314[_0x5422da]||{};if(_0x3bbb58['id']==_0x5425ef['id'])_0x103c2e++,_0x5422da++,_0x12e9cf['push'](_0x3bbb58);else{if(_0x5425ef['isRemoved']&&_0x3bbb58['isAdded']){const {commonTape:_0xf8420f,iEnd:_0xec9aaa,jEnd:_0x3b412a}=this['_threeWayMerge'](_0x3b78e7,_0x103c2e,_0x49f314,_0x5422da);_0x12e9cf=_0x12e9cf['concat'](_0xf8420f),_0x103c2e=_0xec9aaa,_0x5422da=_0x3b412a;}else _0x5425ef['isRemoved']?(_0x5422da++,_0x12e9cf['push'](_0x5425ef)):(_0x103c2e++,_0x12e9cf['push'](_0x3bbb58));}}return _0x12e9cf;}['_markSuggestions'](_0xa2e448,_0x2c6278){const _0x3b710b=[];for(let _0x4e7b2e=0x0;_0x4e7b2e<_0xa2e448['length'];_0x4e7b2e++){for(let _0x4d40a7=0x0;_0x4d40a7<_0xa2e448[_0x4e7b2e]['markersStart']['length'];_0x4d40a7++){const _0x28371a=_0xa2e448[_0x4e7b2e]['markersStart'][_0x4d40a7];if(!_0x2c6278['has'](_0x28371a))continue;const {group:_0x42357c,type:_0x35eabb,authorId:_0x46b587}=_0x2de3db(_0x28371a);'revision-suggestion'!=_0x42357c||'insertion'!=_0x35eabb&&'deletion'!=_0x35eabb||(_0x3b710b['unshift']({'type':_0x35eabb,'name':_0x28371a,'userId':_0x46b587}),_0xa2e448[_0x4e7b2e]['markersStart']['splice'](_0x4d40a7,0x1),_0x4d40a7--);}_0x546729(_0xa2e448[_0x4e7b2e]);for(let _0xad657a=0x0;_0xad657a<_0xa2e448[_0x4e7b2e]['markersEnd']['length'];_0xad657a++){const _0xa9ff67=_0xa2e448[_0x4e7b2e]['markersEnd'][_0xad657a];if(!_0x2c6278['has'](_0xa9ff67))continue;const {group:_0x36855c,type:_0xb86676}=_0x2de3db(_0xa9ff67);if('revision-suggestion'!=_0x36855c||'insertion'!=_0xb86676&&'deletion'!=_0xb86676)continue;_0xa2e448[_0x4e7b2e]['markersEnd']['splice'](_0xad657a,0x1),_0xad657a--;const _0x11ca27=_0x3b710b['findIndex'](_0x2b69ff=>_0x2b69ff['name']==_0xa9ff67);_0x11ca27>-0x1&&_0x3b710b['splice'](_0x11ca27,0x1);}}function _0x2de3db(_0x56b92e){const _0x23b5a4=_0x56b92e['split'](':');return{'group':_0x23b5a4[0x0],'type':_0x23b5a4[0x1],'subType':_0x23b5a4['length']>=0x5?_0x23b5a4[0x2]:null,'id':_0x23b5a4['length']<0x5?_0x23b5a4[0x2]:_0x23b5a4[0x3],'authorId':_0x23b5a4['length']<0x5?_0x23b5a4[0x3]:_0x23b5a4[0x4],'markerCount':0x6==_0x23b5a4['length']?_0x23b5a4[0x5]:null};}function _0x546729(_0x574cad){for(let _0x4fbf2e=0x0;_0x4fbf2e<_0x3b710b['length'];_0x4fbf2e++){if(_0x574cad['isAdded']&&'insertion'==_0x3b710b[_0x4fbf2e]['type'])return _0x574cad['isAddSuggestion']=_0x3b710b[_0x4fbf2e],void delete _0x574cad['isAdded'];if(!_0x574cad['isAdded']&&!_0x574cad['isRemoved']&&'deletion'==_0x3b710b[_0x4fbf2e]['type'])return void(_0x574cad['isRemoveSuggestion']=_0x3b710b[_0x4fbf2e]);}}}['_setDistance'](_0x5eb691,_0x9d5b63){let _0x32bad5=0x0,_0xda54b8=!0x1;const _0x1abdad=new Map();for(const _0x3c3637 of _0x5eb691)_0x3c3637[_0x9d5b63]?_0xda54b8&&(_0x32bad5++,_0xda54b8=!0x1):(_0x32bad5++,_0xda54b8=!0x0),_0x1abdad['set'](_0x3c3637['id'],_0x32bad5);for(let _0x30eb7b=0x0;_0x30eb7b<_0x5eb691['length'];_0x30eb7b++){if('isRemoved'==_0x9d5b63&&_0x5eb691[_0x30eb7b]['isAdded']||'isAdded'==_0x9d5b63&&_0x5eb691[_0x30eb7b]['isRemoved'])continue;if('text'==_0x5eb691[_0x30eb7b]['type']){_0x5eb691[_0x30eb7b]['distance']=0x0;continue;}const _0x1ad727=_0x1abdad['get'](_0x5eb691[_0x30eb7b]['pairId']),_0xa7b7bc=_0x1abdad['get'](_0x5eb691[_0x30eb7b]['id']);_0x5eb691[_0x30eb7b]['distance']=_0x1ad727-_0xa7b7bc;}}['_getRevisionsRange'](_0x54d32e,_0x73415d,_0x494fc4=!0x1){const _0x21f21a=[];let _0x34b290=this['repository']['getIndex'](_0x54d32e),_0x3c0f04=this['repository']['getIndex'](_0x73415d);for(-0x1==_0x3c0f04&&(_0x3c0f04=this['repository']['_revisions']['length'],_0x494fc4=!0x1);_0x34b290<_0x3c0f04;)_0x21f21a['push'](this['repository']['getRevision'](_0x34b290)),_0x34b290++;return _0x494fc4&&_0x21f21a['push'](this['repository']['getRevision'](_0x34b290)),_0x21f21a;}['_threeWayMerge'](_0x3c4648,_0x38a72b,_0x22511f,_0x23a234){const _0x29b18c=this['editor']['model']['schema'];let _0x2fc71f=_0x38a72b;for(;_0x3c4648[_0x2fc71f]&&_0x3c4648[_0x2fc71f]['isAdded'];)_0x2fc71f++;let _0x3ae6ec=_0x23a234;for(;_0x22511f[_0x3ae6ec]&&_0x22511f[_0x3ae6ec]['isRemoved'];)_0x3ae6ec++;_0x5bf930(_0x3c4648,_0x38a72b,_0x2fc71f),_0x5bf930(_0x22511f,_0x23a234,_0x3ae6ec);const _0x51454b=_0x22511f['slice'](_0x23a234,_0x3ae6ec)['concat'](_0x3c4648['slice'](_0x38a72b,_0x2fc71f));return _0x51454b['sort']((_0x44ab92,_0x1c9b07)=>_0x44ab92['side']!=_0x1c9b07['side']?_0x44ab92['side']-_0x1c9b07['side']:_0x44ab92['level']!=_0x1c9b07['level']?_0x44ab92['level']-_0x1c9b07['level']:_0x44ab92['distance']!=_0x1c9b07['distance']?_0x1c9b07['distance']-_0x44ab92['distance']:!!_0x44ab92['isAdded']!=!!_0x1c9b07['isAdded']?-0x1==_0x44ab92['side']||0x0==_0x44ab92['side']?_0x44ab92['isAdded']?-0x1:0x1:_0x44ab92['isAdded']?0x1:-0x1:_0x44ab92['index']-_0x1c9b07['index']),{'commonTape':_0x51454b,'iEnd':_0x2fc71f,'jEnd':_0x3ae6ec};function _0x5bf930(_0x59c2bb,_0x2d9bd7,_0x15c6f4){let _0x10083e=-0x1,_0xbad662=Number['POSITIVE_INFINITY'],_0x486bae=!0x0;for(let _0x1f90cb=_0x2d9bd7;_0x1f90cb<_0x15c6f4;_0x1f90cb++)if(_0x29b18c['isInline'](_0x59c2bb[_0x1f90cb]['item'])||(_0x486bae=!0x1),_0x59c2bb[_0x1f90cb]['item']['startIndex']<_0x2d9bd7&&(_0x10083e=_0x1f90cb),_0x59c2bb[_0x1f90cb]['item']['endIndex']>=_0x15c6f4){_0xbad662=_0x1f90cb;break;}_0x486bae&&(_0x10083e=_0x15c6f4-0x1);for(let _0x2b388f=_0x2d9bd7;_0x2b388f<_0x15c6f4;_0x2b388f++)_0x59c2bb[_0x2b388f]['side']=_0x2b388f<=_0x10083e?-0x1:_0x2b388f<_0xbad662?0x0:0x1,_0x59c2bb[_0x2b388f]['index']=_0x2b388f;let _0x3b0f76=0x0;for(let _0x1cda9c=_0x2d9bd7;_0x1cda9c<=_0x10083e;_0x1cda9c++)0x0==_0x59c2bb[_0x1cda9c]['distance']?_0x59c2bb[_0x1cda9c]['level']=_0x3b0f76:(_0x3b0f76++,_0x59c2bb[_0x1cda9c]['level']=_0x3b0f76,_0x3b0f76++);for(let _0x2f13a5=_0x2d9bd7;_0x2f13a5<_0x15c6f4;_0x2f13a5++)0x0==_0x59c2bb[_0x2f13a5]['side']&&(_0x59c2bb[_0x2f13a5]['level']=_0x3b0f76);_0x3b0f76=0x0;for(let _0x50a534=_0x15c6f4-0x1;_0x50a534>=_0xbad662;_0x50a534--)0x0==_0x59c2bb[_0x50a534]['distance']?_0x59c2bb[_0x50a534]['level']=_0x3b0f76:(_0x3b0f76--,_0x59c2bb[_0x50a534]['level']=_0x3b0f76,_0x3b0f76--);}}['_fixObsoleteTags'](_0x1eb5b0){const _0x77ac52=new Map(),_0x4b07e0=this['editor']['model']['schema'];for(let _0x4b0f2b=0x1;_0x4b0f2b<_0x1eb5b0['length'];_0x4b0f2b++){let _0x35e288,_0xf7ed8b,_0x2427d3;const _0x21be5e=_0x1eb5b0[_0x4b0f2b],_0x1cdf4a=_0x1eb5b0[_0x4b0f2b-0x1];if('text'==_0x21be5e['type'])continue;if(_0x21be5e['type']!=_0x1cdf4a['type'])continue;if(!_0x4b07e0['isBlock'](_0x1cdf4a['item'])||_0x4b07e0['isLimit'](_0x1cdf4a['item']))continue;if(!_0x4b07e0['isBlock'](_0x21be5e['item'])||_0x4b07e0['isLimit'](_0x21be5e['item']))continue;if((_0x1eb5b0[_0x4b0f2b]['isAdded']||_0x1eb5b0[_0x4b0f2b]['isAddSuggestion'])&&_0x1eb5b0[_0x4b0f2b-0x1]['isRemoved'])_0x35e288=_0x1eb5b0[_0x4b0f2b],_0xf7ed8b=_0x1eb5b0[_0x4b0f2b-0x1],_0x2427d3=_0x4b0f2b-0x1;else{if(!_0x1eb5b0[_0x4b0f2b]['isRemoved']||!_0x1eb5b0[_0x4b0f2b-0x1]['isAdded']&&!_0x1eb5b0[_0x4b0f2b-0x1]['isAddSuggestion'])continue;_0x35e288=_0x1eb5b0[_0x4b0f2b-0x1],_0xf7ed8b=_0x1eb5b0[_0x4b0f2b],_0x2427d3=_0x4b0f2b;}const _0x29d85a=_0x35e288['level']==_0xf7ed8b['level'],_0x4bf79c=Math['abs'](_0x35e288['level'])<Math['abs'](_0xf7ed8b['level'])&&0x0==_0xf7ed8b['distance'];(_0x29d85a||_0x4bf79c)&&(_0x77ac52['set'](_0xf7ed8b['id'],_0x35e288['id']),_0x1eb5b0['splice'](_0x2427d3,0x1),_0x4b0f2b--,_0x35e288['isAdded']=!0x1);}for(let _0x457bff=0x0;_0x457bff<_0x1eb5b0['length'];_0x457bff++)_0x77ac52['has'](_0x1eb5b0[_0x457bff]['pairId'])&&(_0x1eb5b0[_0x457bff]['pairId']=_0x77ac52['get'](_0x1eb5b0[_0x457bff]['pairId']));}['_removeMissingPairs'](_0x1fba8e){const _0x28ce27=new Set(_0x1fba8e['map'](_0x1ecf05=>_0x1ecf05['id']));for(let _0x1cb998=0x0;_0x1cb998<_0x1fba8e['length'];_0x1cb998++)_0x28ce27['has'](_0x1fba8e[_0x1cb998]['pairId'])||0x0==_0x1fba8e[_0x1cb998]['distance']||(_0x1fba8e[_0x1cb998]['isIncorrect']=!0x0);return _0x1fba8e['filter'](_0xf8518d=>!_0xf8518d['isIncorrect']);}['_markMismatchedRemovedTags'](_0x2f8f6e){const _0x5c22d3=new Set();for(let _0xe7b3c4=0x0;_0xe7b3c4<_0x2f8f6e['length'];_0xe7b3c4++){if(_0x5c22d3['has'](_0x2f8f6e[_0xe7b3c4]['id'])&&_0x2f8f6e[_0xe7b3c4]['isRemoved']&&(_0x2f8f6e[_0xe7b3c4]['isIncorrect']=!0x0),_0x2f8f6e[_0xe7b3c4]['isIncorrect'])continue;if(0x0==_0x2f8f6e[_0xe7b3c4]['distance'])continue;if('elementStart'!=_0x2f8f6e[_0xe7b3c4]['type'])continue;if(null==_0x2f8f6e[_0xe7b3c4]['pairId'])continue;let _0x2cb5df=_0xe7b3c4+0x1,_0x16cd88=0x0;for(;_0x2f8f6e[_0x2cb5df]['id']!=_0x2f8f6e[_0xe7b3c4]['pairId'];)'elementStart'==_0x2f8f6e[_0x2cb5df]['type']?_0x16cd88++:'elementEnd'==_0x2f8f6e[_0x2cb5df]['type']&&_0x16cd88--,_0x2cb5df++;if(0x0!=_0x16cd88){if(_0x2f8f6e[_0xe7b3c4]['isRemoved'])_0x2f8f6e[_0xe7b3c4]['isIncorrect']=!0x0;else{for(;_0x2cb5df!=_0xe7b3c4;)_0x2f8f6e[_0x2cb5df]['isRemoved']&&0x0!=_0x2f8f6e[_0x2cb5df]['distance']&&(_0x2f8f6e[_0x2cb5df]['isIncorrect']=!0x0,_0x5c22d3['add'](_0x2f8f6e[_0x2cb5df]['pairId'])),_0x2cb5df--;}}}return _0x2f8f6e['filter'](_0x484cb7=>!_0x484cb7['isIncorrect']);}['_removeUnsupportedChanges'](_0x1a31af){const _0x34e2e5=this['editor']['model']['schema'];for(let _0x2f76b8=0x0;_0x2f76b8<_0x1a31af['length'];_0x2f76b8++){if(!(_0x1a31af[_0x2f76b8]['isAdded']||_0x1a31af[_0x2f76b8]['isAddSuggestion']||_0x1a31af[_0x2f76b8]['isRemoved']||_0x1a31af[_0x2f76b8]['isRemoveSuggestion']))continue;if(0x0==_0x1a31af[_0x2f76b8]['distance'])continue;const _0x12cb6a=_0x1a31af[_0x2f76b8]['item'];_0x34e2e5['isBlock'](_0x12cb6a)||_0x34e2e5['isLimit'](_0x12cb6a)||(_0x1a31af[_0x2f76b8]['isAdded']&&delete _0x1a31af[_0x2f76b8]['isAdded'],_0x1a31af[_0x2f76b8]['isAddSuggestion']&&delete _0x1a31af[_0x2f76b8]['isAddSuggestion'],_0x1a31af[_0x2f76b8]['isRemoveSuggestion']&&delete _0x1a31af[_0x2f76b8]['isRemoveSuggestion'],_0x1a31af[_0x2f76b8]['isRemoved']&&(_0x1a31af[_0x2f76b8]['isIncorrect']=!0x0));}return _0x1a31af['filter'](_0x1aa70e=>!_0x1aa70e['isIncorrect']);}['_makeModelFromTape'](_0x3c6086,_0x63d8,_0x460c0b){const _0x44484b=new gt(),_0x18c74d=[],_0x2d3229=new Map(),_0x2cc982=this['editor']['model'],_0x30cab6=_0x2cc982['schema'],_0x46006c=[_0x44484b],_0x20d889={},_0x1c4f0f={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x4b698d=null;const _0x13578e=[0x0];for(let _0x1f9c0b=0x0;_0x1f9c0b<_0x3c6086['length'];_0x1f9c0b++)if('elementStart'===_0x3c6086[_0x1f9c0b]['type']){_0x3c6086[_0x1f9c0b]['previousPosition']=_0x2cc982['createPositionFromPath'](_0x44484b,_0x13578e);const _0x3b3e27=new ut(_0x3c6086[_0x1f9c0b]['item']['name'],_0x3c6086[_0x1f9c0b]['item']['getAttributes']());_0x46006c[0x0]['_appendChild'](_0x3b3e27),_0x13578e['push'](0x0),_0x46006c['unshift'](_0x3b3e27),_0x3c6086[_0x1f9c0b]['nextPosition']=_0x2cc982['createPositionFromPath'](_0x44484b,_0x13578e);}else'elementEnd'===_0x3c6086[_0x1f9c0b]['type']?(_0x46006c['shift'](),_0x3c6086[_0x1f9c0b]['previousPosition']=_0x2cc982['createPositionFromPath'](_0x44484b,_0x13578e),_0x13578e['pop'](),_0x13578e[_0x13578e['length']-0x1]++,_0x3c6086[_0x1f9c0b]['nextPosition']=_0x2cc982['createPositionFromPath'](_0x44484b,_0x13578e)):(_0x3c6086[_0x1f9c0b]['previousPosition']=_0x2cc982['createPositionFromPath'](_0x44484b,_0x13578e),_0x4b698d?_0x4b698d['_data']+=_0x3c6086[_0x1f9c0b]['item']['data']:_0x4b698d=new mt(_0x3c6086[_0x1f9c0b]['item']['data'],_0x3c6086[_0x1f9c0b]['item']['getAttributes']()),_0x3c6086[_0x1f9c0b+0x1]&&'text'===_0x3c6086[_0x1f9c0b+0x1]['type']&&_0x37fb1e(_0x4b698d,_0x3c6086[_0x1f9c0b+0x1]['item'])||(_0x46006c[0x0]['_appendChild'](_0x4b698d),_0x4b698d=null),_0x13578e[_0x13578e['length']-0x1]+=_0x3c6086[_0x1f9c0b]['item']['offsetSize'],_0x3c6086[_0x1f9c0b]['nextPosition']=_0x2cc982['createPositionFromPath'](_0x44484b,_0x13578e));for(let _0x12eb51=0x0;_0x12eb51<_0x3c6086['length'];_0x12eb51++){const _0x4feed5=_0x3c6086[_0x12eb51]['previousPosition'],_0x1e9965=_0x3c6086[_0x12eb51]['nextPosition'];for(const _0x20dd6f of _0x3c6086[_0x12eb51]['markersStart'])_0x2d3229['set'](_0x20dd6f,{'start':_0x4feed5,'end':null});_0x43cad1('isRemoveSuggestion',_0x12eb51,_0x4feed5,_0x1e9965),_0x43cad1('isAddSuggestion',_0x12eb51,_0x4feed5,_0x1e9965),_0x43cad1('isRemoved',_0x12eb51,_0x4feed5,_0x1e9965),_0x43cad1('isAdded',_0x12eb51,_0x4feed5,_0x1e9965);for(const _0x2d7e43 of _0x3c6086[_0x12eb51]['markersEnd']){const _0x583ef5=_0x2d3229['get'](_0x2d7e43);_0x583ef5?_0x583ef5['end']=_0x1e9965:_0x2d3229['set'](_0x2d7e43,{'start':_0x1e9965,'end':_0x1e9965});}}for(const [_0x356fb8,_0x130368]of _0x2d3229){const _0x172b95=this['editor']['model']['createRange'](_0x130368['start'],_0x130368['end']);_0x44484b['markers']['set'](_0x356fb8,_0x172b95);}return _0x18c74d['sort']((_0x121507,_0x9b4f64)=>{const _0x411cac=_0x44484b['markers']['get']('revision:'+_0x121507['id']),_0x55ab79=_0x44484b['markers']['get']('revision:'+_0x9b4f64['id']);return _0x411cac['start']['isBefore'](_0x55ab79['start'])?-0x1:_0x411cac['start']['isAfter'](_0x55ab79['start'])?0x1:_0x411cac['end']['isBefore'](_0x55ab79['end'])?-0x1:_0x411cac['end']['isAfter'](_0x55ab79['end'])?0x1:'add'===_0x121507['type']?-0x1:0x1;}),{'root':_0x44484b,'changes':_0x18c74d};function _0x43cad1(_0x1649d6,_0x1bfa58,_0x979ec3,_0x2d0825){const _0x55fd2e=!!_0x3c6086[_0x1bfa58][_0x1649d6],_0x430b48=_0x55fd2e?_0x3c6086[_0x1bfa58][_0x1649d6]['userId']:null,_0x5876a0=_0x1bfa58===_0x3c6086['length']-0x1,_0x5f0c42=_0x1c4f0f[_0x1649d6][0x0],_0x5cfd22=_0x30cab6['isObject'](_0x3c6086[_0x1bfa58]['item']);!_0x20d889[_0x1649d6]&&_0x55fd2e?_0x20d889[_0x1649d6]={'start':_0x979ec3,'tapeItem':_0x3c6086[_0x1bfa58],'userId':_0x430b48,'type':_0x1649d6}:_0x20d889[_0x1649d6]&&!_0x55fd2e?(_0x20d889[_0x1649d6]['end']=_0x979ec3,_0x23523d(_0x20d889[_0x1649d6]),_0x20d889[_0x1649d6]=null):_0x20d889[_0x1649d6]&&_0x55fd2e&&_0x20d889[_0x1649d6]['userId']!==_0x430b48&&(_0x20d889[_0x1649d6]['end']=_0x979ec3,_0x5f0c42&&_0x5f0c42['userId']===_0x20d889[_0x1649d6]['userId']||_0x23523d(_0x20d889[_0x1649d6]),_0x20d889[_0x1649d6]={'start':_0x979ec3,'tapeItem':_0x3c6086[_0x1bfa58],'userId':_0x430b48,'type':_0x1649d6}),_0x20d889[_0x1649d6]&&_0x5cfd22&&('elementStart'!==_0x3c6086[_0x1bfa58]['type']||_0x5f0c42&&_0x5f0c42['userId']===_0x430b48||_0x1c4f0f[_0x1649d6]['unshift']({'userId':_0x430b48,'object':_0x3c6086[_0x1bfa58]['item'],'change':_0x20d889[_0x1649d6]}),'elementEnd'===_0x3c6086[_0x1bfa58]['type']&&_0x5f0c42&&_0x5f0c42['object']===_0x3c6086[_0x1bfa58]['item']&&(_0x1c4f0f[_0x1649d6]['shift'](),_0x20d889[_0x1649d6]=_0x5f0c42['change'])),_0x20d889[_0x1649d6]&&_0x5876a0&&(_0x20d889[_0x1649d6]['end']=_0x2d0825,_0x23523d(_0x20d889[_0x1649d6]),_0x20d889[_0x1649d6]=null);}function _0x23523d({start:_0x4d01c5,end:_0x38bad3,tapeItem:_0xc7cdea,userId:_0xe64da7,type:_0x5609ca}){const _0x284304=_0xc7cdea['item'],_0x4d47d7=_0x2cc982['schema']['isBlock'](_0x284304)&&!_0x2cc982['schema']['isLimit'](_0x284304),_0x35214c=_0x4d01c5['nodeAfter']==_0x38bad3['parent']&&_0x38bad3['isAtStart'];if(_0x4d47d7&&_0x35214c)return;const _0x542f78=_0x2cc982['createRange'](_0x4d01c5,_0x38bad3),_0x29d94c=_0x63d8['get'](_0xe64da7),_0x2b3898=new r({'author':_0x29d94c,'type':'isAdded'==_0x5609ca||'isAddSuggestion'==_0x5609ca?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x5609ca||'isRemoveSuggestion'==_0x5609ca},'createdAt':new Date(),'rootName':_0x460c0b});_0x18c74d['push'](_0x2b3898),_0x44484b['markers']['set']('revision:'+_0x2b3898['id'],_0x542f78);}function _0x37fb1e(_0x284499,_0x1217c1){const _0x3269bf=_0x284499['getAttributes'](),_0x5170a1=_0x1217c1['getAttributes']();for(const _0x37f5c9 of _0x3269bf){if(_0x37f5c9[0x1]!==_0x1217c1['getAttribute'](_0x37f5c9[0x0]))return!0x1;_0x5170a1['next']();}return _0x5170a1['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x261d72=>{const _0x5db1b3=_0x261d72['markerName']['split'](':')[0x1],_0x4ac4f7=this['_getChangeFromId'](_0x5db1b3);if(!_0x4ac4f7)return null;const _0xeecad8='add'==_0x4ac4f7['type']?'insertion':'deletion',_0xd49a0=['ck-suggestion-marker','ck-suggestion-marker-'+_0xeecad8];return _0x4ac4f7['data']['isSuggestion']&&_0xd49a0['push']('ck-suggestion-marker-'+_0xeecad8+'-new'),this['activeChange']==_0x4ac4f7&&_0xd49a0['push']('ck-suggestion-marker--active'),{'classes':_0xd49a0,'attributes':{'data-change-id':_0x5db1b3}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x4ffd30=>{_0x4ffd30['on']('element:pre',(_0xb25ee7,_0x5e59d5,_0xeae2c6)=>{const _0xd1bf74=_0x5e59d5['viewItem']['getChild'](0x0);if(!_0xd1bf74||!_0xd1bf74['is']('element','code'))return;if(!_0xeae2c6['consumable']['consume'](_0xd1bf74,{'attributes':['vid_start','vid_end']}))return;const _0xbbf240=_0x5e59d5['modelRange']['start']['nodeAfter'];_0xeae2c6['writer']['setAttribute']('vid_start',_0xd1bf74['getAttribute']('vid_start'),_0xbbf240),_0xeae2c6['writer']['setAttribute']('vid_end',_0xd1bf74['getAttribute']('vid_end'),_0xbbf240);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x1e0cb7=>{_0x1e0cb7['on']('element',(_0x31fb1d,_0x6db003,_0x3e25a8)=>{if(!_0x3e25a8['consumable']['consume'](_0x6db003['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x6db003['modelRange']['isCollapsed'])return;const _0x4dd6bd=_0x6db003['modelRange']['start']['nodeAfter'];_0x4dd6bd['hasAttribute']('vid_start')||_0x4dd6bd['hasAttribute']('vid')||(_0x3e25a8['writer']['setAttribute']('vid_start',_0x6db003['viewItem']['getAttribute']('vid_start'),_0x4dd6bd),_0x3e25a8['writer']['setAttribute']('vid_end',_0x6db003['viewItem']['getAttribute']('vid_end'),_0x4dd6bd));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x27a6f8=>_0x27a6f8['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x5ddba6,[,_0x44644b])=>{['vid_start','vid_end','vid']['includes'](_0x44644b)&&(_0x5ddba6['return']=!0x0,_0x5ddba6['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x30eb13=>{_0x30eb13['on']('attribute:vid',(_0x2d6111,_0x2bf44c,_0x37a6a9)=>{if('\x20'!=_0x2bf44c['item']['data']||_0x2bf44c['item']['parent']['maxOffset']>0x1)return;if(!_0x37a6a9['consumable']['consume'](_0x2bf44c['item'],_0x2d6111['name']))return;const _0x52378c=_0x37a6a9['writer'],_0x389c0e=_0x37a6a9['mapper']['toViewRange'](_0x2bf44c['range']);_0x52378c['wrap'](_0x389c0e,_0x52378c['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x13ec0d){const _0x3b6786=_0x13ec0d['plugins']['get']('RevisionViewer');return(_0x2778f0,_0x2e9fec,_0x45090c)=>{const _0x41a0ef=_0x2e9fec['markerName']['split'](':')[0x1],_0x4fc7ef=_0x3b6786['_getChangeFromId'](_0x41a0ef);if(!_0x4fc7ef)return null;const _0x1e79f0='add'==_0x4fc7ef['type']?'split':'merge';if(!_0x45090c['consumable']['test'](_0x2e9fec['markerRange'],_0x2778f0['name']))return;const _0x3cae4d=_0x2e9fec['markerRange']['getWalker'](),_0x185c4c=_0x2e9fec['markerRange']['start'],_0x247afc=_0x13ec0d['model']['schema'];let _0x170157=null,_0x20e003=null,_0x36ad10=!0x1,_0x57bb06=!0x1;for(const _0x2d720d of _0x3cae4d){const _0x2c0ba3=_0x2d720d['item'];_0x36ad10=_0x36ad10||_0x247afc['isContent'](_0x2c0ba3);const _0x4259d7=_0x45090c['mapper']['toViewElement'](_0x2c0ba3);if(_0x4259d7&&_0x4259d7['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2d720d['type']&&(_0x247afc['isBlock'](_0x2c0ba3)&&!_0x247afc['isLimit'](_0x2c0ba3)&&(_0x2c0ba3['nextSibling']||_0x185c4c['isAtEnd']?_0x170157&&_0x170157['parent']==_0x2c0ba3||(_0x170157=_0x2c0ba3,_0x3cbdd6(_0x2d720d['previousPosition']),_0x57bb06=!0x0):_0x20e003=_0x20e003||_0x2d720d['previousPosition']));}function _0x3cbdd6(_0x2683ca){const _0xed4759=_0x45090c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1e79f0}),_0x278133=_0x45090c['mapper']['toViewPosition'](_0x2683ca);_0x4fc7ef['data']['isSuggestion']&&_0x45090c['writer']['addClass']('ck-suggestion-marker-'+_0x1e79f0+'-new',_0xed4759),_0x3b6786['activeChange']==_0x4fc7ef&&_0x45090c['writer']['addClass']('ck-suggestion-marker--active',_0xed4759),_0x45090c['writer']['insert'](_0x278133,_0xed4759),_0x45090c['mapper']['bindElementToMarker'](_0xed4759,_0x2e9fec['markerName']);}_0x36ad10||_0x57bb06||!_0x20e003||_0x3cbdd6(_0x20e003);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x1bca4,_0xf3fd99,_0x208f24)=>{const _0x2ecebb=_0x208f24['mapper']['markerNameToElements'](_0xf3fd99['markerName']);if(_0x2ecebb){for(const _0x14fbe5 of _0x2ecebb)(_0x14fbe5['hasClass']('ck-suggestion-marker-split')||_0x14fbe5['hasClass']('ck-suggestion-marker-merge'))&&(_0x208f24['mapper']['unbindElementFromMarkerName'](_0x14fbe5,_0xf3fd99['markerName']),_0x208f24['writer']['remove'](_0x14fbe5));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0xf5af03,_0x1c8680,_0x5d7db6)=>{const _0x30da17=_0x1c8680['markerName']['split'](':')[0x1],_0x38b702=this['_getChangeFromId'](_0x30da17);if(!_0x38b702)return null;const _0xfea783='add'==_0x38b702['type']?'split':'merge';if(_0x5d7db6['consumable']['test'](_0x1c8680['markerRange'],_0xf5af03['name']))for(const _0x453a1c of _0x1c8680['markerRange']['getItems']()){if(!_0x453a1c['is']('element','softBreak'))continue;const _0x1127b6=_0x5d7db6['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xfea783}),_0x4b49bd=_0x5d7db6['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x453a1c));_0x38b702['data']['isSuggestion']&&_0x5d7db6['writer']['addClass']('ck-suggestion-marker-'+_0xfea783+'-new',_0x1127b6),this['activeChange']==_0x38b702&&_0x5d7db6['writer']['addClass']('ck-suggestion-marker--active',_0x1127b6),_0x5d7db6['writer']['insert'](_0x4b49bd,_0x1127b6),_0x5d7db6['mapper']['bindElementToMarker'](_0x1127b6,_0x1c8680['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x5cb50d=>{for(const _0xdc1455 of this['editor']['model']['document']['getRootNames']()){const _0x1e82a0=this['editor']['model']['document']['getRoot'](_0xdc1455),_0x273960=this['editor']['editing']['view']['document']['getRoot'](_0xdc1455);if(_0x273960){const _0x4e02bb=_0x1e82a0['getAttribute']('revisionHistoryAttachChange');if(_0x5cb50d['removeAttribute']('data-change-id',_0x273960),_0x5cb50d['removeClass']('ck-revision-history-root-add',_0x273960),_0x5cb50d['removeClass']('ck-revision-history-root-remove',_0x273960),_0x5cb50d['removeClass']('ck-revision-history-root--active',_0x273960),_0x4e02bb){const _0x317202=this['_getChangeFromId'](_0x4e02bb);if(!_0x317202)return null;_0x5cb50d['setAttribute']('data-change-id',_0x4e02bb,_0x273960),_0x5cb50d['addClass']('ck-revision-history-root-'+_0x317202['type'],_0x273960),this['activeChange']==_0x317202&&_0x5cb50d['addClass']('ck-revision-history-root--active',_0x273960);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x28e9af=>'revision-comment:'+_0x28e9af,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x1c49fe=>'revision-suggestion:'+_0x1c49fe,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x2d8bc3=>({'name':'suggestion:'+_0x2d8bc3,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x50b49a=>{const _0x338445=_0x50b49a['markerName']['split'](':')[0x1];return'insertion'!=_0x338445&&'deletion'!=_0x338445?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x338445]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',X(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',X(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x398b2c,_0x42adf3,_0x49eeb8)=>{const _0x31cec4=_0x49eeb8['mapper']['markerNameToElements'](_0x42adf3['markerName']);if(_0x31cec4){for(const _0x531da7 of _0x31cec4)_0x531da7['is']('uiElement')&&(_0x49eeb8['mapper']['unbindElementFromMarkerName'](_0x531da7,_0x42adf3['markerName']),_0x49eeb8['writer']['remove'](_0x531da7));}},{'priority':'high'});}['_getChangeFromId'](_0x28601b){return this['_changeIdToChange']['get'](_0x28601b);}['_getViewForChange'](_0x44e8ed){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x44e8ed),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x449526,_0x174214,_0x14f1f6,_0x27dbe0)=>{_0x27dbe0&&this['_balloon']['remove'](_0x27dbe0),_0x14f1f6&&(this['_balloon']['add']({'view':_0x14f1f6,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x20e2c1=this['editor']['editing'],_0x1f0e5e=this['_getChangeFromId'](_0x14f1f6['changeId']);let _0x1daae6;if(_0x1f0e5e['data']['isOnRoot']){const _0x263022=_0x20e2c1['view']['getDomRoot'](_0x1f0e5e['rootName']);_0x1daae6=Array['from'](_0x263022['getClientRects']());}else{const _0x3783ff=this['editor']['model']['markers']['get']('revision:'+_0x14f1f6['changeId']);_0x1daae6=Array['from'](_0x20e2c1['mapper']['markerNameToElements'](_0x3783ff['name']))['map'](_0x36bed9=>_0x20e2c1['view']['domConverter']['mapViewToDom'](_0x36bed9))['map'](_0x6b7da0=>Array['from'](_0x6b7da0['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x1daae6[0x0];return _0x1daae6['find'](_0xb2019d=>_0xb2019d['top']-0x3<=this['_activeViewTarget']['y']&&_0xb2019d['bottom']+0x3>=this['_activeViewTarget']['y']&&_0xb2019d['left']-0x3<=this['_activeViewTarget']['x']&&_0xb2019d['right']+0x3>=this['_activeViewTarget']['x'])||_0x1daae6[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x23d35f,_0xbe9171,_0x44b9ac,_0x458e34)=>{this['activeView']=_0x44b9ac?this['_getViewForChange'](_0x44b9ac):null,this['editor']['model']['change'](()=>{const _0x363887=this['editor']['editing'];_0x458e34&&(_0x458e34['data']['isOnRoot']?_0x363887['view']['change'](_0x39d681=>{_0x39d681['removeClass']('ck-revision-history-root--active',_0x363887['view']['document']['getRoot'](_0x458e34['rootName']));}):_0x363887['reconvertMarker']('revision:'+_0x458e34['id'])),_0x44b9ac&&(_0x44b9ac['data']['isOnRoot']?_0x363887['view']['change'](_0x331c72=>{_0x331c72['addClass']('ck-revision-history-root--active',_0x363887['view']['document']['getRoot'](_0x44b9ac['rootName']));}):_0x363887['reconvertMarker']('revision:'+_0x44b9ac['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x579b6c,_0x2937cf)=>{if(this['activeChange'])return;const _0x5224cd=this['_findChangeIdFromDomTarget'](_0x2937cf['target']),_0xbdead6=this['_changeIdToChange']['get'](_0x5224cd);_0xbdead6?(this['_activeViewTarget']={'x':_0x2937cf['domEvent']['x'],'y':_0x2937cf['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0xbdead6)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x4e0617,_0x1a4c83)=>{const _0x723873=this['_findChangeIdFromDomTarget'](_0x1a4c83['target']),_0x18b9d5=this['_changeIdToChange']['get'](_0x723873);_0x18b9d5?(this['_activeViewTarget']={'x':_0x1a4c83['domEvent']['x'],'y':_0x1a4c83['domEvent']['y']},_0x18b9d5===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x18b9d5):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x3c698c){do{const _0x39b90b=_0x3c698c['getAttribute']('data-change-id');if(_0x39b90b)return _0x39b90b;_0x3c698c=_0x3c698c['parent'];}while(_0x3c698c);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x3ff83c=>{for(const _0x40eeac of this['editor']['model']['markers'])_0x3ff83c['removeMarker'](_0x40eeac);});}}function X(_0x2b4b38,_0x282bc7){return(_0x2c5448,_0x84c796,_0x303e41)=>{if(!_0x303e41['consumable']['test'](_0x84c796['markerRange'],_0x2c5448['name']))return;const _0x183c24=_0x84c796['markerRange']['getWalker'](),_0x385208=_0x84c796['markerRange']['start'],_0x5c62e5=_0x2b4b38['model']['schema'];let _0x2d58e0=null,_0x4ab9b2=null,_0x1f63d=!0x1,_0x559d37=!0x1;for(const _0x2415a0 of _0x183c24){const _0x366ede=_0x2415a0['item'];_0x1f63d=_0x1f63d||_0x5c62e5['isContent'](_0x366ede);const _0x2b2032=_0x303e41['mapper']['toViewElement'](_0x366ede);if(_0x2b2032&&_0x2b2032['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2415a0['type']&&(_0x5c62e5['isBlock'](_0x366ede)&&!_0x5c62e5['isLimit'](_0x366ede)&&(_0x366ede['nextSibling']||_0x385208['isAtEnd']?_0x2d58e0&&_0x2d58e0['parent']==_0x366ede||(_0x2d58e0=_0x366ede,_0x130881(_0x2415a0['previousPosition']),_0x559d37=!0x0):_0x4ab9b2=_0x4ab9b2||_0x2415a0['previousPosition']));}function _0x130881(_0x45eb60){const _0x1a19a2=_0x303e41['mapper']['toViewPosition'](_0x45eb60),_0x3a94e0=_0x303e41['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x282bc7});_0x303e41['writer']['insert'](_0x1a19a2,_0x3a94e0),_0x303e41['mapper']['bindElementToMarker'](_0x3a94e0,_0x84c796['markerName']);}_0x1f63d||_0x559d37||!_0x4ab9b2||_0x130881(_0x4ab9b2);};}class wt extends _0x4ef64c{constructor(_0x498d21){super(_0x498d21);const _0x56ba60=_0x498d21['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x56ba60,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x56ba60,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x1418e3=this['editor'],_0x14daea=_0x1418e3['plugins']['get'](m),_0x4ef159=_0x14daea['isReady']?_0x14daea['diff']['newRevisionId']:null;_0x1418e3['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x4ef159);}['refresh'](){const {isReady:_0x3abaa9,isEnabled:_0x400675,repository:_0x8f2141,diff:_0x19d06f}=this['editor']['plugins']['get'](m),_0x4f31f8=_0x19d06f&&_0x8f2141['getLaterVisibleRevision'](_0x19d06f['newRevisionId']);this['isEnabled']=_0x3abaa9&&_0x400675&&Boolean(_0x4f31f8);}}class pt extends _0x4ef64c{['_step'];constructor(_0x4f681d,{direction:_0x4de1ac}){super(_0x4f681d);const _0x1d6c75=_0x4f681d['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x4de1ac?0x1:-0x1,this['listenTo'](_0x1d6c75,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x1d6c75,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x1d6c75,'change:activeChange',()=>this['refresh']());}['execute'](){const _0xdfaeb5=this['editor'],_0x6a8fdd=_0xdfaeb5['plugins']['get'](m),{isNavigationMode:_0x281721,currentChangeNumber:_0x4fa5e0}=_0x6a8fdd;let _0x35ffe5;if(_0x6a8fdd['activeChange']=_0x281721?_0x6a8fdd['diff']['changes']['get'](_0x4fa5e0+this['_step']):_0x6a8fdd['diff']['changes']['first'],_0x6a8fdd['activeChange']['data']['isOnRoot'])_0x35ffe5=_0xdfaeb5['editing']['view']['getDomRoot'](_0x6a8fdd['activeChange']['rootName']);else{const _0xd94527=_0xdfaeb5['model']['markers']['get']('revision:'+_0x6a8fdd['activeChange']['id']);_0x35ffe5=_0x5aa4e2(_0xdfaeb5['editing'],_0xd94527);}_0x2015be({'target':_0x35ffe5,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x267ac1,currentChangeNumber:_0x113f68,numberOfChanges:_0x4c913d,isReady:_0xca304b,isEnabled:_0x3fcec7}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x3fcec7&&_0xca304b&&_0x4c913d)&&(!_0x267ac1||(0x1===this['_step']?_0x113f68<_0x4c913d-0x1:_0x113f68>0x0));}}class _i extends _0x17ef9f{constructor(_0x40739b){super(_0x40739b);const _0x2cd3be=this['bindTemplate'],_0x1d2c55=new _0x3e98f4(_0x40739b),_0x45c7d2=new _0x3e98f4(_0x40739b);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',(_0x34f387,_0x1552e3)=>_0x34f387&&_0x1552e3>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x5afcd9,_0x4f1e6b,_0x14003c,_0x422b1b)=>{if(!_0x5afcd9)return g(_0x40739b,'Loading...');if(!_0x14003c)return g(_0x40739b,'No\x20changes');const _0x1c1f67=g(_0x40739b,'NUMBER_OF_CHANGES',_0x14003c);return _0x422b1b?g(_0x40739b,'X_OF_Y_CHANGES',[_0x4f1e6b+0x1,_0x14003c]):_0x1c1f67;}),_0x1d2c55['set']({'label':g(_0x40739b,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x1df1ea}),_0x45c7d2['set']({'label':g(_0x40739b,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x3a90be}),_0x1d2c55['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x45c7d2['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x1d2c55['on']('execute',()=>this['fire']('execute','backward')),_0x45c7d2['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',_0x2cd3be['if']('_isStatusLabelVisible','ck-hidden',_0x59dd1e=>!_0x59dd1e)]},'children':[{'text':_0x2cd3be['to']('isNavigationMode',_0x2f1e70=>_0x2f1e70?g(_0x40739b,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x40739b,'Total')+':\x20')}]},{'text':_0x2cd3be['to']('_statusText')}]},new _0x32038c(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x1d2c55,_0x45c7d2]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x365de9{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x18c0f0=this['editor']['editing']['view'];_0x18c0f0['change'](_0x2fe7e0=>{for(const _0x1e371e of _0x18c0f0['document']['roots'])_0x2fe7e0['addClass'](ce,_0x1e371e);});}['hide'](){const _0x551a14=this['editor']['editing']['view'];_0x551a14['change'](_0x30bffc=>{for(const _0x2f574b of _0x551a14['document']['roots'])_0x30bffc['removeClass'](ce,_0x2f574b);});}}class R extends _0x365de9{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,le];}['init'](){const _0x5b05b9=this['editor'],_0x5d76d9=_0x5b05b9['plugins']['get'](m),_0x73f61f=_0x5b05b9['plugins']['get'](le);_0x5b05b9['ui']['componentFactory']['add']('exitToEditing',_0x57f0e6=>{const _0x41001f=new _0x3e98f4(_0x57f0e6);return _0x41001f['set']({'label':g(_0x57f0e6,'Back\x20to\x20editing'),'icon':_0x2dd350,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x41001f,'execute',()=>{_0x5b05b9['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x41001f;}),_0x5b05b9['ui']['componentFactory']['add']('restoreRevision',_0x199350=>{const _0xa540e0=new _0x3e98f4(_0x199350);return _0xa540e0['set']({'label':g(_0x199350,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0xa540e0['bind']('isEnabled')['to'](_0x5b05b9['commands']['get']('restoreRevision')),this['listenTo'](_0xa540e0,'execute',()=>_0x5b05b9['execute']('restoreRevision')),_0xa540e0;}),_0x5b05b9['ui']['componentFactory']['add']('changesNavigation',_0x56c6a3=>{const _0x573b9f=new _i(_0x56c6a3),_0x431bfa=_0x5b05b9['commands']['get']('showPreviousChange'),_0x59de6c=_0x5b05b9['commands']['get']('showNextChange');return _0x573b9f['bind']('isBackwardNavigationEnabled')['to'](_0x431bfa,'isEnabled'),_0x573b9f['bind']('isForwardNavigationEnabled')['to'](_0x59de6c,'isEnabled'),_0x573b9f['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x5d76d9),this['listenTo'](_0x573b9f,'execute',(_0x1811af,_0x5b71ab)=>{_0x5b05b9['execute']('forward'===_0x5b71ab?'showNextChange':'showPreviousChange');}),_0x573b9f;}),_0x73f61f['show'](),_0x5d76d9['on']('change:isReady',(_0x41e60b,_0x1abbe4,_0x15a67e)=>{_0x15a67e?_0x73f61f['hide']():_0x73f61f['show']();});}}class lt extends nt{['_resizeObserver']=null;constructor(_0x28d4da,_0xf77f84){super(_0x28d4da,_0xf77f84);const _0x14c31f=this['bindTemplate'];this['set']({'label':g(_0x28d4da,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x28d4da,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x14c31f['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 _0x5c88b5=this['fieldView']['element'];this['_tooltipString']=_0x5c88b5['scrollWidth']>_0x5c88b5['clientWidth']&&_0x5c88b5['value']||'';}}class oi extends _0x17ef9f{constructor(_0x4abd53,_0x507dce,_0x30789c){super(_0x4abd53);const _0x43e6c4=new _0x340d0a();_0x43e6c4['set']({'content':_0x401b4b,'viewBox':'0\x200\x2011\x2010'});const _0x30f519=['ck','ck-revision-history-sidebar__revision-author'];_0x30789c&&_0x30f519['push']('ck-revision-history-sidebar__revision-author_creator');const _0x16cd8d=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x4abd53,_0x30789c?'Revision\x20creator':'Revision\x20author')},'children':[_0x43e6c4,_0x507dce['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x30f519},'children':_0x16cd8d});}}function ni(_0x1109cd,_0x292129){const _0xa702e1=_0x1109cd['bindTemplate'],_0x34d961=_0x1109cd['locale'],_0x342973=_0x5b51c1(_0x34d961);_0x342973['panelPosition']='sw';const _0x1c0000=function(_0xc3569f,_0x440c5a){const _0x7031c2=function(_0x317f29,_0x2b261e){const _0xd8434f=_0x317f29['locale'],_0x173e25={'Compare\x20against\x20selected':g(_0xd8434f,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0xd8434f,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0xd8434f,'Restore\x20this\x20revision')};return _0x2b261e['map'](_0x3dff43=>{const _0x29f36f=_0x173e25[_0x3dff43['name']];return _0x29f36f&&_0x29f36f!==_0x3dff43['name']&&(_0x3dff43['name']=_0x29f36f),_0x3dff43;});}(_0xc3569f,_0x440c5a),_0x61b34a=new _0x1d0d98();for(const _0x534ccc of _0x7031c2){const _0x19bdee={'type':'button','model':new to({'label':_0x534ccc['name'],'class':_0x534ccc['class'],'withText':!0x0,'role':'menuitem','_action':_0x534ccc['action']})};_0x19bdee['model']['bind']('isEnabled')['to'](_0xc3569f,'isActionsDropdownOpen',_0x1f57a2=>'function'!=typeof _0x534ccc['isEnabled']||(!_0x1f57a2||_0x534ccc['isEnabled'](_0xc3569f))),_0x61b34a['add'](_0x19bdee);}return _0x61b34a;}(_0x1109cd,_0x292129);return _0x1109cd['bind']('isActionsDropdownOpen')['to'](_0x342973,'isOpen'),_0x342973['buttonView']['set']({'label':g(_0x34d961,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x1036e6}),_0x342973['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0xa702e1['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0xa702e1['to'](_0x30402e=>_0x30402e['stopPropagation']())}}),_0x342973['on']('execute',_0x3ddcc3=>{_0x1109cd['isReady']&&'function'==typeof _0x3ddcc3['source']['_action']&&_0x3ddcc3['source']['_action'](_0x1109cd);}),_0xd77a24(_0x342973,_0x1c0000,{'role':'menu'}),_0x342973['listenTo'](_0x1109cd,'change:isActionsDropdownOpen',(_0x48f766,_0x3d302d,_0x1e802b)=>{if(_0x1e802b)for(const _0xb96b38 of _0x342973['listView']['items']){const _0x4f08b0=_0xb96b38['children']['first'],_0x26aedf=_0x292129['find'](_0x7de8f9=>_0x7de8f9['action']===_0x4f08b0['_action'])['isVisible'];_0xb96b38['isVisible']=void 0x0===_0x26aedf||_0x26aedf(_0x1109cd);}}),_0x342973;}class ai extends/* #__PURE__ -- @preserve */
|
|
26
|
-
|
|
23
|
+
import{ObservableMixin as _0x10ab85,uid as _0x521db4,Collection as _0x346a75,logWarning as _0x1e5f64,FocusTracker as _0x172b14,KeystrokeHandler as _0x3da32d,scrollViewportToShowTarget as _0x1de65e,ResizeObserver as at,ElementReplacer as ot,CKEditorError as _0x2ff414}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x117a5a,set as _0xc49932,unset as _0x21c915,isEqual as _0x3d0bbf}from'es-toolkit/compat';import{Plugin as _0x34d9d9,PendingActions as _0x2967a6,Command as _0x401a09,ElementApiMixin as _0x355854,Editor as _0x338cea}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x3ff113,getMarkerDomElement as _0x1796b3,ConfirmMixin as _0x3e6a22,sanitizeEditorConfig as _0x1ebec0}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x218692,ViewAttributeElement as _0x4d26f,ViewEmptyElement as _0x481677,ViewRawElement as _0x5e1304,ViewUIElement as _0x5bfdda,ViewDocumentFragment as _0x4b5547,ViewText as _0x3cf18d,ViewElement as _0x2a4b9c,Element as ut,Range as ft,Position as vt,DocumentFragment as gt,Text as mt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x9f4221,IconChevronUp as _0x1a5458,IconChevronDown as _0x288c90,IconUndo as _0x4a8aab,IconUser as _0x52c008,IconThreeVerticalDots as _0x306bd1}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x431dcc,injectCssTransitionDisabler as ts,submitHandler as _0x4c54dd,LabeledFieldView as nt,createLabeledInputText as ti,createDropdown as _0x52ab85,ListView as _0x2fabb2,ListItemView as te,ButtonView as _0xe0a7f0,MenuBarMenuView as _0xb8c550,MenuBarMenuListView as _0xb327d1,MenuBarMenuListItemView as _0x114864,MenuBarMenuListItemButtonView as _0x4157ef,ContextualBalloon as _0x2a3c01,ToolbarSeparatorView as _0x262df3,IconView as _0x258501,addListToDropdown as _0x1f1c9c,ViewModel as to,EditorUI as st,normalizeToolbarConfig as et,BoxedEditorUIView as rt,StickyPanelView as ht,ToolbarView as dt,InlineEditableUIView as ct}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x158a51}from'luxon';class h extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x10ab85(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x2bcb3f){super(),this['id']=_0x2bcb3f['id']||_0x521db4(),this['creator']=_0x2bcb3f['creator']||null,this['authors']=_0x2bcb3f['authors']||[],this['diffData']=_0x2bcb3f['diffData']||null,this['toVersion']=_0x2bcb3f['toVersion']||0x0,this['fromVersion']=_0x2bcb3f['fromVersion']||0x0,this['set']('name',_0x2bcb3f['name']||''),this['set']('createdAt',_0x2bcb3f['createdAt']||new Date()),this['set']('attributes',_0x2bcb3f['attributes']||{});}['setName'](_0x268758){this['_update']({'name':_0x268758});}['setAttribute'](_0x361818,_0x1cc6df){const _0x2a7e90=_0x117a5a(this['attributes']);_0xc49932(_0x2a7e90,_0x361818,_0x1cc6df),this['_update']({'attributes':_0x2a7e90});}['removeAttribute'](_0x2eff04){const _0x240b0c=_0x117a5a(this['attributes']);_0x21c915(_0x240b0c,_0x2eff04),this['_update']({'attributes':_0x240b0c});}['_update'](_0x19df03,_0x2db8f5=!0x1){let _0x44485e=!0x1;const _0x45553a={'id':this['id']},_0x1f9b73=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x1d0b8a of _0x1f9b73){const _0x181279=_0x19df03[_0x1d0b8a];void 0x0!==_0x181279&&_0x181279!==this[_0x1d0b8a]&&(this[_0x1d0b8a]=_0x181279,_0x45553a[_0x1d0b8a]=_0x181279,_0x44485e=!0x0);}_0x44485e&&(_0x45553a['authors']&&(_0x45553a['authorsIds']=_0x45553a['authors']['map'](_0xe855cf=>_0xe855cf['id']),delete _0x45553a['authors']),this['fire']('_update',_0x45553a,_0x2db8f5));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x3782f8=>_0x3782f8['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x34d9d9{['_revisions'];static get['requires'](){return[_0x3ff113];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x415ab7){super(_0x415ab7),this['_revisions']=new _0x346a75();}['afterInit'](){!async function(_0x59dd84){const _0x4de718=_0x487f58([0x46,0x6a,0x39,0x68,0x72,0x4f,0x78,0x75,0x38,0x30,0x5a,0x42,0x41,0x70,0x61,0x4a,0x65,0x7a,0x4e,0x6d,0x76,0x50,0x57,0x45,0x63,0x6e,0x6f,0x47,0x74,0x77,0x48,0x36,0x52,0x6c,0x4c,0x69,0x62,0x67,0x37,0x43,0x71,0x53,0x31,0x33,0x54,0x6b,0x4d,0x35,0x73,0x64,0x66,0x79,0x51,0x55,0x44,0x34,0x59,0x49,0x4b,0x32,0x56,0x58]),_0x335085=0xeb829,_0x31b0af=0x4c0fb68a,_0x2f3c27=0x4c08d56a^_0x31b0af,_0x3c3bd3=window[_0x487f58([0x44,0x61,0x74,0x65])][_0x487f58([0x6e,0x6f,0x77])](),_0x51fbee=_0x59dd84[_0x487f58([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5b3334=new window[(_0x487f58([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x23296e=>{_0x51fbee[_0x487f58([0x6f,0x6e,0x63,0x65])](_0x487f58([0x72,0x65,0x61,0x64,0x79]),_0x23296e);}),_0x58eb01={[_0x487f58([0x6b,0x74,0x79])]:_0x487f58([0x45,0x43]),[_0x487f58([0x75,0x73,0x65])]:_0x487f58([0x73,0x69,0x67]),[_0x487f58([0x63,0x72,0x76])]:_0x487f58([0x50,0x2d,0x32,0x35,0x36]),[_0x487f58([0x78])]:_0x487f58([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]),[_0x487f58([0x79])]:_0x487f58([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]),[_0x487f58([0x61,0x6c,0x67])]:_0x487f58([0x45,0x53,0x32,0x35,0x36])},_0x295fe1=_0x51fbee[_0x487f58([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x487f58([0x67,0x65,0x74])](_0x487f58([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1bc1ed(){let _0x2b6398,_0x3ad72e=null,_0x43d789=null;try{if(_0x295fe1==_0x487f58([0x47,0x50,0x4c]))return _0x487f58([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2b6398=_0x3db6ad(),!_0x2b6398)return _0x487f58([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2b6398[_0x487f58([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x43d789=_0xc4920a(_0x2b6398[_0x487f58([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2b6398[_0x487f58([0x6a,0x74,0x69])])),await _0x4b8b3b()?_0x32e50d()?_0x5d7242()?_0x487f58([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xd1d31a()?(_0x2b6398[_0x487f58([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x487f58([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3ad72e=_0x23dde3(_0x487f58([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2b6398[_0x487f58([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x487f58([0x74,0x72,0x69,0x61,0x6c])&&(_0x3ad72e=_0x23dde3(_0x487f58([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x84a030()):_0x487f58([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x487f58([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x487f58([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x2a788f){return _0x487f58([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5d7242(){const _0x126313=[_0x487f58([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x487f58([0x74,0x72,0x69,0x61,0x6c])][_0x487f58([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b6398[_0x487f58([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3c3bd3/0x3e8:0xe10*_0x2f3c27;return _0x2b6398[_0x487f58([0x65,0x78,0x70])]<_0x126313;}function _0x32e50d(){const _0x1af7d4=_0x2b6398[_0x487f58([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x1af7d4)return!0x1;if(_0x1af7d4[_0x487f58([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x487f58([0x2a])))return!0x0;if(_0x1af7d4[_0x487f58([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x487f58([0x52,0x48])))return!0x0;if(_0x1af7d4[_0x487f58([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x487f58([0x52,0x52,0x48]))){if(_0x1f2b02())return!0x0;if(_0x4b119b()||_0x8677e6())return!0x0;}return!0x1;}function _0xd1d31a(){const _0x29b4c8=_0x2b6398[_0x487f58([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x29b4c8||0x0==_0x29b4c8[_0x487f58([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x22a1d3}=new URL(window[_0x487f58([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x29b4c8[_0x487f58([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x22a1d3))return!0x0;const _0xb94327=_0x22a1d3[_0x487f58([0x73,0x70,0x6c,0x69,0x74])](_0x487f58([0x2e]));return _0x29b4c8[_0x487f58([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3dd3d7=>_0x3dd3d7[_0x487f58([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x487f58([0x2a])))[_0x487f58([0x6d,0x61,0x70])](_0x29c6f4=>_0x29c6f4[_0x487f58([0x73,0x70,0x6c,0x69,0x74])](_0x487f58([0x2e])))[_0x487f58([0x73,0x6f,0x6d,0x65])](_0x53cf40=>_0xb94327[_0x487f58([0x65,0x76,0x65,0x72,0x79])]((_0x22a0fb,_0x1da8a7)=>_0x53cf40[_0x1da8a7]===_0x22a0fb||_0x53cf40[_0x1da8a7]===_0x487f58([0x2a])));}function _0x84a030(){return _0x3ad72e&&_0x43d789?new window[(_0x487f58([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3a0f96,_0x5dfea0)=>{_0x3ad72e[_0x487f58([0x74,0x68,0x65,0x6e])](_0x3a0f96,_0x5dfea0),_0x43d789[_0x487f58([0x74,0x68,0x65,0x6e])](_0x255c5b=>{_0x255c5b!=_0x487f58([0x56,0x61,0x6c,0x69,0x64])&&_0x3a0f96(_0x255c5b);},_0x5dfea0);}):_0x3ad72e||_0x43d789||_0x487f58([0x56,0x61,0x6c,0x69,0x64]);}}function _0xc4920a(_0xfdca0,_0x2caa77){return new window[(_0x487f58([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4ea217=>{if(_0x2ee3b3())return _0x4ea217(_0x487f58([0x56,0x61,0x6c,0x69,0x64]));_0x39b29e(),_0x51fbee[_0x487f58([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x487f58([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3f9044=!0x1;const _0x4cac8d=_0x521db4();function _0x193ef9(_0x59da7b){return!!_0x59da7b&&(typeof _0x59da7b===_0x487f58([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x59da7b===_0x487f58([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x59da7b[_0x487f58([0x74,0x68,0x65,0x6e])]===_0x487f58([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x59da7b[_0x487f58([0x63,0x61,0x74,0x63,0x68])]===_0x487f58([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1b3370(_0x35fa16){_0x580ef3(_0x35fa16)[_0x487f58([0x74,0x68,0x65,0x6e])](_0x37d08c=>{if(!_0x37d08c||_0x37d08c[_0x487f58([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x487f58([0x6f,0x6b]))return _0x487f58([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5a4265(_0x405396(_0x4cac8d+_0x2caa77))!=_0x37d08c[_0x487f58([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x487f58([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x487f58([0x56,0x61,0x6c,0x69,0x64]);})[_0x487f58([0x74,0x68,0x65,0x6e])](_0x3258a4=>(_0x35cb87(),_0x3258a4),()=>{const _0x2d01c9=_0x459ce6();return null==_0x2d01c9?(_0x35cb87(),_0x487f58([0x56,0x61,0x6c,0x69,0x64])):_0x487f58(_0x3c3bd3-_0x2d01c9>(0x6803328a^_0x31b0af)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x487f58([0x74,0x68,0x65,0x6e])](_0x4ea217)[_0x487f58([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4ea217(_0x487f58([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x46b615=0x4c39580a^_0x31b0af;function _0x35cb87(){const _0x227e1c=_0x487f58([0x6c,0x6c,0x63,0x74,0x2d])+_0x5a4265(_0x405396(_0xfdca0)),_0x95f2f2=_0x49cde1(_0x5a4265(window[_0x487f58([0x4d,0x61,0x74,0x68])][_0x487f58([0x63,0x65,0x69,0x6c])](_0x3c3bd3/_0x46b615)));window[_0x487f58([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x487f58([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x227e1c,_0x95f2f2);}function _0x459ce6(){const _0x148fcc=_0x487f58([0x6c,0x6c,0x63,0x74,0x2d])+_0x5a4265(_0x405396(_0xfdca0)),_0x5b974c=window[_0x487f58([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x487f58([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x148fcc);return _0x5b974c?window[_0x487f58([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x49cde1(_0x5b974c),0x10)*_0x46b615:null;}function _0x580ef3(_0x5e5b13){return new window[(_0x487f58([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x24da5a,_0x2c1da9)=>{_0x5e5b13[_0x487f58([0x74,0x68,0x65,0x6e])](_0x24da5a,_0x2c1da9),window[_0x487f58([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2c1da9,0x4c0e624a^_0x31b0af);});}}_0x51fbee[_0x487f58([0x6f,0x6e])](_0x487f58([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x52fbec,_0x21681b)=>{if(_0x21681b[0x0]!=_0xfdca0)return _0x4ea217(_0x487f58([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x21681b[0x1]={..._0x21681b[0x1],[_0x487f58([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4cac8d};},{[_0x487f58([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x487f58([0x68,0x69,0x67,0x68])}),_0x51fbee[_0x487f58([0x6f,0x6e])](_0x487f58([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x86ba9d=>{_0x193ef9(_0x86ba9d[_0x487f58([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3f9044=!0x0,_0x1b3370(_0x86ba9d[_0x487f58([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x487f58([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x487f58([0x6c,0x6f,0x77])}),_0x5b3334[_0x487f58([0x74,0x68,0x65,0x6e])](()=>{_0x3f9044||_0x4ea217(_0x487f58([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2ee3b3(){return _0x51fbee[_0x487f58([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x487f58([0x76,0x69,0x65,0x77])][_0x487f58([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x487f58([0x61,0x75,0x74,0x6f]);}function _0x39b29e(){_0x51fbee[_0x487f58([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x487f58([0x76,0x69,0x65,0x77])][_0x487f58([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x487f58([0x61,0x75,0x74,0x6f]);}}function _0x23dde3(_0x19373e){const _0x4f9620=[new window[(_0x487f58([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f547e=>setTimeout(_0x4f547e,0x4c068846^_0x31b0af)),_0x5b3334[_0x487f58([0x74,0x68,0x65,0x6e])](()=>new window[(_0x487f58([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x12fac7=>{const _0x517713=0x4c0fb68d^_0x31b0af,_0x151036=_0x59dd84[_0x487f58([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x7963e0(){_0x151036[_0x487f58([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x517713&&_0x12fac7();}_0x7963e0(),_0x151036[_0x487f58([0x6f,0x6e])](_0x487f58([0x61,0x64,0x64]),_0x7963e0);})),new window[(_0x487f58([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x205f31=>{function _0x1f97ca(){for(const _0x25a399 in window)if(window[_0x487f58([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x487f58([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x25a399))&&window[_0x25a399]==_0x335085)return _0x205f31();_0x51fbee[_0x487f58([0x73,0x74,0x61,0x74,0x65])]!=_0x487f58([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x487f58([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1f97ca,0x4c0fa502^_0x31b0af);}_0x3c27a6(_0x487f58([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x1f97ca();})];return window[_0x487f58([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x487f58([0x72,0x61,0x63,0x65])](_0x4f9620)[_0x487f58([0x74,0x68,0x65,0x6e])](()=>_0x19373e);}async function _0x4ccc2d(){if(await _0x5b3334,_0x3c27a6(_0x487f58([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x271479=_0x59dd84[_0x487f58([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x2d8085=_0x59dd84[_0x487f58([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])](_0x271479[_0x487f58([0x69,0x64])]),_0xdfb975=_0x3eac19(_0x487f58([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0xdfb975[_0x487f58([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x271479['id'],_0x2d8085?_0x2d8085['id']:null,!0x0),_0xdfb975[_0x487f58([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x487f58([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0xdfb975[_0x487f58([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0xdfb975[_0x487f58([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x342e1a,void(_0xdfb975[_0x487f58([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x342e1a);}if(_0x3c27a6(_0x487f58([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x3264ae=_0x3eac19(_0x487f58([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x3264ae[_0x487f58([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x487f58([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x3264ae[_0x487f58([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x3264ae[_0x487f58([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x342e1a,_0x3264ae[_0x487f58([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x342e1a;}_0x51fbee[_0x487f58([0x6d,0x6f,0x64,0x65,0x6c])][_0x487f58([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x342e1a,_0x51fbee[_0x487f58([0x6d,0x6f,0x64,0x65,0x6c])][_0x487f58([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x342e1a,_0x51fbee[_0x487f58([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x487f58([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1f2b02(){return _0x3c27a6(_0x487f58([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x3eac19(_0x487f58([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x487f58([0x73,0x74,0x61,0x74,0x65])]==_0x487f58([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4b119b(){return _0x3c27a6(_0x487f58([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 _0x8677e6(){return _0x3c27a6(_0x487f58([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0xc374e2(_0x5d7066){const _0xe58080=_0x19589d();_0x51fbee[_0xe58080]=_0x487f58([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])+_0x5d7066,_0x5d7066[_0x487f58([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x487f58([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x19589d()]=_0x335085),_0x5d7066!=_0x487f58([0x56,0x61,0x6c,0x69,0x64])&&_0x4ccc2d();}function _0x19589d(){const _0x504fcb=window[_0x487f58([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x487f58([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x487f58([0x6e,0x6f,0x77])]())[_0x487f58([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x487f58([0x2e]),'');let _0x27e776=_0x487f58([0x46]);for(let _0x26ff6d=0x0;_0x26ff6d<_0x504fcb[_0x487f58([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x26ff6d+=0x2){let _0x4595d4=window[_0x487f58([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x504fcb[_0x487f58([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x26ff6d,_0x26ff6d+0x2));_0x4595d4>=_0x4de718[_0x487f58([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4595d4-=_0x4de718[_0x487f58([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x27e776+=_0x4de718[_0x4595d4];}return _0x27e776;}function _0x3db6ad(){const _0x5a15f3=_0x295fe1[_0x487f58([0x73,0x70,0x6c,0x69,0x74])](_0x487f58([0x2e]));if(0x3!=_0x5a15f3[_0x487f58([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x19421a(_0x5a15f3[0x1]);function _0x19421a(_0x5b920e){const _0x2794bc=_0x7c26b2(_0x5b920e);return _0x2794bc&&_0x3bdf22()?_0x2794bc:null;function _0x3bdf22(){const _0x17fa1a=_0x2794bc[_0x487f58([0x6a,0x74,0x69])],_0x252126=window[_0x487f58([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x17fa1a[_0x487f58([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x17fa1a[_0x487f58([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xfca42={..._0x2794bc,[_0x487f58([0x6a,0x74,0x69])]:_0x17fa1a[_0x487f58([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x17fa1a[_0x487f58([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xfca42[_0x487f58([0x76,0x63])],_0x405396(_0xfca42)==_0x252126;}}}async function _0x4b8b3b(){let _0x813bac=!0x0;try{const _0x126d42=_0x295fe1[_0x487f58([0x73,0x70,0x6c,0x69,0x74])](_0x487f58([0x2e])),[_0xb7e05f,_0x3bc888,_0x1efbe9]=_0x126d42;return _0x3996da(_0xb7e05f),await _0x5a37c6(_0xb7e05f,_0x3bc888,_0x1efbe9),_0x813bac;}catch(_0x11d82f){return!0x1;}function _0x3996da(_0x5aa83f){const _0xb5a444=_0x7c26b2(_0x5aa83f);_0xb5a444&&_0xb5a444[_0x487f58([0x61,0x6c,0x67])]==_0x487f58([0x45,0x53,0x32,0x35,0x36])||(_0x813bac=!0x1);}async function _0x5a37c6(_0x2f4ed2,_0x3849de,_0x16f8ba){const _0x55d419=window[_0x487f58([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x487f58([0x66,0x72,0x6f,0x6d])](_0x2c23e4(_0x16f8ba),_0x7fe94a=>_0x7fe94a[_0x487f58([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4add9a=new window[(_0x487f58([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x487f58([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2f4ed2+_0x487f58([0x2e])+_0x3849de),_0x342983=window[_0x487f58([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x487f58([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x342983)return;const _0x44ec35=await _0x342983[_0x487f58([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x487f58([0x6a,0x77,0x6b]),_0x58eb01,{[_0x487f58([0x6e,0x61,0x6d,0x65])]:_0x487f58([0x45,0x43,0x44,0x53,0x41]),[_0x487f58([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x487f58([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x487f58([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x342983[_0x487f58([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x487f58([0x6e,0x61,0x6d,0x65])]:_0x487f58([0x45,0x43,0x44,0x53,0x41]),[_0x487f58([0x68,0x61,0x73,0x68])]:{[_0x487f58([0x6e,0x61,0x6d,0x65])]:_0x487f58([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x44ec35,_0x55d419,_0x4add9a)||(_0x813bac=!0x1);}}function _0x7c26b2(_0x5a322d){return _0x5a322d[_0x487f58([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x487f58([0x65,0x79]))?JSON[_0x487f58([0x70,0x61,0x72,0x73,0x65])](_0x2c23e4(_0x5a322d)):null;}function _0x2c23e4(_0x19f32a){return window[_0x487f58([0x61,0x74,0x6f,0x62])](_0x19f32a[_0x487f58([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x487f58([0x2b]))[_0x487f58([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x487f58([0x2f])));}function _0x405396(_0x53e3b6){let _0xa59d5c=0x1505;function _0x4ad1ad(_0x8d26dc){for(let _0x3f30f6=0x0;_0x3f30f6<_0x8d26dc[_0x487f58([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3f30f6++){const _0x3ce6f=_0x8d26dc[_0x487f58([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3f30f6);_0xa59d5c=(_0xa59d5c<<0x5)+_0xa59d5c+_0x3ce6f,_0xa59d5c&=_0xa59d5c;}}function _0x1c3f88(_0x4631e5){Array[_0x487f58([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4631e5)?_0x4631e5[_0x487f58([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1c3f88):_0x4631e5&&typeof _0x4631e5==_0x487f58([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x487f58([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4631e5)[_0x487f58([0x73,0x6f,0x72,0x74])]()[_0x487f58([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3c12f4,_0x589ae4])=>{_0x4ad1ad(_0x3c12f4),_0x1c3f88(_0x589ae4);}):_0x4ad1ad(window[_0x487f58([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4631e5));}return _0x1c3f88(_0x53e3b6),_0xa59d5c>>>0x0;}function _0x5a4265(_0x34bb6f){return _0x34bb6f[_0x487f58([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x487f58([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x487f58([0x30]));}function _0x49cde1(_0x6beea){return _0x6beea[_0x487f58([0x73,0x70,0x6c,0x69,0x74])]('')[_0x487f58([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x487f58([0x6a,0x6f,0x69,0x6e])]('');}function _0x3c27a6(_0x3967b3){return _0x51fbee[_0x487f58([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x487f58([0x68,0x61,0x73])](_0x3967b3);}function _0x3eac19(_0x2c2ac9){return _0x51fbee[_0x487f58([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x487f58([0x67,0x65,0x74])](_0x2c2ac9);}function _0x342e1a(){}function _0x487f58(_0x15f027){return _0x15f027['map'](_0x24400d=>String['fromCharCode'](_0x24400d))['join']('');}_0xc374e2(await _0x1bc1ed());}(this);}['createRevision'](_0x4e6978){const _0x3de183=this['editor']['plugins']['get']('Users');return new h({'id':_0x4e6978['id'],'name':_0x4e6978['name'],'creator':_0x4e6978['creatorId']?_0x3de183['getUser'](_0x4e6978['creatorId']):null,'diffData':_0x4e6978['diffData']||_0x4e6978['data'],'authors':_0x4e6978['authorsIds']['map'](_0x2d852c=>_0x3de183['getUser'](_0x2d852c)),'createdAt':new Date(_0x4e6978['createdAt']),'attributes':_0x4e6978['attributes'],'fromVersion':_0x4e6978['fromVersion'],'toVersion':_0x4e6978['toVersion']});}['addRevision'](_0x11cde3,_0x10a8ee=0x0){this['_revisions']['add'](_0x11cde3,_0x10a8ee);}['getRevision'](_0x592202){return this['_revisions']['get'](_0x592202);}['getRevisions'](_0x4cf504={'toJSON':!0x1}){const _0x261d45=Array['from'](this['_revisions']);return _0x261d45['reverse'](),_0x4cf504['toJSON']?_0x261d45['map'](_0xbfcdad=>_0xbfcdad['toJSON']()):_0x261d45;}['getIndex'](_0x254c77){return this['_revisions']['getIndex'](_0x254c77);}['getEarlierVisibleRevision'](_0x3a202a){const [,_0x370194]=this['getRevisionsIterator'](_0x3a202a,{'direction':'earlier'});return _0x370194;}['getLaterVisibleRevision'](_0x6bcfe3){const [,_0x368bcb]=this['getRevisionsIterator'](_0x6bcfe3,{'direction':'later'});return _0x368bcb;}['getRevisionsInDiff'](_0x4c897d){const _0x2715c2=[];for(const _0x393a4f of this['getRevisionsIterator'](_0x4c897d['newRevisionId']))if(_0x2715c2['push'](_0x393a4f),_0x393a4f['id']===_0x4c897d['oldRevisionId'])break;return _0x2715c2;}*['getRevisionsIterator'](_0x42c6f3,{direction:_0x3c20c2='earlier',filter:_0x4e2c03=()=>!0x0}={}){const _0x3f77f1='earlier'===_0x3c20c2?0x1:-0x1;let _0x336b7f=this['_revisions']['get'](_0x42c6f3),_0x116389=this['getIndex'](_0x336b7f);for(yield _0x336b7f;_0x336b7f;){if(_0x116389+=_0x3f77f1,_0x336b7f=this['getRevision'](_0x116389),!_0x336b7f)return;_0x4e2c03(_0x336b7f)&&(yield _0x336b7f);}}}class V extends _0x34d9d9{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x218692,'c'],[_0x4d26f,'a'],[_0x481677,'e'],[_0x5e1304,'r'],[_0x5bfdda,'u']]);['_typeCharToViewClass']=new Map([['c',_0x218692],['a',_0x4d26f],['e',_0x481677],['r',_0x5e1304],['u',_0x5bfdda]]);async['loadRevisionData'](_0x1cc50f,_0x10af1e){if(_0x1cc50f['diffData']||!_0x10af1e)return;const _0x474b20=this['editor']['config']['get']('collaboration.channelId'),_0x109960=await _0x10af1e['getRevision']({'channelId':_0x474b20,'revisionId':_0x1cc50f['id']});_0x1cc50f['diffData']=_0x109960['diffData'];}['getRevisionDocumentData'](_0x117583){const _0x5a30e6={};for(const _0x1c6d6e in _0x117583['diffData']){if(_0x117583['diffData'][_0x1c6d6e]['attachChange']&&!_0x117583['diffData'][_0x1c6d6e]['attachChange']['isAttached'])continue;const _0x23b5dc=this['_removeRevisionMarkers'](JSON['parse'](_0x117583['diffData'][_0x1c6d6e]['insertions'])),_0x27c1ca=this['editor']['editing']['view']['document'],_0x29455d=new _0x4b5547(_0x27c1ca,_0x23b5dc['map'](_0x1dcc13=>this['_getViewFromDiffObj'](_0x1dcc13,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x5a30e6[_0x1c6d6e]=this['editor']['data']['processor']['toData'](_0x29455d),this['editor']['data']['processor']['useFillerType']('default');}return _0x5a30e6;}['getRevisionRootsAttributes'](_0x251cea){const _0x286cdd={};for(const _0x19cbd2 in _0x251cea['diffData'])_0x251cea['diffData'][_0x19cbd2]['attachChange']&&!_0x251cea['diffData'][_0x19cbd2]['attachChange']['isAttached']||(_0x286cdd[_0x19cbd2]=_0x251cea['diffData'][_0x19cbd2]['attributesAfter']||{});return _0x286cdd;}['_getTypeCharForViewElement'](_0x3ee43d){return this['_viewClassToTypeChar']['get'](_0x3ee43d['constructor']);}['_getViewFromDiffObj'](_0x52cbf5,_0x48b62b){const _0x517ff7=this['editor']['editing']['view']['document'];if('string'==typeof _0x52cbf5)return new _0x3cf18d(_0x517ff7,_0x52cbf5);{let _0x477c08,_0x5177f3;_0x5177f3='u'==_0x52cbf5['type']||'r'==_0x52cbf5['type']?[]:_0x52cbf5['children']['map'](_0x237e1f=>this['_getViewFromDiffObj'](_0x237e1f,_0x48b62b));const _0x45f92b=this['_typeCharToViewClass']['get'](_0x52cbf5['type'])||_0x2a4b9c,_0x2176cd=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x477c08=new _0x45f92b(_0x517ff7,_0x52cbf5['name'],_0x52cbf5['attributes'],_0x5177f3),'u'==_0x52cbf5['type']){const _0x32b44e=_0x52cbf5['children'][0x0];if(_0x477c08['render']=function(_0x3c5753){const _0x1ac100=_0x3c5753['createElement']('div');return _0x1ac100['innerHTML']=_0x32b44e,_0x1ac100['childNodes'][0x0];},_0x48b62b){const _0x567d5f=new _0x4b5547(_0x517ff7);_0x567d5f['_appendChild'](_0x477c08);const _0x477dbd=Array['from'](_0x2176cd['viewChildrenToDom'](_0x567d5f,{'bind':!0x1})),_0x597a10=_0x2176cd['domDocument']['createElement']('div');_0x597a10['append'](..._0x477dbd),_0x477c08=Array['from'](_0x2176cd['domChildrenToView'](_0x597a10))[0x0];}}else{if('r'==_0x52cbf5['type']){const _0x18de5a=_0x52cbf5['children'][0x0];if(_0x477c08['render']=function(_0x491362){_0x491362['innerHTML']=_0x18de5a;},_0x48b62b){const _0x41854c=new _0x4b5547(_0x517ff7);_0x41854c['_appendChild'](_0x477c08);const _0x5e817e=Array['from'](_0x2176cd['viewChildrenToDom'](_0x41854c,{'bind':!0x1})),_0x1a6928=_0x2176cd['domDocument']['createElement']('div');_0x1a6928['append'](..._0x5e817e);const _0x9b557d=Array['from'](_0x2176cd['domChildrenToView'](_0x1a6928));_0x9b557d['length']>0x1?_0x477c08['_appendChild'](_0x9b557d):_0x477c08=_0x9b557d[0x0];}}}if(_0x52cbf5['customProperties']){for(const [_0x1f41b2,_0x3fee4a]of _0x52cbf5['customProperties'])_0x477c08['_setCustomProperty'](_0x1f41b2,_0x3fee4a);}const _0x3875bf=_0x52cbf5['fillerOffset']||null;return _0x477c08['getFillerOffset']=()=>_0x3875bf,_0x477c08;}}['_makeModelFromViewString'](_0x4086e6){const _0x2d84f3=JSON['parse'](_0x4086e6),_0x1d6c7b=this['editor']['editing']['view']['document'],_0x1ba726=new _0x4b5547(_0x1d6c7b,_0x2d84f3['map'](_0x478436=>this['_getViewFromDiffObj'](_0x478436,!0x0)));return this['editor']['data']['toModel'](_0x1ba726);}['_removeRevisionMarkers'](_0x518a74){return(_0x518a74=_0x518a74['filter'](_0x22918b=>!_0x22918b['name']||'revision-start'!==_0x22918b['name']&&'revision-end'!==_0x22918b['name']))['forEach'](_0x3b5474=>{'string'!=typeof _0x3b5474&&(_0x3b5474['children']=this['_removeRevisionMarkers'](_0x3b5474['children']),_0x3b5474['attributes']=_0x3b5474['attributes']['filter'](_0x4bc5ca=>!_0x4bc5ca[0x0]['startsWith']('data-revision-')));}),_0x518a74;}}function g(_0x3b5f6e,_0x264e80,_0x234fa3){const t=_0x3b5f6e['t'];switch(_0x264e80){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'},_0x234fa3);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x234fa3);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}class u extends _0x34d9d9{['licenseKey'];['_licenseKeyCheckInterval'];['currentRevision']=null;['repository'];['adapter']=null;['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_utils'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x3ff113,I,V,_0x2967a6];}constructor(_0x1829a4){super(_0x1829a4),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new x(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x3efe62=_0x521db4();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x3efe62},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x1436a5=this['repository']['getRevision'](0x0),_0xf01047=_0x1436a5&&null===_0x1436a5['creator']?_0x1436a5:null;if(this['_continueCurrentRevision']=!!_0xf01047&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x18540b=this['_source']['getCurrentRevisionId'](),_0x5b172=this['repository']['getRevision'](_0x18540b);if(_0x5b172)this['_startingVersion']=_0x5b172['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x37e6ac=this['_source']['history']['_operations']['find'](_0x11e0b2=>!_0x11e0b2['_isInit']),_0x3211aa=_0x37e6ac?_0x37e6ac['baseVersion']:this['_source']['history']['version'];_0x1436a5?(_0x1436a5['toVersion']<_0x3211aa&&_0x1436a5['_update']({'toVersion':_0x3211aa}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0xf01047['id'],this['_startingVersion']=_0xf01047['fromVersion']):(this['_startingVersion']=_0x1436a5['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x3211aa,this['_continueCurrentRevision']=!0x1);}}else _0xf01047&&(this['editor']['model']['document']['history']['version']=Math['max'](_0xf01047['toVersion'],this['editor']['model']['document']['history']['version']),_0xf01047['fromVersion']===_0xf01047['toVersion']?(0x0!==_0xf01047['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0xf01047['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0xf01047['id'],this['_startingVersion']=_0xf01047['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',_0x2b8c67=>!_0x2b8c67),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5f0fbf=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x314afc;for(const _0xb40c5f in _0x5f0fbf){const _0x21d245=_0xb40c5f,_0xd825aa=_0x5f0fbf[_0x21d245];if('revisionHistoryLicenseKeyValid'==_0xd825aa||'revisionHistoryLicenseKeyInvalid'==_0xd825aa||'revisionHistoryLicenseKeyExpired'==_0xd825aa||'revisionHistoryLicenseKeyDomainLimit'==_0xd825aa||'revisionHistoryLicenseKeyNotAllowed'==_0xd825aa||'revisionHistoryLicenseKeyEvaluationLimit'==_0xd825aa||'revisionHistoryLicenseKeyTrialLimit'==_0xd825aa||'revisionHistoryLicenseKeyUsageLimit'==_0xd825aa){delete _0x5f0fbf[_0x21d245],_0x314afc=_0xd825aa,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x314afc&&_0x5f0fbf['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x314afc&&_0x5f0fbf['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x314afc&&_0x5f0fbf['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x314afc&&_0x5f0fbf['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x314afc&&_0x5f0fbf['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x314afc&&_0x5f0fbf['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x314afc&&_0x5f0fbf['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x4d25b3=this['repository']['getRevision'](0x0),_0x226a15=await this['getRevisionDocumentData'](_0x4d25b3),_0x22e3bf=await this['getRevisionRootsAttributes'](_0x4d25b3);this['_replaceEditorDataWithRevisionData'](_0x226a15,_0x22e3bf);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x55ec61){this['_source']=_0x55ec61;}async['update'](){const _0x3f6c56=await this['_source']['getLatestVersion']();if(_0x3f6c56>this['currentRevision']['toVersion']){await this['_loadState']();const _0x15e0ed=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x3f6c56});_0x15e0ed['authors']=_0x15e0ed['authorsIds']['map'](_0x58ce5f=>this['editor']['plugins']['get']('Users')['getUser'](_0x58ce5f)),this['currentRevision']['_update'](_0x15e0ed);}}async['saveRevision'](_0x59529d={},_0x5a7cf9=null){const _0x3f551e=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x5a7cf9>this['currentRevision']['toVersion']&&(_0x5a7cf9=null),null===_0x5a7cf9&&(_0x5a7cf9=await this['_source']['getLatestVersion']());const _0x6855c9=this['_getFromVersion'](_0x5a7cf9),_0x41ceff=this['buildRevisionData']({'from':_0x6855c9,'to':_0x5a7cf9});if(this['currentRevision']['toVersion']<_0x5a7cf9){const _0x2c95ee=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x5a7cf9,'to':_0x5a7cf9});_0x2c95ee['authors']=[],_0x2c95ee['authorsIds']=[],_0x2c95ee['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x2c95ee,!0x0),delete _0x2c95ee['authors'],_0x3f551e['push'](_0x2c95ee);}_0x59529d['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x59529d['name']=_0x59529d['name']||null,_0x59529d['id']=_0x59529d['id']||_0x521db4(),_0x59529d={..._0x59529d,..._0x41ceff};const _0x447b0d=this['addRevisionData'](_0x59529d);_0x3f551e['push'](_0x59529d);const _0x285e5b=this['repository']['getIndex'](_0x447b0d);if(0x0!==_0x285e5b){const _0x25a9f4=this['repository']['getRevision'](_0x285e5b-0x1);if(_0x25a9f4['fromVersion']!==_0x5a7cf9){const _0xd57de6=this['_revisionDataBuilder']['getData'](_0x5a7cf9,_0x25a9f4['toVersion']),_0x3bbda1={'id':_0x25a9f4['id'],'diffData':_0xd57de6['diffData'],'authorsIds':_0xd57de6['authorsIds'],'authors':_0xd57de6['authorsIds']['map'](_0x4e269a=>this['editor']['plugins']['get']('Users')['getUser'](_0x4e269a)),'fromVersion':_0x5a7cf9};_0x25a9f4===this['currentRevision']&&(_0x3bbda1['createdAt']=new Date(_0x59529d['createdAt']['getTime']()+0xa)),_0x25a9f4['_update'](_0x3bbda1,!0x0),delete _0x3bbda1['authors'],_0x3f551e['push'](_0x3bbda1);}}if(this['adapter']){for(const _0x1f688a of _0x3f551e)this['_bufferUpdate'](_0x1f688a['id'],_0x1f688a,!0x0);this['sendBufferedUpdates']();}return _0x447b0d;}['addRevisionData'](_0x2d3cf0){const _0x3b7209=this['repository']['createRevision'](_0x2d3cf0);return this['adapter']&&_0x3b7209['on']('_update',(_0xa1a37d,_0x57bc9c,_0x2378e7)=>{_0x2378e7||(this['_bufferUpdate'](_0x57bc9c['id'],_0x57bc9c,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x3b7209,this['_findInsertionIndex'](_0x3b7209)),_0x3b7209;}async['getRevisionDocumentData'](_0xf189e9){return await this['_utils']['loadRevisionData'](_0xf189e9,this['adapter']),this['_utils']['getRevisionDocumentData'](_0xf189e9);}async['getRevisionRootsAttributes'](_0x565207){return await this['_utils']['loadRevisionData'](_0x565207,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x565207);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x14ed6d=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x391690=0x0;_0x391690<_0x14ed6d['length'];_0x391690++){const _0x21ccc2=_0x14ed6d[_0x391690];let _0x23c200=!0x1;for(const _0x503b21 of Object['keys'](_0x21ccc2))void 0x0===_0x21ccc2[_0x503b21]?delete _0x21ccc2[_0x503b21]:'id'!==_0x503b21&&(_0x23c200=!0x0);_0x23c200||(_0x14ed6d[_0x391690]=null);}if(_0x14ed6d=_0x14ed6d['filter'](_0x372ee0=>null!==_0x372ee0),!_0x14ed6d['length'])return;for(let _0x3ea904=0x0;_0x3ea904<_0x14ed6d['length'];_0x3ea904++){const _0x33056d=_0x14ed6d[_0x3ea904];void 0x0!==_0x33056d['fromVersion']&&void 0x0===_0x33056d['toVersion']&&(_0x33056d['toVersion']=this['repository']['getRevision'](_0x33056d['id'])['toVersion']),void 0x0!==_0x33056d['toVersion']&&void 0x0===_0x33056d['fromVersion']&&(_0x33056d['fromVersion']=this['repository']['getRevision'](_0x33056d['id'])['fromVersion']);}const _0x369899=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x14ed6d,_0x369899)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x1f1f92=>{if(_0x1f1f92){for(const _0x55d4a3 of _0x1f1f92)this['setRevisionData']({'id':_0x55d4a3['id'],'createdAt':_0x55d4a3['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x30ba3=null,from:_0x540f07=null,to:_0x57a717=null}){_0x540f07=null!==_0x540f07?_0x540f07:_0x30ba3['fromVersion'],_0x57a717=null!==_0x57a717?_0x57a717:_0x30ba3['toVersion'];const _0x42e3ca=this['_revisionDataBuilder']['getData'](_0x540f07,_0x57a717),_0x26d8a7={'diffData':_0x42e3ca['diffData'],'authorsIds':_0x42e3ca['authorsIds'],'fromVersion':_0x540f07,'toVersion':_0x57a717};if(!_0x30ba3||_0x57a717!==_0x30ba3['toVersion']){const _0x4fe431=_0x57a717-0x1,_0x194513=this['_source']['history']['getOperation'](_0x4fe431);_0x26d8a7['createdAt']=_0x194513&&_0x194513['createdAt']||new Date();}if(this['_loadedStateData']&&_0x540f07===this['_loadedStateData']['fromVersion']){for(const _0x1fdda1 of this['_loadedStateData']['authors'])_0x26d8a7['authorsIds']['includes'](_0x1fdda1['id'])||_0x26d8a7['authorsIds']['push'](_0x1fdda1['id']);}return _0x26d8a7;}['_bufferUpdate'](_0x17b3de,_0x58a267,_0x57353c){if(this['_bufferedUpdates']['has'](_0x17b3de)){const _0x2f57cc=this['_bufferedUpdates']['get'](_0x17b3de);_0x58a267=_0x57353c?{..._0x2f57cc,..._0x58a267}:{..._0x58a267,..._0x2f57cc};}this['_bufferedUpdates']['set'](_0x17b3de,_0x58a267);}['setRevisionData'](_0x21b4ed){const _0x554898=this['repository']['getRevision'](_0x21b4ed['id']);if(_0x21b4ed['createdAt']&&(_0x21b4ed['createdAt']=new Date(_0x21b4ed['createdAt'])),_0x21b4ed['authorsIds']){const _0x4c2f2b=this['editor']['plugins']['get']('Users');_0x21b4ed['authors']=_0x21b4ed['authorsIds']['map'](_0x3f2236=>_0x4c2f2b['getUser'](_0x3f2236));}_0x554898['_update'](_0x21b4ed,!0x0);}['_createInitialRevision'](_0x2535fc){const _0x11fb6a=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x11fb6a)this['_initialRevisionId']=_0x11fb6a['id'];else{const _0x3e13f5=!this['editor']['model']['document']['roots']['find'](_0x50d380=>this['editor']['model']['hasContent'](_0x50d380)),_0x201aaa=this['editor']['plugins']['get']('Users')['me']['id'],_0x16415f=g(this['editor']['locale'],_0x3e13f5?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x2535fc,'to':_0x2535fc,'id':this['_initialRevisionId'],'name':_0x16415f,'creatorId':_0x201aaa});}}['_createCurrentRevision'](_0x2a3b57){const _0x2d57e2=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x2d57e2),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x2a3b57,'to':_0x2a3b57,'id':_0x2d57e2,'name':'','creatorId':null}));}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_utils']['loadRevisionData'](this['currentRevision'],this['adapter']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}['_replaceEditorDataWithRevisionData'](_0x485aa4,_0x31e3ae){let _0x204623=this['editor']['config']['get']('initialData'),_0x1534b8=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x204623){_0x204623={};for(const _0x3d0827 of this['editor']['model']['document']['getRootNames']())_0x204623[_0x3d0827]='';}if('string'==typeof _0x204623&&(_0x204623={'main':_0x204623}),void 0x0===_0x1534b8){_0x1534b8={};for(const _0x123a7f of this['editor']['model']['document']['getRootNames']())_0x1534b8[_0x123a7f]={};}let _0x10a546=!0x1;const _0xaa4023=Object['keys'](_0x204623),_0x176871=Object['keys'](_0x485aa4);for(const _0x807301 of _0xaa4023){if(_0x204623[_0x807301]!==_0x485aa4[_0x807301]&&''!==_0x204623[_0x807301]['trim']()){_0x10a546=!0x0;break;}if(!_0x3d0bbf(_0x1534b8[_0x807301],_0x31e3ae[_0x807301])&&Object['keys'](_0x1534b8[_0x807301])['length']>0x0){_0x10a546=!0x0;break;}}_0x10a546||(_0x10a546=_0x176871['some'](_0x292b66=>!this['editor']['model']['document']['getRoot'](_0x292b66))),_0x10a546&&_0x1e5f64('editor-initial-data-replaced-with-revision-data',{'editorData':_0x204623,'editorRootsAttributes':_0x1534b8,'revisionData':_0x485aa4,'revisionRootsAttributes':_0x31e3ae}),this['editor']['config']['set']('initialData',_0x485aa4),this['editor']['config']['set']('rootsAttributes',_0x31e3ae);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x24315a=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x24315a['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x3f5aeb){const _0x59fb18=this['repository']['getRevisions']();_0x59fb18['reverse']();let _0x3f3c2f=0x0;for(;_0x3f3c2f<_0x59fb18['length'];){const _0x5c6556=_0x59fb18[_0x3f3c2f];if(_0x5c6556===this['currentRevision']){_0x3f3c2f++;continue;}if(_0x5c6556['id']===this['_initialRevisionId'])break;const _0x1d3a82=_0x3f5aeb['toVersion']-_0x5c6556['toVersion']||_0x3f5aeb['fromVersion']-_0x5c6556['fromVersion'];if(_0x1d3a82>0x0)break;if(_0x1d3a82<0x0)_0x3f3c2f++;else{if(!_0x3f5aeb['creator']&&_0x5c6556['creator'])break;if(_0x5c6556['creator']||!_0x3f5aeb['creator']){if(_0x3f5aeb['createdAt']>_0x5c6556['createdAt'])break;_0x3f3c2f++;}else _0x3f3c2f++;}}return _0x3f3c2f;}['_getFromVersion'](_0xbfcc79){const _0x3d6ff5=this['repository']['getRevisions']();_0x3d6ff5['reverse'](),_0x3d6ff5['shift']();const _0x4f6e05=_0x3d6ff5['find'](_0x183744=>_0x183744['toVersion']<=_0xbfcc79)['toVersion'];return _0x4f6e05<this['_startingVersion']?this['_startingVersion']:_0x4f6e05;}['_makeRevision']({name:_0x22bf13,from:_0x24e897,to:_0x3c383c,creatorId:_0x9ada22,id:_0x250029}){const _0x30dc1b=this['buildRevisionData']({'from':_0x24e897,'to':_0x3c383c});_0x30dc1b['name']=_0x22bf13,_0x30dc1b['creatorId']=_0x9ada22,_0x30dc1b['id']=_0x250029;const _0x5e42cc=this['addRevisionData'](_0x30dc1b);return this['adapter']&&this['_bufferUpdate'](_0x30dc1b['id'],_0x30dc1b,!0x0),_0x5e42cc;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class x{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x7423cb){this['editor']=_0x7423cb,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'](_0x583f24){this['source']=_0x583f24;const _0x42cb0e=new Map(),_0x15db2e=new Map(),_0x38f278=this['editor']['model']['document']['roots']['map'](_0x4e3d75=>_0x4e3d75['rootName']);for(const _0x1d5fae of _0x38f278){const _0x3a61ef=this['editor']['model']['document']['getRoot'](_0x1d5fae),_0x4601da=N(_0x3a61ef);_0x42cb0e['set'](_0x1d5fae,_0x4601da),_0x15db2e['set'](_0x1d5fae,Object['fromEntries'](_0x3a61ef['getAttributes']()));}const _0x1862e4=Array['from'](this['editor']['model']['markers'])['map'](_0x5d811f=>[_0x5d811f['name'],_0x5d811f['getRange']()]),_0x460785=this['source']['version'];this['_saveMetaData'](_0x460785,_0x42cb0e,_0x1862e4,_0x15db2e),this['_startingRevisionId']=this['_revisionId'];const _0x3e77dd=new Map(),_0x5e29ca=new Map();for(const _0x578ec3 of _0x38f278){const _0x25545c=P(_0x578ec3);_0x3e77dd['set'](_0x578ec3,_0x25545c),_0x5e29ca['set'](_0x578ec3,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x3e77dd,[],_0x5e29ca);}['getData'](_0x5e674f,_0x18dc4e){if(this['_lastFrom']===_0x5e674f&&this['_lastTo']<=_0x18dc4e)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x18dc4e,!0x0);else{if(!this['_savedMetaData']['has'](_0x5e674f)){const _0x200e25=this['_getPreviousFrom'](_0x5e674f);this['_calculateMetaData'](_0x200e25,_0x5e674f,!0x1);}this['_calculateMetaData'](_0x5e674f,_0x18dc4e,!0x0);}return this['_lastFrom']=_0x5e674f,this['_lastTo']=_0x18dc4e,this['_getState']();}['loadState'](_0x407c4b){const _0x7730f7=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x407c4b['fromVersion'],this['_lastTo']=_0x407c4b['toVersion'];for(const _0x3d31d7 in _0x407c4b['diffData']){const _0x325625=_0x407c4b['diffData'][_0x3d31d7]['attachChange'],_0x5a1cf5=_0x117a5a(_0x407c4b['diffData'][_0x3d31d7]['attributesBefore'])||{},_0x2d8d88=_0x7730f7['_makeModelFromViewString'](_0x407c4b['diffData'][_0x3d31d7]['deletions']);_0x2d8d88['rootName']=_0x3d31d7,_0x2d8d88['_isAttached']=!_0x325625||!_0x325625['isAttached'],_0x2d8d88['isAttached']=()=>_0x2d8d88['_isAttached'],this['_baseRoots']['set'](_0x3d31d7,_0x2d8d88),this['_baseRootsAttributes']['set'](_0x3d31d7,_0x5a1cf5),_0x325625&&this['_touchedRoots']['set'](_0x3d31d7,_0x325625);const _0x416e87=this['_makeIdsRoot'](_0x2d8d88);this['_baseIdsRoots']['set'](_0x3d31d7,_0x416e87);for(const [_0x442319,_0x5cbcf6]of _0x2d8d88['markers']){if(!_0x442319['startsWith']('revision:'))continue;const _0x1171cb=_0x442319['split'](':')[0x2];for(const _0x4b8128 of _0x5cbcf6['getWalker']({'singleCharacters':!0x0})){const _0x5f0394=this['_getVidAttributeName'](_0x4b8128),_0x19643d='elementEnd'==_0x4b8128['type']?_0x4b8128['previousPosition']['path']['slice'](0x0,-0x1):_0x4b8128['previousPosition']['path'],_0x239627=_0x416e87['getNodeByPath'](_0x19643d)['getAttribute'](_0x5f0394);this['_touched']['set'](_0x239627,{'userId':_0x1171cb});}}}this['_startingRevisionId']=this['_revisionId'];const _0x4df7e8=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x3a7830=>!this['_touched']['has'](_0x3a7830));let _0x5d801d=0x0;const _0xddc6d7=new Map();for(const _0x32d57f in _0x407c4b['diffData']){const _0x48dd83=_0x407c4b['diffData'][_0x32d57f]['attachChange'],_0x44ab6b=_0x117a5a(_0x407c4b['diffData'][_0x32d57f]['attributesAfter'])||{},_0x32eb06=_0x7730f7['_makeModelFromViewString'](_0x407c4b['diffData'][_0x32d57f]['insertions']);_0x32eb06['rootName']=_0x32d57f,_0x32eb06['_isAttached']=!_0x48dd83||_0x48dd83['isAttached'],_0x32eb06['isAttached']=()=>_0x32eb06['_isAttached'],this['_diffRoots']['set'](_0x32d57f,_0x32eb06),this['_diffRootsAttributes']['set'](_0x32d57f,_0x44ab6b);const _0xdcc458=this['_makeIdsRoot'](_0x32eb06,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x32d57f,_0xdcc458),_0xddc6d7['set'](_0x32d57f,_0x32eb06['isAttached']()?_0x44ab6b:{});for(const [_0x3028a6,_0x3428db]of _0x32eb06['markers']){if(!_0x3028a6['startsWith']('revision:'))continue;const _0x2863b4=_0x3028a6['split'](':')[0x2];for(const _0x1dc39e of _0x3428db['getWalker']({'singleCharacters':!0x0})){const _0x287b3e=this['_getVidAttributeName'](_0x1dc39e),_0xac8ce6=this['_revisionId']++,_0xa4feb4='elementEnd'==_0x1dc39e['type']?_0x1dc39e['previousPosition']['path']['slice'](0x0,-0x1):_0x1dc39e['previousPosition']['path'];_0xdcc458['getNodeByPath'](_0xa4feb4)['_setAttribute'](_0x287b3e,_0xac8ce6),this['_touched']['set'](_0xac8ce6,{'userId':_0x2863b4});}}for(const _0x53f01b of this['editor']['model']['createRangeIn'](_0x32eb06)['getWalker']({'singleCharacters':!0x0})){const _0x429ab3=this['_getVidAttributeName'](_0x53f01b),_0x32b864='elementEnd'==_0x53f01b['type']?_0x53f01b['previousPosition']['path']['slice'](0x0,-0x1):_0x53f01b['previousPosition']['path'],_0x15687a=_0xdcc458['getNodeByPath'](_0x32b864);_0x15687a['getAttribute'](_0x429ab3)>0x0||_0x15687a['_setAttribute'](_0x429ab3,_0x4df7e8[_0x5d801d++]);}for(const [_0x215e20,_0x26a213]of _0x32eb06['markers'])_0x215e20['startsWith']('revision:')||this['_markers']['set'](_0x215e20,_0x26a213);}const _0x421c07=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0x421c07),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x421c07,0x1));const _0x5784bf=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x5784bf),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x5784bf,0x1));const _0x223d4b=Array['from'](this['_diffRoots'])['map'](([_0x3cdcd6,_0x5efea0])=>[_0x3cdcd6,N(_0x5efea0)]);this['_saveMetaData'](this['_lastTo'],_0x223d4b,this['_markers'],_0xddc6d7);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x3a435b,_0x151933,_0x21159d,_0x176be7){const _0x26897=new Map(_0x151933),_0xba6b1a=new Map(_0x117a5a(_0x176be7)),_0x22e845=new Map();for(const [_0x2e9f0b,_0x525563]of _0x21159d)_0x22e845['set'](_0x2e9f0b,{'start':_0x525563['start']['clone'](),'end':_0x525563['end']['clone'](),'rootName':_0x525563['root']['rootName']});this['_savedMetaData']['set'](_0x3a435b,{'roots':_0x26897,'markers':_0x22e845,'rootsAttributes':_0xba6b1a});}['_removeMetaData'](_0x3deeab){this['_savedMetaData']['delete'](_0x3deeab);}['_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'](_0x477813,_0x513f8f=null){let _0x2c3c55=null;_0x477813['is']('documentFragment')||(_0x2c3c55=new ut(_0x477813['name'],{'vid_start':null===_0x513f8f?this['_revisionId']++:_0x513f8f++}));const _0x581069=[];for(const _0xe86ffb of _0x477813['getChildren']())if(_0xe86ffb['is']('element')){_0x581069['push'](this['_makeIdsRoot'](_0xe86ffb,_0x513f8f));const _0x2fdd38=_0x581069[_0x581069['length']-0x1];null!==_0x513f8f&&(_0x513f8f=_0x2fdd38['is']('element','$text')?_0x2fdd38['getAttribute']('vid')+0x1:_0x2fdd38['getAttribute']('vid_end')+0x1);}else{for(let _0x50da20=0x0;_0x50da20<_0xe86ffb['offsetSize'];_0x50da20++)_0x581069['push'](new ut('$text',{'vid':null===_0x513f8f?this['_revisionId']++:_0x513f8f++}));}if(_0x477813['is']('documentFragment')){const _0x36e757=P(_0x477813['rootName']);return _0x36e757['_insertChild'](0x0,_0x581069),_0x36e757;}return _0x2c3c55['_setAttribute']('vid_end',null===_0x513f8f?this['_revisionId']++:_0x513f8f++),_0x2c3c55['_insertChild'](0x0,_0x581069),_0x2c3c55;}['_calculateMetaData'](_0x531251,_0x2f050e,_0x429cbc){this['_reset']();const {roots:_0x255834,markers:_0x2d4667,rootsAttributes:_0x23c012}=this['_savedMetaData']['get'](_0x531251);this['_baseRoots']=new Map(_0x255834),this['_baseRootsAttributes']=new Map(_0x117a5a(_0x23c012));for(const [_0x1613aa,_0x5d7bd1]of this['_baseRoots'])if('$graveyard'!==_0x1613aa&&(this['_diffRoots']['set'](_0x1613aa,N(_0x5d7bd1)),this['_diffRootsAttributes']=new Map(_0x117a5a(_0x23c012)),_0x429cbc)){const _0x14b6b3=this['_revisionId'];this['_idsRoots']['set'](_0x1613aa,this['_makeIdsRoot'](_0x5d7bd1)),this['_baseIdsRoots']['set'](_0x1613aa,this['_makeIdsRoot'](_0x5d7bd1,_0x14b6b3));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x429cbc&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x3f591c,_0xafcfa8]of _0x2d4667){const _0x1202f5=this['_baseRoots']['get'](_0xafcfa8['rootName']),_0x348086=this['_diffRoots']['get'](_0xafcfa8['rootName']),_0x427a2a=new ft(this['_fixPosition'](_0xafcfa8['start'],_0x1202f5),this['_fixPosition'](_0xafcfa8['end'],_0x1202f5)),_0x2266c2=this['_fixRange'](_0x427a2a,_0x348086);_0x1202f5['markers']['set'](_0x3f591c,_0x427a2a),this['_markers']['set'](_0x3f591c,_0x2266c2);}this['_applyOperations'](_0x531251,_0x2f050e,_0x429cbc);}['_applyOperations'](_0x27cad1,_0x95c5c6,_0x14c507){for(const _0x2dd84f of this['source']['getOperations'](_0x27cad1,_0x95c5c6))this['_handleOperation'](_0x2dd84f,_0x14c507);for(const _0x264d51 of this['_diffRoots']['values']())_0x264d51['markers']['clear']();for(const [_0x2f1953,_0x282757]of this['_markers']){this['_diffRoots']['get'](_0x282757['root']['rootName'])['markers']['set'](_0x2f1953,_0x282757['clone']());}const _0x3257be=new Map(),_0x166666=new Map();for(const [_0x153ad6,_0x1b7ea4]of this['_diffRoots'])_0x3257be['set'](_0x153ad6,N(_0x1b7ea4)),_0x166666['set'](_0x153ad6,this['_diffRootsAttributes']['get'](_0x153ad6));this['_saveMetaData'](_0x95c5c6,_0x3257be,this['_markers'],_0x166666);}['_getPreviousFrom'](_0x1905a6){const _0x42c3d4=Array['from'](this['_savedMetaData']['keys']());_0x42c3d4['sort']((_0x5e3f20,_0x98b0c1)=>_0x5e3f20-_0x98b0c1),_0x42c3d4['reverse']();for(const _0x32c96c of _0x42c3d4)if(_0x32c96c<_0x1905a6)return _0x32c96c;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x4fef04,_0x1e48b2){const _0x34316f=Array['from'](_0x1e48b2['markers'])['map'](([_0xfffa0c,_0x55ea84])=>[_0xfffa0c,this['_fixRange'](_0x55ea84,_0x4fef04)]);_0x4fef04['markers']=new Map(_0x34316f);}['_transformMarkers'](_0x4a7ad3){for(const _0xc38c34 of this['_markers']['values']()){const _0x215fc9=_0xc38c34['getTransformedByOperation'](_0x4a7ad3),_0x3a2b0e=ft['_createFromRanges'](_0x215fc9);_0xc38c34['start']=_0x3a2b0e['start'],_0xc38c34['end']=_0x3a2b0e['end'];}}['_handleOperation'](_0x9de4f,_0x1aeb8a){if('addRoot'!=_0x9de4f['type']&&'detachRoot'!=_0x9de4f['type']){if('insert'==_0x9de4f['type']){const _0x4f2e78=_0x9de4f['position']['root']['rootName'];this['_diffRoots']['has'](_0x4f2e78)||(this['_diffRoots']['set'](_0x4f2e78,P(_0x4f2e78,!0x0)),this['_diffRootsAttributes']['set'](_0x4f2e78,{}),_0x1aeb8a&&this['_idsRoots']['set'](_0x4f2e78,P(_0x4f2e78,!0x0)));}else{if('addRootAttribute'==_0x9de4f['type']||'removeRootAttribute'==_0x9de4f['type']||'changeRootAttribute'==_0x9de4f['type'])return void this['_handleRootAttributeOperation'](_0x9de4f);'marker'==_0x9de4f['type']&&this['_handleMarkerOperation'](_0x9de4f);}if('marker'!==_0x9de4f['type']){const _0x4e9226=this['_cloneOperation'](_0x9de4f,this['_diffRoots']);_0x4e9226['_execute'](),this['_transformMarkers'](_0x4e9226);}if(_0x1aeb8a)switch(_0x9de4f['type']){case'insert':this['_handleInsertOperation'](_0x9de4f);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x9de4f);break;case'merge':this['_handleMergeOperation'](_0x9de4f);break;case'split':this['_handleSplitOperation'](_0x9de4f);}}else this['_handleRootOperation'](_0x9de4f,_0x1aeb8a);}['_cloneOperation'](_0x3fd578,_0x2b9eed){const _0x3621c2=_0x3fd578['clone']();return _0x3621c2['_authorId']=_0x3fd578['_authorId'],this['_fixOperation'](_0x3621c2,_0x2b9eed),_0x3621c2;}['_getBaseVids'](_0x51a62d){return _0x51a62d['map'](_0x3cb994=>{const _0x2b6591=this['_getVidAttributeName'](_0x3cb994);return Number(_0x3cb994['item']['getAttribute'](_0x2b6591));});}['_generateTape'](_0x49def7,_0x1a6fca){if(_0x49def7['is']('element','$text'))_0x1a6fca['push']({'item':_0x49def7,'type':'text'});else{_0x49def7['is']('element')&&_0x1a6fca['push']({'item':_0x49def7,'type':'elementStart'});for(const _0x64c965 of _0x49def7['getChildren']())this['_generateTape'](_0x64c965,_0x1a6fca);_0x49def7['is']('element')&&_0x1a6fca['push']({'item':_0x49def7,'type':'elementEnd'});}return _0x1a6fca;}['_getState'](){const _0x4a1b61=new Map(this['_touched']),_0x1f361f=new Map(_0x4a1b61),_0xbcf040=new Map(),_0x118618={'insertions':{},'deletions':{}},_0x397a7c={'insertions':{},'deletions':{}},_0x5e97e0=new Map(),_0x4e69c3=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x4e69c3['delete']('$graveyard');for(const _0x252dd7 of _0x4e69c3){const _0x111dc7=this['_diffRoots']['get'](_0x252dd7)||P(_0x252dd7,!0x1),_0x5a6ba0=this['_baseRoots']['get'](_0x252dd7)||P(_0x252dd7,!0x1);_0x111dc7['isAttached']()||_0x5a6ba0['isAttached']()?(_0x118618['insertions'][_0x252dd7]=N(_0x111dc7),_0x118618['deletions'][_0x252dd7]=N(_0x5a6ba0),this['_copyMarkers'](_0x118618['deletions'][_0x252dd7],_0x5a6ba0),this['_copyMarkers'](_0x118618['insertions'][_0x252dd7],_0x111dc7),_0x397a7c['insertions'][_0x252dd7]=this['_generateTape'](this['_idsRoots']['get'](_0x252dd7),[]),_0x397a7c['deletions'][_0x252dd7]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x252dd7)||P(_0x252dd7,!0x1),[])):_0x4e69c3['delete'](_0x252dd7);}for(const _0x240892 of _0x4e69c3){const _0x25f95e=_0x397a7c['insertions'][_0x240892];for(const _0x2d4ba6 of _0x25f95e){const _0x102713=this['_getVidAttributeName'](_0x2d4ba6),_0x48def5=_0x2d4ba6['item']['getAttribute'](_0x102713);_0x1f361f['delete'](_0x48def5),_0x48def5>=this['_startingRevisionId']&&_0xbcf040['set'](_0x48def5,_0x4a1b61['get'](_0x48def5));}}for(const _0x5aaabb of _0x4e69c3){const _0x268649=_0x397a7c['insertions'][_0x5aaabb],_0x5712fd=this['_getBaseVids'](_0x397a7c['deletions'][_0x5aaabb]);let _0xe249d7=0x0;for(const _0x472d31 of _0x268649){const _0x5d41af=this['_getVidAttributeName'](_0x472d31),_0x43d30e=_0x472d31['item']['getAttribute'](_0x5d41af);if(!_0xbcf040['has'](_0x43d30e)&&!_0x5e97e0['has'](_0x43d30e)){if(_0x1f361f['has'](_0x43d30e))_0xe249d7++;else{if(_0x43d30e!=_0x5712fd[_0xe249d7]){const _0x44ffc2=_0x4a1b61['get'](_0x43d30e)||_0x4a1b61['get'](_0x5712fd[_0xe249d7]);for(;_0x43d30e!=_0x5712fd[_0xe249d7];)_0x1f361f['has'](_0x5712fd[_0xe249d7])||(_0x5e97e0['set'](_0x5712fd[_0xe249d7],_0x44ffc2),_0x4a1b61['set'](_0x5712fd[_0xe249d7],_0x44ffc2)),_0xe249d7++;}_0xe249d7++;}}}}for(const _0x3d1b5f of _0x4e69c3){const _0x455393=_0x397a7c['insertions'][_0x3d1b5f];for(const _0x1371d0 of _0x455393){const _0x747c48=this['_getVidAttributeName'](_0x1371d0),_0x2ef559=_0x1371d0['item']['getAttribute'](_0x747c48);if(_0x5e97e0['has'](_0x2ef559)){const _0x257acf=_0x5e97e0['get'](_0x2ef559);_0x1f361f['has'](_0x2ef559)||_0x1f361f['set'](_0x2ef559,{..._0x257acf}),_0xbcf040['set'](_0x2ef559,{..._0x257acf});}}}for(const _0x50498a of _0x1f361f['keys']())_0x50498a>=this['_startingRevisionId']&&_0x1f361f['delete'](_0x50498a);const _0x14c613=new Map();for(const _0x2e9352 of _0x4e69c3){let _0x2abf08=_0x397a7c['insertions'][_0x2e9352];for(const _0x59a36b of _0x2abf08)if(_0x59a36b['item']['is']('element','tableCell')){const _0x38aab9=this['_getVidAttributeName'](_0x59a36b),_0x38d15e=_0x59a36b['item']['getAttribute'](_0x38aab9);if(_0xbcf040['has'](_0x38d15e)){const _0x2b1d9f=_0x59a36b['item']['parent']['parent']['getAttribute']('vid_start'),_0x1352af=_0x14c613['get'](_0x2b1d9f)||new Set();_0x1352af['add'](_0xbcf040['get'](_0x38d15e)['userId']),_0x14c613['set'](_0x2b1d9f,_0x1352af);}}_0x2abf08=_0x397a7c['deletions'][_0x2e9352];for(const _0x205e05 of _0x2abf08)if(_0x205e05['item']['is']('element','tableCell')){const _0x3ee576=this['_getVidAttributeName'](_0x205e05),_0x402bce=_0x205e05['item']['getAttribute'](_0x3ee576);if(_0x1f361f['has'](_0x402bce)){const _0x43739e=_0x205e05['item']['parent']['parent']['getAttribute']('vid_start'),_0x44c112=_0x14c613['get'](_0x43739e)||new Set();_0x44c112['add'](_0x1f361f['get'](_0x402bce)['userId']),_0x14c613['set'](_0x43739e,_0x44c112);}}for(const _0x4004aa of _0x14c613['keys']())(_0xbcf040['has'](_0x4004aa)||_0x1f361f['has'](_0x4004aa))&&_0x14c613['delete'](_0x4004aa);}for(const _0x1ef3eb of _0x4e69c3){const _0x2b4b82=_0x397a7c['insertions'][_0x1ef3eb];let _0x12f32b=null,_0x1f41ad=null;for(const _0x1a61b3 of _0x2b4b82){const _0x442969=this['_getVidAttributeName'](_0x1a61b3),_0x4f7c23=_0x1a61b3['item']['getAttribute'](_0x442969),_0x2635d3=_0x14c613['get'](_0x4f7c23);_0x2635d3&&'elementStart'==_0x1a61b3['type']&&(_0x12f32b=Array['from'](_0x2635d3)[0x0],_0x1f41ad=_0x1a61b3['item']['getAttribute']('vid_end')),_0x12f32b&&(_0x1f361f['set'](_0x4f7c23,{'userId':_0x12f32b}),_0xbcf040['set'](_0x4f7c23,{'userId':_0x12f32b})),_0x4f7c23==_0x1f41ad&&(_0x12f32b=null,_0x1f41ad=null);}}const _0x568d7f={},_0x266dc2=new Set();for(const _0x4300b1 of _0x4e69c3){const _0x57adec=_0x118618['deletions'][_0x4300b1],_0x3019bc=_0x118618['insertions'][_0x4300b1];for(const {userId:_0x327a3f}of this['_touchedMarkers']['values']())null!==_0x327a3f&&_0x266dc2['add'](_0x327a3f);for(const {userId:_0x3a5334}of this['_touchedRoots']['values']())null!==_0x3a5334&&_0x266dc2['add'](_0x3a5334);this['_markChanges'](_0x3019bc,_0x397a7c['insertions'][_0x4300b1],_0xbcf040,'insertion',_0x266dc2),this['_markChanges'](_0x57adec,_0x397a7c['deletions'][_0x4300b1],_0x1f361f,'deletion',_0x266dc2),_0x568d7f[_0x4300b1]={'insertions':this['_prepareViewToSave'](_0x3019bc),'deletions':this['_prepareViewToSave'](_0x57adec),'attachChange':this['_touchedRoots']['get'](_0x4300b1)||null,'attributesBefore':_0x117a5a(this['_baseRootsAttributes']['get'](_0x4300b1))||{},'attributesAfter':_0x117a5a(this['_diffRootsAttributes']['get'](_0x4300b1))};}return{'diffData':_0x568d7f,'authorsIds':Array['from'](_0x266dc2)};}['_processRootBeforeSave'](_0x4dfd3e){for(const [,_0x44624f]of _0x4dfd3e['markers']){const _0x26d9f4=_0x44624f['start']['getAncestors']()['filter'](_0x207230=>'tableCell'==_0x207230['name']);for(const _0x2d8bbb of _0x26d9f4)0x1==_0x2d8bbb['childCount']&&_0x2d8bbb['getChild'](0x0)['is']('element','paragraph')&&_0x2d8bbb['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x502bb5){this['_processRootBeforeSave'](_0x502bb5);const _0xc8b98a=this['editor']['data']['toView'](_0x502bb5,{}),_0x13983c=Array['from'](_0xc8b98a['getChildren']())['map'](_0x20b18b=>this['_getViewJson'](_0x20b18b));return JSON['stringify'](_0x13983c);}['_getViewJson'](_0x3f026d){if(_0x3f026d['is']('$text'))return _0x3f026d['data'];{const _0x42cfc9=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x4353a5=_0x3f026d,_0x28e483=this['editor']['data']['htmlProcessor']['domConverter'],_0x1b9468={'type':_0x42cfc9['_getTypeCharForViewElement'](_0x4353a5),'name':_0x4353a5['name'],'attributes':Array['from'](_0x4353a5['getAttributes']()),'children':Array['from'](_0x4353a5['getChildren']())['map'](_0x591553=>this['_getViewJson'](_0x591553))};if(_0x3f026d['is']('uiElement')&&'$comment'!=_0x3f026d['name']){const _0x34d8c9=_0x3f026d['render'](_0x28e483['domDocument'],_0x28e483);_0x1b9468['children']['push'](_0x34d8c9['outerHTML']);}else{if(_0x3f026d['is']('rawElement')){const _0xa7151c=_0x28e483['domDocument']['createElement'](_0x4353a5['name']);_0x3f026d['render'](_0xa7151c,_0x28e483),_0x1b9468['children']['push'](_0xa7151c['innerHTML']);}}const _0x52b524=Array['from'](_0x4353a5['getCustomProperties']());_0x52b524['length']>0x0&&(_0x1b9468['customProperties']=_0x52b524);const _0x2632af=_0x4353a5['getFillerOffset']();return null!==_0x2632af&&(_0x1b9468['fillerOffset']=_0x2632af),_0x1b9468;}}['_markChanges'](_0x225abd,_0x26c341,_0x5de346,_0x840eb7,_0x6770a1){let _0x45b020=null,_0x425121=null,_0x2692f7=0x0;const _0x230e4d=this['editor']['model'];for(let _0x1be9c6=0x0;_0x1be9c6<_0x26c341['length'];_0x1be9c6++){const _0x592022=this['_getVidAttributeName'](_0x26c341[_0x1be9c6]),_0x36d5f4=_0x26c341[_0x1be9c6]['item']['getAttribute'](_0x592022),_0x2e8e8d=_0x5de346['get'](_0x36d5f4),_0xec1858=_0x1be9c6==_0x26c341['length']-0x1;(!_0x45b020&&_0x2e8e8d&&(_0x45b020=_0x2e8e8d,_0x425121=_0x26c341[_0x1be9c6]),_0x45b020&&(!_0x2e8e8d||_0x2e8e8d['userId']!=_0x45b020['userId']))&&(_0x239e8f(_0x2e8e8d,F(_0x425121,_0x225abd,_0x230e4d),F(_0x26c341[_0x1be9c6],_0x225abd,_0x230e4d)),_0x45b020=_0x2e8e8d||null,_0x425121=_0x2e8e8d?_0x26c341[_0x1be9c6]:null),_0x45b020&&_0xec1858&&_0x239e8f(_0x2e8e8d,F(_0x425121,_0x225abd,_0x230e4d),B(_0x26c341[_0x1be9c6],_0x225abd,_0x230e4d));}function _0x239e8f(_0xbec1ef,_0x552d57,_0x1d45f7){const _0x330c6e=_0x45b020['userId'],_0x257e80='revision:'+_0x840eb7+':'+_0x330c6e+':'+_0x2692f7++,_0x6eb932=_0x230e4d['createRange'](_0x552d57,_0x1d45f7);_0x225abd['markers']['set'](_0x257e80,_0x6eb932),null!==_0x330c6e&&_0x6770a1['add'](_0x330c6e);}}['_getVidAttributeName'](_0x17b5b0){switch(_0x17b5b0['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x4858c6,_0x4b94c5){_0x4858c6['baseVersion']=null;for(const _0x477957 in _0x4858c6){const _0x5190f9=_0x4858c6[_0x477957];if(_0x5190f9 instanceof vt){const _0xda795a=_0x4b94c5['get'](_0x5190f9['root']['rootName']);_0x4858c6[_0x477957]=this['_fixPosition'](_0x5190f9,_0xda795a);}if(_0x5190f9 instanceof ft){const _0x4fa04e=_0x4b94c5['get'](_0x5190f9['root']['rootName']);_0x4858c6[_0x477957]=this['_fixRange'](_0x5190f9,_0x4fa04e);}'root'===_0x477957&&(_0x4858c6['root']=_0x4b94c5['get'](_0x4858c6['root']['rootName']));}}['_fixRange'](_0x468520,_0x44b58b){return this['editor']['model']['createRange'](this['_fixPosition'](_0x468520['start'],_0x44b58b),this['_fixPosition'](_0x468520['end'],_0x44b58b));}['_fixPosition'](_0x3e7742,_0x45fe17){return this['editor']['model']['createPositionFromPath'](_0x45fe17,_0x3e7742['path'],_0x3e7742['stickiness']);}['_handleInsertOperation'](_0x26591b){const _0x140f96=this['_idsRoots']['get'](_0x26591b['position']['root']['rootName']),_0x55b228=this['_fixPosition'](_0x26591b['position'],_0x140f96),_0x105f6e=null===_0x26591b['_authorId']?null:_0x26591b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3c28c4=_0x55b228['parent'],_0x1eaf1e=this['_revisionId'],_0x24497e=[];for(const _0x3cbd47 of _0x26591b['nodes'])if(_0x3cbd47['is']('element'))_0x24497e['push'](this['_makeIdsRoot'](_0x3cbd47));else{for(let _0x506379=0x0;_0x506379<_0x3cbd47['offsetSize'];_0x506379++)_0x24497e['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x257f85=this['_revisionId'];for(let _0x3b7939=_0x1eaf1e;_0x3b7939<_0x257f85;_0x3b7939++)this['_touched']['set'](_0x3b7939,{'userId':_0x105f6e});_0x3c28c4['_insertChild'](_0x55b228['offset'],_0x24497e);}['_handleMoveOperation'](_0x53abe9){(_0x53abe9=this['_cloneOperation'](_0x53abe9,this['_idsRoots']))['_execute']();const _0x2380c6=null===_0x53abe9['_authorId']?null:_0x53abe9['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x43cc28=_0x53abe9['getMovedRangeStart'](),_0x2dfc00=_0x43cc28['parent'],_0xaf6ae7=_0x43cc28['offset'];!function _0x299dad(_0x550f7e,_0x3cd68e,_0x16f738,_0x1d5741){for(let _0x547aa0=_0x16f738;_0x547aa0<_0x1d5741;_0x547aa0++){const _0x1f6172=_0x3cd68e['getChild'](_0x547aa0);_0x1f6172['is']('element','$text')?_0x550f7e['set'](_0x1f6172['getAttribute']('vid'),{'userId':_0x2380c6}):(_0x550f7e['set'](_0x1f6172['getAttribute']('vid_start'),{'userId':_0x2380c6}),_0x299dad(_0x550f7e,_0x1f6172,0x0,_0x1f6172['childCount']),_0x550f7e['set'](_0x1f6172['getAttribute']('vid_end'),{'userId':_0x2380c6}));}}(this['_touched'],_0x2dfc00,_0xaf6ae7,_0xaf6ae7+_0x53abe9['howMany']);}['_handleMergeOperation'](_0x1d72ee){const _0x55f67c=null===(_0x1d72ee=this['_cloneOperation'](_0x1d72ee,this['_idsRoots']))['_authorId']?null:_0x1d72ee['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x46cc71=_0x1d72ee['targetPosition']['parent'],_0x58ce57=_0x1d72ee['sourcePosition']['parent'],_0x4feae2=_0x46cc71['getAttribute']('vid_end'),_0x19a077=_0x58ce57['getAttribute']('vid_start');_0x46cc71['_setAttribute']('vid_end',_0x58ce57['getAttribute']('vid_end')),_0x58ce57['_setAttribute']('vid_end',_0x4feae2),this['_touched']['set'](_0x19a077,{'userId':_0x55f67c}),this['_touched']['set'](_0x4feae2,{'userId':_0x55f67c}),_0x1d72ee['_execute']();}['_handleSplitOperation'](_0x343a7d){const _0x1fe8b6=null===(_0x343a7d=this['_cloneOperation'](_0x343a7d,this['_idsRoots']))['_authorId']?null:_0x343a7d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x209fbc=_0x343a7d['graveyardPosition'],_0x3c2fd1=_0x343a7d['splitPosition']['parent'];_0x343a7d['_execute']();const _0x2c82dc=_0x3c2fd1['getAttribute']('vid_end'),_0x13b575=_0x343a7d['insertionPosition']['nodeAfter'];if(_0x209fbc){const _0xfea096=_0x13b575['getAttribute']('vid_end'),_0x381a09=_0x3c2fd1['getAttribute']('vid_end');_0x3c2fd1['_setAttribute']('vid_end',_0xfea096),_0x13b575['_setAttribute']('vid_end',_0x381a09),this['_touched']['set'](_0x3c2fd1['getAttribute']('vid_end'),{'userId':_0x1fe8b6}),this['_touched']['set'](_0x13b575['getAttribute']('vid_start'),{'userId':_0x1fe8b6});}else{const _0x4d8f3d=this['_revisionId']++,_0x271e28=this['_revisionId']++;_0x3c2fd1['_setAttribute']('vid_end',_0x4d8f3d),_0x13b575['_setAttribute']('vid_start',_0x271e28),_0x13b575['_setAttribute']('vid_end',_0x2c82dc),this['_touched']['set'](_0x4d8f3d,{'userId':_0x1fe8b6}),this['_touched']['set'](_0x271e28,{'userId':_0x1fe8b6});}}['_handleMarkerOperation'](_0xe5efd9){if(!_0xe5efd9['affectsData'])return;const _0x34c99e=(_0xe5efd9=this['_cloneOperation'](_0xe5efd9,this['_diffRoots']))['oldRange']?_0xe5efd9['oldRange']['root']:null,_0x4ea1fe=_0xe5efd9['newRange']?_0xe5efd9['newRange']['root']:null;_0x34c99e&&this['_markers']['delete'](_0xe5efd9['name']),_0x4ea1fe&&this['_markers']['set'](_0xe5efd9['name'],_0xe5efd9['newRange']['clone']());const _0x3d25da=null===_0xe5efd9['_authorId']?null:_0xe5efd9['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x263e2e=_0xe5efd9['name'];if(!this['_touchedMarkers']['has'](_0x263e2e))return void this['_touchedMarkers']['set'](_0x263e2e,{'range':_0xe5efd9['oldRange'],'userId':_0x3d25da});const _0x12d324=this['_touchedMarkers']['get'](_0x263e2e),_0x80e822=_0x12d324['range'],_0x1fb088=_0xe5efd9['newRange'];null==_0x80e822&&null==_0x1fb088||_0x80e822&&_0x1fb088&&_0x80e822['isEqual'](_0x1fb088)?this['_touchedMarkers']['delete'](_0xe5efd9['name']):_0x12d324['userId']=_0x3d25da;}['_handleRootOperation'](_0x2635a5,_0x49adda){this['_diffRoots']['has'](_0x2635a5['rootName'])?this['_diffRoots']['get'](_0x2635a5['rootName'])['_isAttached']=_0x2635a5['isAdd']:(this['_diffRoots']['set'](_0x2635a5['rootName'],P(_0x2635a5['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x2635a5['rootName'],{}),_0x49adda&&this['_idsRoots']['set'](_0x2635a5['rootName'],P(_0x2635a5['rootName'],!0x0)));const _0xfe6ba=null===_0x2635a5['_authorId']?null:_0x2635a5['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3da7ac=this['_touchedRoots']['get'](_0x2635a5['rootName']);_0x3da7ac&&_0x3da7ac['userId']===_0xfe6ba?this['_touchedRoots']['delete'](_0x2635a5['rootName']):this['_touchedRoots']['set'](_0x2635a5['rootName'],{'userId':_0xfe6ba,'isAttached':_0x2635a5['isAdd']});}['_handleRootAttributeOperation'](_0x541504){const _0x3bda3d=this['_diffRootsAttributes']['get'](_0x541504['root']['rootName']);null===_0x541504['newValue']?delete _0x3bda3d[_0x541504['key']]:_0x3bda3d[_0x541504['key']]=_0x541504['newValue'];}}function N(_0x4af39c){const _0x33e190=P(_0x4af39c['rootName'],_0x4af39c['isAttached']());for(const _0x4e36e0 of _0x4af39c['getChildren']()){const _0x4fd950=_0x4e36e0['_clone'](!0x0);_0x33e190['_appendChild'](_0x4fd950);}return _0x33e190;}function P(_0x3e57cd,_0x5f3fdb=!0x0){const _0x2b3cff=new gt();return _0x2b3cff['rootName']=_0x3e57cd,_0x2b3cff['_isAttached']=_0x5f3fdb,_0x2b3cff['isAttached']=()=>_0x2b3cff['_isAttached'],_0x2b3cff;}function F(_0x1f0100,_0x5cd91d,_0x5ed409){const _0x56e92c='elementEnd'==_0x1f0100['type']?_0x5ed409['createPositionAt'](_0x1f0100['item'],'end'):_0x5ed409['createPositionBefore'](_0x1f0100['item']);return _0x5ed409['createPositionFromPath'](_0x5cd91d,_0x56e92c['path'],_0x56e92c['stickiness']);}function B(_0x311873,_0x3a5502,_0x1ef244){const _0x29694c='elementStart'==_0x311873['type']?_0x1ef244['createPositionAt'](_0x311873['item'],0x0):_0x1ef244['createPositionAfter'](_0x311873['item']);return _0x1ef244['createPositionFromPath'](_0x3a5502,_0x29694c['path'],_0x29694c['stickiness']);}class os extends _0x431dcc{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x19e0cf,_0x2dd2ec){super(_0x19e0cf),this['focusTracker']=new _0x172b14(),this['keystrokes']=new _0x3da32d(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x2dd2ec),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'](),_0x4c54dd({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x38df1b=_0x26c03f=>_0x26c03f['stopPropagation']();this['keystrokes']['set']('arrowright',_0x38df1b),this['keystrokes']['set']('arrowleft',_0x38df1b),this['keystrokes']['set']('arrowup',_0x38df1b),this['keystrokes']['set']('arrowdown',_0x38df1b);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x22f86b){this['revisionNameInputView']['fieldView']['element']['value']=_0x22f86b['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x1aa4f4){const _0x40c708=new nt(this['locale'],ti),_0xeb4b7d=_0x40c708['fieldView'];_0xeb4b7d['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x4497fb=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x1aa4f4&&(_0x4497fb+='\x20('+g(this['locale'],'optional')+')'),(_0x40c708['label']=_0x4497fb,_0xeb4b7d['on']('input',()=>{this['revisionNameInputValue']=_0xeb4b7d['element']['value']['trim']();}),_0x40c708);}}class f extends _0x34d9d9{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x3fe1d9=this['editor'],_0x5ce366=_0x3fe1d9['plugins']['get']('RevisionTracker');_0x3fe1d9['ui']['componentFactory']['add']('revisionHistory',_0x2fa1e3=>{const _0x5168e0=_0x52ab85(_0x2fa1e3),_0x5379e4=_0x5168e0['panelView']['children'],_0x1e84f5=new _0x2fabb2(_0x2fa1e3),_0x1fc2d3=new te(_0x2fa1e3),_0x258b04=new _0xe0a7f0(_0x2fa1e3),_0x21b473=new te(_0x2fa1e3),_0x550ea4=new _0xe0a7f0(_0x2fa1e3);return _0x5168e0['bind']('isEnabled')['to'](_0x5ce366,'isReady',_0x5ce366,'isEnabled',_0x3fe1d9,'isReadOnly',(_0x10dfe9,_0x3009d1,_0x1b0587)=>_0x10dfe9&&_0x3009d1&&!_0x1b0587),_0x5168e0['buttonView']['set']({'icon':_0x9f4221,'label':g(_0x2fa1e3,'Revision\x20history'),'tooltip':!0x0}),_0x258b04['set']({'label':g(_0x2fa1e3,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x258b04['bind']('isEnabled')['to'](_0x5ce366,'isReady',_0x5ce366,'isEnabled',_0x3fe1d9,'isReadOnly',(_0x23aee7,_0x990151,_0x5515e6)=>_0x23aee7&&_0x990151&&!_0x5515e6),_0x258b04['on']('execute',()=>this['_showDialog']()),_0x550ea4['set']({'label':g(_0x2fa1e3,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x550ea4['bind']('isEnabled')['to'](_0x5ce366,'isReady',_0x3fe1d9,'isReadOnly',(_0x28d7f1,_0x284fbe)=>_0x28d7f1&&!_0x284fbe),_0x550ea4['on']('execute',()=>{_0x3fe1d9['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x5168e0['isOpen']=!0x1,_0x3fe1d9['editing']['view']['focus']();}),_0x1fc2d3['children']['add'](_0x258b04),_0x21b473['children']['add'](_0x550ea4),_0x1e84f5['role']='menu',_0x1e84f5['items']['addMany']([_0x1fc2d3,_0x21b473]),_0x5379e4['add'](_0x1e84f5),_0x5168e0;}),_0x3fe1d9['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x144650=this['editor'],_0x358dc8=_0x144650['locale'],_0x371f4e=new _0xb8c550(_0x358dc8),_0x56da58=new _0xb327d1(_0x358dc8);_0x371f4e['buttonView']['set']({'icon':_0x9f4221,'label':g(_0x358dc8,'Revision\x20history')});const _0x347848=new _0x114864(_0x358dc8,_0x371f4e),_0x50ffc7=new _0x4157ef(_0x358dc8);_0x50ffc7['set']({'label':g(_0x358dc8,'Save\x20current\x20revision')}),_0x50ffc7['delegate']('execute')['to'](_0x371f4e),_0x50ffc7['on']('execute',()=>{this['_showDialog']();}),_0x347848['children']['add'](_0x50ffc7),_0x56da58['items']['add'](_0x347848);const _0x2540d7=new _0x114864(_0x358dc8,_0x371f4e),_0x13081b=new _0x4157ef(_0x358dc8);return _0x13081b['set']({'label':g(_0x358dc8,'Open\x20revision\x20history')}),_0x13081b['delegate']('execute')['to'](_0x371f4e),_0x13081b['on']('execute',()=>{_0x144650['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x2540d7['children']['add'](_0x13081b),_0x56da58['items']['add'](_0x2540d7),_0x371f4e['panelView']['children']['add'](_0x56da58),_0x371f4e;}['_showDialog'](){const _0x5b0e33=this['editor'],_0x4b4229=_0x5b0e33['locale'],_0x5ec2d0=_0x5b0e33['plugins']['get']('Dialog'),_0x39f8a6=_0x5b0e33['plugins']['get']('RevisionTracker');function _0x1cf18f(_0x4dda89){_0x5b0e33['config']['get']('revisionHistory.requireRevisionName')&&''===_0x4dda89['revisionName']?_0x4dda89['revisionNameInputView']['errorText']=g(_0x4b4229,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x5b0e33['plugins']['get'](u)['saveRevision']({'name':_0x4dda89['revisionName']}),_0x5ec2d0['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x1cf18f(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x5ec2d0['show']({'id':'revisionSave','title':g(_0x4b4229,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x5b0e33['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x5ec2d0['hide']()},{'label':g(_0x5b0e33['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x373c4c){_0x373c4c['bind']('isEnabled')['to'](_0x39f8a6,'isReady',_0x39f8a6,'isEnabled',_0x5b0e33,'isReadOnly',(_0x3199d6,_0x423b40,_0x24f58e)=>_0x3199d6&&_0x423b40&&!_0x24f58e);},'onExecute':()=>_0x1cf18f(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x33c4e8=this['editor'],_0x1238be=_0x33c4e8['locale'];this['_saveRevisionFormView']=new os(_0x1238be,_0x33c4e8['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends _0x431dcc{['changeId'];['_model'];constructor(_0x1f5220,_0x493818){super(_0x1f5220),this['_model']=_0x493818,this['changeId']=_0x493818['id'];const _0x5836ad=this['bindTemplate'],_0x4f10a2=g(_0x1f5220,_0x493818['data']['isSuggestion']?'Suggested\x20by':'add'==_0x493818['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x493818['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x5836ad['to']('type',_0x3e503b=>'ck-revision-change__'+_0x3e503b)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x4f10a2}]},{'text':'\x20'+_0x493818['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x10ab85(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0xb59eb8){super(),this['id']=_0xb59eb8['id']||_0x521db4(),this['author']=_0xb59eb8['author'],this['type']=_0xb59eb8['type'],this['data']=_0xb59eb8['data']||{},this['rootName']=_0xb59eb8['rootName'],this['set']('createdAt',_0xb59eb8['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class c{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x487da4,_0x1de7fb){this['newRevisionId']=_0x487da4,this['oldRevisionId']=_0x1de7fb,this['changes']=new _0x346a75();}['_setChanges'](_0x3ab528){for(const _0xa128b8 of _0x3ab528)this['changes']['add'](_0xa128b8);}}class m extends _0x34d9d9{['repository'];['adapter']=null;['_utils'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x3ff113,_0x2a3c01,I,V];}constructor(_0x5bf3e6){super(_0x5bf3e6),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x30ad7b,_0x56ee5b,_0x1e9a1b)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x18d910=>{for(const _0x55238c of this['editor']['editing']['view']['document']['roots'])_0x1e9a1b?_0x18d910['removeClass']('ck-editor__editable__overlay',_0x55238c):_0x18d910['addClass']('ck-editor__editable__overlay',_0x55238c);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x13cb97=>null!==_0x13cb97),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x1a779b,_0x4307a2,_0x229624)=>_0x1a779b&&_0x229624?_0x4307a2['changes']['getIndex'](_0x229624):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x14f96b,_0x4d5154)=>_0x14f96b?_0x4d5154['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x2a3c01);}['init'](){const _0x3b5b12=this['editor'],_0x1ed6a=new pt(_0x3b5b12,{'direction':'backward'}),_0x39cb5b=new pt(_0x3b5b12,{'direction':'forward'});(_0x3b5b12['commands']['add']('showPreviousChange',_0x1ed6a),_0x3b5b12['commands']['add']('showNextChange',_0x39cb5b),_0x3b5b12['commands']['add']('restoreRevision',new wt(_0x3b5b12)),this['on']('change:numberOfChanges',()=>{_0x1ed6a['refresh'](),_0x39cb5b['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x3b5b12['enableReadOnlyMode']('revision-viewer'),_0x3b5b12['plugins']['has']('WidgetToolbarRepository'))&&_0x3b5b12['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x2b8aba){return await this['_utils']['loadRevisionData'](_0x2b8aba,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x2b8aba);}async['getRevisionRootsAttributes'](_0x418cb5){return await this['_utils']['loadRevisionData'](_0x418cb5,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x418cb5);}async['compare'](_0x58366c,_0x5a94d1,_0x1c95c2=!0x1){if(!this['isEnabled'])return;const _0x2ca65f=this['diff'],_0x2905fa=this['repository'],_0x5b1561='string'==typeof _0x58366c?_0x2905fa['getRevision'](_0x58366c):_0x58366c,_0x35a56a='string'==typeof _0x5a94d1?_0x2905fa['getRevision'](_0x5a94d1):_0x5a94d1,_0x430635=_0x5b1561['id'],_0x5b3ae2=_0x35a56a?_0x35a56a['id']:null;if(!_0x1c95c2&&this['diff']&&this['diff']['newRevisionId']===_0x430635&&this['diff']['oldRevisionId']===_0x5b3ae2)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x430635,_0x5b3ae2);const _0x1822a2=this['_getRevisionsRange'](_0x5b1561,_0x35a56a,!0x0)['map'](_0x26bfea=>this['_utils']['loadRevisionData'](_0x26bfea,this['adapter']));return _0x1822a2['push'](new Promise(_0x93104b=>{setTimeout(_0x93104b,0x14);})),Promise['all'](_0x1822a2)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x13db49=this['_getDiff'](_0x430635,_0x5b3ae2);for(const _0x43f85a of _0x13db49['changes'])this['_changeIdToChange']['set'](_0x43f85a['id'],_0x43f85a);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x46fd01=>{for(const _0x497adb of this['editor']['model']['document']['getRootNames']())_0x46fd01['detachRoot'](_0x497adb);for(const _0x4b69d6 of Object['keys'](_0x13db49['model'])){const _0x5242c5=_0x46fd01['addRoot'](_0x4b69d6);for(const _0x5b313b of Object['keys'](_0x13db49['attributes'][_0x4b69d6]))_0x46fd01['setAttribute'](_0x5b313b,_0x13db49['attributes'][_0x4b69d6][_0x5b313b],_0x5242c5);_0x46fd01['insert'](_0x13db49['model'][_0x4b69d6],_0x5242c5,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x13db49['changes'])),this['isReady']=!0x0;})['catch'](_0x50ca21=>{console['error'](_0x50ca21),this['_cleanUp'](),_0x2ca65f&&(this['diff']=_0x2ca65f),this['isReady']=!0x0;});}['addRevisionData'](_0x2b7afa,_0x336782){const _0x2bf200=this['repository']['createRevision'](_0x2b7afa);return _0x2bf200['on']('_update',(_0x426156,_0x7e1828,_0x19e80a)=>_0x336782(_0x7e1828,_0x19e80a,_0x2bf200)),this['repository']['addRevision'](_0x2bf200),_0x2bf200;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x2a7dad=>{for(const _0x9ce7eb of this['editor']['model']['document']['getRootNames']())_0x2a7dad['detachRoot'](_0x9ce7eb);});}['_sortAndFilterDiffChanges'](_0xdc5130){const _0xe76a6a=[],_0x549022=new Map();for(const _0x2601d2 of this['editor']['model']['document']['getRootNames']()){const _0x36acf1=this['editor']['editing']['view']['getDomRoot'](_0x2601d2);if(!_0x36acf1)continue;const _0x7d0dc8=_0x36acf1['getClientRects']()['item'](0x0);_0x7d0dc8&&(_0xe76a6a['push'](_0x2601d2),_0x549022['set'](_0x2601d2,_0x7d0dc8));}return _0xe76a6a['sort']((_0x53cafe,_0x439b21)=>{const _0xe7361c=_0x549022['get'](_0x53cafe),_0x2a6aa8=_0x549022['get'](_0x439b21);return _0xe7361c['y']-_0x2a6aa8['y']||_0xe7361c['x']-_0x2a6aa8['x'];}),(_0xdc5130=_0xdc5130['filter'](_0x138ec1=>_0xe76a6a['includes'](_0x138ec1['rootName'])))['sort']((_0x27bdb8,_0x1dc8a4)=>_0xe76a6a['indexOf'](_0x27bdb8['rootName'])-_0xe76a6a['indexOf'](_0x1dc8a4['rootName'])),_0xdc5130;}['_makeTape'](_0x2c20f1){const _0x1e1867=Array['from'](_0x2c20f1['markers'])['filter'](([_0x53afad,_0x1964ea])=>_0x53afad['startsWith']('revision:')&&!_0x1964ea['isCollapsed']),_0x391570=Array['from'](this['editor']['model']['createRangeIn'](_0x2c20f1)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x1e1867['length'])for(const _0x5cc54d of _0x391570){const [_0x199efa,_0x44f5f6]=_0x1e1867[0x0],[,_0x535bf5,_0x327aa3]=_0x199efa['split'](':');if(_0x44f5f6['end']['isEqual'](_0x5cc54d['nextPosition'])&&_0x1e1867['shift'](),(_0x5cc54d['previousPosition']['isEqual'](_0x44f5f6['start'])||_0x5cc54d['previousPosition']['isAfter'](_0x44f5f6['start']))&&('insertion'==_0x535bf5?_0x5cc54d['isAdded']={'userId':_0x327aa3}:'deletion'==_0x535bf5&&(_0x5cc54d['isRemoved']={'userId':_0x327aa3})),0x0==_0x1e1867['length'])break;}return _0x391570;}['_refreshStartEndIndex'](_0x49d3ef){const _0x2cbfff=new Map();for(let _0x16479d=0x0;_0x16479d<_0x49d3ef['length'];_0x16479d++)'text'===_0x49d3ef[_0x16479d]['type']?(_0x49d3ef[_0x16479d]['item']['startIndex']=_0x16479d,_0x49d3ef[_0x16479d]['item']['endIndex']=_0x16479d):('elementStart'===_0x49d3ef[_0x16479d]['type']?_0x49d3ef[_0x16479d]['item']['startIndex']=_0x16479d:'elementEnd'===_0x49d3ef[_0x16479d]['type']&&(_0x49d3ef[_0x16479d]['item']['endIndex']=_0x16479d),_0x2cbfff['set'](_0x49d3ef[_0x16479d]['id'],_0x16479d));for(const _0x24d7f7 of _0x2cbfff['values']())'elementStart'===_0x49d3ef[_0x24d7f7]['type']?_0x49d3ef[_0x24d7f7]['item']['endIndex']=_0x2cbfff['get'](_0x49d3ef[_0x24d7f7]['pairId']):'elementEnd'===_0x49d3ef[_0x24d7f7]['type']&&(_0x49d3ef[_0x24d7f7]['item']['startIndex']=_0x2cbfff['get'](_0x49d3ef[_0x24d7f7]['pairId']));}['_processTape'](_0x2c8133){for(let _0x132142=0x0;_0x132142<_0x2c8133['length'];_0x132142++){if('elementStart'===_0x2c8133[_0x132142]['type'])_0x2c8133[_0x132142]['item']['startIndex']=_0x132142;else{if('elementEnd'===_0x2c8133[_0x132142]['type']){_0x2c8133[_0x132142]['item']['endIndex']=_0x132142;const _0x384bfd=_0x2c8133[_0x132142]['item']['startIndex'];_0x2c8133[_0x384bfd]['pairId']=_0x2c8133[_0x132142]['id'],_0x2c8133[_0x132142]['pairId']=_0x2c8133[_0x384bfd]['id'];}else _0x2c8133[_0x132142]['item']['startIndex']=_0x132142,_0x2c8133[_0x132142]['item']['endIndex']=_0x132142,_0x2c8133[_0x132142]['pairId']=null;}_0x2c8133[_0x132142]['markersStart']||(_0x2c8133[_0x132142]['markersStart']=[],_0x2c8133[_0x132142]['markersEnd']=[]);}}['_markInsertions'](_0x2c12d1,_0x12bb32){const _0x3a8e79=_0x2c12d1['filter'](_0x1cf088=>!_0x1cf088['isAdded']);for(let _0x55c44b=0x0;_0x55c44b<_0x12bb32['length'];_0x55c44b++)_0x12bb32[_0x55c44b]['isAdded']&&(_0x3a8e79[_0x55c44b]['isAdded']=_0x12bb32[_0x55c44b]['isAdded']);}['_getDiff'](_0x5e03aa,_0x7c0a33=null){const _0x279165=this['repository']['getRevision'](_0x5e03aa),_0x4ed694=_0x7c0a33?this['repository']['getRevision'](_0x7c0a33):null,_0x343101=this['_getRevisionsRange'](_0x279165,_0x4ed694),_0x2a2663=_0x343101[_0x343101['length']-0x1],_0xeb6409=new Map(),_0x57930b={'model':{},'attributes':{},'changes':[]},_0x46ae57=new Set(),_0x4054fc=new Map();for(let _0x4e1abe=_0x343101['length']-0x1;_0x4e1abe>=0x0;_0x4e1abe--){const _0x25e6ad=_0x343101[_0x4e1abe];for(const _0x4bcd1d of Object['keys'](_0x25e6ad['diffData']))if(_0x25e6ad['diffData'][_0x4bcd1d]['attachChange']){const _0x30a365=_0x25e6ad['diffData'][_0x4bcd1d]['attachChange'];_0x30a365['isAttached']?(_0x46ae57['add'](_0x4bcd1d),_0x4054fc['has'](_0x4bcd1d)&&_0x4054fc['get'](_0x4bcd1d)['userId']==_0x30a365['userId']?_0x4054fc['delete'](_0x4bcd1d):_0x4054fc['set'](_0x4bcd1d,_0x30a365)):_0x4054fc['has'](_0x4bcd1d)?(_0x46ae57['delete'](_0x4bcd1d),_0x4054fc['delete'](_0x4bcd1d)):(_0x46ae57['add'](_0x4bcd1d),_0x4054fc['set'](_0x4bcd1d,_0x30a365));}else _0x46ae57['add'](_0x4bcd1d);}for(const _0x562b39 of _0x46ae57){const _0x2e0e62=_0x4054fc['has'](_0x562b39)&&!_0x4054fc['get'](_0x562b39)['isAttached'];let _0x35e962=_0x2e0e62?_0x343101['length']-0x1:0x0;const _0x339f5c=_0x2e0e62?-0x1:0x1;for(;_0x343101[_0x35e962];){const _0x352151=_0x343101[_0x35e962];if(_0x352151['diffData'][_0x562b39]){const _0x310804=_0x2e0e62?_0x352151['diffData'][_0x562b39]['attributesBefore']:_0x352151['diffData'][_0x562b39]['attributesAfter'];_0x57930b['attributes'][_0x562b39]=_0x310804?_0x117a5a(_0x310804):{};break;}_0x35e962+=_0x339f5c;}}for(const _0x18a5e5 of _0x343101){_0x18a5e5['model']={};for(const _0x4ee671 of _0x18a5e5['authors'])_0xeb6409['set'](_0x4ee671['id'],_0x4ee671);for(const _0x22b154 of _0x46ae57){const _0xb06754=_0x18a5e5['diffData'][_0x22b154]?_0x18a5e5['diffData'][_0x22b154]['insertions']:'[]',_0x13fc56=_0x18a5e5['diffData'][_0x22b154]?_0x18a5e5['diffData'][_0x22b154]['deletions']:'[]';_0x18a5e5['model'][_0x22b154]={'insertions':this['_utils']['_makeModelFromViewString'](_0xb06754),'deletions':this['_utils']['_makeModelFromViewString'](_0x13fc56)};}}for(const _0x5af920 of _0x46ae57){let _0xed6f55=null,_0x5e7680=0x0;const _0x5ca2ea=new Map(Array['from'](_0x279165['model'][_0x5af920]['insertions']['markers'])['filter'](([_0x3eaca7])=>!_0x3eaca7['startsWith']('revision:')));let _0x3910e8=0x0;for(const _0x496f7b of _0x343101){const _0x23d2f9=this['_makeTape'](_0x496f7b['model'][_0x5af920]['insertions']);_0x496f7b==_0x279165?(_0xed6f55=_0x23d2f9,_0x5e7680=_0xed6f55['length'],_0xed6f55['forEach'](_0x51d0f2=>{_0x51d0f2['id']=_0x3910e8++;}),this['_processTape'](_0xed6f55)):this['_markInsertions'](_0xed6f55,_0x23d2f9);const _0x3b0fdc=_0xed6f55['filter'](_0x4ad95f=>!_0x4ad95f['isAdded'])['map'](_0x1271bc=>_0x1271bc['id']);let _0x582567=0x0;const _0xe9db2a=this['_makeTape'](_0x496f7b['model'][_0x5af920]['deletions']);_0xe9db2a['forEach'](_0x1fd15c=>{_0x1fd15c['isRemoved']?_0x1fd15c['id']=_0x5e7680++:_0x1fd15c['id']=_0x3b0fdc[_0x582567++];}),this['_processTape'](_0xe9db2a),this['_setDistance'](_0xed6f55,'isAdded'),this['_setDistance'](_0xe9db2a,'isRemoved'),_0x496f7b==_0x279165&&this['_markMarkers'](_0xed6f55,_0x5ca2ea),_0xed6f55=this['_joinTapes'](_0xed6f55,_0xe9db2a),this['_refreshStartEndIndex'](_0xed6f55),this['_setDistance'](_0xed6f55,'isRemoved');}_0xed6f55=_0xed6f55['filter'](_0x40992b=>!(_0x40992b['isAdded']&&_0x40992b['isRemoved']));const _0x350d47=new Map(_0x2a2663['model'][_0x5af920]['deletions']['markers']),_0x3d1dd8=new Set(_0x5ca2ea['keys']());for(const _0x30d923 of _0x350d47['keys']())_0x3d1dd8['delete'](_0x30d923);this['_markSuggestions'](_0xed6f55,_0x3d1dd8),this['_fixObsoleteTags'](_0xed6f55),_0xed6f55=this['_removeMissingPairs'](_0xed6f55),_0xed6f55=this['_markMismatchedRemovedTags'](_0xed6f55),_0xed6f55=this['_removeUnsupportedChanges'](_0xed6f55);const {root:_0x721981,changes:_0x6834dc}=this['_makeModelFromTape'](_0xed6f55,_0xeb6409,_0x5af920);_0x57930b['model'][_0x5af920]=_0x721981;const _0x57693d=_0x4054fc['get'](_0x5af920);if(_0x57693d){const _0x391bb1=_0xeb6409['get'](_0x57693d['userId']),_0x121eb0=new r({'author':_0x391bb1,'type':_0x57693d['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x5af920});_0x6834dc['unshift'](_0x121eb0),_0x57930b['attributes'][_0x5af920]['revisionHistoryAttachChange']=_0x121eb0['id'];}_0x57930b['changes']=_0x57930b['changes']['concat'](_0x6834dc);}return _0x57930b;}['_markMarkers'](_0x345cb0,_0x2c2ce9){for(let _0x235305=0x0;_0x235305<_0x345cb0['length'];_0x235305++)for(const [_0x49c1fb,_0x562a3a]of _0x2c2ce9)!_0x562a3a['isCollapsed']&&_0x562a3a['start']['isEqual'](_0x345cb0[_0x235305]['previousPosition'])&&_0x345cb0[_0x235305]['markersStart']['push'](_0x49c1fb),_0x562a3a['end']['isEqual'](_0x345cb0[_0x235305]['nextPosition'])&&_0x345cb0[_0x235305]['markersEnd']['push'](_0x49c1fb);}['_joinTapes'](_0x214170,_0x78887e){let _0x45fb73=[],_0x2c78f8=0x0,_0xd725e1=0x0;for(;_0x2c78f8<_0x214170['length']||_0xd725e1<_0x78887e['length'];){const _0x8318d1=_0x214170[_0x2c78f8]||{},_0x4a058d=_0x78887e[_0xd725e1]||{};if(_0x8318d1['id']==_0x4a058d['id'])_0x2c78f8++,_0xd725e1++,_0x45fb73['push'](_0x8318d1);else{if(_0x4a058d['isRemoved']&&_0x8318d1['isAdded']){const {commonTape:_0x2ec13f,iEnd:_0x4a9fb9,jEnd:_0x38447d}=this['_threeWayMerge'](_0x214170,_0x2c78f8,_0x78887e,_0xd725e1);_0x45fb73=_0x45fb73['concat'](_0x2ec13f),_0x2c78f8=_0x4a9fb9,_0xd725e1=_0x38447d;}else _0x4a058d['isRemoved']?(_0xd725e1++,_0x45fb73['push'](_0x4a058d)):(_0x2c78f8++,_0x45fb73['push'](_0x8318d1));}}return _0x45fb73;}['_markSuggestions'](_0x448b42,_0x27547d){const _0x1f0fa9=[];for(let _0x461473=0x0;_0x461473<_0x448b42['length'];_0x461473++){for(let _0xca250c=0x0;_0xca250c<_0x448b42[_0x461473]['markersStart']['length'];_0xca250c++){const _0x5d3b67=_0x448b42[_0x461473]['markersStart'][_0xca250c];if(!_0x27547d['has'](_0x5d3b67))continue;const {group:_0x436f32,type:_0x24c230,authorId:_0x54b436}=_0xccaa22(_0x5d3b67);'revision-suggestion'!=_0x436f32||'insertion'!=_0x24c230&&'deletion'!=_0x24c230||(_0x1f0fa9['unshift']({'type':_0x24c230,'name':_0x5d3b67,'userId':_0x54b436}),_0x448b42[_0x461473]['markersStart']['splice'](_0xca250c,0x1),_0xca250c--);}_0x378f6b(_0x448b42[_0x461473]);for(let _0x4a15fc=0x0;_0x4a15fc<_0x448b42[_0x461473]['markersEnd']['length'];_0x4a15fc++){const _0xcd5d03=_0x448b42[_0x461473]['markersEnd'][_0x4a15fc];if(!_0x27547d['has'](_0xcd5d03))continue;const {group:_0x585eaa,type:_0x188af0}=_0xccaa22(_0xcd5d03);if('revision-suggestion'!=_0x585eaa||'insertion'!=_0x188af0&&'deletion'!=_0x188af0)continue;_0x448b42[_0x461473]['markersEnd']['splice'](_0x4a15fc,0x1),_0x4a15fc--;const _0x1cf54d=_0x1f0fa9['findIndex'](_0x30f80f=>_0x30f80f['name']==_0xcd5d03);_0x1cf54d>-0x1&&_0x1f0fa9['splice'](_0x1cf54d,0x1);}}function _0xccaa22(_0x8c0f0){const _0x47f43f=_0x8c0f0['split'](':');return{'group':_0x47f43f[0x0],'type':_0x47f43f[0x1],'subType':_0x47f43f['length']>=0x5?_0x47f43f[0x2]:null,'id':_0x47f43f['length']<0x5?_0x47f43f[0x2]:_0x47f43f[0x3],'authorId':_0x47f43f['length']<0x5?_0x47f43f[0x3]:_0x47f43f[0x4],'markerCount':0x6==_0x47f43f['length']?_0x47f43f[0x5]:null};}function _0x378f6b(_0x90a8ab){for(let _0x5d5e68=0x0;_0x5d5e68<_0x1f0fa9['length'];_0x5d5e68++){if(_0x90a8ab['isAdded']&&'insertion'==_0x1f0fa9[_0x5d5e68]['type'])return _0x90a8ab['isAddSuggestion']=_0x1f0fa9[_0x5d5e68],void delete _0x90a8ab['isAdded'];if(!_0x90a8ab['isAdded']&&!_0x90a8ab['isRemoved']&&'deletion'==_0x1f0fa9[_0x5d5e68]['type'])return void(_0x90a8ab['isRemoveSuggestion']=_0x1f0fa9[_0x5d5e68]);}}}['_setDistance'](_0x115116,_0x2c8e2b){let _0x229f3e=0x0,_0x1864c5=!0x1;const _0x5bf957=new Map();for(const _0x3a9bf0 of _0x115116)_0x3a9bf0[_0x2c8e2b]?_0x1864c5&&(_0x229f3e++,_0x1864c5=!0x1):(_0x229f3e++,_0x1864c5=!0x0),_0x5bf957['set'](_0x3a9bf0['id'],_0x229f3e);for(let _0x736868=0x0;_0x736868<_0x115116['length'];_0x736868++){if('isRemoved'==_0x2c8e2b&&_0x115116[_0x736868]['isAdded']||'isAdded'==_0x2c8e2b&&_0x115116[_0x736868]['isRemoved'])continue;if('text'==_0x115116[_0x736868]['type']){_0x115116[_0x736868]['distance']=0x0;continue;}const _0x1f26d3=_0x5bf957['get'](_0x115116[_0x736868]['pairId']),_0xbabb05=_0x5bf957['get'](_0x115116[_0x736868]['id']);_0x115116[_0x736868]['distance']=_0x1f26d3-_0xbabb05;}}['_getRevisionsRange'](_0x163e2f,_0x214faa,_0x5662c6=!0x1){const _0x3e22d9=[];let _0x18aa95=this['repository']['getIndex'](_0x163e2f),_0x56b2fb=this['repository']['getIndex'](_0x214faa);for(-0x1==_0x56b2fb&&(_0x56b2fb=this['repository']['_revisions']['length'],_0x5662c6=!0x1);_0x18aa95<_0x56b2fb;)_0x3e22d9['push'](this['repository']['getRevision'](_0x18aa95)),_0x18aa95++;return _0x5662c6&&_0x3e22d9['push'](this['repository']['getRevision'](_0x18aa95)),_0x3e22d9;}['_threeWayMerge'](_0x4d9c70,_0x295291,_0x3ac5e9,_0x1eef04){const _0xdb34b4=this['editor']['model']['schema'];let _0x34afda=_0x295291;for(;_0x4d9c70[_0x34afda]&&_0x4d9c70[_0x34afda]['isAdded'];)_0x34afda++;let _0x20014b=_0x1eef04;for(;_0x3ac5e9[_0x20014b]&&_0x3ac5e9[_0x20014b]['isRemoved'];)_0x20014b++;_0x3fc6be(_0x4d9c70,_0x295291,_0x34afda),_0x3fc6be(_0x3ac5e9,_0x1eef04,_0x20014b);const _0x431e36=_0x3ac5e9['slice'](_0x1eef04,_0x20014b)['concat'](_0x4d9c70['slice'](_0x295291,_0x34afda));return _0x431e36['sort']((_0x132be1,_0x5def9e)=>_0x132be1['side']!=_0x5def9e['side']?_0x132be1['side']-_0x5def9e['side']:_0x132be1['level']!=_0x5def9e['level']?_0x132be1['level']-_0x5def9e['level']:_0x132be1['distance']!=_0x5def9e['distance']?_0x5def9e['distance']-_0x132be1['distance']:!!_0x132be1['isAdded']!=!!_0x5def9e['isAdded']?-0x1==_0x132be1['side']||0x0==_0x132be1['side']?_0x132be1['isAdded']?-0x1:0x1:_0x132be1['isAdded']?0x1:-0x1:_0x132be1['index']-_0x5def9e['index']),{'commonTape':_0x431e36,'iEnd':_0x34afda,'jEnd':_0x20014b};function _0x3fc6be(_0x36bbb7,_0x37b248,_0x13a44c){let _0x19bf61=-0x1,_0x27f009=Number['POSITIVE_INFINITY'],_0x543c05=!0x0;for(let _0x846ae5=_0x37b248;_0x846ae5<_0x13a44c;_0x846ae5++)if(_0xdb34b4['isInline'](_0x36bbb7[_0x846ae5]['item'])||(_0x543c05=!0x1),_0x36bbb7[_0x846ae5]['item']['startIndex']<_0x37b248&&(_0x19bf61=_0x846ae5),_0x36bbb7[_0x846ae5]['item']['endIndex']>=_0x13a44c){_0x27f009=_0x846ae5;break;}_0x543c05&&(_0x19bf61=_0x13a44c-0x1);for(let _0x3143b7=_0x37b248;_0x3143b7<_0x13a44c;_0x3143b7++)_0x36bbb7[_0x3143b7]['side']=_0x3143b7<=_0x19bf61?-0x1:_0x3143b7<_0x27f009?0x0:0x1,_0x36bbb7[_0x3143b7]['index']=_0x3143b7;let _0x2e5444=0x0;for(let _0xcc56b6=_0x37b248;_0xcc56b6<=_0x19bf61;_0xcc56b6++)0x0==_0x36bbb7[_0xcc56b6]['distance']?_0x36bbb7[_0xcc56b6]['level']=_0x2e5444:(_0x2e5444++,_0x36bbb7[_0xcc56b6]['level']=_0x2e5444,_0x2e5444++);for(let _0x4d5137=_0x37b248;_0x4d5137<_0x13a44c;_0x4d5137++)0x0==_0x36bbb7[_0x4d5137]['side']&&(_0x36bbb7[_0x4d5137]['level']=_0x2e5444);_0x2e5444=0x0;for(let _0xbe96e=_0x13a44c-0x1;_0xbe96e>=_0x27f009;_0xbe96e--)0x0==_0x36bbb7[_0xbe96e]['distance']?_0x36bbb7[_0xbe96e]['level']=_0x2e5444:(_0x2e5444--,_0x36bbb7[_0xbe96e]['level']=_0x2e5444,_0x2e5444--);}}['_fixObsoleteTags'](_0x28c331){const _0x4ab5fa=new Map(),_0x87958e=this['editor']['model']['schema'];for(let _0x1c18c8=0x1;_0x1c18c8<_0x28c331['length'];_0x1c18c8++){let _0x275251,_0x20a8f2,_0x2b274d;const _0x249dd2=_0x28c331[_0x1c18c8],_0x456d02=_0x28c331[_0x1c18c8-0x1];if('text'==_0x249dd2['type'])continue;if(_0x249dd2['type']!=_0x456d02['type'])continue;if(!_0x87958e['isBlock'](_0x456d02['item'])||_0x87958e['isLimit'](_0x456d02['item']))continue;if(!_0x87958e['isBlock'](_0x249dd2['item'])||_0x87958e['isLimit'](_0x249dd2['item']))continue;if((_0x28c331[_0x1c18c8]['isAdded']||_0x28c331[_0x1c18c8]['isAddSuggestion'])&&_0x28c331[_0x1c18c8-0x1]['isRemoved'])_0x275251=_0x28c331[_0x1c18c8],_0x20a8f2=_0x28c331[_0x1c18c8-0x1],_0x2b274d=_0x1c18c8-0x1;else{if(!_0x28c331[_0x1c18c8]['isRemoved']||!_0x28c331[_0x1c18c8-0x1]['isAdded']&&!_0x28c331[_0x1c18c8-0x1]['isAddSuggestion'])continue;_0x275251=_0x28c331[_0x1c18c8-0x1],_0x20a8f2=_0x28c331[_0x1c18c8],_0x2b274d=_0x1c18c8;}const _0x487e19=_0x275251['level']==_0x20a8f2['level'],_0x2b7f96=Math['abs'](_0x275251['level'])<Math['abs'](_0x20a8f2['level'])&&0x0==_0x20a8f2['distance'];(_0x487e19||_0x2b7f96)&&(_0x4ab5fa['set'](_0x20a8f2['id'],_0x275251['id']),_0x28c331['splice'](_0x2b274d,0x1),_0x1c18c8--,_0x275251['isAdded']=!0x1);}for(let _0x52fca5=0x0;_0x52fca5<_0x28c331['length'];_0x52fca5++)_0x4ab5fa['has'](_0x28c331[_0x52fca5]['pairId'])&&(_0x28c331[_0x52fca5]['pairId']=_0x4ab5fa['get'](_0x28c331[_0x52fca5]['pairId']));}['_removeMissingPairs'](_0x2d8552){const _0x33efa9=new Set(_0x2d8552['map'](_0x3611e2=>_0x3611e2['id']));for(let _0x637115=0x0;_0x637115<_0x2d8552['length'];_0x637115++)_0x33efa9['has'](_0x2d8552[_0x637115]['pairId'])||0x0==_0x2d8552[_0x637115]['distance']||(_0x2d8552[_0x637115]['isIncorrect']=!0x0);return _0x2d8552['filter'](_0x1810a6=>!_0x1810a6['isIncorrect']);}['_markMismatchedRemovedTags'](_0x4c8c7a){const _0x2943dc=new Set();for(let _0x56e66c=0x0;_0x56e66c<_0x4c8c7a['length'];_0x56e66c++){if(_0x2943dc['has'](_0x4c8c7a[_0x56e66c]['id'])&&_0x4c8c7a[_0x56e66c]['isRemoved']&&(_0x4c8c7a[_0x56e66c]['isIncorrect']=!0x0),_0x4c8c7a[_0x56e66c]['isIncorrect'])continue;if(0x0==_0x4c8c7a[_0x56e66c]['distance'])continue;if('elementStart'!=_0x4c8c7a[_0x56e66c]['type'])continue;if(null==_0x4c8c7a[_0x56e66c]['pairId'])continue;let _0x14e580=_0x56e66c+0x1,_0x3916fb=0x0;for(;_0x4c8c7a[_0x14e580]['id']!=_0x4c8c7a[_0x56e66c]['pairId'];)'elementStart'==_0x4c8c7a[_0x14e580]['type']?_0x3916fb++:'elementEnd'==_0x4c8c7a[_0x14e580]['type']&&_0x3916fb--,_0x14e580++;if(0x0!=_0x3916fb){if(_0x4c8c7a[_0x56e66c]['isRemoved'])_0x4c8c7a[_0x56e66c]['isIncorrect']=!0x0;else{for(;_0x14e580!=_0x56e66c;)_0x4c8c7a[_0x14e580]['isRemoved']&&0x0!=_0x4c8c7a[_0x14e580]['distance']&&(_0x4c8c7a[_0x14e580]['isIncorrect']=!0x0,_0x2943dc['add'](_0x4c8c7a[_0x14e580]['pairId'])),_0x14e580--;}}}return _0x4c8c7a['filter'](_0xd19d33=>!_0xd19d33['isIncorrect']);}['_removeUnsupportedChanges'](_0xe7832f){const _0x3e9780=this['editor']['model']['schema'];for(let _0x2fc903=0x0;_0x2fc903<_0xe7832f['length'];_0x2fc903++){if(!(_0xe7832f[_0x2fc903]['isAdded']||_0xe7832f[_0x2fc903]['isAddSuggestion']||_0xe7832f[_0x2fc903]['isRemoved']||_0xe7832f[_0x2fc903]['isRemoveSuggestion']))continue;if(0x0==_0xe7832f[_0x2fc903]['distance'])continue;const _0x167871=_0xe7832f[_0x2fc903]['item'];_0x3e9780['isBlock'](_0x167871)||_0x3e9780['isLimit'](_0x167871)||(_0xe7832f[_0x2fc903]['isAdded']&&delete _0xe7832f[_0x2fc903]['isAdded'],_0xe7832f[_0x2fc903]['isAddSuggestion']&&delete _0xe7832f[_0x2fc903]['isAddSuggestion'],_0xe7832f[_0x2fc903]['isRemoveSuggestion']&&delete _0xe7832f[_0x2fc903]['isRemoveSuggestion'],_0xe7832f[_0x2fc903]['isRemoved']&&(_0xe7832f[_0x2fc903]['isIncorrect']=!0x0));}return _0xe7832f['filter'](_0x17c89c=>!_0x17c89c['isIncorrect']);}['_makeModelFromTape'](_0x41d309,_0x46b9fe,_0x3c8691){const _0x144b38=new gt(),_0x18da94=[],_0x12580e=new Map(),_0x3cb1bb=this['editor']['model'],_0x5f1b43=_0x3cb1bb['schema'],_0x515943=[_0x144b38],_0x1b736d={},_0x29427a={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0xe212ef=null;const _0x5b4f46=[0x0];for(let _0xe5f51=0x0;_0xe5f51<_0x41d309['length'];_0xe5f51++)if('elementStart'===_0x41d309[_0xe5f51]['type']){_0x41d309[_0xe5f51]['previousPosition']=_0x3cb1bb['createPositionFromPath'](_0x144b38,_0x5b4f46);const _0x29242b=new ut(_0x41d309[_0xe5f51]['item']['name'],_0x41d309[_0xe5f51]['item']['getAttributes']());_0x515943[0x0]['_appendChild'](_0x29242b),_0x5b4f46['push'](0x0),_0x515943['unshift'](_0x29242b),_0x41d309[_0xe5f51]['nextPosition']=_0x3cb1bb['createPositionFromPath'](_0x144b38,_0x5b4f46);}else'elementEnd'===_0x41d309[_0xe5f51]['type']?(_0x515943['shift'](),_0x41d309[_0xe5f51]['previousPosition']=_0x3cb1bb['createPositionFromPath'](_0x144b38,_0x5b4f46),_0x5b4f46['pop'](),_0x5b4f46[_0x5b4f46['length']-0x1]++,_0x41d309[_0xe5f51]['nextPosition']=_0x3cb1bb['createPositionFromPath'](_0x144b38,_0x5b4f46)):(_0x41d309[_0xe5f51]['previousPosition']=_0x3cb1bb['createPositionFromPath'](_0x144b38,_0x5b4f46),_0xe212ef?_0xe212ef['_data']+=_0x41d309[_0xe5f51]['item']['data']:_0xe212ef=new mt(_0x41d309[_0xe5f51]['item']['data'],_0x41d309[_0xe5f51]['item']['getAttributes']()),_0x41d309[_0xe5f51+0x1]&&'text'===_0x41d309[_0xe5f51+0x1]['type']&&_0x42fbd1(_0xe212ef,_0x41d309[_0xe5f51+0x1]['item'])||(_0x515943[0x0]['_appendChild'](_0xe212ef),_0xe212ef=null),_0x5b4f46[_0x5b4f46['length']-0x1]+=_0x41d309[_0xe5f51]['item']['offsetSize'],_0x41d309[_0xe5f51]['nextPosition']=_0x3cb1bb['createPositionFromPath'](_0x144b38,_0x5b4f46));for(let _0x33ea56=0x0;_0x33ea56<_0x41d309['length'];_0x33ea56++){const _0x963679=_0x41d309[_0x33ea56]['previousPosition'],_0x3bd6fc=_0x41d309[_0x33ea56]['nextPosition'];for(const _0x124097 of _0x41d309[_0x33ea56]['markersStart'])_0x12580e['set'](_0x124097,{'start':_0x963679,'end':null});_0x3a802f('isRemoveSuggestion',_0x33ea56,_0x963679,_0x3bd6fc),_0x3a802f('isAddSuggestion',_0x33ea56,_0x963679,_0x3bd6fc),_0x3a802f('isRemoved',_0x33ea56,_0x963679,_0x3bd6fc),_0x3a802f('isAdded',_0x33ea56,_0x963679,_0x3bd6fc);for(const _0x2058c5 of _0x41d309[_0x33ea56]['markersEnd']){const _0x5225be=_0x12580e['get'](_0x2058c5);_0x5225be?_0x5225be['end']=_0x3bd6fc:_0x12580e['set'](_0x2058c5,{'start':_0x3bd6fc,'end':_0x3bd6fc});}}for(const [_0xe94c05,_0x1484fa]of _0x12580e){const _0x23981d=this['editor']['model']['createRange'](_0x1484fa['start'],_0x1484fa['end']);_0x144b38['markers']['set'](_0xe94c05,_0x23981d);}return _0x18da94['sort']((_0x51717e,_0x3d3d17)=>{const _0x47e4c6=_0x144b38['markers']['get']('revision:'+_0x51717e['id']),_0x218955=_0x144b38['markers']['get']('revision:'+_0x3d3d17['id']);return _0x47e4c6['start']['isBefore'](_0x218955['start'])?-0x1:_0x47e4c6['start']['isAfter'](_0x218955['start'])?0x1:_0x47e4c6['end']['isBefore'](_0x218955['end'])?-0x1:_0x47e4c6['end']['isAfter'](_0x218955['end'])?0x1:'add'===_0x51717e['type']?-0x1:0x1;}),{'root':_0x144b38,'changes':_0x18da94};function _0x3a802f(_0x37b03b,_0x814af2,_0x219ec0,_0x2a0258){const _0x3623c6=!!_0x41d309[_0x814af2][_0x37b03b],_0x558ef3=_0x3623c6?_0x41d309[_0x814af2][_0x37b03b]['userId']:null,_0x33a44d=_0x814af2===_0x41d309['length']-0x1,_0x303316=_0x29427a[_0x37b03b][0x0],_0x146fa0=_0x5f1b43['isObject'](_0x41d309[_0x814af2]['item']);!_0x1b736d[_0x37b03b]&&_0x3623c6?_0x1b736d[_0x37b03b]={'start':_0x219ec0,'tapeItem':_0x41d309[_0x814af2],'userId':_0x558ef3,'type':_0x37b03b}:_0x1b736d[_0x37b03b]&&!_0x3623c6?(_0x1b736d[_0x37b03b]['end']=_0x219ec0,_0x36f2b2(_0x1b736d[_0x37b03b]),_0x1b736d[_0x37b03b]=null):_0x1b736d[_0x37b03b]&&_0x3623c6&&_0x1b736d[_0x37b03b]['userId']!==_0x558ef3&&(_0x1b736d[_0x37b03b]['end']=_0x219ec0,_0x303316&&_0x303316['userId']===_0x1b736d[_0x37b03b]['userId']||_0x36f2b2(_0x1b736d[_0x37b03b]),_0x1b736d[_0x37b03b]={'start':_0x219ec0,'tapeItem':_0x41d309[_0x814af2],'userId':_0x558ef3,'type':_0x37b03b}),_0x1b736d[_0x37b03b]&&_0x146fa0&&('elementStart'!==_0x41d309[_0x814af2]['type']||_0x303316&&_0x303316['userId']===_0x558ef3||_0x29427a[_0x37b03b]['unshift']({'userId':_0x558ef3,'object':_0x41d309[_0x814af2]['item'],'change':_0x1b736d[_0x37b03b]}),'elementEnd'===_0x41d309[_0x814af2]['type']&&_0x303316&&_0x303316['object']===_0x41d309[_0x814af2]['item']&&(_0x29427a[_0x37b03b]['shift'](),_0x1b736d[_0x37b03b]=_0x303316['change'])),_0x1b736d[_0x37b03b]&&_0x33a44d&&(_0x1b736d[_0x37b03b]['end']=_0x2a0258,_0x36f2b2(_0x1b736d[_0x37b03b]),_0x1b736d[_0x37b03b]=null);}function _0x36f2b2({start:_0x1cabd3,end:_0x4534f0,tapeItem:_0x2aefbf,userId:_0x47f56d,type:_0x1015e1}){const _0xc3009a=_0x2aefbf['item'],_0x310a52=_0x3cb1bb['schema']['isBlock'](_0xc3009a)&&!_0x3cb1bb['schema']['isLimit'](_0xc3009a),_0x4f513d=_0x1cabd3['nodeAfter']==_0x4534f0['parent']&&_0x4534f0['isAtStart'];if(_0x310a52&&_0x4f513d)return;const _0x30030b=_0x3cb1bb['createRange'](_0x1cabd3,_0x4534f0),_0x1c816a=_0x46b9fe['get'](_0x47f56d),_0x1b2b72=new r({'author':_0x1c816a,'type':'isAdded'==_0x1015e1||'isAddSuggestion'==_0x1015e1?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x1015e1||'isRemoveSuggestion'==_0x1015e1},'createdAt':new Date(),'rootName':_0x3c8691});_0x18da94['push'](_0x1b2b72),_0x144b38['markers']['set']('revision:'+_0x1b2b72['id'],_0x30030b);}function _0x42fbd1(_0x383901,_0x50f515){const _0x4e5e7a=_0x383901['getAttributes'](),_0x2f4237=_0x50f515['getAttributes']();for(const _0x105f99 of _0x4e5e7a){if(_0x105f99[0x1]!==_0x50f515['getAttribute'](_0x105f99[0x0]))return!0x1;_0x2f4237['next']();}return _0x2f4237['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0xf3d37b=>{const _0x427768=_0xf3d37b['markerName']['split'](':')[0x1],_0x48d817=this['_getChangeFromId'](_0x427768);if(!_0x48d817)return null;const _0x1235dd='add'==_0x48d817['type']?'insertion':'deletion',_0x5d31cf=['ck-suggestion-marker','ck-suggestion-marker-'+_0x1235dd];return _0x48d817['data']['isSuggestion']&&_0x5d31cf['push']('ck-suggestion-marker-'+_0x1235dd+'-new'),this['activeChange']==_0x48d817&&_0x5d31cf['push']('ck-suggestion-marker--active'),{'classes':_0x5d31cf,'attributes':{'data-change-id':_0x427768}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x5958c6=>{_0x5958c6['on']('element:pre',(_0x3e35c8,_0x3f2a96,_0x4a4ff2)=>{const _0x194d7d=_0x3f2a96['viewItem']['getChild'](0x0);if(!_0x194d7d||!_0x194d7d['is']('element','code'))return;if(!_0x4a4ff2['consumable']['consume'](_0x194d7d,{'attributes':['vid_start','vid_end']}))return;const _0x2ce7d7=_0x3f2a96['modelRange']['start']['nodeAfter'];_0x4a4ff2['writer']['setAttribute']('vid_start',_0x194d7d['getAttribute']('vid_start'),_0x2ce7d7),_0x4a4ff2['writer']['setAttribute']('vid_end',_0x194d7d['getAttribute']('vid_end'),_0x2ce7d7);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x526804=>{_0x526804['on']('element',(_0x492a29,_0x546178,_0x14927d)=>{if(!_0x14927d['consumable']['consume'](_0x546178['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x546178['modelRange']['isCollapsed'])return;const _0x119506=_0x546178['modelRange']['start']['nodeAfter'];_0x119506['hasAttribute']('vid_start')||_0x119506['hasAttribute']('vid')||(_0x14927d['writer']['setAttribute']('vid_start',_0x546178['viewItem']['getAttribute']('vid_start'),_0x119506),_0x14927d['writer']['setAttribute']('vid_end',_0x546178['viewItem']['getAttribute']('vid_end'),_0x119506));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x541f8d=>_0x541f8d['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x1343eb,[,_0x3009f7])=>{['vid_start','vid_end','vid']['includes'](_0x3009f7)&&(_0x1343eb['return']=!0x0,_0x1343eb['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x42d0c5=>{_0x42d0c5['on']('attribute:vid',(_0x18c7da,_0x3678e3,_0x4c1dd2)=>{if('\x20'!=_0x3678e3['item']['data']||_0x3678e3['item']['parent']['maxOffset']>0x1)return;if(!_0x4c1dd2['consumable']['consume'](_0x3678e3['item'],_0x18c7da['name']))return;const _0x1d661e=_0x4c1dd2['writer'],_0x4824e4=_0x4c1dd2['mapper']['toViewRange'](_0x3678e3['range']);_0x1d661e['wrap'](_0x4824e4,_0x1d661e['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x5ccf71){const _0x73e8f8=_0x5ccf71['plugins']['get']('RevisionViewer');return(_0x5041e6,_0x3dc7b6,_0x1a10b3)=>{const _0x241650=_0x3dc7b6['markerName']['split'](':')[0x1],_0x584e66=_0x73e8f8['_getChangeFromId'](_0x241650);if(!_0x584e66)return null;const _0x48c649='add'==_0x584e66['type']?'split':'merge';if(!_0x1a10b3['consumable']['test'](_0x3dc7b6['markerRange'],_0x5041e6['name']))return;const _0x40643f=_0x3dc7b6['markerRange']['getWalker'](),_0x4ba73e=_0x3dc7b6['markerRange']['start'],_0x1f067d=_0x5ccf71['model']['schema'];let _0x55dbb7=null,_0x39c95c=null,_0x49aa2b=!0x1,_0x258a87=!0x1;for(const _0x4d08fe of _0x40643f){const _0x3bc883=_0x4d08fe['item'];_0x49aa2b=_0x49aa2b||_0x1f067d['isContent'](_0x3bc883);const _0x140909=_0x1a10b3['mapper']['toViewElement'](_0x3bc883);if(_0x140909&&_0x140909['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4d08fe['type']&&(_0x1f067d['isBlock'](_0x3bc883)&&!_0x1f067d['isLimit'](_0x3bc883)&&(_0x3bc883['nextSibling']||_0x4ba73e['isAtEnd']?_0x55dbb7&&_0x55dbb7['parent']==_0x3bc883||(_0x55dbb7=_0x3bc883,_0x6af2c1(_0x4d08fe['previousPosition']),_0x258a87=!0x0):_0x39c95c=_0x39c95c||_0x4d08fe['previousPosition']));}function _0x6af2c1(_0x4d07b2){const _0x264235=_0x1a10b3['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x48c649}),_0x61cad3=_0x1a10b3['mapper']['toViewPosition'](_0x4d07b2);_0x584e66['data']['isSuggestion']&&_0x1a10b3['writer']['addClass']('ck-suggestion-marker-'+_0x48c649+'-new',_0x264235),_0x73e8f8['activeChange']==_0x584e66&&_0x1a10b3['writer']['addClass']('ck-suggestion-marker--active',_0x264235),_0x1a10b3['writer']['insert'](_0x61cad3,_0x264235),_0x1a10b3['mapper']['bindElementToMarker'](_0x264235,_0x3dc7b6['markerName']);}_0x49aa2b||_0x258a87||!_0x39c95c||_0x6af2c1(_0x39c95c);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0xbd280b,_0x277eed,_0x326619)=>{const _0x12c05a=_0x326619['mapper']['markerNameToElements'](_0x277eed['markerName']);if(_0x12c05a){for(const _0x381276 of _0x12c05a)(_0x381276['hasClass']('ck-suggestion-marker-split')||_0x381276['hasClass']('ck-suggestion-marker-merge'))&&(_0x326619['mapper']['unbindElementFromMarkerName'](_0x381276,_0x277eed['markerName']),_0x326619['writer']['remove'](_0x381276));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x24e6c6,_0x216b29,_0x4d6d21)=>{const _0xe35f95=_0x216b29['markerName']['split'](':')[0x1],_0x211d29=this['_getChangeFromId'](_0xe35f95);if(!_0x211d29)return null;const _0x34e8aa='add'==_0x211d29['type']?'split':'merge';if(_0x4d6d21['consumable']['test'](_0x216b29['markerRange'],_0x24e6c6['name']))for(const _0x577a65 of _0x216b29['markerRange']['getItems']()){if(!_0x577a65['is']('element','softBreak'))continue;const _0x1a2177=_0x4d6d21['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x34e8aa}),_0x188a29=_0x4d6d21['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x577a65));_0x211d29['data']['isSuggestion']&&_0x4d6d21['writer']['addClass']('ck-suggestion-marker-'+_0x34e8aa+'-new',_0x1a2177),this['activeChange']==_0x211d29&&_0x4d6d21['writer']['addClass']('ck-suggestion-marker--active',_0x1a2177),_0x4d6d21['writer']['insert'](_0x188a29,_0x1a2177),_0x4d6d21['mapper']['bindElementToMarker'](_0x1a2177,_0x216b29['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x1b098c=>{for(const _0x5a04fb of this['editor']['model']['document']['getRootNames']()){const _0x54420=this['editor']['model']['document']['getRoot'](_0x5a04fb),_0x1e67f6=this['editor']['editing']['view']['document']['getRoot'](_0x5a04fb);if(_0x1e67f6){const _0x542565=_0x54420['getAttribute']('revisionHistoryAttachChange');if(_0x1b098c['removeAttribute']('data-change-id',_0x1e67f6),_0x1b098c['removeClass']('ck-revision-history-root-add',_0x1e67f6),_0x1b098c['removeClass']('ck-revision-history-root-remove',_0x1e67f6),_0x1b098c['removeClass']('ck-revision-history-root--active',_0x1e67f6),_0x542565){const _0x56fa31=this['_getChangeFromId'](_0x542565);if(!_0x56fa31)return null;_0x1b098c['setAttribute']('data-change-id',_0x542565,_0x1e67f6),_0x1b098c['addClass']('ck-revision-history-root-'+_0x56fa31['type'],_0x1e67f6),this['activeChange']==_0x56fa31&&_0x1b098c['addClass']('ck-revision-history-root--active',_0x1e67f6);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x484125=>'revision-comment:'+_0x484125,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x2350c8=>'revision-suggestion:'+_0x2350c8,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x56e838=>({'name':'suggestion:'+_0x56e838,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x42e9b2=>{const _0x404c3e=_0x42e9b2['markerName']['split'](':')[0x1];return'insertion'!=_0x404c3e&&'deletion'!=_0x404c3e?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x404c3e]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',X(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',X(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x307179,_0x293aae,_0x77fe1)=>{const _0x38d9e9=_0x77fe1['mapper']['markerNameToElements'](_0x293aae['markerName']);if(_0x38d9e9){for(const _0x4e73f8 of _0x38d9e9)_0x4e73f8['is']('uiElement')&&(_0x77fe1['mapper']['unbindElementFromMarkerName'](_0x4e73f8,_0x293aae['markerName']),_0x77fe1['writer']['remove'](_0x4e73f8));}},{'priority':'high'});}['_getChangeFromId'](_0x5122e8){return this['_changeIdToChange']['get'](_0x5122e8);}['_getViewForChange'](_0x33d52f){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x33d52f),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x570687,_0x1f246c,_0x45a6e3,_0x4f8a3d)=>{_0x4f8a3d&&this['_balloon']['remove'](_0x4f8a3d),_0x45a6e3&&(this['_balloon']['add']({'view':_0x45a6e3,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x2f6c1c=this['editor']['editing'],_0x573b8b=this['_getChangeFromId'](_0x45a6e3['changeId']);let _0x52db02;if(_0x573b8b['data']['isOnRoot']){const _0x11e10e=_0x2f6c1c['view']['getDomRoot'](_0x573b8b['rootName']);_0x52db02=Array['from'](_0x11e10e['getClientRects']());}else{const _0x10e77b=this['editor']['model']['markers']['get']('revision:'+_0x45a6e3['changeId']);_0x52db02=Array['from'](_0x2f6c1c['mapper']['markerNameToElements'](_0x10e77b['name']))['map'](_0x1f1252=>_0x2f6c1c['view']['domConverter']['mapViewToDom'](_0x1f1252))['map'](_0x72ffbf=>Array['from'](_0x72ffbf['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x52db02[0x0];return _0x52db02['find'](_0x4283f8=>_0x4283f8['top']-0x3<=this['_activeViewTarget']['y']&&_0x4283f8['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x4283f8['left']-0x3<=this['_activeViewTarget']['x']&&_0x4283f8['right']+0x3>=this['_activeViewTarget']['x'])||_0x52db02[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x9e511d,_0x3c44b0,_0x210b75,_0x3aaff2)=>{this['activeView']=_0x210b75?this['_getViewForChange'](_0x210b75):null,this['editor']['model']['change'](()=>{const _0x2e1153=this['editor']['editing'];_0x3aaff2&&(_0x3aaff2['data']['isOnRoot']?_0x2e1153['view']['change'](_0x8112c=>{_0x8112c['removeClass']('ck-revision-history-root--active',_0x2e1153['view']['document']['getRoot'](_0x3aaff2['rootName']));}):_0x2e1153['reconvertMarker']('revision:'+_0x3aaff2['id'])),_0x210b75&&(_0x210b75['data']['isOnRoot']?_0x2e1153['view']['change'](_0x488822=>{_0x488822['addClass']('ck-revision-history-root--active',_0x2e1153['view']['document']['getRoot'](_0x210b75['rootName']));}):_0x2e1153['reconvertMarker']('revision:'+_0x210b75['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0xbe91d8,_0x39fa65)=>{if(this['activeChange'])return;const _0x47bd4f=this['_findChangeIdFromDomTarget'](_0x39fa65['target']),_0xe2df36=this['_changeIdToChange']['get'](_0x47bd4f);_0xe2df36?(this['_activeViewTarget']={'x':_0x39fa65['domEvent']['x'],'y':_0x39fa65['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0xe2df36)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x280d14,_0x17161d)=>{const _0x1c726d=this['_findChangeIdFromDomTarget'](_0x17161d['target']),_0x552e4e=this['_changeIdToChange']['get'](_0x1c726d);_0x552e4e?(this['_activeViewTarget']={'x':_0x17161d['domEvent']['x'],'y':_0x17161d['domEvent']['y']},_0x552e4e===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x552e4e):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x51dc04){do{const _0x5c4e28=_0x51dc04['getAttribute']('data-change-id');if(_0x5c4e28)return _0x5c4e28;_0x51dc04=_0x51dc04['parent'];}while(_0x51dc04);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x1c08c9=>{for(const _0xe8bed5 of this['editor']['model']['markers'])_0x1c08c9['removeMarker'](_0xe8bed5);});}}function X(_0x524d0d,_0x49e10d){return(_0x1d8b18,_0x5e293d,_0x363730)=>{if(!_0x363730['consumable']['test'](_0x5e293d['markerRange'],_0x1d8b18['name']))return;const _0x4bb374=_0x5e293d['markerRange']['getWalker'](),_0x5a58cf=_0x5e293d['markerRange']['start'],_0x4be93a=_0x524d0d['model']['schema'];let _0x505be1=null,_0x41f249=null,_0x2d15f6=!0x1,_0x2e897f=!0x1;for(const _0xce5e51 of _0x4bb374){const _0x4a8e01=_0xce5e51['item'];_0x2d15f6=_0x2d15f6||_0x4be93a['isContent'](_0x4a8e01);const _0x332b96=_0x363730['mapper']['toViewElement'](_0x4a8e01);if(_0x332b96&&_0x332b96['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xce5e51['type']&&(_0x4be93a['isBlock'](_0x4a8e01)&&!_0x4be93a['isLimit'](_0x4a8e01)&&(_0x4a8e01['nextSibling']||_0x5a58cf['isAtEnd']?_0x505be1&&_0x505be1['parent']==_0x4a8e01||(_0x505be1=_0x4a8e01,_0x5ea6bc(_0xce5e51['previousPosition']),_0x2e897f=!0x0):_0x41f249=_0x41f249||_0xce5e51['previousPosition']));}function _0x5ea6bc(_0xd9e1d2){const _0x3c61c2=_0x363730['mapper']['toViewPosition'](_0xd9e1d2),_0x18e37e=_0x363730['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x49e10d});_0x363730['writer']['insert'](_0x3c61c2,_0x18e37e),_0x363730['mapper']['bindElementToMarker'](_0x18e37e,_0x5e293d['markerName']);}_0x2d15f6||_0x2e897f||!_0x41f249||_0x5ea6bc(_0x41f249);};}class wt extends _0x401a09{constructor(_0x26304e){super(_0x26304e);const _0x1cfa77=_0x26304e['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x1cfa77,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x1cfa77,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x1fac99=this['editor'],_0x3ff70b=_0x1fac99['plugins']['get'](m),_0xa8cb0a=_0x3ff70b['isReady']?_0x3ff70b['diff']['newRevisionId']:null;_0x1fac99['config']['get']('revisionHistory')['restoreRevisionCallback'](_0xa8cb0a);}['refresh'](){const {isReady:_0x147561,isEnabled:_0x242c7f,repository:_0x2a3c97,diff:_0x5931a9}=this['editor']['plugins']['get'](m),_0x919b06=_0x5931a9&&_0x2a3c97['getLaterVisibleRevision'](_0x5931a9['newRevisionId']);this['isEnabled']=_0x147561&&_0x242c7f&&Boolean(_0x919b06);}}class pt extends _0x401a09{['_step'];constructor(_0x2f87e9,{direction:_0x5e80dd}){super(_0x2f87e9);const _0x53ab57=_0x2f87e9['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x5e80dd?0x1:-0x1,this['listenTo'](_0x53ab57,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x53ab57,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x53ab57,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x163302=this['editor'],_0x6b8626=_0x163302['plugins']['get'](m),{isNavigationMode:_0x2c0212,currentChangeNumber:_0x1c01ef}=_0x6b8626;let _0xa2722f;if(_0x6b8626['activeChange']=_0x2c0212?_0x6b8626['diff']['changes']['get'](_0x1c01ef+this['_step']):_0x6b8626['diff']['changes']['first'],_0x6b8626['activeChange']['data']['isOnRoot'])_0xa2722f=_0x163302['editing']['view']['getDomRoot'](_0x6b8626['activeChange']['rootName']);else{const _0x1ca18d=_0x163302['model']['markers']['get']('revision:'+_0x6b8626['activeChange']['id']);_0xa2722f=_0x1796b3(_0x163302['editing'],_0x1ca18d);}_0x1de65e({'target':_0xa2722f,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x753b6b,currentChangeNumber:_0xfb802a,numberOfChanges:_0x5e1599,isReady:_0x5d9deb,isEnabled:_0x2be783}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x2be783&&_0x5d9deb&&_0x5e1599)&&(!_0x753b6b||(0x1===this['_step']?_0xfb802a<_0x5e1599-0x1:_0xfb802a>0x0));}}class li extends _0x431dcc{constructor(_0x131479){super(_0x131479);const _0x5354bf=this['bindTemplate'],_0x233f47=new _0xe0a7f0(_0x131479),_0x2092a1=new _0xe0a7f0(_0x131479);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',(_0x2b11df,_0x2d3d53)=>_0x2b11df&&_0x2d3d53>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x3aea8b,_0x1c42f9,_0x1ef800,_0x5dd6d9)=>{if(!_0x3aea8b)return g(_0x131479,'Loading...');if(!_0x1ef800)return g(_0x131479,'No\x20changes');const _0x18c24f=g(_0x131479,'NUMBER_OF_CHANGES',_0x1ef800);return _0x5dd6d9?g(_0x131479,'X_OF_Y_CHANGES',[_0x1c42f9+0x1,_0x1ef800]):_0x18c24f;}),_0x233f47['set']({'label':g(_0x131479,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x1a5458}),_0x2092a1['set']({'label':g(_0x131479,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x288c90}),_0x233f47['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x2092a1['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x233f47['on']('execute',()=>this['fire']('execute','backward')),_0x2092a1['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',_0x5354bf['if']('_isStatusLabelVisible','ck-hidden',_0xe55a31=>!_0xe55a31)]},'children':[{'text':_0x5354bf['to']('isNavigationMode',_0xc1a16f=>_0xc1a16f?g(_0x131479,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x131479,'Total')+':\x20')}]},{'text':_0x5354bf['to']('_statusText')}]},new _0x262df3(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x233f47,_0x2092a1]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x34d9d9{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x598b4e=this['editor']['editing']['view'];_0x598b4e['change'](_0xc1bea3=>{for(const _0xd1adab of _0x598b4e['document']['roots'])_0xc1bea3['addClass'](ce,_0xd1adab);});}['hide'](){const _0x310c8a=this['editor']['editing']['view'];_0x310c8a['change'](_0x193375=>{for(const _0x586f74 of _0x310c8a['document']['roots'])_0x193375['removeClass'](ce,_0x586f74);});}}class R extends _0x34d9d9{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,le];}['init'](){const _0x143a8f=this['editor'],_0x3bab2c=_0x143a8f['plugins']['get'](m),_0x2c8188=_0x143a8f['plugins']['get'](le);_0x143a8f['ui']['componentFactory']['add']('exitToEditing',_0x39a95f=>{const _0x58a7e5=new _0xe0a7f0(_0x39a95f);return _0x58a7e5['set']({'label':g(_0x39a95f,'Back\x20to\x20editing'),'icon':_0x4a8aab,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x58a7e5,'execute',()=>{_0x143a8f['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x58a7e5;}),_0x143a8f['ui']['componentFactory']['add']('restoreRevision',_0xcfd2ca=>{const _0x3c303c=new _0xe0a7f0(_0xcfd2ca);return _0x3c303c['set']({'label':g(_0xcfd2ca,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x3c303c['bind']('isEnabled')['to'](_0x143a8f['commands']['get']('restoreRevision')),this['listenTo'](_0x3c303c,'execute',()=>_0x143a8f['execute']('restoreRevision')),_0x3c303c;}),_0x143a8f['ui']['componentFactory']['add']('changesNavigation',_0x1320cb=>{const _0x3a0e96=new li(_0x1320cb),_0x2238ac=_0x143a8f['commands']['get']('showPreviousChange'),_0x2484cf=_0x143a8f['commands']['get']('showNextChange');return _0x3a0e96['bind']('isBackwardNavigationEnabled')['to'](_0x2238ac,'isEnabled'),_0x3a0e96['bind']('isForwardNavigationEnabled')['to'](_0x2484cf,'isEnabled'),_0x3a0e96['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x3bab2c),this['listenTo'](_0x3a0e96,'execute',(_0x366ae0,_0x32957d)=>{_0x143a8f['execute']('forward'===_0x32957d?'showNextChange':'showPreviousChange');}),_0x3a0e96;}),_0x2c8188['show'](),_0x3bab2c['on']('change:isReady',(_0x486b7c,_0x18a388,_0x5048ae)=>{_0x5048ae?_0x2c8188['hide']():_0x2c8188['show']();});}}class lt extends nt{['_resizeObserver']=null;constructor(_0x4686d9,_0x23ad34){super(_0x4686d9,_0x23ad34);const _0x16b9cc=this['bindTemplate'];this['set']({'label':g(_0x4686d9,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x4686d9,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x16b9cc['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 _0x308fe2=this['fieldView']['element'];this['_tooltipString']=_0x308fe2['scrollWidth']>_0x308fe2['clientWidth']&&_0x308fe2['value']||'';}}class oi extends _0x431dcc{constructor(_0x314bae,_0x6cae9a,_0x2560d5){super(_0x314bae);const _0x5e7ac9=new _0x258501();_0x5e7ac9['set']({'content':_0x52c008,'viewBox':'0\x200\x2011\x2010'});const _0xe6b4f6=['ck','ck-revision-history-sidebar__revision-author'];_0x2560d5&&_0xe6b4f6['push']('ck-revision-history-sidebar__revision-author_creator');const _0x570eeb=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x314bae,_0x2560d5?'Revision\x20creator':'Revision\x20author')},'children':[_0x5e7ac9,_0x6cae9a['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0xe6b4f6},'children':_0x570eeb});}}function ni(_0x38fd23,_0x18f34b){const _0x1d37a2=_0x38fd23['bindTemplate'],_0x5d16f4=_0x38fd23['locale'],_0x2060ef=_0x52ab85(_0x5d16f4);_0x2060ef['panelPosition']='sw';const _0x516b83=function(_0xddd817,_0x201660){const _0x202e73=function(_0x2f673d,_0x57d3d8){const _0x3d1f2b=_0x2f673d['locale'],_0x5a5238={'Compare\x20against\x20selected':g(_0x3d1f2b,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x3d1f2b,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x3d1f2b,'Restore\x20this\x20revision')};return _0x57d3d8['map'](_0x45c5c9=>{const _0x59515e=_0x5a5238[_0x45c5c9['name']];return _0x59515e&&_0x59515e!==_0x45c5c9['name']&&(_0x45c5c9['name']=_0x59515e),_0x45c5c9;});}(_0xddd817,_0x201660),_0x31277d=new _0x346a75();for(const _0x2e8d39 of _0x202e73){const _0x351236={'type':'button','model':new to({'label':_0x2e8d39['name'],'class':_0x2e8d39['class'],'withText':!0x0,'role':'menuitem','_action':_0x2e8d39['action']})};_0x351236['model']['bind']('isEnabled')['to'](_0xddd817,'isActionsDropdownOpen',_0x349418=>'function'!=typeof _0x2e8d39['isEnabled']||(!_0x349418||_0x2e8d39['isEnabled'](_0xddd817))),_0x31277d['add'](_0x351236);}return _0x31277d;}(_0x38fd23,_0x18f34b);return _0x38fd23['bind']('isActionsDropdownOpen')['to'](_0x2060ef,'isOpen'),_0x2060ef['buttonView']['set']({'label':g(_0x5d16f4,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x306bd1}),_0x2060ef['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x1d37a2['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x1d37a2['to'](_0x5e87b9=>_0x5e87b9['stopPropagation']())}}),_0x2060ef['on']('execute',_0x1dd852=>{_0x38fd23['isReady']&&'function'==typeof _0x1dd852['source']['_action']&&_0x1dd852['source']['_action'](_0x38fd23);}),_0x1f1c9c(_0x2060ef,_0x516b83,{'role':'menu'}),_0x2060ef['listenTo'](_0x38fd23,'change:isActionsDropdownOpen',(_0xa26b0e,_0x340196,_0x19caa5)=>{if(_0x19caa5)for(const _0x202f6b of _0x2060ef['listView']['items']){const _0x10feda=_0x202f6b['children']['first'],_0x55e344=_0x18f34b['find'](_0x416fbe=>_0x416fbe['action']===_0x10feda['_action'])['isVisible'];_0x202f6b['isVisible']=void 0x0===_0x55e344||_0x55e344(_0x38fd23);}}),_0x2060ef;}class ai extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x3e6a22(_0x431dcc){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x35a1bb,_0x4c654d,_0x3dcf19,_0x20a137){super(_0x35a1bb);const _0x72694f=this['bindTemplate'],_0x4fdda0=function(_0x5c2ede,_0x4b6227){const _0x4b8db2=Array['from'](_0x4b6227['authors'])['filter'](_0x46d26e=>_0x46d26e!=_0x4b6227['creator']);return _0x4b6227['creator']&&_0x4b8db2['unshift'](_0x4b6227['creator']),_0x4b8db2['map'](_0x50771f=>new oi(_0x5c2ede,_0x50771f,_0x50771f==_0x4b6227['creator']));}(_0x35a1bb,_0x4c654d);this['id']=_0x4c654d['id'],this['_revision']=_0x4c654d,this['_requireRevisionName']=_0x20a137,this['bind']('name','createdAt')['to'](_0x4c654d),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x221d50=>{return _0x23e20e=_0x35a1bb['uiLanguage'],(_0x1c6c2f=_0x221d50)['toLocaleDateString'](_0x23e20e,{'month':'long','day':'numeric'})+',\x20'+_0x1c6c2f['toLocaleTimeString'](_0x23e20e,{'hour':'numeric','minute':'numeric'});var _0x23e20e,_0x1c6c2f;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new lt(_0x35a1bb,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x437303=>_0x437303||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x52605e,_0x2f4b51)=>_0x52605e&&_0x2f4b51),this['revisionActionsView']=_0x3dcf19&&_0x3dcf19['length']?ni(this,_0x3dcf19):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x72694f['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x72694f['if']('isEnabled','ck-disabled',_0x5bf55d=>!_0x5bf55d),_0x72694f['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x72694f['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x72694f['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':_0x72694f['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':_0x4fdda0}]},this['revisionActionsView']],'on':{'click':_0x72694f['to'](_0x1deb6c=>{_0x1deb6c['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x268a53=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x268a53,'change',()=>{this['_requireRevisionName']&&!_0x268a53['value']||this['fire']('setName',{'id':this['id'],'name':_0x268a53['value']}),_0x268a53['value']||(_0x268a53['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(_0x26a306,_0x5a3dcc){const _0xd3ac21=_0x158a51['fromJSDate'](_0x26a306)['setLocale'](_0x5a3dcc),_0x37ba19=_0x158a51['local'](),_0x3d2065=_0x37ba19['minus']({'days':0x1})['startOf']('day');let _0x50471e,_0x27a01a;return _0xd3ac21['hasSame'](_0x37ba19,'day')?(_0x50471e=_0xd3ac21['startOf']('day')['toJSDate'](),_0x27a01a=_0xd3ac21['toRelativeCalendar']()):_0xd3ac21['hasSame'](_0x3d2065,'day')?(_0x50471e=_0x3d2065['toJSDate'](),_0x27a01a=_0xd3ac21['toRelativeCalendar']()):_0xd3ac21['hasSame'](_0x37ba19,'week')?(_0x50471e=_0xd3ac21['startOf']('week')['toJSDate'](),_0x27a01a=_0xd3ac21['weekdayLong']||''):_0xd3ac21['hasSame'](_0x37ba19,'year')?(_0x50471e=_0xd3ac21['startOf']('month')['toJSDate'](),_0x27a01a=_0xd3ac21['monthLong']||''):(_0x50471e=_0xd3ac21['startOf']('year')['toJSDate'](),_0x27a01a=String(_0xd3ac21['year'])),{'startDate':_0x50471e,'localizedPeriodName':_0x27a01a};}class _i extends _0x431dcc{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x53ed73,_0x40399c,_0x57ec22,_0x1a2c29){super(_0x53ed73);const _0x53a272=mi(_0x40399c,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x40399c,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x57ec22,this['_requireRevisionName']=_0x1a2c29,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':_0x53a272}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x2103c2){const _0x16002f=new ai(this['locale'],_0x2103c2,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x16002f);}['removeRevision'](_0x38ae79){const _0x219ab5=this['revisionViews']['find'](_0x585a8b=>_0x585a8b['id']===_0x38ae79['id']);this['revisionViews']['remove'](_0x219ab5);}}class as extends _0x431dcc{constructor(_0x23ee80){super(_0x23ee80);const _0x3ab356=new _0x258501();_0x3ab356['content']=_0x9f4221,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x3ab356,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[g(_0x23ee80,'Revision\x20history')]}]});}}class vi extends _0x431dcc{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x421575,_0x5069d8,_0x2befd6,_0x2d54ea){super(_0x421575);const _0x13f59f=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x5069d8,this['_revisionActions']=_0x2befd6,this['_requireRevisionName']=_0x2d54ea,this['on']('select',(_0x3583c0,_0x54babc)=>{this['fire']('revisionSelected',_0x54babc);}),this['on']('setName',(_0x38340e,_0x21727a)=>{this['fire']('revisionSetName',_0x21727a);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x421575),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x13f59f['if']('isEnabled','ck-disabled',_0x3aabae=>!_0x3aabae)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x4d031b of this['_revisions'])this['_addRevision'](_0x4d031b);this['_revisions']['on']('add',(_0x51b5a1,_0x1651f1)=>{this['_addRevision'](_0x1651f1);}),this['_revisions']['on']('remove',(_0x4e090e,_0x20284d)=>{this['_removeRevision'](_0x20284d);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x4ae8da=>_0x4ae8da['revisionViews']['map'](_0x31e76c=>_0x31e76c))['flat']();}['selectRevision'](_0x7947b6){for(const _0x13c978 of this['revisionViews'])_0x7947b6&&_0x7947b6['id']===_0x13c978['id']?_0x13c978['select']():_0x13c978['deselect']();}['highlightRevisions'](_0x541d50){for(const _0x4112cb of this['revisionViews'])_0x541d50['some'](({id:_0x3c7f54})=>_0x3c7f54===_0x4112cb['id'])?_0x4112cb['highlight']():_0x4112cb['unhighlight']();}['_addRevision'](_0x25c526){const _0x562e99=mi(_0x25c526['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x198414=this['timePeriodViews']['get'](0x0);_0x198414&&_0x198414['startDate']['getTime']()===_0x562e99['getTime']()||(_0x198414=new _i(this['locale'],_0x562e99,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x198414)),_0x198414['addRevision'](_0x25c526);}['_removeRevision'](_0x363614){const _0x17db69=mi(_0x363614['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x17db69)['removeRevision'](_0x363614);}['_getTimePeriodViewByStartDate'](_0x37d1ee){return this['timePeriodViews']['find'](_0x1545ba=>_0x1545ba['startDate']['getTime']()===_0x37d1ee['getTime']());}}class d extends _0x34d9d9{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
27
27
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
|
-
_t();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m];}constructor(
|
|
29
|
-
_0x294adf(_0x57ae8d){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x168eec,_0x51cf3c){super(_0x51cf3c),this['sourceElement']=_0x168eec,this['model']['document']['createRoot']();const _0x3df8c5=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x3df8c5);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x466b81,_0x271c33){const _0x5d3477=new this(_0x466b81,_0x271c33);return await _0x5d3477['initPlugins'](),await _0x5d3477['ui']['init'](_0x466b81),await _0x5d3477['data']['init'](_0x5d3477['config']['get']('initialData')||''),_0x5d3477['fire']('ready'),_0x5d3477;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class yt extends _0x365de9{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x501f74){function _0x48f841(_0x1ddd63){return _0x1ddd63['map'](_0x12901c=>String['fromCharCode'](_0x12901c))['join']('');}super(_0x501f74),this['result']='end',_0x501f74[_0x48f841([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x48f841([0x76,0x69,0x65,0x77])][_0x48f841([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x48f841([0x61,0x75,0x74,0x6f]),_0x501f74[_0x48f841([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x48f841([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x48f841([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x48f841([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x48f841([0x6f,0x6b])});}}class k extends _0x365de9{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x49dce0){if(super(_0x49dce0),!this['editor']['config']['get']('revisionHistory'))throw new _0x3e2bd8('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x426f0a=>this['_showRevisionViewer']({..._0x426f0a,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x4c0699=>this['_closeRevisionViewer'](_0x4c0699)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x1d9d97=>this['_restoreRevision'](_0x1d9d97)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x5a85ef){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x5a85ef;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x3803){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x3803);}['getRevision'](_0x29bae7){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x29bae7);}['getRevisions'](_0xfad87b){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0xfad87b||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x504733=this['editor'],_0x370707=_0x4b6ff5(_0x504733,p),_0x39a6df=_0x504733['plugins']['get']('RevisionTracker'),_0x286844=_0x504733['plugins']['get']('Users')['users'];return _0x370707['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x370707['lazyRoots'],(_0x370707['plugins']['push'](yt,m,R,class extends _0x365de9{static get['requires'](){return[m,'Users'];}['init'](){const _0xddf046=this['editor']['plugins']['get']('Users');for(const _0x2d6e40 of _0x286844)_0x2d6e40['isAnonymous']||_0xddf046['getUser'](_0x2d6e40['id'])||_0xddf046['addUser'](_0x2d6e40);const _0x12ebb9=_0x39a6df['repository']['getRevisions']();let _0x32bf69=null;const _0xb4df09=this['editor']['plugins']['get']('RevisionViewer');_0xb4df09['adapter']=_0x39a6df['adapter'],_0xb4df09['bind']('isEnabled')['to'](_0x39a6df),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x504733,'isReadOnly',_0x28569d=>!_0x28569d);for(const _0x3a109e of _0x12ebb9){const _0x3d7e45=null===_0x3a109e['creator'];if(_0x3d7e45&&_0x3a109e['toVersion']===_0x3a109e['fromVersion'])continue;const _0x401c05=_0x3a109e['toJSON']();_0xb4df09['addRevisionData'](_0x401c05,(_0x66f21c,_0x3be25e,_0x2c81f5)=>{if(_0x3d7e45){if(_0x32bf69)_0x32bf69['_update'](_0x66f21c,_0x3be25e);else{if(!_0x3be25e){const _0x18df84=_0x2c81f5['toJSON']();_0x18df84['id']=_0x1fadd2(),_0x39a6df['saveRevision'](_0x18df84,_0x2c81f5['toVersion'])['then'](_0x443ba8=>{_0x32bf69=_0x443ba8;});}}}else _0x3a109e['_update'](_0x66f21c,_0x3be25e);});}}},d),_0x370707);}['_enhanceShowRevisionViewerCallback'](){const _0x14c3e3=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0xfbb492=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x501cd0=this['editor']['plugins']['get']('Autosave');await _0x501cd0['save']();}else await _0xfbb492['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x369e04=this['editor']['plugins']['get']('Dialog');_0x369e04['isOpen']&&_0x369e04['hide']();}const _0x1f659f=this['_getRevisionViewerEditorConfig']();return _0x14c3e3(_0x1f659f)['then'](_0x3b9f22=>{return(this['_viewerEditor']=_0x3b9f22,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),(this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']='none'),_0x3b9f22);})['catch'](_0x505f69=>(console['error'](_0x505f69),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x3d2c76=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x3d2c76(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x274705=this['editor']['plugins']['get']('Annotations');_0x274705['refreshVisibility'](),_0x274705['refreshPositioning']();}})));}['_showRevisionViewer'](_0x24a4e7){const _0x1e57f0=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x3e0f04=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x1f3359=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x1f3359,_0x24a4e7)['then'](_0x1124ed=>(_0x3e0f04['style']['display']='block',_0x1e57f0['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x1124ed));}['_closeRevisionViewer'](_0x46bf38){const _0x413bbc=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x413bbc['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x46bf38['destroy']();}async['_restoreRevision'](_0x593438){const _0x1cbd06=this['editor'],_0x11dd54=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x36026b=_0x1cbd06['plugins']['get']('RevisionTracker'),_0x2ee2b8=_0x1cbd06['plugins']['get']('RevisionHistoryUtils'),_0x5f261a=_0x11dd54['repository']['getRevision'](_0x593438);let _0x4d448a,_0x232114,_0xa24c5;try{await _0x2ee2b8['loadRevisionData'](_0x5f261a,this['adapter']),_0x4d448a=_0x2ee2b8['getRevisionDocumentData'](_0x5f261a),_0x232114=_0x2ee2b8['getRevisionRootsAttributes'](_0x5f261a);}catch(_0x57db31){return void console['error'](_0x57db31);}_0x1cbd06['model']['change'](_0x249328=>{for(const _0x57ad3b of Array['from'](_0x1cbd06['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x249328['removeMarker'](_0x57ad3b);}),_0x11dd54['isReady']=!0x1,_0x1cbd06['model']['enqueueChange'](_0x2fe8e5=>{_0x2fe8e5['setSelection'](null),_0x2fe8e5['removeSelectionAttribute'](_0x1cbd06['model']['document']['selection']['getAttributeKeys']());const _0x576957=Object['keys'](_0x4d448a);for(const _0x377f6b of _0x1cbd06['model']['document']['roots'])'$graveyard'!=_0x377f6b['rootName']&&_0x377f6b['isAttached']()&&!_0x576957['includes'](_0x377f6b['rootName'])&&_0x2fe8e5['detachRoot'](_0x377f6b);for(const _0x2337f9 of _0x576957){let _0x588ca4=_0x1cbd06['model']['document']['getRoot'](_0x2337f9);_0x588ca4&&_0x588ca4['isAttached']()||(_0x588ca4=_0x2fe8e5['addRoot'](_0x2337f9));const _0x1aef88=_0x232114[_0x2337f9],_0x171d25=Object['keys'](_0x1aef88),_0x148b50=_0x4d448a[_0x2337f9];for(const _0x5963e1 of _0x588ca4['getAttributeKeys']())_0x171d25['includes'](_0x5963e1)||_0x2fe8e5['removeAttribute'](_0x5963e1,_0x588ca4);for(const _0x2a9195 of _0x171d25)_0x2fe8e5['setAttribute'](_0x2a9195,_0x232114[_0x2337f9][_0x2a9195],_0x588ca4);_0x2fe8e5['remove'](_0x2fe8e5['createRangeIn'](_0x588ca4)),_0x2fe8e5['insert'](_0x1cbd06['data']['parse'](_0x148b50,_0x588ca4),_0x588ca4,0x0);}});const _0x39b688=g(_0x1cbd06['locale'],'Restored');if(_0x5f261a['name'])_0xa24c5=-0x1==_0x5f261a['name']['indexOf'](_0x39b688)?_0x39b688+':\x20'+_0x5f261a['name']:_0x5f261a['name'];else _0xa24c5=_0x39b688+':\x20'+(_0x5f261a['createdAt']['toLocaleDateString'](_0x1cbd06['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x5f261a['createdAt']['toLocaleTimeString'](_0x1cbd06['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x36026b['saveRevision']({'name':_0xa24c5}),_0x11dd54['isReady']=!0x0,_0x1cbd06['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,V as RevisionHistoryUtils,u as RevisionTracker,m as RevisionViewer,w as RevisionViewerEditor,le as RevisionViewerLoadingOverlay,R as RevisionViewerUI,I as RevisionsRepository,d as RevisionsSidebar};
|
|
28
|
+
_t();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m];}constructor(_0x38756c){super(_0x38756c),this['_revisionViewer']=_0x38756c['plugins']['get'](m),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x26f75f=this['_revisionsRepository']['_revisions'],_0x90f115=this['_createRevisionActions'](),_0x5bc85b=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new vi(this['editor']['locale'],_0x26f75f,_0x90f115,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',(_0x19f455,_0xda1227)=>{_0xda1227['revisionViews']['on']('add',(_0x1602ef,_0x36dab2)=>{_0x36dab2['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)),_0x5bc85b['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x53667d=this['_revisionsRepository']['getRevision'](0x0);if(_0x53667d){const _0x786150=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x53667d['id']);this['_revisionViewer']['compare'](_0x53667d,_0x786150);}}['_handleRevisionSelected'](_0x5eb5fc,_0x2a9627){const _0x2e049c=this['_revisionsRepository']['getRevision'](_0x2a9627['id']),_0x2156ea=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x2e049c['id']);this['_revisionViewer']['compare'](_0x2e049c,_0x2156ea);}['_handleRevisionSetName'](_0x110c11,_0xad8078){this['_revisionsRepository']['getRevision'](_0xad8078['id'])['setName'](_0xad8078['name']);}['_handleDiffChange'](_0x47e169,_0x293bd9,_0x2a32ba){const _0x1bd320=this['_revisionsRepository']['getRevisionsInDiff'](_0x2a32ba);_0x1bd320['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x1bd320),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x1bd320[0x0]));}['_createRevisionActions'](){const _0x4227ce=this['editor'],_0x3e0651=d['availableRevisionActions'],_0x26e43b=_0x4227ce['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x26e43b['length'])return _0x26e43b['map'](_0xadedda=>{const _0x5672d2='string'==typeof _0xadedda?Object['assign']({},_0x3e0651[_0xadedda]):_0xadedda;return _0x5672d2['action']=_0x5672d2['action']['bind'](this,_0x4227ce),_0x5672d2['isVisible']&&(_0x5672d2['isVisible']=_0x5672d2['isVisible']['bind'](this,_0x4227ce)),_0x5672d2;});}}function _t(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x25ae66},_0x79ed9c)=>{const _0x478330=_0x25ae66['get'](m),_0x2ac46d=_0x478330['repository'];let _0x57c38e=_0x478330['diff']['newRevisionId'],_0x738ebe=_0x79ed9c['id'];_0x2ac46d['getIndex'](_0x57c38e)>_0x2ac46d['getIndex'](_0x738ebe)&&([_0x57c38e,_0x738ebe]=[_0x738ebe,_0x57c38e]),_0x478330['compare'](_0x57c38e,_0x738ebe);},'isVisible':({plugins:_0x5be0db},_0x131dae)=>{const _0x10d1fc=_0x5be0db['get'](m);return!(_0x10d1fc['repository']['getRevisionsInDiff'](_0x10d1fc['diff'])['length']>0x2)&&!_0x131dae['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x3a22e5,{id:_0x3184d2})=>{_0x3a22e5['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x3184d2);},'isVisible':({plugins:_0x365228},_0x361d5c)=>!!_0x365228['get'](m)['repository']['getLaterVisibleRevision'](_0x361d5c['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x11cef3},{id:_0x111b10,revisionNameView:_0x2d0845})=>{const _0x2b3f5f=_0x11cef3['get'](m),_0x4c8853=_0x2b3f5f['repository']['getEarlierVisibleRevision'](_0x111b10);_0x2b3f5f['compare'](_0x111b10,_0x4c8853),_0x2d0845['focus'](),_0x2d0845['fieldView']['select']();}}};}class tt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x4e0fe8,_0x211f9d){super(_0x4e0fe8),this['_view']=_0x211f9d,this['_toolbarConfig']=et(_0x4e0fe8['config']['get']('toolbar')),this['_elementReplacer']=new ot();}get['element'](){return this['view']['element'];}['init'](_0x421c14){const _0x3fd4ab=this['editor'],_0x37d647=this['view'],_0x487212=_0x3fd4ab['editing']['view'],_0x276774=_0x37d647['editable'],_0x47ede0=_0x487212['document']['getRoot']();_0x276774['name']=_0x47ede0['rootName'],_0x37d647['render']();const _0x3d4ac2=_0x276774['element'];this['setEditableElement'](_0x276774['name'],_0x3d4ac2),_0x37d647['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x487212['attachDomRoot'](_0x3d4ac2),this['_elementReplacer']['replace'](_0x421c14,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x526f7a=this['view'],_0x149a62=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x149a62['detachDomRoot'](_0x526f7a['editable']['name']),_0x526f7a['destroy']();}['_initToolbar'](){const _0x138c85=this['view'];_0x138c85['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x138c85['stickyPanel']['limiterElement']=_0x138c85['element'],_0x138c85['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x4fb320})=>_0x4fb320),_0x138c85['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x138c85['toolbar']);}}class it extends rt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x5d9f94,_0x19de54,_0x3c5812={}){super(_0x5d9f94),this['stickyPanel']=new ht(_0x5d9f94),this['toolbar']=new dt(_0x5d9f94,{'shouldGroupWhenFull':_0x3c5812['shouldToolbarGroupWhenFull']}),this['_editable']=new ct(_0x5d9f94,_0x19de54);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class w extends/* #__PURE__ -- @preserve */
|
|
29
|
+
_0x355854(_0x338cea){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x57ce38,_0x5d8eef){super(_0x5d8eef),this['sourceElement']=_0x57ce38,this['model']['document']['createRoot']();const _0x27c376=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x27c376);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x372fea,_0x4ce5bc){const _0x3724d4=new this(_0x372fea,_0x4ce5bc);return await _0x3724d4['initPlugins'](),await _0x3724d4['ui']['init'](_0x372fea),await _0x3724d4['data']['init'](_0x3724d4['config']['get']('initialData')||''),_0x3724d4['fire']('ready'),_0x3724d4;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class yt extends _0x34d9d9{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4437ad){function _0x7d9104(_0x147973){return _0x147973['map'](_0x3df626=>String['fromCharCode'](_0x3df626))['join']('');}super(_0x4437ad),this['result']='end',_0x4437ad[_0x7d9104([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x7d9104([0x76,0x69,0x65,0x77])][_0x7d9104([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x7d9104([0x61,0x75,0x74,0x6f]),_0x4437ad[_0x7d9104([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x7d9104([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x7d9104([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x7d9104([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x7d9104([0x6f,0x6b])});}}class k extends _0x34d9d9{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x4b92ac){if(super(_0x4b92ac),!this['editor']['config']['get']('revisionHistory'))throw new _0x2ff414('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x14e74f=>this['_showRevisionViewer']({..._0x14e74f,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x15181b=>this['_closeRevisionViewer'](_0x15181b)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x4b60a4=>this['_restoreRevision'](_0x4b60a4)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0xa3db3f){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0xa3db3f;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x313a92){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x313a92);}['getRevision'](_0x3cf9d8){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x3cf9d8);}['getRevisions'](_0x5cd890){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x5cd890||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x217717=this['editor'],_0x4505fa=_0x1ebec0(_0x217717,p),_0x150bbc=_0x217717['plugins']['get']('RevisionTracker'),_0x1a694a=_0x217717['plugins']['get']('Users')['users'];return _0x4505fa['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x4505fa['lazyRoots'],(_0x4505fa['plugins']['push'](yt,m,R,class extends _0x34d9d9{static get['requires'](){return[m,'Users'];}['init'](){const _0x2e87a3=this['editor']['plugins']['get']('Users');for(const _0x16ca29 of _0x1a694a)_0x16ca29['isAnonymous']||_0x2e87a3['getUser'](_0x16ca29['id'])||_0x2e87a3['addUser'](_0x16ca29);const _0x2730df=_0x150bbc['repository']['getRevisions']();let _0x433b88=null;const _0xc7ebc0=this['editor']['plugins']['get']('RevisionViewer');_0xc7ebc0['adapter']=_0x150bbc['adapter'],_0xc7ebc0['bind']('isEnabled')['to'](_0x150bbc),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x217717,'isReadOnly',_0x5e3140=>!_0x5e3140);for(const _0xfff23 of _0x2730df){const _0x30e85e=null===_0xfff23['creator'];if(_0x30e85e&&_0xfff23['toVersion']===_0xfff23['fromVersion'])continue;const _0x3604d9=_0xfff23['toJSON']();_0xc7ebc0['addRevisionData'](_0x3604d9,(_0x1d5d38,_0x1e3c64,_0x1a7775)=>{if(_0x30e85e){if(_0x433b88)_0x433b88['_update'](_0x1d5d38,_0x1e3c64);else{if(!_0x1e3c64){const _0x4fe2cd=_0x1a7775['toJSON']();_0x4fe2cd['id']=_0x521db4(),_0x150bbc['saveRevision'](_0x4fe2cd,_0x1a7775['toVersion'])['then'](_0x21965b=>{_0x433b88=_0x21965b;});}}}else _0xfff23['_update'](_0x1d5d38,_0x1e3c64);});}}},d),_0x4505fa);}['_enhanceShowRevisionViewerCallback'](){const _0x11a5e4=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x52508b=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x1c8603=this['editor']['plugins']['get']('Autosave');await _0x1c8603['save']();}else await _0x52508b['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x174b97=this['editor']['plugins']['get']('Dialog');_0x174b97['isOpen']&&_0x174b97['hide']();}const _0x59d869=this['_getRevisionViewerEditorConfig']();return _0x11a5e4(_0x59d869)['then'](_0x52cc8c=>{return(this['_viewerEditor']=_0x52cc8c,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),(this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']='none'),_0x52cc8c);})['catch'](_0x237134=>(console['error'](_0x237134),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x13681f=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x13681f(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x5d4cb1=this['editor']['plugins']['get']('Annotations');_0x5d4cb1['refreshVisibility'](),_0x5d4cb1['refreshPositioning']();}})));}['_showRevisionViewer'](_0xaaee79){const _0xec4e5e=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x24099c=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x624f65=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x624f65,_0xaaee79)['then'](_0x259c8f=>(_0x24099c['style']['display']='block',_0xec4e5e['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x259c8f));}['_closeRevisionViewer'](_0x2fdb15){const _0x50c06e=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x50c06e['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x2fdb15['destroy']();}async['_restoreRevision'](_0x31daba){const _0x295dd6=this['editor'],_0xf5d987=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x424f8a=_0x295dd6['plugins']['get']('RevisionTracker'),_0x40ff3c=_0x295dd6['plugins']['get']('RevisionHistoryUtils'),_0x4e6a3e=_0xf5d987['repository']['getRevision'](_0x31daba);let _0x3d5d2f,_0x2ee2fd,_0x59cf68;try{await _0x40ff3c['loadRevisionData'](_0x4e6a3e,this['adapter']),_0x3d5d2f=_0x40ff3c['getRevisionDocumentData'](_0x4e6a3e),_0x2ee2fd=_0x40ff3c['getRevisionRootsAttributes'](_0x4e6a3e);}catch(_0x37d35f){return void console['error'](_0x37d35f);}_0x295dd6['model']['change'](_0x1e0953=>{for(const _0x2ee335 of Array['from'](_0x295dd6['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x1e0953['removeMarker'](_0x2ee335);}),_0xf5d987['isReady']=!0x1,_0x295dd6['model']['enqueueChange'](_0x3cf5af=>{_0x3cf5af['setSelection'](null),_0x3cf5af['removeSelectionAttribute'](_0x295dd6['model']['document']['selection']['getAttributeKeys']());const _0x43e93b=Object['keys'](_0x3d5d2f);for(const _0x450100 of _0x295dd6['model']['document']['roots'])'$graveyard'!=_0x450100['rootName']&&_0x450100['isAttached']()&&!_0x43e93b['includes'](_0x450100['rootName'])&&_0x3cf5af['detachRoot'](_0x450100);for(const _0x564701 of _0x43e93b){let _0x538347=_0x295dd6['model']['document']['getRoot'](_0x564701);_0x538347&&_0x538347['isAttached']()||(_0x538347=_0x3cf5af['addRoot'](_0x564701));const _0x183777=_0x2ee2fd[_0x564701],_0x4bea15=Object['keys'](_0x183777),_0x150ce0=_0x3d5d2f[_0x564701];for(const _0x1a561c of _0x538347['getAttributeKeys']())_0x4bea15['includes'](_0x1a561c)||_0x3cf5af['removeAttribute'](_0x1a561c,_0x538347);for(const _0x901a02 of _0x4bea15)_0x3cf5af['setAttribute'](_0x901a02,_0x2ee2fd[_0x564701][_0x901a02],_0x538347);_0x3cf5af['remove'](_0x3cf5af['createRangeIn'](_0x538347)),_0x3cf5af['insert'](_0x295dd6['data']['parse'](_0x150ce0,_0x538347),_0x538347,0x0);}});const _0x597100=g(_0x295dd6['locale'],'Restored');if(_0x4e6a3e['name'])_0x59cf68=-0x1==_0x4e6a3e['name']['indexOf'](_0x597100)?_0x597100+':\x20'+_0x4e6a3e['name']:_0x4e6a3e['name'];else _0x59cf68=_0x597100+':\x20'+(_0x4e6a3e['createdAt']['toLocaleDateString'](_0x295dd6['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x4e6a3e['createdAt']['toLocaleTimeString'](_0x295dd6['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x424f8a['saveRevision']({'name':_0x59cf68}),_0xf5d987['isReady']=!0x0,_0x295dd6['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,V as RevisionHistoryUtils,u as RevisionTracker,m as RevisionViewer,w as RevisionViewerEditor,le as RevisionViewerLoadingOverlay,R as RevisionViewerUI,I as RevisionsRepository,d as RevisionsSidebar};
|