@ckeditor/ckeditor5-revision-history 44.3.0-alpha.2 → 44.3.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/dist/index.js +6 -6
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +10 -10
- package/src/changeitem.js +2 -2
- package/src/editor/revisionviewereditor.js +2 -2
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/index.js +1 -1
- package/src/revision.js +2 -2
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +2 -2
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ObservableMixin as
|
|
24
|
-
_0x383f40(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x38fee1){super(),this['id']=_0x38fee1['id']||_0x66ae84(),this['creator']=_0x38fee1['creator']||null,this['authors']=_0x38fee1['authors']||[],this['diffData']=_0x38fee1['diffData']||null,this['toVersion']=_0x38fee1['toVersion']||0x0,this['fromVersion']=_0x38fee1['fromVersion']||0x0,this['set']('name',_0x38fee1['name']||''),this['set']('createdAt',_0x38fee1['createdAt']||new Date()),this['set']('attributes',_0x38fee1['attributes']||{});}['setName'](_0x32e487){this['_update']({'name':_0x32e487});}['setAttribute'](_0xd699d1,_0x196b59){const _0x2b65da=_0x100481(this['attributes']);_0x1963f5(_0x2b65da,_0xd699d1,_0x196b59),this['_update']({'attributes':_0x2b65da});}['removeAttribute'](_0xd809e5){const _0x425113=_0x100481(this['attributes']);_0x12c8e7(_0x425113,_0xd809e5),this['_update']({'attributes':_0x425113});}['_update'](_0x426292,_0x25432f=!0x1){let _0x119394=!0x1;const _0x2caa1={'id':this['id']},_0x2d975f=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x5a8cce of _0x2d975f){const _0x51ef99=_0x426292[_0x5a8cce];void 0x0!==_0x51ef99&&_0x51ef99!==this[_0x5a8cce]&&(this[_0x5a8cce]=_0x51ef99,_0x2caa1[_0x5a8cce]=_0x51ef99,_0x119394=!0x0);}_0x119394&&(_0x2caa1['authors']&&(_0x2caa1['authorsIds']=_0x2caa1['authors']['map'](_0x40b46a=>_0x40b46a['id']),delete _0x2caa1['authors']),this['fire']('_update',_0x2caa1,_0x25432f));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x3778c4=>_0x3778c4['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x31326a{['_revisions'];static get['requires'](){return[_0x29bc02];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x5d2593){super(_0x5d2593),this['_revisions']=new _0x4367e2();}['afterInit'](){!async function(_0xbbc38c){const _0x486948=_0x579edd([0x6b,0x57,0x58,0x73,0x72,0x64,0x4a,0x52,0x6f,0x66,0x50,0x32,0x38,0x68,0x53,0x44,0x30,0x55,0x6a,0x54,0x69,0x49,0x56,0x75,0x78,0x35,0x34,0x51,0x59,0x37,0x67,0x4e,0x5a,0x4d,0x76,0x42,0x77,0x4f,0x6e,0x6d,0x74,0x39,0x31,0x79,0x36,0x43,0x61,0x33,0x7a,0x4b,0x45,0x6c,0x41,0x4c,0x47,0x62,0x48,0x70,0x63,0x46,0x71,0x65]),_0x4481d6=0xeb829,_0x1d7c24=0x7d0260ab,_0x5f4728=0x7d050063^_0x1d7c24,_0x102eab=window[_0x579edd([0x44,0x61,0x74,0x65])][_0x579edd([0x6e,0x6f,0x77])](),_0x166e27=_0xbbc38c[_0x579edd([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xf7fd8f=new window[(_0x579edd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x540f6a=>{_0x166e27[_0x579edd([0x6f,0x6e,0x63,0x65])](_0x579edd([0x72,0x65,0x61,0x64,0x79]),_0x540f6a);}),_0x3dc5e5={[_0x579edd([0x6b,0x74,0x79])]:_0x579edd([0x45,0x43]),[_0x579edd([0x75,0x73,0x65])]:_0x579edd([0x73,0x69,0x67]),[_0x579edd([0x63,0x72,0x76])]:_0x579edd([0x50,0x2d,0x32,0x35,0x36]),[_0x579edd([0x78])]:_0x579edd([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]),[_0x579edd([0x79])]:_0x579edd([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]),[_0x579edd([0x61,0x6c,0x67])]:_0x579edd([0x45,0x53,0x32,0x35,0x36])},_0x391f2a=_0x166e27[_0x579edd([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x579edd([0x67,0x65,0x74])](_0x579edd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3de876(){let _0x6f3de1,_0x29c80f=null,_0x2ccd09=null;try{if(_0x391f2a==_0x579edd([0x47,0x50,0x4c]))return _0x579edd([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x6f3de1=_0x590314(),!_0x6f3de1)return _0x579edd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x6f3de1[_0x579edd([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2ccd09=_0x1862e6(_0x6f3de1[_0x579edd([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x6f3de1[_0x579edd([0x6a,0x74,0x69])])),await _0x59708f()?_0x1c07f9()?_0x1a34eb()?_0x579edd([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x911746()?(_0x6f3de1[_0x579edd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x579edd([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x29c80f=_0x2846ef(_0x579edd([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x6f3de1[_0x579edd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x579edd([0x74,0x72,0x69,0x61,0x6c])&&(_0x29c80f=_0x2846ef(_0x579edd([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x34ba21()):_0x579edd([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x579edd([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x579edd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x5e4c3c){return _0x579edd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1a34eb(){const _0x46fa7c=[_0x579edd([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x579edd([0x74,0x72,0x69,0x61,0x6c])][_0x579edd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x6f3de1[_0x579edd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x102eab/0x3e8:0xe10*_0x5f4728;return _0x6f3de1[_0x579edd([0x65,0x78,0x70])]<_0x46fa7c;}function _0x1c07f9(){const _0x465e2c=_0x6f3de1[_0x579edd([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x465e2c)return!0x1;if(_0x465e2c[_0x579edd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x579edd([0x2a])))return!0x0;if(_0x465e2c[_0x579edd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x579edd([0x52,0x48])))return!0x0;if(_0x465e2c[_0x579edd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x579edd([0x52,0x52,0x48]))){if(_0x168f83())return!0x0;if(_0x210afe()||_0x4d3ac2())return!0x0;}return!0x1;}function _0x911746(){const _0x430d37=_0x6f3de1[_0x579edd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x430d37||0x0==_0x430d37[_0x579edd([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5b8269}=new URL(window[_0x579edd([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x430d37[_0x579edd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b8269))return!0x0;const _0x117b44=_0x5b8269[_0x579edd([0x73,0x70,0x6c,0x69,0x74])](_0x579edd([0x2e]));return _0x430d37[_0x579edd([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x39df86=>_0x39df86[_0x579edd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x579edd([0x2a])))[_0x579edd([0x6d,0x61,0x70])](_0x959223=>_0x959223[_0x579edd([0x73,0x70,0x6c,0x69,0x74])](_0x579edd([0x2e])))[_0x579edd([0x73,0x6f,0x6d,0x65])](_0x445e4c=>_0x117b44[_0x579edd([0x65,0x76,0x65,0x72,0x79])]((_0x2c3f43,_0x1d079d)=>_0x445e4c[_0x1d079d]===_0x2c3f43||_0x445e4c[_0x1d079d]===_0x579edd([0x2a])));}function _0x34ba21(){return _0x29c80f&&_0x2ccd09?new window[(_0x579edd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3ae69f,_0x4ef442)=>{_0x29c80f[_0x579edd([0x74,0x68,0x65,0x6e])](_0x3ae69f,_0x4ef442),_0x2ccd09[_0x579edd([0x74,0x68,0x65,0x6e])](_0x117a94=>{_0x117a94!=_0x579edd([0x56,0x61,0x6c,0x69,0x64])&&_0x3ae69f(_0x117a94);},_0x4ef442);}):_0x29c80f||_0x2ccd09||_0x579edd([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1862e6(_0x199a49,_0xa2171c){return new window[(_0x579edd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x459088=>{if(_0x5606b6())return _0x459088(_0x579edd([0x56,0x61,0x6c,0x69,0x64]));_0x6a3fff(),_0x166e27[_0x579edd([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x579edd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x124ce9=!0x1;const _0x3fa431=_0x66ae84();function _0x5161fa(_0x41499e){return!!_0x41499e&&(typeof _0x41499e===_0x579edd([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x41499e===_0x579edd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x41499e[_0x579edd([0x74,0x68,0x65,0x6e])]===_0x579edd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x41499e[_0x579edd([0x63,0x61,0x74,0x63,0x68])]===_0x579edd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x59688d(_0x3595db){_0x2530fb(_0x3595db)[_0x579edd([0x74,0x68,0x65,0x6e])](_0x480979=>{if(!_0x480979||_0x480979[_0x579edd([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x579edd([0x6f,0x6b]))return _0x579edd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3c0dab(_0x3b5958(_0x3fa431+_0xa2171c))!=_0x480979[_0x579edd([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x579edd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x579edd([0x56,0x61,0x6c,0x69,0x64]);})[_0x579edd([0x74,0x68,0x65,0x6e])](_0x41ca2b=>(_0x1adcc1(),_0x41ca2b),()=>{const _0x261065=_0x177fa7();return null==_0x261065?(_0x1adcc1(),_0x579edd([0x56,0x61,0x6c,0x69,0x64])):_0x579edd(_0x102eab-_0x261065>(0x590ee4ab^_0x1d7c24)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x579edd([0x74,0x68,0x65,0x6e])](_0x459088)[_0x579edd([0x63,0x61,0x74,0x63,0x68])](()=>{_0x459088(_0x579edd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4f4f77=0x7d348e2b^_0x1d7c24;function _0x1adcc1(){const _0x545920=_0x579edd([0x6c,0x6c,0x63,0x74,0x2d])+_0x3c0dab(_0x3b5958(_0x199a49)),_0xa9bf3f=_0x4e14bd(_0x3c0dab(window[_0x579edd([0x4d,0x61,0x74,0x68])][_0x579edd([0x63,0x65,0x69,0x6c])](_0x102eab/_0x4f4f77)));window[_0x579edd([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x579edd([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x545920,_0xa9bf3f);}function _0x177fa7(){const _0x7a383=_0x579edd([0x6c,0x6c,0x63,0x74,0x2d])+_0x3c0dab(_0x3b5958(_0x199a49)),_0x5623bd=window[_0x579edd([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x579edd([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x7a383);return _0x5623bd?window[_0x579edd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4e14bd(_0x5623bd),0x10)*_0x4f4f77:null;}function _0x2530fb(_0x579eea){return new window[(_0x579edd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4b3b55,_0x1862a1)=>{_0x579eea[_0x579edd([0x74,0x68,0x65,0x6e])](_0x4b3b55,_0x1862a1),window[_0x579edd([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1862a1,0x7d03b46b^_0x1d7c24);});}}_0x166e27[_0x579edd([0x6f,0x6e])](_0x579edd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5c7040,_0x5a183c)=>{if(_0x5a183c[0x0]!=_0x199a49)return _0x459088(_0x579edd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5a183c[0x1]={..._0x5a183c[0x1],[_0x579edd([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3fa431};},{[_0x579edd([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x579edd([0x68,0x69,0x67,0x68])}),_0x166e27[_0x579edd([0x6f,0x6e])](_0x579edd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x43ea9b=>{_0x5161fa(_0x43ea9b[_0x579edd([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x124ce9=!0x0,_0x59688d(_0x43ea9b[_0x579edd([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x579edd([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x579edd([0x6c,0x6f,0x77])}),_0xf7fd8f[_0x579edd([0x74,0x68,0x65,0x6e])](()=>{_0x124ce9||_0x459088(_0x579edd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5606b6(){return _0x166e27[_0x579edd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x579edd([0x76,0x69,0x65,0x77])][_0x579edd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x579edd([0x61,0x75,0x74,0x6f]);}function _0x6a3fff(){_0x166e27[_0x579edd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x579edd([0x76,0x69,0x65,0x77])][_0x579edd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x579edd([0x61,0x75,0x74,0x6f]);}}function _0x2846ef(_0x1015a0){const _0x17894e=[new window[(_0x579edd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xcd1764=>setTimeout(_0xcd1764,0x7d0b5e67^_0x1d7c24)),_0xf7fd8f[_0x579edd([0x74,0x68,0x65,0x6e])](()=>new window[(_0x579edd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x19a225=>{const _0x207689=0x7d0260ac^_0x1d7c24,_0x334d50=_0xbbc38c[_0x579edd([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x28231a(){_0x334d50[_0x579edd([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x207689&&_0x19a225();}_0x28231a(),_0x334d50[_0x579edd([0x6f,0x6e])](_0x579edd([0x61,0x64,0x64]),_0x28231a);})),new window[(_0x579edd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x14dd08=>{function _0x184a72(){for(const _0x6bf667 in window)if(window[_0x579edd([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x579edd([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x6bf667))&&window[_0x6bf667]==_0x4481d6)return _0x14dd08();_0x166e27[_0x579edd([0x73,0x74,0x61,0x74,0x65])]!=_0x579edd([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x579edd([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x184a72,0x7d027323^_0x1d7c24);}_0x2271cc(_0x579edd([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x184a72();})];return window[_0x579edd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x579edd([0x72,0x61,0x63,0x65])](_0x17894e)[_0x579edd([0x74,0x68,0x65,0x6e])](()=>_0x1015a0);}async function _0x41132f(){if(await _0xf7fd8f,_0x2271cc(_0x579edd([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x13ee4f=_0xbbc38c[_0x579edd([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x304d7e=_0xbbc38c[_0x579edd([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])](_0x13ee4f[_0x579edd([0x69,0x64])]),_0x262745=_0x140aee(_0x579edd([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x262745[_0x579edd([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x13ee4f['id'],_0x304d7e?_0x304d7e['id']:null,!0x0),_0x262745[_0x579edd([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x579edd([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x262745[_0x579edd([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x262745[_0x579edd([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0xcbbfc0,void(_0x262745[_0x579edd([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0xcbbfc0);}if(_0x2271cc(_0x579edd([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x15a018=_0x140aee(_0x579edd([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x15a018[_0x579edd([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x579edd([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x15a018[_0x579edd([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x15a018[_0x579edd([0x75,0x70,0x64,0x61,0x74,0x65])]=_0xcbbfc0,_0x15a018[_0x579edd([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0xcbbfc0;}_0x166e27[_0x579edd([0x6d,0x6f,0x64,0x65,0x6c])][_0x579edd([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xcbbfc0,_0x166e27[_0x579edd([0x6d,0x6f,0x64,0x65,0x6c])][_0x579edd([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xcbbfc0,_0x166e27[_0x579edd([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x579edd([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x168f83(){return _0x2271cc(_0x579edd([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x140aee(_0x579edd([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x579edd([0x73,0x74,0x61,0x74,0x65])]==_0x579edd([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x210afe(){return _0x2271cc(_0x579edd([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 _0x4d3ac2(){return _0x2271cc(_0x579edd([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x3357b7(_0xeacaec){const _0x3d267d=_0x316cc7();_0x166e27[_0x3d267d]=_0x579edd([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])+_0xeacaec,_0xeacaec[_0x579edd([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x579edd([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x316cc7()]=_0x4481d6),_0xeacaec!=_0x579edd([0x56,0x61,0x6c,0x69,0x64])&&_0x41132f();}function _0x316cc7(){const _0x45ccbd=window[_0x579edd([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x579edd([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x579edd([0x6e,0x6f,0x77])]())[_0x579edd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x579edd([0x2e]),'');let _0x2cba48=_0x579edd([0x6b]);for(let _0xebe1c2=0x0;_0xebe1c2<_0x45ccbd[_0x579edd([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xebe1c2+=0x2){let _0x42b94e=window[_0x579edd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x45ccbd[_0x579edd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xebe1c2,_0xebe1c2+0x2));_0x42b94e>=_0x486948[_0x579edd([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x42b94e-=_0x486948[_0x579edd([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2cba48+=_0x486948[_0x42b94e];}return _0x2cba48;}function _0x590314(){const _0x1c9925=_0x391f2a[_0x579edd([0x73,0x70,0x6c,0x69,0x74])](_0x579edd([0x2e]));if(0x3!=_0x1c9925[_0x579edd([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x37e304(_0x1c9925[0x1]);function _0x37e304(_0x30571e){const _0x5c4c83=_0x40c54f(_0x30571e);return _0x5c4c83&&_0x1a2a42()?_0x5c4c83:null;function _0x1a2a42(){const _0xcefff7=_0x5c4c83[_0x579edd([0x6a,0x74,0x69])],_0x4a4130=window[_0x579edd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xcefff7[_0x579edd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xcefff7[_0x579edd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x902d9c={..._0x5c4c83,[_0x579edd([0x6a,0x74,0x69])]:_0xcefff7[_0x579edd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xcefff7[_0x579edd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x902d9c[_0x579edd([0x76,0x63])],_0x3b5958(_0x902d9c)==_0x4a4130;}}}async function _0x59708f(){let _0x4e6656=!0x0;try{const _0x28b1a8=_0x391f2a[_0x579edd([0x73,0x70,0x6c,0x69,0x74])](_0x579edd([0x2e])),[_0x4b3c01,_0xb005e1,_0xc938f2]=_0x28b1a8;return _0x1b90ce(_0x4b3c01),await _0x47aa8e(_0x4b3c01,_0xb005e1,_0xc938f2),_0x4e6656;}catch(_0x4796e9){return!0x1;}function _0x1b90ce(_0x2ca16a){const _0x160f2c=_0x40c54f(_0x2ca16a);_0x160f2c&&_0x160f2c[_0x579edd([0x61,0x6c,0x67])]==_0x579edd([0x45,0x53,0x32,0x35,0x36])||(_0x4e6656=!0x1);}async function _0x47aa8e(_0x226453,_0x3ab079,_0x304b5c){const _0x2d8b67=window[_0x579edd([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x579edd([0x66,0x72,0x6f,0x6d])](_0xa0a1b5(_0x304b5c),_0x4f6520=>_0x4f6520[_0x579edd([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4cb5fe=new window[(_0x579edd([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x579edd([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x226453+_0x579edd([0x2e])+_0x3ab079),_0x2e2db7=window[_0x579edd([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x579edd([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2e2db7)return;const _0x302830=await _0x2e2db7[_0x579edd([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x579edd([0x6a,0x77,0x6b]),_0x3dc5e5,{[_0x579edd([0x6e,0x61,0x6d,0x65])]:_0x579edd([0x45,0x43,0x44,0x53,0x41]),[_0x579edd([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x579edd([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x579edd([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2e2db7[_0x579edd([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x579edd([0x6e,0x61,0x6d,0x65])]:_0x579edd([0x45,0x43,0x44,0x53,0x41]),[_0x579edd([0x68,0x61,0x73,0x68])]:{[_0x579edd([0x6e,0x61,0x6d,0x65])]:_0x579edd([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x302830,_0x2d8b67,_0x4cb5fe)||(_0x4e6656=!0x1);}}function _0x40c54f(_0x5b8bfd){return _0x5b8bfd[_0x579edd([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x579edd([0x65,0x79]))?JSON[_0x579edd([0x70,0x61,0x72,0x73,0x65])](_0xa0a1b5(_0x5b8bfd)):null;}function _0xa0a1b5(_0x472d64){return window[_0x579edd([0x61,0x74,0x6f,0x62])](_0x472d64[_0x579edd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x579edd([0x2b]))[_0x579edd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x579edd([0x2f])));}function _0x3b5958(_0x2f5ce5){let _0x37a627=0x1505;function _0x137bcf(_0x4576c4){for(let _0xb24aec=0x0;_0xb24aec<_0x4576c4[_0x579edd([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xb24aec++){const _0x26d5e6=_0x4576c4[_0x579edd([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xb24aec);_0x37a627=(_0x37a627<<0x5)+_0x37a627+_0x26d5e6,_0x37a627&=_0x37a627;}}function _0x196f62(_0x2821e8){Array[_0x579edd([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2821e8)?_0x2821e8[_0x579edd([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x196f62):_0x2821e8&&typeof _0x2821e8==_0x579edd([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x579edd([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2821e8)[_0x579edd([0x73,0x6f,0x72,0x74])]()[_0x579edd([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x366fac,_0x3b528d])=>{_0x137bcf(_0x366fac),_0x196f62(_0x3b528d);}):_0x137bcf(window[_0x579edd([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2821e8));}return _0x196f62(_0x2f5ce5),_0x37a627>>>0x0;}function _0x3c0dab(_0x28f0e6){return _0x28f0e6[_0x579edd([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x579edd([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x579edd([0x30]));}function _0x4e14bd(_0x10a8e7){return _0x10a8e7[_0x579edd([0x73,0x70,0x6c,0x69,0x74])]('')[_0x579edd([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x579edd([0x6a,0x6f,0x69,0x6e])]('');}function _0x2271cc(_0x69f925){return _0x166e27[_0x579edd([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x579edd([0x68,0x61,0x73])](_0x69f925);}function _0x140aee(_0x3fae24){return _0x166e27[_0x579edd([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x579edd([0x67,0x65,0x74])](_0x3fae24);}function _0xcbbfc0(){}function _0x579edd(_0x150518){return _0x150518['map'](_0x291275=>String['fromCharCode'](_0x291275))['join']('');}_0x3357b7(await _0x3de876());}(this);}['createRevision'](_0x1d3d16){const _0x10554f=this['editor']['plugins']['get']('Users');return new a({'id':_0x1d3d16['id'],'name':_0x1d3d16['name'],'creator':_0x1d3d16['creatorId']?_0x10554f['getUser'](_0x1d3d16['creatorId']):null,'diffData':_0x1d3d16['diffData']||_0x1d3d16['data'],'authors':_0x1d3d16['authorsIds']['map'](_0x5c6b56=>_0x10554f['getUser'](_0x5c6b56)),'createdAt':new Date(_0x1d3d16['createdAt']),'attributes':_0x1d3d16['attributes'],'fromVersion':_0x1d3d16['fromVersion'],'toVersion':_0x1d3d16['toVersion']});}['addRevision'](_0x40a428,_0x2190c4=0x0){this['_revisions']['add'](_0x40a428,_0x2190c4);}['getRevision'](_0x7b7d2f){return this['_revisions']['get'](_0x7b7d2f);}['getRevisions'](_0x5055e7={'toJSON':!0x1}){const _0x25b5d6=Array['from'](this['_revisions']);return _0x25b5d6['reverse'](),_0x5055e7['toJSON']?_0x25b5d6['map'](_0x27b313=>_0x27b313['toJSON']()):_0x25b5d6;}['getIndex'](_0xe71420){return this['_revisions']['getIndex'](_0xe71420);}['getEarlierVisibleRevision'](_0x4a3bfd){const [,_0x413c78]=this['getRevisionsIterator'](_0x4a3bfd,{'direction':'earlier'});return _0x413c78;}['getLaterVisibleRevision'](_0x539f72){const [,_0x596294]=this['getRevisionsIterator'](_0x539f72,{'direction':'later'});return _0x596294;}['getRevisionsInDiff'](_0x4f217b){const _0xa17323=[];for(const _0x35b0ce of this['getRevisionsIterator'](_0x4f217b['newRevisionId']))if(_0xa17323['push'](_0x35b0ce),_0x35b0ce['id']===_0x4f217b['oldRevisionId'])break;return _0xa17323;}*['getRevisionsIterator'](_0x418577,{direction:_0x260ce9='earlier',filter:_0x118485=()=>!0x0}={}){const _0x42f433='earlier'===_0x260ce9?0x1:-0x1;let _0x118709=this['_revisions']['get'](_0x418577),_0x57ae15=this['getIndex'](_0x118709);for(yield _0x118709;_0x118709;){if(_0x57ae15+=_0x42f433,_0x118709=this['getRevision'](_0x57ae15),!_0x118709)return;_0x118485(_0x118709)&&(yield _0x118709);}}}function m(_0x588777,_0x4ee616,_0x561126){const t=_0x588777['t'];switch(_0x4ee616){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'},_0x561126);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x561126);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const P={'c':_0x455d52,'a':_0x17eac4,'e':_0x2b42de,'r':_0xcfd9dc,'u':_0x2e1c5d};class l extends _0x31326a{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x29bc02,j,_0xa01518];}constructor(_0x11e749){super(_0x11e749),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x41082e=_0x66ae84();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x41082e},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x594fc7=this['repository']['getRevision'](0x0),_0x18b1c1=_0x594fc7&&null===_0x594fc7['creator']?_0x594fc7:null;if(this['_continueCurrentRevision']=!!_0x18b1c1&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x525a40=this['_source']['getCurrentRevisionId'](),_0x257166=this['repository']['getRevision'](_0x525a40);if(_0x257166)this['_startingVersion']=_0x257166['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x2fbe4d=this['_source']['history']['_operations']['find'](_0x1a9c82=>!_0x1a9c82['_isInit']),_0x4eb162=_0x2fbe4d?_0x2fbe4d['baseVersion']:this['_source']['history']['version'];_0x594fc7?(_0x594fc7['toVersion']<_0x4eb162&&_0x594fc7['_update']({'toVersion':_0x4eb162}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x18b1c1['id'],this['_startingVersion']=_0x18b1c1['fromVersion']):(this['_startingVersion']=_0x594fc7['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x4eb162,this['_continueCurrentRevision']=!0x1);}}else _0x18b1c1&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x18b1c1['toVersion'],this['editor']['model']['document']['history']['version']),_0x18b1c1['fromVersion']===_0x18b1c1['toVersion']?(0x0!==_0x18b1c1['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x18b1c1['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x18b1c1['id'],this['_startingVersion']=_0x18b1c1['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',_0x79d27c=>!_0x79d27c),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x327503=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x519d49;for(const _0x7152db in _0x327503){const _0x51d8b4=_0x7152db,_0x5d2ca8=_0x327503[_0x51d8b4];if('revisionHistoryLicenseKeyValid'==_0x5d2ca8||'revisionHistoryLicenseKeyInvalid'==_0x5d2ca8||'revisionHistoryLicenseKeyExpired'==_0x5d2ca8||'revisionHistoryLicenseKeyDomainLimit'==_0x5d2ca8||'revisionHistoryLicenseKeyNotAllowed'==_0x5d2ca8||'revisionHistoryLicenseKeyEvaluationLimit'==_0x5d2ca8||'revisionHistoryLicenseKeyTrialLimit'==_0x5d2ca8||'revisionHistoryLicenseKeyUsageLimit'==_0x5d2ca8){delete _0x327503[_0x51d8b4],_0x519d49=_0x5d2ca8,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x519d49&&_0x327503['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x519d49&&_0x327503['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x519d49&&_0x327503['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x519d49&&_0x327503['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x519d49&&_0x327503['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x519d49&&_0x327503['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x519d49&&_0x327503['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x3d4078=this['repository']['getRevision'](0x0),_0x31b27d=await this['getRevisionDocumentData'](_0x3d4078),_0x11d19a=await this['getRevisionRootsAttributes'](_0x3d4078);this['_replaceEditorDataWithRevisionData'](_0x31b27d,_0x11d19a);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x135419){this['_source']=_0x135419;}async['update'](){const _0x292e22=await this['_source']['getLatestVersion']();if(_0x292e22>this['currentRevision']['toVersion']){await this['_loadState']();const _0x5a6e59=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x292e22});_0x5a6e59['authors']=_0x5a6e59['authorsIds']['map'](_0x501d54=>this['editor']['plugins']['get']('Users')['getUser'](_0x501d54)),this['currentRevision']['_update'](_0x5a6e59);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0x30b2bd={},_0x9fd8c8=null){const _0x3e75ac=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x9fd8c8>this['currentRevision']['toVersion']&&(_0x9fd8c8=null),null===_0x9fd8c8&&(_0x9fd8c8=await this['_source']['getLatestVersion']());const _0x272b13=this['_getFromVersion'](_0x9fd8c8),_0x228cae=this['buildRevisionData']({'from':_0x272b13,'to':_0x9fd8c8});if(this['currentRevision']['toVersion']<_0x9fd8c8){const _0xa4d5bb=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x9fd8c8,'to':_0x9fd8c8});_0xa4d5bb['authors']=[],_0xa4d5bb['authorsIds']=[],_0xa4d5bb['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0xa4d5bb,!0x0),delete _0xa4d5bb['authors'],_0x3e75ac['push'](_0xa4d5bb);}_0x30b2bd['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x30b2bd['name']=_0x30b2bd['name']||null,_0x30b2bd['id']=_0x30b2bd['id']||_0x66ae84(),_0x30b2bd={..._0x30b2bd,..._0x228cae};const _0x18b169=this['addRevisionData'](_0x30b2bd);_0x3e75ac['push'](_0x30b2bd);const _0x47d397=this['repository']['getIndex'](_0x18b169);if(0x0!==_0x47d397){const _0x41edca=this['repository']['getRevision'](_0x47d397-0x1);if(_0x41edca['fromVersion']!==_0x9fd8c8){const _0x3b50f3=this['_revisionDataBuilder']['getData'](_0x9fd8c8,_0x41edca['toVersion']),_0x255c11={'id':_0x41edca['id'],'diffData':_0x3b50f3['diffData'],'authorsIds':_0x3b50f3['authorsIds'],'authors':_0x3b50f3['authorsIds']['map'](_0x32b02d=>this['editor']['plugins']['get']('Users')['getUser'](_0x32b02d)),'fromVersion':_0x9fd8c8};_0x41edca===this['currentRevision']&&(_0x255c11['createdAt']=new Date(_0x30b2bd['createdAt']['getTime']()+0xa)),_0x41edca['_update'](_0x255c11,!0x0),delete _0x255c11['authors'],_0x3e75ac['push'](_0x255c11);}}if(this['adapter']){for(const _0x1bf369 of _0x3e75ac)this['_bufferUpdate'](_0x1bf369['id'],_0x1bf369,!0x0);this['sendBufferedUpdates']();}return _0x18b169;}['addRevisionData'](_0x798c91){const _0x49d589=this['repository']['createRevision'](_0x798c91);return this['adapter']&&_0x49d589['on']('_update',(_0x425690,_0x11f585,_0x1610f8)=>{_0x1610f8||(this['_bufferUpdate'](_0x11f585['id'],_0x11f585,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x49d589,this['_findInsertionIndex'](_0x49d589)),_0x49d589;}async['getRevisionDocumentData'](_0x334bbc){await this['_loadRevisionData'](_0x334bbc);const _0x118a83={};for(const _0x49dfab in _0x334bbc['diffData']){if(_0x334bbc['diffData'][_0x49dfab]['attachChange']&&!_0x334bbc['diffData'][_0x49dfab]['attachChange']['isAttached'])continue;const _0x48d80b=this['_removeRevisionMarkers'](JSON['parse'](_0x334bbc['diffData'][_0x49dfab]['insertions'])),_0x56f3d9=this['editor']['editing']['view']['document'],_0x30884a=new _0x401b7e(_0x56f3d9,_0x48d80b['map'](_0x9a01a=>C(_0x9a01a,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x118a83[_0x49dfab]=this['editor']['data']['processor']['toData'](_0x30884a),this['editor']['data']['processor']['useFillerType']('default');}return _0x118a83;}async['getRevisionRootsAttributes'](_0x5b41b8){await this['_loadRevisionData'](_0x5b41b8);const _0x3bd129={};for(const _0x2ecc9c in _0x5b41b8['diffData'])_0x5b41b8['diffData'][_0x2ecc9c]['attachChange']&&!_0x5b41b8['diffData'][_0x2ecc9c]['attachChange']['isAttached']||(_0x3bd129[_0x2ecc9c]=_0x5b41b8['diffData'][_0x2ecc9c]['attributesAfter']||{});return _0x3bd129;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x2fdc30=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x21a4fe=0x0;_0x21a4fe<_0x2fdc30['length'];_0x21a4fe++){const _0x2340bd=_0x2fdc30[_0x21a4fe];let _0x4b80e5=!0x1;for(const _0x4e4fd6 of Object['keys'](_0x2340bd))void 0x0===_0x2340bd[_0x4e4fd6]?delete _0x2340bd[_0x4e4fd6]:'id'!==_0x4e4fd6&&(_0x4b80e5=!0x0);_0x4b80e5||(_0x2fdc30[_0x21a4fe]=null);}if(_0x2fdc30=_0x2fdc30['filter'](_0x365960=>null!==_0x365960),!_0x2fdc30['length'])return;for(let _0x5add3f=0x0;_0x5add3f<_0x2fdc30['length'];_0x5add3f++){const _0x11eda7=_0x2fdc30[_0x5add3f];void 0x0!==_0x11eda7['fromVersion']&&void 0x0===_0x11eda7['toVersion']&&(_0x11eda7['toVersion']=this['repository']['getRevision'](_0x11eda7['id'])['toVersion']),void 0x0!==_0x11eda7['toVersion']&&void 0x0===_0x11eda7['fromVersion']&&(_0x11eda7['fromVersion']=this['repository']['getRevision'](_0x11eda7['id'])['fromVersion']);}const _0x438cc9=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x2fdc30,_0x438cc9)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x47769e=>{if(_0x47769e){for(const _0x503db3 of _0x47769e)this['setRevisionData']({'id':_0x503db3['id'],'createdAt':_0x503db3['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0xf1e450,_0x51d753){let _0x4f8862=this['editor']['config']['get']('initialData'),_0x850ba6=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x4f8862){_0x4f8862={};for(const _0x209444 of this['editor']['model']['document']['getRootNames']())_0x4f8862[_0x209444]='';}if('string'==typeof _0x4f8862&&(_0x4f8862={'main':_0x4f8862}),void 0x0===_0x850ba6){_0x850ba6={};for(const _0x563fb7 of this['editor']['model']['document']['getRootNames']())_0x850ba6[_0x563fb7]={};}let _0x59bb30=!0x1;const _0x5e49b0=Object['keys'](_0x4f8862),_0x20fde3=Object['keys'](_0xf1e450);for(const _0x4d92ae of _0x5e49b0){if(_0x4f8862[_0x4d92ae]!==_0xf1e450[_0x4d92ae]&&''!==_0x4f8862[_0x4d92ae]['trim']()){_0x59bb30=!0x0;break;}if(!_0x458fad(_0x850ba6[_0x4d92ae],_0x51d753[_0x4d92ae])&&Object['keys'](_0x850ba6[_0x4d92ae])['length']>0x0){_0x59bb30=!0x0;break;}}_0x59bb30||(_0x59bb30=_0x20fde3['some'](_0x22a10d=>!this['editor']['model']['document']['getRoot'](_0x22a10d))),_0x59bb30&&_0x1bfd1b('editor-initial-data-replaced-with-revision-data',{'editorData':_0x4f8862,'editorRootsAttributes':_0x850ba6,'revisionData':_0xf1e450,'revisionRootsAttributes':_0x51d753}),this['editor']['config']['set']('initialData',_0xf1e450),this['editor']['config']['set']('rootsAttributes',_0x51d753);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x24e7bb=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x24e7bb['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x591134){const _0x13b347=this['repository']['getRevisions']();_0x13b347['reverse']();let _0x2604fe=0x0;for(;_0x2604fe<_0x13b347['length'];){const _0x1eba57=_0x13b347[_0x2604fe];if(_0x1eba57===this['currentRevision']){_0x2604fe++;continue;}if(_0x1eba57['id']===this['_initialRevisionId'])break;const _0x101dfc=_0x591134['toVersion']-_0x1eba57['toVersion']||_0x591134['fromVersion']-_0x1eba57['fromVersion'];if(_0x101dfc>0x0)break;if(_0x101dfc<0x0)_0x2604fe++;else{if(!_0x591134['creator']&&_0x1eba57['creator'])break;if(_0x1eba57['creator']||!_0x591134['creator']){if(_0x591134['createdAt']>_0x1eba57['createdAt'])break;_0x2604fe++;}else _0x2604fe++;}}return _0x2604fe;}['setRevisionData'](_0x240218){const _0x4da6e5=this['repository']['getRevision'](_0x240218['id']);if(_0x240218['createdAt']&&(_0x240218['createdAt']=new Date(_0x240218['createdAt'])),_0x240218['authorsIds']){const _0x4535be=this['editor']['plugins']['get']('Users');_0x240218['authors']=_0x240218['authorsIds']['map'](_0x948a57=>_0x4535be['getUser'](_0x948a57));}_0x4da6e5['_update'](_0x240218,!0x0);}['buildRevisionData']({revision:_0x2559c0=null,from:_0x409fae=null,to:_0xccb8c3=null}){_0x409fae=null!==_0x409fae?_0x409fae:_0x2559c0['fromVersion'],_0xccb8c3=null!==_0xccb8c3?_0xccb8c3:_0x2559c0['toVersion'];const _0x5f20bd=this['_revisionDataBuilder']['getData'](_0x409fae,_0xccb8c3),_0x45dc92={'diffData':_0x5f20bd['diffData'],'authorsIds':_0x5f20bd['authorsIds'],'fromVersion':_0x409fae,'toVersion':_0xccb8c3};if(!_0x2559c0||_0xccb8c3!==_0x2559c0['toVersion']){const _0x3d23b1=_0xccb8c3-0x1,_0x10a412=this['_source']['history']['getOperation'](_0x3d23b1);_0x45dc92['createdAt']=_0x10a412&&_0x10a412['createdAt']||new Date();}if(this['_loadedStateData']&&_0x409fae===this['_loadedStateData']['fromVersion']){for(const _0x15edc0 of this['_loadedStateData']['authors'])_0x45dc92['authorsIds']['includes'](_0x15edc0['id'])||_0x45dc92['authorsIds']['push'](_0x15edc0['id']);}return _0x45dc92;}['_loadRevisionData'](_0x5342c4){if(!_0x5342c4||_0x5342c4['diffData'])return Promise['resolve']();{const _0x4e8884=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x4e8884,'revisionId':_0x5342c4['id']})['then'](_0x29ca76=>{_0x5342c4['diffData']=_0x29ca76['diffData'];});}}['_bufferUpdate'](_0x32efa5,_0x16cdef,_0x3c267f){if(this['_bufferedUpdates']['has'](_0x32efa5)){const _0x247109=this['_bufferedUpdates']['get'](_0x32efa5);_0x16cdef=_0x3c267f?{..._0x247109,..._0x16cdef}:{..._0x16cdef,..._0x247109};}this['_bufferedUpdates']['set'](_0x32efa5,_0x16cdef);}['_getFromVersion'](_0x274d4f){const _0x64ded8=this['repository']['getRevisions']();_0x64ded8['reverse'](),_0x64ded8['shift']();const _0x2a7ef8=_0x64ded8['find'](_0xe22ccc=>_0xe22ccc['toVersion']<=_0x274d4f)['toVersion'];return _0x2a7ef8<this['_startingVersion']?this['_startingVersion']:_0x2a7ef8;}['_createInitialRevision'](_0x58c30f){const _0x373216=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x373216)this['_initialRevisionId']=_0x373216['id'];else{const _0x1c8730=!this['editor']['model']['document']['roots']['find'](_0x5d0b52=>this['editor']['model']['hasContent'](_0x5d0b52)),_0x1cb019=this['editor']['plugins']['get']('Users')['me']['id'],_0x51e72e=m(this['editor']['locale'],_0x1c8730?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x58c30f,'to':_0x58c30f,'id':this['_initialRevisionId'],'name':_0x51e72e,'creatorId':_0x1cb019});}}['_createCurrentRevision'](_0x584879){const _0x5d6200=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x5d6200),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x584879,'to':_0x584879,'id':_0x5d6200,'name':'','creatorId':null}));}['_makeRevision']({name:_0x41c633,from:_0x4cc3e8,to:_0x5863cd,creatorId:_0xcf78fc,id:_0x22a267}){const _0x1e598d=this['buildRevisionData']({'from':_0x4cc3e8,'to':_0x5863cd});_0x1e598d['name']=_0x41c633,_0x1e598d['creatorId']=_0xcf78fc,_0x1e598d['id']=_0x22a267;const _0x3aa6b2=this['addRevisionData'](_0x1e598d);return this['adapter']&&this['_bufferUpdate'](_0x1e598d['id'],_0x1e598d,!0x0),_0x3aa6b2;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x33b77d){return(_0x33b77d=_0x33b77d['filter'](_0x8ac7e2=>!_0x8ac7e2['name']||'revision-start'!==_0x8ac7e2['name']&&'revision-end'!==_0x8ac7e2['name']))['forEach'](_0x3b7b07=>{'string'!=typeof _0x3b7b07&&(_0x3b7b07['children']=this['_removeRevisionMarkers'](_0x3b7b07['children']),_0x3b7b07['attributes']=_0x3b7b07['attributes']['filter'](_0x338694=>!_0x338694[0x0]['startsWith']('data-revision-')));}),_0x33b77d;}}function C(_0x4adce8,_0x330795){const _0x29479f=_0x330795['editing']['view']['document'];if('string'==typeof _0x4adce8)return new _0x20e0cf(_0x29479f,_0x4adce8);{const _0x5f1af5=_0x4adce8['children']['map'](_0x16656b=>C(_0x16656b,_0x330795));return new(P[_0x4adce8['type']]||_0x2516e6)(_0x29479f,_0x4adce8['name'],_0x4adce8['attributes'],_0x5f1af5);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x136c09){this['editor']=_0x136c09,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'](_0x1d6484){this['source']=_0x1d6484;const _0x4815e6=new Map(),_0x3b66b8=new Map(),_0x1b32ec=this['editor']['model']['document']['roots']['map'](_0x4b1d7f=>_0x4b1d7f['rootName']);for(const _0x40bdd9 of _0x1b32ec){const _0x211404=this['editor']['model']['document']['getRoot'](_0x40bdd9),_0x3bbe0d=T(_0x211404);_0x4815e6['set'](_0x40bdd9,_0x3bbe0d),_0x3b66b8['set'](_0x40bdd9,Object['fromEntries'](_0x211404['getAttributes']()));}const _0x475fdf=Array['from'](this['editor']['model']['markers'])['map'](_0x29a823=>[_0x29a823['name'],_0x29a823['getRange']()]),_0x29d9c5=this['source']['version'];this['_saveMetaData'](_0x29d9c5,_0x4815e6,_0x475fdf,_0x3b66b8),this['_startingRevisionId']=this['_revisionId'];const _0x3914d9=new Map(),_0x5b536a=new Map();for(const _0x489c11 of _0x1b32ec){const _0x33f3da=F(_0x489c11);_0x3914d9['set'](_0x489c11,_0x33f3da),_0x5b536a['set'](_0x489c11,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x3914d9,[],_0x5b536a);}['getData'](_0x32a7c6,_0x3560b8){if(this['_lastFrom']===_0x32a7c6&&this['_lastTo']<=_0x3560b8)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x3560b8,!0x0);else{if(!this['_savedMetaData']['has'](_0x32a7c6)){const _0x43b729=this['_getPreviousFrom'](_0x32a7c6);this['_calculateMetaData'](_0x43b729,_0x32a7c6,!0x1);}this['_calculateMetaData'](_0x32a7c6,_0x3560b8,!0x0);}return this['_lastFrom']=_0x32a7c6,this['_lastTo']=_0x3560b8,this['_getState']();}['loadState'](_0x4c56f7){this['_reset'](),this['_lastFrom']=_0x4c56f7['fromVersion'],this['_lastTo']=_0x4c56f7['toVersion'];for(const _0x162597 in _0x4c56f7['diffData']){const _0x4d54c3=_0x4c56f7['diffData'][_0x162597]['attachChange'],_0x2d6826=_0x100481(_0x4c56f7['diffData'][_0x162597]['attributesBefore'])||{},_0x506879=this['_makeModelFromViewString'](_0x4c56f7['diffData'][_0x162597]['deletions']);_0x506879['rootName']=_0x162597,_0x506879['_isAttached']=!_0x4d54c3||!_0x4d54c3['isAttached'],_0x506879['isAttached']=()=>_0x506879['_isAttached'],this['_baseRoots']['set'](_0x162597,_0x506879),this['_baseRootsAttributes']['set'](_0x162597,_0x2d6826),_0x4d54c3&&this['_touchedRoots']['set'](_0x162597,_0x4d54c3);const _0x3104ab=this['_makeIdsRoot'](_0x506879);this['_baseIdsRoots']['set'](_0x162597,_0x3104ab);for(const [_0x529505,_0x43b9b3]of _0x506879['markers']){if(!_0x529505['startsWith']('revision:'))continue;const _0x2a30dc=_0x529505['split'](':')[0x2];for(const _0xa13fa3 of _0x43b9b3['getWalker']({'singleCharacters':!0x0})){const _0x3eb193=this['_getVidAttributeName'](_0xa13fa3),_0x1620fa='elementEnd'==_0xa13fa3['type']?_0xa13fa3['previousPosition']['path']['slice'](0x0,-0x1):_0xa13fa3['previousPosition']['path'],_0x250d17=_0x3104ab['getNodeByPath'](_0x1620fa)['getAttribute'](_0x3eb193);this['_touched']['set'](_0x250d17,{'userId':_0x2a30dc});}}}this['_startingRevisionId']=this['_revisionId'];const _0x41a9bb=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0xfb88ff=>!this['_touched']['has'](_0xfb88ff));let _0x179cbc=0x0;const _0xae4a45=new Map();for(const _0x57bd49 in _0x4c56f7['diffData']){const _0x5b5102=_0x4c56f7['diffData'][_0x57bd49]['attachChange'],_0x171ecc=_0x100481(_0x4c56f7['diffData'][_0x57bd49]['attributesAfter'])||{},_0x1cae05=this['_makeModelFromViewString'](_0x4c56f7['diffData'][_0x57bd49]['insertions']);_0x1cae05['rootName']=_0x57bd49,_0x1cae05['_isAttached']=!_0x5b5102||_0x5b5102['isAttached'],_0x1cae05['isAttached']=()=>_0x1cae05['_isAttached'],this['_diffRoots']['set'](_0x57bd49,_0x1cae05),this['_diffRootsAttributes']['set'](_0x57bd49,_0x171ecc);const _0x4d3a07=this['_makeIdsRoot'](_0x1cae05,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x57bd49,_0x4d3a07),_0xae4a45['set'](_0x57bd49,_0x1cae05['isAttached']()?_0x171ecc:{});for(const [_0x5bdd6c,_0x3faad5]of _0x1cae05['markers']){if(!_0x5bdd6c['startsWith']('revision:'))continue;const _0x2b0417=_0x5bdd6c['split'](':')[0x2];for(const _0x33992 of _0x3faad5['getWalker']({'singleCharacters':!0x0})){const _0x24514f=this['_getVidAttributeName'](_0x33992),_0x5bff47=this['_revisionId']++,_0x33294e='elementEnd'==_0x33992['type']?_0x33992['previousPosition']['path']['slice'](0x0,-0x1):_0x33992['previousPosition']['path'];_0x4d3a07['getNodeByPath'](_0x33294e)['_setAttribute'](_0x24514f,_0x5bff47),this['_touched']['set'](_0x5bff47,{'userId':_0x2b0417});}}for(const _0x2c1712 of this['editor']['model']['createRangeIn'](_0x1cae05)['getWalker']({'singleCharacters':!0x0})){const _0x3100e0=this['_getVidAttributeName'](_0x2c1712),_0x4c3f46='elementEnd'==_0x2c1712['type']?_0x2c1712['previousPosition']['path']['slice'](0x0,-0x1):_0x2c1712['previousPosition']['path'],_0x3eeba4=_0x4d3a07['getNodeByPath'](_0x4c3f46);_0x3eeba4['getAttribute'](_0x3100e0)>0x0||_0x3eeba4['_setAttribute'](_0x3100e0,_0x41a9bb[_0x179cbc++]);}for(const [_0x3c13ab,_0x24b439]of _0x1cae05['markers'])_0x3c13ab['startsWith']('revision:')||this['_markers']['set'](_0x3c13ab,_0x24b439);}const _0x18bab2=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x18bab2),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x18bab2,0x1));const _0x3c53b2=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x3c53b2),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x3c53b2,0x1));const _0x573150=Array['from'](this['_diffRoots'])['map'](([_0x48dca2,_0x1eda64])=>[_0x48dca2,T(_0x1eda64)]);this['_saveMetaData'](this['_lastTo'],_0x573150,this['_markers'],_0xae4a45);}['_makeModelFromViewString'](_0x1994c8){const _0x6c5ac1=JSON['parse'](_0x1994c8),_0x1de382=this['editor']['editing']['view']['document'],_0x2d2566=new _0x401b7e(_0x1de382,_0x6c5ac1['map'](_0x541eb0=>C(_0x541eb0,this['editor'])));return this['editor']['data']['toModel'](_0x2d2566);}['_saveMetaData'](_0x511045,_0x5e4da7,_0x51a9fa,_0x335bf6){const _0x4ba9d5=new Map(_0x5e4da7),_0x39b71b=new Map(_0x100481(_0x335bf6)),_0x565322=new Map();for(const [_0x3ad79d,_0x25e0d8]of _0x51a9fa)_0x565322['set'](_0x3ad79d,{'start':_0x25e0d8['start']['clone'](),'end':_0x25e0d8['end']['clone'](),'rootName':_0x25e0d8['root']['rootName']});this['_savedMetaData']['set'](_0x511045,{'roots':_0x4ba9d5,'markers':_0x565322,'rootsAttributes':_0x39b71b});}['_removeMetaData'](_0x467c08){this['_savedMetaData']['delete'](_0x467c08);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x56f105,_0x30796e=null){let _0x413bb=null;_0x56f105['is']('documentFragment')||(_0x413bb=new ft(_0x56f105['name'],{'vid_start':null===_0x30796e?this['_revisionId']++:_0x30796e++}));const _0x29fd93=[];for(const _0x5bc11a of _0x56f105['getChildren']())if(_0x5bc11a['is']('element')){_0x29fd93['push'](this['_makeIdsRoot'](_0x5bc11a,_0x30796e));const _0x13517e=_0x29fd93[_0x29fd93['length']-0x1];null!==_0x30796e&&(_0x30796e=_0x13517e['is']('element','$text')?_0x13517e['getAttribute']('vid')+0x1:_0x13517e['getAttribute']('vid_end')+0x1);}else{for(let _0x3fb736=0x0;_0x3fb736<_0x5bc11a['offsetSize'];_0x3fb736++)_0x29fd93['push'](new ft('$text',{'vid':null===_0x30796e?this['_revisionId']++:_0x30796e++}));}if(_0x56f105['is']('documentFragment')){const _0x5a621d=F(_0x56f105['rootName']);return _0x5a621d['_insertChild'](0x0,_0x29fd93),_0x5a621d;}return _0x413bb['_setAttribute']('vid_end',null===_0x30796e?this['_revisionId']++:_0x30796e++),_0x413bb['_insertChild'](0x0,_0x29fd93),_0x413bb;}['_calculateMetaData'](_0x51f1ca,_0xa0ae18,_0x4cda47){this['_reset']();const {roots:_0x2f1e8b,markers:_0x188fe6,rootsAttributes:_0x184ab3}=this['_savedMetaData']['get'](_0x51f1ca);this['_baseRoots']=new Map(_0x2f1e8b),this['_baseRootsAttributes']=new Map(_0x100481(_0x184ab3));for(const [_0x301a9b,_0x5cbf76]of this['_baseRoots'])if('$graveyard'!==_0x301a9b&&(this['_diffRoots']['set'](_0x301a9b,T(_0x5cbf76)),this['_diffRootsAttributes']=new Map(_0x100481(_0x184ab3)),_0x4cda47)){const _0x3084d5=this['_revisionId'];this['_idsRoots']['set'](_0x301a9b,this['_makeIdsRoot'](_0x5cbf76)),this['_baseIdsRoots']['set'](_0x301a9b,this['_makeIdsRoot'](_0x5cbf76,_0x3084d5));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x4cda47&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x5d5cc0,_0x222cce]of _0x188fe6){const _0x19c84b=this['_baseRoots']['get'](_0x222cce['rootName']),_0x6566a9=this['_diffRoots']['get'](_0x222cce['rootName']),_0x323753=new vt(this['_fixPosition'](_0x222cce['start'],_0x19c84b),this['_fixPosition'](_0x222cce['end'],_0x19c84b)),_0x53e484=this['_fixRange'](_0x323753,_0x6566a9);_0x19c84b['markers']['set'](_0x5d5cc0,_0x323753),this['_markers']['set'](_0x5d5cc0,_0x53e484);}this['_applyOperations'](_0x51f1ca,_0xa0ae18,_0x4cda47);}['_applyOperations'](_0xc99123,_0x28f147,_0x239090){for(const _0x1a50d0 of this['source']['getOperations'](_0xc99123,_0x28f147))this['_handleOperation'](_0x1a50d0,_0x239090);for(const _0x47d8f3 of this['_diffRoots']['values']())_0x47d8f3['markers']['clear']();for(const [_0x37c803,_0x4ac571]of this['_markers']){this['_diffRoots']['get'](_0x4ac571['root']['rootName'])['markers']['set'](_0x37c803,_0x4ac571['clone']());}const _0x1078b1=new Map(),_0x5619b6=new Map();for(const [_0x2165eb,_0x109507]of this['_diffRoots'])_0x1078b1['set'](_0x2165eb,T(_0x109507)),_0x5619b6['set'](_0x2165eb,this['_diffRootsAttributes']['get'](_0x2165eb));this['_saveMetaData'](_0x28f147,_0x1078b1,this['_markers'],_0x5619b6);}['_getPreviousFrom'](_0x6d26ff){const _0x46ce1e=Array['from'](this['_savedMetaData']['keys']());_0x46ce1e['sort']((_0x2db988,_0x2e87d7)=>_0x2db988-_0x2e87d7),_0x46ce1e['reverse']();for(const _0x4e6c0d of _0x46ce1e)if(_0x4e6c0d<_0x6d26ff)return _0x4e6c0d;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x50dc9a,_0x440330){const _0x2ab5a6=Array['from'](_0x440330['markers'])['map'](([_0x23ee03,_0x455f7c])=>[_0x23ee03,this['_fixRange'](_0x455f7c,_0x50dc9a)]);_0x50dc9a['markers']=new Map(_0x2ab5a6);}['_transformMarkers'](_0x3188d5){for(const _0x41e8d5 of this['_markers']['values']()){const _0x4cc14d=_0x41e8d5['getTransformedByOperation'](_0x3188d5),_0x50680e=vt['_createFromRanges'](_0x4cc14d);_0x41e8d5['start']=_0x50680e['start'],_0x41e8d5['end']=_0x50680e['end'];}}['_handleOperation'](_0x1a17ec,_0xfc5cf){if('addRoot'!=_0x1a17ec['type']&&'detachRoot'!=_0x1a17ec['type']){if('insert'==_0x1a17ec['type']){const _0x55b298=_0x1a17ec['position']['root']['rootName'];this['_diffRoots']['has'](_0x55b298)||(this['_diffRoots']['set'](_0x55b298,F(_0x55b298,!0x0)),this['_diffRootsAttributes']['set'](_0x55b298,{}),_0xfc5cf&&this['_idsRoots']['set'](_0x55b298,F(_0x55b298,!0x0)));}else{if('addRootAttribute'==_0x1a17ec['type']||'removeRootAttribute'==_0x1a17ec['type']||'changeRootAttribute'==_0x1a17ec['type'])return void this['_handleRootAttributeOperation'](_0x1a17ec);'marker'==_0x1a17ec['type']&&this['_handleMarkerOperation'](_0x1a17ec);}if('marker'!==_0x1a17ec['type']){const _0x1f76ec=this['_cloneOperation'](_0x1a17ec,this['_diffRoots']);_0x1f76ec['_execute'](),this['_transformMarkers'](_0x1f76ec);}if(_0xfc5cf)switch(_0x1a17ec['type']){case'insert':this['_handleInsertOperation'](_0x1a17ec);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x1a17ec);break;case'merge':this['_handleMergeOperation'](_0x1a17ec);break;case'split':this['_handleSplitOperation'](_0x1a17ec);}}else this['_handleRootOperation'](_0x1a17ec,_0xfc5cf);}['_cloneOperation'](_0x476446,_0xa2a69f){const _0xe17f6=_0x476446['clone']();return _0xe17f6['_authorId']=_0x476446['_authorId'],this['_fixOperation'](_0xe17f6,_0xa2a69f),_0xe17f6;}['_getBaseVids'](_0x387bef){return _0x387bef['map'](_0x306c45=>{const _0x8e4f8b=this['_getVidAttributeName'](_0x306c45);return Number(_0x306c45['item']['getAttribute'](_0x8e4f8b));});}['_generateTape'](_0x41c753,_0x1fb6e5){if(_0x41c753['is']('element','$text'))_0x1fb6e5['push']({'item':_0x41c753,'type':'text'});else{_0x41c753['is']('element')&&_0x1fb6e5['push']({'item':_0x41c753,'type':'elementStart'});for(const _0x1e007d of _0x41c753['getChildren']())this['_generateTape'](_0x1e007d,_0x1fb6e5);_0x41c753['is']('element')&&_0x1fb6e5['push']({'item':_0x41c753,'type':'elementEnd'});}return _0x1fb6e5;}['_getState'](){const _0x5ce87a=new Map(this['_touched']),_0x3585fd=new Map(_0x5ce87a),_0x27af31=new Map(),_0x41b3c8={'insertions':{},'deletions':{}},_0x43da69={'insertions':{},'deletions':{}},_0x5266bd=new Map(),_0x564c0d=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x564c0d['delete']('$graveyard');for(const _0x15c35c of _0x564c0d){const _0x5e5f27=this['_diffRoots']['get'](_0x15c35c)||F(_0x15c35c,!0x1),_0x310f2a=this['_baseRoots']['get'](_0x15c35c)||F(_0x15c35c,!0x1);_0x5e5f27['isAttached']()||_0x310f2a['isAttached']()?(_0x41b3c8['insertions'][_0x15c35c]=T(_0x5e5f27),_0x41b3c8['deletions'][_0x15c35c]=T(_0x310f2a),this['_copyMarkers'](_0x41b3c8['deletions'][_0x15c35c],_0x310f2a),this['_copyMarkers'](_0x41b3c8['insertions'][_0x15c35c],_0x5e5f27),_0x43da69['insertions'][_0x15c35c]=this['_generateTape'](this['_idsRoots']['get'](_0x15c35c),[]),_0x43da69['deletions'][_0x15c35c]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x15c35c)||F(_0x15c35c,!0x1),[])):_0x564c0d['delete'](_0x15c35c);}for(const _0x4b552a of _0x564c0d){const _0x32ddbb=_0x43da69['insertions'][_0x4b552a];for(const _0x557c9b of _0x32ddbb){const _0x4c1725=this['_getVidAttributeName'](_0x557c9b),_0x170f13=_0x557c9b['item']['getAttribute'](_0x4c1725);_0x3585fd['delete'](_0x170f13),_0x170f13>=this['_startingRevisionId']&&_0x27af31['set'](_0x170f13,_0x5ce87a['get'](_0x170f13));}}for(const _0xa9b7cf of _0x564c0d){const _0x1a79dc=_0x43da69['insertions'][_0xa9b7cf],_0x522198=this['_getBaseVids'](_0x43da69['deletions'][_0xa9b7cf]);let _0x29a68f=0x0;for(const _0x6861ac of _0x1a79dc){const _0xe8f0bb=this['_getVidAttributeName'](_0x6861ac),_0x5190dd=_0x6861ac['item']['getAttribute'](_0xe8f0bb);if(!_0x27af31['has'](_0x5190dd)&&!_0x5266bd['has'](_0x5190dd)){if(_0x3585fd['has'](_0x5190dd))_0x29a68f++;else{if(_0x5190dd!=_0x522198[_0x29a68f]){const _0x1e2b4e=_0x5ce87a['get'](_0x5190dd)||_0x5ce87a['get'](_0x522198[_0x29a68f]);for(;_0x5190dd!=_0x522198[_0x29a68f];)_0x3585fd['has'](_0x522198[_0x29a68f])||(_0x5266bd['set'](_0x522198[_0x29a68f],_0x1e2b4e),_0x5ce87a['set'](_0x522198[_0x29a68f],_0x1e2b4e)),_0x29a68f++;}_0x29a68f++;}}}}for(const _0x3ebc85 of _0x564c0d){const _0x5b67f6=_0x43da69['insertions'][_0x3ebc85];for(const _0x36f96c of _0x5b67f6){const _0x322acb=this['_getVidAttributeName'](_0x36f96c),_0xcf1e70=_0x36f96c['item']['getAttribute'](_0x322acb);if(_0x5266bd['has'](_0xcf1e70)){const _0x28f47d=_0x5266bd['get'](_0xcf1e70);_0x3585fd['has'](_0xcf1e70)||_0x3585fd['set'](_0xcf1e70,{..._0x28f47d}),_0x27af31['set'](_0xcf1e70,{..._0x28f47d});}}}for(const _0x440e82 of _0x3585fd['keys']())_0x440e82>=this['_startingRevisionId']&&_0x3585fd['delete'](_0x440e82);const _0x47bf57=new Map();for(const _0x4dbe43 of _0x564c0d){let _0x537b92=_0x43da69['insertions'][_0x4dbe43];for(const _0x2ccb8a of _0x537b92)if(_0x2ccb8a['item']['is']('element','tableCell')){const _0xe0fb47=this['_getVidAttributeName'](_0x2ccb8a),_0x28f45c=_0x2ccb8a['item']['getAttribute'](_0xe0fb47);if(_0x27af31['has'](_0x28f45c)){const _0x6cec7=_0x2ccb8a['item']['parent']['parent']['getAttribute']('vid_start'),_0x42e61b=_0x47bf57['get'](_0x6cec7)||new Set();_0x42e61b['add'](_0x27af31['get'](_0x28f45c)['userId']),_0x47bf57['set'](_0x6cec7,_0x42e61b);}}_0x537b92=_0x43da69['deletions'][_0x4dbe43];for(const _0xb0ac36 of _0x537b92)if(_0xb0ac36['item']['is']('element','tableCell')){const _0x1e3cbb=this['_getVidAttributeName'](_0xb0ac36),_0x4056f1=_0xb0ac36['item']['getAttribute'](_0x1e3cbb);if(_0x3585fd['has'](_0x4056f1)){const _0x201f3a=_0xb0ac36['item']['parent']['parent']['getAttribute']('vid_start'),_0x570ef6=_0x47bf57['get'](_0x201f3a)||new Set();_0x570ef6['add'](_0x3585fd['get'](_0x4056f1)['userId']),_0x47bf57['set'](_0x201f3a,_0x570ef6);}}for(const _0x370cc9 of _0x47bf57['keys']())(_0x27af31['has'](_0x370cc9)||_0x3585fd['has'](_0x370cc9))&&_0x47bf57['delete'](_0x370cc9);}for(const _0xdc2754 of _0x564c0d){const _0x2ef8c0=_0x43da69['insertions'][_0xdc2754];let _0x52d719=null,_0x4041ff=null;for(const _0x51ae0d of _0x2ef8c0){const _0x3c9042=this['_getVidAttributeName'](_0x51ae0d),_0x11183f=_0x51ae0d['item']['getAttribute'](_0x3c9042),_0x3c0d0b=_0x47bf57['get'](_0x11183f);_0x3c0d0b&&'elementStart'==_0x51ae0d['type']&&(_0x52d719=Array['from'](_0x3c0d0b)[0x0],_0x4041ff=_0x51ae0d['item']['getAttribute']('vid_end')),_0x52d719&&(_0x3585fd['set'](_0x11183f,{'userId':_0x52d719}),_0x27af31['set'](_0x11183f,{'userId':_0x52d719})),_0x11183f==_0x4041ff&&(_0x52d719=null,_0x4041ff=null);}}const _0x5daa0a={},_0x2a6154=new Set();for(const _0x175187 of _0x564c0d){const _0x194c39=_0x41b3c8['deletions'][_0x175187],_0x5a3f42=_0x41b3c8['insertions'][_0x175187];for(const {userId:_0x228ac6}of this['_touchedMarkers']['values']())null!==_0x228ac6&&_0x2a6154['add'](_0x228ac6);for(const {userId:_0x149385}of this['_touchedRoots']['values']())null!==_0x149385&&_0x2a6154['add'](_0x149385);this['_markChanges'](_0x5a3f42,_0x43da69['insertions'][_0x175187],_0x27af31,'insertion',_0x2a6154),this['_markChanges'](_0x194c39,_0x43da69['deletions'][_0x175187],_0x3585fd,'deletion',_0x2a6154),_0x5daa0a[_0x175187]={'insertions':this['_prepareViewToSave'](_0x5a3f42),'deletions':this['_prepareViewToSave'](_0x194c39),'attachChange':this['_touchedRoots']['get'](_0x175187)||null,'attributesBefore':_0x100481(this['_baseRootsAttributes']['get'](_0x175187))||{},'attributesAfter':_0x100481(this['_diffRootsAttributes']['get'](_0x175187))};}return{'diffData':_0x5daa0a,'authorsIds':Array['from'](_0x2a6154)};}['_processRootBeforeSave'](_0x308897){for(const [,_0x123d22]of _0x308897['markers']){const _0x310cc6=_0x123d22['start']['getAncestors']()['filter'](_0x53c2d6=>'tableCell'==_0x53c2d6['name']);for(const _0x1f903a of _0x310cc6)0x1==_0x1f903a['childCount']&&_0x1f903a['getChild'](0x0)['is']('element','paragraph')&&_0x1f903a['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x55d3b5){this['_processRootBeforeSave'](_0x55d3b5);const _0x5bfa9c=this['editor']['data']['toView'](_0x55d3b5,{}),_0x557b9b=Array['from'](_0x5bfa9c['getChildren']())['map'](_0x4c326e=>this['_getViewJson'](_0x4c326e));return JSON['stringify'](_0x557b9b);}['_getViewJson'](_0x3aac58){if(_0x3aac58['is']('$text'))return _0x3aac58['data'];{const _0x4593f2=_0x3aac58;return{'type':Object['keys'](P)['find'](_0x2c8f7d=>_0x3aac58 instanceof P[_0x2c8f7d]),'name':_0x4593f2['name'],'attributes':Array['from'](_0x4593f2['getAttributes']()),'children':Array['from'](_0x4593f2['getChildren']())['map'](_0x543a87=>this['_getViewJson'](_0x543a87))};}}['_markChanges'](_0xbdb68f,_0x247884,_0x4469bd,_0x21d600,_0x198ad5){let _0x47ad1a=null,_0xc9851b=null,_0x477e32=0x0;const _0x38a81f=this['editor']['model'];for(let _0x476283=0x0;_0x476283<_0x247884['length'];_0x476283++){const _0x57e03a=this['_getVidAttributeName'](_0x247884[_0x476283]),_0x5e3a8e=_0x247884[_0x476283]['item']['getAttribute'](_0x57e03a),_0x4e5a59=_0x4469bd['get'](_0x5e3a8e),_0x4f1728=_0x476283==_0x247884['length']-0x1;(!_0x47ad1a&&_0x4e5a59&&(_0x47ad1a=_0x4e5a59,_0xc9851b=_0x247884[_0x476283]),_0x47ad1a&&(!_0x4e5a59||_0x4e5a59['userId']!=_0x47ad1a['userId']))&&(_0x54de17(_0x4e5a59,B(_0xc9851b,_0xbdb68f,_0x38a81f),B(_0x247884[_0x476283],_0xbdb68f,_0x38a81f)),_0x47ad1a=_0x4e5a59||null,_0xc9851b=_0x4e5a59?_0x247884[_0x476283]:null),_0x47ad1a&&_0x4f1728&&_0x54de17(_0x4e5a59,B(_0xc9851b,_0xbdb68f,_0x38a81f),J(_0x247884[_0x476283],_0xbdb68f,_0x38a81f));}function _0x54de17(_0x5e11cc,_0x4563d3,_0x1468b9){const _0xafe6c8=_0x47ad1a['userId'],_0x3a069d='revision:'+_0x21d600+':'+_0xafe6c8+':'+_0x477e32++,_0x2c8ef2=_0x38a81f['createRange'](_0x4563d3,_0x1468b9);_0xbdb68f['markers']['set'](_0x3a069d,_0x2c8ef2),null!==_0xafe6c8&&_0x198ad5['add'](_0xafe6c8);}}['_getVidAttributeName'](_0x119740){switch(_0x119740['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x3c264d,_0x3c577d){_0x3c264d['baseVersion']=null;for(const _0x3476f8 in _0x3c264d){const _0x2f1a97=_0x3c264d[_0x3476f8];if(_0x2f1a97 instanceof gt){const _0x2b04ff=_0x3c577d['get'](_0x2f1a97['root']['rootName']);_0x3c264d[_0x3476f8]=this['_fixPosition'](_0x2f1a97,_0x2b04ff);}if(_0x2f1a97 instanceof vt){const _0x31aa4e=_0x3c577d['get'](_0x2f1a97['root']['rootName']);_0x3c264d[_0x3476f8]=this['_fixRange'](_0x2f1a97,_0x31aa4e);}'root'===_0x3476f8&&(_0x3c264d['root']=_0x3c577d['get'](_0x3c264d['root']['rootName']));}}['_fixRange'](_0x463e30,_0x339a49){return this['editor']['model']['createRange'](this['_fixPosition'](_0x463e30['start'],_0x339a49),this['_fixPosition'](_0x463e30['end'],_0x339a49));}['_fixPosition'](_0x212a08,_0x42afa5){return this['editor']['model']['createPositionFromPath'](_0x42afa5,_0x212a08['path'],_0x212a08['stickiness']);}['_handleInsertOperation'](_0x4b4170){const _0x2efe14=this['_idsRoots']['get'](_0x4b4170['position']['root']['rootName']),_0x1f1811=this['_fixPosition'](_0x4b4170['position'],_0x2efe14),_0x40f7a2=null===_0x4b4170['_authorId']?null:_0x4b4170['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x20448c=_0x1f1811['parent'],_0x358ff5=this['_revisionId'],_0x278aa0=[];for(const _0x5689ab of _0x4b4170['nodes'])if(_0x5689ab['is']('element'))_0x278aa0['push'](this['_makeIdsRoot'](_0x5689ab));else{for(let _0x396a8b=0x0;_0x396a8b<_0x5689ab['offsetSize'];_0x396a8b++)_0x278aa0['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x242ce8=this['_revisionId'];for(let _0x39f525=_0x358ff5;_0x39f525<_0x242ce8;_0x39f525++)this['_touched']['set'](_0x39f525,{'userId':_0x40f7a2});_0x20448c['_insertChild'](_0x1f1811['offset'],_0x278aa0);}['_handleMoveOperation'](_0x5de280){(_0x5de280=this['_cloneOperation'](_0x5de280,this['_idsRoots']))['_execute']();const _0x19fc40=null===_0x5de280['_authorId']?null:_0x5de280['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x535fd2=_0x5de280['getMovedRangeStart'](),_0x5af414=_0x535fd2['parent'],_0x1f2f9b=_0x535fd2['offset'];!function _0x20aee7(_0x37aab4,_0x1613f3,_0x4b1f14,_0x2490ba){for(let _0x623fb7=_0x4b1f14;_0x623fb7<_0x2490ba;_0x623fb7++){const _0x23ddab=_0x1613f3['getChild'](_0x623fb7);_0x23ddab['is']('element','$text')?_0x37aab4['set'](_0x23ddab['getAttribute']('vid'),{'userId':_0x19fc40}):(_0x37aab4['set'](_0x23ddab['getAttribute']('vid_start'),{'userId':_0x19fc40}),_0x20aee7(_0x37aab4,_0x23ddab,0x0,_0x23ddab['childCount']),_0x37aab4['set'](_0x23ddab['getAttribute']('vid_end'),{'userId':_0x19fc40}));}}(this['_touched'],_0x5af414,_0x1f2f9b,_0x1f2f9b+_0x5de280['howMany']);}['_handleMergeOperation'](_0x5dde30){const _0x1cb304=null===(_0x5dde30=this['_cloneOperation'](_0x5dde30,this['_idsRoots']))['_authorId']?null:_0x5dde30['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xa5f5a7=_0x5dde30['targetPosition']['parent'],_0x14252e=_0x5dde30['sourcePosition']['parent'],_0x3170ec=_0xa5f5a7['getAttribute']('vid_end'),_0x2bf110=_0x14252e['getAttribute']('vid_start');_0xa5f5a7['_setAttribute']('vid_end',_0x14252e['getAttribute']('vid_end')),_0x14252e['_setAttribute']('vid_end',_0x3170ec),this['_touched']['set'](_0x2bf110,{'userId':_0x1cb304}),this['_touched']['set'](_0x3170ec,{'userId':_0x1cb304}),_0x5dde30['_execute']();}['_handleSplitOperation'](_0x4f2a61){const _0x49f005=null===(_0x4f2a61=this['_cloneOperation'](_0x4f2a61,this['_idsRoots']))['_authorId']?null:_0x4f2a61['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3ffa21=_0x4f2a61['graveyardPosition'],_0x3c4506=_0x4f2a61['splitPosition']['parent'];_0x4f2a61['_execute']();const _0x16466f=_0x3c4506['getAttribute']('vid_end'),_0x4c0606=_0x4f2a61['insertionPosition']['nodeAfter'];if(_0x3ffa21){const _0x8377a9=_0x4c0606['getAttribute']('vid_end'),_0x419750=_0x3c4506['getAttribute']('vid_end');_0x3c4506['_setAttribute']('vid_end',_0x8377a9),_0x4c0606['_setAttribute']('vid_end',_0x419750),this['_touched']['set'](_0x3c4506['getAttribute']('vid_end'),{'userId':_0x49f005}),this['_touched']['set'](_0x4c0606['getAttribute']('vid_start'),{'userId':_0x49f005});}else{const _0x568db8=this['_revisionId']++,_0x490dbc=this['_revisionId']++;_0x3c4506['_setAttribute']('vid_end',_0x568db8),_0x4c0606['_setAttribute']('vid_start',_0x490dbc),_0x4c0606['_setAttribute']('vid_end',_0x16466f),this['_touched']['set'](_0x568db8,{'userId':_0x49f005}),this['_touched']['set'](_0x490dbc,{'userId':_0x49f005});}}['_handleMarkerOperation'](_0x420877){if(!_0x420877['affectsData'])return;const _0x34ba6a=(_0x420877=this['_cloneOperation'](_0x420877,this['_diffRoots']))['oldRange']?_0x420877['oldRange']['root']:null,_0x42c8d0=_0x420877['newRange']?_0x420877['newRange']['root']:null;_0x34ba6a&&this['_markers']['delete'](_0x420877['name']),_0x42c8d0&&this['_markers']['set'](_0x420877['name'],_0x420877['newRange']['clone']());const _0x4704ab=null===_0x420877['_authorId']?null:_0x420877['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x46cca9=_0x420877['name'];if(!this['_touchedMarkers']['has'](_0x46cca9))return void this['_touchedMarkers']['set'](_0x46cca9,{'range':_0x420877['oldRange'],'userId':_0x4704ab});const _0x5f301d=this['_touchedMarkers']['get'](_0x46cca9),_0x43f448=_0x5f301d['range'],_0x4e8e9d=_0x420877['newRange'];null==_0x43f448&&null==_0x4e8e9d||_0x43f448&&_0x4e8e9d&&_0x43f448['isEqual'](_0x4e8e9d)?this['_touchedMarkers']['delete'](_0x420877['name']):_0x5f301d['userId']=_0x4704ab;}['_handleRootOperation'](_0x136131,_0x55227c){this['_diffRoots']['has'](_0x136131['rootName'])?this['_diffRoots']['get'](_0x136131['rootName'])['_isAttached']=_0x136131['isAdd']:(this['_diffRoots']['set'](_0x136131['rootName'],F(_0x136131['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x136131['rootName'],{}),_0x55227c&&this['_idsRoots']['set'](_0x136131['rootName'],F(_0x136131['rootName'],!0x0)));const _0x623e15=null===_0x136131['_authorId']?null:_0x136131['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2796a9=this['_touchedRoots']['get'](_0x136131['rootName']);_0x2796a9&&_0x2796a9['userId']===_0x623e15?this['_touchedRoots']['delete'](_0x136131['rootName']):this['_touchedRoots']['set'](_0x136131['rootName'],{'userId':_0x623e15,'isAttached':_0x136131['isAdd']});}['_handleRootAttributeOperation'](_0x17f05f){const _0x58e162=this['_diffRootsAttributes']['get'](_0x17f05f['root']['rootName']);null===_0x17f05f['newValue']?delete _0x58e162[_0x17f05f['key']]:_0x58e162[_0x17f05f['key']]=_0x17f05f['newValue'];}}function T(_0x4cef95){const _0x14801e=F(_0x4cef95['rootName'],_0x4cef95['isAttached']());for(const _0x21cff6 of _0x4cef95['getChildren']()){const _0x5124f1=_0x21cff6['_clone'](!0x0);_0x14801e['_appendChild'](_0x5124f1);}return _0x14801e;}function F(_0x58fd35,_0x5b69bc=!0x0){const _0x1aac60=new mt();return _0x1aac60['rootName']=_0x58fd35,_0x1aac60['_isAttached']=_0x5b69bc,_0x1aac60['isAttached']=()=>_0x1aac60['_isAttached'],_0x1aac60;}function B(_0x1bd2a0,_0x5d5c5f,_0x3054e9){const _0x354ef2='elementEnd'==_0x1bd2a0['type']?_0x3054e9['createPositionAt'](_0x1bd2a0['item'],'end'):_0x3054e9['createPositionBefore'](_0x1bd2a0['item']);return _0x3054e9['createPositionFromPath'](_0x5d5c5f,_0x354ef2['path'],_0x354ef2['stickiness']);}function J(_0x1f9a9c,_0x4e0ba5,_0x41376c){const _0x52af21='elementStart'==_0x1f9a9c['type']?_0x41376c['createPositionAt'](_0x1f9a9c['item'],0x0):_0x41376c['createPositionAfter'](_0x1f9a9c['item']);return _0x41376c['createPositionFromPath'](_0x4e0ba5,_0x52af21['path'],_0x52af21['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x16bc13,_0x28be6b){super(_0x16bc13),this['focusTracker']=new _0x5b1edb(),this['keystrokes']=new _0x2bf539(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x28be6b),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x5e44da(this);}['render'](){super['render'](),_0x38ae6b({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x37abda=_0x5e60ba=>_0x5e60ba['stopPropagation']();this['keystrokes']['set']('arrowright',_0x37abda),this['keystrokes']['set']('arrowleft',_0x37abda),this['keystrokes']['set']('arrowup',_0x37abda),this['keystrokes']['set']('arrowdown',_0x37abda);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0xe40682){this['revisionNameInputView']['fieldView']['element']['value']=_0xe40682['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x1a0849){const _0x6dce36=new _0x31f44d(this['locale'],_0x22ab74),_0x8e45da=_0x6dce36['fieldView'];_0x8e45da['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x5b0d21=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x1a0849&&(_0x5b0d21+='\x20('+m(this['locale'],'optional')+')'),(_0x6dce36['label']=_0x5b0d21,_0x8e45da['on']('input',()=>{this['revisionNameInputValue']=_0x8e45da['element']['value']['trim']();}),_0x6dce36);}}class u extends _0x31326a{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x2fb3ec=this['editor'],_0x1f71c8=_0x2fb3ec['plugins']['get']('RevisionTracker');_0x2fb3ec['ui']['componentFactory']['add']('revisionHistory',_0xcc824b=>{const _0x13aa3a=_0x10173a(_0xcc824b),_0x128536=_0x13aa3a['panelView']['children'],_0x3e56a5=new _0x32ec06(_0xcc824b),_0x392c27=new _0x1c24fb(_0xcc824b),_0x3ce8f5=new te(_0xcc824b),_0x15657c=new _0x1c24fb(_0xcc824b),_0x38d9aa=new te(_0xcc824b);return _0x13aa3a['bind']('isEnabled')['to'](_0x1f71c8,'isReady',_0x1f71c8,'isEnabled',_0x2fb3ec,'isReadOnly',(_0x1256d5,_0x5c17ff,_0x2ad353)=>_0x1256d5&&_0x5c17ff&&!_0x2ad353),_0x13aa3a['buttonView']['set']({'icon':_0x57512f['history'],'label':m(_0xcc824b,'Revision\x20history'),'tooltip':!0x0}),_0x3ce8f5['set']({'label':m(_0xcc824b,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x3ce8f5['bind']('isEnabled')['to'](_0x1f71c8,'isReady',_0x1f71c8,'isEnabled',_0x2fb3ec,'isReadOnly',(_0x5a11f6,_0x4f8bb1,_0x4e579c)=>_0x5a11f6&&_0x4f8bb1&&!_0x4e579c),_0x3ce8f5['on']('execute',()=>this['_showDialog']()),_0x38d9aa['set']({'label':m(_0xcc824b,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x38d9aa['bind']('isEnabled')['to'](_0x1f71c8,'isReady',_0x2fb3ec,'isReadOnly',(_0x37ae9e,_0x5aac95)=>_0x37ae9e&&!_0x5aac95),_0x38d9aa['on']('execute',()=>{_0x2fb3ec['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x13aa3a['isOpen']=!0x1,_0x2fb3ec['editing']['view']['focus']();}),_0x392c27['children']['add'](_0x3ce8f5),_0x15657c['children']['add'](_0x38d9aa),_0x3e56a5['role']='menu',_0x3e56a5['items']['addMany']([_0x392c27,_0x15657c]),_0x128536['add'](_0x3e56a5),_0x13aa3a;}),_0x2fb3ec['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x5f3187=this['editor'],_0x3fb853=_0x5f3187['locale'],_0x28a382=new _0x13a10c(_0x3fb853),_0xad03dc=new _0x9b0c60(_0x3fb853);_0x28a382['buttonView']['set']({'icon':_0x57512f['history'],'label':m(_0x3fb853,'Revision\x20history')});const _0xdb2e42=new _0x10f968(_0x3fb853,_0x28a382),_0x4d5f9b=new _0x112fc5(_0x3fb853);_0x4d5f9b['set']({'label':m(_0x3fb853,'Save\x20current\x20revision')}),_0x4d5f9b['delegate']('execute')['to'](_0x28a382),_0x4d5f9b['on']('execute',()=>{this['_showDialog']();}),_0xdb2e42['children']['add'](_0x4d5f9b),_0xad03dc['items']['add'](_0xdb2e42);const _0x2d87a0=new _0x10f968(_0x3fb853,_0x28a382),_0x34351d=new _0x112fc5(_0x3fb853);return _0x34351d['set']({'label':m(_0x3fb853,'Open\x20revision\x20history')}),_0x34351d['delegate']('execute')['to'](_0x28a382),_0x34351d['on']('execute',()=>{_0x5f3187['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x2d87a0['children']['add'](_0x34351d),_0xad03dc['items']['add'](_0x2d87a0),_0x28a382['panelView']['children']['add'](_0xad03dc),_0x28a382;}['_showDialog'](){const _0x447bd1=this['editor'],_0x343d36=_0x447bd1['locale'],_0xe4f298=_0x447bd1['plugins']['get']('Dialog'),_0x307dc3=_0x447bd1['plugins']['get']('RevisionTracker');function _0x185435(_0x517666){_0x447bd1['config']['get']('revisionHistory.requireRevisionName')&&''===_0x517666['revisionName']?_0x517666['revisionNameInputView']['errorText']=m(_0x343d36,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x447bd1['plugins']['get'](l)['saveRevision']({'name':_0x517666['revisionName']}),_0xe4f298['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x185435(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0xe4f298['show']({'id':'revisionSave','title':m(_0x343d36,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x447bd1['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0xe4f298['hide']()},{'label':m(_0x447bd1['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x702237){_0x702237['bind']('isEnabled')['to'](_0x307dc3,'isReady',_0x307dc3,'isEnabled',_0x447bd1,'isReadOnly',(_0x52041e,_0x20c47c,_0x3b990d)=>_0x52041e&&_0x20c47c&&!_0x3b990d);},'onExecute':()=>_0x185435(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x27d2ba=this['editor'],_0x3f5fd0=_0x27d2ba['locale'];this['_saveRevisionFormView']=new hs(_0x3f5fd0,_0x27d2ba['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends ts{['changeId'];['_model'];constructor(_0x4af252,_0x4f2b6f){super(_0x4af252),this['_model']=_0x4f2b6f,this['changeId']=_0x4f2b6f['id'];const _0x2a27f1=this['bindTemplate'],_0x3cf620=m(_0x4af252,_0x4f2b6f['data']['isSuggestion']?'Suggested\x20by':'add'==_0x4f2b6f['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x4f2b6f['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x2a27f1['to']('type',_0x2195c9=>'ck-revision-change__'+_0x2195c9)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x3cf620}]},{'text':'\x20'+_0x4f2b6f['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x383f40(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x549900){super(),this['id']=_0x549900['id']||_0x66ae84(),this['author']=_0x549900['author'],this['type']=_0x549900['type'],this['data']=_0x549900['data']||{},this['rootName']=_0x549900['rootName'],this['set']('createdAt',_0x549900['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class f{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x362083,_0x1c19e2){this['newRevisionId']=_0x362083,this['oldRevisionId']=_0x1c19e2,this['changes']=new _0x4367e2();}['_setChanges'](_0x4d868d){for(const _0xe1fb43 of _0x4d868d)this['changes']['add'](_0xe1fb43);}}const Y={'c':_0x455d52,'a':_0x17eac4,'e':_0x2b42de,'r':_0xcfd9dc,'u':_0x2e1c5d};class d extends _0x31326a{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x29bc02,_0x416265,j];}constructor(_0x3b9f8b){super(_0x3b9f8b),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x5e34d0,_0xbc72e2,_0x28cce7)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x160474=>{for(const _0x4d5217 of this['editor']['editing']['view']['document']['roots'])_0x28cce7?_0x160474['removeClass']('ck-editor__editable__overlay',_0x4d5217):_0x160474['addClass']('ck-editor__editable__overlay',_0x4d5217);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x19ee6d=>null!==_0x19ee6d),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x4567c2,_0xdd7849,_0xf1c8d0)=>_0x4567c2&&_0xf1c8d0?_0xdd7849['changes']['getIndex'](_0xf1c8d0):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x415e79,_0xfcf670)=>_0x415e79?_0xfcf670['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x416265);}['init'](){const _0x57dea6=this['editor'],_0x435379=new _t(_0x57dea6,{'direction':'backward'}),_0x285633=new _t(_0x57dea6,{'direction':'forward'});(_0x57dea6['commands']['add']('showPreviousChange',_0x435379),_0x57dea6['commands']['add']('showNextChange',_0x285633),_0x57dea6['commands']['add']('restoreRevision',new pt(_0x57dea6)),this['on']('change:numberOfChanges',()=>{_0x435379['refresh'](),_0x285633['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x57dea6['enableReadOnlyMode']('revision-viewer'),_0x57dea6['plugins']['has']('WidgetToolbarRepository'))&&_0x57dea6['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x321949){await this['loadRevisionData'](_0x321949);const _0xe94a67={};for(const _0x183440 in _0x321949['diffData']){if(_0x321949['diffData'][_0x183440]['attachChange']&&!_0x321949['diffData'][_0x183440]['attachChange']['isAttached'])continue;const _0x37ff5d=this['_removeRevisionMarkers'](JSON['parse'](_0x321949['diffData'][_0x183440]['insertions'])),_0x798d86=this['editor']['editing']['view']['document'],_0x3fec89=new _0x401b7e(_0x798d86,_0x37ff5d['map'](_0x558bb6=>this['_getViewObj'](_0x558bb6)));this['editor']['data']['processor']['useFillerType']('marked'),_0xe94a67[_0x183440]=this['editor']['data']['processor']['toData'](_0x3fec89),this['editor']['data']['processor']['useFillerType']('default');}return _0xe94a67;}async['getRevisionRootsAttributes'](_0x3b7905){await this['loadRevisionData'](_0x3b7905);const _0xe723c3={};for(const _0x129f77 in _0x3b7905['diffData'])_0x3b7905['diffData'][_0x129f77]['attachChange']&&!_0x3b7905['diffData'][_0x129f77]['attachChange']['isAttached']||(_0xe723c3[_0x129f77]=_0x3b7905['diffData'][_0x129f77]['attributesAfter']||{});return _0xe723c3;}['_removeRevisionMarkers'](_0x2e4936){return(_0x2e4936=_0x2e4936['filter'](_0x18158a=>!_0x18158a['name']||'revision-start'!==_0x18158a['name']&&'revision-end'!==_0x18158a['name']))['forEach'](_0x298564=>{'string'!=typeof _0x298564&&(_0x298564['children']=this['_removeRevisionMarkers'](_0x298564['children']),_0x298564['attributes']=_0x298564['attributes']['filter'](_0x26e677=>!_0x26e677[0x0]['startsWith']('data-revision-')));}),_0x2e4936;}async['compare'](_0x51f3e1,_0x249ead,_0xeffda8=!0x1){if(!this['isEnabled'])return;const _0x38d049=this['diff'],_0xe9fd43=this['repository'],_0x379399='string'==typeof _0x51f3e1?_0xe9fd43['getRevision'](_0x51f3e1):_0x51f3e1,_0x40b74e='string'==typeof _0x249ead?_0xe9fd43['getRevision'](_0x249ead):_0x249ead,_0x1a95e2=_0x379399['id'],_0x4c348e=_0x40b74e?_0x40b74e['id']:null;if(!_0xeffda8&&this['diff']&&this['diff']['newRevisionId']===_0x1a95e2&&this['diff']['oldRevisionId']===_0x4c348e)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x1a95e2,_0x4c348e);const _0x222efa=this['_getRevisionsRange'](_0x379399,_0x40b74e,!0x0)['map'](_0x3924b9=>this['loadRevisionData'](_0x3924b9));return _0x222efa['push'](new Promise(_0x3d3136=>{setTimeout(_0x3d3136,0x14);})),Promise['all'](_0x222efa)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0xde37f1=this['_getDiff'](_0x1a95e2,_0x4c348e);for(const _0x227032 of _0xde37f1['changes'])this['_changeIdToChange']['set'](_0x227032['id'],_0x227032);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x5950cf=>{for(const _0x5f3872 of this['editor']['model']['document']['getRootNames']())_0x5950cf['detachRoot'](_0x5f3872);for(const _0xd7feab of Object['keys'](_0xde37f1['model'])){const _0x32609b=_0x5950cf['addRoot'](_0xd7feab);for(const _0x4a82c3 of Object['keys'](_0xde37f1['attributes'][_0xd7feab]))_0x5950cf['setAttribute'](_0x4a82c3,_0xde37f1['attributes'][_0xd7feab][_0x4a82c3],_0x32609b);_0x5950cf['insert'](_0xde37f1['model'][_0xd7feab],_0x32609b,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0xde37f1['changes'])),this['isReady']=!0x0;})['catch'](_0x2091a5=>{console['error'](_0x2091a5),this['_cleanUp'](),_0x38d049&&(this['diff']=_0x38d049),this['isReady']=!0x0;});}['addRevisionData'](_0x1952d1,_0x37ab39){const _0x2e3294=this['repository']['createRevision'](_0x1952d1);return _0x2e3294['on']('_update',(_0x82c03c,_0x5353d7,_0x3e2cc3)=>_0x37ab39(_0x5353d7,_0x3e2cc3,_0x2e3294)),this['repository']['addRevision'](_0x2e3294),_0x2e3294;}['loadRevisionData'](_0x4c4d54){if(!_0x4c4d54||_0x4c4d54['diffData'])return Promise['resolve']();{const _0x172ffb=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x172ffb,'revisionId':_0x4c4d54['id']})['then'](_0x122cce=>{_0x4c4d54['_update']({'diffData':_0x122cce['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0xa88f6d=>{for(const _0x17a18c of this['editor']['model']['document']['getRootNames']())_0xa88f6d['detachRoot'](_0x17a18c);});}['_sortAndFilterDiffChanges'](_0x489e09){const _0x119ca3=[],_0x358aa4=new Map();for(const _0x40a04a of this['editor']['model']['document']['getRootNames']()){const _0x52a57d=this['editor']['editing']['view']['getDomRoot'](_0x40a04a);if(!_0x52a57d)continue;const _0x214941=_0x52a57d['getClientRects']()['item'](0x0);_0x214941&&(_0x119ca3['push'](_0x40a04a),_0x358aa4['set'](_0x40a04a,_0x214941));}return _0x119ca3['sort']((_0x4735eb,_0x24f31b)=>{const _0x4c2192=_0x358aa4['get'](_0x4735eb),_0x3628ee=_0x358aa4['get'](_0x24f31b);return _0x4c2192['y']-_0x3628ee['y']||_0x4c2192['x']-_0x3628ee['x'];}),(_0x489e09=_0x489e09['filter'](_0x55dffb=>_0x119ca3['includes'](_0x55dffb['rootName'])))['sort']((_0x46f53d,_0x2c7737)=>_0x119ca3['indexOf'](_0x46f53d['rootName'])-_0x119ca3['indexOf'](_0x2c7737['rootName'])),_0x489e09;}['_makeTape'](_0x3bcc02){const _0x2a9e34=Array['from'](_0x3bcc02['markers'])['filter'](([_0x46d98e,_0x267fb5])=>_0x46d98e['startsWith']('revision:')&&!_0x267fb5['isCollapsed']),_0xab9e3c=Array['from'](this['editor']['model']['createRangeIn'](_0x3bcc02)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x2a9e34['length'])for(const _0x1a1b30 of _0xab9e3c){const [_0x14fe0c,_0x2c40b7]=_0x2a9e34[0x0],[,_0x2a2841,_0x849fdd]=_0x14fe0c['split'](':');if(_0x2c40b7['end']['isEqual'](_0x1a1b30['nextPosition'])&&_0x2a9e34['shift'](),(_0x1a1b30['previousPosition']['isEqual'](_0x2c40b7['start'])||_0x1a1b30['previousPosition']['isAfter'](_0x2c40b7['start']))&&('insertion'==_0x2a2841?_0x1a1b30['isAdded']={'userId':_0x849fdd}:'deletion'==_0x2a2841&&(_0x1a1b30['isRemoved']={'userId':_0x849fdd})),0x0==_0x2a9e34['length'])break;}return _0xab9e3c;}['_refreshStartEndIndex'](_0x135f11){const _0x14d5fc=new Map();for(let _0xeffc91=0x0;_0xeffc91<_0x135f11['length'];_0xeffc91++)'text'===_0x135f11[_0xeffc91]['type']?(_0x135f11[_0xeffc91]['item']['startIndex']=_0xeffc91,_0x135f11[_0xeffc91]['item']['endIndex']=_0xeffc91):('elementStart'===_0x135f11[_0xeffc91]['type']?_0x135f11[_0xeffc91]['item']['startIndex']=_0xeffc91:'elementEnd'===_0x135f11[_0xeffc91]['type']&&(_0x135f11[_0xeffc91]['item']['endIndex']=_0xeffc91),_0x14d5fc['set'](_0x135f11[_0xeffc91]['id'],_0xeffc91));for(const _0x4c75ca of _0x14d5fc['values']())'elementStart'===_0x135f11[_0x4c75ca]['type']?_0x135f11[_0x4c75ca]['item']['endIndex']=_0x14d5fc['get'](_0x135f11[_0x4c75ca]['pairId']):'elementEnd'===_0x135f11[_0x4c75ca]['type']&&(_0x135f11[_0x4c75ca]['item']['startIndex']=_0x14d5fc['get'](_0x135f11[_0x4c75ca]['pairId']));}['_processTape'](_0x2c8f9f){for(let _0xf19743=0x0;_0xf19743<_0x2c8f9f['length'];_0xf19743++){if('elementStart'===_0x2c8f9f[_0xf19743]['type'])_0x2c8f9f[_0xf19743]['item']['startIndex']=_0xf19743;else{if('elementEnd'===_0x2c8f9f[_0xf19743]['type']){_0x2c8f9f[_0xf19743]['item']['endIndex']=_0xf19743;const _0x2b40b9=_0x2c8f9f[_0xf19743]['item']['startIndex'];_0x2c8f9f[_0x2b40b9]['pairId']=_0x2c8f9f[_0xf19743]['id'],_0x2c8f9f[_0xf19743]['pairId']=_0x2c8f9f[_0x2b40b9]['id'];}else _0x2c8f9f[_0xf19743]['item']['startIndex']=_0xf19743,_0x2c8f9f[_0xf19743]['item']['endIndex']=_0xf19743,_0x2c8f9f[_0xf19743]['pairId']=null;}_0x2c8f9f[_0xf19743]['markersStart']||(_0x2c8f9f[_0xf19743]['markersStart']=[],_0x2c8f9f[_0xf19743]['markersEnd']=[]);}}['_markInsertions'](_0x551732,_0x4c4ea5){const _0x94d367=_0x551732['filter'](_0x38c890=>!_0x38c890['isAdded']);for(let _0x1597a8=0x0;_0x1597a8<_0x4c4ea5['length'];_0x1597a8++)_0x4c4ea5[_0x1597a8]['isAdded']&&(_0x94d367[_0x1597a8]['isAdded']=_0x4c4ea5[_0x1597a8]['isAdded']);}['_makeModelFromViewString'](_0xae8fa8){const _0x1f5d97=JSON['parse'](_0xae8fa8),_0x495eb7=this['editor']['editing']['view']['document'],_0x81129a=new _0x401b7e(_0x495eb7,_0x1f5d97['map'](_0x1f7545=>this['_getViewObj'](_0x1f7545)));return this['editor']['data']['toModel'](_0x81129a);}['_getViewObj'](_0x544c30){const _0x4ecfa2=this['editor']['editing']['view']['document'];if('string'==typeof _0x544c30)return new _0x20e0cf(_0x4ecfa2,_0x544c30);{const _0x827704=_0x544c30['children']['map'](_0xbc4baf=>this['_getViewObj'](_0xbc4baf));return new(Y[_0x544c30['type']]||_0x2516e6)(_0x4ecfa2,_0x544c30['name'],_0x544c30['attributes'],_0x827704);}}['_getDiff'](_0x142f94,_0x1a0c96=null){const _0xce5904=this['repository']['getRevision'](_0x142f94),_0x33be4b=_0x1a0c96?this['repository']['getRevision'](_0x1a0c96):null,_0x1a4912=this['_getRevisionsRange'](_0xce5904,_0x33be4b),_0x58a683=_0x1a4912[_0x1a4912['length']-0x1],_0x4af7d4=new Map(),_0xe12a2={'model':{},'attributes':{},'changes':[]},_0x2096bd=new Set(),_0x17220e=new Map();for(let _0x4161d1=_0x1a4912['length']-0x1;_0x4161d1>=0x0;_0x4161d1--){const _0x5c9442=_0x1a4912[_0x4161d1];for(const _0x3fbca6 of Object['keys'](_0x5c9442['diffData']))if(_0x5c9442['diffData'][_0x3fbca6]['attachChange']){const _0x37df47=_0x5c9442['diffData'][_0x3fbca6]['attachChange'];_0x37df47['isAttached']?(_0x2096bd['add'](_0x3fbca6),_0x17220e['has'](_0x3fbca6)&&_0x17220e['get'](_0x3fbca6)['userId']==_0x37df47['userId']?_0x17220e['delete'](_0x3fbca6):_0x17220e['set'](_0x3fbca6,_0x37df47)):_0x17220e['has'](_0x3fbca6)?(_0x2096bd['delete'](_0x3fbca6),_0x17220e['delete'](_0x3fbca6)):(_0x2096bd['add'](_0x3fbca6),_0x17220e['set'](_0x3fbca6,_0x37df47));}else _0x2096bd['add'](_0x3fbca6);}for(const _0x3592f1 of _0x2096bd){const _0x5b40b9=_0x17220e['has'](_0x3592f1)&&!_0x17220e['get'](_0x3592f1)['isAttached'];let _0x2e448a=_0x5b40b9?_0x1a4912['length']-0x1:0x0;const _0x5ac7c5=_0x5b40b9?-0x1:0x1;for(;_0x1a4912[_0x2e448a];){const _0xf5856e=_0x1a4912[_0x2e448a];if(_0xf5856e['diffData'][_0x3592f1]){const _0x199cb0=_0x5b40b9?_0xf5856e['diffData'][_0x3592f1]['attributesBefore']:_0xf5856e['diffData'][_0x3592f1]['attributesAfter'];_0xe12a2['attributes'][_0x3592f1]=_0x199cb0?_0x100481(_0x199cb0):{};break;}_0x2e448a+=_0x5ac7c5;}}for(const _0x49c4e0 of _0x1a4912){_0x49c4e0['model']={};for(const _0xc06e22 of _0x49c4e0['authors'])_0x4af7d4['set'](_0xc06e22['id'],_0xc06e22);for(const _0x28ee50 of _0x2096bd){const _0x25d596=_0x49c4e0['diffData'][_0x28ee50]?_0x49c4e0['diffData'][_0x28ee50]['insertions']:'[]',_0x28b5ce=_0x49c4e0['diffData'][_0x28ee50]?_0x49c4e0['diffData'][_0x28ee50]['deletions']:'[]';_0x49c4e0['model'][_0x28ee50]={'insertions':this['_makeModelFromViewString'](_0x25d596),'deletions':this['_makeModelFromViewString'](_0x28b5ce)};}}for(const _0x4b8429 of _0x2096bd){let _0x2b8300=null,_0x319c57=0x0;const _0x313d54=new Map(Array['from'](_0xce5904['model'][_0x4b8429]['insertions']['markers'])['filter'](([_0x385960])=>!_0x385960['startsWith']('revision:')));let _0x13967d=0x0;for(const _0x539a41 of _0x1a4912){const _0x2db2a0=this['_makeTape'](_0x539a41['model'][_0x4b8429]['insertions']);_0x539a41==_0xce5904?(_0x2b8300=_0x2db2a0,_0x319c57=_0x2b8300['length'],_0x2b8300['forEach'](_0x272a14=>{_0x272a14['id']=_0x13967d++;}),this['_processTape'](_0x2b8300)):this['_markInsertions'](_0x2b8300,_0x2db2a0);const _0x118dcf=_0x2b8300['filter'](_0x2c6228=>!_0x2c6228['isAdded'])['map'](_0x3e7081=>_0x3e7081['id']);let _0xa24051=0x0;const _0x26030c=this['_makeTape'](_0x539a41['model'][_0x4b8429]['deletions']);_0x26030c['forEach'](_0x105849=>{_0x105849['isRemoved']?_0x105849['id']=_0x319c57++:_0x105849['id']=_0x118dcf[_0xa24051++];}),this['_processTape'](_0x26030c),this['_setDistance'](_0x2b8300,'isAdded'),this['_setDistance'](_0x26030c,'isRemoved'),_0x539a41==_0xce5904&&this['_markMarkers'](_0x2b8300,_0x313d54),_0x2b8300=this['_joinTapes'](_0x2b8300,_0x26030c),this['_refreshStartEndIndex'](_0x2b8300),this['_setDistance'](_0x2b8300,'isRemoved');}_0x2b8300=_0x2b8300['filter'](_0x186c45=>!(_0x186c45['isAdded']&&_0x186c45['isRemoved']));const _0x53d48c=new Map(_0x58a683['model'][_0x4b8429]['deletions']['markers']),_0x54dbf3=new Set(_0x313d54['keys']());for(const _0x3022c7 of _0x53d48c['keys']())_0x54dbf3['delete'](_0x3022c7);this['_markSuggestions'](_0x2b8300,_0x54dbf3),this['_fixObsoleteTags'](_0x2b8300),_0x2b8300=this['_removeMissingPairs'](_0x2b8300),_0x2b8300=this['_markMismatchedRemovedTags'](_0x2b8300),_0x2b8300=this['_removeUnsupportedChanges'](_0x2b8300);const {root:_0x3f102e,changes:_0x3b7170}=this['_makeModelFromTape'](_0x2b8300,_0x4af7d4,_0x4b8429);_0xe12a2['model'][_0x4b8429]=_0x3f102e;const _0x4d335e=_0x17220e['get'](_0x4b8429);if(_0x4d335e){const _0x5bd35f=_0x4af7d4['get'](_0x4d335e['userId']),_0x40f84e=new r({'author':_0x5bd35f,'type':_0x4d335e['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x4b8429});_0x3b7170['unshift'](_0x40f84e),_0xe12a2['attributes'][_0x4b8429]['revisionHistoryAttachChange']=_0x40f84e['id'];}_0xe12a2['changes']=_0xe12a2['changes']['concat'](_0x3b7170);}return _0xe12a2;}['_markMarkers'](_0x25cba3,_0x58e43f){for(let _0xb9565f=0x0;_0xb9565f<_0x25cba3['length'];_0xb9565f++)for(const [_0x47b948,_0x36de5d]of _0x58e43f)_0x36de5d['start']['isEqual'](_0x25cba3[_0xb9565f]['previousPosition'])&&_0x25cba3[_0xb9565f]['markersStart']['push'](_0x47b948),_0x36de5d['end']['isEqual'](_0x25cba3[_0xb9565f]['nextPosition'])&&_0x25cba3[_0xb9565f]['markersEnd']['push'](_0x47b948);}['_joinTapes'](_0x32b3eb,_0x51edb1){let _0x32ab1e=[],_0x25f26d=0x0,_0x187b01=0x0;for(;_0x25f26d<_0x32b3eb['length']||_0x187b01<_0x51edb1['length'];){const _0x179835=_0x32b3eb[_0x25f26d]||{},_0x306290=_0x51edb1[_0x187b01]||{};if(_0x179835['id']==_0x306290['id'])_0x25f26d++,_0x187b01++,_0x32ab1e['push'](_0x179835);else{if(_0x306290['isRemoved']&&_0x179835['isAdded']){const {commonTape:_0x3f6a62,iEnd:_0x2aef2b,jEnd:_0x2f5a93}=this['_threeWayMerge'](_0x32b3eb,_0x25f26d,_0x51edb1,_0x187b01);_0x32ab1e=_0x32ab1e['concat'](_0x3f6a62),_0x25f26d=_0x2aef2b,_0x187b01=_0x2f5a93;}else _0x306290['isRemoved']?(_0x187b01++,_0x32ab1e['push'](_0x306290)):(_0x25f26d++,_0x32ab1e['push'](_0x179835));}}return _0x32ab1e;}['_markSuggestions'](_0x54949e,_0x1e8b72){const _0x7ee0bd=[];for(let _0x59f19d=0x0;_0x59f19d<_0x54949e['length'];_0x59f19d++){for(let _0x5d42d7=0x0;_0x5d42d7<_0x54949e[_0x59f19d]['markersStart']['length'];_0x5d42d7++){const _0x295fde=_0x54949e[_0x59f19d]['markersStart'][_0x5d42d7];if(!_0x1e8b72['has'](_0x295fde))continue;const {group:_0x53dccf,type:_0x5ad3f8,authorId:_0x322aea}=_0x16a25a(_0x295fde);'revision-suggestion'!=_0x53dccf||'insertion'!=_0x5ad3f8&&'deletion'!=_0x5ad3f8||(_0x7ee0bd['unshift']({'type':_0x5ad3f8,'name':_0x295fde,'userId':_0x322aea}),_0x54949e[_0x59f19d]['markersStart']['splice'](_0x5d42d7,0x1),_0x5d42d7--);}_0x41b002(_0x54949e[_0x59f19d]);for(let _0x5801f2=0x0;_0x5801f2<_0x54949e[_0x59f19d]['markersEnd']['length'];_0x5801f2++){const _0x2101b8=_0x54949e[_0x59f19d]['markersEnd'][_0x5801f2];if(!_0x1e8b72['has'](_0x2101b8))continue;const {group:_0x2c901a,type:_0x49fe42}=_0x16a25a(_0x2101b8);if('revision-suggestion'!=_0x2c901a||'insertion'!=_0x49fe42&&'deletion'!=_0x49fe42)continue;_0x54949e[_0x59f19d]['markersEnd']['splice'](_0x5801f2,0x1),_0x5801f2--;const _0x1621e2=_0x7ee0bd['findIndex'](_0x3eee85=>_0x3eee85['name']==_0x2101b8);_0x1621e2>-0x1&&_0x7ee0bd['splice'](_0x1621e2,0x1);}}function _0x16a25a(_0x3ae246){const _0x5ea008=_0x3ae246['split'](':');return{'group':_0x5ea008[0x0],'type':_0x5ea008[0x1],'subType':_0x5ea008['length']>=0x5?_0x5ea008[0x2]:null,'id':_0x5ea008['length']<0x5?_0x5ea008[0x2]:_0x5ea008[0x3],'authorId':_0x5ea008['length']<0x5?_0x5ea008[0x3]:_0x5ea008[0x4],'markerCount':0x6==_0x5ea008['length']?_0x5ea008[0x5]:null};}function _0x41b002(_0x3e821e){for(let _0x1f14b3=0x0;_0x1f14b3<_0x7ee0bd['length'];_0x1f14b3++){if(_0x3e821e['isAdded']&&'insertion'==_0x7ee0bd[_0x1f14b3]['type'])return _0x3e821e['isAddSuggestion']=_0x7ee0bd[_0x1f14b3],void delete _0x3e821e['isAdded'];if(!_0x3e821e['isAdded']&&!_0x3e821e['isRemoved']&&'deletion'==_0x7ee0bd[_0x1f14b3]['type'])return void(_0x3e821e['isRemoveSuggestion']=_0x7ee0bd[_0x1f14b3]);}}}['_setDistance'](_0x2df603,_0x576817){let _0x67514d=0x0,_0x54725f=!0x1;const _0x3ba60e=new Map();for(const _0x279da0 of _0x2df603)_0x279da0[_0x576817]?_0x54725f&&(_0x67514d++,_0x54725f=!0x1):(_0x67514d++,_0x54725f=!0x0),_0x3ba60e['set'](_0x279da0['id'],_0x67514d);for(let _0x4fc2a3=0x0;_0x4fc2a3<_0x2df603['length'];_0x4fc2a3++){if('isRemoved'==_0x576817&&_0x2df603[_0x4fc2a3]['isAdded']||'isAdded'==_0x576817&&_0x2df603[_0x4fc2a3]['isRemoved'])continue;if('text'==_0x2df603[_0x4fc2a3]['type']){_0x2df603[_0x4fc2a3]['distance']=0x0;continue;}const _0x4b4b10=_0x3ba60e['get'](_0x2df603[_0x4fc2a3]['pairId']),_0x10acae=_0x3ba60e['get'](_0x2df603[_0x4fc2a3]['id']);_0x2df603[_0x4fc2a3]['distance']=_0x4b4b10-_0x10acae;}}['_getRevisionsRange'](_0x488eec,_0xe7abff,_0x13adfc=!0x1){const _0x63f049=[];let _0x5f5e8b=this['repository']['getIndex'](_0x488eec),_0x52e0be=this['repository']['getIndex'](_0xe7abff);for(-0x1==_0x52e0be&&(_0x52e0be=this['repository']['_revisions']['length'],_0x13adfc=!0x1);_0x5f5e8b<_0x52e0be;)_0x63f049['push'](this['repository']['getRevision'](_0x5f5e8b)),_0x5f5e8b++;return _0x13adfc&&_0x63f049['push'](this['repository']['getRevision'](_0x5f5e8b)),_0x63f049;}['_threeWayMerge'](_0x559f16,_0x20b314,_0x2d5995,_0x37d4b7){const _0x4d7a0f=this['editor']['model']['schema'];let _0x227f32=_0x20b314;for(;_0x559f16[_0x227f32]&&_0x559f16[_0x227f32]['isAdded'];)_0x227f32++;let _0x58022d=_0x37d4b7;for(;_0x2d5995[_0x58022d]&&_0x2d5995[_0x58022d]['isRemoved'];)_0x58022d++;_0x5ecd4c(_0x559f16,_0x20b314,_0x227f32),_0x5ecd4c(_0x2d5995,_0x37d4b7,_0x58022d);const _0x237139=_0x2d5995['slice'](_0x37d4b7,_0x58022d)['concat'](_0x559f16['slice'](_0x20b314,_0x227f32));return _0x237139['sort']((_0x37a2cc,_0x4e65b7)=>_0x37a2cc['side']!=_0x4e65b7['side']?_0x37a2cc['side']-_0x4e65b7['side']:_0x37a2cc['level']!=_0x4e65b7['level']?_0x37a2cc['level']-_0x4e65b7['level']:_0x37a2cc['distance']!=_0x4e65b7['distance']?_0x4e65b7['distance']-_0x37a2cc['distance']:!!_0x37a2cc['isAdded']!=!!_0x4e65b7['isAdded']?-0x1==_0x37a2cc['side']||0x0==_0x37a2cc['side']?_0x37a2cc['isAdded']?-0x1:0x1:_0x37a2cc['isAdded']?0x1:-0x1:_0x37a2cc['index']-_0x4e65b7['index']),{'commonTape':_0x237139,'iEnd':_0x227f32,'jEnd':_0x58022d};function _0x5ecd4c(_0x620edc,_0xdcd2,_0x4b4905){let _0x37f9bf=-0x1,_0x2cea96=Number['POSITIVE_INFINITY'],_0x35f862=!0x0;for(let _0x4adf32=_0xdcd2;_0x4adf32<_0x4b4905;_0x4adf32++)if(_0x4d7a0f['isInline'](_0x620edc[_0x4adf32]['item'])||(_0x35f862=!0x1),_0x620edc[_0x4adf32]['item']['startIndex']<_0xdcd2&&(_0x37f9bf=_0x4adf32),_0x620edc[_0x4adf32]['item']['endIndex']>=_0x4b4905){_0x2cea96=_0x4adf32;break;}_0x35f862&&(_0x37f9bf=_0x4b4905-0x1);for(let _0x1a0715=_0xdcd2;_0x1a0715<_0x4b4905;_0x1a0715++)_0x620edc[_0x1a0715]['side']=_0x1a0715<=_0x37f9bf?-0x1:_0x1a0715<_0x2cea96?0x0:0x1,_0x620edc[_0x1a0715]['index']=_0x1a0715;let _0x3cd745=0x0;for(let _0x56776c=_0xdcd2;_0x56776c<=_0x37f9bf;_0x56776c++)0x0==_0x620edc[_0x56776c]['distance']?_0x620edc[_0x56776c]['level']=_0x3cd745:(_0x3cd745++,_0x620edc[_0x56776c]['level']=_0x3cd745,_0x3cd745++);for(let _0x41d055=_0xdcd2;_0x41d055<_0x4b4905;_0x41d055++)0x0==_0x620edc[_0x41d055]['side']&&(_0x620edc[_0x41d055]['level']=_0x3cd745);_0x3cd745=0x0;for(let _0x340757=_0x4b4905-0x1;_0x340757>=_0x2cea96;_0x340757--)0x0==_0x620edc[_0x340757]['distance']?_0x620edc[_0x340757]['level']=_0x3cd745:(_0x3cd745--,_0x620edc[_0x340757]['level']=_0x3cd745,_0x3cd745--);}}['_fixObsoleteTags'](_0x5af043){const _0x289ba2=new Map(),_0x1f37d2=this['editor']['model']['schema'];for(let _0x29c59f=0x1;_0x29c59f<_0x5af043['length'];_0x29c59f++){let _0x1cf291,_0x25638e,_0x5557d5;const _0x478a62=_0x5af043[_0x29c59f],_0x3ebc31=_0x5af043[_0x29c59f-0x1];if('text'==_0x478a62['type'])continue;if(_0x478a62['type']!=_0x3ebc31['type'])continue;if(!_0x1f37d2['isBlock'](_0x3ebc31['item'])||_0x1f37d2['isLimit'](_0x3ebc31['item']))continue;if(!_0x1f37d2['isBlock'](_0x478a62['item'])||_0x1f37d2['isLimit'](_0x478a62['item']))continue;if((_0x5af043[_0x29c59f]['isAdded']||_0x5af043[_0x29c59f]['isAddSuggestion'])&&_0x5af043[_0x29c59f-0x1]['isRemoved'])_0x1cf291=_0x5af043[_0x29c59f],_0x25638e=_0x5af043[_0x29c59f-0x1],_0x5557d5=_0x29c59f-0x1;else{if(!_0x5af043[_0x29c59f]['isRemoved']||!_0x5af043[_0x29c59f-0x1]['isAdded']&&!_0x5af043[_0x29c59f-0x1]['isAddSuggestion'])continue;_0x1cf291=_0x5af043[_0x29c59f-0x1],_0x25638e=_0x5af043[_0x29c59f],_0x5557d5=_0x29c59f;}const _0x1d42c1=_0x1cf291['level']==_0x25638e['level'],_0x1db01c=Math['abs'](_0x1cf291['level'])<Math['abs'](_0x25638e['level'])&&0x0==_0x25638e['distance'];(_0x1d42c1||_0x1db01c)&&(_0x289ba2['set'](_0x25638e['id'],_0x1cf291['id']),_0x5af043['splice'](_0x5557d5,0x1),_0x29c59f--,_0x1cf291['isAdded']=!0x1);}for(let _0x5348a1=0x0;_0x5348a1<_0x5af043['length'];_0x5348a1++)_0x289ba2['has'](_0x5af043[_0x5348a1]['pairId'])&&(_0x5af043[_0x5348a1]['pairId']=_0x289ba2['get'](_0x5af043[_0x5348a1]['pairId']));}['_removeMissingPairs'](_0x463303){const _0x1dd758=new Set(_0x463303['map'](_0x554d00=>_0x554d00['id']));for(let _0x3480f8=0x0;_0x3480f8<_0x463303['length'];_0x3480f8++)_0x1dd758['has'](_0x463303[_0x3480f8]['pairId'])||0x0==_0x463303[_0x3480f8]['distance']||(_0x463303[_0x3480f8]['isIncorrect']=!0x0);return _0x463303['filter'](_0x5e5408=>!_0x5e5408['isIncorrect']);}['_markMismatchedRemovedTags'](_0x225cea){const _0x3699c1=new Set();for(let _0x156aa6=0x0;_0x156aa6<_0x225cea['length'];_0x156aa6++){if(_0x3699c1['has'](_0x225cea[_0x156aa6]['id'])&&_0x225cea[_0x156aa6]['isRemoved']&&(_0x225cea[_0x156aa6]['isIncorrect']=!0x0),_0x225cea[_0x156aa6]['isIncorrect'])continue;if(0x0==_0x225cea[_0x156aa6]['distance'])continue;if('elementStart'!=_0x225cea[_0x156aa6]['type'])continue;if(null==_0x225cea[_0x156aa6]['pairId'])continue;let _0x213689=_0x156aa6+0x1,_0x22bc91=0x0;for(;_0x225cea[_0x213689]['id']!=_0x225cea[_0x156aa6]['pairId'];)'elementStart'==_0x225cea[_0x213689]['type']?_0x22bc91++:'elementEnd'==_0x225cea[_0x213689]['type']&&_0x22bc91--,_0x213689++;if(0x0!=_0x22bc91){if(_0x225cea[_0x156aa6]['isRemoved'])_0x225cea[_0x156aa6]['isIncorrect']=!0x0;else{for(;_0x213689!=_0x156aa6;)_0x225cea[_0x213689]['isRemoved']&&0x0!=_0x225cea[_0x213689]['distance']&&(_0x225cea[_0x213689]['isIncorrect']=!0x0,_0x3699c1['add'](_0x225cea[_0x213689]['pairId'])),_0x213689--;}}}return _0x225cea['filter'](_0x3e872d=>!_0x3e872d['isIncorrect']);}['_removeUnsupportedChanges'](_0x408da0){const _0x3b49b7=this['editor']['model']['schema'];for(let _0x323288=0x0;_0x323288<_0x408da0['length'];_0x323288++){if(!(_0x408da0[_0x323288]['isAdded']||_0x408da0[_0x323288]['isAddSuggestion']||_0x408da0[_0x323288]['isRemoved']||_0x408da0[_0x323288]['isRemoveSuggestion']))continue;if(0x0==_0x408da0[_0x323288]['distance'])continue;const _0x40af1f=_0x408da0[_0x323288]['item'];_0x3b49b7['isBlock'](_0x40af1f)||_0x3b49b7['isLimit'](_0x40af1f)||(_0x408da0[_0x323288]['isAdded']&&delete _0x408da0[_0x323288]['isAdded'],_0x408da0[_0x323288]['isAddSuggestion']&&delete _0x408da0[_0x323288]['isAddSuggestion'],_0x408da0[_0x323288]['isRemoveSuggestion']&&delete _0x408da0[_0x323288]['isRemoveSuggestion'],_0x408da0[_0x323288]['isRemoved']&&(_0x408da0[_0x323288]['isIncorrect']=!0x0));}return _0x408da0['filter'](_0x1b46be=>!_0x1b46be['isIncorrect']);}['_makeModelFromTape'](_0x1ae75b,_0x2d0507,_0x37c139){const _0x5be5d7=new mt(),_0xa59845=[],_0x77654d=new Map(),_0x425e7f=this['editor']['model'],_0x47d1c7=_0x425e7f['schema'],_0x439211=[_0x5be5d7],_0x7d7ad3={},_0x151894={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x3ac3bd=null;const _0x3e39c4=[0x0];for(let _0x452f79=0x0;_0x452f79<_0x1ae75b['length'];_0x452f79++)if('elementStart'===_0x1ae75b[_0x452f79]['type']){_0x1ae75b[_0x452f79]['previousPosition']=_0x425e7f['createPositionFromPath'](_0x5be5d7,_0x3e39c4);const _0x8f04b8=new ft(_0x1ae75b[_0x452f79]['item']['name'],_0x1ae75b[_0x452f79]['item']['getAttributes']());_0x439211[0x0]['_appendChild'](_0x8f04b8),_0x3e39c4['push'](0x0),_0x439211['unshift'](_0x8f04b8),_0x1ae75b[_0x452f79]['nextPosition']=_0x425e7f['createPositionFromPath'](_0x5be5d7,_0x3e39c4);}else'elementEnd'===_0x1ae75b[_0x452f79]['type']?(_0x439211['shift'](),_0x1ae75b[_0x452f79]['previousPosition']=_0x425e7f['createPositionFromPath'](_0x5be5d7,_0x3e39c4),_0x3e39c4['pop'](),_0x3e39c4[_0x3e39c4['length']-0x1]++,_0x1ae75b[_0x452f79]['nextPosition']=_0x425e7f['createPositionFromPath'](_0x5be5d7,_0x3e39c4)):(_0x1ae75b[_0x452f79]['previousPosition']=_0x425e7f['createPositionFromPath'](_0x5be5d7,_0x3e39c4),_0x3ac3bd?_0x3ac3bd['_data']+=_0x1ae75b[_0x452f79]['item']['data']:_0x3ac3bd=new wt(_0x1ae75b[_0x452f79]['item']['data'],_0x1ae75b[_0x452f79]['item']['getAttributes']()),_0x1ae75b[_0x452f79+0x1]&&'text'===_0x1ae75b[_0x452f79+0x1]['type']&&_0x572540(_0x3ac3bd,_0x1ae75b[_0x452f79+0x1]['item'])||(_0x439211[0x0]['_appendChild'](_0x3ac3bd),_0x3ac3bd=null),_0x3e39c4[_0x3e39c4['length']-0x1]+=_0x1ae75b[_0x452f79]['item']['offsetSize'],_0x1ae75b[_0x452f79]['nextPosition']=_0x425e7f['createPositionFromPath'](_0x5be5d7,_0x3e39c4));for(let _0x5a2ea3=0x0;_0x5a2ea3<_0x1ae75b['length'];_0x5a2ea3++){const _0x547075=_0x1ae75b[_0x5a2ea3]['previousPosition'],_0x13ed93=_0x1ae75b[_0x5a2ea3]['nextPosition'];for(const _0x15add0 of _0x1ae75b[_0x5a2ea3]['markersStart'])_0x77654d['set'](_0x15add0,{'start':_0x547075,'end':null});_0x1a1612('isRemoveSuggestion',_0x5a2ea3,_0x547075,_0x13ed93),_0x1a1612('isAddSuggestion',_0x5a2ea3,_0x547075,_0x13ed93),_0x1a1612('isRemoved',_0x5a2ea3,_0x547075,_0x13ed93),_0x1a1612('isAdded',_0x5a2ea3,_0x547075,_0x13ed93);for(const _0x15e37c of _0x1ae75b[_0x5a2ea3]['markersEnd']){_0x77654d['get'](_0x15e37c)['end']=_0x13ed93;}}for(const [_0x4d5dd2,_0x34ce05]of _0x77654d){const _0x5432b0=this['editor']['model']['createRange'](_0x34ce05['start'],_0x34ce05['end']);_0x5be5d7['markers']['set'](_0x4d5dd2,_0x5432b0);}return _0xa59845['sort']((_0xca537e,_0x220ad1)=>{const _0x4b5fcf=_0x5be5d7['markers']['get']('revision:'+_0xca537e['id']),_0x5c9f1b=_0x5be5d7['markers']['get']('revision:'+_0x220ad1['id']);return _0x4b5fcf['start']['isBefore'](_0x5c9f1b['start'])?-0x1:_0x4b5fcf['start']['isAfter'](_0x5c9f1b['start'])?0x1:_0x4b5fcf['end']['isBefore'](_0x5c9f1b['end'])?-0x1:_0x4b5fcf['end']['isAfter'](_0x5c9f1b['end'])?0x1:'add'===_0xca537e['type']?-0x1:0x1;}),{'root':_0x5be5d7,'changes':_0xa59845};function _0x1a1612(_0x355b6e,_0x52fc2b,_0xb1395,_0x3f770e){const _0x9ee139=!!_0x1ae75b[_0x52fc2b][_0x355b6e],_0x59147f=_0x9ee139?_0x1ae75b[_0x52fc2b][_0x355b6e]['userId']:null,_0x325254=_0x52fc2b===_0x1ae75b['length']-0x1,_0xc095ac=_0x151894[_0x355b6e][0x0],_0x365c0a=_0x47d1c7['isObject'](_0x1ae75b[_0x52fc2b]['item']);!_0x7d7ad3[_0x355b6e]&&_0x9ee139?_0x7d7ad3[_0x355b6e]={'start':_0xb1395,'tapeItem':_0x1ae75b[_0x52fc2b],'userId':_0x59147f,'type':_0x355b6e}:_0x7d7ad3[_0x355b6e]&&!_0x9ee139?(_0x7d7ad3[_0x355b6e]['end']=_0xb1395,_0x27a5e8(_0x7d7ad3[_0x355b6e]),_0x7d7ad3[_0x355b6e]=null):_0x7d7ad3[_0x355b6e]&&_0x9ee139&&_0x7d7ad3[_0x355b6e]['userId']!==_0x59147f&&(_0x7d7ad3[_0x355b6e]['end']=_0xb1395,_0xc095ac&&_0xc095ac['userId']===_0x7d7ad3[_0x355b6e]['userId']||_0x27a5e8(_0x7d7ad3[_0x355b6e]),_0x7d7ad3[_0x355b6e]={'start':_0xb1395,'tapeItem':_0x1ae75b[_0x52fc2b],'userId':_0x59147f,'type':_0x355b6e}),_0x7d7ad3[_0x355b6e]&&_0x365c0a&&('elementStart'!==_0x1ae75b[_0x52fc2b]['type']||_0xc095ac&&_0xc095ac['userId']===_0x59147f||_0x151894[_0x355b6e]['unshift']({'userId':_0x59147f,'object':_0x1ae75b[_0x52fc2b]['item'],'change':_0x7d7ad3[_0x355b6e]}),'elementEnd'===_0x1ae75b[_0x52fc2b]['type']&&_0xc095ac&&_0xc095ac['object']===_0x1ae75b[_0x52fc2b]['item']&&(_0x151894[_0x355b6e]['shift'](),_0x7d7ad3[_0x355b6e]=_0xc095ac['change'])),_0x7d7ad3[_0x355b6e]&&_0x325254&&(_0x7d7ad3[_0x355b6e]['end']=_0x3f770e,_0x27a5e8(_0x7d7ad3[_0x355b6e]),_0x7d7ad3[_0x355b6e]=null);}function _0x27a5e8({start:_0x50f727,end:_0x4dcd85,tapeItem:_0x2bc386,userId:_0x3b4f5a,type:_0x49b5b6}){const _0x57ab1b=_0x2bc386['item'],_0x3276b7=_0x425e7f['schema']['isBlock'](_0x57ab1b)&&!_0x425e7f['schema']['isLimit'](_0x57ab1b),_0x434050=_0x50f727['nodeAfter']==_0x4dcd85['parent']&&_0x4dcd85['isAtStart'];if(_0x3276b7&&_0x434050)return;const _0x3f512e=_0x425e7f['createRange'](_0x50f727,_0x4dcd85),_0x45b519=_0x2d0507['get'](_0x3b4f5a),_0x2fb743=new r({'author':_0x45b519,'type':'isAdded'==_0x49b5b6||'isAddSuggestion'==_0x49b5b6?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x49b5b6||'isRemoveSuggestion'==_0x49b5b6},'createdAt':new Date(),'rootName':_0x37c139});_0xa59845['push'](_0x2fb743),_0x5be5d7['markers']['set']('revision:'+_0x2fb743['id'],_0x3f512e);}function _0x572540(_0x320613,_0x3f57d2){const _0x20aaa5=_0x320613['getAttributes'](),_0x3b6f7a=_0x3f57d2['getAttributes']();for(const _0x7c83b6 of _0x20aaa5){if(_0x7c83b6[0x1]!==_0x3f57d2['getAttribute'](_0x7c83b6[0x0]))return!0x1;_0x3b6f7a['next']();}return _0x3b6f7a['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x400646=>{const _0x243df4=_0x400646['markerName']['split'](':')[0x1],_0x2e2c7f=this['_getChangeFromId'](_0x243df4);if(!_0x2e2c7f)return null;const _0x4ef527='add'==_0x2e2c7f['type']?'insertion':'deletion',_0xc15029=['ck-suggestion-marker','ck-suggestion-marker-'+_0x4ef527];return _0x2e2c7f['data']['isSuggestion']&&_0xc15029['push']('ck-suggestion-marker-'+_0x4ef527+'-new'),this['activeChange']==_0x2e2c7f&&_0xc15029['push']('ck-suggestion-marker--active'),{'classes':_0xc15029,'attributes':{'data-change-id':_0x243df4}};}}),this['editor']['conversion']['for']('upcast')['add'](_0xcf660f=>{_0xcf660f['on']('element:pre',(_0x5cb6f4,_0x2dc0e1,_0x245cd5)=>{const _0x41f5e9=_0x2dc0e1['viewItem']['getChild'](0x0);if(!_0x41f5e9||!_0x41f5e9['is']('element','code'))return;if(!_0x245cd5['consumable']['consume'](_0x41f5e9,{'attributes':['vid_start','vid_end']}))return;const _0x136c01=_0x2dc0e1['modelRange']['start']['nodeAfter'];_0x245cd5['writer']['setAttribute']('vid_start',_0x41f5e9['getAttribute']('vid_start'),_0x136c01),_0x245cd5['writer']['setAttribute']('vid_end',_0x41f5e9['getAttribute']('vid_end'),_0x136c01);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x11479d=>{_0x11479d['on']('element',(_0x2a70c6,_0x5e2dd8,_0x108d92)=>{if(!_0x108d92['consumable']['consume'](_0x5e2dd8['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x5e2dd8['modelRange']['isCollapsed'])return;const _0x1f653c=_0x5e2dd8['modelRange']['start']['nodeAfter'];_0x1f653c['hasAttribute']('vid_start')||_0x1f653c['hasAttribute']('vid')||(_0x108d92['writer']['setAttribute']('vid_start',_0x5e2dd8['viewItem']['getAttribute']('vid_start'),_0x1f653c),_0x108d92['writer']['setAttribute']('vid_end',_0x5e2dd8['viewItem']['getAttribute']('vid_end'),_0x1f653c));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x207692=>_0x207692['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x19f60e,[,_0x408b18])=>{['vid_start','vid_end','vid']['includes'](_0x408b18)&&(_0x19f60e['return']=!0x0,_0x19f60e['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x42baa3=>{_0x42baa3['on']('attribute:vid',(_0x3eb693,_0x343933,_0xb2368b)=>{if('\x20'!=_0x343933['item']['data']||_0x343933['item']['parent']['maxOffset']>0x1)return;if(!_0xb2368b['consumable']['consume'](_0x343933['item'],_0x3eb693['name']))return;const _0x5c63f7=_0xb2368b['writer'],_0x4392cc=_0xb2368b['mapper']['toViewRange'](_0x343933['range']);_0x5c63f7['wrap'](_0x4392cc,_0x5c63f7['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x767809){const _0x261649=_0x767809['plugins']['get']('RevisionViewer');return(_0x259b20,_0x56fce8,_0x388508)=>{const _0x4aecf9=_0x56fce8['markerName']['split'](':')[0x1],_0x1d59e6=_0x261649['_getChangeFromId'](_0x4aecf9);if(!_0x1d59e6)return null;const _0x4abe55='add'==_0x1d59e6['type']?'split':'merge';if(!_0x388508['consumable']['test'](_0x56fce8['markerRange'],_0x259b20['name']))return;const _0x97842e=_0x56fce8['markerRange']['getWalker'](),_0x3c3f47=_0x56fce8['markerRange']['start'],_0x5ea223=_0x767809['model']['schema'];let _0x4748af=null,_0x40763f=null,_0x590324=!0x1,_0x2791ee=!0x1;for(const _0x1d7a07 of _0x97842e){const _0x3ceeb6=_0x1d7a07['item'];_0x590324=_0x590324||_0x5ea223['isContent'](_0x3ceeb6);const _0x219ca6=_0x388508['mapper']['toViewElement'](_0x3ceeb6);if(_0x219ca6&&_0x219ca6['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1d7a07['type']&&(_0x5ea223['isBlock'](_0x3ceeb6)&&!_0x5ea223['isLimit'](_0x3ceeb6)&&(_0x3ceeb6['nextSibling']||_0x3c3f47['isAtEnd']?_0x4748af&&_0x4748af['parent']==_0x3ceeb6||(_0x4748af=_0x3ceeb6,_0x3345b9(_0x1d7a07['previousPosition']),_0x2791ee=!0x0):_0x40763f=_0x40763f||_0x1d7a07['previousPosition']));}function _0x3345b9(_0x210fbf){const _0x528485=_0x388508['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4abe55}),_0x64314=_0x388508['mapper']['toViewPosition'](_0x210fbf);_0x1d59e6['data']['isSuggestion']&&_0x388508['writer']['addClass']('ck-suggestion-marker-'+_0x4abe55+'-new',_0x528485),_0x261649['activeChange']==_0x1d59e6&&_0x388508['writer']['addClass']('ck-suggestion-marker--active',_0x528485),_0x388508['writer']['insert'](_0x64314,_0x528485),_0x388508['mapper']['bindElementToMarker'](_0x528485,_0x56fce8['markerName']);}_0x590324||_0x2791ee||!_0x40763f||_0x3345b9(_0x40763f);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x354c3d,_0x3efb41,_0x5e99d0)=>{const _0x3b5d98=_0x5e99d0['mapper']['markerNameToElements'](_0x3efb41['markerName']);if(_0x3b5d98){for(const _0x1f8544 of _0x3b5d98)(_0x1f8544['hasClass']('ck-suggestion-marker-split')||_0x1f8544['hasClass']('ck-suggestion-marker-merge'))&&(_0x5e99d0['mapper']['unbindElementFromMarkerName'](_0x1f8544,_0x3efb41['markerName']),_0x5e99d0['writer']['remove'](_0x1f8544));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x18adfe,_0x44cbd1,_0x330915)=>{const _0xaee9cd=_0x44cbd1['markerName']['split'](':')[0x1],_0x21a609=this['_getChangeFromId'](_0xaee9cd);if(!_0x21a609)return null;const _0x56398c='add'==_0x21a609['type']?'split':'merge';if(_0x330915['consumable']['test'](_0x44cbd1['markerRange'],_0x18adfe['name']))for(const _0x159c51 of _0x44cbd1['markerRange']['getItems']()){if(!_0x159c51['is']('element','softBreak'))continue;const _0x4892d2=_0x330915['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x56398c}),_0x54f88b=_0x330915['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x159c51));_0x21a609['data']['isSuggestion']&&_0x330915['writer']['addClass']('ck-suggestion-marker-'+_0x56398c+'-new',_0x4892d2),this['activeChange']==_0x21a609&&_0x330915['writer']['addClass']('ck-suggestion-marker--active',_0x4892d2),_0x330915['writer']['insert'](_0x54f88b,_0x4892d2),_0x330915['mapper']['bindElementToMarker'](_0x4892d2,_0x44cbd1['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x52b630=>{for(const _0xec56be of this['editor']['model']['document']['getRootNames']()){const _0x19be2f=this['editor']['model']['document']['getRoot'](_0xec56be),_0x3ebd87=this['editor']['editing']['view']['document']['getRoot'](_0xec56be);if(_0x3ebd87){const _0x459296=_0x19be2f['getAttribute']('revisionHistoryAttachChange');if(_0x52b630['removeAttribute']('data-change-id',_0x3ebd87),_0x52b630['removeClass']('ck-revision-history-root-add',_0x3ebd87),_0x52b630['removeClass']('ck-revision-history-root-remove',_0x3ebd87),_0x52b630['removeClass']('ck-revision-history-root--active',_0x3ebd87),_0x459296){const _0x101cf4=this['_getChangeFromId'](_0x459296);if(!_0x101cf4)return null;_0x52b630['setAttribute']('data-change-id',_0x459296,_0x3ebd87),_0x52b630['addClass']('ck-revision-history-root-'+_0x101cf4['type'],_0x3ebd87),this['activeChange']==_0x101cf4&&_0x52b630['addClass']('ck-revision-history-root--active',_0x3ebd87);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0xaf99a0=>'revision-comment:'+_0xaf99a0,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x35e77e=>'revision-suggestion:'+_0x35e77e,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x51a4e2=>({'name':'suggestion:'+_0x51a4e2,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x5928fc=>{const _0x34e0a6=_0x5928fc['markerName']['split'](':')[0x1];return'insertion'!=_0x34e0a6&&'deletion'!=_0x34e0a6?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x34e0a6]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x279aab,_0x34ee55,_0x5876c4)=>{const _0xe4a6a8=_0x5876c4['mapper']['markerNameToElements'](_0x34ee55['markerName']);if(_0xe4a6a8){for(const _0x186aa1 of _0xe4a6a8)_0x186aa1['is']('uiElement')&&(_0x5876c4['mapper']['unbindElementFromMarkerName'](_0x186aa1,_0x34ee55['markerName']),_0x5876c4['writer']['remove'](_0x186aa1));}},{'priority':'high'});}['_getChangeFromId'](_0x1431ce){return this['_changeIdToChange']['get'](_0x1431ce);}['_getViewForChange'](_0x5786fe){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x5786fe),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0xf0d3db,_0x5ec916,_0x1371c9,_0x2b8d58)=>{_0x2b8d58&&this['_balloon']['remove'](_0x2b8d58),_0x1371c9&&(this['_balloon']['add']({'view':_0x1371c9,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x28c554=this['editor']['editing'],_0x3fc0ec=this['_getChangeFromId'](_0x1371c9['changeId']);let _0x39eb90;if(_0x3fc0ec['data']['isOnRoot']){const _0x42b9f3=_0x28c554['view']['getDomRoot'](_0x3fc0ec['rootName']);_0x39eb90=Array['from'](_0x42b9f3['getClientRects']());}else{const _0x3b51b4=this['editor']['model']['markers']['get']('revision:'+_0x1371c9['changeId']);_0x39eb90=Array['from'](_0x28c554['mapper']['markerNameToElements'](_0x3b51b4['name']))['map'](_0x4f741f=>_0x28c554['view']['domConverter']['mapViewToDom'](_0x4f741f))['map'](_0x2afdb4=>Array['from'](_0x2afdb4['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x39eb90[0x0];return _0x39eb90['find'](_0x363fda=>_0x363fda['top']-0x3<=this['_activeViewTarget']['y']&&_0x363fda['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x363fda['left']-0x3<=this['_activeViewTarget']['x']&&_0x363fda['right']+0x3>=this['_activeViewTarget']['x'])||_0x39eb90[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x518218,_0x498a97,_0x243b73,_0x32473f)=>{this['activeView']=_0x243b73?this['_getViewForChange'](_0x243b73):null,this['editor']['model']['change'](()=>{const _0x2ee541=this['editor']['editing'];_0x32473f&&(_0x32473f['data']['isOnRoot']?_0x2ee541['view']['change'](_0x1c6367=>{_0x1c6367['removeClass']('ck-revision-history-root--active',_0x2ee541['view']['document']['getRoot'](_0x32473f['rootName']));}):_0x2ee541['reconvertMarker']('revision:'+_0x32473f['id'])),_0x243b73&&(_0x243b73['data']['isOnRoot']?_0x2ee541['view']['change'](_0xd19909=>{_0xd19909['addClass']('ck-revision-history-root--active',_0x2ee541['view']['document']['getRoot'](_0x243b73['rootName']));}):_0x2ee541['reconvertMarker']('revision:'+_0x243b73['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x10fb0d,_0x4ae5b3)=>{if(this['activeChange'])return;const _0x3bd78e=this['_findChangeIdFromDomTarget'](_0x4ae5b3['target']),_0x406eda=this['_changeIdToChange']['get'](_0x3bd78e);_0x406eda?(this['_activeViewTarget']={'x':_0x4ae5b3['domEvent']['x'],'y':_0x4ae5b3['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x406eda)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x555eb8,_0x4af50e)=>{const _0x5a6276=this['_findChangeIdFromDomTarget'](_0x4af50e['target']),_0x12a7af=this['_changeIdToChange']['get'](_0x5a6276);_0x12a7af?(this['_activeViewTarget']={'x':_0x4af50e['domEvent']['x'],'y':_0x4af50e['domEvent']['y']},_0x12a7af===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x12a7af):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x28085d){do{const _0x250867=_0x28085d['getAttribute']('data-change-id');if(_0x250867)return _0x250867;_0x28085d=_0x28085d['parent'];}while(_0x28085d);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x25ebcb=>{for(const _0xb05bde of this['editor']['model']['markers'])_0x25ebcb['removeMarker'](_0xb05bde);});}}function Z(_0x1ba9f0,_0x46cebf){return(_0x5af3fe,_0x114116,_0x1edc00)=>{if(!_0x1edc00['consumable']['test'](_0x114116['markerRange'],_0x5af3fe['name']))return;const _0x43a892=_0x114116['markerRange']['getWalker'](),_0x2543f5=_0x114116['markerRange']['start'],_0x5e191b=_0x1ba9f0['model']['schema'];let _0x4ff103=null,_0x5a5507=null,_0x12028d=!0x1,_0x501227=!0x1;for(const _0x254e8b of _0x43a892){const _0x369770=_0x254e8b['item'];_0x12028d=_0x12028d||_0x5e191b['isContent'](_0x369770);const _0x5a236e=_0x1edc00['mapper']['toViewElement'](_0x369770);if(_0x5a236e&&_0x5a236e['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x254e8b['type']&&(_0x5e191b['isBlock'](_0x369770)&&!_0x5e191b['isLimit'](_0x369770)&&(_0x369770['nextSibling']||_0x2543f5['isAtEnd']?_0x4ff103&&_0x4ff103['parent']==_0x369770||(_0x4ff103=_0x369770,_0x51726a(_0x254e8b['previousPosition']),_0x501227=!0x0):_0x5a5507=_0x5a5507||_0x254e8b['previousPosition']));}function _0x51726a(_0x1c8bff){const _0x123b30=_0x1edc00['mapper']['toViewPosition'](_0x1c8bff),_0x104539=_0x1edc00['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x46cebf});_0x1edc00['writer']['insert'](_0x123b30,_0x104539),_0x1edc00['mapper']['bindElementToMarker'](_0x104539,_0x114116['markerName']);}_0x12028d||_0x501227||!_0x5a5507||_0x51726a(_0x5a5507);};}class pt extends _0x2e9ea6{constructor(_0x14dbfd){super(_0x14dbfd);const _0x34c4d2=_0x14dbfd['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x34c4d2,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x34c4d2,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x402523=this['editor'],_0x14a91e=_0x402523['plugins']['get'](d),_0x1a5e76=_0x14a91e['isReady']?_0x14a91e['diff']['newRevisionId']:null;_0x402523['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x1a5e76);}['refresh'](){const {isReady:_0x22690b,isEnabled:_0x2a533b,repository:_0x51d6e7,diff:_0x4c2589}=this['editor']['plugins']['get'](d),_0x839b70=_0x4c2589&&_0x51d6e7['getLaterVisibleRevision'](_0x4c2589['newRevisionId']);this['isEnabled']=_0x22690b&&_0x2a533b&&Boolean(_0x839b70);}}class _t extends _0x2e9ea6{['_step'];constructor(_0xa69399,{direction:_0x40b6d5}){super(_0xa69399);const _0x2e9f0c=_0xa69399['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x40b6d5?0x1:-0x1,this['listenTo'](_0x2e9f0c,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x2e9f0c,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x2e9f0c,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x4265cf=this['editor'],_0x406ede=_0x4265cf['plugins']['get'](d),{isNavigationMode:_0x5359fd,currentChangeNumber:_0x464bae}=_0x406ede;let _0x3e9091;if(_0x406ede['activeChange']=_0x5359fd?_0x406ede['diff']['changes']['get'](_0x464bae+this['_step']):_0x406ede['diff']['changes']['first'],_0x406ede['activeChange']['data']['isOnRoot'])_0x3e9091=_0x4265cf['editing']['view']['getDomRoot'](_0x406ede['activeChange']['rootName']);else{const _0x2ae274=_0x4265cf['model']['markers']['get']('revision:'+_0x406ede['activeChange']['id']);_0x3e9091=_0x4ddfb7(_0x4265cf['editing'],_0x2ae274);}_0x47297b({'target':_0x3e9091,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x336dec,currentChangeNumber:_0x40d3e1,numberOfChanges:_0x17f8f9,isReady:_0x4f8e35,isEnabled:_0x42555e}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x42555e&&_0x4f8e35&&_0x17f8f9)&&(!_0x336dec||(0x1===this['_step']?_0x40d3e1<_0x17f8f9-0x1:_0x40d3e1>0x0));}}class li extends ts{constructor(_0x524a81){super(_0x524a81);const _0x3c52e8=this['bindTemplate'],_0x57cd8c=new te(_0x524a81),_0x85144f=new te(_0x524a81);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',(_0x44a547,_0x43c4ae)=>_0x44a547&&_0x43c4ae>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x422976,_0x584239,_0x3f5932,_0x175b99)=>{if(!_0x422976)return m(_0x524a81,'Loading...');if(!_0x3f5932)return m(_0x524a81,'No\x20changes');const _0x52425=m(_0x524a81,'NUMBER_OF_CHANGES',_0x3f5932);return _0x175b99?m(_0x524a81,'X_OF_Y_CHANGES',[_0x584239+0x1,_0x3f5932]):_0x52425;}),_0x57cd8c['set']({'label':m(_0x524a81,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x2014.494a.75.75\x200\x200\x200\x201.197-.899l-.067-.089-6.992-8a.75.75\x200\x200\x200-1.05-.078l-.079.078-7.008\x208a.75.75\x200\x200\x200\x201.049\x201.066l.08-.078\x206.442-7.354\x206.428\x207.354z\x22/></svg>\x0a'}),_0x85144f['set']({'label':m(_0x524a81,'Show\x20next\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x205.506a.75.75\x200\x200\x201\x201.197.899l-.067.089-6.992\x208a.75.75\x200\x200\x201-1.05.078l-.079-.078-7.008-8a.75.75\x200\x200\x201\x201.049-1.066l.08.078\x206.442\x207.354\x206.428-7.354z\x22/></svg>\x0a'}),_0x57cd8c['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x85144f['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x57cd8c['on']('execute',()=>this['fire']('execute','backward')),_0x85144f['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',_0x3c52e8['if']('_isStatusLabelVisible','ck-hidden',_0x49cef4=>!_0x49cef4)]},'children':[{'text':_0x3c52e8['to']('isNavigationMode',_0x3a9ac5=>_0x3a9ac5?m(_0x524a81,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x524a81,'Total')+':\x20')}]},{'text':_0x3c52e8['to']('_statusText')}]},new _0x312ecc(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x57cd8c,_0x85144f]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x31326a{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x729a7c=this['editor']['editing']['view'];_0x729a7c['change'](_0x3d7a26=>{for(const _0x4a2973 of _0x729a7c['document']['roots'])_0x3d7a26['addClass'](le,_0x4a2973);});}['hide'](){const _0x2bc64e=this['editor']['editing']['view'];_0x2bc64e['change'](_0x5ccdce=>{for(const _0xd564cb of _0x2bc64e['document']['roots'])_0x5ccdce['removeClass'](le,_0xd564cb);});}}class g extends _0x31326a{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,ge];}['init'](){const _0x49a9ff=this['editor'],_0x1de406=_0x49a9ff['plugins']['get'](d),_0x17e488=_0x49a9ff['plugins']['get'](ge);_0x49a9ff['ui']['componentFactory']['add']('exitToEditing',_0x3945bb=>{const _0x118fd9=new te(_0x3945bb);return _0x118fd9['set']({'label':m(_0x3945bb,'Back\x20to\x20editing'),'icon':_0x57512f['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x118fd9,'execute',()=>{_0x49a9ff['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x118fd9;}),_0x49a9ff['ui']['componentFactory']['add']('restoreRevision',_0x47b2da=>{const _0x2393bb=new te(_0x47b2da);return _0x2393bb['set']({'label':m(_0x47b2da,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x2393bb['bind']('isEnabled')['to'](_0x49a9ff['commands']['get']('restoreRevision')),this['listenTo'](_0x2393bb,'execute',()=>_0x49a9ff['execute']('restoreRevision')),_0x2393bb;}),_0x49a9ff['ui']['componentFactory']['add']('changesNavigation',_0x3684d4=>{const _0x377f5b=new li(_0x3684d4),_0xaea742=_0x49a9ff['commands']['get']('showPreviousChange'),_0x2f2b46=_0x49a9ff['commands']['get']('showNextChange');return _0x377f5b['bind']('isBackwardNavigationEnabled')['to'](_0xaea742,'isEnabled'),_0x377f5b['bind']('isForwardNavigationEnabled')['to'](_0x2f2b46,'isEnabled'),_0x377f5b['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x1de406),this['listenTo'](_0x377f5b,'execute',(_0x584215,_0x11e7f5)=>{_0x49a9ff['execute']('forward'===_0x11e7f5?'showNextChange':'showPreviousChange');}),_0x377f5b;}),_0x17e488['show'](),_0x1de406['on']('change:isReady',(_0x5b8110,_0x3b4aa1,_0x9b57e7)=>{_0x9b57e7?_0x17e488['hide']():_0x17e488['show']();});}}class at extends _0x31f44d{['_resizeObserver']=null;constructor(_0x757562,_0x1cfd73){super(_0x757562,_0x1cfd73);const _0x3ec2e7=this['bindTemplate'];this['set']({'label':m(_0x757562,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x757562,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x3ec2e7['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new nt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0xb611fa=this['fieldView']['element'];this['_tooltipString']=_0xb611fa['scrollWidth']>_0xb611fa['clientWidth']&&_0xb611fa['value']||'';}}class ri extends ts{constructor(_0x46f322,_0x1ae507,_0x5e08ec){super(_0x46f322);const _0x5bdb4d=new _0x316f4d();_0x5bdb4d['set']({'content':'<svg\x20viewBox=\x220\x200\x2011\x2010\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20xmlns:xlink=\x22http://www.w3.org/1999/xlink\x22><path\x20d=\x22M5.5\x205C8.538\x205\x2011\x207.015\x2011\x209.5c0\x20.17-.011.336-.034.5H.034A3.732\x203.732\x200\x200\x201\x200\x209.5C0\x207.015\x202.462\x205\x205.5\x205zm0-5a2.5\x202.5\x200\x201\x201\x200\x205\x202.5\x202.5\x200\x200\x201\x200-5z\x22\x20/></svg>\x0a','viewBox':'0\x200\x2011\x2010'});const _0x2e5381=['ck','ck-revision-history-sidebar__revision-author'];_0x5e08ec&&_0x2e5381['push']('ck-revision-history-sidebar__revision-author_creator');const _0x296838=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x46f322,_0x5e08ec?'Revision\x20creator':'Revision\x20author')},'children':[_0x5bdb4d,_0x1ae507['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x2e5381},'children':_0x296838});}}function oi(_0x5d8efe,_0x56294e){const _0x3337d1=_0x5d8efe['bindTemplate'],_0x5d9ff6=_0x5d8efe['locale'],_0x5350fd=_0x10173a(_0x5d9ff6);_0x5350fd['panelPosition']='sw';const _0x995f54=function(_0x5a4eff,_0x2845b6){const _0x23af6d=function(_0x20ae2e,_0x4b7278){const _0x577e26=_0x20ae2e['locale'],_0x2bbba5={'Compare\x20against\x20selected':m(_0x577e26,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x577e26,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x577e26,'Restore\x20this\x20revision')};return _0x4b7278['map'](_0x46f403=>{const _0x5339f8=_0x2bbba5[_0x46f403['name']];return _0x5339f8&&_0x5339f8!==_0x46f403['name']&&(_0x46f403['name']=_0x5339f8),_0x46f403;});}(_0x5a4eff,_0x2845b6),_0x5f26d9=new _0x4367e2();for(const _0x1f2ee1 of _0x23af6d){const _0x45f218={'type':'button','model':new _0x290497({'label':_0x1f2ee1['name'],'class':_0x1f2ee1['class'],'withText':!0x0,'role':'menuitem','_action':_0x1f2ee1['action']})};_0x45f218['model']['bind']('isEnabled')['to'](_0x5a4eff,'isActionsDropdownOpen',_0x54d80c=>'function'!=typeof _0x1f2ee1['isEnabled']||(!_0x54d80c||_0x1f2ee1['isEnabled'](_0x5a4eff))),_0x5f26d9['add'](_0x45f218);}return _0x5f26d9;}(_0x5d8efe,_0x56294e);return _0x5d8efe['bind']('isActionsDropdownOpen')['to'](_0x5350fd,'isOpen'),_0x5350fd['buttonView']['set']({'label':m(_0x5d9ff6,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x57512f['threeVerticalDots']}),_0x5350fd['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x3337d1['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x3337d1['to'](_0x6eb3ea=>_0x6eb3ea['stopPropagation']())}}),_0x5350fd['on']('execute',_0x4d00c1=>{_0x5d8efe['isReady']&&'function'==typeof _0x4d00c1['source']['_action']&&_0x4d00c1['source']['_action'](_0x5d8efe);}),to(_0x5350fd,_0x995f54,{'role':'menu'}),_0x5350fd['listenTo'](_0x5d8efe,'change:isActionsDropdownOpen',(_0x7de56,_0x562b54,_0x4dee1e)=>{if(_0x4dee1e)for(const _0x27451c of _0x5350fd['listView']['items']){const _0x3036f0=_0x27451c['children']['first'],_0x51f0db=_0x56294e['find'](_0x385085=>_0x385085['action']===_0x3036f0['_action'])['isVisible'];_0x27451c['isVisible']=void 0x0===_0x51f0db||_0x51f0db(_0x5d8efe);}}),_0x5350fd;}class hi extends/* #__PURE__ -- @preserve */
|
|
26
|
-
ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(
|
|
23
|
+
import{ObservableMixin as _0x217fff,uid as _0x5d66aa,Collection as _0xcf6e93,logWarning as _0x3cc76b,FocusTracker as _0x2cdc04,KeystrokeHandler as _0x430444,scrollViewportToShowTarget as _0x170d53,ResizeObserver as nt,ElementReplacer as ht,CKEditorError as _0x5ea7ff}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x77b43c,set as _0x532155,unset as _0xf42061,isEqual as _0x466067}from'lodash-es';import{Plugin as _0x1420a4,PendingActions as _0x59b98d,icons as _0x247700,Command as _0x1d782e,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x4f378f,getMarkerDomElement as _0x40ad99,ConfirmMixin as ti,sanitizeEditorConfig as _0xbfc40b}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x57bee1,Element as ft,Range as vt,ViewUIElement as _0x28e93a,ViewRawElement as _0x1e3674,ViewEmptyElement as _0x1ac8e8,ViewAttributeElement as _0x4e3bae,ViewContainerElement as _0x32a864,Position as gt,ViewText as _0xe73c6d,ViewElement as _0x5e2f0f,DocumentFragment as mt,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x338fd2,submitHandler as _0x53558e,LabeledFieldView as _0xe538c1,createLabeledInputText as _0x368611,createDropdown as _0x1e0a60,ListView as _0x4646f5,ListItemView as _0x503a4e,ButtonView as te,MenuBarMenuView as _0x827bd6,MenuBarMenuListView as _0x170de9,MenuBarMenuListItemView as _0x4b4311,MenuBarMenuListItemButtonView as _0x2b7259,ContextualBalloon as _0x1e2672,ToolbarSeparatorView as _0x4101c0,IconView as _0x151b45,addListToDropdown as to,ViewModel as _0x58fc48,EditorUI as st,normalizeToolbarConfig as ot,BoxedEditorUIView as ct,StickyPanelView as ut,ToolbarView as lt,InlineEditableUIView as dt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0xd4c326}from'luxon';class a extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x217fff(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x279f9a){super(),this['id']=_0x279f9a['id']||_0x5d66aa(),this['creator']=_0x279f9a['creator']||null,this['authors']=_0x279f9a['authors']||[],this['diffData']=_0x279f9a['diffData']||null,this['toVersion']=_0x279f9a['toVersion']||0x0,this['fromVersion']=_0x279f9a['fromVersion']||0x0,this['set']('name',_0x279f9a['name']||''),this['set']('createdAt',_0x279f9a['createdAt']||new Date()),this['set']('attributes',_0x279f9a['attributes']||{});}['setName'](_0x59dd10){this['_update']({'name':_0x59dd10});}['setAttribute'](_0x44fb92,_0x3a07fa){const _0x5cadbc=_0x77b43c(this['attributes']);_0x532155(_0x5cadbc,_0x44fb92,_0x3a07fa),this['_update']({'attributes':_0x5cadbc});}['removeAttribute'](_0x75fa07){const _0x149c26=_0x77b43c(this['attributes']);_0xf42061(_0x149c26,_0x75fa07),this['_update']({'attributes':_0x149c26});}['_update'](_0x251944,_0x42a129=!0x1){let _0x24562d=!0x1;const _0xb5f985={'id':this['id']},_0x5d1648=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0xe876ad of _0x5d1648){const _0x56cdb4=_0x251944[_0xe876ad];void 0x0!==_0x56cdb4&&_0x56cdb4!==this[_0xe876ad]&&(this[_0xe876ad]=_0x56cdb4,_0xb5f985[_0xe876ad]=_0x56cdb4,_0x24562d=!0x0);}_0x24562d&&(_0xb5f985['authors']&&(_0xb5f985['authorsIds']=_0xb5f985['authors']['map'](_0x331f5e=>_0x331f5e['id']),delete _0xb5f985['authors']),this['fire']('_update',_0xb5f985,_0x42a129));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x3e57ac=>_0x3e57ac['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x1420a4{['_revisions'];static get['requires'](){return[_0x4f378f];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x4d1414){super(_0x4d1414),this['_revisions']=new _0xcf6e93();}['afterInit'](){!async function(_0x4dd962){const _0x4a3e05=_0x183b43([0x57,0x43,0x47,0x32,0x79,0x34,0x4e,0x72,0x49,0x61,0x31,0x6f,0x66,0x62,0x77,0x56,0x36,0x74,0x37,0x39,0x6e,0x4c,0x4f,0x33,0x38,0x67,0x6c,0x50,0x30,0x44,0x73,0x4a,0x69,0x59,0x76,0x5a,0x52,0x42,0x78,0x75,0x51,0x41,0x53,0x71,0x55,0x6d,0x70,0x46,0x6b,0x68,0x35,0x58,0x4b,0x7a,0x4d,0x48,0x45,0x64,0x54,0x65,0x6a,0x63]),_0x1d3969=0xeb829,_0x2a051e=0x23bf4070,_0x2b2b3a=0x23b82090^_0x2a051e,_0x2c0a5d=window[_0x183b43([0x44,0x61,0x74,0x65])][_0x183b43([0x6e,0x6f,0x77])](),_0x214631=_0x4dd962[_0x183b43([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x520299=new window[(_0x183b43([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3ac214=>{_0x214631[_0x183b43([0x6f,0x6e,0x63,0x65])](_0x183b43([0x72,0x65,0x61,0x64,0x79]),_0x3ac214);}),_0x2d4663={[_0x183b43([0x6b,0x74,0x79])]:_0x183b43([0x45,0x43]),[_0x183b43([0x75,0x73,0x65])]:_0x183b43([0x73,0x69,0x67]),[_0x183b43([0x63,0x72,0x76])]:_0x183b43([0x50,0x2d,0x32,0x35,0x36]),[_0x183b43([0x78])]:_0x183b43([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]),[_0x183b43([0x79])]:_0x183b43([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]),[_0x183b43([0x61,0x6c,0x67])]:_0x183b43([0x45,0x53,0x32,0x35,0x36])},_0x2f40dd=_0x214631[_0x183b43([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x183b43([0x67,0x65,0x74])](_0x183b43([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1c2c94(){let _0x375cb2,_0x4eab7e=null,_0x5c1953=null;try{if(_0x2f40dd==_0x183b43([0x47,0x50,0x4c]))return _0x183b43([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x375cb2=_0x47f9fe(),!_0x375cb2)return _0x183b43([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x375cb2[_0x183b43([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5c1953=_0x950af8(_0x375cb2[_0x183b43([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x375cb2[_0x183b43([0x6a,0x74,0x69])])),await _0x47ba7d()?_0x555a86()?_0x3e9760()?_0x183b43([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x235fa1()?(_0x375cb2[_0x183b43([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x183b43([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4eab7e=_0x1c89b7(_0x183b43([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x375cb2[_0x183b43([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x183b43([0x74,0x72,0x69,0x61,0x6c])&&(_0x4eab7e=_0x1c89b7(_0x183b43([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4270d6()):_0x183b43([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x183b43([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x183b43([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x34a87e){return _0x183b43([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3e9760(){const _0x334f3f=[_0x183b43([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x183b43([0x74,0x72,0x69,0x61,0x6c])][_0x183b43([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x375cb2[_0x183b43([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2c0a5d/0x3e8:0xe10*_0x2b2b3a;return _0x375cb2[_0x183b43([0x65,0x78,0x70])]<_0x334f3f;}function _0x555a86(){const _0x5aa3a4=_0x375cb2[_0x183b43([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x5aa3a4)return!0x1;if(_0x5aa3a4[_0x183b43([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x183b43([0x2a])))return!0x0;if(_0x5aa3a4[_0x183b43([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x183b43([0x52,0x48])))return!0x0;if(_0x5aa3a4[_0x183b43([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x183b43([0x52,0x52,0x48]))){if(_0x4d0bdd())return!0x0;if(_0x4d9606()||_0x667b67())return!0x0;}return!0x1;}function _0x235fa1(){const _0x322e92=_0x375cb2[_0x183b43([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x322e92||0x0==_0x322e92[_0x183b43([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x14a8b3}=new URL(window[_0x183b43([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x322e92[_0x183b43([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14a8b3))return!0x0;const _0x1fceab=_0x14a8b3[_0x183b43([0x73,0x70,0x6c,0x69,0x74])](_0x183b43([0x2e]));return _0x322e92[_0x183b43([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1b5d37=>_0x1b5d37[_0x183b43([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x183b43([0x2a])))[_0x183b43([0x6d,0x61,0x70])](_0x491e6a=>_0x491e6a[_0x183b43([0x73,0x70,0x6c,0x69,0x74])](_0x183b43([0x2e])))[_0x183b43([0x73,0x6f,0x6d,0x65])](_0x33c6cb=>_0x1fceab[_0x183b43([0x65,0x76,0x65,0x72,0x79])]((_0x386900,_0x48b710)=>_0x33c6cb[_0x48b710]===_0x386900||_0x33c6cb[_0x48b710]===_0x183b43([0x2a])));}function _0x4270d6(){return _0x4eab7e&&_0x5c1953?new window[(_0x183b43([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x40da9e,_0xa7ea43)=>{_0x4eab7e[_0x183b43([0x74,0x68,0x65,0x6e])](_0x40da9e,_0xa7ea43),_0x5c1953[_0x183b43([0x74,0x68,0x65,0x6e])](_0x9c0b5=>{_0x9c0b5!=_0x183b43([0x56,0x61,0x6c,0x69,0x64])&&_0x40da9e(_0x9c0b5);},_0xa7ea43);}):_0x4eab7e||_0x5c1953||_0x183b43([0x56,0x61,0x6c,0x69,0x64]);}}function _0x950af8(_0x3e0ed7,_0x5b9cab){return new window[(_0x183b43([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2bfd4d=>{if(_0x3c5145())return _0x2bfd4d(_0x183b43([0x56,0x61,0x6c,0x69,0x64]));_0x121e18(),_0x214631[_0x183b43([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x183b43([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x11d527=!0x1;const _0x3fa7ac=_0x5d66aa();function _0x5f28fd(_0x23ea99){return!!_0x23ea99&&(typeof _0x23ea99===_0x183b43([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x23ea99===_0x183b43([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x23ea99[_0x183b43([0x74,0x68,0x65,0x6e])]===_0x183b43([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x23ea99[_0x183b43([0x63,0x61,0x74,0x63,0x68])]===_0x183b43([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x59372e(_0x2603ae){_0xfd6f2e(_0x2603ae)[_0x183b43([0x74,0x68,0x65,0x6e])](_0x62728c=>{if(!_0x62728c||_0x62728c[_0x183b43([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x183b43([0x6f,0x6b]))return _0x183b43([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xb34bb0(_0x580d5e(_0x3fa7ac+_0x5b9cab))!=_0x62728c[_0x183b43([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x183b43([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x183b43([0x56,0x61,0x6c,0x69,0x64]);})[_0x183b43([0x74,0x68,0x65,0x6e])](_0x44237b=>(_0x4e4419(),_0x44237b),()=>{const _0x23f357=_0x1d14d7();return null==_0x23f357?(_0x4e4419(),_0x183b43([0x56,0x61,0x6c,0x69,0x64])):_0x183b43(_0x2c0a5d-_0x23f357>(0x7b3c470^_0x2a051e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x183b43([0x74,0x68,0x65,0x6e])](_0x2bfd4d)[_0x183b43([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2bfd4d(_0x183b43([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xf5a3da=0x2389aef0^_0x2a051e;function _0x4e4419(){const _0x2e5143=_0x183b43([0x6c,0x6c,0x63,0x74,0x2d])+_0xb34bb0(_0x580d5e(_0x3e0ed7)),_0x581d51=_0x1d6793(_0xb34bb0(window[_0x183b43([0x4d,0x61,0x74,0x68])][_0x183b43([0x63,0x65,0x69,0x6c])](_0x2c0a5d/_0xf5a3da)));window[_0x183b43([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x183b43([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2e5143,_0x581d51);}function _0x1d14d7(){const _0x318907=_0x183b43([0x6c,0x6c,0x63,0x74,0x2d])+_0xb34bb0(_0x580d5e(_0x3e0ed7)),_0x556dbc=window[_0x183b43([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x183b43([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x318907);return _0x556dbc?window[_0x183b43([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1d6793(_0x556dbc),0x10)*_0xf5a3da:null;}function _0xfd6f2e(_0x22f3ca){return new window[(_0x183b43([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x484598,_0x8c5ca7)=>{_0x22f3ca[_0x183b43([0x74,0x68,0x65,0x6e])](_0x484598,_0x8c5ca7),window[_0x183b43([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x8c5ca7,0x23be94b0^_0x2a051e);});}}_0x214631[_0x183b43([0x6f,0x6e])](_0x183b43([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1370d3,_0x3460ee)=>{if(_0x3460ee[0x0]!=_0x3e0ed7)return _0x2bfd4d(_0x183b43([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3460ee[0x1]={..._0x3460ee[0x1],[_0x183b43([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3fa7ac};},{[_0x183b43([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x183b43([0x68,0x69,0x67,0x68])}),_0x214631[_0x183b43([0x6f,0x6e])](_0x183b43([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x295dc6=>{_0x5f28fd(_0x295dc6[_0x183b43([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x11d527=!0x0,_0x59372e(_0x295dc6[_0x183b43([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x183b43([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x183b43([0x6c,0x6f,0x77])}),_0x520299[_0x183b43([0x74,0x68,0x65,0x6e])](()=>{_0x11d527||_0x2bfd4d(_0x183b43([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3c5145(){return _0x214631[_0x183b43([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x183b43([0x76,0x69,0x65,0x77])][_0x183b43([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x183b43([0x61,0x75,0x74,0x6f]);}function _0x121e18(){_0x214631[_0x183b43([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x183b43([0x76,0x69,0x65,0x77])][_0x183b43([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x183b43([0x61,0x75,0x74,0x6f]);}}function _0x1c89b7(_0x16f011){const _0x249993=[new window[(_0x183b43([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4e6f03=>setTimeout(_0x4e6f03,0x23b67ebc^_0x2a051e)),_0x520299[_0x183b43([0x74,0x68,0x65,0x6e])](()=>new window[(_0x183b43([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x189242=>{const _0x35c99c=0x23bf4077^_0x2a051e,_0x45c2e1=_0x4dd962[_0x183b43([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x3cbd41(){_0x45c2e1[_0x183b43([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x35c99c&&_0x189242();}_0x3cbd41(),_0x45c2e1[_0x183b43([0x6f,0x6e])](_0x183b43([0x61,0x64,0x64]),_0x3cbd41);})),new window[(_0x183b43([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4140e9=>{function _0x206e86(){for(const _0x57c4ae in window)if(window[_0x183b43([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x183b43([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x57c4ae))&&window[_0x57c4ae]==_0x1d3969)return _0x4140e9();_0x214631[_0x183b43([0x73,0x74,0x61,0x74,0x65])]!=_0x183b43([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x183b43([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x206e86,0x23bf53f8^_0x2a051e);}_0x439c06(_0x183b43([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x206e86();})];return window[_0x183b43([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x183b43([0x72,0x61,0x63,0x65])](_0x249993)[_0x183b43([0x74,0x68,0x65,0x6e])](()=>_0x16f011);}async function _0x132f62(){if(await _0x520299,_0x439c06(_0x183b43([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x57277b=_0x4dd962[_0x183b43([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x3f51eb=_0x4dd962[_0x183b43([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])](_0x57277b[_0x183b43([0x69,0x64])]),_0x457e88=_0x4baec3(_0x183b43([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x457e88[_0x183b43([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x57277b['id'],_0x3f51eb?_0x3f51eb['id']:null,!0x0),_0x457e88[_0x183b43([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x183b43([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x457e88[_0x183b43([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x457e88[_0x183b43([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x232662,void(_0x457e88[_0x183b43([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x232662);}if(_0x439c06(_0x183b43([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x5230e7=_0x4baec3(_0x183b43([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x5230e7[_0x183b43([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x183b43([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x5230e7[_0x183b43([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x5230e7[_0x183b43([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x232662,_0x5230e7[_0x183b43([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x232662;}_0x214631[_0x183b43([0x6d,0x6f,0x64,0x65,0x6c])][_0x183b43([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x232662,_0x214631[_0x183b43([0x6d,0x6f,0x64,0x65,0x6c])][_0x183b43([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x232662,_0x214631[_0x183b43([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x183b43([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4d0bdd(){return _0x439c06(_0x183b43([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4baec3(_0x183b43([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x183b43([0x73,0x74,0x61,0x74,0x65])]==_0x183b43([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4d9606(){return _0x439c06(_0x183b43([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 _0x667b67(){return _0x439c06(_0x183b43([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x3e8c09(_0x424f69){const _0x3016ca=_0xe1f1b4();_0x214631[_0x3016ca]=_0x183b43([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])+_0x424f69,_0x424f69[_0x183b43([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x183b43([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0xe1f1b4()]=_0x1d3969),_0x424f69!=_0x183b43([0x56,0x61,0x6c,0x69,0x64])&&_0x132f62();}function _0xe1f1b4(){const _0x1296bd=window[_0x183b43([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x183b43([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x183b43([0x6e,0x6f,0x77])]())[_0x183b43([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x183b43([0x2e]),'');let _0x1d7d69=_0x183b43([0x57]);for(let _0x309b1e=0x0;_0x309b1e<_0x1296bd[_0x183b43([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x309b1e+=0x2){let _0x395912=window[_0x183b43([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1296bd[_0x183b43([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x309b1e,_0x309b1e+0x2));_0x395912>=_0x4a3e05[_0x183b43([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x395912-=_0x4a3e05[_0x183b43([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1d7d69+=_0x4a3e05[_0x395912];}return _0x1d7d69;}function _0x47f9fe(){const _0x5bec8d=_0x2f40dd[_0x183b43([0x73,0x70,0x6c,0x69,0x74])](_0x183b43([0x2e]));if(0x3!=_0x5bec8d[_0x183b43([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x7bb2b(_0x5bec8d[0x1]);function _0x7bb2b(_0x565276){const _0xff69b7=_0x2163cb(_0x565276);return _0xff69b7&&_0x2b7324()?_0xff69b7:null;function _0x2b7324(){const _0x34dbd7=_0xff69b7[_0x183b43([0x6a,0x74,0x69])],_0x590af7=window[_0x183b43([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x34dbd7[_0x183b43([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x34dbd7[_0x183b43([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x589f2d={..._0xff69b7,[_0x183b43([0x6a,0x74,0x69])]:_0x34dbd7[_0x183b43([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x34dbd7[_0x183b43([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x589f2d[_0x183b43([0x76,0x63])],_0x580d5e(_0x589f2d)==_0x590af7;}}}async function _0x47ba7d(){let _0x56304f=!0x0;try{const _0x1cca61=_0x2f40dd[_0x183b43([0x73,0x70,0x6c,0x69,0x74])](_0x183b43([0x2e])),[_0x122a9f,_0x47d55d,_0x1569d2]=_0x1cca61;return _0x5901cf(_0x122a9f),await _0x3a5c8a(_0x122a9f,_0x47d55d,_0x1569d2),_0x56304f;}catch(_0x2ed658){return!0x1;}function _0x5901cf(_0x51529e){const _0x4f5ead=_0x2163cb(_0x51529e);_0x4f5ead&&_0x4f5ead[_0x183b43([0x61,0x6c,0x67])]==_0x183b43([0x45,0x53,0x32,0x35,0x36])||(_0x56304f=!0x1);}async function _0x3a5c8a(_0xc4efe3,_0x6995d7,_0x1e71a7){const _0x1ababb=window[_0x183b43([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x183b43([0x66,0x72,0x6f,0x6d])](_0x5dd555(_0x1e71a7),_0x2f9b70=>_0x2f9b70[_0x183b43([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x25aab1=new window[(_0x183b43([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x183b43([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xc4efe3+_0x183b43([0x2e])+_0x6995d7),_0x2ce462=window[_0x183b43([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x183b43([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2ce462)return;const _0x4d83e5=await _0x2ce462[_0x183b43([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x183b43([0x6a,0x77,0x6b]),_0x2d4663,{[_0x183b43([0x6e,0x61,0x6d,0x65])]:_0x183b43([0x45,0x43,0x44,0x53,0x41]),[_0x183b43([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x183b43([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x183b43([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2ce462[_0x183b43([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x183b43([0x6e,0x61,0x6d,0x65])]:_0x183b43([0x45,0x43,0x44,0x53,0x41]),[_0x183b43([0x68,0x61,0x73,0x68])]:{[_0x183b43([0x6e,0x61,0x6d,0x65])]:_0x183b43([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4d83e5,_0x1ababb,_0x25aab1)||(_0x56304f=!0x1);}}function _0x2163cb(_0x1d8faa){return _0x1d8faa[_0x183b43([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x183b43([0x65,0x79]))?JSON[_0x183b43([0x70,0x61,0x72,0x73,0x65])](_0x5dd555(_0x1d8faa)):null;}function _0x5dd555(_0x1bd55a){return window[_0x183b43([0x61,0x74,0x6f,0x62])](_0x1bd55a[_0x183b43([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x183b43([0x2b]))[_0x183b43([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x183b43([0x2f])));}function _0x580d5e(_0x35e37a){let _0x14781c=0x1505;function _0x59f42d(_0x5702a2){for(let _0x58ac19=0x0;_0x58ac19<_0x5702a2[_0x183b43([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x58ac19++){const _0x187695=_0x5702a2[_0x183b43([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x58ac19);_0x14781c=(_0x14781c<<0x5)+_0x14781c+_0x187695,_0x14781c&=_0x14781c;}}function _0x14e871(_0x435da2){Array[_0x183b43([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x435da2)?_0x435da2[_0x183b43([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x14e871):_0x435da2&&typeof _0x435da2==_0x183b43([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x183b43([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x435da2)[_0x183b43([0x73,0x6f,0x72,0x74])]()[_0x183b43([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x34ec92,_0x2c2b6b])=>{_0x59f42d(_0x34ec92),_0x14e871(_0x2c2b6b);}):_0x59f42d(window[_0x183b43([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x435da2));}return _0x14e871(_0x35e37a),_0x14781c>>>0x0;}function _0xb34bb0(_0x54a529){return _0x54a529[_0x183b43([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x183b43([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x183b43([0x30]));}function _0x1d6793(_0x4e3a8a){return _0x4e3a8a[_0x183b43([0x73,0x70,0x6c,0x69,0x74])]('')[_0x183b43([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x183b43([0x6a,0x6f,0x69,0x6e])]('');}function _0x439c06(_0x2a1bc6){return _0x214631[_0x183b43([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x183b43([0x68,0x61,0x73])](_0x2a1bc6);}function _0x4baec3(_0x3ff686){return _0x214631[_0x183b43([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x183b43([0x67,0x65,0x74])](_0x3ff686);}function _0x232662(){}function _0x183b43(_0x3e66eb){return _0x3e66eb['map'](_0x27721a=>String['fromCharCode'](_0x27721a))['join']('');}_0x3e8c09(await _0x1c2c94());}(this);}['createRevision'](_0x58f58f){const _0x1ba703=this['editor']['plugins']['get']('Users');return new a({'id':_0x58f58f['id'],'name':_0x58f58f['name'],'creator':_0x58f58f['creatorId']?_0x1ba703['getUser'](_0x58f58f['creatorId']):null,'diffData':_0x58f58f['diffData']||_0x58f58f['data'],'authors':_0x58f58f['authorsIds']['map'](_0x20cf79=>_0x1ba703['getUser'](_0x20cf79)),'createdAt':new Date(_0x58f58f['createdAt']),'attributes':_0x58f58f['attributes'],'fromVersion':_0x58f58f['fromVersion'],'toVersion':_0x58f58f['toVersion']});}['addRevision'](_0x17a8da,_0x5a0dbd=0x0){this['_revisions']['add'](_0x17a8da,_0x5a0dbd);}['getRevision'](_0x4a24b7){return this['_revisions']['get'](_0x4a24b7);}['getRevisions'](_0x590bae={'toJSON':!0x1}){const _0x418fe4=Array['from'](this['_revisions']);return _0x418fe4['reverse'](),_0x590bae['toJSON']?_0x418fe4['map'](_0x290da9=>_0x290da9['toJSON']()):_0x418fe4;}['getIndex'](_0x35c687){return this['_revisions']['getIndex'](_0x35c687);}['getEarlierVisibleRevision'](_0x24bb32){const [,_0x16afda]=this['getRevisionsIterator'](_0x24bb32,{'direction':'earlier'});return _0x16afda;}['getLaterVisibleRevision'](_0x4a9757){const [,_0x595af4]=this['getRevisionsIterator'](_0x4a9757,{'direction':'later'});return _0x595af4;}['getRevisionsInDiff'](_0x3e362a){const _0x576b72=[];for(const _0x16c0fa of this['getRevisionsIterator'](_0x3e362a['newRevisionId']))if(_0x576b72['push'](_0x16c0fa),_0x16c0fa['id']===_0x3e362a['oldRevisionId'])break;return _0x576b72;}*['getRevisionsIterator'](_0x1014a8,{direction:_0x53dd6d='earlier',filter:_0x2cc585=()=>!0x0}={}){const _0x23e5fd='earlier'===_0x53dd6d?0x1:-0x1;let _0x237266=this['_revisions']['get'](_0x1014a8),_0x31e67a=this['getIndex'](_0x237266);for(yield _0x237266;_0x237266;){if(_0x31e67a+=_0x23e5fd,_0x237266=this['getRevision'](_0x31e67a),!_0x237266)return;_0x2cc585(_0x237266)&&(yield _0x237266);}}}function m(_0x34f1ff,_0x2190d6,_0x109833){const t=_0x34f1ff['t'];switch(_0x2190d6){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'},_0x109833);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x109833);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const P={'c':_0x32a864,'a':_0x4e3bae,'e':_0x1ac8e8,'r':_0x1e3674,'u':_0x28e93a};class l extends _0x1420a4{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x4f378f,j,_0x59b98d];}constructor(_0x2fc1b3){super(_0x2fc1b3),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x5633c5=_0x5d66aa();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x5633c5},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x54597e=this['repository']['getRevision'](0x0),_0x28075c=_0x54597e&&null===_0x54597e['creator']?_0x54597e:null;if(this['_continueCurrentRevision']=!!_0x28075c&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x383bb1=this['_source']['getCurrentRevisionId'](),_0x598736=this['repository']['getRevision'](_0x383bb1);if(_0x598736)this['_startingVersion']=_0x598736['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0xd2a274=this['_source']['history']['_operations']['find'](_0x3e03b0=>!_0x3e03b0['_isInit']),_0x23c03a=_0xd2a274?_0xd2a274['baseVersion']:this['_source']['history']['version'];_0x54597e?(_0x54597e['toVersion']<_0x23c03a&&_0x54597e['_update']({'toVersion':_0x23c03a}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x28075c['id'],this['_startingVersion']=_0x28075c['fromVersion']):(this['_startingVersion']=_0x54597e['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x23c03a,this['_continueCurrentRevision']=!0x1);}}else _0x28075c&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x28075c['toVersion'],this['editor']['model']['document']['history']['version']),_0x28075c['fromVersion']===_0x28075c['toVersion']?(0x0!==_0x28075c['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x28075c['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x28075c['id'],this['_startingVersion']=_0x28075c['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',_0x45581e=>!_0x45581e),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x29c658=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x279542;for(const _0x812ad8 in _0x29c658){const _0x50185d=_0x812ad8,_0x15e33a=_0x29c658[_0x50185d];if('revisionHistoryLicenseKeyValid'==_0x15e33a||'revisionHistoryLicenseKeyInvalid'==_0x15e33a||'revisionHistoryLicenseKeyExpired'==_0x15e33a||'revisionHistoryLicenseKeyDomainLimit'==_0x15e33a||'revisionHistoryLicenseKeyNotAllowed'==_0x15e33a||'revisionHistoryLicenseKeyEvaluationLimit'==_0x15e33a||'revisionHistoryLicenseKeyTrialLimit'==_0x15e33a||'revisionHistoryLicenseKeyUsageLimit'==_0x15e33a){delete _0x29c658[_0x50185d],_0x279542=_0x15e33a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x279542&&_0x29c658['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x279542&&_0x29c658['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x279542&&_0x29c658['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x279542&&_0x29c658['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x279542&&_0x29c658['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x279542&&_0x29c658['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x279542&&_0x29c658['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x2af2aa=this['repository']['getRevision'](0x0),_0x338a2f=await this['getRevisionDocumentData'](_0x2af2aa),_0x27268e=await this['getRevisionRootsAttributes'](_0x2af2aa);this['_replaceEditorDataWithRevisionData'](_0x338a2f,_0x27268e);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x259d8f){this['_source']=_0x259d8f;}async['update'](){const _0x124563=await this['_source']['getLatestVersion']();if(_0x124563>this['currentRevision']['toVersion']){await this['_loadState']();const _0x2060f3=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x124563});_0x2060f3['authors']=_0x2060f3['authorsIds']['map'](_0x37d773=>this['editor']['plugins']['get']('Users')['getUser'](_0x37d773)),this['currentRevision']['_update'](_0x2060f3);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0x3b41e9={},_0x3012e9=null){const _0x406221=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x3012e9>this['currentRevision']['toVersion']&&(_0x3012e9=null),null===_0x3012e9&&(_0x3012e9=await this['_source']['getLatestVersion']());const _0x3453fd=this['_getFromVersion'](_0x3012e9),_0x3a185e=this['buildRevisionData']({'from':_0x3453fd,'to':_0x3012e9});if(this['currentRevision']['toVersion']<_0x3012e9){const _0x4c4b34=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x3012e9,'to':_0x3012e9});_0x4c4b34['authors']=[],_0x4c4b34['authorsIds']=[],_0x4c4b34['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x4c4b34,!0x0),delete _0x4c4b34['authors'],_0x406221['push'](_0x4c4b34);}_0x3b41e9['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x3b41e9['name']=_0x3b41e9['name']||null,_0x3b41e9['id']=_0x3b41e9['id']||_0x5d66aa(),_0x3b41e9={..._0x3b41e9,..._0x3a185e};const _0x506d0b=this['addRevisionData'](_0x3b41e9);_0x406221['push'](_0x3b41e9);const _0x2648f3=this['repository']['getIndex'](_0x506d0b);if(0x0!==_0x2648f3){const _0x7d97ba=this['repository']['getRevision'](_0x2648f3-0x1);if(_0x7d97ba['fromVersion']!==_0x3012e9){const _0x21465b=this['_revisionDataBuilder']['getData'](_0x3012e9,_0x7d97ba['toVersion']),_0x5db9b3={'id':_0x7d97ba['id'],'diffData':_0x21465b['diffData'],'authorsIds':_0x21465b['authorsIds'],'authors':_0x21465b['authorsIds']['map'](_0x4cbb1d=>this['editor']['plugins']['get']('Users')['getUser'](_0x4cbb1d)),'fromVersion':_0x3012e9};_0x7d97ba===this['currentRevision']&&(_0x5db9b3['createdAt']=new Date(_0x3b41e9['createdAt']['getTime']()+0xa)),_0x7d97ba['_update'](_0x5db9b3,!0x0),delete _0x5db9b3['authors'],_0x406221['push'](_0x5db9b3);}}if(this['adapter']){for(const _0x54a987 of _0x406221)this['_bufferUpdate'](_0x54a987['id'],_0x54a987,!0x0);this['sendBufferedUpdates']();}return _0x506d0b;}['addRevisionData'](_0x518661){const _0x888eb8=this['repository']['createRevision'](_0x518661);return this['adapter']&&_0x888eb8['on']('_update',(_0x50859b,_0x2e7a07,_0x229c6e)=>{_0x229c6e||(this['_bufferUpdate'](_0x2e7a07['id'],_0x2e7a07,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x888eb8,this['_findInsertionIndex'](_0x888eb8)),_0x888eb8;}async['getRevisionDocumentData'](_0x33b024){await this['_loadRevisionData'](_0x33b024);const _0x17f0c9={};for(const _0xe1652e in _0x33b024['diffData']){if(_0x33b024['diffData'][_0xe1652e]['attachChange']&&!_0x33b024['diffData'][_0xe1652e]['attachChange']['isAttached'])continue;const _0x582f1f=this['_removeRevisionMarkers'](JSON['parse'](_0x33b024['diffData'][_0xe1652e]['insertions'])),_0x2786df=this['editor']['editing']['view']['document'],_0x5be6fb=new _0x57bee1(_0x2786df,_0x582f1f['map'](_0x36ae3e=>C(_0x36ae3e,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x17f0c9[_0xe1652e]=this['editor']['data']['processor']['toData'](_0x5be6fb),this['editor']['data']['processor']['useFillerType']('default');}return _0x17f0c9;}async['getRevisionRootsAttributes'](_0x34acc7){await this['_loadRevisionData'](_0x34acc7);const _0x42a34b={};for(const _0x230024 in _0x34acc7['diffData'])_0x34acc7['diffData'][_0x230024]['attachChange']&&!_0x34acc7['diffData'][_0x230024]['attachChange']['isAttached']||(_0x42a34b[_0x230024]=_0x34acc7['diffData'][_0x230024]['attributesAfter']||{});return _0x42a34b;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0xb5e886=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x4f55c7=0x0;_0x4f55c7<_0xb5e886['length'];_0x4f55c7++){const _0x126e6d=_0xb5e886[_0x4f55c7];let _0x3a6c6a=!0x1;for(const _0x16bb4f of Object['keys'](_0x126e6d))void 0x0===_0x126e6d[_0x16bb4f]?delete _0x126e6d[_0x16bb4f]:'id'!==_0x16bb4f&&(_0x3a6c6a=!0x0);_0x3a6c6a||(_0xb5e886[_0x4f55c7]=null);}if(_0xb5e886=_0xb5e886['filter'](_0x52cdf6=>null!==_0x52cdf6),!_0xb5e886['length'])return;for(let _0x3fa82a=0x0;_0x3fa82a<_0xb5e886['length'];_0x3fa82a++){const _0x596d05=_0xb5e886[_0x3fa82a];void 0x0!==_0x596d05['fromVersion']&&void 0x0===_0x596d05['toVersion']&&(_0x596d05['toVersion']=this['repository']['getRevision'](_0x596d05['id'])['toVersion']),void 0x0!==_0x596d05['toVersion']&&void 0x0===_0x596d05['fromVersion']&&(_0x596d05['fromVersion']=this['repository']['getRevision'](_0x596d05['id'])['fromVersion']);}const _0x257af4=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0xb5e886,_0x257af4)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x34970d=>{if(_0x34970d){for(const _0x38d6ad of _0x34970d)this['setRevisionData']({'id':_0x38d6ad['id'],'createdAt':_0x38d6ad['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x9b79ba,_0x26f1b5){let _0xdfbfd4=this['editor']['config']['get']('initialData'),_0x2a1072=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0xdfbfd4){_0xdfbfd4={};for(const _0xfffd4a of this['editor']['model']['document']['getRootNames']())_0xdfbfd4[_0xfffd4a]='';}if('string'==typeof _0xdfbfd4&&(_0xdfbfd4={'main':_0xdfbfd4}),void 0x0===_0x2a1072){_0x2a1072={};for(const _0x2a2b29 of this['editor']['model']['document']['getRootNames']())_0x2a1072[_0x2a2b29]={};}let _0x4bbe91=!0x1;const _0x396ab4=Object['keys'](_0xdfbfd4),_0x466d91=Object['keys'](_0x9b79ba);for(const _0x5f34de of _0x396ab4){if(_0xdfbfd4[_0x5f34de]!==_0x9b79ba[_0x5f34de]&&''!==_0xdfbfd4[_0x5f34de]['trim']()){_0x4bbe91=!0x0;break;}if(!_0x466067(_0x2a1072[_0x5f34de],_0x26f1b5[_0x5f34de])&&Object['keys'](_0x2a1072[_0x5f34de])['length']>0x0){_0x4bbe91=!0x0;break;}}_0x4bbe91||(_0x4bbe91=_0x466d91['some'](_0x115c54=>!this['editor']['model']['document']['getRoot'](_0x115c54))),_0x4bbe91&&_0x3cc76b('editor-initial-data-replaced-with-revision-data',{'editorData':_0xdfbfd4,'editorRootsAttributes':_0x2a1072,'revisionData':_0x9b79ba,'revisionRootsAttributes':_0x26f1b5}),this['editor']['config']['set']('initialData',_0x9b79ba),this['editor']['config']['set']('rootsAttributes',_0x26f1b5);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x1b3276=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x1b3276['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x14166c){const _0x1d16a1=this['repository']['getRevisions']();_0x1d16a1['reverse']();let _0x2b5019=0x0;for(;_0x2b5019<_0x1d16a1['length'];){const _0x3350d8=_0x1d16a1[_0x2b5019];if(_0x3350d8===this['currentRevision']){_0x2b5019++;continue;}if(_0x3350d8['id']===this['_initialRevisionId'])break;const _0x492d87=_0x14166c['toVersion']-_0x3350d8['toVersion']||_0x14166c['fromVersion']-_0x3350d8['fromVersion'];if(_0x492d87>0x0)break;if(_0x492d87<0x0)_0x2b5019++;else{if(!_0x14166c['creator']&&_0x3350d8['creator'])break;if(_0x3350d8['creator']||!_0x14166c['creator']){if(_0x14166c['createdAt']>_0x3350d8['createdAt'])break;_0x2b5019++;}else _0x2b5019++;}}return _0x2b5019;}['setRevisionData'](_0x2c0881){const _0xcf0dcd=this['repository']['getRevision'](_0x2c0881['id']);if(_0x2c0881['createdAt']&&(_0x2c0881['createdAt']=new Date(_0x2c0881['createdAt'])),_0x2c0881['authorsIds']){const _0x9d3afd=this['editor']['plugins']['get']('Users');_0x2c0881['authors']=_0x2c0881['authorsIds']['map'](_0x575688=>_0x9d3afd['getUser'](_0x575688));}_0xcf0dcd['_update'](_0x2c0881,!0x0);}['buildRevisionData']({revision:_0x4a02b6=null,from:_0x5f524b=null,to:_0x1c17d4=null}){_0x5f524b=null!==_0x5f524b?_0x5f524b:_0x4a02b6['fromVersion'],_0x1c17d4=null!==_0x1c17d4?_0x1c17d4:_0x4a02b6['toVersion'];const _0xc1ea7c=this['_revisionDataBuilder']['getData'](_0x5f524b,_0x1c17d4),_0x1a17e7={'diffData':_0xc1ea7c['diffData'],'authorsIds':_0xc1ea7c['authorsIds'],'fromVersion':_0x5f524b,'toVersion':_0x1c17d4};if(!_0x4a02b6||_0x1c17d4!==_0x4a02b6['toVersion']){const _0x233e09=_0x1c17d4-0x1,_0xed5063=this['_source']['history']['getOperation'](_0x233e09);_0x1a17e7['createdAt']=_0xed5063&&_0xed5063['createdAt']||new Date();}if(this['_loadedStateData']&&_0x5f524b===this['_loadedStateData']['fromVersion']){for(const _0x136d67 of this['_loadedStateData']['authors'])_0x1a17e7['authorsIds']['includes'](_0x136d67['id'])||_0x1a17e7['authorsIds']['push'](_0x136d67['id']);}return _0x1a17e7;}['_loadRevisionData'](_0x28117d){if(!_0x28117d||_0x28117d['diffData'])return Promise['resolve']();{const _0x3f81ca=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x3f81ca,'revisionId':_0x28117d['id']})['then'](_0x3652cf=>{_0x28117d['diffData']=_0x3652cf['diffData'];});}}['_bufferUpdate'](_0x1a67a9,_0x2997e2,_0x31d9dc){if(this['_bufferedUpdates']['has'](_0x1a67a9)){const _0x5e880e=this['_bufferedUpdates']['get'](_0x1a67a9);_0x2997e2=_0x31d9dc?{..._0x5e880e,..._0x2997e2}:{..._0x2997e2,..._0x5e880e};}this['_bufferedUpdates']['set'](_0x1a67a9,_0x2997e2);}['_getFromVersion'](_0x2620b1){const _0x5c7cd2=this['repository']['getRevisions']();_0x5c7cd2['reverse'](),_0x5c7cd2['shift']();const _0x1cdcfd=_0x5c7cd2['find'](_0x1946d6=>_0x1946d6['toVersion']<=_0x2620b1)['toVersion'];return _0x1cdcfd<this['_startingVersion']?this['_startingVersion']:_0x1cdcfd;}['_createInitialRevision'](_0x4b7bdb){const _0x104c4e=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x104c4e)this['_initialRevisionId']=_0x104c4e['id'];else{const _0xd3b2d2=!this['editor']['model']['document']['roots']['find'](_0x17040c=>this['editor']['model']['hasContent'](_0x17040c)),_0x1c173f=this['editor']['plugins']['get']('Users')['me']['id'],_0x32e4d0=m(this['editor']['locale'],_0xd3b2d2?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x4b7bdb,'to':_0x4b7bdb,'id':this['_initialRevisionId'],'name':_0x32e4d0,'creatorId':_0x1c173f});}}['_createCurrentRevision'](_0x2ea7e7){const _0x18ee9d=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x18ee9d),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x2ea7e7,'to':_0x2ea7e7,'id':_0x18ee9d,'name':'','creatorId':null}));}['_makeRevision']({name:_0x15237f,from:_0x524ad9,to:_0x41e244,creatorId:_0x5e57ea,id:_0x112c1d}){const _0x132bb2=this['buildRevisionData']({'from':_0x524ad9,'to':_0x41e244});_0x132bb2['name']=_0x15237f,_0x132bb2['creatorId']=_0x5e57ea,_0x132bb2['id']=_0x112c1d;const _0x65b68d=this['addRevisionData'](_0x132bb2);return this['adapter']&&this['_bufferUpdate'](_0x132bb2['id'],_0x132bb2,!0x0),_0x65b68d;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x8c4225){return(_0x8c4225=_0x8c4225['filter'](_0x1b9bd8=>!_0x1b9bd8['name']||'revision-start'!==_0x1b9bd8['name']&&'revision-end'!==_0x1b9bd8['name']))['forEach'](_0x52d4c0=>{'string'!=typeof _0x52d4c0&&(_0x52d4c0['children']=this['_removeRevisionMarkers'](_0x52d4c0['children']),_0x52d4c0['attributes']=_0x52d4c0['attributes']['filter'](_0x5689b8=>!_0x5689b8[0x0]['startsWith']('data-revision-')));}),_0x8c4225;}}function C(_0x1f63ee,_0x381171){const _0x2f9e41=_0x381171['editing']['view']['document'];if('string'==typeof _0x1f63ee)return new _0xe73c6d(_0x2f9e41,_0x1f63ee);{const _0x563c0d=_0x1f63ee['children']['map'](_0x571c4a=>C(_0x571c4a,_0x381171));return new(P[_0x1f63ee['type']]||_0x5e2f0f)(_0x2f9e41,_0x1f63ee['name'],_0x1f63ee['attributes'],_0x563c0d);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x5cbde8){this['editor']=_0x5cbde8,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'](_0x4af9d8){this['source']=_0x4af9d8;const _0x3f4525=new Map(),_0x1326f2=new Map(),_0x172ffc=this['editor']['model']['document']['roots']['map'](_0x5780fb=>_0x5780fb['rootName']);for(const _0xc66324 of _0x172ffc){const _0x1651cb=this['editor']['model']['document']['getRoot'](_0xc66324),_0x3c91b2=T(_0x1651cb);_0x3f4525['set'](_0xc66324,_0x3c91b2),_0x1326f2['set'](_0xc66324,Object['fromEntries'](_0x1651cb['getAttributes']()));}const _0x19b593=Array['from'](this['editor']['model']['markers'])['map'](_0x5c254f=>[_0x5c254f['name'],_0x5c254f['getRange']()]),_0x16a8d7=this['source']['version'];this['_saveMetaData'](_0x16a8d7,_0x3f4525,_0x19b593,_0x1326f2),this['_startingRevisionId']=this['_revisionId'];const _0x6746fa=new Map(),_0x35b76f=new Map();for(const _0x373f12 of _0x172ffc){const _0x52d562=F(_0x373f12);_0x6746fa['set'](_0x373f12,_0x52d562),_0x35b76f['set'](_0x373f12,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x6746fa,[],_0x35b76f);}['getData'](_0x52880b,_0xe40fad){if(this['_lastFrom']===_0x52880b&&this['_lastTo']<=_0xe40fad)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0xe40fad,!0x0);else{if(!this['_savedMetaData']['has'](_0x52880b)){const _0x437a9e=this['_getPreviousFrom'](_0x52880b);this['_calculateMetaData'](_0x437a9e,_0x52880b,!0x1);}this['_calculateMetaData'](_0x52880b,_0xe40fad,!0x0);}return this['_lastFrom']=_0x52880b,this['_lastTo']=_0xe40fad,this['_getState']();}['loadState'](_0x2dd282){this['_reset'](),this['_lastFrom']=_0x2dd282['fromVersion'],this['_lastTo']=_0x2dd282['toVersion'];for(const _0x512629 in _0x2dd282['diffData']){const _0x2fe203=_0x2dd282['diffData'][_0x512629]['attachChange'],_0x312685=_0x77b43c(_0x2dd282['diffData'][_0x512629]['attributesBefore'])||{},_0x38035f=this['_makeModelFromViewString'](_0x2dd282['diffData'][_0x512629]['deletions']);_0x38035f['rootName']=_0x512629,_0x38035f['_isAttached']=!_0x2fe203||!_0x2fe203['isAttached'],_0x38035f['isAttached']=()=>_0x38035f['_isAttached'],this['_baseRoots']['set'](_0x512629,_0x38035f),this['_baseRootsAttributes']['set'](_0x512629,_0x312685),_0x2fe203&&this['_touchedRoots']['set'](_0x512629,_0x2fe203);const _0x29df55=this['_makeIdsRoot'](_0x38035f);this['_baseIdsRoots']['set'](_0x512629,_0x29df55);for(const [_0x35fa87,_0x35e8ac]of _0x38035f['markers']){if(!_0x35fa87['startsWith']('revision:'))continue;const _0x29cc52=_0x35fa87['split'](':')[0x2];for(const _0xe4cc1e of _0x35e8ac['getWalker']({'singleCharacters':!0x0})){const _0x5939bf=this['_getVidAttributeName'](_0xe4cc1e),_0x4a5ec8='elementEnd'==_0xe4cc1e['type']?_0xe4cc1e['previousPosition']['path']['slice'](0x0,-0x1):_0xe4cc1e['previousPosition']['path'],_0x1b0b4e=_0x29df55['getNodeByPath'](_0x4a5ec8)['getAttribute'](_0x5939bf);this['_touched']['set'](_0x1b0b4e,{'userId':_0x29cc52});}}}this['_startingRevisionId']=this['_revisionId'];const _0x3e7159=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x254447=>!this['_touched']['has'](_0x254447));let _0x34ea3e=0x0;const _0x5142ab=new Map();for(const _0x4e95e9 in _0x2dd282['diffData']){const _0x2f52ad=_0x2dd282['diffData'][_0x4e95e9]['attachChange'],_0x2dafa7=_0x77b43c(_0x2dd282['diffData'][_0x4e95e9]['attributesAfter'])||{},_0x4f7eee=this['_makeModelFromViewString'](_0x2dd282['diffData'][_0x4e95e9]['insertions']);_0x4f7eee['rootName']=_0x4e95e9,_0x4f7eee['_isAttached']=!_0x2f52ad||_0x2f52ad['isAttached'],_0x4f7eee['isAttached']=()=>_0x4f7eee['_isAttached'],this['_diffRoots']['set'](_0x4e95e9,_0x4f7eee),this['_diffRootsAttributes']['set'](_0x4e95e9,_0x2dafa7);const _0x6aa54a=this['_makeIdsRoot'](_0x4f7eee,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x4e95e9,_0x6aa54a),_0x5142ab['set'](_0x4e95e9,_0x4f7eee['isAttached']()?_0x2dafa7:{});for(const [_0x20da15,_0x5f2478]of _0x4f7eee['markers']){if(!_0x20da15['startsWith']('revision:'))continue;const _0x3c62b1=_0x20da15['split'](':')[0x2];for(const _0x114644 of _0x5f2478['getWalker']({'singleCharacters':!0x0})){const _0x51edd1=this['_getVidAttributeName'](_0x114644),_0x277b40=this['_revisionId']++,_0x1712d9='elementEnd'==_0x114644['type']?_0x114644['previousPosition']['path']['slice'](0x0,-0x1):_0x114644['previousPosition']['path'];_0x6aa54a['getNodeByPath'](_0x1712d9)['_setAttribute'](_0x51edd1,_0x277b40),this['_touched']['set'](_0x277b40,{'userId':_0x3c62b1});}}for(const _0x37cb0b of this['editor']['model']['createRangeIn'](_0x4f7eee)['getWalker']({'singleCharacters':!0x0})){const _0x42e098=this['_getVidAttributeName'](_0x37cb0b),_0x278400='elementEnd'==_0x37cb0b['type']?_0x37cb0b['previousPosition']['path']['slice'](0x0,-0x1):_0x37cb0b['previousPosition']['path'],_0x1d548c=_0x6aa54a['getNodeByPath'](_0x278400);_0x1d548c['getAttribute'](_0x42e098)>0x0||_0x1d548c['_setAttribute'](_0x42e098,_0x3e7159[_0x34ea3e++]);}for(const [_0x280885,_0x26c43d]of _0x4f7eee['markers'])_0x280885['startsWith']('revision:')||this['_markers']['set'](_0x280885,_0x26c43d);}const _0x53d3fc=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x53d3fc),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x53d3fc,0x1));const _0x4440f6=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x4440f6),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x4440f6,0x1));const _0x17bbb3=Array['from'](this['_diffRoots'])['map'](([_0x30657c,_0x496090])=>[_0x30657c,T(_0x496090)]);this['_saveMetaData'](this['_lastTo'],_0x17bbb3,this['_markers'],_0x5142ab);}['_makeModelFromViewString'](_0x26bdd4){const _0x3b6ecf=JSON['parse'](_0x26bdd4),_0x5ecc3a=this['editor']['editing']['view']['document'],_0x3315a4=new _0x57bee1(_0x5ecc3a,_0x3b6ecf['map'](_0x46ab3f=>C(_0x46ab3f,this['editor'])));return this['editor']['data']['toModel'](_0x3315a4);}['_saveMetaData'](_0x4bfa9f,_0x5250ef,_0x4b5ed1,_0x32799e){const _0x3da13e=new Map(_0x5250ef),_0x18ea41=new Map(_0x77b43c(_0x32799e)),_0x1e2f90=new Map();for(const [_0x202d0d,_0x390b35]of _0x4b5ed1)_0x1e2f90['set'](_0x202d0d,{'start':_0x390b35['start']['clone'](),'end':_0x390b35['end']['clone'](),'rootName':_0x390b35['root']['rootName']});this['_savedMetaData']['set'](_0x4bfa9f,{'roots':_0x3da13e,'markers':_0x1e2f90,'rootsAttributes':_0x18ea41});}['_removeMetaData'](_0x500c3d){this['_savedMetaData']['delete'](_0x500c3d);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x59afc6,_0x40d8dd=null){let _0x4d0943=null;_0x59afc6['is']('documentFragment')||(_0x4d0943=new ft(_0x59afc6['name'],{'vid_start':null===_0x40d8dd?this['_revisionId']++:_0x40d8dd++}));const _0x5ea99b=[];for(const _0x5c256b of _0x59afc6['getChildren']())if(_0x5c256b['is']('element')){_0x5ea99b['push'](this['_makeIdsRoot'](_0x5c256b,_0x40d8dd));const _0x238442=_0x5ea99b[_0x5ea99b['length']-0x1];null!==_0x40d8dd&&(_0x40d8dd=_0x238442['is']('element','$text')?_0x238442['getAttribute']('vid')+0x1:_0x238442['getAttribute']('vid_end')+0x1);}else{for(let _0xb27571=0x0;_0xb27571<_0x5c256b['offsetSize'];_0xb27571++)_0x5ea99b['push'](new ft('$text',{'vid':null===_0x40d8dd?this['_revisionId']++:_0x40d8dd++}));}if(_0x59afc6['is']('documentFragment')){const _0x53de5f=F(_0x59afc6['rootName']);return _0x53de5f['_insertChild'](0x0,_0x5ea99b),_0x53de5f;}return _0x4d0943['_setAttribute']('vid_end',null===_0x40d8dd?this['_revisionId']++:_0x40d8dd++),_0x4d0943['_insertChild'](0x0,_0x5ea99b),_0x4d0943;}['_calculateMetaData'](_0x3d158a,_0xc127e2,_0x1e3fda){this['_reset']();const {roots:_0x471431,markers:_0x373107,rootsAttributes:_0x19760f}=this['_savedMetaData']['get'](_0x3d158a);this['_baseRoots']=new Map(_0x471431),this['_baseRootsAttributes']=new Map(_0x77b43c(_0x19760f));for(const [_0x4c6e15,_0x137a5c]of this['_baseRoots'])if('$graveyard'!==_0x4c6e15&&(this['_diffRoots']['set'](_0x4c6e15,T(_0x137a5c)),this['_diffRootsAttributes']=new Map(_0x77b43c(_0x19760f)),_0x1e3fda)){const _0xabccfb=this['_revisionId'];this['_idsRoots']['set'](_0x4c6e15,this['_makeIdsRoot'](_0x137a5c)),this['_baseIdsRoots']['set'](_0x4c6e15,this['_makeIdsRoot'](_0x137a5c,_0xabccfb));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x1e3fda&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x3239c9,_0x58ab95]of _0x373107){const _0xd3e165=this['_baseRoots']['get'](_0x58ab95['rootName']),_0x10a4f6=this['_diffRoots']['get'](_0x58ab95['rootName']),_0x4fccfe=new vt(this['_fixPosition'](_0x58ab95['start'],_0xd3e165),this['_fixPosition'](_0x58ab95['end'],_0xd3e165)),_0x3955a1=this['_fixRange'](_0x4fccfe,_0x10a4f6);_0xd3e165['markers']['set'](_0x3239c9,_0x4fccfe),this['_markers']['set'](_0x3239c9,_0x3955a1);}this['_applyOperations'](_0x3d158a,_0xc127e2,_0x1e3fda);}['_applyOperations'](_0x810af5,_0x152d44,_0x27a1db){for(const _0xf47008 of this['source']['getOperations'](_0x810af5,_0x152d44))this['_handleOperation'](_0xf47008,_0x27a1db);for(const _0x42b9f2 of this['_diffRoots']['values']())_0x42b9f2['markers']['clear']();for(const [_0x57a757,_0x4063d3]of this['_markers']){this['_diffRoots']['get'](_0x4063d3['root']['rootName'])['markers']['set'](_0x57a757,_0x4063d3['clone']());}const _0x17afa9=new Map(),_0x23d5dd=new Map();for(const [_0x2a1db0,_0x3c5439]of this['_diffRoots'])_0x17afa9['set'](_0x2a1db0,T(_0x3c5439)),_0x23d5dd['set'](_0x2a1db0,this['_diffRootsAttributes']['get'](_0x2a1db0));this['_saveMetaData'](_0x152d44,_0x17afa9,this['_markers'],_0x23d5dd);}['_getPreviousFrom'](_0x3f460f){const _0x13a685=Array['from'](this['_savedMetaData']['keys']());_0x13a685['sort']((_0x57cbd9,_0x2354f0)=>_0x57cbd9-_0x2354f0),_0x13a685['reverse']();for(const _0x4952dc of _0x13a685)if(_0x4952dc<_0x3f460f)return _0x4952dc;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x34ba88,_0xe468a5){const _0x318d11=Array['from'](_0xe468a5['markers'])['map'](([_0x30fd03,_0x2915e4])=>[_0x30fd03,this['_fixRange'](_0x2915e4,_0x34ba88)]);_0x34ba88['markers']=new Map(_0x318d11);}['_transformMarkers'](_0x2664c8){for(const _0x39c900 of this['_markers']['values']()){const _0x5d2c31=_0x39c900['getTransformedByOperation'](_0x2664c8),_0x39f995=vt['_createFromRanges'](_0x5d2c31);_0x39c900['start']=_0x39f995['start'],_0x39c900['end']=_0x39f995['end'];}}['_handleOperation'](_0x51228c,_0x22aa19){if('addRoot'!=_0x51228c['type']&&'detachRoot'!=_0x51228c['type']){if('insert'==_0x51228c['type']){const _0x42413e=_0x51228c['position']['root']['rootName'];this['_diffRoots']['has'](_0x42413e)||(this['_diffRoots']['set'](_0x42413e,F(_0x42413e,!0x0)),this['_diffRootsAttributes']['set'](_0x42413e,{}),_0x22aa19&&this['_idsRoots']['set'](_0x42413e,F(_0x42413e,!0x0)));}else{if('addRootAttribute'==_0x51228c['type']||'removeRootAttribute'==_0x51228c['type']||'changeRootAttribute'==_0x51228c['type'])return void this['_handleRootAttributeOperation'](_0x51228c);'marker'==_0x51228c['type']&&this['_handleMarkerOperation'](_0x51228c);}if('marker'!==_0x51228c['type']){const _0x41a14f=this['_cloneOperation'](_0x51228c,this['_diffRoots']);_0x41a14f['_execute'](),this['_transformMarkers'](_0x41a14f);}if(_0x22aa19)switch(_0x51228c['type']){case'insert':this['_handleInsertOperation'](_0x51228c);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x51228c);break;case'merge':this['_handleMergeOperation'](_0x51228c);break;case'split':this['_handleSplitOperation'](_0x51228c);}}else this['_handleRootOperation'](_0x51228c,_0x22aa19);}['_cloneOperation'](_0x4b6dad,_0xb50f17){const _0x376d8e=_0x4b6dad['clone']();return _0x376d8e['_authorId']=_0x4b6dad['_authorId'],this['_fixOperation'](_0x376d8e,_0xb50f17),_0x376d8e;}['_getBaseVids'](_0x178b1c){return _0x178b1c['map'](_0x99a7fb=>{const _0x36bfa5=this['_getVidAttributeName'](_0x99a7fb);return Number(_0x99a7fb['item']['getAttribute'](_0x36bfa5));});}['_generateTape'](_0x5118ef,_0x4a836c){if(_0x5118ef['is']('element','$text'))_0x4a836c['push']({'item':_0x5118ef,'type':'text'});else{_0x5118ef['is']('element')&&_0x4a836c['push']({'item':_0x5118ef,'type':'elementStart'});for(const _0x1e7b0a of _0x5118ef['getChildren']())this['_generateTape'](_0x1e7b0a,_0x4a836c);_0x5118ef['is']('element')&&_0x4a836c['push']({'item':_0x5118ef,'type':'elementEnd'});}return _0x4a836c;}['_getState'](){const _0x1e78b2=new Map(this['_touched']),_0x33027e=new Map(_0x1e78b2),_0x38859a=new Map(),_0x5cf274={'insertions':{},'deletions':{}},_0xfeec5a={'insertions':{},'deletions':{}},_0x29ed50=new Map(),_0x4cc3c7=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x4cc3c7['delete']('$graveyard');for(const _0x299499 of _0x4cc3c7){const _0x5529e4=this['_diffRoots']['get'](_0x299499)||F(_0x299499,!0x1),_0x3dd95a=this['_baseRoots']['get'](_0x299499)||F(_0x299499,!0x1);_0x5529e4['isAttached']()||_0x3dd95a['isAttached']()?(_0x5cf274['insertions'][_0x299499]=T(_0x5529e4),_0x5cf274['deletions'][_0x299499]=T(_0x3dd95a),this['_copyMarkers'](_0x5cf274['deletions'][_0x299499],_0x3dd95a),this['_copyMarkers'](_0x5cf274['insertions'][_0x299499],_0x5529e4),_0xfeec5a['insertions'][_0x299499]=this['_generateTape'](this['_idsRoots']['get'](_0x299499),[]),_0xfeec5a['deletions'][_0x299499]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x299499)||F(_0x299499,!0x1),[])):_0x4cc3c7['delete'](_0x299499);}for(const _0x194c3e of _0x4cc3c7){const _0x2c41f2=_0xfeec5a['insertions'][_0x194c3e];for(const _0x200cb1 of _0x2c41f2){const _0x3f77ee=this['_getVidAttributeName'](_0x200cb1),_0x2c8f48=_0x200cb1['item']['getAttribute'](_0x3f77ee);_0x33027e['delete'](_0x2c8f48),_0x2c8f48>=this['_startingRevisionId']&&_0x38859a['set'](_0x2c8f48,_0x1e78b2['get'](_0x2c8f48));}}for(const _0x948e35 of _0x4cc3c7){const _0x5edf6f=_0xfeec5a['insertions'][_0x948e35],_0x452085=this['_getBaseVids'](_0xfeec5a['deletions'][_0x948e35]);let _0x10d66d=0x0;for(const _0x1052b8 of _0x5edf6f){const _0x27824c=this['_getVidAttributeName'](_0x1052b8),_0x1b7ba3=_0x1052b8['item']['getAttribute'](_0x27824c);if(!_0x38859a['has'](_0x1b7ba3)&&!_0x29ed50['has'](_0x1b7ba3)){if(_0x33027e['has'](_0x1b7ba3))_0x10d66d++;else{if(_0x1b7ba3!=_0x452085[_0x10d66d]){const _0x516a2e=_0x1e78b2['get'](_0x1b7ba3)||_0x1e78b2['get'](_0x452085[_0x10d66d]);for(;_0x1b7ba3!=_0x452085[_0x10d66d];)_0x33027e['has'](_0x452085[_0x10d66d])||(_0x29ed50['set'](_0x452085[_0x10d66d],_0x516a2e),_0x1e78b2['set'](_0x452085[_0x10d66d],_0x516a2e)),_0x10d66d++;}_0x10d66d++;}}}}for(const _0x2a2545 of _0x4cc3c7){const _0x3d61c7=_0xfeec5a['insertions'][_0x2a2545];for(const _0x54aa57 of _0x3d61c7){const _0x1e7833=this['_getVidAttributeName'](_0x54aa57),_0x43c235=_0x54aa57['item']['getAttribute'](_0x1e7833);if(_0x29ed50['has'](_0x43c235)){const _0x9aa867=_0x29ed50['get'](_0x43c235);_0x33027e['has'](_0x43c235)||_0x33027e['set'](_0x43c235,{..._0x9aa867}),_0x38859a['set'](_0x43c235,{..._0x9aa867});}}}for(const _0x36c85a of _0x33027e['keys']())_0x36c85a>=this['_startingRevisionId']&&_0x33027e['delete'](_0x36c85a);const _0xaf599f=new Map();for(const _0x2a92ff of _0x4cc3c7){let _0x1aa4ce=_0xfeec5a['insertions'][_0x2a92ff];for(const _0xe621e0 of _0x1aa4ce)if(_0xe621e0['item']['is']('element','tableCell')){const _0x3628d9=this['_getVidAttributeName'](_0xe621e0),_0x52f691=_0xe621e0['item']['getAttribute'](_0x3628d9);if(_0x38859a['has'](_0x52f691)){const _0x2ad0cb=_0xe621e0['item']['parent']['parent']['getAttribute']('vid_start'),_0x4982c4=_0xaf599f['get'](_0x2ad0cb)||new Set();_0x4982c4['add'](_0x38859a['get'](_0x52f691)['userId']),_0xaf599f['set'](_0x2ad0cb,_0x4982c4);}}_0x1aa4ce=_0xfeec5a['deletions'][_0x2a92ff];for(const _0x4fd7a3 of _0x1aa4ce)if(_0x4fd7a3['item']['is']('element','tableCell')){const _0x2e3de4=this['_getVidAttributeName'](_0x4fd7a3),_0xfbc29b=_0x4fd7a3['item']['getAttribute'](_0x2e3de4);if(_0x33027e['has'](_0xfbc29b)){const _0x38a1c4=_0x4fd7a3['item']['parent']['parent']['getAttribute']('vid_start'),_0x24afcb=_0xaf599f['get'](_0x38a1c4)||new Set();_0x24afcb['add'](_0x33027e['get'](_0xfbc29b)['userId']),_0xaf599f['set'](_0x38a1c4,_0x24afcb);}}for(const _0x364359 of _0xaf599f['keys']())(_0x38859a['has'](_0x364359)||_0x33027e['has'](_0x364359))&&_0xaf599f['delete'](_0x364359);}for(const _0x538e2a of _0x4cc3c7){const _0x155197=_0xfeec5a['insertions'][_0x538e2a];let _0x5a7bb9=null,_0x2c5604=null;for(const _0x193df3 of _0x155197){const _0x47dbc3=this['_getVidAttributeName'](_0x193df3),_0x36dc05=_0x193df3['item']['getAttribute'](_0x47dbc3),_0x7ad6f1=_0xaf599f['get'](_0x36dc05);_0x7ad6f1&&'elementStart'==_0x193df3['type']&&(_0x5a7bb9=Array['from'](_0x7ad6f1)[0x0],_0x2c5604=_0x193df3['item']['getAttribute']('vid_end')),_0x5a7bb9&&(_0x33027e['set'](_0x36dc05,{'userId':_0x5a7bb9}),_0x38859a['set'](_0x36dc05,{'userId':_0x5a7bb9})),_0x36dc05==_0x2c5604&&(_0x5a7bb9=null,_0x2c5604=null);}}const _0x3746f={},_0x4baf55=new Set();for(const _0xa858cb of _0x4cc3c7){const _0x130631=_0x5cf274['deletions'][_0xa858cb],_0x2ffbbf=_0x5cf274['insertions'][_0xa858cb];for(const {userId:_0x11ec8e}of this['_touchedMarkers']['values']())null!==_0x11ec8e&&_0x4baf55['add'](_0x11ec8e);for(const {userId:_0x1776e4}of this['_touchedRoots']['values']())null!==_0x1776e4&&_0x4baf55['add'](_0x1776e4);this['_markChanges'](_0x2ffbbf,_0xfeec5a['insertions'][_0xa858cb],_0x38859a,'insertion',_0x4baf55),this['_markChanges'](_0x130631,_0xfeec5a['deletions'][_0xa858cb],_0x33027e,'deletion',_0x4baf55),_0x3746f[_0xa858cb]={'insertions':this['_prepareViewToSave'](_0x2ffbbf),'deletions':this['_prepareViewToSave'](_0x130631),'attachChange':this['_touchedRoots']['get'](_0xa858cb)||null,'attributesBefore':_0x77b43c(this['_baseRootsAttributes']['get'](_0xa858cb))||{},'attributesAfter':_0x77b43c(this['_diffRootsAttributes']['get'](_0xa858cb))};}return{'diffData':_0x3746f,'authorsIds':Array['from'](_0x4baf55)};}['_processRootBeforeSave'](_0x40f18b){for(const [,_0x174a1e]of _0x40f18b['markers']){const _0x3fcd15=_0x174a1e['start']['getAncestors']()['filter'](_0x1535dd=>'tableCell'==_0x1535dd['name']);for(const _0x1cf220 of _0x3fcd15)0x1==_0x1cf220['childCount']&&_0x1cf220['getChild'](0x0)['is']('element','paragraph')&&_0x1cf220['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x59f6a1){this['_processRootBeforeSave'](_0x59f6a1);const _0x509f59=this['editor']['data']['toView'](_0x59f6a1,{}),_0x9bcfdb=Array['from'](_0x509f59['getChildren']())['map'](_0x384c7e=>this['_getViewJson'](_0x384c7e));return JSON['stringify'](_0x9bcfdb);}['_getViewJson'](_0x3bcbf5){if(_0x3bcbf5['is']('$text'))return _0x3bcbf5['data'];{const _0x58df57=_0x3bcbf5;return{'type':Object['keys'](P)['find'](_0x167350=>_0x3bcbf5 instanceof P[_0x167350]),'name':_0x58df57['name'],'attributes':Array['from'](_0x58df57['getAttributes']()),'children':Array['from'](_0x58df57['getChildren']())['map'](_0x22f734=>this['_getViewJson'](_0x22f734))};}}['_markChanges'](_0x4dda38,_0xe1489e,_0x1b4f4a,_0x185ace,_0xe0eba4){let _0x1f7de7=null,_0x4348c6=null,_0x4540a4=0x0;const _0x5307cd=this['editor']['model'];for(let _0x142a80=0x0;_0x142a80<_0xe1489e['length'];_0x142a80++){const _0x37de12=this['_getVidAttributeName'](_0xe1489e[_0x142a80]),_0x268817=_0xe1489e[_0x142a80]['item']['getAttribute'](_0x37de12),_0x3a88b6=_0x1b4f4a['get'](_0x268817),_0x396769=_0x142a80==_0xe1489e['length']-0x1;(!_0x1f7de7&&_0x3a88b6&&(_0x1f7de7=_0x3a88b6,_0x4348c6=_0xe1489e[_0x142a80]),_0x1f7de7&&(!_0x3a88b6||_0x3a88b6['userId']!=_0x1f7de7['userId']))&&(_0x25b618(_0x3a88b6,B(_0x4348c6,_0x4dda38,_0x5307cd),B(_0xe1489e[_0x142a80],_0x4dda38,_0x5307cd)),_0x1f7de7=_0x3a88b6||null,_0x4348c6=_0x3a88b6?_0xe1489e[_0x142a80]:null),_0x1f7de7&&_0x396769&&_0x25b618(_0x3a88b6,B(_0x4348c6,_0x4dda38,_0x5307cd),J(_0xe1489e[_0x142a80],_0x4dda38,_0x5307cd));}function _0x25b618(_0x2a039f,_0x214fb3,_0x37648a){const _0x326158=_0x1f7de7['userId'],_0x371d34='revision:'+_0x185ace+':'+_0x326158+':'+_0x4540a4++,_0x11e68e=_0x5307cd['createRange'](_0x214fb3,_0x37648a);_0x4dda38['markers']['set'](_0x371d34,_0x11e68e),null!==_0x326158&&_0xe0eba4['add'](_0x326158);}}['_getVidAttributeName'](_0x2495c8){switch(_0x2495c8['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x43874f,_0x3012f5){_0x43874f['baseVersion']=null;for(const _0x308e47 in _0x43874f){const _0x275a7f=_0x43874f[_0x308e47];if(_0x275a7f instanceof gt){const _0x29a04f=_0x3012f5['get'](_0x275a7f['root']['rootName']);_0x43874f[_0x308e47]=this['_fixPosition'](_0x275a7f,_0x29a04f);}if(_0x275a7f instanceof vt){const _0x415feb=_0x3012f5['get'](_0x275a7f['root']['rootName']);_0x43874f[_0x308e47]=this['_fixRange'](_0x275a7f,_0x415feb);}'root'===_0x308e47&&(_0x43874f['root']=_0x3012f5['get'](_0x43874f['root']['rootName']));}}['_fixRange'](_0x4946e8,_0x498619){return this['editor']['model']['createRange'](this['_fixPosition'](_0x4946e8['start'],_0x498619),this['_fixPosition'](_0x4946e8['end'],_0x498619));}['_fixPosition'](_0x26ca51,_0xa5b6ec){return this['editor']['model']['createPositionFromPath'](_0xa5b6ec,_0x26ca51['path'],_0x26ca51['stickiness']);}['_handleInsertOperation'](_0x4abab9){const _0x14b066=this['_idsRoots']['get'](_0x4abab9['position']['root']['rootName']),_0x4bfec2=this['_fixPosition'](_0x4abab9['position'],_0x14b066),_0x9c6af2=null===_0x4abab9['_authorId']?null:_0x4abab9['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1b11dc=_0x4bfec2['parent'],_0x46f23c=this['_revisionId'],_0x205f3a=[];for(const _0xec8cb3 of _0x4abab9['nodes'])if(_0xec8cb3['is']('element'))_0x205f3a['push'](this['_makeIdsRoot'](_0xec8cb3));else{for(let _0x55cb33=0x0;_0x55cb33<_0xec8cb3['offsetSize'];_0x55cb33++)_0x205f3a['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x1e027e=this['_revisionId'];for(let _0x38912e=_0x46f23c;_0x38912e<_0x1e027e;_0x38912e++)this['_touched']['set'](_0x38912e,{'userId':_0x9c6af2});_0x1b11dc['_insertChild'](_0x4bfec2['offset'],_0x205f3a);}['_handleMoveOperation'](_0x14fbce){(_0x14fbce=this['_cloneOperation'](_0x14fbce,this['_idsRoots']))['_execute']();const _0x986bbc=null===_0x14fbce['_authorId']?null:_0x14fbce['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x191216=_0x14fbce['getMovedRangeStart'](),_0x2bcfc1=_0x191216['parent'],_0x276043=_0x191216['offset'];!function _0x45a16a(_0x2854b1,_0x26413b,_0x18d6df,_0x578afd){for(let _0x337384=_0x18d6df;_0x337384<_0x578afd;_0x337384++){const _0x192e19=_0x26413b['getChild'](_0x337384);_0x192e19['is']('element','$text')?_0x2854b1['set'](_0x192e19['getAttribute']('vid'),{'userId':_0x986bbc}):(_0x2854b1['set'](_0x192e19['getAttribute']('vid_start'),{'userId':_0x986bbc}),_0x45a16a(_0x2854b1,_0x192e19,0x0,_0x192e19['childCount']),_0x2854b1['set'](_0x192e19['getAttribute']('vid_end'),{'userId':_0x986bbc}));}}(this['_touched'],_0x2bcfc1,_0x276043,_0x276043+_0x14fbce['howMany']);}['_handleMergeOperation'](_0x59fe33){const _0x4ead31=null===(_0x59fe33=this['_cloneOperation'](_0x59fe33,this['_idsRoots']))['_authorId']?null:_0x59fe33['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3c76f1=_0x59fe33['targetPosition']['parent'],_0xc2ac05=_0x59fe33['sourcePosition']['parent'],_0x4235b8=_0x3c76f1['getAttribute']('vid_end'),_0x12fe8b=_0xc2ac05['getAttribute']('vid_start');_0x3c76f1['_setAttribute']('vid_end',_0xc2ac05['getAttribute']('vid_end')),_0xc2ac05['_setAttribute']('vid_end',_0x4235b8),this['_touched']['set'](_0x12fe8b,{'userId':_0x4ead31}),this['_touched']['set'](_0x4235b8,{'userId':_0x4ead31}),_0x59fe33['_execute']();}['_handleSplitOperation'](_0x49ad5f){const _0x117916=null===(_0x49ad5f=this['_cloneOperation'](_0x49ad5f,this['_idsRoots']))['_authorId']?null:_0x49ad5f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1eadc2=_0x49ad5f['graveyardPosition'],_0x52ae04=_0x49ad5f['splitPosition']['parent'];_0x49ad5f['_execute']();const _0x19e3a4=_0x52ae04['getAttribute']('vid_end'),_0xabf750=_0x49ad5f['insertionPosition']['nodeAfter'];if(_0x1eadc2){const _0x2c392d=_0xabf750['getAttribute']('vid_end'),_0xe737bc=_0x52ae04['getAttribute']('vid_end');_0x52ae04['_setAttribute']('vid_end',_0x2c392d),_0xabf750['_setAttribute']('vid_end',_0xe737bc),this['_touched']['set'](_0x52ae04['getAttribute']('vid_end'),{'userId':_0x117916}),this['_touched']['set'](_0xabf750['getAttribute']('vid_start'),{'userId':_0x117916});}else{const _0x2fe9e5=this['_revisionId']++,_0x3eb5b8=this['_revisionId']++;_0x52ae04['_setAttribute']('vid_end',_0x2fe9e5),_0xabf750['_setAttribute']('vid_start',_0x3eb5b8),_0xabf750['_setAttribute']('vid_end',_0x19e3a4),this['_touched']['set'](_0x2fe9e5,{'userId':_0x117916}),this['_touched']['set'](_0x3eb5b8,{'userId':_0x117916});}}['_handleMarkerOperation'](_0x507253){if(!_0x507253['affectsData'])return;const _0x3bb3e0=(_0x507253=this['_cloneOperation'](_0x507253,this['_diffRoots']))['oldRange']?_0x507253['oldRange']['root']:null,_0xe094bc=_0x507253['newRange']?_0x507253['newRange']['root']:null;_0x3bb3e0&&this['_markers']['delete'](_0x507253['name']),_0xe094bc&&this['_markers']['set'](_0x507253['name'],_0x507253['newRange']['clone']());const _0x31a8b6=null===_0x507253['_authorId']?null:_0x507253['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x189af3=_0x507253['name'];if(!this['_touchedMarkers']['has'](_0x189af3))return void this['_touchedMarkers']['set'](_0x189af3,{'range':_0x507253['oldRange'],'userId':_0x31a8b6});const _0x250e70=this['_touchedMarkers']['get'](_0x189af3),_0x4d835f=_0x250e70['range'],_0x18006c=_0x507253['newRange'];null==_0x4d835f&&null==_0x18006c||_0x4d835f&&_0x18006c&&_0x4d835f['isEqual'](_0x18006c)?this['_touchedMarkers']['delete'](_0x507253['name']):_0x250e70['userId']=_0x31a8b6;}['_handleRootOperation'](_0x1bc513,_0x4d7af2){this['_diffRoots']['has'](_0x1bc513['rootName'])?this['_diffRoots']['get'](_0x1bc513['rootName'])['_isAttached']=_0x1bc513['isAdd']:(this['_diffRoots']['set'](_0x1bc513['rootName'],F(_0x1bc513['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x1bc513['rootName'],{}),_0x4d7af2&&this['_idsRoots']['set'](_0x1bc513['rootName'],F(_0x1bc513['rootName'],!0x0)));const _0x5539a8=null===_0x1bc513['_authorId']?null:_0x1bc513['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x54e5a2=this['_touchedRoots']['get'](_0x1bc513['rootName']);_0x54e5a2&&_0x54e5a2['userId']===_0x5539a8?this['_touchedRoots']['delete'](_0x1bc513['rootName']):this['_touchedRoots']['set'](_0x1bc513['rootName'],{'userId':_0x5539a8,'isAttached':_0x1bc513['isAdd']});}['_handleRootAttributeOperation'](_0x3e6a15){const _0x187d07=this['_diffRootsAttributes']['get'](_0x3e6a15['root']['rootName']);null===_0x3e6a15['newValue']?delete _0x187d07[_0x3e6a15['key']]:_0x187d07[_0x3e6a15['key']]=_0x3e6a15['newValue'];}}function T(_0x1ae50e){const _0x673dae=F(_0x1ae50e['rootName'],_0x1ae50e['isAttached']());for(const _0x20860b of _0x1ae50e['getChildren']()){const _0x3daad4=_0x20860b['_clone'](!0x0);_0x673dae['_appendChild'](_0x3daad4);}return _0x673dae;}function F(_0x28619d,_0x74df6a=!0x0){const _0x93e1b1=new mt();return _0x93e1b1['rootName']=_0x28619d,_0x93e1b1['_isAttached']=_0x74df6a,_0x93e1b1['isAttached']=()=>_0x93e1b1['_isAttached'],_0x93e1b1;}function B(_0x13d13f,_0xc8e738,_0x275517){const _0x545b7d='elementEnd'==_0x13d13f['type']?_0x275517['createPositionAt'](_0x13d13f['item'],'end'):_0x275517['createPositionBefore'](_0x13d13f['item']);return _0x275517['createPositionFromPath'](_0xc8e738,_0x545b7d['path'],_0x545b7d['stickiness']);}function J(_0x37c1b0,_0x5c57a4,_0xb66ab3){const _0x38a856='elementStart'==_0x37c1b0['type']?_0xb66ab3['createPositionAt'](_0x37c1b0['item'],0x0):_0xb66ab3['createPositionAfter'](_0x37c1b0['item']);return _0xb66ab3['createPositionFromPath'](_0x5c57a4,_0x38a856['path'],_0x38a856['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x25f995,_0x49423c){super(_0x25f995),this['focusTracker']=new _0x2cdc04(),this['keystrokes']=new _0x430444(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x49423c),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x338fd2(this);}['render'](){super['render'](),_0x53558e({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x511943=_0x31485d=>_0x31485d['stopPropagation']();this['keystrokes']['set']('arrowright',_0x511943),this['keystrokes']['set']('arrowleft',_0x511943),this['keystrokes']['set']('arrowup',_0x511943),this['keystrokes']['set']('arrowdown',_0x511943);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x5c5cc9){this['revisionNameInputView']['fieldView']['element']['value']=_0x5c5cc9['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x56f378){const _0x13dfec=new _0xe538c1(this['locale'],_0x368611),_0x50b88b=_0x13dfec['fieldView'];_0x50b88b['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x1f408c=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x56f378&&(_0x1f408c+='\x20('+m(this['locale'],'optional')+')'),(_0x13dfec['label']=_0x1f408c,_0x50b88b['on']('input',()=>{this['revisionNameInputValue']=_0x50b88b['element']['value']['trim']();}),_0x13dfec);}}class u extends _0x1420a4{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x20443d=this['editor'],_0x229214=_0x20443d['plugins']['get']('RevisionTracker');_0x20443d['ui']['componentFactory']['add']('revisionHistory',_0x127d5d=>{const _0x1eb6a4=_0x1e0a60(_0x127d5d),_0x1c9f5b=_0x1eb6a4['panelView']['children'],_0x1e9e70=new _0x4646f5(_0x127d5d),_0x2dc59e=new _0x503a4e(_0x127d5d),_0x55318b=new te(_0x127d5d),_0xe9c586=new _0x503a4e(_0x127d5d),_0xd39516=new te(_0x127d5d);return _0x1eb6a4['bind']('isEnabled')['to'](_0x229214,'isReady',_0x229214,'isEnabled',_0x20443d,'isReadOnly',(_0x4dfc90,_0x4347b8,_0xa64501)=>_0x4dfc90&&_0x4347b8&&!_0xa64501),_0x1eb6a4['buttonView']['set']({'icon':_0x247700['history'],'label':m(_0x127d5d,'Revision\x20history'),'tooltip':!0x0}),_0x55318b['set']({'label':m(_0x127d5d,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x55318b['bind']('isEnabled')['to'](_0x229214,'isReady',_0x229214,'isEnabled',_0x20443d,'isReadOnly',(_0x464390,_0x44041c,_0x260a35)=>_0x464390&&_0x44041c&&!_0x260a35),_0x55318b['on']('execute',()=>this['_showDialog']()),_0xd39516['set']({'label':m(_0x127d5d,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0xd39516['bind']('isEnabled')['to'](_0x229214,'isReady',_0x20443d,'isReadOnly',(_0x2dd954,_0x584ed1)=>_0x2dd954&&!_0x584ed1),_0xd39516['on']('execute',()=>{_0x20443d['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x1eb6a4['isOpen']=!0x1,_0x20443d['editing']['view']['focus']();}),_0x2dc59e['children']['add'](_0x55318b),_0xe9c586['children']['add'](_0xd39516),_0x1e9e70['role']='menu',_0x1e9e70['items']['addMany']([_0x2dc59e,_0xe9c586]),_0x1c9f5b['add'](_0x1e9e70),_0x1eb6a4;}),_0x20443d['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x41aa49=this['editor'],_0x5a67aa=_0x41aa49['locale'],_0x5a619f=new _0x827bd6(_0x5a67aa),_0x49cf56=new _0x170de9(_0x5a67aa);_0x5a619f['buttonView']['set']({'icon':_0x247700['history'],'label':m(_0x5a67aa,'Revision\x20history')});const _0xfa7961=new _0x4b4311(_0x5a67aa,_0x5a619f),_0x27aa4d=new _0x2b7259(_0x5a67aa);_0x27aa4d['set']({'label':m(_0x5a67aa,'Save\x20current\x20revision')}),_0x27aa4d['delegate']('execute')['to'](_0x5a619f),_0x27aa4d['on']('execute',()=>{this['_showDialog']();}),_0xfa7961['children']['add'](_0x27aa4d),_0x49cf56['items']['add'](_0xfa7961);const _0x454874=new _0x4b4311(_0x5a67aa,_0x5a619f),_0x568a7a=new _0x2b7259(_0x5a67aa);return _0x568a7a['set']({'label':m(_0x5a67aa,'Open\x20revision\x20history')}),_0x568a7a['delegate']('execute')['to'](_0x5a619f),_0x568a7a['on']('execute',()=>{_0x41aa49['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x454874['children']['add'](_0x568a7a),_0x49cf56['items']['add'](_0x454874),_0x5a619f['panelView']['children']['add'](_0x49cf56),_0x5a619f;}['_showDialog'](){const _0x58d500=this['editor'],_0x365ba3=_0x58d500['locale'],_0x4e1cd5=_0x58d500['plugins']['get']('Dialog'),_0x293ba0=_0x58d500['plugins']['get']('RevisionTracker');function _0x3dfb9e(_0x1a6158){_0x58d500['config']['get']('revisionHistory.requireRevisionName')&&''===_0x1a6158['revisionName']?_0x1a6158['revisionNameInputView']['errorText']=m(_0x365ba3,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x58d500['plugins']['get'](l)['saveRevision']({'name':_0x1a6158['revisionName']}),_0x4e1cd5['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x3dfb9e(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x4e1cd5['show']({'id':'revisionSave','title':m(_0x365ba3,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x58d500['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x4e1cd5['hide']()},{'label':m(_0x58d500['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x1d6df0){_0x1d6df0['bind']('isEnabled')['to'](_0x293ba0,'isReady',_0x293ba0,'isEnabled',_0x58d500,'isReadOnly',(_0x57ff1a,_0x45bc04,_0x1e81b3)=>_0x57ff1a&&_0x45bc04&&!_0x1e81b3);},'onExecute':()=>_0x3dfb9e(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x1dd8c4=this['editor'],_0x532904=_0x1dd8c4['locale'];this['_saveRevisionFormView']=new hs(_0x532904,_0x1dd8c4['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends ts{['changeId'];['_model'];constructor(_0x59071d,_0x1cda80){super(_0x59071d),this['_model']=_0x1cda80,this['changeId']=_0x1cda80['id'];const _0x401279=this['bindTemplate'],_0x12afac=m(_0x59071d,_0x1cda80['data']['isSuggestion']?'Suggested\x20by':'add'==_0x1cda80['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x1cda80['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x401279['to']('type',_0x1fa879=>'ck-revision-change__'+_0x1fa879)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x12afac}]},{'text':'\x20'+_0x1cda80['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x217fff(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x3e6f84){super(),this['id']=_0x3e6f84['id']||_0x5d66aa(),this['author']=_0x3e6f84['author'],this['type']=_0x3e6f84['type'],this['data']=_0x3e6f84['data']||{},this['rootName']=_0x3e6f84['rootName'],this['set']('createdAt',_0x3e6f84['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class f{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x308a92,_0x34c1e9){this['newRevisionId']=_0x308a92,this['oldRevisionId']=_0x34c1e9,this['changes']=new _0xcf6e93();}['_setChanges'](_0x3aca52){for(const _0x1d6db8 of _0x3aca52)this['changes']['add'](_0x1d6db8);}}const Y={'c':_0x32a864,'a':_0x4e3bae,'e':_0x1ac8e8,'r':_0x1e3674,'u':_0x28e93a};class d extends _0x1420a4{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x4f378f,_0x1e2672,j];}constructor(_0x21adb8){super(_0x21adb8),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0xfc6e13,_0x1ecb7f,_0x1c14a7)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x102040=>{for(const _0x4cd044 of this['editor']['editing']['view']['document']['roots'])_0x1c14a7?_0x102040['removeClass']('ck-editor__editable__overlay',_0x4cd044):_0x102040['addClass']('ck-editor__editable__overlay',_0x4cd044);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x1ea5d8=>null!==_0x1ea5d8),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x4f7510,_0x454908,_0x2ebd0a)=>_0x4f7510&&_0x2ebd0a?_0x454908['changes']['getIndex'](_0x2ebd0a):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x5e5a06,_0x322dda)=>_0x5e5a06?_0x322dda['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x1e2672);}['init'](){const _0x5ff3eb=this['editor'],_0x25e3ca=new _t(_0x5ff3eb,{'direction':'backward'}),_0x1e6fca=new _t(_0x5ff3eb,{'direction':'forward'});(_0x5ff3eb['commands']['add']('showPreviousChange',_0x25e3ca),_0x5ff3eb['commands']['add']('showNextChange',_0x1e6fca),_0x5ff3eb['commands']['add']('restoreRevision',new pt(_0x5ff3eb)),this['on']('change:numberOfChanges',()=>{_0x25e3ca['refresh'](),_0x1e6fca['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x5ff3eb['enableReadOnlyMode']('revision-viewer'),_0x5ff3eb['plugins']['has']('WidgetToolbarRepository'))&&_0x5ff3eb['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x9e0492){await this['loadRevisionData'](_0x9e0492);const _0x3069c4={};for(const _0x299faf in _0x9e0492['diffData']){if(_0x9e0492['diffData'][_0x299faf]['attachChange']&&!_0x9e0492['diffData'][_0x299faf]['attachChange']['isAttached'])continue;const _0x15497f=this['_removeRevisionMarkers'](JSON['parse'](_0x9e0492['diffData'][_0x299faf]['insertions'])),_0x1436f1=this['editor']['editing']['view']['document'],_0x449ebe=new _0x57bee1(_0x1436f1,_0x15497f['map'](_0x562dab=>this['_getViewObj'](_0x562dab)));this['editor']['data']['processor']['useFillerType']('marked'),_0x3069c4[_0x299faf]=this['editor']['data']['processor']['toData'](_0x449ebe),this['editor']['data']['processor']['useFillerType']('default');}return _0x3069c4;}async['getRevisionRootsAttributes'](_0x27c2c1){await this['loadRevisionData'](_0x27c2c1);const _0x349ec0={};for(const _0x54e2f0 in _0x27c2c1['diffData'])_0x27c2c1['diffData'][_0x54e2f0]['attachChange']&&!_0x27c2c1['diffData'][_0x54e2f0]['attachChange']['isAttached']||(_0x349ec0[_0x54e2f0]=_0x27c2c1['diffData'][_0x54e2f0]['attributesAfter']||{});return _0x349ec0;}['_removeRevisionMarkers'](_0x42115a){return(_0x42115a=_0x42115a['filter'](_0x3734e7=>!_0x3734e7['name']||'revision-start'!==_0x3734e7['name']&&'revision-end'!==_0x3734e7['name']))['forEach'](_0x9af19a=>{'string'!=typeof _0x9af19a&&(_0x9af19a['children']=this['_removeRevisionMarkers'](_0x9af19a['children']),_0x9af19a['attributes']=_0x9af19a['attributes']['filter'](_0x266a15=>!_0x266a15[0x0]['startsWith']('data-revision-')));}),_0x42115a;}async['compare'](_0xe7b205,_0xf03f08,_0x3f10f5=!0x1){if(!this['isEnabled'])return;const _0xc69680=this['diff'],_0x173106=this['repository'],_0x3f9cd5='string'==typeof _0xe7b205?_0x173106['getRevision'](_0xe7b205):_0xe7b205,_0x3e31f2='string'==typeof _0xf03f08?_0x173106['getRevision'](_0xf03f08):_0xf03f08,_0x49198c=_0x3f9cd5['id'],_0x10170f=_0x3e31f2?_0x3e31f2['id']:null;if(!_0x3f10f5&&this['diff']&&this['diff']['newRevisionId']===_0x49198c&&this['diff']['oldRevisionId']===_0x10170f)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x49198c,_0x10170f);const _0x325e0e=this['_getRevisionsRange'](_0x3f9cd5,_0x3e31f2,!0x0)['map'](_0x2b20c8=>this['loadRevisionData'](_0x2b20c8));return _0x325e0e['push'](new Promise(_0x2258bd=>{setTimeout(_0x2258bd,0x14);})),Promise['all'](_0x325e0e)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x30096a=this['_getDiff'](_0x49198c,_0x10170f);for(const _0x5c01b5 of _0x30096a['changes'])this['_changeIdToChange']['set'](_0x5c01b5['id'],_0x5c01b5);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0xc5a026=>{for(const _0x4dd314 of this['editor']['model']['document']['getRootNames']())_0xc5a026['detachRoot'](_0x4dd314);for(const _0xfffadf of Object['keys'](_0x30096a['model'])){const _0x2f17fd=_0xc5a026['addRoot'](_0xfffadf);for(const _0x1a50e7 of Object['keys'](_0x30096a['attributes'][_0xfffadf]))_0xc5a026['setAttribute'](_0x1a50e7,_0x30096a['attributes'][_0xfffadf][_0x1a50e7],_0x2f17fd);_0xc5a026['insert'](_0x30096a['model'][_0xfffadf],_0x2f17fd,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x30096a['changes'])),this['isReady']=!0x0;})['catch'](_0x34ca99=>{console['error'](_0x34ca99),this['_cleanUp'](),_0xc69680&&(this['diff']=_0xc69680),this['isReady']=!0x0;});}['addRevisionData'](_0x34db75,_0x4948b9){const _0x5b6288=this['repository']['createRevision'](_0x34db75);return _0x5b6288['on']('_update',(_0x1b4200,_0x2401cc,_0x3d300f)=>_0x4948b9(_0x2401cc,_0x3d300f,_0x5b6288)),this['repository']['addRevision'](_0x5b6288),_0x5b6288;}['loadRevisionData'](_0x489a33){if(!_0x489a33||_0x489a33['diffData'])return Promise['resolve']();{const _0x354487=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x354487,'revisionId':_0x489a33['id']})['then'](_0x8f2136=>{_0x489a33['_update']({'diffData':_0x8f2136['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x1650a5=>{for(const _0x5d4666 of this['editor']['model']['document']['getRootNames']())_0x1650a5['detachRoot'](_0x5d4666);});}['_sortAndFilterDiffChanges'](_0x416b2c){const _0x398f87=[],_0x56d6d4=new Map();for(const _0x46cd16 of this['editor']['model']['document']['getRootNames']()){const _0x487403=this['editor']['editing']['view']['getDomRoot'](_0x46cd16);if(!_0x487403)continue;const _0x565aeb=_0x487403['getClientRects']()['item'](0x0);_0x565aeb&&(_0x398f87['push'](_0x46cd16),_0x56d6d4['set'](_0x46cd16,_0x565aeb));}return _0x398f87['sort']((_0x460ee3,_0x956682)=>{const _0x4f94c3=_0x56d6d4['get'](_0x460ee3),_0x4a2765=_0x56d6d4['get'](_0x956682);return _0x4f94c3['y']-_0x4a2765['y']||_0x4f94c3['x']-_0x4a2765['x'];}),(_0x416b2c=_0x416b2c['filter'](_0x432479=>_0x398f87['includes'](_0x432479['rootName'])))['sort']((_0x22546b,_0x4f5b19)=>_0x398f87['indexOf'](_0x22546b['rootName'])-_0x398f87['indexOf'](_0x4f5b19['rootName'])),_0x416b2c;}['_makeTape'](_0x3d0ac7){const _0x5efa76=Array['from'](_0x3d0ac7['markers'])['filter'](([_0x95878,_0x1c3b9d])=>_0x95878['startsWith']('revision:')&&!_0x1c3b9d['isCollapsed']),_0x13e22b=Array['from'](this['editor']['model']['createRangeIn'](_0x3d0ac7)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x5efa76['length'])for(const _0x248c47 of _0x13e22b){const [_0x439ad5,_0xa07233]=_0x5efa76[0x0],[,_0x911314,_0x3c36ec]=_0x439ad5['split'](':');if(_0xa07233['end']['isEqual'](_0x248c47['nextPosition'])&&_0x5efa76['shift'](),(_0x248c47['previousPosition']['isEqual'](_0xa07233['start'])||_0x248c47['previousPosition']['isAfter'](_0xa07233['start']))&&('insertion'==_0x911314?_0x248c47['isAdded']={'userId':_0x3c36ec}:'deletion'==_0x911314&&(_0x248c47['isRemoved']={'userId':_0x3c36ec})),0x0==_0x5efa76['length'])break;}return _0x13e22b;}['_refreshStartEndIndex'](_0x572ae9){const _0x31661c=new Map();for(let _0x2a9308=0x0;_0x2a9308<_0x572ae9['length'];_0x2a9308++)'text'===_0x572ae9[_0x2a9308]['type']?(_0x572ae9[_0x2a9308]['item']['startIndex']=_0x2a9308,_0x572ae9[_0x2a9308]['item']['endIndex']=_0x2a9308):('elementStart'===_0x572ae9[_0x2a9308]['type']?_0x572ae9[_0x2a9308]['item']['startIndex']=_0x2a9308:'elementEnd'===_0x572ae9[_0x2a9308]['type']&&(_0x572ae9[_0x2a9308]['item']['endIndex']=_0x2a9308),_0x31661c['set'](_0x572ae9[_0x2a9308]['id'],_0x2a9308));for(const _0x2ffc68 of _0x31661c['values']())'elementStart'===_0x572ae9[_0x2ffc68]['type']?_0x572ae9[_0x2ffc68]['item']['endIndex']=_0x31661c['get'](_0x572ae9[_0x2ffc68]['pairId']):'elementEnd'===_0x572ae9[_0x2ffc68]['type']&&(_0x572ae9[_0x2ffc68]['item']['startIndex']=_0x31661c['get'](_0x572ae9[_0x2ffc68]['pairId']));}['_processTape'](_0xdf3323){for(let _0x358406=0x0;_0x358406<_0xdf3323['length'];_0x358406++){if('elementStart'===_0xdf3323[_0x358406]['type'])_0xdf3323[_0x358406]['item']['startIndex']=_0x358406;else{if('elementEnd'===_0xdf3323[_0x358406]['type']){_0xdf3323[_0x358406]['item']['endIndex']=_0x358406;const _0x25adb0=_0xdf3323[_0x358406]['item']['startIndex'];_0xdf3323[_0x25adb0]['pairId']=_0xdf3323[_0x358406]['id'],_0xdf3323[_0x358406]['pairId']=_0xdf3323[_0x25adb0]['id'];}else _0xdf3323[_0x358406]['item']['startIndex']=_0x358406,_0xdf3323[_0x358406]['item']['endIndex']=_0x358406,_0xdf3323[_0x358406]['pairId']=null;}_0xdf3323[_0x358406]['markersStart']||(_0xdf3323[_0x358406]['markersStart']=[],_0xdf3323[_0x358406]['markersEnd']=[]);}}['_markInsertions'](_0x4f7fed,_0x47be4c){const _0x319e6d=_0x4f7fed['filter'](_0x2e2a72=>!_0x2e2a72['isAdded']);for(let _0x537395=0x0;_0x537395<_0x47be4c['length'];_0x537395++)_0x47be4c[_0x537395]['isAdded']&&(_0x319e6d[_0x537395]['isAdded']=_0x47be4c[_0x537395]['isAdded']);}['_makeModelFromViewString'](_0x35d0ab){const _0x29dcb5=JSON['parse'](_0x35d0ab),_0x25265e=this['editor']['editing']['view']['document'],_0x38ca25=new _0x57bee1(_0x25265e,_0x29dcb5['map'](_0x1cc680=>this['_getViewObj'](_0x1cc680)));return this['editor']['data']['toModel'](_0x38ca25);}['_getViewObj'](_0x30659a){const _0x642aac=this['editor']['editing']['view']['document'];if('string'==typeof _0x30659a)return new _0xe73c6d(_0x642aac,_0x30659a);{const _0x338cba=_0x30659a['children']['map'](_0x47cf31=>this['_getViewObj'](_0x47cf31));return new(Y[_0x30659a['type']]||_0x5e2f0f)(_0x642aac,_0x30659a['name'],_0x30659a['attributes'],_0x338cba);}}['_getDiff'](_0x3d1e90,_0x255f23=null){const _0x44b714=this['repository']['getRevision'](_0x3d1e90),_0x4c5a38=_0x255f23?this['repository']['getRevision'](_0x255f23):null,_0x155924=this['_getRevisionsRange'](_0x44b714,_0x4c5a38),_0x478d81=_0x155924[_0x155924['length']-0x1],_0x17d0a0=new Map(),_0x666382={'model':{},'attributes':{},'changes':[]},_0x3e8c40=new Set(),_0xd3bb19=new Map();for(let _0x44d855=_0x155924['length']-0x1;_0x44d855>=0x0;_0x44d855--){const _0x3909ae=_0x155924[_0x44d855];for(const _0x50aff9 of Object['keys'](_0x3909ae['diffData']))if(_0x3909ae['diffData'][_0x50aff9]['attachChange']){const _0x469ce9=_0x3909ae['diffData'][_0x50aff9]['attachChange'];_0x469ce9['isAttached']?(_0x3e8c40['add'](_0x50aff9),_0xd3bb19['has'](_0x50aff9)&&_0xd3bb19['get'](_0x50aff9)['userId']==_0x469ce9['userId']?_0xd3bb19['delete'](_0x50aff9):_0xd3bb19['set'](_0x50aff9,_0x469ce9)):_0xd3bb19['has'](_0x50aff9)?(_0x3e8c40['delete'](_0x50aff9),_0xd3bb19['delete'](_0x50aff9)):(_0x3e8c40['add'](_0x50aff9),_0xd3bb19['set'](_0x50aff9,_0x469ce9));}else _0x3e8c40['add'](_0x50aff9);}for(const _0x4a751b of _0x3e8c40){const _0x4fd243=_0xd3bb19['has'](_0x4a751b)&&!_0xd3bb19['get'](_0x4a751b)['isAttached'];let _0x36f777=_0x4fd243?_0x155924['length']-0x1:0x0;const _0x26b66c=_0x4fd243?-0x1:0x1;for(;_0x155924[_0x36f777];){const _0x2188f2=_0x155924[_0x36f777];if(_0x2188f2['diffData'][_0x4a751b]){const _0x345967=_0x4fd243?_0x2188f2['diffData'][_0x4a751b]['attributesBefore']:_0x2188f2['diffData'][_0x4a751b]['attributesAfter'];_0x666382['attributes'][_0x4a751b]=_0x345967?_0x77b43c(_0x345967):{};break;}_0x36f777+=_0x26b66c;}}for(const _0x452f2f of _0x155924){_0x452f2f['model']={};for(const _0x3ae91f of _0x452f2f['authors'])_0x17d0a0['set'](_0x3ae91f['id'],_0x3ae91f);for(const _0x21f020 of _0x3e8c40){const _0x18cca1=_0x452f2f['diffData'][_0x21f020]?_0x452f2f['diffData'][_0x21f020]['insertions']:'[]',_0x1f4c74=_0x452f2f['diffData'][_0x21f020]?_0x452f2f['diffData'][_0x21f020]['deletions']:'[]';_0x452f2f['model'][_0x21f020]={'insertions':this['_makeModelFromViewString'](_0x18cca1),'deletions':this['_makeModelFromViewString'](_0x1f4c74)};}}for(const _0x82accc of _0x3e8c40){let _0x2e40ce=null,_0x56fb37=0x0;const _0x43780d=new Map(Array['from'](_0x44b714['model'][_0x82accc]['insertions']['markers'])['filter'](([_0x1bd17f])=>!_0x1bd17f['startsWith']('revision:')));let _0x1531c2=0x0;for(const _0x1858f0 of _0x155924){const _0x53e116=this['_makeTape'](_0x1858f0['model'][_0x82accc]['insertions']);_0x1858f0==_0x44b714?(_0x2e40ce=_0x53e116,_0x56fb37=_0x2e40ce['length'],_0x2e40ce['forEach'](_0x18bece=>{_0x18bece['id']=_0x1531c2++;}),this['_processTape'](_0x2e40ce)):this['_markInsertions'](_0x2e40ce,_0x53e116);const _0x3ee358=_0x2e40ce['filter'](_0x546252=>!_0x546252['isAdded'])['map'](_0x3aab3d=>_0x3aab3d['id']);let _0x340917=0x0;const _0x113f0a=this['_makeTape'](_0x1858f0['model'][_0x82accc]['deletions']);_0x113f0a['forEach'](_0x57d7ae=>{_0x57d7ae['isRemoved']?_0x57d7ae['id']=_0x56fb37++:_0x57d7ae['id']=_0x3ee358[_0x340917++];}),this['_processTape'](_0x113f0a),this['_setDistance'](_0x2e40ce,'isAdded'),this['_setDistance'](_0x113f0a,'isRemoved'),_0x1858f0==_0x44b714&&this['_markMarkers'](_0x2e40ce,_0x43780d),_0x2e40ce=this['_joinTapes'](_0x2e40ce,_0x113f0a),this['_refreshStartEndIndex'](_0x2e40ce),this['_setDistance'](_0x2e40ce,'isRemoved');}_0x2e40ce=_0x2e40ce['filter'](_0x21ffef=>!(_0x21ffef['isAdded']&&_0x21ffef['isRemoved']));const _0xb9c6e7=new Map(_0x478d81['model'][_0x82accc]['deletions']['markers']),_0x5ebf6a=new Set(_0x43780d['keys']());for(const _0x2a1c6c of _0xb9c6e7['keys']())_0x5ebf6a['delete'](_0x2a1c6c);this['_markSuggestions'](_0x2e40ce,_0x5ebf6a),this['_fixObsoleteTags'](_0x2e40ce),_0x2e40ce=this['_removeMissingPairs'](_0x2e40ce),_0x2e40ce=this['_markMismatchedRemovedTags'](_0x2e40ce),_0x2e40ce=this['_removeUnsupportedChanges'](_0x2e40ce);const {root:_0x521579,changes:_0x1e1622}=this['_makeModelFromTape'](_0x2e40ce,_0x17d0a0,_0x82accc);_0x666382['model'][_0x82accc]=_0x521579;const _0x11a877=_0xd3bb19['get'](_0x82accc);if(_0x11a877){const _0x5be509=_0x17d0a0['get'](_0x11a877['userId']),_0x1c67a9=new r({'author':_0x5be509,'type':_0x11a877['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x82accc});_0x1e1622['unshift'](_0x1c67a9),_0x666382['attributes'][_0x82accc]['revisionHistoryAttachChange']=_0x1c67a9['id'];}_0x666382['changes']=_0x666382['changes']['concat'](_0x1e1622);}return _0x666382;}['_markMarkers'](_0x61a971,_0x4c93b4){for(let _0xaa1b42=0x0;_0xaa1b42<_0x61a971['length'];_0xaa1b42++)for(const [_0x20eba4,_0x3c3af5]of _0x4c93b4)_0x3c3af5['start']['isEqual'](_0x61a971[_0xaa1b42]['previousPosition'])&&_0x61a971[_0xaa1b42]['markersStart']['push'](_0x20eba4),_0x3c3af5['end']['isEqual'](_0x61a971[_0xaa1b42]['nextPosition'])&&_0x61a971[_0xaa1b42]['markersEnd']['push'](_0x20eba4);}['_joinTapes'](_0x4f92e5,_0x39ce36){let _0x29c550=[],_0x5ebff4=0x0,_0x1a56b2=0x0;for(;_0x5ebff4<_0x4f92e5['length']||_0x1a56b2<_0x39ce36['length'];){const _0x2b6ff5=_0x4f92e5[_0x5ebff4]||{},_0x31c622=_0x39ce36[_0x1a56b2]||{};if(_0x2b6ff5['id']==_0x31c622['id'])_0x5ebff4++,_0x1a56b2++,_0x29c550['push'](_0x2b6ff5);else{if(_0x31c622['isRemoved']&&_0x2b6ff5['isAdded']){const {commonTape:_0x4d2d96,iEnd:_0x2b9d8f,jEnd:_0x20bf94}=this['_threeWayMerge'](_0x4f92e5,_0x5ebff4,_0x39ce36,_0x1a56b2);_0x29c550=_0x29c550['concat'](_0x4d2d96),_0x5ebff4=_0x2b9d8f,_0x1a56b2=_0x20bf94;}else _0x31c622['isRemoved']?(_0x1a56b2++,_0x29c550['push'](_0x31c622)):(_0x5ebff4++,_0x29c550['push'](_0x2b6ff5));}}return _0x29c550;}['_markSuggestions'](_0x2d06d4,_0x28ca36){const _0x1cb48e=[];for(let _0x555e1f=0x0;_0x555e1f<_0x2d06d4['length'];_0x555e1f++){for(let _0xdff107=0x0;_0xdff107<_0x2d06d4[_0x555e1f]['markersStart']['length'];_0xdff107++){const _0x4f10c4=_0x2d06d4[_0x555e1f]['markersStart'][_0xdff107];if(!_0x28ca36['has'](_0x4f10c4))continue;const {group:_0x47f239,type:_0x44239d,authorId:_0x1c0fd9}=_0x418e6c(_0x4f10c4);'revision-suggestion'!=_0x47f239||'insertion'!=_0x44239d&&'deletion'!=_0x44239d||(_0x1cb48e['unshift']({'type':_0x44239d,'name':_0x4f10c4,'userId':_0x1c0fd9}),_0x2d06d4[_0x555e1f]['markersStart']['splice'](_0xdff107,0x1),_0xdff107--);}_0x5058d1(_0x2d06d4[_0x555e1f]);for(let _0x65ff9a=0x0;_0x65ff9a<_0x2d06d4[_0x555e1f]['markersEnd']['length'];_0x65ff9a++){const _0x2457b0=_0x2d06d4[_0x555e1f]['markersEnd'][_0x65ff9a];if(!_0x28ca36['has'](_0x2457b0))continue;const {group:_0x560c1c,type:_0x3d81b7}=_0x418e6c(_0x2457b0);if('revision-suggestion'!=_0x560c1c||'insertion'!=_0x3d81b7&&'deletion'!=_0x3d81b7)continue;_0x2d06d4[_0x555e1f]['markersEnd']['splice'](_0x65ff9a,0x1),_0x65ff9a--;const _0x9fadee=_0x1cb48e['findIndex'](_0x101613=>_0x101613['name']==_0x2457b0);_0x9fadee>-0x1&&_0x1cb48e['splice'](_0x9fadee,0x1);}}function _0x418e6c(_0xac3111){const _0x20ac6a=_0xac3111['split'](':');return{'group':_0x20ac6a[0x0],'type':_0x20ac6a[0x1],'subType':_0x20ac6a['length']>=0x5?_0x20ac6a[0x2]:null,'id':_0x20ac6a['length']<0x5?_0x20ac6a[0x2]:_0x20ac6a[0x3],'authorId':_0x20ac6a['length']<0x5?_0x20ac6a[0x3]:_0x20ac6a[0x4],'markerCount':0x6==_0x20ac6a['length']?_0x20ac6a[0x5]:null};}function _0x5058d1(_0x2194b8){for(let _0x521df5=0x0;_0x521df5<_0x1cb48e['length'];_0x521df5++){if(_0x2194b8['isAdded']&&'insertion'==_0x1cb48e[_0x521df5]['type'])return _0x2194b8['isAddSuggestion']=_0x1cb48e[_0x521df5],void delete _0x2194b8['isAdded'];if(!_0x2194b8['isAdded']&&!_0x2194b8['isRemoved']&&'deletion'==_0x1cb48e[_0x521df5]['type'])return void(_0x2194b8['isRemoveSuggestion']=_0x1cb48e[_0x521df5]);}}}['_setDistance'](_0x416d86,_0x16261b){let _0x552664=0x0,_0x45d1ce=!0x1;const _0x46da5d=new Map();for(const _0x323596 of _0x416d86)_0x323596[_0x16261b]?_0x45d1ce&&(_0x552664++,_0x45d1ce=!0x1):(_0x552664++,_0x45d1ce=!0x0),_0x46da5d['set'](_0x323596['id'],_0x552664);for(let _0x397e0f=0x0;_0x397e0f<_0x416d86['length'];_0x397e0f++){if('isRemoved'==_0x16261b&&_0x416d86[_0x397e0f]['isAdded']||'isAdded'==_0x16261b&&_0x416d86[_0x397e0f]['isRemoved'])continue;if('text'==_0x416d86[_0x397e0f]['type']){_0x416d86[_0x397e0f]['distance']=0x0;continue;}const _0x503967=_0x46da5d['get'](_0x416d86[_0x397e0f]['pairId']),_0xd12b75=_0x46da5d['get'](_0x416d86[_0x397e0f]['id']);_0x416d86[_0x397e0f]['distance']=_0x503967-_0xd12b75;}}['_getRevisionsRange'](_0x42793e,_0x52b263,_0x5ea001=!0x1){const _0xd043d9=[];let _0x73ee47=this['repository']['getIndex'](_0x42793e),_0x4e3e0e=this['repository']['getIndex'](_0x52b263);for(-0x1==_0x4e3e0e&&(_0x4e3e0e=this['repository']['_revisions']['length'],_0x5ea001=!0x1);_0x73ee47<_0x4e3e0e;)_0xd043d9['push'](this['repository']['getRevision'](_0x73ee47)),_0x73ee47++;return _0x5ea001&&_0xd043d9['push'](this['repository']['getRevision'](_0x73ee47)),_0xd043d9;}['_threeWayMerge'](_0x68e67b,_0x380b38,_0x5b0314,_0x5ab4eb){const _0x1acf6b=this['editor']['model']['schema'];let _0xaf597d=_0x380b38;for(;_0x68e67b[_0xaf597d]&&_0x68e67b[_0xaf597d]['isAdded'];)_0xaf597d++;let _0x3996d7=_0x5ab4eb;for(;_0x5b0314[_0x3996d7]&&_0x5b0314[_0x3996d7]['isRemoved'];)_0x3996d7++;_0x3e0739(_0x68e67b,_0x380b38,_0xaf597d),_0x3e0739(_0x5b0314,_0x5ab4eb,_0x3996d7);const _0x45e3eb=_0x5b0314['slice'](_0x5ab4eb,_0x3996d7)['concat'](_0x68e67b['slice'](_0x380b38,_0xaf597d));return _0x45e3eb['sort']((_0x1d56fd,_0x222c0b)=>_0x1d56fd['side']!=_0x222c0b['side']?_0x1d56fd['side']-_0x222c0b['side']:_0x1d56fd['level']!=_0x222c0b['level']?_0x1d56fd['level']-_0x222c0b['level']:_0x1d56fd['distance']!=_0x222c0b['distance']?_0x222c0b['distance']-_0x1d56fd['distance']:!!_0x1d56fd['isAdded']!=!!_0x222c0b['isAdded']?-0x1==_0x1d56fd['side']||0x0==_0x1d56fd['side']?_0x1d56fd['isAdded']?-0x1:0x1:_0x1d56fd['isAdded']?0x1:-0x1:_0x1d56fd['index']-_0x222c0b['index']),{'commonTape':_0x45e3eb,'iEnd':_0xaf597d,'jEnd':_0x3996d7};function _0x3e0739(_0x5cbea0,_0x5f5d0a,_0x492af6){let _0x316f06=-0x1,_0x3dd429=Number['POSITIVE_INFINITY'],_0x55179a=!0x0;for(let _0x40db4f=_0x5f5d0a;_0x40db4f<_0x492af6;_0x40db4f++)if(_0x1acf6b['isInline'](_0x5cbea0[_0x40db4f]['item'])||(_0x55179a=!0x1),_0x5cbea0[_0x40db4f]['item']['startIndex']<_0x5f5d0a&&(_0x316f06=_0x40db4f),_0x5cbea0[_0x40db4f]['item']['endIndex']>=_0x492af6){_0x3dd429=_0x40db4f;break;}_0x55179a&&(_0x316f06=_0x492af6-0x1);for(let _0x19e3d9=_0x5f5d0a;_0x19e3d9<_0x492af6;_0x19e3d9++)_0x5cbea0[_0x19e3d9]['side']=_0x19e3d9<=_0x316f06?-0x1:_0x19e3d9<_0x3dd429?0x0:0x1,_0x5cbea0[_0x19e3d9]['index']=_0x19e3d9;let _0x11e064=0x0;for(let _0x4a7c51=_0x5f5d0a;_0x4a7c51<=_0x316f06;_0x4a7c51++)0x0==_0x5cbea0[_0x4a7c51]['distance']?_0x5cbea0[_0x4a7c51]['level']=_0x11e064:(_0x11e064++,_0x5cbea0[_0x4a7c51]['level']=_0x11e064,_0x11e064++);for(let _0x1e2aaa=_0x5f5d0a;_0x1e2aaa<_0x492af6;_0x1e2aaa++)0x0==_0x5cbea0[_0x1e2aaa]['side']&&(_0x5cbea0[_0x1e2aaa]['level']=_0x11e064);_0x11e064=0x0;for(let _0x4135a1=_0x492af6-0x1;_0x4135a1>=_0x3dd429;_0x4135a1--)0x0==_0x5cbea0[_0x4135a1]['distance']?_0x5cbea0[_0x4135a1]['level']=_0x11e064:(_0x11e064--,_0x5cbea0[_0x4135a1]['level']=_0x11e064,_0x11e064--);}}['_fixObsoleteTags'](_0x482175){const _0x3f4958=new Map(),_0x24a8ec=this['editor']['model']['schema'];for(let _0x3d2d62=0x1;_0x3d2d62<_0x482175['length'];_0x3d2d62++){let _0x297170,_0x112d73,_0xb2a217;const _0x427e8d=_0x482175[_0x3d2d62],_0x2f12e5=_0x482175[_0x3d2d62-0x1];if('text'==_0x427e8d['type'])continue;if(_0x427e8d['type']!=_0x2f12e5['type'])continue;if(!_0x24a8ec['isBlock'](_0x2f12e5['item'])||_0x24a8ec['isLimit'](_0x2f12e5['item']))continue;if(!_0x24a8ec['isBlock'](_0x427e8d['item'])||_0x24a8ec['isLimit'](_0x427e8d['item']))continue;if((_0x482175[_0x3d2d62]['isAdded']||_0x482175[_0x3d2d62]['isAddSuggestion'])&&_0x482175[_0x3d2d62-0x1]['isRemoved'])_0x297170=_0x482175[_0x3d2d62],_0x112d73=_0x482175[_0x3d2d62-0x1],_0xb2a217=_0x3d2d62-0x1;else{if(!_0x482175[_0x3d2d62]['isRemoved']||!_0x482175[_0x3d2d62-0x1]['isAdded']&&!_0x482175[_0x3d2d62-0x1]['isAddSuggestion'])continue;_0x297170=_0x482175[_0x3d2d62-0x1],_0x112d73=_0x482175[_0x3d2d62],_0xb2a217=_0x3d2d62;}const _0x3640d3=_0x297170['level']==_0x112d73['level'],_0x5f17de=Math['abs'](_0x297170['level'])<Math['abs'](_0x112d73['level'])&&0x0==_0x112d73['distance'];(_0x3640d3||_0x5f17de)&&(_0x3f4958['set'](_0x112d73['id'],_0x297170['id']),_0x482175['splice'](_0xb2a217,0x1),_0x3d2d62--,_0x297170['isAdded']=!0x1);}for(let _0x44da32=0x0;_0x44da32<_0x482175['length'];_0x44da32++)_0x3f4958['has'](_0x482175[_0x44da32]['pairId'])&&(_0x482175[_0x44da32]['pairId']=_0x3f4958['get'](_0x482175[_0x44da32]['pairId']));}['_removeMissingPairs'](_0x259891){const _0x5f260a=new Set(_0x259891['map'](_0x5c60b4=>_0x5c60b4['id']));for(let _0x49d92e=0x0;_0x49d92e<_0x259891['length'];_0x49d92e++)_0x5f260a['has'](_0x259891[_0x49d92e]['pairId'])||0x0==_0x259891[_0x49d92e]['distance']||(_0x259891[_0x49d92e]['isIncorrect']=!0x0);return _0x259891['filter'](_0x50e555=>!_0x50e555['isIncorrect']);}['_markMismatchedRemovedTags'](_0x127b52){const _0xa5fc78=new Set();for(let _0x511fcf=0x0;_0x511fcf<_0x127b52['length'];_0x511fcf++){if(_0xa5fc78['has'](_0x127b52[_0x511fcf]['id'])&&_0x127b52[_0x511fcf]['isRemoved']&&(_0x127b52[_0x511fcf]['isIncorrect']=!0x0),_0x127b52[_0x511fcf]['isIncorrect'])continue;if(0x0==_0x127b52[_0x511fcf]['distance'])continue;if('elementStart'!=_0x127b52[_0x511fcf]['type'])continue;if(null==_0x127b52[_0x511fcf]['pairId'])continue;let _0x3ebcc2=_0x511fcf+0x1,_0x4ec936=0x0;for(;_0x127b52[_0x3ebcc2]['id']!=_0x127b52[_0x511fcf]['pairId'];)'elementStart'==_0x127b52[_0x3ebcc2]['type']?_0x4ec936++:'elementEnd'==_0x127b52[_0x3ebcc2]['type']&&_0x4ec936--,_0x3ebcc2++;if(0x0!=_0x4ec936){if(_0x127b52[_0x511fcf]['isRemoved'])_0x127b52[_0x511fcf]['isIncorrect']=!0x0;else{for(;_0x3ebcc2!=_0x511fcf;)_0x127b52[_0x3ebcc2]['isRemoved']&&0x0!=_0x127b52[_0x3ebcc2]['distance']&&(_0x127b52[_0x3ebcc2]['isIncorrect']=!0x0,_0xa5fc78['add'](_0x127b52[_0x3ebcc2]['pairId'])),_0x3ebcc2--;}}}return _0x127b52['filter'](_0x57b902=>!_0x57b902['isIncorrect']);}['_removeUnsupportedChanges'](_0x41cd9f){const _0x3dd921=this['editor']['model']['schema'];for(let _0x49ec61=0x0;_0x49ec61<_0x41cd9f['length'];_0x49ec61++){if(!(_0x41cd9f[_0x49ec61]['isAdded']||_0x41cd9f[_0x49ec61]['isAddSuggestion']||_0x41cd9f[_0x49ec61]['isRemoved']||_0x41cd9f[_0x49ec61]['isRemoveSuggestion']))continue;if(0x0==_0x41cd9f[_0x49ec61]['distance'])continue;const _0x2380f3=_0x41cd9f[_0x49ec61]['item'];_0x3dd921['isBlock'](_0x2380f3)||_0x3dd921['isLimit'](_0x2380f3)||(_0x41cd9f[_0x49ec61]['isAdded']&&delete _0x41cd9f[_0x49ec61]['isAdded'],_0x41cd9f[_0x49ec61]['isAddSuggestion']&&delete _0x41cd9f[_0x49ec61]['isAddSuggestion'],_0x41cd9f[_0x49ec61]['isRemoveSuggestion']&&delete _0x41cd9f[_0x49ec61]['isRemoveSuggestion'],_0x41cd9f[_0x49ec61]['isRemoved']&&(_0x41cd9f[_0x49ec61]['isIncorrect']=!0x0));}return _0x41cd9f['filter'](_0x4f3370=>!_0x4f3370['isIncorrect']);}['_makeModelFromTape'](_0x4a76d3,_0x4812ce,_0x42bdb6){const _0x402507=new mt(),_0x1871d3=[],_0x188f7b=new Map(),_0x56afb3=this['editor']['model'],_0x463ab2=_0x56afb3['schema'],_0x4c2644=[_0x402507],_0x307cd1={},_0x3ef066={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0xdaf75=null;const _0x41afad=[0x0];for(let _0x52f542=0x0;_0x52f542<_0x4a76d3['length'];_0x52f542++)if('elementStart'===_0x4a76d3[_0x52f542]['type']){_0x4a76d3[_0x52f542]['previousPosition']=_0x56afb3['createPositionFromPath'](_0x402507,_0x41afad);const _0x197021=new ft(_0x4a76d3[_0x52f542]['item']['name'],_0x4a76d3[_0x52f542]['item']['getAttributes']());_0x4c2644[0x0]['_appendChild'](_0x197021),_0x41afad['push'](0x0),_0x4c2644['unshift'](_0x197021),_0x4a76d3[_0x52f542]['nextPosition']=_0x56afb3['createPositionFromPath'](_0x402507,_0x41afad);}else'elementEnd'===_0x4a76d3[_0x52f542]['type']?(_0x4c2644['shift'](),_0x4a76d3[_0x52f542]['previousPosition']=_0x56afb3['createPositionFromPath'](_0x402507,_0x41afad),_0x41afad['pop'](),_0x41afad[_0x41afad['length']-0x1]++,_0x4a76d3[_0x52f542]['nextPosition']=_0x56afb3['createPositionFromPath'](_0x402507,_0x41afad)):(_0x4a76d3[_0x52f542]['previousPosition']=_0x56afb3['createPositionFromPath'](_0x402507,_0x41afad),_0xdaf75?_0xdaf75['_data']+=_0x4a76d3[_0x52f542]['item']['data']:_0xdaf75=new wt(_0x4a76d3[_0x52f542]['item']['data'],_0x4a76d3[_0x52f542]['item']['getAttributes']()),_0x4a76d3[_0x52f542+0x1]&&'text'===_0x4a76d3[_0x52f542+0x1]['type']&&_0x47bc24(_0xdaf75,_0x4a76d3[_0x52f542+0x1]['item'])||(_0x4c2644[0x0]['_appendChild'](_0xdaf75),_0xdaf75=null),_0x41afad[_0x41afad['length']-0x1]+=_0x4a76d3[_0x52f542]['item']['offsetSize'],_0x4a76d3[_0x52f542]['nextPosition']=_0x56afb3['createPositionFromPath'](_0x402507,_0x41afad));for(let _0x3fd02b=0x0;_0x3fd02b<_0x4a76d3['length'];_0x3fd02b++){const _0x3cde4e=_0x4a76d3[_0x3fd02b]['previousPosition'],_0x2d0c92=_0x4a76d3[_0x3fd02b]['nextPosition'];for(const _0x17c234 of _0x4a76d3[_0x3fd02b]['markersStart'])_0x188f7b['set'](_0x17c234,{'start':_0x3cde4e,'end':null});_0xa53845('isRemoveSuggestion',_0x3fd02b,_0x3cde4e,_0x2d0c92),_0xa53845('isAddSuggestion',_0x3fd02b,_0x3cde4e,_0x2d0c92),_0xa53845('isRemoved',_0x3fd02b,_0x3cde4e,_0x2d0c92),_0xa53845('isAdded',_0x3fd02b,_0x3cde4e,_0x2d0c92);for(const _0x4743d2 of _0x4a76d3[_0x3fd02b]['markersEnd']){_0x188f7b['get'](_0x4743d2)['end']=_0x2d0c92;}}for(const [_0x4e800e,_0x4c8bea]of _0x188f7b){const _0x4cb81a=this['editor']['model']['createRange'](_0x4c8bea['start'],_0x4c8bea['end']);_0x402507['markers']['set'](_0x4e800e,_0x4cb81a);}return _0x1871d3['sort']((_0x13c876,_0x5ee4ce)=>{const _0x4ac0fb=_0x402507['markers']['get']('revision:'+_0x13c876['id']),_0x1a7b4b=_0x402507['markers']['get']('revision:'+_0x5ee4ce['id']);return _0x4ac0fb['start']['isBefore'](_0x1a7b4b['start'])?-0x1:_0x4ac0fb['start']['isAfter'](_0x1a7b4b['start'])?0x1:_0x4ac0fb['end']['isBefore'](_0x1a7b4b['end'])?-0x1:_0x4ac0fb['end']['isAfter'](_0x1a7b4b['end'])?0x1:'add'===_0x13c876['type']?-0x1:0x1;}),{'root':_0x402507,'changes':_0x1871d3};function _0xa53845(_0x901214,_0x35b3eb,_0x30898c,_0x308072){const _0x248be3=!!_0x4a76d3[_0x35b3eb][_0x901214],_0xe29d1e=_0x248be3?_0x4a76d3[_0x35b3eb][_0x901214]['userId']:null,_0x3a5769=_0x35b3eb===_0x4a76d3['length']-0x1,_0x26fa3a=_0x3ef066[_0x901214][0x0],_0x543171=_0x463ab2['isObject'](_0x4a76d3[_0x35b3eb]['item']);!_0x307cd1[_0x901214]&&_0x248be3?_0x307cd1[_0x901214]={'start':_0x30898c,'tapeItem':_0x4a76d3[_0x35b3eb],'userId':_0xe29d1e,'type':_0x901214}:_0x307cd1[_0x901214]&&!_0x248be3?(_0x307cd1[_0x901214]['end']=_0x30898c,_0x2c0392(_0x307cd1[_0x901214]),_0x307cd1[_0x901214]=null):_0x307cd1[_0x901214]&&_0x248be3&&_0x307cd1[_0x901214]['userId']!==_0xe29d1e&&(_0x307cd1[_0x901214]['end']=_0x30898c,_0x26fa3a&&_0x26fa3a['userId']===_0x307cd1[_0x901214]['userId']||_0x2c0392(_0x307cd1[_0x901214]),_0x307cd1[_0x901214]={'start':_0x30898c,'tapeItem':_0x4a76d3[_0x35b3eb],'userId':_0xe29d1e,'type':_0x901214}),_0x307cd1[_0x901214]&&_0x543171&&('elementStart'!==_0x4a76d3[_0x35b3eb]['type']||_0x26fa3a&&_0x26fa3a['userId']===_0xe29d1e||_0x3ef066[_0x901214]['unshift']({'userId':_0xe29d1e,'object':_0x4a76d3[_0x35b3eb]['item'],'change':_0x307cd1[_0x901214]}),'elementEnd'===_0x4a76d3[_0x35b3eb]['type']&&_0x26fa3a&&_0x26fa3a['object']===_0x4a76d3[_0x35b3eb]['item']&&(_0x3ef066[_0x901214]['shift'](),_0x307cd1[_0x901214]=_0x26fa3a['change'])),_0x307cd1[_0x901214]&&_0x3a5769&&(_0x307cd1[_0x901214]['end']=_0x308072,_0x2c0392(_0x307cd1[_0x901214]),_0x307cd1[_0x901214]=null);}function _0x2c0392({start:_0x526ad1,end:_0x27fcb9,tapeItem:_0x5254b9,userId:_0x2d5fae,type:_0xb7dde4}){const _0x293622=_0x5254b9['item'],_0x29a622=_0x56afb3['schema']['isBlock'](_0x293622)&&!_0x56afb3['schema']['isLimit'](_0x293622),_0x441e25=_0x526ad1['nodeAfter']==_0x27fcb9['parent']&&_0x27fcb9['isAtStart'];if(_0x29a622&&_0x441e25)return;const _0x2052e1=_0x56afb3['createRange'](_0x526ad1,_0x27fcb9),_0x2ba0ca=_0x4812ce['get'](_0x2d5fae),_0x32c47a=new r({'author':_0x2ba0ca,'type':'isAdded'==_0xb7dde4||'isAddSuggestion'==_0xb7dde4?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0xb7dde4||'isRemoveSuggestion'==_0xb7dde4},'createdAt':new Date(),'rootName':_0x42bdb6});_0x1871d3['push'](_0x32c47a),_0x402507['markers']['set']('revision:'+_0x32c47a['id'],_0x2052e1);}function _0x47bc24(_0x23373b,_0x234019){const _0xbe187c=_0x23373b['getAttributes'](),_0x2eb3b4=_0x234019['getAttributes']();for(const _0xa2cfda of _0xbe187c){if(_0xa2cfda[0x1]!==_0x234019['getAttribute'](_0xa2cfda[0x0]))return!0x1;_0x2eb3b4['next']();}return _0x2eb3b4['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x57370c=>{const _0x2b0ddc=_0x57370c['markerName']['split'](':')[0x1],_0x16c7de=this['_getChangeFromId'](_0x2b0ddc);if(!_0x16c7de)return null;const _0x3c7622='add'==_0x16c7de['type']?'insertion':'deletion',_0x39d5e7=['ck-suggestion-marker','ck-suggestion-marker-'+_0x3c7622];return _0x16c7de['data']['isSuggestion']&&_0x39d5e7['push']('ck-suggestion-marker-'+_0x3c7622+'-new'),this['activeChange']==_0x16c7de&&_0x39d5e7['push']('ck-suggestion-marker--active'),{'classes':_0x39d5e7,'attributes':{'data-change-id':_0x2b0ddc}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x534b5f=>{_0x534b5f['on']('element:pre',(_0x221f0f,_0x1a480a,_0x107fe6)=>{const _0xe2353f=_0x1a480a['viewItem']['getChild'](0x0);if(!_0xe2353f||!_0xe2353f['is']('element','code'))return;if(!_0x107fe6['consumable']['consume'](_0xe2353f,{'attributes':['vid_start','vid_end']}))return;const _0x2e792b=_0x1a480a['modelRange']['start']['nodeAfter'];_0x107fe6['writer']['setAttribute']('vid_start',_0xe2353f['getAttribute']('vid_start'),_0x2e792b),_0x107fe6['writer']['setAttribute']('vid_end',_0xe2353f['getAttribute']('vid_end'),_0x2e792b);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x229bf9=>{_0x229bf9['on']('element',(_0x547f3f,_0x46009c,_0x4fca2d)=>{if(!_0x4fca2d['consumable']['consume'](_0x46009c['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x46009c['modelRange']['isCollapsed'])return;const _0x5d60f5=_0x46009c['modelRange']['start']['nodeAfter'];_0x5d60f5['hasAttribute']('vid_start')||_0x5d60f5['hasAttribute']('vid')||(_0x4fca2d['writer']['setAttribute']('vid_start',_0x46009c['viewItem']['getAttribute']('vid_start'),_0x5d60f5),_0x4fca2d['writer']['setAttribute']('vid_end',_0x46009c['viewItem']['getAttribute']('vid_end'),_0x5d60f5));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x143db0=>_0x143db0['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x3b3410,[,_0x456863])=>{['vid_start','vid_end','vid']['includes'](_0x456863)&&(_0x3b3410['return']=!0x0,_0x3b3410['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x407600=>{_0x407600['on']('attribute:vid',(_0x5b52fe,_0x90c0a8,_0xc6435)=>{if('\x20'!=_0x90c0a8['item']['data']||_0x90c0a8['item']['parent']['maxOffset']>0x1)return;if(!_0xc6435['consumable']['consume'](_0x90c0a8['item'],_0x5b52fe['name']))return;const _0x1950d6=_0xc6435['writer'],_0x1d5181=_0xc6435['mapper']['toViewRange'](_0x90c0a8['range']);_0x1950d6['wrap'](_0x1d5181,_0x1950d6['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x394b16){const _0xbb1949=_0x394b16['plugins']['get']('RevisionViewer');return(_0x5bb37e,_0x1e301b,_0x2704a6)=>{const _0x1dacd2=_0x1e301b['markerName']['split'](':')[0x1],_0x11fe52=_0xbb1949['_getChangeFromId'](_0x1dacd2);if(!_0x11fe52)return null;const _0x1f7982='add'==_0x11fe52['type']?'split':'merge';if(!_0x2704a6['consumable']['test'](_0x1e301b['markerRange'],_0x5bb37e['name']))return;const _0x97ed77=_0x1e301b['markerRange']['getWalker'](),_0x41ce85=_0x1e301b['markerRange']['start'],_0x5cd118=_0x394b16['model']['schema'];let _0x413925=null,_0x916c8e=null,_0x2ac79c=!0x1,_0x5cfea7=!0x1;for(const _0x1dd5e1 of _0x97ed77){const _0x199756=_0x1dd5e1['item'];_0x2ac79c=_0x2ac79c||_0x5cd118['isContent'](_0x199756);const _0x5a6928=_0x2704a6['mapper']['toViewElement'](_0x199756);if(_0x5a6928&&_0x5a6928['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1dd5e1['type']&&(_0x5cd118['isBlock'](_0x199756)&&!_0x5cd118['isLimit'](_0x199756)&&(_0x199756['nextSibling']||_0x41ce85['isAtEnd']?_0x413925&&_0x413925['parent']==_0x199756||(_0x413925=_0x199756,_0x248415(_0x1dd5e1['previousPosition']),_0x5cfea7=!0x0):_0x916c8e=_0x916c8e||_0x1dd5e1['previousPosition']));}function _0x248415(_0x461c17){const _0x2a5e9e=_0x2704a6['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1f7982}),_0x30494d=_0x2704a6['mapper']['toViewPosition'](_0x461c17);_0x11fe52['data']['isSuggestion']&&_0x2704a6['writer']['addClass']('ck-suggestion-marker-'+_0x1f7982+'-new',_0x2a5e9e),_0xbb1949['activeChange']==_0x11fe52&&_0x2704a6['writer']['addClass']('ck-suggestion-marker--active',_0x2a5e9e),_0x2704a6['writer']['insert'](_0x30494d,_0x2a5e9e),_0x2704a6['mapper']['bindElementToMarker'](_0x2a5e9e,_0x1e301b['markerName']);}_0x2ac79c||_0x5cfea7||!_0x916c8e||_0x248415(_0x916c8e);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x41eaa4,_0x3e6945,_0x534976)=>{const _0x268634=_0x534976['mapper']['markerNameToElements'](_0x3e6945['markerName']);if(_0x268634){for(const _0x172435 of _0x268634)(_0x172435['hasClass']('ck-suggestion-marker-split')||_0x172435['hasClass']('ck-suggestion-marker-merge'))&&(_0x534976['mapper']['unbindElementFromMarkerName'](_0x172435,_0x3e6945['markerName']),_0x534976['writer']['remove'](_0x172435));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x137a9e,_0x52b955,_0x422a30)=>{const _0x2997d2=_0x52b955['markerName']['split'](':')[0x1],_0x1999f8=this['_getChangeFromId'](_0x2997d2);if(!_0x1999f8)return null;const _0x6f4801='add'==_0x1999f8['type']?'split':'merge';if(_0x422a30['consumable']['test'](_0x52b955['markerRange'],_0x137a9e['name']))for(const _0x31f1bd of _0x52b955['markerRange']['getItems']()){if(!_0x31f1bd['is']('element','softBreak'))continue;const _0xc067ac=_0x422a30['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x6f4801}),_0x1ad713=_0x422a30['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x31f1bd));_0x1999f8['data']['isSuggestion']&&_0x422a30['writer']['addClass']('ck-suggestion-marker-'+_0x6f4801+'-new',_0xc067ac),this['activeChange']==_0x1999f8&&_0x422a30['writer']['addClass']('ck-suggestion-marker--active',_0xc067ac),_0x422a30['writer']['insert'](_0x1ad713,_0xc067ac),_0x422a30['mapper']['bindElementToMarker'](_0xc067ac,_0x52b955['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x17187d=>{for(const _0x2aea47 of this['editor']['model']['document']['getRootNames']()){const _0x50cc26=this['editor']['model']['document']['getRoot'](_0x2aea47),_0x214c44=this['editor']['editing']['view']['document']['getRoot'](_0x2aea47);if(_0x214c44){const _0x36aabc=_0x50cc26['getAttribute']('revisionHistoryAttachChange');if(_0x17187d['removeAttribute']('data-change-id',_0x214c44),_0x17187d['removeClass']('ck-revision-history-root-add',_0x214c44),_0x17187d['removeClass']('ck-revision-history-root-remove',_0x214c44),_0x17187d['removeClass']('ck-revision-history-root--active',_0x214c44),_0x36aabc){const _0x16b0e6=this['_getChangeFromId'](_0x36aabc);if(!_0x16b0e6)return null;_0x17187d['setAttribute']('data-change-id',_0x36aabc,_0x214c44),_0x17187d['addClass']('ck-revision-history-root-'+_0x16b0e6['type'],_0x214c44),this['activeChange']==_0x16b0e6&&_0x17187d['addClass']('ck-revision-history-root--active',_0x214c44);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x207523=>'revision-comment:'+_0x207523,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x49d307=>'revision-suggestion:'+_0x49d307,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x3b8e30=>({'name':'suggestion:'+_0x3b8e30,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x341c71=>{const _0x33d46e=_0x341c71['markerName']['split'](':')[0x1];return'insertion'!=_0x33d46e&&'deletion'!=_0x33d46e?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x33d46e]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x54244c,_0x2a5a65,_0x1d413d)=>{const _0x20715a=_0x1d413d['mapper']['markerNameToElements'](_0x2a5a65['markerName']);if(_0x20715a){for(const _0x403735 of _0x20715a)_0x403735['is']('uiElement')&&(_0x1d413d['mapper']['unbindElementFromMarkerName'](_0x403735,_0x2a5a65['markerName']),_0x1d413d['writer']['remove'](_0x403735));}},{'priority':'high'});}['_getChangeFromId'](_0x381035){return this['_changeIdToChange']['get'](_0x381035);}['_getViewForChange'](_0x589ebb){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x589ebb),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x320b3b,_0x322c2d,_0x21637f,_0x51e74a)=>{_0x51e74a&&this['_balloon']['remove'](_0x51e74a),_0x21637f&&(this['_balloon']['add']({'view':_0x21637f,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x2c1595=this['editor']['editing'],_0x2ca1e2=this['_getChangeFromId'](_0x21637f['changeId']);let _0x271c2f;if(_0x2ca1e2['data']['isOnRoot']){const _0x202961=_0x2c1595['view']['getDomRoot'](_0x2ca1e2['rootName']);_0x271c2f=Array['from'](_0x202961['getClientRects']());}else{const _0x3371d1=this['editor']['model']['markers']['get']('revision:'+_0x21637f['changeId']);_0x271c2f=Array['from'](_0x2c1595['mapper']['markerNameToElements'](_0x3371d1['name']))['map'](_0xdbeb2d=>_0x2c1595['view']['domConverter']['mapViewToDom'](_0xdbeb2d))['map'](_0xf2333d=>Array['from'](_0xf2333d['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x271c2f[0x0];return _0x271c2f['find'](_0xeea292=>_0xeea292['top']-0x3<=this['_activeViewTarget']['y']&&_0xeea292['bottom']+0x3>=this['_activeViewTarget']['y']&&_0xeea292['left']-0x3<=this['_activeViewTarget']['x']&&_0xeea292['right']+0x3>=this['_activeViewTarget']['x'])||_0x271c2f[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0xa659aa,_0x5e7b06,_0x1bc497,_0x29b467)=>{this['activeView']=_0x1bc497?this['_getViewForChange'](_0x1bc497):null,this['editor']['model']['change'](()=>{const _0x36bf6f=this['editor']['editing'];_0x29b467&&(_0x29b467['data']['isOnRoot']?_0x36bf6f['view']['change'](_0x4d8d2d=>{_0x4d8d2d['removeClass']('ck-revision-history-root--active',_0x36bf6f['view']['document']['getRoot'](_0x29b467['rootName']));}):_0x36bf6f['reconvertMarker']('revision:'+_0x29b467['id'])),_0x1bc497&&(_0x1bc497['data']['isOnRoot']?_0x36bf6f['view']['change'](_0x3c7910=>{_0x3c7910['addClass']('ck-revision-history-root--active',_0x36bf6f['view']['document']['getRoot'](_0x1bc497['rootName']));}):_0x36bf6f['reconvertMarker']('revision:'+_0x1bc497['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x23f074,_0x567bf0)=>{if(this['activeChange'])return;const _0x563303=this['_findChangeIdFromDomTarget'](_0x567bf0['target']),_0x52e247=this['_changeIdToChange']['get'](_0x563303);_0x52e247?(this['_activeViewTarget']={'x':_0x567bf0['domEvent']['x'],'y':_0x567bf0['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x52e247)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x43619e,_0x2b2476)=>{const _0x4227e5=this['_findChangeIdFromDomTarget'](_0x2b2476['target']),_0x2c8462=this['_changeIdToChange']['get'](_0x4227e5);_0x2c8462?(this['_activeViewTarget']={'x':_0x2b2476['domEvent']['x'],'y':_0x2b2476['domEvent']['y']},_0x2c8462===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x2c8462):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x52b8ec){do{const _0x129e80=_0x52b8ec['getAttribute']('data-change-id');if(_0x129e80)return _0x129e80;_0x52b8ec=_0x52b8ec['parent'];}while(_0x52b8ec);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x20cdd4=>{for(const _0x559b4c of this['editor']['model']['markers'])_0x20cdd4['removeMarker'](_0x559b4c);});}}function Z(_0x2ac33b,_0x518be2){return(_0x59c9ff,_0x35211d,_0x25652a)=>{if(!_0x25652a['consumable']['test'](_0x35211d['markerRange'],_0x59c9ff['name']))return;const _0x4a7e6d=_0x35211d['markerRange']['getWalker'](),_0x3f0e5f=_0x35211d['markerRange']['start'],_0x58e7bb=_0x2ac33b['model']['schema'];let _0x434593=null,_0x575d00=null,_0xd4bfc8=!0x1,_0x28ce9d=!0x1;for(const _0x4ba0cd of _0x4a7e6d){const _0xa76e87=_0x4ba0cd['item'];_0xd4bfc8=_0xd4bfc8||_0x58e7bb['isContent'](_0xa76e87);const _0x35a513=_0x25652a['mapper']['toViewElement'](_0xa76e87);if(_0x35a513&&_0x35a513['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4ba0cd['type']&&(_0x58e7bb['isBlock'](_0xa76e87)&&!_0x58e7bb['isLimit'](_0xa76e87)&&(_0xa76e87['nextSibling']||_0x3f0e5f['isAtEnd']?_0x434593&&_0x434593['parent']==_0xa76e87||(_0x434593=_0xa76e87,_0x4652b9(_0x4ba0cd['previousPosition']),_0x28ce9d=!0x0):_0x575d00=_0x575d00||_0x4ba0cd['previousPosition']));}function _0x4652b9(_0x1345d7){const _0x1db31a=_0x25652a['mapper']['toViewPosition'](_0x1345d7),_0x2f28ca=_0x25652a['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x518be2});_0x25652a['writer']['insert'](_0x1db31a,_0x2f28ca),_0x25652a['mapper']['bindElementToMarker'](_0x2f28ca,_0x35211d['markerName']);}_0xd4bfc8||_0x28ce9d||!_0x575d00||_0x4652b9(_0x575d00);};}class pt extends _0x1d782e{constructor(_0xd3d341){super(_0xd3d341);const _0x4d8545=_0xd3d341['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x4d8545,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x4d8545,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x352074=this['editor'],_0x2f20b9=_0x352074['plugins']['get'](d),_0xca07d8=_0x2f20b9['isReady']?_0x2f20b9['diff']['newRevisionId']:null;_0x352074['config']['get']('revisionHistory')['restoreRevisionCallback'](_0xca07d8);}['refresh'](){const {isReady:_0x5c612b,isEnabled:_0x4e8870,repository:_0x5c35f7,diff:_0x26be50}=this['editor']['plugins']['get'](d),_0x347a9b=_0x26be50&&_0x5c35f7['getLaterVisibleRevision'](_0x26be50['newRevisionId']);this['isEnabled']=_0x5c612b&&_0x4e8870&&Boolean(_0x347a9b);}}class _t extends _0x1d782e{['_step'];constructor(_0x376db5,{direction:_0x1aafb3}){super(_0x376db5);const _0x427924=_0x376db5['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x1aafb3?0x1:-0x1,this['listenTo'](_0x427924,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x427924,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x427924,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x382d9d=this['editor'],_0x23cf60=_0x382d9d['plugins']['get'](d),{isNavigationMode:_0x599db7,currentChangeNumber:_0x1b4f47}=_0x23cf60;let _0x2319bc;if(_0x23cf60['activeChange']=_0x599db7?_0x23cf60['diff']['changes']['get'](_0x1b4f47+this['_step']):_0x23cf60['diff']['changes']['first'],_0x23cf60['activeChange']['data']['isOnRoot'])_0x2319bc=_0x382d9d['editing']['view']['getDomRoot'](_0x23cf60['activeChange']['rootName']);else{const _0x3e6fc6=_0x382d9d['model']['markers']['get']('revision:'+_0x23cf60['activeChange']['id']);_0x2319bc=_0x40ad99(_0x382d9d['editing'],_0x3e6fc6);}_0x170d53({'target':_0x2319bc,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x1e1839,currentChangeNumber:_0x25a4f1,numberOfChanges:_0x4c3fd6,isReady:_0x3992ac,isEnabled:_0x1a3f9c}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x1a3f9c&&_0x3992ac&&_0x4c3fd6)&&(!_0x1e1839||(0x1===this['_step']?_0x25a4f1<_0x4c3fd6-0x1:_0x25a4f1>0x0));}}class li extends ts{constructor(_0x10d957){super(_0x10d957);const _0x25118c=this['bindTemplate'],_0x4e45bf=new te(_0x10d957),_0x39e6fd=new te(_0x10d957);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',(_0x477902,_0x312e00)=>_0x477902&&_0x312e00>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x332bb3,_0x401d5e,_0x44dba7,_0x1c6004)=>{if(!_0x332bb3)return m(_0x10d957,'Loading...');if(!_0x44dba7)return m(_0x10d957,'No\x20changes');const _0x56671a=m(_0x10d957,'NUMBER_OF_CHANGES',_0x44dba7);return _0x1c6004?m(_0x10d957,'X_OF_Y_CHANGES',[_0x401d5e+0x1,_0x44dba7]):_0x56671a;}),_0x4e45bf['set']({'label':m(_0x10d957,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x2014.494a.75.75\x200\x200\x200\x201.197-.899l-.067-.089-6.992-8a.75.75\x200\x200\x200-1.05-.078l-.079.078-7.008\x208a.75.75\x200\x200\x200\x201.049\x201.066l.08-.078\x206.442-7.354\x206.428\x207.354z\x22/></svg>\x0a'}),_0x39e6fd['set']({'label':m(_0x10d957,'Show\x20next\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x205.506a.75.75\x200\x200\x201\x201.197.899l-.067.089-6.992\x208a.75.75\x200\x200\x201-1.05.078l-.079-.078-7.008-8a.75.75\x200\x200\x201\x201.049-1.066l.08.078\x206.442\x207.354\x206.428-7.354z\x22/></svg>\x0a'}),_0x4e45bf['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x39e6fd['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x4e45bf['on']('execute',()=>this['fire']('execute','backward')),_0x39e6fd['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',_0x25118c['if']('_isStatusLabelVisible','ck-hidden',_0x59dd6d=>!_0x59dd6d)]},'children':[{'text':_0x25118c['to']('isNavigationMode',_0x54d895=>_0x54d895?m(_0x10d957,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x10d957,'Total')+':\x20')}]},{'text':_0x25118c['to']('_statusText')}]},new _0x4101c0(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x4e45bf,_0x39e6fd]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x1420a4{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x3714c7=this['editor']['editing']['view'];_0x3714c7['change'](_0x964742=>{for(const _0xe05202 of _0x3714c7['document']['roots'])_0x964742['addClass'](le,_0xe05202);});}['hide'](){const _0x2d360c=this['editor']['editing']['view'];_0x2d360c['change'](_0x53f9ea=>{for(const _0x52569d of _0x2d360c['document']['roots'])_0x53f9ea['removeClass'](le,_0x52569d);});}}class g extends _0x1420a4{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,ge];}['init'](){const _0x56b112=this['editor'],_0x39f179=_0x56b112['plugins']['get'](d),_0x25d734=_0x56b112['plugins']['get'](ge);_0x56b112['ui']['componentFactory']['add']('exitToEditing',_0x538dd1=>{const _0x39be8f=new te(_0x538dd1);return _0x39be8f['set']({'label':m(_0x538dd1,'Back\x20to\x20editing'),'icon':_0x247700['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x39be8f,'execute',()=>{_0x56b112['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x39be8f;}),_0x56b112['ui']['componentFactory']['add']('restoreRevision',_0x2618bb=>{const _0x1612d4=new te(_0x2618bb);return _0x1612d4['set']({'label':m(_0x2618bb,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x1612d4['bind']('isEnabled')['to'](_0x56b112['commands']['get']('restoreRevision')),this['listenTo'](_0x1612d4,'execute',()=>_0x56b112['execute']('restoreRevision')),_0x1612d4;}),_0x56b112['ui']['componentFactory']['add']('changesNavigation',_0x201032=>{const _0x29709b=new li(_0x201032),_0x4a0c5a=_0x56b112['commands']['get']('showPreviousChange'),_0x5777d8=_0x56b112['commands']['get']('showNextChange');return _0x29709b['bind']('isBackwardNavigationEnabled')['to'](_0x4a0c5a,'isEnabled'),_0x29709b['bind']('isForwardNavigationEnabled')['to'](_0x5777d8,'isEnabled'),_0x29709b['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x39f179),this['listenTo'](_0x29709b,'execute',(_0x1667ad,_0x5dabb8)=>{_0x56b112['execute']('forward'===_0x5dabb8?'showNextChange':'showPreviousChange');}),_0x29709b;}),_0x25d734['show'](),_0x39f179['on']('change:isReady',(_0x45b833,_0x2c424c,_0x566408)=>{_0x566408?_0x25d734['hide']():_0x25d734['show']();});}}class at extends _0xe538c1{['_resizeObserver']=null;constructor(_0x4b9198,_0x3662db){super(_0x4b9198,_0x3662db);const _0x23147c=this['bindTemplate'];this['set']({'label':m(_0x4b9198,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x4b9198,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x23147c['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new nt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x5e25ca=this['fieldView']['element'];this['_tooltipString']=_0x5e25ca['scrollWidth']>_0x5e25ca['clientWidth']&&_0x5e25ca['value']||'';}}class ri extends ts{constructor(_0x482a4e,_0x521360,_0x67e42a){super(_0x482a4e);const _0x27e2df=new _0x151b45();_0x27e2df['set']({'content':'<svg\x20viewBox=\x220\x200\x2011\x2010\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20xmlns:xlink=\x22http://www.w3.org/1999/xlink\x22><path\x20d=\x22M5.5\x205C8.538\x205\x2011\x207.015\x2011\x209.5c0\x20.17-.011.336-.034.5H.034A3.732\x203.732\x200\x200\x201\x200\x209.5C0\x207.015\x202.462\x205\x205.5\x205zm0-5a2.5\x202.5\x200\x201\x201\x200\x205\x202.5\x202.5\x200\x200\x201\x200-5z\x22\x20/></svg>\x0a','viewBox':'0\x200\x2011\x2010'});const _0x1a131f=['ck','ck-revision-history-sidebar__revision-author'];_0x67e42a&&_0x1a131f['push']('ck-revision-history-sidebar__revision-author_creator');const _0x2419ee=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x482a4e,_0x67e42a?'Revision\x20creator':'Revision\x20author')},'children':[_0x27e2df,_0x521360['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x1a131f},'children':_0x2419ee});}}function oi(_0x58a4f0,_0x1f81b4){const _0xc8a8ee=_0x58a4f0['bindTemplate'],_0x1a22e0=_0x58a4f0['locale'],_0x626e70=_0x1e0a60(_0x1a22e0);_0x626e70['panelPosition']='sw';const _0x1a9d37=function(_0x3cc103,_0x4884de){const _0x596780=function(_0x26d074,_0x283996){const _0x12e8b1=_0x26d074['locale'],_0x219ca1={'Compare\x20against\x20selected':m(_0x12e8b1,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x12e8b1,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x12e8b1,'Restore\x20this\x20revision')};return _0x283996['map'](_0x3a629e=>{const _0x24ac03=_0x219ca1[_0x3a629e['name']];return _0x24ac03&&_0x24ac03!==_0x3a629e['name']&&(_0x3a629e['name']=_0x24ac03),_0x3a629e;});}(_0x3cc103,_0x4884de),_0x9adb05=new _0xcf6e93();for(const _0x3f69a1 of _0x596780){const _0x1ccbbb={'type':'button','model':new _0x58fc48({'label':_0x3f69a1['name'],'class':_0x3f69a1['class'],'withText':!0x0,'role':'menuitem','_action':_0x3f69a1['action']})};_0x1ccbbb['model']['bind']('isEnabled')['to'](_0x3cc103,'isActionsDropdownOpen',_0x271e33=>'function'!=typeof _0x3f69a1['isEnabled']||(!_0x271e33||_0x3f69a1['isEnabled'](_0x3cc103))),_0x9adb05['add'](_0x1ccbbb);}return _0x9adb05;}(_0x58a4f0,_0x1f81b4);return _0x58a4f0['bind']('isActionsDropdownOpen')['to'](_0x626e70,'isOpen'),_0x626e70['buttonView']['set']({'label':m(_0x1a22e0,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x247700['threeVerticalDots']}),_0x626e70['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0xc8a8ee['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0xc8a8ee['to'](_0x40523e=>_0x40523e['stopPropagation']())}}),_0x626e70['on']('execute',_0x218b5c=>{_0x58a4f0['isReady']&&'function'==typeof _0x218b5c['source']['_action']&&_0x218b5c['source']['_action'](_0x58a4f0);}),to(_0x626e70,_0x1a9d37,{'role':'menu'}),_0x626e70['listenTo'](_0x58a4f0,'change:isActionsDropdownOpen',(_0x2b09aa,_0x3fb6c3,_0x14f488)=>{if(_0x14f488)for(const _0x20f60c of _0x626e70['listView']['items']){const _0x22bc47=_0x20f60c['children']['first'],_0xc7d649=_0x1f81b4['find'](_0x13f3f6=>_0x13f3f6['action']===_0x22bc47['_action'])['isVisible'];_0x20f60c['isVisible']=void 0x0===_0xc7d649||_0xc7d649(_0x58a4f0);}}),_0x626e70;}class hi extends/* #__PURE__ -- @preserve */
|
|
26
|
+
ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x2c1d09,_0x1b1187,_0xc7ea7f,_0x3f4c47){super(_0x2c1d09);const _0x1b3578=this['bindTemplate'],_0x2c9766=function(_0x1e4440,_0x38bd8f){const _0x404880=Array['from'](_0x38bd8f['authors'])['filter'](_0x5665b2=>_0x5665b2!=_0x38bd8f['creator']);return _0x38bd8f['creator']&&_0x404880['unshift'](_0x38bd8f['creator']),_0x404880['map'](_0x2b247f=>new ri(_0x1e4440,_0x2b247f,_0x2b247f==_0x38bd8f['creator']));}(_0x2c1d09,_0x1b1187);this['id']=_0x1b1187['id'],this['_revision']=_0x1b1187,this['_requireRevisionName']=_0x3f4c47,this['bind']('name','createdAt')['to'](_0x1b1187),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x22a0cb=>{return _0x48566e=_0x2c1d09['uiLanguage'],(_0xa5db0a=_0x22a0cb)['toLocaleDateString'](_0x48566e,{'month':'long','day':'numeric'})+',\x20'+_0xa5db0a['toLocaleTimeString'](_0x48566e,{'hour':'numeric','minute':'numeric'});var _0x48566e,_0xa5db0a;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new at(_0x2c1d09,_0x368611),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x362f54=>_0x362f54||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x3efb5f,_0x5459f5)=>_0x3efb5f&&_0x5459f5),this['revisionActionsView']=_0xc7ea7f&&_0xc7ea7f['length']?oi(this,_0xc7ea7f):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x1b3578['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x1b3578['if']('isEnabled','ck-disabled',_0xf16000=>!_0xf16000),_0x1b3578['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x1b3578['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x1b3578['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':_0x1b3578['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':_0x2c9766}]},this['revisionActionsView']],'on':{'click':_0x1b3578['to'](_0x5e90e9=>{_0x5e90e9['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x429017=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x429017,'change',()=>{this['_requireRevisionName']&&!_0x429017['value']||this['fire']('setName',{'id':this['id'],'name':_0x429017['value']}),_0x429017['value']||(_0x429017['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function ci(_0x16e4bc,_0x1fe900){const _0x136312=_0xd4c326['fromJSDate'](_0x16e4bc)['setLocale'](_0x1fe900),_0x48f46f=_0xd4c326['local'](),_0x4ca31c=_0x48f46f['minus']({'days':0x1})['startOf']('day');let _0x5bc7de,_0x5331e6;return _0x136312['hasSame'](_0x48f46f,'day')?(_0x5bc7de=_0x136312['startOf']('day')['toJSDate'](),_0x5331e6=_0x136312['toRelativeCalendar']()):_0x136312['hasSame'](_0x4ca31c,'day')?(_0x5bc7de=_0x4ca31c['toJSDate'](),_0x5331e6=_0x136312['toRelativeCalendar']()):_0x136312['hasSame'](_0x48f46f,'week')?(_0x5bc7de=_0x136312['startOf']('week')['toJSDate'](),_0x5331e6=_0x136312['weekdayLong']||''):_0x136312['hasSame'](_0x48f46f,'year')?(_0x5bc7de=_0x136312['startOf']('month')['toJSDate'](),_0x5331e6=_0x136312['monthLong']||''):(_0x5bc7de=_0x136312['startOf']('year')['toJSDate'](),_0x5331e6=String(_0x136312['year'])),{'startDate':_0x5bc7de,'localizedPeriodName':_0x5331e6};}class ai extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x4b6810,_0x1a3257,_0x56e0a6,_0x35f40b){super(_0x4b6810);const _0x4f0123=ci(_0x1a3257,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x1a3257,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x56e0a6,this['_requireRevisionName']=_0x35f40b,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':_0x4f0123}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x56d7d2){const _0x4c60e7=new hi(this['locale'],_0x56d7d2,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x4c60e7);}['removeRevision'](_0x69c5e8){const _0xe16800=this['revisionViews']['find'](_0x198fca=>_0x198fca['id']===_0x69c5e8['id']);this['revisionViews']['remove'](_0xe16800);}}class as extends ts{constructor(_0x40b8f7){super(_0x40b8f7);const _0x360ec6=new _0x151b45();_0x360ec6['content']=_0x247700['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x360ec6,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x40b8f7,'Revision\x20history')]}]});}}class ni extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x511122,_0x2212b8,_0x3c99b4,_0x3b0e46){super(_0x511122);const _0x571a53=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x2212b8,this['_revisionActions']=_0x3c99b4,this['_requireRevisionName']=_0x3b0e46,this['on']('select',(_0x59d5c3,_0x22b63d)=>{this['fire']('revisionSelected',_0x22b63d);}),this['on']('setName',(_0x3fdf7c,_0x3c4222)=>{this['fire']('revisionSetName',_0x3c4222);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x511122),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x571a53['if']('isEnabled','ck-disabled',_0x57e0ed=>!_0x57e0ed)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x2866cf of this['_revisions'])this['_addRevision'](_0x2866cf);this['_revisions']['on']('add',(_0x4cd7ff,_0x1acbf0)=>{this['_addRevision'](_0x1acbf0);}),this['_revisions']['on']('remove',(_0x18f72b,_0x253928)=>{this['_removeRevision'](_0x253928);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x1857d1=>_0x1857d1['revisionViews']['map'](_0x1b6da3=>_0x1b6da3))['flat']();}['selectRevision'](_0x562b0a){for(const _0xb90707 of this['revisionViews'])_0x562b0a&&_0x562b0a['id']===_0xb90707['id']?_0xb90707['select']():_0xb90707['deselect']();}['highlightRevisions'](_0x27f4f3){for(const _0x2cb8b4 of this['revisionViews'])_0x27f4f3['some'](({id:_0x4c2998})=>_0x4c2998===_0x2cb8b4['id'])?_0x2cb8b4['highlight']():_0x2cb8b4['unhighlight']();}['_addRevision'](_0x53d901){const _0x449c68=ci(_0x53d901['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0xa9319a=this['timePeriodViews']['get'](0x0);_0xa9319a&&_0xa9319a['startDate']['getTime']()===_0x449c68['getTime']()||(_0xa9319a=new ai(this['locale'],_0x449c68,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0xa9319a)),_0xa9319a['addRevision'](_0x53d901);}['_removeRevision'](_0x33ca8f){const _0x3f48be=ci(_0x33ca8f['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x3f48be)['removeRevision'](_0x33ca8f);}['_getTimePeriodViewByStartDate'](_0x4d3ac1){return this['timePeriodViews']['find'](_0x5835e0=>_0x5835e0['startDate']['getTime']()===_0x4d3ac1['getTime']());}}class w extends _0x1420a4{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
27
27
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
|
-
yt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(
|
|
29
|
-
it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x4b5322,_0x2a6a03){super(_0x2a6a03),this['sourceElement']=_0x4b5322,this['model']['document']['createRoot']();const _0x37de9c=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x37de9c);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x399fe3,_0x101e93){const _0x17b39a=new this(_0x399fe3,_0x101e93);return await _0x17b39a['initPlugins'](),await _0x17b39a['ui']['init'](_0x399fe3),await _0x17b39a['data']['init'](_0x17b39a['config']['get']('initialData')||''),_0x17b39a['fire']('ready'),_0x17b39a;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class bt extends _0x31326a{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x26174d){function _0x33782d(_0x1efad6){return _0x1efad6['map'](_0x25aaef=>String['fromCharCode'](_0x25aaef))['join']('');}super(_0x26174d),this['result']='end',_0x26174d[_0x33782d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x33782d([0x76,0x69,0x65,0x77])][_0x33782d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x33782d([0x61,0x75,0x74,0x6f]),_0x26174d[_0x33782d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x33782d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x33782d([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x33782d([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x33782d([0x6f,0x6b])});}}class k extends _0x31326a{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x587675){if(super(_0x587675),!this['editor']['config']['get']('revisionHistory'))throw new _0x49f1f6('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x3fe19b=>this['_showRevisionViewer']({..._0x3fe19b,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0xe361ad=>this['_closeRevisionViewer'](_0xe361ad)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x563718=>this['_restoreRevision'](_0x563718)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x40d1c0){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x40d1c0;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x27ad09){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x27ad09);}['getRevision'](_0x3f6edb){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x3f6edb);}['getRevisions'](_0x27643b){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x27643b||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0xfbee94=this['editor'],_0x582c1e=_0x56c44c(_0xfbee94,p),_0x552187=_0xfbee94['plugins']['get']('RevisionTracker'),_0x22d020=_0xfbee94['plugins']['get']('Users')['users'];return _0x582c1e['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x582c1e['lazyRoots'],(_0x582c1e['plugins']['push'](bt,d,g,class extends _0x31326a{static get['requires'](){return[d,'Users'];}['init'](){const _0x5c6737=this['editor']['plugins']['get']('Users');for(const _0x587ec3 of _0x22d020)_0x587ec3['isAnonymous']||_0x5c6737['getUser'](_0x587ec3['id'])||_0x5c6737['addUser'](_0x587ec3);const _0x173df9=_0x552187['repository']['getRevisions']();let _0x5b335f=null;const _0x5157dc=this['editor']['plugins']['get']('RevisionViewer');_0x5157dc['adapter']=_0x552187['adapter'],_0x5157dc['bind']('isEnabled')['to'](_0x552187),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0xfbee94,'isReadOnly',_0x365a2b=>!_0x365a2b);for(const _0x39ab6b of _0x173df9){const _0x32fab1=null===_0x39ab6b['creator'];if(_0x32fab1&&_0x39ab6b['toVersion']===_0x39ab6b['fromVersion'])continue;const _0xe946c5=_0x39ab6b['toJSON']();_0x5157dc['addRevisionData'](_0xe946c5,(_0x4b139c,_0x5a46b3,_0x2aaf34)=>{if(_0x32fab1){if(_0x5b335f)_0x5b335f['_update'](_0x4b139c,_0x5a46b3);else{if(!_0x5a46b3){const _0x189986=_0x2aaf34['toJSON']();_0x189986['id']=_0x66ae84(),_0x552187['saveRevision'](_0x189986,_0x2aaf34['toVersion'])['then'](_0xf4ace0=>{_0x5b335f=_0xf4ace0;});}}}else _0x39ab6b['_update'](_0x4b139c,_0x5a46b3);});}}},w),_0x582c1e);}['_enhanceShowRevisionViewerCallback'](){const _0x17a3bf=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x1c70f3=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x226a2f=this['editor']['plugins']['get']('Autosave');await _0x226a2f['save']();}else await _0x1c70f3['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x7c744=this['editor']['plugins']['get']('Dialog');_0x7c744['isOpen']&&_0x7c744['hide']();}const _0x4396e9=this['_getRevisionViewerEditorConfig']();return _0x17a3bf(_0x4396e9)['then'](_0x3cb36b=>{return(this['_viewerEditor']=_0x3cb36b,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x3cb36b;})['catch'](_0x16151b=>(console['error'](_0x16151b),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x4da94a=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x4da94a(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x518eb5=this['editor']['plugins']['get']('Annotations');_0x518eb5['refreshVisibility'](),_0x518eb5['refreshPositioning']();}})));}['_showRevisionViewer'](_0x5b8025){const _0x3e3cbb=this['editor']['config']['get']('revisionHistory.editorContainer'),_0xd8dfcc=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x337dde=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x337dde,_0x5b8025)['then'](_0x3f3be6=>(_0xd8dfcc['style']['display']='block',_0x3e3cbb['style']['display']='none',_0x3f3be6));}['_closeRevisionViewer'](_0x97134e){const _0x12b8c3=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x12b8c3['style']['display']='',_0x97134e['destroy']();}async['_restoreRevision'](_0x3ebefe){const _0x52f944=this['editor'],_0x135eaf=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x267ca6=_0x52f944['plugins']['get']('RevisionTracker'),_0x1e6113=_0x135eaf['repository']['getRevision'](_0x3ebefe);let _0x2821c5,_0x4810d7,_0x48e813;try{_0x2821c5=await _0x135eaf['getRevisionData'](_0x1e6113),_0x4810d7=await _0x135eaf['getRevisionRootsAttributes'](_0x1e6113);}catch(_0x4ce208){return void console['error'](_0x4ce208);}_0x52f944['model']['change'](_0x37dce7=>{for(const _0x4e57c0 of Array['from'](_0x52f944['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x37dce7['removeMarker'](_0x4e57c0);}),_0x135eaf['isReady']=!0x1,_0x52f944['model']['enqueueChange'](_0x1030b4=>{_0x1030b4['setSelection'](null),_0x1030b4['removeSelectionAttribute'](_0x52f944['model']['document']['selection']['getAttributeKeys']());const _0x5a2567=Object['keys'](_0x2821c5);for(const _0x99694b of _0x52f944['model']['document']['roots'])'$graveyard'!=_0x99694b['rootName']&&_0x99694b['isAttached']()&&!_0x5a2567['includes'](_0x99694b['rootName'])&&_0x1030b4['detachRoot'](_0x99694b);for(const _0x45262b of _0x5a2567){let _0x1c939f=_0x52f944['model']['document']['getRoot'](_0x45262b);_0x1c939f&&_0x1c939f['isAttached']()||(_0x1c939f=_0x1030b4['addRoot'](_0x45262b));const _0x56ed4f=_0x4810d7[_0x45262b],_0x3be9c2=Object['keys'](_0x56ed4f),_0x464b72=_0x2821c5[_0x45262b];for(const _0x5ee22c of _0x1c939f['getAttributeKeys']())_0x3be9c2['includes'](_0x5ee22c)||_0x1030b4['removeAttribute'](_0x5ee22c,_0x1c939f);for(const _0x1d9308 of _0x3be9c2)_0x1030b4['setAttribute'](_0x1d9308,_0x4810d7[_0x45262b][_0x1d9308],_0x1c939f);_0x1030b4['remove'](_0x1030b4['createRangeIn'](_0x1c939f)),_0x1030b4['insert'](_0x52f944['data']['parse'](_0x464b72,_0x1c939f),_0x1c939f,0x0);}});const _0xe9c820=m(_0x52f944['locale'],'Restored');if(_0x1e6113['name'])_0x48e813=-0x1==_0x1e6113['name']['indexOf'](_0xe9c820)?_0xe9c820+':\x20'+_0x1e6113['name']:_0x1e6113['name'];else _0x48e813=_0xe9c820+':\x20'+(_0x1e6113['createdAt']['toLocaleDateString'](_0x52f944['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x1e6113['createdAt']['toLocaleTimeString'](_0x52f944['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x267ca6['saveRevision']({'name':_0x48e813}),_0x135eaf['isReady']=!0x0,_0x52f944['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,k as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,ge as RevisionViewerLoadingOverlay,g as RevisionViewerUI,j as RevisionsRepository,w as RevisionsSidebar};
|
|
28
|
+
yt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x1cb16c){super(_0x1cb16c),this['_revisionViewer']=_0x1cb16c['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x66cc60=this['_revisionsRepository']['_revisions'],_0xdbf100=this['_createRevisionActions'](),_0x5783a0=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ni(this['editor']['locale'],_0x66cc60,_0xdbf100,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',(_0xbf0c4b,_0x731eb1)=>{_0x731eb1['revisionViews']['on']('add',(_0x55fdb1,_0x13366b)=>{_0x13366b['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)),_0x5783a0['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x2723ef=this['_revisionsRepository']['getRevision'](0x0);if(_0x2723ef){const _0x65bfa=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x2723ef['id']);this['_revisionViewer']['compare'](_0x2723ef,_0x65bfa);}}['_handleRevisionSelected'](_0x1df0bf,_0x30c73e){const _0x2f2c83=this['_revisionsRepository']['getRevision'](_0x30c73e['id']),_0x527199=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x2f2c83['id']);this['_revisionViewer']['compare'](_0x2f2c83,_0x527199);}['_handleRevisionSetName'](_0x2e17d4,_0x198d37){this['_revisionsRepository']['getRevision'](_0x198d37['id'])['setName'](_0x198d37['name']);}['_handleDiffChange'](_0x87e677,_0x3f1d28,_0x195e44){const _0x9d51a9=this['_revisionsRepository']['getRevisionsInDiff'](_0x195e44);_0x9d51a9['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x9d51a9),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x9d51a9[0x0]));}['_createRevisionActions'](){const _0x27783d=this['editor'],_0x1207af=w['availableRevisionActions'],_0x3fe426=_0x27783d['config']['get']('revisionHistory.revisionActions')||w['defaultRevisionActions'];if(_0x3fe426['length'])return _0x3fe426['map'](_0x4a068d=>{const _0x297909='string'==typeof _0x4a068d?Object['assign']({},_0x1207af[_0x4a068d]):_0x4a068d;return _0x297909['action']=_0x297909['action']['bind'](this,_0x27783d),_0x297909['isVisible']&&(_0x297909['isVisible']=_0x297909['isVisible']['bind'](this,_0x27783d)),_0x297909;});}}function yt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x124343},_0x2f5351)=>{const _0x3b4f5e=_0x124343['get'](d),_0x32c70b=_0x3b4f5e['repository'];let _0x20d8aa=_0x3b4f5e['diff']['newRevisionId'],_0x5d7539=_0x2f5351['id'];_0x32c70b['getIndex'](_0x20d8aa)>_0x32c70b['getIndex'](_0x5d7539)&&([_0x20d8aa,_0x5d7539]=[_0x5d7539,_0x20d8aa]),_0x3b4f5e['compare'](_0x20d8aa,_0x5d7539);},'isVisible':({plugins:_0x5a3942},_0x516fdb)=>{const _0x247e0c=_0x5a3942['get'](d);return!(_0x247e0c['repository']['getRevisionsInDiff'](_0x247e0c['diff'])['length']>0x2)&&!_0x516fdb['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x3b4dc2,{id:_0x40effd})=>{_0x3b4dc2['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x40effd);},'isVisible':({plugins:_0x57c3d5},_0x57c8bc)=>!!_0x57c3d5['get'](d)['repository']['getLaterVisibleRevision'](_0x57c8bc['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x2b48a2},{id:_0x3bd6d2,revisionNameView:_0x4bf00a})=>{const _0xc2dcfe=_0x2b48a2['get'](d),_0x25071a=_0xc2dcfe['repository']['getEarlierVisibleRevision'](_0x3bd6d2);_0xc2dcfe['compare'](_0x3bd6d2,_0x25071a),_0x4bf00a['focus'](),_0x4bf00a['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x12f4ba,_0x161766){super(_0x12f4ba),this['_view']=_0x161766,this['_toolbarConfig']=ot(_0x12f4ba['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x3c585c){const _0x23ca2b=this['editor'],_0x199c7d=this['view'],_0x1ef987=_0x23ca2b['editing']['view'],_0x3adf1b=_0x199c7d['editable'],_0x2709f5=_0x1ef987['document']['getRoot']();_0x3adf1b['name']=_0x2709f5['rootName'],_0x199c7d['render']();const _0x1494f9=_0x3adf1b['element'];this['setEditableElement'](_0x3adf1b['name'],_0x1494f9),_0x199c7d['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x1ef987['attachDomRoot'](_0x1494f9),this['_elementReplacer']['replace'](_0x3c585c,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x18b8bf=this['view'],_0x94a072=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x94a072['detachDomRoot'](_0x18b8bf['editable']['name']),_0x18b8bf['destroy']();}['_initToolbar'](){const _0xfca0f3=this['view'];_0xfca0f3['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0xfca0f3['stickyPanel']['limiterElement']=_0xfca0f3['element'],_0xfca0f3['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x95ea2})=>_0x95ea2),_0xfca0f3['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0xfca0f3['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x34dd17,_0x105a74,_0x47efd6={}){super(_0x34dd17),this['stickyPanel']=new ut(_0x34dd17),this['toolbar']=new lt(_0x34dd17,{'shouldGroupWhenFull':_0x47efd6['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x34dd17,_0x105a74);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class R extends/* #__PURE__ -- @preserve */
|
|
29
|
+
it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x21e1ad,_0xc6e691){super(_0xc6e691),this['sourceElement']=_0x21e1ad,this['model']['document']['createRoot']();const _0x17bc22=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x17bc22);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x32f147,_0x3413d0){const _0x5783f1=new this(_0x32f147,_0x3413d0);return await _0x5783f1['initPlugins'](),await _0x5783f1['ui']['init'](_0x32f147),await _0x5783f1['data']['init'](_0x5783f1['config']['get']('initialData')||''),_0x5783f1['fire']('ready'),_0x5783f1;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class bt extends _0x1420a4{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1b2f20){function _0x1782cb(_0x58a055){return _0x58a055['map'](_0xce4d16=>String['fromCharCode'](_0xce4d16))['join']('');}super(_0x1b2f20),this['result']='end',_0x1b2f20[_0x1782cb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1782cb([0x76,0x69,0x65,0x77])][_0x1782cb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1782cb([0x61,0x75,0x74,0x6f]),_0x1b2f20[_0x1782cb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x1782cb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1782cb([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x1782cb([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x1782cb([0x6f,0x6b])});}}class k extends _0x1420a4{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0xaf1526){if(super(_0xaf1526),!this['editor']['config']['get']('revisionHistory'))throw new _0x5ea7ff('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x48ecd7=>this['_showRevisionViewer']({..._0x48ecd7,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0xef42a5=>this['_closeRevisionViewer'](_0xef42a5)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x44ecb=>this['_restoreRevision'](_0x44ecb)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x1239d0){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x1239d0;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x1bef05){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x1bef05);}['getRevision'](_0x4d0315){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x4d0315);}['getRevisions'](_0x686e17){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x686e17||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x59ef11=this['editor'],_0x7a5ab0=_0xbfc40b(_0x59ef11,p),_0x5150e2=_0x59ef11['plugins']['get']('RevisionTracker'),_0x1567e8=_0x59ef11['plugins']['get']('Users')['users'];return _0x7a5ab0['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x7a5ab0['lazyRoots'],(_0x7a5ab0['plugins']['push'](bt,d,g,class extends _0x1420a4{static get['requires'](){return[d,'Users'];}['init'](){const _0x56822e=this['editor']['plugins']['get']('Users');for(const _0xfe313e of _0x1567e8)_0xfe313e['isAnonymous']||_0x56822e['getUser'](_0xfe313e['id'])||_0x56822e['addUser'](_0xfe313e);const _0x5cb0ec=_0x5150e2['repository']['getRevisions']();let _0x274f58=null;const _0x518e87=this['editor']['plugins']['get']('RevisionViewer');_0x518e87['adapter']=_0x5150e2['adapter'],_0x518e87['bind']('isEnabled')['to'](_0x5150e2),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x59ef11,'isReadOnly',_0x2754f5=>!_0x2754f5);for(const _0x5f2e29 of _0x5cb0ec){const _0x352055=null===_0x5f2e29['creator'];if(_0x352055&&_0x5f2e29['toVersion']===_0x5f2e29['fromVersion'])continue;const _0x2217eb=_0x5f2e29['toJSON']();_0x518e87['addRevisionData'](_0x2217eb,(_0x280939,_0xa3b555,_0x180b89)=>{if(_0x352055){if(_0x274f58)_0x274f58['_update'](_0x280939,_0xa3b555);else{if(!_0xa3b555){const _0x258460=_0x180b89['toJSON']();_0x258460['id']=_0x5d66aa(),_0x5150e2['saveRevision'](_0x258460,_0x180b89['toVersion'])['then'](_0x46854a=>{_0x274f58=_0x46854a;});}}}else _0x5f2e29['_update'](_0x280939,_0xa3b555);});}}},w),_0x7a5ab0);}['_enhanceShowRevisionViewerCallback'](){const _0xce541c=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x59e97f=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x4f2da0=this['editor']['plugins']['get']('Autosave');await _0x4f2da0['save']();}else await _0x59e97f['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x203dec=this['editor']['plugins']['get']('Dialog');_0x203dec['isOpen']&&_0x203dec['hide']();}const _0x5a8984=this['_getRevisionViewerEditorConfig']();return _0xce541c(_0x5a8984)['then'](_0x15cc0c=>{return(this['_viewerEditor']=_0x15cc0c,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x15cc0c;})['catch'](_0x704e40=>(console['error'](_0x704e40),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x35cc34=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x35cc34(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x587ccc=this['editor']['plugins']['get']('Annotations');_0x587ccc['refreshVisibility'](),_0x587ccc['refreshPositioning']();}})));}['_showRevisionViewer'](_0x4d912b){const _0x1a075a=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x296988=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x1af494=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x1af494,_0x4d912b)['then'](_0x1aa783=>(_0x296988['style']['display']='block',_0x1a075a['style']['display']='none',_0x1aa783));}['_closeRevisionViewer'](_0x35bbc5){const _0x4c394a=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x4c394a['style']['display']='',_0x35bbc5['destroy']();}async['_restoreRevision'](_0x2f72ac){const _0x4c5d4f=this['editor'],_0x3f381e=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x432f4e=_0x4c5d4f['plugins']['get']('RevisionTracker'),_0x55c149=_0x3f381e['repository']['getRevision'](_0x2f72ac);let _0x123f66,_0x1c2659,_0x5c7290;try{_0x123f66=await _0x3f381e['getRevisionData'](_0x55c149),_0x1c2659=await _0x3f381e['getRevisionRootsAttributes'](_0x55c149);}catch(_0xe2989e){return void console['error'](_0xe2989e);}_0x4c5d4f['model']['change'](_0x3ab56a=>{for(const _0x31d132 of Array['from'](_0x4c5d4f['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x3ab56a['removeMarker'](_0x31d132);}),_0x3f381e['isReady']=!0x1,_0x4c5d4f['model']['enqueueChange'](_0x5d4018=>{_0x5d4018['setSelection'](null),_0x5d4018['removeSelectionAttribute'](_0x4c5d4f['model']['document']['selection']['getAttributeKeys']());const _0x1bb9f3=Object['keys'](_0x123f66);for(const _0x4da2c0 of _0x4c5d4f['model']['document']['roots'])'$graveyard'!=_0x4da2c0['rootName']&&_0x4da2c0['isAttached']()&&!_0x1bb9f3['includes'](_0x4da2c0['rootName'])&&_0x5d4018['detachRoot'](_0x4da2c0);for(const _0x6109c1 of _0x1bb9f3){let _0x55998e=_0x4c5d4f['model']['document']['getRoot'](_0x6109c1);_0x55998e&&_0x55998e['isAttached']()||(_0x55998e=_0x5d4018['addRoot'](_0x6109c1));const _0x47e3e2=_0x1c2659[_0x6109c1],_0xe71936=Object['keys'](_0x47e3e2),_0x5b9dd1=_0x123f66[_0x6109c1];for(const _0xcb8a40 of _0x55998e['getAttributeKeys']())_0xe71936['includes'](_0xcb8a40)||_0x5d4018['removeAttribute'](_0xcb8a40,_0x55998e);for(const _0x20f45d of _0xe71936)_0x5d4018['setAttribute'](_0x20f45d,_0x1c2659[_0x6109c1][_0x20f45d],_0x55998e);_0x5d4018['remove'](_0x5d4018['createRangeIn'](_0x55998e)),_0x5d4018['insert'](_0x4c5d4f['data']['parse'](_0x5b9dd1,_0x55998e),_0x55998e,0x0);}});const _0x1ec31c=m(_0x4c5d4f['locale'],'Restored');if(_0x55c149['name'])_0x5c7290=-0x1==_0x55c149['name']['indexOf'](_0x1ec31c)?_0x1ec31c+':\x20'+_0x55c149['name']:_0x55c149['name'];else _0x5c7290=_0x1ec31c+':\x20'+(_0x55c149['createdAt']['toLocaleDateString'](_0x4c5d4f['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x55c149['createdAt']['toLocaleTimeString'](_0x4c5d4f['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x432f4e['saveRevision']({'name':_0x5c7290}),_0x3f381e['isReady']=!0x0,_0x4c5d4f['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,k as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,ge as RevisionViewerLoadingOverlay,g as RevisionViewerUI,j as RevisionsRepository,w as RevisionsSidebar};
|