@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20241211.0 → 0.0.0-nightly-20241212.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/dist/index.js +6 -6
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +8 -8
- 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
|
-
_0x544007(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x18c830){super(),this['id']=_0x18c830['id']||_0x202f37(),this['creator']=_0x18c830['creator']||null,this['authors']=_0x18c830['authors']||[],this['diffData']=_0x18c830['diffData']||null,this['toVersion']=_0x18c830['toVersion']||0x0,this['fromVersion']=_0x18c830['fromVersion']||0x0,this['set']('name',_0x18c830['name']||''),this['set']('createdAt',_0x18c830['createdAt']||new Date()),this['set']('attributes',_0x18c830['attributes']||{});}['setName'](_0xf79b38){this['_update']({'name':_0xf79b38});}['setAttribute'](_0x2e6c6b,_0x4602c3){const _0x3503e9=_0x1f0012(this['attributes']);_0x5ba116(_0x3503e9,_0x2e6c6b,_0x4602c3),this['_update']({'attributes':_0x3503e9});}['removeAttribute'](_0x10dc3d){const _0x265632=_0x1f0012(this['attributes']);_0x3f83a3(_0x265632,_0x10dc3d),this['_update']({'attributes':_0x265632});}['_update'](_0x114ad5,_0x241b7e=!0x1){let _0xaf728d=!0x1;const _0x2a6cdc={'id':this['id']},_0x19706f=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x42aad7 of _0x19706f){const _0x3b69e1=_0x114ad5[_0x42aad7];void 0x0!==_0x3b69e1&&_0x3b69e1!==this[_0x42aad7]&&(this[_0x42aad7]=_0x3b69e1,_0x2a6cdc[_0x42aad7]=_0x3b69e1,_0xaf728d=!0x0);}_0xaf728d&&(_0x2a6cdc['authors']&&(_0x2a6cdc['authorsIds']=_0x2a6cdc['authors']['map'](_0x1ff64f=>_0x1ff64f['id']),delete _0x2a6cdc['authors']),this['fire']('_update',_0x2a6cdc,_0x241b7e));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x1341b7=>_0x1341b7['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x3aa790{['_revisions'];static get['requires'](){return[_0x360c10];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x4c150b){super(_0x4c150b),this['_revisions']=new _0x2ea578();}['afterInit'](){!async function(_0x551836){const _0x450ce4=_0x10f45c([0x51,0x4f,0x4a,0x6b,0x4d,0x71,0x50,0x32,0x65,0x72,0x79,0x42,0x46,0x57,0x37,0x49,0x4e,0x56,0x48,0x33,0x4c,0x53,0x78,0x6e,0x76,0x55,0x34,0x43,0x58,0x66,0x61,0x74,0x52,0x39,0x45,0x75,0x4b,0x31,0x63,0x62,0x70,0x64,0x36,0x41,0x54,0x6f,0x69,0x5a,0x44,0x35,0x77,0x59,0x30,0x38,0x47,0x6a,0x6d,0x68,0x6c,0x67,0x7a,0x73]),_0x2101d5=0xeb829,_0x521682=0x7fec29cc,_0x1ccade=0x7feb70ac^_0x521682,_0x23b88a=window[_0x10f45c([0x44,0x61,0x74,0x65])][_0x10f45c([0x6e,0x6f,0x77])](),_0x3b123a=_0x551836[_0x10f45c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1f7fc8=new window[(_0x10f45c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x400f26=>{_0x3b123a[_0x10f45c([0x6f,0x6e,0x63,0x65])](_0x10f45c([0x72,0x65,0x61,0x64,0x79]),_0x400f26);}),_0x5bb0d2={[_0x10f45c([0x6b,0x74,0x79])]:_0x10f45c([0x45,0x43]),[_0x10f45c([0x75,0x73,0x65])]:_0x10f45c([0x73,0x69,0x67]),[_0x10f45c([0x63,0x72,0x76])]:_0x10f45c([0x50,0x2d,0x32,0x35,0x36]),[_0x10f45c([0x78])]:_0x10f45c([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]),[_0x10f45c([0x79])]:_0x10f45c([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]),[_0x10f45c([0x61,0x6c,0x67])]:_0x10f45c([0x45,0x53,0x32,0x35,0x36])},_0x431e90=_0x3b123a[_0x10f45c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x10f45c([0x67,0x65,0x74])](_0x10f45c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1db466(){let _0x58dada,_0x4f2666=null,_0x314711=null;try{if(_0x431e90==_0x10f45c([0x47,0x50,0x4c]))return _0x10f45c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x58dada=_0x24e6e2(),!_0x58dada)return _0x10f45c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x58dada[_0x10f45c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x314711=_0xbf5588(_0x58dada[_0x10f45c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x58dada[_0x10f45c([0x6a,0x74,0x69])])),await _0x27aae0()?_0x493d5a()?_0x4d74f2()?_0x10f45c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x370aa9()?(_0x58dada[_0x10f45c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x10f45c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4f2666=_0x464087(_0x10f45c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x58dada[_0x10f45c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x10f45c([0x74,0x72,0x69,0x61,0x6c])&&(_0x4f2666=_0x464087(_0x10f45c([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x58dada[_0x10f45c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x10f45c([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x4f2666=_0x464087(_0x10f45c([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x217413()):_0x10f45c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x10f45c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x10f45c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x4bb3d6){return _0x10f45c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4d74f2(){const _0x1b6a1c=[_0x10f45c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x10f45c([0x74,0x72,0x69,0x61,0x6c])][_0x10f45c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58dada[_0x10f45c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x23b88a/0x3e8:0xe10*_0x1ccade;return _0x58dada[_0x10f45c([0x65,0x78,0x70])]<_0x1b6a1c;}function _0x493d5a(){const _0x32ca3d=_0x58dada[_0x10f45c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x32ca3d)return!0x1;if(_0x32ca3d[_0x10f45c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x10f45c([0x2a])))return!0x0;if(_0x32ca3d[_0x10f45c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x10f45c([0x52,0x48])))return!0x0;if(_0x32ca3d[_0x10f45c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x10f45c([0x52,0x52,0x48]))){if(_0x16644a())return!0x0;if(_0x3f00b0()||_0x2521b3())return!0x0;}return!0x1;}function _0x370aa9(){const _0x5c5c1c=_0x58dada[_0x10f45c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5c5c1c||0x0==_0x5c5c1c[_0x10f45c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xc46370}=new URL(window[_0x10f45c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5c5c1c[_0x10f45c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc46370))return!0x0;const _0x5078eb=_0xc46370[_0x10f45c([0x73,0x70,0x6c,0x69,0x74])](_0x10f45c([0x2e]));return _0x5c5c1c[_0x10f45c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2b999d=>_0x2b999d[_0x10f45c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x10f45c([0x2a])))[_0x10f45c([0x6d,0x61,0x70])](_0x3750ae=>_0x3750ae[_0x10f45c([0x73,0x70,0x6c,0x69,0x74])](_0x10f45c([0x2e])))[_0x10f45c([0x73,0x6f,0x6d,0x65])](_0x2a007b=>_0x5078eb[_0x10f45c([0x65,0x76,0x65,0x72,0x79])]((_0xbd8abc,_0xfb1563)=>_0x2a007b[_0xfb1563]===_0xbd8abc||_0x2a007b[_0xfb1563]===_0x10f45c([0x2a])));}function _0x217413(){return _0x4f2666&&_0x314711?new window[(_0x10f45c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x55741b,_0x303ce7)=>{_0x4f2666[_0x10f45c([0x74,0x68,0x65,0x6e])](_0x55741b,_0x303ce7),_0x314711[_0x10f45c([0x74,0x68,0x65,0x6e])](_0x4c67de=>{_0x4c67de!=_0x10f45c([0x56,0x61,0x6c,0x69,0x64])&&_0x55741b(_0x4c67de);},_0x303ce7);}):_0x4f2666||_0x314711||_0x10f45c([0x56,0x61,0x6c,0x69,0x64]);}}function _0xbf5588(_0x26248c,_0x5d5fb0){return new window[(_0x10f45c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5e65be=>{if(_0x169f16())return _0x5e65be(_0x10f45c([0x56,0x61,0x6c,0x69,0x64]));_0x3d33b1(),_0x3b123a[_0x10f45c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x10f45c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x333b4c=!0x1;const _0x15e543=_0x202f37();function _0x5ee952(_0x5f389f){return!!_0x5f389f&&(typeof _0x5f389f===_0x10f45c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5f389f===_0x10f45c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5f389f[_0x10f45c([0x74,0x68,0x65,0x6e])]===_0x10f45c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5f389f[_0x10f45c([0x63,0x61,0x74,0x63,0x68])]===_0x10f45c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1cdd9a(_0x24dc8a){_0x11cb79(_0x24dc8a)[_0x10f45c([0x74,0x68,0x65,0x6e])](_0x51e7a2=>{if(!_0x51e7a2||_0x51e7a2[_0x10f45c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x10f45c([0x6f,0x6b]))return _0x10f45c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x713aa1(_0x16fe08(_0x15e543+_0x5d5fb0))!=_0x51e7a2[_0x10f45c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x10f45c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x10f45c([0x56,0x61,0x6c,0x69,0x64]);})[_0x10f45c([0x74,0x68,0x65,0x6e])](_0x4792dd=>(_0x347b77(),_0x4792dd),()=>{const _0x571ec3=_0x31541a();return null==_0x571ec3?(_0x347b77(),_0x10f45c([0x56,0x61,0x6c,0x69,0x64])):_0x10f45c(_0x23b88a-_0x571ec3>(0x5be0adcc^_0x521682)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x10f45c([0x74,0x68,0x65,0x6e])](_0x5e65be)[_0x10f45c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5e65be(_0x10f45c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xbac046=0x7fdac74c^_0x521682;function _0x347b77(){const _0x17a9fc=_0x10f45c([0x6c,0x6c,0x63,0x74,0x2d])+_0x713aa1(_0x16fe08(_0x26248c)),_0x1d8596=_0x5c82d8(_0x713aa1(window[_0x10f45c([0x4d,0x61,0x74,0x68])][_0x10f45c([0x63,0x65,0x69,0x6c])](_0x23b88a/_0xbac046)));window[_0x10f45c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x10f45c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x17a9fc,_0x1d8596);}function _0x31541a(){const _0x531437=_0x10f45c([0x6c,0x6c,0x63,0x74,0x2d])+_0x713aa1(_0x16fe08(_0x26248c)),_0x9d85a2=window[_0x10f45c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x10f45c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x531437);return _0x9d85a2?window[_0x10f45c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5c82d8(_0x9d85a2),0x10)*_0xbac046:null;}function _0x11cb79(_0x591b24){return new window[(_0x10f45c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x134624,_0x249047)=>{_0x591b24[_0x10f45c([0x74,0x68,0x65,0x6e])](_0x134624,_0x249047),window[_0x10f45c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x249047,0x7fedfd0c^_0x521682);});}}_0x3b123a[_0x10f45c([0x6f,0x6e])](_0x10f45c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4bc90f,_0x2c9ae5)=>{if(_0x2c9ae5[0x0]!=_0x26248c)return _0x5e65be(_0x10f45c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2c9ae5[0x1]={..._0x2c9ae5[0x1],[_0x10f45c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x15e543};},{[_0x10f45c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x10f45c([0x68,0x69,0x67,0x68])}),_0x3b123a[_0x10f45c([0x6f,0x6e])](_0x10f45c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x384283=>{_0x5ee952(_0x384283[_0x10f45c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x333b4c=!0x0,_0x1cdd9a(_0x384283[_0x10f45c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x10f45c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x10f45c([0x6c,0x6f,0x77])}),_0x1f7fc8[_0x10f45c([0x74,0x68,0x65,0x6e])](()=>{_0x333b4c||_0x5e65be(_0x10f45c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x169f16(){return _0x3b123a[_0x10f45c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x10f45c([0x76,0x69,0x65,0x77])][_0x10f45c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x10f45c([0x61,0x75,0x74,0x6f]);}function _0x3d33b1(){_0x3b123a[_0x10f45c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x10f45c([0x76,0x69,0x65,0x77])][_0x10f45c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x10f45c([0x61,0x75,0x74,0x6f]);}}function _0x464087(_0x275cf7){const _0x349157=[new window[(_0x10f45c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x296df2=>setTimeout(_0x296df2,0x7fe51700^_0x521682)),_0x1f7fc8[_0x10f45c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x10f45c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1ab272=>{const _0x507b15=0x7fec29cb^_0x521682,_0x1603e6=_0x551836[_0x10f45c([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x297e59(){_0x1603e6[_0x10f45c([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x507b15&&_0x1ab272();}_0x297e59(),_0x1603e6[_0x10f45c([0x6f,0x6e])](_0x10f45c([0x61,0x64,0x64]),_0x297e59);})),new window[(_0x10f45c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x500a92=>{function _0x59353a(){for(const _0x2d1f4e in window)if(window[_0x10f45c([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x10f45c([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x2d1f4e))&&window[_0x2d1f4e]==_0x2101d5)return _0x500a92();_0x3b123a[_0x10f45c([0x73,0x74,0x61,0x74,0x65])]!=_0x10f45c([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x10f45c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x59353a,0x7fec3a44^_0x521682);}_0x2855a5(_0x10f45c([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x59353a();})];return window[_0x10f45c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x10f45c([0x72,0x61,0x63,0x65])](_0x349157)[_0x10f45c([0x74,0x68,0x65,0x6e])](()=>_0x275cf7);}async function _0x5f2a4e(){if(await _0x1f7fc8,_0x2855a5(_0x10f45c([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x4f8136=_0x551836[_0x10f45c([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x2c71d6=_0x551836[_0x10f45c([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])](_0x4f8136[_0x10f45c([0x69,0x64])]),_0x5db9c4=_0x47cabe(_0x10f45c([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x5db9c4[_0x10f45c([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x4f8136['id'],_0x2c71d6?_0x2c71d6['id']:null,!0x0),_0x5db9c4[_0x10f45c([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x10f45c([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x5db9c4[_0x10f45c([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x5db9c4[_0x10f45c([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x222a13,void(_0x5db9c4[_0x10f45c([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x222a13);}if(_0x2855a5(_0x10f45c([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x42a7cb=_0x47cabe(_0x10f45c([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x42a7cb[_0x10f45c([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x10f45c([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x42a7cb[_0x10f45c([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x42a7cb[_0x10f45c([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x222a13,_0x42a7cb[_0x10f45c([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x222a13;}_0x3b123a[_0x10f45c([0x6d,0x6f,0x64,0x65,0x6c])][_0x10f45c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x222a13,_0x3b123a[_0x10f45c([0x6d,0x6f,0x64,0x65,0x6c])][_0x10f45c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x222a13,_0x3b123a[_0x10f45c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x10f45c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x16644a(){return _0x2855a5(_0x10f45c([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x47cabe(_0x10f45c([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x10f45c([0x73,0x74,0x61,0x74,0x65])]==_0x10f45c([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x3f00b0(){return _0x2855a5(_0x10f45c([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 _0x2521b3(){return _0x2855a5(_0x10f45c([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x48d86d(_0x345738){const _0x19dea9=_0x10e053();_0x3b123a[_0x19dea9]=_0x10f45c([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])+_0x345738,_0x345738[_0x10f45c([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x10f45c([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x10e053()]=_0x2101d5),_0x345738!=_0x10f45c([0x56,0x61,0x6c,0x69,0x64])&&_0x5f2a4e();}function _0x10e053(){const _0x3a0fff=window[_0x10f45c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x10f45c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x10f45c([0x6e,0x6f,0x77])]())[_0x10f45c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x10f45c([0x2e]),'');let _0x29f62a=_0x10f45c([0x51]);for(let _0xd1fc46=0x0;_0xd1fc46<_0x3a0fff[_0x10f45c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xd1fc46+=0x2){let _0x99ba9=window[_0x10f45c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3a0fff[_0x10f45c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xd1fc46,_0xd1fc46+0x2));_0x99ba9>=_0x450ce4[_0x10f45c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x99ba9-=_0x450ce4[_0x10f45c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x29f62a+=_0x450ce4[_0x99ba9];}return _0x29f62a;}function _0x24e6e2(){const _0xf03cbf=_0x431e90[_0x10f45c([0x73,0x70,0x6c,0x69,0x74])](_0x10f45c([0x2e]));if(0x3!=_0xf03cbf[_0x10f45c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x173c16(_0xf03cbf[0x1]);function _0x173c16(_0x1e1c5a){const _0x10b758=_0x4ba05e(_0x1e1c5a);return _0x10b758&&_0x197a06()?_0x10b758:null;function _0x197a06(){const _0xe5b4d2=_0x10b758[_0x10f45c([0x6a,0x74,0x69])],_0x1ca1b9=window[_0x10f45c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xe5b4d2[_0x10f45c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xe5b4d2[_0x10f45c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4ba80b={..._0x10b758,[_0x10f45c([0x6a,0x74,0x69])]:_0xe5b4d2[_0x10f45c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xe5b4d2[_0x10f45c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4ba80b[_0x10f45c([0x76,0x63])],_0x16fe08(_0x4ba80b)==_0x1ca1b9;}}}async function _0x27aae0(){let _0x316fe0=!0x0;try{const _0x2c25b9=_0x431e90[_0x10f45c([0x73,0x70,0x6c,0x69,0x74])](_0x10f45c([0x2e])),[_0x56e6ee,_0x4c00e7,_0xe6de4d]=_0x2c25b9;return _0x214d6e(_0x56e6ee),await _0x2ce614(_0x56e6ee,_0x4c00e7,_0xe6de4d),_0x316fe0;}catch(_0x533e93){return!0x1;}function _0x214d6e(_0x49a45d){const _0x1e2dbd=_0x4ba05e(_0x49a45d);_0x1e2dbd&&_0x1e2dbd[_0x10f45c([0x61,0x6c,0x67])]==_0x10f45c([0x45,0x53,0x32,0x35,0x36])||(_0x316fe0=!0x1);}async function _0x2ce614(_0x526a2b,_0x46cb54,_0x26a087){const _0x30b678=window[_0x10f45c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x10f45c([0x66,0x72,0x6f,0x6d])](_0x42c945(_0x26a087),_0xbab911=>_0xbab911[_0x10f45c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x7e9184=new window[(_0x10f45c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x10f45c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x526a2b+_0x10f45c([0x2e])+_0x46cb54),_0x26001a=window[_0x10f45c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x10f45c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x26001a)return;const _0x22b545=await _0x26001a[_0x10f45c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x10f45c([0x6a,0x77,0x6b]),_0x5bb0d2,{[_0x10f45c([0x6e,0x61,0x6d,0x65])]:_0x10f45c([0x45,0x43,0x44,0x53,0x41]),[_0x10f45c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x10f45c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x10f45c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x26001a[_0x10f45c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x10f45c([0x6e,0x61,0x6d,0x65])]:_0x10f45c([0x45,0x43,0x44,0x53,0x41]),[_0x10f45c([0x68,0x61,0x73,0x68])]:{[_0x10f45c([0x6e,0x61,0x6d,0x65])]:_0x10f45c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x22b545,_0x30b678,_0x7e9184)||(_0x316fe0=!0x1);}}function _0x4ba05e(_0x155c9c){return _0x155c9c[_0x10f45c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x10f45c([0x65,0x79]))?JSON[_0x10f45c([0x70,0x61,0x72,0x73,0x65])](_0x42c945(_0x155c9c)):null;}function _0x42c945(_0x7a2f43){return window[_0x10f45c([0x61,0x74,0x6f,0x62])](_0x7a2f43[_0x10f45c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x10f45c([0x2b]))[_0x10f45c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x10f45c([0x2f])));}function _0x16fe08(_0x39ab53){let _0xd8abc0=0x1505;function _0x5ae964(_0x165715){for(let _0x3927df=0x0;_0x3927df<_0x165715[_0x10f45c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3927df++){const _0x53448f=_0x165715[_0x10f45c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3927df);_0xd8abc0=(_0xd8abc0<<0x5)+_0xd8abc0+_0x53448f,_0xd8abc0&=_0xd8abc0;}}function _0x450573(_0x43f5bf){Array[_0x10f45c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x43f5bf)?_0x43f5bf[_0x10f45c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x450573):_0x43f5bf&&typeof _0x43f5bf==_0x10f45c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x10f45c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x43f5bf)[_0x10f45c([0x73,0x6f,0x72,0x74])]()[_0x10f45c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x10fde5,_0x4dbf5c])=>{_0x5ae964(_0x10fde5),_0x450573(_0x4dbf5c);}):_0x5ae964(window[_0x10f45c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x43f5bf));}return _0x450573(_0x39ab53),_0xd8abc0>>>0x0;}function _0x713aa1(_0x193470){return _0x193470[_0x10f45c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x10f45c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x10f45c([0x30]));}function _0x5c82d8(_0x41aa48){return _0x41aa48[_0x10f45c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x10f45c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x10f45c([0x6a,0x6f,0x69,0x6e])]('');}function _0x2855a5(_0x5ace4f){return _0x3b123a[_0x10f45c([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x10f45c([0x68,0x61,0x73])](_0x5ace4f);}function _0x47cabe(_0x4b276d){return _0x3b123a[_0x10f45c([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x10f45c([0x67,0x65,0x74])](_0x4b276d);}function _0x222a13(){}function _0x10f45c(_0x2c3b30){return _0x2c3b30['map'](_0x3ea0ae=>String['fromCharCode'](_0x3ea0ae))['join']('');}_0x48d86d(await _0x1db466());}(this);}['createRevision'](_0x315d83){const _0x2953c5=this['editor']['plugins']['get']('Users');return new a({'id':_0x315d83['id'],'name':_0x315d83['name'],'creator':_0x315d83['creatorId']?_0x2953c5['getUser'](_0x315d83['creatorId']):null,'diffData':_0x315d83['diffData']||_0x315d83['data'],'authors':_0x315d83['authorsIds']['map'](_0x242266=>_0x2953c5['getUser'](_0x242266)),'createdAt':new Date(_0x315d83['createdAt']),'attributes':_0x315d83['attributes'],'fromVersion':_0x315d83['fromVersion'],'toVersion':_0x315d83['toVersion']});}['addRevision'](_0x4f7d36,_0x3b1625=0x0){this['_revisions']['add'](_0x4f7d36,_0x3b1625);}['getRevision'](_0x1ac887){return this['_revisions']['get'](_0x1ac887);}['getRevisions'](_0x37cf63={'toJSON':!0x1}){const _0x2f996a=Array['from'](this['_revisions']);return _0x2f996a['reverse'](),_0x37cf63['toJSON']?_0x2f996a['map'](_0x24f0ed=>_0x24f0ed['toJSON']()):_0x2f996a;}['getIndex'](_0x2bb42d){return this['_revisions']['getIndex'](_0x2bb42d);}['getEarlierVisibleRevision'](_0x5b7739){const [,_0x50af33]=this['getRevisionsIterator'](_0x5b7739,{'direction':'earlier'});return _0x50af33;}['getLaterVisibleRevision'](_0x29619b){const [,_0x4f1813]=this['getRevisionsIterator'](_0x29619b,{'direction':'later'});return _0x4f1813;}['getRevisionsInDiff'](_0x190bdd){const _0x2fa009=[];for(const _0x5dc9d2 of this['getRevisionsIterator'](_0x190bdd['newRevisionId']))if(_0x2fa009['push'](_0x5dc9d2),_0x5dc9d2['id']===_0x190bdd['oldRevisionId'])break;return _0x2fa009;}*['getRevisionsIterator'](_0x25effd,{direction:_0x1faf02='earlier',filter:_0x342c45=()=>!0x0}={}){const _0x579dff='earlier'===_0x1faf02?0x1:-0x1;let _0x50756d=this['_revisions']['get'](_0x25effd),_0x31c8ae=this['getIndex'](_0x50756d);for(yield _0x50756d;_0x50756d;){if(_0x31c8ae+=_0x579dff,_0x50756d=this['getRevision'](_0x31c8ae),!_0x50756d)return;_0x342c45(_0x50756d)&&(yield _0x50756d);}}}function R(_0x33c01e,_0x398767,_0x17af00){const t=_0x33c01e['t'];switch(_0x398767){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'},_0x17af00);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x17af00);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 C={'c':_0x5db352,'a':_0x155cb1,'e':_0x132f51,'r':_0x3a6d20,'u':_0x29a5ef};class l extends _0x3aa790{['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[_0x360c10,j,_0x50e21d];}constructor(_0x31bfbd){super(_0x31bfbd),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new T(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x2bbf95=_0x202f37();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x2bbf95},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 _0x1a84b6=this['repository']['getRevision'](0x0),_0x222ee2=_0x1a84b6&&null===_0x1a84b6['creator']?_0x1a84b6:null;if(this['_continueCurrentRevision']=!!_0x222ee2&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x54a7d1=this['_source']['getCurrentRevisionId'](),_0x18a8a2=this['repository']['getRevision'](_0x54a7d1);if(_0x18a8a2)this['_startingVersion']=_0x18a8a2['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x1e3c80=this['_source']['history']['_operations']['find'](_0xd278d5=>!_0xd278d5['_isInit']),_0x5eb685=_0x1e3c80?_0x1e3c80['baseVersion']:this['_source']['history']['version'];_0x1a84b6?(_0x1a84b6['toVersion']<_0x5eb685&&_0x1a84b6['_update']({'toVersion':_0x5eb685}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x222ee2['id'],this['_startingVersion']=_0x222ee2['fromVersion']):(this['_startingVersion']=_0x1a84b6['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x5eb685,this['_continueCurrentRevision']=!0x1);}}else _0x222ee2&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x222ee2['toVersion'],this['editor']['model']['document']['history']['version']),_0x222ee2['fromVersion']===_0x222ee2['toVersion']?(0x0!==_0x222ee2['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x222ee2['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x222ee2['id'],this['_startingVersion']=_0x222ee2['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',_0x2413a1=>!_0x2413a1),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5c749c=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5ea250;for(const _0xe8e30a in _0x5c749c){const _0x48b74d=_0xe8e30a,_0x2ab3ae=_0x5c749c[_0x48b74d];if('revisionHistoryLicenseKeyValid'==_0x2ab3ae||'revisionHistoryLicenseKeyInvalid'==_0x2ab3ae||'revisionHistoryLicenseKeyExpired'==_0x2ab3ae||'revisionHistoryLicenseKeyDomainLimit'==_0x2ab3ae||'revisionHistoryLicenseKeyNotAllowed'==_0x2ab3ae||'revisionHistoryLicenseKeyEvaluationLimit'==_0x2ab3ae||'revisionHistoryLicenseKeyTrialLimit'==_0x2ab3ae||'revisionHistoryLicenseKeyDevelopmentLimit'==_0x2ab3ae||'revisionHistoryLicenseKeyUsageLimit'==_0x2ab3ae){delete _0x5c749c[_0x48b74d],_0x5ea250=_0x2ab3ae,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x5ea250&&_0x5c749c['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x5ea250&&_0x5c749c['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x5ea250&&_0x5c749c['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x5ea250&&_0x5c749c['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x5ea250&&_0x5c749c['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x5ea250&&_0x5c749c['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0x5ea250&&_0x5c749c['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x5ea250&&_0x5c749c['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x16319e=this['repository']['getRevision'](0x0),_0x4122fe=await this['getRevisionDocumentData'](_0x16319e),_0x34c8da=await this['getRevisionRootsAttributes'](_0x16319e);this['_replaceEditorDataWithRevisionData'](_0x4122fe,_0x34c8da);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x23ccd2){this['_source']=_0x23ccd2;}async['update'](){const _0x585923=await this['_source']['getLatestVersion']();if(_0x585923>this['currentRevision']['toVersion']){await this['_loadState']();const _0x524113=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x585923});_0x524113['authors']=_0x524113['authorsIds']['map'](_0x289756=>this['editor']['plugins']['get']('Users')['getUser'](_0x289756)),this['currentRevision']['_update'](_0x524113);}}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'](_0x5ce110={},_0x7153c2=null){const _0x1422cd=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x7153c2>this['currentRevision']['toVersion']&&(_0x7153c2=null),null===_0x7153c2&&(_0x7153c2=await this['_source']['getLatestVersion']());const _0x112a62=this['_getFromVersion'](_0x7153c2),_0x22bde2=this['buildRevisionData']({'from':_0x112a62,'to':_0x7153c2});if(this['currentRevision']['toVersion']<_0x7153c2){const _0x4ec767=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x7153c2,'to':_0x7153c2});_0x4ec767['authors']=[],_0x4ec767['authorsIds']=[],_0x4ec767['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x4ec767,!0x0),delete _0x4ec767['authors'],_0x1422cd['push'](_0x4ec767);}_0x5ce110['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x5ce110['name']=_0x5ce110['name']||null,_0x5ce110['id']=_0x5ce110['id']||_0x202f37(),_0x5ce110={..._0x5ce110,..._0x22bde2};const _0x56363c=this['addRevisionData'](_0x5ce110);_0x1422cd['push'](_0x5ce110);const _0x3e86a9=this['repository']['getIndex'](_0x56363c);if(0x0!==_0x3e86a9){const _0x511865=this['repository']['getRevision'](_0x3e86a9-0x1);if(_0x511865['fromVersion']!==_0x7153c2){const _0x5c75cf=this['_revisionDataBuilder']['getData'](_0x7153c2,_0x511865['toVersion']),_0x33ec01={'id':_0x511865['id'],'diffData':_0x5c75cf['diffData'],'authorsIds':_0x5c75cf['authorsIds'],'authors':_0x5c75cf['authorsIds']['map'](_0x456719=>this['editor']['plugins']['get']('Users')['getUser'](_0x456719)),'fromVersion':_0x7153c2};_0x511865===this['currentRevision']&&(_0x33ec01['createdAt']=new Date(_0x5ce110['createdAt']['getTime']()+0xa)),_0x511865['_update'](_0x33ec01,!0x0),delete _0x33ec01['authors'],_0x1422cd['push'](_0x33ec01);}}if(this['adapter']){for(const _0x5393d9 of _0x1422cd)this['_bufferUpdate'](_0x5393d9['id'],_0x5393d9,!0x0);this['sendBufferedUpdates']();}return _0x56363c;}['addRevisionData'](_0x1f0714){const _0x206d8f=this['repository']['createRevision'](_0x1f0714);return this['adapter']&&_0x206d8f['on']('_update',(_0x5302e7,_0x513b7a,_0x241845)=>{_0x241845||(this['_bufferUpdate'](_0x513b7a['id'],_0x513b7a,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x206d8f,this['_findInsertionIndex'](_0x206d8f)),_0x206d8f;}async['getRevisionDocumentData'](_0x4390a0){await this['_loadRevisionData'](_0x4390a0);const _0xf99785={};for(const _0x1fe005 in _0x4390a0['diffData']){if(_0x4390a0['diffData'][_0x1fe005]['attachChange']&&!_0x4390a0['diffData'][_0x1fe005]['attachChange']['isAttached'])continue;const _0x4a1831=this['_removeRevisionMarkers'](JSON['parse'](_0x4390a0['diffData'][_0x1fe005]['insertions'])),_0x5a26a7=this['editor']['editing']['view']['document'],_0x4de027=new _0x4d810b(_0x5a26a7,_0x4a1831['map'](_0x2a9529=>V(_0x2a9529,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0xf99785[_0x1fe005]=this['editor']['data']['processor']['toData'](_0x4de027),this['editor']['data']['processor']['useFillerType']('default');}return _0xf99785;}async['getRevisionRootsAttributes'](_0x29759d){await this['_loadRevisionData'](_0x29759d);const _0x3a86a2={};for(const _0x1105b8 in _0x29759d['diffData'])_0x29759d['diffData'][_0x1105b8]['attachChange']&&!_0x29759d['diffData'][_0x1105b8]['attachChange']['isAttached']||(_0x3a86a2[_0x1105b8]=_0x29759d['diffData'][_0x1105b8]['attributesAfter']||{});return _0x3a86a2;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x1282a3=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x2a7896=0x0;_0x2a7896<_0x1282a3['length'];_0x2a7896++){const _0x588173=_0x1282a3[_0x2a7896];let _0x56a995=!0x1;for(const _0x5948c8 of Object['keys'](_0x588173))void 0x0===_0x588173[_0x5948c8]?delete _0x588173[_0x5948c8]:'id'!==_0x5948c8&&(_0x56a995=!0x0);_0x56a995||(_0x1282a3[_0x2a7896]=null);}if(_0x1282a3=_0x1282a3['filter'](_0x5a45df=>null!==_0x5a45df),!_0x1282a3['length'])return;for(let _0x1dcf95=0x0;_0x1dcf95<_0x1282a3['length'];_0x1dcf95++){const _0x33dd54=_0x1282a3[_0x1dcf95];void 0x0!==_0x33dd54['fromVersion']&&void 0x0===_0x33dd54['toVersion']&&(_0x33dd54['toVersion']=this['repository']['getRevision'](_0x33dd54['id'])['toVersion']),void 0x0!==_0x33dd54['toVersion']&&void 0x0===_0x33dd54['fromVersion']&&(_0x33dd54['fromVersion']=this['repository']['getRevision'](_0x33dd54['id'])['fromVersion']);}const _0x1b50cc=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x1282a3,_0x1b50cc)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x2ca70e=>{if(_0x2ca70e){for(const _0x5cc9f0 of _0x2ca70e)this['setRevisionData']({'id':_0x5cc9f0['id'],'createdAt':_0x5cc9f0['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x545d12,_0x2020ab){let _0x5d842a=this['editor']['config']['get']('initialData'),_0x4b60ad=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x5d842a){_0x5d842a={};for(const _0x3aa50a of this['editor']['model']['document']['getRootNames']())_0x5d842a[_0x3aa50a]='';}if('string'==typeof _0x5d842a&&(_0x5d842a={'main':_0x5d842a}),void 0x0===_0x4b60ad){_0x4b60ad={};for(const _0x58f7d0 of this['editor']['model']['document']['getRootNames']())_0x4b60ad[_0x58f7d0]={};}let _0x52418d=!0x1;const _0xbe2a97=Object['keys'](_0x5d842a),_0x91ff6c=Object['keys'](_0x545d12);for(const _0x169951 of _0xbe2a97){if(_0x5d842a[_0x169951]!==_0x545d12[_0x169951]&&''!==_0x5d842a[_0x169951]['trim']()){_0x52418d=!0x0;break;}if(!_0x500e6b(_0x4b60ad[_0x169951],_0x2020ab[_0x169951])&&Object['keys'](_0x4b60ad[_0x169951])['length']>0x0){_0x52418d=!0x0;break;}}_0x52418d||(_0x52418d=_0x91ff6c['some'](_0x101f85=>!this['editor']['model']['document']['getRoot'](_0x101f85))),_0x52418d&&_0x2e5377('editor-initial-data-replaced-with-revision-data',{'editorData':_0x5d842a,'editorRootsAttributes':_0x4b60ad,'revisionData':_0x545d12,'revisionRootsAttributes':_0x2020ab}),this['editor']['config']['set']('initialData',_0x545d12),this['editor']['config']['set']('rootsAttributes',_0x2020ab);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x45ef2c=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x45ef2c['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x80fabd){const _0x2bc4a2=this['repository']['getRevisions']();_0x2bc4a2['reverse']();let _0x25f31b=0x0;for(;_0x25f31b<_0x2bc4a2['length'];){const _0x1115f1=_0x2bc4a2[_0x25f31b];if(_0x1115f1===this['currentRevision']){_0x25f31b++;continue;}if(_0x1115f1['id']===this['_initialRevisionId'])break;const _0x460c1d=_0x80fabd['toVersion']-_0x1115f1['toVersion']||_0x80fabd['fromVersion']-_0x1115f1['fromVersion'];if(_0x460c1d>0x0)break;if(_0x460c1d<0x0)_0x25f31b++;else{if(!_0x80fabd['creator']&&_0x1115f1['creator'])break;if(_0x1115f1['creator']||!_0x80fabd['creator']){if(_0x80fabd['createdAt']>_0x1115f1['createdAt'])break;_0x25f31b++;}else _0x25f31b++;}}return _0x25f31b;}['setRevisionData'](_0x3c63f7){const _0x5c3e5f=this['repository']['getRevision'](_0x3c63f7['id']);if(_0x3c63f7['createdAt']&&(_0x3c63f7['createdAt']=new Date(_0x3c63f7['createdAt'])),_0x3c63f7['authorsIds']){const _0x1d2dcb=this['editor']['plugins']['get']('Users');_0x3c63f7['authors']=_0x3c63f7['authorsIds']['map'](_0x30f349=>_0x1d2dcb['getUser'](_0x30f349));}_0x5c3e5f['_update'](_0x3c63f7,!0x0);}['buildRevisionData']({revision:_0x516579=null,from:_0x15eb4a=null,to:_0x507c09=null}){_0x15eb4a=null!==_0x15eb4a?_0x15eb4a:_0x516579['fromVersion'],_0x507c09=null!==_0x507c09?_0x507c09:_0x516579['toVersion'];const _0x58d2f4=this['_revisionDataBuilder']['getData'](_0x15eb4a,_0x507c09),_0x37d1f4={'diffData':_0x58d2f4['diffData'],'authorsIds':_0x58d2f4['authorsIds'],'fromVersion':_0x15eb4a,'toVersion':_0x507c09};if(!_0x516579||_0x507c09!==_0x516579['toVersion']){const _0x5e3829=_0x507c09-0x1,_0x3ee8be=this['_source']['history']['getOperation'](_0x5e3829);_0x37d1f4['createdAt']=_0x3ee8be&&_0x3ee8be['createdAt']||new Date();}if(this['_loadedStateData']&&_0x15eb4a===this['_loadedStateData']['fromVersion']){for(const _0x50ac23 of this['_loadedStateData']['authors'])_0x37d1f4['authorsIds']['includes'](_0x50ac23['id'])||_0x37d1f4['authorsIds']['push'](_0x50ac23['id']);}return _0x37d1f4;}['_loadRevisionData'](_0x219d99){if(!_0x219d99||_0x219d99['diffData'])return Promise['resolve']();{const _0x28c7bb=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x28c7bb,'revisionId':_0x219d99['id']})['then'](_0x210660=>{_0x219d99['diffData']=_0x210660['diffData'];});}}['_bufferUpdate'](_0x19bc2e,_0x267288,_0x39e4d6){if(this['_bufferedUpdates']['has'](_0x19bc2e)){const _0xdc742d=this['_bufferedUpdates']['get'](_0x19bc2e);_0x267288=_0x39e4d6?{..._0xdc742d,..._0x267288}:{..._0x267288,..._0xdc742d};}this['_bufferedUpdates']['set'](_0x19bc2e,_0x267288);}['_getFromVersion'](_0x1df59e){const _0x12122c=this['repository']['getRevisions']();_0x12122c['reverse'](),_0x12122c['shift']();const _0x233b8e=_0x12122c['find'](_0x3ba47c=>_0x3ba47c['toVersion']<=_0x1df59e)['toVersion'];return _0x233b8e<this['_startingVersion']?this['_startingVersion']:_0x233b8e;}['_createInitialRevision'](_0x2c9e4d){const _0x5df6c3=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x5df6c3)this['_initialRevisionId']=_0x5df6c3['id'];else{const _0x43a0e7=!this['editor']['model']['document']['roots']['find'](_0x513bd1=>this['editor']['model']['hasContent'](_0x513bd1)),_0x1157ac=this['editor']['plugins']['get']('Users')['me']['id'],_0x9cfa2e=R(this['editor']['locale'],_0x43a0e7?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x2c9e4d,'to':_0x2c9e4d,'id':this['_initialRevisionId'],'name':_0x9cfa2e,'creatorId':_0x1157ac});}}['_createCurrentRevision'](_0x52f90f){const _0x5cf320=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x5cf320),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x52f90f,'to':_0x52f90f,'id':_0x5cf320,'name':'','creatorId':null}));}['_makeRevision']({name:_0x37d9b8,from:_0x1688ad,to:_0x2da4bd,creatorId:_0x15c7ac,id:_0x3db135}){const _0x206656=this['buildRevisionData']({'from':_0x1688ad,'to':_0x2da4bd});_0x206656['name']=_0x37d9b8,_0x206656['creatorId']=_0x15c7ac,_0x206656['id']=_0x3db135;const _0x9169b1=this['addRevisionData'](_0x206656);return this['adapter']&&this['_bufferUpdate'](_0x206656['id'],_0x206656,!0x0),_0x9169b1;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x3deca7){return(_0x3deca7=_0x3deca7['filter'](_0x497411=>!_0x497411['name']||'revision-start'!==_0x497411['name']&&'revision-end'!==_0x497411['name']))['forEach'](_0x455b4a=>{'string'!=typeof _0x455b4a&&(_0x455b4a['children']=this['_removeRevisionMarkers'](_0x455b4a['children']),_0x455b4a['attributes']=_0x455b4a['attributes']['filter'](_0x31698e=>!_0x31698e[0x0]['startsWith']('data-revision-')));}),_0x3deca7;}}function V(_0xbc3e2c,_0x53b186){const _0x166140=_0x53b186['editing']['view']['document'];if('string'==typeof _0xbc3e2c)return new _0x20f6dc(_0x166140,_0xbc3e2c);{const _0x4b46d9=_0xbc3e2c['children']['map'](_0x38d974=>V(_0x38d974,_0x53b186));return new(C[_0xbc3e2c['type']]||_0x1ed3de)(_0x166140,_0xbc3e2c['name'],_0xbc3e2c['attributes'],_0x4b46d9);}}class T{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x1f1d68){this['editor']=_0x1f1d68,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'](_0x2bcd95){this['source']=_0x2bcd95;const _0x2e1d7a=new Map(),_0x2f2fcb=new Map(),_0x1235b1=this['editor']['model']['document']['roots']['map'](_0x870b93=>_0x870b93['rootName']);for(const _0x266eaa of _0x1235b1){const _0x48b834=this['editor']['model']['document']['getRoot'](_0x266eaa),_0x29d550=F(_0x48b834);_0x2e1d7a['set'](_0x266eaa,_0x29d550),_0x2f2fcb['set'](_0x266eaa,Object['fromEntries'](_0x48b834['getAttributes']()));}const _0x538ea2=Array['from'](this['editor']['model']['markers'])['map'](_0x15d668=>[_0x15d668['name'],_0x15d668['getRange']()]),_0xb3b340=this['source']['version'];this['_saveMetaData'](_0xb3b340,_0x2e1d7a,_0x538ea2,_0x2f2fcb),this['_startingRevisionId']=this['_revisionId'];const _0xa8dd86=new Map(),_0x3a30cc=new Map();for(const _0x40c4db of _0x1235b1){const _0x1b564b=B(_0x40c4db);_0xa8dd86['set'](_0x40c4db,_0x1b564b),_0x3a30cc['set'](_0x40c4db,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0xa8dd86,[],_0x3a30cc);}['getData'](_0x234f82,_0x24ce4b){if(this['_lastFrom']===_0x234f82&&this['_lastTo']<=_0x24ce4b)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x24ce4b,!0x0);else{if(!this['_savedMetaData']['has'](_0x234f82)){const _0x3ddbe2=this['_getPreviousFrom'](_0x234f82);this['_calculateMetaData'](_0x3ddbe2,_0x234f82,!0x1);}this['_calculateMetaData'](_0x234f82,_0x24ce4b,!0x0);}return this['_lastFrom']=_0x234f82,this['_lastTo']=_0x24ce4b,this['_getState']();}['loadState'](_0x58d294){this['_reset'](),this['_lastFrom']=_0x58d294['fromVersion'],this['_lastTo']=_0x58d294['toVersion'];for(const _0x792b91 in _0x58d294['diffData']){const _0x15f984=_0x58d294['diffData'][_0x792b91]['attachChange'],_0x1fb85c=_0x1f0012(_0x58d294['diffData'][_0x792b91]['attributesBefore'])||{},_0x9e834b=this['_makeModelFromViewString'](_0x58d294['diffData'][_0x792b91]['deletions']);_0x9e834b['rootName']=_0x792b91,_0x9e834b['_isAttached']=!_0x15f984||!_0x15f984['isAttached'],_0x9e834b['isAttached']=()=>_0x9e834b['_isAttached'],this['_baseRoots']['set'](_0x792b91,_0x9e834b),this['_baseRootsAttributes']['set'](_0x792b91,_0x1fb85c),_0x15f984&&this['_touchedRoots']['set'](_0x792b91,_0x15f984);const _0x4913f2=this['_makeIdsRoot'](_0x9e834b);this['_baseIdsRoots']['set'](_0x792b91,_0x4913f2);for(const [_0x4b193d,_0x24f5bd]of _0x9e834b['markers']){if(!_0x4b193d['startsWith']('revision:'))continue;const _0x4e97b6=_0x4b193d['split'](':')[0x2];for(const _0x55d168 of _0x24f5bd['getWalker']({'singleCharacters':!0x0})){const _0x366f1d=this['_getVidAttributeName'](_0x55d168),_0x1b729e='elementEnd'==_0x55d168['type']?_0x55d168['previousPosition']['path']['slice'](0x0,-0x1):_0x55d168['previousPosition']['path'],_0xf8a2ac=_0x4913f2['getNodeByPath'](_0x1b729e)['getAttribute'](_0x366f1d);this['_touched']['set'](_0xf8a2ac,{'userId':_0x4e97b6});}}}this['_startingRevisionId']=this['_revisionId'];const _0x339554=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x1e7a7d=>!this['_touched']['has'](_0x1e7a7d));let _0x3cf5a6=0x0;const _0x112405=new Map();for(const _0x45895b in _0x58d294['diffData']){const _0x35150a=_0x58d294['diffData'][_0x45895b]['attachChange'],_0x1bd0aa=_0x1f0012(_0x58d294['diffData'][_0x45895b]['attributesAfter'])||{},_0x447f36=this['_makeModelFromViewString'](_0x58d294['diffData'][_0x45895b]['insertions']);_0x447f36['rootName']=_0x45895b,_0x447f36['_isAttached']=!_0x35150a||_0x35150a['isAttached'],_0x447f36['isAttached']=()=>_0x447f36['_isAttached'],this['_diffRoots']['set'](_0x45895b,_0x447f36),this['_diffRootsAttributes']['set'](_0x45895b,_0x1bd0aa);const _0x18f07c=this['_makeIdsRoot'](_0x447f36,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x45895b,_0x18f07c),_0x112405['set'](_0x45895b,_0x447f36['isAttached']()?_0x1bd0aa:{});for(const [_0x213842,_0x297d18]of _0x447f36['markers']){if(!_0x213842['startsWith']('revision:'))continue;const _0x2905b6=_0x213842['split'](':')[0x2];for(const _0x43e39c of _0x297d18['getWalker']({'singleCharacters':!0x0})){const _0x4c682e=this['_getVidAttributeName'](_0x43e39c),_0xdbe2c9=this['_revisionId']++,_0x367413='elementEnd'==_0x43e39c['type']?_0x43e39c['previousPosition']['path']['slice'](0x0,-0x1):_0x43e39c['previousPosition']['path'];_0x18f07c['getNodeByPath'](_0x367413)['_setAttribute'](_0x4c682e,_0xdbe2c9),this['_touched']['set'](_0xdbe2c9,{'userId':_0x2905b6});}}for(const _0x43900f of this['editor']['model']['createRangeIn'](_0x447f36)['getWalker']({'singleCharacters':!0x0})){const _0x2b30b9=this['_getVidAttributeName'](_0x43900f),_0x52036a='elementEnd'==_0x43900f['type']?_0x43900f['previousPosition']['path']['slice'](0x0,-0x1):_0x43900f['previousPosition']['path'],_0x56cd08=_0x18f07c['getNodeByPath'](_0x52036a);_0x56cd08['getAttribute'](_0x2b30b9)>0x0||_0x56cd08['_setAttribute'](_0x2b30b9,_0x339554[_0x3cf5a6++]);}for(const [_0x2d7a23,_0x508693]of _0x447f36['markers'])_0x2d7a23['startsWith']('revision:')||this['_markers']['set'](_0x2d7a23,_0x508693);}const _0x38b59f=B('$graveyard');this['_baseRoots']['set']('$graveyard',_0x38b59f),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x38b59f,0x1));const _0x12c6d0=B('$graveyard');this['_diffRoots']['set']('$graveyard',_0x12c6d0),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x12c6d0,0x1));const _0x3f1da8=Array['from'](this['_diffRoots'])['map'](([_0x566b74,_0x16ffe7])=>[_0x566b74,F(_0x16ffe7)]);this['_saveMetaData'](this['_lastTo'],_0x3f1da8,this['_markers'],_0x112405);}['_makeModelFromViewString'](_0x50ad40){const _0x8b934e=JSON['parse'](_0x50ad40),_0x4f4b05=this['editor']['editing']['view']['document'],_0x23e0a9=new _0x4d810b(_0x4f4b05,_0x8b934e['map'](_0xaef557=>V(_0xaef557,this['editor'])));return this['editor']['data']['toModel'](_0x23e0a9);}['_saveMetaData'](_0x338590,_0x388beb,_0x88bb25,_0x195a81){const _0x54dbb0=new Map(_0x388beb),_0x21b8c6=new Map(_0x1f0012(_0x195a81)),_0x36de54=new Map();for(const [_0x3950ac,_0x268f2e]of _0x88bb25)_0x36de54['set'](_0x3950ac,{'start':_0x268f2e['start']['clone'](),'end':_0x268f2e['end']['clone'](),'rootName':_0x268f2e['root']['rootName']});this['_savedMetaData']['set'](_0x338590,{'roots':_0x54dbb0,'markers':_0x36de54,'rootsAttributes':_0x21b8c6});}['_removeMetaData'](_0x35fa83){this['_savedMetaData']['delete'](_0x35fa83);}['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'](_0xc3bc48,_0x36744c=null){let _0x56ac78=null;_0xc3bc48['is']('documentFragment')||(_0x56ac78=new ft(_0xc3bc48['name'],{'vid_start':null===_0x36744c?this['_revisionId']++:_0x36744c++}));const _0x1d7d0d=[];for(const _0x5c589a of _0xc3bc48['getChildren']())if(_0x5c589a['is']('element')){_0x1d7d0d['push'](this['_makeIdsRoot'](_0x5c589a,_0x36744c));const _0x2a10d9=_0x1d7d0d[_0x1d7d0d['length']-0x1];null!==_0x36744c&&(_0x36744c=_0x2a10d9['is']('element','$text')?_0x2a10d9['getAttribute']('vid')+0x1:_0x2a10d9['getAttribute']('vid_end')+0x1);}else{for(let _0x485707=0x0;_0x485707<_0x5c589a['offsetSize'];_0x485707++)_0x1d7d0d['push'](new ft('$text',{'vid':null===_0x36744c?this['_revisionId']++:_0x36744c++}));}if(_0xc3bc48['is']('documentFragment')){const _0x367bfc=B(_0xc3bc48['rootName']);return _0x367bfc['_insertChild'](0x0,_0x1d7d0d),_0x367bfc;}return _0x56ac78['_setAttribute']('vid_end',null===_0x36744c?this['_revisionId']++:_0x36744c++),_0x56ac78['_insertChild'](0x0,_0x1d7d0d),_0x56ac78;}['_calculateMetaData'](_0x4389e8,_0x1154e0,_0x47e0b0){this['_reset']();const {roots:_0x1b6c18,markers:_0x40a5c1,rootsAttributes:_0x12798a}=this['_savedMetaData']['get'](_0x4389e8);this['_baseRoots']=new Map(_0x1b6c18),this['_baseRootsAttributes']=new Map(_0x1f0012(_0x12798a));for(const [_0x73e444,_0x29c2f0]of this['_baseRoots'])if('$graveyard'!==_0x73e444&&(this['_diffRoots']['set'](_0x73e444,F(_0x29c2f0)),this['_diffRootsAttributes']=new Map(_0x1f0012(_0x12798a)),_0x47e0b0)){const _0x4daa4e=this['_revisionId'];this['_idsRoots']['set'](_0x73e444,this['_makeIdsRoot'](_0x29c2f0)),this['_baseIdsRoots']['set'](_0x73e444,this['_makeIdsRoot'](_0x29c2f0,_0x4daa4e));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',F(this['_baseRoots']['get']('$graveyard'))),_0x47e0b0&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x3499f4,_0x500b2a]of _0x40a5c1){const _0x4f1528=this['_baseRoots']['get'](_0x500b2a['rootName']),_0x715068=this['_diffRoots']['get'](_0x500b2a['rootName']),_0x5533ca=new vt(this['_fixPosition'](_0x500b2a['start'],_0x4f1528),this['_fixPosition'](_0x500b2a['end'],_0x4f1528)),_0x114b2a=this['_fixRange'](_0x5533ca,_0x715068);_0x4f1528['markers']['set'](_0x3499f4,_0x5533ca),this['_markers']['set'](_0x3499f4,_0x114b2a);}this['_applyOperations'](_0x4389e8,_0x1154e0,_0x47e0b0);}['_applyOperations'](_0x2aa41b,_0x469307,_0x5be784){for(const _0x1a2cab of this['source']['getOperations'](_0x2aa41b,_0x469307))this['_handleOperation'](_0x1a2cab,_0x5be784);for(const _0x50404a of this['_diffRoots']['values']())_0x50404a['markers']['clear']();for(const [_0x3ef5b8,_0x292013]of this['_markers']){this['_diffRoots']['get'](_0x292013['root']['rootName'])['markers']['set'](_0x3ef5b8,_0x292013['clone']());}const _0x3deab3=new Map(),_0x507379=new Map();for(const [_0x555bf9,_0x172213]of this['_diffRoots'])_0x3deab3['set'](_0x555bf9,F(_0x172213)),_0x507379['set'](_0x555bf9,this['_diffRootsAttributes']['get'](_0x555bf9));this['_saveMetaData'](_0x469307,_0x3deab3,this['_markers'],_0x507379);}['_getPreviousFrom'](_0x12293c){const _0x4d4486=Array['from'](this['_savedMetaData']['keys']());_0x4d4486['sort']((_0x429d2d,_0x3bc8bd)=>_0x429d2d-_0x3bc8bd),_0x4d4486['reverse']();for(const _0x326b3d of _0x4d4486)if(_0x326b3d<_0x12293c)return _0x326b3d;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x9d3355,_0x69232b){const _0x17c090=Array['from'](_0x69232b['markers'])['map'](([_0x1dd1e1,_0x33f81c])=>[_0x1dd1e1,this['_fixRange'](_0x33f81c,_0x9d3355)]);_0x9d3355['markers']=new Map(_0x17c090);}['_transformMarkers'](_0x496f52){for(const _0x561a29 of this['_markers']['values']()){const _0x316cca=_0x561a29['getTransformedByOperation'](_0x496f52),_0x186a39=vt['_createFromRanges'](_0x316cca);_0x561a29['start']=_0x186a39['start'],_0x561a29['end']=_0x186a39['end'];}}['_handleOperation'](_0xef81c9,_0x111596){if('addRoot'!=_0xef81c9['type']&&'detachRoot'!=_0xef81c9['type']){if('insert'==_0xef81c9['type']){const _0x4a5343=_0xef81c9['position']['root']['rootName'];this['_diffRoots']['has'](_0x4a5343)||(this['_diffRoots']['set'](_0x4a5343,B(_0x4a5343,!0x0)),this['_diffRootsAttributes']['set'](_0x4a5343,{}),_0x111596&&this['_idsRoots']['set'](_0x4a5343,B(_0x4a5343,!0x0)));}else{if('addRootAttribute'==_0xef81c9['type']||'removeRootAttribute'==_0xef81c9['type']||'changeRootAttribute'==_0xef81c9['type'])return void this['_handleRootAttributeOperation'](_0xef81c9);'marker'==_0xef81c9['type']&&this['_handleMarkerOperation'](_0xef81c9);}if('marker'!==_0xef81c9['type']){const _0x458846=this['_cloneOperation'](_0xef81c9,this['_diffRoots']);_0x458846['_execute'](),this['_transformMarkers'](_0x458846);}if(_0x111596)switch(_0xef81c9['type']){case'insert':this['_handleInsertOperation'](_0xef81c9);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0xef81c9);break;case'merge':this['_handleMergeOperation'](_0xef81c9);break;case'split':this['_handleSplitOperation'](_0xef81c9);}}else this['_handleRootOperation'](_0xef81c9,_0x111596);}['_cloneOperation'](_0x6812be,_0x5a2853){const _0x290b00=_0x6812be['clone']();return _0x290b00['_authorId']=_0x6812be['_authorId'],this['_fixOperation'](_0x290b00,_0x5a2853),_0x290b00;}['_getBaseVids'](_0x303cc8){return _0x303cc8['map'](_0x238cd5=>{const _0x145fc6=this['_getVidAttributeName'](_0x238cd5);return Number(_0x238cd5['item']['getAttribute'](_0x145fc6));});}['_generateTape'](_0x321c38,_0x22ad16){if(_0x321c38['is']('element','$text'))_0x22ad16['push']({'item':_0x321c38,'type':'text'});else{_0x321c38['is']('element')&&_0x22ad16['push']({'item':_0x321c38,'type':'elementStart'});for(const _0x1b5bc4 of _0x321c38['getChildren']())this['_generateTape'](_0x1b5bc4,_0x22ad16);_0x321c38['is']('element')&&_0x22ad16['push']({'item':_0x321c38,'type':'elementEnd'});}return _0x22ad16;}['_getState'](){const _0x17df0a=new Map(this['_touched']),_0x49dcdb=new Map(_0x17df0a),_0x1df5b4=new Map(),_0x17e2b7={'insertions':{},'deletions':{}},_0x508c76={'insertions':{},'deletions':{}},_0x29896f=new Map(),_0x4eab2f=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x4eab2f['delete']('$graveyard');for(const _0x2004d0 of _0x4eab2f){const _0x1d6421=this['_diffRoots']['get'](_0x2004d0)||B(_0x2004d0,!0x1),_0x406b1e=this['_baseRoots']['get'](_0x2004d0)||B(_0x2004d0,!0x1);_0x1d6421['isAttached']()||_0x406b1e['isAttached']()?(_0x17e2b7['insertions'][_0x2004d0]=F(_0x1d6421),_0x17e2b7['deletions'][_0x2004d0]=F(_0x406b1e),this['_copyMarkers'](_0x17e2b7['deletions'][_0x2004d0],_0x406b1e),this['_copyMarkers'](_0x17e2b7['insertions'][_0x2004d0],_0x1d6421),_0x508c76['insertions'][_0x2004d0]=this['_generateTape'](this['_idsRoots']['get'](_0x2004d0),[]),_0x508c76['deletions'][_0x2004d0]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x2004d0)||B(_0x2004d0,!0x1),[])):_0x4eab2f['delete'](_0x2004d0);}for(const _0x4ef1b6 of _0x4eab2f){const _0x3aca3a=_0x508c76['insertions'][_0x4ef1b6];for(const _0x58e9e9 of _0x3aca3a){const _0x4d1be2=this['_getVidAttributeName'](_0x58e9e9),_0x306ead=_0x58e9e9['item']['getAttribute'](_0x4d1be2);_0x49dcdb['delete'](_0x306ead),_0x306ead>=this['_startingRevisionId']&&_0x1df5b4['set'](_0x306ead,_0x17df0a['get'](_0x306ead));}}for(const _0x8a86e3 of _0x4eab2f){const _0x25af12=_0x508c76['insertions'][_0x8a86e3],_0x4ed710=this['_getBaseVids'](_0x508c76['deletions'][_0x8a86e3]);let _0x247169=0x0;for(const _0x3d14d9 of _0x25af12){const _0x29235e=this['_getVidAttributeName'](_0x3d14d9),_0x10b1ef=_0x3d14d9['item']['getAttribute'](_0x29235e);if(!_0x1df5b4['has'](_0x10b1ef)&&!_0x29896f['has'](_0x10b1ef)){if(_0x49dcdb['has'](_0x10b1ef))_0x247169++;else{if(_0x10b1ef!=_0x4ed710[_0x247169]){const _0x19a6a3=_0x17df0a['get'](_0x10b1ef)||_0x17df0a['get'](_0x4ed710[_0x247169]);for(;_0x10b1ef!=_0x4ed710[_0x247169];)_0x49dcdb['has'](_0x4ed710[_0x247169])||(_0x29896f['set'](_0x4ed710[_0x247169],_0x19a6a3),_0x17df0a['set'](_0x4ed710[_0x247169],_0x19a6a3)),_0x247169++;}_0x247169++;}}}}for(const _0x4735bf of _0x4eab2f){const _0x20a9c2=_0x508c76['insertions'][_0x4735bf];for(const _0x458ddb of _0x20a9c2){const _0x5f24fb=this['_getVidAttributeName'](_0x458ddb),_0x36fc6a=_0x458ddb['item']['getAttribute'](_0x5f24fb);if(_0x29896f['has'](_0x36fc6a)){const _0x2c8032=_0x29896f['get'](_0x36fc6a);_0x49dcdb['has'](_0x36fc6a)||_0x49dcdb['set'](_0x36fc6a,{..._0x2c8032}),_0x1df5b4['set'](_0x36fc6a,{..._0x2c8032});}}}for(const _0x102345 of _0x49dcdb['keys']())_0x102345>=this['_startingRevisionId']&&_0x49dcdb['delete'](_0x102345);const _0x4effa7=new Map();for(const _0x33dc21 of _0x4eab2f){let _0x217a86=_0x508c76['insertions'][_0x33dc21];for(const _0x2e4c03 of _0x217a86)if(_0x2e4c03['item']['is']('element','tableCell')){const _0x4dd517=this['_getVidAttributeName'](_0x2e4c03),_0x569ce4=_0x2e4c03['item']['getAttribute'](_0x4dd517);if(_0x1df5b4['has'](_0x569ce4)){const _0x2e5825=_0x2e4c03['item']['parent']['parent']['getAttribute']('vid_start'),_0x3b011b=_0x4effa7['get'](_0x2e5825)||new Set();_0x3b011b['add'](_0x1df5b4['get'](_0x569ce4)['userId']),_0x4effa7['set'](_0x2e5825,_0x3b011b);}}_0x217a86=_0x508c76['deletions'][_0x33dc21];for(const _0x36e59d of _0x217a86)if(_0x36e59d['item']['is']('element','tableCell')){const _0x1e698f=this['_getVidAttributeName'](_0x36e59d),_0x2e9bf1=_0x36e59d['item']['getAttribute'](_0x1e698f);if(_0x49dcdb['has'](_0x2e9bf1)){const _0xe008d4=_0x36e59d['item']['parent']['parent']['getAttribute']('vid_start'),_0x436cc2=_0x4effa7['get'](_0xe008d4)||new Set();_0x436cc2['add'](_0x49dcdb['get'](_0x2e9bf1)['userId']),_0x4effa7['set'](_0xe008d4,_0x436cc2);}}for(const _0x6fdca of _0x4effa7['keys']())(_0x1df5b4['has'](_0x6fdca)||_0x49dcdb['has'](_0x6fdca))&&_0x4effa7['delete'](_0x6fdca);}for(const _0x4fcad3 of _0x4eab2f){const _0x204303=_0x508c76['insertions'][_0x4fcad3];let _0x945c66=null,_0x498143=null;for(const _0x3da5bb of _0x204303){const _0x1d6562=this['_getVidAttributeName'](_0x3da5bb),_0xe7ef39=_0x3da5bb['item']['getAttribute'](_0x1d6562),_0x5c4ac9=_0x4effa7['get'](_0xe7ef39);_0x5c4ac9&&'elementStart'==_0x3da5bb['type']&&(_0x945c66=Array['from'](_0x5c4ac9)[0x0],_0x498143=_0x3da5bb['item']['getAttribute']('vid_end')),_0x945c66&&(_0x49dcdb['set'](_0xe7ef39,{'userId':_0x945c66}),_0x1df5b4['set'](_0xe7ef39,{'userId':_0x945c66})),_0xe7ef39==_0x498143&&(_0x945c66=null,_0x498143=null);}}const _0x573d26={},_0x582696=new Set();for(const _0x3ab08c of _0x4eab2f){const _0x33ffec=_0x17e2b7['deletions'][_0x3ab08c],_0x2396d0=_0x17e2b7['insertions'][_0x3ab08c];for(const {userId:_0x286c56}of this['_touchedMarkers']['values']())null!==_0x286c56&&_0x582696['add'](_0x286c56);for(const {userId:_0x42233d}of this['_touchedRoots']['values']())null!==_0x42233d&&_0x582696['add'](_0x42233d);this['_markChanges'](_0x2396d0,_0x508c76['insertions'][_0x3ab08c],_0x1df5b4,'insertion',_0x582696),this['_markChanges'](_0x33ffec,_0x508c76['deletions'][_0x3ab08c],_0x49dcdb,'deletion',_0x582696),_0x573d26[_0x3ab08c]={'insertions':this['_prepareViewToSave'](_0x2396d0),'deletions':this['_prepareViewToSave'](_0x33ffec),'attachChange':this['_touchedRoots']['get'](_0x3ab08c)||null,'attributesBefore':_0x1f0012(this['_baseRootsAttributes']['get'](_0x3ab08c))||{},'attributesAfter':_0x1f0012(this['_diffRootsAttributes']['get'](_0x3ab08c))};}return{'diffData':_0x573d26,'authorsIds':Array['from'](_0x582696)};}['_processRootBeforeSave'](_0x5fda6f){for(const [,_0x556b44]of _0x5fda6f['markers']){const _0x4eab2e=_0x556b44['start']['getAncestors']()['filter'](_0x554e87=>'tableCell'==_0x554e87['name']);for(const _0xcee586 of _0x4eab2e)0x1==_0xcee586['childCount']&&_0xcee586['getChild'](0x0)['is']('element','paragraph')&&_0xcee586['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x1c86c9){this['_processRootBeforeSave'](_0x1c86c9);const _0x481f58=this['editor']['data']['toView'](_0x1c86c9,{}),_0x3a3dc0=Array['from'](_0x481f58['getChildren']())['map'](_0x286da8=>this['_getViewJson'](_0x286da8));return JSON['stringify'](_0x3a3dc0);}['_getViewJson'](_0x277175){if(_0x277175['is']('$text'))return _0x277175['data'];{const _0x383666=_0x277175;return{'type':Object['keys'](C)['find'](_0x1b1848=>_0x277175 instanceof C[_0x1b1848]),'name':_0x383666['name'],'attributes':Array['from'](_0x383666['getAttributes']()),'children':Array['from'](_0x383666['getChildren']())['map'](_0x14ddfd=>this['_getViewJson'](_0x14ddfd))};}}['_markChanges'](_0x93d15c,_0x37a303,_0x3f89d7,_0x1b29b1,_0xfbe048){let _0x2a340a=null,_0x1f64ce=null,_0x540175=0x0;const _0x28675c=this['editor']['model'];for(let _0x2baa8c=0x0;_0x2baa8c<_0x37a303['length'];_0x2baa8c++){const _0x52a127=this['_getVidAttributeName'](_0x37a303[_0x2baa8c]),_0x348da9=_0x37a303[_0x2baa8c]['item']['getAttribute'](_0x52a127),_0x2962d7=_0x3f89d7['get'](_0x348da9),_0x3159cc=_0x2baa8c==_0x37a303['length']-0x1;(!_0x2a340a&&_0x2962d7&&(_0x2a340a=_0x2962d7,_0x1f64ce=_0x37a303[_0x2baa8c]),_0x2a340a&&(!_0x2962d7||_0x2962d7['userId']!=_0x2a340a['userId']))&&(_0x1abd1a(_0x2962d7,J(_0x1f64ce,_0x93d15c,_0x28675c),J(_0x37a303[_0x2baa8c],_0x93d15c,_0x28675c)),_0x2a340a=_0x2962d7||null,_0x1f64ce=_0x2962d7?_0x37a303[_0x2baa8c]:null),_0x2a340a&&_0x3159cc&&_0x1abd1a(_0x2962d7,J(_0x1f64ce,_0x93d15c,_0x28675c),q(_0x37a303[_0x2baa8c],_0x93d15c,_0x28675c));}function _0x1abd1a(_0x36377a,_0x5293c6,_0x1aa64e){const _0x3a2985=_0x2a340a['userId'],_0x35b08c='revision:'+_0x1b29b1+':'+_0x3a2985+':'+_0x540175++,_0x2e1514=_0x28675c['createRange'](_0x5293c6,_0x1aa64e);_0x93d15c['markers']['set'](_0x35b08c,_0x2e1514),null!==_0x3a2985&&_0xfbe048['add'](_0x3a2985);}}['_getVidAttributeName'](_0x278700){switch(_0x278700['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x2ba85c,_0x14d1df){_0x2ba85c['baseVersion']=null;for(const _0x3403bd in _0x2ba85c){const _0x21d50a=_0x2ba85c[_0x3403bd];if(_0x21d50a instanceof gt){const _0x16ff02=_0x14d1df['get'](_0x21d50a['root']['rootName']);_0x2ba85c[_0x3403bd]=this['_fixPosition'](_0x21d50a,_0x16ff02);}if(_0x21d50a instanceof vt){const _0x2869fe=_0x14d1df['get'](_0x21d50a['root']['rootName']);_0x2ba85c[_0x3403bd]=this['_fixRange'](_0x21d50a,_0x2869fe);}'root'===_0x3403bd&&(_0x2ba85c['root']=_0x14d1df['get'](_0x2ba85c['root']['rootName']));}}['_fixRange'](_0x26b95f,_0x4142d9){return this['editor']['model']['createRange'](this['_fixPosition'](_0x26b95f['start'],_0x4142d9),this['_fixPosition'](_0x26b95f['end'],_0x4142d9));}['_fixPosition'](_0x5a1035,_0xfc3a7a){return this['editor']['model']['createPositionFromPath'](_0xfc3a7a,_0x5a1035['path'],_0x5a1035['stickiness']);}['_handleInsertOperation'](_0x206367){const _0x1bfb1c=this['_idsRoots']['get'](_0x206367['position']['root']['rootName']),_0x36752c=this['_fixPosition'](_0x206367['position'],_0x1bfb1c),_0x5e916f=null===_0x206367['_authorId']?null:_0x206367['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x30ceea=_0x36752c['parent'],_0x421849=this['_revisionId'],_0x14a05f=[];for(const _0x229acb of _0x206367['nodes'])if(_0x229acb['is']('element'))_0x14a05f['push'](this['_makeIdsRoot'](_0x229acb));else{for(let _0x2fa21a=0x0;_0x2fa21a<_0x229acb['offsetSize'];_0x2fa21a++)_0x14a05f['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x38da61=this['_revisionId'];for(let _0x6ad4c=_0x421849;_0x6ad4c<_0x38da61;_0x6ad4c++)this['_touched']['set'](_0x6ad4c,{'userId':_0x5e916f});_0x30ceea['_insertChild'](_0x36752c['offset'],_0x14a05f);}['_handleMoveOperation'](_0x4fa2b2){(_0x4fa2b2=this['_cloneOperation'](_0x4fa2b2,this['_idsRoots']))['_execute']();const _0x31d863=null===_0x4fa2b2['_authorId']?null:_0x4fa2b2['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1d1706=_0x4fa2b2['getMovedRangeStart'](),_0x2e1caf=_0x1d1706['parent'],_0x81788=_0x1d1706['offset'];!function _0x122af4(_0x5b7ec5,_0x468a93,_0x25dddf,_0x4539fd){for(let _0x4c21cc=_0x25dddf;_0x4c21cc<_0x4539fd;_0x4c21cc++){const _0x21699d=_0x468a93['getChild'](_0x4c21cc);_0x21699d['is']('element','$text')?_0x5b7ec5['set'](_0x21699d['getAttribute']('vid'),{'userId':_0x31d863}):(_0x5b7ec5['set'](_0x21699d['getAttribute']('vid_start'),{'userId':_0x31d863}),_0x122af4(_0x5b7ec5,_0x21699d,0x0,_0x21699d['childCount']),_0x5b7ec5['set'](_0x21699d['getAttribute']('vid_end'),{'userId':_0x31d863}));}}(this['_touched'],_0x2e1caf,_0x81788,_0x81788+_0x4fa2b2['howMany']);}['_handleMergeOperation'](_0x1b734e){const _0x505c22=null===(_0x1b734e=this['_cloneOperation'](_0x1b734e,this['_idsRoots']))['_authorId']?null:_0x1b734e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1c0d90=_0x1b734e['targetPosition']['parent'],_0x3abeea=_0x1b734e['sourcePosition']['parent'],_0xb02088=_0x1c0d90['getAttribute']('vid_end'),_0x14a403=_0x3abeea['getAttribute']('vid_start');_0x1c0d90['_setAttribute']('vid_end',_0x3abeea['getAttribute']('vid_end')),_0x3abeea['_setAttribute']('vid_end',_0xb02088),this['_touched']['set'](_0x14a403,{'userId':_0x505c22}),this['_touched']['set'](_0xb02088,{'userId':_0x505c22}),_0x1b734e['_execute']();}['_handleSplitOperation'](_0x29bbd6){const _0x4bb449=null===(_0x29bbd6=this['_cloneOperation'](_0x29bbd6,this['_idsRoots']))['_authorId']?null:_0x29bbd6['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3a1314=_0x29bbd6['graveyardPosition'],_0x5271ad=_0x29bbd6['splitPosition']['parent'];_0x29bbd6['_execute']();const _0x39c0c2=_0x5271ad['getAttribute']('vid_end'),_0x4f7d59=_0x29bbd6['insertionPosition']['nodeAfter'];if(_0x3a1314){const _0x37e236=_0x4f7d59['getAttribute']('vid_end'),_0x483999=_0x5271ad['getAttribute']('vid_end');_0x5271ad['_setAttribute']('vid_end',_0x37e236),_0x4f7d59['_setAttribute']('vid_end',_0x483999),this['_touched']['set'](_0x5271ad['getAttribute']('vid_end'),{'userId':_0x4bb449}),this['_touched']['set'](_0x4f7d59['getAttribute']('vid_start'),{'userId':_0x4bb449});}else{const _0x1f6724=this['_revisionId']++,_0x4e7b35=this['_revisionId']++;_0x5271ad['_setAttribute']('vid_end',_0x1f6724),_0x4f7d59['_setAttribute']('vid_start',_0x4e7b35),_0x4f7d59['_setAttribute']('vid_end',_0x39c0c2),this['_touched']['set'](_0x1f6724,{'userId':_0x4bb449}),this['_touched']['set'](_0x4e7b35,{'userId':_0x4bb449});}}['_handleMarkerOperation'](_0x10091e){if(!_0x10091e['affectsData'])return;const _0x188b0b=(_0x10091e=this['_cloneOperation'](_0x10091e,this['_diffRoots']))['oldRange']?_0x10091e['oldRange']['root']:null,_0x502983=_0x10091e['newRange']?_0x10091e['newRange']['root']:null;_0x188b0b&&this['_markers']['delete'](_0x10091e['name']),_0x502983&&this['_markers']['set'](_0x10091e['name'],_0x10091e['newRange']['clone']());const _0x28404c=null===_0x10091e['_authorId']?null:_0x10091e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1d5897=_0x10091e['name'];if(!this['_touchedMarkers']['has'](_0x1d5897))return void this['_touchedMarkers']['set'](_0x1d5897,{'range':_0x10091e['oldRange'],'userId':_0x28404c});const _0x38d7d6=this['_touchedMarkers']['get'](_0x1d5897),_0x4a9ab9=_0x38d7d6['range'],_0x586d9c=_0x10091e['newRange'];null==_0x4a9ab9&&null==_0x586d9c||_0x4a9ab9&&_0x586d9c&&_0x4a9ab9['isEqual'](_0x586d9c)?this['_touchedMarkers']['delete'](_0x10091e['name']):_0x38d7d6['userId']=_0x28404c;}['_handleRootOperation'](_0xdb4b20,_0x4dc17b){this['_diffRoots']['has'](_0xdb4b20['rootName'])?this['_diffRoots']['get'](_0xdb4b20['rootName'])['_isAttached']=_0xdb4b20['isAdd']:(this['_diffRoots']['set'](_0xdb4b20['rootName'],B(_0xdb4b20['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0xdb4b20['rootName'],{}),_0x4dc17b&&this['_idsRoots']['set'](_0xdb4b20['rootName'],B(_0xdb4b20['rootName'],!0x0)));const _0x5232f9=null===_0xdb4b20['_authorId']?null:_0xdb4b20['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2e391=this['_touchedRoots']['get'](_0xdb4b20['rootName']);_0x2e391&&_0x2e391['userId']===_0x5232f9?this['_touchedRoots']['delete'](_0xdb4b20['rootName']):this['_touchedRoots']['set'](_0xdb4b20['rootName'],{'userId':_0x5232f9,'isAttached':_0xdb4b20['isAdd']});}['_handleRootAttributeOperation'](_0x2c1153){const _0x12f5b6=this['_diffRootsAttributes']['get'](_0x2c1153['root']['rootName']);null===_0x2c1153['newValue']?delete _0x12f5b6[_0x2c1153['key']]:_0x12f5b6[_0x2c1153['key']]=_0x2c1153['newValue'];}}function F(_0xab41b3){const _0x4ee080=B(_0xab41b3['rootName'],_0xab41b3['isAttached']());for(const _0x1a74d9 of _0xab41b3['getChildren']()){const _0x1531e7=_0x1a74d9['_clone'](!0x0);_0x4ee080['_appendChild'](_0x1531e7);}return _0x4ee080;}function B(_0x4faf48,_0x4ca2ac=!0x0){const _0x4e5890=new wt();return _0x4e5890['rootName']=_0x4faf48,_0x4e5890['_isAttached']=_0x4ca2ac,_0x4e5890['isAttached']=()=>_0x4e5890['_isAttached'],_0x4e5890;}function J(_0x65f063,_0x26525f,_0x3193ad){const _0x4061f0='elementEnd'==_0x65f063['type']?_0x3193ad['createPositionAt'](_0x65f063['item'],'end'):_0x3193ad['createPositionBefore'](_0x65f063['item']);return _0x3193ad['createPositionFromPath'](_0x26525f,_0x4061f0['path'],_0x4061f0['stickiness']);}function q(_0x4dabab,_0x449eb5,_0x28ef4f){const _0xe41102='elementStart'==_0x4dabab['type']?_0x28ef4f['createPositionAt'](_0x4dabab['item'],0x0):_0x28ef4f['createPositionAfter'](_0x4dabab['item']);return _0x28ef4f['createPositionFromPath'](_0x449eb5,_0xe41102['path'],_0xe41102['stickiness']);}class ns extends _0x456365{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x3d3fed,_0x412b5f){super(_0x3d3fed),this['focusTracker']=new _0x1f06cb(),this['keystrokes']=new _0x369806(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x412b5f),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),ts(this);}['render'](){super['render'](),_0x1610bc({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x415e10=_0x4809a7=>_0x4809a7['stopPropagation']();this['keystrokes']['set']('arrowright',_0x415e10),this['keystrokes']['set']('arrowleft',_0x415e10),this['keystrokes']['set']('arrowup',_0x415e10),this['keystrokes']['set']('arrowdown',_0x415e10);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x2644b8){this['revisionNameInputView']['fieldView']['element']['value']=_0x2644b8['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x2c989a){const _0x22df38=new at(this['locale'],_0x31c3a1),_0x33305d=_0x22df38['fieldView'];_0x33305d['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x2f1c20=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x2c989a&&(_0x2f1c20+='\x20('+R(this['locale'],'optional')+')'),(_0x22df38['label']=_0x2f1c20,_0x33305d['on']('input',()=>{this['revisionNameInputValue']=_0x33305d['element']['value']['trim']();}),_0x22df38);}}class u extends _0x3aa790{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x5c9c1d=this['editor'],_0xfef142=_0x5c9c1d['plugins']['get']('RevisionTracker');_0x5c9c1d['ui']['componentFactory']['add']('revisionHistory',_0x4ed16b=>{const _0x514b4a=_0x1aa18a(_0x4ed16b),_0x594287=_0x514b4a['panelView']['children'],_0x2fc8db=new te(_0x4ed16b),_0x55114b=new _0xaa5e4f(_0x4ed16b),_0x28409f=new _0x644400(_0x4ed16b),_0x318d99=new _0xaa5e4f(_0x4ed16b),_0x515be4=new _0x644400(_0x4ed16b);return _0x514b4a['bind']('isEnabled')['to'](_0xfef142,'isReady',_0xfef142,'isEnabled',_0x5c9c1d,'isReadOnly',(_0x4f0923,_0x4acaa3,_0x55df83)=>_0x4f0923&&_0x4acaa3&&!_0x55df83),_0x514b4a['buttonView']['set']({'icon':_0x162832['history'],'label':R(_0x4ed16b,'Revision\x20history'),'tooltip':!0x0}),_0x28409f['set']({'label':R(_0x4ed16b,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x28409f['bind']('isEnabled')['to'](_0xfef142,'isReady',_0xfef142,'isEnabled',_0x5c9c1d,'isReadOnly',(_0x2fd883,_0x313da1,_0x57fa9f)=>_0x2fd883&&_0x313da1&&!_0x57fa9f),_0x28409f['on']('execute',()=>this['_showDialog']()),_0x515be4['set']({'label':R(_0x4ed16b,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x515be4['bind']('isEnabled')['to'](_0xfef142,'isReady',_0x5c9c1d,'isReadOnly',(_0x4f948b,_0x508090)=>_0x4f948b&&!_0x508090),_0x515be4['on']('execute',()=>{_0x5c9c1d['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x514b4a['isOpen']=!0x1,_0x5c9c1d['editing']['view']['focus']();}),_0x55114b['children']['add'](_0x28409f),_0x318d99['children']['add'](_0x515be4),_0x2fc8db['role']='menu',_0x2fc8db['items']['addMany']([_0x55114b,_0x318d99]),_0x594287['add'](_0x2fc8db),_0x514b4a;}),_0x5c9c1d['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x4b02b3=this['editor'],_0x45dd2c=_0x4b02b3['locale'],_0x4440bc=new _0x1a59f5(_0x45dd2c),_0x1acc70=new _0x21a508(_0x45dd2c);_0x4440bc['buttonView']['set']({'icon':_0x162832['history'],'label':R(_0x45dd2c,'Revision\x20history')});const _0x41d7a5=new _0x34e5ad(_0x45dd2c,_0x4440bc),_0x194499=new _0x5e5102(_0x45dd2c);_0x194499['set']({'label':R(_0x45dd2c,'Save\x20current\x20revision')}),_0x194499['delegate']('execute')['to'](_0x4440bc),_0x194499['on']('execute',()=>{this['_showDialog']();}),_0x41d7a5['children']['add'](_0x194499),_0x1acc70['items']['add'](_0x41d7a5);const _0x1871cb=new _0x34e5ad(_0x45dd2c,_0x4440bc),_0x11e255=new _0x5e5102(_0x45dd2c);return _0x11e255['set']({'label':R(_0x45dd2c,'Open\x20revision\x20history')}),_0x11e255['delegate']('execute')['to'](_0x4440bc),_0x11e255['on']('execute',()=>{_0x4b02b3['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x1871cb['children']['add'](_0x11e255),_0x1acc70['items']['add'](_0x1871cb),_0x4440bc['panelView']['children']['add'](_0x1acc70),_0x4440bc;}['_showDialog'](){const _0x35f46b=this['editor'],_0x17b806=_0x35f46b['locale'],_0x4e6218=_0x35f46b['plugins']['get']('Dialog'),_0x45dfb2=_0x35f46b['plugins']['get']('RevisionTracker');function _0x3eff83(_0x37fb2d){_0x35f46b['config']['get']('revisionHistory.requireRevisionName')&&''===_0x37fb2d['revisionName']?_0x37fb2d['revisionNameInputView']['errorText']=R(_0x17b806,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x35f46b['plugins']['get'](l)['saveRevision']({'name':_0x37fb2d['revisionName']}),_0x4e6218['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x3eff83(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x4e6218['show']({'id':'revisionSave','title':R(_0x17b806,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x35f46b['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x4e6218['hide']()},{'label':R(_0x35f46b['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x445139){_0x445139['bind']('isEnabled')['to'](_0x45dfb2,'isReady',_0x45dfb2,'isEnabled',_0x35f46b,'isReadOnly',(_0x55da30,_0x32103a,_0x21794f)=>_0x55da30&&_0x32103a&&!_0x21794f);},'onExecute':()=>_0x3eff83(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0xfda76b=this['editor'],_0x5c6e96=_0xfda76b['locale'];this['_saveRevisionFormView']=new ns(_0x5c6e96,_0xfda76b['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Y extends _0x456365{['changeId'];['_model'];constructor(_0x73af94,_0x451ef2){super(_0x73af94),this['_model']=_0x451ef2,this['changeId']=_0x451ef2['id'];const _0x4e68e2=this['bindTemplate'],_0x3f41ac=R(_0x73af94,_0x451ef2['data']['isSuggestion']?'Suggested\x20by':'add'==_0x451ef2['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x451ef2['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x4e68e2['to']('type',_0x4f289c=>'ck-revision-change__'+_0x4f289c)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x3f41ac}]},{'text':'\x20'+_0x451ef2['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x544007(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x21ff93){super(),this['id']=_0x21ff93['id']||_0x202f37(),this['author']=_0x21ff93['author'],this['type']=_0x21ff93['type'],this['data']=_0x21ff93['data']||{},this['rootName']=_0x21ff93['rootName'],this['set']('createdAt',_0x21ff93['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(_0x437a04,_0x29ffe6){this['newRevisionId']=_0x437a04,this['oldRevisionId']=_0x29ffe6,this['changes']=new _0x2ea578();}['_setChanges'](_0x4c2fde){for(const _0x12a08a of _0x4c2fde)this['changes']['add'](_0x12a08a);}}const Z={'c':_0x5db352,'a':_0x155cb1,'e':_0x132f51,'r':_0x3a6d20,'u':_0x29a5ef};class d extends _0x3aa790{['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[_0x360c10,_0x26bf31,j];}constructor(_0x28b60d){super(_0x28b60d),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',(_0x32041d,_0xe74fe5,_0x59ff09)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x439de8=>{for(const _0x21e860 of this['editor']['editing']['view']['document']['roots'])_0x59ff09?_0x439de8['removeClass']('ck-editor__editable__overlay',_0x21e860):_0x439de8['addClass']('ck-editor__editable__overlay',_0x21e860);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x343212=>null!==_0x343212),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x143b3f,_0x2cc52c,_0x10b4f2)=>_0x143b3f&&_0x10b4f2?_0x2cc52c['changes']['getIndex'](_0x10b4f2):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x2a2a74,_0x2b1c7a)=>_0x2a2a74?_0x2b1c7a['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x26bf31);}['init'](){const _0x26972c=this['editor'],_0x4985f4=new bt(_0x26972c,{'direction':'backward'}),_0xea5cd2=new bt(_0x26972c,{'direction':'forward'});(_0x26972c['commands']['add']('showPreviousChange',_0x4985f4),_0x26972c['commands']['add']('showNextChange',_0xea5cd2),_0x26972c['commands']['add']('restoreRevision',new yt(_0x26972c)),this['on']('change:numberOfChanges',()=>{_0x4985f4['refresh'](),_0xea5cd2['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x26972c['enableReadOnlyMode']('revision-viewer'),_0x26972c['plugins']['has']('WidgetToolbarRepository'))&&_0x26972c['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x291da6){await this['loadRevisionData'](_0x291da6);const _0x17eb6a={};for(const _0x482e74 in _0x291da6['diffData']){if(_0x291da6['diffData'][_0x482e74]['attachChange']&&!_0x291da6['diffData'][_0x482e74]['attachChange']['isAttached'])continue;const _0x19e3e0=this['_removeRevisionMarkers'](JSON['parse'](_0x291da6['diffData'][_0x482e74]['insertions'])),_0x3ed4ef=this['editor']['editing']['view']['document'],_0x234233=new _0x4d810b(_0x3ed4ef,_0x19e3e0['map'](_0x396272=>this['_getViewObj'](_0x396272)));this['editor']['data']['processor']['useFillerType']('marked'),_0x17eb6a[_0x482e74]=this['editor']['data']['processor']['toData'](_0x234233),this['editor']['data']['processor']['useFillerType']('default');}return _0x17eb6a;}async['getRevisionRootsAttributes'](_0xa32a47){await this['loadRevisionData'](_0xa32a47);const _0x2f3e83={};for(const _0x3c2699 in _0xa32a47['diffData'])_0xa32a47['diffData'][_0x3c2699]['attachChange']&&!_0xa32a47['diffData'][_0x3c2699]['attachChange']['isAttached']||(_0x2f3e83[_0x3c2699]=_0xa32a47['diffData'][_0x3c2699]['attributesAfter']||{});return _0x2f3e83;}['_removeRevisionMarkers'](_0x5dc638){return(_0x5dc638=_0x5dc638['filter'](_0x58ce5c=>!_0x58ce5c['name']||'revision-start'!==_0x58ce5c['name']&&'revision-end'!==_0x58ce5c['name']))['forEach'](_0x4d1a62=>{'string'!=typeof _0x4d1a62&&(_0x4d1a62['children']=this['_removeRevisionMarkers'](_0x4d1a62['children']),_0x4d1a62['attributes']=_0x4d1a62['attributes']['filter'](_0x3e366f=>!_0x3e366f[0x0]['startsWith']('data-revision-')));}),_0x5dc638;}async['compare'](_0x4c8bfd,_0x54c9cd,_0x15c395=!0x1){if(!this['isEnabled'])return;const _0xafaf00=this['diff'],_0x5c5720=this['repository'],_0x52ded3='string'==typeof _0x4c8bfd?_0x5c5720['getRevision'](_0x4c8bfd):_0x4c8bfd,_0x560ab5='string'==typeof _0x54c9cd?_0x5c5720['getRevision'](_0x54c9cd):_0x54c9cd,_0x21a57d=_0x52ded3['id'],_0x51dffc=_0x560ab5?_0x560ab5['id']:null;if(!_0x15c395&&this['diff']&&this['diff']['newRevisionId']===_0x21a57d&&this['diff']['oldRevisionId']===_0x51dffc)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x21a57d,_0x51dffc);const _0xe5353c=this['_getRevisionsRange'](_0x52ded3,_0x560ab5,!0x0)['map'](_0x3f0276=>this['loadRevisionData'](_0x3f0276));return _0xe5353c['push'](new Promise(_0x183e7a=>{setTimeout(_0x183e7a,0x14);})),Promise['all'](_0xe5353c)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x3269b1=this['_getDiff'](_0x21a57d,_0x51dffc);for(const _0x22607c of _0x3269b1['changes'])this['_changeIdToChange']['set'](_0x22607c['id'],_0x22607c);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x41f5d5=>{for(const _0x3b0576 of this['editor']['model']['document']['getRootNames']())_0x41f5d5['detachRoot'](_0x3b0576);for(const _0x5685ba of Object['keys'](_0x3269b1['model'])){const _0x358b69=_0x41f5d5['addRoot'](_0x5685ba);for(const _0x427e8b of Object['keys'](_0x3269b1['attributes'][_0x5685ba]))_0x41f5d5['setAttribute'](_0x427e8b,_0x3269b1['attributes'][_0x5685ba][_0x427e8b],_0x358b69);_0x41f5d5['insert'](_0x3269b1['model'][_0x5685ba],_0x358b69,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x3269b1['changes'])),this['isReady']=!0x0;})['catch'](_0x485232=>{console['error'](_0x485232),this['_cleanUp'](),_0xafaf00&&(this['diff']=_0xafaf00),this['isReady']=!0x0;});}['addRevisionData'](_0xa050d8,_0x37b173){const _0x43a607=this['repository']['createRevision'](_0xa050d8);return _0x43a607['on']('_update',(_0x3d54c3,_0x3aeafa,_0x231758)=>_0x37b173(_0x3aeafa,_0x231758,_0x43a607)),this['repository']['addRevision'](_0x43a607),_0x43a607;}['loadRevisionData'](_0x3b997f){if(!_0x3b997f||_0x3b997f['diffData'])return Promise['resolve']();{const _0x382eb8=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x382eb8,'revisionId':_0x3b997f['id']})['then'](_0x5794d2=>{_0x3b997f['_update']({'diffData':_0x5794d2['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},_0x2bd7bc=>{for(const _0x6726fb of this['editor']['model']['document']['getRootNames']())_0x2bd7bc['detachRoot'](_0x6726fb);});}['_sortAndFilterDiffChanges'](_0x1c376f){const _0xe4ebe8=[],_0x2494c7=new Map();for(const _0x5896e9 of this['editor']['model']['document']['getRootNames']()){const _0x445089=this['editor']['editing']['view']['getDomRoot'](_0x5896e9);if(!_0x445089)continue;const _0x201e8b=_0x445089['getClientRects']()['item'](0x0);_0x201e8b&&(_0xe4ebe8['push'](_0x5896e9),_0x2494c7['set'](_0x5896e9,_0x201e8b));}return _0xe4ebe8['sort']((_0x35afff,_0x5ab0f1)=>{const _0x12cd5c=_0x2494c7['get'](_0x35afff),_0x5b7304=_0x2494c7['get'](_0x5ab0f1);return _0x12cd5c['y']-_0x5b7304['y']||_0x12cd5c['x']-_0x5b7304['x'];}),(_0x1c376f=_0x1c376f['filter'](_0x31667b=>_0xe4ebe8['includes'](_0x31667b['rootName'])))['sort']((_0x22a1b0,_0x1bd697)=>_0xe4ebe8['indexOf'](_0x22a1b0['rootName'])-_0xe4ebe8['indexOf'](_0x1bd697['rootName'])),_0x1c376f;}['_makeTape'](_0x313a36){const _0x16a470=Array['from'](_0x313a36['markers'])['filter'](([_0x2f2c9c,_0x40cebd])=>_0x2f2c9c['startsWith']('revision:')&&!_0x40cebd['isCollapsed']),_0x4638ff=Array['from'](this['editor']['model']['createRangeIn'](_0x313a36)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x16a470['length'])for(const _0x2d88da of _0x4638ff){const [_0xcf68bf,_0x1282d6]=_0x16a470[0x0],[,_0x27c501,_0xc04f2]=_0xcf68bf['split'](':');if(_0x1282d6['end']['isEqual'](_0x2d88da['nextPosition'])&&_0x16a470['shift'](),(_0x2d88da['previousPosition']['isEqual'](_0x1282d6['start'])||_0x2d88da['previousPosition']['isAfter'](_0x1282d6['start']))&&('insertion'==_0x27c501?_0x2d88da['isAdded']={'userId':_0xc04f2}:'deletion'==_0x27c501&&(_0x2d88da['isRemoved']={'userId':_0xc04f2})),0x0==_0x16a470['length'])break;}return _0x4638ff;}['_refreshStartEndIndex'](_0x11f563){const _0x13b329=new Map();for(let _0x4647c1=0x0;_0x4647c1<_0x11f563['length'];_0x4647c1++)'text'===_0x11f563[_0x4647c1]['type']?(_0x11f563[_0x4647c1]['item']['startIndex']=_0x4647c1,_0x11f563[_0x4647c1]['item']['endIndex']=_0x4647c1):('elementStart'===_0x11f563[_0x4647c1]['type']?_0x11f563[_0x4647c1]['item']['startIndex']=_0x4647c1:'elementEnd'===_0x11f563[_0x4647c1]['type']&&(_0x11f563[_0x4647c1]['item']['endIndex']=_0x4647c1),_0x13b329['set'](_0x11f563[_0x4647c1]['id'],_0x4647c1));for(const _0x5d9a44 of _0x13b329['values']())'elementStart'===_0x11f563[_0x5d9a44]['type']?_0x11f563[_0x5d9a44]['item']['endIndex']=_0x13b329['get'](_0x11f563[_0x5d9a44]['pairId']):'elementEnd'===_0x11f563[_0x5d9a44]['type']&&(_0x11f563[_0x5d9a44]['item']['startIndex']=_0x13b329['get'](_0x11f563[_0x5d9a44]['pairId']));}['_processTape'](_0x39b88c){for(let _0x1cdd95=0x0;_0x1cdd95<_0x39b88c['length'];_0x1cdd95++){if('elementStart'===_0x39b88c[_0x1cdd95]['type'])_0x39b88c[_0x1cdd95]['item']['startIndex']=_0x1cdd95;else{if('elementEnd'===_0x39b88c[_0x1cdd95]['type']){_0x39b88c[_0x1cdd95]['item']['endIndex']=_0x1cdd95;const _0x74aa5c=_0x39b88c[_0x1cdd95]['item']['startIndex'];_0x39b88c[_0x74aa5c]['pairId']=_0x39b88c[_0x1cdd95]['id'],_0x39b88c[_0x1cdd95]['pairId']=_0x39b88c[_0x74aa5c]['id'];}else _0x39b88c[_0x1cdd95]['item']['startIndex']=_0x1cdd95,_0x39b88c[_0x1cdd95]['item']['endIndex']=_0x1cdd95,_0x39b88c[_0x1cdd95]['pairId']=null;}_0x39b88c[_0x1cdd95]['markersStart']||(_0x39b88c[_0x1cdd95]['markersStart']=[],_0x39b88c[_0x1cdd95]['markersEnd']=[]);}}['_markInsertions'](_0x8f5e18,_0x1fd395){const _0x288168=_0x8f5e18['filter'](_0x237ff5=>!_0x237ff5['isAdded']);for(let _0x38e2a7=0x0;_0x38e2a7<_0x1fd395['length'];_0x38e2a7++)_0x1fd395[_0x38e2a7]['isAdded']&&(_0x288168[_0x38e2a7]['isAdded']=_0x1fd395[_0x38e2a7]['isAdded']);}['_makeModelFromViewString'](_0x2cfc42){const _0x24fb0e=JSON['parse'](_0x2cfc42),_0xf8de20=this['editor']['editing']['view']['document'],_0x8a1dee=new _0x4d810b(_0xf8de20,_0x24fb0e['map'](_0x25c8df=>this['_getViewObj'](_0x25c8df)));return this['editor']['data']['toModel'](_0x8a1dee);}['_getViewObj'](_0xabd4c3){const _0x35df2b=this['editor']['editing']['view']['document'];if('string'==typeof _0xabd4c3)return new _0x20f6dc(_0x35df2b,_0xabd4c3);{const _0xfd2fee=_0xabd4c3['children']['map'](_0x286db8=>this['_getViewObj'](_0x286db8));return new(Z[_0xabd4c3['type']]||_0x1ed3de)(_0x35df2b,_0xabd4c3['name'],_0xabd4c3['attributes'],_0xfd2fee);}}['_getDiff'](_0x41fd16,_0x5c8267=null){const _0x5f2cdb=this['repository']['getRevision'](_0x41fd16),_0x11a2e3=_0x5c8267?this['repository']['getRevision'](_0x5c8267):null,_0xdcc549=this['_getRevisionsRange'](_0x5f2cdb,_0x11a2e3),_0x66f993=_0xdcc549[_0xdcc549['length']-0x1],_0x4fd49c=new Map(),_0x52476c={'model':{},'attributes':{},'changes':[]},_0x110f79=new Set(),_0x2b014b=new Map();for(let _0x376a99=_0xdcc549['length']-0x1;_0x376a99>=0x0;_0x376a99--){const _0x706588=_0xdcc549[_0x376a99];for(const _0xec4245 of Object['keys'](_0x706588['diffData']))if(_0x706588['diffData'][_0xec4245]['attachChange']){const _0x591ae3=_0x706588['diffData'][_0xec4245]['attachChange'];_0x591ae3['isAttached']?(_0x110f79['add'](_0xec4245),_0x2b014b['has'](_0xec4245)&&_0x2b014b['get'](_0xec4245)['userId']==_0x591ae3['userId']?_0x2b014b['delete'](_0xec4245):_0x2b014b['set'](_0xec4245,_0x591ae3)):_0x2b014b['has'](_0xec4245)?(_0x110f79['delete'](_0xec4245),_0x2b014b['delete'](_0xec4245)):(_0x110f79['add'](_0xec4245),_0x2b014b['set'](_0xec4245,_0x591ae3));}else _0x110f79['add'](_0xec4245);}for(const _0x2bfc5a of _0x110f79){const _0x1aca01=_0x2b014b['has'](_0x2bfc5a)&&!_0x2b014b['get'](_0x2bfc5a)['isAttached'];let _0x2aac56=_0x1aca01?_0xdcc549['length']-0x1:0x0;const _0x49d184=_0x1aca01?-0x1:0x1;for(;_0xdcc549[_0x2aac56];){const _0x24c9a7=_0xdcc549[_0x2aac56];if(_0x24c9a7['diffData'][_0x2bfc5a]){const _0x5358b2=_0x1aca01?_0x24c9a7['diffData'][_0x2bfc5a]['attributesBefore']:_0x24c9a7['diffData'][_0x2bfc5a]['attributesAfter'];_0x52476c['attributes'][_0x2bfc5a]=_0x5358b2?_0x1f0012(_0x5358b2):{};break;}_0x2aac56+=_0x49d184;}}for(const _0x542f6e of _0xdcc549){_0x542f6e['model']={};for(const _0x556771 of _0x542f6e['authors'])_0x4fd49c['set'](_0x556771['id'],_0x556771);for(const _0x4d430a of _0x110f79){const _0x1ea870=_0x542f6e['diffData'][_0x4d430a]?_0x542f6e['diffData'][_0x4d430a]['insertions']:'[]',_0x450171=_0x542f6e['diffData'][_0x4d430a]?_0x542f6e['diffData'][_0x4d430a]['deletions']:'[]';_0x542f6e['model'][_0x4d430a]={'insertions':this['_makeModelFromViewString'](_0x1ea870),'deletions':this['_makeModelFromViewString'](_0x450171)};}}for(const _0xa19ccf of _0x110f79){let _0xeae1c1=null,_0x4ba481=0x0;const _0x2d874c=new Map(Array['from'](_0x5f2cdb['model'][_0xa19ccf]['insertions']['markers'])['filter'](([_0x446537])=>!_0x446537['startsWith']('revision:')));let _0x43147b=0x0;for(const _0x2a5278 of _0xdcc549){const _0x32d495=this['_makeTape'](_0x2a5278['model'][_0xa19ccf]['insertions']);_0x2a5278==_0x5f2cdb?(_0xeae1c1=_0x32d495,_0x4ba481=_0xeae1c1['length'],_0xeae1c1['forEach'](_0xa098=>{_0xa098['id']=_0x43147b++;}),this['_processTape'](_0xeae1c1)):this['_markInsertions'](_0xeae1c1,_0x32d495);const _0x444c99=_0xeae1c1['filter'](_0x37d00b=>!_0x37d00b['isAdded'])['map'](_0x1e7fc8=>_0x1e7fc8['id']);let _0x45548b=0x0;const _0x420938=this['_makeTape'](_0x2a5278['model'][_0xa19ccf]['deletions']);_0x420938['forEach'](_0x46ebcb=>{_0x46ebcb['isRemoved']?_0x46ebcb['id']=_0x4ba481++:_0x46ebcb['id']=_0x444c99[_0x45548b++];}),this['_processTape'](_0x420938),this['_setDistance'](_0xeae1c1,'isAdded'),this['_setDistance'](_0x420938,'isRemoved'),_0x2a5278==_0x5f2cdb&&this['_markMarkers'](_0xeae1c1,_0x2d874c),_0xeae1c1=this['_joinTapes'](_0xeae1c1,_0x420938),this['_refreshStartEndIndex'](_0xeae1c1),this['_setDistance'](_0xeae1c1,'isRemoved');}_0xeae1c1=_0xeae1c1['filter'](_0x5f53eb=>!(_0x5f53eb['isAdded']&&_0x5f53eb['isRemoved']));const _0x3df9b6=new Map(_0x66f993['model'][_0xa19ccf]['deletions']['markers']),_0x5833d9=new Set(_0x2d874c['keys']());for(const _0x451719 of _0x3df9b6['keys']())_0x5833d9['delete'](_0x451719);this['_markSuggestions'](_0xeae1c1,_0x5833d9),this['_fixObsoleteTags'](_0xeae1c1),_0xeae1c1=this['_removeMissingPairs'](_0xeae1c1),_0xeae1c1=this['_markMismatchedRemovedTags'](_0xeae1c1),_0xeae1c1=this['_removeUnsupportedChanges'](_0xeae1c1);const {root:_0x1b4f3d,changes:_0x5b6efd}=this['_makeModelFromTape'](_0xeae1c1,_0x4fd49c,_0xa19ccf);_0x52476c['model'][_0xa19ccf]=_0x1b4f3d;const _0x8ccc54=_0x2b014b['get'](_0xa19ccf);if(_0x8ccc54){const _0x7aedf9=_0x4fd49c['get'](_0x8ccc54['userId']),_0x1e15bf=new r({'author':_0x7aedf9,'type':_0x8ccc54['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0xa19ccf});_0x5b6efd['unshift'](_0x1e15bf),_0x52476c['attributes'][_0xa19ccf]['revisionHistoryAttachChange']=_0x1e15bf['id'];}_0x52476c['changes']=_0x52476c['changes']['concat'](_0x5b6efd);}return _0x52476c;}['_markMarkers'](_0x3d1661,_0x3b9658){for(let _0x356a53=0x0;_0x356a53<_0x3d1661['length'];_0x356a53++)for(const [_0x25ed7c,_0x1eec83]of _0x3b9658)_0x1eec83['start']['isEqual'](_0x3d1661[_0x356a53]['previousPosition'])&&_0x3d1661[_0x356a53]['markersStart']['push'](_0x25ed7c),_0x1eec83['end']['isEqual'](_0x3d1661[_0x356a53]['nextPosition'])&&_0x3d1661[_0x356a53]['markersEnd']['push'](_0x25ed7c);}['_joinTapes'](_0x3a8d8b,_0x1aa91f){let _0xe30921=[],_0x59ac01=0x0,_0x352e41=0x0;for(;_0x59ac01<_0x3a8d8b['length']||_0x352e41<_0x1aa91f['length'];){const _0x304d25=_0x3a8d8b[_0x59ac01]||{},_0x5e9a0e=_0x1aa91f[_0x352e41]||{};if(_0x304d25['id']==_0x5e9a0e['id'])_0x59ac01++,_0x352e41++,_0xe30921['push'](_0x304d25);else{if(_0x5e9a0e['isRemoved']&&_0x304d25['isAdded']){const {commonTape:_0x5d0e72,iEnd:_0x322b0a,jEnd:_0x32242d}=this['_threeWayMerge'](_0x3a8d8b,_0x59ac01,_0x1aa91f,_0x352e41);_0xe30921=_0xe30921['concat'](_0x5d0e72),_0x59ac01=_0x322b0a,_0x352e41=_0x32242d;}else _0x5e9a0e['isRemoved']?(_0x352e41++,_0xe30921['push'](_0x5e9a0e)):(_0x59ac01++,_0xe30921['push'](_0x304d25));}}return _0xe30921;}['_markSuggestions'](_0x79e608,_0x3394e0){const _0x51e068=[];for(let _0x1b1e26=0x0;_0x1b1e26<_0x79e608['length'];_0x1b1e26++){for(let _0x46a5e0=0x0;_0x46a5e0<_0x79e608[_0x1b1e26]['markersStart']['length'];_0x46a5e0++){const _0x40aa53=_0x79e608[_0x1b1e26]['markersStart'][_0x46a5e0];if(!_0x3394e0['has'](_0x40aa53))continue;const {group:_0xdf6890,type:_0x241a9a,authorId:_0x173297}=_0x3f6d79(_0x40aa53);'revision-suggestion'!=_0xdf6890||'insertion'!=_0x241a9a&&'deletion'!=_0x241a9a||(_0x51e068['unshift']({'type':_0x241a9a,'name':_0x40aa53,'userId':_0x173297}),_0x79e608[_0x1b1e26]['markersStart']['splice'](_0x46a5e0,0x1),_0x46a5e0--);}_0x2227a7(_0x79e608[_0x1b1e26]);for(let _0x5542a6=0x0;_0x5542a6<_0x79e608[_0x1b1e26]['markersEnd']['length'];_0x5542a6++){const _0x341bce=_0x79e608[_0x1b1e26]['markersEnd'][_0x5542a6];if(!_0x3394e0['has'](_0x341bce))continue;const {group:_0x3cab05,type:_0x5affe4}=_0x3f6d79(_0x341bce);if('revision-suggestion'!=_0x3cab05||'insertion'!=_0x5affe4&&'deletion'!=_0x5affe4)continue;_0x79e608[_0x1b1e26]['markersEnd']['splice'](_0x5542a6,0x1),_0x5542a6--;const _0x316b4a=_0x51e068['findIndex'](_0xb2c1c8=>_0xb2c1c8['name']==_0x341bce);_0x316b4a>-0x1&&_0x51e068['splice'](_0x316b4a,0x1);}}function _0x3f6d79(_0x5cdad7){const _0x37dc9a=_0x5cdad7['split'](':');return{'group':_0x37dc9a[0x0],'type':_0x37dc9a[0x1],'subType':_0x37dc9a['length']>=0x5?_0x37dc9a[0x2]:null,'id':_0x37dc9a['length']<0x5?_0x37dc9a[0x2]:_0x37dc9a[0x3],'authorId':_0x37dc9a['length']<0x5?_0x37dc9a[0x3]:_0x37dc9a[0x4],'markerCount':0x6==_0x37dc9a['length']?_0x37dc9a[0x5]:null};}function _0x2227a7(_0xc69e9d){for(let _0x14534d=0x0;_0x14534d<_0x51e068['length'];_0x14534d++){if(_0xc69e9d['isAdded']&&'insertion'==_0x51e068[_0x14534d]['type'])return _0xc69e9d['isAddSuggestion']=_0x51e068[_0x14534d],void delete _0xc69e9d['isAdded'];if(!_0xc69e9d['isAdded']&&!_0xc69e9d['isRemoved']&&'deletion'==_0x51e068[_0x14534d]['type'])return void(_0xc69e9d['isRemoveSuggestion']=_0x51e068[_0x14534d]);}}}['_setDistance'](_0x3e8df4,_0x367c71){let _0x4cb55f=0x0,_0x5296bd=!0x1;const _0x2d21a2=new Map();for(const _0x146818 of _0x3e8df4)_0x146818[_0x367c71]?_0x5296bd&&(_0x4cb55f++,_0x5296bd=!0x1):(_0x4cb55f++,_0x5296bd=!0x0),_0x2d21a2['set'](_0x146818['id'],_0x4cb55f);for(let _0x2cca57=0x0;_0x2cca57<_0x3e8df4['length'];_0x2cca57++){if('isRemoved'==_0x367c71&&_0x3e8df4[_0x2cca57]['isAdded']||'isAdded'==_0x367c71&&_0x3e8df4[_0x2cca57]['isRemoved'])continue;if('text'==_0x3e8df4[_0x2cca57]['type']){_0x3e8df4[_0x2cca57]['distance']=0x0;continue;}const _0x1f0bdc=_0x2d21a2['get'](_0x3e8df4[_0x2cca57]['pairId']),_0x36ed86=_0x2d21a2['get'](_0x3e8df4[_0x2cca57]['id']);_0x3e8df4[_0x2cca57]['distance']=_0x1f0bdc-_0x36ed86;}}['_getRevisionsRange'](_0x348847,_0x227faf,_0x21c9fa=!0x1){const _0x471999=[];let _0x4f2ad8=this['repository']['getIndex'](_0x348847),_0x1f1941=this['repository']['getIndex'](_0x227faf);for(-0x1==_0x1f1941&&(_0x1f1941=this['repository']['_revisions']['length'],_0x21c9fa=!0x1);_0x4f2ad8<_0x1f1941;)_0x471999['push'](this['repository']['getRevision'](_0x4f2ad8)),_0x4f2ad8++;return _0x21c9fa&&_0x471999['push'](this['repository']['getRevision'](_0x4f2ad8)),_0x471999;}['_threeWayMerge'](_0x8d9919,_0x350044,_0x414eb4,_0x358b07){const _0x48908b=this['editor']['model']['schema'];let _0x481275=_0x350044;for(;_0x8d9919[_0x481275]&&_0x8d9919[_0x481275]['isAdded'];)_0x481275++;let _0x34d7f9=_0x358b07;for(;_0x414eb4[_0x34d7f9]&&_0x414eb4[_0x34d7f9]['isRemoved'];)_0x34d7f9++;_0x5bc217(_0x8d9919,_0x350044,_0x481275),_0x5bc217(_0x414eb4,_0x358b07,_0x34d7f9);const _0x4dfd43=_0x414eb4['slice'](_0x358b07,_0x34d7f9)['concat'](_0x8d9919['slice'](_0x350044,_0x481275));return _0x4dfd43['sort']((_0x1863a6,_0x1676e3)=>_0x1863a6['side']!=_0x1676e3['side']?_0x1863a6['side']-_0x1676e3['side']:_0x1863a6['level']!=_0x1676e3['level']?_0x1863a6['level']-_0x1676e3['level']:_0x1863a6['distance']!=_0x1676e3['distance']?_0x1676e3['distance']-_0x1863a6['distance']:!!_0x1863a6['isAdded']!=!!_0x1676e3['isAdded']?-0x1==_0x1863a6['side']||0x0==_0x1863a6['side']?_0x1863a6['isAdded']?-0x1:0x1:_0x1863a6['isAdded']?0x1:-0x1:_0x1863a6['index']-_0x1676e3['index']),{'commonTape':_0x4dfd43,'iEnd':_0x481275,'jEnd':_0x34d7f9};function _0x5bc217(_0x304787,_0x1832f5,_0x4942f5){let _0x166ad0=-0x1,_0x1268b2=Number['POSITIVE_INFINITY'],_0x12e7e4=!0x0;for(let _0x57cb92=_0x1832f5;_0x57cb92<_0x4942f5;_0x57cb92++)if(_0x48908b['isInline'](_0x304787[_0x57cb92]['item'])||(_0x12e7e4=!0x1),_0x304787[_0x57cb92]['item']['startIndex']<_0x1832f5&&(_0x166ad0=_0x57cb92),_0x304787[_0x57cb92]['item']['endIndex']>=_0x4942f5){_0x1268b2=_0x57cb92;break;}_0x12e7e4&&(_0x166ad0=_0x4942f5-0x1);for(let _0x39b13c=_0x1832f5;_0x39b13c<_0x4942f5;_0x39b13c++)_0x304787[_0x39b13c]['side']=_0x39b13c<=_0x166ad0?-0x1:_0x39b13c<_0x1268b2?0x0:0x1,_0x304787[_0x39b13c]['index']=_0x39b13c;let _0x163127=0x0;for(let _0x3ee8a9=_0x1832f5;_0x3ee8a9<=_0x166ad0;_0x3ee8a9++)0x0==_0x304787[_0x3ee8a9]['distance']?_0x304787[_0x3ee8a9]['level']=_0x163127:(_0x163127++,_0x304787[_0x3ee8a9]['level']=_0x163127,_0x163127++);for(let _0x5b2b87=_0x1832f5;_0x5b2b87<_0x4942f5;_0x5b2b87++)0x0==_0x304787[_0x5b2b87]['side']&&(_0x304787[_0x5b2b87]['level']=_0x163127);_0x163127=0x0;for(let _0x40a2cf=_0x4942f5-0x1;_0x40a2cf>=_0x1268b2;_0x40a2cf--)0x0==_0x304787[_0x40a2cf]['distance']?_0x304787[_0x40a2cf]['level']=_0x163127:(_0x163127--,_0x304787[_0x40a2cf]['level']=_0x163127,_0x163127--);}}['_fixObsoleteTags'](_0x337d94){const _0x56d99a=new Map(),_0x1a69c3=this['editor']['model']['schema'];for(let _0x194c7d=0x1;_0x194c7d<_0x337d94['length'];_0x194c7d++){let _0x203407,_0x340f4b,_0x5b550e;const _0x3accbc=_0x337d94[_0x194c7d],_0x1cbcb9=_0x337d94[_0x194c7d-0x1];if('text'==_0x3accbc['type'])continue;if(_0x3accbc['type']!=_0x1cbcb9['type'])continue;if(!_0x1a69c3['isBlock'](_0x1cbcb9['item'])||_0x1a69c3['isLimit'](_0x1cbcb9['item']))continue;if(!_0x1a69c3['isBlock'](_0x3accbc['item'])||_0x1a69c3['isLimit'](_0x3accbc['item']))continue;if((_0x337d94[_0x194c7d]['isAdded']||_0x337d94[_0x194c7d]['isAddSuggestion'])&&_0x337d94[_0x194c7d-0x1]['isRemoved'])_0x203407=_0x337d94[_0x194c7d],_0x340f4b=_0x337d94[_0x194c7d-0x1],_0x5b550e=_0x194c7d-0x1;else{if(!_0x337d94[_0x194c7d]['isRemoved']||!_0x337d94[_0x194c7d-0x1]['isAdded']&&!_0x337d94[_0x194c7d-0x1]['isAddSuggestion'])continue;_0x203407=_0x337d94[_0x194c7d-0x1],_0x340f4b=_0x337d94[_0x194c7d],_0x5b550e=_0x194c7d;}const _0x2bc200=_0x203407['level']==_0x340f4b['level'],_0x3f5335=Math['abs'](_0x203407['level'])<Math['abs'](_0x340f4b['level'])&&0x0==_0x340f4b['distance'];(_0x2bc200||_0x3f5335)&&(_0x56d99a['set'](_0x340f4b['id'],_0x203407['id']),_0x337d94['splice'](_0x5b550e,0x1),_0x194c7d--,_0x203407['isAdded']=!0x1);}for(let _0x264db4=0x0;_0x264db4<_0x337d94['length'];_0x264db4++)_0x56d99a['has'](_0x337d94[_0x264db4]['pairId'])&&(_0x337d94[_0x264db4]['pairId']=_0x56d99a['get'](_0x337d94[_0x264db4]['pairId']));}['_removeMissingPairs'](_0x3c4d8b){const _0x564eba=new Set(_0x3c4d8b['map'](_0x36bcb5=>_0x36bcb5['id']));for(let _0xfc9f4d=0x0;_0xfc9f4d<_0x3c4d8b['length'];_0xfc9f4d++)_0x564eba['has'](_0x3c4d8b[_0xfc9f4d]['pairId'])||0x0==_0x3c4d8b[_0xfc9f4d]['distance']||(_0x3c4d8b[_0xfc9f4d]['isIncorrect']=!0x0);return _0x3c4d8b['filter'](_0x5fe54d=>!_0x5fe54d['isIncorrect']);}['_markMismatchedRemovedTags'](_0x3601b6){const _0x243cc5=new Set();for(let _0x4d1cfb=0x0;_0x4d1cfb<_0x3601b6['length'];_0x4d1cfb++){if(_0x243cc5['has'](_0x3601b6[_0x4d1cfb]['id'])&&_0x3601b6[_0x4d1cfb]['isRemoved']&&(_0x3601b6[_0x4d1cfb]['isIncorrect']=!0x0),_0x3601b6[_0x4d1cfb]['isIncorrect'])continue;if(0x0==_0x3601b6[_0x4d1cfb]['distance'])continue;if('elementStart'!=_0x3601b6[_0x4d1cfb]['type'])continue;if(null==_0x3601b6[_0x4d1cfb]['pairId'])continue;let _0x1fb912=_0x4d1cfb+0x1,_0x554984=0x0;for(;_0x3601b6[_0x1fb912]['id']!=_0x3601b6[_0x4d1cfb]['pairId'];)'elementStart'==_0x3601b6[_0x1fb912]['type']?_0x554984++:'elementEnd'==_0x3601b6[_0x1fb912]['type']&&_0x554984--,_0x1fb912++;if(0x0!=_0x554984){if(_0x3601b6[_0x4d1cfb]['isRemoved'])_0x3601b6[_0x4d1cfb]['isIncorrect']=!0x0;else{for(;_0x1fb912!=_0x4d1cfb;)_0x3601b6[_0x1fb912]['isRemoved']&&0x0!=_0x3601b6[_0x1fb912]['distance']&&(_0x3601b6[_0x1fb912]['isIncorrect']=!0x0,_0x243cc5['add'](_0x3601b6[_0x1fb912]['pairId'])),_0x1fb912--;}}}return _0x3601b6['filter'](_0x2086a6=>!_0x2086a6['isIncorrect']);}['_removeUnsupportedChanges'](_0x14f146){const _0xeeeca8=this['editor']['model']['schema'];for(let _0x22dccc=0x0;_0x22dccc<_0x14f146['length'];_0x22dccc++){if(!(_0x14f146[_0x22dccc]['isAdded']||_0x14f146[_0x22dccc]['isAddSuggestion']||_0x14f146[_0x22dccc]['isRemoved']||_0x14f146[_0x22dccc]['isRemoveSuggestion']))continue;if(0x0==_0x14f146[_0x22dccc]['distance'])continue;const _0x3c75ea=_0x14f146[_0x22dccc]['item'];_0xeeeca8['isBlock'](_0x3c75ea)||_0xeeeca8['isLimit'](_0x3c75ea)||(_0x14f146[_0x22dccc]['isAdded']&&delete _0x14f146[_0x22dccc]['isAdded'],_0x14f146[_0x22dccc]['isAddSuggestion']&&delete _0x14f146[_0x22dccc]['isAddSuggestion'],_0x14f146[_0x22dccc]['isRemoveSuggestion']&&delete _0x14f146[_0x22dccc]['isRemoveSuggestion'],_0x14f146[_0x22dccc]['isRemoved']&&(_0x14f146[_0x22dccc]['isIncorrect']=!0x0));}return _0x14f146['filter'](_0x38d334=>!_0x38d334['isIncorrect']);}['_makeModelFromTape'](_0x1b0b97,_0x1a1488,_0x1508c9){const _0x137c68=new wt(),_0x4ece20=[],_0x5917f4=new Map(),_0x2fd364=this['editor']['model'],_0x1d780a=_0x2fd364['schema'],_0x3d0b36=[_0x137c68],_0x5d364a={},_0x49c9e9={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x43bb4c=null;const _0x13dbaa=[0x0];for(let _0x2973f3=0x0;_0x2973f3<_0x1b0b97['length'];_0x2973f3++)if('elementStart'===_0x1b0b97[_0x2973f3]['type']){_0x1b0b97[_0x2973f3]['previousPosition']=_0x2fd364['createPositionFromPath'](_0x137c68,_0x13dbaa);const _0x10ccf1=new ft(_0x1b0b97[_0x2973f3]['item']['name'],_0x1b0b97[_0x2973f3]['item']['getAttributes']());_0x3d0b36[0x0]['_appendChild'](_0x10ccf1),_0x13dbaa['push'](0x0),_0x3d0b36['unshift'](_0x10ccf1),_0x1b0b97[_0x2973f3]['nextPosition']=_0x2fd364['createPositionFromPath'](_0x137c68,_0x13dbaa);}else'elementEnd'===_0x1b0b97[_0x2973f3]['type']?(_0x3d0b36['shift'](),_0x1b0b97[_0x2973f3]['previousPosition']=_0x2fd364['createPositionFromPath'](_0x137c68,_0x13dbaa),_0x13dbaa['pop'](),_0x13dbaa[_0x13dbaa['length']-0x1]++,_0x1b0b97[_0x2973f3]['nextPosition']=_0x2fd364['createPositionFromPath'](_0x137c68,_0x13dbaa)):(_0x1b0b97[_0x2973f3]['previousPosition']=_0x2fd364['createPositionFromPath'](_0x137c68,_0x13dbaa),_0x43bb4c?_0x43bb4c['_data']+=_0x1b0b97[_0x2973f3]['item']['data']:_0x43bb4c=new _t(_0x1b0b97[_0x2973f3]['item']['data'],_0x1b0b97[_0x2973f3]['item']['getAttributes']()),_0x1b0b97[_0x2973f3+0x1]&&'text'===_0x1b0b97[_0x2973f3+0x1]['type']&&_0x1d45c8(_0x43bb4c,_0x1b0b97[_0x2973f3+0x1]['item'])||(_0x3d0b36[0x0]['_appendChild'](_0x43bb4c),_0x43bb4c=null),_0x13dbaa[_0x13dbaa['length']-0x1]+=_0x1b0b97[_0x2973f3]['item']['offsetSize'],_0x1b0b97[_0x2973f3]['nextPosition']=_0x2fd364['createPositionFromPath'](_0x137c68,_0x13dbaa));for(let _0x19f3e4=0x0;_0x19f3e4<_0x1b0b97['length'];_0x19f3e4++){const _0x4aae38=_0x1b0b97[_0x19f3e4]['previousPosition'],_0x1b1cf6=_0x1b0b97[_0x19f3e4]['nextPosition'];for(const _0x98e2c7 of _0x1b0b97[_0x19f3e4]['markersStart'])_0x5917f4['set'](_0x98e2c7,{'start':_0x4aae38,'end':null});_0x3277a3('isRemoveSuggestion',_0x19f3e4,_0x4aae38,_0x1b1cf6),_0x3277a3('isAddSuggestion',_0x19f3e4,_0x4aae38,_0x1b1cf6),_0x3277a3('isRemoved',_0x19f3e4,_0x4aae38,_0x1b1cf6),_0x3277a3('isAdded',_0x19f3e4,_0x4aae38,_0x1b1cf6);for(const _0x5668b9 of _0x1b0b97[_0x19f3e4]['markersEnd']){_0x5917f4['get'](_0x5668b9)['end']=_0x1b1cf6;}}for(const [_0x459015,_0x389438]of _0x5917f4){const _0x172454=this['editor']['model']['createRange'](_0x389438['start'],_0x389438['end']);_0x137c68['markers']['set'](_0x459015,_0x172454);}return _0x4ece20['sort']((_0x48bbf7,_0x3241e0)=>{const _0x37dc56=_0x137c68['markers']['get']('revision:'+_0x48bbf7['id']),_0x3aa7a9=_0x137c68['markers']['get']('revision:'+_0x3241e0['id']);return _0x37dc56['start']['isBefore'](_0x3aa7a9['start'])?-0x1:_0x37dc56['start']['isAfter'](_0x3aa7a9['start'])?0x1:_0x37dc56['end']['isBefore'](_0x3aa7a9['end'])?-0x1:_0x37dc56['end']['isAfter'](_0x3aa7a9['end'])?0x1:'add'===_0x48bbf7['type']?-0x1:0x1;}),{'root':_0x137c68,'changes':_0x4ece20};function _0x3277a3(_0x52fc69,_0x472a10,_0x4d02ee,_0x5bca1b){const _0xe95f29=!!_0x1b0b97[_0x472a10][_0x52fc69],_0x605f76=_0xe95f29?_0x1b0b97[_0x472a10][_0x52fc69]['userId']:null,_0x3d8f7c=_0x472a10===_0x1b0b97['length']-0x1,_0x21d851=_0x49c9e9[_0x52fc69][0x0],_0x50c56e=_0x1d780a['isObject'](_0x1b0b97[_0x472a10]['item']);!_0x5d364a[_0x52fc69]&&_0xe95f29?_0x5d364a[_0x52fc69]={'start':_0x4d02ee,'tapeItem':_0x1b0b97[_0x472a10],'userId':_0x605f76,'type':_0x52fc69}:_0x5d364a[_0x52fc69]&&!_0xe95f29?(_0x5d364a[_0x52fc69]['end']=_0x4d02ee,_0x53fd36(_0x5d364a[_0x52fc69]),_0x5d364a[_0x52fc69]=null):_0x5d364a[_0x52fc69]&&_0xe95f29&&_0x5d364a[_0x52fc69]['userId']!==_0x605f76&&(_0x5d364a[_0x52fc69]['end']=_0x4d02ee,_0x21d851&&_0x21d851['userId']===_0x5d364a[_0x52fc69]['userId']||_0x53fd36(_0x5d364a[_0x52fc69]),_0x5d364a[_0x52fc69]={'start':_0x4d02ee,'tapeItem':_0x1b0b97[_0x472a10],'userId':_0x605f76,'type':_0x52fc69}),_0x5d364a[_0x52fc69]&&_0x50c56e&&('elementStart'!==_0x1b0b97[_0x472a10]['type']||_0x21d851&&_0x21d851['userId']===_0x605f76||_0x49c9e9[_0x52fc69]['unshift']({'userId':_0x605f76,'object':_0x1b0b97[_0x472a10]['item'],'change':_0x5d364a[_0x52fc69]}),'elementEnd'===_0x1b0b97[_0x472a10]['type']&&_0x21d851&&_0x21d851['object']===_0x1b0b97[_0x472a10]['item']&&(_0x49c9e9[_0x52fc69]['shift'](),_0x5d364a[_0x52fc69]=_0x21d851['change'])),_0x5d364a[_0x52fc69]&&_0x3d8f7c&&(_0x5d364a[_0x52fc69]['end']=_0x5bca1b,_0x53fd36(_0x5d364a[_0x52fc69]),_0x5d364a[_0x52fc69]=null);}function _0x53fd36({start:_0x4c1512,end:_0x307708,tapeItem:_0x53e384,userId:_0x310d84,type:_0x355fe1}){const _0x59e2bd=_0x53e384['item'],_0x2b965f=_0x2fd364['schema']['isBlock'](_0x59e2bd)&&!_0x2fd364['schema']['isLimit'](_0x59e2bd),_0x313507=_0x4c1512['nodeAfter']==_0x307708['parent']&&_0x307708['isAtStart'];if(_0x2b965f&&_0x313507)return;const _0x50d115=_0x2fd364['createRange'](_0x4c1512,_0x307708),_0x49368d=_0x1a1488['get'](_0x310d84),_0x30aa7d=new r({'author':_0x49368d,'type':'isAdded'==_0x355fe1||'isAddSuggestion'==_0x355fe1?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x355fe1||'isRemoveSuggestion'==_0x355fe1},'createdAt':new Date(),'rootName':_0x1508c9});_0x4ece20['push'](_0x30aa7d),_0x137c68['markers']['set']('revision:'+_0x30aa7d['id'],_0x50d115);}function _0x1d45c8(_0x10eb82,_0x540404){const _0x50456d=_0x10eb82['getAttributes'](),_0x333547=_0x540404['getAttributes']();for(const _0x367fc3 of _0x50456d){if(_0x367fc3[0x1]!==_0x540404['getAttribute'](_0x367fc3[0x0]))return!0x1;_0x333547['next']();}return _0x333547['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x5bc2a7=>{const _0x1315d3=_0x5bc2a7['markerName']['split'](':')[0x1],_0x46f223=this['_getChangeFromId'](_0x1315d3);if(!_0x46f223)return null;const _0x3063ed='add'==_0x46f223['type']?'insertion':'deletion',_0x2eb013=['ck-suggestion-marker','ck-suggestion-marker-'+_0x3063ed];return _0x46f223['data']['isSuggestion']&&_0x2eb013['push']('ck-suggestion-marker-'+_0x3063ed+'-new'),this['activeChange']==_0x46f223&&_0x2eb013['push']('ck-suggestion-marker--active'),{'classes':_0x2eb013,'attributes':{'data-change-id':_0x1315d3}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x5427ac=>{_0x5427ac['on']('element:pre',(_0x2390af,_0x22c6a4,_0x285a6f)=>{const _0x467460=_0x22c6a4['viewItem']['getChild'](0x0);if(!_0x467460||!_0x467460['is']('element','code'))return;if(!_0x285a6f['consumable']['consume'](_0x467460,{'attributes':['vid_start','vid_end']}))return;const _0x5b3c3d=_0x22c6a4['modelRange']['start']['nodeAfter'];_0x285a6f['writer']['setAttribute']('vid_start',_0x467460['getAttribute']('vid_start'),_0x5b3c3d),_0x285a6f['writer']['setAttribute']('vid_end',_0x467460['getAttribute']('vid_end'),_0x5b3c3d);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x23026f=>{_0x23026f['on']('element',(_0x140714,_0x515e65,_0x2117b4)=>{if(!_0x2117b4['consumable']['consume'](_0x515e65['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x515e65['modelRange']['isCollapsed'])return;const _0x1a7a01=_0x515e65['modelRange']['start']['nodeAfter'];_0x1a7a01['hasAttribute']('vid_start')||_0x1a7a01['hasAttribute']('vid')||(_0x2117b4['writer']['setAttribute']('vid_start',_0x515e65['viewItem']['getAttribute']('vid_start'),_0x1a7a01),_0x2117b4['writer']['setAttribute']('vid_end',_0x515e65['viewItem']['getAttribute']('vid_end'),_0x1a7a01));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x18fd52=>_0x18fd52['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x488dc4,[,_0x4301db])=>{['vid_start','vid_end','vid']['includes'](_0x4301db)&&(_0x488dc4['return']=!0x0,_0x488dc4['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x1a5cca=>{_0x1a5cca['on']('attribute:vid',(_0x15e5e3,_0x570f57,_0x99cd7f)=>{if('\x20'!=_0x570f57['item']['data']||_0x570f57['item']['parent']['maxOffset']>0x1)return;if(!_0x99cd7f['consumable']['consume'](_0x570f57['item'],_0x15e5e3['name']))return;const _0x1ae5c8=_0x99cd7f['writer'],_0xbd263=_0x99cd7f['mapper']['toViewRange'](_0x570f57['range']);_0x1ae5c8['wrap'](_0xbd263,_0x1ae5c8['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x28b072){const _0x6c21f3=_0x28b072['plugins']['get']('RevisionViewer');return(_0x23f625,_0x1d7312,_0x45599f)=>{const _0x529728=_0x1d7312['markerName']['split'](':')[0x1],_0x3cc6bd=_0x6c21f3['_getChangeFromId'](_0x529728);if(!_0x3cc6bd)return null;const _0x4b8a28='add'==_0x3cc6bd['type']?'split':'merge';if(!_0x45599f['consumable']['test'](_0x1d7312['markerRange'],_0x23f625['name']))return;const _0x12b8d9=_0x1d7312['markerRange']['getWalker'](),_0x5bc048=_0x1d7312['markerRange']['start'],_0x58614b=_0x28b072['model']['schema'];let _0x5474a7=null,_0x4e4753=null,_0x5ecc65=!0x1,_0x1083c7=!0x1;for(const _0x37010e of _0x12b8d9){const _0x54e8c1=_0x37010e['item'];_0x5ecc65=_0x5ecc65||_0x58614b['isContent'](_0x54e8c1);const _0x5cb4cc=_0x45599f['mapper']['toViewElement'](_0x54e8c1);if(_0x5cb4cc&&_0x5cb4cc['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x37010e['type']&&(_0x58614b['isBlock'](_0x54e8c1)&&!_0x58614b['isLimit'](_0x54e8c1)&&(_0x54e8c1['nextSibling']||_0x5bc048['isAtEnd']?_0x5474a7&&_0x5474a7['parent']==_0x54e8c1||(_0x5474a7=_0x54e8c1,_0x9395d3(_0x37010e['previousPosition']),_0x1083c7=!0x0):_0x4e4753=_0x4e4753||_0x37010e['previousPosition']));}function _0x9395d3(_0x34f103){const _0x2a7b36=_0x45599f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4b8a28}),_0x1c3ede=_0x45599f['mapper']['toViewPosition'](_0x34f103);_0x3cc6bd['data']['isSuggestion']&&_0x45599f['writer']['addClass']('ck-suggestion-marker-'+_0x4b8a28+'-new',_0x2a7b36),_0x6c21f3['activeChange']==_0x3cc6bd&&_0x45599f['writer']['addClass']('ck-suggestion-marker--active',_0x2a7b36),_0x45599f['writer']['insert'](_0x1c3ede,_0x2a7b36),_0x45599f['mapper']['bindElementToMarker'](_0x2a7b36,_0x1d7312['markerName']);}_0x5ecc65||_0x1083c7||!_0x4e4753||_0x9395d3(_0x4e4753);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0xa162f,_0x1b91f8,_0x2709b7)=>{const _0x51b5d3=_0x2709b7['mapper']['markerNameToElements'](_0x1b91f8['markerName']);if(_0x51b5d3){for(const _0x59ab36 of _0x51b5d3)(_0x59ab36['hasClass']('ck-suggestion-marker-split')||_0x59ab36['hasClass']('ck-suggestion-marker-merge'))&&(_0x2709b7['mapper']['unbindElementFromMarkerName'](_0x59ab36,_0x1b91f8['markerName']),_0x2709b7['writer']['remove'](_0x59ab36));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x3ee244,_0x1b2147,_0x31a59a)=>{const _0x1c0d08=_0x1b2147['markerName']['split'](':')[0x1],_0x2c6300=this['_getChangeFromId'](_0x1c0d08);if(!_0x2c6300)return null;const _0x20efe2='add'==_0x2c6300['type']?'split':'merge';if(_0x31a59a['consumable']['test'](_0x1b2147['markerRange'],_0x3ee244['name']))for(const _0x327c57 of _0x1b2147['markerRange']['getItems']()){if(!_0x327c57['is']('element','softBreak'))continue;const _0xaee31a=_0x31a59a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x20efe2}),_0x473dc4=_0x31a59a['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x327c57));_0x2c6300['data']['isSuggestion']&&_0x31a59a['writer']['addClass']('ck-suggestion-marker-'+_0x20efe2+'-new',_0xaee31a),this['activeChange']==_0x2c6300&&_0x31a59a['writer']['addClass']('ck-suggestion-marker--active',_0xaee31a),_0x31a59a['writer']['insert'](_0x473dc4,_0xaee31a),_0x31a59a['mapper']['bindElementToMarker'](_0xaee31a,_0x1b2147['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x2590be=>{for(const _0x2d059c of this['editor']['model']['document']['getRootNames']()){const _0x3a0baf=this['editor']['model']['document']['getRoot'](_0x2d059c),_0x1656c8=this['editor']['editing']['view']['document']['getRoot'](_0x2d059c);if(_0x1656c8){const _0x3c23fe=_0x3a0baf['getAttribute']('revisionHistoryAttachChange');if(_0x2590be['removeAttribute']('data-change-id',_0x1656c8),_0x2590be['removeClass']('ck-revision-history-root-add',_0x1656c8),_0x2590be['removeClass']('ck-revision-history-root-remove',_0x1656c8),_0x2590be['removeClass']('ck-revision-history-root--active',_0x1656c8),_0x3c23fe){const _0x2a285f=this['_getChangeFromId'](_0x3c23fe);if(!_0x2a285f)return null;_0x2590be['setAttribute']('data-change-id',_0x3c23fe,_0x1656c8),_0x2590be['addClass']('ck-revision-history-root-'+_0x2a285f['type'],_0x1656c8),this['activeChange']==_0x2a285f&&_0x2590be['addClass']('ck-revision-history-root--active',_0x1656c8);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x2f2e4c=>'revision-comment:'+_0x2f2e4c,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x3216af=>'revision-suggestion:'+_0x3216af,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x2959a3=>({'name':'suggestion:'+_0x2959a3,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x4e4126=>{const _0x114246=_0x4e4126['markerName']['split'](':')[0x1];return'insertion'!=_0x114246&&'deletion'!=_0x114246?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x114246]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',tt(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',tt(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x8f3feb,_0x1195f6,_0x63b5b2)=>{const _0x5dbebc=_0x63b5b2['mapper']['markerNameToElements'](_0x1195f6['markerName']);if(_0x5dbebc){for(const _0x33ffc0 of _0x5dbebc)_0x33ffc0['is']('uiElement')&&(_0x63b5b2['mapper']['unbindElementFromMarkerName'](_0x33ffc0,_0x1195f6['markerName']),_0x63b5b2['writer']['remove'](_0x33ffc0));}},{'priority':'high'});}['_getChangeFromId'](_0x1d024f){return this['_changeIdToChange']['get'](_0x1d024f);}['_getViewForChange'](_0x557336){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Y(this['editor']['locale'],_0x557336),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x1aa993,_0x313934,_0x4bdd6e,_0x45c67c)=>{_0x45c67c&&this['_balloon']['remove'](_0x45c67c),_0x4bdd6e&&(this['_balloon']['add']({'view':_0x4bdd6e,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x4904a9=this['editor']['editing'],_0x3dea2f=this['_getChangeFromId'](_0x4bdd6e['changeId']);let _0x1ef1c6;if(_0x3dea2f['data']['isOnRoot']){const _0x37288d=_0x4904a9['view']['getDomRoot'](_0x3dea2f['rootName']);_0x1ef1c6=Array['from'](_0x37288d['getClientRects']());}else{const _0x400ef8=this['editor']['model']['markers']['get']('revision:'+_0x4bdd6e['changeId']);_0x1ef1c6=Array['from'](_0x4904a9['mapper']['markerNameToElements'](_0x400ef8['name']))['map'](_0x568967=>_0x4904a9['view']['domConverter']['mapViewToDom'](_0x568967))['map'](_0x476b51=>Array['from'](_0x476b51['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x1ef1c6[0x0];return _0x1ef1c6['find'](_0x31e550=>_0x31e550['top']-0x3<=this['_activeViewTarget']['y']&&_0x31e550['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x31e550['left']-0x3<=this['_activeViewTarget']['x']&&_0x31e550['right']+0x3>=this['_activeViewTarget']['x'])||_0x1ef1c6[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x230d9c,_0x50a3c4,_0x96367a,_0x117c36)=>{this['activeView']=_0x96367a?this['_getViewForChange'](_0x96367a):null,this['editor']['model']['change'](()=>{const _0x5d1edc=this['editor']['editing'];_0x117c36&&(_0x117c36['data']['isOnRoot']?_0x5d1edc['view']['change'](_0x54d36c=>{_0x54d36c['removeClass']('ck-revision-history-root--active',_0x5d1edc['view']['document']['getRoot'](_0x117c36['rootName']));}):_0x5d1edc['reconvertMarker']('revision:'+_0x117c36['id'])),_0x96367a&&(_0x96367a['data']['isOnRoot']?_0x5d1edc['view']['change'](_0x24dc92=>{_0x24dc92['addClass']('ck-revision-history-root--active',_0x5d1edc['view']['document']['getRoot'](_0x96367a['rootName']));}):_0x5d1edc['reconvertMarker']('revision:'+_0x96367a['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x268984,_0x30a788)=>{if(this['activeChange'])return;const _0x5cb22c=this['_findChangeIdFromDomTarget'](_0x30a788['target']),_0xbcfd5d=this['_changeIdToChange']['get'](_0x5cb22c);_0xbcfd5d?(this['_activeViewTarget']={'x':_0x30a788['domEvent']['x'],'y':_0x30a788['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0xbcfd5d)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x5da8ac,_0x853bfd)=>{const _0x5341c4=this['_findChangeIdFromDomTarget'](_0x853bfd['target']),_0x46f238=this['_changeIdToChange']['get'](_0x5341c4);_0x46f238?(this['_activeViewTarget']={'x':_0x853bfd['domEvent']['x'],'y':_0x853bfd['domEvent']['y']},_0x46f238===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x46f238):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x3bb19e){do{const _0x287c5f=_0x3bb19e['getAttribute']('data-change-id');if(_0x287c5f)return _0x287c5f;_0x3bb19e=_0x3bb19e['parent'];}while(_0x3bb19e);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x563e94=>{for(const _0x36cb20 of this['editor']['model']['markers'])_0x563e94['removeMarker'](_0x36cb20);});}}function tt(_0x602eca,_0x3b255d){return(_0x471cd6,_0x5e5311,_0x1b916b)=>{if(!_0x1b916b['consumable']['test'](_0x5e5311['markerRange'],_0x471cd6['name']))return;const _0x239c86=_0x5e5311['markerRange']['getWalker'](),_0x53fc29=_0x5e5311['markerRange']['start'],_0x23a88b=_0x602eca['model']['schema'];let _0x4b98ef=null,_0x4b2a27=null,_0x5af978=!0x1,_0x34671a=!0x1;for(const _0xae20c9 of _0x239c86){const _0x31989c=_0xae20c9['item'];_0x5af978=_0x5af978||_0x23a88b['isContent'](_0x31989c);const _0x23b7f1=_0x1b916b['mapper']['toViewElement'](_0x31989c);if(_0x23b7f1&&_0x23b7f1['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xae20c9['type']&&(_0x23a88b['isBlock'](_0x31989c)&&!_0x23a88b['isLimit'](_0x31989c)&&(_0x31989c['nextSibling']||_0x53fc29['isAtEnd']?_0x4b98ef&&_0x4b98ef['parent']==_0x31989c||(_0x4b98ef=_0x31989c,_0x1b47c9(_0xae20c9['previousPosition']),_0x34671a=!0x0):_0x4b2a27=_0x4b2a27||_0xae20c9['previousPosition']));}function _0x1b47c9(_0x1a17f8){const _0x59fdd7=_0x1b916b['mapper']['toViewPosition'](_0x1a17f8),_0x24dadb=_0x1b916b['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x3b255d});_0x1b916b['writer']['insert'](_0x59fdd7,_0x24dadb),_0x1b916b['mapper']['bindElementToMarker'](_0x24dadb,_0x5e5311['markerName']);}_0x5af978||_0x34671a||!_0x4b2a27||_0x1b47c9(_0x4b2a27);};}class yt extends _0x1efead{constructor(_0x6423e){super(_0x6423e);const _0x539612=_0x6423e['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x539612,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x539612,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x39feb0=this['editor'],_0x33ab3b=_0x39feb0['plugins']['get'](d),_0x1f2e9a=_0x33ab3b['isReady']?_0x33ab3b['diff']['newRevisionId']:null;_0x39feb0['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x1f2e9a);}['refresh'](){const {isReady:_0x5de138,isEnabled:_0x414832,repository:_0x66688f,diff:_0x2f0cd4}=this['editor']['plugins']['get'](d),_0x24e852=_0x2f0cd4&&_0x66688f['getLaterVisibleRevision'](_0x2f0cd4['newRevisionId']);this['isEnabled']=_0x5de138&&_0x414832&&Boolean(_0x24e852);}}class bt extends _0x1efead{['_step'];constructor(_0x13afe5,{direction:_0x761151}){super(_0x13afe5);const _0x23d853=_0x13afe5['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x761151?0x1:-0x1,this['listenTo'](_0x23d853,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x23d853,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x23d853,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x25d8b5=this['editor'],_0x5c6374=_0x25d8b5['plugins']['get'](d),{isNavigationMode:_0x287d88,currentChangeNumber:_0x33e321}=_0x5c6374;let _0x269f35;if(_0x5c6374['activeChange']=_0x287d88?_0x5c6374['diff']['changes']['get'](_0x33e321+this['_step']):_0x5c6374['diff']['changes']['first'],_0x5c6374['activeChange']['data']['isOnRoot'])_0x269f35=_0x25d8b5['editing']['view']['getDomRoot'](_0x5c6374['activeChange']['rootName']);else{const _0xf9d6bd=_0x25d8b5['model']['markers']['get']('revision:'+_0x5c6374['activeChange']['id']);_0x269f35=_0x3a4830(_0x25d8b5['editing'],_0xf9d6bd);}_0x2dbe66({'target':_0x269f35,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x164d58,currentChangeNumber:_0x475330,numberOfChanges:_0x53c439,isReady:_0x3ecb4d,isEnabled:_0x31c44c}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x31c44c&&_0x3ecb4d&&_0x53c439)&&(!_0x164d58||(0x1===this['_step']?_0x475330<_0x53c439-0x1:_0x475330>0x0));}}class _i extends _0x456365{constructor(_0x26e914){super(_0x26e914);const _0x3aff43=this['bindTemplate'],_0x3be655=new _0x644400(_0x26e914),_0x5d4615=new _0x644400(_0x26e914);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',(_0x24d523,_0xd87a6e)=>_0x24d523&&_0xd87a6e>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x5765e4,_0x77ee32,_0x5c76ee,_0x183d60)=>{if(!_0x5765e4)return R(_0x26e914,'Loading...');if(!_0x5c76ee)return R(_0x26e914,'No\x20changes');const _0x546d55=R(_0x26e914,'NUMBER_OF_CHANGES',_0x5c76ee);return _0x183d60?R(_0x26e914,'X_OF_Y_CHANGES',[_0x77ee32+0x1,_0x5c76ee]):_0x546d55;}),_0x3be655['set']({'label':R(_0x26e914,'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'}),_0x5d4615['set']({'label':R(_0x26e914,'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'}),_0x3be655['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x5d4615['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x3be655['on']('execute',()=>this['fire']('execute','backward')),_0x5d4615['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',_0x3aff43['if']('_isStatusLabelVisible','ck-hidden',_0x173f51=>!_0x173f51)]},'children':[{'text':_0x3aff43['to']('isNavigationMode',_0x20ad6f=>_0x20ad6f?R(_0x26e914,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x26e914,'Total')+':\x20')}]},{'text':_0x3aff43['to']('_statusText')}]},new _0x426c6c(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x3be655,_0x5d4615]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x3aa790{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x2178f7=this['editor']['editing']['view'];_0x2178f7['change'](_0x386781=>{for(const _0x371a94 of _0x2178f7['document']['roots'])_0x386781['addClass'](ce,_0x371a94);});}['hide'](){const _0x3a6397=this['editor']['editing']['view'];_0x3a6397['change'](_0xc67d8d=>{for(const _0x5fed28 of _0x3a6397['document']['roots'])_0xc67d8d['removeClass'](ce,_0x5fed28);});}}class m extends _0x3aa790{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,le];}['init'](){const _0x517069=this['editor'],_0x331ca6=_0x517069['plugins']['get'](d),_0xf1f575=_0x517069['plugins']['get'](le);_0x517069['ui']['componentFactory']['add']('exitToEditing',_0x36b5bf=>{const _0x23e129=new _0x644400(_0x36b5bf);return _0x23e129['set']({'label':R(_0x36b5bf,'Back\x20to\x20editing'),'icon':_0x162832['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x23e129,'execute',()=>{_0x517069['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x23e129;}),_0x517069['ui']['componentFactory']['add']('restoreRevision',_0x4cd4dc=>{const _0x12515e=new _0x644400(_0x4cd4dc);return _0x12515e['set']({'label':R(_0x4cd4dc,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x12515e['bind']('isEnabled')['to'](_0x517069['commands']['get']('restoreRevision')),this['listenTo'](_0x12515e,'execute',()=>_0x517069['execute']('restoreRevision')),_0x12515e;}),_0x517069['ui']['componentFactory']['add']('changesNavigation',_0x879906=>{const _0x58f107=new _i(_0x879906),_0x1b8cca=_0x517069['commands']['get']('showPreviousChange'),_0xa87787=_0x517069['commands']['get']('showNextChange');return _0x58f107['bind']('isBackwardNavigationEnabled')['to'](_0x1b8cca,'isEnabled'),_0x58f107['bind']('isForwardNavigationEnabled')['to'](_0xa87787,'isEnabled'),_0x58f107['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x331ca6),this['listenTo'](_0x58f107,'execute',(_0x588b5d,_0x2c0702)=>{_0x517069['execute']('forward'===_0x2c0702?'showNextChange':'showPreviousChange');}),_0x58f107;}),_0xf1f575['show'](),_0x331ca6['on']('change:isReady',(_0x3f051a,_0x4972fd,_0x20f499)=>{_0x20f499?_0xf1f575['hide']():_0xf1f575['show']();});}}class mt extends at{['_resizeObserver']=null;constructor(_0xe3e231,_0x26b23c){super(_0xe3e231,_0x26b23c);const _0x5b1a82=this['bindTemplate'];this['set']({'label':R(_0xe3e231,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0xe3e231,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x5b1a82['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new pt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x4f5774=this['fieldView']['element'];this['_tooltipString']=_0x4f5774['scrollWidth']>_0x4f5774['clientWidth']&&_0x4f5774['value']||'';}}class ti extends _0x456365{constructor(_0x3d0169,_0x5cebac,_0x1f45e2){super(_0x3d0169);const _0xdfa1b1=new _0x56a012();_0xdfa1b1['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 _0x4372a8=['ck','ck-revision-history-sidebar__revision-author'];_0x1f45e2&&_0x4372a8['push']('ck-revision-history-sidebar__revision-author_creator');const _0x422777=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x3d0169,_0x1f45e2?'Revision\x20creator':'Revision\x20author')},'children':[_0xdfa1b1,_0x5cebac['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x4372a8},'children':_0x422777});}}function ni(_0x4e47b6,_0x4142a5){const _0x51bb6f=_0x4e47b6['bindTemplate'],_0x263f6b=_0x4e47b6['locale'],_0x2f0c15=_0x1aa18a(_0x263f6b);_0x2f0c15['panelPosition']='sw';const _0x121def=function(_0x2730ea,_0x22e47b){const _0x485623=function(_0x94ed5f,_0x34ff81){const _0x44b7d8=_0x94ed5f['locale'],_0x1e2966={'Compare\x20against\x20selected':R(_0x44b7d8,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x44b7d8,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x44b7d8,'Restore\x20this\x20revision')};return _0x34ff81['map'](_0x18a6d6=>{const _0x2c2b2c=_0x1e2966[_0x18a6d6['name']];return _0x2c2b2c&&_0x2c2b2c!==_0x18a6d6['name']&&(_0x18a6d6['name']=_0x2c2b2c),_0x18a6d6;});}(_0x2730ea,_0x22e47b),_0x273994=new _0x2ea578();for(const _0x28d184 of _0x485623){const _0xf9ea53={'type':'button','model':new to({'label':_0x28d184['name'],'class':_0x28d184['class'],'withText':!0x0,'role':'menuitem','_action':_0x28d184['action']})};_0xf9ea53['model']['bind']('isEnabled')['to'](_0x2730ea,'isActionsDropdownOpen',_0x361ced=>'function'!=typeof _0x28d184['isEnabled']||(!_0x361ced||_0x28d184['isEnabled'](_0x2730ea))),_0x273994['add'](_0xf9ea53);}return _0x273994;}(_0x4e47b6,_0x4142a5);return _0x4e47b6['bind']('isActionsDropdownOpen')['to'](_0x2f0c15,'isOpen'),_0x2f0c15['buttonView']['set']({'label':R(_0x263f6b,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x162832['threeVerticalDots']}),_0x2f0c15['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x51bb6f['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x51bb6f['to'](_0x102312=>_0x102312['stopPropagation']())}}),_0x2f0c15['on']('execute',_0x10e20b=>{_0x4e47b6['isReady']&&'function'==typeof _0x10e20b['source']['_action']&&_0x10e20b['source']['_action'](_0x4e47b6);}),_0x529971(_0x2f0c15,_0x121def,{'role':'menu'}),_0x2f0c15['listenTo'](_0x4e47b6,'change:isActionsDropdownOpen',(_0x6cc890,_0x41578c,_0x4337d4)=>{if(_0x4337d4)for(const _0x51980f of _0x2f0c15['listView']['items']){const _0x372d4e=_0x51980f['children']['first'],_0x244686=_0x4142a5['find'](_0x434c54=>_0x434c54['action']===_0x372d4e['_action'])['isVisible'];_0x51980f['isVisible']=void 0x0===_0x244686||_0x244686(_0x4e47b6);}}),_0x2f0c15;}class ai extends/* #__PURE__ -- @preserve */
|
|
26
|
-
|
|
23
|
+
import{ObservableMixin as _0x96c3fd,uid as _0x4e6837,Collection as _0x3fda2b,logWarning as _0x1d5680,FocusTracker as _0x71f497,KeystrokeHandler as _0x5cd6bf,scrollViewportToShowTarget as _0x28cd2e,ResizeObserver as at,ElementReplacer as ct,CKEditorError as _0x420f22}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x3f3c34,set as _0x1fadfa,unset as _0x5a11d4,isEqual as _0x3efd05}from'lodash-es';import{Plugin as _0x1c98c7,PendingActions as _0x1f7a70,icons as _0x14c866,Command as _0x4faceb,ElementApiMixin as rt,Editor as it}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x4ae6c4,getMarkerDomElement as _0x415cb4,ConfirmMixin as ti,sanitizeEditorConfig as _0x1541f1}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x5a9f7e,ViewText as _0x377b5b,ViewElement as _0x1fac3b,Element as ft,Range as vt,Position as gt,DocumentFragment as mt,ViewContainerElement as _0x58bc9a,ViewAttributeElement as _0x4662ee,ViewEmptyElement as _0x425a8a,ViewRawElement as _0x206af8,ViewUIElement as _0x224256,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x1e424c,submitHandler as _0x4c83e3,LabeledFieldView as _0x3f921c,createLabeledInputText as _0x2498fb,createDropdown as _0x547500,ListView as _0x1c3951,ListItemView as _0x4d7d59,ButtonView as te,MenuBarMenuView as _0x10f5c5,MenuBarMenuListView as _0xbf7996,MenuBarMenuListItemView as _0x228704,MenuBarMenuListItemButtonView as _0x3ceb1f,ContextualBalloon as _0x3c5899,ToolbarSeparatorView as _0x54463f,IconView as _0x825bd1,addListToDropdown as to,ViewModel as _0x4c462f,EditorUI as ot,normalizeToolbarConfig as ht,BoxedEditorUIView as dt,StickyPanelView as lt,ToolbarView as nt,InlineEditableUIView as ut}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x4c6978}from'luxon';class a extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x96c3fd(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x333052){super(),this['id']=_0x333052['id']||_0x4e6837(),this['creator']=_0x333052['creator']||null,this['authors']=_0x333052['authors']||[],this['diffData']=_0x333052['diffData']||null,this['toVersion']=_0x333052['toVersion']||0x0,this['fromVersion']=_0x333052['fromVersion']||0x0,this['set']('name',_0x333052['name']||''),this['set']('createdAt',_0x333052['createdAt']||new Date()),this['set']('attributes',_0x333052['attributes']||{});}['setName'](_0x18fd4d){this['_update']({'name':_0x18fd4d});}['setAttribute'](_0x5a5460,_0xab231b){const _0x5eae51=_0x3f3c34(this['attributes']);_0x1fadfa(_0x5eae51,_0x5a5460,_0xab231b),this['_update']({'attributes':_0x5eae51});}['removeAttribute'](_0x3781a4){const _0x2e675e=_0x3f3c34(this['attributes']);_0x5a11d4(_0x2e675e,_0x3781a4),this['_update']({'attributes':_0x2e675e});}['_update'](_0x2b2c58,_0xf6b2e7=!0x1){let _0x47aba6=!0x1;const _0x303e9b={'id':this['id']},_0x4acc25=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0xfeeb3b of _0x4acc25){const _0x311eed=_0x2b2c58[_0xfeeb3b];void 0x0!==_0x311eed&&_0x311eed!==this[_0xfeeb3b]&&(this[_0xfeeb3b]=_0x311eed,_0x303e9b[_0xfeeb3b]=_0x311eed,_0x47aba6=!0x0);}_0x47aba6&&(_0x303e9b['authors']&&(_0x303e9b['authorsIds']=_0x303e9b['authors']['map'](_0x15d718=>_0x15d718['id']),delete _0x303e9b['authors']),this['fire']('_update',_0x303e9b,_0xf6b2e7));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x1a1f87=>_0x1a1f87['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x1c98c7{['_revisions'];static get['requires'](){return[_0x4ae6c4];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x29e69d){super(_0x29e69d),this['_revisions']=new _0x3fda2b();}['afterInit'](){!async function(_0x97203d){const _0x173e42=_0x2d4aa2([0x38,0x57,0x69,0x45,0x44,0x4e,0x53,0x72,0x77,0x4d,0x71,0x51,0x4f,0x35,0x79,0x37,0x46,0x76,0x43,0x67,0x41,0x39,0x6b,0x42,0x75,0x4c,0x73,0x66,0x6e,0x62,0x68,0x5a,0x48,0x52,0x30,0x47,0x7a,0x64,0x78,0x6c,0x59,0x65,0x50,0x6d,0x56,0x49,0x31,0x55,0x36,0x6a,0x61,0x32,0x54,0x74,0x58,0x63,0x6f,0x70,0x4b,0x4a,0x33,0x34]),_0xa64e42=0xeb829,_0x26a46b=0xa9aa744,_0x4d69a5=0xa9dfe3c^_0x26a46b,_0x4637c6=window[_0x2d4aa2([0x44,0x61,0x74,0x65])][_0x2d4aa2([0x6e,0x6f,0x77])](),_0x994a51=_0x97203d[_0x2d4aa2([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x22c66d=new window[(_0x2d4aa2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x159709=>{_0x994a51[_0x2d4aa2([0x6f,0x6e,0x63,0x65])](_0x2d4aa2([0x72,0x65,0x61,0x64,0x79]),_0x159709);}),_0xadc36c={[_0x2d4aa2([0x6b,0x74,0x79])]:_0x2d4aa2([0x45,0x43]),[_0x2d4aa2([0x75,0x73,0x65])]:_0x2d4aa2([0x73,0x69,0x67]),[_0x2d4aa2([0x63,0x72,0x76])]:_0x2d4aa2([0x50,0x2d,0x32,0x35,0x36]),[_0x2d4aa2([0x78])]:_0x2d4aa2([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]),[_0x2d4aa2([0x79])]:_0x2d4aa2([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]),[_0x2d4aa2([0x61,0x6c,0x67])]:_0x2d4aa2([0x45,0x53,0x32,0x35,0x36])},_0xb8cc20=_0x994a51[_0x2d4aa2([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2d4aa2([0x67,0x65,0x74])](_0x2d4aa2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3ab42b(){let _0x1bded1,_0x4d942a=null,_0x40138b=null;try{if(_0xb8cc20==_0x2d4aa2([0x47,0x50,0x4c]))return _0x2d4aa2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1bded1=_0x26607d(),!_0x1bded1)return _0x2d4aa2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1bded1[_0x2d4aa2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x40138b=_0x2ad409(_0x1bded1[_0x2d4aa2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1bded1[_0x2d4aa2([0x6a,0x74,0x69])])),await _0x3f55c9()?_0x1afa32()?_0x33a73e()?_0x2d4aa2([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x372fde()?(_0x1bded1[_0x2d4aa2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2d4aa2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4d942a=_0x451e3f(_0x2d4aa2([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1bded1[_0x2d4aa2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2d4aa2([0x74,0x72,0x69,0x61,0x6c])&&(_0x4d942a=_0x451e3f(_0x2d4aa2([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x1bded1[_0x2d4aa2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2d4aa2([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x4d942a=_0x451e3f(_0x2d4aa2([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3677da()):_0x2d4aa2([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2d4aa2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2d4aa2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x5d27ee){return _0x2d4aa2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x33a73e(){const _0xcfe5e7=[_0x2d4aa2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2d4aa2([0x74,0x72,0x69,0x61,0x6c])][_0x2d4aa2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1bded1[_0x2d4aa2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4637c6/0x3e8:0xe10*_0x4d69a5;return _0x1bded1[_0x2d4aa2([0x65,0x78,0x70])]<_0xcfe5e7;}function _0x1afa32(){const _0xcb052a=_0x1bded1[_0x2d4aa2([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0xcb052a)return!0x1;if(_0xcb052a[_0x2d4aa2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d4aa2([0x2a])))return!0x0;if(_0xcb052a[_0x2d4aa2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d4aa2([0x52,0x48])))return!0x0;if(_0xcb052a[_0x2d4aa2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d4aa2([0x52,0x52,0x48]))){if(_0x58a8e1())return!0x0;if(_0x3181e0()||_0x12c53c())return!0x0;}return!0x1;}function _0x372fde(){const _0x48913e=_0x1bded1[_0x2d4aa2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x48913e||0x0==_0x48913e[_0x2d4aa2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2d5bd1}=new URL(window[_0x2d4aa2([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x48913e[_0x2d4aa2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d5bd1))return!0x0;const _0xc82ba7=_0x2d5bd1[_0x2d4aa2([0x73,0x70,0x6c,0x69,0x74])](_0x2d4aa2([0x2e]));return _0x48913e[_0x2d4aa2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4cc01d=>_0x4cc01d[_0x2d4aa2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d4aa2([0x2a])))[_0x2d4aa2([0x6d,0x61,0x70])](_0x1e89c2=>_0x1e89c2[_0x2d4aa2([0x73,0x70,0x6c,0x69,0x74])](_0x2d4aa2([0x2e])))[_0x2d4aa2([0x73,0x6f,0x6d,0x65])](_0x41ea90=>_0xc82ba7[_0x2d4aa2([0x65,0x76,0x65,0x72,0x79])]((_0x37e32d,_0x2a116b)=>_0x41ea90[_0x2a116b]===_0x37e32d||_0x41ea90[_0x2a116b]===_0x2d4aa2([0x2a])));}function _0x3677da(){return _0x4d942a&&_0x40138b?new window[(_0x2d4aa2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1d1683,_0x440ca8)=>{_0x4d942a[_0x2d4aa2([0x74,0x68,0x65,0x6e])](_0x1d1683,_0x440ca8),_0x40138b[_0x2d4aa2([0x74,0x68,0x65,0x6e])](_0x4cea34=>{_0x4cea34!=_0x2d4aa2([0x56,0x61,0x6c,0x69,0x64])&&_0x1d1683(_0x4cea34);},_0x440ca8);}):_0x4d942a||_0x40138b||_0x2d4aa2([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2ad409(_0x2be34f,_0x5d08ee){return new window[(_0x2d4aa2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x42d912=>{if(_0x409d86())return _0x42d912(_0x2d4aa2([0x56,0x61,0x6c,0x69,0x64]));_0x2e9771(),_0x994a51[_0x2d4aa2([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2d4aa2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3f4827=!0x1;const _0x4b9b67=_0x4e6837();function _0x15d54b(_0x59b6ac){return!!_0x59b6ac&&(typeof _0x59b6ac===_0x2d4aa2([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x59b6ac===_0x2d4aa2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x59b6ac[_0x2d4aa2([0x74,0x68,0x65,0x6e])]===_0x2d4aa2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x59b6ac[_0x2d4aa2([0x63,0x61,0x74,0x63,0x68])]===_0x2d4aa2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x34c00b(_0x317549){_0x52a31e(_0x317549)[_0x2d4aa2([0x74,0x68,0x65,0x6e])](_0x53bf7d=>{if(!_0x53bf7d||_0x53bf7d[_0x2d4aa2([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2d4aa2([0x6f,0x6b]))return _0x2d4aa2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4ad6e7(_0x5920c5(_0x4b9b67+_0x5d08ee))!=_0x53bf7d[_0x2d4aa2([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2d4aa2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2d4aa2([0x56,0x61,0x6c,0x69,0x64]);})[_0x2d4aa2([0x74,0x68,0x65,0x6e])](_0x2eb18e=>(_0x636a6(),_0x2eb18e),()=>{const _0x52af76=_0x35e8a6();return null==_0x52af76?(_0x636a6(),_0x2d4aa2([0x56,0x61,0x6c,0x69,0x64])):_0x2d4aa2(_0x4637c6-_0x52af76>(0x2e962344^_0x26a46b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2d4aa2([0x74,0x68,0x65,0x6e])](_0x42d912)[_0x2d4aa2([0x63,0x61,0x74,0x63,0x68])](()=>{_0x42d912(_0x2d4aa2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x230d1b=0xaac49c4^_0x26a46b;function _0x636a6(){const _0x4d6b7d=_0x2d4aa2([0x6c,0x6c,0x63,0x74,0x2d])+_0x4ad6e7(_0x5920c5(_0x2be34f)),_0x2321c7=_0x165100(_0x4ad6e7(window[_0x2d4aa2([0x4d,0x61,0x74,0x68])][_0x2d4aa2([0x63,0x65,0x69,0x6c])](_0x4637c6/_0x230d1b)));window[_0x2d4aa2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2d4aa2([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4d6b7d,_0x2321c7);}function _0x35e8a6(){const _0x570856=_0x2d4aa2([0x6c,0x6c,0x63,0x74,0x2d])+_0x4ad6e7(_0x5920c5(_0x2be34f)),_0x3c4cb7=window[_0x2d4aa2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2d4aa2([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x570856);return _0x3c4cb7?window[_0x2d4aa2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x165100(_0x3c4cb7),0x10)*_0x230d1b:null;}function _0x52a31e(_0x4ad23c){return new window[(_0x2d4aa2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x38f93e,_0x3c2bee)=>{_0x4ad23c[_0x2d4aa2([0x74,0x68,0x65,0x6e])](_0x38f93e,_0x3c2bee),window[_0x2d4aa2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3c2bee,0xa9b7384^_0x26a46b);});}}_0x994a51[_0x2d4aa2([0x6f,0x6e])](_0x2d4aa2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2634fd,_0x3fb0c2)=>{if(_0x3fb0c2[0x0]!=_0x2be34f)return _0x42d912(_0x2d4aa2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3fb0c2[0x1]={..._0x3fb0c2[0x1],[_0x2d4aa2([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4b9b67};},{[_0x2d4aa2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2d4aa2([0x68,0x69,0x67,0x68])}),_0x994a51[_0x2d4aa2([0x6f,0x6e])](_0x2d4aa2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x645962=>{_0x15d54b(_0x645962[_0x2d4aa2([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3f4827=!0x0,_0x34c00b(_0x645962[_0x2d4aa2([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2d4aa2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2d4aa2([0x6c,0x6f,0x77])}),_0x22c66d[_0x2d4aa2([0x74,0x68,0x65,0x6e])](()=>{_0x3f4827||_0x42d912(_0x2d4aa2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x409d86(){return _0x994a51[_0x2d4aa2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2d4aa2([0x76,0x69,0x65,0x77])][_0x2d4aa2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2d4aa2([0x61,0x75,0x74,0x6f]);}function _0x2e9771(){_0x994a51[_0x2d4aa2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2d4aa2([0x76,0x69,0x65,0x77])][_0x2d4aa2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2d4aa2([0x61,0x75,0x74,0x6f]);}}function _0x451e3f(_0x2ffd0a){const _0xc38ed0=[new window[(_0x2d4aa2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x546c6a=>setTimeout(_0x546c6a,0xa939988^_0x26a46b)),_0x22c66d[_0x2d4aa2([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2d4aa2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2b4d5a=>{const _0x5df74d=0xa9aa743^_0x26a46b,_0x53dd97=_0x97203d[_0x2d4aa2([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x379a89(){_0x53dd97[_0x2d4aa2([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x5df74d&&_0x2b4d5a();}_0x379a89(),_0x53dd97[_0x2d4aa2([0x6f,0x6e])](_0x2d4aa2([0x61,0x64,0x64]),_0x379a89);})),new window[(_0x2d4aa2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x52405f=>{function _0x184b6a(){for(const _0x3d0bf1 in window)if(window[_0x2d4aa2([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x2d4aa2([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x3d0bf1))&&window[_0x3d0bf1]==_0xa64e42)return _0x52405f();_0x994a51[_0x2d4aa2([0x73,0x74,0x61,0x74,0x65])]!=_0x2d4aa2([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x2d4aa2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x184b6a,0xa9ab4cc^_0x26a46b);}_0x237031(_0x2d4aa2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x184b6a();})];return window[_0x2d4aa2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2d4aa2([0x72,0x61,0x63,0x65])](_0xc38ed0)[_0x2d4aa2([0x74,0x68,0x65,0x6e])](()=>_0x2ffd0a);}async function _0x467304(){if(await _0x22c66d,_0x237031(_0x2d4aa2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x5099d6=_0x97203d[_0x2d4aa2([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x185dd9=_0x97203d[_0x2d4aa2([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])](_0x5099d6[_0x2d4aa2([0x69,0x64])]),_0x23da40=_0x1866be(_0x2d4aa2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x23da40[_0x2d4aa2([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x5099d6['id'],_0x185dd9?_0x185dd9['id']:null,!0x0),_0x23da40[_0x2d4aa2([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x2d4aa2([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x23da40[_0x2d4aa2([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x23da40[_0x2d4aa2([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x138e18,void(_0x23da40[_0x2d4aa2([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x138e18);}if(_0x237031(_0x2d4aa2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x59bf98=_0x1866be(_0x2d4aa2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x59bf98[_0x2d4aa2([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x2d4aa2([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x59bf98[_0x2d4aa2([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x59bf98[_0x2d4aa2([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x138e18,_0x59bf98[_0x2d4aa2([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x138e18;}_0x994a51[_0x2d4aa2([0x6d,0x6f,0x64,0x65,0x6c])][_0x2d4aa2([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x138e18,_0x994a51[_0x2d4aa2([0x6d,0x6f,0x64,0x65,0x6c])][_0x2d4aa2([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x138e18,_0x994a51[_0x2d4aa2([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2d4aa2([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x58a8e1(){return _0x237031(_0x2d4aa2([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1866be(_0x2d4aa2([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x2d4aa2([0x73,0x74,0x61,0x74,0x65])]==_0x2d4aa2([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x3181e0(){return _0x237031(_0x2d4aa2([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 _0x12c53c(){return _0x237031(_0x2d4aa2([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x261c28(_0xacb270){const _0x177026=_0x258151();_0x994a51[_0x177026]=_0x2d4aa2([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])+_0xacb270,_0xacb270[_0x2d4aa2([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x2d4aa2([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x258151()]=_0xa64e42),_0xacb270!=_0x2d4aa2([0x56,0x61,0x6c,0x69,0x64])&&_0x467304();}function _0x258151(){const _0x5948a5=window[_0x2d4aa2([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2d4aa2([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2d4aa2([0x6e,0x6f,0x77])]())[_0x2d4aa2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2d4aa2([0x2e]),'');let _0x315c56=_0x2d4aa2([0x57]);for(let _0x369335=0x0;_0x369335<_0x5948a5[_0x2d4aa2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x369335+=0x2){let _0x470078=window[_0x2d4aa2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5948a5[_0x2d4aa2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x369335,_0x369335+0x2));_0x470078>=_0x173e42[_0x2d4aa2([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x470078-=_0x173e42[_0x2d4aa2([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x315c56+=_0x173e42[_0x470078];}return _0x315c56;}function _0x26607d(){const _0x358027=_0xb8cc20[_0x2d4aa2([0x73,0x70,0x6c,0x69,0x74])](_0x2d4aa2([0x2e]));if(0x3!=_0x358027[_0x2d4aa2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x45f7a6(_0x358027[0x1]);function _0x45f7a6(_0x4f934e){const _0x50811b=_0x1079f5(_0x4f934e);return _0x50811b&&_0x4aa9a4()?_0x50811b:null;function _0x4aa9a4(){const _0x58730e=_0x50811b[_0x2d4aa2([0x6a,0x74,0x69])],_0x4a498d=window[_0x2d4aa2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x58730e[_0x2d4aa2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x58730e[_0x2d4aa2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x495c7f={..._0x50811b,[_0x2d4aa2([0x6a,0x74,0x69])]:_0x58730e[_0x2d4aa2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x58730e[_0x2d4aa2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x495c7f[_0x2d4aa2([0x76,0x63])],_0x5920c5(_0x495c7f)==_0x4a498d;}}}async function _0x3f55c9(){let _0x24f2fa=!0x0;try{const _0x2f4866=_0xb8cc20[_0x2d4aa2([0x73,0x70,0x6c,0x69,0x74])](_0x2d4aa2([0x2e])),[_0x45750f,_0x2b3fc0,_0x22e585]=_0x2f4866;return _0x3b1f6d(_0x45750f),await _0x1b6a95(_0x45750f,_0x2b3fc0,_0x22e585),_0x24f2fa;}catch(_0x2b1532){return!0x1;}function _0x3b1f6d(_0x107551){const _0x405d4d=_0x1079f5(_0x107551);_0x405d4d&&_0x405d4d[_0x2d4aa2([0x61,0x6c,0x67])]==_0x2d4aa2([0x45,0x53,0x32,0x35,0x36])||(_0x24f2fa=!0x1);}async function _0x1b6a95(_0x2059c8,_0x2fb8df,_0x22060e){const _0x52d447=window[_0x2d4aa2([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2d4aa2([0x66,0x72,0x6f,0x6d])](_0x25425a(_0x22060e),_0x1ddebc=>_0x1ddebc[_0x2d4aa2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x22386b=new window[(_0x2d4aa2([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2d4aa2([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2059c8+_0x2d4aa2([0x2e])+_0x2fb8df),_0x1115d1=window[_0x2d4aa2([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2d4aa2([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1115d1)return;const _0x426c37=await _0x1115d1[_0x2d4aa2([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2d4aa2([0x6a,0x77,0x6b]),_0xadc36c,{[_0x2d4aa2([0x6e,0x61,0x6d,0x65])]:_0x2d4aa2([0x45,0x43,0x44,0x53,0x41]),[_0x2d4aa2([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2d4aa2([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2d4aa2([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1115d1[_0x2d4aa2([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2d4aa2([0x6e,0x61,0x6d,0x65])]:_0x2d4aa2([0x45,0x43,0x44,0x53,0x41]),[_0x2d4aa2([0x68,0x61,0x73,0x68])]:{[_0x2d4aa2([0x6e,0x61,0x6d,0x65])]:_0x2d4aa2([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x426c37,_0x52d447,_0x22386b)||(_0x24f2fa=!0x1);}}function _0x1079f5(_0x185867){return _0x185867[_0x2d4aa2([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2d4aa2([0x65,0x79]))?JSON[_0x2d4aa2([0x70,0x61,0x72,0x73,0x65])](_0x25425a(_0x185867)):null;}function _0x25425a(_0x46acbb){return window[_0x2d4aa2([0x61,0x74,0x6f,0x62])](_0x46acbb[_0x2d4aa2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2d4aa2([0x2b]))[_0x2d4aa2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2d4aa2([0x2f])));}function _0x5920c5(_0xc12e1){let _0x37db6c=0x1505;function _0x1734fb(_0x2367bf){for(let _0x182694=0x0;_0x182694<_0x2367bf[_0x2d4aa2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x182694++){const _0x6c19ce=_0x2367bf[_0x2d4aa2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x182694);_0x37db6c=(_0x37db6c<<0x5)+_0x37db6c+_0x6c19ce,_0x37db6c&=_0x37db6c;}}function _0x501e0a(_0x2ef2c5){Array[_0x2d4aa2([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2ef2c5)?_0x2ef2c5[_0x2d4aa2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x501e0a):_0x2ef2c5&&typeof _0x2ef2c5==_0x2d4aa2([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2d4aa2([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2ef2c5)[_0x2d4aa2([0x73,0x6f,0x72,0x74])]()[_0x2d4aa2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x85643e,_0x1172d3])=>{_0x1734fb(_0x85643e),_0x501e0a(_0x1172d3);}):_0x1734fb(window[_0x2d4aa2([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2ef2c5));}return _0x501e0a(_0xc12e1),_0x37db6c>>>0x0;}function _0x4ad6e7(_0x367eb1){return _0x367eb1[_0x2d4aa2([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2d4aa2([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2d4aa2([0x30]));}function _0x165100(_0x7592ad){return _0x7592ad[_0x2d4aa2([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2d4aa2([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2d4aa2([0x6a,0x6f,0x69,0x6e])]('');}function _0x237031(_0x23622f){return _0x994a51[_0x2d4aa2([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2d4aa2([0x68,0x61,0x73])](_0x23622f);}function _0x1866be(_0x1e7b06){return _0x994a51[_0x2d4aa2([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2d4aa2([0x67,0x65,0x74])](_0x1e7b06);}function _0x138e18(){}function _0x2d4aa2(_0x40950e){return _0x40950e['map'](_0x2aacc0=>String['fromCharCode'](_0x2aacc0))['join']('');}_0x261c28(await _0x3ab42b());}(this);}['createRevision'](_0x4e42d5){const _0x362134=this['editor']['plugins']['get']('Users');return new a({'id':_0x4e42d5['id'],'name':_0x4e42d5['name'],'creator':_0x4e42d5['creatorId']?_0x362134['getUser'](_0x4e42d5['creatorId']):null,'diffData':_0x4e42d5['diffData']||_0x4e42d5['data'],'authors':_0x4e42d5['authorsIds']['map'](_0x2fb79e=>_0x362134['getUser'](_0x2fb79e)),'createdAt':new Date(_0x4e42d5['createdAt']),'attributes':_0x4e42d5['attributes'],'fromVersion':_0x4e42d5['fromVersion'],'toVersion':_0x4e42d5['toVersion']});}['addRevision'](_0x4b8687,_0x3855c0=0x0){this['_revisions']['add'](_0x4b8687,_0x3855c0);}['getRevision'](_0x4aa5ab){return this['_revisions']['get'](_0x4aa5ab);}['getRevisions'](_0x549a21={'toJSON':!0x1}){const _0x24bb76=Array['from'](this['_revisions']);return _0x24bb76['reverse'](),_0x549a21['toJSON']?_0x24bb76['map'](_0x51b606=>_0x51b606['toJSON']()):_0x24bb76;}['getIndex'](_0x5448a9){return this['_revisions']['getIndex'](_0x5448a9);}['getEarlierVisibleRevision'](_0x402752){const [,_0x5f0c12]=this['getRevisionsIterator'](_0x402752,{'direction':'earlier'});return _0x5f0c12;}['getLaterVisibleRevision'](_0x55d4f1){const [,_0x305a19]=this['getRevisionsIterator'](_0x55d4f1,{'direction':'later'});return _0x305a19;}['getRevisionsInDiff'](_0x229f59){const _0x3aac2f=[];for(const _0x24c77a of this['getRevisionsIterator'](_0x229f59['newRevisionId']))if(_0x3aac2f['push'](_0x24c77a),_0x24c77a['id']===_0x229f59['oldRevisionId'])break;return _0x3aac2f;}*['getRevisionsIterator'](_0x2a2f99,{direction:_0x5b9e71='earlier',filter:_0x5d1457=()=>!0x0}={}){const _0xf61819='earlier'===_0x5b9e71?0x1:-0x1;let _0x3b204a=this['_revisions']['get'](_0x2a2f99),_0x1080c9=this['getIndex'](_0x3b204a);for(yield _0x3b204a;_0x3b204a;){if(_0x1080c9+=_0xf61819,_0x3b204a=this['getRevision'](_0x1080c9),!_0x3b204a)return;_0x5d1457(_0x3b204a)&&(yield _0x3b204a);}}}function R(_0x4fd1a2,_0x2b08d4,_0x343f8e){const t=_0x4fd1a2['t'];switch(_0x2b08d4){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'},_0x343f8e);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x343f8e);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 C={'c':_0x58bc9a,'a':_0x4662ee,'e':_0x425a8a,'r':_0x206af8,'u':_0x224256};class l extends _0x1c98c7{['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[_0x4ae6c4,j,_0x1f7a70];}constructor(_0x2dc833){super(_0x2dc833),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new T(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x18b36f=_0x4e6837();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x18b36f},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 _0x3b354a=this['repository']['getRevision'](0x0),_0x1daf2c=_0x3b354a&&null===_0x3b354a['creator']?_0x3b354a:null;if(this['_continueCurrentRevision']=!!_0x1daf2c&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x5ebe78=this['_source']['getCurrentRevisionId'](),_0x198a39=this['repository']['getRevision'](_0x5ebe78);if(_0x198a39)this['_startingVersion']=_0x198a39['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x2dbd9e=this['_source']['history']['_operations']['find'](_0xa178b3=>!_0xa178b3['_isInit']),_0x267171=_0x2dbd9e?_0x2dbd9e['baseVersion']:this['_source']['history']['version'];_0x3b354a?(_0x3b354a['toVersion']<_0x267171&&_0x3b354a['_update']({'toVersion':_0x267171}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x1daf2c['id'],this['_startingVersion']=_0x1daf2c['fromVersion']):(this['_startingVersion']=_0x3b354a['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x267171,this['_continueCurrentRevision']=!0x1);}}else _0x1daf2c&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x1daf2c['toVersion'],this['editor']['model']['document']['history']['version']),_0x1daf2c['fromVersion']===_0x1daf2c['toVersion']?(0x0!==_0x1daf2c['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x1daf2c['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x1daf2c['id'],this['_startingVersion']=_0x1daf2c['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',_0x2c6183=>!_0x2c6183),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4a9759=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1d3602;for(const _0x158bcd in _0x4a9759){const _0x12579b=_0x158bcd,_0x241f01=_0x4a9759[_0x12579b];if('revisionHistoryLicenseKeyValid'==_0x241f01||'revisionHistoryLicenseKeyInvalid'==_0x241f01||'revisionHistoryLicenseKeyExpired'==_0x241f01||'revisionHistoryLicenseKeyDomainLimit'==_0x241f01||'revisionHistoryLicenseKeyNotAllowed'==_0x241f01||'revisionHistoryLicenseKeyEvaluationLimit'==_0x241f01||'revisionHistoryLicenseKeyTrialLimit'==_0x241f01||'revisionHistoryLicenseKeyDevelopmentLimit'==_0x241f01||'revisionHistoryLicenseKeyUsageLimit'==_0x241f01){delete _0x4a9759[_0x12579b],_0x1d3602=_0x241f01,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x1d3602&&_0x4a9759['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x1d3602&&_0x4a9759['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x1d3602&&_0x4a9759['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x1d3602&&_0x4a9759['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x1d3602&&_0x4a9759['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x1d3602&&_0x4a9759['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0x1d3602&&_0x4a9759['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x1d3602&&_0x4a9759['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x4814d2=this['repository']['getRevision'](0x0),_0x4b4852=await this['getRevisionDocumentData'](_0x4814d2),_0xad1f70=await this['getRevisionRootsAttributes'](_0x4814d2);this['_replaceEditorDataWithRevisionData'](_0x4b4852,_0xad1f70);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x148bcc){this['_source']=_0x148bcc;}async['update'](){const _0x217770=await this['_source']['getLatestVersion']();if(_0x217770>this['currentRevision']['toVersion']){await this['_loadState']();const _0x2c62bb=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x217770});_0x2c62bb['authors']=_0x2c62bb['authorsIds']['map'](_0x1377fc=>this['editor']['plugins']['get']('Users')['getUser'](_0x1377fc)),this['currentRevision']['_update'](_0x2c62bb);}}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'](_0x989d83={},_0x445979=null){const _0x32af2b=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x445979>this['currentRevision']['toVersion']&&(_0x445979=null),null===_0x445979&&(_0x445979=await this['_source']['getLatestVersion']());const _0x1b4e70=this['_getFromVersion'](_0x445979),_0x557fa0=this['buildRevisionData']({'from':_0x1b4e70,'to':_0x445979});if(this['currentRevision']['toVersion']<_0x445979){const _0x3d03a5=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x445979,'to':_0x445979});_0x3d03a5['authors']=[],_0x3d03a5['authorsIds']=[],_0x3d03a5['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x3d03a5,!0x0),delete _0x3d03a5['authors'],_0x32af2b['push'](_0x3d03a5);}_0x989d83['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x989d83['name']=_0x989d83['name']||null,_0x989d83['id']=_0x989d83['id']||_0x4e6837(),_0x989d83={..._0x989d83,..._0x557fa0};const _0x3b1872=this['addRevisionData'](_0x989d83);_0x32af2b['push'](_0x989d83);const _0x59c5a0=this['repository']['getIndex'](_0x3b1872);if(0x0!==_0x59c5a0){const _0x1d047f=this['repository']['getRevision'](_0x59c5a0-0x1);if(_0x1d047f['fromVersion']!==_0x445979){const _0x31c1a9=this['_revisionDataBuilder']['getData'](_0x445979,_0x1d047f['toVersion']),_0x123bc5={'id':_0x1d047f['id'],'diffData':_0x31c1a9['diffData'],'authorsIds':_0x31c1a9['authorsIds'],'authors':_0x31c1a9['authorsIds']['map'](_0x169a12=>this['editor']['plugins']['get']('Users')['getUser'](_0x169a12)),'fromVersion':_0x445979};_0x1d047f===this['currentRevision']&&(_0x123bc5['createdAt']=new Date(_0x989d83['createdAt']['getTime']()+0xa)),_0x1d047f['_update'](_0x123bc5,!0x0),delete _0x123bc5['authors'],_0x32af2b['push'](_0x123bc5);}}if(this['adapter']){for(const _0x437f0d of _0x32af2b)this['_bufferUpdate'](_0x437f0d['id'],_0x437f0d,!0x0);this['sendBufferedUpdates']();}return _0x3b1872;}['addRevisionData'](_0x31d2a4){const _0x4f1b01=this['repository']['createRevision'](_0x31d2a4);return this['adapter']&&_0x4f1b01['on']('_update',(_0x32d442,_0x27bb48,_0x35250a)=>{_0x35250a||(this['_bufferUpdate'](_0x27bb48['id'],_0x27bb48,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x4f1b01,this['_findInsertionIndex'](_0x4f1b01)),_0x4f1b01;}async['getRevisionDocumentData'](_0x79b56a){await this['_loadRevisionData'](_0x79b56a);const _0x52ae8d={};for(const _0x231911 in _0x79b56a['diffData']){if(_0x79b56a['diffData'][_0x231911]['attachChange']&&!_0x79b56a['diffData'][_0x231911]['attachChange']['isAttached'])continue;const _0x5af120=this['_removeRevisionMarkers'](JSON['parse'](_0x79b56a['diffData'][_0x231911]['insertions'])),_0x1dc5c3=this['editor']['editing']['view']['document'],_0xb242a6=new _0x5a9f7e(_0x1dc5c3,_0x5af120['map'](_0x5c5493=>V(_0x5c5493,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x52ae8d[_0x231911]=this['editor']['data']['processor']['toData'](_0xb242a6),this['editor']['data']['processor']['useFillerType']('default');}return _0x52ae8d;}async['getRevisionRootsAttributes'](_0x43d750){await this['_loadRevisionData'](_0x43d750);const _0x44164d={};for(const _0x12e31c in _0x43d750['diffData'])_0x43d750['diffData'][_0x12e31c]['attachChange']&&!_0x43d750['diffData'][_0x12e31c]['attachChange']['isAttached']||(_0x44164d[_0x12e31c]=_0x43d750['diffData'][_0x12e31c]['attributesAfter']||{});return _0x44164d;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x8c8367=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x2e4159=0x0;_0x2e4159<_0x8c8367['length'];_0x2e4159++){const _0x4a7a7d=_0x8c8367[_0x2e4159];let _0x2fec27=!0x1;for(const _0x498d52 of Object['keys'](_0x4a7a7d))void 0x0===_0x4a7a7d[_0x498d52]?delete _0x4a7a7d[_0x498d52]:'id'!==_0x498d52&&(_0x2fec27=!0x0);_0x2fec27||(_0x8c8367[_0x2e4159]=null);}if(_0x8c8367=_0x8c8367['filter'](_0xcd4ad3=>null!==_0xcd4ad3),!_0x8c8367['length'])return;for(let _0x5d5dd3=0x0;_0x5d5dd3<_0x8c8367['length'];_0x5d5dd3++){const _0xf3f3fc=_0x8c8367[_0x5d5dd3];void 0x0!==_0xf3f3fc['fromVersion']&&void 0x0===_0xf3f3fc['toVersion']&&(_0xf3f3fc['toVersion']=this['repository']['getRevision'](_0xf3f3fc['id'])['toVersion']),void 0x0!==_0xf3f3fc['toVersion']&&void 0x0===_0xf3f3fc['fromVersion']&&(_0xf3f3fc['fromVersion']=this['repository']['getRevision'](_0xf3f3fc['id'])['fromVersion']);}const _0x5041fd=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x8c8367,_0x5041fd)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x30954c=>{if(_0x30954c){for(const _0x1fb40f of _0x30954c)this['setRevisionData']({'id':_0x1fb40f['id'],'createdAt':_0x1fb40f['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x391cd6,_0x3ab9a8){let _0x538afc=this['editor']['config']['get']('initialData'),_0x915919=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x538afc){_0x538afc={};for(const _0xa3ec3 of this['editor']['model']['document']['getRootNames']())_0x538afc[_0xa3ec3]='';}if('string'==typeof _0x538afc&&(_0x538afc={'main':_0x538afc}),void 0x0===_0x915919){_0x915919={};for(const _0x30be8b of this['editor']['model']['document']['getRootNames']())_0x915919[_0x30be8b]={};}let _0x2bd28c=!0x1;const _0x7c8961=Object['keys'](_0x538afc),_0x5eab8f=Object['keys'](_0x391cd6);for(const _0x3bd5cb of _0x7c8961){if(_0x538afc[_0x3bd5cb]!==_0x391cd6[_0x3bd5cb]&&''!==_0x538afc[_0x3bd5cb]['trim']()){_0x2bd28c=!0x0;break;}if(!_0x3efd05(_0x915919[_0x3bd5cb],_0x3ab9a8[_0x3bd5cb])&&Object['keys'](_0x915919[_0x3bd5cb])['length']>0x0){_0x2bd28c=!0x0;break;}}_0x2bd28c||(_0x2bd28c=_0x5eab8f['some'](_0x482c4a=>!this['editor']['model']['document']['getRoot'](_0x482c4a))),_0x2bd28c&&_0x1d5680('editor-initial-data-replaced-with-revision-data',{'editorData':_0x538afc,'editorRootsAttributes':_0x915919,'revisionData':_0x391cd6,'revisionRootsAttributes':_0x3ab9a8}),this['editor']['config']['set']('initialData',_0x391cd6),this['editor']['config']['set']('rootsAttributes',_0x3ab9a8);}['_addPendingAction'](){if(!this['_pendingAction']){const _0xc74c32=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0xc74c32['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x36bd64){const _0x1e05a0=this['repository']['getRevisions']();_0x1e05a0['reverse']();let _0x2aec8e=0x0;for(;_0x2aec8e<_0x1e05a0['length'];){const _0xd193bb=_0x1e05a0[_0x2aec8e];if(_0xd193bb===this['currentRevision']){_0x2aec8e++;continue;}if(_0xd193bb['id']===this['_initialRevisionId'])break;const _0x2596d1=_0x36bd64['toVersion']-_0xd193bb['toVersion']||_0x36bd64['fromVersion']-_0xd193bb['fromVersion'];if(_0x2596d1>0x0)break;if(_0x2596d1<0x0)_0x2aec8e++;else{if(!_0x36bd64['creator']&&_0xd193bb['creator'])break;if(_0xd193bb['creator']||!_0x36bd64['creator']){if(_0x36bd64['createdAt']>_0xd193bb['createdAt'])break;_0x2aec8e++;}else _0x2aec8e++;}}return _0x2aec8e;}['setRevisionData'](_0x147b91){const _0x569a60=this['repository']['getRevision'](_0x147b91['id']);if(_0x147b91['createdAt']&&(_0x147b91['createdAt']=new Date(_0x147b91['createdAt'])),_0x147b91['authorsIds']){const _0x2d5ead=this['editor']['plugins']['get']('Users');_0x147b91['authors']=_0x147b91['authorsIds']['map'](_0x160f28=>_0x2d5ead['getUser'](_0x160f28));}_0x569a60['_update'](_0x147b91,!0x0);}['buildRevisionData']({revision:_0x1b69f0=null,from:_0x5c62df=null,to:_0x5c0fc9=null}){_0x5c62df=null!==_0x5c62df?_0x5c62df:_0x1b69f0['fromVersion'],_0x5c0fc9=null!==_0x5c0fc9?_0x5c0fc9:_0x1b69f0['toVersion'];const _0x108de1=this['_revisionDataBuilder']['getData'](_0x5c62df,_0x5c0fc9),_0x1034b1={'diffData':_0x108de1['diffData'],'authorsIds':_0x108de1['authorsIds'],'fromVersion':_0x5c62df,'toVersion':_0x5c0fc9};if(!_0x1b69f0||_0x5c0fc9!==_0x1b69f0['toVersion']){const _0x13f9a6=_0x5c0fc9-0x1,_0x42a6d1=this['_source']['history']['getOperation'](_0x13f9a6);_0x1034b1['createdAt']=_0x42a6d1&&_0x42a6d1['createdAt']||new Date();}if(this['_loadedStateData']&&_0x5c62df===this['_loadedStateData']['fromVersion']){for(const _0x281bf0 of this['_loadedStateData']['authors'])_0x1034b1['authorsIds']['includes'](_0x281bf0['id'])||_0x1034b1['authorsIds']['push'](_0x281bf0['id']);}return _0x1034b1;}['_loadRevisionData'](_0x347fc6){if(!_0x347fc6||_0x347fc6['diffData'])return Promise['resolve']();{const _0x1a4aa0=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x1a4aa0,'revisionId':_0x347fc6['id']})['then'](_0x28a5dc=>{_0x347fc6['diffData']=_0x28a5dc['diffData'];});}}['_bufferUpdate'](_0x35ee2a,_0x23f4b7,_0x30318a){if(this['_bufferedUpdates']['has'](_0x35ee2a)){const _0x173714=this['_bufferedUpdates']['get'](_0x35ee2a);_0x23f4b7=_0x30318a?{..._0x173714,..._0x23f4b7}:{..._0x23f4b7,..._0x173714};}this['_bufferedUpdates']['set'](_0x35ee2a,_0x23f4b7);}['_getFromVersion'](_0x36a7e9){const _0x4af5b6=this['repository']['getRevisions']();_0x4af5b6['reverse'](),_0x4af5b6['shift']();const _0x5059e3=_0x4af5b6['find'](_0x10509f=>_0x10509f['toVersion']<=_0x36a7e9)['toVersion'];return _0x5059e3<this['_startingVersion']?this['_startingVersion']:_0x5059e3;}['_createInitialRevision'](_0x218950){const _0x5d53d=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x5d53d)this['_initialRevisionId']=_0x5d53d['id'];else{const _0x228ad1=!this['editor']['model']['document']['roots']['find'](_0x30edfd=>this['editor']['model']['hasContent'](_0x30edfd)),_0x376409=this['editor']['plugins']['get']('Users')['me']['id'],_0x77f9e3=R(this['editor']['locale'],_0x228ad1?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x218950,'to':_0x218950,'id':this['_initialRevisionId'],'name':_0x77f9e3,'creatorId':_0x376409});}}['_createCurrentRevision'](_0x4a1ccf){const _0x59540c=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x59540c),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x4a1ccf,'to':_0x4a1ccf,'id':_0x59540c,'name':'','creatorId':null}));}['_makeRevision']({name:_0x41d6f5,from:_0x19db80,to:_0x54d09a,creatorId:_0x3b3361,id:_0x3a4c4a}){const _0x2c016e=this['buildRevisionData']({'from':_0x19db80,'to':_0x54d09a});_0x2c016e['name']=_0x41d6f5,_0x2c016e['creatorId']=_0x3b3361,_0x2c016e['id']=_0x3a4c4a;const _0x5cc5fc=this['addRevisionData'](_0x2c016e);return this['adapter']&&this['_bufferUpdate'](_0x2c016e['id'],_0x2c016e,!0x0),_0x5cc5fc;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x5902b4){return(_0x5902b4=_0x5902b4['filter'](_0x5bfed2=>!_0x5bfed2['name']||'revision-start'!==_0x5bfed2['name']&&'revision-end'!==_0x5bfed2['name']))['forEach'](_0x1f7848=>{'string'!=typeof _0x1f7848&&(_0x1f7848['children']=this['_removeRevisionMarkers'](_0x1f7848['children']),_0x1f7848['attributes']=_0x1f7848['attributes']['filter'](_0x3e05a6=>!_0x3e05a6[0x0]['startsWith']('data-revision-')));}),_0x5902b4;}}function V(_0x5993e9,_0x48b367){const _0x14d1d8=_0x48b367['editing']['view']['document'];if('string'==typeof _0x5993e9)return new _0x377b5b(_0x14d1d8,_0x5993e9);{const _0x2487ed=_0x5993e9['children']['map'](_0x161bd6=>V(_0x161bd6,_0x48b367));return new(C[_0x5993e9['type']]||_0x1fac3b)(_0x14d1d8,_0x5993e9['name'],_0x5993e9['attributes'],_0x2487ed);}}class T{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x34ec46){this['editor']=_0x34ec46,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'](_0x3824db){this['source']=_0x3824db;const _0xdb16aa=new Map(),_0x57ee08=new Map(),_0x566a46=this['editor']['model']['document']['roots']['map'](_0x251fee=>_0x251fee['rootName']);for(const _0xc2307e of _0x566a46){const _0x2a7f07=this['editor']['model']['document']['getRoot'](_0xc2307e),_0x5e700c=F(_0x2a7f07);_0xdb16aa['set'](_0xc2307e,_0x5e700c),_0x57ee08['set'](_0xc2307e,Object['fromEntries'](_0x2a7f07['getAttributes']()));}const _0x6244c1=Array['from'](this['editor']['model']['markers'])['map'](_0x2bb2a1=>[_0x2bb2a1['name'],_0x2bb2a1['getRange']()]),_0x4a5560=this['source']['version'];this['_saveMetaData'](_0x4a5560,_0xdb16aa,_0x6244c1,_0x57ee08),this['_startingRevisionId']=this['_revisionId'];const _0x3511a6=new Map(),_0x247f00=new Map();for(const _0x40efd4 of _0x566a46){const _0x31a8c7=B(_0x40efd4);_0x3511a6['set'](_0x40efd4,_0x31a8c7),_0x247f00['set'](_0x40efd4,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x3511a6,[],_0x247f00);}['getData'](_0x2a0eae,_0x526e9c){if(this['_lastFrom']===_0x2a0eae&&this['_lastTo']<=_0x526e9c)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x526e9c,!0x0);else{if(!this['_savedMetaData']['has'](_0x2a0eae)){const _0x4d3473=this['_getPreviousFrom'](_0x2a0eae);this['_calculateMetaData'](_0x4d3473,_0x2a0eae,!0x1);}this['_calculateMetaData'](_0x2a0eae,_0x526e9c,!0x0);}return this['_lastFrom']=_0x2a0eae,this['_lastTo']=_0x526e9c,this['_getState']();}['loadState'](_0x530e66){this['_reset'](),this['_lastFrom']=_0x530e66['fromVersion'],this['_lastTo']=_0x530e66['toVersion'];for(const _0x1f2a9c in _0x530e66['diffData']){const _0x2a562f=_0x530e66['diffData'][_0x1f2a9c]['attachChange'],_0x31924f=_0x3f3c34(_0x530e66['diffData'][_0x1f2a9c]['attributesBefore'])||{},_0x39cd08=this['_makeModelFromViewString'](_0x530e66['diffData'][_0x1f2a9c]['deletions']);_0x39cd08['rootName']=_0x1f2a9c,_0x39cd08['_isAttached']=!_0x2a562f||!_0x2a562f['isAttached'],_0x39cd08['isAttached']=()=>_0x39cd08['_isAttached'],this['_baseRoots']['set'](_0x1f2a9c,_0x39cd08),this['_baseRootsAttributes']['set'](_0x1f2a9c,_0x31924f),_0x2a562f&&this['_touchedRoots']['set'](_0x1f2a9c,_0x2a562f);const _0x37abfd=this['_makeIdsRoot'](_0x39cd08);this['_baseIdsRoots']['set'](_0x1f2a9c,_0x37abfd);for(const [_0x417f94,_0x480e6f]of _0x39cd08['markers']){if(!_0x417f94['startsWith']('revision:'))continue;const _0x1319e1=_0x417f94['split'](':')[0x2];for(const _0x5b8053 of _0x480e6f['getWalker']({'singleCharacters':!0x0})){const _0x49d8c5=this['_getVidAttributeName'](_0x5b8053),_0x1ff675='elementEnd'==_0x5b8053['type']?_0x5b8053['previousPosition']['path']['slice'](0x0,-0x1):_0x5b8053['previousPosition']['path'],_0x3e74d2=_0x37abfd['getNodeByPath'](_0x1ff675)['getAttribute'](_0x49d8c5);this['_touched']['set'](_0x3e74d2,{'userId':_0x1319e1});}}}this['_startingRevisionId']=this['_revisionId'];const _0x4277d3=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x160509=>!this['_touched']['has'](_0x160509));let _0x2f39c0=0x0;const _0x50f18e=new Map();for(const _0xe3f441 in _0x530e66['diffData']){const _0xb671c1=_0x530e66['diffData'][_0xe3f441]['attachChange'],_0x4fea00=_0x3f3c34(_0x530e66['diffData'][_0xe3f441]['attributesAfter'])||{},_0x1b4edf=this['_makeModelFromViewString'](_0x530e66['diffData'][_0xe3f441]['insertions']);_0x1b4edf['rootName']=_0xe3f441,_0x1b4edf['_isAttached']=!_0xb671c1||_0xb671c1['isAttached'],_0x1b4edf['isAttached']=()=>_0x1b4edf['_isAttached'],this['_diffRoots']['set'](_0xe3f441,_0x1b4edf),this['_diffRootsAttributes']['set'](_0xe3f441,_0x4fea00);const _0x348ac1=this['_makeIdsRoot'](_0x1b4edf,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0xe3f441,_0x348ac1),_0x50f18e['set'](_0xe3f441,_0x1b4edf['isAttached']()?_0x4fea00:{});for(const [_0x377323,_0x554940]of _0x1b4edf['markers']){if(!_0x377323['startsWith']('revision:'))continue;const _0x55cfb7=_0x377323['split'](':')[0x2];for(const _0x19e612 of _0x554940['getWalker']({'singleCharacters':!0x0})){const _0x1cad43=this['_getVidAttributeName'](_0x19e612),_0x1ed7a0=this['_revisionId']++,_0xeb40cc='elementEnd'==_0x19e612['type']?_0x19e612['previousPosition']['path']['slice'](0x0,-0x1):_0x19e612['previousPosition']['path'];_0x348ac1['getNodeByPath'](_0xeb40cc)['_setAttribute'](_0x1cad43,_0x1ed7a0),this['_touched']['set'](_0x1ed7a0,{'userId':_0x55cfb7});}}for(const _0x153d40 of this['editor']['model']['createRangeIn'](_0x1b4edf)['getWalker']({'singleCharacters':!0x0})){const _0x319c7b=this['_getVidAttributeName'](_0x153d40),_0x3c0233='elementEnd'==_0x153d40['type']?_0x153d40['previousPosition']['path']['slice'](0x0,-0x1):_0x153d40['previousPosition']['path'],_0x164d26=_0x348ac1['getNodeByPath'](_0x3c0233);_0x164d26['getAttribute'](_0x319c7b)>0x0||_0x164d26['_setAttribute'](_0x319c7b,_0x4277d3[_0x2f39c0++]);}for(const [_0x18506b,_0x1f226d]of _0x1b4edf['markers'])_0x18506b['startsWith']('revision:')||this['_markers']['set'](_0x18506b,_0x1f226d);}const _0x2eab7f=B('$graveyard');this['_baseRoots']['set']('$graveyard',_0x2eab7f),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x2eab7f,0x1));const _0x102491=B('$graveyard');this['_diffRoots']['set']('$graveyard',_0x102491),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x102491,0x1));const _0x5a7b6b=Array['from'](this['_diffRoots'])['map'](([_0x1071e8,_0xd172e3])=>[_0x1071e8,F(_0xd172e3)]);this['_saveMetaData'](this['_lastTo'],_0x5a7b6b,this['_markers'],_0x50f18e);}['_makeModelFromViewString'](_0x303b7e){const _0x4bfc04=JSON['parse'](_0x303b7e),_0x595e22=this['editor']['editing']['view']['document'],_0x3456dd=new _0x5a9f7e(_0x595e22,_0x4bfc04['map'](_0x377404=>V(_0x377404,this['editor'])));return this['editor']['data']['toModel'](_0x3456dd);}['_saveMetaData'](_0x5819da,_0x2796a7,_0x6ff55f,_0x5aec0b){const _0x8e7535=new Map(_0x2796a7),_0xb774a9=new Map(_0x3f3c34(_0x5aec0b)),_0x1ff715=new Map();for(const [_0x3ff8bf,_0x56de83]of _0x6ff55f)_0x1ff715['set'](_0x3ff8bf,{'start':_0x56de83['start']['clone'](),'end':_0x56de83['end']['clone'](),'rootName':_0x56de83['root']['rootName']});this['_savedMetaData']['set'](_0x5819da,{'roots':_0x8e7535,'markers':_0x1ff715,'rootsAttributes':_0xb774a9});}['_removeMetaData'](_0x3fa1e0){this['_savedMetaData']['delete'](_0x3fa1e0);}['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'](_0x45ae9f,_0x591515=null){let _0x9f349e=null;_0x45ae9f['is']('documentFragment')||(_0x9f349e=new ft(_0x45ae9f['name'],{'vid_start':null===_0x591515?this['_revisionId']++:_0x591515++}));const _0x2258fa=[];for(const _0x4cd92d of _0x45ae9f['getChildren']())if(_0x4cd92d['is']('element')){_0x2258fa['push'](this['_makeIdsRoot'](_0x4cd92d,_0x591515));const _0x4bf2b4=_0x2258fa[_0x2258fa['length']-0x1];null!==_0x591515&&(_0x591515=_0x4bf2b4['is']('element','$text')?_0x4bf2b4['getAttribute']('vid')+0x1:_0x4bf2b4['getAttribute']('vid_end')+0x1);}else{for(let _0x432b43=0x0;_0x432b43<_0x4cd92d['offsetSize'];_0x432b43++)_0x2258fa['push'](new ft('$text',{'vid':null===_0x591515?this['_revisionId']++:_0x591515++}));}if(_0x45ae9f['is']('documentFragment')){const _0x28162b=B(_0x45ae9f['rootName']);return _0x28162b['_insertChild'](0x0,_0x2258fa),_0x28162b;}return _0x9f349e['_setAttribute']('vid_end',null===_0x591515?this['_revisionId']++:_0x591515++),_0x9f349e['_insertChild'](0x0,_0x2258fa),_0x9f349e;}['_calculateMetaData'](_0x2a995b,_0x41b014,_0x38d895){this['_reset']();const {roots:_0x18a458,markers:_0x1b2f25,rootsAttributes:_0x3face3}=this['_savedMetaData']['get'](_0x2a995b);this['_baseRoots']=new Map(_0x18a458),this['_baseRootsAttributes']=new Map(_0x3f3c34(_0x3face3));for(const [_0x193002,_0x4f3880]of this['_baseRoots'])if('$graveyard'!==_0x193002&&(this['_diffRoots']['set'](_0x193002,F(_0x4f3880)),this['_diffRootsAttributes']=new Map(_0x3f3c34(_0x3face3)),_0x38d895)){const _0x255262=this['_revisionId'];this['_idsRoots']['set'](_0x193002,this['_makeIdsRoot'](_0x4f3880)),this['_baseIdsRoots']['set'](_0x193002,this['_makeIdsRoot'](_0x4f3880,_0x255262));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',F(this['_baseRoots']['get']('$graveyard'))),_0x38d895&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x44d849,_0x144a8e]of _0x1b2f25){const _0x4b5577=this['_baseRoots']['get'](_0x144a8e['rootName']),_0x2860f2=this['_diffRoots']['get'](_0x144a8e['rootName']),_0x31f8da=new vt(this['_fixPosition'](_0x144a8e['start'],_0x4b5577),this['_fixPosition'](_0x144a8e['end'],_0x4b5577)),_0x525613=this['_fixRange'](_0x31f8da,_0x2860f2);_0x4b5577['markers']['set'](_0x44d849,_0x31f8da),this['_markers']['set'](_0x44d849,_0x525613);}this['_applyOperations'](_0x2a995b,_0x41b014,_0x38d895);}['_applyOperations'](_0x910f9f,_0x3ecb3d,_0x188918){for(const _0x5f5d8d of this['source']['getOperations'](_0x910f9f,_0x3ecb3d))this['_handleOperation'](_0x5f5d8d,_0x188918);for(const _0x58960a of this['_diffRoots']['values']())_0x58960a['markers']['clear']();for(const [_0x77b59c,_0x560321]of this['_markers']){this['_diffRoots']['get'](_0x560321['root']['rootName'])['markers']['set'](_0x77b59c,_0x560321['clone']());}const _0x4d2ee0=new Map(),_0x2d2ded=new Map();for(const [_0x24594b,_0x373af0]of this['_diffRoots'])_0x4d2ee0['set'](_0x24594b,F(_0x373af0)),_0x2d2ded['set'](_0x24594b,this['_diffRootsAttributes']['get'](_0x24594b));this['_saveMetaData'](_0x3ecb3d,_0x4d2ee0,this['_markers'],_0x2d2ded);}['_getPreviousFrom'](_0x49d408){const _0xcc5bf8=Array['from'](this['_savedMetaData']['keys']());_0xcc5bf8['sort']((_0x410884,_0x558f8a)=>_0x410884-_0x558f8a),_0xcc5bf8['reverse']();for(const _0x39f6c2 of _0xcc5bf8)if(_0x39f6c2<_0x49d408)return _0x39f6c2;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0xb3d91f,_0x16e7e7){const _0x130882=Array['from'](_0x16e7e7['markers'])['map'](([_0x264390,_0x5b4da2])=>[_0x264390,this['_fixRange'](_0x5b4da2,_0xb3d91f)]);_0xb3d91f['markers']=new Map(_0x130882);}['_transformMarkers'](_0x18d8e1){for(const _0x747461 of this['_markers']['values']()){const _0x344a7b=_0x747461['getTransformedByOperation'](_0x18d8e1),_0x5b42d2=vt['_createFromRanges'](_0x344a7b);_0x747461['start']=_0x5b42d2['start'],_0x747461['end']=_0x5b42d2['end'];}}['_handleOperation'](_0x422aaa,_0x2594a9){if('addRoot'!=_0x422aaa['type']&&'detachRoot'!=_0x422aaa['type']){if('insert'==_0x422aaa['type']){const _0x156ce2=_0x422aaa['position']['root']['rootName'];this['_diffRoots']['has'](_0x156ce2)||(this['_diffRoots']['set'](_0x156ce2,B(_0x156ce2,!0x0)),this['_diffRootsAttributes']['set'](_0x156ce2,{}),_0x2594a9&&this['_idsRoots']['set'](_0x156ce2,B(_0x156ce2,!0x0)));}else{if('addRootAttribute'==_0x422aaa['type']||'removeRootAttribute'==_0x422aaa['type']||'changeRootAttribute'==_0x422aaa['type'])return void this['_handleRootAttributeOperation'](_0x422aaa);'marker'==_0x422aaa['type']&&this['_handleMarkerOperation'](_0x422aaa);}if('marker'!==_0x422aaa['type']){const _0x14019e=this['_cloneOperation'](_0x422aaa,this['_diffRoots']);_0x14019e['_execute'](),this['_transformMarkers'](_0x14019e);}if(_0x2594a9)switch(_0x422aaa['type']){case'insert':this['_handleInsertOperation'](_0x422aaa);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x422aaa);break;case'merge':this['_handleMergeOperation'](_0x422aaa);break;case'split':this['_handleSplitOperation'](_0x422aaa);}}else this['_handleRootOperation'](_0x422aaa,_0x2594a9);}['_cloneOperation'](_0x19f7d5,_0x4ade41){const _0x57eeee=_0x19f7d5['clone']();return _0x57eeee['_authorId']=_0x19f7d5['_authorId'],this['_fixOperation'](_0x57eeee,_0x4ade41),_0x57eeee;}['_getBaseVids'](_0x52b370){return _0x52b370['map'](_0x119afb=>{const _0x4d0123=this['_getVidAttributeName'](_0x119afb);return Number(_0x119afb['item']['getAttribute'](_0x4d0123));});}['_generateTape'](_0x2854ed,_0x4d8a2b){if(_0x2854ed['is']('element','$text'))_0x4d8a2b['push']({'item':_0x2854ed,'type':'text'});else{_0x2854ed['is']('element')&&_0x4d8a2b['push']({'item':_0x2854ed,'type':'elementStart'});for(const _0x5a00b9 of _0x2854ed['getChildren']())this['_generateTape'](_0x5a00b9,_0x4d8a2b);_0x2854ed['is']('element')&&_0x4d8a2b['push']({'item':_0x2854ed,'type':'elementEnd'});}return _0x4d8a2b;}['_getState'](){const _0x108c05=new Map(this['_touched']),_0x1e4471=new Map(_0x108c05),_0x37be51=new Map(),_0x260249={'insertions':{},'deletions':{}},_0x8c7365={'insertions':{},'deletions':{}},_0x3dc0a1=new Map(),_0x34e5d2=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x34e5d2['delete']('$graveyard');for(const _0x2bd55e of _0x34e5d2){const _0x1b5e5a=this['_diffRoots']['get'](_0x2bd55e)||B(_0x2bd55e,!0x1),_0x2c7b10=this['_baseRoots']['get'](_0x2bd55e)||B(_0x2bd55e,!0x1);_0x1b5e5a['isAttached']()||_0x2c7b10['isAttached']()?(_0x260249['insertions'][_0x2bd55e]=F(_0x1b5e5a),_0x260249['deletions'][_0x2bd55e]=F(_0x2c7b10),this['_copyMarkers'](_0x260249['deletions'][_0x2bd55e],_0x2c7b10),this['_copyMarkers'](_0x260249['insertions'][_0x2bd55e],_0x1b5e5a),_0x8c7365['insertions'][_0x2bd55e]=this['_generateTape'](this['_idsRoots']['get'](_0x2bd55e),[]),_0x8c7365['deletions'][_0x2bd55e]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x2bd55e)||B(_0x2bd55e,!0x1),[])):_0x34e5d2['delete'](_0x2bd55e);}for(const _0x9deca9 of _0x34e5d2){const _0xf7d81b=_0x8c7365['insertions'][_0x9deca9];for(const _0x7bcba9 of _0xf7d81b){const _0x312480=this['_getVidAttributeName'](_0x7bcba9),_0x223cd5=_0x7bcba9['item']['getAttribute'](_0x312480);_0x1e4471['delete'](_0x223cd5),_0x223cd5>=this['_startingRevisionId']&&_0x37be51['set'](_0x223cd5,_0x108c05['get'](_0x223cd5));}}for(const _0x4fe543 of _0x34e5d2){const _0x4b3cbe=_0x8c7365['insertions'][_0x4fe543],_0x136fd6=this['_getBaseVids'](_0x8c7365['deletions'][_0x4fe543]);let _0x531208=0x0;for(const _0x5e395d of _0x4b3cbe){const _0x4083f7=this['_getVidAttributeName'](_0x5e395d),_0x9a0d12=_0x5e395d['item']['getAttribute'](_0x4083f7);if(!_0x37be51['has'](_0x9a0d12)&&!_0x3dc0a1['has'](_0x9a0d12)){if(_0x1e4471['has'](_0x9a0d12))_0x531208++;else{if(_0x9a0d12!=_0x136fd6[_0x531208]){const _0x1d6953=_0x108c05['get'](_0x9a0d12)||_0x108c05['get'](_0x136fd6[_0x531208]);for(;_0x9a0d12!=_0x136fd6[_0x531208];)_0x1e4471['has'](_0x136fd6[_0x531208])||(_0x3dc0a1['set'](_0x136fd6[_0x531208],_0x1d6953),_0x108c05['set'](_0x136fd6[_0x531208],_0x1d6953)),_0x531208++;}_0x531208++;}}}}for(const _0x2ad79e of _0x34e5d2){const _0x569ebd=_0x8c7365['insertions'][_0x2ad79e];for(const _0x1862a9 of _0x569ebd){const _0x31ddc9=this['_getVidAttributeName'](_0x1862a9),_0x4da945=_0x1862a9['item']['getAttribute'](_0x31ddc9);if(_0x3dc0a1['has'](_0x4da945)){const _0x671572=_0x3dc0a1['get'](_0x4da945);_0x1e4471['has'](_0x4da945)||_0x1e4471['set'](_0x4da945,{..._0x671572}),_0x37be51['set'](_0x4da945,{..._0x671572});}}}for(const _0x108b51 of _0x1e4471['keys']())_0x108b51>=this['_startingRevisionId']&&_0x1e4471['delete'](_0x108b51);const _0x37ed03=new Map();for(const _0x2ae239 of _0x34e5d2){let _0x23e607=_0x8c7365['insertions'][_0x2ae239];for(const _0x4b978b of _0x23e607)if(_0x4b978b['item']['is']('element','tableCell')){const _0x5df810=this['_getVidAttributeName'](_0x4b978b),_0x4dd7fc=_0x4b978b['item']['getAttribute'](_0x5df810);if(_0x37be51['has'](_0x4dd7fc)){const _0x258be2=_0x4b978b['item']['parent']['parent']['getAttribute']('vid_start'),_0x3fd12f=_0x37ed03['get'](_0x258be2)||new Set();_0x3fd12f['add'](_0x37be51['get'](_0x4dd7fc)['userId']),_0x37ed03['set'](_0x258be2,_0x3fd12f);}}_0x23e607=_0x8c7365['deletions'][_0x2ae239];for(const _0x509676 of _0x23e607)if(_0x509676['item']['is']('element','tableCell')){const _0x5e6361=this['_getVidAttributeName'](_0x509676),_0x1de920=_0x509676['item']['getAttribute'](_0x5e6361);if(_0x1e4471['has'](_0x1de920)){const _0x426b83=_0x509676['item']['parent']['parent']['getAttribute']('vid_start'),_0x136064=_0x37ed03['get'](_0x426b83)||new Set();_0x136064['add'](_0x1e4471['get'](_0x1de920)['userId']),_0x37ed03['set'](_0x426b83,_0x136064);}}for(const _0x4a6b39 of _0x37ed03['keys']())(_0x37be51['has'](_0x4a6b39)||_0x1e4471['has'](_0x4a6b39))&&_0x37ed03['delete'](_0x4a6b39);}for(const _0x56e0f3 of _0x34e5d2){const _0x2004d3=_0x8c7365['insertions'][_0x56e0f3];let _0x1c24ad=null,_0x216796=null;for(const _0x5b9397 of _0x2004d3){const _0x10264c=this['_getVidAttributeName'](_0x5b9397),_0x5bc9ce=_0x5b9397['item']['getAttribute'](_0x10264c),_0x283729=_0x37ed03['get'](_0x5bc9ce);_0x283729&&'elementStart'==_0x5b9397['type']&&(_0x1c24ad=Array['from'](_0x283729)[0x0],_0x216796=_0x5b9397['item']['getAttribute']('vid_end')),_0x1c24ad&&(_0x1e4471['set'](_0x5bc9ce,{'userId':_0x1c24ad}),_0x37be51['set'](_0x5bc9ce,{'userId':_0x1c24ad})),_0x5bc9ce==_0x216796&&(_0x1c24ad=null,_0x216796=null);}}const _0x53096c={},_0x394705=new Set();for(const _0x4440ae of _0x34e5d2){const _0x2af872=_0x260249['deletions'][_0x4440ae],_0x1e3379=_0x260249['insertions'][_0x4440ae];for(const {userId:_0x22ccce}of this['_touchedMarkers']['values']())null!==_0x22ccce&&_0x394705['add'](_0x22ccce);for(const {userId:_0x31e78c}of this['_touchedRoots']['values']())null!==_0x31e78c&&_0x394705['add'](_0x31e78c);this['_markChanges'](_0x1e3379,_0x8c7365['insertions'][_0x4440ae],_0x37be51,'insertion',_0x394705),this['_markChanges'](_0x2af872,_0x8c7365['deletions'][_0x4440ae],_0x1e4471,'deletion',_0x394705),_0x53096c[_0x4440ae]={'insertions':this['_prepareViewToSave'](_0x1e3379),'deletions':this['_prepareViewToSave'](_0x2af872),'attachChange':this['_touchedRoots']['get'](_0x4440ae)||null,'attributesBefore':_0x3f3c34(this['_baseRootsAttributes']['get'](_0x4440ae))||{},'attributesAfter':_0x3f3c34(this['_diffRootsAttributes']['get'](_0x4440ae))};}return{'diffData':_0x53096c,'authorsIds':Array['from'](_0x394705)};}['_processRootBeforeSave'](_0x13eb03){for(const [,_0x47cb8f]of _0x13eb03['markers']){const _0x155b4e=_0x47cb8f['start']['getAncestors']()['filter'](_0x26c093=>'tableCell'==_0x26c093['name']);for(const _0x4490b9 of _0x155b4e)0x1==_0x4490b9['childCount']&&_0x4490b9['getChild'](0x0)['is']('element','paragraph')&&_0x4490b9['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x395538){this['_processRootBeforeSave'](_0x395538);const _0x585961=this['editor']['data']['toView'](_0x395538,{}),_0x15db11=Array['from'](_0x585961['getChildren']())['map'](_0x448c05=>this['_getViewJson'](_0x448c05));return JSON['stringify'](_0x15db11);}['_getViewJson'](_0x6181c9){if(_0x6181c9['is']('$text'))return _0x6181c9['data'];{const _0x4018a7=_0x6181c9;return{'type':Object['keys'](C)['find'](_0xdc7399=>_0x6181c9 instanceof C[_0xdc7399]),'name':_0x4018a7['name'],'attributes':Array['from'](_0x4018a7['getAttributes']()),'children':Array['from'](_0x4018a7['getChildren']())['map'](_0x512d6d=>this['_getViewJson'](_0x512d6d))};}}['_markChanges'](_0x4ea289,_0x16777f,_0x2c49ea,_0x22ae04,_0x31cfc1){let _0x174400=null,_0x1d6188=null,_0x1eeed8=0x0;const _0x57becc=this['editor']['model'];for(let _0x4ab630=0x0;_0x4ab630<_0x16777f['length'];_0x4ab630++){const _0x30ab4f=this['_getVidAttributeName'](_0x16777f[_0x4ab630]),_0x4e84b3=_0x16777f[_0x4ab630]['item']['getAttribute'](_0x30ab4f),_0x1c1b2b=_0x2c49ea['get'](_0x4e84b3),_0x229dd1=_0x4ab630==_0x16777f['length']-0x1;(!_0x174400&&_0x1c1b2b&&(_0x174400=_0x1c1b2b,_0x1d6188=_0x16777f[_0x4ab630]),_0x174400&&(!_0x1c1b2b||_0x1c1b2b['userId']!=_0x174400['userId']))&&(_0x152dbf(_0x1c1b2b,J(_0x1d6188,_0x4ea289,_0x57becc),J(_0x16777f[_0x4ab630],_0x4ea289,_0x57becc)),_0x174400=_0x1c1b2b||null,_0x1d6188=_0x1c1b2b?_0x16777f[_0x4ab630]:null),_0x174400&&_0x229dd1&&_0x152dbf(_0x1c1b2b,J(_0x1d6188,_0x4ea289,_0x57becc),q(_0x16777f[_0x4ab630],_0x4ea289,_0x57becc));}function _0x152dbf(_0x1c6bbb,_0x2b82f8,_0x190b7e){const _0x165fe7=_0x174400['userId'],_0x5e687='revision:'+_0x22ae04+':'+_0x165fe7+':'+_0x1eeed8++,_0xe2caeb=_0x57becc['createRange'](_0x2b82f8,_0x190b7e);_0x4ea289['markers']['set'](_0x5e687,_0xe2caeb),null!==_0x165fe7&&_0x31cfc1['add'](_0x165fe7);}}['_getVidAttributeName'](_0x3a6fae){switch(_0x3a6fae['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x13c286,_0x39e580){_0x13c286['baseVersion']=null;for(const _0xd15db2 in _0x13c286){const _0x23104e=_0x13c286[_0xd15db2];if(_0x23104e instanceof gt){const _0x49c185=_0x39e580['get'](_0x23104e['root']['rootName']);_0x13c286[_0xd15db2]=this['_fixPosition'](_0x23104e,_0x49c185);}if(_0x23104e instanceof vt){const _0x22d240=_0x39e580['get'](_0x23104e['root']['rootName']);_0x13c286[_0xd15db2]=this['_fixRange'](_0x23104e,_0x22d240);}'root'===_0xd15db2&&(_0x13c286['root']=_0x39e580['get'](_0x13c286['root']['rootName']));}}['_fixRange'](_0x587732,_0x531a8d){return this['editor']['model']['createRange'](this['_fixPosition'](_0x587732['start'],_0x531a8d),this['_fixPosition'](_0x587732['end'],_0x531a8d));}['_fixPosition'](_0x1cffdd,_0x5f577a){return this['editor']['model']['createPositionFromPath'](_0x5f577a,_0x1cffdd['path'],_0x1cffdd['stickiness']);}['_handleInsertOperation'](_0x31e203){const _0x5bc1c8=this['_idsRoots']['get'](_0x31e203['position']['root']['rootName']),_0x30fe58=this['_fixPosition'](_0x31e203['position'],_0x5bc1c8),_0x31e6dc=null===_0x31e203['_authorId']?null:_0x31e203['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x366b09=_0x30fe58['parent'],_0x396ead=this['_revisionId'],_0x58f2e2=[];for(const _0x20db55 of _0x31e203['nodes'])if(_0x20db55['is']('element'))_0x58f2e2['push'](this['_makeIdsRoot'](_0x20db55));else{for(let _0x1f02db=0x0;_0x1f02db<_0x20db55['offsetSize'];_0x1f02db++)_0x58f2e2['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x55bacf=this['_revisionId'];for(let _0x2d0806=_0x396ead;_0x2d0806<_0x55bacf;_0x2d0806++)this['_touched']['set'](_0x2d0806,{'userId':_0x31e6dc});_0x366b09['_insertChild'](_0x30fe58['offset'],_0x58f2e2);}['_handleMoveOperation'](_0x189a0){(_0x189a0=this['_cloneOperation'](_0x189a0,this['_idsRoots']))['_execute']();const _0xaf4c79=null===_0x189a0['_authorId']?null:_0x189a0['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x39492a=_0x189a0['getMovedRangeStart'](),_0x2c9578=_0x39492a['parent'],_0x448ba8=_0x39492a['offset'];!function _0x97595e(_0x56937a,_0x3bfb84,_0x5bd2fd,_0x23b71a){for(let _0x40dafb=_0x5bd2fd;_0x40dafb<_0x23b71a;_0x40dafb++){const _0x58ae59=_0x3bfb84['getChild'](_0x40dafb);_0x58ae59['is']('element','$text')?_0x56937a['set'](_0x58ae59['getAttribute']('vid'),{'userId':_0xaf4c79}):(_0x56937a['set'](_0x58ae59['getAttribute']('vid_start'),{'userId':_0xaf4c79}),_0x97595e(_0x56937a,_0x58ae59,0x0,_0x58ae59['childCount']),_0x56937a['set'](_0x58ae59['getAttribute']('vid_end'),{'userId':_0xaf4c79}));}}(this['_touched'],_0x2c9578,_0x448ba8,_0x448ba8+_0x189a0['howMany']);}['_handleMergeOperation'](_0xc44b06){const _0x39fc2a=null===(_0xc44b06=this['_cloneOperation'](_0xc44b06,this['_idsRoots']))['_authorId']?null:_0xc44b06['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x29c261=_0xc44b06['targetPosition']['parent'],_0xa36c91=_0xc44b06['sourcePosition']['parent'],_0x4701b6=_0x29c261['getAttribute']('vid_end'),_0x2abfe6=_0xa36c91['getAttribute']('vid_start');_0x29c261['_setAttribute']('vid_end',_0xa36c91['getAttribute']('vid_end')),_0xa36c91['_setAttribute']('vid_end',_0x4701b6),this['_touched']['set'](_0x2abfe6,{'userId':_0x39fc2a}),this['_touched']['set'](_0x4701b6,{'userId':_0x39fc2a}),_0xc44b06['_execute']();}['_handleSplitOperation'](_0x5eb707){const _0x44abfa=null===(_0x5eb707=this['_cloneOperation'](_0x5eb707,this['_idsRoots']))['_authorId']?null:_0x5eb707['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2ccf7f=_0x5eb707['graveyardPosition'],_0x45e9bc=_0x5eb707['splitPosition']['parent'];_0x5eb707['_execute']();const _0x3fd164=_0x45e9bc['getAttribute']('vid_end'),_0x46d043=_0x5eb707['insertionPosition']['nodeAfter'];if(_0x2ccf7f){const _0x33ab35=_0x46d043['getAttribute']('vid_end'),_0x442dbd=_0x45e9bc['getAttribute']('vid_end');_0x45e9bc['_setAttribute']('vid_end',_0x33ab35),_0x46d043['_setAttribute']('vid_end',_0x442dbd),this['_touched']['set'](_0x45e9bc['getAttribute']('vid_end'),{'userId':_0x44abfa}),this['_touched']['set'](_0x46d043['getAttribute']('vid_start'),{'userId':_0x44abfa});}else{const _0x2bef7e=this['_revisionId']++,_0x8a54c=this['_revisionId']++;_0x45e9bc['_setAttribute']('vid_end',_0x2bef7e),_0x46d043['_setAttribute']('vid_start',_0x8a54c),_0x46d043['_setAttribute']('vid_end',_0x3fd164),this['_touched']['set'](_0x2bef7e,{'userId':_0x44abfa}),this['_touched']['set'](_0x8a54c,{'userId':_0x44abfa});}}['_handleMarkerOperation'](_0x4f452f){if(!_0x4f452f['affectsData'])return;const _0x110cee=(_0x4f452f=this['_cloneOperation'](_0x4f452f,this['_diffRoots']))['oldRange']?_0x4f452f['oldRange']['root']:null,_0x356c91=_0x4f452f['newRange']?_0x4f452f['newRange']['root']:null;_0x110cee&&this['_markers']['delete'](_0x4f452f['name']),_0x356c91&&this['_markers']['set'](_0x4f452f['name'],_0x4f452f['newRange']['clone']());const _0x124f7e=null===_0x4f452f['_authorId']?null:_0x4f452f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4deead=_0x4f452f['name'];if(!this['_touchedMarkers']['has'](_0x4deead))return void this['_touchedMarkers']['set'](_0x4deead,{'range':_0x4f452f['oldRange'],'userId':_0x124f7e});const _0x5885ae=this['_touchedMarkers']['get'](_0x4deead),_0x3a7d1e=_0x5885ae['range'],_0x425f80=_0x4f452f['newRange'];null==_0x3a7d1e&&null==_0x425f80||_0x3a7d1e&&_0x425f80&&_0x3a7d1e['isEqual'](_0x425f80)?this['_touchedMarkers']['delete'](_0x4f452f['name']):_0x5885ae['userId']=_0x124f7e;}['_handleRootOperation'](_0x55701e,_0x445ea5){this['_diffRoots']['has'](_0x55701e['rootName'])?this['_diffRoots']['get'](_0x55701e['rootName'])['_isAttached']=_0x55701e['isAdd']:(this['_diffRoots']['set'](_0x55701e['rootName'],B(_0x55701e['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x55701e['rootName'],{}),_0x445ea5&&this['_idsRoots']['set'](_0x55701e['rootName'],B(_0x55701e['rootName'],!0x0)));const _0x52202d=null===_0x55701e['_authorId']?null:_0x55701e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x44057a=this['_touchedRoots']['get'](_0x55701e['rootName']);_0x44057a&&_0x44057a['userId']===_0x52202d?this['_touchedRoots']['delete'](_0x55701e['rootName']):this['_touchedRoots']['set'](_0x55701e['rootName'],{'userId':_0x52202d,'isAttached':_0x55701e['isAdd']});}['_handleRootAttributeOperation'](_0x4078a7){const _0x42d475=this['_diffRootsAttributes']['get'](_0x4078a7['root']['rootName']);null===_0x4078a7['newValue']?delete _0x42d475[_0x4078a7['key']]:_0x42d475[_0x4078a7['key']]=_0x4078a7['newValue'];}}function F(_0x2c7b62){const _0x855a5b=B(_0x2c7b62['rootName'],_0x2c7b62['isAttached']());for(const _0x20dc66 of _0x2c7b62['getChildren']()){const _0x2826ef=_0x20dc66['_clone'](!0x0);_0x855a5b['_appendChild'](_0x2826ef);}return _0x855a5b;}function B(_0x507716,_0x179657=!0x0){const _0x3c9c80=new mt();return _0x3c9c80['rootName']=_0x507716,_0x3c9c80['_isAttached']=_0x179657,_0x3c9c80['isAttached']=()=>_0x3c9c80['_isAttached'],_0x3c9c80;}function J(_0x4af3e3,_0x1313f2,_0x3354b7){const _0x3500f9='elementEnd'==_0x4af3e3['type']?_0x3354b7['createPositionAt'](_0x4af3e3['item'],'end'):_0x3354b7['createPositionBefore'](_0x4af3e3['item']);return _0x3354b7['createPositionFromPath'](_0x1313f2,_0x3500f9['path'],_0x3500f9['stickiness']);}function q(_0x5c4163,_0x25f3e9,_0x468bdb){const _0xb6550c='elementStart'==_0x5c4163['type']?_0x468bdb['createPositionAt'](_0x5c4163['item'],0x0):_0x468bdb['createPositionAfter'](_0x5c4163['item']);return _0x468bdb['createPositionFromPath'](_0x25f3e9,_0xb6550c['path'],_0xb6550c['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x2275f5,_0x41de56){super(_0x2275f5),this['focusTracker']=new _0x71f497(),this['keystrokes']=new _0x5cd6bf(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x41de56),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x1e424c(this);}['render'](){super['render'](),_0x4c83e3({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x3fea55=_0x357780=>_0x357780['stopPropagation']();this['keystrokes']['set']('arrowright',_0x3fea55),this['keystrokes']['set']('arrowleft',_0x3fea55),this['keystrokes']['set']('arrowup',_0x3fea55),this['keystrokes']['set']('arrowdown',_0x3fea55);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x1764fd){this['revisionNameInputView']['fieldView']['element']['value']=_0x1764fd['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x317ac2){const _0xa570e=new _0x3f921c(this['locale'],_0x2498fb),_0x5e3537=_0xa570e['fieldView'];_0x5e3537['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x3d9726=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x317ac2&&(_0x3d9726+='\x20('+R(this['locale'],'optional')+')'),(_0xa570e['label']=_0x3d9726,_0x5e3537['on']('input',()=>{this['revisionNameInputValue']=_0x5e3537['element']['value']['trim']();}),_0xa570e);}}class u extends _0x1c98c7{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x488eb5=this['editor'],_0xe6e9f6=_0x488eb5['plugins']['get']('RevisionTracker');_0x488eb5['ui']['componentFactory']['add']('revisionHistory',_0x290169=>{const _0x1cc3d9=_0x547500(_0x290169),_0x3e807f=_0x1cc3d9['panelView']['children'],_0x3d5c3e=new _0x1c3951(_0x290169),_0x436237=new _0x4d7d59(_0x290169),_0x2b7d8c=new te(_0x290169),_0x19cc66=new _0x4d7d59(_0x290169),_0x3a1034=new te(_0x290169);return _0x1cc3d9['bind']('isEnabled')['to'](_0xe6e9f6,'isReady',_0xe6e9f6,'isEnabled',_0x488eb5,'isReadOnly',(_0x1b4c7a,_0x25298d,_0x2f7a67)=>_0x1b4c7a&&_0x25298d&&!_0x2f7a67),_0x1cc3d9['buttonView']['set']({'icon':_0x14c866['history'],'label':R(_0x290169,'Revision\x20history'),'tooltip':!0x0}),_0x2b7d8c['set']({'label':R(_0x290169,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x2b7d8c['bind']('isEnabled')['to'](_0xe6e9f6,'isReady',_0xe6e9f6,'isEnabled',_0x488eb5,'isReadOnly',(_0x45eeda,_0x2fccb2,_0x3fcc87)=>_0x45eeda&&_0x2fccb2&&!_0x3fcc87),_0x2b7d8c['on']('execute',()=>this['_showDialog']()),_0x3a1034['set']({'label':R(_0x290169,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x3a1034['bind']('isEnabled')['to'](_0xe6e9f6,'isReady',_0x488eb5,'isReadOnly',(_0x439ec5,_0x547579)=>_0x439ec5&&!_0x547579),_0x3a1034['on']('execute',()=>{_0x488eb5['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x1cc3d9['isOpen']=!0x1,_0x488eb5['editing']['view']['focus']();}),_0x436237['children']['add'](_0x2b7d8c),_0x19cc66['children']['add'](_0x3a1034),_0x3d5c3e['role']='menu',_0x3d5c3e['items']['addMany']([_0x436237,_0x19cc66]),_0x3e807f['add'](_0x3d5c3e),_0x1cc3d9;}),_0x488eb5['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x286ffb=this['editor'],_0x5db178=_0x286ffb['locale'],_0x3e76de=new _0x10f5c5(_0x5db178),_0x5c2a29=new _0xbf7996(_0x5db178);_0x3e76de['buttonView']['set']({'icon':_0x14c866['history'],'label':R(_0x5db178,'Revision\x20history')});const _0x125e10=new _0x228704(_0x5db178,_0x3e76de),_0x2b2ac4=new _0x3ceb1f(_0x5db178);_0x2b2ac4['set']({'label':R(_0x5db178,'Save\x20current\x20revision')}),_0x2b2ac4['delegate']('execute')['to'](_0x3e76de),_0x2b2ac4['on']('execute',()=>{this['_showDialog']();}),_0x125e10['children']['add'](_0x2b2ac4),_0x5c2a29['items']['add'](_0x125e10);const _0x4f4e1b=new _0x228704(_0x5db178,_0x3e76de),_0x2c9090=new _0x3ceb1f(_0x5db178);return _0x2c9090['set']({'label':R(_0x5db178,'Open\x20revision\x20history')}),_0x2c9090['delegate']('execute')['to'](_0x3e76de),_0x2c9090['on']('execute',()=>{_0x286ffb['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x4f4e1b['children']['add'](_0x2c9090),_0x5c2a29['items']['add'](_0x4f4e1b),_0x3e76de['panelView']['children']['add'](_0x5c2a29),_0x3e76de;}['_showDialog'](){const _0x528480=this['editor'],_0x1f4e35=_0x528480['locale'],_0x50800f=_0x528480['plugins']['get']('Dialog'),_0x30f4ad=_0x528480['plugins']['get']('RevisionTracker');function _0x142ee8(_0x16d498){_0x528480['config']['get']('revisionHistory.requireRevisionName')&&''===_0x16d498['revisionName']?_0x16d498['revisionNameInputView']['errorText']=R(_0x1f4e35,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x528480['plugins']['get'](l)['saveRevision']({'name':_0x16d498['revisionName']}),_0x50800f['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x142ee8(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x50800f['show']({'id':'revisionSave','title':R(_0x1f4e35,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x528480['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x50800f['hide']()},{'label':R(_0x528480['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x4aad56){_0x4aad56['bind']('isEnabled')['to'](_0x30f4ad,'isReady',_0x30f4ad,'isEnabled',_0x528480,'isReadOnly',(_0x3ea8ff,_0x601770,_0x46c117)=>_0x3ea8ff&&_0x601770&&!_0x46c117);},'onExecute':()=>_0x142ee8(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x582dfc=this['editor'],_0x4ac349=_0x582dfc['locale'];this['_saveRevisionFormView']=new hs(_0x4ac349,_0x582dfc['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Y extends ts{['changeId'];['_model'];constructor(_0x335b04,_0x192fe0){super(_0x335b04),this['_model']=_0x192fe0,this['changeId']=_0x192fe0['id'];const _0x3d194f=this['bindTemplate'],_0x50b273=R(_0x335b04,_0x192fe0['data']['isSuggestion']?'Suggested\x20by':'add'==_0x192fe0['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x192fe0['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x3d194f['to']('type',_0x4154ec=>'ck-revision-change__'+_0x4154ec)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x50b273}]},{'text':'\x20'+_0x192fe0['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x96c3fd(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x5acc88){super(),this['id']=_0x5acc88['id']||_0x4e6837(),this['author']=_0x5acc88['author'],this['type']=_0x5acc88['type'],this['data']=_0x5acc88['data']||{},this['rootName']=_0x5acc88['rootName'],this['set']('createdAt',_0x5acc88['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(_0x57e549,_0x28d3ad){this['newRevisionId']=_0x57e549,this['oldRevisionId']=_0x28d3ad,this['changes']=new _0x3fda2b();}['_setChanges'](_0xacc8cd){for(const _0xd8f0aa of _0xacc8cd)this['changes']['add'](_0xd8f0aa);}}const Z={'c':_0x58bc9a,'a':_0x4662ee,'e':_0x425a8a,'r':_0x206af8,'u':_0x224256};class d extends _0x1c98c7{['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[_0x4ae6c4,_0x3c5899,j];}constructor(_0x424c7d){super(_0x424c7d),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',(_0x3819cf,_0xe52aa,_0x1f999c)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x283103=>{for(const _0x17260c of this['editor']['editing']['view']['document']['roots'])_0x1f999c?_0x283103['removeClass']('ck-editor__editable__overlay',_0x17260c):_0x283103['addClass']('ck-editor__editable__overlay',_0x17260c);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x1741ed=>null!==_0x1741ed),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x4b8dcb,_0xb89c52,_0x58c697)=>_0x4b8dcb&&_0x58c697?_0xb89c52['changes']['getIndex'](_0x58c697):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x577eca,_0x5dbd37)=>_0x577eca?_0x5dbd37['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x3c5899);}['init'](){const _0x2cfd7e=this['editor'],_0x622e57=new yt(_0x2cfd7e,{'direction':'backward'}),_0xabd82e=new yt(_0x2cfd7e,{'direction':'forward'});(_0x2cfd7e['commands']['add']('showPreviousChange',_0x622e57),_0x2cfd7e['commands']['add']('showNextChange',_0xabd82e),_0x2cfd7e['commands']['add']('restoreRevision',new _t(_0x2cfd7e)),this['on']('change:numberOfChanges',()=>{_0x622e57['refresh'](),_0xabd82e['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x2cfd7e['enableReadOnlyMode']('revision-viewer'),_0x2cfd7e['plugins']['has']('WidgetToolbarRepository'))&&_0x2cfd7e['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x2528e9){await this['loadRevisionData'](_0x2528e9);const _0x207c7d={};for(const _0x3bbab4 in _0x2528e9['diffData']){if(_0x2528e9['diffData'][_0x3bbab4]['attachChange']&&!_0x2528e9['diffData'][_0x3bbab4]['attachChange']['isAttached'])continue;const _0x189242=this['_removeRevisionMarkers'](JSON['parse'](_0x2528e9['diffData'][_0x3bbab4]['insertions'])),_0x502715=this['editor']['editing']['view']['document'],_0x366877=new _0x5a9f7e(_0x502715,_0x189242['map'](_0x9b0d8c=>this['_getViewObj'](_0x9b0d8c)));this['editor']['data']['processor']['useFillerType']('marked'),_0x207c7d[_0x3bbab4]=this['editor']['data']['processor']['toData'](_0x366877),this['editor']['data']['processor']['useFillerType']('default');}return _0x207c7d;}async['getRevisionRootsAttributes'](_0x57c69c){await this['loadRevisionData'](_0x57c69c);const _0x1b2689={};for(const _0x398cef in _0x57c69c['diffData'])_0x57c69c['diffData'][_0x398cef]['attachChange']&&!_0x57c69c['diffData'][_0x398cef]['attachChange']['isAttached']||(_0x1b2689[_0x398cef]=_0x57c69c['diffData'][_0x398cef]['attributesAfter']||{});return _0x1b2689;}['_removeRevisionMarkers'](_0x504c21){return(_0x504c21=_0x504c21['filter'](_0x3359dc=>!_0x3359dc['name']||'revision-start'!==_0x3359dc['name']&&'revision-end'!==_0x3359dc['name']))['forEach'](_0x1e4f29=>{'string'!=typeof _0x1e4f29&&(_0x1e4f29['children']=this['_removeRevisionMarkers'](_0x1e4f29['children']),_0x1e4f29['attributes']=_0x1e4f29['attributes']['filter'](_0x295e18=>!_0x295e18[0x0]['startsWith']('data-revision-')));}),_0x504c21;}async['compare'](_0x4202fd,_0x5a7cb1,_0x4054a8=!0x1){if(!this['isEnabled'])return;const _0x58048a=this['diff'],_0x33442d=this['repository'],_0x5e09d8='string'==typeof _0x4202fd?_0x33442d['getRevision'](_0x4202fd):_0x4202fd,_0x94638e='string'==typeof _0x5a7cb1?_0x33442d['getRevision'](_0x5a7cb1):_0x5a7cb1,_0xf842a2=_0x5e09d8['id'],_0x2fe09f=_0x94638e?_0x94638e['id']:null;if(!_0x4054a8&&this['diff']&&this['diff']['newRevisionId']===_0xf842a2&&this['diff']['oldRevisionId']===_0x2fe09f)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0xf842a2,_0x2fe09f);const _0x10ee2b=this['_getRevisionsRange'](_0x5e09d8,_0x94638e,!0x0)['map'](_0x2bcc95=>this['loadRevisionData'](_0x2bcc95));return _0x10ee2b['push'](new Promise(_0x4bc048=>{setTimeout(_0x4bc048,0x14);})),Promise['all'](_0x10ee2b)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x40b94f=this['_getDiff'](_0xf842a2,_0x2fe09f);for(const _0x41f0f8 of _0x40b94f['changes'])this['_changeIdToChange']['set'](_0x41f0f8['id'],_0x41f0f8);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x57489c=>{for(const _0x1370f3 of this['editor']['model']['document']['getRootNames']())_0x57489c['detachRoot'](_0x1370f3);for(const _0x3dfd4c of Object['keys'](_0x40b94f['model'])){const _0x39742e=_0x57489c['addRoot'](_0x3dfd4c);for(const _0x2a3b70 of Object['keys'](_0x40b94f['attributes'][_0x3dfd4c]))_0x57489c['setAttribute'](_0x2a3b70,_0x40b94f['attributes'][_0x3dfd4c][_0x2a3b70],_0x39742e);_0x57489c['insert'](_0x40b94f['model'][_0x3dfd4c],_0x39742e,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x40b94f['changes'])),this['isReady']=!0x0;})['catch'](_0x5d4204=>{console['error'](_0x5d4204),this['_cleanUp'](),_0x58048a&&(this['diff']=_0x58048a),this['isReady']=!0x0;});}['addRevisionData'](_0x52f057,_0x4f352e){const _0x51200a=this['repository']['createRevision'](_0x52f057);return _0x51200a['on']('_update',(_0x3d3834,_0x2235a4,_0x556265)=>_0x4f352e(_0x2235a4,_0x556265,_0x51200a)),this['repository']['addRevision'](_0x51200a),_0x51200a;}['loadRevisionData'](_0x1e8f1c){if(!_0x1e8f1c||_0x1e8f1c['diffData'])return Promise['resolve']();{const _0x2b8394=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x2b8394,'revisionId':_0x1e8f1c['id']})['then'](_0x25b7c9=>{_0x1e8f1c['_update']({'diffData':_0x25b7c9['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},_0x53b060=>{for(const _0x448b50 of this['editor']['model']['document']['getRootNames']())_0x53b060['detachRoot'](_0x448b50);});}['_sortAndFilterDiffChanges'](_0x197fc5){const _0x32b180=[],_0x329a28=new Map();for(const _0x4f25a9 of this['editor']['model']['document']['getRootNames']()){const _0x5650d5=this['editor']['editing']['view']['getDomRoot'](_0x4f25a9);if(!_0x5650d5)continue;const _0x190c08=_0x5650d5['getClientRects']()['item'](0x0);_0x190c08&&(_0x32b180['push'](_0x4f25a9),_0x329a28['set'](_0x4f25a9,_0x190c08));}return _0x32b180['sort']((_0x1af020,_0x3df4cb)=>{const _0x16e8a5=_0x329a28['get'](_0x1af020),_0x118d98=_0x329a28['get'](_0x3df4cb);return _0x16e8a5['y']-_0x118d98['y']||_0x16e8a5['x']-_0x118d98['x'];}),(_0x197fc5=_0x197fc5['filter'](_0x3c2adb=>_0x32b180['includes'](_0x3c2adb['rootName'])))['sort']((_0x2ad8c1,_0x270b28)=>_0x32b180['indexOf'](_0x2ad8c1['rootName'])-_0x32b180['indexOf'](_0x270b28['rootName'])),_0x197fc5;}['_makeTape'](_0x4b8a5f){const _0x1440af=Array['from'](_0x4b8a5f['markers'])['filter'](([_0x3291ae,_0x5795ec])=>_0x3291ae['startsWith']('revision:')&&!_0x5795ec['isCollapsed']),_0x3217df=Array['from'](this['editor']['model']['createRangeIn'](_0x4b8a5f)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x1440af['length'])for(const _0x89e716 of _0x3217df){const [_0x38c562,_0x5ca6a4]=_0x1440af[0x0],[,_0x54c4ce,_0x211979]=_0x38c562['split'](':');if(_0x5ca6a4['end']['isEqual'](_0x89e716['nextPosition'])&&_0x1440af['shift'](),(_0x89e716['previousPosition']['isEqual'](_0x5ca6a4['start'])||_0x89e716['previousPosition']['isAfter'](_0x5ca6a4['start']))&&('insertion'==_0x54c4ce?_0x89e716['isAdded']={'userId':_0x211979}:'deletion'==_0x54c4ce&&(_0x89e716['isRemoved']={'userId':_0x211979})),0x0==_0x1440af['length'])break;}return _0x3217df;}['_refreshStartEndIndex'](_0x2dbddf){const _0x5b39e5=new Map();for(let _0x21088d=0x0;_0x21088d<_0x2dbddf['length'];_0x21088d++)'text'===_0x2dbddf[_0x21088d]['type']?(_0x2dbddf[_0x21088d]['item']['startIndex']=_0x21088d,_0x2dbddf[_0x21088d]['item']['endIndex']=_0x21088d):('elementStart'===_0x2dbddf[_0x21088d]['type']?_0x2dbddf[_0x21088d]['item']['startIndex']=_0x21088d:'elementEnd'===_0x2dbddf[_0x21088d]['type']&&(_0x2dbddf[_0x21088d]['item']['endIndex']=_0x21088d),_0x5b39e5['set'](_0x2dbddf[_0x21088d]['id'],_0x21088d));for(const _0x34e36e of _0x5b39e5['values']())'elementStart'===_0x2dbddf[_0x34e36e]['type']?_0x2dbddf[_0x34e36e]['item']['endIndex']=_0x5b39e5['get'](_0x2dbddf[_0x34e36e]['pairId']):'elementEnd'===_0x2dbddf[_0x34e36e]['type']&&(_0x2dbddf[_0x34e36e]['item']['startIndex']=_0x5b39e5['get'](_0x2dbddf[_0x34e36e]['pairId']));}['_processTape'](_0x4c96f1){for(let _0x1bddec=0x0;_0x1bddec<_0x4c96f1['length'];_0x1bddec++){if('elementStart'===_0x4c96f1[_0x1bddec]['type'])_0x4c96f1[_0x1bddec]['item']['startIndex']=_0x1bddec;else{if('elementEnd'===_0x4c96f1[_0x1bddec]['type']){_0x4c96f1[_0x1bddec]['item']['endIndex']=_0x1bddec;const _0xd4286f=_0x4c96f1[_0x1bddec]['item']['startIndex'];_0x4c96f1[_0xd4286f]['pairId']=_0x4c96f1[_0x1bddec]['id'],_0x4c96f1[_0x1bddec]['pairId']=_0x4c96f1[_0xd4286f]['id'];}else _0x4c96f1[_0x1bddec]['item']['startIndex']=_0x1bddec,_0x4c96f1[_0x1bddec]['item']['endIndex']=_0x1bddec,_0x4c96f1[_0x1bddec]['pairId']=null;}_0x4c96f1[_0x1bddec]['markersStart']||(_0x4c96f1[_0x1bddec]['markersStart']=[],_0x4c96f1[_0x1bddec]['markersEnd']=[]);}}['_markInsertions'](_0x3352fc,_0x5d3e3d){const _0x522c29=_0x3352fc['filter'](_0x1764eb=>!_0x1764eb['isAdded']);for(let _0x26ce50=0x0;_0x26ce50<_0x5d3e3d['length'];_0x26ce50++)_0x5d3e3d[_0x26ce50]['isAdded']&&(_0x522c29[_0x26ce50]['isAdded']=_0x5d3e3d[_0x26ce50]['isAdded']);}['_makeModelFromViewString'](_0x552335){const _0x7e96db=JSON['parse'](_0x552335),_0x2271b7=this['editor']['editing']['view']['document'],_0x3e85ef=new _0x5a9f7e(_0x2271b7,_0x7e96db['map'](_0x2f05d7=>this['_getViewObj'](_0x2f05d7)));return this['editor']['data']['toModel'](_0x3e85ef);}['_getViewObj'](_0x47397d){const _0x3264cd=this['editor']['editing']['view']['document'];if('string'==typeof _0x47397d)return new _0x377b5b(_0x3264cd,_0x47397d);{const _0x4f9008=_0x47397d['children']['map'](_0x3fa9d4=>this['_getViewObj'](_0x3fa9d4));return new(Z[_0x47397d['type']]||_0x1fac3b)(_0x3264cd,_0x47397d['name'],_0x47397d['attributes'],_0x4f9008);}}['_getDiff'](_0x31dc3a,_0x46d85d=null){const _0x3bd816=this['repository']['getRevision'](_0x31dc3a),_0x1b3510=_0x46d85d?this['repository']['getRevision'](_0x46d85d):null,_0x465d3c=this['_getRevisionsRange'](_0x3bd816,_0x1b3510),_0x5236b9=_0x465d3c[_0x465d3c['length']-0x1],_0x1a4550=new Map(),_0x4f9961={'model':{},'attributes':{},'changes':[]},_0x3fc5e8=new Set(),_0x2ff99e=new Map();for(let _0x50292d=_0x465d3c['length']-0x1;_0x50292d>=0x0;_0x50292d--){const _0x3d72b6=_0x465d3c[_0x50292d];for(const _0x2ae8d9 of Object['keys'](_0x3d72b6['diffData']))if(_0x3d72b6['diffData'][_0x2ae8d9]['attachChange']){const _0x2ec889=_0x3d72b6['diffData'][_0x2ae8d9]['attachChange'];_0x2ec889['isAttached']?(_0x3fc5e8['add'](_0x2ae8d9),_0x2ff99e['has'](_0x2ae8d9)&&_0x2ff99e['get'](_0x2ae8d9)['userId']==_0x2ec889['userId']?_0x2ff99e['delete'](_0x2ae8d9):_0x2ff99e['set'](_0x2ae8d9,_0x2ec889)):_0x2ff99e['has'](_0x2ae8d9)?(_0x3fc5e8['delete'](_0x2ae8d9),_0x2ff99e['delete'](_0x2ae8d9)):(_0x3fc5e8['add'](_0x2ae8d9),_0x2ff99e['set'](_0x2ae8d9,_0x2ec889));}else _0x3fc5e8['add'](_0x2ae8d9);}for(const _0x2fc1d0 of _0x3fc5e8){const _0x49863e=_0x2ff99e['has'](_0x2fc1d0)&&!_0x2ff99e['get'](_0x2fc1d0)['isAttached'];let _0xfe194f=_0x49863e?_0x465d3c['length']-0x1:0x0;const _0x79e502=_0x49863e?-0x1:0x1;for(;_0x465d3c[_0xfe194f];){const _0x1e8080=_0x465d3c[_0xfe194f];if(_0x1e8080['diffData'][_0x2fc1d0]){const _0x49b706=_0x49863e?_0x1e8080['diffData'][_0x2fc1d0]['attributesBefore']:_0x1e8080['diffData'][_0x2fc1d0]['attributesAfter'];_0x4f9961['attributes'][_0x2fc1d0]=_0x49b706?_0x3f3c34(_0x49b706):{};break;}_0xfe194f+=_0x79e502;}}for(const _0x4cbc49 of _0x465d3c){_0x4cbc49['model']={};for(const _0x681178 of _0x4cbc49['authors'])_0x1a4550['set'](_0x681178['id'],_0x681178);for(const _0x54eff2 of _0x3fc5e8){const _0x2b320b=_0x4cbc49['diffData'][_0x54eff2]?_0x4cbc49['diffData'][_0x54eff2]['insertions']:'[]',_0x3834e7=_0x4cbc49['diffData'][_0x54eff2]?_0x4cbc49['diffData'][_0x54eff2]['deletions']:'[]';_0x4cbc49['model'][_0x54eff2]={'insertions':this['_makeModelFromViewString'](_0x2b320b),'deletions':this['_makeModelFromViewString'](_0x3834e7)};}}for(const _0xb6fff1 of _0x3fc5e8){let _0x3d3465=null,_0x32fbc8=0x0;const _0x12af27=new Map(Array['from'](_0x3bd816['model'][_0xb6fff1]['insertions']['markers'])['filter'](([_0xbc71c8])=>!_0xbc71c8['startsWith']('revision:')));let _0x2d1876=0x0;for(const _0x18b93c of _0x465d3c){const _0x4128e8=this['_makeTape'](_0x18b93c['model'][_0xb6fff1]['insertions']);_0x18b93c==_0x3bd816?(_0x3d3465=_0x4128e8,_0x32fbc8=_0x3d3465['length'],_0x3d3465['forEach'](_0x59801b=>{_0x59801b['id']=_0x2d1876++;}),this['_processTape'](_0x3d3465)):this['_markInsertions'](_0x3d3465,_0x4128e8);const _0x2cfafb=_0x3d3465['filter'](_0x4442f2=>!_0x4442f2['isAdded'])['map'](_0x29bae0=>_0x29bae0['id']);let _0x47f327=0x0;const _0x40f71f=this['_makeTape'](_0x18b93c['model'][_0xb6fff1]['deletions']);_0x40f71f['forEach'](_0x592dab=>{_0x592dab['isRemoved']?_0x592dab['id']=_0x32fbc8++:_0x592dab['id']=_0x2cfafb[_0x47f327++];}),this['_processTape'](_0x40f71f),this['_setDistance'](_0x3d3465,'isAdded'),this['_setDistance'](_0x40f71f,'isRemoved'),_0x18b93c==_0x3bd816&&this['_markMarkers'](_0x3d3465,_0x12af27),_0x3d3465=this['_joinTapes'](_0x3d3465,_0x40f71f),this['_refreshStartEndIndex'](_0x3d3465),this['_setDistance'](_0x3d3465,'isRemoved');}_0x3d3465=_0x3d3465['filter'](_0x4e2e43=>!(_0x4e2e43['isAdded']&&_0x4e2e43['isRemoved']));const _0xc080ce=new Map(_0x5236b9['model'][_0xb6fff1]['deletions']['markers']),_0x4f1988=new Set(_0x12af27['keys']());for(const _0x194089 of _0xc080ce['keys']())_0x4f1988['delete'](_0x194089);this['_markSuggestions'](_0x3d3465,_0x4f1988),this['_fixObsoleteTags'](_0x3d3465),_0x3d3465=this['_removeMissingPairs'](_0x3d3465),_0x3d3465=this['_markMismatchedRemovedTags'](_0x3d3465),_0x3d3465=this['_removeUnsupportedChanges'](_0x3d3465);const {root:_0x16e9c2,changes:_0x4d1ccc}=this['_makeModelFromTape'](_0x3d3465,_0x1a4550,_0xb6fff1);_0x4f9961['model'][_0xb6fff1]=_0x16e9c2;const _0x3e8eb7=_0x2ff99e['get'](_0xb6fff1);if(_0x3e8eb7){const _0x1fe813=_0x1a4550['get'](_0x3e8eb7['userId']),_0x2990d0=new r({'author':_0x1fe813,'type':_0x3e8eb7['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0xb6fff1});_0x4d1ccc['unshift'](_0x2990d0),_0x4f9961['attributes'][_0xb6fff1]['revisionHistoryAttachChange']=_0x2990d0['id'];}_0x4f9961['changes']=_0x4f9961['changes']['concat'](_0x4d1ccc);}return _0x4f9961;}['_markMarkers'](_0xb8d635,_0x2fc7c6){for(let _0x53ee7c=0x0;_0x53ee7c<_0xb8d635['length'];_0x53ee7c++)for(const [_0xcacf0b,_0x50a9f1]of _0x2fc7c6)_0x50a9f1['start']['isEqual'](_0xb8d635[_0x53ee7c]['previousPosition'])&&_0xb8d635[_0x53ee7c]['markersStart']['push'](_0xcacf0b),_0x50a9f1['end']['isEqual'](_0xb8d635[_0x53ee7c]['nextPosition'])&&_0xb8d635[_0x53ee7c]['markersEnd']['push'](_0xcacf0b);}['_joinTapes'](_0x1d1988,_0x2f39a0){let _0x196081=[],_0x3fce28=0x0,_0x3bf906=0x0;for(;_0x3fce28<_0x1d1988['length']||_0x3bf906<_0x2f39a0['length'];){const _0x3cb87d=_0x1d1988[_0x3fce28]||{},_0x5d922f=_0x2f39a0[_0x3bf906]||{};if(_0x3cb87d['id']==_0x5d922f['id'])_0x3fce28++,_0x3bf906++,_0x196081['push'](_0x3cb87d);else{if(_0x5d922f['isRemoved']&&_0x3cb87d['isAdded']){const {commonTape:_0x3bdfdc,iEnd:_0x1ed258,jEnd:_0xb16712}=this['_threeWayMerge'](_0x1d1988,_0x3fce28,_0x2f39a0,_0x3bf906);_0x196081=_0x196081['concat'](_0x3bdfdc),_0x3fce28=_0x1ed258,_0x3bf906=_0xb16712;}else _0x5d922f['isRemoved']?(_0x3bf906++,_0x196081['push'](_0x5d922f)):(_0x3fce28++,_0x196081['push'](_0x3cb87d));}}return _0x196081;}['_markSuggestions'](_0x49b626,_0x2f177f){const _0xb16d0d=[];for(let _0x492e71=0x0;_0x492e71<_0x49b626['length'];_0x492e71++){for(let _0x4ad2f3=0x0;_0x4ad2f3<_0x49b626[_0x492e71]['markersStart']['length'];_0x4ad2f3++){const _0xad5e2c=_0x49b626[_0x492e71]['markersStart'][_0x4ad2f3];if(!_0x2f177f['has'](_0xad5e2c))continue;const {group:_0x5a4a03,type:_0x43a6c1,authorId:_0x426420}=_0x4f9519(_0xad5e2c);'revision-suggestion'!=_0x5a4a03||'insertion'!=_0x43a6c1&&'deletion'!=_0x43a6c1||(_0xb16d0d['unshift']({'type':_0x43a6c1,'name':_0xad5e2c,'userId':_0x426420}),_0x49b626[_0x492e71]['markersStart']['splice'](_0x4ad2f3,0x1),_0x4ad2f3--);}_0x5677c0(_0x49b626[_0x492e71]);for(let _0x322d16=0x0;_0x322d16<_0x49b626[_0x492e71]['markersEnd']['length'];_0x322d16++){const _0x32f82e=_0x49b626[_0x492e71]['markersEnd'][_0x322d16];if(!_0x2f177f['has'](_0x32f82e))continue;const {group:_0x3f1694,type:_0x2c56b7}=_0x4f9519(_0x32f82e);if('revision-suggestion'!=_0x3f1694||'insertion'!=_0x2c56b7&&'deletion'!=_0x2c56b7)continue;_0x49b626[_0x492e71]['markersEnd']['splice'](_0x322d16,0x1),_0x322d16--;const _0x25e62e=_0xb16d0d['findIndex'](_0x1a8296=>_0x1a8296['name']==_0x32f82e);_0x25e62e>-0x1&&_0xb16d0d['splice'](_0x25e62e,0x1);}}function _0x4f9519(_0x180d31){const _0x24d488=_0x180d31['split'](':');return{'group':_0x24d488[0x0],'type':_0x24d488[0x1],'subType':_0x24d488['length']>=0x5?_0x24d488[0x2]:null,'id':_0x24d488['length']<0x5?_0x24d488[0x2]:_0x24d488[0x3],'authorId':_0x24d488['length']<0x5?_0x24d488[0x3]:_0x24d488[0x4],'markerCount':0x6==_0x24d488['length']?_0x24d488[0x5]:null};}function _0x5677c0(_0x52518a){for(let _0x18ad9c=0x0;_0x18ad9c<_0xb16d0d['length'];_0x18ad9c++){if(_0x52518a['isAdded']&&'insertion'==_0xb16d0d[_0x18ad9c]['type'])return _0x52518a['isAddSuggestion']=_0xb16d0d[_0x18ad9c],void delete _0x52518a['isAdded'];if(!_0x52518a['isAdded']&&!_0x52518a['isRemoved']&&'deletion'==_0xb16d0d[_0x18ad9c]['type'])return void(_0x52518a['isRemoveSuggestion']=_0xb16d0d[_0x18ad9c]);}}}['_setDistance'](_0x5349a4,_0x16bf2d){let _0x2eb1a2=0x0,_0x4d89fe=!0x1;const _0x5307ca=new Map();for(const _0x46ed81 of _0x5349a4)_0x46ed81[_0x16bf2d]?_0x4d89fe&&(_0x2eb1a2++,_0x4d89fe=!0x1):(_0x2eb1a2++,_0x4d89fe=!0x0),_0x5307ca['set'](_0x46ed81['id'],_0x2eb1a2);for(let _0x59dfee=0x0;_0x59dfee<_0x5349a4['length'];_0x59dfee++){if('isRemoved'==_0x16bf2d&&_0x5349a4[_0x59dfee]['isAdded']||'isAdded'==_0x16bf2d&&_0x5349a4[_0x59dfee]['isRemoved'])continue;if('text'==_0x5349a4[_0x59dfee]['type']){_0x5349a4[_0x59dfee]['distance']=0x0;continue;}const _0x27a4e1=_0x5307ca['get'](_0x5349a4[_0x59dfee]['pairId']),_0x5640ec=_0x5307ca['get'](_0x5349a4[_0x59dfee]['id']);_0x5349a4[_0x59dfee]['distance']=_0x27a4e1-_0x5640ec;}}['_getRevisionsRange'](_0x498a3d,_0x226a52,_0x54684c=!0x1){const _0x4e0239=[];let _0x2d38f9=this['repository']['getIndex'](_0x498a3d),_0x38ccb2=this['repository']['getIndex'](_0x226a52);for(-0x1==_0x38ccb2&&(_0x38ccb2=this['repository']['_revisions']['length'],_0x54684c=!0x1);_0x2d38f9<_0x38ccb2;)_0x4e0239['push'](this['repository']['getRevision'](_0x2d38f9)),_0x2d38f9++;return _0x54684c&&_0x4e0239['push'](this['repository']['getRevision'](_0x2d38f9)),_0x4e0239;}['_threeWayMerge'](_0x5e1aec,_0x1bdf49,_0x239198,_0xf00cf1){const _0x2f911a=this['editor']['model']['schema'];let _0x44a80f=_0x1bdf49;for(;_0x5e1aec[_0x44a80f]&&_0x5e1aec[_0x44a80f]['isAdded'];)_0x44a80f++;let _0x5015c6=_0xf00cf1;for(;_0x239198[_0x5015c6]&&_0x239198[_0x5015c6]['isRemoved'];)_0x5015c6++;_0x5911e5(_0x5e1aec,_0x1bdf49,_0x44a80f),_0x5911e5(_0x239198,_0xf00cf1,_0x5015c6);const _0x5680b6=_0x239198['slice'](_0xf00cf1,_0x5015c6)['concat'](_0x5e1aec['slice'](_0x1bdf49,_0x44a80f));return _0x5680b6['sort']((_0x52b04e,_0x2bf00b)=>_0x52b04e['side']!=_0x2bf00b['side']?_0x52b04e['side']-_0x2bf00b['side']:_0x52b04e['level']!=_0x2bf00b['level']?_0x52b04e['level']-_0x2bf00b['level']:_0x52b04e['distance']!=_0x2bf00b['distance']?_0x2bf00b['distance']-_0x52b04e['distance']:!!_0x52b04e['isAdded']!=!!_0x2bf00b['isAdded']?-0x1==_0x52b04e['side']||0x0==_0x52b04e['side']?_0x52b04e['isAdded']?-0x1:0x1:_0x52b04e['isAdded']?0x1:-0x1:_0x52b04e['index']-_0x2bf00b['index']),{'commonTape':_0x5680b6,'iEnd':_0x44a80f,'jEnd':_0x5015c6};function _0x5911e5(_0x4690e2,_0x6fbd40,_0x1e5b39){let _0x3a2601=-0x1,_0x434adc=Number['POSITIVE_INFINITY'],_0x3e6ee3=!0x0;for(let _0x18cdd3=_0x6fbd40;_0x18cdd3<_0x1e5b39;_0x18cdd3++)if(_0x2f911a['isInline'](_0x4690e2[_0x18cdd3]['item'])||(_0x3e6ee3=!0x1),_0x4690e2[_0x18cdd3]['item']['startIndex']<_0x6fbd40&&(_0x3a2601=_0x18cdd3),_0x4690e2[_0x18cdd3]['item']['endIndex']>=_0x1e5b39){_0x434adc=_0x18cdd3;break;}_0x3e6ee3&&(_0x3a2601=_0x1e5b39-0x1);for(let _0x34da7a=_0x6fbd40;_0x34da7a<_0x1e5b39;_0x34da7a++)_0x4690e2[_0x34da7a]['side']=_0x34da7a<=_0x3a2601?-0x1:_0x34da7a<_0x434adc?0x0:0x1,_0x4690e2[_0x34da7a]['index']=_0x34da7a;let _0x5133de=0x0;for(let _0xab89f3=_0x6fbd40;_0xab89f3<=_0x3a2601;_0xab89f3++)0x0==_0x4690e2[_0xab89f3]['distance']?_0x4690e2[_0xab89f3]['level']=_0x5133de:(_0x5133de++,_0x4690e2[_0xab89f3]['level']=_0x5133de,_0x5133de++);for(let _0x21e4dd=_0x6fbd40;_0x21e4dd<_0x1e5b39;_0x21e4dd++)0x0==_0x4690e2[_0x21e4dd]['side']&&(_0x4690e2[_0x21e4dd]['level']=_0x5133de);_0x5133de=0x0;for(let _0x5e49e8=_0x1e5b39-0x1;_0x5e49e8>=_0x434adc;_0x5e49e8--)0x0==_0x4690e2[_0x5e49e8]['distance']?_0x4690e2[_0x5e49e8]['level']=_0x5133de:(_0x5133de--,_0x4690e2[_0x5e49e8]['level']=_0x5133de,_0x5133de--);}}['_fixObsoleteTags'](_0x47d3b6){const _0x14ca75=new Map(),_0x4a4793=this['editor']['model']['schema'];for(let _0x21718d=0x1;_0x21718d<_0x47d3b6['length'];_0x21718d++){let _0x532ae1,_0x4f2a6d,_0x1954ee;const _0x59b968=_0x47d3b6[_0x21718d],_0x1c9b9c=_0x47d3b6[_0x21718d-0x1];if('text'==_0x59b968['type'])continue;if(_0x59b968['type']!=_0x1c9b9c['type'])continue;if(!_0x4a4793['isBlock'](_0x1c9b9c['item'])||_0x4a4793['isLimit'](_0x1c9b9c['item']))continue;if(!_0x4a4793['isBlock'](_0x59b968['item'])||_0x4a4793['isLimit'](_0x59b968['item']))continue;if((_0x47d3b6[_0x21718d]['isAdded']||_0x47d3b6[_0x21718d]['isAddSuggestion'])&&_0x47d3b6[_0x21718d-0x1]['isRemoved'])_0x532ae1=_0x47d3b6[_0x21718d],_0x4f2a6d=_0x47d3b6[_0x21718d-0x1],_0x1954ee=_0x21718d-0x1;else{if(!_0x47d3b6[_0x21718d]['isRemoved']||!_0x47d3b6[_0x21718d-0x1]['isAdded']&&!_0x47d3b6[_0x21718d-0x1]['isAddSuggestion'])continue;_0x532ae1=_0x47d3b6[_0x21718d-0x1],_0x4f2a6d=_0x47d3b6[_0x21718d],_0x1954ee=_0x21718d;}const _0x1cd6f3=_0x532ae1['level']==_0x4f2a6d['level'],_0x581eb9=Math['abs'](_0x532ae1['level'])<Math['abs'](_0x4f2a6d['level'])&&0x0==_0x4f2a6d['distance'];(_0x1cd6f3||_0x581eb9)&&(_0x14ca75['set'](_0x4f2a6d['id'],_0x532ae1['id']),_0x47d3b6['splice'](_0x1954ee,0x1),_0x21718d--,_0x532ae1['isAdded']=!0x1);}for(let _0x32ef6f=0x0;_0x32ef6f<_0x47d3b6['length'];_0x32ef6f++)_0x14ca75['has'](_0x47d3b6[_0x32ef6f]['pairId'])&&(_0x47d3b6[_0x32ef6f]['pairId']=_0x14ca75['get'](_0x47d3b6[_0x32ef6f]['pairId']));}['_removeMissingPairs'](_0x5161ed){const _0xc3a609=new Set(_0x5161ed['map'](_0x4645a0=>_0x4645a0['id']));for(let _0x152ebd=0x0;_0x152ebd<_0x5161ed['length'];_0x152ebd++)_0xc3a609['has'](_0x5161ed[_0x152ebd]['pairId'])||0x0==_0x5161ed[_0x152ebd]['distance']||(_0x5161ed[_0x152ebd]['isIncorrect']=!0x0);return _0x5161ed['filter'](_0x561afb=>!_0x561afb['isIncorrect']);}['_markMismatchedRemovedTags'](_0x68e5dc){const _0x1eb5be=new Set();for(let _0x43af5b=0x0;_0x43af5b<_0x68e5dc['length'];_0x43af5b++){if(_0x1eb5be['has'](_0x68e5dc[_0x43af5b]['id'])&&_0x68e5dc[_0x43af5b]['isRemoved']&&(_0x68e5dc[_0x43af5b]['isIncorrect']=!0x0),_0x68e5dc[_0x43af5b]['isIncorrect'])continue;if(0x0==_0x68e5dc[_0x43af5b]['distance'])continue;if('elementStart'!=_0x68e5dc[_0x43af5b]['type'])continue;if(null==_0x68e5dc[_0x43af5b]['pairId'])continue;let _0x49d7e3=_0x43af5b+0x1,_0x4b02ef=0x0;for(;_0x68e5dc[_0x49d7e3]['id']!=_0x68e5dc[_0x43af5b]['pairId'];)'elementStart'==_0x68e5dc[_0x49d7e3]['type']?_0x4b02ef++:'elementEnd'==_0x68e5dc[_0x49d7e3]['type']&&_0x4b02ef--,_0x49d7e3++;if(0x0!=_0x4b02ef){if(_0x68e5dc[_0x43af5b]['isRemoved'])_0x68e5dc[_0x43af5b]['isIncorrect']=!0x0;else{for(;_0x49d7e3!=_0x43af5b;)_0x68e5dc[_0x49d7e3]['isRemoved']&&0x0!=_0x68e5dc[_0x49d7e3]['distance']&&(_0x68e5dc[_0x49d7e3]['isIncorrect']=!0x0,_0x1eb5be['add'](_0x68e5dc[_0x49d7e3]['pairId'])),_0x49d7e3--;}}}return _0x68e5dc['filter'](_0x5730c0=>!_0x5730c0['isIncorrect']);}['_removeUnsupportedChanges'](_0x5c24e2){const _0x96c338=this['editor']['model']['schema'];for(let _0x4bc968=0x0;_0x4bc968<_0x5c24e2['length'];_0x4bc968++){if(!(_0x5c24e2[_0x4bc968]['isAdded']||_0x5c24e2[_0x4bc968]['isAddSuggestion']||_0x5c24e2[_0x4bc968]['isRemoved']||_0x5c24e2[_0x4bc968]['isRemoveSuggestion']))continue;if(0x0==_0x5c24e2[_0x4bc968]['distance'])continue;const _0x5ce5fa=_0x5c24e2[_0x4bc968]['item'];_0x96c338['isBlock'](_0x5ce5fa)||_0x96c338['isLimit'](_0x5ce5fa)||(_0x5c24e2[_0x4bc968]['isAdded']&&delete _0x5c24e2[_0x4bc968]['isAdded'],_0x5c24e2[_0x4bc968]['isAddSuggestion']&&delete _0x5c24e2[_0x4bc968]['isAddSuggestion'],_0x5c24e2[_0x4bc968]['isRemoveSuggestion']&&delete _0x5c24e2[_0x4bc968]['isRemoveSuggestion'],_0x5c24e2[_0x4bc968]['isRemoved']&&(_0x5c24e2[_0x4bc968]['isIncorrect']=!0x0));}return _0x5c24e2['filter'](_0x5b5c5d=>!_0x5b5c5d['isIncorrect']);}['_makeModelFromTape'](_0x58e54c,_0x536d73,_0x53358d){const _0x245578=new mt(),_0x3cf2b6=[],_0x57f08c=new Map(),_0x253604=this['editor']['model'],_0x5b9327=_0x253604['schema'],_0xc0bcf4=[_0x245578],_0x405f44={},_0xe130a0={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x3f4d01=null;const _0x3b441d=[0x0];for(let _0x29e84c=0x0;_0x29e84c<_0x58e54c['length'];_0x29e84c++)if('elementStart'===_0x58e54c[_0x29e84c]['type']){_0x58e54c[_0x29e84c]['previousPosition']=_0x253604['createPositionFromPath'](_0x245578,_0x3b441d);const _0x30ec59=new ft(_0x58e54c[_0x29e84c]['item']['name'],_0x58e54c[_0x29e84c]['item']['getAttributes']());_0xc0bcf4[0x0]['_appendChild'](_0x30ec59),_0x3b441d['push'](0x0),_0xc0bcf4['unshift'](_0x30ec59),_0x58e54c[_0x29e84c]['nextPosition']=_0x253604['createPositionFromPath'](_0x245578,_0x3b441d);}else'elementEnd'===_0x58e54c[_0x29e84c]['type']?(_0xc0bcf4['shift'](),_0x58e54c[_0x29e84c]['previousPosition']=_0x253604['createPositionFromPath'](_0x245578,_0x3b441d),_0x3b441d['pop'](),_0x3b441d[_0x3b441d['length']-0x1]++,_0x58e54c[_0x29e84c]['nextPosition']=_0x253604['createPositionFromPath'](_0x245578,_0x3b441d)):(_0x58e54c[_0x29e84c]['previousPosition']=_0x253604['createPositionFromPath'](_0x245578,_0x3b441d),_0x3f4d01?_0x3f4d01['_data']+=_0x58e54c[_0x29e84c]['item']['data']:_0x3f4d01=new wt(_0x58e54c[_0x29e84c]['item']['data'],_0x58e54c[_0x29e84c]['item']['getAttributes']()),_0x58e54c[_0x29e84c+0x1]&&'text'===_0x58e54c[_0x29e84c+0x1]['type']&&_0x1d45e2(_0x3f4d01,_0x58e54c[_0x29e84c+0x1]['item'])||(_0xc0bcf4[0x0]['_appendChild'](_0x3f4d01),_0x3f4d01=null),_0x3b441d[_0x3b441d['length']-0x1]+=_0x58e54c[_0x29e84c]['item']['offsetSize'],_0x58e54c[_0x29e84c]['nextPosition']=_0x253604['createPositionFromPath'](_0x245578,_0x3b441d));for(let _0x42e237=0x0;_0x42e237<_0x58e54c['length'];_0x42e237++){const _0x444296=_0x58e54c[_0x42e237]['previousPosition'],_0x4c6168=_0x58e54c[_0x42e237]['nextPosition'];for(const _0x721b12 of _0x58e54c[_0x42e237]['markersStart'])_0x57f08c['set'](_0x721b12,{'start':_0x444296,'end':null});_0x3e4c61('isRemoveSuggestion',_0x42e237,_0x444296,_0x4c6168),_0x3e4c61('isAddSuggestion',_0x42e237,_0x444296,_0x4c6168),_0x3e4c61('isRemoved',_0x42e237,_0x444296,_0x4c6168),_0x3e4c61('isAdded',_0x42e237,_0x444296,_0x4c6168);for(const _0x25e7c7 of _0x58e54c[_0x42e237]['markersEnd']){_0x57f08c['get'](_0x25e7c7)['end']=_0x4c6168;}}for(const [_0x22002a,_0xd3076]of _0x57f08c){const _0x61737d=this['editor']['model']['createRange'](_0xd3076['start'],_0xd3076['end']);_0x245578['markers']['set'](_0x22002a,_0x61737d);}return _0x3cf2b6['sort']((_0x1f5000,_0x5cec0f)=>{const _0x58fc9e=_0x245578['markers']['get']('revision:'+_0x1f5000['id']),_0x11c560=_0x245578['markers']['get']('revision:'+_0x5cec0f['id']);return _0x58fc9e['start']['isBefore'](_0x11c560['start'])?-0x1:_0x58fc9e['start']['isAfter'](_0x11c560['start'])?0x1:_0x58fc9e['end']['isBefore'](_0x11c560['end'])?-0x1:_0x58fc9e['end']['isAfter'](_0x11c560['end'])?0x1:'add'===_0x1f5000['type']?-0x1:0x1;}),{'root':_0x245578,'changes':_0x3cf2b6};function _0x3e4c61(_0x556565,_0x1ae5f8,_0x5bfbf1,_0x147c06){const _0x3b0157=!!_0x58e54c[_0x1ae5f8][_0x556565],_0x543ae8=_0x3b0157?_0x58e54c[_0x1ae5f8][_0x556565]['userId']:null,_0x41c344=_0x1ae5f8===_0x58e54c['length']-0x1,_0x5942e0=_0xe130a0[_0x556565][0x0],_0x6b4cdb=_0x5b9327['isObject'](_0x58e54c[_0x1ae5f8]['item']);!_0x405f44[_0x556565]&&_0x3b0157?_0x405f44[_0x556565]={'start':_0x5bfbf1,'tapeItem':_0x58e54c[_0x1ae5f8],'userId':_0x543ae8,'type':_0x556565}:_0x405f44[_0x556565]&&!_0x3b0157?(_0x405f44[_0x556565]['end']=_0x5bfbf1,_0x426661(_0x405f44[_0x556565]),_0x405f44[_0x556565]=null):_0x405f44[_0x556565]&&_0x3b0157&&_0x405f44[_0x556565]['userId']!==_0x543ae8&&(_0x405f44[_0x556565]['end']=_0x5bfbf1,_0x5942e0&&_0x5942e0['userId']===_0x405f44[_0x556565]['userId']||_0x426661(_0x405f44[_0x556565]),_0x405f44[_0x556565]={'start':_0x5bfbf1,'tapeItem':_0x58e54c[_0x1ae5f8],'userId':_0x543ae8,'type':_0x556565}),_0x405f44[_0x556565]&&_0x6b4cdb&&('elementStart'!==_0x58e54c[_0x1ae5f8]['type']||_0x5942e0&&_0x5942e0['userId']===_0x543ae8||_0xe130a0[_0x556565]['unshift']({'userId':_0x543ae8,'object':_0x58e54c[_0x1ae5f8]['item'],'change':_0x405f44[_0x556565]}),'elementEnd'===_0x58e54c[_0x1ae5f8]['type']&&_0x5942e0&&_0x5942e0['object']===_0x58e54c[_0x1ae5f8]['item']&&(_0xe130a0[_0x556565]['shift'](),_0x405f44[_0x556565]=_0x5942e0['change'])),_0x405f44[_0x556565]&&_0x41c344&&(_0x405f44[_0x556565]['end']=_0x147c06,_0x426661(_0x405f44[_0x556565]),_0x405f44[_0x556565]=null);}function _0x426661({start:_0x45b4db,end:_0x1db0b9,tapeItem:_0x5ce24c,userId:_0x1fb8d1,type:_0x37efb3}){const _0x4133c0=_0x5ce24c['item'],_0x130c94=_0x253604['schema']['isBlock'](_0x4133c0)&&!_0x253604['schema']['isLimit'](_0x4133c0),_0x2ffa50=_0x45b4db['nodeAfter']==_0x1db0b9['parent']&&_0x1db0b9['isAtStart'];if(_0x130c94&&_0x2ffa50)return;const _0x31138a=_0x253604['createRange'](_0x45b4db,_0x1db0b9),_0x5ce5ea=_0x536d73['get'](_0x1fb8d1),_0x5b80bd=new r({'author':_0x5ce5ea,'type':'isAdded'==_0x37efb3||'isAddSuggestion'==_0x37efb3?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x37efb3||'isRemoveSuggestion'==_0x37efb3},'createdAt':new Date(),'rootName':_0x53358d});_0x3cf2b6['push'](_0x5b80bd),_0x245578['markers']['set']('revision:'+_0x5b80bd['id'],_0x31138a);}function _0x1d45e2(_0x37347d,_0xafd87f){const _0x236141=_0x37347d['getAttributes'](),_0x320730=_0xafd87f['getAttributes']();for(const _0x4ec0b7 of _0x236141){if(_0x4ec0b7[0x1]!==_0xafd87f['getAttribute'](_0x4ec0b7[0x0]))return!0x1;_0x320730['next']();}return _0x320730['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x39a522=>{const _0xb0f6c3=_0x39a522['markerName']['split'](':')[0x1],_0x17f378=this['_getChangeFromId'](_0xb0f6c3);if(!_0x17f378)return null;const _0x4e3adc='add'==_0x17f378['type']?'insertion':'deletion',_0x330842=['ck-suggestion-marker','ck-suggestion-marker-'+_0x4e3adc];return _0x17f378['data']['isSuggestion']&&_0x330842['push']('ck-suggestion-marker-'+_0x4e3adc+'-new'),this['activeChange']==_0x17f378&&_0x330842['push']('ck-suggestion-marker--active'),{'classes':_0x330842,'attributes':{'data-change-id':_0xb0f6c3}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x5bd32b=>{_0x5bd32b['on']('element:pre',(_0x58cb6c,_0x2de3f4,_0x5282c9)=>{const _0x37384f=_0x2de3f4['viewItem']['getChild'](0x0);if(!_0x37384f||!_0x37384f['is']('element','code'))return;if(!_0x5282c9['consumable']['consume'](_0x37384f,{'attributes':['vid_start','vid_end']}))return;const _0x446c94=_0x2de3f4['modelRange']['start']['nodeAfter'];_0x5282c9['writer']['setAttribute']('vid_start',_0x37384f['getAttribute']('vid_start'),_0x446c94),_0x5282c9['writer']['setAttribute']('vid_end',_0x37384f['getAttribute']('vid_end'),_0x446c94);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x4d5c5c=>{_0x4d5c5c['on']('element',(_0x5d5515,_0x1610d3,_0x291ff9)=>{if(!_0x291ff9['consumable']['consume'](_0x1610d3['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x1610d3['modelRange']['isCollapsed'])return;const _0x5760e7=_0x1610d3['modelRange']['start']['nodeAfter'];_0x5760e7['hasAttribute']('vid_start')||_0x5760e7['hasAttribute']('vid')||(_0x291ff9['writer']['setAttribute']('vid_start',_0x1610d3['viewItem']['getAttribute']('vid_start'),_0x5760e7),_0x291ff9['writer']['setAttribute']('vid_end',_0x1610d3['viewItem']['getAttribute']('vid_end'),_0x5760e7));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x39d945=>_0x39d945['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x5bd54a,[,_0x5c05f7])=>{['vid_start','vid_end','vid']['includes'](_0x5c05f7)&&(_0x5bd54a['return']=!0x0,_0x5bd54a['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x315795=>{_0x315795['on']('attribute:vid',(_0x5a06dc,_0xc5a209,_0x2fa4f3)=>{if('\x20'!=_0xc5a209['item']['data']||_0xc5a209['item']['parent']['maxOffset']>0x1)return;if(!_0x2fa4f3['consumable']['consume'](_0xc5a209['item'],_0x5a06dc['name']))return;const _0x2a69d0=_0x2fa4f3['writer'],_0x4cf14f=_0x2fa4f3['mapper']['toViewRange'](_0xc5a209['range']);_0x2a69d0['wrap'](_0x4cf14f,_0x2a69d0['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x401861){const _0x3d02bd=_0x401861['plugins']['get']('RevisionViewer');return(_0x118d13,_0x59df22,_0x417922)=>{const _0x27335b=_0x59df22['markerName']['split'](':')[0x1],_0x41509b=_0x3d02bd['_getChangeFromId'](_0x27335b);if(!_0x41509b)return null;const _0x3e6738='add'==_0x41509b['type']?'split':'merge';if(!_0x417922['consumable']['test'](_0x59df22['markerRange'],_0x118d13['name']))return;const _0x569158=_0x59df22['markerRange']['getWalker'](),_0x4221e0=_0x59df22['markerRange']['start'],_0x216768=_0x401861['model']['schema'];let _0x338518=null,_0x382885=null,_0x54c2f9=!0x1,_0x29ae58=!0x1;for(const _0xdeea49 of _0x569158){const _0x283218=_0xdeea49['item'];_0x54c2f9=_0x54c2f9||_0x216768['isContent'](_0x283218);const _0x1896d4=_0x417922['mapper']['toViewElement'](_0x283218);if(_0x1896d4&&_0x1896d4['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xdeea49['type']&&(_0x216768['isBlock'](_0x283218)&&!_0x216768['isLimit'](_0x283218)&&(_0x283218['nextSibling']||_0x4221e0['isAtEnd']?_0x338518&&_0x338518['parent']==_0x283218||(_0x338518=_0x283218,_0x50504b(_0xdeea49['previousPosition']),_0x29ae58=!0x0):_0x382885=_0x382885||_0xdeea49['previousPosition']));}function _0x50504b(_0x35d719){const _0x136708=_0x417922['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3e6738}),_0x4c3c38=_0x417922['mapper']['toViewPosition'](_0x35d719);_0x41509b['data']['isSuggestion']&&_0x417922['writer']['addClass']('ck-suggestion-marker-'+_0x3e6738+'-new',_0x136708),_0x3d02bd['activeChange']==_0x41509b&&_0x417922['writer']['addClass']('ck-suggestion-marker--active',_0x136708),_0x417922['writer']['insert'](_0x4c3c38,_0x136708),_0x417922['mapper']['bindElementToMarker'](_0x136708,_0x59df22['markerName']);}_0x54c2f9||_0x29ae58||!_0x382885||_0x50504b(_0x382885);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x359f64,_0x5dde7f,_0x250fbc)=>{const _0xd5a86c=_0x250fbc['mapper']['markerNameToElements'](_0x5dde7f['markerName']);if(_0xd5a86c){for(const _0x30814e of _0xd5a86c)(_0x30814e['hasClass']('ck-suggestion-marker-split')||_0x30814e['hasClass']('ck-suggestion-marker-merge'))&&(_0x250fbc['mapper']['unbindElementFromMarkerName'](_0x30814e,_0x5dde7f['markerName']),_0x250fbc['writer']['remove'](_0x30814e));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x105972,_0xc68bcd,_0x385b32)=>{const _0x43fc47=_0xc68bcd['markerName']['split'](':')[0x1],_0x1a4195=this['_getChangeFromId'](_0x43fc47);if(!_0x1a4195)return null;const _0x5a121e='add'==_0x1a4195['type']?'split':'merge';if(_0x385b32['consumable']['test'](_0xc68bcd['markerRange'],_0x105972['name']))for(const _0x5c06c6 of _0xc68bcd['markerRange']['getItems']()){if(!_0x5c06c6['is']('element','softBreak'))continue;const _0x291374=_0x385b32['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5a121e}),_0x541ba1=_0x385b32['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x5c06c6));_0x1a4195['data']['isSuggestion']&&_0x385b32['writer']['addClass']('ck-suggestion-marker-'+_0x5a121e+'-new',_0x291374),this['activeChange']==_0x1a4195&&_0x385b32['writer']['addClass']('ck-suggestion-marker--active',_0x291374),_0x385b32['writer']['insert'](_0x541ba1,_0x291374),_0x385b32['mapper']['bindElementToMarker'](_0x291374,_0xc68bcd['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x215d77=>{for(const _0x253b06 of this['editor']['model']['document']['getRootNames']()){const _0x1af5dc=this['editor']['model']['document']['getRoot'](_0x253b06),_0x54babf=this['editor']['editing']['view']['document']['getRoot'](_0x253b06);if(_0x54babf){const _0x4afa69=_0x1af5dc['getAttribute']('revisionHistoryAttachChange');if(_0x215d77['removeAttribute']('data-change-id',_0x54babf),_0x215d77['removeClass']('ck-revision-history-root-add',_0x54babf),_0x215d77['removeClass']('ck-revision-history-root-remove',_0x54babf),_0x215d77['removeClass']('ck-revision-history-root--active',_0x54babf),_0x4afa69){const _0x228844=this['_getChangeFromId'](_0x4afa69);if(!_0x228844)return null;_0x215d77['setAttribute']('data-change-id',_0x4afa69,_0x54babf),_0x215d77['addClass']('ck-revision-history-root-'+_0x228844['type'],_0x54babf),this['activeChange']==_0x228844&&_0x215d77['addClass']('ck-revision-history-root--active',_0x54babf);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x39aeba=>'revision-comment:'+_0x39aeba,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x517bd1=>'revision-suggestion:'+_0x517bd1,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x435fb2=>({'name':'suggestion:'+_0x435fb2,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x3076b5=>{const _0xcbf2dc=_0x3076b5['markerName']['split'](':')[0x1];return'insertion'!=_0xcbf2dc&&'deletion'!=_0xcbf2dc?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0xcbf2dc]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',tt(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',tt(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x1277ca,_0x144d90,_0x11b631)=>{const _0x16e0ed=_0x11b631['mapper']['markerNameToElements'](_0x144d90['markerName']);if(_0x16e0ed){for(const _0x1e9c2e of _0x16e0ed)_0x1e9c2e['is']('uiElement')&&(_0x11b631['mapper']['unbindElementFromMarkerName'](_0x1e9c2e,_0x144d90['markerName']),_0x11b631['writer']['remove'](_0x1e9c2e));}},{'priority':'high'});}['_getChangeFromId'](_0x4e6416){return this['_changeIdToChange']['get'](_0x4e6416);}['_getViewForChange'](_0x15b4ef){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Y(this['editor']['locale'],_0x15b4ef),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x317002,_0x3a178e,_0x51bc9c,_0x45de4e)=>{_0x45de4e&&this['_balloon']['remove'](_0x45de4e),_0x51bc9c&&(this['_balloon']['add']({'view':_0x51bc9c,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x3ce6b8=this['editor']['editing'],_0x34f5ba=this['_getChangeFromId'](_0x51bc9c['changeId']);let _0x2002c6;if(_0x34f5ba['data']['isOnRoot']){const _0x132a5d=_0x3ce6b8['view']['getDomRoot'](_0x34f5ba['rootName']);_0x2002c6=Array['from'](_0x132a5d['getClientRects']());}else{const _0x3aefb0=this['editor']['model']['markers']['get']('revision:'+_0x51bc9c['changeId']);_0x2002c6=Array['from'](_0x3ce6b8['mapper']['markerNameToElements'](_0x3aefb0['name']))['map'](_0x115456=>_0x3ce6b8['view']['domConverter']['mapViewToDom'](_0x115456))['map'](_0x339c2e=>Array['from'](_0x339c2e['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x2002c6[0x0];return _0x2002c6['find'](_0x5bcfe9=>_0x5bcfe9['top']-0x3<=this['_activeViewTarget']['y']&&_0x5bcfe9['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x5bcfe9['left']-0x3<=this['_activeViewTarget']['x']&&_0x5bcfe9['right']+0x3>=this['_activeViewTarget']['x'])||_0x2002c6[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x3d04eb,_0xf01317,_0x34d0fa,_0x3fb023)=>{this['activeView']=_0x34d0fa?this['_getViewForChange'](_0x34d0fa):null,this['editor']['model']['change'](()=>{const _0x9820b8=this['editor']['editing'];_0x3fb023&&(_0x3fb023['data']['isOnRoot']?_0x9820b8['view']['change'](_0x52474f=>{_0x52474f['removeClass']('ck-revision-history-root--active',_0x9820b8['view']['document']['getRoot'](_0x3fb023['rootName']));}):_0x9820b8['reconvertMarker']('revision:'+_0x3fb023['id'])),_0x34d0fa&&(_0x34d0fa['data']['isOnRoot']?_0x9820b8['view']['change'](_0x72f372=>{_0x72f372['addClass']('ck-revision-history-root--active',_0x9820b8['view']['document']['getRoot'](_0x34d0fa['rootName']));}):_0x9820b8['reconvertMarker']('revision:'+_0x34d0fa['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0xc6f2de,_0x3ef779)=>{if(this['activeChange'])return;const _0xd5b868=this['_findChangeIdFromDomTarget'](_0x3ef779['target']),_0x5a12c8=this['_changeIdToChange']['get'](_0xd5b868);_0x5a12c8?(this['_activeViewTarget']={'x':_0x3ef779['domEvent']['x'],'y':_0x3ef779['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x5a12c8)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x2407cb,_0x25f07b)=>{const _0x7aec8c=this['_findChangeIdFromDomTarget'](_0x25f07b['target']),_0x5f2f2b=this['_changeIdToChange']['get'](_0x7aec8c);_0x5f2f2b?(this['_activeViewTarget']={'x':_0x25f07b['domEvent']['x'],'y':_0x25f07b['domEvent']['y']},_0x5f2f2b===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x5f2f2b):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x572a8c){do{const _0x57fa83=_0x572a8c['getAttribute']('data-change-id');if(_0x57fa83)return _0x57fa83;_0x572a8c=_0x572a8c['parent'];}while(_0x572a8c);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x42661f=>{for(const _0x586e5a of this['editor']['model']['markers'])_0x42661f['removeMarker'](_0x586e5a);});}}function tt(_0x1f47fb,_0x53d4d9){return(_0x2e2b61,_0x1b0714,_0x31b007)=>{if(!_0x31b007['consumable']['test'](_0x1b0714['markerRange'],_0x2e2b61['name']))return;const _0x5b2b22=_0x1b0714['markerRange']['getWalker'](),_0xa06657=_0x1b0714['markerRange']['start'],_0x56fb0c=_0x1f47fb['model']['schema'];let _0x4a4a3b=null,_0x32b52a=null,_0x810710=!0x1,_0x3a3e2e=!0x1;for(const _0x303aec of _0x5b2b22){const _0xce9e63=_0x303aec['item'];_0x810710=_0x810710||_0x56fb0c['isContent'](_0xce9e63);const _0x2d462d=_0x31b007['mapper']['toViewElement'](_0xce9e63);if(_0x2d462d&&_0x2d462d['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x303aec['type']&&(_0x56fb0c['isBlock'](_0xce9e63)&&!_0x56fb0c['isLimit'](_0xce9e63)&&(_0xce9e63['nextSibling']||_0xa06657['isAtEnd']?_0x4a4a3b&&_0x4a4a3b['parent']==_0xce9e63||(_0x4a4a3b=_0xce9e63,_0x4c99b1(_0x303aec['previousPosition']),_0x3a3e2e=!0x0):_0x32b52a=_0x32b52a||_0x303aec['previousPosition']));}function _0x4c99b1(_0x3b943e){const _0xec5ae=_0x31b007['mapper']['toViewPosition'](_0x3b943e),_0x15743d=_0x31b007['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x53d4d9});_0x31b007['writer']['insert'](_0xec5ae,_0x15743d),_0x31b007['mapper']['bindElementToMarker'](_0x15743d,_0x1b0714['markerName']);}_0x810710||_0x3a3e2e||!_0x32b52a||_0x4c99b1(_0x32b52a);};}class _t extends _0x4faceb{constructor(_0x2bbe66){super(_0x2bbe66);const _0x1db6e4=_0x2bbe66['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x1db6e4,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x1db6e4,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x44ce3c=this['editor'],_0x47ac27=_0x44ce3c['plugins']['get'](d),_0x2988a2=_0x47ac27['isReady']?_0x47ac27['diff']['newRevisionId']:null;_0x44ce3c['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x2988a2);}['refresh'](){const {isReady:_0x5b59b2,isEnabled:_0x34468f,repository:_0x38cd70,diff:_0x47ad50}=this['editor']['plugins']['get'](d),_0x361069=_0x47ad50&&_0x38cd70['getLaterVisibleRevision'](_0x47ad50['newRevisionId']);this['isEnabled']=_0x5b59b2&&_0x34468f&&Boolean(_0x361069);}}class yt extends _0x4faceb{['_step'];constructor(_0x41a762,{direction:_0x5b85dc}){super(_0x41a762);const _0x3b8a7f=_0x41a762['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x5b85dc?0x1:-0x1,this['listenTo'](_0x3b8a7f,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x3b8a7f,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x3b8a7f,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x1e9679=this['editor'],_0x2b3dbd=_0x1e9679['plugins']['get'](d),{isNavigationMode:_0x4066ab,currentChangeNumber:_0x10da1e}=_0x2b3dbd;let _0x5e09d9;if(_0x2b3dbd['activeChange']=_0x4066ab?_0x2b3dbd['diff']['changes']['get'](_0x10da1e+this['_step']):_0x2b3dbd['diff']['changes']['first'],_0x2b3dbd['activeChange']['data']['isOnRoot'])_0x5e09d9=_0x1e9679['editing']['view']['getDomRoot'](_0x2b3dbd['activeChange']['rootName']);else{const _0x5bcc1b=_0x1e9679['model']['markers']['get']('revision:'+_0x2b3dbd['activeChange']['id']);_0x5e09d9=_0x415cb4(_0x1e9679['editing'],_0x5bcc1b);}_0x28cd2e({'target':_0x5e09d9,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x8f65bd,currentChangeNumber:_0x4e5861,numberOfChanges:_0x2efdee,isReady:_0x48d48f,isEnabled:_0x47059a}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x47059a&&_0x48d48f&&_0x2efdee)&&(!_0x8f65bd||(0x1===this['_step']?_0x4e5861<_0x2efdee-0x1:_0x4e5861>0x0));}}class li extends ts{constructor(_0x3eab51){super(_0x3eab51);const _0x3cc218=this['bindTemplate'],_0x36bbb1=new te(_0x3eab51),_0x152c86=new te(_0x3eab51);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',(_0x1e972c,_0x1f94ae)=>_0x1e972c&&_0x1f94ae>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x6a30fa,_0x59cc36,_0x209136,_0x38cdd3)=>{if(!_0x6a30fa)return R(_0x3eab51,'Loading...');if(!_0x209136)return R(_0x3eab51,'No\x20changes');const _0x2574a5=R(_0x3eab51,'NUMBER_OF_CHANGES',_0x209136);return _0x38cdd3?R(_0x3eab51,'X_OF_Y_CHANGES',[_0x59cc36+0x1,_0x209136]):_0x2574a5;}),_0x36bbb1['set']({'label':R(_0x3eab51,'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'}),_0x152c86['set']({'label':R(_0x3eab51,'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'}),_0x36bbb1['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x152c86['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x36bbb1['on']('execute',()=>this['fire']('execute','backward')),_0x152c86['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',_0x3cc218['if']('_isStatusLabelVisible','ck-hidden',_0x2890c3=>!_0x2890c3)]},'children':[{'text':_0x3cc218['to']('isNavigationMode',_0x1d243e=>_0x1d243e?R(_0x3eab51,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x3eab51,'Total')+':\x20')}]},{'text':_0x3cc218['to']('_statusText')}]},new _0x54463f(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x36bbb1,_0x152c86]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x1c98c7{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x2f7aa1=this['editor']['editing']['view'];_0x2f7aa1['change'](_0x53bd6e=>{for(const _0x4e1da7 of _0x2f7aa1['document']['roots'])_0x53bd6e['addClass'](le,_0x4e1da7);});}['hide'](){const _0x32c9f9=this['editor']['editing']['view'];_0x32c9f9['change'](_0x3e707e=>{for(const _0x5383db of _0x32c9f9['document']['roots'])_0x3e707e['removeClass'](le,_0x5383db);});}}class m extends _0x1c98c7{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,ge];}['init'](){const _0x38f2a3=this['editor'],_0x39e8da=_0x38f2a3['plugins']['get'](d),_0x55a6a3=_0x38f2a3['plugins']['get'](ge);_0x38f2a3['ui']['componentFactory']['add']('exitToEditing',_0x5cb0f4=>{const _0x3e434c=new te(_0x5cb0f4);return _0x3e434c['set']({'label':R(_0x5cb0f4,'Back\x20to\x20editing'),'icon':_0x14c866['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x3e434c,'execute',()=>{_0x38f2a3['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x3e434c;}),_0x38f2a3['ui']['componentFactory']['add']('restoreRevision',_0x3cbe30=>{const _0xd91328=new te(_0x3cbe30);return _0xd91328['set']({'label':R(_0x3cbe30,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0xd91328['bind']('isEnabled')['to'](_0x38f2a3['commands']['get']('restoreRevision')),this['listenTo'](_0xd91328,'execute',()=>_0x38f2a3['execute']('restoreRevision')),_0xd91328;}),_0x38f2a3['ui']['componentFactory']['add']('changesNavigation',_0x434e16=>{const _0x386e57=new li(_0x434e16),_0x1f6d1d=_0x38f2a3['commands']['get']('showPreviousChange'),_0x20ca66=_0x38f2a3['commands']['get']('showNextChange');return _0x386e57['bind']('isBackwardNavigationEnabled')['to'](_0x1f6d1d,'isEnabled'),_0x386e57['bind']('isForwardNavigationEnabled')['to'](_0x20ca66,'isEnabled'),_0x386e57['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x39e8da),this['listenTo'](_0x386e57,'execute',(_0x1e8490,_0x40fdc)=>{_0x38f2a3['execute']('forward'===_0x40fdc?'showNextChange':'showPreviousChange');}),_0x386e57;}),_0x55a6a3['show'](),_0x39e8da['on']('change:isReady',(_0x576b0f,_0x16c2bd,_0xf58f5d)=>{_0xf58f5d?_0x55a6a3['hide']():_0x55a6a3['show']();});}}class pt extends _0x3f921c{['_resizeObserver']=null;constructor(_0x4a3020,_0x34fed1){super(_0x4a3020,_0x34fed1);const _0x246d84=this['bindTemplate'];this['set']({'label':R(_0x4a3020,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x4a3020,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x246d84['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new at(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x10b986=this['fieldView']['element'];this['_tooltipString']=_0x10b986['scrollWidth']>_0x10b986['clientWidth']&&_0x10b986['value']||'';}}class ri extends ts{constructor(_0x2a3fcb,_0x28669f,_0x378f47){super(_0x2a3fcb);const _0xc5ce24=new _0x825bd1();_0xc5ce24['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 _0x2b91fe=['ck','ck-revision-history-sidebar__revision-author'];_0x378f47&&_0x2b91fe['push']('ck-revision-history-sidebar__revision-author_creator');const _0x3fae3e=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x2a3fcb,_0x378f47?'Revision\x20creator':'Revision\x20author')},'children':[_0xc5ce24,_0x28669f['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x2b91fe},'children':_0x3fae3e});}}function oi(_0x23e21d,_0x3dba61){const _0x1b1bc6=_0x23e21d['bindTemplate'],_0x5863c8=_0x23e21d['locale'],_0x56dab8=_0x547500(_0x5863c8);_0x56dab8['panelPosition']='sw';const _0x294a8a=function(_0x1e66e5,_0x2e7316){const _0x335fce=function(_0xdcc638,_0x1de993){const _0x2b3b95=_0xdcc638['locale'],_0xca59d1={'Compare\x20against\x20selected':R(_0x2b3b95,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x2b3b95,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x2b3b95,'Restore\x20this\x20revision')};return _0x1de993['map'](_0x362af0=>{const _0x1f9946=_0xca59d1[_0x362af0['name']];return _0x1f9946&&_0x1f9946!==_0x362af0['name']&&(_0x362af0['name']=_0x1f9946),_0x362af0;});}(_0x1e66e5,_0x2e7316),_0x575dc4=new _0x3fda2b();for(const _0x469bd5 of _0x335fce){const _0x236241={'type':'button','model':new _0x4c462f({'label':_0x469bd5['name'],'class':_0x469bd5['class'],'withText':!0x0,'role':'menuitem','_action':_0x469bd5['action']})};_0x236241['model']['bind']('isEnabled')['to'](_0x1e66e5,'isActionsDropdownOpen',_0x59ee81=>'function'!=typeof _0x469bd5['isEnabled']||(!_0x59ee81||_0x469bd5['isEnabled'](_0x1e66e5))),_0x575dc4['add'](_0x236241);}return _0x575dc4;}(_0x23e21d,_0x3dba61);return _0x23e21d['bind']('isActionsDropdownOpen')['to'](_0x56dab8,'isOpen'),_0x56dab8['buttonView']['set']({'label':R(_0x5863c8,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x14c866['threeVerticalDots']}),_0x56dab8['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x1b1bc6['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x1b1bc6['to'](_0x43a8f2=>_0x43a8f2['stopPropagation']())}}),_0x56dab8['on']('execute',_0x5ab11a=>{_0x23e21d['isReady']&&'function'==typeof _0x5ab11a['source']['_action']&&_0x5ab11a['source']['_action'](_0x23e21d);}),to(_0x56dab8,_0x294a8a,{'role':'menu'}),_0x56dab8['listenTo'](_0x23e21d,'change:isActionsDropdownOpen',(_0x6401f7,_0x4b4699,_0x4e7b1f)=>{if(_0x4e7b1f)for(const _0x47c70d of _0x56dab8['listView']['items']){const _0x5a4c30=_0x47c70d['children']['first'],_0x358341=_0x3dba61['find'](_0x20a9de=>_0x20a9de['action']===_0x5a4c30['_action'])['isVisible'];_0x47c70d['isVisible']=void 0x0===_0x358341||_0x358341(_0x23e21d);}}),_0x56dab8;}class hi extends/* #__PURE__ -- @preserve */
|
|
26
|
+
ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x3b2130,_0x186c0f,_0x4fd2ab,_0x5e41e0){super(_0x3b2130);const _0x3e7340=this['bindTemplate'],_0x5e6570=function(_0x4a1bfb,_0x187a85){const _0x35b586=Array['from'](_0x187a85['authors'])['filter'](_0xd4ae28=>_0xd4ae28!=_0x187a85['creator']);return _0x187a85['creator']&&_0x35b586['unshift'](_0x187a85['creator']),_0x35b586['map'](_0x2abd06=>new ri(_0x4a1bfb,_0x2abd06,_0x2abd06==_0x187a85['creator']));}(_0x3b2130,_0x186c0f);this['id']=_0x186c0f['id'],this['_revision']=_0x186c0f,this['_requireRevisionName']=_0x5e41e0,this['bind']('name','createdAt')['to'](_0x186c0f),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x2990af=>{return _0x5ab4eb=_0x3b2130['uiLanguage'],(_0x159efc=_0x2990af)['toLocaleDateString'](_0x5ab4eb,{'month':'long','day':'numeric'})+',\x20'+_0x159efc['toLocaleTimeString'](_0x5ab4eb,{'hour':'numeric','minute':'numeric'});var _0x5ab4eb,_0x159efc;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new pt(_0x3b2130,_0x2498fb),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x1a8b8c=>_0x1a8b8c||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x32af7b,_0x3dfa5a)=>_0x32af7b&&_0x3dfa5a),this['revisionActionsView']=_0x4fd2ab&&_0x4fd2ab['length']?oi(this,_0x4fd2ab):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x3e7340['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x3e7340['if']('isEnabled','ck-disabled',_0x337405=>!_0x337405),_0x3e7340['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x3e7340['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x3e7340['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':_0x3e7340['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':_0x5e6570}]},this['revisionActionsView']],'on':{'click':_0x3e7340['to'](_0x1d5a10=>{_0x1d5a10['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x4bf036=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x4bf036,'change',()=>{this['_requireRevisionName']&&!_0x4bf036['value']||this['fire']('setName',{'id':this['id'],'name':_0x4bf036['value']}),_0x4bf036['value']||(_0x4bf036['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(_0x492d8d,_0x2e7826){const _0x1b2707=_0x4c6978['fromJSDate'](_0x492d8d)['setLocale'](_0x2e7826),_0x5b110e=_0x4c6978['local'](),_0xc69cc2=_0x5b110e['minus']({'days':0x1})['startOf']('day');let _0x222d93,_0x409586;return _0x1b2707['hasSame'](_0x5b110e,'day')?(_0x222d93=_0x1b2707['startOf']('day')['toJSDate'](),_0x409586=_0x1b2707['toRelativeCalendar']()):_0x1b2707['hasSame'](_0xc69cc2,'day')?(_0x222d93=_0xc69cc2['toJSDate'](),_0x409586=_0x1b2707['toRelativeCalendar']()):_0x1b2707['hasSame'](_0x5b110e,'week')?(_0x222d93=_0x1b2707['startOf']('week')['toJSDate'](),_0x409586=_0x1b2707['weekdayLong']||''):_0x1b2707['hasSame'](_0x5b110e,'year')?(_0x222d93=_0x1b2707['startOf']('month')['toJSDate'](),_0x409586=_0x1b2707['monthLong']||''):(_0x222d93=_0x1b2707['startOf']('year')['toJSDate'](),_0x409586=String(_0x1b2707['year'])),{'startDate':_0x222d93,'localizedPeriodName':_0x409586};}class ai extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x1157d5,_0x2459de,_0x5c1db5,_0x5c8e3d){super(_0x1157d5);const _0x30051b=ci(_0x2459de,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x2459de,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x5c1db5,this['_requireRevisionName']=_0x5c8e3d,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':_0x30051b}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x3cd226){const _0x1eec7c=new hi(this['locale'],_0x3cd226,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x1eec7c);}['removeRevision'](_0x132816){const _0x97499c=this['revisionViews']['find'](_0x773fa1=>_0x773fa1['id']===_0x132816['id']);this['revisionViews']['remove'](_0x97499c);}}class as extends ts{constructor(_0x2b6337){super(_0x2b6337);const _0x1a03e5=new _0x825bd1();_0x1a03e5['content']=_0x14c866['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x1a03e5,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0x2b6337,'Revision\x20history')]}]});}}class ni extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x898e12,_0x541175,_0x3a1227,_0x5947ff){super(_0x898e12);const _0x3b7246=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x541175,this['_revisionActions']=_0x3a1227,this['_requireRevisionName']=_0x5947ff,this['on']('select',(_0xff1969,_0x4a21c3)=>{this['fire']('revisionSelected',_0x4a21c3);}),this['on']('setName',(_0x36b90c,_0x3fb946)=>{this['fire']('revisionSetName',_0x3fb946);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x898e12),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x3b7246['if']('isEnabled','ck-disabled',_0x38add5=>!_0x38add5)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x4c726e of this['_revisions'])this['_addRevision'](_0x4c726e);this['_revisions']['on']('add',(_0x289499,_0x5c8085)=>{this['_addRevision'](_0x5c8085);}),this['_revisions']['on']('remove',(_0x5b95ac,_0x4bba9c)=>{this['_removeRevision'](_0x4bba9c);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x2974a7=>_0x2974a7['revisionViews']['map'](_0x31d534=>_0x31d534))['flat']();}['selectRevision'](_0x29788c){for(const _0x54e0f6 of this['revisionViews'])_0x29788c&&_0x29788c['id']===_0x54e0f6['id']?_0x54e0f6['select']():_0x54e0f6['deselect']();}['highlightRevisions'](_0x47215a){for(const _0x24469f of this['revisionViews'])_0x47215a['some'](({id:_0x178d1f})=>_0x178d1f===_0x24469f['id'])?_0x24469f['highlight']():_0x24469f['unhighlight']();}['_addRevision'](_0x42f8f3){const _0x5a6531=ci(_0x42f8f3['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x2155ba=this['timePeriodViews']['get'](0x0);_0x2155ba&&_0x2155ba['startDate']['getTime']()===_0x5a6531['getTime']()||(_0x2155ba=new ai(this['locale'],_0x5a6531,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x2155ba)),_0x2155ba['addRevision'](_0x42f8f3);}['_removeRevision'](_0x3c1f78){const _0x352e05=ci(_0x3c1f78['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x352e05)['removeRevision'](_0x3c1f78);}['_getTimePeriodViewByStartDate'](_0x55d42b){return this['timePeriodViews']['find'](_0x10b984=>_0x10b984['startDate']['getTime']()===_0x55d42b['getTime']());}}class g extends _0x1c98c7{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
27
27
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
|
-
|
|
29
|
-
rt(it){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x6f373a,_0x48820f){super(_0x48820f),this['sourceElement']=_0x6f373a,this['model']['document']['createRoot']();const _0x33c476=new st(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new et(this,_0x33c476);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x42ecf5,_0xa704c0){const _0x20a62a=new this(_0x42ecf5,_0xa704c0);return await _0x20a62a['initPlugins'](),await _0x20a62a['ui']['init'](_0x42ecf5),await _0x20a62a['data']['init'](_0x20a62a['config']['get']('initialData')||''),_0x20a62a['fire']('ready'),_0x20a62a;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class k extends _0x3aa790{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x9269c6){function _0x5d01c4(_0x5af3a3){return _0x5af3a3['map'](_0x198a28=>String['fromCharCode'](_0x198a28))['join']('');}super(_0x9269c6),this['result']='end',_0x9269c6[_0x5d01c4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5d01c4([0x76,0x69,0x65,0x77])][_0x5d01c4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5d01c4([0x61,0x75,0x74,0x6f]),_0x9269c6[_0x5d01c4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x5d01c4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5d01c4([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x5d01c4([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x5d01c4([0x6f,0x6b])});}}class H extends _0x3aa790{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x24c661){if(super(_0x24c661),!this['editor']['config']['get']('revisionHistory'))throw new _0x5c2956('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x530990=>this['_showRevisionViewer']({..._0x530990,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x1edb04=>this['_closeRevisionViewer'](_0x1edb04)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x11bf36=>this['_restoreRevision'](_0x11bf36)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x27c242){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x27c242;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x3cf072){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x3cf072);}['getRevision'](_0x1d54ae){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x1d54ae);}['getRevisions'](_0x28268f){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x28268f||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x4e0b02=this['editor'],_0x4c9159=_0x23c0b8(_0x4e0b02,p),_0x40dc35=_0x4e0b02['plugins']['get']('RevisionTracker'),_0x33eed3=_0x4e0b02['plugins']['get']('Users')['users'];return _0x4c9159['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x4c9159['lazyRoots'],(_0x4c9159['plugins']['push'](k,d,m,class extends _0x3aa790{static get['requires'](){return[d,'Users'];}['init'](){const _0x3d2f03=this['editor']['plugins']['get']('Users');for(const _0x2fe252 of _0x33eed3)_0x2fe252['isAnonymous']||_0x3d2f03['getUser'](_0x2fe252['id'])||_0x3d2f03['addUser'](_0x2fe252);const _0x48628b=_0x40dc35['repository']['getRevisions']();let _0x3804d9=null;const _0x7fb053=this['editor']['plugins']['get']('RevisionViewer');_0x7fb053['adapter']=_0x40dc35['adapter'],_0x7fb053['bind']('isEnabled')['to'](_0x40dc35),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x4e0b02,'isReadOnly',_0x2a6340=>!_0x2a6340);for(const _0x3e15e4 of _0x48628b){const _0x5afb14=null===_0x3e15e4['creator'];if(_0x5afb14&&_0x3e15e4['toVersion']===_0x3e15e4['fromVersion'])continue;const _0x2d2d69=_0x3e15e4['toJSON']();_0x7fb053['addRevisionData'](_0x2d2d69,(_0x40fcfd,_0x3c4360,_0x2b096e)=>{if(_0x5afb14){if(_0x3804d9)_0x3804d9['_update'](_0x40fcfd,_0x3c4360);else{if(!_0x3c4360){const _0x45e28b=_0x2b096e['toJSON']();_0x45e28b['id']=_0x202f37(),_0x40dc35['saveRevision'](_0x45e28b,_0x2b096e['toVersion'])['then'](_0x3df30c=>{_0x3804d9=_0x3df30c;});}}}else _0x3e15e4['_update'](_0x40fcfd,_0x3c4360);});}}},g),_0x4c9159);}['_enhanceShowRevisionViewerCallback'](){const _0x131812=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x19a40f=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x242103=this['editor']['plugins']['get']('Autosave');await _0x242103['save']();}else await _0x19a40f['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x30b048=this['editor']['plugins']['get']('Dialog');_0x30b048['isOpen']&&_0x30b048['hide']();}const _0x55716e=this['_getRevisionViewerEditorConfig']();return _0x131812(_0x55716e)['then'](_0x406fc6=>{return(this['_viewerEditor']=_0x406fc6,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x406fc6;})['catch'](_0x3f7f4f=>(console['error'](_0x3f7f4f),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x496e55=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'](),_0x496e55(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x2cc1d9=this['editor']['plugins']['get']('Annotations');_0x2cc1d9['refreshVisibility'](),_0x2cc1d9['refreshPositioning']();}})));}['_showRevisionViewer'](_0x19fcce){const _0x30f2be=this['editor']['config']['get']('revisionHistory.editorContainer'),_0xb694da=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x33c41e=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x33c41e,_0x19fcce)['then'](_0x576e2a=>(_0xb694da['style']['display']='block',_0x30f2be['style']['display']='none',_0x576e2a));}['_closeRevisionViewer'](_0x1de40e){const _0x6e5e0a=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x6e5e0a['style']['display']='',_0x1de40e['destroy']();}async['_restoreRevision'](_0x444e92){const _0x30b2ba=this['editor'],_0x5ea98e=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x55c31c=_0x30b2ba['plugins']['get']('RevisionTracker'),_0x3937a9=_0x5ea98e['repository']['getRevision'](_0x444e92);let _0x492000,_0x12c732,_0x3df4dd;try{_0x492000=await _0x5ea98e['getRevisionData'](_0x3937a9),_0x12c732=await _0x5ea98e['getRevisionRootsAttributes'](_0x3937a9);}catch(_0x26cc08){return void console['error'](_0x26cc08);}_0x30b2ba['model']['change'](_0x411684=>{for(const _0x1ebbdc of Array['from'](_0x30b2ba['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x411684['removeMarker'](_0x1ebbdc);}),_0x5ea98e['isReady']=!0x1,_0x30b2ba['model']['enqueueChange'](_0xa7eb94=>{_0xa7eb94['setSelection'](null),_0xa7eb94['removeSelectionAttribute'](_0x30b2ba['model']['document']['selection']['getAttributeKeys']());const _0x326fc0=Object['keys'](_0x492000);for(const _0x48c072 of _0x30b2ba['model']['document']['roots'])'$graveyard'!=_0x48c072['rootName']&&_0x48c072['isAttached']()&&!_0x326fc0['includes'](_0x48c072['rootName'])&&_0xa7eb94['detachRoot'](_0x48c072);for(const _0x4254c4 of _0x326fc0){let _0x5ac075=_0x30b2ba['model']['document']['getRoot'](_0x4254c4);_0x5ac075&&_0x5ac075['isAttached']()||(_0x5ac075=_0xa7eb94['addRoot'](_0x4254c4));const _0x4b4d61=_0x12c732[_0x4254c4],_0x5c155b=Object['keys'](_0x4b4d61),_0x446bf2=_0x492000[_0x4254c4];for(const _0x5bdfd0 of _0x5ac075['getAttributeKeys']())_0x5c155b['includes'](_0x5bdfd0)||_0xa7eb94['removeAttribute'](_0x5bdfd0,_0x5ac075);for(const _0x44762a of _0x5c155b)_0xa7eb94['setAttribute'](_0x44762a,_0x12c732[_0x4254c4][_0x44762a],_0x5ac075);_0xa7eb94['remove'](_0xa7eb94['createRangeIn'](_0x5ac075)),_0xa7eb94['insert'](_0x30b2ba['data']['parse'](_0x446bf2,_0x5ac075),_0x5ac075,0x0);}});const _0x4e9fc0=R(_0x30b2ba['locale'],'Restored');if(_0x3937a9['name'])_0x3df4dd=-0x1==_0x3937a9['name']['indexOf'](_0x4e9fc0)?_0x4e9fc0+':\x20'+_0x3937a9['name']:_0x3937a9['name'];else _0x3df4dd=_0x4e9fc0+':\x20'+(_0x3937a9['createdAt']['toLocaleDateString'](_0x30b2ba['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x3937a9['createdAt']['toLocaleTimeString'](_0x30b2ba['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x55c31c['saveRevision']({'name':_0x3df4dd}),_0x5ea98e['isReady']=!0x0,_0x30b2ba['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,H as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,le as RevisionViewerLoadingOverlay,m as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};
|
|
28
|
+
bt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x5d39ef){super(_0x5d39ef),this['_revisionViewer']=_0x5d39ef['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0xbb4091=this['_revisionsRepository']['_revisions'],_0x49553d=this['_createRevisionActions'](),_0x584068=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ni(this['editor']['locale'],_0xbb4091,_0x49553d,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',(_0x594136,_0x36f9fe)=>{_0x36f9fe['revisionViews']['on']('add',(_0x264f7e,_0x9175d6)=>{_0x9175d6['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)),_0x584068['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x4472ed=this['_revisionsRepository']['getRevision'](0x0);if(_0x4472ed){const _0x5579b3=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x4472ed['id']);this['_revisionViewer']['compare'](_0x4472ed,_0x5579b3);}}['_handleRevisionSelected'](_0x21c8f4,_0x4f1f30){const _0x24cd8c=this['_revisionsRepository']['getRevision'](_0x4f1f30['id']),_0x4cc6bd=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x24cd8c['id']);this['_revisionViewer']['compare'](_0x24cd8c,_0x4cc6bd);}['_handleRevisionSetName'](_0x29d9ad,_0x283629){this['_revisionsRepository']['getRevision'](_0x283629['id'])['setName'](_0x283629['name']);}['_handleDiffChange'](_0x5675c7,_0x28e053,_0xe57762){const _0x5294e3=this['_revisionsRepository']['getRevisionsInDiff'](_0xe57762);_0x5294e3['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x5294e3),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x5294e3[0x0]));}['_createRevisionActions'](){const _0x3f689d=this['editor'],_0x24653d=g['availableRevisionActions'],_0x2aa560=_0x3f689d['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x2aa560['length'])return _0x2aa560['map'](_0x58902a=>{const _0x16d0df='string'==typeof _0x58902a?Object['assign']({},_0x24653d[_0x58902a]):_0x58902a;return _0x16d0df['action']=_0x16d0df['action']['bind'](this,_0x3f689d),_0x16d0df['isVisible']&&(_0x16d0df['isVisible']=_0x16d0df['isVisible']['bind'](this,_0x3f689d)),_0x16d0df;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0xd66637},_0x476004)=>{const _0x1a9fc6=_0xd66637['get'](d),_0x273089=_0x1a9fc6['repository'];let _0x402415=_0x1a9fc6['diff']['newRevisionId'],_0x5f3d0c=_0x476004['id'];_0x273089['getIndex'](_0x402415)>_0x273089['getIndex'](_0x5f3d0c)&&([_0x402415,_0x5f3d0c]=[_0x5f3d0c,_0x402415]),_0x1a9fc6['compare'](_0x402415,_0x5f3d0c);},'isVisible':({plugins:_0x5d3f26},_0x322801)=>{const _0x7f8f5e=_0x5d3f26['get'](d);return!(_0x7f8f5e['repository']['getRevisionsInDiff'](_0x7f8f5e['diff'])['length']>0x2)&&!_0x322801['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x5cf167,{id:_0x3f3f52})=>{_0x5cf167['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x3f3f52);},'isVisible':({plugins:_0x2553e1},_0xdc7b98)=>!!_0x2553e1['get'](d)['repository']['getLaterVisibleRevision'](_0xdc7b98['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x55e1c4},{id:_0x16f93f,revisionNameView:_0x106d2c})=>{const _0x27f2c1=_0x55e1c4['get'](d),_0x1442d4=_0x27f2c1['repository']['getEarlierVisibleRevision'](_0x16f93f);_0x27f2c1['compare'](_0x16f93f,_0x1442d4),_0x106d2c['focus'](),_0x106d2c['fieldView']['select']();}}};}class et extends ot{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x284cbb,_0x4801db){super(_0x284cbb),this['_view']=_0x4801db,this['_toolbarConfig']=ht(_0x284cbb['config']['get']('toolbar')),this['_elementReplacer']=new ct();}get['element'](){return this['view']['element'];}['init'](_0x22be27){const _0xd5c930=this['editor'],_0x5b9ab2=this['view'],_0x38e2a2=_0xd5c930['editing']['view'],_0x354105=_0x5b9ab2['editable'],_0x345f51=_0x38e2a2['document']['getRoot']();_0x354105['name']=_0x345f51['rootName'],_0x5b9ab2['render']();const _0x2ca5af=_0x354105['element'];this['setEditableElement'](_0x354105['name'],_0x2ca5af),_0x5b9ab2['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x38e2a2['attachDomRoot'](_0x2ca5af),this['_elementReplacer']['replace'](_0x22be27,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x2b625b=this['view'],_0x3e6a02=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x3e6a02['detachDomRoot'](_0x2b625b['editable']['name']),_0x2b625b['destroy']();}['_initToolbar'](){const _0xbd25c6=this['view'];_0xbd25c6['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0xbd25c6['stickyPanel']['limiterElement']=_0xbd25c6['element'],_0xbd25c6['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x38e6ba})=>_0x38e6ba),_0xbd25c6['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0xbd25c6['toolbar']);}}class st extends dt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0xe19c1e,_0x2d0075,_0x49daa1={}){super(_0xe19c1e),this['stickyPanel']=new lt(_0xe19c1e),this['toolbar']=new nt(_0xe19c1e,{'shouldGroupWhenFull':_0x49daa1['shouldToolbarGroupWhenFull']}),this['_editable']=new ut(_0xe19c1e,_0x2d0075);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class w extends/* #__PURE__ -- @preserve */
|
|
29
|
+
rt(it){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x5d71eb,_0x21d95e){super(_0x21d95e),this['sourceElement']=_0x5d71eb,this['model']['document']['createRoot']();const _0x33da70=new st(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new et(this,_0x33da70);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x148f07,_0x168bde){const _0x10af56=new this(_0x148f07,_0x168bde);return await _0x10af56['initPlugins'](),await _0x10af56['ui']['init'](_0x148f07),await _0x10af56['data']['init'](_0x10af56['config']['get']('initialData')||''),_0x10af56['fire']('ready'),_0x10af56;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class k extends _0x1c98c7{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x10904c){function _0x3564d9(_0x435afb){return _0x435afb['map'](_0x21afa3=>String['fromCharCode'](_0x21afa3))['join']('');}super(_0x10904c),this['result']='end',_0x10904c[_0x3564d9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3564d9([0x76,0x69,0x65,0x77])][_0x3564d9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3564d9([0x61,0x75,0x74,0x6f]),_0x10904c[_0x3564d9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3564d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3564d9([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3564d9([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3564d9([0x6f,0x6b])});}}class H extends _0x1c98c7{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x5456a1){if(super(_0x5456a1),!this['editor']['config']['get']('revisionHistory'))throw new _0x420f22('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x1265dc=>this['_showRevisionViewer']({..._0x1265dc,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x4fe975=>this['_closeRevisionViewer'](_0x4fe975)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x7a5ffa=>this['_restoreRevision'](_0x7a5ffa)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x27c451){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x27c451;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x408c08){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x408c08);}['getRevision'](_0x6614d8){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x6614d8);}['getRevisions'](_0x138000){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x138000||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x13e9c0=this['editor'],_0x285a2e=_0x1541f1(_0x13e9c0,p),_0x55e75b=_0x13e9c0['plugins']['get']('RevisionTracker'),_0x4d39a7=_0x13e9c0['plugins']['get']('Users')['users'];return _0x285a2e['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x285a2e['lazyRoots'],(_0x285a2e['plugins']['push'](k,d,m,class extends _0x1c98c7{static get['requires'](){return[d,'Users'];}['init'](){const _0x4b248f=this['editor']['plugins']['get']('Users');for(const _0x22f12f of _0x4d39a7)_0x22f12f['isAnonymous']||_0x4b248f['getUser'](_0x22f12f['id'])||_0x4b248f['addUser'](_0x22f12f);const _0x6a1835=_0x55e75b['repository']['getRevisions']();let _0x202b33=null;const _0x290675=this['editor']['plugins']['get']('RevisionViewer');_0x290675['adapter']=_0x55e75b['adapter'],_0x290675['bind']('isEnabled')['to'](_0x55e75b),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x13e9c0,'isReadOnly',_0x5be65e=>!_0x5be65e);for(const _0x3fa9b0 of _0x6a1835){const _0x1ecb3f=null===_0x3fa9b0['creator'];if(_0x1ecb3f&&_0x3fa9b0['toVersion']===_0x3fa9b0['fromVersion'])continue;const _0x2a563c=_0x3fa9b0['toJSON']();_0x290675['addRevisionData'](_0x2a563c,(_0x376c97,_0x113b7f,_0x370565)=>{if(_0x1ecb3f){if(_0x202b33)_0x202b33['_update'](_0x376c97,_0x113b7f);else{if(!_0x113b7f){const _0x12c88d=_0x370565['toJSON']();_0x12c88d['id']=_0x4e6837(),_0x55e75b['saveRevision'](_0x12c88d,_0x370565['toVersion'])['then'](_0x246e5d=>{_0x202b33=_0x246e5d;});}}}else _0x3fa9b0['_update'](_0x376c97,_0x113b7f);});}}},g),_0x285a2e);}['_enhanceShowRevisionViewerCallback'](){const _0x123edf=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x2098ce=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x3aeb19=this['editor']['plugins']['get']('Autosave');await _0x3aeb19['save']();}else await _0x2098ce['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x197e77=this['editor']['plugins']['get']('Dialog');_0x197e77['isOpen']&&_0x197e77['hide']();}const _0x44f0dc=this['_getRevisionViewerEditorConfig']();return _0x123edf(_0x44f0dc)['then'](_0x1af658=>{return(this['_viewerEditor']=_0x1af658,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x1af658;})['catch'](_0x20f2c2=>(console['error'](_0x20f2c2),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x594968=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'](),_0x594968(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0xc6afe0=this['editor']['plugins']['get']('Annotations');_0xc6afe0['refreshVisibility'](),_0xc6afe0['refreshPositioning']();}})));}['_showRevisionViewer'](_0x23b9f5){const _0x23b934=this['editor']['config']['get']('revisionHistory.editorContainer'),_0xe55349=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x433c68=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x433c68,_0x23b9f5)['then'](_0x42e440=>(_0xe55349['style']['display']='block',_0x23b934['style']['display']='none',_0x42e440));}['_closeRevisionViewer'](_0x1bd05e){const _0x5e3ca7=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x5e3ca7['style']['display']='',_0x1bd05e['destroy']();}async['_restoreRevision'](_0x36ceca){const _0xf4ac42=this['editor'],_0x29be6d=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x1c5ff7=_0xf4ac42['plugins']['get']('RevisionTracker'),_0x43079c=_0x29be6d['repository']['getRevision'](_0x36ceca);let _0x3489c7,_0x544cc9,_0x227f29;try{_0x3489c7=await _0x29be6d['getRevisionData'](_0x43079c),_0x544cc9=await _0x29be6d['getRevisionRootsAttributes'](_0x43079c);}catch(_0x492c60){return void console['error'](_0x492c60);}_0xf4ac42['model']['change'](_0x555826=>{for(const _0x1d45bc of Array['from'](_0xf4ac42['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x555826['removeMarker'](_0x1d45bc);}),_0x29be6d['isReady']=!0x1,_0xf4ac42['model']['enqueueChange'](_0x4f1dd6=>{_0x4f1dd6['setSelection'](null),_0x4f1dd6['removeSelectionAttribute'](_0xf4ac42['model']['document']['selection']['getAttributeKeys']());const _0x3ca098=Object['keys'](_0x3489c7);for(const _0x58a407 of _0xf4ac42['model']['document']['roots'])'$graveyard'!=_0x58a407['rootName']&&_0x58a407['isAttached']()&&!_0x3ca098['includes'](_0x58a407['rootName'])&&_0x4f1dd6['detachRoot'](_0x58a407);for(const _0x433e93 of _0x3ca098){let _0x12c493=_0xf4ac42['model']['document']['getRoot'](_0x433e93);_0x12c493&&_0x12c493['isAttached']()||(_0x12c493=_0x4f1dd6['addRoot'](_0x433e93));const _0x5279fc=_0x544cc9[_0x433e93],_0x59f81d=Object['keys'](_0x5279fc),_0x1bf7d9=_0x3489c7[_0x433e93];for(const _0x12784c of _0x12c493['getAttributeKeys']())_0x59f81d['includes'](_0x12784c)||_0x4f1dd6['removeAttribute'](_0x12784c,_0x12c493);for(const _0x728448 of _0x59f81d)_0x4f1dd6['setAttribute'](_0x728448,_0x544cc9[_0x433e93][_0x728448],_0x12c493);_0x4f1dd6['remove'](_0x4f1dd6['createRangeIn'](_0x12c493)),_0x4f1dd6['insert'](_0xf4ac42['data']['parse'](_0x1bf7d9,_0x12c493),_0x12c493,0x0);}});const _0x759c30=R(_0xf4ac42['locale'],'Restored');if(_0x43079c['name'])_0x227f29=-0x1==_0x43079c['name']['indexOf'](_0x759c30)?_0x759c30+':\x20'+_0x43079c['name']:_0x43079c['name'];else _0x227f29=_0x759c30+':\x20'+(_0x43079c['createdAt']['toLocaleDateString'](_0xf4ac42['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x43079c['createdAt']['toLocaleTimeString'](_0xf4ac42['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x1c5ff7['saveRevision']({'name':_0x227f29}),_0x29be6d['isReady']=!0x0,_0xf4ac42['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,H as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,ge as RevisionViewerLoadingOverlay,m as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};
|